/home2/mshostin/www/vam/1/1/نسخه وب اپلیکیشن ویپاد _ Wepod_files/main.0e3f62fbd0a6cf2a.js.download
var $localize=Object.assign(void 0===$localize?{}:$localize,{locale:"fa"});
"use strict";(function(global){global.ng=global.ng||{};global.ng.common=global.ng.common||{};global.ng.common.locales=global.ng.common.locales||{};const u=undefined;function plural(val){const n=val,i=Math.floor(Math.abs(val));if(i===0||n===1)return 1;return 5}global.ng.common.locales["fa"]=["fa",[["\u0642","\u0628"],["\u0642.\u0638.","\u0628.\u0638."],["\u0642\u0628\u0644\u200C\u0627\u0632\u0638\u0647\u0631","\u0628\u0639\u062F\u0627\u0632\u0638\u0647\u0631"]],u,[["\u06CC","\u062F","\u0633","\u0686","\u067E","\u062C","\u0634"],["\u06CC\u06A9\u0634\u0646\u0628\u0647","\u062F\u0648\u0634\u0646\u0628\u0647","\u0633\u0647\u200C\u0634\u0646\u0628\u0647","\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647","\u067E\u0646\u062C\u0634\u0646\u0628\u0647","\u062C\u0645\u0639\u0647","\u0634\u0646\u0628\u0647"],u,["\u06F1\u0634","\u06F2\u0634","\u06F3\u0634","\u06F4\u0634","\u06F5\u0634","\u062C","\u0634"]],u,[["\u0698","\u0641","\u0645","\u0622","\u0645","\u0698","\u0698","\u0627","\u0633","\u0627","\u0646","\u062F"],["\u0698\u0627\u0646\u0648\u06CC\u0647\u0654","\u0641\u0648\u0631\u06CC\u0647\u0654","\u0645\u0627\u0631\u0633","\u0622\u0648\u0631\u06CC\u0644","\u0645\u0647\u0654","\u0698\u0648\u0626\u0646","\u0698\u0648\u0626\u06CC\u0647\u0654","\u0627\u0648\u062A","\u0633\u067E\u062A\u0627\u0645\u0628\u0631","\u0627\u06A9\u062A\u0628\u0631","\u0646\u0648\u0627\u0645\u0628\u0631","\u062F\u0633\u0627\u0645\u0628\u0631"],u],[["\u0698","\u0641","\u0645","\u0622","\u0645","\u0698","\u0698","\u0627","\u0633","\u0627","\u0646","\u062F"],["\u0698\u0627\u0646\u0648\u06CC\u0647","\u0641\u0648\u0631\u06CC\u0647","\u0645\u0627\u0631\u0633","\u0622\u0648\u0631\u06CC\u0644","\u0645\u0647","\u0698\u0648\u0626\u0646","\u0698\u0648\u0626\u06CC\u0647","\u0627\u0648\u062A","\u0633\u067E\u062A\u0627\u0645\u0628\u0631","\u0627\u06A9\u062A\u0628\u0631","\u0646\u0648\u0627\u0645\u0628\u0631","\u062F\u0633\u0627\u0645\u0628\u0631"],u],[["\u0642","\u0645"],["\u0642.\u0645.","\u0645."],["\u0642\u0628\u0644 \u0627\u0632 \u0645\u06CC\u0644\u0627\u062F","\u0645\u06CC\u0644\u0627\u062F\u06CC"]],6,[5,5],["y/M/d","d MMM y","d MMMM y","EEEE d MMMM y"],["H:mm","H:mm:ss","H:mm:ss (z)","H:mm:ss (zzzz)"],["{1}\u060C\u200F {0}",u,"{1}\u060C \u0633\u0627\u0639\u062A {0}",u],[".",",",";","%","\u200E+","\u200E\u2212","E","\xD7","\u2030","\u221E","\u0646\u0627\u0639\u062F\u062F",":"],["#,##0.###","#,##0%","\u200E\xA4\xA0#,##0.00","#E0"],"IRR","\u0631\u06CC\u0627\u0644","\u0631\u06CC\u0627\u0644 \u0627\u06CC\u0631\u0627\u0646",{"AFN":["\u060B"],"CAD":["$CA","$"],"CNY":["\xA5CN","\xA5"],"HKD":["$HK","$"],"IRR":["\u0631\u06CC\u0627\u0644"],"MXN":["$MX","$"],"NZD":["$NZ","$"],"PHP":[u,"\u20B1"],"THB":["\u0E3F"],"XCD":["$EC","$"]},"rtl",plural,[[["\u0628","\u0635","\u0638","\u0639","\u0634","\u0646"],["\u0628\u0627\u0645\u062F\u0627\u062F","\u0635\u0628\u062D","\u0638\u0647\u0631","\u0639\u0635\u0631","\u0634\u0628","\u0646\u06CC\u0645\u0647\u200C\u0634\u0628"],u],u,[["01:00","04:00"],["04:00","12:00"],["12:00","13:00"],["13:00","19:00"],["19:00","24:00"],["00:00","01:00"]]]]})(typeof globalThis!=="undefined"&&globalThis||typeof global!=="undefined"&&global||typeof window!=="undefined"&&window);;
(self.webpackChunkwepod_app=self.webpackChunkwepod_app||[]).push([[179],{84179:(M,b,n)=>{"use strict";n.d(b,{kx:()=>Cr,w5:()=>Ut});var t=n(8929),e=n(43489),l=n(20353);const h={leading:!0,trailing:!1};function g(Ue,Pt=l.P,He=h){return tt=>tt.lift(new p(Ue,Pt,He.leading,He.trailing))}class p{constructor(Pt,He,tt,Ke){this.duration=Pt,this.scheduler=He,this.leading=tt,this.trailing=Ke}call(Pt,He){return He.subscribe(new f(Pt,this.duration,this.scheduler,this.leading,this.trailing))}}class f extends e.L{constructor(Pt,He,tt,Ke,kt){super(Pt),this.duration=He,this.scheduler=tt,this.leading=Ke,this.trailing=kt,this._hasTrailingValue=!1,this._trailingValue=null}_next(Pt){this.throttled?this.trailing&&(this._trailingValue=Pt,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(C,this.duration,{subscriber:this})),this.leading?this.destination.next(Pt):this.trailing&&(this._trailingValue=Pt,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const Pt=this.throttled;Pt&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),Pt.unsubscribe(),this.remove(Pt),this.throttled=null)}}function C(Ue){const{subscriber:Pt}=Ue;Pt.clearThrottle()}var N=n(2994),a=n(75778),O=n(92198),H=typeof window<"u"?window:{screen:{},navigator:{}},F=(H.matchMedia||function(){return{matches:!1}}).bind(H),V=!1,U=function(){};H.addEventListener&&H.addEventListener("p",U,{get passive(){return V=!0}}),H.removeEventListener&&H.removeEventListener("p",U,!1);var q=V,G="ontouchstart"in H,oe=(G||"TouchEvent"in H&&F("(any-pointer: coarse)"),H.navigator.userAgent||""),x=(F("(pointer: coarse)").matches&&/iPad|Macintosh/.test(oe)&&Math.min(H.screen.width||0,H.screen.height||0),(F("(pointer: coarse)").matches||!F("(pointer: fine)").matches&&G)&&/Windows.*Firefox/.test(oe),F("(any-pointer: fine)").matches||F("(any-hover: hover)"),n(94650)),j=n(24006),$=n(36895);const Y=["tooltipTemplate"],u=["leftOuterSelectionBar"],W=["rightOuterSelectionBar"],fe=["fullBar"],ae=["selectionBar"],ye=["minHandle"],Qe=["maxHandle"],Ot=["floorLabel"],At=["ceilLabel"],Ze=["minHandleLabel"],at=["maxHandleLabel"],Be=["combinedLabel"],Lt=["ticksElement"];function _e(Ue,Pt){if(1&Ue&&x._UZ(0,"ngx-slider-tooltip-wrapper",31),2&Ue){const He=x.oxw().$implicit,tt=x.oxw();x.Q6J("template",tt.tooltipTemplate)("tooltip",He.valueTooltip)("placement",He.valueTooltipPlacement)("content",He.value)}}function ne(Ue,Pt){if(1&Ue&&x._UZ(0,"span",32),2&Ue){const He=x.oxw().$implicit;x.Q6J("innerHTML",He.legend,x.oJD)}}const be=function(Ue){return{"ngx-slider-selected":Ue}};function Te(Ue,Pt){if(1&Ue&&(x.TgZ(0,"span",27),x._UZ(1,"ngx-slider-tooltip-wrapper",28),x.YNc(2,_e,1,4,"ngx-slider-tooltip-wrapper",29),x.YNc(3,ne,1,1,"span",30),x.qZA()),2&Ue){const He=Pt.$implicit,tt=x.oxw();x.Q6J("ngClass",x.VKq(7,be,He.selected))("ngStyle",He.style),x.xp6(1),x.Q6J("template",tt.tooltipTemplate)("tooltip",He.tooltip)("placement",He.tooltipPlacement),x.xp6(1),x.Q6J("ngIf",null!=He.value),x.xp6(1),x.Q6J("ngIf",null!=He.legend)}}function $e(Ue,Pt){}function ft(Ue,Pt){1&Ue&&x.YNc(0,$e,0,0,"ng-template")}const Ge=function(Ue,Pt,He){return{tooltip:Ue,placement:Pt,content:He}};function Ft(Ue,Pt){if(1&Ue&&(x.ynx(0),x.YNc(1,ft,1,0,null,1),x.BQk()),2&Ue){const He=x.oxw();x.xp6(1),x.Q6J("ngTemplateOutlet",He.template)("ngTemplateOutletContext",x.kEZ(2,Ge,He.tooltip,He.placement,He.content))}}function br(Ue,Pt){if(1&Ue&&(x.ynx(0),x.TgZ(1,"div",2),x._uU(2),x.qZA(),x.BQk()),2&Ue){const He=x.oxw();x.xp6(1),x.uIk("title",He.tooltip)("data-tooltip-placement",He.placement),x.xp6(1),x.hij(" ",He.content," ")}}const rt={Low:0,High:1,Floor:2,Ceil:3,TickValue:4};rt[rt.Low]="Low",rt[rt.High]="High",rt[rt.Floor]="Floor",rt[rt.Ceil]="Ceil",rt[rt.TickValue]="TickValue";class st{constructor(){this.floor=0,this.ceil=null,this.step=1,this.minRange=null,this.maxRange=null,this.pushRange=!1,this.minLimit=null,this.maxLimit=null,this.translate=null,this.combineLabels=null,this.getLegend=null,this.getStepLegend=null,this.stepsArray=null,this.bindIndexForStepsArray=!1,this.draggableRange=!1,this.draggableRangeOnly=!1,this.showSelectionBar=!1,this.showSelectionBarEnd=!1,this.showSelectionBarFromValue=null,this.showOuterSelectionBars=!1,this.hidePointerLabels=!1,this.hideLimitLabels=!1,this.autoHideLimitLabels=!0,this.readOnly=!1,this.disabled=!1,this.showTicks=!1,this.showTicksValues=!1,this.tickStep=null,this.tickValueStep=null,this.ticksArray=null,this.ticksTooltip=null,this.ticksValuesTooltip=null,this.vertical=!1,this.getSelectionBarColor=null,this.getTickColor=null,this.getPointerColor=null,this.keyboardSupport=!0,this.scale=1,this.rotate=0,this.enforceStep=!0,this.enforceRange=!0,this.enforceStepsArray=!0,this.noSwitching=!1,this.onlyBindHandles=!1,this.rightToLeft=!1,this.reversedControls=!1,this.boundPointerLabels=!0,this.logScale=!1,this.customValueToPosition=null,this.customPositionToValue=null,this.precisionLimit=12,this.selectionBarGradient=null,this.ariaLabel="ngx-slider",this.ariaLabelledBy=null,this.ariaLabelHigh="ngx-slider-max",this.ariaLabelledByHigh=null,this.handleDimension=null,this.barDimension=null,this.animate=!0,this.animateOnMove=!1}}const Dt={Min:0,Max:1};Dt[Dt.Min]="Min",Dt[Dt.Max]="Max";class ot{}class nt{static isNullOrUndefined(Pt){return null==Pt}static areArraysEqual(Pt,He){if(Pt.length!==He.length)return!1;for(let tt=0;tt<Pt.length;++tt)if(Pt[tt]!==He[tt])return!1;return!0}static linearValueToPosition(Pt,He,tt){return(Pt-He)/(tt-He)}static logValueToPosition(Pt,He,tt){return((Pt=Math.log(Pt))-(He=Math.log(He)))/((tt=Math.log(tt))-He)}static linearPositionToValue(Pt,He,tt){return Pt*(tt-He)+He}static logPositionToValue(Pt,He,tt){return He=Math.log(He),tt=Math.log(tt),Math.exp(Pt*(tt-He)+He)}static findStepIndex(Pt,He){const tt=He.map(kt=>Math.abs(Pt-kt.value));let Ke=0;for(let kt=0;kt<He.length;kt++)tt[kt]!==tt[Ke]&&tt[kt]<tt[Ke]&&(Ke=kt);return Ke}}class Yt{static isTouchEvent(Pt){return void 0!==window.TouchEvent?Pt instanceof TouchEvent:void 0!==Pt.touches}static isResizeObserverAvailable(){return void 0!==window.ResizeObserver}}class Ne{static roundToPrecisionLimit(Pt,He){return+Pt.toPrecision(He)}static isModuloWithinPrecisionLimit(Pt,He,tt){const Ke=Math.pow(10,-tt);return Math.abs(Pt%He)<=Ke||Math.abs(Math.abs(Pt%He)-He)<=Ke}static clampToRange(Pt,He,tt){return Math.min(Math.max(Pt,He),tt)}}class X{constructor(){this.eventName=null,this.events=null,this.eventsSubscription=null,this.teardownCallback=null}}class ge{constructor(Pt){this.renderer=Pt}attachPassiveEventListener(Pt,He,tt,Ke){if(!0!==q)return this.attachEventListener(Pt,He,tt,Ke);const kt=new X;kt.eventName=He,kt.events=new t.xQ;const xe=Fe=>{kt.events.next(Fe)};return Pt.addEventListener(He,xe,{passive:!0,capture:!1}),kt.teardownCallback=()=>{Pt.removeEventListener(He,xe,{passive:!0,capture:!1})},kt.eventsSubscription=kt.events.pipe(nt.isNullOrUndefined(Ke)?(0,N.b)(()=>{}):g(Ke,void 0,{leading:!0,trailing:!0})).subscribe(Fe=>{tt(Fe)}),kt}detachEventListener(Pt){nt.isNullOrUndefined(Pt.eventsSubscription)||(Pt.eventsSubscription.unsubscribe(),Pt.eventsSubscription=null),nt.isNullOrUndefined(Pt.events)||(Pt.events.complete(),Pt.events=null),nt.isNullOrUndefined(Pt.teardownCallback)||(Pt.teardownCallback(),Pt.teardownCallback=null)}attachEventListener(Pt,He,tt,Ke){const kt=new X;return kt.eventName=He,kt.events=new t.xQ,kt.teardownCallback=this.renderer.listen(Pt,He,Fe=>{kt.events.next(Fe)}),kt.eventsSubscription=kt.events.pipe(nt.isNullOrUndefined(Ke)?(0,N.b)(()=>{}):g(Ke,void 0,{leading:!0,trailing:!0})).subscribe(Fe=>{tt(Fe)}),kt}}let Me=(()=>{class Ue{constructor(He,tt,Ke){this.elemRef=He,this.renderer=tt,this.changeDetectionRef=Ke,this._position=0,this._dimension=0,this._alwaysHide=!1,this._vertical=!1,this._scale=1,this._rotate=0,this.opacity=1,this.visibility="visible",this.left="",this.bottom="",this.height="",this.width="",this.transform="",this.eventListeners=[],this.eventListenerHelper=new ge(this.renderer)}get position(){return this._position}get dimension(){return this._dimension}get alwaysHide(){return this._alwaysHide}get vertical(){return this._vertical}get scale(){return this._scale}get rotate(){return this._rotate}setAlwaysHide(He){this._alwaysHide=He,this.visibility=He?"hidden":"visible"}hide(){this.opacity=0}show(){this.alwaysHide||(this.opacity=1)}isVisible(){return!this.alwaysHide&&0!==this.opacity}setVertical(He){this._vertical=He,this._vertical?(this.left="",this.width=""):(this.bottom="",this.height="")}setScale(He){this._scale=He}setRotate(He){this._rotate=He,this.transform="rotate("+He+"deg)"}getRotate(){return this._rotate}setPosition(He){this._position!==He&&!this.isRefDestroyed()&&this.changeDetectionRef.markForCheck(),this._position=He,this._vertical?this.bottom=Math.round(He)+"px":this.left=Math.round(He)+"px"}calculateDimension(){const He=this.getBoundingClientRect();this._dimension=this.vertical?(He.bottom-He.top)*this.scale:(He.right-He.left)*this.scale}setDimension(He){this._dimension!==He&&!this.isRefDestroyed()&&this.changeDetectionRef.markForCheck(),this._dimension=He,this._vertical?this.height=Math.round(He)+"px":this.width=Math.round(He)+"px"}getBoundingClientRect(){return this.elemRef.nativeElement.getBoundingClientRect()}on(He,tt,Ke){const kt=this.eventListenerHelper.attachEventListener(this.elemRef.nativeElement,He,tt,Ke);this.eventListeners.push(kt)}onPassive(He,tt,Ke){const kt=this.eventListenerHelper.attachPassiveEventListener(this.elemRef.nativeElement,He,tt,Ke);this.eventListeners.push(kt)}off(He){let tt,Ke;nt.isNullOrUndefined(He)?(tt=[],Ke=this.eventListeners):(tt=this.eventListeners.filter(kt=>kt.eventName!==He),Ke=this.eventListeners.filter(kt=>kt.eventName===He));for(const kt of Ke)this.eventListenerHelper.detachEventListener(kt);this.eventListeners=tt}isRefDestroyed(){return nt.isNullOrUndefined(this.changeDetectionRef)||this.changeDetectionRef.destroyed}}return Ue.\u0275fac=function(He){return new(He||Ue)(x.Y36(x.SBq),x.Y36(x.Qsj),x.Y36(x.sBO))},Ue.\u0275dir=x.lG2({type:Ue,selectors:[["","ngxSliderElement",""]],hostVars:14,hostBindings:function(He,tt){2&He&&x.Udp("opacity",tt.opacity)("visibility",tt.visibility)("left",tt.left)("bottom",tt.bottom)("height",tt.height)("width",tt.width)("transform",tt.transform)}}),Ue})(),We=(()=>{class Ue extends Me{constructor(He,tt,Ke){super(He,tt,Ke),this.active=!1,this.role="",this.tabindex="",this.ariaOrientation="",this.ariaLabel="",this.ariaLabelledBy="",this.ariaValueNow="",this.ariaValueText="",this.ariaValueMin="",this.ariaValueMax=""}focus(){this.elemRef.nativeElement.focus()}}return Ue.\u0275fac=function(He){return new(He||Ue)(x.Y36(x.SBq),x.Y36(x.Qsj),x.Y36(x.sBO))},Ue.\u0275dir=x.lG2({type:Ue,selectors:[["","ngxSliderHandle",""]],hostVars:11,hostBindings:function(He,tt){2&He&&(x.uIk("role",tt.role)("tabindex",tt.tabindex)("aria-orientation",tt.ariaOrientation)("aria-label",tt.ariaLabel)("aria-labelledby",tt.ariaLabelledBy)("aria-valuenow",tt.ariaValueNow)("aria-valuetext",tt.ariaValueText)("aria-valuemin",tt.ariaValueMin)("aria-valuemax",tt.ariaValueMax),x.ekj("ngx-slider-active",tt.active))},features:[x.qOj]}),Ue})(),Re=(()=>{class Ue extends Me{constructor(He,tt,Ke){super(He,tt,Ke),this._value=null}get value(){return this._value}setValue(He){let tt=!1;!this.alwaysHide&&(nt.isNullOrUndefined(this.value)||this.value.length!==He.length||this.value.length>0&&0===this.dimension)&&(tt=!0),this._value=He,this.elemRef.nativeElement.innerHTML=He,tt&&this.calculateDimension()}}return Ue.\u0275fac=function(He){return new(He||Ue)(x.Y36(x.SBq),x.Y36(x.Qsj),x.Y36(x.sBO))},Ue.\u0275dir=x.lG2({type:Ue,selectors:[["","ngxSliderLabel",""]],features:[x.qOj]}),Ue})();class pt{constructor(){this.selected=!1,this.style={},this.tooltip=null,this.tooltipPlacement=null,this.value=null,this.valueTooltip=null,this.valueTooltipPlacement=null,this.legend=null}}class Zt{constructor(){this.active=!1,this.value=0,this.difference=0,this.position=0,this.lowLimit=0,this.highLimit=0}}class cr{static compare(Pt,He){return!(nt.isNullOrUndefined(Pt)&&nt.isNullOrUndefined(He)||nt.isNullOrUndefined(Pt)!==nt.isNullOrUndefined(He))&&Pt.value===He.value&&Pt.highValue===He.highValue}}class wt extends cr{static compare(Pt,He){return!(nt.isNullOrUndefined(Pt)&&nt.isNullOrUndefined(He)||nt.isNullOrUndefined(Pt)!==nt.isNullOrUndefined(He))&&Pt.value===He.value&&Pt.highValue===He.highValue&&Pt.forceChange===He.forceChange}}const gt={provide:j.JU,useExisting:(0,x.Gpc)(()=>Ut),multi:!0};let Ut=(()=>{class Ue{constructor(He,tt,Ke,kt){this.renderer=He,this.elementRef=tt,this.changeDetectionRef=Ke,this.zone=kt,this.value=null,this.valueChange=new x.vpe,this.highValue=null,this.highValueChange=new x.vpe,this.options=new st,this.userChangeStart=new x.vpe,this.userChange=new x.vpe,this.userChangeEnd=new x.vpe,this.initHasRun=!1,this.inputModelChangeSubject=new t.xQ,this.inputModelChangeSubscription=null,this.outputModelChangeSubject=new t.xQ,this.outputModelChangeSubscription=null,this.viewLowValue=null,this.viewHighValue=null,this.viewOptions=new st,this.handleHalfDimension=0,this.maxHandlePosition=0,this.currentTrackingPointer=null,this.currentFocusPointer=null,this.firstKeyDown=!1,this.touchId=null,this.dragging=new Zt,this.sliderElementVerticalClass=!1,this.sliderElementAnimateClass=!1,this.sliderElementWithLegendClass=!1,this.sliderElementDisabledAttr=null,this.sliderElementAriaLabel="ngx-slider",this.barStyle={},this.minPointerStyle={},this.maxPointerStyle={},this.fullBarTransparentClass=!1,this.selectionBarDraggableClass=!1,this.ticksUnderValuesClass=!1,this.intermediateTicks=!1,this.ticks=[],this.eventListenerHelper=null,this.onMoveEventListener=null,this.onEndEventListener=null,this.moving=!1,this.resizeObserver=null,this.onTouchedCallback=null,this.onChangeCallback=null,this.eventListenerHelper=new ge(this.renderer)}set manualRefresh(He){this.unsubscribeManualRefresh(),this.manualRefreshSubscription=He.subscribe(()=>{setTimeout(()=>this.calculateViewDimensionsAndDetectChanges())})}set triggerFocus(He){this.unsubscribeTriggerFocus(),this.triggerFocusSubscription=He.subscribe(tt=>{this.focusPointer(tt)})}get range(){return!nt.isNullOrUndefined(this.value)&&!nt.isNullOrUndefined(this.highValue)}get showTicks(){return this.viewOptions.showTicks}ngOnInit(){this.viewOptions=new st,Object.assign(this.viewOptions,this.options),this.updateDisabledState(),this.updateVerticalState(),this.updateAriaLabel()}ngAfterViewInit(){this.applyOptions(),this.subscribeInputModelChangeSubject(),this.subscribeOutputModelChangeSubject(),this.renormaliseModelValues(),this.viewLowValue=this.modelValueToViewValue(this.value),this.viewHighValue=this.range?this.modelValueToViewValue(this.highValue):null,this.updateVerticalState(),this.manageElementsStyle(),this.updateDisabledState(),this.calculateViewDimensions(),this.addAccessibility(),this.updateCeilLabel(),this.updateFloorLabel(),this.initHandles(),this.manageEventsBindings(),this.updateAriaLabel(),this.subscribeResizeObserver(),this.initHasRun=!0,this.isRefDestroyed()||this.changeDetectionRef.detectChanges()}ngOnChanges(He){!nt.isNullOrUndefined(He.options)&&JSON.stringify(He.options.previousValue)!==JSON.stringify(He.options.currentValue)&&this.onChangeOptions(),(!nt.isNullOrUndefined(He.value)||!nt.isNullOrUndefined(He.highValue))&&this.inputModelChangeSubject.next({value:this.value,highValue:this.highValue,forceChange:!1,internalChange:!1})}ngOnDestroy(){this.unbindEvents(),this.unsubscribeResizeObserver(),this.unsubscribeInputModelChangeSubject(),this.unsubscribeOutputModelChangeSubject(),this.unsubscribeManualRefresh(),this.unsubscribeTriggerFocus()}writeValue(He){He instanceof Array?(this.value=He[0],this.highValue=He[1]):this.value=He,this.inputModelChangeSubject.next({value:this.value,highValue:this.highValue,forceChange:!1,internalChange:!1})}registerOnChange(He){this.onChangeCallback=He}registerOnTouched(He){this.onTouchedCallback=He}setDisabledState(He){this.viewOptions.disabled=He,this.updateDisabledState()}setAriaLabel(He){this.viewOptions.ariaLabel=He,this.updateAriaLabel()}onResize(He){this.calculateViewDimensionsAndDetectChanges()}subscribeInputModelChangeSubject(){this.inputModelChangeSubscription=this.inputModelChangeSubject.pipe((0,a.x)(wt.compare),(0,O.h)(He=>!He.forceChange&&!He.internalChange)).subscribe(He=>this.applyInputModelChange(He))}subscribeOutputModelChangeSubject(){this.outputModelChangeSubscription=this.outputModelChangeSubject.pipe((0,a.x)(wt.compare)).subscribe(He=>this.publishOutputModelChange(He))}subscribeResizeObserver(){Yt.isResizeObserverAvailable()&&(this.resizeObserver=new ResizeObserver(()=>this.calculateViewDimensionsAndDetectChanges()),this.resizeObserver.observe(this.elementRef.nativeElement))}unsubscribeResizeObserver(){Yt.isResizeObserverAvailable()&&null!==this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}unsubscribeOnMove(){nt.isNullOrUndefined(this.onMoveEventListener)||(this.eventListenerHelper.detachEventListener(this.onMoveEventListener),this.onMoveEventListener=null)}unsubscribeOnEnd(){nt.isNullOrUndefined(this.onEndEventListener)||(this.eventListenerHelper.detachEventListener(this.onEndEventListener),this.onEndEventListener=null)}unsubscribeInputModelChangeSubject(){nt.isNullOrUndefined(this.inputModelChangeSubscription)||(this.inputModelChangeSubscription.unsubscribe(),this.inputModelChangeSubscription=null)}unsubscribeOutputModelChangeSubject(){nt.isNullOrUndefined(this.outputModelChangeSubscription)||(this.outputModelChangeSubscription.unsubscribe(),this.outputModelChangeSubscription=null)}unsubscribeManualRefresh(){nt.isNullOrUndefined(this.manualRefreshSubscription)||(this.manualRefreshSubscription.unsubscribe(),this.manualRefreshSubscription=null)}unsubscribeTriggerFocus(){nt.isNullOrUndefined(this.triggerFocusSubscription)||(this.triggerFocusSubscription.unsubscribe(),this.triggerFocusSubscription=null)}getPointerElement(He){return He===Dt.Min?this.minHandleElement:He===Dt.Max?this.maxHandleElement:null}getCurrentTrackingValue(){return this.currentTrackingPointer===Dt.Min?this.viewLowValue:this.currentTrackingPointer===Dt.Max?this.viewHighValue:null}modelValueToViewValue(He){return nt.isNullOrUndefined(He)?NaN:nt.isNullOrUndefined(this.viewOptions.stepsArray)||this.viewOptions.bindIndexForStepsArray?+He:nt.findStepIndex(+He,this.viewOptions.stepsArray)}viewValueToModelValue(He){return nt.isNullOrUndefined(this.viewOptions.stepsArray)||this.viewOptions.bindIndexForStepsArray?He:this.getStepValue(He)}getStepValue(He){const tt=this.viewOptions.stepsArray[He];return nt.isNullOrUndefined(tt)?NaN:tt.value}applyViewChange(){this.value=this.viewValueToModelValue(this.viewLowValue),this.range&&(this.highValue=this.viewValueToModelValue(this.viewHighValue)),this.outputModelChangeSubject.next({value:this.value,highValue:this.highValue,userEventInitiated:!0,forceChange:!1}),this.inputModelChangeSubject.next({value:this.value,highValue:this.highValue,forceChange:!1,internalChange:!0})}applyInputModelChange(He){const tt=this.normaliseModelValues(He),Ke=!cr.compare(He,tt);Ke&&(this.value=tt.value,this.highValue=tt.highValue),this.viewLowValue=this.modelValueToViewValue(tt.value),this.viewHighValue=this.range?this.modelValueToViewValue(tt.highValue):null,this.updateLowHandle(this.valueToPosition(this.viewLowValue)),this.range&&this.updateHighHandle(this.valueToPosition(this.viewHighValue)),this.updateSelectionBar(),this.updateTicksScale(),this.updateAriaAttributes(),this.range&&this.updateCombinedLabel(),this.outputModelChangeSubject.next({value:tt.value,highValue:tt.highValue,forceChange:Ke,userEventInitiated:!1})}publishOutputModelChange(He){const tt=()=>{this.valueChange.emit(He.value),this.range&&this.highValueChange.emit(He.highValue),nt.isNullOrUndefined(this.onChangeCallback)||this.onChangeCallback(this.range?[He.value,He.highValue]:He.value),nt.isNullOrUndefined(this.onTouchedCallback)||this.onTouchedCallback(this.range?[He.value,He.highValue]:He.value)};He.userEventInitiated?(tt(),this.userChange.emit(this.getChangeContext())):setTimeout(()=>{tt()})}normaliseModelValues(He){const tt=new cr;if(tt.value=He.value,tt.highValue=He.highValue,!nt.isNullOrUndefined(this.viewOptions.stepsArray)){if(this.viewOptions.enforceStepsArray){const Ke=nt.findStepIndex(tt.value,this.viewOptions.stepsArray);if(tt.value=this.viewOptions.stepsArray[Ke].value,this.range){const kt=nt.findStepIndex(tt.highValue,this.viewOptions.stepsArray);tt.highValue=this.viewOptions.stepsArray[kt].value}}return tt}if(this.viewOptions.enforceStep&&(tt.value=this.roundStep(tt.value),this.range&&(tt.highValue=this.roundStep(tt.highValue))),this.viewOptions.enforceRange&&(tt.value=Ne.clampToRange(tt.value,this.viewOptions.floor,this.viewOptions.ceil),this.range&&(tt.highValue=Ne.clampToRange(tt.highValue,this.viewOptions.floor,this.viewOptions.ceil)),this.range&&He.value>He.highValue))if(this.viewOptions.noSwitching)tt.value=tt.highValue;else{const Ke=He.value;tt.value=He.highValue,tt.highValue=Ke}return tt}renormaliseModelValues(){const He={value:this.value,highValue:this.highValue},tt=this.normaliseModelValues(He);cr.compare(tt,He)||(this.value=tt.value,this.highValue=tt.highValue,this.outputModelChangeSubject.next({value:this.value,highValue:this.highValue,forceChange:!0,userEventInitiated:!1}))}onChangeOptions(){if(!this.initHasRun)return;const He=this.getOptionsInfluencingEventBindings(this.viewOptions);this.applyOptions();const tt=this.getOptionsInfluencingEventBindings(this.viewOptions),Ke=!nt.areArraysEqual(He,tt);this.renormaliseModelValues(),this.viewLowValue=this.modelValueToViewValue(this.value),this.viewHighValue=this.range?this.modelValueToViewValue(this.highValue):null,this.resetSlider(Ke)}applyOptions(){if(this.viewOptions=new st,Object.assign(this.viewOptions,this.options),this.viewOptions.draggableRange=this.range&&this.viewOptions.draggableRange,this.viewOptions.draggableRangeOnly=this.range&&this.viewOptions.draggableRangeOnly,this.viewOptions.draggableRangeOnly&&(this.viewOptions.draggableRange=!0),this.viewOptions.showTicks=this.viewOptions.showTicks||this.viewOptions.showTicksValues||!nt.isNullOrUndefined(this.viewOptions.ticksArray),this.viewOptions.showTicks&&(!nt.isNullOrUndefined(this.viewOptions.tickStep)||!nt.isNullOrUndefined(this.viewOptions.ticksArray))&&(this.intermediateTicks=!0),this.viewOptions.showSelectionBar=this.viewOptions.showSelectionBar||this.viewOptions.showSelectionBarEnd||!nt.isNullOrUndefined(this.viewOptions.showSelectionBarFromValue),nt.isNullOrUndefined(this.viewOptions.stepsArray)?this.applyFloorCeilOptions():this.applyStepsArrayOptions(),nt.isNullOrUndefined(this.viewOptions.combineLabels)&&(this.viewOptions.combineLabels=(He,tt)=>He+" - "+tt),this.viewOptions.logScale&&0===this.viewOptions.floor)throw Error("Can't use floor=0 with logarithmic scale")}applyStepsArrayOptions(){this.viewOptions.floor=0,this.viewOptions.ceil=this.viewOptions.stepsArray.length-1,this.viewOptions.step=1,nt.isNullOrUndefined(this.viewOptions.translate)&&(this.viewOptions.translate=He=>String(this.viewOptions.bindIndexForStepsArray?this.getStepValue(He):He))}applyFloorCeilOptions(){if(nt.isNullOrUndefined(this.viewOptions.step)?this.viewOptions.step=1:(this.viewOptions.step=+this.viewOptions.step,this.viewOptions.step<=0&&(this.viewOptions.step=1)),nt.isNullOrUndefined(this.viewOptions.ceil)||nt.isNullOrUndefined(this.viewOptions.floor))throw Error("floor and ceil options must be supplied");this.viewOptions.ceil=+this.viewOptions.ceil,this.viewOptions.floor=+this.viewOptions.floor,nt.isNullOrUndefined(this.viewOptions.translate)&&(this.viewOptions.translate=He=>String(He))}resetSlider(He=!0){this.manageElementsStyle(),this.addAccessibility(),this.updateCeilLabel(),this.updateFloorLabel(),He&&(this.unbindEvents(),this.manageEventsBindings()),this.updateDisabledState(),this.updateAriaLabel(),this.calculateViewDimensions(),this.refocusPointerIfNeeded()}focusPointer(He){He!==Dt.Min&&He!==Dt.Max&&(He=Dt.Min),He===Dt.Min?this.minHandleElement.focus():this.range&&He===Dt.Max&&this.maxHandleElement.focus()}refocusPointerIfNeeded(){nt.isNullOrUndefined(this.currentFocusPointer)||(this.onPointerFocus(this.currentFocusPointer),this.getPointerElement(this.currentFocusPointer).focus())}manageElementsStyle(){this.updateScale(),this.floorLabelElement.setAlwaysHide(this.viewOptions.showTicksValues||this.viewOptions.hideLimitLabels),this.ceilLabelElement.setAlwaysHide(this.viewOptions.showTicksValues||this.viewOptions.hideLimitLabels);const He=this.viewOptions.showTicksValues&&!this.intermediateTicks;this.minHandleLabelElement.setAlwaysHide(He||this.viewOptions.hidePointerLabels),this.maxHandleLabelElement.setAlwaysHide(He||!this.range||this.viewOptions.hidePointerLabels),this.combinedLabelElement.setAlwaysHide(He||!this.range||this.viewOptions.hidePointerLabels),this.selectionBarElement.setAlwaysHide(!this.range&&!this.viewOptions.showSelectionBar),this.leftOuterSelectionBarElement.setAlwaysHide(!this.range||!this.viewOptions.showOuterSelectionBars),this.rightOuterSelectionBarElement.setAlwaysHide(!this.range||!this.viewOptions.showOuterSelectionBars),this.fullBarTransparentClass=this.range&&this.viewOptions.showOuterSelectionBars,this.selectionBarDraggableClass=this.viewOptions.draggableRange&&!this.viewOptions.onlyBindHandles,this.ticksUnderValuesClass=this.intermediateTicks&&this.options.showTicksValues,this.sliderElementVerticalClass!==this.viewOptions.vertical&&(this.updateVerticalState(),setTimeout(()=>{this.resetSlider()})),this.sliderElementAnimateClass!==this.viewOptions.animate&&setTimeout(()=>{this.sliderElementAnimateClass=this.viewOptions.animate}),this.updateRotate()}manageEventsBindings(){this.viewOptions.disabled||this.viewOptions.readOnly?this.unbindEvents():this.bindEvents()}updateDisabledState(){this.sliderElementDisabledAttr=this.viewOptions.disabled?"disabled":null}updateAriaLabel(){this.sliderElementAriaLabel=this.viewOptions.ariaLabel||"nxg-slider"}updateVerticalState(){this.sliderElementVerticalClass=this.viewOptions.vertical;for(const He of this.getAllSliderElements())nt.isNullOrUndefined(He)||He.setVertical(this.viewOptions.vertical)}updateScale(){for(const He of this.getAllSliderElements())He.setScale(this.viewOptions.scale)}updateRotate(){for(const He of this.getAllSliderElements())He.setRotate(this.viewOptions.rotate)}getAllSliderElements(){return[this.leftOuterSelectionBarElement,this.rightOuterSelectionBarElement,this.fullBarElement,this.selectionBarElement,this.minHandleElement,this.maxHandleElement,this.floorLabelElement,this.ceilLabelElement,this.minHandleLabelElement,this.maxHandleLabelElement,this.combinedLabelElement,this.ticksElement]}initHandles(){this.updateLowHandle(this.valueToPosition(this.viewLowValue)),this.range&&this.updateHighHandle(this.valueToPosition(this.viewHighValue)),this.updateSelectionBar(),this.range&&this.updateCombinedLabel(),this.updateTicksScale()}addAccessibility(){this.updateAriaAttributes(),this.minHandleElement.role="slider",this.minHandleElement.tabindex=!this.viewOptions.keyboardSupport||this.viewOptions.readOnly||this.viewOptions.disabled?"":"0",this.minHandleElement.ariaOrientation=this.viewOptions.vertical||0!==this.viewOptions.rotate?"vertical":"horizontal",nt.isNullOrUndefined(this.viewOptions.ariaLabel)?nt.isNullOrUndefined(this.viewOptions.ariaLabelledBy)||(this.minHandleElement.ariaLabelledBy=this.viewOptions.ariaLabelledBy):this.minHandleElement.ariaLabel=this.viewOptions.ariaLabel,this.range&&(this.maxHandleElement.role="slider",this.maxHandleElement.tabindex=!this.viewOptions.keyboardSupport||this.viewOptions.readOnly||this.viewOptions.disabled?"":"0",this.maxHandleElement.ariaOrientation=this.viewOptions.vertical||0!==this.viewOptions.rotate?"vertical":"horizontal",nt.isNullOrUndefined(this.viewOptions.ariaLabelHigh)?nt.isNullOrUndefined(this.viewOptions.ariaLabelledByHigh)||(this.maxHandleElement.ariaLabelledBy=this.viewOptions.ariaLabelledByHigh):this.maxHandleElement.ariaLabel=this.viewOptions.ariaLabelHigh)}updateAriaAttributes(){this.minHandleElement.ariaValueNow=(+this.value).toString(),this.minHandleElement.ariaValueText=this.viewOptions.translate(+this.value,rt.Low),this.minHandleElement.ariaValueMin=this.viewOptions.floor.toString(),this.minHandleElement.ariaValueMax=this.viewOptions.ceil.toString(),this.range&&(this.maxHandleElement.ariaValueNow=(+this.highValue).toString(),this.maxHandleElement.ariaValueText=this.viewOptions.translate(+this.highValue,rt.High),this.maxHandleElement.ariaValueMin=this.viewOptions.floor.toString(),this.maxHandleElement.ariaValueMax=this.viewOptions.ceil.toString())}calculateViewDimensions(){nt.isNullOrUndefined(this.viewOptions.handleDimension)?this.minHandleElement.calculateDimension():this.minHandleElement.setDimension(this.viewOptions.handleDimension);const He=this.minHandleElement.dimension;this.handleHalfDimension=He/2,nt.isNullOrUndefined(this.viewOptions.barDimension)?this.fullBarElement.calculateDimension():this.fullBarElement.setDimension(this.viewOptions.barDimension),this.maxHandlePosition=this.fullBarElement.dimension-He,this.initHasRun&&(this.updateFloorLabel(),this.updateCeilLabel(),this.initHandles())}calculateViewDimensionsAndDetectChanges(){this.calculateViewDimensions(),this.isRefDestroyed()||this.changeDetectionRef.detectChanges()}isRefDestroyed(){return this.changeDetectionRef.destroyed}updateTicksScale(){if(!this.viewOptions.showTicks)return void setTimeout(()=>{this.sliderElementWithLegendClass=!1});const He=nt.isNullOrUndefined(this.viewOptions.ticksArray)?this.getTicksArray():this.viewOptions.ticksArray,tt=this.viewOptions.vertical?"translateY":"translateX";this.viewOptions.rightToLeft&&He.reverse();const Ke=nt.isNullOrUndefined(this.viewOptions.tickValueStep)?nt.isNullOrUndefined(this.viewOptions.tickStep)?this.viewOptions.step:this.viewOptions.tickStep:this.viewOptions.tickValueStep;let kt=!1;const xe=He.map(Fe=>{let lt=this.valueToPosition(Fe);this.viewOptions.vertical&&(lt=this.maxHandlePosition-lt);const St=tt+"("+Math.round(lt)+"px)",qe=new pt;qe.selected=this.isTickSelected(Fe),qe.style={"-webkit-transform":St,"-moz-transform":St,"-o-transform":St,"-ms-transform":St,transform:St},qe.selected&&!nt.isNullOrUndefined(this.viewOptions.getSelectionBarColor)&&(qe.style["background-color"]=this.getSelectionBarColor()),!qe.selected&&!nt.isNullOrUndefined(this.viewOptions.getTickColor)&&(qe.style["background-color"]=this.getTickColor(Fe)),nt.isNullOrUndefined(this.viewOptions.ticksTooltip)||(qe.tooltip=this.viewOptions.ticksTooltip(Fe),qe.tooltipPlacement=this.viewOptions.vertical?"right":"top"),this.viewOptions.showTicksValues&&!nt.isNullOrUndefined(Ke)&&Ne.isModuloWithinPrecisionLimit(Fe,Ke,this.viewOptions.precisionLimit)&&(qe.value=this.getDisplayValue(Fe,rt.TickValue),nt.isNullOrUndefined(this.viewOptions.ticksValuesTooltip)||(qe.valueTooltip=this.viewOptions.ticksValuesTooltip(Fe),qe.valueTooltipPlacement=this.viewOptions.vertical?"right":"top"));let ke=null;if(nt.isNullOrUndefined(this.viewOptions.stepsArray))nt.isNullOrUndefined(this.viewOptions.getLegend)||(ke=this.viewOptions.getLegend(Fe));else{const ct=this.viewOptions.stepsArray[Fe];nt.isNullOrUndefined(this.viewOptions.getStepLegend)?nt.isNullOrUndefined(ct)||(ke=ct.legend):ke=this.viewOptions.getStepLegend(ct)}return nt.isNullOrUndefined(ke)||(qe.legend=ke,kt=!0),qe});if(setTimeout(()=>{this.sliderElementWithLegendClass=kt}),nt.isNullOrUndefined(this.ticks)||this.ticks.length!==xe.length)this.ticks=xe;else for(let Fe=0;Fe<xe.length;++Fe)Object.assign(this.ticks[Fe],xe[Fe]);this.isRefDestroyed()||this.changeDetectionRef.detectChanges()}getTicksArray(){const He=nt.isNullOrUndefined(this.viewOptions.tickStep)?this.viewOptions.step:this.viewOptions.tickStep,tt=[],Ke=1+Math.floor(Ne.roundToPrecisionLimit(Math.abs(this.viewOptions.ceil-this.viewOptions.floor)/He,this.viewOptions.precisionLimit));for(let kt=0;kt<Ke;++kt)tt.push(Ne.roundToPrecisionLimit(this.viewOptions.floor+He*kt,this.viewOptions.precisionLimit));return tt}isTickSelected(He){if(!this.range)if(nt.isNullOrUndefined(this.viewOptions.showSelectionBarFromValue)){if(this.viewOptions.showSelectionBarEnd){if(He>=this.viewLowValue)return!0}else if(this.viewOptions.showSelectionBar&&He<=this.viewLowValue)return!0}else{const tt=this.viewOptions.showSelectionBarFromValue;if(this.viewLowValue>tt&&He>=tt&&He<=this.viewLowValue)return!0;if(this.viewLowValue<tt&&He<=tt&&He>=this.viewLowValue)return!0}return!!(this.range&&He>=this.viewLowValue&&He<=this.viewHighValue)}updateFloorLabel(){this.floorLabelElement.alwaysHide||(this.floorLabelElement.setValue(this.getDisplayValue(this.viewOptions.floor,rt.Floor)),this.floorLabelElement.calculateDimension(),this.floorLabelElement.setPosition(this.viewOptions.rightToLeft?this.fullBarElement.dimension-this.floorLabelElement.dimension:0))}updateCeilLabel(){this.ceilLabelElement.alwaysHide||(this.ceilLabelElement.setValue(this.getDisplayValue(this.viewOptions.ceil,rt.Ceil)),this.ceilLabelElement.calculateDimension(),this.ceilLabelElement.setPosition(this.viewOptions.rightToLeft?0:this.fullBarElement.dimension-this.ceilLabelElement.dimension))}updateHandles(He,tt){He===Dt.Min?this.updateLowHandle(tt):He===Dt.Max&&this.updateHighHandle(tt),this.updateSelectionBar(),this.updateTicksScale(),this.range&&this.updateCombinedLabel()}getHandleLabelPos(He,tt){const Ke=He===Dt.Min?this.minHandleLabelElement.dimension:this.maxHandleLabelElement.dimension,kt=tt-Ke/2+this.handleHalfDimension,xe=this.fullBarElement.dimension-Ke;return this.viewOptions.boundPointerLabels?this.viewOptions.rightToLeft&&He===Dt.Min||!this.viewOptions.rightToLeft&&He===Dt.Max?Math.min(kt,xe):Math.min(Math.max(kt,0),xe):kt}updateLowHandle(He){this.minHandleElement.setPosition(He),this.minHandleLabelElement.setValue(this.getDisplayValue(this.viewLowValue,rt.Low)),this.minHandleLabelElement.setPosition(this.getHandleLabelPos(Dt.Min,He)),nt.isNullOrUndefined(this.viewOptions.getPointerColor)||(this.minPointerStyle={backgroundColor:this.getPointerColor(Dt.Min)}),this.viewOptions.autoHideLimitLabels&&this.updateFloorAndCeilLabelsVisibility()}updateHighHandle(He){this.maxHandleElement.setPosition(He),this.maxHandleLabelElement.setValue(this.getDisplayValue(this.viewHighValue,rt.High)),this.maxHandleLabelElement.setPosition(this.getHandleLabelPos(Dt.Max,He)),nt.isNullOrUndefined(this.viewOptions.getPointerColor)||(this.maxPointerStyle={backgroundColor:this.getPointerColor(Dt.Max)}),this.viewOptions.autoHideLimitLabels&&this.updateFloorAndCeilLabelsVisibility()}updateFloorAndCeilLabelsVisibility(){if(this.viewOptions.hidePointerLabels)return;let He=!1,tt=!1;const Ke=this.isLabelBelowFloorLabel(this.minHandleLabelElement),kt=this.isLabelAboveCeilLabel(this.minHandleLabelElement),xe=this.isLabelAboveCeilLabel(this.maxHandleLabelElement),Fe=this.isLabelBelowFloorLabel(this.combinedLabelElement),lt=this.isLabelAboveCeilLabel(this.combinedLabelElement);if(Ke?(He=!0,this.floorLabelElement.hide()):(He=!1,this.floorLabelElement.show()),kt?(tt=!0,this.ceilLabelElement.hide()):(tt=!1,this.ceilLabelElement.show()),this.range){const St=this.combinedLabelElement.isVisible()?lt:xe,qe=this.combinedLabelElement.isVisible()?Fe:Ke;St?this.ceilLabelElement.hide():tt||this.ceilLabelElement.show(),qe?this.floorLabelElement.hide():He||this.floorLabelElement.show()}}isLabelBelowFloorLabel(He){const tt=He.position,kt=this.floorLabelElement.position;return this.viewOptions.rightToLeft?tt+He.dimension>=kt-2:tt<=kt+this.floorLabelElement.dimension+2}isLabelAboveCeilLabel(He){const tt=He.position,kt=this.ceilLabelElement.position;return this.viewOptions.rightToLeft?tt<=kt+this.ceilLabelElement.dimension+2:tt+He.dimension>=kt-2}updateSelectionBar(){let He=0,tt=0;const Ke=this.viewOptions.rightToLeft?!this.viewOptions.showSelectionBarEnd:this.viewOptions.showSelectionBarEnd,kt=this.viewOptions.rightToLeft?this.maxHandleElement.position+this.handleHalfDimension:this.minHandleElement.position+this.handleHalfDimension;if(this.range)tt=Math.abs(this.maxHandleElement.position-this.minHandleElement.position),He=kt;else if(nt.isNullOrUndefined(this.viewOptions.showSelectionBarFromValue))Ke?(tt=Math.ceil(Math.abs(this.maxHandlePosition-this.minHandleElement.position)+this.handleHalfDimension),He=Math.floor(this.minHandleElement.position+this.handleHalfDimension)):(tt=this.minHandleElement.position+this.handleHalfDimension,He=0);else{const xe=this.viewOptions.showSelectionBarFromValue,Fe=this.valueToPosition(xe);(this.viewOptions.rightToLeft?this.viewLowValue<=xe:this.viewLowValue>xe)?(tt=this.minHandleElement.position-Fe,He=Fe+this.handleHalfDimension):(tt=Fe-this.minHandleElement.position,He=this.minHandleElement.position+this.handleHalfDimension)}if(this.selectionBarElement.setDimension(tt),this.selectionBarElement.setPosition(He),this.range&&this.viewOptions.showOuterSelectionBars&&(this.viewOptions.rightToLeft?(this.rightOuterSelectionBarElement.setDimension(He),this.rightOuterSelectionBarElement.setPosition(0),this.fullBarElement.calculateDimension(),this.leftOuterSelectionBarElement.setDimension(this.fullBarElement.dimension-(He+tt)),this.leftOuterSelectionBarElement.setPosition(He+tt)):(this.leftOuterSelectionBarElement.setDimension(He),this.leftOuterSelectionBarElement.setPosition(0),this.fullBarElement.calculateDimension(),this.rightOuterSelectionBarElement.setDimension(this.fullBarElement.dimension-(He+tt)),this.rightOuterSelectionBarElement.setPosition(He+tt))),nt.isNullOrUndefined(this.viewOptions.getSelectionBarColor)){if(!nt.isNullOrUndefined(this.viewOptions.selectionBarGradient)){const xe=nt.isNullOrUndefined(this.viewOptions.showSelectionBarFromValue)?0:this.valueToPosition(this.viewOptions.showSelectionBarFromValue),Fe=xe-He>0&&!Ke||xe-He<=0&&Ke;this.barStyle={backgroundImage:"linear-gradient(to "+(this.viewOptions.vertical?Fe?"bottom":"top":Fe?"left":"right")+", "+this.viewOptions.selectionBarGradient.from+" 0%,"+this.viewOptions.selectionBarGradient.to+" 100%)"},this.viewOptions.vertical?(this.barStyle.backgroundPosition="center "+(xe+tt+He+(Fe?-this.handleHalfDimension:0))+"px",this.barStyle.backgroundSize="100% "+(this.fullBarElement.dimension-this.handleHalfDimension)+"px"):(this.barStyle.backgroundPosition=xe-He+(Fe?this.handleHalfDimension:0)+"px center",this.barStyle.backgroundSize=this.fullBarElement.dimension-this.handleHalfDimension+"px 100%")}}else{const xe=this.getSelectionBarColor();this.barStyle={backgroundColor:xe}}}getSelectionBarColor(){return this.range?this.viewOptions.getSelectionBarColor(this.value,this.highValue):this.viewOptions.getSelectionBarColor(this.value)}getPointerColor(He){return this.viewOptions.getPointerColor(He===Dt.Max?this.highValue:this.value,He)}getTickColor(He){return this.viewOptions.getTickColor(He)}updateCombinedLabel(){let He=null;if(He=this.viewOptions.rightToLeft?this.minHandleLabelElement.position-this.minHandleLabelElement.dimension-10<=this.maxHandleLabelElement.position:this.minHandleLabelElement.position+this.minHandleLabelElement.dimension+10>=this.maxHandleLabelElement.position,He){const tt=this.getDisplayValue(this.viewLowValue,rt.Low),Ke=this.getDisplayValue(this.viewHighValue,rt.High),kt=this.viewOptions.rightToLeft?this.viewOptions.combineLabels(Ke,tt):this.viewOptions.combineLabels(tt,Ke);this.combinedLabelElement.setValue(kt);const xe=this.viewOptions.boundPointerLabels?Math.min(Math.max(this.selectionBarElement.position+this.selectionBarElement.dimension/2-this.combinedLabelElement.dimension/2,0),this.fullBarElement.dimension-this.combinedLabelElement.dimension):this.selectionBarElement.position+this.selectionBarElement.dimension/2-this.combinedLabelElement.dimension/2;this.combinedLabelElement.setPosition(xe),this.minHandleLabelElement.hide(),this.maxHandleLabelElement.hide(),this.combinedLabelElement.show()}else this.updateHighHandle(this.valueToPosition(this.viewHighValue)),this.updateLowHandle(this.valueToPosition(this.viewLowValue)),this.maxHandleLabelElement.show(),this.minHandleLabelElement.show(),this.combinedLabelElement.hide();this.viewOptions.autoHideLimitLabels&&this.updateFloorAndCeilLabelsVisibility()}getDisplayValue(He,tt){return!nt.isNullOrUndefined(this.viewOptions.stepsArray)&&!this.viewOptions.bindIndexForStepsArray&&(He=this.getStepValue(He)),this.viewOptions.translate(He,tt)}roundStep(He,tt){const Ke=nt.isNullOrUndefined(tt)?this.viewOptions.step:tt;let kt=Ne.roundToPrecisionLimit((He-this.viewOptions.floor)/Ke,this.viewOptions.precisionLimit);return kt=Math.round(kt)*Ke,Ne.roundToPrecisionLimit(this.viewOptions.floor+kt,this.viewOptions.precisionLimit)}valueToPosition(He){let tt=nt.linearValueToPosition;nt.isNullOrUndefined(this.viewOptions.customValueToPosition)?this.viewOptions.logScale&&(tt=nt.logValueToPosition):tt=this.viewOptions.customValueToPosition;let Ke=tt(He=Ne.clampToRange(He,this.viewOptions.floor,this.viewOptions.ceil),this.viewOptions.floor,this.viewOptions.ceil);return nt.isNullOrUndefined(Ke)&&(Ke=0),this.viewOptions.rightToLeft&&(Ke=1-Ke),Ke*this.maxHandlePosition}positionToValue(He){let tt=He/this.maxHandlePosition;this.viewOptions.rightToLeft&&(tt=1-tt);let Ke=nt.linearPositionToValue;nt.isNullOrUndefined(this.viewOptions.customPositionToValue)?this.viewOptions.logScale&&(Ke=nt.logPositionToValue):Ke=this.viewOptions.customPositionToValue;const kt=Ke(tt,this.viewOptions.floor,this.viewOptions.ceil);return nt.isNullOrUndefined(kt)?0:kt}getEventXY(He,tt){if(He instanceof MouseEvent)return this.viewOptions.vertical||0!==this.viewOptions.rotate?He.clientY:He.clientX;let Ke=0;const kt=He.touches;if(!nt.isNullOrUndefined(tt))for(let xe=0;xe<kt.length;xe++)if(kt[xe].identifier===tt){Ke=xe;break}return this.viewOptions.vertical||0!==this.viewOptions.rotate?kt[Ke].clientY:kt[Ke].clientX}getEventPosition(He,tt){const Ke=this.elementRef.nativeElement.getBoundingClientRect(),kt=this.viewOptions.vertical||0!==this.viewOptions.rotate?Ke.bottom:Ke.left;let xe=0;return xe=this.viewOptions.vertical||0!==this.viewOptions.rotate?-this.getEventXY(He,tt)+kt:this.getEventXY(He,tt)-kt,xe*this.viewOptions.scale-this.handleHalfDimension}getNearestHandle(He){if(!this.range)return Dt.Min;const tt=this.getEventPosition(He),Ke=Math.abs(tt-this.minHandleElement.position),kt=Math.abs(tt-this.maxHandleElement.position);return Ke<kt?Dt.Min:Ke>kt?Dt.Max:this.viewOptions.rightToLeft?tt>this.minHandleElement.position?Dt.Min:Dt.Max:tt<this.minHandleElement.position?Dt.Min:Dt.Max}bindEvents(){const He=this.viewOptions.draggableRange;this.viewOptions.onlyBindHandles||this.selectionBarElement.on("mousedown",tt=>this.onBarStart(null,He,tt,!0,!0,!0)),this.viewOptions.draggableRangeOnly?(this.minHandleElement.on("mousedown",tt=>this.onBarStart(Dt.Min,He,tt,!0,!0)),this.maxHandleElement.on("mousedown",tt=>this.onBarStart(Dt.Max,He,tt,!0,!0))):(this.minHandleElement.on("mousedown",tt=>this.onStart(Dt.Min,tt,!0,!0)),this.range&&this.maxHandleElement.on("mousedown",tt=>this.onStart(Dt.Max,tt,!0,!0)),this.viewOptions.onlyBindHandles||(this.fullBarElement.on("mousedown",tt=>this.onStart(null,tt,!0,!0,!0)),this.ticksElement.on("mousedown",tt=>this.onStart(null,tt,!0,!0,!0,!0)))),this.viewOptions.onlyBindHandles||this.selectionBarElement.onPassive("touchstart",tt=>this.onBarStart(null,He,tt,!0,!0,!0)),this.viewOptions.draggableRangeOnly?(this.minHandleElement.onPassive("touchstart",tt=>this.onBarStart(Dt.Min,He,tt,!0,!0)),this.maxHandleElement.onPassive("touchstart",tt=>this.onBarStart(Dt.Max,He,tt,!0,!0))):(this.minHandleElement.onPassive("touchstart",tt=>this.onStart(Dt.Min,tt,!0,!0)),this.range&&this.maxHandleElement.onPassive("touchstart",tt=>this.onStart(Dt.Max,tt,!0,!0)),this.viewOptions.onlyBindHandles||(this.fullBarElement.onPassive("touchstart",tt=>this.onStart(null,tt,!0,!0,!0)),this.ticksElement.onPassive("touchstart",tt=>this.onStart(null,tt,!1,!1,!0,!0)))),this.viewOptions.keyboardSupport&&(this.minHandleElement.on("focus",()=>this.onPointerFocus(Dt.Min)),this.range&&this.maxHandleElement.on("focus",()=>this.onPointerFocus(Dt.Max)))}getOptionsInfluencingEventBindings(He){return[He.disabled,He.readOnly,He.draggableRange,He.draggableRangeOnly,He.onlyBindHandles,He.keyboardSupport]}unbindEvents(){this.unsubscribeOnMove(),this.unsubscribeOnEnd();for(const He of this.getAllSliderElements())nt.isNullOrUndefined(He)||He.off()}onBarStart(He,tt,Ke,kt,xe,Fe,lt){tt?this.onDragStart(He,Ke,kt,xe):this.onStart(He,Ke,kt,xe,Fe,lt)}onStart(He,tt,Ke,kt,xe,Fe){tt.stopPropagation(),!Yt.isTouchEvent(tt)&&!q&&tt.preventDefault(),this.moving=!1,this.calculateViewDimensions(),nt.isNullOrUndefined(He)&&(He=this.getNearestHandle(tt)),this.currentTrackingPointer=He;const lt=this.getPointerElement(He);if(lt.active=!0,this.viewOptions.keyboardSupport&&lt.focus(),Ke){this.unsubscribeOnMove();const St=qe=>this.dragging.active?this.onDragMove(qe):this.onMove(qe);this.onMoveEventListener=Yt.isTouchEvent(tt)?this.eventListenerHelper.attachPassiveEventListener(document,"touchmove",St):this.eventListenerHelper.attachEventListener(document,"mousemove",St)}if(kt){this.unsubscribeOnEnd();const St=qe=>this.onEnd(qe);this.onEndEventListener=Yt.isTouchEvent(tt)?this.eventListenerHelper.attachPassiveEventListener(document,"touchend",St):this.eventListenerHelper.attachEventListener(document,"mouseup",St)}this.userChangeStart.emit(this.getChangeContext()),Yt.isTouchEvent(tt)&&!nt.isNullOrUndefined(tt.changedTouches)&&nt.isNullOrUndefined(this.touchId)&&(this.touchId=tt.changedTouches[0].identifier),xe&&this.onMove(tt,!0),Fe&&this.onEnd(tt)}onMove(He,tt){let Ke=null;if(Yt.isTouchEvent(He)){const St=He.changedTouches;for(let qe=0;qe<St.length;qe++)if(St[qe].identifier===this.touchId){Ke=St[qe];break}if(nt.isNullOrUndefined(Ke))return}this.viewOptions.animate&&!this.viewOptions.animateOnMove&&this.moving&&(this.sliderElementAnimateClass=!1),this.moving=!0;const kt=nt.isNullOrUndefined(Ke)?this.getEventPosition(He):this.getEventPosition(He,Ke.identifier);let xe;kt<=0?xe=this.viewOptions.rightToLeft?this.viewOptions.ceil:this.viewOptions.floor:kt>=this.maxHandlePosition?xe=this.viewOptions.rightToLeft?this.viewOptions.floor:this.viewOptions.ceil:(xe=this.positionToValue(kt),xe=tt&&!nt.isNullOrUndefined(this.viewOptions.tickStep)?this.roundStep(xe,this.viewOptions.tickStep):this.roundStep(xe)),this.positionTrackingHandle(xe)}onEnd(He){Yt.isTouchEvent(He)&&He.changedTouches[0].identifier!==this.touchId||(this.moving=!1,this.viewOptions.animate&&(this.sliderElementAnimateClass=!0),this.touchId=null,this.viewOptions.keyboardSupport||(this.minHandleElement.active=!1,this.maxHandleElement.active=!1,this.currentTrackingPointer=null),this.dragging.active=!1,this.unsubscribeOnMove(),this.unsubscribeOnEnd(),this.userChangeEnd.emit(this.getChangeContext()))}onPointerFocus(He){const tt=this.getPointerElement(He);tt.on("blur",()=>this.onPointerBlur(tt)),tt.on("keydown",Ke=>this.onKeyboardEvent(Ke)),tt.on("keyup",()=>this.onKeyUp()),tt.active=!0,this.currentTrackingPointer=He,this.currentFocusPointer=He,this.firstKeyDown=!0}onKeyUp(){this.firstKeyDown=!0,this.userChangeEnd.emit(this.getChangeContext())}onPointerBlur(He){He.off("blur"),He.off("keydown"),He.off("keyup"),He.active=!1,nt.isNullOrUndefined(this.touchId)&&(this.currentTrackingPointer=null,this.currentFocusPointer=null)}getKeyActions(He){const tt=this.viewOptions.ceil-this.viewOptions.floor;let Ke=He+this.viewOptions.step,kt=He-this.viewOptions.step,xe=He+tt/10,Fe=He-tt/10;this.viewOptions.reversedControls&&(Ke=He-this.viewOptions.step,kt=He+this.viewOptions.step,xe=He-tt/10,Fe=He+tt/10);const lt={UP:Ke,DOWN:kt,LEFT:kt,RIGHT:Ke,PAGEUP:xe,PAGEDOWN:Fe,HOME:this.viewOptions.reversedControls?this.viewOptions.ceil:this.viewOptions.floor,END:this.viewOptions.reversedControls?this.viewOptions.floor:this.viewOptions.ceil};return this.viewOptions.rightToLeft&&(lt.LEFT=Ke,lt.RIGHT=kt,(this.viewOptions.vertical||0!==this.viewOptions.rotate)&&(lt.UP=kt,lt.DOWN=Ke)),lt}onKeyboardEvent(He){const tt=this.getCurrentTrackingValue(),Ke=nt.isNullOrUndefined(He.keyCode)?He.which:He.keyCode,lt=this.getKeyActions(tt)[{38:"UP",40:"DOWN",37:"LEFT",39:"RIGHT",33:"PAGEUP",34:"PAGEDOWN",36:"HOME",35:"END"}[Ke]];if(nt.isNullOrUndefined(lt)||nt.isNullOrUndefined(this.currentTrackingPointer))return;He.preventDefault(),this.firstKeyDown&&(this.firstKeyDown=!1,this.userChangeStart.emit(this.getChangeContext()));const St=Ne.clampToRange(lt,this.viewOptions.floor,this.viewOptions.ceil),qe=this.roundStep(St);if(this.viewOptions.draggableRangeOnly){const ke=this.viewHighValue-this.viewLowValue;let ct,vt;this.currentTrackingPointer===Dt.Min?(ct=qe,vt=qe+ke,vt>this.viewOptions.ceil&&(vt=this.viewOptions.ceil,ct=vt-ke)):this.currentTrackingPointer===Dt.Max&&(vt=qe,ct=qe-ke,ct<this.viewOptions.floor&&(ct=this.viewOptions.floor,vt=ct+ke)),this.positionTrackingBar(ct,vt)}else this.positionTrackingHandle(qe)}onDragStart(He,tt,Ke,kt){const xe=this.getEventPosition(tt);this.dragging=new Zt,this.dragging.active=!0,this.dragging.value=this.positionToValue(xe),this.dragging.difference=this.viewHighValue-this.viewLowValue,this.dragging.lowLimit=this.viewOptions.rightToLeft?this.minHandleElement.position-xe:xe-this.minHandleElement.position,this.dragging.highLimit=this.viewOptions.rightToLeft?xe-this.maxHandleElement.position:this.maxHandleElement.position-xe,this.onStart(He,tt,Ke,kt)}getMinValue(He,tt,Ke){const kt=this.viewOptions.rightToLeft;let xe=null;return xe=tt?Ke?kt?this.viewOptions.floor:this.viewOptions.ceil-this.dragging.difference:kt?this.viewOptions.ceil-this.dragging.difference:this.viewOptions.floor:this.positionToValue(kt?He+this.dragging.lowLimit:He-this.dragging.lowLimit),this.roundStep(xe)}getMaxValue(He,tt,Ke){const kt=this.viewOptions.rightToLeft;let xe=null;return xe=tt?Ke?kt?this.viewOptions.floor+this.dragging.difference:this.viewOptions.ceil:kt?this.viewOptions.ceil:this.viewOptions.floor+this.dragging.difference:kt?this.positionToValue(He+this.dragging.lowLimit)+this.dragging.difference:this.positionToValue(He-this.dragging.lowLimit)+this.dragging.difference,this.roundStep(xe)}onDragMove(He){const tt=this.getEventPosition(He);let Ke,kt,xe,Fe;this.viewOptions.animate&&!this.viewOptions.animateOnMove&&this.moving&&(this.sliderElementAnimateClass=!1),this.moving=!0,this.viewOptions.rightToLeft?(Ke=this.dragging.lowLimit,kt=this.dragging.highLimit,xe=this.maxHandleElement,Fe=this.minHandleElement):(Ke=this.dragging.highLimit,kt=this.dragging.lowLimit,xe=this.minHandleElement,Fe=this.maxHandleElement);const St=tt>=this.maxHandlePosition-Ke;let qe,ke;if(tt<=kt){if(0===xe.position)return;qe=this.getMinValue(tt,!0,!1),ke=this.getMaxValue(tt,!0,!1)}else if(St){if(Fe.position===this.maxHandlePosition)return;ke=this.getMaxValue(tt,!0,!0),qe=this.getMinValue(tt,!0,!0)}else qe=this.getMinValue(tt,!1,!1),ke=this.getMaxValue(tt,!1,!1);this.positionTrackingBar(qe,ke)}positionTrackingBar(He,tt){!nt.isNullOrUndefined(this.viewOptions.minLimit)&&He<this.viewOptions.minLimit&&(tt=Ne.roundToPrecisionLimit((He=this.viewOptions.minLimit)+this.dragging.difference,this.viewOptions.precisionLimit)),!nt.isNullOrUndefined(this.viewOptions.maxLimit)&&tt>this.viewOptions.maxLimit&&(He=Ne.roundToPrecisionLimit((tt=this.viewOptions.maxLimit)-this.dragging.difference,this.viewOptions.precisionLimit)),this.viewLowValue=He,this.viewHighValue=tt,this.applyViewChange(),this.updateHandles(Dt.Min,this.valueToPosition(He)),this.updateHandles(Dt.Max,this.valueToPosition(tt))}positionTrackingHandle(He){He=this.applyMinMaxLimit(He),this.range&&(this.viewOptions.pushRange?He=this.applyPushRange(He):(this.viewOptions.noSwitching&&(this.currentTrackingPointer===Dt.Min&&He>this.viewHighValue?He=this.applyMinMaxRange(this.viewHighValue):this.currentTrackingPointer===Dt.Max&&He<this.viewLowValue&&(He=this.applyMinMaxRange(this.viewLowValue))),He=this.applyMinMaxRange(He),this.currentTrackingPointer===Dt.Min&&He>this.viewHighValue?(this.viewLowValue=this.viewHighValue,this.applyViewChange(),this.updateHandles(Dt.Min,this.maxHandleElement.position),this.updateAriaAttributes(),this.currentTrackingPointer=Dt.Max,this.minHandleElement.active=!1,this.maxHandleElement.active=!0,this.viewOptions.keyboardSupport&&this.maxHandleElement.focus()):this.currentTrackingPointer===Dt.Max&&He<this.viewLowValue&&(this.viewHighValue=this.viewLowValue,this.applyViewChange(),this.updateHandles(Dt.Max,this.minHandleElement.position),this.updateAriaAttributes(),this.currentTrackingPointer=Dt.Min,this.maxHandleElement.active=!1,this.minHandleElement.active=!0,this.viewOptions.keyboardSupport&&this.minHandleElement.focus()))),this.getCurrentTrackingValue()!==He&&(this.currentTrackingPointer===Dt.Min?(this.viewLowValue=He,this.applyViewChange()):this.currentTrackingPointer===Dt.Max&&(this.viewHighValue=He,this.applyViewChange()),this.updateHandles(this.currentTrackingPointer,this.valueToPosition(He)),this.updateAriaAttributes())}applyMinMaxLimit(He){return!nt.isNullOrUndefined(this.viewOptions.minLimit)&&He<this.viewOptions.minLimit?this.viewOptions.minLimit:!nt.isNullOrUndefined(this.viewOptions.maxLimit)&&He>this.viewOptions.maxLimit?this.viewOptions.maxLimit:He}applyMinMaxRange(He){const Ke=Math.abs(He-(this.currentTrackingPointer===Dt.Min?this.viewHighValue:this.viewLowValue));if(!nt.isNullOrUndefined(this.viewOptions.minRange)&&Ke<this.viewOptions.minRange){if(this.currentTrackingPointer===Dt.Min)return Ne.roundToPrecisionLimit(this.viewHighValue-this.viewOptions.minRange,this.viewOptions.precisionLimit);if(this.currentTrackingPointer===Dt.Max)return Ne.roundToPrecisionLimit(this.viewLowValue+this.viewOptions.minRange,this.viewOptions.precisionLimit)}if(!nt.isNullOrUndefined(this.viewOptions.maxRange)&&Ke>this.viewOptions.maxRange){if(this.currentTrackingPointer===Dt.Min)return Ne.roundToPrecisionLimit(this.viewHighValue-this.viewOptions.maxRange,this.viewOptions.precisionLimit);if(this.currentTrackingPointer===Dt.Max)return Ne.roundToPrecisionLimit(this.viewLowValue+this.viewOptions.maxRange,this.viewOptions.precisionLimit)}return He}applyPushRange(He){const tt=this.currentTrackingPointer===Dt.Min?this.viewHighValue-He:He-this.viewLowValue,Ke=nt.isNullOrUndefined(this.viewOptions.minRange)?this.viewOptions.step:this.viewOptions.minRange,kt=this.viewOptions.maxRange;return tt<Ke?(this.currentTrackingPointer===Dt.Min?(this.viewHighValue=Ne.roundToPrecisionLimit(Math.min(He+Ke,this.viewOptions.ceil),this.viewOptions.precisionLimit),He=Ne.roundToPrecisionLimit(this.viewHighValue-Ke,this.viewOptions.precisionLimit),this.applyViewChange(),this.updateHandles(Dt.Max,this.valueToPosition(this.viewHighValue))):this.currentTrackingPointer===Dt.Max&&(this.viewLowValue=Ne.roundToPrecisionLimit(Math.max(He-Ke,this.viewOptions.floor),this.viewOptions.precisionLimit),He=Ne.roundToPrecisionLimit(this.viewLowValue+Ke,this.viewOptions.precisionLimit),this.applyViewChange(),this.updateHandles(Dt.Min,this.valueToPosition(this.viewLowValue))),this.updateAriaAttributes()):!nt.isNullOrUndefined(kt)&&tt>kt&&(this.currentTrackingPointer===Dt.Min?(this.viewHighValue=Ne.roundToPrecisionLimit(He+kt,this.viewOptions.precisionLimit),this.applyViewChange(),this.updateHandles(Dt.Max,this.valueToPosition(this.viewHighValue))):this.currentTrackingPointer===Dt.Max&&(this.viewLowValue=Ne.roundToPrecisionLimit(He-kt,this.viewOptions.precisionLimit),this.applyViewChange(),this.updateHandles(Dt.Min,this.valueToPosition(this.viewLowValue))),this.updateAriaAttributes()),He}getChangeContext(){const He=new ot;return He.pointerType=this.currentTrackingPointer,He.value=+this.value,this.range&&(He.highValue=+this.highValue),He}}return Ue.\u0275fac=function(He){return new(He||Ue)(x.Y36(x.Qsj),x.Y36(x.SBq),x.Y36(x.sBO),x.Y36(x.R0b))},Ue.\u0275cmp=x.Xpm({type:Ue,selectors:[["ngx-slider"]],contentQueries:function(He,tt,Ke){if(1&He&&x.Suo(Ke,Y,5),2&He){let kt;x.iGM(kt=x.CRH())&&(tt.tooltipTemplate=kt.first)}},viewQuery:function(He,tt){if(1&He&&(x.Gf(u,5,Me),x.Gf(W,5,Me),x.Gf(fe,5,Me),x.Gf(ae,5,Me),x.Gf(ye,5,We),x.Gf(Qe,5,We),x.Gf(Ot,5,Re),x.Gf(At,5,Re),x.Gf(Ze,5,Re),x.Gf(at,5,Re),x.Gf(Be,5,Re),x.Gf(Lt,5,Me)),2&He){let Ke;x.iGM(Ke=x.CRH())&&(tt.leftOuterSelectionBarElement=Ke.first),x.iGM(Ke=x.CRH())&&(tt.rightOuterSelectionBarElement=Ke.first),x.iGM(Ke=x.CRH())&&(tt.fullBarElement=Ke.first),x.iGM(Ke=x.CRH())&&(tt.selectionBarElement=Ke.first),x.iGM(Ke=x.CRH())&&(tt.minHandleElement=Ke.first),x.iGM(Ke=x.CRH())&&(tt.maxHandleElement=Ke.first),x.iGM(Ke=x.CRH())&&(tt.floorLabelElement=Ke.first),x.iGM(Ke=x.CRH())&&(tt.ceilLabelElement=Ke.first),x.iGM(Ke=x.CRH())&&(tt.minHandleLabelElement=Ke.first),x.iGM(Ke=x.CRH())&&(tt.maxHandleLabelElement=Ke.first),x.iGM(Ke=x.CRH())&&(tt.combinedLabelElement=Ke.first),x.iGM(Ke=x.CRH())&&(tt.ticksElement=Ke.first)}},hostAttrs:[1,"ngx-slider"],hostVars:8,hostBindings:function(He,tt){1&He&&x.NdJ("resize",function(kt){return tt.onResize(kt)},!1,x.Jf7),2&He&&(x.uIk("disabled",tt.sliderElementDisabledAttr)("aria-label",tt.sliderElementAriaLabel),x.ekj("vertical",tt.sliderElementVerticalClass)("animate",tt.sliderElementAnimateClass)("with-legend",tt.sliderElementWithLegendClass))},inputs:{value:"value",highValue:"highValue",options:"options",manualRefresh:"manualRefresh",triggerFocus:"triggerFocus"},outputs:{valueChange:"valueChange",highValueChange:"highValueChange",userChangeStart:"userChangeStart",userChange:"userChange",userChangeEnd:"userChangeEnd"},features:[x._Bn([gt]),x.TTD],decls:29,vars:13,consts:[["ngxSliderElement","",1,"ngx-slider-span","ngx-slider-bar-wrapper","ngx-slider-left-out-selection"],["leftOuterSelectionBar",""],[1,"ngx-slider-span","ngx-slider-bar"],["ngxSliderElement","",1,"ngx-slider-span","ngx-slider-bar-wrapper","ngx-slider-right-out-selection"],["rightOuterSelectionBar",""],["ngxSliderElement","",1,"ngx-slider-span","ngx-slider-bar-wrapper","ngx-slider-full-bar"],["fullBar",""],["ngxSliderElement","",1,"ngx-slider-span","ngx-slider-bar-wrapper","ngx-slider-selection-bar"],["selectionBar",""],[1,"ngx-slider-span","ngx-slider-bar","ngx-slider-selection",3,"ngStyle"],["ngxSliderHandle","",1,"ngx-slider-span","ngx-slider-pointer","ngx-slider-pointer-min",3,"ngStyle"],["minHandle",""],["ngxSliderHandle","",1,"ngx-slider-span","ngx-slider-pointer","ngx-slider-pointer-max",3,"ngStyle"],["maxHandle",""],["ngxSliderLabel","",1,"ngx-slider-span","ngx-slider-bubble","ngx-slider-limit","ngx-slider-floor"],["floorLabel",""],["ngxSliderLabel","",1,"ngx-slider-span","ngx-slider-bubble","ngx-slider-limit","ngx-slider-ceil"],["ceilLabel",""],["ngxSliderLabel","",1,"ngx-slider-span","ngx-slider-bubble","ngx-slider-model-value"],["minHandleLabel",""],["ngxSliderLabel","",1,"ngx-slider-span","ngx-slider-bubble","ngx-slider-model-high"],["maxHandleLabel",""],["ngxSliderLabel","",1,"ngx-slider-span","ngx-slider-bubble","ngx-slider-combined"],["combinedLabel",""],["ngxSliderElement","",1,"ngx-slider-ticks",3,"hidden"],["ticksElement",""],["class","ngx-slider-tick",3,"ngClass","ngStyle",4,"ngFor","ngForOf"],[1,"ngx-slider-tick",3,"ngClass","ngStyle"],[3,"template","tooltip","placement"],["class","ngx-slider-span ngx-slider-tick-value",3,"template","tooltip","placement","content",4,"ngIf"],["class","ngx-slider-span ngx-slider-tick-legend",3,"innerHTML",4,"ngIf"],[1,"ngx-slider-span","ngx-slider-tick-value",3,"template","tooltip","placement","content"],[1,"ngx-slider-span","ngx-slider-tick-legend",3,"innerHTML"]],template:function(He,tt){1&He&&(x.TgZ(0,"span",0,1),x._UZ(2,"span",2),x.qZA(),x.TgZ(3,"span",3,4),x._UZ(5,"span",2),x.qZA(),x.TgZ(6,"span",5,6),x._UZ(8,"span",2),x.qZA(),x.TgZ(9,"span",7,8),x._UZ(11,"span",9),x.qZA(),x._UZ(12,"span",10,11)(14,"span",12,13)(16,"span",14,15)(18,"span",16,17)(20,"span",18,19)(22,"span",20,21)(24,"span",22,23),x.TgZ(26,"span",24,25),x.YNc(28,Te,4,9,"span",26),x.qZA()),2&He&&(x.xp6(6),x.ekj("ngx-slider-transparent",tt.fullBarTransparentClass),x.xp6(3),x.ekj("ngx-slider-draggable",tt.selectionBarDraggableClass),x.xp6(2),x.Q6J("ngStyle",tt.barStyle),x.xp6(1),x.Q6J("ngStyle",tt.minPointerStyle),x.xp6(2),x.Udp("display",tt.range?"inherit":"none"),x.Q6J("ngStyle",tt.maxPointerStyle),x.xp6(12),x.ekj("ngx-slider-ticks-values-under",tt.ticksUnderValuesClass),x.Q6J("hidden",!tt.showTicks),x.xp6(2),x.Q6J("ngForOf",tt.ticks))},directives:function(){return[Me,$.PC,We,Re,$.sg,$.mk,hr,$.O5]},styles:[".ngx-slider{display:inline-block;position:relative;height:4px;width:100%;margin:35px 0 15px;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;touch-action:pan-y}  .ngx-slider.with-legend{margin-bottom:40px}  .ngx-slider[disabled]{cursor:not-allowed}  .ngx-slider[disabled] .ngx-slider-pointer{cursor:not-allowed;background-color:#d8e0f3}  .ngx-slider[disabled] .ngx-slider-draggable{cursor:not-allowed}  .ngx-slider[disabled] .ngx-slider-selection{background:#8b91a2}  .ngx-slider[disabled] .ngx-slider-tick{cursor:not-allowed}  .ngx-slider[disabled] .ngx-slider-tick.ngx-slider-selected{background:#8b91a2}  .ngx-slider .ngx-slider-span{white-space:nowrap;position:absolute;display:inline-block}  .ngx-slider .ngx-slider-base{width:100%;height:100%;padding:0}  .ngx-slider .ngx-slider-bar-wrapper{left:0;box-sizing:border-box;margin-top:-16px;padding-top:16px;width:100%;height:32px;z-index:1}  .ngx-slider .ngx-slider-draggable{cursor:move}  .ngx-slider .ngx-slider-bar{left:0;width:100%;height:4px;z-index:1;background:#d8e0f3;border-radius:2px}  .ngx-slider .ngx-slider-bar-wrapper.ngx-slider-transparent .ngx-slider-bar{background:0 0}  .ngx-slider .ngx-slider-bar-wrapper.ngx-slider-left-out-selection .ngx-slider-bar{background:#df002d}  .ngx-slider .ngx-slider-bar-wrapper.ngx-slider-right-out-selection .ngx-slider-bar{background:#03a688}  .ngx-slider .ngx-slider-selection{z-index:2;background:#0db9f0;border-radius:2px}  .ngx-slider .ngx-slider-pointer{cursor:pointer;width:32px;height:32px;top:-14px;background-color:#0db9f0;z-index:3;border-radius:16px}  .ngx-slider .ngx-slider-pointer:after{content:'';width:8px;height:8px;position:absolute;top:12px;left:12px;border-radius:4px;background:#fff}  .ngx-slider .ngx-slider-pointer:hover:after{background-color:#fff}  .ngx-slider .ngx-slider-pointer.ngx-slider-active{z-index:4}  .ngx-slider .ngx-slider-pointer.ngx-slider-active:after{background-color:#451aff}  .ngx-slider .ngx-slider-bubble{cursor:default;bottom:16px;padding:1px 3px;color:#55637d;font-size:16px}  .ngx-slider .ngx-slider-bubble.ngx-slider-limit{color:#55637d}  .ngx-slider .ngx-slider-ticks{box-sizing:border-box;width:100%;height:0;position:absolute;left:0;top:-3px;margin:0;z-index:1;list-style:none}  .ngx-slider .ngx-slider-ticks-values-under .ngx-slider-tick-value{top:auto;bottom:-36px}  .ngx-slider .ngx-slider-tick{text-align:center;cursor:pointer;width:10px;height:10px;background:#d8e0f3;border-radius:50%;position:absolute;top:0;left:0;margin-left:11px}  .ngx-slider .ngx-slider-tick.ngx-slider-selected{background:#0db9f0}  .ngx-slider .ngx-slider-tick-value{position:absolute;top:-34px;-webkit-transform:translate(-50%,0);transform:translate(-50%,0)}  .ngx-slider .ngx-slider-tick-legend{position:absolute;top:24px;-webkit-transform:translate(-50%,0);transform:translate(-50%,0);max-width:50px;white-space:normal}  .ngx-slider.vertical{position:relative;width:4px;height:100%;margin:0 20px;padding:0;vertical-align:baseline;touch-action:pan-x}  .ngx-slider.vertical .ngx-slider-base{width:100%;height:100%;padding:0}  .ngx-slider.vertical .ngx-slider-bar-wrapper{top:auto;left:0;margin:0 0 0 -16px;padding:0 0 0 16px;height:100%;width:32px}  .ngx-slider.vertical .ngx-slider-bar{bottom:0;left:auto;width:4px;height:100%}  .ngx-slider.vertical .ngx-slider-pointer{left:-14px!important;top:auto;bottom:0}  .ngx-slider.vertical .ngx-slider-bubble{left:16px!important;bottom:0}  .ngx-slider.vertical .ngx-slider-ticks{height:100%;width:0;left:-3px;top:0;z-index:1}  .ngx-slider.vertical .ngx-slider-tick{vertical-align:middle;margin-left:auto;margin-top:11px}  .ngx-slider.vertical .ngx-slider-tick-value{left:24px;top:auto;-webkit-transform:translate(0,-28%);transform:translate(0,-28%)}  .ngx-slider.vertical .ngx-slider-tick-legend{top:auto;right:24px;-webkit-transform:translate(0,-28%);transform:translate(0,-28%);max-width:none;white-space:nowrap}  .ngx-slider.vertical .ngx-slider-ticks-values-under .ngx-slider-tick-value{bottom:auto;left:auto;right:24px}  .ngx-slider *{transition:none}  .ngx-slider.animate .ngx-slider-bar-wrapper{transition:.3s linear}  .ngx-slider.animate .ngx-slider-selection{transition:background-color .3s linear}  .ngx-slider.animate .ngx-slider-pointer{transition:.3s linear}  .ngx-slider.animate .ngx-slider-pointer:after{transition:.3s linear}  .ngx-slider.animate .ngx-slider-bubble{transition:.3s linear}  .ngx-slider.animate .ngx-slider-bubble.ngx-slider-limit{transition:opacity .3s linear}  .ngx-slider.animate .ngx-slider-bubble.ngx-slider-combined{transition:opacity .3s linear}  .ngx-slider.animate .ngx-slider-tick{transition:background-color .3s linear}"]}),Ue})(),hr=(()=>{class Ue{}return Ue.\u0275fac=function(He){return new(He||Ue)},Ue.\u0275cmp=x.Xpm({type:Ue,selectors:[["ngx-slider-tooltip-wrapper"]],inputs:{template:"template",tooltip:"tooltip",placement:"placement",content:"content"},decls:2,vars:2,consts:[[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ngx-slider-inner-tooltip"]],template:function(He,tt){1&He&&(x.YNc(0,Ft,2,6,"ng-container",0),x.YNc(1,br,3,3,"ng-container",0)),2&He&&(x.Q6J("ngIf",tt.template),x.xp6(1),x.Q6J("ngIf",!tt.template))},directives:[$.O5,$.tP],styles:[".ngx-slider-inner-tooltip[_ngcontent-%COMP%]{height:100%}"]}),Ue})(),Cr=(()=>{class Ue{}return Ue.\u0275fac=function(He){return new(He||Ue)},Ue.\u0275mod=x.oAB({type:Ue}),Ue.\u0275inj=x.cJS({imports:[[$.ez]]}),Ue})()},71261:(M,b,n)=>{"use strict";n.d(b,{BG:()=>ie,XZ:()=>K});var t=n(70655),e=n(94650),l=n(21086),h=n(68896),r=n(56498),d=n(61221),y=n(13334),g=n(57770),p=n(87545),f=n(24850),C=n(5154),N=n(2313),a=n(27221),O=n(61709),H=n(47314),F=n(3639),V=n(12011),D=n(26774),U=n(29260);const J=new e.OlP("angularfire2.messaging.vapid-key"),G=new e.OlP("angularfire2.messaging.service-worker-registeration");let ie=(()=>{class re{constructor(B,s,_,w,E,x,j){const $=j,Y=(0,l.of)(void 0).pipe((0,y.R)(E.outsideAngular),(0,g.QV)(E.insideAngular),(0,p.w)(D.Gb),(0,p.w)(fe=>fe?n.e(4666).then(n.bind(n,4666)):h.E),(0,f.U)(()=>(0,V.on)(B,w,s)),(0,p.w)(fe=>(0,V.cc)(`${fe.name}.messaging`,"AngularFireMessaging",fe.name,()=>(0,t.mG)(this,void 0,void 0,function*(){return fe.messaging()}),[])),(0,C.d)({bufferSize:1,refCount:!1}));this.requestPermission=Y.pipe((0,y.R)(E.outsideAngular),(0,g.QV)(E.insideAngular),(0,p.w)(()=>Notification.requestPermission())),this.getToken=Y.pipe((0,y.R)(E.outsideAngular),(0,g.QV)(E.insideAngular),(0,p.w)(fe=>(0,t.mG)(this,void 0,void 0,function*(){if("granted"===Notification.permission){const ae=$?yield $:null;return yield fe.getToken({vapidKey:x,serviceWorkerRegistration:ae})}return null})));const u=new r.y(fe=>{navigator.permissions.query({name:"notifications"}).then(ae=>{ae.onchange=()=>fe.next()})}),W=Y.pipe((0,y.R)(E.outsideAngular),(0,g.QV)(E.insideAngular),(0,N.c)(u),(0,N.c)(this.getToken));return this.tokenChanges=Y.pipe((0,y.R)(E.outsideAngular),(0,g.QV)(E.insideAngular),(0,p.w)(()=>(0,d.z)(this.getToken,W))),this.messages=Y.pipe((0,y.R)(E.outsideAngular),(0,g.QV)(E.insideAngular),(0,p.w)(fe=>new r.y(ae=>fe.onMessage(ae)))),this.requestToken=Y.pipe((0,y.R)(E.outsideAngular),(0,g.QV)(E.insideAngular),(0,p.w)(()=>this.requestPermission),(0,a.K)(()=>(0,l.of)(null)),(0,O.zg)(()=>this.tokenChanges)),this.deleteToken=()=>Y.pipe((0,y.R)(E.outsideAngular),(0,g.QV)(E.insideAngular),(0,p.w)(fe=>fe.deleteToken()),(0,H.d)(!1)),(0,V.pX)(this,Y,w)}}return re.\u0275fac=function(B){return new(B||re)(e.LFG(V.Dh),e.LFG(V.xv,8),e.LFG(e.Lbi),e.LFG(e.R0b),e.LFG(F.HU),e.LFG(J,8),e.LFG(G,8))},re.\u0275prov=e.Yz7({token:re,factory:re.\u0275fac,providedIn:"any"}),re})(),K=(()=>{class re{constructor(){U.Z.registerVersion("angularfire",F.q4.full,"fcm-compat")}}return re.\u0275fac=function(B){return new(B||re)},re.\u0275mod=e.oAB({type:re}),re.\u0275inj=e.cJS({providers:[ie]}),re})()},12011:(M,b,n)=>{"use strict";n.d(b,{Dh:()=>g,GT:()=>d,Ot:()=>y,cc:()=>O,hO:()=>a,on:()=>f,pX:()=>r,xv:()=>p});var t=n(94650),e=n(29260),l=n(3639);M=n.hmd(M);const h=["ngOnDestroy"],r=(D,U,q,J={})=>new Proxy(D,{get:(G,ie)=>q.runOutsideAngular(()=>{var K;if(D[ie])return(null===(K=null==J?void 0:J.spy)||void 0===K?void 0:K.get)&&J.spy.get(ie,D[ie]),D[ie];if(h.indexOf(ie)>-1)return()=>{};const re=U.toPromise().then(oe=>{const B=oe&&oe[ie];return"function"==typeof B?B.bind(oe):B&&B.then?B.then(s=>q.run(()=>s)):q.run(()=>B)});return new Proxy(()=>{},{get:(oe,B)=>re[B],apply:(oe,B,s)=>re.then(_=>{var w;const E=_&&_(...s);return(null===(w=null==J?void 0:J.spy)||void 0===w?void 0:w.apply)&&J.spy.apply(ie,s,E),E})})})}),d=(D,U)=>{U.forEach(q=>{Object.getOwnPropertyNames(q.prototype||q).forEach(J=>{Object.defineProperty(D.prototype,J,Object.getOwnPropertyDescriptor(q.prototype||q,J))})})};class y{constructor(U){return U}}const g=new t.OlP("angularfire2.app.options"),p=new t.OlP("angularfire2.app.name");function f(D,U,q){const G="object"==typeof q&&q||{};G.name=G.name||"string"==typeof q&&q||"[DEFAULT]";const K=e.Z.apps.filter(re=>re&&re.name===G.name)[0]||U.runOutsideAngular(()=>e.Z.initializeApp(D,G));try{JSON.stringify(D)!==JSON.stringify(K.options)&&C("error",`${K.name} Firebase App already initialized with different options${M.hot?", you may need to reload as Firebase is not HMR aware.":"."}`)}catch{}return new y(K)}const C=(D,...U)=>{(0,t.X6Q)()&&typeof console<"u"&&console[D](...U)},N={provide:y,useFactory:f,deps:[g,t.R0b,[new t.FiY,p]]};let a=(()=>{class D{constructor(q){e.Z.registerVersion("angularfire",l.q4.full,"core"),e.Z.registerVersion("angularfire",l.q4.full,"app-compat"),e.Z.registerVersion("angular",t.q4F.full,q.toString())}static initializeApp(q,J){return{ngModule:D,providers:[{provide:g,useValue:q},{provide:p,useValue:J}]}}}return D.\u0275fac=function(q){return new(q||D)(t.LFG(t.Lbi))},D.\u0275mod=t.oAB({type:D}),D.\u0275inj=t.cJS({providers:[N]}),D})();function O(D,U,q,J,G){const[,ie,K]=globalThis.\u0275AngularfireInstanceCache.find(re=>re[0]===D)||[];if(ie)return function H(D,U){try{return D.toString()===U.toString()}catch{return D===U}}(G,K)||(V("error",`${U} was already initialized on the ${q} Firebase App with different settings.${F?" You may need to reload as Firebase is not HMR aware.":""}`),V("warn",{is:G,was:K})),ie;{const re=J();return globalThis.\u0275AngularfireInstanceCache.push([D,re,G]),re}}const F=!!M.hot,V=(D,...U)=>{(0,t.X6Q)()&&typeof console<"u"&&console[D](...U)};globalThis.\u0275AngularfireInstanceCache||(globalThis.\u0275AngularfireInstanceCache=[])},3639:(M,b,n)=>{"use strict";n.d(b,{q4:()=>Yt,iC:()=>Fe,HU:()=>Pt,vb:()=>Ut,JM:()=>gt});var t=n(94650),e=n(70259),l=n(49671),h=n(49681),r=n(42090),d=n(34859),y=n(41877);n(12833);const p="@firebase/remote-config",f="0.4.4",O=new r.LL("remoteconfig","Remote Config",{"registration-window":"Undefined window object. This SDK only supports usage in a browser environment.","registration-project-id":"Undefined project identifier. Check Firebase app initialization.","registration-api-key":"Undefined API key. Check Firebase app initialization.","registration-app-id":"Undefined app identifier. Check Firebase app initialization.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","storage-delete":"Error thrown when deleting from storage. Original error: {$originalErrorMessage}.","fetch-client-network":"Fetch client failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-timeout":'The config fetch request timed out.  Configure timeout using "fetchTimeoutMillis" SDK setting.',"fetch-throttle":'The config fetch request timed out while in an exponential backoff state. Configure timeout using "fetchTimeoutMillis" SDK setting. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.',"fetch-client-parse":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","indexed-db-unavailable":"Indexed DB is not supported by current browser"});class ${constructor(ct,vt,$t,Vr){this.client=ct,this.storage=vt,this.storageCache=$t,this.logger=Vr}isCachedDataFresh(ct,vt){if(!vt)return this.logger.debug("Config fetch cache check. Cache unpopulated."),!1;const $t=Date.now()-vt,Vr=$t<=ct;return this.logger.debug(`Config fetch cache check. Cache age millis: ${$t}. Cache max age millis (minimumFetchIntervalMillis setting): ${ct}. Is cache hit: ${Vr}.`),Vr}fetch(ct){var vt=this;return(0,l.Z)(function*(){const[$t,Vr]=yield Promise.all([vt.storage.getLastSuccessfulFetchTimestampMillis(),vt.storage.getLastSuccessfulFetchResponse()]);if(Vr&&vt.isCachedDataFresh(ct.cacheMaxAgeMillis,$t))return Vr;ct.eTag=Vr&&Vr.eTag;const Sr=yield vt.client.fetch(ct),Ar=[vt.storageCache.setLastSuccessfulFetchTimestampMillis(Date.now())];return 200===Sr.status&&Ar.push(vt.storage.setLastSuccessfulFetchResponse(Sr)),yield Promise.all(Ar),Sr})()}}function Y(ke=navigator){return ke.languages&&ke.languages[0]||ke.language}class u{constructor(ct,vt,$t,Vr,Sr,Ar){this.firebaseInstallations=ct,this.sdkVersion=vt,this.namespace=$t,this.projectId=Vr,this.apiKey=Sr,this.appId=Ar}fetch(ct){var vt=this;return(0,l.Z)(function*(){const[$t,Vr]=yield Promise.all([vt.firebaseInstallations.getId(),vt.firebaseInstallations.getToken()]),Ar=`${window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfig.googleapis.com"}/v1/projects/${vt.projectId}/namespaces/${vt.namespace}:fetch?key=${vt.apiKey}`,Jr={"Content-Type":"application/json","Content-Encoding":"gzip","If-None-Match":ct.eTag||"*"},Fr={sdk_version:vt.sdkVersion,app_instance_id:$t,app_instance_id_token:Vr,app_id:vt.appId,language_code:Y()},Gt={method:"POST",headers:Jr,body:JSON.stringify(Fr)},le=fetch(Ar,Gt),Ce=new Promise((Ct,zt)=>{ct.signal.addEventListener(()=>{const kr=new Error("The operation was aborted.");kr.name="AbortError",zt(kr)})});let Ie;try{yield Promise.race([le,Ce]),Ie=yield le}catch(Ct){let zt="fetch-client-network";throw"AbortError"===(null==Ct?void 0:Ct.name)&&(zt="fetch-timeout"),O.create(zt,{originalErrorMessage:null==Ct?void 0:Ct.message})}let Pe=Ie.status;const Oe=Ie.headers.get("ETag")||void 0;let Se,Xe;if(200===Ie.status){let Ct;try{Ct=yield Ie.json()}catch(zt){throw O.create("fetch-client-parse",{originalErrorMessage:null==zt?void 0:zt.message})}Se=Ct.entries,Xe=Ct.state}if("INSTANCE_STATE_UNSPECIFIED"===Xe?Pe=500:"NO_CHANGE"===Xe?Pe=304:("NO_TEMPLATE"===Xe||"EMPTY_CONFIG"===Xe)&&(Se={}),304!==Pe&&200!==Pe)throw O.create("fetch-status",{httpStatus:Pe});return{status:Pe,eTag:Oe,config:Se}})()}}class ae{constructor(ct,vt){this.client=ct,this.storage=vt}fetch(ct){var vt=this;return(0,l.Z)(function*(){const $t=(yield vt.storage.getThrottleMetadata())||{backoffCount:0,throttleEndTimeMillis:Date.now()};return vt.attemptFetch(ct,$t)})()}attemptFetch(ct,{throttleEndTimeMillis:vt,backoffCount:$t}){var Vr=this;return(0,l.Z)(function*(){yield function W(ke,ct){return new Promise((vt,$t)=>{const Vr=Math.max(ct-Date.now(),0),Sr=setTimeout(vt,Vr);ke.addEventListener(()=>{clearTimeout(Sr),$t(O.create("fetch-throttle",{throttleEndTimeMillis:ct}))})})}(ct.signal,vt);try{const Sr=yield Vr.client.fetch(ct);return yield Vr.storage.deleteThrottleMetadata(),Sr}catch(Sr){if(!function fe(ke){if(!(ke instanceof r.ZR&&ke.customData))return!1;const ct=Number(ke.customData.httpStatus);return 429===ct||500===ct||503===ct||504===ct}(Sr))throw Sr;const Ar={throttleEndTimeMillis:Date.now()+(0,r.$s)($t),backoffCount:$t+1};return yield Vr.storage.setThrottleMetadata(Ar),Vr.attemptFetch(ct,Ar)}})()}}class Ot{constructor(ct,vt,$t,Vr,Sr){this.app=ct,this._client=vt,this._storageCache=$t,this._storage=Vr,this._logger=Sr,this._isInitializationComplete=!1,this.settings={fetchTimeoutMillis:6e4,minimumFetchIntervalMillis:432e5},this.defaultConfig={}}get fetchTimeMillis(){return this._storageCache.getLastSuccessfulFetchTimestampMillis()||-1}get lastFetchStatus(){return this._storageCache.getLastFetchStatus()||"no-fetch-yet"}}function At(ke,ct){const vt=ke.target.error||void 0;return O.create(ct,{originalErrorMessage:vt&&(null==vt?void 0:vt.message)})}const Ze="app_namespace_store";class _e{constructor(ct,vt,$t,Vr=function Lt(){return new Promise((ke,ct)=>{try{const vt=indexedDB.open("firebase_remote_config",1);vt.onerror=$t=>{ct(At($t,"storage-open"))},vt.onsuccess=$t=>{ke($t.target.result)},vt.onupgradeneeded=$t=>{0===$t.oldVersion&&$t.target.result.createObjectStore(Ze,{keyPath:"compositeKey"})}}catch(vt){ct(O.create("storage-open",{originalErrorMessage:null==vt?void 0:vt.message}))}})}()){this.appId=ct,this.appName=vt,this.namespace=$t,this.openDbPromise=Vr}getLastFetchStatus(){return this.get("last_fetch_status")}setLastFetchStatus(ct){return this.set("last_fetch_status",ct)}getLastSuccessfulFetchTimestampMillis(){return this.get("last_successful_fetch_timestamp_millis")}setLastSuccessfulFetchTimestampMillis(ct){return this.set("last_successful_fetch_timestamp_millis",ct)}getLastSuccessfulFetchResponse(){return this.get("last_successful_fetch_response")}setLastSuccessfulFetchResponse(ct){return this.set("last_successful_fetch_response",ct)}getActiveConfig(){return this.get("active_config")}setActiveConfig(ct){return this.set("active_config",ct)}getActiveConfigEtag(){return this.get("active_config_etag")}setActiveConfigEtag(ct){return this.set("active_config_etag",ct)}getThrottleMetadata(){return this.get("throttle_metadata")}setThrottleMetadata(ct){return this.set("throttle_metadata",ct)}deleteThrottleMetadata(){return this.delete("throttle_metadata")}get(ct){var vt=this;return(0,l.Z)(function*(){const $t=yield vt.openDbPromise;return new Promise((Vr,Sr)=>{const Jr=$t.transaction([Ze],"readonly").objectStore(Ze),Fr=vt.createCompositeKey(ct);try{const Gt=Jr.get(Fr);Gt.onerror=le=>{Sr(At(le,"storage-get"))},Gt.onsuccess=le=>{const Ce=le.target.result;Vr(Ce?Ce.value:void 0)}}catch(Gt){Sr(O.create("storage-get",{originalErrorMessage:null==Gt?void 0:Gt.message}))}})})()}set(ct,vt){var $t=this;return(0,l.Z)(function*(){const Vr=yield $t.openDbPromise;return new Promise((Sr,Ar)=>{const Fr=Vr.transaction([Ze],"readwrite").objectStore(Ze),Gt=$t.createCompositeKey(ct);try{const le=Fr.put({compositeKey:Gt,value:vt});le.onerror=Ce=>{Ar(At(Ce,"storage-set"))},le.onsuccess=()=>{Sr()}}catch(le){Ar(O.create("storage-set",{originalErrorMessage:null==le?void 0:le.message}))}})})()}delete(ct){var vt=this;return(0,l.Z)(function*(){const $t=yield vt.openDbPromise;return new Promise((Vr,Sr)=>{const Jr=$t.transaction([Ze],"readwrite").objectStore(Ze),Fr=vt.createCompositeKey(ct);try{const Gt=Jr.delete(Fr);Gt.onerror=le=>{Sr(At(le,"storage-delete"))},Gt.onsuccess=()=>{Vr()}}catch(Gt){Sr(O.create("storage-delete",{originalErrorMessage:null==Gt?void 0:Gt.message}))}})})()}createCompositeKey(ct){return[this.appId,this.appName,this.namespace,ct].join()}}class ne{constructor(ct){this.storage=ct}getLastFetchStatus(){return this.lastFetchStatus}getLastSuccessfulFetchTimestampMillis(){return this.lastSuccessfulFetchTimestampMillis}getActiveConfig(){return this.activeConfig}loadFromStorage(){var ct=this;return(0,l.Z)(function*(){const vt=ct.storage.getLastFetchStatus(),$t=ct.storage.getLastSuccessfulFetchTimestampMillis(),Vr=ct.storage.getActiveConfig(),Sr=yield vt;Sr&&(ct.lastFetchStatus=Sr);const Ar=yield $t;Ar&&(ct.lastSuccessfulFetchTimestampMillis=Ar);const Jr=yield Vr;Jr&&(ct.activeConfig=Jr)})()}setLastFetchStatus(ct){return this.lastFetchStatus=ct,this.storage.setLastFetchStatus(ct)}setLastSuccessfulFetchTimestampMillis(ct){return this.lastSuccessfulFetchTimestampMillis=ct,this.storage.setLastSuccessfulFetchTimestampMillis(ct)}setActiveConfig(ct){return this.activeConfig=ct,this.storage.setActiveConfig(ct)}}function ft(){return Ge.apply(this,arguments)}function Ge(){return(Ge=(0,l.Z)(function*(){if(!(0,r.hl)())return!1;try{return yield(0,r.eu)()}catch{return!1}})).apply(this,arguments)}!function be(){(0,h._registerComponent)(new d.wA("remote-config",function ke(ct,{instanceIdentifier:vt}){const $t=ct.getProvider("app").getImmediate(),Vr=ct.getProvider("installations-internal").getImmediate();if(typeof window>"u")throw O.create("registration-window");if(!(0,r.hl)())throw O.create("indexed-db-unavailable");const{projectId:Sr,apiKey:Ar,appId:Jr}=$t.options;if(!Sr)throw O.create("registration-project-id");if(!Ar)throw O.create("registration-api-key");if(!Jr)throw O.create("registration-app-id");const Fr=new _e(Jr,$t.name,vt=vt||"firebase"),Gt=new ne(Fr),le=new y.Yd(p);le.logLevel=y.in.ERROR;const Ce=new u(Vr,h.SDK_VERSION,vt,Sr,Ar,Jr),Ie=new ae(Ce,Fr),Pe=new $(Ie,Fr,Gt,le),Oe=new Ot($t,Pe,Gt,Fr,le);return function K(ke){const ct=(0,r.m9)(ke);ct._initializePromise||(ct._initializePromise=ct._storageCache.loadFromStorage().then(()=>{ct._isInitializationComplete=!0}))}(Oe),Oe},"PUBLIC").setMultipleInstances(!0)),(0,h.registerVersion)(p,f),(0,h.registerVersion)(p,f,"esm2017")}();var Ft=n(26774),br=n(85132),rt=n(30341),st=n(20353),Dt=n(2994),ot=n(13334),nt=n(57770);const Yt=new t.GfV("7.5.0"),Ne="__angularfire_symbol__analyticsIsSupportedValue",X="__angularfire_symbol__analyticsIsSupported",ge="__angularfire_symbol__remoteConfigIsSupportedValue",Me="__angularfire_symbol__remoteConfigIsSupported",We="__angularfire_symbol__messagingIsSupportedValue",Re="__angularfire_symbol__messagingIsSupported";function gt(ke,ct,vt){if(ct){if(1===ct.length)return ct[0];const Sr=ct.filter(Ar=>Ar.app===vt);if(1===Sr.length)return Sr[0]}return vt.container.getProvider(ke).getImmediate({optional:!0})}globalThis[X]||(globalThis[X]=(0,br.Gb)().then(ke=>globalThis[Ne]=ke).catch(()=>globalThis[Ne]=!1)),globalThis[Re]||(globalThis[Re]=(0,Ft.Gb)().then(ke=>globalThis[We]=ke).catch(()=>globalThis[We]=!1)),globalThis[Me]||(globalThis[Me]=ft().then(ke=>globalThis[ge]=ke).catch(()=>globalThis[ge]=!1));const Ut=(ke,ct)=>{const vt=ct?[ct]:(0,e.C6)(),$t=[];return vt.forEach(Vr=>{Vr.container.getProvider(ke).instances.forEach(Ar=>{$t.includes(Ar)||$t.push(Ar)})}),$t};function hr(){}class Cr{constructor(ct,vt=rt.N){this.zone=ct,this.delegate=vt}now(){return this.delegate.now()}schedule(ct,vt,$t){const Vr=this.zone;return this.delegate.schedule(function(Ar){Vr.runGuarded(()=>{ct.apply(this,[Ar])})},vt,$t)}}class Ue{constructor(ct){this.zone=ct,this.task=null}call(ct,vt){const $t=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",hr,{},hr,hr)),vt.pipe((0,Dt.b)({next:$t,complete:$t,error:$t})).subscribe(ct).add($t)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}let Pt=(()=>{class ke{constructor(vt){this.ngZone=vt,this.outsideAngular=vt.runOutsideAngular(()=>new Cr(Zone.current)),this.insideAngular=vt.run(()=>new Cr(Zone.current,st.z)),globalThis.\u0275AngularFireScheduler||(globalThis.\u0275AngularFireScheduler=this)}}return ke.\u0275fac=function(vt){return new(vt||ke)(t.LFG(t.R0b))},ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})();function He(){const ke=globalThis.\u0275AngularFireScheduler;if(!ke)throw new Error("Either AngularFireModule has not been provided in your AppModule (this can be done manually or implictly using\nprovideFirebaseApp) or you're calling an AngularFire method outside of an NgModule (which is not supported).");return ke}function Fe(ke){return He(),function lt(ke){return function(vt){return(vt=vt.lift(new Ue(ke.ngZone))).pipe((0,ot.R)(ke.outsideAngular),(0,nt.QV)(ke.insideAngular))}}(He())(ke)}},42090:(M,b,n)=>{"use strict";n.d(b,{$s:()=>He,BH:()=>ie,DV:()=>$e,Dv:()=>We,GJ:()=>be,L:()=>p,LL:()=>Qe,Pz:()=>G,Sg:()=>K,UG:()=>B,UI:()=>Ge,US:()=>d,Wj:()=>Zt,Wl:()=>at,Yr:()=>$,ZB:()=>N,ZR:()=>ye,aH:()=>J,b$:()=>w,cI:()=>Ze,dS:()=>wt,eu:()=>W,g5:()=>l,gK:()=>Re,gQ:()=>nt,h$:()=>g,hl:()=>u,hu:()=>e,jU:()=>s,lb:()=>cr,m9:()=>kt,ne:()=>Yt,p$:()=>C,pd:()=>ot,r3:()=>Te,ru:()=>_,tV:()=>f,uI:()=>oe,ug:()=>gt,vZ:()=>Ft,w1:()=>x,w9:()=>ne,xO:()=>st,xb:()=>ft,z$:()=>re,zI:()=>fe,zd:()=>Dt});const e=function(xe,Fe){if(!xe)throw l(Fe)},l=function(xe){return new Error("Firebase Database (${JSCORE_VERSION}) INTERNAL ASSERT FAILED: "+xe)},h=function(xe){const Fe=[];let lt=0;for(let St=0;St<xe.length;St++){let qe=xe.charCodeAt(St);qe<128?Fe[lt++]=qe:qe<2048?(Fe[lt++]=qe>>6|192,Fe[lt++]=63&qe|128):55296==(64512&qe)&&St+1<xe.length&&56320==(64512&xe.charCodeAt(St+1))?(qe=65536+((1023&qe)<<10)+(1023&xe.charCodeAt(++St)),Fe[lt++]=qe>>18|240,Fe[lt++]=qe>>12&63|128,Fe[lt++]=qe>>6&63|128,Fe[lt++]=63&qe|128):(Fe[lt++]=qe>>12|224,Fe[lt++]=qe>>6&63|128,Fe[lt++]=63&qe|128)}return Fe},d={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(xe,Fe){if(!Array.isArray(xe))throw Error("encodeByteArray takes an array as a parameter");this.init_();const lt=Fe?this.byteToCharMapWebSafe_:this.byteToCharMap_,St=[];for(let qe=0;qe<xe.length;qe+=3){const ke=xe[qe],ct=qe+1<xe.length,vt=ct?xe[qe+1]:0,$t=qe+2<xe.length,Vr=$t?xe[qe+2]:0;let Jr=(15&vt)<<2|Vr>>6,Fr=63&Vr;$t||(Fr=64,ct||(Jr=64)),St.push(lt[ke>>2],lt[(3&ke)<<4|vt>>4],lt[Jr],lt[Fr])}return St.join("")},encodeString(xe,Fe){return this.HAS_NATIVE_SUPPORT&&!Fe?btoa(xe):this.encodeByteArray(h(xe),Fe)},decodeString(xe,Fe){return this.HAS_NATIVE_SUPPORT&&!Fe?atob(xe):function(xe){const Fe=[];let lt=0,St=0;for(;lt<xe.length;){const qe=xe[lt++];if(qe<128)Fe[St++]=String.fromCharCode(qe);else if(qe>191&&qe<224){const ke=xe[lt++];Fe[St++]=String.fromCharCode((31&qe)<<6|63&ke)}else if(qe>239&&qe<365){const $t=((7&qe)<<18|(63&xe[lt++])<<12|(63&xe[lt++])<<6|63&xe[lt++])-65536;Fe[St++]=String.fromCharCode(55296+($t>>10)),Fe[St++]=String.fromCharCode(56320+(1023&$t))}else{const ke=xe[lt++],ct=xe[lt++];Fe[St++]=String.fromCharCode((15&qe)<<12|(63&ke)<<6|63&ct)}}return Fe.join("")}(this.decodeStringToByteArray(xe,Fe))},decodeStringToByteArray(xe,Fe){this.init_();const lt=Fe?this.charToByteMapWebSafe_:this.charToByteMap_,St=[];for(let qe=0;qe<xe.length;){const ke=lt[xe.charAt(qe++)],vt=qe<xe.length?lt[xe.charAt(qe)]:0;++qe;const Vr=qe<xe.length?lt[xe.charAt(qe)]:64;++qe;const Ar=qe<xe.length?lt[xe.charAt(qe)]:64;if(++qe,null==ke||null==vt||null==Vr||null==Ar)throw new y;St.push(ke<<2|vt>>4),64!==Vr&&(St.push(vt<<4&240|Vr>>2),64!==Ar&&St.push(Vr<<6&192|Ar))}return St},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let xe=0;xe<this.ENCODED_VALS.length;xe++)this.byteToCharMap_[xe]=this.ENCODED_VALS.charAt(xe),this.charToByteMap_[this.byteToCharMap_[xe]]=xe,this.byteToCharMapWebSafe_[xe]=this.ENCODED_VALS_WEBSAFE.charAt(xe),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[xe]]=xe,xe>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(xe)]=xe,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(xe)]=xe)}}};class y extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const g=function(xe){const Fe=h(xe);return d.encodeByteArray(Fe,!0)},p=function(xe){return g(xe).replace(/\./g,"")},f=function(xe){try{return d.decodeString(xe,!0)}catch(Fe){console.error("base64Decode failed: ",Fe)}return null};function C(xe){return N(void 0,xe)}function N(xe,Fe){if(!(Fe instanceof Object))return Fe;switch(Fe.constructor){case Date:return new Date(Fe.getTime());case Object:void 0===xe&&(xe={});break;case Array:xe=[];break;default:return Fe}for(const lt in Fe)!Fe.hasOwnProperty(lt)||!a(lt)||(xe[lt]=N(xe[lt],Fe[lt]));return xe}function a(xe){return"__proto__"!==xe}const D=()=>{try{return function O(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__||(()=>{if(typeof process>"u"||typeof process.env>"u")return;const xe=process.env.__FIREBASE_DEFAULTS__;return xe?JSON.parse(xe):void 0})()||(()=>{if(typeof document>"u")return;let xe;try{xe=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const Fe=xe&&f(xe[1]);return Fe&&JSON.parse(Fe)})()}catch(xe){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${xe}`)}},J=()=>{var xe;return null===(xe=D())||void 0===xe?void 0:xe.config},G=xe=>{var Fe;return null===(Fe=D())||void 0===Fe?void 0:Fe[`_${xe}`]};class ie{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((Fe,lt)=>{this.resolve=Fe,this.reject=lt})}wrapCallback(Fe){return(lt,St)=>{lt?this.reject(lt):this.resolve(St),"function"==typeof Fe&&(this.promise.catch(()=>{}),1===Fe.length?Fe(lt):Fe(lt,St))}}}function K(xe,Fe){if(xe.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const St=Fe||"demo-project",qe=xe.iat||0,ke=xe.sub||xe.user_id;if(!ke)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const ct=Object.assign({iss:`https://securetoken.google.com/${St}`,aud:St,iat:qe,exp:qe+3600,auth_time:qe,sub:ke,user_id:ke,firebase:{sign_in_provider:"custom",identities:{}}},xe);return[p(JSON.stringify({alg:"none",type:"JWT"})),p(JSON.stringify(ct)),""].join(".")}function re(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function oe(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(re())}function B(){var xe;const Fe=null===(xe=D())||void 0===xe?void 0:xe.forceEnvironment;if("node"===Fe)return!0;if("browser"===Fe)return!1;try{return"[object process]"===Object.prototype.toString.call(global.process)}catch{return!1}}function s(){return"object"==typeof self&&self.self===self}function _(){const xe="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof xe&&void 0!==xe.id}function w(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function x(){const xe=re();return xe.indexOf("MSIE ")>=0||xe.indexOf("Trident/")>=0}function $(){return!1}function u(){try{return"object"==typeof indexedDB}catch{return!1}}function W(){return new Promise((xe,Fe)=>{try{let lt=!0;const St="validate-browser-context-for-indexeddb-analytics-module",qe=self.indexedDB.open(St);qe.onsuccess=()=>{qe.result.close(),lt||self.indexedDB.deleteDatabase(St),xe(!0)},qe.onupgradeneeded=()=>{lt=!1},qe.onerror=()=>{var ke;Fe((null===(ke=qe.error)||void 0===ke?void 0:ke.message)||"")}}catch(lt){Fe(lt)}})}function fe(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}class ye extends Error{constructor(Fe,lt,St){super(lt),this.code=Fe,this.customData=St,this.name="FirebaseError",Object.setPrototypeOf(this,ye.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Qe.prototype.create)}}class Qe{constructor(Fe,lt,St){this.service=Fe,this.serviceName=lt,this.errors=St}create(Fe,...lt){const St=lt[0]||{},qe=`${this.service}/${Fe}`,ke=this.errors[Fe],ct=ke?function Ot(xe,Fe){return xe.replace(At,(lt,St)=>{const qe=Fe[St];return null!=qe?String(qe):`<${St}?>`})}(ke,St):"Error";return new ye(qe,`${this.serviceName}: ${ct} (${qe}).`,St)}}const At=/\{\$([^}]+)}/g;function Ze(xe){return JSON.parse(xe)}function at(xe){return JSON.stringify(xe)}const Be=function(xe){let Fe={},lt={},St={},qe="";try{const ke=xe.split(".");Fe=Ze(f(ke[0])||""),lt=Ze(f(ke[1])||""),qe=ke[2],St=lt.d||{},delete lt.d}catch{}return{header:Fe,claims:lt,data:St,signature:qe}},ne=function(xe){const lt=Be(xe).claims;return!!lt&&"object"==typeof lt&&lt.hasOwnProperty("iat")},be=function(xe){const Fe=Be(xe).claims;return"object"==typeof Fe&&!0===Fe.admin};function Te(xe,Fe){return Object.prototype.hasOwnProperty.call(xe,Fe)}function $e(xe,Fe){if(Object.prototype.hasOwnProperty.call(xe,Fe))return xe[Fe]}function ft(xe){for(const Fe in xe)if(Object.prototype.hasOwnProperty.call(xe,Fe))return!1;return!0}function Ge(xe,Fe,lt){const St={};for(const qe in xe)Object.prototype.hasOwnProperty.call(xe,qe)&&(St[qe]=Fe.call(lt,xe[qe],qe,xe));return St}function Ft(xe,Fe){if(xe===Fe)return!0;const lt=Object.keys(xe),St=Object.keys(Fe);for(const qe of lt){if(!St.includes(qe))return!1;const ke=xe[qe],ct=Fe[qe];if(br(ke)&&br(ct)){if(!Ft(ke,ct))return!1}else if(ke!==ct)return!1}for(const qe of St)if(!lt.includes(qe))return!1;return!0}function br(xe){return null!==xe&&"object"==typeof xe}function st(xe){const Fe=[];for(const[lt,St]of Object.entries(xe))Array.isArray(St)?St.forEach(qe=>{Fe.push(encodeURIComponent(lt)+"="+encodeURIComponent(qe))}):Fe.push(encodeURIComponent(lt)+"="+encodeURIComponent(St));return Fe.length?"&"+Fe.join("&"):""}function Dt(xe){const Fe={};return xe.replace(/^\?/,"").split("&").forEach(St=>{if(St){const[qe,ke]=St.split("=");Fe[decodeURIComponent(qe)]=decodeURIComponent(ke)}}),Fe}function ot(xe){const Fe=xe.indexOf("?");if(!Fe)return"";const lt=xe.indexOf("#",Fe);return xe.substring(Fe,lt>0?lt:void 0)}class nt{constructor(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(let Fe=1;Fe<this.blockSize;++Fe)this.pad_[Fe]=0;this.reset()}reset(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0}compress_(Fe,lt){lt||(lt=0);const St=this.W_;if("string"==typeof Fe)for(let Ar=0;Ar<16;Ar++)St[Ar]=Fe.charCodeAt(lt)<<24|Fe.charCodeAt(lt+1)<<16|Fe.charCodeAt(lt+2)<<8|Fe.charCodeAt(lt+3),lt+=4;else for(let Ar=0;Ar<16;Ar++)St[Ar]=Fe[lt]<<24|Fe[lt+1]<<16|Fe[lt+2]<<8|Fe[lt+3],lt+=4;for(let Ar=16;Ar<80;Ar++){const Jr=St[Ar-3]^St[Ar-8]^St[Ar-14]^St[Ar-16];St[Ar]=4294967295&(Jr<<1|Jr>>>31)}let Vr,Sr,qe=this.chain_[0],ke=this.chain_[1],ct=this.chain_[2],vt=this.chain_[3],$t=this.chain_[4];for(let Ar=0;Ar<80;Ar++){Ar<40?Ar<20?(Vr=vt^ke&(ct^vt),Sr=1518500249):(Vr=ke^ct^vt,Sr=1859775393):Ar<60?(Vr=ke&ct|vt&(ke|ct),Sr=2400959708):(Vr=ke^ct^vt,Sr=3395469782);const Jr=(qe<<5|qe>>>27)+Vr+$t+Sr+St[Ar]&4294967295;$t=vt,vt=ct,ct=4294967295&(ke<<30|ke>>>2),ke=qe,qe=Jr}this.chain_[0]=this.chain_[0]+qe&4294967295,this.chain_[1]=this.chain_[1]+ke&4294967295,this.chain_[2]=this.chain_[2]+ct&4294967295,this.chain_[3]=this.chain_[3]+vt&4294967295,this.chain_[4]=this.chain_[4]+$t&4294967295}update(Fe,lt){if(null==Fe)return;void 0===lt&&(lt=Fe.length);const St=lt-this.blockSize;let qe=0;const ke=this.buf_;let ct=this.inbuf_;for(;qe<lt;){if(0===ct)for(;qe<=St;)this.compress_(Fe,qe),qe+=this.blockSize;if("string"==typeof Fe){for(;qe<lt;)if(ke[ct]=Fe.charCodeAt(qe),++ct,++qe,ct===this.blockSize){this.compress_(ke),ct=0;break}}else for(;qe<lt;)if(ke[ct]=Fe[qe],++ct,++qe,ct===this.blockSize){this.compress_(ke),ct=0;break}}this.inbuf_=ct,this.total_+=lt}digest(){const Fe=[];let lt=8*this.total_;this.update(this.pad_,this.inbuf_<56?56-this.inbuf_:this.blockSize-(this.inbuf_-56));for(let qe=this.blockSize-1;qe>=56;qe--)this.buf_[qe]=255&lt,lt/=256;this.compress_(this.buf_);let St=0;for(let qe=0;qe<5;qe++)for(let ke=24;ke>=0;ke-=8)Fe[St]=this.chain_[qe]>>ke&255,++St;return Fe}}function Yt(xe,Fe){const lt=new Ne(xe,Fe);return lt.subscribe.bind(lt)}class Ne{constructor(Fe,lt){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=lt,this.task.then(()=>{Fe(this)}).catch(St=>{this.error(St)})}next(Fe){this.forEachObserver(lt=>{lt.next(Fe)})}error(Fe){this.forEachObserver(lt=>{lt.error(Fe)}),this.close(Fe)}complete(){this.forEachObserver(Fe=>{Fe.complete()}),this.close()}subscribe(Fe,lt,St){let qe;if(void 0===Fe&&void 0===lt&&void 0===St)throw new Error("Missing Observer.");qe=function ge(xe,Fe){if("object"!=typeof xe||null===xe)return!1;for(const lt of Fe)if(lt in xe&&"function"==typeof xe[lt])return!0;return!1}(Fe,["next","error","complete"])?Fe:{next:Fe,error:lt,complete:St},void 0===qe.next&&(qe.next=Me),void 0===qe.error&&(qe.error=Me),void 0===qe.complete&&(qe.complete=Me);const ke=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?qe.error(this.finalError):qe.complete()}catch{}}),this.observers.push(qe),ke}unsubscribeOne(Fe){void 0===this.observers||void 0===this.observers[Fe]||(delete this.observers[Fe],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(Fe){if(!this.finalized)for(let lt=0;lt<this.observers.length;lt++)this.sendOne(lt,Fe)}sendOne(Fe,lt){this.task.then(()=>{if(void 0!==this.observers&&void 0!==this.observers[Fe])try{lt(this.observers[Fe])}catch(St){typeof console<"u"&&console.error&&console.error(St)}})}close(Fe){this.finalized||(this.finalized=!0,void 0!==Fe&&(this.finalError=Fe),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function Me(){}const We=function(xe,Fe,lt,St){let qe;if(St<Fe?qe="at least "+Fe:St>lt&&(qe=0===lt?"none":"no more than "+lt),qe)throw new Error(xe+" failed: Was called with "+St+(1===St?" argument.":" arguments.")+" Expects "+qe+".")};function Re(xe,Fe){return`${xe} failed: ${Fe} argument `}function Zt(xe,Fe,lt,St){if((!St||lt)&&"function"!=typeof lt)throw new Error(Re(xe,Fe)+"must be a valid function.")}function cr(xe,Fe,lt,St){if((!St||lt)&&("object"!=typeof lt||null===lt))throw new Error(Re(xe,Fe)+"must be a valid context object.")}const wt=function(xe){const Fe=[];let lt=0;for(let St=0;St<xe.length;St++){let qe=xe.charCodeAt(St);if(qe>=55296&&qe<=56319){const ke=qe-55296;St++,e(St<xe.length,"Surrogate pair missing trail surrogate."),qe=65536+(ke<<10)+(xe.charCodeAt(St)-56320)}qe<128?Fe[lt++]=qe:qe<2048?(Fe[lt++]=qe>>6|192,Fe[lt++]=63&qe|128):qe<65536?(Fe[lt++]=qe>>12|224,Fe[lt++]=qe>>6&63|128,Fe[lt++]=63&qe|128):(Fe[lt++]=qe>>18|240,Fe[lt++]=qe>>12&63|128,Fe[lt++]=qe>>6&63|128,Fe[lt++]=63&qe|128)}return Fe},gt=function(xe){let Fe=0;for(let lt=0;lt<xe.length;lt++){const St=xe.charCodeAt(lt);St<128?Fe++:St<2048?Fe+=2:St>=55296&&St<=56319?(Fe+=4,lt++):Fe+=3}return Fe};function He(xe,Fe=1e3,lt=2){const St=Fe*Math.pow(lt,xe),qe=Math.round(.5*St*(Math.random()-.5)*2);return Math.min(144e5,St+qe)}function kt(xe){return xe&&xe._delegate?xe._delegate:xe}},40345:(M,b,n)=>{"use strict";n.d(b,{y$:()=>Ne,if:()=>pt,SN:()=>We,vr:()=>Me,Jj:()=>X,dT:()=>ge,YJ:()=>Zt,fL:()=>Re});var t=n(13861),e=n(591),l=n(77528),h=n(39723),r=n(73038),d=n(94650),y=n(66699),g=n(51848),p=n(97028);let f=(()=>{class cr{constructor(gt,Ut){this.swUpdate=gt,this.tagManager=Ut,this.developmentMode=y.Sq,gt.versionUpdates.subscribe(hr=>{if("VERSION_READY"===hr.type)try{if(hr.latestVersion.appData?.force)X()?.location.reload();else{const Cr=[];hr.latestVersion.appData?.changeList&&(Cr.push("\u0644\u06cc\u0633\u062a \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a:"),hr.latestVersion.appData?.changeList[`${hr.latestVersion.appData.version}`].forEach((Ue,Pt)=>{Pt<10?Cr.push(`${Pt+1}. ${Ue}`):10===Pt&&Cr.push("\u0648...")})),r.j.data.next(null),r.j.bgWhite=!0,r.j.desktopStyle=!0,r.j.hideDesktopHeaderClose=!0,r.j.disableBackdropClosing=!0,r.j.fullScreen.next(!1),r.j.basicModalData.next({img:"assets/images/logo-wepod.png",title:`\u0646\u0633\u062e\u0647 \u062c\u062f\u06cc\u062f \u0648\u0628 ${hr.latestVersion.appData.version} \u062f\u0631 \u062f\u0633\u062a\u0631\u0633 \u0627\u0633\u062a\u060c \u0622\u06cc\u0627 \u0628\u0631\u0627\u06cc \u0628\u0647 \u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc \u062a\u0645\u0627\u06cc\u0644 \u062f\u0627\u0631\u06cc\u062f\u061f`,desc:Cr.length?Cr:null,rtlDesc:!0,buttons:{first:{title:"\u062a\u0627\u06cc\u06cc\u062f",action:()=>{(0,y.Sq)("DataLayerGoogleAnalytics")&&this.tagManager.pushEvent("update_submit",{}),X()?.location.reload()},green:!0},second:{title:"\u0627\u0646\u0635\u0631\u0627\u0641",action:()=>{(0,r.Mr)()},gray:!0}}}),(0,r.h7)("basicModal")}}catch(Cr){console.log("ngsw error",Cr)}})}}return cr.\u0275fac=function(gt){return new(gt||cr)(d.LFG(g.yO),d.LFG(p.c))},cr.\u0275prov=d.Yz7({token:cr,factory:cr.\u0275fac,providedIn:"root"}),cr})();var C=n(16738),N=n(79473),a=n(32209),O=n(75558),H=n(61262),F=n(92198);let V=(()=>{class cr{constructor(gt){this.router=gt,this.history=[],gt.events.pipe((0,F.h)(Ut=>Ut instanceof t.m2)).subscribe(Ut=>{30===this.history.length&&this.history.splice(0,1),this.history.push(Ut.url)})}}return cr.\u0275fac=function(gt){return new(gt||cr)(d.LFG(t.F0))},cr.\u0275prov=d.Yz7({token:cr,factory:cr.\u0275fac,providedIn:"root"}),cr})();var D=n(11495),U=n(65117),q=n(28864),J=n(56751),G=n(70655),ie=n(21086),K=n(68896),re=n(36895),oe=n(57770),B=n(87545),s=n(24850),_=n(5154),w=n(3639),E=n(12011),x=n(85132);n(29260);const Y=new d.OlP("angularfire2.analytics.analyticsCollectionEnabled"),u=new d.OlP("angularfire2.analytics.appVersion"),W=new d.OlP("angularfire2.analytics.appName"),fe=new d.OlP("angularfire2.analytics.debugMode"),ae=new d.OlP("angularfire2.analytics.config"),at="dataLayer";let Lt=(()=>{class cr{constructor(gt,Ut,hr,Cr,Ue,Pt,He,tt,Ke){if(this.analyticsInitialized=new Promise(()=>{}),(0,re.NF)(He)){window[at]=window[at]||[];const xe=(...St)=>"config"===St[0]&&"firebase"===St[2].origin&&(this.measurementId=St[1],!0),Fe=St=>{window.gtag=(...qe)=>{St&&St(...qe),"event"===qe[0]&&qe[2].send_to===this.measurementId&&(Cr&&(qe[2].app_name=Cr),hr&&(qe[2].app_version=hr)),Ue&&typeof console<"u"&&console.info(...qe),function(...ke){window[at].push(arguments)}(...qe)}};window[at].some(xe)?(this.analyticsInitialized=Promise.resolve(),Fe()):this.analyticsInitialized=new Promise(St=>{Fe((...qe)=>{xe(...qe)&&St()})}),Pt&&this.updateConfig(Pt),Ue&&this.updateConfig({debug_mode:1})}else this.analyticsInitialized=Promise.resolve();const kt=(0,ie.of)(void 0).pipe((0,oe.QV)(Ke.outsideAngular),(0,B.w)(x.Gb),(0,B.w)(xe=>xe?tt.runOutsideAngular(()=>n.e(3814).then(n.bind(n,13814))):K.E),(0,s.U)(()=>(0,E.cc)("analytics","AngularFireAnalytics",gt.name,()=>{const xe=gt.analytics();return!1===Ut&&xe.setAnalyticsCollectionEnabled(!1),xe},[gt,Ut,Pt,Ue])),(0,_.d)({bufferSize:1,refCount:!1}));return(0,E.pX)(this,kt,tt)}updateConfig(gt){return(0,G.mG)(this,void 0,void 0,function*(){yield this.analyticsInitialized,window.gtag("config",this.measurementId,Object.assign(Object.assign({},gt),{update:!0}))})}}return cr.\u0275fac=function(gt){return new(gt||cr)(d.LFG(E.Ot),d.LFG(Y,8),d.LFG(u,8),d.LFG(W,8),d.LFG(fe,8),d.LFG(ae,8),d.LFG(d.Lbi),d.LFG(d.R0b),d.LFG(w.HU))},cr.\u0275prov=d.Yz7({token:cr,factory:cr.\u0275fac,providedIn:"any"}),cr})();var $e=n(97693),ft=n(71261);let Ge=(()=>{class cr{constructor(gt,Ut){this.toastrService=gt,this.angularFireMessaging=Ut}requestPermission(){this.angularFireMessaging.requestToken.subscribe(gt=>{console.log(gt)},gt=>{console.error("Unable to get permission to notify.",gt)})}receiveMessage(){this.angularFireMessaging.messages.subscribe(gt=>{if(gt.notification)console.log("msg is",gt.data),this.toastrService.error(gt.notification?.title);else if(gt.data){const hr=JSON.parse(gt.data.notification);this.toastrService.error(hr.title)}})}}return cr.\u0275fac=function(gt){return new(gt||cr)(d.LFG($e.X),d.LFG(ft.BG))},cr.\u0275prov=d.Yz7({token:cr,factory:cr.\u0275fac,providedIn:"root"}),cr})();var Ft=n(26116),br=n(43904),rt=n(11213),st=n(55154),Dt=n(79614),ot=n(75176),nt=n(31312);function Yt(cr,wt){1&cr&&(d.TgZ(0,"div",3)(1,"div",4),d._UZ(2,"img",5),d.qZA()()),2&cr&&d.Q6J("@inOutLoading",void 0)}let Ne=(()=>{class cr{constructor(gt,Ut,hr,Cr,Ue,Pt,He,tt,Ke,kt,xe,Fe,lt,St,qe,ke,ct,vt,$t,Vr,Sr,Ar,Jr){this.router=gt,this.activatedRoute=Ut,this.pwaService=hr,this.routingHistoryService=Cr,this.wepodMainService=Ue,this.browserStorageService=Pt,this.authService=He,this.ratingService=tt,this.publishHelperService=Ke,this.navigationHistoryBankService=kt,this.serviceStoreDataPassingService=xe,this.splashScreenStateService=Fe,this.loanService=lt,this.chatDataPassingService=St,this.analyticsService=qe,this.messagingService=ke,this.redirectService=ct,this.onlineStatusService=vt,this.routingAppService=$t,this.claimService=Vr,this.landingService=Sr,this.physicalCardDataPassingService=Ar,this.activeDevicesService=Jr,this.window=X(),this.onlineStatusService.status.subscribe(Gt=>{this.checkNetworkStatus(Gt)});let Fr=!1;this.router.events.subscribe(Gt=>{if(Gt instanceof t.gk&&1===Gt.id&&Gt.reason.match("At least one route resolver didn't emit any value")&&!gt.navigated&&this.routingAppService.navigate([""],{replaceUrl:!0}),Gt instanceof t.m2&&!Gt.url.includes("chat")&&(this.chatDataPassingService.activeThread.next(null),this.chatDataPassingService.draftThread.next(null),this.chatDataPassingService.flags.activeThread.reset(),this.chatDataPassingService.flags.draftThread.reset()),!Fr&&(Fr=!0,Gt instanceof t.OD&&!Gt.url.includes("guest")&&!Gt.url.includes("wepodauth")))if(this.authService.getToken()||Gt.url.includes("signup")||Gt.url.includes("finish-authorization")||Gt.url.includes("finish-reset-password")||Gt.url.includes("payment-finish-authorization")){if(this.authService.getToken()&&!Gt.url.includes("finish-authorization")&&!Gt.url.includes("payment-finish-authorization")){ge.open.asObservable().subscribe(Ce=>{!0===Ce&&(Pt.getLocalItem("userAlreadyRated")||tt.getRating().subscribe(Pe=>{Pe.userAlreadyRated||(r.j.bgWhite=!0,r.j.disableBackdropClosing=!0,r.j.hideDesktopHeaderClose=!0,r.j.desktopStyle=!0,(0,r.h7)("ratingModal"),Pt.setLocalItem("userAlreadyRated","true"),ge.open.next(!1))}))}),ge.status.asObservable().subscribe(Ce=>{}),ct.availability()?ct.redirect():(Gt.url.includes("/signup")||"/"===Gt.url||""===Gt.url)&&(this.browserStorageService.removeLocalItem(h.B.userSignupModel),this.routingAppService.navigate(["landing"]));const le=X()?.location.host;le.includes("web")||le.includes("levelup")||le.includes("pre-release")||le.includes("localhost")||this.claimService.isUserOnWhiteList().subscribe(Ce=>{if(!Ce.isOnTheWhiteList)try{this.wepodMainService.deleteCookie("keyId"),this.activeDevicesService.terminateCurrentSession().subscribe(Ie=>{this.authService.logoutClient()},()=>{this.authService.logoutClient()})}catch(Ie){console.error(Ie)}})}}else if(X()){const le=X()?.location.href;let Ce={};const Ie=le.split("?",2);Ie[1]?(Ce={cbu:Ie[0]},Ie[1].split("&",2).forEach(Pe=>{const Oe=Pe.split("=",2);2===Oe.length&&(Ce[Oe[0]]=Oe[1])}),this.routingAppService.navigate(["signup"],{queryParams:Ce})):this.routingAppService.navigate(["signup"],{queryParams:{cbu:le}})}}),Cr.dispatch()}ngOnInit(){this.messagingService.receiveMessage(),this.messagingService.requestPermission(),this.splashScreenStateService.authCode.next(this.activatedRoute.snapshot.queryParamMap.get("auth_code")),this.activatedRoute.queryParams.subscribe(gt=>{if(gt.ref&&this.wepodMainService.setCookie("refCode",this.activatedRoute.snapshot?.queryParamMap.get("ref"),.0104),(!Me||!We)&&(Me=this.activatedRoute.snapshot.queryParamMap.get("theme"),We=this.activatedRoute.snapshot.queryParamMap.get("logo"),Me?.length)){const Ut=document.createElement("style");Ut.innerHTML=".new-header {background: #customTheme !important;}.steps-progress-status-step-active {border-color: #customTheme !important;}.steps-progress-status-step-label-passed {color: #customTheme !important;}.btn-success {background-color: #customTheme !important;border: 1px solid #customTheme !important;}.btn-success:hover:not(:disabled), .btn-success:active, .btn-success:focus {background-color: #customTheme !important;border: 1px solid #customTheme !important;}.basic-modal-btns-confirm {color: #customTheme !important;}.landing-wrapper .landing-toolbar {background-color: #customTheme !important;}.landing-wrapper .landing-toolbar button {background-color: #customTheme !important;}.custom-theme-bg {display: block !important;background-color: #customTheme !important;height: 200px;opacity: 0.8;}.main-container .content-container .header-page {background-color: #customTheme !important;}header.header button.active {color: #customTheme !important;}header.header button.active::before {background: #customTheme !important;}.steps-progress-status-step-passed {color: #customTheme !important;background-color: #customTheme !important;}.steps-progress-status-separator-active {background: #customTheme !important;}.physical-card .steps-progress-status-step-passed-label {color: #customTheme !important;}app-message.message.my-message app-message-bubble {background-color: #customTheme;filter: brightness(150%);}app-message-bubble.money-request-green {background: #customTheme !important;filter: brightness(100%) !important;}app-bot-view-invoice, app-bot-view-transfer-to-contact, app-bot-view-transfer-to-user, app-bot-view-transfer-from-thing {background-color: #customTheme !important;}app-bot-view-invoice .message-transaction .buttons-accept, app-bot-view-transfer-to-contact .message-transaction .buttons-accept, app-bot-view-transfer-to-user .message-transaction .buttons-accept, app-bot-view-transfer-from-thing .message-transaction .buttons-accept {color: #customTheme !important;}.bg-green {background-color: #customTheme !important;}".replace(/customTheme/g,Me),document.getElementsByTagName("body")[0].appendChild(Ut)}X()&&(X().onpopstate=()=>{r.j.open.value&&(0,r.Mr)()})})}checkNetworkStatus(gt){gt?r.j.data?.value?.networkModal&&(0,r.Mr)():(r.j.data.next({networkModal:!0}),r.j.bgWhite=!0,r.j.desktopStyle=!0,r.j.hideDesktopHeaderClose=!0,r.j.disableBackdropClosing=!0,r.j.fullScreen.next(!1),r.j.basicModalData.next({img:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAH4AAAB+CAMAAADV/VW6AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAABjUExURUdwTAC2eQC5ewaudgC3eQC2eQC1eA6wewC2eAC1eAC3ewC2eQC3egC2eQC2eSBvUwC2eSoqKioqKisrKygyLywsLCotLC0tLSoqKioqKisrKxxXQwWhbQ+BWikvLQC1eCoqKsJGc4kAAAAfdFJOUwCLJBdPw9cG9eYweD+yZA6f88SQ6ThnJ6PVVs/IwXiRtChCAAAFiklEQVRo3sWb63qjIBCGRUBADpo2bZLubpP7v8qNOSIwiIo6f/usI8PLfB/jpigWjK/jaXf6ZcU28Xu5xemwSfafyyM+tsje7J/pL98bpP9+Zb8cN0j/8U5/Wj/71zv7Fpt/tNJ/rg/ezkp/2BK8zLUvlUFtqymtBBeiolS3yJAaQ+BdfjIlrg3SFT8DISgyNfPB2+XourXUYGIrOJXqmu4zJ3hlWurXK2iZDzxs6Hls/M0EXkP0eUL8yQJe3fIpyc9VDvAUPU+Mf/PBI5OTn/l+LnimOk+PueCROcl98Mpxp3wYdnFttC2S0kiJENJUxMBjoiLJyZnk0abWSlL7MDOsZPvoxy54pHslMrvuj34ae3V1bY8eeHeGacILYLDu1VDq1yv8OuCVz0fQIQZqAWw1qid5vBt46F0+GV2BDNe8VWPAPXjg2TVUIwsv5Mim+RkAz4oWAy02VPjKjO3YbBcEz1oPSS08JeM71jcE3juQvyQUKDuZ0q1h8KxlORvAWh84NEkoXfDCfUT0CGQ+dHrojDJc1ooQolTP4gY8XvAFpIU8HVX3ksi23+SvEtBKhUPg3d40JJ/ts7jY+6PGYGrTCtjjtAa4XIR0RD/yu2vnEpKDSOohjxdQ0TuAxl1DuL/WSMzzeMT79xX2F6+bkN+V1XyP13jHS1z5FhCRbzQRz+PxjPscyvrpTYA2xLN5vLLyzp/FBPfPG0N8mscLT5Pc/kYL9c7uqyERIxxmD7wrQizUuvqki3dXFh7y5Tir73k8jgINhNjlrLqmxMNCLGdeLnSnHP4LKCt/e0ObSFKm274zrzQyqi4x61q/IgZp4YN3l1puYpYO9HBKjLO7WLngIdBhvg4A1F+DMn2zfSxJahvb4/kOk6GosLFg4TVhEz2eWwB23W9TQ09raGjh5TiP11sBH+GcfAUOEgxMzwGPl2yeSh+6Fo/yeN8heGiT5pS9tVM10uM1zuXC0tfBcJtN4OAmgBfyN1XKPZ8muQ+3ZHbH+7oT5LtnkfAsHnaE48ADJKMafppIKjzuxsqaduPkbt7wEZRa5vkLOZje1n8FDJa1A5ZwwAM1kw5P8+JbVYZsH+zxWP8A8uF9RBFQgWGfDx6g7yJlpsfD0DFo2Bf3ePbIRCfNkZUhAZtQTfR4lsEcMaNJdh8geJ6IyKnZCU/3eDUOzwqnDQx8fgfA08JvF6wm5eTC0zGXi05q6eRNTribxMFD4/R98JOGAKbK3UxZthqQ2jR9naD/19StwYMeT2TZABS3nJ7U6kkGL1X/z20NSm33mR6PE7iR+u8h7Upt3yyp2elFdDkDHq+anT5+/7fBO/oD5PNs/FTM9nng1c45IdnQpzju8U6h/jx/8+8jjrDtC3k8u03xLL2vJOH74CEotdYlDRULBnPBcy/IdLH/LYY7uwt6PCOmz+RTZEi7Unvy9ks1CyV/jkeH53hLxFP/Bz3eIvEajP1zwMNrZK854PHKLAI7tO8i5PFO9+5oFk/fQh7vpnVLr1+Bl4vbrJiXy6anwcvF8fUXuix34OWizKawSb4zAF7q/GR6VFHwcik8eOri4C2tsWoAvDzuEvY9Q+B1gZdP74JHcppbeOoD3WpZVnM7tPe+1PLop8hcSg+A19v7BRuPAOZ4Jq+1j+ud5/EasQr5D8Jd8Bqd9VYZcfYiAF7/k9+iNwsZ7XjLHvuH6EQ63rK1vzlNSGoX5/7e+Wzwft15hl44u3er7c0zxOJe/zcCHl+69EURAW+Fe8YPDJ5Yfu2937v0wdMr3PEwBB5dYekQeBWqi1XCldpSEVWv9nu/n8umv/NywFs58CbjFBC8leMU+Va7bu03AO+wKXhFsdsSPHt+vsVvS4vDc/n7LRZ/7Xr3/PuvYpvAx/3u4zPf2v8DSQBFpAr3s4QAAAAASUVORK5CYII=",title:"\u0627\u062a\u0635\u0627\u0644 \u0628\u0647 \u0627\u06cc\u0646\u062a\u0631\u0646\u062a \u0628\u0631\u0642\u0631\u0627\u0631 \u0646\u06cc\u0633\u062a",desc:["\u06a9\u0627\u0631\u0628\u0631 \u06af\u0631\u0627\u0645\u06cc\u060c \u0644\u0637\u0641\u0627 \u0627\u062a\u0635\u0627\u0644 \u062f\u0633\u062a\u06af\u0627\u0647 \u062e\u0648\u062f \u0628\u0647 \u0627\u06cc\u0646\u062a\u0631\u0646\u062a \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f."],extraClass:"network-status-modal",buttons:{first:{title:"\u0628\u0633\u062a\u0646",action:()=>{(0,r.Mr)()},gray:!0,fullSize:!0}}}),(0,r.h7)("basicModal"))}}return cr.\u0275fac=function(gt){return new(gt||cr)(d.Y36(t.F0),d.Y36(t.gz),d.Y36(f),d.Y36(C.Y),d.Y36(N.g),d.Y36(a.z),d.Y36(O.e),d.Y36(H.V),d.Y36(y.Zp),d.Y36(V),d.Y36(D.p),d.Y36(U.$),d.Y36(q.BZ),d.Y36(J.FM),d.Y36(Lt),d.Y36(Ge),d.Y36(Ft.V),d.Y36(br.qV),d.Y36(rt.s),d.Y36(st.U),d.Y36(Dt.U),d.Y36(ot.z),d.Y36(nt.V))},cr.\u0275cmp=d.Xpm({type:cr,selectors:[["app-root"]],decls:5,vars:1,consts:[[1,"wepod-container-fluid"],[1,"main-container"],["class","over-page-loading",4,"ngIf"],[1,"over-page-loading"],[1,"over-page-loading-center"],["src","assets/images/spinner/loading-circle-light-gray.svg","alt",""]],template:function(gt,Ut){1&gt&&(d.TgZ(0,"div",0)(1,"div",1),d._UZ(2,"router-outlet")(3,"app-splash-screen"),d.YNc(4,Yt,3,1,"div",2),d.qZA()()),2&gt&&(d.xp6(4),d.Q6J("ngIf",!Ut.publishHelperService.gotDisableFeatures()&&Ut.window))},encapsulation:2,data:{animation:[l.z.animations.inOutLoading]}}),cr})();function X(){try{if(window?.navigator)return window}catch{}}const ge={open:new e.X(!1),status:new e.X(null),getStatus:()=>{ge.status.next(null)}};let Me="",We="",Re="";const pt=!1;let Zt=new e.X(!1)},46389:(M,b,n)=>{"use strict";n.d(b,{a:()=>h});var t=n(40345),e=n(94650),l=n(75558);let h=(()=>{class r{constructor(y){this.authService=y}canLoad(y,g){return!(!this.authService.getToken()&&"finish-authorization"!==(0,t.Jj)()?.location?.pathname.split("/")[1]&&"finish-reset-password"!==(0,t.Jj)()?.location?.pathname.split("/")[1]&&"payment-finish-authorization"!==(0,t.Jj)()?.location?.pathname.split("/")[1]&&(this.authService.logoutClient(),1))}}return r.\u0275fac=function(y){return new(y||r)(e.LFG(l.e))},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac}),r})()},75558:(M,b,n)=>{"use strict";n.d(b,{e:()=>d});var t=n(40345),e=n(39723),l=n(94650),h=n(80529),r=n(32209);let d=(()=>{class y{constructor(p,f){this.http=p,this.storageService=f}refreshToken(){const p=this.getToken();return this.http.post("oauth2/api/v1/token/refresh",{accessToken:p})}getToken(){return this.storageService.getLocalItem(e.B.accessToken)}saveToken(p){this.storageService.setLocalItem(e.B.accessToken,p)}removeToken(){this.storageService.removeLocalItem(e.B.accessToken)}getActionUrl(){return this.storageService.getLocalItem(e.B.actionUrl)}setActionUrl(p){this.storageService.setLocalItem(e.B.actionUrl,p)}removeActionUrl(){this.storageService.removeLocalItem(e.B.actionUrl)}handleError(p,f){return console.error("auth service error",p),f}logoutClient(p=!0,f=!1){console.log("Logging Out..."),this.storageService.clearAllStorage(f),(0,t.Jj)()&&p&&("finish-authorization"===(0,t.Jj)()?.location?.pathname.split("/")[1]||"finish-reset-password"===(0,t.Jj)()?.location?.pathname.split("/")[1]||"payment-finish-authorization"===(0,t.Jj)()?.location?.pathname.split("/")[1]||((0,t.Jj)().location.href="/"))}}return y.\u0275fac=function(p){return new(p||y)(l.LFG(h.eN),l.LFG(r.z))},y.\u0275prov=l.Yz7({token:y,factory:y.\u0275fac}),y})()},62561:(M,b,n)=>{"use strict";n.d(b,{Z:()=>h});var t=n(591),e=n(94650),l=n(11213);let h=(()=>{class r{constructor(y){this.routingAppService=y,this.modalClose=new t.X(!1),this.modalDispatcher$=this.modalClose.asObservable()}close(){this.routingAppService.back()}reset(){this.modalClose.next(!1)}}return r.\u0275fac=function(y){return new(y||r)(e.LFG(l.s))},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac}),r})()},19885:(M,b,n)=>{"use strict";n.d(b,{q:()=>h});var t=n(49840),l=n(94650);let h=(()=>{class r{transform(y){return t.utc(1e3*y).format("mm:ss")}}return r.\u0275fac=function(y){return new(y||r)},r.\u0275pipe=l.Yjl({name:"countDownTime",type:r,pure:!0}),r})()},56437:(M,b,n)=>{"use strict";n.d(b,{M:()=>e});var t=n(94650);let e=(()=>{class l{transform(r){return r?(new DOMParser).parseFromString(r,"text/html").body.textContent:""}}return l.\u0275fac=function(r){return new(r||l)},l.\u0275pipe=t.Yjl({name:"escapeHtml",type:l,pure:!0}),l})()},75869:(M,b,n)=>{"use strict";n.d(b,{AU:()=>d,E0:()=>y,Fo:()=>C,G$:()=>f,Jr:()=>H,KK:()=>h,TQ:()=>N,Z$:()=>r,_D:()=>g,p7:()=>p,vB:()=>a,w5:()=>O});var t=n(49840),l=n(94650);let h=(()=>{class F{transform(D){try{return"object"==typeof D||String(D).trim().indexOf("+00:00")>-1||(D=t(D).format("YYYY/MM/DD HH:mm:ss")+"+00:00"),t(D,"YYYY/MM/DD HH:mm:ssZ").locale("fa").format("YYYY/MM/DD")}catch{}}}return F.\u0275fac=function(D){return new(D||F)},F.\u0275pipe=l.Yjl({name:"jalaliDate",type:F,pure:!0}),F})(),r=(()=>{class F{transform(D){try{if(String(D).indexOf("Z")>-1){let U;return U=(new Date).getTimezoneOffset()!==new Date(D.replace("Z","")).getTimezoneOffset()?t(D,"YYYY/MM/DD HH:mm:ss").add((new Date).getTimezoneOffset()-new Date(D.replace("Z","")).getTimezoneOffset(),"m"):t(D,"YYYY/MM/DD HH:mm:ss"),U.locale("fa").format("YYYY/MM/DD HH:mm")}return"object"==typeof D||String(D).trim().indexOf("+00:00")>-1||(D=t(D).format("YYYY/MM/DD HH:mm:ss")+"+00:00"),t(D,"YYYY/MM/DD HH:mm:ssZ").locale("fa").format("YYYY/MM/DD HH:mm")}catch{}}}return F.\u0275fac=function(D){return new(D||F)},F.\u0275pipe=l.Yjl({name:"jalaliDateYYYYMMDDHHmm",type:F,pure:!0}),F})(),d=(()=>{class F{transform(D){try{if(String(D).indexOf("Z")>-1){let U;return U=(new Date).getTimezoneOffset()!==new Date(D.replace("Z","")).getTimezoneOffset()?t(D,"YYYY/MM/DD HH:mm:ss").add((new Date).getTimezoneOffset()-new Date(D.replace("Z","")).getTimezoneOffset(),"m"):t(D,"YYYY/MM/DD HH:mm:ss"),U.locale("fa").format("YYYY/MM/DD HH:mm")}return"object"==typeof D||String(D).trim().indexOf("+00:00")>-1||(D=t(D).format("YYYY/MM/DD HH:mm:ss")+"+00:00"),t(D,"YYYY/MM/DD HH:mm:ssZ").locale("fa").format("YYYY/MM/DD HH:mm")}catch{}}}return F.\u0275fac=function(D){return new(D||F)},F.\u0275pipe=l.Yjl({name:"jalaliDateYYYYMMDDHHmmForBorrow",type:F,pure:!0}),F})(),y=(()=>{class F{transform(D){try{if(String(D).indexOf("Z")>-1){let U;return U=(new Date).getTimezoneOffset()!==new Date(D.replace("Z","")).getTimezoneOffset()?t(D,"YYYY/MM/DD HH:mm:ss").add((new Date).getTimezoneOffset()-new Date(D.replace("Z","")).getTimezoneOffset(),"m"):t(D,"YYYY/MM/DD HH:mm:ss"),U.locale("fa").format("YYYY/MM")}return"object"==typeof D||String(D).trim().indexOf("+00:00")>-1||(D=t(D).format("YYYY/MM/DD HH:mm:ss")+"+00:00"),t(D,"YYYY/MM/DD HH:mm:ssZ").locale("fa").format("YYYY/MM")}catch{}}}return F.\u0275fac=function(D){return new(D||F)},F.\u0275pipe=l.Yjl({name:"jalaliDateYYMM",type:F,pure:!0}),F})(),g=(()=>{class F{transform(D){try{return t(D).locale("fa").format("jDD jMMMM")}catch{}}}return F.\u0275fac=function(D){return new(D||F)},F.\u0275pipe=l.Yjl({name:"jalaliDateMMMMDD",type:F,pure:!0}),F})(),p=(()=>{class F{transform(D){try{if(String(D).indexOf("Z")>-1){let U;return U=(new Date).getTimezoneOffset()!==new Date(D.replace("Z","")).getTimezoneOffset()?t(D,"YYYY/MM/DD HH:mm:ss").add((new Date).getTimezoneOffset()-new Date(D.replace("Z","")).getTimezoneOffset(),"m"):t(D,"YYYY/MM/DD HH:mm:ss"),U.locale("fa").format("YYYY/MM/DD HH:mm:ss")}return"object"==typeof D||String(D).trim().indexOf("+00:00")>-1||(D=t(D).format("YYYY/MM/DD HH:mm:ss")+"+00:00"),t(D,"YYYY/MM/DD HH:mm:ssZ").locale("fa").format("YYYY/MM/DD HH:mm:ss")}catch{}}}return F.\u0275fac=function(D){return new(D||F)},F.\u0275pipe=l.Yjl({name:"jalaliDateTime",type:F,pure:!0}),F})(),f=(()=>{class F{transform(D){return t(D).locale("fa").format("HH:mm")}}return F.\u0275fac=function(D){return new(D||F)},F.\u0275pipe=l.Yjl({name:"jalaliTimeHHmm",type:F,pure:!0}),F})(),C=(()=>{class F{transform(D){return t(D).locale("fa").format("HH:mm:ss")}}return F.\u0275fac=function(D){return new(D||F)},F.\u0275pipe=l.Yjl({name:"jalaliTimeHHmmss",type:F,pure:!0}),F})(),N=(()=>{class F{transform(D){try{if(String(D).indexOf("Z")>-1){let U;return U=(new Date).getTimezoneOffset()!==new Date(D.replace("Z","")).getTimezoneOffset()?t(D,"YYYY/MM/DD HH:mm:ss").add((new Date).getTimezoneOffset()-new Date(D.replace("Z","")).getTimezoneOffset(),"m"):t(D,"YYYY/MM/DD HH:mm:ss"),U.locale("fa").format("HH:mm:ss")}return"object"==typeof D||String(D).trim().indexOf("+00:00")>-1||(D=t(D).format("YYYY/MM/DD HH:mm:ss")+"+00:00"),t(D,"YYYY/MM/DD HH:mm:ssZ").locale("fa").format("HH:mm:ss")}catch{}}}return F.\u0275fac=function(D){return new(D||F)},F.\u0275pipe=l.Yjl({name:"jalaliTime",type:F,pure:!0}),F})(),a=(()=>{class F{transform(D){"number"==typeof D&&(D=t(D)),D=D.fromNow();const U=[["in a few seconds","\u0647\u0645\u06cc\u0646 \u062d\u0627\u0644\u0627"],["seconds","\u062b\u0627\u0646\u06cc\u0647"],["minutes","\u062f\u0642\u06cc\u0642\u0647"],["minute","\u062f\u0642\u06cc\u0642\u0647"],["hours","\u0633\u0627\u0639\u062a"],["hour","\u0633\u0627\u0639\u062a"],["days","\u0631\u0648\u0632"],["day","\u0631\u0648\u0632"],["weeks","\u0647\u0641\u062a\u0647"],["week","\u0647\u0641\u062a\u0647"],["months","\u0645\u0627\u0647"],["month","\u0645\u0627\u0647"],["years","\u0633\u0627\u0644"],["year","\u0633\u0627\u0644"],["moment","\u0644\u062d\u0638\u0647"],["ago","\u067e\u06cc\u0634"],["a few","\u0686\u0646\u062f"],["an","\u06cc\u06a9"],["a","\u06cc\u06a9"]];for(const q of U)D=D.replace(q[0],q[1]);return D}}return F.\u0275fac=function(D){return new(D||F)},F.\u0275pipe=l.Yjl({name:"jalaliFromNow",type:F,pure:!0}),F})(),O=(()=>{class F{transform(D){D=D.split("/");const U=[["01","\u0641\u0631\u0648\u0631\u062f\u06cc\u0646"],["02","\u0627\u0631\u062f\u06cc\u0628\u0647\u0634\u062a"],["03","\u062e\u0631\u062f\u0627\u062f"],["04","\u062a\u06cc\u0631"],["05","\u0645\u0631\u062f\u0627\u062f"],["06","\u0634\u0647\u0631\u06cc\u0648\u0631"],["07","\u0645\u0647\u0631"],["08","\u0622\u0628\u0627\u0646"],["09","\u0622\u0630\u0631"],["10","\u062f\u06cc"],["11","\u0628\u0647\u0645\u0646"],["12","\u0627\u0633\u0641\u0646\u062f"]];for(const q of U)parseInt(q[0],10)===parseInt(D[1],10)&&(D[1]=q[1]);return D.reverse().join(" ")}}return F.\u0275fac=function(D){return new(D||F)},F.\u0275pipe=l.Yjl({name:"jalaliMonthMMMM",type:F,pure:!0}),F})(),H=(()=>{class F{transform(D){D=D.split("/");const U=[["01","\u0641\u0631\u0648\u0631\u062f\u06cc\u0646"],["02","\u0627\u0631\u062f\u06cc\u0628\u0647\u0634\u062a"],["03","\u062e\u0631\u062f\u0627\u062f"],["04","\u062a\u06cc\u0631"],["05","\u0645\u0631\u062f\u0627\u062f"],["06","\u0634\u0647\u0631\u06cc\u0648\u0631"],["07","\u0645\u0647\u0631"],["08","\u0622\u0628\u0627\u0646"],["09","\u0622\u0630\u0631"],["10","\u062f\u06cc"],["11","\u0628\u0647\u0645\u0646"],["12","\u0627\u0633\u0641\u0646\u062f"]];for(const q of U)parseInt(q[0],10)===parseInt(D[1],10)&&(D[1]=q[1]);return D[1]}}return F.\u0275fac=function(D){return new(D||F)},F.\u0275pipe=l.Yjl({name:"jalaliMonth",type:F,pure:!0}),F})()},64086:(M,b,n)=>{"use strict";n.d(b,{Mq:()=>r,an:()=>e,pm:()=>h,sz:()=>l});var t=n(94650);let e=(()=>{class d{transform(g){g=String(g).replace(/,/g,"");const p=String(parseInt(String(g),10)),f=[p.length/3,p.length%3];if(f[0]>0&&f[1]>0||f[0]>1){const C=p.split("");let N=0;for(0===f[1]&&N++;N<C.length;N++)(C.length-N)%3==0&&(C.splice(N,0,","),N++);return C.join("")}return""===g?0:g}}return d.\u0275fac=function(g){return new(g||d)},d.\u0275pipe=t.Yjl({name:"newNumberSeparator",type:d,pure:!0}),d})(),l=(()=>{class d{transform(g){return g=String(g).replace(",",""),parseInt(g,10).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}}return d.\u0275fac=function(g){return new(g||d)},d.\u0275pipe=t.Yjl({name:"numberSeparator",type:d,pure:!0}),d})(),h=(()=>{class d{transform(g){return Math.round(parseInt(""+g,10)/10)}}return d.\u0275fac=function(g){return new(g||d)},d.\u0275pipe=t.Yjl({name:"rialToToman",type:d,pure:!0}),d})(),r=(()=>{class d{transform(g){return parseInt(""+g,10)/10}}return d.\u0275fac=function(g){return new(g||d)},d.\u0275pipe=t.Yjl({name:"rialToTomanWithoutRound",type:d,pure:!0}),d})()},98059:(M,b,n)=>{"use strict";n.d(b,{S:()=>e});var t=n(94650);let e=(()=>{class l{constructor(){this.splitter=" \u0648 ",this.zero="\u0635\u0641\u0631",this.Letters=[["","\u06CC\u06A9","\u062F\u0648","\u0633\u0647","\u0686\u0647\u0627\u0631","\u067E\u0646\u062C","\u0634\u0634","\u0647\u0641\u062A","\u0647\u0634\u062A","\u0646\u0647"],["\u062F\u0647","\u06CC\u0627\u0632\u062F\u0647","\u062F\u0648\u0627\u0632\u062F\u0647","\u0633\u06CC\u0632\u062F\u0647","\u0686\u0647\u0627\u0631\u062F\u0647","\u067E\u0627\u0646\u0632\u062F\u0647","\u0634\u0627\u0646\u0632\u062F\u0647","\u0647\u0641\u062F\u0647","\u0647\u062C\u062F\u0647","\u0646\u0648\u0632\u062F\u0647","\u0628\u06CC\u0633\u062A"],["","","\u0628\u06CC\u0633\u062A","\u0633\u06CC","\u0686\u0647\u0644","\u067E\u0646\u062C\u0627\u0647","\u0634\u0635\u062A","\u0647\u0641\u062A\u0627\u062F","\u0647\u0634\u062A\u0627\u062F","\u0646\u0648\u062F"],["","\u06CC\u06A9\u0635\u062F","\u062F\u0648\u06CC\u0633\u062A","\u0633\u06CC\u0635\u062F","\u0686\u0647\u0627\u0631\u0635\u062F","\u067E\u0627\u0646\u0635\u062F","\u0634\u0634\u0635\u062F","\u0647\u0641\u062A\u0635\u062F","\u0647\u0634\u062A\u0635\u062F","\u0646\u0647\u0635\u062F"],["","\u0647\u0632\u0627\u0631","\u0645\u06CC\u0644\u06CC\u0648\u0646","\u0645\u06CC\u0644\u06CC\u0627\u0631\u062F","\u0628\u06CC\u0644\u06CC\u0648\u0646","\u0628\u06CC\u0644\u06CC\u0627\u0631\u062F","\u062A\u0631\u06CC\u0644\u06CC\u0648\u0646"]]}ThreeNumbersToLetter(r){if(0===parseInt(r,10))return"";const d=parseInt(r,10);if(d<10)return this.Letters[0][d];if(d<=20)return this.Letters[1][d-10];if(d<100){const N=d%10,a=(d-N)/10;return N>0?this.Letters[2][a]+this.splitter+this.Letters[0][N]:this.Letters[2][a]}const y=d%10,g=(d-d%100)/100,p=(d-(100*g+y))/10,f=[this.Letters[3][g]],C=10*p+y;return C>0&&(C<10?f.push(this.Letters[0][C]):C<=20?f.push(this.Letters[1][C-10]):(f.push(this.Letters[2][p]),y>0&&f.push(this.Letters[0][y]))),f.join(this.splitter)}PrepareNumber(r){"number"==typeof r&&(r=r.toString());const d=r.length%3;return 1===d?r="00"+r:2===d&&(r="0"+r),r.replace(/\d{3}(?=\d)/g,"$&*").split("*")}transform(r){if(0===r)return this.zero;if((r=r.toString().replace(/,/g,"")).length>66)return "\u062E\u0627\u0631\u062C \u0627\u0632 \u0645\u062D\u062F\u0648\u062F\u0647";const d=this.PrepareNumber(r),y=[],g=d.length;for(let p=0;p<g;p++){const f=this.Letters[4][g-(p+1)],C=this.ThreeNumbersToLetter(d[p]);""!==C&&y.push(C+" "+f)}return y.join(this.splitter)}}return l.\u0275fac=function(r){return new(r||l)},l.\u0275pipe=t.Yjl({name:"numbersToPersianAlphabet",type:l,pure:!0}),l})()},39851:(M,b,n)=>{"use strict";n.d(b,{M:()=>e});var t=n(94650);let e=(()=>{class l{transform(r){const d=[/\u06f0/g,/\u06f1/g,/\u06f2/g,/\u06f3/g,/\u06f4/g,/\u06f5/g,/\u06f6/g,/\u06f7/g,/\u06f8/g,/\u06f9/g],y=[/\u0660/g,/\u0661/g,/\u0662/g,/\u0663/g,/\u0664/g,/\u0665/g,/\u0666/g,/\u0667/g,/\u0668/g,/\u0669/g];if("string"==typeof r)for(let g=0;g<10;g++)r=r.replace(d[g],g).replace(y[g],g);return r}}return l.\u0275fac=function(r){return new(r||l)},l.\u0275pipe=t.Yjl({name:"persianNumber",type:l,pure:!0}),l})()},20421:(M,b,n)=>{"use strict";n.d(b,{d:()=>l});var t=n(36895),e=n(94650);let l=(()=>{class h{}return h.\u0275fac=function(d){return new(d||h)},h.\u0275mod=e.oAB({type:h}),h.\u0275inj=e.cJS({imports:[[t.ez]]}),h})()},74497:(M,b,n)=>{"use strict";n.d(b,{F:()=>l});var t=n(36895),e=n(94650);let l=(()=>{class h{}return h.\u0275fac=function(d){return new(d||h)},h.\u0275mod=e.oAB({type:h}),h.\u0275inj=e.cJS({imports:[[t.ez]]}),h})()},66150:(M,b,n)=>{"use strict";n.d(b,{O:()=>d});var t=n(94650),e=n(36895);function l(y,g){if(1&y&&t._UZ(0,"img",4),2&y){const p=t.oxw();t.MGl("src","/assets/images/spinner/loading-circle-",p.color,".svg",t.LSH)}}function h(y,g){if(1&y&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&y){const p=t.oxw();t.xp6(1),t.Oqu(p.text)}}function r(y,g){if(1&y&&(t.TgZ(0,"p",5),t._uU(1),t.qZA()),2&y){const p=t.oxw();t.xp6(1),t.Oqu(p.desc)}}let d=(()=>{class y{constructor(){this.text="",this.desc="",this.color="white"}ngOnInit(){}ngOnDestroy(){}}return y.\u0275fac=function(p){return new(p||y)},y.\u0275cmp=t.Xpm({type:y,selectors:[["app-spinner"]],inputs:{text:"text",desc:"desc",color:"color"},decls:4,vars:3,consts:[[1,"spinner-wrapper"],["alt","\u062f\u0631 \u062d\u0627\u0644 \u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc...",3,"src",4,"ngIf"],[4,"ngIf"],["style","padding-top: 8px",4,"ngIf"],["alt","\u062f\u0631 \u062d\u0627\u0644 \u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc...",3,"src"],[2,"padding-top","8px"]],template:function(p,f){1&p&&(t.TgZ(0,"div",0),t.YNc(1,l,1,1,"img",1),t.YNc(2,h,2,1,"p",2),t.YNc(3,r,2,1,"p",3),t.qZA()),2&p&&(t.xp6(1),t.Q6J("ngIf",f.color.length),t.xp6(1),t.Q6J("ngIf",f.text.length),t.xp6(1),t.Q6J("ngIf",f.desc.length))},directives:[e.O5],encapsulation:2}),y})()},97693:(M,b,n)=>{"use strict";n.d(b,{X:()=>l});var t=n(94650),e=n(90534);let l=(()=>{class h{constructor(d){this.toastrService=d}success(d,y,g){return this.toastrService.success(d,y,Object.assign({titleClass:"toaster-title-ellipsis"},g))}error(d,y,g){return this.toastrService.error(d,y,Object.assign({titleClass:"toaster-title-ellipsis"},g))}warning(d,y,g){return this.toastrService.warning(d,y,Object.assign({titleClass:"toaster-title-ellipsis"},g))}}return h.\u0275fac=function(d){return new(d||h)(t.LFG(e._W))},h.\u0275prov=t.Yz7({token:h,factory:h.\u0275fac}),h})()},77528:(M,b,n)=>{"use strict";n.d(b,{z:()=>d});var h,r,t=n(37340),e=n(8479),l=n(40345);class d{static getClientIssuer(){const g=(0,l.Jj)()?.location.href.split("/")[2];return g?g.includes("sandbox-test")?4:g.includes("staging-test")?7:g.includes("web2")?500:g.includes("web")?210:g.includes("pre-release")?16:g.includes("localhost")?19:210:210}}h=d,d.splashScreenDelay=3e3,d.pagingSize=50,d.pagingSizeLimited=5,d.pagingSizeList=20,d.pagingScrollDistance=2,d.pagingScrollThrottle=300,d.clientIssuer=h.getClientIssuer(),d.otpWaitingTime=120,d.defaultTimeout=3e4,d.onboardingPath="https://wepod.ir/config/web/onboarding.json",d.Carousel=((r=class{}).initialDelay=1e3,r.slideTiming=3e3,r.slideCount=1,r.loop=!0,r.touch=!0,r),d.MoneyRequestStates={waiting:1,canceled:3,successful:5,rejected:6},d.podChatSDKParameters={socketAddress:e.H7.socketAddress,ssoHost:e.H7.ssoHost,platformHost:e.H7.platformHost,fileServer:e.H7.fileServer,podSpaceFileServer:e.H7.podSpaceFileServer,serverName:"chat-server",appId:"dotin.wepod.web",grantDeviceIdFromSSO:!1,enableCache:!1,fullResponseObject:!0,mapApiKey:"web.OrZbQCphpuxpwcpRIv81088LVHA2mRzaizl8bLqB",typeCode:"default",typeCodesList:[{typeCode:"default",ownerId:void 0},{typeCode:"BANKPASARGADOFFICIAL",ownerId:void 0}],token:"SSO Token",wsConnectionWaitTime:500,connectionRetryInterval:5e3,connectionCheckTimeout:1e4,messageTtl:86400,reconnectOnClose:!0,asyncLogging:{onFunction:!0,onMessageReceive:!1,onMessageSend:!1,actualTiming:!1}},d.podFireBase=e.s3,d.transactionReportFilterTypeOptions=[{filterType:"bill",title:"\u067e\u0631\u062f\u0627\u062e\u062a \u0642\u0628\u0636"},{filterType:"withdraw",title:"\u0628\u0631\u062f\u0627\u0634\u062a \u0627\u0632 \u062d\u0633\u0627\u0628"},{filterType:"transfer",title:"\u0627\u0646\u062a\u0642\u0627\u0644 \u0648\u062c\u0647"},{filterType:"cash-in",title:"\u0627\u0641\u0632\u0627\u06cc\u0634 \u0645\u0648\u062c\u0648\u062f\u06cc"},{filterType:"by-category",title:"\u0628\u0631 \u0627\u0633\u0627\u0633 \u062f\u0633\u062a\u0647\u200c\u0628\u0646\u062f\u06cc"}],d.animations={inOutPage:(0,t.X$)("inOutPage",[(0,t.eR)(":enter",[(0,t.oB)({opacity:0}),(0,t.jt)(".2s ease-out",(0,t.oB)({opacity:1}))])]),inOutComponent:(0,t.X$)("inOutComponent",[(0,t.eR)(":enter",[(0,t.oB)({opacity:0}),(0,t.jt)(".3s ease-out",(0,t.oB)({opacity:1}))]),(0,t.eR)(":leave",[(0,t.oB)({opacity:1}),(0,t.jt)("0s",(0,t.oB)({opacity:0}))])]),inOutBubble:(0,t.X$)("inOutBubble",[(0,t.eR)(":enter",[(0,t.oB)({height:0,width:0}),(0,t.jt)(".3s ease-out",(0,t.oB)({height:"auto",width:"auto"}))]),(0,t.eR)(":leave",[(0,t.oB)({opacity:1}),(0,t.jt)(".3s ease-in",(0,t.oB)({opacity:0,height:0}))])]),inOutLoading:(0,t.X$)("inOutLoading",[(0,t.eR)(":enter",[(0,t.oB)({opacity:0}),(0,t.jt)(".2s ease-out",(0,t.oB)({opacity:1}))]),(0,t.eR)(":leave",[(0,t.oB)({opacity:1}),(0,t.jt)(".2s ease-in",(0,t.oB)({opacity:0}))])])},d.noLoadingPostMethods=["token/refresh","getAccountBillWithSign","getBorrowRequestDetails","generateSimpleGroupTransferRequests","getContactsById","getContacts","getUserAllGroups","getAll","getCurrentUserGroupDebts"],d.forceLoadingGetMethods=["getDevices","getServiceInfoForUser","getLoanContractAgreementList","getCreditValidationOtpRemainingTime","getLoanInquiryStatus","getLoanFinancialInfo","getLoanContractReport","getLoanList","getUsageCreditTimelineDone","canCreateCyberGiftCardOnDay","getContractInfo","deliveryOptions","getOrder","getCards","getValidationInquiryStatus","getInquiryPaymentInformation","getValidationInquiry","remainingShareCount","validateShare","shareValidationReport","getValidationReportLink","getValidationInquiryAgreement","getIranianOtpRemainingTime","getWepodContractInfo","getTransferToContacts","getTransferFromContactToMeList","getCreditInvoiceList","getWepodCreditTransferCommissionRateInfo","getContractsByGroup","getSecondaryCardRequestCauses","getLoanList","getUserTicketDetails","getSubjects","getUserTickets","getUserCards","detectInputType","transferTypesList","getDestinationCardInfo","getLoanFinancialInfoResponse","getCustomerPlanDetails","calculateProfit","getSavingPlanAgreement","getLastOrderTrackingId","getAllPlans","chequeTransferPreview","getMyClubChips","getUserDepositNumbers","getTransferPurpose","frequentTransactions","addGiftCode","getScoreAccount","getGiftCards","getRePrintCardRequestCauses","getUserTotalLoanDebits","getOtherBanksIbanInfo","getDestinationShebas","getGiftTypesList","getCyberGiftCardAmountLimitation","giftTypeStatusInquiry","getClubCampaignByStatus","getUserClubCampaigns","getUserDiscountCodes","getClubTags","getCategories","getGiftCardCategory","getProfitsList"],d.notCancelableMethods=["chargeWalletByHash"],d.cancelableLoadingMethods=["getDevices","getLoanContractAgreementList"],d.retryAjaxWithAttemptsCount=[{method:"getCreditWithSign",retryCount:5},{method:"checkUsageCreditValidation",retryCount:3},{method:"getContracts",retryCount:3},{method:"getContractInfo",retryCount:3},{method:"getPartialPayInstallmentInvoice",retryCount:3},{method:"getCategoryResources",retryCount:3},{method:"getProfile",retryCount:3},{method:"getUserFinancialStatus",retryCount:3},{method:"getDigitalCard",retryCount:5},{method:"getServices",retryCount:3},{method:"getServiceStore",retryCount:3},{method:"getValidationInquiryStatus",retryCount:3},{method:"getExtendPaymentInvoice",retryCount:3},{method:"refreshToken",retryCount:10},{method:"selfDeclarationDynamicComponentCreator",retryCount:3},{method:"registerSelfDeclaration",retryCount:3},{method:"getStateList",retryCount:3},{method:"getCityList",retryCount:3},{method:"getUserTotalLoanDebits",retryCount:3},{method:"getSuggestedContracts",retryCount:3},{method:"getAccountBillWithSign",retryCount:3},{method:"transactionsReport",retryCount:3},{method:"getActiveDevices",retryCount:3},{method:"getCurrentDevice",retryCount:3},{method:"getAddressByPostalCode",retryCount:3},{method:"getValidationInquiryAgreement",retryCount:3},{method:"getMicroLoanAgreement",retryCount:3},{method:"getChequeAgreement",retryCount:3},{method:"getPayBillByBillId",retryCount:3},{method:"getGiftCardsInvoiceList",retryCount:3},{method:"getCyberGiftCardsInvoiceList",retryCount:3},{method:"chequeStatusInquiry",retryCount:3},{method:"chequeTransferPreview",retryCount:3},{method:"getChequeTransferRequests",retryCount:3},{method:"isUserOnWhiteList",retryCount:3},{method:"getScoreAccount",retryCount:3},{method:"getScoreHistory",retryCount:3},{method:"getClubCampaignDetails",retryCount:3},{method:"getMyClubChips",retryCount:3},{method:"getMyClubChipsInquiry",retryCount:3},{method:"getTags",retryCount:3},{method:"getUserDiscountCodes",retryCount:3},{method:"getClubCampaignByStatus",retryCount:3},{method:"getClubCampaignsWithAggregates",retryCount:3},{method:"getCategoryDetail",retryCount:3},{method:"getUserClubCampaigns",retryCount:3},{method:"getCategories",retryCount:3},{method:"getCyberGiftCardAmountLimitation",retryCount:3},{method:"getClientConfiguration",retryCount:3},{method:"getSecondaryCardRequestCauses",retryCount:3},{method:"getBanksInfo",retryCount:3},{method:"getTransferPurpose",retryCount:3},{method:"getRePrintCardRequestCauses",retryCount:3},{method:"getCyberGiftCard",retryCount:3},{method:"canCreateCyberGiftCardOnDay",retryCount:3},{method:"getCyberGiftCardBalance",retryCount:3},{method:"getDebitCards",retryCount:3},{method:"getCardInfo",retryCount:3},{method:"getUserDepositNumbers",retryCount:3},{method:"getDigitalCard",retryCount:3},{method:"getSecondaryCardIssuanceCost",retryCount:3},{method:"getRePrintCardIssuanceCost",retryCount:3},{method:"getDirectDebitOptions",retryCount:3},{method:"getDirectDebit",retryCount:3},{method:"confirmChequeAgreement",retryCount:3},{method:"getGiftTypesList",retryCount:3},{method:"getGiftCardExpiryDate",retryCount:3},{method:"getGiftCardCategory",retryCount:3},{method:"getGiftCardCategories",retryCount:3},{method:"getGiftCard",retryCount:3},{method:"getGiftCards",retryCount:3},{method:"getSimpleGroup",retryCount:3},{method:"getGroupMembers",retryCount:3},{method:"getGroupMembersCount",retryCount:3},{method:"getSimpleGroupPaymentReport",retryCount:3},{method:"getSimpleGroupPieChartReport",retryCount:3},{method:"getSimpleGroupCurrentUserRequestDetails",retryCount:3},{method:"getImage",retryCount:3},{method:"getUserInitInfo",retryCount:3},{method:"getExtendPaymentInvoice",retryCount:3},{method:"getPartialPayInstallmentInvoice",retryCount:3},{method:"getCreditCardContractInfo",retryCount:3},{method:"getSuggestedContracts",retryCount:3},{method:"getIncomeReceivedContractInfo",retryCount:3},{method:"getWepodCreditTransferCommission",retryCount:3},{method:"getWepodCreditTransferScoreList",retryCount:3},{method:"getWepodScoreInfo",retryCount:3},{method:"getWepodLoanGeneralList",retryCount:3},{method:"getCalculateWepodCreditInfo",retryCount:3},{method:"getWepodContractInfo",retryCount:3},{method:"getBeforePayMicroLoanUpdateStatus",retryCount:3},{method:"getLoanInquiryStatus",retryCount:3},{method:"getPasargadBankBranches",retryCount:3},{method:"getContractDetailInfo",retryCount:3},{method:"getLoanContractAgreementList",retryCount:3},{method:"getLoanContractReport",retryCount:3},{method:"getMicroLoanRequest",retryCount:3},{method:"getInstallmentsDetail",retryCount:3},{method:"getInstallments",retryCount:3},{method:"getContractList",retryCount:3},{method:"getContractInfo",retryCount:3},{method:"getContractsByGroup",retryCount:3},{method:"getLoanFinancialInfo",retryCount:3},{method:"getLoanList",retryCount:3},{method:"inquiryChangePassword",retryCount:3},{method:"getUserTransferInfo",retryCount:3},{method:"getProfile",retryCount:3},{method:"getPromotion",retryCount:3},{method:"getRating",retryCount:3},{method:"canSubmitReferralCode",retryCount:3},{method:"getCategoryResource",retryCount:3},{method:"getAllPlans",retryCount:3},{method:"getCancelsHistory",retryCount:3},{method:"getCustomerAccount",retryCount:3},{method:"getCustomerPlanDetails",retryCount:3},{method:"calculateProfit",retryCount:3},{method:"getSavingPlanAgreement",retryCount:3},{method:"getProfitsList",retryCount:3},{method:"getServiceStore",retryCount:3},{method:"getUserCards",retryCount:3},{method:"getDestinationCardInfo",retryCount:3},{method:"transactionInquiry",retryCount:3},{method:"transactionsReport",retryCount:3},{method:"getOtherBanksIbanInfo",retryCount:3},{method:"getDeliveryOptions",retryCount:3},{method:"getOrder",retryCount:3},{method:"getLastOrderTrackingId",retryCount:3},{method:"detectInputType",retryCount:3},{method:"transferTypesList",retryCount:3},{method:"frequentTransactions",retryCount:3},{method:"getServiceInfoForUser",retryCount:3},{method:"getInvoice",retryCount:3},{method:"getBotAccessPermission",retryCount:3},{method:"getWithdrawRuleInquiry",retryCount:3},{method:"getRule",retryCount:3},{method:"getUserTickets",retryCount:3},{method:"getUserTicketDetails",retryCount:3},{method:"getSubjects",retryCount:3},{method:"getAttachmentFile",retryCount:3},{method:"getSubjectDetail",retryCount:3},{method:"getOverallStatus",retryCount:3},{method:"getUserStatus",retryCount:3},{method:"getCurrentUserCreditTotalCredit",retryCount:3},{method:"getGroupCreditDetails",retryCount:3},{method:"getCurrentUserDebitTotalDebit",retryCount:3},{method:"getGroupDebitDetails",retryCount:3},{method:"getUserTotalLoanDebits",retryCount:3}]},26007:(M,b,n)=>{"use strict";n.d(b,{i:()=>t});let t=(()=>{class e{}return e.comma=/,/g,e.OnlyNumbers=/\D+/g,e.validSheba="[0-9]{24}",e.mobile="09[0-9]{9}",e.card="[0-9]{4}",e})()},39723:(M,b,n)=>{"use strict";n.d(b,{B:()=>h});var t=n(7206),l=n(8479);class h{}h.accessToken=(0,t.MD5)(l.NZ.apiUrl)+".access_token",h.actionUrl=(0,t.MD5)(l.NZ.apiUrl)+".action_url",h.voucherCode=(0,t.MD5)(l.NZ.apiUrl)+".voucher_code",h.userSignupModel=(0,t.MD5)(l.NZ.apiUrl)+".wepod.user.signup_model",h.redirect=(0,t.MD5)(l.NZ.apiUrl)+".redirect",h.redirectUrl=(0,t.MD5)(l.NZ.apiUrl)+".redirect_url",h.keyId=(0,t.MD5)(l.NZ.apiUrl)+".key_id"},64423:(M,b,n)=>{"use strict";n.d(b,{f:()=>r});var t=n(49671),e=n(40345),l=n(94650),h=n(79473);let r=(()=>{class d{constructor(g){this.wepodMainService=g}canLoad(){var g=this;return(0,t.Z)(function*(){const p=yield g.wepodMainService.levelChecker();return!("finish-authorization"!==(0,e.Jj)()?.location?.pathname.split("/")[1]&&"finish-reset-password"!==(0,e.Jj)()?.location?.pathname.split("/")[1]&&"payment-finish-authorization"!==(0,e.Jj)()?.location?.pathname.split("/")[1]&&!p?.isFinished&&(g.wepodMainService.mustOpenAccount(),1))})()}}return d.\u0275fac=function(g){return new(g||d)(l.LFG(h.g))},d.\u0275prov=l.Yz7({token:d,factory:d.\u0275fac,providedIn:"root"}),d})()},32209:(M,b,n)=>{"use strict";n.d(b,{z:()=>h});var t=n(40345),e=n(94650),l=n(78377);let h=(()=>{class r{constructor(y){this.registerDataPassingService=y}clearSessions(){(0,t.Jj)()?.sessionStorage.clear()}getLocalItem(y){return(0,t.Jj)()?.localStorage.getItem(y)}setLocalItem(y,g){(0,t.Jj)()?.localStorage.setItem(y,g)}removeLocalItem(y){(0,t.Jj)()?.localStorage.removeItem(y)}clearLocals(y=!1){if(this.registerDataPassingService.changePassword||this.registerDataPassingService.resetPassword||y){const g=this.getLocalItem("deviceIdForRegistration");(0,t.Jj)()?.localStorage.clear(),this.setLocalItem("deviceIdForRegistration",g)}else(0,t.Jj)()?.localStorage.clear()}clearAllStorage(y=!1){this.clearLocals(y),this.clearSessions()}}return r.\u0275fac=function(y){return new(y||r)(e.LFG(l.a))},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac}),r})()},39777:(M,b,n)=>{"use strict";n.d(b,{B:()=>l});var t=n(591),e=n(94650);let l=(()=>{class h{constructor(){this.profileChanged=new t.X(!1),this.notifyChanging$=this.profileChanged.asObservable()}notify(){this.profileChanged.next(!0)}reset(){this.profileChanged.next(null)}}return h.\u0275fac=function(d){return new(d||h)},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac}),h})()},26116:(M,b,n)=>{"use strict";n.d(b,{V:()=>d});var t=n(49671),e=n(39723),l=n(94650),h=n(11213),r=n(32209);let d=(()=>{class g{constructor(f,C){this.routingAppService=f,this.browserStorageService=C,this.closedReceipt=()=>{},this.actionDone=()=>{}}get redirectObj(){return JSON.parse(this.browserStorageService.getLocalItem(e.B.redirect))}availability(){return this.redirectObj?.path}resetRedirect(){this.browserStorageService.removeLocalItem(e.B.redirect)}waitToRedirect(){return!this.redirectObj.hasReceipt||new Promise(f=>{this.closedReceipt=()=>{f()}})}waitBeforeAction(){return!this.redirectObj.action||new Promise(f=>{this.actionDone=()=>{f()}})}redirect(){var f=this;(0,t.Z)(function*(){for(;f.redirectObj;)yield f.waitToRedirect(),f.routingAppService.navigate(f.redirectObj.path),yield new Promise(C=>setTimeout(C,0)),yield f.waitBeforeAction(),f.resetRedirect()})()}}return g.\u0275fac=function(f){return new(f||g)(l.LFG(h.s),l.LFG(r.z))},g.\u0275prov=l.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),g})()},16738:(M,b,n)=>{"use strict";n.d(b,{Y:()=>h});var t=n(13861),e=n(92198),l=n(94650);let h=(()=>{class r{constructor(y){this.router=y,this.items=[],this.historyLength=50}dispatch(){this.router.events.pipe((0,e.h)(y=>y instanceof t.m2)).subscribe(({urlAfterRedirects:y})=>{const g=this.items.indexOf(y);-1!==g&&this.items.splice(g,1),this.items.unshift(y),this.items.length>this.historyLength&&this.items.pop()})}getHistory(){return this.items}}return r.\u0275fac=function(y){return new(y||r)(l.LFG(t.F0))},r.\u0275prov=l.Yz7({token:r,factory:r.\u0275fac}),r})()},65117:(M,b,n)=>{"use strict";n.d(b,{$:()=>h});var t=n(8929),e=n(30839),l=n(94650);let h=(()=>{class r{constructor(){this.subject=new t.xQ,this.authCode=new e.t(null)}subscribe(y){return this.subject.subscribe(y)}stop(){this.subject.next(!1)}run(){this.subject.next(!0)}}return r.\u0275fac=function(y){return new(y||r)},r.\u0275prov=l.Yz7({token:r,factory:r.\u0275fac}),r})()},70151:(M,b,n)=>{"use strict";n.d(b,{H:()=>h});var t=n(39723),e=n(94650),l=n(32209);let h=(()=>{class r{constructor(y){this.browserStorageService=y}SaveVoucher(y){this.browserStorageService.setLocalItem(t.B.voucherCode,y)}getVoucher(){return this.browserStorageService.getLocalItem(t.B.voucherCode)}wantToActiveVoucher(){return!!this.getVoucher()}removeVoucher(){this.browserStorageService.removeLocalItem(t.B.voucherCode)}}return r.\u0275fac=function(y){return new(y||r)(e.LFG(l.z))},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac}),r})()},79473:(M,b,n)=>{"use strict";n.d(b,{g:()=>Fr});var t=n(80529),e=n(94650);const l=(Gt,le=1e4)=>(Gt=parseFloat(Gt+"")||0,Math.round((Gt+Number.EPSILON)*le)/le),h=function(Gt){if(!(Gt&&Gt instanceof Element&&Gt.offsetParent))return!1;const le=Gt.scrollHeight>Gt.clientHeight,Ce=window.getComputedStyle(Gt).overflowY,Ie=-1!==Ce.indexOf("hidden"),Pe=-1!==Ce.indexOf("visible");return le&&!Ie&&!Pe},r=function(Gt,le){return!(!Gt||Gt===document.body||le&&Gt===le)&&(h(Gt)?Gt:r(Gt.parentElement,le))},d=function(Gt){var le=(new DOMParser).parseFromString(Gt,"text/html").body;if(le.childElementCount>1){for(var Ce=document.createElement("div");le.firstChild;)Ce.appendChild(le.firstChild);return Ce}return le.firstChild},y=Gt=>`${Gt||""}`.split(" ").filter(le=>!!le),g=(Gt,le,Ce)=>{y(le).forEach(Ie=>{Gt&&Gt.classList.toggle(Ie,Ce||!1)})};class p{constructor(le){Object.defineProperty(this,"pageX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"pageY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"clientX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"clientY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"time",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"nativePointer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.nativePointer=le,this.pageX=le.pageX,this.pageY=le.pageY,this.clientX=le.clientX,this.clientY=le.clientY,this.id=self.Touch&&le instanceof Touch?le.identifier:-1,this.time=Date.now()}}const f={passive:!1};class C{constructor(le,{start:Ce=(()=>!0),move:Ie=(()=>{}),end:Pe=(()=>{})}){Object.defineProperty(this,"element",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"startCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"moveCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"endCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"currentPointers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"startPointers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),this.element=le,this.startCallback=Ce,this.moveCallback=Ie,this.endCallback=Pe;for(const Oe of["onPointerStart","onTouchStart","onMove","onTouchEnd","onPointerEnd","onWindowBlur"])this[Oe]=this[Oe].bind(this);this.element.addEventListener("mousedown",this.onPointerStart,f),this.element.addEventListener("touchstart",this.onTouchStart,f),this.element.addEventListener("touchmove",this.onMove,f),this.element.addEventListener("touchend",this.onTouchEnd),this.element.addEventListener("touchcancel",this.onTouchEnd)}onPointerStart(le){if(!le.buttons||0!==le.button)return;const Ce=new p(le);this.currentPointers.some(Ie=>Ie.id===Ce.id)||this.triggerPointerStart(Ce,le)&&(window.addEventListener("mousemove",this.onMove),window.addEventListener("mouseup",this.onPointerEnd),window.addEventListener("blur",this.onWindowBlur))}onTouchStart(le){for(const Ce of Array.from(le.changedTouches||[]))this.triggerPointerStart(new p(Ce),le);window.addEventListener("blur",this.onWindowBlur)}onMove(le){const Ce=this.currentPointers.slice(),Ie="changedTouches"in le?Array.from(le.changedTouches||[]).map(Oe=>new p(Oe)):[new p(le)],Pe=[];for(const Oe of Ie){const Se=this.currentPointers.findIndex(Xe=>Xe.id===Oe.id);Se<0||(Pe.push(Oe),this.currentPointers[Se]=Oe)}Pe.length&&this.moveCallback(le,this.currentPointers.slice(),Ce)}onPointerEnd(le){le.buttons>0&&0!==le.button||(this.triggerPointerEnd(le,new p(le)),window.removeEventListener("mousemove",this.onMove),window.removeEventListener("mouseup",this.onPointerEnd),window.removeEventListener("blur",this.onWindowBlur))}onTouchEnd(le){for(const Ce of Array.from(le.changedTouches||[]))this.triggerPointerEnd(le,new p(Ce))}triggerPointerStart(le,Ce){return!!this.startCallback(Ce,le,this.currentPointers.slice())&&(this.currentPointers.push(le),this.startPointers.push(le),!0)}triggerPointerEnd(le,Ce){const Ie=this.currentPointers.findIndex(Pe=>Pe.id===Ce.id);Ie<0||(this.currentPointers.splice(Ie,1),this.startPointers.splice(Ie,1),this.endCallback(le,Ce,this.currentPointers.slice()))}onWindowBlur(){this.clear()}clear(){for(;this.currentPointers.length;){const le=this.currentPointers[this.currentPointers.length-1];this.currentPointers.splice(this.currentPointers.length-1,1),this.startPointers.splice(this.currentPointers.length-1,1),this.endCallback(new Event("touchend",{bubbles:!0,cancelable:!0,clientX:le.clientX,clientY:le.clientY}),le,this.currentPointers.slice())}}stop(){this.element.removeEventListener("mousedown",this.onPointerStart,f),this.element.removeEventListener("touchstart",this.onTouchStart,f),this.element.removeEventListener("touchmove",this.onMove,f),this.element.removeEventListener("touchend",this.onTouchEnd),this.element.removeEventListener("touchcancel",this.onTouchEnd),window.removeEventListener("mousemove",this.onMove),window.removeEventListener("mouseup",this.onPointerEnd),window.removeEventListener("blur",this.onWindowBlur)}}function N(Gt,le){return le?Math.sqrt(Math.pow(le.clientX-Gt.clientX,2)+Math.pow(le.clientY-Gt.clientY,2)):0}function a(Gt,le){return le?{clientX:(Gt.clientX+le.clientX)/2,clientY:(Gt.clientY+le.clientY)/2}:Gt}const O=Gt=>"object"==typeof Gt&&null!==Gt&&Gt.constructor===Object&&"[object Object]"===Object.prototype.toString.call(Gt),H=(Gt,...le)=>{const Ce=le.length;for(let Ie=0;Ie<Ce;Ie++)Object.entries(le[Ie]||{}).forEach(([Oe,Se])=>{const Xe=Array.isArray(Se)?[]:{};Gt[Oe]||Object.assign(Gt,{[Oe]:Xe}),O(Se)?Object.assign(Gt[Oe],H(Xe,Se)):Array.isArray(Se)?Object.assign(Gt,{[Oe]:[...Se]}):Object.assign(Gt,{[Oe]:Se})});return Gt},F=function(Gt,le){return Gt.split(".").reduce((Ce,Ie)=>"object"==typeof Ce?Ce[Ie]:void 0,le)};class V{constructor(le={}){Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:le}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),this.setOptions(le);for(const Ce of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))Ce.startsWith("on")&&"function"==typeof this[Ce]&&(this[Ce]=this[Ce].bind(this))}setOptions(le){this.options=le?H({},this.constructor.defaults,le):{};for(const[Ce,Ie]of Object.entries(this.option("on")||{}))this.on(Ce,Ie)}option(le,...Ce){let Ie=F(le,this.options);return Ie&&"function"==typeof Ie&&(Ie=Ie.call(this,this,...Ce)),Ie}optionFor(le,Ce,Ie,...Pe){let Oe=F(Ce,le);var Se;"string"!=typeof(Se=Oe)||isNaN(Se)||isNaN(parseFloat(Se))||(Oe=parseFloat(Oe)),"true"===Oe&&(Oe=!0),"false"===Oe&&(Oe=!1),Oe&&"function"==typeof Oe&&(Oe=Oe.call(this,this,le,...Pe));let Xe=F(Ce,this.options);return Xe&&"function"==typeof Xe?Oe=Xe.call(this,this,le,...Pe,Oe):void 0===Oe&&(Oe=Xe),void 0===Oe?Ie:Oe}cn(le){const Ce=this.options.classes;return Ce&&Ce[le]||""}localize(le,Ce=[]){le=String(le).replace(/\{\{(\w+).?(\w+)?\}\}/g,(Ie,Pe,Oe)=>{let Se="";return Oe?Se=this.option(`${Pe[0]+Pe.toLowerCase().substring(1)}.l10n.${Oe}`):Pe&&(Se=this.option(`l10n.${Pe}`)),Se||(Se=Ie),Se});for(let Ie=0;Ie<Ce.length;Ie++)le=le.split(Ce[Ie][0]).join(Ce[Ie][1]);return le.replace(/\{\{(.*?)\}\}/g,(Ie,Pe)=>Pe)}on(le,Ce){let Ie=[];"string"==typeof le?Ie=le.split(" "):Array.isArray(le)&&(Ie=le),this.events||(this.events=new Map),Ie.forEach(Pe=>{let Oe=this.events.get(Pe);Oe||(this.events.set(Pe,[]),Oe=[]),Oe.includes(Ce)||Oe.push(Ce),this.events.set(Pe,Oe)})}off(le,Ce){let Ie=[];"string"==typeof le?Ie=le.split(" "):Array.isArray(le)&&(Ie=le),Ie.forEach(Pe=>{const Oe=this.events.get(Pe);if(Array.isArray(Oe)){const Se=Oe.indexOf(Ce);Se>-1&&Oe.splice(Se,1)}})}emit(le,...Ce){[...this.events.get(le)||[]].forEach(Ie=>Ie(this,...Ce)),"*"!==le&&this.emit("*",le,...Ce)}}Object.defineProperty(V,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.16"}),Object.defineProperty(V,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{}});class D extends V{constructor(le={}){super(le),Object.defineProperty(this,"plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}})}attachPlugins(le={}){const Ce=new Map;for(const[Ie,Pe]of Object.entries(le)){const Oe=this.option(Ie),Se=this.plugins[Ie];Se||!1===Oe?Se&&!1===Oe&&(Se.detach(),delete this.plugins[Ie]):Ce.set(Ie,new Pe(this,Oe||{}))}for(const[Ie,Pe]of Ce)this.plugins[Ie]=Pe,Pe.attach();this.emit("attachPlugins")}detachPlugins(le){le=le||Object.keys(this.plugins);for(const Ce of le){const Ie=this.plugins[Ce];Ie&&Ie.detach(),delete this.plugins[Ce]}return this.emit("detachPlugins"),this}}var U,Gt;(Gt=U||(U={}))[Gt.Init=0]="Init",Gt[Gt.Error=1]="Error",Gt[Gt.Ready=2]="Ready",Gt[Gt.Panning=3]="Panning",Gt[Gt.Mousemove=4]="Mousemove",Gt[Gt.Destroy=5]="Destroy";const q=["a","b","c","d","e","f"],J={PANUP:"Move up",PANDOWN:"Move down",PANLEFT:"Move left",PANRIGHT:"Move right",ZOOMIN:"Zoom in",ZOOMOUT:"Zoom out",TOGGLEZOOM:"Toggle zoom level",TOGGLE1TO1:"Toggle zoom level",ITERATEZOOM:"Toggle zoom level",ROTATECCW:"Rotate counterclockwise",ROTATECW:"Rotate clockwise",FLIPX:"Flip horizontally",FLIPY:"Flip vertically",FITX:"Fit horizontally",FITY:"Fit vertically",RESET:"Reset",TOGGLEFS:"Toggle fullscreen"},G={content:null,width:"auto",height:"auto",panMode:"drag",touch:!0,dragMinThreshold:3,lockAxis:!1,mouseMoveFactor:1,mouseMoveFriction:.12,zoom:!0,pinchToZoom:!0,panOnlyZoomed:"auto",minScale:1,maxScale:2,friction:.25,dragFriction:.35,decelFriction:.05,click:"toggleZoom",dblClick:!1,wheel:"zoom",wheelLimit:7,spinner:!0,bounds:"auto",infinite:!1,rubberband:!0,bounce:!0,maxVelocity:75,transformParent:!1,classes:{content:"f-panzoom__content",isLoading:"is-loading",canZoomIn:"can-zoom_in",canZoomOut:"can-zoom_out",isDraggable:"is-draggable",isDragging:"is-dragging",inFullscreen:"in-fullscreen",htmlHasFullscreen:"with-panzoom-in-fullscreen"},l10n:J},ie='<div class="f-spinner"><svg viewBox="0 0 50 50"><circle cx="25" cy="25" r="20"></circle><circle cx="25" cy="25" r="20"></circle></svg></div>',K=Gt=>Gt&&null!==Gt&&Gt instanceof Element&&"nodeType"in Gt,re=(Gt,le)=>{Gt&&y(le).forEach(Ce=>{Gt.classList.remove(Ce)})},oe=(Gt,le)=>{Gt&&y(le).forEach(Ce=>{Gt.classList.add(Ce)})},B={a:1,b:0,c:0,d:1,e:0,f:0};let s=null,_=null;class w extends D{get isTouchDevice(){return null===_&&(_=window.matchMedia("(hover: none)").matches),_}get isMobile(){return null===s&&(s=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)),s}get panMode(){return"mousemove"!==this.options.panMode||this.isTouchDevice?"drag":"mousemove"}get panOnlyZoomed(){const le=this.options.panOnlyZoomed;return"auto"===le?this.isTouchDevice:le}get isInfinite(){return this.option("infinite")}get angle(){return 180*Math.atan2(this.current.b,this.current.a)/Math.PI||0}get targetAngle(){return 180*Math.atan2(this.target.b,this.target.a)/Math.PI||0}get scale(){const{a:le,b:Ce}=this.current;return Math.sqrt(le*le+Ce*Ce)||1}get targetScale(){const{a:le,b:Ce}=this.target;return Math.sqrt(le*le+Ce*Ce)||1}get minScale(){return this.option("minScale")||1}get fullScale(){const{contentRect:le}=this;return le.fullWidth/le.fitWidth||1}get maxScale(){return this.fullScale*(this.option("maxScale")||1)||1}get coverScale(){const{containerRect:le,contentRect:Ce}=this,Ie=Math.max(le.height/Ce.fitHeight,le.width/Ce.fitWidth)||1;return Math.min(this.fullScale,Ie)}get isScaling(){return Math.abs(this.targetScale-this.scale)>1e-5&&!this.isResting}get isContentLoading(){const le=this.content;return!!(le&&le instanceof HTMLImageElement)&&!le.complete}get isResting(){if(this.isBouncingX||this.isBouncingY)return!1;for(const le of q){const Ce="e"==le||"f"===le?.001:1e-5;if(Math.abs(this.target[le]-this.current[le])>Ce)return!1}return!(!this.ignoreBounds&&!this.checkBounds().inBounds)}constructor(le,Ce={},Ie={}){var Pe;if(super(Ce),Object.defineProperty(this,"pointerTracker",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"resizeObserver",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"updateTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"clickTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"rAF",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"isTicking",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"friction",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"ignoreBounds",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isBouncingX",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isBouncingY",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"clicks",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"trackingPoints",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"pwt",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"cwd",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"pmme",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:U.Init}),Object.defineProperty(this,"isDragging",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"content",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"spinner",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"containerRect",{enumerable:!0,configurable:!0,writable:!0,value:{width:0,height:0,innerWidth:0,innerHeight:0}}),Object.defineProperty(this,"contentRect",{enumerable:!0,configurable:!0,writable:!0,value:{top:0,right:0,bottom:0,left:0,fullWidth:0,fullHeight:0,fitWidth:0,fitHeight:0,width:0,height:0}}),Object.defineProperty(this,"dragStart",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,top:0,left:0,time:0}}),Object.defineProperty(this,"dragOffset",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,time:0}}),Object.defineProperty(this,"current",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},B)}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},B)}),Object.defineProperty(this,"velocity",{enumerable:!0,configurable:!0,writable:!0,value:{a:0,b:0,c:0,d:0,e:0,f:0}}),Object.defineProperty(this,"lockedAxis",{enumerable:!0,configurable:!0,writable:!0,value:!1}),!le)throw new Error("Container Element Not Found");this.container=le,this.initContent(),this.attachPlugins(Object.assign(Object.assign({},w.Plugins),Ie)),this.emit("init");const Oe=this.content;if(Oe.addEventListener("load",this.onLoad),Oe.addEventListener("error",this.onError),this.isContentLoading){if(this.option("spinner")){le.classList.add(this.cn("isLoading"));const Se=d(ie);this.spinner=!le.contains(Oe)||Oe.parentElement instanceof HTMLPictureElement?le.appendChild(Se):(null===(Pe=Oe.parentElement)||void 0===Pe?void 0:Pe.insertBefore(Se,Oe))||null}this.emit("beforeLoad")}else queueMicrotask(()=>{this.enable()})}initContent(){const{container:le}=this,Ce=this.cn("content");let Ie=this.option("content")||le.querySelector(`.${Ce}`);if(Ie||(Ie=le.querySelector("img,picture")||le.firstElementChild,Ie&&oe(Ie,Ce)),Ie instanceof HTMLPictureElement&&(Ie=Ie.querySelector("img")),!Ie)throw new Error("No content found");this.content=Ie}onLoad(){this.spinner&&(this.spinner.remove(),this.spinner=null),this.option("spinner")&&this.container.classList.remove(this.cn("isLoading")),this.emit("afterLoad"),this.state===U.Init?this.enable():this.updateMetrics()}onError(){this.state!==U.Destroy&&(this.spinner&&(this.spinner.remove(),this.spinner=null),this.stop(),this.detachEvents(),this.state=U.Error,this.emit("error"))}attachObserver(){var le;const Ce=()=>Math.abs(this.containerRect.width-this.container.getBoundingClientRect().width)>.1||Math.abs(this.containerRect.height-this.container.getBoundingClientRect().height)>.1;this.resizeObserver||void 0===window.ResizeObserver||(this.resizeObserver=new ResizeObserver(()=>{this.updateTimer||(Ce()?(this.onResize(),this.isMobile&&(this.updateTimer=setTimeout(()=>{Ce()&&this.onResize(),this.updateTimer=null},500))):this.updateTimer&&(clearTimeout(this.updateTimer),this.updateTimer=null))})),null===(le=this.resizeObserver)||void 0===le||le.observe(this.container)}detachObserver(){var le;null===(le=this.resizeObserver)||void 0===le||le.disconnect()}attachEvents(){const{container:le}=this;le.addEventListener("click",this.onClick,{passive:!1,capture:!1}),le.addEventListener("wheel",this.onWheel,{passive:!1}),this.pointerTracker=new C(le,{start:this.onPointerDown,move:this.onPointerMove,end:this.onPointerUp}),document.addEventListener("mousemove",this.onMouseMove)}detachEvents(){var le;const{container:Ce}=this;Ce.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),Ce.removeEventListener("wheel",this.onWheel,{passive:!1}),null===(le=this.pointerTracker)||void 0===le||le.stop(),this.pointerTracker=null,document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("keydown",this.onKeydown,!0),this.clickTimer&&(clearTimeout(this.clickTimer),this.clickTimer=null),this.updateTimer&&(clearTimeout(this.updateTimer),this.updateTimer=null)}animate(){const le=this.friction;this.setTargetForce();const Ce=this.option("maxVelocity");for(const Ie of q)le?(this.velocity[Ie]*=1-le,Ce&&!this.isScaling&&(this.velocity[Ie]=Math.max(Math.min(this.velocity[Ie],Ce),-1*Ce)),this.current[Ie]+=this.velocity[Ie]):this.current[Ie]=this.target[Ie];this.setTransform(),this.setEdgeForce(),!this.isResting||this.isDragging?this.rAF=requestAnimationFrame(()=>this.animate()):this.stop("current")}setTargetForce(){for(const le of q)"e"===le&&this.isBouncingX||"f"===le&&this.isBouncingY||(this.velocity[le]=(1/(1-this.friction)-1)*(this.target[le]-this.current[le]))}checkBounds(le=0,Ce=0){const{current:Ie}=this,Pe=Ie.e+le,Oe=Ie.f+Ce,Se=this.getBounds(),{x:Xe,y:Ct}=Se,zt=Xe.min,kr=Xe.max,Br=Ct.min,xt=Ct.max;let tr=0,Rr=0;return zt!==1/0&&Pe<zt?tr=zt-Pe:kr!==1/0&&Pe>kr&&(tr=kr-Pe),Br!==1/0&&Oe<Br?Rr=Br-Oe:xt!==1/0&&Oe>xt&&(Rr=xt-Oe),Math.abs(tr)<.001&&(tr=0),Math.abs(Rr)<.001&&(Rr=0),Object.assign(Object.assign({},Se),{xDiff:tr,yDiff:Rr,inBounds:!tr&&!Rr})}clampTargetBounds(){const{target:le}=this,{x:Ce,y:Ie}=this.getBounds();Ce.min!==1/0&&(le.e=Math.max(le.e,Ce.min)),Ce.max!==1/0&&(le.e=Math.min(le.e,Ce.max)),Ie.min!==1/0&&(le.f=Math.max(le.f,Ie.min)),Ie.max!==1/0&&(le.f=Math.min(le.f,Ie.max))}calculateContentDim(le=this.current){const{content:Ce,contentRect:Ie}=this,{fitWidth:Pe,fitHeight:Oe,fullWidth:Se,fullHeight:Xe}=Ie;let Ct=Se,zt=Xe;if(this.option("zoom")||0!==this.angle){const kr=!(Ce instanceof HTMLImageElement||"none"!==window.getComputedStyle(Ce).maxWidth&&"none"!==window.getComputedStyle(Ce).maxHeight),Br=kr?Se:Pe,xt=kr?Xe:Oe,tr=this.getMatrix(le),Rr=new DOMPoint(0,0).matrixTransform(tr),Ur=new DOMPoint(0+Br,0).matrixTransform(tr),Nr=new DOMPoint(0+Br,0+xt).matrixTransform(tr),zr=new DOMPoint(0,0+xt).matrixTransform(tr),hn=Math.abs(Nr.x-Rr.x),_n=Math.abs(Nr.y-Rr.y),Tn=Math.abs(zr.x-Ur.x),sr=Math.abs(zr.y-Ur.y);Ct=Math.max(hn,Tn),zt=Math.max(_n,sr)}return{contentWidth:Ct,contentHeight:zt}}setEdgeForce(){if(this.ignoreBounds||this.isDragging||"mousemove"===this.panMode||this.targetScale<this.scale)return this.isBouncingX=!1,void(this.isBouncingY=!1);const{target:le}=this,{x:Ce,y:Ie,xDiff:Pe,yDiff:Oe}=this.checkBounds(),Se=this.option("maxVelocity");let Xe=this.velocity.e,Ct=this.velocity.f;0!==Pe?(this.isBouncingX=!0,Pe*Xe<=0?Xe+=.14*Pe:(Xe=.14*Pe,Ce.min!==1/0&&(this.target.e=Math.max(le.e,Ce.min)),Ce.max!==1/0&&(this.target.e=Math.min(le.e,Ce.max))),Se&&(Xe=Math.max(Math.min(Xe,Se),-1*Se))):this.isBouncingX=!1,0!==Oe?(this.isBouncingY=!0,Oe*Ct<=0?Ct+=.14*Oe:(Ct=.14*Oe,Ie.min!==1/0&&(this.target.f=Math.max(le.f,Ie.min)),Ie.max!==1/0&&(this.target.f=Math.min(le.f,Ie.max))),Se&&(Ct=Math.max(Math.min(Ct,Se),-1*Se))):this.isBouncingY=!1,this.isBouncingX&&(this.velocity.e=Xe),this.isBouncingY&&(this.velocity.f=Ct)}enable(){const{content:le}=this,Ce=new DOMMatrixReadOnly(window.getComputedStyle(le).transform);for(const Ie of q)this.current[Ie]=this.target[Ie]=Ce[Ie];this.updateMetrics(),this.attachObserver(),this.attachEvents(),this.state=U.Ready,this.emit("ready")}onClick(le){var Ce;this.isDragging&&(null===(Ce=this.pointerTracker)||void 0===Ce||Ce.clear(),this.trackingPoints=[],this.startDecelAnim());const Ie=le.target;if(!Ie||le.defaultPrevented)return;if(Ie&&Ie.hasAttribute("disabled"))return le.preventDefault(),void le.stopPropagation();if((()=>{const xt=window.getSelection();return xt&&"Range"===xt.type})()&&!Ie.closest("button"))return;const Pe=Ie.closest("[data-panzoom-action]"),Oe=Ie.closest("[data-panzoom-change]"),Se=Pe||Oe,Xe=Se&&K(Se)?Se.dataset:null;if(Xe){const xt=Xe.panzoomChange,tr=Xe.panzoomAction;if((xt||tr)&&le.preventDefault(),xt){let Rr={};try{Rr=JSON.parse(xt)}catch{console&&console.warn("The given data was not valid JSON")}return void this.applyChange(Rr)}if(tr)return void(this[tr]&&this[tr]())}if(Math.abs(this.dragOffset.x)>3||Math.abs(this.dragOffset.y)>3)return le.preventDefault(),void le.stopPropagation();const Ct=this.content.getBoundingClientRect();if(this.dragStart.time&&!this.canZoomOut()&&(Math.abs(Ct.x-this.dragStart.x)>2||Math.abs(Ct.y-this.dragStart.y)>2))return;this.dragStart.time=0;const zt=xt=>{this.option("zoom")&&xt&&"string"==typeof xt&&/(iterateZoom)|(toggle(Zoom|Full|Cover|Max)|(zoomTo(Fit|Cover|Max)))/.test(xt)&&"function"==typeof this[xt]&&(le.preventDefault(),this[xt]({event:le}))},kr=this.option("click",le),Br=this.option("dblClick",le);Br?(this.clicks++,1==this.clicks&&(this.clickTimer=setTimeout(()=>{1===this.clicks?(this.emit("click",le),!le.defaultPrevented&&kr&&zt(kr)):(this.emit("dblClick",le),le.defaultPrevented||zt(Br)),this.clicks=0,this.clickTimer=null},350))):(this.emit("click",le),!le.defaultPrevented&&kr&&zt(kr))}addTrackingPoint(le){const Ce=this.trackingPoints.filter(Ie=>Ie.time>Date.now()-100);Ce.push(le),this.trackingPoints=Ce}onPointerDown(le,Ce,Ie){var Pe;this.pwt=0,this.dragOffset={x:0,y:0,time:0},this.trackingPoints=[];const Oe=this.content.getBoundingClientRect();if(this.dragStart={x:Oe.x,y:Oe.y,top:Oe.top,left:Oe.left,time:Date.now()},this.clickTimer)return!1;if("mousemove"===this.panMode&&this.targetScale>1)return le.preventDefault(),le.stopPropagation(),!1;if(!Ie.length){const Se=le.composedPath()[0];if(["A","TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].includes(Se.nodeName)||Se.closest("[contenteditable]")||Se.closest("[data-selectable]")||Se.closest("[data-panzoom-change]")||Se.closest("[data-panzoom-action]"))return!1;null===(Pe=window.getSelection())||void 0===Pe||Pe.removeAllRanges()}if("mousedown"===le.type)le.preventDefault();else if(Math.abs(this.velocity.a)>.3)return!1;return this.target.e=this.current.e,this.target.f=this.current.f,this.stop(),this.isDragging||(this.isDragging=!0,this.addTrackingPoint(Ce),this.emit("touchStart",le)),!0}onPointerMove(le,Ce,Ie){if(!1===this.option("touch",le)||!this.isDragging||Ce.length<2&&this.panOnlyZoomed&&l(this.targetScale)<=l(this.minScale)||(this.emit("touchMove",le),le.defaultPrevented))return;this.addTrackingPoint(Ce[0]);const{content:Pe}=this,Oe=a(Ie[0],Ie[1]),Se=a(Ce[0],Ce[1]);let Xe=0,Ct=0;if(Ce.length>1){const _n=Pe.getBoundingClientRect();Xe=Oe.clientX-_n.left-.5*_n.width,Ct=Oe.clientY-_n.top-.5*_n.height}const zt=N(Ie[0],Ie[1]),kr=N(Ce[0],Ce[1]);let Br=zt?kr/zt:1,xt=Se.clientX-Oe.clientX,tr=Se.clientY-Oe.clientY;this.dragOffset.x+=xt,this.dragOffset.y+=tr,this.dragOffset.time=Date.now()-this.dragStart.time;let Rr=l(this.targetScale)===l(this.minScale)&&this.option("lockAxis");if(Rr&&!this.lockedAxis)if("xy"===Rr||"y"===Rr||"touchmove"===le.type){if(Math.abs(this.dragOffset.x)<6&&Math.abs(this.dragOffset.y)<6)return void le.preventDefault();const _n=Math.abs(180*Math.atan2(this.dragOffset.y,this.dragOffset.x)/Math.PI);this.lockedAxis=_n>45&&_n<135?"y":"x",this.dragOffset.x=0,this.dragOffset.y=0,xt=0,tr=0}else this.lockedAxis=Rr;if(r(le.target,this.content)&&(Rr="x",this.dragOffset.y=0),Rr&&"xy"!==Rr&&this.lockedAxis!==Rr&&l(this.targetScale)===l(this.minScale))return;le.cancelable&&le.preventDefault(),this.container.classList.add(this.cn("isDragging"));const Ur=this.checkBounds(xt,tr);this.option("rubberband")?("x"!==this.isInfinite&&(Ur.xDiff>0&&xt<0||Ur.xDiff<0&&xt>0)&&(xt*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitWidth*Ur.xDiff))),"y"!==this.isInfinite&&(Ur.yDiff>0&&tr<0||Ur.yDiff<0&&tr>0)&&(tr*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitHeight*Ur.yDiff)))):(Ur.xDiff&&(xt=0),Ur.yDiff&&(tr=0));const Nr=this.targetScale,zr=this.minScale,hn=this.maxScale;Nr<.5*zr&&(Br=Math.max(Br,zr)),Nr>1.5*hn&&(Br=Math.min(Br,hn)),"y"===this.lockedAxis&&l(Nr)===l(zr)&&(xt=0),"x"===this.lockedAxis&&l(Nr)===l(zr)&&(tr=0),this.applyChange({originX:Xe,originY:Ct,panX:xt,panY:tr,scale:Br,friction:this.option("dragFriction"),ignoreBounds:!0})}onPointerUp(le,Ce,Ie){if(Ie.length)return this.dragOffset.x=0,this.dragOffset.y=0,void(this.trackingPoints=[]);this.container.classList.remove(this.cn("isDragging")),this.isDragging&&(this.addTrackingPoint(Ce),this.panOnlyZoomed&&this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1&&(this.trackingPoints=[]),r(le.target,this.content)&&"y"===this.lockedAxis&&(this.trackingPoints=[]),this.emit("touchEnd",le),this.isDragging=!1,this.lockedAxis=!1,this.state!==U.Destroy&&(le.defaultPrevented||this.startDecelAnim()))}startDecelAnim(){const le=this.isScaling;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const zr of q)this.velocity[zr]=0;this.target.e=this.current.e,this.target.f=this.current.f,re(this.container,"is-scaling"),re(this.container,"is-animating"),this.isTicking=!1;const{trackingPoints:Ce}=this,Ie=Ce[0],Pe=Ce[Ce.length-1];let Oe=0,Se=0,Xe=0;Pe&&Ie&&(Oe=Pe.clientX-Ie.clientX,Se=Pe.clientY-Ie.clientY,Xe=Pe.time-Ie.time);let Ct=0,zt=0,kr=0,Br=0,xt=this.option("decelFriction");const tr=this.targetScale;if(Xe>0){kr=Math.abs(Oe)>3?Oe/(Xe/30):0,Br=Math.abs(Se)>3?Se/(Xe/30):0;const zr=this.option("maxVelocity");zr&&(kr=Math.max(Math.min(kr,zr),-1*zr),Br=Math.max(Math.min(Br,zr),-1*zr))}kr&&(Ct=kr/(1/(1-xt)-1)),Br&&(zt=Br/(1/(1-xt)-1)),("y"===this.option("lockAxis")||"xy"===this.option("lockAxis")&&"y"===this.lockedAxis&&l(tr)===this.minScale)&&(Ct=kr=0),("x"===this.option("lockAxis")||"xy"===this.option("lockAxis")&&"x"===this.lockedAxis&&l(tr)===this.minScale)&&(zt=Br=0);const Rr=this.dragOffset.x,Ur=this.dragOffset.y,Nr=this.option("dragMinThreshold")||0;Math.abs(Rr)<Nr&&Math.abs(Ur)<Nr&&(Ct=zt=0,kr=Br=0),(tr<this.minScale-1e-5||tr>this.maxScale+1e-5||le&&!Ct&&!zt)&&(xt=.35),this.applyChange({panX:Ct,panY:zt,friction:xt}),this.emit("decel",kr,Br,Rr,Ur)}onWheel(le){var Ce=[-le.deltaX||0,-le.deltaY||0,-le.detail||0].reduce(function(Oe,Se){return Math.abs(Se)>Math.abs(Oe)?Se:Oe});const Ie=Math.max(-1,Math.min(1,Ce));if(this.emit("wheel",le,Ie),"mousemove"===this.panMode||le.defaultPrevented)return;const Pe=this.option("wheel");"pan"===Pe?(le.preventDefault(),this.panOnlyZoomed&&!this.canZoomOut()||this.applyChange({panX:2*-le.deltaX,panY:2*-le.deltaY,bounce:!1})):"zoom"===Pe&&!1!==this.option("zoom")&&this.zoomWithWheel(le)}onMouseMove(le){this.panWithMouse(le)}onKeydown(le){"Escape"===le.key&&this.toggleFS()}onResize(){this.updateMetrics(),this.checkBounds().inBounds||this.requestTick()}setTransform(){this.emit("beforeTransform");const{current:le,target:Ce,content:Ie,contentRect:Pe}=this,Oe=Object.assign({},B);for(const Nr of q)Oe[Nr]=l(le[Nr],"e"==Nr||"f"===Nr?1e3:1e5),Math.abs(Ce[Nr]-le[Nr])<("e"==Nr||"f"===Nr?.51:.001)&&(le[Nr]=Ce[Nr]);let{a:Se,b:Xe,c:Ct,d:zt,e:kr,f:Br}=Oe,xt=`matrix(${Se}, ${Xe}, ${Ct}, ${zt}, ${kr}, ${Br})`,tr=Ie.parentElement instanceof HTMLPictureElement?Ie.parentElement:Ie;if(this.option("transformParent")&&(tr=tr.parentElement||tr),tr.style.transform===xt)return;tr.style.transform=xt;const{contentWidth:Rr,contentHeight:Ur}=this.calculateContentDim();Pe.width=Rr,Pe.height=Ur,this.emit("afterTransform")}updateMetrics(le=!1){if(!this||this.state===U.Destroy||this.isContentLoading)return;const{container:Ce,content:Ie}=this,Pe=Ie instanceof HTMLImageElement,Oe=Ce.getBoundingClientRect(),Se=getComputedStyle(this.container),Xe=Oe.width,Ct=Oe.height,zt=parseFloat(Se.paddingTop)+parseFloat(Se.paddingBottom),kr=Xe-(parseFloat(Se.paddingLeft)+parseFloat(Se.paddingRight));this.containerRect={width:Xe,height:Ct,innerWidth:kr,innerHeight:Ct-zt};let xt=this.option("width")||"auto",tr=this.option("height")||"auto";"auto"===xt&&(xt=parseFloat(Ie.dataset.width||"")||(sr=>{let fr=0;return fr=sr instanceof HTMLImageElement?sr.naturalWidth:sr instanceof SVGElement?sr.width.baseVal.value:Math.max(sr.offsetWidth,sr.scrollWidth),fr||0})(Ie)),"auto"===tr&&(tr=parseFloat(Ie.dataset.height||"")||(sr=>{let fr=0;return fr=sr instanceof HTMLImageElement?sr.naturalHeight:sr instanceof SVGElement?sr.height.baseVal.value:Math.max(sr.offsetHeight,sr.scrollHeight),fr||0})(Ie));let Rr=Ie.parentElement instanceof HTMLPictureElement?Ie.parentElement:Ie;this.option("transformParent")&&(Rr=Rr.parentElement||Rr);const Ur=Rr.getAttribute("style")||"";Rr.style.setProperty("transform","none","important"),Pe&&(Rr.style.width="",Rr.style.height="");const Nr=Ie.getBoundingClientRect();let zr=Nr.width,hn=Nr.height,_n=0,Tn=0;Pe&&(Math.abs(xt-zr)>1||Math.abs(tr-hn)>1)&&({width:zr,height:hn,top:_n,left:Tn}=((sr,fr,Kt,Qr)=>{const we=Kt/Qr;return we>sr/fr?(Kt=sr,Qr=sr/we):(Kt=fr*we,Qr=fr),{width:Kt,height:Qr,top:.5*(fr-Qr),left:.5*(sr-Kt)}})(zr,hn,xt,tr)),this.contentRect=Object.assign(Object.assign({},this.contentRect),{top:Nr.top-Oe.top+_n,bottom:Oe.bottom-Nr.bottom+_n,left:Nr.left-Oe.left+Tn,right:Oe.right-Nr.right+Tn,fitWidth:zr,fitHeight:hn,width:zr,height:hn,fullWidth:xt,fullHeight:tr}),Rr.style.cssText=Ur,Pe&&(Rr.style.width=`${zr}px`,Rr.style.height=`${hn}px`),this.setTransform(),!0!==le&&this.emit("refresh"),this.ignoreBounds||(l(this.targetScale)<l(this.minScale)?this.zoomTo(this.minScale,{friction:0}):this.targetScale>this.maxScale?this.zoomTo(this.maxScale,{friction:0}):this.state===U.Init||this.checkBounds().inBounds||this.requestTick()),this.updateControls()}getBounds(){const le=this.option("bounds");if("auto"!==le)return le;const{contentWidth:Ce,contentHeight:Ie}=this.calculateContentDim(this.target);let Pe=0,Oe=0,Se=0,Xe=0;const Ct=this.option("infinite");if(!0===Ct||this.lockedAxis&&Ct===this.lockedAxis)Pe=-1/0,Se=1/0,Oe=-1/0,Xe=1/0;else{let{containerRect:zt,contentRect:kr}=this,Br=l(this.contentRect.fitWidth*this.targetScale,1e3),xt=l(this.contentRect.fitHeight*this.targetScale,1e3),{innerWidth:tr,innerHeight:Rr}=zt;if(this.containerRect.width===Br&&(tr=zt.width),this.containerRect.width===xt&&(Rr=zt.height),Ce>tr){Se=.5*(Ce-tr),Pe=-1*Se;let Ur=.5*(kr.right-kr.left);Pe+=Ur,Se+=Ur}if(this.contentRect.fitWidth>tr&&Ce<tr&&(Pe-=.5*(this.contentRect.fitWidth-tr),Se-=.5*(this.contentRect.fitWidth-tr)),Ie>Rr){Xe=.5*(Ie-Rr),Oe=-1*Xe;let Ur=.5*(kr.bottom-kr.top);Oe+=Ur,Xe+=Ur}this.contentRect.fitHeight>Rr&&Ie<Rr&&(Pe-=.5*(this.contentRect.fitHeight-Rr),Se-=.5*(this.contentRect.fitHeight-Rr))}return{x:{min:Pe,max:Se},y:{min:Oe,max:Xe}}}updateControls(){const le=this,Ce=le.container,{panMode:Ie,contentRect:Pe,fullScale:Oe,targetScale:Se,coverScale:Xe,maxScale:Ct,minScale:zt}=le;let kr={toggleMax:Se-zt<.5*(Ct-zt)?Ct:zt,toggleCover:Se-zt<.5*(Xe-zt)?Xe:zt,toggleZoom:Se-zt<.5*(Oe-zt)?Oe:zt}[le.option("click")||""]||zt,Br=le.canZoomIn(),xt=le.canZoomOut(),tr=xt&&"drag"===Ie;l(Se)<l(zt)&&!this.panOnlyZoomed&&(tr=!0),(l(Pe.width,1)>l(Pe.fitWidth,1)||l(Pe.height,1)>l(Pe.fitHeight,1))&&(tr=!0),l(Pe.width*Se,1)<l(Pe.fitWidth,1)&&(tr=!1),"mousemove"===Ie&&(tr=!1);let Rr=Br&&l(kr)>l(Se),Ur=!Rr&&!tr&&xt&&l(kr)<l(Se);g(Ce,this.cn("canZoomIn"),Rr),g(Ce,this.cn("canZoomOut"),Ur),g(Ce,this.cn("isDraggable"),tr);for(const Nr of Ce.querySelectorAll('[data-panzoom-action="zoomIn"]'))Br?(Nr.removeAttribute("disabled"),Nr.removeAttribute("tabindex")):(Nr.setAttribute("disabled",""),Nr.setAttribute("tabindex","-1"));for(const Nr of Ce.querySelectorAll('[data-panzoom-action="zoomOut"]'))xt?(Nr.removeAttribute("disabled"),Nr.removeAttribute("tabindex")):(Nr.setAttribute("disabled",""),Nr.setAttribute("tabindex","-1"));for(const Nr of Ce.querySelectorAll('[data-panzoom-action="toggleZoom"],[data-panzoom-action="iterateZoom"]')){Br||xt?(Nr.removeAttribute("disabled"),Nr.removeAttribute("tabindex")):(Nr.setAttribute("disabled",""),Nr.setAttribute("tabindex","-1"));const zr=Nr.querySelector("g");zr&&(zr.style.display=Br?"":"none")}}panTo({x:le=this.target.e,y:Ce=this.target.f,scale:Ie=this.targetScale,friction:Pe=this.option("friction"),angle:Oe=0,originX:Se=0,originY:Xe=0,flipX:Ct=!1,flipY:zt=!1,ignoreBounds:kr=!1}){this.state!==U.Destroy&&this.applyChange({panX:le-this.target.e,panY:Ce-this.target.f,scale:Ie/this.targetScale,angle:Oe,originX:Se,originY:Xe,friction:Pe,flipX:Ct,flipY:zt,ignoreBounds:kr})}applyChange({panX:le=0,panY:Ce=0,scale:Ie=1,angle:Pe=0,originX:Oe=-this.current.e,originY:Se=-this.current.f,friction:Xe=this.option("friction"),flipX:Ct=!1,flipY:zt=!1,ignoreBounds:kr=!1,bounce:Br=this.option("bounce")}){if(this.state===U.Destroy)return;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.friction=Xe||0,this.ignoreBounds=kr;const{current:xt}=this,tr=xt.e,Rr=xt.f,Ur=this.getMatrix(this.target);let Nr=(new DOMMatrix).translate(tr,Rr).translate(Oe,Se).translate(le,Ce);if(this.option("zoom")){if(!kr){const zr=this.targetScale,hn=this.minScale,_n=this.maxScale;zr*Ie<hn&&(Ie=hn/zr),zr*Ie>_n&&(Ie=_n/zr)}Nr=Nr.scale(Ie)}Nr=Nr.translate(-Oe,-Se).translate(-tr,-Rr).multiply(Ur),Pe&&(Nr=Nr.rotate(Pe)),Ct&&(Nr=Nr.scale(-1,1)),zt&&(Nr=Nr.scale(1,-1));for(const zr of q)this.target[zr]="e"!==zr&&"f"!==zr&&(Nr[zr]>this.minScale+1e-5||Nr[zr]<this.minScale-1e-5)?Nr[zr]:l(Nr[zr],1e3);(this.targetScale<this.scale||Math.abs(Ie-1)>.1||"mousemove"===this.panMode||!1===Br)&&!kr&&this.clampTargetBounds(),this.isResting||(this.state=U.Panning,this.requestTick())}stop(le=!1){if(this.state===U.Init||this.state===U.Destroy)return;const Ce=this.isTicking;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const Ie of q)this.velocity[Ie]=0,"current"===le?this.current[Ie]=this.target[Ie]:"target"===le&&(this.target[Ie]=this.current[Ie]);this.setTransform(),re(this.container,"is-scaling"),re(this.container,"is-animating"),this.isTicking=!1,this.state=U.Ready,Ce&&(this.emit("endAnimation"),this.updateControls())}requestTick(){this.isTicking||(this.emit("startAnimation"),this.updateControls(),oe(this.container,"is-animating"),this.isScaling&&oe(this.container,"is-scaling")),this.isTicking=!0,this.rAF||(this.rAF=requestAnimationFrame(()=>this.animate()))}panWithMouse(le,Ce=this.option("mouseMoveFriction")){if(this.pmme=le,"mousemove"!==this.panMode||!le||l(this.targetScale)<=l(this.minScale))return;this.emit("mouseMove",le);const{container:Ie,containerRect:Pe,contentRect:Oe}=this,Se=Pe.width,Xe=Pe.height,Ct=Ie.getBoundingClientRect(),zt=(le.clientX||0)-Ct.left,kr=(le.clientY||0)-Ct.top;let{contentWidth:Br,contentHeight:xt}=this.calculateContentDim(this.target);const tr=this.option("mouseMoveFactor");tr>1&&(Br!==Se&&(Br*=tr),xt!==Xe&&(xt*=tr));let Rr=.5*(Br-Se)-zt/Se*100/100*(Br-Se);Rr+=.5*(Oe.right-Oe.left);let Ur=.5*(xt-Xe)-kr/Xe*100/100*(xt-Xe);Ur+=.5*(Oe.bottom-Oe.top),this.applyChange({panX:Rr-this.target.e,panY:Ur-this.target.f,friction:Ce})}zoomWithWheel(le){if(this.state===U.Destroy||this.state===U.Init)return;const Ce=Date.now();if(Ce-this.pwt<45)return void le.preventDefault();this.pwt=Ce;var Ie=[-le.deltaX||0,-le.deltaY||0,-le.detail||0].reduce(function(zt,kr){return Math.abs(kr)>Math.abs(zt)?kr:zt});const Pe=Math.max(-1,Math.min(1,Ie)),{targetScale:Oe,maxScale:Se,minScale:Xe}=this;let Ct=Oe*(100+45*Pe)/100;l(Ct)<l(Xe)&&l(Oe)<=l(Xe)?(this.cwd+=Math.abs(Pe),Ct=Xe):l(Ct)>l(Se)&&l(Oe)>=l(Se)?(this.cwd+=Math.abs(Pe),Ct=Se):(this.cwd=0,Ct=Math.max(Math.min(Ct,Se),Xe)),this.cwd>this.option("wheelLimit")||(le.preventDefault(),l(Ct)!==l(Oe)&&this.zoomTo(Ct,{event:le}))}canZoomIn(){return this.option("zoom")&&(l(this.contentRect.width,1)<l(this.contentRect.fitWidth,1)||l(this.targetScale)<l(this.maxScale))}canZoomOut(){return this.option("zoom")&&l(this.targetScale)>l(this.minScale)}zoomIn(le=1.25,Ce){this.zoomTo(this.targetScale*le,Ce)}zoomOut(le=.8,Ce){this.zoomTo(this.targetScale*le,Ce)}zoomToFit(le){this.zoomTo("fit",le)}zoomToCover(le){this.zoomTo("cover",le)}zoomToFull(le){this.zoomTo("full",le)}zoomToMax(le){this.zoomTo("max",le)}toggleZoom(le){this.zoomTo(this.targetScale-this.minScale<.5*(this.fullScale-this.minScale)?"full":"fit",le)}toggleMax(le){this.zoomTo(this.targetScale-this.minScale<.5*(this.maxScale-this.minScale)?"max":"fit",le)}toggleCover(le){this.zoomTo(this.targetScale-this.minScale<.5*(this.coverScale-this.minScale)?"cover":"fit",le)}iterateZoom(le){this.zoomTo("next",le)}zoomTo(le=1,{friction:Ce="auto",originX:Ie=0,originY:Pe=0,event:Oe}={}){if(this.isContentLoading||this.state===U.Destroy)return;const{targetScale:Se}=this;this.stop();let Xe=1;if("mousemove"===this.panMode&&(Oe=this.pmme||Oe),Oe){const Br=this.content.getBoundingClientRect();Ie=(Oe.clientX||0)-Br.left-.5*Br.width,Pe=(Oe.clientY||0)-Br.top-.5*Br.height}const Ct=this.fullScale,zt=this.maxScale;let kr=this.coverScale;"number"==typeof le?Xe=le/Se:("next"===le&&(Ct-kr<.2&&(kr=Ct),le=Se<Ct-1e-5?"full":Se<zt-1e-5?"max":"fit"),Xe="full"===le?Ct/Se||1:"cover"===le?kr/Se||1:"max"===le?zt/Se||1:1/Se||1),this.applyChange({scale:Xe,originX:Ie,originY:Pe,friction:Ce="auto"===Ce?Xe>1?.15:.25:Ce}),Oe&&"mousemove"===this.panMode&&this.panWithMouse(Oe,Ce)}rotateCCW(){this.applyChange({angle:-90})}rotateCW(){this.applyChange({angle:90})}flipX(){this.applyChange({flipX:!0})}flipY(){this.applyChange({flipY:!0})}fitX(){this.stop("target");const{containerRect:le,contentRect:Ce,target:Ie}=this;this.applyChange({panX:.5*le.width-(Ce.left+.5*Ce.fitWidth)-Ie.e,panY:.5*le.height-(Ce.top+.5*Ce.fitHeight)-Ie.f,scale:le.width/Ce.fitWidth/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}fitY(){this.stop("target");const{containerRect:le,contentRect:Ce,target:Ie}=this;this.applyChange({panX:.5*le.width-(Ce.left+.5*Ce.fitWidth)-Ie.e,panY:.5*le.innerHeight-(Ce.top+.5*Ce.fitHeight)-Ie.f,scale:le.height/Ce.fitHeight/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}toggleFS(){const{container:le}=this,Ce=this.cn("inFullscreen"),Ie=this.cn("htmlHasFullscreen");le.classList.toggle(Ce);const Pe=le.classList.contains(Ce);Pe?(document.documentElement.classList.add(Ie),document.addEventListener("keydown",this.onKeydown,!0)):(document.documentElement.classList.remove(Ie),document.removeEventListener("keydown",this.onKeydown,!0)),this.updateMetrics(),this.emit(Pe?"enterFS":"exitFS")}getMatrix(le=this.current){const{a:Ce,b:Ie,c:Pe,d:Oe,e:Se,f:Xe}=le;return new DOMMatrix([Ce,Ie,Pe,Oe,Se,Xe])}reset(le){if(this.state!==U.Init&&this.state!==U.Destroy){this.stop("current");for(const Ce of q)this.target[Ce]=B[Ce];this.target.a=this.minScale,this.target.d=this.minScale,this.clampTargetBounds(),this.isResting||(this.friction=void 0===le?this.option("friction"):le,this.state=U.Panning,this.requestTick())}}destroy(){this.stop(),this.state=U.Destroy,this.detachEvents(),this.detachObserver();const{container:le,content:Ce}=this,Ie=this.option("classes")||{};for(const Pe of Object.values(Ie))le.classList.remove(Pe+"");Ce&&(Ce.removeEventListener("load",this.onLoad),Ce.removeEventListener("error",this.onError)),this.detachPlugins()}}Object.defineProperty(w,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:G}),Object.defineProperty(w,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}});const E=function(Gt,le){let Ce=!0;return(...Ie)=>{Ce&&(Ce=!1,Gt(...Ie),setTimeout(()=>{Ce=!0},le))}},x=(Gt,le)=>{let Ce=[];return Gt.childNodes.forEach(Ie=>{Ie.nodeType!==Node.ELEMENT_NODE||le&&!Ie.matches(le)||Ce.push(Ie)}),Ce};var $;!function(Gt){Gt[Gt.Init=0]="Init",Gt[Gt.Ready=1]="Ready",Gt[Gt.Destroy=2]="Destroy"}($||($={}));const Y=Gt=>{if("string"==typeof Gt&&(Gt={html:Gt}),!(Gt instanceof String||Gt instanceof HTMLElement)){const le=Gt.thumb;void 0!==le&&("string"==typeof le&&(Gt.thumbSrc=le),le instanceof HTMLImageElement&&(Gt.thumbEl=le,Gt.thumbElSrc=le.src,Gt.thumbSrc=le.src),delete Gt.thumb)}return Object.assign({html:"",el:null,isDom:!1,class:"",index:-1,dim:0,gap:0,pos:0,transition:!1},Gt)},u=(Gt={})=>Object.assign({index:-1,slides:[],dim:0,pos:-1},Gt);class W extends V{constructor(le,Ce){super(Ce),Object.defineProperty(this,"instance",{enumerable:!0,configurable:!0,writable:!0,value:le})}attach(){}detach(){}}class ae extends W{constructor(){super(...arguments),Object.defineProperty(this,"isDynamic",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"list",{enumerable:!0,configurable:!0,writable:!0,value:null})}onRefresh(){this.refresh()}build(){let le=this.list;return le||(le=document.createElement("ul"),oe(le,this.cn("list")),le.setAttribute("role","tablist"),this.instance.container.appendChild(le),oe(this.instance.container,this.cn("hasDots")),this.list=le),le}refresh(){var le;const Ce=this.instance.pages.length,Ie=Math.min(2,this.option("minCount")),Pe=Math.max(2e3,this.option("maxCount")),Oe=this.option("dynamicFrom");if(Ce<Ie||Ce>Pe)return void this.cleanup();const Se="number"==typeof Oe&&Ce>5&&Ce>=Oe,Xe=!this.list||this.isDynamic!==Se||this.list.children.length!==Ce;Xe&&this.cleanup();const Ct=this.build();if(g(Ct,this.cn("isDynamic"),!!Se),Xe)for(let Br=0;Br<Ce;Br++)Ct.append(this.createItem(Br));let zt,kr=0;for(const Br of[...Ct.children]){const xt=kr===this.instance.page;xt&&(zt=Br),g(Br,this.cn("isCurrent"),xt),null===(le=Br.children[0])||void 0===le||le.setAttribute("aria-selected",xt?"true":"false");for(const tr of["isBeforePrev","isPrev","isNext","isAfterNext"])re(Br,this.cn(tr));kr++}if(zt=zt||Ct.firstChild,Se&&zt){const Br=zt.previousElementSibling,xt=Br&&Br.previousElementSibling;oe(Br,this.cn("isPrev")),oe(xt,this.cn("isBeforePrev"));const tr=zt.nextElementSibling,Rr=tr&&tr.nextElementSibling;oe(tr,this.cn("isNext")),oe(Rr,this.cn("isAfterNext"))}this.isDynamic=Se}createItem(le=0){var Ce;const Ie=document.createElement("li");Ie.setAttribute("role","presentation");const Pe=d(this.instance.localize(this.option("dotTpl"),[["%d",le+1]]).replace(/\%i/g,le+""));return Ie.appendChild(Pe),null===(Ce=Ie.children[0])||void 0===Ce||Ce.setAttribute("role","tab"),Ie}cleanup(){this.list&&(this.list.remove(),this.list=null),this.isDynamic=!1,re(this.instance.container,this.cn("hasDots"))}attach(){this.instance.on(["refresh","change"],this.onRefresh)}detach(){this.instance.off(["refresh","change"],this.onRefresh),this.cleanup()}}Object.defineProperty(ae,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{classes:{list:"f-carousel__dots",isDynamic:"is-dynamic",hasDots:"has-dots",dot:"f-carousel__dot",isBeforePrev:"is-before-prev",isPrev:"is-prev",isCurrent:"is-current",isNext:"is-next",isAfterNext:"is-after-next"},dotTpl:'<button type="button" data-carousel-page="%i" aria-label="{{GOTO}}"><span class="f-carousel__dot" aria-hidden="true"></span></button>',dynamicFrom:11,maxCount:1/0,minCount:2}});class ye extends W{constructor(){super(...arguments),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"prev",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"next",{enumerable:!0,configurable:!0,writable:!0,value:null})}onRefresh(){const le=this.instance,Ce=le.pages.length,Ie=le.page;if(Ce<2)return void this.cleanup();this.build();let Pe=this.prev,Oe=this.next;Pe&&Oe&&(Pe.removeAttribute("disabled"),Oe.removeAttribute("disabled"),le.isInfinite||(Ie<=0&&Pe.setAttribute("disabled",""),Ie>=Ce-1&&Oe.setAttribute("disabled","")))}createButton(le){const Ce=this.instance,Ie=document.createElement("button");var Oe;return Ie.setAttribute("tabindex","0"),Ie.setAttribute("title",Ce.localize(`{{${le.toUpperCase()}}}`)),oe(Ie,this.cn("button")+" "+this.cn("next"===le?"isNext":"isPrev")),Ie.innerHTML=Ce.localize(this.option(`${Ce.isRTL?"next"===le?"prev":"next":le}Tpl`)),Ie.dataset[`carousel${Oe=le,Oe?Oe.match("^[a-z]")?Oe.charAt(0).toUpperCase()+Oe.substring(1):Oe:""}`]="true",Ie}build(){let le=this.container;le||(this.container=le=document.createElement("div"),oe(le,this.cn("container")),this.instance.container.appendChild(le)),this.next||(this.next=le.appendChild(this.createButton("next"))),this.prev||(this.prev=le.appendChild(this.createButton("prev")))}cleanup(){this.prev&&this.prev.remove(),this.next&&this.next.remove(),this.container&&this.container.remove(),this.prev=null,this.next=null,this.container=null}attach(){this.instance.on(["refresh","change"],this.onRefresh)}detach(){this.instance.off(["refresh","change"],this.onRefresh),this.cleanup()}}Object.defineProperty(ye,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{classes:{container:"f-carousel__nav",button:"f-button",isNext:"is-next",isPrev:"is-prev"},nextTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M9 3l9 9-9 9"/></svg>',prevTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M15 3l-9 9 9 9"/></svg>'}});class Qe extends W{constructor(){super(...arguments),Object.defineProperty(this,"selectedIndex",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"nav",{enumerable:!0,configurable:!0,writable:!0,value:null})}addAsTargetFor(le){this.target=this.instance,this.nav=le,this.attachEvents()}addAsNavFor(le){this.nav=this.instance,this.target=le,this.attachEvents()}attachEvents(){this.nav&&this.target&&(this.nav.options.initialSlide=this.target.options.initialPage,this.nav.on("ready",this.onNavReady),this.nav.state===$.Ready&&this.onNavReady(this.nav),this.target.on("ready",this.onTargetReady),this.target.state===$.Ready&&this.onTargetReady(this.target))}onNavReady(le){le.on("createSlide",this.onNavCreateSlide),le.on("Panzoom.click",this.onNavClick),le.on("Panzoom.touchEnd",this.onNavTouch),this.onTargetChange()}onTargetReady(le){le.on("change",this.onTargetChange),le.on("Panzoom.refresh",this.onTargetChange),this.onTargetChange()}onNavClick(le,Ce,Ie){Ie.pointerType||this.onNavTouch(le,le.panzoom,Ie)}onNavTouch(le,Ce,Ie){var Pe,Oe;if(Math.abs(Ce.dragOffset.x)>3||Math.abs(Ce.dragOffset.y)>3)return;const Se=Ie.target,{nav:Xe,target:Ct}=this;if(!Xe||!Ct||!Se)return;const zt=Se.closest("[data-index]");if(Ie.stopPropagation(),Ie.preventDefault(),!zt)return;const kr=parseInt(zt.dataset.index||"",10)||0,Br=Ct.getPageForSlide(kr),xt=Xe.getPageForSlide(kr);Xe.slideTo(xt),Ct.slideTo(Br,{friction:null===(Oe=null===(Pe=this.nav)||void 0===Pe?void 0:Pe.plugins)||void 0===Oe?void 0:Oe.Sync.option("friction")}),this.markSelectedSlide(kr)}onNavCreateSlide(le,Ce){Ce.index===this.selectedIndex&&this.markSelectedSlide(Ce.index)}onTargetChange(){const{target:le,nav:Ce}=this;if(!le||!Ce||Ce.state!==$.Ready||le.state!==$.Ready)return;const Ie=le.pages[le.page].slides[0].index,Pe=Ce.getPageForSlide(Ie);this.markSelectedSlide(Ie),Ce.slideTo(Pe)}markSelectedSlide(le){const{nav:Ce}=this;Ce&&Ce.state===$.Ready&&(this.selectedIndex=le,[...Ce.slides].map(Ie=>{Ie.el&&Ie.el.classList[Ie.index===le?"add":"remove"]("is-nav-selected")}))}attach(){let le=this.options.target,Ce=this.options.nav;le?this.addAsNavFor(le):Ce&&this.addAsTargetFor(Ce)}detach(){this.nav&&(this.nav.off("ready",this.onNavReady),this.nav.off("createSlide",this.onNavCreateSlide),this.nav.off("Panzoom.click",this.onNavClick),this.nav.off("Panzoom.touchEnd",this.onNavTouch)),this.nav=null,this.target&&(this.target.off("ready",this.onTargetReady),this.target.off("refresh",this.onTargetChange),this.target.off("change",this.onTargetChange)),this.target=null}}Object.defineProperty(Qe,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{friction:.35}});const Ot={Navigation:ye,Dots:ae,Sync:Qe};class At extends D{get axis(){return this.isHorizontal?"e":"f"}get isEnabled(){return this.state===$.Ready}get isInfinite(){let le=!1;return this.pages.length>=2&&this.contentDim>1.5*this.viewportDim&&(le=this.option("infinite")),le}get isRTL(){return"rtl"===this.option("direction")}get isHorizontal(){return"x"===this.option("axis")}constructor(le,Ce={},Ie={}){if(super(),Object.defineProperty(this,"userOptions",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"bp",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"lp",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:$.Init}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"prevPage",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"viewport",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"track",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"slides",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"pages",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"panzoom",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"inTransition",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"contentDim",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"viewportDim",{enumerable:!0,configurable:!0,writable:!0,value:0}),"string"==typeof le&&(le=document.querySelector(le)),!le||!K(le))throw new Error("No Element found");this.container=le,this.slideNext=E(this.slideNext.bind(this),150),this.slidePrev=E(this.slidePrev.bind(this),150),this.userOptions=Ce,this.userPlugins=Ie,queueMicrotask(()=>{this.processOptions()})}processOptions(){const le=H({},At.defaults,this.userOptions);let Ce="";const Ie=le.breakpoints;if(Ie&&O(Ie))for(const[Pe,Oe]of Object.entries(Ie))window.matchMedia(Pe).matches&&O(Oe)&&(Ce+=Pe,H(le,Oe));Ce===this.bp&&this.state!==$.Init||(this.bp=Ce,this.state===$.Ready&&(le.initialSlide=this.pages[this.page].slides[0].index),this.state!==$.Init&&this.destroy(),super.setOptions(le),!1===this.option("enabled")?this.attachEvents():setTimeout(()=>{this.init()},0))}init(){this.state=$.Init,this.emit("init"),this.attachPlugins(Object.assign(Object.assign({},At.Plugins),this.userPlugins)),this.initLayout(),this.initSlides(),this.updateMetrics(),this.setInitialPosition(),this.initPanzoom(),this.attachEvents(),this.state=$.Ready,this.emit("ready")}initLayout(){const{container:le}=this,Ce=this.option("classes");oe(le,this.cn("container")),g(le,Ce.isLTR,!this.isRTL),g(le,Ce.isRTL,this.isRTL),g(le,Ce.isVertical,!this.isHorizontal),g(le,Ce.isHorizontal,this.isHorizontal);let Ie=this.option("viewport")||le.querySelector(`.${Ce.viewport}`);Ie||(Ie=document.createElement("div"),oe(Ie,Ce.viewport),Ie.append(...x(le,`.${Ce.slide}`)),le.prepend(Ie));let Pe=this.option("track")||le.querySelector(`.${Ce.track}`);Pe||(Pe=document.createElement("div"),oe(Pe,Ce.track),Pe.append(...Array.from(Ie.childNodes))),Pe.setAttribute("aria-live","polite"),Ie.contains(Pe)||Ie.prepend(Pe),this.viewport=Ie,this.track=Pe,this.emit("initLayout")}initSlides(){const{track:le}=this;if(le){this.slides=[],[...x(le,`.${this.cn("slide")}`)].forEach(Ce=>{if(K(Ce)){const Ie=Y({el:Ce,isDom:!0,index:this.slides.length});this.slides.push(Ie),this.emit("initSlide",Ie,this.slides.length)}});for(let Ce of this.option("slides",[])){const Ie=Y(Ce);Ie.index=this.slides.length,this.slides.push(Ie),this.emit("initSlide",Ie,this.slides.length)}this.emit("initSlides")}}setInitialPage(){let le=0;const Ce=this.option("initialSlide");le="number"==typeof Ce?this.getPageForSlide(Ce):parseInt(this.option("initialPage",0)+"",10)||0,this.page=le}setInitialPosition(){if(!this.track||!this.pages.length)return;const le=this.isHorizontal;let Ce=this.page;this.pages[Ce]||(this.page=Ce=0);const Ie=this.pages[Ce].pos*(this.isRTL&&le?1:-1);this.track.style.transform=`translate3d(${le?`${Ie}px`:"0"}, ${le?"0":`${Ie}px`}, 0) scale(1)`,this.option("adaptiveHeight")&&this.setViewportHeight()}initPanzoom(){this.panzoom&&(this.panzoom.destroy(),this.panzoom=null);const le=this.option("Panzoom")||{};this.panzoom=new w(this.viewport,H({},{content:this.track,zoom:!1,panOnlyZoomed:!1,lockAxis:this.isHorizontal?"x":"y",infinite:this.isInfinite,click:!1,dblClick:!1,touch:Ce=>!(this.pages.length<2&&!Ce.options.infinite),bounds:()=>this.getBounds(),maxVelocity:Ce=>Math.abs(Ce.target[this.axis]-Ce.current[this.axis])<2*this.viewportDim?100:0},le)),this.panzoom.on("*",(Ce,Ie,...Pe)=>{this.emit(`Panzoom.${Ie}`,Ce,...Pe)}),this.panzoom.on("decel",this.onDecel),this.panzoom.on("refresh",this.onRefresh),this.panzoom.on("beforeTransform",this.onBeforeTransform),this.panzoom.on("endAnimation",this.onEndAnimation)}attachEvents(){const le=this.container;le&&(le.addEventListener("click",this.onClick,{passive:!1,capture:!1}),le.addEventListener("slideTo",this.onSlideTo)),window.addEventListener("resize",this.onResize)}createPages(){let le=[];const{contentDim:Ce,viewportDim:Ie}=this;let Pe=this.option("slidesPerPage");("number"!=typeof Pe||Ce<=Ie)&&(Pe=1/0);let Oe=0,Se=0,Xe=0;for(const Ct of this.slides)(!le.length||Se+Ct.dim>Ie||Xe===Pe)&&(le.push(u()),Oe=le.length-1,Se=0,Xe=0),le[Oe].slides.push(Ct),Se+=Ct.dim+Ct.gap,Xe++;return le}processPages(){const le=this.pages,{contentDim:Ce,viewportDim:Ie}=this,Pe=this.option("center"),Oe=this.option("fill"),Se=Oe&&Pe&&Ce>Ie&&!this.isInfinite;if(le.forEach((zt,kr)=>{zt.index=kr,zt.pos=zt.slides[0].pos,zt.dim=0;for(const[Br,xt]of zt.slides.entries())zt.dim+=xt.dim,Br<zt.slides.length-1&&(zt.dim+=xt.gap);Se&&zt.pos+.5*zt.dim<.5*Ie?zt.pos=0:Se&&zt.pos+.5*zt.dim>=Ce-.5*Ie?zt.pos=Ce-Ie:Pe&&(zt.pos+=-.5*(Ie-zt.dim))}),le.forEach((zt,kr)=>{Oe&&!this.isInfinite&&Ce>Ie&&(zt.pos=Math.max(zt.pos,0),zt.pos=Math.min(zt.pos,Ce-Ie)),zt.pos=l(zt.pos,1e3),zt.dim=l(zt.dim,1e3),zt.pos<.1&&zt.pos>-.1&&(zt.pos=0)}),this.isInfinite)return le;const Xe=[];let Ct;return le.forEach(zt=>{const kr=Object.assign({},zt);Ct&&kr.pos===Ct.pos?(Ct.dim+=kr.dim,Ct.slides=[...Ct.slides,...kr.slides]):(kr.index=Xe.length,Ct=kr,Xe.push(kr))}),Xe}getPageFromIndex(le=0){const Ce=this.pages.length;let Ie;return le=parseInt((le||0).toString())||0,Ie=this.isInfinite?(le%Ce+Ce)%Ce:Math.max(Math.min(le,Ce-1),0),Ie}getSlideMetrics(le){const Ce=this.isHorizontal?"width":"height";let Ie=0,Pe=0,Oe=le.el;Oe?Ie=parseFloat(Oe.dataset[Ce]||"")||0:(Oe=document.createElement("div"),Oe.style.visibility="hidden",oe(Oe,this.cn("slide")+" "+le.class),(this.track||document.body).prepend(Oe)),Ie?(Oe.style[Ce]=`${Ie}px`,Oe.style["width"===Ce?"height":"width"]=""):Ie=Oe.getBoundingClientRect()[Ce];const Se=getComputedStyle(Oe);return"content-box"===Se.boxSizing&&(this.isHorizontal?(Ie+=parseFloat(Se.paddingLeft)||0,Ie+=parseFloat(Se.paddingRight)||0):(Ie+=parseFloat(Se.paddingTop)||0,Ie+=parseFloat(Se.paddingBottom)||0)),Pe=parseFloat(Se[this.isHorizontal?"marginRight":"marginBottom"])||0,le.el||Oe.remove(),{dim:l(Ie,1e3),gap:l(Pe,1e3)}}getBounds(){let le={min:0,max:0};if(this.isInfinite)le={min:-1/0,max:1/0};else if(this.pages.length){const Ce=this.pages[0].pos,Ie=this.pages[this.pages.length-1].pos;le=this.isRTL&&this.isHorizontal?{min:Ce,max:Ie}:{min:-1*Ie,max:-1*Ce}}return{x:this.isHorizontal?le:{min:0,max:0},y:this.isHorizontal?{min:0,max:0}:le}}repositionSlides(){let le,{viewport:Ce,viewportDim:Ie,contentDim:Pe,page:Oe,pages:Se}=this,Xe=0,Ct=0,zt=0,kr=0;this.panzoom?kr=-1*this.panzoom.current[this.axis]:Se[Oe]&&(kr=Se[Oe].pos||0),le=this.isHorizontal?this.isRTL?"right":"left":"top",this.isRTL&&this.isHorizontal&&(kr*=-1);for(const Rr of this.slides)Rr.el?("top"===le?(Rr.el.style.right="",Rr.el.style.left=""):Rr.el.style.top="",Rr.el.style[le]=Rr.index!==Xe?0===Ct?"":`${l(Ct,1e3)}px`:"",zt+=Rr.dim+Rr.gap,Xe++):Ct+=Rr.dim+Rr.gap;if(this.isInfinite&&zt&&Ce){const Rr=this.isHorizontal;let Ur=getComputedStyle(Ce),Nr="padding",zr=Rr?"Right":"Bottom",hn=parseFloat(Ur[Nr+(Rr?"Left":"Top")]);kr-=hn,Ie+=hn,Ie+=parseFloat(Ur[Nr+zr]);for(const _n of this.slides)_n.el&&(l(_n.pos)<l(Ie)&&l(_n.pos+_n.dim+_n.gap)<l(kr)&&l(kr)>l(Pe-Ie)&&(_n.el.style[le]=`${l(Ct+zt,1e3)}px`),l(_n.pos+_n.gap)>=l(Pe-Ie)&&l(_n.pos)>l(kr+Ie)&&l(kr)<l(Ie)&&(_n.el.style[le]=`-${l(zt,1e3)}px`))}let Br,xt,tr=[...this.inTransition];if(tr.length>1&&(Br=this.pages[tr[0]],xt=this.pages[tr[1]]),Br&&xt){let Rr=0;for(const Ur of this.slides)Ur.el?this.inTransition.has(Ur.index)&&Br.slides.indexOf(Ur)<0&&(Ur.el.style[le]=`${l(Rr+(Br.pos-xt.pos),1e3)}px`):Rr+=Ur.dim+Ur.gap}}createSlideEl(le){if(!this.track||!le||le.el)return;const Ce=document.createElement("div");oe(Ce,this.cn("slide")),oe(Ce,le.class),oe(Ce,le.customClass),le.html&&(Ce.innerHTML=le.html);const Ie=[];this.slides.forEach((Xe,Ct)=>{Xe.el&&Ie.push(Ct)});const Pe=le.index;let Oe=null;if(Ie.length){let Xe=Ie.reduce((Ct,zt)=>Math.abs(zt-Pe)<Math.abs(Ct-Pe)?zt:Ct);Oe=this.slides[Xe]}const Se=Oe&&Oe.el?Oe.index<le.index?Oe.el.nextSibling:Oe.el:null;this.track.insertBefore(Ce,this.track.contains(Se)?Se:null),le.el=Ce,this.emit("createSlide",le)}removeSlideEl(le,Ce=!1){const Ie=le.el;if(!Ie)return;if(re(Ie,this.cn("isSelected")),le.isDom&&!Ce)return Ie.removeAttribute("aria-hidden"),Ie.removeAttribute("data-index"),re(Ie,this.cn("isSelected")),void(Ie.style.left="");this.emit("removeSlide",le);const Pe=new CustomEvent("animationend");Ie.dispatchEvent(Pe),le.el&&le.el.remove(),le.el=null}transitionTo(le=0,Ce=this.option("transition")){if(!Ce)return!1;const{pages:Ie,panzoom:Pe}=this;le=parseInt((le||0).toString())||0;const Oe=this.getPageFromIndex(le);if(!Pe||!Ie[Oe]||Ie.length<2||Math.abs(Ie[this.page].slides[0].dim-this.viewportDim)>1)return!1;const Se=le>this.page?1:-1,Xe=this.pages[Oe].pos*(this.isRTL?1:-1);if(this.page===Oe&&l(Xe,1e3)===l(Pe.target[this.axis],1e3))return!1;this.clearTransitions();const Ct=Pe.isResting;oe(this.container,this.cn("inTransition"));const zt=this.pages[this.page].slides[0],kr=this.pages[Oe].slides[0];this.inTransition.add(kr.index),this.createSlideEl(kr);let Br=zt.el,xt=kr.el;Ct||"slide"===Ce||(Ce="fadeFast",Br=null);const tr=this.isRTL?"next":"prev",Rr=this.isRTL?"prev":"next";return Br&&(this.inTransition.add(zt.index),zt.transition=Ce,Br.addEventListener("animationend",this.onAnimationEnd),Br.classList.add(`f-${Ce}Out`,`to-${Se>0?Rr:tr}`)),xt&&(kr.transition=Ce,xt.addEventListener("animationend",this.onAnimationEnd),xt.classList.add(`f-${Ce}In`,`from-${Se>0?tr:Rr}`)),Pe.panTo({x:this.isHorizontal?Xe:0,y:this.isHorizontal?0:Xe,friction:0}),this.onChange(Oe),!0}manageSlideVisiblity(){const le=new Set,Ce=new Set,Ie=this.getVisibleSlides(parseFloat(this.option("preload",0)+"")||0);for(const Pe of this.slides)Ie.has(Pe)?le.add(Pe):Ce.add(Pe);for(const Pe of this.inTransition)le.add(this.slides[Pe]);for(const Pe of le)this.createSlideEl(Pe),this.lazyLoadSlide(Pe);for(const Pe of Ce)le.has(Pe)||this.removeSlideEl(Pe);this.markSelectedSlides(),this.repositionSlides()}markSelectedSlides(){if(!this.pages[this.page]||!this.pages[this.page].slides)return;const le="aria-hidden";let Ce=this.cn("isSelected");if(Ce)for(const Ie of this.slides)Ie.el&&(Ie.el.dataset.index=`${Ie.index}`,this.pages[this.page].slides.includes(Ie)?(Ie.el.classList.contains(Ce)||(oe(Ie.el,Ce),this.emit("selectSlide",Ie)),Ie.el.removeAttribute(le)):(Ie.el.classList.contains(Ce)&&(re(Ie.el,Ce),this.emit("unselectSlide",Ie)),Ie.el.setAttribute(le,"true")))}flipInfiniteTrack(){const le=this.panzoom;if(!le||!this.isInfinite)return;const Ce="x"===this.option("axis")?"e":"f",{viewportDim:Ie,contentDim:Pe}=this;let Oe=le.current[Ce],Se=le.target[Ce]-Oe,Xe=0,Ct=.5*Ie;this.isRTL&&this.isHorizontal?(Oe<-Ct&&(Xe=-1,Oe+=Pe),Oe>Pe-Ct&&(Xe=1,Oe-=Pe)):(Oe>Ct&&(Xe=1,Oe-=Pe),Oe<-Pe+Ct&&(Xe=-1,Oe+=Pe)),Xe&&(le.current[Ce]=Oe,le.target[Ce]=Oe+Se)}lazyLoadSlide(le){const Ce=this,Ie=le&&le.el;if(!Ie)return;const Pe=new Set,Oe="f-fadeIn";Ie.querySelectorAll("[data-lazy-srcset]").forEach(Ct=>{Ct instanceof HTMLImageElement&&Pe.add(Ct)});let Se=Array.from(Ie.querySelectorAll("[data-lazy-src]"));Ie.dataset.lazySrc&&Se.push(Ie),Se.map(Ct=>{Ct instanceof HTMLImageElement?Pe.add(Ct):K(Ct)&&(Ct.style.backgroundImage=`url('${Ct.dataset.lazySrc||""}')`,delete Ct.dataset.lazySrc)});const Xe=(Ct,zt,kr)=>{kr&&(kr.remove(),kr=null),zt.complete&&(zt.classList.add(Oe),setTimeout(()=>{zt.classList.remove(Oe)},350),zt.style.display=""),this.option("adaptiveHeight")&&Ct.el&&this.pages[this.page].slides.indexOf(Ct)>-1&&(Ce.updateMetrics(),Ce.setViewportHeight()),this.emit("load",Ct)};for(const Ct of Pe){let zt=null;Ct.src=Ct.dataset.lazySrcset||Ct.dataset.lazySrc||"",delete Ct.dataset.lazySrc,delete Ct.dataset.lazySrcset,Ct.style.display="none",Ct.addEventListener("error",()=>{Xe(le,Ct,zt)}),Ct.addEventListener("load",()=>{Xe(le,Ct,zt)}),setTimeout(()=>{Ct.parentNode&&le.el&&(Ct.complete?Xe(le,Ct,zt):(zt=d(ie),Ct.parentNode.insertBefore(zt,Ct)))},300)}}onAnimationEnd(le){var Ce;const Ie=le.target,Pe=Ie?parseInt(Ie.dataset.index||"",10)||0:-1,Oe=this.slides[Pe],Se=le.animationName;if(!Ie||!Oe||!Se)return;const Xe=!!this.inTransition.has(Pe)&&Oe.transition;Xe&&Se.substring(0,Xe.length+2)===`f-${Xe}`&&this.inTransition.delete(Pe),this.inTransition.size||this.clearTransitions(),Pe===this.page&&(null===(Ce=this.panzoom)||void 0===Ce?void 0:Ce.isResting)&&this.emit("settle")}onDecel(le,Ce=0,Ie=0){const{isRTL:Pe,isHorizontal:Oe,axis:Se,pages:Xe}=this,Ct=Xe.length,zt=Math.abs(Math.atan2(Ie,Ce)/(Math.PI/180));let kr=0;if(kr=zt>45&&zt<135?Oe?0:Ie:Oe?Ce:0,!Ct)return;const Br=this.option("dragFree");let xt=this.page,tr=Pe&&Oe?1:-1;const Rr=le.target[Se]*tr,Ur=le.current[Se]*tr;let{pageIndex:Nr}=this.getPageFromPosition(Rr),{pageIndex:zr}=this.getPageFromPosition(Ur);Br?this.onChange(Nr):(Math.abs(kr)>5?(Xe[xt].dim<document.documentElement["client"+(this.isHorizontal?"Width":"Height")]-1&&(xt=zr),xt=Pe&&Oe?kr<0?xt-1:xt+1:kr<0?xt+1:xt-1):xt=zr,this.slideTo(xt,{transition:!1,friction:le.option("decelFriction")}))}onClick(le){const Ce=le.target,Ie=Ce&&K(Ce)?Ce.dataset:null;let Pe,Oe;Ie&&(void 0!==Ie.carouselPage?(Oe="slideTo",Pe=Ie.carouselPage):void 0!==Ie.carouselNext?Oe="slideNext":void 0!==Ie.carouselPrev&&(Oe="slidePrev")),Oe?(le.preventDefault(),le.stopPropagation(),Ce&&!Ce.hasAttribute("disabled")&&this[Oe](Pe)):this.emit("click",le)}onSlideTo(le){this.slideTo(this.getPageForSlide(le.detail||0),{friction:0})}onChange(le,Ce=0){const Ie=this.page;this.prevPage=Ie,this.page=le,this.option("adaptiveHeight")&&this.setViewportHeight(),le!==Ie&&(this.markSelectedSlides(),this.emit("change",le,Ie,Ce))}onRefresh(){let le=this.contentDim,Ce=this.viewportDim;this.updateMetrics(),this.contentDim===le&&this.viewportDim===Ce||this.slideTo(this.page,{friction:0,transition:!1})}onResize(){this.option("breakpoints")&&this.processOptions()}onBeforeTransform(le){this.lp!==le.current[this.axis]&&(this.flipInfiniteTrack(),this.manageSlideVisiblity()),this.lp=le.current.e}onEndAnimation(){this.inTransition.size||this.emit("settle")}reInit(le=null,Ce=null){this.destroy(),this.state=$.Init,this.userOptions=le||this.userOptions,this.userPlugins=Ce||this.userPlugins,this.processOptions()}slideTo(le=0,{friction:Ce=this.option("friction"),transition:Ie=this.option("transition")}={}){if(this.state===$.Destroy)return;const{axis:Pe,isHorizontal:Oe,isRTL:Se,pages:Xe,panzoom:Ct}=this,zt=Xe.length,kr=Se&&Oe?1:-1;if(!Ct||!zt||this.transitionTo(le,Ie))return;const Br=this.getPageFromIndex(le);let xt=Xe[Br].pos;if(this.isInfinite){const tr=this.contentDim,Rr=Ct.target[Pe]*kr;if(2===zt)xt+=tr*Math.floor(parseFloat(le+"")/2);else{const Ur=Rr;xt=[xt,xt-tr,xt+tr].reduce(function(Nr,zr){return Math.abs(zr-Ur)<Math.abs(Nr-Ur)?zr:Nr})}}xt*=kr,Math.abs(Ct.target[Pe]-xt)<.1||(Ct.panTo({x:Oe?xt:0,y:Oe?0:xt,friction:Ce}),this.onChange(Br))}slideToClosest(le){if(this.panzoom){const{pageIndex:Ce}=this.getPageFromPosition(this.panzoom.current[this.isHorizontal?"e":"f"]);this.slideTo(Ce,le)}}slideNext(){this.slideTo(this.page+1)}slidePrev(){this.slideTo(this.page-1)}clearTransitions(){this.inTransition.clear(),re(this.container,this.cn("inTransition"));const le=["to-prev","to-next","from-prev","from-next"];for(const Ce of this.slides){const Ie=Ce.el;if(Ie){Ie.removeEventListener("animationend",this.onAnimationEnd),Ie.classList.remove(...le);const Pe=Ce.transition;Pe&&Ie.classList.remove(`f-${Pe}Out`,`f-${Pe}In`)}}this.manageSlideVisiblity()}prependSlide(le){var Ce,Ie;let Pe=Array.isArray(le)?le:[le];for(const Xe of Pe.reverse())this.slides.unshift(Y(Xe));for(let Xe=0;Xe<this.slides.length;Xe++)this.slides[Xe].index=Xe;const Oe=(null===(Ce=this.pages[this.page])||void 0===Ce?void 0:Ce.pos)||0;this.page+=Pe.length,this.updateMetrics();const Se=(null===(Ie=this.pages[this.page])||void 0===Ie?void 0:Ie.pos)||0;if(this.panzoom){const Xe=this.isRTL?Oe-Se:Se-Oe;this.panzoom.target.e-=Xe,this.panzoom.current.e-=Xe,this.panzoom.requestTick()}}appendSlide(le){let Ce=Array.isArray(le)?le:[le];for(const Ie of Ce){const Pe=Y(Ie);Pe.index=this.slides.length,this.slides.push(Pe),this.emit("initSlide",Ie,this.slides.length)}this.updateMetrics()}removeSlide(le){const Ce=this.slides.length;this.removeSlideEl(this.slides[le=(le%Ce+Ce)%Ce],!0),this.slides.splice(le,1);for(let Ie=0;Ie<this.slides.length;Ie++)this.slides[Ie].index=Ie;this.updateMetrics(),this.slideTo(this.page,{friction:0,transition:!1})}updateMetrics(){const{panzoom:le,viewport:Ce,track:Ie,isHorizontal:Pe}=this;if(!Ie)return;const Oe=Pe?"width":"height";if(Ce){let kr=l(Ce.getBoundingClientRect()[Oe],1e3),Br=getComputedStyle(Ce),xt="padding",tr=Pe?"Right":"Bottom";kr-=parseFloat(Br[xt+(Pe?"Left":"Top")])+parseFloat(Br[xt+tr]),this.viewportDim=kr}let Se,Xe=this.pages.length,Ct=0;for(const[kr,Br]of this.slides.entries()){let xt=0,tr=0;!Br.el&&Se?(xt=Se.dim,tr=Se.gap):(({dim:xt,gap:tr}=this.getSlideMetrics(Br)),Se=Br),xt=l(xt,1e3),tr=l(tr,1e3),Br.dim=xt,Br.gap=tr,Br.pos=Ct,Ct+=xt,(this.isInfinite||kr<this.slides.length-1)&&(Ct+=tr)}const zt=this.contentDim;Ct=l(Ct,1e3),this.contentDim=Ct,le&&(le.contentRect[Oe]=Ct,le.contentRect["e"===this.axis?"fullWidth":"fullHeight"]=Ct),this.pages=this.createPages(),this.pages=this.processPages(),this.state===$.Init&&this.setInitialPage(),this.page=Math.max(0,Math.min(this.page,this.pages.length-1)),le&&Xe===this.pages.length&&Math.abs(Ct-zt)>.5&&(le.target[this.axis]=-1*this.pages[this.page].pos,le.current[this.axis]=-1*this.pages[this.page].pos,le.stop()),this.manageSlideVisiblity(),this.emit("refresh")}getProgress(le,Ce=!1){void 0===le&&(le=this.page);const Pe=this.panzoom,Oe=this.pages[le]||0;if(!Oe||!Pe)return 0;let Se=-1*Pe.current.e,Xe=this.contentDim;var Ct=[l((Se-Oe.pos)/(1*Oe.dim),1e3),l((Se+Xe-Oe.pos)/(1*Oe.dim),1e3),l((Se-Xe-Oe.pos)/(1*Oe.dim),1e3)].reduce(function(zt,kr){return Math.abs(kr)<Math.abs(zt)?kr:zt});return Ce?Ct:Math.max(-1,Math.min(1,Ct))}setViewportHeight(){const{page:le,pages:Ce,viewport:Ie,isHorizontal:Pe}=this;if(!Ie||!Ce[le])return;let Oe=0;Pe&&this.track&&(this.track.style.height="auto",Ce[le].slides.forEach(Se=>{Se.el&&(Oe=Math.max(Oe,Se.el.offsetHeight))})),Ie.style.height=Oe?`${Oe}px`:""}getPageForSlide(le){for(const Ce of this.pages)for(const Ie of Ce.slides)if(Ie.index===le)return Ce.index;return-1}getVisibleSlides(le=0){var Ce;const Ie=new Set;let{contentDim:Pe,viewportDim:Oe,pages:Se,page:Xe}=this;Pe=Pe+(null===(Ce=this.slides[this.slides.length-1])||void 0===Ce?void 0:Ce.gap)||0;let Ct=0;Ct=this.panzoom?-1*this.panzoom.current[this.axis]:Se[Xe]&&Se[Xe].pos||0,this.isInfinite&&(Ct-=Math.floor(Ct/Pe)*Pe),this.isRTL&&this.isHorizontal&&(Ct*=-1);const zt=Ct-Oe*le,kr=Ct+Oe*(le+1),Br=this.isInfinite?[-1,0,1]:[0];for(const xt of this.slides)for(const tr of Br){const Ur=xt.pos+xt.dim+xt.gap+tr*Pe;xt.pos+tr*Pe<kr&&Ur>zt&&Ie.add(xt)}return Ie}getPageFromPosition(le){const{viewportDim:Ce,contentDim:Ie}=this,Pe=this.pages.length,Se=this.slides[this.slides.length-1];let Xe=0,Ct=0,zt=0;const kr=this.option("center");kr&&(le+=.5*Ce),this.isInfinite||(le=Math.max(this.slides[0].pos,Math.min(le,Se.pos)));const Br=Ie+Se.gap;zt=Math.floor(le/Br)||0,le-=zt*Br;let xt=Se,tr=this.slides.find(Rr=>{const Ur=le+(xt&&!kr?.5*xt.dim:0);return xt=Rr,Rr.pos<=Ur&&Rr.pos+Rr.dim+Rr.gap>Ur});return tr||(tr=Se),Ct=this.getPageForSlide(tr.index),Xe=Ct+zt*Pe,{page:Xe,pageIndex:Ct}}destroy(){if([$.Destroy].includes(this.state))return;this.state=$.Destroy;const{container:le,viewport:Ce,track:Ie,slides:Pe,panzoom:Oe}=this,Se=this.option("classes");le.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),le.removeEventListener("slideTo",this.onSlideTo),window.removeEventListener("resize",this.onResize),Oe&&(Oe.destroy(),this.panzoom=null),Pe&&Pe.forEach(Ct=>{this.removeSlideEl(Ct)}),this.detachPlugins(),Ce&&Ce.offsetParent&&Ie&&Ie.offsetParent&&Ce.replaceWith(...Ie.childNodes);for(const[Ct,zt]of Object.entries(Se))"container"!==Ct&&zt&&le.classList.remove(zt);this.track=null,this.viewport=null,this.page=0,this.slides=[];const Xe=this.events.get("ready");this.events=new Map,Xe&&this.events.set("ready",Xe)}}Object.defineProperty(At,"Panzoom",{enumerable:!0,configurable:!0,writable:!0,value:w}),Object.defineProperty(At,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{viewport:null,track:null,enabled:!0,slides:[],axis:"x",transition:"fade",preload:1,slidesPerPage:"auto",initialPage:0,friction:.12,Panzoom:{decelFriction:.12},center:!0,infinite:!0,fill:!0,dragFree:!1,adaptiveHeight:!1,direction:"ltr",classes:{container:"f-carousel",viewport:"f-carousel__viewport",track:"f-carousel__track",slide:"f-carousel__slide",isLTR:"is-ltr",isRTL:"is-rtl",isHorizontal:"is-horizontal",isVertical:"is-vertical",inTransition:"in-transition",isSelected:"is-selected"},l10n:{NEXT:"Next slide",PREV:"Previous slide",GOTO:"Go to slide #%d"}}}),Object.defineProperty(At,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:Ot});const Ze=function(Gt){const le=window.pageYOffset,Ce=window.pageYOffset+window.innerHeight;if(!K(Gt))return 0;const Ie=Gt.getBoundingClientRect(),Pe=Ie.y+window.pageYOffset,Oe=Ie.y+Ie.height+window.pageYOffset;if(le>Oe||Ce<Pe)return 0;if(le<Pe&&Ce>Oe||Pe<le&&Oe>Ce)return 100;let Se=Ie.height;Pe<le&&(Se-=window.pageYOffset-Pe),Oe>Ce&&(Se-=Oe-Ce);const Xe=Se/window.innerHeight*100;return Math.round(Xe)},at=!(typeof window>"u"||!window.document||!window.document.createElement);let Be;const Lt=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden]):not(.fancybox-focus-guard)","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"]):not([disabled]):not([aria-hidden])'].join(","),_e=Gt=>{if(Gt&&at){void 0===Be&&document.createElement("div").focus({get preventScroll(){return Be=!0,!1}});try{if(Be)Gt.focus({preventScroll:!0});else{const le=window.pageXOffset||document.body.scrollTop,Ce=window.pageYOffset||document.body.scrollLeft;Gt.focus(),document.body.scrollTo({top:le,left:Ce,behavior:"auto"})}}catch{}}},ne={dragToClose:!0,hideScrollbar:!0,Carousel:{classes:{container:"fancybox__carousel",viewport:"fancybox__viewport",track:"fancybox__track",slide:"fancybox__slide"}},contentClick:"toggleZoom",contentDblClick:!1,backdropClick:"close",animated:!0,idle:3500,showClass:"f-zoomInUp",hideClass:"f-fadeOut",commonCaption:!1,parentEl:null,startIndex:0,l10n:Object.assign(Object.assign({},J),{CLOSE:"Close",NEXT:"Next",PREV:"Previous",MODAL:"You can close this modal content with the ESC key",ERROR:"Something Went Wrong, Please Try Again Later",IMAGE_ERROR:"Image Not Found",ELEMENT_NOT_FOUND:"HTML Element Not Found",AJAX_NOT_FOUND:"Error Loading AJAX : Not Found",AJAX_FORBIDDEN:"Error Loading AJAX : Forbidden",IFRAME_ERROR:"Error Loading Page",TOGGLE_ZOOM:"Toggle zoom level",TOGGLE_THUMBS:"Toggle thumbnails",TOGGLE_SLIDESHOW:"Toggle slideshow",TOGGLE_FULLSCREEN:"Toggle full-screen mode",DOWNLOAD:"Download"}),tpl:{closeButton:'<button data-fancybox-close class="f-button is-close-btn" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M20 20L4 4m16 0L4 20"/></svg></button>',main:'<div class="fancybox__container" role="dialog" aria-modal="true" aria-label="{{MODAL}}" tabindex="-1">\n    <div class="fancybox__backdrop"></div>\n    <div class="fancybox__carousel"></div>\n    <div class="fancybox__footer"></div>\n  </div>'},groupAll:!1,groupAttr:"data-fancybox",defaultType:"image",defaultDisplay:"block",autoFocus:!0,trapFocus:!0,placeFocusBack:!0,closeButton:"auto",keyboard:{Escape:"close",Delete:"close",Backspace:"close",PageUp:"next",PageDown:"prev",ArrowUp:"prev",ArrowDown:"next",ArrowRight:"next",ArrowLeft:"prev"},Fullscreen:{autoStart:!1},compact:()=>window.matchMedia("(max-width: 578px), (max-height: 578px)").matches,wheel:"zoom"};var be,Te;(function(Gt){Gt[Gt.Init=0]="Init",Gt[Gt.Ready=1]="Ready",Gt[Gt.Closing=2]="Closing",Gt[Gt.CustomClosing=3]="CustomClosing",Gt[Gt.Destroy=4]="Destroy"})(be||(be={})),function(Gt){Gt[Gt.Loading=0]="Loading",Gt[Gt.Opening=1]="Opening",Gt[Gt.Ready=2]="Ready",Gt[Gt.Closing=3]="Closing"}(Te||(Te={}));const $e=()=>{queueMicrotask(()=>{(()=>{const{slug:Gt,index:le}=ft.parseURL(),Ce=Pt.getInstance();if(Ce&&!1!==Ce.option("Hash")){const Ie=Ce.carousel;if(Gt&&Ie){for(let Se of Ie.slides)if(Se.slug&&Se.slug===Gt)return Ie.slideTo(Se.index);if(Gt===Ce.option("slug"))return Ie.slideTo(le-1);const Pe=Ce.getSlide(),Oe=Pe&&Pe.triggerEl&&Pe.triggerEl.dataset;if(Oe&&Oe.fancybox===Gt)return Ie.slideTo(le-1)}ft.hasSilentClose=!0,Ce.close()}ft.startFromUrl()})()})};class ft extends W{constructor(){super(...arguments),Object.defineProperty(this,"origHash",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"timer",{enumerable:!0,configurable:!0,writable:!0,value:null})}onChange(){const le=this.instance,Ce=le.carousel;this.timer&&clearTimeout(this.timer);const Ie=le.getSlide();if(!Ce||!Ie)return;const Pe=le.isOpeningSlide(Ie),Oe=new URL(document.URL).hash;let Se,Xe=Ie.slug||void 0;Se=Xe||this.instance.option("slug"),!Se&&Ie.triggerEl&&Ie.triggerEl.dataset&&(Se=Ie.triggerEl.dataset.fancybox);let Ct="";Se&&"true"!==Se&&(Ct="#"+Se+(!Xe&&Ce.slides.length>1?"-"+(Ie.index+1):"")),Pe&&(this.origHash=Oe!==Ct?Oe:""),Ct&&Oe!==Ct&&(this.timer=setTimeout(()=>{try{window.history[Pe?"pushState":"replaceState"]({},document.title,window.location.pathname+window.location.search+Ct)}catch{}},300))}onClose(){if(this.timer&&clearTimeout(this.timer),!0!==ft.hasSilentClose)try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+(this.origHash||""))}catch{}}attach(){this.instance.on("Carousel.ready",this.onChange),this.instance.on("Carousel.change",this.onChange),this.instance.on("close",this.onClose)}detach(){this.instance.off("Carousel.ready",this.onChange),this.instance.off("Carousel.change",this.onChange),this.instance.off("close",this.onClose)}static parseURL(){const le=window.location.hash.slice(1),Ce=le.split("-"),Ie=Ce[Ce.length-1],Pe=Ie&&/^\+?\d+$/.test(Ie)&&parseInt(Ce.pop()||"1",10)||1;return{hash:le,slug:Ce.join("-"),index:Pe}}static startFromUrl(){if(ft.hasSilentClose=!1,Pt.getInstance()||!1===Pt.defaults.Hash)return;const{hash:le,slug:Ce,index:Ie}=ft.parseURL();if(!Ce)return;let Pe=document.querySelector(`[data-slug="${le}"]`);if(Pe&&Pe.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})),Pt.getInstance())return;const Oe=document.querySelectorAll(`[data-fancybox="${Ce}"]`);Oe.length&&(Pe=Oe[Ie-1],Pe&&Pe.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})))}static destroy(){window.removeEventListener("hashchange",$e,!1)}}function Ge(){window.addEventListener("hashchange",$e,!1),setTimeout(()=>{ft.startFromUrl()},500)}Object.defineProperty(ft,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(ft,"hasSilentClose",{enumerable:!0,configurable:!0,writable:!0,value:!1}),at&&(/complete|interactive|loaded/.test(document.readyState)?Ge():document.addEventListener("DOMContentLoaded",Ge));class Ft extends W{onCreateSlide(le,Ce,Ie){const Pe=this.instance,Oe=Pe.optionFor(Ie,"src")||"",{el:Se,type:Xe}=Ie;Se&&"image"===Xe&&"string"==typeof Oe&&this.setContent(Ie,Oe).then(Ct=>{const zt=Ie.contentEl,kr=Ie.imageEl,Br=Ie.thumbElSrc;if(Pe.isClosing()||!zt||!kr)return;const xt=!!Pe.isOpeningSlide(Ie)&&this.getZoomInfo(Ie);if(this.option("protected")){Se.addEventListener("contextmenu",Ur=>{Ur.preventDefault()});const Rr=document.createElement("div");oe(Rr,"fancybox-protected"),zt.appendChild(Rr)}if(Br&&xt){const Rr=Ct.contentRect,Ur=Math.max(Rr.fullWidth,Rr.fullHeight);let Nr=null;!xt.opacity&&Ur>1200&&(Nr=document.createElement("img"),oe(Nr,"fancybox-ghost"),Nr.src=Br,zt.appendChild(Nr));const zr=()=>{Nr&&(oe(Nr,"f-fadeFastOut"),setTimeout(()=>{Nr&&(Nr.remove(),Nr=null)},200))};(tr=Br,new Promise((hn,_n)=>{const Tn=new Image;Tn.onload=hn,Tn.onerror=_n,Tn.src=tr})).then(()=>{Ie.state=Te.Opening,this.instance.emit("reveal",Ie),this.zoomIn(Ie).then(()=>{zr(),this.instance.done(Ie)},()=>{Pe.hideLoading(Ie)}),Nr&&setTimeout(()=>{zr()},Ur>2500?800:200)},()=>{Pe.hideLoading(Ie),Pe.revealContent(Ie)})}else{const Rr=this.optionFor(Ie,"initialSize"),Ur=this.optionFor(Ie,"zoom"),Nr={event:Pe.prevMouseMoveEvent||Pe.options.event,friction:Ur?.12:0};let zr=Pe.optionFor(Ie,"showClass")||void 0,hn=!0;Pe.isOpeningSlide(Ie)&&("full"===Rr?Ct.zoomToFull(Nr):"cover"===Rr?Ct.zoomToCover(Nr):"max"===Rr?Ct.zoomToMax(Nr):hn=!1,Ct.stop("current")),hn&&zr&&(zr=Ct.isDragging?"f-fadeIn":""),Pe.revealContent(Ie,zr)}var tr},()=>{Pe.setError(Ie,"{{IMAGE_ERROR}}")})}onRemoveSlide(le,Ce,Ie){Ie.panzoom&&Ie.panzoom.destroy(),Ie.panzoom=void 0,Ie.imageEl=void 0}onChange(le,Ce,Ie,Pe){for(const Oe of Ce.slides){const Se=Oe.panzoom;Se&&Oe.index!==Ie&&Se.reset(.35)}}onClose(){const le=this.instance,Ce=le.container,Ie=le.getSlide();if(!Ce||!Ce.parentElement||!Ie)return;const{el:Pe,contentEl:Oe,panzoom:Se}=Ie,Xe=Ie.thumbElSrc;if(!Pe||!Xe||!Oe||!Se||Se.isContentLoading||Se.state===U.Init||Se.state===U.Destroy)return;Se.updateMetrics();let Ct=this.getZoomInfo(Ie);if(!Ct)return;this.instance.state=be.CustomClosing,Ce.classList.remove("is-zooming-in"),Ce.classList.add("is-zooming-out"),Oe.style.backgroundImage=`url('${Xe}')`;const zt=Ce.getBoundingClientRect();Object.assign(Ce.style,{position:"absolute",top:`${window.pageYOffset}px`,left:`${window.pageXOffset}px`,bottom:"auto",right:"auto",width:`${zt.width}px`,height:`${zt.height}px`,overflow:"hidden"});const{x:kr,y:Br,scale:xt,opacity:tr}=Ct;if(tr){const Rr=((Ur,Nr,zr,hn)=>{const _n=Nr-Ur;return sr=>1+((sr-Ur)/_n*-1||0)})(Se.scale,xt);Se.on("afterTransform",()=>{Oe.style.opacity=Rr(Se.scale)+""})}Se.on("endAnimation",()=>{le.destroy()}),Se.target.a=xt,Se.target.b=0,Se.target.c=0,Se.target.d=xt,Se.panTo({x:kr,y:Br,scale:xt,friction:tr?.2:.33,ignoreBounds:!0}),Se.isResting&&le.destroy()}setContent(le,Ce){return new Promise((Ie,Pe)=>{var Oe,Se;const Xe=this.instance,Ct=le.el;if(!Ct)return void Pe();Xe.showLoading(le);let zt=this.optionFor(le,"content");"string"==typeof zt&&(zt=d(zt)),zt&&K(zt)||(zt=document.createElement("img"),zt instanceof HTMLImageElement&&(zt.src=Ce||"",zt.alt=(null===(Oe=le.caption)||void 0===Oe?void 0:Oe.replace(/<[^>]+>/gi,"").substring(0,1e3))||`Image ${le.index+1} of ${null===(Se=Xe.carousel)||void 0===Se?void 0:Se.pages.length}`,zt.draggable=!1,le.srcset&&zt.setAttribute("srcset",le.srcset)),le.sizes&&zt.setAttribute("sizes",le.sizes)),zt.classList.add("fancybox-image"),le.imageEl=zt,Xe.setContent(le,zt,!1),le.panzoom=new w(Ct,H({},this.option("Panzoom")||{},{content:zt,width:Xe.optionFor(le,"width","auto"),height:Xe.optionFor(le,"height","auto"),wheel:()=>{const kr=Xe.option("wheel");return("zoom"===kr||"pan"==kr)&&kr},click:(kr,Br)=>{var xt,tr;if(Xe.isCompact||Xe.isClosing()||le.index!==(null===(xt=Xe.getSlide())||void 0===xt?void 0:xt.index))return!1;let Rr=!Br||Br.target&&(null===(tr=le.contentEl)||void 0===tr?void 0:tr.contains(Br.target));return Xe.option(Rr?"contentClick":"backdropClick")||!1},dblClick:()=>Xe.isCompact?"toggleZoom":Xe.option("contentDblClick")||!1,spinner:!1,panOnlyZoomed:!0,wheelLimit:1/0,transformParent:!0,on:{ready:kr=>{Ie(kr)},error:()=>{Pe()},destroy:()=>{Pe()}}}))})}zoomIn(le){return new Promise((Ce,Ie)=>{const Pe=this.instance,Oe=Pe.container,{panzoom:Se,contentEl:Xe,el:Ct}=le;Se&&Se.updateMetrics();const zt=this.getZoomInfo(le);if(!(zt&&Ct&&Xe&&Se&&Oe))return void Ie();const{x:kr,y:Br,scale:xt,opacity:tr}=zt,Rr=()=>{le.state!==Te.Closing&&(tr&&(Xe.style.opacity=Math.max(Math.min(1,1-(1-Se.scale)/(1-xt)),0)+""),Se.scale>=1&&Se.scale>Se.targetScale-.1&&Ce(Se))},Ur=hn=>{re(Oe,"is-zooming-in"),hn.scale<.99||hn.scale>1.01||(Xe.style.opacity="",hn.off("endAnimation",Ur),hn.off("touchStart",Ur),hn.off("afterTransform",Rr),Ce(hn))};Se.on("endAnimation",Ur),Se.on("touchStart",Ur),Se.on("afterTransform",Rr),Se.on(["error","destroy"],()=>{Ie()}),Se.panTo({x:kr,y:Br,scale:xt,friction:0,ignoreBounds:!0}),Se.stop("current");const Nr={event:"mousemove"===Se.panMode?Pe.prevMouseMoveEvent||Pe.options.event:void 0},zr=this.optionFor(le,"initialSize");oe(Oe,"is-zooming-in"),Pe.hideLoading(le),"full"===zr?Se.zoomToFull(Nr):"cover"===zr?Se.zoomToCover(Nr):"max"===zr?Se.zoomToMax(Nr):Se.reset(.172)})}getZoomInfo(le){const{el:Ce,imageEl:Ie,thumbEl:Pe,panzoom:Oe}=le;if(!Ce||!Ie||!Pe||!Oe||Ze(Pe)<3||!this.optionFor(le,"zoom")||this.instance.state===be.Destroy)return!1;const{top:Se,left:Xe,width:Ct,height:zt}=Pe.getBoundingClientRect();let{top:kr,left:Br,fitWidth:xt,fitHeight:tr}=Oe.contentRect;if(!(Ct&&zt&&xt&&tr))return!1;const Rr=Ct/xt,Ur=Oe.container.getBoundingClientRect();kr+=Ur.top,Br+=Ur.left;const Nr=-1*(Br+.5*xt-(Xe+.5*Ct)),zr=-1*(kr+.5*tr-(Se+.5*zt));let hn=this.option("zoomOpacity")||!1;return"auto"===hn&&(hn=Math.abs(Ct/zt-xt/tr)>.1),{x:Nr,y:zr,scale:Rr,opacity:hn}}attach(){this.instance.on("Carousel.change",this.onChange),this.instance.on("Carousel.createSlide",this.onCreateSlide),this.instance.on("Carousel.removeSlide",this.onRemoveSlide),this.instance.on("close",this.onClose)}detach(){this.instance.off("Carousel.change",this.onChange),this.instance.off("Carousel.createSlide",this.onCreateSlide),this.instance.off("Carousel.removeSlide",this.onRemoveSlide),this.instance.off("close",this.onClose)}}Object.defineProperty(Ft,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{initialSize:"fit",Panzoom:{maxScale:1},protected:!1,zoom:!0,zoomOpacity:"auto"}});const br=(Gt,le={})=>{const Ce=new URL(Gt),Ie=new URLSearchParams(Ce.search),Pe=new URLSearchParams;for(const[Xe,Ct]of[...Ie,...Object.entries(le)]){let zt=Ct.toString();"t"===Xe?Pe.set("start",parseInt(zt).toString()):Pe.set(Xe,zt)}let Oe=Pe.toString(),Se=Gt.match(/#t=((.*)?\d+s)/);return Se&&(Oe+=`#t=${Se[1]}`),Oe},st=["image","html","ajax","inline","clone","iframe","map","pdf","html5video","youtube","vimeo","video"];class Dt extends W{onInitSlide(le,Ce,Ie){this.processType(Ie)}onCreateSlide(le,Ce,Ie){this.setContent(Ie)}onRemoveSlide(le,Ce,Ie){Ie.closeBtnEl&&(Ie.closeBtnEl.remove(),Ie.closeBtnEl=void 0),Ie.xhr&&(Ie.xhr.abort(),Ie.xhr=null),Ie.iframeEl&&(Ie.iframeEl.onload=Ie.iframeEl.onerror=null,Ie.iframeEl.src="//about:blank",Ie.iframeEl=null);const Pe=Ie.contentEl,Oe=Ie.placeholderEl;if("inline"===Ie.type&&Pe&&Oe)Pe.classList.remove("fancybox__content"),"none"!==Pe.style.display&&(Pe.style.display="none"),Oe.parentNode&&Oe.parentNode.insertBefore(Pe,Oe),Oe.remove(),Ie.placeholderEl=null;else for(;Ie.el&&Ie.el.firstChild;)Ie.el.removeChild(Ie.el.firstChild)}onSelectSlide(le,Ce,Ie){Ie.state===Te.Ready&&this.playVideo()}onUnselectSlide(le,Ce,Ie){var Pe,Oe;if("html5video"===Ie.type){try{null===(Oe=null===(Pe=Ie.el)||void 0===Pe?void 0:Pe.querySelector("video"))||void 0===Oe||Oe.pause()}catch{}return}let Se;"vimeo"===Ie.type?Se={method:"pause",value:"true"}:"youtube"===Ie.type&&(Se={event:"command",func:"pauseVideo"}),Se&&Ie.iframeEl&&Ie.iframeEl.contentWindow&&Ie.iframeEl.contentWindow.postMessage(JSON.stringify(Se),"*"),Ie.poller&&clearTimeout(Ie.poller)}onDone(le,Ce){le.isCurrentSlide(Ce)&&!le.isClosing()&&this.playVideo()}onRefresh(le,Ce){Ce.slides.forEach(Ie=>{Ie.el&&(this.setAspectRatio(Ie),this.resizeIframe(Ie))})}onMessage(le){try{let Ce=JSON.parse(le.data);if("https://player.vimeo.com"===le.origin){if("ready"===Ce.event)for(let Ie of Array.from(document.getElementsByClassName("fancybox__iframe")))Ie instanceof HTMLIFrameElement&&Ie.contentWindow===le.source&&(Ie.dataset.ready="true")}else if(le.origin.match(/^https:\/\/(www.)?youtube(-nocookie)?.com$/)&&"onReady"===Ce.event){const Ie=document.getElementById(Ce.id);Ie&&(Ie.dataset.ready="true")}}catch{}}loadAjaxContent(le){const Ce=this.instance.optionFor(le,"src")||"";this.instance.showLoading(le);const Ie=this.instance,Pe=new XMLHttpRequest;Ie.showLoading(le),Pe.onreadystatechange=function(){Pe.readyState===XMLHttpRequest.DONE&&Ie.state===be.Ready&&(Ie.hideLoading(le),200===Pe.status?Ie.setContent(le,Pe.responseText):Ie.setError(le,404===Pe.status?"{{AJAX_NOT_FOUND}}":"{{AJAX_FORBIDDEN}}"))};const Oe=le.ajax||null;Pe.open(Oe?"POST":"GET",Ce+""),Pe.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),Pe.setRequestHeader("X-Requested-With","XMLHttpRequest"),Pe.send(Oe),le.xhr=Pe}setInlineContent(le){let Ce=null;if(K(le.src))Ce=le.src;else if("string"==typeof le.src){const Ie=le.src.split("#",2).pop();Ce=Ie?document.getElementById(Ie):null}if(Ce){if("clone"===le.type||Ce.closest(".fancybox__slide")){Ce=Ce.cloneNode(!0);const Ie=Ce.dataset.animationName;Ie&&(Ce.classList.remove(Ie),delete Ce.dataset.animationName);let Pe=Ce.getAttribute("id");Pe=Pe?`${Pe}--clone`:`clone-${this.instance.id}-${le.index}`,Ce.setAttribute("id",Pe)}else if(Ce.parentNode){const Ie=document.createElement("div");Ie.classList.add("fancybox-placeholder"),Ce.parentNode.insertBefore(Ie,Ce),le.placeholderEl=Ie}this.instance.setContent(le,Ce)}else this.instance.setError(le,"{{ELEMENT_NOT_FOUND}}")}setIframeContent(le){const{src:Ce,el:Ie}=le;if(!Ce||"string"!=typeof Ce||!Ie)return;const Pe=this.instance,Oe=document.createElement("iframe");Oe.className="fancybox__iframe",Oe.setAttribute("id",`fancybox__iframe_${Pe.id}_${le.index}`);for(const[Xe,Ct]of Object.entries(this.optionFor(le,"iframeAttr")||{}))Oe.setAttribute(Xe,Ct);Oe.onerror=()=>{Pe.setError(le,"{{IFRAME_ERROR}}")},le.iframeEl=Oe;const Se=this.optionFor(le,"preload");if(Ie.classList.add("is-loading"),"iframe"!==le.type||!1===Se)return Oe.setAttribute("src",le.src+""),this.resizeIframe(le),void Pe.setContent(le,Oe);Pe.showLoading(le),Oe.onload=()=>{if(!Oe.src.length)return;const Xe="true"!==Oe.dataset.ready;Oe.dataset.ready="true",this.resizeIframe(le),Xe?Pe.revealContent(le):Pe.hideLoading(le)},Oe.setAttribute("src",Ce),Pe.setContent(le,Oe,!1)}resizeIframe(le){const Ce=le.iframeEl,Ie=null==Ce?void 0:Ce.parentElement;if(!Ce||!Ie)return;let Pe=le.autoSize,Oe=le.width||0,Se=le.height||0;Oe&&Se&&(Pe=!1);const Xe=Ie&&Ie.style;if(!1!==le.preload&&!1!==Pe&&Xe)try{const Ct=window.getComputedStyle(Ie),zt=parseFloat(Ct.paddingLeft)+parseFloat(Ct.paddingRight),kr=parseFloat(Ct.paddingTop)+parseFloat(Ct.paddingBottom),Br=Ce.contentWindow;if(Br){const xt=Br.document,tr=xt.getElementsByTagName("html")[0],Rr=xt.body;Xe.width="",Rr.style.overflow="hidden",Oe=Oe||tr.scrollWidth+zt,Xe.width=`${Oe}px`,Rr.style.overflow="",Xe.flex="0 0 auto",Xe.height=`${Rr.scrollHeight}px`,Se=tr.scrollHeight+kr}}catch{}if(Oe||Se){const Ct={flex:"0 1 auto",width:"",height:""};Oe&&(Ct.width=`${Oe}px`),Se&&(Ct.height=`${Se}px`),Object.assign(Xe,Ct)}}playVideo(){const le=this.instance.getSlide();if(!le)return;const{el:Ce}=le;if(!Ce||!Ce.offsetParent||!this.optionFor(le,"videoAutoplay"))return;if("html5video"===le.type)try{const Pe=Ce.querySelector("video");if(Pe){const Oe=Pe.play();void 0!==Oe&&Oe.then(()=>{}).catch(Se=>{Pe.muted=!0,Pe.play()})}}catch{}if("youtube"!==le.type&&"vimeo"!==le.type)return;const Ie=()=>{if(le.iframeEl&&le.iframeEl.contentWindow){let Pe;if("true"===le.iframeEl.dataset.ready)return Pe="youtube"===le.type?{event:"command",func:"playVideo"}:{method:"play",value:"true"},Pe&&le.iframeEl.contentWindow.postMessage(JSON.stringify(Pe),"*"),void(le.poller=void 0);"youtube"===le.type&&(Pe={event:"listening",id:le.iframeEl.getAttribute("id")},le.iframeEl.contentWindow.postMessage(JSON.stringify(Pe),"*"))}le.poller=setTimeout(Ie,250)};Ie()}processType(le){if(le.html)return le.type="html",le.src=le.html,void(le.html="");const Ce=this.instance.optionFor(le,"src","");if(!Ce||"string"!=typeof Ce)return;let Ie=le.type,Pe=null;if(Pe=Ce.match(/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i)){const Oe=this.optionFor(le,"youtube"),{nocookie:Se}=Oe,Xe=function(Br,xt){var tr={};for(var Rr in Br)Object.prototype.hasOwnProperty.call(Br,Rr)&&xt.indexOf(Rr)<0&&(tr[Rr]=Br[Rr]);if(null!=Br&&"function"==typeof Object.getOwnPropertySymbols){var Ur=0;for(Rr=Object.getOwnPropertySymbols(Br);Ur<Rr.length;Ur++)xt.indexOf(Rr[Ur])<0&&Object.prototype.propertyIsEnumerable.call(Br,Rr[Ur])&&(tr[Rr[Ur]]=Br[Rr[Ur]])}return tr}(Oe,["nocookie"]),Ct=`www.youtube${Se?"-nocookie":""}.com`,zt=br(Ce,Xe),kr=encodeURIComponent(Pe[2]);le.videoId=kr,le.src=`https://${Ct}/embed/${kr}?${zt}`,le.thumbSrc=le.thumbSrc||`https://i.ytimg.com/vi/${kr}/mqdefault.jpg`,Ie="youtube"}else if(Pe=Ce.match(/^.+vimeo.com\/(?:\/)?([\d]+)((\/|\?h=)([a-z0-9]+))?(.*)?/)){const Oe=br(Ce,this.optionFor(le,"vimeo")),Se=encodeURIComponent(Pe[1]),Xe=Pe[4]||"";le.videoId=Se,le.src=`https://player.vimeo.com/video/${Se}?${Xe?`h=${Xe}${Oe?"&":""}`:""}${Oe}`,Ie="vimeo"}if(!Ie&&le.triggerEl){const Oe=le.triggerEl.dataset.type;st.includes(Oe)&&(Ie=Oe)}Ie||"string"==typeof Ce&&("#"===Ce.charAt(0)?Ie="inline":(Pe=Ce.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(Ie="html5video",le.videoFormat=le.videoFormat||"video/"+("ogv"===Pe[1]?"ogg":Pe[1])):Ce.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?Ie="image":Ce.match(/\.(pdf)((\?|#).*)?$/i)?Ie="pdf":(Pe=Ce.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i))?(le.src=`https://maps.google.${Pe[1]}/?ll=${(Pe[2]?Pe[2]+"&z="+Math.floor(parseFloat(Pe[3]))+(Pe[4]?Pe[4].replace(/^\//,"&"):""):Pe[4]+"").replace(/\?/,"&")}&output=${Pe[4]&&Pe[4].indexOf("layer=c")>0?"svembed":"embed"}`,Ie="map"):(Pe=Ce.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i))&&(le.src=`https://maps.google.${Pe[1]}/maps?q=${Pe[2].replace("query=","q=").replace("api=1","")}&output=embed`,Ie="map")),Ie=Ie||this.instance.option("defaultType"),le.type=Ie,"image"===Ie&&(le.thumbSrc=le.thumbSrc||le.src)}setContent(le){const Ce=this.instance.optionFor(le,"src")||"";if(le&&le.type&&Ce){switch(le.type){case"html":this.instance.setContent(le,Ce);break;case"html5video":const Ie=this.option("videoTpl");Ie&&this.instance.setContent(le,Ie.replace(/\{\{src\}\}/gi,Ce+"").replace(/\{\{format\}\}/gi,this.optionFor(le,"videoFormat")||"").replace(/\{\{poster\}\}/gi,le.poster||le.thumbSrc||""));break;case"inline":case"clone":this.setInlineContent(le);break;case"ajax":this.loadAjaxContent(le);break;case"pdf":case"map":case"youtube":case"vimeo":le.preload=!1;case"iframe":this.setIframeContent(le)}this.setAspectRatio(le)}}setAspectRatio(le){var Ce;const Ie=le.contentEl,Pe=this.optionFor(le,"videoRatio"),Oe=null===(Ce=le.el)||void 0===Ce?void 0:Ce.getBoundingClientRect();if(!(Ie&&Oe&&Pe&&1!==Pe&&le.type&&["video","youtube","vimeo","html5video"].includes(le.type)))return;const Se=Oe.width,Xe=Oe.height;Ie.style.aspectRatio=Pe+"",Ie.style.width=Se/Xe>Pe?"auto":"",Ie.style.height=Se/Xe>Pe?"":"auto"}attach(){this.instance.on("Carousel.initSlide",this.onInitSlide),this.instance.on("Carousel.createSlide",this.onCreateSlide),this.instance.on("Carousel.removeSlide",this.onRemoveSlide),this.instance.on("Carousel.selectSlide",this.onSelectSlide),this.instance.on("Carousel.unselectSlide",this.onUnselectSlide),this.instance.on("Carousel.Panzoom.refresh",this.onRefresh),this.instance.on("done",this.onDone),window.addEventListener("message",this.onMessage)}detach(){this.instance.off("Carousel.initSlide",this.onInitSlide),this.instance.off("Carousel.createSlide",this.onCreateSlide),this.instance.off("Carousel.removeSlide",this.onRemoveSlide),this.instance.off("Carousel.selectSlide",this.onSelectSlide),this.instance.off("Carousel.unselectSlide",this.onUnselectSlide),this.instance.off("Carousel.Panzoom.refresh",this.onRefresh),this.instance.off("done",this.onDone),window.removeEventListener("message",this.onMessage)}}Object.defineProperty(Dt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{ajax:null,autoSize:!0,preload:!0,iframeAttr:{allow:"autoplay; fullscreen",scrolling:"auto"},videoAutoplay:!0,videoRatio:16/9,videoTpl:'<video class="fancybox__html5video" playsinline controls controlsList="nodownload" poster="{{poster}}">\n  <source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos.</video>',videoFormat:"",vimeo:{byline:1,color:"00adef",controls:1,dnt:1,muted:0},youtube:{controls:1,enablejsapi:1,nocookie:1,rel:0,fs:1}}});class ot extends W{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:"ready"}),Object.defineProperty(this,"inHover",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"timer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"progressBar",{enumerable:!0,configurable:!0,writable:!0,value:null})}get isActive(){return"ready"!==this.state}onReady(le){this.option("autoStart")&&(le.isInfinite||le.page<le.pages.length-1)&&this.start()}onChange(){var le;(null===(le=this.instance.panzoom)||void 0===le?void 0:le.isResting)||(this.removeProgressBar(),this.pause())}onSettle(){this.resume()}onVisibilityChange(){"visible"===document.visibilityState?this.resume():this.pause()}onMouseEnter(){this.inHover=!0,this.pause()}onMouseLeave(){var le;this.inHover=!1,(null===(le=this.instance.panzoom)||void 0===le?void 0:le.isResting)&&this.resume()}onTimerEnd(){"play"===this.state&&(this.instance.isInfinite||this.instance.page!==this.instance.pages.length-1?this.instance.slideNext():this.instance.slideTo(0))}removeProgressBar(){this.progressBar&&(this.progressBar.remove(),this.progressBar=null)}createProgressBar(){var le;if(!this.option("showProgress"))return null;this.removeProgressBar();const Ce=this.instance,Ie=(null===(le=Ce.pages[Ce.page])||void 0===le?void 0:le.slides)||[];let Pe=this.option("progressParentEl");if(Pe||(Pe=(1===Ie.length?Ie[0].el:null)||Ce.viewport),!Pe)return null;const Oe=document.createElement("div");return oe(Oe,"f-progress"),Pe.prepend(Oe),this.progressBar=Oe,Oe}set(){if(this.instance.pages.length<2||this.progressBar)return;const le=this.option("timeout");this.state="play",oe(this.instance.container,"has-autoplay");let Ce=this.createProgressBar();Ce&&(Ce.style.transitionDuration=`${le}ms`,Ce.style.transform="scaleX(1)"),this.timer=setTimeout(()=>{this.timer=null,this.inHover||this.onTimerEnd()},le),this.emit("set")}clear(){this.timer&&(clearTimeout(this.timer),this.timer=null),this.removeProgressBar()}start(){if(this.set(),this.option("pauseOnHover")){const le=this.instance.container;le.addEventListener("mouseenter",this.onMouseEnter,!1),le.addEventListener("mouseleave",this.onMouseLeave,!1)}document.addEventListener("visibilitychange",this.onVisibilityChange,!1)}stop(){const le=this.instance.container;this.clear(),this.state="ready",le.removeEventListener("mouseenter",this.onMouseEnter,!1),le.removeEventListener("mouseleave",this.onMouseLeave,!1),document.removeEventListener("visibilitychange",this.onVisibilityChange,!1),re(le,"has-autoplay"),this.emit("stop")}pause(){"play"===this.state&&(this.state="pause",this.clear(),this.emit("pause"))}resume(){const le=this.instance;if(le.isInfinite||le.page!==le.pages.length-1)if("play"!==this.state){if("pause"===this.state&&!this.inHover){const Ce=new Event("resume",{bubbles:!0,cancelable:!0});this.emit("resume",event),Ce.defaultPrevented||this.set()}}else this.set();else this.stop()}toggle(){"play"===this.state||"pause"===this.state?this.stop():this.set()}attach(){this.instance.on("ready",this.onReady),this.instance.on("Panzoom.startAnimation",this.onChange),this.instance.on("Panzoom.endAnimation",this.onSettle),this.instance.on("Panzoom.touchMove",this.onChange)}detach(){this.instance.off("ready",this.onReady),this.instance.off("Panzoom.startAnimation",this.onChange),this.instance.off("Panzoom.endAnimation",this.onSettle),this.instance.off("Panzoom.touchMove",this.onChange),this.stop()}}Object.defineProperty(ot,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{autoStart:!0,pauseOnHover:!0,progressParentEl:null,showProgress:!0,timeout:3e3}});class nt extends W{constructor(){super(...arguments),Object.defineProperty(this,"ref",{enumerable:!0,configurable:!0,writable:!0,value:null})}onPrepare(le){const Ce=le.carousel;if(!Ce)return;const Ie=le.container;Ie&&(Ce.options.Autoplay=H(this.option("Autoplay")||{},{pauseOnHover:!1,autoStart:!1,timeout:this.option("timeout"),progressParentEl:()=>Ie.querySelector(".fancybox__toolbar [data-fancybox-toggle-slideshow]")||Ie,on:{set:Pe=>{var Oe;Ie.classList.add("has-slideshow"),(null===(Oe=le.getSlide())||void 0===Oe?void 0:Oe.state)!==Te.Ready&&Pe.pause()},stop:()=>{Ie.classList.remove("has-slideshow"),le.isCompact||le.endIdle()},resume:(Pe,Oe)=>{var Se,Xe,Ct;!Oe||!Oe.cancelable||(null===(Se=le.getSlide())||void 0===Se?void 0:Se.state)===Te.Ready&&(null===(Ct=null===(Xe=le.carousel)||void 0===Xe?void 0:Xe.panzoom)||void 0===Ct?void 0:Ct.isResting)||Oe.preventDefault()}}}),Ce.attachPlugins({Autoplay:ot}),this.ref=Ce.plugins.Autoplay)}onReady(le){const Ce=le.carousel,Ie=this.ref;Ce&&Ie&&this.option("playOnStart")&&(Ce.isInfinite||Ce.page<Ce.pages.length-1)&&Ie.start()}onDone(le,Ce){const Ie=this.ref;if(!Ie)return;const Pe=Ce.panzoom;Pe&&Pe.on("startAnimation",()=>{le.isCurrentSlide(Ce)&&Ie.stop()}),le.isCurrentSlide(Ce)&&Ie.resume()}onKeydown(le,Ce){var Ie;const Pe=this.ref;Pe&&Ce===this.option("key")&&"BUTTON"!==(null===(Ie=document.activeElement)||void 0===Ie?void 0:Ie.nodeName)&&Pe.toggle()}attach(){this.instance.on("Carousel.init",this.onPrepare),this.instance.on("Carousel.ready",this.onReady),this.instance.on("done",this.onDone),this.instance.on("keydown",this.onKeydown)}detach(){this.instance.off("Carousel.init",this.onPrepare),this.instance.off("Carousel.ready",this.onReady),this.instance.off("done",this.onDone),this.instance.off("keydown",this.onKeydown)}}Object.defineProperty(nt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{key:" ",playOnStart:!1,timeout:3e3}});const Yt={classes:{container:"f-thumbs f-carousel__thumbs",viewport:"f-thumbs__viewport",track:"f-thumbs__track",slide:"f-thumbs__slide",isResting:"is-resting",isSelected:"is-selected",isLoading:"is-loading",hasThumbs:"has-thumbs"},minCount:2,parentEl:null,thumbTpl:'<button class="f-thumbs__slide__button" tabindex="0" type="button" aria-label="{{GOTO}}" data-carousel-index="%i"><img class="f-thumbs__slide__img" data-lazy-src="{{%s}}" alt="" /></button>',type:"modern"};var Ne;!function(Gt){Gt[Gt.Init=0]="Init",Gt[Gt.Ready=1]="Ready",Gt[Gt.Hidden=2]="Hidden",Gt[Gt.Disabled=3]="Disabled"}(Ne||(Ne={}));let X=class extends W{constructor(){super(...arguments),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:"modern"}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"track",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"carousel",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"panzoom",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"thumbWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbClipWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbGap",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbExtraGap",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"shouldCenter",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:Ne.Init})}formatThumb(Gt,le){return this.instance.localize(le,[["%i",Gt.index],["%d",Gt.index+1],["%s",Gt.thumbSrc||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"]])}getSlides(){const Gt=[],le=this.option("thumbTpl")||"";if(le)for(const Ce of this.instance.slides||[]){let Ie="";Ce.type&&(Ie=`for-${Ce.type}`,Ce.type&&["video","youtube","vimeo","html5video"].includes(Ce.type)&&(Ie+=" for-video")),Gt.push({html:this.formatThumb(Ce,le),customClass:Ie})}return Gt}onInitSlide(Gt,le){const Ce=le.el;Ce&&(le.thumbSrc=Ce.dataset.thumbSrc||le.thumbSrc||"",le.thumbClipWidth=parseFloat(Ce.dataset.thumbClipWidth||"")||le.thumbClipWidth||0,le.thumbHeight=parseFloat(Ce.dataset.thumbHeight||"")||le.thumbHeight||0)}onInitSlides(){this.state===Ne.Init&&this.build()}onRefreshM(){this.refreshModern()}onChangeM(){"modern"===this.type&&(this.shouldCenter=!0,this.centerModern())}onClickModern(Gt){Gt.preventDefault(),Gt.stopPropagation();const le=this.instance,Ce=le.page,Ie=Se=>{if(Se){const Xe=Se.closest("[data-carousel-index]");if(Xe)return parseInt(Xe.dataset.carouselIndex||"",10)||0}return-1},Pe=(Se,Xe)=>{const Ct=document.elementFromPoint(Se,Xe);return Ct?Ie(Ct):-1};let Oe=Ie(Gt.target);Oe<0&&(Oe=Pe(Gt.clientX+this.thumbGap,Gt.clientY),Oe===Ce&&(Oe=Ce-1)),Oe<0&&(Oe=Pe(Gt.clientX-this.thumbGap,Gt.clientY),Oe===Ce&&(Oe=Ce+1)),Oe<0&&(Oe=(Se=>{let Xe=Pe(Gt.clientX-Se,Gt.clientY),Ct=Pe(Gt.clientX+Se,Gt.clientY);return Oe<0&&Xe===Ce&&(Oe=Ce+1),Oe<0&&Ct===Ce&&(Oe=Ce-1),Oe})(this.thumbExtraGap)),Oe===Ce?this.centerModern():Oe>-1&&Oe<le.pages.length&&le.slideTo(Oe)}onTransformM(){if("modern"!==this.type)return;const{instance:Gt,container:le,track:Ce}=this,Ie=Gt.panzoom;if(!(le&&Ce&&Ie&&this.panzoom))return;g(le,this.cn("isResting"),Ie.state!==U.Init&&Ie.isResting);const Pe=this.thumbGap,Oe=this.thumbExtraGap,Se=this.thumbClipWidth;let Xe=0,Ct=0,zt=0;for(const kr of Gt.slides){let Br=kr.index,xt=kr.thumbSlideEl;if(!xt)continue;g(xt,this.cn("isSelected"),Br===Gt.page),Ct=1-Math.abs(Gt.getProgress(Br)),xt.style.setProperty("--progress",Ct?Ct+"":"");const tr=.5*((kr.thumbWidth||0)-Se);Xe+=Pe,Xe+=tr,Ct&&(Xe-=Ct*(tr+Oe)),xt.style.setProperty("--shift",Xe-Pe+""),Xe+=tr,Ct&&(Xe-=Ct*(tr+Oe)),Xe-=Pe,0===Br&&(zt=Oe*Ct)}Ce&&(Ce.style.setProperty("--left",zt+""),Ce.style.setProperty("--width",Xe+zt+Pe+Oe*Ct+"")),this.shouldCenter&&this.centerModern()}buildClassic(){const{container:Gt,track:le}=this,Ce=this.getSlides();if(!Gt||!le||!Ce)return;const Ie=new this.instance.constructor(Gt,H({track:le,infinite:!1,center:!0,fill:!0,dragFree:!0,slidesPerPage:1,transition:!1,Dots:!1,Navigation:!1,Sync:{},classes:{container:"f-thumbs",viewport:"f-thumbs__viewport",track:"f-thumbs__track",slide:"f-thumbs__slide"}},this.option("Carousel")||{},{Sync:{target:this.instance},slides:Ce}));this.carousel=Ie,this.track=le,Ie.on("ready",()=>{this.emit("ready")})}buildModern(){if("modern"!==this.type)return;const{container:Gt,track:le,instance:Ce}=this,Ie=this.option("thumbTpl")||"";if(!Gt||!le||!Ie)return;oe(Gt,"is-horizontal"),this.updateModern();for(const Oe of Ce.slides||[]){const Se=document.createElement("div");if(oe(Se,this.cn("slide")),Oe.type){let Xe=`for-${Oe.type}`;["video","youtube","vimeo","html5video"].includes(Oe.type)&&(Xe+=" for-video"),oe(Se,Xe)}Se.appendChild(d(this.formatThumb(Oe,Ie))),Oe.thumbSlideEl=Se,le.appendChild(Se),this.resizeModernSlide(Oe)}const Pe=new Ce.constructor.Panzoom(Gt,{content:le,lockAxis:"x",zoom:!1,panOnlyZoomed:!1,bounds:()=>{let Oe=0,Se=0,Xe=Ce.slides[0],Ct=Ce.slides[Ce.slides.length-1],zt=Ce.slides[Ce.page];return Xe&&Ct&&zt&&(Se=-1*this.getModernThumbPos(0),0!==Ce.page&&(Se+=.5*(Xe.thumbWidth||0)),Oe=-1*this.getModernThumbPos(Ce.slides.length-1),Ce.page!==Ce.slides.length-1&&(Oe+=(Ct.thumbWidth||0)-(zt.thumbWidth||0)-.5*(Ct.thumbWidth||0))),{x:{min:Oe,max:Se},y:{min:0,max:0}}}});Pe.on("touchStart",(Oe,Se)=>{this.shouldCenter=!1}),Pe.on("click",(Oe,Se)=>this.onClickModern(Se)),Pe.on("ready",()=>{this.centerModern(),this.emit("ready")}),Pe.on(["afterTransform","refresh"],Oe=>{this.lazyLoadModern()}),this.panzoom=Pe,this.refreshModern()}updateModern(){if("modern"!==this.type)return;const{container:Gt}=this;Gt&&(this.thumbGap=parseFloat(getComputedStyle(Gt).getPropertyValue("--f-thumb-gap"))||0,this.thumbExtraGap=parseFloat(getComputedStyle(Gt).getPropertyValue("--f-thumb-extra-gap"))||0,this.thumbWidth=parseFloat(getComputedStyle(Gt).getPropertyValue("--f-thumb-width"))||40,this.thumbClipWidth=parseFloat(getComputedStyle(Gt).getPropertyValue("--f-thumb-clip-width"))||40,this.thumbHeight=parseFloat(getComputedStyle(Gt).getPropertyValue("--f-thumb-height"))||40)}refreshModern(){var Gt;if("modern"===this.type){this.updateModern();for(const le of this.instance.slides||[])this.resizeModernSlide(le);this.onTransformM(),null===(Gt=this.panzoom)||void 0===Gt||Gt.updateMetrics(!0),this.centerModern(0)}}centerModern(Gt){const le=this.instance,{container:Ce,panzoom:Ie}=this;if(!Ce||!Ie||Ie.state===U.Init)return;let Oe=this.getModernThumbPos(le.page),Se=Oe;for(let Ct=le.page-3;Ct<le.page+3;Ct++){if(Ct<0||Ct>le.pages.length-1||Ct===le.page)continue;const zt=1-Math.abs(le.getProgress(Ct));zt>0&&zt<1&&(Se+=zt*(this.getModernThumbPos(Ct)-Oe))}let Xe=100;void 0===Gt&&(Gt=.2,le.inTransition.size>0&&(Gt=.12),Math.abs(-1*Ie.current.e-Se)>Ie.containerRect.width&&(Gt=.5,Xe=0)),Ie.options.maxVelocity=Xe,Ie.applyChange({panX:l(-1*Se-Ie.target.e,1e3),friction:null===le.prevPage?0:Gt})}lazyLoadModern(){const{instance:Gt,panzoom:le}=this;if(!le)return;const Ce=-1*le.current.e||0;let Ie=this.getModernThumbPos(Gt.page);if(le.state!==U.Init||0===Ie)for(const Pe of Gt.slides||[]){const Oe=Pe.thumbSlideEl;if(!Oe)continue;const Se=Oe.querySelector("img[data-lazy-src]"),Ct=this.getModernThumbPos(Pe.index),zt=Ce-.5*le.containerRect.innerWidth,kr=zt+le.containerRect.innerWidth;if(!Se||Ct<zt||Ct>kr)continue;let Br=Se.dataset.lazySrc;if(!Br||!Br.length||(delete Se.dataset.lazySrc,Se.src=Br,Se.complete))continue;oe(Oe,this.cn("isLoading"));const xt=d(ie);Oe.appendChild(xt),Se.addEventListener("load",()=>{Oe.offsetParent&&(Oe.classList.remove(this.cn("isLoading")),xt.remove())},!1)}}resizeModernSlide(Gt){if("modern"!==this.type||!Gt.thumbSlideEl)return;const le=Gt.thumbClipWidth&&Gt.thumbHeight?Math.round(this.thumbHeight*(Gt.thumbClipWidth/Gt.thumbHeight)):this.thumbWidth;Gt.thumbWidth=le}getModernThumbPos(Gt){const le=this.instance.slides[Gt],Ce=this.panzoom;if(!Ce||!Ce.contentRect.fitWidth)return 0;let Ie=Ce.containerRect.innerWidth,Pe=Ce.contentRect.width;2===this.instance.slides.length&&(Gt-=1,Pe=2*this.thumbClipWidth);let Oe=Gt*(this.thumbClipWidth+this.thumbGap)+this.thumbExtraGap+.5*(le.thumbWidth||0);return Oe-=Pe>Ie?.5*Ie:.5*Pe,l(Oe||0,1)}build(){const Gt=this.instance,le=Gt.container,Ce=this.option("minCount")||0;if(Ce){let Xe=0;for(const Ct of Gt.slides||[])Ct.thumbSrc&&Xe++;if(Xe<Ce)return this.cleanup(),void(this.state=Ne.Disabled)}const Ie=this.option("type");if(["modern","classic"].indexOf(Ie)<0)return void(this.state=Ne.Disabled);this.type=Ie;const Pe=document.createElement("div");oe(Pe,this.cn("container")),oe(Pe,`is-${Ie}`);const Oe=this.option("parentEl");Oe?Oe.appendChild(Pe):le.after(Pe),this.container=Pe,oe(le,this.cn("hasThumbs"));const Se=document.createElement("div");oe(Se,this.cn("track")),Pe.appendChild(Se),this.track=Se,"classic"===Ie?this.buildClassic():this.buildModern(),this.state=Ne.Ready,Pe.addEventListener("click",Xe=>{setTimeout(()=>{var Ct;null===(Ct=null==Pe?void 0:Pe.querySelector(`[data-carousel-index="${Gt.page}"]`))||void 0===Ct||Ct.focus()},100)})}cleanup(){this.carousel&&this.carousel.destroy(),this.carousel=null,this.panzoom&&this.panzoom.destroy(),this.panzoom=null,this.container&&this.container.remove(),this.container=null,this.track=null,this.state=Ne.Init,re(this.instance.container,this.cn("hasThumbs"))}attach(){const{instance:Gt}=this;Gt.on("initSlide",this.onInitSlide),Gt.state===$.Init?Gt.on("initSlides",this.onInitSlides):this.onInitSlides(),Gt.on("Panzoom.afterTransform",this.onTransformM),Gt.on("Panzoom.refresh",this.onRefreshM),Gt.on("change",this.onChangeM)}detach(){const{instance:Gt}=this;Gt.off("initSlide",this.onInitSlide),Gt.off("initSlides",this.onInitSlides),Gt.off("Panzoom.afterTransform",this.onTransformM),Gt.off("Panzoom.refresh",this.onRefreshM),Gt.off("change",this.onChangeM),this.cleanup()}};Object.defineProperty(X,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Yt});const ge=Object.assign(Object.assign({},Yt),{key:"t",showOnStart:!0,parentEl:null});class Me extends W{constructor(){super(...arguments),Object.defineProperty(this,"ref",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"hidden",{enumerable:!0,configurable:!0,writable:!0,value:!1})}get isEnabled(){const le=this.ref;return le&&le.state!==Ne.Disabled}get isHidden(){return this.hidden}onInit(){const le=this.instance,Ce=le.carousel;if(this.ref||!Ce)return;const Ie=this.option("parentEl")||le.footer||le.container;Ie&&(Ce.options.Thumbs=H({},this.options,{parentEl:Ie,classes:{container:"f-thumbs fancybox__thumbs"},Carousel:{Sync:{friction:le.option("Carousel.friction")},on:{click:(Pe,Oe)=>{Oe.stopPropagation()}}},on:{ready:Pe=>{const Oe=Pe.container;Oe&&this.hidden&&(this.refresh(),Oe.style.transition="none",this.hide(),queueMicrotask(()=>{Oe.style.transition="",this.show()}))}}}),Ce.attachPlugins({Thumbs:X}),this.ref=Ce.plugins.Thumbs,this.option("showOnStart")||(this.ref.state=Ne.Hidden,this.hidden=!0))}onResize(){var le;const Ce=null===(le=this.ref)||void 0===le?void 0:le.container;Ce&&(Ce.style.maxHeight="")}onKeydown(le,Ce){const Ie=this.option("key");Ie&&Ie===Ce&&this.toggle()}toggle(){const le=this.ref;le&&le.state!==Ne.Disabled&&(le.state!==Ne.Hidden?this.hidden?this.show():this.hide():le.build())}show(){const le=this.ref,Ce=le&&le.state!==Ne.Disabled&&le.container;Ce&&(this.refresh(),Ce.removeAttribute("aria-hidden"),Ce.classList.remove("is-hidden"),this.hidden=!1)}hide(){const le=this.ref,Ce=le&&le.container;Ce&&(this.refresh(),Ce.classList.add("is-hidden"),Ce.setAttribute("aria-hidden","true")),this.hidden=!0}refresh(){const le=this.ref;if(!le||le.state===Ne.Disabled)return;const Ce=le.container,Ie=(null==Ce?void 0:Ce.firstChild)||null;Ce&&Ie&&Ie.childNodes.length&&(Ce.style.maxHeight=`${Ie.getBoundingClientRect().height}px`)}attach(){this.instance.state===be.Init?this.instance.on("Carousel.init",this.onInit):this.onInit(),this.instance.on("resize",this.onResize),this.instance.on("keydown",this.onKeydown)}detach(){var le;this.instance.off("Carousel.init",this.onInit),this.instance.off("resize",this.onResize),this.instance.off("keydown",this.onKeydown),null===(le=this.instance.carousel)||void 0===le||le.detachPlugins(["Thumbs"]),this.ref=null}}Object.defineProperty(Me,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:ge});const We={panLeft:{icon:'<svg><path d="M5 12h14M5 12l6 6M5 12l6-6"/></svg>',change:{panX:-100}},panRight:{icon:'<svg><path d="M5 12h14M13 18l6-6M13 6l6 6"/></svg>',change:{panX:100}},panUp:{icon:'<svg><path d="M12 5v14M18 11l-6-6M6 11l6-6"/></svg>',change:{panY:-100}},panDown:{icon:'<svg><path d="M12 5v14M18 13l-6 6M6 13l6 6"/></svg>',change:{panY:100}},zoomIn:{icon:'<svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M11 8v6M8 11h6"/></svg>',action:"zoomIn"},zoomOut:{icon:'<svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"zoomOut"},toggle1to1:{icon:'<svg><path d="M3.51 3.07c5.74.02 11.48-.02 17.22.02 1.37.1 2.34 1.64 2.18 3.13 0 4.08.02 8.16 0 12.23-.1 1.54-1.47 2.64-2.79 2.46-5.61-.01-11.24.02-16.86-.01-1.36-.12-2.33-1.65-2.17-3.14 0-4.07-.02-8.16 0-12.23.1-1.36 1.22-2.48 2.42-2.46Z"/><path d="M5.65 8.54h1.49v6.92m8.94-6.92h1.49v6.92M11.5 9.4v.02m0 5.18v0"/></svg>',action:"toggleZoom"},toggleZoom:{icon:'<svg><g><line x1="11" y1="8" x2="11" y2="14"></line></g><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"toggleZoom"},iterateZoom:{icon:'<svg><g><line x1="11" y1="8" x2="11" y2="14"></line></g><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"iterateZoom"},rotateCCW:{icon:'<svg><path d="M15 4.55a8 8 0 0 0-6 14.9M9 15v5H4M18.37 7.16v.01M13 19.94v.01M16.84 18.37v.01M19.37 15.1v.01M19.94 11v.01"/></svg>',action:"rotateCCW"},rotateCW:{icon:'<svg><path d="M9 4.55a8 8 0 0 1 6 14.9M15 15v5h5M5.63 7.16v.01M4.06 11v.01M4.63 15.1v.01M7.16 18.37v.01M11 19.94v.01"/></svg>',action:"rotateCW"},flipX:{icon:'<svg style="stroke-width: 1.3"><path d="M12 3v18M16 7v10h5L16 7M8 7v10H3L8 7"/></svg>',action:"flipX"},flipY:{icon:'<svg style="stroke-width: 1.3"><path d="M3 12h18M7 16h10L7 21v-5M7 8h10L7 3v5"/></svg>',action:"flipY"},fitX:{icon:'<svg><path d="M4 12V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v6M10 18H3M21 18h-7M6 15l-3 3 3 3M18 15l3 3-3 3"/></svg>',action:"fitX"},fitY:{icon:'<svg><path d="M12 20H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h6M18 14v7M18 3v7M15 18l3 3 3-3M15 6l3-3 3 3"/></svg>',action:"fitY"},reset:{icon:'<svg><path d="M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"/></svg>',action:"reset"},toggleFS:{icon:'<svg><g><path d="M14.5 9.5 21 3m0 0h-6m6 0v6M3 21l6.5-6.5M3 21v-6m0 6h6"/></g><g><path d="m14 10 7-7m-7 7h6m-6 0V4M3 21l7-7m0 0v6m0-6H4"/></g></svg>',action:"toggleFS"}};var Re;!function(Gt){Gt[Gt.Init=0]="Init",Gt[Gt.Ready=1]="Ready",Gt[Gt.Disabled=2]="Disabled"}(Re||(Re={}));const Zt={tabindex:"-1",width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};class cr extends W{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:Re.Init}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null})}onReady(le){var Ce;if(!le.carousel)return;let Ie=this.option("display"),Pe=this.option("absolute"),Oe=this.option("enabled");if("auto"===Oe){const zt=this.instance.carousel;let kr=0;if(zt)for(const Br of zt.slides)(Br.panzoom||"image"===Br.type)&&kr++;kr||(Oe=!1)}Oe||(Ie=void 0);let Se=0;const Xe={left:[],middle:[],right:[]};if(Ie)for(const zt of["left","middle","right"])for(const kr of Ie[zt]){const Br=this.createEl(kr);Br&&(null===(Ce=Xe[zt])||void 0===Ce||Ce.push(Br),Se++)}let Ct=null;if(Se&&(Ct=this.createContainer()),Ct){for(const[zt,kr]of Object.entries(Xe)){const Br=document.createElement("div");oe(Br,"fancybox__toolbar__column is-"+zt);for(const xt of kr)Br.appendChild(xt);"auto"!==Pe||"middle"!==zt||kr.length||(Pe=!0),Ct.appendChild(Br)}!0===Pe&&oe(Ct,"is-absolute"),this.state=Re.Ready,this.onRefresh()}else this.state=Re.Disabled}onClick(le){var Ce,Ie;const Pe=this.instance,Oe=Pe.getSlide(),Se=null==Oe?void 0:Oe.panzoom,Xe=le.target,Ct=Xe&&K(Xe)?Xe.dataset:null;if(!Ct)return;if(void 0!==Ct.fancyboxToggleThumbs)return le.preventDefault(),le.stopPropagation(),void(null===(Ce=Pe.plugins.Thumbs)||void 0===Ce||Ce.toggle());if(void 0!==Ct.fancyboxToggleFullscreen)return le.preventDefault(),le.stopPropagation(),void this.instance.toggleFullscreen();if(void 0!==Ct.fancyboxToggleSlideshow){le.preventDefault(),le.stopPropagation();const Br=null===(Ie=Pe.carousel)||void 0===Ie?void 0:Ie.plugins.Autoplay;let xt=Br.isActive;return Se&&"mousemove"===Se.panMode&&!xt&&Se.reset(),void(xt?Br.stop():Br.start())}const zt=Ct.panzoomAction,kr=Ct.panzoomChange;if((kr||zt)&&(le.preventDefault(),le.stopPropagation()),kr){let Br={};try{Br=JSON.parse(kr)}catch{}Se&&Se.applyChange(Br)}else zt&&Se&&Se[zt]&&Se[zt]()}onChange(){this.onRefresh()}onRefresh(){if(this.instance.isClosing())return;const le=this.container;if(!le)return;const Ce=this.instance.getSlide();if(!Ce||Ce.state!==Te.Ready)return;const Ie=Ce&&!Ce.error&&Ce.panzoom;for(const Se of le.querySelectorAll("[data-panzoom-action]"))Ie?(Se.removeAttribute("disabled"),Se.removeAttribute("tabindex")):(Se.setAttribute("disabled",""),Se.setAttribute("tabindex","-1"));let Pe=Ie&&Ie.canZoomIn(),Oe=Ie&&Ie.canZoomOut();for(const Se of le.querySelectorAll('[data-panzoom-action="zoomIn"]'))Pe?(Se.removeAttribute("disabled"),Se.removeAttribute("tabindex")):(Se.setAttribute("disabled",""),Se.setAttribute("tabindex","-1"));for(const Se of le.querySelectorAll('[data-panzoom-action="zoomOut"]'))Oe?(Se.removeAttribute("disabled"),Se.removeAttribute("tabindex")):(Se.setAttribute("disabled",""),Se.setAttribute("tabindex","-1"));for(const Se of le.querySelectorAll('[data-panzoom-action="toggleZoom"],[data-panzoom-action="iterateZoom"]')){Oe||Pe?(Se.removeAttribute("disabled"),Se.removeAttribute("tabindex")):(Se.setAttribute("disabled",""),Se.setAttribute("tabindex","-1"));const Xe=Se.querySelector("g");Xe&&(Xe.style.display=Pe?"":"none")}}onDone(le,Ce){var Ie;null===(Ie=Ce.panzoom)||void 0===Ie||Ie.on("afterTransform",()=>{this.instance.isCurrentSlide(Ce)&&this.onRefresh()}),this.instance.isCurrentSlide(Ce)&&this.onRefresh()}createContainer(){const le=this.instance.container;if(!le)return null;const Ce=this.option("parentEl")||le,Ie=document.createElement("div");return oe(Ie,"fancybox__toolbar"),Ce.prepend(Ie),Ie.addEventListener("click",this.onClick,{passive:!1,capture:!0}),le&&oe(le,"has-toolbar"),this.container=Ie,Ie}createEl(le){var Ce;const Ie=this.instance.carousel;if(!Ie||"toggleFS"===le||"fullscreen"===le&&!this.instance.fsAPI)return null;let Pe=null;const Oe=Ie.slides.length||0;let Se=0,Xe=0;for(const zt of Ie.slides)(zt.panzoom||"image"===zt.type)&&Se++,("image"===zt.type||zt.downloadSrc)&&Xe++;if(Oe<2&&["infobar","prev","next"].includes(le))return Pe;if(void 0!==We[le]&&!Se||"download"===le&&!Xe)return null;if("thumbs"===le){const zt=this.instance.plugins.Thumbs;if(!zt||!zt.isEnabled)return null}if("slideshow"===le&&(!(null===(Ce=this.instance.carousel)||void 0===Ce?void 0:Ce.plugins.Autoplay)||Oe<2))return null;if(void 0!==We[le]){const zt=We[le];Pe=document.createElement("button"),Pe.setAttribute("title",this.instance.localize(`{{${le.toUpperCase()}}}`)),oe(Pe,"f-button"),zt.action&&(Pe.dataset.panzoomAction=zt.action),zt.change&&(Pe.dataset.panzoomChange=JSON.stringify(zt.change)),Pe.appendChild(d(this.instance.localize(zt.icon)))}else{const zt=(this.option("items")||[])[le];zt&&(Pe=d(this.instance.localize(zt.tpl)),"function"==typeof zt.click&&Pe.addEventListener("click",kr=>{kr.preventDefault(),kr.stopPropagation(),"function"==typeof zt.click&&zt.click.call(this,this,kr)}))}const Ct=null==Pe?void 0:Pe.querySelector("svg");if(Ct)for(const[zt,kr]of Object.entries(Zt))Ct.getAttribute(zt)||Ct.setAttribute(zt,String(kr));return Pe}removeContainer(){const le=this.container;le&&le.remove(),this.container=null,this.state=Re.Disabled;const Ce=this.instance.container;Ce&&re(Ce,"has-toolbar")}attach(){const le=this,{instance:Ce}=le;Ce.on("Carousel.initSlides",le.onReady),Ce.on("done",le.onDone),Ce.on("reveal",le.onChange),Ce.on("Carousel.change",le.onChange),le.onReady(le.instance)}detach(){const le=this,{instance:Ce}=le;Ce.off("Carousel.initSlides",le.onReady),Ce.off("done",le.onDone),Ce.off("reveal",le.onChange),Ce.off("Carousel.change",le.onChange),le.removeContainer()}}Object.defineProperty(cr,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{absolute:"auto",display:{left:["infobar"],middle:[],right:["iterateZoom","slideshow","fullscreen","thumbs","close"]},enabled:"auto",items:{infobar:{tpl:'<div class="fancybox__infobar" tabindex="-1"><span data-fancybox-current-index></span>/<span data-fancybox-count></span></div>'},download:{tpl:'<a class="f-button" title="{{DOWNLOAD}}" data-fancybox-download href="javasript:;"><svg><path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5 5-5M12 4v12"/></svg></a>'},prev:{tpl:'<button class="f-button" title="{{PREV}}" data-fancybox-prev><svg><path d="m15 6-6 6 6 6"/></svg></button>'},next:{tpl:'<button class="f-button" title="{{NEXT}}" data-fancybox-next><svg><path d="m9 6 6 6-6 6"/></svg></button>'},slideshow:{tpl:'<button class="f-button" title="{{TOGGLE_SLIDESHOW}}" data-fancybox-toggle-slideshow><svg><g><path d="M8 4v16l13 -8z"></path></g><g><path d="M8 4v15M17 4v15"/></g></svg></button>'},fullscreen:{tpl:'<button class="f-button" title="{{TOGGLE_FULLSCREEN}}" data-fancybox-toggle-fullscreen><svg><g><path d="M4 8V6a2 2 0 0 1 2-2h2M4 16v2a2 2 0 0 0 2 2h2M16 4h2a2 2 0 0 1 2 2v2M16 20h2a2 2 0 0 0 2-2v-2"/></g><g><path d="M15 19v-2a2 2 0 0 1 2-2h2M15 5v2a2 2 0 0 0 2 2h2M5 15h2a2 2 0 0 1 2 2v2M5 9h2a2 2 0 0 0 2-2V5"/></g></svg></button>'},thumbs:{tpl:'<button class="f-button" title="{{TOGGLE_THUMBS}}" data-fancybox-toggle-thumbs><svg><circle cx="5.5" cy="5.5" r="1"/><circle cx="12" cy="5.5" r="1"/><circle cx="18.5" cy="5.5" r="1"/><circle cx="5.5" cy="12" r="1"/><circle cx="12" cy="12" r="1"/><circle cx="18.5" cy="12" r="1"/><circle cx="5.5" cy="18.5" r="1"/><circle cx="12" cy="18.5" r="1"/><circle cx="18.5" cy="18.5" r="1"/></svg></button>'},close:{tpl:'<button class="f-button" title="{{CLOSE}}" data-fancybox-close><svg><path d="m19.5 4.5-15 15M4.5 4.5l15 15"/></svg></button>'}},parentEl:null}});const wt={Hash:ft,Html:Dt,Images:Ft,Slideshow:nt,Thumbs:Me,Toolbar:cr},gt=function(){var Gt=window.getSelection();return Gt&&"Range"===Gt.type};let Ut=null,hr=null;const Cr=new Map;let Ue=0;class Pt extends D{get isIdle(){return this.idle}get isCompact(){return this.option("compact")}constructor(le=[],Ce={},Ie={}){super(Ce),Object.defineProperty(this,"userSlides",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"idle",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"idleTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"clickTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"pwt",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"ignoreFocusChange",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:be.Init}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"footer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"carousel",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"lastFocus",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"prevMouseMoveEvent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fsAPI",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.fsAPI=(()=>{let Pe,Oe="",Se="",Xe="";return document.fullscreenEnabled?(Oe="requestFullscreen",Se="exitFullscreen",Xe="fullscreenElement"):document.webkitFullscreenEnabled&&(Oe="webkitRequestFullscreen",Se="webkitExitFullscreen",Xe="webkitFullscreenElement"),Oe&&(Pe={request:function(Ct){return"webkitRequestFullscreen"===Oe?Ct[Oe](Element.ALLOW_KEYBOARD_INPUT):Ct[Oe]()},exit:function(){return document[Xe]&&document[Se]()},isFullscreen:function(){return document[Xe]}}),Pe})(),this.id=Ce.id||++Ue,Cr.set(this.id,this),this.userSlides=le,this.userPlugins=Ie,queueMicrotask(()=>{this.init()})}init(){if(this.state===be.Destroy)return;this.state=be.Init,this.attachPlugins(Object.assign(Object.assign({},Pt.Plugins),this.userPlugins)),this.emit("init"),!0===this.option("hideScrollbar")&&(()=>{if(!at)return;const Ce=document.body;if(Ce.classList.contains("hide-scrollbar"))return;const Ie=window.innerWidth-document.documentElement.getBoundingClientRect().width,Pe=Ce.currentStyle||window.getComputedStyle(Ce),Oe=parseFloat(Pe.marginRight);document.documentElement.style.setProperty("--fancybox-scrollbar-compensate",`${Ie}px`),Oe&&Ce.style.setProperty("--fancybox-body-margin",`${Oe}px`),Ce.classList.add("hide-scrollbar")})(),this.initLayout();const le=()=>{this.initCarousel(this.userSlides),this.state=be.Ready,this.attachEvents(),this.emit("ready"),setTimeout(()=>{this.container&&this.container.setAttribute("aria-hidden","false")},16)};this.option("Fullscreen.autoStart")&&this.fsAPI&&!this.fsAPI.isFullscreen()?this.fsAPI.request(this.container).then(()=>le()).catch(()=>le()):le()}initLayout(){var le,Ce;const Ie=this.option("parentEl")||document.body,Pe=d(this.localize(this.option("tpl.main")||""));Pe&&(Pe.setAttribute("id",`fancybox-${this.id}`),Pe.setAttribute("aria-label",this.localize("{{MODAL}}")),Pe.classList.toggle("is-compact",this.isCompact),oe(Pe,this.option("mainClass")||""),this.container=Pe,this.footer=Pe.querySelector(".fancybox__footer"),Ie.appendChild(Pe),oe(document.documentElement,"with-fancybox"),Ut&&hr||(Ut=document.createElement("span"),oe(Ut,"fancybox-focus-guard"),Ut.setAttribute("tabindex","0"),Ut.setAttribute("aria-hidden","true"),Ut.setAttribute("aria-label","Focus guard"),hr=Ut.cloneNode(),null===(le=Pe.parentElement)||void 0===le||le.insertBefore(Ut,Pe),null===(Ce=Pe.parentElement)||void 0===Ce||Ce.append(hr)),this.option("animated")&&(oe(Pe,"is-animated"),setTimeout(()=>{this.isClosing()||re(Pe,"is-animated")},350)),this.emit("initLayout"))}initCarousel(le){const Ce=this.container;if(!Ce)return;const Ie=Ce.querySelector(".fancybox__carousel");if(!Ie)return;const Pe=this.carousel=new At(Ie,H({},{slides:le,transition:"fade",Panzoom:{lockAxis:this.option("dragToClose")?"xy":"x",infinite:!!this.option("dragToClose")&&"y"},Dots:!1,Navigation:{classes:{container:"fancybox__nav",button:"f-button",isNext:"is-next",isPrev:"is-prev"}},initialPage:this.option("startIndex"),l10n:this.option("l10n")},this.option("Carousel")||{}));Pe.on("*",(Oe,Se,...Xe)=>{this.emit(`Carousel.${Se}`,Oe,...Xe)}),Pe.on(["ready","change"],()=>{var Oe;const Se=this.getSlide();Se&&(null===(Oe=Se.panzoom)||void 0===Oe||Oe.updateControls()),this.manageCaption(Se)}),Pe.on("removeSlide",(Oe,Se)=>{Se.closeBtnEl&&Se.closeBtnEl.remove(),Se.closeBtnEl=void 0,Se.captionEl&&Se.captionEl.remove(),Se.captionEl=void 0,Se.spinnerEl&&Se.spinnerEl.remove(),Se.spinnerEl=void 0,Se.state=void 0}),Pe.on("Panzoom.touchStart",()=>{this.isCompact||this.endIdle()}),Pe.on("settle",()=>{this.idleTimer||this.isCompact||!this.option("idle")||this.setIdle(),this.option("autoFocus")&&this.checkFocus()}),this.option("dragToClose")&&(Pe.on("Panzoom.afterTransform",(Oe,Se)=>{const Xe=this.getSlide();if(Xe&&h(Xe.el))return;const Ct=this.container;if(Ct){const zt=Math.abs(Se.current.f),kr=zt<1?"":Math.max(.5,Math.min(1,1-zt/Se.contentRect.fitHeight*1.5));Ct.style.setProperty("--fancybox-ts",kr?"0s":""),Ct.style.setProperty("--fancybox-opacity",kr+"")}}),Pe.on("Panzoom.touchEnd",(Oe,Se,Xe)=>{var Ct;const zt=this.getSlide();if(zt&&h(zt.el)||Se.isMobile&&document.activeElement&&-1!==["TEXTAREA","INPUT"].indexOf(null===(Ct=document.activeElement)||void 0===Ct?void 0:Ct.nodeName))return;const kr=Math.abs(Se.dragOffset.y);"y"===Se.lockedAxis&&(kr>=200||kr>=50&&Se.dragOffset.time<300)&&(Xe&&Xe.cancelable&&Xe.preventDefault(),this.close(Xe,"f-throwOut"+(Se.current.f<0?"Up":"Down")))})),Pe.on(["change"],Oe=>{var Se;let Xe=null===(Se=this.getSlide())||void 0===Se?void 0:Se.triggerEl;if(Xe){const Ct=new CustomEvent("slideTo",{bubbles:!0,cancelable:!0,detail:Oe.page});Xe.dispatchEvent(Ct)}}),Pe.on(["refresh","change"],Oe=>{const Se=this.container;if(!Se)return;for(const zt of Se.querySelectorAll("[data-fancybox-current-index]"))zt.innerHTML=Oe.page+1;for(const zt of Se.querySelectorAll("[data-fancybox-count]"))zt.innerHTML=Oe.pages.length;if(!Oe.isInfinite){for(const zt of Se.querySelectorAll("[data-fancybox-next]"))Oe.page<Oe.pages.length-1?(zt.removeAttribute("disabled"),zt.removeAttribute("tabindex")):(zt.setAttribute("disabled",""),zt.setAttribute("tabindex","-1"));for(const zt of Se.querySelectorAll("[data-fancybox-prev]"))Oe.page>0?(zt.removeAttribute("disabled"),zt.removeAttribute("tabindex")):(zt.setAttribute("disabled",""),zt.setAttribute("tabindex","-1"))}const Xe=this.getSlide();if(!Xe)return;let Ct=Xe.downloadSrc||"";Ct||"image"!==Xe.type||Xe.error||"string"!=typeof Xe.src||(Ct=Xe.src);for(const zt of Se.querySelectorAll("[data-fancybox-download]")){const kr=Xe.downloadFilename;Ct?(zt.removeAttribute("disabled"),zt.removeAttribute("tabindex"),zt.setAttribute("href",Ct),zt.setAttribute("download",kr||Ct),zt.setAttribute("target","_blank")):(zt.setAttribute("disabled",""),zt.setAttribute("tabindex","-1"),zt.removeAttribute("href"),zt.removeAttribute("download"))}}),this.emit("initCarousel")}attachEvents(){const le=this.container;le&&(le.addEventListener("click",this.onClick,{passive:!1,capture:!1}),le.addEventListener("wheel",this.onWheel,{passive:!1,capture:!1}),document.addEventListener("keydown",this.onKeydown,{passive:!1,capture:!0}),document.addEventListener("visibilitychange",this.onVisibilityChange,!1),document.addEventListener("mousemove",this.onMousemove),this.option("trapFocus")&&document.addEventListener("focus",this.onFocus,!0),window.addEventListener("resize",this.onResize))}detachEvents(){const le=this.container;le&&(document.removeEventListener("keydown",this.onKeydown,{passive:!1,capture:!0}),le.removeEventListener("wheel",this.onWheel,{passive:!1,capture:!1}),le.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),document.removeEventListener("mousemove",this.onMousemove),window.removeEventListener("resize",this.onResize),document.removeEventListener("visibilitychange",this.onVisibilityChange,!1),document.removeEventListener("focus",this.onFocus,!0))}onClick(le){var Ce,Ie;const{container:Pe,isCompact:Oe}=this;if(!Pe||this.isClosing())return;!Oe&&this.option("idle")&&this.resetIdle();const Se=document.activeElement;if(gt()&&Se&&Pe.contains(Se))return;const Xe=le.composedPath()[0];if(Xe===(null===(Ce=this.carousel)||void 0===Ce?void 0:Ce.container))return;if(Xe.closest(".f-spinner")||Xe.closest("[data-fancybox-close]"))return le.preventDefault(),void this.close(le);if(Xe.closest("[data-fancybox-prev]"))return le.preventDefault(),void this.prev();if(Xe.closest("[data-fancybox-next]"))return le.preventDefault(),void this.next();if(Oe&&"image"===(null===(Ie=this.getSlide())||void 0===Ie?void 0:Ie.type))return void(this.clickTimer?(clearTimeout(this.clickTimer),this.clickTimer=null):this.clickTimer=setTimeout(()=>{this.toggleIdle(),this.clickTimer=null},350));if(this.emit("click",le),le.defaultPrevented)return;let Ct=!1;if(Xe.closest(".fancybox__content")){if(Se){if(Se.closest("[contenteditable]"))return;Xe.matches(Lt)||Se.blur()}if(gt())return;Ct=this.option("contentClick")}else Xe.closest(".fancybox__carousel")&&!Xe.matches(Lt)&&(Ct=this.option("backdropClick"));"close"===Ct?(le.preventDefault(),this.close(le)):"next"===Ct?(le.preventDefault(),this.next()):"prev"===Ct&&(le.preventDefault(),this.prev())}onWheel(le){const Ce=this.option("wheel",le),Ie="slide"===Ce,Pe=[-le.deltaX||0,-le.deltaY||0,-le.detail||0].reduce(function(Xe,Ct){return Math.abs(Ct)>Math.abs(Xe)?Ct:Xe}),Oe=Math.max(-1,Math.min(1,Pe)),Se=Date.now();this.pwt&&Se-this.pwt<300?Ie&&le.preventDefault():(this.pwt=Se,this.emit("wheel",le),le.defaultPrevented||("close"===Ce?(le.preventDefault(),this.close(le)):"slide"===Ce&&(le.preventDefault(),this[Oe>0?"prev":"next"]())))}onKeydown(le){if(!this.isTopmost())return;this.isCompact||!this.option("idle")||this.isClosing()||this.resetIdle();const Ce=le.key,Ie=this.option("keyboard");if(!Ie||le.ctrlKey||le.altKey||le.shiftKey)return;const Pe=le.composedPath()[0],Oe=document.activeElement&&document.activeElement.classList,Se=Oe&&Oe.contains("f-button")||Pe.dataset.carouselPage||Pe.dataset.carouselIndex;if("Escape"!==Ce&&!Se&&K(Pe)&&(Pe.isContentEditable||-1!==["TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].indexOf(Pe.nodeName)))return;this.emit("keydown",Ce,le);const Xe=Ie[Ce];"function"==typeof this[Xe]&&(le.preventDefault(),this[Xe]())}onResize(){const le=this.container;le&&(le.classList.toggle("is-compact",this.isCompact),this.manageCaption(this.getSlide()),this.isCompact?this.clearIdle():this.endIdle(),this.emit("resize"))}onFocus(le){this.isTopmost()&&this.checkFocus(le)}onMousemove(le){this.prevMouseMoveEvent=le,!this.isCompact&&this.option("idle")&&this.resetIdle()}onVisibilityChange(){"visible"===document.visibilityState?this.checkFocus():this.endIdle()}manageCloseBtn(le){const Ce=this.optionFor(le,"closeButton")||!1;if("auto"===Ce){const Pe=this.plugins.Toolbar;if(Pe&&Pe.state===Re.Ready)return}if(!Ce||!le.contentEl||le.closeBtnEl)return;const Ie=this.option("tpl.closeButton");if(Ie){const Pe=d(this.localize(Ie));le.closeBtnEl=le.contentEl.appendChild(Pe),le.el&&oe(le.el,"has-close-btn")}}manageCaption(le){var Ce,Ie;const Pe="fancybox__caption",Oe="has-caption",Se=this.container;if(!Se)return;const Xe=this.isCompact||this.option("commonCaption"),Ct=!Xe;if(this.caption&&this.stop(this.caption),Ct&&this.caption&&(this.caption.remove(),this.caption=null),Xe&&!this.caption)for(const xt of(null===(Ce=this.carousel)||void 0===Ce?void 0:Ce.slides)||[])xt.captionEl&&(xt.captionEl.remove(),xt.captionEl=void 0,re(xt.el,Oe),null===(Ie=xt.el)||void 0===Ie||Ie.removeAttribute("aria-labelledby"));if(le||(le=this.getSlide()),!le||Xe&&!this.isCurrentSlide(le))return;const zt=le.el;let kr=this.optionFor(le,"caption","");if("string"!=typeof kr||!kr.length)return void(Xe&&this.caption&&this.animate(this.caption,"f-fadeOut",()=>{var xt;null===(xt=this.caption)||void 0===xt||xt.remove(),this.caption=null}));let Br=null;if(Ct){if(Br=le.captionEl||null,zt&&!Br){const xt=`fancybox__caption_${this.id}_${le.index}`;Br=document.createElement("div"),oe(Br,Pe),Br.setAttribute("id",xt),le.captionEl=zt.appendChild(Br),oe(zt,Oe),zt.setAttribute("aria-labelledby",xt)}}else Br=this.caption,Br||(Br=Se.querySelector("."+Pe)),!Br&&(Br=document.createElement("div"),Br.dataset.fancyboxCaption="",oe(Br,Pe),Br.innerHTML=kr,(this.footer||Se).prepend(Br)),oe(Se,Oe),this.caption=Br;Br&&(Br.innerHTML=kr)}checkFocus(le){var Ce;const Ie=document.activeElement||null;Ie&&(null===(Ce=this.container)||void 0===Ce?void 0:Ce.contains(Ie))||this.focus(le)}focus(le){var Ce;if(this.ignoreFocusChange)return;const Ie=document.activeElement||null,Pe=(null==le?void 0:le.target)||null,Oe=this.container,Se=this.getSlide();if(!Oe||!(null===(Ce=this.carousel)||void 0===Ce?void 0:Ce.viewport)||!le&&Ie&&Oe.contains(Ie))return;const Xe=Se&&Se.state===Te.Ready?Se.el:null;if(!Xe||Xe.contains(Ie)||Oe===Ie)return;le&&le.cancelable&&le.preventDefault(),this.ignoreFocusChange=!0;const Ct=Array.from(Oe.querySelectorAll(Lt));let zt=[],kr=null;for(let xt of Ct){const tr=!xt.offsetParent||xt.closest('[aria-hidden="true"]'),Rr=Xe&&Xe.contains(xt),Ur=!this.carousel.viewport.contains(xt);xt===Oe||(Rr||Ur)&&!tr?(zt.push(xt),void 0!==xt.dataset.origTabindex&&(xt.tabIndex=parseFloat(xt.dataset.origTabindex)),xt.removeAttribute("data-orig-tabindex"),!xt.hasAttribute("autoFocus")&&kr||(kr=xt)):(xt.dataset.origTabindex=void 0===xt.dataset.origTabindex?xt.getAttribute("tabindex")||void 0:xt.dataset.origTabindex,xt.tabIndex=-1)}let Br=null;le?(!Pe||zt.indexOf(Pe)<0)&&(Br=kr||Oe,zt.length&&(Ie===hr?Br=zt[0]:this.lastFocus!==Oe&&Ie!==Ut||(Br=zt[zt.length-1]))):Br=Se&&"image"===Se.type?Oe:kr||Oe,Br&&_e(Br),this.lastFocus=document.activeElement,this.ignoreFocusChange=!1}next(){const le=this.carousel;le&&le.pages.length>1&&le.slideNext()}prev(){const le=this.carousel;le&&le.pages.length>1&&le.slidePrev()}jumpTo(...le){this.carousel&&this.carousel.slideTo(...le)}isTopmost(){var le;return(null===(le=Pt.getInstance())||void 0===le?void 0:le.id)==this.id}animate(le=null,Ce="",Ie){if(!le||!Ce)return void(Ie&&Ie());this.stop(le);const Pe=Oe=>{Oe.target===le&&le.dataset.animationName&&(le.removeEventListener("animationend",Pe),delete le.dataset.animationName,Ie&&Ie(),re(le,Ce))};le.dataset.animationName=Ce,le.addEventListener("animationend",Pe),oe(le,Ce)}stop(le){le&&le.dispatchEvent(new CustomEvent("animationend",{bubbles:!1,cancelable:!0,currentTarget:le}))}setContent(le,Ce="",Ie=!0){if(this.isClosing())return;const Pe=le.el;if(!Pe)return;let Oe=null;if(K(Ce)?Oe=Ce:(Oe=d(Ce+""),K(Oe)||(Oe=document.createElement("div"),Oe.innerHTML=Ce+"")),["img","picture","iframe","video","audio"].includes(Oe.nodeName.toLowerCase())){const Se=document.createElement("div");Se.appendChild(Oe),Oe=Se}K(Oe)&&le.filter&&!le.error&&(Oe=Oe.querySelector(le.filter)),Oe&&K(Oe)?(oe(Oe,"fancybox__content"),le.id&&Oe.setAttribute("id",le.id),"none"!==Oe.style.display&&"none"!==getComputedStyle(Oe).getPropertyValue("display")||(Oe.style.display=le.display||this.option("defaultDisplay")||"flex"),Pe.classList.add(`has-${le.error?"error":le.type||"unknown"}`),Pe.prepend(Oe),le.contentEl=Oe,Ie&&this.revealContent(le),this.manageCloseBtn(le),this.manageCaption(le)):this.setError(le,"{{ELEMENT_NOT_FOUND}}")}revealContent(le,Ce){const Pe=le.contentEl;le.el&&Pe&&(this.emit("reveal",le),this.hideLoading(le),le.state=Te.Opening,(Ce=this.isOpeningSlide(le)?void 0===Ce?this.optionFor(le,"showClass"):Ce:"f-fadeIn")?this.animate(Pe,Ce,()=>{this.done(le)}):this.done(le))}done(le){this.isClosing()||(le.state=Te.Ready,this.emit("done",le),oe(le.el,"is-done"),this.isCurrentSlide(le)&&this.option("autoFocus")&&queueMicrotask(()=>{this.option("autoFocus")&&(this.option("autoFocus")?this.focus():this.checkFocus())}),this.isOpeningSlide(le)&&!this.isCompact&&this.option("idle")&&this.setIdle())}isCurrentSlide(le){const Ce=this.getSlide();return!(!le||!Ce)&&Ce.index===le.index}isOpeningSlide(le){var Ce,Ie;return null===(null===(Ce=this.carousel)||void 0===Ce?void 0:Ce.prevPage)&&le.index===(null===(Ie=this.getSlide())||void 0===Ie?void 0:Ie.index)}showLoading(le){le.state=Te.Loading;const Ce=le.el;!Ce||(oe(Ce,"is-loading"),this.emit("loading",le),le.spinnerEl||setTimeout(()=>{if(!this.isClosing()&&!le.spinnerEl&&le.state===Te.Loading){let Ie=d(ie);le.spinnerEl=Ie,Ce.prepend(Ie),this.animate(Ie,"f-fadeIn")}},250))}hideLoading(le){const Ce=le.el;if(!Ce)return;const Ie=le.spinnerEl;this.isClosing()?null==Ie||Ie.remove():(re(Ce,"is-loading"),Ie&&this.animate(Ie,"f-fadeOut",()=>{Ie.remove()}),le.state===Te.Loading&&(this.emit("loaded",le),le.state=Te.Ready))}setError(le,Ce){if(this.isClosing())return;this.emit("error"),le.error=Ce,this.hideLoading(le),this.clearContent(le);const Ie=document.createElement("div");Ie.classList.add("fancybox-error"),Ie.innerHTML=this.localize(Ce||"<p>{{ERROR}}</p>"),this.setContent(le,Ie)}clearContent(le){var Ce;null===(Ce=this.carousel)||void 0===Ce||Ce.emit("removeSlide",le),le.contentEl&&(le.contentEl.remove(),le.contentEl=void 0),le.closeBtnEl&&(le.closeBtnEl.remove(),le.closeBtnEl=void 0);const Ie=le.el;Ie&&(re(Ie,"is-loading"),re(Ie,"has-error"),re(Ie,"has-unknown"),re(Ie,`has-${le.type||"unknown"}`))}getSlide(){var le;const Ce=this.carousel;return(null===(le=null==Ce?void 0:Ce.pages[null==Ce?void 0:Ce.page])||void 0===le?void 0:le.slides[0])||void 0}close(le,Ce){if(this.isClosing())return;const Ie=new Event("shouldClose",{bubbles:!0,cancelable:!0});if(this.emit("shouldClose",Ie,le),Ie.defaultPrevented)return;le&&le.cancelable&&(le.preventDefault(),le.stopPropagation());const Pe=this.fsAPI,Oe=()=>{this.proceedClose(le,Ce)};Pe&&Pe.isFullscreen()?Promise.resolve(Pe.exit()).then(()=>Oe()):Oe()}clearIdle(){this.idleTimer&&clearTimeout(this.idleTimer),this.idleTimer=null}setIdle(le=!1){const Ce=()=>{this.clearIdle(),this.idle=!0,oe(this.container,"is-idle"),this.emit("setIdle")};if(this.clearIdle(),!this.isClosing())if(le)Ce();else{const Ie=this.option("idle");Ie&&(this.idleTimer=setTimeout(Ce,Ie))}}endIdle(){this.clearIdle(),this.idle&&!this.isClosing()&&(this.idle=!1,re(this.container,"is-idle"),this.emit("endIdle"))}resetIdle(){this.endIdle(),this.setIdle()}toggleIdle(){this.idle?this.endIdle():this.setIdle(!0)}toggleFullscreen(){const le=this.fsAPI;le&&(le.isFullscreen()?le.exit():this.container&&le.request(this.container))}isClosing(){return[be.Closing,be.CustomClosing,be.Destroy].includes(this.state)}proceedClose(le,Ce){var Ie;this.state=be.Closing,this.clearIdle(),this.detachEvents();const Pe=this.container,Oe=this.carousel,Se=this.getSlide(),Xe=Se&&this.option("placeFocusBack")?Se.triggerEl||this.option("trigger"):null;if(Xe&&(Ze(Xe)?_e(Xe):Xe.focus()),Pe&&(oe(Pe,"is-closing"),Pe.setAttribute("aria-hidden","true"),this.option("animated")&&oe(Pe,"is-animated"),Pe.style.pointerEvents="none"),Oe){Oe.clearTransitions(),null===(Ie=Oe.panzoom)||void 0===Ie||Ie.destroy();for(const Ct of Oe.slides){Ct.state=Te.Closing,this.hideLoading(Ct);const zt=Ct.contentEl;zt&&this.stop(zt);const kr=null==Ct?void 0:Ct.panzoom;kr&&(kr.stop(),kr.detachEvents(),kr.detachObserver()),this.isCurrentSlide(Ct)||Oe.emit("removeSlide",Ct)}}this.emit("close",le),this.state!==be.CustomClosing?(void 0===Ce&&Se&&(Ce=this.optionFor(Se,"hideClass")),Ce&&Se?(this.animate(Se.contentEl,Ce,()=>{Oe&&Oe.emit("removeSlide",Se)}),setTimeout(()=>{this.destroy()},500)):this.destroy()):setTimeout(()=>{this.destroy()},500)}destroy(){var le;if(this.state===be.Destroy)return;this.state=be.Destroy,null===(le=this.carousel)||void 0===le||le.destroy();const Ce=this.container;Ce&&Ce.remove(),Cr.delete(this.id);const Ie=Pt.getInstance();Ie?Ie.focus():(Ut&&(Ut.remove(),Ut=null),hr&&(hr.remove(),hr=null),re(document.documentElement,"with-fancybox"),(()=>{if(!at)return;const Pe=document,Oe=Pe.body;Oe.classList.remove("hide-scrollbar"),Oe.style.setProperty("--fancybox-body-margin",""),Pe.documentElement.style.setProperty("--fancybox-scrollbar-compensate","")})(),this.emit("destroy"))}static bind(le,Ce,Ie){if(!at)return;let Pe,Oe="",Se={};if(void 0===le?Pe=document.body:"string"==typeof le?(Pe=document.body,Oe=le,"object"==typeof Ce&&(Se=Ce||{})):(Pe=le,"string"==typeof Ce&&(Oe=Ce),"object"==typeof Ie&&(Se=Ie||{})),!Pe||!K(Pe))return;Oe=Oe||"[data-fancybox]";const Xe=Pt.openers.get(Pe)||new Map;Xe.set(Oe,Se),Pt.openers.set(Pe,Xe),1===Xe.size&&Pe.addEventListener("click",Pt.fromEvent)}static unbind(le,Ce){let Ie,Pe="";if("string"==typeof le?(Ie=document.body,Pe=le):(Ie=le,"string"==typeof Ce&&(Pe=Ce)),!Ie)return;const Oe=Pt.openers.get(Ie);Oe&&Pe&&Oe.delete(Pe),Pe&&Oe||(Pt.openers.delete(Ie),Ie.removeEventListener("click",Pt.fromEvent))}static destroy(){let le;for(;le=Pt.getInstance();)le.destroy();for(const Ce of Pt.openers.keys())Ce.removeEventListener("click",Pt.fromEvent);Pt.openers=new Map}static fromEvent(le){if(le.defaultPrevented||le.button&&0!==le.button||le.ctrlKey||le.metaKey||le.shiftKey)return;let Ce=le.composedPath()[0];const Ie=Ce.closest("[data-fancybox-trigger]");if(Ie){const Ur=document.querySelectorAll(`[data-fancybox="${Ie.dataset.fancyboxTrigger||""}"]`),Nr=parseInt(Ie.dataset.fancyboxIndex||"",10)||0;Ce=Ur[Nr]||Ce}if(!(Ce&&Ce instanceof Element))return;let Pe,Oe,Se,Xe;if([...Pt.openers].reverse().find(([Rr,Ur])=>!(!Rr.contains(Ce)||![...Ur].reverse().find(([Nr,zr])=>{let hn=Ce.closest(Nr);return!!hn&&(Pe=Rr,Oe=Nr,Se=hn,Xe=zr,!0)}))),!Pe||!Oe||!Se)return;Xe=Xe||{},le.preventDefault(),Ce=Se;let Ct=[],zt=H({},ne,Xe);zt.event=le,zt.trigger=Ce,zt.delegate=Ie;const kr=zt.groupAll,Br=zt.groupAttr,xt=Br&&Ce?Ce.getAttribute(`${Br}`):"";if((!Ce||xt||kr)&&(Ct=[].slice.call(Pe.querySelectorAll(Oe))),Ce&&!kr&&(Ct=xt?Ct.filter(Rr=>Rr.getAttribute(`${Br}`)===xt):[Ce]),!Ct.length)return;const tr=Pt.getInstance();return tr&&tr.options.trigger&&Ct.indexOf(tr.options.trigger)>-1?void 0:(Ce&&(zt.startIndex=Ct.indexOf(Ce)),Pt.fromNodes(Ct,zt))}static fromSelector(le,Ce){let Ie=null,Pe="";if("string"==typeof le?(Ie=document.body,Pe=le):le instanceof HTMLElement&&"string"==typeof Ce&&(Ie=le,Pe=Ce),!Ie||!Pe)return!1;const Oe=Pt.openers.get(Ie);if(!Oe)return!1;const Se=Oe.get(Pe);return!!Se&&Pt.fromNodes(Array.from(Ie.querySelectorAll(Pe)),Se)}static fromNodes(le,Ce){Ce=H({},ne,Ce||{});const Ie=[];for(const Pe of le){const Oe=Pe.dataset||{},Se=Oe.src||Pe.getAttribute("href")||Pe.getAttribute("currentSrc")||Pe.getAttribute("src")||void 0;let Xe;const Ct=Ce.delegate;let zt;Ct&&Ie.length===Ce.startIndex&&(Xe=Ct instanceof HTMLImageElement?Ct:Ct.querySelector("img:not([aria-hidden])")),Xe||(Xe=Pe instanceof HTMLImageElement?Pe:Pe.querySelector("img:not([aria-hidden])")),Xe&&(zt=Xe.currentSrc||Xe.src||void 0,!zt&&Xe.dataset&&(zt=Xe.dataset.lazySrc||Xe.dataset.src||void 0));const kr={src:Se,triggerEl:Pe,thumbEl:Xe,thumbElSrc:zt,thumbSrc:zt};for(const Br in Oe)"fancybox"!==Br&&(kr[Br]=Oe[Br]+"");Ie.push(kr)}return new Pt(Ie,Ce)}static getInstance(le){return le?Cr.get(le):Array.from(Cr.values()).reverse().find(Ce=>!Ce.isClosing()&&Ce)||null}static getSlide(){var le;return(null===(le=Pt.getInstance())||void 0===le?void 0:le.getSlide())||null}static show(le=[],Ce={}){return new Pt(le,Ce)}static next(){const le=Pt.getInstance();le&&le.next()}static prev(){const le=Pt.getInstance();le&&le.prev()}static close(le=!0,...Ce){if(le)for(const Ie of Cr.values())Ie.close(...Ce);else{const Ie=Pt.getInstance();Ie&&Ie.close(...Ce)}}}Object.defineProperty(Pt,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.16"}),Object.defineProperty(Pt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:ne}),Object.defineProperty(Pt,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:wt}),Object.defineProperty(Pt,"openers",{enumerable:!0,configurable:!0,writable:!0,value:new Map});var He=n(591),tt=n(8929),Ke=n(56498),kt=n(2994),xe=n(27221),Fe=n(59973),lt=n(17563),St=n(8479),qe=n(40345),ke=n(39723),ct=n(32209),vt=n(11481),$t=n(75558),Vr=n(11213),Sr=n(4002),Ar=n(841),Jr=n(90534);let Fr=(()=>{class Gt{constructor(Ce,Ie,Pe,Oe,Se,Xe,Ct,zt){this.browserStorageService=Ce,this.sanitizer=Ie,this.authService=Pe,this.routingAppService=Oe,this.oauthService=Se,this.securePipe=Xe,this.toastrService=Ct,this.http=zt,this.refreshingToken=new He.X(null),this.refreshTokenInProgress=!1,this.tokenRefreshedSource=new tt.xQ,this.tokenRefreshed$=this.tokenRefreshedSource.asObservable(),this.isRetryCount$=new He.X(null),this.isEndedFinancialStatusRetryCount=!0}getToken(){return this.authService.getToken()}saveToken(Ce){this.authService.saveToken(Ce)}getActionUrl(){return this.authService.getActionUrl()}setActionUrl(Ce){this.authService.setActionUrl(Ce)}removeActionUrl(){this.authService.removeActionUrl()}refreshTokenFromInterceptor(){return this.refreshingToken.next(!0),this.refreshTokenInProgress?new Ke.y(Ce=>{this.tokenRefreshed$.subscribe(()=>{Ce.next(),Ce.complete()})}):(this.refreshTokenInProgress=!0,this.authService.refreshToken().pipe((0,kt.b)(Ce=>{Ce.actionUrl?.url&&(0,qe.Jj)()?(this.refreshTokenInProgress=!1,this.tokenRefreshedSource.next(),this.refreshingToken.next(!1),(0,qe.Jj)()&&((0,qe.Jj)().location.href=Ce.actionUrl.url)):(this.authService.saveToken(Ce.token.accessToken),this.browserStorageService.setLocalItem(ke.B.keyId,Ce.token.keyId),this.setCookie("currentUser.token.keyId",Ce.token.keyId,.02),this.refreshTokenInProgress=!1,this.tokenRefreshedSource.next(),this.refreshingToken.next(!1))}),(0,xe.K)(()=>{this.refreshingToken.next(!1),this.refreshTokenInProgress=!1})))}refreshToken(){this.refreshTokenInProgress||(this.refreshTokenInProgress=!0,this.authService.refreshToken().subscribe(Ce=>{Ce.actionUrl?.url&&(0,qe.Jj)()?(0,qe.Jj)().location.href=Ce.actionUrl.url:(this.authService.saveToken(Ce.token.accessToken),this.refreshTokenInProgress=!1,this.refreshingToken.next(!1),this.browserStorageService.setLocalItem(ke.B.keyId,Ce.token.keyId),this.setCookie("currentUser.token.keyId",Ce.token.keyId,.02))},Ce=>{408===Ce.status&&(this.refreshTokenInProgress=!1,setTimeout(()=>{this.refreshToken()},5e3))}))}setCookie(Ce,Ie,Pe){const Oe=new Date;Oe.setTime(Oe.getTime()+24*Pe*60*60*1e3);const Se="expires="+Oe.toUTCString();document.cookie=Ce+"="+Ie+";"+Se+";path=/"}getCookie(Ce){const Ie=Ce+"=",Pe=document.cookie.split(";");for(let Oe=0;Oe<Pe.length;Oe++){let Se=Pe[Oe];for(;" "===Se.charAt(0);)Se=Se.substring(1);if(0===Se.indexOf(Ie))return Se.substring(Ie.length,Se.length)}return""}getImageFromPodSpaceByType(Ce,Ie=0,Pe="SMALL",Oe=!0){try{if(Ce&&"string"!==Ce){if(Ce?.includes("http")||Ce?.includes("assets/")){if(!Ce?.includes(St.H7.podSpaceFileServer))return Ce;{let Se=new RegExp("[?&]hash(=([^&#]*)|&|#|$)").exec(Ce);Se&&Se[2]?Ce=Se[2]:(Se=new RegExp("(files/|images/)([^?&#]*)").exec(Ce),Se&&Se[2]&&(Ce=Se[2]))}}switch(Ie){case 4:return`${St.H7.podSpaceFileServer}/api/images/${Ce}?size=${Pe}&checkUserGroupAccess=${!Oe}`;case 3:return`${St.H7.podSpaceFileServer}/api/files/${Ce}/thumbnail?checkUserGroupAccess=${!Oe}`;case 2:return`${St.H7.podSpaceFileServer}/api/files/${Ce}?checkUserGroupAccess=${!Oe}`;case 1:return this.getImageFromPodSpaceByHashId(Ce,Oe);default:return this.getImageFromPodSpaceByHashId(Ce)}}return""}catch{return""}}getImageFromPodSpaceByHashId(Ce,Ie=!1){try{if(Ce&&"string"!==Ce){if(Ce?.includes("http")||Ce?.includes("assets/")){if(Ce?.includes(St.H7.podSpaceFileServer)&&!Ie){const Pe=new RegExp("[?&]hash(=([^&#]*)|&|#|$)").exec(Ce);Pe&&Pe[2]&&(Ce=this.getImageFromPodSpaceByHashId(Pe[2]))}return Ce}return St.H7.podSpaceFileServer+"/nzh/drive/downloadFile/?hash="+Ce+(Ie?"":"&_token_issuer_=1&_token_="+this.browserStorageService.getLocalItem(ke.B.accessToken))}return""}catch{return""}}resumableFileUpload(Ce,Ie){return new Ke.y(Pe=>{const Oe=St.H7.podSpaceFileServer+"/api/files/resumable_upload",Se=new lt.gq(Ce,{endpoint:Oe,retryDelays:[0,3e3,5e3,1e4,2e4],chunkSize:1048576,removeFingerprintOnSuccess:!0,headers:{Authorization:"Bearer "+this.getToken()},metadata:{fileFullName:Ie,folderHash:"ROOT",isPublic:"false",postProcess:"true",unimportant:"false"},onError:Xe=>{Pe.next({status:"UPLOAD_ERROR",progress:"0"}),Pe.error(Xe),this.toastrService.error("\u062e\u0637\u0627\u06cc\u06cc \u062f\u0631 \u0627\u0631\u0633\u0627\u0644 \u0641\u0627\u06cc\u0644 \u0631\u062e \u062f\u0627\u062f.")},onProgress:(Xe,Ct)=>{Pe.next({status:"UPLOADING",progress:(Xe/Ct*100).toFixed()})},onSuccess:()=>{this.http.get(St.H7.podSpaceFileServer+"/api/files/uploaded_file_info/"+Se.url.replace(Oe+"/","")).pipe((0,Fe.X)(10)).subscribe(Xe=>{Xe.result&&(Pe.next({status:"UPLOAD_SUCCESS",progress:"100"}),Pe.complete())})}});Se.start()})}deleteCookie(Ce){const Ie=new Date;Ie.setTime(Ie.getTime());const Pe="expires="+Ie.toUTCString();document.cookie=Ce+"=;"+Pe+";path=/"}levelChecker(){return new Promise(Ce=>{"finish-authorization"===(0,qe.Jj)()?.location?.pathname.split("/")[1]||"finish-reset-password"===(0,qe.Jj)()?.location?.pathname.split("/")[1]||"payment-finish-authorization"===(0,qe.Jj)()?.location?.pathname.split("/")[1]?Ce(!0):this.getUserFinancialStatusRes?Ce(this.getUserFinancialStatusRes):(this.isEndedFinancialStatusRetryCount=!1,this.oauthService.getUserFinancialStatus().subscribe(Ie=>{this.getUserFinancialStatusRes=Ie,this.isEndedFinancialStatusRetryCount=!0,this.isRetryCount$.next(!1),Ce(Ie)},()=>{this.isEndedFinancialStatusRetryCount=!1,this.isRetryCount$.next(!0),this.routingAppService.navigate(["guest/problem"],{skipLocationChange:!0})}))})}mustOpenAccount(){(0,qe.Jj)()&&this.routingAppService.navigate(["profile/intro"])}getQueryParamsFromURL(Ce){Ce=Ce.replace(/https?:\/\/[^\/]+\//i,"");const Ie=new t.LE({fromString:Ce.split("?")[1]}),Pe={};return Ie.keys().forEach(Oe=>{Pe[Oe]=Ie.get(Oe)}),[Ce.split("?")[0],Pe]}openImageViewer(Ce,Ie=[]){const Pe=()=>{Oe.container?.querySelectorAll(".fancybox__toolbar button:not([data-fancybox-close])").forEach(Se=>{Se?.classList.remove("display-none")})},Oe=Pt.show([{src:Ce}],{Images:{Panzoom:{click:!1,dblClick:"toggleMax",minScale:.25,maxScale:4}},Toolbar:{display:{right:["zoomIn","zoomOut","rotateCW","toggleFS","download","close"].filter(Se=>!Ie.includes(Se)),left:[],middle:[]}},on:{ready:()=>{Oe.carousel?.container?.addEventListener("contextmenu",Se=>{Se.preventDefault()})},loading:()=>{Oe.container?.querySelectorAll(".fancybox__toolbar button:not([data-fancybox-close])").forEach(Se=>{Se?.classList.add("display-none")})},loaded:()=>{Pe()}}});Oe.setError=Se=>{const Xe=Se.contentEl.querySelector(".fancybox-image");Xe.src=Ce;let Ct=1;Xe.onerror=()=>{++Ct<4?Xe.src=Ce:(Se.el.classList.remove("is-loading","has-image"),Se.el.classList.add("is-done","has-error"),Se.el.insertAdjacentHTML("beforeend",'<div class="refresh-box"><img src="/assets/images/card/active-cyber-card/refresh.svg" alt="" /><p>\u0645\u062c\u062f\u062f\u0627 \u062a\u0644\u0627\u0634 \u06a9\u0646\u06cc\u062f</p></div>'),Se.el.querySelector(".refresh-box").onclick=()=>{Oe.setError(Se,""),Se.el.classList.add("is-loading","has-image"),Se.el.classList.remove("is-done","has-error"),Se.el.querySelector(".refresh-box").remove()})},Xe.onload=()=>{Se.el.classList.remove("is-loading"),Se.el.classList.add("is-draggable","is-done"),Se.el.querySelector(".f-spinner").remove(),Pe()}}}openGalleryImageViewer(Ce,Ie=[]){const Pe=()=>{Oe.container?.querySelectorAll(".fancybox__toolbar button:not([data-fancybox-close])").forEach(Se=>{Se?.classList.remove("display-none")})},Oe=Pt.show(Ce,{Images:{Panzoom:{click:!1,dblClick:"toggleMax",minScale:.25,maxScale:4}},Toolbar:{display:{right:["zoomIn","zoomOut","rotateCW","toggleFS","download","close"].filter(Se=>!Ie.includes(Se)),left:[],middle:[]}},on:{ready:()=>{Oe.carousel?.container?.addEventListener("contextmenu",Se=>{Se.preventDefault()})},loading:()=>{Oe.container?.querySelectorAll(".fancybox__toolbar button:not([data-fancybox-close])").forEach(Se=>{Se?.classList.add("display-none")})},loaded:()=>{Pe()},"Carousel.settle":(Se,Xe)=>{Xe.slides[Xe.page]?.panzoom?.zoomToFit()}}});Ce.forEach(Se=>{Se.imageType?.startsWith("image")||(Se.fileType=this.getFileIconName(Se.imageType)),Oe.setError=Xe=>{const Ct=Xe.contentEl.querySelector(".fancybox-image");Ct.src=Xe.srcThumbnail,Xe.thumbSlideEl&&(Xe.thumbSlideEl.querySelector(".f-thumbs__slide__img").src=Xe.srcThumbnail),Ct.onerror=()=>{Xe.el.classList.add("removeUnloadSrc"),Xe.el.classList.add("has-file"),Xe.el.classList.add("has-image"),Se.getSrcUrl?Xe.el.insertAdjacentHTML("beforeend",`<div class="icon-file-wrapper"> <svg> <use xlink:href="assets/images/chat/file-icon/${Se.uploadedFileType}-file-icon.svg#img"></use>   </svg></div>`):Xe.fileType&&!Se.getSrcUrl?Xe.el.insertAdjacentHTML("beforeend",`<div class="icon-file-wrapper"> <svg> <use xlink:href="assets/images/chat/file-icon/${Xe.fileType}-file-icon.svg#img"></use>   </svg></div>`):Se.getSrcUrl||(Xe.el.classList.remove("is-loading","has-image"),Xe.el.classList.add("is-done","has-error"),Xe.el.insertAdjacentHTML("beforeend",'<div class="refresh-box"><img src="/assets/images/card/active-cyber-card/refresh.svg" alt="" /><p>\u0645\u062c\u062f\u062f\u0627 \u062a\u0644\u0627\u0634 \u06a9\u0646\u06cc\u062f</p></div>'))},Ct.onload=()=>{Xe.el.classList.add("has-file"),Xe.el.classList.remove("is-loading"),Xe.el.classList.add("is-draggable","is-done"),Xe.el.classList.remove("f-spinner"),Pe()}}})}openVideoPlayer(Ce,Ie,Pe){Pt.show([{src:Ce,caption:Ie,downloadFilename:Pe}],{closeButton:!1,Html:{videoAutoplay:!1,videoTpl:'<video class="fancybox__html5video" playsinline controls poster="{{poster}}">\n  <source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos.</video>'}})}openAudioPlayer(Ce,Ie,Pe){Pt.show([{class:"fancybox__audio",src:Ce,caption:Ie,downloadFilename:Pe}],{closeButton:!1,Html:{videoAutoplay:!0,videoTpl:'<audio class="fancybox__html5video" playsinline controls poster="{{poster}}">\n  <source src="{{src}}" type="audio/ogg" />Sorry, your browser doesn\'t support embedded videos.</audio>'}})}openPDFViewer(Ce){const Ie=Pt.show([{src:"/assets/images/chat/loading-circle-dark-gray.svg",width:1,height:1}],{Toolbar:{display:{right:["fullscreen","close"],left:[],middle:[]}},on:{ready:()=>{this.securePipe.transform(Ce).subscribe(Pe=>{4===Pe.type&&(Ie.carousel.removeSlide(0),Ie.carousel.appendSlide({src:this.sanitizer.sanitize(e.q3G.URL,this.sanitizer.bypassSecurityTrustUrl(URL.createObjectURL(Pe.body))),type:"iframe"}))})},loaded:()=>{"image"!==Ie.carousel.slides[0].type?(Ie.carousel.slides[0].contentEl.style.minHeight="100%",Ie.carousel.slides[0].contentEl.style.minWidth="100%"):Ie.carousel.slides[0].el.innerHTML='<div class="f-spinner"><svg viewBox="0 0 50 50"><circle cx="25" cy="25" r="20"></circle><circle cx="25" cy="25" r="20"></circle></svg></div>'}}})}getFileIconName(Ce){if(Ce){if(Ce.indexOf("image")>=0)return"image";if(Ce.indexOf("video")>=0)return"video";if(Ce.indexOf("zip")>=0)return"archive";if(Ce.indexOf("pdf")>=0)return"pdf";if(Ce.indexOf("msword")>=0||Ce.indexOf("wordprocessingml")>=0)return"word";if(Ce.indexOf("audio")>=0)return"music";if(Ce.indexOf("text")>=0)return"text";if(Ce.indexOf("spreadsheetml")>=0)return"excel"}return"blank"}}return Gt.\u0275fac=function(Ce){return new(Ce||Gt)(e.LFG(ct.z),e.LFG(vt.H7),e.LFG($t.e),e.LFG(Vr.s),e.LFG(Sr.C),e.LFG(Ar.E),e.LFG(Jr._W),e.LFG(t.eN))},Gt.\u0275prov=e.Yz7({token:Gt,factory:Gt.\u0275fac,providedIn:"root"}),Gt})()},41399:(M,b,n)=>{"use strict";n.d(b,{G:()=>l});var t=n(40345),e=n(94650);let l=(()=>{class h{detectBrowser(){let d,y,g;return d=(0,t.Jj)()?.navigator.userAgent,g=d.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[],/trident/i.test(g[1])?(y=/\brv[ :]+(\d+)/g.exec(d)||[],{name:"IE",version:y[1]||""}):"Chrome"===g[1]&&(y=d.match(/\bOPR|Edge\/(\d+)/),null!=y)?{name:"Opera",version:y[1]}:(g=g[2]?[g[1],g[2]]:[(0,t.Jj)()?.navigator.appName,(0,t.Jj)()?.navigator.appVersion,"-?"],y=d.match(/version\/(\d+)/i),null!=y&&g.splice(1,1,y[1]),{name:g[0],version:g[1]})}detectOS(){const d=(0,t.Jj)()?.navigator.userAgent,y=(0,t.Jj)()?.navigator.platform;let C="Unknown";return-1!==["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(y)?C="Mac OS":-1!==["iPhone","iPad","iPod"].indexOf(y)?C="iOS":-1!==["Win32","Win64","Windows","WinCE"].indexOf(y)?(C="Windows",(0,t.Jj)()?.navigator.userAgent&&-1!==(0,t.Jj)()?.navigator.userAgent.indexOf("Windows NT 10.0")&&(C="Windows 10"),(0,t.Jj)()?.navigator.userAgent&&-1!==(0,t.Jj)()?.navigator.userAgent.indexOf("Windows NT 6.3")&&(C="Windows 8.1"),(0,t.Jj)()?.navigator.userAgent&&-1!==(0,t.Jj)()?.navigator.userAgent.indexOf("Windows NT 6.2")&&(C="Windows 8"),(0,t.Jj)()?.navigator.userAgent&&-1!==(0,t.Jj)()?.navigator.userAgent.indexOf("Windows NT 6.1")&&(C="Windows 7"),(0,t.Jj)()?.navigator.userAgent&&-1!==(0,t.Jj)()?.navigator.userAgent.indexOf("Windows NT 6.0")&&(C="Windows Vista"),(0,t.Jj)()?.navigator.userAgent&&-1!==(0,t.Jj)()?.navigator.userAgent.indexOf("Windows NT 5.1")&&(C="Windows XP"),(0,t.Jj)()?.navigator.userAgent&&-1!==(0,t.Jj)()?.navigator.userAgent.indexOf("Windows NT 5.0")&&(C="Windows 2000")):/Android/.test(d)?C="Android":!C&&/Linux/.test(y)&&(C="Linux"),C}}return h.\u0275fac=function(d){return new(d||h)},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac}),h})()},10617:(M,b,n)=>{"use strict";n.d(b,{j:()=>e});var t=n(94650);let e=(()=>{class l{map(r,d){return r.map(y=>y[d])}flatMap(r,d){return Array.prototype.concat.apply([],d?this.map(r,d):r)}uniq(r){return r.filter((d,y)=>r.indexOf(d)===y)}}return l.\u0275fac=function(r){return new(r||l)},l.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac}),l})()},88469:(M,b,n)=>{"use strict";n.d(b,{i:()=>e});var t=n(94650);let e=(()=>{class l{genUUID(){return this.chr4()+this.chr4()+"-"+this.chr4()+"-"+this.chr4()+"-"+this.chr4()+"-"+this.chr4()+this.chr4()+this.chr4()}chr4(){return Math.random().toString(16).slice(-4)}}return l.\u0275fac=function(r){return new(r||l)},l.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac}),l})()},5846:(M,b,n)=>{"use strict";n.d(b,{$K:()=>g,HE:()=>d,go:()=>f,nW:()=>N,r_:()=>h,wk:()=>C});class h{}class d{}class g{}class f{}var C=(()=>{return(H=C||(C={}))[H.Bill=1]="Bill",H[H.Settelment=2]="Settelment",H[H.TransferToContact=3]="TransferToContact",H[H.Invoice=4]="Invoice",H[H.All=5]="All",H[H.TransferFromContact=6]="TransferFromContact",H[H.GiftCard=7]="GiftCard",H[H.CyberGiftCard=8]="CyberGiftCard",C;var H})(),N=(()=>{return(H=N||(N={})).Card="SETTLEMENT_TOOL_CARD",H.CardCMS="SETTLEMENT_TOOL_CMS_CARD",H.Paya="SETTLEMENT_TOOL_PAYA",H.Satna="SETTLEMENT_TOOL_SATNA",H.Deposit="SETTLEMENT_TOOL_DEPOSIT",N;var H})()},66463:(M,b,n)=>{"use strict";n.d(b,{uQ:()=>h});class h{}},70634:(M,b,n)=>{"use strict";n.d(b,{xP:()=>t});class t{constructor(){this.typeCode=3}}},60504:(M,b,n)=>{"use strict";n.d(b,{Cq:()=>r,dv:()=>e,xQ:()=>l,yx:()=>h});class e{}var l=(()=>{return(a=l||(l={})).source="1",a.destination="2",a.both="3",l;var a})();class h{}class r{}},91021:(M,b,n)=>{"use strict";n.d(b,{GK:()=>g,RR:()=>h,t9:()=>r});var h=(()=>{return(N=h||(h={}))[N.Unspecified=0]="Unspecified",N[N.Printed=1]="Printed",N[N.WaitingForPrint=2]="WaitingForPrint",N[N.Activated=3]="Activated",N[N.PrintRequested=4]="PrintRequested",N[N.Rejected=5]="Rejected",N[N.Sent=6]="Sent",N[N.Blocked=7]="Blocked",h;var N})(),r=(()=>{return(N=r||(r={}))[N.Unspecified=0]="Unspecified",N[N.Created=1]="Created",N[N.Accepted=2]="Accepted",N[N.Rejected=3]="Rejected",N[N.Activated=4]="Activated",N[N.Personalized=5]="Personalized",N[N.DeActivated=6]="DeActivated",N[N.Blocked=7]="Blocked",r;var N})();class g{}},65575:(M,b,n)=>{"use strict";n.d(b,{DD:()=>t,DF:()=>O,FR:()=>l,H$:()=>N,Qb:()=>r,_G:()=>d,_u:()=>H,cz:()=>F,hr:()=>f,kZ:()=>p,lA:()=>C,nW:()=>e,st:()=>h});var t=(()=>{return(D=t||(t={}))[D.Unspecified=0]="Unspecified",D[D.New=1]="New",D[D.Used=2]="Used",D[D.Canceled=3]="Canceled",D[D.Sent=4]="Sent",D[D.All=5]="All",D[D.SentOrUsed=6]="SentOrUsed",t;var D})();class e{}class l{}var h=(()=>{return(D=h||(h={}))[D.Creator=1]="Creator",D[D.Receiver=2]="Receiver",D[D.Both=3]="Both",h;var D})();class r{}class d{}class p{}class f{}class C{}class N{}class O{}var H=(()=>{return(D=H||(H={}))[D.CyberCard=1]="CyberCard",D[D.GiftCard=2]="GiftCard",H;var D})(),F=(()=>{return(D=F||(F={}))[D.Birth=4]="Birth",D[D.Marriage=5]="Marriage",D[D.Holidays=6]="Holidays",D[D.Other=7]="Other",F;var D})()},56656:(M,b,n)=>{"use strict";n.d(b,{FL:()=>Zt,H2:()=>At,Kk:()=>rt,O$:()=>E,Oo:()=>pt,PR:()=>Dt,_f:()=>ot,ae:()=>br,am:()=>Me,e$:()=>ge,hj:()=>Ge,jr:()=>G,n0:()=>Ft,nn:()=>wt,oM:()=>Ze,pH:()=>We,rd:()=>Re});class G{}class E{}class At{}class Ze{}class Ge{}class Ft{}class br{}class rt{constructor(){this.isShowPlanScore=!1}}var Dt=(()=>{return(gt=Dt||(Dt={}))[gt.CreditUsingDuration=1]="CreditUsingDuration",gt[gt.DigitalServiceCommissionRate=2]="DigitalServiceCommissionRate",gt[gt.InterestRate=3]="InterestRate",gt[gt.CreditSettlementDuration=4]="CreditSettlementDuration",gt[gt.AllowExtensionCount=5]="AllowExtensionCount",gt[gt.ExtensionCommissionRate=6]="ExtensionCommissionRate",gt[gt.Titr=7]="Titr",gt[gt.UsageInstruction=8]="UsageInstruction",gt[gt.ValidationCommission=9]="ValidationCommission",gt[gt.CreditCommission=10]="CreditCommission",gt[gt.TotalCommissions=11]="TotalCommissions",Dt;var gt})(),ot=(()=>{return(gt=ot||(ot={}))[gt.View=1]="View",gt[gt.Passed=2]="Passed",gt[gt.NotPassed=3]="NotPassed",ot;var gt})(),ge=(()=>{return(gt=ge||(ge={}))[gt.ScoringNotStarted=1]="ScoringNotStarted",gt[gt.ScoringInProgress=2]="ScoringInProgress",gt[gt.InSufficientScore=3]="InSufficientScore",gt[gt.SufficientScore=4]="SufficientScore",ge;var gt})(),Me=(()=>{return(gt=Me||(Me={}))[gt.Bronze=1]="Bronze",gt[gt.Silver=2]="Silver",gt[gt.Gold=3]="Gold",gt[gt.Diamond=4]="Diamond",Me;var gt})(),We=(()=>{return(gt=We||(We={}))[gt.None=0]="None",gt[gt.Extend=1]="Extend",gt[gt.ExtendPayment=2]="ExtendPayment",gt[gt.ExtendInstallment=3]="ExtendInstallment",We;var gt})(),Re=(()=>{return(gt=Re||(Re={}))[gt.Unspecified=0]="Unspecified",gt[gt.ReadyToApply=1]="ReadyToApply",gt[gt.Applied=2]="Applied",gt[gt.Confirmed=3]="Confirmed",gt[gt.Activated=4]="Activated",gt[gt.Rejected=5]="Rejected",gt[gt.Completed=6]="Completed",gt[gt.Expired=7]="Expired",gt[gt.UserDebited=8]="UserDebited",gt[gt.Unused=9]="Unused",gt[gt.Settled=10]="Settled",gt[gt.Waiting=11]="Waiting",gt[gt.FinalRejected=12]="FinalRejected",Re;var gt})(),pt=(()=>{return(gt=pt||(pt={}))[gt.SingleContractInCategory=1]="SingleContractInCategory",gt[gt.MultipleContractsInCategory=2]="MultipleContractsInCategory",pt;var gt})(),Zt=(()=>{return(gt=Zt||(Zt={}))[gt.None=0]="None",gt[gt.Revoked=1]="Revoked",gt[gt.Canceled=2]="Canceled",gt[gt.Waiting=3]="Waiting",gt[gt.Sending=4]="Sending",gt[gt.Register=5]="Register",gt[gt.Failed=6]="Failed",gt[gt.Done=7]="Done",gt[gt.Created=8]="Created",Zt;var gt})(),wt=(()=>{return(gt=wt||(wt={}))[gt.Unused=1]="Unused",gt[gt.InstallmentsNotCreated=2]="InstallmentsNotCreated",gt[gt.InstallmentsUpdated=3]="InstallmentsUpdated",gt[gt.InstallmentsNotUpdated=4]="InstallmentsNotUpdated",gt[gt.InstallmentsSettled=5]="InstallmentsSettled",gt[gt.InstallmentsProcessingPayment=6]="InstallmentsProcessingPayment",wt;var gt})()},65376:(M,b,n)=>{"use strict";n.d(b,{Q:()=>f,VB:()=>a,vA:()=>C});var t=n(77528),e=n(8479),f=(()=>{return(U=f||(f={}))[U.NoEnter=0]="NoEnter",U[U.Await=1]="Await",U[U.Accept=2]="Accept",U[U.Rejected=3]="Rejected",f;var U})();class C{constructor(){this.osType=3,this.latitude=0,this.longitude=0,this.appVersion=`Wepod_web-${e.NZ.appVersion}.Pas`,this.clientIssuer=t.z.clientIssuer}}var a=(()=>{return(U=a||(a={}))[U.Desktop=1]="Desktop",U[U.MobilePhone=2]="MobilePhone",U[U.Tablet=3]="Tablet",U[U.MobileDevice=4]="MobileDevice",U[U.Console=5]="Console",U[U.TVDevice=6]="TVDevice",U[U.Unknown=7]="Unknown",a;var U})()},66245:(M,b,n)=>{"use strict";n.d(b,{r:()=>e});var t=n(77528);class e{constructor(){this.clientIssuer=t.z.clientIssuer}}},54940:(M,b,n)=>{"use strict";n.d(b,{C8:()=>l,Qi:()=>r,Yk:()=>O,a$:()=>f,eK:()=>F,fy:()=>N,nj:()=>t,qb:()=>g,sx:()=>p});class t{}var l=(()=>{return(D=l||(l={}))[D.Nothing=0]="Nothing",D[D.Enrollment=1]="Enrollment",D[D.Reactivation=2]="Reactivation",D[D.Corrupt=3]="Corrupt",l;var D})();class r{}class g{}class p{}class f{}class N{}var O=(()=>{return(D=O||(O={}))[D.InProgress=0]="InProgress",D[D.Success=1]="Success",D[D.Failed=2]="Failed",D[D.Reverse=3]="Reverse",O;var D})();class F{}},31765:(M,b,n)=>{"use strict";n.d(b,{O_:()=>l,Tq:()=>t,ab:()=>e});class t{}class e{}class l{}},86424:(M,b,n)=>{"use strict";n.d(b,{A:()=>t,KF:()=>f,Kq:()=>h,Z$:()=>g,gG:()=>l,hq:()=>d});class t{}var l=(()=>{return(N=l||(l={}))[N.Cellphone=1]="Cellphone",N[N.CardNumber=2]="CardNumber",N[N.DepositNumber=3]="DepositNumber",N[N.ShebaNumber=4]="ShebaNumber",l;var N})();class h{}class d{}var g=(()=>{return(N=g||(g={}))[N.Wepod=1]="Wepod",N[N.Card=2]="Card",N[N.Paya=3]="Paya",N[N.Pol=4]="Pol",N[N.Satna=6]="Satna",g;var N})();class f{}},77688:(M,b,n)=>{"use strict";n.d(b,{Cl:()=>W,D6:()=>w,E:()=>fe,Ep:()=>ie,Gn:()=>g,PE:()=>q,Ry:()=>B,TD:()=>N,U9:()=>D,UY:()=>h,bR:()=>y,cd:()=>r,dX:()=>J,eE:()=>G,fd:()=>a,ku:()=>s,ne:()=>l,p4:()=>j,qD:()=>H,qX:()=>e,r7:()=>O});class e{}var l=(()=>{return(ye=l||(l={}))[ye.SettlementDone=1]="SettlementDone",ye[ye.SettlementRequested=2]="SettlementRequested",ye[ye.SettlementSent=3]="SettlementSent",ye[ye.SettlementCanceled=4]="SettlementCanceled",ye[ye.SettlementExceptionInSending=5]="SettlementExceptionInSending",ye[ye.SettlementConfirming=6]="SettlementConfirming",ye[ye.SettlementRejected=7]="SettlementRejected",ye[ye.SettlementWaitingCardToCardPool=8]="SettlementWaitingCardToCardPool",ye[ye.SettlementWaitForSending=9]="SettlementWaitForSending",ye[ye.SettlementWaitingForAutoConfirm=10]="SettlementWaitingForAutoConfirm",l;var ye})(),h=(()=>{return(ye=h||(h={}))[ye.InvoiceDone=1]="InvoiceDone",ye[ye.InvoiceRejected=2]="InvoiceRejected",ye[ye.InvoiceWaiting=3]="InvoiceWaiting",h;var ye})();class r{}class y{}class g{}class N{}class a{}class O{}class H{}class D{}class q{constructor(){this.statusList=[]}}var J=(()=>{return(ye=J||(J={}))[ye.Creator=1]="Creator",ye[ye.Receiver=2]="Receiver",J;var ye})(),G=(()=>{return(ye=G||(G={}))[ye.New=1]="New",ye[ye.Canceled=3]="Canceled",ye[ye.Paid=5]="Paid",ye[ye.Rejected=6]="Rejected",G;var ye})();class ie{}var B=(()=>{return(ye=B||(B={}))[ye.Wallet=1]="Wallet",ye[ye.MicroLoan=2]="MicroLoan",ye[ye.UsageCredit=3]="UsageCredit",ye[ye.WepodCredit=4]="WepodCredit",B;var ye})();class s{}class w{}var j=(()=>{return(ye=j||(j={}))[ye.PaymentGatWay=1]="PaymentGatWay",ye[ye.CardToCard=2]="CardToCard",j;var ye})(),W=(()=>{return(ye=W||(W={}))[ye.UnSpecified=0]="UnSpecified",ye[ye.Success=1]="Success",ye[ye.Fail=2]="Fail",W;var ye})();class fe{}},67057:(M,b,n)=>{"use strict";n.d(b,{Z:()=>l});var t=n(591),e=n(94650);let l=(()=>{class h{constructor(){this.checkReferenceNumber=!1,this.CardToCardReportUrl=!1,this.filterClosing=new t.X(!1),this.contactSelectClosing=new t.X(!1),this.filterData={topCount:null,fromDate:null,toDate:null,state:null,sourceCardNumber:null,sourceCardId:null,destinationCardNumber:null,amount:null,destinationCardName:null,sourceCardBankLogo:null,destinationBankLogo:null,refNumber:null,seqNumber:null,useCardsList:!1,toggleTabFilter:!1,showMore:!1,isDigitalCard:!1},this.filters={topCount:null,fromDate:null,toDate:null,state:null,sourceCardNumber:null,sourceCardId:null,destinationCardNumber:null,amount:null,destinationCardName:null,sourceCardBankLogo:null,destinationBankLogo:null,refNumber:null,seqNumber:null,useCardsList:!1,toggleTabFilter:!1,showMore:!1,isDigitalCard:!1}}reset(){this.selectedSourceCardNumber=null,this.referenceNumber=null,this.receiptReferenceNumber=null,this.fromDate=null,this.toDate=null,this.srcCardNumber=null,this.destCardNumber=null,this.destCardName=null,this.amount=null,this.srcBankName=null,this.desBankName=null,this.sequenceCounter=null,this.state=null,this.transactionDate=null,this.srcLogoBank=null,this.destLogoBank=null,this.checkReferenceNumber=!1,this.CardToCardReportUrl=!1,this.CardUrlLogSrc=null,this.CardUrlLogDes=null,this.transferFromDescription=null,this.transferToDescription=null,this.transactionId=null,this.filterData.topCount=null,this.filterData.fromDate=null,this.filterData.toDate=null,this.filterData.state=null,this.filterData.sourceCardNumber=null,this.filterData.sourceCardId=null,this.filterData.destinationCardNumber=null,this.filterData.amount=null,this.filterData.destinationCardName=null,this.filterData.sourceCardBankLogo=null,this.filterData.destinationBankLogo=null,this.filterData.refNumber=null,this.filterData.seqNumber=null,this.filterData.useCardsList=!1,this.filterData.toggleTabFilter=!1,this.filterData.showMore=!1,this.filterData.isDigitalCard=!1,this.useFilter=null}resetFilter(){this.filters.topCount=null,this.filters.fromDate=null,this.filters.toDate=null,this.filters.state=null,this.filters.sourceCardNumber=null,this.filters.sourceCardId=null,this.filters.destinationCardNumber=null,this.filters.amount=null,this.filters.destinationCardName=null,this.filters.sourceCardBankLogo=null,this.filters.destinationBankLogo=null,this.filters.refNumber=null,this.filters.seqNumber=null,this.filters.useCardsList=!1,this.filters.toggleTabFilter=!1,this.filters.showMore=!1,this.filters.isDigitalCard=!1}}return h.\u0275fac=function(d){return new(d||h)},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})()},67521:(M,b,n)=>{"use strict";n.d(b,{m:()=>e});var t=n(94650);let e=(()=>{class l{constructor(){this.checkSaveExpDate=!1,this.isEditCard=!1,this.isDestinationCard=!1,this.useSendOtpMethod=!1,this.backWithKeyId=!1}reset(){this.isEditCard=!1,this.isDestinationCard=!1,this.cardNumber=null,this.expiryMonth=null,this.expiryYear=null,this.name=null,this.cardId=null}resetCardToCard(){this.selectedSourceCardTxt=null,this.selectedSourceCardNumber=null,this.selectedDestinationCardNumber=null,this.destinationCardOwnerFullname=null,this.selectedSourceCardInfoEn=null,this.selectedSourceCardInfoFa=null,this.selectedDestinationCardInfoEn=null,this.selectedDestinationCardInfoFa=null,this.amount=null,this.cvv2=null,this.pin2=null,this.encryptedOtp=null,this.expireYear=null,this.expireMonth=null,this.sourceDesc=null,this.destinationDesc=null,this.canResendCode=!1,this.checkSaveExpDate=!1,this.useSendOtpMethod=!1,this.shaparakContracted=null,this.internal=null,this.rsaData=null,this.transferTransactionId=null,this.keyId=null,this.backWithKeyId=!1}}return l.\u0275fac=function(r){return new(r||l)},l.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})()},56751:(M,b,n)=>{"use strict";n.d(b,{FM:()=>_,rU:()=>j});var t=n(49671),e=n(94650),l=n(49840),h=n.n(l),r=n(591),d=n(8929),y=n(8479),g=n(40345),p=n(75869),f=n(77528),C=n(39723),N=n(77743),a=n(63718),O=n(70223),H=n(66699),F=n(73038),V=n(91663),D=n(47514),U=n(94),q=n(32209),J=n(86749),G=n(46848),ie=n(74512),K=n(11213),re=n(841),oe=n(11481),B=n(94652),s=n(97693);let _=(()=>{class ${constructor(u,W,fe,ae,ye,Qe,Ot,At,Ze,at,Be,Lt){this.podChatService=u,this.profileService=W,this.walletService=fe,this.storageService=ae,this.portionGroupService=ye,this.thirdPartyService=Qe,this.borrowService=Ot,this.routingAppService=At,this.securePipe=Ze,this.sanitizer=at,this.getProfileDataService=Be,this.toastrService=Lt,this.inChatPage=new r.X(!1),this.moreMessage=new r.X(null),this.moreThread=new r.X(null),this.messagesContextMenu={show:!1,x:0,y:0},this.threadsContextMenu={show:!1,x:0,y:0},this.editingMessage=new r.X(null),this.replyingMessage=new r.X(null),this.selectedContactInChat=new r.X(null),this.threads=new r.X(null),this.activeThread=new r.X(null),this.draftThread=new r.X(null),this.messages=new r.X(null),this.notifs=new d.xQ,this.uploadingFiles={},this.drafts={},this.lastSeen={},this.messageInputText="",this.downloadingFiles={},this.imageCacheStorage={},this.participantsIds=[],this.searchResults=[],this.unreadThreadsBadge=0,this.unreadNotifsBadge=0,this.moneyTransfer={data:new w,isTransferring(){return this.data.show||this.data.receipt.show||this.data.confirm.show||this.data.display.show||this.data.paymentMethod.show||this.data.botForm.show},reset(){this.data=new w}},this.flags={createdThread:{thread:new r.X(null)},activeThread:{super:this,data:new x,isDetailsShowing(){return this.data.showDetails||this.data.showDetailsPortion},reset(){this.data=new x,this.super.searchResults=[]}},draftThread:{data:new x,isDetailsShowing(){return this.data.showDetails||this.data.showDetailsPortion},reset(){this.data=new x}},threads:{hasNext:!0,gettingNextOffset:!1},messages:{hasNext:!0,gettingNextOffset:new r.X(!1),scrollTop:0,scrollHeight:0,fixedTimeBadge:"",fixedTimeBadgeTimeout:null,fixedTimeBadgeVisible:!1,goToSpecific:new r.X(null),refreshReceipt:new r.X(null),unreadCount:null},input:{data:new E,reset(){this.data=new E}},isChangingBlockedState:!1,isChangingNotificationState:!1,isLeavingThread:!1,contactsList:{show:new r.X(!1),addOrEdit:!1,sendInBot:!1},resetMessagesFlags(){this.messages.hasNext=!0,this.messages.gettingNextOffset.next(!1)}},this.socketControllerLogs=[],this.openedSocket=!1,this.defaultMode=!0,this.isLoading=!0,this.threadListLastSize=0,this.forwardReceiptDataForDesktop=!1,this.sendChatParamsReceiptDataAndroidSize=null,this.pageSize=20,this.threadUniqueAttributes=["closed","id","image","lastMessage","lastSeenMessageTime","mute","pin","time","title","unreadCount","userGroupHash"],this.emojis=["\u{1f64f}","\u{1f44d}","\u{1f604}","\u{1f622}"],this.serviceUserDefaultCommandsJson={},this.isOpenOperatorsList=!1,this.activeThread.asObservable().subscribe(_e=>{this.participantsIds=[],_e&&this.draftThread.next(null)})}getThreadsList(u=!1,W=""){return new Promise((fe,ae)=>{this.flags.threads.gettingNextOffset||!u&&!this.flags.threads.hasNext?fe(!1):(!this.threads.value||u||this.threads?.value?.length!==this.threadListLastSize)&&(this.threadListLastSize=u?void 0:this.threads?.value?.length,this.flags.threads.gettingNextOffset=!0,this.podChatService.instance.getThreads({threadName:W,offset:!u&&this.threads.value?this.threads.value.length:0,count:this.pageSize,typeCode:"default"},ye=>{if(typeof ye<"u"&&!ye.hasError){if(ye=this.prepareThreads(ye),u)(!this.threads.value?.length||!this.threadsAreEqual(ye.result.threads,this.threads.value.slice(0,ye.result.threads?.length)))&&this.threads.next(ye.result.threads);else if(this.threads.value?.length){const Qe=[...this.threads.value,...ye.result.threads];this.threads.next(Qe)}else this.threads.next(ye.result.threads);this.flags.threads.gettingNextOffset=!1,this.flags.threads.hasNext=!!ye.result.threads?.length&&ye.result.threads.length%this.pageSize==0,fe()}else ae(ye),this.flags.threads.gettingNextOffset=!1;this.listenLastSeen()},()=>{this.flags.threads.gettingNextOffset=!1,ae()}))})}getThreadById(u,W=!1,fe=!0,ae){this.podChatService.instance.getThreads({threadIds:[u],offset:0,count:1},ye=>{typeof ye<"u"&&!ye.hasError&&ye.result.threads?.length?(N.hg.next({loading:!1,cancelable:!1}),ye=this.prepareThreads(ye),this.getMessages(ye.result.threads[0],!0,fe),this.draftThread.next(null),setTimeout(()=>{ae&&this.getProfileDataService.getValue().then(Qe=>{this.messages.value&&this.messages.value.splice(this.messages.value.length,0,{sending:!0,message:"\u0634\u0631\u0648\u0639",participant:{coreUserId:Qe.userId}}),this.scrollToBottom(),this.podChatService.instance.sendTextMessage({threadId:u,textMessage:"\u0634\u0631\u0648\u0639",messageType:"TEXT",systemMetadata:{commandKey:ae,correlationId:this.draftThread.value?.metadata?.correlationId,request:{message:{messageType:"text",text:"start"}}}},{onSent:()=>{},onDeliver:()=>{}})})},500)):21===ye.errorCode&&(N.hg.next({loading:!0,cancelable:!1}),setTimeout(()=>{this.getThreadById(u,W,fe,ae)},3e3)),this.activeThread.value?.metadata?.isBot?this.getUserDefaultCommandsValue().then(Qe=>{Qe.forEach(Ot=>{this.userDefaultCommands=+Ot.threadId===this.activeThread.value.id?Ot:null})}):this.userDefaultCommands=null,this.isOpenOperatorsList=!1})}getUserDefaultCommandsValue(u){return new Promise((W,fe)=>{0===Object.keys(this.serviceUserDefaultCommandsJson).length||u?this.getProfileInProgress?setTimeout(()=>{!this.getProfileInProgress&&this.serviceUserDefaultCommandsJson?W(this.serviceUserDefaultCommandsJson):(this.getProfileInProgress=!1,fe())},5e3):(this.getProfileInProgress=!0,W(this.getUserDefaultCommands())):W(this.serviceUserDefaultCommandsJson)})}getUserDefaultCommands(){return new Promise(u=>{this.thirdPartyService.getUserDefaultCommands().subscribe(W=>{this.getProfileInProgress=!1,this.serviceUserDefaultCommandsJson=W,u(this.serviceUserDefaultCommandsJson)})})}openSelectedUserThread(u,W){this.podChatService.instance.getThreads({partnerCoreUserId:W.linkedUser.id},fe=>{fe.result?.threads?.length?(this.flags.contactsList.show.next(!1),this.navigateToThread(fe.result.threads[0].id)):(W.type=u,this.navigateToDraftThread(W))})}navigateToDraftThread(u){if(!u.profileImage&&u.linkedUser?.image&&(u.profileImage=u.linkedUser?.image),u.online>=0){const W=new p.vB,fe=new p.Z$;u.subTitle=u.online<1e4?"\u0622\u0646\u0644\u0627\u06cc\u0646":"\u0622\u062e\u0631\u06cc\u0646 \u0641\u0639\u0627\u0644\u06cc\u062a "+(u.online<1728e5?W.transform(h()().add(-1*u.online,"milliseconds")):fe.transform(h()().add(-1*u.online,"milliseconds")))}this.draftThread.next(u),this.flags.contactsList.show.next(!1),this.navigateToThread("")}navigateToExistingThread(u){this.podChatService.instance.getThreads({offset:0,count:1,username:u},W=>{this.getProfileDataService.getValue().then(fe=>{W.hasError||fe.userId===W.result?.threads[0]?.id?this.toastrService.error("\u0646\u0627\u0645 \u06a9\u0627\u0631\u0628\u0631\u06cc \u06cc\u0627\u0641\u062a \u0646\u0634\u062f!"):W.result?.threads?.length?this.navigateToThread(W.result.threads[0].id):this.podChatService.instance.getThreadParticipants({name:u,offset:0,count:1,threadId:this.activeThread.value.id},ae=>{ae.hasError||fe.userId===ae.result?.participants[0]?.coreUserId?this.toastrService.error("\u0646\u0627\u0645 \u06a9\u0627\u0631\u0628\u0631\u06cc \u06cc\u0627\u0641\u062a \u0646\u0634\u062f!"):this.navigateToDraftThread(ae.result?.participants?.length?Object.assign(ae.result.participants[0],{type:"user-link",userName:ae.result.participants[0].username}):{userName:u,firstName:u,id:u,type:"user-link"})},()=>{this.toastrService.error("\u062E\u0637\u0627\u06CC \u0646\u0627\u0645\u0634\u062E\u0635\u06CC \u0627\u062A\u0641\u0627\u0642 \u0627\u0641\u062A\u0627\u062F\u0647 \u0627\u0633\u062A")})},()=>{this.toastrService.error("\u062E\u0637\u0627\u06CC \u0646\u0627\u0645\u0634\u062E\u0635\u06CC \u0627\u062A\u0641\u0627\u0642 \u0627\u0641\u062A\u0627\u062F\u0647 \u0627\u0633\u062A")})},()=>{this.toastrService.error("\u062E\u0637\u0627\u06CC \u0646\u0627\u0645\u0634\u062E\u0635\u06CC \u0627\u062A\u0641\u0627\u0642 \u0627\u0641\u062A\u0627\u062F\u0647 \u0627\u0633\u062A")})}openThread(u=null){this.flags.input.data.disabled=!0;const W={invitees:[{id:["message-body","thread-detail"].includes(this.draftThread.value.type)?this.draftThread.value.contactId?this.draftThread.value.contactId:this.draftThread.value.userName:"user-link"===this.draftThread.value.type?this.draftThread.value.userName:this.draftThread.value.id,idType:["message-body","thread-detail"].includes(this.draftThread.value.type)&&!this.draftThread.value.contactId||"user-link"===this.draftThread.value.type?"TO_BE_USER_USERNAME":"TO_BE_USER_CONTACT_ID"}]};u?.message&&(W.message={uniqueId:null,text:u.message,type:1,systemMetadata:{},metadata:{}}),this.podChatService.instance.createThread(W,fe=>{fe.hasError||(this.flags.contactsList.show.next(!1),this.flags.createdThread.thread.next(fe.result.thread),this.draftThread.next(null),this.flags.input.data.disabled=!1,this.messageInputText="",this.navigateToThread(fe.result.thread.id))},fe=>{console.error(fe),this.flags.createdThread.thread.next(fe)})}openSupportThread(u=null){return new Promise((W,fe)=>{this.flags.input.data.disabled=!0;const ae={invitees:[{id:"we",idType:"TO_BE_USER_USERNAME"}],metadata:{isSupport:!0,isTrusted:!0}};u?.message&&(ae.message={uniqueId:null,text:u.message,type:1,systemMetadata:{},metadata:{}}),this.podChatService.instance||(N.hg.next({loading:!0,cancelable:!1,text:"\u062f\u0631\u062d\u0627\u0644 \u0628\u0631\u0642\u0631\u0627\u0631\u06cc \u0627\u0631\u062a\u0628\u0627\u0637 ..."}),this.podChatService.createSocket()),this.podChatService.instance.createThread(ae,ye=>{this.flags.contactsList.show.next(!1),ye.result.thread=this.prepareThread(ye.result.thread),this.flags.createdThread.thread.next(ye.result.thread),this.getMessages(ye.result.thread,!0),this.draftThread.next(null),this.flags.input.data.disabled=!1,W(ye)},ye=>{N.hg.next({loading:!1,cancelable:!1}),console.error(ye),fe(),this.flags.createdThread.thread.next(ye)})})}prepareThreads(u){return u.result.threads.forEach(W=>{W.avatarLoaded=!1,W.metadata&&W.metadata.length>3&&(W.metadata=JSON.parse(W.metadata))}),u}prepareThread(u){return u?.metadata&&u.metadata.length>3&&(u.metadata=JSON.parse(u.metadata)),u}threadChangePrepare(u=!0){this.messages.next(null),this.flags.resetMessagesFlags(),this.flags.activeThread.reset(),u&&this.moneyTransfer.reset(),this.portionGroupService.portionGroup.reset(),this.editingMessage.next(null),this.replyingMessage.next(null),this.defaultMode=!0}getMessages(u=this.activeThread.value,W=!1,fe=!0){var ae=this;return(0,t.Z)(function*(){if(W){if(ae.activeThread.value&&u.id===ae.activeThread.value.id)return;ae.messageInputText=ae.drafts[u.id]?ae.drafts[u.id]:"",ae.threadChangePrepare(fe),ae.portionGroupService.checkIfIsPortionGroup(u)}if(ae.flags.messages.gettingNextOffset.value||!ae.flags.messages.hasNext)return;(!ae.activeThread.value||u.id!==ae.activeThread.value.id)&&(ae.activeThread.next(u),ae.activeThread.value.online=ae.lastSeen[u.partner]),ae.flags.messages.gettingNextOffset.next(!0);const ye=W&&u.unreadCount?Math.max(u.unreadCount+5,20):20;yield new Promise(Qe=>{ae.podChatService.instance.getHistory({threadId:u.id,offset:W?0:ae.messages.value.length,count:ye,order:"DESC"},function(){var Ot=(0,t.Z)(function*(At){if(At.result.history.length&&(!ae.activeThread.value||At.result.history[0].threadId!==ae.activeThread.value.id))return;const Ze=At.result.history;if(ae.flags.messages.hasNext=!!Ze.length&&Ze.length===ye,yield Ze.forEach(at=>{ae.renderEachMessage(at)}),ae.podChatService.instance.getReactionsSummaries({threadId:u.id,messageIds:Ze.map(at=>at.id)}),W){try{ae.threads.value[ae.threads.value.findIndex(at=>at.id===ae.activeThread.value.id)].unreadCount=0,ae.threads.value[ae.threads.value.findIndex(at=>at.id===ae.activeThread.value.id)].mentioned=!1}catch{}ae.messages.next(Ze.reverse()),ae.flags.messages.unreadCount=u.unreadCount,ae.messages.value&&ae.messages.value.length&&ae.seen(ae.messages.value[ae.messages.value.length-1])}else ae.messages.value.splice(0,0,...Ze.reverse()),ae.flags.messages.unreadCount=null;if(ae.flags.messages.gettingNextOffset.next(!1),ae.flags.messages.goToSpecific.value)ae.goToRepliedMessage(ae.flags.messages.goToSpecific.value);else if(ae.flags.messages.unreadCount){const at=ae.messages.value[ae.messages.value.length-ae.flags.messages.unreadCount];at&&(yield ae.goToSpecificMessage(at))}else W&&setTimeout(()=>{ae.scrollToBottom()},100);Qe(null)});return function(At){return Ot.apply(this,arguments)}}(),Ot=>{console.error("getHistory",Ot)})})})()}seen(u){u&&this.podChatService.instance.seen({messageId:u.id,ownerId:u.ownerId,typeCode:"default"},()=>{this.getAllUnreadMessagesCountFunc()})}renderEachMessage(u){let W=!1;if(u=this.imagesPreloadState(u),this.getProfileDataService.getValue().then(ae=>{if(ae?.userId!==u.participant.coreUserId){const ye=this.participantsIds.findIndex(Qe=>Qe.id===u.participant.coreUserId);if(-1!==ye){if(u.avatar=this.participantsIds[ye].avatar,u.avatarLoaded=!0,W=!0,this.ifRendered(W,!1))return u}else u.avatarLoaded=!1,this.participantsIds.push({id:u.participant.coreUserId,avatar:u.participant.image})}else if(u.avatar=ae?.profileImage,W=!0,this.ifRendered(W,!1))return u},()=>{}),u.systemMetadata&&"string"==typeof u.systemMetadata)try{JSON.parse(u.systemMetadata).data||(u.systemMetadata=JSON.parse(u.systemMetadata))}catch{}if(18===u.messageType||19===u.messageType){const ae={isMe:this.userParticipantId===u.participant?.id,name:u.participant?.name,username:this.userParticipantId===u.participant?.id?"":u.participant?.username},ye={isMe:u.metadata.participantVOS.map(Qe=>this.userParticipantId===Qe.id),name:u.metadata.participantVOS.map(Qe=>Qe.name),username:u.metadata.participantVOS.map(Qe=>this.userParticipantId===Qe.id?"":Qe.username)};9===u.metadata?.requestType?u.message=`<a href="${ae.username}">${ae.isMe?"\u0634\u0645\u0627":ae.name}</a> \u06af\u0631\u0648\u0647 \u0631\u0627 \u062a\u0631\u06a9 \u06a9\u0631\u062f${ae.isMe?"\u06cc\u062f":""}. ${h()(u?.timeMiliSeconds).format("HH:mm")}`:11===u.metadata?.requestType?u.message=`<a href="${ae.username}">${ae.isMe?"\u0634\u0645\u0627":ae.name}</a> ${ye.name.map((Qe,Ot)=>`<a href="${ye.username[Ot]}">${ye.isMe[Ot]?"\u0634\u0645\u0627":Qe}</a>`).join(" \u0648 ")} \u0631\u0627 \u0628\u0647 \u06af\u0631\u0648\u0647 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f${ae.isMe?"\u06cc\u062f":""}. ${h()(u?.timeMiliSeconds).format("HH:mm")}`:17===u.metadata?.requestType?u.message=`<a href="${ae.username}">${ae.isMe?"\u0634\u0645\u0627":ae.name}</a> ${ye.name.map((Qe,Ot)=>`<a href="${ye.username[Ot]}">${ye.isMe[Ot]?"\u0634\u0645\u0627":Qe}</a>`).join(" \u0648 ")} \u0631\u0627 \u0627\u0632 \u06af\u0631\u0648\u0647 \u062d\u062f\u0641 \u06a9\u0631\u062f${ae.isMe?"\u06cc\u062f":""}. ${h()(u?.timeMiliSeconds).format("HH:mm")}`:39===u.metadata?.requestType&&(u.message=`<a href="${ae.username}">${ae.isMe?"\u0634\u0645\u0627":ae.name}</a> \u0628\u0647 \u06af\u0631\u0648\u0647 \u067e\u06cc\u0648\u0633\u062a${ae.isMe?"\u06cc\u062f":""}. ${h()(u?.timeMiliSeconds).format("HH:mm")}`)}u.timeMiliSeconds&&(u.timeBadge=h()(u.timeMiliSeconds).format("jYYYY/jMM/jDD"))}ifRendered(u,W){return!(!u||!W)}imagesPreloadState(u){try{if(u.metadata&&!u.metadata?.match("null")){let W,fe;if((0,g.Jj)()?.innerWidth>992?(W=160,fe=384):((0,g.Jj)(),W=160,fe=284),u.metadata=JSON.parse(u.metadata),u.metadata.file&&u.metadata.file.actualHeight)if(u.metadata.file.actualWidth<W){const ae=u.metadata.file.actualWidth/W;u.actualHeight=u.metadata.file.actualHeight/ae,u.actualWidth=u.metadata.file.actualWidth/ae}else if(u.metadata.file.actualWidth>=fe){const ae=1*u.metadata.file.actualWidth/fe;u.actualHeight=u.metadata.file.actualHeight/ae,u.actualWidth=u.metadata.file.actualWidth/ae}else u.actualHeight=u.metadata.file.actualHeight,u.actualWidth=u.metadata.file.actualWidth}return u}catch{}}goToRepliedMessage(u){const W=this.messages.value.find(fe=>fe.id===u.repliedToMessageId);if(W)try{setTimeout(()=>{try{this.flags.messages.goToSpecific.next(null);const fe=document.getElementById("message-"+W.uniqueId);fe.scrollIntoView({behavior:"smooth",block:"center"}),fe.classList.add("showing-replied-to"),setTimeout(()=>{try{fe.classList.remove("showing-replied-to")}catch{}},2e3)}catch{}},200)}catch{}else this.getMessages()}goToSpecificMessage(u,W=!1,fe=200){var ae=this;return(0,t.Z)(function*(){yield new Promise(Qe=>setTimeout(Qe,fe));const ye=document.getElementById("message-"+u.uniqueId);ye?(ye?.scrollIntoView({behavior:"smooth",block:"center"}),W&&(ye.classList.add("showing-replied-to"),setTimeout(()=>{try{ye.classList.remove("showing-replied-to")}catch{}},4e3))):(yield ae.getMessages(),yield ae.goToSpecificMessage(u,W,0))})()}blockAndUnblockContact(u){this.flags.isChangingBlockedState=!0;const W={threadId:u.id};u.inviter.blocked?this.podChatService.instance.unblock(W,fe=>{fe.hasError||(this.activeThread.value.inviter.blocked=!1)}):this.podChatService.instance.block(W,fe=>{fe.hasError||(this.activeThread.value.inviter.blocked=!0)})}muteAndUnMuteThread(u){this.flags.isChangingNotificationState=!0;const W={threadId:u.id};u.mute?this.podChatService.instance.unMuteThread(W,fe=>{fe.hasError||(this.flags.isChangingNotificationState=!1)}):this.podChatService.instance.muteThread(W,fe=>{fe.hasError||(this.flags.isChangingNotificationState=!1)})}pinAndUnPinThread(u){const W={threadId:u.id};u.pin?this.podChatService.instance.unPinThread(W,fe=>{}):this.podChatService.instance.pinThread(W,fe=>{})}leaveThread(u){this.flags.isLeavingThread=!0,this.podChatService.instance.leaveThread({threadId:u.id},()=>{this.flags.isLeavingThread=!1,this.flags.activeThread.data.showDetails=!1,this.flags.activeThread.data.showDetailsPortion=!1,this.flags.activeThread.data.showSearch=!1,this.flags.activeThread.data.searchData.showSearchIndex=!1,this.flags.activeThread.data.isLoading=!1,this.activeThread.next(null),this.messages.next(null),this.threads.next(this.threads.value.filter(W=>W.id!==u.id))})}clearHistory(u){this.podChatService.instance.clearHistory({threadId:u.id},()=>{this.messages.next(null)})}messageSystemDetector(u){return u>15&&u<26}findLastBotMessage(){return new Promise(u=>{this.getProfileDataService.getValue().then(W=>{if(this.messages.value.length)for(let fe=this.messages.value.length-1;fe>=0;fe--)this.messages.value[fe].participant.coreUserId!==W.userId&&this.messages.value[fe].systemMetadata?.response?.nextCommandKey?u(this.messages.value[fe]):0===fe&&u(null);else u(null)},()=>{u(null)})})}leaveBot(u){"\u0628\u0627\u062a"===this.getThreadType(u)&&this.thirdPartyService.leftService(u.metadata?.correlationId).subscribe(()=>{this.leaveThread(u)})}leave(u){u.metadata?.providerServiceId?this.leaveBot(u):this.leaveThread(u)}listenLastSeen(){this._listenLastSeenFunction(),(0,g.Jj)()&&(clearInterval(this.onlineStatusChecker),this.onlineStatusChecker=setInterval(()=>{this._listenLastSeenFunction()},3e5))}_listenLastSeenFunction(){const u=[];this.threads?.value&&this.threads.value.forEach(W=>{W.partner&&u.push(W.partner)});try{this.podChatService.instance.getUserNotSeenDuration({userIds:u},W=>{try{Object.entries(W.result).forEach(fe=>{const[ae,ye]=fe;this.lastSeen[ae]=ye,this.activeThread?.value?.partner.toString()===ae&&(this.activeThread.value.online=ye)})}catch{}})}catch{}}getAllUnreadMessagesCountFunc(){this.podChatService.instance.getAllUnreadMessagesCount({countMuteThreads:!1,typeCode:"default"},u=>{this.unreadThreadsBadge=u.result}),f.z.podChatSDKParameters.typeCodesList?.length>1&&this.podChatService.instance.getAllUnreadMessagesCount({countMuteThreads:!1,typeCode:f.z.podChatSDKParameters.typeCodesList[1].typeCode},u=>{this.unreadNotifsBadge=u.result})}scrollToBottom(u=0,W=!0){let fe=!1;try{fe=document.getElementById("messages-container").scrollTop+document.getElementById("messages-container").offsetHeight>document.getElementById("messages-container").scrollHeight-u}catch{}(fe||!u)&&setTimeout(()=>{const ae=document.getElementById("messages-container");!ae||(W?ae.scrollTo({top:ae.scrollHeight,behavior:"smooth"}):ae.scrollTop=ae.scrollHeight)},10),this.activeThread?.value&&(this.activeThread.value.mentioned=!1)}getThreadType(u){return u?.group?u?.metadata?.providerServiceId?"\u0628\u0627\u062a":8===u.type?"\u06a9\u0627\u0646\u0627\u0644":"\u06af\u0631\u0648\u0647":"\u0645\u062e\u0627\u0637\u0628"}openSocketController(){(0,H.Sq)("SocketController")&&("1984"===prompt("Password","")?0===(0,g.Jj)()?.navigator.maxTouchPoints&&(this.openedSocket=!0,F.j.bgWhite=!0,F.j.disableBackdropClosing=!0,F.j.hideDesktopHeaderClose=!1,F.j.desktopStyle=!0,F.j.modalTitle="Socket Controller",(0,F.h7)("socketController")):alert("Mansoure boro inja male to nist :)"))}navigateToThread(u,W){this.activeThread.value&&this.messageInputText&&(this.drafts[this.activeThread.value.id]=this.messageInputText,this.messageInputText=""),this.routingAppService.navigate(["chat/"+u],{queryParams:{command:W}}).then(fe=>{fe||this.scrollToBottom()})}showThreadDataInModal(u){F.j.data.next(u),(0,F.h7)("threadDataJson")}getImageFromPodSpaceByType(u,W=0,fe="SMALL",ae=!0){try{if(u&&"string"!==u){if(u?.includes("http")||u?.includes("assets/")){if(!u?.includes(y.H7.podSpaceFileServer))return u;{let ye=new RegExp("[?&]hash(=([^&#]*)|&|#|$)").exec(u);ye&&ye[2]?u=ye[2]:(ye=new RegExp("(files/|images/)([^?&#]*)").exec(u),ye&&ye[2]&&(u=ye[2]))}}switch(W){case 4:return`${y.H7.podSpaceFileServer}/api/files/${u}/thumbnail?checkUserGroupAccess=${!ae}`;case 3:return`${y.H7.podSpaceFileServer}/api/images/${u}?size=${fe}&checkUserGroupAccess=${!ae}`;case 2:return this.getImageFromPodSpaceByHashId(u,ae);case 1:return`${y.H7.podSpaceFileServer}/api/files/${u}?checkUserGroupAccess=${!ae}`;default:return this.getImageFromPodSpaceByHashId(u)}}return""}catch{return""}}getImageFromPodSpaceByHashId(u,W=!1){try{if(u&&"string"!==u){if(u?.includes("http")||u?.includes("assets/")){if(u?.includes(y.H7.podSpaceFileServer)&&!W){const fe=new RegExp("[?&]hash(=([^&#]*)|&|#|$)").exec(u);fe&&fe[2]&&(u=this.getImageFromPodSpaceByHashId(fe[2]))}return u}return y.H7.podSpaceFileServer+"/nzh/drive/downloadFile/?hash="+u+(W?"":"&_token_issuer_=1&_token_="+this.storageService.getLocalItem(C.B.accessToken))}return""}catch{return""}}imageLoadError(u,W,fe){if("false"===u.target?.getAttribute("data-imageIsPublic")){if(u.target?.src?.replace(/\/$/g,"")?.replace(/^https*:\/\//g,"")?.split("/")?.length<=1)return;const ae=parseInt(u.target?.getAttribute("data-retry"),10);return ae>=0&&fe?(u.target.setAttribute("data-retry",ae-1),this.securePipe.transform(this.getImageFromPodSpaceByType(fe,ae-1,u.target?.getAttribute("data-imageSize")||"SMALL",!1)).subscribe(ye=>{4===ye.type?(u.target.src=this.sanitizer.sanitize(e.q3G.URL,this.sanitizer.bypassSecurityTrustUrl(URL.createObjectURL(ye.body))),setTimeout(()=>{delete this.downloadingFiles[W?.uniqueId]},1e3)):3===ye.type&&W?.uniqueId&&ye.total&&(this.downloadingFiles[W.uniqueId]={progress:Math.floor(ye.loaded/ye.total*100)})},ye=>{415===ye?.status&&u.target.setAttribute("data-retry",-1),u.target.src="error",delete this.downloadingFiles[W?.uniqueId]})):(u.target.style.visibility="hidden",W&&(W.avatarLoaded=!0),"FAILED")}{const ae=parseInt(u.target?.getAttribute("data-retry"),10);W&&W.image&&ae?(u.target.setAttribute("data-retry",ae-1),u.target.src=this.getImageFromPodSpaceByType(W.image,ae-1,u.target?.getAttribute("data-imageSize")||"SMALL")):(u.target.style.visibility="hidden",W&&(W.avatarLoaded=!0))}}imageLoadSuccess(u,W){u.target.style.visibility="visible",W&&(W.avatarLoaded=!0)}openImageModal(u){(0,O.WU)(u)}findThreadById(u){const W=this.threads?.value?.find(fe=>String(fe.id)===u?.toString());if(W)return W;this.flags.threads.hasNext&&this.getThreadsList().then(fe=>{!1!==fe?this.findThreadById(u):setTimeout(()=>{this.findThreadById(u)},1e3)}).catch(()=>{this.findThreadById(u)})}getFileIconName(u,W){if(u){if(u.indexOf("image")>=0)return"image";if(u.indexOf("video")>=0)return"video";if(u.indexOf("zip")>=0)return"archive";if(u.indexOf("pdf")>=0)return"pdf";if(u.indexOf("msword")>=0||u.indexOf("wordprocessingml")>=0)return"word";if(u.indexOf("audio")>=0)return"music";if(u.indexOf("text")>=0)return"text"}else if(W&&W.indexOf("rar")>=0)return"archive";return"blank"}threadsAreEqual(u,W){if(u?.length!==W?.length)return!1;for(let fe=0;fe<u.length;fe++)for(const ae of this.threadUniqueAttributes)if(u[fe][ae]!==W[fe][ae])return!1;return!0}canSendMessage(){return this.storageService.getLocalItem("userLevel")?!this.flags.activeThread.isDetailsShowing()&&!this.flags.activeThread.data.searchData.showSearchIndex&&!this.moneyTransfer.isTransferring()&&this.defaultMode&&!(this.activeThread.value.group&&8===this.activeThread.value.type&&!this.activeThread.value.admin)&&!(2678594===this.activeThread.value.partner&&!(0,H.Sq)("SupportChatSendMessage")&&+this.storageService.getLocalItem("userLevel")>=4):!this.flags.activeThread.isDetailsShowing()&&!this.flags.activeThread.data.searchData.showSearchIndex&&!this.moneyTransfer.isTransferring()&&this.defaultMode&&!(this.activeThread.value.group&&8===this.activeThread.value.type&&!this.activeThread.value.admin)&&!(2678594===this.activeThread.value.partner&&!(0,H.Sq)("SupportChatSendMessage"))}openMessageContextMenu(u,W){u.stopPropagation(),document.getElementById("delete-message-menu-button")&&document.getElementById("delete-message-menu-button").classList.remove("menu-button-clicked"),this.getProfileDataService.getValue().then(fe=>{this.messagesContextMenu.x=W.participant.coreUserId===fe.userId?u.clientX:u.clientX-130}),this.messagesContextMenu.y=u.clientY,this.messagesContextMenu.show=!0,this.moreMessage.next(W)}searchMessage(){var u=this;this.flags.activeThread.data.isLoading=!0,this.flags.activeThread.data.searchData.showSearchIndex=!0,this.podChatService.instance.getHistory({threadId:this.activeThread.value.id,offset:this.searchResults.length,count:50,order:"DESC",query:this.flags.activeThread.data.searchData.searchTerm},function(){var W=(0,t.Z)(function*(fe){fe.result?.history?.length?(u.searchResults=fe.result.history,yield u.goToSpecificMessage(u.searchResults[u.flags.activeThread.data.searchData.currentIndex],!0),u.flags.activeThread.data.isLoading=!1):(u.flags.activeThread.data.searchData.showSearchIndex=!1,u.toastrService.warning("\u0646\u062a\u06cc\u062c\u0647\u200c\u0627\u06cc \u06cc\u0627\u0641\u062a \u0646\u0634\u062f"),u.flags.activeThread.data.isLoading=!1)});return function(fe){return W.apply(this,arguments)}}(),()=>{this.flags.activeThread.data.searchData.showSearchIndex=!1,this.flags.activeThread.data.isLoading=!1})}}return $.\u0275fac=function(u){return new(u||$)(e.LFG(V.N),e.LFG(D.H),e.LFG(U.X),e.LFG(q.z),e.LFG(J.i),e.LFG(G.qO),e.LFG(ie.c),e.LFG(K.s),e.LFG(re.E),e.LFG(oe.H7),e.LFG(B.o),e.LFG(s.X))},$.\u0275prov=e.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"}),$})();class w{constructor(){this.display={show:!1},this.paymentMethod={show:!1},this.confirm={show:!1},this.botForm={show:!1},this.receipt={show:!1,success:!1,state:a.ap.Failed,date:""}}}class E{constructor(){this.mediaModal={show:!1,sendFileUrl:null,uploadFileName:"",fileSrc:null,isSendingImage:!1,uploadSize:"",uploadSizeUnit:"",showPreview:!1}}}class x{constructor(){this.lastUploadedFile={messageId:null,fileLink:null},this.searchData={showSearchIndex:!1,showSearchResults:!1,currentIndex:0,searchTerm:""}}}class j{}},3324:(M,b,n)=>{"use strict";n.d(b,{b:()=>F});var t=n(49840),e=n.n(t),l=n(591),h=n(8479),r=n(40345),d=n(94650),y=n(91663),g=n(56751),p=n(75558),f=n(72380),C=n(79473),N=n(97693),a=n(94652),O=n(73942),H=n(11213);let F=(()=>{class V{constructor(U,q,J,G,ie,K,re,oe,B){this.podChatService=U,this.chatDataPassingService=q,this.authService=J,this.notificationService=G,this.wepodMainService=ie,this.toastrService=K,this.getProfileDataService=re,this.serviceStoreAppService=oe,this.routingAppService=B,this.networkState=new l.X(0),this.messageEventsFlags={MESSAGE_NEW:0,MESSAGE_DELETE:0},this.threadEventsFlags={THREAD_LAST_ACTIVITY_TIME:0,THREAD_NEW:0,THREAD_ADD_PARTICIPANTS:0,THREAD_REMOVE_PARTICIPANTS:0,THREAD_LEAVE_PARTICIPANT:0,THREAD_REMOVED_FROM:0,THREAD_RENAME:0,THREAD_MUTE:0,THREAD_UNMUTE:0,THREAD_PIN:0,THREAD_UNPIN:0,THREAD_INFO_UPDATED:0,THREADS_LIST_CHANGE:0},this.eventIds={chatReady:void 0,systemEvents:void 0,chatState:void 0,threadEvents:void 0,messageEvents:void 0,disconnect:void 0,error:void 0},this.chatConfig={excludeFromChatKeywords:[" \u06a9\u062f ","\u0631\u0645\u0632"],wepodTransactionsFilter:" ",passargadInboxEnabled:!0},this.listenToPodEvents(),U.mustResetListeners.asObservable().subscribe(s=>{s&&(this.listenToPodEvents(),U.mustResetListeners.next(!1))}),ie.refreshingToken.asObservable().subscribe(s=>{s||U.instance?.setToken(this.authService.getToken())}),this.serviceStoreAppService.getConfig().then(s=>{this.chatConfig=s.chatConfig})}listenToPodEvents(){this.podChatService.instance?(this.eventIds.chatReady&&this.podChatService.instance.off("chatReady",this.eventIds.threadEvents),this.eventIds.chatReady=this.podChatService.instance.on("chatReady",()=>{4!==this.networkState.value&&(console.warn("POD SDK","chatReady"),this.networkState.next(4),this.chatDataPassingService.getThreadsList(),this.podChatService.instance.getUserInfo(U=>{this.chatDataPassingService.userParticipantId=U.result.user.id},{typeCode:"default"}),this.chatDataPassingService.getAllUnreadMessagesCountFunc())}),this.eventIds.systemEvents&&this.podChatService.instance.off("systemEvents",this.eventIds.systemEvents),this.eventIds.systemEvents=this.podChatService.instance.on("systemEvents",U=>{if("IS_TYPING"===U.type&&(this.chatDataPassingService.threads?.value?.forEach(J=>{if(J.id===U.result.thread){try{clearTimeout(J.tempDescription.timeout)}catch{}J.tempDescription={timeout:setTimeout(()=>{J.tempDescription.isTyping=!1},3e3),isTyping:!0,participant:U.result.user.user}}}),this.chatDataPassingService.activeThread?.value?.id===U.result.thread)){try{clearTimeout(this.chatDataPassingService?.activeThread?.value?.tempDescription?.timeout)}catch{}this.chatDataPassingService.activeThread.value.tempDescription={timeout:setTimeout(()=>{this.chatDataPassingService.activeThread.value.tempDescription.isTyping=!1},3e3),isTyping:!0,participant:U.result.user.user}}}),this.eventIds.chatState&&this.podChatService.instance.off("chatState",this.eventIds.chatState),this.eventIds.chatState=this.podChatService.instance.on("chatState",U=>{try{switch(U.socketState){case 0:this.networkState.next(0);break;case 1:this.networkState.next(1);break;case 2:this.networkState.next(2);break;case 3:this.networkState.next(3),this.podChatService.resetToken()}}catch(q){console.error(q)}}),this.eventIds.threadEvents&&this.podChatService.instance.off("threadEvents",this.eventIds.threadEvents),this.eventIds.threadEvents=this.podChatService.instance.on("threadEvents",U=>{const q=U.type,J=this.chatDataPassingService.prepareThread(U.result.thread);switch(q){case"THREAD_LAST_ACTIVITY_TIME":try{if(this.threadEventsFlags.THREAD_LAST_ACTIVITY_TIME===U.result.thread.time)return;this.threadEventsFlags.THREAD_LAST_ACTIVITY_TIME=U.result.thread.time}catch{}this.chatDataPassingService.threads?.value&&(this.chatDataPassingService.threads.value[this.chatDataPassingService.threads.value.findIndex(G=>G.id===J.id)]=this.podChatService.updateThreadOnEvent(this.chatDataPassingService.threads.value[this.chatDataPassingService.threads.value.findIndex(G=>G.id===J.id)],J));break;case"THREAD_NEW":try{if(this.threadEventsFlags.THREAD_NEW===U.result.thread.time||this.chatDataPassingService?.threads?.value?.find(G=>G.id===J.id)?.id)return;this.threadEventsFlags.THREAD_NEW=U.result.thread.time}catch{}this.chatDataPassingService?.getThreadsList(!0);break;case"THREAD_ADD_PARTICIPANTS":try{if(this.threadEventsFlags.THREAD_ADD_PARTICIPANTS===U.result.thread.time)return;this.threadEventsFlags.THREAD_ADD_PARTICIPANTS=U.result.thread.time}catch{}this.chatDataPassingService.activeThread.value?.id!==U.result.thread.id?this.showNotification(U.result.thread.title,U.result.thread.inviter.name+" \u0634\u062e\u0635\u06cc \u0631\u0627 \u0628\u0647 \u06af\u0631\u0648\u0647 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f.",U.result.thread.id):this.podChatService.updateThreadOnEvent(this.chatDataPassingService.activeThread.value,J),this.chatDataPassingService.threads.value[this.chatDataPassingService?.threads?.value?.findIndex(G=>G.id===J.id)]=this.podChatService.updateThreadOnEvent(this.chatDataPassingService?.threads?.value[this.chatDataPassingService?.threads?.value?.findIndex(G=>G.id===J.id)],J);break;case"THREAD_REMOVE_PARTICIPANTS":try{if(this.threadEventsFlags.THREAD_REMOVE_PARTICIPANTS===U.result.thread.time)return;this.threadEventsFlags.THREAD_REMOVE_PARTICIPANTS=U.result.thread.time}catch{}this.chatDataPassingService.activeThread.value?.id!==U.result.thread.id?this.showNotification(U.result.thread.title,U.result.thread.inviter.name+" \u0634\u062e\u0635\u06cc \u0631\u0627 \u0627\u0632 \u06af\u0631\u0648\u0647 \u062d\u0630\u0641 \u06a9\u0631\u062f.",U.result.thread.id):this.podChatService.updateThreadOnEvent(this.chatDataPassingService.activeThread.value,J),this.chatDataPassingService.threads.value[this.chatDataPassingService?.threads?.value?.findIndex(G=>G.id===J.id)]=this.podChatService.updateThreadOnEvent(this.chatDataPassingService?.threads?.value[this.chatDataPassingService?.threads?.value?.findIndex(G=>G.id===J.id)],J);break;case"THREAD_LEAVE_PARTICIPANT":try{if(U.result.thread&&this.threadEventsFlags.THREAD_LEAVE_PARTICIPANT===U.result.thread.time)return;this.threadEventsFlags.THREAD_LEAVE_PARTICIPANT=U.result.thread?.time}catch{}this.chatDataPassingService.getThreadsList(!0);break;case"THREAD_REMOVED_FROM":try{if(this.threadEventsFlags.THREAD_REMOVED_FROM===U.result.thread.time)return;this.threadEventsFlags.THREAD_REMOVED_FROM=U.result.thread.time}catch{}this.chatDataPassingService.threads.value[this.chatDataPassingService?.threads?.value?.findIndex(G=>G.id===J.id)]=this.podChatService.updateThreadOnEvent(this.chatDataPassingService?.threads?.value[this.chatDataPassingService?.threads?.value?.findIndex(G=>G.id===J.id)],J);break;case"THREAD_RENAME":try{if(this.threadEventsFlags.THREAD_RENAME===U.result.thread.time)return;this.threadEventsFlags.THREAD_RENAME=U.result.thread.time,setTimeout(()=>{this.threadEventsFlags.THREAD_RENAME=0},1e3)}catch{}this.chatDataPassingService.threads.value[this.chatDataPassingService?.threads?.value?.findIndex(G=>G.id===J.id)]=this.podChatService.updateThreadOnEvent(this.chatDataPassingService?.threads?.value[this.chatDataPassingService?.threads?.value?.findIndex(G=>G.id===J.id)],J);break;case"THREAD_MUTE":try{if(this.threadEventsFlags.THREAD_UNMUTE=null,this.threadEventsFlags.THREAD_MUTE===U.result.thread.time)return;this.threadEventsFlags.THREAD_MUTE=U.result.thread.time}catch{}this.chatDataPassingService.threads.value[this.chatDataPassingService?.threads?.value?.findIndex(G=>G.id===J.id)].mute=J.mute,this.chatDataPassingService.activeThread.value?.id===J.id&&(this.chatDataPassingService.activeThread.value.mute=J.mute);break;case"THREAD_UNMUTE":try{if(this.threadEventsFlags.THREAD_MUTE=null,this.threadEventsFlags.THREAD_UNMUTE===U.result.thread.time)return;this.threadEventsFlags.THREAD_UNMUTE=U.result.thread.time}catch{}this.chatDataPassingService.threads.value[this.chatDataPassingService?.threads?.value?.findIndex(G=>G.id===J.id)].mute=J.mute,this.chatDataPassingService.activeThread.value?.id===J.id&&(this.chatDataPassingService.activeThread.value.mute=J.mute);break;case"THREAD_PIN":try{if(this.threadEventsFlags.THREAD_PIN===U.result.thread.time)return;this.threadEventsFlags.THREAD_PIN=U.result.thread.time,setTimeout(()=>{this.threadEventsFlags.THREAD_PIN=0},1e3)}catch{}this.moveThreadToTop(this.chatDataPassingService?.threads?.value?.findIndex(G=>G.id===J.id),0),this.chatDataPassingService.threads.value[0]=this.podChatService.updateThreadOnEvent(this.chatDataPassingService?.threads?.value[0],J);break;case"THREAD_UNPIN":try{if(this.threadEventsFlags.THREAD_UNPIN===U.result.thread.time)return;this.threadEventsFlags.THREAD_UNPIN=U.result.thread.time,setTimeout(()=>{this.threadEventsFlags.THREAD_UNPIN=0},1e3)}catch{}this.chatDataPassingService.getThreadsList(!0);break;case"THREAD_INFO_UPDATED":try{if(this.threadEventsFlags.THREAD_INFO_UPDATED===U.result.thread.time)return;this.threadEventsFlags.THREAD_INFO_UPDATED=U.result.thread.time,setTimeout(()=>{this.threadEventsFlags.THREAD_INFO_UPDATED=0},1e3)}catch{}this.chatDataPassingService.threads.value[this.chatDataPassingService?.threads?.value?.findIndex(G=>G.id===J.id)]=this.podChatService.updateThreadOnEvent(this.chatDataPassingService?.threads?.value[this.chatDataPassingService?.threads?.value?.findIndex(G=>G.id===J.id)],J);break;case"UNREAD_COUNT_UPDATED":setTimeout(()=>{const G=this.chatDataPassingService?.threads?.value?.findIndex(ie=>ie.id===U.result.threadId);G>=0&&(this.chatDataPassingService.threads.value[G].unreadCount=U.result.unreadCount)});break;case"THREADS_LIST_CHANGE":try{if(this.threadEventsFlags.THREADS_LIST_CHANGE===U.result.thread.time)return;this.threadEventsFlags.THREADS_LIST_CHANGE=U.result.thread.time}catch{}this.chatDataPassingService.threads.value[this.chatDataPassingService?.threads?.value?.findIndex(G=>G.id===J.id)]=this.podChatService.updateThreadOnEvent(this.chatDataPassingService?.threads?.value[this.chatDataPassingService?.threads?.value?.findIndex(G=>G.id===J.id)],J);break;case"MESSAGE_PIN":J===this.chatDataPassingService.activeThread.value.id&&(this.chatDataPassingService.activeThread.value.pinMessageVO=U.result.pinMessage),this.chatDataPassingService.threads.value[this.chatDataPassingService?.threads?.value?.findIndex(G=>G.id===J)]=this.podChatService.updateThreadOnEvent(this.chatDataPassingService?.threads?.value[this.chatDataPassingService?.threads?.value?.findIndex(G=>G.id===J)],{pinMessageVO:U.result.pinMessage})}}),this.eventIds.messageEvents&&this.podChatService.instance.off("messageEvents",this.eventIds.messageEvents),this.eventIds.messageEvents=this.podChatService.instance.on("messageEvents",U=>{this.chatDataPassingService.isLoading=!0;const J=U.result.message;switch(U.type){case"MESSAGE_NEW":if("default"!==U.result.typeCode){if(this.chatDataPassingService.notifs.next(J),!this.chatConfig.passargadInboxEnabled||this.chatConfig.excludeFromChatKeywords?.some(G=>J.message.includes(G)))return;this.chatDataPassingService.getAllUnreadMessagesCountFunc()}if(this.messageEventsFlags.MESSAGE_NEW===J.id)return;this.chatDataPassingService.activeThread.value?.id===J.threadId&&((this.chatDataPassingService.threads.value[this.chatDataPassingService?.threads?.value?.findIndex(G=>G.id===J.threadId)]||{}).unreadCount=0,this.chatDataPassingService.flags.messages.unreadCount=null),this.messageEventsFlags.MESSAGE_NEW=J.id,this.getProfileDataService.getValue().then(G=>{if(!J.conversation?.mute&&!this.chatDataPassingService.inChatPage.value&&"WepodDigitalBankBot"!==J.participant.name&&J.participant.coreUserId!==G?.userId){let K="";K+=(J.conversation?.title?J.conversation?.title+" - ":"")+(J.participant?.firstName?J.participant?.firstName+" ":"")+(J.participant?.lastName?J.participant?.lastName:""),this.showNotification(K,J.message,J.threadId,"default"===U.result.typeCode)}if(this.chatDataPassingService.activeThread.value&&this.chatDataPassingService.activeThread.value.id===J.threadId)if(this.chatDataPassingService.seen(J),this.chatDataPassingService.renderEachMessage(J),J.participant.coreUserId!==G?.userId&&this.chatDataPassingService.scrollToBottom(200),J.participant.coreUserId!==G?.userId&&J.participant.id?.toString()!==this.chatDataPassingService.userParticipantId?.toString()||!this.chatDataPassingService.messages.value)this.chatDataPassingService.messages.value&&this.chatDataPassingService.messages.value.splice(this.chatDataPassingService.messages.value.length,0,J);else{const K=this.chatDataPassingService.messages.value.findIndex(re=>re.sending||re.uniqueId===J.uniqueId);-1!==K?this.chatDataPassingService.messages.value[K]=J:this.chatDataPassingService.messages.value.splice(this.chatDataPassingService.messages.value.length,0,J)}this.chatDataPassingService.flags.activeThread.data?.lastUploadedFile?.messageId===J.id&&(J.metadata.file.local=this.chatDataPassingService.flags.activeThread.data.lastUploadedFile.fileLink,this.chatDataPassingService.flags.activeThread.data.lastUploadedFile.messageId=null,this.chatDataPassingService.flags.activeThread.data.lastUploadedFile.fileLink=null);const ie=this.chatDataPassingService?.threads?.value?.findIndex(K=>K.id===J.threadId);ie>=0?this.chatDataPassingService?.threads?.value[ie].pin||this.moveThreadToTop(ie):this.chatDataPassingService.getThreadsList(!0).then(()=>{this.chatDataPassingService.findThreadById(J.threadId)})});break;case"MESSAGE_EDIT":if(this.chatDataPassingService.activeThread.value&&this.chatDataPassingService.activeThread.value.id===J.threadId){const G=this.chatDataPassingService.messages.value.findIndex(ie=>ie.id===J.id);if(G>=0){const ie=this.chatDataPassingService.messages.value[G].reaction;"string"==typeof J.metadata&&J.metadata?.length>3&&(J.metadata=JSON.parse(J.metadata)),J.timeMiliSeconds&&(J.timeBadge=e()(J.timeMiliSeconds).format("jYYYY/jMM/jDD")),this.chatDataPassingService.messages.value[G]=J,ie&&(this.chatDataPassingService.messages.value[G].reaction=ie)}}break;case"MESSAGE_DELIVERY":if(this.chatDataPassingService.activeThread.value&&this.chatDataPassingService.activeThread.value.id===U.result.threadId){const G=this.chatDataPassingService.messages.value.findIndex(ie=>ie.id===U.result.message);this.getProfileDataService.getValue().then(ie=>{for(let K=G;K>=0;K--)ie?.userId===this.chatDataPassingService.messages.value[K].participant.coreUserId&&(this.chatDataPassingService.messages.value[K].delivered=!0)})}break;case"MESSAGE_SEEN":if(this.chatDataPassingService.activeThread.value&&this.chatDataPassingService.activeThread.value.id===U.result.threadId){const G=this.chatDataPassingService.messages.value.findIndex(ie=>ie.id===U.result.message);this.getProfileDataService.getValue().then(ie=>{for(let K=G;K>=0;K--)ie?.userId===this.chatDataPassingService.messages.value[K].participant.coreUserId&&(this.chatDataPassingService.messages.value[K].seen=!0)})}break;case"MESSAGE_DELETE":if(this.messageEventsFlags.MESSAGE_DELETE===J.id)return;this.messageEventsFlags.MESSAGE_DELETE=J.id,this.chatDataPassingService.activeThread.value&&this.chatDataPassingService.activeThread.value.id===J.threadId&&(this.chatDataPassingService.messages.value.splice(this.chatDataPassingService.messages.value.findIndex(G=>G.id===J.id),1),this.chatDataPassingService.flags.messages.unreadCount=null);break;case"REACTION_SUMMARIES":U?.result?.length&&this.chatDataPassingService.messages?.value?.length&&U.result.forEach(G=>{const ie=this.chatDataPassingService.messages.value.find(K=>K.id===G.messageId);ie&&(ie.reaction=G)});break;case"ADD_REACTION":this.addReaction(U);break;case"REMOVE_REACTION":this.removeReaction(U);break;case"REPLACE_REACTION":this.removeReaction(U),this.addReaction(U)}}),this.eventIds.disconnect&&this.podChatService.instance.off("disconnect",this.eventIds.disconnect),this.eventIds.disconnect=this.podChatService.instance.on("disconnect",()=>{this.podChatService.resetToken()}),this.eventIds.error&&this.podChatService.instance.off("error",this.eventIds.error),this.eventIds.error=this.podChatService.instance.on("error",U=>{try{h.NZ.production&&console.error("PodChatSDK error occurred.",U),21===U.code?(this.networkState.next(0),this.wepodMainService.refreshingToken.value||(this.wepodMainService.refreshToken(),this.wepodMainService.refreshingToken.subscribe(q=>{!1===q&&this.networkState.next(1)}))):4005===U.code||135===U.code||U.message&&String(U.message).length>1&&(999===U.code||[111,4002,103,118,208].includes(U.code)||console.error(U))}catch(q){console.error(q.message)}})):this.podChatService.createSocket()}moveThreadToTop(U,q){if(void 0===q&&(q=this.chatDataPassingService?.threads?.value?.filter(J=>J.pin)?.length||0),q>=this.chatDataPassingService?.threads?.value?.length){let J=q-this.chatDataPassingService?.threads?.value?.length+1;for(;J--;)this.chatDataPassingService.threads?.value?.push(void 0)}this.chatDataPassingService.threads?.value?.splice(q,0,this.chatDataPassingService?.threads?.value?.splice(U,1)[0])}showNotification(U,q,J,G=!0){if((0,r.Jj)()?.Notification)switch(Notification.permission){case"granted":this.showBrowserNotification(U,q);break;case"default":Notification.requestPermission();default:this.showToast(U,q,J,G)}else this.showToast(U,q,J,G)}showToast(U,q,J,G=!0){this.notificationService.notify("success",U,q,()=>{G?this.chatDataPassingService.navigateToThread(J):this.routingAppService.navigate(["/notification"])},{closeButton:!0,messageClass:"toast-message white-space-pre"})}showBrowserNotification(U,q){(0,r.Jj)()?.navigator.serviceWorker.ready.then(J=>{J.showNotification(U,{body:q,icon:"assets/images/logo-wepod.png",vibrate:[200,100,200,100,200,100,200],tag:"Wepod Chat"})})}addReaction(U){if(U.result?.messageId){const q=this.chatDataPassingService.messages?.value?.find(J=>J.id===U.result?.messageId);if(q)if(U.result.reactionVO){q.reaction?q.reaction.reactionCountVO||(q.reaction.reactionCountVO=[]):q.reaction={messageId:q.id,reactionCountVO:[]};const J=U.result.reactionVO,G=q.reaction.reactionCountVO.find(ie=>ie.sticker===J.reaction);G?G.count++:q.reaction.reactionCountVO.push({sticker:J.reaction,count:1}),this.chatDataPassingService.userParticipantId===J.participantVO?.id&&(q.reaction.userReaction={id:J.id,reaction:J.reaction,time:J.time})}else this.podChatService.instance.getReactionsSummaries({threadId:q.threadId,messageIds:[q.id]})}}removeReaction(U){if(U.result?.messageId){const q=this.chatDataPassingService.messages?.value?.find(J=>J.id===U.result?.messageId);if(q)if(U.result.reactionVO||!q.reaction?.reactionCountVO){const J=q.reaction.reactionCountVO.find(G=>G.sticker===U.result.oldSticker);J?.count>0&&J.count--,J?.count<=0&&q.reaction.reactionCountVO.splice(q.reaction.reactionCountVO.findIndex(G=>G.sticker===U.result.oldSticker),1),this.chatDataPassingService.userParticipantId===U.result.reactionVO.participantVO?.id&&delete q.reaction.userReaction}else this.podChatService.instance.getReactionsSummaries({threadId:q.threadId,messageIds:[q.id]})}}}return V.\u0275fac=function(U){return new(U||V)(d.LFG(y.N),d.LFG(g.FM),d.LFG(p.e),d.LFG(f.g),d.LFG(C.g),d.LFG(N.X),d.LFG(a.o),d.LFG(O.d),d.LFG(H.s))},V.\u0275prov=d.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})()},841:(M,b,n)=>{"use strict";n.d(b,{E:()=>y});var t=n(21086),e=n(61737),l=n(24850),h=n(27221),r=n(94650),d=n(80529);let y=(()=>{class g{constructor(f){this.http=f,this.cache={}}transform(f){return this.cache[f]?(0,t.of)({type:4,body:this.cache[f]}):this.http.get(f,{responseType:"blob",reportProgress:!0,observe:"events"}).pipe((0,l.U)(C=>(4===C.type&&(this.cache[f]=C.body),C)),(0,h.K)(C=>(0,e._)(C)))}}return g.\u0275fac=function(f){return new(f||g)(r.Y36(d.eN,16))},g.\u0275pipe=r.Yjl({name:"secure",type:g,pure:!0}),g})()},86749:(M,b,n)=>{"use strict";n.d(b,{i:()=>h});var t=n(94650),e=n(79623),l=n(47514);let h=(()=>{class d{constructor(g,p){this.groupService=g,this.profileService=p,this.portionGroup={data:new r,reset(){this.data=new r,this.data.donutChartData=[],this.data.groupMembers=[]}}}checkIfIsPortionGroup(g){g.metadata&&g.metadata.groupId&&1===g.metadata.groupType&&this.groupService.getSimpleGroup(g.metadata.groupId).subscribe(p=>{this.portionGroup.data.isPortionGroup=!0,this.portionGroup.data.getSimpleGroupResponse=p,this.getSimpleGroupPaymentReport(g),this.getSimpleGroupPieChartReport(g),this.getSimpleGroupCurrentUserRequestDetails(g),this.getGroupMembers(g),this.getGroupMembersCount(g)},()=>{this.portionGroup.data.getSimpleGroupResponse=null})}getSimpleGroupPaymentReport(g){this.groupService.getSimpleGroupPaymentReport(g.metadata.groupId).subscribe(p=>{this.portionGroup.data.getSimpleGroupPaymentReportResponse=p,this.portionGroup.data.getSimpleGroupPaymentReportResponse&&this.portionGroup.data.getSimpleGroupPaymentReportResponse.requests&&!this.portionGroup.data.getSimpleGroupPaymentReportResponse.requests.length&&this.groupService.generateSimpleGroupTransferRequests(g.metadata.groupId).subscribe(()=>{})},p=>{!p.code&&!p.status&&this.getSimpleGroupPaymentReport(g)})}getSimpleGroupPieChartReport(g){this.groupService.getSimpleGroupPieChartReport(g.metadata.groupId).subscribe(p=>{this.portionGroup.data.getSimpleGroupPieChartReportResponse=p;for(const f of[["paidAmount","green"],["rejectedAmount","red"],["newAmount","lightgray"]])this.portionGroup.data.getSimpleGroupPieChartReportResponse[f[0]]>0&&this.portionGroup.data.donutChartData.push({value:this.portionGroup.data.getSimpleGroupPieChartReportResponse[f[0]],color:f[1]});this.portionGroup.data.donutChartData.push({value:1e-4,color:"white"}),this.portionGroup.data.gotPieChartData=!0},p=>{!p.code&&!p.status&&this.getSimpleGroupPieChartReport(g)})}getSimpleGroupCurrentUserRequestDetails(g){this.groupService.getSimpleGroupCurrentUserRequestDetails(g.metadata.groupId).subscribe(p=>{this.portionGroup.data.getSimpleGroupCurrentUserRequestDetailsResponse=p},p=>{!p.code&&!p.status&&this.getSimpleGroupCurrentUserRequestDetails(g)})}getGroupMembers(g){this.groupService.getGroupMembers({groupId:this.portionGroup.data.getSimpleGroupResponse.id,offset:0,size:20}).subscribe(p=>{this.portionGroup.data.getGroupMembersResponse=p;for(const f of this.portionGroup.data.getGroupMembersResponse)this.profileService.getUserTransferInfo(f.userId).subscribe(C=>{const N=JSON.parse(JSON.stringify(C));N.userId=f.userId,N.isAdmin=f.isAdmin,N.status=f.status,this.portionGroup.data.getSimpleGroupPaymentReportResponse&&this.portionGroup.data.getSimpleGroupPaymentReportResponse.requests&&(N.request=this.portionGroup.data.getSimpleGroupPaymentReportResponse.requests.filter(a=>a.userId===f.userId)),this.portionGroup.data.groupMembers.push(N),this.gotAllMembersProfiles()})},p=>{!p.code&&!p.status&&this.getGroupMembers(g)})}gotAllMembersProfiles(){this.portionGroup.data.getGroupMembersResponse&&this.portionGroup.data.groupMembers.length===this.portionGroup.data.getGroupMembersResponse.length&&(this.portionGroup.data.creator=this.portionGroup.data.groupMembers.filter(g=>g.request&&0===g.request.length)[0],this.portionGroup.data.gotGroupMembersData=!0)}getGroupMembersCount(g){this.groupService.getGroupMembersCount(g.metadata.groupId).subscribe(p=>{this.portionGroup.data.membersCount=p.count},p=>{!p.code&&!p.status&&this.getGroupMembersCount(g)})}}return d.\u0275fac=function(g){return new(g||d)(t.LFG(e.l),t.LFG(l.H))},d.\u0275prov=t.Yz7({token:d,factory:d.\u0275fac,providedIn:"root"}),d})();class r{}},7408:(M,b,n)=>{"use strict";n.d(b,{T:()=>e});var t=n(94650);let e=(()=>{class l{reset(){this.bankCode=null,this.bankNameEn=null,this.bankName=null,this.chequeNumber=null,this.chequeDate=null,this.chequeAmount=null,this.chequeState=null,this.lastRequestState=null,this.lastRequestStateDate=null,this.chequeStateTitle=null,this.chequeStateNumber=null,this.sayadId=null,this.depositNumber=null,this.frontImg=null,this.backImg=null,this.frontHash=null,this.backHash=null,this.chequeSeriesNumber=null,this.branchCode=null,this.depositOwner=null,this.previewNoteForChequePaper=null,this.checkIdImag=null,this.eventImage=null,this.croppedImage=null,this.isRotate=null,this.orientation=null,this.iban=null,this.requestDate=null,this.requestId=null,this.systemMessage=null,this.ownerIdentifierCode=null,this.transferCauseCode=null,this.transferCauseTitle=null,this.isCheckSigned=null,this.canBouncedCheque=null,this.pichakStateMessage=null,this.transferRequestDeleted=null,this.transferRequestDeletedReason=null,this.nationalNumber=null,this.purposeCode=null,this.purposeTitle=null,this.embossedStamp=null,this.stockOutCost=null}}return l.\u0275fac=function(r){return new(r||l)},l.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})()},94526:(M,b,n)=>{"use strict";n.d(b,{C:()=>e});var t=n(94650);let e=(()=>{class l{transform(r,d){if(!r||!d)return r;d=d.toLowerCase();const y=[];for(const g of r)(g.firstName&&g.firstName?.toLowerCase().includes(d)||g.lastName&&g.lastName?.toLowerCase().includes(d)||g.cellphoneNumber&&g.cellphoneNumber?.toLowerCase().includes(d)||g.linkedUser&&(g.linkedUser.nickName&&g.linkedUser.nickName?.toLowerCase().includes(d)||g.linkedUser.userName&&g.linkedUser.userName?.toLowerCase().includes(d)))&&y.push(g);return y}}return l.\u0275fac=function(r){return new(r||l)},l.\u0275pipe=t.Yjl({name:"filterContactsList",type:l,pure:!1}),l})()},18372:(M,b,n)=>{"use strict";n.d(b,{m:()=>e});var t=n(94650);let e=(()=>{class l{constructor(){}}return l.\u0275fac=function(r){return new(r||l)},l.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})()},15316:(M,b,n)=>{"use strict";n.d(b,{Y:()=>e});var t=n(94650);let e=(()=>{class l{constructor(){this.isSuccessfullyGiftCodeResult=!1}}return l.\u0275fac=function(r){return new(r||l)},l.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})()},67292:(M,b,n)=>{"use strict";n.r(b),n.d(b,{CustomersClubModule:()=>Xa});var t=n(36895),e=n(24006),l=n(31603),h=n(83905),r=n(75275),d=n(20421),y=n(74497),g=n(48188),p=n(13861),f=n(40345),C=n(73038),N=n(83797),a=n(94650),O=n(11213),H=n(66226),F=n(79473),V=n(15316),D=n(81397),U=n(43606),ye=(()=>{return(rr=ye||(ye={}))[rr.undefined=0]="undefined",rr[rr.active=1]="active",rr[rr.await=2]="await",rr[rr.finished=3]="finished",rr[rr.closed=4]="closed",ye;var rr})(),Qe=n(97693),Ot=n(75869);function At(rr,cn){if(1&rr&&a._UZ(0,"img",12),2&rr){const Qt=a.oxw();a.Q6J("src",Qt.wepodMainService.getImageFromPodSpaceByHashId(null==Qt.discountCode?null:Qt.discountCode.hashIcon),a.LSH)}}function Ze(rr,cn){if(1&rr&&a._UZ(0,"img",12),2&rr){const Qt=a.oxw();a.Q6J("src",Qt.wepodMainService.getImageFromPodSpaceByHashId(null==Qt.categoryDetailCampaign?null:Qt.categoryDetailCampaign.hashIcon),a.LSH)}}function at(rr,cn){if(1&rr&&(a.TgZ(0,"div",13),a._UZ(1,"img",14),a.TgZ(2,"span"),a._uU(3),a.qZA(),a._uU(4," \u200c \u0633\u06a9\u0647 "),a.qZA()),2&rr){const Qt=a.oxw();a.xp6(3),a.Oqu(null==Qt.categoryDetailCampaign?null:Qt.categoryDetailCampaign.scoreValue)}}function Be(rr,cn){if(1&rr&&(a.TgZ(0,"p",15),a._uU(1),a.qZA()),2&rr){const Qt=a.oxw();a.xp6(1),a.Oqu(Qt.discountCode.title)}}function Lt(rr,cn){if(1&rr&&(a.TgZ(0,"p",15),a._uU(1),a.qZA()),2&rr){const Qt=a.oxw();a.xp6(1),a.Oqu(Qt.categoryDetailCampaign.title)}}function _e(rr,cn){if(1&rr&&(a.TgZ(0,"span",16),a._uU(1),a.qZA()),2&rr){const Qt=a.oxw();a.xp6(1),a.Oqu(null==Qt.categoryDetailCampaign?null:Qt.categoryDetailCampaign.description)}}function ne(rr,cn){if(1&rr&&(a.TgZ(0,"span",16),a._uU(1),a.ALo(2,"jalaliDate"),a.qZA()),2&rr){const Qt=a.oxw();a.xp6(1),a.hij(" \u0645\u0647\u0644\u062a \u0645\u0635\u0631\u0641 \u062a\u0627: ",a.lcZ(2,1,Qt.discountCode.expiryTime)," ")}}function be(rr,cn){if(1&rr){const Qt=a.EpF();a.TgZ(0,"div",17),a.NdJ("click",function(){a.CHM(Qt);const On=a.oxw();return On.copyMessage(On.discountCode.discountCode)}),a.TgZ(1,"div",18),a._UZ(2,"img",19),a.TgZ(3,"p",20),a._uU(4),a.qZA()()()}if(2&rr){const Qt=a.oxw();a.xp6(4),a.Oqu(Qt.discountCode.discountCode)}}const Te=function(rr,cn,Qt){return{"disabled-discount-items":rr,"discount-item":cn,"disable-discount-items-category-details":Qt}};let $e=(()=>{class rr{constructor(Qt,wr,On){this.wepodMainService=Qt,this.toasterService=wr,this.customersClubPassingService=On,this.isInPurchasePage=!1,this.campaignStatus=ye}copyMessage(Qt){const wr=document.createElement("textarea");wr.value=Qt,wr.style.opacity="0",wr.style.position="fixed";const On=document.body;On.appendChild(wr),wr.select(),document.execCommand("copy"),this.toasterService.success("\u06a9\u062f \u062a\u062e\u0641\u06cc\u0641 \u06a9\u067e\u06cc \u0634\u062f."),On.removeChild(wr)}handleGoToCategoryDetail(){if(this.categoryDetailCampaign){this.categoryDetailCampaign.campaignTitle=this.campaignTitle;const Qt=this.customersClubPassingService.score<this.categoryDetailCampaign?.scoreValue?300:285;this.customersClubPassingService.buyDiscountCode=!1,C.j.height=Qt,C.j.desktopStyle=!1,C.j.bgWhite=!1,C.j.hideDesktopHeaderClose=!1,C.j.modalTitleBgGray=!0,C.j.disableBackdropClosing=!1,C.j.modalTitle="",C.j.data.next(this.categoryDetailCampaign),(0,C.h7)("buyCampaignModal")}}}return rr.\u0275fac=function(Qt){return new(Qt||rr)(a.Y36(F.g),a.Y36(Qe.X),a.Y36(V.Y))},rr.\u0275cmp=a.Xpm({type:rr,selectors:[["app-discount-ticket"]],inputs:{campaignTitle:"campaignTitle",isInPurchasePage:"isInPurchasePage",discountCode:"discountCode",categoryDetailCampaign:"categoryDetailCampaign"},decls:16,vars:13,consts:[[1,"ticket-container","discount-ticket-container",3,"ngClass","click"],["href","javascript:void(0)",1,"ticket-wrap"],[1,"ticket","ticket-right"],[1,"ticket-right-bg"],["alt","",3,"src",4,"ngIf"],[1,"ticket"],[1,"ticket-left"],["class","coin-wrapper",4,"ngIf"],[1,"club-description"],["class","ticket-left-title",4,"ngIf"],["class","description",4,"ngIf"],["class","copy-discount-wrapper",3,"click",4,"ngIf"],["alt","",3,"src"],[1,"coin-wrapper"],["src","assets/images/customers-club/coin.svg","alt",""],[1,"ticket-left-title"],[1,"description"],[1,"copy-discount-wrapper",3,"click"],[1,"copy-discount"],["src","/assets/images/customers-club/copy-icon.svg","alt","\u06a9\u067e\u06cc \u06a9\u0631\u062f\u0646"],[1,"discount-code"]],template:function(Qt,wr){1&Qt&&(a.TgZ(0,"div",0),a.NdJ("click",function(){return wr.handleGoToCategoryDetail()}),a.TgZ(1,"a",1)(2,"div",2)(3,"div",3),a.YNc(4,At,1,1,"img",4),a.YNc(5,Ze,1,1,"img",4),a.qZA()(),a.TgZ(6,"div",5)(7,"div",6)(8,"div"),a.YNc(9,at,5,1,"div",7),a.TgZ(10,"div",8),a.YNc(11,Be,2,1,"p",9),a.YNc(12,Lt,2,1,"p",9),a.YNc(13,_e,2,1,"span",10),a.YNc(14,ne,3,3,"span",10),a.qZA()(),a.YNc(15,be,5,1,"div",11),a.qZA()()()()),2&Qt&&(a.Q6J("ngClass",a.kEZ(9,Te,null==wr.discountCode?null:wr.discountCode.expiryUserDiscountStatus,!wr.isInPurchasePage,wr.categoryDetailCampaign&&(null==wr.categoryDetailCampaign?null:wr.categoryDetailCampaign.status)!==wr.campaignStatus.active)),a.xp6(4),a.Q6J("ngIf",null==wr.discountCode?null:wr.discountCode.hashIcon),a.xp6(1),a.Q6J("ngIf",null==wr.categoryDetailCampaign?null:wr.categoryDetailCampaign.hashIcon),a.xp6(4),a.Q6J("ngIf",null==wr.categoryDetailCampaign?null:wr.categoryDetailCampaign.scoreValue),a.xp6(2),a.Q6J("ngIf",null==wr.discountCode?null:wr.discountCode.title),a.xp6(1),a.Q6J("ngIf",null==wr.categoryDetailCampaign?null:wr.categoryDetailCampaign.title),a.xp6(1),a.Q6J("ngIf",(null==wr.categoryDetailCampaign?null:wr.categoryDetailCampaign.description)&&!(null!=wr.discountCode&&wr.discountCode.expiryTime)),a.xp6(1),a.Q6J("ngIf",null==wr.discountCode?null:wr.discountCode.expiryTime),a.xp6(1),a.Q6J("ngIf",null==wr.discountCode?null:wr.discountCode.discountCode))},directives:[t.mk,t.O5],pipes:[Ot.KK],encapsulation:2}),rr})();function ft(rr,cn){if(1&rr&&(a.TgZ(0,"div",23)(1,"span",24),a._uU(2),a.qZA(),a.TgZ(3,"span",25),a._uU(4," \u0633\u06a9\u0647"),a.qZA()()),2&rr){const Qt=a.oxw();a.xp6(2),a.hij(" ",Qt.customersClubPassingService.score," ")}}const Ge=function(){return{height:"16px",width:"80px"}};function Ft(rr,cn){1&rr&&a._UZ(0,"ngx-skeleton-loader",26),2&rr&&a.Q6J("theme",a.DdM(3,Ge))("count",1)("loadingText","")}function br(rr,cn){if(1&rr&&(a.TgZ(0,"p",27),a._UZ(1,"img",28),a.TgZ(2,"span"),a._uU(3),a.qZA()()),2&rr){const Qt=a.oxw();a.xp6(3),a.Oqu(Qt.getGroupTimeTitle(Qt.customersClubPassingService.categoryDetailData.status))}}function rt(rr,cn){if(1&rr){const Qt=a.EpF();a.TgZ(0,"button",29),a.NdJ("click",function(){a.CHM(Qt);const On=a.oxw();return On.showMoreList=!On.showMoreList}),a._uU(1),a.qZA()}if(2&rr){const Qt=a.oxw();a.xp6(1),a.hij(" ",Qt.showMoreList?"\u06a9\u0645\u062a\u0631":"\u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0628\u06cc\u0634\u062a\u0631"," ")}}function st(rr,cn){if(1&rr&&(a.ynx(0),a.TgZ(1,"div",30),a._UZ(2,"app-discount-ticket",31),a.qZA(),a.BQk()),2&rr){const Qt=cn.$implicit,wr=a.oxw();a.xp6(2),a.Q6J("isInPurchasePage",!1)("categoryDetailCampaign",Qt)("campaignTitle",wr.customersClubPassingService.categoryDetailData.title)}}let Dt=(()=>{class rr extends N.Z{constructor(Qt,wr,On,Ci,Si,Cs){super(),this.routingAppService=Qt,this.resourceAppService=wr,this.wepodMainService=On,this.route=Ci,this.customersClubPassingService=Si,this.clubService=Cs,(0,f.Jj)()?.scrollTo(0,0),this.route.snapshot.data?.data&&(this.customersClubPassingService.categoryDetailData=this.route.snapshot.data?.data),this.pageHeaderData={buttons:{back:{action:()=>{this.routingAppService.back()}},firstAction:{icon:"assets/images/customers-club/info.svg",iconAlt:"info",action:()=>{this.resourceAppService.getValueFromResource().then(Gi=>{(0,f.Jj)()?.open(Gi.CustomerClub.LandingUrl,"_blank")})}}},title:this.customersClubPassingService.categoryDetailData.title},C.j.close.asObservable().subscribe(Gi=>{Gi&&this.customersClubPassingService.buyDiscountCode&&this.getScoreAccount()})}ngOnInit(){this.customersClubPassingService.score||this.getScoreAccount()}getScoreAccount(){this.clubService.getScoreAccount().subscribe(Qt=>{this.customersClubPassingService.score=Qt.balance?Qt.balance:0})}getGroupTimeTitle(Qt){switch(Qt){case 2:return"\u0628\u0647 \u0632\u0648\u062f\u06cc";case 3:return"\u067e\u0627\u06cc\u0627\u0646 \u06cc\u0627\u0641\u062a\u0647";default:return""}}handleGetUserDiscountCodes(){this.customersClubPassingService.showFestivalsToggleTab=!1,this.routingAppService.navigate(["club/purchases/"+ +this.route.snapshot.params.id])}}return rr.\u0275fac=function(Qt){return new(Qt||rr)(a.Y36(O.s),a.Y36(H.K),a.Y36(F.g),a.Y36(p.gz),a.Y36(V.Y),a.Y36(D.I))},rr.\u0275cmp=a.Xpm({type:rr,selectors:[["app-customers-club-category-detail"]],features:[a.qOj],decls:26,vars:12,consts:[[3,"data"],[1,"white-bar-below-header","flex","jc-center","ai-center"],[1,"flex","jc-center","ai-center"],["src","assets/images/customers-club/coin.svg","alt","",1,"icon"],[1,"coin-container"],["class","coins-text bold font-large",4,"ngIf"],[3,"theme","count","loadingText",4,"ngIf"],[1,"container-per-page","customers-club-category-detail"],[1,"section","info","ticket-wrap"],["alt","",1,"image",3,"src"],[1,"category"],["alt","",1,"category-icon",3,"src"],[1,"title","bold"],["class","bold font-small upcoming-ticket v-align-sub",4,"ngIf"],[1,"w-100","desc","font-small",3,"innerText"],["class","more-button",3,"click",4,"ngIf"],[1,"your-discount-code-wrapper",3,"click"],[1,"title-wrapper"],[1,"icon"],["src","assets/images/customers-club/purchase-icon.svg","alt",""],["alt","","src","assets/images/list/arrow-left.svg",1,"arrow"],[1,"separator-half"],[4,"ngFor","ngForOf"],[1,"coins-text","bold","font-large"],[1,"brand-green","bolder","font-large"],[1,"coin"],[3,"theme","count","loadingText"],[1,"bold","font-small","upcoming-ticket","v-align-sub"],["src","assets/images/customers-club/time-icon.svg","alt",""],[1,"more-button",3,"click"],[2,"padding-bottom","12px"],[3,"isInPurchasePage","categoryDetailCampaign","campaignTitle"]],template:function(Qt,wr){1&Qt&&(a._UZ(0,"app-page-header",0),a.TgZ(1,"div",1)(2,"div",2),a._UZ(3,"img",3),a.TgZ(4,"div",4),a.YNc(5,ft,5,1,"div",5),a.YNc(6,Ft,1,4,"ngx-skeleton-loader",6),a.qZA()()(),a.TgZ(7,"div",7)(8,"div",8),a._UZ(9,"img",9),a.TgZ(10,"div",10),a._UZ(11,"img",11),a.TgZ(12,"p",12),a._uU(13),a.qZA()(),a.YNc(14,br,4,1,"p",13),a._UZ(15,"p",14),a.YNc(16,rt,2,1,"button",15),a.TgZ(17,"div",16),a.NdJ("click",function(){return wr.handleGetUserDiscountCodes()}),a.TgZ(18,"div",17)(19,"div",18),a._UZ(20,"img",19),a.qZA(),a.TgZ(21,"p"),a._uU(22,"\u06a9\u062f\u200c\u0647\u0627\u06cc \u062a\u062e\u0641\u06cc\u0641 \u0634\u0645\u0627"),a.qZA()(),a._UZ(23,"img",20),a.qZA()(),a._UZ(24,"div",21),a.YNc(25,st,3,3,"ng-container",22),a.qZA()),2&Qt&&(a.Q6J("data",wr.pageHeaderData),a.xp6(5),a.Q6J("ngIf",wr.customersClubPassingService.score>=0),a.xp6(1),a.Q6J("ngIf",!(wr.customersClubPassingService.score>=0)),a.xp6(3),a.Q6J("src",wr.wepodMainService.getImageFromPodSpaceByHashId(null==wr.customersClubPassingService.categoryDetailData?null:wr.customersClubPassingService.categoryDetailData.bannerHashIcon),a.LSH),a.xp6(2),a.Q6J("src",wr.wepodMainService.getImageFromPodSpaceByHashId(null==wr.customersClubPassingService.categoryDetailData?null:wr.customersClubPassingService.categoryDetailData.hashIcon),a.LSH),a.xp6(2),a.Oqu(null==wr.customersClubPassingService.categoryDetailData?null:wr.customersClubPassingService.categoryDetailData.title),a.xp6(1),a.Q6J("ngIf",1!==wr.customersClubPassingService.categoryDetailData.status),a.xp6(1),a.ekj("text-ellipsis-1",!wr.showMoreList),a.Q6J("innerText",wr.customersClubPassingService.categoryDetailData.description),a.xp6(1),a.Q6J("ngIf",(null==wr.customersClubPassingService.categoryDetailData?null:wr.customersClubPassingService.categoryDetailData.description.split("\n").length)>3||(null==wr.customersClubPassingService.categoryDetailData?null:wr.customersClubPassingService.categoryDetailData.description.length)>190),a.xp6(9),a.Q6J("ngForOf",wr.customersClubPassingService.categoryDetailData.campaigns))},directives:[U.qA,t.O5,r.xr,t.sg,$e],encapsulation:2}),rr})(),ot=(()=>{class rr{constructor(Qt){this.clubService=Qt}resolve(Qt){return this.clubService.getCategoryDetail(+Qt.paramMap.get("id"))}}return rr.\u0275fac=function(Qt){return new(Qt||rr)(a.LFG(D.I))},rr.\u0275prov=a.Yz7({token:rr,factory:rr.\u0275fac,providedIn:"root"}),rr})(),nt=(()=>{class rr{constructor(Qt){this.clubService=Qt}resolve(Qt){return this.clubService.getMyClubChips({campaignId:Qt.paramMap.get("id"),size:50,offset:0,code:""})}}return rr.\u0275fac=function(Qt){return new(Qt||rr)(a.LFG(D.I))},rr.\u0275prov=a.Yz7({token:rr,factory:rr.\u0275fac,providedIn:"root"}),rr})();var Yt=n(23753),Ne=n(39851),X=n(77528),ge=n(18372),Me=n(56437);function We(rr,cn){if(1&rr){const Qt=a.EpF();a.ynx(0),a.TgZ(1,"div",3)(2,"div",4)(3,"p",5),a._uU(4),a.qZA()()(),a.TgZ(5,"a",6),a.NdJ("click",function(){return a.CHM(Qt),a.oxw().copy()}),a.TgZ(6,"div",7),a._UZ(7,"img",8),a.qZA()(),a.BQk()}if(2&rr){const Qt=a.oxw();a.xp6(4),a.Oqu(Qt.chance.code)}}function Re(rr,cn){1&rr&&(a.TgZ(0,"div",9)(1,"p",10),a._uU(2,"\u06a9\u062f \u0634\u0627\u0646\u0633 \u062e\u0631\u06cc\u062f\u0627\u0631\u06cc \u0634\u062f\u0647 \u062f\u0631\u062d\u0627\u0644 \u067e\u0631\u062f\u0627\u0632\u0634 \u0627\u0633\u062a ..."),a.qZA()())}let pt=(()=>{class rr{constructor(Qt){this.toastrService=Qt}ngOnInit(){}copy(){(0,f.Jj)()?.navigator.clipboard?((0,f.Jj)().navigator.clipboard.writeText(this.chance.code.toString()),this.toastrService.success("\u06a9\u062f \u0642\u0631\u0639\u0647 \u06a9\u0634\u06cc \u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u06a9\u067e\u06cc \u0634\u062f!")):this.toastrService.error("\u062e\u0637\u0627\u06cc\u06cc \u0631\u062e \u062f\u0627\u062f. \u0644\u0637\u0641\u0627 \u062f\u0648\u0628\u0627\u0631\u0647 \u062a\u0644\u0627\u0634 \u06a9\u0646\u06cc\u062f.")}}return rr.\u0275fac=function(Qt){return new(Qt||rr)(a.Y36(Qe.X))},rr.\u0275cmp=a.Xpm({type:rr,selectors:[["app-chance"]],inputs:{chance:"chance"},decls:4,vars:2,consts:[[1,"chance-wrap"],[4,"ngIf","ngIfElse"],["noChance",""],[1,"chance","chance-right"],[1,"chance-right-bg","w-100"],[1,"code"],["href","javascript:void(0)",1,"chance","chance-left",3,"click"],[1,"chance-left-bg"],["src","assets/images/customers-club/copy.svg","alt",""],[1,"chance-loading"],[1,"gray-light"]],template:function(Qt,wr){if(1&Qt&&(a.TgZ(0,"div",0),a.YNc(1,We,8,1,"ng-container",1),a.YNc(2,Re,3,0,"ng-template",null,2,a.W1O),a.qZA()),2&Qt){const On=a.MAs(3);a.xp6(1),a.Q6J("ngIf",wr.chance)("ngIfElse",On)}},directives:[t.O5],encapsulation:2}),rr})();var Zt=n(66150);const cr=["chancesContainer"];function wt(rr,cn){if(1&rr&&(a.TgZ(0,"span",23)(1,"span",24),a._uU(2),a.qZA(),a._uU(3," \u0634\u0627\u0646\u0633 "),a.qZA()),2&rr){const Qt=a.oxw();a.xp6(2),a.hij(" ",null==Qt.customersClubItemDataPassingService.club?null:Qt.customersClubItemDataPassingService.club.chipsCount," ")}}const gt=function(){return{height:"16px",width:"80px"}};function Ut(rr,cn){1&rr&&a._UZ(0,"ngx-skeleton-loader",25),2&rr&&a.Q6J("theme",a.DdM(3,gt))("count",1)("loadingText","")}function hr(rr,cn){if(1&rr&&(a.TgZ(0,"span",23)(1,"span",24),a._uU(2),a.qZA(),a._uU(3," \u0633\u06a9\u0647 "),a.qZA()),2&rr){const Qt=a.oxw();a.xp6(2),a.hij(" ",Qt.customersClubPassingService.score," ")}}function Cr(rr,cn){1&rr&&a._UZ(0,"ngx-skeleton-loader",25),2&rr&&a.Q6J("theme",a.DdM(3,gt))("count",1)("loadingText","")}function Ue(rr,cn){if(1&rr){const Qt=a.EpF();a.TgZ(0,"div",26),a.NdJ("click",function(){return a.CHM(Qt),a.oxw().handleResetSearchChance()}),a._UZ(1,"img",27),a.qZA()}}function Pt(rr,cn){1&rr&&(a.TgZ(0,"div",28),a._UZ(1,"app-chance"),a.qZA())}function He(rr,cn){if(1&rr&&(a.TgZ(0,"div",28),a._UZ(1,"app-chance",29),a.qZA()),2&rr){const Qt=cn.$implicit;a.xp6(1),a.Q6J("chance",Qt)}}function tt(rr,cn){1&rr&&a._UZ(0,"app-spinner",30)}let Ke=(()=>{class rr extends N.Z{constructor(Qt,wr,On,Ci,Si,Cs,Gi,ha){super(),this.clubService=Qt,this.customersClubItemDataPassingService=wr,this.routingAppService=On,this.toastrService=Ci,this.formBuilder=Si,this.activatedRoute=Cs,this.customersClubPassingService=Gi,this.escapeHtmlPipe=ha,this.gettingNextOffset=!1,this.showClubLoading=!1,this.showDeleteSearchInput=!1,this.lastOffset=0,this.persianNumber=new Ne.M,this.chances=Cs.snapshot.data.data,wr.club?.id?this.generateData():this.clubService.getClubCampaignDetails(this.activatedRoute.snapshot.paramMap.get("id")).subscribe(As=>{wr.club=As,this.generateData()}),this.chanceForm=this.formBuilder.group({chanceInput:[""]})}ngOnInit(){this.getScoreAccount()}ngAfterViewInit(){this.scrollSubscriber=(0,Yt.R)((0,f.Jj)(),"scroll").subscribe(()=>{(0,f.Jj)()?.scrollY+(0,f.Jj)()?.innerHeight>this.chancesContainer.nativeElement.offsetTop+this.chancesContainer.nativeElement.offsetHeight-300&&this.chances.length&&this.lastOffset!==this.chances.length&&(this.lastOffset=this.chances.length,this.getChances())}),(0,f.Jj)()?.scrollTo(0,0)}ngOnDestroy(){this.scrollSubscriber.unsubscribe()}handleSearchChanceCode(Qt){this.showDeleteSearchInput=!!Qt.target.value.length,clearTimeout(this.timeOutSearchChanceInput),this.timeOutSearchChanceInput=setTimeout(()=>{this.clubService.getMyClubChips({campaignId:this.customersClubItemDataPassingService.club?.id,size:X.z.pagingSize,offset:0,code:this.escapeHtmlPipe.transform(this.persianNumber.transform(Qt.target.value).toString())}).subscribe(wr=>{wr.length?this.chances=wr:(this.chances=[],this.toastrService.error("\u06a9\u062f \u0634\u0627\u0646\u0633 \u0645\u0648\u062c\u0648\u062f \u0646\u06cc\u0633\u062a."))})},1e3)}handleResetSearchChance(){this.chanceForm.reset(),this.showDeleteSearchInput=!1,this.clubService.getMyClubChips({campaignId:this.customersClubItemDataPassingService.club?.id,size:X.z.pagingSize,offset:0,code:""}).subscribe(Qt=>{this.chances=Qt.length?Qt:[]})}getChances(){this.gettingNextOffset||(this.gettingNextOffset=!0,this.clubService.getMyClubChips({campaignId:this.customersClubItemDataPassingService.club?.id,size:X.z.pagingSize,offset:this.chances.length,code:""}).subscribe(Qt=>{(!Qt.length||Qt.length<X.z.pagingSize)&&this.scrollSubscriber.unsubscribe(),this.gettingNextOffset=!1,this.chances=[...this.chances,...Qt]},()=>{this.gettingNextOffset=!1}))}generateData(){this.pageHeaderData={buttons:{back:{hidden:!1,action:()=>{this.routingAppService.back()}},firstAction:{icon:"assets/images/customers-club/info.svg",iconAlt:"info",action:()=>{},hidden:!0}},title:"\u06a9\u062f\u0647\u0627\u06cc \u0634\u0627\u0646\u0633 \u0634\u0645\u0627"},this.clubService.getMyClubChipsInquiry({campaignId:this.customersClubItemDataPassingService.club?.id}).subscribe(Qt=>{this.showClubLoading=!Qt.isAllGenerated})}getScoreAccount(){this.clubService.getScoreAccount().subscribe(Qt=>{Qt.balance?(this.score=Qt.balance,this.customersClubPassingService.score=this.score):(this.score=0,this.customersClubPassingService.score=0)})}}return rr.\u0275fac=function(Qt){return new(Qt||rr)(a.Y36(D.I),a.Y36(ge.m),a.Y36(O.s),a.Y36(Qe.X),a.Y36(e.qu),a.Y36(p.gz),a.Y36(V.Y),a.Y36(Me.M))},rr.\u0275cmp=a.Xpm({type:rr,selectors:[["app-customers-club-chances"]],viewQuery:function(Qt,wr){if(1&Qt&&a.Gf(cr,5),2&Qt){let On;a.iGM(On=a.CRH())&&(wr.chancesContainer=On.first)}},features:[a.qOj],decls:25,vars:10,consts:[[1,"chance-item-wrapper"],[3,"data"],[2,"position","relative"],[1,"green-bar-below-header"],[1,"coins-badge-wrapper"],[1,"chance-badge","coins-badge"],["src","assets/images/customers-club/token-green.svg","alt",""],[2,"display","flex"],["class","coins-text bold font-base",4,"ngIf"],[3,"theme","count","loadingText",4,"ngIf"],[1,"coins-badge"],["src","assets/images/customers-club/coin.svg","alt",""],[2,"display","flex","justify-content","center","flex-grow","1"],[1,"header-search-bar","container-per-page"],[1,"searchbox",3,"formGroup"],["placeholder","\u062c\u0633\u062a\u062c\u0648","type","tel","formControlName","chanceInput",3,"input"],["class","delete-chance-search",3,"click",4,"ngIf"],[1,"customers-club-list","chance-list-wrapper"],["chancesContainer",""],[1,"container-per-page","list-main-category-container"],["style","padding-bottom: 12px;",4,"ngIf"],["style","padding-bottom: 12px;",4,"ngFor","ngForOf"],["class","center-spinner top","color","dark-gray","text","\u062f\u0631 \u062d\u0627\u0644 \u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc...",4,"ngIf"],[1,"coins-text","bold","font-base"],[1,"brand-green","bolder","font-large"],[3,"theme","count","loadingText"],[1,"delete-chance-search",3,"click"],["src","/assets/images/chat/cancel.svg","alt",""],[2,"padding-bottom","12px"],[3,"chance"],["color","dark-gray","text","\u062f\u0631 \u062d\u0627\u0644 \u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc...",1,"center-spinner","top"]],template:function(Qt,wr){1&Qt&&(a.TgZ(0,"div",0),a._UZ(1,"app-page-header",1),a.TgZ(2,"div",2),a._UZ(3,"div",3),a.TgZ(4,"div",4)(5,"div",5),a._UZ(6,"img",6),a.TgZ(7,"div",7),a.YNc(8,wt,4,1,"span",8),a.YNc(9,Ut,1,4,"ngx-skeleton-loader",9),a.qZA()(),a.TgZ(10,"div",10),a._UZ(11,"img",11),a.TgZ(12,"div",12),a.YNc(13,hr,4,1,"span",8),a.YNc(14,Cr,1,4,"ngx-skeleton-loader",9),a.qZA()()()(),a.TgZ(15,"header",13)(16,"section",14)(17,"input",15),a.NdJ("input",function(Ci){return wr.handleSearchChanceCode(Ci)}),a.qZA(),a.YNc(18,Ue,2,0,"div",16),a.qZA()()(),a.TgZ(19,"div",17,18)(21,"div",19),a.YNc(22,Pt,2,0,"div",20),a.YNc(23,He,2,1,"div",21),a.YNc(24,tt,1,0,"app-spinner",22),a.qZA()()),2&Qt&&(a.xp6(1),a.Q6J("data",wr.pageHeaderData),a.xp6(7),a.Q6J("ngIf",null==wr.customersClubItemDataPassingService.club?null:wr.customersClubItemDataPassingService.club.chipsCount),a.xp6(1),a.Q6J("ngIf",!(null!=wr.customersClubItemDataPassingService.club&&wr.customersClubItemDataPassingService.club.chipsCount)),a.xp6(4),a.Q6J("ngIf",wr.score>=0),a.xp6(1),a.Q6J("ngIf",!(wr.score>=0)),a.xp6(2),a.Q6J("formGroup",wr.chanceForm),a.xp6(2),a.Q6J("ngIf",wr.showDeleteSearchInput),a.xp6(4),a.Q6J("ngIf",wr.showClubLoading),a.xp6(1),a.Q6J("ngForOf",wr.chances),a.xp6(1),a.Q6J("ngIf",wr.gettingNextOffset))},directives:[U.qA,t.O5,r.xr,e.JL,e.sg,e.Fj,e.JJ,e.u,pt,t.sg,Zt.O],encapsulation:2}),rr})();function kt(rr,cn){if(1&rr&&(a.TgZ(0,"span",11)(1,"span",21),a._uU(2),a.qZA(),a._uU(3," \u0633\u06a9\u0647 "),a.qZA()),2&rr){const Qt=a.oxw();a.xp6(2),a.hij(" ",Qt.customersClubPassingService.score," ")}}const xe=function(){return{height:"16px",width:"80px"}};function Fe(rr,cn){1&rr&&a._UZ(0,"ngx-skeleton-loader",22),2&rr&&a.Q6J("theme",a.DdM(3,xe))("count",1)("loadingText","")}const lt=function(rr){return{hover:rr}};function St(rr,cn){if(1&rr){const Qt=a.EpF();a.TgZ(0,"a",23),a.NdJ("click",function(){const Ci=a.CHM(Qt).$implicit;return a.oxw().selectCategory(Ci)}),a._uU(1),a.qZA()}if(2&rr){const Qt=cn.$implicit;a.Q6J("ngClass",a.VKq(2,lt,null==Qt?null:Qt.isActiveTag)),a.xp6(1),a.Oqu(null==Qt?null:Qt.title)}}function qe(rr,cn){if(1&rr&&a._UZ(0,"img",29),2&rr){const Qt=a.oxw().$implicit,wr=a.oxw();a.Q6J("src",wr.wepodMainService.getImageFromPodSpaceByHashId(Qt.hashIcon,!0),a.LSH)}}const ke=function(rr){return{"list-content-link-without-hashIcon":rr}};function ct(rr,cn){if(1&rr){const Qt=a.EpF();a.ynx(0),a.TgZ(1,"li",24)(2,"div",25)(3,"a",26),a.NdJ("click",function(){const Ci=a.CHM(Qt).$implicit;return a.oxw().goToWidget(Ci)}),a.YNc(4,qe,1,1,"img",27),a.TgZ(5,"span",28),a._uU(6),a.qZA()()()(),a.BQk()}if(2&rr){const Qt=cn.$implicit;a.xp6(3),a.Q6J("ngClass",a.VKq(3,ke,!Qt.hashIcon)),a.xp6(1),a.Q6J("ngIf",Qt.hashIcon),a.xp6(2),a.Oqu(Qt.title)}}let vt=(()=>{class rr{constructor(Qt,wr,On,Ci,Si){this.resourceAppService=Qt,this.routingAppService=wr,this.clubService=On,this.customersClubPassingService=Ci,this.wepodMainService=Si,this.categoriesItem=[],this.scrollDisabled=!1,(0,f.Jj)()?.scrollTo(0,0),this.pageHeaderData={buttons:{back:{action:()=>{wr.back()}},firstAction:{icon:"assets/images/customers-club/info.svg",iconAlt:"info",action:()=>{this.resourceAppService.getValueFromResource().then(Cs=>{(0,f.Jj)()?.open(Cs.CustomerClub.LandingUrl,"_blank")})}}},title:"\u0648\u06cc\u200c\u06a9\u0644\u0627\u0628"}}ngOnInit(){this.customersClubPassingService.score||this.getScoreAccount(),this.getClubTags(),this.getCategories(),this.allClubTagsCategory={id:0,order:0,title:"\u0647\u0645\u0647",isActiveTag:!0}}ngAfterViewInit(){this.scrollDistance=X.z.pagingScrollDistance,this.scrollThrottle=X.z.pagingScrollThrottle}getScoreAccount(){this.clubService.getScoreAccount().subscribe(Qt=>{this.customersClubPassingService.score=Qt.balance?Qt.balance:0})}getClubTags(){this.clubService.getTags().subscribe(Qt=>{this.clubTags=Qt.sort((wr,On)=>wr.order<On.order?-1:wr.order>On.order?1:0),this.clubTags.unshift(this.allClubTagsCategory)})}selectCategory(Qt){this.clubTags.forEach(wr=>{wr.id===Qt.id?Qt.isActiveTag=!0:wr.isActiveTag=!1}),this.tagId=Qt.id,this.categoriesItem=[],this.getCategories()}getCategories(Qt){this.clubService.getCategories({tagId:this.tagId?this.tagId:null,size:X.z.pagingSize,offset:Qt||0}).subscribe(wr=>{this.categoriesItem?wr.forEach(On=>{this.categoriesItem.push(On)}):this.categoriesItem=wr,this.categoriesItem.length<X.z.pagingSize&&(this.scrollDisabled=!0)})}onScrollDownCategoriesItem(){this.getCategories(this.categoriesItem?.length??0)}goToWidget(Qt){this.routingAppService.navigate(["club/discount-detail/"+Qt.id])}}return rr.\u0275fac=function(Qt){return new(Qt||rr)(a.Y36(H.K),a.Y36(O.s),a.Y36(D.I),a.Y36(V.Y),a.Y36(F.g))},rr.\u0275cmp=a.Xpm({type:rr,selectors:[["app-customers-club-discounts-list"]],decls:27,vars:8,consts:[[3,"data"],[1,"customers-club-list",2,"position","relative"],[1,"green-bar-below-header"],[1,"coins-badge-wrapper"],["href","javascript:void(0)",1,"coins-badge",3,"click"],["src","assets/images/customers-club/coin.svg","alt",""],[2,"display","flex","justify-content","center","flex-grow","1"],["class","coins-text bold font-base",4,"ngIf"],[3,"theme","count","loadingText",4,"ngIf"],["href","javascript:void(0)",1,"coins-badge","my-purchases",3,"click"],["src","assets/images/customers-club/purchase-icon.svg","alt",""],[1,"coins-text","bold","font-base"],[1,"discounts-list-container","container-per-page"],[1,"separator-half"],[1,"club-category"],["id","scroll-bar",1,"scroll-bar"],["href","javascript:void(0)",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"service-store-wrapper"],["infiniteScroll","",1,"service-store-container","grid-square-container",3,"infiniteScrollDistance","infiniteScrollThrottle","infiniteScrollDisabled","scrolled"],[4,"ngFor","ngForOf"],[1,"separator"],[1,"brand-green","bolder","font-large"],[3,"theme","count","loadingText"],["href","javascript:void(0)",3,"ngClass","click"],[1,"list-item-wrapper"],[1,"list-content"],["href","javascript:void(0);",1,"list-content-link",3,"ngClass","click"],["class","list-content-link-icon","alt","",3,"src",4,"ngIf"],[1,"list-content-link-title"],["alt","",1,"list-content-link-icon",3,"src"]],template:function(Qt,wr){1&Qt&&(a._UZ(0,"app-page-header",0),a.TgZ(1,"div",1),a._UZ(2,"div",2),a.TgZ(3,"div",3)(4,"a",4),a.NdJ("click",function(){return wr.routingAppService.navigate(["club/history"])}),a._UZ(5,"img",5),a.TgZ(6,"div",6),a.YNc(7,kt,4,1,"span",7),a.YNc(8,Fe,1,4,"ngx-skeleton-loader",8),a.qZA()(),a.TgZ(9,"a",9),a.NdJ("click",function(){return wr.routingAppService.navigate(["club/purchases"])}),a._UZ(10,"img",10),a.TgZ(11,"div",6)(12,"span",11),a._uU(13," \u062e\u0631\u06cc\u062f\u0647\u0627\u06cc \u0645\u0646 "),a.qZA()()()()(),a.TgZ(14,"div",12),a._UZ(15,"div",13),a.TgZ(16,"div",14)(17,"h5"),a._uU(18,"\u062a\u062e\u0641\u06cc\u0641\u200c\u0647\u0627"),a.qZA(),a.TgZ(19,"div",15),a.ynx(20),a.YNc(21,St,2,4,"a",16),a.BQk(),a.qZA()(),a.TgZ(22,"div",17)(23,"ul",18),a.NdJ("scrolled",function(){return wr.onScrollDownCategoriesItem()}),a.YNc(24,ct,7,5,"ng-container",19),a.qZA(),a._UZ(25,"div",20)(26,"div",20),a.qZA()()),2&Qt&&(a.Q6J("data",wr.pageHeaderData),a.xp6(7),a.Q6J("ngIf",wr.customersClubPassingService.score>=0),a.xp6(1),a.Q6J("ngIf",!(wr.customersClubPassingService.score>=0)),a.xp6(13),a.Q6J("ngForOf",wr.clubTags),a.xp6(2),a.Q6J("infiniteScrollDistance",wr.scrollDistance)("infiniteScrollThrottle",wr.scrollThrottle)("infiniteScrollDisabled",wr.scrollDisabled),a.xp6(1),a.Q6J("ngForOf",wr.categoriesItem))},directives:[U.qA,t.O5,r.xr,t.sg,t.mk,l.R],encapsulation:2}),rr})();function $t(rr,cn){1&rr&&(a.TgZ(0,"div",14)(1,"span",15),a._uU(2,"\u067e\u0627\u06cc\u0627\u0646 \u06cc\u0627\u0641\u062a\u0647"),a.qZA()())}function Vr(rr,cn){if(1&rr&&(a.TgZ(0,"p",16),a._uU(1),a.qZA()),2&rr){const Qt=a.oxw();a.xp6(1),a.Oqu(null==Qt.club?null:Qt.club.motivationalDescription)}}function Sr(rr,cn){if(1&rr&&a._UZ(0,"span",20),2&rr){const Qt=a.oxw(2);a.MGl("id","time-active-",null==Qt.club?null:Qt.club.id,"")}}function Ar(rr,cn){if(1&rr&&(a.TgZ(0,"p",17),a._UZ(1,"img",18),a.YNc(2,Sr,1,1,"span",19),a.qZA()),2&rr){const Qt=a.oxw();a.xp6(2),a.Q6J("ngIf",null==Qt.club?null:Qt.club.toActivateTime)}}function Jr(rr,cn){if(1&rr&&(a.TgZ(0,"p",21),a._uU(1),a.qZA()),2&rr){const Qt=a.oxw();a.xp6(1),a.hij("",null==Qt.club?null:Qt.club.clubSoldChipsCount," \u0634\u0627\u0646\u0633 ")}}function Fr(rr,cn){1&rr&&(a.TgZ(0,"p",22),a._uU(1,"\u062c\u0634\u0646\u0648\u0627\u0631\u0647 \u062a\u0645\u0627\u0645 \u0634\u062f"),a.qZA())}function Gt(rr,cn){if(1&rr&&(a.TgZ(0,"div",23)(1,"p"),a._uU(2),a.qZA()()),2&rr){const Qt=a.oxw();a.xp6(2),a.Oqu(null==Qt.club?null:Qt.club.drawPhrase)}}const le=function(rr,cn,Qt){return{"expired-list-wrapper":rr,"disabled-ticket":cn,"purchase-list-wrapper":Qt}};let Ce=(()=>{class rr{constructor(Qt,wr){this.wepodMainService=Qt,this.routingAppService=wr,this.campaignStatus=ye}ngAfterViewInit(){this.club?.toActivateTime&&document.getElementById("time-active-"+this.club?.id)&&(document.getElementById("time-active-"+this.club?.id).innerHTML=this.club?.toActivateTime)}}return rr.\u0275fac=function(Qt){return new(Qt||rr)(a.Y36(F.g),a.Y36(O.s))},rr.\u0275cmp=a.Xpm({type:rr,selectors:[["app-ticket"]],inputs:{club:"club",isShowStatusType:"isShowStatusType",isShowDrawPhrase:"isShowDrawPhrase",isInExpiredLists:"isInExpiredLists",isShowChanceCountInEndClub:"isShowChanceCountInEndClub",isShowChanceCountInPurchaseClub:"isShowChanceCountInPurchaseClub",isInPurchaseLists:"isInPurchaseLists"},decls:15,vars:13,consts:[[1,"ticket-container",3,"ngClass"],["href","javascript:void(0)",1,"ticket-wrap",3,"click"],[1,"ticket","ticket-right"],[1,"ticket-right-bg"],["alt","",3,"src"],[1,"ticket"],["class","ticket-type-wrapper",4,"ngIf"],[1,"ticket-left"],[1,"ticket-left-title","bold","font-base"],["class","gray-light font-xsmall text-ellipsis-1",4,"ngIf"],["class","green-text green-light-bg bold font-xsmall upcoming-ticket v-align-sub","style","white-space: nowrap",4,"ngIf"],["class","gray-light font-xsmall text-ellipsis-1 chip-point",4,"ngIf"],["class","gray-light font-xsmall text-ellipsis-1","style","width: 150px",4,"ngIf"],["class","ticket-expired",4,"ngIf"],[1,"ticket-type-wrapper"],[1,"finished-type"],[1,"gray-light","font-xsmall","text-ellipsis-1"],[1,"green-text","green-light-bg","bold","font-xsmall","upcoming-ticket","v-align-sub",2,"white-space","nowrap"],["src","assets/images/customers-club/time-green.svg","alt","",2,"margin-left","4px"],[3,"id",4,"ngIf"],[3,"id"],[1,"gray-light","font-xsmall","text-ellipsis-1","chip-point"],[1,"gray-light","font-xsmall","text-ellipsis-1",2,"width","150px"],[1,"ticket-expired"]],template:function(Qt,wr){1&Qt&&(a.TgZ(0,"div",0)(1,"a",1),a.NdJ("click",function(){return wr.routingAppService.navigate(["club/list/"+wr.club.id])}),a.TgZ(2,"div",2)(3,"div",3),a._UZ(4,"img",4),a.qZA()(),a.TgZ(5,"div",5),a.YNc(6,$t,3,0,"div",6),a.TgZ(7,"div",7)(8,"p",8),a._uU(9),a.qZA(),a.YNc(10,Vr,2,1,"p",9),a.YNc(11,Ar,3,1,"p",10),a.YNc(12,Jr,2,1,"p",11),a.YNc(13,Fr,2,0,"p",12),a.qZA(),a.YNc(14,Gt,3,1,"div",13),a.qZA()()()),2&Qt&&(a.Q6J("ngClass",a.kEZ(9,le,wr.isInExpiredLists,wr.isInPurchaseLists&&wr.club.status!==wr.campaignStatus.active,wr.isInPurchaseLists)),a.xp6(4),a.Q6J("src",wr.wepodMainService.getImageFromPodSpaceByHashId(null==wr.club?null:wr.club.hashIcon),a.LSH),a.xp6(2),a.Q6J("ngIf",(wr.club.status===wr.campaignStatus.finished||wr.club.status===wr.campaignStatus.closed)&&wr.isShowStatusType),a.xp6(3),a.Oqu(null==wr.club?null:wr.club.title),a.xp6(1),a.Q6J("ngIf",1===wr.club.status),a.xp6(1),a.Q6J("ngIf",2===wr.club.status),a.xp6(1),a.Q6J("ngIf",wr.isShowChanceCountInPurchaseClub&&0!==wr.club.clubSoldChipsCount),a.xp6(1),a.Q6J("ngIf",!(wr.club.status!==wr.campaignStatus.finished&&wr.club.status!==wr.campaignStatus.closed||wr.isShowChanceCountInEndClub||wr.isShowChanceCountInPurchaseClub)),a.xp6(1),a.Q6J("ngIf",wr.isShowDrawPhrase&&(wr.club.status===wr.campaignStatus.active||wr.club.status===wr.campaignStatus.await)||wr.isInExpiredLists))},directives:[t.mk,t.O5],encapsulation:2}),rr})();function Ie(rr,cn){if(1&rr&&(a.TgZ(0,"div",12)(1,"span",13),a._uU(2),a.qZA(),a.TgZ(3,"span",14),a._uU(4," \u0633\u06a9\u0647"),a.qZA()()),2&rr){const Qt=a.oxw();a.xp6(2),a.hij(" ",null==Qt.customersClubPassingService?null:Qt.customersClubPassingService.score," ")}}const Pe=function(){return{height:"16px",width:"80px"}};function Oe(rr,cn){1&rr&&a._UZ(0,"ngx-skeleton-loader",15),2&rr&&a.Q6J("theme",a.DdM(3,Pe))("count",1)("loadingText","")}function Se(rr,cn){if(1&rr&&(a.TgZ(0,"div",16),a._UZ(1,"app-ticket",17),a.qZA()),2&rr){const Qt=cn.$implicit;a.xp6(1),a.Q6J("club",Qt)("isShowStatusType",!0)("isShowDrawPhrase",!0)("isInExpiredLists",!0)("isShowChanceCountInEndClub",!0)}}let Xe=(()=>{class rr extends N.Z{constructor(Qt,wr,On,Ci){super(),this.clubService=Qt,this.routingAppService=wr,this.resourceAppService=On,this.customersClubPassingService=Ci,this.scrollDisabled=!1,this.campaignStatus=ye,(0,f.Jj)()?.scrollTo(0,0),this.pageHeaderData={buttons:{back:{action:()=>{this.routingAppService.back()}},firstAction:{icon:"assets/images/customers-club/info.svg",iconAlt:"info",action:()=>{this.resourceAppService.getValueFromResource().then(Si=>{(0,f.Jj)()?.open(Si.CustomerClub.LandingUrl,"_blank")})}}},title:"\u062c\u0634\u0646\u0648\u0627\u0631\u0647\u200c\u0647\u0627\u06cc \u067e\u0627\u06cc\u0627\u0646 \u06cc\u0627\u0641\u062a\u0647"}}ngOnInit(){this.customersClubPassingService?.score||this.getScoreAccount()}ngAfterViewInit(){this.scrollDistance=X.z.pagingScrollDistance,this.scrollThrottle=X.z.pagingScrollThrottle,this.customersClubPassingService.expiredLists?.length||this.getClubCampaignByStatus(this.campaignStatus.finished,X.z.pagingSize,0)}ngOnDestroy(){super.ngOnDestroy(),this.customersClubPassingService.expiredLists=[]}getClubCampaignByStatus(Qt,wr,On){this.clubService.getClubCampaignByStatus({status:Qt,size:wr,offset:On}).subscribe(Si=>{this.customersClubPassingService?.expiredLists?Si.forEach(Cs=>{this.customersClubPassingService.expiredLists.push(Cs)}):this.customersClubPassingService.expiredLists=Si,this.customersClubPassingService.expiredLists.length<X.z.pagingSize?this.scrollDisabled=!0:setTimeout(()=>{const Cs=self.innerHeight-document.getElementById("expired-items-header")?.offsetHeight;let Gi=0;document.getElementById("expired-lists")&&(Gi=document.getElementById("expired-lists")?.offsetHeight),Cs>=Gi&&this.onScrollDown()},100)})}getScoreAccount(){this.clubService.getScoreAccount().subscribe(Qt=>{this.customersClubPassingService.score=Qt.balance?Qt.balance:0})}onScrollDown(){this.getClubCampaignByStatus(this.campaignStatus.finished,X.z.pagingSize,this.customersClubPassingService?.expiredLists?.length?this.customersClubPassingService.expiredLists.length:0)}}return rr.\u0275fac=function(Qt){return new(Qt||rr)(a.Y36(D.I),a.Y36(O.s),a.Y36(H.K),a.Y36(V.Y))},rr.\u0275cmp=a.Xpm({type:rr,selectors:[["app-customers-club-expired-items"]],features:[a.qOj],decls:13,vars:7,consts:[["id","expired-items-header",3,"data"],["id","expired-lists"],[1,"white-bar-below-header","flex","jc-center","ai-center"],[1,"flex","jc-center","ai-center"],["src","assets/images/customers-club/coin.svg","alt",""],[1,"coin-container"],["class","coins-text bold font-large",4,"ngIf"],[3,"theme","count","loadingText",4,"ngIf"],[1,"customers-club-expired-lists"],["infiniteScroll","",3,"infiniteScrollDistance","infiniteScrollThrottle","infiniteScrollDisabled","scrolled"],["class","customers-club-expired-lists-wrapper",4,"ngFor","ngForOf"],[1,"separator"],[1,"coins-text","bold","font-large"],[1,"brand-green","bolder","font-large"],[1,"coin"],[3,"theme","count","loadingText"],[1,"customers-club-expired-lists-wrapper"],[3,"club","isShowStatusType","isShowDrawPhrase","isInExpiredLists","isShowChanceCountInEndClub"]],template:function(Qt,wr){1&Qt&&(a._UZ(0,"app-page-header",0),a.TgZ(1,"section",1)(2,"div",2)(3,"div",3),a._UZ(4,"img",4),a.TgZ(5,"div",5),a.YNc(6,Ie,5,1,"div",6),a.YNc(7,Oe,1,4,"ngx-skeleton-loader",7),a.qZA()()(),a.TgZ(8,"div",8)(9,"div",9),a.NdJ("scrolled",function(){return wr.onScrollDown()}),a.YNc(10,Se,2,5,"div",10),a.qZA(),a._UZ(11,"div",11)(12,"div",11),a.qZA()()),2&Qt&&(a.Q6J("data",wr.pageHeaderData),a.xp6(6),a.Q6J("ngIf",(null==wr.customersClubPassingService?null:wr.customersClubPassingService.score)>=0),a.xp6(1),a.Q6J("ngIf",!((null==wr.customersClubPassingService?null:wr.customersClubPassingService.score)>=0)),a.xp6(2),a.Q6J("infiniteScrollDistance",wr.scrollDistance)("infiniteScrollThrottle",wr.scrollThrottle)("infiniteScrollDisabled",wr.scrollDisabled),a.xp6(1),a.Q6J("ngForOf",wr.customersClubPassingService.expiredLists))},directives:[U.qA,t.O5,r.xr,l.R,t.sg,Ce],encapsulation:2}),rr})(),Ct=(()=>{class rr{constructor(Qt){this.wepodMainService=Qt}ngOnInit(){C.j.height=350,C.j.desktopStyle=!1,C.j.bgWhite=!1,C.j.hideDesktopHeaderClose=!1,C.j.modalTitleBgGray=!0,C.j.disableBackdropClosing=!1,(0,C.h7)("giftCode")}}return rr.\u0275fac=function(Qt){return new(Qt||rr)(a.Y36(F.g))},rr.\u0275cmp=a.Xpm({type:rr,selectors:[["app-customers-club-gift-code"]],inputs:{item:"item"},decls:0,vars:0,template:function(Qt,wr){},encapsulation:2}),rr})();var zt=n(66699),kr=n(97028);function Br(rr,cn){if(1&rr&&(a.TgZ(0,"div",31)(1,"span",32),a._uU(2),a.qZA(),a.TgZ(3,"span",33),a._uU(4," \u0633\u06a9\u0647"),a.qZA()()),2&rr){const Qt=a.oxw();a.xp6(2),a.hij(" ",Qt.customersClubPassingService.score," ")}}const xt=function(){return{height:"16px",width:"80px"}};function tr(rr,cn){1&rr&&a._UZ(0,"ngx-skeleton-loader",34),2&rr&&a.Q6J("theme",a.DdM(3,xt))("count",1)("loadingText","")}function Rr(rr,cn){1&rr&&a._UZ(0,"span",38)}function Ur(rr,cn){if(1&rr&&(a.TgZ(0,"p",35),a._UZ(1,"img",36),a.YNc(2,Rr,1,0,"span",37),a.qZA()),2&rr){const Qt=a.oxw();a.xp6(2),a.Q6J("ngIf",Qt.customersClubItemDataPassingService.club.remainingTime)}}function Nr(rr,cn){1&rr&&a._UZ(0,"span",40)}function zr(rr,cn){if(1&rr&&(a.TgZ(0,"p",35),a._UZ(1,"img",36),a.YNc(2,Nr,1,0,"span",39),a.qZA()),2&rr){const Qt=a.oxw();a.xp6(2),a.Q6J("ngIf",Qt.customersClubItemDataPassingService.club.toActivateTime)}}function hn(rr,cn){if(1&rr){const Qt=a.EpF();a.TgZ(0,"button",41),a.NdJ("click",function(){a.CHM(Qt);const On=a.oxw();return On.showMoreList=!On.showMoreList}),a._uU(1),a.qZA()}if(2&rr){const Qt=a.oxw();a.xp6(1),a.hij(" ",Qt.showMoreList?"\u06a9\u0645\u062a\u0631":"\u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0628\u06cc\u0634\u062a\u0631"," ")}}function _n(rr,cn){1&rr&&a._UZ(0,"img",48)}function Tn(rr,cn){1&rr&&a._UZ(0,"img",49)}function sr(rr,cn){if(1&rr&&(a.TgZ(0,"span",50),a._uU(1),a.qZA()),2&rr){const Qt=a.oxw(2);a.xp6(1),a.hij(" ",Qt.customersClubItemDataPassingService.club.drawPhrase," ")}}function fr(rr,cn){1&rr&&(a.TgZ(0,"span",50),a._uU(1," \u0646\u062a\u0627\u06cc\u062c \u0642\u0631\u0639\u0647\u200c\u06a9\u0634\u06cc "),a.qZA())}const Kt=function(rr){return{cursor:rr}};function Qr(rr,cn){if(1&rr){const Qt=a.EpF();a.TgZ(0,"div",42)(1,"a",43),a.NdJ("click",function(){a.CHM(Qt);const On=a.oxw();return 4===On.customersClubItemDataPassingService.club.status?On.goToResult():""}),a.TgZ(2,"div",44),a.YNc(3,_n,1,0,"img",45),a.YNc(4,Tn,1,0,"img",46),a.qZA(),a.YNc(5,sr,2,1,"span",47),a.YNc(6,fr,2,0,"span",47),a.qZA()()}if(2&rr){const Qt=a.oxw();a.xp6(1),a.ekj("green",4===Qt.customersClubItemDataPassingService.club.status)("gray",3===Qt.customersClubItemDataPassingService.club.status)("disabled",3===Qt.customersClubItemDataPassingService.club.status),a.Q6J("ngStyle",a.VKq(11,Kt,4===Qt.customersClubItemDataPassingService.club.status?"pointer":"")),a.xp6(2),a.Q6J("ngIf",3===Qt.customersClubItemDataPassingService.club.status),a.xp6(1),a.Q6J("ngIf",4===Qt.customersClubItemDataPassingService.club.status),a.xp6(1),a.Q6J("ngIf",3===Qt.customersClubItemDataPassingService.club.status),a.xp6(1),a.Q6J("ngIf",4===Qt.customersClubItemDataPassingService.club.status)}}function we(rr,cn){if(1&rr&&a._UZ(0,"div",51),2&rr){const Qt=a.oxw();a.ekj("content-bg",2===Qt.customersClubItemDataPassingService.club.status)}}function De(rr,cn){if(1&rr&&(a.TgZ(0,"div",2)(1,"span",52),a._uU(2),a.qZA(),a.TgZ(3,"span",53),a._uU(4," \u0634\u0627\u0646\u0633"),a.qZA()()),2&rr){const Qt=a.oxw();a.xp6(2),a.hij(" ",Qt.customersClubItemDataPassingService.club.chipsCount," ")}}function ht(rr,cn){1&rr&&(a.TgZ(0,"span",54),a._uU(1," \u0647\u0646\u0648\u0632 \u0634\u0627\u0646\u0633\u06cc \u0646\u062f\u0627\u0631\u06cc\u062f "),a.qZA())}function Vt(rr,cn){1&rr&&(a.TgZ(0,"span",54),a._uU(1," \u0634\u0627\u0646\u0633\u06cc \u0646\u062f\u0627\u0631\u06cc\u062f "),a.qZA())}function yt(rr,cn){1&rr&&(a.TgZ(0,"p",55),a._uU(1," \u06a9\u062f \u0634\u0627\u0646\u0633\u06cc \u0646\u062f\u0627\u0631\u06cc\u062f. \u0628\u0627 \u06af\u0632\u06cc\u0646\u0647 \xab\u062f\u0631\u06cc\u0627\u0641\u062a \u06a9\u062f \u0634\u0627\u0646\u0633\xbb \u060c \u0633\u06a9\u0647\u200c\u0647\u0627\u06cc \u062e\u0648\u062f \u0631\u0627 \u0628\u0647 \u06a9\u062f \u0634\u0627\u0646\u0633 \u062a\u0628\u062f\u06cc\u0644 \u06a9\u0646\u06cc\u062f. "),a.qZA())}function gr(rr,cn){1&rr&&(a.TgZ(0,"p",55),a._uU(1," \u06a9\u062f\u0647\u0627\u06cc \u0634\u0627\u0646\u0633 \u0634\u0645\u0627 \u062f\u0631 \u0642\u0631\u0639\u0647\u200c\u06a9\u0634\u06cc \u062c\u0634\u0646\u0648\u0627\u0631\u0647 "),a.qZA())}let ur=(()=>{class rr extends N.Z{constructor(Qt,wr,On,Ci,Si,Cs,Gi){super(),this.activatedRoute=Qt,this.customersClubItemDataPassingService=wr,this.wepodMainService=On,this.routingAppService=Ci,this.tagManager=Si,this.customersClubPassingService=Cs,this.clubService=Gi,(0,f.Jj)()?.scrollTo(0,0),wr.club=Qt.snapshot.data.data,this.pageHeaderData={buttons:{back:{action:()=>{Ci.back(),this.customersClubPassingService.showFestivalsToggleTab=!0}},firstAction:{icon:"assets/images/customers-club/info.svg",iconAlt:"info",hidden:!0,action:()=>{}}},title:"\u062c\u0632\u0626\u06cc\u0627\u062a \u062c\u0634\u0646\u0648\u0627\u0631\u0647"},this.customersClubItemDataPassingService.club.landingPageAddress&&(this.customersClubItemDataPassingService.club.landingPageAddress.startsWith("http://")||this.customersClubItemDataPassingService.club.landingPageAddress.startsWith("https://"))&&(this.pageHeaderData.buttons.firstAction.hidden=!1,this.pageHeaderData.buttons.firstAction.action=()=>{(0,f.Jj)()?.open(this.customersClubItemDataPassingService.club.landingPageAddress,"_blank")})}ngOnInit(){this.customersClubPassingService.score||this.getScoreAccount()}getScoreAccount(){this.clubService.getScoreAccount().subscribe(Qt=>{this.customersClubPassingService.score=Qt.balance?Qt.balance:0})}ngAfterViewInit(){this.customersClubItemDataPassingService?.club?.remainingTime?document.getElementById("time-remain").innerHTML=this.customersClubItemDataPassingService?.club?.remainingTime:this.customersClubItemDataPassingService?.club?.toActivateTime&&(document.getElementById("time").innerHTML=this.customersClubItemDataPassingService?.club?.toActivateTime)}addChance(){1===this.customersClubItemDataPassingService.club.status&&(C.j.bgWhite=!0,C.j.desktopStyle=!0,C.j.hideDesktopHeaderClose=!0,C.j.disableBackdropClosing=!1,C.j.fullScreen.next(!1),(0,C.h7)("clubAddChance"))}goToChances(){0!==this.customersClubItemDataPassingService.club.chipsCount&&this.routingAppService.navigate(["club/list/"+this.customersClubItemDataPassingService.club.id+"/chances"])}goToResult(){(0,zt.Sq)("DataLayerGoogleAnalytics")&&this.tagManager.pushEvent("club_campaign_winners_click",{}),(0,f.Jj)()?.open(this.customersClubItemDataPassingService.club.drawPageAddress,"_blank")}}return rr.\u0275fac=function(Qt){return new(Qt||rr)(a.Y36(p.gz),a.Y36(ge.m),a.Y36(F.g),a.Y36(O.s),a.Y36(kr.c),a.Y36(V.Y),a.Y36(D.I))},rr.\u0275cmp=a.Xpm({type:rr,selectors:[["app-customers-club-item"]],features:[a.qOj],decls:39,vars:32,consts:[[3,"data"],[1,"white-bar-below-header","flex","jc-center","ai-center"],[1,"flex","jc-center","ai-center"],["src","assets/images/customers-club/coin.svg","alt","",1,"icon"],[1,"coin-container"],["class","coins-text bold font-large",4,"ngIf"],[3,"theme","count","loadingText",4,"ngIf"],[1,"container-per-page","main"],[1,"section","info","ticket-wrap"],["alt","",1,"image",3,"src"],[1,"title","bold"],["class","blue-light-bg bold font-small upcoming-ticket v-align-sub",4,"ngIf"],[1,"w-100","desc","font-small",3,"innerText"],["class","more-button",3,"click",4,"ngIf"],["class","w-100","style","padding-top: 16px;",4,"ngIf"],[1,"section","chance-section"],["href","javascript:void(0)",1,"add-chance",3,"click"],[1,"flex-c","jc-center","ai-center","chance-box"],[1,"bold","font-large"],["href","javascript:void(0)",1,"chances",3,"click"],["class","rotated-card",3,"content-bg",4,"ngIf"],[1,"flex-c","jc-center","ai-center","chance-box",2,"z-index","2"],["class","flex jc-center ai-center",4,"ngIf"],["class","gray-light",4,"ngIf"],[1,"w-100","flex","jc-center","ai-center","tooltip"],[1,"tooltip-inner","flex","ai-center"],["src","assets/images/customers-club/token-green.svg","alt","",1,"image"],["class","desc font-small",4,"ngIf","ngIfElse"],["hasChipsCount",""],[1,"arrow"],[1,"separator"],[1,"coins-text","bold","font-large"],[1,"brand-green","bolder","font-large"],[1,"coin"],[3,"theme","count","loadingText"],[1,"blue-light-bg","bold","font-small","upcoming-ticket","v-align-sub"],["src","assets/images/customers-club/time.svg","alt","",2,"margin-left","4px"],["class","gray-light","style","margin-left: 6px;","id","time-remain",4,"ngIf"],["id","time-remain",1,"gray-light",2,"margin-left","6px"],["class","gray-light","style","margin-left: 6px;","id","time",4,"ngIf"],["id","time",1,"gray-light",2,"margin-left","6px"],[1,"more-button",3,"click"],[1,"w-100",2,"padding-top","16px"],[1,"btn","btn-badge","w-100",2,"padding","0",3,"ngStyle","click"],[1,"badge"],["src","assets/images/customers-club/time-gray.svg","alt","",4,"ngIf"],["src","assets/images/customers-club/results.svg","alt","",4,"ngIf"],["class","text",4,"ngIf"],["src","assets/images/customers-club/time-gray.svg","alt",""],["src","assets/images/customers-club/results.svg","alt",""],[1,"text"],[1,"rotated-card"],[1,"bold","chance-count"],[1,"bold","chance-title"],[1,"gray-light"],[1,"desc","font-small"]],template:function(Qt,wr){if(1&Qt&&(a._UZ(0,"app-page-header",0),a.TgZ(1,"div",1)(2,"div",2),a._UZ(3,"img",3),a.TgZ(4,"div",4),a.YNc(5,Br,5,1,"div",5),a.YNc(6,tr,1,4,"ngx-skeleton-loader",6),a.qZA()()(),a.TgZ(7,"div",7)(8,"div",8),a._UZ(9,"img",9),a.TgZ(10,"p",10),a._uU(11),a.qZA(),a.YNc(12,Ur,3,1,"p",11),a.YNc(13,zr,3,1,"p",11),a._UZ(14,"p",12),a.YNc(15,hn,2,1,"button",13),a.qZA(),a.YNc(16,Qr,7,13,"div",14),a.TgZ(17,"div",15)(18,"a",16),a.NdJ("click",function(){return wr.addChance()}),a.TgZ(19,"div",17),a._UZ(20,"img",9),a.TgZ(21,"span",18),a._uU(22," \u062f\u0631\u06cc\u0627\u0641\u062a \u06a9\u062f \u0634\u0627\u0646\u0633"),a.qZA()()(),a.TgZ(23,"a",19),a.NdJ("click",function(){return wr.goToChances()}),a.YNc(24,we,1,2,"div",20),a.TgZ(25,"div",21),a._UZ(26,"img",9),a.YNc(27,De,5,1,"div",22),a.YNc(28,ht,2,0,"span",23),a.YNc(29,Vt,2,0,"span",23),a.qZA()()(),a.TgZ(30,"div",24)(31,"div",25),a._UZ(32,"img",26),a.YNc(33,yt,2,0,"p",27),a.YNc(34,gr,2,0,"ng-template",null,28,a.W1O),a._UZ(36,"div",29),a.qZA()(),a._UZ(37,"div",30)(38,"div",30),a.qZA()),2&Qt){const On=a.MAs(35);a.Q6J("data",wr.pageHeaderData),a.xp6(5),a.Q6J("ngIf",wr.customersClubPassingService.score>=0),a.xp6(1),a.Q6J("ngIf",!(wr.customersClubPassingService.score>=0)),a.xp6(3),a.Q6J("src",wr.wepodMainService.getImageFromPodSpaceByHashId(null==wr.customersClubItemDataPassingService.club?null:wr.customersClubItemDataPassingService.club.hashIcon),a.LSH),a.xp6(2),a.Oqu(wr.customersClubItemDataPassingService.club.title),a.xp6(1),a.Q6J("ngIf",1===wr.customersClubItemDataPassingService.club.status),a.xp6(1),a.Q6J("ngIf",2===wr.customersClubItemDataPassingService.club.status),a.xp6(1),a.ekj("text-ellipsis-1",!wr.showMoreList),a.Q6J("innerText",wr.customersClubItemDataPassingService.club.description),a.xp6(1),a.Q6J("ngIf",wr.customersClubItemDataPassingService.club.description.split("\n").length>3||wr.customersClubItemDataPassingService.club.description.length>190),a.xp6(1),a.Q6J("ngIf",3===wr.customersClubItemDataPassingService.club.status||4===wr.customersClubItemDataPassingService.club.status),a.xp6(2),a.ekj("content-bg",1!==wr.customersClubItemDataPassingService.club.status)("cursor-warn",1!==wr.customersClubItemDataPassingService.club.status),a.xp6(2),a.Q6J("src",1===wr.customersClubItemDataPassingService.club.status?"assets/images/customers-club/add-chance.svg":"assets/images/customers-club/add-chance-disable.svg",a.LSH),a.xp6(1),a.Akn(1===wr.customersClubItemDataPassingService.club.status?"opacity: 1":"opacity: .5"),a.xp6(2),a.ekj("content-bg",2===wr.customersClubItemDataPassingService.club.status)("cursor-warn",2===wr.customersClubItemDataPassingService.club.status),a.xp6(1),a.Q6J("ngIf",0!==wr.customersClubItemDataPassingService.club.chipsCount),a.xp6(1),a.ekj("disabled",0===wr.customersClubItemDataPassingService.club.chipsCount),a.xp6(1),a.Q6J("src",0===wr.customersClubItemDataPassingService.club.chipsCount?"assets/images/customers-club/token-gray.svg":"assets/images/customers-club/tokens.svg",a.LSH),a.xp6(1),a.Q6J("ngIf",0!==wr.customersClubItemDataPassingService.club.chipsCount),a.xp6(1),a.Q6J("ngIf",0===wr.customersClubItemDataPassingService.club.chipsCount&&!(3===wr.customersClubItemDataPassingService.club.status||4===wr.customersClubItemDataPassingService.club.status)),a.xp6(1),a.Q6J("ngIf",0===wr.customersClubItemDataPassingService.club.chipsCount&&(3===wr.customersClubItemDataPassingService.club.status||4===wr.customersClubItemDataPassingService.club.status)),a.xp6(4),a.Q6J("ngIf",0===wr.customersClubItemDataPassingService.club.chipsCount)("ngIfElse",On)}},directives:[U.qA,t.O5,r.xr,t.PC],encapsulation:2}),rr})(),Zr=(()=>{class rr{constructor(Qt){this.clubService=Qt}resolve(Qt){return this.clubService.getClubCampaignDetails(Qt.paramMap.get("id"))}}return rr.\u0275fac=function(Qt){return new(Qt||rr)(a.LFG(D.I))},rr.\u0275prov=a.Yz7({token:rr,factory:rr.\u0275fac,providedIn:"root"}),rr})();var fn=n(77743),un=n(73942),Et=n(11495);function Ae(rr,cn){if(1&rr&&(a.TgZ(0,"span",11)(1,"span",19),a._uU(2),a.qZA(),a._uU(3," \u0633\u06a9\u0647 "),a.qZA()),2&rr){const Qt=a.oxw();a.xp6(2),a.hij(" ",Qt.customersClubPassingService.score," ")}}const it=function(){return{height:"16px",width:"80px"}};function Bt(rr,cn){1&rr&&a._UZ(0,"ngx-skeleton-loader",20),2&rr&&a.Q6J("theme",a.DdM(3,it))("count",1)("loadingText","")}function pr(rr,cn){if(1&rr&&(a.TgZ(0,"div",25),a._UZ(1,"app-ticket",26),a.qZA()),2&rr){const Qt=cn.$implicit;a.xp6(1),a.Q6J("club",Qt)("isShowStatusType",!1)("isShowDrawPhrase",!1)}}function Or(rr,cn){if(1&rr&&(a.ynx(0),a.TgZ(1,"div",22)(2,"p",23),a._uU(3),a.qZA()(),a.YNc(4,pr,2,3,"div",24),a.BQk()),2&rr){const Qt=a.oxw().$implicit,wr=a.oxw(2);a.xp6(3),a.hij(" ",wr.getGroupName(Qt.key)," "),a.xp6(1),a.Q6J("ngForOf",Qt.value)}}function Wr(rr,cn){if(1&rr&&(a.TgZ(0,"div"),a.YNc(1,Or,5,2,"ng-container",15),a.qZA()),2&rr){const Qt=cn.$implicit;a.xp6(1),a.Q6J("ngIf",null==Qt.value?null:Qt.value.length)}}function sn(rr,cn){if(1&rr&&(a.ynx(0),a.YNc(1,Wr,2,1,"div",21),a.ALo(2,"keyvalue"),a.BQk()),2&rr){const Qt=a.oxw();a.xp6(1),a.Q6J("ngForOf",a.lcZ(2,1,Qt.groups))}}function En(rr,cn){if(1&rr){const Qt=a.EpF();a.ynx(0),a.TgZ(1,"div",27),a.NdJ("click",function(){return a.CHM(Qt),a.oxw().getClubCampaignsWithAggregates()}),a._UZ(2,"img",28),a.TgZ(3,"p"),a._uU(4,"\u0645\u062c\u062f\u062f\u0627 \u062a\u0644\u0627\u0634 \u06a9\u0646\u06cc\u062f"),a.qZA()(),a.BQk()}}function Sn(rr,cn){1&rr&&(a.ynx(0),a._UZ(1,"div",14),a.BQk())}function yn(rr,cn){if(1&rr&&(a.TgZ(0,"h6",33),a._uU(1),a.qZA()),2&rr){const Qt=a.oxw(3).$implicit;a.xp6(1),a.Oqu(Qt.title)}}function Rn(rr,cn){if(1&rr&&a._UZ(0,"img",40),2&rr){const Qt=a.oxw(3).$implicit,wr=a.oxw(4);a.Q6J("src",wr.wepodMainService.getImageFromPodSpaceByHashId(Qt.hashIcon,!0),a.LSH)}}const Kn=function(rr){return{"list-content-link-without-hashIcon":rr}};function vi(rr,cn){if(1&rr){const Qt=a.EpF();a.ynx(0),a.TgZ(1,"a",37),a.NdJ("click",function(){a.CHM(Qt);const On=a.oxw(2).$implicit;return a.oxw(4).goToWidget(On)}),a.YNc(2,Rn,1,1,"img",38),a.TgZ(3,"span",39),a._uU(4),a.qZA()(),a.BQk()}if(2&rr){const Qt=a.oxw(2).$implicit;a.xp6(1),a.Q6J("ngClass",a.VKq(3,Kn,!Qt.hashIcon)),a.xp6(1),a.Q6J("ngIf",Qt.hashIcon),a.xp6(2),a.Oqu(Qt.title)}}function li(rr,cn){if(1&rr){const Qt=a.EpF();a.ynx(0),a.TgZ(1,"div",36)(2,"a",41),a.NdJ("click",function(){a.CHM(Qt);const On=a.oxw(2).$implicit;return a.oxw(4).goToWidget(On)}),a.TgZ(3,"div",42)(4,"div",43)(5,"div",44),a._UZ(6,"img",45),a.TgZ(7,"span",46),a._uU(8),a.qZA()(),a._UZ(9,"img",47),a.qZA(),a.TgZ(10,"div",48)(11,"span",49),a._uU(12),a.qZA()()()()(),a.BQk()}if(2&rr){const Qt=a.oxw(2).$implicit,wr=a.oxw(4);a.xp6(6),a.Q6J("src",wr.wepodMainService.getImageFromPodSpaceByHashId(Qt.hashIcon,!0),a.LSH),a.xp6(2),a.Oqu(Qt.title),a.xp6(4),a.Oqu(Qt.description)}}function ci(rr,cn){if(1&rr&&(a.TgZ(0,"li",35)(1,"div",36),a.YNc(2,vi,5,5,"ng-container",15),a.YNc(3,li,13,3,"ng-container",15),a.qZA()()),2&rr){const Qt=a.oxw().$implicit,wr=a.oxw(3).$implicit,On=a.oxw();a.ekj("disabled",2===Qt.status),a.xp6(2),a.Q6J("ngIf",wr.viewType!==On.serviceStoreViewType.HorizontalBigTitle&&wr.viewType!==On.serviceStoreViewType.SliderViewType&&wr.viewType!==On.serviceStoreViewType.ListViewType),a.xp6(1),a.Q6J("ngIf",wr.viewType===On.serviceStoreViewType.ListViewType)}}function lr(rr,cn){if(1&rr&&(a.ynx(0),a.YNc(1,ci,4,4,"li",34),a.BQk()),2&rr){const Qt=cn.$implicit,wr=a.oxw(4);a.xp6(1),a.Q6J("ngIf",!Qt.hidden&&wr.developmentMode(Qt.name))}}function _r(rr,cn){if(1&rr&&a._UZ(0,"img",58),2&rr){const Qt=a.oxw(3).$implicit,wr=a.oxw(5);a.Q6J("src",wr.wepodMainService.getImageFromPodSpaceByHashId(Qt.hashIcon,!0),a.LSH)}}function yr(rr,cn){if(1&rr){const Qt=a.EpF();a.TgZ(0,"a",52),a.NdJ("click",function(){a.CHM(Qt);const On=a.oxw(2).$implicit;return a.oxw(5).goToWidget(On)}),a.TgZ(1,"div",53)(2,"div",54)(3,"div",55),a.YNc(4,_r,1,1,"img",56),a.TgZ(5,"span",57),a._uU(6),a.qZA()()()()()}if(2&rr){const Qt=a.oxw(2).$implicit;a.xp6(4),a.Q6J("ngIf",Qt.hashIcon),a.xp6(2),a.Oqu(Qt.title)}}function xr(rr,cn){1&rr&&a.YNc(0,yr,7,2,"ng-template",51)}function dn(rr,cn){if(1&rr&&a._UZ(0,"img",58),2&rr){const Qt=a.oxw(3).$implicit,wr=a.oxw(5);a.Q6J("src",wr.wepodMainService.getImageFromPodSpaceByHashId(Qt.hashIcon,!0),a.LSH)}}function bn(rr,cn){if(1&rr){const Qt=a.EpF();a.TgZ(0,"a",52),a.NdJ("click",function(){a.CHM(Qt);const On=a.oxw(2).$implicit;return a.oxw(5).goToWidget(On)}),a.TgZ(1,"div",53)(2,"div",54)(3,"div",55),a.YNc(4,dn,1,1,"img",56),a.TgZ(5,"span",57),a._uU(6),a.qZA()()()()()}if(2&rr){const Qt=a.oxw(2).$implicit;a.xp6(4),a.Q6J("ngIf",Qt.hashIcon),a.xp6(2),a.Oqu(Qt.title)}}function Un(rr,cn){1&rr&&a.YNc(0,bn,7,2,"ng-template",51)}function Fn(rr,cn){if(1&rr&&(a.ynx(0),a.YNc(1,xr,1,0,null,15),a.YNc(2,Un,1,0,null,15),a.BQk()),2&rr){const Qt=cn.$implicit,wr=a.oxw(4).$implicit,On=a.oxw();a.xp6(1),a.Q6J("ngIf",!Qt.hidden&&On.developmentMode(Qt.name)),a.xp6(1),a.Q6J("ngIf",!Qt.hidden&&On.developmentMode(Qt.name)&&1===wr.services.length)}}function Vn(rr,cn){if(1&rr&&(a.TgZ(0,"owl-carousel-o",50),a.YNc(1,Fn,3,2,"ng-container",21),a.qZA()),2&rr){const Qt=a.oxw(3).$implicit,wr=a.oxw();a.Q6J("options",wr.carouselOptions),a.xp6(1),a.Q6J("ngForOf",Qt.services)}}function zn(rr,cn){if(1&rr){const Qt=a.EpF();a.TgZ(0,"a",62),a.NdJ("click",function(){a.CHM(Qt);const On=a.oxw(2).$implicit;return a.oxw(5).goToWidget(On)}),a.TgZ(1,"div",53)(2,"div",54)(3,"div",55),a._UZ(4,"img",63),a.qZA()()()()}if(2&rr){const Qt=a.oxw(2).$implicit,wr=a.oxw(5);a.xp6(4),a.Q6J("src",wr.wepodMainService.getImageFromPodSpaceByType(Qt.hashIcon,4,"ACTUAL",!0),a.LSH)}}function ai(rr,cn){1&rr&&a.YNc(0,zn,5,1,"ng-template",51)}function _i(rr,cn){if(1&rr&&(a.ynx(0),a.YNc(1,ai,1,0,null,15),a.BQk()),2&rr){const Qt=a.oxw(4).$implicit;a.xp6(1),a.Q6J("ngIf",Qt.services.length>1)}}function wi(rr,cn){if(1&rr){const Qt=a.EpF();a.ynx(0),a.TgZ(1,"div",64)(2,"div",65),a.NdJ("click",function(){return a.CHM(Qt),a.oxw(),a.MAs(5).prev()}),a._UZ(3,"img",66),a.qZA()(),a.TgZ(4,"div",67)(5,"div",65),a.NdJ("click",function(){return a.CHM(Qt),a.oxw(),a.MAs(5).next()}),a._UZ(6,"img",68),a.qZA()(),a.BQk()}}function Wn(rr,cn){if(1&rr&&(a.ynx(0),a.TgZ(1,"div",59)(2,"div",60),a.ynx(3),a.TgZ(4,"owl-carousel-o",50,61),a.YNc(6,_i,2,1,"ng-container",21),a.qZA(),a.YNc(7,wi,7,0,"ng-container",15),a.BQk(),a.qZA()(),a.BQk()),2&rr){const Qt=a.oxw(3).$implicit,wr=a.oxw();a.xp6(4),a.Q6J("options",wr.carouselOptionsForSliderViewType),a.xp6(2),a.Q6J("ngForOf",Qt.services),a.xp6(1),a.Q6J("ngIf",Qt.services.length>1)}}function $r(rr,cn){if(1&rr&&a._UZ(0,"img",72),2&rr){const Qt=a.oxw(4).$implicit,wr=a.oxw();a.Q6J("src",wr.wepodMainService.getImageFromPodSpaceByType(Qt.services[0].hashIcon,4,"ACTUAL",!0),a.LSH)}}function Pn(rr,cn){if(1&rr){const Qt=a.EpF();a.ynx(0),a.TgZ(1,"div",69)(2,"a",70),a.NdJ("click",function(){a.CHM(Qt);const On=a.oxw(3).$implicit;return a.oxw().goToWidget(On.services[0])}),a.TgZ(3,"div",53)(4,"div",54)(5,"div",55),a.YNc(6,$r,1,1,"img",71),a.qZA()()()()(),a.BQk()}if(2&rr){const Qt=a.oxw(3).$implicit;a.xp6(6),a.Q6J("ngIf",Qt.services[0].hashIcon)}}const An=function(rr,cn){return{"service-store-slider-wrapper":rr,"list-main-category":cn}};function Qn(rr,cn){if(1&rr&&(a.ynx(0),a.YNc(1,yn,2,1,"h6",30),a.TgZ(2,"ul",31),a.YNc(3,lr,2,1,"ng-container",21),a.YNc(4,Vn,2,2,"owl-carousel-o",32),a.YNc(5,Wn,8,3,"ng-container",15),a.YNc(6,Pn,7,1,"ng-container",15),a.qZA(),a.BQk()),2&rr){const Qt=a.oxw(2).$implicit,wr=a.oxw();a.xp6(1),a.Q6J("ngIf",Qt.title),a.xp6(1),a.ekj("grid-square-container",Qt.viewType===wr.serviceStoreViewType.GridSquare||Qt.viewType>wr.serviceStoreViewType.ListViewType)("vertical-list-container",Qt.viewType===wr.serviceStoreViewType.VerticalList)("horizontal-big-title-container",Qt.viewType===wr.serviceStoreViewType.HorizontalBigTitle)("vertical-list-card-container",Qt.viewType===wr.serviceStoreViewType.VerticalListCard)("slider-view-type-container",Qt.viewType===wr.serviceStoreViewType.SliderViewType)("default-padding",Qt.viewType!==wr.serviceStoreViewType.SliderViewType)("list-view-type-container",Qt.viewType===wr.serviceStoreViewType.ListViewType),a.Q6J("ngClass",a.WLB(20,An,Qt.viewType===wr.serviceStoreViewType.SliderViewType,Qt.title)),a.xp6(1),a.Q6J("ngForOf",Qt.services),a.xp6(1),a.Q6J("ngIf",Qt.viewType===wr.serviceStoreViewType.HorizontalBigTitle),a.xp6(1),a.Q6J("ngIf",Qt.viewType===wr.serviceStoreViewType.SliderViewType&&Qt.services.length>=1),a.xp6(1),a.Q6J("ngIf",Qt.viewType===wr.serviceStoreViewType.SliderViewType&&1===Qt.services.length)}}function yi(rr,cn){if(1&rr&&(a.TgZ(0,"div"),a.YNc(1,Qn,7,23,"ng-container",15),a.qZA()),2&rr){const Qt=a.oxw().$implicit;a.xp6(1),a.Q6J("ngIf",Qt.services.length)}}function oi(rr,cn){if(1&rr&&(a.TgZ(0,"div",29),a.YNc(1,yi,2,1,"div",15),a.qZA()),2&rr){const Qt=cn.$implicit,wr=a.oxw();a.xp6(1),a.Q6J("ngIf",!Qt.hidden&&wr.developmentMode(Qt.name))}}let di=(()=>{class rr{constructor(Qt,wr,On,Ci,Si,Cs,Gi,ha){this.clubService=Qt,this.resourceAppService=wr,this.routingAppService=On,this.customersClubPassingService=Ci,this.tagManager=Si,this.serviceStoreAppService=Cs,this.serviceStoreDataPassingService=Gi,this.wepodMainService=ha,this.developmentMode=zt.Sq,this.serviceStoreViewType=un.p,this.carouselOptions={autoWidth:!0,rtl:!0,loop:!1,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,dots:!1,margin:10,autoplay:!1,center:!1,responsive:{0:{items:1.5,margin:0},530:{items:2.5,margin:0},768:{items:2.5,margin:0}}},this.carouselOptionsForSliderViewType={autoWidth:!0,rtl:!0,loop:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,dots:!1,margin:10,autoplay:!0,autoplayTimeout:5e3,autoplayHoverPause:!0,center:!0,responsive:{0:{items:1.25,margin:12},500:{items:2,margin:18},768:{items:2,margin:30},1024:{items:2,margin:30}}},this.getClubCampaignsWithAggregatesCallError=!1,this.pageHeaderData={buttons:{back:{action:()=>{On.back()}},firstAction:{icon:"assets/images/customers-club/info.svg",iconAlt:"info",action:()=>{this.resourceAppService.getValueFromResource().then(As=>{(0,f.Jj)()?.open(As.CustomerClub.LandingUrl,"_blank")})}},secondAction:{icon:"assets/images/customers-club/gift-code.svg",iconAlt:"gift",title:"\u062a\u0628\u062f\u06cc\u0644 \u06a9\u062f \u0647\u062f\u06cc\u0647",action:()=>{this.showGiftCodeModal()}}},title:"\u0648\u06cc\u200c\u06a9\u0644\u0627\u0628"},fn.hg.next({loading:!0,cancelable:!1}),Cs.getServicesWithLoading("WECLUB").then(As=>{this.categoriesData=As,fn.hg.next({loading:!1,cancelable:!1})}),this.customersClubPassingService.showFestivalsToggleTab=!1}ngOnInit(){this.getScoreAccount(),this.getClubCampaignsWithAggregates()}onScroll(Qt){Qt.srcElement.scrollTop>30?document.getElementById("green-bar-header").classList.add("club-list-box-shadow"):document.getElementById("green-bar-header").classList.remove("club-list-box-shadow")}getClubCampaignsWithAggregates(){this.clubService.getClubCampaignsWithAggregates().subscribe(Qt=>{this.groups=Qt,this.expiredClubs=Qt.expiredClubCampaigns,this.getClubCampaignsWithAggregatesCallError=!1},()=>{this.getClubCampaignsWithAggregatesCallError=!0})}getGroupName(Qt){switch(Qt){case"activeClubCampaigns":return"\u062c\u0634\u0646\u0648\u0627\u0631\u0647\u200c\u0647\u0627\u06cc \u0641\u0639\u0627\u0644";case"awaitClubCampaigns":return"\u062c\u0634\u0646\u0648\u0627\u0631\u0647\u200c\u0647\u0627\u06cc \u0622\u06cc\u0646\u062f\u0647";case"expiredClubCampaigns":return"\u062c\u0634\u0646\u0648\u0627\u0631\u0647\u200c\u0647\u0627\u06cc \u067e\u0627\u06cc\u0627\u0646 \u06cc\u0627\u0641\u062a\u0647";default:return""}}goToWidget(Qt){Qt.route&&2!==Qt.status&&(this.carouselOptions.autoplay=!1,this.serviceStoreDataPassingService.clickedThirdParty(Qt.route))}handleGoToExpiredClubsPage(){this.routingAppService.navigate(["club/expired-list"])}getScoreAccount(){this.clubService.getScoreAccount().subscribe(Qt=>{Qt.balance?(this.score=Qt.balance,this.customersClubPassingService.score=this.score):(this.score=0,this.customersClubPassingService.score=0)})}showGiftCodeModal(){C.j.height=350,C.j.desktopStyle=!1,C.j.bgWhite=!1,C.j.hideDesktopHeaderClose=!1,C.j.modalTitleBgGray=!0,C.j.disableBackdropClosing=!1,C.j.modalTitle="",(0,zt.Sq)("DataLayerGoogleAnalytics")&&this.tagManager.pushEvent("club_offcode_visit",{}),(0,C.h7)("giftCode")}}return rr.\u0275fac=function(Qt){return new(Qt||rr)(a.Y36(D.I),a.Y36(H.K),a.Y36(O.s),a.Y36(V.Y),a.Y36(kr.c),a.Y36(un.d),a.Y36(Et.p),a.Y36(F.g))},rr.\u0275cmp=a.Xpm({type:rr,selectors:[["app-customers-club-list"]],decls:27,vars:7,consts:[[3,"data"],[1,"customers-club-list",2,"position","relative"],["id","green-bar-header",1,"green-bar-below-header"],[1,"coins-badge-wrapper"],["href","javascript:void(0)",1,"coins-badge",3,"click"],["src","assets/images/customers-club/coin.svg","alt",""],[2,"display","flex","justify-content","center","flex-grow","1"],["class","coins-text bold font-base",4,"ngIf"],[3,"theme","count","loadingText",4,"ngIf"],["href","javascript:void(0)",1,"coins-badge","my-purchases",3,"click"],["src","assets/images/customers-club/purchase-icon.svg","alt",""],[1,"coins-text","bold","font-base"],["id","club-list",1,"customers-club-list",3,"scroll"],[1,"container-per-page","list-main-category-container"],[1,"separator"],[4,"ngIf"],[1,"expired-club-wrapper",3,"click"],["alt","","src","assets/images/list/arrow-left.svg"],["class","list-wrapper list-with-icon service-store-wrapper",4,"ngFor","ngForOf"],[1,"brand-green","bolder","font-large"],[3,"theme","count","loadingText"],[4,"ngFor","ngForOf"],[1,"list-title-center-with-lines"],[1,"list-title","list-title-center","gray-light","font-small"],["style","padding-bottom: 12px;",4,"ngFor","ngForOf"],[2,"padding-bottom","12px"],[3,"club","isShowStatusType","isShowDrawPhrase"],[1,"refresh-box",3,"click"],["src","assets/images/shared/refresh-icon.png","alt",""],[1,"list-wrapper","list-with-icon","service-store-wrapper"],["class","list-title",4,"ngIf"],[1,"service-store-container","list-main-category-container",3,"ngClass"],[3,"options",4,"ngIf"],[1,"list-title"],["class","list-item-wrapper",3,"disabled",4,"ngIf"],[1,"list-item-wrapper"],[1,"list-content"],["href","javascript:void(0);",1,"list-content-link",3,"ngClass","click"],["class","list-content-link-icon","alt","",3,"src",4,"ngIf"],[1,"list-content-link-title"],["alt","",1,"list-content-link-icon",3,"src"],[1,"list-content-link",3,"click"],[1,"list-content-item"],[1,"list-content-item-top"],[1,"list-content-item-top-logo"],["height","35","alt","",3,"src"],[1,"bold"],["src","assets/images/list/arrow-left.svg","alt","",1,"list-content-item-top-img"],[1,"list-content-item-bottom"],[1,"gray-light"],[3,"options"],["carouselSlide",""],["href","javascript:void(0)",1,"owl-item-link",3,"click"],[1,"item"],[1,"title"],[1,"slider-cards"],["class","slider-cards-icon","height","35","alt","",3,"src",4,"ngIf"],[1,"slider-cards-title"],["height","35","alt","",1,"slider-cards-icon",3,"src"],[1,"main-slider-wrapper"],[1,"slider-carousel"],["owlCar",""],["href","javascript:void(0)",1,"owl-item-link","gift-card",3,"click"],["alt","","height","167",1,"slider-cards-icon","card-bg",3,"src"],[1,"nav-arrow","left-arrow"],[1,"carousel-nav-buttons",3,"click"],["alt","\u0642\u0628\u0644\u06cc","src","assets/images/shared/arrow-left.svg","width","21","height","20"],[1,"nav-arrow","right-arrow"],["alt","\u0628\u0639\u062f\u06cc","src","assets/images/shared/arrow-right.svg","width","21","height","20"],[1,"container-per-page","list-main-category-container","service-store-wrapper","single-slider"],["href","javascript:void(0)",1,"single-card",3,"click"],["class","w-100","class","card-bg","alt","",3,"src",4,"ngIf"],["alt","",1,"card-bg",3,"src"]],template:function(Qt,wr){1&Qt&&(a._UZ(0,"app-page-header",0),a.TgZ(1,"div",1),a._UZ(2,"div",2),a.TgZ(3,"div",3)(4,"a",4),a.NdJ("click",function(){return wr.routingAppService.navigate(["club/history"])}),a._UZ(5,"img",5),a.TgZ(6,"div",6),a.YNc(7,Ae,4,1,"span",7),a.YNc(8,Bt,1,4,"ngx-skeleton-loader",8),a.qZA()(),a.TgZ(9,"a",9),a.NdJ("click",function(){return wr.routingAppService.navigate(["club/purchases"])}),a._UZ(10,"img",10),a.TgZ(11,"div",6)(12,"span",11),a._uU(13," \u062e\u0631\u06cc\u062f\u0647\u0627\u06cc \u0645\u0646 "),a.qZA()()()()(),a.TgZ(14,"div",12),a.NdJ("scroll",function(Ci){return wr.onScroll(Ci)}),a.TgZ(15,"div",13),a._UZ(16,"div",14),a.YNc(17,sn,3,3,"ng-container",15),a.YNc(18,En,5,0,"ng-container",15),a.YNc(19,Sn,2,0,"ng-container",15),a.TgZ(20,"div",16),a.NdJ("click",function(){return wr.handleGoToExpiredClubsPage()}),a.TgZ(21,"p"),a._uU(22," \u0647\u0645\u0647 \u062c\u0634\u0646\u0648\u0627\u0631\u0647\u200c\u0647\u0627\u06cc \u067e\u0627\u06cc\u0627\u0646 \u06cc\u0627\u0641\u062a\u0647"),a.qZA(),a._UZ(23,"img",17),a.qZA()(),a.YNc(24,oi,2,1,"div",18),a._UZ(25,"div",14)(26,"div",14),a.qZA()),2&Qt&&(a.Q6J("data",wr.pageHeaderData),a.xp6(7),a.Q6J("ngIf",wr.score>=0),a.xp6(1),a.Q6J("ngIf",!(wr.score>=0)),a.xp6(9),a.Q6J("ngIf",wr.groups),a.xp6(1),a.Q6J("ngIf",wr.getClubCampaignsWithAggregatesCallError),a.xp6(1),a.Q6J("ngIf",!wr.groups),a.xp6(5),a.Q6J("ngForOf",wr.categoriesData))},directives:[U.qA,t.O5,r.xr,t.sg,Ce,t.mk,h.Fy,h.Mp],pipes:[t.Nd],encapsulation:2}),rr})();var Qi=n(49840);function Di(rr,cn){1&rr&&a._UZ(0,"img",13)}function ts(rr,cn){1&rr&&a._UZ(0,"img",14)}function Oi(rr,cn){1&rr&&(a.TgZ(0,"span",15),a._uU(1,"\u062f\u0631\u06cc\u0627\u0641\u062a \u0634\u062f\u0647"),a.qZA())}function hs(rr,cn){1&rr&&(a.TgZ(0,"span",15),a._uU(1,"\u0645\u0635\u0631\u0641 \u0634\u062f\u0647"),a.qZA())}let Fi=(()=>{class rr{constructor(Qt){this.wepodMainService=Qt}ngOnInit(){}}return rr.\u0275fac=function(Qt){return new(Qt||rr)(a.Y36(F.g))},rr.\u0275cmp=a.Xpm({type:rr,selectors:[["app-customers-club-point-item"]],inputs:{item:"item"},decls:20,vars:14,consts:[[1,"w-100","card",2,"padding","16px","height","min-content","margin-bottom","16px"],[1,"w-100","flex","jc-between","ai-center"],[2,"vertical-align","sub","display","inline-flex"],["style","margin-left: 4px","src","assets/images/customers-club/inbound.svg","alt","",4,"ngIf"],["style","margin-left: 4px","src","assets/images/customers-club/outbound.svg","alt","",4,"ngIf"],["class","font-xsmall",4,"ngIf"],[1,"gray-light","font-xsmall",2,"direction","ltr"],[1,"w-100","flex","jc-between","ai-center",2,"margin-top","8px"],[1,"flex",2,"align-items","center"],[2,"border-radius","50%","height","28px","width","28px","position","relative","overflow","hidden","border","1px solid #eee","background","transparent","margin-left","12px"],["alt","",2,"object-fit","contain","height","20px","width","60%","position","absolute","top","50%","right","50%","transform","translate(50%, -50%)",3,"src"],[1,"font-small"],[1,"bolder","font-small"],["src","assets/images/customers-club/inbound.svg","alt","",2,"margin-left","4px"],["src","assets/images/customers-club/outbound.svg","alt","",2,"margin-left","4px"],[1,"font-xsmall"]],template:function(Qt,wr){1&Qt&&(a.TgZ(0,"div",0)(1,"div",1)(2,"span",2),a.YNc(3,Di,1,0,"img",3),a.YNc(4,ts,1,0,"img",4),a.YNc(5,Oi,2,0,"span",5),a.YNc(6,hs,2,0,"span",5),a.qZA(),a.TgZ(7,"span",6),a._uU(8),a.ALo(9,"jalaliDateTime"),a.qZA()(),a.TgZ(10,"div",7)(11,"span",8)(12,"div",9),a._UZ(13,"img",10),a.qZA(),a.TgZ(14,"span",11),a._uU(15),a.qZA()(),a.TgZ(16,"span",11)(17,"span",12),a._uU(18),a.qZA(),a._uU(19," \u0633\u06a9\u0647 "),a.qZA()()()),2&Qt&&(a.xp6(3),a.Q6J("ngIf",1===wr.item.scoreType),a.xp6(1),a.Q6J("ngIf",2===wr.item.scoreType),a.xp6(1),a.Q6J("ngIf",1===wr.item.scoreType),a.xp6(1),a.Q6J("ngIf",2===wr.item.scoreType),a.xp6(2),a.Oqu(a.lcZ(9,12,wr.item.scoreDate)),a.xp6(5),a.Q6J("src",wr.wepodMainService.getImageFromPodSpaceByHashId(wr.item.transactionHashIcon),a.LSH),a.xp6(2),a.Oqu(wr.item.transactionTitle),a.xp6(1),a.ekj("red-text",2===wr.item.scoreType)("brand-green",1===wr.item.scoreType),a.xp6(2),a.Oqu(wr.item.score))},directives:[t.O5],pipes:[Ot.p7],encapsulation:2}),rr})();const Os=["pointsContainer"];function ys(rr,cn){if(1&rr&&(a.TgZ(0,"div",14)(1,"span",15),a._uU(2),a.qZA(),a.TgZ(3,"span",16),a._uU(4," \u0633\u06a9\u0647"),a.qZA()()),2&rr){const Qt=a.oxw();a.xp6(2),a.hij(" ",Qt.score," ")}}const rs=function(){return{height:"16px",width:"80px"}};function fa(rr,cn){1&rr&&a._UZ(0,"ngx-skeleton-loader",17),2&rr&&a.Q6J("theme",a.DdM(3,rs))("count",1)("loadingText","")}function $s(rr,cn){if(1&rr&&(a.TgZ(0,"div",21),a._UZ(1,"div",22),a.TgZ(2,"p",23),a._uU(3),a.qZA(),a._UZ(4,"div",22),a.qZA()),2&rr){const Qt=a.oxw().index,wr=a.oxw();a.xp6(3),a.hij(" ",wr.getTimeBadge(Qt)," ")}}function Zs(rr,cn){if(1&rr&&(a.TgZ(0,"section",18),a.YNc(1,$s,5,1,"div",19),a._UZ(2,"app-customers-club-point-item",20),a.qZA()),2&rr){const Qt=cn.$implicit,wr=cn.index,On=a.oxw();a.xp6(1),a.Q6J("ngIf",On.showDateBar(wr)),a.xp6(1),a.Q6J("item",Qt)}}function ps(rr,cn){1&rr&&a._UZ(0,"app-spinner",24)}function Ta(rr,cn){1&rr&&(a.TgZ(0,"section",18)(1,"div",25),a._UZ(2,"img",26),a.TgZ(3,"h4"),a._uU(4,"\u0647\u06cc\u0686 \u0627\u0645\u062a\u06cc\u0627\u0632\u06cc \u062f\u0631\u06cc\u0627\u0641\u062a \u06cc\u0627 \u0645\u0635\u0631\u0641 \u0646\u06a9\u0631\u062f\u0647 \u0627\u06cc\u062f."),a.qZA()()())}let ka=(()=>{class rr extends N.Z{constructor(Qt,wr,On){super(),this.clubService=Qt,this.activatedRoute=wr,this.routingAppService=On,this.isMainSpinnerVisible=!1,this.data=[],this.isGettingNextOffset=!1,this.lastOffset=0,this.data=wr.snapshot.data.data,this.pageHeaderData={buttons:{back:{action:()=>{On.back()}}},title:"\u06af\u0631\u062f\u0634 \u062d\u0633\u0627\u0628 \u0633\u06a9\u0647\u200c\u0647\u0627"}}ngOnInit(){this.clubService.getScoreAccount().subscribe(Qt=>{this.score=Qt.balance?Qt.balance:0})}ngAfterViewInit(){this.scrollSubscriber=(0,Yt.R)((0,f.Jj)(),"scroll").subscribe(()=>{(0,f.Jj)()?.scrollY+(0,f.Jj)()?.innerHeight>this.pointsContainer.nativeElement.offsetTop+this.pointsContainer.nativeElement.offsetHeight-300&&this.data.length&&this.lastOffset!==this.data.length&&(this.lastOffset=this.data.length,this.getScoreHistory())}),(0,f.Jj)()?.scrollTo(0,0)}ngOnDestroy(){super.ngOnDestroy(),this.scrollSubscriber.unsubscribe()}showDateBar(Qt){if(this.data?.length&&this.data[Qt]){if(this.data[Qt-1]){const wr=Qi(this.data[Qt].scoreDate,"YYYY-MM-DD").format("jYYYY/jMM/jDD").split("/"),On=Qi(this.data[Qt-1].scoreDate,"YYYY-MM-DD").format("jYYYY/jMM/jDD").split("/"),[Ci,Si]=wr,[Cs,Gi]=On;return Ci!==Cs||Math.floor((parseInt(Si,10)-1)/3)!==Math.floor((parseInt(Gi,10)-1)/3)}return!0}}getTimeBadge(Qt){const wr=Qi(this.data[Qt].scoreDate,"YYYY-MM-DD").format("jYYYY/jMM/jDD").split("/");let On="";switch(Math.floor((parseInt(wr[1],10)-1)/3)){case 0:On="\u0628\u0647\u0627\u0631";break;case 1:On="\u062a\u0627\u0628\u0633\u062a\u0627\u0646";break;case 2:On="\u067e\u0627\u06cc\u06cc\u0632";break;case 3:On="\u0632\u0645\u0633\u062a\u0627\u0646"}return On+" "+wr[0]}getScoreHistory(){this.isGettingNextOffset||(this.isMainSpinnerVisible=!0,this.clubService.getScoreHistory({size:X.z.pagingSize,offset:this.data.length}).subscribe(Qt=>{(!Qt.length||Qt.length<X.z.pagingSize)&&this.scrollSubscriber.unsubscribe(),this.isGettingNextOffset=!1,this.isMainSpinnerVisible=!1,this.data=[...this.data,...Qt]},()=>{this.isMainSpinnerVisible=!1,this.isGettingNextOffset=!1}))}}return rr.\u0275fac=function(Qt){return new(Qt||rr)(a.Y36(D.I),a.Y36(p.gz),a.Y36(O.s))},rr.\u0275cmp=a.Xpm({type:rr,selectors:[["app-customers-club-points"]],viewQuery:function(Qt,wr){if(1&Qt&&a.Gf(Os,5),2&Qt){let On;a.iGM(On=a.CRH())&&(wr.pointsContainer=On.first)}},features:[a.qOj],decls:15,vars:6,consts:[[3,"data"],[1,"white-bar-below-header","flex","jc-center","ai-center"],[1,"flex","jc-center","ai-center"],["src","assets/images/customers-club/coin.svg","alt","",1,"icon"],[1,"coin-container"],["class","coins-text bold font-large",4,"ngIf"],[3,"theme","count","loadingText",4,"ngIf"],[1,"customers-club-list",2,"overflow-y","auto"],["pointsContainer",""],[1,"container-per-page","list-main-category-container"],["class","list-wrapper",4,"ngFor","ngForOf"],["color","dark-gray","text","\u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc \u062a\u0631\u0627\u06a9\u0646\u0634\u200c\u0647\u0627",4,"ngIf"],["class","list-wrapper",4,"ngIf"],[1,"separator"],[1,"coins-text","bold","font-large"],[1,"brand-green","bolder","font-large"],[1,"coin"],[3,"theme","count","loadingText"],[1,"list-wrapper"],["class","list-title-center-with-lines",4,"ngIf"],[3,"item"],[1,"list-title-center-with-lines"],[1,"list-title-side-line"],[1,"list-title","list-title-center","font-small",2,"padding","0 36px"],["color","dark-gray","text","\u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc \u062a\u0631\u0627\u06a9\u0646\u0634\u200c\u0647\u0627"],[1,"list-without-data"],["src","../../../../assets/images/transactions-report/empty-list.svg","alt",""]],template:function(Qt,wr){1&Qt&&(a._UZ(0,"app-page-header",0),a.TgZ(1,"div",1)(2,"div",2),a._UZ(3,"img",3),a.TgZ(4,"div",4),a.YNc(5,ys,5,1,"div",5),a.YNc(6,fa,1,4,"ngx-skeleton-loader",6),a.qZA()()(),a.TgZ(7,"div",7,8)(9,"div",9),a.YNc(10,Zs,3,2,"section",10),a.YNc(11,ps,1,0,"app-spinner",11),a.YNc(12,Ta,5,0,"section",12),a._UZ(13,"div",13)(14,"div",13),a.qZA()()),2&Qt&&(a.Q6J("data",wr.pageHeaderData),a.xp6(5),a.Q6J("ngIf",wr.score>=0),a.xp6(1),a.Q6J("ngIf",!(wr.score>=0)),a.xp6(4),a.Q6J("ngForOf",wr.data),a.xp6(1),a.Q6J("ngIf",wr.isMainSpinnerVisible),a.xp6(1),a.Q6J("ngIf",!wr.data.length&&!wr.isMainSpinnerVisible))},directives:[U.qA,t.O5,r.xr,t.sg,Fi,Zt.O],encapsulation:2}),rr})(),Xs=(()=>{class rr{constructor(Qt){this.clubService=Qt}resolve(){return this.clubService.getScoreHistory({offset:0,size:50})}}return rr.\u0275fac=function(Qt){return new(Qt||rr)(a.LFG(D.I))},rr.\u0275prov=a.Yz7({token:rr,factory:rr.\u0275fac,providedIn:"root"}),rr})();var ks=n(15439);function ia(rr,cn){if(1&rr&&(a.TgZ(0,"span",18)(1,"span",19),a._uU(2),a.qZA(),a._uU(3," \u0633\u06a9\u0647 "),a.qZA()),2&rr){const Qt=a.oxw();a.xp6(2),a.hij(" ",Qt.customersClubPassingService.score," ")}}const Qa=function(){return{height:"16px",width:"80px"}};function Ea(rr,cn){1&rr&&a._UZ(0,"ngx-skeleton-loader",20),2&rr&&a.Q6J("theme",a.DdM(3,Qa))("count",1)("loadingText","")}function Ma(rr,cn){if(1&rr&&(a.ynx(0),a._UZ(1,"app-ticket",24),a.BQk()),2&rr){const Qt=a.oxw().$implicit;a.xp6(1),a.Q6J("club",Qt.value)("isShowChanceCountInPurchaseClub",!0)("isShowDrawPhrase",!0)("isInPurchaseLists",!0)("isShowStatusType",!0)}}function qt(rr,cn){if(1&rr&&(a.TgZ(0,"div"),a.YNc(1,Ma,2,5,"ng-container",17),a.qZA()),2&rr){const Qt=cn.$implicit;a.xp6(1),a.Q6J("ngIf",Qt.value)}}function jt(rr,cn){if(1&rr){const Qt=a.EpF();a.ynx(0),a.TgZ(1,"div",21),a.NdJ("scrolled",function(){return a.CHM(Qt),a.oxw().onScrollDownPurchaseItem()}),a.YNc(2,qt,2,1,"div",22),a.ALo(3,"keyvalue"),a.qZA(),a._UZ(4,"div",23)(5,"div",23),a.BQk()}if(2&rr){const Qt=a.oxw();a.xp6(1),a.Q6J("infiniteScrollDistance",Qt.scrollDistance)("infiniteScrollThrottle",Qt.scrollThrottle)("infiniteScrollDisabled",Qt.scrollDisabled),a.xp6(1),a.Q6J("ngForOf",a.lcZ(3,4,Qt.purchasesItems))}}const Mt=function(rr){return{hover:rr}};function Mr(rr,cn){if(1&rr){const Qt=a.EpF();a.TgZ(0,"a",31),a.NdJ("click",function(){const Ci=a.CHM(Qt).$implicit;return a.oxw(3).selectCategory(Ci)}),a._uU(1),a.qZA()}if(2&rr){const Qt=cn.$implicit;a.Q6J("ngClass",a.VKq(2,Mt,null==Qt?null:Qt.isActiveTag)),a.xp6(1),a.Oqu(null==Qt?null:Qt.title)}}function Mn(rr,cn){if(1&rr&&(a.TgZ(0,"div",29),a.ynx(1),a.YNc(2,Mr,2,4,"a",30),a.BQk(),a.qZA()),2&rr){const Qt=a.oxw(2);a.xp6(2),a.Q6J("ngForOf",Qt.clubTags)}}function ui(rr,cn){if(1&rr){const Qt=a.EpF();a.TgZ(0,"div",32)(1,"div",33)(2,"p",34),a._uU(3),a.qZA(),a.TgZ(4,"span",35),a._uU(5),a.qZA()(),a.TgZ(6,"img",36),a.NdJ("click",function(){return a.CHM(Qt),a.oxw(2).handleDeleteFilter()}),a.qZA()()}if(2&rr){const Qt=a.oxw(2);a.xp6(3),a.Oqu(Qt.categoryDetailData.tags[0].title),a.xp6(2),a.Oqu(Qt.categoryDetailData.title)}}function ss(rr,cn){if(1&rr&&(a.TgZ(0,"div")(1,"div",38),a._UZ(2,"app-discount-ticket",39),a.qZA()()),2&rr){const Qt=cn.$implicit;a.xp6(2),a.Q6J("discountCode",Qt)("isInPurchasePage",!0)}}function Ki(rr,cn){if(1&rr){const Qt=a.EpF();a.TgZ(0,"div",37),a.NdJ("scrolled",function(){return a.CHM(Qt),a.oxw(2).onScrollDownDiscountItem()}),a.YNc(1,ss,3,2,"div",22),a._UZ(2,"div",23)(3,"div",23),a.qZA()}if(2&rr){const Qt=a.oxw(2);a.Q6J("infiniteScrollDistance",Qt.scrollDistance)("infiniteScrollThrottle",Qt.scrollThrottle)("infiniteScrollDisabled",Qt.scrollDisabledForActiveDiscounts),a.xp6(1),a.Q6J("ngForOf",Qt.userDiscountCodes)}}function zs(rr,cn){1&rr&&(a.ynx(0),a.TgZ(1,"div",40),a._UZ(2,"img",41),a.TgZ(3,"p",40),a._uU(4,"\u0634\u0645\u0627 \u0647\u06cc\u0686 \u06a9\u062f \u062a\u062e\u0641\u06cc\u0641\u06cc \u0646\u062f\u0627\u0631\u06cc\u062f."),a.qZA()(),a.BQk())}function Na(rr,cn){if(1&rr&&(a.ynx(0),a.TgZ(1,"div",25),a.YNc(2,Mn,3,1,"div",26),a.YNc(3,ui,7,2,"div",27),a.qZA(),a.YNc(4,Ki,4,4,"div",28),a.YNc(5,zs,5,0,"ng-container",17),a.BQk()),2&rr){const Qt=a.oxw();a.xp6(2),a.Q6J("ngIf",!Qt.categoryDetailData||Qt.hideBreadCrumbItems),a.xp6(1),a.Q6J("ngIf",Qt.categoryDetailData&&!Qt.hideBreadCrumbItems),a.xp6(1),a.Q6J("ngIf",null==Qt.userDiscountCodes?null:Qt.userDiscountCodes.length),a.xp6(1),a.Q6J("ngIf",Qt.showEmptyMessageForDiscountList)}}let sa=(()=>{class rr extends N.Z{constructor(Qt,wr,On,Ci,Si){super(),this.routingAppService=Qt,this.resourceAppService=wr,this.clubService=On,this.customersClubPassingService=Ci,this.route=Si,this.scrollDisabled=!1,this.scrollDisabledForActiveDiscounts=!1,this.hideBreadCrumbItems=!1,this.showEmptyMessageForDiscountList=!1,(0,f.Jj)()?.scrollTo(0,0),this.pageHeaderData={title:"\u062e\u0631\u06cc\u062f\u0647\u0627\u06cc \u0645\u0646",buttons:{back:{action:()=>{Qt.back()}},firstAction:{icon:"assets/images/customers-club/info.svg",iconAlt:"info",hidden:!1,action:()=>{this.resourceAppService.getValueFromResource().then(Cs=>{(0,f.Jj)()?.open(Cs.CustomerClub.LandingUrl,"_blank")})}}}}}ngOnInit(){this.route.params.subscribe(Qt=>{this.categoryId=Qt.id,Qt.id?this.clubService.getCategoryDetail(Qt.id).subscribe(wr=>{this.categoryDetailData=wr,this.tagId=this.categoryDetailData?.tags[0].id,this.getUserDiscountCodes(this.tagId,this.categoryId?this.categoryId:null,null)}):this.getUserDiscountCodes()}),this.getClubTags(),this.customersClubPassingService.score||this.getScoreAccount(),this.customersClubPassingService?.showFestivalsToggleTab?(this.toggleTab=!1,this.getUserClubCampaigns()):this.toggleTab=!0,this.allClubTagsCategory={id:0,order:0,title:"\u0647\u0645\u0647",isActiveTag:!0}}ngAfterViewInit(){this.scrollDistance=X.z.pagingScrollDistance,this.scrollThrottle=X.z.pagingScrollThrottle}ngOnDestroy(){super.ngOnDestroy()}getScoreAccount(){this.clubService.getScoreAccount().subscribe(Qt=>{Qt.balance?(this.score=Qt.balance,this.customersClubPassingService.score=this.score):(this.score=0,this.customersClubPassingService.score=0)})}changeToggleTab(Qt){this.toggleTab=Qt,Qt?(this.userDiscountCodes=[],this.getUserDiscountCodes(this.tagId?this.tagId:null,this.categoryId?this.categoryId:null)):(this.purchasesItems=[],this.getUserClubCampaigns())}getUserClubCampaigns(Qt){this.clubService.getUserClubCampaigns({size:X.z.pagingSize,offset:Qt||0}).subscribe(wr=>{this.purchasesItems?wr.forEach(On=>{this.purchasesItems.push(On)}):this.purchasesItems=wr,this.purchasesItems.length<X.z.pagingSize&&(this.scrollDisabled=!0)})}getUserDiscountCodes(Qt,wr,On){this.clubService.getUserDiscountCodes({tagId:Qt||null,categoryId:wr||null,discountCodeStatus:null,size:X.z.pagingSize,offset:On||0}).subscribe(Ci=>{this.userDiscountCodes?Ci.forEach(Si=>{this.userDiscountCodes.push(Si)}):this.userDiscountCodes=Ci,this.userDiscountCodes?.length&&this.userDiscountCodes.forEach(Si=>{const Cs=new Date;Si.expiryUserDiscountStatus=ks(Cs,"YYYY-MM-DDTHH:mm:ssZ").toISOString()>ks(Si.expiryTime,"YYYY-MM-DDTHH:mm:ssZ").toISOString()}),this.userDiscountCodes.length<X.z.pagingSize&&(this.scrollDisabledForActiveDiscounts=!0)},()=>{},()=>{0===this.userDiscountCodes.length&&(this.showEmptyMessageForDiscountList=!0)})}getClubTags(){fn.hg.next({loading:!0,cancelable:!1}),this.clubService.getTags().subscribe(Qt=>{fn.hg.next({loading:!1,cancelable:!1}),this.clubTags=Qt.sort((wr,On)=>wr.order<On.order?-1:wr.order>On.order?1:0),this.clubTags.unshift(this.allClubTagsCategory)})}selectCategory(Qt){this.clubTags.forEach(wr=>{wr.id===Qt.id?Qt.isActiveTag=!0:wr.isActiveTag=!1}),this.tagId=Qt.id,this.userDiscountCodes=[],this.showEmptyMessageForDiscountList=!1,this.getUserDiscountCodes(this.tagId,null,null)}onScrollDownDiscountItem(){this.getUserDiscountCodes(this.tagId?this.tagId:null,this.categoryId?this.categoryId:null,this.userDiscountCodes?this.userDiscountCodes.length:0)}handleDeleteFilter(){this.routingAppService.navigate(["club/purchases"],{replaceUrl:!0}),this.hideBreadCrumbItems=!0,this.categoryId=null,this.tagId=null,this.customersClubPassingService.showFestivalsToggleTab=!1}onScrollDownPurchaseItem(){this.getUserClubCampaigns(this.purchasesItems?this.purchasesItems.length:0)}}return rr.\u0275fac=function(Qt){return new(Qt||rr)(a.Y36(O.s),a.Y36(H.K),a.Y36(D.I),a.Y36(V.Y),a.Y36(p.gz))},rr.\u0275cmp=a.Xpm({type:rr,selectors:[["app-customers-club-purchases"]],features:[a.qOj],decls:21,vars:7,consts:[["id","header",3,"data"],["id","whiteBarHeader",1,"white-bar-below-header","flex","jc-center","ai-center"],[1,"flex","jc-center","ai-center"],["src","assets/images/customers-club/coin.svg","alt","",1,"icon"],[1,"coin-container"],["class","coins-text bold font-base",4,"ngIf"],[3,"theme","count","loadingText",4,"ngIf"],[1,"customers-club-purchases"],[1,"container-per-page"],["id","tabs",1,"purchase-list-wrapper"],[1,"x-box"],[1,"switch-toggle","switch-candy"],["type","radio","name","view3","id","festivals",3,"checked"],["for","festivals",3,"click"],["type","radio","name","view3","id","discounts",3,"checked"],["for","discounts",3,"click"],["href","javascript:void(0)"],[4,"ngIf"],[1,"coins-text","bold","font-base"],[1,"brand-green","bolder","font-large"],[3,"theme","count","loadingText"],["infiniteScroll","",1,"ticket-wrapper",3,"infiniteScrollDistance","infiniteScrollThrottle","infiniteScrollDisabled","scrolled"],[4,"ngFor","ngForOf"],[1,"separator"],[3,"club","isShowChanceCountInPurchaseClub","isShowDrawPhrase","isInPurchaseLists","isShowStatusType"],[1,"club-category"],["class","scroll-bar","id","scroll-bar",4,"ngIf"],["class","flex ai-center","style","margin: 16px 0",4,"ngIf"],["infiniteScroll","","style","margin-top: 10px",3,"infiniteScrollDistance","infiniteScrollThrottle","infiniteScrollDisabled","scrolled",4,"ngIf"],["id","scroll-bar",1,"scroll-bar"],["href","javascript:void(0)",3,"ngClass","click",4,"ngFor","ngForOf"],["href","javascript:void(0)",3,"ngClass","click"],[1,"flex","ai-center",2,"margin","16px 0"],[1,"breadcrumb-wrapper"],[1,"tag"],[1,"category"],["src","assets/images/customers-club/delete-icon.svg","alt","",1,"delete-icon",3,"click"],["infiniteScroll","",2,"margin-top","10px",3,"infiniteScrollDistance","infiniteScrollThrottle","infiniteScrollDisabled","scrolled"],[2,"padding-bottom","12px"],[3,"discountCode","isInPurchasePage"],[1,"empty-discount"],["src","assets/images/customers-club/no-discount.svg","alt",""]],template:function(Qt,wr){1&Qt&&(a._UZ(0,"app-page-header",0),a.TgZ(1,"div",1)(2,"div",2),a._UZ(3,"img",3),a.TgZ(4,"div",4),a.YNc(5,ia,4,1,"span",5),a.YNc(6,Ea,1,4,"ngx-skeleton-loader",6),a.qZA()()(),a.TgZ(7,"section",7)(8,"div",8)(9,"div",9)(10,"div",10)(11,"div",11),a._UZ(12,"input",12),a.TgZ(13,"label",13),a.NdJ("click",function(){return wr.changeToggleTab(!1)}),a._uU(14,"\u062c\u0634\u0646\u0648\u0627\u0631\u0647\u200c\u0647\u0627"),a.qZA(),a._UZ(15,"input",14),a.TgZ(16,"label",15),a.NdJ("click",function(){return wr.changeToggleTab(!0)}),a._uU(17,"\u062a\u062e\u0641\u06cc\u0641\u200c\u0647\u0627"),a.qZA(),a._UZ(18,"a",16),a.qZA()()(),a.YNc(19,jt,6,6,"ng-container",17),a.YNc(20,Na,6,4,"ng-container",17),a.qZA()()),2&Qt&&(a.Q6J("data",wr.pageHeaderData),a.xp6(5),a.Q6J("ngIf",wr.customersClubPassingService.score>=0),a.xp6(1),a.Q6J("ngIf",!(wr.customersClubPassingService.score>=0)),a.xp6(6),a.Q6J("checked",!wr.toggleTab),a.xp6(3),a.Q6J("checked",wr.toggleTab),a.xp6(4),a.Q6J("ngIf",wr.purchasesItems&&!wr.toggleTab),a.xp6(1),a.Q6J("ngIf",wr.toggleTab))},directives:[U.qA,t.O5,r.xr,l.R,t.sg,Ce,t.mk,$e],pipes:[t.Nd],encapsulation:2}),rr})();const xn=[{path:"list",component:di},{path:"gift-code",component:Ct},{path:"list/:id",component:ur,resolve:{data:Zr}},{path:"list/:id/chances",component:Ke,resolve:{data:nt}},{path:"expired-list",component:Xe},{path:"purchases",component:sa},{path:"purchases/:id",component:sa},{path:"history",component:ka,resolve:{data:Xs}},{path:"discount-detail/:id",component:Dt,resolve:{data:ot}},{path:"discounts-list",component:vt}];let Hi=(()=>{class rr{}return rr.\u0275fac=function(Qt){return new(Qt||rr)},rr.\u0275mod=a.oAB({type:rr}),rr.\u0275inj=a.cJS({imports:[[p.Bz.forChild(xn)],p.Bz]}),rr})(),Xa=(()=>{class rr{}return rr.\u0275fac=function(Qt){return new(Qt||rr)},rr.\u0275mod=a.oAB({type:rr}),rr.\u0275inj=a.cJS({imports:[[t.ez,d.d,Hi,g.$,y.F,r.hx,e.UX,h.bB,l.X]]}),rr})()},75082:(M,b,n)=>{"use strict";n.d(b,{X:()=>l});var t=n(591),e=n(94650);let l=(()=>{class h{constructor(){this.cardsModel=[],this.digitalCards={},this.contactSelectClosing=new t.X(!1),this.filterClosing=new t.X(!1)}reset(){this.cardsModel=[],this.id=null,this.titleDigitalCard=null,this.size=null,this.offset=null,this.status=null,this.fromCreationDateTime=null,this.toCreationDateTime=null,this.fromSentDateTime=null,this.toSentDateTime=null,this.fromExpiryDateTime=null,this.toExpiryDateTime=null,this.expireDate=null,this.fromAmount=null,this.toAmount=null,this.userName=null,this.mobileNumber=null,this.avatarContacts=null,this.digitalCards={},this.imageId=null,this.imageCard=null,this.textCard=null,this.categoryId=null,this.amount=null,this.giftCardInfoModel=null,this.cardId=null,this.voucher=null,this.rowVersion=null,this.receiverUserId=null,this.minValAmount=null,this.maxValAmount=null,this.tickStep=null,this.errorAddNewContact=null,this.cardNumber=null,this.activationUrl=null,this.receiverFirstName=null,this.receiverLastName=null,this.showContactList=null,this.showFilter=null,this.name=null,this.fullName=null,this.giftTypeCode=null}}return h.\u0275fac=function(d){return new(d||h)},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})()},97611:(M,b,n)=>{"use strict";n.d(b,{K:()=>e});var t=n(94650);let e=(()=>{class l{constructor(){this.checkDataFromLocalStorage=!1}reset(){this.destinationFirstName=null,this.destinationLastName=null,this.destinationNickName=null,this.destinationImage=null,this.destinationId=null,this.destinationUniqueId=null,this.amount=null,this.description=null,this.sourceFirstName=null,this.sourceLastName=null,this.sourceNickName=null,this.sourceImage=null,this.date=null,this.checkDataFromLocalStorage=!1}}return l.\u0275fac=function(r){return new(r||l)},l.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})()},76845:(M,b,n)=>{"use strict";n.d(b,{J:()=>l});var t=n(591),e=n(94650);let l=(()=>{class h{constructor(){this.contactSelectClosing=new t.X(!1),this.filterClosing=new t.X(!1)}reset(){this.id=null,this.borrowType=null,this.fromAmount=null,this.toAmount=null,this.fromCreationTime=null,this.toCreationTime=null,this.fromRepaymentTime=null,this.toRepaymentTime=null,this.userId=null,this.txtListContacts=null,this.avatarContacts=null,this.checkFilter=null,this.orderDirection=null,this.orderByField=null,this.creatorProfileImage=null,this.nickName=null,this.creatorFirstName=null,this.creatorLastName=null,this.borrowerTransferRequestId=null,this.checkTypeDataPassing=null}}return h.\u0275fac=function(d){return new(d||h)},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})()},39446:(M,b,n)=>{"use strict";n.d(b,{M:()=>l});var t=n(591),e=n(94650);let l=(()=>{class h{constructor(){this.contactSelectClosing=new t.X(!1),this.filterClosing=new t.X(!1)}reset(){this.transferRequestId=null,this.fromAmount=null,this.toAmount=null,this.fromCreationTime=null,this.toCreationTime=null,this.specificUserId=null,this.groupId=null,this.fromYear=null,this.fromMonth=null,this.fromDay=null,this.toYear=null,this.toMonth=null,this.toDay=null,this.txtListContacts=null,this.avatarContacts=null,this.txtListGroup=null,this.checkFilter=null,this.checkTypeDataPassing=null}}return h.\u0275fac=function(d){return new(d||h)},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})()},75176:(M,b,n)=>{"use strict";n.d(b,{z:()=>e});var t=n(94650);let e=(()=>{class l{constructor(){this.showReceipt=!1,this.dataAddressFromMainComponent={state:null,city:null,stateId:null,cityId:null,address:null,plaque:null,unit:null}}reset(){this.showReceipt=null,this.totalAmount=null,this.payableAmount=null,this.addressId=null,this.zipcode=null,this.isEmptyList=null,this.isNewZipcode=null,this.otpTimeout=null,this.comingFromMainComponent=null,this.dataAddressFromMainComponent={state:null,city:null,stateId:null,cityId:null,address:null,plaque:null,unit:null},this.messageRequestPhysicalCard=null,this.messageLaterRequestChoice=null,this.providerCode=null,this.costResendCardWithBeforeNum=null,this.resendCardWithBeforeNum=null,this.resendCardWithNewNum=null,this.requestCause=null,this.resendCard=null}}return l.\u0275fac=function(r){return new(r||l)},l.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})()},81919:(M,b,n)=>{"use strict";n.d(b,{A:()=>e});var t=n(94650);let e=(()=>{class l{constructor(){}reset(){this.AuthSerialNumber=null,this.AuthVideoBlob=null,this.UploadedImage=null,this.ImageSrc=null,this.EditedState=!1,this.DeletedState=!1,this.status=null}}return l.\u0275fac=function(r){return new(r||l)},l.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})()},78377:(M,b,n)=>{"use strict";n.d(b,{a:()=>e});var t=n(94650);let e=(()=>{class l{constructor(){this.checkInterval=!1}}return l.\u0275fac=function(r){return new(r||l)},l.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})()},57023:(M,b,n)=>{"use strict";n.d(b,{R:()=>e});var t=n(94650);let e=(()=>{class l{constructor(){}}return l.\u0275fac=function(r){return new(r||l)},l.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})()},56976:(M,b,n)=>{"use strict";n.d(b,{e:()=>l});var t=n(591),e=n(94650);let l=(()=>{class h{constructor(){this.getLoanListResponse=[],this.showPayInstallmentConfirmation=!1,this.showPartialPaymentConfirmation=!1,this.changedContractId=!1,this.steps={select:new t.X(null)},this.loadingText=null,this.getInfoFromServer={getLoanContractReportDone:!0,getContractInfoDone:!0,getLoanListDone:!1,getLoanFinancialInfoDone:!0,getLoanInquiryStatusDone:!0,gotInfo:!1,progress:0,isDone(){return this.getLoanContractReportDone&&this.getLoanFinancialInfoDone&&this.getContractInfoDone&&this.getLoanInquiryStatusDone&&!this.gotInfo?(this.gotInfo=!0,!0):this.getLoanContractReportDone&&this.getLoanFinancialInfoDone&&this.getContractInfoDone}}}reset(){this.getInfoFromServer.getLoanContractReportDone=!0,this.getInfoFromServer.getContractInfoDone=!0,this.getInfoFromServer.getLoanListDone=!1,this.getInfoFromServer.getLoanFinancialInfoDone=!0,this.getInfoFromServer.getLoanInquiryStatusDone=!0,this.getInfoFromServer.gotInfo=!1,this.showAgreementList=!1,this.loadingText=null,this.getContractFromContractList=null,this.getLoanContractReportResponse=null,this.getLoanListResponse=null,this.getUsageCreditTimeline=null,this.getLoanContractAgreementListResponse=null,this.contractId=null,this.contractPlanId=null,this.reportId=null,this.factorDetails=null,this.changedContractId=!1,this.lastContractId=null}}return h.\u0275fac=function(d){return new(d||h)},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})()},73469:(M,b,n)=>{"use strict";n.d(b,{Q:()=>l});var t=n(591),e=n(94650);let l=(()=>{class h{constructor(){this.getLoanListResponse=[],this.showRepayConfirmation=!1,this.showExtendContractConfirmation=!1,this.showExtendPaymentConfirmation=!1,this.showPartialPaymentConfirmation=!1,this.changedContractId=!1,this.steps={select:new t.X(null)},this.loadingText=null,this.getInfoFromServer={getLoanContractReportDone:!0,getContractInfoDone:!0,getLoanListDone:!1,getLoanFinancialInfoDone:!0,getLoanInquiryStatusDone:!0,getUsageCreditTimelineDone:!0,gotInfo:!1,progress:0,isDone(){return this.getLoanContractReportDone&&this.getLoanFinancialInfoDone&&this.getContractInfoDone&&this.getUsageCreditTimelineDone&&this.getLoanInquiryStatusDone&&!this.gotInfo?(this.gotInfo=!0,!0):this.getLoanContractReportDone&&this.getLoanFinancialInfoDone&&this.getContractInfoDone&&this.getUsageCreditTimelineDone}}}reset(){this.getInfoFromServer.getLoanContractReportDone=!0,this.getInfoFromServer.getContractInfoDone=!0,this.getInfoFromServer.getLoanListDone=!1,this.getInfoFromServer.getLoanFinancialInfoDone=!0,this.getInfoFromServer.getLoanInquiryStatusDone=!0,this.getInfoFromServer.getUsageCreditTimelineDone=!0,this.getInfoFromServer.gotInfo=!1,this.isNewToContract=!1,this.showRepayConfirmation=!1,this.showExtendContractConfirmation=!1,this.showExtendPaymentConfirmation=!1,this.showAgreementList=!1,this.loadingText=null,this.getContractFromContractList=null,this.getLoanContractReportResponse=null,this.getLoanListResponse=null,this.getUsageCreditTimeline=null,this.getLoanContractAgreementListResponse=null,this.contractId=null,this.reportId=null,this.factorDetails=null,this.changedContractId=!1,this.lastContractId=null}}return h.\u0275fac=function(d){return new(d||h)},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})()},60431:(M,b,n)=>{"use strict";n.d(b,{n:()=>l});var t=n(591),e=n(94650);let l=(()=>{class h{constructor(){this.invoiceConfirm=new t.X(null)}reset(){this.selectedBranch=null,this.microLoanRequestResponse=null,this.getContractInfoResponse=null,this.getContractFromContractList=null,this.microLoanFinancialInfo=null,this.microLoanFinancialInfoV2=null,this.showAgreementList=null,this.agreement=null,this.invoiceConfirm.next(null),this.factorDetails=null}resetInvoice(){this.invoiceConfirm.next(null)}}return h.\u0275fac=function(d){return new(d||h)},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})()},58132:(M,b,n)=>{"use strict";n.d(b,{A:()=>e});var t=n(94650);let e=(()=>{class l{constructor(){}reset(){this.bankName=null,this.bankLogoUrl=null,this.bankCode=null,this.bankEnName=null,this.name=null,this.originDesName=null,this.cellphoneNumber=null,this.shebaNumber=null,this.cardNumber=null,this.dataSelected=null,this.id=null,this.desProfileImag=null,this.username=null,this.contactId=null,this.myProfileImg=null,this.amount=null,this.wage=null,this.iban=null,this.isTransferData=null,this.transferType=null,this.useSmartTransfer=null,this.sourceCardId=null,this.sourceCardNumber=null,this.sourceCardLogo=null,this.sourceCardName=null,this.internal=null,this.errorAddNewContact=null,this.isNewCard=null,this.showReceipt=null,this.payFailedText=null,this.payInProgressText=null,this.paySuccessText=null,this.transactionInquiry=null,this.transferTransactionId=null,this.receiptDataCard=null,this.useDigitalCard=null,this.selectDataPol=null,this.originDescription=null,this.showPurposeTransfer=null,this.purposeCode=null,this.expireMonth=null,this.expireYear=null,this.useDepositFromList=null,this.paymentId=null,this.payaPurposeReadyToUse=null,this.polTransactionId=null,this.dateTimeServiceTimeOut=null,this.useFrequentTransactionsParams=null,this.needPaymentId=null,this.desDescription=null,this.ibanPaymentIdInquiry=null,this.statusName=null}}return l.\u0275fac=function(r){return new(r||l)},l.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})()},64520:(M,b,n)=>{"use strict";n.d(b,{N:()=>e});var t=n(94650);let e=(()=>{class l{constructor(){}reset(){this.ticketDetail=null}}return l.\u0275fac=function(r){return new(r||l)},l.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})()},21006:(M,b,n)=>{"use strict";n.d(b,{t:()=>r});var t=n(8479),e=n(39723),l=n(94650),h=n(32209);let r=(()=>{class y{constructor(p){this.storageService=p,this.messageInputText="",this.flags={input:{data:new d,reset(){this.data=new d}}},this.inputRows=1}getFileIconName(p,f){if(p){if(p.indexOf("image")>=0)return"image";if(p.indexOf("video")>=0)return"video";if(p.indexOf("zip")>=0)return"archive";if(p.indexOf("pdf")>=0)return"pdf";if(p.indexOf("msword")>=0||p.indexOf("wordprocessingml")>=0)return"word";if(p.indexOf("audio")>=0)return"music";if(p.indexOf("text")>=0)return"text";if(p.indexOf("spreadsheetml")>=0)return"excel"}else if(f&&f.indexOf("rar")>=0)return"archive";return"blank"}getImageFromPodSpaceByHashId(p,f=0,C=!1){try{if(p&&"string"!==p){if(p?.includes("http")||p?.includes("assets/")){if(p?.includes(t.H7.podSpaceFileServer)&&!C){const N=new RegExp("[?&]hash(=([^&#]*)|&|#|$)").exec(p);N&&N[2]&&(p=this.getImageFromPodSpaceByHashId(N[2]))}return p}switch(f){case 4:return t.H7.podSpaceFileServer+"/api/files/"+p+(C?"":"/thumbnail?authorization="+this.storageService.getLocalItem(e.B.accessToken));case 3:return t.H7.podSpaceFileServer+"/nzh/drive/downloadFile/?hash="+p+(C?"":"&_token_issuer_=1&_token_="+this.storageService.getLocalItem(e.B.accessToken));default:return this.getImageFromPodSpaceByHashId(p,3,!1)}}return""}catch{return""}}}return y.\u0275fac=function(p){return new(p||y)(l.LFG(h.z))},y.\u0275prov=l.Yz7({token:y,factory:y.\u0275fac,providedIn:"root"}),y})();class d{constructor(){this.mediaModal={show:!1,sendFileUrl:null,uploadFileName:"",uploadedFile:[],isSendingImage:!1,uploadSize:"",uploadSizeUnit:"",showPreview:!1,showAddAttach:!1,sendAddNoteModel:{ticketId:0,description:"",attachmentHashCodes:[],voiceHash:""},isAllImgUploaded:!1}}}},44852:(M,b,n)=>{"use strict";n.d(b,{g:()=>h});var t=n(591),e=n(5846),l=n(94650);let h=(()=>{class r{constructor(){this.turnoverFilterType=e.wk,this.cardDestSelectedStatus=!1,this.isChangeFilterType=!1,this.filters={filterType:null,fromAmount:null,toAmount:null,fromDate:null,toDate:null,srcType:null,toolCode:null,billId:null,paymentId:null,contactId:null,contactImage:null,contactUsername:null,transactionReference:null,invoiceId:null,debtor:null,toolId:null,filterTitle:null,checkDebtor:null,isChangeDefault:null,startDate:null,endDate:null,isFiltered(){return Boolean(this.fromAmount||this.toAmount||this.fromDate||this.toDate||this.srcType||this.toolCode||this.filterType&&this.filterType!==e.wk.All||this.billId||this.paymentId||this.contactId||this.contactImage||this.contactUsername||this.trackingId||this.invoiceId||this.debtor||this.toolId||this.checkDebtor)},reset(){this.fromAmount=null,this.toAmount=null,this.srcType=null,this.toolCode=null,this.billId=null,this.paymentId=null,this.contactId=null,this.contactImage=null,this.contactUsername=null,this.transactionReference=null,this.invoiceId=null,this.debtor=null,this.toolId=null,this.cardDestSelectedStatus=null,this.checkDebtor=null,this.isChangeDefault=null}},this.filterClosing=new t.X(!1),this.contactSelectClosing=new t.X(!1)}}return r.\u0275fac=function(y){return new(y||r)},r.\u0275prov=l.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})()},78058:(M,b,n)=>{"use strict";n.d(b,{k:()=>l});var t=n(591),e=n(94650);let l=(()=>{class h{constructor(){this.validatedReportDetailPage=!1,this.enableOtpInserting=new t.X(!1),this.enableOtpWaiting=new t.X(!1),this.validationDone=!1,this.finalStatusFailed=!1,this.fromRequest=!1}}return h.\u0275fac=function(d){return new(d||h)},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})()},31995:(M,b,n)=>{"use strict";n.d(b,{v:()=>e});var t=n(94650);let e=(()=>{class l{constructor(){}reset(){this.useWalletCashIn=null,this.amount=null,this.cardId=null,this.cardNumber=null,this.internal=null,this.cardLogo=null,this.cardName=null,this.expireYear=null,this.expireMonth=null,this.digitalCardNumber=null,this.wage=null,this.showConfirm=null,this.transactionInquiry=null,this.receiptDataCard=null,this.showReceipt=null,this.payFailedText=null,this.payInProgressText=null}}return l.\u0275fac=function(r){return new(r||l)},l.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})()},73371:(M,b,n)=>{"use strict";n.d(b,{s:()=>h});var t=n(591),e=n(56656),l=n(94650);let h=(()=>{class r{constructor(){this.getWepodCreditTransferScoreListQueryModel=new e.ae,this.contactFormInFilter=new t.X(!1)}resetPointList(){this.getWepodCreditTransferScoreListQueryModel=new e.ae,this.selectedPOdContactId=null,this.selectedPOdContactName=null,this.selectedPOdContactImage=null,this.contactFormInFilter=new t.X(!1)}resetCalculation(){this.lastCalculationSelectedType=null}}return r.\u0275fac=function(y){return new(y||r)},r.\u0275prov=l.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})()},77743:(M,b,n)=>{"use strict";n.d(b,{D_:()=>q,Tr:()=>re,hg:()=>J,tG:()=>K});var t=n(13861),e=n(591),l=n(8479),h=n(40345),r=n(77528),d=n(94650),y=n(73038),g=n(70223),p=n(79473),f=n(11213);const C=function(oe){return{"show-logo-on-mobile":oe}};function N(oe,B){if(1&oe&&(d.TgZ(0,"div",9),d._UZ(1,"img",10),d.qZA()),2&oe){const s=d.oxw();d.Q6J("ngClass",d.VKq(1,C,"/landing"===s.router.url))}}function a(oe,B){if(1&oe&&(d.TgZ(0,"div",11),d._UZ(1,"img",12),d.qZA()),2&oe){const s=d.oxw();d.Q6J("ngClass",d.VKq(2,C,"/landing"===s.router.url)),d.xp6(1),d.Q6J("src",s.wepodMainService.getImageFromPodSpaceByHashId(s.customLogo),d.LSH)}}function O(oe,B){1&oe&&d._UZ(0,"app-app-header")}function H(oe,B){1&oe&&d._UZ(0,"app-footer")}function F(oe,B){if(1&oe&&(d.TgZ(0,"span"),d._uU(1),d.qZA()),2&oe){const s=d.oxw(2);d.xp6(1),d.Oqu(s.loadingText)}}function V(oe,B){if(1&oe&&(d.TgZ(0,"span"),d._uU(1),d.qZA()),2&oe){const s=d.oxw(2);d.xp6(1),d.hij("",s.percentage,"%")}}function D(oe,B){if(1&oe){const s=d.EpF();d.TgZ(0,"div",13),d.NdJ("click",function(){return d.CHM(s),d.oxw().abortLoading()}),d.TgZ(1,"div",14),d.NdJ("click",function(w){return w.stopPropagation()}),d._UZ(2,"img",15),d.YNc(3,F,2,1,"span",6),d.YNc(4,V,2,1,"span",6),d.qZA()()}if(2&oe){const s=d.oxw();d.Q6J("@inOutLoading",void 0),d.xp6(3),d.Q6J("ngIf",s.loadingText),d.xp6(1),d.Q6J("ngIf",null!==s.percentage)}}const U=function(oe){return{"background-color-container":oe}};let q=(()=>{class oe{constructor(s,_,w,E,x){this.router=s,this.slideModalService=_,this.imageViewerService=w,this.wepodMainService=E,this.routingAppService=x,this.environment=l.NZ,this.appHeaderVisibility=!h.if,this.customTheme=h.vr,this.customLogo=h.SN,s.events.subscribe(j=>{if(j instanceof t.OD)try{J.value.loading||J.next({loading:!0,cancelable:!0,navigation:!0})}catch{}if(j instanceof t.m2||j instanceof t.gk||j instanceof t.Q3)try{j instanceof t.m2&&re.next({bgShadow:!1,bgWhite:!1,hideTabs:!1,showFooter:!1}),J.value.navigation&&J.next({loading:!1,cancelable:!1})}catch{}}),J.asObservable().subscribe(j=>{this.isLoading=j.loading,this.loadingText=j.text,this.percentage=typeof j.percentage<"u"?j.percentage:null}),G.asObservable().subscribe(j=>{j&&(J.next({loading:!1,cancelable:!1}),G.next(!1),this.routingAppService.navigate([(0,h.Jj)()?.location.href.split("/").splice(3).join("/")]))}),re.asObservable().subscribe(j=>{this.layoutConfig=j})}ngOnInit(){}abortLoading(){J.value.cancelable&&G.next(!0)}}return oe.\u0275fac=function(s){return new(s||oe)(d.Y36(t.F0),d.Y36(y.j),d.Y36(g.uU),d.Y36(p.g),d.Y36(f.s))},oe.\u0275cmp=d.Xpm({type:oe,selectors:[["app-app-layout"]],decls:13,vars:16,consts:[[1,"container-top-pattern","wepod-container"],[1,"custom-theme-bg",2,"position","absolute","top","0","width","100%"],[1,"wepod-container"],["class","wepod-logo",3,"ngClass",4,"ngIf"],["class","wepod-logo","style","width: unset; height: unset;",3,"ngClass",4,"ngIf"],[1,"content-container",3,"ngClass"],[4,"ngIf"],[2,"height","100%","flex-grow","1"],["class","over-page-loading",3,"click",4,"ngIf"],[1,"wepod-logo",3,"ngClass"],["src","/assets/images/shared/logo.svg","width","40","height","48","alt","wepod"],[1,"wepod-logo",2,"width","unset","height","unset",3,"ngClass"],["alt","logo",3,"src"],[1,"over-page-loading",3,"click"],[1,"over-page-loading-center",3,"click"],["src","assets/images/spinner/loading-circle-light-gray.svg","alt",""]],template:function(s,_){1&s&&(d.TgZ(0,"div",0),d._UZ(1,"div",1),d.TgZ(2,"div",2),d.YNc(3,N,2,3,"div",3),d.YNc(4,a,2,4,"div",4),d.TgZ(5,"div",5),d.YNc(6,O,1,0,"app-app-header",6),d.TgZ(7,"div",7),d._UZ(8,"router-outlet"),d.qZA(),d.YNc(9,H,1,0,"app-footer",6),d.qZA()()(),d.YNc(10,D,5,3,"div",8),d._UZ(11,"app-slide-modal")(12,"app-image-viewer")),2&s&&(d.ekj("pattern-top-header",!_.customTheme),d.xp6(3),d.Q6J("ngIf",!_.customLogo),d.xp6(1),d.Q6J("ngIf",_.customLogo),d.xp6(1),d.ekj("bg-shadow",_.layoutConfig.bgShadow)("white-bg",_.layoutConfig.bgWhite),d.Q6J("ngClass",d.VKq(14,U,"/landing"===_.router.url)),d.xp6(1),d.Q6J("ngIf",_.appHeaderVisibility&&!_.layoutConfig.hideTabs),d.xp6(1),d.ekj("register-page",_.router.url.startsWith("/signup")),d.xp6(2),d.Q6J("ngIf",_.layoutConfig.showFooter),d.xp6(1),d.Q6J("ngIf",_.isLoading))},encapsulation:2,data:{animation:[r.z.animations.inOutLoading]}}),oe})(),J=new e.X({loading:!1,cancelable:!1}),G=new e.X(!1);function K(){document.getElementById("body").style.overflow="auto"}let re=new e.X({bgWhite:!1,bgShadow:!1,hideTabs:!1,showFooter:!1})},38493:(M,b,n)=>{"use strict";n.d(b,{K:()=>Ze});var t=n(36895),e=n(24006),l=n(13861),h=n(92200),r=n(44487),d=n.n(r),y=n(97162),g=n(31603),p=n(39310),f=n(83905),C=n(75275),N=n(64086),a=n(20421),O=n(74497),H=n(67292),F=n(28864),V=n(793),D=n(48188),U=n(36844),q=n(84727),J=n(63718),G=n(94650),ie=n(75869);function K(Be,Lt){1&Be&&G._UZ(0,"img",25)}function re(Be,Lt){if(1&Be&&G._UZ(0,"img",26),2&Be){const _e=G.oxw();G.MGl("src","assets/images/receipt/success","dark-tem"===_e.selectTem||"main-tem"===_e.selectTem?"-white":"",".svg",G.LSH)}}function oe(Be,Lt){1&Be&&G._UZ(0,"img",27)}function B(Be,Lt){1&Be&&G._UZ(0,"img",28)}function s(Be,Lt){if(1&Be&&(G.TgZ(0,"p",29),G._uU(1),G.qZA()),2&Be){const _e=G.oxw();G.xp6(1),G.Oqu(_e.successTitle?_e.successTitle:"\u0639\u0645\u0644\u06cc\u0627\u062a \u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u0627\u0646\u062c\u0627\u0645 \u0634\u062f.")}}function _(Be,Lt){if(1&Be&&(G.TgZ(0,"p",30),G._uU(1),G.qZA()),2&Be){const _e=G.oxw();G.xp6(1),G.Oqu(_e.failTitle?_e.failTitle:"\u0639\u0645\u0644\u06cc\u0627\u062a \u0646\u0627\u0645\u0648\u0641\u0642 \u0627\u0633\u062a")}}function w(Be,Lt){if(1&Be&&(G.TgZ(0,"p",31),G._uU(1),G.qZA()),2&Be){const _e=G.oxw();G.xp6(1),G.Oqu(_e.inProgressTitle)}}function E(Be,Lt){if(1&Be&&(G.TgZ(0,"p",32),G._UZ(1,"img",33),G._uU(2),G.qZA()),2&Be){const _e=G.oxw();G.xp6(2),G.hij(" ",_e.statusName?_e.statusName:"\u0645\u0648\u0641\u0642"," ")}}function x(Be,Lt){if(1&Be&&(G.TgZ(0,"p",34),G._UZ(1,"img",35),G._uU(2),G.qZA()),2&Be){const _e=G.oxw();G.xp6(2),G.hij(" ",_e.statusName?_e.statusName:"\u0646\u0627\u0645\u0648\u0641\u0642"," ")}}function j(Be,Lt){if(1&Be&&(G.TgZ(0,"p",36),G._UZ(1,"img",37),G._uU(2),G.qZA()),2&Be){const _e=G.oxw();G.xp6(2),G.hij(" ",_e.statusName?_e.statusName:"\u0646\u0627\u0645\u0634\u062e\u0635"," ")}}function $(Be,Lt){if(1&Be&&(G.TgZ(0,"span",42),G._uU(1),G.ALo(2,"numberSeparator"),G.ALo(3,"rialToToman"),G.qZA()),2&Be){const _e=G.oxw(2).$implicit;G.xp6(1),G.hij(" ",G.lcZ(2,1,G.lcZ(3,3,_e.value))," \u062a\u0648\u0645\u0627\u0646 ")}}function Y(Be,Lt){if(1&Be&&(G.TgZ(0,"span",42),G._uU(1),G.ALo(2,"numberSeparator"),G.qZA()),2&Be){const _e=G.oxw(2).$implicit;G.xp6(1),G.hij(" ",G.lcZ(2,1,_e.value)," \u0631\u06cc\u0627\u0644 ")}}function u(Be,Lt){if(1&Be&&(G.TgZ(0,"span",43)(1,"span",44),G._uU(2),G.qZA()()),2&Be){const _e=G.oxw(2).$implicit;G.xp6(1),G.ekj("rtl","\u0634\u0631\u062d \u0648\u0636\u0639\u06cc\u062a"===_e.label||"\u0634\u0631\u062d \u0645\u0628\u062f\u0627"===_e.label||"\u0634\u0631\u062d \u0645\u0642\u0635\u062f"===_e.label||"\u0634\u0631\u062d"===_e.label),G.xp6(1),G.Oqu(null==_e?null:_e.value)}}function W(Be,Lt){if(1&Be&&(G.TgZ(0,"span"),G._uU(1),G.ALo(2,"jalaliDate"),G.qZA()),2&Be){const _e=G.oxw(2).$implicit;G.xp6(1),G.hij(" ",G.lcZ(2,1,_e.value)," ")}}function fe(Be,Lt){if(1&Be&&(G.TgZ(0,"span"),G._uU(1),G.ALo(2,"jalaliDateTime"),G.qZA()),2&Be){const _e=G.oxw(2).$implicit;G.xp6(1),G.hij(" ",G.lcZ(2,1,_e.value)," ")}}function ae(Be,Lt){if(1&Be&&(G.TgZ(0,"li",15)(1,"div",16)(2,"header",17),G._uU(3),G.qZA(),G.TgZ(4,"p",32),G.YNc(5,$,4,5,"span",39),G.YNc(6,Y,3,3,"span",39),G.YNc(7,u,3,3,"span",40),G.YNc(8,W,3,3,"span",41),G.YNc(9,fe,3,3,"span",41),G.qZA()()()),2&Be){const _e=G.oxw().$implicit;G.xp6(3),G.hij(" ",_e.label," "),G.xp6(1),G.ekj("ltr","amount"!==_e.type&&"amountWithRial"!==_e.type),G.xp6(1),G.Q6J("ngIf","amount"===_e.type||"amountWithRial"===_e.type),G.xp6(1),G.Q6J("ngIf","amountWithRial"===_e.type),G.xp6(1),G.Q6J("ngIf","text"===_e.type),G.xp6(1),G.Q6J("ngIf","jalaliDate"===_e.type),G.xp6(1),G.Q6J("ngIf","jalaliDateTime"===_e.type)}}function ye(Be,Lt){if(1&Be&&(G.ynx(0),G.YNc(1,ae,10,8,"li",38),G.BQk()),2&Be){const _e=Lt.$implicit;G.xp6(1),G.Q6J("ngIf",_e.value)}}function Qe(Be,Lt){1&Be&&G._UZ(0,"img",45)}function Ot(Be,Lt){if(1&Be&&G._UZ(0,"img",46),2&Be){const _e=G.oxw();G.MGl("src","/assets/images/receipt/logo","dark-tem"===_e.selectTem?"-dark":"main-tem"===_e.selectTem?"-white":"white-tem"===_e.selectTem?"-green":"",".svg",G.LSH)}}let At=(()=>{class Be{constructor(){this.stateReceiptType=J.ap}ngOnInit(){}}return Be.\u0275fac=function(_e){return new(_e||Be)},Be.\u0275cmp=G.Xpm({type:Be,selectors:[["app-transaction-receipt-share-tem"]],inputs:{successTitle:"successTitle",failTitle:"failTitle",inProgressTitle:"inProgressTitle",selectTem:"selectTem",statusName:"statusName",data:"data"},decls:26,vars:17,consts:[[1,"receipt-canvas-backdrop"],["id","receiptCanvas"],[1,"container-per-page"],["class","birthday-title","width","180","height","40","src","/assets/images/receipt/happyBirthday-text.svg","alt","",4,"ngIf"],[1,"receipt-title",3,"ngClass"],["width","88","height","88","alt","\u0639\u0645\u0644\u06cc\u0627\u062a \u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a",3,"src",4,"ngIf"],["width","88","height","88","src","/assets/images/receipt/unsuccess.svg","alt","\u0639\u0645\u0644\u06cc\u0627\u062a \u0646\u0627\u0645\u0648\u0641\u0642",4,"ngIf"],["style","background-color: transparent; border-radius: 0","width","60","height","60","src","/assets/images/request/warning.svg","alt","\u0639\u0645\u0644\u06cc\u0627\u062a \u0647\u0634\u062f\u0627\u0631",4,"ngIf"],["class","receipt-title receipt-successful",4,"ngIf"],["class","receipt-title receipt-unsuccessful",4,"ngIf"],["class","receipt-title receipt-warning",4,"ngIf"],[1,"receipt-list-tem"],["id","print-section",1,"receipt-container"],[1,"list-wrapper"],[1,"list"],[1,"list-item"],[1,"list-content","clearfix"],[1,"receipt-list-title"],["class","receipt-list-result",4,"ngIf"],["class","receipt-list-result danger-text",4,"ngIf"],["class","receipt-list-result receipt-list-result-warning",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"receipt-triangle"],["class","birthday-footer logo-footer","width","180","height","88","src","/assets/images/receipt/happyBirthday-icon.svg","alt","",4,"ngIf"],["class","logo-footer","width","38","height","42","alt","",3,"src",4,"ngIf"],["width","180","height","40","src","/assets/images/receipt/happyBirthday-text.svg","alt","",1,"birthday-title"],["width","88","height","88","alt","\u0639\u0645\u0644\u06cc\u0627\u062a \u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a",3,"src"],["width","88","height","88","src","/assets/images/receipt/unsuccess.svg","alt","\u0639\u0645\u0644\u06cc\u0627\u062a \u0646\u0627\u0645\u0648\u0641\u0642"],["width","60","height","60","src","/assets/images/request/warning.svg","alt","\u0639\u0645\u0644\u06cc\u0627\u062a \u0647\u0634\u062f\u0627\u0631",2,"background-color","transparent","border-radius","0"],[1,"receipt-title","receipt-successful"],[1,"receipt-title","receipt-unsuccessful"],[1,"receipt-title","receipt-warning"],[1,"receipt-list-result"],["width","15","height","15","src","/assets/images/receipt/tick-white.svg","alt","\u0645\u0648\u0641\u0642"],[1,"receipt-list-result","danger-text"],["width","15","height","15","src","/assets/images/receipt/close.svg","alt","\u0646\u0627\u0645\u0648\u0641\u0642"],[1,"receipt-list-result","receipt-list-result-warning"],["width","15","height","15","src","/assets/images/request/warning.svg","alt","\u0646\u0627\u0645\u0648\u0641\u0642"],["class","list-item",4,"ngIf"],["class","receipt-list-result-amount",4,"ngIf"],["style","display: flex; align-items: center; ",4,"ngIf"],[4,"ngIf"],[1,"receipt-list-result-amount"],[2,"display","flex","align-items","center"],[2,"display","block"],["width","180","height","88","src","/assets/images/receipt/happyBirthday-icon.svg","alt","",1,"birthday-footer","logo-footer"],["width","38","height","42","alt","",1,"logo-footer",3,"src"]],template:function(_e,ne){1&_e&&(G._UZ(0,"div",0),G.TgZ(1,"section",1)(2,"div",2),G.YNc(3,K,1,0,"img",3),G.TgZ(4,"header",4),G.YNc(5,re,1,1,"img",5),G.YNc(6,oe,1,0,"img",6),G.YNc(7,B,1,0,"img",7),G.YNc(8,s,2,1,"p",8),G.YNc(9,_,2,1,"p",9),G.YNc(10,w,2,1,"p",10),G.qZA(),G.TgZ(11,"div",11)(12,"article",12)(13,"section",13)(14,"ul",14)(15,"li",15)(16,"div",16)(17,"header",17),G._uU(18," \u0648\u0636\u0639\u06cc\u062a \u062a\u0631\u0627\u06a9\u0646\u0634 "),G.qZA(),G.YNc(19,E,3,1,"p",18),G.YNc(20,x,3,1,"p",19),G.YNc(21,j,3,1,"p",20),G.qZA()(),G.YNc(22,ye,2,1,"ng-container",21),G.qZA()()(),G._UZ(23,"div",22),G.qZA()(),G.YNc(24,Qe,1,0,"img",23),G.YNc(25,Ot,1,1,"img",24),G.qZA()),2&_e&&(G.xp6(1),G.Gre("receipt-wrapper over-chat-page ",ne.selectTem,""),G.xp6(2),G.Q6J("ngIf","birthday-tem"===ne.selectTem),G.xp6(1),G.Q6J("ngClass",(null==ne.data?null:ne.data.state)===ne.stateReceiptType.Success?"receipt-successful":"receipt-unsuccessful"),G.xp6(1),G.Q6J("ngIf",(null==ne.data?null:ne.data.state)===ne.stateReceiptType.Success),G.xp6(1),G.Q6J("ngIf",(null==ne.data?null:ne.data.state)===ne.stateReceiptType.Failed),G.xp6(1),G.Q6J("ngIf",(null==ne.data?null:ne.data.state)===ne.stateReceiptType.InProgress),G.xp6(1),G.Q6J("ngIf",(null==ne.data?null:ne.data.state)===ne.stateReceiptType.Success),G.xp6(1),G.Q6J("ngIf",(null==ne.data?null:ne.data.state)===ne.stateReceiptType.Failed),G.xp6(1),G.Q6J("ngIf",(null==ne.data?null:ne.data.state)===ne.stateReceiptType.InProgress),G.xp6(9),G.Q6J("ngIf",(null==ne.data?null:ne.data.state)===ne.stateReceiptType.Success),G.xp6(1),G.Q6J("ngIf",(null==ne.data?null:ne.data.state)===ne.stateReceiptType.Failed),G.xp6(1),G.Q6J("ngIf",(null==ne.data?null:ne.data.state)===ne.stateReceiptType.InProgress),G.xp6(1),G.Q6J("ngForOf",null==ne.data?null:ne.data.rows),G.xp6(2),G.Q6J("ngIf","birthday-tem"===ne.selectTem),G.xp6(1),G.Q6J("ngIf","birthday-tem"!==ne.selectTem))},directives:[t.O5,t.mk,t.sg],pipes:[N.sz,N.pm,ie.KK,ie.p7],encapsulation:2}),Be})(),Ze=(()=>{class Be{}return Be.\u0275fac=function(_e){return new(_e||Be)},Be.\u0275mod=G.oAB({type:Be}),Be.\u0275inj=G.cJS({providers:[F.BZ,V.R,N.an],imports:[[t.ez,a.d,e.u5,l.Bz,U.g,C.hx,O.F,e.UX,D.$,y._h,H.CustomersClubModule,h.f,f.bB,g.X,p.CT.forRoot({player:at})],D.$]}),Be})();function at(){return d()}G.B6R(J.FZ,[t.mk,t.O5,q.x,t.sg,At],[N.sz,N.pm,ie.KK,ie.p7])},86907:(M,b,n)=>{"use strict";n.d(b,{F:()=>h});var t=n(94650),e=n(97693),l=n(24006);let h=(()=>{class r{constructor(y){this.toastrService=y,this.showTxtAlert="\u0634\u0645\u0627\u0631\u0647 \u06a9\u0627\u0631\u062a \u06a9\u067e\u06cc \u0634\u062f.",this.urlCopyImg="/assets/images/shared/copy-icon.svg",this.useCopyLink=new t.vpe}ngOnInit(){}copyLinkUrl(y){y.select(),y.focus(),document.execCommand("copy"),y.setSelectionRange(0,0),this.toastrService.success(this.showTxtAlert),this.useCopyLink.emit()}}return r.\u0275fac=function(y){return new(y||r)(t.Y36(e.X))},r.\u0275cmp=t.Xpm({type:r,selectors:[["app-copy-to-clipboard"]],inputs:{data:"data",showTxtAlert:"showTxtAlert",urlCopyImg:"urlCopyImg"},outputs:{useCopyLink:"useCopyLink"},decls:4,vars:2,consts:[[1,"copy-to-clipboard-btn",3,"click"],["id","copy-icon","alt","\u06a9\u067e\u06cc \u06a9\u0631\u062f\u0646",3,"src"],["type","text","readonly","",1,"input-form-copy-number",3,"ngModel","ngModelChange"],["copyData",""]],template:function(y,g){if(1&y){const p=t.EpF();t.TgZ(0,"button",0),t.NdJ("click",function(){t.CHM(p);const C=t.MAs(3);return g.copyLinkUrl(C)}),t._UZ(1,"img",1),t.qZA(),t.TgZ(2,"input",2,3),t.NdJ("ngModelChange",function(C){return g.data=C}),t.qZA()}2&y&&(t.xp6(1),t.Q6J("src",g.urlCopyImg,t.LSH),t.xp6(1),t.Q6J("ngModel",g.data))},directives:[l.Fj,l.JJ,l.On],encapsulation:2}),r})()},84256:(M,b,n)=>{"use strict";n.d(b,{B:()=>J});var t=n(94650),e=n(8929),l=n(39851),h=n(26007),r=n(36895),d=n(24006),y=n(98059),g=n(64086);function p(G,ie){if(1&G&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"numbersToPersianAlphabet"),t.ALo(3,"number"),t.qZA()),2&G){const K=t.oxw(3);t.xp6(1),t.hij(" ",t.lcZ(2,1,t.xi3(3,3,K.value?K.value:0,"1.0-0"))," \u062a\u0648\u0645\u0627\u0646 ")}}function f(G,ie){if(1&G&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"numbersToPersianAlphabet"),t.ALo(3,"number"),t.qZA()),2&G){const K=t.oxw(3);t.xp6(1),t.hij(" ",t.lcZ(2,1,t.xi3(3,3,K.value?10*K.value:0,"1.0-0"))," \u0631\u06cc\u0627\u0644 ")}}function C(G,ie){if(1&G&&(t.TgZ(0,"small"),t.YNc(1,p,4,6,"span",8),t.YNc(2,f,4,6,"span",8),t.qZA()),2&G){const K=t.oxw(2);t.xp6(1),t.Q6J("ngIf",K.showTomanTag),t.xp6(1),t.Q6J("ngIf",!K.showTomanTag)}}function N(G,ie){if(1&G&&(t.TgZ(0,"span",10),t._uU(1),t.ALo(2,"numbersToPersianAlphabet"),t.ALo(3,"number"),t.qZA()),2&G){const K=t.oxw(3);t.xp6(1),t.hij(" ",t.lcZ(2,1,t.xi3(3,3,K.value,"1.0-0"))," \u062a\u0648\u0645\u0627\u0646 ")}}function a(G,ie){if(1&G&&(t.TgZ(0,"span",10),t._uU(1),t.qZA()),2&G){const K=t.oxw(3);t.xp6(1),t.hij(" ",K.maxValueUniqueAlertMessage," ")}}function O(G,ie){if(1&G&&(t.TgZ(0,"small"),t.YNc(1,N,4,6,"span",9),t.YNc(2,a,2,1,"span",9),t.qZA()),2&G){const K=t.oxw(2);t.xp6(1),t.Q6J("ngIf",K.parseInt(K.String(K.value),10)>0&&!K.maxValueUniqueAlertMessage),t.xp6(1),t.Q6J("ngIf",K.parseInt(K.String(K.value),10)>0&&K.maxValueUniqueAlertMessage)}}function H(G,ie){if(1&G&&(t.TgZ(0,"span",10),t._uU(1),t.ALo(2,"numbersToPersianAlphabet"),t.ALo(3,"number"),t.qZA()),2&G){const K=t.oxw(3);t.xp6(1),t.hij(" ",t.lcZ(2,1,t.xi3(3,3,K.value,"1.0-0"))," \u062a\u0648\u0645\u0627\u0646 ")}}function F(G,ie){if(1&G&&(t.TgZ(0,"span",10),t._uU(1),t.qZA()),2&G){const K=t.oxw(3);t.xp6(1),t.hij(" ",K.minValueUniqueAlertMessage," ")}}function V(G,ie){if(1&G&&(t.TgZ(0,"small"),t.YNc(1,H,4,6,"span",9),t.YNc(2,F,2,1,"span",9),t.qZA()),2&G){const K=t.oxw(2);t.xp6(1),t.Q6J("ngIf",K.parseInt(K.String(K.value),10)>0&&!K.minValueUniqueAlertMessage),t.xp6(1),t.Q6J("ngIf",K.parseInt(K.String(K.value),10)>0&&K.minValueUniqueAlertMessage)}}function D(G,ie){if(1&G&&(t.TgZ(0,"div",6)(1,"label",7),t._uU(2),t.qZA(),t.YNc(3,C,3,2,"small",8),t.YNc(4,O,3,2,"small",8),t.YNc(5,V,3,2,"small",8),t.qZA()),2&G){const K=t.oxw();t.xp6(1),t.Q6J("for",K.inputId),t.xp6(1),t.Oqu(K.label),t.xp6(1),t.Q6J("ngIf",K.showValueInAlphabet&&(!K.maxValue||K.maxValue>=K.value)&&(!K.minValue||K.value>=K.minValue)),t.xp6(1),t.Q6J("ngIf",K.showValueInAlphabet&&!!K.maxValue&&K.maxValue<K.value),t.xp6(1),t.Q6J("ngIf",K.showValueInAlphabet&&!!K.minValue&&K.value<K.minValue)}}const U=function(){return{visibility:"visible"}},q=function(){return{visibility:"hidden"}};let J=(()=>{class G{constructor(){this.tagValue="\u062a\u0648\u0645\u0627\u0646",this.value="0",this.label="",this.placeHolder="",this.inputId="",this.maxValue=null,this.minValue=null,this.maxLength=11,this.maxValueUniqueAlertMessage="",this.minValueUniqueAlertMessage="",this.OnInput=new t.vpe,this.parseInt=parseInt,this.String=String,this.resetInput=new e.xQ,this.showTomanTag=!0}ngOnInit(){this.hideTag=null==this.value||!(0!==parseInt(String(this.value),10)&&"0"!==this.value||this.showZero)||""===this.value||("0"!==this.value&&parseInt(String(this.value),10),!1),this.resetInput.subscribe(K=>{K&&(this.value="",this.hideTag=!0,this.OnInput.emit(this.value))})}ngOnChanges(){0!==String(this.value).length&&(this.hideTag=!1)}inputFocus(K){K.target.offsetParent.classList.add("focused")}inputInput(K){const re=new l.M;return K.target.value=re.transform(K.target.value),K.target.value.length>this.maxLength?(this.value=String(K.target.value).replace(h.i.OnlyNumbers,""),!1):(document.getElementById(this.inputId).value=K.target.value,"0"===K.target.value.charAt(0)?(document.getElementById(this.inputId).value="",!1):(this.validateBeforeFirstInput=!0,void(K.data&&!K.data.replace(/[^\u06f0\u06f1\u06f2\u06f3\u06f4\u06f5\u06f6\u06f7\u06f8\u06f9\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u06690-9]+/g,"")?(document.getElementById(this.inputId).value=K.data&&","===K.data?String(K.target.value).replace(/[^0-9,]+/g,"").substr(0,String(this.value).length-1):String(K.target.value).replace(/[^0-9,]+/g,""),this.value=String(K.target.value).replace(h.i.OnlyNumbers,""),this.OnInput.emit(this.value)):(this.value=String(K.target.value).replace(h.i.OnlyNumbers,""),this.OnInput.emit(this.value)))))}inputBlur(K){K.target.offsetParent.classList.remove("focused")}}return G.\u0275fac=function(K){return new(K||G)},G.\u0275cmp=t.Xpm({type:G,selectors:[["app-input-tagged-numbers"]],inputs:{classInvalid:"classInvalid",bolderText:"bolderText",redText:"redText",classDisabled:"classDisabled",autocomplete:"autocomplete",validateBeforeFirstInput:"validateBeforeFirstInput",showTagWhenEmpty:"showTagWhenEmpty",showZero:"showZero",showValueInAlphabet:"showValueInAlphabet",hideTag:"hideTag",tagValue:"tagValue",value:"value",label:"label",placeHolder:"placeHolder",inputId:"inputId",maxValue:"maxValue",minValue:"minValue",maxLength:"maxLength",maxValueUniqueAlertMessage:"maxValueUniqueAlertMessage",minValueUniqueAlertMessage:"minValueUniqueAlertMessage",resetInput:"resetInput",showTomanTag:"showTomanTag"},outputs:{OnInput:"OnInput"},features:[t.TTD],decls:10,vars:27,consts:[["class","form-title input-tagged-form-title",4,"ngIf"],[1,"input-tagged-container"],[1,"input-tagged-container-text"],[1,"transparent-part"],[2,"margin-right","45px",3,"id","ngStyle"],["type","tel",1,"form-control",3,"id","placeholder","autocomplete","name","maxLength","ngModel","input","focus","blur","ngModelChange"],[1,"form-title","input-tagged-form-title"],[3,"for"],[4,"ngIf"],["class","max-amount-alert-message",4,"ngIf"],[1,"max-amount-alert-message"]],template:function(K,re){1&K&&(t.YNc(0,D,6,5,"div",0),t.TgZ(1,"div",1)(2,"div",2)(3,"span",3),t._uU(4),t.ALo(5,"newNumberSeparator"),t.qZA(),t.TgZ(6,"span",4),t._uU(7),t.qZA()(),t.TgZ(8,"input",5),t.NdJ("input",function(B){return re.inputInput(B)})("focus",function(B){return re.inputFocus(B)})("blur",function(B){return re.inputBlur(B)})("ngModelChange",function(B){return re.value=B,re.hideTag=0===re.String(re.value).length}),t.ALo(9,"newNumberSeparator"),t.qZA()()),2&K&&(t.Q6J("ngIf",re.label),t.xp6(1),t.ekj("disabled",re.classDisabled)("invalid",re.validateBeforeFirstInput&&re.classInvalid||re.validateBeforeFirstInput&&(!!re.maxValue&&re.maxValue<re.value||!!re.minValue&&re.value<re.minValue)),t.xp6(3),t.hij(" ",re.value?t.lcZ(5,21,re.value):"0"," "),t.xp6(2),t.Q6J("id","tag-"+re.inputId)("ngStyle",re.hideTag?t.DdM(26,q):t.DdM(25,U)),t.xp6(1),t.hij(" ",re.value>"0"||re.showTagWhenEmpty?re.tagValue:""," "),t.xp6(1),t.ekj("red-text",re.redText)("bolder",re.bolderText)("font-large",re.bolderText),t.Q6J("id",re.inputId)("placeholder",re.placeHolder)("autocomplete",re.autocomplete?"on":"off")("name",re.inputId)("maxLength",re.maxLength)("ngModel",null!=re.value&&re.value.toString()?t.lcZ(9,23,re.value):""))},directives:[r.O5,r.PC,d.Fj,d.JJ,d.On],pipes:[y.S,r.JJ,g.an],encapsulation:2}),G})()},27878:(M,b,n)=>{"use strict";n.d(b,{$:()=>a});var t=n(94650),e=n(8929),l=n(39851),h=n(83353),r=n(36895),d=n(24006);function y(O,H){if(1&O&&(t.TgZ(0,"div",6)(1,"label",7),t._uU(2),t.qZA()()),2&O){const F=t.oxw();t.xp6(1),t.Q6J("for",F.inputId),t.xp6(1),t.Oqu(F.label)}}function g(O,H){if(1&O){const F=t.EpF();t.TgZ(0,"div",8),t.NdJ("click",function(){return t.CHM(F),t.oxw().changeTypeInput()}),t._UZ(1,"img",9),t.qZA()}if(2&O){const F=t.oxw();t.xp6(1),t.Q6J("src",F.isShowPass?"/assets/images/shared/show.svg":"/assets/images/shared/hide.svg",t.LSH)}}const p=function(O,H){return{"form-group":O,"show-pass-label":H}},f=function(O,H){return{position:O,"text-align":H}},C=function(O){return{"input-group":O}},N=function(O,H,F){return{"border-left":O,"border-top-left-radius":H,"border-bottom-left-radius":F}};let a=(()=>{class O{constructor(F){this.platform=F,this.label="",this.inputId="",this.placeHolderCenterDir=!1,this.useToggleShowHidePass=!1,this.placeHolder="",this.value="",this.OnInput=new t.vpe,this.resetFormSubject=new e.xQ,this.isShowPass=!1}ngOnInit(){this.timer="",this.resetFormSubject.subscribe(F=>{F&&(document.getElementById(this.inputId).value=this.createBullets(F.toString().length),this.OnInput.emit(F))})}ngAfterViewInit(){this.value&&(document.getElementById(this.inputId).value=this.createBullets(this.value.toString().length),this.OnInput.emit(this.value))}inputInput(F){const V=new l.M;this.OnInput.emit(V.transform(F.target.value))}changeTypeInput(){this.isShowPass=!this.isShowPass;document.getElementById(this.inputId).setAttribute("type",this.isShowPass?"text":"password")}}return O.\u0275fac=function(F){return new(F||O)(t.Y36(h.t4))},O.\u0275cmp=t.Xpm({type:O,selectors:[["app-input-tagged-password"]],inputs:{classInvalid:"classInvalid",classDisabled:"classDisabled",label:"label",inputId:"inputId",placeHolderCenterDir:"placeHolderCenterDir",useToggleShowHidePass:"useToggleShowHidePass",autocomplete:"autocomplete",placeHolder:"placeHolder",value:"value",maxLength:"maxLength",minLength:"minLength",inputTypeHidden:"inputTypeHidden",referenceId:"referenceId",resetFormSubject:"resetFormSubject"},outputs:{OnInput:"OnInput"},decls:6,vars:29,consts:[["class","form-title input-tagged-form-title",4,"ngIf"],[1,"input-tagged-container"],[3,"ngClass","ngStyle"],[3,"ngClass"],["class","input-group-addon",3,"click",4,"ngIf"],["pattern","[0-9]+","inputmode","numeric","type","password","oninput","this.value = this.value.replace(/[^\u06f0\u06f1\u06f2\u06f3\u06f4\u06f5\u06f6\u06f7\u06f8\u06f9\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u06690-9]/g, '').replace(/(\\..*)\\./g, '$1');",1,"form-control",3,"id","placeholder","ngStyle","autocomplete","name","maxLength","input"],[1,"form-title","input-tagged-form-title"],[3,"for"],[1,"input-group-addon",3,"click"],["alt","",3,"src"]],template:function(F,V){1&F&&(t.YNc(0,y,3,2,"div",0),t.TgZ(1,"form",1)(2,"div",2)(3,"div",3),t.YNc(4,g,2,1,"div",4),t.TgZ(5,"input",5),t.NdJ("input",function(U){return V.inputInput(U)}),t.qZA()()()()),2&F&&(t.Q6J("ngIf",V.label),t.xp6(1),t.ekj("disabled",V.classDisabled)("invalid",V.classInvalid)("placeholderCenter",V.placeHolderCenterDir),t.xp6(1),t.Q6J("ngClass",t.WLB(17,p,V.useToggleShowHidePass,V.isShowPass))("ngStyle",t.WLB(20,f,V.useToggleShowHidePass?"relative":"",V.useToggleShowHidePass?"center":"")),t.xp6(1),t.Q6J("ngClass",t.VKq(23,C,V.useToggleShowHidePass)),t.xp6(1),t.Q6J("ngIf",V.useToggleShowHidePass),t.xp6(1),t.Q6J("id",V.inputId)("placeholder",V.placeHolder)("ngStyle",t.kEZ(25,N,V.useToggleShowHidePass?"none":"",V.useToggleShowHidePass?"0":"",V.useToggleShowHidePass?"0":""))("autocomplete",V.autocomplete?"one-time-code":"off")("name",V.inputId)("maxLength",V.maxLength?V.maxLength:"disable"))},directives:[r.O5,d._Y,d.JL,d.F,r.mk,r.PC],encapsulation:2}),O})()},56774:(M,b,n)=>{"use strict";n.d(b,{r:()=>d});var t=n(94650),e=n(36895),l=n(24006);function h(y,g){if(1&y&&(t.TgZ(0,"div",5)(1,"label",6),t._uU(2),t.qZA()()),2&y){const p=t.oxw();t.xp6(1),t.Q6J("for",p.inputId),t.xp6(1),t.Oqu(p.label)}}function r(y,g){if(1&y&&(t.TgZ(0,"span",7),t._uU(1),t.qZA()),2&y){const p=t.oxw();t.Akn("margin-right: "+(p.tagOffset+8)+"px"),t.Q6J("id","tag-"+p.inputId),t.xp6(1),t.hij(" ","0"!==p.value&&""!==p.value||p.showTagWhenEmpty?p.tag:""," ")}}let d=(()=>{class y{constructor(){this.value="",this.tag="",this.label="",this.inputId="",this.placeHolder="",this.OnInput=new t.vpe,this.tagOffset=0}ngOnInit(){}ngAfterContentChecked(){try{this.tag&&(this.value||this.showTagWhenEmpty)&&(this.tagOffset=document.getElementById("tag-"+this.inputId).offsetWidth)}catch{}}inputFocus(p){p.target.offsetParent.classList.add("focused")}inputInput(){this.validateBeforeFirstInput=!0,this.OnInput.emit(this.value)}inputBlur(p){p.target.offsetParent.classList.remove("focused")}}return y.\u0275fac=function(p){return new(p||y)},y.\u0275cmp=t.Xpm({type:y,selectors:[["app-input-tagged-text-desc"]],inputs:{classInvalid:"classInvalid",classDisabled:"classDisabled",autocomplete:"autocomplete",validateBeforeFirstInput:"validateBeforeFirstInput",showTagWhenEmpty:"showTagWhenEmpty",value:"value",tag:"tag",label:"label",inputId:"inputId",height:"height",maxLength:"maxLength",placeHolder:"placeHolder",inputType:"inputType",disabled:"disabled"},outputs:{OnInput:"OnInput"},decls:5,vars:13,consts:[["class","form-title input-tagged-form-title",4,"ngIf"],[1,"input-tagged-container"],[1,"input-tagged-container-text"],[3,"id","style",4,"ngIf"],[2,"height","100px","direction","rtl","padding","8px","text-align","right","resize","none",3,"id","ngClass","name","maxlength","placeholder","disabled","ngModel","input","focus","blur","ngModelChange"],[1,"form-title","input-tagged-form-title"],[3,"for"],[3,"id"]],template:function(p,f){1&p&&(t.YNc(0,h,3,2,"div",0),t.TgZ(1,"div",1)(2,"div",2),t.YNc(3,r,2,4,"span",3),t.qZA(),t.TgZ(4,"textarea",4),t.NdJ("input",function(){return f.inputInput()})("focus",function(N){return f.inputFocus(N)})("blur",function(N){return f.inputBlur(N)})("ngModelChange",function(N){return f.value=N}),t.qZA()()),2&p&&(t.Q6J("ngIf",f.label),t.xp6(1),t.ekj("disabled",f.classDisabled)("invalid",f.validateBeforeFirstInput&&f.classInvalid),t.xp6(2),t.Q6J("ngIf",f.tag),t.xp6(1),t.Q6J("id",f.inputId)("ngClass",f.disabled?"form-control disable":"form-control")("name",f.inputId)("maxlength",f.maxLength)("placeholder",f.placeHolder)("disabled",f.disabled)("ngModel",f.value))},directives:[e.O5,l.Fj,e.mk,l.nD,l.JJ,l.On],encapsulation:2}),y})()},587:(M,b,n)=>{"use strict";n.d(b,{d:()=>p});var t=n(94650),e=n(39851),l=n(36895),h=n(24006);function r(f,C){if(1&f&&(t.TgZ(0,"div",8)(1,"label",9),t._uU(2),t.qZA()()),2&f){const N=t.oxw(2);t.xp6(1),t.Q6J("for",N.inputId),t.xp6(1),t.Oqu(N.label)}}function d(f,C){if(1&f&&(t.TgZ(0,"p",8),t._uU(1),t.qZA()),2&f){const N=t.oxw(2);t.xp6(1),t.hij(" ",N.inputDes," ")}}function y(f,C){if(1&f&&(t.TgZ(0,"section",6),t.YNc(1,r,3,2,"div",7),t.YNc(2,d,2,1,"p",7),t.qZA()),2&f){const N=t.oxw();t.xp6(1),t.Q6J("ngIf",N.label),t.xp6(1),t.Q6J("ngIf",N.inputDes)}}function g(f,C){if(1&f&&(t.TgZ(0,"span",10),t._uU(1),t.qZA()),2&f){const N=t.oxw();t.Akn("margin-right: "+(N.tagOffset+8)+"px"),t.Q6J("id","tag-"+N.inputId),t.xp6(1),t.hij(" ","0"!==N.value&&""!==N.value||N.showTagWhenEmpty?N.tag:""," ")}}let p=(()=>{class f{constructor(){this.placeHolder="",this.placeHolderCenterDir=!1,this.value="",this.tag="",this.label="",this.inputId="",this.inputName="",this.inputDes="",this.OnInput=new t.vpe,this.tagOffset=0}ngOnInit(){}ngAfterContentChecked(){try{this.tag&&(this.value||this.showTagWhenEmpty)&&(this.tagOffset=document.getElementById("tag-"+this.inputId).offsetWidth)}catch{}}inputFocus(N){N.target.offsetParent.classList.add("focused")}focusNext(N){if(this.useNextInputFocus){const a=[];document.querySelectorAll("input.form-control").forEach(F=>{a.push(F.id)});const O=a.indexOf(this.inputId),H=a[O+1];this.value.length===this.maxLength&&8!==N.keyCode&&document.getElementById(H).focus()}}inputInput(N){this.validateBeforeFirstInput=!0;const a=new e.M,O=String(a.transform(N.target.value));"tel"===this.inputType?(N.target.value=O.replace(/[^0-9]/g,""),this.OnInput.emit(N.target.value)):"."===this.useSpecificCharacter?(N.target.value=O.replace(/[^0-9.]/g,"").replace(/^\./g,""),this.OnInput.emit(N.target.value)):this.OnInput.emit(this.value)}inputBlur(N){N.target.offsetParent.classList.remove("focused")}}return f.\u0275fac=function(N){return new(N||f)},f.\u0275cmp=t.Xpm({type:f,selectors:[["app-input-tagged-text"]],inputs:{classInvalid:"classInvalid",classDisabled:"classDisabled",autocomplete:"autocomplete",placeHolder:"placeHolder",placeHolderCenterDir:"placeHolderCenterDir",validateBeforeFirstInput:"validateBeforeFirstInput",showTagWhenEmpty:"showTagWhenEmpty",value:"value",tag:"tag",label:"label",inputId:"inputId",inputName:"inputName",inputDes:"inputDes",maxLength:"maxLength",inputType:"inputType",useNextInputFocus:"useNextInputFocus",useSpecificCharacter:"useSpecificCharacter"},outputs:{OnInput:"OnInput"},decls:7,vars:17,consts:[["style","display: flex; justify-content: space-between",4,"ngIf"],[1,"input-tagged-container"],[1,"input-tagged-container-text"],[1,"transparent-part"],[3,"id","style",4,"ngIf"],[1,"form-control",3,"id","autocomplete","name","type","maxlength","placeholder","ngModel","input","focus","blur","keyup","ngModelChange"],[2,"display","flex","justify-content","space-between"],["class","form-title input-tagged-form-title",4,"ngIf"],[1,"form-title","input-tagged-form-title"],[3,"for"],[3,"id"]],template:function(N,a){1&N&&(t.YNc(0,y,3,2,"section",0),t.TgZ(1,"div",1)(2,"div",2)(3,"span",3),t._uU(4),t.qZA(),t.YNc(5,g,2,4,"span",4),t.qZA(),t.TgZ(6,"input",5),t.NdJ("input",function(H){return a.inputInput(H)})("focus",function(H){return a.inputFocus(H)})("blur",function(H){return a.inputBlur(H)})("keyup",function(H){return a.focusNext(H)})("ngModelChange",function(H){return a.value=H}),t.qZA()()),2&N&&(t.Q6J("ngIf",a.label||a.inputDes),t.xp6(1),t.ekj("disabled",a.classDisabled)("invalid",a.validateBeforeFirstInput&&a.classInvalid)("placeholderCenter",a.placeHolderCenterDir),t.xp6(3),t.hij(" ",a.value," "),t.xp6(1),t.Q6J("ngIf",a.tag),t.xp6(1),t.Q6J("id",a.inputId)("autocomplete",a.autocomplete?"on":"off")("name",a.inputId)("type",a.inputType?a.inputType:"text")("maxlength",a.maxLength)("placeholder",a.placeHolder)("ngModel",a.value),t.uIk("name",a.inputName))},directives:[l.O5,h.Fj,h.nD,h.JJ,h.On],encapsulation:2}),f})()},80597:(M,b,n)=>{"use strict";n.d(b,{Z8:()=>e});var t=n(94650);let e=(()=>{class y{constructor(){this.inputs={confirm:null,pageTitle:null,podLogoInHeader:null,transparentHeader:null,desc:null,defaultBackAction:null}}resetData(){this.inputs={confirm:null,pageTitle:null,podLogoInHeader:null,transparentHeader:null,desc:null}}}return y.\u0275fac=function(p){return new(p||y)},y.\u0275prov=t.Yz7({token:y,factory:y.\u0275fac,providedIn:"root"}),y})()},90290:(M,b,n)=>{"use strict";n.d(b,{Z:()=>H});var t=n(94650),e=n(79473),l=n(80597),h=n(36895);const r=function(F){return{width:F}};function d(F,V){if(1&F&&t._UZ(0,"img",9),2&F){const D=t.oxw().$implicit,U=t.oxw();t.Q6J("ngStyle",t.VKq(3,r,U.getWidth(D.width)))("src",U.getImage(D.img),t.LSH)("alt",D.imgAlt)}}const y=function(F,V,D){return[F,V,D]};function g(F,V){if(1&F&&t._UZ(0,"p",10),2&F){const D=t.oxw().$implicit,U=t.oxw();t.Q6J("ngStyle",t.VKq(3,r,U.getWidth(D.width)))("ngClass",t.kEZ(5,y,U.getTextColor(D.color),U.getTextAlign(D.align),U.getTextWeight(D.fontWeight)))("innerHTML",U.prepareInlineIconIfExists(D),t.oJD)}}function p(F,V){1&F&&t._UZ(0,"div",11)}const f=function(F,V,D){return{marginTop:F,justifyContent:V,fontSize:D}};function C(F,V){if(1&F&&(t.TgZ(0,"div",5),t.YNc(1,d,1,5,"img",6),t.YNc(2,g,1,9,"p",7),t.YNc(3,p,1,0,"div",8),t.qZA()),2&F){const D=V.$implicit,U=t.oxw();t.Q6J("ngStyle",t.kEZ(4,f,U.getMarginTop(D.marginTop),U.getAlign(D.align),U.getFontSize(D.fontSize))),t.xp6(1),t.Q6J("ngIf",!D.divider&&D.img),t.xp6(1),t.Q6J("ngIf",!D.divider&&!D.img&&D.text),t.xp6(1),t.Q6J("ngIf",D.divider)}}const N=function(F){return[F]};function a(F,V){if(1&F&&t._UZ(0,"img",12),2&F){const D=t.oxw();t.Q6J("ngClass",t.VKq(3,N,D.getButtonIconAlign(null==D.data.inputs.confirm||null==D.data.inputs.confirm.icon?null:D.data.inputs.confirm.icon.align)))("src",null==D.data.inputs.confirm||null==D.data.inputs.confirm.icon?null:D.data.inputs.confirm.icon.src,t.LSH)("alt",null==D.data.inputs.confirm||null==D.data.inputs.confirm.icon?null:D.data.inputs.confirm.icon.alt)}}const O=function(F){return{marginTop:F}};let H=(()=>{class F{constructor(D,U){this.wepodMainService=D,this.data=U}ngOnInit(){}getImage(D){try{return D&&"string"!==D?D?.includes("http")||D?.includes("assets/")?D:"https://podspace.pod.ir/nzh/drive/downloadFile/?hash="+D+"&_token_issuer_=1&_token_="+this.wepodMainService.getToken():""}catch{return""}}getMarginTop(D){switch(parseInt(String(D),10)){case 0:return 0;case 1:default:return"6px";case 2:return"12px";case 3:return"24px";case 4:return"36px"}}getWidth(D){return D?D+"%":"100%"}getAlign(D){switch(parseInt(String(D),10)){case 1:default:return"flex-start";case 2:return"center";case 3:return"flex-end"}}getFontSize(D){switch(parseInt(String(D),10)){case 1:return"11px";case 2:default:return"12px";case 3:return"14px";case 4:return"16px"}}getTextColor(D){switch(parseInt(String(D),10)){case 1:default:return"unset";case 2:return"gray-light";case 3:return"brand-green";case 5:return"red-text"}}getTextAlign(D){switch(parseInt(String(D),10)){case 1:default:return"text-right";case 2:return"text-center";case 3:return"text-left"}}getTextWeight(D){switch(parseInt(String(D),10)){case 1:default:return"unset";case 2:return"bold";case 3:return"bolder"}}getButtonIconAlign(D){switch(parseInt(String(D),10)){case 1:default:return"align-right";case 2:return"align-center";case 3:return"align-left"}}prepareInlineIconIfExists(D){let U=D.text;return D.inlineIcon&&(U='<img src="'+this.getImage(D.inlineIcon)+'" class="fit-line-height" alt="" />'+U),U}}return F.\u0275fac=function(D){return new(D||F)(t.Y36(e.g),t.Y36(l.Z8))},F.\u0275cmp=t.Xpm({type:F,selectors:[["app-introduction-page"]],decls:7,vars:8,consts:[[1,"groups-portion-introduction-wrapper",2,"overflow","auto"],[1,"container-per-page",3,"ngStyle"],["class","flex","style","align-items: center; width: 100%;",3,"ngStyle",4,"ngFor","ngForOf"],[1,"btn","width-fix","btn-success","btn-fixed-mob",3,"click"],["class","icon-fixed",3,"ngClass","src","alt",4,"ngIf"],[1,"flex",2,"align-items","center","width","100%",3,"ngStyle"],[3,"ngStyle","src","alt",4,"ngIf"],["style","display: contents",3,"ngStyle","ngClass","innerHTML",4,"ngIf"],["class","divider",4,"ngIf"],[3,"ngStyle","src","alt"],[2,"display","contents",3,"ngStyle","ngClass","innerHTML"],[1,"divider"],[1,"icon-fixed",3,"ngClass","src","alt"]],template:function(D,U){1&D&&(t.TgZ(0,"article",0)(1,"section")(2,"div",1),t.YNc(3,C,4,8,"div",2),t.TgZ(4,"button",3),t.NdJ("click",function(){return null==U.data.inputs||null==U.data.inputs.confirm?null:U.data.inputs.confirm.callback()}),t._uU(5),t.YNc(6,a,1,5,"img",4),t.qZA()()()()),2&D&&(t.xp6(2),t.Q6J("ngStyle",t.VKq(6,O,null!=U.data.inputs&&U.data.inputs.hideHeader?0:null)),t.xp6(1),t.Q6J("ngForOf",null==U.data.inputs?null:U.data.inputs.desc),t.xp6(1),t.ekj("fixed-but-round",null==U.data.inputs||null==U.data.inputs.confirm?null:U.data.inputs.confirm.dontFixBottom),t.xp6(1),t.hij(" ",null==U.data.inputs||null==U.data.inputs.confirm?null:U.data.inputs.confirm.text," "),t.xp6(1),t.Q6J("ngIf",null==U.data.inputs.confirm.icon?null:U.data.inputs.confirm.icon.src))},directives:[h.PC,h.sg,h.O5,h.mk],encapsulation:2}),F})()},43606:(M,b,n)=>{"use strict";n.d(b,{qA:()=>f});var t=n(94650),e=n(26116),l=n(36895);function h(O,H){if(1&O){const F=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){return t.CHM(F),t.oxw().back()}),t._UZ(1,"img",10),t.qZA()}if(2&O){const F=t.oxw();t.xp6(1),t.MGl("src","/assets/images/shared/header-per-page/",null!=F.data&&F.data.transparent?"arrow-back-gray.svg":"back.svg","",t.LSH)}}function r(O,H){if(1&O){const F=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(F);const D=t.oxw();return null==D.data||null==D.data.buttons||null==D.data.buttons.firstAction?null:D.data.buttons.firstAction.action()}),t._UZ(1,"img",12),t.qZA()}if(2&O){const F=t.oxw();t.Q6J("ngClass",null!=F.data&&null!=F.data.buttons&&null!=F.data.buttons.firstAction&&F.data.buttons.firstAction.badge?"show":"")("title",(null==F.data||null==F.data.buttons||null==F.data.buttons.firstAction?null:F.data.buttons.firstAction.title)||""),t.xp6(1),t.Q6J("src",null==F.data||null==F.data.buttons||null==F.data.buttons.firstAction?null:F.data.buttons.firstAction.icon,t.LSH)("alt",null==F.data||null==F.data.buttons||null==F.data.buttons.firstAction?null:F.data.buttons.firstAction.iconAlt)}}function d(O,H){if(1&O){const F=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(F);const D=t.oxw();return null==D.data||null==D.data.buttons||null==D.data.buttons.secondAction?null:D.data.buttons.secondAction.action()}),t._UZ(1,"img",12),t.qZA()}if(2&O){const F=t.oxw();t.Q6J("ngClass",null!=F.data&&null!=F.data.buttons&&null!=F.data.buttons.secondAction&&F.data.buttons.secondAction.badge?"show":"")("title",(null==F.data||null==F.data.buttons||null==F.data.buttons.secondAction?null:F.data.buttons.secondAction.title)||""),t.xp6(1),t.Q6J("src",null==F.data||null==F.data.buttons||null==F.data.buttons.secondAction?null:F.data.buttons.secondAction.icon,t.LSH)("alt",null!=F.data&&null!=F.data.buttons&&null!=F.data.buttons.secondAction&&F.data.buttons.secondAction.iconAlt?F.data.buttons.secondAction.iconAlt:"")}}function y(O,H){1&O&&t._UZ(0,"img",13)}function g(O,H){if(1&O&&(t.TgZ(0,"h4",14),t._uU(1),t.qZA()),2&O){const F=t.oxw();t.ekj("with-sub-title",null==F.data?null:F.data.subTitle),t.xp6(1),t.Oqu(null==F.data?null:F.data.title)}}function p(O,H){if(1&O&&(t.TgZ(0,"h6",15),t._uU(1),t.qZA()),2&O){const F=t.oxw();t.xp6(1),t.Oqu(null==F.data?null:F.data.subTitle)}}let f=(()=>{class O{constructor(F){this.redirectService=F}ngOnInit(){}back(){this.redirectService.redirectObj?.backButtonReset&&this.redirectService.resetRedirect(),this.data?.buttons?.back?.action()}}return O.\u0275fac=function(F){return new(F||O)(t.Y36(e.V))},O.\u0275cmp=t.Xpm({type:O,selectors:[["app-page-header"]],inputs:{data:"data"},decls:11,vars:8,consts:[[1,"new-header"],[1,"new-header-side"],["class","new-header-button new-header-button-back",3,"click",4,"ngIf"],[1,"new-header-middle"],["class","new-header-button",3,"ngClass","title","click",4,"ngIf"],[1,"new-header-texts"],["class","wepod-logo-in-header","src","assets/images/shared/pod-logo-green.svg","alt","",4,"ngIf"],["class","new-header-texts-title",3,"with-sub-title",4,"ngIf"],["class","new-header-texts-sub-title",4,"ngIf"],[1,"new-header-button","new-header-button-back",3,"click"],["alt","\u0628\u0627\u0632\u06af\u0634\u062a",3,"src"],[1,"new-header-button",3,"ngClass","title","click"],[3,"src","alt"],["src","assets/images/shared/pod-logo-green.svg","alt","",1,"wepod-logo-in-header"],[1,"new-header-texts-title"],[1,"new-header-texts-sub-title"]],template:function(F,V){1&F&&(t.TgZ(0,"header",0)(1,"div",1),t.YNc(2,h,2,1,"button",2),t.qZA(),t._UZ(3,"div",3),t.TgZ(4,"div",1),t.YNc(5,r,2,4,"button",4),t.YNc(6,d,2,4,"button",4),t.qZA(),t.TgZ(7,"div",5),t.YNc(8,y,1,0,"img",6),t.YNc(9,g,2,3,"h4",7),t.YNc(10,p,2,1,"h6",8),t.qZA()()),2&F&&(t.ekj("bg-transparent",null==V.data?null:V.data.transparent),t.xp6(2),t.Q6J("ngIf",(null==V.data||null==V.data.buttons?null:V.data.buttons.back)&&!(null!=V.data&&null!=V.data.buttons&&null!=V.data.buttons.back&&V.data.buttons.back.hidden)),t.xp6(3),t.Q6J("ngIf",(null==V.data||null==V.data.buttons?null:V.data.buttons.firstAction)&&!(null!=V.data&&null!=V.data.buttons&&null!=V.data.buttons.firstAction&&V.data.buttons.firstAction.hidden)),t.xp6(1),t.Q6J("ngIf",(null==V.data||null==V.data.buttons?null:V.data.buttons.secondAction)&&!(null!=V.data&&null!=V.data.buttons&&null!=V.data.buttons.secondAction&&V.data.buttons.secondAction.hidden)),t.xp6(2),t.Q6J("ngIf",null==V.data?null:V.data.podLogoInHeader),t.xp6(1),t.Q6J("ngIf",!(null!=V.data&&V.data.podLogoInHeader)),t.xp6(1),t.Q6J("ngIf",!(null!=V.data&&V.data.podLogoInHeader)&&(null==V.data?null:V.data.subTitle)))},directives:[l.O5,l.mk],encapsulation:2}),O})()},48188:(M,b,n)=>{"use strict";n.d(b,{$:()=>l});var t=n(36895),e=n(94650);let l=(()=>{class h{}return h.\u0275fac=function(d){return new(d||h)},h.\u0275mod=e.oAB({type:h}),h.\u0275inj=e.cJS({imports:[[t.ez]]}),h})()},36844:(M,b,n)=>{"use strict";n.d(b,{g:()=>K});var t=n(36895),e=n(24006),l=n(20421),h=n(67657),r=n(48188),d=n(13861),y=n(40345),g=n(39851),p=n(83797),f=n(94650),C=n(11213),N=n(17423),a=n(43606),O=n(19885);const H=["otpNumberRef"],F=["otpSubmitButton"];function V(re,oe){if(1&re){const B=f.EpF();f.TgZ(0,"input",17,18),f.NdJ("keydown",function(_){return f.CHM(B),f.oxw().keytab(_)}),f.qZA()}if(2&re){const B=oe.$implicit,s=oe.index;f.MGl("id","otp-",B,"")("formControlName","otp",B,""),f.s9C("tabindex",s+1)}}function D(re,oe){1&re&&(f.TgZ(0,"span"),f._uU(1,"\u0627\u0631\u0633\u0627\u0644 \u0645\u062c\u062f\u062f \u06a9\u062f \u0641\u0639\u0627\u0644\u200c\u0633\u0627\u0632\u06cc"),f.qZA())}function U(re,oe){if(1&re&&(f.TgZ(0,"span"),f._uU(1),f.ALo(2,"countDownTime"),f.qZA()),2&re){const B=f.oxw();f.xp6(1),f.hij(" \u0632\u0645\u0627\u0646 \u0628\u0627\u0642\u06cc\u200c\u0645\u0627\u0646\u062f\u0647 ",f.lcZ(2,1,B.timeLeft)," ")}}const q=function(){return[1,2,3,4,5,6,7]},G=[{path:"pod-card-activate-otp",component:(()=>{class re extends p.Z{constructor(B,s,_,w,E){super(),this.formBuilder=B,this.digitalCardService=s,this.routingAppService=_,this.getDigitalCardDataService=w,this.route=E,this.timeLeft=0,this.canResendCode=!1,this.pageHeaderData={title:"\u0641\u0639\u0627\u0644\u0633\u0627\u0632\u06cc \u06a9\u0627\u0631\u062a",buttons:{back:{action:()=>{this.routingAppService.back()}}}}}ngOnInit(){const B={};for(let s=1;s<8;s++)B["otp"+s]=["",[e.kI.required,e.kI.pattern(/[0-9]/)]];this.activateOtpForm=this.formBuilder.group(B),this.timeLeft=Number(this.route.snapshot.queryParamMap.get("otpTimeout")),this.startTimer()}ngAfterViewInit(){this.otpNumberRefs.nativeElement.focus()}startTimer(){this.canResendCode=!1;const B=(new Date).getTime(),s=this.timeLeft;(0,y.Jj)()&&(clearInterval(this.interval),this.interval=setInterval(()=>{const _=s-Math.floor(((new Date).getTime()-B)/1e3);_>0?this.timeLeft=_:(clearInterval(this.interval),this.canResendCode=!0)},1e3))}resendCode(){this.digitalCardService.getDigitalCardOtpCode({cardNumber:this.getDigitalCardDataService?.digitalPodCard?.cardNumber}).subscribe(B=>{this.timeLeft=B.digitalCardOtpInterval,this.startTimer()})}verifyOtp(){if(this.activateOtpForm.valid){let B="";for(let _=1;_<8;_++)B+=this.activateOtpForm.value["otp"+_];const s={otpCode:String(B)};this.digitalCardService.verifyDigitalCardOtpCode(s).subscribe(_=>{_.isSuccessful&&this.routingAppService.back()})}}keytab(B){if(7===B.target.value.length){const x=B.target.value;for(let j=1;j<=7;j++)document.getElementById("otp-"+j).value=x.charAt(j-1);this.otpSubmitButton.nativeElement.click()}const s=B.target.id.replace(/\D/g,""),_=new g.M;this.activateOtpForm.controls["otp"+s].setValue(_.transform(B.target.value));let E=B.target.nextElementSibling;8===B.keyCode&&(E=B.target.previousElementSibling,B.target.value=null,E.focus()),E&&(B.target.value||8===B.keyCode)?E.focus():this.otpSubmitButton.nativeElement.click()}}return re.\u0275fac=function(B){return new(B||re)(f.Y36(e.qu),f.Y36(h.w),f.Y36(C.s),f.Y36(N.v),f.Y36(d.gz))},re.\u0275cmp=f.Xpm({type:re,selectors:[["app-pod-card-activate-otp"]],viewQuery:function(B,s){if(1&B&&(f.Gf(H,5),f.Gf(F,5)),2&B){let _;f.iGM(_=f.CRH())&&(s.otpNumberRefs=_.first),f.iGM(_=f.CRH())&&(s.otpSubmitButton=_.first)}},features:[f.qOj],decls:25,vars:7,consts:[[1,"pod-card-activate-otp-wrapper"],[3,"data"],[1,"container-per-page"],[1,"activate-otp-header"],["src","/assets/images/pod-card/validation-code.svg","alt",""],[1,"activate-otp-header-title","bold"],[1,"form-wrapper",3,"formGroup","ngSubmit"],[1,"form-group"],[1,"form-title"],[1,"register-verify-input"],["type","tel","pattern","[0-9]+","class","form-control","oninput","this.value = this.value.replace(/[^\u06f0\u06f1\u06f2\u06f3\u06f4\u06f5\u06f6\u06f7\u06f8\u06f9\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u06690-9]/g, '').replace(/(\\..*)\\./g, '$1');","maxlength","1","required","","autocomplete","off",3,"id","formControlName","tabindex","keydown",4,"ngFor","ngForOf"],["id","otp-submit-btn","type","submit","tabindex","7",1,"btn-success","btn","w-100"],["otpSubmitButton",""],[1,"activate-otp-resend"],[1,"gray-light"],["tabindex","7",1,"btn-success","btn","btn-small","w-auto","brand-green",3,"disabled","click"],[4,"ngIf"],["type","tel","pattern","[0-9]+","oninput","this.value = this.value.replace(/[^\u06f0\u06f1\u06f2\u06f3\u06f4\u06f5\u06f6\u06f7\u06f8\u06f9\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u06690-9]/g, '').replace(/(\\..*)\\./g, '$1');","maxlength","1","required","","autocomplete","off",1,"form-control",3,"id","formControlName","tabindex","keydown"],["otpNumberRef",""]],template:function(B,s){1&B&&(f.TgZ(0,"article",0),f._UZ(1,"app-page-header",1),f.TgZ(2,"div",2)(3,"div",3),f._UZ(4,"img",4),f.TgZ(5,"p",5),f._uU(6," \u06a9\u062f \u0641\u0639\u0627\u0644\u0633\u0627\u0632\u06cc \u0627\u0631\u0633\u0627\u0644 \u0634\u062f\u0647 \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f "),f.qZA(),f.TgZ(7,"p"),f._uU(8," \u0644\u0637\u0641\u0627 \u0628\u0631\u0627\u06cc \u0641\u0639\u0627\u0644\u0633\u0627\u0632\u06cc \u06a9\u0627\u0631\u062a \u062d\u0633\u0627\u0628 \u062f\u06cc\u062c\u06cc\u062a\u0627\u0644 \u067e\u0627\u0633\u0627\u0631\u06af\u0627\u062f \u06a9\u062f \u06f7 \u0631\u0642\u0645\u06cc \u06a9\u0647 \u0628\u0647 \u0634\u0645\u0627\u0631\u0647 \u0645\u0648\u0628\u0627\u06cc\u0644 \u0634\u0645\u0627 \u067e\u06cc\u0627\u0645\u06a9 \u0634\u062f\u0647 \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f. "),f.qZA()(),f.TgZ(9,"form",6),f.NdJ("ngSubmit",function(){return s.verifyOtp()}),f.TgZ(10,"div",7)(11,"div",8)(12,"label"),f._uU(13,"\u06a9\u062f \u06f7 \u0631\u0642\u0645\u06cc"),f.qZA()(),f.TgZ(14,"div",9),f.YNc(15,V,2,3,"input",10),f.qZA()(),f.TgZ(16,"button",11,12),f._uU(18,"\u0641\u0639\u0627\u0644\u0633\u0627\u0632\u06cc \u06a9\u0627\u0631\u062a"),f.qZA(),f.TgZ(19,"section",13)(20,"p",14),f._uU(21,"\u06a9\u062f \u0631\u0627 \u062f\u0631\u06cc\u0627\u0641\u062a \u0646\u06a9\u0631\u062f\u0647\u200c\u200c\u0627\u06cc\u062f\u061f"),f.qZA(),f.TgZ(22,"button",15),f.NdJ("click",function(){return s.resendCode()}),f.YNc(23,D,2,0,"span",16),f.YNc(24,U,3,3,"span",16),f.qZA()()()()()),2&B&&(f.xp6(1),f.Q6J("data",s.pageHeaderData),f.xp6(8),f.Q6J("formGroup",s.activateOtpForm),f.xp6(6),f.Q6J("ngForOf",f.DdM(6,q)),f.xp6(7),f.Q6J("disabled",!s.canResendCode),f.xp6(1),f.Q6J("ngIf",s.canResendCode),f.xp6(1),f.Q6J("ngIf",!s.canResendCode))},directives:[a.qA,e._Y,e.JL,e.sg,t.sg,e.Fj,e.c5,e.nD,e.Q7,e.JJ,e.u,t.O5],pipes:[O.q],encapsulation:2}),re})()}];let ie=(()=>{class re{}return re.\u0275fac=function(B){return new(B||re)},re.\u0275mod=f.oAB({type:re}),re.\u0275inj=f.cJS({imports:[[d.Bz.forChild(G)],d.Bz]}),re})(),K=(()=>{class re{}return re.\u0275fac=function(B){return new(B||re)},re.\u0275mod=f.oAB({type:re}),re.\u0275inj=f.cJS({providers:[h.w],imports:[[t.ez,ie,e.UX,l.d,r.$]]}),re})()},84727:(M,b,n)=>{"use strict";n.d(b,{x:()=>f});var t=n(42666),e=n(40345),l=n(77743),h=n(66699),r=n(73038),d=n(94650),y=n(25742),g=n(11213),p=n(97028);let f=(()=>{class C{constructor(a,O,H){this.transactionReceiptDataPassingService=a,this.routingAppService=O,this.tagManager=H,this.title="\u0627\u0634\u062a\u0631\u0627\u06a9 \u06af\u0630\u0627\u0631\u06cc",this.image="/assets/images/shared/share-receipt-btn.svg",this.node=document.getElementById("print-section"),this.isDesktop=0===(0,e.Jj)()?.navigator.maxTouchPoints}ngOnInit(){}ngAfterViewInit(){}createBlob(a){return new Promise(O=>{setTimeout(()=>{t.SE(document.getElementById("receiptCanvas")).then(H=>{const V=new Image;V.src=URL.createObjectURL(H),[].push({idBlob:a||Math.random(),fileBlob:H,srcBlob:V.src}),O(H)})},1e3)})}isShowShareBtn(){this.tagManagerContent&&(0,h.Sq)("DataLayerGoogleAnalytics")&&this.tagManager.pushEvent(this.tagManagerContent,{});try{const a=(0,e.Jj)().navigator,O={type:"image/png",lastModified:Date.now()},H={files:[],title:"\u0648\u06cc\u067e\u0627\u062f",text:this.contentShare,imgUrl:""};this.isDesktop||/iPad|iPhone|iPod/.test(a.platform)?/iPad|iPhone|iPod/.test(a.platform)&&!this.isDesktop?setTimeout(()=>{r.j.fullScreen.next(!1),r.j.height=300,r.j.desktopStyle=!0,r.j.bgWhite=!0,r.j.hideDesktopHeaderClose=!1,r.j.modalTitle=this.title,r.j.modalTitleBgGray=!0,r.j.disableBackdropClosing=!1,r.j.data.next({dataUse:H}),(0,r.h7)("socialBtnAndroid",300)},600):setTimeout(()=>{r.j.fullScreen.next(!1),r.j.height=448,r.j.desktopStyle=!0,r.j.bgWhite=!0,r.j.hideDesktopHeaderClose=!1,r.j.modalTitle=this.title,r.j.modalTitleBgGray=!0,r.j.disableBackdropClosing=!1,r.j.data.next({textShare:this.contentShare,link:this.backUrl?this.routingAppService.navigate([this.backUrl]):null}),(0,r.h7)("socialButtonShareModal",300)},500):(this.backUrl&&this.routingAppService.navigate([this.backUrl]),(0,h.Sq)("ShareBlobImagOnAndroid")?this.imageSlider&&1!==this.imageSlider.length?(r.j.fullScreen.next(!1),r.j.height=480,r.j.desktopStyle=!1,r.j.bgWhite=!1,r.j.hideDesktopHeaderClose=!1,r.j.modalTitle="\u0627\u0646\u062a\u0642\u0627\u0644 \u0648\u062c\u0647",r.j.modalTitleBgGray=!0,r.j.disableBackdropClosing=!1,r.j.data.next({imageSlider:this.imageSlider,dataUseForSlider:this.contentShare}),(0,r.h7)("sharedTemReceiptModal",480)):this.transactionReceiptDataPassingService.temId?(l.hg.next({loading:!0,cancelable:!1}),this.createBlob(this.transactionReceiptDataPassingService.temId).then(F=>{l.hg.next({loading:!1,cancelable:!1}),this.blobFile=F;const V=new File([this.blobFile],"receipt.png",O);H.files.push(V),H.imgUrl=this.transactionReceiptDataPassingService.imageUrl?this.transactionReceiptDataPassingService.imageUrl:"assets/images/template-share/white-tem.svg",H.text=this.contentShare,setTimeout(()=>{r.j.fullScreen.next(!1),r.j.height=300,r.j.desktopStyle=!0,r.j.bgWhite=!0,r.j.hideDesktopHeaderClose=!1,r.j.modalTitle=this.title,r.j.modalTitleBgGray=!0,r.j.disableBackdropClosing=!1,r.j.data.next({dataUse:H}),(0,r.h7)("socialBtnAndroid",300)},600)},()=>{l.hg.next({loading:!1,cancelable:!1})})):(H.text=this.contentShare,setTimeout(()=>{r.j.fullScreen.next(!1),r.j.height=300,r.j.desktopStyle=!0,r.j.bgWhite=!0,r.j.hideDesktopHeaderClose=!1,r.j.modalTitle=this.title,r.j.modalTitleBgGray=!0,r.j.disableBackdropClosing=!1,r.j.data.next({dataUse:H}),(0,r.h7)("socialBtnAndroid",300)},600)):a.share(H))}catch(a){console.error(a)}}}return C.\u0275fac=function(a){return new(a||C)(d.Y36(y.d),d.Y36(g.s),d.Y36(p.c))},C.\u0275cmp=d.Xpm({type:C,selectors:[["app-share-button"]],inputs:{data:"data",contentShare:"contentShare",idElement:"idElement",title:"title",image:"image",imageSlider:"imageSlider",backUrl:"backUrl",tagManagerContent:"tagManagerContent"},decls:3,vars:2,consts:[[1,"share-button",3,"click"],["alt","",3,"src"]],template:function(a,O){1&a&&(d.TgZ(0,"button",0),d.NdJ("click",function(){return O.isShowShareBtn()}),d._UZ(1,"img",1),d._uU(2),d.qZA()),2&a&&(d.xp6(1),d.Q6J("src",O.image,d.LSH),d.xp6(1),d.hij(" ",O.title,"\n"))},encapsulation:2}),C})()},25742:(M,b,n)=>{"use strict";n.d(b,{d:()=>e});var t=n(94650);let e=(()=>{class l{constructor(){}}return l.\u0275fac=function(r){return new(r||l)},l.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})()},63718:(M,b,n)=>{"use strict";n.d(b,{FZ:()=>at,ap:()=>Lt});var t=n(94650),e=n(8929),l=n(23753),h=n(7625),r=n(40345),d=n(75869),y=n(64086),g=n(54940),p=n(66699),f=n(97028),C=n(25742),N=n(26116),a=n(66226),O=n(83353),H=n(58132);function F(ne,be){if(1&ne&&t._UZ(0,"img",34),2&ne){const Te=t.oxw();t.MGl("src","assets/images/receipt/success",Te.bgGreen?"-white":"",".svg",t.LSH)}}function V(ne,be){1&ne&&t._UZ(0,"img",35)}function D(ne,be){1&ne&&t._UZ(0,"img",36)}function U(ne,be){if(1&ne&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&ne){const Te=t.oxw();t.xp6(1),t.Oqu(Te.successTitle)}}function q(ne,be){if(1&ne&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&ne){const Te=t.oxw();t.xp6(1),t.Oqu(Te.failTitle)}}function J(ne,be){if(1&ne&&(t.TgZ(0,"p",37),t._uU(1),t.qZA()),2&ne){const Te=t.oxw();t.xp6(1),t.Oqu(Te.inProgressTitle)}}function G(ne,be){if(1&ne&&t._UZ(0,"app-share-button",42),2&ne){const Te=t.oxw(2);t.Q6J("contentShare",Te.contentShare)("imageSlider",Te.templatesSlider)("tagManagerContent",Te.tagManagerContent)}}function ie(ne,be){if(1&ne){const Te=t.EpF();t.TgZ(0,"div",38)(1,"button",39),t.NdJ("click",function(){return t.CHM(Te),t.oxw().print()}),t._UZ(2,"img",40),t.TgZ(3,"span"),t._uU(4,"\u0686\u0627\u067e \u0631\u0633\u06cc\u062f"),t.qZA()(),t.YNc(5,G,1,3,"app-share-button",41),t.qZA()}if(2&ne){const Te=t.oxw();t.xp6(5),t.Q6J("ngIf",!(Te.isIos||Te.isDesktop)||Te.data.state===Te.StateType.Success)}}function K(ne,be){if(1&ne&&t._UZ(0,"img",43),2&ne){const Te=t.oxw();t.MGl("src","assets/images/receipt/success",Te.bgGreen?"-white":"",".svg",t.LSH)}}function re(ne,be){1&ne&&t._UZ(0,"img",44)}function oe(ne,be){1&ne&&t._UZ(0,"img",45)}function B(ne,be){if(1&ne&&(t.TgZ(0,"p",46),t._uU(1),t.qZA()),2&ne){const Te=t.oxw();t.xp6(1),t.Oqu(Te.successTitle?Te.successTitle:"\u0639\u0645\u0644\u06cc\u0627\u062a \u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u0627\u0646\u062c\u0627\u0645 \u0634\u062f.")}}function s(ne,be){if(1&ne&&(t.TgZ(0,"p",47),t._uU(1),t.qZA()),2&ne){const Te=t.oxw();t.xp6(1),t.Oqu(Te.failTitle?Te.failTitle:"\u0639\u0645\u0644\u06cc\u0627\u062a \u0646\u0627\u0645\u0648\u0641\u0642 \u0627\u0633\u062a")}}function _(ne,be){if(1&ne&&(t.TgZ(0,"p",48),t._uU(1),t.qZA()),2&ne){const Te=t.oxw();t.xp6(1),t.Oqu(Te.inProgressTitle?Te.inProgressTitle:"\u0639\u0645\u0644\u06cc\u0627\u062a \u0646\u0627\u0645\u0634\u062e\u0635 \u0627\u0633\u062a")}}function w(ne,be){if(1&ne&&(t.TgZ(0,"p",49),t._UZ(1,"img",50),t._uU(2),t.qZA()),2&ne){const Te=t.oxw();t.ekj("receipt-list-result-success",!Te.bgGreen),t.xp6(1),t.MGl("src","/assets/images/receipt/tick",Te.bgGreen?"-white":"",".svg",t.LSH),t.xp6(1),t.hij(" ",Te.statusName?Te.statusName:"\u0645\u0648\u0641\u0642"," ")}}function E(ne,be){if(1&ne&&(t.TgZ(0,"p",51),t._UZ(1,"img",52),t._uU(2),t.qZA()),2&ne){const Te=t.oxw();t.xp6(2),t.hij(" ",Te.statusName?Te.statusName:"\u0646\u0627\u0645\u0648\u0641\u0642"," ")}}function x(ne,be){if(1&ne&&(t.TgZ(0,"p",53),t._UZ(1,"img",54),t._uU(2),t.qZA()),2&ne){const Te=t.oxw();t.xp6(2),t.hij(" ",Te.statusName?Te.statusName:"\u0646\u0627\u0645\u0634\u062e\u0635"," ")}}function j(ne,be){if(1&ne&&(t.TgZ(0,"span",58),t._uU(1),t.ALo(2,"numberSeparator"),t.ALo(3,"rialToToman"),t.qZA()),2&ne){const Te=t.oxw(2).$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,t.lcZ(3,3,Te.value))," \u062a\u0648\u0645\u0627\u0646 ")}}function $(ne,be){if(1&ne&&(t.TgZ(0,"span",58),t._uU(1),t.ALo(2,"numberSeparator"),t.qZA()),2&ne){const Te=t.oxw(2).$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,Te.value)," \u0631\u06cc\u0627\u0644 ")}}function Y(ne,be){if(1&ne&&t._UZ(0,"img",61),2&ne){const Te=t.oxw(3).$implicit;t.Q6J("src",Te.logo,t.LSH)}}function u(ne,be){if(1&ne&&(t.TgZ(0,"span",59),t.YNc(1,Y,1,1,"img",60),t.TgZ(2,"span"),t._uU(3),t.qZA()()),2&ne){const Te=t.oxw(2).$implicit;t.xp6(1),t.Q6J("ngIf",Te.logo),t.xp6(1),t.ekj("rtl","\u0634\u0631\u062d \u0648\u0636\u0639\u06cc\u062a"===Te.label||"\u0634\u0631\u062d \u0645\u0628\u062f\u0627"===Te.label||"\u0634\u0631\u062d \u0645\u0642\u0635\u062f"===Te.label||"\u0634\u0631\u062d"===Te.label),t.xp6(1),t.Oqu(Te.value)}}function W(ne,be){if(1&ne&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"jalaliDate"),t.qZA()),2&ne){const Te=t.oxw(2).$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,Te.value)," ")}}function fe(ne,be){if(1&ne&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"jalaliDateTime"),t.qZA()),2&ne){const Te=t.oxw(2).$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,Te.value)," ")}}function ae(ne,be){if(1&ne&&(t.TgZ(0,"li",20)(1,"div",21)(2,"header",22),t._uU(3),t.qZA(),t.TgZ(4,"p",49),t.YNc(5,j,4,5,"span",56),t.YNc(6,$,3,3,"span",56),t.YNc(7,u,4,4,"span",57),t.YNc(8,W,3,3,"span",6),t.YNc(9,fe,3,3,"span",6),t.qZA()()()),2&ne){const Te=t.oxw().$implicit;t.xp6(3),t.hij(" ",Te.label," "),t.xp6(1),t.ekj("ltr","amount"!==Te.type&&"amountWithRial"!==Te.type),t.xp6(1),t.Q6J("ngIf","amount"===Te.type||"amountWithRial"===Te.type),t.xp6(1),t.Q6J("ngIf","amountWithRial"===Te.type),t.xp6(1),t.Q6J("ngIf","text"===Te.type),t.xp6(1),t.Q6J("ngIf","jalaliDate"===Te.type),t.xp6(1),t.Q6J("ngIf","jalaliDateTime"===Te.type)}}function ye(ne,be){if(1&ne&&(t.ynx(0),t.YNc(1,ae,10,8,"li",55),t.BQk()),2&ne){const Te=be.$implicit;t.xp6(1),t.Q6J("ngIf",Te.value)}}function Qe(ne,be){if(1&ne&&(t.TgZ(0,"li",62)(1,"div",63)(2,"b",64),t._uU(3,"\u0648\u0636\u0639\u06cc\u062a \u062a\u0631\u0627\u06a9\u0646\u0634: "),t._UZ(4,"img",65),t.TgZ(5,"span",66),t._uU(6),t.qZA()(),t._UZ(7,"div",67),t.qZA()()),2&ne){const Te=t.oxw();t.xp6(6),t.Oqu(Te.unspecifiedTitle),t.xp6(1),t.Q6J("innerHTML",Te.unspecifiedMessage,t.oJD)}}function Ot(ne,be){if(1&ne){const Te=t.EpF();t.TgZ(0,"div",68)(1,"button",69),t.NdJ("click",function(){return t.CHM(Te),t.oxw().close()}),t._uU(2),t.qZA()()}if(2&ne){const Te=t.oxw();t.ekj("bg-green",Te.bgGreen&&(null==Te.data?null:Te.data.state)===Te.stateReceiptType.Success)("btn-group-fixed-mob-for-safari",Te.isSafari),t.xp6(2),t.Oqu(Te.buttonName?Te.buttonName:"\u0628\u0633\u062a\u0646")}}function At(ne,be){if(1&ne){const Te=t.EpF();t.TgZ(0,"div",70)(1,"button",71),t.NdJ("click",function(){return t.CHM(Te),t.oxw().additionButtonAction()}),t._uU(2),t.qZA(),t.TgZ(3,"button",71),t.NdJ("click",function(){return t.CHM(Te),t.oxw().close()}),t._uU(4),t.qZA()()}if(2&ne){const Te=t.oxw();t.ekj("bg-green",Te.bgGreen&&(null==Te.data?null:Te.data.state)===Te.stateReceiptType.Success)("btn-group-fixed-mob-for-safari",Te.isSafari),t.xp6(2),t.Oqu(Te.additionBtnText),t.xp6(2),t.Oqu(Te.buttonName?Te.buttonName:"\u0628\u0633\u062a\u0646")}}function Ze(ne,be){if(1&ne){const Te=t.EpF();t.TgZ(0,"div",70)(1,"button",71),t.NdJ("click",function(){return t.CHM(Te),t.oxw().transactionInquiryAction()}),t._uU(2,"\u0627\u0633\u062a\u0639\u0644\u0627\u0645 \u0648\u0636\u0639\u06cc\u062a \u062a\u0631\u0627\u06a9\u0646\u0634"),t.qZA(),t.TgZ(3,"button",71),t.NdJ("click",function(){return t.CHM(Te),t.oxw().close()}),t._uU(4),t.qZA()()}if(2&ne){const Te=t.oxw();t.ekj("bg-green",Te.bgGreen&&(null==Te.data?null:Te.data.state)===Te.stateReceiptType.Success)("btn-group-fixed-mob-for-safari",Te.isSafari),t.xp6(4),t.Oqu(Te.buttonName?Te.buttonName:"\u0628\u0633\u062a\u0646")}}let at=(()=>{class ne{constructor(Te,$e,ft,Ge,Ft,br){this.tagManager=Te,this.transactionReceiptDataPassingService=$e,this.redirectService=ft,this.resourceAppService=Ge,this.platform=Ft,this.smartTransferDataPassingService=br,this.isShowShareBtn=!0,this.insideChatPage=!1,this.isDetailed=!1,this.additionBtnText="\u0630\u062e\u06cc\u0631\u0647 \u06a9\u0627\u0631\u062a \u0645\u0642\u0635\u062f",this.closeReceipt=new t.vpe,this.additionButtonActionReceipt=new t.vpe,this.transactionInquiryActionReceipt=new t.vpe,this.isDesktop=0===(0,r.Jj)()?.navigator.maxTouchPoints,this.unSubscriber=new e.xQ,this.developmentMode=p.Sq,this.stateReceiptType=Lt,this.unspecifiedTitle="",this.unspecifiedMessage="",this.StateType=g.Yk,this.isSafari=!1,this.templatesSlider=[{imageUrl:"assets/images/template-share/white-tem.svg",id:"white-tem"}],Ft.SAFARI&&(this.isSafari=!0)}ngOnInit(){this.transactionReceiptDataPassingService.temId=this.templatesSlider[0].id,(0,r.Jj)().history.pushState(null,""),(0,l.R)(window,"popstate").pipe((0,h.R)(this.unSubscriber)).subscribe($e=>{(0,r.Jj)().history.pushState(null,"")});const Te=(0,r.Jj)().navigator;this.isIos=/iPad|iPhone|iPod/.test(Te.platform)}ngAfterViewInit(){const Te=new y.pm,$e=new y.sz,ft=new d.p7,Ge=new d.KK;let Ft="";if(this.data?.rows)for(const br of Object.keys(this.data.rows))if(null!=this.data.rows[br].value&&""!==String(this.data.rows[br].value)&&"undefined"!==String(this.data.rows[br].value)&&"0"!==String(this.data.rows[br].value).trim()){let rt=this.data.rows[br].value;(String(rt).indexOf("*-*")>-1||String(rt).indexOf("****")>-1||"\u0634\u0645\u0627\u0631\u0647 \u067e\u06cc\u06af\u06cc\u0631\u06cc"===this.data.rows[br].label||"\u0634\u0645\u0627\u0631\u0647 \u0627\u0631\u062c\u0627\u0639"===this.data.rows[br].label)&&(rt="\u202a"+String(rt)),"jalaliDateTime"===this.data.rows[br].type&&(rt=ft.transform(rt)),"jalaliDate"===this.data.rows[br].type&&(rt=Ge.transform(rt)),"amountWithRial"===this.data.rows[br].type&&(rt=$e.transform(Te.transform(10*rt))+"\u0631\u06cc\u0627\u0644"),Ft=Ft+"\r\n\u202b"+this.data.rows[br].label+": "+rt}this.data?.success||this.data?.state===Lt.Success||this.data?.state===Lt.InProgress?((this.data?.success||this.data?.state===Lt.Success)&&(this.templatesSlider.push({imageUrl:"assets/images/template-share/birthday-tem.svg",id:"birthday-tem"},{imageUrl:"assets/images/template-share/dark-tem.svg",id:"dark-tem"},{imageUrl:"assets/images/template-share/main-tem.svg",id:"main-tem"},{imageUrl:"assets/images/template-share/text-tem.svg",id:"text-tem"}),this.isDetailed||(0,p.Sq)("DataLayerGoogleAnalytics")&&this.tagManager.pushEvent("transaction_ok",{})),this.data?.state===Lt.InProgress?(this.contentShare=this.statusName?"\u0648\u0636\u0639\u06cc\u062a \u062a\u0631\u0627\u06a9\u0646\u0634: "+this.statusName+Ft:"\u0648\u0636\u0639\u06cc\u062a \u062a\u0631\u0627\u06a9\u0646\u0634: \u0646\u0627\u0645\u0634\u062e\u0635"+Ft,this.contentShare="\u0631\u0633\u06cc\u062f "+this.smartTransferDataPassingService?.transferTypeTitle+"\r\n"+this.contentShare,this.resourceAppService.getValueFromResource().then(br=>br.Transfer).catch(()=>({UnspecifiedTitle:"\u0646\u0627\u0645\u0634\u062e\u0635",UnspecifiedMessage:"\u0628\u0631\u0627\u06cc \u0622\u06af\u0627\u0647\u06cc \u0627\u0632 \u0622\u062e\u0631\u06cc\u0646 \u0648\u0636\u0639\u06cc\u062a \u0627\u06cc\u0646 \u062a\u0631\u0627\u06a9\u0646\u0634\u060c \u0644\u0637\u0641\u0627 \u0644\u062d\u0638\u0627\u062a\u06cc \u062f\u06cc\u06af\u0631 \u0627\u0633\u062a\u0639\u0644\u0627\u0645 \u0648\u0636\u0639\u06cc\u062a \u06a9\u0646\u06cc\u062f \u0648 \u06cc\u0627 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u06af\u0631\u062f\u0634 \u062d\u0633\u0627\u0628\u060c \u0628\u0639\u062f\u0627 \u0627\u0632 \u0648\u0636\u0639\u06cc\u062a \u0627\u06cc\u0646 \u062a\u0631\u0627\u06a9\u0646\u0634 \u0645\u0637\u0644\u0639 \u0634\u0648\u06cc\u062f."})).then(br=>{this.unspecifiedTitle=br.UnspecifiedTitle,this.unspecifiedMessage=br.UnspecifiedMessage})):(this.contentShare=this.statusName?"\u0648\u0636\u0639\u06cc\u062a \u062a\u0631\u0627\u06a9\u0646\u0634: "+this.statusName+Ft:"\u0648\u0636\u0639\u06cc\u062a \u062a\u0631\u0627\u06a9\u0646\u0634: \u0645\u0648\u0641\u0642"+Ft,this.contentShare="\u0631\u0633\u06cc\u062f "+this.smartTransferDataPassingService?.transferTypeTitle+"\r\n"+this.contentShare)):((0,p.Sq)("DataLayerGoogleAnalytics")&&this.tagManager.pushEvent("transaction_not_ok",{}),this.contentShare=this.statusName?"\u0648\u0636\u0639\u06cc\u062a \u062a\u0631\u0627\u06a9\u0646\u0634: "+this.statusName+Ft:"\u0648\u0636\u0639\u06cc\u062a \u062a\u0631\u0627\u06a9\u0646\u0634: \u0646\u0627\u0645\u0648\u0641\u0642"+Ft,this.contentShare="\u0631\u0633\u06cc\u062f "+this.smartTransferDataPassingService?.transferTypeTitle+"\r\n"+this.contentShare)}additionButtonAction(){this.transactionReceiptDataPassingService.temId=this.templatesSlider[0].id,this.additionButtonActionReceipt.emit()}transactionInquiryAction(){this.transactionInquiryActionReceipt.emit()}close(){this.transactionReceiptDataPassingService.temId=this.templatesSlider[0].id,this.closeReceipt.emit(),this.redirectService.availability()&&this.redirectService.closedReceipt()}print(){try{document.execCommand("print",!1,null)}catch{(0,r.Jj)()?.print()}}ngOnDestroy(){this.unSubscriber.next(),this.unSubscriber.complete()}}return ne.\u0275fac=function(Te){return new(Te||ne)(t.Y36(f.c),t.Y36(C.d),t.Y36(N.V),t.Y36(a.K),t.Y36(O.t4),t.Y36(H.A))},ne.\u0275cmp=t.Xpm({type:ne,selectors:[["app-transaction-receipt"]],inputs:{successTitle:"successTitle",failTitle:"failTitle",inProgressTitle:"inProgressTitle",bgGreen:"bgGreen",data:"data",isNewCard:"isNewCard",transactionInquiry:"transactionInquiry",isShowShareBtn:"isShowShareBtn",insideChatPage:"insideChatPage",buttonName:"buttonName",tagManagerContent:"tagManagerContent",isDetailed:"isDetailed",statusName:"statusName",additionBtnText:"additionBtnText"},outputs:{closeReceipt:"closeReceipt",additionButtonActionReceipt:"additionButtonActionReceipt",transactionInquiryActionReceipt:"transactionInquiryActionReceipt"},decls:38,vars:33,consts:[["id","receipt",1,"receipt-wrapper"],[1,"container-per-page"],[1,"receipt-title",3,"ngClass"],["alt","\u0639\u0645\u0644\u06cc\u0627\u062a \u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a","width","80",3,"src",4,"ngIf"],["src","/assets/images/receipt/unsuccess.svg","alt","\u0639\u0645\u0644\u06cc\u0627\u062a \u0646\u0627\u0645\u0648\u0641\u0642","width","80",4,"ngIf"],["src","/assets/images/request/warning.svg","alt","\u0639\u0645\u0644\u06cc\u0627\u062a \u0647\u0634\u062f\u0627\u0631","width","80",4,"ngIf"],[4,"ngIf"],["class","receipt-title receipt-warning",4,"ngIf"],["class","receipt-actions",4,"ngIf"],[1,"background-printer"],["id","print-section",1,"receipt-container"],[1,"print-top-section"],["style","background-color: rgba(0,181,120, 0.1);","alt","\u0639\u0645\u0644\u06cc\u0627\u062a \u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a",3,"src",4,"ngIf"],["style","background-color: rgba(221,32,41, 0.1);","src","/assets/images/receipt/unsuccess.svg","alt","\u0639\u0645\u0644\u06cc\u0627\u062a \u0646\u0627\u0645\u0648\u0641\u0642",4,"ngIf"],["src","/assets/images/request/warning.svg","alt","\u0639\u0645\u0644\u06cc\u0627\u062a \u0647\u0634\u062f\u0627\u0631",4,"ngIf"],["style","color: #009966",4,"ngIf"],["style","color: #dd2029",4,"ngIf"],["style","color: #e5821a",4,"ngIf"],[1,"list-wrapper"],[1,"list"],[1,"list-item"],[1,"list-content","clearfix"],[1,"receipt-list-title"],["class","receipt-list-result",3,"receipt-list-result-success",4,"ngIf"],["class","receipt-list-result receipt-list-result-unsuccess",4,"ngIf"],["class","receipt-list-result receipt-list-result-warning",4,"ngIf"],[4,"ngFor","ngForOf"],["class","unspecified-status-wrapper",4,"ngIf"],[1,"print-bottom-section"],["src","assets/images/receipt/print/logo-pasargad.svg","alt","",1,"pasargad-logo"],["src","assets/images/receipt/print/wepod.svg","alt","",1,"wepod-logo"],["class","btn-group-fixed-mob receipt-group-btn clearfix",3,"bg-green","btn-group-fixed-mob-for-safari",4,"ngIf"],["class","btn-group-fixed-mob receipt-group-btn-cardToCard cardToCardReceipt",3,"bg-green","btn-group-fixed-mob-for-safari",4,"ngIf"],[3,"data","successTitle","failTitle","statusName","selectTem"],["alt","\u0639\u0645\u0644\u06cc\u0627\u062a \u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a","width","80",3,"src"],["src","/assets/images/receipt/unsuccess.svg","alt","\u0639\u0645\u0644\u06cc\u0627\u062a \u0646\u0627\u0645\u0648\u0641\u0642","width","80"],["src","/assets/images/request/warning.svg","alt","\u0639\u0645\u0644\u06cc\u0627\u062a \u0647\u0634\u062f\u0627\u0631","width","80"],[1,"receipt-title","receipt-warning"],[1,"receipt-actions"],[1,"printer",3,"click"],["src","/assets/images/shared/printer.svg","alt",""],[3,"contentShare","imageSlider","tagManagerContent",4,"ngIf"],[3,"contentShare","imageSlider","tagManagerContent"],["alt","\u0639\u0645\u0644\u06cc\u0627\u062a \u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a",2,"background-color","rgba(0,181,120, 0.1)",3,"src"],["src","/assets/images/receipt/unsuccess.svg","alt","\u0639\u0645\u0644\u06cc\u0627\u062a \u0646\u0627\u0645\u0648\u0641\u0642",2,"background-color","rgba(221,32,41, 0.1)"],["src","/assets/images/request/warning.svg","alt","\u0639\u0645\u0644\u06cc\u0627\u062a \u0647\u0634\u062f\u0627\u0631"],[2,"color","#009966"],[2,"color","#dd2029"],[2,"color","#e5821a"],[1,"receipt-list-result"],["alt","\u0645\u0648\u0641\u0642",3,"src"],[1,"receipt-list-result","receipt-list-result-unsuccess"],["src","/assets/images/receipt/close.svg","alt","\u0646\u0627\u0645\u0648\u0641\u0642"],[1,"receipt-list-result","receipt-list-result-warning"],["src","/assets/images/request/warning.svg","alt","\u0646\u0627\u0645\u0634\u062e\u0635"],["class","list-item",4,"ngIf"],["class","receipt-list-result-amount",4,"ngIf"],["style","display: flex; align-items: center; ",4,"ngIf"],[1,"receipt-list-result-amount"],[2,"display","flex","align-items","center"],["style","padding-right: 5px","alt","",3,"src",4,"ngIf"],["alt","",2,"padding-right","5px",3,"src"],[1,"unspecified-status-wrapper"],[1,"unspecified-status"],[1,"title"],["src","/assets/images/request/warning.svg","alt","\u0646\u0627\u0645\u0648\u0641\u0642"],[1,"status"],[3,"innerHTML"],[1,"btn-group-fixed-mob","receipt-group-btn","clearfix"],[1,"btn","width-fix","btn-line-success","receipt-print-btn",3,"click"],[1,"btn-group-fixed-mob","receipt-group-btn-cardToCard","cardToCardReceipt"],[1,"btn","btn-line-success","receipt-print-btn",3,"click"]],template:function(Te,$e){1&Te&&(t.TgZ(0,"section",0)(1,"div",1)(2,"header",2),t.YNc(3,F,1,1,"img",3),t.YNc(4,V,1,0,"img",4),t.YNc(5,D,1,0,"img",5),t.YNc(6,U,2,1,"p",6),t.YNc(7,q,2,1,"p",6),t.YNc(8,J,2,1,"p",7),t.qZA(),t.YNc(9,ie,6,1,"div",8),t.TgZ(10,"div",9)(11,"article",10)(12,"div",11)(13,"figure"),t.YNc(14,K,1,1,"img",12),t.YNc(15,re,1,0,"img",13),t.YNc(16,oe,1,0,"img",14),t.YNc(17,B,2,1,"p",15),t.YNc(18,s,2,1,"p",16),t.YNc(19,_,2,1,"p",17),t.qZA()(),t.TgZ(20,"section",18)(21,"ul",19)(22,"li",20)(23,"div",21)(24,"header",22),t._uU(25," \u0648\u0636\u0639\u06cc\u062a \u062a\u0631\u0627\u06a9\u0646\u0634 "),t.qZA(),t.YNc(26,w,3,4,"p",23),t.YNc(27,E,3,1,"p",24),t.YNc(28,x,3,1,"p",25),t.qZA()(),t.YNc(29,ye,2,1,"ng-container",26),t.YNc(30,Qe,8,2,"li",27),t.qZA()(),t.TgZ(31,"div",28),t._UZ(32,"img",29),t.qZA(),t._UZ(33,"img",30),t.qZA()(),t.YNc(34,Ot,3,5,"div",31),t.YNc(35,At,5,6,"div",32),t.YNc(36,Ze,5,5,"div",32),t.qZA()(),t._UZ(37,"app-transaction-receipt-share-tem",33)),2&Te&&(t.ekj("green-bg-receipt",$e.bgGreen&&(null==$e.data?null:$e.data.state)===$e.stateReceiptType.Success)("bg-body",!$e.bgGreen)("inside-chat-page",$e.insideChatPage),t.xp6(2),t.Q6J("ngClass",(null==$e.data?null:$e.data.state)===$e.stateReceiptType.Success?"receipt-successful":"receipt-unsuccessful"),t.xp6(1),t.Q6J("ngIf",(null==$e.data?null:$e.data.state)===$e.stateReceiptType.Success),t.xp6(1),t.Q6J("ngIf",(null==$e.data?null:$e.data.state)===$e.stateReceiptType.Failed),t.xp6(1),t.Q6J("ngIf",(null==$e.data?null:$e.data.state)===$e.stateReceiptType.InProgress),t.xp6(1),t.Q6J("ngIf",(null==$e.data?null:$e.data.state)===$e.stateReceiptType.Success),t.xp6(1),t.Q6J("ngIf",(null==$e.data?null:$e.data.state)===$e.stateReceiptType.Failed),t.xp6(1),t.Q6J("ngIf",(null==$e.data?null:$e.data.state)===$e.stateReceiptType.InProgress),t.xp6(1),t.Q6J("ngIf",$e.developmentMode("ReceiptAction")),t.xp6(5),t.Q6J("ngIf",(null==$e.data?null:$e.data.state)===$e.stateReceiptType.Success),t.xp6(1),t.Q6J("ngIf",(null==$e.data?null:$e.data.state)===$e.stateReceiptType.Failed),t.xp6(1),t.Q6J("ngIf",(null==$e.data?null:$e.data.state)===$e.stateReceiptType.InProgress),t.xp6(1),t.Q6J("ngIf",(null==$e.data?null:$e.data.state)===$e.stateReceiptType.Success),t.xp6(1),t.Q6J("ngIf",(null==$e.data?null:$e.data.state)===$e.stateReceiptType.Failed),t.xp6(1),t.Q6J("ngIf",(null==$e.data?null:$e.data.state)===$e.stateReceiptType.InProgress),t.xp6(7),t.Q6J("ngIf",(null==$e.data?null:$e.data.state)===$e.stateReceiptType.Success),t.xp6(1),t.Q6J("ngIf",(null==$e.data?null:$e.data.state)===$e.stateReceiptType.Failed),t.xp6(1),t.Q6J("ngIf",(null==$e.data?null:$e.data.state)===$e.stateReceiptType.InProgress),t.xp6(1),t.Q6J("ngForOf",null==$e.data?null:$e.data.rows),t.xp6(1),t.Q6J("ngIf",(null==$e.data?null:$e.data.state)===$e.stateReceiptType.InProgress&&$e.unspecifiedTitle&&$e.unspecifiedMessage),t.xp6(4),t.Q6J("ngIf",!$e.isNewCard&&!$e.transactionInquiry),t.xp6(1),t.Q6J("ngIf",$e.isNewCard),t.xp6(1),t.Q6J("ngIf",$e.transactionInquiry),t.xp6(1),t.Q6J("data",$e.data)("successTitle",$e.successTitle)("failTitle",$e.failTitle)("statusName",$e.statusName)("selectTem",$e.transactionReceiptDataPassingService.temId))},encapsulation:2}),ne})();var Lt=(()=>{return(ne=Lt||(Lt={}))[ne.InProgress=0]="InProgress",ne[ne.Success=1]="Success",ne[ne.Failed=2]="Failed",Lt;var ne})()},10861:(M,b,n)=>{"use strict";n.d(b,{Y:()=>a});var t=n(94650),e=n(16351),l=n(73038),h=n(97075),r=n(97693),d=n(21006),y=n(80529),g=n(83353),p=n(36895);function f(O,H){if(1&O&&(t.TgZ(0,"div",8)(1,"div",9)(2,"span"),t._uU(3),t.qZA()()()),2&O){const F=t.oxw();t.xp6(3),t.Oqu(F.voiceRecorderService.recordedTime)}}function C(O,H){if(1&O){const F=t.EpF();t.TgZ(0,"img",10),t.NdJ("click",function(){return t.CHM(F),t.oxw().handleDeleteVoiceRecord()}),t.qZA()}}const N=["*"];let a=(()=>{class O{constructor(F,V,D,U,q){this.voiceRecorderService=F,this.toastrService=V,this.ticketDataPassingService=D,this.http=U,this.platform=q,this.showPlayIcon=!0,this.current=0,this.voiceId="0",this.showTrashIcon=!0,this.showRecordTime=!0,this.showConfirmDeleteAddNoteRecord=!0,this.isDeletedVoiceRecord=new t.vpe,this.finishVoicePlaying=new t.vpe,this.changeCurrentTimeVoicePlaying=new t.vpe,this.setDurationOutput=new t.vpe}handleDeleteVoiceRecord(){(0,l.Mr)(),document.getElementById("myAudio"+this.voiceId).pause(),this.showPlayIcon=!0,setTimeout(()=>{l.j.height=448,l.j.desktopStyle=!0,l.j.bgWhite=!0,l.j.hideDesktopHeaderClose=!0,l.j.disableBackdropClosing=!0,l.j.fullScreen.next(!1),l.j.basicModalData.next({img:"/assets/images/receipt/unsuccess.svg",title:"\u062a\u0648\u062c\u0647",desc:["\u0622\u06cc\u0627 \u0645\u0627\u06cc\u0644\u06cc\u062f \u067e\u06cc\u0627\u0645 \u0635\u0648\u062a\u06cc \u0636\u0628\u0637 \u0634\u062f\u0647 \u0631\u0627 \u062d\u0630\u0641 \u06a9\u0646\u06cc\u062f\u061f"],buttons:{first:{title:"\u062a\u0627\u06cc\u06cc\u062f",action:()=>{this.isDeletedVoiceRecord.emit(!0);const V=document.getElementById("progress"+this.voiceId);V?.style&&setTimeout(()=>{V.style.width="0%"},500),this.voiceRecorderService.isUploadTicketVoice=!1,this.toastrService.error("\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062d\u0630\u0641 \u0634\u062f."),this.voiceRecorderService.isPlaying=!1,(0,l.Mr)(),this.showConfirmDeleteAddNoteRecord&&setTimeout(()=>{l.j.height=290,l.j.desktopStyle=!1,l.j.bgWhite=!1,l.j.hideDesktopHeaderClose=!1,l.j.modalTitleBgGray=!0,l.j.disableBackdropClosing=!0,l.j.data.next(null),this.voiceRecorderService.showBtnInRecordModalVoice=!1,(0,l.h7)("ticketVoiceRecorder")},500)},green:!0},second:{title:"\u0627\u0646\u0635\u0631\u0627\u0641",action:()=>{(0,l.Mr)(),this.voiceRecorderService.isPlaying=!1,this.showConfirmDeleteAddNoteRecord&&setTimeout(()=>{l.j.height=250,l.j.desktopStyle=!1,l.j.bgWhite=!1,l.j.hideDesktopHeaderClose=!1,l.j.modalTitleBgGray=!0,l.j.disableBackdropClosing=!0,l.j.data.next({recordedTime:this.voiceRecorderService.recordedTime}),(0,l.h7)("ticketVoiceRecorder")},500)},gray:!0}}}),(0,l.h7)("basicModal")},500)}playVoiceRecord(F,V,D,U){if(V?.length){const G=document.getElementById("myAudio"+V);this.changeCurrentTimeVoicePlaying.emit({voiceHash:V,voiceCurrent:G.currentTime}),clearInterval(this.interval),G.pause()}const q=document.getElementById("myAudio"+F),J=document.getElementById("progress"+F);this.getVoiceHashUrl?this.platform.SAFARI&&/iPad|iPhone|iPod/.test(navigator.platform)?this.getFileBlob(this.ticketDataPassingService.getImageFromPodSpaceByHashId(F,3,!1)).subscribe(G=>{const ie=new Blob([G],{type:"application/octet-stream"}),K=G.slice(0,ie.size,"audio/aac"),re=new Blob([K],{type:"audio/aac"});this.voiceRecorderService.convertBlobToBase64(re).then(oe=>{q.src=oe.toString(),"Infinity"!==U.toString()?this.startAudioPlay(q,D,J,U??this.duration,F):(0,e.Z)(this.ticketDataPassingService.getImageFromPodSpaceByHashId(F,3,!1)??this.voiceRecorderService.voiceBlobUrl).then(B=>{this.startAudioPlay(q,D,J,B,F)})})}):"Infinity"!==U.toString()?this.startAudioPlay(q,D,J,U??this.duration,F):(0,e.Z)(this.ticketDataPassingService.getImageFromPodSpaceByHashId(F,3,!1)??this.voiceRecorderService.voiceBlobUrl).then(G=>{this.startAudioPlay(q,D,J,G,F)}):(q.src=this.voiceRecorderService.base64DataVoice,this.startAudioPlay(q,D,J,this.voiceRecorderService.base64VoiceDuration,F))}startAudioPlay(F,V,D,U,q){F.currentTime=V??this.current,F.play(),this.startTimer(),this.lastCurrent=V,this.interval=setInterval(()=>{D.style.width=F.currentTime/U<=1?F.currentTime/U*100+"%":"100%",F.currentTime===this.lastCurrent&&(D.style.width="100%"),this.lastCurrent=F.currentTime,"100%"===D.style.width&&(clearInterval(this.interval),this.current=0,this.finishVoicePlaying.emit({voiceHash:q}),setTimeout(()=>{D.style.width="0%"},300))},500)}startTimer(){const F=document.getElementById("myAudio"+this.voiceId);F.addEventListener("timeupdate",()=>{const V=parseInt((F.currentTime%60).toString(),10),D=parseInt((F.currentTime/60%60).toString(),10);this.voiceRecorderService.recordedTime=`${D<10?`0${D}`:D}:${V<10?`0${V}`:V}`},!1)}pauseVoiceRecord(F){this.showPlayIcon=!this.showPlayIcon;const V=document.getElementById("myAudio"+F);this.current=V.currentTime,V.pause(),this.changeCurrentTimeVoicePlaying.emit({voiceHash:F,voiceCurrent:this.current}),clearInterval(this.interval)}handleSkipVoice(F,V){(0,e.Z)(this.getVoiceHashUrl?this.getVoiceHashUrl:this.voiceRecorderService.voiceBlobUrl).then(D=>{const U=document.querySelector(".timeline"),q=document.getElementById("myAudio"+this.voiceId),J=window.getComputedStyle(U).width,G=F.target.getBoundingClientRect();this.current=(F.clientX-G.right)/parseInt(J,10)*D*-1,this.changeCurrentTimeVoicePlaying.emit({voiceHash:V,voiceCurrent:this.current}),q.currentTime=this.current,document.getElementById("progress"+this.voiceId).style.width=q.currentTime/D*100+"%"})}getFileBlob(F){return this.http.get(F,{responseType:"blob"})}setDuration(F){this.setDurationOutput.emit({voiceHash:F.target.id.replaceAll("myAudio",""),voiceCurrent:F.target.duration}),this.duration=F.target.duration}}return O.\u0275fac=function(F){return new(F||O)(t.Y36(h.R),t.Y36(r.X),t.Y36(d.t),t.Y36(y.eN),t.Y36(g.t4))},O.\u0275cmp=t.Xpm({type:O,selectors:[["app-voice-recorder"]],inputs:{getVoiceHashUrl:"getVoiceHashUrl",voiceId:"voiceId",showTrashIcon:"showTrashIcon",showRecordTime:"showRecordTime",showConfirmDeleteAddNoteRecord:"showConfirmDeleteAddNoteRecord"},outputs:{isDeletedVoiceRecord:"isDeletedVoiceRecord",finishVoicePlaying:"finishVoicePlaying",changeCurrentTimeVoicePlaying:"changeCurrentTimeVoicePlaying",setDurationOutput:"setDurationOutput"},ngContentSelectors:N,decls:10,vars:5,consts:[[1,"voice-recorder-container"],["controls","",3,"id","loadedmetadata"],["type","audio/aac",3,"src"],[1,"flex"],[1,"timeline",3,"click"],[1,"progress",3,"id"],["class","counter-voice-wrapper",4,"ngIf"],["src","assets/images/support/trash.svg","alt","trash","class","delete-voice",3,"click",4,"ngIf"],[1,"counter-voice-wrapper"],[1,"counter-voice"],["src","assets/images/support/trash.svg","alt","trash",1,"delete-voice",3,"click"]],template:function(F,V){1&F&&(t.F$t(),t.TgZ(0,"div",0),t.ynx(1),t.TgZ(2,"audio",1),t.NdJ("loadedmetadata",function(U){return V.setDuration(U)}),t._UZ(3,"source",2),t.qZA(),t.TgZ(4,"div",3),t.Hsn(5),t.qZA(),t.TgZ(6,"div",4),t.NdJ("click",function(U){return V.handleSkipVoice(U,V.voiceId)}),t._UZ(7,"div",5),t.qZA(),t.BQk(),t.YNc(8,f,4,1,"div",6),t.YNc(9,C,1,0,"img",7),t.qZA()),2&F&&(t.xp6(2),t.MGl("id","myAudio",V.voiceId,""),t.xp6(1),t.Q6J("src",V.getVoiceHashUrl?V.ticketDataPassingService.getImageFromPodSpaceByHashId(V.voiceId,3,!1):V.voiceRecorderService.base64DataVoice,t.LSH),t.xp6(4),t.MGl("id","progress",V.voiceId,""),t.xp6(1),t.Q6J("ngIf",V.showRecordTime),t.xp6(1),t.Q6J("ngIf",V.showTrashIcon))},directives:[p.O5],encapsulation:2}),O})()},97075:(M,b,n)=>{"use strict";n.d(b,{R:()=>r});var t=n(49840),e=n.n(t),l=n(8929),h=n(94650);let r=(()=>{class d{constructor(){this.recordingTimeSubject=new l.xQ,this.isRecording=!1,this.showStopBtn=!1,this.recordedTime="00:00",this.isUploadTicketVoice=!1,this.closeAddNoteVoiceModal=!1,this.isPlaying=!1,this.recordedChunks=[],this.showBtnInRecordModalVoice=!1}getRecordedTime(){return this.recordingTimeSubject.asObservable()}startRecording(g){this.recordedChunks=[],this.mediaRecorder=new MediaRecorder(g),this.mediaRecorder.ondataavailable=p=>{p.data.size>0&&this.recordedChunks.push(p.data)},this.mediaRecorder.onstop=()=>{const p=new Blob(this.recordedChunks,{type:"audio/aac"});this.voiceBlobFile=p,this.voiceBlobUrl=URL.createObjectURL(p);const f=e()();this.convertBlobToBase64(this.voiceBlobFile).then(C=>{this.base64DataVoice=C,this.base64VoiceDuration=f.diff(this.startTime)/1e3})},this.startTime=e()(),this.interval=setInterval(()=>{const p=e()(),f=e().duration(p.diff(this.startTime)),C=this.toString(f.minutes())+":"+this.toString(f.seconds()),N=60*f.minutes()+f.seconds();(this.maxRecordTimeForCreate&&N>=this.maxRecordTimeForCreate||this.maxRecordTimeForAddNote&&N>=this.maxRecordTimeForAddNote)&&this.stopRecording(),this.recordingTimeSubject.next(C)},1e3),this.mediaRecorder.start()}convertBlobToBase64(g){return new Promise((p,f)=>{const C=new FileReader;C.onerror=f,C.onload=()=>{p(C.result)},C.readAsDataURL(g)})}toString(g){let p=g;return g||(p="00"),g<10&&(p="0"+g),p}stopRecording(){this.mediaRecorder&&this.mediaRecorder.stop(),clearInterval(this.interval)}reset(){clearInterval(this.interval),this.startTime=null,this.recordingTimeSubject=new l.xQ,this.isRecording=!1,this.maxRecordTimeForCreate=null,this.maxRecordTimeForAddNote=null,this.showStopBtn=!1,this.recordedTime="00:00",this.isUploadTicketVoice=!1,this.closeAddNoteVoiceModal=!1,this.isPlaying=!1,this.mediaRecorder=null,this.recordedChunks=[],this.voiceBlobUrl=null,this.voiceBlobFile=null}}return d.\u0275fac=function(g){return new(g||d)},d.\u0275prov=h.Yz7({token:d,factory:d.\u0275fac,providedIn:"root"}),d})()},14140:(M,b,n)=>{"use strict";n.d(b,{y:()=>h});var t=n(66463),e=n(94650),l=n(36376);let h=(()=>{class r{constructor(y){this.configurationService=y,this.serviceJson=[]}getBanksInfo(){return new Promise((y,g)=>{if(0===this.serviceJson.length){const p=new t.uQ;this.configurationService.getBanksInfo(p).subscribe(f=>{y(this.serviceJson=f)},()=>{g()})}else y(this.serviceJson)})}dataProcess(y){for(const g of this.serviceJson)if(g.code===y||g.bin===y)return g}getCardBankInfo(y){switch(y.substr(0,6)){case"627412":return{english:"eghtesadNovin",farsi:"\u0627\u0642\u062a\u0635\u0627\u062f \u0646\u0648\u06cc\u0646"};case"505785":return{english:"iranZamin",farsi:"\u0627\u06cc\u0631\u0627\u0646 \u0632\u0645\u06cc\u0646"};case"636795":case"599999":return{english:"markazi",farsi:"\u0645\u0631\u06a9\u0632\u06cc"};case"622106":return{english:"parsian",farsi:"\u067e\u0627\u0631\u0633\u06cc\u0627\u0646"};case"502229":case"639347":return{english:"pasargad",farsi:"\u067e\u0627\u0633\u0627\u0631\u06af\u0627\u062f"};case"627760":return{english:"postBank",farsi:"\u067e\u0633\u062a \u0628\u0627\u0646\u06a9"};case"636214":case"186214":return{english:"ayande",farsi:"\u0622\u06cc\u0646\u062f\u0647"};case"627353":case"585983":return{english:"tejarat",farsi:"\u062a\u062c\u0627\u0631\u062a"};case"502908":return{english:"taavon",farsi:"\u062a\u0648\u0633\u0639\u0647 \u062a\u0639\u0627\u0648\u0646"};case"627648":return{english:"toseSaderat",farsi:"\u062a\u0648\u0633\u0639\u0647 \u0635\u0627\u062f\u0631\u0627\u062a"};case"589210":case"604932":case"505801":case"639370":case"636949":case"639599":case"627381":return{english:"sepah",farsi:"\u0633\u067e\u0647"};case"585947":case"505809":return{english:"khavaremianeh",farsi:"\u062e\u0627\u0648\u0631\u0645\u06cc\u0627\u0646\u0647"};case"502938":return{english:"dey",farsi:"\u062f\u06cc"};case"589463":return{english:"refah",farsi:"\u0631\u0641\u0627\u0647"};case"504172":return{english:"resalat",farsi:"\u0631\u0633\u0627\u0644\u062a"};case"621986":return{english:"saman",farsi:"\u0633\u0627\u0645\u0627\u0646"};case"639607":return{english:"sarmaye",farsi:"\u0633\u0631\u0645\u0627\u06cc\u0647"};case"639346":return{english:"sina",farsi:"\u0633\u06cc\u0646\u0627"};case"502806":case"504706":return{english:"shahr",farsi:"\u0634\u0647\u0631"};case"603769":return{english:"saderat",farsi:"\u0635\u0627\u062f\u0631\u0627\u062a"};case"627961":return{english:"sanat",farsi:"\u0635\u0646\u0639\u062a \u0648 \u0645\u0639\u062f\u0646"};case"606373":return{english:"mehrIran",farsi:"\u0645\u0647\u0631 \u0627\u06cc\u0631\u0627\u0646"};case"627488":return{english:"karAfarin",farsi:"\u06a9\u0627\u0631\u0622\u0641\u0631\u06cc\u0646"};case"603770":case"639217":return{english:"keshavarzi",farsi:"\u06a9\u0634\u0627\u0648\u0631\u0632\u06cc"};case"505416":return{english:"gardeshgari",farsi:"\u06af\u0631\u062f\u0634\u06af\u0631\u06cc"};case"628023":return{english:"maskan",farsi:"\u0645\u0633\u06a9\u0646"};case"610433":return{english:"melat",farsi:"\u0645\u0644\u062a"};case"603799":return{english:"meli",farsi:"\u0645\u0644\u06cc"};case"628157":return{english:"moaseseTosee",farsi:"\u0645\u0648\u0633\u0633\u0647 \u0627\u0639\u062a\u0628\u0627\u0631\u06cc \u062a\u0648\u0633\u0639\u0647"};case"606256":return{english:"moaseseMellal",farsi:"\u0645\u0648\u0633\u0633\u0647 \u0627\u0639\u062a\u0628\u0627\u0631\u06cc \u0645\u0644\u0644"};case"507677":return{english:"nor",farsi:"\u0645\u0648\u0633\u0633\u0647 \u0627\u0639\u062a\u0628\u0627\u0631\u06cc \u0646\u0648\u0631"};case"581874":return{english:"iranVenezuela",farsi:"\u0627\u06cc\u0631\u0627\u0646 \u0648 \u0648\u0646\u0632\u0648\u064a\u0644\u0627"};default:return{english:"--",farsi:"--"}}}getShebaBankInfo(y){switch(y.substr(3,2)){case"55":return{english:"eghtesadNovin",farsi:"\u0627\u0642\u062a\u0635\u0627\u062f \u0646\u0648\u06cc\u0646"};case"63":return{english:"ansar",farsi:"\u0627\u0646\u0635\u0627\u0631"};case"69":return{english:"iranZamin",farsi:"\u0627\u06cc\u0631\u0627\u0646 \u0632\u0645\u06cc\u0646"};case"10":return{english:"markazi",farsi:"\u0645\u0631\u06a9\u0632\u06cc \u062c\u0645\u0647\u0648\u0631\u06cc \u0627\u0633\u0644\u0627\u0645\u06cc"};case"54":return{english:"parsian",farsi:"\u067e\u0627\u0631\u0633\u06cc\u0627\u0646"};case"57":return{english:"pasargad",farsi:"\u067e\u0627\u0633\u0627\u0631\u06af\u0627\u062f"};case"21":return{english:"postBank",farsi:"\u067e\u0633\u062a \u0628\u0627\u0646\u06a9"};case"62":return{english:"ayande",farsi:"\u0622\u06cc\u0646\u062f\u0647"};case"18":return{english:"tejarat",farsi:"\u062a\u062c\u0627\u0631\u062a"};case"22":return{english:"taavon",farsi:"\u062a\u0648\u0633\u0639\u0647 \u062a\u0639\u0627\u0648\u0646"};case"20":return{english:"toseSaderat",farsi:"\u062a\u0648\u0633\u0639\u0647 \u0635\u0627\u062f\u0631\u0627\u062a"};case"65":case"15":case"52":case"73":case"79":return{english:"sepah",farsi:"\u0633\u067e\u0647"};case"78":return{english:"khavaremianeh",farsi:"\u062e\u0627\u0648\u0631\u0645\u06cc\u0627\u0646\u0647"};case"66":return{english:"dey",farsi:"\u062f\u06cc"};case"13":return{english:"refah",farsi:"\u0631\u0641\u0627\u0647"};case"70":return{english:"resalat",farsi:"\u0631\u0633\u0627\u0644\u062a"};case"56":return{english:"saman",farsi:"\u0633\u0627\u0645\u0627\u0646"};case"58":return{english:"sarmaye",farsi:"\u0633\u0631\u0645\u0627\u06cc\u0647"};case"59":return{english:"sina",farsi:"\u0633\u06cc\u0646\u0627"};case"61":return{english:"shahr",farsi:"\u0634\u0647\u0631"};case"19":return{english:"saderat",farsi:"\u0635\u0627\u062f\u0631\u0627\u062a"};case"11":return{english:"sanat",farsi:"\u0635\u0646\u0639\u062a \u0648 \u0645\u0639\u062f\u0646"};case"60":return{english:"mehrIran",farsi:"\u0645\u0647\u0631 \u0627\u06cc\u0631\u0627\u0646"};case"53":return{english:"karAfarin",farsi:"\u06a9\u0627\u0631\u0622\u0641\u0631\u06cc\u0646"};case"16":return{english:"keshavarzi",farsi:"\u06a9\u0634\u0627\u0648\u0631\u0632\u06cc"};case"64":return{english:"gardeshgari",farsi:"\u06af\u0631\u062f\u0634\u06af\u0631\u06cc"};case"14":return{english:"maskan",farsi:"\u0645\u0633\u06a9\u0646"};case"12":return{english:"melat",farsi:"\u0645\u0644\u062a"};case"17":return{english:"meli",farsi:"\u0645\u0644\u06cc"};case"51":return{english:"moaseseTosee",farsi:"\u0645\u0648\u0633\u0633\u0647 \u0627\u0639\u062a\u0628\u0627\u0631\u06cc \u062a\u0648\u0633\u0639\u0647"};case"75":return{english:"moaseseMellal",farsi:"\u0645\u0648\u0633\u0633\u0647 \u0627\u0639\u062a\u0628\u0627\u0631\u06cc \u0645\u0644\u0644"};case"80":return{english:"nor",farsi:"\u0645\u0648\u0633\u0633\u0647 \u0627\u0639\u062a\u0628\u0627\u0631\u06cc \u0646\u0648\u0631"};case"95":return{english:"iranVenezuela",farsi:"\u0627\u06cc\u0631\u0627\u0646 \u0648 \u0648\u0646\u0632\u0648\u064a\u0644\u0627"};default:return{english:"default",farsi:"\u0634\u0628\u0627"}}}}return r.\u0275fac=function(y){return new(y||r)(e.LFG(l.e))},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})()},90970:(M,b,n)=>{"use strict";n.d(b,{d:()=>h});var t=n(94650),e=n(70634),l=n(57671);let h=(()=>{class r{constructor(y){this.contactService=y,this.contactsList={All:{},Pod:{},NonePod:{}},this.gotAllContacts=new t.vpe,this.resolve=null,this.gotAllContacts.subscribe(g=>{this.resolve(this.contactsList[g[0]][g[1]])})}getValueFromResource(y,g=3,p,f){return new Promise(C=>{switch(y.toLowerCase()){case"pod":y="Pod";break;case"nonpod":case"nonepod":y="NonePod";break;case"all":y="All"}this.resolve=C,this.contactsList[y][g]?.length?C(this.contactsList[y][g]):(this.contactsList[y][g]=[],this.getContacts(y,g,p,f))})}getContacts(y,g,p,f){const C=new e.xP;g&&(C.typeCode=g),C.offset=p||0,C.size=f||50,this.contactService[`get${"All"===y?"":y}Contacts`](C).subscribe(N=>{this.contactsList[y][g].append(N),typeof N<"u"&&N.length===C.size?this.getContacts(y,g,C.offset+C.size,C.size):this.gotAllContacts.emit([y,g])},()=>{this.getContacts(y,g,C.offset,C.size)})}addContact(y,g,p=3){switch(g.toLowerCase()){case"pod":g="Pod";break;case"nonpod":case"nonepod":g="NonePod";break;case"all":g="All"}this.contactsList[g][p].append(y)}}return r.\u0275fac=function(y){return new(y||r)(t.LFG(l.y))},r.\u0275prov=t.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})()},67593:(M,b,n)=>{"use strict";n.d(b,{q:()=>h});var t=n(7206),l=n(94650);let h=(()=>{class r{constructor(){}encryptData(y,g){return t.AES.encrypt(t.enc.Utf8.parse(y),t.enc.Utf8.parse(g),{keySize:128,iv:t.enc.Utf8.parse(g),mode:t.mode.CBC}).toString()}decryptData(y,g){const p=t.AES.decrypt({ciphertext:t.enc.Base64.parse(y),salt:""},t.enc.Base64.parse(btoa(g)),{keySize:128,iv:t.enc.Base64.parse(btoa(g)),mode:t.mode.CBC,padding:t.pad.Pkcs7});return t.enc.Utf8.stringify(p).toString()}}return r.\u0275fac=function(y){return new(y||r)},r.\u0275prov=l.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})()},17423:(M,b,n)=>{"use strict";n.d(b,{v:()=>r});var t=n(94650),e=n(67657),l=n(79473),h=n(67593);let r=(()=>{class d{constructor(g,p,f){this.digitalCardService=g,this.wepodMainService=p,this.encryptDecryptService=f,this.serviceCallError=!1}getDigitalCardData(g=!1){return new Promise((p,f)=>{!this.digitalPodCard||g||g?this.digitalCardService.getDigitalCard().subscribe(C=>{this.serviceCallError=!1,p(this.digitalPodCard=C)},()=>{f(),this.serviceCallError=!0}):p(this.digitalPodCard)})}decryptCVV2(){const g=this.wepodMainService.getCookie("currentUser.token.keyId");return JSON.parse(this.encryptDecryptService.decryptData(this.digitalPodCard.cvv2,g.substring(0,16)))}}return d.\u0275fac=function(g){return new(g||d)(t.LFG(e.w),t.LFG(l.g),t.LFG(h.q))},d.\u0275prov=t.Yz7({token:d,factory:d.\u0275fac,providedIn:"root"}),d})()},94652:(M,b,n)=>{"use strict";n.d(b,{o:()=>d});var t=n(94650),e=n(47514),l=n(79614),h=n(75176),r=n(11213);let d=(()=>{class y{constructor(p,f,C,N){this.profileService=p,this.landingService=f,this.physicalCardDataPassingService=C,this.routingAppService=N,this.serviceJson={},this.serviceDigitalCardJson={}}getValue(p){return new Promise((f,C)=>{0===Object.keys(this.serviceJson).length||p?this.getProfileInProgress?setTimeout(()=>{!this.getProfileInProgress&&this.serviceJson?f(this.serviceJson):(this.getProfileInProgress=!1,C())},5e3):(this.getProfileInProgress=!0,f(this.getProfile())):f(this.serviceJson)})}getDigitalValue(p){return new Promise((f,C)=>{0===Object.keys(this.serviceDigitalCardJson).length||p?this.getProfileInProgress?setTimeout(()=>{!this.getProfileInProgress&&this.serviceDigitalCardJson?f(this.serviceDigitalCardJson):(this.getProfileInProgress=!1,C())},5e3):(this.getProfileInProgress=!0,f(this.getProfile(!0))):f(this.serviceDigitalCardJson)})}getProfile(p){return new Promise(f=>{this.profileService.getProfile().subscribe(C=>{this.getProfileInProgress=!1,C?.digitalCardProfile?.allowCallingAutoCardRequestInitInfoService&&this.landingService.getUserInitInfo().subscribe(N=>{this.physicalCardDataPassingService.comingFromMainComponent=!0,this.physicalCardDataPassingService.messageRequestPhysicalCard=N.message,N.address?.postalcode?(this.physicalCardDataPassingService.zipcode=N.address?.postalcode,this.physicalCardDataPassingService.addressId=N.address?.id,this.physicalCardDataPassingService.dataAddressFromMainComponent.state=N.address?.state,this.physicalCardDataPassingService.dataAddressFromMainComponent.city=N.address?.city,this.physicalCardDataPassingService.dataAddressFromMainComponent.stateId=N.address?.stateId,this.physicalCardDataPassingService.dataAddressFromMainComponent.cityId=N.address?.cityId,this.physicalCardDataPassingService.dataAddressFromMainComponent.address=N.address?.address,this.physicalCardDataPassingService.dataAddressFromMainComponent.plaque=N.address?.plaque,this.physicalCardDataPassingService.dataAddressFromMainComponent.unit=N.address?.unit,this.routingAppService.navigate(["services/physical-card/physical-card-address"])):(this.routingAppService.navigate(["services/physical-card/physical-card-address"]),this.physicalCardDataPassingService.isEmptyList=!0)}),this.serviceDigitalCardJson=C.digitalCardProfile,this.serviceJson=C.oauthProfile,f(p?this.serviceDigitalCardJson:this.serviceJson)})})}financialLevelCheck(p){try{return!(this.serviceJson&&!this.getProfileInProgress)||this.serviceJson.financialLevelSrv.level>=p}catch{return!1}}}return y.\u0275fac=function(p){return new(p||y)(t.LFG(e.H),t.LFG(l.U),t.LFG(h.z),t.LFG(r.s))},y.\u0275prov=t.Yz7({token:y,factory:y.\u0275fac,providedIn:"root"}),y})()},66226:(M,b,n)=>{"use strict";n.d(b,{K:()=>h});var t=n(94650),e=n(80529);let l=(()=>{class r{constructor(y){this.http=y}getCategoryResource(){return this.http.get("api/Resource/getCategoryResources")}}return r.\u0275fac=function(y){return new(y||r)(t.LFG(e.eN))},r.\u0275prov=t.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),h=(()=>{class r{constructor(y){this.resourceService=y,this.serviceJson={}}getValueFromResource(){return new Promise((y,g)=>{0===Object.keys(this.serviceJson).length?this.resourceService.getCategoryResource().subscribe(p=>{y(this.makeResourceJson(p))},()=>{g()}):y(this.serviceJson)})}makeResourceJson(y){this.serviceJson={};const g={};return y.forEach(p=>{const f={};p.resources.forEach(C=>{f[C.key]=C.value}),g[p.categoryType]=f}),this.serviceJson=g,this.serviceJson}}return r.\u0275fac=function(y){return new(y||r)(t.LFG(l))},r.\u0275prov=t.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})()},11213:(M,b,n)=>{"use strict";n.d(b,{s:()=>h});var t=n(40345),e=n(94650),l=n(13861);let h=(()=>{class r{constructor(y,g){this.router=y,this.route=g,this.routeStack=[]}navigate(y,g){return this.skipLocationChange=!1,new Promise((p,f)=>{try{const C=new URL(y[0]),N=C.searchParams;if(y=["/"===(y=C.href.split("?")[0].toString().replace(C.origin.toString(),"")).charAt(0)?y.substring(1):y],N)for(const a of N.keys())g?.queryParams||(g={queryParams:{}}),g.queryParams[a]=N.getAll(a)}catch{}finally{const C=this.matchRedirect(y,g);if(y=C?.route,g=C?.param,this.routeStack.length)if(this.routeStack.length)if(this.routeStack[this.routeStack.length-1].route.toString()===(0,t.Jj)().location.pathname.substring(1))Object.keys(g||{}).forEach(N=>{N.match("replaceUrl")&&g[N]&&this.routeStack.pop(),N.match("skipLocationChange")&&g[N]&&(this.skipLocationChange=!0)}),this.router.navigate(y,g||{}).then(N=>{this.skipLocationChange||this.routeStack.push({route:y,option:g||{}}),p(N)}).catch(N=>{f(N)});else{const N=JSON.parse(JSON.stringify(this.routeStack,this.getCircularReplacer()));let a=!1;N.reverse().forEach(O=>{if(!a){if(O.route.toString()===(0,t.Jj)().location.pathname.substring(1))return a=!0,Object.keys(g||{}).forEach(H=>{H.match("replaceUrl")&&g[H]&&this.routeStack.pop(),H.match("skipLocationChange")&&g[H]&&(this.skipLocationChange=!0)}),this.router.navigate(y,g||{}).then(H=>{this.skipLocationChange||this.routeStack.push({route:y,option:g||{}}),p(H)}).catch(H=>{f(H)}),!0;this.routeStack.pop(),this.routeStack.length||(Object.keys(g||{}).forEach(H=>{H.match("replaceUrl")&&g[H]&&this.routeStack.pop(),H.match("skipLocationChange")&&g[H]&&(this.skipLocationChange=!0)}),this.router.navigate(y,g||{}).then(H=>{this.skipLocationChange||this.routeStack.push({route:y,option:g||{}}),p(H)}).catch(H=>{f(H)}))}})}else{const N=JSON.parse(JSON.stringify(this.routeStack,this.getCircularReplacer()));let a=!1;N.reverse().forEach(O=>{if(!a){if(O.route.toString()===(0,t.Jj)().location.pathname.substring(1))return a=!0,Object.keys(g||{}).forEach(H=>{H.match("replaceUrl")&&g[H]&&this.routeStack.pop(),H.match("skipLocationChange")&&g[H]&&(this.skipLocationChange=!0)}),this.router.navigate(y,g||{}).then(H=>{this.skipLocationChange||this.routeStack.push({route:y,option:g||{}}),p(H)}).catch(H=>{f(H)}),!0;this.routeStack.pop(),this.routeStack.length||this.router.navigate(y,g||{}).then(H=>{H&&!this.skipLocationChange&&this.routeStack.push({route:y,option:g||{}}),p(H)}).catch(H=>{f(H)})}})}else{const N=[];N.push((0,t.Jj)().location.pathname.substring(1)),this.routeStack.push({route:N,option:{queryParams:this.route?.snapshot?.queryParams}}),Object.keys(g||{}).forEach(a=>{a.match("replaceUrl")&&g[a]&&this.routeStack.pop(),a.match("skipLocationChange")&&g[a]&&(this.skipLocationChange=!0)}),this.router.navigate(y,g||{}).then(a=>{a&&!this.skipLocationChange&&this.routeStack.push({route:y,option:g}),p(a)}).catch(a=>{f(a)})}}})}back(y=1){if(this.routeStack.length){if(this.routeStack.length&&this.routeStack[this.routeStack.length-1]?.route.toString()===(0,t.Jj)().location.pathname.substring(1))return this.popFunc(y),!0;{const g=JSON.parse(JSON.stringify(this.routeStack,this.getCircularReplacer()));let p=!1,f=!1;this.routeStack.forEach(C=>{C.route.toString()===(0,t.Jj)().location.pathname.substring(1)&&(f=!0)}),f?g.reverse().forEach(C=>{p||(C.route.toString()!==(0,t.Jj)().location.pathname.substring(1)?this.routeStack.pop():(this.popFunc(y),p=!0))}):this.router.navigate(this.routeStack[this.routeStack.length-1].route,this.routeStack[this.routeStack.length-1].option)}}else this.router.navigate(["landing"],{}).then(g=>{g&&this.routeStack.push({route:["landing"],options:{}})})}popFunc(y){if(y<this.routeStack.length){for(let g=0;g<y;g++)this.routeStack.pop();this.router.navigate(this.routeStack[this.routeStack.length-1].route,this.routeStack[this.routeStack.length-1].option)}else this.routeStack=[],this.router.navigate(["landing"],{}).then(g=>{g&&this.routeStack.push({route:["landing"],options:{}})})}matchRedirect(y=[],g){switch(y.toString()){case"digital-wallet":case"digital-card":return{route:["digital-card/state"],param:g};case"club":return{route:["club/list"],param:g};case"charge-wallet":return{route:["wallet/cash-in"],param:g};case"credit-debit":return{route:["credit-debit/list"],param:g};case"validation-inquiry":return{route:["services/validation-inquiry"],param:g};case"transfer/card-to-card":return{route:["services/card/card-to-card"],param:g};case"transfer":return{route:["smart-transfer"],param:g};case"services-dynamic":return{route:["services/services-dynamic"],param:g};case"gift-card":return{route:["services/gift-card"],param:g};case"gift-card/list":return{route:["services/gift-card/list"],param:g};case"cyber-gift-card":return{route:["services/cyber-gift-card/manage"],param:g};case"digital-gift":return{route:["services/digital-gift"],param:g};case"cheque/collection":return{route:["services/cheque/collection"],param:g};case"cheque/collection-inquiry":return{route:["services/cheque/collection-inquiry"],param:g};case"direct-debit":return{route:["digital-card/support-account"],param:g};case"saving-plan":return{route:["services/loan/saving-plan"],param:g};case"general-loan":return{route:["services/loan/contract-list"],param:g};case"expense-credit":const p=g.queryParams.contractId;return delete g.queryParams.contractId,{route:["services/loan/expense-credit/contract/"+p],param:g};case"income-received":const f=g.queryParams.contractId;return delete g.queryParams.contractId,{route:["services/loan/income-received/"+f],param:g};case"landing-dynamic":const C=g.queryParams.contractId;return delete g.queryParams.contractId,{route:["services/loan/landing-dynamic/"+C],param:g};case"credit-card":const N=g.queryParams.contractId;return delete g.queryParams.contractId,{route:["services/loan/digital-expense-credit/contract/"+N],param:g};case"micro-loan":const a=g.queryParams.contractId;return delete g.queryParams.contractId,{route:["services/loan/micro-facilities/contract/"+a],param:g};case"loan-contracts":const O=g.queryParams.serviceId;return delete g.queryParams.serviceId,{route:["services/loan-contracts/"+O],param:g};case"support/list":return(g={}).queryParams={tag:"SUPPORT",title:"\u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc"},{route:["services/services-dynamic"],param:g};case"support-ticket":return{route:["support/ticket-list"],param:g};case"support-chat":return{route:["support/chat"],param:g};case"support-call":return{route:["support/call"],param:g};case"club-campaign":return{route:["club"],param:g};case"in-app-rating":return{route:["services/rating"],param:g};case"support-ticket/create":return{route:["support/ticket-create"],param:g};case"club-campaign/discount-details":const H=g.queryParams.id;return delete g.queryParams.id,{route:["club/discount-detail/"+H],param:g};case"auto-withdraw/issue":return{route:["services/auto-withdraw/issue"],param:g};case"auto-withdraw/revoke":return{route:["services/auto-withdraw/revoke"],param:g};case"club-campaign/discounts":return{route:["club/discounts-list"],param:g};default:return{route:y,param:g}}}getCircularReplacer(){const y=new WeakSet;return(g,p)=>{if("object"==typeof p&&null!==p){if(y.has(p))return;y.add(p)}return p}}}return r.\u0275fac=function(y){return new(y||r)(e.LFG(l.F0),e.LFG(l.gz))},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})()},97368:(M,b,n)=>{"use strict";n.d(b,{Y:()=>h});var t=n(90592),l=n(94650);let h=(()=>{class r{constructor(){}encryptWithPublicKey(y,g){const p=t.pki.publicKeyFromPem(y);return window.btoa(p.encrypt(g.toString()))}}return r.\u0275fac=function(y){return new(y||r)},r.\u0275prov=l.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})()},73942:(M,b,n)=>{"use strict";n.d(b,{d:()=>d,p:()=>y});var t=n(94650),e=n(86090),l=n(11495),h=n(66699),r=n(36376);let d=(()=>{class g{constructor(f,C,N,a){this.serviceStoreService=f,this.serviceStoreDataPassingService=C,this.publishHelperService=N,this.configurationService=a}getServicesWithLoading(f){return new Promise((C,N)=>{if(this.serviceStoreDataPassingService?.services?.length){const a=this.serviceStoreDataPassingService.services.find(O=>O.tag===f)?.categories;C(a)}else this.serviceStoreService.getServiceStore(3,1,this.publishHelperService.getDomain()).subscribe(a=>{const O=a.find(H=>H.tag===f)?.categories;this.serviceStoreDataPassingService.services=a,C(O)},()=>{this.serviceStoreService.getServiceStore(3,1,this.publishHelperService.getDomain()).subscribe(a=>{const O=a.find(H=>H.tag===f)?.categories;this.serviceStoreDataPassingService.services=a,C(O)},()=>{N()})})})}getConfig(){return new Promise((f,C)=>{this.serviceStoreDataPassingService?.config?f(this.serviceStoreDataPassingService.config):this.configurationService.getClientConfiguration(3,this.publishHelperService.getDomain()).subscribe(N=>{this.serviceStoreDataPassingService.config=N,f(N)},()=>{C()})})}getServices(f){return new Promise(C=>{C(this.serviceStoreDataPassingService.services.find(N=>N.tag===f)?.categories)})}}return g.\u0275fac=function(f){return new(f||g)(t.LFG(e.dW),t.LFG(l.p),t.LFG(h.Zp),t.LFG(r.e))},g.\u0275prov=t.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),g})();var y=(()=>{return(g=y||(y={}))[g.GridSquare=1]="GridSquare",g[g.VerticalList=2]="VerticalList",g[g.HorizontalBigTitle=3]="HorizontalBigTitle",g[g.VerticalListCard=4]="VerticalListCard",g[g.SliderViewType=5]="SliderViewType",g[g.ListViewType=6]="ListViewType",y;var g})()},31312:(M,b,n)=>{"use strict";n.d(b,{V:()=>l});var t=n(94650),e=n(80529);let l=(()=>{class h{constructor(d){this.http=d}getActiveDevices(d,y){return this.http.get("oauth2/api/v1/device/getAll",{params:{Offset:d,Size:y}})}terminateSession(d){return this.http.delete(`api/profile/terminateSession/${d}`)}terminateAllSessions(d){return this.http.post("api/profile/terminateAllSessions",{includeCurrent:d})}terminateCurrentSession(){return this.http.delete("api/profile/terminateCurrentSession")}getCurrentDevice(){return this.http.get("api/profile/getCurrentDevice")}}return h.\u0275fac=function(d){return new(d||h)(t.LFG(e.eN))},h.\u0275prov=t.Yz7({token:h,factory:h.\u0275fac}),h})()},74512:(M,b,n)=>{"use strict";n.d(b,{c:()=>l});var t=n(94650),e=n(80529);let l=(()=>{class h{constructor(d){this.http=d}getMyBorrows(d){return this.http.post("api/Borrow/getMyBorrowRequests",d)}getOtherBorrows(d){return this.http.post("api/Borrow/getOthersBorrowRequests",d)}getBorrowRequest(d){return this.http.post("api/Borrow/getBorrowRequestDetails",d)}createBorrow(d){return this.http.post("api/Borrow/createBorrowRequest",d)}payBorrow(d){return this.http.post("api/Borrow/PayBorrowRequest",d)}repayBorrow(d){return this.http.post("api/Borrow/repayBorrowRequest",d)}getBorrowHistory(d){return this.http.post("api/Borrow/getBorrowRequestStatusHistories",d)}rejectBorrow(d){return this.http.post("api/Borrow/RejectBorrowRequest",d)}cancelBorrow(d){return this.http.post("api/Borrow/cancelBorrowRequest",d)}getBorrowRequestDetails(d){return this.http.post("api/Borrow/getBorrowRequestDetails",{borrowRequestId:d})}repayBorrowRequest(d){return this.http.post("api/Borrow/repayBorrowRequest",d)}}return h.\u0275fac=function(d){return new(d||h)(t.LFG(e.eN))},h.\u0275prov=t.Yz7({token:h,factory:h.\u0275fac}),h})()},55154:(M,b,n)=>{"use strict";n.d(b,{U:()=>l});var t=n(94650),e=n(80529);let l=(()=>{class h{constructor(d){this.http=d}isUserOnWhiteList(){return this.http.get("oauth2/api/v1/claim/isUserOnWhiteList")}}return h.\u0275fac=function(d){return new(d||h)(t.LFG(e.eN))},h.\u0275prov=t.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})()},81397:(M,b,n)=>{"use strict";n.d(b,{I:()=>l});var t=n(94650),e=n(80529);let l=(()=>{class h{constructor(d){this.http=d}getScoreAccount(){return this.http.get("marketing/api/v1/club/getScoreAccount")}getScoreHistory(d){return this.http.get("marketing/api/v1/club/getScoreHistory",{params:{Offset:String(d.offset),Size:String(d.size)}})}buyChips(d){return this.http.post("marketing/api/v1/club/buyChips",d)}getClubCampaignDetails(d){return this.http.get("marketing/api/v1/club/getClubCampaignDetails",{params:{CampaignId:String(d)}})}getMyClubChips(d){return this.http.get("marketing/api/v1/club/getMyClubChips",{params:{CampaignId:String(d.campaignId),Size:String(d.size),Offset:String(d.offset),code:String(d.code)}})}getMyClubChipsInquiry(d){return this.http.get("marketing/api/v1/club/chipsGeneratedInquiry",{params:{CampaignId:String(d.campaignId)}})}addGiftCode(d){return this.http.post("marketing/api/v1/giftCode/submit",{giftCode:String(d.giftCode)})}getPurchasedClubs(d){return this.http.get("marketing/api/v1/club/getPurchasedClubs",{params:{Size:String(d.size),Offset:String(d.offset)}})}getTags(){return this.http.get("marketing/api/v1/discountCode/getTags")}getUserDiscountCodes(d){return Object.keys(d).forEach(g=>null===d[g]&&delete d[g]),this.http.get("marketing/api/v1/discountCode/getUserDiscountCodes",{params:d})}getClubCampaignByStatus(d){return this.http.get("marketing/api/v1/club/getClubCampaignByStatus",{params:{status:d.status,size:d.size,offset:d.offset}})}getClubCampaignsWithAggregates(){return this.http.get("marketing/club/getClubCampaigns")}getCategoryDetail(d){return this.http.get(`marketing/api/v1/discountCode/getCategoryDetail?Id=${d}`)}getUserClubCampaigns(d){return this.http.get("marketing/api/v1/club/getUserClubCampaigns",{params:{size:d.size,offset:d.offset}})}purchaseDiscountCode(d){return this.http.post("marketing/api/v1/discountCode/purchase",{campaignId:d})}getCategories(d){return Object.keys(d).forEach(g=>null===d[g]&&delete d[g]),this.http.get("marketing/api/v1/discountCode/getCategories",{params:d})}}return h.\u0275fac=function(d){return new(d||h)(t.LFG(e.eN))},h.\u0275prov=t.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})()},14656:(M,b,n)=>{"use strict";n.d(b,{Q:()=>l});var t=n(94650);const e=n(11364);let l=(()=>{class h{constructor(){}decompress(d){return e.inflate(atob(d),{to:"string"})}detectIfIsBase64(d){return d.match("^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$")}}return h.\u0275fac=function(d){return new(d||h)},h.\u0275prov=t.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})()},36376:(M,b,n)=>{"use strict";n.d(b,{e:()=>l});var t=n(94650),e=n(80529);let l=(()=>{class h{constructor(d){this.http=d}getCyberGiftCardAmountLimitation(){return this.http.get("api/Configuration/getCyberGiftCardAmountLimitation")}getClientConfiguration(d,y){return this.http.get(`serviceStore/api/configuration/getClientConfiguration/${d}`,{params:{environment:y}})}getSecondaryCardRequestCauses(){return this.http.get("api/Configuration/getSecondaryCardRequestCauses")}getBanksInfo(d){let y="";return Object.entries(d).forEach(g=>{const[p,f]=g;"isFiltered"!==p.toString()&&"filterType"!==p.toString()&&"reset"!==p.toString()&&"resetFilterType"!==p.toString()&&"contactUsername"!==p.toString()&&"contactImage"!==p.toString()&&(y+=p.toString()+"="+encodeURIComponent(f.toString())+"&")}),y=y.substring(0,y.length-1),this.http.get("api/Configuration/getBanksInfo?"+y)}getTransferPurpose(){return this.http.get("api/Configuration/getTransferPurpose")}getRePrintCardRequestCauses(){return this.http.get("api/Configuration/getRePrintCardRequestCauses")}}return h.\u0275fac=function(d){return new(d||h)(t.LFG(e.eN))},h.\u0275prov=t.Yz7({token:h,factory:h.\u0275fac}),h})()},57671:(M,b,n)=>{"use strict";n.d(b,{y:()=>l});var t=n(94650),e=n(80529);let l=(()=>{class h{constructor(d){this.http=d}getContacts(d){return this.http.post("api/Contact/getContacts",d)}getContactsById(d){return this.http.post("api/Contact/getContactsById",d)}addContacts(d){return this.http.post("api/Contact/addContacts",d)}getPodContacts(d){return this.http.post("api/Contact/getPodContacts",d)}getNonePodContacts(d){return this.http.post("api/Contact/getNonePodContacts",d)}}return h.\u0275fac=function(d){return new(d||h)(t.LFG(e.eN))},h.\u0275prov=t.Yz7({token:h,factory:h.\u0275fac}),h})()},15303:(M,b,n)=>{"use strict";n.d(b,{D:()=>l});var t=n(94650),e=n(80529);let l=(()=>{class h{constructor(d){this.http=d}getDebitCards(d){return this.http.get("api/DebitCard/getCards",{params:d})}addDestinationDebitCard(d){return this.http.post("api/DebitCard/addDestinationCard",d)}editDestinationDebitCard(d){return this.http.post("api/DebitCard/editDestinationCard",d)}removeDestinationCard(d){return this.http.delete(`api/DebitCard/removeDestinationCard/${d}`)}getCardInfo(d){return this.http.get(`api/DebitCard/getCardInfo/${d}`)}addSourceCard(d){return this.http.post("api/DebitCard/addSourceCard",d)}removeSourceCard(d){return this.http.delete(`api/DebitCard/removeSourceCard/${d}`)}editSourceCard(d){return this.http.post("api/DebitCard/editSourceCard",d)}editDestinationCard(d){return this.http.post("api/DebitCard/editDestinationCard",d)}}return h.\u0275fac=function(d){return new(d||h)(t.LFG(e.eN))},h.\u0275prov=t.Yz7({token:h,factory:h.\u0275fac}),h})()},67657:(M,b,n)=>{"use strict";n.d(b,{w:()=>d});var t=n(2994),e=n(40345),l=n(66699),h=n(94650),r=n(80529);let d=(()=>{class y{constructor(p){this.http=p}getDigitalCard(){return this.http.get("api/v2/DigitalCard/getDigitalCard")}requestDigitalCard(){return this.http.post("api/DigitalCard/requestDigitalCard",{})}getDigitalCardOtpCode(p){return this.http.post("api/DigitalCard/getDigitalCardOtpCode",p)}verifyDigitalCardOtpCode(p){return this.http.post("api/DigitalCard/verifyDigitalCardOtpCode",p).pipe((0,t.b)(()=>{(0,l.Sq)("RatingOnVerifyDigitalCardOtpCode")&&e.dT.open.next(!0)}))}getPhysicalCardOtpCode(p){return this.http.post("api/DigitalCard/getPhysicalCardOtpCode",p)}verifyPhysicalCardOtpCode(p){return this.http.post("api/DigitalCard/verifyPhysicalCardOtpCode",p)}requestPhysicalCard(p){return this.http.post("api/DigitalCard/requestPhysicalCard",p)}resetPhysicalCardPin(){return this.http.post("api/DigitalCard/resetPhysicalCardPin",{})}blockCard(){return this.http.post("api/DigitalCard/blockCard",{})}getSecondaryCardIssuanceCost(){return this.http.get("api/DigitalCard/getSecondaryCardIssuanceCost")}requestSecondaryCard(p){return this.http.post("api/DigitalCard/requestSecondaryCard",{requestCause:p})}changePhysicalCardPin(p){return this.http.post("api/DigitalCard/changePhysicalCardPin",p)}changeDigitalCardPin(p){return this.http.post("api/DigitalCard/changeDigitalCardPin",p)}resetDigitalCardPin(){return this.http.post("api/DigitalCard/resetDigitalCardPin",{})}verifyDeliveryCode(p){return this.http.post("api/DigitalCard/verifyDeliveryCode",{deliveryCode:p})}getRePrintCardIssuanceCost(){return this.http.get("api/DigitalCard/getRePrintCardIssuanceCost")}requestRePrintCard(p){return this.http.post("api/DigitalCard/requestRePrintCard",p)}requestCardRenewal(p){return this.http.post("api/DigitalCard/requestCardRenewal",{requestCause:p})}}return y.\u0275fac=function(p){return new(p||y)(h.LFG(r.eN))},y.\u0275prov=h.Yz7({token:y,factory:y.\u0275fac}),y})()},15399:(M,b,n)=>{"use strict";n.d(b,{P:()=>d});var t=n(2994),e=n(40345),l=n(66699),h=n(94650),r=n(80529);let d=(()=>{class y{constructor(p){this.http=p}getGiftCards(p){let f="";return Object.entries(p).forEach(C=>{const[N,a]=C;"isFiltered"!==N.toString()&&"filterType"!==N.toString()&&"reset"!==N.toString()&&"resetFilterType"!==N.toString()&&"contactUsername"!==N.toString()&&"contactImage"!==N.toString()&&(f+=N.toString()+"="+a+"&")}),f=f.substring(0,f.length-1),this.http.get("api/v2/GiftCard/getGiftCards?"+f)}getGiftCard(p){return this.http.get("api/v2/GiftCard/getGiftCard",{params:{Voucher:""+p.voucher}})}getGiftCardWithVoucher(p){return this.http.get("api/GiftCard/getGiftCard",{params:{Voucher:String(p)}})}getGiftCardWithId(p){return this.http.get("api/GiftCard/getGiftCard",{params:{GiftCardId:String(p)}})}activeGiftCard(p){return this.http.post("api/GiftCard/activateGiftCard",p)}getGiftCardCategories(){return this.http.get("api/GiftCard/getGiftCardCategories")}getGiftCardCategory(p){return this.http.get(`api/GiftCard/getGiftCardCategory/${p.categoryId}`,{params:{includeImagesBase64Contents:p.includeImagesBase64Contents}})}createGiftCard(p){return this.http.post("api/GiftCard/createGiftCard",p).pipe((0,t.b)(()=>{(0,l.Sq)("RatingOnGiftCard")&&e.dT.open.next(!0)}))}sendGiftCard(p){return this.http.post("api/v2/GiftCard/sendGiftCard",p)}getGiftCardExpiryDate(p){return this.http.get("api/GiftCard/getGiftCardExpiryDate",{params:{createDateTime:String(p)}})}getGiftTypesList(){return this.http.get("api/GiftCard/getGiftTypesList")}confirmChequeAgreement(p){return this.http.get("api/GiftCard/giftTypeStatusInquiry",{params:{TypeCode:String(p)}})}}return y.\u0275fac=function(p){return new(p||y)(h.LFG(r.eN))},y.\u0275prov=h.Yz7({token:y,factory:y.\u0275fac}),y})()},79623:(M,b,n)=>{"use strict";n.d(b,{l:()=>l});var t=n(94650),e=n(80529);let l=(()=>{class h{constructor(d){this.http=d}createSimpleGroup(d){return this.http.post("api/Group/createSimpleGroup",d)}generateSimpleGroupTransferRequests(d){return this.http.post("api/Group/generateSimpleGroupTransferRequests",{groupId:d})}getSimpleGroup(d){return this.http.get("api/Group/getSimpleGroup/"+d)}getGroupMembers(d){return this.http.get("api/Group/getGroupMembers",{params:{GroupId:String(d.groupId),Offset:String(d.offset),Size:String(d.size)}})}getGroupMembersCount(d){return this.http.get("api/Group/getGroupMembersCount",{params:{GroupId:String(d)}})}getSimpleGroupPaymentReport(d){return this.http.get("api/Group/getSimpleGroupPaymentReport/"+d)}getSimpleGroupPieChartReport(d){return this.http.get("api/Group/getSimpleGroupPieChartReport/"+d)}getSimpleGroupCurrentUserRequestDetails(d){return this.http.get("api/Group/getSimpleGroupCurrentUserRequestDetails/"+d)}getBorrowRequests(d){return this.http.post("api/Group/getBorrowRequests",d)}getUserAllGroups(d){return this.http.post("api/Group/getUserAllGroups",d)}}return h.\u0275fac=function(d){return new(d||h)(t.LFG(e.eN))},h.\u0275prov=t.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})()},70223:(M,b,n)=>{"use strict";n.d(b,{Tk:()=>h,WU:()=>r,uU:()=>l});var t=n(591),e=n(94650);class l{constructor(){l.open.asObservable().subscribe(y=>{y?(l.retry=3,l.loadFailed=!1,l.ImageSrc=y):l.ImageSrc=null})}}function h(){setTimeout(()=>{l.open.next(null)},300)}function r(d){l.open.next(d)}l.open=new t.X(null),l.close=new t.X(null),l.ImageSrc=null,l.retry=3,l.loadFailed=!1,l.\u0275fac=function(y){return new(y||l)},l.\u0275prov=e.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})},79614:(M,b,n)=>{"use strict";n.d(b,{U:()=>l});var t=n(94650),e=n(80529);let l=(()=>{class h{constructor(d){this.http=d}getUserInitInfo(){return this.http.get("api/Landing/getUserInitInfo")}setUserAutoCardRequestChoice(d){return this.http.post("api/Landing/setUserAutoCardRequestChoice",d)}getUserAutoCardRequestStatus(){return this.http.post("api/Landing/getUserAutoCardRequestStatus",{})}}return h.\u0275fac=function(d){return new(d||h)(t.LFG(e.eN))},h.\u0275prov=t.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})()},28864:(M,b,n)=>{"use strict";n.d(b,{BZ:()=>h,ze:()=>O});var t=n(8479),e=n(94650),l=n(80529);let h=(()=>{class j{constructor(Y){this.http=Y}getContractList(){return this.http.get(t.NZ.subDirectory+"/Loan/getContracts")}getContractInfo(Y){return this.http.get(t.NZ.subDirectory+"/Loan/getContractInfo",{params:{ContractId:String(Y.contractId)}})}getContractsByGroup(){return this.http.get(t.NZ.subDirectory+"/Loan/getContractsByGroup")}enableLoan(Y){return this.http.post(t.NZ.subDirectory+"/Loan/enableLoan",Y)}applyContract(Y){return this.http.post(t.NZ.subDirectory+"/Loan/applyContract",Y)}confirmContract(Y){return this.http.post(t.NZ.subDirectory+"/Loan/confirmContract",Y)}activateContract(Y){return this.http.post(t.NZ.subDirectory+"/Loan/activateContract",Y)}getDigitalCreditTimeline(Y){return this.http.post(t.NZ.subDirectory+"/Loan/getDigitalCreditTimeline",Y)}calculateMicroLoanWithOnePayment(Y){return this.http.post(t.NZ.subDirectory+"/Loan/calculateMicroLoanWithOnePayment",Y)}calculateMicroLoanWithInstallments(Y){return this.http.post(t.NZ.subDirectory+"/Loan/calculateMicroLoanWithInstallments",Y)}getLoanFinancialInfo(Y){return this.http.get(t.NZ.subDirectory+"/Loan/getLoanFinancialInfo",{params:{ContractId:String(Y.contractId)}})}getLoanList(Y){const u={Offset:String(Y.offset),Size:String(Y.size)};return Y.contractId&&(u.ContractId=String(Y.contractId)),Y.subjectInvoiceId&&(u.SubjectInvoiceId=String(Y.subjectInvoiceId)),this.http.get(t.NZ.subDirectory+"/Loan/getLoanList",{params:u})}getLoanContractAgreementList(Y){return this.http.get(t.NZ.subDirectory+"/Loan/getLoanContractAgreementList",{params:{ContractId:Y}})}getLoanContractReport(Y){return this.http.get(t.NZ.subDirectory+"/Loan/getLoanContractReport",{params:{ContractId:Y}})}payLoanPreSettlement(Y,u){const W={contractId:u};return Y&&(W.loanId=Y),this.http.post(t.NZ.subDirectory+"/Loan/payLoanPreSettlement",W)}getMicroLoanRequest(Y){return this.http.get(t.NZ.subDirectory+"/Loan/getMicroLoanRequest",{params:{ContractId:String(Y.contractId)}})}getInstallmentsDetail(Y){const u={};return Object.entries(Y).forEach(W=>{const[fe,ae]=W;u[fe.substr(0,1).toUpperCase()+fe.substr(1)]=ae}),this.http.get(t.NZ.subDirectory+"/Loan/getInstallmentsDetail",{params:u})}payInstallment(Y,u){const W={installmentId:Y};return u&&(W.amount=u),this.http.post(t.NZ.subDirectory+"/Loan/payInstallment",W)}getInstallments(Y){return this.http.get(t.NZ.subDirectory+"/Loan/getInstallments",{params:{contractId:Y}})}inviteFriends(Y,u){return this.http.post(t.NZ.subDirectory+"/Loan/inviteFriends",{contractId:Y,mobileNumber:u})}getUsageCreditTimeline(Y){return this.http.post(t.NZ.subDirectory+"/Loan/getUsageCreditTimeline",{contractId:Y})}getContractDetailInfo(Y){return this.http.get(t.NZ.subDirectory+"/Loan/getContractDetailInfo",{params:{contractId:Y}})}getPasargadBankBranches(Y,u,W){return this.http.get(t.NZ.subDirectory+"/Loan/getPasargadBankBranches",{params:{Name:String(Y),Offset:String(u),Size:String(W)}})}getLoanInquiryStatus(Y){return this.http.get(t.NZ.subDirectory+"/Loan/getLoanInquiryStatus",{params:{ContractId:String(Y)}})}getHouseDepositOptions(){return this.http.get(t.NZ.subDirectory+"/Loan/getHouseDepositOptions",{params:{OsType:"web"}})}removeUserFromContract(Y){return this.http.post(t.NZ.subDirectory+"/Loan/removeUserFromContract",{contractId:String(Y)})}revokeLoan(Y){return this.http.post(t.NZ.subDirectory+"/Loan/revokeLoan",{subjectInvoiceId:Y})}requestNextContract(Y,u){return this.http.post(t.NZ.subDirectory+"/Loan/requestNextContract",{contractId:Y,bankBranchCode:u})}extendContractDueDate(Y){return this.http.post(t.NZ.subDirectory+"/Loan/extendContractDueDate",{contractId:parseInt(String(Y),10)})}payInvoiceByContractNo(Y,u){return this.http.post(t.NZ.subDirectory+"/Loan/payInvoiceByContractNo",{contractId:parseInt(String(Y),10),invoiceId:u,invoiceCategoryType:1})}microLoanValidation(Y){return this.http.post(t.NZ.subDirectory+"/Loan/microLoanValidation",{contractId:parseInt(String(Y),10)})}getBeforePayMicroLoanUpdateStatus(Y){return this.http.get(t.NZ.subDirectory+"/Loan/getBeforePayMicroLoanUpdateStatus",{params:{ContractId:String(Y)}})}payMicroLoan(Y){return this.http.post(t.NZ.subDirectory+"/Loan/payMicroLoan",Y)}getWepodContractInfo(Y){return this.http.get(t.NZ.subDirectory+"/Loan/getWepodContractInfo",{params:{ContractId:String(Y)}})}wepodCreditTransferScore(Y){return this.http.post(t.NZ.subDirectory+"/Loan/wepodCreditTransferScore",Y)}getWepodCreditTransferCommission(Y,u,W){return this.http.get(t.NZ.subDirectory+"/Loan/getWepodCreditTransferCommissionRateInfo",{params:{contractId:String(Y),desUserId:u,score:W}})}calculateWepodCredit(Y){return this.http.post(t.NZ.subDirectory+"/Loan/calculateWepodCredit",Y)}getWepodCreditTransferScoreList(Y){let u="";return Object.entries(Y).forEach(W=>{const[fe,ae]=W;u+=fe.toString()+"="+encodeURIComponent(ae.toString())+"&"}),u=u.substring(0,u.length-1),this.http.get(t.NZ.subDirectory+"/Loan/getWepodCreditTransferScoreList?"+u)}checkUsageCreditValidation(Y){return this.http.post(t.NZ.subDirectory+"/Loan/checkUsageCreditValidation",{contractId:Y})}syncMicroLoanInstallments(Y){return this.http.post(t.NZ.subDirectory+"/Loan/syncMicroLoanInstallments",{contractId:Y})}getWepodScoreInfo(){return this.http.get(t.NZ.subDirectory+"/Loan/getWepodScoreInfo")}getWepodLoanGeneralList(){return this.http.get(t.NZ.subDirectory+"/Loan/WepodLoanGeneralList")}getCalculateWepodCreditInfo(){return this.http.get(t.NZ.subDirectory+"/Loan/getCalculateWepodCreditInfo")}wepodStartCollectingScore(){return this.http.post(t.NZ.subDirectory+"/Loan/wepodStartCollectingScore",{})}getExtendPaymentInvoice(Y,u){const W={ContractId:String(Y)};return u&&(W.Amount=String(u)),this.http.get(t.NZ.subDirectory+"/Loan/getExtendPaymentInvoice",{params:W})}extendPayment(Y,u){return this.http.post(t.NZ.subDirectory+"/Loan/extendPayment",{contractId:Y,amount:u})}getContractDetailEventInfo(Y,u,W){const fe={contractId:Y,type:u};return W&&(fe.planId=W),this.http.get(t.NZ.subDirectory+"/Loan/getContractDetailEventInfo",{params:fe})}confirmDigitalCommissionExpire(Y){return this.http.post(t.NZ.subDirectory+"/Loan/confirmDigitalCommissionExpire",{contractId:Y})}getPartialPayInstallmentInvoice(Y,u){return this.http.get(t.NZ.subDirectory+"/Loan/getPartialPayInstallmentInvoice",{params:{ContractId:String(Y),Amount:String(u)}})}partialPayInstallment(Y,u){return this.http.post(t.NZ.subDirectory+"/Loan/partialPayInstallment",{contractId:Y,amount:u})}getCreditCardContractInfo(Y){return this.http.get(t.NZ.subDirectory+"/Loan/getCreditCardContractInfo",{params:{ContractId:String(Y)}})}calculateMoravedehCredit(Y,u,W,fe,ae){return this.http.post(t.NZ.subDirectory+"/Loan/calculateMoravedehCredit",{contractId:Y,amount:u,score:W,repaymentPeriodMonths:fe,calculationType:ae})}getSuggestedContracts(Y){return this.http.get(t.NZ.subDirectory+"/Loan/getSuggestedContracts",{params:{contractIds:Y}})}getIncomeReceivedContractInfo(Y){return this.http.get(t.NZ.subDirectory+"/Loan/getIncomeReceivedContractInfo",{params:{contractId:Y}})}getContractLandingInfo(Y){return this.http.get(t.NZ.subDirectory+"/Loan/getContractLandingInfo",{params:{contractId:Y}})}}return j.\u0275fac=function(Y){return new(Y||j)(e.LFG(l.eN))},j.\u0275prov=e.Yz7({token:j,factory:j.\u0275fac}),j})();var O=(()=>{return(j=O||(O={}))[j.None=0]="None",j[j.Titr=1]="Titr",j[j.Amount=2]="Amount",j[j.MainTitle=3]="MainTitle",O;var j})()},72380:(M,b,n)=>{"use strict";n.d(b,{g:()=>r});var t=n(40345),e=n(94650),l=n(97693),h=n(11213);let r=(()=>{class d{constructor(g,p){this.toastrService=g,this.routingAppService=p}notify(g,p="",f="",C=(()=>{}),N){if("object"==typeof C){const O=C.param;switch(C.action){case"navigate":C=()=>{this.routingAppService.navigate([O])};break;case"redirect":C=()=>{(0,t.Jj)()&&((0,t.Jj)().location.href=O)};break;default:C=()=>{}}}switch(g){case"success":this.toastrService.success(f,p,N).onTap.subscribe(()=>C());break;case"warning":this.toastrService.warning(f,p,N).onTap.subscribe(()=>C());break;case"error":this.toastrService.error(f,p,N).onTap.subscribe(()=>C());break;default:throw new Error('error occurred in first argument of "notify()".\nvalue of type can only be one of these: "success", "warning", "error"')}}}return d.\u0275fac=function(g){return new(g||d)(e.LFG(l.X),e.LFG(h.s))},d.\u0275prov=e.Yz7({token:d,factory:d.\u0275fac,providedIn:"root"}),d})()},4002:(M,b,n)=>{"use strict";n.d(b,{C:()=>C});var t=n(40345),e=n(77528),l=n(39723),h=n(65376),r=n(94650),d=n(80529),y=n(88469),g=n(41399),p=n(32326),f=n(32209);let C=(()=>{class N{constructor(O,H,F,V,D){this.http=O,this.uniqueIdUtil=H,this.browserUtil=F,this.deviceDetectorService=V,this.browserStorageService=D,this.openingLink=!1}getByAuthCode(O){return this.http.post("oauth2/api/v1/token/getByAuthCode",O)}getUserFinancialStatus(){return this.http.get("oauth2/api/v1/financialLevel/getUserFinancialStatus")}setVideoUrl(O){return this.http.post("oauth/api/v1/financialLevel/setVideoUrl",O)}inquiryChangePassword(){return this.http.get("oauth2/api/v1/user/inquiryChangePassword",{params:{ClientIssuer:e.z.clientIssuer}})}requestChangePassword(O){return this.http.post("oauth2/api/v1/user/requestChangePassword",O)}changeMobileNumber(O){return this.http.post("oauth2/api/v1/user/changeMobileNumber",O)}prepare(O){return this.http.post("oauth2/api/v1/user/prepare",O)}handshake(){const O=new h.vA;return O.deviceId=JSON.parse(this.browserStorageService.getLocalItem(l.B.userSignupModel))?.deviceId?JSON.parse(this.browserStorageService.getLocalItem(l.B.userSignupModel)).deviceId:this.uniqueIdUtil.genUUID(),O.deviceType=h.VB.Unknown,(0,t.Jj)()&&(O.deviceType=h.VB.MobileDevice,this.deviceDetectorService.isDesktop()?O.deviceType=h.VB.Desktop:this.deviceDetectorService.isMobile()?O.deviceType=h.VB.MobilePhone:this.deviceDetectorService.isTablet()&&(O.deviceType=h.VB.Tablet)),this.http.post("oauth2/api/v1/device/handshake",O)}getFingerprintStatus(O){return this.http.post("oauth2/api/v1/fingerprint/status",O)}removeFingerprint(){return this.http.post("oauth2/api/v1/fingerprint/remove",{})}fingerprintEnableDisable(O){return this.http.post("oauth2/api/v1/fingerprint/enableDisable",{enable:O})}fingerprintAddUpdate(){return this.http.post("oauth2/api/v1/fingerprint/addUpdate",{})}}return N.\u0275fac=function(O){return new(O||N)(r.LFG(d.eN),r.LFG(y.i),r.LFG(g.G),r.LFG(p.x0),r.LFG(f.z))},N.\u0275prov=r.Yz7({token:N,factory:N.\u0275fac}),N})()},91663:(M,b,n)=>{"use strict";n.d(b,{N:()=>p});var t=n(49671),e=n(591),l=n(40345),h=n(77528),r=n(94650),d=n(79473),y=n(75558);const g=n(3215).Z;let p=(()=>{class f{constructor(N,a){this.wepodMainService=N,this.authService=a,this.mustResetListeners=new e.X(!1)}set instance(N){(0,l.Jj)()&&((0,l.Jj)().podChatSdk=N)}get instance(){return(0,l.Jj)()?.podChatSdk}createSocket(){if(this.authService.getToken()){h.z.podChatSDKParameters.token=this.authService.getToken();try{this.instance=new g(h.z.podChatSDKParameters),this.mustResetListeners.next(!0)}catch(N){console.error(N)}}}resetToken(){var N=this;return(0,t.Z)(function*(){N.authService.getToken()?N.instance.setToken(N.authService.getToken()):(yield N.sleep(500),N.resetToken())})()}reconnectSocket(){this.instance.reconnect()}updateThreadOnEvent(N,a){for(const[O,H]of Object.entries(a))N&&N.hasOwnProperty(O)&&(N[O]=H);return N}sleep(N){return new Promise(a=>setTimeout(a,N))}}return f.\u0275fac=function(N){return new(N||f)(r.LFG(d.g),r.LFG(y.e))},f.\u0275prov=r.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})()},47514:(M,b,n)=>{"use strict";n.d(b,{H:()=>h});var t=n(8479),e=n(94650),l=n(80529);let h=(()=>{class d{constructor(g){this.http=g}getProfile(){return this.http.get("Aggregates/api/User/getProfile")}setProfile(g){return this.http.post("oauth2/api/v1/user/updateProfile",g)}getUserTransferInfo(g){return this.http.get("api/Profile/getUserTransferInfo/"+g)}validateUsername(g){return this.http.post("api/Auth/validateUsername",g)}editProfileImage(g){return this.http.post("oauth2/api/v1/user/updateProfileImage ",g)}verifyUserWithImage(g){return this.http.post("api/Profile/verifyUserWithImage",g)}uploadFile(g,p=!0){const f=new FormData;let C=p?".mp4":".jpg";g.name.lastIndexOf(".")>=0&&(C=g.name.substring(g.name.lastIndexOf(".")));const N=new File([g],p?"AuthVideo":"uploadImg"+(new Date).getTime()+C);return f.append("file",N),this.http.post(t.H7.podSpaceFileServer+"/api/files?folderHash=ROOT&isPublic=false&postProcess=true&unimportant=false",f)}}return d.\u0275fac=function(g){return new(g||d)(e.LFG(l.eN))},d.\u0275prov=e.Yz7({token:d,factory:d.\u0275fac}),d})()},66699:(M,b,n)=>{"use strict";n.d(b,{Sq:()=>y,Zp:()=>h});var t=n(40345),e=n(94650),l=n(36376);let h=(()=>{class g{constructor(f){this.configurationService=f,this.domain=(0,t.Jj)()?.location.host,this.updateDisableFeature()}updateDisableFeature(){(0,t.Jj)()&&(this.domain?.includes("localhost")||this.domain?.includes("127.0.0.1")?d=["TurnOverReportsOld","TurnoverOld"]:this.configurationService.getClientConfiguration(3,this.getDomain()).subscribe(f=>{d=f.disabledFeatures}))}getDomain(){return this.domain?.includes("sandbox")?1:this.domain?.includes("staging")?3:this.domain?.includes("web")||this.domain?.includes("levelup")?2:this.domain?.includes("pre-release")?4:3}gotDisableFeatures(){return null!==d}}return g.\u0275fac=function(f){return new(f||g)(e.LFG(l.e))},g.\u0275prov=e.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),g})(),d=null;function y(g){return!!d&&!d.includes(g)}},61262:(M,b,n)=>{"use strict";n.d(b,{V:()=>l});var t=n(94650),e=n(80529);let l=(()=>{class r{constructor(y){this.http=y}getRating(){return this.http.get("marketing/api/v1/rating/getRating")}submitRating(y,g){return this.http.post("marketing/api/v1/rating/submitRating",{rate:y,comment:g})}}return r.\u0275fac=function(y){return new(y||r)(t.LFG(e.eN))},r.\u0275prov=t.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})()},63515:(M,b,n)=>{"use strict";n.d(b,{C:()=>l});var t=n(94650),e=n(80529);let l=(()=>{class r{constructor(y){this.http=y}getOrGenerateReferralCode(){return this.http.post("marketing/api/v1/referral/getOrGenerateReferralCode",{})}canSubmitReferralCode(){return this.http.get("marketing/api/v1/referral/canSubmitReferralCode",{params:{}})}cancelSubmitReferralCode(){return this.http.post("marketing/api/v1/referral/cancelReferralCode",{})}submitReferralCode(y){return this.http.post("marketing/api/v1/referral/submitReferralCode",{referralCode:y})}}return r.\u0275fac=function(y){return new(y||r)(t.LFG(e.eN))},r.\u0275prov=t.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})()},28169:(M,b,n)=>{"use strict";n.d(b,{a:()=>p});var t=n(2994),e=n(40345),l=n(39723),h=n(94650),r=n(80529),d=n(4002),y=n(79473),g=n(32209);let p=(()=>{class f{constructor(N,a,O,H){this.http=N,this.oAuthService=a,this.wepodMainService=O,this.browserStorageService=H}authorize(N){return this.http.post("oauth2/api/v1/otp/authorize",N)}verifyOtp(N){return this.http.post("oauth2/api/v1/otp/verify",N).pipe((0,t.b)(a=>{a?.actionUrl?.url&&(0,e.Jj)()?(this.oAuthService.openingLink=!0,this.wepodMainService.setActionUrl(a.actionUrl.url),(0,e.Jj)().location.href=a.actionUrl.url):a?.token&&(this.wepodMainService.saveToken(a.token.accessToken),a?.token?.deviceKeyId?(this.browserStorageService.setLocalItem(l.B.keyId,a.token.deviceKeyId),this.wepodMainService.setCookie("currentUser.token.keyId",a.token.deviceKeyId,.02)):a?.token?.keyId&&(this.browserStorageService.setLocalItem(l.B.keyId,a.token.keyId),this.wepodMainService.setCookie("currentUser.token.keyId",a.token.keyId,.02)))}))}}return f.\u0275fac=function(N){return new(N||f)(h.LFG(r.eN),h.LFG(d.C),h.LFG(y.g),h.LFG(g.z))},f.\u0275prov=h.Yz7({token:f,factory:f.\u0275fac}),f})()},83639:(M,b,n)=>{"use strict";n.d(b,{r:()=>l});var t=n(94650),e=n(80529);let l=(()=>{class h{constructor(d){this.http=d}getAllPlans(){return this.http.get("saving-plan/api/v1/plans/getAll")}getCancelsHistory(d){return this.http.get("saving-plan/api/v1/savings/mine/cancels",{params:{offset:d.offset,size:d.size,fromDate:d.fromDate,toDate:d.toDate,hashCode:d.hashCode}})}getCustomerPlans(){return this.http.get("saving-plan/api/v1/savings/mine/getAll")}getCustomerAccount(){return this.http.get("saving-plan/api/v1/savings/mine/account")}getCustomerPlanDetails(d){return this.http.get("saving-plan/api/v1/savings/mine/details",{params:{hashCode:d}})}cancelCustomerPlan(d){return this.http.post("saving-plan/api/v1/savings/mine/cancel",d)}applyPlan(d){return this.http.post("saving-plan/api/v1/savings/mine/block",d)}calculateProfit(d){return this.http.get("saving-plan/api/v1/plans/calculateProfit",{params:{planId:d.planId,unitCount:d.unitCount,months:d.months}})}getSavingPlanAgreement(d){return this.http.get("api/Agreement/getSavingPlanAgreement",{params:{agreementId:d}})}getProfitsList(d){return this.http.get("saving-plan/api/v1/savings/mine/profits",{params:{fromDate:d.fromDate,toDate:d.toDate,planId:d.planId,size:d.size,offset:d.offset}})}}return h.\u0275fac=function(d){return new(d||h)(t.LFG(e.eN))},h.\u0275prov=t.Yz7({token:h,factory:h.\u0275fac}),h})()},11495:(M,b,n)=>{"use strict";n.d(b,{p:()=>F});var t=n(40345),e=n(77743),l=n(66699),h=n(73038),r=n(94650),d=n(86090),y=n(79473),g=n(28864),p=n(46848),f=n(80597),C=n(56751),N=n(11213),a=n(90534),O=n(83353),H=n(97028);let F=(()=>{class V{constructor(U,q,J,G,ie,K,re,oe,B,s,_){this.serviceStoreService=U,this.wepodMainService=q,this.loanService=J,this.thirdParty=G,this.introductionPageDataPassingService=ie,this.chatDataPassingService=K,this.routingAppService=re,this.thirdPartyService=oe,this.toastrService=B,this.platform=s,this.tagManager=_,this.services=[],this.developmentMode=l.Sq}introductionPage(U,q){this.introductionPageDataPassingService.inputs=q,this.introductionPageDataPassingService.inputs.confirm.callback=()=>{this.redirectToAutoLogin(U)},h.j.data.next(null),h.j.bgWhite=!0,h.j.desktopStyle=!1,h.j.hideDesktopHeaderClose=!1,h.j.disableBackdropClosing=!1,h.j.fullScreen.next(!0),h.j.modalTitle=q.pageTitle,h.j.disableBodyTouchOnOpen=!1,(0,h.h7)("introductionModal")}joinOrRedirectBotPage(U,q){this.thirdParty.getServiceInfoForUser(U).subscribe(J=>{J.threadId?this.chatDataPassingService.navigateToThread(J.threadId,q):(h.j.data.next(null),h.j.bgWhite=!0,h.j.desktopStyle=!0,h.j.hideDesktopHeaderClose=!1,h.j.disableBackdropClosing=!1,h.j.fullScreen.next(!1),h.j.basicModalData.next({img:this.chatDataPassingService.getImageFromPodSpaceByHashId(J.hashIcon),title:J.title,desc:[J.description],buttons:{first:{title:"\u0634\u0631\u0648\u0639",action:()=>{(0,l.Sq)("DataLayerGoogleAnalytics")&&this.tagManager.pushEvent("bot_start",{}),this.thirdPartyService.joinService(U).subscribe(G=>{G.threadId?((0,h.Mr)(),setTimeout(()=>{this.chatDataPassingService.navigateToThread(J.threadId,"start")},500)):this.checkJoinToBot(U,5)})},confirm:!0}}}),(0,h.h7)("basicModal"))})}clickedThirdParty(U){if(U.includes("https://web.wepod.ir/")){const q=U.split("?");if(2===q.length){const J=new URLSearchParams(q[1]);J.get("serviceId")?U.includes("bot")?this.joinOrRedirectBotPage(J.get("serviceId"),J.get("startCommand")):U.includes("auto-login-redirect")?this.redirectToAutoLogin(Number(J.get("serviceId"))):U.includes("auto-login")?J.get("platformId")?this.serviceStoreService.getServiceDetail(J.get("platformId")).subscribe(G=>{G.longDescription&&this.introductionPage(J.get("serviceId"),G.longDescription)}):this.toastrService.error("\u062e\u0637\u0627\u06cc\u06cc \u0631\u062e \u062f\u0627\u062f. \u0644\u0637\u0641\u0627 \u062f\u0648\u0628\u0627\u0631\u0647 \u062a\u0644\u0627\u0634 \u06a9\u0646\u06cc\u062f."):this.checkFunc(U):J.get("func")?this[J.get("func")]():this.checkFunc(U)}else this.checkFunc(U)}else this.platform.SAFARI?(e.hg.next({loading:!0,cancelable:!0}),(0,t.Jj)().close(),setTimeout(()=>{e.hg.next({loading:!1,cancelable:!1})},5e3),(0,t.Jj)()?.open(U,"_self")):(0,t.Jj)()?.open(U,"_blank")}checkFunc(U){U.includes("cheque/list")?this.cheque():U.includes("transaction-report")?this.report():"support-ticket"===U.split("/").slice(3).toString()?this.routingAppService.navigate(["services/services-dynamic"],{queryParams:{tag:"SUPPORT",title:"\u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc"},state:{deeplink:"support-ticket"},replaceUrl:!0}):this.routingAppService.navigate([U])}redirectToAutoLogin(U){this.thirdParty.autoLogin(U).subscribe(q=>{q.autoLoginUrl&&(this.platform.SAFARI?window.location.href=q.autoLoginUrl:(0,t.Jj)()?.open(q.autoLoginUrl,"_blank"))})}checkJoinToBot(U,q){setTimeout(()=>{this.thirdPartyService.getServiceInfoForUser(U).subscribe(J=>{J.threadId?((0,h.Mr)(),setTimeout(()=>{this.chatDataPassingService.navigateToThread(J.threadId,"start")},500)):q?this.checkJoinToBot(U,q-=1):this.toastrService.error("\u062e\u0637\u0627\u06cc\u06cc \u0631\u062e \u062f\u0627\u062f. \u0644\u0637\u0641\u0627 \u062f\u0648\u0628\u0627\u0631\u0647 \u062a\u0644\u0627\u0634 \u06a9\u0646\u06cc\u062f.")})},1e3)}report(){h.j.fullScreen.next(!1),h.j.height=448,h.j.desktopStyle=!1,h.j.bgWhite=!1,h.j.hideDesktopHeaderClose=!1,h.j.modalTitle="\u06af\u0631\u062f\u0634 \u062d\u0633\u0627\u0628",h.j.modalTitleBgGray=!0,h.j.disableBackdropClosing=!1,(0,h.h7)("transactionReportTypesModal",300)}cheque(){h.j.fullScreen.next(!1),h.j.height=448,h.j.desktopStyle=!1,h.j.bgWhite=!1,h.j.hideDesktopHeaderClose=!1,h.j.modalTitle="\u0644\u06cc\u0633\u062a \u0686\u06a9\u200c\u0647\u0627",h.j.modalTitleBgGray=!0,h.j.disableBackdropClosing=!1,(0,h.h7)("chequeListTypesModal",300)}}return V.\u0275fac=function(U){return new(U||V)(r.LFG(d.dW),r.LFG(y.g),r.LFG(g.BZ),r.LFG(p.qO),r.LFG(f.Z8),r.LFG(C.FM),r.LFG(N.s),r.LFG(p.qO),r.LFG(a._W),r.LFG(O.t4),r.LFG(H.c))},V.\u0275prov=r.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})()},86090:(M,b,n)=>{"use strict";n.d(b,{dW:()=>l});var t=n(94650),e=n(80529);let l=(()=>{class g{constructor(f){this.http=f}getServiceStore(f,C,N){return this.http.get("serviceStore/api/v1/store/get",{params:{clientPlatform:f,clientVersion:C,environmentType:N}})}getServiceDetail(f){return this.http.post("serviceStore/api/v1/service/getServiceDetail",{serviceId:f})}}return g.\u0275fac=function(f){return new(f||g)(t.LFG(e.eN))},g.\u0275prov=t.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),g})()},47336:(M,b,n)=>{"use strict";n.d(b,{X:()=>r});var t=n(49671),e=n(8929),l=n(94650),h=n(80529);let r=(()=>{class d{constructor(g){this.http=g}getUserCards(g){let p="";return Object.entries(g).forEach(f=>{const[C,N]=f;"isFiltered"!==C.toString()&&"filterType"!==C.toString()&&"reset"!==C.toString()&&"resetFilterType"!==C.toString()&&"contactUsername"!==C.toString()&&"contactImage"!==C.toString()&&(p+=C.toString()+"="+N.toString()+"&")}),p=p.substring(0,p.length-1),this.http.get("api/Shaparak/getUserCards?"+p)}requestCardEnrollment(){return this.http.post("api/Shaparak/requestCardEnrollment",{})}getKey(g){const p={method:"POST",headers:new Headers({"content-type":"application/json"}),body:JSON.stringify(g)},f=new e.xQ;return fetch("https://tsm.shaparak.ir:443/mobileApp/getKey",p).then(function(){var N=(0,t.Z)(function*(a){f.next(yield a.json())});return function(a){return N.apply(this,arguments)}}()),f.asObservable()}cardEnrollment(g){return this.http.post("api/Shaparak/cardEnrollment",{transactionId:g})}requestAppReactivation(){return this.http.post("api/Shaparak/requestAppReactivation",{})}addCard(g){return this.http.post("api/Shaparak/addCard",{cardNumber:g})}getDestinationCardInfo(g){return this.http.get("api/Shaparak/getDestinationCardInfo",{params:{SourceCardId:""+g.sourceCardId,DestinationPan:""+g.destinationPan,Amount:""+g.amount}})}requestOtp(g){return this.http.post("api/Shaparak/requestOtp",g)}transfer(g){return this.http.post("api/Shaparak/transfer",g)}transactionInquiry(g){return this.http.get("api/Shaparak/transactionInquiry",{params:{TransactionId:String(g)}})}transactionsReport(g){let p="";return Object.entries(g).forEach(f=>{const[C,N]=f;"isFiltered"!==C.toString()&&"filterType"!==C.toString()&&"reset"!==C.toString()&&"resetFilterType"!==C.toString()&&"contactUsername"!==C.toString()&&"contactImage"!==C.toString()&&(p+=C.toString()+"="+N.toString()+"&")}),p=p.substring(0,p.length-1),this.http.get("api/Shaparak/transactionsReport?"+p)}removeCard(g){return this.http.post("api/Shaparak/removeCard",{cardId:g})}}return d.\u0275fac=function(g){return new(g||d)(l.LFG(h.eN))},d.\u0275prov=l.Yz7({token:d,factory:d.\u0275fac,providedIn:"root"}),d})()},62590:(M,b,n)=>{"use strict";n.d(b,{a:()=>l});var t=n(94650),e=n(80529);let l=(()=>{class h{constructor(d){this.http=d}getShebas(d){const y={};return Object.entries(d).forEach(g=>{const[p,f]=g;f.toString()&&(y[p.substr(0,1).toUpperCase()+p.substr(1)]=f)}),this.http.get("api/sheba/getDestinationShebas",{params:y})}addSheba(d){return this.http.post("api/sheba/addDestinationSheba",d)}editSheba(d){return this.http.post("api/sheba/updateDestinationSheba",d)}removeSheba(d){return this.http.delete(`api/sheba/deleteDestinationSheba/${d}`)}getShebaInfo(d){return this.http.post(`api/Sheba/getShebaInfo/ir${d}`,d)}getOtherBanksIbanInfo(d){return this.http.get("api/Sheba/getOtherBanksIbanInfo",{params:{Iban:String(d)}})}}return h.\u0275fac=function(d){return new(d||h)(t.LFG(e.eN))},h.\u0275prov=t.Yz7({token:h,factory:h.\u0275fac}),h})()},73038:(M,b,n)=>{"use strict";n.d(b,{Mr:()=>r,h7:()=>d,hC:()=>g,j:()=>h});var t=n(591),e=n(40345),l=n(94650);class h{constructor(){h.open.asObservable().subscribe(C=>{C&&(h.disableBodyTouchOnOpen&&document.getElementById("body").setAttribute("style","touch-action: none"),h.templates[C]=!0)}),h.close.asObservable().subscribe(C=>{C&&(h.scrollable=!1,h.disableBodyTouchOnOpen=!0,document.getElementById("body").removeAttribute("style"),h.close.next(!1),setTimeout(()=>{Object.keys(h.templates).forEach(N=>{h.templates[N]=!1})},500))})}}function r(){h.close.next(!0),setTimeout(()=>{h.open.next(null),h.fullScreen.next(!1)},300)}function d(f,C=null){C&&((0,e.Jj)()?.innerHeight<C&&h.fullScreen.next(!0),h.height=C),h.open.next(f)}h.fullScreen=new t.X(!1),h.height=0,h.isDesktop=0===(0,e.Jj)()?.navigator.maxTouchPoints,h.desktopStyle=!1,h.modalTitleImage=null,h.modalTitle=null,h.modalTitleBgGray=!1,h.modalTitleCenter=!0,h.scrollable=!1,h.bgWhite=!1,h.disableBackdropClosing=!1,h.slideModalHandlerClosing=!1,h.hideDesktopHeaderClose=!1,h.hideFullScreenCloseButton=!1,h.data=new t.X(null),h.basicModalData=new t.X(null),h.dynamicButtonsModalData=new t.X(null),h.open=new t.X(null),h.close=new t.X(null),h.disableBodyTouchOnOpen=!0,h.extraClasses="",h.templates={basicModal:!1,dynamicModal:!1,expenseCreditFactorModal:!1,expenseCreditCommissionModal:!1,contractValidationOtpModal:!1,failedValidationModal:!1,balanceWarningModal:!1,profileCompletionModal:!1,registerLockedModal:!1,confirmationSettlementCreditModal:!1,physicalCardAddressModal:!1,socketController:!1,requestBorrowModal:!1,requestModal:!1,transactionReportTypesModal:!1,contractBanksModal:!1,transferUserVerifyOtp:!1,invitationCodeSubmitModal:!1,threadDataJson:!1,podCardRequestConfirmationModal:!1,profilePicModal:!1,profileStandaloneLoginModal:!1,introductionModal:!1,microFacilitiesInvoiceModal:!1,expenseCreditExtendPaymentModal:!1,causeRequestResendCardModal:!1,validationInsertOtpModal:!1,wepodCreditRequestModal:!1,ratingModal:!1,chequeInquiryModal:!1,clubAddChance:!1,microFacilitiesScoreModal:!1,socialButtonShareModal:!1,supportModal:!1,microFacilitiesCalculationModal:!1,chequeListTypesModal:!1,sharedTemReceiptModal:!1,settingsPasswordCardModal:!1,transferTypeListModal:!1,getSourceCardInformation:!1,basicSharedBtnModal:!1,getInfoTransferPolModal:!1,orderTracking:!1,verifyDeliveryCode:!1,messageInfoSeenList:!1,forwardMessageList:!1,addUserModal:!1,messageReactionsList:!1,giftCode:!1,giftCodeResultModal:!1,physicalCardRequest:!1,botViewStarsModal:!1,mutualCreditCalculatorResultModal:!1,renewedCard:!1,mutualCreditOfferDetailsModal:!1,subjectDetailModal:!1,socialBtnAndroid:!1,showTicketModal:!1,digitalCardAmount:!1,digitalCardCellphoneContact:!1,withdrawAmountModal:!1,savingPlanCalculatorModal:!1,buyCampaignModal:!1,showDiscountCodeModal:!1,incomeReceivedScoreDescriptionModal:!1,ticketVoiceRecorder:!1,recordVoiceTicketModal:!1},h.\u0275fac=function(C){return new(C||h)},h.\u0275prov=l.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"});class g{constructor(){this.isBusinessRule=!0}}},8425:(M,b,n)=>{"use strict";n.d(b,{j:()=>l});var t=n(94650),e=n(80529);let l=(()=>{class h{constructor(d){this.http=d}detectInputType(d){return this.http.get("api/SmartTransfer/detectInputType",{params:{Input:String(d.input),InputType:String(d.inputType)}})}depositToSheba(d){return this.http.post("api/SmartTransfer/depositToSheba",d)}transferTypesList(d){let y="";return Object.entries(d).forEach(g=>{const[p,f]=g;"isFiltered"!==p.toString()&&"filterType"!==p.toString()&&"reset"!==p.toString()&&"resetFilterType"!==p.toString()&&"contactUsername"!==p.toString()&&"contactImage"!==p.toString()&&(y+=p.toString()+"="+encodeURIComponent(f.toString())+"&")}),y=y.substring(0,y.length-1),this.http.get("api/v2/SmartTransfer/transferTypesList?"+y)}cardToSheba(d){return this.http.post("api/SmartTransfer/cardToSheba",{cardNumber:d})}frequentTransactions(d){let y="";return Object.entries(d).forEach(g=>{const[p,f]=g;"isFiltered"!==p.toString()&&"filterType"!==p.toString()&&"reset"!==p.toString()&&"resetFilterType"!==p.toString()&&"contactUsername"!==p.toString()&&"contactImage"!==p.toString()&&(y+=p.toString()+"="+encodeURIComponent(f.toString())+"&")}),y=y.substring(0,y.length-1),this.http.get("api/SmartTransfer/frequentTransactions?"+y)}}return h.\u0275fac=function(d){return new(d||h)(t.LFG(e.eN))},h.\u0275prov=t.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})()},97028:(M,b,n)=>{"use strict";n.d(b,{c:()=>h});var t=n(40345),e=n(94650),l=n(94652);let h=(()=>{class r{constructor(y){this.getProfileDataService=y,(0,t.Jj)()&&((0,t.Jj)().dataLayer=(0,t.Jj)()?.dataLayer||[])}pushEvent(y,g){const p={event:y};if((0,t.Jj)()?.location.pathname.startsWith("/signup")){for(const f of Object.keys(g))p[f]=g[f];(0,t.Jj)()?.dataLayer.push(p)}else this.getProfileDataService.getValue().then(f=>{for(const C of Object.keys(g))p[C]=g[C];Object.assign(p,{userId:f.userId.toString(),level:f.financialLevelSrv.level.toString()}),(0,t.Jj)()?.dataLayer.push(p)},()=>{})}pushEventBot(y){y.analytics?.firebase_events&&this.pushEvent(y.analytics?.firebase_events,y.analytics?.params)}}return r.\u0275fac=function(y){return new(y||r)(e.LFG(l.o))},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})()},46848:(M,b,n)=>{"use strict";n.d(b,{BL:()=>C,Lu:()=>q,Xv:()=>re,Yn:()=>K,aD:()=>p,qN:()=>H,qO:()=>l});var t=n(94650),e=n(80529);let l=(()=>{class oe{constructor(s){this.http=s}joinService(s){return this.http.post("thirdParty/api/v1/management/joinService",{serviceId:s})}leftService(s){return this.http.post("thirdParty/api/v1/management/leftService",{correlationId:s})}getServiceInfoForUser(s){return this.http.get("thirdParty/api/v1/management/getServiceInfoForUser",{params:{serviceId:String(s)}})}payInvoice(s){return this.http.post("thirdParty/api/v1/payment/payInvoice",s)}payInvoiceByLoan(s){return this.http.post("thirdParty/api/v1/payment/payInvoiceByLoan",s)}transferToUser(s){return this.http.post("thirdParty/api/v1/payment/transferToUser",s)}getInvoice(s){return this.http.get("thirdParty/api/v1/payment/getInvoice",{params:s.correlationId?{invoiceId:String(s.invoiceId),correlationId:String(s.correlationId)}:{invoiceId:String(s.invoiceId)}})}transferToUserFromThing(s){return this.http.post("thirdParty/api/v1/payment/transferToUserFromThing",s)}autoLogin(s){return this.http.post("thirdParty/api/v2/auth/autoLogin",{serviceId:s})}getBotAccessPermission(s){return this.http.get(`thirdParty/api/v1/permission/providerServicePermissionInquiry/${s.correlationId}/${s.privilegeType}`)}autoLoginPayment(s){return this.http.post("thirdParty/api/v1/payment/autoLogin",s)}getWithdrawRuleInquiry(s){return this.http.get(`thirdParty/api/v1/withdrawrule/inquiry?BusinessId=${s}`)}getWithdrawRuleIssue(s){return this.http.post("thirdParty/api/v1/withdrawrule/issue",s)}getWithdrawRuleRevoke(s){return this.http.post("thirdParty/api/v1/withdrawrule/revoke",s)}getRule(s,_){return this.http.get(`thirdParty/api/v1/withdrawrule/getRule?BusinessId=${s}&RuleId=${_}`)}callApi(s){return this.http.post("/thirdParty/api/v1/apiProvider/callApi",s)}getUserDefaultCommands(){return this.http.get("thirdParty/api/v1/bot/getUserDefaultCommands")}}return oe.\u0275fac=function(s){return new(s||oe)(t.LFG(e.eN))},oe.\u0275prov=t.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})();class p{}class C{}class H{}class q{}var K=(()=>{return(oe=K||(K={}))[oe.TransferToUserAccess=1]="TransferToUserAccess",oe[oe.TransferToContactAccess=2]="TransferToContactAccess",oe[oe.InvoiceAccess=3]="InvoiceAccess",oe[oe.TransferToUserFromThingAccess=4]="TransferToUserFromThingAccess",oe[oe.UserProfile=5]="UserProfile",K;var oe})(),re=(()=>{return(oe=re||(re={}))[oe.Payable=1]="Payable",oe[oe.Payed=2]="Payed",oe[oe.Closed=3]="Closed",oe[oe.Cancelled=4]="Cancelled",re;var oe})()},58890:(M,b,n)=>{"use strict";n.d(b,{_:()=>l});var t=n(94650),e=n(80529);let l=(()=>{class h{constructor(d){this.http=d}getUserTickets(d){const y={};return Object.entries(d).forEach(g=>{const[p,f]=g;p&&f&&(y[p]=f)}),this.http.get("marketing/api/v1/ticketing/getUserTickets",{params:y})}getUserTicketDetails(d){return this.http.get("marketing/api/v2/ticketing/getUserTicketDetails",{params:{Offset:String(d.offset),Size:String(d.size),ticketId:String(d.ticketId)}})}getSubjects(){return this.http.get("marketing/api/v1/ticketing/getSubjects")}createTicket(d){return this.http.post("marketing/api/v2/ticketing/create",d)}sendAddNote(d){return this.http.post("marketing/api/v2/ticketing/addNote",d)}getAttachmentFile(d){return this.http.get("marketing/api/v2/ticketing/getAttachmentHashes",{params:{taskId:d}})}getSubjectDetail(d){return this.http.get("marketing/api/v1/ticketing/getSubjectInfo",{params:{subjectId:d}})}getOverallStatus(){return this.http.get("marketing/api/v1/ticketing/getOverallStatus")}}return h.\u0275fac=function(d){return new(d||h)(t.LFG(e.eN))},h.\u0275prov=t.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})()},54110:(M,b,n)=>{"use strict";n.d(b,{S:()=>l,f:()=>h});var t=n(94650),e=n(80529);let l=(()=>{class r{constructor(y){this.http=y}getUserStatus(){return this.http.get("oauth/api/v1/twoFactorAuth/getUserStatus")}enable(){return this.http.post("oauth2/api/v1/twoFactorAuth/enable",{})}disable(){return this.http.post("oauth/api/v1/twoFactorAuth/disable",{})}}return r.\u0275fac=function(y){return new(y||r)(t.LFG(e.eN))},r.\u0275prov=t.Yz7({token:r,factory:r.\u0275fac}),r})();var h=(()=>{return(r=h||(h={}))[r.Enabled=1]="Enabled",r[r.Disabled=2]="Disabled",r[r.NotAllowed=3]="NotAllowed",h;var r})()},62852:(M,b,n)=>{"use strict";n.d(b,{Z:()=>l});var t=n(94650),e=n(80529);let l=(()=>{class h{constructor(d){this.http=d}getCurrentUserCreditDebit(){return this.http.get("api/UserCredit/getCurrentUserCreditDebit")}getCurrentUserCreditTotalCredit(){return this.http.get("api/UserCredit/getCurrentUserTotalCreditTypes")}getCurrentUserGroupCredits(d){return this.http.post("api/UserCredit/getCurrentUserGroupCredits",d)}getGroupCreditDetails(d){return this.http.get(`api/UserCredit/getGroupCreditDetails/${d}`)}confirmManualPayment(d){return this.http.post(`api/UserCredit/confirmManualPayment/${d}`,{id:d})}}return h.\u0275fac=function(d){return new(d||h)(t.LFG(e.eN))},h.\u0275prov=t.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})()},793:(M,b,n)=>{"use strict";n.d(b,{R:()=>l});var t=n(94650),e=n(80529);let l=(()=>{class h{constructor(d){this.http=d}getValidationInquiryStatus(){return this.http.get("api/ValidationInquiry/getValidationInquiryStatus")}requestValidationInquiry(d){return this.http.post("api/ValidationInquiry/requestValidationInquiry",d)}getValidationInquiry(){return this.http.get("api/ValidationInquiry/getValidationInquiry")}getValidationOtpRemainingTime(d){return this.http.get("api/ValidationInquiry/getIranianOtpRemainingTime",{params:{ReportId:String(d)}})}resendValidationOtpCode(d){return this.http.post("api/ValidationInquiry/resendIranianOtp",{reportId:d})}verifyValidationOtpCode(d,y){return this.http.post("api/ValidationInquiry/verifyIranianOtp",{reportId:d,code:y})}getInquiryPaymentInformation(d=[]){return this.http.get("api/ValidationInquiry/getInquiryPaymentInformation",{params:{validationTypes:d}})}remainingShareCount(){return this.http.get("api/ValidationInquiry/remainingShareCount")}getValidationInquiryList(d,y){return this.http.get("api/ValidationInquiry/getValidationInquiryList",{params:{offset:d,size:y}})}validateShare(d){return this.http.get("api/ValidationInquiry/validateShare",{params:{MobileNumbers:d}})}shareValidationReport(d){return this.http.post("api/ValidationInquiry/shareValidationReport",{mobileNumbers:d})}getValidationReportLink(d){return this.http.get("api/ValidationInquiry/getValidationReportLink",{params:{FileId:d}})}getValidationInquiryStatusV2(d=[]){return this.http.get("api/v2/ValidationInquiry/getValidationInquiryStatus",{params:{validationTypes:d}})}getSelfDeclarationDynamicComponentCreator(){return this.http.get("api/ValidationInquiry/selfDeclarationDynamicComponentCreator")}registerSelfDeclaration(d){return this.http.post("api/ValidationInquiry/registerSelfDeclaration",d)}confirmSelfDeclaration(d={}){return this.http.post("api/ValidationInquiry/confirmSelfDeclaration",d)}payCommissionInvoice(d={}){return this.http.post("api/ValidationInquiry/payCommissionInvoice",d)}}return h.\u0275fac=function(d){return new(d||h)(t.LFG(e.eN))},h.\u0275prov=t.Yz7({token:h,factory:h.\u0275fac}),h})()},94:(M,b,n)=>{"use strict";n.d(b,{X:()=>d});var t=n(2994),e=n(40345),l=n(66699),h=n(94650),r=n(80529);let d=(()=>{class y{constructor(p){this.http=p}chargeWallet(p){return this.http.post("api/Wallet/chargeWalletByHash",{amount:p})}getWallet(){return this.http.get("api/Wallet/getCreditWithSign")}confirmSettlement(p){return this.http.post("api/Wallet/confirmSettlement",p)}getTransferToContacts(p){let f="";return Object.entries(p).forEach(C=>{const[N,a]=C;"isFiltered"!==N?.toString()&&"filterType"!==N?.toString()&&"reset"!==N?.toString()&&"resetFilterType"!==N?.toString()&&"contactUsername"!==N?.toString()&&"contactImage"!==N?.toString()&&(f+=N?.toString()+"="+encodeURIComponent(a?.toString())+"&")}),f=f.substring(0,f.length-1),this.http.get("api/Wallet/getTransferToContacts?"+f)}getTransferToContact(p){return this.http.get("api/Wallet/getTransferToContacts",{params:{EntityId:String(p)}})}createTransferRequest(p){return this.http.post("api/Wallet/createTransferRequest",p)}confirmTransferRequest(p){return this.http.post("api/Wallet/confirmTransferRequest",p)}rejectTransferRequest(p){return this.http.post("api/Wallet/rejectTransferRequest",p)}cancelTransferRequest(p){return this.http.post("api/Wallet/cancelTransferRequest",p)}getTransferRequest(p){return this.http.get("api/Wallet/getTransferRequest",{params:{TransferRequestId:String(p.transferRequestId)}})}getTransferRequests(p){let f="";return Object.entries(p).forEach(C=>{const[N,a]=C;"isFiltered"!==N?.toString()&&"filterType"!==N?.toString()&&"reset"!==N?.toString()&&"statusList"!==N?.toString()?f+=N?.toString()+"="+encodeURIComponent(a?.toString())+"&":"statusList"===N?.toString()&&p.statusList.forEach(O=>{f+=N?.toString()+"="+O+"&"})}),f=f.substring(0,f.length-1),this.http.get("api/Wallet/getTransferRequests?"+f)}transferToUserWithLimit(p){return this.http.post("api/Wallet/transferToUserWithLimit",p).pipe((0,t.b)(f=>{!f.needVerify&&(0,l.Sq)("RatingOnTransferToUserWithoutCode")&&e.dT.open.next(!0)}))}confirmTransferToContact(p){return this.http.post("api/Wallet/confirmTransferToContact",p).pipe((0,t.b)(()=>{(0,l.Sq)("RatingOnTransferToUserWithCode")&&e.dT.open.next(!0)}))}getTransferFromContactToMeList(p){let f="";return Object.entries(p).forEach(C=>{const[N,a]=C;"isFiltered"!==N?.toString()&&"filterType"!==N?.toString()&&"reset"!==N?.toString()&&"resetFilterType"!==N?.toString()&&(f+=N?.toString()+"="+encodeURIComponent(a?.toString())+"&")}),f=f.substring(0,f.length-1),this.http.get("api/Wallet/getTransferFromContactToMeList?"+f)}getInvoicePaymentMethod(p){return this.http.get("api/Wallet/getInvoicePaymentMethods",{params:{invoiceId:p}})}requestSettlementByToolId(p){return this.http.post("api/Wallet/requestSettlementByToolId",p)}polTransfer(p){return this.http.post("api/Wallet/polTransfer",p)}chargeWalletTypesList(p){return this.http.get("api/Wallet/chargeWalletTypesList",{params:{Amount:String(p)}})}transactionInquiry(p){return this.http.get("api/Wallet/transactionInquiry",{params:{TransactionId:String(p)}})}polTransactionInquiry(p){return this.http.get("api/Wallet/polTransactionInquiry",{params:{TransactionId:String(p)}})}confirmPolTransfer(p){return this.http.post("api/Wallet/confirmPolTransfer",p)}}return y.\u0275fac=function(p){return new(p||y)(h.LFG(r.eN))},y.\u0275prov=h.Yz7({token:y,factory:y.\u0275fac}),y})()},53864:(M,b,n)=>{"use strict";n.d(b,{H:()=>l});var t=n(40345),e=n(94650);let l=(()=>{class h{static handleScreenResize(d,y=null){if((0,t.Jj)()?.innerWidth<=768)try{d()}catch(g){console.error("handleScreenResize callbackForSmallerThan768",g)}else if(null!==y)try{y()}catch(g){console.error("handleScreenResize otherwise",g)}}static handleScreenResize992(d,y=null){if((0,t.Jj)()?.innerWidth<=992)try{d()}catch(g){console.error("handleScreenResize992 callbackForSmallerThan992",g)}else if(null!==y)try{y()}catch(g){console.error("handleScreenResize992 otherwise",g)}}}return h.\u0275fac=function(d){return new(d||h)},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac}),h})()},74595:(M,b,n)=>{"use strict";n.d(b,{Z:()=>l});var t=n(40345),e=n(94650);let l=(()=>{class h{constructor(){try{(0,t.Jj)()&&((0,t.Jj)().onresize=()=>{this.handleScreenSize()})}catch{console.error("MustHandleScreenResize")}}ngOnInit(){this.handleScreenSize()}handleScreenSize(){console.warn("MustHandleScreenResize","handleScreenSize","This Method Must be Overridden")}showHeader(){try{document.getElementById("header").classList.remove("header-hidden")}catch{}}hideHeader(){try{document.getElementById("header").classList.add("header-hidden")}catch{}}hideHeaderOnMobile(){try{(0,t.Jj)()?.innerWidth<768&&document.getElementById("header").classList.add("header-hidden")}catch{}}}return h.\u0275fac=function(d){return new(d||h)},h.\u0275dir=e.lG2({type:h}),h})()},83797:(M,b,n)=>{"use strict";n.d(b,{Z:()=>r});var t=n(40345),e=n(53864),l=n(74595),h=n(94650);let r=(()=>{class d extends l.Z{constructor(){super(),this._listenToWindowResize()}get isHeaderVisible(){try{return!document.getElementById("header").classList.contains("header-hidden")}catch{}}ngOnDestroy(){try{document.getElementById("header").classList.remove("header-hidden"),(0,t.Jj)()&&((0,t.Jj)().onresize=null)}catch{}}respondToWindowResize(){e.H.handleScreenResize(()=>{this.hideHeader(),setTimeout(()=>{this.hideHeader()},50)},()=>{this.showHeader()})}showHeader(){try{document.getElementById("header").classList.remove("header-hidden")}catch{}}hideHeader(){try{document.getElementById("header").classList.add("header-hidden")}catch{}}_listenToWindowResize(){this.respondToWindowResize(),(0,t.Jj)()&&((0,t.Jj)().onresize=()=>{this.respondToWindowResize()})}}return d.\u0275fac=function(g){return new(g||d)},d.\u0275dir=h.lG2({type:d,features:[h.qOj]}),d})()},8479:(M,b,n)=>{"use strict";n.d(b,{H7:()=>e,NZ:()=>t,s3:()=>l});const t={production:!0,apiUrl:"https://api.wepod.ir/",subDirectory:"api",appVersion:"3.18.15.5",language:"fa-IR"},e={socketAddress:"wss://msg.pod.ir/ws",ssoHost:"https://accounts.pod.ir",platformHost:"https://api.pod.ir/srv/core",fileServer:"https://core.pod.ir",podSpaceFileServer:"https://podspace.pod.ir"},l={apiKey:"AIzaSyB3CDbEGMHPfHpu93mSxJ-VsSM0eVZpu1g",authDomain:"wepod-b1601.firebaseapp.com",databaseURL:"https://wepod-b1601.firebaseio.com",projectId:"wepod-b1601",storageBucket:"wepod-b1601.appspot.com",messagingSenderId:"984841686947",appId:"1:984841686947:web:466247a3ef0b5b32aad416",measurementId:"G-P4G5076PTJ"}},84464:(M,b,n)=>{"use strict";var t=n(11481),e=n(94650),l=n(55386),h=n(84179),r=n(83353),d=n(80529),y=n(12011),g=n(8929),p=n(21086),f=n(56498),C=n(5254),N=n(36787),a=n(57770),O=n(87545),H=n(24850),F=n(5154),V=n(87224),D=n(2313),U=n(13334),q=n(92198),J=n(3639),G=n(36895);n(70259);var Qe=n(49671),Ot=n(49681),At=n(34859),Ze=n(42090),at=n(41877);const Be=new Map,Lt={activated:!1,tokenObservers:[]},_e={initialized:!1,enabled:!1};function ne(T){return Be.get(T)||Object.assign({},Lt)}function Te(){return _e}class st{constructor(S,o,A,ee,he){if(this.operation=S,this.retryPolicy=o,this.getWaitDuration=A,this.lowerBound=ee,this.upperBound=he,this.pending=null,this.nextErrorWaitInterval=ee,ee>he)throw new Error("Proactive refresh lower bound greater than upper bound!")}start(){this.nextErrorWaitInterval=this.lowerBound,this.process(!0).catch(()=>{})}stop(){this.pending&&(this.pending.reject("cancelled"),this.pending=null)}isRunning(){return!!this.pending}process(S){var o=this;return(0,Qe.Z)(function*(){o.stop();try{o.pending=new Ze.BH,yield function Dt(T){return new Promise(S=>{setTimeout(S,T)})}(o.getNextRun(S)),o.pending.resolve(),yield o.pending.promise,o.pending=new Ze.BH,yield o.operation(),o.pending.resolve(),yield o.pending.promise,o.process(!0).catch(()=>{})}catch(A){o.retryPolicy(A)?o.process(!1).catch(()=>{}):o.stop()}})()}getNextRun(S){if(S)return this.nextErrorWaitInterval=this.lowerBound,this.getWaitDuration();{const o=this.nextErrorWaitInterval;return this.nextErrorWaitInterval*=2,this.nextErrorWaitInterval>this.upperBound&&(this.nextErrorWaitInterval=this.upperBound),o}}}const nt=new Ze.LL("appCheck","AppCheck",{"already-initialized":"You have already called initializeAppCheck() for FirebaseApp {$appName} with different options. To avoid this error, call initializeAppCheck() with the same options as when it was originally called. This will return the already initialized instance.","use-before-activation":"App Check is being used before initializeAppCheck() is called for FirebaseApp {$appName}. Call initializeAppCheck() before instantiating other Firebase services.","fetch-network-error":"Fetch failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-parse-error":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status-error":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","recaptcha-error":"ReCAPTCHA error.",throttled:"Requests throttled due to {$httpStatus} error. Attempts allowed again after {$time}"});function Ne(T){if(!ne(T).activated)throw nt.create("use-before-activation",{appName:T.name})}function Me(T,S){return We.apply(this,arguments)}function We(){return(We=(0,Qe.Z)(function*({url:T,body:S},o){const A={"Content-Type":"application/json"},ee=o.getImmediate({optional:!0});if(ee){const nn=yield ee.getHeartbeatsHeader();nn&&(A["X-Firebase-Client"]=nn)}const he={method:"POST",body:JSON.stringify(S),headers:A};let Ye,bt;try{Ye=yield fetch(T,he)}catch(nn){throw nt.create("fetch-network-error",{originalErrorMessage:null==nn?void 0:nn.message})}if(200!==Ye.status)throw nt.create("fetch-status-error",{httpStatus:Ye.status});try{bt=yield Ye.json()}catch(nn){throw nt.create("fetch-parse-error",{originalErrorMessage:null==nn?void 0:nn.message})}const er=bt.ttl.match(/^([\d.]+)(s)$/);if(!er||!er[2]||isNaN(Number(er[1])))throw nt.create("fetch-parse-error",{originalErrorMessage:`ttl field (timeToLive) is not in standard Protobuf Duration format: ${bt.ttl}`});const mr=1e3*Number(er[1]),Kr=Date.now();return{token:bt.token,expireTimeMillis:Kr+mr,issuedAtTimeMillis:Kr}})).apply(this,arguments)}function Zt(T,S){const{projectId:o,appId:A,apiKey:ee}=T.options;return{url:`https://content-firebaseappcheck.googleapis.com/v1/projects/${o}/apps/${A}:exchangeDebugToken?key=${ee}`,body:{debug_token:S}}}const gt="firebase-app-check-store";let hr=null;function Cr(){return hr||(hr=new Promise((T,S)=>{try{const o=indexedDB.open("firebase-app-check-database",1);o.onsuccess=A=>{T(A.target.result)},o.onerror=A=>{var ee;S(nt.create("storage-open",{originalErrorMessage:null===(ee=A.target.error)||void 0===ee?void 0:ee.message}))},o.onupgradeneeded=A=>{0===A.oldVersion&&A.target.result.createObjectStore(gt,{keyPath:"compositeKey"})}}catch(o){S(nt.create("storage-open",{originalErrorMessage:null==o?void 0:o.message}))}}),hr)}function kt(){return(kt=(0,Qe.Z)(function*(T,S){const A=(yield Cr()).transaction(gt,"readwrite"),he=A.objectStore(gt).put({compositeKey:T,value:S});return new Promise((Ye,bt)=>{he.onsuccess=er=>{Ye()},A.onerror=er=>{var mr;bt(nt.create("storage-set",{originalErrorMessage:null===(mr=er.target.error)||void 0===mr?void 0:mr.message}))}})})).apply(this,arguments)}const St=new at.Yd("@firebase/app-check");function ct(T,S){return(0,Ze.hl)()?function Pt(T,S){return function Ke(T,S){return kt.apply(this,arguments)}(function lt(T){return`${T.options.appId}-${T.name}`}(T),S)}(T,S).catch(o=>{St.warn(`Failed to write token to IndexedDB. Error: ${o}`)}):Promise.resolve()}function Vr(){return Te().enabled}function Sr(){return Ar.apply(this,arguments)}function Ar(){return(Ar=(0,Qe.Z)(function*(){const T=Te();if(T.enabled&&T.token)return T.token.promise;throw Error("\n            Can't get debug token in production mode.\n        ")})).apply(this,arguments)}const Fr={error:"UNKNOWN_ERROR"};function Gt(T){return Ze.US.encodeString(JSON.stringify(T),!1)}function le(T){return Ce.apply(this,arguments)}function Ce(){return(Ce=(0,Qe.Z)(function*(T,S=!1){const o=T.app;Ne(o);const A=ne(o);let he,ee=A.token;if(ee&&!Ct(ee)&&(A.token=void 0,ee=void 0),!ee){const er=yield A.cachedTokenPromise;er&&(Ct(er)?ee=er:yield ct(o,void 0))}if(!S&&ee&&Ct(ee))return{token:ee.token};let bt,Ye=!1;if(Vr()){A.exchangeTokenPromise||(A.exchangeTokenPromise=Me(Zt(o,yield Sr()),T.heartbeatServiceProvider).finally(()=>{A.exchangeTokenPromise=void 0}),Ye=!0);const er=yield A.exchangeTokenPromise;return yield ct(o,er),A.token=er,{token:er.token}}try{A.exchangeTokenPromise||(A.exchangeTokenPromise=A.provider.getToken().finally(()=>{A.exchangeTokenPromise=void 0}),Ye=!0),ee=yield ne(o).exchangeTokenPromise}catch(er){"appCheck/throttled"===er.code?St.warn(er.message):St.error(er),he=er}return ee?he?bt=Ct(ee)?{token:ee.token,internalError:he}:zt(he):(bt={token:ee.token},A.token=ee,yield ct(o,ee)):bt=zt(he),Ye&&Xe(o,bt),bt})).apply(this,arguments)}function Pe(T,S){const o=ne(T),A=o.tokenObservers.filter(ee=>ee.next!==S);0===A.length&&o.tokenRefresher&&o.tokenRefresher.isRunning()&&o.tokenRefresher.stop(),o.tokenObservers=A}function Oe(T){const{app:S}=T,o=ne(S);let A=o.tokenRefresher;A||(A=function Se(T){const{app:S}=T;return new st((0,Qe.Z)(function*(){let A;if(A=ne(S).token?yield le(T,!0):yield le(T),A.error)throw A.error;if(A.internalError)throw A.internalError}),()=>!0,()=>{const o=ne(S);if(o.token){let A=o.token.issuedAtTimeMillis+.5*(o.token.expireTimeMillis-o.token.issuedAtTimeMillis)+3e5;return A=Math.min(A,o.token.expireTimeMillis-3e5),Math.max(0,A-Date.now())}return 0},3e4,96e4)}(T),o.tokenRefresher=A),!A.isRunning()&&o.isTokenAutoRefreshEnabled&&A.start()}function Xe(T,S){const o=ne(T).tokenObservers;for(const A of o)try{"EXTERNAL"===A.type&&null!=S.error?A.error(S.error):A.next(S)}catch{}}function Ct(T){return T.expireTimeMillis-Date.now()>0}function zt(T){return{token:Gt(Fr),error:T}}class kr{constructor(S,o){this.app=S,this.heartbeatServiceProvider=o}_delete(){const{tokenObservers:S}=ne(this.app);for(const o of S)Pe(this.app,o.next);return Promise.resolve()}}const Bt="app-check-internal";!function pr(){(0,Ot._registerComponent)(new At.wA("app-check",T=>function Br(T,S){return new kr(T,S)}(T.getProvider("app").getImmediate(),T.getProvider("heartbeat")),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((T,S,o)=>{T.getProvider(Bt).initialize()})),(0,Ot._registerComponent)(new At.wA(Bt,T=>function xt(T){return{getToken:S=>le(T,S),addTokenListener:S=>function Ie(T,S,o,A){const{app:ee}=T,he=ne(ee);if(he.tokenObservers=[...he.tokenObservers,{next:o,error:A,type:S}],he.token&&Ct(he.token)){const bt=he.token;Promise.resolve().then(()=>{o({token:bt.token}),Oe(T)}).catch(()=>{})}he.cachedTokenPromise.then(()=>Oe(T))}(T,"INTERNAL",S),removeTokenListener:S=>Pe(T.app,S)}}(T.getProvider("app-check").getImmediate()),"PUBLIC").setInstantiationMode("EXPLICIT")),(0,Ot.registerVersion)("@firebase/app-check","0.6.4")}();class sn{constructor(){return(0,J.vb)("app-check")}}typeof window<"u"&&window;var Fn=n(29260);const zn=new e.OlP("angularfire2.auth.use-emulator"),ai=new e.OlP("angularfire2.auth.settings"),_i=new e.OlP("angularfire2.auth.tenant-id"),wi=new e.OlP("angularfire2.auth.langugage-code"),Wn=new e.OlP("angularfire2.auth.use-device-language"),$r=new e.OlP("angularfire.auth.persistence"),Pn=(T,S,o,A,ee,he,Ye,bt)=>(0,y.cc)(`${T.name}.auth`,"AngularFireAuth",T.name,()=>{const er=S.runOutsideAngular(()=>T.auth());if(o&&er.useEmulator(...o),A&&(er.tenantId=A),er.languageCode=ee,he&&er.useDeviceLanguage(),Ye)for(const[mr,Kr]of Object.entries(Ye))er.settings[mr]=Kr;return bt&&er.setPersistence(bt),er},[o,A,ee,he,Ye,bt]);let An=(()=>{class T{constructor(o,A,ee,he,Ye,bt,er,mr,Kr,nn,vn,Hn){const Yn=new g.xQ,ii=(0,p.of)(void 0).pipe((0,a.QV)(Ye.outsideAngular),(0,O.w)(()=>he.runOutsideAngular(()=>Promise.resolve().then(n.bind(n,69800)))),(0,H.U)(()=>(0,y.on)(o,he,A)),(0,H.U)(ki=>Pn(ki,he,bt,mr,Kr,nn,er,vn)),(0,F.d)({bufferSize:1,refCount:!1}));if((0,G.PM)(ee))this.authState=this.user=this.idToken=this.idTokenResult=this.credential=(0,p.of)(null);else{ii.pipe((0,V.P)()).subscribe();const Ls=ii.pipe((0,O.w)(Is=>Is.getRedirectResult().then(ul=>ul,()=>null)),J.iC,(0,F.d)({bufferSize:1,refCount:!1})),Ws=ii.pipe((0,O.w)(Is=>new f.y(ul=>({unsubscribe:he.runOutsideAngular(()=>Is.onAuthStateChanged(Do=>ul.next(Do),Do=>ul.error(Do),()=>ul.complete()))})))),ya=ii.pipe((0,O.w)(Is=>new f.y(ul=>({unsubscribe:he.runOutsideAngular(()=>Is.onIdTokenChanged(Do=>ul.next(Do),Do=>ul.error(Do),()=>ul.complete()))}))));this.authState=Ls.pipe((0,D.c)(Ws),(0,U.R)(Ye.outsideAngular),(0,a.QV)(Ye.insideAngular)),this.user=Ls.pipe((0,D.c)(ya),(0,U.R)(Ye.outsideAngular),(0,a.QV)(Ye.insideAngular)),this.idToken=this.user.pipe((0,O.w)(Is=>Is?(0,C.D)(Is.getIdToken()):(0,p.of)(null))),this.idTokenResult=this.user.pipe((0,O.w)(Is=>Is?(0,C.D)(Is.getIdTokenResult()):(0,p.of)(null))),this.credential=(0,N.T)(Ls,Yn,this.authState.pipe((0,q.h)(Is=>!Is))).pipe((0,H.U)(Is=>(null==Is?void 0:Is.user)?Is:null),(0,U.R)(Ye.outsideAngular),(0,a.QV)(Ye.insideAngular))}return(0,y.pX)(this,ii,he,{spy:{apply:(ki,Ls,Ws)=>{(ki.startsWith("signIn")||ki.startsWith("createUser"))&&Ws.then(ya=>Yn.next(ya))}}})}}return T.\u0275fac=function(o){return new(o||T)(e.LFG(y.Dh),e.LFG(y.xv,8),e.LFG(e.Lbi),e.LFG(e.R0b),e.LFG(J.HU),e.LFG(zn,8),e.LFG(ai,8),e.LFG(_i,8),e.LFG(wi,8),e.LFG(Wn,8),e.LFG($r,8),e.LFG(sn,8))},T.\u0275prov=e.Yz7({token:T,factory:T.\u0275fac,providedIn:"any"}),T})(),Qn=(()=>{class T{constructor(){Fn.Z.registerVersion("angularfire",J.q4.full,"auth-compat")}}return T.\u0275fac=function(o){return new(o||T)},T.\u0275mod=e.oAB({type:T}),T.\u0275inj=e.cJS({providers:[An]}),T})();var yi=n(20353),oi=n(88117),di=n(92014),Qi=n(75778),Di=n(826),ts=n(40448);class hs{constructor(S,o){this.observables=S,this.project=o}call(S,o){return o.subscribe(new Fi(S,this.observables,this.project))}}class Fi extends Di.L{constructor(S,o,A){super(S),this.observables=o,this.project=A,this.toRespond=[];const ee=o.length;this.values=new Array(ee);for(let he=0;he<ee;he++)this.toRespond.push(he);for(let he=0;he<ee;he++)this.add((0,ts.D)(this,o[he],void 0,he))}notifyNext(S,o,A){this.values[A]=o;const ee=this.toRespond;if(ee.length>0){const he=ee.indexOf(A);-1!==he&&ee.splice(he,1)}}notifyComplete(){}_next(S){if(0===this.toRespond.length){const o=[S,...this.values];this.project?this._tryProject(o):this.destination.next(o)}}_tryProject(S){let o;try{o=this.project.apply(this,S)}catch(A){return void this.destination.error(A)}this.destination.next(o)}}var Os=n(43489);class rs{constructor(S){this.predicate=S}call(S,o){return o.subscribe(new fa(S,this.predicate))}}class fa extends Os.L{constructor(S,o){super(S),this.predicate=o,this.skipping=!0,this.index=0}_next(S){const o=this.destination;this.skipping&&this.tryCallPredicate(S),this.skipping||o.next(S)}tryCallPredicate(S){try{const o=this.predicate(S,this.index++);this.skipping=Boolean(o)}catch(o){this.destination.error(o)}}}n(69800);var Zs=n(63942);const ps="@firebase/database";let ka="";function Xs(T){ka=T}class ks{constructor(S){this.domStorage_=S,this.prefix_="firebase:"}set(S,o){null==o?this.domStorage_.removeItem(this.prefixedName_(S)):this.domStorage_.setItem(this.prefixedName_(S),(0,Ze.Wl)(o))}get(S){const o=this.domStorage_.getItem(this.prefixedName_(S));return null==o?null:(0,Ze.cI)(o)}remove(S){this.domStorage_.removeItem(this.prefixedName_(S))}prefixedName_(S){return this.prefix_+S}toString(){return this.domStorage_.toString()}}class ia{constructor(){this.cache_={},this.isInMemoryStorage=!0}set(S,o){null==o?delete this.cache_[S]:this.cache_[S]=o}get(S){return(0,Ze.r3)(this.cache_,S)?this.cache_[S]:null}remove(S){delete this.cache_[S]}}const Qa=function(T){try{if(typeof window<"u"&&typeof window[T]<"u"){const S=window[T];return S.setItem("firebase:sentinel","cache"),S.removeItem("firebase:sentinel"),new ks(S)}}catch{}return new ia},Ea=Qa("localStorage"),Ma=Qa("sessionStorage"),qt=new at.Yd("@firebase/database"),jt=function(){let T=1;return function(){return T++}}(),Mt=function(T){const S=(0,Ze.dS)(T),o=new Ze.gQ;o.update(S);const A=o.digest();return Ze.US.encodeByteArray(A)},Mr=function(...T){let S="";for(let o=0;o<T.length;o++){const A=T[o];Array.isArray(A)||A&&"object"==typeof A&&"number"==typeof A.length?S+=Mr.apply(null,A):S+="object"==typeof A?(0,Ze.Wl)(A):A,S+=" "}return S};let Mn=null,ui=!0;const ss=function(T,S){(0,Ze.hu)(!S||!0===T||!1===T,"Can't turn on custom loggers persistently."),!0===T?(qt.logLevel=at.in.VERBOSE,Mn=qt.log.bind(qt),S&&Ma.set("logging_enabled",!0)):"function"==typeof T?Mn=T:(Mn=null,Ma.remove("logging_enabled"))},Ki=function(...T){if(!0===ui&&(ui=!1,null===Mn&&!0===Ma.get("logging_enabled")&&ss(!0)),Mn){const S=Mr.apply(null,T);Mn(S)}},zs=function(T){return function(...S){Ki(T,...S)}},Na=function(...T){const S="FIREBASE INTERNAL ERROR: "+Mr(...T);qt.error(S)},sa=function(...T){const S=`FIREBASE FATAL ERROR: ${Mr(...T)}`;throw qt.error(S),new Error(S)},xn=function(...T){const S="FIREBASE WARNING: "+Mr(...T);qt.warn(S)},Xa=function(T){return"number"==typeof T&&(T!=T||T===Number.POSITIVE_INFINITY||T===Number.NEGATIVE_INFINITY)},cn="[MIN_NAME]",Qt="[MAX_NAME]",wr=function(T,S){if(T===S)return 0;if(T===cn||S===Qt)return-1;if(S===cn||T===Qt)return 1;{const o=So(T),A=So(S);return null!==o?null!==A?o-A==0?T.length-S.length:o-A:-1:null!==A?1:T<S?-1:1}},On=function(T,S){return T===S?0:T<S?-1:1},Ci=function(T,S){if(S&&T in S)return S[T];throw new Error("Missing required key ("+T+") in object: "+(0,Ze.Wl)(S))},Si=function(T){if("object"!=typeof T||null===T)return(0,Ze.Wl)(T);const S=[];for(const A in T)S.push(A);S.sort();let o="{";for(let A=0;A<S.length;A++)0!==A&&(o+=","),o+=(0,Ze.Wl)(S[A]),o+=":",o+=Si(T[S[A]]);return o+="}",o},Cs=function(T,S){const o=T.length;if(o<=S)return[T];const A=[];for(let ee=0;ee<o;ee+=S)A.push(T.substring(ee,ee+S>o?o:ee+S));return A};function Gi(T,S){for(const o in T)T.hasOwnProperty(o)&&S(o,T[o])}const ha=function(T){(0,Ze.hu)(!Xa(T),"Invalid JSON number");const A=1023;let ee,he,Ye,bt,er;0===T?(he=0,Ye=0,ee=1/T==-1/0?1:0):(ee=T<0,(T=Math.abs(T))>=Math.pow(2,1-A)?(bt=Math.min(Math.floor(Math.log(T)/Math.LN2),A),he=bt+A,Ye=Math.round(T*Math.pow(2,52-bt)-Math.pow(2,52))):(he=0,Ye=Math.round(T/Math.pow(2,-1074))));const mr=[];for(er=52;er;er-=1)mr.push(Ye%2?1:0),Ye=Math.floor(Ye/2);for(er=11;er;er-=1)mr.push(he%2?1:0),he=Math.floor(he/2);mr.push(ee?1:0),mr.reverse();const Kr=mr.join("");let nn="";for(er=0;er<64;er+=8){let vn=parseInt(Kr.substr(er,8),2).toString(16);1===vn.length&&(vn="0"+vn),nn+=vn}return nn.toLowerCase()},Ca=new RegExp("^-?(0*)\\d{1,10}$"),So=function(T){if(Ca.test(T)){const S=Number(T);if(S>=-2147483648&&S<=2147483647)return S}return null},eo=function(T){try{T()}catch(S){setTimeout(()=>{throw xn("Exception was thrown by user callback.",S.stack||""),S},Math.floor(0))}},Za=function(T,S){const o=setTimeout(T,S);return"number"==typeof o&&typeof Deno<"u"&&Deno.unrefTimer?Deno.unrefTimer(o):"object"==typeof o&&o.unref&&o.unref(),o};class To{constructor(S,o){this.appName_=S,this.appCheckProvider=o,this.appCheck=null==o?void 0:o.getImmediate({optional:!0}),this.appCheck||null==o||o.get().then(A=>this.appCheck=A)}getToken(S){return this.appCheck?this.appCheck.getToken(S):new Promise((o,A)=>{setTimeout(()=>{this.appCheck?this.getToken(S).then(o,A):o(null)},0)})}addTokenChangeListener(S){var o;null===(o=this.appCheckProvider)||void 0===o||o.get().then(A=>A.addTokenListener(S))}notifyForInvalidToken(){xn(`Provided AppCheck credentials for the app named "${this.appName_}" are invalid. This usually indicates your app was not initialized correctly.`)}}class Zo{constructor(S,o,A){this.appName_=S,this.firebaseOptions_=o,this.authProvider_=A,this.auth_=null,this.auth_=A.getImmediate({optional:!0}),this.auth_||A.onInit(ee=>this.auth_=ee)}getToken(S){return this.auth_?this.auth_.getToken(S).catch(o=>o&&"auth/token-not-initialized"===o.code?(Ki("Got auth/token-not-initialized error.  Treating as null token."),null):Promise.reject(o)):new Promise((o,A)=>{setTimeout(()=>{this.auth_?this.getToken(S).then(o,A):o(null)},0)})}addTokenChangeListener(S){this.auth_?this.auth_.addAuthTokenListener(S):this.authProvider_.get().then(o=>o.addAuthTokenListener(S))}removeTokenChangeListener(S){this.authProvider_.get().then(o=>o.removeAuthTokenListener(S))}notifyForInvalidToken(){let S='Provided authentication credentials for the app named "'+this.appName_+'" are invalid. This usually indicates your app was not initialized correctly. ';S+="credential"in this.firebaseOptions_?'Make sure the "credential" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':"serviceAccount"in this.firebaseOptions_?'Make sure the "serviceAccount" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':'Make sure the "apiKey" and "databaseURL" properties provided to initializeApp() match the values provided for your app at https://console.firebase.google.com/.',xn(S)}}let to=(()=>{class T{constructor(o){this.accessToken=o}getToken(o){return Promise.resolve({accessToken:this.accessToken})}addTokenChangeListener(o){o(this.accessToken)}removeTokenChangeListener(o){}notifyForInvalidToken(){}}return T.OWNER="owner",T})();const za=/(console\.firebase|firebase-console-\w+\.corp|firebase\.corp)\.google\.com/,Ko="websocket",ta="long_polling";class wa{constructor(S,o,A,ee,he=!1,Ye="",bt=!1,er=!1){this.secure=o,this.namespace=A,this.webSocketOnly=ee,this.nodeAdmin=he,this.persistenceKey=Ye,this.includeNamespaceInQueryParams=bt,this.isUsingEmulator=er,this._host=S.toLowerCase(),this._domain=this._host.substr(this._host.indexOf(".")+1),this.internalHost=Ea.get("host:"+S)||this._host}isCacheableHost(){return"s-"===this.internalHost.substr(0,2)}isCustomHost(){return"firebaseio.com"!==this._domain&&"firebaseio-demo.com"!==this._domain}get host(){return this._host}set host(S){S!==this.internalHost&&(this.internalHost=S,this.isCacheableHost()&&Ea.set("host:"+this._host,this.internalHost))}toString(){let S=this.toURLString();return this.persistenceKey&&(S+="<"+this.persistenceKey+">"),S}toURLString(){return`${this.secure?"https://":"http://"}${this.host}/${this.includeNamespaceInQueryParams?`?ns=${this.namespace}`:""}`}}function qo(T,S,o){let A;if((0,Ze.hu)("string"==typeof S,"typeof type must == string"),(0,Ze.hu)("object"==typeof o,"typeof params must == object"),S===Ko)A=(T.secure?"wss://":"ws://")+T.internalHost+"/.ws?";else{if(S!==ta)throw new Error("Unknown connection type: "+S);A=(T.secure?"https://":"http://")+T.internalHost+"/.lp?"}(function Ps(T){return T.host!==T.internalHost||T.isCustomHost()||T.includeNamespaceInQueryParams})(T)&&(o.ns=T.namespace);const ee=[];return Gi(o,(he,Ye)=>{ee.push(he+"="+Ye)}),A+ee.join("&")}class Pu{constructor(){this.counters_={}}incrementCounter(S,o=1){(0,Ze.r3)(this.counters_,S)||(this.counters_[S]=0),this.counters_[S]+=o}get(){return(0,Ze.p$)(this.counters_)}}const Jo={},Ba={};function lo(T){const S=T.toString();return Jo[S]||(Jo[S]=new Pu),Jo[S]}class $o{constructor(S){this.onMessage_=S,this.pendingResponses=[],this.currentResponseNum=0,this.closeAfterResponse=-1,this.onClose=null}closeAfter(S,o){this.closeAfterResponse=S,this.onClose=o,this.closeAfterResponse<this.currentResponseNum&&(this.onClose(),this.onClose=null)}handleResponse(S,o){for(this.pendingResponses[S]=o;this.pendingResponses[this.currentResponseNum];){const A=this.pendingResponses[this.currentResponseNum];delete this.pendingResponses[this.currentResponseNum];for(let ee=0;ee<A.length;++ee)A[ee]&&eo(()=>{this.onMessage_(A[ee])});if(this.currentResponseNum===this.closeAfterResponse){this.onClose&&(this.onClose(),this.onClose=null);break}this.currentResponseNum++}}}class bs{constructor(S,o,A,ee,he,Ye,bt){this.connId=S,this.repoInfo=o,this.applicationId=A,this.appCheckToken=ee,this.authToken=he,this.transportSessionId=Ye,this.lastSessionId=bt,this.bytesSent=0,this.bytesReceived=0,this.everConnected_=!1,this.log_=zs(S),this.stats_=lo(o),this.urlFn=er=>(this.appCheckToken&&(er.ac=this.appCheckToken),qo(o,ta,er))}open(S,o){this.curSegmentNum=0,this.onDisconnect_=o,this.myPacketOrderer=new $o(S),this.isClosed_=!1,this.connectTimeoutTimer_=setTimeout(()=>{this.log_("Timed out trying to connect."),this.onClosed_(),this.connectTimeoutTimer_=null},Math.floor(3e4)),function(T){if((0,Ze.Yr)()||"complete"===document.readyState)T();else{let S=!1;const o=function(){document.body?S||(S=!0,T()):setTimeout(o,Math.floor(10))};document.addEventListener?(document.addEventListener("DOMContentLoaded",o,!1),window.addEventListener("load",o,!1)):document.attachEvent&&(document.attachEvent("onreadystatechange",()=>{"complete"===document.readyState&&o()}),window.attachEvent("onload",o))}}(()=>{if(this.isClosed_)return;this.scriptTagHolder=new qi((...he)=>{const[Ye,bt,er,mr,Kr]=he;if(this.incrementIncomingBytes_(he),this.scriptTagHolder)if(this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null),this.everConnected_=!0,"start"===Ye)this.id=bt,this.password=er;else{if("close"!==Ye)throw new Error("Unrecognized command received: "+Ye);bt?(this.scriptTagHolder.sendNewPolls=!1,this.myPacketOrderer.closeAfter(bt,()=>{this.onClosed_()})):this.onClosed_()}},(...he)=>{const[Ye,bt]=he;this.incrementIncomingBytes_(he),this.myPacketOrderer.handleResponse(Ye,bt)},()=>{this.onClosed_()},this.urlFn);const A={start:"t"};A.ser=Math.floor(1e8*Math.random()),this.scriptTagHolder.uniqueCallbackIdentifier&&(A.cb=this.scriptTagHolder.uniqueCallbackIdentifier),A.v="5",this.transportSessionId&&(A.s=this.transportSessionId),this.lastSessionId&&(A.ls=this.lastSessionId),this.applicationId&&(A.p=this.applicationId),this.appCheckToken&&(A.ac=this.appCheckToken),typeof location<"u"&&location.hostname&&za.test(location.hostname)&&(A.r="f");const ee=this.urlFn(A);this.log_("Connecting via long-poll to "+ee),this.scriptTagHolder.addTag(ee,()=>{})})}start(){this.scriptTagHolder.startLongPoll(this.id,this.password),this.addDisconnectPingFrame(this.id,this.password)}static forceAllow(){bs.forceAllow_=!0}static forceDisallow(){bs.forceDisallow_=!0}static isAvailable(){return!((0,Ze.Yr)()||!bs.forceAllow_&&(bs.forceDisallow_||!(typeof document<"u")||null==document.createElement||"object"==typeof window&&window.chrome&&window.chrome.extension&&!/^chrome/.test(window.location.href)||"object"==typeof Windows&&"object"==typeof Windows.UI))}markConnectionHealthy(){}shutdown_(){this.isClosed_=!0,this.scriptTagHolder&&(this.scriptTagHolder.close(),this.scriptTagHolder=null),this.myDisconnFrame&&(document.body.removeChild(this.myDisconnFrame),this.myDisconnFrame=null),this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null)}onClosed_(){this.isClosed_||(this.log_("Longpoll is closing itself"),this.shutdown_(),this.onDisconnect_&&(this.onDisconnect_(this.everConnected_),this.onDisconnect_=null))}close(){this.isClosed_||(this.log_("Longpoll is being closed."),this.shutdown_())}send(S){const o=(0,Ze.Wl)(S);this.bytesSent+=o.length,this.stats_.incrementCounter("bytes_sent",o.length);const A=(0,Ze.h$)(o),ee=Cs(A,1840);for(let he=0;he<ee.length;he++)this.scriptTagHolder.enqueueSegment(this.curSegmentNum,ee.length,ee[he]),this.curSegmentNum++}addDisconnectPingFrame(S,o){if((0,Ze.Yr)())return;this.myDisconnFrame=document.createElement("iframe");const A={dframe:"t"};A.id=S,A.pw=o,this.myDisconnFrame.src=this.urlFn(A),this.myDisconnFrame.style.display="none",document.body.appendChild(this.myDisconnFrame)}incrementIncomingBytes_(S){const o=(0,Ze.Wl)(S).length;this.bytesReceived+=o,this.stats_.incrementCounter("bytes_received",o)}}class qi{constructor(S,o,A,ee){if(this.onDisconnect=A,this.urlFn=ee,this.outstandingRequests=new Set,this.pendingSegs=[],this.currentSerial=Math.floor(1e8*Math.random()),this.sendNewPolls=!0,(0,Ze.Yr)())this.commandCB=S,this.onMessageCB=o;else{this.uniqueCallbackIdentifier=jt(),window["pLPCommand"+this.uniqueCallbackIdentifier]=S,window["pRTLPCB"+this.uniqueCallbackIdentifier]=o,this.myIFrame=qi.createIFrame_();let he="";this.myIFrame.src&&"javascript:"===this.myIFrame.src.substr(0,11)&&(he='<script>document.domain="'+document.domain+'";<\/script>');const Ye="<html><body>"+he+"</body></html>";try{this.myIFrame.doc.open(),this.myIFrame.doc.write(Ye),this.myIFrame.doc.close()}catch(bt){Ki("frame writing exception"),bt.stack&&Ki(bt.stack),Ki(bt)}}}static createIFrame_(){const S=document.createElement("iframe");if(S.style.display="none",!document.body)throw"Document body has not initialized. Wait to initialize Firebase until after the document is ready.";document.body.appendChild(S);try{S.contentWindow.document||Ki("No IE domain setting required")}catch{const A=document.domain;S.src="javascript:void((function(){document.open();document.domain='"+A+"';document.close();})())"}return S.contentDocument?S.doc=S.contentDocument:S.contentWindow?S.doc=S.contentWindow.document:S.document&&(S.doc=S.document),S}close(){this.alive=!1,this.myIFrame&&(this.myIFrame.doc.body.textContent="",setTimeout(()=>{null!==this.myIFrame&&(document.body.removeChild(this.myIFrame),this.myIFrame=null)},Math.floor(0)));const S=this.onDisconnect;S&&(this.onDisconnect=null,S())}startLongPoll(S,o){for(this.myID=S,this.myPW=o,this.alive=!0;this.newRequest_(););}newRequest_(){if(this.alive&&this.sendNewPolls&&this.outstandingRequests.size<(this.pendingSegs.length>0?2:1)){this.currentSerial++;const S={};S.id=this.myID,S.pw=this.myPW,S.ser=this.currentSerial;let o=this.urlFn(S),A="",ee=0;for(;this.pendingSegs.length>0&&this.pendingSegs[0].d.length+30+A.length<=1870;){const Ye=this.pendingSegs.shift();A=A+"&seg"+ee+"="+Ye.seg+"&ts"+ee+"="+Ye.ts+"&d"+ee+"="+Ye.d,ee++}return o+=A,this.addLongPollTag_(o,this.currentSerial),!0}return!1}enqueueSegment(S,o,A){this.pendingSegs.push({seg:S,ts:o,d:A}),this.alive&&this.newRequest_()}addLongPollTag_(S,o){this.outstandingRequests.add(o);const A=()=>{this.outstandingRequests.delete(o),this.newRequest_()},ee=setTimeout(A,Math.floor(25e3));this.addTag(S,()=>{clearTimeout(ee),A()})}addTag(S,o){(0,Ze.Yr)()?this.doNodeLongPoll(S,o):setTimeout(()=>{try{if(!this.sendNewPolls)return;const A=this.myIFrame.doc.createElement("script");A.type="text/javascript",A.async=!0,A.src=S,A.onload=A.onreadystatechange=function(){const ee=A.readyState;(!ee||"loaded"===ee||"complete"===ee)&&(A.onload=A.onreadystatechange=null,A.parentNode&&A.parentNode.removeChild(A),o())},A.onerror=()=>{Ki("Long-poll script failed to load: "+S),this.sendNewPolls=!1,this.close()},this.myIFrame.doc.body.appendChild(A)}catch{}},Math.floor(1))}}let Rs=null;typeof MozWebSocket<"u"?Rs=MozWebSocket:typeof WebSocket<"u"&&(Rs=WebSocket);let Ia=(()=>{class T{constructor(o,A,ee,he,Ye,bt,er){this.connId=o,this.applicationId=ee,this.appCheckToken=he,this.authToken=Ye,this.keepaliveTimer=null,this.frames=null,this.totalFrames=0,this.bytesSent=0,this.bytesReceived=0,this.log_=zs(this.connId),this.stats_=lo(A),this.connURL=T.connectionURL_(A,bt,er,he,ee),this.nodeAdmin=A.nodeAdmin}static connectionURL_(o,A,ee,he,Ye){const bt={v:"5"};return!(0,Ze.Yr)()&&typeof location<"u"&&location.hostname&&za.test(location.hostname)&&(bt.r="f"),A&&(bt.s=A),ee&&(bt.ls=ee),he&&(bt.ac=he),Ye&&(bt.p=Ye),qo(o,Ko,bt)}open(o,A){this.onDisconnect=A,this.onMessage=o,this.log_("Websocket connecting to "+this.connURL),this.everConnected_=!1,Ea.set("previous_websocket_failure",!0);try{let ee;if((0,Ze.Yr)()){ee={headers:{"User-Agent":`Firebase/5/${ka}/${process.platform}/${this.nodeAdmin?"AdminNode":"Node"}`,"X-Firebase-GMPID":this.applicationId||""}},this.authToken&&(ee.headers.Authorization=`Bearer ${this.authToken}`),this.appCheckToken&&(ee.headers["X-Firebase-AppCheck"]=this.appCheckToken);const Ye=process.env,bt=0===this.connURL.indexOf("wss://")?Ye.HTTPS_PROXY||Ye.https_proxy:Ye.HTTP_PROXY||Ye.http_proxy;bt&&(ee.proxy={origin:bt})}this.mySock=new Rs(this.connURL,[],ee)}catch(ee){this.log_("Error instantiating WebSocket.");const he=ee.message||ee.data;return he&&this.log_(he),void this.onClosed_()}this.mySock.onopen=()=>{this.log_("Websocket connected."),this.everConnected_=!0},this.mySock.onclose=()=>{this.log_("Websocket connection was disconnected."),this.mySock=null,this.onClosed_()},this.mySock.onmessage=ee=>{this.handleIncomingFrame(ee)},this.mySock.onerror=ee=>{this.log_("WebSocket error.  Closing connection.");const he=ee.message||ee.data;he&&this.log_(he),this.onClosed_()}}start(){}static forceDisallow(){T.forceDisallow_=!0}static isAvailable(){let o=!1;if(typeof navigator<"u"&&navigator.userAgent){const ee=navigator.userAgent.match(/Android ([0-9]{0,}\.[0-9]{0,})/);ee&&ee.length>1&&parseFloat(ee[1])<4.4&&(o=!0)}return!o&&null!==Rs&&!T.forceDisallow_}static previouslyFailed(){return Ea.isInMemoryStorage||!0===Ea.get("previous_websocket_failure")}markConnectionHealthy(){Ea.remove("previous_websocket_failure")}appendFrame_(o){if(this.frames.push(o),this.frames.length===this.totalFrames){const A=this.frames.join("");this.frames=null;const ee=(0,Ze.cI)(A);this.onMessage(ee)}}handleNewFrameCount_(o){this.totalFrames=o,this.frames=[]}extractFrameCount_(o){if((0,Ze.hu)(null===this.frames,"We already have a frame buffer"),o.length<=6){const A=Number(o);if(!isNaN(A))return this.handleNewFrameCount_(A),null}return this.handleNewFrameCount_(1),o}handleIncomingFrame(o){if(null===this.mySock)return;const A=o.data;if(this.bytesReceived+=A.length,this.stats_.incrementCounter("bytes_received",A.length),this.resetKeepAlive(),null!==this.frames)this.appendFrame_(A);else{const ee=this.extractFrameCount_(A);null!==ee&&this.appendFrame_(ee)}}send(o){this.resetKeepAlive();const A=(0,Ze.Wl)(o);this.bytesSent+=A.length,this.stats_.incrementCounter("bytes_sent",A.length);const ee=Cs(A,16384);ee.length>1&&this.sendString_(String(ee.length));for(let he=0;he<ee.length;he++)this.sendString_(ee[he])}shutdown_(){this.isClosed_=!0,this.keepaliveTimer&&(clearInterval(this.keepaliveTimer),this.keepaliveTimer=null),this.mySock&&(this.mySock.close(),this.mySock=null)}onClosed_(){this.isClosed_||(this.log_("WebSocket is closing itself"),this.shutdown_(),this.onDisconnect&&(this.onDisconnect(this.everConnected_),this.onDisconnect=null))}close(){this.isClosed_||(this.log_("WebSocket is being closed"),this.shutdown_())}resetKeepAlive(){clearInterval(this.keepaliveTimer),this.keepaliveTimer=setInterval(()=>{this.mySock&&this.sendString_("0"),this.resetKeepAlive()},Math.floor(45e3))}sendString_(o){try{this.mySock.send(o)}catch(A){this.log_("Exception thrown from WebSocket.send():",A.message||A.data,"Closing connection."),setTimeout(this.onClosed_.bind(this),0)}}}return T.responsesRequiredToBeHealthy=2,T.healthyTimeout=3e4,T})(),ra=(()=>{class T{constructor(o){this.initTransports_(o)}static get ALL_TRANSPORTS(){return[bs,Ia]}static get IS_TRANSPORT_INITIALIZED(){return this.globalTransportInitialized_}initTransports_(o){const A=Ia&&Ia.isAvailable();let ee=A&&!Ia.previouslyFailed();if(o.webSocketOnly&&(A||xn("wss:// URL used, but browser isn't known to support websockets.  Trying anyway."),ee=!0),ee)this.transports_=[Ia];else{const he=this.transports_=[];for(const Ye of T.ALL_TRANSPORTS)Ye&&Ye.isAvailable()&&he.push(Ye);T.globalTransportInitialized_=!0}}initialTransport(){if(this.transports_.length>0)return this.transports_[0];throw new Error("No transports available")}upgradeTransport(){return this.transports_.length>1?this.transports_[1]:null}}return T.globalTransportInitialized_=!1,T})();class Ln{constructor(S,o,A,ee,he,Ye,bt,er,mr,Kr){this.id=S,this.repoInfo_=o,this.applicationId_=A,this.appCheckToken_=ee,this.authToken_=he,this.onMessage_=Ye,this.onReady_=bt,this.onDisconnect_=er,this.onKill_=mr,this.lastSessionId=Kr,this.connectionCount=0,this.pendingDataMessages=[],this.state_=0,this.log_=zs("c:"+this.id+":"),this.transportManager_=new ra(o),this.log_("Connection created"),this.start_()}start_(){const S=this.transportManager_.initialTransport();this.conn_=new S(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,null,this.lastSessionId),this.primaryResponsesRequired_=S.responsesRequiredToBeHealthy||0;const o=this.connReceiver_(this.conn_),A=this.disconnReceiver_(this.conn_);this.tx_=this.conn_,this.rx_=this.conn_,this.secondaryConn_=null,this.isHealthy_=!1,setTimeout(()=>{this.conn_&&this.conn_.open(o,A)},Math.floor(0));const ee=S.healthyTimeout||0;ee>0&&(this.healthyTimeout_=Za(()=>{this.healthyTimeout_=null,this.isHealthy_||(this.conn_&&this.conn_.bytesReceived>102400?(this.log_("Connection exceeded healthy timeout but has received "+this.conn_.bytesReceived+" bytes.  Marking connection healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()):this.conn_&&this.conn_.bytesSent>10240?this.log_("Connection exceeded healthy timeout but has sent "+this.conn_.bytesSent+" bytes.  Leaving connection alive."):(this.log_("Closing unhealthy connection after timeout."),this.close()))},Math.floor(ee)))}nextTransportId_(){return"c:"+this.id+":"+this.connectionCount++}disconnReceiver_(S){return o=>{S===this.conn_?this.onConnectionLost_(o):S===this.secondaryConn_?(this.log_("Secondary connection lost."),this.onSecondaryConnectionLost_()):this.log_("closing an old connection")}}connReceiver_(S){return o=>{2!==this.state_&&(S===this.rx_?this.onPrimaryMessageReceived_(o):S===this.secondaryConn_?this.onSecondaryMessageReceived_(o):this.log_("message on old connection"))}}sendRequest(S){this.sendData_({t:"d",d:S})}tryCleanupConnection(){this.tx_===this.secondaryConn_&&this.rx_===this.secondaryConn_&&(this.log_("cleaning up and promoting a connection: "+this.secondaryConn_.connId),this.conn_=this.secondaryConn_,this.secondaryConn_=null)}onSecondaryControl_(S){if("t"in S){const o=S.t;"a"===o?this.upgradeIfSecondaryHealthy_():"r"===o?(this.log_("Got a reset on secondary, closing it"),this.secondaryConn_.close(),(this.tx_===this.secondaryConn_||this.rx_===this.secondaryConn_)&&this.close()):"o"===o&&(this.log_("got pong on secondary."),this.secondaryResponsesRequired_--,this.upgradeIfSecondaryHealthy_())}}onSecondaryMessageReceived_(S){const o=Ci("t",S),A=Ci("d",S);if("c"===o)this.onSecondaryControl_(A);else{if("d"!==o)throw new Error("Unknown protocol layer: "+o);this.pendingDataMessages.push(A)}}upgradeIfSecondaryHealthy_(){this.secondaryResponsesRequired_<=0?(this.log_("Secondary connection is healthy."),this.isHealthy_=!0,this.secondaryConn_.markConnectionHealthy(),this.proceedWithUpgrade_()):(this.log_("sending ping on secondary."),this.secondaryConn_.send({t:"c",d:{t:"p",d:{}}}))}proceedWithUpgrade_(){this.secondaryConn_.start(),this.log_("sending client ack on secondary"),this.secondaryConn_.send({t:"c",d:{t:"a",d:{}}}),this.log_("Ending transmission on primary"),this.conn_.send({t:"c",d:{t:"n",d:{}}}),this.tx_=this.secondaryConn_,this.tryCleanupConnection()}onPrimaryMessageReceived_(S){const o=Ci("t",S),A=Ci("d",S);"c"===o?this.onControl_(A):"d"===o&&this.onDataMessage_(A)}onDataMessage_(S){this.onPrimaryResponse_(),this.onMessage_(S)}onPrimaryResponse_(){this.isHealthy_||(this.primaryResponsesRequired_--,this.primaryResponsesRequired_<=0&&(this.log_("Primary connection is healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()))}onControl_(S){const o=Ci("t",S);if("d"in S){const A=S.d;if("h"===o){const ee=Object.assign({},A);this.repoInfo_.isUsingEmulator&&(ee.h=this.repoInfo_.host),this.onHandshake_(ee)}else if("n"===o){this.log_("recvd end transmission on primary"),this.rx_=this.secondaryConn_;for(let ee=0;ee<this.pendingDataMessages.length;++ee)this.onDataMessage_(this.pendingDataMessages[ee]);this.pendingDataMessages=[],this.tryCleanupConnection()}else"s"===o?this.onConnectionShutdown_(A):"r"===o?this.onReset_(A):"e"===o?Na("Server Error: "+A):"o"===o?(this.log_("got pong on primary."),this.onPrimaryResponse_(),this.sendPingOnPrimaryIfNecessary_()):Na("Unknown control packet command: "+o)}}onHandshake_(S){const o=S.ts,A=S.v,ee=S.h;this.sessionId=S.s,this.repoInfo_.host=ee,0===this.state_&&(this.conn_.start(),this.onConnectionEstablished_(this.conn_,o),"5"!==A&&xn("Protocol version mismatch detected"),this.tryStartUpgrade_())}tryStartUpgrade_(){const S=this.transportManager_.upgradeTransport();S&&this.startUpgrade_(S)}startUpgrade_(S){this.secondaryConn_=new S(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,this.sessionId),this.secondaryResponsesRequired_=S.responsesRequiredToBeHealthy||0;const o=this.connReceiver_(this.secondaryConn_),A=this.disconnReceiver_(this.secondaryConn_);this.secondaryConn_.open(o,A),Za(()=>{this.secondaryConn_&&(this.log_("Timed out trying to upgrade."),this.secondaryConn_.close())},Math.floor(6e4))}onReset_(S){this.log_("Reset packet received.  New host: "+S),this.repoInfo_.host=S,1===this.state_?this.close():(this.closeConnections_(),this.start_())}onConnectionEstablished_(S,o){this.log_("Realtime connection established."),this.conn_=S,this.state_=1,this.onReady_&&(this.onReady_(o,this.sessionId),this.onReady_=null),0===this.primaryResponsesRequired_?(this.log_("Primary connection is healthy."),this.isHealthy_=!0):Za(()=>{this.sendPingOnPrimaryIfNecessary_()},Math.floor(5e3))}sendPingOnPrimaryIfNecessary_(){!this.isHealthy_&&1===this.state_&&(this.log_("sending ping on primary."),this.sendData_({t:"c",d:{t:"p",d:{}}}))}onSecondaryConnectionLost_(){const S=this.secondaryConn_;this.secondaryConn_=null,(this.tx_===S||this.rx_===S)&&this.close()}onConnectionLost_(S){this.conn_=null,S||0!==this.state_?1===this.state_&&this.log_("Realtime connection lost."):(this.log_("Realtime connection failed."),this.repoInfo_.isCacheableHost()&&(Ea.remove("host:"+this.repoInfo_.host),this.repoInfo_.internalHost=this.repoInfo_.host)),this.close()}onConnectionShutdown_(S){this.log_("Connection shutdown command received. Shutting down..."),this.onKill_&&(this.onKill_(S),this.onKill_=null),this.onDisconnect_=null,this.close()}sendData_(S){if(1!==this.state_)throw"Connection is not connected";this.tx_.send(S)}close(){2!==this.state_&&(this.log_("Closing realtime connection."),this.state_=2,this.closeConnections_(),this.onDisconnect_&&(this.onDisconnect_(),this.onDisconnect_=null))}closeConnections_(){this.log_("Shutting down all connections"),this.conn_&&(this.conn_.close(),this.conn_=null),this.secondaryConn_&&(this.secondaryConn_.close(),this.secondaryConn_=null),this.healthyTimeout_&&(clearTimeout(this.healthyTimeout_),this.healthyTimeout_=null)}}class si{put(S,o,A,ee){}merge(S,o,A,ee){}refreshAuthToken(S){}refreshAppCheckToken(S){}onDisconnectPut(S,o,A){}onDisconnectMerge(S,o,A){}onDisconnectCancel(S,o){}reportStats(S){}}class is{constructor(S){this.allowedEvents_=S,this.listeners_={},(0,Ze.hu)(Array.isArray(S)&&S.length>0,"Requires a non-empty array")}trigger(S,...o){if(Array.isArray(this.listeners_[S])){const A=[...this.listeners_[S]];for(let ee=0;ee<A.length;ee++)A[ee].callback.apply(A[ee].context,o)}}on(S,o,A){this.validateEventType_(S),this.listeners_[S]=this.listeners_[S]||[],this.listeners_[S].push({callback:o,context:A});const ee=this.getInitialEvent(S);ee&&o.apply(A,ee)}off(S,o,A){this.validateEventType_(S);const ee=this.listeners_[S]||[];for(let he=0;he<ee.length;he++)if(ee[he].callback===o&&(!A||A===ee[he].context))return void ee.splice(he,1)}validateEventType_(S){(0,Ze.hu)(this.allowedEvents_.find(o=>o===S),"Unknown event: "+S)}}class pi extends is{constructor(){super(["online"]),this.online_=!0,typeof window<"u"&&typeof window.addEventListener<"u"&&!(0,Ze.uI)()&&(window.addEventListener("online",()=>{this.online_||(this.online_=!0,this.trigger("online",!0))},!1),window.addEventListener("offline",()=>{this.online_&&(this.online_=!1,this.trigger("online",!1))},!1))}static getInstance(){return new pi}getInitialEvent(S){return(0,Ze.hu)("online"===S,"Unknown event type: "+S),[this.online_]}currentlyOnline(){return this.online_}}class Wi{constructor(S,o){if(void 0===o){this.pieces_=S.split("/");let A=0;for(let ee=0;ee<this.pieces_.length;ee++)this.pieces_[ee].length>0&&(this.pieces_[A]=this.pieces_[ee],A++);this.pieces_.length=A,this.pieceNum_=0}else this.pieces_=S,this.pieceNum_=o}toString(){let S="";for(let o=this.pieceNum_;o<this.pieces_.length;o++)""!==this.pieces_[o]&&(S+="/"+this.pieces_[o]);return S||"/"}}function Zi(){return new Wi("")}function Bi(T){return T.pieceNum_>=T.pieces_.length?null:T.pieces_[T.pieceNum_]}function xo(T){return T.pieces_.length-T.pieceNum_}function xi(T){let S=T.pieceNum_;return S<T.pieces_.length&&S++,new Wi(T.pieces_,S)}function kl(T){return T.pieceNum_<T.pieces_.length?T.pieces_[T.pieces_.length-1]:null}function fl(T,S=0){return T.pieces_.slice(T.pieceNum_+S)}function hl(T){if(T.pieceNum_>=T.pieces_.length)return null;const S=[];for(let o=T.pieceNum_;o<T.pieces_.length-1;o++)S.push(T.pieces_[o]);return new Wi(S,0)}function ms(T,S){const o=[];for(let A=T.pieceNum_;A<T.pieces_.length;A++)o.push(T.pieces_[A]);if(S instanceof Wi)for(let A=S.pieceNum_;A<S.pieces_.length;A++)o.push(S.pieces_[A]);else{const A=S.split("/");for(let ee=0;ee<A.length;ee++)A[ee].length>0&&o.push(A[ee])}return new Wi(o,0)}function Ui(T){return T.pieceNum_>=T.pieces_.length}function ba(T,S){const o=Bi(T),A=Bi(S);if(null===o)return S;if(o===A)return ba(xi(T),xi(S));throw new Error("INTERNAL ERROR: innerPath ("+S+") is not within outerPath ("+T+")")}function gn(T,S){const o=fl(T,0),A=fl(S,0);for(let ee=0;ee<o.length&&ee<A.length;ee++){const he=wr(o[ee],A[ee]);if(0!==he)return he}return o.length===A.length?0:o.length<A.length?-1:1}function Xo(T,S){if(xo(T)!==xo(S))return!1;for(let o=T.pieceNum_,A=S.pieceNum_;o<=T.pieces_.length;o++,A++)if(T.pieces_[o]!==S.pieces_[A])return!1;return!0}function Hr(T,S){let o=T.pieceNum_,A=S.pieceNum_;if(xo(T)>xo(S))return!1;for(;o<T.pieces_.length;){if(T.pieces_[o]!==S.pieces_[A])return!1;++o,++A}return!0}class ou{constructor(S,o){this.errorPrefix_=o,this.parts_=fl(S,0),this.byteLength_=Math.max(1,this.parts_.length);for(let A=0;A<this.parts_.length;A++)this.byteLength_+=(0,Ze.ug)(this.parts_[A]);oa(this)}}function oa(T){if(T.byteLength_>768)throw new Error(T.errorPrefix_+"has a key path longer than 768 bytes ("+T.byteLength_+").");if(T.parts_.length>32)throw new Error(T.errorPrefix_+"path specified exceeds the maximum depth that can be written (32) or object contains a cycle "+Lo(T))}function Lo(T){return 0===T.parts_.length?"":"in property '"+T.parts_.join(".")+"'"}class Nl extends is{constructor(){let S,o;super(["visible"]),typeof document<"u"&&typeof document.addEventListener<"u"&&(typeof document.hidden<"u"?(o="visibilitychange",S="hidden"):typeof document.mozHidden<"u"?(o="mozvisibilitychange",S="mozHidden"):typeof document.msHidden<"u"?(o="msvisibilitychange",S="msHidden"):typeof document.webkitHidden<"u"&&(o="webkitvisibilitychange",S="webkitHidden")),this.visible_=!0,o&&document.addEventListener(o,()=>{const A=!document[S];A!==this.visible_&&(this.visible_=A,this.trigger("visible",A))},!1)}static getInstance(){return new Nl}getInitialEvent(S){return(0,Ze.hu)("visible"===S,"Unknown event type: "+S),[this.visible_]}}const gl=1e3;let va,os=(()=>{class T extends si{constructor(o,A,ee,he,Ye,bt,er,mr){if(super(),this.repoInfo_=o,this.applicationId_=A,this.onDataUpdate_=ee,this.onConnectStatus_=he,this.onServerInfoUpdate_=Ye,this.authTokenProvider_=bt,this.appCheckTokenProvider_=er,this.authOverride_=mr,this.id=T.nextPersistentConnectionId_++,this.log_=zs("p:"+this.id+":"),this.interruptReasons_={},this.listens=new Map,this.outstandingPuts_=[],this.outstandingGets_=[],this.outstandingPutCount_=0,this.outstandingGetCount_=0,this.onDisconnectRequestQueue_=[],this.connected_=!1,this.reconnectDelay_=gl,this.maxReconnectDelay_=3e5,this.securityDebugCallback_=null,this.lastSessionId=null,this.establishConnectionTimer_=null,this.visible_=!1,this.requestCBHash_={},this.requestNumber_=0,this.realtime_=null,this.authToken_=null,this.appCheckToken_=null,this.forceTokenRefresh_=!1,this.invalidAuthTokenCount_=0,this.invalidAppCheckTokenCount_=0,this.firstConnection_=!0,this.lastConnectionAttemptTime_=null,this.lastConnectionEstablishedTime_=null,mr&&!(0,Ze.Yr)())throw new Error("Auth override specified in options, but not supported on non Node.js platforms");Nl.getInstance().on("visible",this.onVisible_,this),-1===o.host.indexOf("fblocal")&&pi.getInstance().on("online",this.onOnline_,this)}sendRequest(o,A,ee){const he=++this.requestNumber_,Ye={r:he,a:o,b:A};this.log_((0,Ze.Wl)(Ye)),(0,Ze.hu)(this.connected_,"sendRequest call when we're not connected not allowed."),this.realtime_.sendRequest(Ye),ee&&(this.requestCBHash_[he]=ee)}get(o){this.initConnection_();const A=new Ze.BH,ee={p:o._path.toString(),q:o._queryObject};return this.outstandingGets_.push({action:"g",request:ee,onComplete:bt=>{const er=bt.d;"ok"===bt.s?A.resolve(er):A.reject(er)}}),this.outstandingGetCount_++,this.connected_&&this.sendGet_(this.outstandingGets_.length-1),A.promise}listen(o,A,ee,he){this.initConnection_();const Ye=o._queryIdentifier,bt=o._path.toString();this.log_("Listen called for "+bt+" "+Ye),this.listens.has(bt)||this.listens.set(bt,new Map),(0,Ze.hu)(o._queryParams.isDefault()||!o._queryParams.loadsAllData(),"listen() called for non-default but complete query"),(0,Ze.hu)(!this.listens.get(bt).has(Ye),"listen() called twice for same path/queryId.");const er={onComplete:he,hashFn:A,query:o,tag:ee};this.listens.get(bt).set(Ye,er),this.connected_&&this.sendListen_(er)}sendGet_(o){const A=this.outstandingGets_[o];this.sendRequest("g",A.request,ee=>{delete this.outstandingGets_[o],this.outstandingGetCount_--,0===this.outstandingGetCount_&&(this.outstandingGets_=[]),A.onComplete&&A.onComplete(ee)})}sendListen_(o){const A=o.query,ee=A._path.toString(),he=A._queryIdentifier;this.log_("Listen on "+ee+" for "+he);const Ye={p:ee};o.tag&&(Ye.q=A._queryObject,Ye.t=o.tag),Ye.h=o.hashFn(),this.sendRequest("q",Ye,er=>{const mr=er.d,Kr=er.s;T.warnOnListenWarnings_(mr,A),(this.listens.get(ee)&&this.listens.get(ee).get(he))===o&&(this.log_("listen response",er),"ok"!==Kr&&this.removeListen_(ee,he),o.onComplete&&o.onComplete(Kr,mr))})}static warnOnListenWarnings_(o,A){if(o&&"object"==typeof o&&(0,Ze.r3)(o,"w")){const ee=(0,Ze.DV)(o,"w");if(Array.isArray(ee)&&~ee.indexOf("no_index")){const he='".indexOn": "'+A._queryParams.getIndex().toString()+'"',Ye=A._path.toString();xn(`Using an unspecified index. Your data will be downloaded and filtered on the client. Consider adding ${he} at ${Ye} to your security rules for better performance.`)}}}refreshAuthToken(o){this.authToken_=o,this.log_("Auth token refreshed"),this.authToken_?this.tryAuth():this.connected_&&this.sendRequest("unauth",{},()=>{}),this.reduceReconnectDelayIfAdminCredential_(o)}reduceReconnectDelayIfAdminCredential_(o){(o&&40===o.length||(0,Ze.GJ)(o))&&(this.log_("Admin auth credential detected.  Reducing max reconnect time."),this.maxReconnectDelay_=3e4)}refreshAppCheckToken(o){this.appCheckToken_=o,this.log_("App check token refreshed"),this.appCheckToken_?this.tryAppCheck():this.connected_&&this.sendRequest("unappeck",{},()=>{})}tryAuth(){if(this.connected_&&this.authToken_){const o=this.authToken_,A=(0,Ze.w9)(o)?"auth":"gauth",ee={cred:o};null===this.authOverride_?ee.noauth=!0:"object"==typeof this.authOverride_&&(ee.authvar=this.authOverride_),this.sendRequest(A,ee,he=>{const Ye=he.s,bt=he.d||"error";this.authToken_===o&&("ok"===Ye?this.invalidAuthTokenCount_=0:this.onAuthRevoked_(Ye,bt))})}}tryAppCheck(){this.connected_&&this.appCheckToken_&&this.sendRequest("appcheck",{token:this.appCheckToken_},o=>{const A=o.s,ee=o.d||"error";"ok"===A?this.invalidAppCheckTokenCount_=0:this.onAppCheckRevoked_(A,ee)})}unlisten(o,A){const ee=o._path.toString(),he=o._queryIdentifier;this.log_("Unlisten called for "+ee+" "+he),(0,Ze.hu)(o._queryParams.isDefault()||!o._queryParams.loadsAllData(),"unlisten() called for non-default but complete query"),this.removeListen_(ee,he)&&this.connected_&&this.sendUnlisten_(ee,he,o._queryObject,A)}sendUnlisten_(o,A,ee,he){this.log_("Unlisten on "+o+" for "+A);const Ye={p:o};he&&(Ye.q=ee,Ye.t=he),this.sendRequest("n",Ye)}onDisconnectPut(o,A,ee){this.initConnection_(),this.connected_?this.sendOnDisconnect_("o",o,A,ee):this.onDisconnectRequestQueue_.push({pathString:o,action:"o",data:A,onComplete:ee})}onDisconnectMerge(o,A,ee){this.initConnection_(),this.connected_?this.sendOnDisconnect_("om",o,A,ee):this.onDisconnectRequestQueue_.push({pathString:o,action:"om",data:A,onComplete:ee})}onDisconnectCancel(o,A){this.initConnection_(),this.connected_?this.sendOnDisconnect_("oc",o,null,A):this.onDisconnectRequestQueue_.push({pathString:o,action:"oc",data:null,onComplete:A})}sendOnDisconnect_(o,A,ee,he){const Ye={p:A,d:ee};this.log_("onDisconnect "+o,Ye),this.sendRequest(o,Ye,bt=>{he&&setTimeout(()=>{he(bt.s,bt.d)},Math.floor(0))})}put(o,A,ee,he){this.putInternal("p",o,A,ee,he)}merge(o,A,ee,he){this.putInternal("m",o,A,ee,he)}putInternal(o,A,ee,he,Ye){this.initConnection_();const bt={p:A,d:ee};void 0!==Ye&&(bt.h=Ye),this.outstandingPuts_.push({action:o,request:bt,onComplete:he}),this.outstandingPutCount_++,this.connected_?this.sendPut_(this.outstandingPuts_.length-1):this.log_("Buffering put: "+A)}sendPut_(o){const A=this.outstandingPuts_[o].action,ee=this.outstandingPuts_[o].request,he=this.outstandingPuts_[o].onComplete;this.outstandingPuts_[o].queued=this.connected_,this.sendRequest(A,ee,Ye=>{this.log_(A+" response",Ye),delete this.outstandingPuts_[o],this.outstandingPutCount_--,0===this.outstandingPutCount_&&(this.outstandingPuts_=[]),he&&he(Ye.s,Ye.d)})}reportStats(o){if(this.connected_){const A={c:o};this.log_("reportStats",A),this.sendRequest("s",A,ee=>{"ok"!==ee.s&&this.log_("reportStats","Error sending stats: "+ee.d)})}}onDataMessage_(o){if("r"in o){this.log_("from server: "+(0,Ze.Wl)(o));const A=o.r,ee=this.requestCBHash_[A];ee&&(delete this.requestCBHash_[A],ee(o.b))}else{if("error"in o)throw"A server-side error has occurred: "+o.error;"a"in o&&this.onDataPush_(o.a,o.b)}}onDataPush_(o,A){this.log_("handleServerMessage",o,A),"d"===o?this.onDataUpdate_(A.p,A.d,!1,A.t):"m"===o?this.onDataUpdate_(A.p,A.d,!0,A.t):"c"===o?this.onListenRevoked_(A.p,A.q):"ac"===o?this.onAuthRevoked_(A.s,A.d):"apc"===o?this.onAppCheckRevoked_(A.s,A.d):"sd"===o?this.onSecurityDebugPacket_(A):Na("Unrecognized action received from server: "+(0,Ze.Wl)(o)+"\nAre you using the latest client?")}onReady_(o,A){this.log_("connection ready"),this.connected_=!0,this.lastConnectionEstablishedTime_=(new Date).getTime(),this.handleTimestamp_(o),this.lastSessionId=A,this.firstConnection_&&this.sendConnectStats_(),this.restoreState_(),this.firstConnection_=!1,this.onConnectStatus_(!0)}scheduleConnect_(o){(0,Ze.hu)(!this.realtime_,"Scheduling a connect when we're already connected/ing?"),this.establishConnectionTimer_&&clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=setTimeout(()=>{this.establishConnectionTimer_=null,this.establishConnection_()},Math.floor(o))}initConnection_(){!this.realtime_&&this.firstConnection_&&this.scheduleConnect_(0)}onVisible_(o){o&&!this.visible_&&this.reconnectDelay_===this.maxReconnectDelay_&&(this.log_("Window became visible.  Reducing delay."),this.reconnectDelay_=gl,this.realtime_||this.scheduleConnect_(0)),this.visible_=o}onOnline_(o){o?(this.log_("Browser went online."),this.reconnectDelay_=gl,this.realtime_||this.scheduleConnect_(0)):(this.log_("Browser went offline.  Killing connection."),this.realtime_&&this.realtime_.close())}onRealtimeDisconnect_(){if(this.log_("data client disconnected"),this.connected_=!1,this.realtime_=null,this.cancelSentTransactions_(),this.requestCBHash_={},this.shouldReconnect_()){this.visible_?this.lastConnectionEstablishedTime_&&((new Date).getTime()-this.lastConnectionEstablishedTime_>3e4&&(this.reconnectDelay_=gl),this.lastConnectionEstablishedTime_=null):(this.log_("Window isn't visible.  Delaying reconnect."),this.reconnectDelay_=this.maxReconnectDelay_,this.lastConnectionAttemptTime_=(new Date).getTime());const o=(new Date).getTime()-this.lastConnectionAttemptTime_;let A=Math.max(0,this.reconnectDelay_-o);A=Math.random()*A,this.log_("Trying to reconnect in "+A+"ms"),this.scheduleConnect_(A),this.reconnectDelay_=Math.min(this.maxReconnectDelay_,1.3*this.reconnectDelay_)}this.onConnectStatus_(!1)}establishConnection_(){var o=this;return(0,Qe.Z)(function*(){if(o.shouldReconnect_()){o.log_("Making a connection attempt"),o.lastConnectionAttemptTime_=(new Date).getTime(),o.lastConnectionEstablishedTime_=null;const A=o.onDataMessage_.bind(o),ee=o.onReady_.bind(o),he=o.onRealtimeDisconnect_.bind(o),Ye=o.id+":"+T.nextConnectionId_++,bt=o.lastSessionId;let er=!1,mr=null;const Kr=function(){mr?mr.close():(er=!0,he())};o.realtime_={close:Kr,sendRequest:function(Hn){(0,Ze.hu)(mr,"sendRequest call when we're not connected not allowed."),mr.sendRequest(Hn)}};const vn=o.forceTokenRefresh_;o.forceTokenRefresh_=!1;try{const[Hn,Yn]=yield Promise.all([o.authTokenProvider_.getToken(vn),o.appCheckTokenProvider_.getToken(vn)]);er?Ki("getToken() completed but was canceled"):(Ki("getToken() completed. Creating connection."),o.authToken_=Hn&&Hn.accessToken,o.appCheckToken_=Yn&&Yn.token,mr=new Ln(Ye,o.repoInfo_,o.applicationId_,o.appCheckToken_,o.authToken_,A,ee,he,ii=>{xn(ii+" ("+o.repoInfo_.toString()+")"),o.interrupt("server_kill")},bt))}catch(Hn){o.log_("Failed to get token: "+Hn),er||(o.repoInfo_.nodeAdmin&&xn(Hn),Kr())}}})()}interrupt(o){Ki("Interrupting connection for reason: "+o),this.interruptReasons_[o]=!0,this.realtime_?this.realtime_.close():(this.establishConnectionTimer_&&(clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=null),this.connected_&&this.onRealtimeDisconnect_())}resume(o){Ki("Resuming connection for reason: "+o),delete this.interruptReasons_[o],(0,Ze.xb)(this.interruptReasons_)&&(this.reconnectDelay_=gl,this.realtime_||this.scheduleConnect_(0))}handleTimestamp_(o){const A=o-(new Date).getTime();this.onServerInfoUpdate_({serverTimeOffset:A})}cancelSentTransactions_(){for(let o=0;o<this.outstandingPuts_.length;o++){const A=this.outstandingPuts_[o];A&&"h"in A.request&&A.queued&&(A.onComplete&&A.onComplete("disconnect"),delete this.outstandingPuts_[o],this.outstandingPutCount_--)}0===this.outstandingPutCount_&&(this.outstandingPuts_=[])}onListenRevoked_(o,A){let ee;ee=A?A.map(Ye=>Si(Ye)).join("$"):"default";const he=this.removeListen_(o,ee);he&&he.onComplete&&he.onComplete("permission_denied")}removeListen_(o,A){const ee=new Wi(o).toString();let he;if(this.listens.has(ee)){const Ye=this.listens.get(ee);he=Ye.get(A),Ye.delete(A),0===Ye.size&&this.listens.delete(ee)}else he=void 0;return he}onAuthRevoked_(o,A){Ki("Auth token revoked: "+o+"/"+A),this.authToken_=null,this.forceTokenRefresh_=!0,this.realtime_.close(),("invalid_token"===o||"permission_denied"===o)&&(this.invalidAuthTokenCount_++,this.invalidAuthTokenCount_>=3&&(this.reconnectDelay_=3e4,this.authTokenProvider_.notifyForInvalidToken()))}onAppCheckRevoked_(o,A){Ki("App check token revoked: "+o+"/"+A),this.appCheckToken_=null,this.forceTokenRefresh_=!0,("invalid_token"===o||"permission_denied"===o)&&(this.invalidAppCheckTokenCount_++,this.invalidAppCheckTokenCount_>=3&&this.appCheckTokenProvider_.notifyForInvalidToken())}onSecurityDebugPacket_(o){this.securityDebugCallback_?this.securityDebugCallback_(o):"msg"in o&&console.log("FIREBASE: "+o.msg.replace("\n","\nFIREBASE: "))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const o of this.listens.values())for(const A of o.values())this.sendListen_(A);for(let o=0;o<this.outstandingPuts_.length;o++)this.outstandingPuts_[o]&&this.sendPut_(o);for(;this.onDisconnectRequestQueue_.length;){const o=this.onDisconnectRequestQueue_.shift();this.sendOnDisconnect_(o.action,o.pathString,o.data,o.onComplete)}for(let o=0;o<this.outstandingGets_.length;o++)this.outstandingGets_[o]&&this.sendGet_(o)}sendConnectStats_(){const o={};let A="js";(0,Ze.Yr)()&&(A=this.repoInfo_.nodeAdmin?"admin_node":"node"),o["sdk."+A+"."+ka.replace(/\./g,"-")]=1,(0,Ze.uI)()?o["framework.cordova"]=1:(0,Ze.b$)()&&(o["framework.reactnative"]=1),this.reportStats(o)}shouldReconnect_(){const o=pi.getInstance().currentlyOnline();return(0,Ze.xb)(this.interruptReasons_)&&o}}return T.nextPersistentConnectionId_=0,T.nextConnectionId_=0,T})();class Ji{constructor(S,o){this.name=S,this.node=o}static Wrap(S,o){return new Ji(S,o)}}class Ru{getCompare(){return this.compare.bind(this)}indexedValueChanged(S,o){const A=new Ji(cn,S),ee=new Ji(cn,o);return 0!==this.compare(A,ee)}minPost(){return Ji.MIN}}class uo extends Ru{static get __EMPTY_NODE(){return va}static set __EMPTY_NODE(S){va=S}compare(S,o){return wr(S.name,o.name)}isDefinedOn(S){throw(0,Ze.g5)("KeyIndex.isDefinedOn not expected to be called.")}indexedValueChanged(S,o){return!1}minPost(){return Ji.MIN}maxPost(){return new Ji(Qt,va)}makePost(S,o){return(0,Ze.hu)("string"==typeof S,"KeyIndex indexValue must always be a string."),new Ji(S,va)}toString(){return".key"}}const Ka=new uo;class ml{constructor(S,o,A,ee,he=null){this.isReverse_=ee,this.resultGenerator_=he,this.nodeStack_=[];let Ye=1;for(;!S.isEmpty();)if(Ye=o?A(S.key,o):1,ee&&(Ye*=-1),Ye<0)S=this.isReverse_?S.left:S.right;else{if(0===Ye){this.nodeStack_.push(S);break}this.nodeStack_.push(S),S=this.isReverse_?S.right:S.left}}getNext(){if(0===this.nodeStack_.length)return null;let o,S=this.nodeStack_.pop();if(o=this.resultGenerator_?this.resultGenerator_(S.key,S.value):{key:S.key,value:S.value},this.isReverse_)for(S=S.left;!S.isEmpty();)this.nodeStack_.push(S),S=S.right;else for(S=S.right;!S.isEmpty();)this.nodeStack_.push(S),S=S.left;return o}hasNext(){return this.nodeStack_.length>0}peek(){if(0===this.nodeStack_.length)return null;const S=this.nodeStack_[this.nodeStack_.length-1];return this.resultGenerator_?this.resultGenerator_(S.key,S.value):{key:S.key,value:S.value}}}let Gn,Vs=(()=>{class T{constructor(o,A,ee,he,Ye){this.key=o,this.value=A,this.color=ee??T.RED,this.left=he??Aa.EMPTY_NODE,this.right=Ye??Aa.EMPTY_NODE}copy(o,A,ee,he,Ye){return new T(o??this.key,A??this.value,ee??this.color,he??this.left,Ye??this.right)}count(){return this.left.count()+1+this.right.count()}isEmpty(){return!1}inorderTraversal(o){return this.left.inorderTraversal(o)||!!o(this.key,this.value)||this.right.inorderTraversal(o)}reverseTraversal(o){return this.right.reverseTraversal(o)||o(this.key,this.value)||this.left.reverseTraversal(o)}min_(){return this.left.isEmpty()?this:this.left.min_()}minKey(){return this.min_().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(o,A,ee){let he=this;const Ye=ee(o,he.key);return he=Ye<0?he.copy(null,null,null,he.left.insert(o,A,ee),null):0===Ye?he.copy(null,A,null,null,null):he.copy(null,null,null,null,he.right.insert(o,A,ee)),he.fixUp_()}removeMin_(){if(this.left.isEmpty())return Aa.EMPTY_NODE;let o=this;return!o.left.isRed_()&&!o.left.left.isRed_()&&(o=o.moveRedLeft_()),o=o.copy(null,null,null,o.left.removeMin_(),null),o.fixUp_()}remove(o,A){let ee,he;if(ee=this,A(o,ee.key)<0)!ee.left.isEmpty()&&!ee.left.isRed_()&&!ee.left.left.isRed_()&&(ee=ee.moveRedLeft_()),ee=ee.copy(null,null,null,ee.left.remove(o,A),null);else{if(ee.left.isRed_()&&(ee=ee.rotateRight_()),!ee.right.isEmpty()&&!ee.right.isRed_()&&!ee.right.left.isRed_()&&(ee=ee.moveRedRight_()),0===A(o,ee.key)){if(ee.right.isEmpty())return Aa.EMPTY_NODE;he=ee.right.min_(),ee=ee.copy(he.key,he.value,null,null,ee.right.removeMin_())}ee=ee.copy(null,null,null,null,ee.right.remove(o,A))}return ee.fixUp_()}isRed_(){return this.color}fixUp_(){let o=this;return o.right.isRed_()&&!o.left.isRed_()&&(o=o.rotateLeft_()),o.left.isRed_()&&o.left.left.isRed_()&&(o=o.rotateRight_()),o.left.isRed_()&&o.right.isRed_()&&(o=o.colorFlip_()),o}moveRedLeft_(){let o=this.colorFlip_();return o.right.left.isRed_()&&(o=o.copy(null,null,null,null,o.right.rotateRight_()),o=o.rotateLeft_(),o=o.colorFlip_()),o}moveRedRight_(){let o=this.colorFlip_();return o.left.left.isRed_()&&(o=o.rotateRight_(),o=o.colorFlip_()),o}rotateLeft_(){const o=this.copy(null,null,T.RED,null,this.right.left);return this.right.copy(null,null,this.color,o,null)}rotateRight_(){const o=this.copy(null,null,T.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,o)}colorFlip_(){const o=this.left.copy(null,null,!this.left.color,null,null),A=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,o,A)}checkMaxDepth_(){const o=this.check_();return Math.pow(2,o)<=this.count()+1}check_(){if(this.isRed_()&&this.left.isRed_())throw new Error("Red node has red child("+this.key+","+this.value+")");if(this.right.isRed_())throw new Error("Right child of ("+this.key+","+this.value+") is red");const o=this.left.check_();if(o!==this.right.check_())throw new Error("Black depths differ");return o+(this.isRed_()?0:1)}}return T.RED=!0,T.BLACK=!1,T})();class Aa{constructor(S,o=Aa.EMPTY_NODE){this.comparator_=S,this.root_=o}insert(S,o){return new Aa(this.comparator_,this.root_.insert(S,o,this.comparator_).copy(null,null,Vs.BLACK,null,null))}remove(S){return new Aa(this.comparator_,this.root_.remove(S,this.comparator_).copy(null,null,Vs.BLACK,null,null))}get(S){let o,A=this.root_;for(;!A.isEmpty();){if(o=this.comparator_(S,A.key),0===o)return A.value;o<0?A=A.left:o>0&&(A=A.right)}return null}getPredecessorKey(S){let o,A=this.root_,ee=null;for(;!A.isEmpty();){if(o=this.comparator_(S,A.key),0===o){if(A.left.isEmpty())return ee?ee.key:null;for(A=A.left;!A.right.isEmpty();)A=A.right;return A.key}o<0?A=A.left:o>0&&(ee=A,A=A.right)}throw new Error("Attempted to find predecessor key for a nonexistent key.  What gives?")}isEmpty(){return this.root_.isEmpty()}count(){return this.root_.count()}minKey(){return this.root_.minKey()}maxKey(){return this.root_.maxKey()}inorderTraversal(S){return this.root_.inorderTraversal(S)}reverseTraversal(S){return this.root_.reverseTraversal(S)}getIterator(S){return new ml(this.root_,null,this.comparator_,!1,S)}getIteratorFrom(S,o){return new ml(this.root_,S,this.comparator_,!1,o)}getReverseIteratorFrom(S,o){return new ml(this.root_,S,this.comparator_,!0,o)}getReverseIterator(S){return new ml(this.root_,null,this.comparator_,!0,S)}}function od(T,S){return wr(T.name,S.name)}function Lu(T,S){return wr(T,S)}Aa.EMPTY_NODE=new class Fl{copy(S,o,A,ee,he){return this}insert(S,o,A){return new Vs(S,o,null)}remove(S,o){return this}count(){return 0}isEmpty(){return!0}inorderTraversal(S){return!1}reverseTraversal(S){return!1}minKey(){return null}maxKey(){return null}check_(){return 0}isRed_(){return!1}};const Da=function(T){return"number"==typeof T?"number:"+ha(T):"string:"+T},uu=function(T){if(T.isLeafNode()){const S=T.val();(0,Ze.hu)("string"==typeof S||"number"==typeof S||"object"==typeof S&&(0,Ze.r3)(S,".sv"),"Priority must be a string or number.")}else(0,Ze.hu)(T===Gn||T.isEmpty(),"priority of unexpected type.");(0,Ze.hu)(T===Gn||T.getPriority().isEmpty(),"Priority nodes can't have a priority of their own.")};let Xi,Bl,ko,tl=(()=>{class T{constructor(o,A=T.__childrenNodeConstructor.EMPTY_NODE){this.value_=o,this.priorityNode_=A,this.lazyHash_=null,(0,Ze.hu)(null!=this.value_,"LeafNode shouldn't be created with null/undefined value."),uu(this.priorityNode_)}static set __childrenNodeConstructor(o){Xi=o}static get __childrenNodeConstructor(){return Xi}isLeafNode(){return!0}getPriority(){return this.priorityNode_}updatePriority(o){return new T(this.value_,o)}getImmediateChild(o){return".priority"===o?this.priorityNode_:T.__childrenNodeConstructor.EMPTY_NODE}getChild(o){return Ui(o)?this:".priority"===Bi(o)?this.priorityNode_:T.__childrenNodeConstructor.EMPTY_NODE}hasChild(){return!1}getPredecessorChildName(o,A){return null}updateImmediateChild(o,A){return".priority"===o?this.updatePriority(A):A.isEmpty()&&".priority"!==o?this:T.__childrenNodeConstructor.EMPTY_NODE.updateImmediateChild(o,A).updatePriority(this.priorityNode_)}updateChild(o,A){const ee=Bi(o);return null===ee?A:A.isEmpty()&&".priority"!==ee?this:((0,Ze.hu)(".priority"!==ee||1===xo(o),".priority must be the last token in a path"),this.updateImmediateChild(ee,T.__childrenNodeConstructor.EMPTY_NODE.updateChild(xi(o),A)))}isEmpty(){return!1}numChildren(){return 0}forEachChild(o,A){return!1}val(o){return o&&!this.getPriority().isEmpty()?{".value":this.getValue(),".priority":this.getPriority().val()}:this.getValue()}hash(){if(null===this.lazyHash_){let o="";this.priorityNode_.isEmpty()||(o+="priority:"+Da(this.priorityNode_.val())+":");const A=typeof this.value_;o+=A+":",o+="number"===A?ha(this.value_):this.value_,this.lazyHash_=Mt(o)}return this.lazyHash_}getValue(){return this.value_}compareTo(o){return o===T.__childrenNodeConstructor.EMPTY_NODE?1:o instanceof T.__childrenNodeConstructor?-1:((0,Ze.hu)(o.isLeafNode(),"Unknown node type"),this.compareToLeafNode_(o))}compareToLeafNode_(o){const A=typeof o.value_,ee=typeof this.value_,he=T.VALUE_TYPE_ORDER.indexOf(A),Ye=T.VALUE_TYPE_ORDER.indexOf(ee);return(0,Ze.hu)(he>=0,"Unknown leaf type: "+A),(0,Ze.hu)(Ye>=0,"Unknown leaf type: "+ee),he===Ye?"object"===ee?0:this.value_<o.value_?-1:this.value_===o.value_?0:1:Ye-he}withIndex(){return this}isIndexed(){return!0}equals(o){if(o===this)return!0;if(o.isLeafNode()){const A=o;return this.value_===A.value_&&this.priorityNode_.equals(A.priorityNode_)}return!1}}return T.VALUE_TYPE_ORDER=["object","boolean","number","string"],T})();const Ns=new class oc extends Ru{compare(S,o){const A=S.node.getPriority(),ee=o.node.getPriority(),he=A.compareTo(ee);return 0===he?wr(S.name,o.name):he}isDefinedOn(S){return!S.getPriority().isEmpty()}indexedValueChanged(S,o){return!S.getPriority().equals(o.getPriority())}minPost(){return Ji.MIN}maxPost(){return new Ji(Qt,new tl("[PRIORITY-POST]",ko))}makePost(S,o){const A=Bl(S);return new Ji(o,new tl("[PRIORITY-POST]",A))}toString(){return".priority"}},ku=Math.log(2);class qa{constructor(S){this.count=parseInt(Math.log(S+1)/ku,10),this.current_=this.count-1;const ee=(he=>parseInt(Array(this.count+1).join("1"),2))();this.bits_=S+1&ee}nextBitIsOne(){const S=!(this.bits_&1<<this.current_);return this.current_--,S}}const No=function(T,S,o,A){T.sort(S);const ee=function(er,mr){const Kr=mr-er;let nn,vn;if(0===Kr)return null;if(1===Kr)return nn=T[er],vn=o?o(nn):nn,new Vs(vn,nn.node,Vs.BLACK,null,null);{const Hn=parseInt(Kr/2,10)+er,Yn=ee(er,Hn),ii=ee(Hn+1,mr);return nn=T[Hn],vn=o?o(nn):nn,new Vs(vn,nn.node,Vs.BLACK,Yn,ii)}},bt=function(er){let mr=null,Kr=null,nn=T.length;const vn=function(Yn,ii){const ki=nn-Yn,Ls=nn;nn-=Yn;const Ws=ee(ki+1,Ls),ya=T[ki],Is=o?o(ya):ya;Hn(new Vs(Is,ya.node,ii,null,Ws))},Hn=function(Yn){mr?(mr.left=Yn,mr=Yn):(Kr=Yn,mr=Yn)};for(let Yn=0;Yn<er.count;++Yn){const ii=er.nextBitIsOne(),ki=Math.pow(2,er.count-(Yn+1));ii?vn(ki,Vs.BLACK):(vn(ki,Vs.BLACK),vn(ki,Vs.RED))}return Kr}(new qa(T.length));return new Aa(A||S,bt)};let cu;const ji={};class Ua{constructor(S,o){this.indexes_=S,this.indexSet_=o}static get Default(){return(0,Ze.hu)(ji&&Ns,"ChildrenNode.ts has not been loaded"),cu=cu||new Ua({".priority":ji},{".priority":Ns}),cu}get(S){const o=(0,Ze.DV)(this.indexes_,S);if(!o)throw new Error("No index defined for "+S);return o instanceof Aa?o:null}hasIndex(S){return(0,Ze.r3)(this.indexSet_,S.toString())}addIndex(S,o){(0,Ze.hu)(S!==Ka,"KeyIndex always exists and isn't meant to be added to the IndexMap.");const A=[];let ee=!1;const he=o.getIterator(Ji.Wrap);let bt,Ye=he.getNext();for(;Ye;)ee=ee||S.isDefinedOn(Ye.node),A.push(Ye),Ye=he.getNext();bt=ee?No(A,S.getCompare()):ji;const er=S.toString(),mr=Object.assign({},this.indexSet_);mr[er]=S;const Kr=Object.assign({},this.indexes_);return Kr[er]=bt,new Ua(Kr,mr)}addToIndexes(S,o){const A=(0,Ze.UI)(this.indexes_,(ee,he)=>{const Ye=(0,Ze.DV)(this.indexSet_,he);if((0,Ze.hu)(Ye,"Missing index implementation for "+he),ee===ji){if(Ye.isDefinedOn(S.node)){const bt=[],er=o.getIterator(Ji.Wrap);let mr=er.getNext();for(;mr;)mr.name!==S.name&&bt.push(mr),mr=er.getNext();return bt.push(S),No(bt,Ye.getCompare())}return ji}{const bt=o.get(S.name);let er=ee;return bt&&(er=er.remove(new Ji(S.name,bt))),er.insert(S,S.node)}});return new Ua(A,this.indexSet_)}removeFromIndexes(S,o){const A=(0,Ze.UI)(this.indexes_,ee=>{if(ee===ji)return ee;{const he=o.get(S.name);return he?ee.remove(new Ji(S.name,he)):ee}});return new Ua(A,this.indexSet_)}}let Fo,Vi=(()=>{class T{constructor(o,A,ee){this.children_=o,this.priorityNode_=A,this.indexMap_=ee,this.lazyHash_=null,this.priorityNode_&&uu(this.priorityNode_),this.children_.isEmpty()&&(0,Ze.hu)(!this.priorityNode_||this.priorityNode_.isEmpty(),"An empty node cannot have a priority")}static get EMPTY_NODE(){return Fo||(Fo=new T(new Aa(Lu),null,Ua.Default))}isLeafNode(){return!1}getPriority(){return this.priorityNode_||Fo}updatePriority(o){return this.children_.isEmpty()?this:new T(this.children_,o,this.indexMap_)}getImmediateChild(o){if(".priority"===o)return this.getPriority();{const A=this.children_.get(o);return null===A?Fo:A}}getChild(o){const A=Bi(o);return null===A?this:this.getImmediateChild(A).getChild(xi(o))}hasChild(o){return null!==this.children_.get(o)}updateImmediateChild(o,A){if((0,Ze.hu)(A,"We should always be passing snapshot nodes"),".priority"===o)return this.updatePriority(A);{const ee=new Ji(o,A);let he,Ye;A.isEmpty()?(he=this.children_.remove(o),Ye=this.indexMap_.removeFromIndexes(ee,this.children_)):(he=this.children_.insert(o,A),Ye=this.indexMap_.addToIndexes(ee,this.children_));const bt=he.isEmpty()?Fo:this.priorityNode_;return new T(he,bt,Ye)}}updateChild(o,A){const ee=Bi(o);if(null===ee)return A;{(0,Ze.hu)(".priority"!==Bi(o)||1===xo(o),".priority must be the last token in a path");const he=this.getImmediateChild(ee).updateChild(xi(o),A);return this.updateImmediateChild(ee,he)}}isEmpty(){return this.children_.isEmpty()}numChildren(){return this.children_.count()}val(o){if(this.isEmpty())return null;const A={};let ee=0,he=0,Ye=!0;if(this.forEachChild(Ns,(bt,er)=>{A[bt]=er.val(o),ee++,Ye&&T.INTEGER_REGEXP_.test(bt)?he=Math.max(he,Number(bt)):Ye=!1}),!o&&Ye&&he<2*ee){const bt=[];for(const er in A)bt[er]=A[er];return bt}return o&&!this.getPriority().isEmpty()&&(A[".priority"]=this.getPriority().val()),A}hash(){if(null===this.lazyHash_){let o="";this.getPriority().isEmpty()||(o+="priority:"+Da(this.getPriority().val())+":"),this.forEachChild(Ns,(A,ee)=>{const he=ee.hash();""!==he&&(o+=":"+A+":"+he)}),this.lazyHash_=""===o?"":Mt(o)}return this.lazyHash_}getPredecessorChildName(o,A,ee){const he=this.resolveIndex_(ee);if(he){const Ye=he.getPredecessorKey(new Ji(o,A));return Ye?Ye.name:null}return this.children_.getPredecessorKey(o)}getFirstChildName(o){const A=this.resolveIndex_(o);if(A){const ee=A.minKey();return ee&&ee.name}return this.children_.minKey()}getFirstChild(o){const A=this.getFirstChildName(o);return A?new Ji(A,this.children_.get(A)):null}getLastChildName(o){const A=this.resolveIndex_(o);if(A){const ee=A.maxKey();return ee&&ee.name}return this.children_.maxKey()}getLastChild(o){const A=this.getLastChildName(o);return A?new Ji(A,this.children_.get(A)):null}forEachChild(o,A){const ee=this.resolveIndex_(o);return ee?ee.inorderTraversal(he=>A(he.name,he.node)):this.children_.inorderTraversal(A)}getIterator(o){return this.getIteratorFrom(o.minPost(),o)}getIteratorFrom(o,A){const ee=this.resolveIndex_(A);if(ee)return ee.getIteratorFrom(o,he=>he);{const he=this.children_.getIteratorFrom(o.name,Ji.Wrap);let Ye=he.peek();for(;null!=Ye&&A.compare(Ye,o)<0;)he.getNext(),Ye=he.peek();return he}}getReverseIterator(o){return this.getReverseIteratorFrom(o.maxPost(),o)}getReverseIteratorFrom(o,A){const ee=this.resolveIndex_(A);if(ee)return ee.getReverseIteratorFrom(o,he=>he);{const he=this.children_.getReverseIteratorFrom(o.name,Ji.Wrap);let Ye=he.peek();for(;null!=Ye&&A.compare(Ye,o)>0;)he.getNext(),Ye=he.peek();return he}}compareTo(o){return this.isEmpty()?o.isEmpty()?0:-1:o.isLeafNode()||o.isEmpty()?1:o===Bo?-1:0}withIndex(o){if(o===Ka||this.indexMap_.hasIndex(o))return this;{const A=this.indexMap_.addIndex(o,this.children_);return new T(this.children_,this.priorityNode_,A)}}isIndexed(o){return o===Ka||this.indexMap_.hasIndex(o)}equals(o){if(o===this)return!0;if(o.isLeafNode())return!1;{const A=o;if(this.getPriority().equals(A.getPriority())){if(this.children_.count()===A.children_.count()){const ee=this.getIterator(Ns),he=A.getIterator(Ns);let Ye=ee.getNext(),bt=he.getNext();for(;Ye&&bt;){if(Ye.name!==bt.name||!Ye.node.equals(bt.node))return!1;Ye=ee.getNext(),bt=he.getNext()}return null===Ye&&null===bt}return!1}return!1}}resolveIndex_(o){return o===Ka?null:this.indexMap_.get(o.toString())}}return T.INTEGER_REGEXP_=/^(0|[1-9]\d*)$/,T})();const Bo=new class Nu extends Vi{constructor(){super(new Aa(Lu),Vi.EMPTY_NODE,Ua.Default)}compareTo(S){return S===this?0:1}equals(S){return S===this}getPriority(){return this}getImmediateChild(S){return Vi.EMPTY_NODE}isEmpty(){return!1}};function Ks(T,S=null){if(null===T)return Vi.EMPTY_NODE;if("object"==typeof T&&".priority"in T&&(S=T[".priority"]),(0,Ze.hu)(null===S||"string"==typeof S||"number"==typeof S||"object"==typeof S&&".sv"in S,"Invalid priority type found: "+typeof S),"object"==typeof T&&".value"in T&&null!==T[".value"]&&(T=T[".value"]),"object"!=typeof T||".sv"in T)return new tl(T,Ks(S));if(T instanceof Array){let o=Vi.EMPTY_NODE;return Gi(T,(A,ee)=>{if((0,Ze.r3)(T,A)&&"."!==A.substring(0,1)){const he=Ks(ee);(he.isLeafNode()||!he.isEmpty())&&(o=o.updateImmediateChild(A,he))}}),o.updatePriority(Ks(S))}{const o=[];let A=!1;if(Gi(T,(Ye,bt)=>{if("."!==Ye.substring(0,1)){const er=Ks(bt);er.isEmpty()||(A=A||!er.getPriority().isEmpty(),o.push(new Ji(Ye,er)))}}),0===o.length)return Vi.EMPTY_NODE;const he=No(o,od,Ye=>Ye.name,Lu);if(A){const Ye=No(o,Ns.getCompare());return new Vi(he,Ks(S),new Ua({".priority":Ye},{".priority":Ns}))}return new Vi(he,Ks(S),Ua.Default)}}Object.defineProperties(Ji,{MIN:{value:new Ji(cn,Vi.EMPTY_NODE)},MAX:{value:new Ji(Qt,Bo)}}),uo.__EMPTY_NODE=Vi.EMPTY_NODE,tl.__childrenNodeConstructor=Vi,function el(T){Gn=T}(Bo),function ud(T){ko=T}(Bo),function ld(T){Bl=T}(Ks);class qs extends Ru{constructor(S){super(),this.indexPath_=S,(0,Ze.hu)(!Ui(S)&&".priority"!==Bi(S),"Can't create PathIndex with empty path or .priority key")}extractChild(S){return S.getChild(this.indexPath_)}isDefinedOn(S){return!S.getChild(this.indexPath_).isEmpty()}compare(S,o){const A=this.extractChild(S.node),ee=this.extractChild(o.node),he=A.compareTo(ee);return 0===he?wr(S.name,o.name):he}makePost(S,o){const A=Ks(S),ee=Vi.EMPTY_NODE.updateChild(this.indexPath_,A);return new Ji(o,ee)}maxPost(){const S=Vi.EMPTY_NODE.updateChild(this.indexPath_,Bo);return new Ji(Qt,S)}toString(){return fl(this.indexPath_,0).join("/")}}const Bu=new class lc extends Ru{compare(S,o){const A=S.node.compareTo(o.node);return 0===A?wr(S.name,o.name):A}isDefinedOn(S){return!0}indexedValueChanged(S,o){return!S.equals(o)}minPost(){return Ji.MIN}maxPost(){return Ji.MAX}makePost(S,o){const A=Ks(S);return new Ji(o,A)}toString(){return".value"}};function _a(T){return{type:"value",snapshotNode:T}}function vl(T,S){return{type:"child_added",snapshotNode:S,childName:T}}function rl(T,S){return{type:"child_removed",snapshotNode:S,childName:T}}function _l(T,S,o){return{type:"child_changed",snapshotNode:S,childName:T,oldSnap:o}}class fu{constructor(S){this.index_=S}updateChild(S,o,A,ee,he,Ye){(0,Ze.hu)(S.isIndexed(this.index_),"A node must be indexed if only a child is updated");const bt=S.getImmediateChild(o);return bt.getChild(ee).equals(A.getChild(ee))&&bt.isEmpty()===A.isEmpty()||(null!=Ye&&(A.isEmpty()?S.hasChild(o)?Ye.trackChildChange(rl(o,bt)):(0,Ze.hu)(S.isLeafNode(),"A child remove without an old child only makes sense on a leaf node"):bt.isEmpty()?Ye.trackChildChange(vl(o,A)):Ye.trackChildChange(_l(o,A,bt))),S.isLeafNode()&&A.isEmpty())?S:S.updateImmediateChild(o,A).withIndex(this.index_)}updateFullNode(S,o,A){return null!=A&&(S.isLeafNode()||S.forEachChild(Ns,(ee,he)=>{o.hasChild(ee)||A.trackChildChange(rl(ee,he))}),o.isLeafNode()||o.forEachChild(Ns,(ee,he)=>{if(S.hasChild(ee)){const Ye=S.getImmediateChild(ee);Ye.equals(he)||A.trackChildChange(_l(ee,he,Ye))}else A.trackChildChange(vl(ee,he))})),o.withIndex(this.index_)}updatePriority(S,o){return S.isEmpty()?Vi.EMPTY_NODE:S.updatePriority(o)}filtersNodes(){return!1}getIndexedFilter(){return this}getIndex(){return this.index_}}class hu{constructor(S){this.indexedFilter_=new fu(S.getIndex()),this.index_=S.getIndex(),this.startPost_=hu.getStartPost_(S),this.endPost_=hu.getEndPost_(S),this.startIsInclusive_=!S.startAfterSet_,this.endIsInclusive_=!S.endBeforeSet_}getStartPost(){return this.startPost_}getEndPost(){return this.endPost_}matches(S){const o=this.startIsInclusive_?this.index_.compare(this.getStartPost(),S)<=0:this.index_.compare(this.getStartPost(),S)<0,A=this.endIsInclusive_?this.index_.compare(S,this.getEndPost())<=0:this.index_.compare(S,this.getEndPost())<0;return o&&A}updateChild(S,o,A,ee,he,Ye){return this.matches(new Ji(o,A))||(A=Vi.EMPTY_NODE),this.indexedFilter_.updateChild(S,o,A,ee,he,Ye)}updateFullNode(S,o,A){o.isLeafNode()&&(o=Vi.EMPTY_NODE);let ee=o.withIndex(this.index_);ee=ee.updatePriority(Vi.EMPTY_NODE);const he=this;return o.forEachChild(Ns,(Ye,bt)=>{he.matches(new Ji(Ye,bt))||(ee=ee.updateImmediateChild(Ye,Vi.EMPTY_NODE))}),this.indexedFilter_.updateFullNode(S,ee,A)}updatePriority(S,o){return S}filtersNodes(){return!0}getIndexedFilter(){return this.indexedFilter_}getIndex(){return this.index_}static getStartPost_(S){if(S.hasStart()){const o=S.getIndexStartName();return S.getIndex().makePost(S.getIndexStartValue(),o)}return S.getIndex().minPost()}static getEndPost_(S){if(S.hasEnd()){const o=S.getIndexEndName();return S.getIndex().makePost(S.getIndexEndValue(),o)}return S.getIndex().maxPost()}}class uc{constructor(S){this.withinDirectionalStart=o=>this.reverse_?this.withinEndPost(o):this.withinStartPost(o),this.withinDirectionalEnd=o=>this.reverse_?this.withinStartPost(o):this.withinEndPost(o),this.withinStartPost=o=>{const A=this.index_.compare(this.rangedFilter_.getStartPost(),o);return this.startIsInclusive_?A<=0:A<0},this.withinEndPost=o=>{const A=this.index_.compare(o,this.rangedFilter_.getEndPost());return this.endIsInclusive_?A<=0:A<0},this.rangedFilter_=new hu(S),this.index_=S.getIndex(),this.limit_=S.getLimit(),this.reverse_=!S.isViewFromLeft(),this.startIsInclusive_=!S.startAfterSet_,this.endIsInclusive_=!S.endBeforeSet_}updateChild(S,o,A,ee,he,Ye){return this.rangedFilter_.matches(new Ji(o,A))||(A=Vi.EMPTY_NODE),S.getImmediateChild(o).equals(A)?S:S.numChildren()<this.limit_?this.rangedFilter_.getIndexedFilter().updateChild(S,o,A,ee,he,Ye):this.fullLimitUpdateChild_(S,o,A,he,Ye)}updateFullNode(S,o,A){let ee;if(o.isLeafNode()||o.isEmpty())ee=Vi.EMPTY_NODE.withIndex(this.index_);else if(2*this.limit_<o.numChildren()&&o.isIndexed(this.index_)){let he;ee=Vi.EMPTY_NODE.withIndex(this.index_),he=this.reverse_?o.getReverseIteratorFrom(this.rangedFilter_.getEndPost(),this.index_):o.getIteratorFrom(this.rangedFilter_.getStartPost(),this.index_);let Ye=0;for(;he.hasNext()&&Ye<this.limit_;){const bt=he.getNext();if(this.withinDirectionalStart(bt)){if(!this.withinDirectionalEnd(bt))break;ee=ee.updateImmediateChild(bt.name,bt.node),Ye++}}}else{let he;ee=o.withIndex(this.index_),ee=ee.updatePriority(Vi.EMPTY_NODE),he=this.reverse_?ee.getReverseIterator(this.index_):ee.getIterator(this.index_);let Ye=0;for(;he.hasNext();){const bt=he.getNext();Ye<this.limit_&&this.withinDirectionalStart(bt)&&this.withinDirectionalEnd(bt)?Ye++:ee=ee.updateImmediateChild(bt.name,Vi.EMPTY_NODE)}}return this.rangedFilter_.getIndexedFilter().updateFullNode(S,ee,A)}updatePriority(S,o){return S}filtersNodes(){return!0}getIndexedFilter(){return this.rangedFilter_.getIndexedFilter()}getIndex(){return this.index_}fullLimitUpdateChild_(S,o,A,ee,he){let Ye;if(this.reverse_){const nn=this.index_.getCompare();Ye=(vn,Hn)=>nn(Hn,vn)}else Ye=this.index_.getCompare();const bt=S;(0,Ze.hu)(bt.numChildren()===this.limit_,"");const er=new Ji(o,A),mr=this.reverse_?bt.getFirstChild(this.index_):bt.getLastChild(this.index_),Kr=this.rangedFilter_.matches(er);if(bt.hasChild(o)){const nn=bt.getImmediateChild(o);let vn=ee.getChildAfterChild(this.index_,mr,this.reverse_);for(;null!=vn&&(vn.name===o||bt.hasChild(vn.name));)vn=ee.getChildAfterChild(this.index_,vn,this.reverse_);const Hn=null==vn?1:Ye(vn,er);if(Kr&&!A.isEmpty()&&Hn>=0)return null!=he&&he.trackChildChange(_l(o,A,nn)),bt.updateImmediateChild(o,A);{null!=he&&he.trackChildChange(rl(o,nn));const ii=bt.updateImmediateChild(o,Vi.EMPTY_NODE);return null!=vn&&this.rangedFilter_.matches(vn)?(null!=he&&he.trackChildChange(vl(vn.name,vn.node)),ii.updateImmediateChild(vn.name,vn.node)):ii}}return A.isEmpty()?S:Kr&&Ye(mr,er)>=0?(null!=he&&(he.trackChildChange(rl(mr.name,mr.node)),he.trackChildChange(vl(o,A))),bt.updateImmediateChild(o,A).updateImmediateChild(mr.name,Vi.EMPTY_NODE)):S}}class Uo{constructor(){this.limitSet_=!1,this.startSet_=!1,this.startNameSet_=!1,this.startAfterSet_=!1,this.endSet_=!1,this.endNameSet_=!1,this.endBeforeSet_=!1,this.limit_=0,this.viewFrom_="",this.indexStartValue_=null,this.indexStartName_="",this.indexEndValue_=null,this.indexEndName_="",this.index_=Ns}hasStart(){return this.startSet_}isViewFromLeft(){return""===this.viewFrom_?this.startSet_:"l"===this.viewFrom_}getIndexStartValue(){return(0,Ze.hu)(this.startSet_,"Only valid if start has been set"),this.indexStartValue_}getIndexStartName(){return(0,Ze.hu)(this.startSet_,"Only valid if start has been set"),this.startNameSet_?this.indexStartName_:cn}hasEnd(){return this.endSet_}getIndexEndValue(){return(0,Ze.hu)(this.endSet_,"Only valid if end has been set"),this.indexEndValue_}getIndexEndName(){return(0,Ze.hu)(this.endSet_,"Only valid if end has been set"),this.endNameSet_?this.indexEndName_:Qt}hasLimit(){return this.limitSet_}hasAnchoredLimit(){return this.limitSet_&&""!==this.viewFrom_}getLimit(){return(0,Ze.hu)(this.limitSet_,"Only valid if limit has been set"),this.limit_}getIndex(){return this.index_}loadsAllData(){return!(this.startSet_||this.endSet_||this.limitSet_)}isDefault(){return this.loadsAllData()&&this.index_===Ns}copy(){const S=new Uo;return S.limitSet_=this.limitSet_,S.limit_=this.limit_,S.startSet_=this.startSet_,S.startAfterSet_=this.startAfterSet_,S.indexStartValue_=this.indexStartValue_,S.startNameSet_=this.startNameSet_,S.indexStartName_=this.indexStartName_,S.endSet_=this.endSet_,S.endBeforeSet_=this.endBeforeSet_,S.indexEndValue_=this.indexEndValue_,S.endNameSet_=this.endNameSet_,S.indexEndName_=this.indexEndName_,S.index_=this.index_,S.viewFrom_=this.viewFrom_,S}}function pu(T,S,o){const A=T.copy();return A.startSet_=!0,void 0===S&&(S=null),A.indexStartValue_=S,null!=o?(A.startNameSet_=!0,A.indexStartName_=o):(A.startNameSet_=!1,A.indexStartName_=""),A}function nl(T,S,o){const A=T.copy();return A.endSet_=!0,void 0===S&&(S=null),A.indexEndValue_=S,void 0!==o?(A.endNameSet_=!0,A.indexEndName_=o):(A.endNameSet_=!1,A.indexEndName_=""),A}function Ul(T,S){const o=T.copy();return o.index_=S,o}function dc(T){const S={};if(T.isDefault())return S;let o;if(T.index_===Ns?o="$priority":T.index_===Bu?o="$value":T.index_===Ka?o="$key":((0,Ze.hu)(T.index_ instanceof qs,"Unrecognized index type!"),o=T.index_.toString()),S.orderBy=(0,Ze.Wl)(o),T.startSet_){const A=T.startAfterSet_?"startAfter":"startAt";S[A]=(0,Ze.Wl)(T.indexStartValue_),T.startNameSet_&&(S[A]+=","+(0,Ze.Wl)(T.indexStartName_))}if(T.endSet_){const A=T.endBeforeSet_?"endBefore":"endAt";S[A]=(0,Ze.Wl)(T.indexEndValue_),T.endNameSet_&&(S[A]+=","+(0,Ze.Wl)(T.indexEndName_))}return T.limitSet_&&(T.isViewFromLeft()?S.limitToFirst=T.limit_:S.limitToLast=T.limit_),S}function Ha(T){const S={};if(T.startSet_&&(S.sp=T.indexStartValue_,T.startNameSet_&&(S.sn=T.indexStartName_),S.sin=!T.startAfterSet_),T.endSet_&&(S.ep=T.indexEndValue_,T.endNameSet_&&(S.en=T.indexEndName_),S.ein=!T.endBeforeSet_),T.limitSet_){S.l=T.limit_;let o=T.viewFrom_;""===o&&(o=T.isViewFromLeft()?"l":"r"),S.vf=o}return T.index_!==Ns&&(S.i=T.index_.toString()),S}class Ja extends si{constructor(S,o,A,ee){super(),this.repoInfo_=S,this.onDataUpdate_=o,this.authTokenProvider_=A,this.appCheckTokenProvider_=ee,this.log_=zs("p:rest:"),this.listens_={}}reportStats(S){throw new Error("Method not implemented.")}static getListenId_(S,o){return void 0!==o?"tag$"+o:((0,Ze.hu)(S._queryParams.isDefault(),"should have a tag if it's not a default query."),S._path.toString())}listen(S,o,A,ee){const he=S._path.toString();this.log_("Listen called for "+he+" "+S._queryIdentifier);const Ye=Ja.getListenId_(S,A),bt={};this.listens_[Ye]=bt;const er=dc(S._queryParams);this.restRequest_(he+".json",er,(mr,Kr)=>{let nn=Kr;if(404===mr&&(nn=null,mr=null),null===mr&&this.onDataUpdate_(he,nn,!1,A),(0,Ze.DV)(this.listens_,Ye)===bt){let vn;vn=mr?401===mr?"permission_denied":"rest_error:"+mr:"ok",ee(vn,null)}})}unlisten(S,o){const A=Ja.getListenId_(S,o);delete this.listens_[A]}get(S){const o=dc(S._queryParams),A=S._path.toString(),ee=new Ze.BH;return this.restRequest_(A+".json",o,(he,Ye)=>{let bt=Ye;404===he&&(bt=null,he=null),null===he?(this.onDataUpdate_(A,bt,!1,null),ee.resolve(bt)):ee.reject(new Error(bt))}),ee.promise}refreshAuthToken(S){}restRequest_(S,o={},A){return o.format="export",Promise.all([this.authTokenProvider_.getToken(!1),this.appCheckTokenProvider_.getToken(!1)]).then(([ee,he])=>{ee&&ee.accessToken&&(o.auth=ee.accessToken),he&&he.token&&(o.ac=he.token);const Ye=(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host+S+"?ns="+this.repoInfo_.namespace+(0,Ze.xO)(o);this.log_("Sending REST request for "+Ye);const bt=new XMLHttpRequest;bt.onreadystatechange=()=>{if(A&&4===bt.readyState){this.log_("REST Response for "+Ye+" received. status:",bt.status,"response:",bt.responseText);let er=null;if(bt.status>=200&&bt.status<300){try{er=(0,Ze.cI)(bt.responseText)}catch{xn("Failed to parse JSON response for "+Ye+": "+bt.responseText)}A(null,er)}else 401!==bt.status&&404!==bt.status&&xn("Got unsuccessful REST response for "+Ye+" Status: "+bt.status),A(bt.status);A=null}},bt.open("GET",Ye,!0),bt.send()})}}class il{constructor(){this.rootNode_=Vi.EMPTY_NODE}getNode(S){return this.rootNode_.getChild(S)}updateSnapshot(S,o){this.rootNode_=this.rootNode_.updateChild(S,o)}}function Hl(){return{value:null,children:new Map}}function Vl(T,S,o){if(Ui(S))T.value=o,T.children.clear();else if(null!==T.value)T.value=T.value.updateChild(S,o);else{const A=Bi(S);T.children.has(A)||T.children.set(A,Hl()),Vl(T.children.get(A),S=xi(S),o)}}function Vu(T,S){if(Ui(S))return T.value=null,T.children.clear(),!0;if(null!==T.value){if(T.value.isLeafNode())return!1;{const o=T.value;return T.value=null,o.forEachChild(Ns,(A,ee)=>{Vl(T,new Wi(A),ee)}),Vu(T,S)}}if(T.children.size>0){const o=Bi(S);return S=xi(S),T.children.has(o)&&Vu(T.children.get(o),S)&&T.children.delete(o),0===T.children.size}return!0}function fc(T,S,o){null!==T.value?o(S,T.value):function Yu(T,S){T.children.forEach((o,A)=>{S(A,o)})}(T,(A,ee)=>{fc(ee,new Wi(S.toString()+"/"+A),o)})}class Yl{constructor(S){this.collection_=S,this.last_=null}get(){const S=this.collection_.get(),o=Object.assign({},S);return this.last_&&Gi(this.last_,(A,ee)=>{o[A]=o[A]-ee}),this.last_=S,o}}class Je{constructor(S,o){this.server_=o,this.statsToReport_={},this.statsListener_=new Yl(S);const A=1e4+2e4*Math.random();Za(this.reportStats_.bind(this),Math.floor(A))}reportStats_(){const S=this.statsListener_.get(),o={};let A=!1;Gi(S,(ee,he)=>{he>0&&(0,Ze.r3)(this.statsToReport_,ee)&&(o[ee]=he,A=!0)}),A&&this.server_.reportStats(o),Za(this.reportStats_.bind(this),Math.floor(2*Math.random()*3e5))}}var Ht=(()=>{return(T=Ht||(Ht={}))[T.OVERWRITE=0]="OVERWRITE",T[T.MERGE=1]="MERGE",T[T.ACK_USER_WRITE=2]="ACK_USER_WRITE",T[T.LISTEN_COMPLETE=3]="LISTEN_COMPLETE",Ht;var T})();function rn(T){return{fromUser:!1,fromServer:!0,queryId:T,tagged:!0}}class Dn{constructor(S,o,A){this.path=S,this.affectedTree=o,this.revert=A,this.type=Ht.ACK_USER_WRITE,this.source={fromUser:!0,fromServer:!1,queryId:null,tagged:!1}}operationForChild(S){if(Ui(this.path)){if(null!=this.affectedTree.value)return(0,Ze.hu)(this.affectedTree.children.isEmpty(),"affectedTree should not have overlapping affected paths."),this;{const o=this.affectedTree.subtree(new Wi(S));return new Dn(Zi(),o,this.revert)}}return(0,Ze.hu)(Bi(this.path)===S,"operationForChild called for unrelated child."),new Dn(xi(this.path),this.affectedTree,this.revert)}}class ri{constructor(S,o){this.source=S,this.path=o,this.type=Ht.LISTEN_COMPLETE}operationForChild(S){return Ui(this.path)?new ri(this.source,Zi()):new ri(this.source,xi(this.path))}}class Ai{constructor(S,o,A){this.source=S,this.path=o,this.snap=A,this.type=Ht.OVERWRITE}operationForChild(S){return Ui(this.path)?new Ai(this.source,Zi(),this.snap.getImmediateChild(S)):new Ai(this.source,xi(this.path),this.snap)}}class ds{constructor(S,o,A){this.source=S,this.path=o,this.children=A,this.type=Ht.MERGE}operationForChild(S){if(Ui(this.path)){const o=this.children.subtree(new Wi(S));return o.isEmpty()?null:o.value?new Ai(this.source,Zi(),o.value):new ds(this.source,Zi(),o)}return(0,Ze.hu)(Bi(this.path)===S,"Can't get a merge for a child not on the path of the operation"),new ds(this.source,xi(this.path),this.children)}toString(){return"Operation("+this.path+": "+this.source.toString()+" merge: "+this.children.toString()+")"}}class Fs{constructor(S,o,A){this.node_=S,this.fullyInitialized_=o,this.filtered_=A}isFullyInitialized(){return this.fullyInitialized_}isFiltered(){return this.filtered_}isCompleteForPath(S){if(Ui(S))return this.isFullyInitialized()&&!this.filtered_;const o=Bi(S);return this.isCompleteForChild(o)}isCompleteForChild(S){return this.isFullyInitialized()&&!this.filtered_||this.node_.hasChild(S)}getNode(){return this.node_}}class Ys{constructor(S){this.query_=S,this.index_=this.query_._queryParams.getIndex()}}function mu(T,S,o,A,ee,he){const Ye=A.filter(bt=>bt.type===o);Ye.sort((bt,er)=>function Hf(T,S,o){if(null==S.childName||null==o.childName)throw(0,Ze.g5)("Should only compare child_ events.");const A=new Ji(S.childName,S.snapshotNode),ee=new Ji(o.childName,o.snapshotNode);return T.index_.compare(A,ee)}(T,bt,er)),Ye.forEach(bt=>{const er=function Uf(T,S,o){return"value"===S.type||"child_removed"===S.type||(S.prevName=o.getPredecessorChildName(S.childName,S.snapshotNode,T.index_)),S}(T,bt,he);ee.forEach(mr=>{mr.respondsTo(bt.type)&&S.push(mr.createEvent(er,T.query_))})})}function vs(T,S){return{eventCache:T,serverCache:S}}function ju(T,S,o,A){return vs(new Fs(S,o,A),T.serverCache)}function Gu(T,S,o,A){return vs(T.eventCache,new Fs(S,o,A))}function Ho(T){return T.eventCache.isFullyInitialized()?T.eventCache.getNode():null}function jl(T){return T.serverCache.isFullyInitialized()?T.serverCache.getNode():null}let hc;class _s{constructor(S,o=(()=>(hc||(hc=new Aa(On)),hc))()){this.value=S,this.children=o}static fromObject(S){let o=new _s(null);return Gi(S,(A,ee)=>{o=o.set(new Wi(A),ee)}),o}isEmpty(){return null===this.value&&this.children.isEmpty()}findRootMostMatchingPathAndValue(S,o){if(null!=this.value&&o(this.value))return{path:Zi(),value:this.value};if(Ui(S))return null;{const A=Bi(S),ee=this.children.get(A);if(null!==ee){const he=ee.findRootMostMatchingPathAndValue(xi(S),o);return null!=he?{path:ms(new Wi(A),he.path),value:he.value}:null}return null}}findRootMostValueAndPath(S){return this.findRootMostMatchingPathAndValue(S,()=>!0)}subtree(S){if(Ui(S))return this;{const o=Bi(S),A=this.children.get(o);return null!==A?A.subtree(xi(S)):new _s(null)}}set(S,o){if(Ui(S))return new _s(o,this.children);{const A=Bi(S),he=(this.children.get(A)||new _s(null)).set(xi(S),o),Ye=this.children.insert(A,he);return new _s(this.value,Ye)}}remove(S){if(Ui(S))return this.children.isEmpty()?new _s(null):new _s(null,this.children);{const o=Bi(S),A=this.children.get(o);if(A){const ee=A.remove(xi(S));let he;return he=ee.isEmpty()?this.children.remove(o):this.children.insert(o,ee),null===this.value&&he.isEmpty()?new _s(null):new _s(this.value,he)}return this}}get(S){if(Ui(S))return this.value;{const o=Bi(S),A=this.children.get(o);return A?A.get(xi(S)):null}}setTree(S,o){if(Ui(S))return o;{const A=Bi(S),he=(this.children.get(A)||new _s(null)).setTree(xi(S),o);let Ye;return Ye=he.isEmpty()?this.children.remove(A):this.children.insert(A,he),new _s(this.value,Ye)}}fold(S){return this.fold_(Zi(),S)}fold_(S,o){const A={};return this.children.inorderTraversal((ee,he)=>{A[ee]=he.fold_(ms(S,ee),o)}),o(S,this.value,A)}findOnPath(S,o){return this.findOnPath_(S,Zi(),o)}findOnPath_(S,o,A){const ee=!!this.value&&A(o,this.value);if(ee)return ee;if(Ui(S))return null;{const he=Bi(S),Ye=this.children.get(he);return Ye?Ye.findOnPath_(xi(S),ms(o,he),A):null}}foreachOnPath(S,o){return this.foreachOnPath_(S,Zi(),o)}foreachOnPath_(S,o,A){if(Ui(S))return this;{this.value&&A(o,this.value);const ee=Bi(S),he=this.children.get(ee);return he?he.foreachOnPath_(xi(S),ms(o,ee),A):new _s(null)}}foreach(S){this.foreach_(Zi(),S)}foreach_(S,o){this.children.inorderTraversal((A,ee)=>{ee.foreach_(ms(S,A),o)}),this.value&&o(S,this.value)}foreachChild(S){this.children.inorderTraversal((o,A)=>{A.value&&S(o,A.value)})}}class yo{constructor(S){this.writeTree_=S}static empty(){return new yo(new _s(null))}}function Wu(T,S,o){if(Ui(S))return new yo(new _s(o));{const A=T.writeTree_.findRootMostValueAndPath(S);if(null!=A){const ee=A.path;let he=A.value;const Ye=ba(ee,S);return he=he.updateChild(Ye,o),new yo(T.writeTree_.set(ee,he))}{const ee=new _s(o),he=T.writeTree_.setTree(S,ee);return new yo(he)}}}function Dc(T,S,o){let A=T;return Gi(o,(ee,he)=>{A=Wu(A,ms(S,ee),he)}),A}function Gl(T,S){if(Ui(S))return yo.empty();{const o=T.writeTree_.setTree(S,new _s(null));return new yo(o)}}function vu(T,S){return null!=_u(T,S)}function _u(T,S){const o=T.writeTree_.findRootMostValueAndPath(S);return null!=o?T.writeTree_.get(o.path).getChild(ba(o.path,S)):null}function Zu(T){const S=[],o=T.writeTree_.value;return null!=o?o.isLeafNode()||o.forEachChild(Ns,(A,ee)=>{S.push(new Ji(A,ee))}):T.writeTree_.children.inorderTraversal((A,ee)=>{null!=ee.value&&S.push(new Ji(A,ee.value))}),S}function Ao(T,S){if(Ui(S))return T;{const o=_u(T,S);return new yo(null!=o?new _s(o):T.writeTree_.subtree(S))}}function Wl(T){return T.writeTree_.isEmpty()}function zu(T,S){return yl(Zi(),T.writeTree_,S)}function yl(T,S,o){if(null!=S.value)return o.updateChild(T,S.value);{let A=null;return S.children.inorderTraversal((ee,he)=>{".priority"===ee?((0,Ze.hu)(null!==he.value,"Priority writes must always be leaf nodes"),A=he.value):o=yl(ms(T,ee),he,o)}),!o.getChild(T).isEmpty()&&null!==A&&(o=o.updateChild(ms(T,".priority"),A)),o}}function Ku(T,S){return rf(S,T)}function Wf(T,S){if(T.snap)return Hr(T.path,S);for(const o in T.children)if(T.children.hasOwnProperty(o)&&Hr(ms(T.path,o),S))return!0;return!1}function Js(T){return T.visible}function Zl(T,S,o){let A=yo.empty();for(let ee=0;ee<T.length;++ee){const he=T[ee];if(S(he)){const Ye=he.path;let bt;if(he.snap)Hr(o,Ye)?(bt=ba(o,Ye),A=Wu(A,bt,he.snap)):Hr(Ye,o)&&(bt=ba(Ye,o),A=Wu(A,Zi(),he.snap.getChild(bt)));else{if(!he.children)throw(0,Ze.g5)("WriteRecord should have .snap or .children");if(Hr(o,Ye))bt=ba(o,Ye),A=Dc(A,bt,he.children);else if(Hr(Ye,o))if(bt=ba(Ye,o),Ui(bt))A=Dc(A,Zi(),he.children);else{const er=(0,Ze.DV)(he.children,Bi(bt));if(er){const mr=er.getChild(xi(bt));A=Wu(A,Zi(),mr)}}}}}return A}function cd(T,S,o,A,ee){if(A||ee){const he=Ao(T.visibleWrites,S);return!ee&&Wl(he)?o:ee||null!=o||vu(he,Zi())?zu(Zl(T.allWrites,function(mr){return(mr.visible||ee)&&(!A||!~A.indexOf(mr.writeId))&&(Hr(mr.path,S)||Hr(S,mr.path))},S),o||Vi.EMPTY_NODE):null}{const he=_u(T.visibleWrites,S);if(null!=he)return he;{const Ye=Ao(T.visibleWrites,S);return Wl(Ye)?o:null!=o||vu(Ye,Zi())?zu(Ye,o||Vi.EMPTY_NODE):null}}}function bl(T,S,o,A){return cd(T.writeTree,T.treePath,S,o,A)}function Oc(T,S){return function Xd(T,S,o){let A=Vi.EMPTY_NODE;const ee=_u(T.visibleWrites,S);if(ee)return ee.isLeafNode()||ee.forEachChild(Ns,(he,Ye)=>{A=A.updateImmediateChild(he,Ye)}),A;if(o){const he=Ao(T.visibleWrites,S);return o.forEachChild(Ns,(Ye,bt)=>{const er=zu(Ao(he,new Wi(Ye)),bt);A=A.updateImmediateChild(Ye,er)}),Zu(he).forEach(Ye=>{A=A.updateImmediateChild(Ye.name,Ye.node)}),A}return Zu(Ao(T.visibleWrites,S)).forEach(Ye=>{A=A.updateImmediateChild(Ye.name,Ye.node)}),A}(T.writeTree,T.treePath,S)}function zl(T,S,o,A){return function Cl(T,S,o,A,ee){(0,Ze.hu)(A||ee,"Either existingEventSnap or existingServerSnap must exist");const he=ms(S,o);if(vu(T.visibleWrites,he))return null;{const Ye=Ao(T.visibleWrites,he);return Wl(Ye)?ee.getChild(o):zu(Ye,ee.getChild(o))}}(T.writeTree,T.treePath,S,o,A)}function Ds(T,S){return function pc(T,S){return _u(T.visibleWrites,S)}(T.writeTree,ms(T.treePath,S))}function Rc(T,S,o){return function ef(T,S,o,A){const ee=ms(S,o),he=_u(T.visibleWrites,ee);return null!=he?he:A.isCompleteForChild(o)?zu(Ao(T.visibleWrites,ee),A.getNode().getImmediateChild(o)):null}(T.writeTree,T.treePath,S,o)}function gc(T,S){return rf(ms(T.treePath,S),T.writeTree)}function rf(T,S){return{treePath:T,writeTree:S}}class dd{constructor(){this.changeMap=new Map}trackChildChange(S){const o=S.type,A=S.childName;(0,Ze.hu)("child_added"===o||"child_changed"===o||"child_removed"===o,"Only child changes supported for tracking"),(0,Ze.hu)(".priority"!==A,"Only non-priority child changes can be tracked.");const ee=this.changeMap.get(A);if(ee){const he=ee.type;if("child_added"===o&&"child_removed"===he)this.changeMap.set(A,_l(A,S.snapshotNode,ee.snapshotNode));else if("child_removed"===o&&"child_added"===he)this.changeMap.delete(A);else if("child_removed"===o&&"child_changed"===he)this.changeMap.set(A,rl(A,ee.oldSnap));else if("child_changed"===o&&"child_added"===he)this.changeMap.set(A,vl(A,S.snapshotNode));else{if("child_changed"!==o||"child_changed"!==he)throw(0,Ze.g5)("Illegal combination of changes: "+S+" occurred after "+ee);this.changeMap.set(A,_l(A,S.snapshotNode,ee.oldSnap))}}else this.changeMap.set(A,S)}getChanges(){return Array.from(this.changeMap.values())}}const Kl=new class fd{getCompleteChild(S){return null}getChildAfterChild(S,o,A){return null}};class Lc{constructor(S,o,A=null){this.writes_=S,this.viewCache_=o,this.optCompleteServerCache_=A}getCompleteChild(S){const o=this.viewCache_.eventCache;if(o.isCompleteForChild(S))return o.getNode().getImmediateChild(S);{const A=null!=this.optCompleteServerCache_?new Fs(this.optCompleteServerCache_,!0,!1):this.viewCache_.serverCache;return Rc(this.writes_,S,A)}}getChildAfterChild(S,o,A){const ee=null!=this.optCompleteServerCache_?this.optCompleteServerCache_:jl(this.viewCache_),he=function tf(T,S,o,A,ee,he){return function Zf(T,S,o,A,ee,he,Ye){let bt;const er=Ao(T.visibleWrites,S),mr=_u(er,Zi());if(null!=mr)bt=mr;else{if(null==o)return[];bt=zu(er,o)}if(bt=bt.withIndex(Ye),bt.isEmpty()||bt.isLeafNode())return[];{const Kr=[],nn=Ye.getCompare(),vn=he?bt.getReverseIteratorFrom(A,Ye):bt.getIteratorFrom(A,Ye);let Hn=vn.getNext();for(;Hn&&Kr.length<ee;)0!==nn(Hn,A)&&Kr.push(Hn),Hn=vn.getNext();return Kr}}(T.writeTree,T.treePath,S,o,A,ee,he)}(this.writes_,ee,o,1,A,S);return 0===he.length?null:he[0]}}function kc(T,S,o,A,ee,he){const Ye=S.eventCache;if(null!=Ds(A,o))return S;{let bt,er;if(Ui(o))if((0,Ze.hu)(S.serverCache.isFullyInitialized(),"If change path is empty, we must have complete server data"),S.serverCache.isFiltered()){const mr=jl(S),nn=Oc(A,mr instanceof Vi?mr:Vi.EMPTY_NODE);bt=T.filter.updateFullNode(S.eventCache.getNode(),nn,he)}else{const mr=bl(A,jl(S));bt=T.filter.updateFullNode(S.eventCache.getNode(),mr,he)}else{const mr=Bi(o);if(".priority"===mr){(0,Ze.hu)(1===xo(o),"Can't have a priority with additional path components");const Kr=Ye.getNode();er=S.serverCache.getNode();const nn=zl(A,o,Kr,er);bt=null!=nn?T.filter.updatePriority(Kr,nn):Ye.getNode()}else{const Kr=xi(o);let nn;if(Ye.isCompleteForChild(mr)){er=S.serverCache.getNode();const vn=zl(A,o,Ye.getNode(),er);nn=null!=vn?Ye.getNode().getImmediateChild(mr).updateChild(Kr,vn):Ye.getNode().getImmediateChild(mr)}else nn=Rc(A,mr,S.serverCache);bt=null!=nn?T.filter.updateChild(Ye.getNode(),mr,nn,Kr,ee,he):Ye.getNode()}}return ju(S,bt,Ye.isFullyInitialized()||Ui(o),T.filter.filtersNodes())}}function ql(T,S,o,A,ee,he,Ye,bt){const er=S.serverCache;let mr;const Kr=Ye?T.filter:T.filter.getIndexedFilter();if(Ui(o))mr=Kr.updateFullNode(er.getNode(),A,null);else if(Kr.filtersNodes()&&!er.isFiltered()){const Hn=er.getNode().updateChild(o,A);mr=Kr.updateFullNode(er.getNode(),Hn,null)}else{const Hn=Bi(o);if(!er.isCompleteForPath(o)&&xo(o)>1)return S;const Yn=xi(o),ki=er.getNode().getImmediateChild(Hn).updateChild(Yn,A);mr=".priority"===Hn?Kr.updatePriority(er.getNode(),ki):Kr.updateChild(er.getNode(),Hn,ki,Yn,Kl,null)}const nn=Gu(S,mr,er.isFullyInitialized()||Ui(o),Kr.filtersNodes());return kc(T,nn,o,ee,new Lc(ee,nn,he),bt)}function Nc(T,S,o,A,ee,he,Ye){const bt=S.eventCache;let er,mr;const Kr=new Lc(ee,S,he);if(Ui(o))mr=T.filter.updateFullNode(S.eventCache.getNode(),A,Ye),er=ju(S,mr,!0,T.filter.filtersNodes());else{const nn=Bi(o);if(".priority"===nn)mr=T.filter.updatePriority(S.eventCache.getNode(),A),er=ju(S,mr,bt.isFullyInitialized(),bt.isFiltered());else{const vn=xi(o),Hn=bt.getNode().getImmediateChild(nn);let Yn;if(Ui(vn))Yn=A;else{const ii=Kr.getCompleteChild(nn);Yn=null!=ii?".priority"===kl(vn)&&ii.getChild(hl(vn)).isEmpty()?ii:ii.updateChild(vn,A):Vi.EMPTY_NODE}er=Hn.equals(Yn)?S:ju(S,T.filter.updateChild(bt.getNode(),nn,Yn,vn,Kr,Ye),bt.isFullyInitialized(),T.filter.filtersNodes())}}return er}function Ju(T,S){return T.eventCache.isCompleteForChild(S)}function hd(T,S,o){return o.foreach((A,ee)=>{S=S.updateChild(A,ee)}),S}function pd(T,S,o,A,ee,he,Ye,bt){if(S.serverCache.getNode().isEmpty()&&!S.serverCache.isFullyInitialized())return S;let mr,er=S;mr=Ui(o)?A:new _s(null).setTree(o,A);const Kr=S.serverCache.getNode();return mr.children.inorderTraversal((nn,vn)=>{if(Kr.hasChild(nn)){const Yn=hd(0,S.serverCache.getNode().getImmediateChild(nn),vn);er=ql(T,er,new Wi(nn),Yn,ee,he,Ye,bt)}}),mr.children.inorderTraversal((nn,vn)=>{const Hn=!S.serverCache.isCompleteForChild(nn)&&null===vn.value;if(!Kr.hasChild(nn)&&!Hn){const ii=hd(0,S.serverCache.getNode().getImmediateChild(nn),vn);er=ql(T,er,new Wi(nn),ii,ee,he,Ye,bt)}}),er}class Jl{constructor(S,o){this.query_=S,this.eventRegistrations_=[];const A=this.query_._queryParams,ee=new fu(A.getIndex()),he=function _o(T){return T.loadsAllData()?new fu(T.getIndex()):T.hasLimit()?new uc(T):new hu(T)}(A);this.processor_=function nf(T){return{filter:T}}(he);const Ye=o.serverCache,bt=o.eventCache,er=ee.updateFullNode(Vi.EMPTY_NODE,Ye.getNode(),null),mr=he.updateFullNode(Vi.EMPTY_NODE,bt.getNode(),null),Kr=new Fs(er,Ye.isFullyInitialized(),ee.filtersNodes()),nn=new Fs(mr,bt.isFullyInitialized(),he.filtersNodes());this.viewCache_=vs(nn,Kr),this.eventGenerator_=new Ys(this.query_)}get query(){return this.query_}}function Jf(T,S){const o=jl(T.viewCache_);return o&&(T.query._queryParams.loadsAllData()||!Ui(S)&&!o.getImmediateChild(Bi(S)).isEmpty())?o.getChild(S):null}function vd(T){return 0===T.eventRegistrations_.length}function _d(T,S,o){const A=[];if(o){(0,Ze.hu)(null==S,"A cancel should cancel all event registrations.");const ee=T.query._path;T.eventRegistrations_.forEach(he=>{const Ye=he.createCancelEvent(o,ee);Ye&&A.push(Ye)})}if(S){let ee=[];for(let he=0;he<T.eventRegistrations_.length;++he){const Ye=T.eventRegistrations_[he];if(Ye.matches(S)){if(S.hasAnyCallback()){ee=ee.concat(T.eventRegistrations_.slice(he+1));break}}else ee.push(Ye)}T.eventRegistrations_=ee}else T.eventRegistrations_=[];return A}function $u(T,S,o,A){S.type===Ht.MERGE&&null!==S.source.queryId&&((0,Ze.hu)(jl(T.viewCache_),"We should always have a full cache before handling merges"),(0,Ze.hu)(Ho(T.viewCache_),"Missing event cache, even though we have a server cache"));const ee=T.viewCache_,he=function mc(T,S,o,A,ee){const he=new dd;let Ye,bt;if(o.type===Ht.OVERWRITE){const mr=o;mr.source.fromUser?Ye=Nc(T,S,mr.path,mr.snap,A,ee,he):((0,Ze.hu)(mr.source.fromServer,"Unknown source."),bt=mr.source.tagged||S.serverCache.isFiltered()&&!Ui(mr.path),Ye=ql(T,S,mr.path,mr.snap,A,ee,bt,he))}else if(o.type===Ht.MERGE){const mr=o;mr.source.fromUser?Ye=function Uh(T,S,o,A,ee,he,Ye){let bt=S;return A.foreach((er,mr)=>{const Kr=ms(o,er);Ju(S,Bi(Kr))&&(bt=Nc(T,bt,Kr,mr,ee,he,Ye))}),A.foreach((er,mr)=>{const Kr=ms(o,er);Ju(S,Bi(Kr))||(bt=Nc(T,bt,Kr,mr,ee,he,Ye))}),bt}(T,S,mr.path,mr.children,A,ee,he):((0,Ze.hu)(mr.source.fromServer,"Unknown source."),bt=mr.source.tagged||S.serverCache.isFiltered(),Ye=pd(T,S,mr.path,mr.children,A,ee,bt,he))}else if(o.type===Ht.ACK_USER_WRITE){const mr=o;Ye=mr.revert?function gd(T,S,o,A,ee,he){let Ye;if(null!=Ds(A,o))return S;{const bt=new Lc(A,S,ee),er=S.eventCache.getNode();let mr;if(Ui(o)||".priority"===Bi(o)){let Kr;if(S.serverCache.isFullyInitialized())Kr=bl(A,jl(S));else{const nn=S.serverCache.getNode();(0,Ze.hu)(nn instanceof Vi,"serverChildren would be complete if leaf node"),Kr=Oc(A,nn)}mr=T.filter.updateFullNode(er,Kr,he)}else{const Kr=Bi(o);let nn=Rc(A,Kr,S.serverCache);null==nn&&S.serverCache.isCompleteForChild(Kr)&&(nn=er.getImmediateChild(Kr)),mr=null!=nn?T.filter.updateChild(er,Kr,nn,xi(o),bt,he):S.eventCache.getNode().hasChild(Kr)?T.filter.updateChild(er,Kr,Vi.EMPTY_NODE,xi(o),bt,he):er,mr.isEmpty()&&S.serverCache.isFullyInitialized()&&(Ye=bl(A,jl(S)),Ye.isLeafNode()&&(mr=T.filter.updateFullNode(mr,Ye,he)))}return Ye=S.serverCache.isFullyInitialized()||null!=Ds(A,Zi()),ju(S,mr,Ye,T.filter.filtersNodes())}}(T,S,mr.path,A,ee,he):function qf(T,S,o,A,ee,he,Ye){if(null!=Ds(ee,o))return S;const bt=S.serverCache.isFiltered(),er=S.serverCache;if(null!=A.value){if(Ui(o)&&er.isFullyInitialized()||er.isCompleteForPath(o))return ql(T,S,o,er.getNode().getChild(o),ee,he,bt,Ye);if(Ui(o)){let mr=new _s(null);return er.getNode().forEachChild(Ka,(Kr,nn)=>{mr=mr.set(new Wi(Kr),nn)}),pd(T,S,o,mr,ee,he,bt,Ye)}return S}{let mr=new _s(null);return A.foreach((Kr,nn)=>{const vn=ms(o,Kr);er.isCompleteForPath(vn)&&(mr=mr.set(Kr,er.getNode().getChild(vn)))}),pd(T,S,o,mr,ee,he,bt,Ye)}}(T,S,mr.path,mr.affectedTree,A,ee,he)}else{if(o.type!==Ht.LISTEN_COMPLETE)throw(0,Ze.g5)("Unknown operation type: "+o.type);Ye=function sf(T,S,o,A,ee){const he=S.serverCache;return kc(T,Gu(S,he.getNode(),he.isFullyInitialized()||Ui(o),he.isFiltered()),o,A,Kl,ee)}(T,S,o.path,A,he)}const er=he.getChanges();return function Kf(T,S,o){const A=S.eventCache;if(A.isFullyInitialized()){const ee=A.getNode().isLeafNode()||A.getNode().isEmpty(),he=Ho(T);(o.length>0||!T.eventCache.isFullyInitialized()||ee&&!A.getNode().equals(he)||!A.getNode().getPriority().equals(he.getPriority()))&&o.push(_a(Ho(S)))}}(S,Ye,er),{viewCache:Ye,changes:er}}(T.processor_,ee,S,o,A);return function qu(T,S){(0,Ze.hu)(S.eventCache.getNode().isIndexed(T.filter.getIndex()),"Event snap not indexed"),(0,Ze.hu)(S.serverCache.getNode().isIndexed(T.filter.getIndex()),"Server snap not indexed")}(T.processor_,he.viewCache),(0,Ze.hu)(he.viewCache.serverCache.isFullyInitialized()||!ee.serverCache.isFullyInitialized(),"Once a server snap is complete, it should never go back"),T.viewCache_=he.viewCache,yu(T,he.changes,he.viewCache.eventCache.getNode(),null)}function yu(T,S,o,A){return function co(T,S,o,A){const ee=[],he=[];return S.forEach(Ye=>{"child_changed"===Ye.type&&T.index_.indexedValueChanged(Ye.oldSnap,Ye.snapshotNode)&&he.push(function du(T,S){return{type:"child_moved",snapshotNode:S,childName:T}}(Ye.childName,Ye.snapshotNode))}),mu(T,ee,"child_removed",S,A,o),mu(T,ee,"child_added",S,A,o),mu(T,ee,"child_moved",he,A,o),mu(T,ee,"child_changed",S,A,o),mu(T,ee,"value",S,A,o),ee}(T.eventGenerator_,S,o,A?[A]:T.eventRegistrations_)}let Qu,yc;class yd{constructor(){this.views=new Map}}function Cu(T,S,o,A){const ee=S.source.queryId;if(null!==ee){const he=T.views.get(ee);return(0,Ze.hu)(null!=he,"SyncTree gave us an op for an invalid query."),$u(he,S,o,A)}{let he=[];for(const Ye of T.views.values())he=he.concat($u(Ye,S,o,A));return he}}function sl(T,S,o,A,ee){const Ye=T.views.get(S._queryIdentifier);if(!Ye){let bt=bl(o,ee?A:null),er=!1;bt?er=!0:A instanceof Vi?(bt=Oc(o,A),er=!1):(bt=Vi.EMPTY_NODE,er=!1);const mr=vs(new Fs(bt,er,!1),new Fs(A,ee,!1));return new Jl(S,mr)}return Ye}function al(T){const S=[];for(const o of T.views.values())o.query._queryParams.loadsAllData()||S.push(o);return S}function Pa(T,S){let o=null;for(const A of T.views.values())o=o||Jf(A,S);return o}function Cd(T,S){return S._queryParams.loadsAllData()?_c(T):T.views.get(S._queryIdentifier)}function Bc(T,S){return null!=Cd(T,S)}function io(T){return null!=_c(T)}function _c(T){for(const S of T.views.values())if(S.query._queryParams.loadsAllData())return S;return null}let of=1;class so{constructor(S){this.listenProvider_=S,this.syncPointTree_=new _s(null),this.pendingWriteTree_=function zf(){return{visibleWrites:yo.empty(),allWrites:[],lastWriteId:-1}}(),this.tagToQueryMap=new Map,this.queryToTagMap=new Map}}function bu(T,S,o,A,ee){return function Yf(T,S,o,A,ee){(0,Ze.hu)(A>T.lastWriteId,"Stacking an older write on top of newer ones"),void 0===ee&&(ee=!0),T.allWrites.push({path:S,snap:o,writeId:A,visible:ee}),ee&&(T.visibleWrites=Wu(T.visibleWrites,S,o)),T.lastWriteId=A}(T.pendingWriteTree_,S,o,A,ee),ee?Le(T,new Ai({fromUser:!0,fromServer:!1,queryId:null,tagged:!1},S,o)):[]}function Ql(T,S,o=!1){const A=function Qd(T,S){for(let o=0;o<T.allWrites.length;o++){const A=T.allWrites[o];if(A.writeId===S)return A}return null}(T.pendingWriteTree_,S);if(function Gf(T,S){const o=T.allWrites.findIndex(bt=>bt.writeId===S);(0,Ze.hu)(o>=0,"removeWrite called with nonexistent writeId.");const A=T.allWrites[o];T.allWrites.splice(o,1);let ee=A.visible,he=!1,Ye=T.allWrites.length-1;for(;ee&&Ye>=0;){const bt=T.allWrites[Ye];bt.visible&&(Ye>=o&&Wf(bt,A.path)?ee=!1:Hr(A.path,bt.path)&&(he=!0)),Ye--}return!!ee&&(he?(function Pc(T){T.visibleWrites=Zl(T.allWrites,Js,Zi()),T.lastWriteId=T.allWrites.length>0?T.allWrites[T.allWrites.length-1].writeId:-1}(T),!0):(A.snap?T.visibleWrites=Gl(T.visibleWrites,A.path):Gi(A.children,er=>{T.visibleWrites=Gl(T.visibleWrites,ms(A.path,er))}),!0))}(T.pendingWriteTree_,S)){let he=new _s(null);return null!=A.snap?he=he.set(Zi(),!0):Gi(A.children,Ye=>{he=he.set(new Wi(Ye),!0)}),Le(T,new Dn(A.path,he,o))}return[]}function Ya(T,S,o){return Le(T,new Ai({fromUser:!1,fromServer:!0,queryId:null,tagged:!1},S,o))}function Uc(T,S,o,A,ee=!1){const he=S._path,Ye=T.syncPointTree_.get(he);let bt=[];if(Ye&&("default"===S._queryIdentifier||Bc(Ye,S))){const er=function la(T,S,o,A){const ee=S._queryIdentifier,he=[];let Ye=[];const bt=io(T);if("default"===ee)for(const[er,mr]of T.views.entries())Ye=Ye.concat(_d(mr,o,A)),vd(mr)&&(T.views.delete(er),mr.query._queryParams.loadsAllData()||he.push(mr.query));else{const er=T.views.get(ee);er&&(Ye=Ye.concat(_d(er,o,A)),vd(er)&&(T.views.delete(ee),er.query._queryParams.loadsAllData()||he.push(er.query)))}return bt&&!io(T)&&he.push(new(function $f(){return(0,Ze.hu)(Qu,"Reference.ts has not been loaded"),Qu}())(S._repo,S._path)),{removed:he,events:Ye}}(Ye,S,o,A);(function Va(T){return 0===T.views.size})(Ye)&&(T.syncPointTree_=T.syncPointTree_.remove(he));const mr=er.removed;if(bt=er.events,!ee){const Kr=-1!==mr.findIndex(vn=>vn._queryParams.loadsAllData()),nn=T.syncPointTree_.findOnPath(he,(vn,Hn)=>io(Hn));if(Kr&&!nn){const vn=T.syncPointTree_.subtree(he);if(!vn.isEmpty()){const Hn=function fi(T){return T.fold((S,o,A)=>{if(o&&io(o))return[_c(o)];{let ee=[];return o&&(ee=al(o)),Gi(A,(he,Ye)=>{ee=ee.concat(Ye)}),ee}})}(vn);for(let Yn=0;Yn<Hn.length;++Yn){const ii=Hn[Yn],ki=ii.query,Ls=ze(T,ii);T.listenProvider_.startListening(Mi(ki),nr(T,ki),Ls.hashFn,Ls.onComplete)}}}!nn&&mr.length>0&&!A&&(Kr?T.listenProvider_.stopListening(Mi(S),null):mr.forEach(vn=>{const Hn=T.queryToTagMap.get(Ir(vn));T.listenProvider_.stopListening(Mi(vn),Hn)}))}!function Ti(T,S){for(let o=0;o<S.length;++o){const A=S[o];if(!A._queryParams.loadsAllData()){const ee=Ir(A),he=T.queryToTagMap.get(ee);T.queryToTagMap.delete(ee),T.tagToQueryMap.delete(he)}}}(T,mr)}return bt}function Hc(T,S,o,A){const ee=an(T,A);if(null!=ee){const he=wn(ee),Ye=he.path,bt=he.queryId,er=ba(Ye,S);return Jn(T,Ye,new Ai(rn(bt),er,o))}return[]}function uf(T,S,o,A=!1){const ee=S._path;let he=null,Ye=!1;T.syncPointTree_.foreachOnPath(ee,(vn,Hn)=>{const Yn=ba(vn,ee);he=he||Pa(Hn,Yn),Ye=Ye||io(Hn)});let er,bt=T.syncPointTree_.get(ee);bt?(Ye=Ye||io(bt),he=he||Pa(bt,Zi())):(bt=new yd,T.syncPointTree_=T.syncPointTree_.set(ee,bt)),null!=he?er=!0:(er=!1,he=Vi.EMPTY_NODE,T.syncPointTree_.subtree(ee).foreachChild((Hn,Yn)=>{const ii=Pa(Yn,Zi());ii&&(he=he.updateImmediateChild(Hn,ii))}));const mr=Bc(bt,S);if(!mr&&!S._queryParams.loadsAllData()){const vn=Ir(S);(0,Ze.hu)(!T.queryToTagMap.has(vn),"View does not exist, but we have a tag");const Hn=function Sa(){return of++}();T.queryToTagMap.set(vn,Hn),T.tagToQueryMap.set(Hn,vn)}let nn=function Fc(T,S,o,A,ee,he){const Ye=sl(T,S,A,ee,he);return T.views.has(S._queryIdentifier)||T.views.set(S._queryIdentifier,Ye),function Hh(T,S){T.eventRegistrations_.push(S)}(Ye,o),function vc(T,S){const o=T.viewCache_.eventCache,A=[];return o.getNode().isLeafNode()||o.getNode().forEachChild(Ns,(he,Ye)=>{A.push(vl(he,Ye))}),o.isFullyInitialized()&&A.push(_a(o.getNode())),yu(T,A,o.getNode(),S)}(Ye,o)}(bt,S,o,Ku(T.pendingWriteTree_,ee),he,er);if(!mr&&!Ye&&!A){const vn=Cd(bt,S);nn=nn.concat(function Co(T,S,o){const A=S._path,ee=nr(T,S),he=ze(T,o),Ye=T.listenProvider_.startListening(Mi(S),ee,he.hashFn,he.onComplete),bt=T.syncPointTree_.subtree(A);if(ee)(0,Ze.hu)(!io(bt.value),"If we're adding a query, it shouldn't be shadowed");else{const er=bt.fold((mr,Kr,nn)=>{if(!Ui(mr)&&Kr&&io(Kr))return[_c(Kr).query];{let vn=[];return Kr&&(vn=vn.concat(al(Kr).map(Hn=>Hn.query))),Gi(nn,(Hn,Yn)=>{vn=vn.concat(Yn)}),vn}});for(let mr=0;mr<er.length;++mr){const Kr=er[mr];T.listenProvider_.stopListening(Mi(Kr),nr(T,Kr))}}return Ye}(T,S,vn))}return nn}function Vc(T,S,o){const ee=T.pendingWriteTree_,he=T.syncPointTree_.findOnPath(S,(Ye,bt)=>{const mr=Pa(bt,ba(Ye,S));if(mr)return mr});return cd(ee,S,he,o,!0)}function Le(T,S){return ce(S,T.syncPointTree_,null,Ku(T.pendingWriteTree_,Zi()))}function ce(T,S,o,A){if(Ui(T.path))return pe(T,S,o,A);{const ee=S.get(Zi());null==o&&null!=ee&&(o=Pa(ee,Zi()));let he=[];const Ye=Bi(T.path),bt=T.operationForChild(Ye),er=S.children.get(Ye);if(er&&bt){const mr=o?o.getImmediateChild(Ye):null,Kr=gc(A,Ye);he=he.concat(ce(bt,er,mr,Kr))}return ee&&(he=he.concat(Cu(ee,T,A,o))),he}}function pe(T,S,o,A){const ee=S.get(Zi());null==o&&null!=ee&&(o=Pa(ee,Zi()));let he=[];return S.children.inorderTraversal((Ye,bt)=>{const er=o?o.getImmediateChild(Ye):null,mr=gc(A,Ye),Kr=T.operationForChild(Ye);Kr&&(he=he.concat(pe(Kr,bt,er,mr)))}),ee&&(he=he.concat(Cu(ee,T,A,o))),he}function ze(T,S){const o=S.query,A=nr(T,o);return{hashFn:()=>(function md(T){return T.viewCache_.serverCache.getNode()}(S)||Vi.EMPTY_NODE).hash(),onComplete:ee=>{if("ok"===ee)return A?function Xl(T,S,o){const A=an(T,o);if(A){const ee=wn(A),he=ee.path,Ye=ee.queryId,bt=ba(he,S);return Jn(T,he,new ri(rn(Ye),bt))}return[]}(T,o._path,A):function Vo(T,S){return Le(T,new ri({fromUser:!1,fromServer:!0,queryId:null,tagged:!1},S))}(T,o._path);{const he=function pa(T,S){let o="Unknown Error";"too_big"===T?o="The data requested exceeds the maximum size that can be accessed with a single request.":"permission_denied"===T?o="Client doesn't have permission to access the desired data.":"unavailable"===T&&(o="The service is unavailable");const A=new Error(T+" at "+S._path.toString()+": "+o);return A.code=T.toUpperCase(),A}(ee,o);return Uc(T,o,null,he)}}}}function nr(T,S){const o=Ir(S);return T.queryToTagMap.get(o)}function Ir(T){return T._path.toString()+"$"+T._queryIdentifier}function an(T,S){return T.tagToQueryMap.get(S)}function wn(T){const S=T.indexOf("$");return(0,Ze.hu)(-1!==S&&S<T.length-1,"Bad queryKey."),{queryId:T.substr(S+1),path:new Wi(T.substr(0,S))}}function Jn(T,S,o){const A=T.syncPointTree_.get(S);return(0,Ze.hu)(A,"Missing sync point for query tag that we're tracking"),Cu(A,o,Ku(T.pendingWriteTree_,S),null)}function Mi(T){return T._queryParams.loadsAllData()&&!T._queryParams.isDefault()?new(function Qf(){return(0,Ze.hu)(yc,"Reference.ts has not been loaded"),yc}())(T._repo,T._path):T}class ec{constructor(S){this.node_=S}getImmediateChild(S){const o=this.node_.getImmediateChild(S);return new ec(o)}node(){return this.node_}}class Qs{constructor(S,o){this.syncTree_=S,this.path_=o}getImmediateChild(S){const o=ms(this.path_,S);return new Qs(this.syncTree_,o)}node(){return Vc(this.syncTree_,this.path_)}}const Sd=function(T,S,o){return T&&"object"==typeof T?((0,Ze.hu)(".sv"in T,"Unexpected leaf node or priority contents"),"string"==typeof T[".sv"]?Td(T[".sv"],S,o):"object"==typeof T[".sv"]?bo(T[".sv"],S):void(0,Ze.hu)(!1,"Unexpected server value: "+JSON.stringify(T,null,2))):T},Td=function(T,S,o){if("timestamp"===T)return o.timestamp;(0,Ze.hu)(!1,"Unexpected server value: "+T)},bo=function(T,S,o){T.hasOwnProperty("increment")||(0,Ze.hu)(!1,"Unexpected server value: "+JSON.stringify(T,null,2));const A=T.increment;"number"!=typeof A&&(0,Ze.hu)(!1,"Unexpected increment value: "+A);const ee=S.node();if((0,Ze.hu)(null!==ee&&typeof ee<"u","Expected ChildrenNode.EMPTY_NODE for nulls"),!ee.isLeafNode())return A;const Ye=ee.getValue();return"number"!=typeof Ye?A:Ye+A},cf=function(T,S,o,A){return Yc(S,new Qs(o,T),A)},bc=function(T,S,o){return Yc(T,new ec(S),o)};function Yc(T,S,o){const A=T.getPriority().val(),ee=Sd(A,S.getImmediateChild(".priority"),o);let he;if(T.isLeafNode()){const Ye=T,bt=Sd(Ye.getValue(),S,o);return bt!==Ye.getValue()||ee!==Ye.getPriority().val()?new tl(bt,Ks(ee)):T}{const Ye=T;return he=Ye,ee!==Ye.getPriority().val()&&(he=he.updatePriority(new tl(ee))),Ye.forEachChild(Ns,(bt,er)=>{const mr=Yc(er,S.getImmediateChild(bt),o);mr!==er&&(he=he.updateImmediateChild(bt,mr))}),he}}class jc{constructor(S="",o=null,A={children:{},childCount:0}){this.name=S,this.parent=o,this.node=A}}function Gc(T,S){let o=S instanceof Wi?S:new Wi(S),A=T,ee=Bi(o);for(;null!==ee;){const he=(0,Ze.DV)(A.node.children,ee)||{children:{},childCount:0};A=new jc(ee,A,he),o=xi(o),ee=Bi(o)}return A}function ol(T){return T.node.value}function df(T,S){T.node.value=S,Q(T)}function Wc(T){return T.node.childCount>0}function c(T,S){Gi(T.node.children,(o,A)=>{S(new jc(o,T,A))})}function m(T,S,o,A){o&&!A&&S(T),c(T,ee=>{m(ee,S,!0,A)}),o&&A&&S(T)}function Z(T){return new Wi(null===T.parent?T.name:Z(T.parent)+"/"+T.name)}function Q(T){null!==T.parent&&function se(T,S,o){const A=function I(T){return void 0===ol(T)&&!Wc(T)}(o),ee=(0,Ze.r3)(T.node.children,S);A&&ee?(delete T.node.children[S],T.node.childCount--,Q(T)):!A&&!ee&&(T.node.children[S]=o.node,T.node.childCount++,Q(T))}(T.parent,T.name,T)}const de=/[\[\].#$\/\u0000-\u001F\u007F]/,Ee=/[\[\].#$\u0000-\u001F\u007F]/,Ve=10485760,mt=function(T){return"string"==typeof T&&0!==T.length&&!de.test(T)},It=function(T){return"string"==typeof T&&0!==T.length&&!Ee.test(T)},Xt=function(T){return null===T||"string"==typeof T||"number"==typeof T&&!Xa(T)||T&&"object"==typeof T&&(0,Ze.r3)(T,".sv")},Lr=function(T,S,o,A){A&&void 0===S||Yr((0,Ze.gK)(T,"value"),S,o)},Yr=function(T,S,o){const A=o instanceof Wi?new ou(o,T):o;if(void 0===S)throw new Error(T+"contains undefined "+Lo(A));if("function"==typeof S)throw new Error(T+"contains a function "+Lo(A)+" with contents = "+S.toString());if(Xa(S))throw new Error(T+"contains "+S.toString()+" "+Lo(A));if("string"==typeof S&&S.length>Ve/3&&(0,Ze.ug)(S)>Ve)throw new Error(T+"contains a string greater than "+Ve+" utf8 bytes "+Lo(A)+" ('"+S.substring(0,50)+"...')");if(S&&"object"==typeof S){let ee=!1,he=!1;if(Gi(S,(Ye,bt)=>{if(".value"===Ye)ee=!0;else if(".priority"!==Ye&&".sv"!==Ye&&(he=!0,!mt(Ye)))throw new Error(T+" contains an invalid key ("+Ye+") "+Lo(A)+'.  Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');(function Hs(T,S){T.parts_.length>0&&(T.byteLength_+=1),T.parts_.push(S),T.byteLength_+=(0,Ze.ug)(S),oa(T)})(A,Ye),Yr(T,bt,A),function pl(T){const S=T.parts_.pop();T.byteLength_-=(0,Ze.ug)(S),T.parts_.length>0&&(T.byteLength_-=1)}(A)}),ee&&he)throw new Error(T+' contains ".value" child '+Lo(A)+" in addition to actual children.")}},ln=function(T,S,o,A){if(A&&void 0===S)return;const ee=(0,Ze.gK)(T,"values");if(!S||"object"!=typeof S||Array.isArray(S))throw new Error(ee+" must be an object containing the children to replace.");const he=[];Gi(S,(Ye,bt)=>{const er=new Wi(Ye);if(Yr(ee,bt,ms(o,er)),".priority"===kl(er)&&!Xt(bt))throw new Error(ee+"contains an invalid value for '"+er.toString()+"', which must be a valid Firebase priority (a string, finite number, server value, or null).");he.push(er)}),function(T,S){let o,A;for(o=0;o<S.length;o++){A=S[o];const he=fl(A);for(let Ye=0;Ye<he.length;Ye++)if((".priority"!==he[Ye]||Ye!==he.length-1)&&!mt(he[Ye]))throw new Error(T+"contains an invalid key ("+he[Ye]+") in path "+A.toString()+'. Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"')}S.sort(gn);let ee=null;for(o=0;o<S.length;o++){if(A=S[o],null!==ee&&Hr(ee,A))throw new Error(T+"contains a path "+ee.toString()+" that is ancestor of another path "+A.toString());ee=A}}(ee,he)},en=function(T,S,o){if(!o||void 0!==S){if(Xa(S))throw new Error((0,Ze.gK)(T,"priority")+"is "+S.toString()+", but must be a valid Firebase priority (a string, finite number, server value, or null).");if(!Xt(S))throw new Error((0,Ze.gK)(T,"priority")+"must be a valid Firebase priority (a string, finite number, server value, or null).")}},mn=function(T,S,o,A){if(!(A&&void 0===o||mt(o)))throw new Error((0,Ze.gK)(T,S)+'was an invalid key = "'+o+'".  Firebase keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]").')},In=function(T,S,o,A){if(!(A&&void 0===o||It(o)))throw new Error((0,Ze.gK)(T,S)+'was an invalid path = "'+o+'". Paths must be non-empty strings and can\'t contain ".", "#", "$", "[", or "]"')},Zn=function(T,S){if(".info"===Bi(S))throw new Error(T+" failed = Can't modify data under /.info/")},Xn=function(T,S){const o=S.path.toString();if("string"!=typeof S.repoInfo.host||0===S.repoInfo.host.length||!mt(S.repoInfo.namespace)&&"localhost"!==S.repoInfo.host.split(":")[0]||0!==o.length&&!function(T){return T&&(T=T.replace(/^\/*\.info(\/|$)/,"/")),It(T)}(o))throw new Error((0,Ze.gK)(T,"url")+'must be a valid firebase URL and the path can\'t contain ".", "#", "$", "[", or "]".')};class mi{constructor(){this.eventLists_=[],this.recursionDepth_=0}}function fs(T,S){let o=null;for(let A=0;A<S.length;A++){const ee=S[A],he=ee.getPath();null!==o&&!Xo(he,o.path)&&(T.eventLists_.push(o),o=null),null===o&&(o={events:[],path:he}),o.events.push(ee)}o&&T.eventLists_.push(o)}function Ri(T,S,o){fs(T,o),ws(T,A=>Xo(A,S))}function Ms(T,S,o){fs(T,o),ws(T,A=>Hr(A,S)||Hr(S,A))}function ws(T,S){T.recursionDepth_++;let o=!0;for(let A=0;A<T.eventLists_.length;A++){const ee=T.eventLists_[A];ee&&(S(ee.path)?(ca(T.eventLists_[A]),T.eventLists_[A]=null):o=!1)}o&&(T.eventLists_=[]),T.recursionDepth_--}function ca(T){for(let S=0;S<T.events.length;S++){const o=T.events[S];if(null!==o){T.events[S]=null;const A=o.getEventRunner();Mn&&Ki("event: "+o.toString()),eo(A)}}}const da="repo_interrupt";class ff{constructor(S,o,A,ee){this.repoInfo_=S,this.forceRestClient_=o,this.authTokenProvider_=A,this.appCheckProvider_=ee,this.dataUpdateCount=0,this.statsListener_=null,this.eventQueue_=new mi,this.nextWriteId_=1,this.interceptServerDataCallback_=null,this.onDisconnect_=Hl(),this.transactionQueueTree_=new jc,this.persistentConnection_=null,this.key=this.repoInfo_.toURLString()}toString(){return(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host}}function hf(T){const o=T.infoData_.getNode(new Wi(".info/serverTimeOffset")).val()||0;return(new Date).getTime()+o}function eh(T){return function(T){return(T=T||{}).timestamp=T.timestamp||(new Date).getTime(),T}({timestamp:hf(T)})}function om(T,S,o,A,ee){T.dataUpdateCount++;const he=new Wi(S);o=T.interceptServerDataCallback_?T.interceptServerDataCallback_(S,o):o;let Ye=[];if(ee)if(A){const er=(0,Ze.UI)(o,mr=>Ks(mr));Ye=function lf(T,S,o,A){const ee=an(T,A);if(ee){const he=wn(ee),Ye=he.path,bt=he.queryId,er=ba(Ye,S),mr=_s.fromObject(o);return Jn(T,Ye,new ds(rn(bt),er,mr))}return[]}(T.serverSyncTree_,he,er,ee)}else{const er=Ks(o);Ye=Hc(T.serverSyncTree_,he,er,ee)}else if(A){const er=(0,Ze.UI)(o,mr=>Ks(mr));Ye=function Xu(T,S,o){const A=_s.fromObject(o);return Le(T,new ds({fromUser:!1,fromServer:!0,queryId:null,tagged:!1},S,A))}(T.serverSyncTree_,he,er)}else{const er=Ks(o);Ye=Ya(T.serverSyncTree_,he,er)}let bt=he;Ye.length>0&&(bt=zc(T,he)),Ms(T.eventQueue_,bt,Ye)}function B0(T,S){U0(T,"connected",S),!1===S&&function um(T){Zc(T,"onDisconnectEvents");const S=eh(T),o=Hl();fc(T.onDisconnect_,Zi(),(ee,he)=>{const Ye=cf(ee,he,T.serverSyncTree_,S);Vl(o,ee,Ye)});let A=[];fc(o,Zi(),(ee,he)=>{A=A.concat(Ya(T.serverSyncTree_,ee,he));const Ye=Y0(T,ee);zc(T,Ye)}),T.onDisconnect_=Hl(),Ms(T.eventQueue_,Zi(),A)}(T)}function U0(T,S,o){const A=new Wi("/.info/"+S),ee=Ks(o);T.infoData_.updateSnapshot(A,ee);const he=Ya(T.infoSyncTree_,A,ee);Ms(T.eventQueue_,A,he)}function Yh(T){return T.nextWriteId_++}function jh(T,S,o,A,ee){Zc(T,"set",{path:S.toString(),value:o,priority:A});const he=eh(T),Ye=Ks(o,A),bt=Vc(T.serverSyncTree_,S),er=bc(Ye,bt,he),mr=Yh(T),Kr=bu(T.serverSyncTree_,S,er,mr,!0);fs(T.eventQueue_,Kr),T.server_.put(S.toString(),Ye.val(!0),(vn,Hn)=>{const Yn="ok"===vn;Yn||xn("set at "+S+" failed: "+vn);const ii=Ql(T.serverSyncTree_,mr,!Yn);Ms(T.eventQueue_,S,ii),Ed(0,ee,vn,Hn)});const nn=Y0(T,S);zc(T,nn),Ms(T.eventQueue_,nn,[])}function Gh(T,S,o){T.server_.onDisconnectCancel(S.toString(),(A,ee)=>{"ok"===A&&Vu(T.onDisconnect_,S),Ed(0,o,A,ee)})}function eu(T,S,o,A){const ee=Ks(o);T.server_.onDisconnectPut(S.toString(),ee.val(!0),(he,Ye)=>{"ok"===he&&Vl(T.onDisconnect_,S,ee),Ed(0,A,he,Ye)})}function Su(T,S,o){let A;A=".info"===Bi(S._path)?Uc(T.infoSyncTree_,S,o):Uc(T.serverSyncTree_,S,o),Ri(T.eventQueue_,S._path,A)}function Wh(T){T.persistentConnection_&&T.persistentConnection_.interrupt(da)}function Zc(T,...S){let o="";T.persistentConnection_&&(o=T.persistentConnection_.id+":"),Ki(o,...S)}function Ed(T,S,o,A){S&&eo(()=>{if("ok"===o)S(null);else{const ee=(o||"error").toUpperCase();let he=ee;A&&(he+=": "+A);const Ye=new Error(he);Ye.code=ee,S(Ye)}})}function hm(T,S,o){return Vc(T.serverSyncTree_,S,o)||Vi.EMPTY_NODE}function Md(T,S=T.transactionQueueTree_){if(S||Kh(T,S),ol(S)){const o=W_(T,S);(0,Ze.hu)(o.length>0,"Sending zero length transaction queue"),o.every(ee=>0===ee.status)&&function Zh(T,S,o){const A=o.map(mr=>mr.currentWriteId),ee=hm(T,S,A);let he=ee;const Ye=ee.hash();for(let mr=0;mr<o.length;mr++){const Kr=o[mr];(0,Ze.hu)(0===Kr.status,"tryToSendTransactionQueue_: items in queue should all be run."),Kr.status=1,Kr.retryCount++;const nn=ba(S,Kr.path);he=he.updateChild(nn,Kr.currentOutputSnapshotRaw)}const bt=he.val(!0),er=S;T.server_.put(er.toString(),bt,mr=>{Zc(T,"transaction put response",{path:er.toString(),status:mr});let Kr=[];if("ok"===mr){const nn=[];for(let vn=0;vn<o.length;vn++)o[vn].status=2,Kr=Kr.concat(Ql(T.serverSyncTree_,o[vn].currentWriteId)),o[vn].onComplete&&nn.push(()=>o[vn].onComplete(null,!0,o[vn].currentOutputSnapshotResolved)),o[vn].unwatcher();Kh(T,Gc(T.transactionQueueTree_,S)),Md(T,T.transactionQueueTree_),Ms(T.eventQueue_,S,Kr);for(let vn=0;vn<nn.length;vn++)eo(nn[vn])}else{if("datastale"===mr)for(let nn=0;nn<o.length;nn++)o[nn].status=3===o[nn].status?4:0;else{xn("transaction at "+er.toString()+" failed: "+mr);for(let nn=0;nn<o.length;nn++)o[nn].status=4,o[nn].abortReason=mr}zc(T,S)}},Ye)}(T,Z(S),o)}else Wc(S)&&c(S,o=>{Md(T,o)})}function zc(T,S){const o=zh(T,S),A=Z(o);return function V0(T,S,o){if(0===S.length)return;const A=[];let ee=[];const Ye=S.filter(bt=>0===bt.status).map(bt=>bt.currentWriteId);for(let bt=0;bt<S.length;bt++){const er=S[bt],mr=ba(o,er.path);let nn,Kr=!1;if((0,Ze.hu)(null!==mr,"rerunTransactionsUnderNode_: relativePath should not be null."),4===er.status)Kr=!0,nn=er.abortReason,ee=ee.concat(Ql(T.serverSyncTree_,er.currentWriteId,!0));else if(0===er.status)if(er.retryCount>=25)Kr=!0,nn="maxretry",ee=ee.concat(Ql(T.serverSyncTree_,er.currentWriteId,!0));else{const vn=hm(T,er.path,Ye);er.currentInputSnapshot=vn;const Hn=S[bt].update(vn.val());if(void 0!==Hn){Yr("transaction failed: Data returned ",Hn,er.path);let Yn=Ks(Hn);"object"==typeof Hn&&null!=Hn&&(0,Ze.r3)(Hn,".priority")||(Yn=Yn.updatePriority(vn.getPriority()));const ki=er.currentWriteId,Ls=eh(T),Ws=bc(Yn,vn,Ls);er.currentOutputSnapshotRaw=Yn,er.currentOutputSnapshotResolved=Ws,er.currentWriteId=Yh(T),Ye.splice(Ye.indexOf(ki),1),ee=ee.concat(bu(T.serverSyncTree_,er.path,Ws,er.currentWriteId,er.applyLocally)),ee=ee.concat(Ql(T.serverSyncTree_,ki,!0))}else Kr=!0,nn="nodata",ee=ee.concat(Ql(T.serverSyncTree_,er.currentWriteId,!0))}Ms(T.eventQueue_,o,ee),ee=[],Kr&&(S[bt].status=2,setTimeout(S[bt].unwatcher,Math.floor(0)),S[bt].onComplete&&A.push("nodata"===nn?()=>S[bt].onComplete(null,!1,S[bt].currentInputSnapshot):()=>S[bt].onComplete(new Error(nn),!1,null)))}Kh(T,T.transactionQueueTree_);for(let bt=0;bt<A.length;bt++)eo(A[bt]);Md(T,T.transactionQueueTree_)}(T,W_(T,o),A),A}function zh(T,S){let o,A=T.transactionQueueTree_;for(o=Bi(S);null!==o&&void 0===ol(A);)A=Gc(A,o),o=Bi(S=xi(S));return A}function W_(T,S){const o=[];return pm(T,S,o),o.sort((A,ee)=>A.order-ee.order),o}function pm(T,S,o){const A=ol(S);if(A)for(let ee=0;ee<A.length;ee++)o.push(A[ee]);c(S,ee=>{pm(T,ee,o)})}function Kh(T,S){const o=ol(S);if(o){let A=0;for(let ee=0;ee<o.length;ee++)2!==o[ee].status&&(o[A]=o[ee],A++);o.length=A,df(S,o.length>0?o:void 0)}c(S,A=>{Kh(T,A)})}function Y0(T,S){const o=Z(zh(T,S)),A=Gc(T.transactionQueueTree_,S);return function R(T,S,o){let A=o?T:T.parent;for(;null!==A;){if(S(A))return!0;A=A.parent}}(A,ee=>{j0(T,ee)}),j0(T,A),m(A,ee=>{j0(T,ee)}),o}function j0(T,S){const o=ol(S);if(o){const A=[];let ee=[],he=-1;for(let Ye=0;Ye<o.length;Ye++)3===o[Ye].status||(1===o[Ye].status?((0,Ze.hu)(he===Ye-1,"All SENT items should be at beginning of queue."),he=Ye,o[Ye].status=3,o[Ye].abortReason="set"):((0,Ze.hu)(0===o[Ye].status,"Unexpected transaction status in abort"),o[Ye].unwatcher(),ee=ee.concat(Ql(T.serverSyncTree_,o[Ye].currentWriteId,!0)),o[Ye].onComplete&&A.push(o[Ye].onComplete.bind(null,new Error("set"),!1,null))));-1===he?df(S,void 0):o.length=he+1,Ms(T.eventQueue_,Z(S),ee);for(let Ye=0;Ye<A.length;Ye++)eo(A[Ye])}}const G0=function(T,S){const o=Vb(T),A=o.namespace;return"firebase.com"===o.domain&&sa(o.host+" is no longer supported. Please use <YOUR FIREBASE>.firebaseio.com instead"),(!A||"undefined"===A)&&"localhost"!==o.domain&&sa("Cannot parse Firebase url. Please use https://<YOUR FIREBASE>.firebaseio.com"),o.secure||typeof window<"u"&&window.location&&window.location.protocol&&-1!==window.location.protocol.indexOf("https:")&&xn("Insecure Firebase access from a secure page. Please use https in calls to new Firebase()."),{repoInfo:new wa(o.host,o.secure,A,"ws"===o.scheme||"wss"===o.scheme,S,"",A!==o.subdomain),path:new Wi(o.pathString)}},Vb=function(T){let S="",o="",A="",ee="",he="",Ye=!0,bt="https",er=443;if("string"==typeof T){let mr=T.indexOf("//");mr>=0&&(bt=T.substring(0,mr-1),T=T.substring(mr+2));let Kr=T.indexOf("/");-1===Kr&&(Kr=T.length);let nn=T.indexOf("?");-1===nn&&(nn=T.length),S=T.substring(0,Math.min(Kr,nn)),Kr<nn&&(ee=function gm(T){let S="";const o=T.split("/");for(let A=0;A<o.length;A++)if(o[A].length>0){let ee=o[A];try{ee=decodeURIComponent(ee.replace(/\+/g," "))}catch{}S+="/"+ee}return S}(T.substring(Kr,nn)));const vn=function Hb(T){const S={};"?"===T.charAt(0)&&(T=T.substring(1));for(const o of T.split("&")){if(0===o.length)continue;const A=o.split("=");2===A.length?S[decodeURIComponent(A[0])]=decodeURIComponent(A[1]):xn(`Invalid query segment '${o}' in query '${T}'`)}return S}(T.substring(Math.min(T.length,nn)));mr=S.indexOf(":"),mr>=0?(Ye="https"===bt||"wss"===bt,er=parseInt(S.substring(mr+1),10)):mr=S.length;const Hn=S.slice(0,mr);if("localhost"===Hn.toLowerCase())o="localhost";else if(Hn.split(".").length<=2)o=Hn;else{const Yn=S.indexOf(".");A=S.substring(0,Yn).toLowerCase(),o=S.substring(Yn+1),he=A}"ns"in vn&&(he=vn.ns)}return{host:S,port:er,domain:o,subdomain:A,secure:Ye,scheme:bt,pathString:ee,namespace:he}},W0="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",mm=function(){let T=0;const S=[];return function(o){const A=o===T;let ee;T=o;const he=new Array(8);for(ee=7;ee>=0;ee--)he[ee]=W0.charAt(o%64),o=Math.floor(o/64);(0,Ze.hu)(0===o,"Cannot push at time == 0");let Ye=he.join("");if(A){for(ee=11;ee>=0&&63===S[ee];ee--)S[ee]=0;S[ee]++}else for(ee=0;ee<12;ee++)S[ee]=Math.floor(64*Math.random());for(ee=0;ee<12;ee++)Ye+=W0.charAt(S[ee]);return(0,Ze.hu)(20===Ye.length,"nextPushId: Length should be 20."),Ye}}();class vm{constructor(S,o,A,ee){this.eventType=S,this.eventRegistration=o,this.snapshot=A,this.prevName=ee}getPath(){const S=this.snapshot.ref;return"value"===this.eventType?S._path:S.parent._path}getEventType(){return this.eventType}getEventRunner(){return this.eventRegistration.getEventRunner(this)}toString(){return this.getPath().toString()+":"+this.eventType+":"+(0,Ze.Wl)(this.snapshot.exportVal())}}class qh{constructor(S,o,A){this.eventRegistration=S,this.error=o,this.path=A}getPath(){return this.path}getEventType(){return"cancel"}getEventRunner(){return this.eventRegistration.getEventRunner(this)}toString(){return this.path.toString()+":cancel"}}class _m{constructor(S,o){this.snapshotCallback=S,this.cancelCallback=o}onValue(S,o){this.snapshotCallback.call(null,S,o)}onCancel(S){return(0,Ze.hu)(this.hasCancelCallback,"Raising a cancel event on a listener with no cancel callback"),this.cancelCallback.call(null,S)}get hasCancelCallback(){return!!this.cancelCallback}matches(S){return this.snapshotCallback===S.snapshotCallback||void 0!==this.snapshotCallback.userCallback&&this.snapshotCallback.userCallback===S.snapshotCallback.userCallback&&this.snapshotCallback.context===S.snapshotCallback.context}}class Z_{constructor(S,o){this._repo=S,this._path=o}cancel(){const S=new Ze.BH;return Gh(this._repo,this._path,S.wrapCallback(()=>{})),S.promise}remove(){Zn("OnDisconnect.remove",this._path);const S=new Ze.BH;return eu(this._repo,this._path,null,S.wrapCallback(()=>{})),S.promise}set(S){Zn("OnDisconnect.set",this._path),Lr("OnDisconnect.set",S,this._path,!1);const o=new Ze.BH;return eu(this._repo,this._path,S,o.wrapCallback(()=>{})),o.promise}setWithPriority(S,o){Zn("OnDisconnect.setWithPriority",this._path),Lr("OnDisconnect.setWithPriority",S,this._path,!1),en("OnDisconnect.setWithPriority",o,!1);const A=new Ze.BH;return function cm(T,S,o,A,ee){const he=Ks(o,A);T.server_.onDisconnectPut(S.toString(),he.val(!0),(Ye,bt)=>{"ok"===Ye&&Vl(T.onDisconnect_,S,he),Ed(0,ee,Ye,bt)})}(this._repo,this._path,S,o,A.wrapCallback(()=>{})),A.promise}update(S){Zn("OnDisconnect.update",this._path),ln("OnDisconnect.update",S,this._path,!1);const o=new Ze.BH;return function G_(T,S,o,A){if((0,Ze.xb)(o))return Ki("onDisconnect().update() called with empty data.  Don't do anything."),void Ed(0,A,"ok",void 0);T.server_.onDisconnectMerge(S.toString(),o,(ee,he)=>{"ok"===ee&&Gi(o,(Ye,bt)=>{const er=Ks(bt);Vl(T.onDisconnect_,ms(S,Ye),er)}),Ed(0,A,ee,he)})}(this._repo,this._path,S,o.wrapCallback(()=>{})),o.promise}}class Tl{constructor(S,o,A,ee){this._repo=S,this._path=o,this._queryParams=A,this._orderByCalled=ee}get key(){return Ui(this._path)?null:kl(this._path)}get ref(){return new Tu(this._repo,this._path)}get _queryIdentifier(){const S=Ha(this._queryParams),o=Si(S);return"{}"===o?"default":o}get _queryObject(){return Ha(this._queryParams)}isEqual(S){if(!((S=(0,Ze.m9)(S))instanceof Tl))return!1;const o=this._repo===S._repo,A=Xo(this._path,S._path);return o&&A&&this._queryIdentifier===S._queryIdentifier}toJSON(){return this.toString()}toString(){return this._repo.toString()+function vo(T){let S="";for(let o=T.pieceNum_;o<T.pieces_.length;o++)""!==T.pieces_[o]&&(S+="/"+encodeURIComponent(String(T.pieces_[o])));return S||"/"}(this._path)}}function Z0(T,S){if(!0===T._orderByCalled)throw new Error(S+": You can't combine multiple orderBy calls.")}function wd(T){let S=null,o=null;if(T.hasStart()&&(S=T.getIndexStartValue()),T.hasEnd()&&(o=T.getIndexEndValue()),T.getIndex()===Ka){const A="Query: When ordering by key, you may only pass one argument to startAt(), endAt(), or equalTo().",ee="Query: When ordering by key, the argument passed to startAt(), startAfter(), endAt(), endBefore(), or equalTo() must be a string.";if(T.hasStart()){if(T.getIndexStartName()!==cn)throw new Error(A);if("string"!=typeof S)throw new Error(ee)}if(T.hasEnd()){if(T.getIndexEndName()!==Qt)throw new Error(A);if("string"!=typeof o)throw new Error(ee)}}else if(T.getIndex()===Ns){if(null!=S&&!Xt(S)||null!=o&&!Xt(o))throw new Error("Query: When ordering by priority, the first argument passed to startAt(), startAfter() endAt(), endBefore(), or equalTo() must be a valid priority value (null, a number, or a string).")}else if((0,Ze.hu)(T.getIndex()instanceof qs||T.getIndex()===Bu,"unknown index type."),null!=S&&"object"==typeof S||null!=o&&"object"==typeof o)throw new Error("Query: First argument passed to startAt(), startAfter(), endAt(), endBefore(), or equalTo() cannot be an object.")}function z0(T){if(T.hasStart()&&T.hasEnd()&&T.hasLimit()&&!T.hasAnchoredLimit())throw new Error("Query: Can't combine startAt(), startAfter(), endAt(), endBefore(), and limit(). Use limitToFirst() or limitToLast() instead.")}class Tu extends Tl{constructor(S,o){super(S,o,new Uo,!1)}get parent(){const S=hl(this._path);return null===S?null:new Tu(this._repo,S)}get root(){let S=this;for(;null!==S.parent;)S=S.parent;return S}}class pf{constructor(S,o,A){this._node=S,this.ref=o,this._index=A}get priority(){return this._node.getPriority().val()}get key(){return this.ref.key}get size(){return this._node.numChildren()}child(S){const o=new Wi(S),A=ll(this.ref,S);return new pf(this._node.getChild(o),A,Ns)}exists(){return!this._node.isEmpty()}exportVal(){return this._node.val(!0)}forEach(S){return!this._node.isLeafNode()&&!!this._node.forEachChild(this._index,(A,ee)=>S(new pf(ee,ll(this.ref,A),Ns)))}hasChild(S){const o=new Wi(S);return!this._node.getChild(o).isEmpty()}hasChildren(){return!this._node.isLeafNode()&&!this._node.isEmpty()}toJSON(){return this.exportVal()}val(){return this._node.val()}}function z_(T,S){return(T=(0,Ze.m9)(T))._checkNotDeleted("ref"),void 0!==S?ll(T._root,S):T._root}function K_(T,S){(T=(0,Ze.m9)(T))._checkNotDeleted("refFromURL");const o=G0(S,T._repo.repoInfo_.nodeAdmin);Xn("refFromURL",o);const A=o.repoInfo;return!T._repo.repoInfo_.isCustomHost()&&A.host!==T._repo.repoInfo_.host&&sa("refFromURL: Host name does not match the current database: (found "+A.host+" but expected "+T._repo.repoInfo_.host+")"),z_(T,o.path.toString())}function ll(T,S){return null===Bi((T=(0,Ze.m9)(T))._path)?(o=S,o&&(o=o.replace(/^\/*\.info(\/|$)/,"/")),In("child","path",o,!1)):In("child","path",S,!1),new Tu(T._repo,ms(T._path,S));var o}function th(T,S){T=(0,Ze.m9)(T),Zn("set",T._path),Lr("set",S,T._path,!1);const o=new Ze.BH;return jh(T._repo,T._path,S,null,o.wrapCallback(()=>{})),o.promise}function J_(T,S){ln("update",S,T._path,!1);const o=new Ze.BH;return function lm(T,S,o,A){Zc(T,"update",{path:S.toString(),value:o});let ee=!0;const he=eh(T),Ye={};if(Gi(o,(bt,er)=>{ee=!1,Ye[bt]=cf(ms(S,bt),Ks(er),T.serverSyncTree_,he)}),ee)Ki("update() called with empty data.  Don't do anything."),Ed(0,A,"ok",void 0);else{const bt=Yh(T),er=function Cc(T,S,o,A){!function jf(T,S,o,A){(0,Ze.hu)(A>T.lastWriteId,"Stacking an older merge on top of newer ones"),T.allWrites.push({path:S,children:o,writeId:A,visible:!0}),T.visibleWrites=Dc(T.visibleWrites,S,o),T.lastWriteId=A}(T.pendingWriteTree_,S,o,A);const ee=_s.fromObject(o);return Le(T,new ds({fromUser:!0,fromServer:!1,queryId:null,tagged:!1},S,ee))}(T.serverSyncTree_,S,Ye,bt);fs(T.eventQueue_,er),T.server_.merge(S.toString(),o,(mr,Kr)=>{const nn="ok"===mr;nn||xn("update at "+S+" failed: "+mr);const vn=Ql(T.serverSyncTree_,bt,!nn),Hn=vn.length>0?zc(T,S):S;Ms(T.eventQueue_,Hn,vn),Ed(0,A,mr,Kr)}),Gi(o,mr=>{const Kr=Y0(T,ms(S,mr));zc(T,Kr)}),Ms(T.eventQueue_,S,[])}}(T._repo,T._path,S,o.wrapCallback(()=>{})),o.promise}function Kc(T){T=(0,Ze.m9)(T);const S=new _m(()=>{}),o=new gf(S);return function es(T,S,o){const A=function Vh(T,S){const o=S._path;let A=null;T.syncPointTree_.foreachOnPath(o,(mr,Kr)=>{const nn=ba(mr,o);A=A||Pa(Kr,nn)});let ee=T.syncPointTree_.get(o);ee?A=A||Pa(ee,Zi()):(ee=new yd,T.syncPointTree_=T.syncPointTree_.set(o,ee));const he=null!=A,Ye=he?new Fs(A,!0,!1):null;return function $l(T){return Ho(T.viewCache_)}(sl(ee,S,Ku(T.pendingWriteTree_,S._path),he?Ye.getNode():Vi.EMPTY_NODE,he))}(T.serverSyncTree_,S);return null!=A?Promise.resolve(A):T.server_.get(S).then(ee=>{const he=Ks(ee).withIndex(S._queryParams.getIndex());let Ye;if(uf(T.serverSyncTree_,S,o,!0),S._queryParams.loadsAllData())Ye=Ya(T.serverSyncTree_,S._path,he);else{const bt=nr(T.serverSyncTree_,S);Ye=Hc(T.serverSyncTree_,S._path,he,bt)}return Ms(T.eventQueue_,S._path,Ye),Uc(T.serverSyncTree_,S,o,null,!0),he},ee=>(Zc(T,"get for query "+(0,Ze.Wl)(S)+" failed: "+ee),Promise.reject(new Error(ee))))}(T._repo,T,o).then(A=>new pf(A,new Tu(T._repo,T._path),T._queryParams.getIndex()))}class gf{constructor(S){this.callbackContext=S}respondsTo(S){return"value"===S}createEvent(S,o){const A=o._queryParams.getIndex();return new vm("value",this,new pf(S.snapshotNode,new Tu(o._repo,o._path),A))}getEventRunner(S){return"cancel"===S.getEventType()?()=>this.callbackContext.onCancel(S.error):()=>this.callbackContext.onValue(S.snapshot,null)}createCancelEvent(S,o){return this.callbackContext.hasCancelCallback?new qh(this,S,o):null}matches(S){return S instanceof gf&&(!S.callbackContext||!this.callbackContext||S.callbackContext.matches(this.callbackContext))}hasAnyCallback(){return null!==this.callbackContext}}class Jh{constructor(S,o){this.eventType=S,this.callbackContext=o}respondsTo(S){let o="children_added"===S?"child_added":S;return o="children_removed"===o?"child_removed":o,this.eventType===o}createCancelEvent(S,o){return this.callbackContext.hasCancelCallback?new qh(this,S,o):null}createEvent(S,o){(0,Ze.hu)(null!=S.childName,"Child events should have a childName.");const A=ll(new Tu(o._repo,o._path),S.childName),ee=o._queryParams.getIndex();return new vm(S.type,this,new pf(S.snapshotNode,A,ee),S.prevName)}getEventRunner(S){return"cancel"===S.getEventType()?()=>this.callbackContext.onCancel(S.error):()=>this.callbackContext.onValue(S.snapshot,S.prevName)}matches(S){return S instanceof Jh&&this.eventType===S.eventType&&(!this.callbackContext||!S.callbackContext||this.callbackContext.matches(S.callbackContext))}hasAnyCallback(){return!!this.callbackContext}}function xd(T,S,o,A,ee){let he;if("object"==typeof A&&(he=void 0,ee=A),"function"==typeof A&&(he=A),ee&&ee.onlyOnce){const er=o,mr=(Kr,nn)=>{Su(T._repo,T,bt),er(Kr,nn)};mr.userCallback=o.userCallback,mr.context=o.context,o=mr}const Ye=new _m(o,he||void 0),bt="value"===S?new gf(Ye):new Jh(S,Ye);return function H0(T,S,o){let A;A=".info"===Bi(S._path)?uf(T.infoSyncTree_,S,o):uf(T.serverSyncTree_,S,o),Ri(T.eventQueue_,S._path,A)}(T._repo,T,bt),()=>Su(T._repo,T,bt)}function q0(T,S,o,A){return xd(T,"value",S,o,A)}function J0(T,S,o,A){return xd(T,"child_added",S,o,A)}function Sm(T,S,o,A){return xd(T,"child_changed",S,o,A)}function Tm(T,S,o,A){return xd(T,"child_moved",S,o,A)}function mf(T,S,o,A){return xd(T,"child_removed",S,o,A)}function Id(T,S,o){let A=null;const ee=o?new _m(o):null;"value"===S?A=new gf(ee):S&&(A=new Jh(S,ee)),Su(T._repo,T,A)}class El{}class Ad extends El{constructor(S,o){super(),this._value=S,this._key=o}_apply(S){Lr("endAt",this._value,S._path,!0);const o=nl(S._queryParams,this._value,this._key);if(z0(o),wd(o),S._queryParams.hasEnd())throw new Error("endAt: Starting point was already set (by another call to endAt, endBefore or equalTo).");return new Tl(S._repo,S._path,o,S._orderByCalled)}}class vf extends El{constructor(S,o){super(),this._value=S,this._key=o}_apply(S){Lr("endBefore",this._value,S._path,!1);const o=function Hu(T,S,o){let A;return A=nl(T,S,T.index_===Ka||o?o:cn),A.endBeforeSet_=!0,A}(S._queryParams,this._value,this._key);if(z0(o),wd(o),S._queryParams.hasEnd())throw new Error("endBefore: Starting point was already set (by another call to endAt, endBefore or equalTo).");return new Tl(S._repo,S._path,o,S._orderByCalled)}}class $0 extends El{constructor(S,o){super(),this._value=S,this._key=o}_apply(S){Lr("startAt",this._value,S._path,!0);const o=pu(S._queryParams,this._value,this._key);if(z0(o),wd(o),S._queryParams.hasStart())throw new Error("startAt: Starting point was already set (by another call to startAt, startBefore or equalTo).");return new Tl(S._repo,S._path,o,S._orderByCalled)}}class Q0 extends El{constructor(S,o){super(),this._value=S,this._key=o}_apply(S){Lr("startAfter",this._value,S._path,!1);const o=function cc(T,S,o){let A;return A=pu(T,S,T.index_===Ka||o?o:Qt),A.startAfterSet_=!0,A}(S._queryParams,this._value,this._key);if(z0(o),wd(o),S._queryParams.hasStart())throw new Error("startAfter: Starting point was already set (by another call to startAt, startAfter, or equalTo).");return new Tl(S._repo,S._path,o,S._orderByCalled)}}class Mm extends El{constructor(S){super(),this._limit=S}_apply(S){if(S._queryParams.hasLimit())throw new Error("limitToFirst: Limit was already set (by another call to limitToFirst or limitToLast).");return new Tl(S._repo,S._path,function Uu(T,S){const o=T.copy();return o.limitSet_=!0,o.limit_=S,o.viewFrom_="l",o}(S._queryParams,this._limit),S._orderByCalled)}}class Q_ extends El{constructor(S){super(),this._limit=S}_apply(S){if(S._queryParams.hasLimit())throw new Error("limitToLast: Limit was already set (by another call to limitToFirst or limitToLast).");return new Tl(S._repo,S._path,function Io(T,S){const o=T.copy();return o.limitSet_=!0,o.limit_=S,o.viewFrom_="r",o}(S._queryParams,this._limit),S._orderByCalled)}}class Yb extends El{constructor(S){super(),this._path=S}_apply(S){Z0(S,"orderByChild");const o=new Wi(this._path);if(Ui(o))throw new Error("orderByChild: cannot pass in empty path. Use orderByValue() instead.");const A=new qs(o),ee=Ul(S._queryParams,A);return wd(ee),new Tl(S._repo,S._path,ee,!0)}}class Im extends El{_apply(S){Z0(S,"orderByKey");const o=Ul(S._queryParams,Ka);return wd(o),new Tl(S._repo,S._path,o,!0)}}class Am extends El{_apply(S){Z0(S,"orderByPriority");const o=Ul(S._queryParams,Ns);return wd(o),new Tl(S._repo,S._path,o,!0)}}class ty extends El{_apply(S){Z0(S,"orderByValue");const o=Ul(S._queryParams,Bu);return wd(o),new Tl(S._repo,S._path,o,!0)}}class ry extends El{constructor(S,o){super(),this._value=S,this._key=o}_apply(S){if(Lr("equalTo",this._value,S._path,!1),S._queryParams.hasStart())throw new Error("equalTo: Starting point was already set (by another call to startAt/startAfter or equalTo).");if(S._queryParams.hasEnd())throw new Error("equalTo: Ending point was already set (by another call to endAt/endBefore or equalTo).");return new Ad(this._value,this._key)._apply(new $0(this._value,this._key)._apply(S))}}function rc(T,...S){let o=(0,Ze.m9)(T);for(const A of S)o=A._apply(o);return o}(function Sl(T){(0,Ze.hu)(!Qu,"__referenceConstructor has already been defined"),Qu=T})(Tu),function af(T){(0,Ze.hu)(!yc,"__referenceConstructor has already been defined"),yc=T}(Tu);const Qh={};function Xh(T,S,o,A,ee){let he=A||T.options.databaseURL;void 0===he&&(T.options.projectId||sa("Can't determine Firebase Database URL. Be sure to include  a Project ID when calling firebase.initializeApp()."),Ki("Using default host for project ",T.options.projectId),he=`${T.options.projectId}-default-rtdb.firebaseio.com`);let er,mr,Ye=G0(he,ee),bt=Ye.repoInfo;typeof process<"u"&&process.env&&(mr=process.env.FIREBASE_DATABASE_EMULATOR_HOST),mr?(er=!0,he=`http://${mr}?ns=${bt.namespace}`,Ye=G0(he,ee),bt=Ye.repoInfo):er=!Ye.repoInfo.secure;const Kr=ee&&er?new to(to.OWNER):new Zo(T.name,T.options,S);Xn("Invalid Firebase Database URL",Ye),Ui(Ye.path)||sa("Database URL must point to the root of a Firebase Database (not including a child path).");const nn=function ay(T,S,o,A){let ee=Qh[S.name];ee||(ee={},Qh[S.name]=ee);let he=ee[T.toURLString()];return he&&sa("Database initialized multiple times. Please make sure the format of the database URL matches with each database() call."),he=new ff(T,false,o,A),ee[T.toURLString()]=he,he}(bt,T,Kr,new To(T.name,o));return new ly(nn,T)}class ly{constructor(S,o){this._repoInternal=S,this.app=o,this.type="database",this._instanceStarted=!1}get _repo(){return this._instanceStarted||(function Xf(T,S,o){if(T.stats_=lo(T.repoInfo_),T.forceRestClient_||("object"==typeof window&&window.navigator&&window.navigator.userAgent||"").search(/googlebot|google webmaster tools|bingbot|yahoo! slurp|baiduspider|yandexbot|duckduckbot/i)>=0)T.server_=new Ja(T.repoInfo_,(A,ee,he,Ye)=>{om(T,A,ee,he,Ye)},T.authTokenProvider_,T.appCheckProvider_),setTimeout(()=>B0(T,!0),0);else{if(typeof o<"u"&&null!==o){if("object"!=typeof o)throw new Error("Only objects are supported for option databaseAuthVariableOverride");try{(0,Ze.Wl)(o)}catch(A){throw new Error("Invalid authOverride provided: "+A)}}T.persistentConnection_=new os(T.repoInfo_,S,(A,ee,he,Ye)=>{om(T,A,ee,he,Ye)},A=>{B0(T,A)},A=>{!function j_(T,S){Gi(S,(o,A)=>{U0(T,o,A)})}(T,A)},T.authTokenProvider_,T.appCheckProvider_,o),T.server_=T.persistentConnection_}T.authTokenProvider_.addTokenChangeListener(A=>{T.server_.refreshAuthToken(A)}),T.appCheckProvider_.addTokenChangeListener(A=>{T.server_.refreshAppCheckToken(A.token)}),T.statsReporter_=function ga(T,S){const o=T.toString();return Ba[o]||(Ba[o]=S()),Ba[o]}(T.repoInfo_,()=>new Je(T.stats_,T.server_)),T.infoData_=new il,T.infoSyncTree_=new so({startListening:(A,ee,he,Ye)=>{let bt=[];const er=T.infoData_.getNode(A._path);return er.isEmpty()||(bt=Ya(T.infoSyncTree_,A._path,er),setTimeout(()=>{Ye("ok")},0)),bt},stopListening:()=>{}}),U0(T,"connected",!1),T.serverSyncTree_=new so({startListening:(A,ee,he,Ye)=>(T.server_.listen(A,he,ee,(bt,er)=>{const mr=Ye(bt,er);Ms(T.eventQueue_,A._path,mr)}),[]),stopListening:(A,ee)=>{T.server_.unlisten(A,ee)}})}(this._repoInternal,this.app.options.appId,this.app.options.databaseAuthVariableOverride),this._instanceStarted=!0),this._repoInternal}get _root(){return this._rootInternal||(this._rootInternal=new Tu(this._repo,Zi())),this._rootInternal}_delete(){return null!==this._rootInternal&&(function Dm(T,S){const o=Qh[S];(!o||o[T.key]!==T)&&sa(`Database ${S}(${T.repoInfo_}) has already been deleted.`),Wh(T),delete o[T.key]}(this._repo,this.app.name),this._repoInternal=null,this._rootInternal=null),Promise.resolve()}_checkNotDeleted(S){null===this._rootInternal&&sa("Cannot call "+S+" on a deleted database.")}}function ep(){ra.IS_TRANSPORT_INITIALIZED&&xn("Transport has already been initialized. Please call this function before calling ref or setting up a listener")}function uy(){ep(),bs.forceDisallow()}function Pm(){ep(),Ia.forceDisallow(),bs.forceAllow()}function cy(T,S){ss(T,S)}const tp={".sv":"timestamp"};class Wb{constructor(S,o){this.committed=S,this.snapshot=o}toJSON(){return{committed:this.committed,snapshot:this.snapshot.toJSON()}}}os.prototype.simpleListen=function(T,S){this.sendRequest("q",{p:T},S)},os.prototype.echo=function(T,S){this.sendRequest("echo",{d:T},S)},function nc(T){Xs(Ot.SDK_VERSION),(0,Ot._registerComponent)(new At.wA("database",(S,{instanceIdentifier:o})=>Xh(S.getProvider("app").getImmediate(),S.getProvider("auth-internal"),S.getProvider("app-check-internal"),o),"PUBLIC").setMultipleInstances(!0)),(0,Ot.registerVersion)(ps,"0.14.4",T),(0,Ot.registerVersion)(ps,"0.14.4","esm2017")}();const py=new at.Yd("@firebase/database-compat"),Nm=function(T){py.warn("FIREBASE WARNING: "+T)};class gy{constructor(S){this._delegate=S}cancel(S){(0,Ze.Dv)("OnDisconnect.cancel",0,1,arguments.length),(0,Ze.Wj)("OnDisconnect.cancel","onComplete",S,!0);const o=this._delegate.cancel();return S&&o.then(()=>S(null),A=>S(A)),o}remove(S){(0,Ze.Dv)("OnDisconnect.remove",0,1,arguments.length),(0,Ze.Wj)("OnDisconnect.remove","onComplete",S,!0);const o=this._delegate.remove();return S&&o.then(()=>S(null),A=>S(A)),o}set(S,o){(0,Ze.Dv)("OnDisconnect.set",1,2,arguments.length),(0,Ze.Wj)("OnDisconnect.set","onComplete",o,!0);const A=this._delegate.set(S);return o&&A.then(()=>o(null),ee=>o(ee)),A}setWithPriority(S,o,A){(0,Ze.Dv)("OnDisconnect.setWithPriority",2,3,arguments.length),(0,Ze.Wj)("OnDisconnect.setWithPriority","onComplete",A,!0);const ee=this._delegate.setWithPriority(S,o);return A&&ee.then(()=>A(null),he=>A(he)),ee}update(S,o){if((0,Ze.Dv)("OnDisconnect.update",1,2,arguments.length),Array.isArray(S)){const ee={};for(let he=0;he<S.length;++he)ee[""+he]=S[he];S=ee,Nm("Passing an Array to firebase.database.onDisconnect().update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}(0,Ze.Wj)("OnDisconnect.update","onComplete",o,!0);const A=this._delegate.update(S);return o&&A.then(()=>o(null),ee=>o(ee)),A}}class ip{constructor(S,o){this.committed=S,this.snapshot=o}toJSON(){return(0,Ze.Dv)("TransactionResult.toJSON",0,1,arguments.length),{committed:this.committed,snapshot:this.snapshot.toJSON()}}}class ic{constructor(S,o){this._database=S,this._delegate=o}val(){return(0,Ze.Dv)("DataSnapshot.val",0,0,arguments.length),this._delegate.val()}exportVal(){return(0,Ze.Dv)("DataSnapshot.exportVal",0,0,arguments.length),this._delegate.exportVal()}toJSON(){return(0,Ze.Dv)("DataSnapshot.toJSON",0,1,arguments.length),this._delegate.toJSON()}exists(){return(0,Ze.Dv)("DataSnapshot.exists",0,0,arguments.length),this._delegate.exists()}child(S){return(0,Ze.Dv)("DataSnapshot.child",0,1,arguments.length),S=String(S),In("DataSnapshot.child","path",S,!1),new ic(this._database,this._delegate.child(S))}hasChild(S){return(0,Ze.Dv)("DataSnapshot.hasChild",1,1,arguments.length),In("DataSnapshot.hasChild","path",S,!1),this._delegate.hasChild(S)}getPriority(){return(0,Ze.Dv)("DataSnapshot.getPriority",0,0,arguments.length),this._delegate.priority}forEach(S){return(0,Ze.Dv)("DataSnapshot.forEach",1,1,arguments.length),(0,Ze.Wj)("DataSnapshot.forEach","action",S,!1),this._delegate.forEach(o=>S(new ic(this._database,o)))}hasChildren(){return(0,Ze.Dv)("DataSnapshot.hasChildren",0,0,arguments.length),this._delegate.hasChildren()}get key(){return this._delegate.key}numChildren(){return(0,Ze.Dv)("DataSnapshot.numChildren",0,0,arguments.length),this._delegate.size}getRef(){return(0,Ze.Dv)("DataSnapshot.ref",0,0,arguments.length),new tu(this._database,this._delegate.ref)}get ref(){return this.getRef()}}class fo{constructor(S,o){this.database=S,this._delegate=o}on(S,o,A,ee){var he;(0,Ze.Dv)("Query.on",2,4,arguments.length),(0,Ze.Wj)("Query.on","callback",o,!1);const Ye=fo.getCancelAndContextArgs_("Query.on",A,ee),bt=(mr,Kr)=>{o.call(Ye.context,new ic(this.database,mr),Kr)};bt.userCallback=o,bt.context=Ye.context;const er=null===(he=Ye.cancel)||void 0===he?void 0:he.bind(Ye.context);switch(S){case"value":return q0(this._delegate,bt,er),o;case"child_added":return J0(this._delegate,bt,er),o;case"child_removed":return mf(this._delegate,bt,er),o;case"child_changed":return Sm(this._delegate,bt,er),o;case"child_moved":return Tm(this._delegate,bt,er),o;default:throw new Error((0,Ze.gK)("Query.on","eventType")+'must be a valid event type = "value", "child_added", "child_removed", "child_changed", or "child_moved".')}}off(S,o,A){if((0,Ze.Dv)("Query.off",0,3,arguments.length),function(T,S,o){if(void 0!==S)switch(S){case"value":case"child_added":case"child_removed":case"child_changed":case"child_moved":break;default:throw new Error((0,Ze.gK)("Query.off","eventType")+'must be a valid event type = "value", "child_added", "child_removed", "child_changed", or "child_moved".')}}(0,S),(0,Ze.Wj)("Query.off","callback",o,!0),(0,Ze.lb)("Query.off","context",A,!0),o){const ee=()=>{};ee.userCallback=o,ee.context=A,Id(this._delegate,S,ee)}else Id(this._delegate,S)}get(){return Kc(this._delegate).then(S=>new ic(this.database,S))}once(S,o,A,ee){(0,Ze.Dv)("Query.once",1,4,arguments.length),(0,Ze.Wj)("Query.once","callback",o,!0);const he=fo.getCancelAndContextArgs_("Query.once",A,ee),Ye=new Ze.BH,bt=(mr,Kr)=>{const nn=new ic(this.database,mr);o&&o.call(he.context,nn,Kr),Ye.resolve(nn)};bt.userCallback=o,bt.context=he.context;const er=mr=>{he.cancel&&he.cancel.call(he.context,mr),Ye.reject(mr)};switch(S){case"value":q0(this._delegate,bt,er,{onlyOnce:!0});break;case"child_added":J0(this._delegate,bt,er,{onlyOnce:!0});break;case"child_removed":mf(this._delegate,bt,er,{onlyOnce:!0});break;case"child_changed":Sm(this._delegate,bt,er,{onlyOnce:!0});break;case"child_moved":Tm(this._delegate,bt,er,{onlyOnce:!0});break;default:throw new Error((0,Ze.gK)("Query.once","eventType")+'must be a valid event type = "value", "child_added", "child_removed", "child_changed", or "child_moved".')}return Ye.promise}limitToFirst(S){return(0,Ze.Dv)("Query.limitToFirst",1,1,arguments.length),new fo(this.database,rc(this._delegate,function $h(T){if("number"!=typeof T||Math.floor(T)!==T||T<=0)throw new Error("limitToFirst: First argument must be a positive integer.");return new Mm(T)}(S)))}limitToLast(S){return(0,Ze.Dv)("Query.limitToLast",1,1,arguments.length),new fo(this.database,rc(this._delegate,function wm(T){if("number"!=typeof T||Math.floor(T)!==T||T<=0)throw new Error("limitToLast: First argument must be a positive integer.");return new Q_(T)}(S)))}orderByChild(S){return(0,Ze.Dv)("Query.orderByChild",1,1,arguments.length),new fo(this.database,rc(this._delegate,function xm(T){if("$key"===T)throw new Error('orderByChild: "$key" is invalid.  Use orderByKey() instead.');if("$priority"===T)throw new Error('orderByChild: "$priority" is invalid.  Use orderByPriority() instead.');if("$value"===T)throw new Error('orderByChild: "$value" is invalid.  Use orderByValue() instead.');return In("orderByChild","path",T,!1),new Yb(T)}(S)))}orderByKey(){return(0,Ze.Dv)("Query.orderByKey",0,0,arguments.length),new fo(this.database,rc(this._delegate,function X_(){return new Im}()))}orderByPriority(){return(0,Ze.Dv)("Query.orderByPriority",0,0,arguments.length),new fo(this.database,rc(this._delegate,function ey(){return new Am}()))}orderByValue(){return(0,Ze.Dv)("Query.orderByValue",0,0,arguments.length),new fo(this.database,rc(this._delegate,function Ml(){return new ty}()))}startAt(S=null,o){return(0,Ze.Dv)("Query.startAt",0,2,arguments.length),new fo(this.database,rc(this._delegate,function Em(T=null,S){return mn("startAt","key",S,!0),new $0(T,S)}(S,o)))}startAfter(S=null,o){return(0,Ze.Dv)("Query.startAfter",0,2,arguments.length),new fo(this.database,rc(this._delegate,function X0(T,S){return mn("startAfter","key",S,!0),new Q0(T,S)}(S,o)))}endAt(S=null,o){return(0,Ze.Dv)("Query.endAt",0,2,arguments.length),new fo(this.database,rc(this._delegate,function rh(T,S){return mn("endAt","key",S,!0),new Ad(T,S)}(S,o)))}endBefore(S=null,o){return(0,Ze.Dv)("Query.endBefore",0,2,arguments.length),new fo(this.database,rc(this._delegate,function $_(T,S){return mn("endBefore","key",S,!0),new vf(T,S)}(S,o)))}equalTo(S,o){return(0,Ze.Dv)("Query.equalTo",1,2,arguments.length),new fo(this.database,rc(this._delegate,function ny(T,S){return mn("equalTo","key",S,!0),new ry(T,S)}(S,o)))}toString(){return(0,Ze.Dv)("Query.toString",0,0,arguments.length),this._delegate.toString()}toJSON(){return(0,Ze.Dv)("Query.toJSON",0,1,arguments.length),this._delegate.toJSON()}isEqual(S){if((0,Ze.Dv)("Query.isEqual",1,1,arguments.length),!(S instanceof fo))throw new Error("Query.isEqual failed: First argument must be an instance of firebase.database.Query.");return this._delegate.isEqual(S._delegate)}static getCancelAndContextArgs_(S,o,A){const ee={cancel:void 0,context:void 0};if(o&&A)ee.cancel=o,(0,Ze.Wj)(S,"cancel",ee.cancel,!0),ee.context=A,(0,Ze.lb)(S,"context",ee.context,!0);else if(o)if("object"==typeof o&&null!==o)ee.context=o;else{if("function"!=typeof o)throw new Error((0,Ze.gK)(S,"cancelOrContext")+" must either be a cancel callback or a context object.");ee.cancel=o}return ee}get ref(){return new tu(this.database,new Tu(this._delegate._repo,this._delegate._path))}}class tu extends fo{constructor(S,o){super(S,new Tl(o._repo,o._path,new Uo,!1)),this.database=S,this._delegate=o}getKey(){return(0,Ze.Dv)("Reference.key",0,0,arguments.length),this._delegate.key}child(S){return(0,Ze.Dv)("Reference.child",1,1,arguments.length),"number"==typeof S&&(S=String(S)),new tu(this.database,ll(this._delegate,S))}getParent(){(0,Ze.Dv)("Reference.parent",0,0,arguments.length);const S=this._delegate.parent;return S?new tu(this.database,S):null}getRoot(){return(0,Ze.Dv)("Reference.root",0,0,arguments.length),new tu(this.database,this._delegate.root)}set(S,o){(0,Ze.Dv)("Reference.set",1,2,arguments.length),(0,Ze.Wj)("Reference.set","onComplete",o,!0);const A=th(this._delegate,S);return o&&A.then(()=>o(null),ee=>o(ee)),A}update(S,o){if((0,Ze.Dv)("Reference.update",1,2,arguments.length),Array.isArray(S)){const ee={};for(let he=0;he<S.length;++he)ee[""+he]=S[he];S=ee,Nm("Passing an Array to Firebase.update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}Zn("Reference.update",this._delegate._path),(0,Ze.Wj)("Reference.update","onComplete",o,!0);const A=J_(this._delegate,S);return o&&A.then(()=>o(null),ee=>o(ee)),A}setWithPriority(S,o,A){(0,Ze.Dv)("Reference.setWithPriority",2,3,arguments.length),(0,Ze.Wj)("Reference.setWithPriority","onComplete",A,!0);const ee=function K0(T,S,o){if(Zn("setWithPriority",T._path),Lr("setWithPriority",S,T._path,!1),en("setWithPriority",o,!1),".length"===T.key||".keys"===T.key)throw"setWithPriority failed: "+T.key+" is a read-only object.";const A=new Ze.BH;return jh(T._repo,T._path,S,o,A.wrapCallback(()=>{})),A.promise}(this._delegate,S,o);return A&&ee.then(()=>A(null),he=>A(he)),ee}remove(S){(0,Ze.Dv)("Reference.remove",0,1,arguments.length),(0,Ze.Wj)("Reference.remove","onComplete",S,!0);const o=function Cm(T){return Zn("remove",T._path),th(T,null)}(this._delegate);return S&&o.then(()=>S(null),A=>S(A)),o}transaction(S,o,A){(0,Ze.Dv)("Reference.transaction",1,3,arguments.length),(0,Ze.Wj)("Reference.transaction","transactionUpdate",S,!1),(0,Ze.Wj)("Reference.transaction","onComplete",o,!0),function(T,S,o,A){if(void 0!==o&&"boolean"!=typeof o)throw new Error((0,Ze.gK)("Reference.transaction","applyLocally")+"must be a boolean.")}(0,0,A);const ee=function km(T,S,o){var A;if(T=(0,Ze.m9)(T),Zn("Reference.transaction",T._path),".length"===T.key||".keys"===T.key)throw"Reference.transaction failed: "+T.key+" is a read-only object.";const ee=null===(A=null==o?void 0:o.applyLocally)||void 0===A||A,he=new Ze.BH,bt=q0(T,()=>{});return function fm(T,S,o,A,ee,he){Zc(T,"transaction on "+S);const Ye={path:S,update:o,onComplete:A,status:null,order:jt(),applyLocally:he,retryCount:0,unwatcher:ee,abortReason:null,currentWriteId:null,currentInputSnapshot:null,currentOutputSnapshotRaw:null,currentOutputSnapshotResolved:null},bt=hm(T,S,void 0);Ye.currentInputSnapshot=bt;const er=Ye.update(bt.val());if(void 0===er)Ye.unwatcher(),Ye.currentOutputSnapshotRaw=null,Ye.currentOutputSnapshotResolved=null,Ye.onComplete&&Ye.onComplete(null,!1,Ye.currentInputSnapshot);else{Yr("transaction failed: Data returned ",er,Ye.path),Ye.status=0;const mr=Gc(T.transactionQueueTree_,S),Kr=ol(mr)||[];let nn;Kr.push(Ye),df(mr,Kr),"object"==typeof er&&null!==er&&(0,Ze.r3)(er,".priority")?(nn=(0,Ze.DV)(er,".priority"),(0,Ze.hu)(Xt(nn),"Invalid priority returned by transaction. Priority must be a valid string, finite number, server value, or null.")):nn=(Vc(T.serverSyncTree_,S)||Vi.EMPTY_NODE).getPriority().val();const vn=eh(T),Hn=Ks(er,nn),Yn=bc(Hn,bt,vn);Ye.currentOutputSnapshotRaw=Hn,Ye.currentOutputSnapshotResolved=Yn,Ye.currentWriteId=Yh(T);const ii=bu(T.serverSyncTree_,S,Yn,Ye.currentWriteId,Ye.applyLocally);Ms(T.eventQueue_,S,ii),Md(T,T.transactionQueueTree_)}}(T._repo,T._path,S,(er,mr,Kr)=>{let nn=null;er?he.reject(er):(nn=new pf(Kr,new Tu(T._repo,T._path),Ns),he.resolve(new Wb(mr,nn)))},bt,ee),he.promise}(this._delegate,S,{applyLocally:A}).then(he=>new ip(he.committed,new ic(this.database,he.snapshot)));return o&&ee.then(he=>o(null,he.committed,he.snapshot),he=>o(he,!1,null)),ee}setPriority(S,o){(0,Ze.Dv)("Reference.setPriority",1,2,arguments.length),(0,Ze.Wj)("Reference.setPriority","onComplete",o,!0);const A=function bm(T,S){T=(0,Ze.m9)(T),Zn("setPriority",T._path),en("setPriority",S,!1);const o=new Ze.BH;return jh(T._repo,ms(T._path,".priority"),S,null,o.wrapCallback(()=>{})),o.promise}(this._delegate,S);return o&&A.then(()=>o(null),ee=>o(ee)),A}push(S,o){(0,Ze.Dv)("Reference.push",0,2,arguments.length),(0,Ze.Wj)("Reference.push","onComplete",o,!0);const A=function q_(T,S){T=(0,Ze.m9)(T),Zn("push",T._path),Lr("push",S,T._path,!0);const o=hf(T._repo),A=mm(o),ee=ll(T,A),he=ll(T,A);let Ye;return Ye=null!=S?th(he,S).then(()=>he):Promise.resolve(he),ee.then=Ye.then.bind(Ye),ee.catch=Ye.then.bind(Ye,void 0),ee}(this._delegate,S),ee=A.then(Ye=>new tu(this.database,Ye));o&&ee.then(()=>o(null),Ye=>o(Ye));const he=new tu(this.database,A);return he.then=ee.then.bind(ee),he.catch=ee.catch.bind(ee,void 0),he}onDisconnect(){return Zn("Reference.onDisconnect",this._delegate._path),new gy(new Z_(this._delegate._repo,this._delegate._path))}get key(){return this.getKey()}get parent(){return this.getParent()}get root(){return this.getRoot()}}class t0{constructor(S,o){this._delegate=S,this.app=o,this.INTERNAL={delete:()=>this._delegate._delete(),forceWebSockets:uy,forceLongPolling:Pm}}useEmulator(S,o,A={}){!function Om(T,S,o,A={}){(T=(0,Ze.m9)(T))._checkNotDeleted("useEmulator"),T._instanceStarted&&sa("Cannot call useEmulator() after instance has already been initialized.");const ee=T._repoInternal;let he;if(ee.repoInfo_.nodeAdmin)A.mockUserToken&&sa('mockUserToken is not supported by the Admin SDK. For client access with mock users, please use the "firebase" package instead of "firebase-admin".'),he=new to(to.OWNER);else if(A.mockUserToken){const Ye="string"==typeof A.mockUserToken?A.mockUserToken:(0,Ze.Sg)(A.mockUserToken,T.app.options.projectId);he=new to(Ye)}!function sy(T,S,o,A){T.repoInfo_=new wa(`${S}:${o}`,!1,T.repoInfo_.namespace,T.repoInfo_.webSocketOnly,T.repoInfo_.nodeAdmin,T.repoInfo_.persistenceKey,T.repoInfo_.includeNamespaceInQueryParams,!0),A&&(T.authTokenProvider_=A)}(ee,S,o,he)}(this._delegate,S,o,A)}ref(S){if((0,Ze.Dv)("database.ref",0,1,arguments.length),S instanceof tu){const o=K_(this._delegate,S.toString());return new tu(this,o)}{const o=z_(this._delegate,S);return new tu(this,o)}}refFromURL(S){(0,Ze.Dv)("database.refFromURL",1,1,arguments.length);const A=K_(this._delegate,S);return new tu(this,A)}goOffline(){return(0,Ze.Dv)("database.goOffline",0,0,arguments.length),function Rm(T){(T=(0,Ze.m9)(T))._checkNotDeleted("goOffline"),Wh(T._repo)}(this._delegate)}goOnline(){return(0,Ze.Dv)("database.goOnline",0,0,arguments.length),function Lm(T){(T=(0,Ze.m9)(T))._checkNotDeleted("goOnline"),function dm(T){T.persistentConnection_&&T.persistentConnection_.resume(da)}(T._repo)}(this._delegate)}}t0.ServerValue={TIMESTAMP:function dy(){return tp}(),increment:T=>function fy(T){return{".sv":{increment:T}}}(T)};var Kb=Object.freeze({__proto__:null,initStandalone:function sp({app:T,url:S,version:o,customAuthImpl:A,namespace:ee,nodeAdmin:he=!1}){Xs(o);const Ye=new At.zt("auth-internal",new At.H0("database-standalone"));return Ye.setComponent(new At.wA("auth-internal",()=>A,"PRIVATE")),{instance:new t0(Xh(T,Ye,void 0,S,he),T),namespace:ee}}});const my=t0.ServerValue;function ap(T){return null==T}function op(T){return"function"==typeof T.set}function sc(T,S){return op(S)?S:T.ref(S)}function nh(T,S){if(function Bm(T){return"string"==typeof T}(T))return S.stringCase();if(op(T))return S.firebaseCase();if(function Um(T){return"function"==typeof T.exportVal}(T))return S.snapshotCase();throw new Error("Expects a string, snapshot, or reference. Got: "+typeof T)}function ih(T,S,o="on",A=yi.z){return new f.y(ee=>{let he=null;return he=T[o](S,(Ye,bt)=>{A.schedule(()=>{ee.next({snapshot:Ye,prevKey:bt})}),"once"===o&&A.schedule(()=>ee.complete())},Ye=>{A.schedule(()=>ee.error(Ye))}),"on"===o?{unsubscribe(){null!=he&&T.off(S,he)}}:{unsubscribe(){}}}).pipe((0,H.U)(ee=>{const{snapshot:he,prevKey:Ye}=ee;let bt=null;return he.exists()&&(bt=he.key),{type:S,payload:he,prevKey:Ye,key:bt}}),(0,oi.B)())}function _y(T,S){const o=T.length;for(let A=0;A<o;A++)if(T[A].payload.key===S)return A;return-1}function Hm(T,S){const{payload:o,prevKey:A,key:ee}=S,he=_y(T,ee),Ye=function r0(T,S){if(ap(S))return 0;{const o=_y(T,S);return-1===o?T.length:o+1}}(T,A);switch(S.type){case"value":if(S.payload&&S.payload.exists()){let bt=null;S.payload.forEach(er=>{const mr={payload:er,type:"value",prevKey:bt,key:er.key};return bt=er.key,T=[...T,mr],!1})}return T;case"child_added":if(he>-1){const bt=T[he-1];(bt&&bt.key||null)!==A&&(T=T.filter(er=>er.payload.key!==o.key)).splice(Ye,0,S)}else{if(null==A)return[S,...T];(T=T.slice()).splice(Ye,0,S)}return T;case"child_removed":return T.filter(bt=>bt.payload.key!==o.key);case"child_changed":return T.map(bt=>bt.payload.key===ee?S:bt);case"child_moved":if(he>-1){const bt=T.splice(he,1)[0];return(T=T.slice()).splice(Ye,0,bt),T}return T;default:return T}}function n0(T){return(ap(T)||0===T.length)&&(T=["child_added","child_removed","child_changed","child_moved"]),T}function _f(T,S,o){return function vy(T,S,o){return ih(T,"value","once",o).pipe((0,O.w)(A=>{const ee=[(0,p.of)(A)];return S.forEach(he=>ee.push(ih(T,he,"on",o))),(0,N.T)(...ee).pipe((0,di.R)(Hm,[]))}),(0,Qi.x)())}(T,S=n0(S),o)}function Vm(T,S,o){const A=(S=n0(S)).map(ee=>ih(T,ee,"on",o));return(0,N.T)(...A)}function up(T,S){return function(A,ee){return nh(A,{stringCase:()=>T.child(A)[S](ee),firebaseCase:()=>A[S](ee),snapshotCase:()=>A.ref[S](ee)})}}function yy(T){return function(o){return o?nh(o,{stringCase:()=>T.child(o).remove(),firebaseCase:()=>o.remove(),snapshotCase:()=>o.ref.remove()}):T.remove()}}function Gm(T,S){return function(){return ih(T,"value","on",S)}}!function Fm(T){T.INTERNAL.registerComponent(new At.wA("database-compat",(S,{instanceIdentifier:o})=>{const A=S.getProvider("app-compat").getImmediate(),ee=S.getProvider("database").getImmediate({identifier:o});return new t0(ee,A)},"PUBLIC").setServiceProps({Reference:tu,Query:fo,Database:t0,DataSnapshot:ic,enableLogging:cy,INTERNAL:Kb,ServerValue:my}).setMultipleInstances(!0)),T.registerVersion("@firebase/database-compat","0.3.4")}(Zs.Z);const Wm=new e.OlP("angularfire2.realtimeDatabaseURL"),yf=new e.OlP("angularfire2.database.use-emulator");let Zm=(()=>{class T{constructor(o,A,ee,he,Ye,bt,er,mr,Kr,nn,vn,Hn,Yn,ii,ki){this.schedulers=bt;const Ls=er,Ws=(0,y.on)(o,Ye,A);mr&&Pn(Ws,Ye,Kr,vn,Hn,Yn,nn,ii),this.database=(0,y.cc)(`${Ws.name}.database.${ee}`,"AngularFireDatabase",Ws.name,()=>{const ya=Ye.runOutsideAngular(()=>Ws.database(ee||void 0));return Ls&&ya.useEmulator(...Ls),ya},[Ls])}list(o,A){const ee=this.schedulers.ngZone.runOutsideAngular(()=>sc(this.database,o));let he=ee;return A&&(he=A(ee)),function cp(T,S){const o=S.schedulers.outsideAngular,A=S.schedulers.ngZone.run(()=>T.ref);return{query:T,update:up(A,"update"),set:up(A,"set"),push:ee=>A.push(ee),remove:yy(A),snapshotChanges:ee=>_f(T,ee,o).pipe(J.iC),stateChanges:ee=>Vm(T,ee,o).pipe(J.iC),auditTrail:ee=>function lp(T,S,o){return function jm(T,S,o){return function Ym(T,S){return ih(T,"value","on",S).pipe((0,H.U)(o=>{let A;return o.payload.forEach(ee=>(A=ee.key,!1)),{data:o,lastKeyToLoad:A}}))}(T,o).pipe(function Oi(...T){return S=>{let o;return"function"==typeof T[T.length-1]&&(o=T.pop()),S.lift(new hs(T,o))}}(S),(0,H.U)(([ee,he])=>{const Ye=ee.lastKeyToLoad,bt=he.map(er=>er.key);return{actions:he,lastKeyToLoad:Ye,loadedKeys:bt}}),function ys(T){return S=>S.lift(new rs(T))}(ee=>-1===ee.loadedKeys.indexOf(ee.lastKeyToLoad)),(0,H.U)(ee=>ee.actions))}(T,Vm(T,S).pipe((0,di.R)((ee,he)=>[...ee,he],[])),o)}(T,ee,o).pipe(J.iC),valueChanges:(ee,he)=>_f(T,ee,o).pipe((0,H.U)(bt=>bt.map(er=>he&&he.idField?Object.assign(Object.assign({},er.payload.val()),{[he.idField]:er.key}):er.payload.val())),J.iC)}}(he,this)}object(o){return function Cy(T,S){return{query:T,snapshotChanges:()=>Gm(T,S.schedulers.outsideAngular)().pipe(J.iC),update:o=>T.ref.update(o),set:o=>T.ref.set(o),remove:()=>T.ref.remove(),valueChanges:()=>Gm(T,S.schedulers.outsideAngular)().pipe(J.iC,(0,H.U)(A=>A.payload.exists()?A.payload.val():null))}}(this.schedulers.ngZone.runOutsideAngular(()=>sc(this.database,o)),this)}createPushId(){return this.schedulers.ngZone.runOutsideAngular(()=>this.database.ref()).push().key}}return T.\u0275fac=function(o){return new(o||T)(e.LFG(y.Dh),e.LFG(y.xv,8),e.LFG(Wm,8),e.LFG(e.Lbi),e.LFG(e.R0b),e.LFG(J.HU),e.LFG(yf,8),e.LFG(An,8),e.LFG(zn,8),e.LFG(ai,8),e.LFG(_i,8),e.LFG(wi,8),e.LFG(Wn,8),e.LFG($r,8),e.LFG(sn,8))},T.\u0275prov=e.Yz7({token:T,factory:T.\u0275fac,providedIn:"any"}),T})(),by=(()=>{class T{constructor(){Fn.Z.registerVersion("angularfire",J.q4.full,"rtdb-compat")}}return T.\u0275fac=function(o){return new(o||T)},T.\u0275mod=e.oAB({type:T}),T.\u0275inj=e.cJS({providers:[Zm]}),T})();var Sy=n(71261),qn=n(37340);const xs=!1;function zm(T){return new e.vHH(3e3,xs)}function Py(){return typeof window<"u"&&typeof window.document<"u"}function gp(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function qc(T){switch(T.length){case 0:return new qn.ZN;case 1:return T[0];default:return new qn.ZE(T)}}function av(T,S,o,A,ee={},he={}){const Ye=[],bt=[];let er=-1,mr=null;if(A.forEach(Kr=>{const nn=Kr.offset,vn=nn==er,Hn=vn&&mr||{};Object.keys(Kr).forEach(Yn=>{let ii=Yn,ki=Kr[Yn];if("offset"!==Yn)switch(ii=S.normalizePropertyName(ii,Ye),ki){case qn.k1:ki=ee[Yn];break;case qn.l3:ki=he[Yn];break;default:ki=S.normalizeStyleValue(Yn,ii,ki,Ye)}Hn[ii]=ki}),vn||bt.push(Hn),mr=Hn,er=nn}),Ye.length)throw function Eu(T){return new e.vHH(3502,xs)}();return bt}function mp(T,S,o,A){switch(S){case"start":T.onStart(()=>A(o&&vp(o,"start",T)));break;case"done":T.onDone(()=>A(o&&vp(o,"done",T)));break;case"destroy":T.onDestroy(()=>A(o&&vp(o,"destroy",T)))}}function vp(T,S,o){const he=Cf(T.element,T.triggerName,T.fromState,T.toState,S||T.phaseName,o.totalTime??T.totalTime,!!o.disabled),Ye=T._data;return null!=Ye&&(he._data=Ye),he}function Cf(T,S,o,A,ee="",he=0,Ye){return{element:T,triggerName:S,fromState:o,toState:A,phaseName:ee,totalTime:he,disabled:!!Ye}}function ho(T,S,o){let A;return T instanceof Map?(A=T.get(S),A||T.set(S,A=o)):(A=T[S],A||(A=T[S]=o)),A}function ov(T){const S=T.indexOf(":");return[T.substring(1,S),T.substr(S+1)]}let Dd=(T,S)=>!1,lv=(T,S,o)=>[],uv=null;function sh(T){const S=T.parentNode||T.host;return S===uv?null:S}(gp()||typeof Element<"u")&&(Py()?(uv=(()=>document.documentElement)(),Dd=(T,S)=>{for(;S;){if(S===T)return!0;S=sh(S)}return!1}):Dd=(T,S)=>T.contains(S),lv=(T,S,o)=>{if(o)return Array.from(T.querySelectorAll(S));const A=T.querySelector(S);return A?[A]:[]});let Oa=null,Jc=!1;function oh(T){Oa||(Oa=function ru(){return typeof document<"u"?document.body:null}()||{},Jc=!!Oa.style&&"WebkitAppearance"in Oa.style);let S=!0;return Oa.style&&!function ah(T){return"ebkit"==T.substring(1,6)}(T)&&(S=T in Oa.style,!S&&Jc&&(S="Webkit"+T.charAt(0).toUpperCase()+T.substr(1)in Oa.style)),S}const a0=Dd,Pd=lv;let Od=(()=>{class T{validateStyleProperty(o){return oh(o)}matchesElement(o,A){return!1}containsElement(o,A){return a0(o,A)}getParentElement(o){return sh(o)}query(o,A,ee){return Pd(o,A,ee)}computeStyle(o,A,ee){return ee||""}animate(o,A,ee,he,Ye,bt=[],er){return new qn.ZN(ee,he)}}return T.\u0275fac=function(o){return new(o||T)},T.\u0275prov=e.Yz7({token:T,factory:T.\u0275fac}),T})(),$c=(()=>{class T{}return T.NOOP=new Od,T})();const Qc="ng-enter",Tc="ng-leave",uh="ng-trigger",ch=".ng-trigger",_p="ng-animating",o0=".ng-animating";function Xc(T){if("number"==typeof T)return T;const S=T.match(/^(-?[\.\d]+)(m?s)/);return!S||S.length<2?0:l0(parseFloat(S[1]),S[2])}function l0(T,S){return"s"===S?1e3*T:T}function dh(T,S,o){return T.hasOwnProperty("duration")?T:function cv(T,S,o){let ee,he=0,Ye="";if("string"==typeof T){const bt=T.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===bt)return S.push(zm()),{duration:0,delay:0,easing:""};ee=l0(parseFloat(bt[1]),bt[2]);const er=bt[3];null!=er&&(he=l0(parseFloat(er),bt[4]));const mr=bt[5];mr&&(Ye=mr)}else ee=T;if(!o){let bt=!1,er=S.length;ee<0&&(S.push(function Ty(){return new e.vHH(3100,xs)}()),bt=!0),he<0&&(S.push(function ac(){return new e.vHH(3101,xs)}()),bt=!0),bt&&S.splice(er,0,zm())}return{duration:ee,delay:he,easing:Ye}}(T,S,o)}function Ld(T,S={}){return Object.keys(T).forEach(o=>{S[o]=T[o]}),S}function Ec(T,S,o={}){if(S)for(let A in T)o[A]=T[A];else Ld(T,o);return o}function fv(T,S,o){return o?S+":"+o+";":""}function yp(T){let S="";for(let o=0;o<T.style.length;o++){const A=T.style.item(o);S+=fv(0,A,T.style.getPropertyValue(A))}for(const o in T.style)T.style.hasOwnProperty(o)&&!o.startsWith("_")&&(S+=fv(0,Tp(o),T.style[o]));T.setAttribute("style",S)}function Mu(T,S,o){T.style&&(Object.keys(S).forEach(A=>{const ee=Sp(A);o&&!o.hasOwnProperty(A)&&(o[A]=T.style[ee]),T.style[ee]=S[A]}),gp()&&yp(T))}function kd(T,S){T.style&&(Object.keys(S).forEach(o=>{const A=Sp(o);T.style[A]=""}),gp()&&yp(T))}function fh(T){return Array.isArray(T)?1==T.length?T[0]:(0,qn.vP)(T):T}const Cp=new RegExp("{{\\s*(.+?)\\s*}}","g");function bp(T){let S=[];if("string"==typeof T){let o;for(;o=Cp.exec(T);)S.push(o[1]);Cp.lastIndex=0}return S}function u0(T,S,o){const A=T.toString(),ee=A.replace(Cp,(he,Ye)=>{let bt=S[Ye];return S.hasOwnProperty(Ye)||(o.push(function Km(T){return new e.vHH(3003,xs)}()),bt=""),bt.toString()});return ee==A?T:ee}function c0(T){const S=[];let o=T.next();for(;!o.done;)S.push(o.value),o=T.next();return S}const i6=/-+([a-z0-9])/g;function Sp(T){return T.replace(i6,(...S)=>S[1].toUpperCase())}function Tp(T){return T.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function nu(T,S,o){switch(S.type){case 7:return T.visitTrigger(S,o);case 0:return T.visitState(S,o);case 1:return T.visitTransition(S,o);case 2:return T.visitSequence(S,o);case 3:return T.visitGroup(S,o);case 4:return T.visitAnimate(S,o);case 5:return T.visitKeyframes(S,o);case 6:return T.visitStyle(S,o);case 8:return T.visitReference(S,o);case 9:return T.visitAnimateChild(S,o);case 10:return T.visitAnimateRef(S,o);case 11:return T.visitQuery(S,o);case 12:return T.visitStagger(S,o);default:throw function qm(T){return new e.vHH(3004,xs)}()}}function Ry(T,S){return window.getComputedStyle(T)[S]}function ky(T,S){const o=[];return"string"==typeof T?T.split(/\s*,\s*/).forEach(A=>function gv(T,S,o){if(":"==T[0]){const er=function f0(T,S){switch(T){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(o,A)=>parseFloat(A)>parseFloat(o);case":decrement":return(o,A)=>parseFloat(A)<parseFloat(o);default:return S.push(function Ay(T){return new e.vHH(3016,xs)}()),"* => *"}}(T,o);if("function"==typeof er)return void S.push(er);T=er}const A=T.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==A||A.length<4)return o.push(function fp(T){return new e.vHH(3015,xs)}()),S;const ee=A[1],he=A[2],Ye=A[3];S.push(mv(ee,Ye));"<"==he[0]&&!("*"==ee&&"*"==Ye)&&S.push(mv(Ye,ee))}(A,o,S)):o.push(T),o}const h0=new Set(["true","1"]),gh=new Set(["false","0"]);function mv(T,S){const o=h0.has(T)||gh.has(T),A=h0.has(S)||gh.has(S);return(ee,he)=>{let Ye="*"==T||T==ee,bt="*"==S||S==he;return!Ye&&o&&"boolean"==typeof ee&&(Ye=ee?h0.has(T):gh.has(T)),!bt&&A&&"boolean"==typeof he&&(bt=he?h0.has(S):gh.has(S)),Ye&&bt}}const Ny=new RegExp("s*:selfs*,?","g");function wp(T,S,o,A){return new yv(T).build(S,o,A)}class yv{constructor(S){this._driver=S}build(S,o,A){const ee=new bv(o);this._resetContextStyleTimingState(ee);const he=nu(this,fh(S),ee);return ee.unsupportedCSSPropertiesFound.size&&ee.unsupportedCSSPropertiesFound.keys(),he}_resetContextStyleTimingState(S){S.currentQuerySelector="",S.collectedStyles={},S.collectedStyles[""]={},S.currentTime=0}visitTrigger(S,o){let A=o.queryCount=0,ee=o.depCount=0;const he=[],Ye=[];return"@"==S.name.charAt(0)&&o.errors.push(function $m(){return new e.vHH(3006,xs)}()),S.definitions.forEach(bt=>{if(this._resetContextStyleTimingState(o),0==bt.type){const er=bt,mr=er.name;mr.toString().split(/\s*,\s*/).forEach(Kr=>{er.name=Kr,he.push(this.visitState(er,o))}),er.name=mr}else if(1==bt.type){const er=this.visitTransition(bt,o);A+=er.queryCount,ee+=er.depCount,Ye.push(er)}else o.errors.push(function Ey(){return new e.vHH(3007,xs)}())}),{type:7,name:S.name,states:he,transitions:Ye,queryCount:A,depCount:ee,options:null}}visitState(S,o){const A=this.visitStyle(S.styles,o),ee=S.options&&S.options.params||null;if(A.containsDynamicStyles){const he=new Set,Ye=ee||{};A.styles.forEach(bt=>{if(Ip(bt)){const er=bt;Object.keys(er).forEach(mr=>{bp(er[mr]).forEach(Kr=>{Ye.hasOwnProperty(Kr)||he.add(Kr)})})}}),he.size&&(c0(he.values()),o.errors.push(function My(T,S){return new e.vHH(3008,xs)}()))}return{type:0,name:S.name,style:A,options:ee?{params:ee}:null}}visitTransition(S,o){o.queryCount=0,o.depCount=0;const A=nu(this,fh(S.animation),o);return{type:1,matchers:ky(S.expr,o.errors),animation:A,queryCount:o.queryCount,depCount:o.depCount,options:Nd(S.options)}}visitSequence(S,o){return{type:2,steps:S.steps.map(A=>nu(this,A,o)),options:Nd(S.options)}}visitGroup(S,o){const A=o.currentTime;let ee=0;const he=S.steps.map(Ye=>{o.currentTime=A;const bt=nu(this,Ye,o);return ee=Math.max(ee,o.currentTime),bt});return o.currentTime=ee,{type:3,steps:he,options:Nd(S.options)}}visitAnimate(S,o){const A=function Ap(T,S){if(T.hasOwnProperty("duration"))return T;if("number"==typeof T)return Sv(dh(T,S).duration,0,"");const o=T;if(o.split(/\s+/).some(he=>"{"==he.charAt(0)&&"{"==he.charAt(1))){const he=Sv(0,0,"");return he.dynamic=!0,he.strValue=o,he}const ee=dh(o,S);return Sv(ee.duration,ee.delay,ee.easing)}(S.timings,o.errors);o.currentAnimateTimings=A;let ee,he=S.styles?S.styles:(0,qn.oB)({});if(5==he.type)ee=this.visitKeyframes(he,o);else{let Ye=S.styles,bt=!1;if(!Ye){bt=!0;const mr={};A.easing&&(mr.easing=A.easing),Ye=(0,qn.oB)(mr)}o.currentTime+=A.duration+A.delay;const er=this.visitStyle(Ye,o);er.isEmptyStep=bt,ee=er}return o.currentAnimateTimings=null,{type:4,timings:A,style:ee,options:null}}visitStyle(S,o){const A=this._makeStyleAst(S,o);return this._validateStyleAst(A,o),A}_makeStyleAst(S,o){const A=[];Array.isArray(S.styles)?S.styles.forEach(Ye=>{"string"==typeof Ye?Ye==qn.l3?A.push(Ye):o.errors.push(function wy(T){return new e.vHH(3002,xs)}()):A.push(Ye)}):A.push(S.styles);let ee=!1,he=null;return A.forEach(Ye=>{if(Ip(Ye)){const bt=Ye,er=bt.easing;if(er&&(he=er,delete bt.easing),!ee)for(let mr in bt)if(bt[mr].toString().indexOf("{{")>=0){ee=!0;break}}}),{type:6,styles:A,easing:he,offset:S.offset,containsDynamicStyles:ee,options:null}}_validateStyleAst(S,o){const A=o.currentAnimateTimings;let ee=o.currentTime,he=o.currentTime;A&&he>0&&(he-=A.duration+A.delay),S.styles.forEach(Ye=>{"string"!=typeof Ye&&Object.keys(Ye).forEach(bt=>{if(!this._driver.validateStyleProperty(bt))return delete Ye[bt],void o.unsupportedCSSPropertiesFound.add(bt);const er=o.collectedStyles[o.currentQuerySelector],mr=er[bt];let Kr=!0;mr&&(he!=ee&&he>=mr.startTime&&ee<=mr.endTime&&(o.errors.push(function Qm(T,S,o,A,ee){return new e.vHH(3010,xs)}()),Kr=!1),he=mr.startTime),Kr&&(er[bt]={startTime:he,endTime:ee}),o.options&&function hv(T,S,o){const A=S.params||{},ee=bp(T);ee.length&&ee.forEach(he=>{A.hasOwnProperty(he)||o.push(function dp(T){return new e.vHH(3001,xs)}())})}(Ye[bt],o.options,o.errors)})})}visitKeyframes(S,o){const A={type:5,styles:[],options:null};if(!o.currentAnimateTimings)return o.errors.push(function Jb(){return new e.vHH(3011,xs)}()),A;let he=0;const Ye=[];let bt=!1,er=!1,mr=0;const Kr=S.steps.map(Ls=>{const Ws=this._makeStyleAst(Ls,o);let ya=null!=Ws.offset?Ws.offset:function xp(T){if("string"==typeof T)return null;let S=null;if(Array.isArray(T))T.forEach(o=>{if(Ip(o)&&o.hasOwnProperty("offset")){const A=o;S=parseFloat(A.offset),delete A.offset}});else if(Ip(T)&&T.hasOwnProperty("offset")){const o=T;S=parseFloat(o.offset),delete o.offset}return S}(Ws.styles),Is=0;return null!=ya&&(he++,Is=Ws.offset=ya),er=er||Is<0||Is>1,bt=bt||Is<mr,mr=Is,Ye.push(Is),Ws});er&&o.errors.push(function Xm(){return new e.vHH(3012,xs)}()),bt&&o.errors.push(function xy(){return new e.vHH(3200,xs)}());const nn=S.steps.length;let vn=0;he>0&&he<nn?o.errors.push(function Iy(){return new e.vHH(3202,xs)}()):0==he&&(vn=1/(nn-1));const Hn=nn-1,Yn=o.currentTime,ii=o.currentAnimateTimings,ki=ii.duration;return Kr.forEach((Ls,Ws)=>{const ya=vn>0?Ws==Hn?1:vn*Ws:Ye[Ws],Is=ya*ki;o.currentTime=Yn+ii.delay+Is,ii.duration=Is,this._validateStyleAst(Ls,o),Ls.offset=ya,A.styles.push(Ls)}),A}visitReference(S,o){return{type:8,animation:nu(this,fh(S.animation),o),options:Nd(S.options)}}visitAnimateChild(S,o){return o.depCount++,{type:9,options:Nd(S.options)}}visitAnimateRef(S,o){return{type:10,animation:this.visitReference(S.animation,o),options:Nd(S.options)}}visitQuery(S,o){const A=o.currentQuerySelector,ee=S.options||{};o.queryCount++,o.currentQuery=S;const[he,Ye]=function Fy(T){const S=!!T.split(/\s*,\s*/).find(o=>":self"==o);return S&&(T=T.replace(Ny,"")),T=T.replace(/@\*/g,ch).replace(/@\w+/g,o=>ch+"-"+o.substr(1)).replace(/:animating/g,o0),[T,S]}(S.selector);o.currentQuerySelector=A.length?A+" "+he:he,ho(o.collectedStyles,o.currentQuerySelector,{});const bt=nu(this,fh(S.animation),o);return o.currentQuery=null,o.currentQuerySelector=A,{type:11,selector:he,limit:ee.limit||0,optional:!!ee.optional,includeSelf:Ye,animation:bt,originalSelector:S.selector,options:Nd(S.options)}}visitStagger(S,o){o.currentQuery||o.errors.push(function $b(){return new e.vHH(3013,xs)}());const A="full"===S.timings?{duration:0,delay:0,easing:"full"}:dh(S.timings,o.errors,!0);return{type:12,animation:nu(this,fh(S.animation),o),timings:A,options:null}}}class bv{constructor(S){this.errors=S,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Ip(T){return!Array.isArray(T)&&"object"==typeof T}function Nd(T){return T?(T=Ld(T)).params&&(T.params=function Cv(T){return T?Ld(T):null}(T.params)):T={},T}function Sv(T,S,o){return{duration:T,delay:S,easing:o}}function Fd(T,S,o,A,ee,he,Ye=null,bt=!1){return{type:1,element:T,keyframes:S,preStyleProps:o,postStyleProps:A,duration:ee,delay:he,totalTime:ee+he,easing:Ye,subTimeline:bt}}class mh{constructor(){this._map=new Map}get(S){return this._map.get(S)||[]}append(S,o){let A=this._map.get(S);A||this._map.set(S,A=[]),A.push(...o)}has(S){return this._map.has(S)}clear(){this._map.clear()}}const By=new RegExp(":enter","g"),g0=new RegExp(":leave","g");function vh(T,S,o,A,ee,he={},Ye={},bt,er,mr=[]){return(new o6).buildKeyframes(T,S,o,A,ee,he,Ye,bt,er,mr)}class o6{buildKeyframes(S,o,A,ee,he,Ye,bt,er,mr,Kr=[]){mr=mr||new mh;const nn=new Tf(S,o,mr,ee,he,Kr,[]);nn.options=er,nn.currentTimeline.setStyles([Ye],null,nn.errors,er),nu(this,A,nn);const vn=nn.timelines.filter(Hn=>Hn.containsAnimation());if(Object.keys(bt).length){let Hn;for(let Yn=vn.length-1;Yn>=0;Yn--){const ii=vn[Yn];if(ii.element===o){Hn=ii;break}}Hn&&!Hn.allowOnlyTimelineStyles()&&Hn.setStyles([bt],null,nn.errors,er)}return vn.length?vn.map(Hn=>Hn.buildKeyframes()):[Fd(o,[],[],[],0,0,"",!1)]}visitTrigger(S,o){}visitState(S,o){}visitTransition(S,o){}visitAnimateChild(S,o){const A=o.subInstructions.get(o.element);if(A){const ee=o.createSubContext(S.options),he=o.currentTimeline.currentTime,Ye=this._visitSubInstructions(A,ee,ee.options);he!=Ye&&o.transformIntoNewTimeline(Ye)}o.previousNode=S}visitAnimateRef(S,o){const A=o.createSubContext(S.options);A.transformIntoNewTimeline(),this.visitReference(S.animation,A),o.transformIntoNewTimeline(A.currentTimeline.currentTime),o.previousNode=S}_visitSubInstructions(S,o,A){let he=o.currentTimeline.currentTime;const Ye=null!=A.duration?Xc(A.duration):null,bt=null!=A.delay?Xc(A.delay):null;return 0!==Ye&&S.forEach(er=>{const mr=o.appendInstructionToTimeline(er,Ye,bt);he=Math.max(he,mr.duration+mr.delay)}),he}visitReference(S,o){o.updateOptions(S.options,!0),nu(this,S.animation,o),o.previousNode=S}visitSequence(S,o){const A=o.subContextCount;let ee=o;const he=S.options;if(he&&(he.params||he.delay)&&(ee=o.createSubContext(he),ee.transformIntoNewTimeline(),null!=he.delay)){6==ee.previousNode.type&&(ee.currentTimeline.snapshotCurrentStyles(),ee.previousNode=m0);const Ye=Xc(he.delay);ee.delayNextStep(Ye)}S.steps.length&&(S.steps.forEach(Ye=>nu(this,Ye,ee)),ee.currentTimeline.applyStylesToKeyframe(),ee.subContextCount>A&&ee.transformIntoNewTimeline()),o.previousNode=S}visitGroup(S,o){const A=[];let ee=o.currentTimeline.currentTime;const he=S.options&&S.options.delay?Xc(S.options.delay):0;S.steps.forEach(Ye=>{const bt=o.createSubContext(S.options);he&&bt.delayNextStep(he),nu(this,Ye,bt),ee=Math.max(ee,bt.currentTimeline.currentTime),A.push(bt.currentTimeline)}),A.forEach(Ye=>o.currentTimeline.mergeTimelineCollectedStyles(Ye)),o.transformIntoNewTimeline(ee),o.previousNode=S}_visitTiming(S,o){if(S.dynamic){const A=S.strValue;return dh(o.params?u0(A,o.params,o.errors):A,o.errors)}return{duration:S.duration,delay:S.delay,easing:S.easing}}visitAnimate(S,o){const A=o.currentAnimateTimings=this._visitTiming(S.timings,o),ee=o.currentTimeline;A.delay&&(o.incrementTime(A.delay),ee.snapshotCurrentStyles());const he=S.style;5==he.type?this.visitKeyframes(he,o):(o.incrementTime(A.duration),this.visitStyle(he,o),ee.applyStylesToKeyframe()),o.currentAnimateTimings=null,o.previousNode=S}visitStyle(S,o){const A=o.currentTimeline,ee=o.currentAnimateTimings;!ee&&A.getCurrentStyleProperties().length&&A.forwardFrame();const he=ee&&ee.easing||S.easing;S.isEmptyStep?A.applyEmptyStep(he):A.setStyles(S.styles,he,o.errors,o.options),o.previousNode=S}visitKeyframes(S,o){const A=o.currentAnimateTimings,ee=o.currentTimeline.duration,he=A.duration,bt=o.createSubContext().currentTimeline;bt.easing=A.easing,S.styles.forEach(er=>{bt.forwardTime((er.offset||0)*he),bt.setStyles(er.styles,er.easing,o.errors,o.options),bt.applyStylesToKeyframe()}),o.currentTimeline.mergeTimelineCollectedStyles(bt),o.transformIntoNewTimeline(ee+he),o.previousNode=S}visitQuery(S,o){const A=o.currentTimeline.currentTime,ee=S.options||{},he=ee.delay?Xc(ee.delay):0;he&&(6===o.previousNode.type||0==A&&o.currentTimeline.getCurrentStyleProperties().length)&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=m0);let Ye=A;const bt=o.invokeQuery(S.selector,S.originalSelector,S.limit,S.includeSelf,!!ee.optional,o.errors);o.currentQueryTotal=bt.length;let er=null;bt.forEach((mr,Kr)=>{o.currentQueryIndex=Kr;const nn=o.createSubContext(S.options,mr);he&&nn.delayNextStep(he),mr===o.element&&(er=nn.currentTimeline),nu(this,S.animation,nn),nn.currentTimeline.applyStylesToKeyframe(),Ye=Math.max(Ye,nn.currentTimeline.currentTime)}),o.currentQueryIndex=0,o.currentQueryTotal=0,o.transformIntoNewTimeline(Ye),er&&(o.currentTimeline.mergeTimelineCollectedStyles(er),o.currentTimeline.snapshotCurrentStyles()),o.previousNode=S}visitStagger(S,o){const A=o.parentContext,ee=o.currentTimeline,he=S.timings,Ye=Math.abs(he.duration),bt=Ye*(o.currentQueryTotal-1);let er=Ye*o.currentQueryIndex;switch(he.duration<0?"reverse":he.easing){case"reverse":er=bt-er;break;case"full":er=A.currentStaggerTime}const Kr=o.currentTimeline;er&&Kr.delayNextStep(er);const nn=Kr.currentTime;nu(this,S.animation,o),o.previousNode=S,A.currentStaggerTime=ee.currentTime-nn+(ee.startTime-A.currentTimeline.startTime)}}const m0={};class Tf{constructor(S,o,A,ee,he,Ye,bt,er){this._driver=S,this.element=o,this.subInstructions=A,this._enterClassName=ee,this._leaveClassName=he,this.errors=Ye,this.timelines=bt,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=m0,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=er||new Bd(this._driver,o,0),bt.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(S,o){if(!S)return;const A=S;let ee=this.options;null!=A.duration&&(ee.duration=Xc(A.duration)),null!=A.delay&&(ee.delay=Xc(A.delay));const he=A.params;if(he){let Ye=ee.params;Ye||(Ye=this.options.params={}),Object.keys(he).forEach(bt=>{(!o||!Ye.hasOwnProperty(bt))&&(Ye[bt]=u0(he[bt],Ye,this.errors))})}}_copyOptions(){const S={};if(this.options){const o=this.options.params;if(o){const A=S.params={};Object.keys(o).forEach(ee=>{A[ee]=o[ee]})}}return S}createSubContext(S=null,o,A){const ee=o||this.element,he=new Tf(this._driver,ee,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(ee,A||0));return he.previousNode=this.previousNode,he.currentAnimateTimings=this.currentAnimateTimings,he.options=this._copyOptions(),he.updateOptions(S),he.currentQueryIndex=this.currentQueryIndex,he.currentQueryTotal=this.currentQueryTotal,he.parentContext=this,this.subContextCount++,he}transformIntoNewTimeline(S){return this.previousNode=m0,this.currentTimeline=this.currentTimeline.fork(this.element,S),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(S,o,A){const ee={duration:o??S.duration,delay:this.currentTimeline.currentTime+(A??0)+S.delay,easing:""},he=new Op(this._driver,S.element,S.keyframes,S.preStyleProps,S.postStyleProps,ee,S.stretchStartingKeyframe);return this.timelines.push(he),ee}incrementTime(S){this.currentTimeline.forwardTime(this.currentTimeline.duration+S)}delayNextStep(S){S>0&&this.currentTimeline.delayNextStep(S)}invokeQuery(S,o,A,ee,he,Ye){let bt=[];if(ee&&bt.push(this.element),S.length>0){S=(S=S.replace(By,"."+this._enterClassName)).replace(g0,"."+this._leaveClassName);let mr=this._driver.query(this.element,S,1!=A);0!==A&&(mr=A<0?mr.slice(mr.length+A,mr.length):mr.slice(0,A)),bt.push(...mr)}return!he&&0==bt.length&&Ye.push(function Qb(T){return new e.vHH(3014,xs)}()),bt}}class Bd{constructor(S,o,A,ee){this._driver=S,this.element=o,this.startTime=A,this._elementTimelineStylesLookup=ee,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(o),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(o,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(S){const o=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||o?(this.forwardTime(this.currentTime+S),o&&this.snapshotCurrentStyles()):this.startTime+=S}fork(S,o){return this.applyStylesToKeyframe(),new Bd(this._driver,S,o||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(S){this.applyStylesToKeyframe(),this.duration=S,this._loadKeyframe()}_updateStyle(S,o){this._localTimelineStyles[S]=o,this._globalTimelineStyles[S]=o,this._styleSummary[S]={time:this.currentTime,value:o}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(S){S&&(this._previousKeyframe.easing=S),Object.keys(this._globalTimelineStyles).forEach(o=>{this._backFill[o]=this._globalTimelineStyles[o]||qn.l3,this._currentKeyframe[o]=qn.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(S,o,A,ee){o&&(this._previousKeyframe.easing=o);const he=ee&&ee.params||{},Ye=function Lp(T,S){const o={};let A;return T.forEach(ee=>{"*"===ee?(A=A||Object.keys(S),A.forEach(he=>{o[he]=qn.l3})):Ec(ee,!1,o)}),o}(S,this._globalTimelineStyles);Object.keys(Ye).forEach(bt=>{const er=u0(Ye[bt],he,A);this._pendingStyles[bt]=er,this._localTimelineStyles.hasOwnProperty(bt)||(this._backFill[bt]=this._globalTimelineStyles.hasOwnProperty(bt)?this._globalTimelineStyles[bt]:qn.l3),this._updateStyle(bt,er)})}applyStylesToKeyframe(){const S=this._pendingStyles,o=Object.keys(S);0!=o.length&&(this._pendingStyles={},o.forEach(A=>{this._currentKeyframe[A]=S[A]}),Object.keys(this._localTimelineStyles).forEach(A=>{this._currentKeyframe.hasOwnProperty(A)||(this._currentKeyframe[A]=this._localTimelineStyles[A])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(S=>{const o=this._localTimelineStyles[S];this._pendingStyles[S]=o,this._updateStyle(S,o)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const S=[];for(let o in this._currentKeyframe)S.push(o);return S}mergeTimelineCollectedStyles(S){Object.keys(S._styleSummary).forEach(o=>{const A=this._styleSummary[o],ee=S._styleSummary[o];(!A||ee.time>A.time)&&this._updateStyle(o,ee.value)})}buildKeyframes(){this.applyStylesToKeyframe();const S=new Set,o=new Set,A=1===this._keyframes.size&&0===this.duration;let ee=[];this._keyframes.forEach((bt,er)=>{const mr=Ec(bt,!0);Object.keys(mr).forEach(Kr=>{const nn=mr[Kr];nn==qn.k1?S.add(Kr):nn==qn.l3&&o.add(Kr)}),A||(mr.offset=er/this.duration),ee.push(mr)});const he=S.size?c0(S.values()):[],Ye=o.size?c0(o.values()):[];if(A){const bt=ee[0],er=Ld(bt);bt.offset=0,er.offset=1,ee=[bt,er]}return Fd(this.element,ee,he,Ye,this.duration,this.startTime,this.easing,!1)}}class Op extends Bd{constructor(S,o,A,ee,he,Ye,bt=!1){super(S,o,Ye.delay),this.keyframes=A,this.preStyleProps=ee,this.postStyleProps=he,this._stretchStartingKeyframe=bt,this.timings={duration:Ye.duration,delay:Ye.delay,easing:Ye.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let S=this.keyframes,{delay:o,duration:A,easing:ee}=this.timings;if(this._stretchStartingKeyframe&&o){const he=[],Ye=A+o,bt=o/Ye,er=Ec(S[0],!1);er.offset=0,he.push(er);const mr=Ec(S[0],!1);mr.offset=Rp(bt),he.push(mr);const Kr=S.length-1;for(let nn=1;nn<=Kr;nn++){let vn=Ec(S[nn],!1);vn.offset=Rp((o+vn.offset*A)/Ye),he.push(vn)}A=Ye,o=0,ee="",S=he}return Fd(this.element,S,this.preStyleProps,this.postStyleProps,A,o,ee,!0)}}function Rp(T,S=3){const o=Math.pow(10,S-1);return Math.round(T*o)/o}class v0{}class kp extends v0{normalizePropertyName(S,o){return Sp(S)}normalizeStyleValue(S,o,A,ee){let he="";const Ye=A.toString().trim();if(Hy[o]&&0!==A&&"0"!==A)if("number"==typeof A)he="px";else{const bt=A.match(/^[+-]?[\d\.]+([a-z]*)$/);bt&&0==bt[1].length&&ee.push(function Jm(T,S){return new e.vHH(3005,xs)}())}return Ye+he}}const Hy=(()=>function Ev(T){const S={};return T.forEach(o=>S[o]=!0),S}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Np(T,S,o,A,ee,he,Ye,bt,er,mr,Kr,nn,vn){return{type:0,element:T,triggerName:S,isRemovalTransition:ee,fromState:o,fromStyles:he,toState:A,toStyles:Ye,timelines:bt,queriedElements:er,preStyleProps:mr,postStyleProps:Kr,totalTime:nn,errors:vn}}const _h={};class Fp{constructor(S,o,A){this._triggerName=S,this.ast=o,this._stateStyles=A}match(S,o,A,ee){return function Vy(T,S,o,A,ee){return T.some(he=>he(S,o,A,ee))}(this.ast.matchers,S,o,A,ee)}buildStyles(S,o,A){const ee=this._stateStyles["*"],he=this._stateStyles[S],Ye=ee?ee.buildStyles(o,A):{};return he?he.buildStyles(o,A):Ye}build(S,o,A,ee,he,Ye,bt,er,mr,Kr){const nn=[],vn=this.ast.options&&this.ast.options.params||_h,Yn=this.buildStyles(A,bt&&bt.params||_h,nn),ii=er&&er.params||_h,ki=this.buildStyles(ee,ii,nn),Ls=new Set,Ws=new Map,ya=new Map,Is="void"===ee,ul={params:{...vn,...ii}},Do=Kr?[]:vh(S,o,this.ast.animation,he,Ye,Yn,ki,ul,mr,nn);let Pl=0;if(Do.forEach(qd=>{Pl=Math.max(qd.duration+qd.delay,Pl)}),nn.length)return Np(o,this._triggerName,A,ee,Is,Yn,ki,[],[],Ws,ya,Pl,nn);Do.forEach(qd=>{const Jd=qd.element,oS=ho(Ws,Jd,{});qd.preStyleProps.forEach(Nh=>oS[Nh]=!0);const am=ho(ya,Jd,{});qd.postStyleProps.forEach(Nh=>am[Nh]=!0),Jd!==o&&Ls.add(Jd)});const Kd=c0(Ls.values());return Np(o,this._triggerName,A,ee,Is,Yn,ki,Do,Kd,Ws,ya,Pl)}}class Mv{constructor(S,o,A){this.styles=S,this.defaultParams=o,this.normalizer=A}buildStyles(S,o){const A={},ee=Ld(this.defaultParams);return Object.keys(S).forEach(he=>{const Ye=S[he];null!=Ye&&(ee[he]=Ye)}),this.styles.styles.forEach(he=>{if("string"!=typeof he){const Ye=he;Object.keys(Ye).forEach(bt=>{let er=Ye[bt];er.length>1&&(er=u0(er,ee,o));const mr=this.normalizer.normalizePropertyName(bt,o);er=this.normalizer.normalizeStyleValue(bt,mr,er,o),A[mr]=er})}}),A}}class Bp{constructor(S,o,A){this.name=S,this.ast=o,this._normalizer=A,this.transitionFactories=[],this.states={},o.states.forEach(ee=>{this.states[ee.name]=new Mv(ee.style,ee.options&&ee.options.params||{},A)}),y0(this.states,"true","1"),y0(this.states,"false","0"),o.transitions.forEach(ee=>{this.transitionFactories.push(new Fp(S,ee,this.states))}),this.fallbackTransition=function _0(T,S,o){return new Fp(T,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Ye,bt)=>!0],options:null,queryCount:0,depCount:0},S)}(S,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(S,o,A,ee){return this.transitionFactories.find(Ye=>Ye.match(S,o,A,ee))||null}matchStyles(S,o,A){return this.fallbackTransition.buildStyles(S,o,A)}}function y0(T,S,o){T.hasOwnProperty(S)?T.hasOwnProperty(o)||(T[o]=T[S]):T.hasOwnProperty(o)&&(T[S]=T[o])}const xv=new mh;class Iv{constructor(S,o,A){this.bodyNode=S,this._driver=o,this._normalizer=A,this._animations={},this._playersById={},this.players=[]}register(S,o){const A=[],he=wp(this._driver,o,A,[]);if(A.length)throw function e6(T){return new e.vHH(3503,xs)}();this._animations[S]=he}_buildPlayer(S,o,A){const ee=S.element,he=av(0,this._normalizer,0,S.keyframes,o,A);return this._driver.animate(ee,he,S.duration,S.delay,S.easing,[],!0)}create(S,o,A={}){const ee=[],he=this._animations[S];let Ye;const bt=new Map;if(he?(Ye=vh(this._driver,o,he,Qc,Tc,{},{},A,xv,ee),Ye.forEach(Kr=>{const nn=ho(bt,Kr.element,{});Kr.postStyleProps.forEach(vn=>nn[vn]=null)})):(ee.push(function t6(){return new e.vHH(3300,xs)}()),Ye=[]),ee.length)throw function rv(T){return new e.vHH(3504,xs)}();bt.forEach((Kr,nn)=>{Object.keys(Kr).forEach(vn=>{Kr[vn]=this._driver.computeStyle(nn,vn,qn.l3)})});const mr=qc(Ye.map(Kr=>{const nn=bt.get(Kr.element);return this._buildPlayer(Kr,{},nn)}));return this._playersById[S]=mr,mr.onDestroy(()=>this.destroy(S)),this.players.push(mr),mr}destroy(S){const o=this._getPlayer(S);o.destroy(),delete this._playersById[S];const A=this.players.indexOf(o);A>=0&&this.players.splice(A,1)}_getPlayer(S){const o=this._playersById[S];if(!o)throw function nv(T){return new e.vHH(3301,xs)}();return o}listen(S,o,A,ee){const he=Cf(o,"","","");return mp(this._getPlayer(S),A,he,ee),()=>{}}command(S,o,A,ee){if("register"==A)return void this.register(S,ee[0]);if("create"==A)return void this.create(S,o,ee[0]||{});const he=this._getPlayer(S);switch(A){case"play":he.play();break;case"pause":he.pause();break;case"reset":he.reset();break;case"restart":he.restart();break;case"finish":he.finish();break;case"init":he.init();break;case"setPosition":he.setPosition(parseFloat(ee[0]));break;case"destroy":this.destroy(S)}}}const Up="ng-animate-queued",C0="ng-animate-disabled",Yy=[],Ov={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Rv={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},iu="__ng_removed";class ja{constructor(S,o=""){this.namespaceId=o;const A=S&&S.hasOwnProperty("value");if(this.value=function Nv(T){return T??null}(A?S.value:S),A){const he=Ld(S);delete he.value,this.options=he}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(S){const o=S.params;if(o){const A=this.options.params;Object.keys(o).forEach(ee=>{null==A[ee]&&(A[ee]=o[ee])})}}}const Ef="void",Hp=new ja(Ef);class jy{constructor(S,o,A){this.id=S,this.hostElement=o,this._engine=A,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+S,wl(o,this._hostClassName)}listen(S,o,A,ee){if(!this._triggers.hasOwnProperty(o))throw function iv(T,S){return new e.vHH(3302,xs)}();if(null==A||0==A.length)throw function Dy(T){return new e.vHH(3303,xs)}();if(!function Gy(T){return"start"==T||"done"==T}(A))throw function r6(T,S){return new e.vHH(3400,xs)}();const he=ho(this._elementListeners,S,[]),Ye={name:o,phase:A,callback:ee};he.push(Ye);const bt=ho(this._engine.statesByElement,S,{});return bt.hasOwnProperty(o)||(wl(S,uh),wl(S,uh+"-"+o),bt[o]=Hp),()=>{this._engine.afterFlush(()=>{const er=he.indexOf(Ye);er>=0&&he.splice(er,1),this._triggers[o]||delete bt[o]})}}register(S,o){return!this._triggers[S]&&(this._triggers[S]=o,!0)}_getTrigger(S){const o=this._triggers[S];if(!o)throw function sv(T){return new e.vHH(3401,xs)}();return o}trigger(S,o,A,ee=!0){const he=this._getTrigger(o),Ye=new Vp(this.id,o,S);let bt=this._engine.statesByElement.get(S);bt||(wl(S,uh),wl(S,uh+"-"+o),this._engine.statesByElement.set(S,bt={}));let er=bt[o];const mr=new ja(A,this.id);if(!(A&&A.hasOwnProperty("value"))&&er&&mr.absorbOptions(er.options),bt[o]=mr,er||(er=Hp),mr.value!==Ef&&er.value===mr.value){if(!function Wy(T,S){const o=Object.keys(T),A=Object.keys(S);if(o.length!=A.length)return!1;for(let ee=0;ee<o.length;ee++){const he=o[ee];if(!S.hasOwnProperty(he)||T[he]!==S[he])return!1}return!0}(er.params,mr.params)){const ii=[],ki=he.matchStyles(er.value,er.params,ii),Ls=he.matchStyles(mr.value,mr.params,ii);ii.length?this._engine.reportError(ii):this._engine.afterFlush(()=>{kd(S,ki),Mu(S,Ls)})}return}const vn=ho(this._engine.playersByElement,S,[]);vn.forEach(ii=>{ii.namespaceId==this.id&&ii.triggerName==o&&ii.queued&&ii.destroy()});let Hn=he.matchTransition(er.value,mr.value,S,mr.params),Yn=!1;if(!Hn){if(!ee)return;Hn=he.fallbackTransition,Yn=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:S,triggerName:o,transition:Hn,fromState:er,toState:mr,player:Ye,isFallbackTransition:Yn}),Yn||(wl(S,Up),Ye.onStart(()=>{yh(S,Up)})),Ye.onDone(()=>{let ii=this.players.indexOf(Ye);ii>=0&&this.players.splice(ii,1);const ki=this._engine.playersByElement.get(S);if(ki){let Ls=ki.indexOf(Ye);Ls>=0&&ki.splice(Ls,1)}}),this.players.push(Ye),vn.push(Ye),Ye}deregister(S){delete this._triggers[S],this._engine.statesByElement.forEach((o,A)=>{delete o[S]}),this._elementListeners.forEach((o,A)=>{this._elementListeners.set(A,o.filter(ee=>ee.name!=S))})}clearElementCache(S){this._engine.statesByElement.delete(S),this._elementListeners.delete(S);const o=this._engine.playersByElement.get(S);o&&(o.forEach(A=>A.destroy()),this._engine.playersByElement.delete(S))}_signalRemovalForInnerTriggers(S,o){const A=this._engine.driver.query(S,ch,!0);A.forEach(ee=>{if(ee[iu])return;const he=this._engine.fetchNamespacesByElement(ee);he.size?he.forEach(Ye=>Ye.triggerLeaveAnimation(ee,o,!1,!0)):this.clearElementCache(ee)}),this._engine.afterFlushAnimationsDone(()=>A.forEach(ee=>this.clearElementCache(ee)))}triggerLeaveAnimation(S,o,A,ee){const he=this._engine.statesByElement.get(S),Ye=new Map;if(he){const bt=[];if(Object.keys(he).forEach(er=>{if(Ye.set(er,he[er].value),this._triggers[er]){const mr=this.trigger(S,er,Ef,ee);mr&&bt.push(mr)}}),bt.length)return this._engine.markElementAsRemoved(this.id,S,!0,o,Ye),A&&qc(bt).onDone(()=>this._engine.processLeaveNode(S)),!0}return!1}prepareLeaveAnimationListeners(S){const o=this._elementListeners.get(S),A=this._engine.statesByElement.get(S);if(o&&A){const ee=new Set;o.forEach(he=>{const Ye=he.name;if(ee.has(Ye))return;ee.add(Ye);const er=this._triggers[Ye].fallbackTransition,mr=A[Ye]||Hp,Kr=new ja(Ef),nn=new Vp(this.id,Ye,S);this._engine.totalQueuedPlayers++,this._queue.push({element:S,triggerName:Ye,transition:er,fromState:mr,toState:Kr,player:nn,isFallbackTransition:!0})})}}removeNode(S,o){const A=this._engine;if(S.childElementCount&&this._signalRemovalForInnerTriggers(S,o),this.triggerLeaveAnimation(S,o,!0))return;let ee=!1;if(A.totalAnimations){const he=A.players.length?A.playersByQueriedElement.get(S):[];if(he&&he.length)ee=!0;else{let Ye=S;for(;Ye=Ye.parentNode;)if(A.statesByElement.get(Ye)){ee=!0;break}}}if(this.prepareLeaveAnimationListeners(S),ee)A.markElementAsRemoved(this.id,S,!1,o);else{const he=S[iu];(!he||he===Ov)&&(A.afterFlush(()=>this.clearElementCache(S)),A.destroyInnerAnimations(S),A._onRemovalComplete(S,o))}}insertNode(S,o){wl(S,this._hostClassName)}drainQueuedTransitions(S){const o=[];return this._queue.forEach(A=>{const ee=A.player;if(ee.destroyed)return;const he=A.element,Ye=this._elementListeners.get(he);Ye&&Ye.forEach(bt=>{if(bt.name==A.triggerName){const er=Cf(he,A.triggerName,A.fromState.value,A.toState.value);er._data=S,mp(A.player,bt.phase,er,bt.callback)}}),ee.markedForDestroy?this._engine.afterFlush(()=>{ee.destroy()}):o.push(A)}),this._queue=[],o.sort((A,ee)=>{const he=A.transition.ast.depCount,Ye=ee.transition.ast.depCount;return 0==he||0==Ye?he-Ye:this._engine.driver.containsElement(A.element,ee.element)?1:-1})}destroy(S){this.players.forEach(o=>o.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,S)}elementContainsData(S){let o=!1;return this._elementListeners.has(S)&&(o=!0),o=!!this._queue.find(A=>A.element===S)||o,o}}class Lv{constructor(S,o,A){this.bodyNode=S,this.driver=o,this._normalizer=A,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(ee,he)=>{}}_onRemovalComplete(S,o){this.onRemovalComplete(S,o)}get queuedPlayers(){const S=[];return this._namespaceList.forEach(o=>{o.players.forEach(A=>{A.queued&&S.push(A)})}),S}createNamespace(S,o){const A=new jy(S,o,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,o)?this._balanceNamespaceList(A,o):(this.newHostElements.set(o,A),this.collectEnterElement(o)),this._namespaceLookup[S]=A}_balanceNamespaceList(S,o){const A=this._namespaceList,ee=this.namespacesByHostElement,he=A.length-1;if(he>=0){let Ye=!1;if(void 0!==this.driver.getParentElement){let bt=this.driver.getParentElement(o);for(;bt;){const er=ee.get(bt);if(er){const mr=A.indexOf(er);A.splice(mr+1,0,S),Ye=!0;break}bt=this.driver.getParentElement(bt)}}else for(let bt=he;bt>=0;bt--)if(this.driver.containsElement(A[bt].hostElement,o)){A.splice(bt+1,0,S),Ye=!0;break}Ye||A.unshift(S)}else A.push(S);return ee.set(o,S),S}register(S,o){let A=this._namespaceLookup[S];return A||(A=this.createNamespace(S,o)),A}registerTrigger(S,o,A){let ee=this._namespaceLookup[S];ee&&ee.register(o,A)&&this.totalAnimations++}destroy(S,o){if(!S)return;const A=this._fetchNamespace(S);this.afterFlush(()=>{this.namespacesByHostElement.delete(A.hostElement),delete this._namespaceLookup[S];const ee=this._namespaceList.indexOf(A);ee>=0&&this._namespaceList.splice(ee,1)}),this.afterFlushAnimationsDone(()=>A.destroy(o))}_fetchNamespace(S){return this._namespaceLookup[S]}fetchNamespacesByElement(S){const o=new Set,A=this.statesByElement.get(S);if(A){const ee=Object.keys(A);for(let he=0;he<ee.length;he++){const Ye=A[ee[he]].namespaceId;if(Ye){const bt=this._fetchNamespace(Ye);bt&&o.add(bt)}}}return o}trigger(S,o,A,ee){if(Mc(o)){const he=this._fetchNamespace(S);if(he)return he.trigger(o,A,ee),!0}return!1}insertNode(S,o,A,ee){if(!Mc(o))return;const he=o[iu];if(he&&he.setForRemoval){he.setForRemoval=!1,he.setForMove=!0;const Ye=this.collectedLeaveElements.indexOf(o);Ye>=0&&this.collectedLeaveElements.splice(Ye,1)}if(S){const Ye=this._fetchNamespace(S);Ye&&Ye.insertNode(o,A)}ee&&this.collectEnterElement(o)}collectEnterElement(S){this.collectedEnterElements.push(S)}markElementAsDisabled(S,o){o?this.disabledNodes.has(S)||(this.disabledNodes.add(S),wl(S,C0)):this.disabledNodes.has(S)&&(this.disabledNodes.delete(S),yh(S,C0))}removeNode(S,o,A,ee){if(Mc(o)){const he=S?this._fetchNamespace(S):null;if(he?he.removeNode(o,ee):this.markElementAsRemoved(S,o,!1,ee),A){const Ye=this.namespacesByHostElement.get(o);Ye&&Ye.id!==S&&Ye.removeNode(o,ee)}}else this._onRemovalComplete(o,ee)}markElementAsRemoved(S,o,A,ee,he){this.collectedLeaveElements.push(o),o[iu]={namespaceId:S,setForRemoval:ee,hasAnimation:A,removedBeforeQueried:!1,previousTriggersValues:he}}listen(S,o,A,ee,he){return Mc(o)?this._fetchNamespace(S).listen(o,A,ee,he):()=>{}}_buildInstruction(S,o,A,ee,he){return S.transition.build(this.driver,S.element,S.fromState.value,S.toState.value,A,ee,S.fromState.options,S.toState.options,o,he)}destroyInnerAnimations(S){let o=this.driver.query(S,ch,!0);o.forEach(A=>this.destroyActiveAnimationsForElement(A)),0!=this.playersByQueriedElement.size&&(o=this.driver.query(S,o0,!0),o.forEach(A=>this.finishActiveQueriedAnimationOnElement(A)))}destroyActiveAnimationsForElement(S){const o=this.playersByElement.get(S);o&&o.forEach(A=>{A.queued?A.markedForDestroy=!0:A.destroy()})}finishActiveQueriedAnimationOnElement(S){const o=this.playersByQueriedElement.get(S);o&&o.forEach(A=>A.finish())}whenRenderingDone(){return new Promise(S=>{if(this.players.length)return qc(this.players).onDone(()=>S());S()})}processLeaveNode(S){const o=S[iu];if(o&&o.setForRemoval){if(S[iu]=Ov,o.namespaceId){this.destroyInnerAnimations(S);const A=this._fetchNamespace(o.namespaceId);A&&A.clearElementCache(S)}this._onRemovalComplete(S,o.setForRemoval)}S.classList?.contains(C0)&&this.markElementAsDisabled(S,!1),this.driver.query(S,".ng-animate-disabled",!0).forEach(A=>{this.markElementAsDisabled(A,!1)})}flush(S=-1){let o=[];if(this.newHostElements.size&&(this.newHostElements.forEach((A,ee)=>this._balanceNamespaceList(A,ee)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let A=0;A<this.collectedEnterElements.length;A++)wl(this.collectedEnterElements[A],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const A=[];try{o=this._flushAnimations(A,S)}finally{for(let ee=0;ee<A.length;ee++)A[ee]()}}else for(let A=0;A<this.collectedLeaveElements.length;A++)this.processLeaveNode(this.collectedLeaveElements[A]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(A=>A()),this._flushFns=[],this._whenQuietFns.length){const A=this._whenQuietFns;this._whenQuietFns=[],o.length?qc(o).onDone(()=>{A.forEach(ee=>ee())}):A.forEach(ee=>ee())}}reportError(S){throw function hp(T){return new e.vHH(3402,xs)}()}_flushAnimations(S,o){const A=new mh,ee=[],he=new Map,Ye=[],bt=new Map,er=new Map,mr=new Map,Kr=new Set;this.disabledNodes.forEach(Ei=>{Kr.add(Ei);const Ni=this.driver.query(Ei,".ng-animate-queued",!0);for(let zi=0;zi<Ni.length;zi++)Kr.add(Ni[zi])});const nn=this.bodyNode,vn=Array.from(this.statesByElement.keys()),Hn=Bv(vn,this.collectedEnterElements),Yn=new Map;let ii=0;Hn.forEach((Ei,Ni)=>{const zi=Qc+ii++;Yn.set(Ni,zi),Ei.forEach(Bs=>wl(Bs,zi))});const ki=[],Ls=new Set,Ws=new Set;for(let Ei=0;Ei<this.collectedLeaveElements.length;Ei++){const Ni=this.collectedLeaveElements[Ei],zi=Ni[iu];zi&&zi.setForRemoval&&(ki.push(Ni),Ls.add(Ni),zi.hasAnimation?this.driver.query(Ni,".ng-star-inserted",!0).forEach(Bs=>Ls.add(Bs)):Ws.add(Ni))}const ya=new Map,Is=Bv(vn,Array.from(Ls));Is.forEach((Ei,Ni)=>{const zi=Tc+ii++;ya.set(Ni,zi),Ei.forEach(Bs=>wl(Bs,zi))}),S.push(()=>{Hn.forEach((Ei,Ni)=>{const zi=Yn.get(Ni);Ei.forEach(Bs=>yh(Bs,zi))}),Is.forEach((Ei,Ni)=>{const zi=ya.get(Ni);Ei.forEach(Bs=>yh(Bs,zi))}),ki.forEach(Ei=>{this.processLeaveNode(Ei)})});const ul=[],Do=[];for(let Ei=this._namespaceList.length-1;Ei>=0;Ei--)this._namespaceList[Ei].drainQueuedTransitions(o).forEach(zi=>{const Bs=zi.player,Po=zi.element;if(ul.push(Bs),this.collectedEnterElements.length){const Ol=Po[iu];if(Ol&&Ol.setForMove){if(Ol.previousTriggersValues&&Ol.previousTriggersValues.has(zi.triggerName)){const Fh=Ol.previousTriggersValues.get(zi.triggerName),Bf=this.statesByElement.get(zi.element);Bf&&Bf[zi.triggerName]&&(Bf[zi.triggerName].value=Fh)}return void Bs.destroy()}}const sd=!nn||!this.driver.containsElement(nn,Po),Du=ya.get(Po),Ff=Yn.get(Po),Wa=this._buildInstruction(zi,A,Ff,Du,sd);if(Wa.errors&&Wa.errors.length)return void Do.push(Wa);if(sd)return Bs.onStart(()=>kd(Po,Wa.fromStyles)),Bs.onDestroy(()=>Mu(Po,Wa.toStyles)),void ee.push(Bs);if(zi.isFallbackTransition)return Bs.onStart(()=>kd(Po,Wa.fromStyles)),Bs.onDestroy(()=>Mu(Po,Wa.toStyles)),void ee.push(Bs);const cS=[];Wa.timelines.forEach(Ol=>{Ol.stretchStartingKeyframe=!0,this.disabledNodes.has(Ol.element)||cS.push(Ol)}),Wa.timelines=cS,A.append(Po,Wa.timelines),Ye.push({instruction:Wa,player:Bs,element:Po}),Wa.queriedElements.forEach(Ol=>ho(bt,Ol,[]).push(Bs)),Wa.preStyleProps.forEach((Ol,Fh)=>{const Bf=Object.keys(Ol);if(Bf.length){let Bh=er.get(Fh);Bh||er.set(Fh,Bh=new Set),Bf.forEach(Ub=>Bh.add(Ub))}}),Wa.postStyleProps.forEach((Ol,Fh)=>{const Bf=Object.keys(Ol);let Bh=mr.get(Fh);Bh||mr.set(Fh,Bh=new Set),Bf.forEach(Ub=>Bh.add(Ub))})});if(Do.length){const Ei=[];Do.forEach(Ni=>{Ei.push(function pp(T,S){return new e.vHH(3505,xs)}())}),ul.forEach(Ni=>Ni.destroy()),this.reportError(Ei)}const Pl=new Map,Kd=new Map;Ye.forEach(Ei=>{const Ni=Ei.element;A.has(Ni)&&(Kd.set(Ni,Ni),this._beforeAnimationBuild(Ei.player.namespaceId,Ei.instruction,Pl))}),ee.forEach(Ei=>{const Ni=Ei.element;this._getPreviousPlayers(Ni,!1,Ei.namespaceId,Ei.triggerName,null).forEach(Bs=>{ho(Pl,Ni,[]).push(Bs),Bs.destroy()})});const qd=ki.filter(Ei=>Wp(Ei,er,mr)),Jd=new Map;Yp(Jd,this.driver,Ws,mr,qn.l3).forEach(Ei=>{Wp(Ei,er,mr)&&qd.push(Ei)});const am=new Map;Hn.forEach((Ei,Ni)=>{Yp(am,this.driver,new Set(Ei),er,qn.k1)}),qd.forEach(Ei=>{const Ni=Jd.get(Ei),zi=am.get(Ei);Jd.set(Ei,{...Ni,...zi})});const Nh=[],lS=[],uS={};Ye.forEach(Ei=>{const{element:Ni,player:zi,instruction:Bs}=Ei;if(A.has(Ni)){if(Kr.has(Ni))return zi.onDestroy(()=>Mu(Ni,Bs.toStyles)),zi.disabled=!0,zi.overrideTotalTime(Bs.totalTime),void ee.push(zi);let Po=uS;if(Kd.size>1){let Du=Ni;const Ff=[];for(;Du=Du.parentNode;){const Wa=Kd.get(Du);if(Wa){Po=Wa;break}Ff.push(Du)}Ff.forEach(Wa=>Kd.set(Wa,Po))}const sd=this._buildAnimation(zi.namespaceId,Bs,Pl,he,am,Jd);if(zi.setRealPlayer(sd),Po===uS)Nh.push(zi);else{const Du=this.playersByElement.get(Po);Du&&Du.length&&(zi.parentPlayer=qc(Du)),ee.push(zi)}}else kd(Ni,Bs.fromStyles),zi.onDestroy(()=>Mu(Ni,Bs.toStyles)),lS.push(zi),Kr.has(Ni)&&ee.push(zi)}),lS.forEach(Ei=>{const Ni=he.get(Ei.element);if(Ni&&Ni.length){const zi=qc(Ni);Ei.setRealPlayer(zi)}}),ee.forEach(Ei=>{Ei.parentPlayer?Ei.syncPlayerEvents(Ei.parentPlayer):Ei.destroy()});for(let Ei=0;Ei<ki.length;Ei++){const Ni=ki[Ei],zi=Ni[iu];if(yh(Ni,Tc),zi&&zi.hasAnimation)continue;let Bs=[];if(bt.size){let sd=bt.get(Ni);sd&&sd.length&&Bs.push(...sd);let Du=this.driver.query(Ni,o0,!0);for(let Ff=0;Ff<Du.length;Ff++){let Wa=bt.get(Du[Ff]);Wa&&Wa.length&&Bs.push(...Wa)}}const Po=Bs.filter(sd=>!sd.destroyed);Po.length?jp(this,Ni,Po):this.processLeaveNode(Ni)}return ki.length=0,Nh.forEach(Ei=>{this.players.push(Ei),Ei.onDone(()=>{Ei.destroy();const Ni=this.players.indexOf(Ei);this.players.splice(Ni,1)}),Ei.play()}),Nh}elementContainsData(S,o){let A=!1;const ee=o[iu];return ee&&ee.setForRemoval&&(A=!0),this.playersByElement.has(o)&&(A=!0),this.playersByQueriedElement.has(o)&&(A=!0),this.statesByElement.has(o)&&(A=!0),this._fetchNamespace(S).elementContainsData(o)||A}afterFlush(S){this._flushFns.push(S)}afterFlushAnimationsDone(S){this._whenQuietFns.push(S)}_getPreviousPlayers(S,o,A,ee,he){let Ye=[];if(o){const bt=this.playersByQueriedElement.get(S);bt&&(Ye=bt)}else{const bt=this.playersByElement.get(S);if(bt){const er=!he||he==Ef;bt.forEach(mr=>{mr.queued||!er&&mr.triggerName!=ee||Ye.push(mr)})}}return(A||ee)&&(Ye=Ye.filter(bt=>!(A&&A!=bt.namespaceId||ee&&ee!=bt.triggerName))),Ye}_beforeAnimationBuild(S,o,A){const he=o.element,Ye=o.isRemovalTransition?void 0:S,bt=o.isRemovalTransition?void 0:o.triggerName;for(const er of o.timelines){const mr=er.element,Kr=mr!==he,nn=ho(A,mr,[]);this._getPreviousPlayers(mr,Kr,Ye,bt,o.toState).forEach(Hn=>{const Yn=Hn.getRealPlayer();Yn.beforeDestroy&&Yn.beforeDestroy(),Hn.destroy(),nn.push(Hn)})}kd(he,o.fromStyles)}_buildAnimation(S,o,A,ee,he,Ye){const bt=o.triggerName,er=o.element,mr=[],Kr=new Set,nn=new Set,vn=o.timelines.map(Yn=>{const ii=Yn.element;Kr.add(ii);const ki=ii[iu];if(ki&&ki.removedBeforeQueried)return new qn.ZN(Yn.duration,Yn.delay);const Ls=ii!==er,Ws=function Gp(T){const S=[];return su(T,S),S}((A.get(ii)||Yy).map(Pl=>Pl.getRealPlayer())).filter(Pl=>!!Pl.element&&Pl.element===ii),ya=he.get(ii),Is=Ye.get(ii),ul=av(0,this._normalizer,0,Yn.keyframes,ya,Is),Do=this._buildPlayer(Yn,ul,Ws);if(Yn.subTimeline&&ee&&nn.add(ii),Ls){const Pl=new Vp(S,bt,ii);Pl.setRealPlayer(Do),mr.push(Pl)}return Do});mr.forEach(Yn=>{ho(this.playersByQueriedElement,Yn.element,[]).push(Yn),Yn.onDone(()=>function kv(T,S,o){let A;if(T instanceof Map){if(A=T.get(S),A){if(A.length){const ee=A.indexOf(o);A.splice(ee,1)}0==A.length&&T.delete(S)}}else if(A=T[S],A){if(A.length){const ee=A.indexOf(o);A.splice(ee,1)}0==A.length&&delete T[S]}return A}(this.playersByQueriedElement,Yn.element,Yn))}),Kr.forEach(Yn=>wl(Yn,_p));const Hn=qc(vn);return Hn.onDestroy(()=>{Kr.forEach(Yn=>yh(Yn,_p)),Mu(er,o.toStyles)}),nn.forEach(Yn=>{ho(ee,Yn,[]).push(Hn)}),Hn}_buildPlayer(S,o,A){return o.length>0?this.driver.animate(S.element,o,S.duration,S.delay,S.easing,A):new qn.ZN(S.duration,S.delay)}}class Vp{constructor(S,o,A){this.namespaceId=S,this.triggerName=o,this.element=A,this._player=new qn.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(S){this._containsRealPlayer||(this._player=S,Object.keys(this._queuedCallbacks).forEach(o=>{this._queuedCallbacks[o].forEach(A=>mp(S,o,void 0,A))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(S.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(S){this.totalTime=S}syncPlayerEvents(S){const o=this._player;o.triggerCallback&&S.onStart(()=>o.triggerCallback("start")),S.onDone(()=>this.finish()),S.onDestroy(()=>this.destroy())}_queueEvent(S,o){ho(this._queuedCallbacks,S,[]).push(o)}onDone(S){this.queued&&this._queueEvent("done",S),this._player.onDone(S)}onStart(S){this.queued&&this._queueEvent("start",S),this._player.onStart(S)}onDestroy(S){this.queued&&this._queueEvent("destroy",S),this._player.onDestroy(S)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(S){this.queued||this._player.setPosition(S)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(S){const o=this._player;o.triggerCallback&&o.triggerCallback(S)}}function Mc(T){return T&&1===T.nodeType}function Fv(T,S){const o=T.style.display;return T.style.display=S??"none",o}function Yp(T,S,o,A,ee){const he=[];o.forEach(er=>he.push(Fv(er)));const Ye=[];A.forEach((er,mr)=>{const Kr={};er.forEach(nn=>{const vn=Kr[nn]=S.computeStyle(mr,nn,ee);(!vn||0==vn.length)&&(mr[iu]=Rv,Ye.push(mr))}),T.set(mr,Kr)});let bt=0;return o.forEach(er=>Fv(er,he[bt++])),Ye}function Bv(T,S){const o=new Map;if(T.forEach(bt=>o.set(bt,[])),0==S.length)return o;const ee=new Set(S),he=new Map;function Ye(bt){if(!bt)return 1;let er=he.get(bt);if(er)return er;const mr=bt.parentNode;return er=o.has(mr)?mr:ee.has(mr)?1:Ye(mr),he.set(bt,er),er}return S.forEach(bt=>{const er=Ye(bt);1!==er&&o.get(er).push(bt)}),o}function wl(T,S){T.classList?.add(S)}function yh(T,S){T.classList?.remove(S)}function jp(T,S,o){qc(o).onDone(()=>T.processLeaveNode(S))}function su(T,S){for(let o=0;o<T.length;o++){const A=T[o];A instanceof qn.ZE?su(A.players,S):S.push(A)}}function Wp(T,S,o){const A=o.get(T);if(!A)return!1;let ee=S.get(T);return ee?A.forEach(he=>ee.add(he)):S.set(T,A),o.delete(T),!0}class xl{constructor(S,o,A){this.bodyNode=S,this._driver=o,this._normalizer=A,this._triggerCache={},this.onRemovalComplete=(ee,he)=>{},this._transitionEngine=new Lv(S,o,A),this._timelineEngine=new Iv(S,o,A),this._transitionEngine.onRemovalComplete=(ee,he)=>this.onRemovalComplete(ee,he)}registerTrigger(S,o,A,ee,he){const Ye=S+"-"+ee;let bt=this._triggerCache[Ye];if(!bt){const er=[],Kr=wp(this._driver,he,er,[]);if(er.length)throw function Xb(T,S){return new e.vHH(3404,xs)}();bt=function wv(T,S,o){return new Bp(T,S,o)}(ee,Kr,this._normalizer),this._triggerCache[Ye]=bt}this._transitionEngine.registerTrigger(o,ee,bt)}register(S,o){this._transitionEngine.register(S,o)}destroy(S,o){this._transitionEngine.destroy(S,o)}onInsert(S,o,A,ee){this._transitionEngine.insertNode(S,o,A,ee)}onRemove(S,o,A,ee){this._transitionEngine.removeNode(S,o,ee||!1,A)}disableAnimations(S,o){this._transitionEngine.markElementAsDisabled(S,o)}process(S,o,A,ee){if("@"==A.charAt(0)){const[he,Ye]=ov(A);this._timelineEngine.command(he,o,Ye,ee)}else this._transitionEngine.trigger(S,o,A,ee)}listen(S,o,A,ee,he){if("@"==A.charAt(0)){const[Ye,bt]=ov(A);return this._timelineEngine.listen(Ye,o,bt,he)}return this._transitionEngine.listen(S,o,A,ee,he)}flush(S=-1){this._transitionEngine.flush(S)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let xu=(()=>{class T{constructor(o,A,ee){this._element=o,this._startStyles=A,this._endStyles=ee,this._state=0;let he=T.initialStylesByElement.get(o);he||T.initialStylesByElement.set(o,he={}),this._initialStyles=he}start(){this._state<1&&(this._startStyles&&Mu(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Mu(this._element,this._initialStyles),this._endStyles&&(Mu(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(T.initialStylesByElement.delete(this._element),this._startStyles&&(kd(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(kd(this._element,this._endStyles),this._endStyles=null),Mu(this._element,this._initialStyles),this._state=3)}}return T.initialStylesByElement=new WeakMap,T})();function b0(T){let S=null;const o=Object.keys(T);for(let A=0;A<o.length;A++){const ee=o[A];Uv(ee)&&(S=S||{},S[ee]=T[ee])}return S}function Uv(T){return"display"===T||"position"===T}class Hv{constructor(S,o,A,ee){this.element=S,this.keyframes=o,this.options=A,this._specialStyles=ee,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=A.duration,this._delay=A.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(S=>S()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const S=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,S,this.options),this._finalKeyframe=S.length?S[S.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(S,o,A){return S.animate(o,A)}onStart(S){this._onStartFns.push(S)}onDone(S){this._onDoneFns.push(S)}onDestroy(S){this._onDestroyFns.push(S)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(S=>S()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(S=>S()),this._onDestroyFns=[])}setPosition(S){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=S*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const S={};if(this.hasStarted()){const o=this._finalKeyframe;Object.keys(o).forEach(A=>{"offset"!=A&&(S[A]=this._finished?o[A]:Ry(this.element,A))})}this.currentSnapshot=S}triggerCallback(S){const o="start"==S?this._onStartFns:this._onDoneFns;o.forEach(A=>A()),o.length=0}}class Zy{validateStyleProperty(S){return oh(S)}matchesElement(S,o){return!1}containsElement(S,o){return a0(S,o)}getParentElement(S){return sh(S)}query(S,o,A){return Pd(S,o,A)}computeStyle(S,o,A){return window.getComputedStyle(S)[o]}animate(S,o,A,ee,he,Ye=[]){const er={duration:A,delay:ee,fill:0==ee?"both":"forwards"};he&&(er.easing=he);const mr={},Kr=Ye.filter(vn=>vn instanceof Hv);(function Ep(T,S){return 0===T||0===S})(A,ee)&&Kr.forEach(vn=>{let Hn=vn.currentSnapshot;Object.keys(Hn).forEach(Yn=>mr[Yn]=Hn[Yn])}),o=function Oy(T,S,o){const A=Object.keys(o);if(A.length&&S.length){let he=S[0],Ye=[];if(A.forEach(bt=>{he.hasOwnProperty(bt)||Ye.push(bt),he[bt]=o[bt]}),Ye.length)for(var ee=1;ee<S.length;ee++){let bt=S[ee];Ye.forEach(function(er){bt[er]=Ry(T,er)})}}return S}(S,o=o.map(vn=>Ec(vn,!1)),mr);const nn=function wu(T,S){let o=null,A=null;return Array.isArray(S)&&S.length?(o=b0(S[0]),S.length>1&&(A=b0(S[S.length-1]))):S&&(o=b0(S)),o||A?new xu(T,o,A):null}(S,o);return new Hv(S,o,er,nn)}}let zy=(()=>{class T extends qn._j{constructor(o,A){super(),this._nextAnimationId=0,this._renderer=o.createRenderer(A.body,{id:"0",encapsulation:e.ifc.None,styles:[],data:{animation:[]}})}build(o){const A=this._nextAnimationId.toString();this._nextAnimationId++;const ee=Array.isArray(o)?(0,qn.vP)(o):o;return Mf(this._renderer,null,A,"register",[ee]),new Ky(A,this._renderer)}}return T.\u0275fac=function(o){return new(o||T)(e.LFG(e.FYo),e.LFG(G.K0))},T.\u0275prov=e.Yz7({token:T,factory:T.\u0275fac}),T})();class Ky extends qn.LC{constructor(S,o){super(),this._id=S,this._renderer=o}create(S,o){return new Zp(this._id,S,o||{},this._renderer)}}class Zp{constructor(S,o,A,ee){this.id=S,this.element=o,this._renderer=ee,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",A)}_listen(S,o){return this._renderer.listen(this.element,`@@${this.id}:${S}`,o)}_command(S,...o){return Mf(this._renderer,this.element,this.id,S,o)}onDone(S){this._listen("done",S)}onStart(S){this._listen("start",S)}onDestroy(S){this._listen("destroy",S)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(S){this._command("setPosition",S)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function Mf(T,S,o,A,ee){return T.setProperty(S,`@@${o}:${A}`,ee)}const zp="@.disabled";let qy=(()=>{class T{constructor(o,A,ee){this.delegate=o,this.engine=A,this._zone=ee,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),A.onRemovalComplete=(he,Ye)=>{const bt=Ye?.parentNode(he);bt&&Ye.removeChild(bt,he)}}createRenderer(o,A){const he=this.delegate.createRenderer(o,A);if(!(o&&A&&A.data&&A.data.animation)){let Kr=this._rendererCache.get(he);return Kr||(Kr=new Kp("",he,this.engine),this._rendererCache.set(he,Kr)),Kr}const Ye=A.id,bt=A.id+"-"+this._currentId;this._currentId++,this.engine.register(bt,o);const er=Kr=>{Array.isArray(Kr)?Kr.forEach(er):this.engine.registerTrigger(Ye,bt,o,Kr.name,Kr)};return A.data.animation.forEach(er),new Vv(this,bt,he,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(o,A,ee){o>=0&&o<this._microtaskId?this._zone.run(()=>A(ee)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(he=>{const[Ye,bt]=he;Ye(bt)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([A,ee]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return T.\u0275fac=function(o){return new(o||T)(e.LFG(e.FYo),e.LFG(xl),e.LFG(e.R0b))},T.\u0275prov=e.Yz7({token:T,factory:T.\u0275fac}),T})();class Kp{constructor(S,o,A){this.namespaceId=S,this.delegate=o,this.engine=A,this.destroyNode=this.delegate.destroyNode?ee=>o.destroyNode(ee):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(S,o){return this.delegate.createElement(S,o)}createComment(S){return this.delegate.createComment(S)}createText(S){return this.delegate.createText(S)}appendChild(S,o){this.delegate.appendChild(S,o),this.engine.onInsert(this.namespaceId,o,S,!1)}insertBefore(S,o,A,ee=!0){this.delegate.insertBefore(S,o,A),this.engine.onInsert(this.namespaceId,o,S,ee)}removeChild(S,o,A){this.engine.onRemove(this.namespaceId,o,this.delegate,A)}selectRootElement(S,o){return this.delegate.selectRootElement(S,o)}parentNode(S){return this.delegate.parentNode(S)}nextSibling(S){return this.delegate.nextSibling(S)}setAttribute(S,o,A,ee){this.delegate.setAttribute(S,o,A,ee)}removeAttribute(S,o,A){this.delegate.removeAttribute(S,o,A)}addClass(S,o){this.delegate.addClass(S,o)}removeClass(S,o){this.delegate.removeClass(S,o)}setStyle(S,o,A,ee){this.delegate.setStyle(S,o,A,ee)}removeStyle(S,o,A){this.delegate.removeStyle(S,o,A)}setProperty(S,o,A){"@"==o.charAt(0)&&o==zp?this.disableAnimations(S,!!A):this.delegate.setProperty(S,o,A)}setValue(S,o){this.delegate.setValue(S,o)}listen(S,o,A){return this.delegate.listen(S,o,A)}disableAnimations(S,o){this.engine.disableAnimations(S,o)}}class Vv extends Kp{constructor(S,o,A,ee){super(o,A,ee),this.factory=S,this.namespaceId=o}setProperty(S,o,A){"@"==o.charAt(0)?"."==o.charAt(1)&&o==zp?this.disableAnimations(S,A=void 0===A||!!A):this.engine.process(this.namespaceId,S,o.substr(1),A):this.delegate.setProperty(S,o,A)}listen(S,o,A){if("@"==o.charAt(0)){const ee=function T0(T){switch(T){case"body":return document.body;case"document":return document;case"window":return window;default:return T}}(S);let he=o.substr(1),Ye="";return"@"!=he.charAt(0)&&([he,Ye]=function Jy(T){const S=T.indexOf(".");return[T.substring(0,S),T.substr(S+1)]}(he)),this.engine.listen(this.namespaceId,ee,he,Ye,bt=>{this.factory.scheduleListenerCallback(bt._data||-1,A,bt)})}return this.delegate.listen(S,o,A)}}let Yv=(()=>{class T extends xl{constructor(o,A,ee){super(o.body,A,ee)}ngOnDestroy(){this.flush()}}return T.\u0275fac=function(o){return new(o||T)(e.LFG(G.K0),e.LFG($c),e.LFG(v0))},T.\u0275prov=e.Yz7({token:T,factory:T.\u0275fac}),T})();const Ch=new e.OlP("AnimationModuleType"),E0=[{provide:qn._j,useClass:zy},{provide:v0,useFactory:function jv(){return new kp}},{provide:xl,useClass:Yv},{provide:e.FYo,useFactory:function qp(T,S,o){return new qy(T,S,o)},deps:[t.se,xl,e.R0b]}],M0=[{provide:$c,useFactory:()=>new Zy},{provide:Ch,useValue:"BrowserAnimations"},...E0],Jp=[{provide:$c,useClass:Od},{provide:Ch,useValue:"NoopAnimations"},...E0];let Gv=(()=>{class T{static withConfig(o){return{ngModule:T,providers:o.disableAnimations?Jp:M0}}}return T.\u0275fac=function(o){return new(o||T)},T.\u0275mod=e.oAB({type:T}),T.\u0275inj=e.cJS({providers:M0,imports:[t.b2]}),T})();var Yo=n(13861),$p=n(51848),Wv=n(43904),Qp=n(75275),Zv=n(90534),jo=n(8479);let Qy=(()=>{class T extends t.hm{constructor(){super(...arguments),this.overrides={swipe:{direction:l.DIRECTION_HORIZONTAL},pinch:{enable:!1},rotate:{enable:!1}}}}return T.\u0275fac=function(){let S;return function(A){return(S||(S=e.n5z(T)))(A||T)}}(),T.\u0275prov=e.Yz7({token:T,factory:T.\u0275fac}),T})();var Li=n(46389),$i=n(64423);function Xy(T,S){1&T&&(e.TgZ(0,"a",9),e._uU(1,"\u0645\u0634\u0627\u0647\u062f\u0647 \u0647\u0645\u06cc\u0646 \u0635\u0641\u062d\u0647 \u0631\u0648\u06cc sandbox"),e.qZA())}function e2(T,S){1&T&&(e.TgZ(0,"a",10),e._uU(1,"\u0645\u0634\u0627\u0647\u062f\u0647 \u0647\u0645\u06cc\u0646 \u0635\u0641\u062d\u0647 \u0631\u0648\u06cc \u0646\u0633\u062e\u0647 \u0627\u0635\u0644\u06cc"),e.qZA())}let t2=(()=>{class T{constructor(){this.isProduction=jo.NZ.production}}return T.\u0275fac=function(o){return new(o||T)},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-chat-quality-test"]],decls:45,vars:2,consts:[[2,"text-align","center","margin-top","20px"],["target","_blank","href","/assets/images/podchat.png"],["src","/assets/images/podchat.png","alt","Podchat Document Image...",2,"max-width","50%","border","2px solid #000"],["target","_blank","href","https://talk.pod.ir/",2,"color","#a84300"],["target","_blank","href","https://mvnrepository.com/artifact/com.fanap.chat/podchat",2,"color","#000"],["target","_blank","href","https://www.npmjs.com/package/podchat",2,"color","#000"],["target","_blank","href","https://docs.pod.ir/v0.6.1.0/Chat/javascript",2,"color","#000"],["style","color:red;","target","_blank","href","https://staging.wepod.ir/fa/chat-quality-test",4,"ngIf"],["style","color:red;","target","_blank","href","https://web.wepod.ir/fa/chat-quality-test",4,"ngIf"],["target","_blank","href","https://staging.wepod.ir/fa/chat-quality-test",2,"color","red"],["target","_blank","href","https://web.wepod.ir/fa/chat-quality-test",2,"color","red"]],template:function(o,A){1&o&&(e.TgZ(0,"div",0),e._uU(1," \u062a\u0646\u0647\u0627 \u06a9\u062f\u06cc \u06a9\u0647 \u062f\u0631 \u0627\u06cc\u0646 \u0635\u0641\u062d\u0647 \u0635\u062f\u0627 \u0632\u062f\u0647 \u0634\u062f\u0647 \u062a\u06a9\u0647 \u06a9\u062f \u0632\u06cc\u0631 \u0627\u0633\u062a:"),e._UZ(2,"br"),e.TgZ(3,"a",1),e._UZ(4,"img",2),e.qZA(),e._UZ(5,"br")(6,"br"),e._uU(7," \u0644\u0637\u0641\u0627 \u0628\u0627 \u0632\u062f\u0646 \u062f\u06a9\u0645\u0647 F12 \u06a9\u0646\u0633\u0648\u0644 \u0631\u0627 \u0628\u0627\u0632 \u0646\u0645\u0648\u062f\u0647 \u0648 \u062a\u0628 Console \u0631\u0627 \u0645\u0634\u0627\u0647\u062f\u0647 \u0646\u0645\u0627\u06cc\u06cc\u062f. "),e._UZ(8,"br"),e._uU(9," \u0648 \u062f\u0646\u0628\u0627\u0644 \u0645\u0634\u0627\u0647\u062f\u0647 \u067e\u06cc\u0627\u0645 Async is Ready \u0648 \u067e\u06cc\u0627\u0645 Chat Ready \u0628\u0627\u0634\u06cc\u062f. "),e._UZ(10,"br")(11,"br"),e._uU(12," \u0633\u067e\u0633 \u06a9\u0646\u0633\u0648\u0644 \u0627\u06cc\u0646 \u0635\u0641\u062d\u0647 \u0631\u0627 \u0628\u0627 "),e._UZ(13,"br"),e.TgZ(14,"a",3),e._uU(15," >>>>>> \u067e\u0627\u062f <<<<<< "),e.qZA(),e._UZ(16,"br"),e._uU(17," \u0645\u0642\u0627\u06cc\u0633\u0647 \u0646\u0645\u0627\u06cc\u06cc\u062f. "),e._UZ(18,"br")(19,"br")(20,"br")(21,"br")(22,"hr"),e._uU(23," \u0627\u062a\u0641\u0627\u0642\u06cc \u06a9\u0647 \u062f\u0631 \u0627\u06cc\u0646 \u0635\u0641\u062d\u0647 \u0645\u06cc\u200c\u0627\u0641\u062a\u062f \u0628\u0627 \u0646\u0633\u062e\u0647\u200c\u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 \u06f4 \u0648 \u06f5 \u0648 \u06f9 \u0627\u0632 \u0641\u0647\u0631\u0633\u062a \u0645\u0648\u062c\u0648\u062f \u062f\u0631 \u0644\u06cc\u0646\u06a9\u200c\u0647\u0627\u06cc \u0632\u06cc\u0631 \u0622\u0632\u0645\u0627\u06cc\u0634 \u0634\u062f\u0647 \u0627\u0633\u062a "),e._UZ(24,"br"),e.TgZ(25,"a",4),e._uU(26,"\u0644\u06cc\u0646\u06a9 \u0628\u0647 \u0648\u0631\u0698\u0646\u200c\u0647\u0627\u06cc \u067e\u0627\u062f \u0631\u0648\u06cc maven"),e.qZA(),e._UZ(27,"br")(28,"br"),e.TgZ(29,"a",5),e._uU(30,"\u0644\u06cc\u0646\u06a9 \u0628\u0647 \u0648\u0631\u0698\u0646\u200c\u0647\u0627\u06cc \u067e\u0627\u062f \u0631\u0648\u06cc npm"),e.qZA(),e._UZ(31,"br")(32,"br"),e.TgZ(33,"a",6),e._uU(34,"\u0644\u06cc\u0646\u06a9 \u0628\u0647 \u0645\u0633\u062a\u0646\u062f\u0627\u062a \u0686\u062a \u067e\u0627\u062f"),e.qZA(),e._UZ(35,"br")(36,"br"),e.YNc(37,Xy,2,0,"a",7),e.YNc(38,e2,2,0,"a",8),e._UZ(39,"br")(40,"br")(41,"br")(42,"br")(43,"br")(44,"br"),e.qZA()),2&o&&(e.xp6(37),e.Q6J("ngIf",A.isProduction),e.xp6(1),e.Q6J("ngIf",!A.isProduction))},directives:[G.O5],encapsulation:2}),T})();var js=n(77743),zv=n(46848),Il=n(56751),ua=n(11213);let Ud=(()=>{class T{constructor(o,A,ee,he,Ye){this.activatedRoute=o,this.thirdPartyService=A,this.chatDataPassingService=ee,this.router=he,this.routingAppService=Ye}ngOnInit(){var o=this;this.activatedRoute.queryParams.subscribe(function(){var A=(0,Qe.Z)(function*(ee){ee.contractId?(o.router.url.includes("micro-loan")&&(yield o.routingAppService.navigate(["services/loan/micro-facilities/contract/"+ee.contractId])),o.router.url.includes("expense-credit")&&(yield o.routingAppService.navigate(["services/loan/expense-credit/contract/"+ee.contractId])),o.router.url.includes("income-received")&&(yield o.routingAppService.navigate(["services/loan/income-received/"+ee.contractId])),o.router.url.includes("landing-dynamic")&&(yield o.routingAppService.navigate(["services/loan/landing-dynamic/"+ee.contractId])),o.router.url.includes("credit-card")&&(yield o.routingAppService.navigate(["services/loan/digital-expense-credit/contract/"+ee.contractId]))):o.router.url.includes("support-ticket")?yield o.routingAppService.navigate(["services/services-dynamic"],{queryParams:{tag:"SUPPORT",title:"\u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc"},state:{deeplink:"support-ticket"},replaceUrl:!0}):o.router.url.includes("saving-plan/register")&&(yield o.routingAppService.navigate(["services/loan/saving-plan/request"],{state:{planId:ee.id},replaceUrl:!0}))});return function(ee){return A.apply(this,arguments)}}())}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(Yo.gz),e.Y36(zv.qO),e.Y36(Il.FM),e.Y36(Yo.F0),e.Y36(ua.s))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-redirect"]],decls:0,vars:0,template:function(o,A){},encapsulation:2}),T})();const r2=[{path:"fa",redirectTo:""},{path:"",redirectTo:"",pathMatch:"full"},{path:"home",redirectTo:"",pathMatch:"full"},{path:"digital-wallet",pathMatch:"full",redirectTo:"digital-card/state",canLoad:[Li.a,$i.f]},{path:"profile",pathMatch:"full",redirectTo:"profile/edit",canLoad:[Li.a,$i.f]},{path:"credit-debit",pathMatch:"full",redirectTo:"credit-debit/list",canLoad:[Li.a,$i.f]},{path:"charge-wallet",pathMatch:"full",redirectTo:"wallet/cash-in",canLoad:[Li.a,$i.f]},{path:"transfer",pathMatch:"full",redirectTo:"smart-transfer",canLoad:[Li.a,$i.f]},{path:"transfer/card-to-card",pathMatch:"full",redirectTo:"services/card/card-to-card",canLoad:[Li.a,$i.f]},{path:"transfer/settlement",pathMatch:"full",redirectTo:"wallet/settlement",canLoad:[Li.a,$i.f]},{path:"transfer/transfer-to-contact",pathMatch:"full",redirectTo:"fund-transfers/select-contact",canLoad:[Li.a,$i.f]},{path:"transaction-report",pathMatch:"full",redirectTo:"setting/transactions-report/report",canLoad:[Li.a,$i.f]},{path:"transaction-report/card-to-card",pathMatch:"full",redirectTo:"card-to-card-reports",canLoad:[Li.a,$i.f]},{path:"transaction-report/digital-account",pathMatch:"full",redirectTo:"setting/transactions-report",canLoad:[Li.a,$i.f]},{path:"direct-debit",pathMatch:"full",redirectTo:"digital-card/support-account",canLoad:[Li.a,$i.f]},{path:"validation-inquiry",pathMatch:"full",redirectTo:"services/validation-inquiry",canLoad:[Li.a,$i.f]},{path:"two-factor-password",pathMatch:"full",redirectTo:"services/two-factor-auth/introduction",canLoad:[Li.a,$i.f]},{path:"gift-card",pathMatch:"full",redirectTo:"services/gift-card",canLoad:[Li.a,$i.f]},{path:"cyber-gift-card",pathMatch:"full",redirectTo:"services/cyber-gift-card/manage",canLoad:[Li.a,$i.f]},{path:"digital-gift",pathMatch:"full",redirectTo:"services/digital-gift",canLoad:[Li.a,$i.f]},{path:"about-us",pathMatch:"full",redirectTo:"setting/about-us",canLoad:[Li.a,$i.f]},{path:"referral",pathMatch:"full",redirectTo:"setting/invite/share",canLoad:[Li.a,$i.f]},{path:"destination-notebook",pathMatch:"full",redirectTo:"digital-card/destination-notebook",canLoad:[Li.a,$i.f]},{path:"saving-plan",pathMatch:"full",redirectTo:"services/loan/saving-plan",canLoad:[Li.a,$i.f]},{path:"saving-plan/register",component:Ud,canLoad:[Li.a,$i.f]},{path:"general-loan",pathMatch:"full",redirectTo:"services/loan/contract-list",canLoad:[Li.a,$i.f]},{path:"active-devices",redirectTo:"setting/active-devices",canLoad:[Li.a,$i.f]},{path:"club-campaign",redirectTo:"club",canLoad:[Li.a,$i.f]},{path:"in-app-rating",redirectTo:"services/rating",canLoad:[Li.a,$i.f]},{path:"support-ticket/create",redirectTo:"support/ticket-create",canLoad:[Li.a,$i.f]},{path:"services-dynamic",redirectTo:"services/services-dynamic"},{path:"expense-credit",component:Ud,canLoad:[Li.a,$i.f]},{path:"income-received",component:Ud,canLoad:[Li.a,$i.f]},{path:"landing-dynamic",component:Ud,canLoad:[Li.a,$i.f]},{path:"credit-card",component:Ud,canLoad:[Li.a,$i.f]},{path:"digital-gift",pathMatch:"full",redirectTo:"services/digital-gift",canLoad:[Li.a,$i.f]},{path:"micro-loan",component:Ud,canLoad:[Li.a,$i.f]},{path:"cheque",redirectTo:"services/cheque",canLoad:[Li.a,$i.f],loadChildren:()=>Promise.all([n.e(8976),n.e(8592)]).then(n.bind(n,38976)).then(T=>T.ChequeModule)},{path:"me",redirectTo:"setting",canLoad:[Li.a,$i.f]},{path:"my",redirectTo:"setting",canLoad:[Li.a,$i.f]},{path:"wepodauth",redirectTo:"guest/android-auth"},{path:"guest",loadChildren:()=>Promise.all([n.e(4241),n.e(5599)]).then(n.bind(n,65599)).then(T=>T.GuestModule)},{path:"signup",component:js.D_,loadChildren:()=>Promise.all([n.e(1223),n.e(3169)]).then(n.bind(n,33169)).then(T=>T.RegisterModule)},{path:"url-redirect",component:js.D_,loadChildren:()=>n.e(4830).then(n.bind(n,44830)).then(T=>T.ExternalUrlRedirectModule)},{path:"app",component:js.D_,loadChildren:()=>n.e(3952).then(n.bind(n,33952)).then(T=>T.ApplicationModule)},{path:"services",component:js.D_,canLoad:[Li.a,$i.f],loadChildren:()=>Promise.all([n.e(8592),n.e(4447)]).then(n.bind(n,4447)).then(T=>T.ServicesModule)},{path:"club",component:js.D_,canLoad:[Li.a,$i.f],loadChildren:()=>Promise.resolve().then(n.bind(n,67292)).then(T=>T.CustomersClubModule)},{path:"setting",component:js.D_,canLoad:[Li.a,$i.f],loadChildren:()=>Promise.all([n.e(8763),n.e(6068),n.e(2015),n.e(8552),n.e(2503),n.e(2085),n.e(8592),n.e(5480)]).then(n.bind(n,55480)).then(T=>T.SettingModule)},{path:"support",component:js.D_,canLoad:[Li.a],loadChildren:()=>Promise.all([n.e(6818),n.e(1927)]).then(n.bind(n,31927)).then(T=>T.SupportModule)},{path:"auto-withdraw/issue",redirectTo:"services/auto-withdraw/issue",canLoad:[Li.a,$i.f]},{path:"auto-withdraw/revoke",redirectTo:"services/auto-withdraw/revoke",canLoad:[Li.a,$i.f]},{path:"support-ticket",component:Ud},{path:"support-chat",redirectTo:"support/chat",canLoad:[Li.a,$i.f]},{path:"support-call",redirectTo:"support/call",canLoad:[Li.a,$i.f]},{path:"download",component:js.D_},{path:"chat",component:js.D_,canLoad:[Li.a],loadChildren:()=>Promise.all([n.e(8763),n.e(6068),n.e(6818),n.e(640),n.e(2668),n.e(4454)]).then(n.bind(n,12668)).then(T=>T.ChatModule)},{path:"chat-quality-test",component:t2},{path:"profile",component:js.D_,canLoad:[Li.a],loadChildren:()=>Promise.all([n.e(8009),n.e(7386)]).then(n.bind(n,58009)).then(T=>T.ProfileModule)},{path:"change-mobile",component:js.D_,canLoad:[Li.a],loadChildren:()=>Promise.all([n.e(1223),n.e(6549)]).then(n.bind(n,56549)).then(T=>T.ChangeMobileModule)},{path:"third-party",component:js.D_,canLoad:[Li.a],loadChildren:()=>Promise.all([n.e(8763),n.e(640),n.e(8247)]).then(n.bind(n,48247)).then(T=>T.ThirdPartyModule)},{path:"notification",component:js.D_,canLoad:[Li.a],loadChildren:()=>n.e(1630).then(n.bind(n,21630)).then(T=>T.NotificationModule)},{path:"",component:js.D_,canLoad:[Li.a,$i.f],loadChildren:()=>Promise.all([n.e(8763),n.e(6068),n.e(2015),n.e(8009),n.e(9405),n.e(8592),n.e(6776)]).then(n.bind(n,6776)).then(T=>T.LandingModule)},{path:"**",component:js.D_,canLoad:[Li.a,$i.f],loadChildren:()=>n.e(2804).then(n.bind(n,22804)).then(T=>T.NotFoundModule)}];let n2=(()=>{class T{}return T.\u0275fac=function(o){return new(o||T)},T.\u0275mod=e.oAB({type:T}),T.\u0275inj=e.cJS({imports:[[Yo.Bz.forRoot(r2,{preloadingStrategy:Yo.wm,anchorScrolling:"enabled",onSameUrlNavigation:"ignore",relativeLinkResolution:"legacy"})],Yo.Bz]}),T})();var hi=n(40345);function Kv(T,S){if(T)throw new Error(`${S} has already been loaded. Import ${S} modules in the AppModule only.`)}var bh=n(75558),ed=n(61737),qv=n(98723);const Xp=(()=>{function T(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return T.prototype=Object.create(Error.prototype),T})();var Jv=n(61709),$v=n(82697),Hd=n(41177);class eg{constructor(S,o,A,ee){this.waitFor=S,this.absoluteTimeout=o,this.withObservable=A,this.scheduler=ee}call(S,o){return o.subscribe(new Sh(S,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class Sh extends Hd.Ds{constructor(S,o,A,ee,he){super(S),this.absoluteTimeout=o,this.waitFor=A,this.withObservable=ee,this.scheduler=he,this.scheduleTimeout()}static dispatchTimeout(S){const{withObservable:o}=S;S._unsubscribeAndRecycle(),S.add((0,Hd.ft)(o,new Hd.IY(S)))}scheduleTimeout(){const{action:S}=this;S?this.action=S.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(Sh.dispatchTimeout,this.waitFor,this))}_next(S){this.absoluteTimeout||this.scheduleTimeout(),super._next(S)}_unsubscribe(){this.action=void 0,this.scheduler=null,this.withObservable=null}}class a2{constructor(S,o){this.notifier=S,this.source=o}call(S,o){return o.subscribe(new wf(S,this.notifier,this.source))}}class wf extends Hd.Ds{constructor(S,o,A){super(S),this.notifier=o,this.source=A}error(S){if(!this.isStopped){let o=this.errors,A=this.retries,ee=this.retriesSubscription;if(A)this.errors=void 0,this.retriesSubscription=void 0;else{o=new g.xQ;try{const{notifier:he}=this;A=he(o)}catch(he){return super.error(he)}ee=(0,Hd.ft)(A,new Hd.IY(this))}this._unsubscribeAndRecycle(),this.errors=o,this.retries=A,this.retriesSubscription=ee,o.next(S)}}_unsubscribe(){const{errors:S,retriesSubscription:o}=this;S&&(S.unsubscribe(),this.errors=void 0),o&&(o.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}notifyNext(){const{_unsubscribe:S}=this;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=S,this.source.subscribe(this)}}var tg=n(27221),na=n(77528);const u6={maxAttempts:3,scalingDuration:1e3,shouldRetry:({status:T})=>T>=400};let e1=(()=>{class T{constructor(){this.shouldRetry=o=>!(401===o.status||o.error?.status||o.error?.code||o.url&&!na.z.retryAjaxWithAttemptsCount.find(A=>o.url?.includes(A.method))),this.calcMaxAttempts=o=>na.z.retryAjaxWithAttemptsCount.find(A=>o.url.includes(A.method))?.retryCount?na.z.retryAjaxWithAttemptsCount.find(A=>o.url.includes(A.method)).retryCount:0}intercept(o,A){const{shouldRetry:ee}=this,{calcMaxAttempts:he}=this,Ye=Number(o.headers.get("timeout")||na.z.defaultTimeout);return o.url.match("podspace.pod.ir")?A.handle(o):A.handle(o).pipe(function Vd(T,S=yi.P){return function Qv(T,S,o=yi.P){return A=>{let ee=(0,$v.J)(T),he=ee?+T-o.now():Math.abs(T);return A.lift(new eg(he,ee,S,o))}}(T,(0,ed._)(new Xp),S)}(Ye),function s2(T){return S=>S.lift(new a2(T,S))}(((T={})=>S=>S.pipe((0,Jv.zg)((o,A)=>{const{maxAttempts:ee,scalingDuration:he,shouldRetry:Ye}={...u6,...T},bt=A+1;return bt>ee||!Ye(o)?(0,ed._)(o):(0,qv.H)(bt*he)})))({maxAttempts:he(o),shouldRetry:ee})),(0,tg.K)(bt=>(js.hg.next({loading:!1,cancelable:!1}),bt instanceof Xp?(console.error("Timeout has occurred",o.url),(0,ed._)(new d.UA({error:{status:408,type:"TimeoutException"},status:408,statusText:"Timeout Error",url:o.url}))):(0,ed._)(bt))))}}return T.\u0275fac=function(o){return new(o||T)},T.\u0275prov=e.Yz7({token:T,factory:T.\u0275fac}),T})();var td=n(79473),ni=n(66699),vr=n(73038),wc=n(97028),Go=n(97693),Yd=n(66226),xc=n(94652),jd=n(32209),Ic=n(58132);let Ra=(()=>{class T{constructor(o,A,ee,he,Ye,bt,er){this.tagManager=o,this.toastrService=A,this.resourceAppService=ee,this.routingAppService=he,this.getProfileDataService=Ye,this.browserStorageService=bt,this.smartTransferDataPassingService=er,this.specialErrors=[{errorType:"low_credit",errorCode:9,modal:{modalKey:"basicModal",data:null,height:0,bgWhite:!0,desktopStyle:!0,disableBackdropClosing:!0,hideDesktopHeaderClose:!0,fullScreen:!1,basicModalData:{img:"/assets/images/card/cyber-gift-card/charge.svg",title:"",desc:[],buttons:{first:{title:"",action:()=>{}},second:{title:"\u0628\u0633\u062a\u0646",action:()=>{(0,vr.Mr)()},gray:!0}}}},prepare(mr=null){(0,ni.Sq)("DataLayerGoogleAnalytics")&&o.pushEvent("empty_wallet",{});let Kr="";Kr=Ye.financialLevelCheck(4)?"\u062d\u0633\u0627\u0628 \u062f\u06cc\u062c\u06cc\u062a\u0627\u0644":"\u06a9\u06cc\u0641 \u067e\u0648\u0644 \u062f\u06cc\u062c\u06cc\u062a\u0627\u0644",this.modal.basicModalData.desc&&(this.modal.basicModalData.desc=[]),mr?.error?.detail?this.modal.basicModalData.desc.push(mr?.error?.detail):ee.getValueFromResource().then(nn=>{this.modal.basicModalData.desc.push(nn?.Wallet?.ChargeWalletDescription)}).catch(()=>{this.modal.basicModalData.desc.push("\u0644\u0637\u0641\u0627 \u0628\u0631\u0627\u06cc \u0627\u0646\u062c\u0627\u0645 \u0627\u06cc\u0646 \u0639\u0645\u0644\u06cc\u0627\u062a \u0645\u0648\u062c\u0648\u062f\u06cc "+Kr+" \u062e\u0648\u062f \u0631\u0627 \u0627\u0641\u0632\u0627\u06cc\u0634 \u062f\u0647\u06cc\u062f.")}),this.modal.basicModalData.title=Kr,this.modal.basicModalData.buttons.first={title:mr?.error?.buttons?mr?.error?.buttons[0]?.title??"\u0627\u0641\u0632\u0627\u06cc\u0634 \u0645\u0648\u062c\u0648\u062f\u06cc":"\u0627\u0641\u0632\u0627\u06cc\u0634 \u0645\u0648\u062c\u0648\u062f\u06cc",action:()=>{(0,vr.Mr)(),setTimeout(()=>{mr?.error?.buttons&&mr?.error?.buttons[0]?.link?(0,hi.Jj)()&&(mr.error.buttons[0].link.includes("https://web.wepod.ir/")?he.navigate([mr.error.buttons[0].link.split("/").slice(3).join("/")]):(0,hi.Jj)().location.href=mr.error.buttons[0].link):(bt.setLocalItem("callback",(0,hi.Jj)().location.href.split("/").slice(3).join("/")),he.navigate(["charge-wallet"]))},500)},green:!0}}},{errorType:"user_level_is_not_proper",errorCode:192,modal:{modalKey:"profileCompletionModal",data:null,height:0,bgWhite:!0,desktopStyle:!0,disableBackdropClosing:!0,hideDesktopHeaderClose:!0,fullScreen:!1}},{errorType:"device_locked",errorCode:310,modal:{modalKey:"registerLockedModal",data:null,height:0,bgWhite:!0,desktopStyle:!0,disableBackdropClosing:!0,hideDesktopHeaderClose:!0,fullScreen:!1},prepare(mr){this.modal.data={errorText:mr.error?.detail}}},{errorType:"digital_card_not_found",errorCode:319,modal:{modalKey:"basicModal",data:null,height:0,bgWhite:!0,desktopStyle:!0,disableBackdropClosing:!0,hideDesktopHeaderClose:!0,fullScreen:!1,basicModalData:{img:"/assets/images/digital-card/pasargad-modal.svg",title:"\u062f\u0631\u06cc\u0627\u0641\u062a \u06a9\u0627\u0631\u062a \u062f\u06cc\u062c\u06cc\u062a\u0627\u0644",desc:[],buttons:{first:{title:"\u062f\u0631\u062e\u0648\u0627\u0633\u062a \u06a9\u0627\u0631\u062a",action:()=>{(0,vr.Mr)(),Ye.getValue(!0),setTimeout(()=>{he.navigate(["digital-card"])},500)},green:!0},second:{title:"\u0628\u0633\u062a\u0646",action:()=>{(0,vr.Mr)()},gray:!0}}}},prepare(){var mr=this;return(0,Qe.Z)(function*(){yield ee.getValueFromResource().then(Kr=>Kr?.General).catch(()=>({GetDigitalCard:"\u0648\u06cc\u067e\u0627\u062f\u06cc \u0639\u0632\u06cc\u0632\u060c \u0628\u0631\u0627\u06cc \u0627\u0646\u062c\u0627\u0645 \u0627\u06cc\u0646 \u0639\u0645\u0644\u06cc\u0627\u062a \u0628\u0627\u06cc\u062f \u0628\u0631\u0627\u06cc \u062d\u0633\u0627\u0628 \u062f\u06cc\u062c\u06cc\u062a\u0627\u0644 \u062f\u0631\u06cc\u0627\u0641\u062a \u0646\u0645\u0627\u06cc\u06cc\u062f. \u0644\u0627\u0632\u0645 \u0628\u0647 \u0630\u06a9\u0631 \u0627\u0633\u062a \u062f\u0631 \u0627\u0633\u0631\u0639 \u0648\u0642\u062a \u0627\u0642\u062f\u0627\u0645 \u0628\u0647 \u062f\u0631\u06cc\u0627\u0641\u062a \u06a9\u0627\u0631\u062a \u0641\u06cc\u0632\u06cc\u06a9\u06cc \u0646\u0645\u0627\u06cc\u06cc\u062f."})).then(Kr=>{mr.modal.basicModalData.desc&&(mr.modal.basicModalData.desc=[]),mr.modal.basicModalData.desc.push(Kr?.GetDigitalCard)})})()}},{errorType:["digital_expense_limit_exceeded","credit_supply_useless"],errorCode:[323,333],modal:{modalKey:"basicModal",basicModalData:{img:"/assets/images/services/loan/expense-credit/strongbox.svg",title:null,desc:null,buttons:{first:{title:"\u0628\u0633\u062a\u0646",action:()=>{(0,vr.Mr)()},gray:!0}}},height:0,bgWhite:!0,desktopStyle:!0,data:null,disableBackdropClosing:!0,hideDesktopHeaderClose:!0,fullScreen:!1},prepare(mr){this.modal.basicModalData.title=mr.error?.title,this.modal.basicModalData.desc=[mr.error?.detail]}},{errorType:"validation_inquiry_not_exist",errorCode:325,prepare:(mr=null)=>(0,Qe.Z)(function*(){he.navigate([(0,hi.Jj)().location.pathname.substring(1)],{replaceUrl:!0,queryParams:{needValidation:"true"},queryParamsHandling:"merge"}).then(()=>{(0,vr.Mr)(),he.navigate(["services/validation-inquiry"],{queryParams:mr.error.ValidationTypes?.length?{validationTypes:mr.error.ValidationTypes}:{}})})})()},{errorType:["user_has_deferred_installment","validation_inquiry_unspecified"],errorCode:[326,327],modal:{modalKey:"basicModal",basicModalData:{img:"/assets/images/shared/failed-badge.svg",title:"\u0631\u062f \u062f\u0631\u062e\u0648\u0627\u0633\u062a",desc:[],buttons:{first:{title:"\u0628\u0633\u062a\u0646",action:()=>{(0,vr.Mr)()},gray:!0}}},height:0,bgWhite:!0,desktopStyle:!0,data:null,disableBackdropClosing:!0,hideDesktopHeaderClose:!0,fullScreen:!1},prepare(mr){this.modal.basicModalData.desc.push(mr.error?.detail)}},{errorType:"wait_for_validation_inquiry",errorCode:329,modal:{modalKey:"basicModal",basicModalData:{img:"/assets/images/validation/validation-inprogress.svg",title:"\u0627\u0639\u062a\u0628\u0627\u0631\u0633\u0646\u062c\u06cc \u0634\u0645\u0627 \u062f\u0631\u062d\u0627\u0644 \u0627\u0646\u062c\u0627\u0645 \u0627\u0633\u062a",desc:["\u0644\u0637\u0641\u0627 \u062a\u0627 \u067e\u0627\u06cc\u0627\u0646 \u0641\u0631\u0622\u06cc\u0646\u062f \u0627\u0639\u062a\u0628\u0627\u0631\u0633\u0646\u062c\u06cc \u0645\u0646\u062a\u0638\u0631 \u0628\u0645\u0627\u0646\u06cc\u062f."],buttons:{first:{title:"\u0628\u0633\u062a\u0646",action:()=>{(0,vr.Mr)(),he.navigate(["services/validation-inquiry/status"])},gray:!0}}},height:0,bgWhite:!0,desktopStyle:!0,data:null,disableBackdropClosing:!0,hideDesktopHeaderClose:!0,fullScreen:!1}},{errorType:["transfer_incorrect_otp","destination_user_level_is_not_proper","mobile_number_is_already_registered"],errorCode:[330,332,356],modal:{modalKey:"basicModal",basicModalData:{img:"/assets/images/receipt/unsuccess.svg",title:null,desc:null,buttons:{first:{title:null,action:()=>{(0,vr.Mr)()}}}},height:0,bgWhite:!0,desktopStyle:!0,data:null,disableBackdropClosing:!0,hideDesktopHeaderClose:!0,fullScreen:!1},prepare(mr){this.modal.basicModalData.title=mr.error?.title,this.modal.basicModalData.desc=[mr.error?.detail],"transfer_incorrect_otp"===String(mr?.error?.type)?this.modal.basicModalData.buttons.first.title="\u0628\u0633\u062a\u0646":"destination_user_level_is_not_proper"===String(mr?.error?.type)?this.modal.basicModalData.buttons.first.title="\u0645\u062a\u0648\u062c\u0647 \u0634\u062f\u0645":"mobile_number_is_already_registered"===String(mr?.error?.type)&&(this.modal.basicModalData.title="\u0646\u0627\u0645\u0648\u0641\u0642",this.modal.basicModalData.buttons.first.title="\u0628\u0633\u062a\u0646")}},{errorType:"validation_inquiry_expired",errorCode:331,modal:{modalKey:"basicModal",basicModalData:{img:"/assets/images/shared/failed-badge.svg",title:null,desc:null,buttons:{first:{title:"\u0628\u0633\u062a\u0646",action:()=>{(0,vr.Mr)()},gray:!0}}},height:0,bgWhite:!0,desktopStyle:!0,data:null,disableBackdropClosing:!0,hideDesktopHeaderClose:!0,fullScreen:!1},prepare(mr){this.modal.basicModalData.title=mr.error?.title,this.modal.basicModalData.desc=[mr.error?.detail]}},{errorType:"physical_card_not_found",errorCode:334,modal:{modalKey:"basicModal",basicModalData:{img:"/assets/images/digital-card/pasargad-modal.svg",title:null,desc:[""],buttons:{first:{title:"\u062f\u0631\u062e\u0648\u0627\u0633\u062a \u06a9\u0627\u0631\u062a",action:()=>{(0,vr.Mr)(),he.navigate(["digital-card"])},green:!0},second:{title:"\u0628\u0633\u062a\u0646",action:()=>{(0,vr.Mr)()},gray:!0}}},height:0,bgWhite:!0,desktopStyle:!0,data:null,disableBackdropClosing:!0,hideDesktopHeaderClose:!0,fullScreen:!1},prepare(){this.modal.basicModalData.title="\u062f\u0631\u06cc\u0627\u0641\u062a \u06a9\u0627\u0631\u062a \u0641\u06cc\u0632\u06cc\u06a9\u06cc",this.modal.basicModalData.desc=["\u0648\u06cc\u067e\u0627\u062f\u06cc \u0639\u0632\u06cc\u0632\u060c \u0628\u0631\u0627\u06cc \u0627\u0646\u062c\u0627\u0645 \u0627\u06cc\u0646 \u0639\u0645\u0644\u06cc\u0627\u062a \u0628\u0627\u06cc\u062f \u0628\u0631\u0627\u06cc \u062d\u0633\u0627\u0628 \u062f\u06cc\u062c\u06cc\u062a\u0627\u0644 \u062e\u0648\u062f \u06a9\u0627\u0631\u062a \u0641\u06cc\u0632\u06cc\u06a9\u06cc \u062f\u0631\u06cc\u0627\u0641\u062a \u0646\u0645\u0627\u06cc\u06cc\u062f."]}},{errorType:"has_conflict_with_current_contracts",errorCode:335,modal:{modalKey:"basicModal",basicModalData:{img:"/assets/images/shared/info-circle.svg",title:null,desc:[""],extraClass:"activated-expense-modal",buttons:{first:{title:"\u0645\u062a\u0648\u062c\u0647 \u0634\u062f\u0645",action:()=>{(0,vr.Mr)()},green:!0}}},height:0,bgWhite:!0,desktopStyle:!0,data:null,disableBackdropClosing:!0,hideDesktopHeaderClose:!0,fullScreen:!1},prepare(mr){this.modal.basicModalData.title=mr.error?.title,this.modal.basicModalData.desc=[mr.error?.detail]}},{errorType:"business_rule_error",errorCode:1e4,modal:{modalKey:"dynamicModal",height:0,bgWhite:!0,desktopStyle:!0,data:null,disableBackdropClosing:!0,hideDesktopHeaderClose:!0,fullScreen:!1},prepare(mr){mr.error.businessRuleErrorData.isBusinessRule=!0,this.modal.dynamicButtonsModalData=mr?.error?.businessRuleErrorData}},{errorType:"otp_does_not_belong_to_this_flowType",errorCode:998,modal:{modalKey:"basicModal",basicModalData:{title:null,img:"assets/images/receipt/unsuccess.svg",desc:["\u06a9\u062f \u0627\u062d\u0631\u0627\u0632 \u0648\u0627\u0631\u062f \u0634\u062f\u0647 \u0628\u0631\u0627\u06cc \u0641\u0631\u0622\u06cc\u0646\u062f \u062c\u0627\u0631\u06cc \u0645\u0639\u062a\u0628\u0631 \u0646\u0645\u06cc \u0628\u0627\u0634\u062f. \u0645\u062c\u062f\u062f\u0627 \u0627\u0642\u062f\u0627\u0645 \u0646\u0645\u0627\u06cc\u06cc\u062f."],buttons:{first:{title:"\u062a\u0627\u06cc\u06cc\u062f",gray:!0,fullSize:!0,action:()=>{(0,vr.Mr)(),setTimeout(()=>he.back(),500)}}}},height:0,bgWhite:!0,desktopStyle:!0,data:null,disableBackdropClosing:!0,hideDesktopHeaderClose:!0,fullScreen:!1}},{errorType:"contact_not_found",errorCode:337,modal:{modalKey:"basicModal",data:null,height:0,bgWhite:!0,desktopStyle:!0,disableBackdropClosing:!0,hideDesktopHeaderClose:!0,fullScreen:!1,basicModalData:{img:"assets/images/shared/warning.svg",title:"",desc:[],buttons:{first:{title:"",action:()=>{(0,vr.Mr)(),Ye.getValue(!0),setTimeout(()=>{he.navigate(["digital-card"])},500)},green:!0},second:{title:"\u0628\u0633\u062a\u0646",action:()=>{(0,vr.Mr)()},gray:!0}}}},prepare(mr=null){var Kr=this;return(0,Qe.Z)(function*(){Kr.modal.basicModalData.desc=[mr.error?.detail],Kr.modal.basicModalData.buttons.first={title:mr.error.buttons[0].title,action:()=>{Kr.smartTransferDataPassingService.errorAddNewContact=!0,Kr.digitalGiftCardDataPassingService.errorAddNewContact=!0,he.navigate(["smart-transfer/select-destination"]),(0,vr.Mr)()},green:!0}})()}},{errorType:"higher_user_level_is_required",errorCode:338,modal:{modalKey:"dynamicModal",height:0,bgWhite:!0,desktopStyle:!0,data:null,disableBackdropClosing:!0,hideDesktopHeaderClose:!0,fullScreen:!1},prepare(mr){const Kr=new vr.hC;Kr.isBusinessRule=!1,Kr.title="\u0628\u0627\u0646\u06a9\u062f\u0627\u0631\u06cc \u0648\u06cc\u062f\u06cc\u0648\u06cc\u06cc \u067e\u0627\u0633\u0627\u0631\u06af\u0627\u062f",Kr.message=mr.error.detail,Kr.buttons=[],mr.error.buttons?.forEach(nn=>{Kr.buttons.push({title:nn.title,deepLink:nn.link})}),this.modal.dynamicButtonsModalData=Kr}},{errorType:"pod_contact_not_found",errorCode:339,modal:{modalKey:"basicModal",data:null,height:0,bgWhite:!0,desktopStyle:!0,disableBackdropClosing:!0,hideDesktopHeaderClose:!0,fullScreen:!1,basicModalData:{img:"/assets/images/shared/circle-warning.svg",title:"",desc:[],buttons:{first:{title:"\u0628\u0633\u062a\u0646",action:()=>{er.reset(),(0,vr.Mr)()}}}}},prepare(mr=null){var Kr=this;return(0,Qe.Z)(function*(){Kr.modal.basicModalData.desc=[mr.error?.detail]})()}}]}openErrorModal(o,A){var ee=this;return(0,Qe.Z)(function*(){if(o.url.match("api.wepod.ir")||o.url.match("sandbox.wepod.ir")||o.url.match("podspace.pod.ir")){const he=ee.specialErrors.find(Ye=>"string"==typeof Ye.errorType?Ye.errorType===A?.error?.type:!!Ye.errorType.find(bt=>String(bt)===String(A?.error?.type)));he?(he.prepare&&(yield he.prepare(A)),he.modal&&setTimeout(()=>{ee.execute(he.modal)},500)):ee.toastrService.error(A.error?.detail?A.error?.detail:"\u062e\u0637\u0627\u06cc\u06cc \u0631\u062e \u062f\u0627\u062f. \u0644\u0637\u0641\u0627 \u062f\u0648\u0628\u0627\u0631\u0647 \u062a\u0644\u0627\u0634 \u06a9\u0646\u06cc\u062f.")}})()}execute(o){js.hg.next({loading:!1,cancelable:!1}),vr.j.data.next(o.data),vr.j.basicModalData.next(o.basicModalData),vr.j.bgWhite=o.bgWhite,vr.j.desktopStyle=o.desktopStyle,vr.j.hideDesktopHeaderClose=o.hideDesktopHeaderClose,vr.j.disableBackdropClosing=o.disableBackdropClosing,vr.j.fullScreen.next(o.fullScreen),vr.j.dynamicButtonsModalData.next(o.dynamicButtonsModalData?o.dynamicButtonsModalData:null),(0,vr.h7)(o.modalKey,o.height)}}return T.\u0275fac=function(o){return new(o||T)(e.LFG(wc.c),e.LFG(Go.X),e.LFG(Yd.K),e.LFG(ua.s),e.LFG(xc.o),e.LFG(jd.z),e.LFG(Ic.A))},T.\u0275prov=e.Yz7({token:T,factory:T.\u0275fac,providedIn:"root"}),T})(),l2=(()=>{class T{constructor(o,A,ee,he){this.authService=o,this.wepodMainService=A,this.injector=ee,this.specialErrorHandler=he}intercept(o,A){return this.authService=this.injector.get(bh.e),o=this.addAuthHeader(o),A.handle(o).pipe((0,tg.K)(ee=>o.url.match("podspace.pod.ir")?(0,ed._)(ee):(o.url.includes("token/refresh")&&(401===ee.status||400===ee.status||422===ee.status||429===ee.status||500===ee.status?this.authService.logoutClient(!0,!0):this.wepodMainService.refreshTokenInProgress=!1),o.url.includes("getByAuthCode")&&ee.status>=400&&this.authService.logoutClient(),this.handleResponseError(ee,o,A))))}handleResponseError(o,A,ee){if(400===o.status||429===o.status||422===o.status)this.specialErrorHandler.openErrorModal(A,o);else{if(401===o.status)return this.wepodMainService.refreshTokenFromInterceptor().pipe((0,O.w)(()=>(A=this.addAuthHeader(A),ee.handle(A))),(0,tg.K)(he=>{if(401!==he.status&&400!==o.status)return this.handleResponseError(he);this.authService.logoutClient()}));403!==o.status||A.url.includes("/getUserFinancialStatus")&&!this.authService.getToken()||this.authService.logoutClient()}return(0,ed._)(o)}addAuthHeader(o){const A=this.authService.getToken();return A?o.url.match("podspace.pod.ir")?o.clone({setHeaders:{Authorization:"Bearer "+A}}):o.clone({setHeaders:{Authorization:A}}):o}}return T.\u0275fac=function(o){return new(o||T)(e.LFG(bh.e),e.LFG(td.g),e.LFG(e.zs3),e.LFG(Ra))},T.\u0275prov=e.Yz7({token:T,factory:T.\u0275fac}),T})(),u2=(()=>{class T{constructor(o){Kv(o,"AuthModule")}}return T.\u0275fac=function(o){return new(o||T)(e.LFG(T,12))},T.\u0275mod=e.oAB({type:T}),T.\u0275inj=e.cJS({providers:[bh.e,Li.a,{provide:d.TP,useClass:l2,multi:!0},{provide:d.TP,useClass:e1,multi:!0}],imports:[[G.ez]]}),T})();var rg=n(62561),rd=n(56437),t1=n(74497),r1=n(15399),n1=n(47514);const c2=[];let d2=(()=>{class T{}return T.\u0275fac=function(o){return new(o||T)},T.\u0275mod=e.oAB({type:T}),T.\u0275inj=e.cJS({imports:[[Yo.Bz.forChild(c2)],Yo.Bz]}),T})(),Th=(()=>{class T{constructor(){}intercept(o,A){const ee=o.clone({url:o.url.startsWith("http")?o.url:jo.NZ.apiUrl+o.url});return A.handle(ee)}}return T.\u0275fac=function(o){return new(o||T)},T.\u0275prov=e.Yz7({token:T,factory:T.\u0275fac}),T})();var s1=n(81042);let f2=(()=>{class T{constructor(){}intercept(o,A){if(-1!==o.url.search("podspace")){const ee=o.clone({headers:o.headers.set("Accept-Language",jo.NZ.language).set("Request-Id",(0,s1.Z)()).set("Cache-Control","no-cache").set("X-Client-Version",`Wepod_web-${jo.NZ.appVersion}.0.Pas`)});return A.handle(ee)}{const ee=o.clone({headers:o.headers.set("Accept-Language",jo.NZ.language).set("Content-Type","application/json").set("Cache-Control","no-cache").set("Request-Id",(0,s1.Z)()).set("X-Client-Version",`Wepod_web-${jo.NZ.appVersion}.Pas`)});return A.handle(ee)}}}return T.\u0275fac=function(o){return new(o||T)},T.\u0275prov=e.Yz7({token:T,factory:T.\u0275fac}),T})(),h2=(()=>{class T{constructor(){}intercept(o,A){const ee=o.url.split("/")[o.url.split("/").length-1].split("?")[0];let he=!1;if((0,ni.Sq)("GlobalLoadingOnAjaxCalls")){const Ye=js.hg.value.text;"POST"===o.method&&!na.z.noLoadingPostMethods.includes(ee)&&(js.hg.next({loading:!0,cancelable:na.z.cancelableLoadingMethods.includes(ee),text:Ye}),he=!0),"GET"===o.method&&na.z.forceLoadingGetMethods.includes(ee)&&(js.hg.next({loading:!0,cancelable:na.z.cancelableLoadingMethods.includes(ee),text:Ye}),he=!0)}return A.handle(o).pipe((0,H.U)(Ye=>((0,ni.Sq)("GlobalLoadingOnAjaxCalls")&&Ye instanceof d.Zn&&he&&!na.z.notCancelableMethods.includes(ee)&&js.hg.next({loading:!1,cancelable:!1}),Ye))).pipe((0,tg.K)(Ye=>((0,ni.Sq)("GlobalLoadingOnAjaxCalls")&&he&&js.hg.next({loading:!1,cancelable:!1}),(0,ed._)(Ye))))}}return T.\u0275fac=function(o){return new(o||T)},T.\u0275prov=e.Yz7({token:T,factory:T.\u0275fac}),T})();var w0=n(39777),a1=n(16738),o1=n(70151),ng=n(41399),p2=n(10617);let Eh=(()=>{class T{podGregoryDateTimeToJalaliDateTime(o){const A=new Date(o);return A.getFullYear()+"/"+A.getMonth()+"/"+A.getDate()+" "+A.getHours()+":"+A.getMinutes()+":"+A.getSeconds()}}return T.\u0275fac=function(o){return new(o||T)},T.\u0275prov=e.Yz7({token:T,factory:T.\u0275fac}),T})();var xf=n(88469);let g2=(()=>{class T{constructor(o){Kv(o,"CoreModule")}}return T.\u0275fac=function(o){return new(o||T)(e.LFG(T,12))},T.\u0275mod=e.oAB({type:T}),T.\u0275inj=e.cJS({providers:[jd.z,ng.G,xf.i,w0.B,p2.j,Eh,d.eN,o1.H,a1.Y,n1.H,r1.P,xc.o,{provide:d.TP,useClass:Th,multi:!0},{provide:d.TP,useClass:f2,multi:!0},{provide:d.TP,useClass:h2,multi:!0}],imports:[[G.ez,d2,t1.F]]}),T})();var m2=n(65117),v2=n(3324),l1=n(841),u1=n(86749),Gd=n(75176),_2=n(38493),c1=n(67521),y2=n(67057),ig=n(31995),d1=n(75082),c6=n(7408),d6=n(44852);function f6(T,S){if(1&T&&(e.TgZ(0,"span",7),e._uU(1),e.qZA()),2&T){const o=e.oxw(2);e.xp6(1),e.hij(" ",o.chatDataPassingService.unreadThreadsBadge," ")}}function f1(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"button",5),e.NdJ("click",function(){e.CHM(o);const ee=e.oxw();return ee.routingAppService.navigate(["chat"]),ee.resetData()}),e.YNc(1,f6,2,1,"span",6),e.TgZ(2,"span"),e._uU(3,"\u06af\u0641\u062a\u06af\u0648"),e.qZA()()}if(2&T){const o=e.oxw();e.xp6(1),e.Q6J("ngIf",o.isBadgeValid())}}function x0(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"button",8),e.NdJ("click",function(){e.CHM(o);const ee=e.oxw();return ee.routingAppService.navigate(["club"]),ee.resetData()}),e.TgZ(1,"span",9),e._uU(2,"\u0648\u06cc\u200c\u06a9\u0644\u0627\u0628"),e.qZA()()}if(2&T){const o=e.oxw();e.Q6J("ngClass",o.router.url.includes("club/list")||"/club/expired-list"===o.router.url||o.router.url.includes("/club/purchases")||"/club/discounts-list"===o.router.url?"active":"")}}const C2=function(){return{exact:!0}};let b2=(()=>{class T{constructor(o,A,ee,he,Ye,bt,er,mr,Kr,nn){this.routingAppService=o,this.router=A,this.smartTransferDataPassingService=ee,this.cardDataPassingService=he,this.cardToCardReportsPassingService=Ye,this.walletDataPassingService=bt,this.digitalGiftCardDataPassingService=er,this.chequeDataPassingService=mr,this.turnoverReportDataPassingService=Kr,this.chatDataPassingService=nn,this.developmentMode=ni.Sq}ngOnInit(){}isBadgeValid(){return this.chatDataPassingService.unreadThreadsBadge&&"number"==typeof this.chatDataPassingService.unreadThreadsBadge}resetData(){this.smartTransferDataPassingService.reset(),this.cardToCardReportsPassingService.reset(),this.walletDataPassingService.reset(),this.cardDataPassingService.reset(),this.digitalGiftCardDataPassingService.reset(),this.chequeDataPassingService.reset(),this.turnoverReportDataPassingService.filters.reset()}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(ua.s),e.Y36(Yo.F0),e.Y36(Ic.A),e.Y36(c1.m),e.Y36(y2.Z),e.Y36(ig.v),e.Y36(d1.X),e.Y36(c6.T),e.Y36(d6.g),e.Y36(Il.FM))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-app-header"]],decls:9,vars:6,consts:[["id","header",1,"header"],["routerLinkActive","active",1,"services-icon",3,"ngClass","click"],["routerLinkActive","active",1,"home-icon",3,"ngClass","routerLinkActiveOptions","click"],["class","chat-icon","routerLinkActive","active",3,"click",4,"ngIf"],["class","customers-club-icon","routerLinkActive","active",3,"ngClass","click",4,"ngIf"],["routerLinkActive","active",1,"chat-icon",3,"click"],["class","unread-badge in-header",4,"ngIf"],[1,"unread-badge","in-header"],["routerLinkActive","active",1,"customers-club-icon",3,"ngClass","click"],[2,"white-space","nowrap"]],template:function(o,A){1&o&&(e.TgZ(0,"header",0)(1,"button",1),e.NdJ("click",function(){return A.routingAppService.navigate(["services"]),A.resetData()}),e.TgZ(2,"span"),e._uU(3,"\u062e\u062f\u0645\u0627\u062a"),e.qZA()(),e.TgZ(4,"button",2),e.NdJ("click",function(){return A.routingAppService.navigate(["landing"]),A.resetData()}),e.TgZ(5,"span"),e._uU(6,"\u062e\u0627\u0646\u0647"),e.qZA()(),e.YNc(7,f1,4,1,"button",3),e.YNc(8,x0,3,1,"button",4),e.qZA()),2&o&&(e.xp6(1),e.Q6J("ngClass","/services"===A.router.url?"active":""),e.xp6(3),e.Q6J("ngClass","/landing"===A.router.url?"active":"")("routerLinkActiveOptions",e.DdM(5,C2)),e.xp6(3),e.Q6J("ngIf",!A.developmentMode("UseClubTab")),e.xp6(1),e.Q6J("ngIf",A.developmentMode("UseClubTab")))},directives:[Yo.Od,G.mk,G.O5],encapsulation:2}),T})(),h1=(()=>{class T{constructor(){this.appVersionShort=jo.NZ.appVersion}}return T.\u0275fac=function(o){return new(o||T)},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-footer"]],decls:4,vars:1,consts:[[1,"site-footer"],["src","/assets/images/shared/pbank-logo.svg","alt","wepod","width","60"]],template:function(o,A){1&o&&(e.TgZ(0,"footer",0),e._UZ(1,"img",1),e.TgZ(2,"small"),e._uU(3),e.qZA()()),2&o&&(e.xp6(3),e.Oqu(A.appVersionShort))},encapsulation:2}),T})();var nd=n(73469),La=n(64086);function S2(T,S){if(1&T&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&T){const o=S.$implicit;e.xp6(1),e.Oqu(o)}}function T2(T,S){if(1&T&&(e.TgZ(0,"span",14)(1,"p"),e._uU(2),e.qZA(),e.TgZ(3,"p")(4,"span"),e._uU(5),e.ALo(6,"numberSeparator"),e.ALo(7,"rialToToman"),e.qZA(),e._uU(8," \u062a\u0648\u0645\u0627\u0646 "),e.qZA()()),2&T){const o=e.oxw().$implicit;e.ekj("gray",o.subGray)("green",o.subGreen)("red",o.subRed),e.xp6(2),e.hij(" ",o.subLabel," "),e.xp6(3),e.hij(" ",e.lcZ(6,8,e.lcZ(7,10,o.subValue))," ")}}function E2(T,S){if(1&T&&(e.TgZ(0,"li")(1,"span",10)(2,"span",11)(3,"p",12),e._uU(4),e.qZA(),e.TgZ(5,"p")(6,"span",12),e._uU(7),e.ALo(8,"numberSeparator"),e.ALo(9,"rialToToman"),e.qZA(),e._uU(10," \u062a\u0648\u0645\u0627\u0646 "),e.qZA()(),e.YNc(11,T2,9,12,"span",13),e.qZA()()),2&T){const o=S.$implicit,A=S.index;e.ekj("bkg-gray",A%2!=0)("bkg-white",A%2==0)("border-dashed",o.dashedBorder)("border-solid",o.solidBorder),e.xp6(2),e.ekj("gray",o.gray)("green",o.green)("red",o.red),e.xp6(2),e.hij(" ",o.label," "),e.xp6(3),e.hij(" ",e.lcZ(8,17,e.lcZ(9,19,o.value))," "),e.xp6(4),e.Q6J("ngIf",o.subLabel)}}function M2(T,S){if(1&T&&(e.TgZ(0,"div",15)(1,"div",16)(2,"span",17),e._uU(3),e.qZA(),e.TgZ(4,"span",18),e._uU(5),e.ALo(6,"numberSeparator"),e.ALo(7,"rialToToman"),e.qZA()()()),2&T){const o=S.$implicit;e.xp6(3),e.hij(" ",o.key," "),e.xp6(2),e.hij(" ",e.lcZ(6,2,e.lcZ(7,4,o.value))," \u062a\u0648\u0645\u0627\u0646 ")}}function p1(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"button",8),e.NdJ("click",function(){return e.CHM(o),e.oxw().data.buttons.second.action()}),e._uU(1),e.qZA()}if(2&T){const o=e.oxw();e.Q6J("ngClass",o.data.buttons.second.class),e.xp6(1),e.Oqu(o.data.buttons.second.title)}}let w2=(()=>{class T{constructor(o){this.expenseCreditDataPassingService=o}ngOnInit(){this.data=vr.j.data.value}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(nd.Q))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-expense-credit-factor-modal"]],decls:13,vars:8,consts:[[1,"expense-credit-new-factor",2,"position","relative"],[1,"expense-credit-new-factor-body"],[1,"expense-credit-select-title","gray-light",2,"margin-top","0"],[1,"expense-credit-select-title","text-right"],[4,"ngFor","ngForOf"],[3,"bkg-gray","bkg-white","border-dashed","border-solid",4,"ngFor","ngForOf"],["class","list-item",4,"ngFor","ngForOf"],[1,"expense-credit-new-factor-footer",3,"ngClass"],[1,"btn",3,"ngClass","click"],["class","btn",3,"ngClass","click",4,"ngIf"],[1,"factor-box"],[1,"factor-box-item"],[1,"bold"],["class","factor-box-item-sub",3,"gray","green","red",4,"ngIf"],[1,"factor-box-item-sub"],[1,"list-item"],[1,"list-content"],[1,"list-content-key","gray-light"],[1,"list-content-key","bold"]],template:function(o,A){1&o&&(e.TgZ(0,"div",0)(1,"div",1)(2,"span",2),e._uU(3),e.qZA(),e.TgZ(4,"span",3),e.YNc(5,S2,2,1,"p",4),e.qZA(),e.TgZ(6,"ul"),e.YNc(7,E2,12,21,"li",5),e.qZA(),e.YNc(8,M2,8,6,"div",6),e.qZA(),e.TgZ(9,"div",7)(10,"button",8),e.NdJ("click",function(){return A.data.buttons.first.action()}),e._uU(11),e.qZA(),e.YNc(12,p1,2,2,"button",9),e.qZA()()),2&o&&(e.xp6(3),e.Oqu(A.data.title),e.xp6(2),e.Q6J("ngForOf",A.data.description),e.xp6(2),e.Q6J("ngForOf",A.data.rows),e.xp6(1),e.Q6J("ngForOf",A.data.extraInfo),e.xp6(1),e.Q6J("ngClass",A.data.buttons.second?"multiple-btn":"single-btn"),e.xp6(1),e.Q6J("ngClass",A.data.buttons.first.class),e.xp6(1),e.Oqu(A.data.buttons.first.title),e.xp6(1),e.Q6J("ngIf",A.data.buttons.second))},directives:[G.sg,G.O5,G.mk],pipes:[La.sz,La.pm],encapsulation:2}),T})();var g1=n(56656);function m1(T,S){if(1&T&&(e.TgZ(0,"span",12),e._uU(1),e.qZA()),2&T){const o=e.oxw().$implicit;e.xp6(1),e.hij(" ",o.descriptionV2," ")}}function x2(T,S){if(1&T&&(e.TgZ(0,"div",10)(1,"span"),e._uU(2),e.qZA(),e.YNc(3,m1,2,1,"span",11),e.qZA()),2&T){const o=S.$implicit,A=e.oxw();e.ekj("title",o.usageCreditType===A.usageCreditType.Titr)("total",o.usageCreditType===A.usageCreditType.TotalCommissions),e.xp6(1),e.ekj("gray-light",o.usageCreditType!==A.usageCreditType.Titr),e.xp6(1),e.hij(" ",o.title," "),e.xp6(1),e.Q6J("ngIf",o.usageCreditType!==A.usageCreditType.Titr)}}function v1(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"button",8),e.NdJ("click",function(){return e.CHM(o),e.oxw().data.buttons.second.action()}),e._uU(1),e.qZA()}if(2&T){const o=e.oxw();e.xp6(1),e.Oqu(o.data.buttons.second.title)}}let I2=(()=>{class T{constructor(o){this.expenseCreditDataPassingService=o,this.usageCreditType=g1.PR}ngOnInit(){this.data=vr.j.data.value,this.faqLink=this.data.footer??this.expenseCreditDataPassingService.getContractInfoResponse?.contractFaqLink??"https://wepod.ir/faq/poshtvane"}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(nd.Q))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-expense-credit-commission-modal"]],decls:13,vars:6,consts:function(){let S;return S="\u0633\u0648\u0627\u0644\u0627\u062A \u0645\u062A\u062F\u0627\u0648\u0644",[[1,"expense-credit-commission",2,"position","relative"],[1,"expense-credit-commission-body"],[1,"bolder","text-center"],["class","row",3,"title","total",4,"ngFor","ngForOf"],["target","_blank",1,"btn","pre-req",3,"href"],["src","/assets/images/services/loan/expense-credit/fq-icon.svg","alt",""],S,[1,"expense-credit-new-factor-footer",3,"ngClass"],[1,"btn",3,"click"],["class","btn",3,"click",4,"ngIf"],[1,"row"],["class","bold",4,"ngIf"],[1,"bold"]]},template:function(o,A){1&o&&(e.TgZ(0,"div",0)(1,"div",1)(2,"h5",2),e._uU(3),e.qZA(),e.YNc(4,x2,4,8,"div",3),e.TgZ(5,"a",4),e._UZ(6,"img",5),e.TgZ(7,"span"),e.SDv(8,6),e.qZA()()(),e.TgZ(9,"div",7)(10,"button",8),e.NdJ("click",function(){return A.data.buttons.first.action()}),e._uU(11),e.qZA(),e.YNc(12,v1,2,1,"button",9),e.qZA()()),2&o&&(e.xp6(3),e.Oqu(A.data.title),e.xp6(1),e.Q6J("ngForOf",A.data.rows),e.xp6(1),e.s9C("href",A.faqLink,e.LSH),e.xp6(4),e.Q6J("ngClass",A.data.buttons.second?"multiple-btn":"single-btn"),e.xp6(2),e.Oqu(A.data.buttons.first.title),e.xp6(1),e.Q6J("ngIf",A.data.buttons.second))},directives:[G.sg,G.O5,G.mk],encapsulation:2}),T})();var Pi=n(24006),If=n(39851),D2=n(793),sg=n(78058),wh=n(19885);function P2(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"input",16),e.NdJ("keyup",function(ee){return e.CHM(o),e.oxw().keytab(ee)}),e.qZA()}if(2&T){const o=S.$implicit,A=S.index;e.MGl("id","otp-",o,"")("formControlName","otp",o,""),e.s9C("tabindex",A+1)}}function O2(T,S){1&T&&(e.TgZ(0,"span"),e._uU(1,"\u0627\u0631\u0633\u0627\u0644 \u0645\u062c\u062f\u062f"),e.qZA())}function R2(T,S){if(1&T&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"countDownTime"),e.qZA()),2&T){const o=e.oxw();e.xp6(1),e.hij(" \u0632\u0645\u0627\u0646 \u0628\u0627\u0642\u06cc\u200c\u0645\u0627\u0646\u062f\u0647 ",e.lcZ(2,1,o.timeLeft)," ")}}const ag=function(){return[1,2,3,4,5]};let L2=(()=>{class T{constructor(o,A,ee,he,Ye){this.validation=o,this.profileService=A,this.validationDataPassingService=ee,this.formBuilder=he,this.getProfileDataService=Ye,this.timeLeft=0,this.canResendCode=!1,this.disabledSubmit=!0}ngOnInit(){vr.j.data.value.expire?this.startTimer(vr.j.data.value.expire):this.validation.resendValidationOtpCode(vr.j.data.value.reportId).subscribe(()=>{this.getCreditValidationOtpRemainingTime()},()=>{(0,vr.Mr)()}),this.getProfileDataService.getValue().then(A=>{this.cellPhoneNo=A.cellPhoneNumber});const o={};for(let A=1;A<=5;A++)o["otp"+A]=["",[Pi.kI.required,Pi.kI.pattern(/[0-9]/)]];this.verifyOtpForm=this.formBuilder.group(o)}getCreditValidationOtpRemainingTime(){this.validation.getValidationOtpRemainingTime(vr.j.data.value.reportId).subscribe(o=>{o.expireInSecond?this.startTimer(o.expireInSecond):this.canResendCode=!0})}ngAfterViewInit(){document.getElementById("otp-1").focus()}startTimer(o){this.canResendCode=!1;const A=(new Date).getTime();this.timeLeft=o,(0,hi.Jj)()&&(clearInterval(this.interval),this.interval=setInterval(()=>{const ee=o-Math.floor(((new Date).getTime()-A)/1e3);ee>0?this.timeLeft=ee:(clearInterval(this.interval),this.canResendCode=!0,this.disabledSubmit=!0)},1e3))}resendCode(){this.canResendCode&&this.validation.resendValidationOtpCode(vr.j.data.value.reportId).subscribe(()=>{this.getCreditValidationOtpRemainingTime(),this.disabledSubmit=!1},()=>{(0,vr.Mr)()})}verifyOtp(){if(this.verifyOtpForm.valid){this.otpCode="";for(let o=1;o<=5;o++)this.otpCode+=this.verifyOtpForm.value["otp"+o];this.disabledSubmit||(this.disabledSubmit=!0,this.validation.verifyValidationOtpCode(vr.j.data.value.reportId,this.otpCode).subscribe(()=>{this.validationDataPassingService.enableOtpInserting.next(!0),(0,vr.Mr)()},()=>{this.disabledSubmit=!1,this.validationDataPassingService.enableOtpInserting.next(!0),(0,vr.Mr)()}))}}keytab(o){const A=new If.M;for(let he=1;he<=5;he++)o.target.id==="otp-"+he&&this.verifyOtpForm.controls["otp"+he].setValue(A.transform(o.target.value));let ee=o.target.nextElementSibling;if(8===o.keyCode&&!ee)return o.target.value=null,ee=o.target.previousElementSibling,void ee.focus();if(8===o.keyCode&&(o.target.value=null,ee=o.target.previousElementSibling,ee.focus()),ee&&(o.target.value||8===o.keyCode)&&ee.focus(),this.verifyOtpForm.valid){this.otpCode="";for(let he=1;he<=5;he++)this.otpCode+=this.verifyOtpForm.value["otp"+he];5===this.otpCode.length&&(this.disabledSubmit=!1)}}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(D2.R),e.Y36(n1.H),e.Y36(sg.k),e.Y36(Pi.qu),e.Y36(xc.o))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-contract-validation-otp-modal"]],decls:21,vars:8,consts:[["id","contract-validation-modal-wrapper",1,"pod-card-activate-otp-wrapper"],[1,"container-per-page"],[1,"activate-otp-header",2,"margin-bottom","0"],["src","/assets/images/pod-card/validation-code.svg","alt",""],[1,"activate-otp-header-title","bold"],[1,"gray-light"],[3,"formGroup"],[1,"form-wrapper"],[1,"register-box-input"],["type","tel","pattern","[0-9]+","class","form-control","autocomplete","one-time-code","inputmode","numeric","maxlength","1","required","","oninput","this.value = this.value.replace(/[^\u06f0\u06f1\u06f2\u06f3\u06f4\u06f5\u06f6\u06f7\u06f8\u06f9\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u06690-9]/g, '').replace(/(\\..*)\\./g, '$1');",3,"id","formControlName","tabindex","keyup",4,"ngFor","ngForOf"],["id","otp-submit-btn",1,"btn-success","btn","w-100",3,"disabled","click"],[1,"activate-otp-resend"],[1,"gray-light",2,"width","50%"],[2,"width","50%"],[1,"btn-success","btn","btn-small","w-auto","brand-green",3,"disabled","click"],[4,"ngIf"],["type","tel","pattern","[0-9]+","autocomplete","one-time-code","inputmode","numeric","maxlength","1","required","","oninput","this.value = this.value.replace(/[^\u06f0\u06f1\u06f2\u06f3\u06f4\u06f5\u06f6\u06f7\u06f8\u06f9\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u06690-9]/g, '').replace(/(\\..*)\\./g, '$1');",1,"form-control",3,"id","formControlName","tabindex","keyup"]],template:function(o,A){1&o&&(e.TgZ(0,"article",0)(1,"div",1)(2,"div",2),e._UZ(3,"img",3),e.TgZ(4,"p",4),e._uU(5," \u06a9\u062f \u0627\u0639\u062a\u0628\u0627\u0631\u0633\u0646\u062c\u06cc \u0627\u0631\u0633\u0627\u0644 \u0634\u062f\u0647 \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f. "),e.qZA(),e.TgZ(6,"p",5),e._uU(7),e.qZA()(),e.TgZ(8,"form",6)(9,"div",7)(10,"div",8),e.YNc(11,P2,1,3,"input",9),e.qZA(),e.TgZ(12,"button",10),e.NdJ("click",function(){return A.verifyOtp()}),e._uU(13," \u062a\u0627\u06cc\u06cc\u062f "),e.qZA(),e.TgZ(14,"section",11)(15,"p",12),e._uU(16,"\u06a9\u062f \u0627\u0639\u062a\u0628\u0627\u0631\u0633\u0646\u062c\u06cc \u0631\u0627 \u062f\u0631\u06cc\u0627\u0641\u062a \u0646\u06a9\u0631\u062f\u0647\u200c\u0627\u06cc\u062f\u061f"),e.qZA(),e.TgZ(17,"div",13)(18,"button",14),e.NdJ("click",function(){return A.resendCode()}),e.YNc(19,O2,2,0,"span",15),e.YNc(20,R2,3,3,"span",15),e.qZA()()()()()()()),2&o&&(e.xp6(7),e.hij(" ",A.cellPhoneNo," "),e.xp6(1),e.Q6J("formGroup",A.verifyOtpForm),e.xp6(3),e.Q6J("ngForOf",e.DdM(7,ag)),e.xp6(1),e.Q6J("disabled",A.disabledSubmit),e.xp6(6),e.Q6J("disabled",!A.canResendCode),e.xp6(1),e.Q6J("ngIf",A.canResendCode),e.xp6(1),e.Q6J("ngIf",!A.canResendCode))},directives:[Pi._Y,Pi.JL,Pi.sg,G.sg,Pi.Fj,Pi.c5,Pi.nD,Pi.Q7,Pi.JJ,Pi.u,G.O5],pipes:[wh.q],encapsulation:2}),T})();var og=n(28864);function k2(T,S){if(1&T&&(e.TgZ(0,"p",3),e._uU(1),e.qZA()),2&T){const o=S.$implicit,A=S.index;e.xp6(1),e.AsE(" ",A+1,") ",o," ")}}let N2=(()=>{class T{constructor(o,A,ee){this.loanService=o,this.routingAppService=A,this.expenseCreditDataPassingService=ee,this.slideModalService=vr.j}ngOnInit(){}removeUserFromContract(){(0,vr.Mr)(),js.hg.next({loading:!0,cancelable:!1,text:"\u0627\u0646\u0635\u0631\u0627\u0641"}),this.loanService.removeUserFromContract(this.expenseCreditDataPassingService.contractId).subscribe(()=>{this.routingAppService.back()})}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(og.BZ),e.Y36(ua.s),e.Y36(nd.Q))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-failed-validation-modal"]],decls:13,vars:1,consts:[[1,"active-cyber-card-modal-wrapper","failed-validation-modal"],[1,"modal-content"],["src","/assets/images/receipt/unsuccess.svg","alt",""],[1,"bold"],["class","bold",4,"ngFor","ngForOf"],[1,"modal-footer"],[1,"failed-validation-modal-button","btn","w-100","red-text",3,"click"]],template:function(o,A){1&o&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"img",2),e.TgZ(3,"h5",3),e._uU(4,"\u0631\u062f \u062f\u0631\u062e\u0648\u0627\u0633\u062a"),e.qZA(),e.TgZ(5,"p"),e._uU(6," \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u062a\u0633\u0647\u06cc\u0644\u0627\u062a \u0634\u0645\u0627 \u0628\u0647 \u062f\u0644\u0627\u06cc\u0644 \u0632\u06cc\u0631 \u0631\u062f \u0634\u062f: "),e.qZA(),e.YNc(7,k2,2,2,"p",4),e.TgZ(8,"p"),e._uU(9," \u0628\u0639\u062f \u0627\u0632 \u0631\u0641\u0639 \u0627\u06cc\u0646 \u0645\u0648\u0627\u0631\u062f \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0645\u062c\u062f\u062f\u0627 \u0628\u0631\u0627\u06cc \u062f\u0631\u06cc\u0627\u0641\u062a \u0627\u0639\u062a\u0628\u0627\u0631 \u0627\u0642\u062f\u0627\u0645 \u06a9\u0646\u06cc\u062f. "),e.qZA()(),e.TgZ(10,"section",5)(11,"button",6),e.NdJ("click",function(){return A.removeUserFromContract()}),e._uU(12," \u0627\u0646\u0635\u0631\u0627\u0641 "),e.qZA()()()),2&o&&(e.xp6(7),e.Q6J("ngForOf",A.slideModalService.data.value.validationErrors))},directives:[G.sg],encapsulation:2}),T})(),F2=(()=>{class T{constructor(o){this.routingAppService=o,this.developmentMode=ni.Sq}ngOnInit(){}redirectToCashIn(){(0,vr.Mr)(),this.routingAppService.navigate(["wallet/cash-in"],{queryParams:{btnBack:!0}})}closeDialog(){(0,vr.Mr)()}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(ua.s))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-balance-warning-modal"]],decls:11,vars:0,consts:function(){let S,o,A,ee;return S="\u0645\u0648\u062C\u0648\u062F\u06CC \u06A9\u0627\u0641\u06CC \u0646\u06CC\u0633\u062A!",o="\u0644\u0637\u0641\u0627 \u0628\u0631\u0627\u06CC \u0627\u0646\u062C\u0627\u0645 \u0627\u06CC\u0646 \u0639\u0645\u0644\u06CC\u0627\u062A \u0645\u0648\u062C\u0648\u062F\u06CC \u062D\u0633\u0627\u0628 \u062F\u06CC\u062C\u06CC\u062A\u0627\u0644 \u062E\u0648\u062F \u0631\u0627 \u0627\u0641\u0632\u0627\u06CC\u0634 \u062F\u0647\u06CC\u062F",A="\u0634\u0627\u0631\u0698 \u062D\u0633\u0627\u0628",ee="\u0628\u06CC\u062E\u06CC\u0627\u0644",[[1,"wallet-balance-warning-wrapper"],["src","/assets/images/wallet/danger.svg","alt","danger"],S,o,[1,"modal-footer"],[3,"click"],A,ee]},template:function(o,A){1&o&&(e.TgZ(0,"div",0),e._UZ(1,"img",1),e.TgZ(2,"h5"),e.SDv(3,2),e.qZA(),e.TgZ(4,"p"),e.SDv(5,3),e.qZA(),e.TgZ(6,"section",4)(7,"button",5),e.NdJ("click",function(){return A.redirectToCashIn()}),e.SDv(8,6),e.qZA(),e.TgZ(9,"button",5),e.NdJ("click",function(){return A.closeDialog()}),e.SDv(10,7),e.qZA()()())},encapsulation:2}),T})(),B2=(()=>{class T{constructor(o){this.routingAppService=o}ngOnInit(){}goToProfileCompletion(){(0,vr.Mr)(),this.routingAppService.navigate(["profile/completion"],{replaceUrl:!0})}closeModal(){(0,vr.Mr)()}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(ua.s))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-profile-completion-slide-modal"]],decls:11,vars:0,consts:[[1,"micro-facilities-branch-confirmation-wrapper"],["src","assets/images/profile/profile-completion-modal-illustration.svg","alt",""],[1,"bolder"],[1,"branch-confirmation-btns","modal-footer"],[1,"branch-confirmation-btns-confirm",3,"click"],[1,"branch-confirmation-btns-close",3,"click"]],template:function(o,A){1&o&&(e.TgZ(0,"div",0),e._UZ(1,"img",1),e.TgZ(2,"h5",2),e._uU(3," \u062a\u06a9\u0645\u06cc\u0644 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u06a9\u0627\u0631\u0628\u0631\u06cc "),e.qZA(),e.TgZ(4,"p"),e._uU(5," \u0648\u06cc\u067e\u0627\u062f\u06cc \u0639\u0632\u06cc\u0632\u060c \u0628\u0631\u0627\u06cc \u0627\u0646\u062c\u0627\u0645 \u0627\u06cc\u0646 \u0639\u0645\u0644\u06cc\u0627\u062a \u0628\u0627\u06cc\u062f \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u06a9\u0627\u0631\u0628\u0631\u06cc \u062e\u0648\u062f \u0631\u0627 \u062a\u06a9\u0645\u06cc\u0644 \u06a9\u0646\u06cc\u062f. "),e.qZA(),e.TgZ(6,"section",3)(7,"button",4),e.NdJ("click",function(){return A.goToProfileCompletion()}),e._uU(8,"\u062a\u06a9\u0645\u06cc\u0644 \u0627\u0637\u0644\u0627\u0639\u0627\u062a"),e.qZA(),e.TgZ(9,"button",5),e.NdJ("click",function(){return A.closeModal()}),e._uU(10,"\u0628\u0633\u062a\u0646"),e.qZA()()())},encapsulation:2}),T})();function U2(T,S){if(1&T&&(e.TgZ(0,"h5",6),e._uU(1),e.qZA()),2&T){const o=e.oxw();e.xp6(1),e.hij(" ",o.errorText," ")}}function H2(T,S){1&T&&(e.TgZ(0,"h5",6),e._uU(1," \u0645\u062c\u062f\u062f\u0627 \u062a\u0644\u0627\u0634 \u06a9\u0646\u06cc\u062f. "),e.qZA())}let V2=(()=>{class T{constructor(){}ngOnInit(){this.startTimer()}startTimer(){this.errorText=vr.j.data.value.errorText}close(){vr.j.data.value.close?vr.j.data.value.close():(0,vr.Mr)()}}return T.\u0275fac=function(o){return new(o||T)},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-register-locked-modal"]],decls:8,vars:2,consts:[[1,"active-cyber-card-modal-wrapper","failed-validation-modal"],[1,"modal-content"],["src","/assets/images/register/locked-timer.svg","alt",""],["class","bold",4,"ngIf"],[1,"modal-footer"],[1,"failed-validation-modal-button","btn","w-100","gray-light",3,"click"],[1,"bold"]],template:function(o,A){1&o&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"img",2),e.YNc(3,U2,2,1,"h5",3),e.YNc(4,H2,2,0,"h5",3),e.qZA(),e.TgZ(5,"section",4)(6,"button",5),e.NdJ("click",function(){return A.close()}),e._uU(7," \u0628\u0633\u062a\u0646 "),e.qZA()()()),2&o&&(e.xp6(3),e.Q6J("ngIf",A.errorText),e.xp6(1),e.Q6J("ngIf",!A.errorText))},directives:[G.O5],encapsulation:2}),T})();var Y2=n(39446),_1=n(76845),y1=n(62852);function C1(T,S){1&T&&(e.TgZ(0,"p"),e._uU(1," \u0627\u06cc\u0646 \u0647\u0632\u06cc\u0646\u0647 \u0627\u0632 \u0641\u0647\u0631\u0633\u062a \u0637\u0644\u0628\u200c\u0647\u0627\u06cc \u0634\u0645\u0627 \u0648 \u0628\u062f\u0647\u06cc\u200c\u0647\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631 \u0627\u0632 \u0644\u06cc\u0633\u062a \u0637\u0644\u0628 \u0647\u0627\u06cc \u06af\u0631\u0648\u0647\u06cc \u062d\u0630\u0641 \u0645\u06cc\u200c\u0634\u0648\u062f. \u0627\u06af\u0631 \u0637\u0644\u0628 \u0634\u0645\u0627 \u067e\u0631\u062f\u0627\u062e\u062a \u0634\u062f\u0647 \u0627\u0633\u062a \u062a\u0627\u06cc\u06cc\u062f \u06a9\u0646\u06cc\u062f "),e.qZA())}function j2(T,S){1&T&&(e.TgZ(0,"p"),e._uU(1," \u0627\u06cc\u0646 \u0642\u0631\u0636 \u0627\u0632 \u0641\u0647\u0631\u0633\u062a \u0637\u0644\u0628\u200c\u0647\u0627\u06cc \u0634\u0645\u0627 \u0648 \u0628\u062f\u0647\u06cc\u200c\u0647\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631 \u0642\u0631\u0636\u200c\u06af\u06cc\u0631\u0646\u062f\u0647 \u062d\u0630\u0641 \u0645\u06cc\u200c\u0634\u0648\u062f. \u0627\u06af\u0631 \u0637\u0644\u0628 \u0634\u0645\u0627 \u067e\u0631\u062f\u0627\u062e\u062a \u0634\u062f\u0647 \u0627\u0633\u062a \u062a\u0627\u06cc\u06cc\u062f \u06a9\u0646\u06cc\u062f "),e.qZA())}let b1=(()=>{class T{constructor(o,A,ee,he,Ye){this.creditDebitGroupDataPassingService=o,this.creditDebitBorrowDataPassingService=A,this.userCreditService=ee,this.routingAppService=he,this.toastrService=Ye}ngOnInit(){}settle(){let o;o=this.creditDebitGroupDataPassingService.checkTypeDataPassing?this.creditDebitGroupDataPassingService.transferRequestId:this.creditDebitBorrowDataPassingService.borrowerTransferRequestId,(0,vr.Mr)(),this.userCreditService.confirmManualPayment(o).subscribe(()=>{this.toastrService.success("\u062a\u0633\u0648\u06cc\u0647 \u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u0627\u0646\u062c\u0627\u0645 \u0634\u062f."),this.routingAppService.back()})}closeDialog(){(0,vr.Mr)()}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(Y2.M),e.Y36(_1.J),e.Y36(y1.Z),e.Y36(ua.s),e.Y36(Go.X))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-confirmation-settlement-credit-modal"]],decls:10,vars:2,consts:[[1,"confirmation-settlement-credit-modal-wrapper"],[1,"modal-content"],["src","/assets/images/shared/warning.svg","alt","\u0627\u062e\u0637\u0627\u0631"],[4,"ngIf"],[1,"modal-footer"],[3,"click"]],template:function(o,A){1&o&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"img",2),e.YNc(3,C1,2,0,"p",3),e.YNc(4,j2,2,0,"p",3),e.qZA(),e.TgZ(5,"section",4)(6,"button",5),e.NdJ("click",function(){return A.settle()}),e._uU(7,"\u062a\u0627\u06cc\u06cc\u062f"),e.qZA(),e.TgZ(8,"button",5),e.NdJ("click",function(){return A.closeDialog()}),e._uU(9," \u0628\u0633\u062a\u0646 "),e.qZA()()()),2&o&&(e.xp6(3),e.Q6J("ngIf",A.creditDebitGroupDataPassingService.checkTypeDataPassing),e.xp6(1),e.Q6J("ngIf",A.creditDebitBorrowDataPassingService.checkTypeDataPassing))},directives:[G.O5],encapsulation:2}),T})(),G2=(()=>{class T{constructor(o,A){this.physicalCardDataPassingService=o,this.getProfileDataService=A}ngOnInit(){this.data=vr.j.data.value}close(){(0,vr.Mr)()}confirm(){(0,vr.Mr)(),this.getProfileDataService.getValue().then(o=>{this.physicalCardDataPassingService.validationConfirmationData={from:o.firstName+" "+o.lastName,fromImg:o.profileImage,toPhysicalCard:!0,to:"\u0647\u0632\u06cc\u0646\u0647 \u0635\u062f\u0648\u0631 \u0648 \u0627\u0631\u0633\u0627\u0644 \u06a9\u0627\u0631\u062a \u0628\u0627\u0646\u06a9\u06cc",toImg:"assets/images/shared/pasargad-background.svg",amounts:[{main:!1,amount:this.physicalCardDataPassingService.totalAmount,label:"\u0645\u0628\u0644\u063a",hideRial:!0,lineThrough:!0},{main:!0,amount:this.physicalCardDataPassingService.payableAmount,label:"\u0645\u0628\u0644\u063a \u067e\u0631\u062f\u0627\u062e\u062a\u06cc",green:!0,hideRial:!0}]},this.physicalCardDataPassingService.totalAmount===this.physicalCardDataPassingService.payableAmount&&(this.physicalCardDataPassingService.validationConfirmationData.amounts=[{main:!0,amount:this.physicalCardDataPassingService.payableAmount,label:"\u0645\u0628\u0644\u063a \u0646\u0647\u0627\u06cc\u06cc",green:!0,hideRial:!0}]),setTimeout(()=>{this.physicalCardDataPassingService.showReceipt=!0},500)})}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(Gd.z),e.Y36(xc.o))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-physical-card-address-modal"]],inputs:{providerName:"providerName",providerLogo:"providerLogo",providerText:"providerText"},decls:19,vars:3,consts:[[1,"physical-card-address-modal-wrapper"],[1,"modal-content"],["src","/assets/images/physical-card/physical-card-address.svg","alt","\u0627\u062e\u0637\u0627\u0631"],[1,"post-date-title"],[1,"date-box"],[1,"post-box"],[1,"post-logo"],["alt","provider-logo",3,"src"],[1,"post-info"],[1,"post-info-title"],[1,"post-info-text"],[1,"post-warning-text"],[1,"btn","btn-success","confirm-button",3,"click"]],template:function(o,A){1&o&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"img",2),e.TgZ(3,"p",3),e._uU(4," \u062a\u0627\u0631\u06cc\u062e \u0648 \u0632\u0645\u0627\u0646 \u0627\u0631\u0633\u0627\u0644 \u06a9\u0627\u0631\u062a "),e.qZA(),e.TgZ(5,"h4",4),e._uU(6),e.qZA(),e.TgZ(7,"div",5)(8,"div",6),e._UZ(9,"img",7),e.qZA(),e.TgZ(10,"div",8)(11,"p",9),e._uU(12," \u0646\u062d\u0648\u0647 \u0627\u0631\u0633\u0627\u0644: "),e.qZA(),e.TgZ(13,"p",10),e._uU(14),e.qZA()()(),e.TgZ(15,"p",11),e._uU(16,"\u0628\u0631\u0627\u06cc \u062f\u0631\u06cc\u0627\u0641\u062a \u06a9\u0627\u0631\u062a \u0627\u0632 \u0645\u0627\u0645\u0648\u0631 \u067e\u0633\u062a \u06a9\u0627\u0631\u062a \u0645\u0644\u06cc \u062e\u0648\u062f \u0631\u0627 \u0647\u0645\u0631\u0627\u0647 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f."),e.qZA(),e.TgZ(17,"button",12),e.NdJ("click",function(){return A.confirm()}),e._uU(18,"\u062a\u0627\u06cc\u06cc\u062f"),e.qZA()()()),2&o&&(e.xp6(6),e.hij(" ",A.data.providerText," "),e.xp6(3),e.Q6J("src",A.data.providerLogo,e.LSH),e.xp6(5),e.hij(" ",A.data.providerName," "))},encapsulation:2}),T})();var lg=n(39310);function W2(T,S){if(1&T&&e._UZ(0,"img",13),2&T){const o=e.oxw(3);e.Q6J("src",null==o.data?null:o.data.img,e.LSH)}}function ug(T,S){if(1&T&&(e.TgZ(0,"div",10),e._UZ(1,"ng-lottie",11),e.YNc(2,W2,1,1,"img",7),e.TgZ(3,"p",12),e._uU(4),e.qZA()()),2&T){const o=e.oxw(2);e.xp6(1),e.Q6J("options",o.options),e.xp6(1),e.Q6J("ngIf",null==o.data?null:o.data.img),e.xp6(2),e.Oqu(null==o.data?null:o.data.title)}}function cg(T,S){if(1&T&&e._UZ(0,"img",13),2&T){const o=e.oxw(2);e.Q6J("src",null==o.data?null:o.data.img,e.LSH)}}function S1(T,S){if(1&T&&(e.TgZ(0,"h5",14),e._uU(1),e.qZA()),2&T){const o=e.oxw(2);e.xp6(1),e.hij(" ",null==o.data?null:o.data.title," ")}}function dg(T,S){if(1&T&&e._UZ(0,"p",15),2&T){const o=S.$implicit,A=e.oxw(2);e.ekj("right-direction",A.data.rtlDesc),e.Q6J("innerHTML",o,e.oJD)}}function Z2(T,S){if(1&T&&(e.TgZ(0,"section",5),e.YNc(1,ug,5,3,"div",6),e.YNc(2,cg,1,1,"img",7),e.YNc(3,S1,2,1,"h5",8),e.YNc(4,dg,1,3,"p",9),e.qZA()),2&T){const o=e.oxw();e.xp6(1),e.Q6J("ngIf",null==o.data?null:o.data.animation),e.xp6(1),e.Q6J("ngIf",(null==o.data?null:o.data.img)&&!(null!=o.data&&o.data.animation)),e.xp6(1),e.Q6J("ngIf",(null==o.data?null:o.data.title)&&!(null!=o.data&&o.data.animation)),e.xp6(1),e.Q6J("ngForOf",null==o.data?null:o.data.desc)}}function z2(T,S){if(1&T&&e._UZ(0,"img",13),2&T){const o=e.oxw(2);e.Q6J("src",null==o.data?null:o.data.buttons.first.img,e.LSH)}}function fg(T,S){if(1&T&&e._UZ(0,"img",13),2&T){const o=e.oxw(3);e.Q6J("src",null==o.data?null:o.data.buttons.second.img,e.LSH)}}function K2(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"button",17),e.NdJ("click",function(){return e.CHM(o),e.oxw(2).secondAction()}),e.YNc(1,fg,1,1,"img",7),e._uU(2),e.qZA()}if(2&T){const o=e.oxw(2);e.ekj("basic-modal-btns-confirm",null==o.data?null:o.data.buttons.second.green)("basic-modal-btns-close",null==o.data?null:o.data.buttons.second.gray)("basic-modal-btns-red",null==o.data?null:o.data.buttons.second.red)("full-size-button",null==o.data?null:o.data.buttons.second.fullSize),e.xp6(1),e.Q6J("ngIf",null==o.data?null:o.data.buttons.second.img),e.xp6(1),e.hij(" ",null==o.data?null:o.data.buttons.second.title," ")}}function T1(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"section",16)(1,"button",17),e.NdJ("click",function(){return e.CHM(o),e.oxw().firstAction()}),e.YNc(2,z2,1,1,"img",7),e._uU(3),e.qZA(),e.YNc(4,K2,3,10,"button",18),e.qZA()}if(2&T){const o=e.oxw();e.ekj("direction",null==o.data?null:o.data.buttons.first.fullSize),e.xp6(1),e.ekj("basic-modal-btns-confirm",null==o.data?null:o.data.buttons.first.green)("btn-success",null==o.data?null:o.data.buttons.first.confirm)("basic-modal-btns-close",null==o.data?null:o.data.buttons.first.gray)("basic-modal-btns-red",null==o.data?null:o.data.buttons.first.red)("full-size-button",null==o.data?null:o.data.buttons.first.fullSize)("single-button",!(null!=o.data&&o.data.buttons.second)),e.xp6(1),e.Q6J("ngIf",null==o.data?null:o.data.buttons.first.img),e.xp6(1),e.hij(" ",null==o.data?null:o.data.buttons.first.title," "),e.xp6(1),e.Q6J("ngIf",null==o.data?null:o.data.buttons.second)}}function q2(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"button",19),e.NdJ("click",function(){return e.CHM(o),e.oxw().firstAction()}),e._uU(1),e.qZA()}if(2&T){const o=e.oxw();e.xp6(1),e.hij("",null==o.data||null==o.data.buttons||null==o.data.buttons.first?null:o.data.buttons.first.title," ")}}function E1(T,S){if(1&T&&(e.TgZ(0,"section",20)(1,"p"),e._uU(2),e.qZA()()),2&T){const o=e.oxw();e.xp6(2),e.Oqu(null==o.data?null:o.data.footer)}}let J2=(()=>{class T{constructor(){}ngOnInit(){this.data=vr.j.basicModalData.value,this.options={path:this.data.animation??null}}firstAction(){this.data.buttons.first.action()}secondAction(){this.data.buttons.second.action()}}return T.\u0275fac=function(o){return new(o||T)},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-slide-modal-basic"]],decls:5,vars:5,consts:[[1,"basic-modal-wrapper",3,"ngClass"],["class","basic-modal-container",4,"ngIf"],["class","basic-modal-btns modal-footer",3,"direction",4,"ngIf"],["class","btn btn-success btn-confirm",3,"click",4,"ngIf"],["class","basic-modal-footer",4,"ngIf"],[1,"basic-modal-container"],["class","animation-box",4,"ngIf"],["alt","",3,"src",4,"ngIf"],["class","font-base bolder",4,"ngIf"],[3,"innerHTML","right-direction",4,"ngFor","ngForOf"],[1,"animation-box"],[3,"options"],[1,"green-text","bold","font-small"],["alt","",3,"src"],[1,"font-base","bolder"],[3,"innerHTML"],[1,"basic-modal-btns","modal-footer"],[3,"click"],[3,"basic-modal-btns-confirm","basic-modal-btns-close","basic-modal-btns-red","full-size-button","click",4,"ngIf"],[1,"btn","btn-success","btn-confirm",3,"click"],[1,"basic-modal-footer"]],template:function(o,A){1&o&&(e.TgZ(0,"div",0),e.YNc(1,Z2,5,4,"section",1),e.YNc(2,T1,5,17,"section",2),e.YNc(3,q2,2,1,"button",3),e.YNc(4,E1,3,1,"section",4),e.qZA()),2&o&&(e.Q6J("ngClass",null==A.data?null:A.data.extraClass),e.xp6(1),e.Q6J("ngIf",(null==A.data?null:A.data.img)||(null==A.data?null:A.data.title)||(null==A.data?null:A.data.desc)),e.xp6(1),e.Q6J("ngIf",(null==A.data?null:A.data.buttons)&&!(null!=A.data&&null!=A.data.buttons&&null!=A.data.buttons.first&&A.data.buttons.first.confirm)),e.xp6(1),e.Q6J("ngIf",null==A.data||null==A.data.buttons||null==A.data.buttons.first?null:A.data.buttons.first.confirm),e.xp6(1),e.Q6J("ngIf",null==A.data?null:A.data.footer))},directives:[G.mk,G.O5,lg.e$,G.sg],encapsulation:2}),T})();var hg=n(11495);function p6(T,S){1&T&&e._UZ(0,"img",7)}function $2(T,S){1&T&&e._UZ(0,"img",8)}function I0(T,S){if(1&T&&(e.TgZ(0,"h5",9),e._uU(1),e.qZA()),2&T){const o=e.oxw();e.xp6(1),e.hij(" ",null==o.data?null:o.data.title," ")}}function Q2(T,S){if(1&T&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&T){const o=e.oxw();e.xp6(1),e.Oqu(null==o.data?null:o.data.message)}}function Af(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"button",13),e.NdJ("click",function(){const he=e.CHM(o).$implicit;return e.oxw(2).goToServiceOrRoute(he.deepLink)}),e._uU(1),e.qZA()}if(2&T){const o=S.$implicit,A=e.oxw(2);e.ekj("full-size-button",A.data.isBusinessRule),e.xp6(1),e.hij(" ",null==o?null:o.title," ")}}function xh(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(){return e.CHM(o),e.oxw(2).close()}),e._uU(1," \u0627\u0646\u0635\u0631\u0627\u0641 "),e.qZA()}}function X2(T,S){if(1&T&&(e.TgZ(0,"section",10),e.YNc(1,Af,2,3,"button",11),e.YNc(2,xh,2,0,"button",12),e.qZA()),2&T){const o=e.oxw();e.xp6(1),e.Q6J("ngForOf",null==o.data?null:o.data.buttons),e.xp6(1),e.Q6J("ngIf",!o.data.isBusinessRule)}}function g6(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(){return e.CHM(o),e.oxw(2).close()}),e._uU(1," \u0628\u0633\u062a\u0646 "),e.qZA()}if(2&T){const o=e.oxw(2);e.ekj("full-size-button",o.data.isBusinessRule)}}function M1(T,S){if(1&T&&(e.TgZ(0,"section",10),e.YNc(1,g6,2,2,"button",15),e.qZA()),2&T){const o=e.oxw();e.xp6(1),e.Q6J("ngIf",o.data.isBusinessRule)}}let eC=(()=>{class T{constructor(o,A,ee){this.thirdParty=o,this.routingAppService=A,this.serviceStoreDataPassingService=ee}ngOnInit(){this.data=vr.j.dynamicButtonsModalData.value}close(){(0,vr.Mr)(),setTimeout(()=>{if(!this.data.isBusinessRule){const o=localStorage.getItem("primaryUrl");o?(localStorage.removeItem("primaryUrl"),this.routingAppService.navigate([o])):this.routingAppService.navigate(["landing"])}},500)}goToServiceOrRoute(o){(0,vr.Mr)(),this.serviceStoreDataPassingService.clickedThirdParty(o)}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(zv.qO),e.Y36(ua.s),e.Y36(hg.p))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-slide-modal-dynamic-buttons"]],decls:8,vars:6,consts:[[1,"basic-modal-wrapper"],[1,"basic-modal-container"],["src","assets/images/card-to-card/transaction-report/failed.svg","alt","",4,"ngIf"],["src","assets/images/smart-transfer/video-bank-icon.svg","alt","",4,"ngIf"],["class","bolder",4,"ngIf"],[4,"ngIf"],["class","basic-modal-btns modal-footer",4,"ngIf"],["src","assets/images/card-to-card/transaction-report/failed.svg","alt",""],["src","assets/images/smart-transfer/video-bank-icon.svg","alt",""],[1,"bolder"],[1,"basic-modal-btns","modal-footer"],["class","basic-modal-btns-confirm",3,"full-size-button","click",4,"ngFor","ngForOf"],["class","basic-modal-btns-close",3,"click",4,"ngIf"],[1,"basic-modal-btns-confirm",3,"click"],[1,"basic-modal-btns-close",3,"click"],["class","basic-modal-btns-close",3,"full-size-button","click",4,"ngIf"]],template:function(o,A){1&o&&(e.TgZ(0,"div",0)(1,"section",1),e.YNc(2,p6,1,0,"img",2),e.YNc(3,$2,1,0,"img",3),e.YNc(4,I0,2,1,"h5",4),e.YNc(5,Q2,2,1,"p",5),e.qZA(),e.YNc(6,X2,3,2,"section",6),e.YNc(7,M1,2,1,"section",6),e.qZA()),2&o&&(e.xp6(2),e.Q6J("ngIf",A.data.isBusinessRule),e.xp6(1),e.Q6J("ngIf",!A.data.isBusinessRule),e.xp6(1),e.Q6J("ngIf",null==A.data?null:A.data.title),e.xp6(1),e.Q6J("ngIf",null==A.data?null:A.data.message),e.xp6(1),e.Q6J("ngIf",null==A.data?null:A.data.buttons),e.xp6(1),e.Q6J("ngIf",!(null!=A.data&&A.data.buttons)))},directives:[G.O5,G.sg],encapsulation:2}),T})();var Df=n(91663);let tC=(()=>{class T{transform(o,A){return o&&A?(o=o.filter(ee=>ee.text&&"undefined"!==ee.text)).filter(ee=>ee.text&&"undefined"!==ee.text&&JSON.stringify(ee.text).includes(A)):o}}return T.\u0275fac=function(o){return new(o||T)},T.\u0275pipe=e.Yjl({name:"socketControllerLogsFilter",type:T,pure:!0}),T})();function rC(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"div",22)(1,"div",9)(2,"span",12),e._uU(3),e.qZA()(),e.TgZ(4,"span",23),e._uU(5),e.qZA(),e.TgZ(6,"div",24)(7,"a",25),e.NdJ("click",function(){const he=e.CHM(o).$implicit;return e.oxw(2).deleteProperty("sendMessage","metadata",he.key)}),e._uU(8," Delete "),e.qZA()()()}if(2&T){const o=S.$implicit,A=e.oxw(2);e.xp6(3),e.Oqu(o.key),e.xp6(1),e.Q6J("title",A.JSON.stringify(o.value)),e.xp6(1),e.Oqu(o.value)}}function w1(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"div",26)(1,"div",9)(2,"input",27),e.NdJ("ngModelChange",function(ee){return e.CHM(o),e.oxw(2).tempMetadata.key=ee}),e.qZA()(),e.TgZ(3,"input",28),e.NdJ("ngModelChange",function(ee){return e.CHM(o),e.oxw(2).tempMetadata.value=ee}),e.qZA(),e.TgZ(4,"div",9)(5,"a",29),e.NdJ("click",function(){e.CHM(o);const ee=e.oxw(2);return ee.sendMessage.metadata[ee.tempMetadata.key]=ee.tempMetadata.json?ee.JSON.parse(ee.tempMetadata.value):ee.ifCanBeNumber(ee.tempMetadata.value),ee.tempMetadata.reset()}),e._uU(6," Add "),e.qZA()()()}if(2&T){const o=e.oxw(2);e.xp6(2),e.Q6J("ngModel",o.tempMetadata.key),e.xp6(1),e.Q6J("placeholder",o.tempMetadata.json?"value (JSON)":"value")("ngModel",o.tempMetadata.value)}}function x1(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"div",22)(1,"div",9)(2,"span",12),e._uU(3),e.qZA()(),e.TgZ(4,"span",23),e._uU(5),e.qZA(),e.TgZ(6,"div",24)(7,"a",25),e.NdJ("click",function(){const he=e.CHM(o).$implicit;return e.oxw(2).deleteProperty("sendMessage","systemMetadata",he.key)}),e._uU(8," Delete "),e.qZA()()()}if(2&T){const o=S.$implicit,A=e.oxw(2);e.xp6(3),e.Oqu(o.key),e.xp6(1),e.Q6J("title",A.JSON.stringify(o.value)),e.xp6(1),e.Oqu(o.value)}}function pg(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"div",26)(1,"div",9)(2,"input",27),e.NdJ("ngModelChange",function(ee){return e.CHM(o),e.oxw(2).tempSystemMetadata.key=ee}),e.qZA()(),e.TgZ(3,"input",28),e.NdJ("ngModelChange",function(ee){return e.CHM(o),e.oxw(2).tempSystemMetadata.value=ee}),e.qZA(),e.TgZ(4,"div",9)(5,"a",29),e.NdJ("click",function(){e.CHM(o);const ee=e.oxw(2);return ee.sendMessage.systemMetadata[ee.tempSystemMetadata.key]=ee.tempSystemMetadata.json?ee.JSON.parse(ee.tempSystemMetadata.value):ee.ifCanBeNumber(ee.tempSystemMetadata.value),ee.tempSystemMetadata.reset()}),e._uU(6," Add "),e.qZA()()()}if(2&T){const o=e.oxw(2);e.xp6(2),e.Q6J("ngModel",o.tempSystemMetadata.key),e.xp6(1),e.Q6J("placeholder",o.tempSystemMetadata.json?"value (JSON)":"value")("ngModel",o.tempSystemMetadata.value)}}function A0(T,S){if(1&T&&(e.TgZ(0,"div",30)(1,"pre"),e._uU(2),e.ALo(3,"json"),e.qZA()()),2&T){const o=e.oxw(2);e.xp6(2),e.Oqu(e.lcZ(3,1,o.sendMessage.result))}}function Ih(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"div")(1,"div",8)(2,"div",9)(3,"span",10),e._uU(4,"threadId"),e.qZA()(),e.TgZ(5,"input",11),e.NdJ("ngModelChange",function(ee){return e.CHM(o),e.oxw().sendMessage.threadId=ee}),e.qZA()(),e.TgZ(6,"div",8)(7,"div",9)(8,"span",12),e._uU(9,"content"),e.qZA()(),e.TgZ(10,"textarea",13),e.NdJ("ngModelChange",function(ee){return e.CHM(o),e.oxw().sendMessage.content=ee}),e.qZA()(),e.TgZ(11,"div",14)(12,"h5"),e._uU(13,"metadata"),e.qZA(),e.TgZ(14,"div")(15,"button",15),e.NdJ("click",function(){e.CHM(o);const ee=e.oxw();return ee.tempMetadata.show=!0,ee.tempMetadata.json=!1}),e._uU(16," Normal "),e.qZA(),e.TgZ(17,"button",16),e.NdJ("click",function(){e.CHM(o);const ee=e.oxw();return ee.tempMetadata.show=!0,ee.tempMetadata.json=!0}),e._uU(18," Json "),e.qZA()()(),e.YNc(19,rC,9,3,"div",17),e.ALo(20,"keyvalue"),e.YNc(21,w1,7,3,"div",18),e.TgZ(22,"div",14)(23,"h5"),e._uU(24,"systemMetadata"),e.qZA(),e.TgZ(25,"div")(26,"button",15),e.NdJ("click",function(){e.CHM(o);const ee=e.oxw();return ee.tempSystemMetadata.show=!0,ee.tempSystemMetadata.json=!1}),e._uU(27," Normal "),e.qZA(),e.TgZ(28,"button",16),e.NdJ("click",function(){e.CHM(o);const ee=e.oxw();return ee.tempSystemMetadata.show=!0,ee.tempSystemMetadata.json=!0}),e._uU(29," Json "),e.qZA()()(),e.YNc(30,x1,9,3,"div",17),e.ALo(31,"keyvalue"),e.YNc(32,pg,7,3,"div",18),e.YNc(33,A0,4,3,"div",19),e.TgZ(34,"div",20)(35,"button",21),e.NdJ("click",function(){return e.CHM(o),e.oxw().sendTextMessage()}),e._uU(36,"Send Message"),e.qZA()()()}if(2&T){const o=e.oxw();e.xp6(5),e.Q6J("ngModel",o.sendMessage.threadId),e.xp6(5),e.Q6J("ngModel",o.sendMessage.content),e.xp6(9),e.Q6J("ngForOf",e.lcZ(20,8,o.sendMessage.metadata)),e.xp6(2),e.Q6J("ngIf",o.tempMetadata.show),e.xp6(9),e.Q6J("ngForOf",e.lcZ(31,10,o.sendMessage.systemMetadata)),e.xp6(2),e.Q6J("ngIf",o.tempSystemMetadata.show),e.xp6(1),e.Q6J("ngIf",o.sendMessage.result),e.xp6(2),e.Q6J("disabled",!o.sendMessage.threadId)}}function nC(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"div",22)(1,"div",9)(2,"span",12),e._uU(3),e.qZA()(),e.TgZ(4,"span",23),e._uU(5),e.qZA(),e.TgZ(6,"div",24)(7,"a",25),e.NdJ("click",function(){const he=e.CHM(o).$implicit;return e.oxw(2).deleteProperty("createThread","metadata",he.key)}),e._uU(8," Delete "),e.qZA()()()}if(2&T){const o=S.$implicit,A=e.oxw(2);e.xp6(3),e.Oqu(o.key),e.xp6(1),e.Q6J("title",A.JSON.stringify(o.value)),e.xp6(1),e.Oqu(o.value)}}function I1(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"div",26)(1,"div",9)(2,"input",27),e.NdJ("ngModelChange",function(ee){return e.CHM(o),e.oxw(2).tempCreateThreadMetadata.key=ee}),e.qZA()(),e.TgZ(3,"input",28),e.NdJ("ngModelChange",function(ee){return e.CHM(o),e.oxw(2).tempCreateThreadMetadata.value=ee}),e.qZA(),e.TgZ(4,"div",9)(5,"a",29),e.NdJ("click",function(){e.CHM(o);const ee=e.oxw(2);return ee.sendMessage.metadata[ee.tempCreateThreadMetadata.key]=ee.tempCreateThreadMetadata.json?ee.JSON.parse(ee.tempCreateThreadMetadata.value):ee.ifCanBeNumber(ee.tempCreateThreadMetadata.value),ee.tempCreateThreadMetadata.reset()}),e._uU(6," Add "),e.qZA()()()}if(2&T){const o=e.oxw(2);e.xp6(2),e.Q6J("ngModel",o.tempCreateThreadMetadata.key),e.xp6(1),e.Q6J("placeholder",o.tempCreateThreadMetadata.json?"value (JSON)":"value")("ngModel",o.tempCreateThreadMetadata.value)}}function A1(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"div",22)(1,"div",9)(2,"span",12),e._uU(3),e.qZA()(),e.TgZ(4,"span",23),e._uU(5),e.qZA(),e.TgZ(6,"div",24)(7,"a",25),e.NdJ("click",function(){const he=e.CHM(o).$implicit;return e.oxw(2).deleteProperty("createThread","systemMetadata",he.key)}),e._uU(8," Delete "),e.qZA()()()}if(2&T){const o=S.$implicit,A=e.oxw(2);e.xp6(3),e.Oqu(o.key),e.xp6(1),e.Q6J("title",A.JSON.stringify(o.value)),e.xp6(1),e.Oqu(o.value)}}function iC(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"div",26)(1,"div",9)(2,"input",27),e.NdJ("ngModelChange",function(ee){return e.CHM(o),e.oxw(2).tempCreateThreadSystemMetadata.key=ee}),e.qZA()(),e.TgZ(3,"input",28),e.NdJ("ngModelChange",function(ee){return e.CHM(o),e.oxw(2).tempCreateThreadSystemMetadata.value=ee}),e.qZA(),e.TgZ(4,"div",9)(5,"a",29),e.NdJ("click",function(){e.CHM(o);const ee=e.oxw(2);return ee.sendMessage.systemMetadata[ee.tempCreateThreadSystemMetadata.key]=ee.tempCreateThreadSystemMetadata.json?ee.JSON.parse(ee.tempCreateThreadSystemMetadata.value):ee.ifCanBeNumber(ee.tempCreateThreadSystemMetadata.value),ee.tempCreateThreadSystemMetadata.reset()}),e._uU(6," Add "),e.qZA()()()}if(2&T){const o=e.oxw(2);e.xp6(2),e.Q6J("ngModel",o.tempCreateThreadSystemMetadata.key),e.xp6(1),e.Q6J("placeholder",o.tempCreateThreadSystemMetadata.json?"value (JSON)":"value")("ngModel",o.tempCreateThreadSystemMetadata.value)}}function sC(T,S){if(1&T&&(e.TgZ(0,"div",35)(1,"pre"),e._uU(2),e.ALo(3,"json"),e.qZA()()),2&T){const o=e.oxw(2);e.xp6(2),e.Oqu(e.lcZ(3,1,o.createThread.result))}}function gg(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"div")(1,"div",31)(2,"div",9)(3,"span",32),e._uU(4,"contactId"),e.qZA()(),e.TgZ(5,"input",33),e.NdJ("ngModelChange",function(ee){return e.CHM(o),e.oxw().createThread.contactId=ee}),e.qZA()(),e.TgZ(6,"div",14)(7,"h5"),e._uU(8,"metadata"),e.qZA(),e.TgZ(9,"div")(10,"button",15),e.NdJ("click",function(){e.CHM(o);const ee=e.oxw();return ee.tempCreateThreadMetadata.show=!0,ee.tempCreateThreadMetadata.json=!1}),e._uU(11," Normal "),e.qZA(),e.TgZ(12,"button",16),e.NdJ("click",function(){e.CHM(o);const ee=e.oxw();return ee.tempCreateThreadMetadata.show=!0,ee.tempCreateThreadMetadata.json=!0}),e._uU(13," Json "),e.qZA()()(),e.YNc(14,nC,9,3,"div",17),e.ALo(15,"keyvalue"),e.YNc(16,I1,7,3,"div",18),e.TgZ(17,"div",14)(18,"h5"),e._uU(19,"systemMetadata"),e.qZA(),e.TgZ(20,"div")(21,"button",15),e.NdJ("click",function(){e.CHM(o);const ee=e.oxw();return ee.tempCreateThreadSystemMetadata.show=!0,ee.tempCreateThreadSystemMetadata.json=!1}),e._uU(22," Normal "),e.qZA(),e.TgZ(23,"button",16),e.NdJ("click",function(){e.CHM(o);const ee=e.oxw();return ee.tempCreateThreadSystemMetadata.show=!0,ee.tempCreateThreadSystemMetadata.json=!0}),e._uU(24," Json "),e.qZA()()(),e.YNc(25,A1,9,3,"div",17),e.ALo(26,"keyvalue"),e.YNc(27,iC,7,3,"div",18),e.YNc(28,sC,4,3,"div",34),e.TgZ(29,"div",20)(30,"button",21),e.NdJ("click",function(){e.CHM(o);const ee=e.oxw();return ee.chatDataPassingService.openThread(ee.createThread)}),e._uU(31,"Create Thread"),e.qZA()()()}if(2&T){const o=e.oxw();e.xp6(5),e.Q6J("ngModel",o.createThread.contactId),e.xp6(9),e.Q6J("ngForOf",e.lcZ(15,7,o.createThread.metadata)),e.xp6(2),e.Q6J("ngIf",o.tempCreateThreadMetadata.show),e.xp6(9),e.Q6J("ngForOf",e.lcZ(26,9,o.createThread.systemMetadata)),e.xp6(2),e.Q6J("ngIf",o.tempCreateThreadSystemMetadata.show),e.xp6(1),e.Q6J("ngIf",o.createThread.result),e.xp6(2),e.Q6J("disabled",!o.createThread.contactId)}}function aC(T,S){1&T&&(e.TgZ(0,"span",49),e._uU(1,"result"),e.qZA())}function m6(T,S){1&T&&(e.TgZ(0,"span",50),e._uU(1,"error"),e.qZA())}function oC(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"div",39)(1,"div",40)(2,"span"),e._uU(3),e.qZA(),e.TgZ(4,"span"),e._uU(5),e.qZA()(),e.TgZ(6,"div",41)(7,"div",42)(8,"a",43),e.NdJ("click",function(){const he=e.CHM(o).index;return e.oxw(2).copyPretty(he)}),e._uU(9," pretty "),e._UZ(10,"img",44),e.qZA(),e.TgZ(11,"a",45),e.NdJ("click",function(){const he=e.CHM(o).$implicit;return e.oxw(2).copyRaw(he)}),e._uU(12," raw "),e._UZ(13,"img",44),e.qZA()(),e.YNc(14,aC,2,0,"span",46),e.YNc(15,m6,2,0,"span",47),e.qZA(),e.TgZ(16,"pre",48),e._uU(17),e.ALo(18,"json"),e.qZA()()}if(2&T){const o=S.$implicit,A=S.index;e.Akn(o.time?"":"display: none;"),e.xp6(3),e.Oqu(o.type),e.xp6(2),e.Oqu(o.time),e.xp6(9),e.Q6J("ngIf",!(null!=o.text&&o.text.hasError)),e.xp6(1),e.Q6J("ngIf",null==o.text?null:o.text.hasError),e.xp6(1),e.Q6J("id","log-"+A),e.xp6(1),e.Oqu(e.lcZ(18,8,o.text))}}function lC(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"div",36)(1,"div",8)(2,"div",9)(3,"span",12),e._uU(4,"search"),e.qZA()(),e.TgZ(5,"input",37),e.NdJ("ngModelChange",function(ee){return e.CHM(o),e.oxw().searchInLogs=ee}),e.qZA()(),e.YNc(6,oC,19,10,"div",38),e.ALo(7,"socketControllerLogsFilter"),e.qZA()}if(2&T){const o=e.oxw();e.xp6(5),e.Q6J("ngModel",o.searchInLogs),e.xp6(1),e.Q6J("ngForOf",e.xi3(7,2,o.chatDataPassingService.socketControllerLogs,o.searchInLogs))}}function Pf(T,S){1&T&&(e.TgZ(0,"div",51)(1,"span"),e._uU(2,"There's no log to show"),e.qZA()())}function D1(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"div",52)(1,"div",8)(2,"div",9)(3,"span",12),e._uU(4,"threadId"),e.qZA()(),e.TgZ(5,"input",11),e.NdJ("ngModelChange",function(ee){return e.CHM(o),e.oxw().getter.threadId=ee}),e.qZA()(),e.TgZ(6,"div",20)(7,"button",53),e.NdJ("click",function(){return e.CHM(o),e.oxw().getParticipants()}),e._uU(8,"Get Participants"),e.qZA(),e.TgZ(9,"button",53),e.NdJ("click",function(){return e.CHM(o),e.oxw().getThread()}),e._uU(10,"Get Thread"),e.qZA(),e.TgZ(11,"button",21),e.NdJ("click",function(){return e.CHM(o),e.oxw().getHistory()}),e._uU(12,"Get History"),e.qZA()()()}if(2&T){const o=e.oxw();e.xp6(5),e.Q6J("ngModel",o.getter.threadId),e.xp6(2),e.Q6J("disabled",!o.getter.threadId),e.xp6(2),e.Q6J("disabled",!o.getter.threadId),e.xp6(2),e.Q6J("disabled",!o.getter.threadId)}}let Of=(()=>{class T{constructor(o,A,ee){this.chatDataPassingService=o,this.podChatService=A,this.toastrService=ee,this.createThread={contactId:null,metadata:{},systemMetadata:{},result:"",reset:()=>{this.createThread.contactId=null,this.createThread.metadata={},this.createThread.systemMetadata={},this.createThread.result=""}},this.sendMessage={threadId:null,content:"",metadata:{},systemMetadata:{},result:null,reset:()=>{this.sendMessage.threadId=null,this.sendMessage.content="",this.sendMessage.metadata={},this.sendMessage.systemMetadata={},this.sendMessage.result=null}},this.getter={threadId:null,reset:()=>{this.sendMessage.threadId=null}},this.sectionVisibility={Message:!0,Thread:!1,Getters:!1,Logs:!1,reset:()=>{this.sectionVisibility.Message=!1,this.sectionVisibility.Thread=!1,this.sectionVisibility.Getters=!1,this.sectionVisibility.Logs=!1}},this.tempMetadata={show:!1,json:!1,key:"",value:"",reset:()=>{this.tempMetadata.show=!1,this.tempMetadata.json=!1,this.tempMetadata.key="",this.tempMetadata.value=""}},this.tempSystemMetadata={show:!1,json:!1,key:"",value:"",reset:()=>{this.tempSystemMetadata.show=!1,this.tempSystemMetadata.json=!1,this.tempSystemMetadata.key="",this.tempSystemMetadata.value=""}},this.tempCreateThreadMetadata={show:!1,json:!1,key:"",value:"",reset:()=>{this.tempCreateThreadMetadata.show=!1,this.tempCreateThreadMetadata.json=!1,this.tempCreateThreadMetadata.key="",this.tempCreateThreadMetadata.value=""}},this.tempCreateThreadSystemMetadata={show:!1,json:!1,key:"",value:"",reset:()=>{this.tempCreateThreadSystemMetadata.show=!1,this.tempCreateThreadSystemMetadata.json=!1,this.tempCreateThreadSystemMetadata.key="",this.tempCreateThreadSystemMetadata.value=""}},this.JSON=JSON,this.searchInLogs="",o.flags.createdThread.thread.asObservable().subscribe(he=>{he&&(this.createThread.result=he,this.pushToLogs("createThread",he))})}ngOnInit(){}sendTextMessage(){const o={threadId:this.sendMessage.threadId,textMessage:this.sendMessage.content,messageType:"TEXT",systemMetadata:this.sendMessage.systemMetadata};this.sendMessage.metadata&&(o.metadata=this.sendMessage.metadata),this.sendMessage.systemMetadata&&(o.systemMetadata=this.sendMessage.systemMetadata),this.podChatService.instance.sendTextMessage(o,{onSent:A=>{this.sendMessage.result=A,this.pushToLogs("sendMessage",A)},onDeliver:()=>{}},A=>{console.error(A),this.pushToLogs("sendMessage",A)})}ifCanBeNumber(o){try{return parseInt(o,10)}catch{return o}}getThread(){this.podChatService.instance.getThreads({threadIds:[this.getter.threadId],offset:0,count:1},o=>{this.pushToLogs("getThread",o)})}getParticipants(){this.podChatService.instance.getThreadParticipants({threadId:this.getter.threadId},o=>{this.pushToLogs("getParticipants",o)})}getHistory(){var o=this;this.podChatService.instance.getHistory({threadId:this.getter.threadId,offset:0,count:50,order:"DESC"},function(){var A=(0,Qe.Z)(function*(ee){ee.result.history.length&&o.pushToLogs("getHistory",ee)});return function(ee){return A.apply(this,arguments)}}())}pushToLogs(o,A){this.chatDataPassingService.socketControllerLogs.push({type:o,time:(new Date).toISOString(),text:A},0)}deleteProperty(o,A,ee){delete this[o][A][ee]}copyRaw(o){(0,hi.Jj)()?.navigator.clipboard?((0,hi.Jj)().navigator.clipboard.writeText(JSON.stringify(o.text)),this.toastrService.success("copied.")):this.toastrService.error("error!")}copyPretty(o){(0,hi.Jj)()?.navigator.clipboard&&document.getElementById("log-"+o)?((0,hi.Jj)().navigator.clipboard.writeText(document.getElementById("log-"+o).innerText),this.toastrService.success("copied.")):this.toastrService.error("error!")}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(Il.FM),e.Y36(Df.N),e.Y36(Go.X))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-socket-controller-modal"]],decls:16,vars:5,consts:[[1,"bootstrap-scope","socket-controller-wrapper",2,"height","calc(80vh)"],[1,"d-flex","justify-content-center","mb-4"],["role","group","aria-label","Basic example",1,"btn-group"],["type","button",1,"btn","btn-secondary",3,"click"],[4,"ngIf"],["style","height: calc(80vh - 100px); overflow: auto",4,"ngIf"],["class","d-flex justify-content-center","style","max-height: 750px; overflow: auto",4,"ngIf"],["style","max-height: 750px; overflow: auto",4,"ngIf"],[1,"input-group","mb-2"],[1,"input-group-prepend"],["id","inputGroup-sizing-default-1",1,"input-group-text"],["type","text","aria-label","Sizing example input","aria-describedby","inputGroup-sizing-default-1",1,"form-control",3,"ngModel","ngModelChange"],[1,"input-group-text"],["aria-label","With textarea",1,"form-control",3,"ngModel","ngModelChange"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"btn","btn-success","mr-2",3,"click"],[1,"btn","btn-outline-success",3,"click"],["class","input-group mb-1",4,"ngFor","ngForOf"],["class","input-group mt-2 mb-2",4,"ngIf"],["class","jumbotron","style","max-height: 300px",4,"ngIf"],[1,"d-flex","justify-content-end"],["type","button",1,"btn","btn-primary",3,"disabled","click"],[1,"input-group","mb-1"],["type","text","aria-label","Sizing example input","data-toggle","tooltip","data-placement","bottom",1,"form-control",3,"title"],[1,"input-group-append"],["href","javascript:void(0)",1,"input-group-text","btn-danger",3,"click"],[1,"input-group","mt-2","mb-2"],["placeholder","key",3,"ngModel","ngModelChange"],["type","text","aria-label","Sizing example input",1,"form-control",3,"placeholder","ngModel","ngModelChange"],["href","javascript:void(0)",1,"input-group-text","btn-success",3,"click"],[1,"jumbotron",2,"max-height","300px"],[1,"input-group","mb-3"],["id","inputGroup-sizing-default-2",1,"input-group-text"],["type","text","aria-label","Sizing example input","aria-describedby","inputGroup-sizing-default-2",1,"form-control",3,"ngModel","ngModelChange"],["class","jumbotron","style","max-height: 300px; padding: 24px; overflow: auto",4,"ngIf"],[1,"jumbotron",2,"max-height","300px","padding","24px","overflow","auto"],[2,"height","calc(80vh - 100px)","overflow","auto"],["type","text","placeholder","text in logs",1,"form-control",3,"ngModel","ngModelChange"],["class","jumbotron mb-2","style","max-height: 300px; padding: 24px",3,"style",4,"ngFor","ngForOf"],[1,"jumbotron","mb-2",2,"max-height","300px","padding","24px"],[1,"d-flex","justify-content-between","mb-3"],[1,"d-flex","justify-content-between","mb-2"],[1,"d-flex"],["href","javascript:void(0)",1,"mr-2",2,"height","13px","display","block",3,"click"],["src","/assets/images/card/gift-card/copy-icon.svg","alt","\u06a9\u067e\u06cc \u06a9\u0631\u062f\u0646",2,"height","100%"],["href","javascript:void(0)",2,"height","13px","display","block",3,"click"],["class","brand-green",4,"ngIf"],["class","red-text",4,"ngIf"],[2,"max-height","184px","overflow","auto","margin","0",3,"id"],[1,"brand-green"],[1,"red-text"],[1,"d-flex","justify-content-center",2,"max-height","750px","overflow","auto"],[2,"max-height","750px","overflow","auto"],["type","button",1,"btn","btn-primary","mr-2",3,"disabled","click"]],template:function(o,A){1&o&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"button",3),e.NdJ("click",function(){return A.sectionVisibility.reset(),A.sectionVisibility.Message=!0}),e._uU(4,"Send Message"),e.qZA(),e.TgZ(5,"button",3),e.NdJ("click",function(){return A.sectionVisibility.reset(),A.sectionVisibility.Thread=!0}),e._uU(6,"Create Thread"),e.qZA(),e.TgZ(7,"button",3),e.NdJ("click",function(){return A.sectionVisibility.reset(),A.sectionVisibility.Getters=!0}),e._uU(8,"Getter"),e.qZA(),e.TgZ(9,"button",3),e.NdJ("click",function(){return A.sectionVisibility.reset(),A.sectionVisibility.Logs=!0}),e._uU(10,"Logs"),e.qZA()()(),e.YNc(11,Ih,37,12,"div",4),e.YNc(12,gg,32,11,"div",4),e.YNc(13,lC,8,5,"div",5),e.YNc(14,Pf,3,0,"div",6),e.YNc(15,D1,13,4,"div",7),e.qZA()),2&o&&(e.xp6(11),e.Q6J("ngIf",A.sectionVisibility.Message),e.xp6(1),e.Q6J("ngIf",A.sectionVisibility.Thread),e.xp6(1),e.Q6J("ngIf",A.sectionVisibility.Logs&&A.chatDataPassingService.socketControllerLogs.length),e.xp6(1),e.Q6J("ngIf",A.sectionVisibility.Logs&&!A.chatDataPassingService.socketControllerLogs.length),e.xp6(1),e.Q6J("ngIf",A.sectionVisibility.Getters))},directives:[G.O5,Pi.Fj,Pi.JJ,Pi.On,G.sg],pipes:[G.Nd,G.Ts,tC],styles:[".socket-controller-wrapper[_ngcontent-%COMP%]   *[_ngcontent-%COMP%] {\n    direction: ltr;\n  }\n\n  .socket-controller-wrapper[_ngcontent-%COMP%] {\n    padding: 16px;\n  }"]}),T})(),v6=(()=>{class T{constructor(o,A){this.routingAppService=o,this.tagManager=A,this.developmentMode=ni.Sq}ngOnInit(){}selectReport(o){(0,vr.Mr)(),setTimeout(()=>{switch(o){case"digital":(0,ni.Sq)("DataLayerGoogleAnalytics")&&this.tagManager.pushEvent("turnover_account_click",{}),this.routingAppService.navigate(["turnover-reports"],{queryParams:{btnBack:!0}});break;case"card-to-card":this.routingAppService.navigate(["card-to-card-reports"])}},500)}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(ua.s),e.Y36(wc.c))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-transaction-report-types-modal"]],decls:12,vars:0,consts:[[1,"transaction-report-types-modal-wrapper"],[1,"modal-type-description"],[1,"type-link-list"],[1,"card",3,"click"],["src","/assets/images/landing/reports/digital-account.svg","alt","",2,"width","40px"],["src","/assets/images/landing/reports/card.svg","alt",""]],template:function(o,A){1&o&&(e.TgZ(0,"div",0)(1,"p",1),e._uU(2," \u06af\u0632\u0627\u0631\u0634 \u0645\u0648\u0631\u062f\u0646\u0638\u0631 \u062e\u0648\u062f \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f: "),e.qZA(),e.TgZ(3,"div",2)(4,"a",3),e.NdJ("click",function(){return A.selectReport("digital")}),e._UZ(5,"img",4),e.TgZ(6,"h6"),e._uU(7,"\u062d\u0633\u0627\u0628 \u062f\u06cc\u062c\u06cc\u062a\u0627\u0644"),e.qZA()(),e.TgZ(8,"a",3),e.NdJ("click",function(){return A.selectReport("card-to-card")}),e._UZ(9,"img",5),e.TgZ(10,"h6"),e._uU(11,"\u06a9\u0627\u0631\u062a \u0628\u0647 \u06a9\u0627\u0631\u062a"),e.qZA()()()())},encapsulation:2}),T})();var P1=n(66463),mg=n(36376);function _6(T,S){if(1&T&&(e.TgZ(0,"div",3),e._UZ(1,"img",4),e.TgZ(2,"span"),e._uU(3),e.qZA()()),2&T){const o=S.$implicit,A=e.oxw();e.xp6(1),e.Q6J("src",null!=o&&o.logoUrl?A.wepodMainService.getImageFromPodSpaceByHashId(null==o?null:o.logoUrl):"/assets/images/shared/logo-bank/default-icon.svg",e.LSH),e.xp6(2),e.Oqu(null==o?null:o.name)}}let O1=(()=>{class T{constructor(o,A){this.wepodMainService=o,this.configurationService=A,this.banksArray=[]}ngOnInit(){this.contractBanks()}contractBanks(){const o=new P1.uQ;o.shaparakContracted=!0,this.configurationService.getBanksInfo(o).subscribe(A=>{this.banksArray=A.reduce((ee,he)=>(ee.find(Ye=>Ye.code===he.code)||ee.push(he),ee),[])})}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(td.g),e.Y36(mg.e))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-contract-banks-modal"]],decls:5,vars:1,consts:[[1,"contract-banks-modal-wrapper"],[1,"logos-bank"],["class","bank-item",4,"ngFor","ngForOf"],[1,"bank-item"],[3,"src"]],template:function(o,A){1&o&&(e.TgZ(0,"div",0)(1,"p"),e._uU(2,"\u062f\u0631\u062d\u0627\u0644 \u062d\u0627\u0636\u0631 \u0627\u0646\u062a\u0642\u0627\u0644 \u0648\u062c\u0647 \u0627\u0632 \u0645\u0628\u062f\u0627 \u0628\u0627\u0646\u06a9\u200c\u0647\u0627\u06cc \u0632\u06cc\u0631 \u0642\u0627\u0628\u0644 \u0627\u0646\u062c\u0627\u0645 \u0627\u0633\u062a."),e.qZA(),e.TgZ(3,"section",1),e.YNc(4,_6,4,2,"div",2),e.qZA()()),2&o&&(e.xp6(4),e.Q6J("ngForOf",A.banksArray))},directives:[G.sg],encapsulation:2}),T})();var id=n(49840),vg=n(5846),Rf=n(31765),Ga=n(86424),po=n(77688),$a=n(63718),Ah=n(94),_g=n(97611),Dh=n(62590),R1=n(27878);let uC=(()=>{class T{constructor(o,A,ee,he,Ye,bt,er,mr,Kr){this.walletService=o,this.toastrService=A,this.fundTransfersDataPassingService=ee,this.routingAppService=he,this.shebaService=Ye,this.smartTransferDataPassingService=bt,this.escapeHtmlPipe=er,this.getProfileDataService=mr,this.tagManager=Kr,this.pin2=null}ngOnInit(){this.data=vr.j.data.value,this.data.typeTransfer&&localStorage.setItem("typeTransfer",this.data.typeTransfer),this.otpModalTitle=this.data.otpModalTitle,this.otpBoxTitle=this.data.otpBoxTitle,this.timeLeft=this.data.remainingOtpTimeoutInSecond,this.canResendCode=!0,this.startTimer()}confirm(){localStorage.removeItem("typeTransfer"),this.pin2&&null!==this.pin2?setTimeout(()=>{if("wepod"===this.data.actionType){if(this.pin2){const o=new po.r7;o.code=this.pin2,(0,vr.Mr)(),setTimeout(()=>{this.walletService.confirmTransferToContact(o).subscribe(A=>{(0,ni.Sq)("DataLayerGoogleAnalytics")&&this.tagManager.pushEvent("money_transfer_ok",{}),this.fundTransfersDataPassingService.date=A.date,this.routingAppService.navigate(["fund-transfers/transfer-receipt"])},A=>{(408===A.status||0===A.status||500===A.status)&&this.timeOutServiceOtpModal()})},500)}}else if("paya"===this.data.actionType){if(this.pin2){const o=new po.qD;o.code=this.pin2.toString(),o.id=this.data.id,(0,vr.Mr)(),setTimeout(()=>{this.walletService.confirmSettlement(o).subscribe(A=>{(0,ni.Sq)("DataLayerGoogleAnalytics")&&this.tagManager.pushEvent("money_transfer_ok",{});const ee=new Rf.Tq;ee.offset=0,ee.size=1,ee.sheba="IR"+A.toolId;let he=!1;this.shebaService.getShebas(ee).subscribe(Ye=>{Ye&&(he=!1),this.smartTransferDataPassingService.settlementByToolModelReceiptInfo={settlementByToolModel:A,bankLogo:this.data.bankLogo,typeTransfer:this.data.typeTransfer?this.data.typeTransfer:null,isNewSheba:he},this.routingAppService.navigate(["wallet/settlement-receipt"])},()=>{this.smartTransferDataPassingService.settlementByToolModelReceiptInfo={settlementByToolModel:A,bankLogo:this.smartTransferDataPassingService.bankLogoUrl,typeTransfer:this.data.typeTransfer?this.data.typeTransfer:null,isNewSheba:he},this.routingAppService.navigate(["wallet/settlement-receipt"])},()=>{})},A=>{(408===A.status||0===A.status||500===A.status||502===A.status||504===A.status)&&this.timeOutServiceOtpModal()})},500)}}else if("pol"===this.data.actionType&&this.pin2){const o=new po.E;o.referenceNumber=this.data.referenceNumber,o.purpose=this.data.purpose,o.paymentId=this.data.paymentId,o.description=this.data.description,o.amount=this.data.amount,o.destName=this.data.destName,o.destIBan=this.data.destIBan,o.sourceName=this.data.sourceName,o.code=this.pin2.toString(),o.transactionId=this.smartTransferDataPassingService.polTransactionId,(0,vr.Mr)(),setTimeout(()=>{this.walletService.confirmPolTransfer(o).subscribe(A=>{const ee=[{type:"text",label:"\u0634\u0645\u0627\u0631\u0647 \u0645\u0631\u062c\u0639",value:A.referenceNumber},{type:"text",label:"\u0646\u0627\u0645 \u0645\u0628\u062f\u0627",value:A.sourceName},{type:"text",label:"\u0634\u0645\u0627\u0631\u0647 \u0634\u0628\u0627\u06cc \u0645\u0642\u0635\u062f",logo:this.smartTransferDataPassingService.bankLogoUrl,value:A.destIBan},{type:"text",label:"\u0646\u0627\u0645 \u0645\u0642\u0635\u062f",value:A.destName},{type:"amountWithRial",label:"\u0645\u0628\u0644\u063a",value:A.amount},{type:"jalaliDateTime",label:"\u062a\u0627\u0631\u06cc\u062e \u0648 \u0633\u0627\u0639\u062a",value:A.transactionDate},{type:"text",label:"\u0628\u0627\u0628\u062a",value:A.purpose},{type:"text",label:"\u0634\u0646\u0627\u0633\u0647 \u0648\u0627\u0631\u06cc\u0632",value:A.paymentId},{type:"text",label:"\u0634\u0631\u062d",value:A.description},{type:"text",label:"\u0634\u0631\u062d \u0648\u0636\u0639\u06cc\u062a",value:A?.statusDesc}];if(A.state===po.Cl.Success){const he=new Rf.Tq;he.offset=0,he.size=1,he.sheba=A.destIBan.toUpperCase().includes("IR")?A.destIBan:"IR"+A.destIBan,this.shebaService.getShebas(he).subscribe(Ye=>{Ye.length||(this.smartTransferDataPassingService.isNewCard=!0)}),this.smartTransferDataPassingService.paySuccessText=A?.message,this.smartTransferDataPassingService.receiptDataCard={state:$a.ap.Success,rows:ee}}else A.state===po.Cl.Fail?(this.smartTransferDataPassingService.payFailedText=A?.message,this.smartTransferDataPassingService.receiptDataCard={state:$a.ap.Failed,rows:ee}):A.state===po.Cl.UnSpecified&&(this.smartTransferDataPassingService.payInProgressText=A?.message,this.smartTransferDataPassingService.receiptDataCard={state:$a.ap.InProgress,rows:ee},this.smartTransferDataPassingService.transactionInquiry=!0);this.smartTransferDataPassingService.statusName=A.statusName,this.routingAppService.navigate(["smart-transfer/receipt"])},A=>{(408===A.status||0===A.state||500===A.status)&&this.getProfileDataService.getValue().then(ee=>{this.smartTransferDataPassingService.dateTimeServiceTimeOut=id().toDate().toISOString().replace("Z",""),this.smartTransferDataPassingService.receiptDataCard={state:$a.ap.InProgress,rows:[{type:"text",label:"\u0646\u0627\u0645 \u0645\u0628\u062f\u0627",value:ee.firstName||ee.lastName?ee.firstName+" "+ee.lastName:ee.nickName},{type:"text",label:"\u0634\u0645\u0627\u0631\u0647 \u0634\u0628\u0627\u06cc \u0645\u0642\u0635\u062f",logo:this.smartTransferDataPassingService.bankLogoUrl,value:this.smartTransferDataPassingService.id===Ga.gG.CardNumber?this.smartTransferDataPassingService.iban:this.smartTransferDataPassingService.dataSelected},{type:"text",label:"\u0646\u0627\u0645 \u0645\u0642\u0635\u062f",value:this.smartTransferDataPassingService.name},{type:"amountWithRial",label:"\u0645\u0628\u0644\u063a",value:10*this.smartTransferDataPassingService.amount},{type:"jalaliDateTime",label:"\u062a\u0627\u0631\u06cc\u062e \u0648 \u0633\u0627\u0639\u062a",value:this.smartTransferDataPassingService.dateTimeServiceTimeOut},{type:"text",label:"\u0628\u0627\u0628\u062a",value:this.smartTransferDataPassingService.selectDataPol},{type:"text",label:"\u0634\u0646\u0627\u0633\u0647 \u0648\u0627\u0631\u06cc\u0632",value:this.smartTransferDataPassingService.paymentId},{type:"text",label:"\u0634\u0631\u062d",value:this.smartTransferDataPassingService.originDescription}]},this.smartTransferDataPassingService.transactionInquiry=!0,this.routingAppService.navigate(["smart-transfer/receipt"])})})},500)}},500):this.toastrService.error("\u0644\u0637\u0641\u0627 \u0631\u0645\u0632 \u062F\u0648 \u0639\u0627\u0645\u0644\u06CC \u062E\u0648\u062F \u0631\u0627 \u0648\u0627\u0631\u062F \u06A9\u0646\u06CC\u062F")}getOtp(){if("wepod"===this.data.actionType){const o=new po.fd;this.data.username&&(o.username=this.data.username),this.data.userId&&(o.userId=this.data.userId),this.data.description&&(o.description=this.escapeHtmlPipe.transform(this.data.description)),o.amount=this.data.amount,o.currencyCode="IRR",this.walletService.transferToUserWithLimit(o).subscribe(A=>{(0,ni.Sq)("DataLayerGoogleAnalytics")&&this.tagManager.pushEvent("money_transfer_ok",{});const ee=localStorage.getItem("typeTransfer");this.data=A,this.data.actionType="wepod",this.data.typeTransfer=ee||null,this.timeLeft=A.remainingOtpTimeoutInSecond,this.canResendCode=!0,this.startTimer()})}else if("paya"===this.data.actionType){const o=new po.ku;o.amount=this.data.amount,o.currencyCode=this.data.currencyCode,o.toolCode=this.data.toolCode===vg.nW.Satna?1:this.data.toolCode===vg.nW.Paya?2:this.data.toolCode,o.toolId=this.data.toolId,this.data.paymentId&&(o.paymentId=this.data.paymentId),this.data.firstName&&(o.firstName=this.data.firstName),this.data.lastName&&(o.lastName=this.data.lastName),(this.data.purposeCode||""!==this.data.purposeCode)&&(o.purposeCode=this.data.purposeCode),this.data.originDescription&&(o.sourceDescription=this.data.originDescription),this.data.desDescription&&(o.description=this.data.desDescription),this.walletService.requestSettlementByToolId(o).subscribe(A=>{(0,ni.Sq)("DataLayerGoogleAnalytics")&&this.tagManager.pushEvent("money_transfer_ok",{});const ee=localStorage.getItem("typeTransfer");this.data=A,this.data.actionType="paya",this.data.typeTransfer=ee||null,this.timeLeft=A.remainingOtpTimeoutInSecond,this.canResendCode=!0,this.startTimer()})}else if("pol"===this.data.actionType){const o=new po.D6;o.amount=10*this.smartTransferDataPassingService.amount,o.purposeCode=this.smartTransferDataPassingService.purposeCode,o.destIBAN=this.smartTransferDataPassingService.iban.toUpperCase().includes("IR")?this.smartTransferDataPassingService.iban:"IR"+this.smartTransferDataPassingService.iban,this.smartTransferDataPassingService.paymentId&&(o.paymentId=this.smartTransferDataPassingService.paymentId),this.smartTransferDataPassingService.originDescription&&(o.description=this.escapeHtmlPipe.transform(this.smartTransferDataPassingService.originDescription)),delete o.transactionId,this.walletService.polTransfer(o).subscribe(A=>{this.smartTransferDataPassingService.polTransactionId=A.transactionId;const ee=localStorage.getItem("typeTransfer");this.data=A,this.data.actionType="pol",this.data.typeTransfer=ee||null,this.timeLeft=A.remainingOtpTimeoutInSecond,this.canResendCode=!0,this.startTimer()},A=>{(408===A.status||0===A.status||500===A.status)&&this.getProfileDataService.getValue().then(ee=>{this.smartTransferDataPassingService.dateTimeServiceTimeOut=id().toDate().toISOString().replace("Z",""),this.smartTransferDataPassingService.receiptDataCard={state:$a.ap.InProgress,rows:[{type:"text",label:"\u0646\u0627\u0645 \u0645\u0628\u062f\u0627",value:ee.firstName||ee.lastName?ee.firstName+" "+ee.lastName:ee.nickName},{type:"text",label:"\u0634\u0645\u0627\u0631\u0647 \u0634\u0628\u0627\u06cc \u0645\u0642\u0635\u062f",logo:this.smartTransferDataPassingService.bankLogoUrl,value:this.smartTransferDataPassingService.id===Ga.gG.CardNumber?this.smartTransferDataPassingService.iban:this.smartTransferDataPassingService.dataSelected},{type:"text",label:"\u0646\u0627\u0645 \u0645\u0642\u0635\u062f",value:this.smartTransferDataPassingService.name},{type:"amountWithRial",label:"\u0645\u0628\u0644\u063a",value:10*this.smartTransferDataPassingService.amount},{type:"jalaliDateTime",label:"\u062a\u0627\u0631\u06cc\u062e \u0648 \u0633\u0627\u0639\u062a",value:this.smartTransferDataPassingService.dateTimeServiceTimeOut},{type:"text",label:"\u0628\u0627\u0628\u062a",value:this.smartTransferDataPassingService.selectDataPol},{type:"text",label:"\u0634\u0646\u0627\u0633\u0647 \u0648\u0627\u0631\u06cc\u0632",value:this.smartTransferDataPassingService.paymentId},{type:"text",label:"\u0634\u0631\u062d",value:this.smartTransferDataPassingService.originDescription}]},this.smartTransferDataPassingService.transactionInquiry=!0,this.routingAppService.navigate(["smart-transfer/receipt"])})})}}startTimer(){const o=(new Date).getTime(),A=this.timeLeft;(0,hi.Jj)()&&(clearInterval(this.interval),this.interval=setInterval(()=>{const ee=A-Math.floor(((new Date).getTime()-o)/1e3);ee>0?this.timeLeft=ee:(clearInterval(this.interval),this.canResendCode=!1,this.pin2=null)},1e3))}timeOutServiceOtpModal(){vr.j.bgWhite=!0,vr.j.desktopStyle=!0,vr.j.hideDesktopHeaderClose=!0,vr.j.disableBackdropClosing=!0,vr.j.basicModalData.next({img:"/assets/images/shared/warning.svg",title:"",desc:["\u0646\u062a\u06cc\u062c\u0647 \u062a\u0631\u0627\u06a9\u0646\u0634 \u0646\u0627\u0645\u0634\u062e\u0635 \u0627\u0633\u062a. \u0644\u0637\u0641\u0627 \u067e\u06cc\u0634 \u0627\u0632 \u0627\u0646\u062c\u0627\u0645 \u062f\u0648\u0628\u0627\u0631\u0647 \u062a\u0631\u0627\u06a9\u0646\u0634 \u0628\u0627 \u0645\u0634\u0627\u0647\u062f\u0647 \u06af\u0631\u062f\u0634 \u062d\u0633\u0627\u0628 \u0631\u0648\u0632 \u062c\u0627\u0631\u06cc\u060c \u0646\u0633\u0628\u062a \u0628\u0647 \u0639\u062f\u0645 \u06a9\u0633\u0631 \u0648\u062c\u0647 \u0627\u0632 \u062d\u0633\u0627\u0628 \u062e\u0648\u062f \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u0646\u0645\u0627\u06cc\u06cc\u062f."],buttons:{first:{title:"\u0645\u0634\u0627\u0647\u062f\u0647 \u06af\u0631\u062f\u0634 \u062d\u0633\u0627\u0628",action:()=>{(0,vr.Mr)(),this.routingAppService.navigate(["turnover-reports"])},green:!0},second:{title:"\u0645\u062a\u0648\u062c\u0647 \u0634\u062f\u0645",action:()=>{(0,vr.Mr)(),this.routingAppService.navigate(["landing"])},gray:!0}}}),(0,vr.h7)("basicModal")}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(Ah.X),e.Y36(Go.X),e.Y36(_g.K),e.Y36(ua.s),e.Y36(Dh.a),e.Y36(Ic.A),e.Y36(rd.M),e.Y36(xc.o),e.Y36(wc.c))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-transfers-verify-otp-modal"]],decls:21,vars:11,consts:[[1,"transfer-otp-modal-wrapper"],[1,"modal-content"],["src","/assets/images/money-transfer/two-step-verification.svg","alt","otp"],[1,"otp-title"],[1,"form-wrapper"],[1,"form-group"],[1,"otp"],[1,"otp-box"],[1,"otp-date"],[1,"input-group",3,"inputId","maxLength","value","classInvalid","OnInput"],[1,"otp-text",3,"disabled","click"],[1,"btn","btn-success","w-100","confirm-button",3,"click"]],template:function(o,A){if(1&o&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"img",2),e.TgZ(3,"h5"),e._uU(4),e.qZA(),e.TgZ(5,"p"),e._uU(6),e.qZA(),e.TgZ(7,"p",3),e._uU(8),e.qZA(),e.TgZ(9,"div",4)(10,"div",5)(11,"div",6)(12,"div",7)(13,"div",8)(14,"app-input-tagged-password",9),e.NdJ("OnInput",function(he){return A.pin2=he}),e.qZA()(),e.TgZ(15,"button",10),e.NdJ("click",function(){return A.getOtp()}),e.TgZ(16,"span"),e._uU(17),e.ALo(18,"countDownTime"),e.qZA()()(),e.TgZ(19,"button",11),e.NdJ("click",function(){return A.confirm()}),e._uU(20,"\u067e\u0631\u062f\u0627\u062e\u062a"),e.qZA()()()()()()),2&o){let ee;e.xp6(4),e.hij(" ",A.otpModalTitle," "),e.xp6(2),e.hij(" ",null!==(ee=A.data.verificationMessage)&&void 0!==ee?ee:"\u0628\u0631\u0627\u06cc \u0627\u0646\u062c\u0627\u0645 \u062a\u0631\u0627\u06a9\u0646\u0634\u060c \u0631\u0645\u0632\u06cc \u06a9\u0647 \u0628\u0647 \u0634\u0645\u0631\u0627\u0647 \u0647\u0645\u0631\u0627\u0647\u062a\u0627\u0646 \u067e\u06cc\u0627\u0645\u06a9 \u0634\u062f\u0647 \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f."," "),e.xp6(2),e.Oqu(A.otpBoxTitle),e.xp6(6),e.Q6J("inputId","input-pin2")("maxLength",12)("value",A.pin2)("classInvalid",!A.pin2),e.xp6(1),e.Q6J("disabled",A.canResendCode),e.xp6(2),e.Oqu(A.canResendCode?e.lcZ(18,9,A.timeLeft):"\u0627\u0631\u0633\u0627\u0644 \u0645\u062c\u062f\u062f")}},directives:[R1.$],pipes:[wh.q],encapsulation:2}),T})();var L1=n(63515);const cC=["codeCharacterRef"];function Ph(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"input",13,14),e.NdJ("input",function(ee){e.CHM(o);const he=e.MAs(1);return e.oxw().checkValidity(ee,he)})("keyup",function(ee){return e.CHM(o),e.oxw().keytab(ee)}),e.qZA()}if(2&T){const o=S.$implicit,A=S.index,ee=e.oxw();let he;e.MGl("id","code-",o,"")("formControlName","code",o,""),e.s9C("tabindex",A+1),e.Q6J("value",null==ee.invitationCodeSubmitForm||null==(he=ee.invitationCodeSubmitForm.get("code{{codeChar}}"))?null:he.value)}}const k1=function(){return[1,2,3,4,5,6]};let N1=(()=>{class T{constructor(o,A,ee,he,Ye){this.formBuilder=o,this.wepodMainService=A,this.referralService=ee,this.wepodToastrService=he,this.escapeHtmlPipe=Ye,this.invitationCodeSubmitForm=this.formBuilder.group({code1:["",Pi.kI.required],code2:["",Pi.kI.required],code3:["",Pi.kI.required],code4:["",Pi.kI.required],code5:["",Pi.kI.required],code6:["",Pi.kI.required]})}ngOnInit(){}ngAfterViewInit(){if(this.refCode=this.wepodMainService.getCookie("refCode"),this.refCode)for(let o=0;o<this.refCode.length;o++)document.getElementById("code-"+(o+1)).value=this.refCode.substr(o,1)}keytab(o){let A=o.target.nextElementSibling;8===o.keyCode&&(A=o.target.previousElementSibling,o.target.value=null,A.focus()),A&&(o.target.value||8===o.keyCode)?A.focus():o.target.blur()}checkValidity(o,A){o.data&&!o.data.match("[A-Za-z0-9]")&&(A.value="")}validateForm(){let A=!0;for(const ee of[1,2,3,4,5,6])document.getElementById("code-"+ee)&&!document.getElementById("code-"+ee).value.match("[A-Za-z0-9]")&&(A=!1);return A}submit(){this.refCode="";for(const o of[1,2,3,4,5,6])this.refCode+=document.getElementById("code-"+o).value;this.referralService.submitReferralCode(this.escapeHtmlPipe.transform(this.refCode.toUpperCase())).subscribe(()=>{(0,vr.Mr)(),localStorage.removeItem("checkCanSubmit"),this.wepodToastrService.success("\u06a9\u0627\u0631\u0628\u0631 \u06af\u0631\u0627\u0645\u06cc\u060c \u06a9\u062f \u062f\u0639\u0648\u062a \u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f")})}closeModal(){this.referralService.cancelSubmitReferralCode().subscribe(()=>{localStorage.removeItem("checkCanSubmit")}).add(()=>{(0,vr.Mr)()})}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(Pi.qu),e.Y36(td.g),e.Y36(L1.C),e.Y36(Go.X),e.Y36(rd.M))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-invitation-code-submit-modal"]],viewQuery:function(o,A){if(1&o&&e.Gf(cC,5),2&o){let ee;e.iGM(ee=e.CRH())&&(A.codeNumberRefs=ee.first)}},decls:19,vars:5,consts:[[1,"invite-submit"],[1,"container-per-page","flex","flex-c","jc-center","ai-center"],["src","assets/images/setting/invite/submit-illustration.svg","alt","",2,"margin-left","12px"],[1,"invite-submit-title","text-center"],[1,"invite-submit-desc","gray-light","text-center"],[1,"form-wrapper",3,"formGroup"],[1,"form-group"],[1,"form-title"],[1,"invite-submit-input"],["type","text","class","form-control","maxlength","1","required","","autocomplete","off",3,"id","formControlName","tabindex","value","input","keyup",4,"ngFor","ngForOf"],[1,"invite-submit-btns","flex","jc-between","ai-center"],[1,"btn","btn-success",3,"disabled","keydown.enter","click"],[1,"btn","btn-line-success",3,"disabled","click"],["type","text","maxlength","1","required","","autocomplete","off",1,"form-control",3,"id","formControlName","tabindex","value","input","keyup"],["codeCharacterRef",""]],template:function(o,A){1&o&&(e.TgZ(0,"article",0)(1,"div",1),e._UZ(2,"img",2),e.TgZ(3,"h6",3),e._uU(4,"\u062b\u0628\u062a \u06a9\u062f \u062f\u0639\u0648\u062a"),e.qZA(),e.TgZ(5,"p",4),e._uU(6," \u062f\u0631 \u0635\u0648\u0631\u062a\u06cc \u06a9\u0647 \xab\u06a9\u062f \u062f\u0639\u0648\u062a\xbb \u062f\u0627\u0631\u06cc\u062f\u060c \u0622\u0646 \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f. \u062b\u0628\u062a \u06a9\u062f\u060c \u0627\u062e\u062a\u06cc\u0627\u0631\u06cc \u0627\u0633\u062a \u0648 \u062a\u0627\u062b\u06cc\u0631\u06cc \u062f\u0631 \u0627\u0641\u062a\u062a\u0627\u062d \u062d\u0633\u0627\u0628 \u0628\u0627\u0646\u06a9\u06cc \u0646\u062f\u0627\u0631\u062f. "),e.qZA(),e.TgZ(7,"form",5)(8,"div",6)(9,"div",7)(10,"label"),e._uU(11,"\u06a9\u062f"),e.qZA()(),e.TgZ(12,"div",8),e.YNc(13,Ph,2,4,"input",9),e.qZA()(),e.TgZ(14,"div",10)(15,"button",11),e.NdJ("keydown.enter",function(){return A.submit()})("click",function(){return A.submit()}),e._uU(16,"\u062a\u0627\u06cc\u06cc\u062f"),e.qZA(),e.TgZ(17,"button",12),e.NdJ("click",function(){return A.closeModal()}),e._uU(18,"\u0627\u0646\u0635\u0631\u0627\u0641 \u0648 \u0627\u062f\u0627\u0645\u0647"),e.qZA()()()()()),2&o&&(e.xp6(7),e.Q6J("formGroup",A.invitationCodeSubmitForm),e.xp6(6),e.Q6J("ngForOf",e.DdM(4,k1)),e.xp6(2),e.Q6J("disabled",!A.validateForm()),e.xp6(2),e.Q6J("disabled",!1))},directives:[Pi._Y,Pi.JL,Pi.sg,G.sg,Pi.Fj,Pi.nD,Pi.Q7,Pi.JJ,Pi.u],encapsulation:2}),T})(),F1=(()=>{class T{constructor(){}ngOnInit(){this.data=vr.j.data.value}copy(){(0,hi.Jj)()?.navigator?.clipboard&&(0,hi.Jj)().navigator.clipboard.writeText(JSON.stringify(this.data))}}return T.\u0275fac=function(o){return new(o||T)},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-thread-data-json"]],decls:5,vars:3,consts:[[2,"background-color","green",3,"click"],[2,"height","500px","direction","ltr"]],template:function(o,A){1&o&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return A.copy()}),e._uU(1,"copy"),e.qZA(),e.TgZ(2,"pre",1),e._uU(3),e.ALo(4,"json"),e.qZA()),2&o&&(e.xp6(3),e.Oqu(e.lcZ(4,1,A.data)))},pipes:[G.Ts],encapsulation:2}),T})();var Lf=n(67657),B1=n(17423);function U1(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"div",3),e._UZ(1,"img",4),e.TgZ(2,"h5",5),e._uU(3," \u062a\u0627\u06cc\u06cc\u062f \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u0635\u062f\u0648\u0631 "),e.qZA(),e.TgZ(4,"p"),e._uU(5," \u0648\u06cc\u067e\u0627\u062f\u06cc \u0639\u0632\u06cc\u0632\u060c \u0628\u0627 \u062b\u0628\u062a \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u06cc\u06a9 \u06a9\u0627\u0631\u062a \u0628\u0627\u0646\u06a9\u06cc \u0628\u0631\u0627\u06cc \u062d\u0633\u0627\u0628 \u062f\u06cc\u062c\u06cc\u062a\u0627\u0644 \u0634\u0645\u0627 \u0635\u0627\u062f\u0631 \u0645\u06cc\u200c\u0634\u0648\u062f. "),e.qZA(),e.TgZ(6,"p"),e._uU(7," \u0622\u06cc\u0627 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u062f \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u062e\u0648\u062f \u0631\u0627 \u062b\u0628\u062a \u06a9\u0646\u06cc\u062f\u061f "),e.qZA(),e.TgZ(8,"section",6)(9,"button",7),e.NdJ("click",function(){return e.CHM(o),e.oxw().requestPodCard()}),e._uU(10,"\u062a\u0627\u06cc\u06cc\u062f"),e.qZA(),e.TgZ(11,"button",8),e.NdJ("click",function(){return e.CHM(o),e.oxw().closeDialog()}),e._uU(12,"\u0627\u0646\u0635\u0631\u0627\u0641"),e.qZA()()()}}function dC(T,S){1&T&&(e.TgZ(0,"div",9),e._UZ(1,"img",10),e.TgZ(2,"span",11),e._uU(3,"\u0644\u0637\u0641\u0627 \u0645\u0646\u062a\u0638\u0631 \u0628\u0645\u0627\u0646\u06cc\u062f \u2026"),e.qZA()())}function H1(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"div",3),e._UZ(1,"img",12),e.TgZ(2,"h5",5),e._uU(3," \u06a9\u0627\u0631\u062a \u0634\u0645\u0627 \u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u0635\u0627\u062f\u0631 \u0634\u062f "),e.qZA(),e.TgZ(4,"p"),e._uU(5," \u0634\u0645\u0627 \u0645\u06cc\u062a\u0648\u0627\u0646\u06cc\u062f \u062c\u0647\u062a \u0645\u0634\u0627\u0647\u062f\u0647 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u06a9\u0627\u0631\u062a \u0648 \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u0627\u0631\u0633\u0627\u0644 \u06a9\u0627\u0631\u062a \u062e\u0648\u062f \u0628\u0647 \u0635\u0641\u062d\u0647 \u062d\u0633\u0627\u0628 \u062f\u06cc\u062c\u06cc\u062a\u0627\u0644 \u0645\u0631\u0627\u062c\u0639\u0647 \u06a9\u0646\u06cc\u062f "),e.qZA(),e.TgZ(6,"section",6)(7,"button",13),e.NdJ("click",function(){return e.CHM(o),e.oxw().successClose()}),e._uU(8,"\u0645\u062a\u0648\u062c\u0647 \u0634\u062f\u0645"),e.qZA()()()}}function V1(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"div",3),e._UZ(1,"img",14),e.TgZ(2,"h5",5),e._uU(3," \u062e\u0637\u0627 "),e.qZA(),e.TgZ(4,"p"),e._uU(5," \u06a9\u0627\u0631\u062a \u0634\u0645\u0627 \u0635\u0627\u062f\u0631 \u0646\u0634\u062f\u060c \u0644\u0637\u0641\u0627 \u0645\u062c\u062f\u062f\u0627 \u062a\u0644\u0627\u0634 \u0646\u0645\u0627\u06cc\u06cc\u062f. "),e.qZA(),e.TgZ(6,"section",6)(7,"button",13),e.NdJ("click",function(){return e.CHM(o),e.oxw().retryRequest()}),e._uU(8,"\u062a\u0644\u0627\u0634 \u0645\u062c\u062f\u062f"),e.qZA()()()}}let fC=(()=>{class T{constructor(o,A,ee){this.modalService=o,this.digitalCardService=A,this.getDigitalCardDataService=ee,this.requesting=!1,this.requestingError=!1}ngOnInit(){}requestPodCard(){this.requesting=!0,this.digitalCardService.requestDigitalCard().subscribe(()=>{this.requesting=!1,this.getDigitalCardDataService.getDigitalCardData(!0)},()=>{this.requesting=!1,this.requestingError=!0})}successClose(){(0,vr.Mr)()}retryRequest(){this.requestingError=!1,this.requestPodCard()}closeDialog(){(0,vr.Mr)()}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(rg.Z),e.Y36(Lf.w),e.Y36(B1.v))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-pod-card-request-confirmation-modal"]],decls:5,vars:4,consts:[[1,"micro-facilities-branch-confirmation-wrapper"],["class","micro-facilities-branch-confirmation-wrapper-container",4,"ngIf"],["class","micro-facilities-branch-confirmation-wrapper-loading micro-facilities-branch-confirmation-wrapper-container",4,"ngIf"],[1,"micro-facilities-branch-confirmation-wrapper-container"],["src","assets/images/shared/card.svg","alt","",2,"width","37px"],[1,"bolder"],[1,"branch-confirmation-btns","modal-footer"],[1,"branch-confirmation-btns-confirm",3,"click"],[1,"branch-confirmation-btns-close",3,"click"],[1,"micro-facilities-branch-confirmation-wrapper-loading","micro-facilities-branch-confirmation-wrapper-container"],["src","assets/images/chat/loading-circle-light-gray.svg","alt","\u062f\u0631 \u062d\u0627\u0644 \u062f\u0631\u062e\u0648\u0627\u0633\u062a ..."],[1,"gray-light"],["src","assets/images/shared/success-badge.svg","alt","",2,"width","50px"],[1,"branch-confirmation-btns-confirm","w-100",3,"click"],["src","assets/images/shared/failed-badge.svg","alt","",2,"width","50px"]],template:function(o,A){1&o&&(e.TgZ(0,"div",0),e.YNc(1,U1,13,0,"div",1),e.YNc(2,dC,4,0,"div",2),e.YNc(3,H1,9,0,"div",1),e.YNc(4,V1,9,0,"div",1),e.qZA()),2&o&&(e.xp6(1),e.Q6J("ngIf",!(null!=A.getDigitalCardDataService&&null!=A.getDigitalCardDataService.digitalPodCard&&A.getDigitalCardDataService.digitalPodCard.digitalCardStatus||A.requesting||A.requestingError)),e.xp6(1),e.Q6J("ngIf",A.requesting),e.xp6(1),e.Q6J("ngIf",2===(null==A.getDigitalCardDataService||null==A.getDigitalCardDataService.digitalPodCard?null:A.getDigitalCardDataService.digitalPodCard.digitalCardStatus)&&!A.requesting),e.xp6(1),e.Q6J("ngIf",A.requestingError))},directives:[G.O5],encapsulation:2}),T})();var hC=n(81919);let pC=(()=>{class T{constructor(o){this.profileDataPassingService=o}ngOnInit(){}editProPic(){this.profileDataPassingService.EditedState=!0,(0,vr.Mr)()}deleteProPic(){setTimeout(()=>{this.profileDataPassingService.DeletedState=!0},400),(0,vr.Mr)()}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(hC.A))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-profile-pic-modal"]],decls:10,vars:1,consts:[[1,"modal-profile-pic"],[1,"modal-backdrop"],[1,"modal-content"],[1,"preview-img"],[3,"src"],[1,"modal-footer"],[3,"click"]],template:function(o,A){1&o&&(e.TgZ(0,"div",0),e._UZ(1,"div",1),e.TgZ(2,"div",2)(3,"section",3),e._UZ(4,"img",4),e.qZA(),e.TgZ(5,"div",5)(6,"button",6),e.NdJ("click",function(){return A.editProPic()}),e._uU(7," \u0648\u06cc\u0631\u0627\u06cc\u0634 "),e.qZA(),e.TgZ(8,"button",6),e.NdJ("click",function(){return A.deleteProPic()}),e._uU(9," \u062d\u0630\u0641 "),e.qZA()()()()),2&o&&(e.xp6(4),e.Q6J("src",A.profileDataPassingService.ImageSrc,e.LSH))},encapsulation:2}),T})();var au=n(39723),gC=n(32326),yg=n(28169),Al=n(587);function mC(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(){return e.CHM(o),e.oxw(2).abort()}),e._uU(1,"\u0627\u0646\u0635\u0631\u0627\u0641"),e.qZA()}}function Cg(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"article",2)(1,"div",3)(2,"div",4),e._UZ(3,"img",5),e.TgZ(4,"p",6),e._uU(5," \u0634\u0645\u0627\u0631\u0647 \u062a\u0644\u0641\u0646 \u0647\u0645\u0631\u0627\u0647 \u062e\u0648\u062f \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f. "),e.qZA()(),e.TgZ(6,"div",7)(7,"div",8)(8,"app-input-tagged-text",9),e.NdJ("OnInput",function(ee){return e.CHM(o),e.oxw().tel=ee}),e.qZA()(),e.TgZ(9,"button",10),e.NdJ("click",function(){return e.CHM(o),e.oxw().signup()}),e._uU(10,"\u062a\u0627\u06cc\u06cc\u062f"),e.qZA(),e.YNc(11,mC,2,0,"button",11),e.qZA()()()}if(2&T){const o=e.oxw();let A;e.xp6(6),e.Akn((null==(A=o.getWindow())?null:A.innerWidth)<768?"width: 100%":""),e.xp6(2),e.Q6J("value",o.tel)("inputType","tel")("tag","")("inputId","contract-validation-otp")("autocomplete",!0),e.xp6(1),e.Q6J("disabled",o.disabledSignUpSubmit),e.xp6(2),e.Q6J("ngIf",o.redirectUrl)}}function Oh(T,S){1&T&&(e.TgZ(0,"span"),e._uU(1,"\u0627\u0631\u0633\u0627\u0644 \u0645\u062c\u062f\u062f"),e.qZA())}function vC(T,S){if(1&T&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"countDownTime"),e.qZA()),2&T){const o=e.oxw(2);e.xp6(1),e.hij(" \u0632\u0645\u0627\u0646 \u0628\u0627\u0642\u06cc\u200c\u0645\u0627\u0646\u062f\u0647 ",e.lcZ(2,1,o.timeLeft)," ")}}function _C(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"button",21),e.NdJ("click",function(){return e.CHM(o),e.oxw(2).abort()}),e._uU(1,"\u0627\u0646\u0635\u0631\u0627\u0641"),e.qZA()}}function yC(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"article",13)(1,"div",3)(2,"div",4),e._UZ(3,"img",5),e.TgZ(4,"p",6),e._uU(5," \u06a9\u062f \u0627\u0639\u062a\u0628\u0627\u0631\u0633\u0646\u062c\u06cc \u0627\u0631\u0633\u0627\u0644 \u0634\u062f\u0647 \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f. "),e.qZA(),e.TgZ(6,"p",14),e._uU(7),e.qZA()(),e.TgZ(8,"div",7)(9,"div",8)(10,"app-input-tagged-text",15),e.NdJ("OnInput",function(ee){return e.CHM(o),e.oxw().otpCode=ee}),e.qZA()(),e.TgZ(11,"button",16),e.NdJ("click",function(){return e.CHM(o),e.oxw().verifyOtp()}),e._uU(12,"\u062a\u0627\u06cc\u06cc\u062f"),e.qZA(),e.TgZ(13,"section",17)(14,"p",14),e._uU(15,"\u06a9\u062f \u0627\u0639\u062a\u0628\u0627\u0631\u0633\u0646\u062c\u06cc \u0631\u0627 \u062f\u0631\u06cc\u0627\u0641\u062a \u0646\u06a9\u0631\u062f\u0647\u200c \u0627\u06cc\u062f\u061f"),e.qZA(),e.TgZ(16,"button",18),e.NdJ("click",function(){return e.CHM(o),e.oxw().resendCode()}),e.YNc(17,Oh,2,0,"span",19),e.YNc(18,vC,3,3,"span",19),e.qZA()(),e.YNc(19,_C,2,0,"button",20),e.qZA()()()}if(2&T){const o=e.oxw();let A;e.xp6(7),e.hij(" ",o.tel," "),e.xp6(1),e.Akn((null==(A=o.getWindow())?null:A.innerWidth)<768?"width: 100%":""),e.xp6(2),e.Q6J("value",o.otpCode)("inputType","tel")("tag","")("maxLength",6)("inputId","contract-validation-otp")("classDisabled",0===o.timeLeft)("classInvalid",o.invalidOtp),e.xp6(1),e.Q6J("disabled",o.disabledSubmit),e.xp6(5),e.Q6J("disabled",!o.canResendCode),e.xp6(1),e.Q6J("ngIf",o.canResendCode),e.xp6(1),e.Q6J("ngIf",!o.canResendCode),e.xp6(1),e.Q6J("ngIf",o.redirectUrl)}}let D0=(()=>{class T{constructor(o,A,ee,he,Ye,bt,er,mr){this.deviceDetectorService=o,this.browserUtil=A,this.browserStorageService=ee,this.registerService=he,this.wepodMainService=Ye,this.tagManager=bt,this.uniqueIdUtil=er,this.routingAppService=mr,this.tel="",this.timeLeft=0,this.sentOtp=!1,this.canResendCode=!1,this.disabledSignUpSubmit=!1,this.disabledSubmit=!1,this.invalidOtp=!1,this.getWindow=hi.Jj,this.redirectUrl=hi.fL}signup(){const o=JSON.parse(this.browserStorageService.getLocalItem(au.B.userSignupModel)).deviceId??this.uniqueIdUtil.genUUID();let A,ee,he;(0,hi.Jj)()&&(A=this.browserUtil.detectBrowser(),he="MobileDevice",this.deviceDetectorService.isDesktop?he="Desktop":this.deviceDetectorService.isMobile?he="MobilePhone":this.deviceDetectorService.isTablet&&(he="Tablet"),ee=`${this.browserUtil.detectOS()} ${A.name} ${A.version}`);const Ye={deviceId:o,deviceName:ee,mobileNumber:this.tel,latitude:"0",longitude:"0",osType:"Web_"+this.deviceDetectorService.os,deviceType:he,osVersion:this.deviceDetectorService.os_version,appVersion:`Wepod_web-${jo.NZ.appVersion}.0.Pas`,appName:"wepod-web",clientIssuer:na.z.clientIssuer,flowType:1};try{this.browserStorageService.setLocalItem(au.B.userSignupModel,JSON.stringify(Ye))}catch(bt){console.error(bt)}this.asyncSignup(Ye,o,ee)}asyncSignup(o,A,ee){this.registerService.authorize(o).subscribe(he=>{he.isLocked?this.lockedModal(he):(na.z.otpWaitingTime=he.expireIn,this.disabledSignUpSubmit=!0,he.keyId&&(this.browserStorageService.setLocalItem(au.B.keyId,he.keyId),this.wepodMainService.setCookie("currentUser.token.keyId",he.keyId,.02)),he.deviceKeyId&&(this.browserStorageService.setLocalItem(au.B.keyId,he.deviceKeyId),this.wepodMainService.setCookie("currentUser.token.keyId",he.deviceKeyId,.02)),this.signupParams={deviceKeyId:he.keyId,mobileNumber:this.tel,latitude:"0",longitude:"0",deviceId:A,deviceName:ee,osVersion:o.osVersion,osType:o.osType,deviceType:o.deviceType,appName:"wepod-web",appVersion:`Wepod_web-${jo.NZ.appVersion}.Pas`,clientIssuer:na.z.clientIssuer,flowType:1},vr.j.height=472,this.sentOtp=!0,this.startTimer(he.expireIn))},()=>{this.disabledSignUpSubmit=!1})}ngAfterViewInit(){document.getElementById("contract-validation-otp").focus()}startTimer(o){this.canResendCode=!1;const A=(new Date).getTime();this.timeLeft=o,(0,hi.Jj)()&&(clearInterval(this.interval),this.interval=setInterval(()=>{const ee=o-Math.floor(((new Date).getTime()-A)/1e3);ee>0?this.timeLeft=ee:(clearInterval(this.interval),this.canResendCode=!0,document.getElementById("contract-validation-otp").blur(),this.disabledSubmit=!0)},1e3))}resendCode(){!this.canResendCode||(this.otpCode="",this.registerService.authorize(this.signupParams).subscribe(o=>{this.disabledSubmit=!1,o.keyId&&(this.signupParams.deviceKeyId=o.keyId,this.browserStorageService.setLocalItem(au.B.keyId,o.keyId),this.wepodMainService.setCookie("currentUser.token.keyId",o.keyId,.02)),o.deviceKeyId&&(this.signupParams.deviceKeyId=o.deviceKeyId,this.browserStorageService.setLocalItem(au.B.keyId,o.deviceKeyId),this.wepodMainService.setCookie("currentUser.token.keyId",o.deviceKeyId,.02)),this.startTimer(o.expireIn)}))}verifyOtp(){this.disabledSubmit||(this.disabledSubmit=!0,this.registerService.verifyOtp({deviceKeyId:this.signupParams.deviceKeyId,mobileNumber:this.tel,otpCode:this.otpCode,clientIssuer:na.z.clientIssuer,flowType:1}).subscribe(A=>{if(!A.actionUrl){if((0,ni.Sq)("DataLayerGoogleAnalytics")&&this.tagManager.pushEvent("user_verification",{phone_number:A.profile?.userId?String(A.profile?.userId):""}),A.isLocked)return void this.lockedModal(A);A.wasWepodUser||(0,ni.Sq)("DataLayerGoogleAnalytics")&&this.tagManager.pushEvent("sign_up",{phone_number:A.profile?.userId?String(A.profile?.userId):""}),(0,vr.Mr)(),this.routingAppService.navigate(["profile/completion"])}},()=>{this.disabledSubmit=!1}))}lockedModal(o){(0,vr.Mr)(),setTimeout(()=>{vr.j.data.next({expireIn:o.lockedExpireIn,close:()=>{(0,vr.Mr)(),setTimeout(()=>{vr.j.data.next(null),vr.j.height=376,vr.j.bgWhite=!0,vr.j.desktopStyle=!1,vr.j.hideDesktopHeaderClose=!0,vr.j.hideFullScreenCloseButton=!0,vr.j.disableBackdropClosing=!0,vr.j.fullScreen.next(!1),(0,vr.h7)("profileStandaloneLoginModal")},500)}}),vr.j.bgWhite=!0,vr.j.desktopStyle=!0,vr.j.hideDesktopHeaderClose=!0,vr.j.disableBackdropClosing=!0,vr.j.fullScreen.next(!1),(0,vr.h7)("registerLockedModal",0)},500)}abort(){(0,vr.Mr)(),setTimeout(()=>{vr.j.data.next(null),vr.j.bgWhite=!0,vr.j.desktopStyle=!0,vr.j.hideDesktopHeaderClose=!0,vr.j.disableBackdropClosing=!0,vr.j.fullScreen.next(!1),vr.j.basicModalData.next({img:"/assets/images/shared/warning.svg",title:"\u0622\u06cc\u0627 \u0645\u06cc\u062e\u0648\u0627\u0647\u06cc\u062f \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f\u061f",desc:[],buttons:{first:{title:"\u0628\u0633\u062a\u0646",action:()=>{(0,vr.Mr)(),setTimeout(()=>{vr.j.data.next(null),vr.j.height=376,vr.j.bgWhite=!0,vr.j.desktopStyle=!1,vr.j.hideDesktopHeaderClose=!0,vr.j.hideFullScreenCloseButton=!0,vr.j.disableBackdropClosing=!0,vr.j.fullScreen.next(!1),(0,vr.h7)("profileStandaloneLoginModal")},500)},gray:!0},second:{red:!0,title:"\u062e\u0631\u0648\u062c",action:()=>{hi.YJ.next(!0)}}}}),(0,vr.h7)("basicModal")},500)}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(gC.x0),e.Y36(ng.G),e.Y36(jd.z),e.Y36(yg.a),e.Y36(td.g),e.Y36(wc.c),e.Y36(xf.i),e.Y36(ua.s))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-profile-standalone-login-modal"]],decls:2,vars:2,consts:[["class","pod-card-activate-otp-wrapper","id","contract-validation-phone-modal-wrapper",4,"ngIf"],["class","pod-card-activate-otp-wrapper","id","contract-validation-modal-wrapper",4,"ngIf"],["id","contract-validation-phone-modal-wrapper",1,"pod-card-activate-otp-wrapper"],[1,"container-per-page","auth-login"],[1,"activate-otp-header",2,"margin-bottom","0"],["src","/assets/images/pod-card/validation-code.svg","alt",""],[1,"activate-otp-header-title","bold"],[1,"form-wrapper"],[1,"form-group","form-amount"],["label","\u0634\u0645\u0627\u0631\u0647 \u062a\u0644\u0641\u0646 \u0647\u0645\u0631\u0627\u0647:",3,"value","inputType","tag","inputId","autocomplete","OnInput"],["id","tel-submit-btn",1,"btn-success","btn","w-100",3,"disabled","click"],["class","btn-clear-gray btn w-100",3,"click",4,"ngIf"],[1,"btn-clear-gray","btn","w-100",3,"click"],["id","contract-validation-modal-wrapper",1,"pod-card-activate-otp-wrapper"],[1,"gray-light"],["label","\u06a9\u062f \u0627\u0639\u062a\u0628\u0627\u0631\u0633\u0646\u062c\u06cc",3,"value","inputType","tag","maxLength","inputId","classDisabled","classInvalid","OnInput"],["id","otp-submit-btn",1,"btn-success","btn","w-100",3,"disabled","click"],[1,"activate-otp-resend",2,"margin-bottom","20px"],[1,"btn-success","btn","btn-small","w-auto","brand-green",2,"color","white","background-color","#00b578",3,"disabled","click"],[4,"ngIf"],["style","margin-bottom: 0","class","btn-clear-gray btn w-100",3,"click",4,"ngIf"],[1,"btn-clear-gray","btn","w-100",2,"margin-bottom","0",3,"click"]],template:function(o,A){1&o&&(e.YNc(0,Cg,12,9,"article",0),e.YNc(1,yC,20,15,"article",1)),2&o&&(e.Q6J("ngIf",!A.sentOtp),e.xp6(1),e.Q6J("ngIf",A.sentOtp))},directives:[G.O5,Al.d],pipes:[wh.q],encapsulation:2}),T})();var P0=n(90290),Y1=n(60431),Rh=n(84256);function j1(T,S){if(1&T&&(e.TgZ(0,"p",25),e._uU(1),e.ALo(2,"numberSeparator"),e.ALo(3,"rialToToman"),e.qZA()),2&T){const o=e.oxw();e.xp6(1),e.hij("",e.lcZ(2,1,e.lcZ(3,3,o.amount))," \u062a\u0648\u0645\u0627\u0646")}}function G1(T,S){if(1&T&&(e.TgZ(0,"p",25),e._uU(1),e.ALo(2,"numberSeparator"),e.qZA()),2&T){const o=e.oxw();e.xp6(1),e.hij("",e.lcZ(2,1,null==o.microFacilitiesDataPassingService||null==o.microFacilitiesDataPassingService.microLoanFinancialInfo?null:o.microFacilitiesDataPassingService.microLoanFinancialInfo.minimumPayment)," \u0631\u06cc\u0627\u0644")}}function bg(T,S){if(1&T&&(e.TgZ(0,"p",25),e._uU(1),e.ALo(2,"numberSeparator"),e.qZA()),2&T){const o=e.oxw();e.xp6(1),e.hij("",e.lcZ(2,1,null==o.microFacilitiesDataPassingService||null==o.microFacilitiesDataPassingService.microLoanFinancialInfo?null:o.microFacilitiesDataPassingService.microLoanFinancialInfo.currentCredit)," \u0631\u06cc\u0627\u0644")}}let W1=(()=>{class T{constructor(o,A){this.microFacilitiesDataPassingService=o,this.toastrService=A,this.minAmount=Math.floor(this.microFacilitiesDataPassingService?.microLoanFinancialInfo?.minimumPayment/10),this.maxAmount=Math.floor(this.microFacilitiesDataPassingService?.microLoanFinancialInfo?.currentCredit/10)}payInvoice(){this.amount?10*this.amount>this.microFacilitiesDataPassingService?.microLoanFinancialInfo?.currentCredit||10*this.amount<this.microFacilitiesDataPassingService?.microLoanFinancialInfo?.minimumPayment?this.toastrService.error("\u0645\u0628\u0644\u063A \u0648\u0627\u0631\u062F \u0634\u062F\u0647 \u0635\u062D\u06CC\u062D \u0646\u06CC\u0633\u062A"):(this.microFacilitiesDataPassingService.payedAmount=10*this.amount,this.microFacilitiesDataPassingService?.invoiceConfirm.next(10*this.amount),(0,vr.Mr)()):this.toastrService.error("\u0644\u0637\u0641\u0627 \u0645\u0628\u0644\u063A \u0645\u0648\u0631\u062F \u0646\u0638\u0631 \u0631\u0627 \u0648\u0627\u0631\u062F \u0646\u0645\u0627\u06CC\u06CC\u062F")}ngOnInit(){}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(Y1.n),e.Y36(Go.X))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-micro-facilities-invoice-modal"]],decls:42,vars:33,consts:[[1,"micro-facilities-modal-wrapper"],[1,"container-per-page"],[2,"display","flex","justify-content","center","flex-direction","column","align-items","center"],["src","/assets/images/services/loan/micro-facilities/invoice-logo.svg","alt","otp",2,"width","80px"],[1,"item"],[1,"item-body"],[1,"item-body-details"],[1,"list-wrapper"],[1,"list"],[1,"list-item"],[1,"list-content"],[1,"list-content-key"],[1,"list-content-value","bold",2,"color","black"],[1,"list-content-key","bold",2,"color","black"],[1,"form-wrapper",2,"display","flex","justify-content","center"],[1,"form-group","form-filter-amount"],[2,"color","black"],[2,"width","100%","margin-top","15px"],["label"," ",3,"inputId","showZero","showTagWhenEmpty","showTomanTag","showValueInAlphabet","tagValue","maxValue","value","OnInput"],["class","sub-title-warning",4,"ngIf"],[2,"display","flex","flex-direction","row","justify-content","space-between","margin-top","15px"],[2,"width","45%"],["label"," ",3,"inputId","showTagWhenEmpty","showTomanTag","showValueInAlphabet","showZero","maxValue","value","classDisabled","click"],["label"," ",3,"inputId","showZero","showTagWhenEmpty","showTomanTag","showValueInAlphabet","maxValue","value","classDisabled","click"],[1,"btn","btn-success","btn-fixed-mob","btn-max-size",2,"width","100%","margin-top","15px",3,"click"],[1,"sub-title-warning"]],template:function(o,A){1&o&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._UZ(3,"img",3),e.TgZ(4,"h5"),e._uU(5," \u0628\u0627\u0632\u067e\u0631\u062f\u0627\u062e\u062a \u06a9\u0627\u067e\u200c\u06a9\u0627\u0631\u062a (\u06a9\u0627\u0631\u062a \u0627\u0639\u062a\u0628\u0627\u0631\u06cc \u067e\u0627\u0633\u0627\u0631\u06af\u0627\u062f) "),e.qZA()(),e.TgZ(6,"section",4)(7,"div",5)(8,"div",6)(9,"section",7)(10,"ul",8)(11,"li",9)(12,"div",10)(13,"span",11),e._uU(14," \u0627\u0635\u0644 \u0628\u062f\u0647\u06cc \u062c\u0627\u0631\u06cc "),e.qZA(),e.TgZ(15,"span",12),e._uU(16),e.ALo(17,"numberSeparator"),e.qZA()()(),e.TgZ(18,"li",9)(19,"div",10)(20,"span",11),e._uU(21," \u062d\u062f\u0627\u0642\u0644 \u0645\u0628\u0644\u063a \u0642\u0627\u0628\u0644 \u067e\u0631\u062f\u0627\u062e\u062a "),e.qZA(),e.TgZ(22,"span",13),e._uU(23),e.ALo(24,"numberSeparator"),e.qZA()()()()()()()(),e.TgZ(25,"div",14)(26,"div",15)(27,"section",2)(28,"p",16),e._uU(29,"\u0644\u0637\u0641\u0627 \u0645\u0628\u0644\u063a\u06cc \u06a9\u0647 \u0645\u06cc\u062e\u0648\u0627\u0647\u06cc\u062f \u067e\u0631\u062f\u0627\u062e\u062a \u06a9\u0646\u06cc\u062f \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f"),e.qZA(),e.TgZ(30,"div",17)(31,"app-input-tagged-numbers",18),e.NdJ("OnInput",function(he){return A.amount=he}),e.qZA(),e.YNc(32,j1,4,5,"p",19),e.qZA(),e.TgZ(33,"div",20)(34,"div",21)(35,"app-input-tagged-numbers",22),e.NdJ("click",function(){return A.amount=10*A.minAmount}),e.qZA(),e.YNc(36,G1,3,3,"p",19),e.qZA(),e.TgZ(37,"div",21)(38,"app-input-tagged-numbers",23),e.NdJ("click",function(){return A.amount=10*A.maxAmount}),e.qZA(),e.YNc(39,bg,3,3,"p",19),e.qZA()(),e.TgZ(40,"button",24),e.NdJ("click",function(){return A.payInvoice()}),e._uU(41,"\u062a\u0627\u06cc\u06cc\u062f "),e.qZA()()()()()()),2&o&&(e.xp6(16),e.hij(" ",e.lcZ(17,29,A.maxAmount)," \u062a\u0648\u0645\u0627\u0646 "),e.xp6(7),e.hij(" ",e.lcZ(24,31,A.minAmount)," \u062a\u0648\u0645\u0627\u0646 "),e.xp6(8),e.Q6J("inputId","amount")("showZero",!0)("showTagWhenEmpty",!0)("showTomanTag",!1)("showValueInAlphabet",A.amount>0)("tagValue","\u0631\u06cc\u0627\u0644")("maxValue",999999999)("value",A.amount),e.xp6(1),e.Q6J("ngIf",null==A.amount?null:A.amount.toString()),e.xp6(3),e.Q6J("inputId","minAmount")("showTagWhenEmpty",!0)("showTomanTag",!1)("showValueInAlphabet",A.minAmount>0)("showZero",!0)("maxValue",999999999)("value",A.minAmount)("classDisabled",!0),e.xp6(1),e.Q6J("ngIf",null==A.minAmount?null:A.minAmount.toString()),e.xp6(2),e.Q6J("inputId","maxAmount")("showZero",!0)("showTagWhenEmpty",!0)("showTomanTag",!1)("showValueInAlphabet",A.maxAmount>0)("maxValue",999999999)("value",A.maxAmount)("classDisabled",!0),e.xp6(1),e.Q6J("ngIf",null==A.maxAmount?null:A.maxAmount.toString()))},directives:[Rh.B,G.O5],pipes:[La.sz,La.pm],encapsulation:2}),T})();function CC(T,S){if(1&T&&(e.TgZ(0,"li",13)(1,"div",14)(2,"span",15),e._uU(3),e.qZA(),e.TgZ(4,"span",16),e._uU(5),e.ALo(6,"newNumberSeparator"),e.ALo(7,"rialToToman"),e.qZA()()()),2&T){const o=S.$implicit;e.xp6(3),e.hij(" ",o.title," "),e.xp6(2),e.hij(" ",e.lcZ(6,2,e.lcZ(7,4,o.value))," \u062a\u0648\u0645\u0627\u0646 ")}}function bC(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"div",17)(1,"label",18)(2,"input",19),e.NdJ("change",function(){return e.CHM(o),e.oxw().toggleRepayOption()}),e.qZA(),e._UZ(3,"span",20),e.qZA(),e.TgZ(4,"div",21)(5,"label",22),e._uU(6,"\u062a\u0633\u0648\u06cc\u0647 \u06a9\u0627\u0645\u0644 \u0627\u0639\u062a\u0628\u0627\u0631"),e.qZA()()()}if(2&T){const o=e.oxw();e.xp6(2),e.Q6J("checked",o.isRepayOptionEnabled)}}function y6(T,S){if(1&T&&(e.ynx(0),e._uU(1),e.ALo(2,"newNumberSeparator"),e.ALo(3,"rialToToman"),e.BQk()),2&T){const o=e.oxw(2);e.xp6(1),e.hij(" \u0628\u06cc\u0646 ",e.lcZ(2,1,e.lcZ(3,3,o.minAmount))," \u062a\u0627 ")}}function Sg(T,S){1&T&&(e.ynx(0),e._uU(1," \u062d\u062f\u0627\u06a9\u062a\u0631 "),e.BQk())}function Tg(T,S){if(1&T&&(e.TgZ(0,"p",23),e._uU(1," \u0645\u0628\u0644\u063a \u0648\u0627\u0631\u062f \u0634\u062f\u0647 \u0628\u0627\u06cc\u062f "),e.YNc(2,y6,4,5,"ng-container",24),e.YNc(3,Sg,2,0,"ng-container",24),e._uU(4),e.ALo(5,"newNumberSeparator"),e.ALo(6,"rialToToman"),e.qZA()),2&T){const o=e.oxw();e.xp6(2),e.Q6J("ngIf",o.minAmount),e.xp6(1),e.Q6J("ngIf",!o.minAmount),e.xp6(1),e.hij(" ",e.lcZ(5,3,e.lcZ(6,5,o.maxAmount))," \u062a\u0648\u0645\u0627\u0646 \u0628\u0627\u0634\u062f. ")}}function Z1(T,S){if(1&T&&(e.TgZ(0,"p",25),e._uU(1),e.qZA()),2&T){const o=e.oxw();e.xp6(1),e.hij(" ",o.maxAmountText," ")}}function Eg(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"section",26)(1,"button",27),e.NdJ("click",function(ee){return e.CHM(o),e.oxw().confirm(ee)}),e._uU(2),e.qZA()()}if(2&T){const o=e.oxw();e.xp6(1),e.ekj("disabled",o.invalidInput),e.Q6J("disabled",o.invalidInput),e.xp6(1),e.hij(" ",o.data.buttons.first.title," ")}}let Mg=(()=>{class T{constructor(o,A){this.expenseCreditDataPassingService=o,this.resourceAppService=A,this.initAmount=0,this.invalidInput=!1,this.hideMaxAmountEntered=!1,this.maxAmountEntered=!1,this.showRepayOption=!1,this.isRepayOptionEnabled=!1,this.rialToToman=new La.pm}ngOnInit(){this.data=vr.j.data.value,this.initAmount=this.data?.initialAmount?this.data?.initialAmount:null,this.minAmount=this.data.minAmount||0,this.maxAmount=this.data.maxAmount,this.totalAmount=this.data.totalAmount,this.hideMaxAmountEntered=this.data.hideMaxAmountEntered,this.showRepayOption=!!this.data.showRepayOption,this.maxLength=this.maxAmount.toString().length+Math.floor(this.maxAmount.toString().length/3),this.resourceAppService.getValueFromResource().then(o=>{this.maxAmountText=o.UsageCredit.ExtendPaymentMaxAmount||"\u062a\u0633\u0648\u06cc\u0647 \u06a9\u0627\u0645\u0644 \u0627\u0639\u062a\u0628\u0627\u0631"}),this.initAmount&&this.onInput(this.initAmount)}checkForm(){this.invalidInput=!this.paymentAmount||10*this.paymentAmount-this.maxAmount>=10||this.minAmount-10*this.paymentAmount>=10}confirm(o){o.target.classList.add("disabled"),this.isRepayOptionEnabled?this.data.buttons.first.action(this.totalAmount):(this.checkForm(),this.invalidInput?o.target.classList.remove("disabled"):this.data.buttons.first.action(this.maxAmount-10*this.paymentAmount>10?10*this.paymentAmount-this.minAmount<10?this.minAmount:10*this.paymentAmount:this.maxAmount).then(()=>{},()=>{o.target.classList.remove("disabled")}))}onInput(o){this.paymentAmount=o===this.initAmount?Number(this.rialToToman.transform(this.initAmount)):parseInt(o,10),this.checkForm(),this.maxAmountEntered=this.paymentAmount===this.maxAmount}toggleRepayOption(){this.isRepayOptionEnabled=!this.isRepayOptionEnabled,this.initAmount=this.isRepayOptionEnabled?this.totalAmount:this.maxAmount,this.onInput(this.initAmount),this.invalidInput=!1}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(nd.Q),e.Y36(Yd.K))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-expense-credit-extend-payment-modal"]],decls:19,vars:24,consts:[[1,"expense-credit-modal-wrapper"],[1,"container-per-page"],[1,"expense-credit-select-title","gray-light"],[2,"line-height","24px",3,"innerHTML"],[1,"item"],["class","list-item","style","cursor: text;",4,"ngFor","ngForOf"],["class","checkmark-row",4,"ngIf"],[1,"form-wrapper"],[1,"form-group","form-filter-amount"],["label","\u0645\u0628\u0644\u063a \u067e\u0631\u062f\u0627\u062e\u062a\u06cc \u062e\u0648\u062f \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f:",2,"width","100%",3,"inputId","maxLength","maxValue","minValue","value","showTagWhenEmpty","showTomanTag","showValueInAlphabet","classDisabled","OnInput"],["class","error",4,"ngIf"],["class","error","style","color: lightgray;",4,"ngIf"],["class","basic-modal-btns modal-footer",4,"ngIf"],[1,"list-item",2,"cursor","text"],[1,"list-content"],[1,"list-content-key","gray-light"],[1,"list-content-key","bold",2,"color","black"],[1,"checkmark-row"],[1,"label"],["id","checkmark","type","checkbox",3,"checked","change"],[1,"checkmark"],[1,"description"],["for","checkmark"],[1,"error"],[4,"ngIf"],[1,"error",2,"color","lightgray"],[1,"basic-modal-btns","modal-footer"],[1,"full-size-button","single-button",3,"disabled","click"]],template:function(o,A){1&o&&(e.TgZ(0,"div",0)(1,"div",1)(2,"span",2),e._uU(3),e.qZA(),e._UZ(4,"p",3),e.TgZ(5,"section",4)(6,"ul"),e.YNc(7,CC,8,6,"li",5),e.qZA()(),e.YNc(8,bC,7,1,"div",6),e.TgZ(9,"div",7)(10,"div",8)(11,"section")(12,"app-input-tagged-numbers",9),e.NdJ("OnInput",function(he){return A.onInput(he)}),e.ALo(13,"rialToToman"),e.ALo(14,"rialToToman"),e.ALo(15,"rialToToman"),e.qZA(),e.YNc(16,Tg,7,7,"p",10),e.YNc(17,Z1,2,1,"p",11),e.qZA()()(),e.YNc(18,Eg,3,4,"section",12),e.qZA()()),2&o&&(e.xp6(3),e.hij(" ",A.data.title," "),e.xp6(1),e.Q6J("innerHTML",A.data.desc,e.oJD),e.xp6(3),e.Q6J("ngForOf",A.data.details),e.xp6(1),e.Q6J("ngIf",A.showRepayOption),e.xp6(4),e.Udp("opacity",A.isRepayOptionEnabled?"50%":""),e.Q6J("inputId","paymentAmount")("maxLength",A.maxLength)("maxValue",e.lcZ(13,18,A.maxAmount))("minValue",e.lcZ(14,20,A.minAmount))("value",A.initAmount?e.lcZ(15,22,A.initAmount):null)("showTagWhenEmpty",!0)("showTomanTag",!1)("showValueInAlphabet",!1)("classDisabled",A.isRepayOptionEnabled),e.xp6(4),e.Q6J("ngIf",A.invalidInput&&A.paymentAmount&&!A.isRepayOptionEnabled),e.xp6(1),e.Q6J("ngIf",A.maxAmountEntered&&!A.hideMaxAmountEntered),e.xp6(1),e.Q6J("ngIf",null==A.data?null:A.data.buttons))},directives:[G.sg,G.O5,Rh.B],pipes:[La.an,La.pm],encapsulation:2}),T})();var SC=n(61262),TC=n(56774);function EC(T,S){1&T&&e._UZ(0,"img",10)}function MC(T,S){1&T&&(e.TgZ(0,"h5",11),e._uU(1," \u0628\u0647 \u0648\u06cc\u067e\u0627\u062f \u0686\u0647 \u0627\u0645\u062a\u06cc\u0627\u0632\u06cc \u0645\u06cc\u200c\u062f\u0647\u06cc\u062f\u061f "),e.qZA())}function z1(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"img",12),e.NdJ("click",function(){e.CHM(o);const ee=e.oxw();return ee.rated?ee.doNothing():ee.rating=1}),e.qZA()}if(2&T){const o=e.oxw();e.Q6J("src",o.rating>0?"assets/images/shared/star.svg":"assets/images/shared/star-outline.svg",e.LSH)}}function wg(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"img",12),e.NdJ("click",function(){e.CHM(o);const ee=e.oxw();return ee.rated?ee.doNothing():ee.rating=2}),e.qZA()}if(2&T){const o=e.oxw();e.Q6J("src",o.rating>1?"assets/images/shared/star.svg":"assets/images/shared/star-outline.svg",e.LSH)}}function K1(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"img",12),e.NdJ("click",function(){e.CHM(o);const ee=e.oxw();return ee.rated?ee.doNothing():ee.rating=3}),e.qZA()}if(2&T){const o=e.oxw();e.Q6J("src",o.rating>2?"assets/images/shared/star.svg":"assets/images/shared/star-outline.svg",e.LSH)}}function q1(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"img",12),e.NdJ("click",function(){e.CHM(o);const ee=e.oxw();return ee.rated?ee.doNothing():ee.rating=4}),e.qZA()}if(2&T){const o=e.oxw();e.Q6J("src",o.rating>3?"assets/images/shared/star.svg":"assets/images/shared/star-outline.svg",e.LSH)}}function J1(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"img",12),e.NdJ("click",function(){e.CHM(o);const ee=e.oxw();return ee.rated?ee.doNothing():ee.rating=5}),e.qZA()}if(2&T){const o=e.oxw();e.Q6J("src",o.rating>4?"assets/images/shared/star.svg":"assets/images/shared/star-outline.svg",e.LSH)}}function $1(T,S){1&T&&(e.TgZ(0,"h5",11),e._uU(1," \u0646\u0638\u0631 \u0634\u0645\u0627 \u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f. "),e.qZA())}function wC(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"section",13)(1,"div",14)(2,"div",15)(3,"app-input-tagged-text-desc",16),e.NdJ("OnInput",function(ee){return e.CHM(o),e.oxw().opinion=ee}),e.qZA()()()()}if(2&T){const o=e.oxw();e.xp6(3),e.Q6J("inputId","opinion")("value",o.opinion)}}function Q1(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"button",17),e.NdJ("click",function(){return e.CHM(o),e.oxw().submit()}),e._uU(1,"\u062b\u0628\u062a"),e.qZA()}}function X1(T,S){1&T&&(e.TgZ(0,"span"),e._uU(1,"\u0646\u0638\u0631\u06cc \u0646\u062f\u0627\u0631\u0645"),e.qZA())}function xC(T,S){1&T&&(e.TgZ(0,"span"),e._uU(1,"\u0628\u0633\u062a\u0646"),e.qZA())}let e_=(()=>{class T{constructor(o,A){this.ratingService=o,this.routingAppService=A,this.rating=0,this.opinion="",this.rated=!1}ngOnInit(){}submit(){this.ratingService.submitRating(this.rating,this.opinion).subscribe(()=>{this.rated=!0})}doNothing(){}closeDialog(){(0,vr.Mr)(),this.routingAppService.navigate(["landing"])}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(SC.V),e.Y36(ua.s))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-rating-modal"]],decls:16,vars:14,consts:[[1,"micro-facilities-branch-confirmation-wrapper"],["src","assets/images/logo-wepod.png","alt","\u0648\u06cc\u067e\u0627\u062f",4,"ngIf"],["class","bolder",4,"ngIf"],[2,"display","flex","justify-content","center","padding","16px 0 8px 0","flex-direction","row-reverse"],["style","width: 32px; margin: 0 4px;","alt","",3,"src","click",4,"ngIf"],["style","width: calc(100% - 32px)","class","list-wrapper",4,"ngIf"],[1,"branch-confirmation-btns","modal-footer"],["class","branch-confirmation-btns-confirm",3,"click",4,"ngIf"],[1,"branch-confirmation-btns-close",3,"click"],[4,"ngIf"],["src","assets/images/logo-wepod.png","alt","\u0648\u06cc\u067e\u0627\u062f"],[1,"bolder"],["alt","",2,"width","32px","margin","0 4px",3,"src","click"],[1,"list-wrapper",2,"width","calc(100% - 32px)"],[1,"form-wrapper",2,"display","flex","justify-content","center"],[1,"form-group",2,"margin","0"],["placeHolder","\u0646\u0638\u0631 \u062e\u0648\u062f \u0631\u0627 \u0628\u06cc\u0627\u0646 \u06a9\u0646\u06cc\u062f (\u0627\u062e\u062a\u06cc\u0627\u0631\u06cc)",2,"text-align","right","padding","4px",3,"inputId","value","OnInput"],[1,"branch-confirmation-btns-confirm",3,"click"]],template:function(o,A){1&o&&(e.TgZ(0,"div",0),e.YNc(1,EC,1,0,"img",1),e.YNc(2,MC,2,0,"h5",2),e.TgZ(3,"div",3),e.YNc(4,z1,1,1,"img",4),e.YNc(5,wg,1,1,"img",4),e.YNc(6,K1,1,1,"img",4),e.YNc(7,q1,1,1,"img",4),e.YNc(8,J1,1,1,"img",4),e.qZA(),e.YNc(9,$1,2,0,"h5",2),e.YNc(10,wC,4,2,"section",5),e.TgZ(11,"section",6),e.YNc(12,Q1,2,0,"button",7),e.TgZ(13,"button",8),e.NdJ("click",function(){return A.closeDialog()}),e.YNc(14,X1,2,0,"span",9),e.YNc(15,xC,2,0,"span",9),e.qZA()()()),2&o&&(e.xp6(1),e.Q6J("ngIf",!A.rated),e.xp6(1),e.Q6J("ngIf",!A.rated),e.xp6(2),e.Q6J("ngIf",!A.rated||A.rated&&A.rating>0),e.xp6(1),e.Q6J("ngIf",!A.rated||A.rated&&A.rating>1),e.xp6(1),e.Q6J("ngIf",!A.rated||A.rated&&A.rating>2),e.xp6(1),e.Q6J("ngIf",!A.rated||A.rated&&A.rating>3),e.xp6(1),e.Q6J("ngIf",!A.rated||A.rated&&A.rating>4),e.xp6(1),e.Q6J("ngIf",A.rated),e.xp6(1),e.Q6J("ngIf",!A.rated),e.xp6(2),e.Q6J("ngIf",!A.rated),e.xp6(1),e.ekj("single-button",A.rated),e.xp6(1),e.Q6J("ngIf",!A.rated),e.xp6(1),e.Q6J("ngIf",A.rated))},directives:[G.O5,TC.r],encapsulation:2}),T})();var kf=n(66150);function Wo(T,S){1&T&&e._UZ(0,"app-spinner",7)}function Nf(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"li",10)(1,"section",11)(2,"input",12),e.NdJ("change",function(){const he=e.CHM(o).$implicit;return e.oxw(2).selectItem(he.key)}),e.qZA(),e._UZ(3,"input",13),e.TgZ(4,"label",14),e._uU(5),e.qZA()()()}if(2&T){const o=S.$implicit;e.xp6(2),e.Q6J("id",o.key),e.xp6(2),e.Q6J("for",o.key),e.xp6(1),e.Oqu(o.value)}}function IC(T,S){if(1&T&&(e.TgZ(0,"ul",8),e.YNc(1,Nf,6,3,"li",9),e.qZA()),2&T){const o=e.oxw();e.xp6(1),e.Q6J("ngForOf",o.requestCauseType)}}const AC=function(T){return{"text-align":T}};let C6=(()=>{class T{constructor(o,A,ee,he,Ye){this.configurationService=o,this.digitalCardService=A,this.physicalCardDataPassingService=ee,this.routingAppService=he,this.tagManager=Ye,this.isDisabledBtn=!0,this.developmentMode=ni.Sq}ngOnInit(){(0,ni.Sq)("DataLayerGoogleAnalytics")&&this.tagManager.pushEvent("card_copy_visit",{}),this.beforeNumber=vr.j.data.value.beforeNumber,this.getRequestCauseType(vr.j.data.value)}continues(){(0,vr.Mr)(),vr.j.data.value.beforeNumber?this.digitalCardService.getRePrintCardIssuanceCost().subscribe(o=>{this.physicalCardDataPassingService.costResendCardWithBeforeNum=o.cost,this.physicalCardDataPassingService.requestCause=this.selectKey,setTimeout(()=>{vr.j.data.next(null),vr.j.bgWhite=!0,vr.j.desktopStyle=!0,vr.j.hideDesktopHeaderClose=!0,vr.j.disableBackdropClosing=!0,vr.j.fullScreen.next(!1),vr.j.basicModalData.next({img:"assets/images/digital-card/before-number.svg",title:"\u0635\u062f\u0648\u0631 \u06a9\u0627\u0631\u062a \u0628\u0627 \u0634\u0645\u0627\u0631\u0647 \u0633\u0627\u0628\u0642",desc:[o.message],buttons:{first:{title:"\u062a\u0627\u06cc\u06cc\u062f",action:()=>{(0,vr.Mr)(),this.routingAppService.navigate(["digital-card/resend-card-confirm"],{queryParams:{keyValue:this.selectKey,cost:o.cost}})},green:!0},second:{title:"\u0628\u0633\u062a\u0646",action:()=>{(0,vr.Mr)()},gray:!0}}}),(0,vr.h7)("basicModal")},500)}):this.digitalCardService.getSecondaryCardIssuanceCost().subscribe(o=>{setTimeout(()=>{vr.j.data.next(null),vr.j.bgWhite=!0,vr.j.desktopStyle=!0,vr.j.hideDesktopHeaderClose=!0,vr.j.disableBackdropClosing=!0,vr.j.fullScreen.next(!1),vr.j.basicModalData.next({img:"assets/images/physical-card/activate-card.svg",title:"\u0635\u062f\u0648\u0631 \u06a9\u0627\u0631\u062a \u0627\u0644\u0645\u062b\u0646\u06cc",desc:[o.message],buttons:{first:{title:"\u062a\u0627\u06cc\u06cc\u062f",action:()=>{(0,vr.Mr)(),this.routingAppService.navigate(["digital-card/resend-card-confirm"],{queryParams:{keyValue:this.selectKey,cost:o.cost}})},green:!0},second:{title:"\u0628\u0633\u062a\u0646",action:()=>{(0,vr.Mr)()},gray:!0}}}),(0,vr.h7)("basicModal")},500)})}getRequestCauseType(o){o.beforeNumber?this.configurationService.getRePrintCardRequestCauses().subscribe(A=>{this.requestCauseType=A}):this.configurationService.getSecondaryCardRequestCauses().subscribe(A=>{this.requestCauseType=A})}selectItem(o){this.selectKey=o,this.isDisabledBtn=!1}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(mg.e),e.Y36(Lf.w),e.Y36(Gd.z),e.Y36(ua.s),e.Y36(wc.c))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-cause-request-resend-card-modal"]],decls:8,vars:7,consts:[[1,"cause-request-resend-card-modal-wrapper"],["src","/assets/images/digital-card/cause-request.svg","alt",""],[3,"ngStyle","innerHTML"],[1,"list-wrapper"],["color","dark-gray","text","\u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc \u0644\u06cc\u0633\u062a \u0639\u0644\u062a \u062f\u0631\u062e\u0648\u0627\u0633\u062a",4,"ngIf"],["class","list",4,"ngIf"],[1,"btn","btn-success",3,"disabled","click"],["color","dark-gray","text","\u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc \u0644\u06cc\u0633\u062a \u0639\u0644\u062a \u062f\u0631\u062e\u0648\u0627\u0633\u062a"],[1,"list"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"checkbox"],["type","radio","name","saveExpireDate","value","option",3,"id","change"],["name","saveExpireDate","type","hidden","value","false",2,"display","none"],[3,"for"]],template:function(o,A){1&o&&(e.TgZ(0,"article",0),e._UZ(1,"img",1)(2,"p",2),e.TgZ(3,"div",3),e.YNc(4,Wo,1,0,"app-spinner",4),e.YNc(5,IC,2,1,"ul",5),e.qZA(),e.TgZ(6,"button",6),e.NdJ("click",function(){return A.continues()}),e._uU(7,"\u0627\u062f\u0627\u0645\u0647"),e.qZA()()),2&o&&(e.xp6(2),e.Q6J("ngStyle",e.VKq(5,AC,A.beforeNumber?"right":"center"))("innerHTML",A.beforeNumber?"\u0639\u0644\u062a \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u0634\u0645\u0627 \u0628\u0631\u0627\u06cc \u062f\u0631\u06cc\u0627\u0641\u062a \u0635\u062f\u0648\u0631 \u0645\u062c\u062f\u062f \u06a9\u0627\u0631\u062a \u0628\u0627 \u0634\u0645\u0627\u0631\u0647 \u0633\u0627\u0628\u0642 \u0686\u06cc\u0633\u062a\u061f":"\u0639\u0644\u062a \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u0634\u0645\u0627 \u0628\u0631\u0627\u06cc \u062f\u0631\u06cc\u0627\u0641\u062a \u0635\u062f\u0648\u0631 \u06a9\u0627\u0631\u062a \u0628\u0627 \u0634\u0645\u0627\u0631\u0647 \u062c\u062f\u06cc\u062f \u0686\u06cc\u0633\u062a\u061f",e.oJD),e.xp6(2),e.Q6J("ngIf",0===(null==A.requestCauseType?null:A.requestCauseType.length)),e.xp6(1),e.Q6J("ngIf",(null==A.requestCauseType?null:A.requestCauseType.length)>0),e.xp6(1),e.Q6J("disabled",A.isDisabledBtn))},directives:[G.PC,G.O5,kf.O,G.sg],encapsulation:2}),T})();function Lh(T,S){if(1&T&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&T){const o=e.oxw();e.xp6(1),e.Oqu(o.timeLeft)}}function DC(T,S){1&T&&(e.TgZ(0,"span"),e._uU(1,"\u0627\u0633\u062a\u0639\u0644\u0627\u0645"),e.qZA())}let xg=(()=>{class T{constructor(o){this.validationDataPassingService=o}ngOnInit(){this.startTimer()}startTimer(){const o=(new Date).getTime();this.timeLeft=20,(0,hi.Jj)()&&(clearInterval(this.interval),this.interval=setInterval(()=>{const A=20-Math.floor(((new Date).getTime()-o)/1e3);A>0?this.timeLeft=A:clearInterval(this.interval)},1e3))}inquiry(){0===this.timeLeft&&(this.validationDataPassingService.enableOtpWaiting.next(!0),(0,vr.Mr)())}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(sg.k))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-validation-insert-otp-modal"]],decls:11,vars:6,consts:[[1,"basic-modal-wrapper"],[1,"basic-modal-container"],["src","assets/images/register/locked-timer.svg","alt","timer"],[1,"bolder"],[1,"basic-modal-btns","modal-footer"],[2,"width","100%",3,"click"],[4,"ngIf"]],template:function(o,A){1&o&&(e.TgZ(0,"div",0)(1,"section",1),e._UZ(2,"img",2),e.TgZ(3,"h5",3),e._uU(4," \u062f\u0631\u062d\u0627\u0644 \u0628\u0631\u0631\u0633\u06cc \u0648\u0636\u0639\u06cc\u062a \u0627\u0639\u062a\u0628\u0627\u0631\u0633\u0646\u062c\u06cc "),e.qZA(),e.TgZ(5,"p"),e._uU(6,"\u0627\u06cc\u0646 \u0628\u062e\u0634 \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0632\u0645\u0627\u0646\u0628\u0631 \u0628\u0627\u0634\u062f\u060c \u0644\u0637\u0641\u0627 \u062a\u0627 \u067e\u0627\u06cc\u0627\u0646 \u0628\u0631\u0631\u0633\u06cc \u0645\u0646\u062a\u0638\u0631 \u0628\u0645\u0627\u0646\u06cc\u062f..."),e.qZA()(),e.TgZ(7,"section",4)(8,"button",5),e.NdJ("click",function(){return A.inquiry()}),e.YNc(9,Lh,2,1,"span",6),e.YNc(10,DC,2,0,"span",6),e.qZA()()()),2&o&&(e.xp6(8),e.ekj("basic-modal-btns-confirm",0===A.timeLeft)("basic-modal-btns-close",0!==A.timeLeft),e.xp6(1),e.Q6J("ngIf",0!==A.timeLeft),e.xp6(1),e.Q6J("ngIf",0===A.timeLeft))},directives:[G.O5],encapsulation:2}),T})();var PC=n(73371),Ig=n(75869);function OC(T,S){if(1&T&&(e.TgZ(0,"b"),e._uU(1),e.qZA()),2&T){const o=e.oxw();e.xp6(1),e.hij(" \u06a9\u0627\u0631\u0628\u0631 \u06af\u0631\u0627\u0645\u06cc\u060c \u0634\u0645\u0627 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0627 \u062a\u0648\u062c\u0647 \u0628\u0647 \u0627\u0645\u062a\u06cc\u0627\u0632\u0627\u062a \u062e\u0648\u062f\u060c ",o.wepodCreditDataPassingService.wepodContractInfo.remainingDays," \u0631\u0648\u0632 \u062f\u06cc\u06af\u0631 \u0627\u0642\u062f\u0627\u0645 \u0628\u0647 \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u062a\u0633\u0647\u06cc\u0644\u0627\u062a \u0648\u06cc\u067e\u0627\u062f\u06cc \u06a9\u0646\u06cc\u062f. ")}}function RC(T,S){1&T&&(e.TgZ(0,"b"),e._uU(1," \u06a9\u0627\u0631\u0628\u0631 \u06af\u0631\u0627\u0645\u06cc\u060c \u062d\u062f\u0627\u0642\u0644 \u0632\u0645\u0627\u0646 \u0645\u0648\u0631\u062f \u0646\u06cc\u0627\u0632 \u0628\u0631\u0627\u06cc \u062f\u0631\u06cc\u0627\u0641\u062a \u062a\u0633\u0647\u06cc\u0644\u0627\u062a \u0648\u06cc\u067e\u0627\u062f\u06cc \u0628\u0647 \u0627\u062a\u0645\u0627\u0645 \u0631\u0633\u06cc\u062f\u0647. \u0634\u0645\u0627 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0627 \u062a\u0648\u062c\u0647 \u0628\u0647 \u0627\u0645\u062a\u06cc\u0627\u0632\u0627\u062a \u062e\u0648\u062f \u0627\u0642\u062f\u0627\u0645 \u0628\u0647 \u062f\u0631\u06cc\u0627\u0641\u062a \u062a\u0633\u0647\u06cc\u0644\u0627\u062a \u0646\u0645\u0627\u06cc\u06cc\u062f. "),e.qZA())}function Ag(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"button",18),e.NdJ("click",function(){return e.CHM(o),e.oxw().close()}),e._uU(1,"\u0628\u0633\u062a\u0646"),e.qZA()}}function t_(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"div",19)(1,"button",18),e.NdJ("click",function(){return e.CHM(o),e.oxw().request()}),e._uU(2,"\u062f\u0631\u062e\u0648\u0627\u0633\u062a \u062a\u0633\u0647\u06cc\u0644\u0627\u062a"),e.qZA(),e.TgZ(3,"button",20),e.NdJ("click",function(){return e.CHM(o),e.oxw().close()}),e._uU(4,"\u0627\u0646\u0635\u0631\u0627\u0641"),e.qZA()()}}let r_=(()=>{class T{constructor(o){this.wepodCreditDataPassingService=o}ngOnInit(){this.data=vr.j.data.value}request(){}close(){(0,vr.Mr)()}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(PC.s))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-wepod-credit-request-modal"]],decls:38,vars:10,consts:[[1,"wepod-credit-modal-wrapper"],[1,"modal-content"],["alt","\u0627\u062e\u0637\u0627\u0631",1,"modal-logo",3,"src"],[1,"date-box"],[4,"ngIf"],[1,"item"],[1,"item-body"],[1,"item-body-details"],[1,"list-wrapper"],[1,"list"],[1,"list-item"],[1,"list-content"],[1,"list-content-key-box"],["src","/assets/images/wepod-credit/wepod-credit-modal-item.svg","alt","\u0627\u062e\u0637\u0627\u0631"],[1,"list-content-key"],[1,"list-content-value","bold"],["class","btn btn-success confirm-button",3,"click",4,"ngIf"],["class","btn-container",4,"ngIf"],[1,"btn","btn-success","confirm-button",3,"click"],[1,"btn-container"],[1,"btn","btn-line-success","confirm-button",3,"click"]],template:function(o,A){1&o&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"img",2),e.TgZ(3,"p",3),e.YNc(4,OC,2,1,"b",4),e.YNc(5,RC,2,0,"b",4),e.qZA(),e.TgZ(6,"section",5)(7,"div",6)(8,"div",7)(9,"section",8)(10,"ul",9)(11,"li",10)(12,"div",11)(13,"div",12),e._UZ(14,"img",13),e.TgZ(15,"span",14),e._uU(16," \u0634\u0631\u0648\u0639 \u0627\u0645\u062a\u06cc\u0627\u0632\u06af\u06cc\u0631\u06cc "),e.qZA()(),e.TgZ(17,"span",15),e._uU(18),e.ALo(19,"jalaliDate"),e.qZA()()(),e.TgZ(20,"li",10)(21,"div",11)(22,"div",12),e._UZ(23,"img",13),e.TgZ(24,"span",14),e._uU(25," \u062d\u062f\u0627\u0642\u0644 \u0645\u062f\u062a \u0627\u0645\u062a\u06cc\u0627\u0632\u06af\u06cc\u0631\u06cc "),e.qZA()(),e.TgZ(26,"span",15),e._uU(27),e.qZA()()(),e.TgZ(28,"li",10)(29,"div",11)(30,"div",12),e._UZ(31,"img",13),e.TgZ(32,"span",14),e._uU(33," \u062d\u062f\u0627\u06a9\u062b\u0631 \u0645\u062f\u062a \u0627\u0645\u062a\u06cc\u0627\u0632\u06af\u06cc\u0631\u06cc "),e.qZA()(),e.TgZ(34,"span",15),e._uU(35),e.qZA()()()()()()()(),e.YNc(36,Ag,2,0,"button",16),e.YNc(37,t_,5,0,"div",17),e.qZA()()),2&o&&(e.xp6(2),e.Q6J("src",A.wepodCreditDataPassingService.wepodContractInfo.isRequestEnabled?"/assets/images/wepod-credit/wepod-credit-tick.svg":"/assets/images/wepod-credit/wepod-credit-loader.svg",e.LSH),e.xp6(2),e.Q6J("ngIf",!A.wepodCreditDataPassingService.wepodContractInfo.isRequestEnabled),e.xp6(1),e.Q6J("ngIf",A.wepodCreditDataPassingService.wepodContractInfo.isRequestEnabled),e.xp6(13),e.hij(" ",e.lcZ(19,8,A.data.startDate)," "),e.xp6(9),e.hij(" ",A.data.minDuration," "),e.xp6(8),e.hij(" ",A.data.maxDuration," "),e.xp6(1),e.Q6J("ngIf",!A.wepodCreditDataPassingService.wepodContractInfo.isRequestEnabled),e.xp6(1),e.Q6J("ngIf",A.wepodCreditDataPassingService.wepodContractInfo.isRequestEnabled))},directives:[G.O5],pipes:[Ig.KK],encapsulation:2}),T})(),O0=(()=>{class T{constructor(){}ngOnInit(){this.data=vr.j.data.value}close(){(0,vr.Mr)()}}return T.\u0275fac=function(o){return new(o||T)},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-cheque-inquiry-modal"]],decls:64,vars:19,consts:[[1,"cheque-inquiry-modal-wrapper"],["src","/assets/images/cheque/cheque-inquiry-modal.svg","alt",""],[1,"list-wrapper"],[1,"list"],[1,"list-item"],[1,"list-content"],[1,"list-item-amount"],[1,"btn","btn-success",3,"click"]],template:function(o,A){1&o&&(e.TgZ(0,"article",0),e._UZ(1,"img",1),e.TgZ(2,"p"),e._uU(3," \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0686\u06a9 \u0627\u0633\u062a\u0639\u0644\u0627\u0645 \u0634\u062f\u0647 \u0628\u0647 \u0634\u0631\u062d \u0632\u06cc\u0631 \u0627\u0633\u062a: "),e.qZA(),e.TgZ(4,"section",2)(5,"ul",3)(6,"li",4)(7,"div",5)(8,"header"),e._uU(9,"\u0634\u0646\u0627\u0633\u0647 \u0635\u06cc\u0627\u062f\u06cc"),e.qZA(),e.TgZ(10,"span"),e._uU(11),e.qZA()()(),e.TgZ(12,"li",4)(13,"div",5)(14,"header"),e._uU(15,"\u0634\u0645\u0627\u0631\u0647 \u0686\u06a9"),e.qZA(),e.TgZ(16,"span"),e._uU(17),e.qZA()()(),e.TgZ(18,"li",4)(19,"div",5)(20,"header"),e._uU(21,"\u0645\u0628\u0644\u063a \u0686\u06a9"),e.qZA(),e.TgZ(22,"div",6)(23,"span"),e._uU(24),e.ALo(25,"numberSeparator"),e.ALo(26,"rialToToman"),e.qZA(),e.TgZ(27,"span"),e._uU(28),e.ALo(29,"numberSeparator"),e.qZA()()()(),e.TgZ(30,"li",4)(31,"div",5)(32,"header"),e._uU(33,"\u062a\u0627\u0631\u06cc\u062e \u0686\u06a9"),e.qZA(),e.TgZ(34,"span"),e._uU(35),e.ALo(36,"jalaliDate"),e.qZA()()(),e.TgZ(37,"li",4)(38,"div",5)(39,"header"),e._uU(40,"\u0628\u0627\u0646\u06a9"),e.qZA(),e.TgZ(41,"span"),e._uU(42),e.qZA()()(),e.TgZ(43,"li",4)(44,"div",5)(45,"header"),e._uU(46,"\u0648\u0636\u0639\u06cc\u062a \u0686\u06a9"),e.qZA(),e.TgZ(47,"span"),e._uU(48),e.qZA()()(),e.TgZ(49,"li",4)(50,"div",5)(51,"header"),e._uU(52,"\u062a\u0627\u0631\u06cc\u062e \u0622\u062e\u0631\u06cc\u0646 \u0648\u0636\u0639\u06cc\u062a \u062f\u0631\u062e\u0648\u0627\u0633\u062a"),e.qZA(),e.TgZ(53,"span"),e._uU(54),e.ALo(55,"jalaliDate"),e.qZA()()(),e.TgZ(56,"li",4)(57,"div",5)(58,"header"),e._uU(59,"\u0622\u062e\u0631\u06cc\u0646 \u0648\u0636\u0639\u06cc\u062a \u062f\u0631\u062e\u0648\u0627\u0633\u062a"),e.qZA(),e.TgZ(60,"span"),e._uU(61),e.qZA()()()()(),e.TgZ(62,"button",7),e.NdJ("click",function(){return A.close()}),e._uU(63,"\u0645\u062a\u0648\u062c\u0647 \u0634\u062f\u0645"),e.qZA()()),2&o&&(e.xp6(11),e.Oqu(null==A.data?null:A.data.saayadId),e.xp6(6),e.Oqu(null==A.data?null:A.data.chequeNumber),e.xp6(7),e.hij("",e.lcZ(25,9,e.lcZ(26,11,null==A.data?null:A.data.chequeAmount)),"\xa0\u062a\u0648\u0645\u0627\u0646 "),e.xp6(4),e.hij("",e.lcZ(29,13,null==A.data?null:A.data.chequeAmount),"\xa0\u0631\u06cc\u0627\u0644 "),e.xp6(7),e.Oqu(e.lcZ(36,15,null==A.data?null:A.data.chequeDate)),e.xp6(7),e.Oqu(null==A.data?null:A.data.bankName),e.xp6(6),e.Oqu(null==A.data?null:A.data.chequeStateTitle),e.xp6(6),e.Oqu(e.lcZ(55,17,null==A.data?null:A.data.lastRequestStateDate)),e.xp6(7),e.Oqu(null==A.data?null:A.data.lastRequestState))},pipes:[La.sz,La.pm,Ig.KK],encapsulation:2}),T})();var Dg=n(18372),Pg=n(81397);function n_(T,S){if(1&T&&(e.TgZ(0,"span",20)(1,"span",21),e._uU(2),e.qZA(),e._uU(3," \u0633\u06a9\u0647 "),e.qZA()),2&T){const o=e.oxw();e.xp6(2),e.hij(" ",o.score," ")}}const LC=function(){return{height:"16px",width:"80px"}};function i_(T,S){1&T&&e._UZ(0,"ngx-skeleton-loader",22),2&T&&e.Q6J("theme",e.DdM(3,LC))("count",1)("loadingText","")}function R0(T,S){1&T&&e._UZ(0,"img",23)}let s_=(()=>{class T{constructor(o,A,ee){this.customersClubItemDataPassingService=o,this.toastrService=A,this.clubService=ee,this.disableButton=!0,this.showLoaderAmountFrom=!1}ngOnInit(){this.clubService.getScoreAccount().subscribe(o=>{this.score=o.balance?o.balance:0})}getDescriptionText(){return this.lowCoins()?(this.disableButton=!0,Math.floor(this.score/this.customersClubItemDataPassingService.club.chipPointValue)>0?`\u0641\u0642\u0637 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0634\u0627\u0646\u0633 \u062e\u0648\u062f \u0631\u0627 \u062d\u062f\u0627\u06a9\u062b\u0631 \u062a\u0627 ${Math.floor(this.score/this.customersClubItemDataPassingService.club.chipPointValue)} \u0634\u0627\u0646\u0633 \u0627\u0641\u0632\u0627\u06cc\u0634 \u062f\u0647\u06cc\u062f.`:"\u062a\u0639\u062f\u0627\u062f \u0633\u06a9\u0647 \u0634\u0645\u0627 \u0628\u0647 \u062d\u062f \u0646\u0635\u0627\u0628 \u062e\u0631\u06cc\u062f \u06cc\u06a9 \u0634\u0627\u0646\u0633 \u0646\u0645\u06cc \u0631\u0633\u062f"):this.chances>0?(this.disableButton=!1,`\u0628\u0647 \u0627\u0632\u0627\u06cc ${this.chances} \u0634\u0627\u0646\u0633\u060c ${this.chances*this.customersClubItemDataPassingService.club.chipPointValue} \u0633\u06a9\u0647 \u0627\u0632 \u0634\u0645\u0627 \u06a9\u0645 \u0645\u06cc\u200c\u0634\u0648\u062f.`):(this.disableButton=!0,"")}lowCoins(){return this.coins>this.score}buyChips(){this.clubService.buyChips({campaignId:this.customersClubItemDataPassingService.club.id,chipsCount:this.chances}).subscribe(()=>{this.clubService.getClubCampaignDetails(this.customersClubItemDataPassingService.club.id).subscribe(o=>{this.customersClubItemDataPassingService.club=o}),(0,vr.Mr)(),this.toastrService.success("\u062a\u0639\u062f\u0627\u062f "+this.chances+" \u0634\u0627\u0646\u0633 \u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u0627\u0641\u0632\u0648\u062f\u0647 \u0634\u062f.")})}coinInput(o){this.coins=o,this.chances=Math.floor(this.coins/this.customersClubItemDataPassingService.club.chipPointValue),this.showLoaderAmountFrom=!0,setTimeout(()=>{this.showLoaderAmountFrom=!1,this.coins%this.customersClubItemDataPassingService.club.chipPointValue&&(this.coins=this.chances*this.customersClubItemDataPassingService.club.chipPointValue)},3e3)}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(Dg.m),e.Y36(Go.X),e.Y36(Pg.I))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-add-chance-modal"]],decls:28,vars:24,consts:[[1,"micro-facilities-branch-confirmation-wrapper",2,"padding","16px"],["src","assets/images/customers-club/token-green.svg","alt","\u0648\u06cc\u067e\u0627\u062f",2,"height","60px"],[1,"bolder"],[2,"color","#009966"],[1,"coins-badge","in-modal"],["src","assets/images/customers-club/coin.svg","alt",""],[2,"display","flex","justify-content","center","flex-grow","1"],["class","coins-text bold font-base",4,"ngIf"],[3,"theme","count","loadingText",4,"ngIf"],[1,"form-wrapper",2,"width","100%"],[1,"form-group","flex","ai-end",2,"width","100%"],[2,"flex-grow","1","flex-shrink","1","position","relative"],["src","assets/images/customers-club/token-green.svg","alt","",2,"height","28px","width","24px","position","absolute","right","10px","bottom","10px","margin","0","z-index","2"],[3,"inputId","label","hideTag","tagValue","maxLength","value","bolderText","OnInput"],["src","assets/images/customers-club/compare.svg","alt","",2,"height","20px","margin","14px","width","20px","flex-grow","0","flex-shrink","0"],["src","assets/images/customers-club/coin.svg","alt","",2,"height","28px","width","28px","position","absolute","right","10px","bottom","10px","margin","0","z-index","2"],[3,"inputId","label","hideTag","tagValue","maxLength","value","redText","bolderText","OnInput"],["class","loader","src","/assets/images/spinner/loading-circle-dark-gray.svg","alt","\u062f\u0631 \u062d\u0627\u0644 \u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc...",4,"ngIf"],[1,"font-small","gray-light","text-right","w-100",2,"padding-top","0"],[1,"btn","btn-success","w-100",3,"disabled","click"],[1,"coins-text","bold","font-base"],[1,"brand-green","bolder","font-large"],[3,"theme","count","loadingText"],["src","/assets/images/spinner/loading-circle-dark-gray.svg","alt","\u062f\u0631 \u062d\u0627\u0644 \u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc...",1,"loader"]],template:function(o,A){1&o&&(e.TgZ(0,"div",0),e._UZ(1,"img",1),e.TgZ(2,"h5",2),e._uU(3),e.qZA(),e.TgZ(4,"p"),e._uU(5," \u0628\u0631\u0627\u06cc \u062f\u0631\u06cc\u0627\u0641\u062a \u0647\u0631 \u06a9\u062f \u0634\u0627\u0646\u0633 \u0627\u06cc\u0646 \u062c\u0634\u0646\u0648\u0627\u0631\u0647\u060c "),e.TgZ(6,"span",3),e._uU(7),e.qZA(),e._uU(8," \u0645\u0648\u0631\u062f \u0646\u06cc\u0627\u0632 \u0627\u0633\u062a. "),e.qZA(),e.TgZ(9,"div",4),e._UZ(10,"img",5),e.TgZ(11,"div",6),e.YNc(12,n_,4,1,"span",7),e.YNc(13,i_,1,4,"ngx-skeleton-loader",8),e.qZA()(),e.TgZ(14,"div",9)(15,"div",10)(16,"div",11),e._UZ(17,"img",12),e.TgZ(18,"app-input-tagged-numbers",13),e.NdJ("OnInput",function(he){return A.chances=he,A.coins=A.chances*A.customersClubItemDataPassingService.club.chipPointValue}),e.qZA()(),e._UZ(19,"img",14),e.TgZ(20,"div",11),e._UZ(21,"img",15),e.TgZ(22,"app-input-tagged-numbers",16),e.NdJ("OnInput",function(he){return A.coinInput(he)}),e.qZA(),e.YNc(23,R0,1,0,"img",17),e.qZA()()(),e.TgZ(24,"p",18),e._uU(25),e.qZA(),e.TgZ(26,"button",19),e.NdJ("click",function(){return A.buyChips()}),e._uU(27,"\u062f\u0631\u06cc\u0627\u0641\u062a"),e.qZA()()),2&o&&(e.xp6(3),e.hij(" \u062f\u0631\u06cc\u0627\u0641\u062a \u06a9\u062f \u0634\u0627\u0646\u0633 \u0642\u0631\u0639\u0647 \u06a9\u0634\u06cc ",A.customersClubItemDataPassingService.club.title," "),e.xp6(4),e.hij(" ",A.customersClubItemDataPassingService.club.chipPointValue," \u0633\u06a9\u0647 "),e.xp6(5),e.Q6J("ngIf",A.score>=0),e.xp6(1),e.Q6J("ngIf",!(A.score>=0)),e.xp6(5),e.Q6J("inputId","amountCount")("label","\u062a\u0639\u062f\u0627\u062f \u06a9\u062f \u0634\u0627\u0646\u0633")("hideTag",!0)("tagValue","")("maxLength",7)("value",A.chances)("bolderText",!0),e.xp6(4),e.Q6J("inputId","amountFrom")("label"," \u0633\u06a9\u0647 \u0645\u0648\u0631\u062f \u0646\u06cc\u0627\u0632")("hideTag",!0)("tagValue","")("maxLength",7)("value",A.coins)("redText",A.lowCoins())("bolderText",!0),e.xp6(1),e.Q6J("ngIf",A.showLoaderAmountFrom&&A.coins>0),e.xp6(1),e.ekj("red-text",A.lowCoins()),e.xp6(1),e.Oqu(A.getDescriptionText()),e.xp6(1),e.Q6J("disabled",A.disableButton))},directives:[G.O5,Qp.xr,Rh.B],encapsulation:2}),T})();function kC(T,S){if(1&T&&(e.TgZ(0,"div")(1,"li",13)(2,"div",14)(3,"span",15)(4,"span"),e._uU(5),e.qZA()(),e.TgZ(6,"span",16),e._uU(7),e.qZA()()()()),2&T){const o=S.$implicit;e.xp6(5),e.Oqu(o.title),e.xp6(2),e.hij(" ",o.sumDepositScore," \u0627\u0645\u062a\u06cc\u0627\u0632 ")}}let Og=(()=>{class T{constructor(o){this.microFacilitiesDataPassingService=o}ngOnInit(){}close(){(0,vr.Mr)()}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(Y1.n))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-micro-facilities-score-modal"]],decls:15,vars:1,consts:[[1,"wepod-credit-modal-wrapper"],[1,"modal-content"],[2,"display","flex","flex-direction","column","justify-content","center","align-items","center"],["src","/assets/images/services/loan/micro-facilities/score-icon.svg","alt","",1,"modal-logo"],[2,"font-size","150%","padding-top","5px"],[1,"item"],[1,"item-body"],[1,"item-body-details"],[1,"list-wrapper"],[1,"list"],[4,"ngFor","ngForOf"],[1,"basic-modal-footer",2,"cursor","pointer",3,"click"],[1,"basic-modal-btns-confirm"],[1,"list-item"],[1,"list-content"],[1,"credit-management-list-title"],[1,"credit-management-list-data-badge","bold"]],template:function(o,A){1&o&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._UZ(3,"img",3),e.TgZ(4,"b",4),e._uU(5,"\u0627\u0645\u062a\u06cc\u0627\u0632 \u0628\u0627\u0642\u06cc\u0645\u0627\u0646\u062f\u0647"),e.qZA()(),e.TgZ(6,"section",5)(7,"div",6)(8,"div",7)(9,"section",8)(10,"ul",9),e.YNc(11,kC,8,2,"div",10),e.qZA()()()()(),e.TgZ(12,"section",11),e.NdJ("click",function(){return A.close()}),e.TgZ(13,"p",12),e._uU(14,"\u0645\u062a\u0648\u062c\u0647 \u0634\u062f\u0645"),e.qZA()()()()),2&o&&(e.xp6(11),e.Q6J("ngForOf",A.microFacilitiesDataPassingService.microLoanRequestResponse.remainingScoresByDepositType))},directives:[G.sg],encapsulation:2}),T})(),Rg=(()=>{class T{constructor(o,A){this.routingAppService=o,this.chatDataPassingService=A}ngOnInit(){this.data=vr.j.data.value}closeModal(){this.data.link&&this.routingAppService.navigate([this.data.link]),(0,vr.Mr)()}openForwardMessageListModal(){this.chatDataPassingService.forwardReceiptDataForDesktop=!0,(0,vr.Mr)(),setTimeout(()=>{vr.j.data.next(null),vr.j.bgWhite=!0,vr.j.desktopStyle=!0,vr.j.hideDesktopHeaderClose=!1,vr.j.disableBackdropClosing=!1,vr.j.fullScreen.next(!1),vr.j.modalTitle="\u0627\u0646\u062a\u062e\u0627\u0628 \u06af\u0641\u062a\u06af\u0648 \u0628\u0631\u0627\u06cc \u0627\u0631\u0633\u0627\u0644",vr.j.modalTitleBgGray=!0,vr.j.extraClasses="forward-message-list-modal",vr.j.data.next({data:this.data}),(0,vr.h7)("forwardMessageList")},500)}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(ua.s),e.Y36(Il.FM))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-social-button-share-modal"]],decls:9,vars:3,consts:[[1,"social-button-modal"],["target","_blank",1,"social-btn",3,"href","click"],["src","/assets/images/shared/social-media/whatsapp.svg","alt",""],["target","_blank",1,"telegram-btn",3,"href","click"],["src","/assets/images/shared/social-media/telegram.svg","alt",""],["src","/assets/images/shared/social-media/mail.svg","alt",""],["target","_blank",1,"telegram-btn",3,"click"],["src","/assets/images/card/active-cyber-card/wepod-logo.svg","alt","",1,"logo-wepod"]],template:function(o,A){1&o&&(e.TgZ(0,"article",0)(1,"a",1),e.NdJ("click",function(){return A.closeModal()}),e._UZ(2,"img",2),e.qZA(),e.TgZ(3,"a",3),e.NdJ("click",function(){return A.closeModal()}),e._UZ(4,"img",4),e.qZA(),e.TgZ(5,"a",3),e.NdJ("click",function(){return A.closeModal()}),e._UZ(6,"img",5),e.qZA(),e.TgZ(7,"a",6),e.NdJ("click",function(){return A.openForwardMessageListModal()}),e._UZ(8,"img",7),e.qZA()()),2&o&&(e.xp6(1),e.MGl("href","https://web.whatsapp.com/send?text=",A.data.textShare,"",e.LSH),e.xp6(2),e.MGl("href","https://t.me/share/url?url=",A.data.textShare,"",e.LSH),e.xp6(2),e.MGl("href","mailto:?body=",A.data.textShare,"",e.LSH))},encapsulation:2}),T})();var NC=n(73942);function FC(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"div",8),e.NdJ("click",function(){return e.CHM(o),e.oxw().goToChat()}),e._UZ(1,"img",9),e.TgZ(2,"span",3),e._uU(3,"\u0686\u062a \u0622\u0646\u0644\u0627\u06cc\u0646"),e.qZA()()}}let BC=(()=>{class T{constructor(o,A,ee,he){this.chatDataPassingService=o,this.toastrService=A,this.routingAppService=ee,this.serviceStoreAppService=he,this.isShowOnlineChatOption=!vr.j?.data?.value||vr.j.data.value.isShowOnlineChatOption}ngOnInit(){}goToChat(){(0,vr.Mr)(),this.chatDataPassingService.openSupportThread().then(o=>{o.result.thread?.id?(js.hg.next({loading:!0,cancelable:!1,text:"\u062f\u0631\u062d\u0627\u0644 \u0628\u0631\u0642\u0631\u0627\u0631\u06cc \u0627\u0631\u062a\u0628\u0627\u0637 ..."}),setTimeout(()=>{this.routingAppService.navigate(["chat/"+o.result.thread.id]),js.hg.next({loading:!1,cancelable:!1})},500)):(this.toastrService.error("\u062e\u0637\u0627\u06cc\u06cc \u0631\u062e \u062f\u0627\u062f. \u0644\u0637\u0641\u0627 \u062f\u0648\u0628\u0627\u0631\u0647 \u062a\u0644\u0627\u0634 \u06a9\u0646\u06cc\u062f."),js.hg.next({loading:!1,cancelable:!1}))}).catch(()=>{this.toastrService.error("\u062e\u0637\u0627\u06cc\u06cc \u0631\u062e \u062f\u0627\u062f. \u0644\u0637\u0641\u0627 \u062f\u0648\u0628\u0627\u0631\u0647 \u062a\u0644\u0627\u0634 \u06a9\u0646\u06cc\u062f."),js.hg.next({loading:!1,cancelable:!1})})}callSupport(){this.serviceStoreAppService.getConfig().then(o=>{(0,hi.Jj)()?.open("tel:"+o.supportConfig.supportNumber)})}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(Il.FM),e.Y36(Go.X),e.Y36(ua.s),e.Y36(NC.d))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-support-modal"]],decls:12,vars:1,consts:[[2,"display","flex","align-items","center"],["href","https://wepod.ir/faq.html","target","_blank",2,"display","flex","flex-direction","column","flex-grow","1","flex-shrink","1","justify-content","center","align-items","center","padding","24px 16px"],["src","assets/images/shared/qa.svg","alt","",2,"margin-bottom","16px"],[1,"bold"],[2,"border-right","1px solid #ddd","height","72px"],["style","display: flex; flex-direction: column; flex-grow: 1; flex-shrink: 1; justify-content: center; align-items: center; padding: 24px 16px; cursor: pointer;",3,"click",4,"ngIf"],[2,"display","flex","flex-direction","column","flex-grow","1","flex-shrink","1","justify-content","center","align-items","center","padding","24px 16px",3,"click"],["src","assets/images/shared/call-support.svg","alt","",2,"margin-bottom","16px"],[2,"display","flex","flex-direction","column","flex-grow","1","flex-shrink","1","justify-content","center","align-items","center","padding","24px 16px","cursor","pointer",3,"click"],["src","assets/images/shared/chat-support.svg","alt","",2,"margin-bottom","16px"]],template:function(o,A){1&o&&(e.TgZ(0,"div",0)(1,"a",1),e._UZ(2,"img",2),e.TgZ(3,"span",3),e._uU(4,"\u0633\u0648\u0627\u0644\u0627\u062a \u0645\u062a\u062f\u0627\u0648\u0644"),e.qZA()(),e._UZ(5,"div",4),e.YNc(6,FC,4,0,"div",5),e._UZ(7,"div",4),e.TgZ(8,"a",6),e.NdJ("click",function(){return A.callSupport()}),e._UZ(9,"img",7),e.TgZ(10,"span",3),e._uU(11,"\u062a\u0645\u0627\u0633 \u0628\u0627 \u067e\u0634\u062a\u06cc\u0628\u0627\u0646"),e.qZA()()()),2&o&&(e.xp6(6),e.Q6J("ngIf",A.isShowOnlineChatOption))},directives:[G.O5],encapsulation:2}),T})(),a_=(()=>{class T{constructor(o){this.routingAppService=o}ngOnInit(){}closeDialog(){(0,vr.Mr)()}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(ua.s))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-cheque-list-types-modal"]],decls:12,vars:0,consts:[[1,"cheque-list-types-modal-wrapper"],[1,"modal-type-description"],[1,"type-link-list"],[1,"card",3,"click"],["src","/assets/images/cheque/requests.svg","alt","",2,"width","auto"],["src","/assets/images/cheque/inquiry.svg","alt","",2,"width","auto"]],template:function(o,A){1&o&&(e.TgZ(0,"div",0)(1,"p",1),e._uU(2," \u0644\u06cc\u0633\u062a \u0686\u06a9 \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u062e\u0648\u062f \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f. "),e.qZA(),e.TgZ(3,"div",2)(4,"a",3),e.NdJ("click",function(){return A.closeDialog(),A.routingAppService.navigate(["services/cheque/inquired"])}),e._UZ(5,"img",4),e.TgZ(6,"h6"),e._uU(7,"\u062f\u0631\u062e\u0648\u0627\u0633\u062a \u0634\u062f\u0647"),e.qZA()(),e.TgZ(8,"a",3),e.NdJ("click",function(){return A.closeDialog(),A.routingAppService.navigate(["services/cheque/not-inquired"])}),e._UZ(9,"img",5),e.TgZ(10,"h6"),e._uU(11,"\u062f\u0631 \u0635\u0641 \u062f\u0631\u062e\u0648\u0627\u0633\u062a"),e.qZA()()()())},encapsulation:2}),T})();function o_(T,S){if(1&T&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&T){const o=e.oxw(2).$implicit;e.xp6(1),e.hij(" ",o.value," \u0631\u0648\u0632 \u0628\u0627\u0632\u067e\u0631\u062f\u0627\u062e\u062a ")}}function UC(T,S){if(1&T&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&T){const o=e.oxw(2).$implicit;e.xp6(1),e.hij(" ",o.value," \u0645\u0627\u0647 \u0642\u0633\u0637 ")}}function l_(T,S){if(1&T&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&T){const o=e.oxw(2).$implicit;e.xp6(1),e.hij(" \u0633\u067e\u0631\u062f\u0647\u200c\u06af\u0630\u0627\u0631\u06cc ",o.value," \u0631\u0648\u0632\u0647 ")}}function u_(T,S){if(1&T&&(e.TgZ(0,"div",5),e.YNc(1,o_,2,1,"span",11),e.YNc(2,UC,2,1,"span",11),e.YNc(3,l_,2,1,"span",11),e.qZA()),2&T){const o=e.oxw().$implicit;e.xp6(1),e.Q6J("ngIf","repaymentPeriodDays"===o.key),e.xp6(1),e.Q6J("ngIf","repaymentPeriodMonths"===o.key),e.xp6(1),e.Q6J("ngIf","depositTermDays"===o.key)}}function HC(T,S){if(1&T&&(e.TgZ(0,"div"),e.YNc(1,u_,4,3,"div",10),e.qZA()),2&T){const o=S.$implicit;e.xp6(1),e.Q6J("ngIf","installmentAmount"!==o.key&&"depositBalance"!==o.key&&"loanAmount"!==o.key&&"contractId"!==o.key&&"depositType"!==o.key&&"interestRate"!==o.key&&o.value)}}function VC(T,S){if(1&T&&(e.TgZ(0,"span",5),e._uU(1),e.ALo(2,"newNumberSeparator"),e.ALo(3,"rialToToman"),e.qZA()),2&T){const o=e.oxw().$implicit;e.xp6(1),e.hij(" \u0647\u0631 \u0642\u0633\u0637 ",e.lcZ(2,1,e.lcZ(3,3,o.value))," \u062a\u0648\u0645\u0627\u0646 ")}}function c_(T,S){if(1&T&&(e.TgZ(0,"span",5),e._uU(1),e.ALo(2,"newNumberSeparator"),e.qZA()),2&T){const o=e.oxw().$implicit;e.xp6(1),e.hij(" \u062d\u062f\u0627\u0642\u0644 \u0645\u0648\u062c\u0648\u062f\u06cc \u0631\u0648\u0632\u0627\u0646\u0647 ",e.lcZ(2,1,o.value/10)," \u062a\u0648\u0645\u0627\u0646 ")}}function YC(T,S){if(1&T&&(e.TgZ(0,"div"),e.YNc(1,VC,4,5,"span",10),e.YNc(2,c_,3,3,"span",10),e.qZA()),2&T){const o=S.$implicit,A=e.oxw();e.xp6(1),e.Q6J("ngIf","installmentAmount"===o.key&&o.value&&1===A.headerRadioButton),e.xp6(1),e.Q6J("ngIf","depositBalance"===o.key&&o.value)}}function d_(T,S){if(1&T&&(e.TgZ(0,"div",13)(1,"div",14),e._uU(2,"\u0645\u0628\u0644\u063a \u0642\u0633\u0637"),e.qZA(),e.TgZ(3,"div",15),e._uU(4),e.ALo(5,"newNumberSeparator"),e.TgZ(6,"span",16),e._uU(7,"\u062a\u0648\u0645\u0627\u0646"),e.qZA()()()),2&T){const o=e.oxw(2);e.xp6(4),e.hij(" ",e.lcZ(5,1,(null==o.data.calculateMicroLoanResponse?null:o.data.calculateMicroLoanResponse.installmentAmount)/10)," ")}}function f_(T,S){if(1&T&&(e.TgZ(0,"div",13)(1,"div",14),e._uU(2,"\u0645\u06cc\u0632\u0627\u0646 \u062a\u0633\u0647\u06cc\u0644\u0627\u062a \u062f\u0631\u06cc\u0627\u0641\u062a\u06cc"),e.qZA(),e.TgZ(3,"div",15),e._uU(4),e.ALo(5,"newNumberSeparator"),e.TgZ(6,"span",16),e._uU(7,"\u062a\u0648\u0645\u0627\u0646"),e.qZA()()()),2&T){const o=e.oxw(2);e.xp6(4),e.hij(" ",e.lcZ(5,1,(null==o.data.calculateMicroLoanResponse?null:o.data.calculateMicroLoanResponse.loanAmount)/10)," ")}}function h_(T,S){if(1&T&&(e.TgZ(0,"div",12)(1,"div",13)(2,"div",14),e._uU(3,"\u062d\u062f\u0627\u0642\u0644 \u0645\u0648\u062c\u0648\u062f\u06cc \u0631\u0648\u0632\u0627\u0646\u0647"),e.qZA(),e.TgZ(4,"div",15),e._uU(5),e.ALo(6,"newNumberSeparator"),e.TgZ(7,"span",16),e._uU(8,"\u062a\u0648\u0645\u0627\u0646"),e.qZA()()(),e._UZ(9,"div",17),e.YNc(10,d_,8,3,"div",18),e.YNc(11,f_,8,3,"div",18),e._UZ(12,"div",17),e.TgZ(13,"div",13)(14,"div",14),e._uU(15,"\u0627\u0645\u062a\u06cc\u0627\u0632 \u0645\u0648\u0631\u062f \u0646\u06cc\u0627\u0632"),e.qZA(),e.TgZ(16,"div",15),e._uU(17),e.qZA()()()),2&T){const o=e.oxw();e.xp6(5),e.hij(" ",e.lcZ(6,4,(null==o.data.calculateMicroLoanResponse?null:o.data.calculateMicroLoanResponse.depositBalance)/10)," "),e.xp6(5),e.Q6J("ngIf",0===o.headerRadioButton&&"1"===o.data.formValues.repayTypeRadioButton),e.xp6(1),e.Q6J("ngIf",!(0===o.headerRadioButton&&"1"===o.data.formValues.repayTypeRadioButton)),e.xp6(6),e.Oqu(o.Math.ceil(null==o.data.calculateMicroLoanResponse?null:o.data.calculateMicroLoanResponse.creditPoint))}}function p_(T,S){if(1&T&&(e.TgZ(0,"div",19),e._uU(1," \u0645\u0642\u062f\u0627\u0631 \u0648\u0631\u0648\u062f\u06cc \u0634\u0645\u0627 \u0642\u0627\u0628\u0644 \u0645\u062d\u0627\u0633\u0628\u0647 \u0646\u06cc\u0633\u062a. \u0644\u0637\u0641\u0627\u064b \u0628\u0627\u0632\u0647 \u0648\u0631\u0648\u062f\u06cc\u200c\u0647\u0627\u06cc \u062e\u0648\u062f \u0631\u0627 \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f. "),e.TgZ(2,"div",20),e._uU(3),e.qZA()()),2&T){const o=e.oxw();e.xp6(3),e.Oqu(o.serverErrorMessage)}}let jC=(()=>{class T{constructor(){this.Math=Math}ngOnInit(){this.data=vr.j.data.value}close(){(0,vr.Mr)()}}return T.\u0275fac=function(o){return new(o||T)},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-micro-facilities-calculation-modal"]],decls:23,vars:11,consts:[[1,"micro-facilities-calculations-modal"],[1,"micro-facilities-calculations-modal-container"],[1,"micro-facilities-calculations-container-content","calculations-res"],[1,"calculations-res-title"],[1,"calculations-res-tags"],[1,"calculations-res-tags-tag"],[4,"ngFor","ngForOf"],["class","calculations-res-result",4,"ngIf"],["class","calculations-res-result-error",4,"ngIf"],[1,"btn","width-fix","btn-success","calculations-res-retry-btn",3,"click"],["class","calculations-res-tags-tag",4,"ngIf"],[4,"ngIf"],[1,"calculations-res-result"],[1,"calculations-res-result-side"],[1,"calculations-res-result-side-title"],[1,"calculations-res-result-side-amount"],[1,"calculations-res-result-side-amount-toman"],[1,"calculations-res-result-separator"],["class","calculations-res-result-side",4,"ngIf"],[1,"calculations-res-result-error"],["id","server-error-message-container"]],template:function(o,A){1&o&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"span",3),e._uU(4,"\u0646\u062a\u06cc\u062c\u0647 \u0645\u062d\u0627\u0633\u0628\u0647 \u06a9\u0627\u067e\u200c\u06a9\u0627\u0631\u062a (\u06a9\u0627\u0631\u062a \u0627\u0639\u062a\u0628\u0627\u0631\u06cc \u067e\u0627\u0633\u0627\u0631\u06af\u0627\u062f)"),e.qZA(),e.TgZ(5,"div",4)(6,"div",5)(7,"span"),e._uU(8),e.qZA()(),e.TgZ(9,"div",5)(10,"span"),e._uU(11),e.qZA()(),e.TgZ(12,"div",5)(13,"span"),e._uU(14),e.qZA()(),e.YNc(15,HC,2,1,"div",6),e.ALo(16,"keyvalue"),e.YNc(17,YC,3,2,"div",6),e.ALo(18,"keyvalue"),e.qZA(),e.YNc(19,h_,18,6,"div",7),e.YNc(20,p_,4,1,"div",8),e.TgZ(21,"button",9),e.NdJ("click",function(){return A.close()}),e._uU(22,"\u0645\u062d\u0627\u0633\u0628\u0647 \u0645\u062c\u062f\u062f "),e.qZA()()()()),2&o&&(e.xp6(8),e.Oqu("1"===A.data.formValues.repayTypeRadioButton?"\u0627\u0642\u0633\u0627\u0637\u06cc":"\u06cc\u06a9\u062c\u0627"),e.xp6(3),e.Oqu("1"===A.data.formValues.depositTypeRadioButton?"\u062c\u0627\u0631\u06cc":"\u06a9\u0648\u062a\u0627\u0647\u200c\u0645\u062f\u062a \u0639\u0627\u062f\u06cc"),e.xp6(3),e.hij(" \u0633\u0648\u062f ",A.data.formValues.interestRateRadioButton,"% "),e.xp6(1),e.Q6J("ngForOf",e.lcZ(16,7,A.data.calculationsRequestBody)),e.xp6(2),e.Q6J("ngForOf",e.lcZ(18,9,A.data.calculateMicroLoanResponse)),e.xp6(2),e.Q6J("ngIf",(null==A.data.calculateMicroLoanResponse?null:A.data.calculateMicroLoanResponse.loanAmount)>0&&(null==A.data.calculateMicroLoanResponse?null:A.data.calculateMicroLoanResponse.creditPoint)>0&&(null==A.data.calculateMicroLoanResponse?null:A.data.calculateMicroLoanResponse.depositBalance)>0),e.xp6(1),e.Q6J("ngIf",!((null==A.data.calculateMicroLoanResponse?null:A.data.calculateMicroLoanResponse.loanAmount)>0&&(null==A.data.calculateMicroLoanResponse?null:A.data.calculateMicroLoanResponse.creditPoint)>0&&(null==A.data.calculateMicroLoanResponse?null:A.data.calculateMicroLoanResponse.depositBalance)>0)))},directives:[G.sg,G.O5],pipes:[G.Nd,La.an,La.pm],encapsulation:2}),T})();var GC=n(42666),b6=n(25742),Lg=n(83905);function S6(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"section",16),e.NdJ("click",function(){e.CHM(o);const ee=e.oxw().$implicit;return e.oxw().selectSliderItem(ee)}),e.TgZ(1,"div",17)(2,"div",18)(3,"div",19),e._UZ(4,"img",20),e.qZA()()()()}if(2&T){const o=e.oxw().$implicit,A=e.oxw();e.Q6J("ngClass",A.transactionReceiptDataPassingService.temId===o.id?"tem-select":""),e.xp6(4),e.Q6J("src",o.imageUrl,e.LSH)}}function T6(T,S){if(1&T&&(e.ynx(0),e.YNc(1,S6,5,2,"ng-template",15),e.BQk()),2&T){const o=S.$implicit;e.xp6(1),e.Q6J("id",o.id)}}let E6=(()=>{class T{constructor(o){this.transactionReceiptDataPassingService=o,this.title="\u0627\u0634\u062a\u0631\u0627\u06a9 \u06af\u0630\u0627\u0631\u06cc",this.templatesSlider=[],this.carouselOptions={autoWidth:!0,autoHeight:!0,rtl:!0,loop:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,dots:!1,margin:10,autoplay:!1,autoplayTimeout:4e3,autoplayHoverPause:!0,center:!0,responsive:{0:{items:2,margin:30}}}}ngOnInit(){this.templatesSlider=vr.j.data.value.imageSlider,this.content=vr.j.data.value.dataUseForSlider}selectSliderItem(o){this.transactionReceiptDataPassingService.temId=o.id,this.transactionReceiptDataPassingService.imageUrl=o.imageUrl}createBlob(o){return new Promise(A=>{setTimeout(()=>{GC.SE(document.getElementById("receiptCanvas")).then(ee=>{const Ye=new Image;Ye.src=URL.createObjectURL(ee),[].push({idBlob:o,fileBlob:ee,srcBlob:Ye.src}),A(ee)})},10)})}sharedTemId(){setTimeout(()=>{try{const o={type:"image/png",lastModified:Date.now()},A={files:[],title:"\u0648\u06cc\u067e\u0627\u062f",text:"",imgUrl:""};"text-tem"===this.transactionReceiptDataPassingService.temId?(A.text=this.content,setTimeout(()=>{vr.j.fullScreen.next(!1),vr.j.height=300,vr.j.desktopStyle=!0,vr.j.bgWhite=!0,vr.j.hideDesktopHeaderClose=!1,vr.j.modalTitle=this.title,vr.j.modalTitleBgGray=!0,vr.j.disableBackdropClosing=!1,vr.j.data.next({dataUse:A}),(0,vr.h7)("socialBtnAndroid",300)},600)):this.createBlob(this.transactionReceiptDataPassingService.temId).then(ee=>{this.blobFile=ee;const he=new File([this.blobFile],"receipt.png",o);A.files.push(he),A.imgUrl=this.transactionReceiptDataPassingService.imageUrl?this.transactionReceiptDataPassingService.imageUrl:"assets/images/template-share/white-tem.svg",setTimeout(()=>{vr.j.fullScreen.next(!1),vr.j.height=300,vr.j.desktopStyle=!0,vr.j.bgWhite=!0,vr.j.hideDesktopHeaderClose=!1,vr.j.modalTitle=this.title,vr.j.modalTitleBgGray=!0,vr.j.disableBackdropClosing=!1,vr.j.data.next({dataUse:A}),(0,vr.h7)("socialBtnAndroid",300)},600)})}catch(o){console.error(o)}(0,vr.Mr)()},1)}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(b6.d))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-shared-tem-receipt-modal"]],inputs:{title:"title"},decls:18,vars:3,consts:[[1,"templates-share-receipt-modal-wrapper"],[1,"templates-share-slider"],[1,"clearfix"],[1,"main-slider-wrapper"],[1,"slider-carousel"],[3,"options"],["owlCar",""],[4,"ngFor","ngForOf"],[1,"nav-arrow","left-arrow"],[1,"carousel-nav-buttons",3,"click"],["alt","\u0642\u0628\u0644\u06cc","src","assets/images/shared/arrow-left.svg"],[1,"nav-arrow","right-arrow"],["alt","\u0628\u0639\u062f\u06cc","src","assets/images/shared/arrow-right.svg"],[1,"share-info-btn","btn","btn-success","w-100",3,"click"],["src","/assets/images/shared/share-receipt-btn-white.svg","alt",""],["carouselSlide","","class","tile",3,"id"],[3,"ngClass","click"],[1,"item"],[1,"tile"],[1,"slider-card"],["alt","",1,"card-bg",3,"src"]],template:function(o,A){if(1&o){const ee=e.EpF();e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),e.ynx(5),e.TgZ(6,"owl-carousel-o",5,6),e.YNc(8,T6,2,1,"ng-container",7),e.qZA(),e.TgZ(9,"div",8)(10,"div",9),e.NdJ("click",function(){return e.CHM(ee),e.MAs(7).prev()}),e._UZ(11,"img",10),e.qZA()(),e.TgZ(12,"div",11)(13,"div",9),e.NdJ("click",function(){return e.CHM(ee),e.MAs(7).next()}),e._UZ(14,"img",12),e.qZA()(),e.BQk(),e.qZA()()()(),e.TgZ(15,"button",13),e.NdJ("click",function(){return A.sharedTemId()}),e._UZ(16,"img",14),e._uU(17," \u0627\u0634\u062a\u0631\u0627\u06a9 \u06af\u0630\u0627\u0631\u06cc "),e.qZA()()}2&o&&(e.xp6(2),e.Q6J("@inOutComponent",void 0),e.xp6(4),e.Q6J("options",A.carouselOptions),e.xp6(2),e.Q6J("ngForOf",A.templatesSlider))},directives:[Lg.Fy,G.sg,Lg.Mp,G.mk],encapsulation:2,data:{animation:[na.z.animations.inOutComponent,(0,qn.X$)("inOutSlideModalBackdrop",[(0,qn.eR)(":enter",[(0,qn.oB)({opacity:0}),(0,qn.jt)(".3s ease-out",(0,qn.oB)({opacity:1}))]),(0,qn.eR)(":leave",[(0,qn.oB)({opacity:1}),(0,qn.jt)(".3s ease-in",(0,qn.oB)({opacity:0}))])]),(0,qn.X$)("inSlideModalContainerMobile",[(0,qn.eR)(":enter",[(0,qn.oB)({top:"100%","border-top-left-radius":"32px","border-top-right-radius":"32px"}),(0,qn.jt)(".3s ease-in-out",(0,qn.oB)({top:"*","border-top-left-radius":vr.j.fullScreen.value?0:"32px","border-top-right-radius":vr.j.fullScreen.value?0:"32px"}))])]),(0,qn.X$)("outSlideModalContainerMobile",[(0,qn.SB)(":leave",(0,qn.oB)({top:"{{top}}"}),{params:{top:0}}),(0,qn.eR)(":leave",[(0,qn.oB)({"border-top-left-radius":vr.j.fullScreen.value?0:"32px","border-top-right-radius":vr.j.fullScreen.value?0:"32px"}),(0,qn.jt)(".3s ease-in-out",(0,qn.oB)({top:"100%","border-top-left-radius":"32px","border-top-right-radius":"32px"}))])]),(0,qn.X$)("inSlideModalContainerDesktop",[(0,qn.eR)(":enter",[(0,qn.oB)({opacity:0}),(0,qn.jt)(".3s ease-in-out",(0,qn.oB)({opacity:1}))])]),(0,qn.X$)("outSlideModalContainerDesktop",[(0,qn.eR)(":leave",[(0,qn.oB)({opacity:1}),(0,qn.jt)(".3s ease-in-out",(0,qn.oB)({opacity:0}))])])]}}),T})();var g_=n(91021);function WC(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"a",4),e.NdJ("click",function(){return e.CHM(o),e.oxw().closeDialog(["digital-card/change-first-password"])}),e._UZ(1,"img",5),e.TgZ(2,"h6"),e._uU(3,"\u062a\u063a\u06cc\u06cc\u0631 \u0631\u0645\u0632 \u0627\u0648\u0644"),e.qZA()()}}function ZC(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"a",4),e.NdJ("click",function(){return e.CHM(o),e.oxw().closeDialog(["digital-card/change-second-password"])}),e._UZ(1,"img",6),e.TgZ(2,"h6"),e._uU(3,"\u062a\u0646\u0638\u06cc\u0645 \u0631\u0645\u0632 \u062f\u0648\u0645 \u062b\u0627\u0628\u062a"),e.qZA()()}}function zC(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"a",4),e.NdJ("click",function(){return e.CHM(o),e.oxw().confirmResetPinCard()}),e._UZ(1,"img",7),e.TgZ(2,"h6"),e._uU(3,"\u0635\u062f\u0648\u0631 \u0645\u062c\u062f\u062f \u0631\u0645\u0632 \u0627\u0648\u0644"),e.qZA()()}}let M6=(()=>{class T{constructor(o,A){this.digitalCardService=o,this.routingAppService=A,this.developmentMode=ni.Sq,this.physicalCardStatus=g_.RR,this.digitalCardStatus=g_.t9}ngOnInit(){this.physicalCardRequestStatus=vr.j.data.value.physicalCardRequestStatus,this.digitalCardRequestStatus=vr.j.data.value.digitalCardRequestStatus}confirmResetPinCard(){(0,vr.Mr)(),setTimeout(()=>{vr.j.data.next(null),vr.j.bgWhite=!0,vr.j.desktopStyle=!0,vr.j.hideDesktopHeaderClose=!0,vr.j.disableBackdropClosing=!0,vr.j.fullScreen.next(!1),vr.j.basicModalData.next({img:"assets/images/digital-card/reset-pin-card-modal-icon.svg",title:"\u0635\u062f\u0648\u0631 \u0645\u062c\u062f\u062f \u0631\u0645\u0632 \u0627\u0648\u0644",desc:["\u0622\u06cc\u0627 \u0645\u06cc \u062e\u0648\u0627\u0647\u06cc\u062f \u0631\u0645\u0632 \u0627\u0648\u0644 \u0645\u062c\u062f\u062f\u0627 \u0635\u0627\u062f\u0631 \u0634\u0648\u062f\u061f"],buttons:{first:{title:"\u062a\u0627\u06cc\u06cc\u062f",action:()=>{(0,vr.Mr)(),this.resetPinCard()},green:!0},second:{title:"\u0627\u0646\u0635\u0631\u0627\u0641",action:()=>{(0,vr.Mr)()},gray:!0}}}),(0,vr.h7)("basicModal")},500)}resetPinCard(){(0,vr.Mr)(),this.digitalCardService.resetPhysicalCardPin().subscribe(()=>{setTimeout(()=>{vr.j.data.next(null),vr.j.bgWhite=!0,vr.j.desktopStyle=!0,vr.j.hideDesktopHeaderClose=!0,vr.j.disableBackdropClosing=!0,vr.j.fullScreen.next(!1),vr.j.basicModalData.next({img:"assets/images/digital-card/reset-pin-card-modal-icon.svg",title:"\u0635\u062f\u0648\u0631 \u0645\u062c\u062f\u062f \u0631\u0645\u0632 \u0627\u0648\u0644",desc:["\u0631\u0645\u0632 \u062c\u062f\u06cc\u062f \u06a9\u0627\u0631\u062a \u0628\u0647 \u0634\u0645\u0627\u0631\u0647 \u0645\u0648\u0628\u0627\u06cc\u0644 \u0634\u0645\u0627 \u0627\u0631\u0633\u0627\u0644 \u0634\u062f."],buttons:{first:{title:"\u0645\u062a\u0648\u062c\u0647 \u0634\u062f\u0645",action:()=>{(0,vr.Mr)()},green:!0}}}),(0,vr.h7)("basicModal")},500)})}closeDialog(o){(0,vr.Mr)(),this.routingAppService.navigate(o)}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(Lf.w),e.Y36(ua.s))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-settings-password-card-modal"]],decls:7,vars:3,consts:[[1,"settings-password-card-modal-wrapper"],[1,"modal-type-description"],[1,"type-link-list"],["class","card",3,"click",4,"ngIf"],[1,"card",3,"click"],["src","/assets/images/digital-card/list/settings-card/change-first-password.svg","alt",""],["src","/assets/images/digital-card/list/settings-card/change-second-password.svg","alt",""],["src","/assets/images/digital-card/list/settings-card/resend-card.svg","alt",""]],template:function(o,A){1&o&&(e.TgZ(0,"div",0)(1,"p",1),e._uU(2," \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u0631\u0645\u0632 \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u062e\u0648\u062f \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f. "),e.qZA(),e.TgZ(3,"div",2),e.YNc(4,WC,4,0,"a",3),e.YNc(5,ZC,4,0,"a",3),e.YNc(6,zC,4,0,"a",3),e.qZA()()),2&o&&(e.xp6(4),e.Q6J("ngIf",A.physicalCardRequestStatus===A.physicalCardStatus.Activated&&A.developmentMode("ChangeFirstPassCard")),e.xp6(1),e.Q6J("ngIf",(A.digitalCardRequestStatus===A.digitalCardStatus.Activated||A.physicalCardRequestStatus===A.physicalCardStatus.Activated)&&A.developmentMode("ChangeSecondPassCard")),e.xp6(1),e.Q6J("ngIf",A.physicalCardRequestStatus===A.physicalCardStatus.Activated&&A.developmentMode("SetFirstPassCard")))},directives:[G.O5],encapsulation:2}),T})();var Iu=n(54940),w6=n(14140),m_=n(8425),L0=n(47336);function v_(T,S){1&T&&(e.TgZ(0,"p",5),e._uU(1," \u0634\u06cc\u0648\u0647 \u0645\u0648\u0631\u062f\u0646\u0638\u0631 \u062e\u0648\u062f \u0631\u0627 \u0628\u0631\u0627\u06cc \u0627\u0646\u062a\u0642\u0627\u0644 \u0648\u062c\u0647 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f: "),e.qZA())}function __(T,S){if(1&T&&e._UZ(0,"img",13),2&T){const o=e.oxw().$implicit;e.Q6J("src","assets/images/smart-transfer/types-transfer/"+o.transferType+".svg",e.LSH)}}function x6(T,S){if(1&T&&e._UZ(0,"img",13),2&T){const o=e.oxw().$implicit;e.Q6J("src","assets/images/wallet/types-transfer/"+o.chargeWalletType+".svg",e.LSH)}}function kg(T,S){if(1&T&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"numberSeparator"),e.ALo(3,"rialToToman"),e.qZA()),2&T){const o=e.oxw(2).$implicit;e.xp6(1),e.hij(" \u062d\u062f\u0627\u06a9\u062b\u0631 \u06a9\u0627\u0631\u0645\u0632\u062f\xa0",e.lcZ(2,1,e.lcZ(3,3,o.wage)),"\xa0\u062a\u0648\u0645\u0627\u0646 ")}}function y_(T,S){1&T&&(e.TgZ(0,"span",17),e._uU(1,"\u0631\u0627\u06cc\u06af\u0627\u0646"),e.qZA())}function KC(T,S){if(1&T&&(e.TgZ(0,"li"),e._UZ(1,"img",14),e.YNc(2,kg,4,5,"span",15),e.YNc(3,y_,2,0,"ng-template",null,16,e.W1O),e.qZA()),2&T){const o=e.MAs(4),A=e.oxw().$implicit;e.xp6(2),e.Q6J("ngIf",0!==A.wage)("ngIfElse",o)}}const C_=function(T){return{isActive:T}};function I6(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"li",6),e.NdJ("click",function(){const he=e.CHM(o).$implicit;return e.oxw().selectItemFromList(he)}),e.TgZ(1,"div",7)(2,"section",8),e.YNc(3,__,1,1,"img",9),e.YNc(4,x6,1,1,"img",9),e.TgZ(5,"h6"),e._uU(6),e.qZA()(),e.TgZ(7,"section",10)(8,"ul")(9,"li"),e._UZ(10,"img",11),e.TgZ(11,"p"),e._uU(12),e.qZA()(),e.YNc(13,KC,5,2,"li",12),e.qZA()()()()}if(2&T){const o=S.$implicit,A=e.oxw();e.xp6(1),e.Q6J("ngClass",e.VKq(6,C_,!o.isActive)),e.xp6(2),e.Q6J("ngIf","smartTransfer"===A.id),e.xp6(1),e.Q6J("ngIf","walletCashIn"===A.id),e.xp6(2),e.Oqu("smartTransfer"===A.id?o.transferTypeTitle:"walletCashIn"===A.id?null==o?null:o.chargeWalletTypeTitle:null),e.xp6(6),e.Oqu(o.description),e.xp6(1),e.Q6J("ngIf",o.isActive)}}let qC=(()=>{class T{constructor(o,A,ee,he,Ye,bt,er,mr,Kr){this.bankService=o,this.walletService=A,this.smartTransferService=ee,this.smartTransferDataPassingService=he,this.shaparakService=Ye,this.walletDataPassingService=bt,this.routingAppService=er,this.tagManager=mr,this.shebaService=Kr}ngOnInit(){this.data=vr.j.data.value.data,this.id=vr.j.data.value.id,this.description=vr.j.data.value.description,this.smartTransferDataPassingService.needPaymentId=!0}selectItemFromList(o){(0,ni.Sq)("DataLayerGoogleAnalytics")&&this.tagManager.pushEvent("money_transfer_request",{}),o.isActive&&("smartTransfer"===this.id?(this.smartTransferDataPassingService.wage=o.wage,this.smartTransferDataPassingService.transferType=o.transferType,this.smartTransferDataPassingService.transferTypeTitle="\u0627\u0646\u062a\u0642\u0627\u0644 "+o.transferTypeTitle,this.smartTransferDataPassingService.isTransferData=!1,this.smartTransferDataPassingService.useDigitalCard=!1,this.smartTransferDataPassingService.payaPurposeReadyToUse=o.payaPurposeReadyToUse,this.smartTransferDataPassingService.polTransactionId=o?.polTransactionId,this.smartTransferDataPassingService.ibanPaymentIdInquiry=o?.ibanPaymentIdInquiry,this.smartTransferDataPassingService.id!==Ga.gG.CardNumber||o.transferType!==Ga.Z$.Paya&&o.transferType!==Ga.Z$.Pol&&o.transferType!==Ga.Z$.Satna?this.smartTransferDataPassingService.id===Ga.gG.DepositNumber&&o.transferType===Ga.Z$.Paya?(this.smartTransferDataPassingService.isTransferData=!0,this.routingAppService.navigate(["smart-transfer/confirmation"]),(0,vr.Mr)()):this.smartTransferDataPassingService.id===Ga.gG.CardNumber&&o.transferType===Ga.Z$.Card?(this.smartTransferDataPassingService.useDigitalCard=!0,this.getUserCards(),(0,vr.Mr)()):o.transferType===Ga.Z$.Pol&&o.ibanPaymentIdInquiry?(this.smartTransferDataPassingService.isTransferData=!1,this.getOtherBanksIbanInfo()):(this.smartTransferDataPassingService.isTransferData=!1,this.routingAppService.navigate(["smart-transfer/confirmation"]),(0,vr.Mr)()):this.smartTransferService.cardToSheba(this.smartTransferDataPassingService.dataSelected).subscribe(A=>{this.smartTransferDataPassingService.iban=A.iban,this.smartTransferDataPassingService.originDesName=this.smartTransferDataPassingService.name,this.smartTransferDataPassingService.name=A.depositOwners,this.smartTransferDataPassingService.isTransferData=!0,o.transferType===Ga.Z$.Pol&&o.ibanPaymentIdInquiry?this.getOtherBanksIbanInfo():((0,vr.Mr)(),this.routingAppService.navigate(["smart-transfer/confirmation"]))},()=>{(0,vr.Mr)()})):"walletCashIn"===this.id&&(o.chargeWalletType===po.p4.PaymentGatWay?(this.smartTransferDataPassingService.transferTypeTitle="\u0627\u0641\u0632\u0627\u06cc\u0634 \u0645\u0648\u062c\u0648\u062f\u06cc",this.walletService.chargeWallet(10*parseInt(this.walletDataPassingService.amount,10)).subscribe(A=>{(0,hi.Jj)()&&((0,hi.Jj)().location.href=A.paymentUrl)})):o.chargeWalletType===po.p4.CardToCard&&(this.smartTransferDataPassingService.transferTypeTitle="\u06a9\u0627\u0631\u062a \u0628\u0647 \u06a9\u0627\u0631\u062a",localStorage.setItem("backWhenClickOriginCard","wallet/cash-in"),this.walletDataPassingService.useWalletCashIn=!0,this.walletDataPassingService.wage=o.wage,this.walletDataPassingService.digitalCardNumber=o.digitalCardNumber,this.routingAppService.navigate(["services/card/listOriginCard"]),(0,vr.Mr)())))}getUserCards(){const o=new Iu.nj;o.havePublicKey=!0,o.creationDateOrderDirection=0,o.behavior=1,o.offset=0,o.size=na.z.pagingSize,this.shaparakService.getUserCards(o).subscribe(A=>{A.length>0?(this.smartTransferDataPassingService.sourceCardId=A[0].id,this.smartTransferDataPassingService.sourceCardNumber=A[0].maskedPan,this.smartTransferDataPassingService.sourceCardLogo=null,this.smartTransferDataPassingService.internal=!0,this.smartTransferDataPassingService.sourceCardName="\u06a9\u0627\u0631\u062a \u0648\u06cc\u067e\u0627\u062f\u06cc \u0645\u0646",this.routingAppService.navigate(["smart-transfer/confirmation"])):(this.smartTransferDataPassingService.useSmartTransfer=!0,this.routingAppService.navigate(["services/card/listOriginCard"]))})}getOtherBanksIbanInfo(){this.shebaService.getOtherBanksIbanInfo(this.smartTransferDataPassingService.iban).subscribe(o=>{this.smartTransferDataPassingService.needPaymentId=o.needPaymentId,this.routingAppService.navigate(["smart-transfer/confirmation"]),(0,vr.Mr)()},()=>{(0,vr.Mr)()})}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(w6.y),e.Y36(Ah.X),e.Y36(m_.j),e.Y36(Ic.A),e.Y36(L0.X),e.Y36(ig.v),e.Y36(ua.s),e.Y36(wc.c),e.Y36(Dh.a))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-transfer-type-list-modal"]],decls:5,vars:2,consts:[[1,"transfer-type-list-modal-wrapper"],["class","modal-type-description",4,"ngIf"],[1,"list-wrapper"],[1,"list"],["class","list-item",3,"click",4,"ngFor","ngForOf"],[1,"modal-type-description"],[1,"list-item",3,"click"],[1,"list-content",3,"ngClass"],[1,"type-list-title"],["alt","",3,"src",4,"ngIf"],[1,"type-list-description"],["src","assets/images/smart-transfer/description.svg","alt",""],[4,"ngIf"],["alt","",3,"src"],["src","assets/images/smart-transfer/wage.svg","alt",""],[4,"ngIf","ngIfElse"],["withoutWage",""],[1,"confirm-amount-type"]],template:function(o,A){1&o&&(e.TgZ(0,"article",0),e.YNc(1,v_,2,0,"p",1),e.TgZ(2,"section",2)(3,"ul",3),e.YNc(4,I6,14,8,"li",4),e.qZA()()()),2&o&&(e.xp6(1),e.Q6J("ngIf",A.description),e.xp6(3),e.Q6J("ngForOf",A.data))},directives:[G.O5,G.sg,G.mk],pipes:[La.sz,La.pm],encapsulation:2}),T})();var JC=n(591),Ng=n(60504),b_=n(15303),A6=n(97368),D6=n(67593);function P6(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"div",11)(1,"div",4)(2,"label"),e._uU(3,"cvv2"),e.qZA()(),e.TgZ(4,"app-input-tagged-password",12),e.NdJ("OnInput",function(ee){return e.CHM(o),e.oxw().cvv2=ee}),e.qZA()()}if(2&T){const o=e.oxw();e.xp6(4),e.Q6J("inputId","cvv2")("maxLength",4)("value",o.cvv2)("classInvalid",!o.cvv2)}}function $C(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"div",13)(1,"div",4)(2,"label"),e._uU(3,"\u062a\u0627\u0631\u06cc\u062e \u0627\u0646\u0642\u0636\u0627"),e.qZA()(),e.TgZ(4,"section",14)(5,"app-input-tagged-text",15),e.NdJ("OnInput",function(ee){return e.CHM(o),e.oxw().expireMonth=ee}),e.qZA(),e.TgZ(6,"span"),e._uU(7,"/"),e.qZA(),e.TgZ(8,"app-input-tagged-text",15),e.NdJ("OnInput",function(ee){return e.CHM(o),e.oxw().expireYear=ee}),e.qZA()()()}if(2&T){const o=e.oxw();e.xp6(5),e.Q6J("inputId","expireMonth")("showTagWhenEmpty",!0)("useNextInputFocus",!0)("inputType","tel")("maxLength",2)("value",o.expireMonth)("placeHolder","\u0645\u0627\u0647")("placeHolderCenterDir",!0),e.xp6(3),e.Q6J("inputId","expireYear")("showTagWhenEmpty",!0)("useNextInputFocus",!0)("inputType","tel")("maxLength",2)("value",o.expireYear)("placeHolder","\u0633\u0627\u0644")("placeHolderCenterDir",!0)}}function QC(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"section",16)(1,"input",17),e.NdJ("change",function(){e.CHM(o);const ee=e.oxw();return ee.saveExpireDate=!ee.saveExpireDate}),e.qZA(),e._UZ(2,"input",18),e.TgZ(3,"label",19),e._uU(4,"\u0630\u062e\u06cc\u0631\u0647 \u062a\u0627\u0631\u06cc\u062e \u0627\u0646\u0642\u0636\u0627"),e.qZA()()}if(2&T){const o=e.oxw();e.xp6(1),e.Q6J("checked",o.saveExpireDate)}}function XC(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"div",20)(1,"div",11)(2,"app-input-tagged-text",21),e.NdJ("OnInput",function(ee){return e.CHM(o),e.oxw().sourceDesc=ee}),e.qZA()(),e.TgZ(3,"div",11)(4,"app-input-tagged-text",22),e.NdJ("OnInput",function(ee){return e.CHM(o),e.oxw().destinationDesc=ee}),e.qZA()()()}if(2&T){const o=e.oxw();e.xp6(2),e.Q6J("inputId","sourceDescription")("showTagWhenEmpty",!0)("maxLength",30)("value",o.sourceDesc)("placeHolder","\u0627\u062e\u062a\u06cc\u0627\u0631\u06cc")("placeHolderCenterDir",!0),e.xp6(2),e.Q6J("inputId","destinationDescription")("showTagWhenEmpty",!0)("maxLength",30)("value",o.destinationDesc)("placeHolder","\u0627\u062e\u062a\u06cc\u0627\u0631\u06cc")("placeHolderCenterDir",!0)}}let O6=(()=>{class T{constructor(o,A,ee,he,Ye,bt,er,mr,Kr,nn,vn,Hn){this.shaparakService=o,this.toastrService=A,this.debitCardService=ee,this.tagManager=he,this.rsaService=Ye,this.wepodMainService=bt,this.encryptDecryptService=er,this.walletDataPassingService=mr,this.smartTransferDataPassingService=Kr,this.getProfileDataService=nn,this.routingAppService=vn,this.escapeHtmlPipe=Hn,this.resetFormSubject=new JC.X(null),this.data=new Iu.sx,this.isRefresh=!1,this.saveExpireDate=!1,this.requestOtpBodyModel=new Iu.a$}ngOnInit(){this.data=vr.j.data.value.data,this.id=vr.j.data.value.id,"smartTransfer"===this.id?(this.smartTransferDataPassingService.expireMonth&&this.smartTransferDataPassingService.expireYear&&(this.expireMonth=this.smartTransferDataPassingService.expireMonth,this.expireYear=this.smartTransferDataPassingService.expireYear,this.saveExpireDate=!0),this.useDigitalCard=this.smartTransferDataPassingService.useDigitalCard,this.internal=this.smartTransferDataPassingService.internal,this.requestOtpBodyModel.sourceCardId=this.smartTransferDataPassingService.sourceCardId,this.requestOtpBodyModel.destinationPan=this.smartTransferDataPassingService.dataSelected,this.requestOtpBodyModel.amount=10*this.smartTransferDataPassingService.amount):"walletCashIn"===this.id&&(this.expireMonth=this.walletDataPassingService.expireMonth,this.expireYear=this.walletDataPassingService.expireYear,this.saveExpireDate=!0,this.useDigitalCard=!1,this.internal=this.walletDataPassingService.internal,this.requestOtpBodyModel.sourceCardId=this.walletDataPassingService.cardId,this.requestOtpBodyModel.destinationPan=this.walletDataPassingService.digitalCardNumber,this.requestOtpBodyModel.amount=10*parseInt(this.walletDataPassingService.amount,10))}requestOtp(){this.shaparakService.requestOtp(this.requestOtpBodyModel).subscribe(o=>{o.otp&&(this.pin2="\u2022\u2022\u2022\u2022\u2022\u2022",this.encryptedOtp=o.otp,this.resetFormSubject.next(this.pin2)),this.timeLeft=o.remainingTimeToExpireInSeconds,this.startTimer()})}startTimer(){this.canResendCode=!0,(0,hi.Jj)()&&(this.interval=setInterval(()=>{this.timeLeft>0?this.timeLeft--:(clearInterval(this.interval),this.canResendCode=!1,this.isRefresh=!0,this.pin2=null)},1e3))}shaparakTransfer(){if(this.cvv2&&""!==this.cvv2||this.useDigitalCard)if(this.expireMonth&&null!==this.expireMonth&&""!==this.expireMonth||this.expireYear&&null!==this.expireYear&&""!==this.expireYear||!this.internal||this.useDigitalCard)if(this.expireMonth&&null!==this.expireMonth&&""!==this.expireMonth||!this.internal||this.useDigitalCard)if((this.expireMonth>"12"||this.expireMonth<="00"||this.expireMonth<="0")&&this.internal&&!this.useDigitalCard)this.toastrService.error("\u0644\u0637\u0641\u0627 \u0645\u0642\u062F\u0627\u0631 \u0645\u0627\u0647 \u0627\u0646\u0642\u0636\u0627 \u0631\u0627 \u062F\u0631\u0633\u062A \u0648\u0627\u0631\u062F \u0646\u0645\u0627\u06CC\u06CC\u062F.");else if(this.expireYear&&null!==this.expireYear&&""!==this.expireYear||!this.internal||this.useDigitalCard)if(this.pin2&&null!==this.pin2&&""!==this.pin2){const o=new Iu.fy,A=this.wepodMainService.getCookie("currentUser.token.keyId");let ee;if(o.transferTransactionId=this.data.transferTransactionId,o.sourceCardId=this.requestOtpBodyModel.sourceCardId,o.destinationPan=this.requestOtpBodyModel.destinationPan,o.amount=this.requestOtpBodyModel.amount,this.internal)o.pin2=this.encryptedOtp&&"\u2022\u2022\u2022\u2022\u2022\u2022"===this.pin2?this.encryptedOtp:this.encryptDecryptService.encryptData(this.pin2,A.substr(0,16)),this.useDigitalCard||(o.cvv2=this.encryptDecryptService.encryptData(this.cvv2,A.substr(0,16)),o.expireYear=this.expireYear,o.expireMonth=this.expireMonth,this.saveExpireDate||this.expireYear&&this.expireMonth?o.saveInternalCardExpireDate=this.saveExpireDate:!this.expireYear&&!this.expireMonth&&(o.saveInternalCardExpireDate=null)),o.transferFromDesc=this.escapeHtmlPipe.transform(this.sourceDesc),o.transferToDesc=this.escapeHtmlPipe.transform(this.destinationDesc);else{const he=localStorage.getItem("keyData");ee=this.rsaService.encryptWithPublicKey("-----BEGIN PUBLIC KEY-----"+he+"-----END PUBLIC KEY-----",this.cvv2+"|"+this.pin2+"|"+this.requestOtpBodyModel.amount+"|"+this.requestOtpBodyModel.destinationPan),o.pin2="",o.cvv2=ee,o.expireMonth="",o.expireYear="",o.transferFromDesc="",o.transferToDesc=""}this.serviceTransfer=this.shaparakService.transfer(o).subscribe(he=>{if((0,ni.Sq)("DataLayerGoogleAnalytics")&&this.tagManager.pushEvent("money_transfer_submit",{type:"transfer_card_to_card"}),he?.state===Iu.Yk.Success){const Ye=new Ng.dv;Ye.size=na.z.pagingSize,Ye.offset=0,"smartTransfer"===this.id?Ye.cardNumber=this.smartTransferDataPassingService.dataSelected:"walletCashIn"===this.id&&(Ye.cardNumber=this.walletDataPassingService.digitalCardNumber),this.debitCardService.getDebitCards(Ye).subscribe(bt=>{"smartTransfer"===this.id?this.smartTransferDataPassingService.transactionInquiry=!1:"walletCashIn"===this.id&&(this.walletDataPassingService.transactionInquiry=!1),0===bt.length&&(this.smartTransferDataPassingService.isNewCard=!0)},()=>{},()=>{"smartTransfer"===this.id?this.smartTransferDataPassingService.receiptDataCard={state:$a.ap.Success,rows:[{type:"text",label:"\u0634\u0645\u0627\u0631\u0647 \u067e\u06cc\u06af\u06cc\u0631\u06cc",value:he.seqNumber},{type:"text",label:"\u06a9\u0627\u0631\u062a \u0645\u0628\u062f\u0627",value:he.sourceCardNumber,logo:this.smartTransferDataPassingService.useDigitalCard?"/assets/images/shared/logo-bank/wepod.svg":this.smartTransferDataPassingService.sourceCardLogo},{type:"text",label:"\u06a9\u0627\u0631\u062a \u0645\u0642\u0635\u062f",value:he.destinationCardNumber,logo:this.smartTransferDataPassingService.bankLogoUrl},{type:"text",label:"\u0628\u0647 \u0646\u0627\u0645",value:he.destinationCardName},{type:"amountWithRial",label:"\u0645\u0628\u0644\u063a \u062a\u0631\u0627\u06a9\u0646\u0634",value:he.amount},{type:"jalaliDateTime",label:"\u062a\u0627\u0631\u06cc\u062e \u0648 \u0633\u0627\u0639\u062a",value:he.transactionDate.replace("Z","")},{type:"text",label:"\u0634\u0631\u062d \u0645\u0628\u062f\u0627",value:he.transferFromDescription},{type:"text",label:"\u0634\u0631\u062d \u0645\u0642\u0635\u062f",value:he.transferToDescription}]}:"walletCashIn"===this.id&&(this.walletDataPassingService.receiptDataCard={state:$a.ap.Success,rows:[{type:"text",label:"\u0634\u0645\u0627\u0631\u0647 \u067e\u06cc\u06af\u06cc\u0631\u06cc",value:he.seqNumber},{type:"text",label:"\u06a9\u0627\u0631\u062a \u0645\u0628\u062f\u0627",value:he.sourceCardNumber,logo:this.walletDataPassingService.cardLogo},{type:"text",label:"\u06a9\u0627\u0631\u062a \u0645\u0642\u0635\u062f",value:he.destinationCardNumber,logo:"/assets/images/bank-icon/pasargad.svg"},{type:"text",label:"\u0628\u0647 \u0646\u0627\u0645",value:he.destinationCardName},{type:"amountWithRial",label:"\u0645\u0628\u0644\u063a \u062a\u0631\u0627\u06a9\u0646\u0634",value:he.amount},{type:"jalaliDateTime",label:"\u062a\u0627\u0631\u06cc\u062e \u0648 \u0633\u0627\u0639\u062a",value:he.transactionDate.replace("Z","")},{type:"text",label:"\u0634\u0631\u062d \u0645\u0628\u062f\u0627",value:he.transferFromDescription},{type:"text",label:"\u0634\u0631\u062d \u0645\u0642\u0635\u062f",value:he.transferToDescription}]})})}else he?.state===(Iu.Yk.Failed||Iu.Yk.Reverse)?"smartTransfer"===this.id?(this.smartTransferDataPassingService.payFailedText=he?.message,this.smartTransferDataPassingService.receiptDataCard={state:$a.ap.Failed,rows:[{type:"text",label:"\u0634\u0645\u0627\u0631\u0647 \u0645\u0631\u062c\u0639",value:he.refNumber},{type:"text",label:"\u0634\u0645\u0627\u0631\u0647 \u067e\u06cc\u06af\u06cc\u0631\u06cc",value:he.seqNumber},{type:"text",label:"\u06a9\u0627\u0631\u062a \u0645\u0628\u062f\u0627",value:he.sourceCardNumber,logo:this.smartTransferDataPassingService.useDigitalCard?"/assets/images/shared/logo-bank/wepod.svg":this.smartTransferDataPassingService.sourceCardLogo},{type:"text",label:"\u06a9\u0627\u0631\u062a \u0645\u0642\u0635\u062f",value:he.destinationCardNumber,logo:this.smartTransferDataPassingService.bankLogoUrl},{type:"text",label:"\u0628\u0647 \u0646\u0627\u0645",value:he.destinationCardName},{type:"amountWithRial",label:"\u0645\u0628\u0644\u063a \u062a\u0631\u0627\u06a9\u0646\u0634",value:he.amount},{type:"jalaliDateTime",label:"\u062a\u0627\u0631\u06cc\u062e \u0648 \u0633\u0627\u0639\u062a",value:id().toDate().toISOString().replace("Z","")},{type:"text",label:"\u0634\u0631\u062d \u0645\u0628\u062f\u0627",value:he.transferFromDescription},{type:"text",label:"\u0634\u0631\u062d \u0645\u0642\u0635\u062f",value:he.transferToDescription}]}):"walletCashIn"===this.id&&(this.walletDataPassingService.payFailedText=he?.message,this.walletDataPassingService.receiptDataCard={state:$a.ap.Failed,rows:[{type:"text",label:"\u0634\u0645\u0627\u0631\u0647 \u0645\u0631\u062c\u0639",value:he.refNumber},{type:"text",label:"\u0634\u0645\u0627\u0631\u0647 \u067e\u06cc\u06af\u06cc\u0631\u06cc",value:he.seqNumber},{type:"text",label:"\u06a9\u0627\u0631\u062a \u0645\u0628\u062f\u0627",value:he.sourceCardNumber,logo:this.walletDataPassingService.cardLogo},{type:"text",label:"\u06a9\u0627\u0631\u062a \u0645\u0642\u0635\u062f",value:he.destinationCardNumber,logo:"/assets/images/bank-icon/pasargad.svg"},{type:"text",label:"\u0628\u0647 \u0646\u0627\u0645",value:he.destinationCardName},{type:"amountWithRial",label:"\u0645\u0628\u0644\u063a \u062a\u0631\u0627\u06a9\u0646\u0634",value:he.amount},{type:"jalaliDateTime",label:"\u062a\u0627\u0631\u06cc\u062e \u0648 \u0633\u0627\u0639\u062a",value:id().toDate().toISOString().replace("Z","")},{type:"text",label:"\u0634\u0631\u062d \u0645\u0628\u062f\u0627",value:he.transferFromDescription},{type:"text",label:"\u0634\u0631\u062d \u0645\u0642\u0635\u062f",value:he.transferToDescription}]}):he?.state===Iu.Yk.InProgress&&(this.smartTransferDataPassingService.transferTransactionId=this.data.transferTransactionId,"smartTransfer"===this.id?(this.smartTransferDataPassingService.payInProgressText=he?.message,this.smartTransferDataPassingService.receiptDataCard={state:$a.ap.InProgress,rows:[{type:"text",label:"\u0634\u0645\u0627\u0631\u0647 \u0645\u0631\u062c\u0639",value:he.refNumber},{type:"text",label:"\u0634\u0645\u0627\u0631\u0647 \u067e\u06cc\u06af\u06cc\u0631\u06cc",value:he.seqNumber},{type:"text",label:"\u06a9\u0627\u0631\u062a \u0645\u0628\u062f\u0627",value:he.sourceCardNumber,logo:this.smartTransferDataPassingService.useDigitalCard?"/assets/images/shared/logo-bank/wepod.svg":this.smartTransferDataPassingService.sourceCardLogo},{type:"text",label:"\u06a9\u0627\u0631\u062a \u0645\u0642\u0635\u062f",value:he.destinationCardNumber,logo:this.smartTransferDataPassingService.bankLogoUrl},{type:"text",label:"\u0628\u0647 \u0646\u0627\u0645",value:he.destinationCardName},{type:"amountWithRial",label:"\u0645\u0628\u0644\u063a \u062a\u0631\u0627\u06a9\u0646\u0634",value:he.amount},{type:"jalaliDateTime",label:"\u062a\u0627\u0631\u06cc\u062e \u0648 \u0633\u0627\u0639\u062a",value:id().toDate().toISOString().replace("Z","")},{type:"text",label:"\u0634\u0631\u062d \u0645\u0628\u062f\u0627",value:he.transferFromDescription},{type:"text",label:"\u0634\u0631\u062d \u0645\u0642\u0635\u062f",value:he.transferToDescription}]},this.smartTransferDataPassingService.transactionInquiry=!0):"walletCashIn"===this.id&&(this.walletDataPassingService.payInProgressText=he?.message,this.walletDataPassingService.receiptDataCard={state:$a.ap.InProgress,rows:[{type:"text",label:"\u0634\u0645\u0627\u0631\u0647 \u0645\u0631\u062c\u0639",value:he.refNumber},{type:"text",label:"\u0634\u0645\u0627\u0631\u0647 \u067e\u06cc\u06af\u06cc\u0631\u06cc",value:he.seqNumber},{type:"text",label:"\u06a9\u0627\u0631\u062a \u0645\u0628\u062f\u0627",value:he.sourceCardNumber,logo:this.walletDataPassingService.cardLogo},{type:"text",label:"\u06a9\u0627\u0631\u062a \u0645\u0642\u0635\u062f",value:he.destinationCardNumber,logo:"/assets/images/bank-icon/pasargad.svg"},{type:"text",label:"\u0628\u0647 \u0646\u0627\u0645",value:he.destinationCardName},{type:"amountWithRial",label:"\u0645\u0628\u0644\u063a \u062a\u0631\u0627\u06a9\u0646\u0634",value:he.amount},{type:"jalaliDateTime",label:"\u062a\u0627\u0631\u06cc\u062e \u0648 \u0633\u0627\u0639\u062a",value:id().toDate().toISOString().replace("Z","")},{type:"text",label:"\u0634\u0631\u062d \u0645\u0628\u062f\u0627",value:he.transferFromDescription},{type:"text",label:"\u0634\u0631\u062d \u0645\u0642\u0635\u062f",value:he.transferToDescription}]},this.walletDataPassingService.transactionInquiry=!0));"smartTransfer"===this.id?setTimeout(()=>{this.routingAppService.navigate(["smart-transfer/receipt"])},1e3):"walletCashIn"===this.id&&(this.walletDataPassingService.showReceipt=!0,this.walletDataPassingService.showConfirm=!1),(0,vr.Mr)()},he=>{(408===he.status||0===he.status||500===he.status)&&("smartTransfer"===this.id?(this.smartTransferDataPassingService.receiptDataCard={state:$a.ap.InProgress,rows:[{type:"text",label:"\u06a9\u0627\u0631\u062a \u0645\u0628\u062f\u0627",value:this.smartTransferDataPassingService.useDigitalCard?this.smartTransferDataPassingService.sourceCardName:this.smartTransferDataPassingService.sourceCardNumber,logo:this.smartTransferDataPassingService.useDigitalCard?"/assets/images/shared/logo-bank/wepod.svg":this.smartTransferDataPassingService.sourceCardLogo},{type:"text",label:"\u06a9\u0627\u0631\u062a \u0645\u0642\u0635\u062f",value:this.smartTransferDataPassingService.dataSelected,logo:this.smartTransferDataPassingService.bankLogoUrl},{type:"text",label:"\u0628\u0647 \u0646\u0627\u0645",value:this.smartTransferDataPassingService.name},{type:"amountWithRial",label:"\u0645\u0628\u0644\u063a \u062a\u0631\u0627\u06a9\u0646\u0634",value:10*this.smartTransferDataPassingService.amount},{type:"jalaliDateTime",label:"\u062a\u0627\u0631\u06cc\u062e \u0648 \u0633\u0627\u0639\u062a",value:id().toDate().toISOString().replace("Z","")},{type:"text",label:"\u0634\u0631\u062d \u0645\u0628\u062f\u0627",value:this.escapeHtmlPipe.transform(this.sourceDesc)},{type:"text",label:"\u0634\u0631\u062d \u0645\u0642\u0635\u062f",value:this.escapeHtmlPipe.transform(this.destinationDesc)}]},(0,vr.Mr)(),this.smartTransferDataPassingService.transactionInquiry=!0,setTimeout(()=>{this.routingAppService.navigate(["smart-transfer/receipt"])},1e3)):"walletCashIn"===this.id&&500!==he.status&&this.getProfileDataService.getValue().then(Ye=>{this.walletDataPassingService.receiptDataCard={state:$a.ap.InProgress,rows:[{type:"text",label:"\u06a9\u0627\u0631\u062a \u0645\u0628\u062f\u0627",value:this.walletDataPassingService.cardNumber,logo:this.walletDataPassingService.cardLogo},{type:"text",label:"\u06a9\u0627\u0631\u062a \u0645\u0642\u0635\u062f",value:this.walletDataPassingService.digitalCardNumber,logo:"/assets/images/bank-icon/pasargad.svg"},{type:"text",label:"\u0628\u0647 \u0646\u0627\u0645",value:Ye.firstName||Ye.lastName?Ye.firstName+" "+Ye.lastName:Ye.nickName},{type:"amountWithRial",label:"\u0645\u0628\u0644\u063a \u062a\u0631\u0627\u06a9\u0646\u0634",value:10*parseInt(this.walletDataPassingService.amount,10)},{type:"jalaliDateTime",label:"\u062a\u0627\u0631\u06cc\u062e \u0648 \u0633\u0627\u0639\u062a",value:id().toDate().toISOString().replace("Z","")},{type:"text",label:"\u0634\u0631\u062d \u0645\u0628\u062f\u0627",value:this.escapeHtmlPipe.transform(this.sourceDesc)},{type:"text",label:"\u0634\u0631\u062d \u0645\u0642\u0635\u062f",value:this.escapeHtmlPipe.transform(this.destinationDesc)}]},(0,vr.Mr)(),this.walletDataPassingService.transactionInquiry=!0,this.walletDataPassingService.showReceipt=!0,this.walletDataPassingService.showConfirm=!1}))})}else this.toastrService.error("\u0644\u0637\u0641\u0627 \u0645\u0642\u062F\u0627\u0631 \u0631\u0645\u0632 \u062F\u0648\u0645 \u0631\u0627 \u0648\u0627\u0631\u062F \u0646\u0645\u0627\u06CC\u06CC\u062F.");else this.toastrService.error("\u0644\u0637\u0641\u0627 \u0645\u0642\u062F\u0627\u0631 \u0633\u0627\u0644 \u0627\u0646\u0642\u0636\u0627 \u0631\u0627 \u0648\u0627\u0631\u062F \u0646\u0645\u0627\u06CC\u06CC\u062F.");else this.toastrService.error("\u0644\u0637\u0641\u0627 \u0645\u0642\u062F\u0627\u0631 \u0645\u0627\u0647 \u0627\u0646\u0642\u0636\u0627 \u0631\u0627 \u0648\u0627\u0631\u062F \u0646\u0645\u0627\u06CC\u06CC\u062F.");else this.toastrService.error("\u0644\u0637\u0641\u0627 \u0645\u0642\u062F\u0627\u0631 \u062A\u0627\u0631\u06CC\u062E \u0627\u0646\u0642\u0636\u0627 \u0631\u0627 \u0648\u0627\u0631\u062F \u0646\u0645\u0627\u06CC\u06CC\u062F.");else this.toastrService.error("\u0644\u0637\u0641\u0627 \u0645\u0642\u062F\u0627\u0631 cvv2 \u0631\u0627 \u0648\u0627\u0631\u062F \u0646\u0645\u0627\u06CC\u06CC\u062F.")}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(L0.X),e.Y36(Go.X),e.Y36(b_.D),e.Y36(wc.c),e.Y36(A6.Y),e.Y36(td.g),e.Y36(D6.q),e.Y36(ig.v),e.Y36(Ic.A),e.Y36(xc.o),e.Y36(ua.s),e.Y36(rd.M))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-get-source-card-information"]],decls:18,vars:13,consts:[[1,"get-source-card-information-wrapper",3,"ngClass"],[1,"form-wrapper"],["class","form-group",4,"ngIf"],[1,"form-group","get-otp-btn"],[1,"form-title"],[1,"btn","width-fix","btn-success",3,"disabled","click"],[3,"inputId","resetFormSubject","maxLength","value","OnInput"],["class","form-group exp",4,"ngIf"],["class","checkbox",4,"ngIf"],["class","form-group separate-line",4,"ngIf"],[1,"btn","btn-success","btn-fixed-mob","btn-max-size","width-fix",3,"click"],[1,"form-group"],[3,"inputId","maxLength","value","classInvalid","OnInput"],[1,"form-group","exp"],[1,"form-expire-date"],[3,"inputId","showTagWhenEmpty","useNextInputFocus","inputType","maxLength","value","placeHolder","placeHolderCenterDir","OnInput"],[1,"checkbox"],["type","checkbox","name","saveExpireDate","id","saveExpireDate1","value","option",3,"checked","change"],["name","saveExpireDate","type","hidden","value","false",2,"display","none"],["for","saveExpireDate1"],[1,"form-group","separate-line"],["label","\u0634\u0631\u062d \u0645\u0628\u062f\u0627",3,"inputId","showTagWhenEmpty","maxLength","value","placeHolder","placeHolderCenterDir","OnInput"],["label","\u0634\u0631\u062d \u0645\u0642\u0635\u062f",3,"inputId","showTagWhenEmpty","maxLength","value","placeHolder","placeHolderCenterDir","OnInput"]],template:function(o,A){1&o&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,P6,5,4,"div",2),e.TgZ(3,"div",3)(4,"div",4)(5,"label"),e._uU(6,"\u0631\u0645\u0632 \u062f\u0648\u0645 \u06a9\u0627\u0631\u062a"),e.qZA()(),e.TgZ(7,"section")(8,"button",5),e.NdJ("click",function(){return A.requestOtp()}),e.TgZ(9,"span"),e._uU(10),e.ALo(11,"countDownTime"),e.qZA()(),e.TgZ(12,"app-input-tagged-password",6),e.NdJ("OnInput",function(he){return A.pin2=he}),e.qZA()()(),e.YNc(13,$C,9,16,"div",7),e.YNc(14,QC,5,1,"section",8),e.YNc(15,XC,5,12,"div",9),e.qZA(),e.TgZ(16,"button",10),e.NdJ("click",function(){return A.shaparakTransfer()}),e._uU(17,"\u062a\u0627\u06cc\u06cc\u062f"),e.qZA()()),2&o&&(e.Q6J("ngClass",A.useDigitalCard?"digital-card":""),e.xp6(2),e.Q6J("ngIf",!A.useDigitalCard),e.xp6(6),e.Q6J("disabled",A.canResendCode),e.xp6(2),e.Oqu(A.canResendCode?e.lcZ(11,11,A.timeLeft):A.isRefresh?"\u0627\u0631\u0633\u0627\u0644 \u0645\u062c\u062f\u062f":"\u062f\u0631\u06cc\u0627\u0641\u062a \u0631\u0645\u0632 \u067e\u0648\u06cc\u0627"),e.xp6(2),e.Q6J("inputId","pin2")("resetFormSubject",A.resetFormSubject.asObservable())("maxLength",12)("value",A.pin2),e.xp6(1),e.Q6J("ngIf",A.internal&&!A.useDigitalCard),e.xp6(1),e.Q6J("ngIf",A.internal&&!A.useDigitalCard),e.xp6(1),e.Q6J("ngIf",A.internal))},directives:[G.mk,G.O5,R1.$,Al.d],pipes:[wh.q],encapsulation:2}),T})();var eb=n(84727);let Fg=(()=>{class T{constructor(){this.image="/assets/images/shared/circle-success.svg"}ngOnInit(){this.data=vr.j.data.value}closeModal(){(0,vr.Mr)()}}return T.\u0275fac=function(o){return new(o||T)},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-modal-basic-shared"]],inputs:{image:"image"},decls:9,vars:4,consts:[[1,"basic-modal-wrapper"],[1,"basic-modal-container"],["alt","",3,"src"],[1,"basic-modal-btns","modal-footer"],[3,"backUrl","contentShare"],[1,"basic-modal-btns-close","full-size-button",3,"click"]],template:function(o,A){1&o&&(e.TgZ(0,"div",0)(1,"section",1),e._UZ(2,"img",2),e.TgZ(3,"p"),e._uU(4),e.qZA()(),e.TgZ(5,"section",3),e._UZ(6,"app-share-button",4),e.TgZ(7,"button",5),e.NdJ("click",function(){return A.closeModal()}),e._uU(8," \u0628\u0633\u062a\u0646 "),e.qZA()()()),2&o&&(e.xp6(2),e.Q6J("src",A.image,e.LSH),e.xp6(2),e.Oqu(null==A.data?null:A.data.contentModal),e.xp6(2),e.Q6J("backUrl",null==A.data?null:A.data.link)("contentShare",null==A.data?null:A.data.textShare))},directives:[eb.x],encapsulation:2}),T})();function tb(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"div",5),e.NdJ("click",function(){return e.CHM(o),e.oxw().selectDataForPol()}),e.TgZ(1,"div",6)(2,"label"),e._uU(3,"\u0628\u0627\u0628\u062a"),e.qZA()(),e.TgZ(4,"div",7)(5,"div",8),e._uU(6),e.qZA(),e.TgZ(7,"div",9),e._UZ(8,"img",10),e.qZA()()()}if(2&T){const o=e.oxw();e.xp6(6),e.Oqu(o.smartTransferDataPassingService.selectDataPol?o.smartTransferDataPassingService.selectDataPol:"\u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f")}}function Au(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"div",11)(1,"app-input-tagged-text",12),e.NdJ("OnInput",function(ee){return e.CHM(o),e.oxw().smartTransferDataPassingService.originDescription=ee}),e.qZA()()}if(2&T){const o=e.oxw();e.xp6(1),e.Q6J("inputId","originDescription")("label",o.data===o.transferType.Wepod||o.data===o.transferType.Pol?"\u0634\u0631\u062d":"\u0634\u0631\u062d \u0645\u0628\u062f\u0627")("showTagWhenEmpty",!0)("maxLength",30)("value",o.smartTransferDataPassingService.originDescription)("placeHolder","\u0627\u062e\u062a\u06cc\u0627\u0631\u06cc")("placeHolderCenterDir",!0)}}function rb(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"div",11)(1,"app-input-tagged-text",12),e.NdJ("OnInput",function(ee){return e.CHM(o),e.oxw().smartTransferDataPassingService.desDescription=ee}),e.qZA()()}if(2&T){const o=e.oxw();e.xp6(1),e.Q6J("inputId","desDescription")("label","\u0634\u0631\u062d \u0645\u0642\u0635\u062f")("showTagWhenEmpty",!0)("maxLength",30)("value",o.smartTransferDataPassingService.desDescription)("placeHolder","\u0627\u062e\u062a\u06cc\u0627\u0631\u06cc")("placeHolderCenterDir",!0)}}function Bg(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"div",11)(1,"app-input-tagged-text",13),e.NdJ("OnInput",function(ee){return e.CHM(o),e.oxw().smartTransferDataPassingService.paymentId=ee}),e.qZA()()}if(2&T){const o=e.oxw();e.xp6(1),e.Q6J("inputId","paymentId")("inputType","tel")("showTagWhenEmpty",!0)("value",o.smartTransferDataPassingService.paymentId)("maxLength",30)("placeHolder","\u0627\u062e\u062a\u06cc\u0627\u0631\u06cc")("placeHolderCenterDir",!0)}}let nb=(()=>{class T{constructor(o,A,ee,he,Ye,bt,er,mr){this.smartTransferDataPassingService=o,this.walletService=A,this.tagManager=ee,this.routingAppService=he,this.fundTransfersDataPassingService=Ye,this.shebaService=bt,this.getProfileDataService=er,this.escapeHtmlPipe=mr,this.transferType=Ga.Z$}ngOnInit(){this.data=vr.j.data.value.transferType}selectDataForPol(){this.smartTransferDataPassingService.showPurposeTransfer=!0,(0,vr.Mr)()}getPurposesData(){if(this.data===Ga.Z$.Pol){const o=new po.D6;o.amount=10*this.smartTransferDataPassingService.amount,o.purposeCode=this.smartTransferDataPassingService.purposeCode,o.destIBAN=this.smartTransferDataPassingService.iban.toUpperCase().includes("IR")?this.smartTransferDataPassingService.iban:"IR"+this.smartTransferDataPassingService.iban,this.smartTransferDataPassingService.paymentId&&(o.paymentId=this.smartTransferDataPassingService.paymentId),this.smartTransferDataPassingService.originDescription&&(o.description=this.escapeHtmlPipe.transform(this.smartTransferDataPassingService.originDescription)),o.transactionId=this.smartTransferDataPassingService.polTransactionId,this.walletService.polTransfer(o).subscribe(A=>{if(A.needToVerify)setTimeout(()=>{vr.j.bgWhite=!0,vr.j.desktopStyle=!0,vr.j.hideDesktopHeaderClose=!1,vr.j.disableBackdropClosing=!0,vr.j.fullScreen.next(!1),vr.j.data.next({referenceNumber:A?.referenceNumber,purpose:A?.purpose,paymentId:A?.paymentId,description:A?.description,amount:A?.amount,destName:A?.destName,destIBan:A?.destIBan,sourceName:A?.sourceName,remainingOtpTimeoutInSecond:A?.remainingOtpTimeoutInSecond,otpModalTitle:"\u0631\u0645\u0632 \u062a\u0631\u0627\u06a9\u0646\u0634",otpBoxTitle:"\u0631\u0645\u0632 \u062a\u0631\u0627\u06a9\u0646\u0634",actionType:"pol"}),(0,vr.h7)("transferUserVerifyOtp")},500);else{(0,ni.Sq)("DataLayerGoogleAnalytics")&&this.tagManager.pushEvent("money_transfer_ok",{});const ee=[{type:"text",label:"\u0634\u0645\u0627\u0631\u0647 \u0645\u0631\u062c\u0639",value:A.referenceNumber},{type:"text",label:"\u0646\u0627\u0645 \u0645\u0628\u062f\u0627",value:A.sourceName},{type:"text",label:"\u0634\u0645\u0627\u0631\u0647 \u0634\u0628\u0627\u06cc \u0645\u0642\u0635\u062f",logo:this.smartTransferDataPassingService.bankLogoUrl,value:this.smartTransferDataPassingService.id===Ga.gG.CardNumber?this.smartTransferDataPassingService.iban:this.smartTransferDataPassingService.dataSelected},{type:"text",label:"\u0646\u0627\u0645 \u0645\u0642\u0635\u062f",value:A.destName},{type:"amountWithRial",label:"\u0645\u0628\u0644\u063a",value:A.amount},{type:"jalaliDateTime",label:"\u062a\u0627\u0631\u06cc\u062e \u0648 \u0633\u0627\u0639\u062a",value:A.transactionDate?A.transactionDate.replace("Z",""):null},{type:"text",label:"\u0628\u0627\u0628\u062a",value:A.purpose},{type:"text",label:"\u0634\u0646\u0627\u0633\u0647 \u0648\u0627\u0631\u06cc\u0632",value:A.paymentId},{type:"text",label:"\u0634\u0631\u062d",value:A.description},{type:"text",label:"\u0634\u0631\u062d \u0648\u0636\u0639\u06cc\u062a",value:A?.statusDesc}];if(A.state===po.Cl.Success){const he=new Rf.Tq;he.offset=0,he.size=1,he.sheba=A.destIBan.toUpperCase().includes("IR")?A.destIBan:"IR"+A.destIBan,this.shebaService.getShebas(he).subscribe(Ye=>{Ye.length||(this.smartTransferDataPassingService.isNewCard=!0)}),this.smartTransferDataPassingService.paySuccessText=A?.message,this.smartTransferDataPassingService.receiptDataCard={state:$a.ap.Success,rows:ee}}else A.state===po.Cl.Fail?(this.smartTransferDataPassingService.payFailedText=A?.message,this.smartTransferDataPassingService.receiptDataCard={state:$a.ap.Failed,rows:ee}):A.state===po.Cl.UnSpecified&&(this.smartTransferDataPassingService.payInProgressText=A?.message,this.smartTransferDataPassingService.receiptDataCard={state:$a.ap.InProgress,rows:ee},this.smartTransferDataPassingService.transactionInquiry=!0);this.smartTransferDataPassingService.statusName=A.statusName,this.routingAppService.navigate(["smart-transfer/receipt"])}},A=>{(408===A.status||0===A.status||500===A.status)&&this.getProfileDataService.getValue().then(ee=>{this.smartTransferDataPassingService.dateTimeServiceTimeOut=id().toDate().toISOString().replace("Z",""),this.smartTransferDataPassingService.receiptDataCard={state:$a.ap.InProgress,rows:[{type:"text",label:"\u0646\u0627\u0645 \u0645\u0628\u062f\u0627",value:ee.firstName||ee.lastName?ee.firstName+" "+ee.lastName:ee.nickName},{type:"text",label:"\u0634\u0645\u0627\u0631\u0647 \u0634\u0628\u0627\u06cc \u0645\u0642\u0635\u062f",logo:this.smartTransferDataPassingService.bankLogoUrl,value:this.smartTransferDataPassingService.id===Ga.gG.CardNumber?this.smartTransferDataPassingService.iban:this.smartTransferDataPassingService.dataSelected},{type:"text",label:"\u0646\u0627\u0645 \u0645\u0642\u0635\u062f",value:this.smartTransferDataPassingService.name},{type:"amountWithRial",label:"\u0645\u0628\u0644\u063a",value:10*this.smartTransferDataPassingService.amount},{type:"jalaliDateTime",label:"\u062a\u0627\u0631\u06cc\u062e \u0648 \u0633\u0627\u0639\u062a",value:this.smartTransferDataPassingService.dateTimeServiceTimeOut},{type:"text",label:"\u0628\u0627\u0628\u062a",value:this.smartTransferDataPassingService.selectDataPol},{type:"text",label:"\u0634\u0646\u0627\u0633\u0647 \u0648\u0627\u0631\u06cc\u0632",value:this.smartTransferDataPassingService.paymentId},{type:"text",label:"\u0634\u0631\u062d",value:this.smartTransferDataPassingService.originDescription}]},this.smartTransferDataPassingService.transactionInquiry=!0,this.routingAppService.navigate(["smart-transfer/receipt"])})})}else if(this.data===Ga.Z$.Paya){const o=new po.ku;o.amount=10*this.smartTransferDataPassingService.amount,o.currencyCode="IRR",o.toolCode=this.smartTransferDataPassingService.transferType===Ga.Z$.Paya?2:this.smartTransferDataPassingService.transferType===Ga.Z$.Satna?1:null,o.toolId=this.smartTransferDataPassingService.iban.toUpperCase().replace("IR",""),o.paymentId=this.smartTransferDataPassingService.paymentId,this.smartTransferDataPassingService.payaPurposeReadyToUse?o.purposeCode=this.smartTransferDataPassingService.purposeCode:(delete this.smartTransferDataPassingService.purposeCode,delete this.smartTransferDataPassingService.payaPurposeReadyToUse,delete o.purposeCode),this.smartTransferDataPassingService.originDescription?o.sourceDescription=this.escapeHtmlPipe.transform(this.smartTransferDataPassingService.originDescription):delete o.sourceDescription,this.smartTransferDataPassingService.desDescription?o.description=this.escapeHtmlPipe.transform(this.smartTransferDataPassingService.desDescription):delete o.description,this.walletService.requestSettlementByToolId(o).subscribe(A=>{if((0,ni.Sq)("DataLayerGoogleAnalytics")&&(this.tagManager.pushEvent("money_transfer_submit",{type:"transfer_paya"}),this.tagManager.pushEvent("cash_out_ok",{bank:this.smartTransferDataPassingService.bankName})),A.needToVerify)setTimeout(()=>{vr.j.data.next({amount:o.amount,currencyCode:o.currencyCode,toolCode:o.toolCode,toolId:o.toolId,paymentId:o.paymentId,purposeCode:o.purposeCode?o.purposeCode:"",verificationMessage:A.verificationMessage,verificationOtp:A.otpTimeOutInSeconds,remainingOtpTimeoutInSecond:A.remainingOtpTimeoutInSecond,otpModalTitle:"\u0631\u0645\u0632 \u062a\u0631\u0627\u06a9\u0646\u0634",otpBoxTitle:"\u0631\u0645\u0632 \u062a\u0631\u0627\u06a9\u0646\u0634",actionType:"paya",id:A.id,destinationName:this.smartTransferDataPassingService.name,bankLogo:this.smartTransferDataPassingService.bankEnName,originDescription:this.smartTransferDataPassingService.originDescription,desDescription:this.smartTransferDataPassingService.desDescription,typeTransfer:"smartTransfer"}),vr.j.bgWhite=!0,vr.j.desktopStyle=!0,vr.j.hideDesktopHeaderClose=!1,vr.j.disableBackdropClosing=!0,vr.j.fullScreen.next(!1),(0,vr.h7)("transferUserVerifyOtp")},500);else{(0,ni.Sq)("DataLayerGoogleAnalytics")&&this.tagManager.pushEvent("money_transfer_ok",{});const ee=new Rf.Tq;ee.offset=0,ee.size=1,ee.sheba="IR"+A.toolId;let he=!0;this.shebaService.getShebas(ee).subscribe(Ye=>{Ye.length&&(he=!1),this.smartTransferDataPassingService.settlementByToolModelReceiptInfo={settlementByToolModel:A,bankLogo:this.smartTransferDataPassingService.bankLogoUrl,typeTransfer:"smartTransfer",isNewSheba:he},this.routingAppService.navigate(["wallet/settlement-receipt"])},()=>{this.smartTransferDataPassingService.settlementByToolModelReceiptInfo={settlementByToolModel:A,bankLogo:this.smartTransferDataPassingService.bankLogoUrl,typeTransfer:"smartTransfer",isNewSheba:he},this.routingAppService.navigate(["wallet/settlement-receipt"])})}},A=>{(408===A.status||500===A.status)&&this.timeOutService()})}else if(this.data===Ga.Z$.Wepod){const o=new po.fd;o.username=this.smartTransferDataPassingService.username,o.amount=10*this.smartTransferDataPassingService.amount,o.description=this.escapeHtmlPipe.transform(this.smartTransferDataPassingService.originDescription),o.currencyCode="IRR",this.walletService.transferToUserWithLimit(o).subscribe(A=>{this.fundTransfersDataPassingService.sourceFirstName=A.sourceFullName,this.fundTransfersDataPassingService.destinationFirstName=A.destinationFullName,this.fundTransfersDataPassingService.amount=A.amount,this.fundTransfersDataPassingService.date=A.date,this.fundTransfersDataPassingService.description=A.description,(0,ni.Sq)("DataLayerGoogleAnalytics")&&this.tagManager.pushEvent("money_transfer_submit",{type:"transfer_wepod"}),A.needVerify?setTimeout(()=>{vr.j.bgWhite=!0,vr.j.desktopStyle=!0,vr.j.hideDesktopHeaderClose=!1,vr.j.disableBackdropClosing=!0,vr.j.fullScreen.next(!1),vr.j.data.next({userId:o.userId,username:o.username,amount:o.amount,currencyCode:o.currencyCode,description:o.description,verificationMessage:A.verificationMessage,verificationOtp:A.otpTimeoutInSecond,otpModalTitle:"\u0631\u0645\u0632 \u062a\u0631\u0627\u06a9\u0646\u0634",otpBoxTitle:"\u0631\u0645\u0632 \u062a\u0631\u0627\u06a9\u0646\u0634",actionType:"wepod",remainingOtpTimeoutInSecond:A.remainingOtpTimeoutInSecond}),(0,vr.h7)("transferUserVerifyOtp")},500):A.verified?((0,ni.Sq)("DataLayerGoogleAnalytics")&&this.tagManager.pushEvent("money_transfer_ok",{}),this.smartTransferDataPassingService.receiptDataCard={state:$a.ap.Success,rows:[{type:"text",label:"\u0634\u0645\u0627\u0631\u0647 \u067e\u06cc\u06af\u06cc\u0631\u06cc",value:A.referenceNumber},{type:"text",label:"\u0645\u0642\u0635\u062f",logo:"/assets/images/shared/logo-bank/wepod.svg",value:"\u062d\u0633\u0627\u0628 \u062f\u06cc\u062c\u06cc\u062a\u0627\u0644"},{type:"text",label:"\u0646\u0627\u0645 \u0645\u0628\u062f\u0627",value:A.sourceFullName},{type:"text",label:"\u0646\u0627\u0645 \u0645\u0642\u0635\u062f",value:A.destinationFullName},{type:"amountWithRial",label:"\u0645\u0628\u0644\u063a \u062a\u0631\u0627\u06a9\u0646\u0634",value:A.amount},{type:"jalaliDateTime",label:"\u062a\u0627\u0631\u06cc\u062e \u0648 \u0633\u0627\u0639\u062a",value:A.date},{type:"text",label:"\u0634\u0631\u062d",value:A.description}]},this.routingAppService.navigate(["smart-transfer/receipt"])):((0,ni.Sq)("DataLayerGoogleAnalytics")&&this.tagManager.pushEvent("money_transfer_ok",{}),this.smartTransferDataPassingService.receiptDataCard={state:$a.ap.Failed,rows:[{type:"text",label:"\u0645\u0642\u0635\u062f",logo:"/assets/images/shared/logo-bank/wepod.svg",value:"\u062d\u0633\u0627\u0628 \u062f\u06cc\u062c\u06cc\u062a\u0627\u0644"},{type:"amountWithRial",label:"\u0645\u0628\u0644\u063a \u062a\u0631\u0627\u06a9\u0646\u0634",value:A.amount},{type:"jalaliDateTime",label:"\u062a\u0627\u0631\u06cc\u062e \u0648 \u0633\u0627\u0639\u062a",value:A.date}]},this.routingAppService.navigate(["smart-transfer/receipt"]))},A=>{(408===A.status||500===A.status)&&this.timeOutService()})}(0,vr.Mr)()}timeOutService(){vr.j.bgWhite=!0,vr.j.desktopStyle=!0,vr.j.hideDesktopHeaderClose=!0,vr.j.disableBackdropClosing=!0,vr.j.basicModalData.next({img:"/assets/images/shared/warning.svg",title:"",desc:["\u0646\u062a\u06cc\u062c\u0647 \u062a\u0631\u0627\u06a9\u0646\u0634 \u0646\u0627\u0645\u0634\u062e\u0635 \u0627\u0633\u062a. \u0644\u0637\u0641\u0627 \u067e\u06cc\u0634 \u0627\u0632 \u0627\u0646\u062c\u0627\u0645 \u062f\u0648\u0628\u0627\u0631\u0647 \u062a\u0631\u0627\u06a9\u0646\u0634 \u0628\u0627 \u0645\u0634\u0627\u0647\u062f\u0647 \u06af\u0631\u062f\u0634 \u062d\u0633\u0627\u0628 \u0631\u0648\u0632 \u062c\u0627\u0631\u06cc\u060c \u0646\u0633\u0628\u062a \u0628\u0647 \u0639\u062f\u0645 \u06a9\u0633\u0631 \u0648\u062c\u0647 \u0627\u0632 \u062d\u0633\u0627\u0628 \u062e\u0648\u062f \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u0646\u0645\u0627\u06cc\u06cc\u062f."],buttons:{first:{title:"\u0645\u0634\u0627\u0647\u062f\u0647 \u06af\u0631\u062f\u0634 \u062d\u0633\u0627\u0628",action:()=>{(0,vr.Mr)(),this.routingAppService.navigate(["turnover-reports"])},green:!0},second:{title:"\u0645\u062a\u0648\u062c\u0647 \u0634\u062f\u0645",action:()=>{(0,vr.Mr)();const o=localStorage.getItem("primaryUrl");o?this.routingAppService.navigate([o],{replaceUrl:!0}):this.routingAppService.back(3)},gray:!0}}}),(0,vr.h7)("basicModal")}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(Ic.A),e.Y36(Ah.X),e.Y36(wc.c),e.Y36(ua.s),e.Y36(_g.K),e.Y36(Dh.a),e.Y36(xc.o),e.Y36(rd.M))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-get-info-transfer-pol-modal"]],decls:8,vars:5,consts:[[1,"get-info-transfer-pol-modal-wrapper"],[1,"form-wrapper"],["class","form-group form-btn-dropdown",3,"click",4,"ngIf"],["class","form-group",4,"ngIf"],[1,"btn","btn-success","btn-fixed-mob","btn-max-size","width-fix",3,"disabled","click"],[1,"form-group","form-btn-dropdown",3,"click"],[1,"form-title"],[1,"dropdown-list"],[1,"form-control"],[1,"form-btn-arrow"],["src","/assets/images/form/down-arrow.svg","alt","arrow"],[1,"form-group"],[3,"inputId","label","showTagWhenEmpty","maxLength","value","placeHolder","placeHolderCenterDir","OnInput"],["label","\u0634\u0646\u0627\u0633\u0647 \u0648\u0627\u0631\u06cc\u0632",3,"inputId","inputType","showTagWhenEmpty","value","maxLength","placeHolder","placeHolderCenterDir","OnInput"]],template:function(o,A){1&o&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,tb,9,1,"div",2),e.YNc(3,Au,2,7,"div",3),e.YNc(4,rb,2,7,"div",3),e.YNc(5,Bg,2,7,"div",3),e.qZA(),e.TgZ(6,"button",4),e.NdJ("click",function(){return A.getPurposesData()}),e._uU(7,"\u062a\u0627\u06cc\u06cc\u062f "),e.qZA()()),2&o&&(e.xp6(2),e.Q6J("ngIf",A.data===A.transferType.Paya&&A.smartTransferDataPassingService.payaPurposeReadyToUse||A.data===A.transferType.Pol),e.xp6(1),e.Q6J("ngIf",A.data===A.transferType.Pol||A.data===A.transferType.Wepod||A.data===A.transferType.Paya),e.xp6(1),e.Q6J("ngIf",A.data===A.transferType.Paya),e.xp6(1),e.Q6J("ngIf",(A.data===A.transferType.Paya||A.data===A.transferType.Pol)&&A.smartTransferDataPassingService.needPaymentId||A.data===A.transferType.Pol&&!A.smartTransferDataPassingService.ibanPaymentIdInquiry),e.xp6(1),e.Q6J("disabled",A.data===A.transferType.Pol&&!A.smartTransferDataPassingService.selectDataPol||A.data===A.transferType.Paya&&A.smartTransferDataPassingService.payaPurposeReadyToUse&&!A.smartTransferDataPassingService.selectDataPol||!(A.data===A.transferType.Paya&&!A.smartTransferDataPassingService.payaPurposeReadyToUse)&&!A.smartTransferDataPassingService.selectDataPol&&A.data!==A.transferType.Wepod))},directives:[G.O5,Al.d],encapsulation:2}),T})();var ib=n(86907);let Ug=(()=>{class T{constructor(){}ngOnInit(){this.orderTrackingId=vr.j.data.value.trackingId,this.link=vr.j.data.value.link}closeModal(){(0,vr.Mr)()}followCode(){(0,vr.Mr)(),(0,hi.Jj)().open(this.link,"_blank")}}return T.\u0275fac=function(o){return new(o||T)},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-order-tracking-modal"]],decls:13,vars:4,consts:[[1,"order-tracking-modal-wrapper"],[1,"order-tracking-copy"],[3,"urlCopyImg","data","showTxtAlert"],[1,"btn-container"],[1,"btn","btn-success","btn-max-size","width-fix",3,"click"],[1,"btn","btn-line-success","btn-max-size","width-fix",3,"click"]],template:function(o,A){1&o&&(e.TgZ(0,"section",0)(1,"h5"),e._uU(2,"\u06a9\u062f \u0631\u0647\u06af\u06cc\u0631\u06cc \u0645\u0631\u0633\u0648\u0644\u0647"),e.qZA(),e.TgZ(3,"p"),e._uU(4," \u06a9\u062f \u0646\u0645\u0627\u06cc\u0634 \u062f\u0627\u062f\u0647 \u0634\u062f\u0647\u060c \u06a9\u062f \u0631\u0647\u06af\u06cc\u0631\u06cc \u06a9\u0627\u0631\u062a \u0641\u06cc\u0632\u06cc\u06a9\u06cc \u0634\u0645\u0627 \u0645\u06cc \u0628\u0627\u0634\u062f. \u062c\u0647\u062a \u067e\u06cc\u06af\u06cc\u0631\u06cc \u062f\u0631 \u0633\u0627\u0645\u0627\u0646\u0647 \u067e\u0633\u062a \u0627\u0632 \u0622\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0646\u0645\u0627\u06cc\u06cc\u062f. "),e.qZA(),e.TgZ(5,"div",1),e._UZ(6,"app-copy-to-clipboard",2),e._uU(7),e.qZA(),e.TgZ(8,"section",3)(9,"button",4),e.NdJ("click",function(){return A.followCode()}),e._uU(10," \u0633\u0627\u0645\u0627\u0646\u0647 \u0631\u0647\u06af\u06cc\u0631\u06cc \u0645\u0631\u0633\u0648\u0644\u0627\u062a "),e.qZA(),e.TgZ(11,"button",5),e.NdJ("click",function(){return A.closeModal()}),e._uU(12,"\u0628\u0633\u062a\u0646"),e.qZA()()()),2&o&&(e.xp6(6),e.Q6J("urlCopyImg","/assets/images/shared/copy-with-back-gray.svg")("data",A.orderTrackingId)("showTxtAlert","\u06a9\u062f \u0631\u0647\u06af\u06cc\u0631\u06cc \u06a9\u0627\u0631\u062a \u0641\u06cc\u0632\u06cc\u06a9\u06cc \u06a9\u067e\u06cc \u0634\u062f."),e.xp6(1),e.hij(" ",A.orderTrackingId," "))},directives:[ib.F],encapsulation:2}),T})();const S_=["codeNumber"];function T_(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"input",10,11),e.NdJ("keyup",function(ee){return e.CHM(o),e.oxw().keytab(ee)})("input",function(){return e.CHM(o),e.oxw().getDeliveryCode()}),e.qZA()}if(2&T){const o=S.$implicit,A=S.index,ee=e.oxw();e.MGl("id","otp-",o,""),e.s9C("tabindex",A+1),e.Q6J("maxLength",ee.maxLength)}}const sb=function(){return[1,2,3,4,5,6,7]};let E_=(()=>{class T{constructor(o,A,ee){this.digitalCardService=o,this.physicalCardDataPassingService=A,this.routingAppService=ee,this.maxLength=7}ngOnInit(){}keytab(o,A=6){const ee=new If.M;if(this.maxLength=1,A<6)return;document.getElementById(o.target.id).value=ee.transform(o.target.value)?.toString();let he=o.target.nextElementSibling;8===o.keyCode&&(he=o.target.previousElementSibling,o.target.value=null,he.focus()),he&&(o.target.value||8===o.keyCode)&&(he.focus(),he.setSelectionRange(0,he?.value?.length)),o.target.value?.length>this.maxLength&&(o.target.value=o.target.value?.substr(0,this.maxLength))}getDeliveryCode(){const o=new If.M;let A="";for(const ee of[1,2,3,4,5,6,7])A+=document.getElementById("otp-"+ee).value;7===A.length&&(A=String(o.transform(A)),this.deliveryCode=A)}getOtp(){this.digitalCardService.verifyDeliveryCode(this.deliveryCode).subscribe(o=>{this.physicalCardDataPassingService.otpTimeout=o.otpTimeoutInSecond,(0,vr.Mr)(),this.routingAppService.navigate(["services/physical-card/physical-card-activation"])})}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(Lf.w),e.Y36(Gd.z),e.Y36(ua.s))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-verify-delivery-code"]],viewQuery:function(o,A){if(1&o&&e.Gf(S_,5),2&o){let ee;e.iGM(ee=e.CRH())&&(A.codeNumber=ee.first)}},decls:16,vars:3,consts:[[1,"verify-delivery-code-wrapper"],[1,"verify-delivery-code-container"],[1,"form-wrapper"],["src","/assets/images/pod-card/validation-code.svg","alt",""],[1,"bolder"],[1,"form-group"],[1,"form-title"],[1,"verify-delivery-code-input"],["type","tel","pattern","[0-9]+","class","form-control","oninput","this.value = this.value.replace(/[^\u06f0\u06f1\u06f2\u06f3\u06f4\u06f5\u06f6\u06f7\u06f8\u06f9\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u06690-9]/g, '').replace(/(\\..*)\\./g, '$1');","required","","autocomplete","off",3,"id","maxLength","tabindex","keyup","input",4,"ngFor","ngForOf"],[1,"btn","btn-success","btn-fixed-mob","btn-max-size","width-fix",3,"disabled","click"],["type","tel","pattern","[0-9]+","oninput","this.value = this.value.replace(/[^\u06f0\u06f1\u06f2\u06f3\u06f4\u06f5\u06f6\u06f7\u06f8\u06f9\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u06690-9]/g, '').replace(/(\\..*)\\./g, '$1');","required","","autocomplete","off",1,"form-control",3,"id","maxLength","tabindex","keyup","input"],["codeNumber",""]],template:function(o,A){1&o&&(e.TgZ(0,"article",0)(1,"div",1)(2,"div",2),e._UZ(3,"img",3),e.TgZ(4,"h5",4),e._uU(5," \u06a9\u062f \u062a\u062d\u0648\u06cc\u0644 \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f "),e.qZA(),e.TgZ(6,"p"),e._uU(7,"\u0644\u0637\u0641\u0627 \u06a9\u062f \u062a\u062d\u0648\u06cc\u0644 \u062f\u0631\u062c \u0634\u062f\u0647 \u0628\u0631 \u0631\u0648\u06cc \u067e\u0627\u06a9\u062a \u06a9\u0627\u0631\u062a \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f."),e.qZA(),e.TgZ(8,"div",5)(9,"div",6)(10,"label"),e._uU(11,"\u06a9\u062f \u062a\u062d\u0648\u06cc\u0644"),e.qZA()(),e.TgZ(12,"div",7),e.YNc(13,T_,2,3,"input",8),e.qZA()()(),e.TgZ(14,"button",9),e.NdJ("click",function(){return A.getOtp()}),e._uU(15," \u062a\u0627\u06cc\u06cc\u062f "),e.qZA()()()),2&o&&(e.xp6(13),e.Q6J("ngForOf",e.DdM(2,sb)),e.xp6(1),e.Q6J("disabled",7!==(null==A.deliveryCode?null:A.deliveryCode.length)))},directives:[G.sg],encapsulation:2}),T})();var Hg=n(31603);function ab(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"div",8)(1,"div",9)(2,"img",10),e.NdJ("load",function(ee){return e.CHM(o),e.oxw(3).chatDataPassingService.imageLoadSuccess(ee)})("error",function(ee){e.CHM(o);const he=e.oxw().$implicit;return e.oxw(2).chatDataPassingService.imageLoadError(ee,he)}),e.qZA()(),e.TgZ(3,"div",11)(4,"span",12),e._uU(5),e.qZA()()()}if(2&T){const o=e.oxw().$implicit;e.xp6(2),e.Q6J("src","error",e.LSH),e.xp6(3),e.hij(" ",o.contactName||o.name||(o.firstName||"")+" "+(o.lastName||"")," ")}}function lb(T,S){if(1&T&&(e.TgZ(0,"li",6),e.YNc(1,ab,6,2,"div",7),e.qZA()),2&T){const o=S.$implicit,A=e.oxw(2);e.xp6(1),e.Q6J("ngIf",o&&o.id!==A.participant)}}function Vg(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"div",3),e.NdJ("scrolled",function(){return e.CHM(o),e.oxw().getSeenList()}),e.TgZ(1,"ul",4),e.YNc(2,lb,2,1,"li",5),e.qZA()()}if(2&T){const o=e.oxw();e.Q6J("infiniteScrollDisabled",o.scrollDisabled)("infiniteScrollDistance",o.infiniteScrollConfig.infiniteScrollDistance)("infiniteScrollThrottle",o.infiniteScrollConfig.infiniteScrollThrottle)("infiniteScrollContainer","#seenList"),e.xp6(2),e.Q6J("ngForOf",o.seenList)}}function kh(T,S){1&T&&(e.TgZ(0,"div",13),e._UZ(1,"img",14),e.TgZ(2,"span",15),e._uU(3,"\u06a9\u0633\u06cc \u0627\u06cc\u0646 \u067e\u06cc\u0627\u0645 \u0631\u0627 \u0646\u062e\u0648\u0627\u0646\u062f\u0647"),e.qZA()())}let M_=(()=>{class T{constructor(o){this.chatDataPassingService=o,this.scrollDisabled=!1,this.infiniteScrollConfig={infiniteScrollDistance:na.z.pagingScrollDistance,infiniteScrollThrottle:na.z.pagingScrollThrottle,infiniteScrollContainer:document.querySelector(".thread-details-body")}}ngOnInit(){this.seenList=vr.j.data.value.result,this.participant=vr.j.data.value.participantId}getSeenList(){}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(Il.FM))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-message-info-seen-list"]],decls:3,vars:2,consts:[[1,"message-info-seen-list"],["infiniteScroll","",3,"infiniteScrollDisabled","infiniteScrollDistance","infiniteScrollThrottle","infiniteScrollContainer","scrolled",4,"ngIf"],["class","empty-result",4,"ngIf"],["infiniteScroll","",3,"infiniteScrollDisabled","infiniteScrollDistance","infiniteScrollThrottle","infiniteScrollContainer","scrolled"],["id","seenList",1,"list"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],["class","list-content",4,"ngIf"],[1,"list-content"],[1,"avatar"],["data-retry","4","alt","",3,"src","load","error"],[1,"user-name"],[1,"list-txt"],[1,"empty-result"],["src","assets/images/chat/empty.svg","alt",""],[1,"gray-light"]],template:function(o,A){1&o&&(e.TgZ(0,"div",0),e.YNc(1,Vg,3,5,"div",1),e.YNc(2,kh,4,0,"div",2),e.qZA()),2&o&&(e.xp6(1),e.Q6J("ngIf",A.seenList.length&&A.seenList.length>1),e.xp6(1),e.Q6J("ngIf",A.seenList.length<=1))},directives:[G.O5,Hg.R,G.sg],encapsulation:2}),T})();const w_=["searchTerm"];function ub(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"li",9),e.NdJ("click",function(){const he=e.CHM(o).$implicit;return e.oxw().forwardMessage(he)}),e.TgZ(1,"div",10)(2,"div",11)(3,"img",12),e.NdJ("load",function(ee){return e.CHM(o),e.oxw().chatDataPassingService.imageLoadSuccess(ee)})("error",function(ee){const Ye=e.CHM(o).$implicit;return e.oxw().chatDataPassingService.imageLoadError(ee,Ye)}),e.qZA()(),e.TgZ(4,"div",13)(5,"span",14),e._uU(6),e.qZA()()()()}if(2&T){const o=S.$implicit;e.xp6(3),e.Q6J("src","error",e.LSH),e.xp6(3),e.hij(" ",o.title," ")}}function R6(T,S){1&T&&e._UZ(0,"app-spinner",15)}function cb(T,S){1&T&&(e.TgZ(0,"div",16),e._UZ(1,"img",17),e.TgZ(2,"span"),e._uU(3,"\u0646\u062a\u06cc\u062c\u0647\u200c\u0627\u06cc \u06cc\u0627\u0641\u062a \u0646\u0634\u062f"),e.qZA()())}let fb=(()=>{class T{constructor(o,A){this.chatDataPassingService=o,this.podChatService=A,this.threadsList=[],this.isLoading=!1,this.isSearching=!1,this.currentOffset=0,this.infiniteScrollConfig={infiniteScrollDistance:na.z.pagingScrollDistance,infiniteScrollThrottle:na.z.pagingScrollThrottle,infiniteScrollContainer:document.querySelector(".thread-details-body")}}ngOnInit(){this.getThreadsList(),this.data=vr.j.data.value.data,vr.j.data.value.type&&(this.type=vr.j.data.value.type),vr.j.data.value.messageId&&(this.messageId=vr.j.data.value.messageId)}getThreadsList(){this.podChatService.instance||this.podChatService.createSocket(),!this.isLoading&&(this.isLoading=!0,this.podChatService.instance.getThreads({offset:this.currentOffset,count:20,threadName:this.searchTerm?.nativeElement?.value},o=>{if(typeof o<"u"&&!o.hasError){this.currentOffset+=o.result.threads.length;for(const A of o.result.threads)(!A.group||8!==A.type||A.canEditInfo)&&this.threadsList.push(A)}this.isLoading=!1},()=>{this.isLoading=!1}))}forwardMessage(o){if(this.messageId)this.podChatService.instance.forwardMessage({threadId:o.id,messageIds:[this.messageId]},{onSent:()=>{(0,vr.Mr)(),setTimeout(()=>{this.chatDataPassingService.navigateToThread(o.id)},500)}});else if(this.chatDataPassingService.forwardReceiptDataForDesktop)(0,vr.Mr)(),this.chatDataPassingService.navigateToThread(o.id),setTimeout(()=>{this.chatDataPassingService.drafts[o.id]&&(this.chatDataPassingService.drafts[o.id]=""),this.chatDataPassingService.messageInputText=this.data.textShare?this.data.textShare:this.data.text},500);else{this.chatDataPassingService.messageInputText=this.data.text,this.chatDataPassingService.sendChatParamsReceiptDataAndroidSize={threadId:o.id,messageType:"POD_SPACE_PICTURE",file:this.data.files[0],content:this.type?this.data.text:null,metadata:{fileType:"image"},userGroupHash:o.userGroupHash,systemMetadata:{}},this.chatDataPassingService.flags.input.data.mediaModal.showPreview=!0,this.chatDataPassingService.flags.input.data.mediaModal.isSendingImage=!0;const A=this.data.files[0],ee=new FileReader;ee.onload=()=>this.chatDataPassingService.flags.input.data.mediaModal.fileSrc=ee.result,ee.readAsDataURL(A),(0,vr.Mr)(),setTimeout(()=>{this.chatDataPassingService.navigateToThread(o.id),this.chatDataPassingService.drafts[o.id]&&(this.chatDataPassingService.drafts[o.id]="")},500)}}searchMembers(o){if("Escape"===o.code){if(!this.searchTerm.nativeElement.value)return;this.searchTerm.nativeElement.value=""}this.isSearching=!0,this.threadsList=[],this.currentOffset=0,clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.getThreadsList(),this.isSearching=!1},1500)}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(Il.FM),e.Y36(Df.N))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-forward-message-list"]],viewQuery:function(o,A){if(1&o&&e.Gf(w_,5),2&o){let ee;e.iGM(ee=e.CRH())&&(A.searchTerm=ee.first)}},decls:9,vars:8,consts:[[1,"forward-message-list"],[1,"searchbox"],["placeholder","\u062c\u0633\u062a\u062c\u0648","type","text",3,"keyup"],["searchTerm",""],["infiniteScroll","",1,"infinite-scroll",3,"infiniteScrollDistance","infiniteScrollThrottle","infiniteScrollContainer","scrolled"],["id","threadsList",1,"list"],["class","list-item",3,"click",4,"ngFor","ngForOf"],["color","dark-gray",4,"ngIf"],["class","empty-result",4,"ngIf"],[1,"list-item",3,"click"],[1,"list-content"],[1,"avatar"],["data-retry","4","alt","",3,"src","load","error"],[1,"user-name"],[1,"list-txt"],["color","dark-gray"],[1,"empty-result"],["src","assets/images/chat/empty.svg","alt",""]],template:function(o,A){1&o&&(e.TgZ(0,"div",0)(1,"section",1)(2,"input",2,3),e.NdJ("keyup",function(he){return A.searchMembers(he)}),e.qZA()(),e.TgZ(4,"div",4),e.NdJ("scrolled",function(){return A.getThreadsList()}),e.TgZ(5,"ul",5),e.YNc(6,ub,7,2,"li",6),e.YNc(7,R6,1,0,"app-spinner",7),e.qZA()(),e.YNc(8,cb,4,0,"div",8),e.qZA()),2&o&&(e.xp6(4),e.ekj("display-none",!A.threadsList.length&&!A.isLoading&&!A.isSearching),e.Q6J("infiniteScrollDistance",A.infiniteScrollConfig.infiniteScrollDistance)("infiniteScrollThrottle",A.infiniteScrollConfig.infiniteScrollThrottle)("infiniteScrollContainer","#threadsList"),e.xp6(2),e.Q6J("ngForOf",A.threadsList),e.xp6(1),e.Q6J("ngIf",A.isLoading||A.isSearching),e.xp6(1),e.Q6J("ngIf",!A.threadsList.length&&!A.isLoading&&!A.isSearching))},directives:[Hg.R,G.sg,G.O5,kf.O],encapsulation:2}),T})();var hb=n(90970),x_=n(94526);function pb(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"li",11),e.NdJ("click",function(){const he=e.CHM(o).$implicit;return e.oxw(2).selectContact(he)}),e.TgZ(1,"div",12)(2,"div",13),e._UZ(3,"img",14),e.qZA(),e.TgZ(4,"div",15)(5,"span",16),e._uU(6),e.qZA()()()()}if(2&T){const o=S.$implicit;e.ekj("selected",o.selected),e.xp6(3),e.Q6J("src",null==o.linkedUser?null:o.linkedUser.image,e.LSH),e.xp6(3),e.AsE(" ",o.firstName," ",o.lastName," ")}}function gb(T,S){1&T&&(e.TgZ(0,"div",17),e._UZ(1,"img",18),e.TgZ(2,"span"),e._uU(3,"\u0646\u062a\u06cc\u062c\u0647\u200c\u0627\u06cc \u06cc\u0627\u0641\u062a \u0646\u0634\u062f"),e.qZA()())}function L6(T,S){if(1&T&&(e.ynx(0),e.YNc(1,pb,7,5,"li",9),e.YNc(2,gb,4,0,"div",10),e.BQk()),2&T){const o=S.ngIf,A=e.oxw();e.xp6(1),e.Q6J("ngForOf",o),e.xp6(1),e.Q6J("ngIf",!o.length&&!A.isLoading)}}function Yg(T,S){1&T&&e._UZ(0,"app-spinner",19)}function I_(T,S){if(1&T&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&T){const o=e.oxw();e.xp6(1),e.hij(" (",o.selectedContactsList.length," \u0639\u0636\u0648)")}}let mb=(()=>{class T{constructor(o,A,ee){this.chatDataPassingService=o,this.contactsListService=A,this.podChatService=ee,this.contactsList=[],this.selectedContactsList=[],this.isLoading=!1}ngOnInit(){this.getContactsList(),this.data=vr.j.data.value}getContactsList(){this.podChatService.instance||this.podChatService.createSocket(),!this.isLoading&&(this.isLoading=!0,this.contactsListService.getValueFromResource("pod").then(o=>{this.contactsList=o,this.isLoading=!1},()=>{this.isLoading=!1}))}selectContact(o){o.selected?this.selectedContactsList.splice(this.selectedContactsList.findIndex(A=>A.id===o.id),1):this.selectedContactsList.push(o),o.selected=!o.selected}addUsers(){this.podChatService.instance.addParticipants({threadId:this.chatDataPassingService.activeThread.value.id,contactIds:this.selectedContactsList.map(o=>o.id)},o=>{o.hasError||((0,vr.Mr)(),this.chatDataPassingService.flags.activeThread.data.showDetails=!1,this.selectedContactsList=[])})}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(Il.FM),e.Y36(hb.d),e.Y36(Df.N))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-add-user-modal"]],decls:12,vars:7,consts:[[1,"forward-message-list"],[1,"searchbox"],["placeholder","\u062c\u0633\u062a\u062c\u0648","type","text"],["searchTerm",""],[1,"list"],[4,"ngIf"],["color","dark-gray",4,"ngIf"],[1,"btn-container"],[1,"btn","w-100","btn-success",3,"disabled","click"],["class","list-item",3,"selected","click",4,"ngFor","ngForOf"],["class","empty-result",4,"ngIf"],[1,"list-item",3,"click"],[1,"list-content"],[1,"avatar"],["alt","",3,"src"],[1,"user-name"],[1,"list-txt"],[1,"empty-result"],["src","assets/images/chat/empty.svg","alt",""],["color","dark-gray"]],template:function(o,A){if(1&o&&(e.TgZ(0,"div",0)(1,"section",1),e._UZ(2,"input",2,3),e.qZA(),e.TgZ(4,"ul",4),e.YNc(5,L6,3,2,"ng-container",5),e.ALo(6,"filterContactsList"),e.YNc(7,Yg,1,0,"app-spinner",6),e.qZA(),e.TgZ(8,"div",7)(9,"button",8),e.NdJ("click",function(){return A.addUsers()}),e._uU(10," \u0627\u0641\u0632\u0648\u062f\u0646"),e.YNc(11,I_,2,1,"span",5),e.qZA()()()),2&o){const ee=e.MAs(3);e.xp6(5),e.Q6J("ngIf",e.xi3(6,4,A.contactsList,ee.value)),e.xp6(2),e.Q6J("ngIf",A.isLoading),e.xp6(2),e.Q6J("disabled",!A.selectedContactsList.length),e.xp6(2),e.Q6J("ngIf",A.selectedContactsList.length)}},directives:[G.O5,G.sg,kf.O],pipes:[x_.C],encapsulation:2}),T})();const vb=["tabs"];function A_(T,S){if(1&T&&(e.TgZ(0,"button",15)(1,"span"),e._uU(2),e.qZA()()),2&T){const o=e.oxw(),A=o.index,ee=o.$implicit,he=e.oxw();e.uIk("data-content","c"+(A+1)),e.xp6(2),e.AsE("",ee," ( ",he.reactionCount[A+1]," )")}}function jg(T,S){if(1&T&&(e.ynx(0),e.YNc(1,A_,3,3,"button",14),e.BQk()),2&T){const o=S.index,A=e.oxw();e.xp6(1),e.Q6J("ngIf",A.reactionCount[o+1])}}const k0=function(T){return{row:T}};function D_(T,S){if(1&T&&(e.TgZ(0,"li",16),e.GkF(1,17),e.qZA()),2&T){const o=S.$implicit;e.oxw();const A=e.MAs(17);e.xp6(1),e.Q6J("ngTemplateOutlet",A)("ngTemplateOutletContext",e.VKq(2,k0,o))}}function _b(T,S){if(1&T&&(e.TgZ(0,"li",16),e.GkF(1,17),e.qZA()),2&T){const o=S.$implicit;e.oxw(3);const A=e.MAs(17);e.xp6(1),e.Q6J("ngTemplateOutlet",A)("ngTemplateOutletContext",e.VKq(2,k0,o))}}function P_(T,S){if(1&T&&(e.TgZ(0,"div",19)(1,"ul",9),e.YNc(2,_b,2,4,"li",10),e.qZA()()),2&T){const o=e.oxw().index,A=e.oxw();e.MGl("id","c",o+1,""),e.xp6(2),e.Q6J("ngForOf",A.reactionData[o+1])}}function O_(T,S){if(1&T&&(e.ynx(0),e.YNc(1,P_,3,2,"div",18),e.BQk()),2&T){const o=S.index,A=e.oxw();e.xp6(1),e.Q6J("ngIf",A.reactionCount[o+1])}}function yb(T,S){1&T&&e._UZ(0,"app-spinner",20)}function Cb(T,S){1&T&&(e.TgZ(0,"div",21),e._UZ(1,"img",22),e.TgZ(2,"span",23),e._uU(3,"\u0628\u0627\u0632\u062e\u0648\u0631\u062f\u06cc \u0631\u0648\u06cc \u0627\u06cc\u0646 \u067e\u06cc\u0627\u0645 \u062b\u0628\u062a \u0646\u0634\u062f\u0647"),e.qZA()())}function k6(T,S){if(1&T&&e._UZ(0,"img",30),2&T){const o=e.oxw().row;e.Q6J("src",o.participantVO.image,e.LSH)}}function N6(T,S){if(1&T&&(e.TgZ(0,"div",24)(1,"div",25),e.YNc(2,k6,1,1,"img",26),e.qZA(),e.TgZ(3,"div",27)(4,"span",28),e._uU(5),e.qZA()(),e.TgZ(6,"div",29),e._uU(7),e.qZA()()),2&T){const o=S.row,A=e.oxw();e.xp6(2),e.Q6J("ngIf",o.participantVO.image),e.xp6(3),e.hij(" ",o.participantVO.name," "),e.xp6(2),e.hij(" ",A.chatDataPassingService.emojis[o.reaction-1]," ")}}let R_=(()=>{class T{constructor(o,A,ee){this.chatDataPassingService=o,this.podChatService=A,this.toastrService=ee,this.isLoading=!1,this.reactionData={all:null},this.currentTab="all",this.reactionCount={all:null},this.count=50}ngOnInit(){this.message=vr.j.data.value;let o=0;this.message.reaction.reactionCountVO.forEach(A=>{o+=A.count,this.reactionCount[A.sticker]=A.count}),this.reactionCount.all=o,this.getReactions()}ngAfterViewInit(){this.tabsEl.nativeElement.querySelectorAll(".tab-menu .tab-menu-link").forEach(o=>{o.addEventListener("click",()=>{o.classList.contains("active")||(this.tabsEl.nativeElement.querySelector(".tab-menu .tab-menu-link.active")?.classList.remove("active"),this.tabsEl.nativeElement.querySelector(".tab-bar .tab-bar-content.active")?.classList.remove("active"),o.classList.add("active"),this.tabsEl.nativeElement.querySelector(".tab-bar #"+o.dataset.content)?.classList.add("active"),this.currentTab=o.dataset.content?.substring(1),this.getReactions(this.currentTab),this.infiniteScrollConfig.infiniteScrollContainer=document.querySelector(".tab-bar-content.active .list"))})}),this.infiniteScrollConfig={infiniteScrollDistance:na.z.pagingScrollDistance,infiniteScrollThrottle:na.z.pagingScrollThrottle,infiniteScrollContainer:document.querySelector(".tab-bar-content.active .list")}}getReactions(o="all",A=!1){if(this.isLoading||this.reactionData[o]?.length&&!A)return;this.isLoading=!0;const ee=this.message.id+""+(new Date).getTime(),he=this.podChatService.instance.on("messageEvents",Ye=>{"REACTIONS_LIST"===Ye.type&&(this.podChatService.instance.off("messageEvents",he),Ye.result?.reactionVOList?.reactionVOList?(this.reactionData[o]||(this.reactionData[o]=[]),this.reactionData[o]=this.reactionData[o].concat(Ye.result?.reactionVOList?.reactionVOList)):this.toastrService.error("\u062e\u0637\u0627\u06cc\u06cc \u0631\u062e \u062f\u0627\u062f. \u0644\u0637\u0641\u0627 \u062f\u0648\u0628\u0627\u0631\u0647 \u062a\u0644\u0627\u0634 \u06a9\u0646\u06cc\u062f."),this.isLoading=!1)});this.podChatService.instance.getReactionList({messageId:this.message.id,threadId:this.message.threadId,offset:this.reactionData[o]?.length||0,count:this.count,uniqueId:ee,sticker:"all"===o?null:Number(o)})}scrolled(){this.getReactions(this.currentTab,!0)}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(Il.FM),e.Y36(Df.N),e.Y36(Zv._W))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-message-reactions-list"]],viewQuery:function(o,A){if(1&o&&e.Gf(vb,5),2&o){let ee;e.iGM(ee=e.CRH())&&(A.tabsEl=ee.first)}},decls:18,vars:11,consts:[[1,"message-info-seen-list","reactions-list"],["infiniteScroll","",1,"thread-details-container",3,"infiniteScrollDistance","infiniteScrollThrottle","infiniteScrollContainer","scrolled"],[1,"tab","media-section"],["tabs",""],[1,"tab-menu"],["data-content","call",1,"tab-menu-link","active"],[4,"ngFor","ngForOf"],[1,"tab-bar"],["id","call",1,"tab-bar-content","active"],[1,"list"],["class","list-item",4,"ngFor","ngForOf"],["class","loading-messages","color","dark-gray",4,"ngIf"],["class","empty-result",4,"ngIf"],["listRow",""],["class","tab-menu-link",4,"ngIf"],[1,"tab-menu-link"],[1,"list-item"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","tab-bar-content",3,"id",4,"ngIf"],[1,"tab-bar-content",3,"id"],["color","dark-gray",1,"loading-messages"],[1,"empty-result"],["src","assets/images/chat/empty.svg","alt",""],[1,"gray-light"],[1,"list-content"],[1,"avatar"],["alt","",3,"src",4,"ngIf"],[1,"user-name"],[1,"list-txt"],[1,"sticker"],["alt","",3,"src"]],template:function(o,A){1&o&&(e.TgZ(0,"div",0)(1,"div",1),e.NdJ("scrolled",function(){return A.scrolled()}),e.TgZ(2,"div",2,3)(4,"div",4)(5,"button",5)(6,"span"),e._uU(7),e.qZA()(),e.YNc(8,jg,2,1,"ng-container",6),e.qZA(),e.TgZ(9,"div",7)(10,"div",8)(11,"ul",9),e.YNc(12,D_,2,4,"li",10),e.qZA()(),e.YNc(13,O_,2,1,"ng-container",6),e.qZA()()(),e.YNc(14,yb,1,0,"app-spinner",11),e.YNc(15,Cb,4,0,"div",12),e.qZA(),e.YNc(16,N6,8,3,"ng-template",null,13,e.W1O)),2&o&&(e.xp6(1),e.Q6J("infiniteScrollDistance",null==A.infiniteScrollConfig?null:A.infiniteScrollConfig.infiniteScrollDistance)("infiniteScrollThrottle",null==A.infiniteScrollConfig?null:A.infiniteScrollConfig.infiniteScrollThrottle)("infiniteScrollContainer",null==A.infiniteScrollConfig?null:A.infiniteScrollConfig.infiniteScrollContainer),e.xp6(6),e.hij("\u0647\u0645\u0647 ( ",A.reactionCount.all," )"),e.xp6(1),e.Q6J("ngForOf",A.chatDataPassingService.emojis),e.xp6(1),e.ekj("display-none",!(null!=A.reactionData[A.currentTab]&&A.reactionData[A.currentTab].length)),e.xp6(3),e.Q6J("ngForOf",A.reactionData.all),e.xp6(1),e.Q6J("ngForOf",A.chatDataPassingService.emojis),e.xp6(1),e.Q6J("ngIf",A.isLoading),e.xp6(1),e.Q6J("ngIf",!(A.isLoading||null!=A.reactionData[A.currentTab]&&A.reactionData[A.currentTab].length)))},directives:[Hg.R,G.sg,G.O5,G.tP,kf.O],encapsulation:2}),T})();var Gg=n(15316);let bb=(()=>{class T{constructor(o,A,ee,he,Ye,bt,er){this.clubService=o,this.formBuilder=A,this.slideModalService=ee,this.customersClubPassingService=he,this.toastrService=Ye,this.tagManager=bt,this.escapeHtmlPipe=er,this.giftCodeForm=this.formBuilder.group({giftCode:["",[Pi.kI.required,Pi.kI.minLength(5),Pi.kI.maxLength(15)]]})}ngOnInit(){}submitGiftCode(){(0,ni.Sq)("DataLayerGoogleAnalytics")&&this.tagManager.pushEvent("club_offcode_request",{}),this.giftCodeForm.value.giftCode=this.escapeHtmlPipe.transform(this.giftCodeForm.value.giftCode.trim()),this.customersClubPassingService.isSuccessfullyGiftCodeResult=!0,this.clubService.addGiftCode(this.giftCodeForm.value).subscribe(o=>{o&&((0,ni.Sq)("DataLayerGoogleAnalytics")&&this.tagManager.pushEvent("club_offcode_ok",{}),vr.j.templates.giftCode=!1,vr.j.fullScreen.next(!1),vr.j.height=250,vr.j.desktopStyle=!1,vr.j.bgWhite=!1,vr.j.hideDesktopHeaderClose=!1,vr.j.modalTitleBgGray=!0,vr.j.modalTitle="",vr.j.disableBackdropClosing=!0,vr.j.templates.giftCodeResultModal=!0,(0,vr.h7)("giftCodeResultModal"),this.customersClubPassingService.giftCodeResult=o.scoreCount)},o=>{o.error||this.toastrService.error("\u062e\u0637\u0627\u06cc\u06cc \u0631\u062e \u062f\u0627\u062f. \u0644\u0637\u0641\u0627 \u062f\u0648\u0628\u0627\u0631\u0647 \u062a\u0644\u0627\u0634 \u06a9\u0646\u06cc\u062f.")})}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(Pg.I),e.Y36(Pi.qu),e.Y36(vr.j),e.Y36(Gg.Y),e.Y36(Go.X),e.Y36(wc.c),e.Y36(rd.M))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-gift-code"]],decls:17,vars:2,consts:[[1,"gift-code-modal-container"],[1,"header-modal"],[1,"gift-icon-wrapper"],["src","/assets/images/customers-club/gift-icon.svg","alt",""],["src","/assets/images/customers-club/gift-left-arrow.svg","alt","",1,"gift-arrow-icon"],["src","assets/images/customers-club/coin.svg","alt","",1,"coin-icon"],[1,"modal-title"],[1,"modal-description"],[1,"gift-code-search-wrapper",3,"formGroup"],["type","text","formControlName","giftCode","maxlength","15","minlength","5"],[1,"btn","btn-success",3,"disabled","click"]],template:function(o,A){1&o&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._UZ(3,"img",3),e.qZA(),e._UZ(4,"img",4)(5,"img",5),e.qZA(),e.TgZ(6,"p",6),e._uU(7,"\u062a\u0628\u062f\u06cc\u0644 \u06a9\u062f \u0647\u062f\u06cc\u0647 \u0628\u0647 \u0633\u06a9\u0647"),e.qZA(),e.TgZ(8,"div")(9,"p",7),e._uU(10,"\u0628\u0631\u0627\u06cc \u062f\u0631\u06cc\u0627\u0641\u062a \u0633\u06a9\u0647\u060c \u06a9\u062f \u0647\u062f\u06cc\u0647 \u062e\u0648\u062f \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f."),e.qZA()(),e.TgZ(11,"div",8)(12,"label"),e._uU(13,"\u06a9\u062f \u0647\u062f\u06cc\u0647"),e.qZA(),e._UZ(14,"input",9),e.qZA(),e.TgZ(15,"button",10),e.NdJ("click",function(){return A.submitGiftCode()}),e._uU(16,"\u062a\u0627\u06cc\u06cc\u062f"),e.qZA()()),2&o&&(e.xp6(11),e.Q6J("formGroup",A.giftCodeForm),e.xp6(4),e.Q6J("disabled",A.giftCodeForm.invalid))},directives:[Pi.JL,Pi.sg,Pi.Fj,Pi.JJ,Pi.u,Pi.nD,Pi.wO],encapsulation:2}),T})(),Sb=(()=>{class T{constructor(o,A,ee,he,Ye){this.slideModalService=o,this.customersClubPassingService=A,this.clubService=ee,this.toastrService=he,this.routingAppService=Ye}ngOnInit(){}closeResultGiftCodeModal(){(0,vr.Mr)(),this.clubService.getScoreAccount().subscribe(o=>{this.customersClubPassingService.score=o.balance>0?o.balance:0},o=>{o.error||this.toastrService.error("\u062e\u0637\u0627\u06cc\u06cc \u0631\u062e \u062f\u0627\u062f. \u0644\u0637\u0641\u0627 \u062f\u0648\u0628\u0627\u0631\u0647 \u062a\u0644\u0627\u0634 \u06a9\u0646\u06cc\u062f.")},()=>{(0,hi.Jj)()?.location.href.split("/").slice(3).join("/").match("club/list")||this.routingAppService.navigate(["club/list"])})}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(vr.j),e.Y36(Gg.Y),e.Y36(Pg.I),e.Y36(Go.X),e.Y36(ua.s))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-gift-code-result-modal"]],decls:10,vars:1,consts:[[1,"gift-code-result-wrapper"],[1,"img-wrapper"],["src","assets/images/customers-club/coin.svg","alt",""],[1,"score-count-result"],[1,"score-count"],[1,"btn","btn-success",3,"click"]],template:function(o,A){1&o&&(e.TgZ(0,"section",0)(1,"div",1),e._UZ(2,"img",2),e.qZA(),e.TgZ(3,"p",3),e._uU(4," \u0645\u0634\u062a\u0631\u06cc \u06af\u0631\u0627\u0645\u06cc \u0634\u0645\u0627 "),e.TgZ(5,"span",4),e._uU(6),e.qZA(),e._uU(7," \u062f\u0631\u06cc\u0627\u0641\u062a \u06a9\u0631\u062f\u06cc\u062f."),e.qZA(),e.TgZ(8,"button",5),e.NdJ("click",function(){return A.closeResultGiftCodeModal()}),e._uU(9,"\u0645\u062a\u0648\u062c\u0647 \u0634\u062f\u0645"),e.qZA()()),2&o&&(e.xp6(6),e.hij(" ",A.customersClubPassingService.giftCodeResult," \u0633\u06a9\u0647 "))},encapsulation:2}),T})(),F6=(()=>{class T{constructor(o,A,ee,he){this.physicalCardDataPassingService=o,this.resourceAppService=A,this.routingAppService=ee,this.getProfileDataService=he}ngOnInit(){this.data=vr.j.data.value,this.resourceAppService.getValueFromResource().then(o=>{this.warningMessage=o.PhysicalCardFlow.WarningMessage})}confirm(){this.getProfileDataService.getValue().then(o=>{(0,vr.Mr)(),this.physicalCardDataPassingService.validationConfirmationData={from:o.firstName+" "+o.lastName,fromImg:o.profileImage,toAutoPhysicalCard:this.data.fromMainComponent,toPhysicalCard:!this.data.fromMainComponent,to:"\u0647\u0632\u06cc\u0646\u0647 \u0635\u062f\u0648\u0631 \u0648 \u0627\u0631\u0633\u0627\u0644 \u06a9\u0627\u0631\u062a \u0628\u0627\u0646\u06a9\u06cc",toImg:this.data.fromMainComponent?"assets/images/physical-card/auto-physical-card-bg.svg":"assets/images/shared/pasargad-background.svg",amounts:[{main:!1,amount:this.physicalCardDataPassingService.totalAmount,label:"\u0645\u0628\u0644\u063a",hideRial:!0,lineThrough:!0},{main:!0,amount:this.physicalCardDataPassingService.payableAmount,label:"\u0645\u0628\u0644\u063a \u067e\u0631\u062f\u0627\u062e\u062a\u06cc",green:!0,hideRial:!0}]},this.physicalCardDataPassingService.totalAmount===this.physicalCardDataPassingService.payableAmount&&(this.physicalCardDataPassingService.validationConfirmationData.amounts=[{main:!0,amount:this.physicalCardDataPassingService.payableAmount,label:"\u0645\u0628\u0644\u063a \u0646\u0647\u0627\u06cc\u06cc",green:!0,hideRial:!0}]),setTimeout(()=>{this.physicalCardDataPassingService.showReceipt=!0,this.routingAppService.navigate(["services/physical-card/physical-card-address-list"])},500)})}edit(){(0,vr.Mr)(),this.data.addressId&&(this.physicalCardDataPassingService.addressId=this.data.addressId),this.routingAppService.navigate(["services/physical-card/physical-card-address"])}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(Gd.z),e.Y36(Yd.K),e.Y36(ua.s),e.Y36(xc.o))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-physical-card-request-modal"]],decls:36,vars:6,consts:[[1,"physical-card-request-modal-wrapper"],[1,"physical-card-request-modal-location"],["src","/assets/images/physical-card/request-modal/address.svg","alt",""],[1,"physical-card-request-modal-provider-info"],[2,"margin-bottom","16px"],["src","/assets/images/physical-card/request-modal/datepicker.svg","alt",""],[1,"content"],[1,"bold"],["alt","proiver-logo",3,"src"],[1,"physical-card-request-modal-notice-info"],["src","assets/images/physical-card/request-modal/info.svg","alt",""],[3,"innerHTML"],[1,"btn-container"],[1,"btn","btn-success",3,"click"],[1,"btn","btn-line-success",3,"click"]],template:function(o,A){1&o&&(e.TgZ(0,"article",0)(1,"div",1)(2,"h5"),e._UZ(3,"img",2),e._uU(4," \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u067e\u0633\u062a\u06cc "),e.qZA(),e.TgZ(5,"p"),e._uU(6),e.qZA(),e.TgZ(7,"p"),e._uU(8),e.qZA()(),e.TgZ(9,"div",3)(10,"section",4)(11,"figure"),e._UZ(12,"img",5),e.qZA(),e.TgZ(13,"div",6)(14,"h6"),e._uU(15,"\u062a\u0627\u0631\u06cc\u062e \u0627\u0631\u0633\u0627\u0644 \u06a9\u0627\u0631\u062a:"),e.qZA(),e.TgZ(16,"p",7),e._uU(17),e.qZA()()(),e.TgZ(18,"section")(19,"figure"),e._UZ(20,"img",8),e.qZA(),e.TgZ(21,"div",6)(22,"h6"),e._uU(23,"\u0634\u06cc\u0648\u0647 \u0627\u0631\u0633\u0627\u0644:"),e.qZA(),e.TgZ(24,"p"),e._uU(25),e.qZA()()()(),e.TgZ(26,"div",9)(27,"h6"),e._UZ(28,"img",10),e._uU(29," \u062a\u0648\u062c\u0647: "),e.qZA(),e._UZ(30,"p",11),e.qZA(),e.TgZ(31,"div",12)(32,"button",13),e.NdJ("click",function(){return A.confirm()}),e._uU(33,"\u062a\u0627\u06cc\u06cc\u062f"),e.qZA(),e.TgZ(34,"button",14),e.NdJ("click",function(){return A.edit()}),e._uU(35,"\u0627\u0635\u0644\u0627\u062d"),e.qZA()()()),2&o&&(e.xp6(6),e.hij(" ",A.physicalCardDataPassingService.dataAddressFromMainComponent.address," "),e.xp6(2),e.hij(" \u06a9\u062f\u067e\u0633\u062a\u06cc: ",A.physicalCardDataPassingService.zipcode," "),e.xp6(9),e.Oqu(A.data.providerText),e.xp6(3),e.Q6J("src",A.data.providerLogo,e.LSH),e.xp6(5),e.Oqu(A.data.providerName),e.xp6(5),e.Q6J("innerHTML",A.warningMessage,e.oJD))},encapsulation:2}),T})();function B6(T,S){1&T&&e._UZ(0,"img",11)}let U6=(()=>{class T{constructor(o,A,ee){this.chatDataPassingService=o,this.podChatService=A,this.escapeHtmlPipe=ee,this.starBotForm=new Il.rU,this.rating=3,this.reasonValue=""}ngOnInit(){this.message=vr.j.data.value}imageLoadSuccess(o){this.chatDataPassingService.imageLoadSuccess(o,this.chatDataPassingService.activeThread.value)}submitStarBot(){this.starBotForm.rate=this.rating,this.starBotForm.reason=this.escapeHtmlPipe.transform(this.reasonValue);const o={threadId:this.chatDataPassingService.activeThread.value.id,textMessage:this.starBotForm.rate+" \u0627\u0645\u062a\u06cc\u0627\u0632 ",messageType:"TEXT",systemMetadata:{commandKey:this.message?.systemMetadata?.response?.nextCommandKey,correlationId:this.chatDataPassingService.activeThread.value?.metadata?.correlationId,request:{message:{messageType:1,jsonStringify:JSON.stringify(this.starBotForm)},thirdPartyMetaData:this.message?.systemMetadata?.response?.thirdPartyMetaData}}};setTimeout(()=>{this.chatDataPassingService.scrollToBottom()},500),this.podChatService.instance.sendTextMessage(o,{onSent:()=>{(0,vr.Mr)()},onDeliver:()=>{(0,vr.Mr)()}},A=>{console.error(A)})}cancelStarBot(){(0,vr.Mr)()}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(Il.FM),e.Y36(Df.N),e.Y36(rd.M))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-bot-view-stars-modal"]],decls:19,vars:11,consts:[[1,"bot-view-star-container"],[1,"avatar-img"],["crossorigin","anonymous","data-retry","4","alt","",1,"avatar-profile-picture",3,"src","load","error"],["class","avatar-loading","src","assets/images/chat/loading-circle.svg","alt","",4,"ngIf"],[1,"star-wrapper"],["alt","",1,"star-img",3,"src","click"],[1,"textarea-wrapper"],["rows","3","placeholder","\u0646\u0638\u0631 \u062e\u0648\u062f \u0631\u0627 \u0628\u06cc\u0627\u0646 \u06a9\u0646\u06cc\u062f (\u0627\u062e\u062a\u06cc\u0627\u0631\u06cc)",1,"form-control",3,"ngModel","ngModelChange"],[1,"modal-footer"],[1,"btn","btn-clear-success",3,"click"],[1,"btn","btn-clear-gray",3,"click"],["src","assets/images/chat/loading-circle.svg","alt","",1,"avatar-loading"]],template:function(o,A){1&o&&(e.TgZ(0,"section",0)(1,"div",1)(2,"img",2),e.NdJ("load",function(he){return A.imageLoadSuccess(he)})("error",function(he){return A.chatDataPassingService.imageLoadError(he,A.chatDataPassingService.activeThread.value)}),e.qZA(),e.YNc(3,B6,1,0,"img",3),e.qZA(),e.TgZ(4,"h5"),e._uU(5),e.qZA(),e.TgZ(6,"div",4)(7,"img",5),e.NdJ("click",function(){return A.rating=1}),e.qZA(),e.TgZ(8,"img",5),e.NdJ("click",function(){return A.rating=2}),e.qZA(),e.TgZ(9,"img",5),e.NdJ("click",function(){return A.rating=3}),e.qZA(),e.TgZ(10,"img",5),e.NdJ("click",function(){return A.rating=4}),e.qZA(),e.TgZ(11,"img",5),e.NdJ("click",function(){return A.rating=5}),e.qZA()(),e.TgZ(12,"div",6)(13,"textarea",7),e.NdJ("ngModelChange",function(he){return A.reasonValue=he}),e.qZA()(),e.TgZ(14,"section",8)(15,"button",9),e.NdJ("click",function(){return A.submitStarBot()}),e._uU(16,"\u062b\u0628\u062a"),e.qZA(),e.TgZ(17,"button",10),e.NdJ("click",function(){return A.cancelStarBot()}),e._uU(18,"\u0646\u0638\u0631\u06cc \u0646\u062f\u0627\u0631\u0645"),e.qZA()()()),2&o&&(e.xp6(2),e.ekj("avatar-not-showing",!(null!=A.chatDataPassingService.activeThread.value&&A.chatDataPassingService.activeThread.value.avatarLoaded)),e.Q6J("src","error"+(null==A.chatDataPassingService.activeThread.value?null:A.chatDataPassingService.activeThread.value.id),e.LSH),e.xp6(1),e.Q6J("ngIf",!(null!=A.chatDataPassingService.activeThread.value&&A.chatDataPassingService.activeThread.value.avatarLoaded)),e.xp6(2),e.hij(" \u0628\u0647 ",null==A.chatDataPassingService||null==A.chatDataPassingService.activeThread||null==A.chatDataPassingService.activeThread.value?null:A.chatDataPassingService.activeThread.value.title," \u0686\u0647 \u0627\u0645\u062a\u06cc\u0627\u0632\u06cc \u0645\u06cc\u200c\u062f\u0647\u06cc\u062f\u061f "),e.xp6(2),e.Q6J("src",A.rating>0?"assets/images/shared/star.svg":"assets/images/shared/star-outline.svg",e.LSH),e.xp6(1),e.Q6J("src",A.rating>1?"assets/images/shared/star.svg":"assets/images/shared/star-outline.svg",e.LSH),e.xp6(1),e.Q6J("src",A.rating>2?"assets/images/shared/star.svg":"assets/images/shared/star-outline.svg",e.LSH),e.xp6(1),e.Q6J("src",A.rating>3?"assets/images/shared/star.svg":"assets/images/shared/star-outline.svg",e.LSH),e.xp6(1),e.Q6J("src",A.rating>4?"assets/images/shared/star.svg":"assets/images/shared/star-outline.svg",e.LSH),e.xp6(2),e.Q6J("ngModel",A.reasonValue))},directives:[G.O5,Pi.Fj,Pi.JJ,Pi.On],encapsulation:2}),T})();function H6(T,S){if(1&T&&(e.TgZ(0,"h5",8),e._UZ(1,"img",9),e._uU(2),e.ALo(3,"newNumberSeparator"),e.qZA()),2&T){const o=e.oxw();e.xp6(2),e.hij("",e.lcZ(3,1,o.data.result)," \u0633\u06a9\u0647")}}function V6(T,S){if(1&T&&(e.TgZ(0,"h5",8),e._uU(1),e.ALo(2,"newNumberSeparator"),e.ALo(3,"rialToToman"),e.qZA()),2&T){const o=e.oxw();e.xp6(1),e.hij("",e.lcZ(2,1,e.lcZ(3,3,o.data.result))," \u062a\u0648\u0645\u0627\u0646")}}let Tb=(()=>{class T{constructor(o){this.resourceAppService=o,this.description="\u0627\u0645\u062a\u06cc\u0627\u0632 \u0628\u0631 \u0627\u0633\u0627\u0633 \u0628\u0647\u062a\u0631\u06cc\u0646 \u062d\u0627\u0644\u062a \u0627\u0639\u062a\u0628\u0627\u0631\u0633\u0646\u062c\u06cc \u0628\u0631\u0631\u0633\u06cc \u0645\u06cc\u200c\u0634\u0648\u062f. \u0627\u062d\u062a\u0645\u0627\u0644 \u0627\u06cc\u0646\u06a9\u0647 \u0645\u0628\u0644\u063a \u0627\u0639\u062a\u0628\u0627\u0631 \u0628\u0639\u062f \u0627\u0632 \u0627\u0639\u062a\u0628\u0627\u0631\u0633\u0646\u062c\u06cc \u06a9\u0645\u200c\u062a\u0631 \u0628\u0627\u0634\u062f \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f."}ngOnInit(){this.data=vr.j.data.value,this.resourceAppService.getValueFromResource().then(o=>o.Moravede).catch(()=>({MoravedeCalculator:" \u0627\u0645\u062a\u06cc\u0627\u0632 \u0628\u0631 \u0627\u0633\u0627\u0633 \u0628\u0647\u062a\u0631\u06cc\u0646 \u062d\u0627\u0644\u062a \u0627\u0639\u062a\u0628\u0627\u0631\u0633\u0646\u062c\u06cc \u0628\u0631\u0631\u0633\u06cc \u0645\u06cc\u200c\u0634\u0648\u062f. \u0627\u062d\u062a\u0645\u0627\u0644 \u0627\u06cc\u0646\u06a9\u0647 \u0645\u0628\u0644\u063a \u0627\u0639\u062a\u0628\u0627\u0631 \u0628\u0639\u062f \u0627\u0632 \u0627\u0639\u062a\u0628\u0627\u0631\u0633\u0646\u062c\u06cc \u06a9\u0645\u200c\u062a\u0631 \u0628\u0627\u0634\u062f \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f."})).then(o=>{this.description=o.MoravedeCalculator})}close(){(0,vr.Mr)()}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(Yd.K))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-mutual-credit-calculator-result-modal"]],decls:13,vars:3,consts:[[1,"mutual-credit-calculator-result-modal",2,"position","relative"],[1,"mutual-credit-calculator-result-modal-body"],["class","bolder title",4,"ngIf"],[1,"warn-text"],["src","/assets/images/shared/circle-warning.svg","alt",""],[1,"description"],[1,"basic-modal-btns","modal-footer","direction"],[1,"basic-modal-btns-confirm","full-size-button","single-button",3,"click"],[1,"bolder","title"],["src","/assets/images/customers-club/coin.svg","alt",""]],template:function(o,A){1&o&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,H6,4,3,"h5",2),e.YNc(3,V6,4,5,"h5",2),e.TgZ(4,"div",3),e._UZ(5,"img",4),e.TgZ(6,"span"),e._uU(7,"\u062a\u0648\u062c\u0647:"),e.qZA()(),e.TgZ(8,"span",5),e._uU(9),e.qZA()(),e.TgZ(10,"section",6)(11,"button",7),e.NdJ("click",function(){return A.close()}),e._uU(12,"\u0645\u062a\u0648\u062c\u0647 \u0634\u062f\u0645"),e.qZA()()()),2&o&&(e.xp6(2),e.Q6J("ngIf",1===A.data.calcType),e.xp6(1),e.Q6J("ngIf",2===A.data.calcType),e.xp6(6),e.Oqu(A.description))},directives:[G.O5],pipes:[La.an,La.pm],encapsulation:2}),T})();function N0(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"button",4),e.NdJ("click",function(){return e.CHM(o),e.oxw().resendCard(!0)}),e._UZ(1,"img",5),e.TgZ(2,"h6"),e._uU(3,"\u0635\u062f\u0648\u0631 \u06a9\u0627\u0631\u062a \u0628\u0627 \u0634\u0645\u0627\u0631\u0647 \u0633\u0627\u0628\u0642"),e.qZA()()}}function Eb(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"button",4),e.NdJ("click",function(){return e.CHM(o),e.oxw().resendCard(!1)}),e._UZ(1,"img",6),e.TgZ(2,"h6"),e._uU(3,"\u0635\u062f\u0648\u0631 \u06a9\u0627\u0631\u062a \u0628\u0627 \u0634\u0645\u0627\u0631\u0647 \u062c\u062f\u06cc\u062f"),e.qZA()()}}let Mb=(()=>{class T{constructor(o){this.physicalCardDataPassingService=o}ngOnInit(){this.data=vr.j.data.value}resendCard(o){(0,vr.Mr)(),this.physicalCardDataPassingService.resendCardWithBeforeNum=o,this.physicalCardDataPassingService.resendCardWithNewNum=!o,setTimeout(()=>{vr.j.fullScreen.next(!1),vr.j.height=o?380:320,vr.j.desktopStyle=!1,vr.j.bgWhite=!0,vr.j.hideDesktopHeaderClose=!0,vr.j.modalTitle="\u0639\u0644\u062a \u062f\u0631\u062e\u0648\u0627\u0633\u062a",vr.j.modalTitleBgGray=!0,vr.j.disableBackdropClosing=!1,vr.j.data.next({beforeNumber:o}),(0,vr.h7)("causeRequestResendCardModal",o?380:320)},500)}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(Gd.z))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-renewed-card-modal"]],decls:8,vars:2,consts:[[1,"renewed-card-modal-wrapper"],[1,"modal-type-description"],[1,"type-link-list"],["class","card",3,"click",4,"ngIf"],[1,"card",3,"click"],["src","/assets/images/digital-card/before-number.svg","alt","",2,"width","40px"],["src","/assets/images/digital-card/new-number.svg","alt",""]],template:function(o,A){1&o&&(e.TgZ(0,"div",0)(1,"span"),e._uU(2," \u0635\u062f\u0648\u0631 \u0645\u062c\u062f\u062f \u06a9\u0627\u0631\u062a "),e.qZA(),e.TgZ(3,"p",1),e._uU(4," \u0646\u0648\u0639 \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u062e\u0648\u062f \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f. "),e.qZA(),e.TgZ(5,"div",2),e.YNc(6,N0,4,0,"button",3),e.YNc(7,Eb,4,0,"button",3),e.qZA()()),2&o&&(e.xp6(6),e.Q6J("ngIf",A.data.rePrintCardRequestEnabled),e.xp6(1),e.Q6J("ngIf",A.data.secondaryCardRequestEnabled))},directives:[G.O5],encapsulation:2}),T})(),L_=(()=>{class T{constructor(o){this.chatDataPassingService=o,this.title="\u0627\u0634\u062a\u0631\u0627\u06a9 \u06af\u0630\u0627\u0631\u06cc"}ngOnInit(){this.data=vr.j.data.value.dataUse,vr.j.data.value.type&&(this.type=vr.j.data.value.type)}openForwardMessageListModal(){this.chatDataPassingService.forwardReceiptDataForDesktop=!this.data?.imgUrl?.length,(0,vr.Mr)(),setTimeout(()=>{vr.j.data.next(null),vr.j.bgWhite=!0,vr.j.desktopStyle=!0,vr.j.hideDesktopHeaderClose=!1,vr.j.disableBackdropClosing=!1,vr.j.fullScreen.next(!1),vr.j.modalTitle="\u0627\u0646\u062a\u062e\u0627\u0628 \u06af\u0641\u062a\u06af\u0648 \u0628\u0631\u0627\u06cc \u0627\u0631\u0633\u0627\u0644",vr.j.modalTitleBgGray=!0,vr.j.extraClasses="forward-message-list-modal",vr.j.data.next({data:this.data,type:this.type??this.type}),(0,vr.h7)("forwardMessageList")},500)}isShowAndroidShareBtn(){this.type?(0,hi.Jj)().navigator.share({files:[],title:"\u0648\u06cc\u067e\u0627\u062f",text:this.data.text,imgUrl:""}):navigator.share(this.data)}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(Il.FM))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-social-button-share-android-modal"]],inputs:{title:"title"},decls:5,vars:0,consts:[[1,"social-button-modal"],["target","_blank",1,"telegram-btn",3,"click"],["src","/assets/images/card/active-cyber-card/wepod-logo.svg","alt","",1,"logo-wepod"],["target","_blank",1,"other-share-btn",3,"click"],["src","/assets/images/shared/share-receipt-btn.svg","alt","",1,"logo-wepod"]],template:function(o,A){1&o&&(e.TgZ(0,"article",0)(1,"a",1),e.NdJ("click",function(){return A.openForwardMessageListModal()}),e._UZ(2,"img",2),e.qZA(),e.TgZ(3,"a",3),e.NdJ("click",function(){return A.isShowAndroidShareBtn()}),e._UZ(4,"img",4),e.qZA()())},encapsulation:2}),T})();var Wd=n(56976);function k_(T,S){1&T&&e._UZ(0,"img",15)}function Wg(T,S){if(1&T&&(e.ynx(0),e._uU(1),e.BQk()),2&T){const o=e.oxw(2).$implicit;e.xp6(1),e.hij(" ",o.info," ")}}function Zg(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"span",12),e.NdJ("click",function(){e.CHM(o);const ee=e.oxw().$implicit;return ee.showInfo=!ee.showInfo&&!!ee.info}),e._uU(1),e.YNc(2,k_,1,0,"img",13),e.YNc(3,Wg,2,1,"ng-container",14),e.qZA()}if(2&T){const o=e.oxw().$implicit;e.Udp("cursor",o.info?"pointer":""),e.xp6(1),e.hij(" ",o.description," "),e.xp6(1),e.Q6J("ngIf",o.showInfo),e.xp6(1),e.Q6J("ngIf",!o.showInfo&&o.info)}}function wb(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"span",16),e.NdJ("click",function(){return e.CHM(o),e.oxw(2).openCommissionModal()}),e._UZ(1,"img",17),e.qZA()}}function zg(T,S){if(1&T&&(e.TgZ(0,"li",7)(1,"span",8),e._UZ(2,"img",9),e._uU(3),e.qZA(),e.YNc(4,Zg,4,5,"span",10),e.YNc(5,wb,2,0,"ng-template",null,11,e.W1O),e.qZA()),2&T){const o=S.$implicit,A=e.MAs(6),ee=e.oxw();e.xp6(1),e.Q6J("ngClass",o.hasEvent||7!==o.usageCreditType?"gray-light":"bold"),e.xp6(1),e.Q6J("src",ee.wepodMainService.getImageFromPodSpaceByHashId(o.hashIcon),e.LSH),e.xp6(1),e.hij(" ",o.title," "),e.xp6(1),e.Q6J("ngIf",!o.hasEvent&&7!==o.usageCreditType)("ngIfElse",A)}}let Kg=(()=>{class T{constructor(o,A,ee,he){this.wepodMainService=o,this.loanService=A,this.numberSeparator=ee,this.digitalExpenseCreditDataPassingService=he}ngOnInit(){this.data=vr.j.data.value}openCommissionModal(){const o=this.data.plan.contractId,A=this.data.plan.contractPlanId;js.hg.next({loading:!0,cancelable:!1}),(0,vr.Mr)(),setTimeout(()=>{this.loanService.getContractDetailEventInfo(o,g1.PR.CreditCommission,A).subscribe(ee=>{vr.j.fullScreen.next(!1),vr.j.desktopStyle=!0,vr.j.bgWhite=!0,vr.j.hideDesktopHeaderClose=!0,vr.j.disableBackdropClosing=!1,vr.j.data.next({rows:ee.info,title:`\u0627\u0639\u062a\u0628\u0627\u0631 ${this.numberSeparator.transform(this.data.amount/10)} \u062a\u0648\u0645\u0627\u0646\u06cc`,footer:this.digitalExpenseCreditDataPassingService.getContractInfoResponse?.contractFaqLink,buttons:{first:{title:"\u0628\u0633\u062a\u0646",action:()=>{(0,vr.Mr)(),setTimeout(()=>{vr.j.bgWhite=!0,vr.j.desktopStyle=!0,vr.j.hideDesktopHeaderClose=!0,vr.j.fullScreen.next(!1),vr.j.data.next(this.data),(0,vr.h7)("mutualCreditOfferDetailsModal")},500)},class:"btn-line-success"}}}),(0,vr.h7)("expenseCreditCommissionModal")}).add(()=>{js.hg.next({loading:!1,cancelable:!1})})},500)}submit(){this.data.onSubmit()}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(td.g),e.Y36(og.BZ),e.Y36(La.an),e.Y36(Wd.e))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-mutual-credit-offer-details-modal"]],decls:12,vars:6,consts:[[1,"mutual-credit-offer-details-modal",2,"position","relative"],[1,"mutual-credit-offer-details-modal-body"],[1,"title"],[1,"bolder","amount"],[1,"details"],["class","row",4,"ngFor","ngForOf"],[1,"btn","width-100","btn-success","btn-fixed-mob","submit",3,"click"],[1,"row"],[3,"ngClass"],["alt","",3,"src"],["class","bold",3,"cursor","click",4,"ngIf","ngIfElse"],["commissionBtn",""],[1,"bold",3,"click"],["class","info","src","assets/images/shared/info-gray.svg","alt","",4,"ngIf"],[4,"ngIf"],["src","assets/images/shared/info-gray.svg","alt","",1,"info"],[2,"cursor","pointer","height","12px",3,"click"],["src","/assets/images/physical-card/down.svg","alt","",2,"height","100%"]],template:function(o,A){1&o&&(e.TgZ(0,"div",0)(1,"div",1)(2,"h5",2),e._uU(3,"\u062a\u0633\u0647\u06cc\u0644\u0627\u062a \u062f\u0631\u062e\u0648\u0627\u0633\u062a\u06cc"),e.qZA(),e.TgZ(4,"h5",3),e._uU(5),e.ALo(6,"newNumberSeparator"),e.ALo(7,"rialToToman"),e.qZA(),e.TgZ(8,"ul",4),e.YNc(9,zg,7,5,"li",5),e.qZA(),e.TgZ(10,"button",6),e.NdJ("click",function(){return A.submit()}),e._uU(11,"\u062f\u0631\u062e\u0648\u0627\u0633\u062a \u0627\u0639\u062a\u0628\u0627\u0631"),e.qZA()()()),2&o&&(e.xp6(5),e.hij("",e.lcZ(6,2,e.lcZ(7,4,A.data.amount))," \u062a\u0648\u0645\u0627\u0646"),e.xp6(4),e.Q6J("ngForOf",A.data.plan.detail))},directives:[G.sg,G.mk,G.O5],pipes:[La.an,La.pm],encapsulation:2}),T})(),F0=(()=>{class T{constructor(){}ngOnInit(){this.modalTitle=vr.j.data.value.kbSubject,this.modalDescription=vr.j.data.value.kbText}handleCloseModal(){(0,vr.Mr)()}}return T.\u0275fac=function(o){return new(o||T)},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-subject-detail-modal"]],decls:9,vars:2,consts:[[1,"subject-detail-modal-container"],[1,"title-modal-wrapper"],["src","assets/images/support/question_mark.svg","alt","\u0631\u0627\u0647\u0646\u0645\u0627\u06cc \u062e\u062f\u0645\u0627\u062a",1,"icon-guide"],[1,"title"],[1,"subject-detail-description",3,"innerHTML"],[1,"btn-wrapper"],[1,"btn","btn-line-success",3,"click"]],template:function(o,A){1&o&&(e.TgZ(0,"section",0)(1,"div",1),e._UZ(2,"img",2),e.TgZ(3,"span",3),e._uU(4),e.qZA()(),e._UZ(5,"div",4),e.TgZ(6,"div",5)(7,"button",6),e.NdJ("click",function(){return A.handleCloseModal()}),e._uU(8,"\u0628\u0633\u062a\u0646"),e.qZA()()()),2&o&&(e.xp6(4),e.hij("\u0631\u0627\u0647\u0646\u0645\u0627\u06cc ",A.modalTitle,""),e.xp6(1),e.Q6J("innerHTML",A.modalDescription,e.oJD))},encapsulation:2}),T})();var xb=n(64520);function Y6(T,S){if(1&T&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&T){const o=e.oxw();e.xp6(1),e.hij(" ",null==o.overallStatusData?null:o.overallStatusData.newCount," \u062f\u0631\u062e\u0648\u0627\u0633\u062a")}}function j6(T,S){if(1&T&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&T){const o=e.oxw();e.xp6(1),e.hij(" ",null==o.overallStatusData?null:o.overallStatusData.inprogressCount," \u062f\u0631\u062e\u0648\u0627\u0633\u062a")}}function G6(T,S){if(1&T&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&T){const o=e.oxw();e.xp6(1),e.hij(" ",null==o.overallStatusData?null:o.overallStatusData.closedCount," \u062f\u0631\u062e\u0648\u0627\u0633\u062a")}}let N_=(()=>{class T{constructor(o,A,ee){this.serviceStoreDataPassingService=o,this.routingAppService=A,this.supportDataPassingService=ee}ngOnInit(){this.serviceData=vr.j.data.value.service,this.overallStatusData=vr.j.data.value.overallStatusRes}goToTicketPage(o,A){if(0!==o){(0,vr.Mr)(),this.supportDataPassingService.ticketState=A;const ee=new URLSearchParams;ee.set("ticketState",A.toString()),this.serviceStoreDataPassingService.clickedThirdParty(`${this.serviceData.route}?`+ee.toString())}}createTicket(){(0,vr.Mr)(),this.routingAppService.navigate(["support/ticket-create"])}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(hg.p),e.Y36(ua.s),e.Y36(xb.N))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-ticket-modal"]],decls:26,vars:12,consts:[[1,"ticket-modal-container"],[1,"create-ticket-wrapper","box-wrapper",3,"click"],[1,"plus-icon"],["src","/assets/images/support/icon-add.svg","alt",""],[1,"title"],[1,"divided"],[1,"box-wrapper","ticket-box","isRegistered-ticket",3,"title","click"],[1,"request-count"],[4,"ngIf"],["alt","","src","assets/images/list/arrow-left.svg"],[1,"box-wrapper","ticket-box","inProgress-ticket",3,"title","click"],[1,"box-wrapper","ticket-box","closed-ticket",3,"title","click"]],template:function(o,A){1&o&&(e.TgZ(0,"section",0)(1,"div",1),e.NdJ("click",function(){return A.createTicket()}),e.TgZ(2,"div",2),e._UZ(3,"img",3),e.qZA(),e.TgZ(4,"h3",4),e._uU(5,"\u062b\u0628\u062a \u0645\u0634\u06a9\u0644 \u062c\u062f\u06cc\u062f"),e.qZA()(),e.TgZ(6,"span",5),e._uU(7,"\u06cc\u0627"),e.qZA(),e.TgZ(8,"div",6),e.NdJ("click",function(){return A.goToTicketPage(null==A.overallStatusData?null:A.overallStatusData.newCount,1)}),e.TgZ(9,"h3",4),e._uU(10,"\u062b\u0628\u062a \u0634\u062f\u0647"),e.qZA(),e.TgZ(11,"div",7),e.YNc(12,Y6,2,1,"p",8),e._UZ(13,"img",9),e.qZA()(),e.TgZ(14,"div",10),e.NdJ("click",function(){return A.goToTicketPage(null==A.overallStatusData?null:A.overallStatusData.inprogressCount,3)}),e.TgZ(15,"h3",4),e._uU(16,"\u062f\u0631 \u062d\u0627\u0644 \u0628\u0631\u0631\u0633\u06cc"),e.qZA(),e.TgZ(17,"div",7),e.YNc(18,j6,2,1,"p",8),e._UZ(19,"img",9),e.qZA()(),e.TgZ(20,"div",11),e.NdJ("click",function(){return A.goToTicketPage(null==A.overallStatusData?null:A.overallStatusData.closedCount,2)}),e.TgZ(21,"h3",4),e._uU(22,"\u0628\u0633\u062a\u0647 \u0634\u062f\u0647"),e.qZA(),e.TgZ(23,"div",7),e.YNc(24,G6,2,1,"p",8),e._UZ(25,"img",9),e.qZA()()()),2&o&&(e.xp6(8),e.ekj("disabled",0===(null==A.overallStatusData?null:A.overallStatusData.newCount)),e.Q6J("title",0===(null==A.overallStatusData?null:A.overallStatusData.newCount)?"\u0634\u0645\u0627 \u062f\u0631\u062e\u0648\u0627\u0633\u062a\u06cc \u0646\u062f\u0627\u0631\u06cc\u062f":""),e.xp6(4),e.Q6J("ngIf",0!==(null==A.overallStatusData?null:A.overallStatusData.newCount)),e.xp6(2),e.ekj("disabled",0===(null==A.overallStatusData?null:A.overallStatusData.inprogressCount)),e.Q6J("title",0===(null==A.overallStatusData?null:A.overallStatusData.inprogressCount)?"\u0634\u0645\u0627 \u062f\u0631\u062e\u0648\u0627\u0633\u062a\u06cc \u0646\u062f\u0627\u0631\u06cc\u062f":""),e.xp6(4),e.Q6J("ngIf",0!==(null==A.overallStatusData?null:A.overallStatusData.inprogressCount)),e.xp6(2),e.ekj("disabled",0===(null==A.overallStatusData?null:A.overallStatusData.closedCount)),e.Q6J("title",0===(null==A.overallStatusData?null:A.overallStatusData.closedCount)?"\u0634\u0645\u0627 \u062f\u0631\u062e\u0648\u0627\u0633\u062a\u06cc \u0646\u062f\u0627\u0631\u06cc\u062f":""),e.xp6(4),e.Q6J("ngIf",0!==(null==A.overallStatusData?null:A.overallStatusData.closedCount)))},directives:[G.O5],encapsulation:2}),T})(),Ib=(()=>{class T{constructor(o){this.digitalGiftCardDataPassingService=o}ngOnInit(){this.amount=this.digitalGiftCardDataPassingService.amount}submit(){this.digitalGiftCardDataPassingService.amount=this.amount,(0,vr.Mr)()}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(d1.X))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-digital-card-amount-modal"]],decls:10,vars:15,consts:[[1,"digital-card-amount-modal"],[1,"form-wrapper"],[1,"form-group","form-amount"],["label","\u0644\u0637\u0641\u0627 \u0645\u0628\u0644\u063a \u067e\u0631\u062f\u0627\u062e\u062a\u06cc \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f.",3,"inputId","classInvalid","value","maxValue","minValue","maxValueUniqueAlertMessage","minValueUniqueAlertMessage","showTagWhenEmpty","showTomanTag","showValueInAlphabet","OnInput"],[1,"btn","btn-success","btn-fixed-mob","btn-max-size","width-fix",3,"disabled","click"]],template:function(o,A){1&o&&(e.TgZ(0,"article",0)(1,"form",1)(2,"h5"),e._uU(3,"\u0645\u0628\u0644\u063a \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0631\u0627 \u0648\u0627\u0631\u062f \u0646\u0645\u0627\u06cc\u06cc\u062f"),e.qZA(),e.TgZ(4,"div",2)(5,"app-input-tagged-numbers",3),e.NdJ("OnInput",function(he){return A.amount=he}),e.ALo(6,"numberSeparator"),e.ALo(7,"numberSeparator"),e.qZA()()(),e.TgZ(8,"button",4),e.NdJ("click",function(){return A.submit()}),e._uU(9,"\u062a\u0627\u06cc\u06cc\u062f "),e.qZA()()),2&o&&(e.xp6(5),e.Q6J("inputId","amount")("classInvalid",A.amount<0)("value",A.amount)("maxValue",null==A.digitalGiftCardDataPassingService?null:A.digitalGiftCardDataPassingService.maxValAmount)("minValue",null==A.digitalGiftCardDataPassingService?null:A.digitalGiftCardDataPassingService.minValAmount)("maxValueUniqueAlertMessage","\u062d\u062f\u0627\u06a9\u062b\u0631 \u0645\u0628\u0644\u063a "+e.lcZ(6,11,null==A.digitalGiftCardDataPassingService?null:A.digitalGiftCardDataPassingService.maxValAmount)+" \u062a\u0648\u0645\u0627\u0646")("minValueUniqueAlertMessage","\u062d\u062f\u0627\u0642\u0644 \u0645\u0628\u0644\u063a "+e.lcZ(7,13,null==A.digitalGiftCardDataPassingService?null:A.digitalGiftCardDataPassingService.minValAmount)+" \u062a\u0648\u0645\u0627\u0646")("showTagWhenEmpty",!1)("showTomanTag",!1)("showValueInAlphabet",A.amount>(null==A.digitalGiftCardDataPassingService?null:A.digitalGiftCardDataPassingService.maxValAmount)||A.amount<(null==A.digitalGiftCardDataPassingService?null:A.digitalGiftCardDataPassingService.minValAmount)),e.xp6(3),e.Q6J("disabled",A.amount<(null==A.digitalGiftCardDataPassingService?null:A.digitalGiftCardDataPassingService.minValAmount)||A.amount>(null==A.digitalGiftCardDataPassingService?null:A.digitalGiftCardDataPassingService.maxValAmount)))},directives:[Pi._Y,Pi.JL,Pi.F,Rh.B],pipes:[La.sz],encapsulation:2}),T})();var Ab=n(65575);let Db=(()=>{class T{constructor(o,A){this.digitalGiftCardDataPassingService=o,this.routingAppService=A,this.disabledButton=!0,this.giftTypeCode=Ab._u}ngOnInit(){}closeModal(){(0,vr.Mr)()}autoSubmitWhenFilled(){const o=new If.M,A=String(o.transform(this.cellphoneNumber));this.disabledButton=!(A.startsWith("09")&&A.length>=11)}submitCellphoneNumber(){(0,vr.Mr)(),this.digitalGiftCardDataPassingService.showFilter?(this.digitalGiftCardDataPassingService.mobileNumber=this.cellphoneNumber,this.digitalGiftCardDataPassingService.showContactList=!1):(this.digitalGiftCardDataPassingService.receiverCellphoneNumber=this.cellphoneNumber,this.routingAppService.navigate(["services/digital-gift/preview"]))}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(d1.X),e.Y36(ua.s))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-digital-card-cellphone-contact-modal"]],decls:13,vars:9,consts:[[1,"digital-card-cellphone-contact-modal"],[1,"form-wrapper"],["src","/assets/images/card/digital-card/cellphone.svg","alt",""],[1,"form-group"],["label","",3,"inputId","maxLength","inputType","placeHolder","placeHolderCenterDir","value","input","OnInput"],[1,"btn-container"],[1,"btn","btn-success",3,"click"],[1,"btn","btn-line-success",3,"click"]],template:function(o,A){1&o&&(e.TgZ(0,"article",0)(1,"form",1),e._UZ(2,"img",2),e.TgZ(3,"p"),e._uU(4),e.qZA(),e.TgZ(5,"div",3)(6,"app-input-tagged-text",4),e.NdJ("input",function(){return A.autoSubmitWhenFilled()})("OnInput",function(he){return A.cellphoneNumber=he}),e.qZA()(),e.TgZ(7,"div",5)(8,"button",6),e.NdJ("click",function(){return A.submitCellphoneNumber()}),e.TgZ(9,"span"),e._uU(10,"\u062a\u0627\u06cc\u06cc\u062f"),e.qZA()(),e.TgZ(11,"button",7),e.NdJ("click",function(){return A.closeModal()}),e._uU(12,"\u0628\u0633\u062a\u0646 "),e.qZA()()()()),2&o&&(e.xp6(4),e.AsE(" \u0645\u062e\u0627\u0637\u0628 ",(null==A.digitalGiftCardDataPassingService?null:A.digitalGiftCardDataPassingService.receiverFirstName)+" "+(null==A.digitalGiftCardDataPassingService?null:A.digitalGiftCardDataPassingService.receiverLastName)," \u0628\u062f\u0648\u0646 \u0634\u0645\u0627\u0631\u0647 \u0645\u0648\u0628\u0627\u06cc\u0644 \u0630\u062e\u06cc\u0631\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a. \u062f\u0631 \u0635\u0648\u0631\u062a \u062a\u0645\u0627\u06cc\u0644 \u062c\u0647\u062a ",null!=A.digitalGiftCardDataPassingService&&A.digitalGiftCardDataPassingService.showFilter?"\u062c\u0633\u062a\u062c\u0648":(null==A.digitalGiftCardDataPassingService?null:A.digitalGiftCardDataPassingService.giftTypeCode)===A.giftTypeCode.CyberCard?"\u0633\u0627\u062e\u062a \u06a9\u0627\u0631\u062a \u0647\u062f\u06cc\u0647":"\u0633\u0627\u062e\u062a \u0627\u0639\u062a\u0628\u0627\u0631 \u0647\u062f\u06cc\u0647"," \u0628\u0631\u0627\u0633\u0627\u0633 \u0645\u062e\u0627\u0637\u0628 \u0645\u0646\u062a\u062e\u0628 \u0644\u0627\u0632\u0645 \u0627\u0633\u062a \u0634\u0645\u0627\u0631\u0647 \u0645\u0648\u0628\u0627\u06cc\u0644 \u0622\u0646 \u0631\u0627 \u0648\u0627\u0631\u062f \u0646\u0645\u0627\u06cc\u06cc\u062f. "),e.xp6(2),e.Q6J("inputId","cellPhone")("maxLength",11)("inputType","tel")("placeHolder","\u0634\u0645\u0627\u0631\u0647 \u0645\u0648\u0628\u0627\u06cc\u0644 \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f")("placeHolderCenterDir",!0)("value",A.cellphoneNumber),e.xp6(2),e.uIk("disabled",A.disabledButton?"":null))},directives:[Pi._Y,Pi.JL,Pi.F,Al.d],encapsulation:2}),T})();const Pb=function(T){return{"mt-16":T}};function F_(T,S){if(1&T&&(e.TgZ(0,"div",15),e._UZ(1,"img",16),e.TgZ(2,"p"),e._uU(3,"\u062a\u0639\u062f\u0627\u062f \u0633\u06a9\u0647\u200c\u0647\u0627\u06cc \u0634\u0645\u0627 \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u062e\u0631\u06cc\u062f \u06a9\u0627\u0641\u06cc \u0646\u06cc\u0633\u062a."),e.qZA()()),2&T){const o=e.oxw();e.Q6J("ngClass",e.VKq(1,Pb,o.showWarningMessage))}}let B_=(()=>{class T{constructor(o,A,ee){this.wepodMainService=o,this.clubService=A,this.customersClubPassingService=ee,this.showWarningMessage=!1}ngOnInit(){this.data=vr.j.data.value,this.customersClubPassingService?.score?this.showWarningMessage=this.customersClubPassingService.score<this.data?.scoreValue:this.getScoreAccount()}handleCloseModal(){(0,vr.Mr)()}handleBuyCampaign(o){this.clubService.purchaseDiscountCode(o).subscribe(A=>{this.discountCodeRes=A,this.discountCodeRes.campaignTitle=this.data.campaignTitle,this.discountCodeRes.discountCodeTitle=this.data.title,this.customersClubPassingService.buyDiscountCode=!0,vr.j.templates.buyCampaignModal=!1,vr.j.height=360,vr.j.desktopStyle=!1,vr.j.bgWhite=!1,vr.j.hideDesktopHeaderClose=!1,vr.j.modalTitleBgGray=!0,vr.j.disableBackdropClosing=!1,vr.j.modalTitle="",vr.j.data.next(this.discountCodeRes),(0,vr.h7)("showDiscountCodeModal")},()=>{(0,vr.Mr)()})}getScoreAccount(){this.clubService.getScoreAccount().subscribe(o=>{this.customersClubPassingService.score=o.balance?o.balance:0,this.showWarningMessage=this.customersClubPassingService.score<this.data?.scoreValue})}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(td.g),e.Y36(Pg.I),e.Y36(Gg.Y))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-buy-discount-code-campaign-modal"]],decls:23,vars:6,consts:[[1,"buy-campaign-modal-container"],[1,"buy-campaign-modal-wrapper"],[1,"campaign-detail"],[1,"campaign-detail-title"],[1,"campaign-icon"],["alt","",3,"src"],[1,"campaign-description"],[1,"title"],[1,"flex","ai-center","coin"],["src","assets/images/customers-club/coin.svg","alt",""],[1,"campaign-deadline"],["class","warning",3,"ngClass",4,"ngIf"],[1,"flex","ai-center","button-section"],[1,"btn","btn-success",3,"disabled","click"],[1,"btn","btn-line-success",3,"click"],[1,"warning",3,"ngClass"],["src","assets/images/customers-club/warning-icon.svg","alt","info"]],template:function(o,A){1&o&&(e.TgZ(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),e._UZ(5,"img",5),e.qZA(),e.TgZ(6,"div",6)(7,"p",7),e._uU(8),e.qZA(),e.TgZ(9,"div",8),e._UZ(10,"img",9),e.TgZ(11,"span"),e._uU(12),e.qZA(),e._uU(13," \u200c \u0633\u06a9\u0647 "),e.qZA()()(),e.TgZ(14,"div",10)(15,"p"),e._uU(16),e.qZA()()(),e.YNc(17,F_,4,3,"div",11),e.qZA(),e.TgZ(18,"div",12)(19,"button",13),e.NdJ("click",function(){return A.handleBuyCampaign(null==A.data?null:A.data.id)}),e._uU(20,"\u062e\u0631\u06cc\u062f"),e.qZA(),e.TgZ(21,"button",14),e.NdJ("click",function(){return A.handleCloseModal()}),e._uU(22,"\u0627\u0646\u0635\u0631\u0627\u0641"),e.qZA()()()),2&o&&(e.xp6(5),e.Q6J("src",A.wepodMainService.getImageFromPodSpaceByHashId(null==A.data?null:A.data.hashIcon),e.LSH),e.xp6(3),e.Oqu(null==A.data?null:A.data.title),e.xp6(4),e.Oqu(null==A.data?null:A.data.scoreValue),e.xp6(4),e.Oqu(null==A.data?null:A.data.description),e.xp6(1),e.Q6J("ngIf",A.showWarningMessage),e.xp6(2),e.Q6J("disabled",A.showWarningMessage))},directives:[G.O5,G.mk],encapsulation:2}),T})();function U_(T,S){if(1&T){const o=e.EpF();e.ynx(0),e.TgZ(1,"div",2)(2,"div",3)(3,"p",4),e._uU(4),e.qZA()()(),e.TgZ(5,"a",5),e.NdJ("click",function(){return e.CHM(o),e.oxw().copy()}),e.TgZ(6,"div",6),e._UZ(7,"img",7),e.qZA()(),e.BQk()}if(2&T){const o=e.oxw();e.xp6(4),e.Oqu(o.discount)}}let Ob=(()=>{class T{constructor(o){this.toastrService=o}ngOnInit(){}copy(){(0,hi.Jj)()?.navigator.clipboard?((0,hi.Jj)().navigator.clipboard.writeText(this.discount),this.toastrService.success("\u06a9\u062f \u062a\u062e\u0641\u06cc\u0641 \u06a9\u067e\u06cc \u0634\u062f.")):this.toastrService.error("\u062e\u0637\u0627\u06cc\u06cc \u0631\u062e \u062f\u0627\u062f. \u0644\u0637\u0641\u0627 \u062f\u0648\u0628\u0627\u0631\u0647 \u062a\u0644\u0627\u0634 \u06a9\u0646\u06cc\u062f.")}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(Go.X))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-discount-code"]],inputs:{discount:"discount"},decls:2,vars:1,consts:[[1,"chance-wrap"],[4,"ngIf"],[1,"chance","chance-right"],[1,"chance-right-bg","w-100"],[1,"code"],["href","javascript:void(0)",1,"chance","chance-left",3,"click"],[1,"chance-left-bg"],["src","assets/images/customers-club/copy.svg","alt",""]],template:function(o,A){1&o&&(e.TgZ(0,"div",0),e.YNc(1,U_,8,1,"ng-container",1),e.qZA()),2&o&&(e.xp6(1),e.Q6J("ngIf",A.discount))},directives:[G.O5],encapsulation:2}),T})();function Rb(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"button",9),e.NdJ("click",function(){return e.CHM(o),e.oxw().handleUsageCode()}),e._uU(1,"\u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u06a9\u062f"),e.qZA()}}let H_=(()=>{class T{constructor(o){this.platform=o}ngOnInit(){this.data=vr.j.data.value}handleCloseModal(){(0,vr.Mr)()}handleUsageCode(){this.platform.SAFARI?window.location.href=this.data.usageLink:(0,hi.Jj)()?.open(this.data.usageLink,"_blank"),(0,vr.Mr)()}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(r.t4))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-show-discount-code-modal"]],decls:13,vars:4,consts:[[1,"show-discount-code-modal-container"],[1,"successful-title"],["src","assets/images/customers-club/success-icon.svg","alt","success"],[1,"title"],[1,"discount-code"],[3,"discount"],[1,"flex","ai-center","button-section"],["class","btn btn-success",3,"click",4,"ngIf"],[1,"btn","btn-line-success",3,"click"],[1,"btn","btn-success",3,"click"]],template:function(o,A){1&o&&(e.TgZ(0,"section",0)(1,"div",1),e._UZ(2,"img",2),e.TgZ(3,"p",3),e._uU(4),e.qZA()(),e.TgZ(5,"div",4)(6,"h5"),e._uU(7,"\u06a9\u062f \u062a\u062e\u0641\u06cc\u0641"),e.qZA(),e._UZ(8,"app-discount-code",5),e.qZA(),e.TgZ(9,"div",6),e.YNc(10,Rb,2,0,"button",7),e.TgZ(11,"button",8),e.NdJ("click",function(){return A.handleCloseModal()}),e._uU(12,"\u0628\u0633\u062a\u0646"),e.qZA()()()),2&o&&(e.xp6(4),e.AsE("\u06a9\u062f ",A.data.discountCodeTitle," ",A.data.campaignTitle," \u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062e\u0631\u06cc\u062f\u0627\u0631\u06cc \u0634\u062f"),e.xp6(4),e.Q6J("discount",A.data.discountCode),e.xp6(2),e.Q6J("ngIf",A.data.usageLink))},directives:[Ob,G.O5],encapsulation:2}),T})();var qg=n(57023);let W6=(()=>{class T{constructor(o){this.withdrawRuleDataPassingService=o}ngOnInit(){this.amount=this.withdrawRuleDataPassingService.perTransactionAmount}submit(){this.withdrawRuleDataPassingService.perTransactionAmount=this.amount,(0,vr.Mr)()}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(qg.R))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-withdraw-rule-amount-modal"]],decls:10,vars:15,consts:[[1,"withdrawrule-amount-modal"],[1,"form-wrapper"],[1,"form-group","form-amount"],["label","\u0644\u0637\u0641\u0627 \u0645\u0628\u0644\u063a \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f:",3,"inputId","classInvalid","value","maxValue","minValue","maxValueUniqueAlertMessage","minValueUniqueAlertMessage","showTagWhenEmpty","showTomanTag","showValueInAlphabet","OnInput"],[1,"btn","btn-success","btn-fixed-mob","btn-max-size","width-fix",3,"disabled","click"]],template:function(o,A){1&o&&(e.TgZ(0,"article",0)(1,"form",1)(2,"h5"),e._uU(3,"\u0645\u0628\u0644\u063a \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0631\u0627 \u0648\u0627\u0631\u062f \u0646\u0645\u0627\u06cc\u06cc\u062f"),e.qZA(),e.TgZ(4,"div",2)(5,"app-input-tagged-numbers",3),e.NdJ("OnInput",function(he){return A.amount=he}),e.ALo(6,"numberSeparator"),e.ALo(7,"numberSeparator"),e.qZA()()(),e.TgZ(8,"button",4),e.NdJ("click",function(){return A.submit()}),e._uU(9,"\u062a\u0627\u06cc\u06cc\u062f "),e.qZA()()),2&o&&(e.xp6(5),e.Q6J("inputId","amount")("classInvalid",A.amount<0)("value",A.amount)("maxValue",A.withdrawRuleDataPassingService.withdrawRuleContent.maxAmountPerTransaction)("minValue",A.withdrawRuleDataPassingService.withdrawRuleContent.minAmountPerTransaction)("maxValueUniqueAlertMessage","\u062d\u062f\u0627\u06a9\u062b\u0631 \u0645\u0628\u0644\u063a "+e.lcZ(6,11,A.withdrawRuleDataPassingService.withdrawRuleContent.maxAmountPerTransaction)+" \u062a\u0648\u0645\u0627\u0646")("minValueUniqueAlertMessage","\u062d\u062f\u0627\u0642\u0644 \u0645\u0628\u0644\u063a "+e.lcZ(7,13,A.withdrawRuleDataPassingService.withdrawRuleContent.minAmountPerTransaction)+" \u062a\u0648\u0645\u0627\u0646")("showTagWhenEmpty",!1)("showTomanTag",!1)("showValueInAlphabet",A.amount>A.withdrawRuleDataPassingService.withdrawRuleContent.maxAmountPerTransaction||A.amount<A.withdrawRuleDataPassingService.withdrawRuleContent.minAmountPerTransaction),e.xp6(3),e.Q6J("disabled",A.amount<A.withdrawRuleDataPassingService.withdrawRuleContent.minAmountPerTransaction||A.amount>A.withdrawRuleDataPassingService.withdrawRuleContent.maxAmountPerTransaction))},directives:[Pi._Y,Pi.JL,Pi.F,Rh.B],pipes:[La.sz],encapsulation:2}),T})();function V_(T,S){if(1&T&&(e.TgZ(0,"div",5)(1,"span",6),e._uU(2),e.qZA(),e.TgZ(3,"span",7),e._uU(4),e.qZA()()),2&T){const o=S.$implicit;e.xp6(2),e.Oqu(o.title),e.xp6(2),e.Oqu(o.description)}}let Jg=(()=>{class T{constructor(){}ngOnInit(){this.data=vr.j.data.value}close(){(0,vr.Mr)()}}return T.\u0275fac=function(o){return new(o||T)},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-income-received-score-description-modal"]],decls:6,vars:1,consts:[[1,"income-received-score-description-modal",2,"position","relative"],[1,"income-received-score-description-modal-body"],["class","row",4,"ngFor","ngForOf"],[1,"basic-modal-btns"],[1,"btn","btn-line-success","single-button",3,"click"],[1,"row"],[1,"key","gray-light"],[1,"value","bold"]],template:function(o,A){1&o&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,V_,5,2,"div",2),e.qZA(),e.TgZ(3,"section",3)(4,"button",4),e.NdJ("click",function(){return A.close()}),e._uU(5,"\u0628\u0633\u062a\u0646"),e.qZA()()()),2&o&&(e.xp6(2),e.Q6J("ngForOf",A.data))},directives:[G.sg],encapsulation:2}),T})(),Lb=(()=>{class T{ngOnInit(){this.data=vr.j.data.value}handleCloseModal(){(0,vr.Mr)()}}return T.\u0275fac=function(o){return new(o||T)},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-saving-plan-calculator-modal"]],decls:33,vars:11,consts:[[1,"saving-plan-calculator-modal"],[1,"list-wrapper"],[1,"list"],[1,"list-field"],[1,"title"],[1,"amount-container"],[1,"font-small"],[1,"profit-wrapper"],[1,"profit-container"],[3,"click"]],template:function(o,A){1&o&&(e.TgZ(0,"section",0)(1,"div",1)(2,"ul",2)(3,"div",3)(4,"span",4),e._uU(5,"\u0645\u0628\u0644\u063a \u0633\u067e\u0631\u062f\u0647"),e.qZA(),e.TgZ(6,"div",5)(7,"span"),e._uU(8),e.ALo(9,"numberSeparator"),e.ALo(10,"rialToToman"),e.qZA(),e.TgZ(11,"span",6),e._uU(12,"\u062a\u0648\u0645\u0627\u0646"),e.qZA()()(),e.TgZ(13,"div",3)(14,"span",4),e._uU(15,"\u062f\u0648\u0631\u0647 \u0632\u0645\u0627\u0646\u06cc"),e.qZA(),e.TgZ(16,"div",5)(17,"span"),e._uU(18),e.qZA(),e.TgZ(19,"span",6),e._uU(20,"\u0645\u0627\u0647\u0647"),e.qZA()()()(),e.TgZ(21,"div",7)(22,"p",4),e._uU(23,"\u0645\u06cc\u0632\u0627\u0646 \u0633\u0648\u062f"),e.qZA(),e.TgZ(24,"div",8)(25,"p"),e._uU(26),e.ALo(27,"numberSeparator"),e.ALo(28,"rialToToman"),e.qZA(),e.TgZ(29,"span"),e._uU(30,"\u062a\u0648\u0645\u0627\u0646"),e.qZA()()()(),e.TgZ(31,"button",9),e.NdJ("click",function(){return A.handleCloseModal()}),e._uU(32,"\u0645\u062a\u0648\u062c\u0647 \u0634\u062f\u0645"),e.qZA()()),2&o&&(e.xp6(8),e.Oqu(e.lcZ(9,3,e.lcZ(10,5,null==A.data?null:A.data.selectedUnit))),e.xp6(10),e.Oqu(null==A.data?null:A.data.selectedAmountMonth),e.xp6(8),e.Oqu(e.lcZ(27,7,e.lcZ(28,9,null==A.data?null:A.data.profitAmount))))},pipes:[La.sz,La.pm],encapsulation:2}),T})();var Y_=n(10861),kb=n(97075),Z6=n(58890),Nb=n(21006);function Fb(T,S){1&T&&(e.TgZ(0,"h6",6),e._uU(1,"\u0636\u0628\u0637 \u067e\u06cc\u0627\u0645 \u0635\u0648\u062a\u06cc"),e.qZA())}function z6(T,S){1&T&&(e.TgZ(0,"h6",6),e._uU(1,"\u062f\u0631 \u062d\u0627\u0644 \u0636\u0628\u0637"),e.qZA())}function K6(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"div",10),e.NdJ("click",function(){return e.CHM(o),e.oxw(2).handleRecordVoice()}),e.TgZ(1,"button",11),e._UZ(2,"img",12),e._uU(3," \u0634\u0631\u0648\u0639 \u0636\u0628\u0637 "),e.qZA()()}}const q6=function(T){return{"record-audio":T}};function J6(T,S){if(1&T&&(e.TgZ(0,"div",13)(1,"div",14),e._UZ(2,"ng-lottie",15),e.qZA(),e.TgZ(3,"div",16)(4,"span"),e._uU(5),e.qZA()()()),2&T){const o=e.oxw(2);e.Q6J("ngClass",e.VKq(3,q6,o.voiceRecorderService.isRecording)),e.xp6(2),e.Q6J("options",o.options),e.xp6(3),e.Oqu(o.isPlaying?o.voiceRecorderService.recordedTime:o.voiceTimer)}}function $6(T,S){if(1&T&&(e.TgZ(0,"div",7),e.YNc(1,K6,4,0,"div",8),e.YNc(2,J6,6,5,"div",9),e.qZA()),2&T){const o=e.oxw();e.xp6(1),e.Q6J("ngIf",!o.voiceRecorderService.isRecording&&!o.voiceRecorderService.voiceBlobUrl),e.xp6(1),e.Q6J("ngIf",o.voiceRecorderService.isRecording)}}const Bb=function(T){return{"hide-play-voice-icon":T}},Q6=function(T){return{"hide-pause-voice-icon":T}};function X6(T,S){if(1&T){const o=e.EpF();e.ynx(0),e.TgZ(1,"div",17)(2,"app-voice-recorder",18),e.NdJ("isDeletedVoiceRecord",function(ee){return e.CHM(o),e.oxw().isDeletedVoiceRecord(ee)})("finishVoicePlaying",function(){return e.CHM(o),e.oxw().finishVoice()}),e.TgZ(3,"img",19),e.NdJ("click",function(){return e.CHM(o),e.oxw().playVoiceRecord()}),e.qZA(),e.TgZ(4,"img",20),e.NdJ("click",function(){return e.CHM(o),e.oxw().pauseVoiceRecord()}),e.qZA()()(),e.BQk()}if(2&T){const o=e.oxw();e.xp6(2),e.Q6J("showTrashIcon",!0)("showConfirmDeleteAddNoteRecord",!0),e.xp6(1),e.Q6J("ngClass",e.VKq(4,Bb,o.isPlaying)),e.xp6(1),e.Q6J("ngClass",e.VKq(6,Q6,!o.isPlaying))}}function eS(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"button",24),e.NdJ("click",function(){return e.CHM(o),e.oxw(2).handleStopRecordVoice()}),e._uU(1," \u0627\u062a\u0645\u0627\u0645 \u0648 \u0630\u062e\u06cc\u0631\u0647"),e.qZA()}}function tS(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"button",24),e.NdJ("click",function(){return e.CHM(o),e.oxw(2).handleUploadVoice()}),e._uU(1,"\u0627\u0631\u0633\u0627\u0644"),e.qZA()}}function P(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"div",21),e.YNc(1,eS,2,0,"button",22),e.YNc(2,tS,2,0,"button",22),e.TgZ(3,"button",23),e.NdJ("click",function(){return e.CHM(o),e.oxw().closeModal()}),e._uU(4,"\u0627\u0646\u0635\u0631\u0627\u0641"),e.qZA()()}if(2&T){const o=e.oxw();e.xp6(1),e.Q6J("ngIf",!o.showSendVoiceBtn),e.xp6(1),e.Q6J("ngIf",o.showSendVoiceBtn)}}let L=(()=>{class T{constructor(o,A,ee,he,Ye,bt,er,mr){this.voiceRecorderService=o,this.http=A,this.supportDataPassingService=ee,this.ticketingService=he,this.ticketDataPassingService=Ye,this.activatedRoute=bt,this.toastrService=er,this.serviceStoreAppService=mr,this.voiceTimer="00:00",this.options={path:"/assets/images/support/loading-json.json"},this.showSendVoiceBtn=!1,this.isPlaying=!1,this.voiceRecorderService.getRecordedTime().subscribe(Kr=>{this.voiceTimer=Kr})}ngOnInit(){this.activatedRoute.queryParams.subscribe(o=>{o.id&&(this.ticketDataPassingService.flags.input.data.mediaModal.sendAddNoteModel.ticketId=+o.id)}),this.serviceStoreAppService.getConfig().then(o=>{this.voiceRecorderService.maxRecordTimeForAddNote=o.supportConfig.maxRecordTimeForAddNote}),vr.j.data.value?(this.voiceTimer=vr.j.data.value.recordedTime,this.voiceTimer="00:00"):this.voiceRecorderService.voiceBlobUrl=null}ngOnDestroy(){this.voiceRecorderService.showStopBtn=!1,this.voiceRecorderService.maxRecordTimeForAddNote=null}isDeletedVoiceRecord(o){o&&(this.voiceTimer="00:00",this.ticketDataPassingService.flags.input.data.mediaModal.sendAddNoteModel.voiceHash="",this.voiceRecorderService.voiceBlobUrl=null,this.voiceRecorderService.voiceBlobFile=null)}handleRecordVoice(){this.voiceRecorderService.isRecording||(vr.j.disableBackdropClosing=!0,this.voiceRecorderService.isRecording=!0,navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(o=>{this.voiceRecorderService.startRecording(o)}).catch(o=>{console.error("Error accessing media devices: ",o)})),this.voiceRecorderService.showBtnInRecordModalVoice=!0}handleStopRecordVoice(){this.voiceRecorderService.isRecording&&(this.voiceRecorderService.stopRecording(),this.voiceRecorderService.isRecording=!1),this.showSendVoiceBtn=!0,this.voiceRecorderService.recordedTime="00:00"}closeModal(){setTimeout(()=>{this.voiceTimer="00:00"},500),this.voiceRecorderService.isRecording=!1,this.voiceRecorderService.isPlaying=!1,this.voiceRecorderService.showBtnInRecordModalVoice=!1,this.voiceRecorderService.voiceBlobUrl=null,this.showSendVoiceBtn=!1,this.isPlaying=!1,this.voiceRecorderService.recordedTime="00:00",vr.j.disableBackdropClosing=!1,clearInterval(this.voiceRecorderService.interval)}handleUploadVoice(){if(this.voiceRecorderService.voiceBlobFile){const o=new FormData;o.append("file",this.voiceRecorderService.voiceBlobFile,"voice.aac"),this.http.post(jo.H7.podSpaceFileServer+"/api/files?folderHash=ROOT&isPublic=false&postProcess=true&unimportant=false",o).subscribe(A=>{A&&(this.ticketDataPassingService.flags.input.data.mediaModal.sendAddNoteModel.voiceHash=A.result.hash),this.voiceRecorderService.showBtnInRecordModalVoice=!1},()=>{this.toastrService.error("\u062e\u0637\u0627 \u062f\u0631 \u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc \u067e\u06cc\u0627\u0645 \u0635\u0648\u062a\u06cc . \u0644\u0637\u0641\u0627 \u0645\u062c\u062f\u062f\u0627 \u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc \u06a9\u0646\u06cc\u062f.")},()=>{this.sendAddNote()})}}sendAddNote(){this.ticketDataPassingService.flags.input.data.mediaModal.sendAddNoteModel.description=this.ticketDataPassingService?.messageInputText,this.ticketingService.sendAddNote(this.ticketDataPassingService.flags.input.data.mediaModal.sendAddNoteModel).subscribe(o=>{o&&(this.voiceRecorderService.closeAddNoteVoiceModal=!0,(0,vr.Mr)(),this.ticketDataPassingService.messageInputText="",this.ticketDataPassingService.inputRows=1)},()=>{(0,vr.Mr)()})}playVoiceRecord(){this.isPlaying=!0,this.child.playVoiceRecord("0")}pauseVoiceRecord(){this.isPlaying=!1,this.child.pauseVoiceRecord("0")}finishVoice(){this.isPlaying=!1}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(kb.R),e.Y36(d.eN),e.Y36(xb.N),e.Y36(Z6._),e.Y36(Nb.t),e.Y36(Yo.gz),e.Y36(Go.X),e.Y36(NC.d))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-ticket-voice-recorder-modal"]],viewQuery:function(o,A){if(1&o&&e.Gf(Y_.Y,5),2&o){let ee;e.iGM(ee=e.CRH())&&(A.child=ee.first)}},decls:7,vars:5,consts:[[1,"ticket-voice-modal"],[1,"record-voice-modal-container"],["class","title",4,"ngIf"],["class","record-wrapper",4,"ngIf"],[4,"ngIf"],["class","btn-stop-wrapper",4,"ngIf"],[1,"title"],[1,"record-wrapper"],["class","btn-record-wrapper",3,"click",4,"ngIf"],["class","counter-voice-wrapper",3,"ngClass",4,"ngIf"],[1,"btn-record-wrapper",3,"click"],[1,"btn","btn-record"],["src","/assets/images/support/record-circle.svg","alt",""],[1,"counter-voice-wrapper",3,"ngClass"],[1,"animation-box"],[3,"options"],[1,"counter-voice"],[1,"voice-wrapper"],[3,"showTrashIcon","showConfirmDeleteAddNoteRecord","isDeletedVoiceRecord","finishVoicePlaying"],["src","assets/images/support/icon-play.svg","alt","icon-play",2,"width","32px","cursor","pointer",3,"ngClass","click"],["src","assets/images/support/icon-pause.svg","alt","icon-pause",2,"cursor","pointer",3,"ngClass","click"],[1,"btn-stop-wrapper"],["class","btn btn-stop-record",3,"click",4,"ngIf"],[1,"btn","cancel-record-btn",3,"click"],[1,"btn","btn-stop-record",3,"click"]],template:function(o,A){1&o&&(e.TgZ(0,"section",0)(1,"div",1),e.YNc(2,Fb,2,0,"h6",2),e.YNc(3,z6,2,0,"h6",2),e.YNc(4,$6,3,2,"div",3),e.YNc(5,X6,5,8,"ng-container",4),e.YNc(6,P,5,2,"div",5),e.qZA()()),2&o&&(e.xp6(2),e.Q6J("ngIf",!A.voiceRecorderService.isRecording),e.xp6(1),e.Q6J("ngIf",A.voiceRecorderService.isRecording),e.xp6(1),e.Q6J("ngIf",!A.voiceRecorderService.voiceBlobUrl),e.xp6(1),e.Q6J("ngIf",A.voiceRecorderService.voiceBlobUrl),e.xp6(1),e.Q6J("ngIf",A.voiceRecorderService.showBtnInRecordModalVoice))},directives:[G.O5,G.mk,lg.e$,Y_.Y],encapsulation:2}),T})();function z(T,S){1&T&&(e.TgZ(0,"h6",6),e._uU(1,"\u0636\u0628\u0637 \u067e\u06cc\u0627\u0645 \u0635\u0648\u062a\u06cc"),e.qZA())}function te(T,S){1&T&&(e.TgZ(0,"h6",6),e._uU(1,"\u062f\u0631 \u062d\u0627\u0644 \u0636\u0628\u0637"),e.qZA())}function ue(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"div",7),e.NdJ("click",function(){return e.CHM(o),e.oxw().handleRecordVoice()}),e.TgZ(1,"button",8),e._UZ(2,"img",9),e._uU(3," \u0634\u0631\u0648\u0639 \u0636\u0628\u0637 "),e.qZA()()}}const ve=function(T){return{"record-audio":T}};function je(T,S){if(1&T&&(e.TgZ(0,"div",10)(1,"div",11),e._UZ(2,"ng-lottie",12),e.qZA(),e.TgZ(3,"div",13)(4,"span"),e._uU(5),e.qZA()()()),2&T){const o=e.oxw();e.Q6J("ngClass",e.VKq(3,ve,o.voiceRecorderService.isRecording)),e.xp6(2),e.Q6J("options",o.options),e.xp6(3),e.Oqu(o.voiceRecorderService.recordedTime)}}function dt(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"div",14)(1,"button",15),e.NdJ("click",function(){return e.CHM(o),e.oxw().handleStopRecordVoice()}),e._uU(2," \u0627\u062a\u0645\u0627\u0645 \u0648 \u0630\u062e\u06cc\u0631\u0647"),e.qZA(),e.TgZ(3,"button",16),e.NdJ("click",function(){return e.CHM(o),e.oxw().handleCloseModal()}),e._uU(4,"\u0627\u0646\u0635\u0631\u0627\u0641"),e.qZA()()}}let Rt=(()=>{class T{constructor(o){this.voiceRecorderService=o,this.isRecording=!1,this.options={path:"/assets/images/support/loading-json.json"}}handleRecordVoice(){this.voiceRecorderService.recordedTime="00:00",this.voiceRecorderService.isRecording||(this.voiceRecorderService.isRecording=!0,navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(o=>{this.voiceRecorderService.startRecording(o)}).catch(()=>{}))}handleStopRecordVoice(){this.voiceRecorderService.isRecording&&(this.voiceRecorderService.stopRecording(),this.voiceRecorderService.isRecording=!1),(0,vr.Mr)()}handleCloseModal(){this.voiceRecorderService.isRecording=!1,this.voiceRecorderService.isPlaying=!1,clearInterval(this.voiceRecorderService.interval)}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(kb.R))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-record-voice-modal"]],decls:7,vars:5,consts:[[1,"record-voice-modal-container"],["class","title",4,"ngIf"],[1,"record-wrapper"],["class","btn-record-wrapper",3,"click",4,"ngIf"],["class","counter-voice-wrapper",3,"ngClass",4,"ngIf"],["class","btn-stop-wrapper",4,"ngIf"],[1,"title"],[1,"btn-record-wrapper",3,"click"],[1,"btn","btn-record"],["src","/assets/images/support/record-circle.svg","alt",""],[1,"counter-voice-wrapper",3,"ngClass"],[1,"animation-box"],[3,"options"],[1,"counter-voice"],[1,"btn-stop-wrapper"],[1,"btn","btn-stop-record",3,"click"],[1,"btn","cancel-record-btn",3,"click"]],template:function(o,A){1&o&&(e.TgZ(0,"section",0),e.YNc(1,z,2,0,"h6",1),e.YNc(2,te,2,0,"h6",1),e.TgZ(3,"div",2),e.YNc(4,ue,4,0,"div",3),e.YNc(5,je,6,5,"div",4),e.YNc(6,dt,5,0,"div",5),e.qZA()()),2&o&&(e.xp6(1),e.Q6J("ngIf",!A.voiceRecorderService.isRecording),e.xp6(1),e.Q6J("ngIf",A.voiceRecorderService.isRecording),e.xp6(2),e.Q6J("ngIf",!A.voiceRecorderService.isRecording),e.xp6(1),e.Q6J("ngIf",A.voiceRecorderService.isRecording),e.xp6(1),e.Q6J("ngIf",A.voiceRecorderService.isRecording))},directives:[G.O5,G.mk,lg.e$],encapsulation:2}),T})();function dr(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"div",4),e.NdJ("click",function(){return e.CHM(o),e.oxw().closeModal()}),e.qZA()}2&T&&e.Q6J("@inOutSlideModalBackdrop",void 0)}function Tr(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"a",13),e.NdJ("click",function(){return e.CHM(o),e.oxw(3).slideHandlerCloseModal()})("touchstart",function(){return e.CHM(o),e.oxw(3).touchstart()})("touchmove",function(ee){return e.CHM(o),e.oxw(3).touchmove(ee)})("touchend",function(){return e.CHM(o),e.oxw(3).touchend()}),e._UZ(1,"div",14),e.qZA()}2&T&&e.Q6J("@inOutComponent",void 0)}function Gr(T,S){if(1&T&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&T){const o=e.oxw(3);e.xp6(1),e.Oqu(o.slideModalService.modalTitle)}}function tn(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"a",15),e.NdJ("click",function(){return e.CHM(o),e.oxw(3).closeModal(!0)}),e._UZ(1,"img",16),e.qZA()}2&T&&e.Q6J("@inOutComponent",void 0)}function pn(T,S){if(1&T&&(e.TgZ(0,"div",10),e.YNc(1,Tr,2,1,"a",11),e.YNc(2,Gr,2,1,"span",9),e.YNc(3,tn,2,1,"a",12),e.qZA()),2&T){const o=e.oxw(2);e.ekj("full-screen",o.slideModalService.fullScreen.value)("slide-modal-handler-bg-gray",o.slideModalService.modalTitleBgGray),e.xp6(1),e.Q6J("ngIf",!o.slideModalService.fullScreen.value),e.xp6(1),e.Q6J("ngIf",o.slideModalService.modalTitle&&o.slideModalService.fullScreen.value),e.xp6(1),e.Q6J("ngIf",o.slideModalService.fullScreen.value&&!o.slideModalService.hideFullScreenCloseButton)}}function kn(T,S){1&T&&e._UZ(0,"app-expense-credit-factor-modal")}function $n(T,S){1&T&&e._UZ(0,"app-expense-credit-commission-modal")}function ti(T,S){1&T&&e._UZ(0,"app-contract-validation-otp-modal")}function gi(T,S){1&T&&e._UZ(0,"app-failed-validation-modal")}function Bn(T,S){1&T&&e._UZ(0,"app-balance-warning-modal")}function Ii(T,S){1&T&&e._UZ(0,"app-profile-completion-slide-modal")}function Es(T,S){1&T&&e._UZ(0,"app-register-locked-modal")}function Gs(T,S){1&T&&e._UZ(0,"app-confirmation-settlement-credit-modal")}function Dl(T,S){1&T&&e._UZ(0,"app-physical-card-address-modal")}function Zd(T,S){1&T&&e._UZ(0,"app-slide-modal-basic")}function $g(T,S){1&T&&e._UZ(0,"app-slide-modal-dynamic-buttons")}function Qg(T,S){1&T&&e._UZ(0,"app-socket-controller-modal")}function Xg(T,S){1&T&&e._UZ(0,"app-transaction-report-types-modal")}function em(T,S){1&T&&e._UZ(0,"app-contract-banks-modal")}function tm(T,S){1&T&&e._UZ(0,"app-transfers-verify-otp-modal")}function rm(T,S){1&T&&e._UZ(0,"app-invitation-code-submit-modal")}function nm(T,S){1&T&&e._UZ(0,"app-thread-data-json")}function im(T,S){1&T&&e._UZ(0,"app-pod-card-request-confirmation-modal")}function sm(T,S){1&T&&e._UZ(0,"app-profile-pic-modal")}function fS(T,S){1&T&&e._UZ(0,"app-profile-standalone-login-modal")}function hS(T,S){1&T&&e._UZ(0,"app-introduction-page")}function pS(T,S){1&T&&e._UZ(0,"app-micro-facilities-invoice-modal")}function gS(T,S){1&T&&e._UZ(0,"app-expense-credit-extend-payment-modal")}function mS(T,S){1&T&&e._UZ(0,"app-rating-modal")}function vS(T,S){1&T&&e._UZ(0,"app-cause-request-resend-card-modal")}function _S(T,S){1&T&&e._UZ(0,"app-validation-insert-otp-modal")}function yS(T,S){1&T&&e._UZ(0,"app-wepod-credit-request-modal")}function CS(T,S){1&T&&e._UZ(0,"app-cheque-inquiry-modal")}function bS(T,S){1&T&&e._UZ(0,"app-add-chance-modal")}function SS(T,S){1&T&&e._UZ(0,"app-micro-facilities-score-modal")}function TS(T,S){1&T&&e._UZ(0,"app-social-button-share-modal")}function ES(T,S){1&T&&e._UZ(0,"app-support-modal")}function MS(T,S){1&T&&e._UZ(0,"app-cheque-list-types-modal")}function wS(T,S){1&T&&e._UZ(0,"app-micro-facilities-calculation-modal")}function xS(T,S){1&T&&e._UZ(0,"app-shared-tem-receipt-modal")}function IS(T,S){1&T&&e._UZ(0,"app-micro-facilities-calculation-modal")}function AS(T,S){1&T&&e._UZ(0,"app-settings-password-card-modal")}function DS(T,S){1&T&&e._UZ(0,"app-transfer-type-list-modal")}function PS(T,S){1&T&&e._UZ(0,"app-get-source-card-information")}function OS(T,S){1&T&&e._UZ(0,"app-modal-basic-shared")}function RS(T,S){1&T&&e._UZ(0,"app-get-info-transfer-pol-modal")}function LS(T,S){1&T&&e._UZ(0,"app-order-tracking-modal")}function kS(T,S){1&T&&e._UZ(0,"app-verify-delivery-code")}function NS(T,S){1&T&&e._UZ(0,"app-message-info-seen-list")}function FS(T,S){1&T&&e._UZ(0,"app-forward-message-list")}function BS(T,S){1&T&&e._UZ(0,"app-add-user-modal")}function US(T,S){1&T&&e._UZ(0,"app-message-reactions-list")}function HS(T,S){1&T&&e._UZ(0,"app-gift-code")}function VS(T,S){1&T&&e._UZ(0,"app-gift-code-result-modal")}function YS(T,S){1&T&&e._UZ(0,"app-physical-card-request-modal")}function jS(T,S){1&T&&e._UZ(0,"app-bot-view-stars-modal")}function GS(T,S){1&T&&e._UZ(0,"app-mutual-credit-calculator-result-modal")}function WS(T,S){1&T&&e._UZ(0,"app-renewed-card-modal")}function ZS(T,S){1&T&&e._UZ(0,"app-social-button-share-android-modal")}function zS(T,S){1&T&&e._UZ(0,"app-mutual-credit-offer-details-modal")}function KS(T,S){1&T&&e._UZ(0,"app-subject-detail-modal")}function qS(T,S){1&T&&e._UZ(0,"app-ticket-modal")}function JS(T,S){1&T&&e._UZ(0,"app-digital-card-amount-modal")}function $S(T,S){1&T&&e._UZ(0,"app-digital-card-cellphone-contact-modal")}function QS(T,S){1&T&&e._UZ(0,"app-buy-discount-code-campaign-modal")}function XS(T,S){1&T&&e._UZ(0,"app-show-discount-code-modal")}function eT(T,S){1&T&&e._UZ(0,"app-withdraw-rule-amount-modal")}function tT(T,S){1&T&&e._UZ(0,"app-income-received-score-description-modal")}function rT(T,S){1&T&&e._UZ(0,"app-saving-plan-calculator-modal")}function nT(T,S){1&T&&e._UZ(0,"app-ticket-voice-recorder-modal")}function iT(T,S){1&T&&e._UZ(0,"app-record-voice-modal")}const rS=function(T){return{top:T}},sT=function(T,S,o){return{top:T,"border-top-left-radius":S,"border-top-right-radius":o,"border-bottom-left-radius":0,"border-bottom-right-radius":0}},aT=function(T,S){return{"max-height":T,"overflow-y":S}};function oT(T,S){if(1&T&&(e.TgZ(0,"div",5,6),e.YNc(2,pn,4,7,"div",7),e.TgZ(3,"div",8),e.YNc(4,kn,1,0,"app-expense-credit-factor-modal",9),e.YNc(5,$n,1,0,"app-expense-credit-commission-modal",9),e.YNc(6,ti,1,0,"app-contract-validation-otp-modal",9),e.YNc(7,gi,1,0,"app-failed-validation-modal",9),e.YNc(8,Bn,1,0,"app-balance-warning-modal",9),e.YNc(9,Ii,1,0,"app-profile-completion-slide-modal",9),e.YNc(10,Es,1,0,"app-register-locked-modal",9),e.YNc(11,Gs,1,0,"app-confirmation-settlement-credit-modal",9),e.YNc(12,Dl,1,0,"app-physical-card-address-modal",9),e.YNc(13,Zd,1,0,"app-slide-modal-basic",9),e.YNc(14,$g,1,0,"app-slide-modal-dynamic-buttons",9),e.YNc(15,Qg,1,0,"app-socket-controller-modal",9),e.YNc(16,Xg,1,0,"app-transaction-report-types-modal",9),e.YNc(17,em,1,0,"app-contract-banks-modal",9),e.YNc(18,tm,1,0,"app-transfers-verify-otp-modal",9),e.YNc(19,rm,1,0,"app-invitation-code-submit-modal",9),e.YNc(20,nm,1,0,"app-thread-data-json",9),e.YNc(21,im,1,0,"app-pod-card-request-confirmation-modal",9),e.YNc(22,sm,1,0,"app-profile-pic-modal",9),e.YNc(23,fS,1,0,"app-profile-standalone-login-modal",9),e.YNc(24,hS,1,0,"app-introduction-page",9),e.YNc(25,pS,1,0,"app-micro-facilities-invoice-modal",9),e.YNc(26,gS,1,0,"app-expense-credit-extend-payment-modal",9),e.YNc(27,mS,1,0,"app-rating-modal",9),e.YNc(28,vS,1,0,"app-cause-request-resend-card-modal",9),e.YNc(29,_S,1,0,"app-validation-insert-otp-modal",9),e.YNc(30,yS,1,0,"app-wepod-credit-request-modal",9),e.YNc(31,CS,1,0,"app-cheque-inquiry-modal",9),e.YNc(32,bS,1,0,"app-add-chance-modal",9),e.YNc(33,SS,1,0,"app-micro-facilities-score-modal",9),e.YNc(34,TS,1,0,"app-social-button-share-modal",9),e.YNc(35,ES,1,0,"app-support-modal",9),e.YNc(36,MS,1,0,"app-cheque-list-types-modal",9),e.YNc(37,wS,1,0,"app-micro-facilities-calculation-modal",9),e.YNc(38,xS,1,0,"app-shared-tem-receipt-modal",9),e.YNc(39,IS,1,0,"app-micro-facilities-calculation-modal",9),e.YNc(40,AS,1,0,"app-settings-password-card-modal",9),e.YNc(41,DS,1,0,"app-transfer-type-list-modal",9),e.YNc(42,PS,1,0,"app-get-source-card-information",9),e.YNc(43,OS,1,0,"app-modal-basic-shared",9),e.YNc(44,RS,1,0,"app-get-info-transfer-pol-modal",9),e.YNc(45,LS,1,0,"app-order-tracking-modal",9),e.YNc(46,kS,1,0,"app-verify-delivery-code",9),e.YNc(47,NS,1,0,"app-message-info-seen-list",9),e.YNc(48,FS,1,0,"app-forward-message-list",9),e.YNc(49,BS,1,0,"app-add-user-modal",9),e.YNc(50,US,1,0,"app-message-reactions-list",9),e.YNc(51,HS,1,0,"app-gift-code",9),e.YNc(52,VS,1,0,"app-gift-code-result-modal",9),e.YNc(53,YS,1,0,"app-physical-card-request-modal",9),e.YNc(54,jS,1,0,"app-bot-view-stars-modal",9),e.YNc(55,GS,1,0,"app-mutual-credit-calculator-result-modal",9),e.YNc(56,WS,1,0,"app-renewed-card-modal",9),e.YNc(57,ZS,1,0,"app-social-button-share-android-modal",9),e.YNc(58,zS,1,0,"app-mutual-credit-offer-details-modal",9),e.YNc(59,KS,1,0,"app-subject-detail-modal",9),e.YNc(60,qS,1,0,"app-ticket-modal",9),e.YNc(61,JS,1,0,"app-digital-card-amount-modal",9),e.YNc(62,$S,1,0,"app-digital-card-cellphone-contact-modal",9),e.YNc(63,QS,1,0,"app-buy-discount-code-campaign-modal",9),e.YNc(64,XS,1,0,"app-show-discount-code-modal",9),e.YNc(65,eT,1,0,"app-withdraw-rule-amount-modal",9),e.YNc(66,tT,1,0,"app-income-received-score-description-modal",9),e.YNc(67,rT,1,0,"app-saving-plan-calculator-modal",9),e.YNc(68,nT,1,0,"app-ticket-voice-recorder-modal",9),e.YNc(69,iT,1,0,"app-record-voice-modal",9),e.qZA()()),2&T){const o=e.MAs(1),A=e.oxw();e.ekj("bg-white",A.slideModalService.bgWhite),e.Q6J("@outSlideModalContainerMobile",e.VKq(73,rS,o.clientTop))("@inSlideModalContainerMobile",void 0)("ngStyle",e.kEZ(75,sT,A.slideModalService.fullScreen.value?0:"calc(100% - "+A.slideModalService.height+"px)",A.slideModalService.fullScreen.value?0:"32px",A.slideModalService.fullScreen.value?0:"32px")),e.xp6(2),e.Q6J("ngIf",!(A.slideModalService.desktopStyle&&A.slideModalService.hideDesktopHeaderClose)),e.xp6(1),e.Q6J("ngStyle",e.WLB(79,aT,A.slideModalService.fullScreen.value?"calc(100vh - 48px)":"auto",A.slideModalService.fullScreen.value?"auto":"hidden")),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.expenseCreditFactorModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.expenseCreditCommissionModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.contractValidationOtpModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.failedValidationModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.balanceWarningModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.profileCompletionModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.registerLockedModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.confirmationSettlementCreditModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.physicalCardAddressModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.basicModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.dynamicModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.socketController),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.transactionReportTypesModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.contractBanksModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.transferUserVerifyOtp),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.invitationCodeSubmitModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.threadDataJson),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.podCardRequestConfirmationModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.profilePicModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.profileStandaloneLoginModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.introductionModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.microFacilitiesInvoiceModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.expenseCreditExtendPaymentModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.ratingModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.causeRequestResendCardModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.validationInsertOtpModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.wepodCreditRequestModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.chequeInquiryModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.clubAddChance),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.microFacilitiesScoreModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.socialButtonShareModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.supportModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.chequeListTypesModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.microFacilitiesCalculationModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.sharedTemReceiptModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.microFacilitiesCalculationModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.settingsPasswordCardModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.transferTypeListModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.getSourceCardInformation),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.basicSharedBtnModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.getInfoTransferPolModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.orderTracking),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.verifyDeliveryCode),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.messageInfoSeenList),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.forwardMessageList),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.addUserModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.messageReactionsList),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.giftCode),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.giftCodeResultModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.physicalCardRequest),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.botViewStarsModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.mutualCreditCalculatorResultModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.renewedCard),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.socialBtnAndroid),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.mutualCreditOfferDetailsModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.subjectDetailModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.showTicketModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.digitalCardAmount),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.digitalCardCellphoneContact),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.buyCampaignModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.showDiscountCodeModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.withdrawAmountModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.incomeReceivedScoreDescriptionModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.savingPlanCalculatorModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.ticketVoiceRecorder),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.recordVoiceTicketModal)}}function lT(T,S){if(1&T&&e._UZ(0,"img",20),2&T){const o=e.oxw(3);e.Q6J("src",o.slideModalService.modalTitleImage,e.LSH)}}function uT(T,S){if(1&T&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&T){const o=e.oxw(3);e.xp6(1),e.Oqu(o.slideModalService.modalTitle)}}function cT(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"div",10)(1,"a",15),e.NdJ("click",function(){return e.CHM(o),e.oxw(2).closeModal(!0)}),e._UZ(2,"img",16),e.qZA(),e.TgZ(3,"div",18),e.YNc(4,lT,1,1,"img",19),e.YNc(5,uT,2,1,"span",9),e.qZA()()}if(2&T){const o=e.oxw(2);e.ekj("full-screen",o.slideModalService.fullScreen.value)("slide-modal-handler-bg-gray",o.slideModalService.modalTitleBgGray),e.xp6(1),e.Q6J("@inOutComponent",void 0),e.xp6(2),e.ekj("slide-modal-handler-title-center",o.slideModalService.modalTitleCenter),e.xp6(1),e.Q6J("ngIf",o.slideModalService.modalTitleImage),e.xp6(1),e.Q6J("ngIf",o.slideModalService.modalTitle)}}function dT(T,S){1&T&&e._UZ(0,"app-expense-credit-factor-modal")}function fT(T,S){1&T&&e._UZ(0,"app-expense-credit-commission-modal")}function hT(T,S){1&T&&e._UZ(0,"app-contract-validation-otp-modal")}function pT(T,S){1&T&&e._UZ(0,"app-failed-validation-modal")}function gT(T,S){1&T&&e._UZ(0,"app-balance-warning-modal")}function mT(T,S){1&T&&e._UZ(0,"app-profile-completion-slide-modal")}function vT(T,S){1&T&&e._UZ(0,"app-register-locked-modal")}function _T(T,S){1&T&&e._UZ(0,"app-confirmation-settlement-credit-modal")}function yT(T,S){1&T&&e._UZ(0,"app-physical-card-address-modal")}function CT(T,S){1&T&&e._UZ(0,"app-slide-modal-basic")}function bT(T,S){1&T&&e._UZ(0,"app-slide-modal-dynamic-buttons")}function ST(T,S){1&T&&e._UZ(0,"app-socket-controller-modal")}function TT(T,S){1&T&&e._UZ(0,"app-transaction-report-types-modal")}function ET(T,S){1&T&&e._UZ(0,"app-contract-banks-modal")}function MT(T,S){1&T&&e._UZ(0,"app-transfers-verify-otp-modal")}function wT(T,S){1&T&&e._UZ(0,"app-invitation-code-submit-modal")}function xT(T,S){1&T&&e._UZ(0,"app-thread-data-json")}function IT(T,S){1&T&&e._UZ(0,"app-pod-card-request-confirmation-modal")}function AT(T,S){1&T&&e._UZ(0,"app-profile-pic-modal")}function DT(T,S){1&T&&e._UZ(0,"app-profile-standalone-login-modal")}function PT(T,S){1&T&&e._UZ(0,"app-introduction-page")}function OT(T,S){1&T&&e._UZ(0,"app-micro-facilities-invoice-modal")}function RT(T,S){1&T&&e._UZ(0,"app-expense-credit-extend-payment-modal")}function LT(T,S){1&T&&e._UZ(0,"app-rating-modal")}function kT(T,S){1&T&&e._UZ(0,"app-validation-insert-otp-modal")}function NT(T,S){1&T&&e._UZ(0,"app-wepod-credit-request-modal")}function FT(T,S){1&T&&e._UZ(0,"app-cause-request-resend-card-modal")}function BT(T,S){1&T&&e._UZ(0,"app-cheque-inquiry-modal")}function UT(T,S){1&T&&e._UZ(0,"app-add-chance-modal")}function HT(T,S){1&T&&e._UZ(0,"app-micro-facilities-score-modal")}function VT(T,S){1&T&&e._UZ(0,"app-social-button-share-modal")}function YT(T,S){1&T&&e._UZ(0,"app-support-modal")}function jT(T,S){1&T&&e._UZ(0,"app-cheque-list-types-modal")}function GT(T,S){1&T&&e._UZ(0,"app-micro-facilities-calculation-modal")}function WT(T,S){1&T&&e._UZ(0,"app-shared-tem-receipt-modal")}function ZT(T,S){1&T&&e._UZ(0,"app-settings-password-card-modal")}function zT(T,S){1&T&&e._UZ(0,"app-transfer-type-list-modal")}function KT(T,S){1&T&&e._UZ(0,"app-get-source-card-information")}function qT(T,S){1&T&&e._UZ(0,"app-modal-basic-shared")}function JT(T,S){1&T&&e._UZ(0,"app-get-info-transfer-pol-modal")}function $T(T,S){1&T&&e._UZ(0,"app-order-tracking-modal")}function QT(T,S){1&T&&e._UZ(0,"app-verify-delivery-code")}function XT(T,S){1&T&&e._UZ(0,"app-message-info-seen-list")}function e3(T,S){1&T&&e._UZ(0,"app-forward-message-list")}function t3(T,S){1&T&&e._UZ(0,"app-add-user-modal")}function r3(T,S){1&T&&e._UZ(0,"app-message-reactions-list")}function n3(T,S){1&T&&e._UZ(0,"app-gift-code")}function s3(T,S){1&T&&e._UZ(0,"app-gift-code-result-modal")}function a3(T,S){1&T&&e._UZ(0,"app-physical-card-request-modal")}function o3(T,S){1&T&&e._UZ(0,"app-bot-view-stars-modal")}function l3(T,S){1&T&&e._UZ(0,"app-mutual-credit-calculator-result-modal")}function u3(T,S){1&T&&e._UZ(0,"app-renewed-card-modal")}function c3(T,S){1&T&&e._UZ(0,"app-social-button-share-android-modal")}function d3(T,S){1&T&&e._UZ(0,"app-mutual-credit-offer-details-modal")}function f3(T,S){1&T&&e._UZ(0,"app-subject-detail-modal")}function h3(T,S){1&T&&e._UZ(0,"app-ticket-modal")}function p3(T,S){1&T&&e._UZ(0,"app-digital-card-amount-modal")}function g3(T,S){1&T&&e._UZ(0,"app-digital-card-cellphone-contact-modal")}function m3(T,S){1&T&&e._UZ(0,"app-buy-discount-code-campaign-modal")}function v3(T,S){1&T&&e._UZ(0,"app-show-discount-code-modal")}function _3(T,S){1&T&&e._UZ(0,"app-withdraw-rule-amount-modal")}function y3(T,S){1&T&&e._UZ(0,"app-income-received-score-description-modal")}function C3(T,S){1&T&&e._UZ(0,"app-saving-plan-calculator-modal")}function b3(T,S){1&T&&e._UZ(0,"app-ticket-voice-recorder-modal")}function S3(T,S){1&T&&e._UZ(0,"app-record-voice-modal")}const T3=function(T,S){return{transition:T,top:"50%","border-top-left-radius":"12px","border-top-right-radius":"12px","border-bottom-left-radius":"12px","border-bottom-right-radius":"12px","max-height":S}},E3=function(T){return{"max-height":T}};function M3(T,S){if(1&T&&(e.TgZ(0,"div",17,6),e.YNc(2,cT,6,9,"div",7),e.TgZ(3,"div",8),e.YNc(4,dT,1,0,"app-expense-credit-factor-modal",9),e.YNc(5,fT,1,0,"app-expense-credit-commission-modal",9),e.YNc(6,hT,1,0,"app-contract-validation-otp-modal",9),e.YNc(7,pT,1,0,"app-failed-validation-modal",9),e.YNc(8,gT,1,0,"app-balance-warning-modal",9),e.YNc(9,mT,1,0,"app-profile-completion-slide-modal",9),e.YNc(10,vT,1,0,"app-register-locked-modal",9),e.YNc(11,_T,1,0,"app-confirmation-settlement-credit-modal",9),e.YNc(12,yT,1,0,"app-physical-card-address-modal",9),e.YNc(13,CT,1,0,"app-slide-modal-basic",9),e.YNc(14,bT,1,0,"app-slide-modal-dynamic-buttons",9),e.YNc(15,ST,1,0,"app-socket-controller-modal",9),e.YNc(16,TT,1,0,"app-transaction-report-types-modal",9),e.YNc(17,ET,1,0,"app-contract-banks-modal",9),e.YNc(18,MT,1,0,"app-transfers-verify-otp-modal",9),e.YNc(19,wT,1,0,"app-invitation-code-submit-modal",9),e.YNc(20,xT,1,0,"app-thread-data-json",9),e.YNc(21,IT,1,0,"app-pod-card-request-confirmation-modal",9),e.YNc(22,AT,1,0,"app-profile-pic-modal",9),e.YNc(23,DT,1,0,"app-profile-standalone-login-modal",9),e.YNc(24,PT,1,0,"app-introduction-page",9),e.YNc(25,OT,1,0,"app-micro-facilities-invoice-modal",9),e.YNc(26,RT,1,0,"app-expense-credit-extend-payment-modal",9),e.YNc(27,LT,1,0,"app-rating-modal",9),e.YNc(28,kT,1,0,"app-validation-insert-otp-modal",9),e.YNc(29,NT,1,0,"app-wepod-credit-request-modal",9),e.YNc(30,FT,1,0,"app-cause-request-resend-card-modal",9),e.YNc(31,BT,1,0,"app-cheque-inquiry-modal",9),e.YNc(32,UT,1,0,"app-add-chance-modal",9),e.YNc(33,HT,1,0,"app-micro-facilities-score-modal",9),e.YNc(34,VT,1,0,"app-social-button-share-modal",9),e.YNc(35,YT,1,0,"app-support-modal",9),e.YNc(36,jT,1,0,"app-cheque-list-types-modal",9),e.YNc(37,GT,1,0,"app-micro-facilities-calculation-modal",9),e.YNc(38,WT,1,0,"app-shared-tem-receipt-modal",9),e.YNc(39,ZT,1,0,"app-settings-password-card-modal",9),e.YNc(40,zT,1,0,"app-transfer-type-list-modal",9),e.YNc(41,KT,1,0,"app-get-source-card-information",9),e.YNc(42,qT,1,0,"app-modal-basic-shared",9),e.YNc(43,JT,1,0,"app-get-info-transfer-pol-modal",9),e.YNc(44,$T,1,0,"app-order-tracking-modal",9),e.YNc(45,QT,1,0,"app-verify-delivery-code",9),e.YNc(46,XT,1,0,"app-message-info-seen-list",9),e.YNc(47,e3,1,0,"app-forward-message-list",9),e.YNc(48,t3,1,0,"app-add-user-modal",9),e.YNc(49,r3,1,0,"app-message-reactions-list",9),e.YNc(50,n3,1,0,"app-gift-code",9),e.YNc(51,s3,1,0,"app-gift-code-result-modal",9),e.YNc(52,a3,1,0,"app-physical-card-request-modal",9),e.YNc(53,o3,1,0,"app-bot-view-stars-modal",9),e.YNc(54,l3,1,0,"app-mutual-credit-calculator-result-modal",9),e.YNc(55,u3,1,0,"app-renewed-card-modal",9),e.YNc(56,c3,1,0,"app-social-button-share-android-modal",9),e.YNc(57,d3,1,0,"app-mutual-credit-offer-details-modal",9),e.YNc(58,f3,1,0,"app-subject-detail-modal",9),e.YNc(59,h3,1,0,"app-ticket-modal",9),e.YNc(60,p3,1,0,"app-digital-card-amount-modal",9),e.YNc(61,g3,1,0,"app-digital-card-cellphone-contact-modal",9),e.YNc(62,m3,1,0,"app-buy-discount-code-campaign-modal",9),e.YNc(63,v3,1,0,"app-show-discount-code-modal",9),e.YNc(64,_3,1,0,"app-withdraw-rule-amount-modal",9),e.YNc(65,y3,1,0,"app-income-received-score-description-modal",9),e.YNc(66,C3,1,0,"app-saving-plan-calculator-modal",9),e.YNc(67,b3,1,0,"app-ticket-voice-recorder-modal",9),e.YNc(68,S3,1,0,"app-record-voice-modal",9),e.qZA()()),2&T){const o=e.MAs(1),A=e.oxw();e.ekj("bg-white",A.slideModalService.bgWhite),e.Q6J("@outSlideModalContainerDesktop",e.VKq(74,rS,o.clientTop))("@inSlideModalContainerDesktop",void 0)("ngStyle",e.WLB(76,T3,A.dragging?"0":"0.3s",A.slideModalService.scrollable?A.slideModalService.height+"px":"auto")),e.xp6(2),e.Q6J("ngIf",!A.slideModalService.hideDesktopHeaderClose),e.xp6(1),e.ekj("scrollable-modal",A.slideModalService.scrollable),e.Q6J("ngStyle",e.VKq(79,E3,A.slideModalService.scrollable?A.slideModalService.height-48+"px":"auto")),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.expenseCreditFactorModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.expenseCreditCommissionModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.contractValidationOtpModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.failedValidationModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.balanceWarningModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.profileCompletionModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.registerLockedModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.confirmationSettlementCreditModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.physicalCardAddressModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.basicModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.dynamicModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.socketController),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.transactionReportTypesModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.contractBanksModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.transferUserVerifyOtp),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.invitationCodeSubmitModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.threadDataJson),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.podCardRequestConfirmationModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.profilePicModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.profileStandaloneLoginModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.introductionModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.microFacilitiesInvoiceModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.expenseCreditExtendPaymentModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.ratingModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.validationInsertOtpModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.wepodCreditRequestModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.causeRequestResendCardModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.chequeInquiryModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.clubAddChance),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.microFacilitiesScoreModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.socialButtonShareModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.supportModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.chequeListTypesModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.microFacilitiesCalculationModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.sharedTemReceiptModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.settingsPasswordCardModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.transferTypeListModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.getSourceCardInformation),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.basicSharedBtnModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.getInfoTransferPolModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.orderTracking),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.verifyDeliveryCode),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.messageInfoSeenList),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.forwardMessageList),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.addUserModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.messageReactionsList),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.giftCode),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.giftCodeResultModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.physicalCardRequest),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.botViewStarsModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.mutualCreditCalculatorResultModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.renewedCard),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.socialBtnAndroid),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.mutualCreditOfferDetailsModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.subjectDetailModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.showTicketModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.digitalCardAmount),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.digitalCardCellphoneContact),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.buyCampaignModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.showDiscountCodeModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.withdrawAmountModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.incomeReceivedScoreDescriptionModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.savingPlanCalculatorModal),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.ticketVoiceRecorder),e.xp6(1),e.Q6J("ngIf",A.slideModalService.templates.recordVoiceTicketModal)}}let w3=(()=>{class T{constructor(){this.slideModalService=vr.j,this.dragging=!1,this.isDesktop=vr.j.isDesktop,this.providerLogo=""}ngOnInit(){}touchstart(){this.previousPosition=(0,hi.Jj)()?.innerHeight-vr.j.height}touchmove(o){o.stopPropagation(),this.dragging=!0,vr.j.height=(0,hi.Jj)()?.innerHeight-o.touches[0].clientY}touchend(){this.dragging=!1,(0,hi.Jj)()?.innerHeight-vr.j.height-this.previousPosition>100?(0,vr.Mr)():this.previousPosition-(0,hi.Jj)()?.innerHeight+vr.j.height>100?(vr.j.fullScreen.next(!0),vr.j.height=(0,hi.Jj)()?.innerHeight):vr.j.height=(0,hi.Jj)()?.innerHeight-this.previousPosition}closeModal(o=!1){vr.j.disableBackdropClosing&&!o||(0,vr.Mr)()}slideHandlerCloseModal(){vr.j.slideModalHandlerClosing&&(0,vr.Mr)()}}return T.\u0275fac=function(o){return new(o||T)},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-slide-modal"]],decls:4,vars:4,consts:[[1,"slide-modal-wrapper",3,"ngClass"],["class","slide-modal-backdrop",3,"click",4,"ngIf"],["class","slide-modal-container",3,"bg-white","ngStyle",4,"ngIf"],["class","slide-modal-container is-desktop",3,"bg-white","ngStyle",4,"ngIf"],[1,"slide-modal-backdrop",3,"click"],[1,"slide-modal-container",3,"ngStyle"],["slideModalContainer",""],["class","slide-modal-handler",3,"full-screen","slide-modal-handler-bg-gray",4,"ngIf"],[1,"slide-modal-body",3,"ngStyle"],[4,"ngIf"],[1,"slide-modal-handler"],["class","slide-modal-handler-button","href","javascript:void(0)",3,"click","touchstart","touchmove","touchend",4,"ngIf"],["class","slide-modal-handler-close",3,"click",4,"ngIf"],["href","javascript:void(0)",1,"slide-modal-handler-button",3,"click","touchstart","touchmove","touchend"],[1,"slide-modal-handler-button-icon"],[1,"slide-modal-handler-close",3,"click"],["src","assets/images/receipt/close-gray.svg","alt","\u0628\u0633\u062a\u0646",1,"slide-modal-handler-close-icon"],[1,"slide-modal-container","is-desktop",3,"ngStyle"],[1,"slide-modal-handler-title"],["alt","",3,"src",4,"ngIf"],["alt","",3,"src"]],template:function(o,A){1&o&&(e.TgZ(0,"div",0),e.YNc(1,dr,1,1,"div",1),e.YNc(2,oT,70,82,"div",2),e.YNc(3,M3,69,81,"div",3),e.qZA()),2&o&&(e.Q6J("ngClass",A.slideModalService.extraClasses),e.xp6(1),e.Q6J("ngIf",A.slideModalService.open.value),e.xp6(1),e.Q6J("ngIf",A.slideModalService.open.value&&!(A.isDesktop||A.slideModalService.desktopStyle)),e.xp6(1),e.Q6J("ngIf",A.slideModalService.open.value&&(A.isDesktop||A.slideModalService.desktopStyle)))},directives:[G.mk,G.O5,G.PC,w2,I2,L2,N2,F2,B2,V2,b1,G2,J2,eC,Of,v6,O1,uC,N1,F1,fC,pC,D0,P0.Z,W1,Mg,e_,C6,xg,r_,O0,s_,Og,Rg,BC,a_,jC,E6,M6,qC,O6,Fg,nb,Ug,E_,M_,fb,mb,R_,bb,Sb,F6,U6,Tb,Mb,L_,Kg,F0,N_,Ib,Db,B_,H_,W6,Jg,Lb,L,Rt],encapsulation:2,data:{animation:[na.z.animations.inOutComponent,(0,qn.X$)("inOutSlideModalBackdrop",[(0,qn.eR)(":enter",[(0,qn.oB)({opacity:0}),(0,qn.jt)(".3s ease-out",(0,qn.oB)({opacity:1}))]),(0,qn.eR)(":leave",[(0,qn.oB)({opacity:1}),(0,qn.jt)(".3s ease-in",(0,qn.oB)({opacity:0}))])]),(0,qn.X$)("inSlideModalContainerMobile",[(0,qn.eR)(":enter",[(0,qn.oB)({top:"100%","border-top-left-radius":"32px","border-top-right-radius":"32px"}),(0,qn.jt)(".3s ease-in-out",(0,qn.oB)({top:"*","border-top-left-radius":vr.j.fullScreen.value?0:"32px","border-top-right-radius":vr.j.fullScreen.value?0:"32px"}))])]),(0,qn.X$)("outSlideModalContainerMobile",[(0,qn.SB)(":leave",(0,qn.oB)({top:"{{top}}"}),{params:{top:0}}),(0,qn.eR)(":leave",[(0,qn.oB)({"border-top-left-radius":vr.j.fullScreen.value?0:"32px","border-top-right-radius":vr.j.fullScreen.value?0:"32px"}),(0,qn.jt)(".3s ease-in-out",(0,qn.oB)({top:"100%","border-top-left-radius":"32px","border-top-right-radius":"32px"}))])]),(0,qn.X$)("inSlideModalContainerDesktop",[(0,qn.eR)(":enter",[(0,qn.oB)({opacity:0}),(0,qn.jt)(".3s ease-in-out",(0,qn.oB)({opacity:1}))])]),(0,qn.X$)("outSlideModalContainerDesktop",[(0,qn.eR)(":leave",[(0,qn.oB)({opacity:1}),(0,qn.jt)(".3s ease-in-out",(0,qn.oB)({opacity:0}))])])]}}),T})();var zd=n(70223);const x3=["imageElement"],I3=["toolbar"];function A3(T,S){1&T&&e._UZ(0,"img",17)}function D3(T,S){1&T&&e._UZ(0,"img",18)}function P3(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(){return e.CHM(o),e.oxw(2).toggleFullscreen()}),e.YNc(1,A3,1,0,"img",15),e.YNc(2,D3,1,0,"img",16),e.qZA()}if(2&T){const o=e.oxw(2);e.Q6J("title",o.isFullscreen?"\u062e\u0631\u0648\u062c \u0627\u0632 \u062a\u0645\u0627\u0645\u200c\u0635\u0641\u062d\u0647":"\u062a\u0645\u0627\u0645\u200c\u0635\u0641\u062d\u0647"),e.xp6(1),e.Q6J("ngIf",!o.isFullscreen),e.xp6(1),e.Q6J("ngIf",o.isFullscreen)}}function O3(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"img",19,20),e.NdJ("load",function(){return e.CHM(o),e.oxw(2).isImageLoaded=!0})("error",function(){return e.CHM(o),e.oxw(2).imageError()}),e.qZA()}if(2&T){const o=e.oxw(2);e.Q6J("src",o.ImageViewerService.ImageSrc,e.LSH)}}function R3(T,S){1&T&&e._UZ(0,"img",21)}function L3(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"div",22),e.NdJ("click",function(){return e.CHM(o),e.oxw(2).imageRetry()}),e._UZ(1,"img",23),e.TgZ(2,"p"),e._uU(3,"\u0645\u062c\u062f\u062f\u0627 \u062a\u0644\u0627\u0634 \u06a9\u0646\u06cc\u062f"),e.qZA()()}}function k3(T,S){if(1&T){const o=e.EpF();e.TgZ(0,"div",1)(1,"div",2)(2,"div",3),e.NdJ("mousemove",function(){return e.CHM(o),e.oxw().showToolbar()}),e.TgZ(3,"div",4,5)(5,"button",6),e.NdJ("click",function(){return e.CHM(o),e.oxw().close()}),e._UZ(6,"img",7),e.qZA(),e.YNc(7,P3,3,3,"button",8),e.qZA(),e.TgZ(8,"div",9)(9,"div",10),e.YNc(10,O3,2,1,"img",11),e.qZA(),e.YNc(11,R3,1,0,"img",12),e.YNc(12,L3,4,0,"div",13),e.qZA()()()()}if(2&T){const o=e.oxw();e.xp6(7),e.Q6J("ngIf",o.fullscreenEnabled),e.xp6(3),e.Q6J("ngIf",!o.ImageViewerService.loadFailed),e.xp6(1),e.Q6J("ngIf",!o.isImageLoaded&&!o.ImageViewerService.loadFailed),e.xp6(1),e.Q6J("ngIf",o.ImageViewerService.loadFailed)}}let N3=(()=>{class T{constructor(o){this.mainElement=o,this.ImageViewerService=zd.uU,this.isImageLoaded=!1,this.isFullscreen=!1,this.fullscreenEnabled=document.fullscreenEnabled,this.mouseMoveTimeout=null}close(){this.toggleFullscreen(!0),(0,zd.Tk)()}imageError(){--zd.uU.retry>0?this.imageElement.nativeElement.src=zd.uU.ImageSrc:zd.uU.loadFailed=!0}imageRetry(){zd.uU.open.next(zd.uU.ImageSrc),zd.uU.retry++,this.imageError()}showToolbar(){this.toolbar.nativeElement.classList.add("visible"),this.mouseMoveTimeout&&clearTimeout(this.mouseMoveTimeout),this.mouseMoveTimeout=setTimeout(()=>{this.toolbar.nativeElement.classList.remove("visible")},3e3)}toggleFullscreen(o=null){document.fullscreenElement||o?document.exitFullscreen&&(document.exitFullscreen(),this.isFullscreen=!1):this.mainElement.nativeElement.requestFullscreen&&(this.mainElement.nativeElement.requestFullscreen(),this.isFullscreen=!0)}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(e.SBq))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-image-viewer"]],viewQuery:function(o,A){if(1&o&&(e.Gf(x3,5),e.Gf(I3,5)),2&o){let ee;e.iGM(ee=e.CRH())&&(A.imageElement=ee.first),e.iGM(ee=e.CRH())&&(A.toolbar=ee.first)}},decls:1,vars:1,consts:[["class","image-viewer",4,"ngIf"],[1,"image-viewer"],[1,"image-viewer-backdrop"],[1,"image-viewer-body",3,"mousemove"],[1,"image-viewer-toolbar"],["toolbar",""],["title","\u0628\u0633\u062a\u0646",3,"click"],["src","assets/images/receipt/close-gray.svg","alt","\u0628\u0633\u062a\u0646"],["id","fullscreenBtn",3,"title","click",4,"ngIf"],[1,"image-viewer-content"],[1,"image"],["alt","",3,"src","load","error",4,"ngIf"],["class","loading","src","assets/images/chat/loading-circle-dark-gray.svg","width","50","height","50","style","position: absolute;","alt","",4,"ngIf"],["class","refresh-box",3,"click",4,"ngIf"],["id","fullscreenBtn",3,"title","click"],["src","assets/images/shared/fullscreen-enter.svg","alt","\u062a\u0645\u0627\u0645\u200c\u0635\u0641\u062d\u0647",4,"ngIf"],["src","assets/images/shared/fullscreen-exit.svg","alt","\u062e\u0631\u0648\u062c \u0627\u0632 \u062a\u0645\u0627\u0645\u200c\u0635\u0641\u062d\u0647",4,"ngIf"],["src","assets/images/shared/fullscreen-enter.svg","alt","\u062a\u0645\u0627\u0645\u200c\u0635\u0641\u062d\u0647"],["src","assets/images/shared/fullscreen-exit.svg","alt","\u062e\u0631\u0648\u062c \u0627\u0632 \u062a\u0645\u0627\u0645\u200c\u0635\u0641\u062d\u0647"],["alt","",3,"src","load","error"],["imageElement",""],["src","assets/images/chat/loading-circle-dark-gray.svg","width","50","height","50","alt","",1,"loading",2,"position","absolute"],[1,"refresh-box",3,"click"],["src","/assets/images/card/active-cyber-card/refresh.svg","alt",""]],template:function(o,A){1&o&&e.YNc(0,k3,13,4,"div",0),2&o&&e.Q6J("ngIf",A.ImageViewerService.ImageSrc)},directives:[G.O5],encapsulation:2}),T})(),F3=(()=>{class T{}return T.\u0275fac=function(o){return new(o||T)},T.\u0275mod=e.oAB({type:T}),T.\u0275inj=e.cJS({imports:[[G.ez,Yo.Bz.forChild([]),_2.K]]}),T})();e.B6R(js.D_,[G.O5,G.mk,b2,Yo.lC,h1,w3,N3],[]);var nS=n(31312),B3=n(74512),U3=n(14656),H3=n(57671),iS=n(4002),V3=n(83639),Y3=n(54110),sS=n(66245),j3=n(78377),G3=n(55154);function W3(T,S){1&T&&(e.O4$(),e.TgZ(0,"svg",20)(1,"g",21),e._UZ(2,"path",22)(3,"path",23),e.qZA()())}function Z3(T,S){if(1&T&&e._UZ(0,"img",24),2&T){const o=e.oxw(2);e.Q6J("src",o.wepodMainService.getImageFromPodSpaceByHashId(o.customLogo),e.LSH)}}function z3(T,S){1&T&&(e.TgZ(0,"div",25),e.O4$(),e.TgZ(1,"svg",26)(2,"g",27),e._UZ(3,"path",28),e.qZA()(),e.TgZ(4,"svg",29)(5,"defs"),e._UZ(6,"path",30),e.qZA(),e.TgZ(7,"g",31),e._UZ(8,"path",32),e.TgZ(9,"g",33)(10,"mask",34),e._UZ(11,"use",35),e.qZA(),e._UZ(12,"path",36),e.qZA(),e._UZ(13,"path",37),e.qZA()()())}function K3(T,S){1&T&&(e.O4$(),e.TgZ(0,"svg",38)(1,"defs"),e._UZ(2,"path",39)(3,"path",40)(4,"path",41),e.qZA(),e.TgZ(5,"g",42)(6,"g",43)(7,"mask",34),e._UZ(8,"use",35),e.qZA(),e._UZ(9,"path",44),e.qZA(),e._UZ(10,"path",45)(11,"path",46),e.TgZ(12,"g",47)(13,"mask",48),e._UZ(14,"use",49),e.qZA(),e._UZ(15,"path",50),e.qZA(),e._UZ(16,"path",51),e.TgZ(17,"mask",52),e._UZ(18,"use",53),e.qZA(),e._UZ(19,"path",54)(20,"path",55)(21,"path",56),e.qZA()())}function q3(T,S){1&T&&(e.O4$(),e.TgZ(0,"svg",57)(1,"title"),e._uU(2,"70F02F76-FFAD-4F73-B606-090537EEED7C"),e.qZA(),e.TgZ(3,"defs"),e._UZ(4,"polygon",58)(5,"polygon",59)(6,"polygon",60)(7,"polygon",61),e.qZA(),e.TgZ(8,"g",62)(9,"g",63)(10,"g",64)(11,"g",65),e._UZ(12,"path",66)(13,"path",67)(14,"path",68),e.TgZ(15,"g",69)(16,"mask",70),e._UZ(17,"use",71),e.qZA(),e._UZ(18,"g",72)(19,"path",73),e.qZA(),e.TgZ(20,"g",74)(21,"mask",75),e._UZ(22,"use",76),e.qZA(),e._UZ(23,"g",77)(24,"path",78),e.qZA(),e._UZ(25,"path",79),e.TgZ(26,"g",80)(27,"mask",81),e._UZ(28,"use",82),e.qZA(),e._UZ(29,"g",83)(30,"path",84),e.qZA(),e._UZ(31,"path",85)(32,"path",86)(33,"polygon",87)(34,"path",88),e.qZA(),e.TgZ(35,"g",89),e._UZ(36,"path",90)(37,"path",91)(38,"polygon",92)(39,"path",93)(40,"path",94)(41,"path",95)(42,"path",96)(43,"path",97)(44,"path",98)(45,"path",99)(46,"path",100)(47,"path",101)(48,"path",102)(49,"path",103),e.TgZ(50,"mask",104),e._UZ(51,"use",105),e.qZA(),e._UZ(52,"g",106)(53,"polygon",107)(54,"path",108)(55,"path",109),e.qZA()()()()())}function J3(T,S){if(1&T&&(e.O4$(),e.kcU(),e._UZ(0,"app-spinner",110)),2&T){const o=e.oxw(2);e.Akn("position: fixed; padding-top: "+(o.authStandalone?"92px":"20px")),e.Q6J("@inOutLoading",void 0)("color","white")}}function $3(T,S){if(1&T&&(e.O4$(),e.kcU(),e.TgZ(0,"span",111),e._uU(1),e.qZA()),2&T){const o=e.oxw(2);e.xp6(1),e.Oqu(o.environment.appVersion)}}function Q3(T,S){if(1&T&&(e.TgZ(0,"div",2)(1,"div",3)(2,"div",4),e.YNc(3,W3,4,0,"svg",5),e.YNc(4,Z3,1,1,"img",6),e.YNc(5,z3,14,0,"div",7),e.YNc(6,K3,22,0,"svg",8),e.qZA(),e.YNc(7,q3,56,0,"svg",9),e.O4$(),e.TgZ(8,"svg",10)(9,"defs")(10,"linearGradient",11),e._UZ(11,"stop",12)(12,"stop",13),e.qZA(),e.TgZ(13,"linearGradient",14),e._UZ(14,"stop",12)(15,"stop",13),e.qZA()(),e.TgZ(16,"g",15),e._UZ(17,"path",16)(18,"path",17),e.qZA()(),e.YNc(19,J3,1,4,"app-spinner",18),e.qZA(),e.YNc(20,$3,2,1,"span",19),e.qZA()),2&T){const o=e.oxw();e.ekj("app-splash-screen-entrance",o.authStandalone&&!o.entrance),e.xp6(1),e.Akn("background-color: "+(o.authStandalone&&o.customTheme?"#"+o.customTheme:"#08b378")+"; position: fixed; width: 100vw; height: 100vh; top: 0; right: 0; overflow: hidden; display: flex; justify-content: center; align-items: center;"),e.xp6(2),e.Q6J("ngIf",!o.authStandalone||o.authStandalone&&!o.customLogo),e.xp6(1),e.Q6J("ngIf",o.authStandalone&&o.customLogo),e.xp6(1),e.Q6J("ngIf",!o.authStandalone),e.xp6(1),e.Q6J("ngIf",!o.authStandalone),e.xp6(1),e.Q6J("ngIf",!o.authStandalone),e.xp6(12),e.Q6J("ngIf",o.loadingVisibility),e.xp6(1),e.Q6J("ngIf",!o.authStandalone)}}function X3(T,S){1&T&&e._UZ(0,"div",2)}let eE=(()=>{class T{constructor(o,A,ee,he,Ye,bt,er,mr,Kr,nn,vn){this.authService=o,this.registerDataPassingService=A,this.oAuthService=ee,this.browserStorageService=he,this.toastrService=Ye,this.referralService=bt,this.routingAppService=er,this.wepodMainService=mr,this.getProfileDataService=Kr,this.claimService=nn,this.activeDevicesService=vn,this.showSplash=!0,this.ANIMATION_DURATION=1,this.minimumDelay=3e3,this.loadingVisibility=!1,this.environment=jo.NZ,this.authStandalone=hi.if,this.customLogo=hi.SN,this.customTheme=hi.vr,this.entrance=!1,this.autoLoginQueryParam={}}ngAfterViewInit(){if("guest"!==(0,hi.Jj)()?.location?.pathname?.split("/")[1]&&"wepodauth"!==(0,hi.Jj)()?.location?.pathname.split("/")[1]){if((0,hi.Jj)()&&setInterval(()=>{(hi.vr||hi.SN)&&(0,hi.Jj)()&&(this.customTheme=hi.vr,this.customLogo=hi.SN)},100),setTimeout(()=>{this.entrance=!0},300),this.setMinimumDelay(),(0,hi.Jj)()){const o=this.getAuthCode();!o||"finish-authorization"!==(0,hi.Jj)()?.location?.pathname.split("/")[1]&&"finish-reset-password"!==(0,hi.Jj)()?.location?.pathname.split("/")[1]&&"payment-finish-authorization"!==(0,hi.Jj)()?.location?.pathname.split("/")[1]?this.start():this.actionUrlFlowRedirectWithAuthCode(o)}}else this.end()}setMinimumDelay(){this.minimumDelayPromise=new Promise(o=>{setTimeout(()=>{o(!0)},this.minimumDelay)}),setTimeout(()=>{this.loadingVisibility=!0},this.minimumDelay/2)}start(){let o,A=!1;const ee=new URLSearchParams((0,hi.Jj)().location.search.substring(1));if(ee.get("error_description")?o=ee.get("error_description"):ee.get("error")&&(A=!0),"logout-authorization"===(0,hi.Jj)()?.location?.pathname.split("/")[1])return o&&A&&this.toastrService.error(o),this.authService.logoutClient(!0),void this.end();const he="true"===this.browserStorageService.getLocalItem("isLogin"),Ye=this.browserStorageService.getLocalItem("deviceIdForRegistration")?.split(";")[0];if(he){const bt=this.wepodMainService.getToken();if("forgot-password"===(0,hi.Jj)()?.location?.pathname.split("/")[1])o&&A&&this.toastrService.error(o),this.forgetPasswordFlowRedirect(Ye);else if("finish-forgot-password"===(0,hi.Jj)()?.location?.pathname.split("/")[1])o&&A&&this.toastrService.error(o),this.forgetPasswordWaitingFlowRedirect(Ye);else if("finish-reset-password"===(0,hi.Jj)()?.location?.pathname.split("/")[1])o&&A&&this.toastrService.error(o),(Ye||"null"!==Ye)&&(this.registerDataPassingService.authorizeModal=!0),this.browserStorageService.removeLocalItem("isLogin"),this.start();else if(bt)if(this.wepodMainService.refreshTokenInProgress){const er=setInterval(()=>{this.wepodMainService.refreshTokenInProgress||(this.checkUserFinancialStatusFlow(),clearInterval(er))},100)}else this.checkUserFinancialStatusFlow(o,A);else this.wepodMainService.getActionUrl()?(this.actionUrlFlow(this.wepodMainService.getActionUrl()),this.wepodMainService.removeActionUrl()):this.loginWithPreDefinedNumberFlow(Ye)}else this.loginFlow(Ye)}loginFlow(o){if(hi.if){const A={};return(0,hi.Jj)()&&new URL((0,hi.Jj)().location.href)?.search?.split("?")[1]?.split("&").forEach(he=>{A[he.split("=")[0]]=he.split("=")[1]}),this.routingAppService.navigate(["profile/standalone-login"],{queryParams:A}),void setTimeout(()=>{this.end()},1e3)}o?this.loginWithPreDefinedNumberFlow(o):(this.routingAppService.navigate(["signup/mobile"]),this.end())}checkUserFinancialStatusFlow(o,A){this.oAuthService.getUserFinancialStatus().subscribe(ee=>{ee.isFinished?(["payment-finish-authorization","finish-authorization","register"].find(he=>he===(0,hi.Jj)()?.location?.pathname.split("/")[1])&&(o&&A&&this.toastrService.error(o),this.routingAppService.navigate(hi.if?[""]:["landing"])),this.end()):this.profileCompletionFlow()})}loginWithPreDefinedNumberFlow(o){if(!o||"null"===o)return this.browserStorageService.removeLocalItem("isLogin"),void this.start();this.registerDataPassingService.authorizeModal=!0,this.registerDataPassingService.changePassword=!1,this.registerDataPassingService.resetPassword=!1,this.registerDataPassingService.params=new sS.r,this.registerDataPassingService.params.mobileNumber=o,this.routingAppService.navigate(["signup/mobile"]),this.end()}actionUrlFlow(o){(0,hi.Jj)()&&((0,hi.Jj)().location.href=o)}actionUrlFlowRedirectWithAuthCode(o){const A=this.browserStorageService.getLocalItem(au.B.keyId);A?this.getByAuthCode(o,A):this.oAuthService.handshake().subscribe(ee=>{this.browserStorageService.setLocalItem(au.B.keyId,ee.keyId),this.getByAuthCode(o,ee.keyId,!0)})}profileCompletionFlow(){this.routingAppService.navigate(["profile/completion"]),this.end()}forgetPasswordFlowRedirect(o){if(!o)return this.browserStorageService.removeLocalItem("isLogin"),void this.start();this.registerDataPassingService.authorizeModal=!1,this.registerDataPassingService.changePassword=!0,this.registerDataPassingService.resetPassword=!0,this.registerDataPassingService.params=new sS.r,this.registerDataPassingService.params.mobileNumber=o,hi.if||this.routingAppService.navigate(["signup/mobile"]),this.end()}forgetPasswordWaitingFlowRedirect(o){(o||"null"!==o)&&(this.registerDataPassingService.authorizeModal=!0),this.registerDataPassingService.changePassword=!0,this.routingAppService.navigate(["profile/change-password"],{queryParams:{getStatus:!0}}),this.end()}getByAuthCode(o,A,ee=!1){const he=new URL((0,hi.Jj)()?.location?.href);if(he.searchParams.get("state")){const Ye=he.searchParams.get("state"),bt=new d.LE({fromString:decodeURIComponent(Ye)});bt.keys().forEach(er=>{this.autoLoginQueryParam[er]=bt.get(er)}),this.browserStorageService.setLocalItem("auto_login",JSON.stringify(this.autoLoginQueryParam)),"payment"===this.autoLoginQueryParam?.type&&this.autoLoginQueryParam?.invoice_id?this.getByAuthCodeServie(o,A,ee,!0,410):this.getByAuthCodeServie(o,A,ee,!1)}else this.start()}getByAuthCodeServie(o,A,ee=!1,he=!1,Ye){this.oAuthService.getByAuthCode({authCode:o,clientIssuer:Ye??na.z.clientIssuer,deviceKeyId:A}).subscribe(bt=>{this.authService.saveToken(bt.token.accessToken);const er=(0,hi.Jj)()?.location.host;er.includes("web")||er.includes("levelup")||er.includes("pre-release")||er.includes("localhost")||this.claimService.isUserOnWhiteList().subscribe(mr=>{if(!mr.isOnTheWhiteList)try{this.wepodMainService.deleteCookie("keyId"),this.activeDevicesService.terminateCurrentSession().subscribe(Kr=>{this.authService.logoutClient()},()=>{this.authService.logoutClient()})}catch(Kr){console.error(Kr)}}),ee&&this.browserStorageService.setLocalItem("isLogin","true"),hi.if||this.referralService.canSubmitReferralCode().subscribe(mr=>{mr.canSubmitReferralCode&&localStorage.setItem("checkCanSubmit","1")}),he?this.routingAppService.navigate(["third-party/payment-gateway"],{replaceUrl:!0}).then(()=>{this.getProfileDataService.getValue(),this.end()}):this.routingAppService.navigate(["landing"]).then(()=>{this.end()})},()=>{this.handleErrorModal()})}end(){var o=this;return(0,Qe.Z)(function*(){yield o.minimumDelayPromise,o.hideSplashAnimation()})()}getAuthCode(){return new URL((0,hi.Jj)()?.location?.href).searchParams.get("code")}hideSplashAnimation(){this.wepodMainService.isEndedFinancialStatusRetryCount?(document.getElementsByClassName("app-splash-screen")[0].classList.add("fade-animation"),setTimeout(()=>{this.showSplash=!1},1e3*this.ANIMATION_DURATION)):this.wepodMainService.isRetryCount$.subscribe(o=>{(o||!o&&this.wepodMainService.isEndedFinancialStatusRetryCount)&&(document.getElementsByClassName("app-splash-screen")[0].classList.add("fade-animation"),setTimeout(()=>{this.showSplash=!1},1e3*this.ANIMATION_DURATION))})}handleErrorModal(){vr.j.data.next(null),vr.j.bgWhite=!0,vr.j.desktopStyle=!0,vr.j.hideDesktopHeaderClose=!0,vr.j.disableBackdropClosing=!0,vr.j.fullScreen.next(!1),vr.j.basicModalData.next(this.autoLoginQueryParam.redirect_url?{img:"/assets/images/receipt/unsuccess.svg",title:"\u062e\u0637\u0627\u06cc\u06cc \u0631\u062e \u062f\u0627\u062f",desc:["\u0645\u0634\u06a9\u0644\u06cc \u062f\u0631 \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u067e\u06cc\u0634 \u0622\u0645\u062f\u0647 \u0627\u0633\u062a. \u062f\u0631 \u0635\u0648\u0631\u062a \u062a\u0645\u0627\u06cc\u0644 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u062e\u0648\u062f \u0631\u0627 \u062a\u06a9\u0631\u0627\u0631 \u06a9\u0646\u06cc\u062f \u06cc\u0627 \u0628\u0647 \u0633\u0627\u06cc\u062a \u067e\u0630\u06cc\u0631\u0646\u062f\u0647 \u0628\u0627\u0632\u06af\u0631\u062f\u06cc\u062f."],extraClass:"activated-expense-modal",buttons:{first:{title:"\u062a\u0644\u0627\u0634 \u0645\u062c\u062f\u062f",action:()=>{location.reload()},green:!0},second:{title:"\u0628\u0627\u0632\u06af\u0634\u062a \u0628\u0647 \u0633\u0627\u06cc\u062a \u067e\u0630\u06cc\u0631\u0646\u062f\u0647",action:()=>{(0,hi.Jj)()?.location.replace(this.autoLoginQueryParam.redirect_url)},gray:!0}}}:{img:"/assets/images/receipt/unsuccess.svg",title:"",desc:["\u062e\u0637\u0627\u06cc\u06cc \u0631\u062e \u062f\u0627\u062f\u0647"],extraClass:"activated-expense-modal",buttons:{first:{title:"\u062a\u0644\u0627\u0634 \u0645\u062c\u062f\u062f",action:()=>{location.reload()},green:!0}}}),this.end(),(0,vr.h7)("basicModal")}}return T.\u0275fac=function(o){return new(o||T)(e.Y36(bh.e),e.Y36(j3.a),e.Y36(iS.C),e.Y36(jd.z),e.Y36(Go.X),e.Y36(L1.C),e.Y36(ua.s),e.Y36(td.g),e.Y36(xc.o),e.Y36(G3.U),e.Y36(nS.V))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-splash-screen"]],decls:2,vars:2,consts:[["class","app-splash-screen",3,"app-splash-screen-entrance",4,"ngIf"],["class","app-splash-screen",4,"ngIf"],[1,"app-splash-screen"],["id","bg-of-splash"],[2,"display","flex","justify-content","center","align-items","center","flex-direction","column"],["id","logo-center","width","130","height","155","viewBox","0 0 130 155","xmlns","http://www.w3.org/2000/svg",4,"ngIf"],["id","logo-center","style","max-width: 130px","alt","",3,"src",4,"ngIf"],["style","position: relative; margin: 12px 0;",4,"ngIf"],["width","130","height","31","viewBox","0 0 130 31","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",4,"ngIf"],["style","position:fixed; bottom: 36px; right: 50%; transform: translateX(50%)","width","60","height","85","viewBox","0 0 60 85","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",4,"ngIf"],["width","3292","height","2323","viewBox","0 0 3292 2323","xmlns","http://www.w3.org/2000/svg",2,"position","fixed","top","50%","right","50%","transform","translate(50%, -50%)"],["x1","50%","y1","0%","x2","50%","y2","100%","id","1qribowc2a"],["stop-color","#FFF","offset","0%"],["stop-color","#FFF","stop-opacity","0","offset","100%"],["x1","50%","y1","0%","x2","50%","y2","100%","id","rb4mmuq7ib"],["fill","none","fill-rule","evenodd","opacity",".1"],["d","M2202.924 0c-279.148-.38-558.452 95.374-771.765 287.39-213.312 191.995-320.237 443.893-320.664 695.957-.287 175.622 51.12 351.303 154.27 506.865 51.878 78.232 171.688 91.198 243.082 26.715l14.138-12.743c50.02-45.145 60.898-115.355 24.876-170.321-70.546-107.612-105.72-228.85-105.52-350.074.313-175.58 74.79-351.083 223.41-484.846 148.596-133.762 343.192-200.484 537.66-200.222 194.488.283 388.84 67.547 536.989 201.714 148.148 134.186 222.045 309.87 221.753 485.47-.288 175.584-74.79 351.083-223.406 484.85-.111.118-.246.219-.378.34l-521.203 470.47-122.535 110.716c-38.254 34.561-53.84 84.605-41.157 132.11v.04c15.364 57.506 65.096 102.412 128.789 116.262 52.656 11.454 108.13-2.662 146.405-37.26l122.47-110.678 511.62-462.04.065.06a894.252 894.252 0 0 0 9.513-8.468C3184.65 1490.29 3291.576 1238.392 3292 986.35c.422-252.042-105.628-504.222-318.296-696.823C2761.061 96.927 2482.07.406 2202.924 0z","fill","url(#1qribowc2a)"],["d","M1148.822 2321.104c-145.737 8.106-288.951-9.8-425.689-53.27-131.981-41.941-252.281-105.82-357.554-189.798-105.249-83.981-190.221-183.91-252.57-297.026C48.401 1663.82 11.106 1537.698 2.106 1406.114c-8.999-131.565 10.854-260.895 58.978-384.353 46.497-119.186 117.22-227.804 210.23-322.836 92.993-95.028 203.69-171.75 328.971-228.045 69.898-31.414 142.678-55.67 217.713-72.649 101.989-23.066-19.943 321.563-68.492 343.381-86.469 38.856-162.931 91.863-227.225 157.575-64.314 65.715-113.179 140.721-145.27 222.988-33.16 85.089-46.83 174.352-40.622 265.309 6.232 90.957 31.96 178.042 76.466 258.795 43.032 78.05 101.743 147.091 174.522 205.16 72.779 58.07 155.876 102.19 246.968 131.142 94.217 29.963 193.08 42.305 293.841 36.678 100.738-5.605 197.19-28.834 286.63-69.02 86.444-38.852 162.91-91.862 227.224-157.574 64.315-65.712 113.179-140.74 145.246-222.986 33.185-85.07 46.85-174.352 40.622-265.308-6.208-90.979-31.935-178.042-76.442-258.798-22.467-40.75-49.198-79.038-79.97-114.587-49.801-57.505-47.343-138.803 6.184-193.509 69.32-70.812 192.86-67.564 257.376 6.878 44.729 51.618 83.587 107.248 116.258 166.487 64.585 117.17 101.902 243.312 110.9 374.895 8.976 131.587-10.852 260.895-59.002 384.354-46.472 119.185-117.195 227.785-210.209 322.835-93.01 95.029-203.685 171.75-328.967 228.045-129.792 58.314-269.478 92.007-415.215 100.133z","fill","url(#rb4mmuq7ib)"],[3,"style","color",4,"ngIf"],["style","position: fixed; bottom: 16px; right: 50%; transform: translateX(50%); color: #82e4c8; font-size: 12px",4,"ngIf"],["id","logo-center","width","130","height","155","viewBox","0 0 130 155","xmlns","http://www.w3.org/2000/svg"],["fill","#FFF","fill-rule","evenodd"],["d","M63.515 148.984c.304-.018.893.013 1.453-.097 3.945-.777 6.686-3.081 8.308-6.724 1.015-2.282 1.278-4.682.906-7.152-.46-3.056-1.828-5.61-4.231-7.574-2.716-2.221-5.836-2.888-9.199-2.09-3.762.892-6.17 3.424-7.58 6.93-.779 1.935-.964 3.973-.76 6.066.254 2.607 1.155 4.911 2.866 6.906 2.1 2.445 4.71 3.769 8.237 3.735zm-1.864 5.986c-.113-.048-.223-.128-.34-.14-3.16-.33-5.967-1.537-8.448-3.49-3.62-2.85-5.89-6.561-6.71-11.094-.98-5.417.41-10.255 3.819-14.532 2.003-2.515 4.532-4.325 7.536-5.453 2.486-.934 5.052-1.216 7.697-.913 3.076.351 5.84 1.476 8.283 3.335 3.77 2.869 6.143 6.635 7.008 11.323.667 3.622.238 7.136-1.299 10.453-2.628 5.675-7.021 9.172-13.219 10.309-.338.062-.675.134-1.012.202H61.65zM37.538 137.557c-.065 1.68-.374 3.282-1.039 4.825-1.022 2.37-2.656 4.173-4.937 5.384-2.45 1.3-5.052 1.53-7.75 1.118-2.795-.426-5.34-1.51-7.795-2.871-.557-.31-.706-.683-.692-1.267.029-1.254.009-2.511.009-3.767l-.054-.002c.055-1.704.11-3.41.169-5.114.05-1.498.389-2.935.974-4.309 1.056-2.475 2.76-4.347 5.207-5.509 2.014-.956 4.164-1.193 6.327-.911 4.083.532 6.98 2.747 8.624 6.539.813 1.872 1.037 3.847.957 5.884m6.147-2.75a18.465 18.465 0 0 0-2.153-7.007c-1.66-3.051-4.056-5.329-7.187-6.84-2.9-1.399-5.972-1.93-9.149-1.688-4.533.344-8.445 2.116-11.53 5.513-1.993 2.195-3.359 4.75-3.957 7.677-.313 1.53-.395 3.083-.413 4.643-.011 1.103-.066 2.206-.113 3.308-.006.133.014 1.971.013 2.311-.01 3.493-.005 6.985-.005 10.478 0 .176-.005.351.001.528.022.587.035.608.674.612 1.205.007 2.41.003 3.615.003.427 0 .854.008 1.28-.005.51-.016.562-.057.567-.57.013-1.307 0-2.615.01-3.921.001-.296.046-.591.072-.887.38.015.519.35.727.572a305.472 305.472 0 0 1 3.418 3.711c.316.348.686.566 1.124.72 1.505.526 3.057.802 4.645.836 1.403.03 2.808.1 4.206-.146 2.77-.489 5.292-1.548 7.518-3.273 3.396-2.633 5.478-6.097 6.36-10.284.438-2.076.496-4.175.277-6.292M111.196 138.186a11.974 11.974 0 0 1-.974 4.309c-1.056 2.476-2.76 4.346-5.206 5.508-2.015.957-4.164 1.194-6.328.912-4.083-.533-6.98-2.747-8.624-6.539-.812-1.872-1.037-3.847-.957-5.884.065-1.68.374-3.282 1.039-4.825 1.023-2.371 2.657-4.174 4.937-5.384 2.45-1.3 5.052-1.53 7.75-1.119 2.795.427 5.34 1.512 7.795 2.872.557.31.706.683.693 1.267-.03 1.254-.01 2.511-.01 3.767.019 0 .036 0 .055.002-.057 1.704-.111 3.41-.17 5.114zm6.275-6.494a2.754 2.754 0 0 1-.021-.367c.01-3.492.005-6.985.005-10.477 0-.177.004-.352-.002-.528-.022-.588-.035-.609-.674-.613-1.204-.007-2.41-.003-3.615-.003-.427 0-.853-.01-1.28.005-.509.016-.561.057-.566.57-.013 1.307-.001 2.614-.01 3.92-.002.297-.047.592-.073.888-.379-.015-.518-.35-.727-.573a298.501 298.501 0 0 1-3.417-3.71c-.315-.348-.687-.567-1.124-.72a14.989 14.989 0 0 0-4.646-.836c-1.402-.03-2.809-.1-4.206.146-2.77.489-5.292 1.548-7.518 3.273-3.395 2.632-5.478 6.097-6.36 10.284-.438 2.076-.496 4.175-.277 6.292a18.46 18.46 0 0 0 2.154 7.006c1.66 3.05 4.055 5.329 7.186 6.84 2.9 1.398 5.972 1.93 9.149 1.69 4.533-.346 8.446-2.12 11.53-5.515 1.994-2.195 3.36-4.75 3.957-7.677.313-1.528.396-3.083.413-4.643.012-1.103.066-2.206.114-3.308 0-.023.004-.047.008-.07v-1.874zM86.871 0C75.965-.017 65.053 4.13 56.72 12.447c-8.334 8.315-12.511 19.225-12.528 30.141a42.627 42.627 0 0 0 6.027 21.953c2.027 3.388 6.708 3.95 9.497 1.157l.553-.552c1.954-1.956 2.379-4.996.972-7.377a29.69 29.69 0 0 1-4.123-15.161c.012-7.605 2.922-15.206 8.728-20.999a29.583 29.583 0 0 1 21.006-8.672 29.586 29.586 0 0 1 20.98 8.737c5.788 5.811 8.675 13.42 8.664 21.025-.012 7.605-2.922 15.206-8.728 20.999l-.015.015-20.363 20.376-4.788 4.795a6.082 6.082 0 0 0-1.608 5.721v.002a6.822 6.822 0 0 0 5.032 5.035 6.07 6.07 0 0 0 5.72-1.613l4.785-4.794 19.988-20.01.003.002c.125-.122.249-.244.372-.367 8.334-8.316 12.511-19.226 12.528-30.142.016-10.915-4.127-21.837-12.436-30.179C108.677 4.198 97.777.018 86.871 0"],["d","M45.689 100.526a41.988 41.988 0 0 1-16.632-2.307A42.125 42.125 0 0 1 15.087 90 42.16 42.16 0 0 1 5.22 77.135 42.08 42.08 0 0 1 .887 60.898a42.097 42.097 0 0 1 2.305-16.646 42.194 42.194 0 0 1 8.213-13.982 42.12 42.12 0 0 1 12.853-9.876 41.913 41.913 0 0 1 8.506-3.147c3.984-.999 7.903 1.838 8.156 5.942.193 3.14-1.866 5.991-4.916 6.749a29.092 29.092 0 0 0-14.794 9.006 29.143 29.143 0 0 0-5.675 9.657 29.07 29.07 0 0 0-1.587 11.49 29.133 29.133 0 0 0 9.806 20.094 29.097 29.097 0 0 0 9.648 5.68 28.96 28.96 0 0 0 11.48 1.588 28.982 28.982 0 0 0 11.199-2.989 29.113 29.113 0 0 0 8.877-6.824 29.135 29.135 0 0 0 7.262-21.148 29.118 29.118 0 0 0-6.11-16.171 6.559 6.559 0 0 1 .24-8.381c2.709-3.067 7.535-2.926 10.056.298a42.239 42.239 0 0 1 4.542 7.21 42.09 42.09 0 0 1 4.333 16.237c.35 5.699-.424 11.3-2.305 16.646a42.185 42.185 0 0 1-8.213 13.982 42.13 42.13 0 0 1-12.852 9.877 41.998 41.998 0 0 1-16.222 4.336"],["id","logo-center","alt","",2,"max-width","130px",3,"src"],[2,"position","relative","margin","12px 0"],["width","130","height","3","viewBox","0 0 130 3","xmlns","http://www.w3.org/2000/svg",2,"position","absolute","top","50%","right","50%","transform","translate(50%, -50%)"],["fill","#FFF","fill-rule","evenodd","fill-opacity",".6"],["d","M108.727 1.448 130 .856V2.04h-21.273zM21.273 1.448 0 .856V2.04h21.273z"],["width","59","height","33","viewBox","0 0 59 33","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink"],["id","a","d","M0 0h29.719v18.518H0z"],["fill","none","fill-rule","evenodd"],["fill","#F9F9F9","d","m21.844 30.604 1.998 1.995 1.97-1.97-1.997-1.995zM33.239 25.188l2.125-2.124 2.127 2.15-2.127 2.124-2.125-2.15zm5.388.026 2.15-2.126 2.127 2.15-2.125 2.126-2.152-2.15zM19.028 25.188l2.125-2.124 2.126 2.149-2.125 2.125-2.126-2.15zm5.388.026 2.15-2.126 2.127 2.15-2.126 2.126-2.15-2.15zM5.96 19.192c-.324 0-.646-.016-.963-.051a13.626 13.626 0 0 1-1.969-.367c-.345-.09-.706-.191-1.083-.302l-1.49-.451.901-3.002.518.172c.575.183 1.163.348 1.768.497.806.198 1.573.329 2.282.389.245.02.478.03.699.03.428 0 .82-.038 1.164-.116.353-.078.625-.213.831-.412l.452-.438-.235-.585a2.012 2.012 0 0 0-.225-.404L3.822 7.17l2.633-1.705 4.578 6.958c.435.656.705 1.34.801 2.035.099.692.01 1.361-.26 1.988-.146.34-.34.653-.58.935a4.267 4.267 0 0 1-.85.76c-.604.416-1.34.705-2.19.857-.717.129-1.388.193-1.994.193"],["transform","translate(15.21 .662)"],["id","b","fill","#fff"],[0,"xlink","href","#a"],["d","m17.686 18.518-.37-.008a6.195 6.195 0 0 1-1.628-.286 4.248 4.248 0 0 1-1.042-.5l-.503-.337-.514.32a4.774 4.774 0 0 1-1.206.528 7.72 7.72 0 0 1-1.829.275l-.413.008H5.712c-.74-.025-1.376-.081-1.917-.174-.673-.114-1.247-.288-1.703-.512a3.127 3.127 0 0 1-1.101-.858 3.731 3.731 0 0 1-.632-1.222 7.536 7.536 0 0 1-.289-1.597c-.037-.477-.06-.995-.068-1.553L0 0h3.117l.002 12.46c.007.563.029 1.02.069 1.375.05.424.18.755.388.99.21.235.528.392.944.467.358.063.818.099 1.408.108l4.253.002.257-.004a3.856 3.856 0 0 0 1.02-.147c.32-.1.568-.23.732-.382l.12-.11.074-.143a1.59 1.59 0 0 0 .191-.627l.008-.174V9.682h3.106l.005 4.197c.034.434.163.662.266.792.174.22.378.39.603.5.22.11.447.176.668.199.173.017.302.028.385.031l7.28.001c.19-.008.309-.023.454-.045.203-.032.405-.115.602-.248.199-.132.376-.336.526-.604.15-.268.225-.639.225-1.102 0-.19-.015-.421-.044-.694-.03-.274-.072-.566-.125-.878-.05-.308-.109-.626-.173-.949l-.187-.912a18.487 18.487 0 0 0-.182-.795l-.132-.5 2.935-.889.11.398c.05.201.113.473.182.794a54.967 54.967 0 0 1 .42 2.27c.063.4.114.788.153 1.167.039.377.059.706.059.988 0 .876-.147 1.644-.436 2.284-.289.641-.671 1.176-1.138 1.591a4.705 4.705 0 0 1-1.579.933 5.406 5.406 0 0 1-1.406.295l-.356.012h-7.118z","fill","#F9F9F9","mask","url(#b)"],["d","M53.129 11.045c-.742 0-1.342.236-1.78.7-.438.465-.66 1.192-.66 2.165 0 .387.078.72.233.993.151.268.35.493.591.665.251.177.516.299.815.378.223.059.448.096.672.11l.22.007 2.041.002-.007-2.081a5.342 5.342 0 0 0-.113-.995 3.485 3.485 0 0 0-.308-.883 1.987 1.987 0 0 0-.916-.889 1.734 1.734 0 0 0-.438-.138 2.387 2.387 0 0 0-.35-.034zm-4.214 11.952.355-.002a19.79 19.79 0 0 0 1.441-.07c.535-.046 1.02-.115 1.441-.206a5.67 5.67 0 0 0 1.107-.352c.316-.144.595-.317.83-.516.368-.298.647-.642.836-1.038.062-.13.117-.277.163-.442l.333-1.182-2.651-.02a9.2 9.2 0 0 1-.862-.092 5.536 5.536 0 0 1-2.44-.998 4.088 4.088 0 0 1-.943-.976 4.88 4.88 0 0 1-.64-1.375 6.451 6.451 0 0 1-.236-1.818c0-.587.053-1.116.155-1.571.102-.456.233-.864.39-1.21.157-.347.335-.654.531-.915.197-.26.385-.49.565-.686a5.505 5.505 0 0 1 1.74-1.182 5.324 5.324 0 0 1 2.099-.416c.926 0 1.73.161 2.388.48a4.376 4.376 0 0 1 1.623 1.322c.42.557.731 1.231.927 2.002.164.642.261 1.34.288 2.075l.009.45v4.584l-.009.418c-.037 1.084-.228 2.028-.57 2.794a5.862 5.862 0 0 1-1.754 2.235c-.39.306-.825.576-1.283.801-.457.225-.98.417-1.555.572-.57.153-1.217.268-1.923.34-.561.058-1.194.093-1.879.106l-.476.004v-3.116z","fill","#F9F9F9"],["width","130","height","31","viewBox","0 0 130 31","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink"],["id","a","d","M0 0h8.787v10.422H0z"],["id","c","d","M0 0h4.093v4.098H0z"],["id","e","d","M0 29.572h130V0H0z"],["transform","translate(0 .428)","fill","none","fill-rule","evenodd"],["transform","translate(0 8.248)"],["d","M4.32 10.422c-.235 0-.467-.013-.697-.037a9.42 9.42 0 0 1-1.4-.262c-.232-.06-.48-.13-.74-.207L0 9.466l.902-3.004.467.16c.49.167.996.317 1.52.447a9.537 9.537 0 0 0 1.45.247c.15.013.292.02.426.02.14 0 .271-.008.393-.021l.794-.085-3.777-5.527L4.798 0l1.205 1.86 2.138 3.232c.331.5.539 1.03.616 1.574.077.56.006 1.101-.212 1.605a3.04 3.04 0 0 1-.467.758c-.193.224-.42.427-.67.599-.463.32-1.022.54-1.662.656-.51.092-.99.138-1.427.138","fill","#82E4C8","mask","url(#b)"],["d","m14.17 18.66-.253-.065a6.887 6.887 0 0 1-.433-.058 4.753 4.753 0 0 1-1.275-.387 2.65 2.65 0 0 1-.913-.716 3.055 3.055 0 0 1-.51-.988 5.407 5.407 0 0 1-.214-1.18c-.033-.415-.05-.87-.05-1.37V5.216h3.104v8.682c0 .44.013.791.044 1.055l.03.257.23.117c.422.21.826.227 1.272.227h4.681c.084 0 .202-.003.35-.011l.718-.04-.314-.648a8.625 8.625 0 0 0-.712-1.117 15.422 15.422 0 0 0-.96-1.172c-.363-.403-.72-.782-1.075-1.135a19.283 19.283 0 0 0-.993-.936 11.217 11.217 0 0 0-.73-.6l-.215-.158.221-2.5 8.222-3.768 1.157 2.772-6.112 2.701.488.495a34.194 34.194 0 0 1 1.475 1.58c.293.333.568.666.824 1.002.26.337.492.67.697.993.212.34.379.664.496.963.108.263.187.535.233.791.047.257.07.49.07.7a3.046 3.046 0 0 1-.247 1.234c-.086.193-.208.4-.373.625-.177.24-.42.463-.724.661a4.156 4.156 0 0 1-1.093.483c-.437.13-.945.192-1.55.192H14.17z","fill","#82E4C8"],["fill","#82E4C8","d","M16.27 3.186 23.543.02l.849 1.831-8.336 3.644zM22.316 23.315v-3.108h1.547c.51 0 .949-.053 1.307-.156.328-.092.588-.236.792-.435a1.86 1.86 0 0 0 .46-.797c.112-.362.167-.814.167-1.344v-5.752h3.104v5.935c-.038.865-.194 1.635-.476 2.332a5.286 5.286 0 0 1-1.18 1.79 5.147 5.147 0 0 1-1.819 1.14c-.695.262-1.487.395-2.355.395h-1.547z"],["transform","translate(57.318 25.473)"],["id","d","fill","#fff"],[0,"xlink","href","#c"],["fill","#82E4C8","mask","url(#d)","d","M0 2.04 2.038 0l2.055 2.057-2.038 2.042z"],["d","M56.814 18.594a6.346 6.346 0 0 1-.405-.057 4.75 4.75 0 0 1-1.28-.387 2.623 2.623 0 0 1-.911-.716 3.069 3.069 0 0 1-.512-.988 5.552 5.552 0 0 1-.213-1.181c-.034-.414-.05-.87-.05-1.368V5.214h3.103v8.683c0 .44.014.791.045 1.055l.028.257.233.116c.42.212.824.228 1.27.228h3.427c.062-.001.136-.01.227-.025l.22-.035.115-.19c.101-.169.14-.332.14-.584 0-.113-.01-.248-.027-.41-.02-.175-.045-.361-.078-.56a18.785 18.785 0 0 0-.114-.621l-.124-.612c-.04-.185-.079-.357-.119-.509l-.212-.807 2.934-.886.132.461.08.309c.038.148.08.338.128.563a32.072 32.072 0 0 1 .285 1.548c.044.275.081.546.107.81.027.27.041.509.041.714 0 .66-.112 1.247-.335 1.742a3.66 3.66 0 0 1-.886 1.239 3.662 3.662 0 0 1-1.229.725 3.99 3.99 0 0 1-1.342.235l-4.678-.066zM92.35 2.25 94.57 0l2.265 2.267-2.246 2.25zM75.85 18.66c-.481 0-.943-.083-1.376-.247a3.519 3.519 0 0 1-1.17-.73 4.474 4.474 0 0 1-.404-.45 3.27 3.27 0 0 1-.393-.65 4.367 4.367 0 0 1-.381-1.828c0-.315.032-.658.095-1.02a15.697 15.697 0 0 1 .41-1.792c.065-.227.107-.369.126-.424l.15-.445 2.951.936-.153.458a15.327 15.327 0 0 0-.44 1.818c-.03.183-.044.343-.044.477 0 .18.019.325.057.433l.075.211.438.163 5.206.036c.62 0 1.158-.018 1.616-.055a9.335 9.335 0 0 0 1.14-.152c.232-.048.422-.105.564-.168l.363-.16-.09-.385a1.967 1.967 0 0 0-.144-.426 4.176 4.176 0 0 0-.23-.423 9.68 9.68 0 0 0-.296-.447 83.897 83.897 0 0 0-1.14-1.545l-.818-1.072c-.182-.228-.59-.73-.81-1.004l.569-2.315 8.358-3.942 1.273 2.846-6.708 3.081 2.312 3.135c.315.433.597.81.846 1.133.243.314.465.585.672.812.192.21.378.386.555.528a2.21 2.21 0 0 0 1.026.457c.209.034.436.05.69.05h2.136c.064-.002.137-.011.228-.025l.218-.035.116-.19c.1-.166.141-.33.141-.585a3.9 3.9 0 0 0-.027-.412 11.18 11.18 0 0 0-.078-.557 15.76 15.76 0 0 0-.115-.622l-.121-.595c-.042-.202-.08-.372-.12-.523l-.213-.81 2.934-.886.132.462.08.308c.036.147.08.337.128.562.046.217.094.462.144.732.05.27.096.543.14.814.045.279.082.55.108.813.028.272.042.51.042.714 0 .66-.113 1.246-.336 1.742-.222.494-.52.91-.886 1.238a3.654 3.654 0 0 1-1.23.726c-.44.157-.891.235-1.345.235l-3.24-.091c-.055-.012-.164-.031-.269-.055a4.792 4.792 0 0 1-2.124-1.072l-.336-.294-.356.284c-.136.138-.284.26-.445.368-.432.29-.927.504-1.47.638a8.556 8.556 0 0 1-1.718.23c-.593.024-1.215.035-1.867.036l-5.146-.044zM101.785 18.583c-.083-.011-.202-.027-.316-.046a4.758 4.758 0 0 1-1.277-.387 2.639 2.639 0 0 1-.913-.716 3.02 3.02 0 0 1-.51-.989 5.61 5.61 0 0 1-.215-1.18 17.81 17.81 0 0 1-.048-1.368V5.215h3.102v8.682c0 .44.015.79.045 1.055l.03.258.231.116c.421.211.824.228 1.27.228h1.905c.063-.001.135-.01.226-.025l.222-.036.115-.19c.1-.168.138-.332.138-.583 0-.113-.01-.25-.026-.411a16.117 16.117 0 0 0-.194-1.18l-.121-.595c-.043-.203-.08-.374-.12-.526l-.213-.807 2.934-.888.132.463.08.307c.037.149.08.339.128.563a32.371 32.371 0 0 1 .284 1.545c.046.28.082.55.11.814.026.27.04.51.04.715 0 .66-.113 1.246-.336 1.74a3.669 3.669 0 0 1-.886 1.24 3.654 3.654 0 0 1-1.229.726 4.03 4.03 0 0 1-1.34.235l-3.248-.078zM101.782 23.157l2.222-2.248 2.264 2.265-2.246 2.251z","fill","#82E4C8"],["id","f","fill","#fff"],[0,"xlink","href","#e"],["fill","#82E4C8","mask","url(#f)","d","M111.608 18.66h3.104V5.214h-3.104zM119.505 2.18l2.082-2.174 2.165 2.168-2.133 2.147z"],["fill","#82E4C8","mask","url(#f)","d","m123.72 2.177 2.093-2.172 2.164 2.169-2.143 2.145zM55.123 23.35l2.082-2.175 2.166 2.169-2.133 2.146z"],["fill","#82E4C8","mask","url(#f)","d","m59.339 23.347 2.092-2.173 2.165 2.17-2.144 2.145zM114.404 23.315v-3.108h1.554c.51 0 .95-.053 1.308-.156.33-.094.59-.236.792-.436.206-.202.356-.462.46-.796.11-.36.168-.812.168-1.344v-5.752h3.104l.002 3.181.242.487.531.165 3.7-.002a1.59 1.59 0 0 0 .227-.027l.218-.034.115-.189c.103-.167.142-.332.142-.585 0-.112-.01-.25-.027-.413-.02-.173-.047-.36-.08-.557-.033-.203-.07-.411-.112-.622l-.125-.611c-.04-.184-.078-.356-.118-.51l-.212-.805 2.932-.887.133.462.08.307a27.778 27.778 0 0 1 .414 2.111c.044.277.08.547.105.81.029.273.043.51.043.715 0 .66-.114 1.246-.336 1.742-.222.494-.52.91-.887 1.238-.363.324-.777.57-1.228.726-.44.156-.893.235-1.346.235h-4.523l-.089.366a6.397 6.397 0 0 1-.37 1.095 5.38 5.38 0 0 1-1.193 1.707 5.273 5.273 0 0 1-1.782 1.101c-.682.256-1.453.386-2.288.386h-1.554zM34.772 18.579c-.074-.01-.182-.025-.285-.042a4.693 4.693 0 0 1-1.276-.388 2.611 2.611 0 0 1-.912-.715 3.057 3.057 0 0 1-.512-.989 5.51 5.51 0 0 1-.213-1.18c-.034-.414-.05-.87-.05-1.368V5.215h3.103v8.682c0 .171.004.32.008.465l.016.463h3.708v-3.1h2.511v3.1h2.248v-3.1h2.503v3.1h2.272l-.04-.515a10.43 10.43 0 0 0-.079-.604c-.03-.19-.066-.388-.104-.588l-.117-.571-.2-.823-.115-.446.429-.15 2.491-.817.138.472c.019.074.201.843.201.843.049.215.1.457.154.721.052.266.1.53.145.8.045.272.082.535.111.794.032.274.048.512.048.718 0 .652-.113 1.237-.332 1.737-.217.499-.508.921-.866 1.256a3.55 3.55 0 0 1-1.216.755 4.044 4.044 0 0 1-1.342.253h-.077c-.865-.009-1.612-.195-2.221-.552l-.246-.146-.246.15c-.21.13-.432.234-.66.313a4.19 4.19 0 0 1-1.334.22c-.878 0-1.636-.181-2.252-.535l-.247-.141-.241.148a3.43 3.43 0 0 1-.669.318 4.14 4.14 0 0 1-1.35.226l-2.884-.082z"],["width","60","height","85","viewBox","0 0 60 85","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",2,"position","fixed","bottom","36px","right","50%","transform","translateX(50%)"],["id","path-1","points","0.115878239 0.0872480461 3.00152201 0.0872480461 3.00152201 2.26244344 0.115878239 2.26244344"],["id","path-3","points","0.145252585 0.170074044 5.28280543 0.170074044 5.28280543 7.24953454 0.145252585 7.24953454"],["id","path-5","points","0 0.0712669683 3.85910796 0.0712669683 3.85910796 5.9613842 0 5.9613842"],["id","path-7","points","0 66 60 66 60 0 0 0"],["id","Page-1","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","0.SplashScreen","transform","translate(-158.000000, -663.000000)"],["id","Group","transform","translate(158.000000, 663.000000)"],["id","Group-26","transform","translate(0.000000, 71.000000)"],["d","M29.2493418,3.8622789 L28.5389346,4.40135747 L28.0064377,4.82628548 C27.8945496,4.91390374 27.8346977,5.05252982 27.847861,5.19424105 L27.847861,6.66544632 C27.8451872,6.79378856 27.7470794,6.89991773 27.6195599,6.91287536 C27.5625874,6.91925134 27.5052036,6.91925134 27.4482312,6.91287536 L25.9959482,6.91287536 C25.9453517,6.91904566 25.8943439,6.91904566 25.8437474,6.91287536 L25.8437474,3.84335664 C25.5457219,4.03977787 25.2857466,4.22385849 25.0446935,4.40135747 L24.4548128,4.87708762 C24.3807692,4.93138626 24.3400452,5.02003291 24.3470383,5.11176471 L24.3470383,6.53237351 C24.3680173,6.71665981 24.2355615,6.88325792 24.0510695,6.90444262 C24.0377005,6.90567668 24.0243316,6.90649938 24.0107569,6.90649938 L22.2732003,6.90649938 L22.2732003,3.85590292 L21.5311189,4.40773344 L21.0111682,4.82628548 C20.8949609,4.91081859 20.8342863,5.05170712 20.8525915,5.19424105 L20.8525915,6.5006993 C20.8525915,6.81785274 20.7573632,6.91925134 20.4593377,6.91925134 L18.4679761,6.91925134 C18.4216989,6.92542164 18.3745989,6.92542164 18.3283217,6.91925134 L18.3283217,1.98506787 C17.8464212,2.35302345 17.3708968,2.70802139 16.8951666,3.04409708 C16.8131016,3.1144385 16.7744344,3.22324146 16.7935623,3.32957631 L16.7935623,8.97396133 L20.5987865,8.97396133 C20.8120732,8.96737968 21.0243316,8.94187577 21.2330934,8.89786096 C21.6172974,8.83286713 21.9330111,8.55870012 22.0510695,8.1876594 L22.0510695,8.02270671 L22.0510695,8.91698889 C22.0510695,8.91698889 22.1590498,8.96141506 22.1715961,8.96141506 L23.046956,8.96141506 L24.4737351,8.96141506 C24.9554299,8.96079803 25.3824146,8.6514603 25.53297,8.1938297 L25.6090703,8.12410531 L25.6090703,8.52373509 C25.5897367,8.6664747 25.6026944,8.81168244 25.6471205,8.9486631 L27.7335047,8.9486631 C27.8832374,8.9451666 28.0319416,8.92624434 28.1775607,8.89169066 C28.6312834,8.80160428 28.9850473,8.44537227 29.0718429,7.9910325 C29.1744755,7.66400658 29.2343274,7.32484574 29.2493418,6.98239408 L29.2493418,4.00172768 C29.2557178,3.95565611 29.2557178,3.90855615 29.2493418,3.8622789","id","Fill-1","fill","#82E4C8"],["d","M51.8205677,3.8622789 L51.0342657,4.40135747 L50.444385,4.83903743 C50.3174825,4.91554916 50.2479638,5.05993418 50.2668861,5.20678733 L50.2668861,6.52599753 C50.2668861,6.93817359 50.1844097,7.07145208 49.7911559,7.07145208 L48.560798,7.07145208 L48.5227478,6.87482517 C48.4746195,6.49473468 48.2728507,6.15084327 47.9645413,5.92336487 C47.6920197,5.71419169 47.4256684,5.4795146 47.1529412,5.25758947 L46.5186343,4.75018511 L46.9943645,4.39498149 C47.7489922,3.88140683 48.5038256,3.38037845 49.2584533,2.84129988 C49.2068285,2.83615796 49.155615,2.82546277 49.1062526,2.80941999 L47.3304401,2.80941999 C47.2058001,2.81497326 47.0860963,2.85939942 46.9879885,2.9363225 L44.8697244,4.40135747 L44.5527766,4.63603455 L44.4003702,4.76931304 C44.4394488,4.81065405 44.4818182,4.84890991 44.5272727,4.88325792 L46.2903332,6.25964624 C46.3545043,6.30900864 46.4160016,6.36186754 46.4742081,6.41822295 C46.5645002,6.48547923 46.6025504,6.60230358 46.5694364,6.70987248 C46.4742081,6.97622378 46.0937063,6.98897573 46.0620321,6.98897573 C44.5527766,6.98897573 42.0285068,7.05870012 40.5254216,7.05870012 L40.4556972,7.05870012 C40.3170712,7.08173591 40.1755656,7.04204031 40.0688194,6.95092555 C39.963513,6.85775401 39.9034554,6.72365282 39.9040724,6.58296997 L39.9040724,3.81785274 C39.586919,4.02085561 39.2697655,4.21110654 39.0287125,4.40135747 L38.3185109,4.9151378 C38.2415878,4.98074866 38.203332,5.08111888 38.2169066,5.1814891 L38.2169066,7.08420403 C38.2220485,7.31456191 38.2498149,7.5438914 38.299383,7.76910736 C38.3818593,8.29502262 38.7514603,8.73064582 39.2572193,8.89786096 C39.5231592,8.98321678 39.8022624,9.02167832 40.0815714,9.01201152 L46.0937063,9.01201152 C46.3473056,9.01221719 46.6000823,8.98671329 46.8485397,8.93591115 C47.4707116,8.82093789 48.0110243,8.43837927 48.3261209,7.8896339 C48.3261209,7.8322501 48.3261209,7.76910736 48.3641711,7.71192925 L48.3641711,8.98033731 L49.4487042,8.98033731 C49.8119292,9.00172768 50.1761826,9.00172768 50.5394077,8.98033731 C51.1965446,8.96162073 51.730687,8.44434389 51.7697655,7.78782394 C51.827972,7.45709585 51.8577951,7.12184286 51.8586179,6.78597285 L51.8586179,4.08420403 C51.8310572,4.01365693 51.8180995,3.93817359 51.8205677,3.8622789","id","Fill-3","fill","#82E4C8"],["d","M9.91252571,2.81581654 L9.91252571,2.81581654 C9.76135335,2.81581654 9.61532291,2.8699095 9.50034965,2.96801728 L7.59784039,4.39500206 L7.39483752,4.56633073 L7.17291238,4.75658165 L7.3376594,4.91515837 L8.90429864,6.25329083 C8.97957631,6.31273139 9.04765529,6.38081037 9.10709585,6.45629371 C9.1745578,6.53712464 9.19821061,6.64613328 9.17064994,6.74794323 C9.13918141,6.84831345 9.06472645,6.92955574 8.96764706,6.96986837 L7.01433566,6.96986837 C6.96353353,6.96986837 6.91910736,6.88739202 6.91910736,6.87484574 L6.91910736,1.95958453 C6.55135747,2.04206088 6.64638009,2.09286302 6.57027972,2.14366516 C6.20252982,2.42256273 5.78397779,2.70166598 5.40964624,2.97439325 C5.28685726,3.04987659 5.21425339,3.18541752 5.21960099,3.32959687 L5.21960099,8.98038095 L8.82819827,8.98038095 C9.02009461,8.98118058 9.2115796,8.95999589 9.39874537,8.91700946 C10.0587618,8.76336898 10.5959893,8.28578774 10.8257302,7.6486014 C11.0809749,7.04473468 10.9080008,6.34502262 10.4010078,5.92976142 C10.2804813,5.83473879 10.178877,5.73313451 10.0711024,5.63811189 L9.11347182,4.78187988 L9.54477581,4.43305224 L9.76670095,4.27447552 L10.4010078,3.79257507 C10.610181,3.64037433 10.8195599,3.48817359 11.035109,3.31684492 C11.261559,3.17924722 11.4738174,3.02005348 11.6694159,2.84132044 L9.91252571,2.84132044 L9.91252571,2.81581654 Z","id","Fill-5","fill","#82E4C8"],["id","Group-9","transform","translate(54.298643, 10.427931)"],["id","mask-2","fill","white"],[0,"xlink","href","#path-1"],["id","Clip-8"],["d","M0.115878239,1.16519951 L1.54265734,2.26248457 L3.00152201,1.19687371 C2.58296997,0.861003702 2.01838749,0.435870012 1.57453723,0.0872480461 L0.115878239,1.16519951 Z","id","Fill-7","fill","#82E4C8","mask","url(#mask-2)"],["id","Group-12","transform","translate(53.475936, 1.789510)"],["id","mask-4","fill","white"],[0,"xlink","href","#path-3"],["id","Clip-11"],["d","M5.27013575,2.29471411 L5.27013575,2.12338544 L5.18128342,2.1616413 L4.50275607,2.63737145 L3.82422871,3.1192719 C3.75121349,3.17151378 3.71048951,3.25789798 3.71624846,3.34757302 L3.71624846,4.73650761 C3.71624846,4.99010695 3.62122583,5.11063348 3.34849856,5.13593172 L2.01674208,5.13593172 L1.82011518,5.13593172 L1.82011518,0.170074044 L1.69321267,0.240004114 C1.21748252,0.550781571 0.786384204,0.874105306 0.317030029,1.19125874 C0.205347594,1.25378445 0.139119704,1.37431098 0.145701357,1.5020362 L0.145701357,7.20976964 L2.80304401,7.2480255 L3.27877417,7.2480255 C3.47396133,7.2541958 3.66935418,7.24144385 3.8622789,7.20976964 C4.53792678,7.24740847 5.12410531,6.74781983 5.19403538,6.07443439 C5.25224188,5.78011107 5.28185932,5.48064582 5.2828877,5.18035788 L5.2828877,2.64354175 C5.27651172,2.51684492 5.27013575,2.39631839 5.27013575,2.29471411","id","Fill-10","fill","#82E4C8","mask","url(#mask-4)"],["d","M30.7017483,8.98037845 L34.6653435,8.98037845 C34.8792472,8.97996709 35.0919169,8.95425751 35.2996503,8.90427807 C35.6865282,8.84031263 36.0073838,8.57025915 36.1367544,8.20024681 C36.1873509,8.05586179 36.2256067,7.90715755 36.250905,7.75639654 C36.3206294,7.17988482 36.3461333,6.59884821 36.3270053,6.01863431 L36.3270053,3.89399424 L36.1748046,3.98284657 L35.6231798,4.4013986 C35.4899013,4.51554916 35.3504525,4.61694776 35.217174,4.71834636 C34.964603,4.87157548 34.8292678,5.16219663 34.8747223,5.45405183 C34.9063965,5.8220074 34.8747223,6.19613328 34.8747223,6.57025915 C34.8747223,6.80493624 34.792246,6.90016454 34.5830728,6.91929247 L32.3253599,6.91929247 C32.2646853,6.93183875 32.2019539,6.93183875 32.141485,6.91929247 L32.141485,1.9596051 C32.141485,2.00403126 32.0590086,2.01678322 32.0335047,2.03570547 C31.6149527,2.34648293 31.2091526,2.67001234 30.7650967,2.98716578 C30.6713081,3.05586179 30.620506,3.16918963 30.6320239,3.28519128 L30.6320239,8.78375154 C30.6651378,8.84524887 30.6887906,8.91147676 30.7017483,8.98037845","id","Fill-13","fill","#82E4C8"],["id","Group-17","transform","translate(0.000000, 3.023571)"],["id","mask-6","fill","white"],[0,"xlink","href","#path-5"],["id","Clip-16"],["d","M3.31690662,2.91886055 L1.62357055,1.37772522 L0.760962567,0.654771699 L0.0760592349,0.0712669683 L0.0760592349,1.49825175 C0.0561085973,1.68438914 0.138584944,1.866413 0.291814068,1.9739819 L1.81382147,3.28681613 C1.8876594,3.3479021 1.9555327,3.4157754 2.01682435,3.48961333 C2.06166187,3.544529 2.08037845,3.61651584 2.06742081,3.68624023 C2.05240642,3.75761004 2.00571781,3.81828466 1.94072398,3.85119292 C1.85187166,3.90939942 1.75294118,3.95053476 1.64886878,3.97171946 C1.42056767,3.97171946 -4.11353353e-05,3.91454134 -4.11353353e-05,3.92729329 L-4.11353353e-05,5.95691074 C0.050555327,5.96287536 0.101563143,5.96287536 0.152159605,5.95691074 L1.78214726,5.95691074 C1.95923488,5.95485397 2.13591115,5.9334636 2.30847388,5.89335664 C2.96108597,5.75946113 3.50098725,5.30327026 3.74183464,4.68192102 C3.99749074,4.06427396 3.8259564,3.35222131 3.31690662,2.91886055","id","Fill-15","fill","#82E4C8","mask","url(#mask-6)"],["d","M15.3729947,3.84960921 L14.6627931,4.40143974 L14.0792884,4.88334019 C13.9978404,4.95450432 13.9575278,5.06166187 13.9715138,5.16881942 L13.9715138,6.43722748 C13.9842657,6.51682435 13.9842657,6.59827232 13.9715138,6.67807487 C13.9332579,6.85577951 13.8762855,6.98885232 13.7051625,7.00798026 L12.4748046,7.00798026 L12.2401275,7.00798026 L12.2401275,9.02484574 L12.3479021,9.02484574 L13.3246606,9.02484574 L14.1681407,9.02484574 C14.8022419,8.96746195 15.201666,8.73299054 15.3540724,7.85783628 C15.4048745,7.55384615 15.4301728,7.24615385 15.4301728,6.93805019 L15.4301728,4.0842863 C15.4258536,4.0137392 15.4151584,3.94360346 15.3984986,3.87490745 L15.3729947,3.84960921 Z","id","Fill-18","fill","#82E4C8"],["d","M35.0903538,11.5360757 L33.9488482,10.5467709 C33.5111682,10.8764706 33.1242904,11.2318799 32.6804401,11.5299054 L31.5387289,10.5340189 C31.1201769,10.9019745 30.6827026,11.2252982 30.2703209,11.6060058 L31.5006787,12.6839572 L32.7629165,11.6946524 L33.8980461,12.6839572 L35.122028,11.6946524 L36.2699095,12.6839572 L37.0817153,12.049856 L37.5954957,11.6566022 L37.0944673,11.2505965 L36.3079597,10.5720691 L35.0903538,11.5360757 Z","id","Fill-20","fill","#82E4C8"],["id","Fill-22","fill","#82E4C8","points","50.4761209 0.964027149 51.8459276 1.95970794 53.2729124 1.00207733 51.8776018 2.05676676e-05"],["d","M10.3945907,1.90261209 L9.4369601,1.90261209 C9.34234883,1.89603044 9.2473262,1.90898807 9.15785685,1.94066228 C8.96225833,2.03198272 8.78229124,2.15415467 8.62515426,2.3020362 C8.14942411,2.64448787 7.67389963,2.99352118 7.23621966,3.34234883 C7.17287125,3.38656931 7.0903949,3.46266968 7.08401892,3.5198478 L7.08401892,4.36332785 L10.3945907,1.90261209 Z","id","Fill-24","fill","#82E4C8"],["id","Group-33"],["d","M32.2392274,7.20464119 C32.1796324,7.98513936 31.7987788,8.70604694 31.188138,9.19607563 L31.188138,9.82829024 L29.9230611,9.82829024 L29.9230611,9.19607563 C29.3235077,8.7016123 28.9479207,7.98707952 28.8802873,7.21323332 C28.7777285,6.26449566 28.0254457,4.82877813 28.0254457,4.50394011 C28.0254457,4.17910209 28.6837624,4.72622688 29.1707783,5.12783975 C29.6550222,5.63532987 30.1004601,6.17802001 30.5043201,6.75175268 C30.9164957,6.17996016 31.3674774,5.63727003 31.8544932,5.12783975 C32.3417862,4.72622688 32.991233,4.14501073 32.991233,4.50394011 C32.991233,4.86286949 32.3589717,6.28167992 32.2306346,7.21323332 L32.2392274,7.20464119 Z M28.9914389,3.8886326 C29.3182412,4.23093205 29.6051287,4.60926302 29.8460034,5.01669637 L29.957155,4.92273725 C29.6771971,4.53914014 29.4449152,4.12283749 29.2650215,3.6835301 C29.24645,3.48147641 29.3952989,3.30242747 29.5976447,3.28413455 C29.7234872,3.27249359 29.8462806,3.32654088 29.9230611,3.42715197 C30.0935305,3.86507353 30.2138292,4.32101085 30.282017,4.78581747 L30.375983,4.78581747 C30.2398847,4.34595575 30.1708654,3.8878011 30.1708654,3.42715197 C30.1700338,3.32903536 30.2066224,3.23424475 30.2734242,3.16218171 C30.3435523,3.09150449 30.4389042,3.05159265 30.538414,3.05103832 L30.6578812,3.05103832 C30.7576682,3.05159265 30.8530201,3.09150449 30.922871,3.16218171 C30.9896728,3.23424475 31.0265386,3.32903536 31.025707,3.42715197 C31.025707,3.8878011 30.9566877,4.34595575 30.8203122,4.78581747 L30.9145554,4.78581747 C30.9838519,4.32211951 31.1013788,3.86673652 31.2649185,3.42715197 C31.3660914,3.27637391 31.5620619,3.2217723 31.7264332,3.29882432 C31.8860924,3.3545346 31.9831075,3.51639927 31.957052,3.6835301 C31.7716146,4.12200599 31.5365608,4.53775431 31.2563258,4.92273725 L31.3247907,4.92273725 C31.5626163,4.51336374 31.8495038,4.13447844 32.1793552,3.79467348 C32.2827456,3.7478325 32.4008268,3.7478325 32.5042172,3.79467348 C32.6062216,3.84234595 32.6816162,3.93325625 32.7093348,4.04245948 C32.7176504,4.15304853 32.6838337,4.26280609 32.6153688,4.35011323 L31.5640022,5.2988509 L31.2818269,5.55522903 C31.2399718,5.17994688 30.9015277,4.90998764 30.5262178,4.9521168 C30.2088399,4.98759399 29.9585409,5.23787448 29.9230611,5.55522903 L29.6153846,5.39281002 L28.5554253,4.42716526 C28.4866832,4.33985811 28.4531437,4.23010055 28.4614593,4.1195115 C28.4933357,4.0116941 28.5717793,3.92410979 28.6751697,3.88004047 C28.7744023,3.82848768 28.8922063,3.82848768 28.9914389,3.88004047 L28.9914389,3.8886326 Z M25.7946527,7.24732468 C25.716209,8.01036143 25.3381273,8.71131309 24.7435633,9.19607563 L24.7435633,9.82829024 L23.4787636,9.82829024 L23.4787636,9.19607563 C22.8545407,8.71547057 22.4581647,7.99733464 22.3844332,7.21323332 C22.2732816,6.26449566 21.5298688,4.82877813 21.5298688,4.50394011 C21.5298688,4.17910209 22.1965011,4.72622688 22.6666086,5.12783975 C23.1613856,5.63200388 23.6184653,6.17192236 24.0339672,6.74316055 C24.4464199,6.17136803 24.8974016,5.62867789 25.3846946,5.11924762 C25.8717104,4.71763475 26.5383427,4.1364186 26.5383427,4.49534798 C26.5383427,4.85455453 25.8974887,6.27308779 25.7946527,7.20464119 L25.7946527,7.24732468 Z M22.5299559,3.92272396 C22.8614704,4.25781711 23.1486351,4.63420792 23.3845203,5.04247277 L23.4787636,4.92273725 C23.2046266,4.53997163 22.9751166,4.12699497 22.7949457,3.69212223 C22.7572484,3.49755202 22.8841996,3.30907945 23.0790614,3.27138493 C23.2256928,3.24311405 23.3745417,3.30852511 23.4529853,3.4357441 C23.6245634,3.86978534 23.7420903,4.32322818 23.8033484,4.78581747 L23.8973145,4.78581747 C23.7592758,4.32017936 23.6927512,3.83597115 23.7007896,3.35009995 C23.7007896,3.05103832 23.9316855,3.06822259 24.0597455,2.88861931 L24.1880826,2.88861931 C24.3247353,3.06822259 24.5384457,3.05103832 24.5470385,3.35009995 C24.5459297,3.81019475 24.4796823,4.2675179 24.3505136,4.70904262 L24.4444796,4.70904262 C24.5085096,4.244236 24.6263137,3.78829867 24.7948428,3.35009995 C24.8926894,3.21151717 25.0711972,3.15552973 25.2305792,3.21345733 C25.3835858,3.28191722 25.476166,3.43990158 25.4614751,3.60675524 C25.2826901,4.04218231 25.0531801,4.45543614 24.7776572,4.8370931 L24.8888088,4.8370931 C25.1299606,4.43270857 25.4168482,4.05687209 25.7433733,3.71762146 C25.8437146,3.67105765 25.9595784,3.67105765 26.0599197,3.71762146 C26.1622013,3.76723409 26.2395362,3.85675856 26.2736549,3.96540746 C26.2747389,4.07655084 26.2387047,4.18492257 26.1707941,4.27306121 L25.0939265,5.39281002 L24.8120283,5.64918814 C24.7696188,5.273906 24.4314519,5.00394676 24.056142,5.04607592 C23.7387641,5.08155311 23.4884651,5.33211076 23.4529853,5.64918814 L23.1794027,5.39281002 L22.0853495,4.42716526 C22.0168846,4.33985811 21.9833451,4.23010055 21.9913835,4.1195115 C22.0179933,4.00753662 22.0931107,3.91330033 22.1965011,3.86285621 C22.2990599,3.81268924 22.4188043,3.81268924 22.5213631,3.86285621 L22.5299559,3.92272396 Z M19.3331697,7.24732468 C19.2719116,8.00592678 18.9085207,8.7079871 18.324767,9.19607563 L18.324767,9.82829024 L17.05969,9.82829024 L17.05969,9.19607563 C16.5213948,9.04197159 16.1025667,8.16197098 15.9828224,7.21323332 C15.863078,6.26449566 15.1282579,4.82877813 15.1282579,4.50394011 C15.1282579,4.17910209 15.7948903,4.72622688 16.2649977,5.12783975 C16.7572801,5.6350527 17.2113108,6.17774284 17.6237636,6.75175268 C18.0359391,6.17996016 18.487198,5.63727003 18.974491,5.12783975 C19.4615068,4.72622688 20.1281391,4.14501073 20.1281391,4.50394011 C20.1281391,4.86286949 19.4360057,6.27308779 19.3248541,7.20464119 L19.3331697,7.24732468 Z M16.025509,3.92272396 C16.3542516,4.2603116 16.6414163,4.63614808 16.8803507,5.04247277 L16.9829095,4.92273725 C16.7029516,4.54218896 16.4706698,4.12893513 16.2904989,3.69212223 C16.2636118,3.52277408 16.3603497,3.35813775 16.5213948,3.29882432 C16.6807768,3.23757073 16.8612248,3.29438967 16.9571312,3.4357441 C17.1209481,3.87227983 17.2381978,4.32489117 17.3074943,4.78581747 L17.4017376,4.78581747 C17.2631446,4.31408171 17.1941252,3.82488453 17.1963427,3.33319285 C17.1963427,3.03413122 17.4272387,3.05103832 17.5641686,2.87171222 L17.6836357,2.87171222 C17.8202884,3.05103832 18.0339988,3.03413122 18.0511844,3.33319285 C18.0511844,3.79384198 17.9821651,4.25199663 17.8460667,4.69213552 L17.9400328,4.69213552 C18.0084977,4.22788323 18.1257474,3.77250024 18.2906731,3.33319285 C18.3946178,3.20292504 18.570631,3.15469824 18.7264095,3.21345733 C18.8852371,3.27526525 18.9805891,3.43796142 18.9573054,3.60675524 C18.7815695,4.04218231 18.5551085,4.45515898 18.2818031,4.8370931 L18.3505453,4.8370931 C18.5883709,4.43049124 18.8755356,4.0543776 19.2051097,3.71762146 C19.3082229,3.67078048 19.4265813,3.67078048 19.5296945,3.71762146 C19.6319762,3.76529393 19.7073708,3.85620423 19.7350894,3.96540746 C19.7431278,4.07627368 19.7095883,4.18603123 19.6408461,4.27306121 L18.5897568,5.20489178 L18.3075814,5.46099274 C18.3075814,5.08820508 18.0051715,4.78581747 17.6323563,4.78581747 C17.2595411,4.78581747 16.9571312,5.08820508 16.9571312,5.46099274 L16.6411392,5.39281002 L15.6152737,4.41857312 C15.5243567,4.3254455 15.4775123,4.19794935 15.4869366,4.06823587 C15.5174271,3.96928777 15.5892183,3.88807827 15.6837387,3.84594911 C15.776596,3.79411915 15.8899651,3.79411915 15.9828224,3.84594911 L16.025509,3.92272396 Z M13.1025826,4.46125662 L12.0684016,5.37562575 L11.7776335,5.63200388 C11.7776335,5.25921622 11.4755007,4.95682861 11.1026855,4.95682861 C10.7295932,4.95682861 10.4274604,5.25921622 10.4274604,5.63200388 L10.2220656,5.39281002 L9.13660518,4.42716526 C9.07146647,4.33819512 9.03820415,4.22954622 9.04263913,4.1195115 C9.07451552,4.0116941 9.15295916,3.92410979 9.25634954,3.88004047 C9.35530494,3.82848768 9.47366337,3.82848768 9.57261877,3.88004047 C9.89942108,4.22233992 10.1863086,4.60067089 10.4274604,5.00810424 L10.5383348,4.92273725 C10.2586541,4.53914014 10.0260951,4.12283749 9.84620136,3.6835301 C9.8276299,3.48147641 9.97675597,3.30242747 10.1788246,3.28413455 C10.304667,3.27249359 10.4274604,3.32654088 10.5042409,3.42715197 C10.6747103,3.86507353 10.7950091,4.32101085 10.8631968,4.78581747 L10.9571629,4.78581747 C10.812749,4.32128802 10.7434525,3.83680264 10.7520452,3.35009995 C10.7520452,3.05103832 10.9829412,3.05963045 11.1195939,2.88861931 L11.2135599,2.88861931 C11.3504898,3.05963045 11.5642002,3.05103832 11.5811086,3.35009995 C11.5813858,3.80825459 11.5120893,4.26336042 11.3759909,4.70045048 L11.469957,4.70045048 C11.5392535,4.23952418 11.6567804,3.78691285 11.8203201,3.35009995 C11.9187211,3.19627307 12.1155232,3.1380683 12.2818348,3.21345733 C12.4428799,3.27249359 12.5396178,3.43712993 12.5127308,3.60675524 C12.3353317,4.04107365 12.1088707,4.45405031 11.8375056,4.8370931 L11.9059706,4.8370931 C12.1418559,4.42910541 12.4290206,4.0527146 12.7608122,3.71762146 C12.9315588,3.61728753 13.1516445,3.6746608 13.2519858,3.84539478 C13.2691714,3.87505149 13.2821991,3.90692553 13.2905147,3.93990823 C13.3271032,4.12644064 13.2458877,4.3165762 13.085397,4.41857312 L13.1025826,4.46125662 Z M6.60672849,4.46125662 L5.53845362,5.37562575 L5.25627826,5.63200388 C5.21414599,5.2569989 4.87570187,4.98676249 4.50066921,5.02889165 C4.18329123,5.06464601 3.93299226,5.3149265 3.89723527,5.63200388 L3.63252263,5.39281002 L2.57256334,4.42716526 C2.50409839,4.33985811 2.47055889,4.23010055 2.47859728,4.1195115 C2.50021779,4.01446576 2.56979148,3.92604995 2.66680658,3.88004047 C2.76881103,3.82821051 2.88938694,3.82821051 2.99139139,3.88004047 C3.32124274,4.21984543 3.60813026,4.59873073 3.84595586,5.00810424 L3.9659774,4.92273725 C3.69211762,4.53525982 3.46011293,4.11978867 3.27328956,3.6835301 C3.25970745,3.51418195 3.36115753,3.35647475 3.52137104,3.29882432 C3.67853551,3.23258176 3.8609239,3.28607471 3.95710745,3.42715197 C4.12480498,3.8653507 4.24233185,4.32128802 4.30747056,4.78581747 L4.37621269,4.78581747 C4.23845124,4.32017936 4.17220379,3.83597115 4.17941062,3.35009995 C4.17941062,3.05103832 4.41030657,3.05963045 4.5383665,2.88861931 L4.66670362,2.88861931 C4.79476356,3.05963045 5.01706674,3.05103832 5.0256595,3.35009995 C5.02455076,3.8074231 4.9583033,4.26197459 4.82913463,4.70045048 L4.92310068,4.70045048 C4.9840816,4.23786119 5.10188566,3.78441836 5.2734638,3.35009995 C5.36798422,3.20181638 5.55619352,3.14388878 5.71779297,3.21345733 C5.87468025,3.27775974 5.96920067,3.43851576 5.94868891,3.60675524 C5.75743056,4.04301381 5.51655592,4.45599047 5.23077715,4.8370931 L5.29924209,4.8370931 C5.53789925,4.43104557 5.82506395,4.05520909 6.15380656,3.71762146 C6.25303915,3.66606867 6.3708432,3.66606867 6.47007579,3.71762146 C6.57152587,3.76169078 6.64719765,3.84982942 6.67519344,3.95709249 C6.72675003,4.12782647 6.67713374,4.31325022 6.5471335,4.43548022 L6.60672849,4.46125662 Z M34.8117907,1.04269678 L34.8117907,1.22230005 L0.205117646,1.22230005 L0.205117646,1.15384017 C0.213710412,1.23920715 0.213710412,1.32485131 0.205117646,1.41021829 L34.7436029,1.41021829 L34.7436029,1.5895444 L0.247804291,1.5895444 L0.247804291,1.50417741 C0.538295227,3.51251896 1.10236875,7.29860031 1.83746604,11.9563673 C2.93844887,11.7279829 3.81962319,10.9034154 4.11953845,9.81997527 L3.96570021,9.81997527 L3.96570021,9.19607563 C3.35699974,8.70826427 2.97642335,7.99068267 2.91461087,7.21323332 C2.80345928,6.26449566 2.05976922,4.82877813 2.05976922,4.50394011 C2.05976922,4.17910209 2.71808599,4.72622688 3.19650904,5.12783975 C3.68352486,5.63727003 4.13478368,6.17996016 4.54695927,6.75175268 C4.95941205,6.17774284 5.41371992,5.6350527 5.90600227,5.12783975 C6.39301808,4.72622688 7.05133485,4.14501073 7.05133485,4.50394011 C7.05133485,4.86286949 6.32483032,6.30717915 6.1964932,7.21323332 C6.13994726,7.98652519 5.76934956,8.70299812 5.17090497,9.19607563 L5.17090497,9.82829024 L4.98269567,9.82829024 C5.30201395,11.0744265 6.40660019,11.9594161 7.6921889,11.9990508 L7.87180543,11.9990508 C9.14519795,11.9314224 10.2325987,11.0572423 10.5724287,9.82829024 L10.3589955,9.82829024 L10.3589955,9.19607563 C9.76443149,8.69967214 9.39466536,7.98513936 9.33340725,7.21323332 C9.22225566,6.26449566 8.4785656,4.82877813 8.4785656,4.50394011 C8.4785656,4.17910209 9.13660518,4.72622688 9.63249095,5.12783975 C10.1195068,5.63727003 10.5707656,6.17996016 10.9829412,6.75175268 C11.3951168,6.17996016 11.8463756,5.63727003 12.3333914,5.12783975 C12.8204072,4.72622688 13.4870396,4.14501073 13.4870396,4.50394011 C13.4870396,4.86286949 12.7264412,6.30717915 12.6324751,7.21323332 C12.5385091,8.11901032 12.0684016,9.03365662 11.5470147,9.19607563 L11.5470147,9.82829024 C11.5470147,10.0078935 12.4015792,12.0503264 14.1622647,11.9990508 L14.5126278,11.9990508 C16.3076844,11.9990508 17.0768756,10.0078935 17.0768756,9.82829024 L18.0511844,9.82829024 C18.4034878,11.0525305 19.4889482,11.9222759 20.7606776,11.9990508 L21.0597613,11.9990508 C22.3486762,11.9729972 23.4579746,11.0813557 23.7606618,9.82829024 L24.6836912,9.82829024 C25.0174231,11.0647257 26.1134166,11.9427862 27.3931844,11.9990508 L27.5725237,11.9990508 C28.8520144,11.9472208 29.9477306,11.0666659 30.2734242,9.82829024 L31.1964536,9.82829024 C31.465324,10.844102 32.2367327,11.6506537 33.2393145,11.9649594 L35,0 L0,0 C0.0166311605,0.359760878 0.0654158978,0.717304431 0.145245468,1.06819601 L34.8117907,1.04269678 Z","id","Fill-1","fill","#82E4C8"],["d","M33.5179165,13.9232341 L33.9036401,13.9232341 L34,13.1122168 C32.7063902,12.8211462 31.6740038,11.5989338 31.3704276,10 C31.0597452,11.926255 29.6990531,13.3055531 28.1277337,13.2874278 L27.9785038,13.2874278 C26.4026364,13.3151488 25.0351223,11.9326522 24.7269982,10 C24.4197268,11.924478 23.0621613,13.3044869 21.4925474,13.2874278 L21.317451,13.2874278 C19.7401624,13.319769 18.3706586,11.9351399 18.0656611,10 C17.755263,11.9223456 16.3996873,13.3002221 14.8314946,13.2874278 L14.6998881,13.2874278 C13.1260104,13.314438 11.7616231,11.9312306 11.4571941,10 C11.1462275,11.926255 9.78553536,13.3055531 8.21393167,13.2874278 L8.02121196,13.2874278 C6.44733429,13.314438 5.08294693,11.9312306 4.77851801,10 C4.50052408,11.7194136 3.38826414,13.0354509 2,13.2874278 L2.07902077,14 L33.4741424,14 L33.5179165,13.9232341 Z","id","Fill-3","fill","#82E4C8"],["id","Fill-5","fill","#82E4C8","points","33 14 2 14 2.24911013 15 32.7422518 15 32.9740859 14"],["d","M48,33.3623482 C47.3355816,32.1714797 46.4571745,31.1923983 45.4360159,30.5039166 C43.8119745,29.4335238 43.7266008,30.2150529 42.8717546,31.4781373 C42.3417722,32.1419684 42.0939666,31.4781373 41.726416,31.1250431 C41.3588654,30.7716016 40.6495426,29.7331504 39,31.6388872 C39,31.6388872 39.9488127,34.1119356 41.1196526,33.9938904 C41.7596785,34.0563849 42.368105,33.6352411 42.6666359,32.9234975 C42.9402199,32.5165885 43.6409498,31.3496763 43.9403123,31.2319782 C44.6779082,30.8549277 45.5252703,31.2042028 45.9402199,32.0562119 C45.9402199,32.0562119 46.6922295,31.7242964 48,33.3623482","id","Fill-7","fill","#82E4C8"],["d","M49,34.2939535 C48.4366921,34.112666 47.8330556,34.2087989 47.3341183,34.5592089 C46.8385418,34.9102124 46.4900613,35.4789982 46.3695925,36.1329388 C46.0348133,37.4138196 45.5007178,38.1822888 44.4245127,37.9627261 C43.7309124,37.7155698 44.0020964,36.7916266 44.4245127,36.5171734 C44.6326187,36.3999744 44.8562356,36.3225341 45.086057,36.2884129 C45.086057,36.2884129 46.7043716,33.0222706 49,34.2939535","id","Fill-9","fill","#82E4C8"],["d","M47,36.260943 C47,36.260943 48.7603088,36.0179271 49.5172958,36.6061833 C49.9888428,36.9955894 50.278279,37.4834874 50.3445011,38 C50.4795143,37.6568333 50.6410733,37.3194724 50.8288929,36.9897835 C50.9607662,36.8491992 51.1368827,36.4143831 50.8288929,36.2993031 C50.2565856,36.1394351 50.0630572,36.4143831 49.7462188,36.2993031 C48.9127338,35.9144587 47.8531803,35.8997367 47,36.260943","id","Fill-11","fill","#82E4C8"],["d","M49.9631742,37.5624237 C49.9631742,37.5624237 49.486814,35.6084226 47.38091,36.0707862 C46.5291637,36.2742822 46.5107508,36.613109 46.1811,37.1802191 C45.9494536,37.5416343 45.5292231,37.8330853 45,38 C46.6838917,37.9656176 48.3588738,37.8190925 50,37.5624237 L49.9631742,37.5624237 Z","id","Fill-13","fill","#82E4C8"],["d","M48.8310669,40.0618925 L48.4165096,40.0618925 C48.4165096,40.0618925 47.8196763,38.7462029 44.9763835,39.9033319 C44.503756,40.052512 44.3214799,42.4599696 46.9908306,41.9561464 C47.5045912,41.8066638 48.2258993,40.4818964 48.2258993,40.4818964 L48.6404566,40.6032376 L47.7535407,41.8814051 C47.7535407,41.8814051 47.9110832,43.803498 46.6840798,43.9808195 C45.4570764,44.1581411 45.4487422,43.047612 45.4487422,43.047612 L45.5982194,42.8890514 C45.5982194,42.8890514 42.9702706,41.0698413 44.4540199,39.6328106 C45.938038,38.1957799 48.0102866,39.1755873 50,38 L48.8310669,40.0618925 Z","id","Fill-15","fill","#82E4C8"],["d","M47,39.318134 C47,39.318134 47,39.9107519 46.6284768,40 C46.6284768,40 46.6284768,39.1880792 45,39.3586774 C45,39.3586774 45.513907,38.5794019 47,39.318134","id","Fill-17","fill","#82E4C8"],["d","M44.7175769,33.137048 C44.7175769,33.137048 44.5155375,33.7092199 44.8445303,33.7521129 C45.0173592,33.6126609 45.0512509,33.3501162 44.920178,33.1661753 C44.8398491,33.0534566 44.7113978,32.991611 44.5790142,33.0017856 C44.2833514,32.9770473 44.0247634,33.2122603 44.0015448,33.527274 C43.9994851,33.5569998 43.9994851,33.5871247 44.0015448,33.6168505 C44.0371217,33.7906168 44.1590194,33.9298692 44.3193028,33.9799442 C44.4780881,34.0298198 44.6499808,33.9851313 44.7694443,33.863036 C44.7694443,33.863036 44.1054668,33.573758 44.7175769,33.137048","id","Fill-19","fill","#82E4C8"],["d","M44.9115934,34.6952282 C43.9676973,35.8118447 43.4212312,35.1536422 43.387933,34.8549295 C43.3167715,34.2865996 43.4523811,33.7088944 43.7606578,33.2698773 C44.2077665,32.7215908 44.8702392,32.0236246 45.5823907,33.4492988 C45.9851913,33.159638 46.487618,33.159638 46.8904186,33.4492988 C46.8904186,33.4492988 46.0625291,33.2100701 44.9115934,34.6952282 L44.9115934,34.6952282 Z M45.739483,32.9210558 C45.2510201,31.3460253 43.5699989,31.9240537 43.1148342,33.6487639 C42.6594009,35.3731508 43.6116216,37.0079886 45.035656,35.2338162 C45.6981288,34.5158066 46.7413824,33.2895975 48,33.8382072 C47.4691088,33.0300019 46.5944944,32.6711587 45.7644566,32.9210558 L45.739483,32.9210558 Z","id","Fill-21","fill","#82E4C8"],["d","M33.0735342,45.6629964 C32.2722356,42.0570782 33.0432039,38.288891 35.2024349,35.2569612 C35.2024349,35.2569612 32.3788251,41.622017 34.124697,45.5330686 C35.0135203,47.7424035 36.7937666,49.5006472 39.0500547,50.3977676 C39.0500547,50.3977676 34.097833,49.3572204 33.0735342,45.6629964 L33.0735342,45.6629964 Z M44.9820907,59 L43.2630828,44.9692044 C42.5547972,44.9706106 41.8531554,44.8381517 41.1968647,44.5791398 C41.1968647,44.5791398 41.8736645,44.4056215 41.9091943,43.8507567 C41.9091943,43.8507567 39.9853845,44.0155569 39.6468402,43.0700651 C39.8738844,43.1133743 40.1093056,43.0630343 40.2970648,42.9314192 C40.4839574,42.8009289 40.6116337,42.6051935 40.6535184,42.3849912 C40.1965414,42.4741408 39.7228104,42.3596806 39.3620239,42.0728271 C39.001815,41.7859735 38.7955687,41.3551307 38.8007682,40.902352 C39.1268915,41.090213 39.5460279,41.0078129 39.7716278,40.7113975 C39.0870288,40.6351845 38.5246177,40.1497832 38.3643002,39.497332 C38.9986376,39.4393988 39.5440059,39.0361164 39.7716278,38.4567847 C39.7716278,38.4567847 37.6427271,38.8645667 38.6759805,36.505618 C38.9590637,35.9192555 39.3279383,35.3759211 39.7716278,34.8927697 C38.7224871,34.5159229 38.0159347,33.553276 37.9902261,32.4646386 C38.3397471,32.0020169 38.7897915,31.6198267 39.3082958,31.3461909 C39.9195243,30.9558451 40.7101351,30.9558451 41.3213636,31.3461909 C41.9005285,31.8231553 42.2122088,32.3867382 42.6662973,31.7016643 C42.9011408,31.3110373 43.2021332,30.9620321 43.5571426,30.6698352 C41.2656135,29.5797916 38.5396385,29.8345851 36.5028842,31.3287547 C32.5836271,33.81735 29.8758503,39.05524 29.0921721,43.6252111 C28.3082052,48.1951822 32.7260352,49.6952576 34.739103,50.5625678 C36.7521707,51.4295968 40.0833081,53.4761002 38.2308468,57.6124162 C40.5321971,57.8084328 42.803506,58.2592428 45,58.9566907 L44.9820907,59 Z","id","Fill-23","fill","#82E4C8"],["d","M50.1456805,62.232552 L49.6661627,62.232552 C48.200954,61.4333349 46.5158391,61.0833109 44.8373879,61.2296652 C44.8373879,61.2296652 44.135465,60.227045 39.2125636,59.9884529 C37.2142489,60.0116456 35.2203766,59.8103751 33.2709299,59.3883736 C33.2709299,59.3883736 30.7964293,58.3854868 29.6749629,59.9226068 C28.5532189,61.4599933 31.3872885,62.7750492 32.388806,62.9312671 L44.8887549,63.0626927 C44.8887549,63.0626927 44.786021,62.5532518 41.8408876,62.2408161 C38.8957542,61.9283803 35.1629011,61.8628008 34.1869283,61.8873265 C33.2109555,61.9121187 32.0892115,62.1667059 31.6183011,61.2955113 C31.1476684,60.4240502 31.4128332,60.0788246 32.3291092,60.054299 C32.8930355,60.0439022 33.4514085,60.1651977 33.955638,60.4077886 C35.3139479,60.3997911 36.67198,60.4656372 38.0225154,60.6050603 C39.9383653,60.7202243 41.8328355,61.0569192 43.6645546,61.6079471 C44.734654,62.1093905 46.0532585,61.6079471 47.731432,62.1667059 C48.5930091,62.4287574 49.3829501,62.8726188 50.0429466,63.4655003 L51.0017045,63.4655003 C51.0017045,63.4655003 50.650743,62.5284596 51.0017045,62.3722417 C51.3529437,62.2160238 51.9438029,62.7094697 52.2517272,62.9560594 L52.3888909,62.7012056 C52.3888909,62.7012056 53.596154,63.2847567 53.8785336,64 L31.3445289,64 C31.3445289,64 27.7485619,62.7012056 28.0140043,60.4077886 C28.2794467,58.1143715 31.1132387,57.8019357 32.4146283,58.0895792 C33.716018,58.3774893 34.6747759,59.0020942 35.3256096,59.0020942 C35.9761656,59.0020942 42.7999232,59.3473198 45.1200452,60.4981603 C46.07325,60.6253206 47.0381164,60.6501129 47.9968744,60.5720039 L48.2964689,60.4733681 C48.5177634,60.1532014 48.8748334,59.9428671 49.2724417,59.8980811 C49.667551,59.8644916 50.0557189,60.0140449 50.3169964,60.3008886 C50.3169964,60.3008886 51.2416022,60.054299 51.6783605,60.3664681 C52.0609751,60.7996662 52.3700101,61.288047 52.5943589,61.8134829 C53.0716554,61.773762 53.5359019,61.9763653 53.8185592,62.347716 C54.1714643,62.8880806 54.566296,63.4017868 55,63.884836 L54.143976,63.884836 C53.63697,63.2559657 53.0969224,62.6524209 52.525777,62.0766007 C51.9948922,61.6079471 51.669753,61.0078678 51.2757543,60.9420217 C50.8820333,60.8764422 51.7380573,61.9942264 51.7380573,61.9942264 L50.205655,60.6954321 C50.205655,60.6954321 49.7003148,60.2598348 49.5034543,60.859914 C49.3065938,61.4599933 50.8734259,62.0845982 50.1456805,62.232552","id","Fill-25","fill","#82E4C8"],["d","M41.7695318,34 C41.5188215,35.6689757 41.6659775,37.3728031 42.1988882,38.9750799 C42.6624599,40.5563255 43.6492531,41.9368733 45,42.8937928 C44.5821496,43.7536683 43.5989899,44.1887137 42.6751771,43.9219179 C42.906206,43.7746995 43.077888,43.5517688 43.1605498,43.2918833 C43.3567578,42.5416705 43.2819686,42.5599977 42.7030338,42.7084178 C42.1244018,42.8565375 41.1067241,43.2456147 40.8360297,42.5879391 C40.8360297,42.5879391 41.8534046,42.5879391 41.98421,41.1241678 C41.98421,41.1241678 40.3597408,41.7262609 39.6315304,40.9481066 C39.6315304,40.9481066 41.4988374,40.5776571 41.2466131,39.4753219 C41.2466131,39.4753219 39.5939844,39.7439204 39.3793062,39.0489895 C39.3793062,39.0489895 40.6958378,38.1227155 40.5371758,37.1405586 C40.5371758,37.1405586 39.1273848,37.2703511 39.0525956,37.066649 C38.8454872,36.0983126 39.2615208,35.103537 40.0981301,34.5651383 C40.6004589,34.2442623 41.1742463,34.0501744 41.7695318,34","id","Fill-27","fill","#82E4C8"],["id","mask-8","fill","white"],[0,"xlink","href","#path-7"],["id","Clip-30"],["id","Fill-29","fill","#82E4C8","mask","url(#mask-8)","points","0 65 57 65 57 64 0 64"],["d","M26.9169161,57.4570686 C26.7398996,49.6396995 24.7234993,46.6053147 23.7869812,45.0662862 C22.3273481,43.0244572 20.7227092,41.0983319 18.9867445,39.3037911 C17.7465351,37.9221535 15.7977129,36.29578 16.0086552,34.5117319 C15.9900507,33.4060248 16.8395653,32.4940079 17.906315,32.4744403 L17.9068622,32.4744403 C18.6502217,32.3953195 19.3993268,32.3953195 20.1424127,32.4744403 C20.3112213,34.5381055 24.858382,39.9421462 27.0266279,43.929668 C29.1946003,47.9169063 31.0337107,56.0578485 31.0337107,56.0578485 C29.5850214,55.9154877 28.1513799,56.4548708 27.1278584,57.5271146 L26.9169161,57.4570686 Z M26.4444163,57.2560051 C26.3686303,57.2560051 24.3861558,57.6496244 23.9133824,57.7633429 C23.4411562,57.8767778 23.2638662,57.7633429 23.1711172,57.1334954 C23.0783683,56.5039314 23.2723476,55.7518578 23.9133824,55.7518578 C24.5546907,55.7518578 26.1492065,55.445867 26.4444163,55.4194934 C26.4444163,55.9092488 26.4444163,56.4165865 26.5204759,56.9588056 C26.7735519,57.2035415 26.7735519,57.3260512 26.6974923,57.31726 L26.4444163,57.2560051 Z M26.140725,59.5907798 C26.140725,59.5907798 25.1790361,59.9580255 24.8077668,60.0629528 C24.436771,60.1678801 23.6266541,60.4914533 23.466327,60.1939701 C23.0666037,59.6086458 23.1656453,58.8032577 23.6942322,58.3404432 C24.5713801,58.0404077 25.4641229,57.7922688 26.3686303,57.5971607 L26.140725,59.5907798 Z M19.4592442,61.3396631 C19.2141025,61.3152745 18.9886596,61.1890782 18.8348988,60.9899998 C18.6877043,60.7875185 18.6266925,60.5317227 18.6660903,60.2815986 C18.7506314,59.2847891 19.5098594,59.1186069 21.1380275,58.8126161 C21.8014971,58.6640163 22.471533,58.5500142 23.1459464,58.4714605 C22.7295337,59.0397696 22.7990271,59.842889 23.3062735,60.3252711 L19.4592442,61.3396631 Z M19.7374911,56.7225773 C20.5812602,56.5300215 22.867426,56.0405497 22.867426,56.0405497 C22.0239304,56.9848956 23.0953312,58.0080788 23.0953312,58.0080788 C23.0953312,58.0080788 20.4209332,58.6901064 19.9908407,58.7862425 C19.5604747,58.8823786 18.7336684,59.1710705 18.6578824,58.174261 C18.5818228,57.1774514 19.0794934,56.9148495 19.8893367,56.775041 L19.7374911,56.7225773 Z M17.856247,55.5071219 C17.7889424,54.8426767 18.202072,54.6328221 18.7000162,54.5364024 C19.4762072,54.4317586 22.6058685,53.8455836 22.6058685,53.8455836 C22.2939694,55.3321485 22.9771379,55.5944668 22.9771379,55.5944668 C21.6622369,56.0045341 20.3238067,56.3286745 18.9700551,56.5651863 C18.4671862,56.4704681 18.0852466,56.0428184 18.033537,55.5159131 L17.856247,55.5071219 Z M17.3585764,53.5395928 C17.2105611,53.1536304 17.3925023,52.7163387 17.764866,52.5632015 C17.7673284,52.5620672 17.7695171,52.5612164 17.7719795,52.5600821 L22.4879487,51.5632725 C21.8802927,52.4378559 22.774677,53.4170831 22.774677,53.4170831 C22.774677,53.4170831 19.1470715,54.1955304 18.5563784,54.2392028 C18.097832,54.2743676 17.6655508,54.0137509 17.4682883,53.5832653 L17.3585764,53.5395928 Z M16.6751343,51.4759276 C16.5791022,51.2416844 16.6012635,50.9731272 16.734231,50.7590188 C16.862821,50.5398057 17.0863487,50.3997136 17.333132,50.3829819 L21.6356981,49.4647261 C21.2225686,50.5227905 22.2939694,51.2572818 22.2939694,51.2572818 L17.9489959,52.2016276 C17.4879872,52.1936872 17.0633666,51.9390258 16.8272535,51.5283913 L16.6751343,51.4759276 Z M15.9243877,49.6396995 C15.6964825,49.2809615 15.4942952,48.5728438 16.042581,48.4503341 L20.3618365,47.5760343 C20.3974039,48.2810324 20.8567711,48.8864914 21.5092969,49.0886892 C21.5092969,49.0886892 17.6959199,49.9632726 17.1643234,50.0157363 C16.7703456,50.1053499 16.3583105,49.9984375 16.0510625,49.7270444 L15.9243877,49.6396995 Z M14.7263121,47.7158428 C14.3637978,47.3922697 14.2962196,46.7278245 15.0639292,46.5091786 C15.8316387,46.2905328 18.8685511,45.5821316 19.408629,45.442323 C19.2316126,45.7806427 19.2316126,46.1884413 19.408629,46.526761 C19.5804471,46.8242442 19.8499389,47.047711 20.1678571,47.156325 C18.8707399,47.5213019 17.5555653,47.8131133 16.2280789,48.0306248 C15.3845834,48.1704334 15.2494271,48.0918797 14.8866392,47.7683065 L14.7263121,47.7158428 Z M13.3936274,45.7307313 C13.2584711,45.416233 12.9462984,45.0401961 13.6467034,44.8564315 C14.3468348,44.6726669 17.2909983,43.9818481 17.763498,43.859622 C17.7347705,44.0833724 17.7856593,44.3105259 17.9068622,44.4979771 C18.1254652,44.8569987 18.4814132,45.1020182 18.885514,45.1712135 C18.885514,45.1712135 15.4603694,46.1331418 14.9036021,46.2292779 C14.4051107,46.3540563 13.8809013,46.1861726 13.5369915,45.7922698 L13.3936274,45.7307313 Z M11.9424757,44.0955666 C11.5039018,43.2913129 12.1028028,43.072667 12.1028028,43.072667 C12.7777634,42.8889024 16.118367,42.1980836 16.4220583,42.14562 C16.3038649,42.3642658 16.2871756,42.6966302 16.6751343,43.1688032 C16.9164457,43.4141062 17.2499589,43.5360488 17.586208,43.5011675 C17.586208,43.5011675 14.1528555,44.3230037 13.5791253,44.3754674 C13.0053951,44.427931 12.4907615,44.9176864 12.0352247,44.1131491 L11.9424757,44.0955666 Z M10.6095174,42.2945033 C10.3564414,41.9533477 9.9430383,41.3237838 10.3816122,41.2276477 L14.9796617,40.1607921 C14.8023717,40.3706467 14.8193346,40.6942199 15.2494271,41.3850387 C15.3695356,41.588938 15.5544863,41.7437767 15.7725421,41.8220468 C15.0724106,41.9794378 12.4655907,42.5741205 12.0773584,42.6441665 C11.5980187,42.7391683 11.1019897,42.6285692 10.7022664,42.3381758 L10.6095174,42.2945033 Z M9.3693081,40.4406928 C8.87163751,39.8984738 8.87163751,39.1812813 9.28504062,39.0590552 C9.69844374,38.9365454 13.6127775,38.3594452 13.6803557,38.3594452 C13.3766644,38.5256274 13.4272797,38.8492005 13.7479338,39.3037911 C13.9410924,39.6993954 14.3413629,39.9395939 14.7687194,39.9160562 L10.6601327,40.6593386 C10.2587677,40.8232521 9.80541966,40.7741915 9.44536771,40.5280377 L9.3693081,40.4406928 Z M7.75810297,38.0009907 C7.59777589,37.5724902 7.45441173,36.8292078 7.89298566,36.7415793 C8.33183317,36.6542344 12.6680516,36.3831249 12.6680516,36.3831249 C12.4907615,36.4968434 12.3895311,36.7679529 12.6680516,37.4063081 C12.8089533,37.664089 13.0532743,37.8433162 13.3342571,37.8957798 C13.3342571,37.8957798 9.44536771,38.6654359 8.80405937,38.6654359 C8.39092984,38.6835855 8.00899024,38.4371481 7.84237045,38.0446632 L7.75810297,38.0009907 Z M7.11679463,34.966606 C7.11679463,34.6779141 7.01556422,33.6811045 7.75810297,33.6811045 C8.50036813,33.6811045 10.946861,33.9697965 11.7736672,34.0571414 C11.7736672,35.0278609 12.0015724,35.8060246 12.4907615,36.0246705 C11.647266,36.0246705 8.2727365,36.1468966 7.80023671,36.1208066 C7.32773692,36.0944329 7.1758913,35.3162692 7.2013357,35.0278609 L7.11679463,34.966606 Z M7.11679463,31.6174393 C7.11679463,31.6174393 7.31104758,30.49812 8.11240941,30.5942562 C9.39119576,31.0505482 10.6371506,31.5998569 11.8412453,32.2382121 C11.720316,32.5759646 11.6743519,32.9378221 11.7063626,33.2962765 L11.7063626,33.7775242 L7.6990063,33.226514 C6.85523713,33.1391691 7.1252761,31.6874854 7.1252761,31.6874854 L7.11679463,31.6174393 Z M9.55507959,27.8661458 C10.2045958,28.3034375 12.229204,29.9122286 12.6259178,30.2185029 C12.1887119,30.6226149 11.9298903,31.194327 11.9088235,31.8012039 L8.33183317,30.157248 C7.40379653,29.7897188 8.64373228,27.2978367 9.60569479,27.9274006 L9.55507959,27.8661458 Z M10.1791514,26.0560077 C10.6349618,25.618716 11.7148441,24.4820978 12.068877,25.4528174 L13.8576457,29.230201 C13.469687,29.3858904 13.1249564,29.6382832 12.8535495,29.9646922 C12.3307081,29.5625654 10.4240196,28.0408356 9.90090456,27.560155 C9.37778957,27.0791909 9.75754041,26.545763 10.2045958,26.0996801 L10.1791514,26.0560077 Z M13.0390473,24.106061 C13.7479338,23.6599781 15.612215,22.7244234 15.7134454,23.9923425 C15.7134454,24.6919525 15.8737725,27.3763904 15.9159062,28.1545541 C15.3287698,28.2058834 14.7826728,28.4872021 14.3889686,28.9417926 C14.0179728,28.2594814 12.7777634,25.9598716 12.5246874,25.4440262 C12.2716114,24.9278972 12.3643603,24.6133988 13.0644917,24.1673159 L13.0390473,24.106061 Z M17.6116524,22.9955329 C18.5987857,22.9254868 19.7208017,22.9955329 19.577164,23.5113783 L19.3243616,24.2285708 L17.9911297,28.0672092 C17.4283433,27.8661458 16.8165833,27.8661458 16.2532497,28.0672092 L16.2532497,23.9137888 C16.2532497,23.4152422 16.6669264,23.1092515 17.6537862,23.0392054 L17.6116524,22.9955329 Z M21.6441796,23.3627786 C22.774677,23.7476066 23.0953312,24.0796874 22.6734466,24.7444162 L19.8050692,28.2946463 C19.3757976,28.1225088 18.9142416,28.053597 18.455148,28.0935828 C18.7084976,27.3239268 19.6362607,24.4557242 19.7965878,23.9398788 C19.9569148,23.4240334 20.4885113,23.065579 21.6102537,23.4240334 L21.6441796,23.3627786 Z M15.5025031,30.9090381 C14.7517565,29.74633 14.7938902,29.3175459 15.0724106,29.0816012 C15.7033224,28.5929802 16.4792398,28.3485279 17.2658274,28.3907824 C18.2275164,28.5045009 17.6622676,29.1079748 17.7213643,30.0347383 C17.8141132,30.7232884 18.0499527,31.382629 18.4130143,31.9673861 L17.9829218,31.9673861 C17.5749906,32.0226857 17.1837487,32.1687332 16.8354614,32.395603 C16.3213751,31.9841178 15.8669326,31.4980491 15.4858138,30.9529942 L15.5025031,30.9090381 Z M15.9243877,33.9870953 C14.8198818,33.5004594 13.7818597,32.8655073 12.8368601,32.0984035 C12.4655907,31.7399491 12.3895311,31.4339583 12.9462984,30.7167659 C13.5030657,29.9998571 14.1104481,29.5713566 14.1865077,29.74633 C14.4382158,30.2281449 14.7200194,30.692661 15.0302769,31.1364752 C15.4724076,31.7626361 16.0111175,32.3091089 16.6245191,32.7543411 C16.2674767,33.1037207 16.0228821,33.5585948 15.9243877,34.0571414 L15.9243877,33.9870953 Z M15.9243877,35.6049612 L13.3175678,35.823607 C12.4737986,35.823607 12.1618995,34.9490236 12.1449366,33.7511506 C12.1279736,32.5532776 12.2209962,32.3607218 12.9293355,32.8241035 C13.8083985,33.4902502 14.8108532,33.9607217 15.8737725,34.2057411 L15.8737725,34.5293143 C15.8187797,34.9022317 15.8360163,35.2828059 15.9243877,35.6486336 L15.9243877,35.6049612 Z M15.7977129,37.4848618 C14.2962196,37.8348086 13.6803557,38.0270808 13.2669526,37.3186796 C12.6595701,36.2257339 13.5451994,36.29578 13.5451994,36.29578 L16.0762333,35.9634156 C16.26392,36.4594099 16.5197319,36.9247767 16.8354614,37.3450532 L15.7977129,37.4848618 Z M16.042581,39.7235004 C14.9036021,39.9509374 14.7011413,39.7235004 14.3553163,39.207655 C14.0092177,38.6918095 13.9588761,38.3330715 14.4817175,38.193263 L16.9621362,37.5985803 C17.3848416,38.116978 17.8324442,38.6132559 18.303576,39.0851452 C17.5643204,39.3332841 16.8124794,39.5377506 16.0510625,39.6974103 L16.042581,39.7235004 Z M18.5733413,41.2452301 C18.109323,41.3674563 16.4896364,42.1195299 15.8989433,41.2452301 C15.3085237,40.3706467 15.6206964,40.3006006 16.1016777,40.116836 C16.5823854,39.933355 18.0926337,39.5397357 18.7758022,39.3738371 L19.0710119,39.6798279 L20.0833161,40.790356 C19.5941269,40.9128657 18.8685511,41.1488104 18.5057632,41.2452301 L18.5733413,41.2452301 Z M20.7161429,42.8191399 C19.8726474,43.0462934 18.0420185,43.6934398 17.4682883,43.0289946 C16.8945581,42.3642658 17.1561156,41.9621389 17.6116524,41.8920929 C18.0671893,41.8223304 19.6447421,41.3850387 20.2860505,41.1839752 L21.492334,42.5741205 C21.2160023,42.6730925 20.9344723,42.7547656 20.6485648,42.8191399 L20.7161429,42.8191399 Z M20.7161429,45.1099586 C19.9930295,45.3972326 19.1736103,45.1714971 18.6830532,44.5504408 C18.2950945,43.8508307 18.8179359,43.5973036 19.2061682,43.51875 L21.8802927,42.9850385 C22.3191402,43.51875 22.7240618,43.9994305 23.0362345,44.4455134 L20.7161429,45.1099586 Z M21.399585,47.0338152 C20.8589599,47.1055628 20.3298258,46.8330354 20.0581452,46.3429964 C19.9402255,46.1070518 19.7123203,45.5560415 20.370318,45.3722769 C21.0283156,45.1887959 22.7325433,44.900104 23.2808291,44.8039679 C23.4241933,45.0138225 23.5593495,45.2060947 23.6687878,45.3898593 L23.7784997,45.5648327 C23.9388268,45.8183598 24.1076353,46.1070518 24.2931332,46.4391326 C23.8039441,46.526761 22.0406198,46.9288879 21.399585,47.0074416 L21.399585,47.0338152 Z M23.1459464,48.8527446 C22.3021773,49.0189267 21.8129881,49.0189267 21.3656591,48.4154528 C20.9186038,47.811979 21.0874123,47.4535245 21.5935644,47.313716 C22.0997164,47.1736238 23.9473082,46.7278245 24.3776743,46.6316884 C24.6824599,47.1951764 24.9503101,47.7793664 25.1790361,48.3805716 C24.7741145,48.4942901 23.8375964,48.739026 23.1626358,48.8700434 L23.1459464,48.8527446 Z M23.8375964,51.0298447 C22.7831585,51.2048181 22.6734466,51.0298447 22.4961566,50.5840454 C22.3191402,50.1379625 22.0830271,49.4298448 22.6313129,49.2809615 C23.1795987,49.1326453 24.8668634,48.8612522 25.4151492,48.7826985 C25.6167893,49.3793663 25.7883338,49.9865268 25.9297828,50.6016278 C25.5924392,50.6540914 24.6813655,50.8636625 23.8124256,51.0213371 L23.8375964,51.0298447 Z M26.3686303,53.1286747 C26.4444163,53.7230738 26.5289574,54.361429 26.5795726,55.0437401 L24.8077668,55.4285682 C23.0107901,55.8043214 23.3566151,55.1398763 23.213251,54.6413297 C23.1486824,54.4272212 23.1763155,54.1946796 23.2893106,54.0029745 C23.3995696,53.8090008 23.5886243,53.6771327 23.8039441,53.6445201 C24.1752135,53.548384 25.8200709,53.2423933 26.3347044,53.1286747 L26.3686303,53.1286747 Z M24.4449788,53.2248108 C22.867426,53.522294 23.0277531,52.9800749 22.9180412,52.6040381 C22.7681107,52.1335667 22.9678356,51.6197064 23.390541,51.3885827 C24.2468955,51.220699 25.111458,51.1010251 25.980398,51.0298447 C26.0985913,51.5547649 26.2083032,52.1318652 26.3180151,52.7787279 C25.7070758,52.9829108 25.0805417,53.1320778 24.4449788,53.2248108 L24.4449788,53.2248108 Z M20.4294146,32.0720299 L18.8264174,31.9934762 C18.8264174,31.9934762 18.2781316,31.6962766 18.1599382,30.2445929 C18.0420185,28.7929093 17.9996111,28.3559011 19.7881063,28.9242102 C21.5766014,29.4925193 20.87647,30.314639 20.6318754,30.812902 C20.4638877,31.2178648 20.3943944,31.6591267 20.4294146,32.0984035 L20.4294146,32.0720299 Z M23.9473082,24.8842247 C23.9473082,24.8842247 25.288748,25.9510804 25.1284209,26.8080814 C24.9680938,27.6650823 24.4028451,27.6823812 23.7869812,27.9186094 C22.9013519,28.2682727 22.0904142,28.7940436 21.399585,29.4664292 C21.2983546,29.5625654 21.0789308,28.8280741 20.0581452,28.4957097 L22.9098333,24.9278972 C22.9098333,24.9278972 23.5508681,24.3683793 23.9473082,24.8842247 L23.9473082,24.8842247 Z M33.9357404,51.4146727 C28.3762756,49.1675265 28.5872179,45.0138225 29.2030818,40.7639824 L32.797035,16 L3,16 C5.27768428,30.8653657 8.57642774,51.0650095 10.0864025,53.5047116 C15.1481967,64.4265114 24.2003843,63.9977274 24.2003843,63.9977274 L30.1647707,63.9977274 C30.1647707,63.9977274 25.6094022,62.0741543 26.8493379,59.0661432 C28.0895473,56.0578485 30.5275586,56.302868 32.4594179,56.7225773 C34.3912772,57.1422866 36.5764862,58.5939703 37.808214,56.3116592 C39.0399419,54.0293482 33.9357404,51.4146727 33.9357404,51.4146727 L33.9357404,51.4146727 Z","id","Fill-31","fill","#82E4C8","mask","url(#mask-8)"],["d","M55.599717,55.2986874 L56.3301897,55.2986874 C56.5864155,55.3226296 56.8439148,55.267868 57.0683034,55.1415342 C57.2088964,55.047548 57.2896356,54.8863196 57.2804665,54.71745 C57.2705332,54.6089456 57.235385,54.5040071 57.1783327,54.4112944 C57.1192429,54.3124687 57.0275517,54.2375854 56.9190506,54.1991249 C56.714019,54.1599003 56.5036388,54.1599003 56.2988619,54.1991249 L55.6076127,54.1991249 L55.6076127,55.3065832 L55.599717,55.2986874 Z M54.9792737,57.3877796 L54.9792737,53.6650081 L56.2830707,53.6650081 C56.5999145,53.6568575 56.9165036,53.6884409 57.2254518,53.759249 C57.422333,53.8203782 57.5914522,53.9482403 57.7045379,54.1206757 C57.8071811,54.27681 57.8616864,54.4599431 57.8614317,54.646642 C57.8627051,54.9217236 57.7521664,55.1853435 57.5552852,55.3771366 C57.3393016,55.5791178 57.0637188,55.7057063 56.7697978,55.7385633 C56.8968919,55.7640338 57.0074306,55.8407001 57.076199,55.950478 C57.2409883,56.115527 57.3902411,56.3745622 57.6495233,56.6888685 L58.1286094,57.4191083 L57.3431221,57.4191083 L57.0290799,56.8457669 C56.8642906,56.525093 56.6554386,56.2291255 56.4086366,55.9662698 C56.3065029,55.864133 56.1496091,55.864133 55.937446,55.864133 L55.5762849,55.864133 L55.5762849,57.4349001 L54.9558415,57.4349001 L54.9792737,57.3877796 Z M56.4949791,52.5733415 C55.9975547,52.5669738 55.5075165,52.6917794 55.0735118,52.9347682 C54.6239706,53.1805587 54.2472728,53.5409666 53.9818779,53.9793143 C53.7297273,54.4265767 53.6046708,54.9344589 53.620462,55.4479446 C53.6049255,55.9438557 53.7302367,56.4341632 53.9818779,56.8615586 C54.2212937,57.3202827 54.6048682,57.6870582 55.0735118,57.9061047 C55.5301846,58.1343206 56.0319389,58.2575979 56.5420981,58.2672767 C57.0555685,58.2833232 57.5634355,58.1585176 58.0106845,57.9061047 C58.4584428,57.6740683 58.8231698,57.3093304 59.0551993,56.8615586 C59.5368324,55.9611756 59.5368324,54.8796973 59.0551993,53.9793143 C58.8188399,53.5185525 58.4342465,53.1505035 57.9635654,52.9347682 C57.5046003,52.713684 57.0043743,52.5906614 56.4949791,52.5733415 L56.4949791,52.5733415 Z M56.4949791,52 C57.101414,52.0091694 57.6956235,52.1714166 58.2228475,52.4712047 C58.7778336,52.7687004 59.2337423,53.221821 59.5342855,53.7750407 C60.1552382,54.8404727 60.1552382,56.1575534 59.5342855,57.2229853 C59.2362893,57.7800257 58.7801259,58.2364574 58.2228475,58.5344625 C57.1574475,59.1551792 55.8404063,59.1551792 54.7750062,58.5344625 C54.2187467,58.2379856 53.7646209,57.7810445 53.4714639,57.2229853 C53.1714302,56.6957455 53.0094425,56.1015182 53.0002734,55.4950651 C52.9923778,54.8863196 53.1556389,54.2877623 53.4714639,53.7671448 C53.7646209,53.2090857 54.2187467,52.7521445 54.7750062,52.4556676 C55.3022302,52.1642849 55.892874,52.0078959 56.4949791,52 L56.4949791,52 Z","id","Fill-32","fill","#82E4C8","mask","url(#mask-8)"],[3,"color"],[2,"position","fixed","bottom","16px","right","50%","transform","translateX(50%)","color","#82e4c8","font-size","12px"]],template:function(o,A){1&o&&(e.YNc(0,Q3,21,11,"div",0),e.YNc(1,X3,1,0,"div",1)),2&o&&(e.Q6J("ngIf",A.showSplash),e.xp6(1),e.Q6J("ngIf",A.showSplash&&A.authStandalone&&!A.entrance))},directives:[G.O5,kf.O],styles:["@keyframes logoAnimation {\n    0.0%{\n      transform: scale(1);\n    }\n    100%{\n      transform: scale(0.8) translate(0, -50px);\n    }\n    33.4%{\n      transform: scale(1);\n    }\n    65.6%{\n      transform: scale(0.8);\n    }\n  }\n\n  #logo-center[_ngcontent-%COMP%]{\n    animation: logoAnimation 2s ease 0s normal forwards;\n  }\n\n  @keyframes fadeAnimation {\n    0.0%{\n      transform: scale(1);\n    }\n    100%{\n      transform: scale(3);\n      opacity: 0;\n    }\n  }\n\n  .fade-animation[_ngcontent-%COMP%]{\n    animation: fadeAnimation 0.75s ease-in-out 0s normal forwards;\n  }"],data:{animation:[na.z.animations.inOutLoading]}}),T})(),tE=(()=>{class T{}return T.\u0275fac=function(o){return new(o||T)},T.\u0275mod=e.oAB({type:T,bootstrap:[hi.y$]}),T.\u0275inj=e.cJS({providers:[rg.Z,m2.$,Dh.a,{provide:t.ok,useClass:Qy},Go.X,td.g,Df.N,Il.FM,B3.c,v2.b,u1.i,Ah.X,H3.y,Lf.w,ni.Zp,vr.j,zd.uU,mg.e,Gd.z,U3.Q,iS.C,l1.E,b_.D,V3.r,nS.V,Y3.S,rd.M],imports:[[t.b2.withServerTransition({appId:"serverApp"}),Gv,d.JF,n2,g2,u2,Qp.hx.forRoot(),F3,t.t6,r.ud,Wv.Yg,h.kx,Zv.Rh.forRoot({preventDuplicates:!0,resetTimeoutOnDuplicate:!0,autoDismiss:!0,maxOpened:1}),$p.Wr.register("ngsw-worker.js",{enabled:jo.NZ.production,registrationStrategy:"registerWhenStable:30000"}),y.hO.initializeApp(jo.s3),by,Qn,Sy.XZ,Yo.Bz,$p.Wr.register("ngsw-worker.js",{enabled:jo.NZ.production,registrationStrategy:"registerWhenStable:30000"})]]}),T})();function aS(){t.q6().bootstrapModule(tE).catch(T=>console.error(T))}e.B6R(hi.y$,[Yo.lC,eE,G.O5],[]),jo.NZ.production&&(0,e.G48)(),"complete"===document.readyState?aS():document.addEventListener("DOMContentLoaded",aS)},87977:(M,b,n)=>{"use strict";const t=b;t.bignum=n(13854),t.define=n(39516).define,t.base=n(87813),t.constants=n(5459),t.decoders=n(70196),t.encoders=n(21131)},39516:(M,b,n)=>{"use strict";const t=n(21131),e=n(70196),l=n(83894);function r(d,y){this.name=d,this.body=y,this.decoders={},this.encoders={}}b.define=function(y,g){return new r(y,g)},r.prototype._createNamed=function(y){const g=this.name;function p(f){this._initNamed(f,g)}return l(p,y),p.prototype._initNamed=function(C,N){y.call(this,C,N)},new p(this)},r.prototype._getDecoder=function(y){return this.decoders.hasOwnProperty(y=y||"der")||(this.decoders[y]=this._createNamed(e[y])),this.decoders[y]},r.prototype.decode=function(y,g,p){return this._getDecoder(g).decode(y,p)},r.prototype._getEncoder=function(y){return this.encoders.hasOwnProperty(y=y||"der")||(this.encoders[y]=this._createNamed(t[y])),this.encoders[y]},r.prototype.encode=function(y,g,p){return this._getEncoder(g).encode(y,p)}},12769:(M,b,n)=>{"use strict";const t=n(83894),e=n(4919).b,l=n(62038).Buffer;function h(d,y){e.call(this,y),l.isBuffer(d)?(this.base=d,this.offset=0,this.length=d.length):this.error("Input not Buffer")}function r(d,y){if(Array.isArray(d))this.length=0,this.value=d.map(function(g){return r.isEncoderBuffer(g)||(g=new r(g,y)),this.length+=g.length,g},this);else if("number"==typeof d){if(!(0<=d&&d<=255))return y.error("non-byte EncoderBuffer value");this.value=d,this.length=1}else if("string"==typeof d)this.value=d,this.length=l.byteLength(d);else{if(!l.isBuffer(d))return y.error("Unsupported type: "+typeof d);this.value=d,this.length=d.length}}t(h,e),b.C=h,h.isDecoderBuffer=function(y){return y instanceof h||"object"==typeof y&&l.isBuffer(y.base)&&"DecoderBuffer"===y.constructor.name&&"number"==typeof y.offset&&"number"==typeof y.length&&"function"==typeof y.save&&"function"==typeof y.restore&&"function"==typeof y.isEmpty&&"function"==typeof y.readUInt8&&"function"==typeof y.skip&&"function"==typeof y.raw},h.prototype.save=function(){return{offset:this.offset,reporter:e.prototype.save.call(this)}},h.prototype.restore=function(y){const g=new h(this.base);return g.offset=y.offset,g.length=this.offset,this.offset=y.offset,e.prototype.restore.call(this,y.reporter),g},h.prototype.isEmpty=function(){return this.offset===this.length},h.prototype.readUInt8=function(y){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(y||"DecoderBuffer overrun")},h.prototype.skip=function(y,g){if(!(this.offset+y<=this.length))return this.error(g||"DecoderBuffer overrun");const p=new h(this.base);return p._reporterState=this._reporterState,p.offset=this.offset,p.length=this.offset+y,this.offset+=y,p},h.prototype.raw=function(y){return this.base.slice(y?y.offset:this.offset,this.length)},b.R=r,r.isEncoderBuffer=function(y){return y instanceof r||"object"==typeof y&&"EncoderBuffer"===y.constructor.name&&"number"==typeof y.length&&"function"==typeof y.join},r.prototype.join=function(y,g){return y||(y=l.alloc(this.length)),g||(g=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(p){p.join(y,g),g+=p.length}):("number"==typeof this.value?y[g]=this.value:"string"==typeof this.value?y.write(this.value,g):l.isBuffer(this.value)&&this.value.copy(y,g),g+=this.length)),y}},87813:(M,b,n)=>{"use strict";const t=b;t.Reporter=n(4919).b,t.DecoderBuffer=n(12769).C,t.EncoderBuffer=n(12769).R,t.Node=n(31430)},31430:(M,b,n)=>{"use strict";const t=n(4919).b,e=n(12769).R,l=n(12769).C,h=n(32391),r=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],d=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(r);function g(f,C,N){const a={};this._baseState=a,a.name=N,a.enc=f,a.parent=C||null,a.children=null,a.tag=null,a.args=null,a.reverseArgs=null,a.choice=null,a.optional=!1,a.any=!1,a.obj=!1,a.use=null,a.useDecoder=null,a.key=null,a.default=null,a.explicit=null,a.implicit=null,a.contains=null,a.parent||(a.children=[],this._wrap())}M.exports=g;const p=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];g.prototype.clone=function(){const C=this._baseState,N={};p.forEach(function(O){N[O]=C[O]});const a=new this.constructor(N.parent);return a._baseState=N,a},g.prototype._wrap=function(){const C=this._baseState;d.forEach(function(N){this[N]=function(){const O=new this.constructor(this);return C.children.push(O),O[N].apply(O,arguments)}},this)},g.prototype._init=function(C){const N=this._baseState;h(null===N.parent),C.call(this),N.children=N.children.filter(function(a){return a._baseState.parent===this},this),h.equal(N.children.length,1,"Root node can have only one child")},g.prototype._useArgs=function(C){const N=this._baseState,a=C.filter(function(O){return O instanceof this.constructor},this);C=C.filter(function(O){return!(O instanceof this.constructor)},this),0!==a.length&&(h(null===N.children),N.children=a,a.forEach(function(O){O._baseState.parent=this},this)),0!==C.length&&(h(null===N.args),N.args=C,N.reverseArgs=C.map(function(O){if("object"!=typeof O||O.constructor!==Object)return O;const H={};return Object.keys(O).forEach(function(F){F==(0|F)&&(F|=0),H[O[F]]=F}),H}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(f){g.prototype[f]=function(){throw new Error(f+" not implemented for encoding: "+this._baseState.enc)}}),r.forEach(function(f){g.prototype[f]=function(){const N=this._baseState,a=Array.prototype.slice.call(arguments);return h(null===N.tag),N.tag=f,this._useArgs(a),this}}),g.prototype.use=function(C){h(C);const N=this._baseState;return h(null===N.use),N.use=C,this},g.prototype.optional=function(){return this._baseState.optional=!0,this},g.prototype.def=function(C){const N=this._baseState;return h(null===N.default),N.default=C,N.optional=!0,this},g.prototype.explicit=function(C){const N=this._baseState;return h(null===N.explicit&&null===N.implicit),N.explicit=C,this},g.prototype.implicit=function(C){const N=this._baseState;return h(null===N.explicit&&null===N.implicit),N.implicit=C,this},g.prototype.obj=function(){const C=this._baseState,N=Array.prototype.slice.call(arguments);return C.obj=!0,0!==N.length&&this._useArgs(N),this},g.prototype.key=function(C){const N=this._baseState;return h(null===N.key),N.key=C,this},g.prototype.any=function(){return this._baseState.any=!0,this},g.prototype.choice=function(C){const N=this._baseState;return h(null===N.choice),N.choice=C,this._useArgs(Object.keys(C).map(function(a){return C[a]})),this},g.prototype.contains=function(C){const N=this._baseState;return h(null===N.use),N.contains=C,this},g.prototype._decode=function(C,N){const a=this._baseState;if(null===a.parent)return C.wrapResult(a.children[0]._decode(C,N));let V,O=a.default,H=!0,F=null;if(null!==a.key&&(F=C.enterKey(a.key)),a.optional){let D=null;if(null!==a.explicit?D=a.explicit:null!==a.implicit?D=a.implicit:null!==a.tag&&(D=a.tag),null!==D||a.any){if(H=this._peekTag(C,D,a.any),C.isError(H))return H}else{const U=C.save();try{null===a.choice?this._decodeGeneric(a.tag,C,N):this._decodeChoice(C,N),H=!0}catch{H=!1}C.restore(U)}}if(a.obj&&H&&(V=C.enterObject()),H){if(null!==a.explicit){const U=this._decodeTag(C,a.explicit);if(C.isError(U))return U;C=U}const D=C.offset;if(null===a.use&&null===a.choice){let U;a.any&&(U=C.save());const q=this._decodeTag(C,null!==a.implicit?a.implicit:a.tag,a.any);if(C.isError(q))return q;a.any?O=C.raw(U):C=q}if(N&&N.track&&null!==a.tag&&N.track(C.path(),D,C.length,"tagged"),N&&N.track&&null!==a.tag&&N.track(C.path(),C.offset,C.length,"content"),a.any||(O=null===a.choice?this._decodeGeneric(a.tag,C,N):this._decodeChoice(C,N)),C.isError(O))return O;if(!a.any&&null===a.choice&&null!==a.children&&a.children.forEach(function(q){q._decode(C,N)}),a.contains&&("octstr"===a.tag||"bitstr"===a.tag)){const U=new l(O);O=this._getUse(a.contains,C._reporterState.obj)._decode(U,N)}}return a.obj&&H&&(O=C.leaveObject(V)),null===a.key||null===O&&!0!==H?null!==F&&C.exitKey(F):C.leaveKey(F,a.key,O),O},g.prototype._decodeGeneric=function(C,N,a){const O=this._baseState;return"seq"===C||"set"===C?null:"seqof"===C||"setof"===C?this._decodeList(N,C,O.args[0],a):/str$/.test(C)?this._decodeStr(N,C,a):"objid"===C&&O.args?this._decodeObjid(N,O.args[0],O.args[1],a):"objid"===C?this._decodeObjid(N,null,null,a):"gentime"===C||"utctime"===C?this._decodeTime(N,C,a):"null_"===C?this._decodeNull(N,a):"bool"===C?this._decodeBool(N,a):"objDesc"===C?this._decodeStr(N,C,a):"int"===C||"enum"===C?this._decodeInt(N,O.args&&O.args[0],a):null!==O.use?this._getUse(O.use,N._reporterState.obj)._decode(N,a):N.error("unknown tag: "+C)},g.prototype._getUse=function(C,N){const a=this._baseState;return a.useDecoder=this._use(C,N),h(null===a.useDecoder._baseState.parent),a.useDecoder=a.useDecoder._baseState.children[0],a.implicit!==a.useDecoder._baseState.implicit&&(a.useDecoder=a.useDecoder.clone(),a.useDecoder._baseState.implicit=a.implicit),a.useDecoder},g.prototype._decodeChoice=function(C,N){const a=this._baseState;let O=null,H=!1;return Object.keys(a.choice).some(function(F){const V=C.save(),D=a.choice[F];try{const U=D._decode(C,N);if(C.isError(U))return!1;O={type:F,value:U},H=!0}catch{return C.restore(V),!1}return!0},this),H?O:C.error("Choice not matched")},g.prototype._createEncoderBuffer=function(C){return new e(C,this.reporter)},g.prototype._encode=function(C,N,a){const O=this._baseState;if(null!==O.default&&O.default===C)return;const H=this._encodeValue(C,N,a);return void 0===H||this._skipDefault(H,N,a)?void 0:H},g.prototype._encodeValue=function(C,N,a){const O=this._baseState;if(null===O.parent)return O.children[0]._encode(C,N||new t);let H=null;if(this.reporter=N,O.optional&&void 0===C){if(null===O.default)return;C=O.default}let F=null,V=!1;if(O.any)H=this._createEncoderBuffer(C);else if(O.choice)H=this._encodeChoice(C,N);else if(O.contains)F=this._getUse(O.contains,a)._encode(C,N),V=!0;else if(O.children)F=O.children.map(function(D){if("null_"===D._baseState.tag)return D._encode(null,N,C);if(null===D._baseState.key)return N.error("Child should have a key");const U=N.enterKey(D._baseState.key);if("object"!=typeof C)return N.error("Child expected, but input is not object");const q=D._encode(C[D._baseState.key],N,C);return N.leaveKey(U),q},this).filter(function(D){return D}),F=this._createEncoderBuffer(F);else if("seqof"===O.tag||"setof"===O.tag){if(!O.args||1!==O.args.length)return N.error("Too many args for : "+O.tag);if(!Array.isArray(C))return N.error("seqof/setof, but data is not Array");const D=this.clone();D._baseState.implicit=null,F=this._createEncoderBuffer(C.map(function(U){return this._getUse(this._baseState.args[0],C)._encode(U,N)},D))}else null!==O.use?H=this._getUse(O.use,a)._encode(C,N):(F=this._encodePrimitive(O.tag,C),V=!0);if(!O.any&&null===O.choice){const D=null!==O.implicit?O.implicit:O.tag,U=null===O.implicit?"universal":"context";null===D?null===O.use&&N.error("Tag could be omitted only for .use()"):null===O.use&&(H=this._encodeComposite(D,V,U,F))}return null!==O.explicit&&(H=this._encodeComposite(O.explicit,!1,"context",H)),H},g.prototype._encodeChoice=function(C,N){const a=this._baseState,O=a.choice[C.type];return O||h(!1,C.type+" not found in "+JSON.stringify(Object.keys(a.choice))),O._encode(C.value,N)},g.prototype._encodePrimitive=function(C,N){const a=this._baseState;if(/str$/.test(C))return this._encodeStr(N,C);if("objid"===C&&a.args)return this._encodeObjid(N,a.reverseArgs[0],a.args[1]);if("objid"===C)return this._encodeObjid(N,null,null);if("gentime"===C||"utctime"===C)return this._encodeTime(N,C);if("null_"===C)return this._encodeNull();if("int"===C||"enum"===C)return this._encodeInt(N,a.args&&a.reverseArgs[0]);if("bool"===C)return this._encodeBool(N);if("objDesc"===C)return this._encodeStr(N,C);throw new Error("Unsupported tag: "+C)},g.prototype._isNumstr=function(C){return/^[0-9 ]*$/.test(C)},g.prototype._isPrintstr=function(C){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(C)}},4919:(M,b,n)=>{"use strict";const t=n(83894);function e(h){this._reporterState={obj:null,path:[],options:h||{},errors:[]}}function l(h,r){this.path=h,this.rethrow(r)}b.b=e,e.prototype.isError=function(r){return r instanceof l},e.prototype.save=function(){const r=this._reporterState;return{obj:r.obj,pathLen:r.path.length}},e.prototype.restore=function(r){const d=this._reporterState;d.obj=r.obj,d.path=d.path.slice(0,r.pathLen)},e.prototype.enterKey=function(r){return this._reporterState.path.push(r)},e.prototype.exitKey=function(r){const d=this._reporterState;d.path=d.path.slice(0,r-1)},e.prototype.leaveKey=function(r,d,y){const g=this._reporterState;this.exitKey(r),null!==g.obj&&(g.obj[d]=y)},e.prototype.path=function(){return this._reporterState.path.join("/")},e.prototype.enterObject=function(){const r=this._reporterState,d=r.obj;return r.obj={},d},e.prototype.leaveObject=function(r){const d=this._reporterState,y=d.obj;return d.obj=r,y},e.prototype.error=function(r){let d;const y=this._reporterState,g=r instanceof l;if(d=g?r:new l(y.path.map(function(p){return"["+JSON.stringify(p)+"]"}).join(""),r.message||r,r.stack),!y.options.partial)throw d;return g||y.errors.push(d),d},e.prototype.wrapResult=function(r){const d=this._reporterState;return d.options.partial?{result:this.isError(r)?null:r,errors:d.errors}:r},t(l,Error),l.prototype.rethrow=function(r){if(this.message=r+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,l),!this.stack)try{throw new Error(this.message)}catch(d){this.stack=d.stack}return this}},25496:(M,b)=>{"use strict";function n(t){const e={};return Object.keys(t).forEach(function(l){(0|l)==l&&(l|=0),e[t[l]]=l}),e}b.tagClass={0:"universal",1:"application",2:"context",3:"private"},b.tagClassByName=n(b.tagClass),b.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},b.tagByName=n(b.tag)},5459:(M,b,n)=>{"use strict";const t=b;t._reverse=function(l){const h={};return Object.keys(l).forEach(function(r){(0|r)==r&&(r|=0),h[l[r]]=r}),h},t.der=n(25496)},87127:(M,b,n)=>{"use strict";const t=n(83894),e=n(13854),l=n(12769).C,h=n(31430),r=n(25496);function d(f){this.enc="der",this.name=f.name,this.entity=f,this.tree=new y,this.tree._init(f.body)}function y(f){h.call(this,"der",f)}function g(f,C){let N=f.readUInt8(C);if(f.isError(N))return N;const a=r.tagClass[N>>6],O=0==(32&N);if(31==(31&N)){let F=N;for(N=0;128==(128&F);){if(F=f.readUInt8(C),f.isError(F))return F;N<<=7,N|=127&F}}else N&=31;return{cls:a,primitive:O,tag:N,tagStr:r.tag[N]}}function p(f,C,N){let a=f.readUInt8(N);if(f.isError(a))return a;if(!C&&128===a)return null;if(0==(128&a))return a;const O=127&a;if(O>4)return f.error("length octect is too long");a=0;for(let H=0;H<O;H++){a<<=8;const F=f.readUInt8(N);if(f.isError(F))return F;a|=F}return a}M.exports=d,d.prototype.decode=function(C,N){return l.isDecoderBuffer(C)||(C=new l(C,N)),this.tree._decode(C,N)},t(y,h),y.prototype._peekTag=function(C,N,a){if(C.isEmpty())return!1;const O=C.save(),H=g(C,'Failed to peek tag: "'+N+'"');return C.isError(H)?H:(C.restore(O),H.tag===N||H.tagStr===N||H.tagStr+"of"===N||a)},y.prototype._decodeTag=function(C,N,a){const O=g(C,'Failed to decode tag of "'+N+'"');if(C.isError(O))return O;let H=p(C,O.primitive,'Failed to get length of "'+N+'"');if(C.isError(H))return H;if(!a&&O.tag!==N&&O.tagStr!==N&&O.tagStr+"of"!==N)return C.error('Failed to match tag: "'+N+'"');if(O.primitive||null!==H)return C.skip(H,'Failed to match body of: "'+N+'"');const F=C.save(),V=this._skipUntilEnd(C,'Failed to skip indefinite length body: "'+this.tag+'"');return C.isError(V)?V:(H=C.offset-F.offset,C.restore(F),C.skip(H,'Failed to match body of: "'+N+'"'))},y.prototype._skipUntilEnd=function(C,N){for(;;){const a=g(C,N);if(C.isError(a))return a;const O=p(C,a.primitive,N);if(C.isError(O))return O;let H;if(H=a.primitive||null!==O?C.skip(O):this._skipUntilEnd(C,N),C.isError(H))return H;if("end"===a.tagStr)break}},y.prototype._decodeList=function(C,N,a,O){const H=[];for(;!C.isEmpty();){const F=this._peekTag(C,"end");if(C.isError(F))return F;const V=a.decode(C,"der",O);if(C.isError(V)&&F)break;H.push(V)}return H},y.prototype._decodeStr=function(C,N){if("bitstr"===N){const a=C.readUInt8();return C.isError(a)?a:{unused:a,data:C.raw()}}if("bmpstr"===N){const a=C.raw();if(a.length%2==1)return C.error("Decoding of string type: bmpstr length mismatch");let O="";for(let H=0;H<a.length/2;H++)O+=String.fromCharCode(a.readUInt16BE(2*H));return O}if("numstr"===N){const a=C.raw().toString("ascii");return this._isNumstr(a)?a:C.error("Decoding of string type: numstr unsupported characters")}if("octstr"===N)return C.raw();if("objDesc"===N)return C.raw();if("printstr"===N){const a=C.raw().toString("ascii");return this._isPrintstr(a)?a:C.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(N)?C.raw().toString():C.error("Decoding of string type: "+N+" unsupported")},y.prototype._decodeObjid=function(C,N,a){let O;const H=[];let F=0,V=0;for(;!C.isEmpty();)V=C.readUInt8(),F<<=7,F|=127&V,0==(128&V)&&(H.push(F),F=0);if(128&V&&H.push(F),O=a?H:[H[0]/40|0,H[0]%40].concat(H.slice(1)),N){let q=N[O.join(" ")];void 0===q&&(q=N[O.join(".")]),void 0!==q&&(O=q)}return O},y.prototype._decodeTime=function(C,N){const a=C.raw().toString();let O,H,F,V,D,U;if("gentime"===N)O=0|a.slice(0,4),H=0|a.slice(4,6),F=0|a.slice(6,8),V=0|a.slice(8,10),D=0|a.slice(10,12),U=0|a.slice(12,14);else{if("utctime"!==N)return C.error("Decoding "+N+" time is not supported yet");O=0|a.slice(0,2),H=0|a.slice(2,4),F=0|a.slice(4,6),V=0|a.slice(6,8),D=0|a.slice(8,10),U=0|a.slice(10,12),O=O<70?2e3+O:1900+O}return Date.UTC(O,H-1,F,V,D,U,0)},y.prototype._decodeNull=function(){return null},y.prototype._decodeBool=function(C){const N=C.readUInt8();return C.isError(N)?N:0!==N},y.prototype._decodeInt=function(C,N){const a=C.raw();let O=new e(a);return N&&(O=N[O.toString(10)]||O),O},y.prototype._use=function(C,N){return"function"==typeof C&&(C=C(N)),C._getDecoder("der").tree}},70196:(M,b,n)=>{"use strict";const t=b;t.der=n(87127),t.pem=n(99617)},99617:(M,b,n)=>{"use strict";const t=n(83894),e=n(62038).Buffer,l=n(87127);function h(r){l.call(this,r),this.enc="pem"}t(h,l),M.exports=h,h.prototype.decode=function(d,y){const g=d.toString().split(/[\r\n]+/g),p=y.label.toUpperCase(),f=/^-----(BEGIN|END) ([^-]+)-----$/;let C=-1,N=-1;for(let H=0;H<g.length;H++){const F=g[H].match(f);if(null!==F&&F[2]===p){if(-1!==C){if("END"!==F[1])break;N=H;break}if("BEGIN"!==F[1])break;C=H}}if(-1===C||-1===N)throw new Error("PEM section not found for: "+p);const a=g.slice(C+1,N).join("");a.replace(/[^a-z0-9+/=]+/gi,"");const O=e.from(a,"base64");return l.prototype.decode.call(this,O,y)}},16374:(M,b,n)=>{"use strict";const t=n(83894),e=n(62038).Buffer,l=n(31430),h=n(25496);function r(p){this.enc="der",this.name=p.name,this.entity=p,this.tree=new d,this.tree._init(p.body)}function d(p){l.call(this,"der",p)}function y(p){return p<10?"0"+p:p}M.exports=r,r.prototype.encode=function(f,C){return this.tree._encode(f,C).join()},t(d,l),d.prototype._encodeComposite=function(f,C,N,a){const O=function g(p,f,C,N){let a;if("seqof"===p?p="seq":"setof"===p&&(p="set"),h.tagByName.hasOwnProperty(p))a=h.tagByName[p];else{if("number"!=typeof p||(0|p)!==p)return N.error("Unknown tag: "+p);a=p}return a>=31?N.error("Multi-octet tag encoding unsupported"):(f||(a|=32),a|=h.tagClassByName[C||"universal"]<<6,a)}(f,C,N,this.reporter);if(a.length<128){const V=e.alloc(2);return V[0]=O,V[1]=a.length,this._createEncoderBuffer([V,a])}let H=1;for(let V=a.length;V>=256;V>>=8)H++;const F=e.alloc(2+H);F[0]=O,F[1]=128|H;for(let V=1+H,D=a.length;D>0;V--,D>>=8)F[V]=255&D;return this._createEncoderBuffer([F,a])},d.prototype._encodeStr=function(f,C){if("bitstr"===C)return this._createEncoderBuffer([0|f.unused,f.data]);if("bmpstr"===C){const N=e.alloc(2*f.length);for(let a=0;a<f.length;a++)N.writeUInt16BE(f.charCodeAt(a),2*a);return this._createEncoderBuffer(N)}return"numstr"===C?this._isNumstr(f)?this._createEncoderBuffer(f):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===C?this._isPrintstr(f)?this._createEncoderBuffer(f):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(C)||"objDesc"===C?this._createEncoderBuffer(f):this.reporter.error("Encoding of string type: "+C+" unsupported")},d.prototype._encodeObjid=function(f,C,N){if("string"==typeof f){if(!C)return this.reporter.error("string objid given, but no values map found");if(!C.hasOwnProperty(f))return this.reporter.error("objid not found in values map");f=C[f].split(/[\s.]+/g);for(let F=0;F<f.length;F++)f[F]|=0}else if(Array.isArray(f)){f=f.slice();for(let F=0;F<f.length;F++)f[F]|=0}if(!Array.isArray(f))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(f));if(!N){if(f[1]>=40)return this.reporter.error("Second objid identifier OOB");f.splice(0,2,40*f[0]+f[1])}let a=0;for(let F=0;F<f.length;F++){let V=f[F];for(a++;V>=128;V>>=7)a++}const O=e.alloc(a);let H=O.length-1;for(let F=f.length-1;F>=0;F--){let V=f[F];for(O[H--]=127&V;(V>>=7)>0;)O[H--]=128|127&V}return this._createEncoderBuffer(O)},d.prototype._encodeTime=function(f,C){let N;const a=new Date(f);return"gentime"===C?N=[y(a.getUTCFullYear()),y(a.getUTCMonth()+1),y(a.getUTCDate()),y(a.getUTCHours()),y(a.getUTCMinutes()),y(a.getUTCSeconds()),"Z"].join(""):"utctime"===C?N=[y(a.getUTCFullYear()%100),y(a.getUTCMonth()+1),y(a.getUTCDate()),y(a.getUTCHours()),y(a.getUTCMinutes()),y(a.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+C+" time is not supported yet"),this._encodeStr(N,"octstr")},d.prototype._encodeNull=function(){return this._createEncoderBuffer("")},d.prototype._encodeInt=function(f,C){if("string"==typeof f){if(!C)return this.reporter.error("String int or enum given, but no values map");if(!C.hasOwnProperty(f))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(f));f=C[f]}if("number"!=typeof f&&!e.isBuffer(f)){const O=f.toArray();!f.sign&&128&O[0]&&O.unshift(0),f=e.from(O)}if(e.isBuffer(f)){let O=f.length;0===f.length&&O++;const H=e.alloc(O);return f.copy(H),0===f.length&&(H[0]=0),this._createEncoderBuffer(H)}if(f<128)return this._createEncoderBuffer(f);if(f<256)return this._createEncoderBuffer([0,f]);let N=1;for(let O=f;O>=256;O>>=8)N++;const a=new Array(N);for(let O=a.length-1;O>=0;O--)a[O]=255&f,f>>=8;return 128&a[0]&&a.unshift(0),this._createEncoderBuffer(e.from(a))},d.prototype._encodeBool=function(f){return this._createEncoderBuffer(f?255:0)},d.prototype._use=function(f,C){return"function"==typeof f&&(f=f(C)),f._getEncoder("der").tree},d.prototype._skipDefault=function(f,C,N){const a=this._baseState;let O;if(null===a.default)return!1;const H=f.join();if(void 0===a.defaultBuffer&&(a.defaultBuffer=this._encodeValue(a.default,C,N).join()),H.length!==a.defaultBuffer.length)return!1;for(O=0;O<H.length;O++)if(H[O]!==a.defaultBuffer[O])return!1;return!0}},21131:(M,b,n)=>{"use strict";const t=b;t.der=n(16374),t.pem=n(3530)},3530:(M,b,n)=>{"use strict";const t=n(83894),e=n(16374);function l(h){e.call(this,h),this.enc="pem"}t(l,e),M.exports=l,l.prototype.encode=function(r,d){const g=e.prototype.encode.call(this,r).toString("base64"),p=["-----BEGIN "+d.label+"-----"];for(let f=0;f<g.length;f+=64)p.push(g.slice(f,f+64));return p.push("-----END "+d.label+"-----"),p.join("\n")}},13854:function(M,b,n){!function(t,e){"use strict";function l(B,s){if(!B)throw new Error(s||"Assertion failed")}function h(B,s){B.super_=s;var _=function(){};_.prototype=s.prototype,B.prototype=new _,B.prototype.constructor=B}function r(B,s,_){if(r.isBN(B))return B;this.negative=0,this.words=null,this.length=0,this.red=null,null!==B&&(("le"===s||"be"===s)&&(_=s,s=10),this._init(B||0,s||10,_||"be"))}var d;"object"==typeof t?t.exports=r:e.BN=r,r.BN=r,r.wordSize=26;try{d=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:n(80950).Buffer}catch{}function y(B,s){var _=B.charCodeAt(s);return _>=65&&_<=70?_-55:_>=97&&_<=102?_-87:_-48&15}function g(B,s,_){var w=y(B,_);return _-1>=s&&(w|=y(B,_-1)<<4),w}function p(B,s,_,w){for(var E=0,x=Math.min(B.length,_),j=s;j<x;j++){var $=B.charCodeAt(j)-48;E*=w,E+=$>=49?$-49+10:$>=17?$-17+10:$}return E}r.isBN=function(s){return s instanceof r||null!==s&&"object"==typeof s&&s.constructor.wordSize===r.wordSize&&Array.isArray(s.words)},r.max=function(s,_){return s.cmp(_)>0?s:_},r.min=function(s,_){return s.cmp(_)<0?s:_},r.prototype._init=function(s,_,w){if("number"==typeof s)return this._initNumber(s,_,w);if("object"==typeof s)return this._initArray(s,_,w);"hex"===_&&(_=16),l(_===(0|_)&&_>=2&&_<=36);var E=0;"-"===(s=s.toString().replace(/\s+/g,""))[0]&&(E++,this.negative=1),E<s.length&&(16===_?this._parseHex(s,E,w):(this._parseBase(s,_,E),"le"===w&&this._initArray(this.toArray(),_,w)))},r.prototype._initNumber=function(s,_,w){s<0&&(this.negative=1,s=-s),s<67108864?(this.words=[67108863&s],this.length=1):s<4503599627370496?(this.words=[67108863&s,s/67108864&67108863],this.length=2):(l(s<9007199254740992),this.words=[67108863&s,s/67108864&67108863,1],this.length=3),"le"===w&&this._initArray(this.toArray(),_,w)},r.prototype._initArray=function(s,_,w){if(l("number"==typeof s.length),s.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(s.length/3),this.words=new Array(this.length);for(var E=0;E<this.length;E++)this.words[E]=0;var x,j,$=0;if("be"===w)for(E=s.length-1,x=0;E>=0;E-=3)this.words[x]|=(j=s[E]|s[E-1]<<8|s[E-2]<<16)<<$&67108863,this.words[x+1]=j>>>26-$&67108863,($+=24)>=26&&($-=26,x++);else if("le"===w)for(E=0,x=0;E<s.length;E+=3)this.words[x]|=(j=s[E]|s[E+1]<<8|s[E+2]<<16)<<$&67108863,this.words[x+1]=j>>>26-$&67108863,($+=24)>=26&&($-=26,x++);return this.strip()},r.prototype._parseHex=function(s,_,w){this.length=Math.ceil((s.length-_)/6),this.words=new Array(this.length);for(var E=0;E<this.length;E++)this.words[E]=0;var $,x=0,j=0;if("be"===w)for(E=s.length-1;E>=_;E-=2)$=g(s,_,E)<<x,this.words[j]|=67108863&$,x>=18?(x-=18,this.words[j+=1]|=$>>>26):x+=8;else for(E=(s.length-_)%2==0?_+1:_;E<s.length;E+=2)$=g(s,_,E)<<x,this.words[j]|=67108863&$,x>=18?(x-=18,this.words[j+=1]|=$>>>26):x+=8;this.strip()},r.prototype._parseBase=function(s,_,w){this.words=[0],this.length=1;for(var E=0,x=1;x<=67108863;x*=_)E++;E--,x=x/_|0;for(var j=s.length-w,$=j%E,Y=Math.min(j,j-$)+w,u=0,W=w;W<Y;W+=E)u=p(s,W,W+E,_),this.imuln(x),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==$){var fe=1;for(u=p(s,W,s.length,_),W=0;W<$;W++)fe*=_;this.imuln(fe),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},r.prototype.copy=function(s){s.words=new Array(this.length);for(var _=0;_<this.length;_++)s.words[_]=this.words[_];s.length=this.length,s.negative=this.negative,s.red=this.red},r.prototype.clone=function(){var s=new r(null);return this.copy(s),s},r.prototype._expand=function(s){for(;this.length<s;)this.words[this.length++]=0;return this},r.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},r.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},r.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],C=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],N=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function O(B,s,_){_.negative=s.negative^B.negative;var w=B.length+s.length|0;_.length=w,w=w-1|0;var E=0|B.words[0],x=0|s.words[0],j=E*x,Y=j/67108864|0;_.words[0]=67108863&j;for(var u=1;u<w;u++){for(var W=Y>>>26,fe=67108863&Y,ae=Math.min(u,s.length-1),ye=Math.max(0,u-B.length+1);ye<=ae;ye++)W+=(j=(E=0|B.words[u-ye|0])*(x=0|s.words[ye])+fe)/67108864|0,fe=67108863&j;_.words[u]=0|fe,Y=0|W}return 0!==Y?_.words[u]=0|Y:_.length--,_.strip()}r.prototype.toString=function(s,_){var w;if(_=0|_||1,16===(s=s||10)||"hex"===s){w="";for(var E=0,x=0,j=0;j<this.length;j++){var $=this.words[j],Y=(16777215&($<<E|x)).toString(16);w=0!=(x=$>>>24-E&16777215)||j!==this.length-1?f[6-Y.length]+Y+w:Y+w,(E+=2)>=26&&(E-=26,j--)}for(0!==x&&(w=x.toString(16)+w);w.length%_!=0;)w="0"+w;return 0!==this.negative&&(w="-"+w),w}if(s===(0|s)&&s>=2&&s<=36){var u=C[s],W=N[s];w="";var fe=this.clone();for(fe.negative=0;!fe.isZero();){var ae=fe.modn(W).toString(s);w=(fe=fe.idivn(W)).isZero()?ae+w:f[u-ae.length]+ae+w}for(this.isZero()&&(w="0"+w);w.length%_!=0;)w="0"+w;return 0!==this.negative&&(w="-"+w),w}l(!1,"Base should be between 2 and 36")},r.prototype.toNumber=function(){var s=this.words[0];return 2===this.length?s+=67108864*this.words[1]:3===this.length&&1===this.words[2]?s+=4503599627370496+67108864*this.words[1]:this.length>2&&l(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-s:s},r.prototype.toJSON=function(){return this.toString(16)},r.prototype.toBuffer=function(s,_){return l(typeof d<"u"),this.toArrayLike(d,s,_)},r.prototype.toArray=function(s,_){return this.toArrayLike(Array,s,_)},r.prototype.toArrayLike=function(s,_,w){var E=this.byteLength(),x=w||Math.max(1,E);l(E<=x,"byte array longer than desired length"),l(x>0,"Requested array length <= 0"),this.strip();var Y,u,j="le"===_,$=new s(x),W=this.clone();if(j){for(u=0;!W.isZero();u++)Y=W.andln(255),W.iushrn(8),$[u]=Y;for(;u<x;u++)$[u]=0}else{for(u=0;u<x-E;u++)$[u]=0;for(u=0;!W.isZero();u++)Y=W.andln(255),W.iushrn(8),$[x-u-1]=Y}return $},r.prototype._countBits=Math.clz32?function(s){return 32-Math.clz32(s)}:function(s){var _=s,w=0;return _>=4096&&(w+=13,_>>>=13),_>=64&&(w+=7,_>>>=7),_>=8&&(w+=4,_>>>=4),_>=2&&(w+=2,_>>>=2),w+_},r.prototype._zeroBits=function(s){if(0===s)return 26;var _=s,w=0;return 0==(8191&_)&&(w+=13,_>>>=13),0==(127&_)&&(w+=7,_>>>=7),0==(15&_)&&(w+=4,_>>>=4),0==(3&_)&&(w+=2,_>>>=2),0==(1&_)&&w++,w},r.prototype.bitLength=function(){var _=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+_},r.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s=0,_=0;_<this.length;_++){var w=this._zeroBits(this.words[_]);if(s+=w,26!==w)break}return s},r.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},r.prototype.toTwos=function(s){return 0!==this.negative?this.abs().inotn(s).iaddn(1):this.clone()},r.prototype.fromTwos=function(s){return this.testn(s-1)?this.notn(s).iaddn(1).ineg():this.clone()},r.prototype.isNeg=function(){return 0!==this.negative},r.prototype.neg=function(){return this.clone().ineg()},r.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},r.prototype.iuor=function(s){for(;this.length<s.length;)this.words[this.length++]=0;for(var _=0;_<s.length;_++)this.words[_]=this.words[_]|s.words[_];return this.strip()},r.prototype.ior=function(s){return l(0==(this.negative|s.negative)),this.iuor(s)},r.prototype.or=function(s){return this.length>s.length?this.clone().ior(s):s.clone().ior(this)},r.prototype.uor=function(s){return this.length>s.length?this.clone().iuor(s):s.clone().iuor(this)},r.prototype.iuand=function(s){var _;_=this.length>s.length?s:this;for(var w=0;w<_.length;w++)this.words[w]=this.words[w]&s.words[w];return this.length=_.length,this.strip()},r.prototype.iand=function(s){return l(0==(this.negative|s.negative)),this.iuand(s)},r.prototype.and=function(s){return this.length>s.length?this.clone().iand(s):s.clone().iand(this)},r.prototype.uand=function(s){return this.length>s.length?this.clone().iuand(s):s.clone().iuand(this)},r.prototype.iuxor=function(s){var _,w;this.length>s.length?(_=this,w=s):(_=s,w=this);for(var E=0;E<w.length;E++)this.words[E]=_.words[E]^w.words[E];if(this!==_)for(;E<_.length;E++)this.words[E]=_.words[E];return this.length=_.length,this.strip()},r.prototype.ixor=function(s){return l(0==(this.negative|s.negative)),this.iuxor(s)},r.prototype.xor=function(s){return this.length>s.length?this.clone().ixor(s):s.clone().ixor(this)},r.prototype.uxor=function(s){return this.length>s.length?this.clone().iuxor(s):s.clone().iuxor(this)},r.prototype.inotn=function(s){l("number"==typeof s&&s>=0);var _=0|Math.ceil(s/26),w=s%26;this._expand(_),w>0&&_--;for(var E=0;E<_;E++)this.words[E]=67108863&~this.words[E];return w>0&&(this.words[E]=~this.words[E]&67108863>>26-w),this.strip()},r.prototype.notn=function(s){return this.clone().inotn(s)},r.prototype.setn=function(s,_){l("number"==typeof s&&s>=0);var w=s/26|0,E=s%26;return this._expand(w+1),this.words[w]=_?this.words[w]|1<<E:this.words[w]&~(1<<E),this.strip()},r.prototype.iadd=function(s){var _,w,E;if(0!==this.negative&&0===s.negative)return this.negative=0,_=this.isub(s),this.negative^=1,this._normSign();if(0===this.negative&&0!==s.negative)return s.negative=0,_=this.isub(s),s.negative=1,_._normSign();this.length>s.length?(w=this,E=s):(w=s,E=this);for(var x=0,j=0;j<E.length;j++)this.words[j]=67108863&(_=(0|w.words[j])+(0|E.words[j])+x),x=_>>>26;for(;0!==x&&j<w.length;j++)this.words[j]=67108863&(_=(0|w.words[j])+x),x=_>>>26;if(this.length=w.length,0!==x)this.words[this.length]=x,this.length++;else if(w!==this)for(;j<w.length;j++)this.words[j]=w.words[j];return this},r.prototype.add=function(s){var _;return 0!==s.negative&&0===this.negative?(s.negative=0,_=this.sub(s),s.negative^=1,_):0===s.negative&&0!==this.negative?(this.negative=0,_=s.sub(this),this.negative=1,_):this.length>s.length?this.clone().iadd(s):s.clone().iadd(this)},r.prototype.isub=function(s){if(0!==s.negative){s.negative=0;var _=this.iadd(s);return s.negative=1,_._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(s),this.negative=1,this._normSign();var E,x,w=this.cmp(s);if(0===w)return this.negative=0,this.length=1,this.words[0]=0,this;w>0?(E=this,x=s):(E=s,x=this);for(var j=0,$=0;$<x.length;$++)j=(_=(0|E.words[$])-(0|x.words[$])+j)>>26,this.words[$]=67108863&_;for(;0!==j&&$<E.length;$++)j=(_=(0|E.words[$])+j)>>26,this.words[$]=67108863&_;if(0===j&&$<E.length&&E!==this)for(;$<E.length;$++)this.words[$]=E.words[$];return this.length=Math.max(this.length,$),E!==this&&(this.negative=1),this.strip()},r.prototype.sub=function(s){return this.clone().isub(s)};var H=function(s,_,w){var Y,u,W,E=s.words,x=_.words,j=w.words,$=0,fe=0|E[0],ae=8191&fe,ye=fe>>>13,Qe=0|E[1],Ot=8191&Qe,At=Qe>>>13,Ze=0|E[2],at=8191&Ze,Be=Ze>>>13,Lt=0|E[3],_e=8191&Lt,ne=Lt>>>13,be=0|E[4],Te=8191&be,$e=be>>>13,ft=0|E[5],Ge=8191&ft,Ft=ft>>>13,br=0|E[6],rt=8191&br,st=br>>>13,Dt=0|E[7],ot=8191&Dt,nt=Dt>>>13,Yt=0|E[8],Ne=8191&Yt,X=Yt>>>13,ge=0|E[9],Me=8191&ge,We=ge>>>13,Re=0|x[0],pt=8191&Re,Zt=Re>>>13,cr=0|x[1],wt=8191&cr,gt=cr>>>13,Ut=0|x[2],hr=8191&Ut,Cr=Ut>>>13,Ue=0|x[3],Pt=8191&Ue,He=Ue>>>13,tt=0|x[4],Ke=8191&tt,kt=tt>>>13,xe=0|x[5],Fe=8191&xe,lt=xe>>>13,St=0|x[6],qe=8191&St,ke=St>>>13,ct=0|x[7],vt=8191&ct,$t=ct>>>13,Vr=0|x[8],Sr=8191&Vr,Ar=Vr>>>13,Jr=0|x[9],Fr=8191&Jr,Gt=Jr>>>13;w.negative=s.negative^_.negative,w.length=19;var le=($+(Y=Math.imul(ae,pt))|0)+((8191&(u=(u=Math.imul(ae,Zt))+Math.imul(ye,pt)|0))<<13)|0;$=((W=Math.imul(ye,Zt))+(u>>>13)|0)+(le>>>26)|0,le&=67108863,Y=Math.imul(Ot,pt),u=(u=Math.imul(Ot,Zt))+Math.imul(At,pt)|0,W=Math.imul(At,Zt);var Ce=($+(Y=Y+Math.imul(ae,wt)|0)|0)+((8191&(u=(u=u+Math.imul(ae,gt)|0)+Math.imul(ye,wt)|0))<<13)|0;$=((W=W+Math.imul(ye,gt)|0)+(u>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,Y=Math.imul(at,pt),u=(u=Math.imul(at,Zt))+Math.imul(Be,pt)|0,W=Math.imul(Be,Zt),Y=Y+Math.imul(Ot,wt)|0,u=(u=u+Math.imul(Ot,gt)|0)+Math.imul(At,wt)|0,W=W+Math.imul(At,gt)|0;var Ie=($+(Y=Y+Math.imul(ae,hr)|0)|0)+((8191&(u=(u=u+Math.imul(ae,Cr)|0)+Math.imul(ye,hr)|0))<<13)|0;$=((W=W+Math.imul(ye,Cr)|0)+(u>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,Y=Math.imul(_e,pt),u=(u=Math.imul(_e,Zt))+Math.imul(ne,pt)|0,W=Math.imul(ne,Zt),Y=Y+Math.imul(at,wt)|0,u=(u=u+Math.imul(at,gt)|0)+Math.imul(Be,wt)|0,W=W+Math.imul(Be,gt)|0,Y=Y+Math.imul(Ot,hr)|0,u=(u=u+Math.imul(Ot,Cr)|0)+Math.imul(At,hr)|0,W=W+Math.imul(At,Cr)|0;var Pe=($+(Y=Y+Math.imul(ae,Pt)|0)|0)+((8191&(u=(u=u+Math.imul(ae,He)|0)+Math.imul(ye,Pt)|0))<<13)|0;$=((W=W+Math.imul(ye,He)|0)+(u>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,Y=Math.imul(Te,pt),u=(u=Math.imul(Te,Zt))+Math.imul($e,pt)|0,W=Math.imul($e,Zt),Y=Y+Math.imul(_e,wt)|0,u=(u=u+Math.imul(_e,gt)|0)+Math.imul(ne,wt)|0,W=W+Math.imul(ne,gt)|0,Y=Y+Math.imul(at,hr)|0,u=(u=u+Math.imul(at,Cr)|0)+Math.imul(Be,hr)|0,W=W+Math.imul(Be,Cr)|0,Y=Y+Math.imul(Ot,Pt)|0,u=(u=u+Math.imul(Ot,He)|0)+Math.imul(At,Pt)|0,W=W+Math.imul(At,He)|0;var Oe=($+(Y=Y+Math.imul(ae,Ke)|0)|0)+((8191&(u=(u=u+Math.imul(ae,kt)|0)+Math.imul(ye,Ke)|0))<<13)|0;$=((W=W+Math.imul(ye,kt)|0)+(u>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,Y=Math.imul(Ge,pt),u=(u=Math.imul(Ge,Zt))+Math.imul(Ft,pt)|0,W=Math.imul(Ft,Zt),Y=Y+Math.imul(Te,wt)|0,u=(u=u+Math.imul(Te,gt)|0)+Math.imul($e,wt)|0,W=W+Math.imul($e,gt)|0,Y=Y+Math.imul(_e,hr)|0,u=(u=u+Math.imul(_e,Cr)|0)+Math.imul(ne,hr)|0,W=W+Math.imul(ne,Cr)|0,Y=Y+Math.imul(at,Pt)|0,u=(u=u+Math.imul(at,He)|0)+Math.imul(Be,Pt)|0,W=W+Math.imul(Be,He)|0,Y=Y+Math.imul(Ot,Ke)|0,u=(u=u+Math.imul(Ot,kt)|0)+Math.imul(At,Ke)|0,W=W+Math.imul(At,kt)|0;var Se=($+(Y=Y+Math.imul(ae,Fe)|0)|0)+((8191&(u=(u=u+Math.imul(ae,lt)|0)+Math.imul(ye,Fe)|0))<<13)|0;$=((W=W+Math.imul(ye,lt)|0)+(u>>>13)|0)+(Se>>>26)|0,Se&=67108863,Y=Math.imul(rt,pt),u=(u=Math.imul(rt,Zt))+Math.imul(st,pt)|0,W=Math.imul(st,Zt),Y=Y+Math.imul(Ge,wt)|0,u=(u=u+Math.imul(Ge,gt)|0)+Math.imul(Ft,wt)|0,W=W+Math.imul(Ft,gt)|0,Y=Y+Math.imul(Te,hr)|0,u=(u=u+Math.imul(Te,Cr)|0)+Math.imul($e,hr)|0,W=W+Math.imul($e,Cr)|0,Y=Y+Math.imul(_e,Pt)|0,u=(u=u+Math.imul(_e,He)|0)+Math.imul(ne,Pt)|0,W=W+Math.imul(ne,He)|0,Y=Y+Math.imul(at,Ke)|0,u=(u=u+Math.imul(at,kt)|0)+Math.imul(Be,Ke)|0,W=W+Math.imul(Be,kt)|0,Y=Y+Math.imul(Ot,Fe)|0,u=(u=u+Math.imul(Ot,lt)|0)+Math.imul(At,Fe)|0,W=W+Math.imul(At,lt)|0;var Xe=($+(Y=Y+Math.imul(ae,qe)|0)|0)+((8191&(u=(u=u+Math.imul(ae,ke)|0)+Math.imul(ye,qe)|0))<<13)|0;$=((W=W+Math.imul(ye,ke)|0)+(u>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,Y=Math.imul(ot,pt),u=(u=Math.imul(ot,Zt))+Math.imul(nt,pt)|0,W=Math.imul(nt,Zt),Y=Y+Math.imul(rt,wt)|0,u=(u=u+Math.imul(rt,gt)|0)+Math.imul(st,wt)|0,W=W+Math.imul(st,gt)|0,Y=Y+Math.imul(Ge,hr)|0,u=(u=u+Math.imul(Ge,Cr)|0)+Math.imul(Ft,hr)|0,W=W+Math.imul(Ft,Cr)|0,Y=Y+Math.imul(Te,Pt)|0,u=(u=u+Math.imul(Te,He)|0)+Math.imul($e,Pt)|0,W=W+Math.imul($e,He)|0,Y=Y+Math.imul(_e,Ke)|0,u=(u=u+Math.imul(_e,kt)|0)+Math.imul(ne,Ke)|0,W=W+Math.imul(ne,kt)|0,Y=Y+Math.imul(at,Fe)|0,u=(u=u+Math.imul(at,lt)|0)+Math.imul(Be,Fe)|0,W=W+Math.imul(Be,lt)|0,Y=Y+Math.imul(Ot,qe)|0,u=(u=u+Math.imul(Ot,ke)|0)+Math.imul(At,qe)|0,W=W+Math.imul(At,ke)|0;var Ct=($+(Y=Y+Math.imul(ae,vt)|0)|0)+((8191&(u=(u=u+Math.imul(ae,$t)|0)+Math.imul(ye,vt)|0))<<13)|0;$=((W=W+Math.imul(ye,$t)|0)+(u>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,Y=Math.imul(Ne,pt),u=(u=Math.imul(Ne,Zt))+Math.imul(X,pt)|0,W=Math.imul(X,Zt),Y=Y+Math.imul(ot,wt)|0,u=(u=u+Math.imul(ot,gt)|0)+Math.imul(nt,wt)|0,W=W+Math.imul(nt,gt)|0,Y=Y+Math.imul(rt,hr)|0,u=(u=u+Math.imul(rt,Cr)|0)+Math.imul(st,hr)|0,W=W+Math.imul(st,Cr)|0,Y=Y+Math.imul(Ge,Pt)|0,u=(u=u+Math.imul(Ge,He)|0)+Math.imul(Ft,Pt)|0,W=W+Math.imul(Ft,He)|0,Y=Y+Math.imul(Te,Ke)|0,u=(u=u+Math.imul(Te,kt)|0)+Math.imul($e,Ke)|0,W=W+Math.imul($e,kt)|0,Y=Y+Math.imul(_e,Fe)|0,u=(u=u+Math.imul(_e,lt)|0)+Math.imul(ne,Fe)|0,W=W+Math.imul(ne,lt)|0,Y=Y+Math.imul(at,qe)|0,u=(u=u+Math.imul(at,ke)|0)+Math.imul(Be,qe)|0,W=W+Math.imul(Be,ke)|0,Y=Y+Math.imul(Ot,vt)|0,u=(u=u+Math.imul(Ot,$t)|0)+Math.imul(At,vt)|0,W=W+Math.imul(At,$t)|0;var zt=($+(Y=Y+Math.imul(ae,Sr)|0)|0)+((8191&(u=(u=u+Math.imul(ae,Ar)|0)+Math.imul(ye,Sr)|0))<<13)|0;$=((W=W+Math.imul(ye,Ar)|0)+(u>>>13)|0)+(zt>>>26)|0,zt&=67108863,Y=Math.imul(Me,pt),u=(u=Math.imul(Me,Zt))+Math.imul(We,pt)|0,W=Math.imul(We,Zt),Y=Y+Math.imul(Ne,wt)|0,u=(u=u+Math.imul(Ne,gt)|0)+Math.imul(X,wt)|0,W=W+Math.imul(X,gt)|0,Y=Y+Math.imul(ot,hr)|0,u=(u=u+Math.imul(ot,Cr)|0)+Math.imul(nt,hr)|0,W=W+Math.imul(nt,Cr)|0,Y=Y+Math.imul(rt,Pt)|0,u=(u=u+Math.imul(rt,He)|0)+Math.imul(st,Pt)|0,W=W+Math.imul(st,He)|0,Y=Y+Math.imul(Ge,Ke)|0,u=(u=u+Math.imul(Ge,kt)|0)+Math.imul(Ft,Ke)|0,W=W+Math.imul(Ft,kt)|0,Y=Y+Math.imul(Te,Fe)|0,u=(u=u+Math.imul(Te,lt)|0)+Math.imul($e,Fe)|0,W=W+Math.imul($e,lt)|0,Y=Y+Math.imul(_e,qe)|0,u=(u=u+Math.imul(_e,ke)|0)+Math.imul(ne,qe)|0,W=W+Math.imul(ne,ke)|0,Y=Y+Math.imul(at,vt)|0,u=(u=u+Math.imul(at,$t)|0)+Math.imul(Be,vt)|0,W=W+Math.imul(Be,$t)|0,Y=Y+Math.imul(Ot,Sr)|0,u=(u=u+Math.imul(Ot,Ar)|0)+Math.imul(At,Sr)|0,W=W+Math.imul(At,Ar)|0;var kr=($+(Y=Y+Math.imul(ae,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(ae,Gt)|0)+Math.imul(ye,Fr)|0))<<13)|0;$=((W=W+Math.imul(ye,Gt)|0)+(u>>>13)|0)+(kr>>>26)|0,kr&=67108863,Y=Math.imul(Me,wt),u=(u=Math.imul(Me,gt))+Math.imul(We,wt)|0,W=Math.imul(We,gt),Y=Y+Math.imul(Ne,hr)|0,u=(u=u+Math.imul(Ne,Cr)|0)+Math.imul(X,hr)|0,W=W+Math.imul(X,Cr)|0,Y=Y+Math.imul(ot,Pt)|0,u=(u=u+Math.imul(ot,He)|0)+Math.imul(nt,Pt)|0,W=W+Math.imul(nt,He)|0,Y=Y+Math.imul(rt,Ke)|0,u=(u=u+Math.imul(rt,kt)|0)+Math.imul(st,Ke)|0,W=W+Math.imul(st,kt)|0,Y=Y+Math.imul(Ge,Fe)|0,u=(u=u+Math.imul(Ge,lt)|0)+Math.imul(Ft,Fe)|0,W=W+Math.imul(Ft,lt)|0,Y=Y+Math.imul(Te,qe)|0,u=(u=u+Math.imul(Te,ke)|0)+Math.imul($e,qe)|0,W=W+Math.imul($e,ke)|0,Y=Y+Math.imul(_e,vt)|0,u=(u=u+Math.imul(_e,$t)|0)+Math.imul(ne,vt)|0,W=W+Math.imul(ne,$t)|0,Y=Y+Math.imul(at,Sr)|0,u=(u=u+Math.imul(at,Ar)|0)+Math.imul(Be,Sr)|0,W=W+Math.imul(Be,Ar)|0;var Br=($+(Y=Y+Math.imul(Ot,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(Ot,Gt)|0)+Math.imul(At,Fr)|0))<<13)|0;$=((W=W+Math.imul(At,Gt)|0)+(u>>>13)|0)+(Br>>>26)|0,Br&=67108863,Y=Math.imul(Me,hr),u=(u=Math.imul(Me,Cr))+Math.imul(We,hr)|0,W=Math.imul(We,Cr),Y=Y+Math.imul(Ne,Pt)|0,u=(u=u+Math.imul(Ne,He)|0)+Math.imul(X,Pt)|0,W=W+Math.imul(X,He)|0,Y=Y+Math.imul(ot,Ke)|0,u=(u=u+Math.imul(ot,kt)|0)+Math.imul(nt,Ke)|0,W=W+Math.imul(nt,kt)|0,Y=Y+Math.imul(rt,Fe)|0,u=(u=u+Math.imul(rt,lt)|0)+Math.imul(st,Fe)|0,W=W+Math.imul(st,lt)|0,Y=Y+Math.imul(Ge,qe)|0,u=(u=u+Math.imul(Ge,ke)|0)+Math.imul(Ft,qe)|0,W=W+Math.imul(Ft,ke)|0,Y=Y+Math.imul(Te,vt)|0,u=(u=u+Math.imul(Te,$t)|0)+Math.imul($e,vt)|0,W=W+Math.imul($e,$t)|0,Y=Y+Math.imul(_e,Sr)|0,u=(u=u+Math.imul(_e,Ar)|0)+Math.imul(ne,Sr)|0,W=W+Math.imul(ne,Ar)|0;var xt=($+(Y=Y+Math.imul(at,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(at,Gt)|0)+Math.imul(Be,Fr)|0))<<13)|0;$=((W=W+Math.imul(Be,Gt)|0)+(u>>>13)|0)+(xt>>>26)|0,xt&=67108863,Y=Math.imul(Me,Pt),u=(u=Math.imul(Me,He))+Math.imul(We,Pt)|0,W=Math.imul(We,He),Y=Y+Math.imul(Ne,Ke)|0,u=(u=u+Math.imul(Ne,kt)|0)+Math.imul(X,Ke)|0,W=W+Math.imul(X,kt)|0,Y=Y+Math.imul(ot,Fe)|0,u=(u=u+Math.imul(ot,lt)|0)+Math.imul(nt,Fe)|0,W=W+Math.imul(nt,lt)|0,Y=Y+Math.imul(rt,qe)|0,u=(u=u+Math.imul(rt,ke)|0)+Math.imul(st,qe)|0,W=W+Math.imul(st,ke)|0,Y=Y+Math.imul(Ge,vt)|0,u=(u=u+Math.imul(Ge,$t)|0)+Math.imul(Ft,vt)|0,W=W+Math.imul(Ft,$t)|0,Y=Y+Math.imul(Te,Sr)|0,u=(u=u+Math.imul(Te,Ar)|0)+Math.imul($e,Sr)|0,W=W+Math.imul($e,Ar)|0;var tr=($+(Y=Y+Math.imul(_e,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(_e,Gt)|0)+Math.imul(ne,Fr)|0))<<13)|0;$=((W=W+Math.imul(ne,Gt)|0)+(u>>>13)|0)+(tr>>>26)|0,tr&=67108863,Y=Math.imul(Me,Ke),u=(u=Math.imul(Me,kt))+Math.imul(We,Ke)|0,W=Math.imul(We,kt),Y=Y+Math.imul(Ne,Fe)|0,u=(u=u+Math.imul(Ne,lt)|0)+Math.imul(X,Fe)|0,W=W+Math.imul(X,lt)|0,Y=Y+Math.imul(ot,qe)|0,u=(u=u+Math.imul(ot,ke)|0)+Math.imul(nt,qe)|0,W=W+Math.imul(nt,ke)|0,Y=Y+Math.imul(rt,vt)|0,u=(u=u+Math.imul(rt,$t)|0)+Math.imul(st,vt)|0,W=W+Math.imul(st,$t)|0,Y=Y+Math.imul(Ge,Sr)|0,u=(u=u+Math.imul(Ge,Ar)|0)+Math.imul(Ft,Sr)|0,W=W+Math.imul(Ft,Ar)|0;var Rr=($+(Y=Y+Math.imul(Te,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(Te,Gt)|0)+Math.imul($e,Fr)|0))<<13)|0;$=((W=W+Math.imul($e,Gt)|0)+(u>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,Y=Math.imul(Me,Fe),u=(u=Math.imul(Me,lt))+Math.imul(We,Fe)|0,W=Math.imul(We,lt),Y=Y+Math.imul(Ne,qe)|0,u=(u=u+Math.imul(Ne,ke)|0)+Math.imul(X,qe)|0,W=W+Math.imul(X,ke)|0,Y=Y+Math.imul(ot,vt)|0,u=(u=u+Math.imul(ot,$t)|0)+Math.imul(nt,vt)|0,W=W+Math.imul(nt,$t)|0,Y=Y+Math.imul(rt,Sr)|0,u=(u=u+Math.imul(rt,Ar)|0)+Math.imul(st,Sr)|0,W=W+Math.imul(st,Ar)|0;var Ur=($+(Y=Y+Math.imul(Ge,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(Ge,Gt)|0)+Math.imul(Ft,Fr)|0))<<13)|0;$=((W=W+Math.imul(Ft,Gt)|0)+(u>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,Y=Math.imul(Me,qe),u=(u=Math.imul(Me,ke))+Math.imul(We,qe)|0,W=Math.imul(We,ke),Y=Y+Math.imul(Ne,vt)|0,u=(u=u+Math.imul(Ne,$t)|0)+Math.imul(X,vt)|0,W=W+Math.imul(X,$t)|0,Y=Y+Math.imul(ot,Sr)|0,u=(u=u+Math.imul(ot,Ar)|0)+Math.imul(nt,Sr)|0,W=W+Math.imul(nt,Ar)|0;var Nr=($+(Y=Y+Math.imul(rt,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(rt,Gt)|0)+Math.imul(st,Fr)|0))<<13)|0;$=((W=W+Math.imul(st,Gt)|0)+(u>>>13)|0)+(Nr>>>26)|0,Nr&=67108863,Y=Math.imul(Me,vt),u=(u=Math.imul(Me,$t))+Math.imul(We,vt)|0,W=Math.imul(We,$t),Y=Y+Math.imul(Ne,Sr)|0,u=(u=u+Math.imul(Ne,Ar)|0)+Math.imul(X,Sr)|0,W=W+Math.imul(X,Ar)|0;var zr=($+(Y=Y+Math.imul(ot,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(ot,Gt)|0)+Math.imul(nt,Fr)|0))<<13)|0;$=((W=W+Math.imul(nt,Gt)|0)+(u>>>13)|0)+(zr>>>26)|0,zr&=67108863,Y=Math.imul(Me,Sr),u=(u=Math.imul(Me,Ar))+Math.imul(We,Sr)|0,W=Math.imul(We,Ar);var hn=($+(Y=Y+Math.imul(Ne,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(Ne,Gt)|0)+Math.imul(X,Fr)|0))<<13)|0;$=((W=W+Math.imul(X,Gt)|0)+(u>>>13)|0)+(hn>>>26)|0,hn&=67108863;var _n=($+(Y=Math.imul(Me,Fr))|0)+((8191&(u=(u=Math.imul(Me,Gt))+Math.imul(We,Fr)|0))<<13)|0;return $=((W=Math.imul(We,Gt))+(u>>>13)|0)+(_n>>>26)|0,_n&=67108863,j[0]=le,j[1]=Ce,j[2]=Ie,j[3]=Pe,j[4]=Oe,j[5]=Se,j[6]=Xe,j[7]=Ct,j[8]=zt,j[9]=kr,j[10]=Br,j[11]=xt,j[12]=tr,j[13]=Rr,j[14]=Ur,j[15]=Nr,j[16]=zr,j[17]=hn,j[18]=_n,0!==$&&(j[19]=$,w.length++),w};function V(B,s,_){return(new D).mulp(B,s,_)}function D(B,s){this.x=B,this.y=s}Math.imul||(H=O),r.prototype.mulTo=function(s,_){var w,E=this.length+s.length;return w=10===this.length&&10===s.length?H(this,s,_):E<63?O(this,s,_):E<1024?function F(B,s,_){_.negative=s.negative^B.negative,_.length=B.length+s.length;for(var w=0,E=0,x=0;x<_.length-1;x++){var j=E;E=0;for(var $=67108863&w,Y=Math.min(x,s.length-1),u=Math.max(0,x-B.length+1);u<=Y;u++){var ye=(0|B.words[x-u])*(0|s.words[u]),Qe=67108863&ye;$=67108863&(Qe=Qe+$|0),E+=(j=(j=j+(ye/67108864|0)|0)+(Qe>>>26)|0)>>>26,j&=67108863}_.words[x]=$,w=j,j=E}return 0!==w?_.words[x]=w:_.length--,_.strip()}(this,s,_):V(this,s,_),w},D.prototype.makeRBT=function(s){for(var _=new Array(s),w=r.prototype._countBits(s)-1,E=0;E<s;E++)_[E]=this.revBin(E,w,s);return _},D.prototype.revBin=function(s,_,w){if(0===s||s===w-1)return s;for(var E=0,x=0;x<_;x++)E|=(1&s)<<_-x-1,s>>=1;return E},D.prototype.permute=function(s,_,w,E,x,j){for(var $=0;$<j;$++)E[$]=_[s[$]],x[$]=w[s[$]]},D.prototype.transform=function(s,_,w,E,x,j){this.permute(j,s,_,w,E,x);for(var $=1;$<x;$<<=1)for(var Y=$<<1,u=Math.cos(2*Math.PI/Y),W=Math.sin(2*Math.PI/Y),fe=0;fe<x;fe+=Y)for(var ae=u,ye=W,Qe=0;Qe<$;Qe++){var Ot=w[fe+Qe],At=E[fe+Qe],Ze=w[fe+Qe+$],at=E[fe+Qe+$],Be=ae*Ze-ye*at;at=ae*at+ye*Ze,w[fe+Qe]=Ot+(Ze=Be),E[fe+Qe]=At+at,w[fe+Qe+$]=Ot-Ze,E[fe+Qe+$]=At-at,Qe!==Y&&(Be=u*ae-W*ye,ye=u*ye+W*ae,ae=Be)}},D.prototype.guessLen13b=function(s,_){var w=1|Math.max(_,s),E=1&w,x=0;for(w=w/2|0;w;w>>>=1)x++;return 1<<x+1+E},D.prototype.conjugate=function(s,_,w){if(!(w<=1))for(var E=0;E<w/2;E++){var x=s[E];s[E]=s[w-E-1],s[w-E-1]=x,x=_[E],_[E]=-_[w-E-1],_[w-E-1]=-x}},D.prototype.normalize13b=function(s,_){for(var w=0,E=0;E<_/2;E++){var x=8192*Math.round(s[2*E+1]/_)+Math.round(s[2*E]/_)+w;s[E]=67108863&x,w=x<67108864?0:x/67108864|0}return s},D.prototype.convert13b=function(s,_,w,E){for(var x=0,j=0;j<_;j++)w[2*j]=8191&(x+=0|s[j]),w[2*j+1]=8191&(x>>>=13),x>>>=13;for(j=2*_;j<E;++j)w[j]=0;l(0===x),l(0==(-8192&x))},D.prototype.stub=function(s){for(var _=new Array(s),w=0;w<s;w++)_[w]=0;return _},D.prototype.mulp=function(s,_,w){var E=2*this.guessLen13b(s.length,_.length),x=this.makeRBT(E),j=this.stub(E),$=new Array(E),Y=new Array(E),u=new Array(E),W=new Array(E),fe=new Array(E),ae=new Array(E),ye=w.words;ye.length=E,this.convert13b(s.words,s.length,$,E),this.convert13b(_.words,_.length,W,E),this.transform($,j,Y,u,E,x),this.transform(W,j,fe,ae,E,x);for(var Qe=0;Qe<E;Qe++){var Ot=Y[Qe]*fe[Qe]-u[Qe]*ae[Qe];u[Qe]=Y[Qe]*ae[Qe]+u[Qe]*fe[Qe],Y[Qe]=Ot}return this.conjugate(Y,u,E),this.transform(Y,u,ye,j,E,x),this.conjugate(ye,j,E),this.normalize13b(ye,E),w.negative=s.negative^_.negative,w.length=s.length+_.length,w.strip()},r.prototype.mul=function(s){var _=new r(null);return _.words=new Array(this.length+s.length),this.mulTo(s,_)},r.prototype.mulf=function(s){var _=new r(null);return _.words=new Array(this.length+s.length),V(this,s,_)},r.prototype.imul=function(s){return this.clone().mulTo(s,this)},r.prototype.imuln=function(s){l("number"==typeof s),l(s<67108864);for(var _=0,w=0;w<this.length;w++){var E=(0|this.words[w])*s,x=(67108863&E)+(67108863&_);_>>=26,_+=E/67108864|0,_+=x>>>26,this.words[w]=67108863&x}return 0!==_&&(this.words[w]=_,this.length++),this},r.prototype.muln=function(s){return this.clone().imuln(s)},r.prototype.sqr=function(){return this.mul(this)},r.prototype.isqr=function(){return this.imul(this.clone())},r.prototype.pow=function(s){var _=function a(B){for(var s=new Array(B.bitLength()),_=0;_<s.length;_++){var E=_%26;s[_]=(B.words[_/26|0]&1<<E)>>>E}return s}(s);if(0===_.length)return new r(1);for(var w=this,E=0;E<_.length&&0===_[E];E++,w=w.sqr());if(++E<_.length)for(var x=w.sqr();E<_.length;E++,x=x.sqr())0!==_[E]&&(w=w.mul(x));return w},r.prototype.iushln=function(s){l("number"==typeof s&&s>=0);var x,_=s%26,w=(s-_)/26,E=67108863>>>26-_<<26-_;if(0!==_){var j=0;for(x=0;x<this.length;x++){var $=this.words[x]&E;this.words[x]=(0|this.words[x])-$<<_|j,j=$>>>26-_}j&&(this.words[x]=j,this.length++)}if(0!==w){for(x=this.length-1;x>=0;x--)this.words[x+w]=this.words[x];for(x=0;x<w;x++)this.words[x]=0;this.length+=w}return this.strip()},r.prototype.ishln=function(s){return l(0===this.negative),this.iushln(s)},r.prototype.iushrn=function(s,_,w){var E;l("number"==typeof s&&s>=0),E=_?(_-_%26)/26:0;var x=s%26,j=Math.min((s-x)/26,this.length),$=67108863^67108863>>>x<<x,Y=w;if(E-=j,E=Math.max(0,E),Y){for(var u=0;u<j;u++)Y.words[u]=this.words[u];Y.length=j}if(0!==j)if(this.length>j)for(this.length-=j,u=0;u<this.length;u++)this.words[u]=this.words[u+j];else this.words[0]=0,this.length=1;var W=0;for(u=this.length-1;u>=0&&(0!==W||u>=E);u--){var fe=0|this.words[u];this.words[u]=W<<26-x|fe>>>x,W=fe&$}return Y&&0!==W&&(Y.words[Y.length++]=W),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},r.prototype.ishrn=function(s,_,w){return l(0===this.negative),this.iushrn(s,_,w)},r.prototype.shln=function(s){return this.clone().ishln(s)},r.prototype.ushln=function(s){return this.clone().iushln(s)},r.prototype.shrn=function(s){return this.clone().ishrn(s)},r.prototype.ushrn=function(s){return this.clone().iushrn(s)},r.prototype.testn=function(s){l("number"==typeof s&&s>=0);var _=s%26,w=(s-_)/26;return!(this.length<=w||!(this.words[w]&1<<_))},r.prototype.imaskn=function(s){l("number"==typeof s&&s>=0);var _=s%26,w=(s-_)/26;return l(0===this.negative,"imaskn works only with positive numbers"),this.length<=w?this:(0!==_&&w++,this.length=Math.min(w,this.length),0!==_&&(this.words[this.length-1]&=67108863^67108863>>>_<<_),this.strip())},r.prototype.maskn=function(s){return this.clone().imaskn(s)},r.prototype.iaddn=function(s){return l("number"==typeof s),l(s<67108864),s<0?this.isubn(-s):0!==this.negative?1===this.length&&(0|this.words[0])<s?(this.words[0]=s-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(s),this.negative=1,this):this._iaddn(s)},r.prototype._iaddn=function(s){this.words[0]+=s;for(var _=0;_<this.length&&this.words[_]>=67108864;_++)this.words[_]-=67108864,_===this.length-1?this.words[_+1]=1:this.words[_+1]++;return this.length=Math.max(this.length,_+1),this},r.prototype.isubn=function(s){if(l("number"==typeof s),l(s<67108864),s<0)return this.iaddn(-s);if(0!==this.negative)return this.negative=0,this.iaddn(s),this.negative=1,this;if(this.words[0]-=s,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var _=0;_<this.length&&this.words[_]<0;_++)this.words[_]+=67108864,this.words[_+1]-=1;return this.strip()},r.prototype.addn=function(s){return this.clone().iaddn(s)},r.prototype.subn=function(s){return this.clone().isubn(s)},r.prototype.iabs=function(){return this.negative=0,this},r.prototype.abs=function(){return this.clone().iabs()},r.prototype._ishlnsubmul=function(s,_,w){var x;this._expand(s.length+w);var j,$=0;for(x=0;x<s.length;x++){j=(0|this.words[x+w])+$;var Y=(0|s.words[x])*_;$=((j-=67108863&Y)>>26)-(Y/67108864|0),this.words[x+w]=67108863&j}for(;x<this.length-w;x++)$=(j=(0|this.words[x+w])+$)>>26,this.words[x+w]=67108863&j;if(0===$)return this.strip();for(l(-1===$),$=0,x=0;x<this.length;x++)$=(j=-(0|this.words[x])+$)>>26,this.words[x]=67108863&j;return this.negative=1,this.strip()},r.prototype._wordDiv=function(s,_){var w,E=this.clone(),x=s,j=0|x.words[x.length-1];0!=(w=26-this._countBits(j))&&(x=x.ushln(w),E.iushln(w),j=0|x.words[x.length-1]);var u,Y=E.length-x.length;if("mod"!==_){(u=new r(null)).length=Y+1,u.words=new Array(u.length);for(var W=0;W<u.length;W++)u.words[W]=0}var fe=E.clone()._ishlnsubmul(x,1,Y);0===fe.negative&&(E=fe,u&&(u.words[Y]=1));for(var ae=Y-1;ae>=0;ae--){var ye=67108864*(0|E.words[x.length+ae])+(0|E.words[x.length+ae-1]);for(ye=Math.min(ye/j|0,67108863),E._ishlnsubmul(x,ye,ae);0!==E.negative;)ye--,E.negative=0,E._ishlnsubmul(x,1,ae),E.isZero()||(E.negative^=1);u&&(u.words[ae]=ye)}return u&&u.strip(),E.strip(),"div"!==_&&0!==w&&E.iushrn(w),{div:u||null,mod:E}},r.prototype.divmod=function(s,_,w){return l(!s.isZero()),this.isZero()?{div:new r(0),mod:new r(0)}:0!==this.negative&&0===s.negative?(j=this.neg().divmod(s,_),"mod"!==_&&(E=j.div.neg()),"div"!==_&&(x=j.mod.neg(),w&&0!==x.negative&&x.iadd(s)),{div:E,mod:x}):0===this.negative&&0!==s.negative?(j=this.divmod(s.neg(),_),"mod"!==_&&(E=j.div.neg()),{div:E,mod:j.mod}):0!=(this.negative&s.negative)?(j=this.neg().divmod(s.neg(),_),"div"!==_&&(x=j.mod.neg(),w&&0!==x.negative&&x.isub(s)),{div:j.div,mod:x}):s.length>this.length||this.cmp(s)<0?{div:new r(0),mod:this}:1===s.length?"div"===_?{div:this.divn(s.words[0]),mod:null}:"mod"===_?{div:null,mod:new r(this.modn(s.words[0]))}:{div:this.divn(s.words[0]),mod:new r(this.modn(s.words[0]))}:this._wordDiv(s,_);var E,x,j},r.prototype.div=function(s){return this.divmod(s,"div",!1).div},r.prototype.mod=function(s){return this.divmod(s,"mod",!1).mod},r.prototype.umod=function(s){return this.divmod(s,"mod",!0).mod},r.prototype.divRound=function(s){var _=this.divmod(s);if(_.mod.isZero())return _.div;var w=0!==_.div.negative?_.mod.isub(s):_.mod,E=s.ushrn(1),x=s.andln(1),j=w.cmp(E);return j<0||1===x&&0===j?_.div:0!==_.div.negative?_.div.isubn(1):_.div.iaddn(1)},r.prototype.modn=function(s){l(s<=67108863);for(var _=(1<<26)%s,w=0,E=this.length-1;E>=0;E--)w=(_*w+(0|this.words[E]))%s;return w},r.prototype.idivn=function(s){l(s<=67108863);for(var _=0,w=this.length-1;w>=0;w--){var E=(0|this.words[w])+67108864*_;this.words[w]=E/s|0,_=E%s}return this.strip()},r.prototype.divn=function(s){return this.clone().idivn(s)},r.prototype.egcd=function(s){l(0===s.negative),l(!s.isZero());var _=this,w=s.clone();_=0!==_.negative?_.umod(s):_.clone();for(var E=new r(1),x=new r(0),j=new r(0),$=new r(1),Y=0;_.isEven()&&w.isEven();)_.iushrn(1),w.iushrn(1),++Y;for(var u=w.clone(),W=_.clone();!_.isZero();){for(var fe=0,ae=1;0==(_.words[0]&ae)&&fe<26;++fe,ae<<=1);if(fe>0)for(_.iushrn(fe);fe-- >0;)(E.isOdd()||x.isOdd())&&(E.iadd(u),x.isub(W)),E.iushrn(1),x.iushrn(1);for(var ye=0,Qe=1;0==(w.words[0]&Qe)&&ye<26;++ye,Qe<<=1);if(ye>0)for(w.iushrn(ye);ye-- >0;)(j.isOdd()||$.isOdd())&&(j.iadd(u),$.isub(W)),j.iushrn(1),$.iushrn(1);_.cmp(w)>=0?(_.isub(w),E.isub(j),x.isub($)):(w.isub(_),j.isub(E),$.isub(x))}return{a:j,b:$,gcd:w.iushln(Y)}},r.prototype._invmp=function(s){l(0===s.negative),l(!s.isZero());var fe,_=this,w=s.clone();_=0!==_.negative?_.umod(s):_.clone();for(var E=new r(1),x=new r(0),j=w.clone();_.cmpn(1)>0&&w.cmpn(1)>0;){for(var $=0,Y=1;0==(_.words[0]&Y)&&$<26;++$,Y<<=1);if($>0)for(_.iushrn($);$-- >0;)E.isOdd()&&E.iadd(j),E.iushrn(1);for(var u=0,W=1;0==(w.words[0]&W)&&u<26;++u,W<<=1);if(u>0)for(w.iushrn(u);u-- >0;)x.isOdd()&&x.iadd(j),x.iushrn(1);_.cmp(w)>=0?(_.isub(w),E.isub(x)):(w.isub(_),x.isub(E))}return(fe=0===_.cmpn(1)?E:x).cmpn(0)<0&&fe.iadd(s),fe},r.prototype.gcd=function(s){if(this.isZero())return s.abs();if(s.isZero())return this.abs();var _=this.clone(),w=s.clone();_.negative=0,w.negative=0;for(var E=0;_.isEven()&&w.isEven();E++)_.iushrn(1),w.iushrn(1);for(;;){for(;_.isEven();)_.iushrn(1);for(;w.isEven();)w.iushrn(1);var x=_.cmp(w);if(x<0){var j=_;_=w,w=j}else if(0===x||0===w.cmpn(1))break;_.isub(w)}return w.iushln(E)},r.prototype.invm=function(s){return this.egcd(s).a.umod(s)},r.prototype.isEven=function(){return 0==(1&this.words[0])},r.prototype.isOdd=function(){return 1==(1&this.words[0])},r.prototype.andln=function(s){return this.words[0]&s},r.prototype.bincn=function(s){l("number"==typeof s);var _=s%26,w=(s-_)/26,E=1<<_;if(this.length<=w)return this._expand(w+1),this.words[w]|=E,this;for(var x=E,j=w;0!==x&&j<this.length;j++){var $=0|this.words[j];x=($+=x)>>>26,this.words[j]=$&=67108863}return 0!==x&&(this.words[j]=x,this.length++),this},r.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},r.prototype.cmpn=function(s){var w,_=s<0;if(0!==this.negative&&!_)return-1;if(0===this.negative&&_)return 1;if(this.strip(),this.length>1)w=1;else{_&&(s=-s),l(s<=67108863,"Number is too big");var E=0|this.words[0];w=E===s?0:E<s?-1:1}return 0!==this.negative?0|-w:w},r.prototype.cmp=function(s){if(0!==this.negative&&0===s.negative)return-1;if(0===this.negative&&0!==s.negative)return 1;var _=this.ucmp(s);return 0!==this.negative?0|-_:_},r.prototype.ucmp=function(s){if(this.length>s.length)return 1;if(this.length<s.length)return-1;for(var _=0,w=this.length-1;w>=0;w--){var E=0|this.words[w],x=0|s.words[w];if(E!==x){E<x?_=-1:E>x&&(_=1);break}}return _},r.prototype.gtn=function(s){return 1===this.cmpn(s)},r.prototype.gt=function(s){return 1===this.cmp(s)},r.prototype.gten=function(s){return this.cmpn(s)>=0},r.prototype.gte=function(s){return this.cmp(s)>=0},r.prototype.ltn=function(s){return-1===this.cmpn(s)},r.prototype.lt=function(s){return-1===this.cmp(s)},r.prototype.lten=function(s){return this.cmpn(s)<=0},r.prototype.lte=function(s){return this.cmp(s)<=0},r.prototype.eqn=function(s){return 0===this.cmpn(s)},r.prototype.eq=function(s){return 0===this.cmp(s)},r.red=function(s){return new re(s)},r.prototype.toRed=function(s){return l(!this.red,"Already a number in reduction context"),l(0===this.negative,"red works only with positives"),s.convertTo(this)._forceRed(s)},r.prototype.fromRed=function(){return l(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},r.prototype._forceRed=function(s){return this.red=s,this},r.prototype.forceRed=function(s){return l(!this.red,"Already a number in reduction context"),this._forceRed(s)},r.prototype.redAdd=function(s){return l(this.red,"redAdd works only with red numbers"),this.red.add(this,s)},r.prototype.redIAdd=function(s){return l(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,s)},r.prototype.redSub=function(s){return l(this.red,"redSub works only with red numbers"),this.red.sub(this,s)},r.prototype.redISub=function(s){return l(this.red,"redISub works only with red numbers"),this.red.isub(this,s)},r.prototype.redShl=function(s){return l(this.red,"redShl works only with red numbers"),this.red.shl(this,s)},r.prototype.redMul=function(s){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.mul(this,s)},r.prototype.redIMul=function(s){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.imul(this,s)},r.prototype.redSqr=function(){return l(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},r.prototype.redISqr=function(){return l(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},r.prototype.redSqrt=function(){return l(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},r.prototype.redInvm=function(){return l(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},r.prototype.redNeg=function(){return l(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},r.prototype.redPow=function(s){return l(this.red&&!s.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,s)};var U={k256:null,p224:null,p192:null,p25519:null};function q(B,s){this.name=B,this.p=new r(s,16),this.n=this.p.bitLength(),this.k=new r(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function J(){q.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function G(){q.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){q.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function K(){q.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function re(B){if("string"==typeof B){var s=r._prime(B);this.m=s.p,this.prime=s}else l(B.gtn(1),"modulus must be greater than 1"),this.m=B,this.prime=null}function oe(B){re.call(this,B),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new r(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}q.prototype._tmp=function(){var s=new r(null);return s.words=new Array(Math.ceil(this.n/13)),s},q.prototype.ireduce=function(s){var w,_=s;do{this.split(_,this.tmp),w=(_=(_=this.imulK(_)).iadd(this.tmp)).bitLength()}while(w>this.n);var E=w<this.n?-1:_.ucmp(this.p);return 0===E?(_.words[0]=0,_.length=1):E>0?_.isub(this.p):void 0!==_.strip?_.strip():_._strip(),_},q.prototype.split=function(s,_){s.iushrn(this.n,0,_)},q.prototype.imulK=function(s){return s.imul(this.k)},h(J,q),J.prototype.split=function(s,_){for(var w=4194303,E=Math.min(s.length,9),x=0;x<E;x++)_.words[x]=s.words[x];if(_.length=E,s.length<=9)return s.words[0]=0,void(s.length=1);var j=s.words[9];for(_.words[_.length++]=j&w,x=10;x<s.length;x++){var $=0|s.words[x];s.words[x-10]=($&w)<<4|j>>>22,j=$}s.words[x-10]=j>>>=22,s.length-=0===j&&s.length>10?10:9},J.prototype.imulK=function(s){s.words[s.length]=0,s.words[s.length+1]=0,s.length+=2;for(var _=0,w=0;w<s.length;w++){var E=0|s.words[w];s.words[w]=67108863&(_+=977*E),_=64*E+(_/67108864|0)}return 0===s.words[s.length-1]&&(s.length--,0===s.words[s.length-1]&&s.length--),s},h(G,q),h(ie,q),h(K,q),K.prototype.imulK=function(s){for(var _=0,w=0;w<s.length;w++){var E=19*(0|s.words[w])+_,x=67108863&E;E>>>=26,s.words[w]=x,_=E}return 0!==_&&(s.words[s.length++]=_),s},r._prime=function(s){if(U[s])return U[s];var _;if("k256"===s)_=new J;else if("p224"===s)_=new G;else if("p192"===s)_=new ie;else{if("p25519"!==s)throw new Error("Unknown prime "+s);_=new K}return U[s]=_,_},re.prototype._verify1=function(s){l(0===s.negative,"red works only with positives"),l(s.red,"red works only with red numbers")},re.prototype._verify2=function(s,_){l(0==(s.negative|_.negative),"red works only with positives"),l(s.red&&s.red===_.red,"red works only with red numbers")},re.prototype.imod=function(s){return this.prime?this.prime.ireduce(s)._forceRed(this):s.umod(this.m)._forceRed(this)},re.prototype.neg=function(s){return s.isZero()?s.clone():this.m.sub(s)._forceRed(this)},re.prototype.add=function(s,_){this._verify2(s,_);var w=s.add(_);return w.cmp(this.m)>=0&&w.isub(this.m),w._forceRed(this)},re.prototype.iadd=function(s,_){this._verify2(s,_);var w=s.iadd(_);return w.cmp(this.m)>=0&&w.isub(this.m),w},re.prototype.sub=function(s,_){this._verify2(s,_);var w=s.sub(_);return w.cmpn(0)<0&&w.iadd(this.m),w._forceRed(this)},re.prototype.isub=function(s,_){this._verify2(s,_);var w=s.isub(_);return w.cmpn(0)<0&&w.iadd(this.m),w},re.prototype.shl=function(s,_){return this._verify1(s),this.imod(s.ushln(_))},re.prototype.imul=function(s,_){return this._verify2(s,_),this.imod(s.imul(_))},re.prototype.mul=function(s,_){return this._verify2(s,_),this.imod(s.mul(_))},re.prototype.isqr=function(s){return this.imul(s,s.clone())},re.prototype.sqr=function(s){return this.mul(s,s)},re.prototype.sqrt=function(s){if(s.isZero())return s.clone();var _=this.m.andln(3);if(l(_%2==1),3===_){var w=this.m.add(new r(1)).iushrn(2);return this.pow(s,w)}for(var E=this.m.subn(1),x=0;!E.isZero()&&0===E.andln(1);)x++,E.iushrn(1);l(!E.isZero());var j=new r(1).toRed(this),$=j.redNeg(),Y=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new r(2*u*u).toRed(this);0!==this.pow(u,Y).cmp($);)u.redIAdd($);for(var W=this.pow(u,E),fe=this.pow(s,E.addn(1).iushrn(1)),ae=this.pow(s,E),ye=x;0!==ae.cmp(j);){for(var Qe=ae,Ot=0;0!==Qe.cmp(j);Ot++)Qe=Qe.redSqr();l(Ot<ye);var At=this.pow(W,new r(1).iushln(ye-Ot-1));fe=fe.redMul(At),W=At.redSqr(),ae=ae.redMul(W),ye=Ot}return fe},re.prototype.invm=function(s){var _=s._invmp(this.m);return 0!==_.negative?(_.negative=0,this.imod(_).redNeg()):this.imod(_)},re.prototype.pow=function(s,_){if(_.isZero())return new r(1).toRed(this);if(0===_.cmpn(1))return s.clone();var E=new Array(16);E[0]=new r(1).toRed(this),E[1]=s;for(var x=2;x<E.length;x++)E[x]=this.mul(E[x-1],s);var j=E[0],$=0,Y=0,u=_.bitLength()%26;for(0===u&&(u=26),x=_.length-1;x>=0;x--){for(var W=_.words[x],fe=u-1;fe>=0;fe--){var ae=W>>fe&1;j!==E[0]&&(j=this.sqr(j)),0!==ae||0!==$?($<<=1,$|=ae,(4==++Y||0===x&&0===fe)&&(j=this.mul(j,E[$]),Y=0,$=0)):Y=0}u=26}return j},re.prototype.convertTo=function(s){var _=s.umod(this.m);return _===s?_.clone():_},re.prototype.convertFrom=function(s){var _=s.clone();return _.red=null,_},r.mont=function(s){return new oe(s)},h(oe,re),oe.prototype.convertTo=function(s){return this.imod(s.ushln(this.shift))},oe.prototype.convertFrom=function(s){var _=this.imod(s.mul(this.rinv));return _.red=null,_},oe.prototype.imul=function(s,_){if(s.isZero()||_.isZero())return s.words[0]=0,s.length=1,s;var w=s.imul(_),E=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=w.isub(E).iushrn(this.shift),j=x;return x.cmp(this.m)>=0?j=x.isub(this.m):x.cmpn(0)<0&&(j=x.iadd(this.m)),j._forceRed(this)},oe.prototype.mul=function(s,_){if(s.isZero()||_.isZero())return new r(0)._forceRed(this);var w=s.mul(_),E=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=w.isub(E).iushrn(this.shift),j=x;return x.cmp(this.m)>=0?j=x.isub(this.m):x.cmpn(0)<0&&(j=x.iadd(this.m)),j._forceRed(this)},oe.prototype.invm=function(s){return this.imod(s._invmp(this.m).mul(this.r2))._forceRed(this)}}(M=n.nmd(M),this)},5343:(M,b)=>{"use strict";b.byteLength=function y(a){var O=d(a),F=O[1];return 3*(O[0]+F)/4-F},b.toByteArray=function p(a){var O,J,H=d(a),F=H[0],V=H[1],D=new e(function g(a,O,H){return 3*(O+H)/4-H}(0,F,V)),U=0,q=V>0?F-4:F;for(J=0;J<q;J+=4)O=t[a.charCodeAt(J)]<<18|t[a.charCodeAt(J+1)]<<12|t[a.charCodeAt(J+2)]<<6|t[a.charCodeAt(J+3)],D[U++]=O>>16&255,D[U++]=O>>8&255,D[U++]=255&O;return 2===V&&(O=t[a.charCodeAt(J)]<<2|t[a.charCodeAt(J+1)]>>4,D[U++]=255&O),1===V&&(O=t[a.charCodeAt(J)]<<10|t[a.charCodeAt(J+1)]<<4|t[a.charCodeAt(J+2)]>>2,D[U++]=O>>8&255,D[U++]=255&O),D},b.fromByteArray=function N(a){for(var O,H=a.length,F=H%3,V=[],D=16383,U=0,q=H-F;U<q;U+=D)V.push(C(a,U,U+D>q?q:U+D));return 1===F?V.push(n[(O=a[H-1])>>2]+n[O<<4&63]+"=="):2===F&&V.push(n[(O=(a[H-2]<<8)+a[H-1])>>10]+n[O>>4&63]+n[O<<2&63]+"="),V.join("")};for(var n=[],t=[],e=typeof Uint8Array<"u"?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,r=l.length;h<r;++h)n[h]=l[h],t[l.charCodeAt(h)]=h;function d(a){var O=a.length;if(O%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var H=a.indexOf("=");return-1===H&&(H=O),[H,H===O?0:4-H%4]}function f(a){return n[a>>18&63]+n[a>>12&63]+n[a>>6&63]+n[63&a]}function C(a,O,H){for(var V=[],D=O;D<H;D+=3)V.push(f((a[D]<<16&16711680)+(a[D+1]<<8&65280)+(255&a[D+2])));return V.join("")}t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63},98538:function(M,b,n){!function(t,e){"use strict";function l(w,E){if(!w)throw new Error(E||"Assertion failed")}function h(w,E){w.super_=E;var x=function(){};x.prototype=E.prototype,w.prototype=new x,w.prototype.constructor=w}function r(w,E,x){if(r.isBN(w))return w;this.negative=0,this.words=null,this.length=0,this.red=null,null!==w&&(("le"===E||"be"===E)&&(x=E,E=10),this._init(w||0,E||10,x||"be"))}var d;"object"==typeof t?t.exports=r:e.BN=r,r.BN=r,r.wordSize=26;try{d=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:n(46601).Buffer}catch{}function y(w,E){var x=w.charCodeAt(E);return x>=48&&x<=57?x-48:x>=65&&x<=70?x-55:x>=97&&x<=102?x-87:void l(!1,"Invalid character in "+w)}function g(w,E,x){var j=y(w,x);return x-1>=E&&(j|=y(w,x-1)<<4),j}function p(w,E,x,j){for(var $=0,Y=0,u=Math.min(w.length,x),W=E;W<u;W++){var fe=w.charCodeAt(W)-48;$*=j,Y=fe>=49?fe-49+10:fe>=17?fe-17+10:fe,l(fe>=0&&Y<j,"Invalid character"),$+=Y}return $}function f(w,E){w.words=E.words,w.length=E.length,w.negative=E.negative,w.red=E.red}if(r.isBN=function(E){return E instanceof r||null!==E&&"object"==typeof E&&E.constructor.wordSize===r.wordSize&&Array.isArray(E.words)},r.max=function(E,x){return E.cmp(x)>0?E:x},r.min=function(E,x){return E.cmp(x)<0?E:x},r.prototype._init=function(E,x,j){if("number"==typeof E)return this._initNumber(E,x,j);if("object"==typeof E)return this._initArray(E,x,j);"hex"===x&&(x=16),l(x===(0|x)&&x>=2&&x<=36);var $=0;"-"===(E=E.toString().replace(/\s+/g,""))[0]&&($++,this.negative=1),$<E.length&&(16===x?this._parseHex(E,$,j):(this._parseBase(E,x,$),"le"===j&&this._initArray(this.toArray(),x,j)))},r.prototype._initNumber=function(E,x,j){E<0&&(this.negative=1,E=-E),E<67108864?(this.words=[67108863&E],this.length=1):E<4503599627370496?(this.words=[67108863&E,E/67108864&67108863],this.length=2):(l(E<9007199254740992),this.words=[67108863&E,E/67108864&67108863,1],this.length=3),"le"===j&&this._initArray(this.toArray(),x,j)},r.prototype._initArray=function(E,x,j){if(l("number"==typeof E.length),E.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(E.length/3),this.words=new Array(this.length);for(var $=0;$<this.length;$++)this.words[$]=0;var Y,u,W=0;if("be"===j)for($=E.length-1,Y=0;$>=0;$-=3)this.words[Y]|=(u=E[$]|E[$-1]<<8|E[$-2]<<16)<<W&67108863,this.words[Y+1]=u>>>26-W&67108863,(W+=24)>=26&&(W-=26,Y++);else if("le"===j)for($=0,Y=0;$<E.length;$+=3)this.words[Y]|=(u=E[$]|E[$+1]<<8|E[$+2]<<16)<<W&67108863,this.words[Y+1]=u>>>26-W&67108863,(W+=24)>=26&&(W-=26,Y++);return this._strip()},r.prototype._parseHex=function(E,x,j){this.length=Math.ceil((E.length-x)/6),this.words=new Array(this.length);for(var $=0;$<this.length;$++)this.words[$]=0;var W,Y=0,u=0;if("be"===j)for($=E.length-1;$>=x;$-=2)W=g(E,x,$)<<Y,this.words[u]|=67108863&W,Y>=18?(Y-=18,this.words[u+=1]|=W>>>26):Y+=8;else for($=(E.length-x)%2==0?x+1:x;$<E.length;$+=2)W=g(E,x,$)<<Y,this.words[u]|=67108863&W,Y>=18?(Y-=18,this.words[u+=1]|=W>>>26):Y+=8;this._strip()},r.prototype._parseBase=function(E,x,j){this.words=[0],this.length=1;for(var $=0,Y=1;Y<=67108863;Y*=x)$++;$--,Y=Y/x|0;for(var u=E.length-j,W=u%$,fe=Math.min(u,u-W)+j,ae=0,ye=j;ye<fe;ye+=$)ae=p(E,ye,ye+$,x),this.imuln(Y),this.words[0]+ae<67108864?this.words[0]+=ae:this._iaddn(ae);if(0!==W){var Qe=1;for(ae=p(E,ye,E.length,x),ye=0;ye<W;ye++)Qe*=x;this.imuln(Qe),this.words[0]+ae<67108864?this.words[0]+=ae:this._iaddn(ae)}this._strip()},r.prototype.copy=function(E){E.words=new Array(this.length);for(var x=0;x<this.length;x++)E.words[x]=this.words[x];E.length=this.length,E.negative=this.negative,E.red=this.red},r.prototype._move=function(E){f(E,this)},r.prototype.clone=function(){var E=new r(null);return this.copy(E),E},r.prototype._expand=function(E){for(;this.length<E;)this.words[this.length++]=0;return this},r.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},r.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},typeof Symbol<"u"&&"function"==typeof Symbol.for)try{r.prototype[Symbol.for("nodejs.util.inspect.custom")]=C}catch{r.prototype.inspect=C}else r.prototype.inspect=C;function C(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var N=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],a=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],O=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function V(w,E,x){x.negative=E.negative^w.negative;var j=w.length+E.length|0;x.length=j,j=j-1|0;var $=0|w.words[0],Y=0|E.words[0],u=$*Y,fe=u/67108864|0;x.words[0]=67108863&u;for(var ae=1;ae<j;ae++){for(var ye=fe>>>26,Qe=67108863&fe,Ot=Math.min(ae,E.length-1),At=Math.max(0,ae-w.length+1);At<=Ot;At++)ye+=(u=($=0|w.words[ae-At|0])*(Y=0|E.words[At])+Qe)/67108864|0,Qe=67108863&u;x.words[ae]=0|Qe,fe=0|ye}return 0!==fe?x.words[ae]=0|fe:x.length--,x._strip()}r.prototype.toString=function(E,x){var j;if(x=0|x||1,16===(E=E||10)||"hex"===E){j="";for(var $=0,Y=0,u=0;u<this.length;u++){var W=this.words[u],fe=(16777215&(W<<$|Y)).toString(16);j=0!=(Y=W>>>24-$&16777215)||u!==this.length-1?N[6-fe.length]+fe+j:fe+j,($+=2)>=26&&($-=26,u--)}for(0!==Y&&(j=Y.toString(16)+j);j.length%x!=0;)j="0"+j;return 0!==this.negative&&(j="-"+j),j}if(E===(0|E)&&E>=2&&E<=36){var ae=a[E],ye=O[E];j="";var Qe=this.clone();for(Qe.negative=0;!Qe.isZero();){var Ot=Qe.modrn(ye).toString(E);j=(Qe=Qe.idivn(ye)).isZero()?Ot+j:N[ae-Ot.length]+Ot+j}for(this.isZero()&&(j="0"+j);j.length%x!=0;)j="0"+j;return 0!==this.negative&&(j="-"+j),j}l(!1,"Base should be between 2 and 36")},r.prototype.toNumber=function(){var E=this.words[0];return 2===this.length?E+=67108864*this.words[1]:3===this.length&&1===this.words[2]?E+=4503599627370496+67108864*this.words[1]:this.length>2&&l(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-E:E},r.prototype.toJSON=function(){return this.toString(16,2)},d&&(r.prototype.toBuffer=function(E,x){return this.toArrayLike(d,E,x)}),r.prototype.toArray=function(E,x){return this.toArrayLike(Array,E,x)},r.prototype.toArrayLike=function(E,x,j){this._strip();var $=this.byteLength(),Y=j||Math.max(1,$);l($<=Y,"byte array longer than desired length"),l(Y>0,"Requested array length <= 0");var u=function(E,x){return E.allocUnsafe?E.allocUnsafe(x):new E(x)}(E,Y);return this["_toArrayLike"+("le"===x?"LE":"BE")](u,$),u},r.prototype._toArrayLikeLE=function(E,x){for(var j=0,$=0,Y=0,u=0;Y<this.length;Y++){var W=this.words[Y]<<u|$;E[j++]=255&W,j<E.length&&(E[j++]=W>>8&255),j<E.length&&(E[j++]=W>>16&255),6===u?(j<E.length&&(E[j++]=W>>24&255),$=0,u=0):($=W>>>24,u+=2)}if(j<E.length)for(E[j++]=$;j<E.length;)E[j++]=0},r.prototype._toArrayLikeBE=function(E,x){for(var j=E.length-1,$=0,Y=0,u=0;Y<this.length;Y++){var W=this.words[Y]<<u|$;E[j--]=255&W,j>=0&&(E[j--]=W>>8&255),j>=0&&(E[j--]=W>>16&255),6===u?(j>=0&&(E[j--]=W>>24&255),$=0,u=0):($=W>>>24,u+=2)}if(j>=0)for(E[j--]=$;j>=0;)E[j--]=0},r.prototype._countBits=Math.clz32?function(E){return 32-Math.clz32(E)}:function(E){var x=E,j=0;return x>=4096&&(j+=13,x>>>=13),x>=64&&(j+=7,x>>>=7),x>=8&&(j+=4,x>>>=4),x>=2&&(j+=2,x>>>=2),j+x},r.prototype._zeroBits=function(E){if(0===E)return 26;var x=E,j=0;return 0==(8191&x)&&(j+=13,x>>>=13),0==(127&x)&&(j+=7,x>>>=7),0==(15&x)&&(j+=4,x>>>=4),0==(3&x)&&(j+=2,x>>>=2),0==(1&x)&&j++,j},r.prototype.bitLength=function(){var x=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+x},r.prototype.zeroBits=function(){if(this.isZero())return 0;for(var E=0,x=0;x<this.length;x++){var j=this._zeroBits(this.words[x]);if(E+=j,26!==j)break}return E},r.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},r.prototype.toTwos=function(E){return 0!==this.negative?this.abs().inotn(E).iaddn(1):this.clone()},r.prototype.fromTwos=function(E){return this.testn(E-1)?this.notn(E).iaddn(1).ineg():this.clone()},r.prototype.isNeg=function(){return 0!==this.negative},r.prototype.neg=function(){return this.clone().ineg()},r.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},r.prototype.iuor=function(E){for(;this.length<E.length;)this.words[this.length++]=0;for(var x=0;x<E.length;x++)this.words[x]=this.words[x]|E.words[x];return this._strip()},r.prototype.ior=function(E){return l(0==(this.negative|E.negative)),this.iuor(E)},r.prototype.or=function(E){return this.length>E.length?this.clone().ior(E):E.clone().ior(this)},r.prototype.uor=function(E){return this.length>E.length?this.clone().iuor(E):E.clone().iuor(this)},r.prototype.iuand=function(E){var x;x=this.length>E.length?E:this;for(var j=0;j<x.length;j++)this.words[j]=this.words[j]&E.words[j];return this.length=x.length,this._strip()},r.prototype.iand=function(E){return l(0==(this.negative|E.negative)),this.iuand(E)},r.prototype.and=function(E){return this.length>E.length?this.clone().iand(E):E.clone().iand(this)},r.prototype.uand=function(E){return this.length>E.length?this.clone().iuand(E):E.clone().iuand(this)},r.prototype.iuxor=function(E){var x,j;this.length>E.length?(x=this,j=E):(x=E,j=this);for(var $=0;$<j.length;$++)this.words[$]=x.words[$]^j.words[$];if(this!==x)for(;$<x.length;$++)this.words[$]=x.words[$];return this.length=x.length,this._strip()},r.prototype.ixor=function(E){return l(0==(this.negative|E.negative)),this.iuxor(E)},r.prototype.xor=function(E){return this.length>E.length?this.clone().ixor(E):E.clone().ixor(this)},r.prototype.uxor=function(E){return this.length>E.length?this.clone().iuxor(E):E.clone().iuxor(this)},r.prototype.inotn=function(E){l("number"==typeof E&&E>=0);var x=0|Math.ceil(E/26),j=E%26;this._expand(x),j>0&&x--;for(var $=0;$<x;$++)this.words[$]=67108863&~this.words[$];return j>0&&(this.words[$]=~this.words[$]&67108863>>26-j),this._strip()},r.prototype.notn=function(E){return this.clone().inotn(E)},r.prototype.setn=function(E,x){l("number"==typeof E&&E>=0);var j=E/26|0,$=E%26;return this._expand(j+1),this.words[j]=x?this.words[j]|1<<$:this.words[j]&~(1<<$),this._strip()},r.prototype.iadd=function(E){var x,j,$;if(0!==this.negative&&0===E.negative)return this.negative=0,x=this.isub(E),this.negative^=1,this._normSign();if(0===this.negative&&0!==E.negative)return E.negative=0,x=this.isub(E),E.negative=1,x._normSign();this.length>E.length?(j=this,$=E):(j=E,$=this);for(var Y=0,u=0;u<$.length;u++)this.words[u]=67108863&(x=(0|j.words[u])+(0|$.words[u])+Y),Y=x>>>26;for(;0!==Y&&u<j.length;u++)this.words[u]=67108863&(x=(0|j.words[u])+Y),Y=x>>>26;if(this.length=j.length,0!==Y)this.words[this.length]=Y,this.length++;else if(j!==this)for(;u<j.length;u++)this.words[u]=j.words[u];return this},r.prototype.add=function(E){var x;return 0!==E.negative&&0===this.negative?(E.negative=0,x=this.sub(E),E.negative^=1,x):0===E.negative&&0!==this.negative?(this.negative=0,x=E.sub(this),this.negative=1,x):this.length>E.length?this.clone().iadd(E):E.clone().iadd(this)},r.prototype.isub=function(E){if(0!==E.negative){E.negative=0;var x=this.iadd(E);return E.negative=1,x._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(E),this.negative=1,this._normSign();var $,Y,j=this.cmp(E);if(0===j)return this.negative=0,this.length=1,this.words[0]=0,this;j>0?($=this,Y=E):($=E,Y=this);for(var u=0,W=0;W<Y.length;W++)u=(x=(0|$.words[W])-(0|Y.words[W])+u)>>26,this.words[W]=67108863&x;for(;0!==u&&W<$.length;W++)u=(x=(0|$.words[W])+u)>>26,this.words[W]=67108863&x;if(0===u&&W<$.length&&$!==this)for(;W<$.length;W++)this.words[W]=$.words[W];return this.length=Math.max(this.length,W),$!==this&&(this.negative=1),this._strip()},r.prototype.sub=function(E){return this.clone().isub(E)};var D=function(E,x,j){var fe,ae,ye,$=E.words,Y=x.words,u=j.words,W=0,Qe=0|$[0],Ot=8191&Qe,At=Qe>>>13,Ze=0|$[1],at=8191&Ze,Be=Ze>>>13,Lt=0|$[2],_e=8191&Lt,ne=Lt>>>13,be=0|$[3],Te=8191&be,$e=be>>>13,ft=0|$[4],Ge=8191&ft,Ft=ft>>>13,br=0|$[5],rt=8191&br,st=br>>>13,Dt=0|$[6],ot=8191&Dt,nt=Dt>>>13,Yt=0|$[7],Ne=8191&Yt,X=Yt>>>13,ge=0|$[8],Me=8191&ge,We=ge>>>13,Re=0|$[9],pt=8191&Re,Zt=Re>>>13,cr=0|Y[0],wt=8191&cr,gt=cr>>>13,Ut=0|Y[1],hr=8191&Ut,Cr=Ut>>>13,Ue=0|Y[2],Pt=8191&Ue,He=Ue>>>13,tt=0|Y[3],Ke=8191&tt,kt=tt>>>13,xe=0|Y[4],Fe=8191&xe,lt=xe>>>13,St=0|Y[5],qe=8191&St,ke=St>>>13,ct=0|Y[6],vt=8191&ct,$t=ct>>>13,Vr=0|Y[7],Sr=8191&Vr,Ar=Vr>>>13,Jr=0|Y[8],Fr=8191&Jr,Gt=Jr>>>13,le=0|Y[9],Ce=8191&le,Ie=le>>>13;j.negative=E.negative^x.negative,j.length=19;var Pe=(W+(fe=Math.imul(Ot,wt))|0)+((8191&(ae=(ae=Math.imul(Ot,gt))+Math.imul(At,wt)|0))<<13)|0;W=((ye=Math.imul(At,gt))+(ae>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,fe=Math.imul(at,wt),ae=(ae=Math.imul(at,gt))+Math.imul(Be,wt)|0,ye=Math.imul(Be,gt);var Oe=(W+(fe=fe+Math.imul(Ot,hr)|0)|0)+((8191&(ae=(ae=ae+Math.imul(Ot,Cr)|0)+Math.imul(At,hr)|0))<<13)|0;W=((ye=ye+Math.imul(At,Cr)|0)+(ae>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,fe=Math.imul(_e,wt),ae=(ae=Math.imul(_e,gt))+Math.imul(ne,wt)|0,ye=Math.imul(ne,gt),fe=fe+Math.imul(at,hr)|0,ae=(ae=ae+Math.imul(at,Cr)|0)+Math.imul(Be,hr)|0,ye=ye+Math.imul(Be,Cr)|0;var Se=(W+(fe=fe+Math.imul(Ot,Pt)|0)|0)+((8191&(ae=(ae=ae+Math.imul(Ot,He)|0)+Math.imul(At,Pt)|0))<<13)|0;W=((ye=ye+Math.imul(At,He)|0)+(ae>>>13)|0)+(Se>>>26)|0,Se&=67108863,fe=Math.imul(Te,wt),ae=(ae=Math.imul(Te,gt))+Math.imul($e,wt)|0,ye=Math.imul($e,gt),fe=fe+Math.imul(_e,hr)|0,ae=(ae=ae+Math.imul(_e,Cr)|0)+Math.imul(ne,hr)|0,ye=ye+Math.imul(ne,Cr)|0,fe=fe+Math.imul(at,Pt)|0,ae=(ae=ae+Math.imul(at,He)|0)+Math.imul(Be,Pt)|0,ye=ye+Math.imul(Be,He)|0;var Xe=(W+(fe=fe+Math.imul(Ot,Ke)|0)|0)+((8191&(ae=(ae=ae+Math.imul(Ot,kt)|0)+Math.imul(At,Ke)|0))<<13)|0;W=((ye=ye+Math.imul(At,kt)|0)+(ae>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,fe=Math.imul(Ge,wt),ae=(ae=Math.imul(Ge,gt))+Math.imul(Ft,wt)|0,ye=Math.imul(Ft,gt),fe=fe+Math.imul(Te,hr)|0,ae=(ae=ae+Math.imul(Te,Cr)|0)+Math.imul($e,hr)|0,ye=ye+Math.imul($e,Cr)|0,fe=fe+Math.imul(_e,Pt)|0,ae=(ae=ae+Math.imul(_e,He)|0)+Math.imul(ne,Pt)|0,ye=ye+Math.imul(ne,He)|0,fe=fe+Math.imul(at,Ke)|0,ae=(ae=ae+Math.imul(at,kt)|0)+Math.imul(Be,Ke)|0,ye=ye+Math.imul(Be,kt)|0;var Ct=(W+(fe=fe+Math.imul(Ot,Fe)|0)|0)+((8191&(ae=(ae=ae+Math.imul(Ot,lt)|0)+Math.imul(At,Fe)|0))<<13)|0;W=((ye=ye+Math.imul(At,lt)|0)+(ae>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,fe=Math.imul(rt,wt),ae=(ae=Math.imul(rt,gt))+Math.imul(st,wt)|0,ye=Math.imul(st,gt),fe=fe+Math.imul(Ge,hr)|0,ae=(ae=ae+Math.imul(Ge,Cr)|0)+Math.imul(Ft,hr)|0,ye=ye+Math.imul(Ft,Cr)|0,fe=fe+Math.imul(Te,Pt)|0,ae=(ae=ae+Math.imul(Te,He)|0)+Math.imul($e,Pt)|0,ye=ye+Math.imul($e,He)|0,fe=fe+Math.imul(_e,Ke)|0,ae=(ae=ae+Math.imul(_e,kt)|0)+Math.imul(ne,Ke)|0,ye=ye+Math.imul(ne,kt)|0,fe=fe+Math.imul(at,Fe)|0,ae=(ae=ae+Math.imul(at,lt)|0)+Math.imul(Be,Fe)|0,ye=ye+Math.imul(Be,lt)|0;var zt=(W+(fe=fe+Math.imul(Ot,qe)|0)|0)+((8191&(ae=(ae=ae+Math.imul(Ot,ke)|0)+Math.imul(At,qe)|0))<<13)|0;W=((ye=ye+Math.imul(At,ke)|0)+(ae>>>13)|0)+(zt>>>26)|0,zt&=67108863,fe=Math.imul(ot,wt),ae=(ae=Math.imul(ot,gt))+Math.imul(nt,wt)|0,ye=Math.imul(nt,gt),fe=fe+Math.imul(rt,hr)|0,ae=(ae=ae+Math.imul(rt,Cr)|0)+Math.imul(st,hr)|0,ye=ye+Math.imul(st,Cr)|0,fe=fe+Math.imul(Ge,Pt)|0,ae=(ae=ae+Math.imul(Ge,He)|0)+Math.imul(Ft,Pt)|0,ye=ye+Math.imul(Ft,He)|0,fe=fe+Math.imul(Te,Ke)|0,ae=(ae=ae+Math.imul(Te,kt)|0)+Math.imul($e,Ke)|0,ye=ye+Math.imul($e,kt)|0,fe=fe+Math.imul(_e,Fe)|0,ae=(ae=ae+Math.imul(_e,lt)|0)+Math.imul(ne,Fe)|0,ye=ye+Math.imul(ne,lt)|0,fe=fe+Math.imul(at,qe)|0,ae=(ae=ae+Math.imul(at,ke)|0)+Math.imul(Be,qe)|0,ye=ye+Math.imul(Be,ke)|0;var kr=(W+(fe=fe+Math.imul(Ot,vt)|0)|0)+((8191&(ae=(ae=ae+Math.imul(Ot,$t)|0)+Math.imul(At,vt)|0))<<13)|0;W=((ye=ye+Math.imul(At,$t)|0)+(ae>>>13)|0)+(kr>>>26)|0,kr&=67108863,fe=Math.imul(Ne,wt),ae=(ae=Math.imul(Ne,gt))+Math.imul(X,wt)|0,ye=Math.imul(X,gt),fe=fe+Math.imul(ot,hr)|0,ae=(ae=ae+Math.imul(ot,Cr)|0)+Math.imul(nt,hr)|0,ye=ye+Math.imul(nt,Cr)|0,fe=fe+Math.imul(rt,Pt)|0,ae=(ae=ae+Math.imul(rt,He)|0)+Math.imul(st,Pt)|0,ye=ye+Math.imul(st,He)|0,fe=fe+Math.imul(Ge,Ke)|0,ae=(ae=ae+Math.imul(Ge,kt)|0)+Math.imul(Ft,Ke)|0,ye=ye+Math.imul(Ft,kt)|0,fe=fe+Math.imul(Te,Fe)|0,ae=(ae=ae+Math.imul(Te,lt)|0)+Math.imul($e,Fe)|0,ye=ye+Math.imul($e,lt)|0,fe=fe+Math.imul(_e,qe)|0,ae=(ae=ae+Math.imul(_e,ke)|0)+Math.imul(ne,qe)|0,ye=ye+Math.imul(ne,ke)|0,fe=fe+Math.imul(at,vt)|0,ae=(ae=ae+Math.imul(at,$t)|0)+Math.imul(Be,vt)|0,ye=ye+Math.imul(Be,$t)|0;var Br=(W+(fe=fe+Math.imul(Ot,Sr)|0)|0)+((8191&(ae=(ae=ae+Math.imul(Ot,Ar)|0)+Math.imul(At,Sr)|0))<<13)|0;W=((ye=ye+Math.imul(At,Ar)|0)+(ae>>>13)|0)+(Br>>>26)|0,Br&=67108863,fe=Math.imul(Me,wt),ae=(ae=Math.imul(Me,gt))+Math.imul(We,wt)|0,ye=Math.imul(We,gt),fe=fe+Math.imul(Ne,hr)|0,ae=(ae=ae+Math.imul(Ne,Cr)|0)+Math.imul(X,hr)|0,ye=ye+Math.imul(X,Cr)|0,fe=fe+Math.imul(ot,Pt)|0,ae=(ae=ae+Math.imul(ot,He)|0)+Math.imul(nt,Pt)|0,ye=ye+Math.imul(nt,He)|0,fe=fe+Math.imul(rt,Ke)|0,ae=(ae=ae+Math.imul(rt,kt)|0)+Math.imul(st,Ke)|0,ye=ye+Math.imul(st,kt)|0,fe=fe+Math.imul(Ge,Fe)|0,ae=(ae=ae+Math.imul(Ge,lt)|0)+Math.imul(Ft,Fe)|0,ye=ye+Math.imul(Ft,lt)|0,fe=fe+Math.imul(Te,qe)|0,ae=(ae=ae+Math.imul(Te,ke)|0)+Math.imul($e,qe)|0,ye=ye+Math.imul($e,ke)|0,fe=fe+Math.imul(_e,vt)|0,ae=(ae=ae+Math.imul(_e,$t)|0)+Math.imul(ne,vt)|0,ye=ye+Math.imul(ne,$t)|0,fe=fe+Math.imul(at,Sr)|0,ae=(ae=ae+Math.imul(at,Ar)|0)+Math.imul(Be,Sr)|0,ye=ye+Math.imul(Be,Ar)|0;var xt=(W+(fe=fe+Math.imul(Ot,Fr)|0)|0)+((8191&(ae=(ae=ae+Math.imul(Ot,Gt)|0)+Math.imul(At,Fr)|0))<<13)|0;W=((ye=ye+Math.imul(At,Gt)|0)+(ae>>>13)|0)+(xt>>>26)|0,xt&=67108863,fe=Math.imul(pt,wt),ae=(ae=Math.imul(pt,gt))+Math.imul(Zt,wt)|0,ye=Math.imul(Zt,gt),fe=fe+Math.imul(Me,hr)|0,ae=(ae=ae+Math.imul(Me,Cr)|0)+Math.imul(We,hr)|0,ye=ye+Math.imul(We,Cr)|0,fe=fe+Math.imul(Ne,Pt)|0,ae=(ae=ae+Math.imul(Ne,He)|0)+Math.imul(X,Pt)|0,ye=ye+Math.imul(X,He)|0,fe=fe+Math.imul(ot,Ke)|0,ae=(ae=ae+Math.imul(ot,kt)|0)+Math.imul(nt,Ke)|0,ye=ye+Math.imul(nt,kt)|0,fe=fe+Math.imul(rt,Fe)|0,ae=(ae=ae+Math.imul(rt,lt)|0)+Math.imul(st,Fe)|0,ye=ye+Math.imul(st,lt)|0,fe=fe+Math.imul(Ge,qe)|0,ae=(ae=ae+Math.imul(Ge,ke)|0)+Math.imul(Ft,qe)|0,ye=ye+Math.imul(Ft,ke)|0,fe=fe+Math.imul(Te,vt)|0,ae=(ae=ae+Math.imul(Te,$t)|0)+Math.imul($e,vt)|0,ye=ye+Math.imul($e,$t)|0,fe=fe+Math.imul(_e,Sr)|0,ae=(ae=ae+Math.imul(_e,Ar)|0)+Math.imul(ne,Sr)|0,ye=ye+Math.imul(ne,Ar)|0,fe=fe+Math.imul(at,Fr)|0,ae=(ae=ae+Math.imul(at,Gt)|0)+Math.imul(Be,Fr)|0,ye=ye+Math.imul(Be,Gt)|0;var tr=(W+(fe=fe+Math.imul(Ot,Ce)|0)|0)+((8191&(ae=(ae=ae+Math.imul(Ot,Ie)|0)+Math.imul(At,Ce)|0))<<13)|0;W=((ye=ye+Math.imul(At,Ie)|0)+(ae>>>13)|0)+(tr>>>26)|0,tr&=67108863,fe=Math.imul(pt,hr),ae=(ae=Math.imul(pt,Cr))+Math.imul(Zt,hr)|0,ye=Math.imul(Zt,Cr),fe=fe+Math.imul(Me,Pt)|0,ae=(ae=ae+Math.imul(Me,He)|0)+Math.imul(We,Pt)|0,ye=ye+Math.imul(We,He)|0,fe=fe+Math.imul(Ne,Ke)|0,ae=(ae=ae+Math.imul(Ne,kt)|0)+Math.imul(X,Ke)|0,ye=ye+Math.imul(X,kt)|0,fe=fe+Math.imul(ot,Fe)|0,ae=(ae=ae+Math.imul(ot,lt)|0)+Math.imul(nt,Fe)|0,ye=ye+Math.imul(nt,lt)|0,fe=fe+Math.imul(rt,qe)|0,ae=(ae=ae+Math.imul(rt,ke)|0)+Math.imul(st,qe)|0,ye=ye+Math.imul(st,ke)|0,fe=fe+Math.imul(Ge,vt)|0,ae=(ae=ae+Math.imul(Ge,$t)|0)+Math.imul(Ft,vt)|0,ye=ye+Math.imul(Ft,$t)|0,fe=fe+Math.imul(Te,Sr)|0,ae=(ae=ae+Math.imul(Te,Ar)|0)+Math.imul($e,Sr)|0,ye=ye+Math.imul($e,Ar)|0,fe=fe+Math.imul(_e,Fr)|0,ae=(ae=ae+Math.imul(_e,Gt)|0)+Math.imul(ne,Fr)|0,ye=ye+Math.imul(ne,Gt)|0;var Rr=(W+(fe=fe+Math.imul(at,Ce)|0)|0)+((8191&(ae=(ae=ae+Math.imul(at,Ie)|0)+Math.imul(Be,Ce)|0))<<13)|0;W=((ye=ye+Math.imul(Be,Ie)|0)+(ae>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,fe=Math.imul(pt,Pt),ae=(ae=Math.imul(pt,He))+Math.imul(Zt,Pt)|0,ye=Math.imul(Zt,He),fe=fe+Math.imul(Me,Ke)|0,ae=(ae=ae+Math.imul(Me,kt)|0)+Math.imul(We,Ke)|0,ye=ye+Math.imul(We,kt)|0,fe=fe+Math.imul(Ne,Fe)|0,ae=(ae=ae+Math.imul(Ne,lt)|0)+Math.imul(X,Fe)|0,ye=ye+Math.imul(X,lt)|0,fe=fe+Math.imul(ot,qe)|0,ae=(ae=ae+Math.imul(ot,ke)|0)+Math.imul(nt,qe)|0,ye=ye+Math.imul(nt,ke)|0,fe=fe+Math.imul(rt,vt)|0,ae=(ae=ae+Math.imul(rt,$t)|0)+Math.imul(st,vt)|0,ye=ye+Math.imul(st,$t)|0,fe=fe+Math.imul(Ge,Sr)|0,ae=(ae=ae+Math.imul(Ge,Ar)|0)+Math.imul(Ft,Sr)|0,ye=ye+Math.imul(Ft,Ar)|0,fe=fe+Math.imul(Te,Fr)|0,ae=(ae=ae+Math.imul(Te,Gt)|0)+Math.imul($e,Fr)|0,ye=ye+Math.imul($e,Gt)|0;var Ur=(W+(fe=fe+Math.imul(_e,Ce)|0)|0)+((8191&(ae=(ae=ae+Math.imul(_e,Ie)|0)+Math.imul(ne,Ce)|0))<<13)|0;W=((ye=ye+Math.imul(ne,Ie)|0)+(ae>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,fe=Math.imul(pt,Ke),ae=(ae=Math.imul(pt,kt))+Math.imul(Zt,Ke)|0,ye=Math.imul(Zt,kt),fe=fe+Math.imul(Me,Fe)|0,ae=(ae=ae+Math.imul(Me,lt)|0)+Math.imul(We,Fe)|0,ye=ye+Math.imul(We,lt)|0,fe=fe+Math.imul(Ne,qe)|0,ae=(ae=ae+Math.imul(Ne,ke)|0)+Math.imul(X,qe)|0,ye=ye+Math.imul(X,ke)|0,fe=fe+Math.imul(ot,vt)|0,ae=(ae=ae+Math.imul(ot,$t)|0)+Math.imul(nt,vt)|0,ye=ye+Math.imul(nt,$t)|0,fe=fe+Math.imul(rt,Sr)|0,ae=(ae=ae+Math.imul(rt,Ar)|0)+Math.imul(st,Sr)|0,ye=ye+Math.imul(st,Ar)|0,fe=fe+Math.imul(Ge,Fr)|0,ae=(ae=ae+Math.imul(Ge,Gt)|0)+Math.imul(Ft,Fr)|0,ye=ye+Math.imul(Ft,Gt)|0;var Nr=(W+(fe=fe+Math.imul(Te,Ce)|0)|0)+((8191&(ae=(ae=ae+Math.imul(Te,Ie)|0)+Math.imul($e,Ce)|0))<<13)|0;W=((ye=ye+Math.imul($e,Ie)|0)+(ae>>>13)|0)+(Nr>>>26)|0,Nr&=67108863,fe=Math.imul(pt,Fe),ae=(ae=Math.imul(pt,lt))+Math.imul(Zt,Fe)|0,ye=Math.imul(Zt,lt),fe=fe+Math.imul(Me,qe)|0,ae=(ae=ae+Math.imul(Me,ke)|0)+Math.imul(We,qe)|0,ye=ye+Math.imul(We,ke)|0,fe=fe+Math.imul(Ne,vt)|0,ae=(ae=ae+Math.imul(Ne,$t)|0)+Math.imul(X,vt)|0,ye=ye+Math.imul(X,$t)|0,fe=fe+Math.imul(ot,Sr)|0,ae=(ae=ae+Math.imul(ot,Ar)|0)+Math.imul(nt,Sr)|0,ye=ye+Math.imul(nt,Ar)|0,fe=fe+Math.imul(rt,Fr)|0,ae=(ae=ae+Math.imul(rt,Gt)|0)+Math.imul(st,Fr)|0,ye=ye+Math.imul(st,Gt)|0;var zr=(W+(fe=fe+Math.imul(Ge,Ce)|0)|0)+((8191&(ae=(ae=ae+Math.imul(Ge,Ie)|0)+Math.imul(Ft,Ce)|0))<<13)|0;W=((ye=ye+Math.imul(Ft,Ie)|0)+(ae>>>13)|0)+(zr>>>26)|0,zr&=67108863,fe=Math.imul(pt,qe),ae=(ae=Math.imul(pt,ke))+Math.imul(Zt,qe)|0,ye=Math.imul(Zt,ke),fe=fe+Math.imul(Me,vt)|0,ae=(ae=ae+Math.imul(Me,$t)|0)+Math.imul(We,vt)|0,ye=ye+Math.imul(We,$t)|0,fe=fe+Math.imul(Ne,Sr)|0,ae=(ae=ae+Math.imul(Ne,Ar)|0)+Math.imul(X,Sr)|0,ye=ye+Math.imul(X,Ar)|0,fe=fe+Math.imul(ot,Fr)|0,ae=(ae=ae+Math.imul(ot,Gt)|0)+Math.imul(nt,Fr)|0,ye=ye+Math.imul(nt,Gt)|0;var hn=(W+(fe=fe+Math.imul(rt,Ce)|0)|0)+((8191&(ae=(ae=ae+Math.imul(rt,Ie)|0)+Math.imul(st,Ce)|0))<<13)|0;W=((ye=ye+Math.imul(st,Ie)|0)+(ae>>>13)|0)+(hn>>>26)|0,hn&=67108863,fe=Math.imul(pt,vt),ae=(ae=Math.imul(pt,$t))+Math.imul(Zt,vt)|0,ye=Math.imul(Zt,$t),fe=fe+Math.imul(Me,Sr)|0,ae=(ae=ae+Math.imul(Me,Ar)|0)+Math.imul(We,Sr)|0,ye=ye+Math.imul(We,Ar)|0,fe=fe+Math.imul(Ne,Fr)|0,ae=(ae=ae+Math.imul(Ne,Gt)|0)+Math.imul(X,Fr)|0,ye=ye+Math.imul(X,Gt)|0;var _n=(W+(fe=fe+Math.imul(ot,Ce)|0)|0)+((8191&(ae=(ae=ae+Math.imul(ot,Ie)|0)+Math.imul(nt,Ce)|0))<<13)|0;W=((ye=ye+Math.imul(nt,Ie)|0)+(ae>>>13)|0)+(_n>>>26)|0,_n&=67108863,fe=Math.imul(pt,Sr),ae=(ae=Math.imul(pt,Ar))+Math.imul(Zt,Sr)|0,ye=Math.imul(Zt,Ar),fe=fe+Math.imul(Me,Fr)|0,ae=(ae=ae+Math.imul(Me,Gt)|0)+Math.imul(We,Fr)|0,ye=ye+Math.imul(We,Gt)|0;var Tn=(W+(fe=fe+Math.imul(Ne,Ce)|0)|0)+((8191&(ae=(ae=ae+Math.imul(Ne,Ie)|0)+Math.imul(X,Ce)|0))<<13)|0;W=((ye=ye+Math.imul(X,Ie)|0)+(ae>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,fe=Math.imul(pt,Fr),ae=(ae=Math.imul(pt,Gt))+Math.imul(Zt,Fr)|0,ye=Math.imul(Zt,Gt);var sr=(W+(fe=fe+Math.imul(Me,Ce)|0)|0)+((8191&(ae=(ae=ae+Math.imul(Me,Ie)|0)+Math.imul(We,Ce)|0))<<13)|0;W=((ye=ye+Math.imul(We,Ie)|0)+(ae>>>13)|0)+(sr>>>26)|0,sr&=67108863;var fr=(W+(fe=Math.imul(pt,Ce))|0)+((8191&(ae=(ae=Math.imul(pt,Ie))+Math.imul(Zt,Ce)|0))<<13)|0;return W=((ye=Math.imul(Zt,Ie))+(ae>>>13)|0)+(fr>>>26)|0,fr&=67108863,u[0]=Pe,u[1]=Oe,u[2]=Se,u[3]=Xe,u[4]=Ct,u[5]=zt,u[6]=kr,u[7]=Br,u[8]=xt,u[9]=tr,u[10]=Rr,u[11]=Ur,u[12]=Nr,u[13]=zr,u[14]=hn,u[15]=_n,u[16]=Tn,u[17]=sr,u[18]=fr,0!==W&&(u[19]=W,j.length++),j};function U(w,E,x){x.negative=E.negative^w.negative,x.length=w.length+E.length;for(var j=0,$=0,Y=0;Y<x.length-1;Y++){var u=$;$=0;for(var W=67108863&j,fe=Math.min(Y,E.length-1),ae=Math.max(0,Y-w.length+1);ae<=fe;ae++){var At=(0|w.words[Y-ae])*(0|E.words[ae]),Ze=67108863&At;W=67108863&(Ze=Ze+W|0),$+=(u=(u=u+(At/67108864|0)|0)+(Ze>>>26)|0)>>>26,u&=67108863}x.words[Y]=W,j=u,u=$}return 0!==j?x.words[Y]=j:x.length--,x._strip()}function q(w,E,x){return U(w,E,x)}function J(w,E){this.x=w,this.y=E}Math.imul||(D=V),r.prototype.mulTo=function(E,x){var $=this.length+E.length;return 10===this.length&&10===E.length?D(this,E,x):$<63?V(this,E,x):$<1024?U(this,E,x):q(this,E,x)},J.prototype.makeRBT=function(E){for(var x=new Array(E),j=r.prototype._countBits(E)-1,$=0;$<E;$++)x[$]=this.revBin($,j,E);return x},J.prototype.revBin=function(E,x,j){if(0===E||E===j-1)return E;for(var $=0,Y=0;Y<x;Y++)$|=(1&E)<<x-Y-1,E>>=1;return $},J.prototype.permute=function(E,x,j,$,Y,u){for(var W=0;W<u;W++)$[W]=x[E[W]],Y[W]=j[E[W]]},J.prototype.transform=function(E,x,j,$,Y,u){this.permute(u,E,x,j,$,Y);for(var W=1;W<Y;W<<=1)for(var fe=W<<1,ae=Math.cos(2*Math.PI/fe),ye=Math.sin(2*Math.PI/fe),Qe=0;Qe<Y;Qe+=fe)for(var Ot=ae,At=ye,Ze=0;Ze<W;Ze++){var at=j[Qe+Ze],Be=$[Qe+Ze],Lt=j[Qe+Ze+W],_e=$[Qe+Ze+W],ne=Ot*Lt-At*_e;_e=Ot*_e+At*Lt,j[Qe+Ze]=at+(Lt=ne),$[Qe+Ze]=Be+_e,j[Qe+Ze+W]=at-Lt,$[Qe+Ze+W]=Be-_e,Ze!==fe&&(ne=ae*Ot-ye*At,At=ae*At+ye*Ot,Ot=ne)}},J.prototype.guessLen13b=function(E,x){var j=1|Math.max(x,E),$=1&j,Y=0;for(j=j/2|0;j;j>>>=1)Y++;return 1<<Y+1+$},J.prototype.conjugate=function(E,x,j){if(!(j<=1))for(var $=0;$<j/2;$++){var Y=E[$];E[$]=E[j-$-1],E[j-$-1]=Y,Y=x[$],x[$]=-x[j-$-1],x[j-$-1]=-Y}},J.prototype.normalize13b=function(E,x){for(var j=0,$=0;$<x/2;$++){var Y=8192*Math.round(E[2*$+1]/x)+Math.round(E[2*$]/x)+j;E[$]=67108863&Y,j=Y<67108864?0:Y/67108864|0}return E},J.prototype.convert13b=function(E,x,j,$){for(var Y=0,u=0;u<x;u++)j[2*u]=8191&(Y+=0|E[u]),j[2*u+1]=8191&(Y>>>=13),Y>>>=13;for(u=2*x;u<$;++u)j[u]=0;l(0===Y),l(0==(-8192&Y))},J.prototype.stub=function(E){for(var x=new Array(E),j=0;j<E;j++)x[j]=0;return x},J.prototype.mulp=function(E,x,j){var $=2*this.guessLen13b(E.length,x.length),Y=this.makeRBT($),u=this.stub($),W=new Array($),fe=new Array($),ae=new Array($),ye=new Array($),Qe=new Array($),Ot=new Array($),At=j.words;At.length=$,this.convert13b(E.words,E.length,W,$),this.convert13b(x.words,x.length,ye,$),this.transform(W,u,fe,ae,$,Y),this.transform(ye,u,Qe,Ot,$,Y);for(var Ze=0;Ze<$;Ze++){var at=fe[Ze]*Qe[Ze]-ae[Ze]*Ot[Ze];ae[Ze]=fe[Ze]*Ot[Ze]+ae[Ze]*Qe[Ze],fe[Ze]=at}return this.conjugate(fe,ae,$),this.transform(fe,ae,At,u,$,Y),this.conjugate(At,u,$),this.normalize13b(At,$),j.negative=E.negative^x.negative,j.length=E.length+x.length,j._strip()},r.prototype.mul=function(E){var x=new r(null);return x.words=new Array(this.length+E.length),this.mulTo(E,x)},r.prototype.mulf=function(E){var x=new r(null);return x.words=new Array(this.length+E.length),q(this,E,x)},r.prototype.imul=function(E){return this.clone().mulTo(E,this)},r.prototype.imuln=function(E){var x=E<0;x&&(E=-E),l("number"==typeof E),l(E<67108864);for(var j=0,$=0;$<this.length;$++){var Y=(0|this.words[$])*E,u=(67108863&Y)+(67108863&j);j>>=26,j+=Y/67108864|0,j+=u>>>26,this.words[$]=67108863&u}return 0!==j&&(this.words[$]=j,this.length++),x?this.ineg():this},r.prototype.muln=function(E){return this.clone().imuln(E)},r.prototype.sqr=function(){return this.mul(this)},r.prototype.isqr=function(){return this.imul(this.clone())},r.prototype.pow=function(E){var x=function F(w){for(var E=new Array(w.bitLength()),x=0;x<E.length;x++)E[x]=w.words[x/26|0]>>>x%26&1;return E}(E);if(0===x.length)return new r(1);for(var j=this,$=0;$<x.length&&0===x[$];$++,j=j.sqr());if(++$<x.length)for(var Y=j.sqr();$<x.length;$++,Y=Y.sqr())0!==x[$]&&(j=j.mul(Y));return j},r.prototype.iushln=function(E){l("number"==typeof E&&E>=0);var Y,x=E%26,j=(E-x)/26,$=67108863>>>26-x<<26-x;if(0!==x){var u=0;for(Y=0;Y<this.length;Y++){var W=this.words[Y]&$;this.words[Y]=(0|this.words[Y])-W<<x|u,u=W>>>26-x}u&&(this.words[Y]=u,this.length++)}if(0!==j){for(Y=this.length-1;Y>=0;Y--)this.words[Y+j]=this.words[Y];for(Y=0;Y<j;Y++)this.words[Y]=0;this.length+=j}return this._strip()},r.prototype.ishln=function(E){return l(0===this.negative),this.iushln(E)},r.prototype.iushrn=function(E,x,j){var $;l("number"==typeof E&&E>=0),$=x?(x-x%26)/26:0;var Y=E%26,u=Math.min((E-Y)/26,this.length),W=67108863^67108863>>>Y<<Y,fe=j;if($-=u,$=Math.max(0,$),fe){for(var ae=0;ae<u;ae++)fe.words[ae]=this.words[ae];fe.length=u}if(0!==u)if(this.length>u)for(this.length-=u,ae=0;ae<this.length;ae++)this.words[ae]=this.words[ae+u];else this.words[0]=0,this.length=1;var ye=0;for(ae=this.length-1;ae>=0&&(0!==ye||ae>=$);ae--){var Qe=0|this.words[ae];this.words[ae]=ye<<26-Y|Qe>>>Y,ye=Qe&W}return fe&&0!==ye&&(fe.words[fe.length++]=ye),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},r.prototype.ishrn=function(E,x,j){return l(0===this.negative),this.iushrn(E,x,j)},r.prototype.shln=function(E){return this.clone().ishln(E)},r.prototype.ushln=function(E){return this.clone().iushln(E)},r.prototype.shrn=function(E){return this.clone().ishrn(E)},r.prototype.ushrn=function(E){return this.clone().iushrn(E)},r.prototype.testn=function(E){l("number"==typeof E&&E>=0);var x=E%26,j=(E-x)/26;return!(this.length<=j||!(this.words[j]&1<<x))},r.prototype.imaskn=function(E){l("number"==typeof E&&E>=0);var x=E%26,j=(E-x)/26;return l(0===this.negative,"imaskn works only with positive numbers"),this.length<=j?this:(0!==x&&j++,this.length=Math.min(j,this.length),0!==x&&(this.words[this.length-1]&=67108863^67108863>>>x<<x),this._strip())},r.prototype.maskn=function(E){return this.clone().imaskn(E)},r.prototype.iaddn=function(E){return l("number"==typeof E),l(E<67108864),E<0?this.isubn(-E):0!==this.negative?1===this.length&&(0|this.words[0])<=E?(this.words[0]=E-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(E),this.negative=1,this):this._iaddn(E)},r.prototype._iaddn=function(E){this.words[0]+=E;for(var x=0;x<this.length&&this.words[x]>=67108864;x++)this.words[x]-=67108864,x===this.length-1?this.words[x+1]=1:this.words[x+1]++;return this.length=Math.max(this.length,x+1),this},r.prototype.isubn=function(E){if(l("number"==typeof E),l(E<67108864),E<0)return this.iaddn(-E);if(0!==this.negative)return this.negative=0,this.iaddn(E),this.negative=1,this;if(this.words[0]-=E,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var x=0;x<this.length&&this.words[x]<0;x++)this.words[x]+=67108864,this.words[x+1]-=1;return this._strip()},r.prototype.addn=function(E){return this.clone().iaddn(E)},r.prototype.subn=function(E){return this.clone().isubn(E)},r.prototype.iabs=function(){return this.negative=0,this},r.prototype.abs=function(){return this.clone().iabs()},r.prototype._ishlnsubmul=function(E,x,j){var Y;this._expand(E.length+j);var u,W=0;for(Y=0;Y<E.length;Y++){u=(0|this.words[Y+j])+W;var fe=(0|E.words[Y])*x;W=((u-=67108863&fe)>>26)-(fe/67108864|0),this.words[Y+j]=67108863&u}for(;Y<this.length-j;Y++)W=(u=(0|this.words[Y+j])+W)>>26,this.words[Y+j]=67108863&u;if(0===W)return this._strip();for(l(-1===W),W=0,Y=0;Y<this.length;Y++)W=(u=-(0|this.words[Y])+W)>>26,this.words[Y]=67108863&u;return this.negative=1,this._strip()},r.prototype._wordDiv=function(E,x){var j,$=this.clone(),Y=E,u=0|Y.words[Y.length-1];0!=(j=26-this._countBits(u))&&(Y=Y.ushln(j),$.iushln(j),u=0|Y.words[Y.length-1]);var ae,fe=$.length-Y.length;if("mod"!==x){(ae=new r(null)).length=fe+1,ae.words=new Array(ae.length);for(var ye=0;ye<ae.length;ye++)ae.words[ye]=0}var Qe=$.clone()._ishlnsubmul(Y,1,fe);0===Qe.negative&&($=Qe,ae&&(ae.words[fe]=1));for(var Ot=fe-1;Ot>=0;Ot--){var At=67108864*(0|$.words[Y.length+Ot])+(0|$.words[Y.length+Ot-1]);for(At=Math.min(At/u|0,67108863),$._ishlnsubmul(Y,At,Ot);0!==$.negative;)At--,$.negative=0,$._ishlnsubmul(Y,1,Ot),$.isZero()||($.negative^=1);ae&&(ae.words[Ot]=At)}return ae&&ae._strip(),$._strip(),"div"!==x&&0!==j&&$.iushrn(j),{div:ae||null,mod:$}},r.prototype.divmod=function(E,x,j){return l(!E.isZero()),this.isZero()?{div:new r(0),mod:new r(0)}:0!==this.negative&&0===E.negative?(u=this.neg().divmod(E,x),"mod"!==x&&($=u.div.neg()),"div"!==x&&(Y=u.mod.neg(),j&&0!==Y.negative&&Y.iadd(E)),{div:$,mod:Y}):0===this.negative&&0!==E.negative?(u=this.divmod(E.neg(),x),"mod"!==x&&($=u.div.neg()),{div:$,mod:u.mod}):0!=(this.negative&E.negative)?(u=this.neg().divmod(E.neg(),x),"div"!==x&&(Y=u.mod.neg(),j&&0!==Y.negative&&Y.isub(E)),{div:u.div,mod:Y}):E.length>this.length||this.cmp(E)<0?{div:new r(0),mod:this}:1===E.length?"div"===x?{div:this.divn(E.words[0]),mod:null}:"mod"===x?{div:null,mod:new r(this.modrn(E.words[0]))}:{div:this.divn(E.words[0]),mod:new r(this.modrn(E.words[0]))}:this._wordDiv(E,x);var $,Y,u},r.prototype.div=function(E){return this.divmod(E,"div",!1).div},r.prototype.mod=function(E){return this.divmod(E,"mod",!1).mod},r.prototype.umod=function(E){return this.divmod(E,"mod",!0).mod},r.prototype.divRound=function(E){var x=this.divmod(E);if(x.mod.isZero())return x.div;var j=0!==x.div.negative?x.mod.isub(E):x.mod,$=E.ushrn(1),Y=E.andln(1),u=j.cmp($);return u<0||1===Y&&0===u?x.div:0!==x.div.negative?x.div.isubn(1):x.div.iaddn(1)},r.prototype.modrn=function(E){var x=E<0;x&&(E=-E),l(E<=67108863);for(var j=(1<<26)%E,$=0,Y=this.length-1;Y>=0;Y--)$=(j*$+(0|this.words[Y]))%E;return x?-$:$},r.prototype.modn=function(E){return this.modrn(E)},r.prototype.idivn=function(E){var x=E<0;x&&(E=-E),l(E<=67108863);for(var j=0,$=this.length-1;$>=0;$--){var Y=(0|this.words[$])+67108864*j;this.words[$]=Y/E|0,j=Y%E}return this._strip(),x?this.ineg():this},r.prototype.divn=function(E){return this.clone().idivn(E)},r.prototype.egcd=function(E){l(0===E.negative),l(!E.isZero());var x=this,j=E.clone();x=0!==x.negative?x.umod(E):x.clone();for(var $=new r(1),Y=new r(0),u=new r(0),W=new r(1),fe=0;x.isEven()&&j.isEven();)x.iushrn(1),j.iushrn(1),++fe;for(var ae=j.clone(),ye=x.clone();!x.isZero();){for(var Qe=0,Ot=1;0==(x.words[0]&Ot)&&Qe<26;++Qe,Ot<<=1);if(Qe>0)for(x.iushrn(Qe);Qe-- >0;)($.isOdd()||Y.isOdd())&&($.iadd(ae),Y.isub(ye)),$.iushrn(1),Y.iushrn(1);for(var At=0,Ze=1;0==(j.words[0]&Ze)&&At<26;++At,Ze<<=1);if(At>0)for(j.iushrn(At);At-- >0;)(u.isOdd()||W.isOdd())&&(u.iadd(ae),W.isub(ye)),u.iushrn(1),W.iushrn(1);x.cmp(j)>=0?(x.isub(j),$.isub(u),Y.isub(W)):(j.isub(x),u.isub($),W.isub(Y))}return{a:u,b:W,gcd:j.iushln(fe)}},r.prototype._invmp=function(E){l(0===E.negative),l(!E.isZero());var Qe,x=this,j=E.clone();x=0!==x.negative?x.umod(E):x.clone();for(var $=new r(1),Y=new r(0),u=j.clone();x.cmpn(1)>0&&j.cmpn(1)>0;){for(var W=0,fe=1;0==(x.words[0]&fe)&&W<26;++W,fe<<=1);if(W>0)for(x.iushrn(W);W-- >0;)$.isOdd()&&$.iadd(u),$.iushrn(1);for(var ae=0,ye=1;0==(j.words[0]&ye)&&ae<26;++ae,ye<<=1);if(ae>0)for(j.iushrn(ae);ae-- >0;)Y.isOdd()&&Y.iadd(u),Y.iushrn(1);x.cmp(j)>=0?(x.isub(j),$.isub(Y)):(j.isub(x),Y.isub($))}return(Qe=0===x.cmpn(1)?$:Y).cmpn(0)<0&&Qe.iadd(E),Qe},r.prototype.gcd=function(E){if(this.isZero())return E.abs();if(E.isZero())return this.abs();var x=this.clone(),j=E.clone();x.negative=0,j.negative=0;for(var $=0;x.isEven()&&j.isEven();$++)x.iushrn(1),j.iushrn(1);for(;;){for(;x.isEven();)x.iushrn(1);for(;j.isEven();)j.iushrn(1);var Y=x.cmp(j);if(Y<0){var u=x;x=j,j=u}else if(0===Y||0===j.cmpn(1))break;x.isub(j)}return j.iushln($)},r.prototype.invm=function(E){return this.egcd(E).a.umod(E)},r.prototype.isEven=function(){return 0==(1&this.words[0])},r.prototype.isOdd=function(){return 1==(1&this.words[0])},r.prototype.andln=function(E){return this.words[0]&E},r.prototype.bincn=function(E){l("number"==typeof E);var x=E%26,j=(E-x)/26,$=1<<x;if(this.length<=j)return this._expand(j+1),this.words[j]|=$,this;for(var Y=$,u=j;0!==Y&&u<this.length;u++){var W=0|this.words[u];Y=(W+=Y)>>>26,this.words[u]=W&=67108863}return 0!==Y&&(this.words[u]=Y,this.length++),this},r.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},r.prototype.cmpn=function(E){var j,x=E<0;if(0!==this.negative&&!x)return-1;if(0===this.negative&&x)return 1;if(this._strip(),this.length>1)j=1;else{x&&(E=-E),l(E<=67108863,"Number is too big");var $=0|this.words[0];j=$===E?0:$<E?-1:1}return 0!==this.negative?0|-j:j},r.prototype.cmp=function(E){if(0!==this.negative&&0===E.negative)return-1;if(0===this.negative&&0!==E.negative)return 1;var x=this.ucmp(E);return 0!==this.negative?0|-x:x},r.prototype.ucmp=function(E){if(this.length>E.length)return 1;if(this.length<E.length)return-1;for(var x=0,j=this.length-1;j>=0;j--){var $=0|this.words[j],Y=0|E.words[j];if($!==Y){$<Y?x=-1:$>Y&&(x=1);break}}return x},r.prototype.gtn=function(E){return 1===this.cmpn(E)},r.prototype.gt=function(E){return 1===this.cmp(E)},r.prototype.gten=function(E){return this.cmpn(E)>=0},r.prototype.gte=function(E){return this.cmp(E)>=0},r.prototype.ltn=function(E){return-1===this.cmpn(E)},r.prototype.lt=function(E){return-1===this.cmp(E)},r.prototype.lten=function(E){return this.cmpn(E)<=0},r.prototype.lte=function(E){return this.cmp(E)<=0},r.prototype.eqn=function(E){return 0===this.cmpn(E)},r.prototype.eq=function(E){return 0===this.cmp(E)},r.red=function(E){return new s(E)},r.prototype.toRed=function(E){return l(!this.red,"Already a number in reduction context"),l(0===this.negative,"red works only with positives"),E.convertTo(this)._forceRed(E)},r.prototype.fromRed=function(){return l(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},r.prototype._forceRed=function(E){return this.red=E,this},r.prototype.forceRed=function(E){return l(!this.red,"Already a number in reduction context"),this._forceRed(E)},r.prototype.redAdd=function(E){return l(this.red,"redAdd works only with red numbers"),this.red.add(this,E)},r.prototype.redIAdd=function(E){return l(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,E)},r.prototype.redSub=function(E){return l(this.red,"redSub works only with red numbers"),this.red.sub(this,E)},r.prototype.redISub=function(E){return l(this.red,"redISub works only with red numbers"),this.red.isub(this,E)},r.prototype.redShl=function(E){return l(this.red,"redShl works only with red numbers"),this.red.shl(this,E)},r.prototype.redMul=function(E){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,E),this.red.mul(this,E)},r.prototype.redIMul=function(E){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,E),this.red.imul(this,E)},r.prototype.redSqr=function(){return l(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},r.prototype.redISqr=function(){return l(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},r.prototype.redSqrt=function(){return l(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},r.prototype.redInvm=function(){return l(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},r.prototype.redNeg=function(){return l(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},r.prototype.redPow=function(E){return l(this.red&&!E.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,E)};var G={k256:null,p224:null,p192:null,p25519:null};function ie(w,E){this.name=w,this.p=new r(E,16),this.n=this.p.bitLength(),this.k=new r(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function K(){ie.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function re(){ie.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function oe(){ie.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function B(){ie.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function s(w){if("string"==typeof w){var E=r._prime(w);this.m=E.p,this.prime=E}else l(w.gtn(1),"modulus must be greater than 1"),this.m=w,this.prime=null}function _(w){s.call(this,w),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new r(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}ie.prototype._tmp=function(){var E=new r(null);return E.words=new Array(Math.ceil(this.n/13)),E},ie.prototype.ireduce=function(E){var j,x=E;do{this.split(x,this.tmp),j=(x=(x=this.imulK(x)).iadd(this.tmp)).bitLength()}while(j>this.n);var $=j<this.n?-1:x.ucmp(this.p);return 0===$?(x.words[0]=0,x.length=1):$>0?x.isub(this.p):void 0!==x.strip?x.strip():x._strip(),x},ie.prototype.split=function(E,x){E.iushrn(this.n,0,x)},ie.prototype.imulK=function(E){return E.imul(this.k)},h(K,ie),K.prototype.split=function(E,x){for(var j=4194303,$=Math.min(E.length,9),Y=0;Y<$;Y++)x.words[Y]=E.words[Y];if(x.length=$,E.length<=9)return E.words[0]=0,void(E.length=1);var u=E.words[9];for(x.words[x.length++]=u&j,Y=10;Y<E.length;Y++){var W=0|E.words[Y];E.words[Y-10]=(W&j)<<4|u>>>22,u=W}E.words[Y-10]=u>>>=22,E.length-=0===u&&E.length>10?10:9},K.prototype.imulK=function(E){E.words[E.length]=0,E.words[E.length+1]=0,E.length+=2;for(var x=0,j=0;j<E.length;j++){var $=0|E.words[j];E.words[j]=67108863&(x+=977*$),x=64*$+(x/67108864|0)}return 0===E.words[E.length-1]&&(E.length--,0===E.words[E.length-1]&&E.length--),E},h(re,ie),h(oe,ie),h(B,ie),B.prototype.imulK=function(E){for(var x=0,j=0;j<E.length;j++){var $=19*(0|E.words[j])+x,Y=67108863&$;$>>>=26,E.words[j]=Y,x=$}return 0!==x&&(E.words[E.length++]=x),E},r._prime=function(E){if(G[E])return G[E];var x;if("k256"===E)x=new K;else if("p224"===E)x=new re;else if("p192"===E)x=new oe;else{if("p25519"!==E)throw new Error("Unknown prime "+E);x=new B}return G[E]=x,x},s.prototype._verify1=function(E){l(0===E.negative,"red works only with positives"),l(E.red,"red works only with red numbers")},s.prototype._verify2=function(E,x){l(0==(E.negative|x.negative),"red works only with positives"),l(E.red&&E.red===x.red,"red works only with red numbers")},s.prototype.imod=function(E){return this.prime?this.prime.ireduce(E)._forceRed(this):(f(E,E.umod(this.m)._forceRed(this)),E)},s.prototype.neg=function(E){return E.isZero()?E.clone():this.m.sub(E)._forceRed(this)},s.prototype.add=function(E,x){this._verify2(E,x);var j=E.add(x);return j.cmp(this.m)>=0&&j.isub(this.m),j._forceRed(this)},s.prototype.iadd=function(E,x){this._verify2(E,x);var j=E.iadd(x);return j.cmp(this.m)>=0&&j.isub(this.m),j},s.prototype.sub=function(E,x){this._verify2(E,x);var j=E.sub(x);return j.cmpn(0)<0&&j.iadd(this.m),j._forceRed(this)},s.prototype.isub=function(E,x){this._verify2(E,x);var j=E.isub(x);return j.cmpn(0)<0&&j.iadd(this.m),j},s.prototype.shl=function(E,x){return this._verify1(E),this.imod(E.ushln(x))},s.prototype.imul=function(E,x){return this._verify2(E,x),this.imod(E.imul(x))},s.prototype.mul=function(E,x){return this._verify2(E,x),this.imod(E.mul(x))},s.prototype.isqr=function(E){return this.imul(E,E.clone())},s.prototype.sqr=function(E){return this.mul(E,E)},s.prototype.sqrt=function(E){if(E.isZero())return E.clone();var x=this.m.andln(3);if(l(x%2==1),3===x){var j=this.m.add(new r(1)).iushrn(2);return this.pow(E,j)}for(var $=this.m.subn(1),Y=0;!$.isZero()&&0===$.andln(1);)Y++,$.iushrn(1);l(!$.isZero());var u=new r(1).toRed(this),W=u.redNeg(),fe=this.m.subn(1).iushrn(1),ae=this.m.bitLength();for(ae=new r(2*ae*ae).toRed(this);0!==this.pow(ae,fe).cmp(W);)ae.redIAdd(W);for(var ye=this.pow(ae,$),Qe=this.pow(E,$.addn(1).iushrn(1)),Ot=this.pow(E,$),At=Y;0!==Ot.cmp(u);){for(var Ze=Ot,at=0;0!==Ze.cmp(u);at++)Ze=Ze.redSqr();l(at<At);var Be=this.pow(ye,new r(1).iushln(At-at-1));Qe=Qe.redMul(Be),ye=Be.redSqr(),Ot=Ot.redMul(ye),At=at}return Qe},s.prototype.invm=function(E){var x=E._invmp(this.m);return 0!==x.negative?(x.negative=0,this.imod(x).redNeg()):this.imod(x)},s.prototype.pow=function(E,x){if(x.isZero())return new r(1).toRed(this);if(0===x.cmpn(1))return E.clone();var $=new Array(16);$[0]=new r(1).toRed(this),$[1]=E;for(var Y=2;Y<$.length;Y++)$[Y]=this.mul($[Y-1],E);var u=$[0],W=0,fe=0,ae=x.bitLength()%26;for(0===ae&&(ae=26),Y=x.length-1;Y>=0;Y--){for(var ye=x.words[Y],Qe=ae-1;Qe>=0;Qe--){var Ot=ye>>Qe&1;u!==$[0]&&(u=this.sqr(u)),0!==Ot||0!==W?(W<<=1,W|=Ot,(4==++fe||0===Y&&0===Qe)&&(u=this.mul(u,$[W]),fe=0,W=0)):fe=0}ae=26}return u},s.prototype.convertTo=function(E){var x=E.umod(this.m);return x===E?x.clone():x},s.prototype.convertFrom=function(E){var x=E.clone();return x.red=null,x},r.mont=function(E){return new _(E)},h(_,s),_.prototype.convertTo=function(E){return this.imod(E.ushln(this.shift))},_.prototype.convertFrom=function(E){var x=this.imod(E.mul(this.rinv));return x.red=null,x},_.prototype.imul=function(E,x){if(E.isZero()||x.isZero())return E.words[0]=0,E.length=1,E;var j=E.imul(x),$=j.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Y=j.isub($).iushrn(this.shift),u=Y;return Y.cmp(this.m)>=0?u=Y.isub(this.m):Y.cmpn(0)<0&&(u=Y.iadd(this.m)),u._forceRed(this)},_.prototype.mul=function(E,x){if(E.isZero()||x.isZero())return new r(0)._forceRed(this);var j=E.mul(x),$=j.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Y=j.isub($).iushrn(this.shift),u=Y;return Y.cmp(this.m)>=0?u=Y.isub(this.m):Y.cmpn(0)<0&&(u=Y.iadd(this.m)),u._forceRed(this)},_.prototype.invm=function(E){return this.imod(E._invmp(this.m).mul(this.r2))._forceRed(this)}}(M=n.nmd(M),this)},37950:(M,b,n)=>{var t;function e(h){this.rand=h}if(M.exports=function(r){return t||(t=new e(null)),t.generate(r)},M.exports.Rand=e,e.prototype.generate=function(r){return this._rand(r)},e.prototype._rand=function(r){if(this.rand.getBytes)return this.rand.getBytes(r);for(var d=new Uint8Array(r),y=0;y<d.length;y++)d[y]=this.rand.getByte();return d},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?e.prototype._rand=function(r){var d=new Uint8Array(r);return self.crypto.getRandomValues(d),d}:self.msCrypto&&self.msCrypto.getRandomValues?e.prototype._rand=function(r){var d=new Uint8Array(r);return self.msCrypto.getRandomValues(d),d}:"object"==typeof window&&(e.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var l=n(41348);if("function"!=typeof l.randomBytes)throw new Error("Not supported");e.prototype._rand=function(r){return l.randomBytes(r)}}catch{}},41899:(M,b,n)=>{var t=n(73502).Buffer;function e(g){t.isBuffer(g)||(g=t.from(g));for(var p=g.length/4|0,f=new Array(p),C=0;C<p;C++)f[C]=g.readUInt32BE(4*C);return f}function l(g){for(;0<g.length;g++)g[0]=0}function h(g,p,f,C,N){for(var J,G,ie,K,a=f[0],O=f[1],H=f[2],F=f[3],V=g[0]^p[0],D=g[1]^p[1],U=g[2]^p[2],q=g[3]^p[3],re=4,oe=1;oe<N;oe++)J=a[V>>>24]^O[D>>>16&255]^H[U>>>8&255]^F[255&q]^p[re++],G=a[D>>>24]^O[U>>>16&255]^H[q>>>8&255]^F[255&V]^p[re++],ie=a[U>>>24]^O[q>>>16&255]^H[V>>>8&255]^F[255&D]^p[re++],K=a[q>>>24]^O[V>>>16&255]^H[D>>>8&255]^F[255&U]^p[re++],V=J,D=G,U=ie,q=K;return J=(C[V>>>24]<<24|C[D>>>16&255]<<16|C[U>>>8&255]<<8|C[255&q])^p[re++],G=(C[D>>>24]<<24|C[U>>>16&255]<<16|C[q>>>8&255]<<8|C[255&V])^p[re++],ie=(C[U>>>24]<<24|C[q>>>16&255]<<16|C[V>>>8&255]<<8|C[255&D])^p[re++],K=(C[q>>>24]<<24|C[V>>>16&255]<<16|C[D>>>8&255]<<8|C[255&U])^p[re++],[J>>>=0,G>>>=0,ie>>>=0,K>>>=0]}var r=[0,1,2,4,8,16,32,64,128,27,54],d=function(){for(var g=new Array(256),p=0;p<256;p++)g[p]=p<128?p<<1:p<<1^283;for(var f=[],C=[],N=[[],[],[],[]],a=[[],[],[],[]],O=0,H=0,F=0;F<256;++F){var V=H^H<<1^H<<2^H<<3^H<<4;f[O]=V=V>>>8^255&V^99,C[V]=O;var D=g[O],U=g[D],q=g[U],J=257*g[V]^16843008*V;N[0][O]=J<<24|J>>>8,N[1][O]=J<<16|J>>>16,N[2][O]=J<<8|J>>>24,N[3][O]=J,a[0][V]=(J=16843009*q^65537*U^257*D^16843008*O)<<24|J>>>8,a[1][V]=J<<16|J>>>16,a[2][V]=J<<8|J>>>24,a[3][V]=J,0===O?O=H=1:(O=D^g[g[g[q^D]]],H^=g[g[H]])}return{SBOX:f,INV_SBOX:C,SUB_MIX:N,INV_SUB_MIX:a}}();function y(g){this._key=e(g),this._reset()}y.blockSize=16,y.keySize=32,y.prototype.blockSize=y.blockSize,y.prototype.keySize=y.keySize,y.prototype._reset=function(){for(var g=this._key,p=g.length,f=p+6,C=4*(f+1),N=[],a=0;a<p;a++)N[a]=g[a];for(a=p;a<C;a++){var O=N[a-1];a%p==0?(O=d.SBOX[(O=O<<8|O>>>24)>>>24]<<24|d.SBOX[O>>>16&255]<<16|d.SBOX[O>>>8&255]<<8|d.SBOX[255&O],O^=r[a/p|0]<<24):p>6&&a%p==4&&(O=d.SBOX[O>>>24]<<24|d.SBOX[O>>>16&255]<<16|d.SBOX[O>>>8&255]<<8|d.SBOX[255&O]),N[a]=N[a-p]^O}for(var H=[],F=0;F<C;F++){var V=C-F,D=N[V-(F%4?0:4)];H[F]=F<4||V<=4?D:d.INV_SUB_MIX[0][d.SBOX[D>>>24]]^d.INV_SUB_MIX[1][d.SBOX[D>>>16&255]]^d.INV_SUB_MIX[2][d.SBOX[D>>>8&255]]^d.INV_SUB_MIX[3][d.SBOX[255&D]]}this._nRounds=f,this._keySchedule=N,this._invKeySchedule=H},y.prototype.encryptBlockRaw=function(g){return h(g=e(g),this._keySchedule,d.SUB_MIX,d.SBOX,this._nRounds)},y.prototype.encryptBlock=function(g){var p=this.encryptBlockRaw(g),f=t.allocUnsafe(16);return f.writeUInt32BE(p[0],0),f.writeUInt32BE(p[1],4),f.writeUInt32BE(p[2],8),f.writeUInt32BE(p[3],12),f},y.prototype.decryptBlock=function(g){var p=(g=e(g))[1];g[1]=g[3],g[3]=p;var f=h(g,this._invKeySchedule,d.INV_SUB_MIX,d.INV_SBOX,this._nRounds),C=t.allocUnsafe(16);return C.writeUInt32BE(f[0],0),C.writeUInt32BE(f[3],4),C.writeUInt32BE(f[2],8),C.writeUInt32BE(f[1],12),C},y.prototype.scrub=function(){l(this._keySchedule),l(this._invKeySchedule),l(this._key)},M.exports.AES=y},69382:(M,b,n)=>{var t=n(41899),e=n(73502).Buffer,l=n(61052),h=n(83894),r=n(68857),d=n(58789),y=n(7968);function f(C,N,a,O){l.call(this);var H=e.alloc(4,0);this._cipher=new t.AES(N);var F=this._cipher.encryptBlock(H);this._ghash=new r(F),a=function p(C,N,a){if(12===N.length)return C._finID=e.concat([N,e.from([0,0,0,1])]),e.concat([N,e.from([0,0,0,2])]);var O=new r(a),H=N.length,F=H%16;O.update(N),F&&O.update(e.alloc(F=16-F,0)),O.update(e.alloc(8,0));var V=8*H,D=e.alloc(8);D.writeUIntBE(V,0,8),O.update(D),C._finID=O.state;var U=e.from(C._finID);return y(U),U}(this,a,F),this._prev=e.from(a),this._cache=e.allocUnsafe(0),this._secCache=e.allocUnsafe(0),this._decrypt=O,this._alen=0,this._len=0,this._mode=C,this._authTag=null,this._called=!1}h(f,l),f.prototype._update=function(C){if(!this._called&&this._alen){var N=16-this._alen%16;N<16&&(N=e.alloc(N,0),this._ghash.update(N))}this._called=!0;var a=this._mode.encrypt(this,C);return this._ghash.update(this._decrypt?C:a),this._len+=C.length,a},f.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var C=d(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function g(C,N){var a=0;C.length!==N.length&&a++;for(var O=Math.min(C.length,N.length),H=0;H<O;++H)a+=C[H]^N[H];return a}(C,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=C,this._cipher.scrub()},f.prototype.getAuthTag=function(){if(this._decrypt||!e.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},f.prototype.setAuthTag=function(N){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=N},f.prototype.setAAD=function(N){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(N),this._alen+=N.length},M.exports=f},84330:(M,b,n)=>{var t=n(96900),e=n(40856),l=n(44946);b.createCipher=b.Cipher=t.createCipher,b.createCipheriv=b.Cipheriv=t.createCipheriv,b.createDecipher=b.Decipher=e.createDecipher,b.createDecipheriv=b.Decipheriv=e.createDecipheriv,b.listCiphers=b.getCiphers=function h(){return Object.keys(l)}},40856:(M,b,n)=>{var t=n(69382),e=n(73502).Buffer,l=n(29171),h=n(38441),r=n(61052),d=n(41899),y=n(40347);function p(O,H,F){r.call(this),this._cache=new f,this._last=void 0,this._cipher=new d.AES(H),this._prev=e.from(F),this._mode=O,this._autopadding=!0}function f(){this.cache=e.allocUnsafe(0)}function N(O,H,F){var V=l[O.toLowerCase()];if(!V)throw new TypeError("invalid suite type");if("string"==typeof F&&(F=e.from(F)),"GCM"!==V.mode&&F.length!==V.iv)throw new TypeError("invalid iv length "+F.length);if("string"==typeof H&&(H=e.from(H)),H.length!==V.key/8)throw new TypeError("invalid key length "+H.length);return"stream"===V.type?new h(V.module,H,F,!0):"auth"===V.type?new t(V.module,H,F,!0):new p(V.module,H,F)}n(83894)(p,r),p.prototype._update=function(O){this._cache.add(O);for(var H,F,V=[];H=this._cache.get(this._autopadding);)F=this._mode.decrypt(this,H),V.push(F);return e.concat(V)},p.prototype._final=function(){var O=this._cache.flush();if(this._autopadding)return function C(O){var H=O[15];if(H<1||H>16)throw new Error("unable to decrypt data");for(var F=-1;++F<H;)if(O[F+(16-H)]!==H)throw new Error("unable to decrypt data");if(16!==H)return O.slice(0,16-H)}(this._mode.decrypt(this,O));if(O)throw new Error("data not multiple of block length")},p.prototype.setAutoPadding=function(O){return this._autopadding=!!O,this},f.prototype.add=function(O){this.cache=e.concat([this.cache,O])},f.prototype.get=function(O){var H;if(O){if(this.cache.length>16)return H=this.cache.slice(0,16),this.cache=this.cache.slice(16),H}else if(this.cache.length>=16)return H=this.cache.slice(0,16),this.cache=this.cache.slice(16),H;return null},f.prototype.flush=function(){if(this.cache.length)return this.cache},b.createDecipher=function a(O,H){var F=l[O.toLowerCase()];if(!F)throw new TypeError("invalid suite type");var V=y(H,!1,F.key,F.iv);return N(O,V.key,V.iv)},b.createDecipheriv=N},96900:(M,b,n)=>{var t=n(29171),e=n(69382),l=n(73502).Buffer,h=n(38441),r=n(61052),d=n(41899),y=n(40347);function p(O,H,F){r.call(this),this._cache=new C,this._cipher=new d.AES(H),this._prev=l.from(F),this._mode=O,this._autopadding=!0}n(83894)(p,r),p.prototype._update=function(O){this._cache.add(O);for(var H,F,V=[];H=this._cache.get();)F=this._mode.encrypt(this,H),V.push(F);return l.concat(V)};var f=l.alloc(16,16);function C(){this.cache=l.allocUnsafe(0)}function N(O,H,F){var V=t[O.toLowerCase()];if(!V)throw new TypeError("invalid suite type");if("string"==typeof H&&(H=l.from(H)),H.length!==V.key/8)throw new TypeError("invalid key length "+H.length);if("string"==typeof F&&(F=l.from(F)),"GCM"!==V.mode&&F.length!==V.iv)throw new TypeError("invalid iv length "+F.length);return"stream"===V.type?new h(V.module,H,F):"auth"===V.type?new e(V.module,H,F):new p(V.module,H,F)}p.prototype._final=function(){var O=this._cache.flush();if(this._autopadding)return O=this._mode.encrypt(this,O),this._cipher.scrub(),O;if(!O.equals(f))throw this._cipher.scrub(),new Error("data not multiple of block length")},p.prototype.setAutoPadding=function(O){return this._autopadding=!!O,this},C.prototype.add=function(O){this.cache=l.concat([this.cache,O])},C.prototype.get=function(){if(this.cache.length>15){var O=this.cache.slice(0,16);return this.cache=this.cache.slice(16),O}return null},C.prototype.flush=function(){for(var O=16-this.cache.length,H=l.allocUnsafe(O),F=-1;++F<O;)H.writeUInt8(O,F);return l.concat([this.cache,H])},b.createCipheriv=N,b.createCipher=function a(O,H){var F=t[O.toLowerCase()];if(!F)throw new TypeError("invalid suite type");var V=y(H,!1,F.key,F.iv);return N(O,V.key,V.iv)}},68857:(M,b,n)=>{var t=n(73502).Buffer,e=t.alloc(16,0);function h(d){var y=t.allocUnsafe(16);return y.writeUInt32BE(d[0]>>>0,0),y.writeUInt32BE(d[1]>>>0,4),y.writeUInt32BE(d[2]>>>0,8),y.writeUInt32BE(d[3]>>>0,12),y}function r(d){this.h=d,this.state=t.alloc(16,0),this.cache=t.allocUnsafe(0)}r.prototype.ghash=function(d){for(var y=-1;++y<d.length;)this.state[y]^=d[y];this._multiply()},r.prototype._multiply=function(){for(var g,f,d=function l(d){return[d.readUInt32BE(0),d.readUInt32BE(4),d.readUInt32BE(8),d.readUInt32BE(12)]}(this.h),y=[0,0,0,0],C=-1;++C<128;){for(0!=(this.state[~~(C/8)]&1<<7-C%8)&&(y[0]^=d[0],y[1]^=d[1],y[2]^=d[2],y[3]^=d[3]),f=0!=(1&d[3]),g=3;g>0;g--)d[g]=d[g]>>>1|(1&d[g-1])<<31;d[0]=d[0]>>>1,f&&(d[0]=d[0]^225<<24)}this.state=h(y)},r.prototype.update=function(d){this.cache=t.concat([this.cache,d]);for(var y;this.cache.length>=16;)y=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(y)},r.prototype.final=function(d,y){return this.cache.length&&this.ghash(t.concat([this.cache,e],16)),this.ghash(h([0,d,0,y])),this.state},M.exports=r},7968:M=>{M.exports=function b(n){for(var e,t=n.length;t--;){if(255!==(e=n.readUInt8(t))){e++,n.writeUInt8(e,t);break}n.writeUInt8(0,t)}}},64903:(M,b,n)=>{var t=n(58789);b.encrypt=function(e,l){var h=t(l,e._prev);return e._prev=e._cipher.encryptBlock(h),e._prev},b.decrypt=function(e,l){var h=e._prev;e._prev=l;var r=e._cipher.decryptBlock(l);return t(r,h)}},59885:(M,b,n)=>{var t=n(73502).Buffer,e=n(58789);function l(h,r,d){var y=r.length,g=e(r,h._cache);return h._cache=h._cache.slice(y),h._prev=t.concat([h._prev,d?r:g]),g}b.encrypt=function(h,r,d){for(var g,y=t.allocUnsafe(0);r.length;){if(0===h._cache.length&&(h._cache=h._cipher.encryptBlock(h._prev),h._prev=t.allocUnsafe(0)),!(h._cache.length<=r.length)){y=t.concat([y,l(h,r,d)]);break}y=t.concat([y,l(h,r.slice(0,g=h._cache.length),d)]),r=r.slice(g)}return y}},86531:(M,b,n)=>{var t=n(73502).Buffer;function e(h,r,d){for(var C,N,g=-1,f=0;++g<8;)f+=(128&(N=h._cipher.encryptBlock(h._prev)[0]^(C=r&1<<7-g?128:0)))>>g%8,h._prev=l(h._prev,d?C:N);return f}function l(h,r){var d=h.length,y=-1,g=t.allocUnsafe(h.length);for(h=t.concat([h,t.from([r])]);++y<d;)g[y]=h[y]<<1|h[y+1]>>7;return g}b.encrypt=function(h,r,d){for(var y=r.length,g=t.allocUnsafe(y),p=-1;++p<y;)g[p]=e(h,r[p],d);return g}},21641:(M,b,n)=>{var t=n(73502).Buffer;function e(l,h,r){var y=l._cipher.encryptBlock(l._prev)[0]^h;return l._prev=t.concat([l._prev.slice(1),t.from([r?h:y])]),y}b.encrypt=function(l,h,r){for(var d=h.length,y=t.allocUnsafe(d),g=-1;++g<d;)y[g]=e(l,h[g],r);return y}},11150:(M,b,n)=>{var t=n(58789),e=n(73502).Buffer,l=n(7968);function h(d){var y=d._cipher.encryptBlockRaw(d._prev);return l(d._prev),y}b.encrypt=function(d,y){var g=Math.ceil(y.length/16),p=d._cache.length;d._cache=e.concat([d._cache,e.allocUnsafe(16*g)]);for(var f=0;f<g;f++){var C=h(d),N=p+16*f;d._cache.writeUInt32BE(C[0],N+0),d._cache.writeUInt32BE(C[1],N+4),d._cache.writeUInt32BE(C[2],N+8),d._cache.writeUInt32BE(C[3],N+12)}var a=d._cache.slice(0,y.length);return d._cache=d._cache.slice(y.length),t(y,a)}},21704:(M,b)=>{b.encrypt=function(n,t){return n._cipher.encryptBlock(t)},b.decrypt=function(n,t){return n._cipher.decryptBlock(t)}},29171:(M,b,n)=>{var t={ECB:n(21704),CBC:n(64903),CFB:n(59885),CFB8:n(21641),CFB1:n(86531),OFB:n(86816),CTR:n(11150),GCM:n(11150)},e=n(44946);for(var l in e)e[l].module=t[e[l].mode];M.exports=e},86816:(M,b,n)=>{var t=n(58789);function e(l){return l._prev=l._cipher.encryptBlock(l._prev),l._prev}b.encrypt=function(l,h){for(;l._cache.length<h.length;)l._cache=Buffer.concat([l._cache,e(l)]);var r=l._cache.slice(0,h.length);return l._cache=l._cache.slice(h.length),t(h,r)}},38441:(M,b,n)=>{var t=n(41899),e=n(73502).Buffer,l=n(61052);function r(d,y,g,p){l.call(this),this._cipher=new t.AES(y),this._prev=e.from(g),this._cache=e.allocUnsafe(0),this._secCache=e.allocUnsafe(0),this._decrypt=p,this._mode=d}n(83894)(r,l),r.prototype._update=function(d){return this._mode.encrypt(this,d,this._decrypt)},r.prototype._final=function(){this._cipher.scrub()},M.exports=r},55255:(M,b,n)=>{var t=n(9004),e=n(84330),l=n(29171),h=n(51115),r=n(40347);function g(C,N,a){if(C=C.toLowerCase(),l[C])return e.createCipheriv(C,N,a);if(h[C])return new t({key:N,iv:a,mode:C});throw new TypeError("invalid suite type")}function p(C,N,a){if(C=C.toLowerCase(),l[C])return e.createDecipheriv(C,N,a);if(h[C])return new t({key:N,iv:a,mode:C,decrypt:!0});throw new TypeError("invalid suite type")}b.createCipher=b.Cipher=function d(C,N){var a,O;if(C=C.toLowerCase(),l[C])a=l[C].key,O=l[C].iv;else{if(!h[C])throw new TypeError("invalid suite type");a=8*h[C].key,O=h[C].iv}var H=r(N,!1,a,O);return g(C,H.key,H.iv)},b.createCipheriv=b.Cipheriv=g,b.createDecipher=b.Decipher=function y(C,N){var a,O;if(C=C.toLowerCase(),l[C])a=l[C].key,O=l[C].iv;else{if(!h[C])throw new TypeError("invalid suite type");a=8*h[C].key,O=h[C].iv}var H=r(N,!1,a,O);return p(C,H.key,H.iv)},b.createDecipheriv=b.Decipheriv=p,b.listCiphers=b.getCiphers=function f(){return Object.keys(h).concat(e.getCiphers())}},9004:(M,b,n)=>{var t=n(61052),e=n(73684),l=n(83894),h=n(73502).Buffer,r={"des-ede3-cbc":e.CBC.instantiate(e.EDE),"des-ede3":e.EDE,"des-ede-cbc":e.CBC.instantiate(e.EDE),"des-ede":e.EDE,"des-cbc":e.CBC.instantiate(e.DES),"des-ecb":e.DES};function d(y){t.call(this);var f,g=y.mode.toLowerCase(),p=r[g];f=y.decrypt?"decrypt":"encrypt";var C=y.key;h.isBuffer(C)||(C=h.from(C)),("des-ede"===g||"des-ede-cbc"===g)&&(C=h.concat([C,C.slice(0,8)]));var N=y.iv;h.isBuffer(N)||(N=h.from(N)),this._des=p.create({key:C,iv:N,type:f})}r.des=r["des-cbc"],r.des3=r["des-ede3-cbc"],M.exports=d,l(d,t),d.prototype._update=function(y){return h.from(this._des.update(y))},d.prototype._final=function(){return h.from(this._des.final())}},51115:(M,b)=>{b["des-ecb"]={key:8,iv:0},b["des-cbc"]=b.des={key:8,iv:8},b["des-ede3-cbc"]=b.des3={key:24,iv:8},b["des-ede3"]={key:24,iv:0},b["des-ede-cbc"]={key:16,iv:8},b["des-ede"]={key:16,iv:0}},8466:(M,b,n)=>{var t=n(98538),e=n(53753);function h(d){var g,y=d.modulus.byteLength();do{g=new t(e(y))}while(g.cmp(d.modulus)>=0||!g.umod(d.prime1)||!g.umod(d.prime2));return g}function r(d,y){var g=function l(d){var y=h(d);return{blinder:y.toRed(t.mont(d.modulus)).redPow(new t(d.publicExponent)).fromRed(),unblinder:y.invm(d.modulus)}}(y),p=y.modulus.byteLength(),f=new t(d).mul(g.blinder).umod(y.modulus),C=f.toRed(t.mont(y.prime1)),N=f.toRed(t.mont(y.prime2)),a=y.coefficient,O=y.prime1,H=y.prime2,F=C.redPow(y.exponent1).fromRed(),V=N.redPow(y.exponent2).fromRed(),D=F.isub(V).imul(a).umod(O).imul(H);return V.iadd(D).imul(g.unblinder).umod(y.modulus).toArrayLike(Buffer,"be",p)}r.getr=h,M.exports=r},87793:(M,b,n)=>{M.exports=n(75207)},3923:(M,b,n)=>{var t=n(73502).Buffer,e=n(96386),l=n(65685),h=n(83894),r=n(79947),d=n(3946),y=n(75207);function g(N){l.Writable.call(this);var a=y[N];if(!a)throw new Error("Unknown message digest");this._hashType=a.hash,this._hash=e(a.hash),this._tag=a.id,this._signType=a.sign}function p(N){l.Writable.call(this);var a=y[N];if(!a)throw new Error("Unknown message digest");this._hash=e(a.hash),this._tag=a.id,this._signType=a.sign}function f(N){return new g(N)}function C(N){return new p(N)}Object.keys(y).forEach(function(N){y[N].id=t.from(y[N].id,"hex"),y[N.toLowerCase()]=y[N]}),h(g,l.Writable),g.prototype._write=function(a,O,H){this._hash.update(a),H()},g.prototype.update=function(a,O){return"string"==typeof a&&(a=t.from(a,O)),this._hash.update(a),this},g.prototype.sign=function(a,O){this.end();var H=this._hash.digest(),F=r(H,a,this._hashType,this._signType,this._tag);return O?F.toString(O):F},h(p,l.Writable),p.prototype._write=function(a,O,H){this._hash.update(a),H()},p.prototype.update=function(a,O){return"string"==typeof a&&(a=t.from(a,O)),this._hash.update(a),this},p.prototype.verify=function(a,O,H){"string"==typeof O&&(O=t.from(O,H)),this.end();var F=this._hash.digest();return d(O,F,a,this._signType,this._tag)},M.exports={Sign:f,Verify:C,createSign:f,createVerify:C}},79947:(M,b,n)=>{var t=n(73502).Buffer,e=n(74529),l=n(8466),h=n(57715).ec,r=n(98538),d=n(22772),y=n(1308);function N(V,D,U,q){if((V=t.from(V.toArray())).length<D.byteLength()){var J=t.alloc(D.byteLength()-V.length);V=t.concat([J,V])}var G=U.length,ie=function O(V,D){V=(V=a(V,D)).mod(D);var U=t.from(V.toArray());if(U.length<D.byteLength()){var q=t.alloc(D.byteLength()-U.length);U=t.concat([q,U])}return U}(U,D),K=t.alloc(G);K.fill(1);var re=t.alloc(G);return re=e(q,re).update(K).update(t.from([0])).update(V).update(ie).digest(),K=e(q,re).update(K).digest(),{k:re=e(q,re).update(K).update(t.from([1])).update(V).update(ie).digest(),v:K=e(q,re).update(K).digest()}}function a(V,D){var U=new r(V),q=(V.length<<3)-D.bitLength();return q>0&&U.ishrn(q),U}function H(V,D,U){var q,J;do{for(q=t.alloc(0);8*q.length<V.bitLength();)D.v=e(U,D.k).update(D.v).digest(),q=t.concat([q,D.v]);J=a(q,V),D.k=e(U,D.k).update(D.v).update(t.from([0])).digest(),D.v=e(U,D.k).update(D.v).digest()}while(-1!==J.cmp(V));return J}function F(V,D,U,q){return V.toRed(r.mont(U)).redPow(D).fromRed().mod(q)}M.exports=function g(V,D,U,q,J){var G=d(D);if(G.curve){if("ecdsa"!==q&&"ecdsa/rsa"!==q)throw new Error("wrong private key type");return function p(V,D){var U=y[D.curve.join(".")];if(!U)throw new Error("unknown curve "+D.curve.join("."));var G=new h(U).keyFromPrivate(D.privateKey).sign(V);return t.from(G.toDER())}(V,G)}if("dsa"===G.type){if("dsa"!==q)throw new Error("wrong private key type");return function f(V,D,U){for(var re,q=D.params.priv_key,J=D.params.p,G=D.params.q,ie=D.params.g,K=new r(0),oe=a(V,G).mod(G),B=!1,s=N(q,G,V,U);!1===B;)K=F(ie,re=H(G,s,U),J,G),0===(B=re.invm(G).imul(oe.add(q.mul(K))).mod(G)).cmpn(0)&&(B=!1,K=new r(0));return function C(V,D){V=V.toArray(),D=D.toArray(),128&V[0]&&(V=[0].concat(V)),128&D[0]&&(D=[0].concat(D));var q=[48,V.length+D.length+4,2,V.length];return q=q.concat(V,[2,D.length],D),t.from(q)}(K,B)}(V,G,U)}if("rsa"!==q&&"ecdsa/rsa"!==q)throw new Error("wrong private key type");V=t.concat([J,V]);for(var ie=G.modulus.byteLength(),K=[0,1];V.length+K.length+1<ie;)K.push(255);K.push(0);for(var re=-1;++re<V.length;)K.push(V[re]);return l(K,G)},M.exports.getKey=N,M.exports.makeKey=H},3946:(M,b,n)=>{var t=n(73502).Buffer,e=n(98538),l=n(57715).ec,h=n(22772),r=n(1308);function p(f,C){if(f.cmpn(0)<=0)throw new Error("invalid sig");if(f.cmp(C)>=C)throw new Error("invalid sig")}M.exports=function d(f,C,N,a,O){var H=h(N);if("ec"===H.type){if("ecdsa"!==a&&"ecdsa/rsa"!==a)throw new Error("wrong public key type");return function y(f,C,N){var a=r[N.data.algorithm.curve.join(".")];if(!a)throw new Error("unknown curve "+N.data.algorithm.curve.join("."));return new l(a).verify(C,f,N.data.subjectPrivateKey.data)}(f,C,H)}if("dsa"===H.type){if("dsa"!==a)throw new Error("wrong public key type");return function g(f,C,N){var a=N.data.p,O=N.data.q,H=N.data.g,F=N.data.pub_key,V=h.signature.decode(f,"der"),D=V.s,U=V.r;p(D,O),p(U,O);var q=e.mont(a),J=D.invm(O);return 0===H.toRed(q).redPow(new e(C).mul(J).mod(O)).fromRed().mul(F.toRed(q).redPow(U.mul(J).mod(O)).fromRed()).mod(a).mod(O).cmp(U)}(f,C,H)}if("rsa"!==a&&"ecdsa/rsa"!==a)throw new Error("wrong public key type");C=t.concat([O,C]);for(var F=H.modulus.byteLength(),V=[1],D=0;C.length+V.length+2<F;)V.push(255),D++;V.push(0);for(var U=-1;++U<C.length;)V.push(C[U]);V=t.from(V);var q=e.mont(H.modulus);f=(f=new e(f).toRed(q)).redPow(new e(H.publicExponent)),f=t.from(f.fromRed().toArray());var J=D<8?1:0;for(F=Math.min(f.length,V.length),f.length!==V.length&&(J=1),U=-1;++U<F;)J|=f[U]^V[U];return 0===J}},58789:M=>{M.exports=function(n,t){for(var e=Math.min(n.length,t.length),l=new Buffer(e),h=0;h<e;++h)l[h]=n[h]^t[h];return l}},93172:(M,b,n)=>{"use strict";const t=n(5343),e=n(48461),l="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;b.Buffer=y,b.SlowBuffer=function D(Ne){return+Ne!=Ne&&(Ne=0),y.alloc(+Ne)},b.INSPECT_MAX_BYTES=50;const h=2147483647;function d(Ne){if(Ne>h)throw new RangeError('The value "'+Ne+'" is invalid for option "size"');const X=new Uint8Array(Ne);return Object.setPrototypeOf(X,y.prototype),X}function y(Ne,X,ge){if("number"==typeof Ne){if("string"==typeof X)throw new TypeError('The "string" argument must be of type string. Received type number');return C(Ne)}return g(Ne,X,ge)}function g(Ne,X,ge){if("string"==typeof Ne)return function N(Ne,X){if(("string"!=typeof X||""===X)&&(X="utf8"),!y.isEncoding(X))throw new TypeError("Unknown encoding: "+X);const ge=0|U(Ne,X);let Me=d(ge);const We=Me.write(Ne,X);return We!==ge&&(Me=Me.slice(0,We)),Me}(Ne,X);if(ArrayBuffer.isView(Ne))return function O(Ne){if(st(Ne,Uint8Array)){const X=new Uint8Array(Ne);return H(X.buffer,X.byteOffset,X.byteLength)}return a(Ne)}(Ne);if(null==Ne)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ne);if(st(Ne,ArrayBuffer)||Ne&&st(Ne.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(st(Ne,SharedArrayBuffer)||Ne&&st(Ne.buffer,SharedArrayBuffer)))return H(Ne,X,ge);if("number"==typeof Ne)throw new TypeError('The "value" argument must not be of type number. Received type number');const Me=Ne.valueOf&&Ne.valueOf();if(null!=Me&&Me!==Ne)return y.from(Me,X,ge);const We=function F(Ne){if(y.isBuffer(Ne)){const X=0|V(Ne.length),ge=d(X);return 0===ge.length||Ne.copy(ge,0,0,X),ge}return void 0!==Ne.length?"number"!=typeof Ne.length||Dt(Ne.length)?d(0):a(Ne):"Buffer"===Ne.type&&Array.isArray(Ne.data)?a(Ne.data):void 0}(Ne);if(We)return We;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof Ne[Symbol.toPrimitive])return y.from(Ne[Symbol.toPrimitive]("string"),X,ge);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ne)}function p(Ne){if("number"!=typeof Ne)throw new TypeError('"size" argument must be of type number');if(Ne<0)throw new RangeError('The value "'+Ne+'" is invalid for option "size"')}function C(Ne){return p(Ne),d(Ne<0?0:0|V(Ne))}function a(Ne){const X=Ne.length<0?0:0|V(Ne.length),ge=d(X);for(let Me=0;Me<X;Me+=1)ge[Me]=255&Ne[Me];return ge}function H(Ne,X,ge){if(X<0||Ne.byteLength<X)throw new RangeError('"offset" is outside of buffer bounds');if(Ne.byteLength<X+(ge||0))throw new RangeError('"length" is outside of buffer bounds');let Me;return Me=void 0===X&&void 0===ge?new Uint8Array(Ne):void 0===ge?new Uint8Array(Ne,X):new Uint8Array(Ne,X,ge),Object.setPrototypeOf(Me,y.prototype),Me}function V(Ne){if(Ne>=h)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h.toString(16)+" bytes");return 0|Ne}function U(Ne,X){if(y.isBuffer(Ne))return Ne.length;if(ArrayBuffer.isView(Ne)||st(Ne,ArrayBuffer))return Ne.byteLength;if("string"!=typeof Ne)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Ne);const ge=Ne.length,Me=arguments.length>2&&!0===arguments[2];if(!Me&&0===ge)return 0;let We=!1;for(;;)switch(X){case"ascii":case"latin1":case"binary":return ge;case"utf8":case"utf-8":return ft(Ne).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*ge;case"hex":return ge>>>1;case"base64":return br(Ne).length;default:if(We)return Me?-1:ft(Ne).length;X=(""+X).toLowerCase(),We=!0}}function q(Ne,X,ge){let Me=!1;if((void 0===X||X<0)&&(X=0),X>this.length||((void 0===ge||ge>this.length)&&(ge=this.length),ge<=0)||(ge>>>=0)<=(X>>>=0))return"";for(Ne||(Ne="utf8");;)switch(Ne){case"hex":return Y(this,X,ge);case"utf8":case"utf-8":return w(this,X,ge);case"ascii":return j(this,X,ge);case"latin1":case"binary":return $(this,X,ge);case"base64":return _(this,X,ge);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u(this,X,ge);default:if(Me)throw new TypeError("Unknown encoding: "+Ne);Ne=(Ne+"").toLowerCase(),Me=!0}}function J(Ne,X,ge){const Me=Ne[X];Ne[X]=Ne[ge],Ne[ge]=Me}function G(Ne,X,ge,Me,We){if(0===Ne.length)return-1;if("string"==typeof ge?(Me=ge,ge=0):ge>2147483647?ge=2147483647:ge<-2147483648&&(ge=-2147483648),Dt(ge=+ge)&&(ge=We?0:Ne.length-1),ge<0&&(ge=Ne.length+ge),ge>=Ne.length){if(We)return-1;ge=Ne.length-1}else if(ge<0){if(!We)return-1;ge=0}if("string"==typeof X&&(X=y.from(X,Me)),y.isBuffer(X))return 0===X.length?-1:ie(Ne,X,ge,Me,We);if("number"==typeof X)return X&=255,"function"==typeof Uint8Array.prototype.indexOf?We?Uint8Array.prototype.indexOf.call(Ne,X,ge):Uint8Array.prototype.lastIndexOf.call(Ne,X,ge):ie(Ne,[X],ge,Me,We);throw new TypeError("val must be string, number or Buffer")}function ie(Ne,X,ge,Me,We){let wt,Re=1,pt=Ne.length,Zt=X.length;if(void 0!==Me&&("ucs2"===(Me=String(Me).toLowerCase())||"ucs-2"===Me||"utf16le"===Me||"utf-16le"===Me)){if(Ne.length<2||X.length<2)return-1;Re=2,pt/=2,Zt/=2,ge/=2}function cr(gt,Ut){return 1===Re?gt[Ut]:gt.readUInt16BE(Ut*Re)}if(We){let gt=-1;for(wt=ge;wt<pt;wt++)if(cr(Ne,wt)===cr(X,-1===gt?0:wt-gt)){if(-1===gt&&(gt=wt),wt-gt+1===Zt)return gt*Re}else-1!==gt&&(wt-=wt-gt),gt=-1}else for(ge+Zt>pt&&(ge=pt-Zt),wt=ge;wt>=0;wt--){let gt=!0;for(let Ut=0;Ut<Zt;Ut++)if(cr(Ne,wt+Ut)!==cr(X,Ut)){gt=!1;break}if(gt)return wt}return-1}function K(Ne,X,ge,Me){ge=Number(ge)||0;const We=Ne.length-ge;Me?(Me=Number(Me))>We&&(Me=We):Me=We;const Re=X.length;let pt;for(Me>Re/2&&(Me=Re/2),pt=0;pt<Me;++pt){const Zt=parseInt(X.substr(2*pt,2),16);if(Dt(Zt))return pt;Ne[ge+pt]=Zt}return pt}function re(Ne,X,ge,Me){return rt(ft(X,Ne.length-ge),Ne,ge,Me)}function oe(Ne,X,ge,Me){return rt(function Ge(Ne){const X=[];for(let ge=0;ge<Ne.length;++ge)X.push(255&Ne.charCodeAt(ge));return X}(X),Ne,ge,Me)}function B(Ne,X,ge,Me){return rt(br(X),Ne,ge,Me)}function s(Ne,X,ge,Me){return rt(function Ft(Ne,X){let ge,Me,We;const Re=[];for(let pt=0;pt<Ne.length&&!((X-=2)<0);++pt)ge=Ne.charCodeAt(pt),Me=ge>>8,We=ge%256,Re.push(We),Re.push(Me);return Re}(X,Ne.length-ge),Ne,ge,Me)}function _(Ne,X,ge){return t.fromByteArray(0===X&&ge===Ne.length?Ne:Ne.slice(X,ge))}function w(Ne,X,ge){ge=Math.min(Ne.length,ge);const Me=[];let We=X;for(;We<ge;){const Re=Ne[We];let pt=null,Zt=Re>239?4:Re>223?3:Re>191?2:1;if(We+Zt<=ge){let cr,wt,gt,Ut;switch(Zt){case 1:Re<128&&(pt=Re);break;case 2:cr=Ne[We+1],128==(192&cr)&&(Ut=(31&Re)<<6|63&cr,Ut>127&&(pt=Ut));break;case 3:cr=Ne[We+1],wt=Ne[We+2],128==(192&cr)&&128==(192&wt)&&(Ut=(15&Re)<<12|(63&cr)<<6|63&wt,Ut>2047&&(Ut<55296||Ut>57343)&&(pt=Ut));break;case 4:cr=Ne[We+1],wt=Ne[We+2],gt=Ne[We+3],128==(192&cr)&&128==(192&wt)&&128==(192&gt)&&(Ut=(15&Re)<<18|(63&cr)<<12|(63&wt)<<6|63&gt,Ut>65535&&Ut<1114112&&(pt=Ut))}}null===pt?(pt=65533,Zt=1):pt>65535&&(pt-=65536,Me.push(pt>>>10&1023|55296),pt=56320|1023&pt),Me.push(pt),We+=Zt}return function x(Ne){const X=Ne.length;if(X<=E)return String.fromCharCode.apply(String,Ne);let ge="",Me=0;for(;Me<X;)ge+=String.fromCharCode.apply(String,Ne.slice(Me,Me+=E));return ge}(Me)}b.kMaxLength=h,!(y.TYPED_ARRAY_SUPPORT=function r(){try{const Ne=new Uint8Array(1),X={foo:function(){return 42}};return Object.setPrototypeOf(X,Uint8Array.prototype),Object.setPrototypeOf(Ne,X),42===Ne.foo()}catch{return!1}}())&&typeof console<"u"&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(y.prototype,"parent",{enumerable:!0,get:function(){if(y.isBuffer(this))return this.buffer}}),Object.defineProperty(y.prototype,"offset",{enumerable:!0,get:function(){if(y.isBuffer(this))return this.byteOffset}}),y.poolSize=8192,y.from=function(Ne,X,ge){return g(Ne,X,ge)},Object.setPrototypeOf(y.prototype,Uint8Array.prototype),Object.setPrototypeOf(y,Uint8Array),y.alloc=function(Ne,X,ge){return function f(Ne,X,ge){return p(Ne),Ne<=0?d(Ne):void 0!==X?"string"==typeof ge?d(Ne).fill(X,ge):d(Ne).fill(X):d(Ne)}(Ne,X,ge)},y.allocUnsafe=function(Ne){return C(Ne)},y.allocUnsafeSlow=function(Ne){return C(Ne)},y.isBuffer=function(X){return null!=X&&!0===X._isBuffer&&X!==y.prototype},y.compare=function(X,ge){if(st(X,Uint8Array)&&(X=y.from(X,X.offset,X.byteLength)),st(ge,Uint8Array)&&(ge=y.from(ge,ge.offset,ge.byteLength)),!y.isBuffer(X)||!y.isBuffer(ge))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(X===ge)return 0;let Me=X.length,We=ge.length;for(let Re=0,pt=Math.min(Me,We);Re<pt;++Re)if(X[Re]!==ge[Re]){Me=X[Re],We=ge[Re];break}return Me<We?-1:We<Me?1:0},y.isEncoding=function(X){switch(String(X).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},y.concat=function(X,ge){if(!Array.isArray(X))throw new TypeError('"list" argument must be an Array of Buffers');if(0===X.length)return y.alloc(0);let Me;if(void 0===ge)for(ge=0,Me=0;Me<X.length;++Me)ge+=X[Me].length;const We=y.allocUnsafe(ge);let Re=0;for(Me=0;Me<X.length;++Me){let pt=X[Me];if(st(pt,Uint8Array))Re+pt.length>We.length?(y.isBuffer(pt)||(pt=y.from(pt)),pt.copy(We,Re)):Uint8Array.prototype.set.call(We,pt,Re);else{if(!y.isBuffer(pt))throw new TypeError('"list" argument must be an Array of Buffers');pt.copy(We,Re)}Re+=pt.length}return We},y.byteLength=U,y.prototype._isBuffer=!0,y.prototype.swap16=function(){const X=this.length;if(X%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let ge=0;ge<X;ge+=2)J(this,ge,ge+1);return this},y.prototype.swap32=function(){const X=this.length;if(X%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let ge=0;ge<X;ge+=4)J(this,ge,ge+3),J(this,ge+1,ge+2);return this},y.prototype.swap64=function(){const X=this.length;if(X%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let ge=0;ge<X;ge+=8)J(this,ge,ge+7),J(this,ge+1,ge+6),J(this,ge+2,ge+5),J(this,ge+3,ge+4);return this},y.prototype.toLocaleString=y.prototype.toString=function(){const X=this.length;return 0===X?"":0===arguments.length?w(this,0,X):q.apply(this,arguments)},y.prototype.equals=function(X){if(!y.isBuffer(X))throw new TypeError("Argument must be a Buffer");return this===X||0===y.compare(this,X)},y.prototype.inspect=function(){let X="";const ge=b.INSPECT_MAX_BYTES;return X=this.toString("hex",0,ge).replace(/(.{2})/g,"$1 ").trim(),this.length>ge&&(X+=" ... "),"<Buffer "+X+">"},l&&(y.prototype[l]=y.prototype.inspect),y.prototype.compare=function(X,ge,Me,We,Re){if(st(X,Uint8Array)&&(X=y.from(X,X.offset,X.byteLength)),!y.isBuffer(X))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof X);if(void 0===ge&&(ge=0),void 0===Me&&(Me=X?X.length:0),void 0===We&&(We=0),void 0===Re&&(Re=this.length),ge<0||Me>X.length||We<0||Re>this.length)throw new RangeError("out of range index");if(We>=Re&&ge>=Me)return 0;if(We>=Re)return-1;if(ge>=Me)return 1;if(this===X)return 0;let pt=(Re>>>=0)-(We>>>=0),Zt=(Me>>>=0)-(ge>>>=0);const cr=Math.min(pt,Zt),wt=this.slice(We,Re),gt=X.slice(ge,Me);for(let Ut=0;Ut<cr;++Ut)if(wt[Ut]!==gt[Ut]){pt=wt[Ut],Zt=gt[Ut];break}return pt<Zt?-1:Zt<pt?1:0},y.prototype.includes=function(X,ge,Me){return-1!==this.indexOf(X,ge,Me)},y.prototype.indexOf=function(X,ge,Me){return G(this,X,ge,Me,!0)},y.prototype.lastIndexOf=function(X,ge,Me){return G(this,X,ge,Me,!1)},y.prototype.write=function(X,ge,Me,We){if(void 0===ge)We="utf8",Me=this.length,ge=0;else if(void 0===Me&&"string"==typeof ge)We=ge,Me=this.length,ge=0;else{if(!isFinite(ge))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");ge>>>=0,isFinite(Me)?(Me>>>=0,void 0===We&&(We="utf8")):(We=Me,Me=void 0)}const Re=this.length-ge;if((void 0===Me||Me>Re)&&(Me=Re),X.length>0&&(Me<0||ge<0)||ge>this.length)throw new RangeError("Attempt to write outside buffer bounds");We||(We="utf8");let pt=!1;for(;;)switch(We){case"hex":return K(this,X,ge,Me);case"utf8":case"utf-8":return re(this,X,ge,Me);case"ascii":case"latin1":case"binary":return oe(this,X,ge,Me);case"base64":return B(this,X,ge,Me);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return s(this,X,ge,Me);default:if(pt)throw new TypeError("Unknown encoding: "+We);We=(""+We).toLowerCase(),pt=!0}},y.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const E=4096;function j(Ne,X,ge){let Me="";ge=Math.min(Ne.length,ge);for(let We=X;We<ge;++We)Me+=String.fromCharCode(127&Ne[We]);return Me}function $(Ne,X,ge){let Me="";ge=Math.min(Ne.length,ge);for(let We=X;We<ge;++We)Me+=String.fromCharCode(Ne[We]);return Me}function Y(Ne,X,ge){const Me=Ne.length;(!X||X<0)&&(X=0),(!ge||ge<0||ge>Me)&&(ge=Me);let We="";for(let Re=X;Re<ge;++Re)We+=ot[Ne[Re]];return We}function u(Ne,X,ge){const Me=Ne.slice(X,ge);let We="";for(let Re=0;Re<Me.length-1;Re+=2)We+=String.fromCharCode(Me[Re]+256*Me[Re+1]);return We}function W(Ne,X,ge){if(Ne%1!=0||Ne<0)throw new RangeError("offset is not uint");if(Ne+X>ge)throw new RangeError("Trying to access beyond buffer length")}function fe(Ne,X,ge,Me,We,Re){if(!y.isBuffer(Ne))throw new TypeError('"buffer" argument must be a Buffer instance');if(X>We||X<Re)throw new RangeError('"value" argument is out of bounds');if(ge+Me>Ne.length)throw new RangeError("Index out of range")}function ae(Ne,X,ge,Me,We){_e(X,Me,We,Ne,ge,7);let Re=Number(X&BigInt(4294967295));Ne[ge++]=Re,Re>>=8,Ne[ge++]=Re,Re>>=8,Ne[ge++]=Re,Re>>=8,Ne[ge++]=Re;let pt=Number(X>>BigInt(32)&BigInt(4294967295));return Ne[ge++]=pt,pt>>=8,Ne[ge++]=pt,pt>>=8,Ne[ge++]=pt,pt>>=8,Ne[ge++]=pt,ge}function ye(Ne,X,ge,Me,We){_e(X,Me,We,Ne,ge,7);let Re=Number(X&BigInt(4294967295));Ne[ge+7]=Re,Re>>=8,Ne[ge+6]=Re,Re>>=8,Ne[ge+5]=Re,Re>>=8,Ne[ge+4]=Re;let pt=Number(X>>BigInt(32)&BigInt(4294967295));return Ne[ge+3]=pt,pt>>=8,Ne[ge+2]=pt,pt>>=8,Ne[ge+1]=pt,pt>>=8,Ne[ge]=pt,ge+8}function Qe(Ne,X,ge,Me,We,Re){if(ge+Me>Ne.length)throw new RangeError("Index out of range");if(ge<0)throw new RangeError("Index out of range")}function Ot(Ne,X,ge,Me,We){return X=+X,ge>>>=0,We||Qe(Ne,0,ge,4),e.write(Ne,X,ge,Me,23,4),ge+4}function At(Ne,X,ge,Me,We){return X=+X,ge>>>=0,We||Qe(Ne,0,ge,8),e.write(Ne,X,ge,Me,52,8),ge+8}y.prototype.slice=function(X,ge){const Me=this.length;(X=~~X)<0?(X+=Me)<0&&(X=0):X>Me&&(X=Me),(ge=void 0===ge?Me:~~ge)<0?(ge+=Me)<0&&(ge=0):ge>Me&&(ge=Me),ge<X&&(ge=X);const We=this.subarray(X,ge);return Object.setPrototypeOf(We,y.prototype),We},y.prototype.readUintLE=y.prototype.readUIntLE=function(X,ge,Me){X>>>=0,ge>>>=0,Me||W(X,ge,this.length);let We=this[X],Re=1,pt=0;for(;++pt<ge&&(Re*=256);)We+=this[X+pt]*Re;return We},y.prototype.readUintBE=y.prototype.readUIntBE=function(X,ge,Me){X>>>=0,ge>>>=0,Me||W(X,ge,this.length);let We=this[X+--ge],Re=1;for(;ge>0&&(Re*=256);)We+=this[X+--ge]*Re;return We},y.prototype.readUint8=y.prototype.readUInt8=function(X,ge){return X>>>=0,ge||W(X,1,this.length),this[X]},y.prototype.readUint16LE=y.prototype.readUInt16LE=function(X,ge){return X>>>=0,ge||W(X,2,this.length),this[X]|this[X+1]<<8},y.prototype.readUint16BE=y.prototype.readUInt16BE=function(X,ge){return X>>>=0,ge||W(X,2,this.length),this[X]<<8|this[X+1]},y.prototype.readUint32LE=y.prototype.readUInt32LE=function(X,ge){return X>>>=0,ge||W(X,4,this.length),(this[X]|this[X+1]<<8|this[X+2]<<16)+16777216*this[X+3]},y.prototype.readUint32BE=y.prototype.readUInt32BE=function(X,ge){return X>>>=0,ge||W(X,4,this.length),16777216*this[X]+(this[X+1]<<16|this[X+2]<<8|this[X+3])},y.prototype.readBigUInt64LE=nt(function(X){ne(X>>>=0,"offset");const ge=this[X],Me=this[X+7];(void 0===ge||void 0===Me)&&be(X,this.length-8);const We=ge+256*this[++X]+65536*this[++X]+this[++X]*2**24,Re=this[++X]+256*this[++X]+65536*this[++X]+Me*2**24;return BigInt(We)+(BigInt(Re)<<BigInt(32))}),y.prototype.readBigUInt64BE=nt(function(X){ne(X>>>=0,"offset");const ge=this[X],Me=this[X+7];(void 0===ge||void 0===Me)&&be(X,this.length-8);const We=ge*2**24+65536*this[++X]+256*this[++X]+this[++X],Re=this[++X]*2**24+65536*this[++X]+256*this[++X]+Me;return(BigInt(We)<<BigInt(32))+BigInt(Re)}),y.prototype.readIntLE=function(X,ge,Me){X>>>=0,ge>>>=0,Me||W(X,ge,this.length);let We=this[X],Re=1,pt=0;for(;++pt<ge&&(Re*=256);)We+=this[X+pt]*Re;return Re*=128,We>=Re&&(We-=Math.pow(2,8*ge)),We},y.prototype.readIntBE=function(X,ge,Me){X>>>=0,ge>>>=0,Me||W(X,ge,this.length);let We=ge,Re=1,pt=this[X+--We];for(;We>0&&(Re*=256);)pt+=this[X+--We]*Re;return Re*=128,pt>=Re&&(pt-=Math.pow(2,8*ge)),pt},y.prototype.readInt8=function(X,ge){return X>>>=0,ge||W(X,1,this.length),128&this[X]?-1*(255-this[X]+1):this[X]},y.prototype.readInt16LE=function(X,ge){X>>>=0,ge||W(X,2,this.length);const Me=this[X]|this[X+1]<<8;return 32768&Me?4294901760|Me:Me},y.prototype.readInt16BE=function(X,ge){X>>>=0,ge||W(X,2,this.length);const Me=this[X+1]|this[X]<<8;return 32768&Me?4294901760|Me:Me},y.prototype.readInt32LE=function(X,ge){return X>>>=0,ge||W(X,4,this.length),this[X]|this[X+1]<<8|this[X+2]<<16|this[X+3]<<24},y.prototype.readInt32BE=function(X,ge){return X>>>=0,ge||W(X,4,this.length),this[X]<<24|this[X+1]<<16|this[X+2]<<8|this[X+3]},y.prototype.readBigInt64LE=nt(function(X){ne(X>>>=0,"offset");const ge=this[X],Me=this[X+7];return(void 0===ge||void 0===Me)&&be(X,this.length-8),(BigInt(this[X+4]+256*this[X+5]+65536*this[X+6]+(Me<<24))<<BigInt(32))+BigInt(ge+256*this[++X]+65536*this[++X]+this[++X]*2**24)}),y.prototype.readBigInt64BE=nt(function(X){ne(X>>>=0,"offset");const ge=this[X],Me=this[X+7];(void 0===ge||void 0===Me)&&be(X,this.length-8);const We=(ge<<24)+65536*this[++X]+256*this[++X]+this[++X];return(BigInt(We)<<BigInt(32))+BigInt(this[++X]*2**24+65536*this[++X]+256*this[++X]+Me)}),y.prototype.readFloatLE=function(X,ge){return X>>>=0,ge||W(X,4,this.length),e.read(this,X,!0,23,4)},y.prototype.readFloatBE=function(X,ge){return X>>>=0,ge||W(X,4,this.length),e.read(this,X,!1,23,4)},y.prototype.readDoubleLE=function(X,ge){return X>>>=0,ge||W(X,8,this.length),e.read(this,X,!0,52,8)},y.prototype.readDoubleBE=function(X,ge){return X>>>=0,ge||W(X,8,this.length),e.read(this,X,!1,52,8)},y.prototype.writeUintLE=y.prototype.writeUIntLE=function(X,ge,Me,We){X=+X,ge>>>=0,Me>>>=0,We||fe(this,X,ge,Me,Math.pow(2,8*Me)-1,0);let Re=1,pt=0;for(this[ge]=255&X;++pt<Me&&(Re*=256);)this[ge+pt]=X/Re&255;return ge+Me},y.prototype.writeUintBE=y.prototype.writeUIntBE=function(X,ge,Me,We){X=+X,ge>>>=0,Me>>>=0,We||fe(this,X,ge,Me,Math.pow(2,8*Me)-1,0);let Re=Me-1,pt=1;for(this[ge+Re]=255&X;--Re>=0&&(pt*=256);)this[ge+Re]=X/pt&255;return ge+Me},y.prototype.writeUint8=y.prototype.writeUInt8=function(X,ge,Me){return X=+X,ge>>>=0,Me||fe(this,X,ge,1,255,0),this[ge]=255&X,ge+1},y.prototype.writeUint16LE=y.prototype.writeUInt16LE=function(X,ge,Me){return X=+X,ge>>>=0,Me||fe(this,X,ge,2,65535,0),this[ge]=255&X,this[ge+1]=X>>>8,ge+2},y.prototype.writeUint16BE=y.prototype.writeUInt16BE=function(X,ge,Me){return X=+X,ge>>>=0,Me||fe(this,X,ge,2,65535,0),this[ge]=X>>>8,this[ge+1]=255&X,ge+2},y.prototype.writeUint32LE=y.prototype.writeUInt32LE=function(X,ge,Me){return X=+X,ge>>>=0,Me||fe(this,X,ge,4,4294967295,0),this[ge+3]=X>>>24,this[ge+2]=X>>>16,this[ge+1]=X>>>8,this[ge]=255&X,ge+4},y.prototype.writeUint32BE=y.prototype.writeUInt32BE=function(X,ge,Me){return X=+X,ge>>>=0,Me||fe(this,X,ge,4,4294967295,0),this[ge]=X>>>24,this[ge+1]=X>>>16,this[ge+2]=X>>>8,this[ge+3]=255&X,ge+4},y.prototype.writeBigUInt64LE=nt(function(X,ge=0){return ae(this,X,ge,BigInt(0),BigInt("0xffffffffffffffff"))}),y.prototype.writeBigUInt64BE=nt(function(X,ge=0){return ye(this,X,ge,BigInt(0),BigInt("0xffffffffffffffff"))}),y.prototype.writeIntLE=function(X,ge,Me,We){if(X=+X,ge>>>=0,!We){const cr=Math.pow(2,8*Me-1);fe(this,X,ge,Me,cr-1,-cr)}let Re=0,pt=1,Zt=0;for(this[ge]=255&X;++Re<Me&&(pt*=256);)X<0&&0===Zt&&0!==this[ge+Re-1]&&(Zt=1),this[ge+Re]=(X/pt>>0)-Zt&255;return ge+Me},y.prototype.writeIntBE=function(X,ge,Me,We){if(X=+X,ge>>>=0,!We){const cr=Math.pow(2,8*Me-1);fe(this,X,ge,Me,cr-1,-cr)}let Re=Me-1,pt=1,Zt=0;for(this[ge+Re]=255&X;--Re>=0&&(pt*=256);)X<0&&0===Zt&&0!==this[ge+Re+1]&&(Zt=1),this[ge+Re]=(X/pt>>0)-Zt&255;return ge+Me},y.prototype.writeInt8=function(X,ge,Me){return X=+X,ge>>>=0,Me||fe(this,X,ge,1,127,-128),X<0&&(X=255+X+1),this[ge]=255&X,ge+1},y.prototype.writeInt16LE=function(X,ge,Me){return X=+X,ge>>>=0,Me||fe(this,X,ge,2,32767,-32768),this[ge]=255&X,this[ge+1]=X>>>8,ge+2},y.prototype.writeInt16BE=function(X,ge,Me){return X=+X,ge>>>=0,Me||fe(this,X,ge,2,32767,-32768),this[ge]=X>>>8,this[ge+1]=255&X,ge+2},y.prototype.writeInt32LE=function(X,ge,Me){return X=+X,ge>>>=0,Me||fe(this,X,ge,4,2147483647,-2147483648),this[ge]=255&X,this[ge+1]=X>>>8,this[ge+2]=X>>>16,this[ge+3]=X>>>24,ge+4},y.prototype.writeInt32BE=function(X,ge,Me){return X=+X,ge>>>=0,Me||fe(this,X,ge,4,2147483647,-2147483648),X<0&&(X=4294967295+X+1),this[ge]=X>>>24,this[ge+1]=X>>>16,this[ge+2]=X>>>8,this[ge+3]=255&X,ge+4},y.prototype.writeBigInt64LE=nt(function(X,ge=0){return ae(this,X,ge,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),y.prototype.writeBigInt64BE=nt(function(X,ge=0){return ye(this,X,ge,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),y.prototype.writeFloatLE=function(X,ge,Me){return Ot(this,X,ge,!0,Me)},y.prototype.writeFloatBE=function(X,ge,Me){return Ot(this,X,ge,!1,Me)},y.prototype.writeDoubleLE=function(X,ge,Me){return At(this,X,ge,!0,Me)},y.prototype.writeDoubleBE=function(X,ge,Me){return At(this,X,ge,!1,Me)},y.prototype.copy=function(X,ge,Me,We){if(!y.isBuffer(X))throw new TypeError("argument should be a Buffer");if(Me||(Me=0),!We&&0!==We&&(We=this.length),ge>=X.length&&(ge=X.length),ge||(ge=0),We>0&&We<Me&&(We=Me),We===Me||0===X.length||0===this.length)return 0;if(ge<0)throw new RangeError("targetStart out of bounds");if(Me<0||Me>=this.length)throw new RangeError("Index out of range");if(We<0)throw new RangeError("sourceEnd out of bounds");We>this.length&&(We=this.length),X.length-ge<We-Me&&(We=X.length-ge+Me);const Re=We-Me;return this===X&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(ge,Me,We):Uint8Array.prototype.set.call(X,this.subarray(Me,We),ge),Re},y.prototype.fill=function(X,ge,Me,We){if("string"==typeof X){if("string"==typeof ge?(We=ge,ge=0,Me=this.length):"string"==typeof Me&&(We=Me,Me=this.length),void 0!==We&&"string"!=typeof We)throw new TypeError("encoding must be a string");if("string"==typeof We&&!y.isEncoding(We))throw new TypeError("Unknown encoding: "+We);if(1===X.length){const pt=X.charCodeAt(0);("utf8"===We&&pt<128||"latin1"===We)&&(X=pt)}}else"number"==typeof X?X&=255:"boolean"==typeof X&&(X=Number(X));if(ge<0||this.length<ge||this.length<Me)throw new RangeError("Out of range index");if(Me<=ge)return this;let Re;if(ge>>>=0,Me=void 0===Me?this.length:Me>>>0,X||(X=0),"number"==typeof X)for(Re=ge;Re<Me;++Re)this[Re]=X;else{const pt=y.isBuffer(X)?X:y.from(X,We),Zt=pt.length;if(0===Zt)throw new TypeError('The value "'+X+'" is invalid for argument "value"');for(Re=0;Re<Me-ge;++Re)this[Re+ge]=pt[Re%Zt]}return this};const Ze={};function at(Ne,X,ge){Ze[Ne]=class extends ge{constructor(){super(),Object.defineProperty(this,"message",{value:X.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${Ne}]`,delete this.name}get code(){return Ne}set code(We){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:We,writable:!0})}toString(){return`${this.name} [${Ne}]: ${this.message}`}}}function Be(Ne){let X="",ge=Ne.length;const Me="-"===Ne[0]?1:0;for(;ge>=Me+4;ge-=3)X=`_${Ne.slice(ge-3,ge)}${X}`;return`${Ne.slice(0,ge)}${X}`}function _e(Ne,X,ge,Me,We,Re){if(Ne>ge||Ne<X){const pt="bigint"==typeof X?"n":"";let Zt;throw Zt=Re>3?0===X||X===BigInt(0)?`>= 0${pt} and < 2${pt} ** ${8*(Re+1)}${pt}`:`>= -(2${pt} ** ${8*(Re+1)-1}${pt}) and < 2 ** ${8*(Re+1)-1}${pt}`:`>= ${X}${pt} and <= ${ge}${pt}`,new Ze.ERR_OUT_OF_RANGE("value",Zt,Ne)}!function Lt(Ne,X,ge){ne(X,"offset"),(void 0===Ne[X]||void 0===Ne[X+ge])&&be(X,Ne.length-(ge+1))}(Me,We,Re)}function ne(Ne,X){if("number"!=typeof Ne)throw new Ze.ERR_INVALID_ARG_TYPE(X,"number",Ne)}function be(Ne,X,ge){throw Math.floor(Ne)!==Ne?(ne(Ne,ge),new Ze.ERR_OUT_OF_RANGE(ge||"offset","an integer",Ne)):X<0?new Ze.ERR_BUFFER_OUT_OF_BOUNDS:new Ze.ERR_OUT_OF_RANGE(ge||"offset",`>= ${ge?1:0} and <= ${X}`,Ne)}at("ERR_BUFFER_OUT_OF_BOUNDS",function(Ne){return Ne?`${Ne} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),at("ERR_INVALID_ARG_TYPE",function(Ne,X){return`The "${Ne}" argument must be of type number. Received type ${typeof X}`},TypeError),at("ERR_OUT_OF_RANGE",function(Ne,X,ge){let Me=`The value of "${Ne}" is out of range.`,We=ge;return Number.isInteger(ge)&&Math.abs(ge)>2**32?We=Be(String(ge)):"bigint"==typeof ge&&(We=String(ge),(ge>BigInt(2)**BigInt(32)||ge<-(BigInt(2)**BigInt(32)))&&(We=Be(We)),We+="n"),Me+=` It must be ${X}. Received ${We}`,Me},RangeError);const Te=/[^+/0-9A-Za-z-_]/g;function ft(Ne,X){let ge;X=X||1/0;const Me=Ne.length;let We=null;const Re=[];for(let pt=0;pt<Me;++pt){if(ge=Ne.charCodeAt(pt),ge>55295&&ge<57344){if(!We){if(ge>56319){(X-=3)>-1&&Re.push(239,191,189);continue}if(pt+1===Me){(X-=3)>-1&&Re.push(239,191,189);continue}We=ge;continue}if(ge<56320){(X-=3)>-1&&Re.push(239,191,189),We=ge;continue}ge=65536+(We-55296<<10|ge-56320)}else We&&(X-=3)>-1&&Re.push(239,191,189);if(We=null,ge<128){if((X-=1)<0)break;Re.push(ge)}else if(ge<2048){if((X-=2)<0)break;Re.push(ge>>6|192,63&ge|128)}else if(ge<65536){if((X-=3)<0)break;Re.push(ge>>12|224,ge>>6&63|128,63&ge|128)}else{if(!(ge<1114112))throw new Error("Invalid code point");if((X-=4)<0)break;Re.push(ge>>18|240,ge>>12&63|128,ge>>6&63|128,63&ge|128)}}return Re}function br(Ne){return t.toByteArray(function $e(Ne){if((Ne=(Ne=Ne.split("=")[0]).trim().replace(Te,"")).length<2)return"";for(;Ne.length%4!=0;)Ne+="=";return Ne}(Ne))}function rt(Ne,X,ge,Me){let We;for(We=0;We<Me&&!(We+ge>=X.length||We>=Ne.length);++We)X[We+ge]=Ne[We];return We}function st(Ne,X){return Ne instanceof X||null!=Ne&&null!=Ne.constructor&&null!=Ne.constructor.name&&Ne.constructor.name===X.name}function Dt(Ne){return Ne!=Ne}const ot=function(){const Ne="0123456789abcdef",X=new Array(256);for(let ge=0;ge<16;++ge){const Me=16*ge;for(let We=0;We<16;++We)X[Me+We]=Ne[ge]+Ne[We]}return X}();function nt(Ne){return typeof BigInt>"u"?Yt:Ne}function Yt(){throw new Error("BigInt not supported")}},61052:(M,b,n)=>{var t=n(73502).Buffer,e=n(295).Transform,l=n(73054).s;function r(d){e.call(this),this.hashMode="string"==typeof d,this.hashMode?this[d]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}n(83894)(r,e),r.prototype.update=function(d,y,g){"string"==typeof d&&(d=t.from(d,y));var p=this._update(d);return this.hashMode?this:(g&&(p=this._toString(p,g)),p)},r.prototype.setAutoPadding=function(){},r.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},r.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},r.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},r.prototype._transform=function(d,y,g){var p;try{this.hashMode?this._update(d):this.push(this._update(d))}catch(f){p=f}finally{g(p)}},r.prototype._flush=function(d){var y;try{this.push(this.__final())}catch(g){y=g}d(y)},r.prototype._finalOrDigest=function(d){var y=this.__final()||t.alloc(0);return d&&(y=this._toString(y,d,!0)),y},r.prototype._toString=function(d,y,g){if(this._decoder||(this._decoder=new l(y),this._encoding=y),this._encoding!==y)throw new Error("can't switch encodings");var p=this._decoder.write(d);return g&&(p+=this._decoder.end()),p},M.exports=r},74746:(M,b,n)=>{var t=n(57715),e=n(46422);M.exports=function(y){return new h(y)};var l={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function h(d){this.curveType=l[d],this.curveType||(this.curveType={name:d}),this.curve=new t.ec(this.curveType.name),this.keys=void 0}function r(d,y,g){Array.isArray(d)||(d=d.toArray());var p=new Buffer(d);if(g&&p.length<g){var f=new Buffer(g-p.length);f.fill(0),p=Buffer.concat([f,p])}return y?p.toString(y):p}l.p224=l.secp224r1,l.p256=l.secp256r1=l.prime256v1,l.p192=l.secp192r1=l.prime192v1,l.p384=l.secp384r1,l.p521=l.secp521r1,h.prototype.generateKeys=function(d,y){return this.keys=this.curve.genKeyPair(),this.getPublicKey(d,y)},h.prototype.computeSecret=function(d,y,g){return y=y||"utf8",Buffer.isBuffer(d)||(d=new Buffer(d,y)),r(this.curve.keyFromPublic(d).getPublic().mul(this.keys.getPrivate()).getX(),g,this.curveType.byteLength)},h.prototype.getPublicKey=function(d,y){var g=this.keys.getPublic("compressed"===y,!0);return"hybrid"===y&&(g[0]=g[g.length-1]%2?7:6),r(g,d)},h.prototype.getPrivateKey=function(d){return r(this.keys.getPrivate(),d)},h.prototype.setPublicKey=function(d,y){return y=y||"utf8",Buffer.isBuffer(d)||(d=new Buffer(d,y)),this.keys._importPublic(d),this},h.prototype.setPrivateKey=function(d,y){y=y||"utf8",Buffer.isBuffer(d)||(d=new Buffer(d,y));var g=new e(d);return g=g.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(g),this}},46422:function(M,b,n){!function(t,e){"use strict";function l(B,s){if(!B)throw new Error(s||"Assertion failed")}function h(B,s){B.super_=s;var _=function(){};_.prototype=s.prototype,B.prototype=new _,B.prototype.constructor=B}function r(B,s,_){if(r.isBN(B))return B;this.negative=0,this.words=null,this.length=0,this.red=null,null!==B&&(("le"===s||"be"===s)&&(_=s,s=10),this._init(B||0,s||10,_||"be"))}var d;"object"==typeof t?t.exports=r:e.BN=r,r.BN=r,r.wordSize=26;try{d=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:n(8623).Buffer}catch{}function y(B,s){var _=B.charCodeAt(s);return _>=65&&_<=70?_-55:_>=97&&_<=102?_-87:_-48&15}function g(B,s,_){var w=y(B,_);return _-1>=s&&(w|=y(B,_-1)<<4),w}function p(B,s,_,w){for(var E=0,x=Math.min(B.length,_),j=s;j<x;j++){var $=B.charCodeAt(j)-48;E*=w,E+=$>=49?$-49+10:$>=17?$-17+10:$}return E}r.isBN=function(s){return s instanceof r||null!==s&&"object"==typeof s&&s.constructor.wordSize===r.wordSize&&Array.isArray(s.words)},r.max=function(s,_){return s.cmp(_)>0?s:_},r.min=function(s,_){return s.cmp(_)<0?s:_},r.prototype._init=function(s,_,w){if("number"==typeof s)return this._initNumber(s,_,w);if("object"==typeof s)return this._initArray(s,_,w);"hex"===_&&(_=16),l(_===(0|_)&&_>=2&&_<=36);var E=0;"-"===(s=s.toString().replace(/\s+/g,""))[0]&&(E++,this.negative=1),E<s.length&&(16===_?this._parseHex(s,E,w):(this._parseBase(s,_,E),"le"===w&&this._initArray(this.toArray(),_,w)))},r.prototype._initNumber=function(s,_,w){s<0&&(this.negative=1,s=-s),s<67108864?(this.words=[67108863&s],this.length=1):s<4503599627370496?(this.words=[67108863&s,s/67108864&67108863],this.length=2):(l(s<9007199254740992),this.words=[67108863&s,s/67108864&67108863,1],this.length=3),"le"===w&&this._initArray(this.toArray(),_,w)},r.prototype._initArray=function(s,_,w){if(l("number"==typeof s.length),s.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(s.length/3),this.words=new Array(this.length);for(var E=0;E<this.length;E++)this.words[E]=0;var x,j,$=0;if("be"===w)for(E=s.length-1,x=0;E>=0;E-=3)this.words[x]|=(j=s[E]|s[E-1]<<8|s[E-2]<<16)<<$&67108863,this.words[x+1]=j>>>26-$&67108863,($+=24)>=26&&($-=26,x++);else if("le"===w)for(E=0,x=0;E<s.length;E+=3)this.words[x]|=(j=s[E]|s[E+1]<<8|s[E+2]<<16)<<$&67108863,this.words[x+1]=j>>>26-$&67108863,($+=24)>=26&&($-=26,x++);return this.strip()},r.prototype._parseHex=function(s,_,w){this.length=Math.ceil((s.length-_)/6),this.words=new Array(this.length);for(var E=0;E<this.length;E++)this.words[E]=0;var $,x=0,j=0;if("be"===w)for(E=s.length-1;E>=_;E-=2)$=g(s,_,E)<<x,this.words[j]|=67108863&$,x>=18?(x-=18,this.words[j+=1]|=$>>>26):x+=8;else for(E=(s.length-_)%2==0?_+1:_;E<s.length;E+=2)$=g(s,_,E)<<x,this.words[j]|=67108863&$,x>=18?(x-=18,this.words[j+=1]|=$>>>26):x+=8;this.strip()},r.prototype._parseBase=function(s,_,w){this.words=[0],this.length=1;for(var E=0,x=1;x<=67108863;x*=_)E++;E--,x=x/_|0;for(var j=s.length-w,$=j%E,Y=Math.min(j,j-$)+w,u=0,W=w;W<Y;W+=E)u=p(s,W,W+E,_),this.imuln(x),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==$){var fe=1;for(u=p(s,W,s.length,_),W=0;W<$;W++)fe*=_;this.imuln(fe),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},r.prototype.copy=function(s){s.words=new Array(this.length);for(var _=0;_<this.length;_++)s.words[_]=this.words[_];s.length=this.length,s.negative=this.negative,s.red=this.red},r.prototype.clone=function(){var s=new r(null);return this.copy(s),s},r.prototype._expand=function(s){for(;this.length<s;)this.words[this.length++]=0;return this},r.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},r.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},r.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],C=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],N=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function O(B,s,_){_.negative=s.negative^B.negative;var w=B.length+s.length|0;_.length=w,w=w-1|0;var E=0|B.words[0],x=0|s.words[0],j=E*x,Y=j/67108864|0;_.words[0]=67108863&j;for(var u=1;u<w;u++){for(var W=Y>>>26,fe=67108863&Y,ae=Math.min(u,s.length-1),ye=Math.max(0,u-B.length+1);ye<=ae;ye++)W+=(j=(E=0|B.words[u-ye|0])*(x=0|s.words[ye])+fe)/67108864|0,fe=67108863&j;_.words[u]=0|fe,Y=0|W}return 0!==Y?_.words[u]=0|Y:_.length--,_.strip()}r.prototype.toString=function(s,_){var w;if(_=0|_||1,16===(s=s||10)||"hex"===s){w="";for(var E=0,x=0,j=0;j<this.length;j++){var $=this.words[j],Y=(16777215&($<<E|x)).toString(16);w=0!=(x=$>>>24-E&16777215)||j!==this.length-1?f[6-Y.length]+Y+w:Y+w,(E+=2)>=26&&(E-=26,j--)}for(0!==x&&(w=x.toString(16)+w);w.length%_!=0;)w="0"+w;return 0!==this.negative&&(w="-"+w),w}if(s===(0|s)&&s>=2&&s<=36){var u=C[s],W=N[s];w="";var fe=this.clone();for(fe.negative=0;!fe.isZero();){var ae=fe.modn(W).toString(s);w=(fe=fe.idivn(W)).isZero()?ae+w:f[u-ae.length]+ae+w}for(this.isZero()&&(w="0"+w);w.length%_!=0;)w="0"+w;return 0!==this.negative&&(w="-"+w),w}l(!1,"Base should be between 2 and 36")},r.prototype.toNumber=function(){var s=this.words[0];return 2===this.length?s+=67108864*this.words[1]:3===this.length&&1===this.words[2]?s+=4503599627370496+67108864*this.words[1]:this.length>2&&l(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-s:s},r.prototype.toJSON=function(){return this.toString(16)},r.prototype.toBuffer=function(s,_){return l(typeof d<"u"),this.toArrayLike(d,s,_)},r.prototype.toArray=function(s,_){return this.toArrayLike(Array,s,_)},r.prototype.toArrayLike=function(s,_,w){var E=this.byteLength(),x=w||Math.max(1,E);l(E<=x,"byte array longer than desired length"),l(x>0,"Requested array length <= 0"),this.strip();var Y,u,j="le"===_,$=new s(x),W=this.clone();if(j){for(u=0;!W.isZero();u++)Y=W.andln(255),W.iushrn(8),$[u]=Y;for(;u<x;u++)$[u]=0}else{for(u=0;u<x-E;u++)$[u]=0;for(u=0;!W.isZero();u++)Y=W.andln(255),W.iushrn(8),$[x-u-1]=Y}return $},r.prototype._countBits=Math.clz32?function(s){return 32-Math.clz32(s)}:function(s){var _=s,w=0;return _>=4096&&(w+=13,_>>>=13),_>=64&&(w+=7,_>>>=7),_>=8&&(w+=4,_>>>=4),_>=2&&(w+=2,_>>>=2),w+_},r.prototype._zeroBits=function(s){if(0===s)return 26;var _=s,w=0;return 0==(8191&_)&&(w+=13,_>>>=13),0==(127&_)&&(w+=7,_>>>=7),0==(15&_)&&(w+=4,_>>>=4),0==(3&_)&&(w+=2,_>>>=2),0==(1&_)&&w++,w},r.prototype.bitLength=function(){var _=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+_},r.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s=0,_=0;_<this.length;_++){var w=this._zeroBits(this.words[_]);if(s+=w,26!==w)break}return s},r.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},r.prototype.toTwos=function(s){return 0!==this.negative?this.abs().inotn(s).iaddn(1):this.clone()},r.prototype.fromTwos=function(s){return this.testn(s-1)?this.notn(s).iaddn(1).ineg():this.clone()},r.prototype.isNeg=function(){return 0!==this.negative},r.prototype.neg=function(){return this.clone().ineg()},r.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},r.prototype.iuor=function(s){for(;this.length<s.length;)this.words[this.length++]=0;for(var _=0;_<s.length;_++)this.words[_]=this.words[_]|s.words[_];return this.strip()},r.prototype.ior=function(s){return l(0==(this.negative|s.negative)),this.iuor(s)},r.prototype.or=function(s){return this.length>s.length?this.clone().ior(s):s.clone().ior(this)},r.prototype.uor=function(s){return this.length>s.length?this.clone().iuor(s):s.clone().iuor(this)},r.prototype.iuand=function(s){var _;_=this.length>s.length?s:this;for(var w=0;w<_.length;w++)this.words[w]=this.words[w]&s.words[w];return this.length=_.length,this.strip()},r.prototype.iand=function(s){return l(0==(this.negative|s.negative)),this.iuand(s)},r.prototype.and=function(s){return this.length>s.length?this.clone().iand(s):s.clone().iand(this)},r.prototype.uand=function(s){return this.length>s.length?this.clone().iuand(s):s.clone().iuand(this)},r.prototype.iuxor=function(s){var _,w;this.length>s.length?(_=this,w=s):(_=s,w=this);for(var E=0;E<w.length;E++)this.words[E]=_.words[E]^w.words[E];if(this!==_)for(;E<_.length;E++)this.words[E]=_.words[E];return this.length=_.length,this.strip()},r.prototype.ixor=function(s){return l(0==(this.negative|s.negative)),this.iuxor(s)},r.prototype.xor=function(s){return this.length>s.length?this.clone().ixor(s):s.clone().ixor(this)},r.prototype.uxor=function(s){return this.length>s.length?this.clone().iuxor(s):s.clone().iuxor(this)},r.prototype.inotn=function(s){l("number"==typeof s&&s>=0);var _=0|Math.ceil(s/26),w=s%26;this._expand(_),w>0&&_--;for(var E=0;E<_;E++)this.words[E]=67108863&~this.words[E];return w>0&&(this.words[E]=~this.words[E]&67108863>>26-w),this.strip()},r.prototype.notn=function(s){return this.clone().inotn(s)},r.prototype.setn=function(s,_){l("number"==typeof s&&s>=0);var w=s/26|0,E=s%26;return this._expand(w+1),this.words[w]=_?this.words[w]|1<<E:this.words[w]&~(1<<E),this.strip()},r.prototype.iadd=function(s){var _,w,E;if(0!==this.negative&&0===s.negative)return this.negative=0,_=this.isub(s),this.negative^=1,this._normSign();if(0===this.negative&&0!==s.negative)return s.negative=0,_=this.isub(s),s.negative=1,_._normSign();this.length>s.length?(w=this,E=s):(w=s,E=this);for(var x=0,j=0;j<E.length;j++)this.words[j]=67108863&(_=(0|w.words[j])+(0|E.words[j])+x),x=_>>>26;for(;0!==x&&j<w.length;j++)this.words[j]=67108863&(_=(0|w.words[j])+x),x=_>>>26;if(this.length=w.length,0!==x)this.words[this.length]=x,this.length++;else if(w!==this)for(;j<w.length;j++)this.words[j]=w.words[j];return this},r.prototype.add=function(s){var _;return 0!==s.negative&&0===this.negative?(s.negative=0,_=this.sub(s),s.negative^=1,_):0===s.negative&&0!==this.negative?(this.negative=0,_=s.sub(this),this.negative=1,_):this.length>s.length?this.clone().iadd(s):s.clone().iadd(this)},r.prototype.isub=function(s){if(0!==s.negative){s.negative=0;var _=this.iadd(s);return s.negative=1,_._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(s),this.negative=1,this._normSign();var E,x,w=this.cmp(s);if(0===w)return this.negative=0,this.length=1,this.words[0]=0,this;w>0?(E=this,x=s):(E=s,x=this);for(var j=0,$=0;$<x.length;$++)j=(_=(0|E.words[$])-(0|x.words[$])+j)>>26,this.words[$]=67108863&_;for(;0!==j&&$<E.length;$++)j=(_=(0|E.words[$])+j)>>26,this.words[$]=67108863&_;if(0===j&&$<E.length&&E!==this)for(;$<E.length;$++)this.words[$]=E.words[$];return this.length=Math.max(this.length,$),E!==this&&(this.negative=1),this.strip()},r.prototype.sub=function(s){return this.clone().isub(s)};var H=function(s,_,w){var Y,u,W,E=s.words,x=_.words,j=w.words,$=0,fe=0|E[0],ae=8191&fe,ye=fe>>>13,Qe=0|E[1],Ot=8191&Qe,At=Qe>>>13,Ze=0|E[2],at=8191&Ze,Be=Ze>>>13,Lt=0|E[3],_e=8191&Lt,ne=Lt>>>13,be=0|E[4],Te=8191&be,$e=be>>>13,ft=0|E[5],Ge=8191&ft,Ft=ft>>>13,br=0|E[6],rt=8191&br,st=br>>>13,Dt=0|E[7],ot=8191&Dt,nt=Dt>>>13,Yt=0|E[8],Ne=8191&Yt,X=Yt>>>13,ge=0|E[9],Me=8191&ge,We=ge>>>13,Re=0|x[0],pt=8191&Re,Zt=Re>>>13,cr=0|x[1],wt=8191&cr,gt=cr>>>13,Ut=0|x[2],hr=8191&Ut,Cr=Ut>>>13,Ue=0|x[3],Pt=8191&Ue,He=Ue>>>13,tt=0|x[4],Ke=8191&tt,kt=tt>>>13,xe=0|x[5],Fe=8191&xe,lt=xe>>>13,St=0|x[6],qe=8191&St,ke=St>>>13,ct=0|x[7],vt=8191&ct,$t=ct>>>13,Vr=0|x[8],Sr=8191&Vr,Ar=Vr>>>13,Jr=0|x[9],Fr=8191&Jr,Gt=Jr>>>13;w.negative=s.negative^_.negative,w.length=19;var le=($+(Y=Math.imul(ae,pt))|0)+((8191&(u=(u=Math.imul(ae,Zt))+Math.imul(ye,pt)|0))<<13)|0;$=((W=Math.imul(ye,Zt))+(u>>>13)|0)+(le>>>26)|0,le&=67108863,Y=Math.imul(Ot,pt),u=(u=Math.imul(Ot,Zt))+Math.imul(At,pt)|0,W=Math.imul(At,Zt);var Ce=($+(Y=Y+Math.imul(ae,wt)|0)|0)+((8191&(u=(u=u+Math.imul(ae,gt)|0)+Math.imul(ye,wt)|0))<<13)|0;$=((W=W+Math.imul(ye,gt)|0)+(u>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,Y=Math.imul(at,pt),u=(u=Math.imul(at,Zt))+Math.imul(Be,pt)|0,W=Math.imul(Be,Zt),Y=Y+Math.imul(Ot,wt)|0,u=(u=u+Math.imul(Ot,gt)|0)+Math.imul(At,wt)|0,W=W+Math.imul(At,gt)|0;var Ie=($+(Y=Y+Math.imul(ae,hr)|0)|0)+((8191&(u=(u=u+Math.imul(ae,Cr)|0)+Math.imul(ye,hr)|0))<<13)|0;$=((W=W+Math.imul(ye,Cr)|0)+(u>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,Y=Math.imul(_e,pt),u=(u=Math.imul(_e,Zt))+Math.imul(ne,pt)|0,W=Math.imul(ne,Zt),Y=Y+Math.imul(at,wt)|0,u=(u=u+Math.imul(at,gt)|0)+Math.imul(Be,wt)|0,W=W+Math.imul(Be,gt)|0,Y=Y+Math.imul(Ot,hr)|0,u=(u=u+Math.imul(Ot,Cr)|0)+Math.imul(At,hr)|0,W=W+Math.imul(At,Cr)|0;var Pe=($+(Y=Y+Math.imul(ae,Pt)|0)|0)+((8191&(u=(u=u+Math.imul(ae,He)|0)+Math.imul(ye,Pt)|0))<<13)|0;$=((W=W+Math.imul(ye,He)|0)+(u>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,Y=Math.imul(Te,pt),u=(u=Math.imul(Te,Zt))+Math.imul($e,pt)|0,W=Math.imul($e,Zt),Y=Y+Math.imul(_e,wt)|0,u=(u=u+Math.imul(_e,gt)|0)+Math.imul(ne,wt)|0,W=W+Math.imul(ne,gt)|0,Y=Y+Math.imul(at,hr)|0,u=(u=u+Math.imul(at,Cr)|0)+Math.imul(Be,hr)|0,W=W+Math.imul(Be,Cr)|0,Y=Y+Math.imul(Ot,Pt)|0,u=(u=u+Math.imul(Ot,He)|0)+Math.imul(At,Pt)|0,W=W+Math.imul(At,He)|0;var Oe=($+(Y=Y+Math.imul(ae,Ke)|0)|0)+((8191&(u=(u=u+Math.imul(ae,kt)|0)+Math.imul(ye,Ke)|0))<<13)|0;$=((W=W+Math.imul(ye,kt)|0)+(u>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,Y=Math.imul(Ge,pt),u=(u=Math.imul(Ge,Zt))+Math.imul(Ft,pt)|0,W=Math.imul(Ft,Zt),Y=Y+Math.imul(Te,wt)|0,u=(u=u+Math.imul(Te,gt)|0)+Math.imul($e,wt)|0,W=W+Math.imul($e,gt)|0,Y=Y+Math.imul(_e,hr)|0,u=(u=u+Math.imul(_e,Cr)|0)+Math.imul(ne,hr)|0,W=W+Math.imul(ne,Cr)|0,Y=Y+Math.imul(at,Pt)|0,u=(u=u+Math.imul(at,He)|0)+Math.imul(Be,Pt)|0,W=W+Math.imul(Be,He)|0,Y=Y+Math.imul(Ot,Ke)|0,u=(u=u+Math.imul(Ot,kt)|0)+Math.imul(At,Ke)|0,W=W+Math.imul(At,kt)|0;var Se=($+(Y=Y+Math.imul(ae,Fe)|0)|0)+((8191&(u=(u=u+Math.imul(ae,lt)|0)+Math.imul(ye,Fe)|0))<<13)|0;$=((W=W+Math.imul(ye,lt)|0)+(u>>>13)|0)+(Se>>>26)|0,Se&=67108863,Y=Math.imul(rt,pt),u=(u=Math.imul(rt,Zt))+Math.imul(st,pt)|0,W=Math.imul(st,Zt),Y=Y+Math.imul(Ge,wt)|0,u=(u=u+Math.imul(Ge,gt)|0)+Math.imul(Ft,wt)|0,W=W+Math.imul(Ft,gt)|0,Y=Y+Math.imul(Te,hr)|0,u=(u=u+Math.imul(Te,Cr)|0)+Math.imul($e,hr)|0,W=W+Math.imul($e,Cr)|0,Y=Y+Math.imul(_e,Pt)|0,u=(u=u+Math.imul(_e,He)|0)+Math.imul(ne,Pt)|0,W=W+Math.imul(ne,He)|0,Y=Y+Math.imul(at,Ke)|0,u=(u=u+Math.imul(at,kt)|0)+Math.imul(Be,Ke)|0,W=W+Math.imul(Be,kt)|0,Y=Y+Math.imul(Ot,Fe)|0,u=(u=u+Math.imul(Ot,lt)|0)+Math.imul(At,Fe)|0,W=W+Math.imul(At,lt)|0;var Xe=($+(Y=Y+Math.imul(ae,qe)|0)|0)+((8191&(u=(u=u+Math.imul(ae,ke)|0)+Math.imul(ye,qe)|0))<<13)|0;$=((W=W+Math.imul(ye,ke)|0)+(u>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,Y=Math.imul(ot,pt),u=(u=Math.imul(ot,Zt))+Math.imul(nt,pt)|0,W=Math.imul(nt,Zt),Y=Y+Math.imul(rt,wt)|0,u=(u=u+Math.imul(rt,gt)|0)+Math.imul(st,wt)|0,W=W+Math.imul(st,gt)|0,Y=Y+Math.imul(Ge,hr)|0,u=(u=u+Math.imul(Ge,Cr)|0)+Math.imul(Ft,hr)|0,W=W+Math.imul(Ft,Cr)|0,Y=Y+Math.imul(Te,Pt)|0,u=(u=u+Math.imul(Te,He)|0)+Math.imul($e,Pt)|0,W=W+Math.imul($e,He)|0,Y=Y+Math.imul(_e,Ke)|0,u=(u=u+Math.imul(_e,kt)|0)+Math.imul(ne,Ke)|0,W=W+Math.imul(ne,kt)|0,Y=Y+Math.imul(at,Fe)|0,u=(u=u+Math.imul(at,lt)|0)+Math.imul(Be,Fe)|0,W=W+Math.imul(Be,lt)|0,Y=Y+Math.imul(Ot,qe)|0,u=(u=u+Math.imul(Ot,ke)|0)+Math.imul(At,qe)|0,W=W+Math.imul(At,ke)|0;var Ct=($+(Y=Y+Math.imul(ae,vt)|0)|0)+((8191&(u=(u=u+Math.imul(ae,$t)|0)+Math.imul(ye,vt)|0))<<13)|0;$=((W=W+Math.imul(ye,$t)|0)+(u>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,Y=Math.imul(Ne,pt),u=(u=Math.imul(Ne,Zt))+Math.imul(X,pt)|0,W=Math.imul(X,Zt),Y=Y+Math.imul(ot,wt)|0,u=(u=u+Math.imul(ot,gt)|0)+Math.imul(nt,wt)|0,W=W+Math.imul(nt,gt)|0,Y=Y+Math.imul(rt,hr)|0,u=(u=u+Math.imul(rt,Cr)|0)+Math.imul(st,hr)|0,W=W+Math.imul(st,Cr)|0,Y=Y+Math.imul(Ge,Pt)|0,u=(u=u+Math.imul(Ge,He)|0)+Math.imul(Ft,Pt)|0,W=W+Math.imul(Ft,He)|0,Y=Y+Math.imul(Te,Ke)|0,u=(u=u+Math.imul(Te,kt)|0)+Math.imul($e,Ke)|0,W=W+Math.imul($e,kt)|0,Y=Y+Math.imul(_e,Fe)|0,u=(u=u+Math.imul(_e,lt)|0)+Math.imul(ne,Fe)|0,W=W+Math.imul(ne,lt)|0,Y=Y+Math.imul(at,qe)|0,u=(u=u+Math.imul(at,ke)|0)+Math.imul(Be,qe)|0,W=W+Math.imul(Be,ke)|0,Y=Y+Math.imul(Ot,vt)|0,u=(u=u+Math.imul(Ot,$t)|0)+Math.imul(At,vt)|0,W=W+Math.imul(At,$t)|0;var zt=($+(Y=Y+Math.imul(ae,Sr)|0)|0)+((8191&(u=(u=u+Math.imul(ae,Ar)|0)+Math.imul(ye,Sr)|0))<<13)|0;$=((W=W+Math.imul(ye,Ar)|0)+(u>>>13)|0)+(zt>>>26)|0,zt&=67108863,Y=Math.imul(Me,pt),u=(u=Math.imul(Me,Zt))+Math.imul(We,pt)|0,W=Math.imul(We,Zt),Y=Y+Math.imul(Ne,wt)|0,u=(u=u+Math.imul(Ne,gt)|0)+Math.imul(X,wt)|0,W=W+Math.imul(X,gt)|0,Y=Y+Math.imul(ot,hr)|0,u=(u=u+Math.imul(ot,Cr)|0)+Math.imul(nt,hr)|0,W=W+Math.imul(nt,Cr)|0,Y=Y+Math.imul(rt,Pt)|0,u=(u=u+Math.imul(rt,He)|0)+Math.imul(st,Pt)|0,W=W+Math.imul(st,He)|0,Y=Y+Math.imul(Ge,Ke)|0,u=(u=u+Math.imul(Ge,kt)|0)+Math.imul(Ft,Ke)|0,W=W+Math.imul(Ft,kt)|0,Y=Y+Math.imul(Te,Fe)|0,u=(u=u+Math.imul(Te,lt)|0)+Math.imul($e,Fe)|0,W=W+Math.imul($e,lt)|0,Y=Y+Math.imul(_e,qe)|0,u=(u=u+Math.imul(_e,ke)|0)+Math.imul(ne,qe)|0,W=W+Math.imul(ne,ke)|0,Y=Y+Math.imul(at,vt)|0,u=(u=u+Math.imul(at,$t)|0)+Math.imul(Be,vt)|0,W=W+Math.imul(Be,$t)|0,Y=Y+Math.imul(Ot,Sr)|0,u=(u=u+Math.imul(Ot,Ar)|0)+Math.imul(At,Sr)|0,W=W+Math.imul(At,Ar)|0;var kr=($+(Y=Y+Math.imul(ae,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(ae,Gt)|0)+Math.imul(ye,Fr)|0))<<13)|0;$=((W=W+Math.imul(ye,Gt)|0)+(u>>>13)|0)+(kr>>>26)|0,kr&=67108863,Y=Math.imul(Me,wt),u=(u=Math.imul(Me,gt))+Math.imul(We,wt)|0,W=Math.imul(We,gt),Y=Y+Math.imul(Ne,hr)|0,u=(u=u+Math.imul(Ne,Cr)|0)+Math.imul(X,hr)|0,W=W+Math.imul(X,Cr)|0,Y=Y+Math.imul(ot,Pt)|0,u=(u=u+Math.imul(ot,He)|0)+Math.imul(nt,Pt)|0,W=W+Math.imul(nt,He)|0,Y=Y+Math.imul(rt,Ke)|0,u=(u=u+Math.imul(rt,kt)|0)+Math.imul(st,Ke)|0,W=W+Math.imul(st,kt)|0,Y=Y+Math.imul(Ge,Fe)|0,u=(u=u+Math.imul(Ge,lt)|0)+Math.imul(Ft,Fe)|0,W=W+Math.imul(Ft,lt)|0,Y=Y+Math.imul(Te,qe)|0,u=(u=u+Math.imul(Te,ke)|0)+Math.imul($e,qe)|0,W=W+Math.imul($e,ke)|0,Y=Y+Math.imul(_e,vt)|0,u=(u=u+Math.imul(_e,$t)|0)+Math.imul(ne,vt)|0,W=W+Math.imul(ne,$t)|0,Y=Y+Math.imul(at,Sr)|0,u=(u=u+Math.imul(at,Ar)|0)+Math.imul(Be,Sr)|0,W=W+Math.imul(Be,Ar)|0;var Br=($+(Y=Y+Math.imul(Ot,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(Ot,Gt)|0)+Math.imul(At,Fr)|0))<<13)|0;$=((W=W+Math.imul(At,Gt)|0)+(u>>>13)|0)+(Br>>>26)|0,Br&=67108863,Y=Math.imul(Me,hr),u=(u=Math.imul(Me,Cr))+Math.imul(We,hr)|0,W=Math.imul(We,Cr),Y=Y+Math.imul(Ne,Pt)|0,u=(u=u+Math.imul(Ne,He)|0)+Math.imul(X,Pt)|0,W=W+Math.imul(X,He)|0,Y=Y+Math.imul(ot,Ke)|0,u=(u=u+Math.imul(ot,kt)|0)+Math.imul(nt,Ke)|0,W=W+Math.imul(nt,kt)|0,Y=Y+Math.imul(rt,Fe)|0,u=(u=u+Math.imul(rt,lt)|0)+Math.imul(st,Fe)|0,W=W+Math.imul(st,lt)|0,Y=Y+Math.imul(Ge,qe)|0,u=(u=u+Math.imul(Ge,ke)|0)+Math.imul(Ft,qe)|0,W=W+Math.imul(Ft,ke)|0,Y=Y+Math.imul(Te,vt)|0,u=(u=u+Math.imul(Te,$t)|0)+Math.imul($e,vt)|0,W=W+Math.imul($e,$t)|0,Y=Y+Math.imul(_e,Sr)|0,u=(u=u+Math.imul(_e,Ar)|0)+Math.imul(ne,Sr)|0,W=W+Math.imul(ne,Ar)|0;var xt=($+(Y=Y+Math.imul(at,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(at,Gt)|0)+Math.imul(Be,Fr)|0))<<13)|0;$=((W=W+Math.imul(Be,Gt)|0)+(u>>>13)|0)+(xt>>>26)|0,xt&=67108863,Y=Math.imul(Me,Pt),u=(u=Math.imul(Me,He))+Math.imul(We,Pt)|0,W=Math.imul(We,He),Y=Y+Math.imul(Ne,Ke)|0,u=(u=u+Math.imul(Ne,kt)|0)+Math.imul(X,Ke)|0,W=W+Math.imul(X,kt)|0,Y=Y+Math.imul(ot,Fe)|0,u=(u=u+Math.imul(ot,lt)|0)+Math.imul(nt,Fe)|0,W=W+Math.imul(nt,lt)|0,Y=Y+Math.imul(rt,qe)|0,u=(u=u+Math.imul(rt,ke)|0)+Math.imul(st,qe)|0,W=W+Math.imul(st,ke)|0,Y=Y+Math.imul(Ge,vt)|0,u=(u=u+Math.imul(Ge,$t)|0)+Math.imul(Ft,vt)|0,W=W+Math.imul(Ft,$t)|0,Y=Y+Math.imul(Te,Sr)|0,u=(u=u+Math.imul(Te,Ar)|0)+Math.imul($e,Sr)|0,W=W+Math.imul($e,Ar)|0;var tr=($+(Y=Y+Math.imul(_e,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(_e,Gt)|0)+Math.imul(ne,Fr)|0))<<13)|0;$=((W=W+Math.imul(ne,Gt)|0)+(u>>>13)|0)+(tr>>>26)|0,tr&=67108863,Y=Math.imul(Me,Ke),u=(u=Math.imul(Me,kt))+Math.imul(We,Ke)|0,W=Math.imul(We,kt),Y=Y+Math.imul(Ne,Fe)|0,u=(u=u+Math.imul(Ne,lt)|0)+Math.imul(X,Fe)|0,W=W+Math.imul(X,lt)|0,Y=Y+Math.imul(ot,qe)|0,u=(u=u+Math.imul(ot,ke)|0)+Math.imul(nt,qe)|0,W=W+Math.imul(nt,ke)|0,Y=Y+Math.imul(rt,vt)|0,u=(u=u+Math.imul(rt,$t)|0)+Math.imul(st,vt)|0,W=W+Math.imul(st,$t)|0,Y=Y+Math.imul(Ge,Sr)|0,u=(u=u+Math.imul(Ge,Ar)|0)+Math.imul(Ft,Sr)|0,W=W+Math.imul(Ft,Ar)|0;var Rr=($+(Y=Y+Math.imul(Te,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(Te,Gt)|0)+Math.imul($e,Fr)|0))<<13)|0;$=((W=W+Math.imul($e,Gt)|0)+(u>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,Y=Math.imul(Me,Fe),u=(u=Math.imul(Me,lt))+Math.imul(We,Fe)|0,W=Math.imul(We,lt),Y=Y+Math.imul(Ne,qe)|0,u=(u=u+Math.imul(Ne,ke)|0)+Math.imul(X,qe)|0,W=W+Math.imul(X,ke)|0,Y=Y+Math.imul(ot,vt)|0,u=(u=u+Math.imul(ot,$t)|0)+Math.imul(nt,vt)|0,W=W+Math.imul(nt,$t)|0,Y=Y+Math.imul(rt,Sr)|0,u=(u=u+Math.imul(rt,Ar)|0)+Math.imul(st,Sr)|0,W=W+Math.imul(st,Ar)|0;var Ur=($+(Y=Y+Math.imul(Ge,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(Ge,Gt)|0)+Math.imul(Ft,Fr)|0))<<13)|0;$=((W=W+Math.imul(Ft,Gt)|0)+(u>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,Y=Math.imul(Me,qe),u=(u=Math.imul(Me,ke))+Math.imul(We,qe)|0,W=Math.imul(We,ke),Y=Y+Math.imul(Ne,vt)|0,u=(u=u+Math.imul(Ne,$t)|0)+Math.imul(X,vt)|0,W=W+Math.imul(X,$t)|0,Y=Y+Math.imul(ot,Sr)|0,u=(u=u+Math.imul(ot,Ar)|0)+Math.imul(nt,Sr)|0,W=W+Math.imul(nt,Ar)|0;var Nr=($+(Y=Y+Math.imul(rt,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(rt,Gt)|0)+Math.imul(st,Fr)|0))<<13)|0;$=((W=W+Math.imul(st,Gt)|0)+(u>>>13)|0)+(Nr>>>26)|0,Nr&=67108863,Y=Math.imul(Me,vt),u=(u=Math.imul(Me,$t))+Math.imul(We,vt)|0,W=Math.imul(We,$t),Y=Y+Math.imul(Ne,Sr)|0,u=(u=u+Math.imul(Ne,Ar)|0)+Math.imul(X,Sr)|0,W=W+Math.imul(X,Ar)|0;var zr=($+(Y=Y+Math.imul(ot,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(ot,Gt)|0)+Math.imul(nt,Fr)|0))<<13)|0;$=((W=W+Math.imul(nt,Gt)|0)+(u>>>13)|0)+(zr>>>26)|0,zr&=67108863,Y=Math.imul(Me,Sr),u=(u=Math.imul(Me,Ar))+Math.imul(We,Sr)|0,W=Math.imul(We,Ar);var hn=($+(Y=Y+Math.imul(Ne,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(Ne,Gt)|0)+Math.imul(X,Fr)|0))<<13)|0;$=((W=W+Math.imul(X,Gt)|0)+(u>>>13)|0)+(hn>>>26)|0,hn&=67108863;var _n=($+(Y=Math.imul(Me,Fr))|0)+((8191&(u=(u=Math.imul(Me,Gt))+Math.imul(We,Fr)|0))<<13)|0;return $=((W=Math.imul(We,Gt))+(u>>>13)|0)+(_n>>>26)|0,_n&=67108863,j[0]=le,j[1]=Ce,j[2]=Ie,j[3]=Pe,j[4]=Oe,j[5]=Se,j[6]=Xe,j[7]=Ct,j[8]=zt,j[9]=kr,j[10]=Br,j[11]=xt,j[12]=tr,j[13]=Rr,j[14]=Ur,j[15]=Nr,j[16]=zr,j[17]=hn,j[18]=_n,0!==$&&(j[19]=$,w.length++),w};function V(B,s,_){return(new D).mulp(B,s,_)}function D(B,s){this.x=B,this.y=s}Math.imul||(H=O),r.prototype.mulTo=function(s,_){var w,E=this.length+s.length;return w=10===this.length&&10===s.length?H(this,s,_):E<63?O(this,s,_):E<1024?function F(B,s,_){_.negative=s.negative^B.negative,_.length=B.length+s.length;for(var w=0,E=0,x=0;x<_.length-1;x++){var j=E;E=0;for(var $=67108863&w,Y=Math.min(x,s.length-1),u=Math.max(0,x-B.length+1);u<=Y;u++){var ye=(0|B.words[x-u])*(0|s.words[u]),Qe=67108863&ye;$=67108863&(Qe=Qe+$|0),E+=(j=(j=j+(ye/67108864|0)|0)+(Qe>>>26)|0)>>>26,j&=67108863}_.words[x]=$,w=j,j=E}return 0!==w?_.words[x]=w:_.length--,_.strip()}(this,s,_):V(this,s,_),w},D.prototype.makeRBT=function(s){for(var _=new Array(s),w=r.prototype._countBits(s)-1,E=0;E<s;E++)_[E]=this.revBin(E,w,s);return _},D.prototype.revBin=function(s,_,w){if(0===s||s===w-1)return s;for(var E=0,x=0;x<_;x++)E|=(1&s)<<_-x-1,s>>=1;return E},D.prototype.permute=function(s,_,w,E,x,j){for(var $=0;$<j;$++)E[$]=_[s[$]],x[$]=w[s[$]]},D.prototype.transform=function(s,_,w,E,x,j){this.permute(j,s,_,w,E,x);for(var $=1;$<x;$<<=1)for(var Y=$<<1,u=Math.cos(2*Math.PI/Y),W=Math.sin(2*Math.PI/Y),fe=0;fe<x;fe+=Y)for(var ae=u,ye=W,Qe=0;Qe<$;Qe++){var Ot=w[fe+Qe],At=E[fe+Qe],Ze=w[fe+Qe+$],at=E[fe+Qe+$],Be=ae*Ze-ye*at;at=ae*at+ye*Ze,w[fe+Qe]=Ot+(Ze=Be),E[fe+Qe]=At+at,w[fe+Qe+$]=Ot-Ze,E[fe+Qe+$]=At-at,Qe!==Y&&(Be=u*ae-W*ye,ye=u*ye+W*ae,ae=Be)}},D.prototype.guessLen13b=function(s,_){var w=1|Math.max(_,s),E=1&w,x=0;for(w=w/2|0;w;w>>>=1)x++;return 1<<x+1+E},D.prototype.conjugate=function(s,_,w){if(!(w<=1))for(var E=0;E<w/2;E++){var x=s[E];s[E]=s[w-E-1],s[w-E-1]=x,x=_[E],_[E]=-_[w-E-1],_[w-E-1]=-x}},D.prototype.normalize13b=function(s,_){for(var w=0,E=0;E<_/2;E++){var x=8192*Math.round(s[2*E+1]/_)+Math.round(s[2*E]/_)+w;s[E]=67108863&x,w=x<67108864?0:x/67108864|0}return s},D.prototype.convert13b=function(s,_,w,E){for(var x=0,j=0;j<_;j++)w[2*j]=8191&(x+=0|s[j]),w[2*j+1]=8191&(x>>>=13),x>>>=13;for(j=2*_;j<E;++j)w[j]=0;l(0===x),l(0==(-8192&x))},D.prototype.stub=function(s){for(var _=new Array(s),w=0;w<s;w++)_[w]=0;return _},D.prototype.mulp=function(s,_,w){var E=2*this.guessLen13b(s.length,_.length),x=this.makeRBT(E),j=this.stub(E),$=new Array(E),Y=new Array(E),u=new Array(E),W=new Array(E),fe=new Array(E),ae=new Array(E),ye=w.words;ye.length=E,this.convert13b(s.words,s.length,$,E),this.convert13b(_.words,_.length,W,E),this.transform($,j,Y,u,E,x),this.transform(W,j,fe,ae,E,x);for(var Qe=0;Qe<E;Qe++){var Ot=Y[Qe]*fe[Qe]-u[Qe]*ae[Qe];u[Qe]=Y[Qe]*ae[Qe]+u[Qe]*fe[Qe],Y[Qe]=Ot}return this.conjugate(Y,u,E),this.transform(Y,u,ye,j,E,x),this.conjugate(ye,j,E),this.normalize13b(ye,E),w.negative=s.negative^_.negative,w.length=s.length+_.length,w.strip()},r.prototype.mul=function(s){var _=new r(null);return _.words=new Array(this.length+s.length),this.mulTo(s,_)},r.prototype.mulf=function(s){var _=new r(null);return _.words=new Array(this.length+s.length),V(this,s,_)},r.prototype.imul=function(s){return this.clone().mulTo(s,this)},r.prototype.imuln=function(s){l("number"==typeof s),l(s<67108864);for(var _=0,w=0;w<this.length;w++){var E=(0|this.words[w])*s,x=(67108863&E)+(67108863&_);_>>=26,_+=E/67108864|0,_+=x>>>26,this.words[w]=67108863&x}return 0!==_&&(this.words[w]=_,this.length++),this},r.prototype.muln=function(s){return this.clone().imuln(s)},r.prototype.sqr=function(){return this.mul(this)},r.prototype.isqr=function(){return this.imul(this.clone())},r.prototype.pow=function(s){var _=function a(B){for(var s=new Array(B.bitLength()),_=0;_<s.length;_++){var E=_%26;s[_]=(B.words[_/26|0]&1<<E)>>>E}return s}(s);if(0===_.length)return new r(1);for(var w=this,E=0;E<_.length&&0===_[E];E++,w=w.sqr());if(++E<_.length)for(var x=w.sqr();E<_.length;E++,x=x.sqr())0!==_[E]&&(w=w.mul(x));return w},r.prototype.iushln=function(s){l("number"==typeof s&&s>=0);var x,_=s%26,w=(s-_)/26,E=67108863>>>26-_<<26-_;if(0!==_){var j=0;for(x=0;x<this.length;x++){var $=this.words[x]&E;this.words[x]=(0|this.words[x])-$<<_|j,j=$>>>26-_}j&&(this.words[x]=j,this.length++)}if(0!==w){for(x=this.length-1;x>=0;x--)this.words[x+w]=this.words[x];for(x=0;x<w;x++)this.words[x]=0;this.length+=w}return this.strip()},r.prototype.ishln=function(s){return l(0===this.negative),this.iushln(s)},r.prototype.iushrn=function(s,_,w){var E;l("number"==typeof s&&s>=0),E=_?(_-_%26)/26:0;var x=s%26,j=Math.min((s-x)/26,this.length),$=67108863^67108863>>>x<<x,Y=w;if(E-=j,E=Math.max(0,E),Y){for(var u=0;u<j;u++)Y.words[u]=this.words[u];Y.length=j}if(0!==j)if(this.length>j)for(this.length-=j,u=0;u<this.length;u++)this.words[u]=this.words[u+j];else this.words[0]=0,this.length=1;var W=0;for(u=this.length-1;u>=0&&(0!==W||u>=E);u--){var fe=0|this.words[u];this.words[u]=W<<26-x|fe>>>x,W=fe&$}return Y&&0!==W&&(Y.words[Y.length++]=W),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},r.prototype.ishrn=function(s,_,w){return l(0===this.negative),this.iushrn(s,_,w)},r.prototype.shln=function(s){return this.clone().ishln(s)},r.prototype.ushln=function(s){return this.clone().iushln(s)},r.prototype.shrn=function(s){return this.clone().ishrn(s)},r.prototype.ushrn=function(s){return this.clone().iushrn(s)},r.prototype.testn=function(s){l("number"==typeof s&&s>=0);var _=s%26,w=(s-_)/26;return!(this.length<=w||!(this.words[w]&1<<_))},r.prototype.imaskn=function(s){l("number"==typeof s&&s>=0);var _=s%26,w=(s-_)/26;return l(0===this.negative,"imaskn works only with positive numbers"),this.length<=w?this:(0!==_&&w++,this.length=Math.min(w,this.length),0!==_&&(this.words[this.length-1]&=67108863^67108863>>>_<<_),this.strip())},r.prototype.maskn=function(s){return this.clone().imaskn(s)},r.prototype.iaddn=function(s){return l("number"==typeof s),l(s<67108864),s<0?this.isubn(-s):0!==this.negative?1===this.length&&(0|this.words[0])<s?(this.words[0]=s-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(s),this.negative=1,this):this._iaddn(s)},r.prototype._iaddn=function(s){this.words[0]+=s;for(var _=0;_<this.length&&this.words[_]>=67108864;_++)this.words[_]-=67108864,_===this.length-1?this.words[_+1]=1:this.words[_+1]++;return this.length=Math.max(this.length,_+1),this},r.prototype.isubn=function(s){if(l("number"==typeof s),l(s<67108864),s<0)return this.iaddn(-s);if(0!==this.negative)return this.negative=0,this.iaddn(s),this.negative=1,this;if(this.words[0]-=s,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var _=0;_<this.length&&this.words[_]<0;_++)this.words[_]+=67108864,this.words[_+1]-=1;return this.strip()},r.prototype.addn=function(s){return this.clone().iaddn(s)},r.prototype.subn=function(s){return this.clone().isubn(s)},r.prototype.iabs=function(){return this.negative=0,this},r.prototype.abs=function(){return this.clone().iabs()},r.prototype._ishlnsubmul=function(s,_,w){var x;this._expand(s.length+w);var j,$=0;for(x=0;x<s.length;x++){j=(0|this.words[x+w])+$;var Y=(0|s.words[x])*_;$=((j-=67108863&Y)>>26)-(Y/67108864|0),this.words[x+w]=67108863&j}for(;x<this.length-w;x++)$=(j=(0|this.words[x+w])+$)>>26,this.words[x+w]=67108863&j;if(0===$)return this.strip();for(l(-1===$),$=0,x=0;x<this.length;x++)$=(j=-(0|this.words[x])+$)>>26,this.words[x]=67108863&j;return this.negative=1,this.strip()},r.prototype._wordDiv=function(s,_){var w,E=this.clone(),x=s,j=0|x.words[x.length-1];0!=(w=26-this._countBits(j))&&(x=x.ushln(w),E.iushln(w),j=0|x.words[x.length-1]);var u,Y=E.length-x.length;if("mod"!==_){(u=new r(null)).length=Y+1,u.words=new Array(u.length);for(var W=0;W<u.length;W++)u.words[W]=0}var fe=E.clone()._ishlnsubmul(x,1,Y);0===fe.negative&&(E=fe,u&&(u.words[Y]=1));for(var ae=Y-1;ae>=0;ae--){var ye=67108864*(0|E.words[x.length+ae])+(0|E.words[x.length+ae-1]);for(ye=Math.min(ye/j|0,67108863),E._ishlnsubmul(x,ye,ae);0!==E.negative;)ye--,E.negative=0,E._ishlnsubmul(x,1,ae),E.isZero()||(E.negative^=1);u&&(u.words[ae]=ye)}return u&&u.strip(),E.strip(),"div"!==_&&0!==w&&E.iushrn(w),{div:u||null,mod:E}},r.prototype.divmod=function(s,_,w){return l(!s.isZero()),this.isZero()?{div:new r(0),mod:new r(0)}:0!==this.negative&&0===s.negative?(j=this.neg().divmod(s,_),"mod"!==_&&(E=j.div.neg()),"div"!==_&&(x=j.mod.neg(),w&&0!==x.negative&&x.iadd(s)),{div:E,mod:x}):0===this.negative&&0!==s.negative?(j=this.divmod(s.neg(),_),"mod"!==_&&(E=j.div.neg()),{div:E,mod:j.mod}):0!=(this.negative&s.negative)?(j=this.neg().divmod(s.neg(),_),"div"!==_&&(x=j.mod.neg(),w&&0!==x.negative&&x.isub(s)),{div:j.div,mod:x}):s.length>this.length||this.cmp(s)<0?{div:new r(0),mod:this}:1===s.length?"div"===_?{div:this.divn(s.words[0]),mod:null}:"mod"===_?{div:null,mod:new r(this.modn(s.words[0]))}:{div:this.divn(s.words[0]),mod:new r(this.modn(s.words[0]))}:this._wordDiv(s,_);var E,x,j},r.prototype.div=function(s){return this.divmod(s,"div",!1).div},r.prototype.mod=function(s){return this.divmod(s,"mod",!1).mod},r.prototype.umod=function(s){return this.divmod(s,"mod",!0).mod},r.prototype.divRound=function(s){var _=this.divmod(s);if(_.mod.isZero())return _.div;var w=0!==_.div.negative?_.mod.isub(s):_.mod,E=s.ushrn(1),x=s.andln(1),j=w.cmp(E);return j<0||1===x&&0===j?_.div:0!==_.div.negative?_.div.isubn(1):_.div.iaddn(1)},r.prototype.modn=function(s){l(s<=67108863);for(var _=(1<<26)%s,w=0,E=this.length-1;E>=0;E--)w=(_*w+(0|this.words[E]))%s;return w},r.prototype.idivn=function(s){l(s<=67108863);for(var _=0,w=this.length-1;w>=0;w--){var E=(0|this.words[w])+67108864*_;this.words[w]=E/s|0,_=E%s}return this.strip()},r.prototype.divn=function(s){return this.clone().idivn(s)},r.prototype.egcd=function(s){l(0===s.negative),l(!s.isZero());var _=this,w=s.clone();_=0!==_.negative?_.umod(s):_.clone();for(var E=new r(1),x=new r(0),j=new r(0),$=new r(1),Y=0;_.isEven()&&w.isEven();)_.iushrn(1),w.iushrn(1),++Y;for(var u=w.clone(),W=_.clone();!_.isZero();){for(var fe=0,ae=1;0==(_.words[0]&ae)&&fe<26;++fe,ae<<=1);if(fe>0)for(_.iushrn(fe);fe-- >0;)(E.isOdd()||x.isOdd())&&(E.iadd(u),x.isub(W)),E.iushrn(1),x.iushrn(1);for(var ye=0,Qe=1;0==(w.words[0]&Qe)&&ye<26;++ye,Qe<<=1);if(ye>0)for(w.iushrn(ye);ye-- >0;)(j.isOdd()||$.isOdd())&&(j.iadd(u),$.isub(W)),j.iushrn(1),$.iushrn(1);_.cmp(w)>=0?(_.isub(w),E.isub(j),x.isub($)):(w.isub(_),j.isub(E),$.isub(x))}return{a:j,b:$,gcd:w.iushln(Y)}},r.prototype._invmp=function(s){l(0===s.negative),l(!s.isZero());var fe,_=this,w=s.clone();_=0!==_.negative?_.umod(s):_.clone();for(var E=new r(1),x=new r(0),j=w.clone();_.cmpn(1)>0&&w.cmpn(1)>0;){for(var $=0,Y=1;0==(_.words[0]&Y)&&$<26;++$,Y<<=1);if($>0)for(_.iushrn($);$-- >0;)E.isOdd()&&E.iadd(j),E.iushrn(1);for(var u=0,W=1;0==(w.words[0]&W)&&u<26;++u,W<<=1);if(u>0)for(w.iushrn(u);u-- >0;)x.isOdd()&&x.iadd(j),x.iushrn(1);_.cmp(w)>=0?(_.isub(w),E.isub(x)):(w.isub(_),x.isub(E))}return(fe=0===_.cmpn(1)?E:x).cmpn(0)<0&&fe.iadd(s),fe},r.prototype.gcd=function(s){if(this.isZero())return s.abs();if(s.isZero())return this.abs();var _=this.clone(),w=s.clone();_.negative=0,w.negative=0;for(var E=0;_.isEven()&&w.isEven();E++)_.iushrn(1),w.iushrn(1);for(;;){for(;_.isEven();)_.iushrn(1);for(;w.isEven();)w.iushrn(1);var x=_.cmp(w);if(x<0){var j=_;_=w,w=j}else if(0===x||0===w.cmpn(1))break;_.isub(w)}return w.iushln(E)},r.prototype.invm=function(s){return this.egcd(s).a.umod(s)},r.prototype.isEven=function(){return 0==(1&this.words[0])},r.prototype.isOdd=function(){return 1==(1&this.words[0])},r.prototype.andln=function(s){return this.words[0]&s},r.prototype.bincn=function(s){l("number"==typeof s);var _=s%26,w=(s-_)/26,E=1<<_;if(this.length<=w)return this._expand(w+1),this.words[w]|=E,this;for(var x=E,j=w;0!==x&&j<this.length;j++){var $=0|this.words[j];x=($+=x)>>>26,this.words[j]=$&=67108863}return 0!==x&&(this.words[j]=x,this.length++),this},r.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},r.prototype.cmpn=function(s){var w,_=s<0;if(0!==this.negative&&!_)return-1;if(0===this.negative&&_)return 1;if(this.strip(),this.length>1)w=1;else{_&&(s=-s),l(s<=67108863,"Number is too big");var E=0|this.words[0];w=E===s?0:E<s?-1:1}return 0!==this.negative?0|-w:w},r.prototype.cmp=function(s){if(0!==this.negative&&0===s.negative)return-1;if(0===this.negative&&0!==s.negative)return 1;var _=this.ucmp(s);return 0!==this.negative?0|-_:_},r.prototype.ucmp=function(s){if(this.length>s.length)return 1;if(this.length<s.length)return-1;for(var _=0,w=this.length-1;w>=0;w--){var E=0|this.words[w],x=0|s.words[w];if(E!==x){E<x?_=-1:E>x&&(_=1);break}}return _},r.prototype.gtn=function(s){return 1===this.cmpn(s)},r.prototype.gt=function(s){return 1===this.cmp(s)},r.prototype.gten=function(s){return this.cmpn(s)>=0},r.prototype.gte=function(s){return this.cmp(s)>=0},r.prototype.ltn=function(s){return-1===this.cmpn(s)},r.prototype.lt=function(s){return-1===this.cmp(s)},r.prototype.lten=function(s){return this.cmpn(s)<=0},r.prototype.lte=function(s){return this.cmp(s)<=0},r.prototype.eqn=function(s){return 0===this.cmpn(s)},r.prototype.eq=function(s){return 0===this.cmp(s)},r.red=function(s){return new re(s)},r.prototype.toRed=function(s){return l(!this.red,"Already a number in reduction context"),l(0===this.negative,"red works only with positives"),s.convertTo(this)._forceRed(s)},r.prototype.fromRed=function(){return l(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},r.prototype._forceRed=function(s){return this.red=s,this},r.prototype.forceRed=function(s){return l(!this.red,"Already a number in reduction context"),this._forceRed(s)},r.prototype.redAdd=function(s){return l(this.red,"redAdd works only with red numbers"),this.red.add(this,s)},r.prototype.redIAdd=function(s){return l(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,s)},r.prototype.redSub=function(s){return l(this.red,"redSub works only with red numbers"),this.red.sub(this,s)},r.prototype.redISub=function(s){return l(this.red,"redISub works only with red numbers"),this.red.isub(this,s)},r.prototype.redShl=function(s){return l(this.red,"redShl works only with red numbers"),this.red.shl(this,s)},r.prototype.redMul=function(s){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.mul(this,s)},r.prototype.redIMul=function(s){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.imul(this,s)},r.prototype.redSqr=function(){return l(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},r.prototype.redISqr=function(){return l(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},r.prototype.redSqrt=function(){return l(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},r.prototype.redInvm=function(){return l(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},r.prototype.redNeg=function(){return l(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},r.prototype.redPow=function(s){return l(this.red&&!s.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,s)};var U={k256:null,p224:null,p192:null,p25519:null};function q(B,s){this.name=B,this.p=new r(s,16),this.n=this.p.bitLength(),this.k=new r(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function J(){q.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function G(){q.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){q.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function K(){q.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function re(B){if("string"==typeof B){var s=r._prime(B);this.m=s.p,this.prime=s}else l(B.gtn(1),"modulus must be greater than 1"),this.m=B,this.prime=null}function oe(B){re.call(this,B),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new r(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}q.prototype._tmp=function(){var s=new r(null);return s.words=new Array(Math.ceil(this.n/13)),s},q.prototype.ireduce=function(s){var w,_=s;do{this.split(_,this.tmp),w=(_=(_=this.imulK(_)).iadd(this.tmp)).bitLength()}while(w>this.n);var E=w<this.n?-1:_.ucmp(this.p);return 0===E?(_.words[0]=0,_.length=1):E>0?_.isub(this.p):void 0!==_.strip?_.strip():_._strip(),_},q.prototype.split=function(s,_){s.iushrn(this.n,0,_)},q.prototype.imulK=function(s){return s.imul(this.k)},h(J,q),J.prototype.split=function(s,_){for(var w=4194303,E=Math.min(s.length,9),x=0;x<E;x++)_.words[x]=s.words[x];if(_.length=E,s.length<=9)return s.words[0]=0,void(s.length=1);var j=s.words[9];for(_.words[_.length++]=j&w,x=10;x<s.length;x++){var $=0|s.words[x];s.words[x-10]=($&w)<<4|j>>>22,j=$}s.words[x-10]=j>>>=22,s.length-=0===j&&s.length>10?10:9},J.prototype.imulK=function(s){s.words[s.length]=0,s.words[s.length+1]=0,s.length+=2;for(var _=0,w=0;w<s.length;w++){var E=0|s.words[w];s.words[w]=67108863&(_+=977*E),_=64*E+(_/67108864|0)}return 0===s.words[s.length-1]&&(s.length--,0===s.words[s.length-1]&&s.length--),s},h(G,q),h(ie,q),h(K,q),K.prototype.imulK=function(s){for(var _=0,w=0;w<s.length;w++){var E=19*(0|s.words[w])+_,x=67108863&E;E>>>=26,s.words[w]=x,_=E}return 0!==_&&(s.words[s.length++]=_),s},r._prime=function(s){if(U[s])return U[s];var _;if("k256"===s)_=new J;else if("p224"===s)_=new G;else if("p192"===s)_=new ie;else{if("p25519"!==s)throw new Error("Unknown prime "+s);_=new K}return U[s]=_,_},re.prototype._verify1=function(s){l(0===s.negative,"red works only with positives"),l(s.red,"red works only with red numbers")},re.prototype._verify2=function(s,_){l(0==(s.negative|_.negative),"red works only with positives"),l(s.red&&s.red===_.red,"red works only with red numbers")},re.prototype.imod=function(s){return this.prime?this.prime.ireduce(s)._forceRed(this):s.umod(this.m)._forceRed(this)},re.prototype.neg=function(s){return s.isZero()?s.clone():this.m.sub(s)._forceRed(this)},re.prototype.add=function(s,_){this._verify2(s,_);var w=s.add(_);return w.cmp(this.m)>=0&&w.isub(this.m),w._forceRed(this)},re.prototype.iadd=function(s,_){this._verify2(s,_);var w=s.iadd(_);return w.cmp(this.m)>=0&&w.isub(this.m),w},re.prototype.sub=function(s,_){this._verify2(s,_);var w=s.sub(_);return w.cmpn(0)<0&&w.iadd(this.m),w._forceRed(this)},re.prototype.isub=function(s,_){this._verify2(s,_);var w=s.isub(_);return w.cmpn(0)<0&&w.iadd(this.m),w},re.prototype.shl=function(s,_){return this._verify1(s),this.imod(s.ushln(_))},re.prototype.imul=function(s,_){return this._verify2(s,_),this.imod(s.imul(_))},re.prototype.mul=function(s,_){return this._verify2(s,_),this.imod(s.mul(_))},re.prototype.isqr=function(s){return this.imul(s,s.clone())},re.prototype.sqr=function(s){return this.mul(s,s)},re.prototype.sqrt=function(s){if(s.isZero())return s.clone();var _=this.m.andln(3);if(l(_%2==1),3===_){var w=this.m.add(new r(1)).iushrn(2);return this.pow(s,w)}for(var E=this.m.subn(1),x=0;!E.isZero()&&0===E.andln(1);)x++,E.iushrn(1);l(!E.isZero());var j=new r(1).toRed(this),$=j.redNeg(),Y=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new r(2*u*u).toRed(this);0!==this.pow(u,Y).cmp($);)u.redIAdd($);for(var W=this.pow(u,E),fe=this.pow(s,E.addn(1).iushrn(1)),ae=this.pow(s,E),ye=x;0!==ae.cmp(j);){for(var Qe=ae,Ot=0;0!==Qe.cmp(j);Ot++)Qe=Qe.redSqr();l(Ot<ye);var At=this.pow(W,new r(1).iushln(ye-Ot-1));fe=fe.redMul(At),W=At.redSqr(),ae=ae.redMul(W),ye=Ot}return fe},re.prototype.invm=function(s){var _=s._invmp(this.m);return 0!==_.negative?(_.negative=0,this.imod(_).redNeg()):this.imod(_)},re.prototype.pow=function(s,_){if(_.isZero())return new r(1).toRed(this);if(0===_.cmpn(1))return s.clone();var E=new Array(16);E[0]=new r(1).toRed(this),E[1]=s;for(var x=2;x<E.length;x++)E[x]=this.mul(E[x-1],s);var j=E[0],$=0,Y=0,u=_.bitLength()%26;for(0===u&&(u=26),x=_.length-1;x>=0;x--){for(var W=_.words[x],fe=u-1;fe>=0;fe--){var ae=W>>fe&1;j!==E[0]&&(j=this.sqr(j)),0!==ae||0!==$?($<<=1,$|=ae,(4==++Y||0===x&&0===fe)&&(j=this.mul(j,E[$]),Y=0,$=0)):Y=0}u=26}return j},re.prototype.convertTo=function(s){var _=s.umod(this.m);return _===s?_.clone():_},re.prototype.convertFrom=function(s){var _=s.clone();return _.red=null,_},r.mont=function(s){return new oe(s)},h(oe,re),oe.prototype.convertTo=function(s){return this.imod(s.ushln(this.shift))},oe.prototype.convertFrom=function(s){var _=this.imod(s.mul(this.rinv));return _.red=null,_},oe.prototype.imul=function(s,_){if(s.isZero()||_.isZero())return s.words[0]=0,s.length=1,s;var w=s.imul(_),E=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=w.isub(E).iushrn(this.shift),j=x;return x.cmp(this.m)>=0?j=x.isub(this.m):x.cmpn(0)<0&&(j=x.iadd(this.m)),j._forceRed(this)},oe.prototype.mul=function(s,_){if(s.isZero()||_.isZero())return new r(0)._forceRed(this);var w=s.mul(_),E=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=w.isub(E).iushrn(this.shift),j=x;return x.cmp(this.m)>=0?j=x.isub(this.m):x.cmpn(0)<0&&(j=x.iadd(this.m)),j._forceRed(this)},oe.prototype.invm=function(s){return this.imod(s._invmp(this.m).mul(this.r2))._forceRed(this)}}(M=n.nmd(M),this)},96386:(M,b,n)=>{"use strict";var t=n(83894),e=n(8095),l=n(75634),h=n(95244),r=n(61052);function d(y){r.call(this,"digest"),this._hash=y}t(d,r),d.prototype._update=function(y){this._hash.update(y)},d.prototype._final=function(){return this._hash.digest()},M.exports=function(g){return"md5"===(g=g.toLowerCase())?new e:"rmd160"===g||"ripemd160"===g?new l:new d(h(g))}},55640:(M,b,n)=>{var t=n(8095);M.exports=function(e){return(new t).update(e).digest()}},74529:(M,b,n)=>{"use strict";var t=n(83894),e=n(7309),l=n(61052),h=n(73502).Buffer,r=n(55640),d=n(75634),y=n(95244),g=h.alloc(128);function p(f,C){l.call(this,"digest"),"string"==typeof C&&(C=h.from(C));var N="sha512"===f||"sha384"===f?128:64;this._alg=f,this._key=C,C.length>N?C=("rmd160"===f?new d:y(f)).update(C).digest():C.length<N&&(C=h.concat([C,g],N));for(var O=this._ipad=h.allocUnsafe(N),H=this._opad=h.allocUnsafe(N),F=0;F<N;F++)O[F]=54^C[F],H[F]=92^C[F];this._hash="rmd160"===f?new d:y(f),this._hash.update(O)}t(p,l),p.prototype._update=function(f){this._hash.update(f)},p.prototype._final=function(){var f=this._hash.digest();return("rmd160"===this._alg?new d:y(this._alg)).update(this._opad).update(f).digest()},M.exports=function(C,N){return"rmd160"===(C=C.toLowerCase())||"ripemd160"===C?new p("rmd160",N):"md5"===C?new e(r,N):new p(C,N)}},7309:(M,b,n)=>{"use strict";var t=n(83894),e=n(73502).Buffer,l=n(61052),h=e.alloc(128),r=64;function d(y,g){l.call(this,"digest"),"string"==typeof g&&(g=e.from(g)),this._alg=y,this._key=g,g.length>r?g=y(g):g.length<r&&(g=e.concat([g,h],r));for(var p=this._ipad=e.allocUnsafe(r),f=this._opad=e.allocUnsafe(r),C=0;C<r;C++)p[C]=54^g[C],f[C]=92^g[C];this._hash=[p]}t(d,l),d.prototype._update=function(y){this._hash.push(y)},d.prototype._final=function(){var y=this._alg(e.concat(this._hash));return this._alg(e.concat([this._opad,y]))},M.exports=d},41348:(M,b,n)=>{"use strict";b.randomBytes=b.rng=b.pseudoRandomBytes=b.prng=n(53753),b.createHash=b.Hash=n(96386),b.createHmac=b.Hmac=n(74529);var t=n(87793),e=Object.keys(t),l=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(e);b.getHashes=function(){return l};var h=n(99357);b.pbkdf2=h.pbkdf2,b.pbkdf2Sync=h.pbkdf2Sync;var r=n(55255);b.Cipher=r.Cipher,b.createCipher=r.createCipher,b.Cipheriv=r.Cipheriv,b.createCipheriv=r.createCipheriv,b.Decipher=r.Decipher,b.createDecipher=r.createDecipher,b.Decipheriv=r.Decipheriv,b.createDecipheriv=r.createDecipheriv,b.getCiphers=r.getCiphers,b.listCiphers=r.listCiphers;var d=n(98829);b.DiffieHellmanGroup=d.DiffieHellmanGroup,b.createDiffieHellmanGroup=d.createDiffieHellmanGroup,b.getDiffieHellman=d.getDiffieHellman,b.createDiffieHellman=d.createDiffieHellman,b.DiffieHellman=d.DiffieHellman;var y=n(3923);b.createSign=y.createSign,b.Sign=y.Sign,b.createVerify=y.createVerify,b.Verify=y.Verify,b.createECDH=n(74746);var g=n(63701);b.publicEncrypt=g.publicEncrypt,b.privateEncrypt=g.privateEncrypt,b.publicDecrypt=g.publicDecrypt,b.privateDecrypt=g.privateDecrypt;var p=n(14275);b.randomFill=p.randomFill,b.randomFillSync=p.randomFillSync,b.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},b.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},77466:function(M,b,n){var t;M.exports=(t=n(67585),n(58319),n(9493),n(37865),n(53057),function(){var e=t,h=e.lib.BlockCipher,r=e.algo,d=[],y=[],g=[],p=[],f=[],C=[],N=[],a=[],O=[],H=[];!function(){for(var D=[],U=0;U<256;U++)D[U]=U<128?U<<1:U<<1^283;var q=0,J=0;for(U=0;U<256;U++){var G=J^J<<1^J<<2^J<<3^J<<4;d[q]=G=G>>>8^255&G^99,y[G]=q;var oe,ie=D[q],K=D[ie],re=D[K];g[q]=(oe=257*D[G]^16843008*G)<<24|oe>>>8,p[q]=oe<<16|oe>>>16,f[q]=oe<<8|oe>>>24,C[q]=oe,N[G]=(oe=16843009*re^65537*K^257*ie^16843008*q)<<24|oe>>>8,a[G]=oe<<16|oe>>>16,O[G]=oe<<8|oe>>>24,H[G]=oe,q?(q=ie^D[D[D[re^ie]]],J^=D[D[J]]):q=J=1}}();var F=[0,1,2,4,8,16,32,64,128,27,54],V=r.AES=h.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var U=this._keyPriorReset=this._key,q=U.words,J=U.sigBytes/4,ie=4*((this._nRounds=J+6)+1),K=this._keySchedule=[],re=0;re<ie;re++)re<J?K[re]=q[re]:(D=K[re-1],re%J?J>6&&re%J==4&&(D=d[D>>>24]<<24|d[D>>>16&255]<<16|d[D>>>8&255]<<8|d[255&D]):(D=d[(D=D<<8|D>>>24)>>>24]<<24|d[D>>>16&255]<<16|d[D>>>8&255]<<8|d[255&D],D^=F[re/J|0]<<24),K[re]=K[re-J]^D);for(var oe=this._invKeySchedule=[],B=0;B<ie;B++){if(re=ie-B,B%4)var D=K[re];else D=K[re-4];oe[B]=B<4||re<=4?D:N[d[D>>>24]]^a[d[D>>>16&255]]^O[d[D>>>8&255]]^H[d[255&D]]}}},encryptBlock:function(D,U){this._doCryptBlock(D,U,this._keySchedule,g,p,f,C,d)},decryptBlock:function(D,U){var q=D[U+1];D[U+1]=D[U+3],D[U+3]=q,this._doCryptBlock(D,U,this._invKeySchedule,N,a,O,H,y),q=D[U+1],D[U+1]=D[U+3],D[U+3]=q},_doCryptBlock:function(D,U,q,J,G,ie,K,re){for(var oe=this._nRounds,B=D[U]^q[0],s=D[U+1]^q[1],_=D[U+2]^q[2],w=D[U+3]^q[3],E=4,x=1;x<oe;x++){var j=J[B>>>24]^G[s>>>16&255]^ie[_>>>8&255]^K[255&w]^q[E++],$=J[s>>>24]^G[_>>>16&255]^ie[w>>>8&255]^K[255&B]^q[E++],Y=J[_>>>24]^G[w>>>16&255]^ie[B>>>8&255]^K[255&s]^q[E++],u=J[w>>>24]^G[B>>>16&255]^ie[s>>>8&255]^K[255&_]^q[E++];B=j,s=$,_=Y,w=u}j=(re[B>>>24]<<24|re[s>>>16&255]<<16|re[_>>>8&255]<<8|re[255&w])^q[E++],$=(re[s>>>24]<<24|re[_>>>16&255]<<16|re[w>>>8&255]<<8|re[255&B])^q[E++],Y=(re[_>>>24]<<24|re[w>>>16&255]<<16|re[B>>>8&255]<<8|re[255&s])^q[E++],u=(re[w>>>24]<<24|re[B>>>16&255]<<16|re[s>>>8&255]<<8|re[255&_])^q[E++],D[U]=j,D[U+1]=$,D[U+2]=Y,D[U+3]=u},keySize:8});e.AES=h._createHelper(V)}(),t.AES)},53057:function(M,b,n){var l,h,r,d,y,g,f,N,a,H,F,V,U,J,ie,K,oe,B,t;M.exports=(t=n(67585),n(37865),void(t.lib.Cipher||(l=t,h=l.lib,r=h.Base,d=h.WordArray,y=h.BufferedBlockAlgorithm,g=l.enc,f=g.Base64,N=l.algo.EvpKDF,a=h.Cipher=y.extend({cfg:r.extend(),createEncryptor:function(s,_){return this.create(this._ENC_XFORM_MODE,s,_)},createDecryptor:function(s,_){return this.create(this._DEC_XFORM_MODE,s,_)},init:function(s,_,w){this.cfg=this.cfg.extend(w),this._xformMode=s,this._key=_,this.reset()},reset:function(){y.reset.call(this),this._doReset()},process:function(s){return this._append(s),this._process()},finalize:function(s){return s&&this._append(s),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function s(_){return"string"==typeof _?B:K}return function(_){return{encrypt:function(w,E,x){return s(E).encrypt(_,w,E,x)},decrypt:function(w,E,x){return s(E).decrypt(_,w,E,x)}}}}()}),h.StreamCipher=a.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),H=l.mode={},F=h.BlockCipherMode=r.extend({createEncryptor:function(s,_){return this.Encryptor.create(s,_)},createDecryptor:function(s,_){return this.Decryptor.create(s,_)},init:function(s,_){this._cipher=s,this._iv=_}}),V=H.CBC=function(){var s=F.extend();function _(w,E,x){var j,$=this._iv;$?(j=$,this._iv=undefined):j=this._prevBlock;for(var Y=0;Y<x;Y++)w[E+Y]^=j[Y]}return s.Encryptor=s.extend({processBlock:function(w,E){var x=this._cipher,j=x.blockSize;_.call(this,w,E,j),x.encryptBlock(w,E),this._prevBlock=w.slice(E,E+j)}}),s.Decryptor=s.extend({processBlock:function(w,E){var x=this._cipher,j=x.blockSize,$=w.slice(E,E+j);x.decryptBlock(w,E),_.call(this,w,E,j),this._prevBlock=$}}),s}(),U=(l.pad={}).Pkcs7={pad:function(s,_){for(var w=4*_,E=w-s.sigBytes%w,x=E<<24|E<<16|E<<8|E,j=[],$=0;$<E;$+=4)j.push(x);var Y=d.create(j,E);s.concat(Y)},unpad:function(s){s.sigBytes-=255&s.words[s.sigBytes-1>>>2]}},h.BlockCipher=a.extend({cfg:a.cfg.extend({mode:V,padding:U}),reset:function(){var s;a.reset.call(this);var _=this.cfg,w=_.iv,E=_.mode;this._xformMode==this._ENC_XFORM_MODE?s=E.createEncryptor:(s=E.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==s?this._mode.init(this,w&&w.words):(this._mode=s.call(E,this,w&&w.words),this._mode.__creator=s)},_doProcessBlock:function(s,_){this._mode.processBlock(s,_)},_doFinalize:function(){var s,_=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(_.pad(this._data,this.blockSize),s=this._process(!0)):(s=this._process(!0),_.unpad(s)),s},blockSize:4}),J=h.CipherParams=r.extend({init:function(s){this.mixIn(s)},toString:function(s){return(s||this.formatter).stringify(this)}}),ie=(l.format={}).OpenSSL={stringify:function(s){var w=s.ciphertext,E=s.salt;return(E?d.create([1398893684,1701076831]).concat(E).concat(w):w).toString(f)},parse:function(s){var _,w=f.parse(s),E=w.words;return 1398893684==E[0]&&1701076831==E[1]&&(_=d.create(E.slice(2,4)),E.splice(0,4),w.sigBytes-=16),J.create({ciphertext:w,salt:_})}},K=h.SerializableCipher=r.extend({cfg:r.extend({format:ie}),encrypt:function(s,_,w,E){E=this.cfg.extend(E);var x=s.createEncryptor(w,E),j=x.finalize(_),$=x.cfg;return J.create({ciphertext:j,key:w,iv:$.iv,algorithm:s,mode:$.mode,padding:$.padding,blockSize:s.blockSize,formatter:E.format})},decrypt:function(s,_,w,E){return E=this.cfg.extend(E),_=this._parse(_,E.format),s.createDecryptor(w,E).finalize(_.ciphertext)},_parse:function(s,_){return"string"==typeof s?_.parse(s,this):s}}),oe=(l.kdf={}).OpenSSL={execute:function(s,_,w,E){E||(E=d.random(8));var x=N.create({keySize:_+w}).compute(s,E),j=d.create(x.words.slice(_),4*w);return x.sigBytes=4*_,J.create({key:x,iv:j,salt:E})}},B=h.PasswordBasedCipher=K.extend({cfg:K.cfg.extend({kdf:oe}),encrypt:function(s,_,w,E){var x=(E=this.cfg.extend(E)).kdf.execute(w,s.keySize,s.ivSize);E.iv=x.iv;var j=K.encrypt.call(this,s,_,x.key,E);return j.mixIn(x),j},decrypt:function(s,_,w,E){E=this.cfg.extend(E),_=this._parse(_,E.format);var x=E.kdf.execute(w,s.keySize,s.ivSize,_.salt);return E.iv=x.iv,K.decrypt.call(this,s,_,x.key,E)}}))))},67585:function(M,b,n){var t;M.exports=(t=t||function(e,l){var h;if(typeof window<"u"&&window.crypto&&(h=window.crypto),typeof self<"u"&&self.crypto&&(h=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(h=globalThis.crypto),!h&&typeof window<"u"&&window.msCrypto&&(h=window.msCrypto),!h&&typeof global<"u"&&global.crypto&&(h=global.crypto),!h)try{h=n(41348)}catch{}var r=function(){if(h){if("function"==typeof h.getRandomValues)try{return h.getRandomValues(new Uint32Array(1))[0]}catch{}if("function"==typeof h.randomBytes)try{return h.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},d=Object.create||function(){function D(){}return function(U){var q;return D.prototype=U,q=new D,D.prototype=null,q}}(),y={},g=y.lib={},p=g.Base={extend:function(D){var U=d(this);return D&&U.mixIn(D),(!U.hasOwnProperty("init")||this.init===U.init)&&(U.init=function(){U.$super.init.apply(this,arguments)}),U.init.prototype=U,U.$super=this,U},create:function(){var D=this.extend();return D.init.apply(D,arguments),D},init:function(){},mixIn:function(D){for(var U in D)D.hasOwnProperty(U)&&(this[U]=D[U]);D.hasOwnProperty("toString")&&(this.toString=D.toString)},clone:function(){return this.init.prototype.extend(this)}},f=g.WordArray=p.extend({init:function(D,U){D=this.words=D||[],this.sigBytes=null!=U?U:4*D.length},toString:function(D){return(D||N).stringify(this)},concat:function(D){var U=this.words,q=D.words,J=this.sigBytes,G=D.sigBytes;if(this.clamp(),J%4)for(var ie=0;ie<G;ie++)U[J+ie>>>2]|=(q[ie>>>2]>>>24-ie%4*8&255)<<24-(J+ie)%4*8;else for(var re=0;re<G;re+=4)U[J+re>>>2]=q[re>>>2];return this.sigBytes+=G,this},clamp:function(){var D=this.words,U=this.sigBytes;D[U>>>2]&=4294967295<<32-U%4*8,D.length=e.ceil(U/4)},clone:function(){var D=p.clone.call(this);return D.words=this.words.slice(0),D},random:function(D){for(var U=[],q=0;q<D;q+=4)U.push(r());return new f.init(U,D)}}),C=y.enc={},N=C.Hex={stringify:function(D){for(var U=D.words,q=D.sigBytes,J=[],G=0;G<q;G++){var ie=U[G>>>2]>>>24-G%4*8&255;J.push((ie>>>4).toString(16)),J.push((15&ie).toString(16))}return J.join("")},parse:function(D){for(var U=D.length,q=[],J=0;J<U;J+=2)q[J>>>3]|=parseInt(D.substr(J,2),16)<<24-J%8*4;return new f.init(q,U/2)}},a=C.Latin1={stringify:function(D){for(var U=D.words,q=D.sigBytes,J=[],G=0;G<q;G++)J.push(String.fromCharCode(U[G>>>2]>>>24-G%4*8&255));return J.join("")},parse:function(D){for(var U=D.length,q=[],J=0;J<U;J++)q[J>>>2]|=(255&D.charCodeAt(J))<<24-J%4*8;return new f.init(q,U)}},O=C.Utf8={stringify:function(D){try{return decodeURIComponent(escape(a.stringify(D)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(D){return a.parse(unescape(encodeURIComponent(D)))}},H=g.BufferedBlockAlgorithm=p.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(D){"string"==typeof D&&(D=O.parse(D)),this._data.concat(D),this._nDataBytes+=D.sigBytes},_process:function(D){var U,q=this._data,J=q.words,G=q.sigBytes,ie=this.blockSize,re=G/(4*ie),oe=(re=D?e.ceil(re):e.max((0|re)-this._minBufferSize,0))*ie,B=e.min(4*oe,G);if(oe){for(var s=0;s<oe;s+=ie)this._doProcessBlock(J,s);U=J.splice(0,oe),q.sigBytes-=B}return new f.init(U,B)},clone:function(){var D=p.clone.call(this);return D._data=this._data.clone(),D},_minBufferSize:0}),V=(g.Hasher=H.extend({cfg:p.extend(),init:function(D){this.cfg=this.cfg.extend(D),this.reset()},reset:function(){H.reset.call(this),this._doReset()},update:function(D){return this._append(D),this._process(),this},finalize:function(D){return D&&this._append(D),this._doFinalize()},blockSize:16,_createHelper:function(D){return function(U,q){return new D.init(q).finalize(U)}},_createHmacHelper:function(D){return function(U,q){return new V.HMAC.init(D,q).finalize(U)}}}),y.algo={});return y}(Math),t)},58319:function(M,b,n){var t,h;M.exports=(t=n(67585),h=t.lib.WordArray,t.enc.Base64={stringify:function(g){var p=g.words,f=g.sigBytes,C=this._map;g.clamp();for(var N=[],a=0;a<f;a+=3)for(var V=(p[a>>>2]>>>24-a%4*8&255)<<16|(p[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|p[a+2>>>2]>>>24-(a+2)%4*8&255,D=0;D<4&&a+.75*D<f;D++)N.push(C.charAt(V>>>6*(3-D)&63));var U=C.charAt(64);if(U)for(;N.length%4;)N.push(U);return N.join("")},parse:function(g){var p=g.length,f=this._map,C=this._reverseMap;if(!C){C=this._reverseMap=[];for(var N=0;N<f.length;N++)C[f.charCodeAt(N)]=N}var a=f.charAt(64);if(a){var O=g.indexOf(a);-1!==O&&(p=O)}return function y(g,p,f){for(var C=[],N=0,a=0;a<p;a++)if(a%4){var O=f[g.charCodeAt(a-1)]<<a%4*2,H=f[g.charCodeAt(a)]>>>6-a%4*2;C[N>>>2]|=(O|H)<<24-N%4*8,N++}return h.create(C,N)}(g,p,C)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},t.enc.Base64)},84410:function(M,b,n){var t,h;M.exports=(t=n(67585),h=t.lib.WordArray,t.enc.Base64url={stringify:function(g,p=!0){var f=g.words,C=g.sigBytes,N=p?this._safe_map:this._map;g.clamp();for(var a=[],O=0;O<C;O+=3)for(var D=(f[O>>>2]>>>24-O%4*8&255)<<16|(f[O+1>>>2]>>>24-(O+1)%4*8&255)<<8|f[O+2>>>2]>>>24-(O+2)%4*8&255,U=0;U<4&&O+.75*U<C;U++)a.push(N.charAt(D>>>6*(3-U)&63));var q=N.charAt(64);if(q)for(;a.length%4;)a.push(q);return a.join("")},parse:function(g,p=!0){var f=g.length,C=p?this._safe_map:this._map,N=this._reverseMap;if(!N){N=this._reverseMap=[];for(var a=0;a<C.length;a++)N[C.charCodeAt(a)]=a}var O=C.charAt(64);if(O){var H=g.indexOf(O);-1!==H&&(f=H)}return function y(g,p,f){for(var C=[],N=0,a=0;a<p;a++)if(a%4){var O=f[g.charCodeAt(a-1)]<<a%4*2,H=f[g.charCodeAt(a)]>>>6-a%4*2;C[N>>>2]|=(O|H)<<24-N%4*8,N++}return h.create(C,N)}(g,f,N)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},t.enc.Base64url)},79012:function(M,b,n){var t;M.exports=(t=n(67585),function(){var h=t.lib.WordArray,r=t.enc;function y(g){return g<<8&4278255360|g>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(g){for(var p=g.words,f=g.sigBytes,C=[],N=0;N<f;N+=2)C.push(String.fromCharCode(p[N>>>2]>>>16-N%4*8&65535));return C.join("")},parse:function(g){for(var p=g.length,f=[],C=0;C<p;C++)f[C>>>1]|=g.charCodeAt(C)<<16-C%2*16;return h.create(f,2*p)}},r.Utf16LE={stringify:function(g){for(var p=g.words,f=g.sigBytes,C=[],N=0;N<f;N+=2){var a=y(p[N>>>2]>>>16-N%4*8&65535);C.push(String.fromCharCode(a))}return C.join("")},parse:function(g){for(var p=g.length,f=[],C=0;C<p;C++)f[C>>>1]|=y(g.charCodeAt(C)<<16-C%2*16);return h.create(f,2*p)}}}(),t.enc.Utf16)},37865:function(M,b,n){var e,l,h,r,d,g,t;M.exports=(t=n(67585),n(75162),n(43764),r=(l=(e=t).lib).WordArray,g=(d=e.algo).EvpKDF=(h=l.Base).extend({cfg:h.extend({keySize:4,hasher:d.MD5,iterations:1}),init:function(p){this.cfg=this.cfg.extend(p)},compute:function(p,f){for(var C,N=this.cfg,a=N.hasher.create(),O=r.create(),H=O.words,F=N.keySize,V=N.iterations;H.length<F;){C&&a.update(C),C=a.update(p).finalize(f),a.reset();for(var D=1;D<V;D++)C=a.finalize(C),a.reset();O.concat(C)}return O.sigBytes=4*F,O}}),e.EvpKDF=function(p,f,C){return g.create(C).compute(p,f)},t.EvpKDF)},41847:function(M,b,n){var t,r,y;M.exports=(t=n(67585),n(53057),r=t.lib.CipherParams,y=t.enc.Hex,t.format.Hex={stringify:function(f){return f.ciphertext.toString(y)},parse:function(f){var C=y.parse(f);return r.create({ciphertext:C})}},t.format.Hex)},43764:function(M,b,n){var t,d;M.exports=(t=n(67585),d=t.enc.Utf8,void(t.algo.HMAC=t.lib.Base.extend({init:function(p,f){p=this._hasher=new p.init,"string"==typeof f&&(f=d.parse(f));var C=p.blockSize,N=4*C;f.sigBytes>N&&(f=p.finalize(f)),f.clamp();for(var a=this._oKey=f.clone(),O=this._iKey=f.clone(),H=a.words,F=O.words,V=0;V<C;V++)H[V]^=1549556828,F[V]^=909522486;a.sigBytes=O.sigBytes=N,this.reset()},reset:function(){var p=this._hasher;p.reset(),p.update(this._iKey)},update:function(p){return this._hasher.update(p),this},finalize:function(p){var f=this._hasher,C=f.finalize(p);return f.reset(),f.finalize(this._oKey.clone().concat(C))}})))},7206:function(M,b,n){var t;M.exports=(t=n(67585),n(70401),n(27412),n(79012),n(58319),n(84410),n(9493),n(75162),n(31817),n(68769),n(83351),n(6787),n(21971),n(34973),n(43764),n(98812),n(37865),n(53057),n(4424),n(16635),n(53592),n(99354),n(77934),n(4413),n(64630),n(187),n(81691),n(63237),n(41847),n(77466),n(57243),n(10486),n(28182),n(73544),t)},27412:function(M,b,n){var t;M.exports=(t=n(67585),function(){if("function"==typeof ArrayBuffer){var h=t.lib.WordArray,r=h.init,d=h.init=function(y){if(y instanceof ArrayBuffer&&(y=new Uint8Array(y)),(y instanceof Int8Array||typeof Uint8ClampedArray<"u"&&y instanceof Uint8ClampedArray||y instanceof Int16Array||y instanceof Uint16Array||y instanceof Int32Array||y instanceof Uint32Array||y instanceof Float32Array||y instanceof Float64Array)&&(y=new Uint8Array(y.buffer,y.byteOffset,y.byteLength)),y instanceof Uint8Array){for(var g=y.byteLength,p=[],f=0;f<g;f++)p[f>>>2]|=y[f]<<24-f%4*8;r.call(this,p,g)}else r.apply(this,arguments)};d.prototype=h}}(),t.lib.WordArray)},9493:function(M,b,n){var t;M.exports=(t=n(67585),function(e){var l=t,h=l.lib,r=h.WordArray,d=h.Hasher,y=l.algo,g=[];!function(){for(var O=0;O<64;O++)g[O]=4294967296*e.abs(e.sin(O+1))|0}();var p=y.MD5=d.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(O,H){for(var F=0;F<16;F++){var V=H+F,D=O[V];O[V]=16711935&(D<<8|D>>>24)|4278255360&(D<<24|D>>>8)}var U=this._hash.words,q=O[H+0],J=O[H+1],G=O[H+2],ie=O[H+3],K=O[H+4],re=O[H+5],oe=O[H+6],B=O[H+7],s=O[H+8],_=O[H+9],w=O[H+10],E=O[H+11],x=O[H+12],j=O[H+13],$=O[H+14],Y=O[H+15],u=U[0],W=U[1],fe=U[2],ae=U[3];u=f(u,W,fe,ae,q,7,g[0]),ae=f(ae,u,W,fe,J,12,g[1]),fe=f(fe,ae,u,W,G,17,g[2]),W=f(W,fe,ae,u,ie,22,g[3]),u=f(u,W,fe,ae,K,7,g[4]),ae=f(ae,u,W,fe,re,12,g[5]),fe=f(fe,ae,u,W,oe,17,g[6]),W=f(W,fe,ae,u,B,22,g[7]),u=f(u,W,fe,ae,s,7,g[8]),ae=f(ae,u,W,fe,_,12,g[9]),fe=f(fe,ae,u,W,w,17,g[10]),W=f(W,fe,ae,u,E,22,g[11]),u=f(u,W,fe,ae,x,7,g[12]),ae=f(ae,u,W,fe,j,12,g[13]),fe=f(fe,ae,u,W,$,17,g[14]),u=C(u,W=f(W,fe,ae,u,Y,22,g[15]),fe,ae,J,5,g[16]),ae=C(ae,u,W,fe,oe,9,g[17]),fe=C(fe,ae,u,W,E,14,g[18]),W=C(W,fe,ae,u,q,20,g[19]),u=C(u,W,fe,ae,re,5,g[20]),ae=C(ae,u,W,fe,w,9,g[21]),fe=C(fe,ae,u,W,Y,14,g[22]),W=C(W,fe,ae,u,K,20,g[23]),u=C(u,W,fe,ae,_,5,g[24]),ae=C(ae,u,W,fe,$,9,g[25]),fe=C(fe,ae,u,W,ie,14,g[26]),W=C(W,fe,ae,u,s,20,g[27]),u=C(u,W,fe,ae,j,5,g[28]),ae=C(ae,u,W,fe,G,9,g[29]),fe=C(fe,ae,u,W,B,14,g[30]),u=N(u,W=C(W,fe,ae,u,x,20,g[31]),fe,ae,re,4,g[32]),ae=N(ae,u,W,fe,s,11,g[33]),fe=N(fe,ae,u,W,E,16,g[34]),W=N(W,fe,ae,u,$,23,g[35]),u=N(u,W,fe,ae,J,4,g[36]),ae=N(ae,u,W,fe,K,11,g[37]),fe=N(fe,ae,u,W,B,16,g[38]),W=N(W,fe,ae,u,w,23,g[39]),u=N(u,W,fe,ae,j,4,g[40]),ae=N(ae,u,W,fe,q,11,g[41]),fe=N(fe,ae,u,W,ie,16,g[42]),W=N(W,fe,ae,u,oe,23,g[43]),u=N(u,W,fe,ae,_,4,g[44]),ae=N(ae,u,W,fe,x,11,g[45]),fe=N(fe,ae,u,W,Y,16,g[46]),u=a(u,W=N(W,fe,ae,u,G,23,g[47]),fe,ae,q,6,g[48]),ae=a(ae,u,W,fe,B,10,g[49]),fe=a(fe,ae,u,W,$,15,g[50]),W=a(W,fe,ae,u,re,21,g[51]),u=a(u,W,fe,ae,x,6,g[52]),ae=a(ae,u,W,fe,ie,10,g[53]),fe=a(fe,ae,u,W,w,15,g[54]),W=a(W,fe,ae,u,J,21,g[55]),u=a(u,W,fe,ae,s,6,g[56]),ae=a(ae,u,W,fe,Y,10,g[57]),fe=a(fe,ae,u,W,oe,15,g[58]),W=a(W,fe,ae,u,j,21,g[59]),u=a(u,W,fe,ae,K,6,g[60]),ae=a(ae,u,W,fe,E,10,g[61]),fe=a(fe,ae,u,W,G,15,g[62]),W=a(W,fe,ae,u,_,21,g[63]),U[0]=U[0]+u|0,U[1]=U[1]+W|0,U[2]=U[2]+fe|0,U[3]=U[3]+ae|0},_doFinalize:function(){var O=this._data,H=O.words,F=8*this._nDataBytes,V=8*O.sigBytes;H[V>>>5]|=128<<24-V%32;var D=e.floor(F/4294967296),U=F;H[15+(V+64>>>9<<4)]=16711935&(D<<8|D>>>24)|4278255360&(D<<24|D>>>8),H[14+(V+64>>>9<<4)]=16711935&(U<<8|U>>>24)|4278255360&(U<<24|U>>>8),O.sigBytes=4*(H.length+1),this._process();for(var q=this._hash,J=q.words,G=0;G<4;G++){var ie=J[G];J[G]=16711935&(ie<<8|ie>>>24)|4278255360&(ie<<24|ie>>>8)}return q},clone:function(){var O=d.clone.call(this);return O._hash=this._hash.clone(),O}});function f(O,H,F,V,D,U,q){var J=O+(H&F|~H&V)+D+q;return(J<<U|J>>>32-U)+H}function C(O,H,F,V,D,U,q){var J=O+(H&V|F&~V)+D+q;return(J<<U|J>>>32-U)+H}function N(O,H,F,V,D,U,q){var J=O+(H^F^V)+D+q;return(J<<U|J>>>32-U)+H}function a(O,H,F,V,D,U,q){var J=O+(F^(H|~V))+D+q;return(J<<U|J>>>32-U)+H}l.MD5=d._createHelper(p),l.HmacMD5=d._createHmacHelper(p)}(Math),t.MD5)},4424:function(M,b,n){var t;M.exports=(t=n(67585),n(53057),t.mode.CFB=function(){var e=t.lib.BlockCipherMode.extend();function l(h,r,d,y){var g,p=this._iv;p?(g=p.slice(0),this._iv=void 0):g=this._prevBlock,y.encryptBlock(g,0);for(var f=0;f<d;f++)h[r+f]^=g[f]}return e.Encryptor=e.extend({processBlock:function(h,r){var d=this._cipher,y=d.blockSize;l.call(this,h,r,y,d),this._prevBlock=h.slice(r,r+y)}}),e.Decryptor=e.extend({processBlock:function(h,r){var d=this._cipher,y=d.blockSize,g=h.slice(r,r+y);l.call(this,h,r,y,d),this._prevBlock=g}}),e}(),t.mode.CFB)},53592:function(M,b,n){var t;M.exports=(t=n(67585),n(53057),t.mode.CTRGladman=function(){var e=t.lib.BlockCipherMode.extend();function l(d){if(255==(d>>24&255)){var y=d>>16&255,g=d>>8&255,p=255&d;255===y?(y=0,255===g?(g=0,255===p?p=0:++p):++g):++y,d=0,d+=y<<16,d+=g<<8,d+=p}else d+=1<<24;return d}var r=e.Encryptor=e.extend({processBlock:function(d,y){var g=this._cipher,p=g.blockSize,f=this._iv,C=this._counter;f&&(C=this._counter=f.slice(0),this._iv=void 0),function h(d){return 0===(d[0]=l(d[0]))&&(d[1]=l(d[1])),d}(C);var N=C.slice(0);g.encryptBlock(N,0);for(var a=0;a<p;a++)d[y+a]^=N[a]}});return e.Decryptor=r,e}(),t.mode.CTRGladman)},16635:function(M,b,n){var e,l,t;M.exports=(t=n(67585),n(53057),t.mode.CTR=(l=(e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(h,r){var d=this._cipher,y=d.blockSize,g=this._iv,p=this._counter;g&&(p=this._counter=g.slice(0),this._iv=void 0);var f=p.slice(0);d.encryptBlock(f,0),p[y-1]=p[y-1]+1|0;for(var C=0;C<y;C++)h[r+C]^=f[C]}}),e.Decryptor=l,e),t.mode.CTR)},77934:function(M,b,n){var e,t;M.exports=(t=n(67585),n(53057),t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(l,h){this._cipher.encryptBlock(l,h)}}),e.Decryptor=e.extend({processBlock:function(l,h){this._cipher.decryptBlock(l,h)}}),e),t.mode.ECB)},99354:function(M,b,n){var e,l,t;M.exports=(t=n(67585),n(53057),t.mode.OFB=(l=(e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(h,r){var d=this._cipher,y=d.blockSize,g=this._iv,p=this._keystream;g&&(p=this._keystream=g.slice(0),this._iv=void 0),d.encryptBlock(p,0);for(var f=0;f<y;f++)h[r+f]^=p[f]}}),e.Decryptor=l,e),t.mode.OFB)},4413:function(M,b,n){var t;M.exports=(t=n(67585),n(53057),t.pad.AnsiX923={pad:function(e,l){var h=e.sigBytes,r=4*l,d=r-h%r,y=h+d-1;e.clamp(),e.words[y>>>2]|=d<<24-y%4*8,e.sigBytes+=d},unpad:function(e){e.sigBytes-=255&e.words[e.sigBytes-1>>>2]}},t.pad.Ansix923)},64630:function(M,b,n){var t;M.exports=(t=n(67585),n(53057),t.pad.Iso10126={pad:function(e,l){var h=4*l,r=h-e.sigBytes%h;e.concat(t.lib.WordArray.random(r-1)).concat(t.lib.WordArray.create([r<<24],1))},unpad:function(e){e.sigBytes-=255&e.words[e.sigBytes-1>>>2]}},t.pad.Iso10126)},187:function(M,b,n){var t;M.exports=(t=n(67585),n(53057),t.pad.Iso97971={pad:function(e,l){e.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(e,l)},unpad:function(e){t.pad.ZeroPadding.unpad(e),e.sigBytes--}},t.pad.Iso97971)},63237:function(M,b,n){var t;M.exports=(t=n(67585),n(53057),t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding)},81691:function(M,b,n){var t;M.exports=(t=n(67585),n(53057),t.pad.ZeroPadding={pad:function(e,l){var h=4*l;e.clamp(),e.sigBytes+=h-(e.sigBytes%h||h)},unpad:function(e){var l=e.words,h=e.sigBytes-1;for(h=e.sigBytes-1;h>=0;h--)if(l[h>>>2]>>>24-h%4*8&255){e.sigBytes=h+1;break}}},t.pad.ZeroPadding)},98812:function(M,b,n){var e,l,h,r,d,g,p,t;M.exports=(t=n(67585),n(75162),n(43764),r=(l=(e=t).lib).WordArray,g=(d=e.algo).HMAC,p=d.PBKDF2=(h=l.Base).extend({cfg:h.extend({keySize:4,hasher:d.SHA1,iterations:1}),init:function(f){this.cfg=this.cfg.extend(f)},compute:function(f,C){for(var N=this.cfg,a=g.create(N.hasher,f),O=r.create(),H=r.create([1]),F=O.words,V=H.words,D=N.keySize,U=N.iterations;F.length<D;){var q=a.update(C).finalize(H);a.reset();for(var J=q.words,G=J.length,ie=q,K=1;K<U;K++){ie=a.finalize(ie),a.reset();for(var re=ie.words,oe=0;oe<G;oe++)J[oe]^=re[oe]}O.concat(q),V[0]++}return O.sigBytes=4*D,O}}),e.PBKDF2=function(f,C,N){return p.create(N).compute(f,C)},t.PBKDF2)},73544:function(M,b,n){var t;M.exports=(t=n(67585),n(58319),n(9493),n(37865),n(53057),function(){var e=t,h=e.lib.StreamCipher,d=[],y=[],g=[],p=e.algo.RabbitLegacy=h.extend({_doReset:function(){var C=this._key.words,N=this.cfg.iv,a=this._X=[C[0],C[3]<<16|C[2]>>>16,C[1],C[0]<<16|C[3]>>>16,C[2],C[1]<<16|C[0]>>>16,C[3],C[2]<<16|C[1]>>>16],O=this._C=[C[2]<<16|C[2]>>>16,4294901760&C[0]|65535&C[1],C[3]<<16|C[3]>>>16,4294901760&C[1]|65535&C[2],C[0]<<16|C[0]>>>16,4294901760&C[2]|65535&C[3],C[1]<<16|C[1]>>>16,4294901760&C[3]|65535&C[0]];this._b=0;for(var H=0;H<4;H++)f.call(this);for(H=0;H<8;H++)O[H]^=a[H+4&7];if(N){var F=N.words,V=F[0],D=F[1],U=16711935&(V<<8|V>>>24)|4278255360&(V<<24|V>>>8),q=16711935&(D<<8|D>>>24)|4278255360&(D<<24|D>>>8),J=U>>>16|4294901760&q,G=q<<16|65535&U;for(O[0]^=U,O[1]^=J,O[2]^=q,O[3]^=G,O[4]^=U,O[5]^=J,O[6]^=q,O[7]^=G,H=0;H<4;H++)f.call(this)}},_doProcessBlock:function(C,N){var a=this._X;f.call(this),d[0]=a[0]^a[5]>>>16^a[3]<<16,d[1]=a[2]^a[7]>>>16^a[5]<<16,d[2]=a[4]^a[1]>>>16^a[7]<<16,d[3]=a[6]^a[3]>>>16^a[1]<<16;for(var O=0;O<4;O++)d[O]=16711935&(d[O]<<8|d[O]>>>24)|4278255360&(d[O]<<24|d[O]>>>8),C[N+O]^=d[O]},blockSize:4,ivSize:2});function f(){for(var C=this._X,N=this._C,a=0;a<8;a++)y[a]=N[a];for(N[0]=N[0]+1295307597+this._b|0,N[1]=N[1]+3545052371+(N[0]>>>0<y[0]>>>0?1:0)|0,N[2]=N[2]+886263092+(N[1]>>>0<y[1]>>>0?1:0)|0,N[3]=N[3]+1295307597+(N[2]>>>0<y[2]>>>0?1:0)|0,N[4]=N[4]+3545052371+(N[3]>>>0<y[3]>>>0?1:0)|0,N[5]=N[5]+886263092+(N[4]>>>0<y[4]>>>0?1:0)|0,N[6]=N[6]+1295307597+(N[5]>>>0<y[5]>>>0?1:0)|0,N[7]=N[7]+3545052371+(N[6]>>>0<y[6]>>>0?1:0)|0,this._b=N[7]>>>0<y[7]>>>0?1:0,a=0;a<8;a++){var O=C[a]+N[a],H=65535&O,F=O>>>16;g[a]=((H*H>>>17)+H*F>>>15)+F*F^((4294901760&O)*O|0)+((65535&O)*O|0)}C[0]=g[0]+(g[7]<<16|g[7]>>>16)+(g[6]<<16|g[6]>>>16)|0,C[1]=g[1]+(g[0]<<8|g[0]>>>24)+g[7]|0,C[2]=g[2]+(g[1]<<16|g[1]>>>16)+(g[0]<<16|g[0]>>>16)|0,C[3]=g[3]+(g[2]<<8|g[2]>>>24)+g[1]|0,C[4]=g[4]+(g[3]<<16|g[3]>>>16)+(g[2]<<16|g[2]>>>16)|0,C[5]=g[5]+(g[4]<<8|g[4]>>>24)+g[3]|0,C[6]=g[6]+(g[5]<<16|g[5]>>>16)+(g[4]<<16|g[4]>>>16)|0,C[7]=g[7]+(g[6]<<8|g[6]>>>24)+g[5]|0}e.RabbitLegacy=h._createHelper(p)}(),t.RabbitLegacy)},28182:function(M,b,n){var t;M.exports=(t=n(67585),n(58319),n(9493),n(37865),n(53057),function(){var e=t,h=e.lib.StreamCipher,d=[],y=[],g=[],p=e.algo.Rabbit=h.extend({_doReset:function(){for(var C=this._key.words,N=this.cfg.iv,a=0;a<4;a++)C[a]=16711935&(C[a]<<8|C[a]>>>24)|4278255360&(C[a]<<24|C[a]>>>8);var O=this._X=[C[0],C[3]<<16|C[2]>>>16,C[1],C[0]<<16|C[3]>>>16,C[2],C[1]<<16|C[0]>>>16,C[3],C[2]<<16|C[1]>>>16],H=this._C=[C[2]<<16|C[2]>>>16,4294901760&C[0]|65535&C[1],C[3]<<16|C[3]>>>16,4294901760&C[1]|65535&C[2],C[0]<<16|C[0]>>>16,4294901760&C[2]|65535&C[3],C[1]<<16|C[1]>>>16,4294901760&C[3]|65535&C[0]];for(this._b=0,a=0;a<4;a++)f.call(this);for(a=0;a<8;a++)H[a]^=O[a+4&7];if(N){var F=N.words,V=F[0],D=F[1],U=16711935&(V<<8|V>>>24)|4278255360&(V<<24|V>>>8),q=16711935&(D<<8|D>>>24)|4278255360&(D<<24|D>>>8),J=U>>>16|4294901760&q,G=q<<16|65535&U;for(H[0]^=U,H[1]^=J,H[2]^=q,H[3]^=G,H[4]^=U,H[5]^=J,H[6]^=q,H[7]^=G,a=0;a<4;a++)f.call(this)}},_doProcessBlock:function(C,N){var a=this._X;f.call(this),d[0]=a[0]^a[5]>>>16^a[3]<<16,d[1]=a[2]^a[7]>>>16^a[5]<<16,d[2]=a[4]^a[1]>>>16^a[7]<<16,d[3]=a[6]^a[3]>>>16^a[1]<<16;for(var O=0;O<4;O++)d[O]=16711935&(d[O]<<8|d[O]>>>24)|4278255360&(d[O]<<24|d[O]>>>8),C[N+O]^=d[O]},blockSize:4,ivSize:2});function f(){for(var C=this._X,N=this._C,a=0;a<8;a++)y[a]=N[a];for(N[0]=N[0]+1295307597+this._b|0,N[1]=N[1]+3545052371+(N[0]>>>0<y[0]>>>0?1:0)|0,N[2]=N[2]+886263092+(N[1]>>>0<y[1]>>>0?1:0)|0,N[3]=N[3]+1295307597+(N[2]>>>0<y[2]>>>0?1:0)|0,N[4]=N[4]+3545052371+(N[3]>>>0<y[3]>>>0?1:0)|0,N[5]=N[5]+886263092+(N[4]>>>0<y[4]>>>0?1:0)|0,N[6]=N[6]+1295307597+(N[5]>>>0<y[5]>>>0?1:0)|0,N[7]=N[7]+3545052371+(N[6]>>>0<y[6]>>>0?1:0)|0,this._b=N[7]>>>0<y[7]>>>0?1:0,a=0;a<8;a++){var O=C[a]+N[a],H=65535&O,F=O>>>16;g[a]=((H*H>>>17)+H*F>>>15)+F*F^((4294901760&O)*O|0)+((65535&O)*O|0)}C[0]=g[0]+(g[7]<<16|g[7]>>>16)+(g[6]<<16|g[6]>>>16)|0,C[1]=g[1]+(g[0]<<8|g[0]>>>24)+g[7]|0,C[2]=g[2]+(g[1]<<16|g[1]>>>16)+(g[0]<<16|g[0]>>>16)|0,C[3]=g[3]+(g[2]<<8|g[2]>>>24)+g[1]|0,C[4]=g[4]+(g[3]<<16|g[3]>>>16)+(g[2]<<16|g[2]>>>16)|0,C[5]=g[5]+(g[4]<<8|g[4]>>>24)+g[3]|0,C[6]=g[6]+(g[5]<<16|g[5]>>>16)+(g[4]<<16|g[4]>>>16)|0,C[7]=g[7]+(g[6]<<8|g[6]>>>24)+g[5]|0}e.Rabbit=h._createHelper(p)}(),t.Rabbit)},10486:function(M,b,n){var t;M.exports=(t=n(67585),n(58319),n(9493),n(37865),n(53057),function(){var e=t,h=e.lib.StreamCipher,r=e.algo,d=r.RC4=h.extend({_doReset:function(){for(var p=this._key,f=p.words,C=p.sigBytes,N=this._S=[],a=0;a<256;a++)N[a]=a;a=0;for(var O=0;a<256;a++){var H=a%C,V=N[a];N[a]=N[O=(O+N[a]+(f[H>>>2]>>>24-H%4*8&255))%256],N[O]=V}this._i=this._j=0},_doProcessBlock:function(p,f){p[f]^=y.call(this)},keySize:8,ivSize:0});function y(){for(var p=this._S,f=this._i,C=this._j,N=0,a=0;a<4;a++){var O=p[f=(f+1)%256];p[f]=p[C=(C+p[f])%256],p[C]=O,N|=p[(p[f]+p[C])%256]<<24-8*a}return this._i=f,this._j=C,N}e.RC4=h._createHelper(d);var g=r.RC4Drop=d.extend({cfg:d.cfg.extend({drop:192}),_doReset:function(){d._doReset.call(this);for(var p=this.cfg.drop;p>0;p--)y.call(this)}});e.RC4Drop=h._createHelper(g)}(),t.RC4)},34973:function(M,b,n){var t;M.exports=(t=n(67585),function(e){var l=t,h=l.lib,r=h.WordArray,d=h.Hasher,y=l.algo,g=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),p=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),f=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),C=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),N=r.create([0,1518500249,1859775393,2400959708,2840853838]),a=r.create([1352829926,1548603684,1836072691,2053994217,0]),O=y.RIPEMD160=d.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(J,G){for(var ie=0;ie<16;ie++){var K=G+ie,re=J[K];J[K]=16711935&(re<<8|re>>>24)|4278255360&(re<<24|re>>>8)}var j,$,Y,u,W,fe,ae,ye,Qe,Ot,At,oe=this._hash.words,B=N.words,s=a.words,_=g.words,w=p.words,E=f.words,x=C.words;for(fe=j=oe[0],ae=$=oe[1],ye=Y=oe[2],Qe=u=oe[3],Ot=W=oe[4],ie=0;ie<80;ie+=1)At=j+J[G+_[ie]]|0,At+=ie<16?H($,Y,u)+B[0]:ie<32?F($,Y,u)+B[1]:ie<48?V($,Y,u)+B[2]:ie<64?D($,Y,u)+B[3]:U($,Y,u)+B[4],At=(At=q(At|=0,E[ie]))+W|0,j=W,W=u,u=q(Y,10),Y=$,$=At,At=fe+J[G+w[ie]]|0,At+=ie<16?U(ae,ye,Qe)+s[0]:ie<32?D(ae,ye,Qe)+s[1]:ie<48?V(ae,ye,Qe)+s[2]:ie<64?F(ae,ye,Qe)+s[3]:H(ae,ye,Qe)+s[4],At=(At=q(At|=0,x[ie]))+Ot|0,fe=Ot,Ot=Qe,Qe=q(ye,10),ye=ae,ae=At;At=oe[1]+Y+Qe|0,oe[1]=oe[2]+u+Ot|0,oe[2]=oe[3]+W+fe|0,oe[3]=oe[4]+j+ae|0,oe[4]=oe[0]+$+ye|0,oe[0]=At},_doFinalize:function(){var J=this._data,G=J.words,ie=8*this._nDataBytes,K=8*J.sigBytes;G[K>>>5]|=128<<24-K%32,G[14+(K+64>>>9<<4)]=16711935&(ie<<8|ie>>>24)|4278255360&(ie<<24|ie>>>8),J.sigBytes=4*(G.length+1),this._process();for(var re=this._hash,oe=re.words,B=0;B<5;B++){var s=oe[B];oe[B]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return re},clone:function(){var J=d.clone.call(this);return J._hash=this._hash.clone(),J}});function H(J,G,ie){return J^G^ie}function F(J,G,ie){return J&G|~J&ie}function V(J,G,ie){return(J|~G)^ie}function D(J,G,ie){return J&ie|G&~ie}function U(J,G,ie){return J^(G|~ie)}function q(J,G){return J<<G|J>>>32-G}l.RIPEMD160=d._createHelper(O),l.HmacRIPEMD160=d._createHmacHelper(O)}(Math),t.RIPEMD160)},75162:function(M,b,n){var e,l,h,r,y,g,t;M.exports=(t=n(67585),h=(l=(e=t).lib).WordArray,y=[],g=e.algo.SHA1=(r=l.Hasher).extend({_doReset:function(){this._hash=new h.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(p,f){for(var C=this._hash.words,N=C[0],a=C[1],O=C[2],H=C[3],F=C[4],V=0;V<80;V++){if(V<16)y[V]=0|p[f+V];else{var D=y[V-3]^y[V-8]^y[V-14]^y[V-16];y[V]=D<<1|D>>>31}var U=(N<<5|N>>>27)+F+y[V];U+=V<20?1518500249+(a&O|~a&H):V<40?1859775393+(a^O^H):V<60?(a&O|a&H|O&H)-1894007588:(a^O^H)-899497514,F=H,H=O,O=a<<30|a>>>2,a=N,N=U}C[0]=C[0]+N|0,C[1]=C[1]+a|0,C[2]=C[2]+O|0,C[3]=C[3]+H|0,C[4]=C[4]+F|0},_doFinalize:function(){var p=this._data,f=p.words,C=8*this._nDataBytes,N=8*p.sigBytes;return f[N>>>5]|=128<<24-N%32,f[14+(N+64>>>9<<4)]=Math.floor(C/4294967296),f[15+(N+64>>>9<<4)]=C,p.sigBytes=4*f.length,this._process(),this._hash},clone:function(){var p=r.clone.call(this);return p._hash=this._hash.clone(),p}}),e.SHA1=r._createHelper(g),e.HmacSHA1=r._createHmacHelper(g),t.SHA1)},68769:function(M,b,n){var e,h,r,d,y,t;M.exports=(t=n(67585),n(31817),h=(e=t).lib.WordArray,y=(r=e.algo).SHA224=(d=r.SHA256).extend({_doReset:function(){this._hash=new h.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var g=d._doFinalize.call(this);return g.sigBytes-=4,g}}),e.SHA224=d._createHelper(y),e.HmacSHA224=d._createHmacHelper(y),t.SHA224)},31817:function(M,b,n){var t;M.exports=(t=n(67585),function(e){var l=t,h=l.lib,r=h.WordArray,d=h.Hasher,y=l.algo,g=[],p=[];!function(){function N(F){for(var V=e.sqrt(F),D=2;D<=V;D++)if(!(F%D))return!1;return!0}function a(F){return 4294967296*(F-(0|F))|0}for(var O=2,H=0;H<64;)N(O)&&(H<8&&(g[H]=a(e.pow(O,.5))),p[H]=a(e.pow(O,1/3)),H++),O++}();var f=[],C=y.SHA256=d.extend({_doReset:function(){this._hash=new r.init(g.slice(0))},_doProcessBlock:function(N,a){for(var O=this._hash.words,H=O[0],F=O[1],V=O[2],D=O[3],U=O[4],q=O[5],J=O[6],G=O[7],ie=0;ie<64;ie++){if(ie<16)f[ie]=0|N[a+ie];else{var K=f[ie-15],oe=f[ie-2];f[ie]=((K<<25|K>>>7)^(K<<14|K>>>18)^K>>>3)+f[ie-7]+((oe<<15|oe>>>17)^(oe<<13|oe>>>19)^oe>>>10)+f[ie-16]}var _=H&F^H&V^F&V,x=G+((U<<26|U>>>6)^(U<<21|U>>>11)^(U<<7|U>>>25))+(U&q^~U&J)+p[ie]+f[ie];G=J,J=q,q=U,U=D+x|0,D=V,V=F,F=H,H=x+(((H<<30|H>>>2)^(H<<19|H>>>13)^(H<<10|H>>>22))+_)|0}O[0]=O[0]+H|0,O[1]=O[1]+F|0,O[2]=O[2]+V|0,O[3]=O[3]+D|0,O[4]=O[4]+U|0,O[5]=O[5]+q|0,O[6]=O[6]+J|0,O[7]=O[7]+G|0},_doFinalize:function(){var N=this._data,a=N.words,O=8*this._nDataBytes,H=8*N.sigBytes;return a[H>>>5]|=128<<24-H%32,a[14+(H+64>>>9<<4)]=e.floor(O/4294967296),a[15+(H+64>>>9<<4)]=O,N.sigBytes=4*a.length,this._process(),this._hash},clone:function(){var N=d.clone.call(this);return N._hash=this._hash.clone(),N}});l.SHA256=d._createHelper(C),l.HmacSHA256=d._createHmacHelper(C)}(Math),t.SHA256)},21971:function(M,b,n){var t;M.exports=(t=n(67585),n(70401),function(e){var l=t,h=l.lib,r=h.WordArray,d=h.Hasher,g=l.x64.Word,p=l.algo,f=[],C=[],N=[];!function(){for(var H=1,F=0,V=0;V<24;V++){f[H+5*F]=(V+1)*(V+2)/2%64;var U=(2*H+3*F)%5;H=F%5,F=U}for(H=0;H<5;H++)for(F=0;F<5;F++)C[H+5*F]=F+(2*H+3*F)%5*5;for(var q=1,J=0;J<24;J++){for(var G=0,ie=0,K=0;K<7;K++){if(1&q){var re=(1<<K)-1;re<32?ie^=1<<re:G^=1<<re-32}128&q?q=q<<1^113:q<<=1}N[J]=g.create(G,ie)}}();var a=[];!function(){for(var H=0;H<25;H++)a[H]=g.create()}();var O=p.SHA3=d.extend({cfg:d.cfg.extend({outputLength:512}),_doReset:function(){for(var H=this._state=[],F=0;F<25;F++)H[F]=new g.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(H,F){for(var V=this._state,D=this.blockSize/2,U=0;U<D;U++){var q=H[F+2*U],J=H[F+2*U+1];q=16711935&(q<<8|q>>>24)|4278255360&(q<<24|q>>>8),(G=V[U]).high^=J=16711935&(J<<8|J>>>24)|4278255360&(J<<24|J>>>8),G.low^=q}for(var ie=0;ie<24;ie++){for(var K=0;K<5;K++){for(var re=0,oe=0,B=0;B<5;B++)re^=(G=V[K+5*B]).high,oe^=G.low;var s=a[K];s.high=re,s.low=oe}for(K=0;K<5;K++){var _=a[(K+4)%5],w=a[(K+1)%5],E=w.high,x=w.low;for(re=_.high^(E<<1|x>>>31),oe=_.low^(x<<1|E>>>31),B=0;B<5;B++)(G=V[K+5*B]).high^=re,G.low^=oe}for(var j=1;j<25;j++){var $=(G=V[j]).high,Y=G.low,u=f[j];u<32?(re=$<<u|Y>>>32-u,oe=Y<<u|$>>>32-u):(re=Y<<u-32|$>>>64-u,oe=$<<u-32|Y>>>64-u);var W=a[C[j]];W.high=re,W.low=oe}var fe=a[0],ae=V[0];for(fe.high=ae.high,fe.low=ae.low,K=0;K<5;K++)for(B=0;B<5;B++){var ye=a[j=K+5*B],Qe=a[(K+1)%5+5*B],Ot=a[(K+2)%5+5*B];(G=V[j]).high=ye.high^~Qe.high&Ot.high,G.low=ye.low^~Qe.low&Ot.low}var G,At=N[ie];(G=V[0]).high^=At.high,G.low^=At.low}},_doFinalize:function(){var H=this._data,F=H.words,D=8*H.sigBytes,U=32*this.blockSize;F[D>>>5]|=1<<24-D%32,F[(e.ceil((D+1)/U)*U>>>5)-1]|=128,H.sigBytes=4*F.length,this._process();for(var q=this._state,J=this.cfg.outputLength/8,G=J/8,ie=[],K=0;K<G;K++){var re=q[K],oe=re.high,B=re.low;oe=16711935&(oe<<8|oe>>>24)|4278255360&(oe<<24|oe>>>8),ie.push(B=16711935&(B<<8|B>>>24)|4278255360&(B<<24|B>>>8)),ie.push(oe)}return new r.init(ie,J)},clone:function(){for(var H=d.clone.call(this),F=H._state=this._state.slice(0),V=0;V<25;V++)F[V]=F[V].clone();return H}});l.SHA3=d._createHelper(O),l.HmacSHA3=d._createHmacHelper(O)}(Math),t.SHA3)},6787:function(M,b,n){var e,l,h,r,d,y,g,t;M.exports=(t=n(67585),n(70401),n(83351),h=(l=(e=t).x64).Word,r=l.WordArray,g=(d=e.algo).SHA384=(y=d.SHA512).extend({_doReset:function(){this._hash=new r.init([new h.init(3418070365,3238371032),new h.init(1654270250,914150663),new h.init(2438529370,812702999),new h.init(355462360,4144912697),new h.init(1731405415,4290775857),new h.init(2394180231,1750603025),new h.init(3675008525,1694076839),new h.init(1203062813,3204075428)])},_doFinalize:function(){var p=y._doFinalize.call(this);return p.sigBytes-=16,p}}),e.SHA384=y._createHelper(g),e.HmacSHA384=y._createHmacHelper(g),t.SHA384)},83351:function(M,b,n){var t;M.exports=(t=n(67585),n(70401),function(){var e=t,h=e.lib.Hasher,r=e.x64,d=r.Word,y=r.WordArray,g=e.algo;function p(){return d.create.apply(d,arguments)}var f=[p(1116352408,3609767458),p(1899447441,602891725),p(3049323471,3964484399),p(3921009573,2173295548),p(961987163,4081628472),p(1508970993,3053834265),p(2453635748,2937671579),p(2870763221,3664609560),p(3624381080,2734883394),p(310598401,1164996542),p(607225278,1323610764),p(1426881987,3590304994),p(1925078388,4068182383),p(2162078206,991336113),p(2614888103,633803317),p(3248222580,3479774868),p(3835390401,2666613458),p(4022224774,944711139),p(264347078,2341262773),p(604807628,2007800933),p(770255983,1495990901),p(1249150122,1856431235),p(1555081692,3175218132),p(1996064986,2198950837),p(2554220882,3999719339),p(2821834349,766784016),p(2952996808,2566594879),p(3210313671,3203337956),p(3336571891,1034457026),p(3584528711,2466948901),p(113926993,3758326383),p(338241895,168717936),p(666307205,1188179964),p(773529912,1546045734),p(1294757372,1522805485),p(1396182291,2643833823),p(1695183700,2343527390),p(1986661051,1014477480),p(2177026350,1206759142),p(2456956037,344077627),p(2730485921,1290863460),p(2820302411,3158454273),p(3259730800,3505952657),p(3345764771,106217008),p(3516065817,3606008344),p(3600352804,1432725776),p(4094571909,1467031594),p(275423344,851169720),p(430227734,3100823752),p(506948616,1363258195),p(659060556,3750685593),p(883997877,3785050280),p(958139571,3318307427),p(1322822218,3812723403),p(1537002063,2003034995),p(1747873779,3602036899),p(1955562222,1575990012),p(2024104815,1125592928),p(2227730452,2716904306),p(2361852424,442776044),p(2428436474,593698344),p(2756734187,3733110249),p(3204031479,2999351573),p(3329325298,3815920427),p(3391569614,3928383900),p(3515267271,566280711),p(3940187606,3454069534),p(4118630271,4000239992),p(116418474,1914138554),p(174292421,2731055270),p(289380356,3203993006),p(460393269,320620315),p(685471733,587496836),p(852142971,1086792851),p(1017036298,365543100),p(1126000580,2618297676),p(1288033470,3409855158),p(1501505948,4234509866),p(1607167915,987167468),p(1816402316,1246189591)],C=[];!function(){for(var a=0;a<80;a++)C[a]=p()}();var N=g.SHA512=h.extend({_doReset:function(){this._hash=new y.init([new d.init(1779033703,4089235720),new d.init(3144134277,2227873595),new d.init(1013904242,4271175723),new d.init(2773480762,1595750129),new d.init(1359893119,2917565137),new d.init(2600822924,725511199),new d.init(528734635,4215389547),new d.init(1541459225,327033209)])},_doProcessBlock:function(a,O){for(var H=this._hash.words,F=H[0],V=H[1],D=H[2],U=H[3],q=H[4],J=H[5],G=H[6],ie=H[7],K=F.high,re=F.low,oe=V.high,B=V.low,s=D.high,_=D.low,w=U.high,E=U.low,x=q.high,j=q.low,$=J.high,Y=J.low,u=G.high,W=G.low,fe=ie.high,ae=ie.low,ye=K,Qe=re,Ot=oe,At=B,Ze=s,at=_,Be=w,Lt=E,_e=x,ne=j,be=$,Te=Y,$e=u,ft=W,Ge=fe,Ft=ae,br=0;br<80;br++){var rt,st,Dt=C[br];if(br<16)st=Dt.high=0|a[O+2*br],rt=Dt.low=0|a[O+2*br+1];else{var ot=C[br-15],nt=ot.high,Yt=ot.low,X=(Yt>>>1|nt<<31)^(Yt>>>8|nt<<24)^(Yt>>>7|nt<<25),ge=C[br-2],Me=ge.high,We=ge.low,pt=(We>>>19|Me<<13)^(We<<3|Me>>>29)^(We>>>6|Me<<26),Zt=C[br-7],gt=C[br-16],hr=gt.low;Dt.high=st=(st=(st=((nt>>>1|Yt<<31)^(nt>>>8|Yt<<24)^nt>>>7)+Zt.high+((rt=X+Zt.low)>>>0<X>>>0?1:0))+((Me>>>19|We<<13)^(Me<<3|We>>>29)^Me>>>6)+((rt+=pt)>>>0<pt>>>0?1:0))+gt.high+((rt+=hr)>>>0<hr>>>0?1:0),Dt.low=rt}var qe,Cr=_e&be^~_e&$e,Ue=ne&Te^~ne&ft,Pt=ye&Ot^ye&Ze^Ot&Ze,Ke=(Qe>>>28|ye<<4)^(Qe<<30|ye>>>2)^(Qe<<25|ye>>>7),Fe=f[br],St=Fe.low,ke=Ge+((_e>>>14|ne<<18)^(_e>>>18|ne<<14)^(_e<<23|ne>>>9))+((qe=Ft+((ne>>>14|_e<<18)^(ne>>>18|_e<<14)^(ne<<23|_e>>>9)))>>>0<Ft>>>0?1:0),ct=Ke+(Qe&At^Qe&at^At&at);Ge=$e,Ft=ft,$e=be,ft=Te,be=_e,Te=ne,_e=Be+(ke=(ke=(ke=ke+Cr+((qe+=Ue)>>>0<Ue>>>0?1:0))+Fe.high+((qe+=St)>>>0<St>>>0?1:0))+st+((qe+=rt)>>>0<rt>>>0?1:0))+((ne=Lt+qe|0)>>>0<Lt>>>0?1:0)|0,Be=Ze,Lt=at,Ze=Ot,at=At,Ot=ye,At=Qe,ye=ke+(((ye>>>28|Qe<<4)^(ye<<30|Qe>>>2)^(ye<<25|Qe>>>7))+Pt+(ct>>>0<Ke>>>0?1:0))+((Qe=qe+ct|0)>>>0<qe>>>0?1:0)|0}re=F.low=re+Qe,F.high=K+ye+(re>>>0<Qe>>>0?1:0),B=V.low=B+At,V.high=oe+Ot+(B>>>0<At>>>0?1:0),_=D.low=_+at,D.high=s+Ze+(_>>>0<at>>>0?1:0),E=U.low=E+Lt,U.high=w+Be+(E>>>0<Lt>>>0?1:0),j=q.low=j+ne,q.high=x+_e+(j>>>0<ne>>>0?1:0),Y=J.low=Y+Te,J.high=$+be+(Y>>>0<Te>>>0?1:0),W=G.low=W+ft,G.high=u+$e+(W>>>0<ft>>>0?1:0),ae=ie.low=ae+Ft,ie.high=fe+Ge+(ae>>>0<Ft>>>0?1:0)},_doFinalize:function(){var a=this._data,O=a.words,H=8*this._nDataBytes,F=8*a.sigBytes;return O[F>>>5]|=128<<24-F%32,O[30+(F+128>>>10<<5)]=Math.floor(H/4294967296),O[31+(F+128>>>10<<5)]=H,a.sigBytes=4*O.length,this._process(),this._hash.toX32()},clone:function(){var a=h.clone.call(this);return a._hash=this._hash.clone(),a},blockSize:32});e.SHA512=h._createHelper(N),e.HmacSHA512=h._createHmacHelper(N)}(),t.SHA512)},57243:function(M,b,n){var t;M.exports=(t=n(67585),n(58319),n(9493),n(37865),n(53057),function(){var e=t,l=e.lib,h=l.WordArray,r=l.BlockCipher,d=e.algo,y=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],g=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],p=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],f=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],C=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],N=d.DES=r.extend({_doReset:function(){for(var V=this._key.words,D=[],U=0;U<56;U++){var q=y[U]-1;D[U]=V[q>>>5]>>>31-q%32&1}for(var J=this._subKeys=[],G=0;G<16;G++){var ie=J[G]=[],K=p[G];for(U=0;U<24;U++)ie[U/6|0]|=D[(g[U]-1+K)%28]<<31-U%6,ie[4+(U/6|0)]|=D[28+(g[U+24]-1+K)%28]<<31-U%6;for(ie[0]=ie[0]<<1|ie[0]>>>31,U=1;U<7;U++)ie[U]=ie[U]>>>4*(U-1)+3;ie[7]=ie[7]<<5|ie[7]>>>27}var re=this._invSubKeys=[];for(U=0;U<16;U++)re[U]=J[15-U]},encryptBlock:function(F,V){this._doCryptBlock(F,V,this._subKeys)},decryptBlock:function(F,V){this._doCryptBlock(F,V,this._invSubKeys)},_doCryptBlock:function(F,V,D){this._lBlock=F[V],this._rBlock=F[V+1],a.call(this,4,252645135),a.call(this,16,65535),O.call(this,2,858993459),O.call(this,8,16711935),a.call(this,1,1431655765);for(var U=0;U<16;U++){for(var q=D[U],J=this._lBlock,G=this._rBlock,ie=0,K=0;K<8;K++)ie|=f[K][((G^q[K])&C[K])>>>0];this._lBlock=G,this._rBlock=J^ie}var re=this._lBlock;this._lBlock=this._rBlock,this._rBlock=re,a.call(this,1,1431655765),O.call(this,8,16711935),O.call(this,2,858993459),a.call(this,16,65535),a.call(this,4,252645135),F[V]=this._lBlock,F[V+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function a(F,V){var D=(this._lBlock>>>F^this._rBlock)&V;this._rBlock^=D,this._lBlock^=D<<F}function O(F,V){var D=(this._rBlock>>>F^this._lBlock)&V;this._lBlock^=D,this._rBlock^=D<<F}e.DES=r._createHelper(N);var H=d.TripleDES=r.extend({_doReset:function(){var V=this._key.words;if(2!==V.length&&4!==V.length&&V.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var D=V.slice(0,2),U=V.length<4?V.slice(0,2):V.slice(2,4),q=V.length<6?V.slice(0,2):V.slice(4,6);this._des1=N.createEncryptor(h.create(D)),this._des2=N.createEncryptor(h.create(U)),this._des3=N.createEncryptor(h.create(q))},encryptBlock:function(F,V){this._des1.encryptBlock(F,V),this._des2.decryptBlock(F,V),this._des3.encryptBlock(F,V)},decryptBlock:function(F,V){this._des3.decryptBlock(F,V),this._des2.encryptBlock(F,V),this._des1.decryptBlock(F,V)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=r._createHelper(H)}(),t.TripleDES)},70401:function(M,b,n){var h,r,d,y,t;M.exports=(t=n(67585),r=(h=t.lib).Base,d=h.WordArray,(y=t.x64={}).Word=r.extend({init:function(f,C){this.high=f,this.low=C}}),y.WordArray=r.extend({init:function(f,C){f=this.words=f||[],this.sigBytes=null!=C?C:8*f.length},toX32:function(){for(var f=this.words,C=f.length,N=[],a=0;a<C;a++){var O=f[a];N.push(O.high),N.push(O.low)}return d.create(N,this.sigBytes)},clone:function(){for(var f=r.clone.call(this),C=f.words=this.words.slice(0),N=C.length,a=0;a<N;a++)C[a]=C[a].clone();return f}}),t)},79664:(M,b,n)=>{var t=n(13954),e=n(62841);function h(y){return null==y}function d(y){(y=function r(y){var g={};for(var p in y)g[p]=y[p];return g}(y||{})).whiteList=y.whiteList||t.whiteList,y.onAttr=y.onAttr||t.onAttr,y.onIgnoreAttr=y.onIgnoreAttr||t.onIgnoreAttr,y.safeAttrValue=y.safeAttrValue||t.safeAttrValue,this.options=y}n(68426),d.prototype.process=function(y){if(!(y=(y=y||"").toString()))return"";var p=this.options,f=p.whiteList,C=p.onAttr,N=p.onIgnoreAttr,a=p.safeAttrValue;return e(y,function(H,F,V,D,U){var q=f[V],J=!1;if(!0===q?J=q:"function"==typeof q?J=q(D):q instanceof RegExp&&(J=q.test(D)),!0!==J&&(J=!1),D=a(V,D)){var ie,G={position:F,sourcePosition:H,source:U,isWhite:J};if(J)return h(ie=C(V,D,G))?V+":"+D:ie;if(!h(ie=N(V,D,G)))return ie}})},M.exports=d},13954:(M,b)=>{function n(){return{"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1}}var l=/javascript\s*\:/gim;b.whiteList={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1},b.getDefaultWhiteList=n,b.onAttr=function t(r,d,y){},b.onIgnoreAttr=function e(r,d,y){},b.safeAttrValue=function h(r,d){return l.test(d)?"":d}},95872:(M,b,n)=>{var t=n(13954),e=n(79664);for(var h in(b=M.exports=function l(r,d){return new e(d).process(r)}).FilterCSS=e,t)b[h]=t[h];typeof window<"u"&&(window.filterCSS=M.exports)},62841:(M,b,n)=>{var t=n(68426);M.exports=function e(l,h){";"!==(l=t.trimRight(l))[l.length-1]&&(l+=";");var r=l.length,d=!1,y=0,g=0,p="";function f(){if(!d){var a=t.trim(l.slice(y,g)),O=a.indexOf(":");if(-1!==O){var H=t.trim(a.slice(0,O)),F=t.trim(a.slice(O+1));if(H){var V=h(y,p.length,H,F,a);V&&(p+=V+"; ")}}}y=g+1}for(;g<r;g++){var C=l[g];if("/"===C&&"*"===l[g+1]){var N=l.indexOf("*/",g+2);if(-1===N)break;y=(g=N+1)+1,d=!1}else"("===C?d=!0:")"===C?d=!1:";"===C?d||f():"\n"===C&&f()}return t.trim(p)}},68426:M=>{M.exports={indexOf:function(b,n){var t,e;if(Array.prototype.indexOf)return b.indexOf(n);for(t=0,e=b.length;t<e;t++)if(b[t]===n)return t;return-1},forEach:function(b,n,t){var e,l;if(Array.prototype.forEach)return b.forEach(n,t);for(e=0,l=b.length;e<l;e++)n.call(t,b[e],e,b)},trim:function(b){return String.prototype.trim?b.trim():b.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(b){return String.prototype.trimRight?b.trimRight():b.replace(/(\s*$)/g,"")}}},73684:(M,b,n)=>{"use strict";b.utils=n(77451),b.Cipher=n(38170),b.DES=n(4631),b.CBC=n(79454),b.EDE=n(21862)},79454:(M,b,n)=>{"use strict";var t=n(32391),e=n(83894),l={};function h(d){t.equal(d.length,8,"Invalid IV length"),this.iv=new Array(8);for(var y=0;y<this.iv.length;y++)this.iv[y]=d[y]}b.instantiate=function r(d){function y(C){d.call(this,C),this._cbcInit()}e(y,d);for(var g=Object.keys(l),p=0;p<g.length;p++){var f=g[p];y.prototype[f]=l[f]}return y.create=function(N){return new y(N)},y},l._cbcInit=function(){var y=new h(this.options.iv);this._cbcState=y},l._update=function(y,g,p,f){var N=this.constructor.super_.prototype,a=this._cbcState.iv;if("encrypt"===this.type){for(var O=0;O<this.blockSize;O++)a[O]^=y[g+O];for(N._update.call(this,a,0,p,f),O=0;O<this.blockSize;O++)a[O]=p[f+O]}else{for(N._update.call(this,y,g,p,f),O=0;O<this.blockSize;O++)p[f+O]^=a[O];for(O=0;O<this.blockSize;O++)a[O]=y[g+O]}}},38170:(M,b,n)=>{"use strict";var t=n(32391);function e(l){this.options=l,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}M.exports=e,e.prototype._init=function(){},e.prototype.update=function(h){return 0===h.length?[]:"decrypt"===this.type?this._updateDecrypt(h):this._updateEncrypt(h)},e.prototype._buffer=function(h,r){for(var d=Math.min(this.buffer.length-this.bufferOff,h.length-r),y=0;y<d;y++)this.buffer[this.bufferOff+y]=h[r+y];return this.bufferOff+=d,d},e.prototype._flushBuffer=function(h,r){return this._update(this.buffer,0,h,r),this.bufferOff=0,this.blockSize},e.prototype._updateEncrypt=function(h){var r=0,d=0,g=new Array(((this.bufferOff+h.length)/this.blockSize|0)*this.blockSize);0!==this.bufferOff&&(r+=this._buffer(h,r),this.bufferOff===this.buffer.length&&(d+=this._flushBuffer(g,d)));for(var p=h.length-(h.length-r)%this.blockSize;r<p;r+=this.blockSize)this._update(h,r,g,d),d+=this.blockSize;for(;r<h.length;r++,this.bufferOff++)this.buffer[this.bufferOff]=h[r];return g},e.prototype._updateDecrypt=function(h){for(var r=0,d=0,y=Math.ceil((this.bufferOff+h.length)/this.blockSize)-1,g=new Array(y*this.blockSize);y>0;y--)r+=this._buffer(h,r),d+=this._flushBuffer(g,d);return r+=this._buffer(h,r),g},e.prototype.final=function(h){var r,d;return h&&(r=this.update(h)),d="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),r?r.concat(d):d},e.prototype._pad=function(h,r){if(0===r)return!1;for(;r<h.length;)h[r++]=0;return!0},e.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var h=new Array(this.blockSize);return this._update(this.buffer,0,h,0),h},e.prototype._unpad=function(h){return h},e.prototype._finalDecrypt=function(){t.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var h=new Array(this.blockSize);return this._flushBuffer(h,0),this._unpad(h)}},4631:(M,b,n)=>{"use strict";var t=n(32391),e=n(83894),l=n(77451),h=n(38170);function r(){this.tmp=new Array(2),this.keys=null}function d(g){h.call(this,g);var p=new r;this._desState=p,this.deriveKeys(p,g.key)}e(d,h),M.exports=d,d.create=function(p){return new d(p)};var y=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];d.prototype.deriveKeys=function(p,f){p.keys=new Array(32),t.equal(f.length,this.blockSize,"Invalid key length");var C=l.readUInt32BE(f,0),N=l.readUInt32BE(f,4);l.pc1(C,N,p.tmp,0),C=p.tmp[0],N=p.tmp[1];for(var a=0;a<p.keys.length;a+=2){var O=y[a>>>1];C=l.r28shl(C,O),N=l.r28shl(N,O),l.pc2(C,N,p.keys,a)}},d.prototype._update=function(p,f,C,N){var a=this._desState,O=l.readUInt32BE(p,f),H=l.readUInt32BE(p,f+4);l.ip(O,H,a.tmp,0),O=a.tmp[0],H=a.tmp[1],"encrypt"===this.type?this._encrypt(a,O,H,a.tmp,0):this._decrypt(a,O,H,a.tmp,0),H=a.tmp[1],l.writeUInt32BE(C,O=a.tmp[0],N),l.writeUInt32BE(C,H,N+4)},d.prototype._pad=function(p,f){for(var C=p.length-f,N=f;N<p.length;N++)p[N]=C;return!0},d.prototype._unpad=function(p){for(var f=p[p.length-1],C=p.length-f;C<p.length;C++)t.equal(p[C],f);return p.slice(0,p.length-f)},d.prototype._encrypt=function(p,f,C,N,a){for(var O=f,H=C,F=0;F<p.keys.length;F+=2){var V=p.keys[F],D=p.keys[F+1];l.expand(H,p.tmp,0);var U=l.substitute(V^=p.tmp[0],D^=p.tmp[1]),J=H;H=(O^l.permute(U))>>>0,O=J}l.rip(H,O,N,a)},d.prototype._decrypt=function(p,f,C,N,a){for(var O=C,H=f,F=p.keys.length-2;F>=0;F-=2){var V=p.keys[F],D=p.keys[F+1];l.expand(O,p.tmp,0);var U=l.substitute(V^=p.tmp[0],D^=p.tmp[1]),J=O;O=(H^l.permute(U))>>>0,H=J}l.rip(O,H,N,a)}},21862:(M,b,n)=>{"use strict";var t=n(32391),e=n(83894),l=n(38170),h=n(4631);function r(y,g){t.equal(g.length,24,"Invalid key length");var p=g.slice(0,8),f=g.slice(8,16),C=g.slice(16,24);this.ciphers="encrypt"===y?[h.create({type:"encrypt",key:p}),h.create({type:"decrypt",key:f}),h.create({type:"encrypt",key:C})]:[h.create({type:"decrypt",key:C}),h.create({type:"encrypt",key:f}),h.create({type:"decrypt",key:p})]}function d(y){l.call(this,y);var g=new r(this.type,this.options.key);this._edeState=g}e(d,l),M.exports=d,d.create=function(g){return new d(g)},d.prototype._update=function(g,p,f,C){var N=this._edeState;N.ciphers[0]._update(g,p,f,C),N.ciphers[1]._update(f,C,f,C),N.ciphers[2]._update(f,C,f,C)},d.prototype._pad=h.prototype._pad,d.prototype._unpad=h.prototype._unpad},77451:(M,b)=>{"use strict";b.readUInt32BE=function(h,r){return(h[0+r]<<24|h[1+r]<<16|h[2+r]<<8|h[3+r])>>>0},b.writeUInt32BE=function(h,r,d){h[0+d]=r>>>24,h[1+d]=r>>>16&255,h[2+d]=r>>>8&255,h[3+d]=255&r},b.ip=function(h,r,d,y){for(var g=0,p=0,f=6;f>=0;f-=2){for(var C=0;C<=24;C+=8)g<<=1,g|=r>>>C+f&1;for(C=0;C<=24;C+=8)g<<=1,g|=h>>>C+f&1}for(f=6;f>=0;f-=2){for(C=1;C<=25;C+=8)p<<=1,p|=r>>>C+f&1;for(C=1;C<=25;C+=8)p<<=1,p|=h>>>C+f&1}d[y+0]=g>>>0,d[y+1]=p>>>0},b.rip=function(h,r,d,y){for(var g=0,p=0,f=0;f<4;f++)for(var C=24;C>=0;C-=8)g<<=1,g|=r>>>C+f&1,g<<=1,g|=h>>>C+f&1;for(f=4;f<8;f++)for(C=24;C>=0;C-=8)p<<=1,p|=r>>>C+f&1,p<<=1,p|=h>>>C+f&1;d[y+0]=g>>>0,d[y+1]=p>>>0},b.pc1=function(h,r,d,y){for(var g=0,p=0,f=7;f>=5;f--){for(var C=0;C<=24;C+=8)g<<=1,g|=r>>C+f&1;for(C=0;C<=24;C+=8)g<<=1,g|=h>>C+f&1}for(C=0;C<=24;C+=8)g<<=1,g|=r>>C+f&1;for(f=1;f<=3;f++){for(C=0;C<=24;C+=8)p<<=1,p|=r>>C+f&1;for(C=0;C<=24;C+=8)p<<=1,p|=h>>C+f&1}for(C=0;C<=24;C+=8)p<<=1,p|=h>>C+f&1;d[y+0]=g>>>0,d[y+1]=p>>>0},b.r28shl=function(h,r){return h<<r&268435455|h>>>28-r};var n=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];b.pc2=function(h,r,d,y){for(var g=0,p=0,f=n.length>>>1,C=0;C<f;C++)g<<=1,g|=h>>>n[C]&1;for(C=f;C<n.length;C++)p<<=1,p|=r>>>n[C]&1;d[y+0]=g>>>0,d[y+1]=p>>>0},b.expand=function(h,r,d){var y=0,g=0;y=(1&h)<<5|h>>>27;for(var p=23;p>=15;p-=4)y<<=6,y|=h>>>p&63;for(p=11;p>=3;p-=4)g|=h>>>p&63,g<<=6;g|=(31&h)<<1|h>>>31,r[d+0]=y>>>0,r[d+1]=g>>>0};var t=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];b.substitute=function(h,r){for(var d=0,y=0;y<4;y++)d<<=4,d|=t[64*y+(h>>>18-6*y&63)];for(y=0;y<4;y++)d<<=4,d|=t[256+64*y+(r>>>18-6*y&63)];return d>>>0};var e=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];b.permute=function(h){for(var r=0,d=0;d<e.length;d++)r<<=1,r|=h>>>e[d]&1;return r>>>0},b.padSplit=function(h,r,d){for(var y=h.toString(2);y.length<r;)y="0"+y;for(var g=[],p=0;p<r;p+=d)g.push(y.slice(p,p+d));return g.join(" ")}},98829:(M,b,n)=>{var t=n(85563),e=n(29799),l=n(21419),r={binary:!0,hex:!0,base64:!0};b.DiffieHellmanGroup=b.createDiffieHellmanGroup=b.getDiffieHellman=function h(y){var g=new Buffer(e[y].prime,"hex"),p=new Buffer(e[y].gen,"hex");return new l(g,p)},b.createDiffieHellman=b.DiffieHellman=function d(y,g,p,f){return Buffer.isBuffer(g)||void 0===r[g]?d(y,"binary",g,p):(g=g||"binary",f=f||"binary",p=p||new Buffer([2]),Buffer.isBuffer(p)||(p=new Buffer(p,f)),"number"==typeof y?new l(t(y,p),p,!0):(Buffer.isBuffer(y)||(y=new Buffer(y,g)),new l(y,p,!0)))}},21419:(M,b,n)=>{var t=n(88313),l=new(n(17079)),h=new t(24),r=new t(11),d=new t(10),y=new t(3),g=new t(7),p=n(85563),f=n(53753);function C(V,D){return D=D||"utf8",Buffer.isBuffer(V)||(V=new Buffer(V,D)),this._pub=new t(V),this}function N(V,D){return D=D||"utf8",Buffer.isBuffer(V)||(V=new Buffer(V,D)),this._priv=new t(V),this}M.exports=H;var a={};function H(V,D,U){this.setGenerator(D),this.__prime=new t(V),this._prime=t.mont(this.__prime),this._primeLen=V.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,U?(this.setPublicKey=C,this.setPrivateKey=N):this._primeCode=8}function F(V,D){var U=new Buffer(V.toArray());return D?U.toString(D):U}Object.defineProperty(H.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function O(V,D){var U=D.toString("hex"),q=[U,V.toString(16)].join("_");if(q in a)return a[q];var G,J=0;if(V.isEven()||!p.simpleSieve||!p.fermatTest(V)||!l.test(V))return J+=1,a[q]=J+="02"===U||"05"===U?8:4,J;switch(l.test(V.shrn(1))||(J+=2),U){case"02":V.mod(h).cmp(r)&&(J+=8);break;case"05":(G=V.mod(d)).cmp(y)&&G.cmp(g)&&(J+=8);break;default:J+=4}return a[q]=J,J}(this.__prime,this.__gen)),this._primeCode}}),H.prototype.generateKeys=function(){return this._priv||(this._priv=new t(f(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},H.prototype.computeSecret=function(V){var D=(V=(V=new t(V)).toRed(this._prime)).redPow(this._priv).fromRed(),U=new Buffer(D.toArray()),q=this.getPrime();if(U.length<q.length){var J=new Buffer(q.length-U.length);J.fill(0),U=Buffer.concat([J,U])}return U},H.prototype.getPublicKey=function(D){return F(this._pub,D)},H.prototype.getPrivateKey=function(D){return F(this._priv,D)},H.prototype.getPrime=function(V){return F(this.__prime,V)},H.prototype.getGenerator=function(V){return F(this._gen,V)},H.prototype.setGenerator=function(V,D){return D=D||"utf8",Buffer.isBuffer(V)||(V=new Buffer(V,D)),this.__gen=V,this._gen=new t(V),this}},85563:(M,b,n)=>{var t=n(53753);M.exports=J,J.simpleSieve=U,J.fermatTest=q;var e=n(88313),l=new e(24),r=new(n(17079)),d=new e(1),y=new e(2),g=new e(5),C=(new e(16),new e(8),new e(10)),N=new e(3),O=(new e(7),new e(11)),H=new e(4),V=(new e(12),null);function U(G){for(var ie=function D(){if(null!==V)return V;var ie=[];ie[0]=2;for(var K=1,re=3;re<1048576;re+=2){for(var oe=Math.ceil(Math.sqrt(re)),B=0;B<K&&ie[B]<=oe&&re%ie[B]!=0;B++);K!==B&&ie[B]<=oe||(ie[K++]=re)}return V=ie,ie}(),K=0;K<ie.length;K++)if(0===G.modn(ie[K]))return 0===G.cmpn(ie[K]);return!0}function q(G){var ie=e.mont(G);return 0===y.toRed(ie).redPow(G.subn(1)).fromRed().cmpn(1)}function J(G,ie){if(G<16)return new e(2===ie||5===ie?[140,123]:[140,39]);ie=new e(ie);for(var K,re;;){for(K=new e(t(Math.ceil(G/8)));K.bitLength()>G;)K.ishrn(1);if(K.isEven()&&K.iadd(d),K.testn(1)||K.iadd(y),ie.cmp(y)){if(!ie.cmp(g))for(;K.mod(C).cmp(N);)K.iadd(H)}else for(;K.mod(l).cmp(O);)K.iadd(H);if(U(re=K.shrn(1))&&U(K)&&q(re)&&q(K)&&r.test(re)&&r.test(K))return K}}},88313:function(M,b,n){!function(t,e){"use strict";function l(B,s){if(!B)throw new Error(s||"Assertion failed")}function h(B,s){B.super_=s;var _=function(){};_.prototype=s.prototype,B.prototype=new _,B.prototype.constructor=B}function r(B,s,_){if(r.isBN(B))return B;this.negative=0,this.words=null,this.length=0,this.red=null,null!==B&&(("le"===s||"be"===s)&&(_=s,s=10),this._init(B||0,s||10,_||"be"))}var d;"object"==typeof t?t.exports=r:e.BN=r,r.BN=r,r.wordSize=26;try{d=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:n(7748).Buffer}catch{}function y(B,s){var _=B.charCodeAt(s);return _>=65&&_<=70?_-55:_>=97&&_<=102?_-87:_-48&15}function g(B,s,_){var w=y(B,_);return _-1>=s&&(w|=y(B,_-1)<<4),w}function p(B,s,_,w){for(var E=0,x=Math.min(B.length,_),j=s;j<x;j++){var $=B.charCodeAt(j)-48;E*=w,E+=$>=49?$-49+10:$>=17?$-17+10:$}return E}r.isBN=function(s){return s instanceof r||null!==s&&"object"==typeof s&&s.constructor.wordSize===r.wordSize&&Array.isArray(s.words)},r.max=function(s,_){return s.cmp(_)>0?s:_},r.min=function(s,_){return s.cmp(_)<0?s:_},r.prototype._init=function(s,_,w){if("number"==typeof s)return this._initNumber(s,_,w);if("object"==typeof s)return this._initArray(s,_,w);"hex"===_&&(_=16),l(_===(0|_)&&_>=2&&_<=36);var E=0;"-"===(s=s.toString().replace(/\s+/g,""))[0]&&(E++,this.negative=1),E<s.length&&(16===_?this._parseHex(s,E,w):(this._parseBase(s,_,E),"le"===w&&this._initArray(this.toArray(),_,w)))},r.prototype._initNumber=function(s,_,w){s<0&&(this.negative=1,s=-s),s<67108864?(this.words=[67108863&s],this.length=1):s<4503599627370496?(this.words=[67108863&s,s/67108864&67108863],this.length=2):(l(s<9007199254740992),this.words=[67108863&s,s/67108864&67108863,1],this.length=3),"le"===w&&this._initArray(this.toArray(),_,w)},r.prototype._initArray=function(s,_,w){if(l("number"==typeof s.length),s.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(s.length/3),this.words=new Array(this.length);for(var E=0;E<this.length;E++)this.words[E]=0;var x,j,$=0;if("be"===w)for(E=s.length-1,x=0;E>=0;E-=3)this.words[x]|=(j=s[E]|s[E-1]<<8|s[E-2]<<16)<<$&67108863,this.words[x+1]=j>>>26-$&67108863,($+=24)>=26&&($-=26,x++);else if("le"===w)for(E=0,x=0;E<s.length;E+=3)this.words[x]|=(j=s[E]|s[E+1]<<8|s[E+2]<<16)<<$&67108863,this.words[x+1]=j>>>26-$&67108863,($+=24)>=26&&($-=26,x++);return this.strip()},r.prototype._parseHex=function(s,_,w){this.length=Math.ceil((s.length-_)/6),this.words=new Array(this.length);for(var E=0;E<this.length;E++)this.words[E]=0;var $,x=0,j=0;if("be"===w)for(E=s.length-1;E>=_;E-=2)$=g(s,_,E)<<x,this.words[j]|=67108863&$,x>=18?(x-=18,this.words[j+=1]|=$>>>26):x+=8;else for(E=(s.length-_)%2==0?_+1:_;E<s.length;E+=2)$=g(s,_,E)<<x,this.words[j]|=67108863&$,x>=18?(x-=18,this.words[j+=1]|=$>>>26):x+=8;this.strip()},r.prototype._parseBase=function(s,_,w){this.words=[0],this.length=1;for(var E=0,x=1;x<=67108863;x*=_)E++;E--,x=x/_|0;for(var j=s.length-w,$=j%E,Y=Math.min(j,j-$)+w,u=0,W=w;W<Y;W+=E)u=p(s,W,W+E,_),this.imuln(x),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==$){var fe=1;for(u=p(s,W,s.length,_),W=0;W<$;W++)fe*=_;this.imuln(fe),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},r.prototype.copy=function(s){s.words=new Array(this.length);for(var _=0;_<this.length;_++)s.words[_]=this.words[_];s.length=this.length,s.negative=this.negative,s.red=this.red},r.prototype.clone=function(){var s=new r(null);return this.copy(s),s},r.prototype._expand=function(s){for(;this.length<s;)this.words[this.length++]=0;return this},r.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},r.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},r.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],C=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],N=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function O(B,s,_){_.negative=s.negative^B.negative;var w=B.length+s.length|0;_.length=w,w=w-1|0;var E=0|B.words[0],x=0|s.words[0],j=E*x,Y=j/67108864|0;_.words[0]=67108863&j;for(var u=1;u<w;u++){for(var W=Y>>>26,fe=67108863&Y,ae=Math.min(u,s.length-1),ye=Math.max(0,u-B.length+1);ye<=ae;ye++)W+=(j=(E=0|B.words[u-ye|0])*(x=0|s.words[ye])+fe)/67108864|0,fe=67108863&j;_.words[u]=0|fe,Y=0|W}return 0!==Y?_.words[u]=0|Y:_.length--,_.strip()}r.prototype.toString=function(s,_){var w;if(_=0|_||1,16===(s=s||10)||"hex"===s){w="";for(var E=0,x=0,j=0;j<this.length;j++){var $=this.words[j],Y=(16777215&($<<E|x)).toString(16);w=0!=(x=$>>>24-E&16777215)||j!==this.length-1?f[6-Y.length]+Y+w:Y+w,(E+=2)>=26&&(E-=26,j--)}for(0!==x&&(w=x.toString(16)+w);w.length%_!=0;)w="0"+w;return 0!==this.negative&&(w="-"+w),w}if(s===(0|s)&&s>=2&&s<=36){var u=C[s],W=N[s];w="";var fe=this.clone();for(fe.negative=0;!fe.isZero();){var ae=fe.modn(W).toString(s);w=(fe=fe.idivn(W)).isZero()?ae+w:f[u-ae.length]+ae+w}for(this.isZero()&&(w="0"+w);w.length%_!=0;)w="0"+w;return 0!==this.negative&&(w="-"+w),w}l(!1,"Base should be between 2 and 36")},r.prototype.toNumber=function(){var s=this.words[0];return 2===this.length?s+=67108864*this.words[1]:3===this.length&&1===this.words[2]?s+=4503599627370496+67108864*this.words[1]:this.length>2&&l(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-s:s},r.prototype.toJSON=function(){return this.toString(16)},r.prototype.toBuffer=function(s,_){return l(typeof d<"u"),this.toArrayLike(d,s,_)},r.prototype.toArray=function(s,_){return this.toArrayLike(Array,s,_)},r.prototype.toArrayLike=function(s,_,w){var E=this.byteLength(),x=w||Math.max(1,E);l(E<=x,"byte array longer than desired length"),l(x>0,"Requested array length <= 0"),this.strip();var Y,u,j="le"===_,$=new s(x),W=this.clone();if(j){for(u=0;!W.isZero();u++)Y=W.andln(255),W.iushrn(8),$[u]=Y;for(;u<x;u++)$[u]=0}else{for(u=0;u<x-E;u++)$[u]=0;for(u=0;!W.isZero();u++)Y=W.andln(255),W.iushrn(8),$[x-u-1]=Y}return $},r.prototype._countBits=Math.clz32?function(s){return 32-Math.clz32(s)}:function(s){var _=s,w=0;return _>=4096&&(w+=13,_>>>=13),_>=64&&(w+=7,_>>>=7),_>=8&&(w+=4,_>>>=4),_>=2&&(w+=2,_>>>=2),w+_},r.prototype._zeroBits=function(s){if(0===s)return 26;var _=s,w=0;return 0==(8191&_)&&(w+=13,_>>>=13),0==(127&_)&&(w+=7,_>>>=7),0==(15&_)&&(w+=4,_>>>=4),0==(3&_)&&(w+=2,_>>>=2),0==(1&_)&&w++,w},r.prototype.bitLength=function(){var _=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+_},r.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s=0,_=0;_<this.length;_++){var w=this._zeroBits(this.words[_]);if(s+=w,26!==w)break}return s},r.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},r.prototype.toTwos=function(s){return 0!==this.negative?this.abs().inotn(s).iaddn(1):this.clone()},r.prototype.fromTwos=function(s){return this.testn(s-1)?this.notn(s).iaddn(1).ineg():this.clone()},r.prototype.isNeg=function(){return 0!==this.negative},r.prototype.neg=function(){return this.clone().ineg()},r.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},r.prototype.iuor=function(s){for(;this.length<s.length;)this.words[this.length++]=0;for(var _=0;_<s.length;_++)this.words[_]=this.words[_]|s.words[_];return this.strip()},r.prototype.ior=function(s){return l(0==(this.negative|s.negative)),this.iuor(s)},r.prototype.or=function(s){return this.length>s.length?this.clone().ior(s):s.clone().ior(this)},r.prototype.uor=function(s){return this.length>s.length?this.clone().iuor(s):s.clone().iuor(this)},r.prototype.iuand=function(s){var _;_=this.length>s.length?s:this;for(var w=0;w<_.length;w++)this.words[w]=this.words[w]&s.words[w];return this.length=_.length,this.strip()},r.prototype.iand=function(s){return l(0==(this.negative|s.negative)),this.iuand(s)},r.prototype.and=function(s){return this.length>s.length?this.clone().iand(s):s.clone().iand(this)},r.prototype.uand=function(s){return this.length>s.length?this.clone().iuand(s):s.clone().iuand(this)},r.prototype.iuxor=function(s){var _,w;this.length>s.length?(_=this,w=s):(_=s,w=this);for(var E=0;E<w.length;E++)this.words[E]=_.words[E]^w.words[E];if(this!==_)for(;E<_.length;E++)this.words[E]=_.words[E];return this.length=_.length,this.strip()},r.prototype.ixor=function(s){return l(0==(this.negative|s.negative)),this.iuxor(s)},r.prototype.xor=function(s){return this.length>s.length?this.clone().ixor(s):s.clone().ixor(this)},r.prototype.uxor=function(s){return this.length>s.length?this.clone().iuxor(s):s.clone().iuxor(this)},r.prototype.inotn=function(s){l("number"==typeof s&&s>=0);var _=0|Math.ceil(s/26),w=s%26;this._expand(_),w>0&&_--;for(var E=0;E<_;E++)this.words[E]=67108863&~this.words[E];return w>0&&(this.words[E]=~this.words[E]&67108863>>26-w),this.strip()},r.prototype.notn=function(s){return this.clone().inotn(s)},r.prototype.setn=function(s,_){l("number"==typeof s&&s>=0);var w=s/26|0,E=s%26;return this._expand(w+1),this.words[w]=_?this.words[w]|1<<E:this.words[w]&~(1<<E),this.strip()},r.prototype.iadd=function(s){var _,w,E;if(0!==this.negative&&0===s.negative)return this.negative=0,_=this.isub(s),this.negative^=1,this._normSign();if(0===this.negative&&0!==s.negative)return s.negative=0,_=this.isub(s),s.negative=1,_._normSign();this.length>s.length?(w=this,E=s):(w=s,E=this);for(var x=0,j=0;j<E.length;j++)this.words[j]=67108863&(_=(0|w.words[j])+(0|E.words[j])+x),x=_>>>26;for(;0!==x&&j<w.length;j++)this.words[j]=67108863&(_=(0|w.words[j])+x),x=_>>>26;if(this.length=w.length,0!==x)this.words[this.length]=x,this.length++;else if(w!==this)for(;j<w.length;j++)this.words[j]=w.words[j];return this},r.prototype.add=function(s){var _;return 0!==s.negative&&0===this.negative?(s.negative=0,_=this.sub(s),s.negative^=1,_):0===s.negative&&0!==this.negative?(this.negative=0,_=s.sub(this),this.negative=1,_):this.length>s.length?this.clone().iadd(s):s.clone().iadd(this)},r.prototype.isub=function(s){if(0!==s.negative){s.negative=0;var _=this.iadd(s);return s.negative=1,_._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(s),this.negative=1,this._normSign();var E,x,w=this.cmp(s);if(0===w)return this.negative=0,this.length=1,this.words[0]=0,this;w>0?(E=this,x=s):(E=s,x=this);for(var j=0,$=0;$<x.length;$++)j=(_=(0|E.words[$])-(0|x.words[$])+j)>>26,this.words[$]=67108863&_;for(;0!==j&&$<E.length;$++)j=(_=(0|E.words[$])+j)>>26,this.words[$]=67108863&_;if(0===j&&$<E.length&&E!==this)for(;$<E.length;$++)this.words[$]=E.words[$];return this.length=Math.max(this.length,$),E!==this&&(this.negative=1),this.strip()},r.prototype.sub=function(s){return this.clone().isub(s)};var H=function(s,_,w){var Y,u,W,E=s.words,x=_.words,j=w.words,$=0,fe=0|E[0],ae=8191&fe,ye=fe>>>13,Qe=0|E[1],Ot=8191&Qe,At=Qe>>>13,Ze=0|E[2],at=8191&Ze,Be=Ze>>>13,Lt=0|E[3],_e=8191&Lt,ne=Lt>>>13,be=0|E[4],Te=8191&be,$e=be>>>13,ft=0|E[5],Ge=8191&ft,Ft=ft>>>13,br=0|E[6],rt=8191&br,st=br>>>13,Dt=0|E[7],ot=8191&Dt,nt=Dt>>>13,Yt=0|E[8],Ne=8191&Yt,X=Yt>>>13,ge=0|E[9],Me=8191&ge,We=ge>>>13,Re=0|x[0],pt=8191&Re,Zt=Re>>>13,cr=0|x[1],wt=8191&cr,gt=cr>>>13,Ut=0|x[2],hr=8191&Ut,Cr=Ut>>>13,Ue=0|x[3],Pt=8191&Ue,He=Ue>>>13,tt=0|x[4],Ke=8191&tt,kt=tt>>>13,xe=0|x[5],Fe=8191&xe,lt=xe>>>13,St=0|x[6],qe=8191&St,ke=St>>>13,ct=0|x[7],vt=8191&ct,$t=ct>>>13,Vr=0|x[8],Sr=8191&Vr,Ar=Vr>>>13,Jr=0|x[9],Fr=8191&Jr,Gt=Jr>>>13;w.negative=s.negative^_.negative,w.length=19;var le=($+(Y=Math.imul(ae,pt))|0)+((8191&(u=(u=Math.imul(ae,Zt))+Math.imul(ye,pt)|0))<<13)|0;$=((W=Math.imul(ye,Zt))+(u>>>13)|0)+(le>>>26)|0,le&=67108863,Y=Math.imul(Ot,pt),u=(u=Math.imul(Ot,Zt))+Math.imul(At,pt)|0,W=Math.imul(At,Zt);var Ce=($+(Y=Y+Math.imul(ae,wt)|0)|0)+((8191&(u=(u=u+Math.imul(ae,gt)|0)+Math.imul(ye,wt)|0))<<13)|0;$=((W=W+Math.imul(ye,gt)|0)+(u>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,Y=Math.imul(at,pt),u=(u=Math.imul(at,Zt))+Math.imul(Be,pt)|0,W=Math.imul(Be,Zt),Y=Y+Math.imul(Ot,wt)|0,u=(u=u+Math.imul(Ot,gt)|0)+Math.imul(At,wt)|0,W=W+Math.imul(At,gt)|0;var Ie=($+(Y=Y+Math.imul(ae,hr)|0)|0)+((8191&(u=(u=u+Math.imul(ae,Cr)|0)+Math.imul(ye,hr)|0))<<13)|0;$=((W=W+Math.imul(ye,Cr)|0)+(u>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,Y=Math.imul(_e,pt),u=(u=Math.imul(_e,Zt))+Math.imul(ne,pt)|0,W=Math.imul(ne,Zt),Y=Y+Math.imul(at,wt)|0,u=(u=u+Math.imul(at,gt)|0)+Math.imul(Be,wt)|0,W=W+Math.imul(Be,gt)|0,Y=Y+Math.imul(Ot,hr)|0,u=(u=u+Math.imul(Ot,Cr)|0)+Math.imul(At,hr)|0,W=W+Math.imul(At,Cr)|0;var Pe=($+(Y=Y+Math.imul(ae,Pt)|0)|0)+((8191&(u=(u=u+Math.imul(ae,He)|0)+Math.imul(ye,Pt)|0))<<13)|0;$=((W=W+Math.imul(ye,He)|0)+(u>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,Y=Math.imul(Te,pt),u=(u=Math.imul(Te,Zt))+Math.imul($e,pt)|0,W=Math.imul($e,Zt),Y=Y+Math.imul(_e,wt)|0,u=(u=u+Math.imul(_e,gt)|0)+Math.imul(ne,wt)|0,W=W+Math.imul(ne,gt)|0,Y=Y+Math.imul(at,hr)|0,u=(u=u+Math.imul(at,Cr)|0)+Math.imul(Be,hr)|0,W=W+Math.imul(Be,Cr)|0,Y=Y+Math.imul(Ot,Pt)|0,u=(u=u+Math.imul(Ot,He)|0)+Math.imul(At,Pt)|0,W=W+Math.imul(At,He)|0;var Oe=($+(Y=Y+Math.imul(ae,Ke)|0)|0)+((8191&(u=(u=u+Math.imul(ae,kt)|0)+Math.imul(ye,Ke)|0))<<13)|0;$=((W=W+Math.imul(ye,kt)|0)+(u>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,Y=Math.imul(Ge,pt),u=(u=Math.imul(Ge,Zt))+Math.imul(Ft,pt)|0,W=Math.imul(Ft,Zt),Y=Y+Math.imul(Te,wt)|0,u=(u=u+Math.imul(Te,gt)|0)+Math.imul($e,wt)|0,W=W+Math.imul($e,gt)|0,Y=Y+Math.imul(_e,hr)|0,u=(u=u+Math.imul(_e,Cr)|0)+Math.imul(ne,hr)|0,W=W+Math.imul(ne,Cr)|0,Y=Y+Math.imul(at,Pt)|0,u=(u=u+Math.imul(at,He)|0)+Math.imul(Be,Pt)|0,W=W+Math.imul(Be,He)|0,Y=Y+Math.imul(Ot,Ke)|0,u=(u=u+Math.imul(Ot,kt)|0)+Math.imul(At,Ke)|0,W=W+Math.imul(At,kt)|0;var Se=($+(Y=Y+Math.imul(ae,Fe)|0)|0)+((8191&(u=(u=u+Math.imul(ae,lt)|0)+Math.imul(ye,Fe)|0))<<13)|0;$=((W=W+Math.imul(ye,lt)|0)+(u>>>13)|0)+(Se>>>26)|0,Se&=67108863,Y=Math.imul(rt,pt),u=(u=Math.imul(rt,Zt))+Math.imul(st,pt)|0,W=Math.imul(st,Zt),Y=Y+Math.imul(Ge,wt)|0,u=(u=u+Math.imul(Ge,gt)|0)+Math.imul(Ft,wt)|0,W=W+Math.imul(Ft,gt)|0,Y=Y+Math.imul(Te,hr)|0,u=(u=u+Math.imul(Te,Cr)|0)+Math.imul($e,hr)|0,W=W+Math.imul($e,Cr)|0,Y=Y+Math.imul(_e,Pt)|0,u=(u=u+Math.imul(_e,He)|0)+Math.imul(ne,Pt)|0,W=W+Math.imul(ne,He)|0,Y=Y+Math.imul(at,Ke)|0,u=(u=u+Math.imul(at,kt)|0)+Math.imul(Be,Ke)|0,W=W+Math.imul(Be,kt)|0,Y=Y+Math.imul(Ot,Fe)|0,u=(u=u+Math.imul(Ot,lt)|0)+Math.imul(At,Fe)|0,W=W+Math.imul(At,lt)|0;var Xe=($+(Y=Y+Math.imul(ae,qe)|0)|0)+((8191&(u=(u=u+Math.imul(ae,ke)|0)+Math.imul(ye,qe)|0))<<13)|0;$=((W=W+Math.imul(ye,ke)|0)+(u>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,Y=Math.imul(ot,pt),u=(u=Math.imul(ot,Zt))+Math.imul(nt,pt)|0,W=Math.imul(nt,Zt),Y=Y+Math.imul(rt,wt)|0,u=(u=u+Math.imul(rt,gt)|0)+Math.imul(st,wt)|0,W=W+Math.imul(st,gt)|0,Y=Y+Math.imul(Ge,hr)|0,u=(u=u+Math.imul(Ge,Cr)|0)+Math.imul(Ft,hr)|0,W=W+Math.imul(Ft,Cr)|0,Y=Y+Math.imul(Te,Pt)|0,u=(u=u+Math.imul(Te,He)|0)+Math.imul($e,Pt)|0,W=W+Math.imul($e,He)|0,Y=Y+Math.imul(_e,Ke)|0,u=(u=u+Math.imul(_e,kt)|0)+Math.imul(ne,Ke)|0,W=W+Math.imul(ne,kt)|0,Y=Y+Math.imul(at,Fe)|0,u=(u=u+Math.imul(at,lt)|0)+Math.imul(Be,Fe)|0,W=W+Math.imul(Be,lt)|0,Y=Y+Math.imul(Ot,qe)|0,u=(u=u+Math.imul(Ot,ke)|0)+Math.imul(At,qe)|0,W=W+Math.imul(At,ke)|0;var Ct=($+(Y=Y+Math.imul(ae,vt)|0)|0)+((8191&(u=(u=u+Math.imul(ae,$t)|0)+Math.imul(ye,vt)|0))<<13)|0;$=((W=W+Math.imul(ye,$t)|0)+(u>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,Y=Math.imul(Ne,pt),u=(u=Math.imul(Ne,Zt))+Math.imul(X,pt)|0,W=Math.imul(X,Zt),Y=Y+Math.imul(ot,wt)|0,u=(u=u+Math.imul(ot,gt)|0)+Math.imul(nt,wt)|0,W=W+Math.imul(nt,gt)|0,Y=Y+Math.imul(rt,hr)|0,u=(u=u+Math.imul(rt,Cr)|0)+Math.imul(st,hr)|0,W=W+Math.imul(st,Cr)|0,Y=Y+Math.imul(Ge,Pt)|0,u=(u=u+Math.imul(Ge,He)|0)+Math.imul(Ft,Pt)|0,W=W+Math.imul(Ft,He)|0,Y=Y+Math.imul(Te,Ke)|0,u=(u=u+Math.imul(Te,kt)|0)+Math.imul($e,Ke)|0,W=W+Math.imul($e,kt)|0,Y=Y+Math.imul(_e,Fe)|0,u=(u=u+Math.imul(_e,lt)|0)+Math.imul(ne,Fe)|0,W=W+Math.imul(ne,lt)|0,Y=Y+Math.imul(at,qe)|0,u=(u=u+Math.imul(at,ke)|0)+Math.imul(Be,qe)|0,W=W+Math.imul(Be,ke)|0,Y=Y+Math.imul(Ot,vt)|0,u=(u=u+Math.imul(Ot,$t)|0)+Math.imul(At,vt)|0,W=W+Math.imul(At,$t)|0;var zt=($+(Y=Y+Math.imul(ae,Sr)|0)|0)+((8191&(u=(u=u+Math.imul(ae,Ar)|0)+Math.imul(ye,Sr)|0))<<13)|0;$=((W=W+Math.imul(ye,Ar)|0)+(u>>>13)|0)+(zt>>>26)|0,zt&=67108863,Y=Math.imul(Me,pt),u=(u=Math.imul(Me,Zt))+Math.imul(We,pt)|0,W=Math.imul(We,Zt),Y=Y+Math.imul(Ne,wt)|0,u=(u=u+Math.imul(Ne,gt)|0)+Math.imul(X,wt)|0,W=W+Math.imul(X,gt)|0,Y=Y+Math.imul(ot,hr)|0,u=(u=u+Math.imul(ot,Cr)|0)+Math.imul(nt,hr)|0,W=W+Math.imul(nt,Cr)|0,Y=Y+Math.imul(rt,Pt)|0,u=(u=u+Math.imul(rt,He)|0)+Math.imul(st,Pt)|0,W=W+Math.imul(st,He)|0,Y=Y+Math.imul(Ge,Ke)|0,u=(u=u+Math.imul(Ge,kt)|0)+Math.imul(Ft,Ke)|0,W=W+Math.imul(Ft,kt)|0,Y=Y+Math.imul(Te,Fe)|0,u=(u=u+Math.imul(Te,lt)|0)+Math.imul($e,Fe)|0,W=W+Math.imul($e,lt)|0,Y=Y+Math.imul(_e,qe)|0,u=(u=u+Math.imul(_e,ke)|0)+Math.imul(ne,qe)|0,W=W+Math.imul(ne,ke)|0,Y=Y+Math.imul(at,vt)|0,u=(u=u+Math.imul(at,$t)|0)+Math.imul(Be,vt)|0,W=W+Math.imul(Be,$t)|0,Y=Y+Math.imul(Ot,Sr)|0,u=(u=u+Math.imul(Ot,Ar)|0)+Math.imul(At,Sr)|0,W=W+Math.imul(At,Ar)|0;var kr=($+(Y=Y+Math.imul(ae,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(ae,Gt)|0)+Math.imul(ye,Fr)|0))<<13)|0;$=((W=W+Math.imul(ye,Gt)|0)+(u>>>13)|0)+(kr>>>26)|0,kr&=67108863,Y=Math.imul(Me,wt),u=(u=Math.imul(Me,gt))+Math.imul(We,wt)|0,W=Math.imul(We,gt),Y=Y+Math.imul(Ne,hr)|0,u=(u=u+Math.imul(Ne,Cr)|0)+Math.imul(X,hr)|0,W=W+Math.imul(X,Cr)|0,Y=Y+Math.imul(ot,Pt)|0,u=(u=u+Math.imul(ot,He)|0)+Math.imul(nt,Pt)|0,W=W+Math.imul(nt,He)|0,Y=Y+Math.imul(rt,Ke)|0,u=(u=u+Math.imul(rt,kt)|0)+Math.imul(st,Ke)|0,W=W+Math.imul(st,kt)|0,Y=Y+Math.imul(Ge,Fe)|0,u=(u=u+Math.imul(Ge,lt)|0)+Math.imul(Ft,Fe)|0,W=W+Math.imul(Ft,lt)|0,Y=Y+Math.imul(Te,qe)|0,u=(u=u+Math.imul(Te,ke)|0)+Math.imul($e,qe)|0,W=W+Math.imul($e,ke)|0,Y=Y+Math.imul(_e,vt)|0,u=(u=u+Math.imul(_e,$t)|0)+Math.imul(ne,vt)|0,W=W+Math.imul(ne,$t)|0,Y=Y+Math.imul(at,Sr)|0,u=(u=u+Math.imul(at,Ar)|0)+Math.imul(Be,Sr)|0,W=W+Math.imul(Be,Ar)|0;var Br=($+(Y=Y+Math.imul(Ot,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(Ot,Gt)|0)+Math.imul(At,Fr)|0))<<13)|0;$=((W=W+Math.imul(At,Gt)|0)+(u>>>13)|0)+(Br>>>26)|0,Br&=67108863,Y=Math.imul(Me,hr),u=(u=Math.imul(Me,Cr))+Math.imul(We,hr)|0,W=Math.imul(We,Cr),Y=Y+Math.imul(Ne,Pt)|0,u=(u=u+Math.imul(Ne,He)|0)+Math.imul(X,Pt)|0,W=W+Math.imul(X,He)|0,Y=Y+Math.imul(ot,Ke)|0,u=(u=u+Math.imul(ot,kt)|0)+Math.imul(nt,Ke)|0,W=W+Math.imul(nt,kt)|0,Y=Y+Math.imul(rt,Fe)|0,u=(u=u+Math.imul(rt,lt)|0)+Math.imul(st,Fe)|0,W=W+Math.imul(st,lt)|0,Y=Y+Math.imul(Ge,qe)|0,u=(u=u+Math.imul(Ge,ke)|0)+Math.imul(Ft,qe)|0,W=W+Math.imul(Ft,ke)|0,Y=Y+Math.imul(Te,vt)|0,u=(u=u+Math.imul(Te,$t)|0)+Math.imul($e,vt)|0,W=W+Math.imul($e,$t)|0,Y=Y+Math.imul(_e,Sr)|0,u=(u=u+Math.imul(_e,Ar)|0)+Math.imul(ne,Sr)|0,W=W+Math.imul(ne,Ar)|0;var xt=($+(Y=Y+Math.imul(at,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(at,Gt)|0)+Math.imul(Be,Fr)|0))<<13)|0;$=((W=W+Math.imul(Be,Gt)|0)+(u>>>13)|0)+(xt>>>26)|0,xt&=67108863,Y=Math.imul(Me,Pt),u=(u=Math.imul(Me,He))+Math.imul(We,Pt)|0,W=Math.imul(We,He),Y=Y+Math.imul(Ne,Ke)|0,u=(u=u+Math.imul(Ne,kt)|0)+Math.imul(X,Ke)|0,W=W+Math.imul(X,kt)|0,Y=Y+Math.imul(ot,Fe)|0,u=(u=u+Math.imul(ot,lt)|0)+Math.imul(nt,Fe)|0,W=W+Math.imul(nt,lt)|0,Y=Y+Math.imul(rt,qe)|0,u=(u=u+Math.imul(rt,ke)|0)+Math.imul(st,qe)|0,W=W+Math.imul(st,ke)|0,Y=Y+Math.imul(Ge,vt)|0,u=(u=u+Math.imul(Ge,$t)|0)+Math.imul(Ft,vt)|0,W=W+Math.imul(Ft,$t)|0,Y=Y+Math.imul(Te,Sr)|0,u=(u=u+Math.imul(Te,Ar)|0)+Math.imul($e,Sr)|0,W=W+Math.imul($e,Ar)|0;var tr=($+(Y=Y+Math.imul(_e,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(_e,Gt)|0)+Math.imul(ne,Fr)|0))<<13)|0;$=((W=W+Math.imul(ne,Gt)|0)+(u>>>13)|0)+(tr>>>26)|0,tr&=67108863,Y=Math.imul(Me,Ke),u=(u=Math.imul(Me,kt))+Math.imul(We,Ke)|0,W=Math.imul(We,kt),Y=Y+Math.imul(Ne,Fe)|0,u=(u=u+Math.imul(Ne,lt)|0)+Math.imul(X,Fe)|0,W=W+Math.imul(X,lt)|0,Y=Y+Math.imul(ot,qe)|0,u=(u=u+Math.imul(ot,ke)|0)+Math.imul(nt,qe)|0,W=W+Math.imul(nt,ke)|0,Y=Y+Math.imul(rt,vt)|0,u=(u=u+Math.imul(rt,$t)|0)+Math.imul(st,vt)|0,W=W+Math.imul(st,$t)|0,Y=Y+Math.imul(Ge,Sr)|0,u=(u=u+Math.imul(Ge,Ar)|0)+Math.imul(Ft,Sr)|0,W=W+Math.imul(Ft,Ar)|0;var Rr=($+(Y=Y+Math.imul(Te,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(Te,Gt)|0)+Math.imul($e,Fr)|0))<<13)|0;$=((W=W+Math.imul($e,Gt)|0)+(u>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,Y=Math.imul(Me,Fe),u=(u=Math.imul(Me,lt))+Math.imul(We,Fe)|0,W=Math.imul(We,lt),Y=Y+Math.imul(Ne,qe)|0,u=(u=u+Math.imul(Ne,ke)|0)+Math.imul(X,qe)|0,W=W+Math.imul(X,ke)|0,Y=Y+Math.imul(ot,vt)|0,u=(u=u+Math.imul(ot,$t)|0)+Math.imul(nt,vt)|0,W=W+Math.imul(nt,$t)|0,Y=Y+Math.imul(rt,Sr)|0,u=(u=u+Math.imul(rt,Ar)|0)+Math.imul(st,Sr)|0,W=W+Math.imul(st,Ar)|0;var Ur=($+(Y=Y+Math.imul(Ge,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(Ge,Gt)|0)+Math.imul(Ft,Fr)|0))<<13)|0;$=((W=W+Math.imul(Ft,Gt)|0)+(u>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,Y=Math.imul(Me,qe),u=(u=Math.imul(Me,ke))+Math.imul(We,qe)|0,W=Math.imul(We,ke),Y=Y+Math.imul(Ne,vt)|0,u=(u=u+Math.imul(Ne,$t)|0)+Math.imul(X,vt)|0,W=W+Math.imul(X,$t)|0,Y=Y+Math.imul(ot,Sr)|0,u=(u=u+Math.imul(ot,Ar)|0)+Math.imul(nt,Sr)|0,W=W+Math.imul(nt,Ar)|0;var Nr=($+(Y=Y+Math.imul(rt,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(rt,Gt)|0)+Math.imul(st,Fr)|0))<<13)|0;$=((W=W+Math.imul(st,Gt)|0)+(u>>>13)|0)+(Nr>>>26)|0,Nr&=67108863,Y=Math.imul(Me,vt),u=(u=Math.imul(Me,$t))+Math.imul(We,vt)|0,W=Math.imul(We,$t),Y=Y+Math.imul(Ne,Sr)|0,u=(u=u+Math.imul(Ne,Ar)|0)+Math.imul(X,Sr)|0,W=W+Math.imul(X,Ar)|0;var zr=($+(Y=Y+Math.imul(ot,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(ot,Gt)|0)+Math.imul(nt,Fr)|0))<<13)|0;$=((W=W+Math.imul(nt,Gt)|0)+(u>>>13)|0)+(zr>>>26)|0,zr&=67108863,Y=Math.imul(Me,Sr),u=(u=Math.imul(Me,Ar))+Math.imul(We,Sr)|0,W=Math.imul(We,Ar);var hn=($+(Y=Y+Math.imul(Ne,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(Ne,Gt)|0)+Math.imul(X,Fr)|0))<<13)|0;$=((W=W+Math.imul(X,Gt)|0)+(u>>>13)|0)+(hn>>>26)|0,hn&=67108863;var _n=($+(Y=Math.imul(Me,Fr))|0)+((8191&(u=(u=Math.imul(Me,Gt))+Math.imul(We,Fr)|0))<<13)|0;return $=((W=Math.imul(We,Gt))+(u>>>13)|0)+(_n>>>26)|0,_n&=67108863,j[0]=le,j[1]=Ce,j[2]=Ie,j[3]=Pe,j[4]=Oe,j[5]=Se,j[6]=Xe,j[7]=Ct,j[8]=zt,j[9]=kr,j[10]=Br,j[11]=xt,j[12]=tr,j[13]=Rr,j[14]=Ur,j[15]=Nr,j[16]=zr,j[17]=hn,j[18]=_n,0!==$&&(j[19]=$,w.length++),w};function V(B,s,_){return(new D).mulp(B,s,_)}function D(B,s){this.x=B,this.y=s}Math.imul||(H=O),r.prototype.mulTo=function(s,_){var w,E=this.length+s.length;return w=10===this.length&&10===s.length?H(this,s,_):E<63?O(this,s,_):E<1024?function F(B,s,_){_.negative=s.negative^B.negative,_.length=B.length+s.length;for(var w=0,E=0,x=0;x<_.length-1;x++){var j=E;E=0;for(var $=67108863&w,Y=Math.min(x,s.length-1),u=Math.max(0,x-B.length+1);u<=Y;u++){var ye=(0|B.words[x-u])*(0|s.words[u]),Qe=67108863&ye;$=67108863&(Qe=Qe+$|0),E+=(j=(j=j+(ye/67108864|0)|0)+(Qe>>>26)|0)>>>26,j&=67108863}_.words[x]=$,w=j,j=E}return 0!==w?_.words[x]=w:_.length--,_.strip()}(this,s,_):V(this,s,_),w},D.prototype.makeRBT=function(s){for(var _=new Array(s),w=r.prototype._countBits(s)-1,E=0;E<s;E++)_[E]=this.revBin(E,w,s);return _},D.prototype.revBin=function(s,_,w){if(0===s||s===w-1)return s;for(var E=0,x=0;x<_;x++)E|=(1&s)<<_-x-1,s>>=1;return E},D.prototype.permute=function(s,_,w,E,x,j){for(var $=0;$<j;$++)E[$]=_[s[$]],x[$]=w[s[$]]},D.prototype.transform=function(s,_,w,E,x,j){this.permute(j,s,_,w,E,x);for(var $=1;$<x;$<<=1)for(var Y=$<<1,u=Math.cos(2*Math.PI/Y),W=Math.sin(2*Math.PI/Y),fe=0;fe<x;fe+=Y)for(var ae=u,ye=W,Qe=0;Qe<$;Qe++){var Ot=w[fe+Qe],At=E[fe+Qe],Ze=w[fe+Qe+$],at=E[fe+Qe+$],Be=ae*Ze-ye*at;at=ae*at+ye*Ze,w[fe+Qe]=Ot+(Ze=Be),E[fe+Qe]=At+at,w[fe+Qe+$]=Ot-Ze,E[fe+Qe+$]=At-at,Qe!==Y&&(Be=u*ae-W*ye,ye=u*ye+W*ae,ae=Be)}},D.prototype.guessLen13b=function(s,_){var w=1|Math.max(_,s),E=1&w,x=0;for(w=w/2|0;w;w>>>=1)x++;return 1<<x+1+E},D.prototype.conjugate=function(s,_,w){if(!(w<=1))for(var E=0;E<w/2;E++){var x=s[E];s[E]=s[w-E-1],s[w-E-1]=x,x=_[E],_[E]=-_[w-E-1],_[w-E-1]=-x}},D.prototype.normalize13b=function(s,_){for(var w=0,E=0;E<_/2;E++){var x=8192*Math.round(s[2*E+1]/_)+Math.round(s[2*E]/_)+w;s[E]=67108863&x,w=x<67108864?0:x/67108864|0}return s},D.prototype.convert13b=function(s,_,w,E){for(var x=0,j=0;j<_;j++)w[2*j]=8191&(x+=0|s[j]),w[2*j+1]=8191&(x>>>=13),x>>>=13;for(j=2*_;j<E;++j)w[j]=0;l(0===x),l(0==(-8192&x))},D.prototype.stub=function(s){for(var _=new Array(s),w=0;w<s;w++)_[w]=0;return _},D.prototype.mulp=function(s,_,w){var E=2*this.guessLen13b(s.length,_.length),x=this.makeRBT(E),j=this.stub(E),$=new Array(E),Y=new Array(E),u=new Array(E),W=new Array(E),fe=new Array(E),ae=new Array(E),ye=w.words;ye.length=E,this.convert13b(s.words,s.length,$,E),this.convert13b(_.words,_.length,W,E),this.transform($,j,Y,u,E,x),this.transform(W,j,fe,ae,E,x);for(var Qe=0;Qe<E;Qe++){var Ot=Y[Qe]*fe[Qe]-u[Qe]*ae[Qe];u[Qe]=Y[Qe]*ae[Qe]+u[Qe]*fe[Qe],Y[Qe]=Ot}return this.conjugate(Y,u,E),this.transform(Y,u,ye,j,E,x),this.conjugate(ye,j,E),this.normalize13b(ye,E),w.negative=s.negative^_.negative,w.length=s.length+_.length,w.strip()},r.prototype.mul=function(s){var _=new r(null);return _.words=new Array(this.length+s.length),this.mulTo(s,_)},r.prototype.mulf=function(s){var _=new r(null);return _.words=new Array(this.length+s.length),V(this,s,_)},r.prototype.imul=function(s){return this.clone().mulTo(s,this)},r.prototype.imuln=function(s){l("number"==typeof s),l(s<67108864);for(var _=0,w=0;w<this.length;w++){var E=(0|this.words[w])*s,x=(67108863&E)+(67108863&_);_>>=26,_+=E/67108864|0,_+=x>>>26,this.words[w]=67108863&x}return 0!==_&&(this.words[w]=_,this.length++),this},r.prototype.muln=function(s){return this.clone().imuln(s)},r.prototype.sqr=function(){return this.mul(this)},r.prototype.isqr=function(){return this.imul(this.clone())},r.prototype.pow=function(s){var _=function a(B){for(var s=new Array(B.bitLength()),_=0;_<s.length;_++){var E=_%26;s[_]=(B.words[_/26|0]&1<<E)>>>E}return s}(s);if(0===_.length)return new r(1);for(var w=this,E=0;E<_.length&&0===_[E];E++,w=w.sqr());if(++E<_.length)for(var x=w.sqr();E<_.length;E++,x=x.sqr())0!==_[E]&&(w=w.mul(x));return w},r.prototype.iushln=function(s){l("number"==typeof s&&s>=0);var x,_=s%26,w=(s-_)/26,E=67108863>>>26-_<<26-_;if(0!==_){var j=0;for(x=0;x<this.length;x++){var $=this.words[x]&E;this.words[x]=(0|this.words[x])-$<<_|j,j=$>>>26-_}j&&(this.words[x]=j,this.length++)}if(0!==w){for(x=this.length-1;x>=0;x--)this.words[x+w]=this.words[x];for(x=0;x<w;x++)this.words[x]=0;this.length+=w}return this.strip()},r.prototype.ishln=function(s){return l(0===this.negative),this.iushln(s)},r.prototype.iushrn=function(s,_,w){var E;l("number"==typeof s&&s>=0),E=_?(_-_%26)/26:0;var x=s%26,j=Math.min((s-x)/26,this.length),$=67108863^67108863>>>x<<x,Y=w;if(E-=j,E=Math.max(0,E),Y){for(var u=0;u<j;u++)Y.words[u]=this.words[u];Y.length=j}if(0!==j)if(this.length>j)for(this.length-=j,u=0;u<this.length;u++)this.words[u]=this.words[u+j];else this.words[0]=0,this.length=1;var W=0;for(u=this.length-1;u>=0&&(0!==W||u>=E);u--){var fe=0|this.words[u];this.words[u]=W<<26-x|fe>>>x,W=fe&$}return Y&&0!==W&&(Y.words[Y.length++]=W),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},r.prototype.ishrn=function(s,_,w){return l(0===this.negative),this.iushrn(s,_,w)},r.prototype.shln=function(s){return this.clone().ishln(s)},r.prototype.ushln=function(s){return this.clone().iushln(s)},r.prototype.shrn=function(s){return this.clone().ishrn(s)},r.prototype.ushrn=function(s){return this.clone().iushrn(s)},r.prototype.testn=function(s){l("number"==typeof s&&s>=0);var _=s%26,w=(s-_)/26;return!(this.length<=w||!(this.words[w]&1<<_))},r.prototype.imaskn=function(s){l("number"==typeof s&&s>=0);var _=s%26,w=(s-_)/26;return l(0===this.negative,"imaskn works only with positive numbers"),this.length<=w?this:(0!==_&&w++,this.length=Math.min(w,this.length),0!==_&&(this.words[this.length-1]&=67108863^67108863>>>_<<_),this.strip())},r.prototype.maskn=function(s){return this.clone().imaskn(s)},r.prototype.iaddn=function(s){return l("number"==typeof s),l(s<67108864),s<0?this.isubn(-s):0!==this.negative?1===this.length&&(0|this.words[0])<s?(this.words[0]=s-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(s),this.negative=1,this):this._iaddn(s)},r.prototype._iaddn=function(s){this.words[0]+=s;for(var _=0;_<this.length&&this.words[_]>=67108864;_++)this.words[_]-=67108864,_===this.length-1?this.words[_+1]=1:this.words[_+1]++;return this.length=Math.max(this.length,_+1),this},r.prototype.isubn=function(s){if(l("number"==typeof s),l(s<67108864),s<0)return this.iaddn(-s);if(0!==this.negative)return this.negative=0,this.iaddn(s),this.negative=1,this;if(this.words[0]-=s,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var _=0;_<this.length&&this.words[_]<0;_++)this.words[_]+=67108864,this.words[_+1]-=1;return this.strip()},r.prototype.addn=function(s){return this.clone().iaddn(s)},r.prototype.subn=function(s){return this.clone().isubn(s)},r.prototype.iabs=function(){return this.negative=0,this},r.prototype.abs=function(){return this.clone().iabs()},r.prototype._ishlnsubmul=function(s,_,w){var x;this._expand(s.length+w);var j,$=0;for(x=0;x<s.length;x++){j=(0|this.words[x+w])+$;var Y=(0|s.words[x])*_;$=((j-=67108863&Y)>>26)-(Y/67108864|0),this.words[x+w]=67108863&j}for(;x<this.length-w;x++)$=(j=(0|this.words[x+w])+$)>>26,this.words[x+w]=67108863&j;if(0===$)return this.strip();for(l(-1===$),$=0,x=0;x<this.length;x++)$=(j=-(0|this.words[x])+$)>>26,this.words[x]=67108863&j;return this.negative=1,this.strip()},r.prototype._wordDiv=function(s,_){var w,E=this.clone(),x=s,j=0|x.words[x.length-1];0!=(w=26-this._countBits(j))&&(x=x.ushln(w),E.iushln(w),j=0|x.words[x.length-1]);var u,Y=E.length-x.length;if("mod"!==_){(u=new r(null)).length=Y+1,u.words=new Array(u.length);for(var W=0;W<u.length;W++)u.words[W]=0}var fe=E.clone()._ishlnsubmul(x,1,Y);0===fe.negative&&(E=fe,u&&(u.words[Y]=1));for(var ae=Y-1;ae>=0;ae--){var ye=67108864*(0|E.words[x.length+ae])+(0|E.words[x.length+ae-1]);for(ye=Math.min(ye/j|0,67108863),E._ishlnsubmul(x,ye,ae);0!==E.negative;)ye--,E.negative=0,E._ishlnsubmul(x,1,ae),E.isZero()||(E.negative^=1);u&&(u.words[ae]=ye)}return u&&u.strip(),E.strip(),"div"!==_&&0!==w&&E.iushrn(w),{div:u||null,mod:E}},r.prototype.divmod=function(s,_,w){return l(!s.isZero()),this.isZero()?{div:new r(0),mod:new r(0)}:0!==this.negative&&0===s.negative?(j=this.neg().divmod(s,_),"mod"!==_&&(E=j.div.neg()),"div"!==_&&(x=j.mod.neg(),w&&0!==x.negative&&x.iadd(s)),{div:E,mod:x}):0===this.negative&&0!==s.negative?(j=this.divmod(s.neg(),_),"mod"!==_&&(E=j.div.neg()),{div:E,mod:j.mod}):0!=(this.negative&s.negative)?(j=this.neg().divmod(s.neg(),_),"div"!==_&&(x=j.mod.neg(),w&&0!==x.negative&&x.isub(s)),{div:j.div,mod:x}):s.length>this.length||this.cmp(s)<0?{div:new r(0),mod:this}:1===s.length?"div"===_?{div:this.divn(s.words[0]),mod:null}:"mod"===_?{div:null,mod:new r(this.modn(s.words[0]))}:{div:this.divn(s.words[0]),mod:new r(this.modn(s.words[0]))}:this._wordDiv(s,_);var E,x,j},r.prototype.div=function(s){return this.divmod(s,"div",!1).div},r.prototype.mod=function(s){return this.divmod(s,"mod",!1).mod},r.prototype.umod=function(s){return this.divmod(s,"mod",!0).mod},r.prototype.divRound=function(s){var _=this.divmod(s);if(_.mod.isZero())return _.div;var w=0!==_.div.negative?_.mod.isub(s):_.mod,E=s.ushrn(1),x=s.andln(1),j=w.cmp(E);return j<0||1===x&&0===j?_.div:0!==_.div.negative?_.div.isubn(1):_.div.iaddn(1)},r.prototype.modn=function(s){l(s<=67108863);for(var _=(1<<26)%s,w=0,E=this.length-1;E>=0;E--)w=(_*w+(0|this.words[E]))%s;return w},r.prototype.idivn=function(s){l(s<=67108863);for(var _=0,w=this.length-1;w>=0;w--){var E=(0|this.words[w])+67108864*_;this.words[w]=E/s|0,_=E%s}return this.strip()},r.prototype.divn=function(s){return this.clone().idivn(s)},r.prototype.egcd=function(s){l(0===s.negative),l(!s.isZero());var _=this,w=s.clone();_=0!==_.negative?_.umod(s):_.clone();for(var E=new r(1),x=new r(0),j=new r(0),$=new r(1),Y=0;_.isEven()&&w.isEven();)_.iushrn(1),w.iushrn(1),++Y;for(var u=w.clone(),W=_.clone();!_.isZero();){for(var fe=0,ae=1;0==(_.words[0]&ae)&&fe<26;++fe,ae<<=1);if(fe>0)for(_.iushrn(fe);fe-- >0;)(E.isOdd()||x.isOdd())&&(E.iadd(u),x.isub(W)),E.iushrn(1),x.iushrn(1);for(var ye=0,Qe=1;0==(w.words[0]&Qe)&&ye<26;++ye,Qe<<=1);if(ye>0)for(w.iushrn(ye);ye-- >0;)(j.isOdd()||$.isOdd())&&(j.iadd(u),$.isub(W)),j.iushrn(1),$.iushrn(1);_.cmp(w)>=0?(_.isub(w),E.isub(j),x.isub($)):(w.isub(_),j.isub(E),$.isub(x))}return{a:j,b:$,gcd:w.iushln(Y)}},r.prototype._invmp=function(s){l(0===s.negative),l(!s.isZero());var fe,_=this,w=s.clone();_=0!==_.negative?_.umod(s):_.clone();for(var E=new r(1),x=new r(0),j=w.clone();_.cmpn(1)>0&&w.cmpn(1)>0;){for(var $=0,Y=1;0==(_.words[0]&Y)&&$<26;++$,Y<<=1);if($>0)for(_.iushrn($);$-- >0;)E.isOdd()&&E.iadd(j),E.iushrn(1);for(var u=0,W=1;0==(w.words[0]&W)&&u<26;++u,W<<=1);if(u>0)for(w.iushrn(u);u-- >0;)x.isOdd()&&x.iadd(j),x.iushrn(1);_.cmp(w)>=0?(_.isub(w),E.isub(x)):(w.isub(_),x.isub(E))}return(fe=0===_.cmpn(1)?E:x).cmpn(0)<0&&fe.iadd(s),fe},r.prototype.gcd=function(s){if(this.isZero())return s.abs();if(s.isZero())return this.abs();var _=this.clone(),w=s.clone();_.negative=0,w.negative=0;for(var E=0;_.isEven()&&w.isEven();E++)_.iushrn(1),w.iushrn(1);for(;;){for(;_.isEven();)_.iushrn(1);for(;w.isEven();)w.iushrn(1);var x=_.cmp(w);if(x<0){var j=_;_=w,w=j}else if(0===x||0===w.cmpn(1))break;_.isub(w)}return w.iushln(E)},r.prototype.invm=function(s){return this.egcd(s).a.umod(s)},r.prototype.isEven=function(){return 0==(1&this.words[0])},r.prototype.isOdd=function(){return 1==(1&this.words[0])},r.prototype.andln=function(s){return this.words[0]&s},r.prototype.bincn=function(s){l("number"==typeof s);var _=s%26,w=(s-_)/26,E=1<<_;if(this.length<=w)return this._expand(w+1),this.words[w]|=E,this;for(var x=E,j=w;0!==x&&j<this.length;j++){var $=0|this.words[j];x=($+=x)>>>26,this.words[j]=$&=67108863}return 0!==x&&(this.words[j]=x,this.length++),this},r.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},r.prototype.cmpn=function(s){var w,_=s<0;if(0!==this.negative&&!_)return-1;if(0===this.negative&&_)return 1;if(this.strip(),this.length>1)w=1;else{_&&(s=-s),l(s<=67108863,"Number is too big");var E=0|this.words[0];w=E===s?0:E<s?-1:1}return 0!==this.negative?0|-w:w},r.prototype.cmp=function(s){if(0!==this.negative&&0===s.negative)return-1;if(0===this.negative&&0!==s.negative)return 1;var _=this.ucmp(s);return 0!==this.negative?0|-_:_},r.prototype.ucmp=function(s){if(this.length>s.length)return 1;if(this.length<s.length)return-1;for(var _=0,w=this.length-1;w>=0;w--){var E=0|this.words[w],x=0|s.words[w];if(E!==x){E<x?_=-1:E>x&&(_=1);break}}return _},r.prototype.gtn=function(s){return 1===this.cmpn(s)},r.prototype.gt=function(s){return 1===this.cmp(s)},r.prototype.gten=function(s){return this.cmpn(s)>=0},r.prototype.gte=function(s){return this.cmp(s)>=0},r.prototype.ltn=function(s){return-1===this.cmpn(s)},r.prototype.lt=function(s){return-1===this.cmp(s)},r.prototype.lten=function(s){return this.cmpn(s)<=0},r.prototype.lte=function(s){return this.cmp(s)<=0},r.prototype.eqn=function(s){return 0===this.cmpn(s)},r.prototype.eq=function(s){return 0===this.cmp(s)},r.red=function(s){return new re(s)},r.prototype.toRed=function(s){return l(!this.red,"Already a number in reduction context"),l(0===this.negative,"red works only with positives"),s.convertTo(this)._forceRed(s)},r.prototype.fromRed=function(){return l(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},r.prototype._forceRed=function(s){return this.red=s,this},r.prototype.forceRed=function(s){return l(!this.red,"Already a number in reduction context"),this._forceRed(s)},r.prototype.redAdd=function(s){return l(this.red,"redAdd works only with red numbers"),this.red.add(this,s)},r.prototype.redIAdd=function(s){return l(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,s)},r.prototype.redSub=function(s){return l(this.red,"redSub works only with red numbers"),this.red.sub(this,s)},r.prototype.redISub=function(s){return l(this.red,"redISub works only with red numbers"),this.red.isub(this,s)},r.prototype.redShl=function(s){return l(this.red,"redShl works only with red numbers"),this.red.shl(this,s)},r.prototype.redMul=function(s){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.mul(this,s)},r.prototype.redIMul=function(s){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.imul(this,s)},r.prototype.redSqr=function(){return l(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},r.prototype.redISqr=function(){return l(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},r.prototype.redSqrt=function(){return l(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},r.prototype.redInvm=function(){return l(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},r.prototype.redNeg=function(){return l(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},r.prototype.redPow=function(s){return l(this.red&&!s.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,s)};var U={k256:null,p224:null,p192:null,p25519:null};function q(B,s){this.name=B,this.p=new r(s,16),this.n=this.p.bitLength(),this.k=new r(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function J(){q.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function G(){q.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){q.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function K(){q.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function re(B){if("string"==typeof B){var s=r._prime(B);this.m=s.p,this.prime=s}else l(B.gtn(1),"modulus must be greater than 1"),this.m=B,this.prime=null}function oe(B){re.call(this,B),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new r(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}q.prototype._tmp=function(){var s=new r(null);return s.words=new Array(Math.ceil(this.n/13)),s},q.prototype.ireduce=function(s){var w,_=s;do{this.split(_,this.tmp),w=(_=(_=this.imulK(_)).iadd(this.tmp)).bitLength()}while(w>this.n);var E=w<this.n?-1:_.ucmp(this.p);return 0===E?(_.words[0]=0,_.length=1):E>0?_.isub(this.p):void 0!==_.strip?_.strip():_._strip(),_},q.prototype.split=function(s,_){s.iushrn(this.n,0,_)},q.prototype.imulK=function(s){return s.imul(this.k)},h(J,q),J.prototype.split=function(s,_){for(var w=4194303,E=Math.min(s.length,9),x=0;x<E;x++)_.words[x]=s.words[x];if(_.length=E,s.length<=9)return s.words[0]=0,void(s.length=1);var j=s.words[9];for(_.words[_.length++]=j&w,x=10;x<s.length;x++){var $=0|s.words[x];s.words[x-10]=($&w)<<4|j>>>22,j=$}s.words[x-10]=j>>>=22,s.length-=0===j&&s.length>10?10:9},J.prototype.imulK=function(s){s.words[s.length]=0,s.words[s.length+1]=0,s.length+=2;for(var _=0,w=0;w<s.length;w++){var E=0|s.words[w];s.words[w]=67108863&(_+=977*E),_=64*E+(_/67108864|0)}return 0===s.words[s.length-1]&&(s.length--,0===s.words[s.length-1]&&s.length--),s},h(G,q),h(ie,q),h(K,q),K.prototype.imulK=function(s){for(var _=0,w=0;w<s.length;w++){var E=19*(0|s.words[w])+_,x=67108863&E;E>>>=26,s.words[w]=x,_=E}return 0!==_&&(s.words[s.length++]=_),s},r._prime=function(s){if(U[s])return U[s];var _;if("k256"===s)_=new J;else if("p224"===s)_=new G;else if("p192"===s)_=new ie;else{if("p25519"!==s)throw new Error("Unknown prime "+s);_=new K}return U[s]=_,_},re.prototype._verify1=function(s){l(0===s.negative,"red works only with positives"),l(s.red,"red works only with red numbers")},re.prototype._verify2=function(s,_){l(0==(s.negative|_.negative),"red works only with positives"),l(s.red&&s.red===_.red,"red works only with red numbers")},re.prototype.imod=function(s){return this.prime?this.prime.ireduce(s)._forceRed(this):s.umod(this.m)._forceRed(this)},re.prototype.neg=function(s){return s.isZero()?s.clone():this.m.sub(s)._forceRed(this)},re.prototype.add=function(s,_){this._verify2(s,_);var w=s.add(_);return w.cmp(this.m)>=0&&w.isub(this.m),w._forceRed(this)},re.prototype.iadd=function(s,_){this._verify2(s,_);var w=s.iadd(_);return w.cmp(this.m)>=0&&w.isub(this.m),w},re.prototype.sub=function(s,_){this._verify2(s,_);var w=s.sub(_);return w.cmpn(0)<0&&w.iadd(this.m),w._forceRed(this)},re.prototype.isub=function(s,_){this._verify2(s,_);var w=s.isub(_);return w.cmpn(0)<0&&w.iadd(this.m),w},re.prototype.shl=function(s,_){return this._verify1(s),this.imod(s.ushln(_))},re.prototype.imul=function(s,_){return this._verify2(s,_),this.imod(s.imul(_))},re.prototype.mul=function(s,_){return this._verify2(s,_),this.imod(s.mul(_))},re.prototype.isqr=function(s){return this.imul(s,s.clone())},re.prototype.sqr=function(s){return this.mul(s,s)},re.prototype.sqrt=function(s){if(s.isZero())return s.clone();var _=this.m.andln(3);if(l(_%2==1),3===_){var w=this.m.add(new r(1)).iushrn(2);return this.pow(s,w)}for(var E=this.m.subn(1),x=0;!E.isZero()&&0===E.andln(1);)x++,E.iushrn(1);l(!E.isZero());var j=new r(1).toRed(this),$=j.redNeg(),Y=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new r(2*u*u).toRed(this);0!==this.pow(u,Y).cmp($);)u.redIAdd($);for(var W=this.pow(u,E),fe=this.pow(s,E.addn(1).iushrn(1)),ae=this.pow(s,E),ye=x;0!==ae.cmp(j);){for(var Qe=ae,Ot=0;0!==Qe.cmp(j);Ot++)Qe=Qe.redSqr();l(Ot<ye);var At=this.pow(W,new r(1).iushln(ye-Ot-1));fe=fe.redMul(At),W=At.redSqr(),ae=ae.redMul(W),ye=Ot}return fe},re.prototype.invm=function(s){var _=s._invmp(this.m);return 0!==_.negative?(_.negative=0,this.imod(_).redNeg()):this.imod(_)},re.prototype.pow=function(s,_){if(_.isZero())return new r(1).toRed(this);if(0===_.cmpn(1))return s.clone();var E=new Array(16);E[0]=new r(1).toRed(this),E[1]=s;for(var x=2;x<E.length;x++)E[x]=this.mul(E[x-1],s);var j=E[0],$=0,Y=0,u=_.bitLength()%26;for(0===u&&(u=26),x=_.length-1;x>=0;x--){for(var W=_.words[x],fe=u-1;fe>=0;fe--){var ae=W>>fe&1;j!==E[0]&&(j=this.sqr(j)),0!==ae||0!==$?($<<=1,$|=ae,(4==++Y||0===x&&0===fe)&&(j=this.mul(j,E[$]),Y=0,$=0)):Y=0}u=26}return j},re.prototype.convertTo=function(s){var _=s.umod(this.m);return _===s?_.clone():_},re.prototype.convertFrom=function(s){var _=s.clone();return _.red=null,_},r.mont=function(s){return new oe(s)},h(oe,re),oe.prototype.convertTo=function(s){return this.imod(s.ushln(this.shift))},oe.prototype.convertFrom=function(s){var _=this.imod(s.mul(this.rinv));return _.red=null,_},oe.prototype.imul=function(s,_){if(s.isZero()||_.isZero())return s.words[0]=0,s.length=1,s;var w=s.imul(_),E=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=w.isub(E).iushrn(this.shift),j=x;return x.cmp(this.m)>=0?j=x.isub(this.m):x.cmpn(0)<0&&(j=x.iadd(this.m)),j._forceRed(this)},oe.prototype.mul=function(s,_){if(s.isZero()||_.isZero())return new r(0)._forceRed(this);var w=s.mul(_),E=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=w.isub(E).iushrn(this.shift),j=x;return x.cmp(this.m)>=0?j=x.isub(this.m):x.cmpn(0)<0&&(j=x.iadd(this.m)),j._forceRed(this)},oe.prototype.invm=function(s){return this.imod(s._invmp(this.m).mul(this.r2))._forceRed(this)}}(M=n.nmd(M),this)},92735:function(M){M.exports=function(){"use strict";function b(ot){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(nt){return typeof nt}:function(nt){return nt&&"function"==typeof Symbol&&nt.constructor===Symbol&&nt!==Symbol.prototype?"symbol":typeof nt})(ot)}function n(ot,nt){return(n=Object.setPrototypeOf||function(Ne,X){return Ne.__proto__=X,Ne})(ot,nt)}function t(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function e(ot,nt,Yt){return(e=t()?Reflect.construct:function(X,ge,Me){var We=[null];We.push.apply(We,ge);var pt=new(Function.bind.apply(X,We));return Me&&n(pt,Me.prototype),pt}).apply(null,arguments)}function l(ot){return function h(ot){if(Array.isArray(ot))return y(ot)}(ot)||function r(ot){if(typeof Symbol<"u"&&null!=ot[Symbol.iterator]||null!=ot["@@iterator"])return Array.from(ot)}(ot)||function d(ot,nt){if(ot){if("string"==typeof ot)return y(ot,nt);var Yt=Object.prototype.toString.call(ot).slice(8,-1);if("Object"===Yt&&ot.constructor&&(Yt=ot.constructor.name),"Map"===Yt||"Set"===Yt)return Array.from(ot);if("Arguments"===Yt||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Yt))return y(ot,nt)}}(ot)||function g(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(ot,nt){(null==nt||nt>ot.length)&&(nt=ot.length);for(var Yt=0,Ne=new Array(nt);Yt<nt;Yt++)Ne[Yt]=ot[Yt];return Ne}var p=Object.hasOwnProperty,f=Object.setPrototypeOf,C=Object.isFrozen,N=Object.getPrototypeOf,a=Object.getOwnPropertyDescriptor,O=Object.freeze,H=Object.seal,F=Object.create,V=typeof Reflect<"u"&&Reflect,D=V.apply,U=V.construct;D||(D=function(nt,Yt,Ne){return nt.apply(Yt,Ne)}),O||(O=function(nt){return nt}),H||(H=function(nt){return nt}),U||(U=function(nt,Yt){return e(nt,l(Yt))});var q=E(Array.prototype.forEach),J=E(Array.prototype.pop),G=E(Array.prototype.push),ie=E(String.prototype.toLowerCase),K=E(String.prototype.toString),re=E(String.prototype.match),oe=E(String.prototype.replace),B=E(String.prototype.indexOf),s=E(String.prototype.trim),_=E(RegExp.prototype.test),w=function x(ot){return function(){for(var nt=arguments.length,Yt=new Array(nt),Ne=0;Ne<nt;Ne++)Yt[Ne]=arguments[Ne];return U(ot,Yt)}}(TypeError);function E(ot){return function(nt){for(var Yt=arguments.length,Ne=new Array(Yt>1?Yt-1:0),X=1;X<Yt;X++)Ne[X-1]=arguments[X];return D(ot,nt,Ne)}}function j(ot,nt,Yt){var Ne;Yt=null!==(Ne=Yt)&&void 0!==Ne?Ne:ie,f&&f(ot,null);for(var X=nt.length;X--;){var ge=nt[X];if("string"==typeof ge){var Me=Yt(ge);Me!==ge&&(C(nt)||(nt[X]=Me),ge=Me)}ot[ge]=!0}return ot}function $(ot){var Yt,nt=F(null);for(Yt in ot)!0===D(p,ot,[Yt])&&(nt[Yt]=ot[Yt]);return nt}function Y(ot,nt){for(;null!==ot;){var Yt=a(ot,nt);if(Yt){if(Yt.get)return E(Yt.get);if("function"==typeof Yt.value)return E(Yt.value)}ot=N(ot)}return function Ne(X){return console.warn("fallback value for",X),null}}var u=O(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),W=O(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),fe=O(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ae=O(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ye=O(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),Qe=O(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ot=O(["#text"]),At=O(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Ze=O(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),at=O(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Be=O(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Lt=H(/\{\{[\w\W]*|[\w\W]*\}\}/gm),_e=H(/<%[\w\W]*|[\w\W]*%>/gm),ne=H(/\${[\w\W]*}/gm),be=H(/^data-[\-\w.\u00B7-\uFFFF]/),Te=H(/^aria-[\-\w]+$/),$e=H(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ft=H(/^(?:\w+script|data):/i),Ge=H(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ft=H(/^html$/i),br=function(){return typeof window>"u"?null:window},rt=function(nt,Yt){if("object"!==b(nt)||"function"!=typeof nt.createPolicy)return null;var Ne=null,X="data-tt-policy-suffix";Yt.currentScript&&Yt.currentScript.hasAttribute(X)&&(Ne=Yt.currentScript.getAttribute(X));var ge="dompurify"+(Ne?"#"+Ne:"");try{return nt.createPolicy(ge,{createHTML:function(We){return We},createScriptURL:function(We){return We}})}catch{return console.warn("TrustedTypes policy "+ge+" could not be created."),null}};return function st(){var ot=arguments.length>0&&void 0!==arguments[0]?arguments[0]:br(),nt=function($r){return st($r)};if(nt.version="2.4.7",nt.removed=[],!ot||!ot.document||9!==ot.document.nodeType)return nt.isSupported=!1,nt;var Yt=ot.document,Ne=ot.document,X=ot.DocumentFragment,ge=ot.HTMLTemplateElement,Me=ot.Node,We=ot.Element,Re=ot.NodeFilter,pt=ot.NamedNodeMap,Zt=void 0===pt?ot.NamedNodeMap||ot.MozNamedAttrMap:pt,cr=ot.HTMLFormElement,wt=ot.DOMParser,gt=ot.trustedTypes,Ut=We.prototype,hr=Y(Ut,"cloneNode"),Cr=Y(Ut,"nextSibling"),Ue=Y(Ut,"childNodes"),Pt=Y(Ut,"parentNode");if("function"==typeof ge){var He=Ne.createElement("template");He.content&&He.content.ownerDocument&&(Ne=He.content.ownerDocument)}var tt=rt(gt,Yt),Ke=tt?tt.createHTML(""):"",xe=Ne.implementation,Fe=Ne.createNodeIterator,lt=Ne.createDocumentFragment,St=Ne.getElementsByTagName,qe=Yt.importNode,ke={};try{ke=$(Ne).documentMode?Ne.documentMode:{}}catch{}var ct={};nt.isSupported="function"==typeof Pt&&xe&&void 0!==xe.createHTMLDocument&&9!==ke;var Bt,Wr,vt=Lt,$t=_e,Vr=ne,Sr=be,Ar=Te,Jr=ft,Fr=Ge,Gt=$e,le=null,Ce=j({},[].concat(l(u),l(W),l(fe),l(ye),l(Ot))),Ie=null,Pe=j({},[].concat(l(At),l(Ze),l(at),l(Be))),Oe=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Se=null,Xe=null,Ct=!0,zt=!0,kr=!1,Br=!0,xt=!1,tr=!1,Rr=!1,Ur=!1,Nr=!1,zr=!1,hn=!1,_n=!0,Tn=!1,sr="user-content-",fr=!0,Kt=!1,Qr={},we=null,De=j({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ht=null,Vt=j({},["audio","video","img","source","image","track"]),yt=null,gr=j({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ur="http://www.w3.org/1998/Math/MathML",Zr="http://www.w3.org/2000/svg",fn="http://www.w3.org/1999/xhtml",un=fn,Et=!1,Ae=null,it=j({},[ur,Zr,fn],K),pr=["application/xhtml+xml","text/html"],Or="text/html",sn=null,En=Ne.createElement("form"),Sn=function($r){return $r instanceof RegExp||$r instanceof Function},yn=function($r){sn&&sn===$r||((!$r||"object"!==b($r))&&($r={}),$r=$($r),Bt=Bt=-1===pr.indexOf($r.PARSER_MEDIA_TYPE)?Or:$r.PARSER_MEDIA_TYPE,Wr="application/xhtml+xml"===Bt?K:ie,le="ALLOWED_TAGS"in $r?j({},$r.ALLOWED_TAGS,Wr):Ce,Ie="ALLOWED_ATTR"in $r?j({},$r.ALLOWED_ATTR,Wr):Pe,Ae="ALLOWED_NAMESPACES"in $r?j({},$r.ALLOWED_NAMESPACES,K):it,yt="ADD_URI_SAFE_ATTR"in $r?j($(gr),$r.ADD_URI_SAFE_ATTR,Wr):gr,ht="ADD_DATA_URI_TAGS"in $r?j($(Vt),$r.ADD_DATA_URI_TAGS,Wr):Vt,we="FORBID_CONTENTS"in $r?j({},$r.FORBID_CONTENTS,Wr):De,Se="FORBID_TAGS"in $r?j({},$r.FORBID_TAGS,Wr):{},Xe="FORBID_ATTR"in $r?j({},$r.FORBID_ATTR,Wr):{},Qr="USE_PROFILES"in $r&&$r.USE_PROFILES,Ct=!1!==$r.ALLOW_ARIA_ATTR,zt=!1!==$r.ALLOW_DATA_ATTR,kr=$r.ALLOW_UNKNOWN_PROTOCOLS||!1,Br=!1!==$r.ALLOW_SELF_CLOSE_IN_ATTR,xt=$r.SAFE_FOR_TEMPLATES||!1,tr=$r.WHOLE_DOCUMENT||!1,Nr=$r.RETURN_DOM||!1,zr=$r.RETURN_DOM_FRAGMENT||!1,hn=$r.RETURN_TRUSTED_TYPE||!1,Ur=$r.FORCE_BODY||!1,_n=!1!==$r.SANITIZE_DOM,Tn=$r.SANITIZE_NAMED_PROPS||!1,fr=!1!==$r.KEEP_CONTENT,Kt=$r.IN_PLACE||!1,Gt=$r.ALLOWED_URI_REGEXP||Gt,un=$r.NAMESPACE||fn,Oe=$r.CUSTOM_ELEMENT_HANDLING||{},$r.CUSTOM_ELEMENT_HANDLING&&Sn($r.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Oe.tagNameCheck=$r.CUSTOM_ELEMENT_HANDLING.tagNameCheck),$r.CUSTOM_ELEMENT_HANDLING&&Sn($r.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Oe.attributeNameCheck=$r.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),$r.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof $r.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Oe.allowCustomizedBuiltInElements=$r.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),xt&&(zt=!1),zr&&(Nr=!0),Qr&&(le=j({},l(Ot)),Ie=[],!0===Qr.html&&(j(le,u),j(Ie,At)),!0===Qr.svg&&(j(le,W),j(Ie,Ze),j(Ie,Be)),!0===Qr.svgFilters&&(j(le,fe),j(Ie,Ze),j(Ie,Be)),!0===Qr.mathMl&&(j(le,ye),j(Ie,at),j(Ie,Be))),$r.ADD_TAGS&&(le===Ce&&(le=$(le)),j(le,$r.ADD_TAGS,Wr)),$r.ADD_ATTR&&(Ie===Pe&&(Ie=$(Ie)),j(Ie,$r.ADD_ATTR,Wr)),$r.ADD_URI_SAFE_ATTR&&j(yt,$r.ADD_URI_SAFE_ATTR,Wr),$r.FORBID_CONTENTS&&(we===De&&(we=$(we)),j(we,$r.FORBID_CONTENTS,Wr)),fr&&(le["#text"]=!0),tr&&j(le,["html","head","body"]),le.table&&(j(le,["tbody"]),delete Se.tbody),O&&O($r),sn=$r)},Rn=j({},["mi","mo","mn","ms","mtext"]),Kn=j({},["foreignobject","desc","title","annotation-xml"]),vi=j({},["title","style","font","a","script"]),li=j({},W);j(li,fe),j(li,ae);var ci=j({},ye);j(ci,Qe);var lr=function($r){var Pn=Pt($r);(!Pn||!Pn.tagName)&&(Pn={namespaceURI:un,tagName:"template"});var An=ie($r.tagName),Qn=ie(Pn.tagName);return!!Ae[$r.namespaceURI]&&($r.namespaceURI===Zr?Pn.namespaceURI===fn?"svg"===An:Pn.namespaceURI===ur?"svg"===An&&("annotation-xml"===Qn||Rn[Qn]):Boolean(li[An]):$r.namespaceURI===ur?Pn.namespaceURI===fn?"math"===An:Pn.namespaceURI===Zr?"math"===An&&Kn[Qn]:Boolean(ci[An]):$r.namespaceURI===fn?!(Pn.namespaceURI===Zr&&!Kn[Qn]||Pn.namespaceURI===ur&&!Rn[Qn])&&!ci[An]&&(vi[An]||!li[An]):!("application/xhtml+xml"!==Bt||!Ae[$r.namespaceURI]))},_r=function($r){G(nt.removed,{element:$r});try{$r.parentNode.removeChild($r)}catch{try{$r.outerHTML=Ke}catch{$r.remove()}}},yr=function($r,Pn){try{G(nt.removed,{attribute:Pn.getAttributeNode($r),from:Pn})}catch{G(nt.removed,{attribute:null,from:Pn})}if(Pn.removeAttribute($r),"is"===$r&&!Ie[$r])if(Nr||zr)try{_r(Pn)}catch{}else try{Pn.setAttribute($r,"")}catch{}},xr=function($r){var Pn,An;if(Ur)$r="<remove></remove>"+$r;else{var Qn=re($r,/^[\r\n\t ]+/);An=Qn&&Qn[0]}"application/xhtml+xml"===Bt&&un===fn&&($r='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+$r+"</body></html>");var yi=tt?tt.createHTML($r):$r;if(un===fn)try{Pn=(new wt).parseFromString(yi,Bt)}catch{}if(!Pn||!Pn.documentElement){Pn=xe.createDocument(un,"template",null);try{Pn.documentElement.innerHTML=Et?Ke:yi}catch{}}var oi=Pn.body||Pn.documentElement;return $r&&An&&oi.insertBefore(Ne.createTextNode(An),oi.childNodes[0]||null),un===fn?St.call(Pn,tr?"html":"body")[0]:tr?Pn.documentElement:oi},dn=function($r){return Fe.call($r.ownerDocument||$r,$r,Re.SHOW_ELEMENT|Re.SHOW_COMMENT|Re.SHOW_TEXT,null,!1)},bn=function($r){return $r instanceof cr&&("string"!=typeof $r.nodeName||"string"!=typeof $r.textContent||"function"!=typeof $r.removeChild||!($r.attributes instanceof Zt)||"function"!=typeof $r.removeAttribute||"function"!=typeof $r.setAttribute||"string"!=typeof $r.namespaceURI||"function"!=typeof $r.insertBefore||"function"!=typeof $r.hasChildNodes)},Un=function($r){return"object"===b(Me)?$r instanceof Me:$r&&"object"===b($r)&&"number"==typeof $r.nodeType&&"string"==typeof $r.nodeName},Fn=function($r,Pn,An){!ct[$r]||q(ct[$r],function(Qn){Qn.call(nt,Pn,An,sn)})},Vn=function($r){var Pn;if(Fn("beforeSanitizeElements",$r,null),bn($r)||_(/[\u0080-\uFFFF]/,$r.nodeName))return _r($r),!0;var An=Wr($r.nodeName);if(Fn("uponSanitizeElement",$r,{tagName:An,allowedTags:le}),$r.hasChildNodes()&&!Un($r.firstElementChild)&&(!Un($r.content)||!Un($r.content.firstElementChild))&&_(/<[/\w]/g,$r.innerHTML)&&_(/<[/\w]/g,$r.textContent)||"select"===An&&_(/<template/i,$r.innerHTML))return _r($r),!0;if(!le[An]||Se[An]){if(!Se[An]&&ai(An)&&(Oe.tagNameCheck instanceof RegExp&&_(Oe.tagNameCheck,An)||Oe.tagNameCheck instanceof Function&&Oe.tagNameCheck(An)))return!1;if(fr&&!we[An]){var Qn=Pt($r)||$r.parentNode,yi=Ue($r)||$r.childNodes;if(yi&&Qn)for(var di=yi.length-1;di>=0;--di)Qn.insertBefore(hr(yi[di],!0),Cr($r))}return _r($r),!0}return $r instanceof We&&!lr($r)||("noscript"===An||"noembed"===An||"noframes"===An)&&_(/<\/no(script|embed|frames)/i,$r.innerHTML)?(_r($r),!0):(xt&&3===$r.nodeType&&(Pn=oe(Pn=$r.textContent,vt," "),Pn=oe(Pn,$t," "),Pn=oe(Pn,Vr," "),$r.textContent!==Pn&&(G(nt.removed,{element:$r.cloneNode()}),$r.textContent=Pn)),Fn("afterSanitizeElements",$r,null),!1)},zn=function($r,Pn,An){if(_n&&("id"===Pn||"name"===Pn)&&(An in Ne||An in En))return!1;if((!zt||Xe[Pn]||!_(Sr,Pn))&&(!Ct||!_(Ar,Pn)))if(!Ie[Pn]||Xe[Pn]){if(!(ai($r)&&(Oe.tagNameCheck instanceof RegExp&&_(Oe.tagNameCheck,$r)||Oe.tagNameCheck instanceof Function&&Oe.tagNameCheck($r))&&(Oe.attributeNameCheck instanceof RegExp&&_(Oe.attributeNameCheck,Pn)||Oe.attributeNameCheck instanceof Function&&Oe.attributeNameCheck(Pn))||"is"===Pn&&Oe.allowCustomizedBuiltInElements&&(Oe.tagNameCheck instanceof RegExp&&_(Oe.tagNameCheck,An)||Oe.tagNameCheck instanceof Function&&Oe.tagNameCheck(An))))return!1}else if(!yt[Pn]&&!_(Gt,oe(An,Fr,""))&&("src"!==Pn&&"xlink:href"!==Pn&&"href"!==Pn||"script"===$r||0!==B(An,"data:")||!ht[$r])&&(!kr||_(Jr,oe(An,Fr,"")))&&An)return!1;return!0},ai=function($r){return $r.indexOf("-")>0},_i=function($r){var Pn,An,Qn,yi;Fn("beforeSanitizeAttributes",$r,null);var oi=$r.attributes;if(oi){var di={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ie};for(yi=oi.length;yi--;){var Di=(Pn=oi[yi]).name,ts=Pn.namespaceURI;if(An="value"===Di?Pn.value:s(Pn.value),Qn=Wr(Di),di.attrName=Qn,di.attrValue=An,di.keepAttr=!0,di.forceKeepAttr=void 0,Fn("uponSanitizeAttribute",$r,di),An=di.attrValue,!di.forceKeepAttr&&(yr(Di,$r),di.keepAttr)){if(!Br&&_(/\/>/i,An)){yr(Di,$r);continue}xt&&(An=oe(An,vt," "),An=oe(An,$t," "),An=oe(An,Vr," "));var Oi=Wr($r.nodeName);if(zn(Oi,Qn,An)){if(Tn&&("id"===Qn||"name"===Qn)&&(yr(Di,$r),An=sr+An),tt&&"object"===b(gt)&&"function"==typeof gt.getAttributeType&&!ts)switch(gt.getAttributeType(Oi,Qn)){case"TrustedHTML":An=tt.createHTML(An);break;case"TrustedScriptURL":An=tt.createScriptURL(An)}try{ts?$r.setAttributeNS(ts,Di,An):$r.setAttribute(Di,An),J(nt.removed)}catch{}}}}Fn("afterSanitizeAttributes",$r,null)}},wi=function Wn($r){var Pn,An=dn($r);for(Fn("beforeSanitizeShadowDOM",$r,null);Pn=An.nextNode();)Fn("uponSanitizeShadowNode",Pn,null),!Vn(Pn)&&(Pn.content instanceof X&&Wn(Pn.content),_i(Pn));Fn("afterSanitizeShadowDOM",$r,null)};return nt.sanitize=function(Wn){var Pn,An,Qn,yi,oi,$r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((Et=!Wn)&&(Wn="\x3c!--\x3e"),"string"!=typeof Wn&&!Un(Wn)){if("function"!=typeof Wn.toString)throw w("toString is not a function");if("string"!=typeof(Wn=Wn.toString()))throw w("dirty is not a string, aborting")}if(!nt.isSupported){if("object"===b(ot.toStaticHTML)||"function"==typeof ot.toStaticHTML){if("string"==typeof Wn)return ot.toStaticHTML(Wn);if(Un(Wn))return ot.toStaticHTML(Wn.outerHTML)}return Wn}if(Rr||yn($r),nt.removed=[],"string"==typeof Wn&&(Kt=!1),Kt){if(Wn.nodeName){var di=Wr(Wn.nodeName);if(!le[di]||Se[di])throw w("root node is forbidden and cannot be sanitized in-place")}}else if(Wn instanceof Me)1===(An=(Pn=xr("\x3c!----\x3e")).ownerDocument.importNode(Wn,!0)).nodeType&&"BODY"===An.nodeName||"HTML"===An.nodeName?Pn=An:Pn.appendChild(An);else{if(!Nr&&!xt&&!tr&&-1===Wn.indexOf("<"))return tt&&hn?tt.createHTML(Wn):Wn;if(!(Pn=xr(Wn)))return Nr?null:hn?Ke:""}Pn&&Ur&&_r(Pn.firstChild);for(var Qi=dn(Kt?Wn:Pn);Qn=Qi.nextNode();)3===Qn.nodeType&&Qn===yi||Vn(Qn)||(Qn.content instanceof X&&wi(Qn.content),_i(Qn),yi=Qn);if(yi=null,Kt)return Wn;if(Nr){if(zr)for(oi=lt.call(Pn.ownerDocument);Pn.firstChild;)oi.appendChild(Pn.firstChild);else oi=Pn;return(Ie.shadowroot||Ie.shadowrootmod)&&(oi=qe.call(Yt,oi,!0)),oi}var Di=tr?Pn.outerHTML:Pn.innerHTML;return tr&&le["!doctype"]&&Pn.ownerDocument&&Pn.ownerDocument.doctype&&Pn.ownerDocument.doctype.name&&_(Ft,Pn.ownerDocument.doctype.name)&&(Di="<!DOCTYPE "+Pn.ownerDocument.doctype.name+">\n"+Di),xt&&(Di=oe(Di,vt," "),Di=oe(Di,$t," "),Di=oe(Di,Vr," ")),tt&&hn?tt.createHTML(Di):Di},nt.setConfig=function(Wn){yn(Wn),Rr=!0},nt.clearConfig=function(){sn=null,Rr=!1},nt.isValidAttribute=function(Wn,$r,Pn){sn||yn({});var An=Wr(Wn),Qn=Wr($r);return zn(An,Qn,Pn)},nt.addHook=function(Wn,$r){"function"==typeof $r&&(ct[Wn]=ct[Wn]||[],G(ct[Wn],$r))},nt.removeHook=function(Wn){if(ct[Wn])return J(ct[Wn])},nt.removeHooks=function(Wn){ct[Wn]&&(ct[Wn]=[])},nt.removeAllHooks=function(){ct={}},nt}()}()},57715:(M,b,n)=>{"use strict";var t=b;t.version=n(18597).i8,t.utils=n(61970),t.rand=n(37950),t.curve=n(46270),t.curves=n(52916),t.ec=n(67626),t.eddsa=n(81885)},97902:(M,b,n)=>{"use strict";var t=n(17433),e=n(61970),l=e.getNAF,h=e.getJSF,r=e.assert;function d(g,p){this.type=g,this.p=new t(p.p,16),this.red=p.prime?t.red(p.prime):t.mont(this.p),this.zero=new t(0).toRed(this.red),this.one=new t(1).toRed(this.red),this.two=new t(2).toRed(this.red),this.n=p.n&&new t(p.n,16),this.g=p.g&&this.pointFromJSON(p.g,p.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var f=this.n&&this.p.div(this.n);!f||f.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function y(g,p){this.curve=g,this.type=p,this.precomputed=null}M.exports=d,d.prototype.point=function(){throw new Error("Not implemented")},d.prototype.validate=function(){throw new Error("Not implemented")},d.prototype._fixedNafMul=function(p,f){r(p.precomputed);var C=p._getDoubles(),N=l(f,1,this._bitLength),a=(1<<C.step+1)-(C.step%2==0?2:1);a/=3;var H,F,O=[];for(H=0;H<N.length;H+=C.step){F=0;for(var V=H+C.step-1;V>=H;V--)F=(F<<1)+N[V];O.push(F)}for(var D=this.jpoint(null,null,null),U=this.jpoint(null,null,null),q=a;q>0;q--){for(H=0;H<O.length;H++)(F=O[H])===q?U=U.mixedAdd(C.points[H]):F===-q&&(U=U.mixedAdd(C.points[H].neg()));D=D.add(U)}return D.toP()},d.prototype._wnafMul=function(p,f){for(var C=4,N=p._getNAFPoints(C),a=N.points,O=l(f,C=N.wnd,this._bitLength),H=this.jpoint(null,null,null),F=O.length-1;F>=0;F--){for(var V=0;F>=0&&0===O[F];F--)V++;if(F>=0&&V++,H=H.dblp(V),F<0)break;var D=O[F];r(0!==D),H="affine"===p.type?H.mixedAdd(D>0?a[D-1>>1]:a[-D-1>>1].neg()):H.add(D>0?a[D-1>>1]:a[-D-1>>1].neg())}return"affine"===p.type?H.toP():H},d.prototype._wnafMulAdd=function(p,f,C,N,a){var D,U,q,O=this._wnafT1,H=this._wnafT2,F=this._wnafT3,V=0;for(D=0;D<N;D++){var J=(q=f[D])._getNAFPoints(p);O[D]=J.wnd,H[D]=J.points}for(D=N-1;D>=1;D-=2){var G=D-1,ie=D;if(1===O[G]&&1===O[ie]){var K=[f[G],null,null,f[ie]];0===f[G].y.cmp(f[ie].y)?(K[1]=f[G].add(f[ie]),K[2]=f[G].toJ().mixedAdd(f[ie].neg())):0===f[G].y.cmp(f[ie].y.redNeg())?(K[1]=f[G].toJ().mixedAdd(f[ie]),K[2]=f[G].add(f[ie].neg())):(K[1]=f[G].toJ().mixedAdd(f[ie]),K[2]=f[G].toJ().mixedAdd(f[ie].neg()));var re=[-3,-1,-5,-7,0,7,5,1,3],oe=h(C[G],C[ie]);for(V=Math.max(oe[0].length,V),F[G]=new Array(V),F[ie]=new Array(V),U=0;U<V;U++)F[G][U]=re[3*(1+(0|oe[0][U]))+(1+(0|oe[1][U]))],F[ie][U]=0,H[G]=K}else F[G]=l(C[G],O[G],this._bitLength),F[ie]=l(C[ie],O[ie],this._bitLength),V=Math.max(F[G].length,V),V=Math.max(F[ie].length,V)}var _=this.jpoint(null,null,null),w=this._wnafT4;for(D=V;D>=0;D--){for(var E=0;D>=0;){var x=!0;for(U=0;U<N;U++)w[U]=0|F[U][D],0!==w[U]&&(x=!1);if(!x)break;E++,D--}if(D>=0&&E++,_=_.dblp(E),D<0)break;for(U=0;U<N;U++){var j=w[U];0!==j&&(j>0?q=H[U][j-1>>1]:j<0&&(q=H[U][-j-1>>1].neg()),_="affine"===q.type?_.mixedAdd(q):_.add(q))}}for(D=0;D<N;D++)H[D]=null;return a?_:_.toP()},d.BasePoint=y,y.prototype.eq=function(){throw new Error("Not implemented")},y.prototype.validate=function(){return this.curve.validate(this)},d.prototype.decodePoint=function(p,f){p=e.toArray(p,f);var C=this.p.byteLength();if((4===p[0]||6===p[0]||7===p[0])&&p.length-1==2*C)return 6===p[0]?r(p[p.length-1]%2==0):7===p[0]&&r(p[p.length-1]%2==1),this.point(p.slice(1,1+C),p.slice(1+C,1+2*C));if((2===p[0]||3===p[0])&&p.length-1===C)return this.pointFromX(p.slice(1,1+C),3===p[0]);throw new Error("Unknown point format")},y.prototype.encodeCompressed=function(p){return this.encode(p,!0)},y.prototype._encode=function(p){var f=this.curve.p.byteLength(),C=this.getX().toArray("be",f);return p?[this.getY().isEven()?2:3].concat(C):[4].concat(C,this.getY().toArray("be",f))},y.prototype.encode=function(p,f){return e.encode(this._encode(f),p)},y.prototype.precompute=function(p){if(this.precomputed)return this;var f={doubles:null,naf:null,beta:null};return f.naf=this._getNAFPoints(8),f.doubles=this._getDoubles(4,p),f.beta=this._getBeta(),this.precomputed=f,this},y.prototype._hasDoubles=function(p){if(!this.precomputed)return!1;var f=this.precomputed.doubles;return!!f&&f.points.length>=Math.ceil((p.bitLength()+1)/f.step)},y.prototype._getDoubles=function(p,f){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var C=[this],N=this,a=0;a<f;a+=p){for(var O=0;O<p;O++)N=N.dbl();C.push(N)}return{step:p,points:C}},y.prototype._getNAFPoints=function(p){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var f=[this],C=(1<<p)-1,N=1===C?null:this.dbl(),a=1;a<C;a++)f[a]=f[a-1].add(N);return{wnd:p,points:f}},y.prototype._getBeta=function(){return null},y.prototype.dblp=function(p){for(var f=this,C=0;C<p;C++)f=f.dbl();return f}},13835:(M,b,n)=>{"use strict";var t=n(61970),e=n(17433),l=n(83894),h=n(97902),r=t.assert;function d(g){this.twisted=1!=(0|g.a),this.mOneA=this.twisted&&-1==(0|g.a),this.extended=this.mOneA,h.call(this,"edwards",g),this.a=new e(g.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new e(g.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new e(g.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),r(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|g.c)}function y(g,p,f,C,N){h.BasePoint.call(this,g,"projective"),null===p&&null===f&&null===C?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new e(p,16),this.y=new e(f,16),this.z=C?new e(C,16):this.curve.one,this.t=N&&new e(N,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}l(d,h),M.exports=d,d.prototype._mulA=function(p){return this.mOneA?p.redNeg():this.a.redMul(p)},d.prototype._mulC=function(p){return this.oneC?p:this.c.redMul(p)},d.prototype.jpoint=function(p,f,C,N){return this.point(p,f,C,N)},d.prototype.pointFromX=function(p,f){(p=new e(p,16)).red||(p=p.toRed(this.red));var C=p.redSqr(),N=this.c2.redSub(this.a.redMul(C)),a=this.one.redSub(this.c2.redMul(this.d).redMul(C)),O=N.redMul(a.redInvm()),H=O.redSqrt();if(0!==H.redSqr().redSub(O).cmp(this.zero))throw new Error("invalid point");var F=H.fromRed().isOdd();return(f&&!F||!f&&F)&&(H=H.redNeg()),this.point(p,H)},d.prototype.pointFromY=function(p,f){(p=new e(p,16)).red||(p=p.toRed(this.red));var C=p.redSqr(),N=C.redSub(this.c2),a=C.redMul(this.d).redMul(this.c2).redSub(this.a),O=N.redMul(a.redInvm());if(0===O.cmp(this.zero)){if(f)throw new Error("invalid point");return this.point(this.zero,p)}var H=O.redSqrt();if(0!==H.redSqr().redSub(O).cmp(this.zero))throw new Error("invalid point");return H.fromRed().isOdd()!==f&&(H=H.redNeg()),this.point(H,p)},d.prototype.validate=function(p){if(p.isInfinity())return!0;p.normalize();var f=p.x.redSqr(),C=p.y.redSqr(),N=f.redMul(this.a).redAdd(C),a=this.c2.redMul(this.one.redAdd(this.d.redMul(f).redMul(C)));return 0===N.cmp(a)},l(y,h.BasePoint),d.prototype.pointFromJSON=function(p){return y.fromJSON(this,p)},d.prototype.point=function(p,f,C,N){return new y(this,p,f,C,N)},y.fromJSON=function(p,f){return new y(p,f[0],f[1],f[2])},y.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},y.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},y.prototype._extDbl=function(){var p=this.x.redSqr(),f=this.y.redSqr(),C=this.z.redSqr();C=C.redIAdd(C);var N=this.curve._mulA(p),a=this.x.redAdd(this.y).redSqr().redISub(p).redISub(f),O=N.redAdd(f),H=O.redSub(C),F=N.redSub(f),V=a.redMul(H),D=O.redMul(F),U=a.redMul(F),q=H.redMul(O);return this.curve.point(V,D,q,U)},y.prototype._projDbl=function(){var N,a,O,H,F,V,p=this.x.redAdd(this.y).redSqr(),f=this.x.redSqr(),C=this.y.redSqr();if(this.curve.twisted){var D=(H=this.curve._mulA(f)).redAdd(C);this.zOne?(N=p.redSub(f).redSub(C).redMul(D.redSub(this.curve.two)),a=D.redMul(H.redSub(C)),O=D.redSqr().redSub(D).redSub(D)):(F=this.z.redSqr(),V=D.redSub(F).redISub(F),N=p.redSub(f).redISub(C).redMul(V),a=D.redMul(H.redSub(C)),O=D.redMul(V))}else H=f.redAdd(C),F=this.curve._mulC(this.z).redSqr(),V=H.redSub(F).redSub(F),N=this.curve._mulC(p.redISub(H)).redMul(V),a=this.curve._mulC(H).redMul(f.redISub(C)),O=H.redMul(V);return this.curve.point(N,a,O)},y.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},y.prototype._extAdd=function(p){var f=this.y.redSub(this.x).redMul(p.y.redSub(p.x)),C=this.y.redAdd(this.x).redMul(p.y.redAdd(p.x)),N=this.t.redMul(this.curve.dd).redMul(p.t),a=this.z.redMul(p.z.redAdd(p.z)),O=C.redSub(f),H=a.redSub(N),F=a.redAdd(N),V=C.redAdd(f),D=O.redMul(H),U=F.redMul(V),q=O.redMul(V),J=H.redMul(F);return this.curve.point(D,U,J,q)},y.prototype._projAdd=function(p){var U,q,f=this.z.redMul(p.z),C=f.redSqr(),N=this.x.redMul(p.x),a=this.y.redMul(p.y),O=this.curve.d.redMul(N).redMul(a),H=C.redSub(O),F=C.redAdd(O),V=this.x.redAdd(this.y).redMul(p.x.redAdd(p.y)).redISub(N).redISub(a),D=f.redMul(H).redMul(V);return this.curve.twisted?(U=f.redMul(F).redMul(a.redSub(this.curve._mulA(N))),q=H.redMul(F)):(U=f.redMul(F).redMul(a.redSub(N)),q=this.curve._mulC(H).redMul(F)),this.curve.point(D,U,q)},y.prototype.add=function(p){return this.isInfinity()?p:p.isInfinity()?this:this.curve.extended?this._extAdd(p):this._projAdd(p)},y.prototype.mul=function(p){return this._hasDoubles(p)?this.curve._fixedNafMul(this,p):this.curve._wnafMul(this,p)},y.prototype.mulAdd=function(p,f,C){return this.curve._wnafMulAdd(1,[this,f],[p,C],2,!1)},y.prototype.jmulAdd=function(p,f,C){return this.curve._wnafMulAdd(1,[this,f],[p,C],2,!0)},y.prototype.normalize=function(){if(this.zOne)return this;var p=this.z.redInvm();return this.x=this.x.redMul(p),this.y=this.y.redMul(p),this.t&&(this.t=this.t.redMul(p)),this.z=this.curve.one,this.zOne=!0,this},y.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},y.prototype.getX=function(){return this.normalize(),this.x.fromRed()},y.prototype.getY=function(){return this.normalize(),this.y.fromRed()},y.prototype.eq=function(p){return this===p||0===this.getX().cmp(p.getX())&&0===this.getY().cmp(p.getY())},y.prototype.eqXToP=function(p){var f=p.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(f))return!0;for(var C=p.clone(),N=this.curve.redN.redMul(this.z);;){if(C.iadd(this.curve.n),C.cmp(this.curve.p)>=0)return!1;if(f.redIAdd(N),0===this.x.cmp(f))return!0}},y.prototype.toP=y.prototype.normalize,y.prototype.mixedAdd=y.prototype.add},46270:(M,b,n)=>{"use strict";var t=b;t.base=n(97902),t.short=n(41781),t.mont=n(97064),t.edwards=n(13835)},97064:(M,b,n)=>{"use strict";var t=n(17433),e=n(83894),l=n(97902),h=n(61970);function r(y){l.call(this,"mont",y),this.a=new t(y.a,16).toRed(this.red),this.b=new t(y.b,16).toRed(this.red),this.i4=new t(4).toRed(this.red).redInvm(),this.two=new t(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function d(y,g,p){l.BasePoint.call(this,y,"projective"),null===g&&null===p?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new t(g,16),this.z=new t(p,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}e(r,l),M.exports=r,r.prototype.validate=function(g){var p=g.normalize().x,f=p.redSqr(),C=f.redMul(p).redAdd(f.redMul(this.a)).redAdd(p);return 0===C.redSqrt().redSqr().cmp(C)},e(d,l.BasePoint),r.prototype.decodePoint=function(g,p){return this.point(h.toArray(g,p),1)},r.prototype.point=function(g,p){return new d(this,g,p)},r.prototype.pointFromJSON=function(g){return d.fromJSON(this,g)},d.prototype.precompute=function(){},d.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},d.fromJSON=function(g,p){return new d(g,p[0],p[1]||g.one)},d.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},d.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},d.prototype.dbl=function(){var p=this.x.redAdd(this.z).redSqr(),C=this.x.redSub(this.z).redSqr(),N=p.redSub(C),a=p.redMul(C),O=N.redMul(C.redAdd(this.curve.a24.redMul(N)));return this.curve.point(a,O)},d.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},d.prototype.diffAdd=function(g,p){var f=this.x.redAdd(this.z),C=this.x.redSub(this.z),N=g.x.redAdd(g.z),O=g.x.redSub(g.z).redMul(f),H=N.redMul(C),F=p.z.redMul(O.redAdd(H).redSqr()),V=p.x.redMul(O.redISub(H).redSqr());return this.curve.point(F,V)},d.prototype.mul=function(g){for(var p=g.clone(),f=this,C=this.curve.point(null,null),a=[];0!==p.cmpn(0);p.iushrn(1))a.push(p.andln(1));for(var O=a.length-1;O>=0;O--)0===a[O]?(f=f.diffAdd(C,this),C=C.dbl()):(C=f.diffAdd(C,this),f=f.dbl());return C},d.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},d.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},d.prototype.eq=function(g){return 0===this.getX().cmp(g.getX())},d.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},d.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},41781:(M,b,n)=>{"use strict";var t=n(61970),e=n(17433),l=n(83894),h=n(97902),r=t.assert;function d(p){h.call(this,"short",p),this.a=new e(p.a,16).toRed(this.red),this.b=new e(p.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(p),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function y(p,f,C,N){h.BasePoint.call(this,p,"affine"),null===f&&null===C?(this.x=null,this.y=null,this.inf=!0):(this.x=new e(f,16),this.y=new e(C,16),N&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function g(p,f,C,N){h.BasePoint.call(this,p,"jacobian"),null===f&&null===C&&null===N?(this.x=this.curve.one,this.y=this.curve.one,this.z=new e(0)):(this.x=new e(f,16),this.y=new e(C,16),this.z=new e(N,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}l(d,h),M.exports=d,d.prototype._getEndomorphism=function(f){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var C,N;if(f.beta)C=new e(f.beta,16).toRed(this.red);else{var a=this._getEndoRoots(this.p);C=(C=a[0].cmp(a[1])<0?a[0]:a[1]).toRed(this.red)}if(f.lambda)N=new e(f.lambda,16);else{var O=this._getEndoRoots(this.n);0===this.g.mul(O[0]).x.cmp(this.g.x.redMul(C))?N=O[0]:r(0===this.g.mul(N=O[1]).x.cmp(this.g.x.redMul(C)))}return{beta:C,lambda:N,basis:f.basis?f.basis.map(function(F){return{a:new e(F.a,16),b:new e(F.b,16)}}):this._getEndoBasis(N)}}},d.prototype._getEndoRoots=function(f){var C=f===this.p?this.red:e.mont(f),N=new e(2).toRed(C).redInvm(),a=N.redNeg(),O=new e(3).toRed(C).redNeg().redSqrt().redMul(N);return[a.redAdd(O).fromRed(),a.redSub(O).fromRed()]},d.prototype._getEndoBasis=function(f){for(var D,U,q,J,G,ie,K,oe,B,C=this.n.ushrn(Math.floor(this.n.bitLength()/2)),N=f,a=this.n.clone(),O=new e(1),H=new e(0),F=new e(0),V=new e(1),re=0;0!==N.cmpn(0);){var s=a.div(N);oe=a.sub(s.mul(N)),B=F.sub(s.mul(O));var _=V.sub(s.mul(H));if(!q&&oe.cmp(C)<0)D=K.neg(),U=O,q=oe.neg(),J=B;else if(q&&2==++re)break;K=oe,a=N,N=oe,F=O,O=B,V=H,H=_}G=oe.neg(),ie=B;var w=q.sqr().add(J.sqr());return G.sqr().add(ie.sqr()).cmp(w)>=0&&(G=D,ie=U),q.negative&&(q=q.neg(),J=J.neg()),G.negative&&(G=G.neg(),ie=ie.neg()),[{a:q,b:J},{a:G,b:ie}]},d.prototype._endoSplit=function(f){var C=this.endo.basis,N=C[0],a=C[1],O=a.b.mul(f).divRound(this.n),H=N.b.neg().mul(f).divRound(this.n),F=O.mul(N.a),V=H.mul(a.a),D=O.mul(N.b),U=H.mul(a.b);return{k1:f.sub(F).sub(V),k2:D.add(U).neg()}},d.prototype.pointFromX=function(f,C){(f=new e(f,16)).red||(f=f.toRed(this.red));var N=f.redSqr().redMul(f).redIAdd(f.redMul(this.a)).redIAdd(this.b),a=N.redSqrt();if(0!==a.redSqr().redSub(N).cmp(this.zero))throw new Error("invalid point");var O=a.fromRed().isOdd();return(C&&!O||!C&&O)&&(a=a.redNeg()),this.point(f,a)},d.prototype.validate=function(f){if(f.inf)return!0;var C=f.x,N=f.y,a=this.a.redMul(C),O=C.redSqr().redMul(C).redIAdd(a).redIAdd(this.b);return 0===N.redSqr().redISub(O).cmpn(0)},d.prototype._endoWnafMulAdd=function(f,C,N){for(var a=this._endoWnafT1,O=this._endoWnafT2,H=0;H<f.length;H++){var F=this._endoSplit(C[H]),V=f[H],D=V._getBeta();F.k1.negative&&(F.k1.ineg(),V=V.neg(!0)),F.k2.negative&&(F.k2.ineg(),D=D.neg(!0)),a[2*H]=V,a[2*H+1]=D,O[2*H]=F.k1,O[2*H+1]=F.k2}for(var U=this._wnafMulAdd(1,a,O,2*H,N),q=0;q<2*H;q++)a[q]=null,O[q]=null;return U},l(y,h.BasePoint),d.prototype.point=function(f,C,N){return new y(this,f,C,N)},d.prototype.pointFromJSON=function(f,C){return y.fromJSON(this,f,C)},y.prototype._getBeta=function(){if(this.curve.endo){var f=this.precomputed;if(f&&f.beta)return f.beta;var C=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(f){var N=this.curve,a=function(O){return N.point(O.x.redMul(N.endo.beta),O.y)};f.beta=C,C.precomputed={beta:null,naf:f.naf&&{wnd:f.naf.wnd,points:f.naf.points.map(a)},doubles:f.doubles&&{step:f.doubles.step,points:f.doubles.points.map(a)}}}return C}},y.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},y.fromJSON=function(f,C,N){"string"==typeof C&&(C=JSON.parse(C));var a=f.point(C[0],C[1],N);if(!C[2])return a;function O(F){return f.point(F[0],F[1],N)}var H=C[2];return a.precomputed={beta:null,doubles:H.doubles&&{step:H.doubles.step,points:[a].concat(H.doubles.points.map(O))},naf:H.naf&&{wnd:H.naf.wnd,points:[a].concat(H.naf.points.map(O))}},a},y.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},y.prototype.isInfinity=function(){return this.inf},y.prototype.add=function(f){if(this.inf)return f;if(f.inf)return this;if(this.eq(f))return this.dbl();if(this.neg().eq(f))return this.curve.point(null,null);if(0===this.x.cmp(f.x))return this.curve.point(null,null);var C=this.y.redSub(f.y);0!==C.cmpn(0)&&(C=C.redMul(this.x.redSub(f.x).redInvm()));var N=C.redSqr().redISub(this.x).redISub(f.x),a=C.redMul(this.x.redSub(N)).redISub(this.y);return this.curve.point(N,a)},y.prototype.dbl=function(){if(this.inf)return this;var f=this.y.redAdd(this.y);if(0===f.cmpn(0))return this.curve.point(null,null);var C=this.curve.a,N=this.x.redSqr(),a=f.redInvm(),O=N.redAdd(N).redIAdd(N).redIAdd(C).redMul(a),H=O.redSqr().redISub(this.x.redAdd(this.x)),F=O.redMul(this.x.redSub(H)).redISub(this.y);return this.curve.point(H,F)},y.prototype.getX=function(){return this.x.fromRed()},y.prototype.getY=function(){return this.y.fromRed()},y.prototype.mul=function(f){return f=new e(f,16),this.isInfinity()?this:this._hasDoubles(f)?this.curve._fixedNafMul(this,f):this.curve.endo?this.curve._endoWnafMulAdd([this],[f]):this.curve._wnafMul(this,f)},y.prototype.mulAdd=function(f,C,N){var a=[this,C],O=[f,N];return this.curve.endo?this.curve._endoWnafMulAdd(a,O):this.curve._wnafMulAdd(1,a,O,2)},y.prototype.jmulAdd=function(f,C,N){var a=[this,C],O=[f,N];return this.curve.endo?this.curve._endoWnafMulAdd(a,O,!0):this.curve._wnafMulAdd(1,a,O,2,!0)},y.prototype.eq=function(f){return this===f||this.inf===f.inf&&(this.inf||0===this.x.cmp(f.x)&&0===this.y.cmp(f.y))},y.prototype.neg=function(f){if(this.inf)return this;var C=this.curve.point(this.x,this.y.redNeg());if(f&&this.precomputed){var N=this.precomputed,a=function(O){return O.neg()};C.precomputed={naf:N.naf&&{wnd:N.naf.wnd,points:N.naf.points.map(a)},doubles:N.doubles&&{step:N.doubles.step,points:N.doubles.points.map(a)}}}return C},y.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},l(g,h.BasePoint),d.prototype.jpoint=function(f,C,N){return new g(this,f,C,N)},g.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var f=this.z.redInvm(),C=f.redSqr(),N=this.x.redMul(C),a=this.y.redMul(C).redMul(f);return this.curve.point(N,a)},g.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},g.prototype.add=function(f){if(this.isInfinity())return f;if(f.isInfinity())return this;var C=f.z.redSqr(),N=this.z.redSqr(),a=this.x.redMul(C),O=f.x.redMul(N),H=this.y.redMul(C.redMul(f.z)),F=f.y.redMul(N.redMul(this.z)),V=a.redSub(O),D=H.redSub(F);if(0===V.cmpn(0))return 0!==D.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var U=V.redSqr(),q=U.redMul(V),J=a.redMul(U),G=D.redSqr().redIAdd(q).redISub(J).redISub(J),ie=D.redMul(J.redISub(G)).redISub(H.redMul(q)),K=this.z.redMul(f.z).redMul(V);return this.curve.jpoint(G,ie,K)},g.prototype.mixedAdd=function(f){if(this.isInfinity())return f.toJ();if(f.isInfinity())return this;var C=this.z.redSqr(),N=this.x,a=f.x.redMul(C),O=this.y,H=f.y.redMul(C).redMul(this.z),F=N.redSub(a),V=O.redSub(H);if(0===F.cmpn(0))return 0!==V.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var D=F.redSqr(),U=D.redMul(F),q=N.redMul(D),J=V.redSqr().redIAdd(U).redISub(q).redISub(q),G=V.redMul(q.redISub(J)).redISub(O.redMul(U)),ie=this.z.redMul(F);return this.curve.jpoint(J,G,ie)},g.prototype.dblp=function(f){if(0===f)return this;if(this.isInfinity())return this;if(!f)return this.dbl();var C;if(this.curve.zeroA||this.curve.threeA){var N=this;for(C=0;C<f;C++)N=N.dbl();return N}var a=this.curve.a,O=this.curve.tinv,H=this.x,F=this.y,V=this.z,D=V.redSqr().redSqr(),U=F.redAdd(F);for(C=0;C<f;C++){var q=H.redSqr(),J=U.redSqr(),G=J.redSqr(),ie=q.redAdd(q).redIAdd(q).redIAdd(a.redMul(D)),K=H.redMul(J),re=ie.redSqr().redISub(K.redAdd(K)),oe=K.redISub(re),B=ie.redMul(oe);B=B.redIAdd(B).redISub(G);var s=U.redMul(V);C+1<f&&(D=D.redMul(G)),H=re,V=s,U=B}return this.curve.jpoint(H,U.redMul(O),V)},g.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},g.prototype._zeroDbl=function(){var f,C,N;if(this.zOne){var a=this.x.redSqr(),O=this.y.redSqr(),H=O.redSqr(),F=this.x.redAdd(O).redSqr().redISub(a).redISub(H);F=F.redIAdd(F);var V=a.redAdd(a).redIAdd(a),D=V.redSqr().redISub(F).redISub(F),U=H.redIAdd(H);U=(U=U.redIAdd(U)).redIAdd(U),f=D,C=V.redMul(F.redISub(D)).redISub(U),N=this.y.redAdd(this.y)}else{var q=this.x.redSqr(),J=this.y.redSqr(),G=J.redSqr(),ie=this.x.redAdd(J).redSqr().redISub(q).redISub(G);ie=ie.redIAdd(ie);var K=q.redAdd(q).redIAdd(q),re=K.redSqr(),oe=G.redIAdd(G);oe=(oe=oe.redIAdd(oe)).redIAdd(oe),f=re.redISub(ie).redISub(ie),C=K.redMul(ie.redISub(f)).redISub(oe),N=(N=this.y.redMul(this.z)).redIAdd(N)}return this.curve.jpoint(f,C,N)},g.prototype._threeDbl=function(){var f,C,N;if(this.zOne){var a=this.x.redSqr(),O=this.y.redSqr(),H=O.redSqr(),F=this.x.redAdd(O).redSqr().redISub(a).redISub(H);F=F.redIAdd(F);var V=a.redAdd(a).redIAdd(a).redIAdd(this.curve.a),D=V.redSqr().redISub(F).redISub(F);f=D;var U=H.redIAdd(H);U=(U=U.redIAdd(U)).redIAdd(U),C=V.redMul(F.redISub(D)).redISub(U),N=this.y.redAdd(this.y)}else{var q=this.z.redSqr(),J=this.y.redSqr(),G=this.x.redMul(J),ie=this.x.redSub(q).redMul(this.x.redAdd(q));ie=ie.redAdd(ie).redIAdd(ie);var K=G.redIAdd(G),re=(K=K.redIAdd(K)).redAdd(K);f=ie.redSqr().redISub(re),N=this.y.redAdd(this.z).redSqr().redISub(J).redISub(q);var oe=J.redSqr();oe=(oe=(oe=oe.redIAdd(oe)).redIAdd(oe)).redIAdd(oe),C=ie.redMul(K.redISub(f)).redISub(oe)}return this.curve.jpoint(f,C,N)},g.prototype._dbl=function(){var f=this.curve.a,C=this.x,N=this.y,a=this.z,O=a.redSqr().redSqr(),H=C.redSqr(),F=N.redSqr(),V=H.redAdd(H).redIAdd(H).redIAdd(f.redMul(O)),D=C.redAdd(C),U=(D=D.redIAdd(D)).redMul(F),q=V.redSqr().redISub(U.redAdd(U)),J=U.redISub(q),G=F.redSqr();G=(G=(G=G.redIAdd(G)).redIAdd(G)).redIAdd(G);var ie=V.redMul(J).redISub(G),K=N.redAdd(N).redMul(a);return this.curve.jpoint(q,ie,K)},g.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var f=this.x.redSqr(),C=this.y.redSqr(),N=this.z.redSqr(),a=C.redSqr(),O=f.redAdd(f).redIAdd(f),H=O.redSqr(),F=this.x.redAdd(C).redSqr().redISub(f).redISub(a),V=(F=(F=(F=F.redIAdd(F)).redAdd(F).redIAdd(F)).redISub(H)).redSqr(),D=a.redIAdd(a);D=(D=(D=D.redIAdd(D)).redIAdd(D)).redIAdd(D);var U=O.redIAdd(F).redSqr().redISub(H).redISub(V).redISub(D),q=C.redMul(U);q=(q=q.redIAdd(q)).redIAdd(q);var J=this.x.redMul(V).redISub(q);J=(J=J.redIAdd(J)).redIAdd(J);var G=this.y.redMul(U.redMul(D.redISub(U)).redISub(F.redMul(V)));G=(G=(G=G.redIAdd(G)).redIAdd(G)).redIAdd(G);var ie=this.z.redAdd(F).redSqr().redISub(N).redISub(V);return this.curve.jpoint(J,G,ie)},g.prototype.mul=function(f,C){return f=new e(f,C),this.curve._wnafMul(this,f)},g.prototype.eq=function(f){if("affine"===f.type)return this.eq(f.toJ());if(this===f)return!0;var C=this.z.redSqr(),N=f.z.redSqr();if(0!==this.x.redMul(N).redISub(f.x.redMul(C)).cmpn(0))return!1;var a=C.redMul(this.z),O=N.redMul(f.z);return 0===this.y.redMul(O).redISub(f.y.redMul(a)).cmpn(0)},g.prototype.eqXToP=function(f){var C=this.z.redSqr(),N=f.toRed(this.curve.red).redMul(C);if(0===this.x.cmp(N))return!0;for(var a=f.clone(),O=this.curve.redN.redMul(C);;){if(a.iadd(this.curve.n),a.cmp(this.curve.p)>=0)return!1;if(N.redIAdd(O),0===this.x.cmp(N))return!0}},g.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},g.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},52916:(M,b,n)=>{"use strict";var g,t=b,e=n(37084),l=n(46270),r=n(61970).assert;function d(p){this.curve="short"===p.type?new l.short(p):"edwards"===p.type?new l.edwards(p):new l.mont(p),this.g=this.curve.g,this.n=this.curve.n,this.hash=p.hash,r(this.g.validate(),"Invalid curve"),r(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function y(p,f){Object.defineProperty(t,p,{configurable:!0,enumerable:!0,get:function(){var C=new d(f);return Object.defineProperty(t,p,{configurable:!0,enumerable:!0,value:C}),C}})}t.PresetCurve=d,y("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:e.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),y("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:e.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),y("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:e.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),y("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:e.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),y("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:e.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),y("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:e.sha256,gRed:!1,g:["9"]}),y("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:e.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{g=n(25150)}catch{g=void 0}y("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:e.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",g]})},67626:(M,b,n)=>{"use strict";var t=n(17433),e=n(52438),l=n(61970),h=n(52916),r=n(37950),d=l.assert,y=n(91259),g=n(65957);function p(f){if(!(this instanceof p))return new p(f);"string"==typeof f&&(d(Object.prototype.hasOwnProperty.call(h,f),"Unknown curve "+f),f=h[f]),f instanceof h.PresetCurve&&(f={curve:f}),this.curve=f.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=f.curve.g,this.g.precompute(f.curve.n.bitLength()+1),this.hash=f.hash||f.curve.hash}M.exports=p,p.prototype.keyPair=function(C){return new y(this,C)},p.prototype.keyFromPrivate=function(C,N){return y.fromPrivate(this,C,N)},p.prototype.keyFromPublic=function(C,N){return y.fromPublic(this,C,N)},p.prototype.genKeyPair=function(C){C||(C={});for(var N=new e({hash:this.hash,pers:C.pers,persEnc:C.persEnc||"utf8",entropy:C.entropy||r(this.hash.hmacStrength),entropyEnc:C.entropy&&C.entropyEnc||"utf8",nonce:this.n.toArray()}),a=this.n.byteLength(),O=this.n.sub(new t(2));;){var H=new t(N.generate(a));if(!(H.cmp(O)>0))return H.iaddn(1),this.keyFromPrivate(H)}},p.prototype._truncateToN=function(C,N){var a=8*C.byteLength()-this.n.bitLength();return a>0&&(C=C.ushrn(a)),!N&&C.cmp(this.n)>=0?C.sub(this.n):C},p.prototype.sign=function(C,N,a,O){"object"==typeof a&&(O=a,a=null),O||(O={}),N=this.keyFromPrivate(N,a),C=this._truncateToN(new t(C,16));for(var H=this.n.byteLength(),F=N.getPrivate().toArray("be",H),V=C.toArray("be",H),D=new e({hash:this.hash,entropy:F,nonce:V,pers:O.pers,persEnc:O.persEnc||"utf8"}),U=this.n.sub(new t(1)),q=0;;q++){var J=O.k?O.k(q):new t(D.generate(this.n.byteLength()));if(!((J=this._truncateToN(J,!0)).cmpn(1)<=0||J.cmp(U)>=0)){var G=this.g.mul(J);if(!G.isInfinity()){var ie=G.getX(),K=ie.umod(this.n);if(0!==K.cmpn(0)){var re=J.invm(this.n).mul(K.mul(N.getPrivate()).iadd(C));if(0!==(re=re.umod(this.n)).cmpn(0)){var oe=(G.getY().isOdd()?1:0)|(0!==ie.cmp(K)?2:0);return O.canonical&&re.cmp(this.nh)>0&&(re=this.n.sub(re),oe^=1),new g({r:K,s:re,recoveryParam:oe})}}}}}},p.prototype.verify=function(C,N,a,O){C=this._truncateToN(new t(C,16)),a=this.keyFromPublic(a,O);var H=(N=new g(N,"hex")).r,F=N.s;if(H.cmpn(1)<0||H.cmp(this.n)>=0||F.cmpn(1)<0||F.cmp(this.n)>=0)return!1;var q,V=F.invm(this.n),D=V.mul(C).umod(this.n),U=V.mul(H).umod(this.n);return this.curve._maxwellTrick?!(q=this.g.jmulAdd(D,a.getPublic(),U)).isInfinity()&&q.eqXToP(H):!(q=this.g.mulAdd(D,a.getPublic(),U)).isInfinity()&&0===q.getX().umod(this.n).cmp(H)},p.prototype.recoverPubKey=function(f,C,N,a){d((3&N)===N,"The recovery param is more than two bits"),C=new g(C,a);var O=this.n,H=new t(f),F=C.r,V=C.s,D=1&N,U=N>>1;if(F.cmp(this.curve.p.umod(this.curve.n))>=0&&U)throw new Error("Unable to find sencond key candinate");F=this.curve.pointFromX(U?F.add(this.curve.n):F,D);var q=C.r.invm(O),J=O.sub(H).mul(q).umod(O),G=V.mul(q).umod(O);return this.g.mulAdd(J,F,G)},p.prototype.getKeyRecoveryParam=function(f,C,N,a){if(null!==(C=new g(C,a)).recoveryParam)return C.recoveryParam;for(var O=0;O<4;O++){var H;try{H=this.recoverPubKey(f,C,O)}catch{continue}if(H.eq(N))return O}throw new Error("Unable to find valid recovery factor")}},91259:(M,b,n)=>{"use strict";var t=n(17433),l=n(61970).assert;function h(r,d){this.ec=r,this.priv=null,this.pub=null,d.priv&&this._importPrivate(d.priv,d.privEnc),d.pub&&this._importPublic(d.pub,d.pubEnc)}M.exports=h,h.fromPublic=function(d,y,g){return y instanceof h?y:new h(d,{pub:y,pubEnc:g})},h.fromPrivate=function(d,y,g){return y instanceof h?y:new h(d,{priv:y,privEnc:g})},h.prototype.validate=function(){var d=this.getPublic();return d.isInfinity()?{result:!1,reason:"Invalid public key"}:d.validate()?d.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},h.prototype.getPublic=function(d,y){return"string"==typeof d&&(y=d,d=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),y?this.pub.encode(y,d):this.pub},h.prototype.getPrivate=function(d){return"hex"===d?this.priv.toString(16,2):this.priv},h.prototype._importPrivate=function(d,y){this.priv=new t(d,y||16),this.priv=this.priv.umod(this.ec.curve.n)},h.prototype._importPublic=function(d,y){if(d.x||d.y)return"mont"===this.ec.curve.type?l(d.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&l(d.x&&d.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(d.x,d.y));this.pub=this.ec.curve.decodePoint(d,y)},h.prototype.derive=function(d){return d.validate()||l(d.validate(),"public point not validated"),d.mul(this.priv).getX()},h.prototype.sign=function(d,y,g){return this.ec.sign(d,this,y,g)},h.prototype.verify=function(d,y){return this.ec.verify(d,y,this)},h.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},65957:(M,b,n)=>{"use strict";var t=n(17433),e=n(61970),l=e.assert;function h(p,f){if(p instanceof h)return p;this._importDER(p,f)||(l(p.r&&p.s,"Signature without r or s"),this.r=new t(p.r,16),this.s=new t(p.s,16),this.recoveryParam=void 0===p.recoveryParam?null:p.recoveryParam)}function r(){this.place=0}function d(p,f){var C=p[f.place++];if(!(128&C))return C;var N=15&C;if(0===N||N>4)return!1;for(var a=0,O=0,H=f.place;O<N;O++,H++)a<<=8,a|=p[H],a>>>=0;return!(a<=127)&&(f.place=H,a)}function y(p){for(var f=0,C=p.length-1;!p[f]&&!(128&p[f+1])&&f<C;)f++;return 0===f?p:p.slice(f)}function g(p,f){if(f<128)p.push(f);else{var C=1+(Math.log(f)/Math.LN2>>>3);for(p.push(128|C);--C;)p.push(f>>>(C<<3)&255);p.push(f)}}M.exports=h,h.prototype._importDER=function(f,C){f=e.toArray(f,C);var N=new r;if(48!==f[N.place++])return!1;var a=d(f,N);if(!1===a||a+N.place!==f.length||2!==f[N.place++])return!1;var O=d(f,N);if(!1===O)return!1;var H=f.slice(N.place,O+N.place);if(N.place+=O,2!==f[N.place++])return!1;var F=d(f,N);if(!1===F||f.length!==F+N.place)return!1;var V=f.slice(N.place,F+N.place);if(0===H[0]){if(!(128&H[1]))return!1;H=H.slice(1)}if(0===V[0]){if(!(128&V[1]))return!1;V=V.slice(1)}return this.r=new t(H),this.s=new t(V),this.recoveryParam=null,!0},h.prototype.toDER=function(f){var C=this.r.toArray(),N=this.s.toArray();for(128&C[0]&&(C=[0].concat(C)),128&N[0]&&(N=[0].concat(N)),C=y(C),N=y(N);!(N[0]||128&N[1]);)N=N.slice(1);var a=[2];g(a,C.length),(a=a.concat(C)).push(2),g(a,N.length);var O=a.concat(N),H=[48];return g(H,O.length),H=H.concat(O),e.encode(H,f)}},81885:(M,b,n)=>{"use strict";var t=n(37084),e=n(52916),l=n(61970),h=l.assert,r=l.parseBytes,d=n(97535),y=n(88241);function g(p){if(h("ed25519"===p,"only tested with ed25519 so far"),!(this instanceof g))return new g(p);this.curve=p=e[p].curve,this.g=p.g,this.g.precompute(p.n.bitLength()+1),this.pointClass=p.point().constructor,this.encodingLength=Math.ceil(p.n.bitLength()/8),this.hash=t.sha512}M.exports=g,g.prototype.sign=function(f,C){f=r(f);var N=this.keyFromSecret(C),a=this.hashInt(N.messagePrefix(),f),O=this.g.mul(a),H=this.encodePoint(O),F=this.hashInt(H,N.pubBytes(),f).mul(N.priv()),V=a.add(F).umod(this.curve.n);return this.makeSignature({R:O,S:V,Rencoded:H})},g.prototype.verify=function(f,C,N){f=r(f),C=this.makeSignature(C);var a=this.keyFromPublic(N),O=this.hashInt(C.Rencoded(),a.pubBytes(),f),H=this.g.mul(C.S());return C.R().add(a.pub().mul(O)).eq(H)},g.prototype.hashInt=function(){for(var f=this.hash(),C=0;C<arguments.length;C++)f.update(arguments[C]);return l.intFromLE(f.digest()).umod(this.curve.n)},g.prototype.keyFromPublic=function(f){return d.fromPublic(this,f)},g.prototype.keyFromSecret=function(f){return d.fromSecret(this,f)},g.prototype.makeSignature=function(f){return f instanceof y?f:new y(this,f)},g.prototype.encodePoint=function(f){var C=f.getY().toArray("le",this.encodingLength);return C[this.encodingLength-1]|=f.getX().isOdd()?128:0,C},g.prototype.decodePoint=function(f){var C=(f=l.parseBytes(f)).length-1,N=f.slice(0,C).concat(-129&f[C]),a=0!=(128&f[C]),O=l.intFromLE(N);return this.curve.pointFromY(O,a)},g.prototype.encodeInt=function(f){return f.toArray("le",this.encodingLength)},g.prototype.decodeInt=function(f){return l.intFromLE(f)},g.prototype.isPoint=function(f){return f instanceof this.pointClass}},97535:(M,b,n)=>{"use strict";var t=n(61970),e=t.assert,l=t.parseBytes,h=t.cachedProperty;function r(d,y){this.eddsa=d,this._secret=l(y.secret),d.isPoint(y.pub)?this._pub=y.pub:this._pubBytes=l(y.pub)}r.fromPublic=function(y,g){return g instanceof r?g:new r(y,{pub:g})},r.fromSecret=function(y,g){return g instanceof r?g:new r(y,{secret:g})},r.prototype.secret=function(){return this._secret},h(r,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),h(r,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),h(r,"privBytes",function(){var y=this.eddsa,g=this.hash(),p=y.encodingLength-1,f=g.slice(0,y.encodingLength);return f[0]&=248,f[p]&=127,f[p]|=64,f}),h(r,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),h(r,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),h(r,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),r.prototype.sign=function(y){return e(this._secret,"KeyPair can only verify"),this.eddsa.sign(y,this)},r.prototype.verify=function(y,g){return this.eddsa.verify(y,g,this)},r.prototype.getSecret=function(y){return e(this._secret,"KeyPair is public only"),t.encode(this.secret(),y)},r.prototype.getPublic=function(y){return t.encode(this.pubBytes(),y)},M.exports=r},88241:(M,b,n)=>{"use strict";var t=n(17433),e=n(61970),l=e.assert,h=e.cachedProperty,r=e.parseBytes;function d(y,g){this.eddsa=y,"object"!=typeof g&&(g=r(g)),Array.isArray(g)&&(g={R:g.slice(0,y.encodingLength),S:g.slice(y.encodingLength)}),l(g.R&&g.S,"Signature without R or S"),y.isPoint(g.R)&&(this._R=g.R),g.S instanceof t&&(this._S=g.S),this._Rencoded=Array.isArray(g.R)?g.R:g.Rencoded,this._Sencoded=Array.isArray(g.S)?g.S:g.Sencoded}h(d,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),h(d,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),h(d,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),h(d,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),d.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},d.prototype.toHex=function(){return e.encode(this.toBytes(),"hex").toUpperCase()},M.exports=d},25150:M=>{M.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},61970:(M,b,n)=>{"use strict";var t=b,e=n(17433),l=n(32391),h=n(58195);t.assert=l,t.toArray=h.toArray,t.zero2=h.zero2,t.toHex=h.toHex,t.encode=h.encode,t.getNAF=function r(f,C,N){var a=new Array(Math.max(f.bitLength(),N)+1);a.fill(0);for(var O=1<<C+1,H=f.clone(),F=0;F<a.length;F++){var V,D=H.andln(O-1);H.isOdd()?H.isubn(V=D>(O>>1)-1?(O>>1)-D:D):V=0,a[F]=V,H.iushrn(1)}return a},t.getJSF=function d(f,C){var N=[[],[]];f=f.clone(),C=C.clone();for(var H,a=0,O=0;f.cmpn(-a)>0||C.cmpn(-O)>0;){var D,U,F=f.andln(3)+a&3,V=C.andln(3)+O&3;3===F&&(F=-1),3===V&&(V=-1),D=0==(1&F)?0:3!=(H=f.andln(7)+a&7)&&5!==H||2!==V?F:-F,N[0].push(D),U=0==(1&V)?0:3!=(H=C.andln(7)+O&7)&&5!==H||2!==F?V:-V,N[1].push(U),2*a===D+1&&(a=1-a),2*O===U+1&&(O=1-O),f.iushrn(1),C.iushrn(1)}return N},t.cachedProperty=function y(f,C,N){var a="_"+C;f.prototype[C]=function(){return void 0!==this[a]?this[a]:this[a]=N.call(this)}},t.parseBytes=function g(f){return"string"==typeof f?t.toArray(f,"hex"):f},t.intFromLE=function p(f){return new e(f,"hex","le")}},17433:function(M,b,n){!function(t,e){"use strict";function l(B,s){if(!B)throw new Error(s||"Assertion failed")}function h(B,s){B.super_=s;var _=function(){};_.prototype=s.prototype,B.prototype=new _,B.prototype.constructor=B}function r(B,s,_){if(r.isBN(B))return B;this.negative=0,this.words=null,this.length=0,this.red=null,null!==B&&(("le"===s||"be"===s)&&(_=s,s=10),this._init(B||0,s||10,_||"be"))}var d;"object"==typeof t?t.exports=r:e.BN=r,r.BN=r,r.wordSize=26;try{d=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:n(85568).Buffer}catch{}function y(B,s){var _=B.charCodeAt(s);return _>=65&&_<=70?_-55:_>=97&&_<=102?_-87:_-48&15}function g(B,s,_){var w=y(B,_);return _-1>=s&&(w|=y(B,_-1)<<4),w}function p(B,s,_,w){for(var E=0,x=Math.min(B.length,_),j=s;j<x;j++){var $=B.charCodeAt(j)-48;E*=w,E+=$>=49?$-49+10:$>=17?$-17+10:$}return E}r.isBN=function(s){return s instanceof r||null!==s&&"object"==typeof s&&s.constructor.wordSize===r.wordSize&&Array.isArray(s.words)},r.max=function(s,_){return s.cmp(_)>0?s:_},r.min=function(s,_){return s.cmp(_)<0?s:_},r.prototype._init=function(s,_,w){if("number"==typeof s)return this._initNumber(s,_,w);if("object"==typeof s)return this._initArray(s,_,w);"hex"===_&&(_=16),l(_===(0|_)&&_>=2&&_<=36);var E=0;"-"===(s=s.toString().replace(/\s+/g,""))[0]&&(E++,this.negative=1),E<s.length&&(16===_?this._parseHex(s,E,w):(this._parseBase(s,_,E),"le"===w&&this._initArray(this.toArray(),_,w)))},r.prototype._initNumber=function(s,_,w){s<0&&(this.negative=1,s=-s),s<67108864?(this.words=[67108863&s],this.length=1):s<4503599627370496?(this.words=[67108863&s,s/67108864&67108863],this.length=2):(l(s<9007199254740992),this.words=[67108863&s,s/67108864&67108863,1],this.length=3),"le"===w&&this._initArray(this.toArray(),_,w)},r.prototype._initArray=function(s,_,w){if(l("number"==typeof s.length),s.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(s.length/3),this.words=new Array(this.length);for(var E=0;E<this.length;E++)this.words[E]=0;var x,j,$=0;if("be"===w)for(E=s.length-1,x=0;E>=0;E-=3)this.words[x]|=(j=s[E]|s[E-1]<<8|s[E-2]<<16)<<$&67108863,this.words[x+1]=j>>>26-$&67108863,($+=24)>=26&&($-=26,x++);else if("le"===w)for(E=0,x=0;E<s.length;E+=3)this.words[x]|=(j=s[E]|s[E+1]<<8|s[E+2]<<16)<<$&67108863,this.words[x+1]=j>>>26-$&67108863,($+=24)>=26&&($-=26,x++);return this.strip()},r.prototype._parseHex=function(s,_,w){this.length=Math.ceil((s.length-_)/6),this.words=new Array(this.length);for(var E=0;E<this.length;E++)this.words[E]=0;var $,x=0,j=0;if("be"===w)for(E=s.length-1;E>=_;E-=2)$=g(s,_,E)<<x,this.words[j]|=67108863&$,x>=18?(x-=18,this.words[j+=1]|=$>>>26):x+=8;else for(E=(s.length-_)%2==0?_+1:_;E<s.length;E+=2)$=g(s,_,E)<<x,this.words[j]|=67108863&$,x>=18?(x-=18,this.words[j+=1]|=$>>>26):x+=8;this.strip()},r.prototype._parseBase=function(s,_,w){this.words=[0],this.length=1;for(var E=0,x=1;x<=67108863;x*=_)E++;E--,x=x/_|0;for(var j=s.length-w,$=j%E,Y=Math.min(j,j-$)+w,u=0,W=w;W<Y;W+=E)u=p(s,W,W+E,_),this.imuln(x),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==$){var fe=1;for(u=p(s,W,s.length,_),W=0;W<$;W++)fe*=_;this.imuln(fe),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},r.prototype.copy=function(s){s.words=new Array(this.length);for(var _=0;_<this.length;_++)s.words[_]=this.words[_];s.length=this.length,s.negative=this.negative,s.red=this.red},r.prototype.clone=function(){var s=new r(null);return this.copy(s),s},r.prototype._expand=function(s){for(;this.length<s;)this.words[this.length++]=0;return this},r.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},r.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},r.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],C=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],N=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function O(B,s,_){_.negative=s.negative^B.negative;var w=B.length+s.length|0;_.length=w,w=w-1|0;var E=0|B.words[0],x=0|s.words[0],j=E*x,Y=j/67108864|0;_.words[0]=67108863&j;for(var u=1;u<w;u++){for(var W=Y>>>26,fe=67108863&Y,ae=Math.min(u,s.length-1),ye=Math.max(0,u-B.length+1);ye<=ae;ye++)W+=(j=(E=0|B.words[u-ye|0])*(x=0|s.words[ye])+fe)/67108864|0,fe=67108863&j;_.words[u]=0|fe,Y=0|W}return 0!==Y?_.words[u]=0|Y:_.length--,_.strip()}r.prototype.toString=function(s,_){var w;if(_=0|_||1,16===(s=s||10)||"hex"===s){w="";for(var E=0,x=0,j=0;j<this.length;j++){var $=this.words[j],Y=(16777215&($<<E|x)).toString(16);w=0!=(x=$>>>24-E&16777215)||j!==this.length-1?f[6-Y.length]+Y+w:Y+w,(E+=2)>=26&&(E-=26,j--)}for(0!==x&&(w=x.toString(16)+w);w.length%_!=0;)w="0"+w;return 0!==this.negative&&(w="-"+w),w}if(s===(0|s)&&s>=2&&s<=36){var u=C[s],W=N[s];w="";var fe=this.clone();for(fe.negative=0;!fe.isZero();){var ae=fe.modn(W).toString(s);w=(fe=fe.idivn(W)).isZero()?ae+w:f[u-ae.length]+ae+w}for(this.isZero()&&(w="0"+w);w.length%_!=0;)w="0"+w;return 0!==this.negative&&(w="-"+w),w}l(!1,"Base should be between 2 and 36")},r.prototype.toNumber=function(){var s=this.words[0];return 2===this.length?s+=67108864*this.words[1]:3===this.length&&1===this.words[2]?s+=4503599627370496+67108864*this.words[1]:this.length>2&&l(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-s:s},r.prototype.toJSON=function(){return this.toString(16)},r.prototype.toBuffer=function(s,_){return l(typeof d<"u"),this.toArrayLike(d,s,_)},r.prototype.toArray=function(s,_){return this.toArrayLike(Array,s,_)},r.prototype.toArrayLike=function(s,_,w){var E=this.byteLength(),x=w||Math.max(1,E);l(E<=x,"byte array longer than desired length"),l(x>0,"Requested array length <= 0"),this.strip();var Y,u,j="le"===_,$=new s(x),W=this.clone();if(j){for(u=0;!W.isZero();u++)Y=W.andln(255),W.iushrn(8),$[u]=Y;for(;u<x;u++)$[u]=0}else{for(u=0;u<x-E;u++)$[u]=0;for(u=0;!W.isZero();u++)Y=W.andln(255),W.iushrn(8),$[x-u-1]=Y}return $},r.prototype._countBits=Math.clz32?function(s){return 32-Math.clz32(s)}:function(s){var _=s,w=0;return _>=4096&&(w+=13,_>>>=13),_>=64&&(w+=7,_>>>=7),_>=8&&(w+=4,_>>>=4),_>=2&&(w+=2,_>>>=2),w+_},r.prototype._zeroBits=function(s){if(0===s)return 26;var _=s,w=0;return 0==(8191&_)&&(w+=13,_>>>=13),0==(127&_)&&(w+=7,_>>>=7),0==(15&_)&&(w+=4,_>>>=4),0==(3&_)&&(w+=2,_>>>=2),0==(1&_)&&w++,w},r.prototype.bitLength=function(){var _=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+_},r.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s=0,_=0;_<this.length;_++){var w=this._zeroBits(this.words[_]);if(s+=w,26!==w)break}return s},r.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},r.prototype.toTwos=function(s){return 0!==this.negative?this.abs().inotn(s).iaddn(1):this.clone()},r.prototype.fromTwos=function(s){return this.testn(s-1)?this.notn(s).iaddn(1).ineg():this.clone()},r.prototype.isNeg=function(){return 0!==this.negative},r.prototype.neg=function(){return this.clone().ineg()},r.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},r.prototype.iuor=function(s){for(;this.length<s.length;)this.words[this.length++]=0;for(var _=0;_<s.length;_++)this.words[_]=this.words[_]|s.words[_];return this.strip()},r.prototype.ior=function(s){return l(0==(this.negative|s.negative)),this.iuor(s)},r.prototype.or=function(s){return this.length>s.length?this.clone().ior(s):s.clone().ior(this)},r.prototype.uor=function(s){return this.length>s.length?this.clone().iuor(s):s.clone().iuor(this)},r.prototype.iuand=function(s){var _;_=this.length>s.length?s:this;for(var w=0;w<_.length;w++)this.words[w]=this.words[w]&s.words[w];return this.length=_.length,this.strip()},r.prototype.iand=function(s){return l(0==(this.negative|s.negative)),this.iuand(s)},r.prototype.and=function(s){return this.length>s.length?this.clone().iand(s):s.clone().iand(this)},r.prototype.uand=function(s){return this.length>s.length?this.clone().iuand(s):s.clone().iuand(this)},r.prototype.iuxor=function(s){var _,w;this.length>s.length?(_=this,w=s):(_=s,w=this);for(var E=0;E<w.length;E++)this.words[E]=_.words[E]^w.words[E];if(this!==_)for(;E<_.length;E++)this.words[E]=_.words[E];return this.length=_.length,this.strip()},r.prototype.ixor=function(s){return l(0==(this.negative|s.negative)),this.iuxor(s)},r.prototype.xor=function(s){return this.length>s.length?this.clone().ixor(s):s.clone().ixor(this)},r.prototype.uxor=function(s){return this.length>s.length?this.clone().iuxor(s):s.clone().iuxor(this)},r.prototype.inotn=function(s){l("number"==typeof s&&s>=0);var _=0|Math.ceil(s/26),w=s%26;this._expand(_),w>0&&_--;for(var E=0;E<_;E++)this.words[E]=67108863&~this.words[E];return w>0&&(this.words[E]=~this.words[E]&67108863>>26-w),this.strip()},r.prototype.notn=function(s){return this.clone().inotn(s)},r.prototype.setn=function(s,_){l("number"==typeof s&&s>=0);var w=s/26|0,E=s%26;return this._expand(w+1),this.words[w]=_?this.words[w]|1<<E:this.words[w]&~(1<<E),this.strip()},r.prototype.iadd=function(s){var _,w,E;if(0!==this.negative&&0===s.negative)return this.negative=0,_=this.isub(s),this.negative^=1,this._normSign();if(0===this.negative&&0!==s.negative)return s.negative=0,_=this.isub(s),s.negative=1,_._normSign();this.length>s.length?(w=this,E=s):(w=s,E=this);for(var x=0,j=0;j<E.length;j++)this.words[j]=67108863&(_=(0|w.words[j])+(0|E.words[j])+x),x=_>>>26;for(;0!==x&&j<w.length;j++)this.words[j]=67108863&(_=(0|w.words[j])+x),x=_>>>26;if(this.length=w.length,0!==x)this.words[this.length]=x,this.length++;else if(w!==this)for(;j<w.length;j++)this.words[j]=w.words[j];return this},r.prototype.add=function(s){var _;return 0!==s.negative&&0===this.negative?(s.negative=0,_=this.sub(s),s.negative^=1,_):0===s.negative&&0!==this.negative?(this.negative=0,_=s.sub(this),this.negative=1,_):this.length>s.length?this.clone().iadd(s):s.clone().iadd(this)},r.prototype.isub=function(s){if(0!==s.negative){s.negative=0;var _=this.iadd(s);return s.negative=1,_._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(s),this.negative=1,this._normSign();var E,x,w=this.cmp(s);if(0===w)return this.negative=0,this.length=1,this.words[0]=0,this;w>0?(E=this,x=s):(E=s,x=this);for(var j=0,$=0;$<x.length;$++)j=(_=(0|E.words[$])-(0|x.words[$])+j)>>26,this.words[$]=67108863&_;for(;0!==j&&$<E.length;$++)j=(_=(0|E.words[$])+j)>>26,this.words[$]=67108863&_;if(0===j&&$<E.length&&E!==this)for(;$<E.length;$++)this.words[$]=E.words[$];return this.length=Math.max(this.length,$),E!==this&&(this.negative=1),this.strip()},r.prototype.sub=function(s){return this.clone().isub(s)};var H=function(s,_,w){var Y,u,W,E=s.words,x=_.words,j=w.words,$=0,fe=0|E[0],ae=8191&fe,ye=fe>>>13,Qe=0|E[1],Ot=8191&Qe,At=Qe>>>13,Ze=0|E[2],at=8191&Ze,Be=Ze>>>13,Lt=0|E[3],_e=8191&Lt,ne=Lt>>>13,be=0|E[4],Te=8191&be,$e=be>>>13,ft=0|E[5],Ge=8191&ft,Ft=ft>>>13,br=0|E[6],rt=8191&br,st=br>>>13,Dt=0|E[7],ot=8191&Dt,nt=Dt>>>13,Yt=0|E[8],Ne=8191&Yt,X=Yt>>>13,ge=0|E[9],Me=8191&ge,We=ge>>>13,Re=0|x[0],pt=8191&Re,Zt=Re>>>13,cr=0|x[1],wt=8191&cr,gt=cr>>>13,Ut=0|x[2],hr=8191&Ut,Cr=Ut>>>13,Ue=0|x[3],Pt=8191&Ue,He=Ue>>>13,tt=0|x[4],Ke=8191&tt,kt=tt>>>13,xe=0|x[5],Fe=8191&xe,lt=xe>>>13,St=0|x[6],qe=8191&St,ke=St>>>13,ct=0|x[7],vt=8191&ct,$t=ct>>>13,Vr=0|x[8],Sr=8191&Vr,Ar=Vr>>>13,Jr=0|x[9],Fr=8191&Jr,Gt=Jr>>>13;w.negative=s.negative^_.negative,w.length=19;var le=($+(Y=Math.imul(ae,pt))|0)+((8191&(u=(u=Math.imul(ae,Zt))+Math.imul(ye,pt)|0))<<13)|0;$=((W=Math.imul(ye,Zt))+(u>>>13)|0)+(le>>>26)|0,le&=67108863,Y=Math.imul(Ot,pt),u=(u=Math.imul(Ot,Zt))+Math.imul(At,pt)|0,W=Math.imul(At,Zt);var Ce=($+(Y=Y+Math.imul(ae,wt)|0)|0)+((8191&(u=(u=u+Math.imul(ae,gt)|0)+Math.imul(ye,wt)|0))<<13)|0;$=((W=W+Math.imul(ye,gt)|0)+(u>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,Y=Math.imul(at,pt),u=(u=Math.imul(at,Zt))+Math.imul(Be,pt)|0,W=Math.imul(Be,Zt),Y=Y+Math.imul(Ot,wt)|0,u=(u=u+Math.imul(Ot,gt)|0)+Math.imul(At,wt)|0,W=W+Math.imul(At,gt)|0;var Ie=($+(Y=Y+Math.imul(ae,hr)|0)|0)+((8191&(u=(u=u+Math.imul(ae,Cr)|0)+Math.imul(ye,hr)|0))<<13)|0;$=((W=W+Math.imul(ye,Cr)|0)+(u>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,Y=Math.imul(_e,pt),u=(u=Math.imul(_e,Zt))+Math.imul(ne,pt)|0,W=Math.imul(ne,Zt),Y=Y+Math.imul(at,wt)|0,u=(u=u+Math.imul(at,gt)|0)+Math.imul(Be,wt)|0,W=W+Math.imul(Be,gt)|0,Y=Y+Math.imul(Ot,hr)|0,u=(u=u+Math.imul(Ot,Cr)|0)+Math.imul(At,hr)|0,W=W+Math.imul(At,Cr)|0;var Pe=($+(Y=Y+Math.imul(ae,Pt)|0)|0)+((8191&(u=(u=u+Math.imul(ae,He)|0)+Math.imul(ye,Pt)|0))<<13)|0;$=((W=W+Math.imul(ye,He)|0)+(u>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,Y=Math.imul(Te,pt),u=(u=Math.imul(Te,Zt))+Math.imul($e,pt)|0,W=Math.imul($e,Zt),Y=Y+Math.imul(_e,wt)|0,u=(u=u+Math.imul(_e,gt)|0)+Math.imul(ne,wt)|0,W=W+Math.imul(ne,gt)|0,Y=Y+Math.imul(at,hr)|0,u=(u=u+Math.imul(at,Cr)|0)+Math.imul(Be,hr)|0,W=W+Math.imul(Be,Cr)|0,Y=Y+Math.imul(Ot,Pt)|0,u=(u=u+Math.imul(Ot,He)|0)+Math.imul(At,Pt)|0,W=W+Math.imul(At,He)|0;var Oe=($+(Y=Y+Math.imul(ae,Ke)|0)|0)+((8191&(u=(u=u+Math.imul(ae,kt)|0)+Math.imul(ye,Ke)|0))<<13)|0;$=((W=W+Math.imul(ye,kt)|0)+(u>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,Y=Math.imul(Ge,pt),u=(u=Math.imul(Ge,Zt))+Math.imul(Ft,pt)|0,W=Math.imul(Ft,Zt),Y=Y+Math.imul(Te,wt)|0,u=(u=u+Math.imul(Te,gt)|0)+Math.imul($e,wt)|0,W=W+Math.imul($e,gt)|0,Y=Y+Math.imul(_e,hr)|0,u=(u=u+Math.imul(_e,Cr)|0)+Math.imul(ne,hr)|0,W=W+Math.imul(ne,Cr)|0,Y=Y+Math.imul(at,Pt)|0,u=(u=u+Math.imul(at,He)|0)+Math.imul(Be,Pt)|0,W=W+Math.imul(Be,He)|0,Y=Y+Math.imul(Ot,Ke)|0,u=(u=u+Math.imul(Ot,kt)|0)+Math.imul(At,Ke)|0,W=W+Math.imul(At,kt)|0;var Se=($+(Y=Y+Math.imul(ae,Fe)|0)|0)+((8191&(u=(u=u+Math.imul(ae,lt)|0)+Math.imul(ye,Fe)|0))<<13)|0;$=((W=W+Math.imul(ye,lt)|0)+(u>>>13)|0)+(Se>>>26)|0,Se&=67108863,Y=Math.imul(rt,pt),u=(u=Math.imul(rt,Zt))+Math.imul(st,pt)|0,W=Math.imul(st,Zt),Y=Y+Math.imul(Ge,wt)|0,u=(u=u+Math.imul(Ge,gt)|0)+Math.imul(Ft,wt)|0,W=W+Math.imul(Ft,gt)|0,Y=Y+Math.imul(Te,hr)|0,u=(u=u+Math.imul(Te,Cr)|0)+Math.imul($e,hr)|0,W=W+Math.imul($e,Cr)|0,Y=Y+Math.imul(_e,Pt)|0,u=(u=u+Math.imul(_e,He)|0)+Math.imul(ne,Pt)|0,W=W+Math.imul(ne,He)|0,Y=Y+Math.imul(at,Ke)|0,u=(u=u+Math.imul(at,kt)|0)+Math.imul(Be,Ke)|0,W=W+Math.imul(Be,kt)|0,Y=Y+Math.imul(Ot,Fe)|0,u=(u=u+Math.imul(Ot,lt)|0)+Math.imul(At,Fe)|0,W=W+Math.imul(At,lt)|0;var Xe=($+(Y=Y+Math.imul(ae,qe)|0)|0)+((8191&(u=(u=u+Math.imul(ae,ke)|0)+Math.imul(ye,qe)|0))<<13)|0;$=((W=W+Math.imul(ye,ke)|0)+(u>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,Y=Math.imul(ot,pt),u=(u=Math.imul(ot,Zt))+Math.imul(nt,pt)|0,W=Math.imul(nt,Zt),Y=Y+Math.imul(rt,wt)|0,u=(u=u+Math.imul(rt,gt)|0)+Math.imul(st,wt)|0,W=W+Math.imul(st,gt)|0,Y=Y+Math.imul(Ge,hr)|0,u=(u=u+Math.imul(Ge,Cr)|0)+Math.imul(Ft,hr)|0,W=W+Math.imul(Ft,Cr)|0,Y=Y+Math.imul(Te,Pt)|0,u=(u=u+Math.imul(Te,He)|0)+Math.imul($e,Pt)|0,W=W+Math.imul($e,He)|0,Y=Y+Math.imul(_e,Ke)|0,u=(u=u+Math.imul(_e,kt)|0)+Math.imul(ne,Ke)|0,W=W+Math.imul(ne,kt)|0,Y=Y+Math.imul(at,Fe)|0,u=(u=u+Math.imul(at,lt)|0)+Math.imul(Be,Fe)|0,W=W+Math.imul(Be,lt)|0,Y=Y+Math.imul(Ot,qe)|0,u=(u=u+Math.imul(Ot,ke)|0)+Math.imul(At,qe)|0,W=W+Math.imul(At,ke)|0;var Ct=($+(Y=Y+Math.imul(ae,vt)|0)|0)+((8191&(u=(u=u+Math.imul(ae,$t)|0)+Math.imul(ye,vt)|0))<<13)|0;$=((W=W+Math.imul(ye,$t)|0)+(u>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,Y=Math.imul(Ne,pt),u=(u=Math.imul(Ne,Zt))+Math.imul(X,pt)|0,W=Math.imul(X,Zt),Y=Y+Math.imul(ot,wt)|0,u=(u=u+Math.imul(ot,gt)|0)+Math.imul(nt,wt)|0,W=W+Math.imul(nt,gt)|0,Y=Y+Math.imul(rt,hr)|0,u=(u=u+Math.imul(rt,Cr)|0)+Math.imul(st,hr)|0,W=W+Math.imul(st,Cr)|0,Y=Y+Math.imul(Ge,Pt)|0,u=(u=u+Math.imul(Ge,He)|0)+Math.imul(Ft,Pt)|0,W=W+Math.imul(Ft,He)|0,Y=Y+Math.imul(Te,Ke)|0,u=(u=u+Math.imul(Te,kt)|0)+Math.imul($e,Ke)|0,W=W+Math.imul($e,kt)|0,Y=Y+Math.imul(_e,Fe)|0,u=(u=u+Math.imul(_e,lt)|0)+Math.imul(ne,Fe)|0,W=W+Math.imul(ne,lt)|0,Y=Y+Math.imul(at,qe)|0,u=(u=u+Math.imul(at,ke)|0)+Math.imul(Be,qe)|0,W=W+Math.imul(Be,ke)|0,Y=Y+Math.imul(Ot,vt)|0,u=(u=u+Math.imul(Ot,$t)|0)+Math.imul(At,vt)|0,W=W+Math.imul(At,$t)|0;var zt=($+(Y=Y+Math.imul(ae,Sr)|0)|0)+((8191&(u=(u=u+Math.imul(ae,Ar)|0)+Math.imul(ye,Sr)|0))<<13)|0;$=((W=W+Math.imul(ye,Ar)|0)+(u>>>13)|0)+(zt>>>26)|0,zt&=67108863,Y=Math.imul(Me,pt),u=(u=Math.imul(Me,Zt))+Math.imul(We,pt)|0,W=Math.imul(We,Zt),Y=Y+Math.imul(Ne,wt)|0,u=(u=u+Math.imul(Ne,gt)|0)+Math.imul(X,wt)|0,W=W+Math.imul(X,gt)|0,Y=Y+Math.imul(ot,hr)|0,u=(u=u+Math.imul(ot,Cr)|0)+Math.imul(nt,hr)|0,W=W+Math.imul(nt,Cr)|0,Y=Y+Math.imul(rt,Pt)|0,u=(u=u+Math.imul(rt,He)|0)+Math.imul(st,Pt)|0,W=W+Math.imul(st,He)|0,Y=Y+Math.imul(Ge,Ke)|0,u=(u=u+Math.imul(Ge,kt)|0)+Math.imul(Ft,Ke)|0,W=W+Math.imul(Ft,kt)|0,Y=Y+Math.imul(Te,Fe)|0,u=(u=u+Math.imul(Te,lt)|0)+Math.imul($e,Fe)|0,W=W+Math.imul($e,lt)|0,Y=Y+Math.imul(_e,qe)|0,u=(u=u+Math.imul(_e,ke)|0)+Math.imul(ne,qe)|0,W=W+Math.imul(ne,ke)|0,Y=Y+Math.imul(at,vt)|0,u=(u=u+Math.imul(at,$t)|0)+Math.imul(Be,vt)|0,W=W+Math.imul(Be,$t)|0,Y=Y+Math.imul(Ot,Sr)|0,u=(u=u+Math.imul(Ot,Ar)|0)+Math.imul(At,Sr)|0,W=W+Math.imul(At,Ar)|0;var kr=($+(Y=Y+Math.imul(ae,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(ae,Gt)|0)+Math.imul(ye,Fr)|0))<<13)|0;$=((W=W+Math.imul(ye,Gt)|0)+(u>>>13)|0)+(kr>>>26)|0,kr&=67108863,Y=Math.imul(Me,wt),u=(u=Math.imul(Me,gt))+Math.imul(We,wt)|0,W=Math.imul(We,gt),Y=Y+Math.imul(Ne,hr)|0,u=(u=u+Math.imul(Ne,Cr)|0)+Math.imul(X,hr)|0,W=W+Math.imul(X,Cr)|0,Y=Y+Math.imul(ot,Pt)|0,u=(u=u+Math.imul(ot,He)|0)+Math.imul(nt,Pt)|0,W=W+Math.imul(nt,He)|0,Y=Y+Math.imul(rt,Ke)|0,u=(u=u+Math.imul(rt,kt)|0)+Math.imul(st,Ke)|0,W=W+Math.imul(st,kt)|0,Y=Y+Math.imul(Ge,Fe)|0,u=(u=u+Math.imul(Ge,lt)|0)+Math.imul(Ft,Fe)|0,W=W+Math.imul(Ft,lt)|0,Y=Y+Math.imul(Te,qe)|0,u=(u=u+Math.imul(Te,ke)|0)+Math.imul($e,qe)|0,W=W+Math.imul($e,ke)|0,Y=Y+Math.imul(_e,vt)|0,u=(u=u+Math.imul(_e,$t)|0)+Math.imul(ne,vt)|0,W=W+Math.imul(ne,$t)|0,Y=Y+Math.imul(at,Sr)|0,u=(u=u+Math.imul(at,Ar)|0)+Math.imul(Be,Sr)|0,W=W+Math.imul(Be,Ar)|0;var Br=($+(Y=Y+Math.imul(Ot,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(Ot,Gt)|0)+Math.imul(At,Fr)|0))<<13)|0;$=((W=W+Math.imul(At,Gt)|0)+(u>>>13)|0)+(Br>>>26)|0,Br&=67108863,Y=Math.imul(Me,hr),u=(u=Math.imul(Me,Cr))+Math.imul(We,hr)|0,W=Math.imul(We,Cr),Y=Y+Math.imul(Ne,Pt)|0,u=(u=u+Math.imul(Ne,He)|0)+Math.imul(X,Pt)|0,W=W+Math.imul(X,He)|0,Y=Y+Math.imul(ot,Ke)|0,u=(u=u+Math.imul(ot,kt)|0)+Math.imul(nt,Ke)|0,W=W+Math.imul(nt,kt)|0,Y=Y+Math.imul(rt,Fe)|0,u=(u=u+Math.imul(rt,lt)|0)+Math.imul(st,Fe)|0,W=W+Math.imul(st,lt)|0,Y=Y+Math.imul(Ge,qe)|0,u=(u=u+Math.imul(Ge,ke)|0)+Math.imul(Ft,qe)|0,W=W+Math.imul(Ft,ke)|0,Y=Y+Math.imul(Te,vt)|0,u=(u=u+Math.imul(Te,$t)|0)+Math.imul($e,vt)|0,W=W+Math.imul($e,$t)|0,Y=Y+Math.imul(_e,Sr)|0,u=(u=u+Math.imul(_e,Ar)|0)+Math.imul(ne,Sr)|0,W=W+Math.imul(ne,Ar)|0;var xt=($+(Y=Y+Math.imul(at,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(at,Gt)|0)+Math.imul(Be,Fr)|0))<<13)|0;$=((W=W+Math.imul(Be,Gt)|0)+(u>>>13)|0)+(xt>>>26)|0,xt&=67108863,Y=Math.imul(Me,Pt),u=(u=Math.imul(Me,He))+Math.imul(We,Pt)|0,W=Math.imul(We,He),Y=Y+Math.imul(Ne,Ke)|0,u=(u=u+Math.imul(Ne,kt)|0)+Math.imul(X,Ke)|0,W=W+Math.imul(X,kt)|0,Y=Y+Math.imul(ot,Fe)|0,u=(u=u+Math.imul(ot,lt)|0)+Math.imul(nt,Fe)|0,W=W+Math.imul(nt,lt)|0,Y=Y+Math.imul(rt,qe)|0,u=(u=u+Math.imul(rt,ke)|0)+Math.imul(st,qe)|0,W=W+Math.imul(st,ke)|0,Y=Y+Math.imul(Ge,vt)|0,u=(u=u+Math.imul(Ge,$t)|0)+Math.imul(Ft,vt)|0,W=W+Math.imul(Ft,$t)|0,Y=Y+Math.imul(Te,Sr)|0,u=(u=u+Math.imul(Te,Ar)|0)+Math.imul($e,Sr)|0,W=W+Math.imul($e,Ar)|0;var tr=($+(Y=Y+Math.imul(_e,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(_e,Gt)|0)+Math.imul(ne,Fr)|0))<<13)|0;$=((W=W+Math.imul(ne,Gt)|0)+(u>>>13)|0)+(tr>>>26)|0,tr&=67108863,Y=Math.imul(Me,Ke),u=(u=Math.imul(Me,kt))+Math.imul(We,Ke)|0,W=Math.imul(We,kt),Y=Y+Math.imul(Ne,Fe)|0,u=(u=u+Math.imul(Ne,lt)|0)+Math.imul(X,Fe)|0,W=W+Math.imul(X,lt)|0,Y=Y+Math.imul(ot,qe)|0,u=(u=u+Math.imul(ot,ke)|0)+Math.imul(nt,qe)|0,W=W+Math.imul(nt,ke)|0,Y=Y+Math.imul(rt,vt)|0,u=(u=u+Math.imul(rt,$t)|0)+Math.imul(st,vt)|0,W=W+Math.imul(st,$t)|0,Y=Y+Math.imul(Ge,Sr)|0,u=(u=u+Math.imul(Ge,Ar)|0)+Math.imul(Ft,Sr)|0,W=W+Math.imul(Ft,Ar)|0;var Rr=($+(Y=Y+Math.imul(Te,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(Te,Gt)|0)+Math.imul($e,Fr)|0))<<13)|0;$=((W=W+Math.imul($e,Gt)|0)+(u>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,Y=Math.imul(Me,Fe),u=(u=Math.imul(Me,lt))+Math.imul(We,Fe)|0,W=Math.imul(We,lt),Y=Y+Math.imul(Ne,qe)|0,u=(u=u+Math.imul(Ne,ke)|0)+Math.imul(X,qe)|0,W=W+Math.imul(X,ke)|0,Y=Y+Math.imul(ot,vt)|0,u=(u=u+Math.imul(ot,$t)|0)+Math.imul(nt,vt)|0,W=W+Math.imul(nt,$t)|0,Y=Y+Math.imul(rt,Sr)|0,u=(u=u+Math.imul(rt,Ar)|0)+Math.imul(st,Sr)|0,W=W+Math.imul(st,Ar)|0;var Ur=($+(Y=Y+Math.imul(Ge,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(Ge,Gt)|0)+Math.imul(Ft,Fr)|0))<<13)|0;$=((W=W+Math.imul(Ft,Gt)|0)+(u>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,Y=Math.imul(Me,qe),u=(u=Math.imul(Me,ke))+Math.imul(We,qe)|0,W=Math.imul(We,ke),Y=Y+Math.imul(Ne,vt)|0,u=(u=u+Math.imul(Ne,$t)|0)+Math.imul(X,vt)|0,W=W+Math.imul(X,$t)|0,Y=Y+Math.imul(ot,Sr)|0,u=(u=u+Math.imul(ot,Ar)|0)+Math.imul(nt,Sr)|0,W=W+Math.imul(nt,Ar)|0;var Nr=($+(Y=Y+Math.imul(rt,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(rt,Gt)|0)+Math.imul(st,Fr)|0))<<13)|0;$=((W=W+Math.imul(st,Gt)|0)+(u>>>13)|0)+(Nr>>>26)|0,Nr&=67108863,Y=Math.imul(Me,vt),u=(u=Math.imul(Me,$t))+Math.imul(We,vt)|0,W=Math.imul(We,$t),Y=Y+Math.imul(Ne,Sr)|0,u=(u=u+Math.imul(Ne,Ar)|0)+Math.imul(X,Sr)|0,W=W+Math.imul(X,Ar)|0;var zr=($+(Y=Y+Math.imul(ot,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(ot,Gt)|0)+Math.imul(nt,Fr)|0))<<13)|0;$=((W=W+Math.imul(nt,Gt)|0)+(u>>>13)|0)+(zr>>>26)|0,zr&=67108863,Y=Math.imul(Me,Sr),u=(u=Math.imul(Me,Ar))+Math.imul(We,Sr)|0,W=Math.imul(We,Ar);var hn=($+(Y=Y+Math.imul(Ne,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(Ne,Gt)|0)+Math.imul(X,Fr)|0))<<13)|0;$=((W=W+Math.imul(X,Gt)|0)+(u>>>13)|0)+(hn>>>26)|0,hn&=67108863;var _n=($+(Y=Math.imul(Me,Fr))|0)+((8191&(u=(u=Math.imul(Me,Gt))+Math.imul(We,Fr)|0))<<13)|0;return $=((W=Math.imul(We,Gt))+(u>>>13)|0)+(_n>>>26)|0,_n&=67108863,j[0]=le,j[1]=Ce,j[2]=Ie,j[3]=Pe,j[4]=Oe,j[5]=Se,j[6]=Xe,j[7]=Ct,j[8]=zt,j[9]=kr,j[10]=Br,j[11]=xt,j[12]=tr,j[13]=Rr,j[14]=Ur,j[15]=Nr,j[16]=zr,j[17]=hn,j[18]=_n,0!==$&&(j[19]=$,w.length++),w};function V(B,s,_){return(new D).mulp(B,s,_)}function D(B,s){this.x=B,this.y=s}Math.imul||(H=O),r.prototype.mulTo=function(s,_){var w,E=this.length+s.length;return w=10===this.length&&10===s.length?H(this,s,_):E<63?O(this,s,_):E<1024?function F(B,s,_){_.negative=s.negative^B.negative,_.length=B.length+s.length;for(var w=0,E=0,x=0;x<_.length-1;x++){var j=E;E=0;for(var $=67108863&w,Y=Math.min(x,s.length-1),u=Math.max(0,x-B.length+1);u<=Y;u++){var ye=(0|B.words[x-u])*(0|s.words[u]),Qe=67108863&ye;$=67108863&(Qe=Qe+$|0),E+=(j=(j=j+(ye/67108864|0)|0)+(Qe>>>26)|0)>>>26,j&=67108863}_.words[x]=$,w=j,j=E}return 0!==w?_.words[x]=w:_.length--,_.strip()}(this,s,_):V(this,s,_),w},D.prototype.makeRBT=function(s){for(var _=new Array(s),w=r.prototype._countBits(s)-1,E=0;E<s;E++)_[E]=this.revBin(E,w,s);return _},D.prototype.revBin=function(s,_,w){if(0===s||s===w-1)return s;for(var E=0,x=0;x<_;x++)E|=(1&s)<<_-x-1,s>>=1;return E},D.prototype.permute=function(s,_,w,E,x,j){for(var $=0;$<j;$++)E[$]=_[s[$]],x[$]=w[s[$]]},D.prototype.transform=function(s,_,w,E,x,j){this.permute(j,s,_,w,E,x);for(var $=1;$<x;$<<=1)for(var Y=$<<1,u=Math.cos(2*Math.PI/Y),W=Math.sin(2*Math.PI/Y),fe=0;fe<x;fe+=Y)for(var ae=u,ye=W,Qe=0;Qe<$;Qe++){var Ot=w[fe+Qe],At=E[fe+Qe],Ze=w[fe+Qe+$],at=E[fe+Qe+$],Be=ae*Ze-ye*at;at=ae*at+ye*Ze,w[fe+Qe]=Ot+(Ze=Be),E[fe+Qe]=At+at,w[fe+Qe+$]=Ot-Ze,E[fe+Qe+$]=At-at,Qe!==Y&&(Be=u*ae-W*ye,ye=u*ye+W*ae,ae=Be)}},D.prototype.guessLen13b=function(s,_){var w=1|Math.max(_,s),E=1&w,x=0;for(w=w/2|0;w;w>>>=1)x++;return 1<<x+1+E},D.prototype.conjugate=function(s,_,w){if(!(w<=1))for(var E=0;E<w/2;E++){var x=s[E];s[E]=s[w-E-1],s[w-E-1]=x,x=_[E],_[E]=-_[w-E-1],_[w-E-1]=-x}},D.prototype.normalize13b=function(s,_){for(var w=0,E=0;E<_/2;E++){var x=8192*Math.round(s[2*E+1]/_)+Math.round(s[2*E]/_)+w;s[E]=67108863&x,w=x<67108864?0:x/67108864|0}return s},D.prototype.convert13b=function(s,_,w,E){for(var x=0,j=0;j<_;j++)w[2*j]=8191&(x+=0|s[j]),w[2*j+1]=8191&(x>>>=13),x>>>=13;for(j=2*_;j<E;++j)w[j]=0;l(0===x),l(0==(-8192&x))},D.prototype.stub=function(s){for(var _=new Array(s),w=0;w<s;w++)_[w]=0;return _},D.prototype.mulp=function(s,_,w){var E=2*this.guessLen13b(s.length,_.length),x=this.makeRBT(E),j=this.stub(E),$=new Array(E),Y=new Array(E),u=new Array(E),W=new Array(E),fe=new Array(E),ae=new Array(E),ye=w.words;ye.length=E,this.convert13b(s.words,s.length,$,E),this.convert13b(_.words,_.length,W,E),this.transform($,j,Y,u,E,x),this.transform(W,j,fe,ae,E,x);for(var Qe=0;Qe<E;Qe++){var Ot=Y[Qe]*fe[Qe]-u[Qe]*ae[Qe];u[Qe]=Y[Qe]*ae[Qe]+u[Qe]*fe[Qe],Y[Qe]=Ot}return this.conjugate(Y,u,E),this.transform(Y,u,ye,j,E,x),this.conjugate(ye,j,E),this.normalize13b(ye,E),w.negative=s.negative^_.negative,w.length=s.length+_.length,w.strip()},r.prototype.mul=function(s){var _=new r(null);return _.words=new Array(this.length+s.length),this.mulTo(s,_)},r.prototype.mulf=function(s){var _=new r(null);return _.words=new Array(this.length+s.length),V(this,s,_)},r.prototype.imul=function(s){return this.clone().mulTo(s,this)},r.prototype.imuln=function(s){l("number"==typeof s),l(s<67108864);for(var _=0,w=0;w<this.length;w++){var E=(0|this.words[w])*s,x=(67108863&E)+(67108863&_);_>>=26,_+=E/67108864|0,_+=x>>>26,this.words[w]=67108863&x}return 0!==_&&(this.words[w]=_,this.length++),this},r.prototype.muln=function(s){return this.clone().imuln(s)},r.prototype.sqr=function(){return this.mul(this)},r.prototype.isqr=function(){return this.imul(this.clone())},r.prototype.pow=function(s){var _=function a(B){for(var s=new Array(B.bitLength()),_=0;_<s.length;_++){var E=_%26;s[_]=(B.words[_/26|0]&1<<E)>>>E}return s}(s);if(0===_.length)return new r(1);for(var w=this,E=0;E<_.length&&0===_[E];E++,w=w.sqr());if(++E<_.length)for(var x=w.sqr();E<_.length;E++,x=x.sqr())0!==_[E]&&(w=w.mul(x));return w},r.prototype.iushln=function(s){l("number"==typeof s&&s>=0);var x,_=s%26,w=(s-_)/26,E=67108863>>>26-_<<26-_;if(0!==_){var j=0;for(x=0;x<this.length;x++){var $=this.words[x]&E;this.words[x]=(0|this.words[x])-$<<_|j,j=$>>>26-_}j&&(this.words[x]=j,this.length++)}if(0!==w){for(x=this.length-1;x>=0;x--)this.words[x+w]=this.words[x];for(x=0;x<w;x++)this.words[x]=0;this.length+=w}return this.strip()},r.prototype.ishln=function(s){return l(0===this.negative),this.iushln(s)},r.prototype.iushrn=function(s,_,w){var E;l("number"==typeof s&&s>=0),E=_?(_-_%26)/26:0;var x=s%26,j=Math.min((s-x)/26,this.length),$=67108863^67108863>>>x<<x,Y=w;if(E-=j,E=Math.max(0,E),Y){for(var u=0;u<j;u++)Y.words[u]=this.words[u];Y.length=j}if(0!==j)if(this.length>j)for(this.length-=j,u=0;u<this.length;u++)this.words[u]=this.words[u+j];else this.words[0]=0,this.length=1;var W=0;for(u=this.length-1;u>=0&&(0!==W||u>=E);u--){var fe=0|this.words[u];this.words[u]=W<<26-x|fe>>>x,W=fe&$}return Y&&0!==W&&(Y.words[Y.length++]=W),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},r.prototype.ishrn=function(s,_,w){return l(0===this.negative),this.iushrn(s,_,w)},r.prototype.shln=function(s){return this.clone().ishln(s)},r.prototype.ushln=function(s){return this.clone().iushln(s)},r.prototype.shrn=function(s){return this.clone().ishrn(s)},r.prototype.ushrn=function(s){return this.clone().iushrn(s)},r.prototype.testn=function(s){l("number"==typeof s&&s>=0);var _=s%26,w=(s-_)/26;return!(this.length<=w||!(this.words[w]&1<<_))},r.prototype.imaskn=function(s){l("number"==typeof s&&s>=0);var _=s%26,w=(s-_)/26;return l(0===this.negative,"imaskn works only with positive numbers"),this.length<=w?this:(0!==_&&w++,this.length=Math.min(w,this.length),0!==_&&(this.words[this.length-1]&=67108863^67108863>>>_<<_),this.strip())},r.prototype.maskn=function(s){return this.clone().imaskn(s)},r.prototype.iaddn=function(s){return l("number"==typeof s),l(s<67108864),s<0?this.isubn(-s):0!==this.negative?1===this.length&&(0|this.words[0])<s?(this.words[0]=s-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(s),this.negative=1,this):this._iaddn(s)},r.prototype._iaddn=function(s){this.words[0]+=s;for(var _=0;_<this.length&&this.words[_]>=67108864;_++)this.words[_]-=67108864,_===this.length-1?this.words[_+1]=1:this.words[_+1]++;return this.length=Math.max(this.length,_+1),this},r.prototype.isubn=function(s){if(l("number"==typeof s),l(s<67108864),s<0)return this.iaddn(-s);if(0!==this.negative)return this.negative=0,this.iaddn(s),this.negative=1,this;if(this.words[0]-=s,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var _=0;_<this.length&&this.words[_]<0;_++)this.words[_]+=67108864,this.words[_+1]-=1;return this.strip()},r.prototype.addn=function(s){return this.clone().iaddn(s)},r.prototype.subn=function(s){return this.clone().isubn(s)},r.prototype.iabs=function(){return this.negative=0,this},r.prototype.abs=function(){return this.clone().iabs()},r.prototype._ishlnsubmul=function(s,_,w){var x;this._expand(s.length+w);var j,$=0;for(x=0;x<s.length;x++){j=(0|this.words[x+w])+$;var Y=(0|s.words[x])*_;$=((j-=67108863&Y)>>26)-(Y/67108864|0),this.words[x+w]=67108863&j}for(;x<this.length-w;x++)$=(j=(0|this.words[x+w])+$)>>26,this.words[x+w]=67108863&j;if(0===$)return this.strip();for(l(-1===$),$=0,x=0;x<this.length;x++)$=(j=-(0|this.words[x])+$)>>26,this.words[x]=67108863&j;return this.negative=1,this.strip()},r.prototype._wordDiv=function(s,_){var w,E=this.clone(),x=s,j=0|x.words[x.length-1];0!=(w=26-this._countBits(j))&&(x=x.ushln(w),E.iushln(w),j=0|x.words[x.length-1]);var u,Y=E.length-x.length;if("mod"!==_){(u=new r(null)).length=Y+1,u.words=new Array(u.length);for(var W=0;W<u.length;W++)u.words[W]=0}var fe=E.clone()._ishlnsubmul(x,1,Y);0===fe.negative&&(E=fe,u&&(u.words[Y]=1));for(var ae=Y-1;ae>=0;ae--){var ye=67108864*(0|E.words[x.length+ae])+(0|E.words[x.length+ae-1]);for(ye=Math.min(ye/j|0,67108863),E._ishlnsubmul(x,ye,ae);0!==E.negative;)ye--,E.negative=0,E._ishlnsubmul(x,1,ae),E.isZero()||(E.negative^=1);u&&(u.words[ae]=ye)}return u&&u.strip(),E.strip(),"div"!==_&&0!==w&&E.iushrn(w),{div:u||null,mod:E}},r.prototype.divmod=function(s,_,w){return l(!s.isZero()),this.isZero()?{div:new r(0),mod:new r(0)}:0!==this.negative&&0===s.negative?(j=this.neg().divmod(s,_),"mod"!==_&&(E=j.div.neg()),"div"!==_&&(x=j.mod.neg(),w&&0!==x.negative&&x.iadd(s)),{div:E,mod:x}):0===this.negative&&0!==s.negative?(j=this.divmod(s.neg(),_),"mod"!==_&&(E=j.div.neg()),{div:E,mod:j.mod}):0!=(this.negative&s.negative)?(j=this.neg().divmod(s.neg(),_),"div"!==_&&(x=j.mod.neg(),w&&0!==x.negative&&x.isub(s)),{div:j.div,mod:x}):s.length>this.length||this.cmp(s)<0?{div:new r(0),mod:this}:1===s.length?"div"===_?{div:this.divn(s.words[0]),mod:null}:"mod"===_?{div:null,mod:new r(this.modn(s.words[0]))}:{div:this.divn(s.words[0]),mod:new r(this.modn(s.words[0]))}:this._wordDiv(s,_);var E,x,j},r.prototype.div=function(s){return this.divmod(s,"div",!1).div},r.prototype.mod=function(s){return this.divmod(s,"mod",!1).mod},r.prototype.umod=function(s){return this.divmod(s,"mod",!0).mod},r.prototype.divRound=function(s){var _=this.divmod(s);if(_.mod.isZero())return _.div;var w=0!==_.div.negative?_.mod.isub(s):_.mod,E=s.ushrn(1),x=s.andln(1),j=w.cmp(E);return j<0||1===x&&0===j?_.div:0!==_.div.negative?_.div.isubn(1):_.div.iaddn(1)},r.prototype.modn=function(s){l(s<=67108863);for(var _=(1<<26)%s,w=0,E=this.length-1;E>=0;E--)w=(_*w+(0|this.words[E]))%s;return w},r.prototype.idivn=function(s){l(s<=67108863);for(var _=0,w=this.length-1;w>=0;w--){var E=(0|this.words[w])+67108864*_;this.words[w]=E/s|0,_=E%s}return this.strip()},r.prototype.divn=function(s){return this.clone().idivn(s)},r.prototype.egcd=function(s){l(0===s.negative),l(!s.isZero());var _=this,w=s.clone();_=0!==_.negative?_.umod(s):_.clone();for(var E=new r(1),x=new r(0),j=new r(0),$=new r(1),Y=0;_.isEven()&&w.isEven();)_.iushrn(1),w.iushrn(1),++Y;for(var u=w.clone(),W=_.clone();!_.isZero();){for(var fe=0,ae=1;0==(_.words[0]&ae)&&fe<26;++fe,ae<<=1);if(fe>0)for(_.iushrn(fe);fe-- >0;)(E.isOdd()||x.isOdd())&&(E.iadd(u),x.isub(W)),E.iushrn(1),x.iushrn(1);for(var ye=0,Qe=1;0==(w.words[0]&Qe)&&ye<26;++ye,Qe<<=1);if(ye>0)for(w.iushrn(ye);ye-- >0;)(j.isOdd()||$.isOdd())&&(j.iadd(u),$.isub(W)),j.iushrn(1),$.iushrn(1);_.cmp(w)>=0?(_.isub(w),E.isub(j),x.isub($)):(w.isub(_),j.isub(E),$.isub(x))}return{a:j,b:$,gcd:w.iushln(Y)}},r.prototype._invmp=function(s){l(0===s.negative),l(!s.isZero());var fe,_=this,w=s.clone();_=0!==_.negative?_.umod(s):_.clone();for(var E=new r(1),x=new r(0),j=w.clone();_.cmpn(1)>0&&w.cmpn(1)>0;){for(var $=0,Y=1;0==(_.words[0]&Y)&&$<26;++$,Y<<=1);if($>0)for(_.iushrn($);$-- >0;)E.isOdd()&&E.iadd(j),E.iushrn(1);for(var u=0,W=1;0==(w.words[0]&W)&&u<26;++u,W<<=1);if(u>0)for(w.iushrn(u);u-- >0;)x.isOdd()&&x.iadd(j),x.iushrn(1);_.cmp(w)>=0?(_.isub(w),E.isub(x)):(w.isub(_),x.isub(E))}return(fe=0===_.cmpn(1)?E:x).cmpn(0)<0&&fe.iadd(s),fe},r.prototype.gcd=function(s){if(this.isZero())return s.abs();if(s.isZero())return this.abs();var _=this.clone(),w=s.clone();_.negative=0,w.negative=0;for(var E=0;_.isEven()&&w.isEven();E++)_.iushrn(1),w.iushrn(1);for(;;){for(;_.isEven();)_.iushrn(1);for(;w.isEven();)w.iushrn(1);var x=_.cmp(w);if(x<0){var j=_;_=w,w=j}else if(0===x||0===w.cmpn(1))break;_.isub(w)}return w.iushln(E)},r.prototype.invm=function(s){return this.egcd(s).a.umod(s)},r.prototype.isEven=function(){return 0==(1&this.words[0])},r.prototype.isOdd=function(){return 1==(1&this.words[0])},r.prototype.andln=function(s){return this.words[0]&s},r.prototype.bincn=function(s){l("number"==typeof s);var _=s%26,w=(s-_)/26,E=1<<_;if(this.length<=w)return this._expand(w+1),this.words[w]|=E,this;for(var x=E,j=w;0!==x&&j<this.length;j++){var $=0|this.words[j];x=($+=x)>>>26,this.words[j]=$&=67108863}return 0!==x&&(this.words[j]=x,this.length++),this},r.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},r.prototype.cmpn=function(s){var w,_=s<0;if(0!==this.negative&&!_)return-1;if(0===this.negative&&_)return 1;if(this.strip(),this.length>1)w=1;else{_&&(s=-s),l(s<=67108863,"Number is too big");var E=0|this.words[0];w=E===s?0:E<s?-1:1}return 0!==this.negative?0|-w:w},r.prototype.cmp=function(s){if(0!==this.negative&&0===s.negative)return-1;if(0===this.negative&&0!==s.negative)return 1;var _=this.ucmp(s);return 0!==this.negative?0|-_:_},r.prototype.ucmp=function(s){if(this.length>s.length)return 1;if(this.length<s.length)return-1;for(var _=0,w=this.length-1;w>=0;w--){var E=0|this.words[w],x=0|s.words[w];if(E!==x){E<x?_=-1:E>x&&(_=1);break}}return _},r.prototype.gtn=function(s){return 1===this.cmpn(s)},r.prototype.gt=function(s){return 1===this.cmp(s)},r.prototype.gten=function(s){return this.cmpn(s)>=0},r.prototype.gte=function(s){return this.cmp(s)>=0},r.prototype.ltn=function(s){return-1===this.cmpn(s)},r.prototype.lt=function(s){return-1===this.cmp(s)},r.prototype.lten=function(s){return this.cmpn(s)<=0},r.prototype.lte=function(s){return this.cmp(s)<=0},r.prototype.eqn=function(s){return 0===this.cmpn(s)},r.prototype.eq=function(s){return 0===this.cmp(s)},r.red=function(s){return new re(s)},r.prototype.toRed=function(s){return l(!this.red,"Already a number in reduction context"),l(0===this.negative,"red works only with positives"),s.convertTo(this)._forceRed(s)},r.prototype.fromRed=function(){return l(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},r.prototype._forceRed=function(s){return this.red=s,this},r.prototype.forceRed=function(s){return l(!this.red,"Already a number in reduction context"),this._forceRed(s)},r.prototype.redAdd=function(s){return l(this.red,"redAdd works only with red numbers"),this.red.add(this,s)},r.prototype.redIAdd=function(s){return l(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,s)},r.prototype.redSub=function(s){return l(this.red,"redSub works only with red numbers"),this.red.sub(this,s)},r.prototype.redISub=function(s){return l(this.red,"redISub works only with red numbers"),this.red.isub(this,s)},r.prototype.redShl=function(s){return l(this.red,"redShl works only with red numbers"),this.red.shl(this,s)},r.prototype.redMul=function(s){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.mul(this,s)},r.prototype.redIMul=function(s){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.imul(this,s)},r.prototype.redSqr=function(){return l(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},r.prototype.redISqr=function(){return l(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},r.prototype.redSqrt=function(){return l(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},r.prototype.redInvm=function(){return l(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},r.prototype.redNeg=function(){return l(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},r.prototype.redPow=function(s){return l(this.red&&!s.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,s)};var U={k256:null,p224:null,p192:null,p25519:null};function q(B,s){this.name=B,this.p=new r(s,16),this.n=this.p.bitLength(),this.k=new r(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function J(){q.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function G(){q.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){q.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function K(){q.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function re(B){if("string"==typeof B){var s=r._prime(B);this.m=s.p,this.prime=s}else l(B.gtn(1),"modulus must be greater than 1"),this.m=B,this.prime=null}function oe(B){re.call(this,B),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new r(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}q.prototype._tmp=function(){var s=new r(null);return s.words=new Array(Math.ceil(this.n/13)),s},q.prototype.ireduce=function(s){var w,_=s;do{this.split(_,this.tmp),w=(_=(_=this.imulK(_)).iadd(this.tmp)).bitLength()}while(w>this.n);var E=w<this.n?-1:_.ucmp(this.p);return 0===E?(_.words[0]=0,_.length=1):E>0?_.isub(this.p):void 0!==_.strip?_.strip():_._strip(),_},q.prototype.split=function(s,_){s.iushrn(this.n,0,_)},q.prototype.imulK=function(s){return s.imul(this.k)},h(J,q),J.prototype.split=function(s,_){for(var w=4194303,E=Math.min(s.length,9),x=0;x<E;x++)_.words[x]=s.words[x];if(_.length=E,s.length<=9)return s.words[0]=0,void(s.length=1);var j=s.words[9];for(_.words[_.length++]=j&w,x=10;x<s.length;x++){var $=0|s.words[x];s.words[x-10]=($&w)<<4|j>>>22,j=$}s.words[x-10]=j>>>=22,s.length-=0===j&&s.length>10?10:9},J.prototype.imulK=function(s){s.words[s.length]=0,s.words[s.length+1]=0,s.length+=2;for(var _=0,w=0;w<s.length;w++){var E=0|s.words[w];s.words[w]=67108863&(_+=977*E),_=64*E+(_/67108864|0)}return 0===s.words[s.length-1]&&(s.length--,0===s.words[s.length-1]&&s.length--),s},h(G,q),h(ie,q),h(K,q),K.prototype.imulK=function(s){for(var _=0,w=0;w<s.length;w++){var E=19*(0|s.words[w])+_,x=67108863&E;E>>>=26,s.words[w]=x,_=E}return 0!==_&&(s.words[s.length++]=_),s},r._prime=function(s){if(U[s])return U[s];var _;if("k256"===s)_=new J;else if("p224"===s)_=new G;else if("p192"===s)_=new ie;else{if("p25519"!==s)throw new Error("Unknown prime "+s);_=new K}return U[s]=_,_},re.prototype._verify1=function(s){l(0===s.negative,"red works only with positives"),l(s.red,"red works only with red numbers")},re.prototype._verify2=function(s,_){l(0==(s.negative|_.negative),"red works only with positives"),l(s.red&&s.red===_.red,"red works only with red numbers")},re.prototype.imod=function(s){return this.prime?this.prime.ireduce(s)._forceRed(this):s.umod(this.m)._forceRed(this)},re.prototype.neg=function(s){return s.isZero()?s.clone():this.m.sub(s)._forceRed(this)},re.prototype.add=function(s,_){this._verify2(s,_);var w=s.add(_);return w.cmp(this.m)>=0&&w.isub(this.m),w._forceRed(this)},re.prototype.iadd=function(s,_){this._verify2(s,_);var w=s.iadd(_);return w.cmp(this.m)>=0&&w.isub(this.m),w},re.prototype.sub=function(s,_){this._verify2(s,_);var w=s.sub(_);return w.cmpn(0)<0&&w.iadd(this.m),w._forceRed(this)},re.prototype.isub=function(s,_){this._verify2(s,_);var w=s.isub(_);return w.cmpn(0)<0&&w.iadd(this.m),w},re.prototype.shl=function(s,_){return this._verify1(s),this.imod(s.ushln(_))},re.prototype.imul=function(s,_){return this._verify2(s,_),this.imod(s.imul(_))},re.prototype.mul=function(s,_){return this._verify2(s,_),this.imod(s.mul(_))},re.prototype.isqr=function(s){return this.imul(s,s.clone())},re.prototype.sqr=function(s){return this.mul(s,s)},re.prototype.sqrt=function(s){if(s.isZero())return s.clone();var _=this.m.andln(3);if(l(_%2==1),3===_){var w=this.m.add(new r(1)).iushrn(2);return this.pow(s,w)}for(var E=this.m.subn(1),x=0;!E.isZero()&&0===E.andln(1);)x++,E.iushrn(1);l(!E.isZero());var j=new r(1).toRed(this),$=j.redNeg(),Y=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new r(2*u*u).toRed(this);0!==this.pow(u,Y).cmp($);)u.redIAdd($);for(var W=this.pow(u,E),fe=this.pow(s,E.addn(1).iushrn(1)),ae=this.pow(s,E),ye=x;0!==ae.cmp(j);){for(var Qe=ae,Ot=0;0!==Qe.cmp(j);Ot++)Qe=Qe.redSqr();l(Ot<ye);var At=this.pow(W,new r(1).iushln(ye-Ot-1));fe=fe.redMul(At),W=At.redSqr(),ae=ae.redMul(W),ye=Ot}return fe},re.prototype.invm=function(s){var _=s._invmp(this.m);return 0!==_.negative?(_.negative=0,this.imod(_).redNeg()):this.imod(_)},re.prototype.pow=function(s,_){if(_.isZero())return new r(1).toRed(this);if(0===_.cmpn(1))return s.clone();var E=new Array(16);E[0]=new r(1).toRed(this),E[1]=s;for(var x=2;x<E.length;x++)E[x]=this.mul(E[x-1],s);var j=E[0],$=0,Y=0,u=_.bitLength()%26;for(0===u&&(u=26),x=_.length-1;x>=0;x--){for(var W=_.words[x],fe=u-1;fe>=0;fe--){var ae=W>>fe&1;j!==E[0]&&(j=this.sqr(j)),0!==ae||0!==$?($<<=1,$|=ae,(4==++Y||0===x&&0===fe)&&(j=this.mul(j,E[$]),Y=0,$=0)):Y=0}u=26}return j},re.prototype.convertTo=function(s){var _=s.umod(this.m);return _===s?_.clone():_},re.prototype.convertFrom=function(s){var _=s.clone();return _.red=null,_},r.mont=function(s){return new oe(s)},h(oe,re),oe.prototype.convertTo=function(s){return this.imod(s.ushln(this.shift))},oe.prototype.convertFrom=function(s){var _=this.imod(s.mul(this.rinv));return _.red=null,_},oe.prototype.imul=function(s,_){if(s.isZero()||_.isZero())return s.words[0]=0,s.length=1,s;var w=s.imul(_),E=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=w.isub(E).iushrn(this.shift),j=x;return x.cmp(this.m)>=0?j=x.isub(this.m):x.cmpn(0)<0&&(j=x.iadd(this.m)),j._forceRed(this)},oe.prototype.mul=function(s,_){if(s.isZero()||_.isZero())return new r(0)._forceRed(this);var w=s.mul(_),E=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=w.isub(E).iushrn(this.shift),j=x;return x.cmp(this.m)>=0?j=x.isub(this.m):x.cmpn(0)<0&&(j=x.iadd(this.m)),j._forceRed(this)},oe.prototype.invm=function(s){return this.imod(s._invmp(this.m).mul(this.r2))._forceRed(this)}}(M=n.nmd(M),this)},59069:M=>{function b(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(h){return"function"==typeof h}function e(h){return"object"==typeof h&&null!==h}function l(h){return void 0===h}M.exports=b,b.EventEmitter=b,b.prototype._events=void 0,b.prototype._maxListeners=void 0,b.defaultMaxListeners=10,b.prototype.setMaxListeners=function(h){if(!function t(h){return"number"==typeof h}(h)||h<0||isNaN(h))throw TypeError("n must be a positive number");return this._maxListeners=h,this},b.prototype.emit=function(h){var r,d,y,g,p,f;if(this._events||(this._events={}),"error"===h&&(!this._events.error||e(this._events.error)&&!this._events.error.length)){if((r=arguments[1])instanceof Error)throw r;var C=new Error('Uncaught, unspecified "error" event. ('+r+")");throw C.context=r,C}if(l(d=this._events[h]))return!1;if(n(d))switch(arguments.length){case 1:d.call(this);break;case 2:d.call(this,arguments[1]);break;case 3:d.call(this,arguments[1],arguments[2]);break;default:g=Array.prototype.slice.call(arguments,1),d.apply(this,g)}else if(e(d))for(g=Array.prototype.slice.call(arguments,1),y=(f=d.slice()).length,p=0;p<y;p++)f[p].apply(this,g);return!0},b.prototype.on=b.prototype.addListener=function(h,r){var d;if(!n(r))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",h,n(r.listener)?r.listener:r),this._events[h]?e(this._events[h])?this._events[h].push(r):this._events[h]=[this._events[h],r]:this._events[h]=r,e(this._events[h])&&!this._events[h].warned&&(d=l(this._maxListeners)?b.defaultMaxListeners:this._maxListeners)&&d>0&&this._events[h].length>d&&(this._events[h].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[h].length),"function"==typeof console.trace&&console.trace()),this},b.prototype.once=function(h,r){if(!n(r))throw TypeError("listener must be a function");var d=!1;function y(){this.removeListener(h,y),d||(d=!0,r.apply(this,arguments))}return y.listener=r,this.on(h,y),this},b.prototype.removeListener=function(h,r){var d,y,g,p;if(!n(r))throw TypeError("listener must be a function");if(!this._events||!this._events[h])return this;if(g=(d=this._events[h]).length,y=-1,d===r||n(d.listener)&&d.listener===r)delete this._events[h],this._events.removeListener&&this.emit("removeListener",h,r);else if(e(d)){for(p=g;p-- >0;)if(d[p]===r||d[p].listener&&d[p].listener===r){y=p;break}if(y<0)return this;1===d.length?(d.length=0,delete this._events[h]):d.splice(y,1),this._events.removeListener&&this.emit("removeListener",h,r)}return this},b.prototype.removeAllListeners=function(h){var r,d;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[h]&&delete this._events[h],this;if(0===arguments.length){for(r in this._events)"removeListener"!==r&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events={},this}if(n(d=this._events[h]))this.removeListener(h,d);else if(d)for(;d.length;)this.removeListener(h,d[d.length-1]);return delete this._events[h],this},b.prototype.listeners=function(h){return this._events&&this._events[h]?n(this._events[h])?[this._events[h]]:this._events[h].slice():[]},b.prototype.listenerCount=function(h){if(this._events){var r=this._events[h];if(n(r))return 1;if(r)return r.length}return 0},b.listenerCount=function(h,r){return h.listenerCount(r)}},40347:(M,b,n)=>{var t=n(73502).Buffer,e=n(8095);M.exports=function l(h,r,d,y){if(t.isBuffer(h)||(h=t.from(h,"binary")),r&&(t.isBuffer(r)||(r=t.from(r,"binary")),8!==r.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var g=d/8,p=t.alloc(g),f=t.alloc(y||0),C=t.alloc(0);g>0||y>0;){var N=new e;N.update(C),N.update(h),r&&N.update(r),C=N.digest();var a=0;if(g>0){var O=p.length-g;a=Math.min(g,C.length),C.copy(p,O,0,a),g-=a}if(a<C.length&&y>0){var H=f.length-y,F=Math.min(y,C.length-a);C.copy(f,H,a,a+F),y-=F}}return C.fill(0),{key:p,iv:f}}},16351:(M,b,n)=>{"use strict";var e=n(67957);b.Z=function r(y){return d.apply(this,arguments)};var l=e(n(86780)),h=e(n(95877));function d(){return(d=(0,h.default)(l.default.mark(function y(g){var p,f;return l.default.wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return p=document.createElement("video"),f=new Promise(function(N,a){p.addEventListener("loadedmetadata",function(){p.duration===1/0?(p.currentTime=Number.MAX_SAFE_INTEGER,p.ontimeupdate=function(){p.ontimeupdate=null,N(p.duration),p.currentTime=0}):N(p.duration)}),p.onerror=function(O){return a(O.target.error)}}),p.src="string"==typeof g||g instanceof String?g:window.URL.createObjectURL(g),C.abrupt("return",f);case 4:case"end":return C.stop()}},y)}))).apply(this,arguments)}},55386:(M,b,n)=>{var t;!function(e,l,h,r){"use strict";var F,d=["","webkit","Moz","MS","ms","o"],y=l.createElement("div"),p=Math.round,f=Math.abs,C=Date.now;function N(Ae,it,Bt){return setTimeout(q(Ae,Bt),it)}function a(Ae,it,Bt){return!!Array.isArray(Ae)&&(O(Ae,Bt[it],Bt),!0)}function O(Ae,it,Bt){var pr;if(Ae)if(Ae.forEach)Ae.forEach(it,Bt);else if(Ae.length!==r)for(pr=0;pr<Ae.length;)it.call(Bt,Ae[pr],pr,Ae),pr++;else for(pr in Ae)Ae.hasOwnProperty(pr)&&it.call(Bt,Ae[pr],pr,Ae)}function H(Ae,it,Bt){var pr="DEPRECATED METHOD: "+it+"\n"+Bt+" AT \n";return function(){var Or=new Error("get-stack-trace"),Wr=Or&&Or.stack?Or.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",sn=e.console&&(e.console.warn||e.console.log);return sn&&sn.call(e.console,pr,Wr),Ae.apply(this,arguments)}}F="function"!=typeof Object.assign?function(it){if(it===r||null===it)throw new TypeError("Cannot convert undefined or null to object");for(var Bt=Object(it),pr=1;pr<arguments.length;pr++){var Or=arguments[pr];if(Or!==r&&null!==Or)for(var Wr in Or)Or.hasOwnProperty(Wr)&&(Bt[Wr]=Or[Wr])}return Bt}:Object.assign;var V=H(function(it,Bt,pr){for(var Or=Object.keys(Bt),Wr=0;Wr<Or.length;)(!pr||pr&&it[Or[Wr]]===r)&&(it[Or[Wr]]=Bt[Or[Wr]]),Wr++;return it},"extend","Use `assign`."),D=H(function(it,Bt){return V(it,Bt,!0)},"merge","Use `assign`.");function U(Ae,it,Bt){var Or,pr=it.prototype;(Or=Ae.prototype=Object.create(pr)).constructor=Ae,Or._super=pr,Bt&&F(Or,Bt)}function q(Ae,it){return function(){return Ae.apply(it,arguments)}}function J(Ae,it){return"function"==typeof Ae?Ae.apply(it&&it[0]||r,it):Ae}function G(Ae,it){return Ae===r?it:Ae}function ie(Ae,it,Bt){O(B(it),function(pr){Ae.addEventListener(pr,Bt,!1)})}function K(Ae,it,Bt){O(B(it),function(pr){Ae.removeEventListener(pr,Bt,!1)})}function re(Ae,it){for(;Ae;){if(Ae==it)return!0;Ae=Ae.parentNode}return!1}function oe(Ae,it){return Ae.indexOf(it)>-1}function B(Ae){return Ae.trim().split(/\s+/g)}function s(Ae,it,Bt){if(Ae.indexOf&&!Bt)return Ae.indexOf(it);for(var pr=0;pr<Ae.length;){if(Bt&&Ae[pr][Bt]==it||!Bt&&Ae[pr]===it)return pr;pr++}return-1}function _(Ae){return Array.prototype.slice.call(Ae,0)}function w(Ae,it,Bt){for(var pr=[],Or=[],Wr=0;Wr<Ae.length;){var sn=it?Ae[Wr][it]:Ae[Wr];s(Or,sn)<0&&pr.push(Ae[Wr]),Or[Wr]=sn,Wr++}return Bt&&(pr=it?pr.sort(function(Sn,yn){return Sn[it]>yn[it]}):pr.sort()),pr}function E(Ae,it){for(var Bt,pr,Or=it[0].toUpperCase()+it.slice(1),Wr=0;Wr<d.length;){if((pr=(Bt=d[Wr])?Bt+Or:it)in Ae)return pr;Wr++}return r}var x=1;function $(Ae){var it=Ae.ownerDocument||Ae;return it.defaultView||it.parentWindow||e}var u="ontouchstart"in e,W=E(e,"PointerEvent")!==r,fe=u&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),ae="touch",Qe="mouse",br=["x","y"],rt=["clientX","clientY"];function st(Ae,it){var Bt=this;this.manager=Ae,this.callback=it,this.element=Ae.element,this.target=Ae.options.inputTarget,this.domHandler=function(pr){J(Ae.options.enable,[Ae])&&Bt.handler(pr)},this.init()}function ot(Ae,it,Bt){var pr=Bt.pointers.length,Or=Bt.changedPointers.length,Wr=1&it&&pr-Or==0,sn=12&it&&pr-Or==0;Bt.isFirst=!!Wr,Bt.isFinal=!!sn,Wr&&(Ae.session={}),Bt.eventType=it,function nt(Ae,it){var Bt=Ae.session,pr=it.pointers,Or=pr.length;Bt.firstInput||(Bt.firstInput=X(it)),Or>1&&!Bt.firstMultiple?Bt.firstMultiple=X(it):1===Or&&(Bt.firstMultiple=!1);var Wr=Bt.firstInput,sn=Bt.firstMultiple,En=sn?sn.center:Wr.center,Sn=it.center=ge(pr);it.timeStamp=C(),it.deltaTime=it.timeStamp-Wr.timeStamp,it.angle=pt(En,Sn),it.distance=Re(En,Sn),function Yt(Ae,it){var Bt=it.center,pr=Ae.offsetDelta||{},Or=Ae.prevDelta||{},Wr=Ae.prevInput||{};(1===it.eventType||4===Wr.eventType)&&(Or=Ae.prevDelta={x:Wr.deltaX||0,y:Wr.deltaY||0},pr=Ae.offsetDelta={x:Bt.x,y:Bt.y}),it.deltaX=Or.x+(Bt.x-pr.x),it.deltaY=Or.y+(Bt.y-pr.y)}(Bt,it),it.offsetDirection=We(it.deltaX,it.deltaY);var yn=Me(it.deltaTime,it.deltaX,it.deltaY);it.overallVelocityX=yn.x,it.overallVelocityY=yn.y,it.overallVelocity=f(yn.x)>f(yn.y)?yn.x:yn.y,it.scale=sn?function cr(Ae,it){return Re(it[0],it[1],rt)/Re(Ae[0],Ae[1],rt)}(sn.pointers,pr):1,it.rotation=sn?function Zt(Ae,it){return pt(it[1],it[0],rt)+pt(Ae[1],Ae[0],rt)}(sn.pointers,pr):0,it.maxPointers=Bt.prevInput?it.pointers.length>Bt.prevInput.maxPointers?it.pointers.length:Bt.prevInput.maxPointers:it.pointers.length,function Ne(Ae,it){var Or,Wr,sn,En,Bt=Ae.lastInterval||it,pr=it.timeStamp-Bt.timeStamp;if(8!=it.eventType&&(pr>25||Bt.velocity===r)){var Sn=it.deltaX-Bt.deltaX,yn=it.deltaY-Bt.deltaY,Rn=Me(pr,Sn,yn);Wr=Rn.x,sn=Rn.y,Or=f(Rn.x)>f(Rn.y)?Rn.x:Rn.y,En=We(Sn,yn),Ae.lastInterval=it}else Or=Bt.velocity,Wr=Bt.velocityX,sn=Bt.velocityY,En=Bt.direction;it.velocity=Or,it.velocityX=Wr,it.velocityY=sn,it.direction=En}(Bt,it);var Rn=Ae.element;re(it.srcEvent.target,Rn)&&(Rn=it.srcEvent.target),it.target=Rn}(Ae,Bt),Ae.emit("hammer.input",Bt),Ae.recognize(Bt),Ae.session.prevInput=Bt}function X(Ae){for(var it=[],Bt=0;Bt<Ae.pointers.length;)it[Bt]={clientX:p(Ae.pointers[Bt].clientX),clientY:p(Ae.pointers[Bt].clientY)},Bt++;return{timeStamp:C(),pointers:it,center:ge(it),deltaX:Ae.deltaX,deltaY:Ae.deltaY}}function ge(Ae){var it=Ae.length;if(1===it)return{x:p(Ae[0].clientX),y:p(Ae[0].clientY)};for(var Bt=0,pr=0,Or=0;Or<it;)Bt+=Ae[Or].clientX,pr+=Ae[Or].clientY,Or++;return{x:p(Bt/it),y:p(pr/it)}}function Me(Ae,it,Bt){return{x:it/Ae||0,y:Bt/Ae||0}}function We(Ae,it){return Ae===it?1:f(Ae)>=f(it)?Ae<0?2:4:it<0?8:16}function Re(Ae,it,Bt){Bt||(Bt=br);var pr=it[Bt[0]]-Ae[Bt[0]],Or=it[Bt[1]]-Ae[Bt[1]];return Math.sqrt(pr*pr+Or*Or)}function pt(Ae,it,Bt){return Bt||(Bt=br),180*Math.atan2(it[Bt[1]]-Ae[Bt[1]],it[Bt[0]]-Ae[Bt[0]])/Math.PI}st.prototype={handler:function(){},init:function(){this.evEl&&ie(this.element,this.evEl,this.domHandler),this.evTarget&&ie(this.target,this.evTarget,this.domHandler),this.evWin&&ie($(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&K(this.element,this.evEl,this.domHandler),this.evTarget&&K(this.target,this.evTarget,this.domHandler),this.evWin&&K($(this.element),this.evWin,this.domHandler)}};var wt={mousedown:1,mousemove:2,mouseup:4},gt="mousedown",Ut="mousemove mouseup";function hr(){this.evEl=gt,this.evWin=Ut,this.pressed=!1,st.apply(this,arguments)}U(hr,st,{handler:function(it){var Bt=wt[it.type];1&Bt&&0===it.button&&(this.pressed=!0),2&Bt&&1!==it.which&&(Bt=4),this.pressed&&(4&Bt&&(this.pressed=!1),this.callback(this.manager,Bt,{pointers:[it],changedPointers:[it],pointerType:Qe,srcEvent:it}))}});var Cr={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Ue={2:ae,3:"pen",4:Qe,5:"kinect"},Pt="pointerdown",He="pointermove pointerup pointercancel";function tt(){this.evEl=Pt,this.evWin=He,st.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}e.MSPointerEvent&&!e.PointerEvent&&(Pt="MSPointerDown",He="MSPointerMove MSPointerUp MSPointerCancel"),U(tt,st,{handler:function(it){var Bt=this.store,pr=!1,Or=it.type.toLowerCase().replace("ms",""),Wr=Cr[Or],sn=Ue[it.pointerType]||it.pointerType,En=sn==ae,Sn=s(Bt,it.pointerId,"pointerId");1&Wr&&(0===it.button||En)?Sn<0&&(Bt.push(it),Sn=Bt.length-1):12&Wr&&(pr=!0),!(Sn<0)&&(Bt[Sn]=it,this.callback(this.manager,Wr,{pointers:Bt,changedPointers:[it],pointerType:sn,srcEvent:it}),pr&&Bt.splice(Sn,1))}});var Ke={touchstart:1,touchmove:2,touchend:4,touchcancel:8},kt="touchstart",xe="touchstart touchmove touchend touchcancel";function Fe(){this.evTarget=kt,this.evWin=xe,this.started=!1,st.apply(this,arguments)}function lt(Ae,it){var Bt=_(Ae.touches),pr=_(Ae.changedTouches);return 12&it&&(Bt=w(Bt.concat(pr),"identifier",!0)),[Bt,pr]}U(Fe,st,{handler:function(it){var Bt=Ke[it.type];if(1===Bt&&(this.started=!0),this.started){var pr=lt.call(this,it,Bt);12&Bt&&pr[0].length-pr[1].length==0&&(this.started=!1),this.callback(this.manager,Bt,{pointers:pr[0],changedPointers:pr[1],pointerType:ae,srcEvent:it})}}});var St={touchstart:1,touchmove:2,touchend:4,touchcancel:8},qe="touchstart touchmove touchend touchcancel";function ke(){this.evTarget=qe,this.targetIds={},st.apply(this,arguments)}function ct(Ae,it){var Bt=_(Ae.touches),pr=this.targetIds;if(3&it&&1===Bt.length)return pr[Bt[0].identifier]=!0,[Bt,Bt];var Or,Wr,sn=_(Ae.changedTouches),En=[],Sn=this.target;if(Wr=Bt.filter(function(yn){return re(yn.target,Sn)}),1===it)for(Or=0;Or<Wr.length;)pr[Wr[Or].identifier]=!0,Or++;for(Or=0;Or<sn.length;)pr[sn[Or].identifier]&&En.push(sn[Or]),12&it&&delete pr[sn[Or].identifier],Or++;return En.length?[w(Wr.concat(En),"identifier",!0),En]:void 0}function Vr(){st.apply(this,arguments);var Ae=q(this.handler,this);this.touch=new ke(this.manager,Ae),this.mouse=new hr(this.manager,Ae),this.primaryTouch=null,this.lastTouches=[]}function Sr(Ae,it){1&Ae?(this.primaryTouch=it.changedPointers[0].identifier,Ar.call(this,it)):12&Ae&&Ar.call(this,it)}function Ar(Ae){var it=Ae.changedPointers[0];if(it.identifier===this.primaryTouch){var Bt={x:it.clientX,y:it.clientY};this.lastTouches.push(Bt);var pr=this.lastTouches;setTimeout(function(){var Wr=pr.indexOf(Bt);Wr>-1&&pr.splice(Wr,1)},2500)}}function Jr(Ae){for(var it=Ae.srcEvent.clientX,Bt=Ae.srcEvent.clientY,pr=0;pr<this.lastTouches.length;pr++){var Or=this.lastTouches[pr],Wr=Math.abs(it-Or.x),sn=Math.abs(Bt-Or.y);if(Wr<=25&&sn<=25)return!0}return!1}U(ke,st,{handler:function(it){var Bt=St[it.type],pr=ct.call(this,it,Bt);!pr||this.callback(this.manager,Bt,{pointers:pr[0],changedPointers:pr[1],pointerType:ae,srcEvent:it})}}),U(Vr,st,{handler:function(it,Bt,pr){var Wr=pr.pointerType==Qe;if(!(Wr&&pr.sourceCapabilities&&pr.sourceCapabilities.firesTouchEvents)){if(pr.pointerType==ae)Sr.call(this,Bt,pr);else if(Wr&&Jr.call(this,pr))return;this.callback(it,Bt,pr)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Fr=E(y.style,"touchAction"),Gt=Fr!==r,le="compute",Ie="manipulation",Pe="none",Oe="pan-x",Se="pan-y",Xe=function kr(){if(!Gt)return!1;var Ae={},it=e.CSS&&e.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(Bt){Ae[Bt]=!it||e.CSS.supports("touch-action",Bt)}),Ae}();function Ct(Ae,it){this.manager=Ae,this.set(it)}function hn(Ae){this.options=F({},this.defaults,Ae||{}),this.id=function j(){return x++}(),this.manager=null,this.options.enable=G(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function _n(Ae){return 16&Ae?"cancel":8&Ae?"end":4&Ae?"move":2&Ae?"start":""}function Tn(Ae){return 16==Ae?"down":8==Ae?"up":2==Ae?"left":4==Ae?"right":""}function sr(Ae,it){var Bt=it.manager;return Bt?Bt.get(Ae):Ae}function fr(){hn.apply(this,arguments)}function Kt(){fr.apply(this,arguments),this.pX=null,this.pY=null}function Qr(){fr.apply(this,arguments)}function we(){hn.apply(this,arguments),this._timer=null,this._input=null}function De(){fr.apply(this,arguments)}function ht(){fr.apply(this,arguments)}function Vt(){hn.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function yt(Ae,it){return(it=it||{}).recognizers=G(it.recognizers,yt.defaults.preset),new Zr(Ae,it)}function Zr(Ae,it){this.options=F({},yt.defaults,it||{}),this.options.inputTarget=this.options.inputTarget||Ae,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=Ae,this.input=function Dt(Ae){return new(Ae.options.inputClass||(W?tt:fe?ke:u?Vr:hr))(Ae,ot)}(this),this.touchAction=new Ct(this,this.options.touchAction),fn(this,!0),O(this.options.recognizers,function(Bt){var pr=this.add(new Bt[0](Bt[1]));Bt[2]&&pr.recognizeWith(Bt[2]),Bt[3]&&pr.requireFailure(Bt[3])},this)}function fn(Ae,it){var pr,Bt=Ae.element;Bt.style&&(O(Ae.options.cssProps,function(Or,Wr){pr=E(Bt.style,Wr),it?(Ae.oldCssProps[pr]=Bt.style[pr],Bt.style[pr]=Or):Bt.style[pr]=Ae.oldCssProps[pr]||""}),it||(Ae.oldCssProps={}))}Ct.prototype={set:function(Ae){Ae==le&&(Ae=this.compute()),Gt&&this.manager.element.style&&Xe[Ae]&&(this.manager.element.style[Fr]=Ae),this.actions=Ae.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var Ae=[];return O(this.manager.recognizers,function(it){J(it.options.enable,[it])&&(Ae=Ae.concat(it.getTouchAction()))}),function zt(Ae){if(oe(Ae,Pe))return Pe;var it=oe(Ae,Oe),Bt=oe(Ae,Se);return it&&Bt?Pe:it||Bt?it?Oe:Se:oe(Ae,Ie)?Ie:"auto"}(Ae.join(" "))},preventDefaults:function(Ae){var it=Ae.srcEvent,Bt=Ae.offsetDirection;if(!this.manager.session.prevented){var pr=this.actions,Or=oe(pr,Pe)&&!Xe[Pe],Wr=oe(pr,Se)&&!Xe[Se],sn=oe(pr,Oe)&&!Xe[Oe];if(Or&&1===Ae.pointers.length&&Ae.distance<2&&Ae.deltaTime<250)return;return sn&&Wr||!(Or||Wr&&6&Bt||sn&&24&Bt)?void 0:this.preventSrc(it)}it.preventDefault()},preventSrc:function(Ae){this.manager.session.prevented=!0,Ae.preventDefault()}},hn.prototype={defaults:{},set:function(Ae){return F(this.options,Ae),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(Ae){if(a(Ae,"recognizeWith",this))return this;var it=this.simultaneous;return it[(Ae=sr(Ae,this)).id]||(it[Ae.id]=Ae,Ae.recognizeWith(this)),this},dropRecognizeWith:function(Ae){return a(Ae,"dropRecognizeWith",this)||(Ae=sr(Ae,this),delete this.simultaneous[Ae.id]),this},requireFailure:function(Ae){if(a(Ae,"requireFailure",this))return this;var it=this.requireFail;return-1===s(it,Ae=sr(Ae,this))&&(it.push(Ae),Ae.requireFailure(this)),this},dropRequireFailure:function(Ae){if(a(Ae,"dropRequireFailure",this))return this;Ae=sr(Ae,this);var it=s(this.requireFail,Ae);return it>-1&&this.requireFail.splice(it,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(Ae){return!!this.simultaneous[Ae.id]},emit:function(Ae){var it=this,Bt=this.state;function pr(Or){it.manager.emit(Or,Ae)}Bt<8&&pr(it.options.event+_n(Bt)),pr(it.options.event),Ae.additionalEvent&&pr(Ae.additionalEvent),Bt>=8&&pr(it.options.event+_n(Bt))},tryEmit:function(Ae){if(this.canEmit())return this.emit(Ae);this.state=32},canEmit:function(){for(var Ae=0;Ae<this.requireFail.length;){if(!(33&this.requireFail[Ae].state))return!1;Ae++}return!0},recognize:function(Ae){var it=F({},Ae);if(!J(this.options.enable,[this,it]))return this.reset(),void(this.state=32);56&this.state&&(this.state=1),this.state=this.process(it),30&this.state&&this.tryEmit(it)},process:function(Ae){},getTouchAction:function(){},reset:function(){}},U(fr,hn,{defaults:{pointers:1},attrTest:function(Ae){var it=this.options.pointers;return 0===it||Ae.pointers.length===it},process:function(Ae){var it=this.state,Bt=Ae.eventType,pr=6&it,Or=this.attrTest(Ae);return pr&&(8&Bt||!Or)?16|it:pr||Or?4&Bt?8|it:2&it?4|it:2:32}}),U(Kt,fr,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var Ae=this.options.direction,it=[];return 6&Ae&&it.push(Se),24&Ae&&it.push(Oe),it},directionTest:function(Ae){var it=this.options,Bt=!0,pr=Ae.distance,Or=Ae.direction,Wr=Ae.deltaX,sn=Ae.deltaY;return Or&it.direction||(6&it.direction?(Or=0===Wr?1:Wr<0?2:4,Bt=Wr!=this.pX,pr=Math.abs(Ae.deltaX)):(Or=0===sn?1:sn<0?8:16,Bt=sn!=this.pY,pr=Math.abs(Ae.deltaY))),Ae.direction=Or,Bt&&pr>it.threshold&&Or&it.direction},attrTest:function(Ae){return fr.prototype.attrTest.call(this,Ae)&&(2&this.state||!(2&this.state)&&this.directionTest(Ae))},emit:function(Ae){this.pX=Ae.deltaX,this.pY=Ae.deltaY;var it=Tn(Ae.direction);it&&(Ae.additionalEvent=this.options.event+it),this._super.emit.call(this,Ae)}}),U(Qr,fr,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Pe]},attrTest:function(Ae){return this._super.attrTest.call(this,Ae)&&(Math.abs(Ae.scale-1)>this.options.threshold||2&this.state)},emit:function(Ae){1!==Ae.scale&&(Ae.additionalEvent=this.options.event+(Ae.scale<1?"in":"out")),this._super.emit.call(this,Ae)}}),U(we,hn,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(Ae){var it=this.options,Bt=Ae.pointers.length===it.pointers,pr=Ae.distance<it.threshold,Or=Ae.deltaTime>it.time;if(this._input=Ae,!pr||!Bt||12&Ae.eventType&&!Or)this.reset();else if(1&Ae.eventType)this.reset(),this._timer=N(function(){this.state=8,this.tryEmit()},it.time,this);else if(4&Ae.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(Ae){8===this.state&&(Ae&&4&Ae.eventType?this.manager.emit(this.options.event+"up",Ae):(this._input.timeStamp=C(),this.manager.emit(this.options.event,this._input)))}}),U(De,fr,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Pe]},attrTest:function(Ae){return this._super.attrTest.call(this,Ae)&&(Math.abs(Ae.rotation)>this.options.threshold||2&this.state)}}),U(ht,fr,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Kt.prototype.getTouchAction.call(this)},attrTest:function(Ae){var Bt,it=this.options.direction;return 30&it?Bt=Ae.overallVelocity:6&it?Bt=Ae.overallVelocityX:24&it&&(Bt=Ae.overallVelocityY),this._super.attrTest.call(this,Ae)&&it&Ae.offsetDirection&&Ae.distance>this.options.threshold&&Ae.maxPointers==this.options.pointers&&f(Bt)>this.options.velocity&&4&Ae.eventType},emit:function(Ae){var it=Tn(Ae.offsetDirection);it&&this.manager.emit(this.options.event+it,Ae),this.manager.emit(this.options.event,Ae)}}),U(Vt,hn,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Ie]},process:function(Ae){var it=this.options,Bt=Ae.pointers.length===it.pointers,pr=Ae.distance<it.threshold,Or=Ae.deltaTime<it.time;if(this.reset(),1&Ae.eventType&&0===this.count)return this.failTimeout();if(pr&&Or&&Bt){if(4!=Ae.eventType)return this.failTimeout();var Wr=!this.pTime||Ae.timeStamp-this.pTime<it.interval,sn=!this.pCenter||Re(this.pCenter,Ae.center)<it.posThreshold;if(this.pTime=Ae.timeStamp,this.pCenter=Ae.center,sn&&Wr?this.count+=1:this.count=1,this._input=Ae,0==this.count%it.taps)return this.hasRequireFailures()?(this._timer=N(function(){this.state=8,this.tryEmit()},it.interval,this),2):8}return 32},failTimeout:function(){return this._timer=N(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),yt.VERSION="2.0.7",yt.defaults={domEvents:!1,touchAction:le,enable:!0,inputTarget:null,inputClass:null,preset:[[De,{enable:!1}],[Qr,{enable:!1},["rotate"]],[ht,{direction:6}],[Kt,{direction:6},["swipe"]],[Vt],[Vt,{event:"doubletap",taps:2},["tap"]],[we]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Zr.prototype={set:function(Ae){return F(this.options,Ae),Ae.touchAction&&this.touchAction.update(),Ae.inputTarget&&(this.input.destroy(),this.input.target=Ae.inputTarget,this.input.init()),this},stop:function(Ae){this.session.stopped=Ae?2:1},recognize:function(Ae){var it=this.session;if(!it.stopped){this.touchAction.preventDefaults(Ae);var Bt,pr=this.recognizers,Or=it.curRecognizer;(!Or||Or&&8&Or.state)&&(Or=it.curRecognizer=null);for(var Wr=0;Wr<pr.length;)Bt=pr[Wr],2===it.stopped||Or&&Bt!=Or&&!Bt.canRecognizeWith(Or)?Bt.reset():Bt.recognize(Ae),!Or&&14&Bt.state&&(Or=it.curRecognizer=Bt),Wr++}},get:function(Ae){if(Ae instanceof hn)return Ae;for(var it=this.recognizers,Bt=0;Bt<it.length;Bt++)if(it[Bt].options.event==Ae)return it[Bt];return null},add:function(Ae){if(a(Ae,"add",this))return this;var it=this.get(Ae.options.event);return it&&this.remove(it),this.recognizers.push(Ae),Ae.manager=this,this.touchAction.update(),Ae},remove:function(Ae){if(a(Ae,"remove",this))return this;if(Ae=this.get(Ae)){var it=this.recognizers,Bt=s(it,Ae);-1!==Bt&&(it.splice(Bt,1),this.touchAction.update())}return this},on:function(Ae,it){if(Ae!==r&&it!==r){var Bt=this.handlers;return O(B(Ae),function(pr){Bt[pr]=Bt[pr]||[],Bt[pr].push(it)}),this}},off:function(Ae,it){if(Ae!==r){var Bt=this.handlers;return O(B(Ae),function(pr){it?Bt[pr]&&Bt[pr].splice(s(Bt[pr],it),1):delete Bt[pr]}),this}},emit:function(Ae,it){this.options.domEvents&&function un(Ae,it){var Bt=l.createEvent("Event");Bt.initEvent(Ae,!0,!0),Bt.gesture=it,it.target.dispatchEvent(Bt)}(Ae,it);var Bt=this.handlers[Ae]&&this.handlers[Ae].slice();if(Bt&&Bt.length){it.type=Ae,it.preventDefault=function(){it.srcEvent.preventDefault()};for(var pr=0;pr<Bt.length;)Bt[pr](it),pr++}},destroy:function(){this.element&&fn(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},F(yt,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:Zr,Input:st,TouchAction:Ct,TouchInput:ke,MouseInput:hr,PointerEventInput:tt,TouchMouseInput:Vr,SingleTouchInput:Fe,Recognizer:hn,AttrRecognizer:fr,Tap:Vt,Pan:Kt,Swipe:ht,Pinch:Qr,Rotate:De,Press:we,on:ie,off:K,each:O,merge:D,extend:V,assign:F,inherit:U,bindFn:q,prefixed:E}),(typeof e<"u"?e:typeof self<"u"?self:{}).Hammer=yt,(t=function(){return yt}.call(b,n,b,M))!==r&&(M.exports=t)}(window,document)},39650:(M,b,n)=>{"use strict";var t=n(73502).Buffer,e=n(65685).Transform;function r(d){e.call(this),this._block=t.allocUnsafe(d),this._blockSize=d,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(83894)(r,e),r.prototype._transform=function(d,y,g){var p=null;try{this.update(d,y)}catch(f){p=f}g(p)},r.prototype._flush=function(d){var y=null;try{this.push(this.digest())}catch(g){y=g}d(y)},r.prototype.update=function(d,y){if(function h(d,y){if(!t.isBuffer(d)&&"string"!=typeof d)throw new TypeError(y+" must be a string or a buffer")}(d,"Data"),this._finalized)throw new Error("Digest already called");t.isBuffer(d)||(d=t.from(d,y));for(var g=this._block,p=0;this._blockOffset+d.length-p>=this._blockSize;){for(var f=this._blockOffset;f<this._blockSize;)g[f++]=d[p++];this._update(),this._blockOffset=0}for(;p<d.length;)g[this._blockOffset++]=d[p++];for(var C=0,N=8*d.length;N>0;++C)this._length[C]+=N,(N=this._length[C]/4294967296|0)>0&&(this._length[C]-=4294967296*N);return this},r.prototype._update=function(){throw new Error("_update is not implemented")},r.prototype.digest=function(d){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var y=this._digest();void 0!==d&&(y=y.toString(d)),this._block.fill(0),this._blockOffset=0;for(var g=0;g<4;++g)this._length[g]=0;return y},r.prototype._digest=function(){throw new Error("_digest is not implemented")},M.exports=r},37084:(M,b,n)=>{var t=b;t.utils=n(29299),t.common=n(33800),t.sha=n(54962),t.ripemd=n(99458),t.hmac=n(12194),t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160},33800:(M,b,n)=>{"use strict";var t=n(29299),e=n(32391);function l(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}b.BlockHash=l,l.prototype.update=function(r,d){if(r=t.toArray(r,d),this.pending=this.pending?this.pending.concat(r):r,this.pendingTotal+=r.length,this.pending.length>=this._delta8){var y=(r=this.pending).length%this._delta8;this.pending=r.slice(r.length-y,r.length),0===this.pending.length&&(this.pending=null),r=t.join32(r,0,r.length-y,this.endian);for(var g=0;g<r.length;g+=this._delta32)this._update(r,g,g+this._delta32)}return this},l.prototype.digest=function(r){return this.update(this._pad()),e(null===this.pending),this._digest(r)},l.prototype._pad=function(){var r=this.pendingTotal,d=this._delta8,y=d-(r+this.padLength)%d,g=new Array(y+this.padLength);g[0]=128;for(var p=1;p<y;p++)g[p]=0;if(r<<=3,"big"===this.endian){for(var f=8;f<this.padLength;f++)g[p++]=0;g[p++]=0,g[p++]=0,g[p++]=0,g[p++]=0,g[p++]=r>>>24&255,g[p++]=r>>>16&255,g[p++]=r>>>8&255,g[p++]=255&r}else for(g[p++]=255&r,g[p++]=r>>>8&255,g[p++]=r>>>16&255,g[p++]=r>>>24&255,g[p++]=0,g[p++]=0,g[p++]=0,g[p++]=0,f=8;f<this.padLength;f++)g[p++]=0;return g}},12194:(M,b,n)=>{"use strict";var t=n(29299),e=n(32391);function l(h,r,d){if(!(this instanceof l))return new l(h,r,d);this.Hash=h,this.blockSize=h.blockSize/8,this.outSize=h.outSize/8,this.inner=null,this.outer=null,this._init(t.toArray(r,d))}M.exports=l,l.prototype._init=function(r){r.length>this.blockSize&&(r=(new this.Hash).update(r).digest()),e(r.length<=this.blockSize);for(var d=r.length;d<this.blockSize;d++)r.push(0);for(d=0;d<r.length;d++)r[d]^=54;for(this.inner=(new this.Hash).update(r),d=0;d<r.length;d++)r[d]^=106;this.outer=(new this.Hash).update(r)},l.prototype.update=function(r,d){return this.inner.update(r,d),this},l.prototype.digest=function(r){return this.outer.update(this.inner.digest()),this.outer.digest(r)}},99458:(M,b,n)=>{"use strict";var t=n(29299),e=n(33800),l=t.rotl32,h=t.sum32,r=t.sum32_3,d=t.sum32_4,y=e.BlockHash;function g(){if(!(this instanceof g))return new g;y.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function p(F,V,D,U){return F<=15?V^D^U:F<=31?V&D|~V&U:F<=47?(V|~D)^U:F<=63?V&U|D&~U:V^(D|~U)}function C(F){return F<=15?1352829926:F<=31?1548603684:F<=47?1836072691:F<=63?2053994217:0}t.inherits(g,y),b.ripemd160=g,g.blockSize=512,g.outSize=160,g.hmacStrength=192,g.padLength=64,g.prototype._update=function(V,D){for(var U=this.h[0],q=this.h[1],J=this.h[2],G=this.h[3],ie=this.h[4],K=U,re=q,oe=J,B=G,s=ie,_=0;_<80;_++){var w=h(l(d(U,p(_,q,J,G),V[N[_]+D],(F=_)<=15?0:F<=31?1518500249:F<=47?1859775393:F<=63?2400959708:2840853838),O[_]),ie);U=ie,ie=G,G=l(J,10),J=q,q=w,w=h(l(d(K,p(79-_,re,oe,B),V[a[_]+D],C(_)),H[_]),s),K=s,s=B,B=l(oe,10),oe=re,re=w}var F;w=r(this.h[1],J,B),this.h[1]=r(this.h[2],G,s),this.h[2]=r(this.h[3],ie,K),this.h[3]=r(this.h[4],U,re),this.h[4]=r(this.h[0],q,oe),this.h[0]=w},g.prototype._digest=function(V){return"hex"===V?t.toHex32(this.h,"little"):t.split32(this.h,"little")};var N=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],a=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],O=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],H=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},54962:(M,b,n)=>{"use strict";b.sha1=n(59007),b.sha224=n(10055),b.sha256=n(19342),b.sha384=n(88634),b.sha512=n(70039)},59007:(M,b,n)=>{"use strict";var t=n(29299),e=n(33800),l=n(33113),h=t.rotl32,r=t.sum32,d=t.sum32_5,y=l.ft_1,g=e.BlockHash,p=[1518500249,1859775393,2400959708,3395469782];function f(){if(!(this instanceof f))return new f;g.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}t.inherits(f,g),M.exports=f,f.blockSize=512,f.outSize=160,f.hmacStrength=80,f.padLength=64,f.prototype._update=function(N,a){for(var O=this.W,H=0;H<16;H++)O[H]=N[a+H];for(;H<O.length;H++)O[H]=h(O[H-3]^O[H-8]^O[H-14]^O[H-16],1);var F=this.h[0],V=this.h[1],D=this.h[2],U=this.h[3],q=this.h[4];for(H=0;H<O.length;H++){var J=~~(H/20),G=d(h(F,5),y(J,V,D,U),q,O[H],p[J]);q=U,U=D,D=h(V,30),V=F,F=G}this.h[0]=r(this.h[0],F),this.h[1]=r(this.h[1],V),this.h[2]=r(this.h[2],D),this.h[3]=r(this.h[3],U),this.h[4]=r(this.h[4],q)},f.prototype._digest=function(N){return"hex"===N?t.toHex32(this.h,"big"):t.split32(this.h,"big")}},10055:(M,b,n)=>{"use strict";var t=n(29299),e=n(19342);function l(){if(!(this instanceof l))return new l;e.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}t.inherits(l,e),M.exports=l,l.blockSize=512,l.outSize=224,l.hmacStrength=192,l.padLength=64,l.prototype._digest=function(r){return"hex"===r?t.toHex32(this.h.slice(0,7),"big"):t.split32(this.h.slice(0,7),"big")}},19342:(M,b,n)=>{"use strict";var t=n(29299),e=n(33800),l=n(33113),h=n(32391),r=t.sum32,d=t.sum32_4,y=t.sum32_5,g=l.ch32,p=l.maj32,f=l.s0_256,C=l.s1_256,N=l.g0_256,a=l.g1_256,O=e.BlockHash,H=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function F(){if(!(this instanceof F))return new F;O.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=H,this.W=new Array(64)}t.inherits(F,O),M.exports=F,F.blockSize=512,F.outSize=256,F.hmacStrength=192,F.padLength=64,F.prototype._update=function(D,U){for(var q=this.W,J=0;J<16;J++)q[J]=D[U+J];for(;J<q.length;J++)q[J]=d(a(q[J-2]),q[J-7],N(q[J-15]),q[J-16]);var G=this.h[0],ie=this.h[1],K=this.h[2],re=this.h[3],oe=this.h[4],B=this.h[5],s=this.h[6],_=this.h[7];for(h(this.k.length===q.length),J=0;J<q.length;J++){var w=y(_,C(oe),g(oe,B,s),this.k[J],q[J]),E=r(f(G),p(G,ie,K));_=s,s=B,B=oe,oe=r(re,w),re=K,K=ie,ie=G,G=r(w,E)}this.h[0]=r(this.h[0],G),this.h[1]=r(this.h[1],ie),this.h[2]=r(this.h[2],K),this.h[3]=r(this.h[3],re),this.h[4]=r(this.h[4],oe),this.h[5]=r(this.h[5],B),this.h[6]=r(this.h[6],s),this.h[7]=r(this.h[7],_)},F.prototype._digest=function(D){return"hex"===D?t.toHex32(this.h,"big"):t.split32(this.h,"big")}},88634:(M,b,n)=>{"use strict";var t=n(29299),e=n(70039);function l(){if(!(this instanceof l))return new l;e.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}t.inherits(l,e),M.exports=l,l.blockSize=1024,l.outSize=384,l.hmacStrength=192,l.padLength=128,l.prototype._digest=function(r){return"hex"===r?t.toHex32(this.h.slice(0,12),"big"):t.split32(this.h.slice(0,12),"big")}},70039:(M,b,n)=>{"use strict";var t=n(29299),e=n(33800),l=n(32391),h=t.rotr64_hi,r=t.rotr64_lo,d=t.shr64_hi,y=t.shr64_lo,g=t.sum64,p=t.sum64_hi,f=t.sum64_lo,C=t.sum64_4_hi,N=t.sum64_4_lo,a=t.sum64_5_hi,O=t.sum64_5_lo,H=e.BlockHash,F=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function V(){if(!(this instanceof V))return new V;H.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=F,this.W=new Array(160)}function D(w,E,x,j,$){var Y=w&x^~w&$;return Y<0&&(Y+=4294967296),Y}function U(w,E,x,j,$,Y){var u=E&j^~E&Y;return u<0&&(u+=4294967296),u}function q(w,E,x,j,$){var Y=w&x^w&$^x&$;return Y<0&&(Y+=4294967296),Y}function J(w,E,x,j,$,Y){var u=E&j^E&Y^j&Y;return u<0&&(u+=4294967296),u}function G(w,E){var Y=h(w,E,28)^h(E,w,2)^h(E,w,7);return Y<0&&(Y+=4294967296),Y}function ie(w,E){var Y=r(w,E,28)^r(E,w,2)^r(E,w,7);return Y<0&&(Y+=4294967296),Y}function K(w,E){var Y=h(w,E,14)^h(w,E,18)^h(E,w,9);return Y<0&&(Y+=4294967296),Y}function re(w,E){var Y=r(w,E,14)^r(w,E,18)^r(E,w,9);return Y<0&&(Y+=4294967296),Y}function oe(w,E){var Y=h(w,E,1)^h(w,E,8)^d(w,E,7);return Y<0&&(Y+=4294967296),Y}function B(w,E){var Y=r(w,E,1)^r(w,E,8)^y(w,E,7);return Y<0&&(Y+=4294967296),Y}function s(w,E){var Y=h(w,E,19)^h(E,w,29)^d(w,E,6);return Y<0&&(Y+=4294967296),Y}function _(w,E){var Y=r(w,E,19)^r(E,w,29)^y(w,E,6);return Y<0&&(Y+=4294967296),Y}t.inherits(V,H),M.exports=V,V.blockSize=1024,V.outSize=512,V.hmacStrength=192,V.padLength=128,V.prototype._prepareBlock=function(E,x){for(var j=this.W,$=0;$<32;$++)j[$]=E[x+$];for(;$<j.length;$+=2){var Y=s(j[$-4],j[$-3]),u=_(j[$-4],j[$-3]),W=j[$-14],fe=j[$-13],ae=oe(j[$-30],j[$-29]),ye=B(j[$-30],j[$-29]),Qe=j[$-32],Ot=j[$-31];j[$]=C(Y,u,W,fe,ae,ye,Qe,Ot),j[$+1]=N(Y,u,W,fe,ae,ye,Qe,Ot)}},V.prototype._update=function(E,x){this._prepareBlock(E,x);var j=this.W,$=this.h[0],Y=this.h[1],u=this.h[2],W=this.h[3],fe=this.h[4],ae=this.h[5],ye=this.h[6],Qe=this.h[7],Ot=this.h[8],At=this.h[9],Ze=this.h[10],at=this.h[11],Be=this.h[12],Lt=this.h[13],_e=this.h[14],ne=this.h[15];l(this.k.length===j.length);for(var be=0;be<j.length;be+=2){var Te=_e,$e=ne,ft=K(Ot,At),Ge=re(Ot,At),Ft=D(Ot,0,Ze,0,Be),br=U(0,At,0,at,0,Lt),rt=this.k[be],st=this.k[be+1],Dt=j[be],ot=j[be+1],nt=a(Te,$e,ft,Ge,Ft,br,rt,st,Dt,ot),Yt=O(Te,$e,ft,Ge,Ft,br,rt,st,Dt,ot);Te=G($,Y),$e=ie($,Y),ft=q($,0,u,0,fe),Ge=J(0,Y,0,W,0,ae);var Ne=p(Te,$e,ft,Ge),X=f(Te,$e,ft,Ge);_e=Be,ne=Lt,Be=Ze,Lt=at,Ze=Ot,at=At,Ot=p(ye,Qe,nt,Yt),At=f(Qe,Qe,nt,Yt),ye=fe,Qe=ae,fe=u,ae=W,u=$,W=Y,$=p(nt,Yt,Ne,X),Y=f(nt,Yt,Ne,X)}g(this.h,0,$,Y),g(this.h,2,u,W),g(this.h,4,fe,ae),g(this.h,6,ye,Qe),g(this.h,8,Ot,At),g(this.h,10,Ze,at),g(this.h,12,Be,Lt),g(this.h,14,_e,ne)},V.prototype._digest=function(E){return"hex"===E?t.toHex32(this.h,"big"):t.split32(this.h,"big")}},33113:(M,b,n)=>{"use strict";var e=n(29299).rotr32;function h(C,N,a){return C&N^~C&a}function r(C,N,a){return C&N^C&a^N&a}function d(C,N,a){return C^N^a}b.ft_1=function l(C,N,a,O){return 0===C?h(N,a,O):1===C||3===C?d(N,a,O):2===C?r(N,a,O):void 0},b.ch32=h,b.maj32=r,b.p32=d,b.s0_256=function y(C){return e(C,2)^e(C,13)^e(C,22)},b.s1_256=function g(C){return e(C,6)^e(C,11)^e(C,25)},b.g0_256=function p(C){return e(C,7)^e(C,18)^C>>>3},b.g1_256=function f(C){return e(C,17)^e(C,19)^C>>>10}},29299:(M,b,n)=>{"use strict";var t=n(32391),e=n(83894);function l(_,w){return!(55296!=(64512&_.charCodeAt(w))||w<0||w+1>=_.length)&&56320==(64512&_.charCodeAt(w+1))}function d(_){return(_>>>24|_>>>8&65280|_<<8&16711680|(255&_)<<24)>>>0}function g(_){return 1===_.length?"0"+_:_}function p(_){return 7===_.length?"0"+_:6===_.length?"00"+_:5===_.length?"000"+_:4===_.length?"0000"+_:3===_.length?"00000"+_:2===_.length?"000000"+_:1===_.length?"0000000"+_:_}b.inherits=e,b.toArray=function h(_,w){if(Array.isArray(_))return _.slice();if(!_)return[];var E=[];if("string"==typeof _)if(w){if("hex"===w)for((_=_.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(_="0"+_),j=0;j<_.length;j+=2)E.push(parseInt(_[j]+_[j+1],16))}else for(var x=0,j=0;j<_.length;j++){var $=_.charCodeAt(j);$<128?E[x++]=$:$<2048?(E[x++]=$>>6|192,E[x++]=63&$|128):l(_,j)?($=65536+((1023&$)<<10)+(1023&_.charCodeAt(++j)),E[x++]=$>>18|240,E[x++]=$>>12&63|128,E[x++]=$>>6&63|128,E[x++]=63&$|128):(E[x++]=$>>12|224,E[x++]=$>>6&63|128,E[x++]=63&$|128)}else for(j=0;j<_.length;j++)E[j]=0|_[j];return E},b.toHex=function r(_){for(var w="",E=0;E<_.length;E++)w+=g(_[E].toString(16));return w},b.htonl=d,b.toHex32=function y(_,w){for(var E="",x=0;x<_.length;x++){var j=_[x];"little"===w&&(j=d(j)),E+=p(j.toString(16))}return E},b.zero2=g,b.zero8=p,b.join32=function f(_,w,E,x){var j=E-w;t(j%4==0);for(var $=new Array(j/4),Y=0,u=w;Y<$.length;Y++,u+=4)$[Y]=("big"===x?_[u]<<24|_[u+1]<<16|_[u+2]<<8|_[u+3]:_[u+3]<<24|_[u+2]<<16|_[u+1]<<8|_[u])>>>0;return $},b.split32=function C(_,w){for(var E=new Array(4*_.length),x=0,j=0;x<_.length;x++,j+=4){var $=_[x];"big"===w?(E[j]=$>>>24,E[j+1]=$>>>16&255,E[j+2]=$>>>8&255,E[j+3]=255&$):(E[j+3]=$>>>24,E[j+2]=$>>>16&255,E[j+1]=$>>>8&255,E[j]=255&$)}return E},b.rotr32=function N(_,w){return _>>>w|_<<32-w},b.rotl32=function a(_,w){return _<<w|_>>>32-w},b.sum32=function O(_,w){return _+w>>>0},b.sum32_3=function H(_,w,E){return _+w+E>>>0},b.sum32_4=function F(_,w,E,x){return _+w+E+x>>>0},b.sum32_5=function V(_,w,E,x,j){return _+w+E+x+j>>>0},b.sum64=function D(_,w,E,x){var Y=x+_[w+1]>>>0;_[w]=(Y<x?1:0)+E+_[w]>>>0,_[w+1]=Y},b.sum64_hi=function U(_,w,E,x){return(w+x>>>0<w?1:0)+_+E>>>0},b.sum64_lo=function q(_,w,E,x){return w+x>>>0},b.sum64_4_hi=function J(_,w,E,x,j,$,Y,u){var W=0,fe=w;return W+=(fe=fe+x>>>0)<w?1:0,W+=(fe=fe+$>>>0)<$?1:0,_+E+j+Y+(W+=(fe=fe+u>>>0)<u?1:0)>>>0},b.sum64_4_lo=function G(_,w,E,x,j,$,Y,u){return w+x+$+u>>>0},b.sum64_5_hi=function ie(_,w,E,x,j,$,Y,u,W,fe){var ae=0,ye=w;return ae+=(ye=ye+x>>>0)<w?1:0,ae+=(ye=ye+$>>>0)<$?1:0,ae+=(ye=ye+u>>>0)<u?1:0,_+E+j+Y+W+(ae+=(ye=ye+fe>>>0)<fe?1:0)>>>0},b.sum64_5_lo=function K(_,w,E,x,j,$,Y,u,W,fe){return w+x+$+u+fe>>>0},b.rotr64_hi=function re(_,w,E){return(w<<32-E|_>>>E)>>>0},b.rotr64_lo=function oe(_,w,E){return(_<<32-E|w>>>E)>>>0},b.shr64_hi=function B(_,w,E){return _>>>E},b.shr64_lo=function s(_,w,E){return(_<<32-E|w>>>E)>>>0}},52438:(M,b,n)=>{"use strict";var t=n(37084),e=n(58195),l=n(32391);function h(r){if(!(this instanceof h))return new h(r);this.hash=r.hash,this.predResist=!!r.predResist,this.outLen=this.hash.outSize,this.minEntropy=r.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var d=e.toArray(r.entropy,r.entropyEnc||"hex"),y=e.toArray(r.nonce,r.nonceEnc||"hex"),g=e.toArray(r.pers,r.persEnc||"hex");l(d.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(d,y,g)}M.exports=h,h.prototype._init=function(d,y,g){var p=d.concat(y).concat(g);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var f=0;f<this.V.length;f++)this.K[f]=0,this.V[f]=1;this._update(p),this._reseed=1,this.reseedInterval=281474976710656},h.prototype._hmac=function(){return new t.hmac(this.hash,this.K)},h.prototype._update=function(d){var y=this._hmac().update(this.V).update([0]);d&&(y=y.update(d)),this.K=y.digest(),this.V=this._hmac().update(this.V).digest(),d&&(this.K=this._hmac().update(this.V).update([1]).update(d).digest(),this.V=this._hmac().update(this.V).digest())},h.prototype.reseed=function(d,y,g,p){"string"!=typeof y&&(p=g,g=y,y=null),d=e.toArray(d,y),g=e.toArray(g,p),l(d.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(d.concat(g||[])),this._reseed=1},h.prototype.generate=function(d,y,g,p){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof y&&(p=g,g=y,y=null),g&&(g=e.toArray(g,p||"hex"),this._update(g));for(var f=[];f.length<d;)this.V=this._hmac().update(this.V).digest(),f=f.concat(this.V);var C=f.slice(0,d);return this._update(g),this._reseed++,e.encode(C,y)}},42666:(M,b,n)=>{"use strict";n.d(b,{SE:()=>Ct});var t=n(49671);function e(xt,tr){if(xt.match(/^[a-z]+:\/\//i))return xt;if(xt.match(/^\/\//))return window.location.protocol+xt;if(xt.match(/^[a-z]+:/i))return xt;const Rr=document.implementation.createHTMLDocument(),Ur=Rr.createElement("base"),Nr=Rr.createElement("a");return Rr.head.appendChild(Ur),Rr.body.appendChild(Nr),tr&&(Ur.href=tr),Nr.href=xt,Nr.href}const l=(()=>{let xt=0;return()=>(xt+=1,`u${`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4)}${xt}`)})();function r(xt){const tr=[];for(let Rr=0,Ur=xt.length;Rr<Ur;Rr++)tr.push(xt[Rr]);return tr}function d(xt,tr){const Ur=(xt.ownerDocument.defaultView||window).getComputedStyle(xt).getPropertyValue(tr);return Ur?parseFloat(Ur.replace("px","")):0}function p(xt,tr={}){const Rr=tr.width||function y(xt){const tr=d(xt,"border-left-width"),Rr=d(xt,"border-right-width");return xt.clientWidth+tr+Rr}(xt),Ur=tr.height||function g(xt){const tr=d(xt,"border-top-width"),Rr=d(xt,"border-bottom-width");return xt.clientHeight+tr+Rr}(xt);return{width:Rr,height:Ur}}function f(){let xt,tr;try{tr=process}catch{}const Rr=tr&&tr.env?tr.env.devicePixelRatio:null;return Rr&&(xt=parseInt(Rr,10),Number.isNaN(xt)&&(xt=1)),xt||window.devicePixelRatio||1}const C=16384;function N(xt){(xt.width>C||xt.height>C)&&(xt.width>C&&xt.height>C?xt.width>xt.height?(xt.height*=C/xt.width,xt.width=C):(xt.width*=C/xt.height,xt.height=C):xt.width>C?(xt.height*=C/xt.width,xt.width=C):(xt.width*=C/xt.height,xt.height=C))}function a(xt,tr={}){return new Promise(xt.toBlob?Rr=>{xt.toBlob(Rr,tr.type?tr.type:"image/png",tr.quality?tr.quality:1)}:Rr=>{const Ur=window.atob(xt.toDataURL(tr.type?tr.type:void 0,tr.quality?tr.quality:void 0).split(",")[1]),Nr=Ur.length,zr=new Uint8Array(Nr);for(let hn=0;hn<Nr;hn+=1)zr[hn]=Ur.charCodeAt(hn);Rr(new Blob([zr],{type:tr.type?tr.type:"image/png"}))})}function O(xt){return new Promise((tr,Rr)=>{const Ur=new Image;Ur.decode=()=>tr(Ur),Ur.onload=()=>tr(Ur),Ur.onerror=Rr,Ur.crossOrigin="anonymous",Ur.decoding="async",Ur.src=xt})}function H(xt){return F.apply(this,arguments)}function F(){return(F=(0,t.Z)(function*(xt){return Promise.resolve().then(()=>(new XMLSerializer).serializeToString(xt)).then(encodeURIComponent).then(tr=>`data:image/svg+xml;charset=utf-8,${tr}`)})).apply(this,arguments)}function V(xt,tr,Rr){return D.apply(this,arguments)}function D(){return(D=(0,t.Z)(function*(xt,tr,Rr){const Ur="http://www.w3.org/2000/svg",Nr=document.createElementNS(Ur,"svg"),zr=document.createElementNS(Ur,"foreignObject");return Nr.setAttribute("width",`${tr}`),Nr.setAttribute("height",`${Rr}`),Nr.setAttribute("viewBox",`0 0 ${tr} ${Rr}`),zr.setAttribute("width","100%"),zr.setAttribute("height","100%"),zr.setAttribute("x","0"),zr.setAttribute("y","0"),zr.setAttribute("externalResourcesRequired","true"),Nr.appendChild(zr),zr.appendChild(xt),H(Nr)})).apply(this,arguments)}const U=(xt,tr)=>{if(xt instanceof tr)return!0;const Rr=Object.getPrototypeOf(xt);return null!==Rr&&(Rr.constructor.name===tr.name||U(Rr,tr))};function ie(xt,tr,Rr){const Ur=window.getComputedStyle(xt,Rr),Nr=Ur.getPropertyValue("content");if(""===Nr||"none"===Nr)return;const zr=l();try{tr.className=`${tr.className} ${zr}`}catch{return}const hn=document.createElement("style");hn.appendChild(function G(xt,tr,Rr){const Ur=`.${xt}:${tr}`,Nr=Rr.cssText?function q(xt){const tr=xt.getPropertyValue("content");return`${xt.cssText} content: '${tr.replace(/'|"/g,"")}';`}(Rr):function J(xt){return r(xt).map(tr=>`${tr}: ${xt.getPropertyValue(tr)}${xt.getPropertyPriority(tr)?" !important":""};`).join(" ")}(Rr);return document.createTextNode(`${Ur}{${Nr}}`)}(zr,Rr,Ur)),tr.appendChild(hn)}const re="application/font-woff",oe="image/jpeg",B={woff:re,woff2:re,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:oe,jpeg:oe,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function _(xt){const tr=function s(xt){const tr=/\.([^./]*?)$/g.exec(xt);return tr?tr[1]:""}(xt).toLowerCase();return B[tr]||""}function w(xt){return xt.split(/,/)[1]}function E(xt){return-1!==xt.search(/^(data:)/)}function x(xt,tr){return`data:${tr};base64,${xt}`}function j(xt,tr,Rr){return $.apply(this,arguments)}function $(){return($=(0,t.Z)(function*(xt,tr,Rr){const Ur=yield fetch(xt,tr);if(404===Ur.status)throw new Error(`Resource "${Ur.url}" not found`);const Nr=yield Ur.blob();return new Promise((zr,hn)=>{const _n=new FileReader;_n.onerror=hn,_n.onloadend=()=>{try{zr(Rr({res:Ur,result:_n.result}))}catch(Tn){hn(Tn)}},_n.readAsDataURL(Nr)})})).apply(this,arguments)}const Y={};function u(xt,tr,Rr){let Ur=xt.replace(/\?.*/,"");return Rr&&(Ur=xt),/ttf|otf|eot|woff2?/i.test(Ur)&&(Ur=Ur.replace(/.*\//,"")),tr?`[${tr}]${Ur}`:Ur}function W(xt,tr,Rr){return fe.apply(this,arguments)}function fe(){return(fe=(0,t.Z)(function*(xt,tr,Rr){const Ur=u(xt,tr,Rr.includeQueryParams);if(null!=Y[Ur])return Y[Ur];let Nr;Rr.cacheBust&&(xt+=(/\?/.test(xt)?"&":"?")+(new Date).getTime());try{Nr=x(yield j(xt,Rr.fetchRequestInit,({res:hn,result:_n})=>(tr||(tr=hn.headers.get("Content-Type")||""),w(_n))),tr)}catch(zr){Nr=Rr.imagePlaceholder||"";let hn=`Failed to fetch resource: ${xt}`;zr&&(hn="string"==typeof zr?zr:zr.message),hn&&console.warn(hn)}return Y[Ur]=Nr,Nr})).apply(this,arguments)}function ae(xt){return ye.apply(this,arguments)}function ye(){return(ye=(0,t.Z)(function*(xt){const tr=xt.toDataURL();return"data:,"===tr?xt.cloneNode(!1):O(tr)})).apply(this,arguments)}function Qe(xt,tr){return Ot.apply(this,arguments)}function Ot(){return(Ot=(0,t.Z)(function*(xt,tr){if(xt.currentSrc){const zr=document.createElement("canvas"),hn=zr.getContext("2d");return zr.width=xt.clientWidth,zr.height=xt.clientHeight,null==hn||hn.drawImage(xt,0,0,zr.width,zr.height),O(zr.toDataURL())}const Rr=xt.poster,Ur=_(Rr);return O(yield W(Rr,Ur,tr))})).apply(this,arguments)}function At(xt){return Ze.apply(this,arguments)}function Ze(){return(Ze=(0,t.Z)(function*(xt){var tr;try{if(null===(tr=null==xt?void 0:xt.contentDocument)||void 0===tr?void 0:tr.body)return yield br(xt.contentDocument.body,{},!0)}catch{}return xt.cloneNode(!1)})).apply(this,arguments)}function at(xt,tr){return Be.apply(this,arguments)}function Be(){return(Be=(0,t.Z)(function*(xt,tr){return U(xt,HTMLCanvasElement)?ae(xt):U(xt,HTMLVideoElement)?Qe(xt,tr):U(xt,HTMLIFrameElement)?At(xt):xt.cloneNode(!1)})).apply(this,arguments)}const Lt=xt=>null!=xt.tagName&&"SLOT"===xt.tagName.toUpperCase();function _e(xt,tr,Rr){return ne.apply(this,arguments)}function ne(){return(ne=(0,t.Z)(function*(xt,tr,Rr){var Ur,Nr;let zr=[];return zr=Lt(xt)&&xt.assignedNodes?r(xt.assignedNodes()):U(xt,HTMLIFrameElement)&&(null===(Ur=xt.contentDocument)||void 0===Ur?void 0:Ur.body)?r(xt.contentDocument.body.childNodes):r((null!==(Nr=xt.shadowRoot)&&void 0!==Nr?Nr:xt).childNodes),0===zr.length||U(xt,HTMLVideoElement)||(yield zr.reduce((hn,_n)=>hn.then(()=>br(_n,Rr)).then(Tn=>{Tn&&tr.appendChild(Tn)}),Promise.resolve())),tr})).apply(this,arguments)}function ft(xt,tr){return U(tr,Element)&&(function be(xt,tr){const Rr=tr.style;if(!Rr)return;const Ur=window.getComputedStyle(xt);Ur.cssText?(Rr.cssText=Ur.cssText,Rr.transformOrigin=Ur.transformOrigin):r(Ur).forEach(Nr=>{let zr=Ur.getPropertyValue(Nr);"font-size"===Nr&&zr.endsWith("px")&&(zr=Math.floor(parseFloat(zr.substring(0,zr.length-2)))-.1+"px"),U(xt,HTMLIFrameElement)&&"display"===Nr&&"inline"===zr&&(zr="block"),"d"===Nr&&tr.getAttribute("d")&&(zr=`path(${tr.getAttribute("d")})`),Rr.setProperty(Nr,zr,Ur.getPropertyPriority(Nr))})}(xt,tr),function K(xt,tr){ie(xt,tr,":before"),ie(xt,tr,":after")}(xt,tr),function Te(xt,tr){U(xt,HTMLTextAreaElement)&&(tr.innerHTML=xt.value),U(xt,HTMLInputElement)&&tr.setAttribute("value",xt.value)}(xt,tr),function $e(xt,tr){if(U(xt,HTMLSelectElement)){const Ur=Array.from(tr.children).find(Nr=>xt.value===Nr.getAttribute("value"));Ur&&Ur.setAttribute("selected","")}}(xt,tr)),tr}function Ge(xt,tr){return Ft.apply(this,arguments)}function Ft(){return(Ft=(0,t.Z)(function*(xt,tr){const Rr=xt.querySelectorAll?xt.querySelectorAll("use"):[];if(0===Rr.length)return xt;const Ur={};for(let zr=0;zr<Rr.length;zr++){const _n=Rr[zr].getAttribute("xlink:href");if(_n){const Tn=xt.querySelector(_n),sr=document.querySelector(_n);!Tn&&sr&&!Ur[_n]&&(Ur[_n]=yield br(sr,tr,!0))}}const Nr=Object.values(Ur);if(Nr.length){const zr="http://www.w3.org/1999/xhtml",hn=document.createElementNS(zr,"svg");hn.setAttribute("xmlns",zr),hn.style.position="absolute",hn.style.width="0",hn.style.height="0",hn.style.overflow="hidden",hn.style.display="none";const _n=document.createElementNS(zr,"defs");hn.appendChild(_n);for(let Tn=0;Tn<Nr.length;Tn++)_n.appendChild(Nr[Tn]);xt.appendChild(hn)}return xt})).apply(this,arguments)}function br(xt,tr,Rr){return rt.apply(this,arguments)}function rt(){return(rt=(0,t.Z)(function*(xt,tr,Rr){return Rr||!tr.filter||tr.filter(xt)?Promise.resolve(xt).then(Ur=>at(Ur,tr)).then(Ur=>_e(xt,Ur,tr)).then(Ur=>ft(xt,Ur)).then(Ur=>Ge(Ur,tr)):null})).apply(this,arguments)}const st=/url\((['"]?)([^'"]+?)\1\)/g,Dt=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,ot=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function nt(xt){const tr=xt.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${tr})(['"]?\\))`,"g")}function Yt(xt){const tr=[];return xt.replace(st,(Rr,Ur,Nr)=>(tr.push(Nr),Rr)),tr.filter(Rr=>!E(Rr))}function Ne(xt,tr,Rr,Ur,Nr){return X.apply(this,arguments)}function X(){return(X=(0,t.Z)(function*(xt,tr,Rr,Ur,Nr){try{const zr=Rr?e(tr,Rr):tr,hn=_(tr);let _n;return _n=Nr?x(yield Nr(zr),hn):yield W(zr,hn,Ur),xt.replace(nt(tr),`$1${_n}$3`)}catch{}return xt})).apply(this,arguments)}function ge(xt,{preferredFontFormat:tr}){return tr?xt.replace(ot,Rr=>{for(;;){const[Ur,,Nr]=Dt.exec(Rr)||[];if(!Nr)return"";if(Nr===tr)return`src: ${Ur};`}}):xt}function Me(xt){return-1!==xt.search(st)}function We(xt,tr,Rr){return Re.apply(this,arguments)}function Re(){return(Re=(0,t.Z)(function*(xt,tr,Rr){if(!Me(xt))return xt;const Ur=ge(xt,Rr);return Yt(Ur).reduce((zr,hn)=>zr.then(_n=>Ne(_n,hn,tr,Rr)),Promise.resolve(Ur))})).apply(this,arguments)}function pt(xt,tr,Rr){return Zt.apply(this,arguments)}function Zt(){return(Zt=(0,t.Z)(function*(xt,tr,Rr){var Ur;const Nr=null===(Ur=tr.style)||void 0===Ur?void 0:Ur.getPropertyValue(xt);if(Nr){const zr=yield We(Nr,null,Rr);return tr.style.setProperty(xt,zr,tr.style.getPropertyPriority(xt)),!0}return!1})).apply(this,arguments)}function cr(xt,tr){return wt.apply(this,arguments)}function wt(){return(wt=(0,t.Z)(function*(xt,tr){(yield pt("background",xt,tr))||(yield pt("background-image",xt,tr)),(yield pt("mask",xt,tr))||(yield pt("mask-image",xt,tr))})).apply(this,arguments)}function gt(xt,tr){return Ut.apply(this,arguments)}function Ut(){return(Ut=(0,t.Z)(function*(xt,tr){const Rr=U(xt,HTMLImageElement);if((!Rr||E(xt.src))&&(!U(xt,SVGImageElement)||E(xt.href.baseVal)))return;const Ur=Rr?xt.src:xt.href.baseVal,Nr=yield W(Ur,_(Ur),tr);yield new Promise((zr,hn)=>{xt.onload=zr,xt.onerror=hn;const _n=xt;_n.decode&&(_n.decode=zr),"lazy"===_n.loading&&(_n.loading="eager"),Rr?(xt.srcset="",xt.src=Nr):xt.href.baseVal=Nr})})).apply(this,arguments)}function hr(xt,tr){return Cr.apply(this,arguments)}function Cr(){return(Cr=(0,t.Z)(function*(xt,tr){const Ur=r(xt.childNodes).map(Nr=>Ue(Nr,tr));yield Promise.all(Ur).then(()=>xt)})).apply(this,arguments)}function Ue(xt,tr){return Pt.apply(this,arguments)}function Pt(){return(Pt=(0,t.Z)(function*(xt,tr){U(xt,Element)&&(yield cr(xt,tr),yield gt(xt,tr),yield hr(xt,tr))})).apply(this,arguments)}function He(xt,tr){const{style:Rr}=xt;tr.backgroundColor&&(Rr.backgroundColor=tr.backgroundColor),tr.width&&(Rr.width=`${tr.width}px`),tr.height&&(Rr.height=`${tr.height}px`);const Ur=tr.style;return null!=Ur&&Object.keys(Ur).forEach(Nr=>{Rr[Nr]=Ur[Nr]}),xt}const tt={};function Ke(xt){return kt.apply(this,arguments)}function kt(){return(kt=(0,t.Z)(function*(xt){let tr=tt[xt];return null!=tr||(tr={url:xt,cssText:yield(yield fetch(xt)).text()},tt[xt]=tr),tr})).apply(this,arguments)}function xe(xt,tr){return Fe.apply(this,arguments)}function Fe(){return Fe=(0,t.Z)(function*(xt,tr){let Rr=xt.cssText;const Ur=/url\(["']?([^"')]+)["']?\)/g,zr=(Rr.match(/url\([^)]+\)/g)||[]).map(function(){var hn=(0,t.Z)(function*(_n){let Tn=_n.replace(Ur,"$1");return Tn.startsWith("https://")||(Tn=new URL(Tn,xt.url).href),j(Tn,tr.fetchRequestInit,({result:sr})=>(Rr=Rr.replace(_n,`url(${sr})`),[_n,sr]))});return function(_n){return hn.apply(this,arguments)}}());return Promise.all(zr).then(()=>Rr)}),Fe.apply(this,arguments)}function lt(xt){if(null==xt)return[];const tr=[];let Ur=xt.replace(/(\/\*[\s\S]*?\*\/)/gi,"");const Nr=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const Tn=Nr.exec(Ur);if(null===Tn)break;tr.push(Tn[0])}Ur=Ur.replace(Nr,"");const zr=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,_n=new RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let Tn=zr.exec(Ur);if(null===Tn){if(Tn=_n.exec(Ur),null===Tn)break;zr.lastIndex=_n.lastIndex}else _n.lastIndex=zr.lastIndex;tr.push(Tn[0])}return tr}function St(xt,tr){return qe.apply(this,arguments)}function qe(){return(qe=(0,t.Z)(function*(xt,tr){const Rr=[],Ur=[];return xt.forEach(Nr=>{if("cssRules"in Nr)try{r(Nr.cssRules||[]).forEach((zr,hn)=>{if(zr.type===CSSRule.IMPORT_RULE){let _n=hn+1;const sr=Ke(zr.href).then(fr=>xe(fr,tr)).then(fr=>lt(fr).forEach(Kt=>{try{Nr.insertRule(Kt,Kt.startsWith("@import")?_n+=1:Nr.cssRules.length)}catch(Qr){console.error("Error inserting rule from remote css",{rule:Kt,error:Qr})}})).catch(fr=>{console.error("Error loading remote css",fr.toString())});Ur.push(sr)}})}catch(zr){const hn=xt.find(_n=>null==_n.href)||document.styleSheets[0];null!=Nr.href&&Ur.push(Ke(Nr.href).then(_n=>xe(_n,tr)).then(_n=>lt(_n).forEach(Tn=>{hn.insertRule(Tn,Nr.cssRules.length)})).catch(_n=>{console.error("Error loading remote stylesheet",_n)})),console.error("Error inlining remote css file",zr)}}),Promise.all(Ur).then(()=>(xt.forEach(Nr=>{if("cssRules"in Nr)try{r(Nr.cssRules||[]).forEach(zr=>{Rr.push(zr)})}catch(zr){console.error(`Error while reading CSS rules from ${Nr.href}`,zr)}}),Rr))})).apply(this,arguments)}function ke(xt){return xt.filter(tr=>tr.type===CSSRule.FONT_FACE_RULE).filter(tr=>Me(tr.style.getPropertyValue("src")))}function ct(xt,tr){return vt.apply(this,arguments)}function vt(){return(vt=(0,t.Z)(function*(xt,tr){if(null==xt.ownerDocument)throw new Error("Provided element is not within a Document");const Rr=r(xt.ownerDocument.styleSheets);return ke(yield St(Rr,tr))})).apply(this,arguments)}function $t(xt,tr){return Vr.apply(this,arguments)}function Vr(){return(Vr=(0,t.Z)(function*(xt,tr){const Rr=yield ct(xt,tr);return(yield Promise.all(Rr.map(Nr=>We(Nr.cssText,Nr.parentStyleSheet?Nr.parentStyleSheet.href:null,tr)))).join("\n")})).apply(this,arguments)}function Sr(xt,tr){return Ar.apply(this,arguments)}function Ar(){return(Ar=(0,t.Z)(function*(xt,tr){const Rr=null!=tr.fontEmbedCSS?tr.fontEmbedCSS:tr.skipFonts?null:yield $t(xt,tr);if(Rr){const Ur=document.createElement("style"),Nr=document.createTextNode(Rr);Ur.appendChild(Nr),xt.firstChild?xt.insertBefore(Ur,xt.firstChild):xt.appendChild(Ur)}})).apply(this,arguments)}function Jr(xt){return Fr.apply(this,arguments)}function Fr(){return(Fr=(0,t.Z)(function*(xt,tr={}){const{width:Rr,height:Ur}=p(xt,tr),Nr=yield br(xt,tr,!0);return yield Sr(Nr,tr),yield Ue(Nr,tr),He(Nr,tr),yield V(Nr,Rr,Ur)})).apply(this,arguments)}function Gt(xt){return le.apply(this,arguments)}function le(){return(le=(0,t.Z)(function*(xt,tr={}){const{width:Rr,height:Ur}=p(xt,tr),Nr=yield Jr(xt,tr),zr=yield O(Nr),hn=document.createElement("canvas"),_n=hn.getContext("2d"),Tn=tr.pixelRatio||f(),sr=tr.canvasWidth||Rr,fr=tr.canvasHeight||Ur;return hn.width=sr*Tn,hn.height=fr*Tn,tr.skipAutoScale||N(hn),hn.style.width=`${sr}`,hn.style.height=`${fr}`,tr.backgroundColor&&(_n.fillStyle=tr.backgroundColor,_n.fillRect(0,0,hn.width,hn.height)),_n.drawImage(zr,0,0,hn.width,hn.height),hn})).apply(this,arguments)}function Ct(xt){return zt.apply(this,arguments)}function zt(){return(zt=(0,t.Z)(function*(xt,tr={}){const Rr=yield Gt(xt,tr);return yield a(Rr)})).apply(this,arguments)}},48461:(M,b)=>{b.read=function(n,t,e,l,h){var r,d,y=8*h-l-1,g=(1<<y)-1,p=g>>1,f=-7,C=e?h-1:0,N=e?-1:1,a=n[t+C];for(C+=N,r=a&(1<<-f)-1,a>>=-f,f+=y;f>0;r=256*r+n[t+C],C+=N,f-=8);for(d=r&(1<<-f)-1,r>>=-f,f+=l;f>0;d=256*d+n[t+C],C+=N,f-=8);if(0===r)r=1-p;else{if(r===g)return d?NaN:1/0*(a?-1:1);d+=Math.pow(2,l),r-=p}return(a?-1:1)*d*Math.pow(2,r-l)},b.write=function(n,t,e,l,h,r){var d,y,g,p=8*r-h-1,f=(1<<p)-1,C=f>>1,N=23===h?Math.pow(2,-24)-Math.pow(2,-77):0,a=l?0:r-1,O=l?1:-1,H=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(y=isNaN(t)?1:0,d=f):(d=Math.floor(Math.log(t)/Math.LN2),t*(g=Math.pow(2,-d))<1&&(d--,g*=2),(t+=d+C>=1?N/g:N*Math.pow(2,1-C))*g>=2&&(d++,g/=2),d+C>=f?(y=0,d=f):d+C>=1?(y=(t*g-1)*Math.pow(2,h),d+=C):(y=t*Math.pow(2,C-1)*Math.pow(2,h),d=0));h>=8;n[e+a]=255&y,a+=O,y/=256,h-=8);for(d=d<<h|y,p+=h;p>0;n[e+a]=255&d,a+=O,d/=256,p-=8);n[e+a-O]|=128*H}},83894:M=>{M.exports="function"==typeof Object.create?function(n,t){t&&(n.super_=t,n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:function(n,t){if(t){n.super_=t;var e=function(){};e.prototype=t.prototype,n.prototype=new e,n.prototype.constructor=n}}},99151:M=>{var b=null;typeof WebSocket<"u"?b=WebSocket:typeof MozWebSocket<"u"?b=MozWebSocket:typeof global<"u"?b=global.WebSocket||global.MozWebSocket:typeof window<"u"?b=window.WebSocket||window.MozWebSocket:typeof self<"u"&&(b=self.WebSocket||self.MozWebSocket),M.exports=b},49840:(M,b,n)=>{M.exports=Ot;var t=n(15439);n(56417);var e=/(\[[^\[]*\])|(\\)?j(Mo|MM?M?M?|Do|DDDo|DD?D?D?|w[o|w]?|YYYYY|YYYY|YY|gg(ggg?)?|)|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|SS?S?|X|zz?|ZZ?|.)/g,l=/(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g,h=/\d\d?/,r=/\d{1,3}/,d=/\d{3}/,y=/\d{1,4}/,g=/[+\-]?\d{1,6}/,p=/[0-9]*["a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,f=/Z|[\+\-]\d\d:?\d\d/i,C=/T/i,N=/[\+\-]?\d+(\.\d{1,3})?/,a={jm:"jmonth",jmonths:"jmonth",jy:"jyear",jyears:"jyear"},O={},H="DDD w M D".split(" "),F="M D w".split(" "),D={jM:function(){return this.jMonth()+1},jMMM:function(rt){return this.localeData().jMonthsShort(this,rt)},jMMMM:function(rt){return this.localeData().jMonths(this,rt)},jD:function(){return this.jDate()},jDDD:function(){return this.jDayOfYear()},jw:function(){return this.jWeek()},jYY:function(){return G(this.jYear()%100,2)},jYYYY:function(){return G(this.jYear(),4)},jYYYYY:function(){return G(this.jYear(),5)},jgg:function(){return G(this.jWeekYear()%100,2)},jgggg:function(){return this.jWeekYear()},jggggg:function(){return G(this.jWeekYear(),5)}};function U(rt,st){return function(Dt){return G(rt.call(this,Dt),st)}}function q(rt,st){return function(Dt){return this.localeData().ordinal(rt.call(this,Dt),st)}}function J(rt,st){var Dt;for(Dt in st)st.hasOwnProperty(Dt)&&(rt[Dt]=st[Dt]);return rt}function G(rt,st){for(var Dt=rt+"";Dt.length<st;)Dt="0"+Dt;return Dt}function K(rt){for(var st=0;st<rt.length;st++)(!st||"j"!==rt[st-1]&&rt[st-1]!==rt[st])&&("Y"===rt[st]||"M"===rt[st]||"D"===rt[st]||"g"===rt[st])&&(rt=rt.slice(0,st)+"j"+rt.slice(st));return rt}function oe(rt,st){if(ae(st)&&(rt=function re(rt){switch(rt){case"week":return"jWeek";case"year":return"jYear";case"month":return"jMonth";case"months":return"jMonths";case"monthName":case"monthsShort":return"jMonthsShort"}return rt}(rt)),rt){var Dt=rt.toLowerCase();Dt.startsWith("j")&&(rt=a[Dt]||Dt),"jday"===rt?rt="day":"jd"===rt&&(rt="d")}return rt}function B(rt,st,Dt,ot){var nt=rt._d;rt._d=rt._isUTC?new Date(Date.UTC(st,Dt,ot,nt.getUTCHours(),nt.getUTCMinutes(),nt.getUTCSeconds(),nt.getUTCMilliseconds())):new Date(st,Dt,ot,nt.getHours(),nt.getMinutes(),nt.getSeconds(),nt.getMilliseconds())}function s(rt){function st(){}return st.prototype=rt,new st}function E(rt,st){switch(rt){case"jDDDD":case"DDDD":return d;case"jYYYY":case"YYYY":return y;case"jYYYYY":case"YYYYY":return g;case"jDDD":case"S":case"SS":case"SSS":case"DDD":return r;case"jMMM":case"jMMMM":case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return p;case"jMM":case"jDD":case"jYY":case"jM":case"jD":case"MM":case"DD":case"YY":case"HH":case"hh":case"mm":case"ss":case"M":case"D":case"d":case"H":case"h":case"m":case"s":return h;case"a":case"A":return t.localeData(st._l)._meridiemParse;case"X":return N;case"Z":case"ZZ":return f;case"T":return C;default:return new RegExp(rt.replace("\\",""))}}function x(rt){return null==rt}function j(rt,st,Dt){var ot,nt=Dt._a;switch(rt){case"jM":case"jMM":nt[1]=x(st)?0:~~st-1;break;case"jMMM":case"jMMMM":x(ot=t.localeData(Dt._l).jMonthsParse(st))?Dt._isValid=!1:nt[1]=ot;break;case"jD":case"jDD":case"jDDD":case"jDDDD":x(st)||(nt[2]=~~st);break;case"jYY":nt[0]=~~st+(~~st>47?1300:1400);break;case"jYYYY":case"jYYYYY":nt[0]=~~st}x(st)&&(Dt._isValid=!1)}function fe(rt,st,Dt){var Yt,ot=Dt-st,nt=Dt-rt.day();return nt>ot&&(nt-=7),nt<ot-7&&(nt+=7),Yt=Ot(rt).add(nt,"d"),{week:Math.ceil(Yt.jDayOfYear()/7),year:Yt.jYear()}}function ae(rt){return rt&&1===rt.calSystem||t.justUseJalali&&2!==rt.calSystem}function Qe(rt,st,Dt,ot,nt){"boolean"==typeof Dt&&(nt=nt||ot,ot=Dt,Dt=void 0),t.ISO_8601===st&&(st="YYYY-MM-DDTHH:mm:ss.SSSZ");const Yt=function ye(rt,st,Dt){return t.justUseJalali||st&&1===st.calSystem}(0,this);rt&&"string"==typeof rt&&!st&&Yt&&!t.useGregorianParser&&(rt=rt.replace(/\//g,"-"),/\d{4}\-\d{2}\-\d{2}/.test(rt)?st="jYYYY-jMM-jDD":/\d{4}\-\d{2}\-\d{1}/.test(rt)?st="jYYYY-jMM-jD":/\d{4}\-\d{1}\-\d{1}/.test(rt)?st="jYYYY-jM-jD":/\d{4}\-\d{1}\-\d{2}/.test(rt)?st="jYYYY-jM-jDD":/\d{4}\-W\d{2}\-\d{2}/.test(rt)?st="jYYYY-jW-jDD":/\d{4}\-\d{3}/.test(rt)?st="jYYYY-jDDD":/\d{8}/.test(rt)?st="jYYYYjMMjDD":/\d{4}W\d{2}\d{1}/.test(rt)?st="jYYYYjWWjD":/\d{4}W\d{2}/.test(rt)?st="jYYYYjWW":/\d{4}\d{3}/.test(rt)&&(st="jYYYYjDDD")),st&&Yt&&(st=K(st)),st&&"string"==typeof st&&(st=At(st,t));var X,ge,Me,Ne={_i:rt,_f:st,_l:Dt,_strict:ot,_isUTC:nt},We=rt,Re=st;if(st){if(function ie(rt){return"[object Array]"===Object.prototype.toString.call(rt)}(st))return function u(rt,st){var ot,Yt,Ne,X,ge,Dt=rt._f.length;if(0===Dt)return Qe(new Date(NaN));for(ot=0;ot<Dt;ot+=1)X=0,(Yt=Qe(rt._i,rt._f[ot],rt._l,rt._strict,st)).isValid()&&(X+=Yt._jDiff,Yt._il&&(X+=Yt._il.length),(x(ge)||X<ge)&&(ge=X,Ne=Yt));return Ne}(Ne,nt);X=function Y(rt){var nt,Yt,Ne,st=rt._f.match(e),Dt=rt._i+"",ot=st.length;for(rt._a=[],nt=0;nt<ot;nt+=1)(Ne=(E(Yt=st[nt],rt).exec(Dt)||[])[0])&&(Dt=Dt.slice(Dt.indexOf(Ne)+Ne.length)),D[Yt]&&j(Yt,Ne,rt);return Dt&&(rt._il=Dt),function $(rt){var st,Dt,ot=rt._a[0],nt=rt._a[1],Yt=rt._a[2];if(!(x(ot)&&x(nt)&&x(Yt)))return ot=x(ot)?0:ot,nt=x(nt)?0:nt,((Yt=x(Yt)?1:Yt)<1||Yt>Ot.jDaysInMonth(ot,nt)||nt<0||nt>11)&&(rt._isValid=!1),Dt=at((st=Be(ot,nt,Yt)).gy,st.gm,st.gd),rt._jDiff=0,~~Dt.jy!==ot&&(rt._jDiff+=1),~~Dt.jm!==nt&&(rt._jDiff+=1),~~Dt.jd!==Yt&&(rt._jDiff+=1),[st.gy,st.gm,st.gd]}(rt)}(Ne),function W(rt){var Ne,X,ge,st=rt._i+"",Dt="",ot="",nt=rt._f.match(e),Yt=nt.length;for(Ne=0;Ne<Yt;Ne+=1)(ge=(E(X=nt[Ne],rt).exec(st)||[])[0])&&(st=st.slice(st.indexOf(ge)+ge.length)),D[X]instanceof Function||(ot+=X,ge&&(Dt+=ge));rt._i=Dt,rt._f=ot}(Ne),X&&(st="YYYY-MM-DD-"+Ne._f,rt=G(X[0],4)+"-"+G(X[1]+1,2)+"-"+G(X[2],2)+"-"+Ne._i)}return ge=nt?t.utc(rt,st,Dt,ot):t(rt,st,Dt,ot),(!1===Ne._isValid||rt&&rt._isAMomentObject&&!rt._isValid)&&(ge._isValid=!1),ge._jDiff=Ne._jDiff||0,J(Me=s(Ot.fn),ge),ot&&Me.isValid()&&(Me._isValid=Me.format(Re)===We),rt&&rt.calSystem&&(Me.calSystem=rt.calSystem),Me}function Ot(rt,st,Dt,ot){return Qe(rt,st,Dt,ot,!1)}function At(rt,st){for(var Dt=5,ot=function(nt){return st.localeData().longDateFormat(nt)||nt};Dt>0&&l.test(rt);)Dt-=1,rt=rt.replace(l,ot);return rt}function Ze(rt){var st=rt._d;return rt._isUTC?at(st.getUTCFullYear(),st.getUTCMonth(),st.getUTCDate()):at(st.getFullYear(),st.getMonth(),st.getDate())}function at(rt,st,Dt){var ot=function ne(rt,st,Dt){return"[object Date]"===Object.prototype.toString.call(rt)&&(Dt=rt.getDate(),st=rt.getMonth()+1,rt=rt.getFullYear()),function Ge(rt){var X,st=br(rt).gy,Dt=st-621,ot=$e(Dt);if((X=rt-Ft(st,3,ot.march))>=0){if(X<=185)return{jy:Dt,jm:1+Lt(X,31),jd:_e(X,31)+1};X-=186}else Dt-=1,X+=179,1===ot.leap&&(X+=1);return{jy:Dt,jm:7+Lt(X,30),jd:_e(X,30)+1}}(Ft(rt,st,Dt))}(rt,st+1,Dt);return ot.jm-=1,ot}function Be(rt,st,Dt){var ot=function be(rt,st,Dt){return br(function ft(rt,st,Dt){var ot=$e(rt);return Ft(ot.gy,3,ot.march)+31*(st-1)-Lt(st,7)*(st-7)+Dt-1}(rt,st,Dt))}(rt,st+1,Dt);return ot.gm-=1,ot}function Lt(rt,st){return~~(rt/st)}function _e(rt,st){return rt-~~(rt/st)*st}function Te(rt){return 0===$e(rt).leap}function $e(rt){var Ne,X,ge,We,Re,pt,st=[-61,9,38,199,426,686,756,818,1111,1181,1210,1635,2060,2097,2192,2262,2324,2394,2456,3178],Dt=st.length,ot=rt+621,nt=-14,Yt=st[0];if(rt<Yt||rt>=st[Dt-1])throw new Error("Invalid Jalali year "+rt);for(pt=1;pt<Dt&&(X=(Ne=st[pt])-Yt,!(rt<Ne));pt+=1)nt=nt+8*Lt(X,33)+Lt(_e(X,33),4),Yt=Ne;return nt=nt+8*Lt(Re=rt-Yt,33)+Lt(_e(Re,33)+3,4),4===_e(X,33)&&X-Re==4&&(nt+=1),We=20+nt-(Lt(ot,4)-Lt(3*(Lt(ot,100)+1),4)-150),X-Re<6&&(Re=Re-X+33*Lt(X+4,33)),-1===(ge=_e(_e(Re+1,33)-1,4))&&(ge=4),{leap:ge,gy:ot,march:We}}function Ft(rt,st,Dt){var ot=Lt(1461*(rt+Lt(st-8,6)+100100),4)+Lt(153*_e(st+9,12)+2,5)+Dt-34840408;return ot-Lt(3*Lt(rt+100100+Lt(st-8,6),100),4)+752}function br(rt){var st,Dt,ot,nt;return st=(st=4*rt+139361631)+4*Lt(3*Lt(4*rt+183187720,146097),4)-3908,Dt=5*Lt(_e(st,1461),4)+308,ot=Lt(_e(Dt,153),5)+1,nt=_e(Lt(Dt,153),12)+1,{gy:Lt(st,1461)-100100+Lt(8-nt,6),gm:nt,gd:ot}}!function(){for(var rt;H.length;)rt=H.pop(),D["j"+rt+"o"]=q(D["j"+rt],rt);for(;F.length;)rt=F.pop(),D["j"+rt+rt]=U(D["j"+rt],2);D.jDDDD=U(D.jDDD,3)}(),J(function _(rt){return Object.getPrototypeOf?Object.getPrototypeOf(rt):"".__proto__?rt.__proto__:rt.constructor.prototype}(t.localeData()),{_jMonths:["Farvardin","Ordibehesht","Khordaad","Tir","Mordaad","Shahrivar","Mehr","Aabaan","Aazar","Dey","Bahman","Esfand"],jMonths:function(rt){return rt?this._jMonths[rt.jMonth()]:this._jMonths},_jMonthsShort:["Far","Ord","Kho","Tir","Amo","Sha","Meh","Aab","Aaz","Dey","Bah","Esf"],jMonthsShort:function(rt){return rt?this._jMonthsShort[rt.jMonth()]:this._jMonthsShort},jMonthsParse:function(rt){var st,Dt,ot;for(this._jMonthsParse||(this._jMonthsParse=[]),st=0;st<12;st+=1)if(this._jMonthsParse[st]||(Dt=Ot([2e3,(2+st)%12,25]),ot="^"+this.jMonths(Dt,"")+"|^"+this.jMonthsShort(Dt,""),this._jMonthsParse[st]=new RegExp(ot.replace(".",""),"i")),this._jMonthsParse[st].test(rt))return st}}),J(Ot,t),Ot.fn=s(t.fn),Ot.utc=function(rt,st,Dt,ot){return Qe(rt,st,Dt,ot,!0)},Ot.unix=function(rt){return Qe(1e3*rt)},Ot.fn.format=function(rt){return(rt=rt||Ot.defaultFormat)&&(ae(this)&&(rt=K(rt)),rt=At(rt,this),O[rt]||(O[rt]=function w(rt){var ot,st=rt.match(e),Dt=st.length;for(ot=0;ot<Dt;ot+=1)D[st[ot]]&&(st[ot]=D[st[ot]]);return function(nt){var Yt="";for(ot=0;ot<Dt;ot+=1)Yt+=st[ot]instanceof Function?"["+st[ot].call(nt,rt)+"]":st[ot];return Yt}}(rt)),rt=O[rt](this)),t.fn.format.call(this,rt)},Ot.fn.year=function(rt){return ae(this)?Ot.fn.jYear.call(this,rt):t.fn.year.call(this,rt)},Ot.fn.jYear=function(rt){var st,Dt,ot;return"number"==typeof rt?(Dt=Ze(this),st=Math.min(Dt.jd,Ot.jDaysInMonth(rt,Dt.jm)),B(this,(ot=Be(rt,Dt.jm,st)).gy,ot.gm,ot.gd),t.updateOffset(this),this):Ze(this).jy},Ot.fn.month=function(rt){return ae(this)?Ot.fn.jMonth.call(this,rt):t.fn.month.call(this,rt)},Ot.fn.jMonth=function(rt){var st,Dt,ot;return x(rt)?Ze(this).jm:("string"==typeof rt&&"number"!=typeof(rt=this.localeData().jMonthsParse(rt))||(Dt=Ze(this),st=Math.min(Dt.jd,Ot.jDaysInMonth(Dt.jy,rt)),this.jYear(Dt.jy+Lt(rt,12)),(rt=_e(rt,12))<0&&(rt+=12,this.jYear(this.jYear()-1)),B(this,(ot=Be(this.jYear(),rt,st)).gy,ot.gm,ot.gd),t.updateOffset(this)),this)},Ot.fn.date=function(rt){return ae(this)?Ot.fn.jDate.call(this,rt):t.fn.date.call(this,rt)},Ot.fn.jDate=function(rt){var st,Dt;return"number"==typeof rt?(B(this,(Dt=Be((st=Ze(this)).jy,st.jm,rt)).gy,Dt.gm,Dt.gd),t.updateOffset(this),this):Ze(this).jd},Ot.fn.jDay=function(rt){return"number"==typeof rt?t.fn.day.call(this,rt-1):(t.fn.day.call(this)+1)%7},Ot.fn.diff=function(rt,st,Dt){if(!ae(this))return t.fn.diff.call(this,rt,st,Dt);var ot;switch(st){case"year":ot=nt(this,rt)/12;break;case"month":ot=nt(this,rt);break;case"quarter":ot=nt(this,rt)/3;break;default:ot=t.fn.diff.call(this,rt,st,Dt)}return Dt?ot:ot<0?Math.ceil(ot)||0:Math.floor(ot);function nt(Yt,Ne){if(Yt.date()<Ne.date())return-nt(Ne,Yt);var X=12*(Ne.jYear()-Yt.jYear())+(Ne.jMonth()-Yt.jMonth()),ge=Yt.clone().add(X,"months");return-(X+(Ne-ge<0?(Ne-ge)/(ge-Yt.clone().add(X-1,"months")):(Ne-ge)/(Yt.clone().add(X+1,"months")-ge)))||0}},Ot.fn.dayOfYear=function(rt){return ae(this)?Ot.fn.jDayOfYear.call(this,rt):t.fn.dayOfYear.call(this,rt)},Ot.fn.jDayOfYear=function(rt){var st=Math.round((Ot(this).startOf("day")-Ot(this).startOf("jYear"))/864e5)+1;return x(rt)?st:this.add(rt-st,"d")},Ot.fn.week=function(rt){return ae(this)?Ot.fn.jWeek.call(this,rt):t.fn.week.call(this,rt)},Ot.fn.jWeek=function(rt){var st=fe(this,6,12).week;return x(rt)?st:this.add(7*(rt-st),"d")},Ot.fn.weekYear=function(rt){return ae(this)?Ot.fn.jWeekYear.call(this,rt):t.fn.weekYear.call(this,rt)},Ot.fn.jWeekYear=function(rt){var st=fe(this,6,12).year;return x(rt)?st:this.add(rt-st,"jyear")},Ot.fn.add=function(rt,st){var Dt;return!x(st)&&!isNaN(+st)&&(Dt=rt,rt=st,st=Dt),("jweek"===(st=oe(st,this))||"isoweek"===st)&&(st="week"),"jyear"===st?this.jYear(this.jYear()+rt):"jmonth"===st?this.jMonth(this.jMonth()+rt):t.fn.add.call(this,rt,st),this},Ot.fn.subtract=function(rt,st){var Dt;return!x(st)&&!isNaN(+st)&&(Dt=rt,rt=st,st=Dt),"jyear"===(st=oe(st,this))?this.jYear(this.jYear()-rt):"jmonth"===st?this.jMonth(this.jMonth()-rt):t.fn.subtract.call(this,rt,st),this},Ot.fn.startOf=function(rt){var st=oe(rt,this);return"jweek"===st?this.startOf("day").subtract(this.jDay(),"day"):("jyear"===st&&(this.jMonth(0),st="jmonth"),"jmonth"===st&&(this.jDate(1),st="day"),"day"===st?(this.hours(0),this.minutes(0),this.seconds(0),this.milliseconds(0),this):t.fn.startOf.call(this,rt))},Ot.fn.endOf=function(rt){return void 0===(rt=oe(rt,this))||"milisecond"===rt?this:this.startOf(rt).add(1,rt).subtract(1,"ms")},Ot.fn.isSame=function(rt,st){return"jyear"===(st=oe(st,this))||"jmonth"===st?t.fn.isSame.call(this.clone().startOf(st),rt.clone().startOf(st)):t.fn.isSame.call(this,rt,st)},Ot.fn.isBefore=function(rt,st){return"jyear"===(st=oe(st,this))||"jmonth"===st?t.fn.isBefore.call(this.clone().startOf(st),rt.clone().startOf(st)):t.fn.isBefore.call(this,rt,st)},Ot.fn.isAfter=function(rt,st){return"jyear"===(st=oe(st,this))||"jmonth"===st?t.fn.isAfter.call(this.clone().startOf(st),rt.clone().startOf(st)):t.fn.isAfter.call(this,rt,st)},Ot.fn.clone=function(){return Ot(this)},Ot.fn.doAsJalali=function(){return this.calSystem=1,this},Ot.fn.doAsGregorian=function(){return this.calSystem=2,this},Ot.fn.jYears=Ot.fn.jYear,Ot.fn.jMonths=Ot.fn.jMonth,Ot.fn.jDates=Ot.fn.jDate,Ot.fn.jWeeks=Ot.fn.jWeek,Ot.fn.daysInMonth=function(){return ae(this)?this.jDaysInMonth():t.fn.daysInMonth.call(this)},Ot.fn.jDaysInMonth=function(){var rt=this.jMonth(),st=this.jYear();return rt<6?31:rt<11||Ot.jIsLeapYear(st)?30:29},Ot.fn.isLeapYear=function(){return ae(this)?this.jIsLeapYear():t.fn.isLeapYear.call(this)},Ot.fn.jIsLeapYear=function(){return Te(this.jYear())},Ot.fn.locale=function(rt){return rt&&t.changeCalendarSystemByItsLocale&&("fa"===rt?this.doAsJalali():this.doAsGregorian()),t.fn.locale.call(this,rt)},Ot.locale=function(rt,st){return rt&&t.changeCalendarSystemByItsLocale&&("fa"===rt?this.useJalaliSystemPrimarily(st):this.useJalaliSystemSecondary()),t.locale.call(this,rt)},Ot.from=function(rt,st,Dt){var ot=Ot.locale();Ot.locale(st);var nt=Ot(rt,Dt);return nt.locale(ot),Ot.locale(ot),nt},Ot.bindCalendarSystemAndLocale=function(){t.changeCalendarSystemByItsLocale=!0},Ot.unBindCalendarSystemAndLocale=function(){t.changeCalendarSystemByItsLocale=!1},Ot.useJalaliSystemPrimarily=function(rt){t.justUseJalali=!0;var st=!1;rt&&(st=rt.useGregorianParser),t.useGregorianParser=st},Ot.useJalaliSystemSecondary=function(){t.justUseJalali=!1},Ot.jDaysInMonth=function(rt,st){return rt+=Lt(st,12),(st=_e(st,12))<0&&(st+=12,rt-=1),st<6?31:st<11||Ot.jIsLeapYear(rt)?30:29},Ot.jIsLeapYear=Te,t.updateLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),longDateFormat:{LT:"HH:mm",L:"jYYYY/jMM/jDD",LL:"jD jMMMM jYYYY",LLL:"jD jMMMM jYYYY LT",LLLL:"dddd\u060c jD jMMMM jYYYY LT"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u06cc \u067e\u06cc\u0634 \u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",m:"1 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"1 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"1 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"1 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"1 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},ordinal:"%d\u0645",preparse:function(rt){return rt},postformat:function(rt){return rt},week:{dow:6,doy:12},meridiem:function(rt){return rt<12?"\u0642.\u0638":"\u0628.\u0638"},jMonths:"\u0641\u0631\u0648\u0631\u062f\u06cc\u0646_\u0627\u0631\u062f\u06cc\u0628\u0647\u0634\u062a_\u062e\u0631\u062f\u0627\u062f_\u062a\u06cc\u0631_\u0645\u0631\u062f\u0627\u062f_\u0634\u0647\u0631\u06cc\u0648\u0631_\u0645\u0647\u0631_\u0622\u0628\u0627\u0646_\u0622\u0630\u0631_\u062f\u06cc_\u0628\u0647\u0645\u0646_\u0627\u0633\u0641\u0646\u062f".split("_"),jMonthsShort:"\u0641\u0631\u0648\u0631\u062f\u06cc\u0646_\u0627\u0631\u062f\u06cc\u0628\u0647\u0634\u062a_\u062e\u0631\u062f\u0627\u062f_\u062a\u06cc\u0631_\u0645\u0631\u062f\u0627\u062f_\u0634\u0647\u0631\u06cc\u0648\u0631_\u0645\u0647\u0631_\u0622\u0628\u0627\u0646_\u0622\u0630\u0631_\u062f\u06cc_\u0628\u0647\u0645\u0646_\u0627\u0633\u0641\u0646\u062f".split("_")}),Ot.bindCalendarSystemAndLocale(),t.locale("en"),Ot.jConvert={toJalali:at,toGregorian:Be}},70028:function(M,b){var t,e;e=typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:this,M.exports=function(e){"use strict";var V,l=(e=e||{}).Base64,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=function(w){for(var E={},x=0,j=w.length;x<j;x++)E[w.charAt(x)]=x;return E}(r),y=String.fromCharCode,g=function(w){if(w.length<2)return(E=w.charCodeAt(0))<128?w:E<2048?y(192|E>>>6)+y(128|63&E):y(224|E>>>12&15)+y(128|E>>>6&63)+y(128|63&E);var E=65536+1024*(w.charCodeAt(0)-55296)+(w.charCodeAt(1)-56320);return y(240|E>>>18&7)+y(128|E>>>12&63)+y(128|E>>>6&63)+y(128|63&E)},p=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,f=function(w){return w.replace(p,g)},C=function(w){var E=[0,2,1][w.length%3],x=w.charCodeAt(0)<<16|(w.length>1?w.charCodeAt(1):0)<<8|(w.length>2?w.charCodeAt(2):0);return[r.charAt(x>>>18),r.charAt(x>>>12&63),E>=2?"=":r.charAt(x>>>6&63),E>=1?"=":r.charAt(63&x)].join("")},N=e.btoa&&"function"==typeof e.btoa?function(w){return e.btoa(w)}:function(w){if(w.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return w.replace(/[\s\S]{1,3}/g,C)},a=function(w){return N(f(String(w)))},O=function(w){return w.replace(/[+\/]/g,function(E){return"+"==E?"-":"_"}).replace(/=/g,"")},H=function(w,E){return E?O(a(w)):a(w)};e.Uint8Array&&(V=function(w,E){for(var x="",j=0,$=w.length;j<$;j+=3){var u=w[j+1],W=w[j+2],fe=w[j]<<16|u<<8|W;x+=r.charAt(fe>>>18)+r.charAt(fe>>>12&63)+(typeof u<"u"?r.charAt(fe>>>6&63):"=")+(typeof W<"u"?r.charAt(63&fe):"=")}return E?O(x):x});var B,D=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,U=function(w){switch(w.length){case 4:var x=((7&w.charCodeAt(0))<<18|(63&w.charCodeAt(1))<<12|(63&w.charCodeAt(2))<<6|63&w.charCodeAt(3))-65536;return y(55296+(x>>>10))+y(56320+(1023&x));case 3:return y((15&w.charCodeAt(0))<<12|(63&w.charCodeAt(1))<<6|63&w.charCodeAt(2));default:return y((31&w.charCodeAt(0))<<6|63&w.charCodeAt(1))}},q=function(w){return w.replace(D,U)},J=function(w){var E=w.length,x=E%4,j=(E>0?d[w.charAt(0)]<<18:0)|(E>1?d[w.charAt(1)]<<12:0)|(E>2?d[w.charAt(2)]<<6:0)|(E>3?d[w.charAt(3)]:0),$=[y(j>>>16),y(j>>>8&255),y(255&j)];return $.length-=[0,0,2,1][x],$.join("")},G=e.atob&&"function"==typeof e.atob?function(w){return e.atob(w)}:function(w){return w.replace(/\S{1,4}/g,J)},ie=function(w){return G(String(w).replace(/[^A-Za-z0-9\+\/]/g,""))},re=function(w){return String(w).replace(/[-_]/g,function(E){return"-"==E?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},oe=function(w){return function(w){return q(G(w))}(re(w))};e.Uint8Array&&(B=function(w){return Uint8Array.from(ie(re(w)),function(E){return E.charCodeAt(0)})});if(e.Base64={VERSION:"2.6.4",atob:ie,btoa:N,fromBase64:oe,toBase64:H,utob:f,encode:H,encodeURI:function(w){return H(w,!0)},btou:q,decode:oe,noConflict:function(){var w=e.Base64;return e.Base64=l,w},fromUint8Array:V,toUint8Array:B},"function"==typeof Object.defineProperty){var _=function(w){return{value:w,enumerable:!1,writable:!0,configurable:!0}};e.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",_(function(){return oe(this)})),Object.defineProperty(String.prototype,"toBase64",_(function(w){return H(this,w)})),Object.defineProperty(String.prototype,"toBase64URI",_(function(){return H(this,!0)}))}}return e.Meteor&&(Base64=e.Base64),M.exports?M.exports.Base64=e.Base64:void 0!==(t=function(){return e.Base64}.apply(b,[]))&&(M.exports=t),{Base64:e.Base64}}(e)},44487:function(module,exports,__webpack_require__){var b;typeof navigator<"u"&&(b=function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(b){_useWebWorker=!!b},getWebWorker=function(){return _useWebWorker},setLocationHref=function(b){locationHref=b},getLocationHref=function(){return locationHref};function createTag(M){return document.createElement(M)}function extendPrototype(M,b){var n,e,t=M.length;for(n=0;n<t;n+=1)for(var l in e=M[n].prototype)Object.prototype.hasOwnProperty.call(e,l)&&(b.prototype[l]=e[l])}function getDescriptor(M,b){return Object.getOwnPropertyDescriptor(M,b)}function createProxyFunction(M){function b(){}return b.prototype=M,b}var audioControllerFactory=function(){function M(b){this.audios=[],this.audioFactory=b,this._volume=1,this._isMuted=!1}return M.prototype={addAudio:function(n){this.audios.push(n)},pause:function(){var n,t=this.audios.length;for(n=0;n<t;n+=1)this.audios[n].pause()},resume:function(){var n,t=this.audios.length;for(n=0;n<t;n+=1)this.audios[n].resume()},setRate:function(n){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].setRate(n)},createAudio:function(n){return this.audioFactory?this.audioFactory(n):window.Howl?new window.Howl({src:[n]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(n){this.audioFactory=n},setVolume:function(n){this._volume=n,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var n,t=this.audios.length;for(n=0;n<t;n+=1)this.audios[n].volume(this._volume*(this._isMuted?0:1))}},function(){return new M}}(),createTypedArray=function(){function M(n,t){var h,e=0,l=[];switch(n){case"int16":case"uint8c":h=1;break;default:h=1.1}for(e=0;e<t;e+=1)l.push(h);return l}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function b(n,t){return"float32"===n?new Float32Array(t):"int16"===n?new Int16Array(t):"uint8c"===n?new Uint8ClampedArray(t):M(n,t)}:M}();function createSizedArray(M){return Array.apply(null,{length:M})}function _typeof$6(M){return(_typeof$6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(M)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){return{}}!function(){var b,M=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],n=M.length;for(b=0;b<n;b+=1)BMMath[M[b]]=Math[M[b]]}(),BMMath.random=Math.random,BMMath.abs=function(M){if("object"===_typeof$6(M)&&M.length){var t,n=createSizedArray(M.length),e=M.length;for(t=0;t<e;t+=1)n[t]=Math.abs(M[t]);return n}return Math.abs(M)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(M){_shouldRoundValues=!!M}function bmRnd(M){return _shouldRoundValues?Math.round(M):M}function styleDiv(M){M.style.position="absolute",M.style.top=0,M.style.left=0,M.style.display="block",M.style.transformOrigin="0 0",M.style.webkitTransformOrigin="0 0",M.style.backfaceVisibility="visible",M.style.webkitBackfaceVisibility="visible",M.style.transformStyle="preserve-3d",M.style.webkitTransformStyle="preserve-3d",M.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(M,b,n,t){this.type=M,this.currentTime=b,this.totalTime=n,this.direction=t<0?-1:1}function BMCompleteEvent(M,b){this.type=M,this.direction=b<0?-1:1}function BMCompleteLoopEvent(M,b,n,t){this.type=M,this.currentLoop=n,this.totalLoops=b,this.direction=t<0?-1:1}function BMSegmentStartEvent(M,b,n){this.type=M,this.firstFrame=b,this.totalFrames=n}function BMDestroyEvent(M,b){this.type=M,this.target=b}function BMRenderFrameErrorEvent(M,b){this.type="renderFrameError",this.nativeError=M,this.currentTime=b}function BMConfigErrorEvent(M){this.type="configError",this.nativeError=M}function BMAnimationConfigErrorEvent(M,b){this.type=M,this.nativeError=b}var createElementID=(M=0,function(){return idPrefix$1+"__lottie_element_"+(M+=1)}),M;function HSVtoRGB(M,b,n){var t,e,l,h,r,d,y,g;switch(d=n*(1-b),y=n*(1-(r=6*M-(h=Math.floor(6*M)))*b),g=n*(1-(1-r)*b),h%6){case 0:t=n,e=g,l=d;break;case 1:t=y,e=n,l=d;break;case 2:t=d,e=n,l=g;break;case 3:t=d,e=y,l=n;break;case 4:t=g,e=d,l=n;break;case 5:t=n,e=d,l=y}return[t,e,l]}function RGBtoHSV(M,b,n){var h,t=Math.max(M,b,n),e=Math.min(M,b,n),l=t-e,r=0===t?0:l/t,d=t/255;switch(t){case e:h=0;break;case M:h=b-n+l*(b<n?6:0),h/=6*l;break;case b:h=n-M+2*l,h/=6*l;break;case n:h=M-b+4*l,h/=6*l}return[h,r,d]}function addSaturationToRGB(M,b){var n=RGBtoHSV(255*M[0],255*M[1],255*M[2]);return n[1]+=b,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),HSVtoRGB(n[0],n[1],n[2])}function addBrightnessToRGB(M,b){var n=RGBtoHSV(255*M[0],255*M[1],255*M[2]);return n[2]+=b,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),HSVtoRGB(n[0],n[1],n[2])}function addHueToRGB(M,b){var n=RGBtoHSV(255*M[0],255*M[1],255*M[2]);return n[0]+=b/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),HSVtoRGB(n[0],n[1],n[2])}var rgbToHex=function(){var b,n,M=[];for(b=0;b<256;b+=1)n=b.toString(16),M[b]=1===n.length?"0"+n:n;return function(t,e,l){return t<0&&(t=0),e<0&&(e=0),l<0&&(l=0),"#"+M[t]+M[e]+M[l]}}(),setSubframeEnabled=function(b){subframeEnabled=!!b},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(b){expressionsPlugin=b},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(b){expressionsInterfaces=b},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(b){defaultCurveSegments=b},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(b){idPrefix$1=b},getIdPrefix=function(){return idPrefix$1};function createNS(M){return document.createElementNS(svgNS,M)}function _typeof$5(M){return(_typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(M)}var dataManager=function(){var n,t,M=1,b=[],e={onmessage:function(){},postMessage:function(C){n({data:C})}},l={postMessage:function(C){e.onmessage({data:C})}};function r(){t||((t=function h(f){if(window.Worker&&window.Blob&&getWebWorker()){var C=new Blob(["var _workerSelf = self; self.onmessage = ",f.toString()],{type:"text/javascript"}),N=URL.createObjectURL(C);return new Worker(N)}return n=f,e}(function(C){if(l.dataManager||(l.dataManager=function N(){function O(_,w){var E,x,$,Y,u,W,j=_.length;for(x=0;x<j;x+=1)if("ks"in(E=_[x])&&!E.completed){if(E.completed=!0,E.hasMask){var fe=E.masksProperties;for(Y=fe.length,$=0;$<Y;$+=1)if(fe[$].pt.k.i)U(fe[$].pt.k);else for(W=fe[$].pt.k.length,u=0;u<W;u+=1)fe[$].pt.k[u].s&&U(fe[$].pt.k[u].s[0]),fe[$].pt.k[u].e&&U(fe[$].pt.k[u].e[0])}0===E.ty?(E.layers=V(E.refId,w),O(E.layers,w)):4===E.ty&&D(E.shapes)}}function V(_,w){var E=function F(_,w){for(var E=0,x=w.length;E<x;){if(w[E].id===_)return w[E];E+=1}return null}(_,w);return E?E.layers.__used?JSON.parse(JSON.stringify(E.layers)):(E.layers.__used=!0,E.layers):null}function D(_){var w,x,j;for(w=_.length-1;w>=0;w-=1)if("sh"===_[w].ty)if(_[w].ks.k.i)U(_[w].ks.k);else for(j=_[w].ks.k.length,x=0;x<j;x+=1)_[w].ks.k[x].s&&U(_[w].ks.k[x].s[0]),_[w].ks.k[x].e&&U(_[w].ks.k[x].e[0]);else"gr"===_[w].ty&&D(_[w].it)}function U(_){var w,E=_.i.length;for(w=0;w<E;w+=1)_.i[w][0]+=_.v[w][0],_.i[w][1]+=_.v[w][1],_.o[w][0]+=_.v[w][0],_.o[w][1]+=_.v[w][1]}function q(_,w){var E=w?w.split("."):[100,100,100];return _[0]>E[0]||!(E[0]>_[0])&&(_[1]>E[1]||!(E[1]>_[1])&&(_[2]>E[2]||!(E[2]>_[2])&&null))}var _,J=function(){var _=[4,4,14];function w(x){x.t.d={k:[{s:x.t.d,t:0}]}}function E(x){var j,$=x.length;for(j=0;j<$;j+=1)5===x[j].ty&&w(x[j])}return function(x){if(q(_,x.v)&&(E(x.layers),x.assets)){var j,$=x.assets.length;for(j=0;j<$;j+=1)x.assets[j].layers&&E(x.assets[j].layers)}}}(),G=(_=[4,7,99],function(w){if(w.chars&&!q(_,w.v)){var E,x=w.chars.length;for(E=0;E<x;E+=1){var j=w.chars[E];j.data&&j.data.shapes&&(D(j.data.shapes),j.data.ip=0,j.data.op=99999,j.data.st=0,j.data.sr=1,j.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},w.chars[E].t||(j.data.shapes.push({ty:"no"}),j.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),ie=function(){var _=[5,7,15];function w(x){var j=x.t.p;"number"==typeof j.a&&(j.a={a:0,k:j.a}),"number"==typeof j.p&&(j.p={a:0,k:j.p}),"number"==typeof j.r&&(j.r={a:0,k:j.r})}function E(x){var j,$=x.length;for(j=0;j<$;j+=1)5===x[j].ty&&w(x[j])}return function(x){if(q(_,x.v)&&(E(x.layers),x.assets)){var j,$=x.assets.length;for(j=0;j<$;j+=1)x.assets[j].layers&&E(x.assets[j].layers)}}}(),K=function(){var _=[4,1,9];function w(x){var j,Y,u,$=x.length;for(j=0;j<$;j+=1)if("gr"===x[j].ty)w(x[j].it);else if("fl"===x[j].ty||"st"===x[j].ty)if(x[j].c.k&&x[j].c.k[0].i)for(u=x[j].c.k.length,Y=0;Y<u;Y+=1)x[j].c.k[Y].s&&(x[j].c.k[Y].s[0]/=255,x[j].c.k[Y].s[1]/=255,x[j].c.k[Y].s[2]/=255,x[j].c.k[Y].s[3]/=255),x[j].c.k[Y].e&&(x[j].c.k[Y].e[0]/=255,x[j].c.k[Y].e[1]/=255,x[j].c.k[Y].e[2]/=255,x[j].c.k[Y].e[3]/=255);else x[j].c.k[0]/=255,x[j].c.k[1]/=255,x[j].c.k[2]/=255,x[j].c.k[3]/=255}function E(x){var j,$=x.length;for(j=0;j<$;j+=1)4===x[j].ty&&w(x[j].shapes)}return function(x){if(q(_,x.v)&&(E(x.layers),x.assets)){var j,$=x.assets.length;for(j=0;j<$;j+=1)x.assets[j].layers&&E(x.assets[j].layers)}}}(),re=function(){var _=[4,4,18];function w(x){var j,Y,u;for(j=x.length-1;j>=0;j-=1)if("sh"===x[j].ty)if(x[j].ks.k.i)x[j].ks.k.c=x[j].closed;else for(u=x[j].ks.k.length,Y=0;Y<u;Y+=1)x[j].ks.k[Y].s&&(x[j].ks.k[Y].s[0].c=x[j].closed),x[j].ks.k[Y].e&&(x[j].ks.k[Y].e[0].c=x[j].closed);else"gr"===x[j].ty&&w(x[j].it)}function E(x){var j,$,u,W,fe,ae,Y=x.length;for($=0;$<Y;$+=1){if((j=x[$]).hasMask){var ye=j.masksProperties;for(W=ye.length,u=0;u<W;u+=1)if(ye[u].pt.k.i)ye[u].pt.k.c=ye[u].cl;else for(ae=ye[u].pt.k.length,fe=0;fe<ae;fe+=1)ye[u].pt.k[fe].s&&(ye[u].pt.k[fe].s[0].c=ye[u].cl),ye[u].pt.k[fe].e&&(ye[u].pt.k[fe].e[0].c=ye[u].cl)}4===j.ty&&w(j.shapes)}}return function(x){if(q(_,x.v)&&(E(x.layers),x.assets)){var j,$=x.assets.length;for(j=0;j<$;j+=1)x.assets[j].layers&&E(x.assets[j].layers)}}}(),s={completeData:function oe(_){_.__complete||(K(_),J(_),G(_),ie(_),re(_),O(_.layers,_.assets),function H(_,w){if(_){var E=0,x=_.length;for(E=0;E<x;E+=1)1===_[E].t&&(_[E].data.layers=V(_[E].data.refId,w),O(_[E].data.layers,w))}}(_.chars,_.assets),_.__complete=!0)}};return s.checkColors=K,s.checkChars=G,s.checkPathProperties=ie,s.checkShapes=re,s.completeLayers=O,s}()),l.assetLoader||(l.assetLoader=function(){function O(F){var V=F.getResponseHeader("content-type");return V&&"json"===F.responseType&&-1!==V.indexOf("json")||F.response&&"object"===_typeof$5(F.response)?F.response:F.response&&"string"==typeof F.response?JSON.parse(F.response):F.responseText?JSON.parse(F.responseText):null}return{load:function H(F,V,D,U){var q,J=new XMLHttpRequest;try{J.responseType="json"}catch{}J.onreadystatechange=function(){if(4===J.readyState)if(200===J.status)q=O(J),D(q);else try{q=O(J),D(q)}catch(G){U&&U(G)}};try{J.open(["G","E","T"].join(""),F,!0)}catch{J.open(["G","E","T"].join(""),V+"/"+F,!0)}J.send()}}}()),"loadAnimation"===C.data.type)l.assetLoader.load(C.data.path,C.data.fullPath,function(O){l.dataManager.completeData(O),l.postMessage({id:C.data.id,payload:O,status:"success"})},function(){l.postMessage({id:C.data.id,status:"error"})});else if("complete"===C.data.type){var a=C.data.animation;l.dataManager.completeData(a),l.postMessage({id:C.data.id,payload:a,status:"success"})}else"loadData"===C.data.type&&l.assetLoader.load(C.data.path,C.data.fullPath,function(O){l.postMessage({id:C.data.id,payload:O,status:"success"})},function(){l.postMessage({id:C.data.id,status:"error"})})})).onmessage=function(f){var C=f.data,N=C.id,a=b[N];b[N]=null,"success"===C.status?a.onComplete(C.payload):a.onError&&a.onError()})}function d(f,C){var N="processId_"+(M+=1);return b[N]={onComplete:f,onError:C},N}return{loadAnimation:function y(f,C,N){r();var a=d(C,N);t.postMessage({type:"loadAnimation",path:f,fullPath:window.location.origin+window.location.pathname,id:a})},loadData:function g(f,C,N){r();var a=d(C,N);t.postMessage({type:"loadData",path:f,fullPath:window.location.origin+window.location.pathname,id:a})},completeAnimation:function p(f,C,N){r();var a=d(C,N);t.postMessage({type:"complete",animation:f,id:a})}}}(),ImagePreloader=function(){var M=function(){var H=createTag("canvas");H.width=1,H.height=1;var F=H.getContext("2d");return F.fillStyle="rgba(0,0,0,0)",F.fillRect(0,0,1,1),H}();function b(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function t(H,F,V){var D="";if(H.e)D=H.p;else if(F){var U=H.p;-1!==U.indexOf("images/")&&(U=U.split("/")[1]),D=F+U}else D=V,D+=H.u?H.u:"",D+=H.p;return D}function e(H){var F=0,V=setInterval(function(){(H.getBBox().width||F>500)&&(this._imageLoaded(),clearInterval(V)),F+=1}.bind(this),50)}function r(H){var F={assetData:H},V=t(H,this.assetsPath,this.path);return dataManager.loadData(V,function(D){F.img=D,this._footageLoaded()}.bind(this),function(){F.img={},this._footageLoaded()}.bind(this)),F}function O(){this._imageLoaded=b.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=e.bind(this),this.createFootageData=r.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return O.prototype={loadAssets:function d(H,F){this.imagesLoadedCb=F;var V,D=H.length;for(V=0;V<D;V+=1)H[V].layers||(H[V].t&&"seq"!==H[V].t?3===H[V].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(H[V]))):(this.totalImages+=1,this.images.push(this._createImageData(H[V]))))},setAssetsPath:function g(H){this.assetsPath=H||""},setPath:function y(H){this.path=H||""},loadedImages:function C(){return this.totalImages===this.loadedAssets},loadedFootages:function N(){return this.totalFootages===this.loadedFootagesCount},destroy:function f(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function p(H){for(var F=0,V=this.images.length;F<V;){if(this.images[F].assetData===H)return this.images[F].img;F+=1}return null},createImgData:function h(H){var F=t(H,this.assetsPath,this.path),V=createTag("img");V.crossOrigin="anonymous",V.addEventListener("load",this._imageLoaded,!1),V.addEventListener("error",function(){D.img=M,this._imageLoaded()}.bind(this),!1),V.src=F;var D={img:V,assetData:H};return D},createImageData:function l(H){var F=t(H,this.assetsPath,this.path),V=createNS("image");isSafari?this.testImageLoaded(V):V.addEventListener("load",this._imageLoaded,!1),V.addEventListener("error",function(){D.img=M,this._imageLoaded()}.bind(this),!1),V.setAttributeNS("http://www.w3.org/1999/xlink","href",F),this._elementHelper.append?this._elementHelper.append(V):this._elementHelper.appendChild(V);var D={img:V,assetData:H};return D},imageLoaded:b,footageLoaded:n,setCacheType:function a(H,F){"svg"===H?(this._elementHelper=F,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},O}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(b,n){if(this._cbs[b])for(var t=this._cbs[b],e=0;e<t.length;e+=1)t[e](n)},addEventListener:function(b,n){return this._cbs[b]||(this._cbs[b]=[]),this._cbs[b].push(n),function(){this.removeEventListener(b,n)}.bind(this)},removeEventListener:function(b,n){if(n){if(this._cbs[b]){for(var t=0,e=this._cbs[b].length;t<e;)this._cbs[b][t]===n&&(this._cbs[b].splice(t,1),t-=1,e-=1),t+=1;this._cbs[b].length||(this._cbs[b]=null)}}else this._cbs[b]=null}};var markerParser=function(){function M(b){for(var e,n=b.split("\r\n"),t={},l=0,h=0;h<n.length;h+=1)2===(e=n[h].split(":")).length&&(t[e[0]]=e[1].trim(),l+=1);if(0===l)throw new Error;return t}return function(b){for(var n=[],t=0;t<b.length;t+=1){var e=b[t],l={time:e.tm,duration:e.dr};try{l.payload=JSON.parse(b[t].cm)}catch{try{l.payload=M(b[t].cm)}catch{l.payload={name:b[t].cm}}}n.push(l)}return n}}(),ProjectInterface=function(){function M(b){this.compositions.push(b)}return function(){function b(n){for(var t=0,e=this.compositions.length;t<e;){if(this.compositions[t].data&&this.compositions[t].data.nm===n)return this.compositions[t].prepareFrame&&this.compositions[t].data.xt&&this.compositions[t].prepareFrame(this.currentFrame),this.compositions[t].compInterface;t+=1}return null}return b.compositions=[],b.currentFrame=0,b.registerComposition=M,b}}(),renderers={},registerRenderer=function(b,n){renderers[b]=n};function getRenderer(M){return renderers[M]}function _typeof$4(M){return(_typeof$4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(M)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0)};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(M){(M.wrapper||M.container)&&(this.wrapper=M.wrapper||M.container);var b="svg";M.animType?b=M.animType:M.renderer&&(b=M.renderer);var n=getRenderer(b);this.renderer=new n(this,M.rendererSettings),this.imagePreloader.setCacheType(b,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=b,this.loop=""===M.loop||null==M.loop||!0===M.loop||!1!==M.loop&&parseInt(M.loop,10),this.autoplay=!("autoplay"in M)||M.autoplay,this.name=M.name?M.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(M,"autoloadSegments")||M.autoloadSegments,this.assetsPath=M.assetsPath,this.initialSegment=M.initialSegment,M.audioFactory&&this.audioController.setAudioFactory(M.audioFactory),M.animationData?this.setupAnimation(M.animationData):M.path&&(this.path=-1!==M.path.lastIndexOf("\\")?M.path.substr(0,M.path.lastIndexOf("\\")+1):M.path.substr(0,M.path.lastIndexOf("/")+1),this.fileName=M.path.substr(M.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(M.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(M){dataManager.completeAnimation(M,this.configAnimation)},AnimationItem.prototype.setData=function(M,b){b&&"object"!==_typeof$4(b)&&(b=JSON.parse(b));var n={wrapper:M,animationData:b},t=M.attributes;n.path=t.getNamedItem("data-animation-path")?t.getNamedItem("data-animation-path").value:t.getNamedItem("data-bm-path")?t.getNamedItem("data-bm-path").value:t.getNamedItem("bm-path")?t.getNamedItem("bm-path").value:"",n.animType=t.getNamedItem("data-anim-type")?t.getNamedItem("data-anim-type").value:t.getNamedItem("data-bm-type")?t.getNamedItem("data-bm-type").value:t.getNamedItem("bm-type")?t.getNamedItem("bm-type").value:t.getNamedItem("data-bm-renderer")?t.getNamedItem("data-bm-renderer").value:t.getNamedItem("bm-renderer")?t.getNamedItem("bm-renderer").value:"canvas";var e=t.getNamedItem("data-anim-loop")?t.getNamedItem("data-anim-loop").value:t.getNamedItem("data-bm-loop")?t.getNamedItem("data-bm-loop").value:t.getNamedItem("bm-loop")?t.getNamedItem("bm-loop").value:"";"false"===e?n.loop=!1:"true"===e?n.loop=!0:""!==e&&(n.loop=parseInt(e,10));var l=t.getNamedItem("data-anim-autoplay")?t.getNamedItem("data-anim-autoplay").value:t.getNamedItem("data-bm-autoplay")?t.getNamedItem("data-bm-autoplay").value:!t.getNamedItem("bm-autoplay")||t.getNamedItem("bm-autoplay").value;n.autoplay="false"!==l,n.name=t.getNamedItem("data-name")?t.getNamedItem("data-name").value:t.getNamedItem("data-bm-name")?t.getNamedItem("data-bm-name").value:t.getNamedItem("bm-name")?t.getNamedItem("bm-name").value:"","false"===(t.getNamedItem("data-anim-prerender")?t.getNamedItem("data-anim-prerender").value:t.getNamedItem("data-bm-prerender")?t.getNamedItem("data-bm-prerender").value:t.getNamedItem("bm-prerender")?t.getNamedItem("bm-prerender").value:"")&&(n.prerender=!1),this.setParams(n)},AnimationItem.prototype.includeLayers=function(M){M.op>this.animationData.op&&(this.animationData.op=M.op,this.totalFrames=Math.floor(M.op-this.animationData.ip));var n,l,b=this.animationData.layers,t=b.length,e=M.layers,h=e.length;for(l=0;l<h;l+=1)for(n=0;n<t;){if(b[n].id===e[l].id){b[n]=e[l];break}n+=1}if((M.chars||M.fonts)&&(this.renderer.globalData.fontManager.addChars(M.chars),this.renderer.globalData.fontManager.addFonts(M.fonts,this.renderer.globalData.defs)),M.assets)for(t=M.assets.length,n=0;n<t;n+=1)this.animationData.assets.push(M.assets[n]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(M){this.animationData=M;var b=getExpressionsPlugin();b&&b.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var M=this.animationData.segments;if(!M||0===M.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var b=M.shift();this.timeCompleted=b.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(n,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(M){if(this.renderer)try{this.animationData=M,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(M),M.assets||(M.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(M.assets),this.markers=markerParser(M.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(b){this.triggerConfigError(b)}},AnimationItem.prototype.waitForFontsLoaded=function(){!this.renderer||(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var M=getExpressionsPlugin();M&&M.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(M,b){this.renderer.updateContainerSize("number"==typeof M?M:void 0,"number"==typeof b?b:void 0)},AnimationItem.prototype.setSubframe=function(M){this.isSubframeEnabled=!!M},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(M){this.triggerRenderFrameError(M)}},AnimationItem.prototype.play=function(M){M&&this.name!==M||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(M){M&&this.name!==M||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(M){M&&this.name!==M||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(M){M&&this.name!==M||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(M){for(var b,n=0;n<this.markers.length;n+=1)if((b=this.markers[n]).payload&&b.payload.name===M)return b;return null},AnimationItem.prototype.goToAndStop=function(M,b,n){if(!n||this.name===n){var t=Number(M);if(isNaN(t)){var e=this.getMarkerData(M);e&&this.goToAndStop(e.time,!0)}else this.setCurrentRawFrameValue(b?M:M*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(M,b,n){if(!n||this.name===n){var t=Number(M);if(isNaN(t)){var e=this.getMarkerData(M);e&&(e.duration?this.playSegments([e.time,e.time+e.duration],!0):this.goToAndStop(e.time,!0))}else this.goToAndStop(t,b,n);this.play()}},AnimationItem.prototype.advanceTime=function(M){if(!0!==this.isPaused&&!1!==this.isLoaded){var b=this.currentRawFrame+M*this.frameModifier,n=!1;b>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?b>=this.totalFrames?(this.playCount+=1,this.checkSegments(b%this.totalFrames)||(this.setCurrentRawFrameValue(b%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(b):this.checkSegments(b>this.totalFrames?b%this.totalFrames:0)||(n=!0,b=this.totalFrames-1):b<0?this.checkSegments(b%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(n=!0,b=0):(this.setCurrentRawFrameValue(this.totalFrames+b%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(b),n&&(this.setCurrentRawFrameValue(b),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(M,b){this.playCount=0,M[1]<M[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=M[0]-M[1],this.timeCompleted=this.totalFrames,this.firstFrame=M[1],this.setCurrentRawFrameValue(this.totalFrames-.001-b)):M[1]>M[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=M[1]-M[0],this.timeCompleted=this.totalFrames,this.firstFrame=M[0],this.setCurrentRawFrameValue(.001+b)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(M,b){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<M?n=M:this.currentRawFrame+this.firstFrame>b&&(n=b-M)),this.firstFrame=M,this.totalFrames=b-M,this.timeCompleted=this.totalFrames,-1!==n&&this.goToAndStop(n,!0)},AnimationItem.prototype.playSegments=function(M,b){if(b&&(this.segments.length=0),"object"===_typeof$4(M[0])){var n,t=M.length;for(n=0;n<t;n+=1)this.segments.push(M[n])}else this.segments.push(M);this.segments.length&&b&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(M){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),M&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(M){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),M),!0)},AnimationItem.prototype.destroy=function(M){M&&this.name!==M||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(M){this.currentRawFrame=M,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(M){this.playSpeed=M,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(M){this.playDirection=M<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(M){this.loop=M},AnimationItem.prototype.setVolume=function(M,b){b&&this.name!==b||this.audioController.setVolume(M)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(M){M&&this.name!==M||this.audioController.mute()},AnimationItem.prototype.unmute=function(M){M&&this.name!==M||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(M){var b="";if(M.e)b=M.p;else if(this.assetsPath){var n=M.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),b=this.assetsPath+n}else b=this.path,b+=M.u?M.u:"",b+=M.p;return b},AnimationItem.prototype.getAssetData=function(M){for(var b=0,n=this.assets.length;b<n;){if(M===this.assets[b].id)return this.assets[b];b+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(M){return M?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(M,b,n){try{this.renderer.getElementByPath(M).updateDocumentData(b,n)}catch{}},AnimationItem.prototype.trigger=function(M){if(this._cbs&&this._cbs[M])switch(M){case"enterFrame":this.triggerEvent(M,new BMEnterFrameEvent(M,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(M,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(M,new BMCompleteLoopEvent(M,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(M,new BMCompleteEvent(M,this.frameMult));break;case"segmentStart":this.triggerEvent(M,new BMSegmentStartEvent(M,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(M,new BMDestroyEvent(M,this));break;default:this.triggerEvent(M)}"enterFrame"===M&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(M,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===M&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(M,this.loop,this.playCount,this.frameMult)),"complete"===M&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(M,this.frameMult)),"segmentStart"===M&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(M,this.firstFrame,this.totalFrames)),"destroy"===M&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(M,this))},AnimationItem.prototype.triggerRenderFrameError=function(M){var b=new BMRenderFrameErrorEvent(M,this.currentFrame);this.triggerEvent("error",b),this.onError&&this.onError.call(this,b)},AnimationItem.prototype.triggerConfigError=function(M){var b=new BMConfigErrorEvent(M,this.currentFrame);this.triggerEvent("error",b),this.onError&&this.onError.call(this,b)};var animationManager=function(){var M={},b=[],n=0,t=0,e=0,l=!0,h=!1;function r(w){for(var E=0,x=w.target;E<t;)b[E].animation===x&&(b.splice(E,1),E-=1,t-=1,x.isPaused||p()),E+=1}function d(w,E){if(!w)return null;for(var x=0;x<t;){if(b[x].elem===w&&null!==b[x].elem)return b[x].animation;x+=1}var j=new AnimationItem;return f(j,w),j.setData(w,E),j}function g(){e+=1,K()}function p(){e-=1}function f(w,E){w.addEventListener("destroy",r),w.addEventListener("_active",g),w.addEventListener("_idle",p),b.push({elem:E,animation:w}),t+=1}function H(w){var x,E=w-n;for(x=0;x<t;x+=1)b[x].animation.advanceTime(E);n=w,e&&!h?window.requestAnimationFrame(H):l=!0}function F(w){n=w,window.requestAnimationFrame(H)}function K(){!h&&e&&l&&(window.requestAnimationFrame(F),l=!1)}return M.registerAnimation=d,M.loadAnimation=function C(w){var E=new AnimationItem;return f(E,null),E.setParams(w),E},M.setSpeed=function N(w,E){var x;for(x=0;x<t;x+=1)b[x].animation.setSpeed(w,E)},M.setDirection=function a(w,E){var x;for(x=0;x<t;x+=1)b[x].animation.setDirection(w,E)},M.play=function O(w){var E;for(E=0;E<t;E+=1)b[E].animation.play(w)},M.pause=function V(w){var E;for(E=0;E<t;E+=1)b[E].animation.pause(w)},M.stop=function U(w){var E;for(E=0;E<t;E+=1)b[E].animation.stop(w)},M.togglePause=function q(w){var E;for(E=0;E<t;E+=1)b[E].animation.togglePause(w)},M.searchAnimations=function G(w,E,x){var $,j=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Y=j.length;for($=0;$<Y;$+=1)x&&j[$].setAttribute("data-bm-type",x),d(j[$],w);if(E&&0===Y){x||(x="svg");var u=document.getElementsByTagName("body")[0];u.innerText="";var W=createTag("div");W.style.width="100%",W.style.height="100%",W.setAttribute("data-bm-type",x),u.appendChild(W),d(W,w)}},M.resize=function ie(){var w;for(w=0;w<t;w+=1)b[w].animation.resize()},M.goToAndStop=function D(w,E,x){var j;for(j=0;j<t;j+=1)b[j].animation.goToAndStop(w,E,x)},M.destroy=function J(w){var E;for(E=t-1;E>=0;E-=1)b[E].animation.destroy(w)},M.freeze=function re(){h=!0},M.unfreeze=function oe(){h=!1,K()},M.setVolume=function B(w,E){var x;for(x=0;x<t;x+=1)b[x].animation.setVolume(w,E)},M.mute=function s(w){var E;for(E=0;E<t;E+=1)b[E].animation.mute(w)},M.unmute=function _(w){var E;for(E=0;E<t;E+=1)b[E].animation.unmute(w)},M.getRegisteredAnimations=function y(){var w,E=b.length,x=[];for(w=0;w<E;w+=1)x.push(b[w].animation);return x},M}(),BezierFactory=function(){var M={getBezierEasing:function n(F,V,D,U,q){var J=q||("bez_"+F+"_"+V+"_"+D+"_"+U).replace(/\./g,"p");if(b[J])return b[J];var G=new H([F,V,D,U]);return b[J]=G,G}},b={},d=.1,y="function"==typeof Float32Array;function g(F,V){return 1-3*V+3*F}function p(F,V){return 3*V-6*F}function f(F){return 3*F}function C(F,V,D){return((g(V,D)*F+p(V,D))*F+f(V))*F}function N(F,V,D){return 3*g(V,D)*F*F+2*p(V,D)*F+f(V)}function H(F){this._p=F,this._mSampleValues=y?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return H.prototype={get:function(V){var D=this._p[0],U=this._p[1],q=this._p[2],J=this._p[3];return this._precomputed||this._precompute(),D===U&&q===J?V:0===V?0:1===V?1:C(this._getTForX(V),U,J)},_precompute:function(){var V=this._p[0],D=this._p[1],U=this._p[2],q=this._p[3];this._precomputed=!0,(V!==D||U!==q)&&this._calcSampleValues()},_calcSampleValues:function(){for(var V=this._p[0],D=this._p[2],U=0;U<11;++U)this._mSampleValues[U]=C(U*d,V,D)},_getTForX:function(V){for(var D=this._p[0],U=this._p[2],q=this._mSampleValues,J=0,G=1;10!==G&&q[G]<=V;++G)J+=d;var re=J+(V-q[--G])/(q[G+1]-q[G])*d,oe=N(re,D,U);return oe>=.001?function O(F,V,D,U){for(var q=0;q<4;++q){var J=N(V,D,U);if(0===J)return V;V-=(C(V,D,U)-F)/J}return V}(V,re,D,U):0===oe?re:function a(F,V,D,U,q){var J,G,ie=0;do{(J=C(G=V+(D-V)/2,U,q)-F)>0?D=G:V=G}while(Math.abs(J)>1e-7&&++ie<10);return G}(V,J,J+d,D,U)}},M}(),pooling={double:function M(b){return b.concat(createSizedArray(b.length))}},poolFactory=function(M,b,n){var t=0,e=M,l=createSizedArray(e);return{newElement:function r(){return t?l[t-=1]:b()},release:function d(y){t===e&&(l=pooling.double(l),e*=2),n&&n(y),l[t]=y,t+=1}}},bezierLengthPool=poolFactory(8,function M(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}),segmentsLengthPool=poolFactory(8,function M(){return{lengths:[],totalLength:0}},function b(n){var t,e=n.lengths.length;for(t=0;t<e;t+=1)bezierLengthPool.release(n.lengths[t]);n.lengths.length=0});function bezFunction(){var M=Math;function b(f,C,N,a,O,H){var F=f*a+C*O+N*H-O*a-H*f-N*C;return F>-.001&&F<.001}var t=function(f,C,N,a){var H,F,V,D,U,J,O=getDefaultCurveSegments(),q=0,G=[],ie=[],K=bezierLengthPool.newElement();for(V=N.length,H=0;H<O;H+=1){for(U=H/(O-1),J=0,F=0;F<V;F+=1)D=bmPow(1-U,3)*f[F]+3*bmPow(1-U,2)*U*N[F]+3*(1-U)*bmPow(U,2)*a[F]+bmPow(U,3)*C[F],G[F]=D,null!==ie[F]&&(J+=bmPow(G[F]-ie[F],2)),ie[F]=G[F];J&&(q+=J=bmSqrt(J)),K.percents[H]=U,K.lengths[H]=q}return K.addedLength=q,K};function l(f){this.segmentLength=0,this.points=new Array(f)}function h(f,C){this.partialLength=f,this.point=C}var f,r=(f={},function(C,N,a,O){var H=(C[0]+"_"+C[1]+"_"+N[0]+"_"+N[1]+"_"+a[0]+"_"+a[1]+"_"+O[0]+"_"+O[1]).replace(/\./g,"p");if(!f[H]){var V,D,U,q,J,ie,K,F=getDefaultCurveSegments(),G=0,re=null;2===C.length&&(C[0]!==N[0]||C[1]!==N[1])&&b(C[0],C[1],N[0],N[1],C[0]+a[0],C[1]+a[1])&&b(C[0],C[1],N[0],N[1],N[0]+O[0],N[1]+O[1])&&(F=2);var oe=new l(F);for(U=a.length,V=0;V<F;V+=1){for(K=createSizedArray(U),J=V/(F-1),ie=0,D=0;D<U;D+=1)q=bmPow(1-J,3)*C[D]+3*bmPow(1-J,2)*J*(C[D]+a[D])+3*(1-J)*bmPow(J,2)*(N[D]+O[D])+bmPow(J,3)*N[D],K[D]=q,null!==re&&(ie+=bmPow(K[D]-re[D],2));G+=ie=bmSqrt(ie),oe.points[V]=new h(ie,K),re=K}oe.segmentLength=G,f[H]=oe}return f[H]});function d(f,C){var N=C.percents,a=C.lengths,O=N.length,H=bmFloor((O-1)*f),F=f*C.addedLength,V=0;if(H===O-1||0===H||F===a[H])return N[H];for(var D=a[H]>F?-1:1,U=!0;U;)if(a[H]<=F&&a[H+1]>F?(V=(F-a[H])/(a[H+1]-a[H]),U=!1):H+=D,H<0||H>=O-1){if(H===O-1)return N[H];U=!1}return N[H]+(N[H+1]-N[H])*V}var g=createTypedArray("float32",8);return{getSegmentsLength:function e(f){var F,C=segmentsLengthPool.newElement(),N=f.c,a=f.v,O=f.o,H=f.i,V=f._length,D=C.lengths,U=0;for(F=0;F<V-1;F+=1)D[F]=t(a[F],a[F+1],O[F],H[F+1]),U+=D[F].addedLength;return N&&V&&(D[F]=t(a[F],a[0],O[F],H[0]),U+=D[F].addedLength),C.totalLength=U,C},getNewSegment:function p(f,C,N,a,O,H,F){O<0?O=0:O>1&&(O=1);var U,V=d(O,F),D=d(H=H>1?1:H,F),q=f.length,J=1-V,G=1-D,ie=J*J*J,K=V*J*J*3,re=V*V*J*3,oe=V*V*V,B=J*J*G,s=V*J*G+J*V*G+J*J*D,_=V*V*G+J*V*D+V*J*D,w=V*V*D,E=J*G*G,x=V*G*G+J*D*G+J*G*D,j=V*D*G+J*D*D+V*G*D,$=V*D*D,Y=G*G*G,u=D*G*G+G*D*G+G*G*D,W=D*D*G+G*D*D+D*G*D,fe=D*D*D;for(U=0;U<q;U+=1)g[4*U]=M.round(1e3*(ie*f[U]+K*N[U]+re*a[U]+oe*C[U]))/1e3,g[4*U+1]=M.round(1e3*(B*f[U]+s*N[U]+_*a[U]+w*C[U]))/1e3,g[4*U+2]=M.round(1e3*(E*f[U]+x*N[U]+j*a[U]+$*C[U]))/1e3,g[4*U+3]=M.round(1e3*(Y*f[U]+u*N[U]+W*a[U]+fe*C[U]))/1e3;return g},getPointInSegment:function y(f,C,N,a,O,H){var F=d(O,H),V=1-F;return[M.round(1e3*(V*V*V*f[0]+(F*V*V+V*F*V+V*V*F)*N[0]+(F*F*V+V*F*F+F*V*F)*a[0]+F*F*F*C[0]))/1e3,M.round(1e3*(V*V*V*f[1]+(F*V*V+V*F*V+V*V*F)*N[1]+(F*F*V+V*F*F+F*V*F)*a[1]+F*F*F*C[1]))/1e3]},buildBezierData:r,pointOnLine2D:b,pointOnLine3D:function n(f,C,N,a,O,H,F,V,D){if(0===N&&0===H&&0===D)return b(f,C,a,O,F,V);var G,U=M.sqrt(M.pow(a-f,2)+M.pow(O-C,2)+M.pow(H-N,2)),q=M.sqrt(M.pow(F-f,2)+M.pow(V-C,2)+M.pow(D-N,2)),J=M.sqrt(M.pow(F-a,2)+M.pow(V-O,2)+M.pow(D-H,2));return(G=U>q?U>J?U-q-J:J-q-U:J>q?J-q-U:q-U-J)>-1e-4&&G<1e-4}}}var bez=bezFunction(),PropertyFactory=function(){var M=initialDefaultFrame,b=Math.abs;function n(O,H){var V,F=this.offsetTime;"multidimensional"===this.propType&&(V=createTypedArray("float32",this.pv.length));for(var G,ie,K,D=H.lastIndex,U=D,q=this.keyframes.length-1,J=!0;J;){if(G=this.keyframes[U],ie=this.keyframes[U+1],U===q-1&&O>=ie.t-F){G.h&&(G=ie),D=0;break}if(ie.t-F>O){D=U;break}U<q-1?U+=1:(D=0,J=!1)}K=this.keyframesMetadata[U]||{};var re,oe,B,s,_,w,j,E=ie.t-F,x=G.t-F;if(G.to){K.bezierData||(K.bezierData=bez.buildBezierData(G.s,ie.s||G.e,G.to,G.ti));var $=K.bezierData;if(O>=E||O<x){var Y=O>=E?$.points.length-1:0;for(oe=$.points[Y].point.length,re=0;re<oe;re+=1)V[re]=$.points[Y].point[re]}else{K.__fnct?w=K.__fnct:(w=BezierFactory.getBezierEasing(G.o.x,G.o.y,G.i.x,G.i.y,G.n).get,K.__fnct=w),B=w((O-x)/(E-x));var W,u=$.segmentLength*B,fe=H.lastFrame<O&&H._lastKeyframeIndex===U?H._lastAddedLength:0;for(_=H.lastFrame<O&&H._lastKeyframeIndex===U?H._lastPoint:0,J=!0,s=$.points.length;J;){if(fe+=$.points[_].partialLength,0===u||0===B||_===$.points.length-1){for(oe=$.points[_].point.length,re=0;re<oe;re+=1)V[re]=$.points[_].point[re];break}if(u>=fe&&u<fe+$.points[_+1].partialLength){for(W=(u-fe)/$.points[_+1].partialLength,oe=$.points[_].point.length,re=0;re<oe;re+=1)V[re]=$.points[_].point[re]+($.points[_+1].point[re]-$.points[_].point[re])*W;break}_<s-1?_+=1:J=!1}H._lastPoint=_,H._lastAddedLength=fe-$.points[_].partialLength,H._lastKeyframeIndex=U}}else{var At;if(q=G.s.length,j=ie.s||G.e,this.sh&&1!==G.h)O>=E?(V[0]=j[0],V[1]=j[1],V[2]=j[2]):O<=x?(V[0]=G.s[0],V[1]=G.s[1],V[2]=G.s[2]):function e(O,H){var F=H[0],V=H[1],D=H[2],U=H[3],q=Math.atan2(2*V*U-2*F*D,1-2*V*V-2*D*D),J=Math.asin(2*F*V+2*D*U),G=Math.atan2(2*F*U-2*V*D,1-2*F*F-2*D*D);O[0]=q/degToRads,O[1]=J/degToRads,O[2]=G/degToRads}(V,function t(O,H,F){var oe,B,s,_,w,V=[],D=O[0],U=O[1],q=O[2],J=O[3],G=H[0],ie=H[1],K=H[2],re=H[3];return(B=D*G+U*ie+q*K+J*re)<0&&(B=-B,G=-G,ie=-ie,K=-K,re=-re),1-B>1e-6?(oe=Math.acos(B),s=Math.sin(oe),_=Math.sin((1-F)*oe)/s,w=Math.sin(F*oe)/s):(_=1-F,w=F),V[0]=_*D+w*G,V[1]=_*U+w*ie,V[2]=_*q+w*K,V[3]=_*J+w*re,V}(l(G.s),l(j),(O-x)/(E-x)));else for(U=0;U<q;U+=1)1!==G.h&&(O>=E?B=1:O<x?B=0:(G.o.x.constructor===Array?(K.__fnct||(K.__fnct=[]),K.__fnct[U]?w=K.__fnct[U]:(w=BezierFactory.getBezierEasing(void 0===G.o.x[U]?G.o.x[0]:G.o.x[U],void 0===G.o.y[U]?G.o.y[0]:G.o.y[U],void 0===G.i.x[U]?G.i.x[0]:G.i.x[U],void 0===G.i.y[U]?G.i.y[0]:G.i.y[U]).get,K.__fnct[U]=w)):K.__fnct?w=K.__fnct:(w=BezierFactory.getBezierEasing(G.o.x,G.o.y,G.i.x,G.i.y).get,G.keyframeMetadata=w),B=w((O-x)/(E-x)))),j=ie.s||G.e,At=1===G.h?G.s[U]:G.s[U]+(j[U]-G.s[U])*B,"multidimensional"===this.propType?V[U]=At:V=At}return H.lastIndex=D,V}function l(O){var H=O[0]*degToRads,F=O[1]*degToRads,V=O[2]*degToRads,D=Math.cos(H/2),U=Math.cos(F/2),q=Math.cos(V/2),J=Math.sin(H/2),G=Math.sin(F/2),ie=Math.sin(V/2);return[J*G*q+D*U*ie,J*U*q+D*G*ie,D*G*q-J*U*ie,D*U*q-J*G*ie]}function h(){var O=this.comp.renderedFrame-this.offsetTime,H=this.keyframes[0].t-this.offsetTime,F=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(O===this._caching.lastFrame||this._caching.lastFrame!==M&&(this._caching.lastFrame>=F&&O>=F||this._caching.lastFrame<H&&O<H))){this._caching.lastFrame>=O&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var V=this.interpolateValue(O,this._caching);this.pv=V}return this._caching.lastFrame=O,this.pv}function r(O){var H;if("unidimensional"===this.propType)b(this.v-(H=O*this.mult))>1e-5&&(this.v=H,this._mdf=!0);else for(var F=0,V=this.v.length;F<V;)b(this.v[F]-(H=O[F]*this.mult))>1e-5&&(this.v[F]=H,this._mdf=!0),F+=1}function d(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length){if(this.lock)return void this.setVValue(this.pv);this.lock=!0,this._mdf=this._isFirstFrame;var O,H=this.effectsSequence.length,F=this.kf?this.pv:this.data.k;for(O=0;O<H;O+=1)F=this.effectsSequence[O](F);this.setVValue(F),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function y(O){this.effectsSequence.push(O),this.container.addDynamicProperty(this)}function g(O,H,F,V){this.propType="unidimensional",this.mult=F||1,this.data=H,this.v=F?H.k*F:H.k,this.pv=H.k,this._mdf=!1,this.elem=O,this.container=V,this.comp=O.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=d,this.setVValue=r,this.addEffect=y}function p(O,H,F,V){this.propType="multidimensional",this.mult=F||1,this.data=H,this._mdf=!1,this.elem=O,this.container=V,this.comp=O.comp,this.k=!1,this.kf=!1,this.frameId=-1;var D,U=H.k.length;for(this.v=createTypedArray("float32",U),this.pv=createTypedArray("float32",U),this.vel=createTypedArray("float32",U),D=0;D<U;D+=1)this.v[D]=H.k[D]*this.mult,this.pv[D]=H.k[D];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=d,this.setVValue=r,this.addEffect=y}function f(O,H,F,V){this.propType="unidimensional",this.keyframes=H.k,this.keyframesMetadata=[],this.offsetTime=O.data.st,this.frameId=-1,this._caching={lastFrame:M,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=H,this.mult=F||1,this.elem=O,this.container=V,this.comp=O.comp,this.v=M,this.pv=M,this._isFirstFrame=!0,this.getValue=d,this.setVValue=r,this.interpolateValue=n,this.effectsSequence=[h.bind(this)],this.addEffect=y}function C(O,H,F,V){this.propType="multidimensional";var D,q,J,G,ie,U=H.k.length;for(D=0;D<U-1;D+=1)H.k[D].to&&H.k[D].s&&H.k[D+1]&&H.k[D+1].s&&(J=H.k[D+1].s,G=H.k[D].to,ie=H.k[D].ti,(2===(q=H.k[D].s).length&&!(q[0]===J[0]&&q[1]===J[1])&&bez.pointOnLine2D(q[0],q[1],J[0],J[1],q[0]+G[0],q[1]+G[1])&&bez.pointOnLine2D(q[0],q[1],J[0],J[1],J[0]+ie[0],J[1]+ie[1])||3===q.length&&!(q[0]===J[0]&&q[1]===J[1]&&q[2]===J[2])&&bez.pointOnLine3D(q[0],q[1],q[2],J[0],J[1],J[2],q[0]+G[0],q[1]+G[1],q[2]+G[2])&&bez.pointOnLine3D(q[0],q[1],q[2],J[0],J[1],J[2],J[0]+ie[0],J[1]+ie[1],J[2]+ie[2]))&&(H.k[D].to=null,H.k[D].ti=null),q[0]===J[0]&&q[1]===J[1]&&0===G[0]&&0===G[1]&&0===ie[0]&&0===ie[1]&&(2===q.length||q[2]===J[2]&&0===G[2]&&0===ie[2])&&(H.k[D].to=null,H.k[D].ti=null));this.effectsSequence=[h.bind(this)],this.data=H,this.keyframes=H.k,this.keyframesMetadata=[],this.offsetTime=O.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=F||1,this.elem=O,this.container=V,this.comp=O.comp,this.getValue=d,this.setVValue=r,this.interpolateValue=n,this.frameId=-1;var K=H.k[0].s.length;for(this.v=createTypedArray("float32",K),this.pv=createTypedArray("float32",K),D=0;D<K;D+=1)this.v[D]=M,this.pv[D]=M;this._caching={lastFrame:M,lastIndex:0,value:createTypedArray("float32",K)},this.addEffect=y}return{getProp:function N(O,H,F,V,D){var U;if(H.k.length)if("number"==typeof H.k[0])U=new p(O,H,V,D);else switch(F){case 0:U=new f(O,H,V,D);break;case 1:U=new C(O,H,V,D)}else U=new g(O,H,V,D);return U.effectsSequence.length&&D.addDynamicProperty(U),U}}}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(b){-1===this.dynamicProperties.indexOf(b)&&(this.dynamicProperties.push(b),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var b,n=this.dynamicProperties.length;for(b=0;b<n;b+=1)this.dynamicProperties[b].getValue(),this.dynamicProperties[b]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(b){this.container=b,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,function M(){return createTypedArray("float32",2)});function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(M,b){this.c=M,this.setLength(b);for(var n=0;n<b;)this.v[n]=pointPool.newElement(),this.o[n]=pointPool.newElement(),this.i[n]=pointPool.newElement(),n+=1},ShapePath.prototype.setLength=function(M){for(;this._maxLength<M;)this.doubleArrayLength();this._length=M},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(M,b,n,t,e){var l;switch(this._length=Math.max(this._length,t+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":l=this.v;break;case"i":l=this.i;break;case"o":l=this.o;break;default:l=[]}(!l[t]||l[t]&&!e)&&(l[t]=pointPool.newElement()),l[t][0]=M,l[t][1]=b},ShapePath.prototype.setTripleAt=function(M,b,n,t,e,l,h,r){this.setXYAt(M,b,"v",h,r),this.setXYAt(n,t,"o",h,r),this.setXYAt(e,l,"i",h,r)},ShapePath.prototype.reverse=function(){var M=new ShapePath;M.setPathData(this.c,this._length);var b=this.v,n=this.o,t=this.i,e=0;this.c&&(M.setTripleAt(b[0][0],b[0][1],t[0][0],t[0][1],n[0][0],n[0][1],0,!1),e=1);var r,l=this._length-1,h=this._length;for(r=e;r<h;r+=1)M.setTripleAt(b[l][0],b[l][1],t[l][0],t[l][1],n[l][0],n[l][1],r,!1),l-=1;return M},ShapePath.prototype.length=function(){return this._length};var shapePool=(t=poolFactory(4,function M(){return new ShapePath},function b(e){var h,l=e._length;for(h=0;h<l;h+=1)pointPool.release(e.v[h]),pointPool.release(e.i[h]),pointPool.release(e.o[h]),e.v[h]=null,e.i[h]=null,e.o[h]=null;e._length=0,e.c=!1}),t.clone=function n(e){var h,l=t.newElement(),r=void 0===e._length?e.v.length:e._length;for(l.setLength(r),l.c=e.c,h=0;h<r;h+=1)l.setTripleAt(e.v[h][0],e.v[h][1],e.o[h][0],e.o[h][1],e.i[h][0],e.i[h][1],h);return l},t),t;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(M){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=M,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var M;for(M=0;M<this._length;M+=1)shapePool.release(this.shapes[M]);this._length=0};var shapeCollectionPool=function(){var M={newShapeCollection:function e(){return b?t[b-=1]:new ShapeCollection},release:function l(h){var r,d=h._length;for(r=0;r<d;r+=1)shapePool.release(h.shapes[r]);h._length=0,b===n&&(t=pooling.double(t),n*=2),t[b]=h,b+=1}},b=0,n=4,t=createSizedArray(n);return M}(),ShapePropertyFactory=function(){var M=-999999;function b(H,F,V){var U,q,J,G,ie,K,re,oe,D=V.lastIndex,s=this.keyframes;if(H<s[0].t-this.offsetTime)U=s[0].s[0],J=!0,D=0;else if(H>=s[s.length-1].t-this.offsetTime)U=s[s.length-1].s?s[s.length-1].s[0]:s[s.length-2].e[0],J=!0;else{for(var x,j,$,_=D,w=s.length-1,E=!0;E&&(x=s[_],!((j=s[_+1]).t-this.offsetTime>H));)_<w-1?_+=1:E=!1;if($=this.keyframesMetadata[_]||{},D=_,!(J=1===x.h)){if(H>=j.t-this.offsetTime)oe=1;else if(H<x.t-this.offsetTime)oe=0;else{var Y;$.__fnct?Y=$.__fnct:(Y=BezierFactory.getBezierEasing(x.o.x,x.o.y,x.i.x,x.i.y).get,$.__fnct=Y),oe=Y((H-(x.t-this.offsetTime))/(j.t-this.offsetTime-(x.t-this.offsetTime)))}q=j.s?j.s[0]:x.e[0]}U=x.s[0]}for(K=F._length,re=U.i[0].length,V.lastIndex=D,G=0;G<K;G+=1)for(ie=0;ie<re;ie+=1)F.i[G][ie]=J?U.i[G][ie]:U.i[G][ie]+(q.i[G][ie]-U.i[G][ie])*oe,F.o[G][ie]=J?U.o[G][ie]:U.o[G][ie]+(q.o[G][ie]-U.o[G][ie])*oe,F.v[G][ie]=J?U.v[G][ie]:U.v[G][ie]+(q.v[G][ie]-U.v[G][ie])*oe}function n(){var H=this.comp.renderedFrame-this.offsetTime,F=this.keyframes[0].t-this.offsetTime,V=this.keyframes[this.keyframes.length-1].t-this.offsetTime,D=this._caching.lastFrame;return D!==M&&(D<F&&H<F||D>V&&H>V)||(this._caching.lastIndex=D<H?this._caching.lastIndex:0,this.interpolateShape(H,this.pv,this._caching)),this._caching.lastFrame=H,this.pv}function t(){this.paths=this.localShapeCollection}function l(H){(function e(H,F){if(H._length!==F._length||H.c!==F.c)return!1;var V,D=H._length;for(V=0;V<D;V+=1)if(H.v[V][0]!==F.v[V][0]||H.v[V][1]!==F.v[V][1]||H.o[V][0]!==F.o[V][0]||H.o[V][1]!==F.o[V][1]||H.i[V][0]!==F.i[V][0]||H.i[V][1]!==F.i[V][1])return!1;return!0})(this.v,H)||(this.v=shapePool.clone(H),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function h(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length)return void(this._mdf=!1);if(this.lock)return void this.setVValue(this.pv);var H;this.lock=!0,this._mdf=!1,H=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var F,V=this.effectsSequence.length;for(F=0;F<V;F+=1)H=this.effectsSequence[F](H);this.setVValue(H),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function r(H,F,V){this.propType="shape",this.comp=H.comp,this.container=H,this.elem=H,this.data=F,this.k=!1,this.kf=!1,this._mdf=!1,this.v=shapePool.clone(3===V?F.pt.k:F.ks.k),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=t,this.effectsSequence=[]}function d(H){this.effectsSequence.push(H),this.container.addDynamicProperty(this)}function y(H,F,V){this.propType="shape",this.comp=H.comp,this.elem=H,this.container=H,this.offsetTime=H.data.st,this.keyframes=3===V?F.pt.k:F.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var D=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,D),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=M,this.reset=t,this._caching={lastFrame:M,lastIndex:0},this.effectsSequence=[n.bind(this)]}r.prototype.interpolateShape=b,r.prototype.getValue=h,r.prototype.setVValue=l,r.prototype.addEffect=d,y.prototype.getValue=h,y.prototype.interpolateShape=b,y.prototype.setVValue=l,y.prototype.addEffect=d;var g=function(){var H=roundCorner;function F(V,D){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=D.d,this.elem=V,this.comp=V.comp,this.frameId=-1,this.initDynamicPropertyContainer(V),this.p=PropertyFactory.getProp(V,D.p,1,0,this),this.s=PropertyFactory.getProp(V,D.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return F.prototype={reset:t,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var D=this.p.v[0],U=this.p.v[1],q=this.s.v[0]/2,J=this.s.v[1]/2,G=3!==this.d,ie=this.v;ie.v[0][0]=D,ie.v[0][1]=U-J,ie.v[1][0]=G?D+q:D-q,ie.v[1][1]=U,ie.v[2][0]=D,ie.v[2][1]=U+J,ie.v[3][0]=G?D-q:D+q,ie.v[3][1]=U,ie.i[0][0]=G?D-q*H:D+q*H,ie.i[0][1]=U-J,ie.i[1][0]=G?D+q:D-q,ie.i[1][1]=U-J*H,ie.i[2][0]=G?D+q*H:D-q*H,ie.i[2][1]=U+J,ie.i[3][0]=G?D-q:D+q,ie.i[3][1]=U+J*H,ie.o[0][0]=G?D+q*H:D-q*H,ie.o[0][1]=U-J,ie.o[1][0]=G?D+q:D-q,ie.o[1][1]=U+J*H,ie.o[2][0]=G?D-q*H:D+q*H,ie.o[2][1]=U+J,ie.o[3][0]=G?D-q:D+q,ie.o[3][1]=U-J*H}},extendPrototype([DynamicPropertyContainer],F),F}(),p=function(){function H(F,V){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=F,this.comp=F.comp,this.data=V,this.frameId=-1,this.d=V.d,this.initDynamicPropertyContainer(F),1===V.sy?(this.ir=PropertyFactory.getProp(F,V.ir,0,0,this),this.is=PropertyFactory.getProp(F,V.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(F,V.pt,0,0,this),this.p=PropertyFactory.getProp(F,V.p,1,0,this),this.r=PropertyFactory.getProp(F,V.r,0,degToRads,this),this.or=PropertyFactory.getProp(F,V.or,0,0,this),this.os=PropertyFactory.getProp(F,V.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return H.prototype={reset:t,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var oe,B,s,_,V=2*Math.floor(this.pt.v),D=2*Math.PI/V,U=!0,q=this.or.v,J=this.ir.v,G=this.os.v,ie=this.is.v,K=2*Math.PI*q/(2*V),re=2*Math.PI*J/(2*V),w=-Math.PI/2;w+=this.r.v;var E=3===this.data.d?-1:1;for(this.v._length=0,oe=0;oe<V;oe+=1){s=U?G:ie,_=U?K:re;var x=(B=U?q:J)*Math.cos(w),j=B*Math.sin(w),$=0===x&&0===j?0:j/Math.sqrt(x*x+j*j),Y=0===x&&0===j?0:-x/Math.sqrt(x*x+j*j);this.v.setTripleAt(x+=+this.p.v[0],j+=+this.p.v[1],x-$*_*s*E,j-Y*_*s*E,x+$*_*s*E,j+Y*_*s*E,oe,!0),U=!U,w+=D*E}},convertPolygonToPath:function(){var G,V=Math.floor(this.pt.v),D=2*Math.PI/V,U=this.or.v,q=this.os.v,J=2*Math.PI*U/(4*V),ie=.5*-Math.PI,K=3===this.data.d?-1:1;for(ie+=this.r.v,this.v._length=0,G=0;G<V;G+=1){var re=U*Math.cos(ie),oe=U*Math.sin(ie),B=0===re&&0===oe?0:oe/Math.sqrt(re*re+oe*oe),s=0===re&&0===oe?0:-re/Math.sqrt(re*re+oe*oe);this.v.setTripleAt(re+=+this.p.v[0],oe+=+this.p.v[1],re-B*J*q*K,oe-s*J*q*K,re+B*J*q*K,oe+s*J*q*K,G,!0),ie+=D*K}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],H),H}(),f=function(){function H(F,V){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=F,this.comp=F.comp,this.frameId=-1,this.d=V.d,this.initDynamicPropertyContainer(F),this.p=PropertyFactory.getProp(F,V.p,1,0,this),this.s=PropertyFactory.getProp(F,V.s,1,0,this),this.r=PropertyFactory.getProp(F,V.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return H.prototype={convertRectToPath:function(){var V=this.p.v[0],D=this.p.v[1],U=this.s.v[0]/2,q=this.s.v[1]/2,J=bmMin(U,q,this.r.v),G=J*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(V+U,D-q+J,V+U,D-q+J,V+U,D-q+G,0,!0),this.v.setTripleAt(V+U,D+q-J,V+U,D+q-G,V+U,D+q-J,1,!0),0!==J?(this.v.setTripleAt(V+U-J,D+q,V+U-J,D+q,V+U-G,D+q,2,!0),this.v.setTripleAt(V-U+J,D+q,V-U+G,D+q,V-U+J,D+q,3,!0),this.v.setTripleAt(V-U,D+q-J,V-U,D+q-J,V-U,D+q-G,4,!0),this.v.setTripleAt(V-U,D-q+J,V-U,D-q+G,V-U,D-q+J,5,!0),this.v.setTripleAt(V-U+J,D-q,V-U+J,D-q,V-U+G,D-q,6,!0),this.v.setTripleAt(V+U-J,D-q,V+U-G,D-q,V+U-J,D-q,7,!0)):(this.v.setTripleAt(V-U,D+q,V-U+G,D+q,V-U,D+q,2),this.v.setTripleAt(V-U,D-q,V-U,D-q+G,V-U,D-q,3))):(this.v.setTripleAt(V+U,D-q+J,V+U,D-q+G,V+U,D-q+J,0,!0),0!==J?(this.v.setTripleAt(V+U-J,D-q,V+U-J,D-q,V+U-G,D-q,1,!0),this.v.setTripleAt(V-U+J,D-q,V-U+G,D-q,V-U+J,D-q,2,!0),this.v.setTripleAt(V-U,D-q+J,V-U,D-q+J,V-U,D-q+G,3,!0),this.v.setTripleAt(V-U,D+q-J,V-U,D+q-G,V-U,D+q-J,4,!0),this.v.setTripleAt(V-U+J,D+q,V-U+J,D+q,V-U+G,D+q,5,!0),this.v.setTripleAt(V+U-J,D+q,V+U-G,D+q,V+U-J,D+q,6,!0),this.v.setTripleAt(V+U,D+q-J,V+U,D+q-J,V+U,D+q-G,7,!0)):(this.v.setTripleAt(V-U,D-q,V-U+G,D-q,V-U,D-q,1,!0),this.v.setTripleAt(V-U,D+q,V-U,D+q-G,V-U,D+q,2,!0),this.v.setTripleAt(V+U,D+q,V+U-G,D+q,V+U,D+q,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:t},extendPrototype([DynamicPropertyContainer],H),H}();return{getShapeProp:function C(H,F,V){var D;return 3===V||4===V?D=(3===V?F.pt:F.ks).k.length?new y(H,F,V):new r(H,F,V):5===V?D=new f(H,F):6===V?D=new g(H,F):7===V&&(D=new p(H,F)),D.k&&H.addDynamicProperty(D),D},getConstructorFunction:function N(){return r},getKeyframedConstructorFunction:function a(){return y}}}(),Matrix=function(){var M=Math.cos,b=Math.sin,n=Math.tan,t=Math.round;function e(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function l(E){if(0===E)return this;var x=M(E),j=b(E);return this._t(x,-j,0,0,j,x,0,0,0,0,1,0,0,0,0,1)}function h(E){if(0===E)return this;var x=M(E),j=b(E);return this._t(1,0,0,0,0,x,-j,0,0,j,x,0,0,0,0,1)}function r(E){if(0===E)return this;var x=M(E),j=b(E);return this._t(x,0,j,0,0,1,0,0,-j,0,x,0,0,0,0,1)}function d(E){if(0===E)return this;var x=M(E),j=b(E);return this._t(x,-j,0,0,j,x,0,0,0,0,1,0,0,0,0,1)}function y(E,x){return this._t(1,x,E,1,0,0)}function g(E,x){return this.shear(n(E),n(x))}function p(E,x){var j=M(x),$=b(x);return this._t(j,$,0,0,-$,j,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(E),1,0,0,0,0,1,0,0,0,0,1)._t(j,-$,0,0,$,j,0,0,0,0,1,0,0,0,0,1)}function f(E,x,j){return!j&&0!==j&&(j=1),1===E&&1===x&&1===j?this:this._t(E,0,0,0,0,x,0,0,0,0,j,0,0,0,0,1)}function C(E,x,j,$,Y,u,W,fe,ae,ye,Qe,Ot,At,Ze,at,Be){return this.props[0]=E,this.props[1]=x,this.props[2]=j,this.props[3]=$,this.props[4]=Y,this.props[5]=u,this.props[6]=W,this.props[7]=fe,this.props[8]=ae,this.props[9]=ye,this.props[10]=Qe,this.props[11]=Ot,this.props[12]=At,this.props[13]=Ze,this.props[14]=at,this.props[15]=Be,this}function N(E,x,j){return j=j||0,0!==E||0!==x||0!==j?this._t(1,0,0,0,0,1,0,0,0,0,1,0,E,x,j,1):this}function a(E,x,j,$,Y,u,W,fe,ae,ye,Qe,Ot,At,Ze,at,Be){var Lt=this.props;if(1===E&&0===x&&0===j&&0===$&&0===Y&&1===u&&0===W&&0===fe&&0===ae&&0===ye&&1===Qe&&0===Ot)return Lt[12]=Lt[12]*E+Lt[15]*At,Lt[13]=Lt[13]*u+Lt[15]*Ze,Lt[14]=Lt[14]*Qe+Lt[15]*at,Lt[15]*=Be,this._identityCalculated=!1,this;var _e=Lt[0],ne=Lt[1],be=Lt[2],Te=Lt[3],$e=Lt[4],ft=Lt[5],Ge=Lt[6],Ft=Lt[7],br=Lt[8],rt=Lt[9],st=Lt[10],Dt=Lt[11],ot=Lt[12],nt=Lt[13],Yt=Lt[14],Ne=Lt[15];return Lt[0]=_e*E+ne*Y+be*ae+Te*At,Lt[1]=_e*x+ne*u+be*ye+Te*Ze,Lt[2]=_e*j+ne*W+be*Qe+Te*at,Lt[3]=_e*$+ne*fe+be*Ot+Te*Be,Lt[4]=$e*E+ft*Y+Ge*ae+Ft*At,Lt[5]=$e*x+ft*u+Ge*ye+Ft*Ze,Lt[6]=$e*j+ft*W+Ge*Qe+Ft*at,Lt[7]=$e*$+ft*fe+Ge*Ot+Ft*Be,Lt[8]=br*E+rt*Y+st*ae+Dt*At,Lt[9]=br*x+rt*u+st*ye+Dt*Ze,Lt[10]=br*j+rt*W+st*Qe+Dt*at,Lt[11]=br*$+rt*fe+st*Ot+Dt*Be,Lt[12]=ot*E+nt*Y+Yt*ae+Ne*At,Lt[13]=ot*x+nt*u+Yt*ye+Ne*Ze,Lt[14]=ot*j+nt*W+Yt*Qe+Ne*at,Lt[15]=ot*$+nt*fe+Yt*Ot+Ne*Be,this._identityCalculated=!1,this}function O(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function H(E){for(var x=0;x<16;){if(E.props[x]!==this.props[x])return!1;x+=1}return!0}function F(E){var x;for(x=0;x<16;x+=1)E.props[x]=this.props[x];return E}function V(E){var x;for(x=0;x<16;x+=1)this.props[x]=E[x]}function D(E,x,j){return{x:E*this.props[0]+x*this.props[4]+j*this.props[8]+this.props[12],y:E*this.props[1]+x*this.props[5]+j*this.props[9]+this.props[13],z:E*this.props[2]+x*this.props[6]+j*this.props[10]+this.props[14]}}function U(E,x,j){return E*this.props[0]+x*this.props[4]+j*this.props[8]+this.props[12]}function q(E,x,j){return E*this.props[1]+x*this.props[5]+j*this.props[9]+this.props[13]}function J(E,x,j){return E*this.props[2]+x*this.props[6]+j*this.props[10]+this.props[14]}function G(){var E=this.props[0]*this.props[5]-this.props[1]*this.props[4],x=this.props[5]/E,j=-this.props[1]/E,$=-this.props[4]/E,Y=this.props[0]/E,u=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/E,W=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/E,fe=new Matrix;return fe.props[0]=x,fe.props[1]=j,fe.props[4]=$,fe.props[5]=Y,fe.props[12]=u,fe.props[13]=W,fe}function ie(E){return this.getInverseMatrix().applyToPointArray(E[0],E[1],E[2]||0)}function K(E){var x,j=E.length,$=[];for(x=0;x<j;x+=1)$[x]=ie(E[x]);return $}function re(E,x,j){var $=createTypedArray("float32",6);if(this.isIdentity())$[0]=E[0],$[1]=E[1],$[2]=x[0],$[3]=x[1],$[4]=j[0],$[5]=j[1];else{var Y=this.props[0],u=this.props[1],W=this.props[4],fe=this.props[5],ae=this.props[12],ye=this.props[13];$[0]=E[0]*Y+E[1]*W+ae,$[1]=E[0]*u+E[1]*fe+ye,$[2]=x[0]*Y+x[1]*W+ae,$[3]=x[0]*u+x[1]*fe+ye,$[4]=j[0]*Y+j[1]*W+ae,$[5]=j[0]*u+j[1]*fe+ye}return $}function oe(E,x,j){return this.isIdentity()?[E,x,j]:[E*this.props[0]+x*this.props[4]+j*this.props[8]+this.props[12],E*this.props[1]+x*this.props[5]+j*this.props[9]+this.props[13],E*this.props[2]+x*this.props[6]+j*this.props[10]+this.props[14]]}function B(E,x){if(this.isIdentity())return E+","+x;var j=this.props;return Math.round(100*(E*j[0]+x*j[4]+j[12]))/100+","+Math.round(100*(E*j[1]+x*j[5]+j[13]))/100}function s(){for(var E=0,x=this.props,j="matrix3d(";E<16;)j+=t(1e4*x[E])/1e4,j+=15===E?")":",",E+=1;return j}function _(E){return E<1e-6&&E>0||E>-1e-6&&E<0?t(1e4*E)/1e4:E}function w(){var E=this.props;return"matrix("+_(E[0])+","+_(E[1])+","+_(E[4])+","+_(E[5])+","+_(E[12])+","+_(E[13])+")"}return function(){this.reset=e,this.rotate=l,this.rotateX=h,this.rotateY=r,this.rotateZ=d,this.skew=g,this.skewFromAxis=p,this.shear=y,this.scale=f,this.setTransform=C,this.translate=N,this.transform=a,this.applyToPoint=D,this.applyToX=U,this.applyToY=q,this.applyToZ=J,this.applyToPointArray=oe,this.applyToTriplePoints=re,this.applyToPointStringified=B,this.toCSS=s,this.to2dCSS=w,this.clone=F,this.cloneFromProps=V,this.equals=H,this.inversePoints=K,this.inversePoint=ie,this.getInverseMatrix=G,this._t=this.transform,this.isIdentity=O,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(M){return(_typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(M)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(M){setLocationHref(M)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(M){setSubframeEnabled(M)}function setPrefix(M){setIdPrefix(M)}function loadAnimation(M){return!0===standalone&&(M.animationData=JSON.parse(animationData)),animationManager.loadAnimation(M)}function setQuality(M){if("string"==typeof M)switch(M){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(M)&&M>1&&setDefaultCurveSegments(M);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return typeof navigator<"u"}function installPlugin(M,b){"expressions"===M&&setExpressionsPlugin(b)}function getFactory(M){switch(M){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(M){for(var b=queryString.split("&"),n=0;n<b.length;n+=1){var t=b[n].split("=");if(decodeURIComponent(t[0])==M)return decodeURIComponent(t[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.10.2";var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports)}catch(M){}var ShapeModifiers=function(){var M={},b={};return M.registerModifier=function n(e,l){b[e]||(b[e]=l)},M.getModifier=function t(e,l,h){return new b[e](l,h)},M}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(M){if(!this.closed){M.sh.container.addDynamicProperty(M.sh);var b={shape:M.sh,data:M,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(b),this.addShapeToModifier(b),this._isAnimated&&M.setAsAnimated()}},ShapeModifier.prototype.init=function(M,b){this.shapes=[],this.elem=M,this.initDynamicPropertyContainer(M),this.initModifierProperties(M,b),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(M,b){this.s=PropertyFactory.getProp(M,b.s,0,.01,this),this.e=PropertyFactory.getProp(M,b.e,0,.01,this),this.o=PropertyFactory.getProp(M,b.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=b.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(M){M.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(M,b,n,t,e){var l=[];b<=1?l.push({s:M,e:b}):M>=1?l.push({s:M-1,e:b-1}):(l.push({s:M,e:1}),l.push({s:0,e:b-1}));var r,y,h=[],d=l.length;for(r=0;r<d;r+=1)(y=l[r]).e*e<t||y.s*e>t+n||h.push([y.s*e<=t?0:(y.s*e-t)/n,y.e*e>=t+n?1:(y.e*e-t)/n]);return h.length||h.push([0,0]),h},TrimModifier.prototype.releasePathsData=function(M){var b,n=M.length;for(b=0;b<n;b+=1)segmentsLengthPool.release(M[b]);return M.length=0,M},TrimModifier.prototype.processShapes=function(M){var b,n;if(this._mdf||M){var t=this.o.v%360/360;if(t<0&&(t+=1),(b=this.s.v>1?1+t:this.s.v<0?0+t:this.s.v+t)>(n=this.e.v>1?1+t:this.e.v<0?0+t:this.e.v+t)){var e=b;b=n,n=e}b=1e-4*Math.round(1e4*b),n=1e-4*Math.round(1e4*n),this.sValue=b,this.eValue=n}else b=this.sValue,n=this.eValue;var l,h,d,y,g,p,f,r=this.shapes.length,C=0;if(n===b)for(h=0;h<r;h+=1)this.shapes[h].localShapeCollection.releaseShapes(),this.shapes[h].shape._mdf=!0,this.shapes[h].shape.paths=this.shapes[h].localShapeCollection,this._mdf&&(this.shapes[h].pathsData.length=0);else if(1===n&&0===b||0===n&&1===b){if(this._mdf)for(h=0;h<r;h+=1)this.shapes[h].pathsData.length=0,this.shapes[h].shape._mdf=!0}else{var a,O,N=[];for(h=0;h<r;h+=1)if((a=this.shapes[h]).shape._mdf||this._mdf||M||2===this.m){if(y=(l=a.shape.paths)._length,f=0,!a.shape._mdf&&a.pathsData.length)f=a.totalShapeLength;else{for(g=this.releasePathsData(a.pathsData),d=0;d<y;d+=1)p=bez.getSegmentsLength(l.shapes[d]),g.push(p),f+=p.totalLength;a.totalShapeLength=f,a.pathsData=g}C+=f,a.shape._mdf=!0}else a.shape.paths=a.localShapeCollection;var D,H=b,F=n,V=0;for(h=r-1;h>=0;h-=1)if((a=this.shapes[h]).shape._mdf){for((O=a.localShapeCollection).releaseShapes(),2===this.m&&r>1?(D=this.calculateShapeEdges(b,n,a.totalShapeLength,V,C),V+=a.totalShapeLength):D=[[H,F]],y=D.length,d=0;d<y;d+=1){H=D[d][0],F=D[d][1],N.length=0,F<=1?N.push({s:a.totalShapeLength*H,e:a.totalShapeLength*F}):H>=1?N.push({s:a.totalShapeLength*(H-1),e:a.totalShapeLength*(F-1)}):(N.push({s:a.totalShapeLength*H,e:a.totalShapeLength}),N.push({s:0,e:a.totalShapeLength*(F-1)}));var U=this.addShapes(a,N[0]);if(N[0].s!==N[0].e){if(N.length>1)if(a.shape.paths.shapes[a.shape.paths._length-1].c){var J=U.pop();this.addPaths(U,O),U=this.addShapes(a,N[1],J)}else this.addPaths(U,O),U=this.addShapes(a,N[1]);this.addPaths(U,O)}}a.shape.paths=O}}},TrimModifier.prototype.addPaths=function(M,b){var n,t=M.length;for(n=0;n<t;n+=1)b.addShape(M[n])},TrimModifier.prototype.addSegment=function(M,b,n,t,e,l,h){e.setXYAt(b[0],b[1],"o",l),e.setXYAt(n[0],n[1],"i",l+1),h&&e.setXYAt(M[0],M[1],"v",l),e.setXYAt(t[0],t[1],"v",l+1)},TrimModifier.prototype.addSegmentFromArray=function(M,b,n,t){b.setXYAt(M[1],M[5],"o",n),b.setXYAt(M[2],M[6],"i",n+1),t&&b.setXYAt(M[0],M[4],"v",n),b.setXYAt(M[3],M[7],"v",n+1)},TrimModifier.prototype.addShapes=function(M,b,n){var l,r,d,g,p,f,C,a,t=M.pathsData,e=M.shape.paths.shapes,h=M.shape.paths._length,y=0,N=[],O=!0;for(n?(p=n._length,a=n._length):(n=shapePool.newElement(),p=0,a=0),N.push(n),l=0;l<h;l+=1){for(f=t[l].lengths,n.c=e[l].c,d=e[l].c?f.length:f.length+1,r=1;r<d;r+=1)if(y+(g=f[r-1]).addedLength<b.s)y+=g.addedLength,n.c=!1;else{if(y>b.e){n.c=!1;break}b.s<=y&&b.e>=y+g.addedLength?(this.addSegment(e[l].v[r-1],e[l].o[r-1],e[l].i[r],e[l].v[r],n,p,O),O=!1):(C=bez.getNewSegment(e[l].v[r-1],e[l].v[r],e[l].o[r-1],e[l].i[r],(b.s-y)/g.addedLength,(b.e-y)/g.addedLength,f[r-1]),this.addSegmentFromArray(C,n,p,O),O=!1,n.c=!1),y+=g.addedLength,p+=1}if(e[l].c&&f.length){if(g=f[r-1],y<=b.e){var H=f[r-1].addedLength;b.s<=y&&b.e>=y+H?(this.addSegment(e[l].v[r-1],e[l].o[r-1],e[l].i[0],e[l].v[0],n,p,O),O=!1):(C=bez.getNewSegment(e[l].v[r-1],e[l].v[0],e[l].o[r-1],e[l].i[0],(b.s-y)/H,(b.e-y)/H,f[r-1]),this.addSegmentFromArray(C,n,p,O),O=!1,n.c=!1)}else n.c=!1;y+=g.addedLength,p+=1}if(n._length&&(n.setXYAt(n.v[a][0],n.v[a][1],"i",a),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),y>b.e)break;l<h-1&&(n=shapePool.newElement(),O=!0,N.push(n),p=0)}return N},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(M,b){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(M,b.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(M,b){var n=b/100,t=[0,0],e=M._length,l=0;for(l=0;l<e;l+=1)t[0]+=M.v[l][0],t[1]+=M.v[l][1];t[0]/=e,t[1]/=e;var h=shapePool.newElement();for(h.c=M.c,l=0;l<e;l+=1)h.setTripleAt(M.v[l][0]+(t[0]-M.v[l][0])*n,M.v[l][1]+(t[1]-M.v[l][1])*n,M.o[l][0]+(t[0]-M.o[l][0])*-n,M.o[l][1]+(t[1]-M.o[l][1])*-n,M.i[l][0]+(t[0]-M.i[l][0])*-n,M.i[l][1]+(t[1]-M.i[l][1])*-n,l);return h},PuckerAndBloatModifier.prototype.processShapes=function(M){var b,n,e,l,r,d,t=this.shapes.length,h=this.amount.v;if(0!==h)for(n=0;n<t;n+=1){if(d=(r=this.shapes[n]).localShapeCollection,r.shape._mdf||this._mdf||M)for(d.releaseShapes(),r.shape._mdf=!0,b=r.shape.paths.shapes,l=r.shape.paths._length,e=0;e<l;e+=1)d.addShape(this.processPath(b[e],h));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var M=[0,0];function h(d,y,g){if(this.elem=d,this.frameId=-1,this.propType="transform",this.data=y,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(g||d),y.p&&y.p.s?(this.px=PropertyFactory.getProp(d,y.p.x,0,0,this),this.py=PropertyFactory.getProp(d,y.p.y,0,0,this),y.p.z&&(this.pz=PropertyFactory.getProp(d,y.p.z,0,0,this))):this.p=PropertyFactory.getProp(d,y.p||{k:[0,0,0]},1,0,this),y.rx){if(this.rx=PropertyFactory.getProp(d,y.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(d,y.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(d,y.rz,0,degToRads,this),y.or.k[0].ti){var p,f=y.or.k.length;for(p=0;p<f;p+=1)y.or.k[p].to=null,y.or.k[p].ti=null}this.or=PropertyFactory.getProp(d,y.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(d,y.r||{k:0},0,degToRads,this);y.sk&&(this.sk=PropertyFactory.getProp(d,y.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(d,y.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(d,y.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(d,y.s||{k:[100,100,100]},1,.01,this),this.o=y.o?PropertyFactory.getProp(d,y.o,0,.01,d):{_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return h.prototype={applyToMatrix:function b(d){var y=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||y,this.a&&d.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&d.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&d.skewFromAxis(-this.sk.v,this.sa.v),this.r?d.rotate(-this.r.v):d.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?d.translate(this.px.v,this.py.v,this.data.p.z?-this.pz.v:0):d.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function n(d){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||d){var y;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var g,p;if(y=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(g=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/y,0),p=this.p.getValueAtTime(this.p.keyframes[0].t/y,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(g=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/y,0),p=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/y,0)):(g=this.p.pv,p=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/y,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){g=[],p=[];var f=this.px,C=this.py;f._caching.lastFrame+f.offsetTime<=f.keyframes[0].t?(g[0]=f.getValueAtTime((f.keyframes[0].t+.01)/y,0),g[1]=C.getValueAtTime((C.keyframes[0].t+.01)/y,0),p[0]=f.getValueAtTime(f.keyframes[0].t/y,0),p[1]=C.getValueAtTime(C.keyframes[0].t/y,0)):f._caching.lastFrame+f.offsetTime>=f.keyframes[f.keyframes.length-1].t?(g[0]=f.getValueAtTime(f.keyframes[f.keyframes.length-1].t/y,0),g[1]=C.getValueAtTime(C.keyframes[C.keyframes.length-1].t/y,0),p[0]=f.getValueAtTime((f.keyframes[f.keyframes.length-1].t-.01)/y,0),p[1]=C.getValueAtTime((C.keyframes[C.keyframes.length-1].t-.01)/y,0)):(g=[f.pv,C.pv],p[0]=f.getValueAtTime((f._caching.lastFrame+f.offsetTime-.01)/y,f.offsetTime),p[1]=C.getValueAtTime((C._caching.lastFrame+C.offsetTime-.01)/y,C.offsetTime))}else g=p=M;this.v.rotate(-Math.atan2(g[1]-p[1],g[0]-p[0]))}this.data.p&&this.data.p.s?this.v.translate(this.px.v,this.py.v,this.data.p.z?-this.pz.v:0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function t(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function e(){}},extendPrototype([DynamicPropertyContainer],h),h.prototype.addDynamicProperty=function l(d){this._addDynamicProperty(d),this.elem.addDynamicProperty(d),this._isDirty=!0},h.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function r(d,y,g){return new h(d,y,g)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(M,b){return 1e5*Math.abs(M-b)<=Math.min(Math.abs(M),Math.abs(b))}function floatZero(M){return Math.abs(M)<=1e-5}function lerp(M,b,n){return M*(1-n)+b*n}function lerpPoint(M,b,n){return[lerp(M[0],b[0],n),lerp(M[1],b[1],n)]}function quadRoots(M,b,n){if(0===M)return[];var t=b*b-4*M*n;if(t<0)return[];var e=-b/(2*M);if(0===t)return[e];var l=Math.sqrt(t)/(2*M);return[e-l,e+l]}function polynomialCoefficients(M,b,n,t){return[3*b-M-3*n+t,3*M-6*b+3*n,-3*M+3*b,M]}function singlePoint(M){return new PolynomialBezier(M,M,M,M,!1)}function PolynomialBezier(M,b,n,t,e){e&&pointEqual(M,b)&&(b=lerpPoint(M,t,1/3)),e&&pointEqual(n,t)&&(n=lerpPoint(M,t,2/3));var l=polynomialCoefficients(M[0],b[0],n[0],t[0]),h=polynomialCoefficients(M[1],b[1],n[1],t[1]);this.a=[l[0],h[0]],this.b=[l[1],h[1]],this.c=[l[2],h[2]],this.d=[l[3],h[3]],this.points=[M,b,n,t]}function extrema(M,b){var n=M.points[0][b],t=M.points[M.points.length-1][b];if(n>t){var e=t;t=n,n=e}for(var l=quadRoots(3*M.a[b],2*M.b[b],M.c[b]),h=0;h<l.length;h+=1)if(l[h]>0&&l[h]<1){var r=M.point(l[h])[b];r<n?n=r:r>t&&(t=r)}return{min:n,max:t}}function intersectData(M,b,n){var t=M.boundingBox();return{cx:t.cx,cy:t.cy,width:t.width,height:t.height,bez:M,t:(b+n)/2,t1:b,t2:n}}function splitData(M){var b=M.bez.split(.5);return[intersectData(b[0],M.t1,M.t),intersectData(b[1],M.t,M.t2)]}function boxIntersect(M,b){return 2*Math.abs(M.cx-b.cx)<M.width+b.width&&2*Math.abs(M.cy-b.cy)<M.height+b.height}function intersectsImpl(M,b,n,t,e,l){if(boxIntersect(M,b)){if(n>=l||M.width<=t&&M.height<=t&&b.width<=t&&b.height<=t)return void e.push([M.t,b.t]);var h=splitData(M),r=splitData(b);intersectsImpl(h[0],r[0],n+1,t,e,l),intersectsImpl(h[0],r[1],n+1,t,e,l),intersectsImpl(h[1],r[0],n+1,t,e,l),intersectsImpl(h[1],r[1],n+1,t,e,l)}}function crossProduct(M,b){return[M[1]*b[2]-M[2]*b[1],M[2]*b[0]-M[0]*b[2],M[0]*b[1]-M[1]*b[0]]}function lineIntersection(M,b,n,t){var h=[n[0],n[1],1],r=[t[0],t[1],1],d=crossProduct(crossProduct([M[0],M[1],1],[b[0],b[1],1]),crossProduct(h,r));return floatZero(d[2])?null:[d[0]/d[2],d[1]/d[2]]}function polarOffset(M,b,n){return[M[0]+Math.cos(b)*n,M[1]-Math.sin(b)*n]}function pointDistance(M,b){return Math.hypot(M[0]-b[0],M[1]-b[1])}function pointEqual(M,b){return floatEqual(M[0],b[0])&&floatEqual(M[1],b[1])}function ZigZagModifier(){}function setPoint(M,b,n,t,e,l,h){var r=n-Math.PI/2,d=n+Math.PI/2,y=b[0]+Math.cos(n)*t*e,g=b[1]-Math.sin(n)*t*e;M.setTripleAt(y,g,y+Math.cos(r)*l,g-Math.sin(r)*l,y+Math.cos(d)*h,g-Math.sin(d)*h,M.length())}function getPerpendicularVector(M,b){var n=[b[0]-M[0],b[1]-M[1]],t=.5*-Math.PI;return[Math.cos(t)*n[0]-Math.sin(t)*n[1],Math.sin(t)*n[0]+Math.cos(t)*n[1]]}function getProjectingAngle(M,b){var n=0===b?M.length()-1:b-1,t=(b+1)%M.length(),h=getPerpendicularVector(M.v[n],M.v[t]);return Math.atan2(0,1)-Math.atan2(h[1],h[0])}function zigZagCorner(M,b,n,t,e,l,h){var r=getProjectingAngle(b,n),d=b.v[n%b._length],y=b.v[0===n?b._length-1:n-1],g=b.v[(n+1)%b._length],p=2===l?Math.sqrt(Math.pow(d[0]-y[0],2)+Math.pow(d[1]-y[1],2)):0,f=2===l?Math.sqrt(Math.pow(d[0]-g[0],2)+Math.pow(d[1]-g[1],2)):0;setPoint(M,b.v[n%b._length],r,h,t,f/(2*(e+1)),p/(2*(e+1)),l)}function zigZagSegment(M,b,n,t,e,l){for(var h=0;h<t;h+=1){var r=(h+1)/(t+1),d=2===e?Math.sqrt(Math.pow(b.points[3][0]-b.points[0][0],2)+Math.pow(b.points[3][1]-b.points[0][1],2)):0,y=b.normalAngle(r);setPoint(M,b.point(r),y,l,n,d/(2*(t+1)),d/(2*(t+1)),e),l=-l}return l}function linearOffset(M,b,n){var t=Math.atan2(b[0]-M[0],b[1]-M[1]);return[polarOffset(M,t,n),polarOffset(b,t,n)]}function offsetSegment(M,b){var n,t,e,l,h,r,d;n=(d=linearOffset(M.points[0],M.points[1],b))[0],t=d[1],e=(d=linearOffset(M.points[1],M.points[2],b))[0],l=d[1],h=(d=linearOffset(M.points[2],M.points[3],b))[0],r=d[1];var y=lineIntersection(n,t,e,l);null===y&&(y=t);var g=lineIntersection(h,r,e,l);return null===g&&(g=h),new PolynomialBezier(n,y,g,r)}function joinLines(M,b,n,t,e){var l=b.points[3],h=n.points[0];if(3===t||pointEqual(l,h))return l;if(2===t){var r=-b.tangentAngle(1),d=-n.tangentAngle(0)+Math.PI,y=lineIntersection(l,polarOffset(l,r+Math.PI/2,100),h,polarOffset(h,r+Math.PI/2,100)),g=y?pointDistance(y,l):pointDistance(l,h)/2,p=polarOffset(l,r,2*g*roundCorner);return M.setXYAt(p[0],p[1],"o",M.length()-1),p=polarOffset(h,d,2*g*roundCorner),M.setTripleAt(h[0],h[1],h[0],h[1],p[0],p[1],M.length()),h}var N=lineIntersection(pointEqual(l,b.points[2])?b.points[0]:b.points[2],l,h,pointEqual(h,n.points[1])?n.points[3]:n.points[1]);return N&&pointDistance(N,l)<e?(M.setTripleAt(N[0],N[1],N[0],N[1],N[0],N[1],M.length()),N):l}function getIntersection(M,b){var n=M.intersections(b);return n.length&&floatEqual(n[0][0],1)&&n.shift(),n.length?n[0]:null}function pruneSegmentIntersection(M,b){var n=M.slice(),t=b.slice(),e=getIntersection(M[M.length-1],b[0]);return e&&(n[M.length-1]=M[M.length-1].split(e[0])[0],t[0]=b[0].split(e[1])[1]),M.length>1&&b.length>1&&(e=getIntersection(M[0],b[b.length-1]))?[[M[0].split(e[0])[0]],[b[b.length-1].split(e[1])[1]]]:[n,t]}function pruneIntersections(M){for(var b,n=1;n<M.length;n+=1)b=pruneSegmentIntersection(M[n-1],M[n]),M[n-1]=b[0],M[n]=b[1];return M.length>1&&(b=pruneSegmentIntersection(M[M.length-1],M[0]),M[M.length-1]=b[0],M[0]=b[1]),M}function offsetSegmentSplit(M,b){var t,e,l,h,n=M.inflectionPoints();return 0===n.length?[offsetSegment(M,b)]:1===n.length||floatEqual(n[1],1)?(e=(l=M.split(n[0]))[1],[offsetSegment(t=l[0],b),offsetSegment(e,b)]):(t=(l=M.split(n[0]))[0],h=(l=l[1].split((n[1]-n[0])/(1-n[0])))[0],e=l[1],[offsetSegment(t,b),offsetSegment(h,b),offsetSegment(e,b)])}function OffsetPathModifier(){}function getFontProperties(M){for(var l,b=M.fStyle?M.fStyle.split(" "):[],n="normal",t="normal",e=b.length,h=0;h<e;h+=1)switch(l=b[h].toLowerCase(),l){case"italic":t="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200"}return{style:t,weight:M.fWeight||n}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(M,b){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(M,b.c,0,null,this),this.o=PropertyFactory.getProp(M,b.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(M,b.tr,this),this.so=PropertyFactory.getProp(M,b.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(M,b.tr.eo,0,.01,this),this.data=b,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(M,b,n,t,e,l){var h=l?-1:1,r=t.s.v[0]+(1-t.s.v[0])*(1-e),d=t.s.v[1]+(1-t.s.v[1])*(1-e);M.translate(t.p.v[0]*h*e,t.p.v[1]*h*e,t.p.v[2]),b.translate(-t.a.v[0],-t.a.v[1],t.a.v[2]),b.rotate(-t.r.v*h*e),b.translate(t.a.v[0],t.a.v[1],t.a.v[2]),n.translate(-t.a.v[0],-t.a.v[1],t.a.v[2]),n.scale(l?1/r:r,l?1/d:d),n.translate(t.a.v[0],t.a.v[1],t.a.v[2])},RepeaterModifier.prototype.init=function(M,b,n,t){for(this.elem=M,this.arr=b,this.pos=n,this.elemsData=t,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(M),this.initModifierProperties(M,b[n]);n>0;)this._elements.unshift(b[n-=1]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(M){var b,n=M.length;for(b=0;b<n;b+=1)M[b]._processed=!1,"gr"===M[b].ty&&this.resetElements(M[b].it)},RepeaterModifier.prototype.cloneElements=function(M){var b=JSON.parse(JSON.stringify(M));return this.resetElements(b),b},RepeaterModifier.prototype.changeGroupRender=function(M,b){var n,t=M.length;for(n=0;n<t;n+=1)M[n]._render=b,"gr"===M[n].ty&&this.changeGroupRender(M[n].it,b)},RepeaterModifier.prototype.processShapes=function(M){var b,n,t,e,l,h=!1;if(this._mdf||M){var y,r=Math.ceil(this.c.v);if(this._groups.length<r){for(;this._groups.length<r;){var d={it:this.cloneElements(this._elements),ty:"gr"};d.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,d),this._groups.splice(0,0,d),this._currentCopies+=1}this.elem.reloadShapes(),h=!0}for(l=0,t=0;t<=this._groups.length-1;t+=1){if(this._groups[t]._render=y=l<r,this.changeGroupRender(this._groups[t].it,y),!y){var g=this.elemsData[t].it,p=g[g.length-1];0!==p.transform.op.v?(p.transform.op._mdf=!0,p.transform.op.v=0):p.transform.op._mdf=!1}l+=1}this._currentCopies=r;var f=this.o.v,C=f%1,N=f>0?Math.floor(f):Math.ceil(f),a=this.pMatrix.props,O=this.rMatrix.props,H=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var V,D,F=0;if(f>0){for(;F<N;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),F+=1;C&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,C,!1),F+=C)}else if(f<0){for(;F>N;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),F-=1;C&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-C,!0),F-=C)}for(t=1===this.data.m?0:this._currentCopies-1,e=1===this.data.m?1:-1,l=this._currentCopies;l;){if(D=(n=(b=this.elemsData[t].it)[b.length-1].transform.mProps.v.props).length,b[b.length-1].transform.mProps._mdf=!0,b[b.length-1].transform.op._mdf=!0,b[b.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+t/(this._currentCopies-1)*(this.eo.v-this.so.v),0!==F){for((0!==t&&1===e||t!==this._currentCopies-1&&-1===e)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(O[0],O[1],O[2],O[3],O[4],O[5],O[6],O[7],O[8],O[9],O[10],O[11],O[12],O[13],O[14],O[15]),this.matrix.transform(H[0],H[1],H[2],H[3],H[4],H[5],H[6],H[7],H[8],H[9],H[10],H[11],H[12],H[13],H[14],H[15]),this.matrix.transform(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10],a[11],a[12],a[13],a[14],a[15]),V=0;V<D;V+=1)n[V]=this.matrix.props[V];this.matrix.reset()}else for(this.matrix.reset(),V=0;V<D;V+=1)n[V]=this.matrix.props[V];F+=1,l-=1,t+=e}}else for(l=this._currentCopies,t=0,e=1;l;)n=(b=this.elemsData[t].it)[b.length-1].transform.mProps.v.props,b[b.length-1].transform.mProps._mdf=!1,b[b.length-1].transform.op._mdf=!1,l-=1,t+=e;return h},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(M,b){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(M,b.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(M,b){var n=shapePool.newElement();n.c=M.c;var t,l,h,r,d,y,g,f,C,N,a,O,H,e=M._length,p=0;for(t=0;t<e;t+=1)h=M.i[t],(l=M.v[t])[0]===(r=M.o[t])[0]&&l[1]===r[1]&&l[0]===h[0]&&l[1]===h[1]?0!==t&&t!==e-1||M.c?(d=0===t?M.v[e-1]:M.v[t-1],g=(y=Math.sqrt(Math.pow(l[0]-d[0],2)+Math.pow(l[1]-d[1],2)))?Math.min(y/2,b)/y:0,n.setTripleAt(f=O=l[0]+(d[0]-l[0])*g,C=H=l[1]-(l[1]-d[1])*g,f-(f-l[0])*roundCorner,C-(C-l[1])*roundCorner,O,H,p),p+=1,d=t===e-1?M.v[0]:M.v[t+1],g=(y=Math.sqrt(Math.pow(l[0]-d[0],2)+Math.pow(l[1]-d[1],2)))?Math.min(y/2,b)/y:0,n.setTripleAt(f=N=l[0]+(d[0]-l[0])*g,C=a=l[1]+(d[1]-l[1])*g,N,a,O=f-(f-l[0])*roundCorner,H=C-(C-l[1])*roundCorner,p),p+=1):(n.setTripleAt(l[0],l[1],r[0],r[1],h[0],h[1],p),p+=1):(n.setTripleAt(M.v[t][0],M.v[t][1],M.o[t][0],M.o[t][1],M.i[t][0],M.i[t][1],p),p+=1);return n},RoundCornersModifier.prototype.processShapes=function(M){var b,n,e,l,r,d,t=this.shapes.length,h=this.rd.v;if(0!==h)for(n=0;n<t;n+=1){if(d=(r=this.shapes[n]).localShapeCollection,r.shape._mdf||this._mdf||M)for(d.releaseShapes(),r.shape._mdf=!0,b=r.shape.paths.shapes,l=r.shape.paths._length,e=0;e<l;e+=1)d.addShape(this.processPath(b[e],h));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(M){return[((this.a[0]*M+this.b[0])*M+this.c[0])*M+this.d[0],((this.a[1]*M+this.b[1])*M+this.c[1])*M+this.d[1]]},PolynomialBezier.prototype.derivative=function(M){return[(3*M*this.a[0]+2*this.b[0])*M+this.c[0],(3*M*this.a[1]+2*this.b[1])*M+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(M){var b=this.derivative(M);return Math.atan2(b[1],b[0])},PolynomialBezier.prototype.normalAngle=function(M){var b=this.derivative(M);return Math.atan2(b[0],b[1])},PolynomialBezier.prototype.inflectionPoints=function(){var M=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(M))return[];var b=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/M,n=b*b-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/M;if(n<0)return[];var t=Math.sqrt(n);return floatZero(t)?t>0&&t<1?[b]:[]:[b-t,b+t].filter(function(e){return e>0&&e<1})},PolynomialBezier.prototype.split=function(M){if(M<=0)return[singlePoint(this.points[0]),this];if(M>=1)return[this,singlePoint(this.points[this.points.length-1])];var b=lerpPoint(this.points[0],this.points[1],M),n=lerpPoint(this.points[1],this.points[2],M),t=lerpPoint(this.points[2],this.points[3],M),e=lerpPoint(b,n,M),l=lerpPoint(n,t,M),h=lerpPoint(e,l,M);return[new PolynomialBezier(this.points[0],b,e,h,!0),new PolynomialBezier(h,l,t,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var M=this.bounds();return{left:M.x.min,right:M.x.max,top:M.y.min,bottom:M.y.max,width:M.x.max-M.x.min,height:M.y.max-M.y.min,cx:(M.x.max+M.x.min)/2,cy:(M.y.max+M.y.min)/2}},PolynomialBezier.prototype.intersections=function(M,b,n){void 0===b&&(b=2),void 0===n&&(n=7);var t=[];return intersectsImpl(intersectData(this,0,1),intersectData(M,0,1),0,b,t,n),t},PolynomialBezier.shapeSegment=function(M,b){var n=(b+1)%M.length();return new PolynomialBezier(M.v[b],M.o[b],M.i[n],M.v[n],!0)},PolynomialBezier.shapeSegmentInverted=function(M,b){var n=(b+1)%M.length();return new PolynomialBezier(M.v[n],M.i[n],M.o[b],M.v[b],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(M,b){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(M,b.s,0,null,this),this.frequency=PropertyFactory.getProp(M,b.r,0,null,this),this.pointsType=PropertyFactory.getProp(M,b.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(M,b,n,t){var e=M._length,l=shapePool.newElement();if(l.c=M.c,M.c||(e-=1),0===e)return l;var h=-1,r=PolynomialBezier.shapeSegment(M,0);zigZagCorner(l,M,0,b,n,t,h);for(var d=0;d<e;d+=1)h=zigZagSegment(l,r,b,n,t,-h),r=d!==e-1||M.c?PolynomialBezier.shapeSegment(M,(d+1)%e):null,zigZagCorner(l,M,d+1,b,n,t,h);return l},ZigZagModifier.prototype.processShapes=function(M){var b,n,e,l,y,g,t=this.shapes.length,h=this.amplitude.v,r=Math.max(0,Math.round(this.frequency.v)),d=this.pointsType.v;if(0!==h)for(n=0;n<t;n+=1){if(g=(y=this.shapes[n]).localShapeCollection,y.shape._mdf||this._mdf||M)for(g.releaseShapes(),y.shape._mdf=!0,b=y.shape.paths.shapes,l=y.shape.paths._length,e=0;e<l;e+=1)g.addShape(this.processPath(b[e],h,r,d));y.shape.paths=y.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(M,b){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(M,b.a,0,null,this),this.miterLimit=PropertyFactory.getProp(M,b.ml,0,null,this),this.lineJoin=b.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(M,b,n,t){var e=shapePool.newElement();e.c=M.c;var l=M.length();M.c||(l-=1);var h,r,d,y=[];for(h=0;h<l;h+=1)d=PolynomialBezier.shapeSegment(M,h),y.push(offsetSegmentSplit(d,b));if(!M.c)for(h=l-1;h>=0;h-=1)d=PolynomialBezier.shapeSegmentInverted(M,h),y.push(offsetSegmentSplit(d,b));y=pruneIntersections(y);var g=null,p=null;for(h=0;h<y.length;h+=1){var f=y[h];for(p&&(g=joinLines(e,p,f[0],n,t)),p=f[f.length-1],r=0;r<f.length;r+=1)d=f[r],g&&pointEqual(d.points[0],g)?e.setXYAt(d.points[1][0],d.points[1][1],"o",e.length()-1):e.setTripleAt(d.points[0][0],d.points[0][1],d.points[1][0],d.points[1][1],d.points[0][0],d.points[0][1],e.length()),e.setTripleAt(d.points[3][0],d.points[3][1],d.points[3][0],d.points[3][1],d.points[2][0],d.points[2][1],e.length()),g=d.points[3]}return y.length&&joinLines(e,p,y[0][0],n,t),e},OffsetPathModifier.prototype.processShapes=function(M){var b,n,e,l,y,g,t=this.shapes.length,h=this.amount.v,r=this.miterLimit.v,d=this.lineJoin;if(0!==h)for(n=0;n<t;n+=1){if(g=(y=this.shapes[n]).localShapeCollection,y.shape._mdf||this._mdf||M)for(g.releaseShapes(),y.shape._mdf=!0,b=y.shape.paths.shapes,l=y.shape.paths._length,e=0;e<l;e+=1)g.addShape(this.processPath(b[e],h,d,r));y.shape.paths=y.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var b={w:0,size:0,shapes:[],data:{shapes:[]}},n=[];n=n.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var t=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],e=[65039,8205];function h(D,U){var q=createTag("span");q.setAttribute("aria-hidden",!0),q.style.fontFamily=U;var J=createTag("span");J.innerText="giItT1WQy@!-/#",q.style.position="absolute",q.style.left="-10000px",q.style.top="-10000px",q.style.fontSize="300px",q.style.fontVariant="normal",q.style.fontStyle="normal",q.style.fontWeight="normal",q.style.letterSpacing="0",q.appendChild(J),document.body.appendChild(q);var G=J.offsetWidth;return J.style.fontFamily=function l(D){var q,U=D.split(","),J=U.length,G=[];for(q=0;q<J;q+=1)"sans-serif"!==U[q]&&"monospace"!==U[q]&&G.push(U[q]);return G.join(",")}(D)+", "+U,{node:J,w:G,parent:q}}function d(D,U){var J,q=document.body&&U?"svg":"canvas",G=getFontProperties(D);if("svg"===q){var ie=createNS("text");ie.style.fontSize="100px",ie.setAttribute("font-family",D.fFamily),ie.setAttribute("font-style",G.style),ie.setAttribute("font-weight",G.weight),ie.textContent="1",D.fClass?(ie.style.fontFamily="inherit",ie.setAttribute("class",D.fClass)):ie.style.fontFamily=D.fFamily,U.appendChild(ie),J=ie}else{var K=new OffscreenCanvas(500,500).getContext("2d");K.font=G.style+" "+G.weight+" 100px "+D.fFamily,J=K}return{measureText:function re(oe){return"svg"===q?(J.textContent=oe,J.getComputedTextLength()):J.measureText(oe).width}}}var F=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};return F.isModifier=function N(D,U){var q=D.toString(16)+U.toString(16);return-1!==t.indexOf(q)},F.isZeroWidthJoiner=function a(D,U){return U?D===e[0]&&U===e[1]:D===e[1]},F.isCombinedCharacter=function O(D){return-1!==n.indexOf(D)},F.prototype={addChars:function g(D){if(D){this.chars||(this.chars=[]);var U,J,ie,q=D.length,G=this.chars.length;for(U=0;U<q;U+=1){for(J=0,ie=!1;J<G;)this.chars[J].style===D[U].style&&this.chars[J].fFamily===D[U].fFamily&&this.chars[J].ch===D[U].ch&&(ie=!0),J+=1;ie||(this.chars.push(D[U]),G+=1)}}},addFonts:function y(D,U){if(D){if(this.chars)return this.isLoaded=!0,void(this.fonts=D.list);if(!document.body)return this.isLoaded=!0,D.list.forEach(function(w){w.helper=d(w),w.cache={}}),void(this.fonts=D.list);var J,q=D.list,G=q.length,ie=G;for(J=0;J<G;J+=1){var re,oe,K=!0;if(q[J].loaded=!1,q[J].monoCase=h(q[J].fFamily,"monospace"),q[J].sansCase=h(q[J].fFamily,"sans-serif"),q[J].fPath){if("p"===q[J].fOrigin||3===q[J].origin){if((re=document.querySelectorAll('style[f-forigin="p"][f-family="'+q[J].fFamily+'"], style[f-origin="3"][f-family="'+q[J].fFamily+'"]')).length>0&&(K=!1),K){var B=createTag("style");B.setAttribute("f-forigin",q[J].fOrigin),B.setAttribute("f-origin",q[J].origin),B.setAttribute("f-family",q[J].fFamily),B.type="text/css",B.innerText="@font-face {font-family: "+q[J].fFamily+"; font-style: normal; src: url('"+q[J].fPath+"');}",U.appendChild(B)}}else if("g"===q[J].fOrigin||1===q[J].origin){for(re=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),oe=0;oe<re.length;oe+=1)-1!==re[oe].href.indexOf(q[J].fPath)&&(K=!1);if(K){var s=createTag("link");s.setAttribute("f-forigin",q[J].fOrigin),s.setAttribute("f-origin",q[J].origin),s.type="text/css",s.rel="stylesheet",s.href=q[J].fPath,document.body.appendChild(s)}}else if("t"===q[J].fOrigin||2===q[J].origin){for(re=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),oe=0;oe<re.length;oe+=1)q[J].fPath===re[oe].src&&(K=!1);if(K){var _=createTag("link");_.setAttribute("f-forigin",q[J].fOrigin),_.setAttribute("f-origin",q[J].origin),_.setAttribute("rel","stylesheet"),_.setAttribute("href",q[J].fPath),U.appendChild(_)}}}else q[J].loaded=!0,ie-=1;q[J].helper=d(q[J],U),q[J].cache={},this.fonts.push(q[J])}0===ie?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function p(D,U,q){for(var J=0,G=this.chars.length;J<G;){if(this.chars[J].ch===D&&this.chars[J].style===U&&this.chars[J].fFamily===q)return this.chars[J];J+=1}return("string"==typeof D&&13!==D.charCodeAt(0)||!D)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",D,U,q)),b},getFontByName:function C(D){for(var U=0,q=this.fonts.length;U<q;){if(this.fonts[U].fName===D)return this.fonts[U];U+=1}return this.fonts[0]},measureText:function f(D,U,q){var J=this.getFontByName(U),G=D.charCodeAt(0);if(!J.cache[G+1]){var ie=J.helper;if(" "===D){var K=ie.measureText("|"+D+"|"),re=ie.measureText("||");J.cache[G+1]=(K-re)/100}else J.cache[G+1]=ie.measureText(D)/100}return J.cache[G+1]*q},checkLoadedFonts:function r(){var D,U=this.fonts.length,G=U;for(D=0;D<U;D+=1)this.fonts[D].loaded?G-=1:"n"===this.fonts[D].fOrigin||0===this.fonts[D].origin?this.fonts[D].loaded=!0:((this.fonts[D].monoCase.node.offsetWidth!==this.fonts[D].monoCase.w||this.fonts[D].sansCase.node.offsetWidth!==this.fonts[D].sansCase.w)&&(G-=1,this.fonts[D].loaded=!0),this.fonts[D].loaded&&(this.fonts[D].sansCase.parent.parentNode.removeChild(this.fonts[D].sansCase.parent),this.fonts[D].monoCase.parent.parentNode.removeChild(this.fonts[D].monoCase.parent)));0!==G&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function H(){this.isLoaded=!0}},F}();function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(b){-1===this.renderableComponents.indexOf(b)&&this.renderableComponents.push(b)},removeRenderableComponent:function(b){-1!==this.renderableComponents.indexOf(b)&&this.renderableComponents.splice(this.renderableComponents.indexOf(b),1)},prepareRenderableFrame:function(b){this.checkLayerLimits(b)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(b){this.data.ip-this.data.st<=b&&this.data.op-this.data.st>b?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var b,n=this.renderableComponents.length;for(b=0;b<n;b+=1)this.renderableComponents[b].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var M={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(b){return M[b]||""}}();function SliderEffect(M,b,n){this.p=PropertyFactory.getProp(b,M.v,0,0,n)}function AngleEffect(M,b,n){this.p=PropertyFactory.getProp(b,M.v,0,0,n)}function ColorEffect(M,b,n){this.p=PropertyFactory.getProp(b,M.v,1,0,n)}function PointEffect(M,b,n){this.p=PropertyFactory.getProp(b,M.v,1,0,n)}function LayerIndexEffect(M,b,n){this.p=PropertyFactory.getProp(b,M.v,0,0,n)}function MaskIndexEffect(M,b,n){this.p=PropertyFactory.getProp(b,M.v,0,0,n)}function CheckboxEffect(M,b,n){this.p=PropertyFactory.getProp(b,M.v,0,0,n)}function NoValueEffect(){this.p={}}function EffectsManager(M,b){var n=M.ef||[];this.effectElements=[];var t,l,e=n.length;for(t=0;t<e;t+=1)l=new GroupEffect(n[t],b),this.effectElements.push(l)}function GroupEffect(M,b){this.init(M,b)}function BaseElement(){}function FrameElement(){}function FootageElement(M,b,n){this.initFrame(),this.initRenderable(),this.assetData=b.getAssetData(M.refId),this.footageData=b.imageLoader.getAsset(this.assetData),this.initBaseData(M,b,n)}function AudioElement(M,b,n){this.initFrame(),this.initRenderable(),this.assetData=b.getAssetData(M.refId),this.initBaseData(M,b,n),this._isPlaying=!1,this._canPlay=!1;var t=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(t),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=M.tm?PropertyFactory.getProp(this,M.tm,0,b.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,M.au&&M.au.lv?M.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}function TransformElement(){}function MaskElement(M,b,n){this.data=M,this.element=b,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var e,t=this.globalData.defs,l=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(l),this.solidPath="";var h,g,p,C,N,a,O,r=this.masksProperties,d=0,y=[],f=createElementID(),H="clipPath",F="clip-path";for(e=0;e<l;e+=1)if(("a"!==r[e].mode&&"n"!==r[e].mode||r[e].inv||100!==r[e].o.k||r[e].o.x)&&(H="mask",F="mask"),"s"!==r[e].mode&&"i"!==r[e].mode||0!==d?C=null:((C=createNS("rect")).setAttribute("fill","#ffffff"),C.setAttribute("width",this.element.comp.data.w||0),C.setAttribute("height",this.element.comp.data.h||0),y.push(C)),h=createNS("path"),"n"===r[e].mode)this.viewData[e]={op:PropertyFactory.getProp(this.element,r[e].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,r[e],3),elem:h,lastPath:""},t.appendChild(h);else{var V;if(d+=1,h.setAttribute("fill","s"===r[e].mode?"#000000":"#ffffff"),h.setAttribute("clip-rule","nonzero"),0!==r[e].x.k?(H="mask",F="mask",O=PropertyFactory.getProp(this.element,r[e].x,0,null,this.element),V=createElementID(),(N=createNS("filter")).setAttribute("id",V),(a=createNS("feMorphology")).setAttribute("operator","erode"),a.setAttribute("in","SourceGraphic"),a.setAttribute("radius","0"),N.appendChild(a),t.appendChild(N),h.setAttribute("stroke","s"===r[e].mode?"#000000":"#ffffff")):(a=null,O=null),this.storedData[e]={elem:h,x:O,expan:a,lastPath:"",lastOperator:"",filterId:V,lastRadius:0},"i"===r[e].mode){p=y.length;var D=createNS("g");for(g=0;g<p;g+=1)D.appendChild(y[g]);var U=createNS("mask");U.setAttribute("mask-type","alpha"),U.setAttribute("id",f+"_"+d),U.appendChild(h),t.appendChild(U),D.setAttribute("mask","url("+getLocationHref()+"#"+f+"_"+d+")"),y.length=0,y.push(D)}else y.push(h);r[e].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[e]={elem:h,lastPath:"",op:PropertyFactory.getProp(this.element,r[e].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,r[e],3),invRect:C},this.viewData[e].prop.k||this.drawPath(r[e],this.viewData[e].prop.v,this.viewData[e])}for(this.maskElement=createNS(H),l=y.length,e=0;e<l;e+=1)this.maskElement.appendChild(y[e]);d>0&&(this.maskElement.setAttribute("id",f),this.element.maskedElement.setAttribute(F,"url("+getLocationHref()+"#"+f+")"),t.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(M,b){this.data=M,this.effectElements=[],this.initDynamicPropertyContainer(b);var n,e,t=this.data.ef.length,l=this.data.ef;for(n=0;n<t;n+=1){switch(e=null,l[n].ty){case 0:e=new SliderEffect(l[n],b,this);break;case 1:e=new AngleEffect(l[n],b,this);break;case 2:e=new ColorEffect(l[n],b,this);break;case 3:e=new PointEffect(l[n],b,this);break;case 4:case 7:e=new CheckboxEffect(l[n],b,this);break;case 10:e=new LayerIndexEffect(l[n],b,this);break;case 11:e=new MaskIndexEffect(l[n],b,this);break;case 5:e=new EffectsManager(l[n],b,this);break;default:e=new NoValueEffect(l[n],b,this)}e&&this.effectElements.push(e)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var b=0,n=this.data.masksProperties.length;b<n;){if("n"!==this.data.masksProperties[b].mode&&!1!==this.data.masksProperties[b].cl)return!0;b+=1}return!1},initExpressions:function(){var b=getExpressionInterfaces();if(b){var n=b("layer"),t=b("effects"),e=b("shape"),l=b("text"),h=b("comp");this.layerInterface=n(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var r=t.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(r),0===this.data.ty||this.data.xt?this.compInterface=h(this):4===this.data.ty?(this.layerInterface.shapeInterface=e(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=l(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var b=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=b},initBaseData:function(b,n,t){this.globalData=n,this.comp=t,this.data=b,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(b,n){var t,e=this.dynamicProperties.length;for(t=0;t<e;t+=1)(n||this._isParent&&"transform"===this.dynamicProperties[t].propType)&&(this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(b){-1===this.dynamicProperties.indexOf(b)&&this.dynamicProperties.push(b)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var M=getExpressionInterfaces();if(M){var b=M("footage");this.layerInterface=b(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(M){this.prepareRenderableFrame(M,!0),this.prepareProperties(M,!0),this._currentTime=this.tm._placeholder?M/this.data.sr:this.tm.v,this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(M){this.audio.rate(M)},AudioElement.prototype.volume=function(M){this._volumeMultiplier=M,this._previousVolume=M*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(M){var b,t,n=this.layers.length;for(this.completeLayers=!0,b=n-1;b>=0;b-=1)this.elements[b]||(t=this.layers[b]).ip-t.st<=M-this.layers[b].st&&t.op-t.st>M-this.layers[b].st&&this.buildItem(b),this.completeLayers=!!this.elements[b]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(M){switch(M.ty){case 2:return this.createImage(M);case 0:return this.createComp(M);case 1:return this.createSolid(M);case 3:default:return this.createNull(M);case 4:return this.createShape(M);case 5:return this.createText(M);case 6:return this.createAudio(M);case 13:return this.createCamera(M);case 15:return this.createFootage(M)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(M){return new AudioElement(M,this.globalData,this)},BaseRenderer.prototype.createFootage=function(M){return new FootageElement(M,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var M,b=this.layers.length;for(M=0;M<b;M+=1)this.buildItem(M);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(M){this.completeLayers=!1;var b,t,n=M.length,e=this.layers.length;for(b=0;b<n;b+=1)for(t=0;t<e;){if(this.layers[t].id===M[b].id){this.layers[t]=M[b];break}t+=1}},BaseRenderer.prototype.setProjectInterface=function(M){this.globalData.projectInterface=M},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(M,b,n){for(var t=this.elements,e=this.layers,l=0,h=e.length;l<h;)e[l].ind==b&&(t[l]&&!0!==t[l]?(n.push(t[l]),t[l].setAsParent(),void 0!==e[l].parent?this.buildElementParenting(M,e[l].parent,n):M.setHierarchy(n)):(this.buildItem(l),this.addPendingElement(M))),l+=1},BaseRenderer.prototype.addPendingElement=function(M){this.pendingElements.push(M)},BaseRenderer.prototype.searchExtraCompositions=function(M){var b,n=M.length;for(b=0;b<n;b+=1)if(M[b].xt){var t=this.createComp(M[b]);t.initExpressions(),this.globalData.projectInterface.registerComposition(t)}},BaseRenderer.prototype.getElementById=function(M){var b,n=this.elements.length;for(b=0;b<n;b+=1)if(this.elements[b].data.ind===M)return this.elements[b];return null},BaseRenderer.prototype.getElementByPath=function(M){var n,b=M.shift();if("number"==typeof b)n=this.elements[b];else{var t,e=this.elements.length;for(t=0;t<e;t+=1)if(this.elements[t].data.nm===b){n=this.elements[t];break}}return 0===M.length?n:n.getElementByPath(M)},BaseRenderer.prototype.setupGlobalData=function(M,b){this.globalData.fontManager=new FontManager,this.globalData.fontManager.addChars(M.chars),this.globalData.fontManager.addFonts(M.fonts,b),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=M.fr,this.globalData.nm=M.nm,this.globalData.compSize={w:M.w,h:M.h}},TransformElement.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Matrix},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0)},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var b,n=this.finalTransform.mat,t=0,e=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;t<e;){if(this.hierarchy[t].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}t+=1}if(this.finalTransform._matMdf)for(n.cloneFromProps(b=this.finalTransform.mProp.v.props),t=0;t<e;t+=1)n.transform((b=this.hierarchy[t].finalTransform.mProp.v.props)[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8],b[9],b[10],b[11],b[12],b[13],b[14],b[15])}},globalToLocal:function(b){var n=[];n.push(this.finalTransform);for(var t=!0,e=this.comp;t;)e.finalTransform?(e.data.hasMask&&n.splice(0,0,e.finalTransform),e=e.comp):t=!1;var l,r,h=n.length;for(l=0;l<h;l+=1)r=n[l].mat.applyToPointArray(0,0,0),b=[b[0]-r[0],b[1]-r[1],0];return b},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(M){return this.viewData[M].prop},MaskElement.prototype.renderFrame=function(M){var n,b=this.element.finalTransform.mat,t=this.masksProperties.length;for(n=0;n<t;n+=1)if((this.viewData[n].prop._mdf||M)&&this.drawPath(this.masksProperties[n],this.viewData[n].prop.v,this.viewData[n]),(this.viewData[n].op._mdf||M)&&this.viewData[n].elem.setAttribute("fill-opacity",this.viewData[n].op.v),"n"!==this.masksProperties[n].mode&&(this.viewData[n].invRect&&(this.element.finalTransform.mProp._mdf||M)&&this.viewData[n].invRect.setAttribute("transform",b.getInverseMatrix().to2dCSS()),this.storedData[n].x&&(this.storedData[n].x._mdf||M))){var e=this.storedData[n].expan;this.storedData[n].x.v<0?("erode"!==this.storedData[n].lastOperator&&(this.storedData[n].lastOperator="erode",this.storedData[n].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[n].filterId+")")),e.setAttribute("radius",-this.storedData[n].x.v)):("dilate"!==this.storedData[n].lastOperator&&(this.storedData[n].lastOperator="dilate",this.storedData[n].elem.setAttribute("filter",null)),this.storedData[n].elem.setAttribute("stroke-width",2*this.storedData[n].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var M="M0,0 ";return M+=" h"+this.globalData.compSize.w,M+=" v"+this.globalData.compSize.h,(M+=" h-"+this.globalData.compSize.w)+" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(M,b,n){var e,l,t=" M"+b.v[0][0]+","+b.v[0][1];for(l=b._length,e=1;e<l;e+=1)t+=" C"+b.o[e-1][0]+","+b.o[e-1][1]+" "+b.i[e][0]+","+b.i[e][1]+" "+b.v[e][0]+","+b.v[e][1];if(b.c&&l>1&&(t+=" C"+b.o[e-1][0]+","+b.o[e-1][1]+" "+b.i[0][0]+","+b.i[0][1]+" "+b.v[0][0]+","+b.v[0][1]),n.lastPath!==t){var h="";n.elem&&(b.c&&(h=M.inv?this.solidPath+t:t),n.elem.setAttribute("d",h)),n.lastPath=t}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var M={createFilter:function b(t,e){var l=createNS("filter");return l.setAttribute("id",t),!0!==e&&(l.setAttribute("filterUnits","objectBoundingBox"),l.setAttribute("x","0%"),l.setAttribute("y","0%"),l.setAttribute("width","100%"),l.setAttribute("height","100%")),l},createAlphaToLuminanceFilter:function n(){var t=createNS("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),t}};return M}(),featureSupport=function(){var M={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(M.maskType=!1),/firefox/i.test(navigator.userAgent)&&(M.svgLumaHidden=!1),M}(),registeredEffects={},idPrefix="filter_result_";function SVGEffects(M){var b,r,n="SourceGraphic",t=M.data.ef?M.data.ef.length:0,e=createElementID(),l=filtersFactory.createFilter(e,!0),h=0;for(this.filters=[],b=0;b<t;b+=1){r=null;var d=M.data.ef[b].ty;registeredEffects[d]&&(r=new(0,registeredEffects[d].effect)(l,M.effectsManager.effectElements[b],M,idPrefix+h,n),n=idPrefix+h,registeredEffects[d].countsAsEffect&&(h+=1)),r&&this.filters.push(r)}h&&(M.globalData.defs.appendChild(l),M.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+e+")")),this.filters.length&&M.addRenderableComponent(this)}function registerEffect(M,b,n){registeredEffects[M]={effect:b,countsAsEffect:n}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(M,b,n){this.assetData=b.getAssetData(M.refId),this.initElement(M,b,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(M,b){this.elem=M,this.pos=b}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(M){var b,n=this.filters.length;for(b=0;b<n;b+=1)this.filters[b].renderFrame(M)},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var b=null;if(this.data.td){this.matteMasks={};var n=createNS("g");n.setAttribute("id",this.layerId),n.appendChild(this.layerElement),b=n,this.globalData.defs.appendChild(n)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),b=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var t=createNS("clipPath"),e=createNS("path");e.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var l=createElementID();if(t.setAttribute("id",l),t.appendChild(e),this.globalData.defs.appendChild(t),this.checkMasks()){var h=createNS("g");h.setAttribute("clip-path","url("+getLocationHref()+"#"+l+")"),h.appendChild(this.layerElement),this.transformedElement=h,b?b.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+l+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this)},getMatte:function(b){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[b]){var t,e,l,h,n=this.layerId+"_"+b;if(1===b||3===b){var r=createNS("mask");r.setAttribute("id",n),r.setAttribute("mask-type",3===b?"luminance":"alpha"),(l=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),r.appendChild(l),this.globalData.defs.appendChild(r),!featureSupport.maskType&&1===b&&(r.setAttribute("mask-type","luminance"),t=createElementID(),e=filtersFactory.createFilter(t),this.globalData.defs.appendChild(e),e.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(h=createNS("g")).appendChild(l),r.appendChild(h),h.setAttribute("filter","url("+getLocationHref()+"#"+t+")"))}else if(2===b){var d=createNS("mask");d.setAttribute("id",n),d.setAttribute("mask-type","alpha");var y=createNS("g");d.appendChild(y),t=createElementID(),e=filtersFactory.createFilter(t);var g=createNS("feComponentTransfer");g.setAttribute("in","SourceGraphic"),e.appendChild(g);var p=createNS("feFuncA");p.setAttribute("type","table"),p.setAttribute("tableValues","1.0 0.0"),g.appendChild(p),this.globalData.defs.appendChild(e);var f=createNS("rect");f.setAttribute("width",this.comp.data.w),f.setAttribute("height",this.comp.data.h),f.setAttribute("x","0"),f.setAttribute("y","0"),f.setAttribute("fill","#ffffff"),f.setAttribute("opacity","0"),y.setAttribute("filter","url("+getLocationHref()+"#"+t+")"),y.appendChild(f),(l=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),y.appendChild(l),featureSupport.maskType||(d.setAttribute("mask-type","luminance"),e.appendChild(filtersFactory.createAlphaToLuminanceFilter()),h=createNS("g"),y.appendChild(f),h.appendChild(this.layerElement),y.appendChild(h)),this.globalData.defs.appendChild(d)}this.matteMasks[b]=n}return this.matteMasks[b]},setMatte:function(b){!this.matteElement||this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+b+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(b){this.hierarchy=b},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(n,t,e){this.initFrame(),this.initBaseData(n,t,e),this.initTransform(n,t,e),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(n){this._mdf=!1,this.prepareRenderableFrame(n),this.prepareProperties(n,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var M=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",M),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(b){var n,t=this.shapeModifiers.length;for(n=0;n<t;n+=1)this.shapeModifiers[n].addShape(b)},isShapeInAnimatedModifiers:function(b){for(var t=this.shapeModifiers.length;0<t;)if(this.shapeModifiers[0].isAnimatedWithShape(b))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var b,n=this.shapes.length;for(b=0;b<n;b+=1)this.shapes[b].sh.reset();for(b=(n=this.shapeModifiers.length)-1;b>=0&&!this.shapeModifiers[b].processShapes(this._isFirstFrame);b-=1);}},searchProcessedElement:function(b){for(var n=this.processedElements,t=0,e=n.length;t<e;){if(n[t].elem===b)return n[t].pos;t+=1}return 0},addProcessedElement:function(b,n){for(var t=this.processedElements,e=t.length;e;)if(t[e-=1].elem===b)return void(t[e].pos=n);t.push(new ProcessedElement(b,n))},prepareFrame:function(b){this.prepareRenderableFrame(b),this.prepareProperties(b,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(M,b,n){this.caches=[],this.styles=[],this.transformers=M,this.lStr="",this.sh=n,this.lvl=b,this._isAnimated=!!n.k;for(var t=0,e=M.length;t<e;){if(M[t].mProps.dynamicProperties.length){this._isAnimated=!0;break}t+=1}}function SVGStyleData(M,b){this.data=M,this.type=M.ty,this.d="",this.lvl=b,this._mdf=!1,this.closed=!0===M.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(M,b,n,t){this.elem=M,this.frameId=-1,this.dataProps=createSizedArray(b.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",b.length?b.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(t);var e,h,l=b.length||0;for(e=0;e<l;e+=1)h=PropertyFactory.getProp(M,b[e].v,0,0,this),this.k=h.k||this.k,this.dataProps[e]={n:b[e].n,p:h};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(M,b,n){this.initDynamicPropertyContainer(M),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(M,b.o,0,.01,this),this.w=PropertyFactory.getProp(M,b.w,0,null,this),this.d=new DashProperty(M,b.d||{},"svg",this),this.c=PropertyFactory.getProp(M,b.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(M,b,n){this.initDynamicPropertyContainer(M),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(M,b.o,0,.01,this),this.c=PropertyFactory.getProp(M,b.c,1,255,this),this.style=n}function SVGNoStyleData(M,b,n){this.initDynamicPropertyContainer(M),this.getValue=this.iterateDynamicProperties,this.style=n}function GradientProperty(M,b,n){this.data=b,this.c=createTypedArray("uint8c",4*b.p);var t=b.k.k[0].s?b.k.k[0].s.length-4*b.p:b.k.k.length-4*b.p;this.o=createTypedArray("float32",t),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=t,this.initDynamicPropertyContainer(n),this.prop=PropertyFactory.getProp(M,b.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(M,b,n){this.initDynamicPropertyContainer(M),this.getValue=this.iterateDynamicProperties,this.initGradientData(M,b,n)}function SVGGradientStrokeStyleData(M,b,n){this.initDynamicPropertyContainer(M),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(M,b.w,0,null,this),this.d=new DashProperty(M,b.d||{},"svg",this),this.initGradientData(M,b,n),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(M,b,n){this.transform={mProps:M,op:b,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(M){if((this.elem.globalData.frameId!==this.frameId||M)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||M,this._mdf)){var b=0,n=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),b=0;b<n;b+=1)"o"!==this.dataProps[b].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[b].p.v:this.dashArray[b]=this.dataProps[b].p.v:this.dashoffset[0]=this.dataProps[b].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(M,b){for(var n=0,t=this.o.length/2;n<t;){if(Math.abs(M[4*n]-M[4*b+2*n])>.01)return!1;n+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var M=0,b=this.data.k.k.length;M<b;){if(!this.comparePoints(this.data.k.k[M].s,this.data.p))return!1;M+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(M){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||M){var b,t,e,n=4*this.data.p;for(b=0;b<n;b+=1)t=b%4==0?100:255,e=Math.round(this.prop.v[b]*t),this.c[b]!==e&&(this.c[b]=e,this._cmdf=!M);if(this.o.length)for(n=this.prop.v.length,b=4*this.data.p;b<n;b+=1)t=b%2==0?100:1,e=b%2==0?Math.round(100*this.prop.v[b]):this.prop.v[b],this.o[b-4*this.data.p]!==e&&(this.o[b-4*this.data.p]=e,this._omdf=!M);this._mdf=!M}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(M,b,n){this.o=PropertyFactory.getProp(M,b.o,0,.01,this),this.s=PropertyFactory.getProp(M,b.s,1,null,this),this.e=PropertyFactory.getProp(M,b.e,1,null,this),this.h=PropertyFactory.getProp(M,b.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(M,b.a||{k:0},0,degToRads,this),this.g=new GradientProperty(M,b.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,b),this.setGradientOpacity(b,n),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(M,b){var n=createElementID(),t=createNS(1===b.t?"linearGradient":"radialGradient");t.setAttribute("id",n),t.setAttribute("spreadMethod","pad"),t.setAttribute("gradientUnits","userSpaceOnUse");var l,h,r,e=[];for(r=4*b.g.p,h=0;h<r;h+=4)l=createNS("stop"),t.appendChild(l),e.push(l);M.setAttribute("gf"===b.ty?"fill":"stroke","url("+getLocationHref()+"#"+n+")"),this.gf=t,this.cst=e},SVGGradientFillStyleData.prototype.setGradientOpacity=function(M,b){if(this.g._hasOpacity&&!this.g._collapsable){var n,t,e,l=createNS("mask"),h=createNS("path");l.appendChild(h);var r=createElementID(),d=createElementID();l.setAttribute("id",d);var y=createNS(1===M.t?"linearGradient":"radialGradient");y.setAttribute("id",r),y.setAttribute("spreadMethod","pad"),y.setAttribute("gradientUnits","userSpaceOnUse"),e=M.g.k.k[0].s?M.g.k.k[0].s.length:M.g.k.k.length;var g=this.stops;for(t=4*M.g.p;t<e;t+=2)(n=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),y.appendChild(n),g.push(n);h.setAttribute("gf"===M.ty?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),"gs"===M.ty&&(h.setAttribute("stroke-linecap",lineCapEnum[M.lc||2]),h.setAttribute("stroke-linejoin",lineJoinEnum[M.lj||2]),1===M.lj&&h.setAttribute("stroke-miterlimit",M.ml)),this.of=y,this.ms=l,this.ost=g,this.maskId=d,b.msElem=h}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(b,n,t,e){if(0===n)return"";var d,l=b.o,h=b.i,r=b.v,y=" M"+e.applyToPointStringified(r[0][0],r[0][1]);for(d=1;d<n;d+=1)y+=" C"+e.applyToPointStringified(l[d-1][0],l[d-1][1])+" "+e.applyToPointStringified(h[d][0],h[d][1])+" "+e.applyToPointStringified(r[d][0],r[d][1]);return t&&n&&(y+=" C"+e.applyToPointStringified(l[d-1][0],l[d-1][1])+" "+e.applyToPointStringified(h[0][0],h[0][1])+" "+e.applyToPointStringified(r[0][0],r[0][1]),y+="z"),y},SVGElementsRenderer=function(){var M=new Matrix,b=new Matrix;function e(p,f,C){(C||f.transform.op._mdf)&&f.transform.container.setAttribute("opacity",f.transform.op.v),(C||f.transform.mProps._mdf)&&f.transform.container.setAttribute("transform",f.transform.mProps.v.to2dCSS())}function l(){}function h(p,f,C){var N,a,O,H,F,V,q,J,G,ie,K,D=f.styles.length,U=f.lvl;for(V=0;V<D;V+=1){if(H=f.sh._mdf||C,f.styles[V].lvl<U){for(J=b.reset(),ie=U-f.styles[V].lvl,K=f.transformers.length-1;!H&&ie>0;)H=f.transformers[K].mProps._mdf||H,ie-=1,K-=1;if(H)for(ie=U-f.styles[V].lvl,K=f.transformers.length-1;ie>0;)J.transform((G=f.transformers[K].mProps.v.props)[0],G[1],G[2],G[3],G[4],G[5],G[6],G[7],G[8],G[9],G[10],G[11],G[12],G[13],G[14],G[15]),ie-=1,K-=1}else J=M;if(a=(q=f.sh.paths)._length,H){for(O="",N=0;N<a;N+=1)(F=q.shapes[N])&&F._length&&(O+=buildShapeString(F,F._length,F.c,J));f.caches[V]=O}else O=f.caches[V];f.styles[V].d+=!0===p.hd?"":O,f.styles[V]._mdf=H||f.styles[V]._mdf}}function r(p,f,C){var N=f.style;(f.c._mdf||C)&&N.pElem.setAttribute("fill","rgb("+bmFloor(f.c.v[0])+","+bmFloor(f.c.v[1])+","+bmFloor(f.c.v[2])+")"),(f.o._mdf||C)&&N.pElem.setAttribute("fill-opacity",f.o.v)}function d(p,f,C){y(p,f,C),g(0,f,C)}function y(p,f,C){var U,q,J,G,re,N=f.gf,a=f.g._hasOpacity,O=f.s.v,H=f.e.v;if((f.o._mdf||C)&&f.style.pElem.setAttribute("gf"===p.ty?"fill-opacity":"stroke-opacity",f.o.v),f.s._mdf||C){var V=1===p.t?"x1":"cx",D="x1"===V?"y1":"cy";N.setAttribute(V,O[0]),N.setAttribute(D,O[1]),a&&!f.g._collapsable&&(f.of.setAttribute(V,O[0]),f.of.setAttribute(D,O[1]))}if(f.g._cmdf||C){var ie=f.g.c;for(J=(U=f.cst).length,q=0;q<J;q+=1)(G=U[q]).setAttribute("offset",ie[4*q]+"%"),G.setAttribute("stop-color","rgb("+ie[4*q+1]+","+ie[4*q+2]+","+ie[4*q+3]+")")}if(a&&(f.g._omdf||C)){var K=f.g.o;for(J=(U=f.g._collapsable?f.cst:f.ost).length,q=0;q<J;q+=1)G=U[q],f.g._collapsable||G.setAttribute("offset",K[2*q]+"%"),G.setAttribute("stop-opacity",K[2*q+1])}if(1===p.t)(f.e._mdf||C)&&(N.setAttribute("x2",H[0]),N.setAttribute("y2",H[1]),a&&!f.g._collapsable&&(f.of.setAttribute("x2",H[0]),f.of.setAttribute("y2",H[1])));else if((f.s._mdf||f.e._mdf||C)&&(re=Math.sqrt(Math.pow(O[0]-H[0],2)+Math.pow(O[1]-H[1],2)),N.setAttribute("r",re),a&&!f.g._collapsable&&f.of.setAttribute("r",re)),f.e._mdf||f.h._mdf||f.a._mdf||C){re||(re=Math.sqrt(Math.pow(O[0]-H[0],2)+Math.pow(O[1]-H[1],2)));var oe=Math.atan2(H[1]-O[1],H[0]-O[0]),B=f.h.v;B>=1?B=.99:B<=-1&&(B=-.99);var s=re*B,_=Math.cos(oe+f.a.v)*s+O[0],w=Math.sin(oe+f.a.v)*s+O[1];N.setAttribute("fx",_),N.setAttribute("fy",w),a&&!f.g._collapsable&&(f.of.setAttribute("fx",_),f.of.setAttribute("fy",w))}}function g(p,f,C){var N=f.style,a=f.d;a&&(a._mdf||C)&&a.dashStr&&(N.pElem.setAttribute("stroke-dasharray",a.dashStr),N.pElem.setAttribute("stroke-dashoffset",a.dashoffset[0])),f.c&&(f.c._mdf||C)&&N.pElem.setAttribute("stroke","rgb("+bmFloor(f.c.v[0])+","+bmFloor(f.c.v[1])+","+bmFloor(f.c.v[2])+")"),(f.o._mdf||C)&&N.pElem.setAttribute("stroke-opacity",f.o.v),(f.w._mdf||C)&&(N.pElem.setAttribute("stroke-width",f.w.v),N.msElem&&N.msElem.setAttribute("stroke-width",f.w.v))}return{createRenderFunction:function t(p){switch(p.ty){case"fl":return r;case"gf":return y;case"gs":return d;case"st":return g;case"sh":case"el":case"rc":case"sr":return h;case"tr":return e;case"no":return l;default:return null}}}}();function SVGShapeElement(M,b,n){this.shapes=[],this.shapesData=M.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(M,b,n),this.prevViewData=[]}function LetterProps(M,b,n,t,e,l){this.o=M,this.sw=b,this.sc=n,this.fc=t,this.m=e,this.p=l,this._mdf={o:!0,sw:!!b,sc:!!n,fc:!!t,m:!0,p:!0}}function TextProperty(M,b){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=b,this.elem=M,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var M,n,t,l,b=this.shapes.length,e=this.stylesList.length,h=[],r=!1;for(t=0;t<e;t+=1){for(l=this.stylesList[t],r=!1,h.length=0,M=0;M<b;M+=1)-1!==(n=this.shapes[M]).styles.indexOf(l)&&(h.push(n),r=n._isAnimated||r);h.length>1&&r&&this.setShapesAsAnimated(h)}},SVGShapeElement.prototype.setShapesAsAnimated=function(M){var b,n=M.length;for(b=0;b<n;b+=1)M[b].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(M,b){var n,t=new SVGStyleData(M,b),e=t.pElem;return"st"===M.ty?n=new SVGStrokeStyleData(this,M,t):"fl"===M.ty?n=new SVGFillStyleData(this,M,t):"gf"===M.ty||"gs"===M.ty?(n=new("gf"===M.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,M,t),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),e.setAttribute("mask","url("+getLocationHref()+"#"+n.maskId+")"))):"no"===M.ty&&(n=new SVGNoStyleData(this,M,t)),("st"===M.ty||"gs"===M.ty)&&(e.setAttribute("stroke-linecap",lineCapEnum[M.lc||2]),e.setAttribute("stroke-linejoin",lineJoinEnum[M.lj||2]),e.setAttribute("fill-opacity","0"),1===M.lj&&e.setAttribute("stroke-miterlimit",M.ml)),2===M.r&&e.setAttribute("fill-rule","evenodd"),M.ln&&e.setAttribute("id",M.ln),M.cl&&e.setAttribute("class",M.cl),M.bm&&(e.style["mix-blend-mode"]=getBlendMode(M.bm)),this.stylesList.push(t),this.addToAnimatedContents(M,n),n},SVGShapeElement.prototype.createGroupElement=function(M){var b=new ShapeGroupData;return M.ln&&b.gr.setAttribute("id",M.ln),M.cl&&b.gr.setAttribute("class",M.cl),M.bm&&(b.gr.style["mix-blend-mode"]=getBlendMode(M.bm)),b},SVGShapeElement.prototype.createTransformElement=function(M,b){var n=TransformPropertyFactory.getTransformProperty(this,M,this),t=new SVGTransformData(n,n.o,b);return this.addToAnimatedContents(M,t),t},SVGShapeElement.prototype.createShapeElement=function(M,b,n){var t=4;"rc"===M.ty?t=5:"el"===M.ty?t=6:"sr"===M.ty&&(t=7);var l=new SVGShapeData(b,n,ShapePropertyFactory.getShapeProp(this,M,t,this));return this.shapes.push(l),this.addShapeToModifiers(l),this.addToAnimatedContents(M,l),l},SVGShapeElement.prototype.addToAnimatedContents=function(M,b){for(var n=0,t=this.animatedContents.length;n<t;){if(this.animatedContents[n].element===b)return;n+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(M),element:b,data:M})},SVGShapeElement.prototype.setElementStyles=function(M){var n,b=M.styles,t=this.stylesList.length;for(n=0;n<t;n+=1)this.stylesList[n].closed||b.push(this.stylesList[n])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var M,b=this.itemsData.length;for(M=0;M<b;M+=1)this.prevViewData[M]=this.itemsData[M];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),b=this.dynamicProperties.length,M=0;M<b;M+=1)this.dynamicProperties[M].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(M,b,n,t,e,l,h){var d,g,p,a,O,r=[].concat(l),y=M.length-1,f=[],C=[];for(d=y;d>=0;d-=1){if((O=this.searchProcessedElement(M[d]))?b[d]=n[O-1]:M[d]._render=h,"fl"===M[d].ty||"st"===M[d].ty||"gf"===M[d].ty||"gs"===M[d].ty||"no"===M[d].ty)O?b[d].style.closed=!1:b[d]=this.createStyleElement(M[d],e),M[d]._render&&b[d].style.pElem.parentNode!==t&&t.appendChild(b[d].style.pElem),f.push(b[d].style);else if("gr"===M[d].ty){if(O)for(p=b[d].it.length,g=0;g<p;g+=1)b[d].prevViewData[g]=b[d].it[g];else b[d]=this.createGroupElement(M[d]);this.searchShapes(M[d].it,b[d].it,b[d].prevViewData,b[d].gr,e+1,r,h),M[d]._render&&b[d].gr.parentNode!==t&&t.appendChild(b[d].gr)}else"tr"===M[d].ty?(O||(b[d]=this.createTransformElement(M[d],t)),r.push(b[d].transform)):"sh"===M[d].ty||"rc"===M[d].ty||"el"===M[d].ty||"sr"===M[d].ty?(O||(b[d]=this.createShapeElement(M[d],r,e)),this.setElementStyles(b[d])):"tm"===M[d].ty||"rd"===M[d].ty||"ms"===M[d].ty||"pb"===M[d].ty||"zz"===M[d].ty||"op"===M[d].ty?(O?(a=b[d]).closed=!1:((a=ShapeModifiers.getModifier(M[d].ty)).init(this,M[d]),b[d]=a,this.shapeModifiers.push(a)),C.push(a)):"rp"===M[d].ty&&(O?(a=b[d]).closed=!0:(a=ShapeModifiers.getModifier(M[d].ty),b[d]=a,a.init(this,M,d,b),this.shapeModifiers.push(a),h=!1),C.push(a));this.addProcessedElement(M[d],d+1)}for(y=f.length,d=0;d<y;d+=1)f[d].closed=!0;for(y=C.length,d=0;d<y;d+=1)C[d].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var M,b=this.stylesList.length;for(M=0;M<b;M+=1)this.stylesList[M].reset();for(this.renderShape(),M=0;M<b;M+=1)(this.stylesList[M]._mdf||this._isFirstFrame)&&(this.stylesList[M].msElem&&(this.stylesList[M].msElem.setAttribute("d",this.stylesList[M].d),this.stylesList[M].d="M0 0"+this.stylesList[M].d),this.stylesList[M].pElem.setAttribute("d",this.stylesList[M].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var M,n,b=this.animatedContents.length;for(M=0;M<b;M+=1)n=this.animatedContents[M],(this._isFirstFrame||n.element._isAnimated)&&!0!==n.data&&n.fn(n.data,n.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(M,b,n,t,e,l){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var h=!1;return this.o!==M&&(this.o=M,this._mdf.o=!0,h=!0),this.sw!==b&&(this.sw=b,this._mdf.sw=!0,h=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,h=!0),this.fc!==t&&(this.fc=t,this._mdf.fc=!0,h=!0),this.m!==e&&(this.m=e,this._mdf.m=!0,h=!0),l.length&&(this.p[0]!==l[0]||this.p[1]!==l[1]||this.p[4]!==l[4]||this.p[5]!==l[5]||this.p[12]!==l[12]||this.p[13]!==l[13])&&(this.p=l,this._mdf.p=!0,h=!0),h},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(M,b){for(var n in b)Object.prototype.hasOwnProperty.call(b,n)&&(M[n]=b[n]);return M},TextProperty.prototype.setCurrentData=function(M){M.__complete||this.completeTextData(M),this.currentData=M,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(M){this.effectsSequence.push(M),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(M){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||M){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var b=this.currentData,n=this.keysIndex;if(this.lock)return void this.setCurrentData(this.currentData);this.lock=!0,this._mdf=!1;var t,e=this.effectsSequence.length,l=M||this.data.d.k[this.keysIndex].s;for(t=0;t<e;t+=1)l=this.effectsSequence[t](n!==this.keysIndex?l:this.currentData,l.t);b!==l&&this.setCurrentData(l),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var M=this.data.d.k,b=this.elem.comp.renderedFrame,n=0,t=M.length;n<=t-1&&!(n===t-1||M[n+1].t>b);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(M){for(var e,l,b=[],n=0,t=M.length,h=!1;n<t;)e=M.charCodeAt(n),FontManager.isCombinedCharacter(e)?b[b.length-1]+=M.charAt(n):e>=55296&&e<=56319?(l=M.charCodeAt(n+1))>=56320&&l<=57343?(h||FontManager.isModifier(e,l)?(b[b.length-1]+=M.substr(n,2),h=!1):b.push(M.substr(n,2)),n+=1):b.push(M.charAt(n)):e>56319?(l=M.charCodeAt(n+1),FontManager.isZeroWidthJoiner(e,l)?(h=!0,b[b.length-1]+=M.substr(n,2),n+=1):b.push(M.charAt(n))):FontManager.isZeroWidthJoiner(e)?(b[b.length-1]+=M.charAt(n),h=!0):b.push(M.charAt(n)),n+=1;return b},TextProperty.prototype.completeTextData=function(M){M.__complete=!0;var e,l,h,d,O,H,V,b=this.elem.globalData.fontManager,n=this.data,t=[],r=0,y=n.m.g,g=0,p=0,f=0,C=[],N=0,a=0,F=b.getFontByName(M.f),D=0,U=getFontProperties(F);M.fWeight=U.weight,M.fStyle=U.style,M.finalSize=M.s,M.finalText=this.buildFinalText(M.t),l=M.finalText.length,M.finalLineHeight=M.lh;var J,q=M.tr/1e3*M.finalSize;if(M.sz)for(var re,oe,G=!0,ie=M.sz[0],K=M.sz[1];G;){re=0,N=0,l=(oe=this.buildFinalText(M.t)).length,q=M.tr/1e3*M.finalSize;var B=-1;for(e=0;e<l;e+=1)J=oe[e].charCodeAt(0),h=!1," "===oe[e]?B=e:(13===J||3===J)&&(N=0,h=!0,re+=M.finalLineHeight||1.2*M.finalSize),b.chars?(V=b.getCharData(oe[e],F.fStyle,F.fFamily),D=h?0:V.w*M.finalSize/100):D=b.measureText(oe[e],M.f,M.finalSize),N+D>ie&&" "!==oe[e]?(-1===B?l+=1:e=B,re+=M.finalLineHeight||1.2*M.finalSize,oe.splice(e,B===e?1:0,"\r"),B=-1,N=0):(N+=D,N+=q);re+=F.ascent*M.finalSize/100,this.canResize&&M.finalSize>this.minimumFontSize&&K<re?(M.finalSize-=1,M.finalLineHeight=M.finalSize*M.lh/M.s):(M.finalText=oe,l=M.finalText.length,G=!1)}N=-q,D=0;var _,s=0;for(e=0;e<l;e+=1)if(h=!1,13===(J=(_=M.finalText[e]).charCodeAt(0))||3===J?(s=0,C.push(N),a=N>a?N:a,N=-2*q,d="",h=!0,f+=1):d=_,b.chars?(V=b.getCharData(_,F.fStyle,b.getFontByName(M.f).fFamily),D=h?0:V.w*M.finalSize/100):D=b.measureText(d,M.f,M.finalSize)," "===_?s+=D+q:(N+=D+q+s,s=0),t.push({l:D,an:D,add:g,n:h,anIndexes:[],val:d,line:f,animatorJustifyOffset:0}),2==y){if(g+=D,""===d||" "===d||e===l-1){for((""===d||" "===d)&&(g-=D);p<=e;)t[p].an=g,t[p].ind=r,t[p].extra=D,p+=1;r+=1,g=0}}else if(3==y){if(g+=D,""===d||e===l-1){for(""===d&&(g-=D);p<=e;)t[p].an=g,t[p].ind=r,t[p].extra=D,p+=1;g=0,r+=1}}else t[r].ind=r,t[r].extra=0,r+=1;if(M.l=t,a=N>a?N:a,C.push(N),M.sz)M.boxWidth=M.sz[0],M.justifyOffset=0;else switch(M.boxWidth=a,M.j){case 1:M.justifyOffset=-M.boxWidth;break;case 2:M.justifyOffset=-M.boxWidth/2;break;default:M.justifyOffset=0}M.lineWidths=C;var E,x,w=n.a;H=w.length;var j,$,Y=[];for(O=0;O<H;O+=1){for((E=w[O]).a.sc&&(M.strokeColorAnim=!0),E.a.sw&&(M.strokeWidthAnim=!0),(E.a.fc||E.a.fh||E.a.fs||E.a.fb)&&(M.fillColorAnim=!0),$=0,j=E.s.b,e=0;e<l;e+=1)(x=t[e]).anIndexes[O]=$,(1==j&&""!==x.val||2==j&&""!==x.val&&" "!==x.val||3==j&&(x.n||" "==x.val||e==l-1)||4==j&&(x.n||e==l-1))&&(1===E.s.rn&&Y.push($),$+=1);n.a[O].s.totalChars=$;var W,u=-1;if(1===E.s.rn)for(e=0;e<l;e+=1)u!=(x=t[e]).anIndexes[O]&&(u=x.anIndexes[O],W=Y.splice(Math.floor(Math.random()*Y.length),1)[0]),x.anIndexes[O]=W}M.yOffset=M.finalLineHeight||1.2*M.finalSize,M.ls=M.ls||0,M.ascent=F.ascent*M.finalSize/100},TextProperty.prototype.updateDocumentData=function(M,b){var n=this.copyData({},this.data.d.k[b=void 0===b?this.keysIndex:b].s);n=this.copyData(n,M),this.data.d.k[b].s=n,this.recalculate(b),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(M){var b=this.data.d.k[M].s;b.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(b)},TextProperty.prototype.canResizeFont=function(M){this.canResize=M,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(M){this.minimumFontSize=Math.floor(M)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var M=Math.max,b=Math.min,n=Math.floor;function t(l,h){this._currentTextLength=-1,this.k=!1,this.data=h,this.elem=l,this.comp=l.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(l),this.s=PropertyFactory.getProp(l,h.s||{k:0},0,0,this),this.e="e"in h?PropertyFactory.getProp(l,h.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(l,h.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(l,h.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(l,h.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(l,h.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(l,h.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return t.prototype={getMult:function(h){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var r=0,d=0,y=1,g=1;this.ne.v>0?r=this.ne.v/100:d=-this.ne.v/100,this.xe.v>0?y=1-this.xe.v/100:g=1+this.xe.v/100;var p=BezierFactory.getBezierEasing(r,d,y,g).get,f=0,C=this.finalS,N=this.finalE,a=this.data.sh;if(2===a)f=p(f=N===C?h>=N?1:0:M(0,b(.5/(N-C)+(h-C)/(N-C),1)));else if(3===a)f=p(f=N===C?h>=N?0:1:1-M(0,b(.5/(N-C)+(h-C)/(N-C),1)));else if(4===a)N===C?f=0:(f=M(0,b(.5/(N-C)+(h-C)/(N-C),1)))<.5?f*=2:f=1-2*(f-.5),f=p(f);else if(5===a){if(N===C)f=0;else{var O=N-C,H=-O/2+(h=b(M(0,h+.5-C),N-C)),F=O/2;f=Math.sqrt(1-H*H/(F*F))}f=p(f)}else 6===a?(N===C?f=0:(h=b(M(0,h+.5-C),N-C),f=(1+Math.cos(Math.PI+2*Math.PI*h/(N-C)))/2),f=p(f)):(h>=n(C)&&(f=M(0,b(h-C<0?b(N,1)-(C-h):N-h,1))),f=p(f));if(100!==this.sm.v){var V=.01*this.sm.v;0===V&&(V=1e-8);var D=.5-.5*V;f<D?f=0:(f=(f-D)/V)>1&&(f=1)}return f*this.a.v},getValue:function(h){this.iterateDynamicProperties(),this._mdf=h||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,h&&2===this.data.r&&(this.e.v=this._currentTextLength);var r=2===this.data.r?1:100/this.data.totalChars,d=this.o.v/r,y=this.s.v/r+d,g=this.e.v/r+d;if(y>g){var p=y;y=g,g=p}this.finalS=y,this.finalE=g}},extendPrototype([DynamicPropertyContainer],t),{getTextSelectorProp:function e(l,h,r){return new t(l,h,r)}}}();function TextAnimatorDataProperty(M,b,n){var t={propType:!1},e=PropertyFactory.getProp,l=b.a;this.a={r:l.r?e(M,l.r,0,degToRads,n):t,rx:l.rx?e(M,l.rx,0,degToRads,n):t,ry:l.ry?e(M,l.ry,0,degToRads,n):t,sk:l.sk?e(M,l.sk,0,degToRads,n):t,sa:l.sa?e(M,l.sa,0,degToRads,n):t,s:l.s?e(M,l.s,1,.01,n):t,a:l.a?e(M,l.a,1,0,n):t,o:l.o?e(M,l.o,0,.01,n):t,p:l.p?e(M,l.p,1,0,n):t,sw:l.sw?e(M,l.sw,0,0,n):t,sc:l.sc?e(M,l.sc,1,0,n):t,fc:l.fc?e(M,l.fc,1,0,n):t,fh:l.fh?e(M,l.fh,0,0,n):t,fs:l.fs?e(M,l.fs,0,.01,n):t,fb:l.fb?e(M,l.fb,0,.01,n):t,t:l.t?e(M,l.t,0,0,n):t},this.s=TextSelectorProp.getTextSelectorProp(M,b.s,n),this.s.t=b.s.t}function TextAnimatorProperty(M,b,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=M,this._renderType=b,this._elem=n,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var M,b=this._textData.a.length,t=PropertyFactory.getProp;for(M=0;M<b;M+=1)this._animatorsData[M]=new TextAnimatorDataProperty(this._elem,this._textData.a[M],this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:t(this._elem,this._textData.p.a,0,0,this),f:t(this._elem,this._textData.p.f,0,0,this),l:t(this._elem,this._textData.p.l,0,0,this),r:t(this._elem,this._textData.p.r,0,0,this),p:t(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=t(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(M,b){if(this.lettersChangedFlag=b,this._mdf||this._isFirstFrame||b||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var d,y,g,p,C,N,a,O,H,F,V,D,U,q,J,G,ie,re,n=this._moreOptions.alignment.v,t=this._animatorsData,e=this._textData,l=this.mHelper,h=this._renderType,r=this.renderedLetters.length,f=M.l;if(this._hasMaskedPath){if(re=this._pathData.m,!this._pathData.n||this._pathData._mdf){var B,oe=re.v;for(this._pathData.r.v&&(oe=oe.reverse()),C={tLength:0,segments:[]},p=oe._length-1,G=0,g=0;g<p;g+=1)B=bez.buildBezierData(oe.v[g],oe.v[g+1],[oe.o[g][0]-oe.v[g][0],oe.o[g][1]-oe.v[g][1]],[oe.i[g+1][0]-oe.v[g+1][0],oe.i[g+1][1]-oe.v[g+1][1]]),C.tLength+=B.segmentLength,C.segments.push(B),G+=B.segmentLength;g=p,re.v.c&&(B=bez.buildBezierData(oe.v[g],oe.v[0],[oe.o[g][0]-oe.v[g][0],oe.o[g][1]-oe.v[g][1]],[oe.i[0][0]-oe.v[0][0],oe.i[0][1]-oe.v[0][1]]),C.tLength+=B.segmentLength,C.segments.push(B),G+=B.segmentLength),this._pathData.pi=C}if(V=0,F=1,O=0,H=!0,q=(C=this._pathData.pi).segments,(N=this._pathData.f.v)<0&&re.v.c)for(C.tLength<Math.abs(N)&&(N=-Math.abs(N)%C.tLength),F=(U=q[V=q.length-1].points).length-1;N<0;)N+=U[F].partialLength,(F-=1)<0&&(F=(U=q[V-=1].points).length-1);D=(U=q[V].points)[F-1],J=(a=U[F]).partialLength}p=f.length,d=0,y=0;var w,x,j,$,s=1.2*M.finalSize*.714,_=!0;j=t.length;var Y,W,fe,ae,Ze,at,Be,Lt,_e,ne,be,Te,Ge,u=-1,ye=N,Qe=V,Ot=F,At=-1,$e="",ft=this.defaultPropsArray;if(2===M.j||1===M.j){var Ft=0,br=0,rt=2===M.j?-.5:-1,st=0,Dt=!0;for(g=0;g<p;g+=1)if(f[g].n){for(Ft&&(Ft+=br);st<g;)f[st].animatorJustifyOffset=Ft,st+=1;Ft=0,Dt=!0}else{for(x=0;x<j;x+=1)(w=t[x].a).t.propType&&(Dt&&2===M.j&&(br+=w.t.v*rt),Ft+=(Y=t[x].s.getMult(f[g].anIndexes[x],e.a[x].s.totalChars)).length?w.t.v*Y[0]*rt:w.t.v*Y*rt);Dt=!1}for(Ft&&(Ft+=br);st<g;)f[st].animatorJustifyOffset=Ft,st+=1}for(g=0;g<p;g+=1){if(l.reset(),Ze=1,f[g].n)d=0,y+=M.yOffset,y+=_?1:0,N=ye,_=!1,this._hasMaskedPath&&(D=(U=q[V=Qe].points)[(F=Ot)-1],J=(a=U[F]).partialLength,O=0),$e="",Te="",ne="",Ge="",ft=this.defaultPropsArray;else{if(this._hasMaskedPath){if(At!==f[g].line){switch(M.j){case 1:N+=G-M.lineWidths[f[g].line];break;case 2:N+=(G-M.lineWidths[f[g].line])/2}At=f[g].line}u!==f[g].ind&&(f[u]&&(N+=f[u].extra),N+=f[g].an/2,u=f[g].ind),N+=n[0]*f[g].an*.005;var ot=0;for(x=0;x<j;x+=1)(w=t[x].a).p.propType&&(ot+=(Y=t[x].s.getMult(f[g].anIndexes[x],e.a[x].s.totalChars)).length?w.p.v[0]*Y[0]:w.p.v[0]*Y),w.a.propType&&(ot+=(Y=t[x].s.getMult(f[g].anIndexes[x],e.a[x].s.totalChars)).length?w.a.v[0]*Y[0]:w.a.v[0]*Y);for(H=!0,this._pathData.a.v&&(N=.5*f[0].an+(G-this._pathData.f.v-.5*f[0].an-.5*f[f.length-1].an)*u/(p-1),N+=this._pathData.f.v);H;)O+J>=N+ot||!U?(fe=D.point[0]+(a.point[0]-D.point[0])*(ie=(N+ot-O)/a.partialLength),ae=D.point[1]+(a.point[1]-D.point[1])*ie,l.translate(-n[0]*f[g].an*.005,-n[1]*s*.01),H=!1):U&&(O+=a.partialLength,(F+=1)>=U.length&&(F=0,q[V+=1]?U=q[V].points:re.v.c?(F=0,U=q[V=0].points):(O-=a.partialLength,U=null)),U&&(D=a,J=(a=U[F]).partialLength));l.translate(-(W=f[g].an/2-f[g].add),0,0)}else l.translate(-(W=f[g].an/2-f[g].add),0,0),l.translate(-n[0]*f[g].an*.005,-n[1]*s*.01,0);for(x=0;x<j;x+=1)(w=t[x].a).t.propType&&(Y=t[x].s.getMult(f[g].anIndexes[x],e.a[x].s.totalChars),(0!==d||0!==M.j)&&(this._hasMaskedPath?N+=Y.length?w.t.v*Y[0]:w.t.v*Y:d+=Y.length?w.t.v*Y[0]:w.t.v*Y));for(M.strokeWidthAnim&&(Be=M.sw||0),M.strokeColorAnim&&(at=M.sc?[M.sc[0],M.sc[1],M.sc[2]]:[0,0,0]),M.fillColorAnim&&M.fc&&(Lt=[M.fc[0],M.fc[1],M.fc[2]]),x=0;x<j;x+=1)(w=t[x].a).a.propType&&((Y=t[x].s.getMult(f[g].anIndexes[x],e.a[x].s.totalChars)).length?l.translate(-w.a.v[0]*Y[0],-w.a.v[1]*Y[1],w.a.v[2]*Y[2]):l.translate(-w.a.v[0]*Y,-w.a.v[1]*Y,w.a.v[2]*Y));for(x=0;x<j;x+=1)(w=t[x].a).s.propType&&((Y=t[x].s.getMult(f[g].anIndexes[x],e.a[x].s.totalChars)).length?l.scale(1+(w.s.v[0]-1)*Y[0],1+(w.s.v[1]-1)*Y[1],1):l.scale(1+(w.s.v[0]-1)*Y,1+(w.s.v[1]-1)*Y,1));for(x=0;x<j;x+=1){if(w=t[x].a,Y=t[x].s.getMult(f[g].anIndexes[x],e.a[x].s.totalChars),w.sk.propType&&(Y.length?l.skewFromAxis(-w.sk.v*Y[0],w.sa.v*Y[1]):l.skewFromAxis(-w.sk.v*Y,w.sa.v*Y)),w.r.propType&&l.rotateZ(Y.length?-w.r.v*Y[2]:-w.r.v*Y),w.ry.propType&&l.rotateY(Y.length?w.ry.v*Y[1]:w.ry.v*Y),w.rx.propType&&l.rotateX(Y.length?w.rx.v*Y[0]:w.rx.v*Y),w.o.propType&&(Ze+=Y.length?(w.o.v*Y[0]-Ze)*Y[0]:(w.o.v*Y-Ze)*Y),M.strokeWidthAnim&&w.sw.propType&&(Be+=Y.length?w.sw.v*Y[0]:w.sw.v*Y),M.strokeColorAnim&&w.sc.propType)for(_e=0;_e<3;_e+=1)at[_e]+=Y.length?(w.sc.v[_e]-at[_e])*Y[0]:(w.sc.v[_e]-at[_e])*Y;if(M.fillColorAnim&&M.fc){if(w.fc.propType)for(_e=0;_e<3;_e+=1)Lt[_e]+=Y.length?(w.fc.v[_e]-Lt[_e])*Y[0]:(w.fc.v[_e]-Lt[_e])*Y;w.fh.propType&&(Lt=addHueToRGB(Lt,Y.length?w.fh.v*Y[0]:w.fh.v*Y)),w.fs.propType&&(Lt=addSaturationToRGB(Lt,Y.length?w.fs.v*Y[0]:w.fs.v*Y)),w.fb.propType&&(Lt=addBrightnessToRGB(Lt,Y.length?w.fb.v*Y[0]:w.fb.v*Y))}}for(x=0;x<j;x+=1)(w=t[x].a).p.propType&&(Y=t[x].s.getMult(f[g].anIndexes[x],e.a[x].s.totalChars),this._hasMaskedPath?Y.length?l.translate(0,w.p.v[1]*Y[0],-w.p.v[2]*Y[1]):l.translate(0,w.p.v[1]*Y,-w.p.v[2]*Y):Y.length?l.translate(w.p.v[0]*Y[0],w.p.v[1]*Y[1],-w.p.v[2]*Y[2]):l.translate(w.p.v[0]*Y,w.p.v[1]*Y,-w.p.v[2]*Y));if(M.strokeWidthAnim&&(ne=Be<0?0:Be),M.strokeColorAnim&&(be="rgb("+Math.round(255*at[0])+","+Math.round(255*at[1])+","+Math.round(255*at[2])+")"),M.fillColorAnim&&M.fc&&(Te="rgb("+Math.round(255*Lt[0])+","+Math.round(255*Lt[1])+","+Math.round(255*Lt[2])+")"),this._hasMaskedPath){if(l.translate(0,-M.ls),l.translate(0,n[1]*s*.01+y,0),this._pathData.p.v){var nt=180*Math.atan((a.point[1]-D.point[1])/(a.point[0]-D.point[0]))/Math.PI;a.point[0]<D.point[0]&&(nt+=180),l.rotate(-nt*Math.PI/180)}l.translate(fe,ae,0),N-=n[0]*f[g].an*.005,f[g+1]&&u!==f[g+1].ind&&(N+=f[g].an/2,N+=.001*M.tr*M.finalSize)}else{switch(l.translate(d,y,0),M.ps&&l.translate(M.ps[0],M.ps[1]+M.ascent,0),M.j){case 1:l.translate(f[g].animatorJustifyOffset+M.justifyOffset+(M.boxWidth-M.lineWidths[f[g].line]),0,0);break;case 2:l.translate(f[g].animatorJustifyOffset+M.justifyOffset+(M.boxWidth-M.lineWidths[f[g].line])/2,0,0)}l.translate(0,-M.ls),l.translate(W,0,0),l.translate(n[0]*f[g].an*.005,n[1]*s*.01,0),d+=f[g].l+.001*M.tr*M.finalSize}"html"===h?$e=l.toCSS():"svg"===h?$e=l.to2dCSS():ft=[l.props[0],l.props[1],l.props[2],l.props[3],l.props[4],l.props[5],l.props[6],l.props[7],l.props[8],l.props[9],l.props[10],l.props[11],l.props[12],l.props[13],l.props[14],l.props[15]],Ge=Ze}r<=g?($=new LetterProps(Ge,ne,be,Te,$e,ft),this.renderedLetters.push($),r+=1,this.lettersChangedFlag=!0):this.lettersChangedFlag=($=this.renderedLetters[g]).update(Ge,ne,be,Te,$e,ft)||this.lettersChangedFlag}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(M,b,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(M,b,n),this.textProperty=new TextProperty(this,M.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(M.t,this.renderType,this),this.initTransform(M,b,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(M){this._mdf=!1,this.prepareRenderableFrame(M),this.prepareProperties(M,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},ITextElement.prototype.createPathShape=function(M,b){var n,e,t=b.length,l="";for(n=0;n<t;n+=1)"sh"===b[n].ty&&(l+=buildShapeString(e=b[n].ks.k,e.i.length,!0,M));return l},ITextElement.prototype.updateDocumentData=function(M,b){this.textProperty.updateDocumentData(M,b)},ITextElement.prototype.canResizeFont=function(M){this.textProperty.canResizeFont(M)},ITextElement.prototype.setMinimumFontSize=function(M){this.textProperty.setMinimumFontSize(M)},ITextElement.prototype.applyTextPropertiesToMatrix=function(M,b,n,t,e){switch(M.ps&&b.translate(M.ps[0],M.ps[1]+M.ascent,0),b.translate(0,-M.ls,0),M.j){case 1:b.translate(M.justifyOffset+(M.boxWidth-M.lineWidths[n]),0,0);break;case 2:b.translate(M.justifyOffset+(M.boxWidth-M.lineWidths[n])/2,0,0)}b.translate(t,e,0)},ITextElement.prototype.buildColor=function(M){return"rgb("+Math.round(255*M[0])+","+Math.round(255*M[1])+","+Math.round(255*M[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){};var emptyShapeData={shapes:[]};function SVGTextLottieElement(M,b,n){this.textSpans=[],this.renderType="svg",this.initElement(M,b,n)}function ISolidElement(M,b,n){this.initElement(M,b,n)}function NullElement(M,b,n){this.initFrame(),this.initBaseData(M,b,n),this.initFrame(),this.initTransform(M,b,n),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(M,b,n){this.layers=M.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(M,b,n),this.tm=M.tm?PropertyFactory.getProp(this,M.tm,0,b.frameRate,this):{_placeholder:!0}}function SVGRenderer(M,b){this.animationItem=M,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var n="";if(b&&b.title){var t=createNS("title"),e=createElementID();t.setAttribute("id",e),t.textContent=b.title,this.svgElement.appendChild(t),n+=e}if(b&&b.description){var l=createNS("desc"),h=createElementID();l.setAttribute("id",h),l.textContent=b.description,this.svgElement.appendChild(l),n+=" "+h}n&&this.svgElement.setAttribute("aria-labelledby",n);var r=createNS("defs");this.svgElement.appendChild(r);var d=createNS("g");this.svgElement.appendChild(d),this.layerElement=d,this.renderConfig={preserveAspectRatio:b&&b.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:b&&b.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:b&&b.contentVisibility||"visible",progressiveLoad:b&&b.progressiveLoad||!1,hideOnTransparent:!(b&&!1===b.hideOnTransparent),viewBoxOnly:b&&b.viewBoxOnly||!1,viewBoxSize:b&&b.viewBoxSize||!1,className:b&&b.className||"",id:b&&b.id||"",focusable:b&&b.focusable,filterSize:{width:b&&b.filterSize&&b.filterSize.width||"100%",height:b&&b.filterSize&&b.filterSize.height||"100%",x:b&&b.filterSize&&b.filterSize.x||"0%",y:b&&b.filterSize&&b.filterSize.y||"0%"},width:b&&b.width,height:b&&b.height,runExpressions:!b||void 0===b.runExpressions||b.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:r,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function CVContextData(){var M;for(this.saved=[],this.cArrPos=0,this.cTr=new Matrix,this.cO=1,this.savedOp=createTypedArray("float32",15),M=0;M<15;M+=1)this.saved[M]=createTypedArray("float32",16);this._length=15}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(M){for(var b=0,n=M.length,t=[],e="";b<n;)M[b]===String.fromCharCode(13)||M[b]===String.fromCharCode(3)?(t.push(e),e=""):e+=M[b],b+=1;return t.push(e),t},SVGTextLottieElement.prototype.buildShapeData=function(M,b){if(M.shapes&&M.shapes.length){var n=M.shapes[0];if(n.it){var t=n.it[n.it.length-1];t.s&&(t.s.k[0]=b,t.s.k[1]=b)}}return M},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var M,b,n=this.textProperty.currentData;this.renderedLetters=createSizedArray(n?n.l.length:0),this.layerElement.setAttribute("fill",n.fc?this.buildColor(n.fc):"rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var t=this.globalData.fontManager.getFontByName(n.f);if(t.fClass)this.layerElement.setAttribute("class",t.fClass);else{this.layerElement.setAttribute("font-family",t.fFamily);var e=n.fWeight;this.layerElement.setAttribute("font-style",n.fStyle),this.layerElement.setAttribute("font-weight",e)}this.layerElement.setAttribute("aria-label",n.t);var h=n.l||[],r=!!this.globalData.fontManager.chars;b=h.length;var d,y=this.mHelper,p=this.data.singleShape,f=0,C=0,N=!0,a=.001*n.tr*n.finalSize;if(!p||r||n.sz){var D,V=this.textSpans.length;for(M=0;M<b;M+=1){if(this.textSpans[M]||(this.textSpans[M]={span:null,childSpan:null,glyph:null}),!r||!p||0===M){if(d=V>M?this.textSpans[M].span:createNS(r?"g":"text"),V<=M){if(d.setAttribute("stroke-linecap","butt"),d.setAttribute("stroke-linejoin","round"),d.setAttribute("stroke-miterlimit","4"),this.textSpans[M].span=d,r){var U=createNS("g");d.appendChild(U),this.textSpans[M].childSpan=U}this.textSpans[M].span=d,this.layerElement.appendChild(d)}d.style.display="inherit"}if(y.reset(),p&&(h[M].n&&(f=-a,C+=n.yOffset,C+=N?1:0,N=!1),this.applyTextPropertiesToMatrix(n,y,h[M].line,f,C),f+=h[M].l||0,f+=a),r){var q;if(1===(D=this.globalData.fontManager.getCharData(n.finalText[M],t.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily)).t)q=new SVGCompElement(D.data,this.globalData,this);else{var J=emptyShapeData;D.data&&D.data.shapes&&(J=this.buildShapeData(D.data,n.finalSize)),q=new SVGShapeElement(J,this.globalData,this)}if(this.textSpans[M].glyph){var G=this.textSpans[M].glyph;this.textSpans[M].childSpan.removeChild(G.layerElement),G.destroy()}this.textSpans[M].glyph=q,q._debug=!0,q.prepareFrame(0),q.renderFrame(),this.textSpans[M].childSpan.appendChild(q.layerElement),1===D.t&&this.textSpans[M].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else p&&d.setAttribute("transform","translate("+y.props[12]+","+y.props[13]+")"),d.textContent=h[M].val,d.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}p&&d&&d.setAttribute("d","")}else{var O=this.textContainer,H="start";switch(n.j){case 1:H="end";break;case 2:H="middle";break;default:H="start"}O.setAttribute("text-anchor",H),O.setAttribute("letter-spacing",a);var F=this.buildTextContents(n.finalText);for(b=F.length,C=n.ps?n.ps[1]+n.ascent:0,M=0;M<b;M+=1)(d=this.textSpans[M].span||createNS("tspan")).textContent=F[M],d.setAttribute("x",0),d.setAttribute("y",C),d.style.display="inherit",O.appendChild(d),this.textSpans[M]||(this.textSpans[M]={span:null,glyph:null}),this.textSpans[M].span=d,C+=n.finalLineHeight;this.layerElement.appendChild(O)}for(;M<this.textSpans.length;)this.textSpans[M].span.style.display="none",M+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var M=this.layerElement.getBBox();this.bbox={top:M.y,left:M.x,width:M.width,height:M.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var M,n,b=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,M=0;M<b;M+=1)(n=this.textSpans[M].glyph)&&(n.prepareFrame(this.comp.renderedFrame-this.data.st),n._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var M,b,e,l,h,n=this.textAnimator.renderedLetters,t=this.textProperty.currentData.l;for(b=t.length,M=0;M<b;M+=1)t[M].n||(e=n[M],l=this.textSpans[M].span,(h=this.textSpans[M].glyph)&&h.renderFrame(),e._mdf.m&&l.setAttribute("transform",e.m),e._mdf.o&&l.setAttribute("opacity",e.o),e._mdf.sw&&l.setAttribute("stroke-width",e.sw),e._mdf.sc&&l.setAttribute("stroke",e.sc),e._mdf.fc&&l.setAttribute("fill",e.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var M=createNS("rect");M.setAttribute("width",this.data.sw),M.setAttribute("height",this.data.sh),M.setAttribute("fill",this.data.sc),this.layerElement.appendChild(M)},NullElement.prototype.prepareFrame=function(M){this.prepareProperties(M,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(M){return new NullElement(M,this.globalData,this)},SVGRendererBase.prototype.createShape=function(M){return new SVGShapeElement(M,this.globalData,this)},SVGRendererBase.prototype.createText=function(M){return new SVGTextLottieElement(M,this.globalData,this)},SVGRendererBase.prototype.createImage=function(M){return new IImageElement(M,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(M){return new ISolidElement(M,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(M){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize?this.renderConfig.viewBoxSize:"0 0 "+M.w+" "+M.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",M.w),this.svgElement.setAttribute("height",M.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var b=this.globalData.defs;this.setupGlobalData(M,b),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=M;var n=createNS("clipPath"),t=createNS("rect");t.setAttribute("width",M.w),t.setAttribute("height",M.h),t.setAttribute("x",0),t.setAttribute("y",0);var e=createElementID();n.setAttribute("id",e),n.appendChild(t),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+e+")"),b.appendChild(n),this.layers=M.layers,this.elements=createSizedArray(M.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var M,b=this.layers?this.layers.length:0;for(M=0;M<b;M+=1)this.elements[M]&&this.elements[M].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(M){var b=0,n=this.layers.length;for(b=0;b<n;b+=1)if(this.layers[b].ind===M)return b;return-1},SVGRendererBase.prototype.buildItem=function(M){var b=this.elements;if(!b[M]&&99!==this.layers[M].ty){b[M]=!0;var n=this.createItem(this.layers[M]);if(b[M]=n,getExpressionsPlugin()&&(0===this.layers[M].ty&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,M),this.layers[M].tt){var t="tp"in this.layers[M]?this.findIndexByInd(this.layers[M].tp):M-1;if(-1===t)return;if(this.elements[t]&&!0!==this.elements[t]){var l=b[t].getMatte(this.layers[M].tt);n.setMatte(l)}else this.buildItem(t),this.addPendingElement(n)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var M=this.pendingElements.pop();if(M.checkParenting(),M.data.tt)for(var b=0,n=this.elements.length;b<n;){if(this.elements[b]===M){var t="tp"in M.data?this.findIndexByInd(M.data.tp):b-1,l=this.elements[t].getMatte(this.layers[b].tt);M.setMatte(l);break}b+=1}}},SVGRendererBase.prototype.renderFrame=function(M){if(this.renderedFrame!==M&&!this.destroyed){null===M?M=this.renderedFrame:this.renderedFrame=M,this.globalData.frameNum=M,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=M,this.globalData._mdf=!1;var b,n=this.layers.length;for(this.completeLayers||this.checkLayers(M),b=n-1;b>=0;b-=1)(this.completeLayers||this.elements[b])&&this.elements[b].prepareFrame(M-this.layers[b].st);if(this.globalData._mdf)for(b=0;b<n;b+=1)(this.completeLayers||this.elements[b])&&this.elements[b].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(M,b){var n=M.getBaseElement();if(n){for(var e,t=0;t<b;)this.elements[t]&&!0!==this.elements[t]&&this.elements[t].getBaseElement()&&(e=this.elements[t].getBaseElement()),t+=1;e?this.layerElement.insertBefore(n,e):this.layerElement.appendChild(n)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(M,b,n){this.initFrame(),this.initBaseData(M,b,n),this.initTransform(M,b,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!b.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(M){if(this._mdf=!1,this.prepareRenderableFrame(M),this.prepareProperties(M,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=M/this.data.sr;else{var b=this.tm.v;b===this.data.op&&(b=this.data.op-1),this.renderedFrame=b}var n,t=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=t-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var M,b=this.layers.length;for(M=0;M<b;M+=1)(this.completeLayers||this.elements[M])&&this.elements[M].renderFrame()},ICompElement.prototype.setElements=function(M){this.elements=M},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var M,b=this.layers.length;for(M=0;M<b;M+=1)this.elements[M]&&this.elements[M].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(M){return new SVGCompElement(M,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(M){return new SVGCompElement(M,this.globalData,this)},CVContextData.prototype.duplicate=function(){var M=2*this._length,b=this.savedOp;this.savedOp=createTypedArray("float32",M),this.savedOp.set(b);var n=0;for(n=this._length;n<M;n+=1)this.saved[n]=createTypedArray("float32",16);this._length=M},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.cO=1},CVContextData.prototype.popTransform=function(){var b,M=this.saved[this.cArrPos],n=this.cTr.props;for(b=0;b<16;b+=1)n[b]=M[b];return M},CVContextData.prototype.popOpacity=function(){var M=this.savedOp[this.cArrPos];return this.cO=M,M},CVContextData.prototype.pop=function(){return this.cArrPos-=1,{transform:this.popTransform(),opacity:this.popOpacity()}},CVContextData.prototype.push=function(){var M=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var b,n=this.saved[this.cArrPos];for(b=0;b<16;b+=1)n[b]=M[b];this.savedOp[this.cArrPos]=this.cO,this.cArrPos+=1},CVContextData.prototype.getTransform=function(){return this.cTr},CVContextData.prototype.getOpacity=function(){return this.cO},CVContextData.prototype.setOpacity=function(M){this.cO=M},ShapeTransformManager.prototype={addTransformSequence:function(b){var n,t=b.length,e="_";for(n=0;n<t;n+=1)e+=b[n].transform.key+"_";var l=this.sequences[e];return l||(l={transforms:[].concat(b),finalTransform:new Matrix,_mdf:!1},this.sequences[e]=l,this.sequenceList.push(l)),l},processSequence:function(b,n){for(var t=0,e=b.transforms.length,l=n;t<e&&!n;){if(b.transforms[t].transform.mProps._mdf){l=!0;break}t+=1}var h;if(l)for(b.finalTransform.reset(),t=e-1;t>=0;t-=1)b.finalTransform.transform((h=b.transforms[t].transform.mProps.v.props)[0],h[1],h[2],h[3],h[4],h[5],h[6],h[7],h[8],h[9],h[10],h[11],h[12],h[13],h[14],h[15]);b._mdf=l},processSequences:function(b){var n,t=this.sequenceList.length;for(n=0;n<t;n+=1)this.processSequence(this.sequenceList[n],b)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var b="__lottie_element_luma_buffer",n=null,t=null,e=null;function h(){n||(e=function l(){var d=createNS("svg"),y=createNS("filter"),g=createNS("feColorMatrix");return y.setAttribute("id",b),g.setAttribute("type","matrix"),g.setAttribute("color-interpolation-filters","sRGB"),g.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),y.appendChild(g),d.appendChild(y),d.setAttribute("id",b+"_svg"),featureSupport.svgLumaHidden&&(d.style.display="none"),d}(),document.body.appendChild(e),n=createTag("canvas"),(t=n.getContext("2d")).filter="url(#"+b+")",t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1))}return{load:h,get:function r(d){return n||h(),n.width=d.width,n.height=d.height,t.filter="url(#"+b+")",n}}};function createCanvas(M,b){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(M,b);var n=createTag("canvas");return n.width=M,n.height=b,n}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas};function CVEffects(){}function CVMaskElement(M,b){this.data=M,this.element=b,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var n,t=this.masksProperties.length,e=!1;for(n=0;n<t;n+=1)"n"!==this.masksProperties[n].mode&&(e=!0),this.viewData[n]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[n],3);this.hasMasks=e,e&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(){},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var n,e,l,h,M=this.element.finalTransform.mat,b=this.element.canvasContext,t=this.masksProperties.length;for(b.beginPath(),n=0;n<t;n+=1)if("n"!==this.masksProperties[n].mode){this.masksProperties[n].inv&&(b.moveTo(0,0),b.lineTo(this.element.globalData.compSize.w,0),b.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),b.lineTo(0,this.element.globalData.compSize.h),b.lineTo(0,0)),e=M.applyToPointArray((h=this.viewData[n].v).v[0][0],h.v[0][1],0),b.moveTo(e[0],e[1]);var r,d=h._length;for(r=1;r<d;r+=1)l=M.applyToTriplePoints(h.o[r-1],h.i[r],h.v[r]),b.bezierCurveTo(l[0],l[1],l[2],l[3],l[4],l[5]);l=M.applyToTriplePoints(h.o[r-1],h.i[0],h.v[0]),b.bezierCurveTo(l[0],l[1],l[2],l[3],l[4],l[5])}this.element.globalData.renderer.save(!0),b.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(M,b,n,t){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var e=4;"rc"===b.ty?e=5:"el"===b.ty?e=6:"sr"===b.ty&&(e=7),this.sh=ShapePropertyFactory.getShapeProp(M,b,e,M);var l,r,h=n.length;for(l=0;l<h;l+=1)n[l].closed||(r={transforms:t.addTransformSequence(n[l].transforms),trNodes:[]},this.styledShapes.push(r),n[l].elements.push(r))}function CVShapeElement(M,b,n){this.shapes=[],this.shapesData=M.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(M,b,n)}function CVTextElement(M,b,n){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(M,b,n)}function CVImageElement(M,b,n){this.assetData=b.getAssetData(M.refId),this.img=b.imageLoader.getAsset(this.assetData),this.initElement(M,b,n)}function CVSolidElement(M,b,n){this.initElement(M,b,n)}function CanvasRendererBase(M,b){this.animationItem=M,this.renderConfig={clearCanvas:!b||void 0===b.clearCanvas||b.clearCanvas,context:b&&b.context||null,progressiveLoad:b&&b.progressiveLoad||!1,preserveAspectRatio:b&&b.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:b&&b.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:b&&b.contentVisibility||"visible",className:b&&b.className||"",id:b&&b.id||""},this.renderConfig.dpr=b&&b.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=b&&b.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas"}function CVCompElement(M,b,n){this.completeLayers=!1,this.layers=M.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(M,b,n),this.tm=M.tm?PropertyFactory.getProp(this,M.tm,0,b.frameRate,this):{_placeholder:!0}}function CanvasRenderer(M,b){this.animationItem=M,this.renderConfig={clearCanvas:!b||void 0===b.clearCanvas||b.clearCanvas,context:b&&b.context||null,progressiveLoad:b&&b.progressiveLoad||!1,preserveAspectRatio:b&&b.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:b&&b.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:b&&b.contentVisibility||"visible",className:b&&b.className||"",id:b&&b.id||"",runExpressions:!b||void 0===b.runExpressions||b.runExpressions},this.renderConfig.dpr=b&&b.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=b&&b.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas"}function HBaseElement(){}function HSolidElement(M,b,n){this.initElement(M,b,n)}function HShapeElement(M,b,n){this.shapes=[],this.shapesData=M.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(M,b,n),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(M,b,n){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(M,b,n)}function HCameraElement(M,b,n){this.initFrame(),this.initBaseData(M,b,n),this.initHierarchy();var t=PropertyFactory.getProp;if(this.pe=t(this,M.pe,0,0,this),M.ks.p.s?(this.px=t(this,M.ks.p.x,1,0,this),this.py=t(this,M.ks.p.y,1,0,this),this.pz=t(this,M.ks.p.z,1,0,this)):this.p=t(this,M.ks.p,1,0,this),M.ks.a&&(this.a=t(this,M.ks.a,1,0,this)),M.ks.or.k.length&&M.ks.or.k[0].to){var e,l=M.ks.or.k.length;for(e=0;e<l;e+=1)M.ks.or.k[e].to=null,M.ks.or.k[e].ti=null}this.or=t(this,M.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=t(this,M.ks.rx,0,degToRads,this),this.ry=t(this,M.ks.ry,0,degToRads,this),this.rz=t(this,M.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(M,b,n){this.assetData=b.getAssetData(M.refId),this.initElement(M,b,n)}function HybridRendererBase(M,b){this.animationItem=M,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:b&&b.className||"",imagePreserveAspectRatio:b&&b.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(b&&!1===b.hideOnTransparent),filterSize:{width:b&&b.filterSize&&b.filterSize.width||"400%",height:b&&b.filterSize&&b.filterSize.height||"400%",x:b&&b.filterSize&&b.filterSize.x||"-100%",y:b&&b.filterSize&&b.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(M,b,n){this.layers=M.layers,this.supports3d=!M.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(M,b,n),this.tm=M.tm?PropertyFactory.getProp(this,M.tm,0,b.frameRate,this):{_placeholder:!0}}function HybridRenderer(M,b){this.animationItem=M,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:b&&b.className||"",imagePreserveAspectRatio:b&&b.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(b&&!1===b.hideOnTransparent),filterSize:{width:b&&b.filterSize&&b.filterSize.width||"400%",height:b&&b.filterSize&&b.filterSize.height||"400%",x:b&&b.filterSize&&b.filterSize.x||"-100%",y:b&&b.filterSize&&b.filterSize.y||"-100%"},runExpressions:!b||void 0===b.runExpressions||b.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var b=this.globalData.canvasContext,n=assetLoader.createCanvas(b.canvas.width,b.canvas.height);this.buffers.push(n);var t=assetLoader.createCanvas(b.canvas.width,b.canvas.height);this.buffers.push(t),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this)},createContent:function(){},setBlendMode:function(){var b=this.globalData;if(b.blendMode!==this.data.bm){b.blendMode=this.data.bm;var n=getBlendMode(this.data.bm);b.canvasContext.globalCompositeOperation=n}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(b){b.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var n=this.buffers[0].getContext("2d");this.clearCanvas(n),n.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var b=this.buffers[1],n=b.getContext("2d");if(this.clearCanvas(n),n.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var e=assetLoader.getLumaCanvas(this.canvasContext.canvas);e.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(e,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(b,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(b){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||b)){this.renderTransform(),this.renderRenderable(),this.setBlendMode();var n=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(n),this.globalData.renderer.ctxTransform(this.finalTransform.mat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.mProp.o.v),this.renderInnerContent(),this.globalData.renderer.restore(n),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(M,b){var n={data:M,type:M.ty,preTransforms:this.transformsManager.addTransformSequence(b),transforms:[],elements:[],closed:!0===M.hd},t={};if("fl"===M.ty||"st"===M.ty?(t.c=PropertyFactory.getProp(this,M.c,1,255,this),t.c.k||(n.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")")):("gf"===M.ty||"gs"===M.ty)&&(t.s=PropertyFactory.getProp(this,M.s,1,null,this),t.e=PropertyFactory.getProp(this,M.e,1,null,this),t.h=PropertyFactory.getProp(this,M.h||{k:0},0,.01,this),t.a=PropertyFactory.getProp(this,M.a||{k:0},0,degToRads,this),t.g=new GradientProperty(this,M.g,this)),t.o=PropertyFactory.getProp(this,M.o,0,.01,this),"st"===M.ty||"gs"===M.ty){if(n.lc=lineCapEnum[M.lc||2],n.lj=lineJoinEnum[M.lj||2],1==M.lj&&(n.ml=M.ml),t.w=PropertyFactory.getProp(this,M.w,0,null,this),t.w.k||(n.wi=t.w.v),M.d){var e=new DashProperty(this,M.d,"canvas",this);t.d=e,t.d.k||(n.da=t.d.dashArray,n.do=t.d.dashoffset[0])}}else n.r=2===M.r?"evenodd":"nonzero";return this.stylesList.push(n),t.style=n,t},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(M){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,M.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,M,this)}}},CVShapeElement.prototype.createShapeElement=function(M){var b=new CVShapeData(this,M,this.stylesList,this.transformsManager);return this.shapes.push(b),this.addShapeToModifiers(b),b},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var M,b=this.itemsData.length;for(M=0;M<b;M+=1)this.prevViewData[M]=this.itemsData[M];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),b=this.dynamicProperties.length,M=0;M<b;M+=1)this.dynamicProperties[M].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(M){var b,n=this.stylesList.length;for(b=0;b<n;b+=1)this.stylesList[b].closed||this.stylesList[b].transforms.push(M)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var M,b=this.stylesList.length;for(M=0;M<b;M+=1)this.stylesList[M].closed||this.stylesList[M].transforms.pop()},CVShapeElement.prototype.closeStyles=function(M){var b,n=M.length;for(b=0;b<n;b+=1)M[b].closed=!0},CVShapeElement.prototype.searchShapes=function(M,b,n,t,e){var l,r,d,p,f,C,h=M.length-1,y=[],g=[],N=[].concat(e);for(l=h;l>=0;l-=1){if((p=this.searchProcessedElement(M[l]))?b[l]=n[p-1]:M[l]._shouldRender=t,"fl"===M[l].ty||"st"===M[l].ty||"gf"===M[l].ty||"gs"===M[l].ty)p?b[l].style.closed=!1:b[l]=this.createStyleElement(M[l],N),y.push(b[l].style);else if("gr"===M[l].ty){if(p)for(d=b[l].it.length,r=0;r<d;r+=1)b[l].prevViewData[r]=b[l].it[r];else b[l]=this.createGroupElement(M[l]);this.searchShapes(M[l].it,b[l].it,b[l].prevViewData,t,N)}else"tr"===M[l].ty?(p||(C=this.createTransformElement(M[l]),b[l]=C),N.push(b[l]),this.addTransformToStyleList(b[l])):"sh"===M[l].ty||"rc"===M[l].ty||"el"===M[l].ty||"sr"===M[l].ty?p||(b[l]=this.createShapeElement(M[l])):"tm"===M[l].ty||"rd"===M[l].ty||"pb"===M[l].ty||"zz"===M[l].ty||"op"===M[l].ty?(p?(f=b[l]).closed=!1:((f=ShapeModifiers.getModifier(M[l].ty)).init(this,M[l]),b[l]=f,this.shapeModifiers.push(f)),g.push(f)):"rp"===M[l].ty&&(p?(f=b[l]).closed=!0:(f=ShapeModifiers.getModifier(M[l].ty),b[l]=f,f.init(this,M,l,b),this.shapeModifiers.push(f),t=!1),g.push(f));this.addProcessedElement(M[l],l+1)}for(this.removeTransformFromStyleList(),this.closeStyles(y),h=g.length,l=0;l<h;l+=1)g[l].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(M,b){(M._opMdf||b.op._mdf||this._isFirstFrame)&&(b.opacity=M.opacity,b.opacity*=b.op.v,b._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var M,n,t,e,l,h,r,g,p,b=this.stylesList.length,d=this.globalData.renderer,y=this.globalData.canvasContext;for(M=0;M<b;M+=1)if(("st"!==(g=(p=this.stylesList[M]).type)&&"gs"!==g||0!==p.wi)&&p.data._shouldRender&&0!==p.coOp&&0!==this.globalData.currentGlobalAlpha){for(d.save(),h=p.elements,"st"===g||"gs"===g?(y.strokeStyle="st"===g?p.co:p.grd,y.lineWidth=p.wi,y.lineCap=p.lc,y.lineJoin=p.lj,y.miterLimit=p.ml||0):y.fillStyle="fl"===g?p.co:p.grd,d.ctxOpacity(p.coOp),"st"!==g&&"gs"!==g&&y.beginPath(),d.ctxTransform(p.preTransforms.finalTransform.props),t=h.length,n=0;n<t;n+=1){for(("st"===g||"gs"===g)&&(y.beginPath(),p.da&&(y.setLineDash(p.da),y.lineDashOffset=p.do)),l=(r=h[n].trNodes).length,e=0;e<l;e+=1)"m"===r[e].t?y.moveTo(r[e].p[0],r[e].p[1]):"c"===r[e].t?y.bezierCurveTo(r[e].pts[0],r[e].pts[1],r[e].pts[2],r[e].pts[3],r[e].pts[4],r[e].pts[5]):y.closePath();("st"===g||"gs"===g)&&(y.stroke(),p.da&&y.setLineDash(this.dashResetter))}"st"!==g&&"gs"!==g&&y.fill(p.r),d.restore()}},CVShapeElement.prototype.renderShape=function(M,b,n,t){var e,h;for(h=M,e=b.length-1;e>=0;e-=1)"tr"===b[e].ty?this.renderShapeTransform(M,h=n[e].transform):"sh"===b[e].ty||"el"===b[e].ty||"rc"===b[e].ty||"sr"===b[e].ty?this.renderPath(b[e],n[e]):"fl"===b[e].ty?this.renderFill(b[e],n[e],h):"st"===b[e].ty?this.renderStroke(b[e],n[e],h):"gf"===b[e].ty||"gs"===b[e].ty?this.renderGradientFill(b[e],n[e],h):"gr"===b[e].ty&&this.renderShape(h,b[e].it,n[e].it);t&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(M,b){if(this._isFirstFrame||b._mdf||M.transforms._mdf){var e,l,h,n=M.trNodes,t=b.paths,r=t._length;n.length=0;var d=M.transforms.finalTransform;for(h=0;h<r;h+=1){var y=t.shapes[h];if(y&&y.v){for(l=y._length,e=1;e<l;e+=1)1===e&&n.push({t:"m",p:d.applyToPointArray(y.v[0][0],y.v[0][1],0)}),n.push({t:"c",pts:d.applyToTriplePoints(y.o[e-1],y.i[e],y.v[e])});1===l&&n.push({t:"m",p:d.applyToPointArray(y.v[0][0],y.v[0][1],0)}),y.c&&l&&(n.push({t:"c",pts:d.applyToTriplePoints(y.o[e-1],y.i[0],y.v[0])}),n.push({t:"z"}))}}M.trNodes=n}},CVShapeElement.prototype.renderPath=function(M,b){if(!0!==M.hd&&M._shouldRender){var n,t=b.styledShapes.length;for(n=0;n<t;n+=1)this.renderStyledShape(b.styledShapes[n],b.sh)}},CVShapeElement.prototype.renderFill=function(M,b,n){var t=b.style;(b.c._mdf||this._isFirstFrame)&&(t.co="rgb("+bmFloor(b.c.v[0])+","+bmFloor(b.c.v[1])+","+bmFloor(b.c.v[2])+")"),(b.o._mdf||n._opMdf||this._isFirstFrame)&&(t.coOp=b.o.v*n.opacity)},CVShapeElement.prototype.renderGradientFill=function(M,b,n){var e,t=b.style;if(!t.grd||b.g._mdf||b.s._mdf||b.e._mdf||1!==M.t&&(b.h._mdf||b.a._mdf)){var l=this.globalData.canvasContext,h=b.s.v,r=b.e.v;if(1===M.t)e=l.createLinearGradient(h[0],h[1],r[0],r[1]);else{var d=Math.sqrt(Math.pow(h[0]-r[0],2)+Math.pow(h[1]-r[1],2)),y=Math.atan2(r[1]-h[1],r[0]-h[0]),g=b.h.v;g>=1?g=.99:g<=-1&&(g=-.99);var p=d*g,f=Math.cos(y+b.a.v)*p+h[0],C=Math.sin(y+b.a.v)*p+h[1];e=l.createRadialGradient(f,C,0,h[0],h[1],d)}var N,a=M.g.p,O=b.g.c,H=1;for(N=0;N<a;N+=1)b.g._hasOpacity&&b.g._collapsable&&(H=b.g.o[2*N+1]),e.addColorStop(O[4*N]/100,"rgba("+O[4*N+1]+","+O[4*N+2]+","+O[4*N+3]+","+H+")");t.grd=e}t.coOp=b.o.v*n.opacity},CVShapeElement.prototype.renderStroke=function(M,b,n){var t=b.style,e=b.d;e&&(e._mdf||this._isFirstFrame)&&(t.da=e.dashArray,t.do=e.dashoffset[0]),(b.c._mdf||this._isFirstFrame)&&(t.co="rgb("+bmFloor(b.c.v[0])+","+bmFloor(b.c.v[1])+","+bmFloor(b.c.v[2])+")"),(b.o._mdf||n._opMdf||this._isFirstFrame)&&(t.coOp=b.o.v*n.opacity),(b.w._mdf||this._isFirstFrame)&&(t.wi=b.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var M=this.textProperty.currentData;this.renderedLetters=createSizedArray(M.l?M.l.length:0);var b=!1;M.fc?(b=!0,this.values.fill=this.buildColor(M.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=b;var n=!1;M.sc&&(n=!0,this.values.stroke=this.buildColor(M.sc),this.values.sWidth=M.sw);var e,l,t=this.globalData.fontManager.getFontByName(M.f),h=M.l,r=this.mHelper;this.stroke=n,this.values.fValue=M.finalSize+"px "+this.globalData.fontManager.getFontByName(M.f).fFamily,l=M.finalText.length;var d,y,g,p,f,C,N,a,O,H,F=this.data.singleShape,V=.001*M.tr*M.finalSize,D=0,U=0,q=!0,J=0;for(e=0;e<l;e+=1){y=(d=this.globalData.fontManager.getCharData(M.finalText[e],t.fStyle,this.globalData.fontManager.getFontByName(M.f).fFamily))&&d.data||{},r.reset(),F&&h[e].n&&(D=-V,U+=M.yOffset,U+=q?1:0,q=!1),N=(f=y.shapes?y.shapes[0].it:[]).length,r.scale(M.finalSize/100,M.finalSize/100),F&&this.applyTextPropertiesToMatrix(M,r,h[e].line,D,U),O=createSizedArray(N-1);var G=0;for(C=0;C<N;C+=1)if("sh"===f[C].ty){for(p=f[C].ks.k.i.length,a=f[C].ks.k,H=[],g=1;g<p;g+=1)1===g&&H.push(r.applyToX(a.v[0][0],a.v[0][1],0),r.applyToY(a.v[0][0],a.v[0][1],0)),H.push(r.applyToX(a.o[g-1][0],a.o[g-1][1],0),r.applyToY(a.o[g-1][0],a.o[g-1][1],0),r.applyToX(a.i[g][0],a.i[g][1],0),r.applyToY(a.i[g][0],a.i[g][1],0),r.applyToX(a.v[g][0],a.v[g][1],0),r.applyToY(a.v[g][0],a.v[g][1],0));H.push(r.applyToX(a.o[g-1][0],a.o[g-1][1],0),r.applyToY(a.o[g-1][0],a.o[g-1][1],0),r.applyToX(a.i[0][0],a.i[0][1],0),r.applyToY(a.i[0][0],a.i[0][1],0),r.applyToX(a.v[0][0],a.v[0][1],0),r.applyToY(a.v[0][0],a.v[0][1],0)),O[G]=H,G+=1}F&&(D+=h[e].l,D+=V),this.textSpans[J]?this.textSpans[J].elem=O:this.textSpans[J]={elem:O},J+=1}},CVTextElement.prototype.renderInnerContent=function(){var M=this.canvasContext;M.font=this.values.fValue,M.lineCap="butt",M.lineJoin="miter",M.miterLimit=4,this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var b,n,t,e,l,h,r=this.textAnimator.renderedLetters,d=this.textProperty.currentData.l;n=d.length;var y,C,N,g=null,p=null,f=null;for(b=0;b<n;b+=1)if(!d[b].n){if((y=r[b])&&(this.globalData.renderer.save(),this.globalData.renderer.ctxTransform(y.p),this.globalData.renderer.ctxOpacity(y.o)),this.fill){for(y&&y.fc?g!==y.fc&&(g=y.fc,M.fillStyle=y.fc):g!==this.values.fill&&(g=this.values.fill,M.fillStyle=this.values.fill),e=(C=this.textSpans[b].elem).length,this.globalData.canvasContext.beginPath(),t=0;t<e;t+=1)for(h=(N=C[t]).length,this.globalData.canvasContext.moveTo(N[0],N[1]),l=2;l<h;l+=6)this.globalData.canvasContext.bezierCurveTo(N[l],N[l+1],N[l+2],N[l+3],N[l+4],N[l+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.fill()}if(this.stroke){for(y&&y.sw?f!==y.sw&&(f=y.sw,M.lineWidth=y.sw):f!==this.values.sWidth&&(f=this.values.sWidth,M.lineWidth=this.values.sWidth),y&&y.sc?p!==y.sc&&(p=y.sc,M.strokeStyle=y.sc):p!==this.values.stroke&&(p=this.values.stroke,M.strokeStyle=this.values.stroke),e=(C=this.textSpans[b].elem).length,this.globalData.canvasContext.beginPath(),t=0;t<e;t+=1)for(h=(N=C[t]).length,this.globalData.canvasContext.moveTo(N[0],N[1]),l=2;l<h;l+=6)this.globalData.canvasContext.bezierCurveTo(N[l],N[l+1],N[l+2],N[l+3],N[l+4],N[l+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.stroke()}y&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var M=createTag("canvas");M.width=this.assetData.w,M.height=this.assetData.h;var h,r,b=M.getContext("2d"),n=this.img.width,t=this.img.height,e=n/t,l=this.assetData.w/this.assetData.h,d=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;e>l&&"xMidYMid slice"===d||e<l&&"xMidYMid slice"!==d?h=(r=t)*l:r=(h=n)/l,b.drawImage(this.img,(n-h)/2,(t-r)/2,h,r,0,0,this.assetData.w,this.assetData.h),this.img=M}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){var M=this.canvasContext;M.fillStyle=this.data.sc,M.fillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(M){return new CVShapeElement(M,this.globalData,this)},CanvasRendererBase.prototype.createText=function(M){return new CVTextElement(M,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(M){return new CVImageElement(M,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(M){return new CVSolidElement(M,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(M){if(1!==M[0]||0!==M[1]||0!==M[4]||1!==M[5]||0!==M[12]||0!==M[13]){if(!this.renderConfig.clearCanvas)return void this.canvasContext.transform(M[0],M[1],M[4],M[5],M[12],M[13]);this.transformMat.cloneFromProps(M);var b=this.contextData.getTransform(),n=b.props;this.transformMat.transform(n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8],n[9],n[10],n[11],n[12],n[13],n[14],n[15]),b.cloneFromProps(this.transformMat.props);var t=b.props;this.canvasContext.setTransform(t[0],t[1],t[4],t[5],t[12],t[13])}},CanvasRendererBase.prototype.ctxOpacity=function(M){var b=this.contextData.getOpacity();if(!this.renderConfig.clearCanvas)return this.canvasContext.globalAlpha*=M<0?0:M,void(this.globalData.currentGlobalAlpha=b);this.contextData.setOpacity(b*=M<0?0:M),this.globalData.currentGlobalAlpha!==b&&(this.canvasContext.globalAlpha=b,this.globalData.currentGlobalAlpha=b)},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(M){this.renderConfig.clearCanvas?(M&&this.canvasContext.save(),this.contextData.push()):this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(M){if(this.renderConfig.clearCanvas){M&&(this.canvasContext.restore(),this.globalData.blendMode="source-over");var b=this.contextData.pop(),n=b.transform,t=b.opacity;this.canvasContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13]),this.globalData.currentGlobalAlpha!==t&&(this.canvasContext.globalAlpha=t,this.globalData.currentGlobalAlpha=t)}else this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(M){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var b=this.animationItem.container.style;b.width="100%",b.height="100%";var n="0px 0px 0px";b.transformOrigin=n,b.mozTransformOrigin=n,b.webkitTransformOrigin=n,b["-webkit-transform"]=n,b.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.data=M,this.layers=M.layers,this.transformCanvas={w:M.w,h:M.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(M,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(M.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(M,b){var n,t,e,l;if(this.reset(),M?(t=b,this.canvasContext.canvas.width=n=M,this.canvasContext.canvas.height=t):(this.animationItem.wrapper&&this.animationItem.container?(n=this.animationItem.wrapper.offsetWidth,t=this.animationItem.wrapper.offsetHeight):(n=this.canvasContext.canvas.width,t=this.canvasContext.canvas.height),this.canvasContext.canvas.width=n*this.renderConfig.dpr,this.canvasContext.canvas.height=t*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var h=this.renderConfig.preserveAspectRatio.split(" "),r=h[1]||"meet",d=h[0]||"xMidYMid",y=d.substr(0,4),g=d.substr(4);(l=this.transformCanvas.w/this.transformCanvas.h)>(e=n/t)&&"meet"===r||l<e&&"slice"===r?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=t/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=t/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===y&&(l<e&&"meet"===r||l>e&&"slice"===r)?(n-this.transformCanvas.w*(t/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===y&&(l<e&&"meet"===r||l>e&&"slice"===r)?(n-this.transformCanvas.w*(t/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===g&&(l>e&&"meet"===r||l<e&&"slice"===r)?(t-this.transformCanvas.h*(n/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===g&&(l>e&&"meet"===r||l<e&&"slice"===r)?(t-this.transformCanvas.h*(n/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=t/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var M;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),M=(this.layers?this.layers.length:0)-1;M>=0;M-=1)this.elements[M]&&this.elements[M].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(M,b){if((this.renderedFrame!==M||!0!==this.renderConfig.clearCanvas||b)&&!this.destroyed&&-1!==M){this.renderedFrame=M,this.globalData.frameNum=M-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||b,this.globalData.projectInterface.currentFrame=M;var n,t=this.layers.length;for(this.completeLayers||this.checkLayers(M),n=0;n<t;n+=1)(this.completeLayers||this.elements[n])&&this.elements[n].prepareFrame(M-this.layers[n].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),n=t-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(M){var b=this.elements;if(!b[M]&&99!==this.layers[M].ty){var n=this.createItem(this.layers[M],this,this.globalData);b[M]=n,n.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var b,M=this.canvasContext;for(M.beginPath(),M.moveTo(0,0),M.lineTo(this.data.w,0),M.lineTo(this.data.w,this.data.h),M.lineTo(0,this.data.h),M.lineTo(0,0),M.clip(),b=this.layers.length-1;b>=0;b-=1)(this.completeLayers||this.elements[b])&&this.elements[b].renderFrame()},CVCompElement.prototype.destroy=function(){var M;for(M=this.layers.length-1;M>=0;M-=1)this.elements[M]&&this.elements[M].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(M){return new CVCompElement(M,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(M){return new CVCompElement(M,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var b=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var n=this.finalTransform.mat.toCSS();b.transform=n,b.webkitTransform=n}this.finalTransform._opMdf&&(b.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var M;this.data.hasMask?((M=createNS("rect")).setAttribute("width",this.data.sw),M.setAttribute("height",this.data.sh),M.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((M=createTag("div")).style.width=this.data.sw+"px",M.style.height=this.data.sh+"px",M.style.backgroundColor=this.data.sc),this.layerElement.appendChild(M)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var M;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),M=this.svgElement;else{M=createNS("svg");var b=this.comp.data?this.comp.data:this.globalData.compSize;M.setAttribute("width",b.w),M.setAttribute("height",b.h),M.appendChild(this.shapesContainer),this.layerElement.appendChild(M)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=M},HShapeElement.prototype.getTransformedPoint=function(M,b){var n,t=M.length;for(n=0;n<t;n+=1)b=M[n].mProps.v.applyToPointArray(b[0],b[1],0);return b},HShapeElement.prototype.calculateShapeBoundingBox=function(M,b){var e,h,r,d,y,n=M.sh.v,t=M.transformers,l=n._length;if(!(l<=1)){for(e=0;e<l-1;e+=1)h=this.getTransformedPoint(t,n.v[e]),r=this.getTransformedPoint(t,n.o[e]),d=this.getTransformedPoint(t,n.i[e+1]),y=this.getTransformedPoint(t,n.v[e+1]),this.checkBounds(h,r,d,y,b);n.c&&(h=this.getTransformedPoint(t,n.v[e]),r=this.getTransformedPoint(t,n.o[e]),d=this.getTransformedPoint(t,n.i[0]),y=this.getTransformedPoint(t,n.v[0]),this.checkBounds(h,r,d,y,b))}},HShapeElement.prototype.checkBounds=function(M,b,n,t,e){this.getBoundsOfCurve(M,b,n,t);var l=this.shapeBoundingBox;e.x=bmMin(l.left,e.x),e.xMax=bmMax(l.right,e.xMax),e.y=bmMin(l.top,e.y),e.yMax=bmMax(l.bottom,e.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(M,b,n,t){for(var l,h,r,d,y,g,p,e=[[M[0],t[0]],[M[1],t[1]]],f=0;f<2;++f)h=6*M[f]-12*b[f]+6*n[f],l=-3*M[f]+9*b[f]-9*n[f]+3*t[f],r=3*b[f]-3*M[f],h|=0,r|=0,0==(l|=0)&&0===h||(0===l?(d=-r/h)>0&&d<1&&e[f].push(this.calculateF(d,M,b,n,t,f)):(y=h*h-4*r*l)>=0&&((g=(-h+bmSqrt(y))/(2*l))>0&&g<1&&e[f].push(this.calculateF(g,M,b,n,t,f)),(p=(-h-bmSqrt(y))/(2*l))>0&&p<1&&e[f].push(this.calculateF(p,M,b,n,t,f))));this.shapeBoundingBox.left=bmMin.apply(null,e[0]),this.shapeBoundingBox.top=bmMin.apply(null,e[1]),this.shapeBoundingBox.right=bmMax.apply(null,e[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,e[1])},HShapeElement.prototype.calculateF=function(M,b,n,t,e,l){return bmPow(1-M,3)*b[l]+3*bmPow(1-M,2)*M*n[l]+3*(1-M)*bmPow(M,2)*t[l]+bmPow(M,3)*e[l]},HShapeElement.prototype.calculateBoundingBox=function(M,b){var n,t=M.length;for(n=0;n<t;n+=1)M[n]&&M[n].sh?this.calculateShapeBoundingBox(M[n],b):M[n]&&M[n].it?this.calculateBoundingBox(M[n].it,b):M[n]&&M[n].style&&M[n].w&&this.expandStrokeBoundingBox(M[n].w,b)},HShapeElement.prototype.expandStrokeBoundingBox=function(M,b){var n=0;if(M.keyframes){for(var t=0;t<M.keyframes.length;t+=1){var e=M.keyframes[t].s;e>n&&(n=e)}n*=M.mult}else n=M.v*M.mult;b.x-=n,b.xMax+=n,b.y-=n,b.yMax+=n},HShapeElement.prototype.currentBoxContains=function(M){return this.currentBBox.x<=M.x&&this.currentBBox.y<=M.y&&this.currentBBox.width+this.currentBBox.x>=M.x+M.width&&this.currentBBox.height+this.currentBBox.y>=M.y+M.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var M=this.tempBoundingBox,b=999999;if(M.x=b,M.xMax=-b,M.y=b,M.yMax=-b,this.calculateBoundingBox(this.itemsData,M),M.width=M.xMax<M.x?0:M.xMax-M.x,M.height=M.yMax<M.y?0:M.yMax-M.y,this.currentBoxContains(M))return;var n=!1;if(this.currentBBox.w!==M.width&&(this.currentBBox.w=M.width,this.shapeCont.setAttribute("width",M.width),n=!0),this.currentBBox.h!==M.height&&(this.currentBBox.h=M.height,this.shapeCont.setAttribute("height",M.height),n=!0),n||this.currentBBox.x!==M.x||this.currentBBox.y!==M.y){this.currentBBox.w=M.width,this.currentBBox.h=M.height,this.currentBBox.x=M.x,this.currentBBox.y=M.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var t=this.shapeCont.style,e="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";t.transform=e,t.webkitTransform=e}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var M=createNS("g");this.maskedElement.appendChild(M),this.innerElem=M}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var M=this.textProperty.currentData;this.renderedLetters=createSizedArray(M.l?M.l.length:0);var b=this.innerElem.style,n=M.fc?this.buildColor(M.fc):"rgba(0,0,0,0)";b.fill=n,b.color=n,M.sc&&(b.stroke=this.buildColor(M.sc),b.strokeWidth=M.sw+"px");var t=this.globalData.fontManager.getFontByName(M.f);if(!this.globalData.fontManager.chars)if(b.fontSize=M.finalSize+"px",b.lineHeight=M.finalSize+"px",t.fClass)this.innerElem.className=t.fClass;else{b.fontFamily=t.fFamily;var e=M.fWeight;b.fontStyle=M.fStyle,b.fontWeight=e}var h,r,d=M.l;r=d.length;var y,g,p,C,f=this.mHelper,N="",a=0;for(h=0;h<r;h+=1){if(this.globalData.fontManager.chars?(this.textPaths[a]?y=this.textPaths[a]:((y=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),y.setAttribute("stroke-linejoin",lineJoinEnum[2]),y.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[a]?p=(g=this.textSpans[a]).children[0]:((g=createTag("div")).style.lineHeight=0,(p=createNS("svg")).appendChild(y),styleDiv(g)))):this.isMasked?y=this.textPaths[a]?this.textPaths[a]:createNS("text"):this.textSpans[a]?(g=this.textSpans[a],y=this.textPaths[a]):(styleDiv(g=createTag("span")),styleDiv(y=createTag("span")),g.appendChild(y)),this.globalData.fontManager.chars){var H,O=this.globalData.fontManager.getCharData(M.finalText[h],t.fStyle,this.globalData.fontManager.getFontByName(M.f).fFamily);if(H=O?O.data:null,f.reset(),H&&H.shapes&&H.shapes.length&&(C=H.shapes[0].it,f.scale(M.finalSize/100,M.finalSize/100),N=this.createPathShape(f,C),y.setAttribute("d",N)),this.isMasked)this.innerElem.appendChild(y);else{if(this.innerElem.appendChild(g),H&&H.shapes){document.body.appendChild(p);var F=p.getBBox();p.setAttribute("width",F.width+2),p.setAttribute("height",F.height+2),p.setAttribute("viewBox",F.x-1+" "+(F.y-1)+" "+(F.width+2)+" "+(F.height+2));var V=p.style,D="translate("+(F.x-1)+"px,"+(F.y-1)+"px)";V.transform=D,V.webkitTransform=D,d[h].yOffset=F.y-1}else p.setAttribute("width",1),p.setAttribute("height",1);g.appendChild(p)}}else if(y.textContent=d[h].val,y.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(y);else{this.innerElem.appendChild(g);var U=y.style,q="translate3d(0,"+-M.finalSize/1.2+"px,0)";U.transform=q,U.webkitTransform=q}this.textSpans[a]=this.isMasked?y:g,this.textSpans[a].style.display="block",this.textPaths[a]=y,a+=1}for(;a<this.textSpans.length;)this.textSpans[a].style.display="none",a+=1},HTextElement.prototype.renderInnerContent=function(){var M;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH);var b="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";(M=this.svgElement.style).transform=b,M.webkitTransform=b}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var n,t,r,d,y,e=0,l=this.textAnimator.renderedLetters,h=this.textProperty.currentData.l;for(t=h.length,n=0;n<t;n+=1)h[n].n?e+=1:(d=this.textSpans[n],y=this.textPaths[n],r=l[e],e+=1,r._mdf.m&&(this.isMasked?d.setAttribute("transform",r.m):(d.style.webkitTransform=r.m,d.style.transform=r.m)),d.style.opacity=r.o,r.sw&&r._mdf.sw&&y.setAttribute("stroke-width",r.sw),r.sc&&r._mdf.sc&&y.setAttribute("stroke",r.sc),r.fc&&r._mdf.fc&&(y.setAttribute("fill",r.fc),y.style.color=r.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var g=this.innerElem.getBBox();if(this.currentBBox.w!==g.width&&(this.currentBBox.w=g.width,this.svgElement.setAttribute("width",g.width)),this.currentBBox.h!==g.height&&(this.currentBBox.h=g.height,this.svgElement.setAttribute("height",g.height)),this.currentBBox.w!==g.width+2||this.currentBBox.h!==g.height+2||this.currentBBox.x!==g.x-1||this.currentBBox.y!==g.y-1){this.currentBBox.w=g.width+2,this.currentBBox.h=g.height+2,this.currentBBox.x=g.x-1,this.currentBBox.y=g.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var f="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";(M=this.svgElement.style).transform=f,M.webkitTransform=f}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var M,n,t,e,b=this.comp.threeDElements.length;for(M=0;M<b;M+=1)if("3d"===(n=this.comp.threeDElements[M]).type){e=n.container.style;var l=this.pe.v+"px",h="0px 0px 0px",r="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(t=n.perspectiveElem.style).perspective=l,t.webkitPerspective=l,e.transformOrigin=h,e.mozTransformOrigin=h,e.webkitTransformOrigin=h,t.transform=r,t.webkitTransform=r}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var b,n,M=this._isFirstFrame;if(this.hierarchy)for(n=this.hierarchy.length,b=0;b<n;b+=1)M=this.hierarchy[b].finalTransform.mProp._mdf||M;if(M||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(b=n=this.hierarchy.length-1;b>=0;b-=1){var t=this.hierarchy[b].finalTransform.mProp;this.mat.translate(-t.p.v[0],-t.p.v[1],t.p.v[2]),this.mat.rotateX(-t.or.v[0]).rotateY(-t.or.v[1]).rotateZ(t.or.v[2]),this.mat.rotateX(-t.rx.v).rotateY(-t.ry.v).rotateZ(t.rz.v),this.mat.scale(1/t.s.v[0],1/t.s.v[1],1/t.s.v[2]),this.mat.translate(t.a.v[0],t.a.v[1],t.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var e;e=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var l=Math.sqrt(Math.pow(e[0],2)+Math.pow(e[1],2)+Math.pow(e[2],2)),h=[e[0]/l,e[1]/l,e[2]/l],r=Math.sqrt(h[2]*h[2]+h[0]*h[0]),d=Math.atan2(h[1],r),y=Math.atan2(h[0],-h[2]);this.mat.rotateY(y).rotateX(-d)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var g=!this._prevMat.equals(this.mat);if((g||this.pe._mdf)&&this.comp.threeDElements){var p,f,C;for(n=this.comp.threeDElements.length,b=0;b<n;b+=1)if("3d"===(p=this.comp.threeDElements[b]).type){if(g){var N=this.mat.toCSS();(C=p.container.style).transform=N,C.webkitTransform=N}this.pe._mdf&&((f=p.perspectiveElem.style).perspective=this.pe.v+"px",f.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(M){this.prepareProperties(M,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var M=this.globalData.getAssetsPath(this.assetData),b=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",M),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(b),b.crossOrigin="anonymous",b.src=M,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(M,b){var n=M.getBaseElement();if(n){var t=this.layers[b];if(t.ddd&&this.supports3d)this.addTo3dContainer(n,b);else if(this.threeDElements)this.addTo3dContainer(n,b);else{for(var l,h,e=0;e<b;)this.elements[e]&&!0!==this.elements[e]&&this.elements[e].getBaseElement&&(h=this.elements[e],l=(this.layers[e].ddd?this.getThreeDContainerByPos(e):h.getBaseElement())||l),e+=1;l?(!t.ddd||!this.supports3d)&&this.layerElement.insertBefore(n,l):(!t.ddd||!this.supports3d)&&this.layerElement.appendChild(n)}}},HybridRendererBase.prototype.createShape=function(M){return this.supports3d?new HShapeElement(M,this.globalData,this):new SVGShapeElement(M,this.globalData,this)},HybridRendererBase.prototype.createText=function(M){return this.supports3d?new HTextElement(M,this.globalData,this):new SVGTextLottieElement(M,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(M){return this.camera=new HCameraElement(M,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(M){return this.supports3d?new HImageElement(M,this.globalData,this):new IImageElement(M,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(M){return this.supports3d?new HSolidElement(M,this.globalData,this):new ISolidElement(M,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(M){for(var b=0,n=this.threeDElements.length;b<n;){if(this.threeDElements[b].startPos<=M&&this.threeDElements[b].endPos>=M)return this.threeDElements[b].perspectiveElem;b+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(M,b){var t,e,n=createTag("div");styleDiv(n);var l=createTag("div");if(styleDiv(l),"3d"===b){(t=n.style).width=this.globalData.compSize.w+"px",t.height=this.globalData.compSize.h+"px";var h="50% 50%";t.webkitTransformOrigin=h,t.mozTransformOrigin=h,t.transformOrigin=h;var r="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(e=l.style).transform=r,e.webkitTransform=r}n.appendChild(l);var d={container:l,perspectiveElem:n,startPos:M,endPos:M,type:b};return this.threeDElements.push(d),d},HybridRendererBase.prototype.build3dContainers=function(){var M,n,b=this.layers.length,t="";for(M=0;M<b;M+=1)this.layers[M].ddd&&3!==this.layers[M].ty?("3d"!==t&&(t="3d",n=this.createThreeDContainer(M,"3d")),n.endPos=Math.max(n.endPos,M)):("2d"!==t&&(t="2d",n=this.createThreeDContainer(M,"2d")),n.endPos=Math.max(n.endPos,M));for(M=(b=this.threeDElements.length)-1;M>=0;M-=1)this.resizerElem.appendChild(this.threeDElements[M].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(M,b){for(var n=0,t=this.threeDElements.length;n<t;){if(b<=this.threeDElements[n].endPos){for(var l,e=this.threeDElements[n].startPos;e<b;)this.elements[e]&&this.elements[e].getBaseElement&&(l=this.elements[e].getBaseElement()),e+=1;l?this.threeDElements[n].container.insertBefore(M,l):this.threeDElements[n].container.appendChild(M);break}n+=1}},HybridRendererBase.prototype.configAnimation=function(M){var b=createTag("div"),n=this.animationItem.wrapper,t=b.style;t.width=M.w+"px",t.height=M.h+"px",this.resizerElem=b,styleDiv(b),t.transformStyle="flat",t.mozTransformStyle="flat",t.webkitTransformStyle="flat",this.renderConfig.className&&b.setAttribute("class",this.renderConfig.className),n.appendChild(b),t.overflow="hidden";var e=createNS("svg");e.setAttribute("width","1"),e.setAttribute("height","1"),styleDiv(e),this.resizerElem.appendChild(e);var l=createNS("defs");e.appendChild(l),this.data=M,this.setupGlobalData(M,e),this.globalData.defs=l,this.layers=M.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var M,b=this.layers?this.layers.length:0;for(M=0;M<b;M+=1)this.elements[M].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e,l,h,r,M=this.animationItem.wrapper.offsetWidth,b=this.animationItem.wrapper.offsetHeight;this.globalData.compSize.w/this.globalData.compSize.h>M/b?(e=M/this.globalData.compSize.w,l=M/this.globalData.compSize.w,h=0,r=(b-this.globalData.compSize.h*(M/this.globalData.compSize.w))/2):(e=b/this.globalData.compSize.h,l=b/this.globalData.compSize.h,h=(M-this.globalData.compSize.w*(b/this.globalData.compSize.h))/2,r=0);var d=this.resizerElem.style;d.webkitTransform="matrix3d("+e+",0,0,0,0,"+l+",0,0,0,0,1,0,"+h+","+r+",0,1)",d.transform=d.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var n,M=this.globalData.compSize.w,b=this.globalData.compSize.h,t=this.threeDElements.length;for(n=0;n<t;n+=1){var e=this.threeDElements[n].perspectiveElem.style;e.webkitPerspective=Math.sqrt(Math.pow(M,2)+Math.pow(b,2))+"px",e.perspective=e.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(M){var b,n=M.length,t=createTag("div");for(b=0;b<n;b+=1)if(M[b].xt){var e=this.createComp(M[b],t,this.globalData.comp,null);e.initExpressions(),this.globalData.projectInterface.registerComposition(e)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(M,b){for(var t,n=0;n<b;)this.elements[n]&&this.elements[n].getBaseElement&&(t=this.elements[n].getBaseElement()),n+=1;t?this.layerElement.insertBefore(M,t):this.layerElement.appendChild(M)},HCompElement.prototype.createComp=function(M){return this.supports3d?new HCompElement(M,this.globalData,this):new SVGCompElement(M,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(M){return this.supports3d?new HCompElement(M,this.globalData,this):new SVGCompElement(M,this.globalData,this)};var CompExpressionInterface=function(M){function b(n){for(var t=0,e=M.layers.length;t<e;){if(M.layers[t].nm===n||M.layers[t].ind===n)return M.elements[t].layerInterface;t+=1}return null}return Object.defineProperty(b,"_name",{value:M.data.nm}),b.layer=b,b.pixelAspect=1,b.height=M.data.h||M.globalData.compSize.h,b.width=M.data.w||M.globalData.compSize.w,b.pixelAspect=1,b.frameDuration=1/M.globalData.frameRate,b.displayStartTime=0,b.numLayers=M.layers.length,b},Expressions=function(){var M={initExpressions:function b(n){var t=0,e=[];n.renderer.compInterface=CompExpressionInterface(n.renderer),n.renderer.globalData.projectInterface.registerComposition(n.renderer),n.renderer.globalData.pushExpression=function l(){t+=1},n.renderer.globalData.popExpression=function h(){0==(t-=1)&&function d(){var y,g=e.length;for(y=0;y<g;y+=1)e[y].release();e.length=0}()},n.renderer.globalData.registerExpressionProperty=function r(y){-1===e.indexOf(y)&&e.push(y)}}};return M}(),MaskManagerInterface=function(){function M(n,t){this._mask=n,this._data=t}return Object.defineProperty(M.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(M.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(t){var l,e=createSizedArray(t.viewData.length),h=t.viewData.length;for(l=0;l<h;l+=1)e[l]=new M(t.viewData[l],t.masksProperties[l]);return function(y){for(l=0;l<h;){if(t.masksProperties[l].nm===y)return e[l];l+=1}return null}}}(),ExpressionPropertyInterface=function(){var M={pv:0,v:0,mult:1},b={pv:[0,0,0],v:[0,0,0],mult:1};function n(h,r,d){Object.defineProperty(h,"velocity",{get:function(){return r.getVelocityAtTime(r.comp.currentFrame)}}),h.numKeys=r.keyframes?r.keyframes.length:0,h.key=function(y){if(!h.numKeys)return 0;var g;g="s"in r.keyframes[y-1]?r.keyframes[y-1].s:"e"in r.keyframes[y-2]?r.keyframes[y-2].e:r.keyframes[y-2].s;var p="unidimensional"===d?new Number(g):Object.assign({},g);return p.time=r.keyframes[y-1].t/r.elem.comp.globalData.frameRate,p.value="unidimensional"===d?g[0]:g,p},h.valueAtTime=r.getValueAtTime,h.speedAtTime=r.getSpeedAtTime,h.velocityAtTime=r.getVelocityAtTime,h.propertyGroup=r.propertyGroup}function l(){return M}return function(h){return h?"unidimensional"===h.propType?function t(h){(!h||!("pv"in h))&&(h=M);var r=1/h.mult,d=h.pv*r,y=new Number(d);return y.value=d,n(y,h,"unidimensional"),function(){return h.k&&h.getValue(),y.value!==(d=h.v*r)&&((y=new Number(d)).value=d,n(y,h,"unidimensional")),y}}(h):function e(h){(!h||!("pv"in h))&&(h=b);var r=1/h.mult,d=h.data&&h.data.l||h.pv.length,y=createTypedArray("float32",d),g=createTypedArray("float32",d);return y.value=g,n(y,h,"multidimensional"),function(){h.k&&h.getValue();for(var p=0;p<d;p+=1)g[p]=h.v[p]*r,y[p]=g[p];return y}}(h):l}}(),TransformExpressionInterface=function(M){function b(h){switch(h){case"scale":case"Scale":case"ADBE Scale":case 6:return b.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return b.rotation;case"ADBE Rotate X":return b.xRotation;case"ADBE Rotate Y":return b.yRotation;case"position":case"Position":case"ADBE Position":case 2:return b.position;case"ADBE Position_0":return b.xPosition;case"ADBE Position_1":return b.yPosition;case"ADBE Position_2":return b.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return b.anchorPoint;case"opacity":case"Opacity":case 11:return b.opacity;default:return null}}var n,t,e,l;return Object.defineProperty(b,"rotation",{get:ExpressionPropertyInterface(M.r||M.rz)}),Object.defineProperty(b,"zRotation",{get:ExpressionPropertyInterface(M.rz||M.r)}),Object.defineProperty(b,"xRotation",{get:ExpressionPropertyInterface(M.rx)}),Object.defineProperty(b,"yRotation",{get:ExpressionPropertyInterface(M.ry)}),Object.defineProperty(b,"scale",{get:ExpressionPropertyInterface(M.s)}),M.p?l=ExpressionPropertyInterface(M.p):(n=ExpressionPropertyInterface(M.px),t=ExpressionPropertyInterface(M.py),M.pz&&(e=ExpressionPropertyInterface(M.pz))),Object.defineProperty(b,"position",{get:function(){return M.p?l():[n(),t(),e?e():0]}}),Object.defineProperty(b,"xPosition",{get:ExpressionPropertyInterface(M.px)}),Object.defineProperty(b,"yPosition",{get:ExpressionPropertyInterface(M.py)}),Object.defineProperty(b,"zPosition",{get:ExpressionPropertyInterface(M.pz)}),Object.defineProperty(b,"anchorPoint",{get:ExpressionPropertyInterface(M.a)}),Object.defineProperty(b,"opacity",{get:ExpressionPropertyInterface(M.o)}),Object.defineProperty(b,"skew",{get:ExpressionPropertyInterface(M.sk)}),Object.defineProperty(b,"skewAxis",{get:ExpressionPropertyInterface(M.sa)}),Object.defineProperty(b,"orientation",{get:ExpressionPropertyInterface(M.or)}),b},LayerExpressionInterface=function(){function M(y){var g=new Matrix;return void 0!==y?this._elem.finalTransform.mProp.getValueAtTime(y).clone(g):this._elem.finalTransform.mProp.applyToMatrix(g),g}function b(y,g){var p=this.getMatrix(g);return p.props[12]=0,p.props[13]=0,p.props[14]=0,this.applyPoint(p,y)}function n(y,g){var p=this.getMatrix(g);return this.applyPoint(p,y)}function t(y,g){var p=this.getMatrix(g);return p.props[12]=0,p.props[13]=0,p.props[14]=0,this.invertPoint(p,y)}function e(y,g){var p=this.getMatrix(g);return this.invertPoint(p,y)}function l(y,g){if(this._elem.hierarchy&&this._elem.hierarchy.length){var p,f=this._elem.hierarchy.length;for(p=0;p<f;p+=1)this._elem.hierarchy[p].finalTransform.mProp.applyToMatrix(y)}return y.applyToPointArray(g[0],g[1],g[2]||0)}function h(y,g){if(this._elem.hierarchy&&this._elem.hierarchy.length){var p,f=this._elem.hierarchy.length;for(p=0;p<f;p+=1)this._elem.hierarchy[p].finalTransform.mProp.applyToMatrix(y)}return y.inversePoint(g)}function r(y){var g=new Matrix;if(g.reset(),this._elem.finalTransform.mProp.applyToMatrix(g),this._elem.hierarchy&&this._elem.hierarchy.length){var p,f=this._elem.hierarchy.length;for(p=0;p<f;p+=1)this._elem.hierarchy[p].finalTransform.mProp.applyToMatrix(g);return g.inversePoint(y)}return g.inversePoint(y)}function d(){return[1,1,1,1]}return function(y){var g;function C(a){switch(a){case"ADBE Root Vectors Group":case"Contents":case 2:return C.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return g;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return C.effect;case"ADBE Text Properties":return C.textInterface;default:return null}}C.getMatrix=M,C.invertPoint=h,C.applyPoint=l,C.toWorld=n,C.toWorldVec=b,C.fromWorld=e,C.fromWorldVec=t,C.toComp=n,C.fromComp=r,C.sampleImage=d,C.sourceRectAtTime=y.sourceRectAtTime.bind(y),C._elem=y;var N=getDescriptor(g=TransformExpressionInterface(y.finalTransform.mProp),"anchorPoint");return Object.defineProperties(C,{hasParent:{get:function(){return y.hierarchy.length}},parent:{get:function(){return y.hierarchy[0].layerInterface}},rotation:getDescriptor(g,"rotation"),scale:getDescriptor(g,"scale"),position:getDescriptor(g,"position"),opacity:getDescriptor(g,"opacity"),anchorPoint:N,anchor_point:N,transform:{get:function(){return g}},active:{get:function(){return y.isInRange}}}),C.startTime=y.data.st,C.index=y.data.ind,C.source=y.data.refId,C.height=0===y.data.ty?y.data.h:100,C.width=0===y.data.ty?y.data.w:100,C.inPoint=y.data.ip/y.comp.globalData.frameRate,C.outPoint=y.data.op/y.comp.globalData.frameRate,C._name=y.data.nm,C.registerMaskInterface=function p(a){C.mask=new MaskManagerInterface(a,y)},C.registerEffectsInterface=function f(a){C.effect=a},C}}(),propertyGroupFactory=function(M,b){return function(n){return(n=void 0===n?1:n)<=0?M:b(n-1)}},PropertyInterface=function(M,b){var n={_name:M};return function t(e){return(e=void 0===e?1:e)<=0?n:b(e-1)}},EffectsExpressionInterface=function(){function n(e,l,h,r){function d(C){for(var N=e.ef,a=0,O=N.length;a<O;){if(C===N[a].nm||C===N[a].mn||C===N[a].ix)return 5===N[a].ty?g[a]:g[a]();a+=1}throw new Error}var p,y=propertyGroupFactory(d,h),g=[],f=e.ef.length;for(p=0;p<f;p+=1)g.push(5===e.ef[p].ty?n(e.ef[p],l.effectElements[p],l.effectElements[p].propertyGroup,r):t(l.effectElements[p],e.ef[p].ty,r,y));return"ADBE Color Control"===e.mn&&Object.defineProperty(d,"color",{get:function(){return g[0]()}}),Object.defineProperties(d,{numProperties:{get:function(){return e.np}},_name:{value:e.nm},propertyGroup:{value:y}}),d.active=d.enabled=0!==e.en,d}function t(e,l,h,r){var d=ExpressionPropertyInterface(e.p);return e.p.setGroupProperty&&e.p.setGroupProperty(PropertyInterface("",r)),function y(){return 10===l?h.comp.compInterface(e.p.v):d()}}return{createEffectsInterface:function b(e,l){if(e.effectsManager){var d,h=[],r=e.data.ef,y=e.effectsManager.effectElements.length;for(d=0;d<y;d+=1)h.push(n(r[d],e.effectsManager.effectElements[d],l,e));var g=e.data.ef||[],p=function(C){for(d=0,y=g.length;d<y;){if(C===g[d].nm||C===g[d].mn||C===g[d].ix)return h[d];d+=1}return null};return Object.defineProperty(p,"numProperties",{get:function(){return g.length}}),p}return null}}}(),ShapePathInterface=function(b,n,t){var e=n.sh;function l(r){return"Shape"===r||"shape"===r||"Path"===r||"path"===r||"ADBE Vector Shape"===r||2===r?l.path:null}var h=propertyGroupFactory(l,t);return e.setGroupProperty(PropertyInterface("Path",h)),Object.defineProperties(l,{path:{get:function(){return e.k&&e.getValue(),e}},shape:{get:function(){return e.k&&e.getValue(),e}},_name:{value:b.nm},ix:{value:b.ix},propertyIndex:{value:b.ix},mn:{value:b.mn},propertyGroup:{value:t}}),l},ShapeExpressionInterface=function(){function M(N,a,O){var F,H=[],V=N?N.length:0;for(F=0;F<V;F+=1)"gr"===N[F].ty?H.push(n(N[F],a[F],O)):"fl"===N[F].ty?H.push(t(N[F],a[F],O)):"st"===N[F].ty?H.push(h(N[F],a[F],O)):"tm"===N[F].ty?H.push(r(N[F],a[F],O)):"tr"===N[F].ty||H.push("el"===N[F].ty?y(N[F],a[F],O):"sr"===N[F].ty?g(N[F],a[F],O):"sh"===N[F].ty?ShapePathInterface(N[F],a[F],O):"rc"===N[F].ty?p(N[F],a[F],O):"rd"===N[F].ty?f(N[F],a[F],O):"rp"===N[F].ty?C(N[F],a[F],O):"gf"===N[F].ty?e(N[F],a[F],O):function N(){return null});return H}function n(N,a,O){var H=function(U){switch(U){case"ADBE Vectors Group":case"Contents":case 2:return H.content;default:return H.transform}};H.propertyGroup=propertyGroupFactory(H,O);var F=function b(N,a,O){var H,F=function(U){for(var q=0,J=H.length;q<J;){if(H[q]._name===U||H[q].mn===U||H[q].propertyIndex===U||H[q].ix===U||H[q].ind===U)return H[q];q+=1}return"number"==typeof U?H[U-1]:null};F.propertyGroup=propertyGroupFactory(F,O),H=M(N.it,a.it,F.propertyGroup),F.numProperties=H.length;var V=d(N.it[N.it.length-1],a.it[a.it.length-1],F.propertyGroup);return F.transform=V,F.propertyIndex=N.cix,F._name=N.nm,F}(N,a,H.propertyGroup),V=d(N.it[N.it.length-1],a.it[a.it.length-1],H.propertyGroup);return H.content=F,H.transform=V,Object.defineProperty(H,"_name",{get:function(){return N.nm}}),H.numProperties=N.np,H.propertyIndex=N.ix,H.nm=N.nm,H.mn=N.mn,H}function t(N,a,O){function H(F){return"Color"===F||"color"===F?H.color:"Opacity"===F||"opacity"===F?H.opacity:null}return Object.defineProperties(H,{color:{get:ExpressionPropertyInterface(a.c)},opacity:{get:ExpressionPropertyInterface(a.o)},_name:{value:N.nm},mn:{value:N.mn}}),a.c.setGroupProperty(PropertyInterface("Color",O)),a.o.setGroupProperty(PropertyInterface("Opacity",O)),H}function e(N,a,O){function H(F){return"Start Point"===F||"start point"===F?H.startPoint:"End Point"===F||"end point"===F?H.endPoint:"Opacity"===F||"opacity"===F?H.opacity:null}return Object.defineProperties(H,{startPoint:{get:ExpressionPropertyInterface(a.s)},endPoint:{get:ExpressionPropertyInterface(a.e)},opacity:{get:ExpressionPropertyInterface(a.o)},type:{get:function(){return"a"}},_name:{value:N.nm},mn:{value:N.mn}}),a.s.setGroupProperty(PropertyInterface("Start Point",O)),a.e.setGroupProperty(PropertyInterface("End Point",O)),a.o.setGroupProperty(PropertyInterface("Opacity",O)),H}function h(N,a,O){var D,G,H=propertyGroupFactory(J,O),F=propertyGroupFactory(q,H),U=N.d?N.d.length:0,q={};for(D=0;D<U;D+=1)G=D,Object.defineProperty(q,N.d[G].nm,{get:ExpressionPropertyInterface(a.d.dataProps[G].p)}),a.d.dataProps[D].p.setGroupProperty(F);function J(G){return"Color"===G||"color"===G?J.color:"Opacity"===G||"opacity"===G?J.opacity:"Stroke Width"===G||"stroke width"===G?J.strokeWidth:null}return Object.defineProperties(J,{color:{get:ExpressionPropertyInterface(a.c)},opacity:{get:ExpressionPropertyInterface(a.o)},strokeWidth:{get:ExpressionPropertyInterface(a.w)},dash:{get:function(){return q}},_name:{value:N.nm},mn:{value:N.mn}}),a.c.setGroupProperty(PropertyInterface("Color",H)),a.o.setGroupProperty(PropertyInterface("Opacity",H)),a.w.setGroupProperty(PropertyInterface("Stroke Width",H)),J}function r(N,a,O){function H(V){return V===N.e.ix||"End"===V||"end"===V?H.end:V===N.s.ix?H.start:V===N.o.ix?H.offset:null}var F=propertyGroupFactory(H,O);return H.propertyIndex=N.ix,a.s.setGroupProperty(PropertyInterface("Start",F)),a.e.setGroupProperty(PropertyInterface("End",F)),a.o.setGroupProperty(PropertyInterface("Offset",F)),H.propertyIndex=N.ix,H.propertyGroup=O,Object.defineProperties(H,{start:{get:ExpressionPropertyInterface(a.s)},end:{get:ExpressionPropertyInterface(a.e)},offset:{get:ExpressionPropertyInterface(a.o)},_name:{value:N.nm}}),H.mn=N.mn,H}function d(N,a,O){function H(V){return N.a.ix===V||"Anchor Point"===V?H.anchorPoint:N.o.ix===V||"Opacity"===V?H.opacity:N.p.ix===V||"Position"===V?H.position:N.r.ix===V||"Rotation"===V||"ADBE Vector Rotation"===V?H.rotation:N.s.ix===V||"Scale"===V?H.scale:N.sk&&N.sk.ix===V||"Skew"===V?H.skew:N.sa&&N.sa.ix===V||"Skew Axis"===V?H.skewAxis:null}var F=propertyGroupFactory(H,O);return a.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",F)),a.transform.mProps.p.setGroupProperty(PropertyInterface("Position",F)),a.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",F)),a.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",F)),a.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",F)),a.transform.mProps.sk&&(a.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",F)),a.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",F))),a.transform.op.setGroupProperty(PropertyInterface("Opacity",F)),Object.defineProperties(H,{opacity:{get:ExpressionPropertyInterface(a.transform.mProps.o)},position:{get:ExpressionPropertyInterface(a.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(a.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(a.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(a.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(a.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(a.transform.mProps.sa)},_name:{value:N.nm}}),H.ty="tr",H.mn=N.mn,H.propertyGroup=O,H}function y(N,a,O){function H(D){return N.p.ix===D?H.position:N.s.ix===D?H.size:null}var F=propertyGroupFactory(H,O);H.propertyIndex=N.ix;var V="tm"===a.sh.ty?a.sh.prop:a.sh;return V.s.setGroupProperty(PropertyInterface("Size",F)),V.p.setGroupProperty(PropertyInterface("Position",F)),Object.defineProperties(H,{size:{get:ExpressionPropertyInterface(V.s)},position:{get:ExpressionPropertyInterface(V.p)},_name:{value:N.nm}}),H.mn=N.mn,H}function g(N,a,O){function H(D){return N.p.ix===D?H.position:N.r.ix===D?H.rotation:N.pt.ix===D?H.points:N.or.ix===D||"ADBE Vector Star Outer Radius"===D?H.outerRadius:N.os.ix===D?H.outerRoundness:!N.ir||N.ir.ix!==D&&"ADBE Vector Star Inner Radius"!==D?N.is&&N.is.ix===D?H.innerRoundness:null:H.innerRadius}var F=propertyGroupFactory(H,O),V="tm"===a.sh.ty?a.sh.prop:a.sh;return H.propertyIndex=N.ix,V.or.setGroupProperty(PropertyInterface("Outer Radius",F)),V.os.setGroupProperty(PropertyInterface("Outer Roundness",F)),V.pt.setGroupProperty(PropertyInterface("Points",F)),V.p.setGroupProperty(PropertyInterface("Position",F)),V.r.setGroupProperty(PropertyInterface("Rotation",F)),N.ir&&(V.ir.setGroupProperty(PropertyInterface("Inner Radius",F)),V.is.setGroupProperty(PropertyInterface("Inner Roundness",F))),Object.defineProperties(H,{position:{get:ExpressionPropertyInterface(V.p)},rotation:{get:ExpressionPropertyInterface(V.r)},points:{get:ExpressionPropertyInterface(V.pt)},outerRadius:{get:ExpressionPropertyInterface(V.or)},outerRoundness:{get:ExpressionPropertyInterface(V.os)},innerRadius:{get:ExpressionPropertyInterface(V.ir)},innerRoundness:{get:ExpressionPropertyInterface(V.is)},_name:{value:N.nm}}),H.mn=N.mn,H}function p(N,a,O){function H(D){return N.p.ix===D?H.position:N.r.ix===D?H.roundness:N.s.ix===D||"Size"===D||"ADBE Vector Rect Size"===D?H.size:null}var F=propertyGroupFactory(H,O),V="tm"===a.sh.ty?a.sh.prop:a.sh;return H.propertyIndex=N.ix,V.p.setGroupProperty(PropertyInterface("Position",F)),V.s.setGroupProperty(PropertyInterface("Size",F)),V.r.setGroupProperty(PropertyInterface("Rotation",F)),Object.defineProperties(H,{position:{get:ExpressionPropertyInterface(V.p)},roundness:{get:ExpressionPropertyInterface(V.r)},size:{get:ExpressionPropertyInterface(V.s)},_name:{value:N.nm}}),H.mn=N.mn,H}function f(N,a,O){function H(D){return N.r.ix===D||"Round Corners 1"===D?H.radius:null}var F=propertyGroupFactory(H,O),V=a;return H.propertyIndex=N.ix,V.rd.setGroupProperty(PropertyInterface("Radius",F)),Object.defineProperties(H,{radius:{get:ExpressionPropertyInterface(V.rd)},_name:{value:N.nm}}),H.mn=N.mn,H}function C(N,a,O){function H(D){return N.c.ix===D||"Copies"===D?H.copies:N.o.ix===D||"Offset"===D?H.offset:null}var F=propertyGroupFactory(H,O),V=a;return H.propertyIndex=N.ix,V.c.setGroupProperty(PropertyInterface("Copies",F)),V.o.setGroupProperty(PropertyInterface("Offset",F)),Object.defineProperties(H,{copies:{get:ExpressionPropertyInterface(V.c)},offset:{get:ExpressionPropertyInterface(V.o)},_name:{value:N.nm}}),H.mn=N.mn,H}return function(N,a,O){var H;function F(D){if("number"==typeof D)return 0===(D=void 0===D?1:D)?O:H[D-1];for(var U=0,q=H.length;U<q;){if(H[U]._name===D)return H[U];U+=1}return null}return F.propertyGroup=propertyGroupFactory(F,function V(){return O}),H=M(N,a,F.propertyGroup),F.numProperties=H.length,F._name="Contents",F}}(),TextExpressionInterface=function(M){var b,n;function t(e){return"ADBE Text Document"===e?t.sourceText:null}return Object.defineProperty(t,"sourceText",{get:function(){M.textProperty.getValue();var l=M.textProperty.currentData.t;return l!==b&&(b=M.textProperty.currentData.t,(n=new String(l)).value=l||new String(l),Object.defineProperty(n,"style",{get:function(){return{fillColor:M.textProperty.currentData.fc}}})),n}}),t};function _typeof$2(M){return(_typeof$2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(M)}var FootageInterface=(b=function(t){function e(l){return"Outline"===l?e.outlineInterface():null}return e._name="Outline",e.outlineInterface=function(t){var e="",l=t.getFootageData();function r(d){if(l[d])return e=d,"object"===_typeof$2(l=l[d])?r:l;var y=d.indexOf(e);if(-1!==y){var g=parseInt(d.substr(y+e.length),10);return"object"===_typeof$2(l=l[g])?r:l}return""}return function h(){return e="",l=t.getFootageData(),r}}(t),e},function(n){function t(e){return"Data"===e?t.dataInterface:null}return t._name="Data",t.dataInterface=b(n),t}),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface},b;function getInterface(M){return interfaces[M]||null}function _typeof$1(M){return(_typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(M)}function seedRandom(M,b){var n=this,t=256,h="random",r=b.pow(t,6),d=b.pow(2,52),y=2*d,g=255;function C(V){var D,U=V.length,q=this,J=0,G=q.i=q.j=0,ie=q.S=[];for(U||(V=[U++]);J<t;)ie[J]=J++;for(J=0;J<t;J++)ie[J]=ie[G=g&G+V[J%U]+(D=ie[J])],ie[G]=D;q.g=function(K){for(var re,oe=0,B=q.i,s=q.j,_=q.S;K--;)re=_[B=g&B+1],oe=oe*t+_[g&(_[B]=_[s=g&s+re])+(_[s]=re)];return q.i=B,q.j=s,oe}}function N(V,D){return D.i=V.i,D.j=V.j,D.S=V.S.slice(),D}function a(V,D){var J,U=[],q=_typeof$1(V);if(D&&"object"==q)for(J in V)try{U.push(a(V[J],D-1))}catch{}return U.length?U:"string"==q?V:V+"\0"}function O(V,D){for(var q,U=V+"",J=0;J<U.length;)D[g&J]=g&(q^=19*D[g&J])+U.charCodeAt(J++);return F(D)}function F(V){return String.fromCharCode.apply(0,V)}b["seed"+h]=function f(V,D,U){var q=[],J=O(a((D=!0===D?{entropy:!0}:D||{}).entropy?[V,F(M)]:null===V?function H(){try{var V=new Uint8Array(t);return(n.crypto||n.msCrypto).getRandomValues(V),F(V)}catch{var D=n.navigator,U=D&&D.plugins;return[+new Date,n,U,n.screen,F(M)]}}():V,3),q),G=new C(q),ie=function(){for(var re=G.g(6),oe=r,B=0;re<d;)re=(re+B)*t,oe*=t,B=G.g(1);for(;re>=y;)re/=2,oe/=2,B>>>=1;return(re+B)/oe};return ie.int32=function(){return 0|G.g(4)},ie.quick=function(){return G.g(4)/4294967296},ie.double=ie,O(F(G.S),M),(D.pass||U||function(K,re,oe,B){return B&&(B.S&&N(B,G),K.state=function(){return N(G,{})}),oe?(b[h]=K,re):K})(ie,J,"global"in D?D.global:this==b,D.state)},O(b.random(),M)}function initialize$2(M){seedRandom([],M)}var propTypes={SHAPE:"shape"};function _typeof(M){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(M)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null;function $bm_isInstanceOfArray(M){return M.constructor===Array||M.constructor===Float32Array}function isNumerable(M,b){return"number"===M||"boolean"===M||"string"===M||b instanceof Number}function $bm_neg(M){var b=_typeof(M);if("number"===b||"boolean"===b||M instanceof Number)return-M;if($bm_isInstanceOfArray(M)){var n,t=M.length,e=[];for(n=0;n<t;n+=1)e[n]=-M[n];return e}return M.propType?M.v:-M}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(M,b){var n=_typeof(M),t=_typeof(b);if("string"===n||"string"===t||isNumerable(n,M)&&isNumerable(t,b))return M+b;if($bm_isInstanceOfArray(M)&&isNumerable(t,b))return(M=M.slice(0))[0]+=b,M;if(isNumerable(n,M)&&$bm_isInstanceOfArray(b))return(b=b.slice(0))[0]=M+b[0],b;if($bm_isInstanceOfArray(M)&&$bm_isInstanceOfArray(b)){for(var e=0,l=M.length,h=b.length,r=[];e<l||e<h;)r[e]=("number"==typeof M[e]||M[e]instanceof Number)&&("number"==typeof b[e]||b[e]instanceof Number)?M[e]+b[e]:void 0===b[e]?M[e]:M[e]||b[e],e+=1;return r}return 0}var add=sum;function sub(M,b){var n=_typeof(M),t=_typeof(b);if(isNumerable(n,M)&&isNumerable(t,b))return"string"===n&&(M=parseInt(M,10)),"string"===t&&(b=parseInt(b,10)),M-b;if($bm_isInstanceOfArray(M)&&isNumerable(t,b))return(M=M.slice(0))[0]-=b,M;if(isNumerable(n,M)&&$bm_isInstanceOfArray(b))return(b=b.slice(0))[0]=M-b[0],b;if($bm_isInstanceOfArray(M)&&$bm_isInstanceOfArray(b)){for(var e=0,l=M.length,h=b.length,r=[];e<l||e<h;)r[e]=("number"==typeof M[e]||M[e]instanceof Number)&&("number"==typeof b[e]||b[e]instanceof Number)?M[e]-b[e]:void 0===b[e]?M[e]:M[e]||b[e],e+=1;return r}return 0}function mul(M,b){var e,l,h,n=_typeof(M),t=_typeof(b);if(isNumerable(n,M)&&isNumerable(t,b))return M*b;if($bm_isInstanceOfArray(M)&&isNumerable(t,b)){for(e=createTypedArray("float32",h=M.length),l=0;l<h;l+=1)e[l]=M[l]*b;return e}if(isNumerable(n,M)&&$bm_isInstanceOfArray(b)){for(e=createTypedArray("float32",h=b.length),l=0;l<h;l+=1)e[l]=M*b[l];return e}return 0}function div(M,b){var e,l,h,n=_typeof(M),t=_typeof(b);if(isNumerable(n,M)&&isNumerable(t,b))return M/b;if($bm_isInstanceOfArray(M)&&isNumerable(t,b)){for(e=createTypedArray("float32",h=M.length),l=0;l<h;l+=1)e[l]=M[l]/b;return e}if(isNumerable(n,M)&&$bm_isInstanceOfArray(b)){for(e=createTypedArray("float32",h=b.length),l=0;l<h;l+=1)e[l]=M/b[l];return e}return 0}function mod(M,b){return"string"==typeof M&&(M=parseInt(M,10)),"string"==typeof b&&(b=parseInt(b,10)),M%b}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(M,b,n){if(b>n){var t=n;n=b,b=t}return Math.min(Math.max(M,b),n)}function radiansToDegrees(M){return M/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(M){return M*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(M,b){if("number"==typeof M||M instanceof Number)return Math.abs(M-(b=b||0));b||(b=helperLengthArray);var n,t=Math.min(M.length,b.length),e=0;for(n=0;n<t;n+=1)e+=Math.pow(b[n]-M[n],2);return Math.sqrt(e)}function normalize(M){return div(M,length(M))}function rgbToHsl(M){var h,r,b=M[0],n=M[1],t=M[2],e=Math.max(b,n,t),l=Math.min(b,n,t),d=(e+l)/2;if(e===l)h=0,r=0;else{var y=e-l;switch(r=d>.5?y/(2-e-l):y/(e+l),e){case b:h=(n-t)/y+(n<t?6:0);break;case n:h=(t-b)/y+2;break;case t:h=(b-n)/y+4}h/=6}return[h,r,d,M[3]]}function hue2rgb(M,b,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?M+6*(b-M)*n:n<.5?b:n<2/3?M+(b-M)*(2/3-n)*6:M}function hslToRgb(M){var e,l,h,b=M[0],n=M[1],t=M[2];if(0===n)e=t,h=t,l=t;else{var r=t<.5?t*(1+n):t+n-t*n,d=2*t-r;e=hue2rgb(d,r,b+1/3),l=hue2rgb(d,r,b),h=hue2rgb(d,r,b-1/3)}return[e,l,h,M[3]]}function linear(M,b,n,t,e){if((void 0===t||void 0===e)&&(t=b,e=n,b=0,n=1),n<b){var l=n;n=b,b=l}if(M<=b)return t;if(M>=n)return e;var h=n===b?0:(M-b)/(n-b);if(!t.length)return t+(e-t)*h;var r,d=t.length,y=createTypedArray("float32",d);for(r=0;r<d;r+=1)y[r]=t[r]+(e[r]-t[r])*h;return y}function random(M,b){if(void 0===b&&(void 0===M?(M=0,b=1):(b=M,M=void 0)),b.length){var n,t=b.length;M||(M=createTypedArray("float32",t));var e=createTypedArray("float32",t),l=BMMath.random();for(n=0;n<t;n+=1)e[n]=M[n]+l*(b[n]-M[n]);return e}return void 0===M&&(M=0),M+BMMath.random()*(b-M)}function createPath(M,b,n,t){var e,l=M.length,h=shapePool.newElement();h.setPathData(!!t,l);var d,y,r=[0,0];for(e=0;e<l;e+=1)h.setTripleAt(M[e][0],M[e][1],(y=n&&n[e]?n[e]:r)[0]+M[e][0],y[1]+M[e][1],(d=b&&b[e]?b[e]:r)[0]+M[e][0],d[1]+M[e][1],e,!0);return h}function initiateExpression(elem,data,property){function noOp(M){return M}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function M(b,n){var t,e,l=this.pv.length?this.pv.length:1,h=createTypedArray("float32",l),r=Math.floor(5*time);for(t=0,e=0;t<r;){for(e=0;e<l;e+=1)h[e]+=-n+2*n*BMMath.random();t+=1}var d=5*time,y=d-Math.floor(d),g=createTypedArray("float32",l);if(l>1){for(e=0;e<l;e+=1)g[e]=this.pv[e]+h[e]+(-n+2*n*BMMath.random())*y;return g}return this.pv+h[0]+(-n+2*n*BMMath.random())*y}.bind(this);function loopInDuration(M,b){return loopIn(M,b,!0)}function loopOutDuration(M,b){return loopOut(M,b,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(M,b){var n=[b[0]-M[0],b[1]-M[1],b[2]-M[2]],t=Math.atan2(n[0],Math.sqrt(n[1]*n[1]+n[2]*n[2]))/degToRads;return[-Math.atan2(n[1],n[2])/degToRads,t,0]}function easeOut(M,b,n,t,e){return applyEase(easeOutBez,M,b,n,t,e)}function easeIn(M,b,n,t,e){return applyEase(easeInBez,M,b,n,t,e)}function ease(M,b,n,t,e){return applyEase(easeInOutBez,M,b,n,t,e)}function applyEase(M,b,n,t,e,l){void 0===e?(e=n,l=t):b=(b-n)/(t-n),b>1?b=1:b<0&&(b=0);var h=M(b);if($bm_isInstanceOfArray(e)){var r,d=e.length,y=createTypedArray("float32",d);for(r=0;r<d;r+=1)y[r]=(l[r]-e[r])*h+e[r];return y}return(l-e)*h+e}function nearestKey(M){var b,t,e,n=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(t=-1,(M*=elem.comp.globalData.frameRate)<data.k[0].t)t=1,e=data.k[0].t;else{for(b=0;b<n-1;b+=1){if(M===data.k[b].t){t=b+1,e=data.k[b].t;break}if(M>data.k[b].t&&M<data.k[b+1].t){M-data.k[b].t>data.k[b+1].t-M?(t=b+2,e=data.k[b+1].t):(t=b+1,e=data.k[b].t);break}}-1===t&&(t=b+1,e=data.k[b].t)}else t=0,e=0;var l={};return l.index=t,l.time=e/elem.comp.globalData.frameRate,l}function key(M){var b,n,t;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+M);b={time:data.k[M-=1].t/elem.comp.globalData.frameRate,value:[]};var e=Object.prototype.hasOwnProperty.call(data.k[M],"s")?data.k[M].s:data.k[M-1].e;for(t=e.length,n=0;n<t;n+=1)b[n]=e[n],b.value[n]=e[n];return b}function framesToTime(M,b){return b||(b=elem.comp.globalData.frameRate),M/b}function timeToFrames(M,b){return!M&&0!==M&&(M=time),b||(b=elem.comp.globalData.frameRate),M*b}function seedRandom(M){BMMath.seedrandom(randSeed+M)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(M,b){return"string"==typeof value?void 0===b?value.substring(M):value.substring(M,b):""}function substr(M,b){return"string"==typeof value?void 0===b?value.substr(M):value.substr(M,b):""}function posterizeTime(M){time=0===M?0:Math.floor(time*M)/M,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(M){return value=M,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisComp=elem.comp.compInterface,toWorld=(thisLayer=elem.layerInterface).toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4===elemType&&!content&&(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath],ob}(),expressionHelpers={searchExpressions:function M(h,r,d){r.x&&(d.k=!0,d.x=!0,d.initiateExpression=ExpressionManager.initiateExpression,d.effectsSequence.push(d.initiateExpression(h,r,d).bind(d)))},getSpeedAtTime:function n(h){var d=this.getValueAtTime(h),y=this.getValueAtTime(h+-.01),g=0;if(d.length){var p;for(p=0;p<d.length;p+=1)g+=Math.pow(y[p]-d[p],2);g=100*Math.sqrt(g)}else g=0;return g},getVelocityAtTime:function t(h){if(void 0!==this.vel)return this.vel;var g,p,r=-.001,d=this.getValueAtTime(h),y=this.getValueAtTime(h+r);if(d.length)for(g=createTypedArray("float32",d.length),p=0;p<d.length;p+=1)g[p]=(y[p]-d[p])/r;else g=(y-d)/r;return g},getValueAtTime:function b(h){return h*=this.elem.globalData.frameRate,(h-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<h?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(h,this._cachingAtTime),this._cachingAtTime.lastFrame=h),this._cachingAtTime.value},getStaticValueAtTime:function e(){return this.pv},setGroupProperty:function l(h){this.propertyGroup=h}};function addPropertyDecorator(){function M(f,C,N){if(!this.k||!this.keyframes)return this.pv;f=f?f.toLowerCase():"";var F,V,D,U,q,a=this.comp.renderedFrame,O=this.keyframes,H=O[O.length-1].t;if(a<=H)return this.pv;if(N?V=H-(F=C?Math.abs(H-this.elem.comp.globalData.frameRate*C):Math.max(0,H-this.elem.data.ip)):((!C||C>O.length-1)&&(C=O.length-1),F=H-(V=O[O.length-1-C].t)),"pingpong"===f){if(Math.floor((a-V)/F)%2!=0)return this.getValueAtTime((F-(a-V)%F+V)/this.comp.globalData.frameRate,0)}else{if("offset"===f){var G=this.getValueAtTime(V/this.comp.globalData.frameRate,0),ie=this.getValueAtTime(H/this.comp.globalData.frameRate,0),K=this.getValueAtTime(((a-V)%F+V)/this.comp.globalData.frameRate,0),re=Math.floor((a-V)/F);if(this.pv.length){for(U=(q=new Array(G.length)).length,D=0;D<U;D+=1)q[D]=(ie[D]-G[D])*re+K[D];return q}return(ie-G)*re+K}if("continue"===f){var oe=this.getValueAtTime(H/this.comp.globalData.frameRate,0),B=this.getValueAtTime((H-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(U=(q=new Array(oe.length)).length,D=0;D<U;D+=1)q[D]=oe[D]+(a-H)/this.comp.globalData.frameRate*(oe[D]-B[D])/5e-4;return q}return oe+(a-H)/.001*(oe-B)}}return this.getValueAtTime(((a-V)%F+V)/this.comp.globalData.frameRate,0)}function b(f,C,N){if(!this.k)return this.pv;f=f?f.toLowerCase():"";var F,V,D,U,q,a=this.comp.renderedFrame,O=this.keyframes,H=O[0].t;if(a>=H)return this.pv;if(N?V=H+(F=C?Math.abs(this.elem.comp.globalData.frameRate*C):Math.max(0,this.elem.data.op-H)):((!C||C>O.length-1)&&(C=O.length-1),F=(V=O[C].t)-H),"pingpong"===f){if(Math.floor((H-a)/F)%2==0)return this.getValueAtTime(((H-a)%F+H)/this.comp.globalData.frameRate,0)}else{if("offset"===f){var G=this.getValueAtTime(H/this.comp.globalData.frameRate,0),ie=this.getValueAtTime(V/this.comp.globalData.frameRate,0),K=this.getValueAtTime((F-(H-a)%F+H)/this.comp.globalData.frameRate,0),re=Math.floor((H-a)/F)+1;if(this.pv.length){for(U=(q=new Array(G.length)).length,D=0;D<U;D+=1)q[D]=K[D]-(ie[D]-G[D])*re;return q}return K-(ie-G)*re}if("continue"===f){var oe=this.getValueAtTime(H/this.comp.globalData.frameRate,0),B=this.getValueAtTime((H+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(U=(q=new Array(oe.length)).length,D=0;D<U;D+=1)q[D]=oe[D]+(oe[D]-B[D])*(H-a)/.001;return q}return oe+(oe-B)*(H-a)/.001}}return this.getValueAtTime((F-((H-a)%F+H))/this.comp.globalData.frameRate,0)}function n(f,C){if(!this.k)return this.pv;if(f=.5*(f||.4),(C=Math.floor(C||5))<=1)return this.pv;var D,U,N=this.comp.renderedFrame/this.comp.globalData.frameRate,a=N-f,H=C>1?(N+f-a)/(C-1):1,F=0,V=0;for(D=this.pv.length?createTypedArray("float32",this.pv.length):0;F<C;){if(U=this.getValueAtTime(a+F*H),this.pv.length)for(V=0;V<this.pv.length;V+=1)D[V]+=U[V];else D+=U;F+=1}if(this.pv.length)for(V=0;V<this.pv.length;V+=1)D[V]/=C;else D/=C;return D}function t(f){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var C=this._transformCachingAtTime.v;if(C.cloneFromProps(this.pre.props),this.appliedTransformations<1){var N=this.a.getValueAtTime(f);C.translate(-N[0]*this.a.mult,-N[1]*this.a.mult,N[2]*this.a.mult)}if(this.appliedTransformations<2){var a=this.s.getValueAtTime(f);C.scale(a[0]*this.s.mult,a[1]*this.s.mult,a[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var O=this.sk.getValueAtTime(f),H=this.sa.getValueAtTime(f);C.skewFromAxis(-O*this.sk.mult,H*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var F=this.r.getValueAtTime(f);C.rotate(-F*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var V=this.rz.getValueAtTime(f),D=this.ry.getValueAtTime(f),U=this.rx.getValueAtTime(f),q=this.or.getValueAtTime(f);C.rotateZ(-V*this.rz.mult).rotateY(D*this.ry.mult).rotateX(U*this.rx.mult).rotateZ(-q[2]*this.or.mult).rotateY(q[1]*this.or.mult).rotateX(q[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var J=this.px.getValueAtTime(f),G=this.py.getValueAtTime(f);if(this.data.p.z){var ie=this.pz.getValueAtTime(f);C.translate(J*this.px.mult,G*this.py.mult,-ie*this.pz.mult)}else C.translate(J*this.px.mult,G*this.py.mult,0)}else{var K=this.p.getValueAtTime(f);C.translate(K[0]*this.p.mult,K[1]*this.p.mult,-K[2]*this.p.mult)}return C}function e(){return this.v.clone(new Matrix)}var l=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(f,C,N){var a=l(f,C,N);return a.getValueAtTime=a.dynamicProperties.length?t.bind(a):e.bind(a),a.setGroupProperty=expressionHelpers.setGroupProperty,a};var h=PropertyFactory.getProp;PropertyFactory.getProp=function(f,C,N,a,O){var H=h(f,C,N,a,O);H.getValueAtTime=H.kf?expressionHelpers.getValueAtTime.bind(H):expressionHelpers.getStaticValueAtTime.bind(H),H.setGroupProperty=expressionHelpers.setGroupProperty,H.loopOut=M,H.loopIn=b,H.smooth=n,H.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(H),H.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(H),H.numKeys=1===C.a?C.k.length:0,H.propertyIndex=C.ix;var F=0;return 0!==N&&(F=createTypedArray("float32",1===C.a?C.k[0].s.length:C.k.length)),H._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:F},expressionHelpers.searchExpressions(f,C,H),H.k&&O.addDynamicProperty(H),H};var d=ShapePropertyFactory.getConstructorFunction(),y=ShapePropertyFactory.getKeyframedConstructorFunction();function g(){}g.prototype={vertices:function(C,N){this.k&&this.getValue();var a=this.v;void 0!==N&&(a=this.getValueAtTime(N,0));var O,H=a._length,F=a[C],V=a.v,D=createSizedArray(H);for(O=0;O<H;O+=1)D[O]="i"===C||"o"===C?[F[O][0]-V[O][0],F[O][1]-V[O][1]]:[F[O][0],F[O][1]];return D},points:function(C){return this.vertices("v",C)},inTangents:function(C){return this.vertices("i",C)},outTangents:function(C){return this.vertices("o",C)},isClosed:function(){return this.v.c},pointOnPath:function(C,N){var a=this.v;void 0!==N&&(a=this.getValueAtTime(N,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(a));for(var q,O=this._segmentsLength,H=O.lengths,F=O.totalLength*C,V=0,D=H.length,U=0;V<D;){if(U+H[V].addedLength>F){var G=a.c&&V===D-1?0:V+1;q=bez.getPointInSegment(a.v[V],a.v[G],a.o[V],a.i[G],(F-U)/H[V].addedLength,H[V]);break}U+=H[V].addedLength,V+=1}return q||(q=a.c?[a.v[0][0],a.v[0][1]]:[a.v[a._length-1][0],a.v[a._length-1][1]]),q},vectorOnPath:function(C,N,a){1==C?C=this.v.c:0==C&&(C=.999);var O=this.pointOnPath(C,N),H=this.pointOnPath(C+.001,N),F=H[0]-O[0],V=H[1]-O[1],D=Math.sqrt(Math.pow(F,2)+Math.pow(V,2));return 0===D?[0,0]:"tangent"===a?[F/D,V/D]:[-V/D,F/D]},tangentOnPath:function(C,N){return this.vectorOnPath(C,N,"tangent")},normalOnPath:function(C,N){return this.vectorOnPath(C,N,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([g],d),extendPrototype([g],y),y.prototype.getValueAtTime=function r(f){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),f*=this.elem.globalData.frameRate,(f-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<f?this._caching.lastIndex:0,this._cachingAtTime.lastTime=f,this.interpolateShape(f,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},y.prototype.initiateExpression=ExpressionManager.initiateExpression;var p=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(f,C,N,a,O){var H=p(f,C,N,a,O);return H.propertyIndex=C.ix,H.lock=!1,3===N?expressionHelpers.searchExpressions(f,C.pt,H):4===N&&expressionHelpers.searchExpressions(f,C.ks,H),H.k&&f.addDynamicProperty(H),H}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(b,n){var t=this.calculateExpression(n);if(b.t!==t){var e={};return this.copyData(e,b),e.t=t.toString(),e.__complete=!1,e}return b},TextProperty.prototype.searchProperty=function(){var b=this.searchKeyframes(),n=this.searchExpressions();return this.kf=b||n,this.kf},TextProperty.prototype.searchExpressions=function M(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function M(b,n){var e,l,t=createNS("feMerge");for(t.setAttribute("result",b),l=0;l<n.length;l+=1)(e=createNS("feMergeNode")).setAttribute("in",n[l]),t.appendChild(e),t.appendChild(e);return t}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(M,b,n,t,e){this.filterManager=b;var l=createNS("feColorMatrix");l.setAttribute("type","matrix"),l.setAttribute("color-interpolation-filters","linearRGB"),l.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=l,l.setAttribute("result",t+"_tint_1"),M.appendChild(l),(l=createNS("feColorMatrix")).setAttribute("type","matrix"),l.setAttribute("color-interpolation-filters","sRGB"),l.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),l.setAttribute("result",t+"_tint_2"),M.appendChild(l),this.matrixFilter=l;var h=this.createMergeNode(t,[e,t+"_tint_1",t+"_tint_2"]);M.appendChild(h)}function SVGFillFilter(M,b,n,t){this.filterManager=b;var e=createNS("feColorMatrix");e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),e.setAttribute("result",t),M.appendChild(e),this.matrixFilter=e}function SVGStrokeEffect(M,b,n){this.initialized=!1,this.filterManager=b,this.elem=n,this.paths=[]}function SVGTritoneFilter(M,b,n,t){this.filterManager=b;var e=createNS("feColorMatrix");e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","linearRGB"),e.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),M.appendChild(e);var l=createNS("feComponentTransfer");l.setAttribute("color-interpolation-filters","sRGB"),l.setAttribute("result",t),this.matrixFilter=l;var h=createNS("feFuncR");h.setAttribute("type","table"),l.appendChild(h),this.feFuncR=h;var r=createNS("feFuncG");r.setAttribute("type","table"),l.appendChild(r),this.feFuncG=r;var d=createNS("feFuncB");d.setAttribute("type","table"),l.appendChild(d),this.feFuncB=d,M.appendChild(l)}function SVGProLevelsFilter(M,b,n,t){this.filterManager=b;var e=this.filterManager.effectElements,l=createNS("feComponentTransfer");(e[10].p.k||0!==e[10].p.v||e[11].p.k||1!==e[11].p.v||e[12].p.k||1!==e[12].p.v||e[13].p.k||0!==e[13].p.v||e[14].p.k||1!==e[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",l)),(e[17].p.k||0!==e[17].p.v||e[18].p.k||1!==e[18].p.v||e[19].p.k||1!==e[19].p.v||e[20].p.k||0!==e[20].p.v||e[21].p.k||1!==e[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",l)),(e[24].p.k||0!==e[24].p.v||e[25].p.k||1!==e[25].p.v||e[26].p.k||1!==e[26].p.v||e[27].p.k||0!==e[27].p.v||e[28].p.k||1!==e[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",l)),(e[31].p.k||0!==e[31].p.v||e[32].p.k||1!==e[32].p.v||e[33].p.k||1!==e[33].p.v||e[34].p.k||0!==e[34].p.v||e[35].p.k||1!==e[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",l)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(l.setAttribute("color-interpolation-filters","sRGB"),M.appendChild(l)),(e[3].p.k||0!==e[3].p.v||e[4].p.k||1!==e[4].p.v||e[5].p.k||1!==e[5].p.v||e[6].p.k||0!==e[6].p.v||e[7].p.k||1!==e[7].p.v)&&((l=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),l.setAttribute("result",t),M.appendChild(l),this.feFuncRComposed=this.createFeFunc("feFuncR",l),this.feFuncGComposed=this.createFeFunc("feFuncG",l),this.feFuncBComposed=this.createFeFunc("feFuncB",l))}function SVGDropShadowEffect(M,b,n,t,e){var l=b.container.globalData.renderConfig.filterSize,h=b.data.fs||l;M.setAttribute("x",h.x||l.x),M.setAttribute("y",h.y||l.y),M.setAttribute("width",h.width||l.width),M.setAttribute("height",h.height||l.height),this.filterManager=b;var r=createNS("feGaussianBlur");r.setAttribute("in","SourceAlpha"),r.setAttribute("result",t+"_drop_shadow_1"),r.setAttribute("stdDeviation","0"),this.feGaussianBlur=r,M.appendChild(r);var d=createNS("feOffset");d.setAttribute("dx","25"),d.setAttribute("dy","0"),d.setAttribute("in",t+"_drop_shadow_1"),d.setAttribute("result",t+"_drop_shadow_2"),this.feOffset=d,M.appendChild(d);var y=createNS("feFlood");y.setAttribute("flood-color","#00ff00"),y.setAttribute("flood-opacity","1"),y.setAttribute("result",t+"_drop_shadow_3"),this.feFlood=y,M.appendChild(y);var g=createNS("feComposite");g.setAttribute("in",t+"_drop_shadow_3"),g.setAttribute("in2",t+"_drop_shadow_2"),g.setAttribute("operator","in"),g.setAttribute("result",t+"_drop_shadow_4"),M.appendChild(g);var p=this.createMergeNode(t,[t+"_drop_shadow_4",e]);M.appendChild(p)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(M){if(M||this.filterManager._mdf){var b=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v;this.linearFilter.setAttribute("values",linearFilterValue+" "+this.filterManager.effectElements[2].p.v/100+" 0"),this.matrixFilter.setAttribute("values",n[0]-b[0]+" 0 0 0 "+b[0]+" "+(n[1]-b[1])+" 0 0 0 "+b[1]+" "+(n[2]-b[2])+" 0 0 0 "+b[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(M){if(M||this.filterManager._mdf){var b=this.filterManager.effectElements[2].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+b[0]+" 0 0 0 0 "+b[1]+" 0 0 0 0 "+b[2]+" 0 0 0 "+this.filterManager.effectElements[6].p.v+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var b,n,t,e,M=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(e=this.elem.maskManager.masksProperties.length,t=0):e=1+(t=this.filterManager.effectElements[0].p.v-1),(n=createNS("g")).setAttribute("fill","none"),n.setAttribute("stroke-linecap","round"),n.setAttribute("stroke-dashoffset",1);t<e;t+=1)b=createNS("path"),n.appendChild(b),this.paths.push({p:b,m:t});if(3===this.filterManager.effectElements[10].p.v){var l=createNS("mask"),h=createElementID();l.setAttribute("id",h),l.setAttribute("mask-type","alpha"),l.appendChild(n),this.elem.globalData.defs.appendChild(l);var r=createNS("g");for(r.setAttribute("mask","url("+getLocationHref()+"#"+h+")");M[0];)r.appendChild(M[0]);this.elem.layerElement.appendChild(r),this.masker=l,n.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(M=this.elem.layerElement.children||this.elem.layerElement.childNodes;M.length;)this.elem.layerElement.removeChild(M[0]);this.elem.layerElement.appendChild(n),this.elem.layerElement.removeAttribute("mask"),n.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=n},SVGStrokeEffect.prototype.renderFrame=function(M){this.initialized||this.initialize();var b,t,e,n=this.paths.length;for(b=0;b<n;b+=1)if(-1!==this.paths[b].m&&(t=this.elem.maskManager.viewData[this.paths[b].m],e=this.paths[b].p,(M||this.filterManager._mdf||t.prop._mdf)&&e.setAttribute("d",t.lastPath),M||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||t.prop._mdf)){var l;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var h=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),r=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),d=e.getTotalLength();l="0 0 0 "+d*h+" ";var f,p=Math.floor(d*(r-h)/(1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01));for(f=0;f<p;f+=1)l+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";l+="0 "+10*d+" 0 0"}else l="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;e.setAttribute("stroke-dasharray",l)}if((M||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(M||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(M||this.filterManager.effectElements[3].p._mdf)){var C=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*C[0])+","+bmFloor(255*C[1])+","+bmFloor(255*C[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(M){if(M||this.filterManager._mdf){var b=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,t=this.filterManager.effectElements[2].p.v,l=t[1]+" "+n[1]+" "+b[1],h=t[2]+" "+n[2]+" "+b[2];this.feFuncR.setAttribute("tableValues",t[0]+" "+n[0]+" "+b[0]),this.feFuncG.setAttribute("tableValues",l),this.feFuncB.setAttribute("tableValues",h)}},SVGProLevelsFilter.prototype.createFeFunc=function(M,b){var n=createNS(M);return n.setAttribute("type","table"),b.appendChild(n),n},SVGProLevelsFilter.prototype.getTableValue=function(M,b,n,t,e){for(var r,p,l=0,d=Math.min(M,b),y=Math.max(M,b),g=Array.call(null,{length:256}),f=0,C=e-t,N=b-M;l<=256;)p=(r=l/256)<=d?N<0?e:t:r>=y?N<0?t:e:t+C*Math.pow((r-M)/N,1/n),g[f]=p,f+=1,l+=256/255;return g.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(M){if(M||this.filterManager._mdf){var b,n=this.filterManager.effectElements;this.feFuncRComposed&&(M||n[3].p._mdf||n[4].p._mdf||n[5].p._mdf||n[6].p._mdf||n[7].p._mdf)&&(b=this.getTableValue(n[3].p.v,n[4].p.v,n[5].p.v,n[6].p.v,n[7].p.v),this.feFuncRComposed.setAttribute("tableValues",b),this.feFuncGComposed.setAttribute("tableValues",b),this.feFuncBComposed.setAttribute("tableValues",b)),this.feFuncR&&(M||n[10].p._mdf||n[11].p._mdf||n[12].p._mdf||n[13].p._mdf||n[14].p._mdf)&&(b=this.getTableValue(n[10].p.v,n[11].p.v,n[12].p.v,n[13].p.v,n[14].p.v),this.feFuncR.setAttribute("tableValues",b)),this.feFuncG&&(M||n[17].p._mdf||n[18].p._mdf||n[19].p._mdf||n[20].p._mdf||n[21].p._mdf)&&(b=this.getTableValue(n[17].p.v,n[18].p.v,n[19].p.v,n[20].p.v,n[21].p.v),this.feFuncG.setAttribute("tableValues",b)),this.feFuncB&&(M||n[24].p._mdf||n[25].p._mdf||n[26].p._mdf||n[27].p._mdf||n[28].p._mdf)&&(b=this.getTableValue(n[24].p.v,n[25].p.v,n[26].p.v,n[27].p.v,n[28].p.v),this.feFuncB.setAttribute("tableValues",b)),this.feFuncA&&(M||n[31].p._mdf||n[32].p._mdf||n[33].p._mdf||n[34].p._mdf||n[35].p._mdf)&&(b=this.getTableValue(n[31].p.v,n[32].p.v,n[33].p.v,n[34].p.v,n[35].p.v),this.feFuncA.setAttribute("tableValues",b))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(M){if(M||this.filterManager._mdf){if((M||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),M||this.filterManager.effectElements[0].p._mdf){var b=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*b[0]),Math.round(255*b[1]),Math.round(255*b[2])))}if((M||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),M||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var n=this.filterManager.effectElements[3].p.v,t=(this.filterManager.effectElements[2].p.v-90)*degToRads,e=n*Math.cos(t),l=n*Math.sin(t);this.feOffset.setAttribute("dx",e),this.feOffset.setAttribute("dy",l)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(M,b,n){this.initialized=!1,this.filterManager=b,this.filterElem=M,this.elem=n,n.matteElement=createNS("g"),n.matteElement.appendChild(n.layerElement),n.matteElement.appendChild(n.transformedElement),n.baseElement=n.matteElement}function SVGGaussianBlurEffect(M,b,n,t){M.setAttribute("x","-100%"),M.setAttribute("y","-100%"),M.setAttribute("width","300%"),M.setAttribute("height","300%"),this.filterManager=b;var e=createNS("feGaussianBlur");e.setAttribute("result",t),M.appendChild(e),this.feGaussianBlur=e}return SVGMatte3Effect.prototype.findSymbol=function(M){for(var b=0,n=_svgMatteSymbols.length;b<n;){if(_svgMatteSymbols[b]===M)return _svgMatteSymbols[b];b+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(M,b){var n=M.layerElement.parentNode;if(n){for(var t=n.children,e=0,l=t.length;e<l&&t[e]!==M.layerElement;)e+=1;var h;e<=l-2&&(h=t[e+1]);var r=createNS("use");r.setAttribute("href","#"+b),h?n.insertBefore(r,h):n.appendChild(r)}},SVGMatte3Effect.prototype.setElementAsMask=function(M,b){if(!this.findSymbol(b)){var n=createElementID(),t=createNS("mask");t.setAttribute("id",b.layerId),t.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(b);var e=M.globalData.defs;e.appendChild(t);var l=createNS("symbol");l.setAttribute("id",n),this.replaceInParent(b,n),l.appendChild(b.layerElement),e.appendChild(l);var h=createNS("use");h.setAttribute("href","#"+n),t.appendChild(h),b.data.hd=!1,b.show()}M.setMatte(b.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var M=this.filterManager.effectElements[0].p.v,b=this.elem.comp.elements,n=0,t=b.length;n<t;)b[n]&&b[n].data.ind===M&&this.setElementAsMask(this.elem,b[n]),n+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(M){if(M||this.filterManager._mdf){var n=.3*this.filterManager.effectElements[0].p.v,t=this.filterManager.effectElements[1].p.v;this.feGaussianBlur.setAttribute("stdDeviation",(3==t?0:n)+" "+(2==t?0:n)),this.feGaussianBlur.setAttribute("edgeMode",1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate")}},registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect(20,SVGTintFilter,!0),registerEffect(21,SVGFillFilter,!0),registerEffect(22,SVGStrokeEffect,!1),registerEffect(23,SVGTritoneFilter,!0),registerEffect(24,SVGProLevelsFilter,!0),registerEffect(25,SVGDropShadowEffect,!0),registerEffect(28,SVGMatte3Effect,!1),registerEffect(29,SVGGaussianBlurEffect,!0),lottie},module.exports=b())},8095:(M,b,n)=>{"use strict";var t=n(83894),e=n(39650),l=n(73502).Buffer,h=new Array(16);function r(){e.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function d(C,N){return C<<N|C>>>32-N}function y(C,N,a,O,H,F,V){return d(C+(N&a|~N&O)+H+F|0,V)+N|0}function g(C,N,a,O,H,F,V){return d(C+(N&O|a&~O)+H+F|0,V)+N|0}function p(C,N,a,O,H,F,V){return d(C+(N^a^O)+H+F|0,V)+N|0}function f(C,N,a,O,H,F,V){return d(C+(a^(N|~O))+H+F|0,V)+N|0}t(r,e),r.prototype._update=function(){for(var C=h,N=0;N<16;++N)C[N]=this._block.readInt32LE(4*N);var a=this._a,O=this._b,H=this._c,F=this._d;a=y(a,O,H,F,C[0],3614090360,7),F=y(F,a,O,H,C[1],3905402710,12),H=y(H,F,a,O,C[2],606105819,17),O=y(O,H,F,a,C[3],3250441966,22),a=y(a,O,H,F,C[4],4118548399,7),F=y(F,a,O,H,C[5],1200080426,12),H=y(H,F,a,O,C[6],2821735955,17),O=y(O,H,F,a,C[7],4249261313,22),a=y(a,O,H,F,C[8],1770035416,7),F=y(F,a,O,H,C[9],2336552879,12),H=y(H,F,a,O,C[10],4294925233,17),O=y(O,H,F,a,C[11],2304563134,22),a=y(a,O,H,F,C[12],1804603682,7),F=y(F,a,O,H,C[13],4254626195,12),H=y(H,F,a,O,C[14],2792965006,17),a=g(a,O=y(O,H,F,a,C[15],1236535329,22),H,F,C[1],4129170786,5),F=g(F,a,O,H,C[6],3225465664,9),H=g(H,F,a,O,C[11],643717713,14),O=g(O,H,F,a,C[0],3921069994,20),a=g(a,O,H,F,C[5],3593408605,5),F=g(F,a,O,H,C[10],38016083,9),H=g(H,F,a,O,C[15],3634488961,14),O=g(O,H,F,a,C[4],3889429448,20),a=g(a,O,H,F,C[9],568446438,5),F=g(F,a,O,H,C[14],3275163606,9),H=g(H,F,a,O,C[3],4107603335,14),O=g(O,H,F,a,C[8],1163531501,20),a=g(a,O,H,F,C[13],2850285829,5),F=g(F,a,O,H,C[2],4243563512,9),H=g(H,F,a,O,C[7],1735328473,14),a=p(a,O=g(O,H,F,a,C[12],2368359562,20),H,F,C[5],4294588738,4),F=p(F,a,O,H,C[8],2272392833,11),H=p(H,F,a,O,C[11],1839030562,16),O=p(O,H,F,a,C[14],4259657740,23),a=p(a,O,H,F,C[1],2763975236,4),F=p(F,a,O,H,C[4],1272893353,11),H=p(H,F,a,O,C[7],4139469664,16),O=p(O,H,F,a,C[10],3200236656,23),a=p(a,O,H,F,C[13],681279174,4),F=p(F,a,O,H,C[0],3936430074,11),H=p(H,F,a,O,C[3],3572445317,16),O=p(O,H,F,a,C[6],76029189,23),a=p(a,O,H,F,C[9],3654602809,4),F=p(F,a,O,H,C[12],3873151461,11),H=p(H,F,a,O,C[15],530742520,16),a=f(a,O=p(O,H,F,a,C[2],3299628645,23),H,F,C[0],4096336452,6),F=f(F,a,O,H,C[7],1126891415,10),H=f(H,F,a,O,C[14],2878612391,15),O=f(O,H,F,a,C[5],4237533241,21),a=f(a,O,H,F,C[12],1700485571,6),F=f(F,a,O,H,C[3],2399980690,10),H=f(H,F,a,O,C[10],4293915773,15),O=f(O,H,F,a,C[1],2240044497,21),a=f(a,O,H,F,C[8],1873313359,6),F=f(F,a,O,H,C[15],4264355552,10),H=f(H,F,a,O,C[6],2734768916,15),O=f(O,H,F,a,C[13],1309151649,21),a=f(a,O,H,F,C[4],4149444226,6),F=f(F,a,O,H,C[11],3174756917,10),H=f(H,F,a,O,C[2],718787259,15),O=f(O,H,F,a,C[9],3951481745,21),this._a=this._a+a|0,this._b=this._b+O|0,this._c=this._c+H|0,this._d=this._d+F|0},r.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var C=l.allocUnsafe(16);return C.writeInt32LE(this._a,0),C.writeInt32LE(this._b,4),C.writeInt32LE(this._c,8),C.writeInt32LE(this._d,12),C},M.exports=r},17079:(M,b,n)=>{var t=n(1378),e=n(37950);function l(h){this.rand=h||new e.Rand}M.exports=l,l.create=function(r){return new l(r)},l.prototype._randbelow=function(r){var d=r.bitLength(),y=Math.ceil(d/8);do{var g=new t(this.rand.generate(y))}while(g.cmp(r)>=0);return g},l.prototype._randrange=function(r,d){var y=d.sub(r);return r.add(this._randbelow(y))},l.prototype.test=function(r,d,y){var g=r.bitLength(),p=t.mont(r),f=new t(1).toRed(p);d||(d=Math.max(1,g/48|0));for(var C=r.subn(1),N=0;!C.testn(N);N++);for(var a=r.shrn(N),O=C.toRed(p);d>0;d--){var F=this._randrange(new t(2),C);y&&y(F);var V=F.toRed(p).redPow(a);if(0!==V.cmp(f)&&0!==V.cmp(O)){for(var D=1;D<N;D++){if(0===(V=V.redSqr()).cmp(f))return!1;if(0===V.cmp(O))break}if(D===N)return!1}}return!0},l.prototype.getDivisor=function(r,d){var y=r.bitLength(),g=t.mont(r),p=new t(1).toRed(g);d||(d=Math.max(1,y/48|0));for(var f=r.subn(1),C=0;!f.testn(C);C++);for(var N=r.shrn(C),a=f.toRed(g);d>0;d--){var O=this._randrange(new t(2),f),H=r.gcd(O);if(0!==H.cmpn(1))return H;var F=O.toRed(g).redPow(N);if(0!==F.cmp(p)&&0!==F.cmp(a)){for(var V=1;V<C;V++){if(0===(F=F.redSqr()).cmp(p))return F.fromRed().subn(1).gcd(r);if(0===F.cmp(a))break}if(V===C)return(F=F.redSqr()).fromRed().subn(1).gcd(r)}}return!1}},1378:function(M,b,n){!function(t,e){"use strict";function l(B,s){if(!B)throw new Error(s||"Assertion failed")}function h(B,s){B.super_=s;var _=function(){};_.prototype=s.prototype,B.prototype=new _,B.prototype.constructor=B}function r(B,s,_){if(r.isBN(B))return B;this.negative=0,this.words=null,this.length=0,this.red=null,null!==B&&(("le"===s||"be"===s)&&(_=s,s=10),this._init(B||0,s||10,_||"be"))}var d;"object"==typeof t?t.exports=r:e.BN=r,r.BN=r,r.wordSize=26;try{d=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:n(56619).Buffer}catch{}function y(B,s){var _=B.charCodeAt(s);return _>=65&&_<=70?_-55:_>=97&&_<=102?_-87:_-48&15}function g(B,s,_){var w=y(B,_);return _-1>=s&&(w|=y(B,_-1)<<4),w}function p(B,s,_,w){for(var E=0,x=Math.min(B.length,_),j=s;j<x;j++){var $=B.charCodeAt(j)-48;E*=w,E+=$>=49?$-49+10:$>=17?$-17+10:$}return E}r.isBN=function(s){return s instanceof r||null!==s&&"object"==typeof s&&s.constructor.wordSize===r.wordSize&&Array.isArray(s.words)},r.max=function(s,_){return s.cmp(_)>0?s:_},r.min=function(s,_){return s.cmp(_)<0?s:_},r.prototype._init=function(s,_,w){if("number"==typeof s)return this._initNumber(s,_,w);if("object"==typeof s)return this._initArray(s,_,w);"hex"===_&&(_=16),l(_===(0|_)&&_>=2&&_<=36);var E=0;"-"===(s=s.toString().replace(/\s+/g,""))[0]&&(E++,this.negative=1),E<s.length&&(16===_?this._parseHex(s,E,w):(this._parseBase(s,_,E),"le"===w&&this._initArray(this.toArray(),_,w)))},r.prototype._initNumber=function(s,_,w){s<0&&(this.negative=1,s=-s),s<67108864?(this.words=[67108863&s],this.length=1):s<4503599627370496?(this.words=[67108863&s,s/67108864&67108863],this.length=2):(l(s<9007199254740992),this.words=[67108863&s,s/67108864&67108863,1],this.length=3),"le"===w&&this._initArray(this.toArray(),_,w)},r.prototype._initArray=function(s,_,w){if(l("number"==typeof s.length),s.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(s.length/3),this.words=new Array(this.length);for(var E=0;E<this.length;E++)this.words[E]=0;var x,j,$=0;if("be"===w)for(E=s.length-1,x=0;E>=0;E-=3)this.words[x]|=(j=s[E]|s[E-1]<<8|s[E-2]<<16)<<$&67108863,this.words[x+1]=j>>>26-$&67108863,($+=24)>=26&&($-=26,x++);else if("le"===w)for(E=0,x=0;E<s.length;E+=3)this.words[x]|=(j=s[E]|s[E+1]<<8|s[E+2]<<16)<<$&67108863,this.words[x+1]=j>>>26-$&67108863,($+=24)>=26&&($-=26,x++);return this.strip()},r.prototype._parseHex=function(s,_,w){this.length=Math.ceil((s.length-_)/6),this.words=new Array(this.length);for(var E=0;E<this.length;E++)this.words[E]=0;var $,x=0,j=0;if("be"===w)for(E=s.length-1;E>=_;E-=2)$=g(s,_,E)<<x,this.words[j]|=67108863&$,x>=18?(x-=18,this.words[j+=1]|=$>>>26):x+=8;else for(E=(s.length-_)%2==0?_+1:_;E<s.length;E+=2)$=g(s,_,E)<<x,this.words[j]|=67108863&$,x>=18?(x-=18,this.words[j+=1]|=$>>>26):x+=8;this.strip()},r.prototype._parseBase=function(s,_,w){this.words=[0],this.length=1;for(var E=0,x=1;x<=67108863;x*=_)E++;E--,x=x/_|0;for(var j=s.length-w,$=j%E,Y=Math.min(j,j-$)+w,u=0,W=w;W<Y;W+=E)u=p(s,W,W+E,_),this.imuln(x),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==$){var fe=1;for(u=p(s,W,s.length,_),W=0;W<$;W++)fe*=_;this.imuln(fe),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},r.prototype.copy=function(s){s.words=new Array(this.length);for(var _=0;_<this.length;_++)s.words[_]=this.words[_];s.length=this.length,s.negative=this.negative,s.red=this.red},r.prototype.clone=function(){var s=new r(null);return this.copy(s),s},r.prototype._expand=function(s){for(;this.length<s;)this.words[this.length++]=0;return this},r.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},r.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},r.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],C=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],N=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function O(B,s,_){_.negative=s.negative^B.negative;var w=B.length+s.length|0;_.length=w,w=w-1|0;var E=0|B.words[0],x=0|s.words[0],j=E*x,Y=j/67108864|0;_.words[0]=67108863&j;for(var u=1;u<w;u++){for(var W=Y>>>26,fe=67108863&Y,ae=Math.min(u,s.length-1),ye=Math.max(0,u-B.length+1);ye<=ae;ye++)W+=(j=(E=0|B.words[u-ye|0])*(x=0|s.words[ye])+fe)/67108864|0,fe=67108863&j;_.words[u]=0|fe,Y=0|W}return 0!==Y?_.words[u]=0|Y:_.length--,_.strip()}r.prototype.toString=function(s,_){var w;if(_=0|_||1,16===(s=s||10)||"hex"===s){w="";for(var E=0,x=0,j=0;j<this.length;j++){var $=this.words[j],Y=(16777215&($<<E|x)).toString(16);w=0!=(x=$>>>24-E&16777215)||j!==this.length-1?f[6-Y.length]+Y+w:Y+w,(E+=2)>=26&&(E-=26,j--)}for(0!==x&&(w=x.toString(16)+w);w.length%_!=0;)w="0"+w;return 0!==this.negative&&(w="-"+w),w}if(s===(0|s)&&s>=2&&s<=36){var u=C[s],W=N[s];w="";var fe=this.clone();for(fe.negative=0;!fe.isZero();){var ae=fe.modn(W).toString(s);w=(fe=fe.idivn(W)).isZero()?ae+w:f[u-ae.length]+ae+w}for(this.isZero()&&(w="0"+w);w.length%_!=0;)w="0"+w;return 0!==this.negative&&(w="-"+w),w}l(!1,"Base should be between 2 and 36")},r.prototype.toNumber=function(){var s=this.words[0];return 2===this.length?s+=67108864*this.words[1]:3===this.length&&1===this.words[2]?s+=4503599627370496+67108864*this.words[1]:this.length>2&&l(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-s:s},r.prototype.toJSON=function(){return this.toString(16)},r.prototype.toBuffer=function(s,_){return l(typeof d<"u"),this.toArrayLike(d,s,_)},r.prototype.toArray=function(s,_){return this.toArrayLike(Array,s,_)},r.prototype.toArrayLike=function(s,_,w){var E=this.byteLength(),x=w||Math.max(1,E);l(E<=x,"byte array longer than desired length"),l(x>0,"Requested array length <= 0"),this.strip();var Y,u,j="le"===_,$=new s(x),W=this.clone();if(j){for(u=0;!W.isZero();u++)Y=W.andln(255),W.iushrn(8),$[u]=Y;for(;u<x;u++)$[u]=0}else{for(u=0;u<x-E;u++)$[u]=0;for(u=0;!W.isZero();u++)Y=W.andln(255),W.iushrn(8),$[x-u-1]=Y}return $},r.prototype._countBits=Math.clz32?function(s){return 32-Math.clz32(s)}:function(s){var _=s,w=0;return _>=4096&&(w+=13,_>>>=13),_>=64&&(w+=7,_>>>=7),_>=8&&(w+=4,_>>>=4),_>=2&&(w+=2,_>>>=2),w+_},r.prototype._zeroBits=function(s){if(0===s)return 26;var _=s,w=0;return 0==(8191&_)&&(w+=13,_>>>=13),0==(127&_)&&(w+=7,_>>>=7),0==(15&_)&&(w+=4,_>>>=4),0==(3&_)&&(w+=2,_>>>=2),0==(1&_)&&w++,w},r.prototype.bitLength=function(){var _=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+_},r.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s=0,_=0;_<this.length;_++){var w=this._zeroBits(this.words[_]);if(s+=w,26!==w)break}return s},r.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},r.prototype.toTwos=function(s){return 0!==this.negative?this.abs().inotn(s).iaddn(1):this.clone()},r.prototype.fromTwos=function(s){return this.testn(s-1)?this.notn(s).iaddn(1).ineg():this.clone()},r.prototype.isNeg=function(){return 0!==this.negative},r.prototype.neg=function(){return this.clone().ineg()},r.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},r.prototype.iuor=function(s){for(;this.length<s.length;)this.words[this.length++]=0;for(var _=0;_<s.length;_++)this.words[_]=this.words[_]|s.words[_];return this.strip()},r.prototype.ior=function(s){return l(0==(this.negative|s.negative)),this.iuor(s)},r.prototype.or=function(s){return this.length>s.length?this.clone().ior(s):s.clone().ior(this)},r.prototype.uor=function(s){return this.length>s.length?this.clone().iuor(s):s.clone().iuor(this)},r.prototype.iuand=function(s){var _;_=this.length>s.length?s:this;for(var w=0;w<_.length;w++)this.words[w]=this.words[w]&s.words[w];return this.length=_.length,this.strip()},r.prototype.iand=function(s){return l(0==(this.negative|s.negative)),this.iuand(s)},r.prototype.and=function(s){return this.length>s.length?this.clone().iand(s):s.clone().iand(this)},r.prototype.uand=function(s){return this.length>s.length?this.clone().iuand(s):s.clone().iuand(this)},r.prototype.iuxor=function(s){var _,w;this.length>s.length?(_=this,w=s):(_=s,w=this);for(var E=0;E<w.length;E++)this.words[E]=_.words[E]^w.words[E];if(this!==_)for(;E<_.length;E++)this.words[E]=_.words[E];return this.length=_.length,this.strip()},r.prototype.ixor=function(s){return l(0==(this.negative|s.negative)),this.iuxor(s)},r.prototype.xor=function(s){return this.length>s.length?this.clone().ixor(s):s.clone().ixor(this)},r.prototype.uxor=function(s){return this.length>s.length?this.clone().iuxor(s):s.clone().iuxor(this)},r.prototype.inotn=function(s){l("number"==typeof s&&s>=0);var _=0|Math.ceil(s/26),w=s%26;this._expand(_),w>0&&_--;for(var E=0;E<_;E++)this.words[E]=67108863&~this.words[E];return w>0&&(this.words[E]=~this.words[E]&67108863>>26-w),this.strip()},r.prototype.notn=function(s){return this.clone().inotn(s)},r.prototype.setn=function(s,_){l("number"==typeof s&&s>=0);var w=s/26|0,E=s%26;return this._expand(w+1),this.words[w]=_?this.words[w]|1<<E:this.words[w]&~(1<<E),this.strip()},r.prototype.iadd=function(s){var _,w,E;if(0!==this.negative&&0===s.negative)return this.negative=0,_=this.isub(s),this.negative^=1,this._normSign();if(0===this.negative&&0!==s.negative)return s.negative=0,_=this.isub(s),s.negative=1,_._normSign();this.length>s.length?(w=this,E=s):(w=s,E=this);for(var x=0,j=0;j<E.length;j++)this.words[j]=67108863&(_=(0|w.words[j])+(0|E.words[j])+x),x=_>>>26;for(;0!==x&&j<w.length;j++)this.words[j]=67108863&(_=(0|w.words[j])+x),x=_>>>26;if(this.length=w.length,0!==x)this.words[this.length]=x,this.length++;else if(w!==this)for(;j<w.length;j++)this.words[j]=w.words[j];return this},r.prototype.add=function(s){var _;return 0!==s.negative&&0===this.negative?(s.negative=0,_=this.sub(s),s.negative^=1,_):0===s.negative&&0!==this.negative?(this.negative=0,_=s.sub(this),this.negative=1,_):this.length>s.length?this.clone().iadd(s):s.clone().iadd(this)},r.prototype.isub=function(s){if(0!==s.negative){s.negative=0;var _=this.iadd(s);return s.negative=1,_._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(s),this.negative=1,this._normSign();var E,x,w=this.cmp(s);if(0===w)return this.negative=0,this.length=1,this.words[0]=0,this;w>0?(E=this,x=s):(E=s,x=this);for(var j=0,$=0;$<x.length;$++)j=(_=(0|E.words[$])-(0|x.words[$])+j)>>26,this.words[$]=67108863&_;for(;0!==j&&$<E.length;$++)j=(_=(0|E.words[$])+j)>>26,this.words[$]=67108863&_;if(0===j&&$<E.length&&E!==this)for(;$<E.length;$++)this.words[$]=E.words[$];return this.length=Math.max(this.length,$),E!==this&&(this.negative=1),this.strip()},r.prototype.sub=function(s){return this.clone().isub(s)};var H=function(s,_,w){var Y,u,W,E=s.words,x=_.words,j=w.words,$=0,fe=0|E[0],ae=8191&fe,ye=fe>>>13,Qe=0|E[1],Ot=8191&Qe,At=Qe>>>13,Ze=0|E[2],at=8191&Ze,Be=Ze>>>13,Lt=0|E[3],_e=8191&Lt,ne=Lt>>>13,be=0|E[4],Te=8191&be,$e=be>>>13,ft=0|E[5],Ge=8191&ft,Ft=ft>>>13,br=0|E[6],rt=8191&br,st=br>>>13,Dt=0|E[7],ot=8191&Dt,nt=Dt>>>13,Yt=0|E[8],Ne=8191&Yt,X=Yt>>>13,ge=0|E[9],Me=8191&ge,We=ge>>>13,Re=0|x[0],pt=8191&Re,Zt=Re>>>13,cr=0|x[1],wt=8191&cr,gt=cr>>>13,Ut=0|x[2],hr=8191&Ut,Cr=Ut>>>13,Ue=0|x[3],Pt=8191&Ue,He=Ue>>>13,tt=0|x[4],Ke=8191&tt,kt=tt>>>13,xe=0|x[5],Fe=8191&xe,lt=xe>>>13,St=0|x[6],qe=8191&St,ke=St>>>13,ct=0|x[7],vt=8191&ct,$t=ct>>>13,Vr=0|x[8],Sr=8191&Vr,Ar=Vr>>>13,Jr=0|x[9],Fr=8191&Jr,Gt=Jr>>>13;w.negative=s.negative^_.negative,w.length=19;var le=($+(Y=Math.imul(ae,pt))|0)+((8191&(u=(u=Math.imul(ae,Zt))+Math.imul(ye,pt)|0))<<13)|0;$=((W=Math.imul(ye,Zt))+(u>>>13)|0)+(le>>>26)|0,le&=67108863,Y=Math.imul(Ot,pt),u=(u=Math.imul(Ot,Zt))+Math.imul(At,pt)|0,W=Math.imul(At,Zt);var Ce=($+(Y=Y+Math.imul(ae,wt)|0)|0)+((8191&(u=(u=u+Math.imul(ae,gt)|0)+Math.imul(ye,wt)|0))<<13)|0;$=((W=W+Math.imul(ye,gt)|0)+(u>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,Y=Math.imul(at,pt),u=(u=Math.imul(at,Zt))+Math.imul(Be,pt)|0,W=Math.imul(Be,Zt),Y=Y+Math.imul(Ot,wt)|0,u=(u=u+Math.imul(Ot,gt)|0)+Math.imul(At,wt)|0,W=W+Math.imul(At,gt)|0;var Ie=($+(Y=Y+Math.imul(ae,hr)|0)|0)+((8191&(u=(u=u+Math.imul(ae,Cr)|0)+Math.imul(ye,hr)|0))<<13)|0;$=((W=W+Math.imul(ye,Cr)|0)+(u>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,Y=Math.imul(_e,pt),u=(u=Math.imul(_e,Zt))+Math.imul(ne,pt)|0,W=Math.imul(ne,Zt),Y=Y+Math.imul(at,wt)|0,u=(u=u+Math.imul(at,gt)|0)+Math.imul(Be,wt)|0,W=W+Math.imul(Be,gt)|0,Y=Y+Math.imul(Ot,hr)|0,u=(u=u+Math.imul(Ot,Cr)|0)+Math.imul(At,hr)|0,W=W+Math.imul(At,Cr)|0;var Pe=($+(Y=Y+Math.imul(ae,Pt)|0)|0)+((8191&(u=(u=u+Math.imul(ae,He)|0)+Math.imul(ye,Pt)|0))<<13)|0;$=((W=W+Math.imul(ye,He)|0)+(u>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,Y=Math.imul(Te,pt),u=(u=Math.imul(Te,Zt))+Math.imul($e,pt)|0,W=Math.imul($e,Zt),Y=Y+Math.imul(_e,wt)|0,u=(u=u+Math.imul(_e,gt)|0)+Math.imul(ne,wt)|0,W=W+Math.imul(ne,gt)|0,Y=Y+Math.imul(at,hr)|0,u=(u=u+Math.imul(at,Cr)|0)+Math.imul(Be,hr)|0,W=W+Math.imul(Be,Cr)|0,Y=Y+Math.imul(Ot,Pt)|0,u=(u=u+Math.imul(Ot,He)|0)+Math.imul(At,Pt)|0,W=W+Math.imul(At,He)|0;var Oe=($+(Y=Y+Math.imul(ae,Ke)|0)|0)+((8191&(u=(u=u+Math.imul(ae,kt)|0)+Math.imul(ye,Ke)|0))<<13)|0;$=((W=W+Math.imul(ye,kt)|0)+(u>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,Y=Math.imul(Ge,pt),u=(u=Math.imul(Ge,Zt))+Math.imul(Ft,pt)|0,W=Math.imul(Ft,Zt),Y=Y+Math.imul(Te,wt)|0,u=(u=u+Math.imul(Te,gt)|0)+Math.imul($e,wt)|0,W=W+Math.imul($e,gt)|0,Y=Y+Math.imul(_e,hr)|0,u=(u=u+Math.imul(_e,Cr)|0)+Math.imul(ne,hr)|0,W=W+Math.imul(ne,Cr)|0,Y=Y+Math.imul(at,Pt)|0,u=(u=u+Math.imul(at,He)|0)+Math.imul(Be,Pt)|0,W=W+Math.imul(Be,He)|0,Y=Y+Math.imul(Ot,Ke)|0,u=(u=u+Math.imul(Ot,kt)|0)+Math.imul(At,Ke)|0,W=W+Math.imul(At,kt)|0;var Se=($+(Y=Y+Math.imul(ae,Fe)|0)|0)+((8191&(u=(u=u+Math.imul(ae,lt)|0)+Math.imul(ye,Fe)|0))<<13)|0;$=((W=W+Math.imul(ye,lt)|0)+(u>>>13)|0)+(Se>>>26)|0,Se&=67108863,Y=Math.imul(rt,pt),u=(u=Math.imul(rt,Zt))+Math.imul(st,pt)|0,W=Math.imul(st,Zt),Y=Y+Math.imul(Ge,wt)|0,u=(u=u+Math.imul(Ge,gt)|0)+Math.imul(Ft,wt)|0,W=W+Math.imul(Ft,gt)|0,Y=Y+Math.imul(Te,hr)|0,u=(u=u+Math.imul(Te,Cr)|0)+Math.imul($e,hr)|0,W=W+Math.imul($e,Cr)|0,Y=Y+Math.imul(_e,Pt)|0,u=(u=u+Math.imul(_e,He)|0)+Math.imul(ne,Pt)|0,W=W+Math.imul(ne,He)|0,Y=Y+Math.imul(at,Ke)|0,u=(u=u+Math.imul(at,kt)|0)+Math.imul(Be,Ke)|0,W=W+Math.imul(Be,kt)|0,Y=Y+Math.imul(Ot,Fe)|0,u=(u=u+Math.imul(Ot,lt)|0)+Math.imul(At,Fe)|0,W=W+Math.imul(At,lt)|0;var Xe=($+(Y=Y+Math.imul(ae,qe)|0)|0)+((8191&(u=(u=u+Math.imul(ae,ke)|0)+Math.imul(ye,qe)|0))<<13)|0;$=((W=W+Math.imul(ye,ke)|0)+(u>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,Y=Math.imul(ot,pt),u=(u=Math.imul(ot,Zt))+Math.imul(nt,pt)|0,W=Math.imul(nt,Zt),Y=Y+Math.imul(rt,wt)|0,u=(u=u+Math.imul(rt,gt)|0)+Math.imul(st,wt)|0,W=W+Math.imul(st,gt)|0,Y=Y+Math.imul(Ge,hr)|0,u=(u=u+Math.imul(Ge,Cr)|0)+Math.imul(Ft,hr)|0,W=W+Math.imul(Ft,Cr)|0,Y=Y+Math.imul(Te,Pt)|0,u=(u=u+Math.imul(Te,He)|0)+Math.imul($e,Pt)|0,W=W+Math.imul($e,He)|0,Y=Y+Math.imul(_e,Ke)|0,u=(u=u+Math.imul(_e,kt)|0)+Math.imul(ne,Ke)|0,W=W+Math.imul(ne,kt)|0,Y=Y+Math.imul(at,Fe)|0,u=(u=u+Math.imul(at,lt)|0)+Math.imul(Be,Fe)|0,W=W+Math.imul(Be,lt)|0,Y=Y+Math.imul(Ot,qe)|0,u=(u=u+Math.imul(Ot,ke)|0)+Math.imul(At,qe)|0,W=W+Math.imul(At,ke)|0;var Ct=($+(Y=Y+Math.imul(ae,vt)|0)|0)+((8191&(u=(u=u+Math.imul(ae,$t)|0)+Math.imul(ye,vt)|0))<<13)|0;$=((W=W+Math.imul(ye,$t)|0)+(u>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,Y=Math.imul(Ne,pt),u=(u=Math.imul(Ne,Zt))+Math.imul(X,pt)|0,W=Math.imul(X,Zt),Y=Y+Math.imul(ot,wt)|0,u=(u=u+Math.imul(ot,gt)|0)+Math.imul(nt,wt)|0,W=W+Math.imul(nt,gt)|0,Y=Y+Math.imul(rt,hr)|0,u=(u=u+Math.imul(rt,Cr)|0)+Math.imul(st,hr)|0,W=W+Math.imul(st,Cr)|0,Y=Y+Math.imul(Ge,Pt)|0,u=(u=u+Math.imul(Ge,He)|0)+Math.imul(Ft,Pt)|0,W=W+Math.imul(Ft,He)|0,Y=Y+Math.imul(Te,Ke)|0,u=(u=u+Math.imul(Te,kt)|0)+Math.imul($e,Ke)|0,W=W+Math.imul($e,kt)|0,Y=Y+Math.imul(_e,Fe)|0,u=(u=u+Math.imul(_e,lt)|0)+Math.imul(ne,Fe)|0,W=W+Math.imul(ne,lt)|0,Y=Y+Math.imul(at,qe)|0,u=(u=u+Math.imul(at,ke)|0)+Math.imul(Be,qe)|0,W=W+Math.imul(Be,ke)|0,Y=Y+Math.imul(Ot,vt)|0,u=(u=u+Math.imul(Ot,$t)|0)+Math.imul(At,vt)|0,W=W+Math.imul(At,$t)|0;var zt=($+(Y=Y+Math.imul(ae,Sr)|0)|0)+((8191&(u=(u=u+Math.imul(ae,Ar)|0)+Math.imul(ye,Sr)|0))<<13)|0;$=((W=W+Math.imul(ye,Ar)|0)+(u>>>13)|0)+(zt>>>26)|0,zt&=67108863,Y=Math.imul(Me,pt),u=(u=Math.imul(Me,Zt))+Math.imul(We,pt)|0,W=Math.imul(We,Zt),Y=Y+Math.imul(Ne,wt)|0,u=(u=u+Math.imul(Ne,gt)|0)+Math.imul(X,wt)|0,W=W+Math.imul(X,gt)|0,Y=Y+Math.imul(ot,hr)|0,u=(u=u+Math.imul(ot,Cr)|0)+Math.imul(nt,hr)|0,W=W+Math.imul(nt,Cr)|0,Y=Y+Math.imul(rt,Pt)|0,u=(u=u+Math.imul(rt,He)|0)+Math.imul(st,Pt)|0,W=W+Math.imul(st,He)|0,Y=Y+Math.imul(Ge,Ke)|0,u=(u=u+Math.imul(Ge,kt)|0)+Math.imul(Ft,Ke)|0,W=W+Math.imul(Ft,kt)|0,Y=Y+Math.imul(Te,Fe)|0,u=(u=u+Math.imul(Te,lt)|0)+Math.imul($e,Fe)|0,W=W+Math.imul($e,lt)|0,Y=Y+Math.imul(_e,qe)|0,u=(u=u+Math.imul(_e,ke)|0)+Math.imul(ne,qe)|0,W=W+Math.imul(ne,ke)|0,Y=Y+Math.imul(at,vt)|0,u=(u=u+Math.imul(at,$t)|0)+Math.imul(Be,vt)|0,W=W+Math.imul(Be,$t)|0,Y=Y+Math.imul(Ot,Sr)|0,u=(u=u+Math.imul(Ot,Ar)|0)+Math.imul(At,Sr)|0,W=W+Math.imul(At,Ar)|0;var kr=($+(Y=Y+Math.imul(ae,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(ae,Gt)|0)+Math.imul(ye,Fr)|0))<<13)|0;$=((W=W+Math.imul(ye,Gt)|0)+(u>>>13)|0)+(kr>>>26)|0,kr&=67108863,Y=Math.imul(Me,wt),u=(u=Math.imul(Me,gt))+Math.imul(We,wt)|0,W=Math.imul(We,gt),Y=Y+Math.imul(Ne,hr)|0,u=(u=u+Math.imul(Ne,Cr)|0)+Math.imul(X,hr)|0,W=W+Math.imul(X,Cr)|0,Y=Y+Math.imul(ot,Pt)|0,u=(u=u+Math.imul(ot,He)|0)+Math.imul(nt,Pt)|0,W=W+Math.imul(nt,He)|0,Y=Y+Math.imul(rt,Ke)|0,u=(u=u+Math.imul(rt,kt)|0)+Math.imul(st,Ke)|0,W=W+Math.imul(st,kt)|0,Y=Y+Math.imul(Ge,Fe)|0,u=(u=u+Math.imul(Ge,lt)|0)+Math.imul(Ft,Fe)|0,W=W+Math.imul(Ft,lt)|0,Y=Y+Math.imul(Te,qe)|0,u=(u=u+Math.imul(Te,ke)|0)+Math.imul($e,qe)|0,W=W+Math.imul($e,ke)|0,Y=Y+Math.imul(_e,vt)|0,u=(u=u+Math.imul(_e,$t)|0)+Math.imul(ne,vt)|0,W=W+Math.imul(ne,$t)|0,Y=Y+Math.imul(at,Sr)|0,u=(u=u+Math.imul(at,Ar)|0)+Math.imul(Be,Sr)|0,W=W+Math.imul(Be,Ar)|0;var Br=($+(Y=Y+Math.imul(Ot,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(Ot,Gt)|0)+Math.imul(At,Fr)|0))<<13)|0;$=((W=W+Math.imul(At,Gt)|0)+(u>>>13)|0)+(Br>>>26)|0,Br&=67108863,Y=Math.imul(Me,hr),u=(u=Math.imul(Me,Cr))+Math.imul(We,hr)|0,W=Math.imul(We,Cr),Y=Y+Math.imul(Ne,Pt)|0,u=(u=u+Math.imul(Ne,He)|0)+Math.imul(X,Pt)|0,W=W+Math.imul(X,He)|0,Y=Y+Math.imul(ot,Ke)|0,u=(u=u+Math.imul(ot,kt)|0)+Math.imul(nt,Ke)|0,W=W+Math.imul(nt,kt)|0,Y=Y+Math.imul(rt,Fe)|0,u=(u=u+Math.imul(rt,lt)|0)+Math.imul(st,Fe)|0,W=W+Math.imul(st,lt)|0,Y=Y+Math.imul(Ge,qe)|0,u=(u=u+Math.imul(Ge,ke)|0)+Math.imul(Ft,qe)|0,W=W+Math.imul(Ft,ke)|0,Y=Y+Math.imul(Te,vt)|0,u=(u=u+Math.imul(Te,$t)|0)+Math.imul($e,vt)|0,W=W+Math.imul($e,$t)|0,Y=Y+Math.imul(_e,Sr)|0,u=(u=u+Math.imul(_e,Ar)|0)+Math.imul(ne,Sr)|0,W=W+Math.imul(ne,Ar)|0;var xt=($+(Y=Y+Math.imul(at,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(at,Gt)|0)+Math.imul(Be,Fr)|0))<<13)|0;$=((W=W+Math.imul(Be,Gt)|0)+(u>>>13)|0)+(xt>>>26)|0,xt&=67108863,Y=Math.imul(Me,Pt),u=(u=Math.imul(Me,He))+Math.imul(We,Pt)|0,W=Math.imul(We,He),Y=Y+Math.imul(Ne,Ke)|0,u=(u=u+Math.imul(Ne,kt)|0)+Math.imul(X,Ke)|0,W=W+Math.imul(X,kt)|0,Y=Y+Math.imul(ot,Fe)|0,u=(u=u+Math.imul(ot,lt)|0)+Math.imul(nt,Fe)|0,W=W+Math.imul(nt,lt)|0,Y=Y+Math.imul(rt,qe)|0,u=(u=u+Math.imul(rt,ke)|0)+Math.imul(st,qe)|0,W=W+Math.imul(st,ke)|0,Y=Y+Math.imul(Ge,vt)|0,u=(u=u+Math.imul(Ge,$t)|0)+Math.imul(Ft,vt)|0,W=W+Math.imul(Ft,$t)|0,Y=Y+Math.imul(Te,Sr)|0,u=(u=u+Math.imul(Te,Ar)|0)+Math.imul($e,Sr)|0,W=W+Math.imul($e,Ar)|0;var tr=($+(Y=Y+Math.imul(_e,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(_e,Gt)|0)+Math.imul(ne,Fr)|0))<<13)|0;$=((W=W+Math.imul(ne,Gt)|0)+(u>>>13)|0)+(tr>>>26)|0,tr&=67108863,Y=Math.imul(Me,Ke),u=(u=Math.imul(Me,kt))+Math.imul(We,Ke)|0,W=Math.imul(We,kt),Y=Y+Math.imul(Ne,Fe)|0,u=(u=u+Math.imul(Ne,lt)|0)+Math.imul(X,Fe)|0,W=W+Math.imul(X,lt)|0,Y=Y+Math.imul(ot,qe)|0,u=(u=u+Math.imul(ot,ke)|0)+Math.imul(nt,qe)|0,W=W+Math.imul(nt,ke)|0,Y=Y+Math.imul(rt,vt)|0,u=(u=u+Math.imul(rt,$t)|0)+Math.imul(st,vt)|0,W=W+Math.imul(st,$t)|0,Y=Y+Math.imul(Ge,Sr)|0,u=(u=u+Math.imul(Ge,Ar)|0)+Math.imul(Ft,Sr)|0,W=W+Math.imul(Ft,Ar)|0;var Rr=($+(Y=Y+Math.imul(Te,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(Te,Gt)|0)+Math.imul($e,Fr)|0))<<13)|0;$=((W=W+Math.imul($e,Gt)|0)+(u>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,Y=Math.imul(Me,Fe),u=(u=Math.imul(Me,lt))+Math.imul(We,Fe)|0,W=Math.imul(We,lt),Y=Y+Math.imul(Ne,qe)|0,u=(u=u+Math.imul(Ne,ke)|0)+Math.imul(X,qe)|0,W=W+Math.imul(X,ke)|0,Y=Y+Math.imul(ot,vt)|0,u=(u=u+Math.imul(ot,$t)|0)+Math.imul(nt,vt)|0,W=W+Math.imul(nt,$t)|0,Y=Y+Math.imul(rt,Sr)|0,u=(u=u+Math.imul(rt,Ar)|0)+Math.imul(st,Sr)|0,W=W+Math.imul(st,Ar)|0;var Ur=($+(Y=Y+Math.imul(Ge,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(Ge,Gt)|0)+Math.imul(Ft,Fr)|0))<<13)|0;$=((W=W+Math.imul(Ft,Gt)|0)+(u>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,Y=Math.imul(Me,qe),u=(u=Math.imul(Me,ke))+Math.imul(We,qe)|0,W=Math.imul(We,ke),Y=Y+Math.imul(Ne,vt)|0,u=(u=u+Math.imul(Ne,$t)|0)+Math.imul(X,vt)|0,W=W+Math.imul(X,$t)|0,Y=Y+Math.imul(ot,Sr)|0,u=(u=u+Math.imul(ot,Ar)|0)+Math.imul(nt,Sr)|0,W=W+Math.imul(nt,Ar)|0;var Nr=($+(Y=Y+Math.imul(rt,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(rt,Gt)|0)+Math.imul(st,Fr)|0))<<13)|0;$=((W=W+Math.imul(st,Gt)|0)+(u>>>13)|0)+(Nr>>>26)|0,Nr&=67108863,Y=Math.imul(Me,vt),u=(u=Math.imul(Me,$t))+Math.imul(We,vt)|0,W=Math.imul(We,$t),Y=Y+Math.imul(Ne,Sr)|0,u=(u=u+Math.imul(Ne,Ar)|0)+Math.imul(X,Sr)|0,W=W+Math.imul(X,Ar)|0;var zr=($+(Y=Y+Math.imul(ot,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(ot,Gt)|0)+Math.imul(nt,Fr)|0))<<13)|0;$=((W=W+Math.imul(nt,Gt)|0)+(u>>>13)|0)+(zr>>>26)|0,zr&=67108863,Y=Math.imul(Me,Sr),u=(u=Math.imul(Me,Ar))+Math.imul(We,Sr)|0,W=Math.imul(We,Ar);var hn=($+(Y=Y+Math.imul(Ne,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(Ne,Gt)|0)+Math.imul(X,Fr)|0))<<13)|0;$=((W=W+Math.imul(X,Gt)|0)+(u>>>13)|0)+(hn>>>26)|0,hn&=67108863;var _n=($+(Y=Math.imul(Me,Fr))|0)+((8191&(u=(u=Math.imul(Me,Gt))+Math.imul(We,Fr)|0))<<13)|0;return $=((W=Math.imul(We,Gt))+(u>>>13)|0)+(_n>>>26)|0,_n&=67108863,j[0]=le,j[1]=Ce,j[2]=Ie,j[3]=Pe,j[4]=Oe,j[5]=Se,j[6]=Xe,j[7]=Ct,j[8]=zt,j[9]=kr,j[10]=Br,j[11]=xt,j[12]=tr,j[13]=Rr,j[14]=Ur,j[15]=Nr,j[16]=zr,j[17]=hn,j[18]=_n,0!==$&&(j[19]=$,w.length++),w};function V(B,s,_){return(new D).mulp(B,s,_)}function D(B,s){this.x=B,this.y=s}Math.imul||(H=O),r.prototype.mulTo=function(s,_){var w,E=this.length+s.length;return w=10===this.length&&10===s.length?H(this,s,_):E<63?O(this,s,_):E<1024?function F(B,s,_){_.negative=s.negative^B.negative,_.length=B.length+s.length;for(var w=0,E=0,x=0;x<_.length-1;x++){var j=E;E=0;for(var $=67108863&w,Y=Math.min(x,s.length-1),u=Math.max(0,x-B.length+1);u<=Y;u++){var ye=(0|B.words[x-u])*(0|s.words[u]),Qe=67108863&ye;$=67108863&(Qe=Qe+$|0),E+=(j=(j=j+(ye/67108864|0)|0)+(Qe>>>26)|0)>>>26,j&=67108863}_.words[x]=$,w=j,j=E}return 0!==w?_.words[x]=w:_.length--,_.strip()}(this,s,_):V(this,s,_),w},D.prototype.makeRBT=function(s){for(var _=new Array(s),w=r.prototype._countBits(s)-1,E=0;E<s;E++)_[E]=this.revBin(E,w,s);return _},D.prototype.revBin=function(s,_,w){if(0===s||s===w-1)return s;for(var E=0,x=0;x<_;x++)E|=(1&s)<<_-x-1,s>>=1;return E},D.prototype.permute=function(s,_,w,E,x,j){for(var $=0;$<j;$++)E[$]=_[s[$]],x[$]=w[s[$]]},D.prototype.transform=function(s,_,w,E,x,j){this.permute(j,s,_,w,E,x);for(var $=1;$<x;$<<=1)for(var Y=$<<1,u=Math.cos(2*Math.PI/Y),W=Math.sin(2*Math.PI/Y),fe=0;fe<x;fe+=Y)for(var ae=u,ye=W,Qe=0;Qe<$;Qe++){var Ot=w[fe+Qe],At=E[fe+Qe],Ze=w[fe+Qe+$],at=E[fe+Qe+$],Be=ae*Ze-ye*at;at=ae*at+ye*Ze,w[fe+Qe]=Ot+(Ze=Be),E[fe+Qe]=At+at,w[fe+Qe+$]=Ot-Ze,E[fe+Qe+$]=At-at,Qe!==Y&&(Be=u*ae-W*ye,ye=u*ye+W*ae,ae=Be)}},D.prototype.guessLen13b=function(s,_){var w=1|Math.max(_,s),E=1&w,x=0;for(w=w/2|0;w;w>>>=1)x++;return 1<<x+1+E},D.prototype.conjugate=function(s,_,w){if(!(w<=1))for(var E=0;E<w/2;E++){var x=s[E];s[E]=s[w-E-1],s[w-E-1]=x,x=_[E],_[E]=-_[w-E-1],_[w-E-1]=-x}},D.prototype.normalize13b=function(s,_){for(var w=0,E=0;E<_/2;E++){var x=8192*Math.round(s[2*E+1]/_)+Math.round(s[2*E]/_)+w;s[E]=67108863&x,w=x<67108864?0:x/67108864|0}return s},D.prototype.convert13b=function(s,_,w,E){for(var x=0,j=0;j<_;j++)w[2*j]=8191&(x+=0|s[j]),w[2*j+1]=8191&(x>>>=13),x>>>=13;for(j=2*_;j<E;++j)w[j]=0;l(0===x),l(0==(-8192&x))},D.prototype.stub=function(s){for(var _=new Array(s),w=0;w<s;w++)_[w]=0;return _},D.prototype.mulp=function(s,_,w){var E=2*this.guessLen13b(s.length,_.length),x=this.makeRBT(E),j=this.stub(E),$=new Array(E),Y=new Array(E),u=new Array(E),W=new Array(E),fe=new Array(E),ae=new Array(E),ye=w.words;ye.length=E,this.convert13b(s.words,s.length,$,E),this.convert13b(_.words,_.length,W,E),this.transform($,j,Y,u,E,x),this.transform(W,j,fe,ae,E,x);for(var Qe=0;Qe<E;Qe++){var Ot=Y[Qe]*fe[Qe]-u[Qe]*ae[Qe];u[Qe]=Y[Qe]*ae[Qe]+u[Qe]*fe[Qe],Y[Qe]=Ot}return this.conjugate(Y,u,E),this.transform(Y,u,ye,j,E,x),this.conjugate(ye,j,E),this.normalize13b(ye,E),w.negative=s.negative^_.negative,w.length=s.length+_.length,w.strip()},r.prototype.mul=function(s){var _=new r(null);return _.words=new Array(this.length+s.length),this.mulTo(s,_)},r.prototype.mulf=function(s){var _=new r(null);return _.words=new Array(this.length+s.length),V(this,s,_)},r.prototype.imul=function(s){return this.clone().mulTo(s,this)},r.prototype.imuln=function(s){l("number"==typeof s),l(s<67108864);for(var _=0,w=0;w<this.length;w++){var E=(0|this.words[w])*s,x=(67108863&E)+(67108863&_);_>>=26,_+=E/67108864|0,_+=x>>>26,this.words[w]=67108863&x}return 0!==_&&(this.words[w]=_,this.length++),this},r.prototype.muln=function(s){return this.clone().imuln(s)},r.prototype.sqr=function(){return this.mul(this)},r.prototype.isqr=function(){return this.imul(this.clone())},r.prototype.pow=function(s){var _=function a(B){for(var s=new Array(B.bitLength()),_=0;_<s.length;_++){var E=_%26;s[_]=(B.words[_/26|0]&1<<E)>>>E}return s}(s);if(0===_.length)return new r(1);for(var w=this,E=0;E<_.length&&0===_[E];E++,w=w.sqr());if(++E<_.length)for(var x=w.sqr();E<_.length;E++,x=x.sqr())0!==_[E]&&(w=w.mul(x));return w},r.prototype.iushln=function(s){l("number"==typeof s&&s>=0);var x,_=s%26,w=(s-_)/26,E=67108863>>>26-_<<26-_;if(0!==_){var j=0;for(x=0;x<this.length;x++){var $=this.words[x]&E;this.words[x]=(0|this.words[x])-$<<_|j,j=$>>>26-_}j&&(this.words[x]=j,this.length++)}if(0!==w){for(x=this.length-1;x>=0;x--)this.words[x+w]=this.words[x];for(x=0;x<w;x++)this.words[x]=0;this.length+=w}return this.strip()},r.prototype.ishln=function(s){return l(0===this.negative),this.iushln(s)},r.prototype.iushrn=function(s,_,w){var E;l("number"==typeof s&&s>=0),E=_?(_-_%26)/26:0;var x=s%26,j=Math.min((s-x)/26,this.length),$=67108863^67108863>>>x<<x,Y=w;if(E-=j,E=Math.max(0,E),Y){for(var u=0;u<j;u++)Y.words[u]=this.words[u];Y.length=j}if(0!==j)if(this.length>j)for(this.length-=j,u=0;u<this.length;u++)this.words[u]=this.words[u+j];else this.words[0]=0,this.length=1;var W=0;for(u=this.length-1;u>=0&&(0!==W||u>=E);u--){var fe=0|this.words[u];this.words[u]=W<<26-x|fe>>>x,W=fe&$}return Y&&0!==W&&(Y.words[Y.length++]=W),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},r.prototype.ishrn=function(s,_,w){return l(0===this.negative),this.iushrn(s,_,w)},r.prototype.shln=function(s){return this.clone().ishln(s)},r.prototype.ushln=function(s){return this.clone().iushln(s)},r.prototype.shrn=function(s){return this.clone().ishrn(s)},r.prototype.ushrn=function(s){return this.clone().iushrn(s)},r.prototype.testn=function(s){l("number"==typeof s&&s>=0);var _=s%26,w=(s-_)/26;return!(this.length<=w||!(this.words[w]&1<<_))},r.prototype.imaskn=function(s){l("number"==typeof s&&s>=0);var _=s%26,w=(s-_)/26;return l(0===this.negative,"imaskn works only with positive numbers"),this.length<=w?this:(0!==_&&w++,this.length=Math.min(w,this.length),0!==_&&(this.words[this.length-1]&=67108863^67108863>>>_<<_),this.strip())},r.prototype.maskn=function(s){return this.clone().imaskn(s)},r.prototype.iaddn=function(s){return l("number"==typeof s),l(s<67108864),s<0?this.isubn(-s):0!==this.negative?1===this.length&&(0|this.words[0])<s?(this.words[0]=s-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(s),this.negative=1,this):this._iaddn(s)},r.prototype._iaddn=function(s){this.words[0]+=s;for(var _=0;_<this.length&&this.words[_]>=67108864;_++)this.words[_]-=67108864,_===this.length-1?this.words[_+1]=1:this.words[_+1]++;return this.length=Math.max(this.length,_+1),this},r.prototype.isubn=function(s){if(l("number"==typeof s),l(s<67108864),s<0)return this.iaddn(-s);if(0!==this.negative)return this.negative=0,this.iaddn(s),this.negative=1,this;if(this.words[0]-=s,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var _=0;_<this.length&&this.words[_]<0;_++)this.words[_]+=67108864,this.words[_+1]-=1;return this.strip()},r.prototype.addn=function(s){return this.clone().iaddn(s)},r.prototype.subn=function(s){return this.clone().isubn(s)},r.prototype.iabs=function(){return this.negative=0,this},r.prototype.abs=function(){return this.clone().iabs()},r.prototype._ishlnsubmul=function(s,_,w){var x;this._expand(s.length+w);var j,$=0;for(x=0;x<s.length;x++){j=(0|this.words[x+w])+$;var Y=(0|s.words[x])*_;$=((j-=67108863&Y)>>26)-(Y/67108864|0),this.words[x+w]=67108863&j}for(;x<this.length-w;x++)$=(j=(0|this.words[x+w])+$)>>26,this.words[x+w]=67108863&j;if(0===$)return this.strip();for(l(-1===$),$=0,x=0;x<this.length;x++)$=(j=-(0|this.words[x])+$)>>26,this.words[x]=67108863&j;return this.negative=1,this.strip()},r.prototype._wordDiv=function(s,_){var w,E=this.clone(),x=s,j=0|x.words[x.length-1];0!=(w=26-this._countBits(j))&&(x=x.ushln(w),E.iushln(w),j=0|x.words[x.length-1]);var u,Y=E.length-x.length;if("mod"!==_){(u=new r(null)).length=Y+1,u.words=new Array(u.length);for(var W=0;W<u.length;W++)u.words[W]=0}var fe=E.clone()._ishlnsubmul(x,1,Y);0===fe.negative&&(E=fe,u&&(u.words[Y]=1));for(var ae=Y-1;ae>=0;ae--){var ye=67108864*(0|E.words[x.length+ae])+(0|E.words[x.length+ae-1]);for(ye=Math.min(ye/j|0,67108863),E._ishlnsubmul(x,ye,ae);0!==E.negative;)ye--,E.negative=0,E._ishlnsubmul(x,1,ae),E.isZero()||(E.negative^=1);u&&(u.words[ae]=ye)}return u&&u.strip(),E.strip(),"div"!==_&&0!==w&&E.iushrn(w),{div:u||null,mod:E}},r.prototype.divmod=function(s,_,w){return l(!s.isZero()),this.isZero()?{div:new r(0),mod:new r(0)}:0!==this.negative&&0===s.negative?(j=this.neg().divmod(s,_),"mod"!==_&&(E=j.div.neg()),"div"!==_&&(x=j.mod.neg(),w&&0!==x.negative&&x.iadd(s)),{div:E,mod:x}):0===this.negative&&0!==s.negative?(j=this.divmod(s.neg(),_),"mod"!==_&&(E=j.div.neg()),{div:E,mod:j.mod}):0!=(this.negative&s.negative)?(j=this.neg().divmod(s.neg(),_),"div"!==_&&(x=j.mod.neg(),w&&0!==x.negative&&x.isub(s)),{div:j.div,mod:x}):s.length>this.length||this.cmp(s)<0?{div:new r(0),mod:this}:1===s.length?"div"===_?{div:this.divn(s.words[0]),mod:null}:"mod"===_?{div:null,mod:new r(this.modn(s.words[0]))}:{div:this.divn(s.words[0]),mod:new r(this.modn(s.words[0]))}:this._wordDiv(s,_);var E,x,j},r.prototype.div=function(s){return this.divmod(s,"div",!1).div},r.prototype.mod=function(s){return this.divmod(s,"mod",!1).mod},r.prototype.umod=function(s){return this.divmod(s,"mod",!0).mod},r.prototype.divRound=function(s){var _=this.divmod(s);if(_.mod.isZero())return _.div;var w=0!==_.div.negative?_.mod.isub(s):_.mod,E=s.ushrn(1),x=s.andln(1),j=w.cmp(E);return j<0||1===x&&0===j?_.div:0!==_.div.negative?_.div.isubn(1):_.div.iaddn(1)},r.prototype.modn=function(s){l(s<=67108863);for(var _=(1<<26)%s,w=0,E=this.length-1;E>=0;E--)w=(_*w+(0|this.words[E]))%s;return w},r.prototype.idivn=function(s){l(s<=67108863);for(var _=0,w=this.length-1;w>=0;w--){var E=(0|this.words[w])+67108864*_;this.words[w]=E/s|0,_=E%s}return this.strip()},r.prototype.divn=function(s){return this.clone().idivn(s)},r.prototype.egcd=function(s){l(0===s.negative),l(!s.isZero());var _=this,w=s.clone();_=0!==_.negative?_.umod(s):_.clone();for(var E=new r(1),x=new r(0),j=new r(0),$=new r(1),Y=0;_.isEven()&&w.isEven();)_.iushrn(1),w.iushrn(1),++Y;for(var u=w.clone(),W=_.clone();!_.isZero();){for(var fe=0,ae=1;0==(_.words[0]&ae)&&fe<26;++fe,ae<<=1);if(fe>0)for(_.iushrn(fe);fe-- >0;)(E.isOdd()||x.isOdd())&&(E.iadd(u),x.isub(W)),E.iushrn(1),x.iushrn(1);for(var ye=0,Qe=1;0==(w.words[0]&Qe)&&ye<26;++ye,Qe<<=1);if(ye>0)for(w.iushrn(ye);ye-- >0;)(j.isOdd()||$.isOdd())&&(j.iadd(u),$.isub(W)),j.iushrn(1),$.iushrn(1);_.cmp(w)>=0?(_.isub(w),E.isub(j),x.isub($)):(w.isub(_),j.isub(E),$.isub(x))}return{a:j,b:$,gcd:w.iushln(Y)}},r.prototype._invmp=function(s){l(0===s.negative),l(!s.isZero());var fe,_=this,w=s.clone();_=0!==_.negative?_.umod(s):_.clone();for(var E=new r(1),x=new r(0),j=w.clone();_.cmpn(1)>0&&w.cmpn(1)>0;){for(var $=0,Y=1;0==(_.words[0]&Y)&&$<26;++$,Y<<=1);if($>0)for(_.iushrn($);$-- >0;)E.isOdd()&&E.iadd(j),E.iushrn(1);for(var u=0,W=1;0==(w.words[0]&W)&&u<26;++u,W<<=1);if(u>0)for(w.iushrn(u);u-- >0;)x.isOdd()&&x.iadd(j),x.iushrn(1);_.cmp(w)>=0?(_.isub(w),E.isub(x)):(w.isub(_),x.isub(E))}return(fe=0===_.cmpn(1)?E:x).cmpn(0)<0&&fe.iadd(s),fe},r.prototype.gcd=function(s){if(this.isZero())return s.abs();if(s.isZero())return this.abs();var _=this.clone(),w=s.clone();_.negative=0,w.negative=0;for(var E=0;_.isEven()&&w.isEven();E++)_.iushrn(1),w.iushrn(1);for(;;){for(;_.isEven();)_.iushrn(1);for(;w.isEven();)w.iushrn(1);var x=_.cmp(w);if(x<0){var j=_;_=w,w=j}else if(0===x||0===w.cmpn(1))break;_.isub(w)}return w.iushln(E)},r.prototype.invm=function(s){return this.egcd(s).a.umod(s)},r.prototype.isEven=function(){return 0==(1&this.words[0])},r.prototype.isOdd=function(){return 1==(1&this.words[0])},r.prototype.andln=function(s){return this.words[0]&s},r.prototype.bincn=function(s){l("number"==typeof s);var _=s%26,w=(s-_)/26,E=1<<_;if(this.length<=w)return this._expand(w+1),this.words[w]|=E,this;for(var x=E,j=w;0!==x&&j<this.length;j++){var $=0|this.words[j];x=($+=x)>>>26,this.words[j]=$&=67108863}return 0!==x&&(this.words[j]=x,this.length++),this},r.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},r.prototype.cmpn=function(s){var w,_=s<0;if(0!==this.negative&&!_)return-1;if(0===this.negative&&_)return 1;if(this.strip(),this.length>1)w=1;else{_&&(s=-s),l(s<=67108863,"Number is too big");var E=0|this.words[0];w=E===s?0:E<s?-1:1}return 0!==this.negative?0|-w:w},r.prototype.cmp=function(s){if(0!==this.negative&&0===s.negative)return-1;if(0===this.negative&&0!==s.negative)return 1;var _=this.ucmp(s);return 0!==this.negative?0|-_:_},r.prototype.ucmp=function(s){if(this.length>s.length)return 1;if(this.length<s.length)return-1;for(var _=0,w=this.length-1;w>=0;w--){var E=0|this.words[w],x=0|s.words[w];if(E!==x){E<x?_=-1:E>x&&(_=1);break}}return _},r.prototype.gtn=function(s){return 1===this.cmpn(s)},r.prototype.gt=function(s){return 1===this.cmp(s)},r.prototype.gten=function(s){return this.cmpn(s)>=0},r.prototype.gte=function(s){return this.cmp(s)>=0},r.prototype.ltn=function(s){return-1===this.cmpn(s)},r.prototype.lt=function(s){return-1===this.cmp(s)},r.prototype.lten=function(s){return this.cmpn(s)<=0},r.prototype.lte=function(s){return this.cmp(s)<=0},r.prototype.eqn=function(s){return 0===this.cmpn(s)},r.prototype.eq=function(s){return 0===this.cmp(s)},r.red=function(s){return new re(s)},r.prototype.toRed=function(s){return l(!this.red,"Already a number in reduction context"),l(0===this.negative,"red works only with positives"),s.convertTo(this)._forceRed(s)},r.prototype.fromRed=function(){return l(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},r.prototype._forceRed=function(s){return this.red=s,this},r.prototype.forceRed=function(s){return l(!this.red,"Already a number in reduction context"),this._forceRed(s)},r.prototype.redAdd=function(s){return l(this.red,"redAdd works only with red numbers"),this.red.add(this,s)},r.prototype.redIAdd=function(s){return l(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,s)},r.prototype.redSub=function(s){return l(this.red,"redSub works only with red numbers"),this.red.sub(this,s)},r.prototype.redISub=function(s){return l(this.red,"redISub works only with red numbers"),this.red.isub(this,s)},r.prototype.redShl=function(s){return l(this.red,"redShl works only with red numbers"),this.red.shl(this,s)},r.prototype.redMul=function(s){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.mul(this,s)},r.prototype.redIMul=function(s){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.imul(this,s)},r.prototype.redSqr=function(){return l(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},r.prototype.redISqr=function(){return l(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},r.prototype.redSqrt=function(){return l(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},r.prototype.redInvm=function(){return l(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},r.prototype.redNeg=function(){return l(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},r.prototype.redPow=function(s){return l(this.red&&!s.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,s)};var U={k256:null,p224:null,p192:null,p25519:null};function q(B,s){this.name=B,this.p=new r(s,16),this.n=this.p.bitLength(),this.k=new r(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function J(){q.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function G(){q.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){q.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function K(){q.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function re(B){if("string"==typeof B){var s=r._prime(B);this.m=s.p,this.prime=s}else l(B.gtn(1),"modulus must be greater than 1"),this.m=B,this.prime=null}function oe(B){re.call(this,B),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new r(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}q.prototype._tmp=function(){var s=new r(null);return s.words=new Array(Math.ceil(this.n/13)),s},q.prototype.ireduce=function(s){var w,_=s;do{this.split(_,this.tmp),w=(_=(_=this.imulK(_)).iadd(this.tmp)).bitLength()}while(w>this.n);var E=w<this.n?-1:_.ucmp(this.p);return 0===E?(_.words[0]=0,_.length=1):E>0?_.isub(this.p):void 0!==_.strip?_.strip():_._strip(),_},q.prototype.split=function(s,_){s.iushrn(this.n,0,_)},q.prototype.imulK=function(s){return s.imul(this.k)},h(J,q),J.prototype.split=function(s,_){for(var w=4194303,E=Math.min(s.length,9),x=0;x<E;x++)_.words[x]=s.words[x];if(_.length=E,s.length<=9)return s.words[0]=0,void(s.length=1);var j=s.words[9];for(_.words[_.length++]=j&w,x=10;x<s.length;x++){var $=0|s.words[x];s.words[x-10]=($&w)<<4|j>>>22,j=$}s.words[x-10]=j>>>=22,s.length-=0===j&&s.length>10?10:9},J.prototype.imulK=function(s){s.words[s.length]=0,s.words[s.length+1]=0,s.length+=2;for(var _=0,w=0;w<s.length;w++){var E=0|s.words[w];s.words[w]=67108863&(_+=977*E),_=64*E+(_/67108864|0)}return 0===s.words[s.length-1]&&(s.length--,0===s.words[s.length-1]&&s.length--),s},h(G,q),h(ie,q),h(K,q),K.prototype.imulK=function(s){for(var _=0,w=0;w<s.length;w++){var E=19*(0|s.words[w])+_,x=67108863&E;E>>>=26,s.words[w]=x,_=E}return 0!==_&&(s.words[s.length++]=_),s},r._prime=function(s){if(U[s])return U[s];var _;if("k256"===s)_=new J;else if("p224"===s)_=new G;else if("p192"===s)_=new ie;else{if("p25519"!==s)throw new Error("Unknown prime "+s);_=new K}return U[s]=_,_},re.prototype._verify1=function(s){l(0===s.negative,"red works only with positives"),l(s.red,"red works only with red numbers")},re.prototype._verify2=function(s,_){l(0==(s.negative|_.negative),"red works only with positives"),l(s.red&&s.red===_.red,"red works only with red numbers")},re.prototype.imod=function(s){return this.prime?this.prime.ireduce(s)._forceRed(this):s.umod(this.m)._forceRed(this)},re.prototype.neg=function(s){return s.isZero()?s.clone():this.m.sub(s)._forceRed(this)},re.prototype.add=function(s,_){this._verify2(s,_);var w=s.add(_);return w.cmp(this.m)>=0&&w.isub(this.m),w._forceRed(this)},re.prototype.iadd=function(s,_){this._verify2(s,_);var w=s.iadd(_);return w.cmp(this.m)>=0&&w.isub(this.m),w},re.prototype.sub=function(s,_){this._verify2(s,_);var w=s.sub(_);return w.cmpn(0)<0&&w.iadd(this.m),w._forceRed(this)},re.prototype.isub=function(s,_){this._verify2(s,_);var w=s.isub(_);return w.cmpn(0)<0&&w.iadd(this.m),w},re.prototype.shl=function(s,_){return this._verify1(s),this.imod(s.ushln(_))},re.prototype.imul=function(s,_){return this._verify2(s,_),this.imod(s.imul(_))},re.prototype.mul=function(s,_){return this._verify2(s,_),this.imod(s.mul(_))},re.prototype.isqr=function(s){return this.imul(s,s.clone())},re.prototype.sqr=function(s){return this.mul(s,s)},re.prototype.sqrt=function(s){if(s.isZero())return s.clone();var _=this.m.andln(3);if(l(_%2==1),3===_){var w=this.m.add(new r(1)).iushrn(2);return this.pow(s,w)}for(var E=this.m.subn(1),x=0;!E.isZero()&&0===E.andln(1);)x++,E.iushrn(1);l(!E.isZero());var j=new r(1).toRed(this),$=j.redNeg(),Y=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new r(2*u*u).toRed(this);0!==this.pow(u,Y).cmp($);)u.redIAdd($);for(var W=this.pow(u,E),fe=this.pow(s,E.addn(1).iushrn(1)),ae=this.pow(s,E),ye=x;0!==ae.cmp(j);){for(var Qe=ae,Ot=0;0!==Qe.cmp(j);Ot++)Qe=Qe.redSqr();l(Ot<ye);var At=this.pow(W,new r(1).iushln(ye-Ot-1));fe=fe.redMul(At),W=At.redSqr(),ae=ae.redMul(W),ye=Ot}return fe},re.prototype.invm=function(s){var _=s._invmp(this.m);return 0!==_.negative?(_.negative=0,this.imod(_).redNeg()):this.imod(_)},re.prototype.pow=function(s,_){if(_.isZero())return new r(1).toRed(this);if(0===_.cmpn(1))return s.clone();var E=new Array(16);E[0]=new r(1).toRed(this),E[1]=s;for(var x=2;x<E.length;x++)E[x]=this.mul(E[x-1],s);var j=E[0],$=0,Y=0,u=_.bitLength()%26;for(0===u&&(u=26),x=_.length-1;x>=0;x--){for(var W=_.words[x],fe=u-1;fe>=0;fe--){var ae=W>>fe&1;j!==E[0]&&(j=this.sqr(j)),0!==ae||0!==$?($<<=1,$|=ae,(4==++Y||0===x&&0===fe)&&(j=this.mul(j,E[$]),Y=0,$=0)):Y=0}u=26}return j},re.prototype.convertTo=function(s){var _=s.umod(this.m);return _===s?_.clone():_},re.prototype.convertFrom=function(s){var _=s.clone();return _.red=null,_},r.mont=function(s){return new oe(s)},h(oe,re),oe.prototype.convertTo=function(s){return this.imod(s.ushln(this.shift))},oe.prototype.convertFrom=function(s){var _=this.imod(s.mul(this.rinv));return _.red=null,_},oe.prototype.imul=function(s,_){if(s.isZero()||_.isZero())return s.words[0]=0,s.length=1,s;var w=s.imul(_),E=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=w.isub(E).iushrn(this.shift),j=x;return x.cmp(this.m)>=0?j=x.isub(this.m):x.cmpn(0)<0&&(j=x.iadd(this.m)),j._forceRed(this)},oe.prototype.mul=function(s,_){if(s.isZero()||_.isZero())return new r(0)._forceRed(this);var w=s.mul(_),E=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=w.isub(E).iushrn(this.shift),j=x;return x.cmp(this.m)>=0?j=x.isub(this.m):x.cmpn(0)<0&&(j=x.iadd(this.m)),j._forceRed(this)},oe.prototype.invm=function(s){return this.imod(s._invmp(this.m).mul(this.r2))._forceRed(this)}}(M=n.nmd(M),this)},32391:M=>{function b(n,t){if(!n)throw new Error(t||"Assertion failed")}M.exports=b,b.equal=function(t,e,l){if(t!=e)throw new Error(l||"Assertion failed: "+t+" != "+e)}},58195:(M,b)=>{"use strict";var n=b;function e(h){return 1===h.length?"0"+h:h}function l(h){for(var r="",d=0;d<h.length;d++)r+=e(h[d].toString(16));return r}n.toArray=function t(h,r){if(Array.isArray(h))return h.slice();if(!h)return[];var d=[];if("string"!=typeof h){for(var y=0;y<h.length;y++)d[y]=0|h[y];return d}if("hex"===r)for((h=h.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(h="0"+h),y=0;y<h.length;y+=2)d.push(parseInt(h[y]+h[y+1],16));else for(y=0;y<h.length;y++){var g=h.charCodeAt(y),p=g>>8,f=255&g;p?d.push(p,f):d.push(f)}return d},n.zero2=e,n.toHex=l,n.encode=function(r,d){return"hex"===d?l(r):r}},27088:function(M,b,n){!function(t){"use strict";t.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(l){return/^nm$/i.test(l)},meridiem:function(l,h,r){return l<12?r?"vm":"VM":r?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(l){return l+(1===l||8===l||l>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(15439))},52502:function(M,b,n){!function(t){"use strict";var e=function(y){return 0===y?0:1===y?1:2===y?2:y%100>=3&&y%100<=10?3:y%100>=11?4:5},l={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},h=function(y){return function(g,p,f,C){var N=e(g),a=l[y][e(g)];return 2===N&&(a=a[p?0:1]),a.replace(/%d/i,g)}},r=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];t.defineLocale("ar-dz",{months:r,monthsShort:r,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(y){return"\u0645"===y},meridiem:function(y,g,p){return y<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:h("s"),ss:h("s"),m:h("m"),mm:h("m"),h:h("h"),hh:h("h"),d:h("d"),dd:h("d"),M:h("M"),MM:h("M"),y:h("y"),yy:h("y")},postformat:function(y){return y.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(n(15439))},30128:function(M,b,n){!function(t){"use strict";t.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(n(15439))},84519:function(M,b,n){!function(t){"use strict";var e={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},l=function(g){return 0===g?0:1===g?1:2===g?2:g%100>=3&&g%100<=10?3:g%100>=11?4:5},h={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},r=function(g){return function(p,f,C,N){var a=l(p),O=h[g][l(p)];return 2===a&&(O=O[f?0:1]),O.replace(/%d/i,p)}},d=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];t.defineLocale("ar-ly",{months:d,monthsShort:d,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(g){return"\u0645"===g},meridiem:function(g,p,f){return g<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(g){return g.replace(/\u060c/g,",")},postformat:function(g){return g.replace(/\d/g,function(p){return e[p]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(n(15439))},65443:function(M,b,n){!function(t){"use strict";t.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(n(15439))},17642:function(M,b,n){!function(t){"use strict";var e={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},l={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};t.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(r){return"\u0645"===r},meridiem:function(r,d,y){return r<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(r){return r.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(d){return l[d]}).replace(/\u060c/g,",")},postformat:function(r){return r.replace(/\d/g,function(d){return e[d]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(n(15439))},68592:function(M,b,n){!function(t){"use strict";t.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(n(15439))},17038:function(M,b,n){!function(t){"use strict";var e={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},l={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},h=function(p){return 0===p?0:1===p?1:2===p?2:p%100>=3&&p%100<=10?3:p%100>=11?4:5},r={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},d=function(p){return function(f,C,N,a){var O=h(f),H=r[p][h(f)];return 2===O&&(H=H[C?0:1]),H.replace(/%d/i,f)}},y=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];t.defineLocale("ar",{months:y,monthsShort:y,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(p){return"\u0645"===p},meridiem:function(p,f,C){return p<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:d("s"),ss:d("s"),m:d("m"),mm:d("m"),h:d("h"),hh:d("h"),d:d("d"),dd:d("d"),M:d("M"),MM:d("M"),y:d("y"),yy:d("y")},preparse:function(p){return p.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(f){return l[f]}).replace(/\u060c/g,",")},postformat:function(p){return p.replace(/\d/g,function(f){return e[f]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(n(15439))},51213:function(M,b,n){!function(t){"use strict";var e={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};t.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(h){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(h)},meridiem:function(h,r,d){return h<4?"gec\u0259":h<12?"s\u0259h\u0259r":h<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(h){if(0===h)return h+"-\u0131nc\u0131";var r=h%10;return h+(e[r]||e[h%100-r]||e[h>=100?100:null])},week:{dow:1,doy:7}})}(n(15439))},69191:function(M,b,n){!function(t){"use strict";function l(r,d,y){return"m"===y?d?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===y?d?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":r+" "+function e(r,d){var y=r.split("_");return d%10==1&&d%100!=11?y[0]:d%10>=2&&d%10<=4&&(d%100<10||d%100>=20)?y[1]:y[2]}({ss:d?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:d?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:d?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[y],+r)}t.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:l,mm:l,h:l,hh:l,d:"\u0434\u0437\u0435\u043d\u044c",dd:l,M:"\u043c\u0435\u0441\u044f\u0446",MM:l,y:"\u0433\u043e\u0434",yy:l},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(r){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(r)},meridiem:function(r,d,y){return r<4?"\u043d\u043e\u0447\u044b":r<12?"\u0440\u0430\u043d\u0456\u0446\u044b":r<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(r,d){switch(d){case"M":case"d":case"DDD":case"w":case"W":return r%10!=2&&r%10!=3||r%100==12||r%100==13?r+"-\u044b":r+"-\u0456";case"D":return r+"-\u0433\u0430";default:return r}},week:{dow:1,doy:7}})}(n(15439))},90322:function(M,b,n){!function(t){"use strict";t.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(l){var h=l%10,r=l%100;return 0===l?l+"-\u0435\u0432":0===r?l+"-\u0435\u043d":r>10&&r<20?l+"-\u0442\u0438":1===h?l+"-\u0432\u0438":2===h?l+"-\u0440\u0438":7===h||8===h?l+"-\u043c\u0438":l+"-\u0442\u0438"},week:{dow:1,doy:7}})}(n(15439))},28042:function(M,b,n){!function(t){"use strict";t.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(n(15439))},65903:function(M,b,n){!function(t){"use strict";var e={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},l={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};t.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(r){return r.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(d){return l[d]})},postformat:function(r){return r.replace(/\d/g,function(d){return e[d]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(r,d){return 12===r&&(r=0),"\u09b0\u09be\u09a4"===d?r<4?r:r+12:"\u09ad\u09cb\u09b0"===d||"\u09b8\u0995\u09be\u09b2"===d?r:"\u09a6\u09c1\u09aa\u09c1\u09b0"===d?r>=3?r:r+12:"\u09ac\u09bf\u0995\u09be\u09b2"===d||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===d?r+12:void 0},meridiem:function(r,d,y){return r<4?"\u09b0\u09be\u09a4":r<6?"\u09ad\u09cb\u09b0":r<12?"\u09b8\u0995\u09be\u09b2":r<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":r<18?"\u09ac\u09bf\u0995\u09be\u09b2":r<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(n(15439))},59620:function(M,b,n){!function(t){"use strict";var e={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},l={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};t.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(r){return r.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(d){return l[d]})},postformat:function(r){return r.replace(/\d/g,function(d){return e[d]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(r,d){return 12===r&&(r=0),"\u09b0\u09be\u09a4"===d&&r>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===d&&r<5||"\u09ac\u09bf\u0995\u09be\u09b2"===d?r+12:r},meridiem:function(r,d,y){return r<4?"\u09b0\u09be\u09a4":r<10?"\u09b8\u0995\u09be\u09b2":r<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":r<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(n(15439))},69645:function(M,b,n){!function(t){"use strict";var e={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},l={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};t.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(r){return r.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(d){return l[d]})},postformat:function(r){return r.replace(/\d/g,function(d){return e[d]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(r,d){return 12===r&&(r=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===d&&r>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===d&&r<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===d?r+12:r},meridiem:function(r,d,y){return r<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":r<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":r<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":r<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(n(15439))},45020:function(M,b,n){!function(t){"use strict";function e(H,F,V){return H+" "+function r(H,F){return 2===F?function d(H){var F={m:"v",b:"v",d:"z"};return void 0===F[H.charAt(0)]?H:F[H.charAt(0)]+H.substring(1)}(H):H}({mm:"munutenn",MM:"miz",dd:"devezh"}[V],H)}function h(H){return H>9?h(H%10):H}var y=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],g=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,a=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];t.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:a,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:a,monthsRegex:g,monthsShortRegex:g,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:y,longMonthsParse:y,shortMonthsParse:y,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:e,h:"un eur",hh:"%d eur",d:"un devezh",dd:e,M:"ur miz",MM:e,y:"ur bloaz",yy:function l(H){switch(h(H)){case 1:case 3:case 4:case 5:case 9:return H+" bloaz";default:return H+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(H){return H+(1===H?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(H){return"g.m."===H},meridiem:function(H,F,V){return H<12?"a.m.":"g.m."}})}(n(15439))},64792:function(M,b,n){!function(t){"use strict";function e(h,r,d){var y=h+" ";switch(d){case"ss":return y+(1===h?"sekunda":2===h||3===h||4===h?"sekunde":"sekundi");case"m":return r?"jedna minuta":"jedne minute";case"mm":return y+(1===h?"minuta":2===h||3===h||4===h?"minute":"minuta");case"h":return r?"jedan sat":"jednog sata";case"hh":return y+(1===h?"sat":2===h||3===h||4===h?"sata":"sati");case"dd":return y+(1===h?"dan":"dana");case"MM":return y+(1===h?"mjesec":2===h||3===h||4===h?"mjeseca":"mjeseci");case"yy":return y+(1===h?"godina":2===h||3===h||4===h?"godine":"godina")}}t.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(15439))},47980:function(M,b,n){!function(t){"use strict";t.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(l,h){var r=1===l?"r":2===l?"n":3===l?"r":4===l?"t":"\xe8";return("w"===h||"W"===h)&&(r="a"),l+r},week:{dow:1,doy:4}})}(n(15439))},47322:function(M,b,n){!function(t){"use strict";var e={format:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),standalone:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_")},l="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),h=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],r=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function d(p){return p>1&&p<5&&1!=~~(p/10)}function y(p,f,C,N){var a=p+" ";switch(C){case"s":return f||N?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return f||N?a+(d(p)?"sekundy":"sekund"):a+"sekundami";case"m":return f?"minuta":N?"minutu":"minutou";case"mm":return f||N?a+(d(p)?"minuty":"minut"):a+"minutami";case"h":return f?"hodina":N?"hodinu":"hodinou";case"hh":return f||N?a+(d(p)?"hodiny":"hodin"):a+"hodinami";case"d":return f||N?"den":"dnem";case"dd":return f||N?a+(d(p)?"dny":"dn\xed"):a+"dny";case"M":return f||N?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return f||N?a+(d(p)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):a+"m\u011bs\xedci";case"y":return f||N?"rok":"rokem";case"yy":return f||N?a+(d(p)?"roky":"let"):a+"lety"}}t.defineLocale("cs",{months:e,monthsShort:l,monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:h,longMonthsParse:h,shortMonthsParse:h,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:y,ss:y,m:y,mm:y,h:y,hh:y,d:y,dd:y,M:y,MM:y,y,yy:y},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(15439))},90365:function(M,b,n){!function(t){"use strict";t.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(l){return l+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(l)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(l)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(n(15439))},32092:function(M,b,n){!function(t){"use strict";t.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(l){var r="";return l>20?r=40===l||50===l||60===l||80===l||100===l?"fed":"ain":l>0&&(r=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][l]),l+r},week:{dow:1,doy:4}})}(n(15439))},77387:function(M,b,n){!function(t){"use strict";t.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(15439))},29459:function(M,b,n){!function(t){"use strict";function e(h,r,d,y){var g={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[h+" Tage",h+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[h+" Monate",h+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[h+" Jahre",h+" Jahren"]};return r?g[d][0]:g[d][1]}t.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,w:e,ww:"%d Wochen",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(15439))},73694:function(M,b,n){!function(t){"use strict";function e(h,r,d,y){var g={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[h+" Tage",h+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[h+" Monate",h+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[h+" Jahre",h+" Jahren"]};return r?g[d][0]:g[d][1]}t.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,w:e,ww:"%d Wochen",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(15439))},54307:function(M,b,n){!function(t){"use strict";function e(h,r,d,y){var g={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[h+" Tage",h+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[h+" Monate",h+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[h+" Jahre",h+" Jahren"]};return r?g[d][0]:g[d][1]}t.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,w:e,ww:"%d Wochen",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(15439))},39659:function(M,b,n){!function(t){"use strict";var e=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],l=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];t.defineLocale("dv",{months:e,monthsShort:e,weekdays:l,weekdaysShort:l,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(r){return"\u0789\u078a"===r},meridiem:function(r,d,y){return r<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(r){return r.replace(/\u060c/g,",")},postformat:function(r){return r.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(n(15439))},3460:function(M,b,n){!function(t){"use strict";t.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(h,r){return h?"string"==typeof r&&/D/.test(r.substring(0,r.indexOf("MMMM")))?this._monthsGenitiveEl[h.month()]:this._monthsNominativeEl[h.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(h,r,d){return h>11?d?"\u03bc\u03bc":"\u039c\u039c":d?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(h){return"\u03bc"===(h+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(h,r){var d=this._calendarEl[h],y=r&&r.hours();return function e(h){return typeof Function<"u"&&h instanceof Function||"[object Function]"===Object.prototype.toString.call(h)}(d)&&(d=d.apply(r)),d.replace("{}",y%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(n(15439))},94369:function(M,b,n){!function(t){"use strict";t.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(l){var h=l%10;return l+(1==~~(l%100/10)?"th":1===h?"st":2===h?"nd":3===h?"rd":"th")},week:{dow:0,doy:4}})}(n(15439))},60530:function(M,b,n){!function(t){"use strict";t.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(l){var h=l%10;return l+(1==~~(l%100/10)?"th":1===h?"st":2===h?"nd":3===h?"rd":"th")}})}(n(15439))},9998:function(M,b,n){!function(t){"use strict";t.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(l){var h=l%10;return l+(1==~~(l%100/10)?"th":1===h?"st":2===h?"nd":3===h?"rd":"th")},week:{dow:1,doy:4}})}(n(15439))},13391:function(M,b,n){!function(t){"use strict";t.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(l){var h=l%10;return l+(1==~~(l%100/10)?"th":1===h?"st":2===h?"nd":3===h?"rd":"th")},week:{dow:1,doy:4}})}(n(15439))},75414:function(M,b,n){!function(t){"use strict";t.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(l){var h=l%10;return l+(1==~~(l%100/10)?"th":1===h?"st":2===h?"nd":3===h?"rd":"th")}})}(n(15439))},19615:function(M,b,n){!function(t){"use strict";t.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(l){var h=l%10;return l+(1==~~(l%100/10)?"th":1===h?"st":2===h?"nd":3===h?"rd":"th")},week:{dow:0,doy:6}})}(n(15439))},21248:function(M,b,n){!function(t){"use strict";t.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(l){var h=l%10;return l+(1==~~(l%100/10)?"th":1===h?"st":2===h?"nd":3===h?"rd":"th")},week:{dow:1,doy:4}})}(n(15439))},13767:function(M,b,n){!function(t){"use strict";t.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(l){var h=l%10;return l+(1==~~(l%100/10)?"th":1===h?"st":2===h?"nd":3===h?"rd":"th")},week:{dow:1,doy:4}})}(n(15439))},84530:function(M,b,n){!function(t){"use strict";t.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(l){return"p"===l.charAt(0).toLowerCase()},meridiem:function(l,h,r){return l>11?r?"p.t.m.":"P.T.M.":r?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n(15439))},18944:function(M,b,n){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),l="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),h=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(y,g){return y?/-MMM-/.test(g)?l[y.month()]:e[y.month()]:e},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:h,longMonthsParse:h,shortMonthsParse:h,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n(15439))},29116:function(M,b,n){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),l="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),h=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(y,g){return y?/-MMM-/.test(g)?l[y.month()]:e[y.month()]:e},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:h,longMonthsParse:h,shortMonthsParse:h,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(n(15439))},83609:function(M,b,n){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),l="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),h=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(y,g){return y?/-MMM-/.test(g)?l[y.month()]:e[y.month()]:e},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:h,longMonthsParse:h,shortMonthsParse:h,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(n(15439))},86866:function(M,b,n){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),l="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),h=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(y,g){return y?/-MMM-/.test(g)?l[y.month()]:e[y.month()]:e},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:h,longMonthsParse:h,shortMonthsParse:h,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(n(15439))},96725:function(M,b,n){!function(t){"use strict";function e(h,r,d,y){var g={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[h+"sekundi",h+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[h+" minuti",h+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[h+" tunni",h+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[h+" kuu",h+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[h+" aasta",h+" aastat"]};return r?g[d][2]?g[d][2]:g[d][1]:y?g[d][0]:g[d][1]}t.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:"%d p\xe4eva",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(15439))},67931:function(M,b,n){!function(t){"use strict";t.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(15439))},56417:function(M,b,n){!function(t){"use strict";var e={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},l={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};t.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(r){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(r)},meridiem:function(r,d,y){return r<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(r){return r.replace(/[\u06f0-\u06f9]/g,function(d){return l[d]}).replace(/\u060c/g,",")},postformat:function(r){return r.replace(/\d/g,function(d){return e[d]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(n(15439))},20944:function(M,b,n){!function(t){"use strict";var e="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),l=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",e[7],e[8],e[9]];function h(y,g,p,f){var C="";switch(p){case"s":return f?"muutaman sekunnin":"muutama sekunti";case"ss":C=f?"sekunnin":"sekuntia";break;case"m":return f?"minuutin":"minuutti";case"mm":C=f?"minuutin":"minuuttia";break;case"h":return f?"tunnin":"tunti";case"hh":C=f?"tunnin":"tuntia";break;case"d":return f?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":C=f?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return f?"kuukauden":"kuukausi";case"MM":C=f?"kuukauden":"kuukautta";break;case"y":return f?"vuoden":"vuosi";case"yy":C=f?"vuoden":"vuotta"}return function r(y,g){return y<10?g?l[y]:e[y]:y}(y,f)+" "+C}t.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:h,ss:h,m:h,mm:h,h,hh:h,d:h,dd:h,M:h,MM:h,y:h,yy:h},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(15439))},61766:function(M,b,n){!function(t){"use strict";t.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(l){return l},week:{dow:1,doy:4}})}(n(15439))},95867:function(M,b,n){!function(t){"use strict";t.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(15439))},16848:function(M,b,n){!function(t){"use strict";t.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(l,h){switch(h){default:case"M":case"Q":case"D":case"DDD":case"d":return l+(1===l?"er":"e");case"w":case"W":return l+(1===l?"re":"e")}}})}(n(15439))},77773:function(M,b,n){!function(t){"use strict";t.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(l,h){switch(h){default:case"M":case"Q":case"D":case"DDD":case"d":return l+(1===l?"er":"e");case"w":case"W":return l+(1===l?"re":"e")}},week:{dow:1,doy:4}})}(n(15439))},1636:function(M,b,n){!function(t){"use strict";var h=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,r=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];t.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:h,monthsShortRegex:h,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(y,g){switch(g){case"D":return y+(1===y?"er":"");default:case"M":case"Q":case"DDD":case"d":return y+(1===y?"er":"e");case"w":case"W":return y+(1===y?"re":"e")}},week:{dow:1,doy:4}})}(n(15439))},14940:function(M,b,n){!function(t){"use strict";var e="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),l="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");t.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(r,d){return r?/-MMM-/.test(d)?l[r.month()]:e[r.month()]:e},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(r){return r+(1===r||8===r||r>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(15439))},91402:function(M,b,n){!function(t){"use strict";t.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(g){return g+(1===g?"d":g%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(15439))},46924:function(M,b,n){!function(t){"use strict";t.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(g){return g+(1===g?"d":g%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(15439))},16398:function(M,b,n){!function(t){"use strict";t.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(l){return 0===l.indexOf("un")?"n"+l:"en "+l},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n(15439))},72457:function(M,b,n){!function(t){"use strict";function e(h,r,d,y){var g={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[h+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",h+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[h+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",h+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[h+" \u0935\u0930\u093e\u0902\u0928\u0940",h+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[h+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",h+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[h+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",h+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[h+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",h+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return y?g[d][0]:g[d][1]}t.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(h,r){return"D"===r?h+"\u0935\u0947\u0930":h},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(h,r){return 12===h&&(h=0),"\u0930\u093e\u0924\u0940"===r?h<4?h:h+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===r?h:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===r?h>12?h:h+12:"\u0938\u093e\u0902\u091c\u0947"===r?h+12:void 0},meridiem:function(h,r,d){return h<4?"\u0930\u093e\u0924\u0940":h<12?"\u0938\u0915\u093e\u0933\u0940\u0902":h<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":h<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(n(15439))},52545:function(M,b,n){!function(t){"use strict";function e(h,r,d,y){var g={s:["thoddea sekondamni","thodde sekond"],ss:[h+" sekondamni",h+" sekond"],m:["eka mintan","ek minut"],mm:[h+" mintamni",h+" mintam"],h:["eka voran","ek vor"],hh:[h+" voramni",h+" voram"],d:["eka disan","ek dis"],dd:[h+" disamni",h+" dis"],M:["eka mhoinean","ek mhoino"],MM:[h+" mhoineamni",h+" mhoine"],y:["eka vorsan","ek voros"],yy:[h+" vorsamni",h+" vorsam"]};return y?g[d][0]:g[d][1]}t.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(h,r){return"D"===r?h+"er":h},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(h,r){return 12===h&&(h=0),"rati"===r?h<4?h:h+12:"sokallim"===r?h:"donparam"===r?h>12?h:h+12:"sanje"===r?h+12:void 0},meridiem:function(h,r,d){return h<4?"rati":h<12?"sokallim":h<16?"donparam":h<20?"sanje":"rati"}})}(n(15439))},42641:function(M,b,n){!function(t){"use strict";var e={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},l={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};t.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(r){return r.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(d){return l[d]})},postformat:function(r){return r.replace(/\d/g,function(d){return e[d]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(r,d){return 12===r&&(r=0),"\u0ab0\u0abe\u0aa4"===d?r<4?r:r+12:"\u0ab8\u0ab5\u0abe\u0ab0"===d?r:"\u0aac\u0aaa\u0acb\u0ab0"===d?r>=10?r:r+12:"\u0ab8\u0abe\u0a82\u0a9c"===d?r+12:void 0},meridiem:function(r,d,y){return r<4?"\u0ab0\u0abe\u0aa4":r<10?"\u0ab8\u0ab5\u0abe\u0ab0":r<17?"\u0aac\u0aaa\u0acb\u0ab0":r<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(n(15439))},7536:function(M,b,n){!function(t){"use strict";t.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(l){return 2===l?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":l+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(l){return 2===l?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":l+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(l){return 2===l?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":l+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(l){return 2===l?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":l%10==0&&10!==l?l+" \u05e9\u05e0\u05d4":l+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(l){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(l)},meridiem:function(l,h,r){return l<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":l<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":l<12?r?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":l<18?r?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(n(15439))},96335:function(M,b,n){!function(t){"use strict";var e={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},l={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},h=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];t.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:h,longMonthsParse:h,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(y){return y.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(g){return l[g]})},postformat:function(y){return y.replace(/\d/g,function(g){return e[g]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(y,g){return 12===y&&(y=0),"\u0930\u093e\u0924"===g?y<4?y:y+12:"\u0938\u0941\u092c\u0939"===g?y:"\u0926\u094b\u092a\u0939\u0930"===g?y>=10?y:y+12:"\u0936\u093e\u092e"===g?y+12:void 0},meridiem:function(y,g,p){return y<4?"\u0930\u093e\u0924":y<10?"\u0938\u0941\u092c\u0939":y<17?"\u0926\u094b\u092a\u0939\u0930":y<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(n(15439))},7458:function(M,b,n){!function(t){"use strict";function e(h,r,d){var y=h+" ";switch(d){case"ss":return y+(1===h?"sekunda":2===h||3===h||4===h?"sekunde":"sekundi");case"m":return r?"jedna minuta":"jedne minute";case"mm":return y+(1===h?"minuta":2===h||3===h||4===h?"minute":"minuta");case"h":return r?"jedan sat":"jednog sata";case"hh":return y+(1===h?"sat":2===h||3===h||4===h?"sata":"sati");case"dd":return y+(1===h?"dan":"dana");case"MM":return y+(1===h?"mjesec":2===h||3===h||4===h?"mjeseca":"mjeseci");case"yy":return y+(1===h?"godina":2===h||3===h||4===h?"godine":"godina")}}t.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(15439))},56540:function(M,b,n){!function(t){"use strict";var e="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function l(d,y,g,p){var f=d;switch(g){case"s":return p||y?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return f+(p||y)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(p||y?" perc":" perce");case"mm":return f+(p||y?" perc":" perce");case"h":return"egy"+(p||y?" \xf3ra":" \xf3r\xe1ja");case"hh":return f+(p||y?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(p||y?" nap":" napja");case"dd":return f+(p||y?" nap":" napja");case"M":return"egy"+(p||y?" h\xf3nap":" h\xf3napja");case"MM":return f+(p||y?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(p||y?" \xe9v":" \xe9ve");case"yy":return f+(p||y?" \xe9v":" \xe9ve")}return""}function h(d){return(d?"":"[m\xfalt] ")+"["+e[this.day()]+"] LT[-kor]"}t.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(d){return"u"===d.charAt(1).toLowerCase()},meridiem:function(d,y,g){return d<12?!0===g?"de":"DE":!0===g?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return h.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return h.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:l,ss:l,m:l,mm:l,h:l,hh:l,d:l,dd:l,M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(15439))},65283:function(M,b,n){!function(t){"use strict";t.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(l){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(l)},meridiem:function(l){return l<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":l<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":l<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(l,h){switch(h){case"DDD":case"w":case"W":case"DDDo":return 1===l?l+"-\u056b\u0576":l+"-\u0580\u0564";default:return l}},week:{dow:1,doy:7}})}(n(15439))},98780:function(M,b,n){!function(t){"use strict";t.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(l,h){return 12===l&&(l=0),"pagi"===h?l:"siang"===h?l>=11?l:l+12:"sore"===h||"malam"===h?l+12:void 0},meridiem:function(l,h,r){return l<11?"pagi":l<15?"siang":l<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(n(15439))},14205:function(M,b,n){!function(t){"use strict";function e(r){return r%100==11||r%10!=1}function l(r,d,y,g){var p=r+" ";switch(y){case"s":return d||g?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return e(r)?p+(d||g?"sek\xfandur":"sek\xfandum"):p+"sek\xfanda";case"m":return d?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return e(r)?p+(d||g?"m\xedn\xfatur":"m\xedn\xfatum"):d?p+"m\xedn\xfata":p+"m\xedn\xfatu";case"hh":return e(r)?p+(d||g?"klukkustundir":"klukkustundum"):p+"klukkustund";case"d":return d?"dagur":g?"dag":"degi";case"dd":return e(r)?d?p+"dagar":p+(g?"daga":"d\xf6gum"):d?p+"dagur":p+(g?"dag":"degi");case"M":return d?"m\xe1nu\xf0ur":g?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return e(r)?d?p+"m\xe1nu\xf0ir":p+(g?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):d?p+"m\xe1nu\xf0ur":p+(g?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return d||g?"\xe1r":"\xe1ri";case"yy":return e(r)?p+(d||g?"\xe1r":"\xe1rum"):p+(d||g?"\xe1r":"\xe1ri")}}t.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:l,ss:l,m:l,mm:l,h:"klukkustund",hh:l,d:l,dd:l,M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(15439))},29985:function(M,b,n){!function(t){"use strict";t.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(l){return(/^[0-9].+$/.test(l)?"tra":"in")+" "+l},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n(15439))},34211:function(M,b,n){!function(t){"use strict";t.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n(15439))},31003:function(M,b,n){!function(t){"use strict";t.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(l,h){return"\u5143"===h[1]?1:parseInt(h[1]||l,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(l){return"\u5348\u5f8c"===l},meridiem:function(l,h,r){return l<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(l){return l.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(l){return this.week()!==l.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(l,h){switch(h){case"y":return 1===l?"\u5143\u5e74":l+"\u5e74";case"d":case"D":case"DDD":return l+"\u65e5";default:return l}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(n(15439))},60420:function(M,b,n){!function(t){"use strict";t.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(l,h){return 12===l&&(l=0),"enjing"===h?l:"siyang"===h?l>=11?l:l+12:"sonten"===h||"ndalu"===h?l+12:void 0},meridiem:function(l,h,r){return l<11?"enjing":l<15?"siyang":l<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n(15439))},40851:function(M,b,n){!function(t){"use strict";t.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(l){return l.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(h,r,d){return"\u10d8"===d?r+"\u10e8\u10d8":r+d+"\u10e8\u10d8"})},past:function(l){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(l)?l.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(l)?l.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):l},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(l){return 0===l?l:1===l?l+"-\u10da\u10d8":l<20||l<=100&&l%20==0||l%100==0?"\u10db\u10d4-"+l:l+"-\u10d4"},week:{dow:1,doy:7}})}(n(15439))},16074:function(M,b,n){!function(t){"use strict";var e={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};t.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(h){return h+(e[h]||e[h%10]||e[h>=100?100:null])},week:{dow:1,doy:7}})}(n(15439))},53343:function(M,b,n){!function(t){"use strict";var e={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},l={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};t.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(r){return"\u179b\u17d2\u1784\u17b6\u1785"===r},meridiem:function(r,d,y){return r<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(r){return r.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(d){return l[d]})},postformat:function(r){return r.replace(/\d/g,function(d){return e[d]})},week:{dow:1,doy:4}})}(n(15439))},44799:function(M,b,n){!function(t){"use strict";var e={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},l={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};t.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(r){return r.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(d){return l[d]})},postformat:function(r){return r.replace(/\d/g,function(d){return e[d]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(r,d){return 12===r&&(r=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===d?r<4?r:r+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===d?r:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===d?r>=10?r:r+12:"\u0cb8\u0c82\u0c9c\u0cc6"===d?r+12:void 0},meridiem:function(r,d,y){return r<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":r<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":r<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":r<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(r){return r+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(n(15439))},13549:function(M,b,n){!function(t){"use strict";t.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(l,h){switch(h){case"d":case"D":case"DDD":return l+"\uc77c";case"M":return l+"\uc6d4";case"w":case"W":return l+"\uc8fc";default:return l}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(l){return"\uc624\ud6c4"===l},meridiem:function(l,h,r){return l<12?"\uc624\uc804":"\uc624\ud6c4"}})}(n(15439))},91037:function(M,b,n){!function(t){"use strict";var e={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},l={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},h=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];t.defineLocale("ku",{months:h,monthsShort:h,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(d){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(d)},meridiem:function(d,y,g){return d<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(d){return d.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(y){return l[y]}).replace(/\u060c/g,",")},postformat:function(d){return d.replace(/\d/g,function(y){return e[y]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(n(15439))},93125:function(M,b,n){!function(t){"use strict";var e={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};t.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(h){return h+(e[h]||e[h%10]||e[h>=100?100:null])},week:{dow:1,doy:7}})}(n(15439))},69586:function(M,b,n){!function(t){"use strict";function e(y,g,p,f){var C={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return g?C[p][0]:C[p][1]}function r(y){if(y=parseInt(y,10),isNaN(y))return!1;if(y<0)return!0;if(y<10)return 4<=y&&y<=7;if(y<100){var g=y%10;return r(0===g?y/10:g)}if(y<1e4){for(;y>=10;)y/=10;return r(y)}return r(y/=1e3)}t.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function l(y){return r(y.substr(0,y.indexOf(" ")))?"a "+y:"an "+y},past:function h(y){return r(y.substr(0,y.indexOf(" ")))?"viru "+y:"virun "+y},s:"e puer Sekonnen",ss:"%d Sekonnen",m:e,mm:"%d Minutten",h:e,hh:"%d Stonnen",d:e,dd:"%d Deeg",M:e,MM:"%d M\xe9int",y:e,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(15439))},32349:function(M,b,n){!function(t){"use strict";t.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(l){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===l},meridiem:function(l,h,r){return l<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(l){return"\u0e97\u0eb5\u0ec8"+l}})}(n(15439))},92400:function(M,b,n){!function(t){"use strict";var e={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function h(p,f,C,N){return f?d(C)[0]:N?d(C)[1]:d(C)[2]}function r(p){return p%10==0||p>10&&p<20}function d(p){return e[p].split("_")}function y(p,f,C,N){var a=p+" ";return 1===p?a+h(0,f,C[0],N):f?a+(r(p)?d(C)[1]:d(C)[0]):N?a+d(C)[1]:a+(r(p)?d(C)[1]:d(C)[2])}t.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function l(p,f,C,N){return f?"kelios sekund\u0117s":N?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:y,m:h,mm:y,h,hh:y,d:h,dd:y,M:h,MM:y,y:h,yy:y},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(p){return p+"-oji"},week:{dow:1,doy:4}})}(n(15439))},39991:function(M,b,n){!function(t){"use strict";var e={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function l(g,p,f){return f?p%10==1&&p%100!=11?g[2]:g[3]:p%10==1&&p%100!=11?g[0]:g[1]}function h(g,p,f){return g+" "+l(e[f],g,p)}function r(g,p,f){return l(e[f],g,p)}t.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function d(g,p){return p?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:h,m:r,mm:h,h:r,hh:h,d:r,dd:h,M:r,MM:h,y:r,yy:h},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(15439))},28477:function(M,b,n){!function(t){"use strict";var e={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(h,r){return 1===h?r[0]:h>=2&&h<=4?r[1]:r[2]},translate:function(h,r,d){var y=e.words[d];return 1===d.length?r?y[0]:y[1]:h+" "+e.correctGrammaticalCase(h,y)}};t.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mjesec",MM:e.translate,y:"godinu",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(15439))},55118:function(M,b,n){!function(t){"use strict";t.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n(15439))},15943:function(M,b,n){!function(t){"use strict";t.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(l){var h=l%10,r=l%100;return 0===l?l+"-\u0435\u0432":0===r?l+"-\u0435\u043d":r>10&&r<20?l+"-\u0442\u0438":1===h?l+"-\u0432\u0438":2===h?l+"-\u0440\u0438":7===h||8===h?l+"-\u043c\u0438":l+"-\u0442\u0438"},week:{dow:1,doy:7}})}(n(15439))},13849:function(M,b,n){!function(t){"use strict";t.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(l,h){return 12===l&&(l=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===h&&l>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===h||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===h?l+12:l},meridiem:function(l,h,r){return l<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":l<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":l<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":l<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(n(15439))},31977:function(M,b,n){!function(t){"use strict";function e(h,r,d,y){switch(d){case"s":return r?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return h+(r?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return h+(r?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return h+(r?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return h+(r?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return h+(r?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return h+(r?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return h}}t.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(h){return"\u04ae\u0425"===h},meridiem:function(h,r,d){return h<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(h,r){switch(r){case"d":case"D":case"DDD":return h+" \u04e9\u0434\u04e9\u0440";default:return h}}})}(n(15439))},66184:function(M,b,n){!function(t){"use strict";var e={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},l={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function h(d,y,g,p){var f="";if(y)switch(g){case"s":f="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":f="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":f="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":f="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":f="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":f="%d \u0924\u093e\u0938";break;case"d":f="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":f="%d \u0926\u093f\u0935\u0938";break;case"M":f="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":f="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":f="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":f="%d \u0935\u0930\u094d\u0937\u0947"}else switch(g){case"s":f="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":f="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":f="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":f="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":f="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":f="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":f="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":f="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":f="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":f="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":f="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":f="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return f.replace(/%d/i,d)}t.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:h,ss:h,m:h,mm:h,h,hh:h,d:h,dd:h,M:h,MM:h,y:h,yy:h},preparse:function(d){return d.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(y){return l[y]})},postformat:function(d){return d.replace(/\d/g,function(y){return e[y]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(d,y){return 12===d&&(d=0),"\u092a\u0939\u093e\u091f\u0947"===y||"\u0938\u0915\u093e\u0933\u0940"===y?d:"\u0926\u0941\u092a\u093e\u0930\u0940"===y||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===y||"\u0930\u093e\u0924\u094d\u0930\u0940"===y?d>=12?d:d+12:void 0},meridiem:function(d,y,g){return d>=0&&d<6?"\u092a\u0939\u093e\u091f\u0947":d<12?"\u0938\u0915\u093e\u0933\u0940":d<17?"\u0926\u0941\u092a\u093e\u0930\u0940":d<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(n(15439))},64524:function(M,b,n){!function(t){"use strict";t.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(l,h){return 12===l&&(l=0),"pagi"===h?l:"tengahari"===h?l>=11?l:l+12:"petang"===h||"malam"===h?l+12:void 0},meridiem:function(l,h,r){return l<11?"pagi":l<15?"tengahari":l<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(15439))},70485:function(M,b,n){!function(t){"use strict";t.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(l,h){return 12===l&&(l=0),"pagi"===h?l:"tengahari"===h?l>=11?l:l+12:"petang"===h||"malam"===h?l+12:void 0},meridiem:function(l,h,r){return l<11?"pagi":l<15?"tengahari":l<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(15439))},36681:function(M,b,n){!function(t){"use strict";t.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n(15439))},52024:function(M,b,n){!function(t){"use strict";var e={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},l={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};t.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(r){return r.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(d){return l[d]})},postformat:function(r){return r.replace(/\d/g,function(d){return e[d]})},week:{dow:1,doy:4}})}(n(15439))},42688:function(M,b,n){!function(t){"use strict";t.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(15439))},68914:function(M,b,n){!function(t){"use strict";var e={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},l={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};t.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(r){return r.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(d){return l[d]})},postformat:function(r){return r.replace(/\d/g,function(d){return e[d]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(r,d){return 12===r&&(r=0),"\u0930\u093e\u0924\u093f"===d?r<4?r:r+12:"\u092c\u093f\u0939\u093e\u0928"===d?r:"\u0926\u093f\u0909\u0901\u0938\u094b"===d?r>=10?r:r+12:"\u0938\u093e\u0901\u091d"===d?r+12:void 0},meridiem:function(r,d,y){return r<3?"\u0930\u093e\u0924\u093f":r<12?"\u092c\u093f\u0939\u093e\u0928":r<16?"\u0926\u093f\u0909\u0901\u0938\u094b":r<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(n(15439))},52272:function(M,b,n){!function(t){"use strict";var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),l="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),h=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;t.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(y,g){return y?/-MMM-/.test(g)?l[y.month()]:e[y.month()]:e},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:h,longMonthsParse:h,shortMonthsParse:h,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(y){return y+(1===y||8===y||y>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(15439))},11758:function(M,b,n){!function(t){"use strict";var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),l="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),h=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;t.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(y,g){return y?/-MMM-/.test(g)?l[y.month()]:e[y.month()]:e},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:h,longMonthsParse:h,shortMonthsParse:h,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(y){return y+(1===y||8===y||y>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(15439))},41510:function(M,b,n){!function(t){"use strict";t.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(15439))},52797:function(M,b,n){!function(t){"use strict";t.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(l,h){var r=1===l?"r":2===l?"n":3===l?"r":4===l?"t":"\xe8";return("w"===h||"W"===h)&&(r="a"),l+r},week:{dow:1,doy:4}})}(n(15439))},37944:function(M,b,n){!function(t){"use strict";var e={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},l={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};t.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(r){return r.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(d){return l[d]})},postformat:function(r){return r.replace(/\d/g,function(d){return e[d]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(r,d){return 12===r&&(r=0),"\u0a30\u0a3e\u0a24"===d?r<4?r:r+12:"\u0a38\u0a35\u0a47\u0a30"===d?r:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===d?r>=10?r:r+12:"\u0a38\u0a3c\u0a3e\u0a2e"===d?r+12:void 0},meridiem:function(r,d,y){return r<4?"\u0a30\u0a3e\u0a24":r<10?"\u0a38\u0a35\u0a47\u0a30":r<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":r<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(n(15439))},1605:function(M,b,n){!function(t){"use strict";var e="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),l="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),h=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function r(g){return g%10<5&&g%10>1&&~~(g/10)%10!=1}function d(g,p,f){var C=g+" ";switch(f){case"ss":return C+(r(g)?"sekundy":"sekund");case"m":return p?"minuta":"minut\u0119";case"mm":return C+(r(g)?"minuty":"minut");case"h":return p?"godzina":"godzin\u0119";case"hh":return C+(r(g)?"godziny":"godzin");case"ww":return C+(r(g)?"tygodnie":"tygodni");case"MM":return C+(r(g)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return C+(r(g)?"lata":"lat")}}t.defineLocale("pl",{months:function(g,p){return g?/D MMMM/.test(p)?l[g.month()]:e[g.month()]:e},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:h,longMonthsParse:h,shortMonthsParse:h,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:d,m:d,mm:d,h:d,hh:d,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:d,M:"miesi\u0105c",MM:d,y:"rok",yy:d},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(15439))},73840:function(M,b,n){!function(t){"use strict";t.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(n(15439))},54225:function(M,b,n){!function(t){"use strict";t.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n(15439))},45128:function(M,b,n){!function(t){"use strict";function e(h,r,d){var g=" ";return(h%100>=20||h>=100&&h%100==0)&&(g=" de "),h+g+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[d]}t.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:e,m:"un minut",mm:e,h:"o or\u0103",hh:e,d:"o zi",dd:e,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:e,M:"o lun\u0103",MM:e,y:"un an",yy:e},week:{dow:1,doy:7}})}(n(15439))},35127:function(M,b,n){!function(t){"use strict";function l(d,y,g){return"m"===g?y?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":d+" "+function e(d,y){var g=d.split("_");return y%10==1&&y%100!=11?g[0]:y%10>=2&&y%10<=4&&(y%100<10||y%100>=20)?g[1]:g[2]}({ss:y?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:y?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[g],+d)}var h=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];t.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:h,longMonthsParse:h,shortMonthsParse:h,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(d){if(d.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(d){if(d.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:l,m:l,mm:l,h:"\u0447\u0430\u0441",hh:l,d:"\u0434\u0435\u043d\u044c",dd:l,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:l,M:"\u043c\u0435\u0441\u044f\u0446",MM:l,y:"\u0433\u043e\u0434",yy:l},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(d){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(d)},meridiem:function(d,y,g){return d<4?"\u043d\u043e\u0447\u0438":d<12?"\u0443\u0442\u0440\u0430":d<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(d,y){switch(y){case"M":case"d":case"DDD":return d+"-\u0439";case"D":return d+"-\u0433\u043e";case"w":case"W":return d+"-\u044f";default:return d}},week:{dow:1,doy:4}})}(n(15439))},32525:function(M,b,n){!function(t){"use strict";var e=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],l=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];t.defineLocale("sd",{months:e,monthsShort:e,weekdays:l,weekdaysShort:l,weekdaysMin:l,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(r){return"\u0634\u0627\u0645"===r},meridiem:function(r,d,y){return r<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(r){return r.replace(/\u060c/g,",")},postformat:function(r){return r.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(n(15439))},59893:function(M,b,n){!function(t){"use strict";t.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(15439))},33123:function(M,b,n){!function(t){"use strict";t.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(l){return l+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(l){return"\u0db4.\u0dc0."===l||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===l},meridiem:function(l,h,r){return l>11?r?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":r?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(n(15439))},59635:function(M,b,n){!function(t){"use strict";var e="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),l="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function h(y){return y>1&&y<5}function r(y,g,p,f){var C=y+" ";switch(p){case"s":return g||f?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return g||f?C+(h(y)?"sekundy":"sek\xfand"):C+"sekundami";case"m":return g?"min\xfata":f?"min\xfatu":"min\xfatou";case"mm":return g||f?C+(h(y)?"min\xfaty":"min\xfat"):C+"min\xfatami";case"h":return g?"hodina":f?"hodinu":"hodinou";case"hh":return g||f?C+(h(y)?"hodiny":"hod\xedn"):C+"hodinami";case"d":return g||f?"de\u0148":"d\u0148om";case"dd":return g||f?C+(h(y)?"dni":"dn\xed"):C+"d\u0148ami";case"M":return g||f?"mesiac":"mesiacom";case"MM":return g||f?C+(h(y)?"mesiace":"mesiacov"):C+"mesiacmi";case"y":return g||f?"rok":"rokom";case"yy":return g||f?C+(h(y)?"roky":"rokov"):C+"rokmi"}}t.defineLocale("sk",{months:e,monthsShort:l,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(15439))},78106:function(M,b,n){!function(t){"use strict";function e(h,r,d,y){var g=h+" ";switch(d){case"s":return r||y?"nekaj sekund":"nekaj sekundami";case"ss":return g+(1===h?r?"sekundo":"sekundi":2===h?r||y?"sekundi":"sekundah":h<5?r||y?"sekunde":"sekundah":"sekund");case"m":return r?"ena minuta":"eno minuto";case"mm":return g+(1===h?r?"minuta":"minuto":2===h?r||y?"minuti":"minutama":h<5?r||y?"minute":"minutami":r||y?"minut":"minutami");case"h":return r?"ena ura":"eno uro";case"hh":return g+(1===h?r?"ura":"uro":2===h?r||y?"uri":"urama":h<5?r||y?"ure":"urami":r||y?"ur":"urami");case"d":return r||y?"en dan":"enim dnem";case"dd":return g+(1===h?r||y?"dan":"dnem":2===h?r||y?"dni":"dnevoma":r||y?"dni":"dnevi");case"M":return r||y?"en mesec":"enim mesecem";case"MM":return g+(1===h?r||y?"mesec":"mesecem":2===h?r||y?"meseca":"mesecema":h<5?r||y?"mesece":"meseci":r||y?"mesecev":"meseci");case"y":return r||y?"eno leto":"enim letom";case"yy":return g+(1===h?r||y?"leto":"letom":2===h?r||y?"leti":"letoma":h<5?r||y?"leta":"leti":r||y?"let":"leti")}}t.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(15439))},88799:function(M,b,n){!function(t){"use strict";t.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(l){return"M"===l.charAt(0)},meridiem:function(l,h,r){return l<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(15439))},52872:function(M,b,n){!function(t){"use strict";var e={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(h,r){return h%10>=1&&h%10<=4&&(h%100<10||h%100>=20)?h%10==1?r[0]:r[1]:r[2]},translate:function(h,r,d,y){var p,g=e.words[d];return 1===d.length?"y"===d&&r?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":y||r?g[0]:g[1]:(p=e.correctGrammaticalCase(h,g),"yy"===d&&r&&"\u0433\u043e\u0434\u0438\u043d\u0443"===p?h+" \u0433\u043e\u0434\u0438\u043d\u0430":h+" "+p)}};t.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:e.translate,dd:e.translate,M:e.translate,MM:e.translate,y:e.translate,yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(15439))},97949:function(M,b,n){!function(t){"use strict";var e={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(h,r){return h%10>=1&&h%10<=4&&(h%100<10||h%100>=20)?h%10==1?r[0]:r[1]:r[2]},translate:function(h,r,d,y){var p,g=e.words[d];return 1===d.length?"y"===d&&r?"jedna godina":y||r?g[0]:g[1]:(p=e.correctGrammaticalCase(h,g),"yy"===d&&r&&"godinu"===p?h+" godina":h+" "+p)}};t.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:e.translate,dd:e.translate,M:e.translate,MM:e.translate,y:e.translate,yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(15439))},86167:function(M,b,n){!function(t){"use strict";t.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(l,h,r){return l<11?"ekuseni":l<15?"emini":l<19?"entsambama":"ebusuku"},meridiemHour:function(l,h){return 12===l&&(l=0),"ekuseni"===h?l:"emini"===h?l>=11?l:l+12:"entsambama"===h||"ebusuku"===h?0===l?0:l+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n(15439))},39713:function(M,b,n){!function(t){"use strict";t.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(l){var h=l%10;return l+(1==~~(l%100/10)?":e":1===h||2===h?":a":":e")},week:{dow:1,doy:4}})}(n(15439))},41982:function(M,b,n){!function(t){"use strict";t.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n(15439))},22732:function(M,b,n){!function(t){"use strict";var e={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},l={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};t.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(r){return r+"\u0bb5\u0ba4\u0bc1"},preparse:function(r){return r.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(d){return l[d]})},postformat:function(r){return r.replace(/\d/g,function(d){return e[d]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(r,d,y){return r<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":r<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":r<10?" \u0b95\u0bbe\u0bb2\u0bc8":r<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":r<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":r<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(r,d){return 12===r&&(r=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===d?r<2?r:r+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===d||"\u0b95\u0bbe\u0bb2\u0bc8"===d||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===d&&r>=10?r:r+12},week:{dow:0,doy:6}})}(n(15439))},43636:function(M,b,n){!function(t){"use strict";t.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(l,h){return 12===l&&(l=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===h?l<4?l:l+12:"\u0c09\u0c26\u0c2f\u0c02"===h?l:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===h?l>=10?l:l+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===h?l+12:void 0},meridiem:function(l,h,r){return l<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":l<10?"\u0c09\u0c26\u0c2f\u0c02":l<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":l<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(n(15439))},2115:function(M,b,n){!function(t){"use strict";t.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(l){var h=l%10;return l+(1==~~(l%100/10)?"th":1===h?"st":2===h?"nd":3===h?"rd":"th")},week:{dow:1,doy:4}})}(n(15439))},69801:function(M,b,n){!function(t){"use strict";var e={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};t.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(h,r){return 12===h&&(h=0),"\u0448\u0430\u0431"===r?h<4?h:h+12:"\u0441\u0443\u0431\u04b3"===r?h:"\u0440\u04ef\u0437"===r?h>=11?h:h+12:"\u0431\u0435\u0433\u043e\u04b3"===r?h+12:void 0},meridiem:function(h,r,d){return h<4?"\u0448\u0430\u0431":h<11?"\u0441\u0443\u0431\u04b3":h<16?"\u0440\u04ef\u0437":h<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(h){return h+(e[h]||e[h%10]||e[h>=100?100:null])},week:{dow:1,doy:7}})}(n(15439))},2868:function(M,b,n){!function(t){"use strict";t.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(l){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===l},meridiem:function(l,h,r){return l<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(n(15439))},31310:function(M,b,n){!function(t){"use strict";var e={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};t.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(h,r){switch(r){case"d":case"D":case"Do":case"DD":return h;default:if(0===h)return h+"'unjy";var d=h%10;return h+(e[d]||e[h%100-d]||e[h>=100?100:null])}},week:{dow:1,doy:7}})}(n(15439))},22360:function(M,b,n){!function(t){"use strict";t.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(l){return l},week:{dow:1,doy:4}})}(n(15439))},66645:function(M,b,n){!function(t){"use strict";var e="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function r(g,p,f,C){var N=function d(g){var p=Math.floor(g%1e3/100),f=Math.floor(g%100/10),C=g%10,N="";return p>0&&(N+=e[p]+"vatlh"),f>0&&(N+=(""!==N?" ":"")+e[f]+"maH"),C>0&&(N+=(""!==N?" ":"")+e[C]),""===N?"pagh":N}(g);switch(f){case"ss":return N+" lup";case"mm":return N+" tup";case"hh":return N+" rep";case"dd":return N+" jaj";case"MM":return N+" jar";case"yy":return N+" DIS"}}t.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function l(g){var p=g;return-1!==g.indexOf("jaj")?p.slice(0,-3)+"leS":-1!==g.indexOf("jar")?p.slice(0,-3)+"waQ":-1!==g.indexOf("DIS")?p.slice(0,-3)+"nem":p+" pIq"},past:function h(g){var p=g;return-1!==g.indexOf("jaj")?p.slice(0,-3)+"Hu\u2019":-1!==g.indexOf("jar")?p.slice(0,-3)+"wen":-1!==g.indexOf("DIS")?p.slice(0,-3)+"ben":p+" ret"},s:"puS lup",ss:r,m:"wa\u2019 tup",mm:r,h:"wa\u2019 rep",hh:r,d:"wa\u2019 jaj",dd:r,M:"wa\u2019 jar",MM:r,y:"wa\u2019 DIS",yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(15439))},98374:function(M,b,n){!function(t){"use strict";var e={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};t.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(h,r,d){return h<12?d?"\xf6\xf6":"\xd6\xd6":d?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(h){return"\xf6s"===h||"\xd6S"===h},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(h,r){switch(r){case"d":case"D":case"Do":case"DD":return h;default:if(0===h)return h+"'\u0131nc\u0131";var d=h%10;return h+(e[d]||e[h%100-d]||e[h>=100?100:null])}},week:{dow:1,doy:7}})}(n(15439))},256:function(M,b,n){!function(t){"use strict";function l(h,r,d,y){var g={s:["viensas secunds","'iensas secunds"],ss:[h+" secunds",h+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[h+" m\xeduts",h+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[h+" \xfeoras",h+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[h+" ziuas",h+" ziuas"],M:["'n mes","'iens mes"],MM:[h+" mesen",h+" mesen"],y:["'n ar","'iens ar"],yy:[h+" ars",h+" ars"]};return y||r?g[d][0]:g[d][1]}t.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(h){return"d'o"===h.toLowerCase()},meridiem:function(h,r,d){return h>11?d?"d'o":"D'O":d?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:l,ss:l,m:l,mm:l,h:l,hh:l,d:l,dd:l,M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(15439))},61631:function(M,b,n){!function(t){"use strict";t.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n(15439))},61595:function(M,b,n){!function(t){"use strict";t.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(n(15439))},6050:function(M,b,n){!function(t){"use strict";t.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(l,h){return 12===l&&(l=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===h||"\u0633\u06d5\u06be\u06d5\u0631"===h||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===h?l:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===h||"\u0643\u06d5\u0686"===h?l+12:l>=11?l:l+12},meridiem:function(l,h,r){var d=100*l+h;return d<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":d<900?"\u0633\u06d5\u06be\u06d5\u0631":d<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":d<1230?"\u0686\u06c8\u0634":d<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(l,h){switch(h){case"d":case"D":case"DDD":return l+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return l+"-\u06be\u06d5\u067e\u062a\u06d5";default:return l}},preparse:function(l){return l.replace(/\u060c/g,",")},postformat:function(l){return l.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(n(15439))},65610:function(M,b,n){!function(t){"use strict";function l(y,g,p){return"m"===p?g?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===p?g?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":y+" "+function e(y,g){var p=y.split("_");return g%10==1&&g%100!=11?p[0]:g%10>=2&&g%10<=4&&(g%100<10||g%100>=20)?p[1]:p[2]}({ss:g?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:g?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:g?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[p],+y)}function r(y){return function(){return y+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}t.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function h(y,g){var p={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===y?p.nominative.slice(1,7).concat(p.nominative.slice(0,1)):y?p[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(g)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(g)?"genitive":"nominative"][y.day()]:p.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:r("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:r("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:r("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:r("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return r("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return r("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:l,m:l,mm:l,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:l,d:"\u0434\u0435\u043d\u044c",dd:l,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:l,y:"\u0440\u0456\u043a",yy:l},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(y){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(y)},meridiem:function(y,g,p){return y<4?"\u043d\u043e\u0447\u0456":y<12?"\u0440\u0430\u043d\u043a\u0443":y<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(y,g){switch(g){case"M":case"d":case"DDD":case"w":case"W":return y+"-\u0439";case"D":return y+"-\u0433\u043e";default:return y}},week:{dow:1,doy:7}})}(n(15439))},86077:function(M,b,n){!function(t){"use strict";var e=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],l=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];t.defineLocale("ur",{months:e,monthsShort:e,weekdays:l,weekdaysShort:l,weekdaysMin:l,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(r){return"\u0634\u0627\u0645"===r},meridiem:function(r,d,y){return r<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(r){return r.replace(/\u060c/g,",")},postformat:function(r){return r.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(n(15439))},12207:function(M,b,n){!function(t){"use strict";t.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n(15439))},22862:function(M,b,n){!function(t){"use strict";t.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(n(15439))},48093:function(M,b,n){!function(t){"use strict";t.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(l){return/^ch$/i.test(l)},meridiem:function(l,h,r){return l<12?r?"sa":"SA":r?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(l){return l},week:{dow:1,doy:4}})}(n(15439))},25590:function(M,b,n){!function(t){"use strict";t.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(l){var h=l%10;return l+(1==~~(l%100/10)?"th":1===h?"st":2===h?"nd":3===h?"rd":"th")},week:{dow:1,doy:4}})}(n(15439))},9058:function(M,b,n){!function(t){"use strict";t.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(n(15439))},77908:function(M,b,n){!function(t){"use strict";t.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(l,h){return 12===l&&(l=0),"\u51cc\u6668"===h||"\u65e9\u4e0a"===h||"\u4e0a\u5348"===h?l:"\u4e0b\u5348"===h||"\u665a\u4e0a"===h?l+12:l>=11?l:l+12},meridiem:function(l,h,r){var d=100*l+h;return d<600?"\u51cc\u6668":d<900?"\u65e9\u4e0a":d<1130?"\u4e0a\u5348":d<1230?"\u4e2d\u5348":d<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(l){return l.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(l){return this.week()!==l.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(l,h){switch(h){case"d":case"D":case"DDD":return l+"\u65e5";case"M":return l+"\u6708";case"w":case"W":return l+"\u5468";default:return l}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(n(15439))},8867:function(M,b,n){!function(t){"use strict";t.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(l,h){return 12===l&&(l=0),"\u51cc\u6668"===h||"\u65e9\u4e0a"===h||"\u4e0a\u5348"===h?l:"\u4e2d\u5348"===h?l>=11?l:l+12:"\u4e0b\u5348"===h||"\u665a\u4e0a"===h?l+12:void 0},meridiem:function(l,h,r){var d=100*l+h;return d<600?"\u51cc\u6668":d<900?"\u65e9\u4e0a":d<1200?"\u4e0a\u5348":1200===d?"\u4e2d\u5348":d<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(l,h){switch(h){case"d":case"D":case"DDD":return l+"\u65e5";case"M":return l+"\u6708";case"w":case"W":return l+"\u9031";default:return l}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(n(15439))},31133:function(M,b,n){!function(t){"use strict";t.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(l,h){return 12===l&&(l=0),"\u51cc\u6668"===h||"\u65e9\u4e0a"===h||"\u4e0a\u5348"===h?l:"\u4e2d\u5348"===h?l>=11?l:l+12:"\u4e0b\u5348"===h||"\u665a\u4e0a"===h?l+12:void 0},meridiem:function(l,h,r){var d=100*l+h;return d<600?"\u51cc\u6668":d<900?"\u65e9\u4e0a":d<1130?"\u4e0a\u5348":d<1230?"\u4e2d\u5348":d<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(l,h){switch(h){case"d":case"D":case"DDD":return l+"\u65e5";case"M":return l+"\u6708";case"w":case"W":return l+"\u9031";default:return l}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(n(15439))},83291:function(M,b,n){!function(t){"use strict";t.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(l,h){return 12===l&&(l=0),"\u51cc\u6668"===h||"\u65e9\u4e0a"===h||"\u4e0a\u5348"===h?l:"\u4e2d\u5348"===h?l>=11?l:l+12:"\u4e0b\u5348"===h||"\u665a\u4e0a"===h?l+12:void 0},meridiem:function(l,h,r){var d=100*l+h;return d<600?"\u51cc\u6668":d<900?"\u65e9\u4e0a":d<1130?"\u4e0a\u5348":d<1230?"\u4e2d\u5348":d<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(l,h){switch(h){case"d":case"D":case"DDD":return l+"\u65e5";case"M":return l+"\u6708";case"w":case"W":return l+"\u9031";default:return l}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(n(15439))},15439:function(M,b,n){(M=n.nmd(M)).exports=function(){"use strict";var t,F;function e(){return t.apply(null,arguments)}function h(me){return me instanceof Array||"[object Array]"===Object.prototype.toString.call(me)}function r(me){return null!=me&&"[object Object]"===Object.prototype.toString.call(me)}function d(me,Je){return Object.prototype.hasOwnProperty.call(me,Je)}function y(me){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(me).length;var Je;for(Je in me)if(d(me,Je))return!1;return!0}function g(me){return void 0===me}function p(me){return"number"==typeof me||"[object Number]"===Object.prototype.toString.call(me)}function f(me){return me instanceof Date||"[object Date]"===Object.prototype.toString.call(me)}function C(me,Je){var or,Ht=[],Dr=me.length;for(or=0;or<Dr;++or)Ht.push(Je(me[or],or));return Ht}function N(me,Je){for(var Ht in Je)d(Je,Ht)&&(me[Ht]=Je[Ht]);return d(Je,"toString")&&(me.toString=Je.toString),d(Je,"valueOf")&&(me.valueOf=Je.valueOf),me}function a(me,Je,Ht,or){return Ci(me,Je,Ht,or,!0).utc()}function H(me){return null==me._pf&&(me._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),me._pf}function V(me){if(null==me._isValid){var Je=H(me),Ht=F.call(Je.parsedDateParts,function(Dr){return null!=Dr}),or=!isNaN(me._d.getTime())&&Je.overflow<0&&!Je.empty&&!Je.invalidEra&&!Je.invalidMonth&&!Je.invalidWeekday&&!Je.weekdayMismatch&&!Je.nullInput&&!Je.invalidFormat&&!Je.userInvalidated&&(!Je.meridiem||Je.meridiem&&Ht);if(me._strict&&(or=or&&0===Je.charsLeftOver&&0===Je.unusedTokens.length&&void 0===Je.bigHour),null!=Object.isFrozen&&Object.isFrozen(me))return or;me._isValid=or}return me._isValid}function D(me){var Je=a(NaN);return null!=me?N(H(Je),me):H(Je).userInvalidated=!0,Je}F=Array.prototype.some?Array.prototype.some:function(me){var or,Je=Object(this),Ht=Je.length>>>0;for(or=0;or<Ht;or++)if(or in Je&&me.call(this,Je[or],or,Je))return!0;return!1};var U=e.momentProperties=[],q=!1;function J(me,Je){var Ht,or,Dr,rn=U.length;if(g(Je._isAMomentObject)||(me._isAMomentObject=Je._isAMomentObject),g(Je._i)||(me._i=Je._i),g(Je._f)||(me._f=Je._f),g(Je._l)||(me._l=Je._l),g(Je._strict)||(me._strict=Je._strict),g(Je._tzm)||(me._tzm=Je._tzm),g(Je._isUTC)||(me._isUTC=Je._isUTC),g(Je._offset)||(me._offset=Je._offset),g(Je._pf)||(me._pf=H(Je)),g(Je._locale)||(me._locale=Je._locale),rn>0)for(Ht=0;Ht<rn;Ht++)g(Dr=Je[or=U[Ht]])||(me[or]=Dr);return me}function G(me){J(this,me),this._d=new Date(null!=me._d?me._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===q&&(q=!0,e.updateOffset(this),q=!1)}function ie(me){return me instanceof G||null!=me&&null!=me._isAMomentObject}function K(me){!1===e.suppressDeprecationWarnings&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+me)}function re(me,Je){var Ht=!0;return N(function(){if(null!=e.deprecationHandler&&e.deprecationHandler(null,me),Ht){var Dr,rn,Dn,or=[],ri=arguments.length;for(rn=0;rn<ri;rn++){if(Dr="","object"==typeof arguments[rn]){for(Dn in Dr+="\n["+rn+"] ",arguments[0])d(arguments[0],Dn)&&(Dr+=Dn+": "+arguments[0][Dn]+", ");Dr=Dr.slice(0,-2)}else Dr=arguments[rn];or.push(Dr)}K(me+"\nArguments: "+Array.prototype.slice.call(or).join("")+"\n"+(new Error).stack),Ht=!1}return Je.apply(this,arguments)},Je)}var x,oe={};function B(me,Je){null!=e.deprecationHandler&&e.deprecationHandler(me,Je),oe[me]||(K(Je),oe[me]=!0)}function s(me){return typeof Function<"u"&&me instanceof Function||"[object Function]"===Object.prototype.toString.call(me)}function w(me,Je){var or,Ht=N({},me);for(or in Je)d(Je,or)&&(r(me[or])&&r(Je[or])?(Ht[or]={},N(Ht[or],me[or]),N(Ht[or],Je[or])):null!=Je[or]?Ht[or]=Je[or]:delete Ht[or]);for(or in me)d(me,or)&&!d(Je,or)&&r(me[or])&&(Ht[or]=N({},Ht[or]));return Ht}function E(me){null!=me&&this.set(me)}e.suppressDeprecationWarnings=!1,e.deprecationHandler=null,x=Object.keys?Object.keys:function(me){var Je,Ht=[];for(Je in me)d(me,Je)&&Ht.push(Je);return Ht};function Y(me,Je,Ht){var or=""+Math.abs(me);return(me>=0?Ht?"+":"":"-")+Math.pow(10,Math.max(0,Je-or.length)).toString().substr(1)+or}var u=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,W=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,fe={},ae={};function ye(me,Je,Ht,or){var Dr=or;"string"==typeof or&&(Dr=function(){return this[or]()}),me&&(ae[me]=Dr),Je&&(ae[Je[0]]=function(){return Y(Dr.apply(this,arguments),Je[1],Je[2])}),Ht&&(ae[Ht]=function(){return this.localeData().ordinal(Dr.apply(this,arguments),me)})}function Qe(me){return me.match(/\[[\s\S]/)?me.replace(/^\[|\]$/g,""):me.replace(/\\/g,"")}function At(me,Je){return me.isValid()?(Je=Ze(Je,me.localeData()),fe[Je]=fe[Je]||function Ot(me){var Ht,or,Je=me.match(u);for(Ht=0,or=Je.length;Ht<or;Ht++)Je[Ht]=ae[Je[Ht]]?ae[Je[Ht]]:Qe(Je[Ht]);return function(Dr){var Dn,rn="";for(Dn=0;Dn<or;Dn++)rn+=s(Je[Dn])?Je[Dn].call(Dr,me):Je[Dn];return rn}}(Je),fe[Je](me)):me.localeData().invalidDate()}function Ze(me,Je){var Ht=5;function or(Dr){return Je.longDateFormat(Dr)||Dr}for(W.lastIndex=0;Ht>=0&&W.test(me);)me=me.replace(W,or),W.lastIndex=0,Ht-=1;return me}var Ft={};function br(me,Je){var Ht=me.toLowerCase();Ft[Ht]=Ft[Ht+"s"]=Ft[Je]=me}function rt(me){return"string"==typeof me?Ft[me]||Ft[me.toLowerCase()]:void 0}function st(me){var Ht,or,Je={};for(or in me)d(me,or)&&(Ht=rt(or))&&(Je[Ht]=me[or]);return Je}var Dt={};function ot(me,Je){Dt[me]=Je}function Yt(me){return me%4==0&&me%100!=0||me%400==0}function Ne(me){return me<0?Math.ceil(me)||0:Math.floor(me)}function X(me){var Je=+me,Ht=0;return 0!==Je&&isFinite(Je)&&(Ht=Ne(Je)),Ht}function ge(me,Je){return function(Ht){return null!=Ht?(We(this,me,Ht),e.updateOffset(this,Je),this):Me(this,me)}}function Me(me,Je){return me.isValid()?me._d["get"+(me._isUTC?"UTC":"")+Je]():NaN}function We(me,Je,Ht){me.isValid()&&!isNaN(Ht)&&("FullYear"===Je&&Yt(me.year())&&1===me.month()&&29===me.date()?(Ht=X(Ht),me._d["set"+(me._isUTC?"UTC":"")+Je](Ht,me.month(),kr(Ht,me.month()))):me._d["set"+(me._isUTC?"UTC":"")+Je](Ht))}var qe,Zt=/\d/,cr=/\d\d/,wt=/\d{3}/,gt=/\d{4}/,Ut=/[+-]?\d{6}/,hr=/\d\d?/,Cr=/\d\d\d\d?/,Ue=/\d\d\d\d\d\d?/,Pt=/\d{1,3}/,He=/\d{1,4}/,tt=/[+-]?\d{1,6}/,Ke=/\d+/,kt=/[+-]?\d+/,xe=/Z|[+-]\d\d:?\d\d/gi,Fe=/Z|[+-]\d\d(?::?\d\d)?/gi,St=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function ke(me,Je,Ht){qe[me]=s(Je)?Je:function(or,Dr){return or&&Ht?Ht:Je}}function ct(me,Je){return d(qe,me)?qe[me](Je._strict,Je._locale):new RegExp(function vt(me){return $t(me.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(Je,Ht,or,Dr,rn){return Ht||or||Dr||rn}))}(me))}function $t(me){return me.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}qe={};var Vr={};function Sr(me,Je){var Ht,Dr,or=Je;for("string"==typeof me&&(me=[me]),p(Je)&&(or=function(rn,Dn){Dn[Je]=X(rn)}),Dr=me.length,Ht=0;Ht<Dr;Ht++)Vr[me[Ht]]=or}function Ar(me,Je){Sr(me,function(Ht,or,Dr,rn){Dr._w=Dr._w||{},Je(Ht,Dr._w,Dr,rn)})}function Jr(me,Je,Ht){null!=Je&&d(Vr,me)&&Vr[me](Je,Ht._a,Ht,me)}var zt;function kr(me,Je){if(isNaN(me)||isNaN(Je))return NaN;var Ht=function Ct(me,Je){return(me%Je+Je)%Je}(Je,12);return me+=(Je-Ht)/12,1===Ht?Yt(me)?29:28:31-Ht%7%2}zt=Array.prototype.indexOf?Array.prototype.indexOf:function(me){var Je;for(Je=0;Je<this.length;++Je)if(this[Je]===me)return Je;return-1},ye("M",["MM",2],"Mo",function(){return this.month()+1}),ye("MMM",0,0,function(me){return this.localeData().monthsShort(this,me)}),ye("MMMM",0,0,function(me){return this.localeData().months(this,me)}),br("month","M"),ot("month",8),ke("M",hr),ke("MM",hr,cr),ke("MMM",function(me,Je){return Je.monthsShortRegex(me)}),ke("MMMM",function(me,Je){return Je.monthsRegex(me)}),Sr(["M","MM"],function(me,Je){Je[1]=X(me)-1}),Sr(["MMM","MMMM"],function(me,Je,Ht,or){var Dr=Ht._locale.monthsParse(me,or,Ht._strict);null!=Dr?Je[1]=Dr:H(Ht).invalidMonth=me});var Br="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),xt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),tr=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Rr=St,Ur=St;function hn(me,Je,Ht){var or,Dr,rn,Dn=me.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],or=0;or<12;++or)rn=a([2e3,or]),this._shortMonthsParse[or]=this.monthsShort(rn,"").toLocaleLowerCase(),this._longMonthsParse[or]=this.months(rn,"").toLocaleLowerCase();return Ht?"MMM"===Je?-1!==(Dr=zt.call(this._shortMonthsParse,Dn))?Dr:null:-1!==(Dr=zt.call(this._longMonthsParse,Dn))?Dr:null:"MMM"===Je?-1!==(Dr=zt.call(this._shortMonthsParse,Dn))||-1!==(Dr=zt.call(this._longMonthsParse,Dn))?Dr:null:-1!==(Dr=zt.call(this._longMonthsParse,Dn))||-1!==(Dr=zt.call(this._shortMonthsParse,Dn))?Dr:null}function Tn(me,Je){var Ht;if(!me.isValid())return me;if("string"==typeof Je)if(/^\d+$/.test(Je))Je=X(Je);else if(!p(Je=me.localeData().monthsParse(Je)))return me;return Ht=Math.min(me.date(),kr(me.year(),Je)),me._d["set"+(me._isUTC?"UTC":"")+"Month"](Je,Ht),me}function sr(me){return null!=me?(Tn(this,me),e.updateOffset(this,!0),this):Me(this,"Month")}function we(){function me(Dn,ri){return ri.length-Dn.length}var Dr,rn,Je=[],Ht=[],or=[];for(Dr=0;Dr<12;Dr++)rn=a([2e3,Dr]),Je.push(this.monthsShort(rn,"")),Ht.push(this.months(rn,"")),or.push(this.months(rn,"")),or.push(this.monthsShort(rn,""));for(Je.sort(me),Ht.sort(me),or.sort(me),Dr=0;Dr<12;Dr++)Je[Dr]=$t(Je[Dr]),Ht[Dr]=$t(Ht[Dr]);for(Dr=0;Dr<24;Dr++)or[Dr]=$t(or[Dr]);this._monthsRegex=new RegExp("^("+or.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+Ht.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+Je.join("|")+")","i")}function De(me){return Yt(me)?366:365}ye("Y",0,0,function(){var me=this.year();return me<=9999?Y(me,4):"+"+me}),ye(0,["YY",2],0,function(){return this.year()%100}),ye(0,["YYYY",4],0,"year"),ye(0,["YYYYY",5],0,"year"),ye(0,["YYYYYY",6,!0],0,"year"),br("year","y"),ot("year",1),ke("Y",kt),ke("YY",hr,cr),ke("YYYY",He,gt),ke("YYYYY",tt,Ut),ke("YYYYYY",tt,Ut),Sr(["YYYYY","YYYYYY"],0),Sr("YYYY",function(me,Je){Je[0]=2===me.length?e.parseTwoDigitYear(me):X(me)}),Sr("YY",function(me,Je){Je[0]=e.parseTwoDigitYear(me)}),Sr("Y",function(me,Je){Je[0]=parseInt(me,10)}),e.parseTwoDigitYear=function(me){return X(me)+(X(me)>68?1900:2e3)};var ht=ge("FullYear",!0);function yt(me,Je,Ht,or,Dr,rn,Dn){var ri;return me<100&&me>=0?(ri=new Date(me+400,Je,Ht,or,Dr,rn,Dn),isFinite(ri.getFullYear())&&ri.setFullYear(me)):ri=new Date(me,Je,Ht,or,Dr,rn,Dn),ri}function gr(me){var Je,Ht;return me<100&&me>=0?((Ht=Array.prototype.slice.call(arguments))[0]=me+400,Je=new Date(Date.UTC.apply(null,Ht)),isFinite(Je.getUTCFullYear())&&Je.setUTCFullYear(me)):Je=new Date(Date.UTC.apply(null,arguments)),Je}function ur(me,Je,Ht){var or=7+Je-Ht;return-(7+gr(me,0,or).getUTCDay()-Je)%7+or-1}function Zr(me,Je,Ht,or,Dr){var Ai,ds,ri=1+7*(Je-1)+(7+Ht-or)%7+ur(me,or,Dr);return ri<=0?ds=De(Ai=me-1)+ri:ri>De(me)?(Ai=me+1,ds=ri-De(me)):(Ai=me,ds=ri),{year:Ai,dayOfYear:ds}}function fn(me,Je,Ht){var rn,Dn,or=ur(me.year(),Je,Ht),Dr=Math.floor((me.dayOfYear()-or-1)/7)+1;return Dr<1?rn=Dr+un(Dn=me.year()-1,Je,Ht):Dr>un(me.year(),Je,Ht)?(rn=Dr-un(me.year(),Je,Ht),Dn=me.year()+1):(Dn=me.year(),rn=Dr),{week:rn,year:Dn}}function un(me,Je,Ht){var or=ur(me,Je,Ht),Dr=ur(me+1,Je,Ht);return(De(me)-or+Dr)/7}ye("w",["ww",2],"wo","week"),ye("W",["WW",2],"Wo","isoWeek"),br("week","w"),br("isoWeek","W"),ot("week",5),ot("isoWeek",5),ke("w",hr),ke("ww",hr,cr),ke("W",hr),ke("WW",hr,cr),Ar(["w","ww","W","WW"],function(me,Je,Ht,or){Je[or.substr(0,1)]=X(me)});function En(me,Je){return me.slice(Je,7).concat(me.slice(0,Je))}ye("d",0,"do","day"),ye("dd",0,0,function(me){return this.localeData().weekdaysMin(this,me)}),ye("ddd",0,0,function(me){return this.localeData().weekdaysShort(this,me)}),ye("dddd",0,0,function(me){return this.localeData().weekdays(this,me)}),ye("e",0,0,"weekday"),ye("E",0,0,"isoWeekday"),br("day","d"),br("weekday","e"),br("isoWeekday","E"),ot("day",11),ot("weekday",11),ot("isoWeekday",11),ke("d",hr),ke("e",hr),ke("E",hr),ke("dd",function(me,Je){return Je.weekdaysMinRegex(me)}),ke("ddd",function(me,Je){return Je.weekdaysShortRegex(me)}),ke("dddd",function(me,Je){return Je.weekdaysRegex(me)}),Ar(["dd","ddd","dddd"],function(me,Je,Ht,or){var Dr=Ht._locale.weekdaysParse(me,or,Ht._strict);null!=Dr?Je.d=Dr:H(Ht).invalidWeekday=me}),Ar(["d","e","E"],function(me,Je,Ht,or){Je[or]=X(me)});var Sn="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),yn="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Rn="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Kn=St,vi=St,li=St;function yr(me,Je,Ht){var or,Dr,rn,Dn=me.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],or=0;or<7;++or)rn=a([2e3,1]).day(or),this._minWeekdaysParse[or]=this.weekdaysMin(rn,"").toLocaleLowerCase(),this._shortWeekdaysParse[or]=this.weekdaysShort(rn,"").toLocaleLowerCase(),this._weekdaysParse[or]=this.weekdays(rn,"").toLocaleLowerCase();return Ht?"dddd"===Je?-1!==(Dr=zt.call(this._weekdaysParse,Dn))?Dr:null:"ddd"===Je?-1!==(Dr=zt.call(this._shortWeekdaysParse,Dn))?Dr:null:-1!==(Dr=zt.call(this._minWeekdaysParse,Dn))?Dr:null:"dddd"===Je?-1!==(Dr=zt.call(this._weekdaysParse,Dn))||-1!==(Dr=zt.call(this._shortWeekdaysParse,Dn))||-1!==(Dr=zt.call(this._minWeekdaysParse,Dn))?Dr:null:"ddd"===Je?-1!==(Dr=zt.call(this._shortWeekdaysParse,Dn))||-1!==(Dr=zt.call(this._weekdaysParse,Dn))||-1!==(Dr=zt.call(this._minWeekdaysParse,Dn))?Dr:null:-1!==(Dr=zt.call(this._minWeekdaysParse,Dn))||-1!==(Dr=zt.call(this._weekdaysParse,Dn))||-1!==(Dr=zt.call(this._shortWeekdaysParse,Dn))?Dr:null}function ai(){function me(Fs,Ys){return Ys.length-Fs.length}var rn,Dn,ri,Ai,ds,Je=[],Ht=[],or=[],Dr=[];for(rn=0;rn<7;rn++)Dn=a([2e3,1]).day(rn),ri=$t(this.weekdaysMin(Dn,"")),Ai=$t(this.weekdaysShort(Dn,"")),ds=$t(this.weekdays(Dn,"")),Je.push(ri),Ht.push(Ai),or.push(ds),Dr.push(ri),Dr.push(Ai),Dr.push(ds);Je.sort(me),Ht.sort(me),or.sort(me),Dr.sort(me),this._weekdaysRegex=new RegExp("^("+Dr.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+or.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+Ht.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+Je.join("|")+")","i")}function _i(){return this.hours()%12||12}function Wn(me,Je){ye(me,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),Je)})}function $r(me,Je){return Je._meridiemParse}ye("H",["HH",2],0,"hour"),ye("h",["hh",2],0,_i),ye("k",["kk",2],0,function wi(){return this.hours()||24}),ye("hmm",0,0,function(){return""+_i.apply(this)+Y(this.minutes(),2)}),ye("hmmss",0,0,function(){return""+_i.apply(this)+Y(this.minutes(),2)+Y(this.seconds(),2)}),ye("Hmm",0,0,function(){return""+this.hours()+Y(this.minutes(),2)}),ye("Hmmss",0,0,function(){return""+this.hours()+Y(this.minutes(),2)+Y(this.seconds(),2)}),Wn("a",!0),Wn("A",!1),br("hour","h"),ot("hour",13),ke("a",$r),ke("A",$r),ke("H",hr),ke("h",hr),ke("k",hr),ke("HH",hr,cr),ke("hh",hr,cr),ke("kk",hr,cr),ke("hmm",Cr),ke("hmmss",Ue),ke("Hmm",Cr),ke("Hmmss",Ue),Sr(["H","HH"],3),Sr(["k","kk"],function(me,Je,Ht){var or=X(me);Je[3]=24===or?0:or}),Sr(["a","A"],function(me,Je,Ht){Ht._isPm=Ht._locale.isPM(me),Ht._meridiem=me}),Sr(["h","hh"],function(me,Je,Ht){Je[3]=X(me),H(Ht).bigHour=!0}),Sr("hmm",function(me,Je,Ht){var or=me.length-2;Je[3]=X(me.substr(0,or)),Je[4]=X(me.substr(or)),H(Ht).bigHour=!0}),Sr("hmmss",function(me,Je,Ht){var or=me.length-4,Dr=me.length-2;Je[3]=X(me.substr(0,or)),Je[4]=X(me.substr(or,2)),Je[5]=X(me.substr(Dr)),H(Ht).bigHour=!0}),Sr("Hmm",function(me,Je,Ht){var or=me.length-2;Je[3]=X(me.substr(0,or)),Je[4]=X(me.substr(or))}),Sr("Hmmss",function(me,Je,Ht){var or=me.length-4,Dr=me.length-2;Je[3]=X(me.substr(0,or)),Je[4]=X(me.substr(or,2)),Je[5]=X(me.substr(Dr))});var Qn=ge("Hours",!0);var Di,oi={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Br,monthsShort:xt,week:{dow:0,doy:6},weekdays:Sn,weekdaysMin:Rn,weekdaysShort:yn,meridiemParse:/[ap]\.?m?\.?/i},di={},Qi={};function ts(me,Je){var Ht,or=Math.min(me.length,Je.length);for(Ht=0;Ht<or;Ht+=1)if(me[Ht]!==Je[Ht])return Ht;return or}function Oi(me){return me&&me.toLowerCase().replace("_","-")}function Os(me){var Je=null;if(void 0===di[me]&&M&&M.exports&&function Fi(me){return null!=me.match("^[^/\\\\]*$")}(me))try{Je=Di._abbr,n(46700)("./"+me),ys(Je)}catch{di[me]=null}return di[me]}function ys(me,Je){var Ht;return me&&((Ht=g(Je)?$s(me):rs(me,Je))?Di=Ht:typeof console<"u"&&console.warn&&console.warn("Locale "+me+" not found. Did you forget to load it?")),Di._abbr}function rs(me,Je){if(null!==Je){var Ht,or=oi;if(Je.abbr=me,null!=di[me])B("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),or=di[me]._config;else if(null!=Je.parentLocale)if(null!=di[Je.parentLocale])or=di[Je.parentLocale]._config;else{if(null==(Ht=Os(Je.parentLocale)))return Qi[Je.parentLocale]||(Qi[Je.parentLocale]=[]),Qi[Je.parentLocale].push({name:me,config:Je}),null;or=Ht._config}return di[me]=new E(w(or,Je)),Qi[me]&&Qi[me].forEach(function(Dr){rs(Dr.name,Dr.config)}),ys(me),di[me]}return delete di[me],null}function $s(me){var Je;if(me&&me._locale&&me._locale._abbr&&(me=me._locale._abbr),!me)return Di;if(!h(me)){if(Je=Os(me))return Je;me=[me]}return function hs(me){for(var Ht,or,Dr,rn,Je=0;Je<me.length;){for(Ht=(rn=Oi(me[Je]).split("-")).length,or=(or=Oi(me[Je+1]))?or.split("-"):null;Ht>0;){if(Dr=Os(rn.slice(0,Ht).join("-")))return Dr;if(or&&or.length>=Ht&&ts(rn,or)>=Ht-1)break;Ht--}Je++}return Di}(me)}function ps(me){var Je,Ht=me._a;return Ht&&-2===H(me).overflow&&(Je=Ht[1]<0||Ht[1]>11?1:Ht[2]<1||Ht[2]>kr(Ht[0],Ht[1])?2:Ht[3]<0||Ht[3]>24||24===Ht[3]&&(0!==Ht[4]||0!==Ht[5]||0!==Ht[6])?3:Ht[4]<0||Ht[4]>59?4:Ht[5]<0||Ht[5]>59?5:Ht[6]<0||Ht[6]>999?6:-1,H(me)._overflowDayOfYear&&(Je<0||Je>2)&&(Je=2),H(me)._overflowWeeks&&-1===Je&&(Je=7),H(me)._overflowWeekday&&-1===Je&&(Je=8),H(me).overflow=Je),me}var Ta=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ka=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Xs=/Z|[+-]\d\d(?::?\d\d)?/,ks=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ia=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Qa=/^\/?Date\((-?\d+)/i,Ea=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Ma={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function qt(me){var Je,Ht,rn,Dn,ri,Ai,or=me._i,Dr=Ta.exec(or)||ka.exec(or),ds=ks.length,Fs=ia.length;if(Dr){for(H(me).iso=!0,Je=0,Ht=ds;Je<Ht;Je++)if(ks[Je][1].exec(Dr[1])){Dn=ks[Je][0],rn=!1!==ks[Je][2];break}if(null==Dn)return void(me._isValid=!1);if(Dr[3]){for(Je=0,Ht=Fs;Je<Ht;Je++)if(ia[Je][1].exec(Dr[3])){ri=(Dr[2]||" ")+ia[Je][0];break}if(null==ri)return void(me._isValid=!1)}if(!rn&&null!=ri)return void(me._isValid=!1);if(Dr[4]){if(!Xs.exec(Dr[4]))return void(me._isValid=!1);Ai="Z"}me._f=Dn+(ri||"")+(Ai||""),Hi(me)}else me._isValid=!1}function Mt(me){var Je=parseInt(me,10);return Je<=49?2e3+Je:Je<=999?1900+Je:Je}function ss(me){var Ht,Je=Ea.exec(function Mr(me){return me.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}(me._i));if(Je){if(Ht=function jt(me,Je,Ht,or,Dr,rn){var Dn=[Mt(me),xt.indexOf(Je),parseInt(Ht,10),parseInt(or,10),parseInt(Dr,10)];return rn&&Dn.push(parseInt(rn,10)),Dn}(Je[4],Je[3],Je[2],Je[5],Je[6],Je[7]),!function Mn(me,Je,Ht){return!me||yn.indexOf(me)===new Date(Je[0],Je[1],Je[2]).getDay()||(H(Ht).weekdayMismatch=!0,Ht._isValid=!1,!1)}(Je[1],Ht,me))return;me._a=Ht,me._tzm=function ui(me,Je,Ht){if(me)return Ma[me];if(Je)return 0;var or=parseInt(Ht,10),Dr=or%100;return(or-Dr)/100*60+Dr}(Je[8],Je[9],Je[10]),me._d=gr.apply(null,me._a),me._d.setUTCMinutes(me._d.getUTCMinutes()-me._tzm),H(me).rfc2822=!0}else me._isValid=!1}function zs(me,Je,Ht){return me??Je??Ht}function sa(me){var Je,Ht,Dr,rn,Dn,or=[];if(!me._d){for(Dr=function Na(me){var Je=new Date(e.now());return me._useUTC?[Je.getUTCFullYear(),Je.getUTCMonth(),Je.getUTCDate()]:[Je.getFullYear(),Je.getMonth(),Je.getDate()]}(me),me._w&&null==me._a[2]&&null==me._a[1]&&function xn(me){var Je,Ht,or,Dr,rn,Dn,ri,Ai,ds;null!=(Je=me._w).GG||null!=Je.W||null!=Je.E?(rn=1,Dn=4,Ht=zs(Je.GG,me._a[0],fn(Si(),1,4).year),or=zs(Je.W,1),((Dr=zs(Je.E,1))<1||Dr>7)&&(Ai=!0)):(rn=me._locale._week.dow,Dn=me._locale._week.doy,ds=fn(Si(),rn,Dn),Ht=zs(Je.gg,me._a[0],ds.year),or=zs(Je.w,ds.week),null!=Je.d?((Dr=Je.d)<0||Dr>6)&&(Ai=!0):null!=Je.e?(Dr=Je.e+rn,(Je.e<0||Je.e>6)&&(Ai=!0)):Dr=rn),or<1||or>un(Ht,rn,Dn)?H(me)._overflowWeeks=!0:null!=Ai?H(me)._overflowWeekday=!0:(ri=Zr(Ht,or,Dr,rn,Dn),me._a[0]=ri.year,me._dayOfYear=ri.dayOfYear)}(me),null!=me._dayOfYear&&(Dn=zs(me._a[0],Dr[0]),(me._dayOfYear>De(Dn)||0===me._dayOfYear)&&(H(me)._overflowDayOfYear=!0),Ht=gr(Dn,0,me._dayOfYear),me._a[1]=Ht.getUTCMonth(),me._a[2]=Ht.getUTCDate()),Je=0;Je<3&&null==me._a[Je];++Je)me._a[Je]=or[Je]=Dr[Je];for(;Je<7;Je++)me._a[Je]=or[Je]=me._a[Je]??(2===Je?1:0);24===me._a[3]&&0===me._a[4]&&0===me._a[5]&&0===me._a[6]&&(me._nextDay=!0,me._a[3]=0),me._d=(me._useUTC?gr:yt).apply(null,or),rn=me._useUTC?me._d.getUTCDay():me._d.getDay(),null!=me._tzm&&me._d.setUTCMinutes(me._d.getUTCMinutes()-me._tzm),me._nextDay&&(me._a[3]=24),me._w&&typeof me._w.d<"u"&&me._w.d!==rn&&(H(me).weekdayMismatch=!0)}}function Hi(me){if(me._f!==e.ISO_8601)if(me._f!==e.RFC_2822){me._a=[],H(me).empty=!0;var Ht,or,Dr,rn,Dn,ds,Fs,Je=""+me._i,ri=Je.length,Ai=0;for(Fs=(Dr=Ze(me._f,me._locale).match(u)||[]).length,Ht=0;Ht<Fs;Ht++)(or=(Je.match(ct(rn=Dr[Ht],me))||[])[0])&&((Dn=Je.substr(0,Je.indexOf(or))).length>0&&H(me).unusedInput.push(Dn),Je=Je.slice(Je.indexOf(or)+or.length),Ai+=or.length),ae[rn]?(or?H(me).empty=!1:H(me).unusedTokens.push(rn),Jr(rn,or,me)):me._strict&&!or&&H(me).unusedTokens.push(rn);H(me).charsLeftOver=ri-Ai,Je.length>0&&H(me).unusedInput.push(Je),me._a[3]<=12&&!0===H(me).bigHour&&me._a[3]>0&&(H(me).bigHour=void 0),H(me).parsedDateParts=me._a.slice(0),H(me).meridiem=me._meridiem,me._a[3]=function Xa(me,Je,Ht){var or;return null==Ht?Je:null!=me.meridiemHour?me.meridiemHour(Je,Ht):(null!=me.isPM&&((or=me.isPM(Ht))&&Je<12&&(Je+=12),!or&&12===Je&&(Je=0)),Je)}(me._locale,me._a[3],me._meridiem),null!==(ds=H(me).era)&&(me._a[0]=me._locale.erasConvertYear(ds,me._a[0])),sa(me),ps(me)}else ss(me);else qt(me)}function wr(me){var Je=me._i,Ht=me._f;return me._locale=me._locale||$s(me._l),null===Je||void 0===Ht&&""===Je?D({nullInput:!0}):("string"==typeof Je&&(me._i=Je=me._locale.preparse(Je)),ie(Je)?new G(ps(Je)):(f(Je)?me._d=Je:h(Ht)?function rr(me){var Je,Ht,or,Dr,rn,Dn,ri=!1,Ai=me._f.length;if(0===Ai)return H(me).invalidFormat=!0,void(me._d=new Date(NaN));for(Dr=0;Dr<Ai;Dr++)rn=0,Dn=!1,Je=J({},me),null!=me._useUTC&&(Je._useUTC=me._useUTC),Je._f=me._f[Dr],Hi(Je),V(Je)&&(Dn=!0),rn+=H(Je).charsLeftOver,rn+=10*H(Je).unusedTokens.length,H(Je).score=rn,ri?rn<or&&(or=rn,Ht=Je):(null==or||rn<or||Dn)&&(or=rn,Ht=Je,Dn&&(ri=!0));N(me,Ht||Je)}(me):Ht?Hi(me):function On(me){var Je=me._i;g(Je)?me._d=new Date(e.now()):f(Je)?me._d=new Date(Je.valueOf()):"string"==typeof Je?function Ki(me){var Je=Qa.exec(me._i);null===Je?(qt(me),!1===me._isValid&&(delete me._isValid,ss(me),!1===me._isValid&&(delete me._isValid,me._strict?me._isValid=!1:e.createFromInputFallback(me)))):me._d=new Date(+Je[1])}(me):h(Je)?(me._a=C(Je.slice(0),function(Ht){return parseInt(Ht,10)}),sa(me)):r(Je)?function cn(me){if(!me._d){var Je=st(me._i);me._a=C([Je.year,Je.month,void 0===Je.day?Je.date:Je.day,Je.hour,Je.minute,Je.second,Je.millisecond],function(or){return or&&parseInt(or,10)}),sa(me)}}(me):p(Je)?me._d=new Date(Je):e.createFromInputFallback(me)}(me),V(me)||(me._d=null),me))}function Ci(me,Je,Ht,or,Dr){var rn={};return(!0===Je||!1===Je)&&(or=Je,Je=void 0),(!0===Ht||!1===Ht)&&(or=Ht,Ht=void 0),(r(me)&&y(me)||h(me)&&0===me.length)&&(me=void 0),rn._isAMomentObject=!0,rn._useUTC=rn._isUTC=Dr,rn._l=Ht,rn._i=me,rn._f=Je,rn._strict=or,function Qt(me){var Je=new G(ps(wr(me)));return Je._nextDay&&(Je.add(1,"d"),Je._nextDay=void 0),Je}(rn)}function Si(me,Je,Ht,or){return Ci(me,Je,Ht,or,!1)}e.createFromInputFallback=re("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(me){me._d=new Date(me._i+(me._useUTC?" UTC":""))}),e.ISO_8601=function(){},e.RFC_2822=function(){};var Cs=re("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var me=Si.apply(null,arguments);return this.isValid()&&me.isValid()?me<this?this:me:D()}),Gi=re("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var me=Si.apply(null,arguments);return this.isValid()&&me.isValid()?me>this?this:me:D()});function ha(me,Je){var Ht,or;if(1===Je.length&&h(Je[0])&&(Je=Je[0]),!Je.length)return Si();for(Ht=Je[0],or=1;or<Je.length;++or)(!Je[or].isValid()||Je[or][me](Ht))&&(Ht=Je[or]);return Ht}var Ca=["year","quarter","month","week","day","hour","minute","second","millisecond"];function eo(me){var Je=st(me),Ht=Je.year||0,or=Je.quarter||0,Dr=Je.month||0,rn=Je.week||Je.isoWeek||0,Dn=Je.day||0,ri=Je.hour||0,Ai=Je.minute||0,ds=Je.second||0,Fs=Je.millisecond||0;this._isValid=function Fa(me){var Je,or,Ht=!1,Dr=Ca.length;for(Je in me)if(d(me,Je)&&(-1===zt.call(Ca,Je)||null!=me[Je]&&isNaN(me[Je])))return!1;for(or=0;or<Dr;++or)if(me[Ca[or]]){if(Ht)return!1;parseFloat(me[Ca[or]])!==X(me[Ca[or]])&&(Ht=!0)}return!0}(Je),this._milliseconds=+Fs+1e3*ds+6e4*Ai+1e3*ri*60*60,this._days=+Dn+7*rn,this._months=+Dr+3*or+12*Ht,this._data={},this._locale=$s(),this._bubble()}function ea(me){return me instanceof eo}function Za(me){return me<0?-1*Math.round(-1*me):Math.round(me)}function Zo(me,Je){ye(me,0,0,function(){var Ht=this.utcOffset(),or="+";return Ht<0&&(Ht=-Ht,or="-"),or+Y(~~(Ht/60),2)+Je+Y(~~Ht%60,2)})}Zo("Z",":"),Zo("ZZ",""),ke("Z",Fe),ke("ZZ",Fe),Sr(["Z","ZZ"],function(me,Je,Ht){Ht._useUTC=!0,Ht._tzm=Eo(Fe,me)});var to=/([\+\-]|\d\d)/gi;function Eo(me,Je){var Dr,rn,Ht=(Je||"").match(me);return null===Ht?null:0===(rn=60*(Dr=((Ht[Ht.length-1]||[])+"").match(to)||["-",0,0])[1]+X(Dr[2]))?0:"+"===Dr[0]?rn:-rn}function Oo(me,Je){var Ht,or;return Je._isUTC?(Ht=Je.clone(),or=(ie(me)||f(me)?me.valueOf():Si(me).valueOf())-Ht.valueOf(),Ht._d.setTime(Ht._d.valueOf()+or),e.updateOffset(Ht,!1),Ht):Si(me).local()}function oo(me){return-Math.round(me._d.getTimezoneOffset())}function qo(){return!!this.isValid()&&this._isUTC&&0===this._offset}e.updateOffset=function(){};var Pu=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Jo=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ba(me,Je){var Dr,rn,Dn,Ht=me,or=null;return ea(me)?Ht={ms:me._milliseconds,d:me._days,M:me._months}:p(me)||!isNaN(+me)?(Ht={},Je?Ht[Je]=+me:Ht.milliseconds=+me):(or=Pu.exec(me))?(Dr="-"===or[1]?-1:1,Ht={y:0,d:X(or[2])*Dr,h:X(or[3])*Dr,m:X(or[4])*Dr,s:X(or[5])*Dr,ms:X(Za(1e3*or[6]))*Dr}):(or=Jo.exec(me))?Ht={y:lo(or[2],Dr="-"===or[1]?-1:1),M:lo(or[3],Dr),w:lo(or[4],Dr),d:lo(or[5],Dr),h:lo(or[6],Dr),m:lo(or[7],Dr),s:lo(or[8],Dr)}:null==Ht?Ht={}:"object"==typeof Ht&&("from"in Ht||"to"in Ht)&&(Dn=function $o(me,Je){var Ht;return me.isValid()&&Je.isValid()?(Je=Oo(Je,me),me.isBefore(Je)?Ht=ga(me,Je):((Ht=ga(Je,me)).milliseconds=-Ht.milliseconds,Ht.months=-Ht.months),Ht):{milliseconds:0,months:0}}(Si(Ht.from),Si(Ht.to)),(Ht={}).ms=Dn.milliseconds,Ht.M=Dn.months),rn=new eo(Ht),ea(me)&&d(me,"_locale")&&(rn._locale=me._locale),ea(me)&&d(me,"_isValid")&&(rn._isValid=me._isValid),rn}function lo(me,Je){var Ht=me&&parseFloat(me.replace(",","."));return(isNaN(Ht)?0:Ht)*Je}function ga(me,Je){var Ht={};return Ht.months=Je.month()-me.month()+12*(Je.year()-me.year()),me.clone().add(Ht.months,"M").isAfter(Je)&&--Ht.months,Ht.milliseconds=+Je-+me.clone().add(Ht.months,"M"),Ht}function ro(me,Je){return function(Ht,or){var rn;return null!==or&&!isNaN(+or)&&(B(Je,"moment()."+Je+"(period, number) is deprecated. Please use moment()."+Je+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),rn=Ht,Ht=or,or=rn),xa(this,Ba(Ht,or),me),this}}function xa(me,Je,Ht,or){var Dr=Je._milliseconds,rn=Za(Je._days),Dn=Za(Je._months);!me.isValid()||(or=or??!0,Dn&&Tn(me,Me(me,"Month")+Dn*Ht),rn&&We(me,"Date",Me(me,"Date")+rn*Ht),Dr&&me._d.setTime(me._d.valueOf()+Dr*Ht),or&&e.updateOffset(me,rn||Dn))}Ba.fn=eo.prototype,Ba.invalid=function So(){return Ba(NaN)};var ma=ro(1,"add"),wo=ro(-1,"subtract");function Qo(me){return"string"==typeof me||me instanceof String}function _t(me){return ie(me)||f(me)||Qo(me)||p(me)||function Nt(me){var Je=h(me),Ht=!1;return Je&&(Ht=0===me.filter(function(or){return!p(or)&&Qo(me)}).length),Je&&Ht}(me)||function ar(me){var Dr,Je=r(me)&&!y(me),Ht=!1,or=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],Dn=or.length;for(Dr=0;Dr<Dn;Dr+=1)Ht=Ht||d(me,or[Dr]);return Je&&Ht}(me)||null==me}function Er(me){var Dr,Je=r(me)&&!y(me),Ht=!1,or=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(Dr=0;Dr<or.length;Dr+=1)Ht=Ht||d(me,or[Dr]);return Je&&Ht}function Us(me,Je){if(me.date()<Je.date())return-Us(Je,me);var Ht=12*(Je.year()-me.year())+(Je.month()-me.month()),or=me.clone().add(Ht,"months");return-(Ht+(Je-or<0?(Je-or)/(or-me.clone().add(Ht-1,"months")):(Je-or)/(me.clone().add(Ht+1,"months")-or)))||0}function dl(me){var Je;return void 0===me?this._locale._abbr:(null!=(Je=$s(me))&&(this._locale=Je),this)}e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Ll=re("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(me){return void 0===me?this.localeData():this.locale(me)});function Tt(){return this._locale}var et=6e4,Wt=60*et,ir=3506328*Wt;function Pr(me,Je){return(me%Je+Je)%Je}function jr(me,Je,Ht){return me<100&&me>=0?new Date(me+400,Je,Ht)-ir:new Date(me,Je,Ht).valueOf()}function Xr(me,Je,Ht){return me<100&&me>=0?Date.UTC(me+400,Je,Ht)-ir:Date.UTC(me,Je,Ht)}function Hs(me,Je){return Je.erasAbbrRegex(me)}function Nl(){var Dr,rn,me=[],Je=[],Ht=[],or=[],Dn=this.eras();for(Dr=0,rn=Dn.length;Dr<rn;++Dr)Je.push($t(Dn[Dr].name)),me.push($t(Dn[Dr].abbr)),Ht.push($t(Dn[Dr].narrow)),or.push($t(Dn[Dr].name)),or.push($t(Dn[Dr].abbr)),or.push($t(Dn[Dr].narrow));this._erasRegex=new RegExp("^("+or.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+Je.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+me.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+Ht.join("|")+")","i")}function gl(me,Je){ye(0,[me,me.length],0,Je)}function os(me,Je,Ht,or,Dr){var rn;return null==me?fn(this,or,Dr).year:(Je>(rn=un(me,or,Dr))&&(Je=rn),Ji.call(this,me,Je,Ht,or,Dr))}function Ji(me,Je,Ht,or,Dr){var rn=Zr(me,Je,Ht,or,Dr),Dn=gr(rn.year,0,rn.dayOfYear);return this.year(Dn.getUTCFullYear()),this.month(Dn.getUTCMonth()),this.date(Dn.getUTCDate()),this}ye("N",0,0,"eraAbbr"),ye("NN",0,0,"eraAbbr"),ye("NNN",0,0,"eraAbbr"),ye("NNNN",0,0,"eraName"),ye("NNNNN",0,0,"eraNarrow"),ye("y",["y",1],"yo","eraYear"),ye("y",["yy",2],0,"eraYear"),ye("y",["yyy",3],0,"eraYear"),ye("y",["yyyy",4],0,"eraYear"),ke("N",Hs),ke("NN",Hs),ke("NNN",Hs),ke("NNNN",function pl(me,Je){return Je.erasNameRegex(me)}),ke("NNNNN",function oa(me,Je){return Je.erasNarrowRegex(me)}),Sr(["N","NN","NNN","NNNN","NNNNN"],function(me,Je,Ht,or){var Dr=Ht._locale.erasParse(me,or,Ht._strict);Dr?H(Ht).era=Dr:H(Ht).invalidEra=me}),ke("y",Ke),ke("yy",Ke),ke("yyy",Ke),ke("yyyy",Ke),ke("yo",function Lo(me,Je){return Je._eraYearOrdinalRegex||Ke}),Sr(["y","yy","yyy","yyyy"],0),Sr(["yo"],function(me,Je,Ht,or){var Dr;Ht._locale._eraYearOrdinalRegex&&(Dr=me.match(Ht._locale._eraYearOrdinalRegex)),Je[0]=Ht._locale.eraYearOrdinalParse?Ht._locale.eraYearOrdinalParse(me,Dr):parseInt(me,10)}),ye(0,["gg",2],0,function(){return this.weekYear()%100}),ye(0,["GG",2],0,function(){return this.isoWeekYear()%100}),gl("gggg","weekYear"),gl("ggggg","weekYear"),gl("GGGG","isoWeekYear"),gl("GGGGG","isoWeekYear"),br("weekYear","gg"),br("isoWeekYear","GG"),ot("weekYear",1),ot("isoWeekYear",1),ke("G",kt),ke("g",kt),ke("GG",hr,cr),ke("gg",hr,cr),ke("GGGG",He,gt),ke("gggg",He,gt),ke("GGGGG",tt,Ut),ke("ggggg",tt,Ut),Ar(["gggg","ggggg","GGGG","GGGGG"],function(me,Je,Ht,or){Je[or.substr(0,2)]=X(me)}),Ar(["gg","GG"],function(me,Je,Ht,or){Je[or]=e.parseTwoDigitYear(me)}),ye("Q",0,"Qo","quarter"),br("quarter","Q"),ot("quarter",7),ke("Q",Zt),Sr("Q",function(me,Je){Je[1]=3*(X(me)-1)}),ye("D",["DD",2],"Do","date"),br("date","D"),ot("date",9),ke("D",hr),ke("DD",hr,cr),ke("Do",function(me,Je){return me?Je._dayOfMonthOrdinalParse||Je._ordinalParse:Je._dayOfMonthOrdinalParseLenient}),Sr(["D","DD"],2),Sr("Do",function(me,Je){Je[2]=X(me.match(hr)[0])});var va=ge("Date",!0);ye("DDD",["DDDD",3],"DDDo","dayOfYear"),br("dayOfYear","DDD"),ot("dayOfYear",4),ke("DDD",Pt),ke("DDDD",wt),Sr(["DDD","DDDD"],function(me,Je,Ht){Ht._dayOfYear=X(me)}),ye("m",["mm",2],0,"minute"),br("minute","m"),ot("minute",14),ke("m",hr),ke("mm",hr,cr),Sr(["m","mm"],4);var Ka=ge("Minutes",!1);ye("s",["ss",2],0,"second"),br("second","s"),ot("second",15),ke("s",hr),ke("ss",hr,cr),Sr(["s","ss"],5);var Vs,Fl,ml=ge("Seconds",!1);for(ye("S",0,0,function(){return~~(this.millisecond()/100)}),ye(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),ye(0,["SSS",3],0,"millisecond"),ye(0,["SSSS",4],0,function(){return 10*this.millisecond()}),ye(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),ye(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),ye(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),ye(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),ye(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),br("millisecond","ms"),ot("millisecond",16),ke("S",Pt,Zt),ke("SS",Pt,cr),ke("SSS",Pt,wt),Vs="SSSS";Vs.length<=9;Vs+="S")ke(Vs,Ke);function Aa(me,Je){Je[6]=X(1e3*("0."+me))}for(Vs="S";Vs.length<=9;Vs+="S")Sr(Vs,Aa);Fl=ge("Milliseconds",!1),ye("z",0,0,"zoneAbbr"),ye("zz",0,0,"zoneName");var Gn=G.prototype;function uu(me){return me}Gn.add=ma,Gn.calendar=function Cn(me,Je){1===arguments.length&&(arguments[0]?_t(arguments[0])?(me=arguments[0],Je=void 0):Er(arguments[0])&&(Je=arguments[0],me=void 0):(me=void 0,Je=void 0));var Ht=me||Si(),or=Oo(Ht,this).startOf("day"),Dr=e.calendarFormat(this,or)||"sameElse",rn=Je&&(s(Je[Dr])?Je[Dr].call(this,Ht):Je[Dr]);return this.format(rn||this.localeData().calendar(Dr,this,Si(Ht)))},Gn.clone=function Nn(){return new G(this)},Gn.diff=function qi(me,Je,Ht){var or,Dr,rn;if(!this.isValid())return NaN;if(!(or=Oo(me,this)).isValid())return NaN;switch(Dr=6e4*(or.utcOffset()-this.utcOffset()),Je=rt(Je)){case"year":rn=Us(this,or)/12;break;case"month":rn=Us(this,or);break;case"quarter":rn=Us(this,or)/3;break;case"second":rn=(this-or)/1e3;break;case"minute":rn=(this-or)/6e4;break;case"hour":rn=(this-or)/36e5;break;case"day":rn=(this-or-Dr)/864e5;break;case"week":rn=(this-or-Dr)/6048e5;break;default:rn=this-or}return Ht?rn:Ne(rn)},Gn.endOf=function si(me){var Je,Ht;if(void 0===(me=rt(me))||"millisecond"===me||!this.isValid())return this;switch(Ht=this._isUTC?Xr:jr,me){case"year":Je=Ht(this.year()+1,0,1)-1;break;case"quarter":Je=Ht(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":Je=Ht(this.year(),this.month()+1,1)-1;break;case"week":Je=Ht(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":Je=Ht(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":Je=Ht(this.year(),this.month(),this.date()+1)-1;break;case"hour":Je=this._d.valueOf(),Je+=Wt-Pr(Je+(this._isUTC?0:this.utcOffset()*et),Wt)-1;break;case"minute":Je=this._d.valueOf(),Je+=et-Pr(Je,et)-1;break;case"second":Je=this._d.valueOf(),Je+=1e3-Pr(Je,1e3)-1}return this._d.setTime(Je),e.updateOffset(this,!0),this},Gn.format=function ra(me){me||(me=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var Je=At(this,me);return this.localeData().postformat(Je)},Gn.from=function no(me,Je){return this.isValid()&&(ie(me)&&me.isValid()||Si(me).isValid())?Ba({to:this,from:me}).locale(this.locale()).humanize(!Je):this.localeData().invalidDate()},Gn.fromNow=function bi(me){return this.from(Si(),me)},Gn.to=function ls(me,Je){return this.isValid()&&(ie(me)&&me.isValid()||Si(me).isValid())?Ba({from:this,to:me}).locale(this.locale()).humanize(!Je):this.localeData().invalidDate()},Gn.toNow=function cl(me){return this.to(Si(),me)},Gn.get=function Re(me){return s(this[me=rt(me)])?this[me]():this},Gn.invalidAt=function xi(){return H(this).overflow},Gn.isAfter=function ei(me,Je){var Ht=ie(me)?me:Si(me);return!(!this.isValid()||!Ht.isValid())&&("millisecond"===(Je=rt(Je)||"millisecond")?this.valueOf()>Ht.valueOf():Ht.valueOf()<this.clone().startOf(Je).valueOf())},Gn.isBefore=function ns(me,Je){var Ht=ie(me)?me:Si(me);return!(!this.isValid()||!Ht.isValid())&&("millisecond"===(Je=rt(Je)||"millisecond")?this.valueOf()<Ht.valueOf():this.clone().endOf(Je).valueOf()<Ht.valueOf())},Gn.isBetween=function gs(me,Je,Ht,or){var Dr=ie(me)?me:Si(me),rn=ie(Je)?Je:Si(Je);return!!(this.isValid()&&Dr.isValid()&&rn.isValid())&&("("===(or=or||"()")[0]?this.isAfter(Dr,Ht):!this.isBefore(Dr,Ht))&&(")"===or[1]?this.isBefore(rn,Ht):!this.isAfter(rn,Ht))},Gn.isSame=function as(me,Je){var or,Ht=ie(me)?me:Si(me);return!(!this.isValid()||!Ht.isValid())&&("millisecond"===(Je=rt(Je)||"millisecond")?this.valueOf()===Ht.valueOf():(or=Ht.valueOf(),this.clone().startOf(Je).valueOf()<=or&&or<=this.clone().endOf(Je).valueOf()))},Gn.isSameOrAfter=function Yi(me,Je){return this.isSame(me,Je)||this.isAfter(me,Je)},Gn.isSameOrBefore=function bs(me,Je){return this.isSame(me,Je)||this.isBefore(me,Je)},Gn.isValid=function Bi(){return V(this)},Gn.lang=Ll,Gn.locale=dl,Gn.localeData=Tt,Gn.max=Gi,Gn.min=Cs,Gn.parsingFlags=function xo(){return N({},H(this))},Gn.set=function pt(me,Je){if("object"==typeof me){var or,Ht=function nt(me){var Ht,Je=[];for(Ht in me)d(me,Ht)&&Je.push({unit:Ht,priority:Dt[Ht]});return Je.sort(function(or,Dr){return or.priority-Dr.priority}),Je}(me=st(me)),Dr=Ht.length;for(or=0;or<Dr;or++)this[Ht[or].unit](me[Ht[or].unit])}else if(s(this[me=rt(me)]))return this[me](Je);return this},Gn.startOf=function Ln(me){var Je,Ht;if(void 0===(me=rt(me))||"millisecond"===me||!this.isValid())return this;switch(Ht=this._isUTC?Xr:jr,me){case"year":Je=Ht(this.year(),0,1);break;case"quarter":Je=Ht(this.year(),this.month()-this.month()%3,1);break;case"month":Je=Ht(this.year(),this.month(),1);break;case"week":Je=Ht(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":Je=Ht(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":Je=Ht(this.year(),this.month(),this.date());break;case"hour":Je=this._d.valueOf(),Je-=Pr(Je+(this._isUTC?0:this.utcOffset()*et),Wt);break;case"minute":Je=this._d.valueOf(),Je-=Pr(Je,et);break;case"second":Je=this._d.valueOf(),Je-=Pr(Je,1e3)}return this._d.setTime(Je),e.updateOffset(this,!0),this},Gn.subtract=wo,Gn.toArray=function cs(){var me=this;return[me.year(),me.month(),me.date(),me.hour(),me.minute(),me.second(),me.millisecond()]},Gn.toObject=function Wi(){var me=this;return{years:me.year(),months:me.month(),date:me.date(),hours:me.hours(),minutes:me.minutes(),seconds:me.seconds(),milliseconds:me.milliseconds()}},Gn.toDate=function Ss(){return new Date(this.valueOf())},Gn.toISOString=function Rs(me){if(!this.isValid())return null;var Je=!0!==me,Ht=Je?this.clone().utc():this;return Ht.year()<0||Ht.year()>9999?At(Ht,Je?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):s(Date.prototype.toISOString)?Je?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",At(Ht,"Z")):At(Ht,Je?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Gn.inspect=function Ia(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var Ht,or,me="moment",Je="";return this.isLocal()||(me=0===this.utcOffset()?"moment.utc":"moment.parseZone",Je="Z"),Ht="["+me+'("]',or=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(Ht+or+"-MM-DD[T]HH:mm:ss.SSS"+Je+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(Gn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Gn.toJSON=function Zi(){return this.isValid()?this.toISOString():null},Gn.toString=function aa(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Gn.unix=function pi(){return Math.floor(this.valueOf()/1e3)},Gn.valueOf=function is(){return this._d.valueOf()-6e4*(this._offset||0)},Gn.creationData=function kl(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Gn.eraName=function ms(){var me,Je,Ht,or=this.localeData().eras();for(me=0,Je=or.length;me<Je;++me)if(Ht=this.clone().startOf("day").valueOf(),or[me].since<=Ht&&Ht<=or[me].until||or[me].until<=Ht&&Ht<=or[me].since)return or[me].name;return""},Gn.eraNarrow=function Ui(){var me,Je,Ht,or=this.localeData().eras();for(me=0,Je=or.length;me<Je;++me)if(Ht=this.clone().startOf("day").valueOf(),or[me].since<=Ht&&Ht<=or[me].until||or[me].until<=Ht&&Ht<=or[me].since)return or[me].narrow;return""},Gn.eraAbbr=function ba(){var me,Je,Ht,or=this.localeData().eras();for(me=0,Je=or.length;me<Je;++me)if(Ht=this.clone().startOf("day").valueOf(),or[me].since<=Ht&&Ht<=or[me].until||or[me].until<=Ht&&Ht<=or[me].since)return or[me].abbr;return""},Gn.eraYear=function gn(){var me,Je,Ht,or,Dr=this.localeData().eras();for(me=0,Je=Dr.length;me<Je;++me)if(Ht=Dr[me].since<=Dr[me].until?1:-1,or=this.clone().startOf("day").valueOf(),Dr[me].since<=or&&or<=Dr[me].until||Dr[me].until<=or&&or<=Dr[me].since)return(this.year()-e(Dr[me].since).year())*Ht+Dr[me].offset;return this.year()},Gn.year=ht,Gn.isLeapYear=function Vt(){return Yt(this.year())},Gn.weekYear=function $d(me){return os.call(this,me,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Gn.isoWeekYear=function Ac(me){return os.call(this,me,this.isoWeek(),this.isoWeekday(),1,4)},Gn.quarter=Gn.quarters=function Ru(me){return null==me?Math.ceil((this.month()+1)/3):this.month(3*(me-1)+this.month()%3)},Gn.month=sr,Gn.daysInMonth=function fr(){return kr(this.year(),this.month())},Gn.week=Gn.weeks=function pr(me){var Je=this.localeData().week(this);return null==me?Je:this.add(7*(me-Je),"d")},Gn.isoWeek=Gn.isoWeeks=function Or(me){var Je=fn(this,1,4).week;return null==me?Je:this.add(7*(me-Je),"d")},Gn.weeksInYear=function Ts(){var me=this.localeData()._week;return un(this.year(),me.dow,me.doy)},Gn.weeksInWeekYear=function Ou(){var me=this.localeData()._week;return un(this.weekYear(),me.dow,me.doy)},Gn.isoWeeksInYear=function lu(){return un(this.year(),1,4)},Gn.isoWeeksInISOWeekYear=function ad(){return un(this.isoWeekYear(),1,4)},Gn.date=va,Gn.day=Gn.days=function dn(me){if(!this.isValid())return null!=me?this:NaN;var Je=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=me?(me=function Wr(me,Je){return"string"!=typeof me?me:isNaN(me)?"number"==typeof(me=Je.weekdaysParse(me))?me:null:parseInt(me,10)}(me,this.localeData()),this.add(me-Je,"d")):Je},Gn.weekday=function bn(me){if(!this.isValid())return null!=me?this:NaN;var Je=(this.day()+7-this.localeData()._week.dow)%7;return null==me?Je:this.add(me-Je,"d")},Gn.isoWeekday=function Un(me){if(!this.isValid())return null!=me?this:NaN;if(null!=me){var Je=function sn(me,Je){return"string"==typeof me?Je.weekdaysParse(me)%7||7:isNaN(me)?null:me}(me,this.localeData());return this.day(this.day()%7?Je:Je-7)}return this.day()||7},Gn.dayOfYear=function uo(me){var Je=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==me?Je:this.add(me-Je,"d")},Gn.hour=Gn.hours=Qn,Gn.minute=Gn.minutes=Ka,Gn.second=Gn.seconds=ml,Gn.millisecond=Gn.milliseconds=Fl,Gn.utcOffset=function Mo(me,Je,Ht){var Dr,or=this._offset||0;if(!this.isValid())return null!=me?this:NaN;if(null!=me){if("string"==typeof me){if(null===(me=Eo(Fe,me)))return this}else Math.abs(me)<16&&!Ht&&(me*=60);return!this._isUTC&&Je&&(Dr=oo(this)),this._offset=me,this._isUTC=!0,null!=Dr&&this.add(Dr,"m"),or!==me&&(!Je||this._changeInProgress?xa(this,Ba(me-or,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?or:oo(this)},Gn.utc=function za(me){return this.utcOffset(0,me)},Gn.local=function Ro(me){return this._isUTC&&(this.utcOffset(0,me),this._isUTC=!1,me&&this.subtract(oo(this),"m")),this},Gn.parseZone=function mo(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var me=Eo(xe,this._i);null!=me?this.utcOffset(me):this.utcOffset(0,!0)}return this},Gn.hasAlignedHourOffset=function zo(me){return!!this.isValid()&&(me=me?Si(me).utcOffset():0,(this.utcOffset()-me)%60==0)},Gn.isDST=function Ko(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Gn.isLocal=function wa(){return!!this.isValid()&&!this._isUTC},Gn.isUtcOffset=function Ps(){return!!this.isValid()&&this._isUTC},Gn.isUtc=qo,Gn.isUTC=qo,Gn.zoneAbbr=function od(){return this._isUTC?"UTC":""},Gn.zoneName=function Lu(){return this._isUTC?"Coordinated Universal Time":""},Gn.dates=re("dates accessor is deprecated. Use date instead.",va),Gn.months=re("months accessor is deprecated. Use month instead",sr),Gn.years=re("years accessor is deprecated. Use year instead",ht),Gn.zone=re("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function go(me,Je){return null!=me?("string"!=typeof me&&(me=-me),this.utcOffset(me,Je),this):-this.utcOffset()}),Gn.isDSTShifted=re("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function ta(){if(!g(this._isDSTShifted))return this._isDSTShifted;var Je,me={};return J(me,this),(me=wr(me))._a?(Je=me._isUTC?a(me._a):Si(me._a),this._isDSTShifted=this.isValid()&&function To(me,Je,Ht){var Dn,or=Math.min(me.length,Je.length),Dr=Math.abs(me.length-Je.length),rn=0;for(Dn=0;Dn<or;Dn++)(Ht&&me[Dn]!==Je[Dn]||!Ht&&X(me[Dn])!==X(Je[Dn]))&&rn++;return rn+Dr}(me._a,Je.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var Xi=E.prototype;function tl(me,Je,Ht,or){var Dr=$s(),rn=a().set(or,Je);return Dr[Ht](rn,me)}function Bl(me,Je,Ht){if(p(me)&&(Je=me,me=void 0),me=me||"",null!=Je)return tl(me,Je,Ht,"month");var or,Dr=[];for(or=0;or<12;or++)Dr[or]=tl(me,or,Ht,"month");return Dr}function ko(me,Je,Ht,or){"boolean"==typeof me?(p(Je)&&(Ht=Je,Je=void 0),Je=Je||""):(Ht=Je=me,me=!1,p(Je)&&(Ht=Je,Je=void 0),Je=Je||"");var Dn,Dr=$s(),rn=me?Dr._week.dow:0,ri=[];if(null!=Ht)return tl(Je,(Ht+rn)%7,or,"day");for(Dn=0;Dn<7;Dn++)ri[Dn]=tl(Je,(Dn+rn)%7,or,"day");return ri}Xi.calendar=function $(me,Je,Ht){var or=this._calendar[me]||this._calendar.sameElse;return s(or)?or.call(Je,Ht):or},Xi.longDateFormat=function Be(me){var Je=this._longDateFormat[me],Ht=this._longDateFormat[me.toUpperCase()];return Je||!Ht?Je:(this._longDateFormat[me]=Ht.match(u).map(function(or){return"MMMM"===or||"MM"===or||"DD"===or||"dddd"===or?or.slice(1):or}).join(""),this._longDateFormat[me])},Xi.invalidDate=function _e(){return this._invalidDate},Xi.ordinal=function Te(me){return this._ordinal.replace("%d",me)},Xi.preparse=uu,Xi.postformat=uu,Xi.relativeTime=function ft(me,Je,Ht,or){var Dr=this._relativeTime[Ht];return s(Dr)?Dr(me,Je,Ht,or):Dr.replace(/%d/i,me)},Xi.pastFuture=function Ge(me,Je){var Ht=this._relativeTime[me>0?"future":"past"];return s(Ht)?Ht(Je):Ht.replace(/%s/i,Je)},Xi.set=function _(me){var Je,Ht;for(Ht in me)d(me,Ht)&&(s(Je=me[Ht])?this[Ht]=Je:this["_"+Ht]=Je);this._config=me,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Xi.eras=function vo(me,Je){var Ht,or,Dr,rn=this._eras||$s("en")._eras;for(Ht=0,or=rn.length;Ht<or;++Ht)switch("string"==typeof rn[Ht].since&&(Dr=e(rn[Ht].since).startOf("day"),rn[Ht].since=Dr.valueOf()),typeof rn[Ht].until){case"undefined":rn[Ht].until=1/0;break;case"string":Dr=e(rn[Ht].until).startOf("day").valueOf(),rn[Ht].until=Dr.valueOf()}return rn},Xi.erasParse=function fl(me,Je,Ht){var or,Dr,Dn,ri,Ai,rn=this.eras();for(me=me.toUpperCase(),or=0,Dr=rn.length;or<Dr;++or)if(Dn=rn[or].name.toUpperCase(),ri=rn[or].abbr.toUpperCase(),Ai=rn[or].narrow.toUpperCase(),Ht)switch(Je){case"N":case"NN":case"NNN":if(ri===me)return rn[or];break;case"NNNN":if(Dn===me)return rn[or];break;case"NNNNN":if(Ai===me)return rn[or]}else if([Dn,ri,Ai].indexOf(me)>=0)return rn[or]},Xi.erasConvertYear=function hl(me,Je){var Ht=me.since<=me.until?1:-1;return void 0===Je?e(me.since).year():e(me.since).year()+(Je-me.offset)*Ht},Xi.erasAbbrRegex=function Hr(me){return d(this,"_erasAbbrRegex")||Nl.call(this),me?this._erasAbbrRegex:this._erasRegex},Xi.erasNameRegex=function Xo(me){return d(this,"_erasNameRegex")||Nl.call(this),me?this._erasNameRegex:this._erasRegex},Xi.erasNarrowRegex=function ou(me){return d(this,"_erasNarrowRegex")||Nl.call(this),me?this._erasNarrowRegex:this._erasRegex},Xi.months=function Nr(me,Je){return me?h(this._months)?this._months[me.month()]:this._months[(this._months.isFormat||tr).test(Je)?"format":"standalone"][me.month()]:h(this._months)?this._months:this._months.standalone},Xi.monthsShort=function zr(me,Je){return me?h(this._monthsShort)?this._monthsShort[me.month()]:this._monthsShort[tr.test(Je)?"format":"standalone"][me.month()]:h(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Xi.monthsParse=function _n(me,Je,Ht){var or,Dr,rn;if(this._monthsParseExact)return hn.call(this,me,Je,Ht);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),or=0;or<12;or++){if(Dr=a([2e3,or]),Ht&&!this._longMonthsParse[or]&&(this._longMonthsParse[or]=new RegExp("^"+this.months(Dr,"").replace(".","")+"$","i"),this._shortMonthsParse[or]=new RegExp("^"+this.monthsShort(Dr,"").replace(".","")+"$","i")),!Ht&&!this._monthsParse[or]&&(rn="^"+this.months(Dr,"")+"|^"+this.monthsShort(Dr,""),this._monthsParse[or]=new RegExp(rn.replace(".",""),"i")),Ht&&"MMMM"===Je&&this._longMonthsParse[or].test(me))return or;if(Ht&&"MMM"===Je&&this._shortMonthsParse[or].test(me))return or;if(!Ht&&this._monthsParse[or].test(me))return or}},Xi.monthsRegex=function Qr(me){return this._monthsParseExact?(d(this,"_monthsRegex")||we.call(this),me?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=Ur),this._monthsStrictRegex&&me?this._monthsStrictRegex:this._monthsRegex)},Xi.monthsShortRegex=function Kt(me){return this._monthsParseExact?(d(this,"_monthsRegex")||we.call(this),me?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=Rr),this._monthsShortStrictRegex&&me?this._monthsShortStrictRegex:this._monthsShortRegex)},Xi.week=function Et(me){return fn(me,this._week.dow,this._week.doy).week},Xi.firstDayOfYear=function Bt(){return this._week.doy},Xi.firstDayOfWeek=function it(){return this._week.dow},Xi.weekdays=function ci(me,Je){var Ht=h(this._weekdays)?this._weekdays:this._weekdays[me&&!0!==me&&this._weekdays.isFormat.test(Je)?"format":"standalone"];return!0===me?En(Ht,this._week.dow):me?Ht[me.day()]:Ht},Xi.weekdaysMin=function _r(me){return!0===me?En(this._weekdaysMin,this._week.dow):me?this._weekdaysMin[me.day()]:this._weekdaysMin},Xi.weekdaysShort=function lr(me){return!0===me?En(this._weekdaysShort,this._week.dow):me?this._weekdaysShort[me.day()]:this._weekdaysShort},Xi.weekdaysParse=function xr(me,Je,Ht){var or,Dr,rn;if(this._weekdaysParseExact)return yr.call(this,me,Je,Ht);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),or=0;or<7;or++){if(Dr=a([2e3,1]).day(or),Ht&&!this._fullWeekdaysParse[or]&&(this._fullWeekdaysParse[or]=new RegExp("^"+this.weekdays(Dr,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[or]=new RegExp("^"+this.weekdaysShort(Dr,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[or]=new RegExp("^"+this.weekdaysMin(Dr,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[or]||(rn="^"+this.weekdays(Dr,"")+"|^"+this.weekdaysShort(Dr,"")+"|^"+this.weekdaysMin(Dr,""),this._weekdaysParse[or]=new RegExp(rn.replace(".",""),"i")),Ht&&"dddd"===Je&&this._fullWeekdaysParse[or].test(me))return or;if(Ht&&"ddd"===Je&&this._shortWeekdaysParse[or].test(me))return or;if(Ht&&"dd"===Je&&this._minWeekdaysParse[or].test(me))return or;if(!Ht&&this._weekdaysParse[or].test(me))return or}},Xi.weekdaysRegex=function Fn(me){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||ai.call(this),me?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=Kn),this._weekdaysStrictRegex&&me?this._weekdaysStrictRegex:this._weekdaysRegex)},Xi.weekdaysShortRegex=function Vn(me){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||ai.call(this),me?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=vi),this._weekdaysShortStrictRegex&&me?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Xi.weekdaysMinRegex=function zn(me){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||ai.call(this),me?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=li),this._weekdaysMinStrictRegex&&me?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Xi.isPM=function Pn(me){return"p"===(me+"").toLowerCase().charAt(0)},Xi.meridiem=function yi(me,Je,Ht){return me>11?Ht?"pm":"PM":Ht?"am":"AM"},ys("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(me){var Je=me%10;return me+(1===X(me%100/10)?"th":1===Je?"st":2===Je?"nd":3===Je?"rd":"th")}}),e.lang=re("moment.lang is deprecated. Use moment.locale instead.",ys),e.langData=re("moment.langData is deprecated. Use moment.localeData instead.",$s);var qa=Math.abs;function cu(me,Je,Ht,or){var Dr=Ba(Je,Ht);return me._milliseconds+=or*Dr._milliseconds,me._days+=or*Dr._days,me._months+=or*Dr._months,me._bubble()}function Fo(me){return me<0?Math.floor(me):Math.ceil(me)}function Nu(me){return 4800*me/146097}function Bo(me){return 146097*me/4800}function qs(me){return function(){return this.as(me)}}var lc=qs("ms"),Bu=qs("s"),_a=qs("m"),vl=qs("h"),rl=qs("d"),_l=qs("w"),du=qs("M"),fu=qs("Q"),hu=qs("y");function _o(me){return function(){return this.isValid()?this._data[me]:NaN}}var Uu=_o("milliseconds"),Io=_o("seconds"),pu=_o("minutes"),cc=_o("hours"),nl=_o("days"),Hu=_o("months"),Ul=_o("years");var Ha=Math.round,Ja={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function il(me,Je,Ht,or,Dr){return Dr.relativeTime(Je||1,!!Ht,me,or)}var Yu=Math.abs;function Yl(me){return(me>0)-(me<0)||+me}function gu(){if(!this.isValid())return this.localeData().invalidDate();var or,Dr,rn,Dn,Ai,ds,Fs,Ys,me=Yu(this._milliseconds)/1e3,Je=Yu(this._days),Ht=Yu(this._months),ri=this.asSeconds();return ri?(or=Ne(me/60),Dr=Ne(or/60),me%=60,or%=60,rn=Ne(Ht/12),Ht%=12,Dn=me?me.toFixed(3).replace(/\.?0+$/,""):"",Ai=ri<0?"-":"",ds=Yl(this._months)!==Yl(ri)?"-":"",Fs=Yl(this._days)!==Yl(ri)?"-":"",Ys=Yl(this._milliseconds)!==Yl(ri)?"-":"",Ai+"P"+(rn?ds+rn+"Y":"")+(Ht?ds+Ht+"M":"")+(Je?Fs+Je+"D":"")+(Dr||or||me?"T":"")+(Dr?Ys+Dr+"H":"")+(or?Ys+or+"M":"")+(me?Ys+Dn+"S":"")):"P0D"}var us=eo.prototype;return us.isValid=function Rl(){return this._isValid},us.abs=function No(){var me=this._data;return this._milliseconds=qa(this._milliseconds),this._days=qa(this._days),this._months=qa(this._months),me.milliseconds=qa(me.milliseconds),me.seconds=qa(me.seconds),me.minutes=qa(me.minutes),me.hours=qa(me.hours),me.months=qa(me.months),me.years=qa(me.years),this},us.add=function ji(me,Je){return cu(this,me,Je,1)},us.subtract=function Ua(me,Je){return cu(this,me,Je,-1)},us.as=function Fu(me){if(!this.isValid())return NaN;var Je,Ht,or=this._milliseconds;if("month"===(me=rt(me))||"quarter"===me||"year"===me)switch(Je=this._days+or/864e5,Ht=this._months+Nu(Je),me){case"month":return Ht;case"quarter":return Ht/3;case"year":return Ht/12}else switch(Je=this._days+Math.round(Bo(this._months)),me){case"week":return Je/7+or/6048e5;case"day":return Je+or/864e5;case"hour":return 24*Je+or/36e5;case"minute":return 1440*Je+or/6e4;case"second":return 86400*Je+or/1e3;case"millisecond":return Math.floor(864e5*Je)+or;default:throw new Error("Unknown unit "+me)}},us.asMilliseconds=lc,us.asSeconds=Bu,us.asMinutes=_a,us.asHours=vl,us.asDays=rl,us.asWeeks=_l,us.asMonths=du,us.asQuarters=fu,us.asYears=hu,us.valueOf=function Ks(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*X(this._months/12):NaN},us._bubble=function Vi(){var Dr,rn,Dn,ri,Ai,me=this._milliseconds,Je=this._days,Ht=this._months,or=this._data;return me>=0&&Je>=0&&Ht>=0||me<=0&&Je<=0&&Ht<=0||(me+=864e5*Fo(Bo(Ht)+Je),Je=0,Ht=0),or.milliseconds=me%1e3,Dr=Ne(me/1e3),or.seconds=Dr%60,rn=Ne(Dr/60),or.minutes=rn%60,Dn=Ne(rn/60),or.hours=Dn%24,Je+=Ne(Dn/24),Ht+=Ai=Ne(Nu(Je)),Je-=Fo(Bo(Ai)),ri=Ne(Ht/12),Ht%=12,or.days=Je,or.months=Ht,or.years=ri,this},us.clone=function uc(){return Ba(this)},us.get=function Uo(me){return me=rt(me),this.isValid()?this[me+"s"]():NaN},us.milliseconds=Uu,us.seconds=Io,us.minutes=pu,us.hours=cc,us.days=nl,us.weeks=function dc(){return Ne(this.days()/7)},us.months=Hu,us.years=Ul,us.humanize=function fc(me,Je){if(!this.isValid())return this.localeData().invalidDate();var Dr,rn,Ht=!1,or=Ja;return"object"==typeof me&&(Je=me,me=!1),"boolean"==typeof me&&(Ht=me),"object"==typeof Je&&(or=Object.assign({},Ja,Je),null!=Je.s&&null==Je.ss&&(or.ss=Je.s-1)),rn=function Hl(me,Je,Ht,or){var Dr=Ba(me).abs(),rn=Ha(Dr.as("s")),Dn=Ha(Dr.as("m")),ri=Ha(Dr.as("h")),Ai=Ha(Dr.as("d")),ds=Ha(Dr.as("M")),Fs=Ha(Dr.as("w")),Ys=Ha(Dr.as("y")),co=rn<=Ht.ss&&["s",rn]||rn<Ht.s&&["ss",rn]||Dn<=1&&["m"]||Dn<Ht.m&&["mm",Dn]||ri<=1&&["h"]||ri<Ht.h&&["hh",ri]||Ai<=1&&["d"]||Ai<Ht.d&&["dd",Ai];return null!=Ht.w&&(co=co||Fs<=1&&["w"]||Fs<Ht.w&&["ww",Fs]),(co=co||ds<=1&&["M"]||ds<Ht.M&&["MM",ds]||Ys<=1&&["y"]||["yy",Ys])[2]=Je,co[3]=+me>0,co[4]=or,il.apply(null,co)}(this,!Ht,or,Dr=this.localeData()),Ht&&(rn=Dr.pastFuture(+this,rn)),Dr.postformat(rn)},us.toISOString=gu,us.toString=gu,us.toJSON=gu,us.locale=dl,us.localeData=Tt,us.toIsoString=re("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",gu),us.lang=Ll,ye("X",0,0,"unix"),ye("x",0,0,"valueOf"),ke("x",kt),ke("X",/[+-]?\d+(\.\d{1,3})?/),Sr("X",function(me,Je,Ht){Ht._d=new Date(1e3*parseFloat(me))}),Sr("x",function(me,Je,Ht){Ht._d=new Date(X(me))}),e.version="2.29.4",function l(me){t=me}(Si),e.fn=Gn,e.min=function As(){return ha("isBefore",[].slice.call(arguments,0))},e.max=function ao(){return ha("isAfter",[].slice.call(arguments,0))},e.now=function(){return Date.now?Date.now():+new Date},e.utc=a,e.unix=function el(me){return Si(1e3*me)},e.months=function ld(me,Je){return Bl(me,Je,"months")},e.isDate=f,e.locale=ys,e.invalid=D,e.duration=Ba,e.isMoment=ie,e.weekdays=function oc(me,Je,Ht){return ko(me,Je,Ht,"weekdays")},e.parseZone=function Da(){return Si.apply(null,arguments).parseZone()},e.localeData=$s,e.isDuration=ea,e.monthsShort=function ud(me,Je){return Bl(me,Je,"monthsShort")},e.weekdaysMin=function ku(me,Je,Ht){return ko(me,Je,Ht,"weekdaysMin")},e.defineLocale=rs,e.updateLocale=function fa(me,Je){if(null!=Je){var Ht,or,Dr=oi;null!=di[me]&&null!=di[me].parentLocale?di[me].set(w(di[me]._config,Je)):(null!=(or=Os(me))&&(Dr=or._config),Je=w(Dr,Je),null==or&&(Je.abbr=me),(Ht=new E(Je)).parentLocale=di[me],di[me]=Ht),ys(me)}else null!=di[me]&&(null!=di[me].parentLocale?(di[me]=di[me].parentLocale,me===ys()&&ys(me)):null!=di[me]&&delete di[me]);return di[me]},e.locales=function Zs(){return x(di)},e.weekdaysShort=function Ns(me,Je,Ht){return ko(me,Je,Ht,"weekdaysShort")},e.normalizeUnits=rt,e.relativeTimeRounding=function Vl(me){return void 0===me?Ha:"function"==typeof me&&(Ha=me,!0)},e.relativeTimeThreshold=function Vu(me,Je){return void 0!==Ja[me]&&(void 0===Je?Ja[me]:(Ja[me]=Je,"s"===me&&(Ja.ss=Je-1),!0))},e.calendarFormat=function qr(me,Je){var Ht=me.diff(Je,"days",!0);return Ht<-6?"sameElse":Ht<-1?"lastWeek":Ht<0?"lastDay":Ht<1?"sameDay":Ht<2?"nextDay":Ht<7?"nextWeek":"sameElse"},e.prototype=Gn,e.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},e}()},97162:(M,b,n)=>{"use strict";n.d(b,{Lr:()=>_e,_h:()=>nt});var t=n(94650),e=n(24006),l=n(36895),h=n(49840);const d=["container"],y=["dayCalendar"],g=["monthCalendar"],p=["daytimeCalendar"],f=["timeSelect"];function C(Yt,Ne){if(1&Yt){const X=t.EpF();t.TgZ(0,"dp-day-calendar",8,9),t.NdJ("onSelect",function(Me){return t.CHM(X),t.oxw().dateSelected(Me,"day")})("onGoToCurrent",function(){return t.CHM(X),t.oxw().onGoToCurrent.emit()})("onLeftNav",function(Me){return t.CHM(X),t.oxw().onLeftNavClick(Me)})("onRightNav",function(Me){return t.CHM(X),t.oxw().onRightNavClick(Me)}),t.qZA()}if(2&Yt){const X=t.oxw();t.Q6J("config",X.dayCalendarConfig)("ngModel",X._selected)("displayDate",X.displayDate)("theme",X.theme)}}function N(Yt,Ne){if(1&Yt){const X=t.EpF();t.TgZ(0,"dp-month-calendar",8,10),t.NdJ("onSelect",function(Me){return t.CHM(X),t.oxw().dateSelected(Me,"month")})("onGoToCurrent",function(){return t.CHM(X),t.oxw().onGoToCurrent.emit()})("onLeftNav",function(Me){return t.CHM(X),t.oxw().onLeftNavClick(Me)})("onRightNav",function(Me){return t.CHM(X),t.oxw().onRightNavClick(Me)}),t.qZA()}if(2&Yt){const X=t.oxw();t.Q6J("config",X.dayCalendarConfig)("ngModel",X._selected)("displayDate",X.displayDate)("theme",X.theme)}}function a(Yt,Ne){if(1&Yt){const X=t.EpF();t.TgZ(0,"dp-time-select",11,12),t.NdJ("onChange",function(Me){return t.CHM(X),t.oxw().dateSelected(Me,"second",!0)}),t.qZA()}if(2&Yt){const X=t.oxw();t.Q6J("config",X.timeSelectConfig)("ngModel",X._selected&&X._selected[0])("theme",X.theme)}}function O(Yt,Ne){if(1&Yt){const X=t.EpF();t.TgZ(0,"dp-day-time-calendar",13,14),t.NdJ("onChange",function(Me){return t.CHM(X),t.oxw().dateSelected(Me,"second",!0)})("onGoToCurrent",function(){return t.CHM(X),t.oxw().onGoToCurrent.emit()})("onLeftNav",function(Me){return t.CHM(X),t.oxw().onLeftNavClick(Me)})("onRightNav",function(Me){return t.CHM(X),t.oxw().onRightNavClick(Me)}),t.qZA()}if(2&Yt){const X=t.oxw();t.Q6J("config",X.dayTimeCalendarConfig)("displayDate",X.displayDate)("ngModel",X._selected&&X._selected[0])("theme",X.theme)}}const H=function(Yt){return{"dp-open":Yt}};function F(Yt,Ne){if(1&Yt&&t._UZ(0,"span",8),2&Yt){const X=Ne.$implicit,ge=t.oxw(2);t.Q6J("innerText",ge.getWeekdayName(X))}}function V(Yt,Ne){if(1&Yt&&t._UZ(0,"span",12),2&Yt){const X=t.oxw().$implicit;t.Q6J("innerText",X[0].date.isoWeek())}}function D(Yt,Ne){if(1&Yt){const X=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){const We=t.CHM(X).$implicit;return t.oxw(3).dayClicked(We)}),t.qZA()}if(2&Yt){const X=Ne.$implicit,ge=t.oxw(3);t.Q6J("disabled",X.disabled)("ngClass",ge.getDayBtnCssClass(X))("innerText",ge.getDayBtnText(X)),t.uIk("data-date",X.date.format(ge.componentConfig.format))}}function U(Yt,Ne){if(1&Yt&&(t.TgZ(0,"div",9),t.YNc(1,V,1,1,"span",10),t.YNc(2,D,1,4,"button",11),t.qZA()),2&Yt){const X=Ne.$implicit,ge=t.oxw(2);t.xp6(1),t.Q6J("ngIf",ge.componentConfig.showWeekNumbers),t.xp6(1),t.Q6J("ngForOf",X)}}const q=function(Yt,Ne){return{"dp-hide-near-month":Yt,rtl:Ne}};function J(Yt,Ne){if(1&Yt){const X=t.EpF();t.TgZ(0,"div",2)(1,"dp-calendar-nav",3),t.NdJ("onLeftNav",function(){return t.CHM(X),t.oxw().onLeftNavClick()})("onRightNav",function(){return t.CHM(X),t.oxw().onRightNavClick()})("onLabelClick",function(){t.CHM(X);const Me=t.oxw();return Me.toggleCalendarMode(Me.CalendarMode.Month)})("onGoToCurrent",function(){return t.CHM(X),t.oxw().goToCurrent()}),t.qZA(),t.TgZ(2,"div",4)(3,"div",5),t.YNc(4,F,1,1,"span",6),t.qZA(),t.YNc(5,U,3,2,"div",7),t.qZA()()}if(2&Yt){const X=t.oxw();t.xp6(1),t.Q6J("label",X.navLabel)("showLeftNav",X.showLeftNav)("showRightNav",X.showRightNav)("isLabelClickable",X.componentConfig.enableMonthSelector)("showGoToCurrent",X._shouldShowCurrent)("theme",X.theme),t.xp6(1),t.Q6J("ngClass",t.WLB(9,q,!X.componentConfig.showNearMonthDays,X.isFarsi())),t.xp6(2),t.Q6J("ngForOf",X.weekdays),t.xp6(1),t.Q6J("ngForOf",X.weeks)}}function G(Yt,Ne){if(1&Yt){const X=t.EpF();t.TgZ(0,"dp-month-calendar",14),t.NdJ("onSelect",function(Me){return t.CHM(X),t.oxw().monthSelected(Me)})("onNavHeaderBtnClick",function(){t.CHM(X);const Me=t.oxw();return Me.toggleCalendarMode(Me.CalendarMode.Day)})("onLeftNav",function(Me){return t.CHM(X),t.oxw().onMonthCalendarLeftClick(Me)})("onRightNav",function(Me){return t.CHM(X),t.oxw().onMonthCalendarRightClick(Me)})("onLeftSecondaryNav",function(Me){return t.CHM(X),t.oxw().onMonthCalendarSecondaryLeftClick(Me)})("onRightSecondaryNav",function(Me){return t.CHM(X),t.oxw().onMonthCalendarSecondaryRightClick(Me)}),t.qZA()}if(2&Yt){const X=t.oxw();t.Q6J("config",X.monthCalendarConfig)("displayDate",X._currentDateView)("theme",X.theme)}}function ie(Yt,Ne){if(1&Yt){const X=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){const We=t.CHM(X).$implicit;return t.oxw(2).monthClicked(We)}),t.qZA()}if(2&Yt){const X=Ne.$implicit,ge=t.oxw(2);t.Q6J("disabled",X.disabled)("ngClass",ge.getMonthBtnCssClass(X))("innerText",X.text),t.uIk("data-date",X.date.format(ge.componentConfig.format))}}function K(Yt,Ne){if(1&Yt&&(t.TgZ(0,"div",4),t.YNc(1,ie,1,4,"button",5),t.qZA()),2&Yt){const X=Ne.$implicit;t.xp6(1),t.Q6J("ngForOf",X)}}const re=function(Yt){return{rtl:Yt}};function oe(Yt,Ne){if(1&Yt){const X=t.EpF();t.ynx(0),t._UZ(1,"li",5),t.TgZ(2,"li",10)(3,"button",2),t.NdJ("click",function(){return t.CHM(X),t.oxw().increase("second")}),t.qZA(),t._UZ(4,"span",11),t.TgZ(5,"button",4),t.NdJ("click",function(){return t.CHM(X),t.oxw().decrease("second")}),t.qZA()(),t.BQk()}if(2&Yt){const X=t.oxw();t.xp6(1),t.Q6J("innerText",X.componentConfig.timeSeparator),t.xp6(2),t.Q6J("disabled",!X.showIncSecond),t.xp6(1),t.Q6J("innerText",X.seconds),t.xp6(1),t.Q6J("disabled",!X.showDecSecond)}}function B(Yt,Ne){if(1&Yt){const X=t.EpF();t.TgZ(0,"li",12)(1,"button",2),t.NdJ("click",function(){return t.CHM(X),t.oxw().toggleMeridiem()}),t.qZA(),t._UZ(2,"span",13),t.TgZ(3,"button",4),t.NdJ("click",function(){return t.CHM(X),t.oxw().toggleMeridiem()}),t.qZA()()}if(2&Yt){const X=t.oxw();t.xp6(1),t.Q6J("disabled",!X.showToggleMeridiem),t.xp6(1),t.Q6J("innerText",X.meridiem),t.xp6(1),t.Q6J("disabled",!X.showToggleMeridiem)}}function s(Yt,Ne){if(1&Yt){const X=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){return t.CHM(X),t.oxw().leftSecondaryNavClicked()}),t.qZA()}if(2&Yt){const X=t.oxw();t.Q6J("disabled",X.leftSecondaryNavDisabled)}}function _(Yt,Ne){if(1&Yt){const X=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){return t.CHM(X),t.oxw().onGoToCurrent.emit()}),t.qZA()}}function w(Yt,Ne){if(1&Yt){const X=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){return t.CHM(X),t.oxw().rightSecondaryNavClicked()}),t.qZA()}if(2&Yt){const X=t.oxw();t.Q6J("disabled",X.rightSecondaryNavDisabled)}}let E={Day:0,DayTime:1,Month:2,Time:3};E[E.Day]="Day",E[E.DayTime]="DayTime",E[E.Month]="Month",E[E.Time]="Time";let x={Moment:1,MomentArr:2,String:3,StringArr:4};x[x.Moment]="Moment",x[x.MomentArr]="MomentArr",x[x.String]="String",x[x.StringArr]="StringArr";let j=(()=>{class Yt{static setYAxisPosition(X,ge,Me,We){const Re=Me.getBoundingClientRect(),pt=ge.getBoundingClientRect();X.style.top="down"===We?Re.bottom-pt.top+1+"px":Re.top-pt.top-1-X.scrollHeight+"px"}static setXAxisPosition(X,ge,Me,We,Re){const pt=Me.getBoundingClientRect(),Zt=ge.getBoundingClientRect(),cr=pt.left-Zt.left;X.style.left="right"===Re?cr+"px":cr-We.offsetWidth+Me.offsetWidth+"px"}static isTopInView(X){const{top:ge}=X.getBoundingClientRect();return ge>=0}static isBottomInView(X){const{bottom:ge}=X.getBoundingClientRect();return ge<=window.innerHeight}static isLeftInView(X){const{left:ge}=X.getBoundingClientRect();return ge>=0}static isRightInView(X){const{right:ge}=X.getBoundingClientRect();return ge<=window.innerWidth}appendElementToPosition(X){const{container:ge,element:Me}=X;(!ge.style.position||"static"===ge.style.position)&&(ge.style.position="relative"),"absolute"!==Me.style.position&&(Me.style.position="absolute"),Me.style.visibility="hidden",setTimeout(()=>{this.setElementPosition(X),Me.style.visibility="visible"})}setElementPosition({element:X,container:ge,anchor:Me,dimElem:We,drops:Re,opens:pt}){Yt.setYAxisPosition(X,ge,Me,"down"),Yt.setXAxisPosition(X,ge,Me,We,"right"),"down"!==Re&&"up"!==Re?Yt.isBottomInView(We)?Yt.setYAxisPosition(X,ge,Me,"down"):Yt.isTopInView(We)&&Yt.setYAxisPosition(X,ge,Me,"up"):Yt.setYAxisPosition(X,ge,Me,Re),"left"!==pt&&"right"!==pt?Yt.isRightInView(We)?Yt.setXAxisPosition(X,ge,Me,We,"right"):Yt.isLeftInView(We)&&Yt.setXAxisPosition(X,ge,Me,We,"left"):Yt.setXAxisPosition(X,ge,Me,We,pt)}}return Yt.\u0275fac=function(X){return new(X||Yt)},Yt.\u0275prov=t.Yz7({token:Yt,factory:Yt.\u0275fac}),Yt})();const $=h;let Y=(()=>{class Yt{static debounce(X,ge){let Me;return function(){const We=this,Re=arguments;Me=clearTimeout(Me),setTimeout(()=>{X.apply(We,Re)},ge)}}createArray(X){return new Array(X).fill(1)}convertToMoment(X,ge,Me){let We;return We=X?"string"==typeof X?$(X,ge):X.clone():null,We&&Me&&We.locale(Me),We}isDateValid(X,ge,Me){return""===X||$(X,ge,!0).isValid()}getDefaultDisplayDate(X,ge,Me,We,Re){let pt=$();return X?pt=X.clone():We&&We.isAfter($())?pt=We.clone():Me?ge&&ge[ge.length]&&(pt=ge[ge.length].clone()):ge&&ge[0]&&(pt=ge[0].clone()),Re&&pt.locale(Re),pt}getInputType(X,ge){if(Array.isArray(X)){if(!X.length)return x.MomentArr;if("string"==typeof X[0])return x.StringArr;if($.isMoment(X[0]))return x.MomentArr}else{if("string"==typeof X)return x.String;if($.isMoment(X))return x.Moment}return ge?x.MomentArr:x.Moment}convertToMomentArray(X,ge,Me,We){switch(this.getInputType(X,Me)){case x.String:return X?[$(X,ge,!0).locale(We)]:[];case x.StringArr:return X.map(Re=>Re?$(Re,ge,!0).locale(We):null).filter(Boolean);case x.Moment:return X?[X.clone().locale(We)]:[];case x.MomentArr:return(X||[]).map(Re=>Re.clone().locale(We));default:return[]}}convertFromMomentArray(X,ge,Me,We){switch(Me){case x.String:return ge[0]&&ge[0].locale(We).format(X);case x.StringArr:return ge.filter(Boolean).map(Re=>Re.locale(We).format(X));case x.Moment:return ge[0]?ge[0].clone().locale(We):ge[0];case x.MomentArr:return ge&&ge.map(Re=>Re.clone().locale(We));default:return ge}}convertToString(X,ge,Me){let We;if("string"==typeof X)We=[X];else if(Array.isArray(X))We=X.length?X.map(Re=>this.convertToMoment(Re,ge,Me).format(ge)):X;else{if(!$.isMoment(X))return"";We=[X.format(ge)]}return We.filter(Boolean).join(" | ")}clearUndefined(X){return X&&(Object.keys(X).forEach(ge=>void 0===X[ge]&&delete X[ge]),X)}updateSelected(X,ge,Me,We="day"){const Re=!Me.selected;return X?Re?ge.concat([Me.date]):ge.filter(pt=>!pt.isSame(Me.date,We)):Re?[Me.date]:[]}closestParent(X,ge){return X?X.querySelector(ge)||this.closestParent(X.parentElement,ge):void 0}onlyTime(X){return X&&$.isMoment(X)&&$(X.format("HH:mm:ss"),"HH:mm:ss")}granularityFromType(X){switch(X){case"time":case"daytime":return"second";default:return X}}createValidator({minDate:X,maxDate:ge,minTime:Me,maxTime:We},Re,pt,Zt){let cr,wt;const gt=[],Ut=this.granularityFromType(pt);if(X){const hr=this.convertToMoment(X,Re,Zt);gt.push({key:"minDate",isValid:()=>{const Cr=wt.every(Ue=>Ue.isSameOrAfter(hr,Ut));return cr=!!cr&&Cr,Cr}})}if(ge){const hr=this.convertToMoment(ge,Re,Zt);gt.push({key:"maxDate",isValid:()=>{const Cr=wt.every(Ue=>Ue.isSameOrBefore(hr,Ut));return cr=!!cr&&Cr,Cr}})}if(Me){const hr=this.onlyTime(this.convertToMoment(Me,Re,Zt));gt.push({key:"minTime",isValid:()=>{const Cr=wt.every(Ue=>this.onlyTime(Ue).isSameOrAfter(hr));return cr=!!cr&&Cr,Cr}})}if(We){const hr=this.onlyTime(this.convertToMoment(We,Re,Zt));gt.push({key:"maxTime",isValid:()=>{const Cr=wt.every(Ue=>this.onlyTime(Ue).isSameOrBefore(hr));return cr=!!cr&&Cr,Cr}})}return hr=>{if(cr=!0,wt=this.convertToMomentArray(hr,Re,!0,Zt).filter(Boolean),!wt.every(Ue=>Ue.isValid()))return{format:{given:hr}};const Cr=gt.reduce((Ue,Pt)=>(Pt.isValid()||(Ue[Pt.key]={given:wt}),Ue),{});return cr?null:Cr}}datesStringToStringArray(X){return(X||"").split("|").map(ge=>ge.trim()).filter(Boolean)}getValidMomentArray(X,ge,Me){return this.datesStringToStringArray(X).filter(We=>this.isDateValid(We,ge,Me)).map(We=>$(We,ge))}shouldShowCurrent(X,ge,Me,We){return X&&"time"!==ge&&this.isDateInRange($(),Me,We)}isDateInRange(X,ge,Me){return X.isBetween(ge,Me,"day","[]")}convertPropsToMoment(X,ge,Me,We){Me.forEach(Re=>{X.hasOwnProperty(Re)&&(X[Re]=this.convertToMoment(X[Re],ge,We))})}shouldResetCurrentView(X,ge){return!(!X||!ge||!(!X.min&&ge.min||X.min&&ge.min&&!X.min.isSame(ge.min,"d")||!X.max&&ge.max)&&(!X.max||!ge.max||X.max.isSame(ge.max,"d")))}getNativeElement(X){return X?"string"==typeof X?document.querySelector(X):X:null}}return Yt.\u0275fac=function(X){return new(X||Yt)},Yt.\u0275prov=t.Yz7({token:Yt,factory:Yt.\u0275fac}),Yt})();const u=h;let W=(()=>{class Yt{constructor(X){this.utilsService=X,this.DAYS=["su","mo","tu","we","th","fr","sa"],this.DEFAULT_CONFIG={showNearMonthDays:!0,showWeekNumbers:!1,firstDayOfWeek:"sa",weekDayFormat:"dd",format:"YYYY/M/D",monthFormat:"MMMM YY",dayBtnFormat:"D",allowMultiSelect:!1,enableMonthSelector:!0,locale:"fa"},this.GREGORIAN_CONFIG_EXTENTION={firstDayOfWeek:"su",weekDayFormat:"ddd",format:"DD-MM-YYYY",monthFormat:"MMM, YYYY",locale:"en",dayBtnFormat:"DD",unSelectOnClick:!0}}removeNearMonthWeeks(X,ge){return ge[ge.length-1].find(Me=>Me.date.isSame(X,"month"))?ge:ge.slice(0,-1)}getConfig(X){const ge=Object.assign({},this.DEFAULT_CONFIG,X&&X.locale&&"fa"!==X.locale?this.GREGORIAN_CONFIG_EXTENTION:{},this.utilsService.clearUndefined(X));return this.utilsService.convertPropsToMoment(ge,ge.format,["min","max"],ge.locale),ge}generateDaysMap(X){const ge=this.DAYS.indexOf(X);return this.DAYS.slice(ge,7).concat(this.DAYS.slice(0,ge)).reduce((We,Re,pt)=>(We[Re]=pt,We),{})}generateMonthArray(X,ge,Me){let We=[];const Re=this.DAYS.indexOf(X.firstDayOfWeek),pt=ge.clone().startOf("month");for(let hr=0;hr<8&&pt.day()!==Re;hr++)if(pt.subtract(1,"day"),7===hr)throw new Error("first day of Board has set Wrong");const Zt=pt.clone(),cr=ge.clone().subtract(1,"month"),wt=ge.clone().add(1,"month"),gt=u();return this.utilsService.createArray(42).reduce(hr=>(hr.push({date:Zt.clone(),selected:!!Me.find(Cr=>Zt.isSame(Cr,"day")),currentMonth:Zt.isSame(ge,"month"),prevMonth:Zt.isSame(cr,"month"),nextMonth:Zt.isSame(wt,"month"),currentDay:Zt.isSame(gt,"day"),disabled:this.isDateDisabled(Zt,X)}),Zt.add(1,"day"),"00"!==Zt.format("HH")&&(Zt.startOf("day"),hr[hr.length-1].date.format("DD")===Zt.format("DD")&&Zt.add(1,"day")),hr),[]).forEach((hr,Cr)=>{const Ue=Math.floor(Cr/7);We[Ue]||We.push([]),We[Ue].push(hr)}),X.showNearMonthDays||(We=this.removeNearMonthWeeks(ge,We)),We}generateWeekdays(X,ge){const Me=["su","mo","tu","we","th","fr","sa"].reduce((pt,Zt,cr)=>{const wt=u();return ge&&wt.locale(ge),wt.day(cr),pt[Zt]=wt,pt},{}),We=[],Re=this.generateDaysMap(X);for(const pt in Re)Re.hasOwnProperty(pt)&&(We[Re[pt]]=Me[pt]);return We}isDateDisabled(X,ge){return ge.isDayDisabledCallback?ge.isDayDisabledCallback(X):!(!ge.min||!X.isBefore(ge.min,"day"))||!(!ge.max||!X.isAfter(ge.max,"day"))}getHeaderLabel(X,ge){return X.monthFormatter?X.monthFormatter(ge):(ge.locale(X.locale),ge.format(X.monthFormat))}shouldShowLeft(X,ge){return!X||X.isBefore(ge,"month")}shouldShowRight(X,ge){return!X||X.isAfter(ge,"month")}generateDaysIndexMap(X){const ge=this.DAYS.indexOf(X);return this.DAYS.slice(ge,7).concat(this.DAYS.slice(0,ge)).reduce((We,Re,pt)=>(We[pt]=Re,We),{})}getMonthCalendarConfig(X){return this.utilsService.clearUndefined({min:X.min,max:X.max,format:X.format,isNavHeaderBtnClickable:!0,allowMultiSelect:!1,yearFormat:X.yearFormat,locale:X.locale,yearFormatter:X.yearFormatter,monthBtnFormat:X.monthBtnFormat,monthBtnFormatter:X.monthBtnFormatter,monthBtnCssClassCallback:X.monthBtnCssClassCallback,multipleYearsNavigateBy:X.multipleYearsNavigateBy,showMultipleYearsNavigation:X.showMultipleYearsNavigation,showGoToCurrent:X.showGoToCurrent})}getDayBtnText(X,ge){return X.dayBtnFormatter?X.dayBtnFormatter(ge):ge.format(X.dayBtnFormat)}getDayBtnCssClass(X,ge){return X.dayBtnCssClassCallback?X.dayBtnCssClassCallback(ge):""}}return Yt.\u0275fac=function(X){return new(X||Yt)(t.LFG(Y))},Yt.\u0275prov=t.Yz7({token:Yt,factory:Yt.\u0275fac}),Yt})();const fe=h;let ye=(()=>{class Yt{constructor(X){this.utilsService=X,this.DEFAULT_CONFIG={hours12Format:"hh",hours24Format:"HH",meridiemFormat:"A",minutesFormat:"mm",minutesInterval:1,secondsFormat:"ss",secondsInterval:1,showSeconds:!1,showTwentyFourHours:!1,timeSeparator:":",locale:"fa"}}getConfig(X){const ge={maxTime:this.utilsService.onlyTime(X&&X.maxTime),minTime:this.utilsService.onlyTime(X&&X.minTime)};return Object.assign({},this.DEFAULT_CONFIG,this.utilsService.clearUndefined(X),ge)}getTimeFormat(X){return(X.showTwentyFourHours?X.hours24Format:X.hours12Format)+X.timeSeparator+X.minutesFormat+(X.showSeconds?X.timeSeparator+X.secondsFormat:"")+(X.showTwentyFourHours?"":" "+X.meridiemFormat)}getHours(X,ge){const Me=ge||fe();return Me&&Me.format(X.showTwentyFourHours?X.hours24Format:X.hours12Format)}getMinutes(X,ge){const Me=ge||fe();return Me&&Me.format(X.minutesFormat)}getSeconds(X,ge){const Me=ge||fe();return Me&&Me.format(X.secondsFormat)}getMeridiem(X,ge){return X.locale&&ge.locale(X.locale),ge&&ge.format(X.meridiemFormat)}decrease(X,ge,Me){let We=1;switch(Me){case"minute":We=X.minutesInterval;break;case"second":We=X.secondsInterval}return ge.clone().subtract(We,Me)}increase(X,ge,Me){let We=1;switch(Me){case"minute":We=X.minutesInterval;break;case"second":We=X.secondsInterval}return ge.clone().add(We,Me)}toggleMeridiem(X){return X.hours()<12?X.clone().add(12,"hour"):X.clone().subtract(12,"hour")}shouldShowDecrease(X,ge,Me){if(!X.min&&!X.minTime)return!0;const We=this.decrease(X,ge,Me);return(!X.min||X.min.isSameOrBefore(We))&&(!X.minTime||X.minTime.isSameOrBefore(this.utilsService.onlyTime(We)))}shouldShowIncrease(X,ge,Me){if(!X.max&&!X.maxTime)return!0;const We=this.increase(X,ge,Me);return(!X.max||X.max.isSameOrAfter(We))&&(!X.maxTime||X.maxTime.isSameOrAfter(this.utilsService.onlyTime(We)))}shouldShowToggleMeridiem(X,ge){if(!(X.min||X.max||X.minTime||X.maxTime))return!0;const Me=this.toggleMeridiem(ge);return(!X.max||X.max.isSameOrAfter(Me))&&(!X.min||X.min.isSameOrBefore(Me))&&(!X.maxTime||X.maxTime.isSameOrAfter(this.utilsService.onlyTime(Me)))&&(!X.minTime||X.minTime.isSameOrBefore(this.utilsService.onlyTime(Me)))}}return Yt.\u0275fac=function(X){return new(X||Yt)(t.LFG(Y))},Yt.\u0275prov=t.Yz7({token:Yt,factory:Yt.\u0275fac}),Yt})();const Qe=h,Ot="YYYYMMDD",At="HH:mm:ss",Ze=Ot+At;let at=(()=>{class Yt{constructor(X,ge,Me){this.utilsService=X,this.dayCalendarService=ge,this.timeSelectService=Me,this.DEFAULT_CONFIG={locale:"fa"}}getConfig(X){return Object.assign({},this.DEFAULT_CONFIG,this.timeSelectService.getConfig(X),this.dayCalendarService.getConfig(X))}updateDay(X,ge,Me){const We=X||Qe();let Re=Qe.from(ge.format(Ot)+We.format(At),ge.locale(),Ze);if(Me.min){const pt=Me.min;Re=pt.isAfter(Re)?pt:Re}if(Me.max){const pt=Me.max;Re=pt.isBefore(Re)?pt:Re}return Re}updateTime(X,ge){const Me=X||Qe();return Qe.from(Me.format(Ot)+ge.format(At),Me.locale(),Ze)}}return Yt.\u0275fac=function(X){return new(X||Yt)(t.LFG(Y),t.LFG(W),t.LFG(ye))},Yt.\u0275prov=t.Yz7({token:Yt,factory:Yt.\u0275fac}),Yt})(),Be=(()=>{class Yt{constructor(X,ge,Me){this.utilsService=X,this.timeSelectService=ge,this.daytimeCalendarService=Me,this.onPickerClosed=new t.vpe,this.defaultConfig={closeOnSelect:!0,closeOnSelectDelay:100,format:"YYYY-MM-D",openOnFocus:!0,openOnClick:!0,onOpenDelay:0,disableKeypress:!1,showNearMonthDays:!0,showWeekNumbers:!1,enableMonthSelector:!0,showGoToCurrent:!0,locale:"fa",hideOnOutsideClick:!0},this.gregorianExtensionConfig={format:"DD-MM-YYYY",locale:"en"}}getConfig(X,ge="daytime"){const Me=Object.assign({},this.defaultConfig,X&&X.locale&&"fa"!==X.locale?this.gregorianExtensionConfig:{},{format:this.getDefaultFormatByMode(ge,X)},this.utilsService.clearUndefined(X));return this.utilsService.convertPropsToMoment(Me,Me.format,["min","max"],Me.locale),X&&X.allowMultiSelect&&void 0===X.closeOnSelect&&(Me.closeOnSelect=!1),Me}getDayConfigService(X){return{min:X.min,max:X.max,isDayDisabledCallback:X.isDayDisabledCallback,weekDayFormat:X.weekDayFormat,showNearMonthDays:X.showNearMonthDays,showWeekNumbers:X.showWeekNumbers,firstDayOfWeek:X.firstDayOfWeek,format:X.format,allowMultiSelect:X.allowMultiSelect,monthFormat:X.monthFormat,monthFormatter:X.monthFormatter,enableMonthSelector:X.enableMonthSelector,yearFormat:X.yearFormat,yearFormatter:X.yearFormatter,dayBtnFormat:X.dayBtnFormat,dayBtnFormatter:X.dayBtnFormatter,dayBtnCssClassCallback:X.dayBtnCssClassCallback,monthBtnFormat:X.monthBtnFormat,monthBtnFormatter:X.monthBtnFormatter,monthBtnCssClassCallback:X.monthBtnCssClassCallback,multipleYearsNavigateBy:X.multipleYearsNavigateBy,showMultipleYearsNavigation:X.showMultipleYearsNavigation,locale:X.locale,returnedValueType:X.returnedValueType,showGoToCurrent:X.showGoToCurrent,unSelectOnClick:X.unSelectOnClick}}getDayTimeConfigService(X){return this.daytimeCalendarService.getConfig(X)}getTimeConfigService(X){return this.timeSelectService.getConfig(X)}pickerClosed(){this.onPickerClosed.emit()}isValidInputDateValue(X,ge){return this.utilsService.datesStringToStringArray(X=X||"").every(We=>this.utilsService.isDateValid(We,ge.format,ge.locale))}convertInputValueToMomentArray(X,ge){const Me=this.utilsService.datesStringToStringArray(X=X||"");return this.utilsService.convertToMomentArray(Me,ge.format,ge.allowMultiSelect,ge.locale)}getDefaultFormatByMode(X,ge){let Me="YYYY-MM-DD",We="MMMM YY";const Re="HH:mm:ss";switch(ge&&ge.locale&&"fa"!==ge.locale&&(Me="DD-MM-YYYY",We="MMM, YYYY"),X){case"day":return Me;case"daytime":return Me+" "+Re;case"time":return Re;case"month":return We}}}return Yt.\u0275fac=function(X){return new(X||Yt)(t.LFG(Y),t.LFG(ye),t.LFG(at))},Yt.\u0275prov=t.Yz7({token:Yt,factory:Yt.\u0275fac}),Yt})();const Lt=h;let _e=(()=>{class Yt{constructor(X,ge,Me,We,Re,pt){this.dayPickerService=X,this.domHelper=ge,this.elemRef=Me,this.renderer=We,this.utilsService=Re,this.cd=pt,this.isInitialized=!1,this.mode="day",this.placeholder="",this.disabled=!1,this.open=new t.vpe,this.close=new t.vpe,this.onChange=new t.vpe,this.onGoToCurrent=new t.vpe,this.onLeftNav=new t.vpe,this.onRightNav=new t.vpe,this._areCalendarsShown=!1,this.hideStateHelper=!1,this._selected=[],this.isFocusedTrigger=!1,this.handleInnerElementClickUnlisteners=[],this.globalListnersUnlisteners=[],this.api={open:this.showCalendars.bind(this),close:this.hideCalendar.bind(this),moveCalendarTo:this.moveCalendarTo.bind(this)}}set selected(X){this._selected=X,this.inputElementValue=this.utilsService.convertFromMomentArray(this.componentConfig.format,X,x.StringArr,this.componentConfig.locale).join(" | ");const ge=this.processOnChangeCallback(X);this.onChangeCallback(ge,!1),this.onChange.emit(ge)}get selected(){return this._selected}get areCalendarsShown(){return this._areCalendarsShown}get openOnFocus(){return this.componentConfig.openOnFocus}get openOnClick(){return this.componentConfig.openOnClick}set areCalendarsShown(X){X?(this.startGlobalListeners(),this.domHelper.appendElementToPosition({container:this.appendToElement,element:this.calendarWrapper,anchor:this.inputElementContainer,dimElem:this.popupElem,drops:this.componentConfig.drops,opens:this.componentConfig.opens})):(this.stopGlobalListeners(),this.dayPickerService.pickerClosed()),this._areCalendarsShown=X}get currentDateView(){return this._currentDateView}set currentDateView(X){this._currentDateView=X,this.dayCalendarRef&&this.dayCalendarRef.moveCalendarTo(X),this.monthCalendarRef&&this.monthCalendarRef.moveCalendarTo(X),this.dayTimeCalendarRef&&this.dayTimeCalendarRef.moveCalendarTo(X)}onClick(){!this.openOnClick||!this.isFocusedTrigger&&!this.disabled&&(this.hideStateHelper=!0,this.areCalendarsShown||this.showCalendars())}onBodyClick(){this.componentConfig.hideOnOutsideClick&&(!this.hideStateHelper&&this.areCalendarsShown&&this.hideCalendar(),this.hideStateHelper=!1)}onScroll(){this.areCalendarsShown&&this.domHelper.setElementPosition({container:this.appendToElement,element:this.calendarWrapper,anchor:this.inputElementContainer,dimElem:this.popupElem,drops:this.componentConfig.drops,opens:this.componentConfig.opens})}writeValue(X){this.inputValue=X,X||""===X?(this.selected=this.utilsService.convertToMomentArray(X,this.componentConfig.format,this.componentConfig.allowMultiSelect,this.componentConfig.locale),this.currentDateView=this.selected.length?this.utilsService.getDefaultDisplayDate(null,this.selected,this.componentConfig.allowMultiSelect,this.componentConfig.min,this.componentConfig.locale):this.currentDateView,this.init()):this.selected=[],this.cd.markForCheck()}registerOnChange(X){this.onChangeCallback=X}onChangeCallback(X,ge){}registerOnTouched(X){}validate(X){return this.validateFn(X.value)}processOnChangeCallback(X){return"string"==typeof X?X:this.utilsService.convertFromMomentArray(this.componentConfig.format,X,this.componentConfig.returnedValueType||this.inputValueType,this.componentConfig.locale)}initValidators(){this.validateFn=this.utilsService.createValidator({minDate:this.minDate,maxDate:this.maxDate,minTime:this.minTime,maxTime:this.maxTime},this.componentConfig.format,this.mode,this.componentConfig.locale),this.onChangeCallback(this.processOnChangeCallback(this.selected),!1)}ngOnInit(){this.isInitialized=!0,this.init(),this.initValidators()}ngOnChanges(X){if(this.isInitialized){const{minDate:ge,maxDate:Me,minTime:We,maxTime:Re}=X;this.init(),(ge||Me||We||Re)&&this.initValidators()}}ngAfterViewInit(){this.setElementPositionInDom()}setDisabledState(X){this.disabled=X}setElementPositionInDom(){this.calendarWrapper=this.calendarContainer.nativeElement,this.setInputElementContainer(),this.popupElem=this.elemRef.nativeElement.querySelector(".dp-popup"),this.handleInnerElementClick(this.popupElem);const{appendTo:X}=this.componentConfig;this.appendToElement=X?"string"==typeof X?document.querySelector(X):X:this.elemRef.nativeElement,this.appendToElement.appendChild(this.calendarWrapper)}setInputElementContainer(){this.inputElementContainer=this.utilsService.getNativeElement(this.componentConfig.inputElementContainer)||this.elemRef.nativeElement.querySelector(".dp-input-container")||document.body}handleInnerElementClick(X){this.handleInnerElementClickUnlisteners.push(this.renderer.listen(X,"click",()=>{this.hideStateHelper=!0}))}init(){this.componentConfig=this.dayPickerService.getConfig(this.config,this.mode),this.currentDateView=this.displayDate?this.utilsService.convertToMoment(this.displayDate,this.componentConfig.format,this.componentConfig.locale).clone():this.utilsService.getDefaultDisplayDate(this.currentDateView,this.selected,this.componentConfig.allowMultiSelect,this.componentConfig.min,this.componentConfig.locale),this.inputValueType=this.utilsService.getInputType(this.inputValue,this.componentConfig.allowMultiSelect),this.dayCalendarConfig=this.dayPickerService.getDayConfigService(this.componentConfig),this.dayTimeCalendarConfig=this.dayPickerService.getDayTimeConfigService(this.componentConfig),this.timeSelectConfig=this.dayPickerService.getTimeConfigService(this.componentConfig)}inputFocused(){!this.openOnFocus||(this.isFocusedTrigger=!0,setTimeout(()=>{this.hideStateHelper=!1,this.areCalendarsShown||this.showCalendars(),this.isFocusedTrigger=!1},this.componentConfig.onOpenDelay))}showCalendars(){this.hideStateHelper=!0,this.areCalendarsShown=!0,this.timeSelectRef&&this.timeSelectRef.api.triggerChange(),this.open.emit(),this.cd.markForCheck()}hideCalendar(){this.areCalendarsShown=!1,this.dayCalendarRef&&this.dayCalendarRef.api.toggleCalendarMode(E.Day),this.close.emit(),this.cd.markForCheck()}onViewDateChange(X){let ge=X?this.utilsService.convertToString(X,this.componentConfig.format,this.componentConfig.locale):"";this.dayPickerService.isValidInputDateValue(ge,this.componentConfig)?(ge&&"fa"===this.componentConfig.locale&&(ge=Lt.from(ge,"fa",this.componentConfig.format).format(this.componentConfig.format)),this.selected=this.dayPickerService.convertInputValueToMomentArray(ge,this.componentConfig),this.currentDateView=this.selected.length?this.utilsService.getDefaultDisplayDate(null,this.selected,this.componentConfig.allowMultiSelect,this.componentConfig.min,this.componentConfig.locale):this.currentDateView):(this._selected=this.utilsService.getValidMomentArray(ge,this.componentConfig.format,this.componentConfig.locale),this.onChangeCallback(this.processOnChangeCallback(ge),!0))}dateSelected(X,ge,Me){this.selected=this.utilsService.updateSelected(this.componentConfig.allowMultiSelect,this.selected,X,ge),Me||this.onDateClick()}onDateClick(){this.componentConfig.closeOnSelect&&setTimeout(this.hideCalendar.bind(this),this.componentConfig.closeOnSelectDelay)}onKeyPress(X){switch(X.keyCode){case 9:case 27:this.hideCalendar()}}moveCalendarTo(X){const ge=this.utilsService.convertToMoment(X,this.componentConfig.format,this.componentConfig.locale);this.currentDateView=ge}onLeftNavClick(X){this.onLeftNav.emit(X)}onRightNavClick(X){this.onRightNav.emit(X)}startGlobalListeners(){this.globalListnersUnlisteners.push(this.renderer.listen(document,"keydown",X=>{this.onKeyPress(X)}),this.renderer.listen(document,"scroll",()=>{this.onScroll()}),this.renderer.listen(document,"click",()=>{this.onBodyClick()}))}changeLocale(X){this.dayCalendarConfig=Object.assign({},this.dayCalendarConfig,{locale:X}),this.dayTimeCalendarConfig=Object.assign({},this.dayTimeCalendarConfig,{locale:X})}stopGlobalListeners(){this.globalListnersUnlisteners.forEach(X=>X()),this.globalListnersUnlisteners=[]}ngOnDestroy(){this.handleInnerElementClickUnlisteners.forEach(X=>X()),this.appendToElement&&this.appendToElement.removeChild(this.calendarWrapper)}}return Yt.\u0275fac=function(X){return new(X||Yt)(t.Y36(Be),t.Y36(j),t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(Y),t.Y36(t.sBO))},Yt.\u0275cmp=t.Xpm({type:Yt,selectors:[["dp-date-picker"]],viewQuery:function(X,ge){if(1&X&&(t.Gf(d,5),t.Gf(y,5),t.Gf(g,5),t.Gf(p,5),t.Gf(f,5)),2&X){let Me;t.iGM(Me=t.CRH())&&(ge.calendarContainer=Me.first),t.iGM(Me=t.CRH())&&(ge.dayCalendarRef=Me.first),t.iGM(Me=t.CRH())&&(ge.monthCalendarRef=Me.first),t.iGM(Me=t.CRH())&&(ge.dayTimeCalendarRef=Me.first),t.iGM(Me=t.CRH())&&(ge.timeSelectRef=Me.first)}},hostVars:2,hostBindings:function(X,ge){1&X&&t.NdJ("click",function(){return ge.onClick()})("resize",function(){return ge.onScroll()},!1,t.Jf7),2&X&&t.Tol(ge.theme)},inputs:{mode:"mode",placeholder:"placeholder",disabled:"disabled",config:"config",displayDate:"displayDate",theme:"theme",minDate:"minDate",maxDate:"maxDate",minTime:"minTime",maxTime:"maxTime"},outputs:{open:"open",close:"close",onChange:"onChange",onGoToCurrent:"onGoToCurrent",onLeftNav:"onLeftNav",onRightNav:"onRightNav"},features:[t._Bn([Be,at,W,ye,{provide:e.JU,useExisting:(0,t.Gpc)(()=>Yt),multi:!0},{provide:e.Cf,useExisting:(0,t.Gpc)(()=>Yt),multi:!0}]),t.TTD],decls:10,vars:19,consts:[[3,"ngClass"],[1,"dp-input-container",3,"hidden"],["type","text",1,"dp-picker-input",3,"placeholder","ngModel","readonly","disabled","ngModelChange","focus"],["container",""],[3,"ngSwitch","hidden"],[3,"config","ngModel","displayDate","theme","onSelect","onGoToCurrent","onLeftNav","onRightNav",4,"ngSwitchCase"],[3,"config","ngModel","theme","onChange",4,"ngSwitchCase"],[3,"config","displayDate","ngModel","theme","onChange","onGoToCurrent","onLeftNav","onRightNav",4,"ngSwitchCase"],[3,"config","ngModel","displayDate","theme","onSelect","onGoToCurrent","onLeftNav","onRightNav"],["dayCalendar",""],["monthCalendar",""],[3,"config","ngModel","theme","onChange"],["timeSelect",""],[3,"config","displayDate","ngModel","theme","onChange","onGoToCurrent","onLeftNav","onRightNav"],["daytimeCalendar",""]],template:function(X,ge){1&X&&(t.TgZ(0,"div",0)(1,"div",1)(2,"input",2),t.NdJ("ngModelChange",function(We){return ge.onViewDateChange(We)})("focus",function(){return ge.inputFocused()}),t.qZA()(),t.TgZ(3,"div",null,3)(5,"div",4),t.YNc(6,C,2,4,"dp-day-calendar",5),t.YNc(7,N,2,4,"dp-month-calendar",5),t.YNc(8,a,2,3,"dp-time-select",6),t.YNc(9,O,2,4,"dp-day-time-calendar",7),t.qZA()()()),2&X&&(t.Q6J("ngClass",t.VKq(17,H,ge.areCalendarsShown)),t.xp6(1),t.Q6J("hidden",ge.componentConfig.hideInputContainer),t.uIk("data-hidden",ge.componentConfig.hideInputContainer),t.xp6(1),t.Q6J("placeholder",ge.placeholder)("ngModel",ge.inputElementValue)("readonly",ge.componentConfig.disableKeypress)("disabled",ge.disabled),t.xp6(3),t.Gre("dp-popup ",ge.theme,""),t.Q6J("ngSwitch",ge.mode)("hidden",!ge._areCalendarsShown),t.uIk("data-hidden",!ge._areCalendarsShown),t.xp6(1),t.Q6J("ngSwitchCase","day"),t.xp6(1),t.Q6J("ngSwitchCase","month"),t.xp6(1),t.Q6J("ngSwitchCase","time"),t.xp6(1),t.Q6J("ngSwitchCase","daytime"))},directives:function(){return[l.mk,e.Fj,e.JJ,e.On,l.RF,l.n9,$e,br,st,ot]},styles:["\n    dp-date-picker {\n      display: inline-block;\n    }\n    dp-date-picker.dp-material .dp-picker-input {\n      -webkit-box-sizing: border-box;\n              box-sizing: border-box;\n      height: 30px;\n      width: 252px;\n      font-size: 13px;\n      outline: none;\n    }\n    dp-date-picker .dp-input-container {\n      position: relative;\n    }\n    dp-date-picker .dp-selected {\n      background: rgba(16, 108, 200, 0.5);\n      color: #FFFFFF;\n    }\n    .dp-popup {\n      position: relative;\n      background: #FFFFFF;\n      -webkit-box-shadow: 1px 1px 5px 0 rgba(0, 0, 0, 0.1);\n              box-shadow: 1px 1px 5px 0 rgba(0, 0, 0, 0.1);\n      border-left: 1px solid rgba(0, 0, 0, 0.1);\n      border-right: 1px solid rgba(0, 0, 0, 0.1);\n      border-bottom: 1px solid rgba(0, 0, 0, 0.1);\n      z-index: 9999;\n      white-space: nowrap;\n    }\n  "],encapsulation:2,changeDetection:0}),Yt})();const Te=h;let $e=(()=>{class Yt{constructor(X,ge,Me){this.dayCalendarService=X,this.utilsService=ge,this.cd=Me,this.onSelect=new t.vpe,this.onMonthSelect=new t.vpe,this.onNavHeaderBtnClick=new t.vpe,this.onGoToCurrent=new t.vpe,this.onLeftNav=new t.vpe,this.onRightNav=new t.vpe,this.CalendarMode=E,this.isInited=!1,this.currentCalendarMode=E.Day,this._shouldShowCurrent=!0,this.api={moveCalendarsBy:this.moveCalendarsBy.bind(this),moveCalendarTo:this.moveCalendarTo.bind(this),toggleCalendarMode:this.toggleCalendarMode.bind(this)}}set selected(X){this._selected=X,this.onChangeCallback(this.processOnChangeCallback(X))}get selected(){return this._selected}set currentDateView(X){this._currentDateView=X.clone(),this.weeks=this.dayCalendarService.generateMonthArray(this.componentConfig,this._currentDateView,this.selected),this.navLabel=this.dayCalendarService.getHeaderLabel(this.componentConfig,this._currentDateView),this.showLeftNav=this.dayCalendarService.shouldShowLeft(this.componentConfig.min,this.currentDateView),this.showRightNav=this.dayCalendarService.shouldShowRight(this.componentConfig.max,this.currentDateView)}get currentDateView(){return this._currentDateView}ngOnInit(){this.isInited=!0,this.init(),this.initValidators()}init(){this.componentConfig=this.dayCalendarService.getConfig(this.config),this.selected=this.selected||[],this.currentDateView=this.displayDate?this.utilsService.convertToMoment(this.displayDate,this.componentConfig.format,this.componentConfig.locale).clone():this.utilsService.getDefaultDisplayDate(this.currentDateView,this.selected,this.componentConfig.allowMultiSelect,this.componentConfig.min,this.componentConfig.locale),this.weekdays=this.dayCalendarService.generateWeekdays(this.componentConfig.firstDayOfWeek,this.componentConfig.locale),this.inputValueType=this.utilsService.getInputType(this.inputValue,this.componentConfig.allowMultiSelect),this.monthCalendarConfig=this.dayCalendarService.getMonthCalendarConfig(this.componentConfig),this._shouldShowCurrent=this.shouldShowCurrent()}isFarsi(){return"fa"===this.componentConfig.locale}ngOnChanges(X){if(this.isInited){const{minDate:ge,maxDate:Me,config:We}=X;this.handleConfigChange(We),this.init(),(ge||Me)&&this.initValidators()}}writeValue(X){X===this.inputValue||this.inputValue&&Te.isMoment(this.inputValue)&&this.inputValue.isSame(X)||(this.inputValue=X,X?(this.selected=this.utilsService.convertToMomentArray(X,this.componentConfig.format,this.componentConfig.allowMultiSelect,this.componentConfig.locale),this.inputValueType=this.utilsService.getInputType(this.inputValue,this.componentConfig.allowMultiSelect)):this.selected=[],this.weeks=this.dayCalendarService.generateMonthArray(this.componentConfig,this.currentDateView,this.selected),this.cd.markForCheck())}registerOnChange(X){this.onChangeCallback=X}onChangeCallback(X){}registerOnTouched(X){}validate(X){return this.minDate||this.maxDate?this.validateFn(X.value):()=>null}processOnChangeCallback(X){return this.utilsService.convertFromMomentArray(this.componentConfig.format,X,this.componentConfig.returnedValueType||this.inputValueType,this.componentConfig.locale)}initValidators(){this.validateFn=this.utilsService.createValidator({minDate:this.minDate,maxDate:this.maxDate},this.componentConfig.format,"day",this.componentConfig.locale),this.onChangeCallback(this.processOnChangeCallback(this.selected))}dayClicked(X){X.selected&&!this.componentConfig.unSelectOnClick||(this.selected=this.utilsService.updateSelected(this.componentConfig.allowMultiSelect,this.selected,X),this.weeks=this.dayCalendarService.generateMonthArray(this.componentConfig,this.currentDateView,this.selected),this.onSelect.emit(X))}getDayBtnText(X){return this.dayCalendarService.getDayBtnText(this.componentConfig,X.date)}getDayBtnCssClass(X){const ge={"dp-selected":X.selected,"dp-current-month":X.currentMonth,"dp-prev-month":X.prevMonth,"dp-next-month":X.nextMonth,"dp-current-day":X.currentDay},Me=this.dayCalendarService.getDayBtnCssClass(this.componentConfig,X.date);return Me&&(ge[Me]=!0),ge}onLeftNavClick(){const X=this.currentDateView.clone();this.moveCalendarsBy(this.currentDateView,-1,"month");const ge=this.currentDateView.clone();this.onLeftNav.emit({from:X,to:ge})}onRightNavClick(){const X=this.currentDateView.clone();this.moveCalendarsBy(this.currentDateView,1,"month");const ge=this.currentDateView.clone();this.onRightNav.emit({from:X,to:ge})}onMonthCalendarLeftClick(X){this.onLeftNav.emit(X)}onMonthCalendarRightClick(X){this.onRightNav.emit(X)}onMonthCalendarSecondaryLeftClick(X){this.onRightNav.emit(X)}onMonthCalendarSecondaryRightClick(X){this.onLeftNav.emit(X)}getWeekdayName(X){return this.componentConfig.weekDayFormatter?this.componentConfig.weekDayFormatter(X.day()):X.format(this.componentConfig.weekDayFormat)}toggleCalendarMode(X){this.currentCalendarMode!==X&&(this.currentCalendarMode=X,this.onNavHeaderBtnClick.emit(X)),this.cd.markForCheck()}monthSelected(X){this.currentDateView=X.date.clone(),this.currentCalendarMode=E.Day,this.onMonthSelect.emit(X)}moveCalendarsBy(X,ge,Me="month"){this.currentDateView=X.clone().add(ge,Me),this.cd.markForCheck()}moveCalendarTo(X){X&&(this.currentDateView=this.utilsService.convertToMoment(X,this.componentConfig.format,this.componentConfig.locale)),this.cd.markForCheck()}shouldShowCurrent(){return this.utilsService.shouldShowCurrent(this.componentConfig.showGoToCurrent,"day",this.componentConfig.min,this.componentConfig.max)}goToCurrent(){this.currentDateView=Te().locale(this.componentConfig.locale),this.onGoToCurrent.emit()}handleConfigChange(X){if(X){const ge=this.dayCalendarService.getConfig(X.previousValue),Me=this.dayCalendarService.getConfig(X.currentValue);this.utilsService.shouldResetCurrentView(ge,Me)&&(this._currentDateView=null)}}}return Yt.\u0275fac=function(X){return new(X||Yt)(t.Y36(W),t.Y36(Y),t.Y36(t.sBO))},Yt.\u0275cmp=t.Xpm({type:Yt,selectors:[["dp-day-calendar"]],hostVars:2,hostBindings:function(X,ge){2&X&&t.Tol(ge.theme)},inputs:{config:"config",displayDate:"displayDate",minDate:"minDate",maxDate:"maxDate",theme:"theme"},outputs:{onSelect:"onSelect",onMonthSelect:"onMonthSelect",onNavHeaderBtnClick:"onNavHeaderBtnClick",onGoToCurrent:"onGoToCurrent",onLeftNav:"onLeftNav",onRightNav:"onRightNav"},features:[t._Bn([W,{provide:e.JU,useExisting:(0,t.Gpc)(()=>Yt),multi:!0},{provide:e.Cf,useExisting:(0,t.Gpc)(()=>Yt),multi:!0}]),t.TTD],decls:2,vars:2,consts:[["class","dp-day-calendar-container",4,"ngIf"],[3,"config","displayDate","theme","onSelect","onNavHeaderBtnClick","onLeftNav","onRightNav","onLeftSecondaryNav","onRightSecondaryNav",4,"ngIf"],[1,"dp-day-calendar-container"],[3,"label","showLeftNav","showRightNav","isLabelClickable","showGoToCurrent","theme","onLeftNav","onRightNav","onLabelClick","onGoToCurrent"],[1,"dp-calendar-wrapper",3,"ngClass"],[1,"dp-weekdays"],["class","dp-calendar-weekday",3,"innerText",4,"ngFor","ngForOf"],["class","dp-calendar-week",4,"ngFor","ngForOf"],[1,"dp-calendar-weekday",3,"innerText"],[1,"dp-calendar-week"],["class","dp-week-number",3,"innerText",4,"ngIf"],["type","button","class","dp-calendar-day",3,"disabled","ngClass","innerText","click",4,"ngFor","ngForOf"],[1,"dp-week-number",3,"innerText"],["type","button",1,"dp-calendar-day",3,"disabled","ngClass","innerText","click"],[3,"config","displayDate","theme","onSelect","onNavHeaderBtnClick","onLeftNav","onRightNav","onLeftSecondaryNav","onRightSecondaryNav"]],template:function(X,ge){1&X&&(t.YNc(0,J,6,12,"div",0),t.YNc(1,G,1,3,"dp-month-calendar",1)),2&X&&(t.Q6J("ngIf",ge.currentCalendarMode===ge.CalendarMode.Day),t.xp6(1),t.Q6J("ngIf",ge.currentCalendarMode===ge.CalendarMode.Month))},directives:function(){return[l.O5,Dt,l.mk,l.sg,br]},styles:["\n    dp-day-calendar {\n      display: inline-block;\n    }\n    dp-day-calendar .dp-day-calendar-container {\n      background: #FFFFFF;\n    }\n    dp-day-calendar .dp-calendar-wrapper {\n      -webkit-box-sizing: border-box;\n              box-sizing: border-box;\n    }\n    dp-day-calendar .dp-calendar-wrapper .dp-calendar-weekday:first-child {\n      border-left: none;\n    }\n    dp-day-calendar .dp-weekdays {\n      font-size: 15px;\n      margin-bottom: 5px;\n    }\n    dp-day-calendar .dp-calendar-weekday {\n      -webkit-box-sizing: border-box;\n              box-sizing: border-box;\n      display: inline-block;\n      width: 30px;\n      text-align: center;\n      border-left: 1px solid #000000;\n      border-bottom: 1px solid #000000;\n    }\n    dp-day-calendar .dp-calendar-day {\n      -webkit-box-sizing: border-box;\n              box-sizing: border-box;\n      width: 30px;\n      height: 30px;\n      cursor: pointer;\n    }\n    dp-day-calendar .dp-selected {\n      background: rgba(16, 108, 200, 0.5);\n      color: #FFFFFF;\n    }\n    dp-day-calendar .dp-prev-month,\n    dp-day-calendar .dp-next-month {\n      opacity: 0.5;\n    }\n    dp-day-calendar .dp-hide-near-month .dp-prev-month,\n    dp-day-calendar .dp-hide-near-month .dp-next-month {\n      visibility: hidden;\n    }\n    dp-day-calendar .dp-week-number {\n      position: absolute;\n      font-size: 9px;\n    }\n    dp-day-calendar.dp-material .dp-calendar-weekday {\n      height: 25px;\n      width: 30px;\n      line-height: 25px;\n      color: rgba(16, 108, 200, 0.5);\n      border: none;\n      font-size: 0.75rem;\n      opacity: 0.6;\n    }\n    dp-day-calendar.dp-material .dp-calendar-weekday:last-child {\n      color: red;\n    }\n    dp-day-calendar.dp-material .dp-calendar-wrapper {\n      padding: 20px;\n    }\n    dp-day-calendar.dp-material .dp-calendar-wrapper.rtl {\n      direction: rtl;\n    }\n    dp-day-calendar.dp-material .dp-calendar-month,\n    dp-day-calendar.dp-material .dp-calendar-day {\n      -webkit-box-sizing: border-box;\n              box-sizing: border-box;\n      background: #FFFFFF;\n      border-radius: 0%;\n      -webkit-transition: border-radius 0.1s ease;\n      transition: border-radius 0.1s ease;\n      border: none;\n      outline: none;\n      padding: 0;\n    }\n    dp-day-calendar.dp-material .dp-calendar-month:hover,\n    dp-day-calendar.dp-material .dp-calendar-day:hover {\n      background: #E0E0E0;\n      border-radius: 50%;\n    }\n    dp-day-calendar.dp-material .dp-selected {\n      border-radius: 50%;\n      background: rgba(16, 108, 200, 0.5);\n      color: #FFFFFF;\n    }\n    dp-day-calendar.dp-material .dp-selected:hover {\n      background: rgba(16, 108, 200, 0.5);\n    }\n    dp-day-calendar.dp-material .dp-current-day {\n      border-radius: 50%;\n      border: 1px solid rgba(16, 108, 200, 0.5);\n    }\n  "],encapsulation:2,changeDetection:0}),Yt})();const ft=h;let Ge=(()=>{class Yt{constructor(X){this.utilsService=X,this.DEFAULT_CONFIG={allowMultiSelect:!1,yearFormat:"YYYY",format:"MMMM-YYYY",isNavHeaderBtnClickable:!1,monthBtnFormat:"MMMM",locale:"fa",multipleYearsNavigateBy:10,showMultipleYearsNavigation:!1,unSelectOnClick:!0},this.GREGORIAN_DEFAULT_CONFIG={format:"MM-YYYY",monthBtnFormat:"MMM",locale:"en"}}getConfig(X){const ge=Object.assign({},this.DEFAULT_CONFIG,X&&X.locale&&"fa"!==X.locale?this.GREGORIAN_DEFAULT_CONFIG:{},this.utilsService.clearUndefined(X));return this.utilsService.convertPropsToMoment(ge,ge.format,["min","max"],ge.locale),ge}generateYear(X,ge,Me=null){const We=ge.clone().startOf("year");return this.utilsService.createArray(3).map(()=>this.utilsService.createArray(4).map(()=>{const Re=We.clone(),pt={date:Re,selected:!!Me.find(Zt=>We.isSame(Zt,"month")),currentMonth:We.isSame(ft(),"month"),disabled:this.isMonthDisabled(Re,X),text:this.getMonthBtnText(X,Re)};return We.add(1,"month"),pt}))}isMonthDisabled(X,ge){return!(!ge.min||!X.isBefore(ge.min,"month"))||!(!ge.max||!X.isAfter(ge.max,"month"))}shouldShowLeft(X,ge){return!X||X.isBefore(ge,"year")}shouldShowRight(X,ge){return!X||X.isAfter(ge,"year")}getHeaderLabel(X,ge){return X.yearFormatter?X.yearFormatter(ge):(ge.locale(X.locale),ge.format(X.yearFormat))}getMonthBtnText(X,ge){return X.monthBtnFormatter?X.monthBtnFormatter(ge):ge.format(X.monthBtnFormat)}getMonthBtnCssClass(X,ge){return X.monthBtnCssClassCallback?X.monthBtnCssClassCallback(ge):""}}return Yt.\u0275fac=function(X){return new(X||Yt)(t.LFG(Y))},Yt.\u0275prov=t.Yz7({token:Yt,factory:Yt.\u0275fac}),Yt})();const Ft=h;let br=(()=>{class Yt{constructor(X,ge,Me){this.monthCalendarService=X,this.utilsService=ge,this.cd=Me,this.onSelect=new t.vpe,this.onNavHeaderBtnClick=new t.vpe,this.onGoToCurrent=new t.vpe,this.onLeftNav=new t.vpe,this.onRightNav=new t.vpe,this.onLeftSecondaryNav=new t.vpe,this.onRightSecondaryNav=new t.vpe,this.isInited=!1,this._shouldShowCurrent=!0,this.api={toggleCalendar:this.toggleCalendarMode.bind(this),moveCalendarTo:this.moveCalendarTo.bind(this)}}set selected(X){this._selected=X,this.onChangeCallback(this.processOnChangeCallback(X))}get selected(){return this._selected}set currentDateView(X){this._currentDateView=X.clone(),this.yearMonths=this.monthCalendarService.generateYear(this.componentConfig,this._currentDateView,this.selected),this.navLabel=this.monthCalendarService.getHeaderLabel(this.componentConfig,this.currentDateView),this.showLeftNav=this.monthCalendarService.shouldShowLeft(this.componentConfig.min,this._currentDateView),this.showRightNav=this.monthCalendarService.shouldShowRight(this.componentConfig.max,this.currentDateView),this.showSecondaryLeftNav=this.componentConfig.showMultipleYearsNavigation&&this.showLeftNav,this.showSecondaryRightNav=this.componentConfig.showMultipleYearsNavigation&&this.showRightNav}get currentDateView(){return this._currentDateView}ngOnInit(){this.isInited=!0,this.init(),this.initValidators()}ngOnChanges(X){if(this.isInited){const{minDate:ge,maxDate:Me,config:We}=X;this.handleConfigChange(We),this.init(),(ge||Me)&&this.initValidators()}}init(){this.componentConfig=this.monthCalendarService.getConfig(this.config),this.selected=this.selected||[],this.currentDateView=this.displayDate?this.displayDate:this.utilsService.getDefaultDisplayDate(this.currentDateView,this.selected,this.componentConfig.allowMultiSelect,this.componentConfig.min,this.componentConfig.locale),this.inputValueType=this.utilsService.getInputType(this.inputValue,this.componentConfig.allowMultiSelect),this._shouldShowCurrent=this.shouldShowCurrent()}writeValue(X){this.inputValue=X,X&&(this.selected=this.utilsService.convertToMomentArray(X,this.componentConfig.format,this.componentConfig.allowMultiSelect,this.componentConfig.locale),this.yearMonths=this.monthCalendarService.generateYear(this.componentConfig,this.currentDateView,this.selected),this.inputValueType=this.utilsService.getInputType(this.inputValue,this.componentConfig.allowMultiSelect)),this.cd.markForCheck()}registerOnChange(X){this.onChangeCallback=X}onChangeCallback(X){}registerOnTouched(X){}validate(X){return this.minDate||this.maxDate?this.validateFn(X.value):()=>null}isFarsi(){return"fa"===this.componentConfig.locale}processOnChangeCallback(X){return this.utilsService.convertFromMomentArray(this.componentConfig.format,X,this.componentConfig.returnedValueType||this.inputValueType,this.componentConfig.locale)}initValidators(){this.validateFn=this.validateFn=this.utilsService.createValidator({minDate:this.minDate,maxDate:this.maxDate},this.componentConfig.format,"month",this.componentConfig.locale),this.onChangeCallback(this.processOnChangeCallback(this.selected))}monthClicked(X){X.selected&&!this.componentConfig.unSelectOnClick||(this.selected=this.utilsService.updateSelected(this.componentConfig.allowMultiSelect,this.selected,X,"month"),this.yearMonths=this.monthCalendarService.generateYear(this.componentConfig,this.currentDateView,this.selected),this.onSelect.emit(X))}onLeftNavClick(){const X=this.currentDateView.clone();this.currentDateView=this.currentDateView.clone().subtract(1,"year");const ge=this.currentDateView.clone();this.yearMonths=this.monthCalendarService.generateYear(this.componentConfig,this.currentDateView,this.selected),this.onLeftNav.emit({from:X,to:ge})}onLeftSecondaryNavClick(){let X=this.componentConfig.multipleYearsNavigateBy;this.componentConfig.min&&this.currentDateView.year()-this.componentConfig.min.year()<X&&(X=this.currentDateView.year()-this.componentConfig.min.year());const Me=this.currentDateView.clone();this.currentDateView=this.currentDateView.clone().subtract(X,"year");const We=this.currentDateView.clone();this.onLeftSecondaryNav.emit({from:Me,to:We})}onRightNavClick(){const X=this.currentDateView.clone();this.currentDateView=this.currentDateView.clone().add(1,"year");const ge=this.currentDateView.clone();this.onRightNav.emit({from:X,to:ge})}onRightSecondaryNavClick(){let X=this.componentConfig.multipleYearsNavigateBy;this.componentConfig.max&&this.componentConfig.max.year()-this.currentDateView.year()<X&&(X=this.componentConfig.max.year()-this.currentDateView.year());const Me=this.currentDateView.clone();this.currentDateView=this.currentDateView.clone().add(X,"year");const We=this.currentDateView.clone();this.onRightSecondaryNav.emit({from:Me,to:We})}toggleCalendarMode(){this.onNavHeaderBtnClick.emit()}getMonthBtnCssClass(X){const ge={"dp-selected":X.selected,"dp-current-month":X.currentMonth},Me=this.monthCalendarService.getMonthBtnCssClass(this.componentConfig,X.date);return Me&&(ge[Me]=!0),ge}shouldShowCurrent(){return this.utilsService.shouldShowCurrent(this.componentConfig.showGoToCurrent,"month",this.componentConfig.min,this.componentConfig.max)}goToCurrent(){this.currentDateView=Ft().locale(this.componentConfig.locale),this.onGoToCurrent.emit()}moveCalendarTo(X){X&&(this.currentDateView=this.utilsService.convertToMoment(X,this.componentConfig.format,this.componentConfig.locale),this.cd.markForCheck())}handleConfigChange(X){if(X){const ge=this.monthCalendarService.getConfig(X.previousValue),Me=this.monthCalendarService.getConfig(X.currentValue);this.utilsService.shouldResetCurrentView(ge,Me)&&(this._currentDateView=null)}}}return Yt.\u0275fac=function(X){return new(X||Yt)(t.Y36(Ge),t.Y36(Y),t.Y36(t.sBO))},Yt.\u0275cmp=t.Xpm({type:Yt,selectors:[["dp-month-calendar"]],hostVars:2,hostBindings:function(X,ge){2&X&&t.Tol(ge.theme)},inputs:{config:"config",displayDate:"displayDate",minDate:"minDate",maxDate:"maxDate",theme:"theme"},outputs:{onSelect:"onSelect",onNavHeaderBtnClick:"onNavHeaderBtnClick",onGoToCurrent:"onGoToCurrent",onLeftNav:"onLeftNav",onRightNav:"onRightNav",onLeftSecondaryNav:"onLeftSecondaryNav",onRightSecondaryNav:"onRightSecondaryNav"},features:[t._Bn([Ge,{provide:e.JU,useExisting:(0,t.Gpc)(()=>Yt),multi:!0},{provide:e.Cf,useExisting:(0,t.Gpc)(()=>Yt),multi:!0}]),t.TTD],decls:4,vars:12,consts:[[1,"dp-month-calendar-container"],[3,"label","showLeftNav","showLeftSecondaryNav","showRightNav","showRightSecondaryNav","isLabelClickable","showGoToCurrent","theme","onLeftNav","onLeftSecondaryNav","onRightNav","onRightSecondaryNav","onLabelClick","onGoToCurrent"],[1,"dp-calendar-wrapper",3,"ngClass"],["class","dp-months-row",4,"ngFor","ngForOf"],[1,"dp-months-row"],["type","button","class","dp-calendar-month",3,"disabled","ngClass","innerText","click",4,"ngFor","ngForOf"],["type","button",1,"dp-calendar-month",3,"disabled","ngClass","innerText","click"]],template:function(X,ge){1&X&&(t.TgZ(0,"div",0)(1,"dp-calendar-nav",1),t.NdJ("onLeftNav",function(){return ge.onLeftNavClick()})("onLeftSecondaryNav",function(){return ge.onLeftSecondaryNavClick()})("onRightNav",function(){return ge.onRightNavClick()})("onRightSecondaryNav",function(){return ge.onRightSecondaryNavClick()})("onLabelClick",function(){return ge.toggleCalendarMode()})("onGoToCurrent",function(){return ge.goToCurrent()}),t.qZA(),t.TgZ(2,"div",2),t.YNc(3,K,2,1,"div",3),t.qZA()()),2&X&&(t.xp6(1),t.Q6J("label",ge.navLabel)("showLeftNav",ge.showLeftNav)("showLeftSecondaryNav",ge.showSecondaryLeftNav)("showRightNav",ge.showRightNav)("showRightSecondaryNav",ge.showSecondaryRightNav)("isLabelClickable",ge.componentConfig.isNavHeaderBtnClickable)("showGoToCurrent",ge.shouldShowCurrent())("theme",ge.theme),t.xp6(1),t.Q6J("ngClass",t.VKq(10,re,ge.isFarsi())),t.xp6(1),t.Q6J("ngForOf",ge.yearMonths))},directives:function(){return[Dt,l.mk,l.sg]},styles:["\n    dp-month-calendar {\n      display: inline-block;\n    }\n    dp-month-calendar .dp-month-calendar-container {\n      background: #FFFFFF;\n    }\n    dp-month-calendar .dp-calendar-wrapper.rtl {\n      direction: rtl;\n    }\n    dp-month-calendar .dp-calendar-month {\n      -webkit-box-sizing: border-box;\n              box-sizing: border-box;\n      width: 55px;\n      height: 55px;\n      cursor: pointer;\n    }\n    dp-month-calendar .dp-calendar-month.dp-selected {\n      background: rgba(16, 108, 200, 0.5);\n      color: #FFFFFF;\n    }\n    dp-month-calendar.dp-material .dp-calendar-weekday {\n      height: 25px;\n      width: 30px;\n      line-height: 25px;\n      background: #E0E0E0;\n      border: 1px solid #E0E0E0;\n    }\n    dp-month-calendar.dp-material .dp-calendar-wrapper {\n      padding: 15px;\n    }\n    dp-month-calendar.dp-material .dp-calendar-month {\n      -webkit-box-sizing: border-box;\n              box-sizing: border-box;\n      background: #FFFFFF;\n      border-radius: 0;\n      -webkit-transition: border-radius 0.1s ease;\n      transition: border-radius 0.1s ease;\n      border: none;\n      outline: none;\n      font-size: 0.7rem;\n    }\n    dp-month-calendar.dp-material .dp-calendar-month:hover {\n      border-radius: 50%;\n      background: #E0E0E0;\n    }\n    dp-month-calendar.dp-material .dp-selected {\n      background: rgba(16, 108, 200, 0.5);\n      color: #FFFFFF;\n      border-radius: 50%;\n    }\n    dp-month-calendar.dp-material .dp-selected:hover {\n      background: rgba(16, 108, 200, 0.5);\n    }\n    dp-month-calendar.dp-material .dp-current-month {\n      border-radius: 50%;\n      border: 1px solid rgba(16, 108, 200, 0.5);\n      padding: 0;\n    }\n  "],encapsulation:2,changeDetection:0}),Yt})();const rt=h;let st=(()=>{class Yt{constructor(X,ge,Me){this.timeSelectService=X,this.utilsService=ge,this.cd=Me,this.onChange=new t.vpe,this.isInited=!1,this.api={triggerChange:this.emitChange.bind(this)}}set selected(X){this._selected=X,this.calculateTimeParts(this.selected),this.showDecHour=this.timeSelectService.shouldShowDecrease(this.componentConfig,this._selected,"hour"),this.showDecMinute=this.timeSelectService.shouldShowDecrease(this.componentConfig,this._selected,"minute"),this.showDecSecond=this.timeSelectService.shouldShowDecrease(this.componentConfig,this._selected,"second"),this.showIncHour=this.timeSelectService.shouldShowIncrease(this.componentConfig,this._selected,"hour"),this.showIncMinute=this.timeSelectService.shouldShowIncrease(this.componentConfig,this._selected,"minute"),this.showIncSecond=this.timeSelectService.shouldShowIncrease(this.componentConfig,this._selected,"second"),this.showToggleMeridiem=this.timeSelectService.shouldShowToggleMeridiem(this.componentConfig,this._selected),this.onChangeCallback(this.processOnChangeCallback(X))}get selected(){return this._selected}ngOnInit(){this.isInited=!0,this.init(),this.initValidators()}init(){this.componentConfig=this.timeSelectService.getConfig(this.config),this.selected=this.selected||rt(),this.inputValueType=this.utilsService.getInputType(this.inputValue,!1)}ngOnChanges(X){if(this.isInited){const{minDate:ge,maxDate:Me,minTime:We,maxTime:Re}=X;this.init(),(ge||Me||We||Re)&&this.initValidators()}}writeValue(X){if(this.inputValue=X,X){const ge=this.utilsService.convertToMomentArray(X,this.timeSelectService.getTimeFormat(this.componentConfig),!1,this.componentConfig.locale)[0];ge.isValid()&&(this.selected=ge,this.inputValueType=this.utilsService.getInputType(this.inputValue,!1))}this.cd.markForCheck()}registerOnChange(X){this.onChangeCallback=X}onChangeCallback(X){}registerOnTouched(X){}validate(X){return this.minDate||this.maxDate||this.minTime||this.maxTime?this.validateFn(X.value):()=>null}processOnChangeCallback(X){return this.utilsService.convertFromMomentArray(this.timeSelectService.getTimeFormat(this.componentConfig),[X],this.componentConfig.returnedValueType||this.inputValueType,this.componentConfig.locale)}initValidators(){this.validateFn=this.utilsService.createValidator({minDate:this.minDate,maxDate:this.maxDate,minTime:this.minTime,maxTime:this.maxTime},void 0,"day",this.componentConfig.locale),this.onChangeCallback(this.processOnChangeCallback(this.selected))}decrease(X){this.selected=this.timeSelectService.decrease(this.componentConfig,this.selected,X),this.emitChange()}increase(X){this.selected=this.timeSelectService.increase(this.componentConfig,this.selected,X),this.emitChange()}toggleMeridiem(){this.selected=this.timeSelectService.toggleMeridiem(this.selected),this.emitChange()}emitChange(){this.onChange.emit({date:this.selected,selected:!1}),this.cd.markForCheck()}calculateTimeParts(X){this.hours=this.timeSelectService.getHours(this.componentConfig,X),this.minutes=this.timeSelectService.getMinutes(this.componentConfig,X),this.seconds=this.timeSelectService.getSeconds(this.componentConfig,X),this.meridiem=this.timeSelectService.getMeridiem(this.componentConfig,X)}}return Yt.\u0275fac=function(X){return new(X||Yt)(t.Y36(ye),t.Y36(Y),t.Y36(t.sBO))},Yt.\u0275cmp=t.Xpm({type:Yt,selectors:[["dp-time-select"]],hostVars:2,hostBindings:function(X,ge){2&X&&t.Tol(ge.theme)},inputs:{config:"config",displayDate:"displayDate",minDate:"minDate",maxDate:"maxDate",minTime:"minTime",maxTime:"maxTime",theme:"theme"},outputs:{onChange:"onChange"},features:[t._Bn([ye,{provide:e.JU,useExisting:(0,t.Gpc)(()=>Yt),multi:!0},{provide:e.Cf,useExisting:(0,t.Gpc)(()=>Yt),multi:!0}]),t.TTD],decls:12,vars:9,consts:[[1,"dp-time-select-controls"],[1,"dp-time-select-control","dp-time-select-control-hours"],["type","button",1,"dp-time-select-control-up",3,"disabled","click"],[1,"dp-time-select-display-hours",3,"innerText"],["type","button",1,"dp-time-select-control-down",3,"disabled","click"],[1,"dp-time-select-control","dp-time-select-separator",3,"innerText"],[1,"dp-time-select-control","dp-time-select-control-minutes"],[1,"dp-time-select-display-minutes",3,"innerText"],[4,"ngIf"],["class","dp-time-select-control dp-time-select-control-meridiem",4,"ngIf"],[1,"dp-time-select-control","dp-time-select-control-seconds"],[1,"dp-time-select-display-seconds",3,"innerText"],[1,"dp-time-select-control","dp-time-select-control-meridiem"],[1,"dp-time-select-display-meridiem",3,"innerText"]],template:function(X,ge){1&X&&(t.TgZ(0,"ul",0)(1,"li",1)(2,"button",2),t.NdJ("click",function(){return ge.increase("hour")}),t.qZA(),t._UZ(3,"span",3),t.TgZ(4,"button",4),t.NdJ("click",function(){return ge.decrease("hour")}),t.qZA()(),t._UZ(5,"li",5),t.TgZ(6,"li",6)(7,"button",2),t.NdJ("click",function(){return ge.increase("minute")}),t.qZA(),t._UZ(8,"span",7),t.TgZ(9,"button",4),t.NdJ("click",function(){return ge.decrease("minute")}),t.qZA()(),t.YNc(10,oe,6,4,"ng-container",8),t.YNc(11,B,4,3,"li",9),t.qZA()),2&X&&(t.xp6(2),t.Q6J("disabled",!ge.showIncHour),t.xp6(1),t.Q6J("innerText",ge.hours),t.xp6(1),t.Q6J("disabled",!ge.showDecHour),t.xp6(1),t.Q6J("innerText",ge.componentConfig.timeSeparator),t.xp6(2),t.Q6J("disabled",!ge.showIncMinute),t.xp6(1),t.Q6J("innerText",ge.minutes),t.xp6(1),t.Q6J("disabled",!ge.showDecMinute),t.xp6(1),t.Q6J("ngIf",ge.componentConfig.showSeconds),t.xp6(1),t.Q6J("ngIf",!ge.componentConfig.showTwentyFourHours))},directives:[l.O5],styles:["\n    dp-time-select {\n      display: inline-block;\n    }\n    dp-time-select .dp-time-select-controls {\n      margin: 0;\n      padding: 0;\n      text-align: center;\n      line-height: normal;\n      background: #FFFFFF;\n    }\n    dp-time-select .dp-time-select-control {\n      display: inline-block;\n      margin: 0 auto;\n      vertical-align: middle;\n      font-size: inherit;\n      letter-spacing: 1px;\n    }\n    dp-time-select .dp-time-select-control-up,\n    dp-time-select .dp-time-select-control-down {\n      position: relative;\n      display: block;\n      width: 24px;\n      height: 24px;\n      margin: 3px auto;\n      cursor: pointer;\n      color: #E0E0E0;\n    }\n    dp-time-select .dp-time-select-control-up::before,\n    dp-time-select .dp-time-select-control-down::before {\n      position: relative;\n      content: '';\n      display: inline-block;\n      height: 8px;\n      width: 8px;\n      vertical-align: baseline;\n      border-style: solid;\n      border-width: 2px 2px 0 0;\n      -webkit-transform: rotate(0deg);\n              transform: rotate(0deg);\n    }\n    dp-time-select .dp-time-select-control-up::before {\n      -webkit-transform: rotate(-45deg);\n              transform: rotate(-45deg);\n      top: 4px;\n    }\n    dp-time-select .dp-time-select-control-down::before {\n      -webkit-transform: rotate(135deg);\n              transform: rotate(135deg);\n    }\n    dp-time-select .dp-time-select-separator {\n      width: 5px;\n    }\n    dp-time-select.dp-material .dp-time-select-control-up,\n    dp-time-select.dp-material .dp-time-select-control-down {\n      -webkit-box-sizing: border-box;\n              box-sizing: border-box;\n      background: transparent;\n      border: none;\n      outline: none;\n      border-radius: 50%;\n    }\n    dp-time-select.dp-material .dp-time-select-control-up::before,\n    dp-time-select.dp-material .dp-time-select-control-down::before {\n      left: 0;\n    }\n    dp-time-select.dp-material .dp-time-select-control-up:hover,\n    dp-time-select.dp-material .dp-time-select-control-down:hover {\n      background: #E0E0E0;\n      color: #FFFFFF;\n    }\n  "],encapsulation:2,changeDetection:0}),Yt})(),Dt=(()=>{class Yt{constructor(){this.isLabelClickable=!1,this.showLeftNav=!0,this.showLeftSecondaryNav=!1,this.showRightNav=!0,this.showRightSecondaryNav=!1,this.leftNavDisabled=!1,this.leftSecondaryNavDisabled=!1,this.rightNavDisabled=!1,this.rightSecondaryNavDisabled=!1,this.showGoToCurrent=!0,this.onLeftNav=new t.vpe,this.onLeftSecondaryNav=new t.vpe,this.onRightNav=new t.vpe,this.onRightSecondaryNav=new t.vpe,this.onLabelClick=new t.vpe,this.onGoToCurrent=new t.vpe}leftNavClicked(){this.onLeftNav.emit()}leftSecondaryNavClicked(){this.onLeftSecondaryNav.emit()}rightNavClicked(){this.onRightNav.emit()}rightSecondaryNavClicked(){this.onRightSecondaryNav.emit()}labelClicked(){this.onLabelClick.emit()}}return Yt.\u0275fac=function(X){return new(X||Yt)},Yt.\u0275cmp=t.Xpm({type:Yt,selectors:[["dp-calendar-nav"]],hostVars:2,hostBindings:function(X,ge){2&X&&t.Tol(ge.theme)},inputs:{isLabelClickable:"isLabelClickable",showLeftNav:"showLeftNav",showLeftSecondaryNav:"showLeftSecondaryNav",showRightNav:"showRightNav",showRightSecondaryNav:"showRightSecondaryNav",leftNavDisabled:"leftNavDisabled",leftSecondaryNavDisabled:"leftSecondaryNavDisabled",rightNavDisabled:"rightNavDisabled",rightSecondaryNavDisabled:"rightSecondaryNavDisabled",showGoToCurrent:"showGoToCurrent",label:"label",theme:"theme"},outputs:{onLeftNav:"onLeftNav",onLeftSecondaryNav:"onLeftSecondaryNav",onRightNav:"onRightNav",onRightSecondaryNav:"onRightSecondaryNav",onLabelClick:"onLabelClick",onGoToCurrent:"onGoToCurrent"},decls:12,vars:15,consts:[[1,"dp-calendar-nav-container"],[1,"dp-nav-header"],[3,"hidden","innerText"],["type","button",1,"dp-nav-header-btn",3,"hidden","innerText","click"],[1,"dp-nav-btns-container"],[1,"dp-calendar-nav-container-left"],["type","button","class","dp-calendar-secondary-nav-left",3,"disabled","click",4,"ngIf"],["type","button",1,"dp-calendar-nav-left",3,"hidden","disabled","click"],["type","button","class","dp-current-location-btn",3,"click",4,"ngIf"],[1,"dp-calendar-nav-container-right"],["type","button",1,"dp-calendar-nav-right",3,"hidden","disabled","click"],["type","button","class","dp-calendar-secondary-nav-right",3,"disabled","click",4,"ngIf"],["type","button",1,"dp-calendar-secondary-nav-left",3,"disabled","click"],["type","button",1,"dp-current-location-btn",3,"click"],["type","button",1,"dp-calendar-secondary-nav-right",3,"disabled","click"]],template:function(X,ge){1&X&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"span",2),t.TgZ(3,"button",3),t.NdJ("click",function(){return ge.labelClicked()}),t.qZA()(),t.TgZ(4,"div",4)(5,"div",5),t.YNc(6,s,1,1,"button",6),t.TgZ(7,"button",7),t.NdJ("click",function(){return ge.leftNavClicked()}),t.qZA()(),t.YNc(8,_,1,0,"button",8),t.TgZ(9,"div",9)(10,"button",10),t.NdJ("click",function(){return ge.rightNavClicked()}),t.qZA(),t.YNc(11,w,1,1,"button",11),t.qZA()()()),2&X&&(t.xp6(2),t.Q6J("hidden",ge.isLabelClickable)("innerText",ge.label),t.uIk("data-hidden",ge.isLabelClickable),t.xp6(1),t.Q6J("hidden",!ge.isLabelClickable)("innerText",ge.label),t.uIk("data-hidden",!ge.isLabelClickable),t.xp6(3),t.Q6J("ngIf",ge.showLeftSecondaryNav),t.xp6(1),t.Q6J("hidden",!ge.showLeftNav)("disabled",ge.leftNavDisabled),t.uIk("data-hidden",!ge.showLeftNav),t.xp6(1),t.Q6J("ngIf",ge.showGoToCurrent),t.xp6(2),t.Q6J("hidden",!ge.showRightNav)("disabled",ge.rightNavDisabled),t.uIk("data-hidden",!ge.showRightNav),t.xp6(1),t.Q6J("ngIf",ge.showRightSecondaryNav))},directives:[l.O5],styles:["\n    dp-calendar-nav .dp-calendar-nav-container {\n      position: relative;\n      -webkit-box-sizing: border-box;\n              box-sizing: border-box;\n      height: 25px;\n      border: 1px solid #000000;\n      border-bottom: none;\n    }\n    dp-calendar-nav .dp-nav-date-btn {\n      -webkit-box-sizing: border-box;\n              box-sizing: border-box;\n      height: 25px;\n      border: 1px solid #000000;\n      border-bottom: none;\n    }\n    dp-calendar-nav .dp-nav-btns-container {\n      position: absolute;\n      top: 50%;\n      -webkit-transform: translateY(-50%);\n              transform: translateY(-50%);\n      right: 5px;\n      display: inline-block;\n      direction: ltr;\n    }\n    dp-calendar-nav .dp-calendar-nav-container-left,\n    dp-calendar-nav .dp-calendar-nav-container-right {\n      display: inline-block;\n    }\n    dp-calendar-nav .dp-calendar-nav-left,\n    dp-calendar-nav .dp-calendar-nav-right,\n    dp-calendar-nav .dp-calendar-secondary-nav-left,\n    dp-calendar-nav .dp-calendar-secondary-nav-right {\n      position: relative;\n      width: 16px;\n      cursor: pointer;\n    }\n    dp-calendar-nav .dp-calendar-nav-left,\n    dp-calendar-nav .dp-calendar-nav-right {\n      line-height: 0;\n    }\n    dp-calendar-nav .dp-calendar-nav-left::before,\n    dp-calendar-nav .dp-calendar-nav-right::before {\n      position: relative;\n      content: '';\n      display: inline-block;\n      height: 8px;\n      width: 8px;\n      vertical-align: baseline;\n      border-style: solid;\n      border-width: 2px 2px 0 0;\n      -webkit-transform: rotate(45deg);\n              transform: rotate(45deg);\n    }\n    dp-calendar-nav .dp-calendar-secondary-nav-left,\n    dp-calendar-nav .dp-calendar-secondary-nav-right {\n      padding: 0;\n    }\n    dp-calendar-nav .dp-calendar-secondary-nav-left::before,\n    dp-calendar-nav .dp-calendar-secondary-nav-right::before,\n    dp-calendar-nav .dp-calendar-secondary-nav-left::after,\n    dp-calendar-nav .dp-calendar-secondary-nav-right::after {\n      position: relative;\n      content: '';\n      display: inline-block;\n      height: 8px;\n      width: 8px;\n      vertical-align: baseline;\n      border-style: solid;\n      border-width: 2px 2px 0 0;\n      -webkit-transform: rotate(45deg);\n              transform: rotate(45deg);\n    }\n    dp-calendar-nav .dp-calendar-secondary-nav-left::before,\n    dp-calendar-nav .dp-calendar-secondary-nav-right::before {\n      right: -10px;\n    }\n    dp-calendar-nav .dp-calendar-secondary-nav-right {\n      left: initial;\n      right: 5px;\n    }\n    dp-calendar-nav .dp-calendar-nav-left::before {\n      position: relative;\n      content: '';\n      display: inline-block;\n      height: 8px;\n      width: 8px;\n      vertical-align: baseline;\n      border-style: solid;\n      border-width: 2px 2px 0 0;\n      -webkit-transform: rotate(-135deg);\n              transform: rotate(-135deg);\n    }\n    dp-calendar-nav .dp-calendar-secondary-nav-left::before,\n    dp-calendar-nav .dp-calendar-secondary-nav-left::after {\n      position: relative;\n      content: '';\n      display: inline-block;\n      height: 8px;\n      width: 8px;\n      vertical-align: baseline;\n      border-style: solid;\n      border-width: 2px 2px 0 0;\n      -webkit-transform: rotate(-135deg);\n              transform: rotate(-135deg);\n    }\n    dp-calendar-nav .dp-calendar-secondary-nav-left::before {\n      right: -10px;\n    }\n    dp-calendar-nav .dp-nav-header {\n      position: absolute;\n      top: 50%;\n      -webkit-transform: translateY(-50%);\n              transform: translateY(-50%);\n      left: 5px;\n      display: inline-block;\n      font-size: 13px;\n    }\n    dp-calendar-nav .dp-nav-header-btn {\n      cursor: pointer;\n    }\n    dp-calendar-nav .dp-current-location-btn {\n      position: relative;\n      top: -1px;\n      height: 16px;\n      width: 16px;\n      vertical-align: middle;\n      background: rgba(0, 0, 0, 0.6);\n      border: 1px solid rgba(0, 0, 0, 0.6);\n      outline: none;\n      border-radius: 50%;\n      -webkit-box-shadow: inset 0 0 0 3px #FFFFFF;\n              box-shadow: inset 0 0 0 3px #FFFFFF;\n      cursor: pointer;\n    }\n    dp-calendar-nav .dp-current-location-btn:hover {\n      background: #000000;\n    }\n    dp-calendar-nav.dp-material .dp-calendar-nav-container {\n      height: 30px;\n      border: 1px solid #E0E0E0;\n    }\n    dp-calendar-nav.dp-material .dp-calendar-nav-left,\n    dp-calendar-nav.dp-material .dp-calendar-nav-right,\n    dp-calendar-nav.dp-material .dp-calendar-secondary-nav-left,\n    dp-calendar-nav.dp-material .dp-calendar-secondary-nav-right {\n      border: none;\n      background: #FFFFFF;\n      outline: none;\n      font-size: 16px;\n      padding: 0;\n    }\n    dp-calendar-nav.dp-material .dp-calendar-secondary-nav-left,\n    dp-calendar-nav.dp-material .dp-calendar-secondary-nav-right {\n      width: 20px;\n    }\n    dp-calendar-nav.dp-material .dp-nav-header-btn {\n      height: 20px;\n      width: 80px;\n      border: none;\n      background: #FFFFFF;\n      outline: none;\n    }\n    dp-calendar-nav.dp-material .dp-nav-header-btn:hover {\n      background: rgba(0, 0, 0, 0.05);\n    }\n    dp-calendar-nav.dp-material .dp-nav-header-btn:active {\n      background: rgba(0, 0, 0, 0.1);\n    }\n  "],encapsulation:2,changeDetection:0}),Yt})(),ot=(()=>{class Yt{constructor(X,ge,Me){this.dayTimeCalendarService=X,this.utilsService=ge,this.cd=Me,this.onChange=new t.vpe,this.onGoToCurrent=new t.vpe,this.onLeftNav=new t.vpe,this.onRightNav=new t.vpe,this.isInited=!1,this.api={moveCalendarTo:this.moveCalendarTo.bind(this)}}set selected(X){this._selected=X,this.onChangeCallback(this.processOnChangeCallback(X))}get selected(){return this._selected}ngOnInit(){this.isInited=!0,this.init(),this.initValidators()}init(){this.componentConfig=this.dayTimeCalendarService.getConfig(this.config),this.inputValueType=this.utilsService.getInputType(this.inputValue,!1)}ngOnChanges(X){if(this.isInited){const{minDate:ge,maxDate:Me}=X;this.init(),(ge||Me)&&this.initValidators()}}writeValue(X){this.inputValue=X,X?(this.selected=this.utilsService.convertToMomentArray(X,this.componentConfig.format,!1,this.componentConfig.locale)[0],this.inputValueType=this.utilsService.getInputType(this.inputValue,!1)):this.selected=null,this.cd.markForCheck()}registerOnChange(X){this.onChangeCallback=X}onChangeCallback(X){}registerOnTouched(X){}validate(X){return this.minDate||this.maxDate?this.validateFn(X.value):()=>null}processOnChangeCallback(X){return this.utilsService.convertFromMomentArray(this.componentConfig.format,[X],this.componentConfig.returnedValueType||this.inputValueType,this.componentConfig.locale)}initValidators(){this.validateFn=this.utilsService.createValidator({minDate:this.minDate,maxDate:this.maxDate},void 0,"daytime",this.componentConfig.locale),this.onChangeCallback(this.processOnChangeCallback(this.selected))}dateSelected(X){this.selected=this.dayTimeCalendarService.updateDay(this.selected,X.date,this.config),this.emitChange()}timeChange(X){this.selected=this.dayTimeCalendarService.updateTime(this.selected,X.date),this.emitChange()}emitChange(){this.onChange.emit({date:this.selected,selected:!1})}moveCalendarTo(X){X&&this.dayCalendarRef.moveCalendarTo(X)}onLeftNavClick(X){this.onLeftNav.emit(X)}onRightNavClick(X){this.onRightNav.emit(X)}}return Yt.\u0275fac=function(X){return new(X||Yt)(t.Y36(at),t.Y36(Y),t.Y36(t.sBO))},Yt.\u0275cmp=t.Xpm({type:Yt,selectors:[["dp-day-time-calendar"]],viewQuery:function(X,ge){if(1&X&&t.Gf(y,5),2&X){let Me;t.iGM(Me=t.CRH())&&(ge.dayCalendarRef=Me.first)}},hostVars:2,hostBindings:function(X,ge){2&X&&t.Tol(ge.theme)},inputs:{config:"config",displayDate:"displayDate",minDate:"minDate",maxDate:"maxDate",theme:"theme"},outputs:{onChange:"onChange",onGoToCurrent:"onGoToCurrent",onLeftNav:"onLeftNav",onRightNav:"onRightNav"},features:[t._Bn([at,W,ye,{provide:e.JU,useExisting:(0,t.Gpc)(()=>Yt),multi:!0},{provide:e.Cf,useExisting:(0,t.Gpc)(()=>Yt),multi:!0}]),t.TTD],decls:4,vars:7,consts:[[3,"config","ngModel","theme","displayDate","onSelect","onGoToCurrent","onLeftNav","onRightNav"],["dayCalendar",""],[3,"config","ngModel","theme","onChange"],["timeSelect",""]],template:function(X,ge){1&X&&(t.TgZ(0,"dp-day-calendar",0,1),t.NdJ("onSelect",function(We){return ge.dateSelected(We)})("onGoToCurrent",function(){return ge.onGoToCurrent.emit()})("onLeftNav",function(We){return ge.onLeftNavClick(We)})("onRightNav",function(We){return ge.onRightNavClick(We)}),t.qZA(),t.TgZ(2,"dp-time-select",2,3),t.NdJ("onChange",function(We){return ge.timeChange(We)}),t.qZA()),2&X&&(t.Q6J("config",ge.componentConfig)("ngModel",ge._selected)("theme",ge.theme)("displayDate",ge.displayDate),t.xp6(2),t.Q6J("config",ge.componentConfig)("ngModel",ge._selected)("theme",ge.theme))},directives:[$e,e.JJ,e.On,st],styles:["\n    dp-day-time-calendar {\n      display: inline-block;\n    }\n    dp-day-time-calendar dp-time-select {\n      display: block;\n      border-top: 0;\n    }\n    dp-day-time-calendar.dp-material dp-time-select {\n      border-top: 0;\n    }\n  "],encapsulation:2,changeDetection:0}),Yt})(),nt=(()=>{class Yt{}return Yt.\u0275fac=function(X){return new(X||Yt)},Yt.\u0275mod=t.oAB({type:Yt}),Yt.\u0275inj=t.cJS({providers:[j,Y],imports:[[l.ez,e.u5]]}),Yt})()},32326:(M,b,n)=>{"use strict";n.d(b,{Nl:()=>G,x0:()=>J});var t=n(94650),e=n(36895);const l={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:"Unknown"},h={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/,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")},r={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-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-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|\n        SM-P601|SM-P605|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-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-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"),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-X103F|TB-X304F|TB-X304L|TB-X704F|TB-8703F|Tab2A7-10F|TB2-X30L"),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"),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/,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")},d={BLACKBERRY:"Blackberry",FIREFOX_OS:"Firefox-OS",CHROME_BOOK:"Chrome-Book",WINDOWS_PHONE:"Windows-Phone",VITA:"Vita",PS4:"PS4",CHROMECAST:"Chromecast",APPLE_TV:"Apple-TV",GOOGLE_TV:"Google-TV",ANDROID:"Android",Tesla:"Tesla",iPad:"iPad",IPHONE:"iPhone",iPod:"iPod",UNKNOWN:"Unknown",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",NINTENDO:"Nintendo",AMOI:"Amoi",INQ:"INQ",GENERIC_PHONE:"Generic Phone"},C=Object.assign(Object.assign(Object.assign({},h),r),{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})/}),N={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)/,iOS:/(iPhone OS\s*[0-9_]+)/},a={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/},O=(ie,K)=>(ie[K]=N[K],ie),H=Object.keys(N).reduce(O,{}),F=(ie,K)=>(ie[l[K]]=a[K],ie),V=Object.keys(a).reduce(F,{});var D=Object.freeze({__proto__:null,BROWSERS:l,MOBILES_RE:h,TABLETS_RE:r,DEVICES:d,OS:{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:"Unknown"},OS_VERSIONS:{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_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",UNKNOWN:"unknown"},OS_RE:{WINDOWS:{and:[{or:[/\bWindows|(Win\d\d)\b/,/\bWin 9x\b/]},{not:/\bWindows Phone\b/}]},MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\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/},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/},DEVICES_RE:C,OS_VERSIONS_RE_MAP:N,BROWSER_VERSIONS_RE_MAP:a,OS_VERSIONS_RE:H,BROWSER_VERSIONS_RE:V,\u02750:O,\u02751:F});class U{constructor(){}test(K,re){return"string"==typeof re&&(re=new RegExp(re)),re instanceof RegExp?re.test(K):re&&Array.isArray(re.and)?re.and.every(oe=>this.test(K,oe)):re&&Array.isArray(re.or)?re.or.some(oe=>this.test(K,oe)):!(!re||!re.not||this.test(K,re.not))}exec(K,re){return"string"==typeof re&&(re=new RegExp(re)),re instanceof RegExp?re.exec(K):re&&Array.isArray(re)?re.reduce((oe,B)=>oe||this.exec(K,B),null):null}}const q="iPad";let J=(()=>{class ie{constructor(re){this.platformId=re,this.ua="",this.userAgent="",this.os="",this.browser="",this.device="",this.os_version="",this.browser_version="",this.reTree=new U,(0,e.NF)(this.platformId)&&typeof window<"u"&&(this.userAgent=window.navigator.userAgent),this.setDeviceInfo(this.userAgent)}setDeviceInfo(re=this.userAgent){re!==this.userAgent&&(this.userAgent=re);const oe=[{const:"OS",prop:"os"},{const:"BROWSERS",prop:"browser"},{const:"DEVICES",prop:"device"},{const:"OS_VERSIONS",prop:"os_version"}];if(oe.forEach(B=>{this[B.prop]=Object.keys(D[B.const]).reduce((s,_)=>"device"===D[B.const][_]&&(0,e.NF)(this.platformId)&&(this.reTree.test(this.userAgent,r[q])||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)?(s[D[B.const][_]]=q,Object):(s[D[B.const][_]]=this.reTree.test(re,D[`${B.const}_RE`][_]),s),{})}),oe.forEach(B=>{this[B.prop]=Object.keys(D[B.const]).map(s=>D[B.const][s]).reduce((s,_)=>"device"===B.prop&&s===D[B.const].ANDROID?this[B.prop][_]?_:s:s===D[B.const].UNKNOWN&&this[B.prop][_]?_:s,D[B.const].UNKNOWN)}),this.browser_version="0",this.browser!==l.UNKNOWN){const s=this.reTree.exec(re,V[this.browser]);s&&(this.browser_version=s[1])}}getDeviceInfo(){return{userAgent:this.userAgent,os:this.os,browser:this.browser,device:this.device,os_version:this.os_version,browser_version:this.browser_version}}isMobile(re=this.userAgent){return!this.isTablet(re)&&!!Object.keys(h).find(B=>this.reTree.test(re,h[B]))}isTablet(re=this.userAgent){return!(!(0,e.NF)(this.platformId)||!(this.reTree.test(this.userAgent,r[q])||typeof navigator<"u"&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1))||!!Object.keys(r).find(B=>!!this.reTree.test(re,r[B]))}isDesktop(re=this.userAgent){const oe=[d.PS4,d.CHROME_BOOK,d.UNKNOWN];return(this.device!==d.UNKNOWN||!this.isMobile(re)&&!this.isTablet(re))&&oe.indexOf(this.device)>-1}}return ie.\u0275fac=function(re){return new(re||ie)(t.LFG(t.Lbi))},ie.\u0275prov=(0,t.Yz7)({factory:function(){return new ie((0,t.LFG)(t.Lbi))},token:ie,providedIn:"root"}),ie})(),G=(()=>{class ie{static forRoot(){return{ngModule:ie,providers:[J]}}}return ie.\u0275fac=function(re){return new(re||ie)},ie.\u0275mod=t.oAB({type:ie}),ie.\u0275inj=t.cJS({imports:[[e.ez]]}),ie})()},31603:(M,b,n)=>{"use strict";n.d(b,{R:()=>At,X:()=>Ze});var t=n(94650),e=n(21086),l=n(23753),h=n(61709),r=n(24850),d=n(2994),y=n(92198),g=n(43489),p=n(20353);class C{constructor(Be,Lt){this.period=Be,this.scheduler=Lt}call(Be,Lt){return Lt.subscribe(new N(Be,this.period,this.scheduler))}}class N extends g.L{constructor(Be,Lt,_e){super(Be),this.period=Lt,this.scheduler=_e,this.hasValue=!1,this.add(_e.schedule(a,Lt,{subscriber:this,period:Lt}))}_next(Be){this.lastValue=Be,this.hasValue=!0}notifyNext(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))}}function a(at){let{subscriber:Be,period:Lt}=at;Be.notifyNext(),this.schedule(at,Lt)}function O(at,Be,Lt,_e){const ne=window&&!!window.document&&window.document.documentElement;let be=ne&&Be?window:Lt;if(at&&(be=at&&ne&&"string"==typeof at?function H(at,Be,Lt){return(Lt?window.document:Be).querySelector(at)}(at,Lt.nativeElement,_e):at,!be))throw new Error("ngx-infinite-scroll {resolveContainerElement()}: selector for");return be}function F(at){return at&&!at.firstChange}const D={clientHeight:"clientHeight",offsetHeight:"offsetHeight",scrollHeight:"scrollHeight",pageYOffset:"pageYOffset",offsetTop:"offsetTop",scrollTop:"scrollTop",top:"top"},U={clientHeight:"clientWidth",offsetHeight:"offsetWidth",scrollHeight:"scrollWidth",pageYOffset:"pageXOffset",offsetTop:"offsetLeft",scrollTop:"scrollLeft",top:"left"};class q{constructor(Be=!0){this.vertical=Be,this.propsMap=Be?D:U}clientHeightKey(){return this.propsMap.clientHeight}offsetHeightKey(){return this.propsMap.offsetHeight}scrollHeightKey(){return this.propsMap.scrollHeight}pageYOffsetKey(){return this.propsMap.pageYOffset}offsetTopKey(){return this.propsMap.offsetTop}scrollTopKey(){return this.propsMap.scrollTop}topKey(){return this.propsMap.top}}function K(at){return["Window","global"].some(Lt=>Object.prototype.toString.call(at).includes(Lt))}function re(at,Be){return at?Be.document.documentElement:null}function oe(at,Be){const Lt=function w({container:at,isWindow:Be,axis:Lt}){const{offsetHeightKey:_e,clientHeightKey:ne}=_(Lt);return E(at,Be,_e,ne)}(Be);return Be.isWindow?function B(at,Be,Lt){const{axis:_e,container:ne,isWindow:be}=Lt,{offsetHeightKey:Te,clientHeightKey:$e}=_(_e),ft=at+j(re(be,ne),_e,be),Ge=E(Be.nativeElement,be,Te,$e),Ft=function x(at,Be,Lt){const _e=Be.topKey();if(at.getBoundingClientRect)return at.getBoundingClientRect()[_e]+j(at,Be,Lt)}(Be.nativeElement,_e,be)+Ge;return{height:at,scrolled:ft,totalToScroll:Ft,isWindow:be}}(Lt,at,Be):function s(at,Be,Lt){const{axis:_e,container:ne}=Lt;return{height:at,scrolled:ne[_e.scrollTopKey()],totalToScroll:ne[_e.scrollHeightKey()],isWindow:!1}}(Lt,0,Be)}function _(at){return{offsetHeightKey:at.offsetHeightKey(),clientHeightKey:at.clientHeightKey()}}function E(at,Be,Lt,_e){if(isNaN(at[Lt])){const ne=re(Be,at);return ne?ne[_e]:0}return at[Lt]}function j(at,Be,Lt){const _e=Be.pageYOffsetKey(),ne=Be.scrollTopKey(),be=Be.offsetTopKey();return isNaN(window[_e])?re(Lt,at)[ne]:at.ownerDocument?at.ownerDocument.defaultView[_e]:at[be]}function $(at,Be,Lt){let _e,ne;if(at.totalToScroll<=0)return!1;const be=at.isWindow?at.scrolled:at.height+at.scrolled;return Lt?(_e=(at.totalToScroll-be)/at.totalToScroll,ne=Be.down/10):(_e=at.scrolled/(at.scrolled+(at.totalToScroll-be)),ne=Be.up/10),_e<=ne}class W{constructor({totalToScroll:Be}){this.lastScrollPosition=0,this.lastTotalToScroll=0,this.totalToScroll=0,this.triggered={down:0,up:0},this.totalToScroll=Be}updateScrollPosition(Be){return this.lastScrollPosition=Be}updateTotalToScroll(Be){this.lastTotalToScroll!==Be&&(this.lastTotalToScroll=this.totalToScroll,this.totalToScroll=Be)}updateScroll(Be,Lt){this.updateScrollPosition(Be),this.updateTotalToScroll(Lt)}updateTriggeredFlag(Be,Lt){Lt?this.triggered.down=Be:this.triggered.up=Be}isTriggeredScroll(Be,Lt){return Lt?this.triggered.down===Be:this.triggered.up===Be}}function fe(at){const{scrollContainer:Be,scrollWindow:Lt,element:_e,fromRoot:ne}=at,be=function G({windowElement:at,axis:Be}){return function ie(at,Be){return Object.assign({},at,{container:at.isWindow||Be&&!Be.nativeElement?Be:Be.nativeElement})}({axis:Be,isWindow:K(at)},at)}({axis:new q(!at.horizontal),windowElement:O(Be,Lt,_e,ne)}),Te=new W({totalToScroll:oe(_e,be)}),ft={up:at.upDistance,down:at.downDistance};return function ae(at){let Be=(0,l.R)(at.container,"scroll");return at.throttle&&(Be=Be.pipe(function f(at,Be=p.P){return Lt=>Lt.lift(new C(at,Be))}(at.throttle))),Be}({container:be.container,throttle:at.throttle}).pipe((0,h.zg)(()=>(0,e.of)(oe(_e,be))),(0,r.U)(Ge=>function ye(at,Be,Lt){const{scrollDown:_e,fire:ne}=function u(at,Be,Lt){const _e=function Y(at,Be){return at<Be.scrolled}(at,Be);return{fire:$(Be,Lt,_e),scrollDown:_e}}(at,Be,Lt);return{scrollDown:_e,fire:ne,stats:Be}}(Te.lastScrollPosition,Ge,ft)),(0,d.b)(({stats:Ge})=>Te.updateScroll(Ge.scrolled,Ge.totalToScroll)),(0,y.h)(({fire:Ge,scrollDown:Ft,stats:{totalToScroll:br}})=>function J(at,Be,Lt){return!!(at&&Be||!Lt&&Be)}(at.alwaysCallback,Ge,Te.isTriggeredScroll(br,Ft))),(0,d.b)(({scrollDown:Ge,stats:{totalToScroll:Ft}})=>{Te.updateTriggeredFlag(Ft,Ge)}),(0,r.U)(Ot))}function Ot(at){const{scrollDown:Be,stats:{scrolled:Lt}}=at;return{type:Be?"[NGX_ISE] DOWN":"[NGX_ISE] UP",payload:{currentScrollPosition:Lt}}}let At=(()=>{class at{constructor(Lt,_e){this.element=Lt,this.zone=_e,this.scrolled=new t.vpe,this.scrolledUp=new t.vpe,this.infiniteScrollDistance=2,this.infiniteScrollUpDistance=1.5,this.infiniteScrollThrottle=150,this.infiniteScrollDisabled=!1,this.infiniteScrollContainer=null,this.scrollWindow=!0,this.immediateCheck=!1,this.horizontal=!1,this.alwaysCallback=!1,this.fromRoot=!1}ngAfterViewInit(){this.infiniteScrollDisabled||this.setup()}ngOnChanges({infiniteScrollContainer:Lt,infiniteScrollDisabled:_e,infiniteScrollDistance:ne}){const be=F(Lt),Te=F(_e),$e=F(ne),ft=!Te&&!this.infiniteScrollDisabled||Te&&!_e.currentValue||$e;(be||Te||$e)&&(this.destroyScroller(),ft&&this.setup())}setup(){(function V(){return typeof window<"u"})()&&this.zone.runOutsideAngular(()=>{this.disposeScroller=fe({fromRoot:this.fromRoot,alwaysCallback:this.alwaysCallback,disable:this.infiniteScrollDisabled,downDistance:this.infiniteScrollDistance,element:this.element,horizontal:this.horizontal,scrollContainer:this.infiniteScrollContainer,scrollWindow:this.scrollWindow,throttle:this.infiniteScrollThrottle,upDistance:this.infiniteScrollUpDistance}).subscribe(Lt=>this.zone.run(()=>this.handleOnScroll(Lt)))})}handleOnScroll({type:Lt,payload:_e}){switch(Lt){case"[NGX_ISE] DOWN":return this.scrolled.emit(_e);case"[NGX_ISE] UP":return this.scrolledUp.emit(_e);default:return}}ngOnDestroy(){this.destroyScroller()}destroyScroller(){this.disposeScroller&&this.disposeScroller.unsubscribe()}}return at.\u0275fac=function(Lt){return new(Lt||at)(t.Y36(t.SBq),t.Y36(t.R0b))},at.\u0275dir=t.lG2({type:at,selectors:[["","infiniteScroll",""],["","infinite-scroll",""],["","data-infinite-scroll",""]],inputs:{infiniteScrollDistance:"infiniteScrollDistance",infiniteScrollUpDistance:"infiniteScrollUpDistance",infiniteScrollThrottle:"infiniteScrollThrottle",infiniteScrollDisabled:"infiniteScrollDisabled",infiniteScrollContainer:"infiniteScrollContainer",scrollWindow:"scrollWindow",immediateCheck:"immediateCheck",horizontal:"horizontal",alwaysCallback:"alwaysCallback",fromRoot:"fromRoot"},outputs:{scrolled:"scrolled",scrolledUp:"scrolledUp"},features:[t.TTD]}),at})(),Ze=(()=>{class at{}return at.\u0275fac=function(Lt){return new(Lt||at)},at.\u0275mod=t.oAB({type:at}),at.\u0275inj=t.cJS({providers:[],imports:[[]]}),at})()},39310:(M,b,n)=>{"use strict";n.d(b,{e$:()=>re,CT:()=>oe});var t=n(94650),e=n(36895),l=n(5254),h=n(21086),r=n(90352),d=n(8929),y=n(591),g=n(88514),p=n(56498),f=n(24850),C=n(30839),N=n(82536),O=n(74327),H=n(57770),F=n(92198),V=n(87545),D=n(7625);const U=["container"],q=new t.OlP("LottieOptions");let G=(()=>{class E{constructor(j,$){this.ngZone=j,this.options=$,this.player$=function J(E){const x=E();return x instanceof Promise?(0,l.D)(x).pipe((0,f.U)(j=>j.default||j),function a(E,x,j,$){j&&"function"!=typeof j&&($=j);const Y="function"==typeof j?j:void 0,u=new C.t(E,x,$);return W=>(0,N.O)(()=>u,Y)(W)}(1),(0,O.x)()):(0,h.of)(x)}(this.options.player).pipe((0,H.QV)(r.Z))}loadAnimation(j){return this.player$.pipe((0,f.U)($=>this.createAnimationItem($,j)))}resolveOptions(j,$){return Object.assign({container:$,renderer:"svg",loop:!0,autoplay:!0},j)}createAnimationItem(j,$){return this.ngZone.runOutsideAngular(()=>j.loadAnimation($))}}return E.\u0275fac=function(j){return new(j||E)(t.LFG(t.R0b),t.LFG(q))},E.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac}),E})(),ie=(()=>{class E{constructor(j,$,Y){this.ngZone=j,this.platformId=$,this.animationLoader=Y,this.options=null,this.containerClass=null,this.styles=null,this.animationCreated=this.getAnimationItem(),this.complete=this.awaitAnimationItemAndStartListening("complete"),this.loopComplete=this.awaitAnimationItemAndStartListening("loopComplete"),this.enterFrame=this.awaitAnimationItemAndStartListening("enterFrame"),this.segmentStart=this.awaitAnimationItemAndStartListening("segmentStart"),this.configReady=this.awaitAnimationItemAndStartListening("config_ready"),this.dataReady=this.awaitAnimationItemAndStartListening("data_ready"),this.domLoaded=this.awaitAnimationItemAndStartListening("DOMLoaded"),this.destroy=this.awaitAnimationItemAndStartListening("destroy"),this.error=this.awaitAnimationItemAndStartListening("error"),this.destroy$=new d.xQ,this.loadAnimation$=new d.xQ,this.animationItem$=new y.X(null),this.setupLoadAnimationListener()}ngOnDestroy(){this.destroy$.next(),this.destroyAnimation()}loadAnimation(j,$){this.loadAnimation$.next([j,$])}getAnimationItem(){return(0,g.P)(()=>this.animationItem$).pipe((0,F.h)(j=>null!==j))}awaitAnimationItemAndStartListening(j){return this.getAnimationItem().pipe((0,V.w)($=>new p.y(Y=>{$.addEventListener(j,u=>{this.ngZone.runOutsideAngular(()=>{Y.next(u)})})})))}setupLoadAnimationListener(){this.loadAnimation$.pipe((0,F.h)(([j])=>(0,e.NF)(this.platformId)&&void 0!==j.options),(0,V.w)(([j,$])=>(this.destroyAnimation(),this.animationLoader.loadAnimation(this.animationLoader.resolveOptions(j.options.currentValue,$)))),(0,D.R)(this.destroy$)).subscribe(j=>{this.animationItem$.next(j)})}destroyAnimation(){const j=this.animationItem$.getValue();null!==j&&(j.destroy(),this.animationItem$.next(null))}}return E.\u0275fac=function(j){return new(j||E)(t.Y36(t.R0b),t.Y36(t.Lbi),t.Y36(G))},E.\u0275dir=t.lG2({type:E,selectors:[["","lottie",""]],inputs:{options:"options",containerClass:"containerClass",styles:"styles"},outputs:{animationCreated:"animationCreated",complete:"complete",loopComplete:"loopComplete",enterFrame:"enterFrame",segmentStart:"segmentStart",configReady:"configReady",dataReady:"dataReady",domLoaded:"domLoaded",destroy:"destroy",error:"error"}}),E})(),re=(()=>{class E extends ie{constructor(j,$,Y){super(j,$,Y),this.width=null,this.height=null,this.container=null}ngOnChanges(j){super.loadAnimation(j,this.container.nativeElement)}}return E.\u0275fac=function(j){return new(j||E)(t.Y36(t.R0b),t.Y36(t.Lbi),t.Y36(G))},E.\u0275cmp=t.Xpm({type:E,selectors:[["ng-lottie"]],viewQuery:function(j,$){if(1&j&&t.Gf(U,7),2&j){let Y;t.iGM(Y=t.CRH())&&($.container=Y.first)}},inputs:{width:"width",height:"height"},features:[t.qOj,t.TTD],decls:2,vars:6,consts:[[3,"ngStyle","ngClass"],["container",""]],template:function(j,$){1&j&&t._UZ(0,"div",0,1),2&j&&(t.Udp("width",$.width||"100%")("height",$.height||"100%"),t.Q6J("ngStyle",$.styles)("ngClass",$.containerClass))},directives:[e.PC,e.mk],encapsulation:2,changeDetection:0}),E})(),oe=(()=>{class E{static forRoot(j){return{ngModule:E,providers:[G,{provide:q,useValue:j}]}}}return E.\u0275fac=function(j){return new(j||E)},E.\u0275mod=t.oAB({type:E}),E.\u0275inj=t.cJS({imports:[[e.ez]]}),E})()},83905:(M,b,n)=>{"use strict";n.d(b,{Fy:()=>Ut,bB:()=>tt,Mp:()=>wt,tJ:()=>Ue});var t=n(70655),e=n(94650),l=n(36895),h=n(8929),r=n(36787),d=n(21086),y=n(5254),g=n(2994),p=n(92198),f=n(87545),C=n(87224),N=n(72986),a=n(43489);function O(Ke){return kt=>kt.lift(new H(Ke))}class H{constructor(kt){this.total=kt}call(kt,xe){return xe.subscribe(new F(kt,this.total))}}class F extends a.L{constructor(kt,xe){super(kt),this.total=xe,this.count=0}_next(kt){++this.count>this.total&&this.destination.next(kt)}}var V=n(24850),D=n(92014),U=n(92821),q=n(47314),J=n(4843);function ie(Ke,kt,xe){return 0===xe?[kt]:(Ke.push(kt),Ke)}var re=n(40943),oe=n(13861),B=n(37340),s=n(11481);const _=function(Ke,kt){return{isMouseDragable:Ke,isTouchDragable:kt}};function w(Ke,kt){if(1&Ke&&(e.TgZ(0,"div",4),e._UZ(1,"owl-stage",5),e.qZA()),2&Ke){const xe=e.oxw();e.xp6(1),e.Q6J("owlDraggable",e.WLB(3,_,null==xe.owlDOMData?null:xe.owlDOMData.isMouseDragable,null==xe.owlDOMData?null:xe.owlDOMData.isTouchDragable))("stageData",xe.stageData)("slidesData",xe.slidesData)}}const E=function(Ke,kt){return{active:Ke,"owl-dot-text":kt}};function x(Ke,kt){if(1&Ke){const xe=e.EpF();e.TgZ(0,"div",11),e.NdJ("click",function(){const St=e.CHM(xe).$implicit;return e.oxw(2).moveByDot(St.id)}),e._UZ(1,"span",12),e.qZA()}if(2&Ke){const xe=kt.$implicit;e.Q6J("ngClass",e.WLB(2,E,xe.active,xe.showInnerContent)),e.xp6(1),e.Q6J("innerHTML",xe.innerContent,e.oJD)}}const j=function(Ke){return{disabled:Ke}};function $(Ke,kt){if(1&Ke){const xe=e.EpF();e.ynx(0),e.TgZ(1,"div",6)(2,"div",7),e.NdJ("click",function(){return e.CHM(xe),e.oxw().prev()}),e.qZA(),e.TgZ(3,"div",8),e.NdJ("click",function(){return e.CHM(xe),e.oxw().next()}),e.qZA()(),e.TgZ(4,"div",9),e.YNc(5,x,2,5,"div",10),e.qZA(),e.BQk()}if(2&Ke){const xe=e.oxw();e.xp6(1),e.Q6J("ngClass",e.VKq(7,j,null==xe.navData?null:xe.navData.disabled)),e.xp6(1),e.Q6J("ngClass",e.VKq(9,j,null==xe.navData||null==xe.navData.prev?null:xe.navData.prev.disabled))("innerHTML",null==xe.navData||null==xe.navData.prev?null:xe.navData.prev.htmlText,e.oJD),e.xp6(1),e.Q6J("ngClass",e.VKq(11,j,null==xe.navData||null==xe.navData.next?null:xe.navData.next.disabled))("innerHTML",null==xe.navData||null==xe.navData.next?null:xe.navData.next.htmlText,e.oJD),e.xp6(1),e.Q6J("ngClass",e.VKq(13,j,null==xe.dotsData?null:xe.dotsData.disabled)),e.xp6(1),e.Q6J("ngForOf",null==xe.dotsData?null:xe.dotsData.dots)}}const Y=function(Ke,kt,xe,Fe,lt){return{"owl-rtl":Ke,"owl-loaded":kt,"owl-responsive":xe,"owl-drag":Fe,"owl-grab":lt}};function u(Ke,kt){}function W(Ke,kt){if(1&Ke&&e.YNc(0,u,0,0,"ng-template",4),2&Ke){const xe=e.oxw().$implicit;e.Q6J("ngTemplateOutlet",xe.tplRef)}}const fe=function(Ke,kt,xe,Fe){return{width:Ke,"margin-left":kt,"margin-right":xe,left:Fe}};function ae(Ke,kt){if(1&Ke){const xe=e.EpF();e.ynx(0),e.TgZ(1,"div",2),e.NdJ("animationend",function(){const St=e.CHM(xe).$implicit;return e.oxw().clear(St.id)}),e.YNc(2,W,1,1,null,3),e.qZA(),e.BQk()}if(2&Ke){const xe=kt.$implicit;e.xp6(1),e.Q6J("ngClass",xe.classes)("ngStyle",e.l5B(4,fe,xe.width+"px",xe.marginL?xe.marginL+"px":"",xe.marginR?xe.marginR+"px":"",xe.left))("@autoHeight",xe.heightState),e.xp6(1),e.Q6J("ngIf",xe.load)}}const ye=function(Ke,kt,xe,Fe,lt){return{width:Ke,transform:kt,transition:xe,"padding-left":Fe,"padding-right":lt}};let Qe=(()=>{let Ke=class{constructor(xe){this.eventManager=xe,this.resizeSubject=new h.xQ,this.eventManager.addGlobalEventListener("window","resize",this.onResize.bind(this)),this.eventManager.addGlobalEventListener("window","onload",this.onLoaded.bind(this))}get onResize$(){return this.resizeSubject.asObservable()}onResize(xe){this.resizeSubject.next(xe.target)}onLoaded(xe){this.windowWidth=xe.target}};return Ke.\u0275fac=function(xe){return new(xe||Ke)(e.LFG(s.Qz))},Ke.\u0275prov=e.Yz7({token:Ke,factory:function(kt){return Ke.\u0275fac(kt)}}),Ke})();class Ot{constructor(){this.items=3,this.skip_validateItems=!1,this.loop=!1,this.center=!1,this.rewind=!1,this.mouseDrag=!0,this.touchDrag=!0,this.pullDrag=!0,this.freeDrag=!1,this.margin=0,this.stagePadding=0,this.merge=!1,this.mergeFit=!0,this.autoWidth=!1,this.startPosition=0,this.rtl=!1,this.smartSpeed=250,this.fluidSpeed=!1,this.dragEndSpeed=!1,this.responsive={},this.responsiveRefreshRate=200,this.nav=!1,this.navText=["prev","next"],this.navSpeed=!1,this.slideBy=1,this.dots=!0,this.dotsEach=!1,this.dotsData=!1,this.dotsSpeed=!1,this.autoplay=!1,this.autoplayTimeout=5e3,this.autoplayHoverPause=!1,this.autoplaySpeed=!1,this.autoplayMouseleaveTimeout=1,this.lazyLoad=!1,this.lazyLoadEager=0,this.slideTransition="",this.animateOut=!1,this.animateIn=!1,this.autoHeight=!1,this.URLhashListener=!1}}class At{constructor(){this.items="number",this.skip_validateItems="boolean",this.loop="boolean",this.center="boolean",this.rewind="boolean",this.mouseDrag="boolean",this.touchDrag="boolean",this.pullDrag="boolean",this.freeDrag="boolean",this.margin="number",this.stagePadding="number",this.merge="boolean",this.mergeFit="boolean",this.autoWidth="boolean",this.startPosition="number|string",this.rtl="boolean",this.smartSpeed="number",this.fluidSpeed="boolean",this.dragEndSpeed="number|boolean",this.responsive={},this.responsiveRefreshRate="number",this.nav="boolean",this.navText="string[]",this.navSpeed="number|boolean",this.slideBy="number|string",this.dots="boolean",this.dotsEach="number|boolean",this.dotsData="boolean",this.dotsSpeed="number|boolean",this.autoplay="boolean",this.autoplayTimeout="number",this.autoplayHoverPause="boolean",this.autoplaySpeed="number|boolean",this.autoplayMouseleaveTimeout="number",this.lazyLoad="boolean",this.lazyLoadEager="number",this.slideTransition="string",this.animateOut="string|boolean",this.animateIn="string|boolean",this.autoHeight="boolean",this.URLhashListener="boolean"}}let Ze=(()=>{let Ke=class{constructor(xe){this.errorHandler=xe}log(xe,...Fe){(0,e.X6Q)()&&console.log(xe,...Fe)}error(xe){this.errorHandler.handleError(xe)}warn(xe,...Fe){console.warn(xe,...Fe)}};return Ke.\u0275fac=function(xe){return new(xe||Ke)(e.LFG(e.qLn))},Ke.\u0275prov=e.Yz7({token:Ke,factory:function(kt){return Ke.\u0275fac(kt)}}),Ke})();var Be=(()=>{return(Ke=Be||(Be={})).Event="event",Ke.State="state",Be;var Ke})(),Lt=(()=>{return(Ke=Lt||(Lt={})).Default="default",Ke.Inner="inner",Ke.Outer="outer",Lt;var Ke})();let be=(()=>{let Ke=class{constructor(xe){this.logger=xe,this._viewSettingsShipper$=new h.xQ,this._initializedCarousel$=new h.xQ,this._changeSettingsCarousel$=new h.xQ,this._changedSettingsCarousel$=new h.xQ,this._translateCarousel$=new h.xQ,this._translatedCarousel$=new h.xQ,this._resizeCarousel$=new h.xQ,this._resizedCarousel$=new h.xQ,this._refreshCarousel$=new h.xQ,this._refreshedCarousel$=new h.xQ,this._dragCarousel$=new h.xQ,this._draggedCarousel$=new h.xQ,this.settings={items:0},this.owlDOMData={rtl:!1,isResponsive:!1,isRefreshed:!1,isLoaded:!1,isLoading:!1,isMouseDragable:!1,isGrab:!1,isTouchDragable:!1},this.stageData={transform:"translate3d(0px,0px,0px)",transition:"0s",width:0,paddingL:0,paddingR:0},this._items=[],this._widths=[],this._supress={},this._plugins={},this._current=null,this._clones=[],this._mergers=[],this._speed=null,this._coordinates=[],this._breakpoint=null,this.clonedIdPrefix="cloned-",this._options={},this._invalidated={},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},this._pipe=[{filter:["width","items","settings"],run:Fe=>{Fe.current=this._items&&this._items[this.relative(this._current)].id}},{filter:["width","items","settings"],run:Fe=>{const lt=this.settings.margin||"",qe=this.settings.rtl,ke={"margin-left":qe?lt:"","margin-right":qe?"":lt};!this.settings.autoWidth||this.slidesData.forEach(ct=>{ct.marginL=ke["margin-left"],ct.marginR=ke["margin-right"]}),Fe.css=ke}},{filter:["width","items","settings"],run:Fe=>{const lt=+(this.width()/this.settings.items).toFixed(3)-this.settings.margin,St=!this.settings.autoWidth,qe=[];let ke=null,ct=this._items.length;for(Fe.items={merge:!1,width:lt};ct--;)ke=this._mergers[ct],ke=this.settings.mergeFit&&Math.min(ke,this.settings.items)||ke,Fe.items.merge=ke>1||Fe.items.merge,qe[ct]=St?lt*ke:this._items[ct].width?this._items[ct].width:lt;this._widths=qe,this.slidesData.forEach((vt,$t)=>{vt.width=this._widths[$t],vt.marginR=Fe.css["margin-right"],vt.marginL=Fe.css["margin-left"]})}},{filter:["items","settings"],run:()=>{const Fe=[],lt=this._items,St=this.settings,qe=Math.max(2*St.items,4),ke=2*Math.ceil(lt.length/2);let ct=[],vt=[],$t=St.loop&&lt.length?St.rewind?qe:Math.max(qe,ke):0;for($t/=2;$t--;)Fe.push(this.normalize(Fe.length/2,!0)),ct.push(Object.assign({},this.slidesData[Fe[Fe.length-1]])),Fe.push(this.normalize(lt.length-1-(Fe.length-1)/2,!0)),vt.unshift(Object.assign({},this.slidesData[Fe[Fe.length-1]]));this._clones=Fe,ct=ct.map(Vr=>(Vr.id=`${this.clonedIdPrefix}${Vr.id}`,Vr.isActive=!1,Vr.isCloned=!0,Vr)),vt=vt.map(Vr=>(Vr.id=`${this.clonedIdPrefix}${Vr.id}`,Vr.isActive=!1,Vr.isCloned=!0,Vr)),this.slidesData=vt.concat(this.slidesData).concat(ct)}},{filter:["width","items","settings"],run:()=>{const Fe=this.settings.rtl?1:-1,lt=this._clones.length+this._items.length,St=[];let qe=-1,ke=0,ct=0;for(;++qe<lt;)ke=St[qe-1]||0,ct=this._widths[this.relative(qe)]+this.settings.margin,St.push(ke+ct*Fe);this._coordinates=St}},{filter:["width","items","settings"],run:()=>{const Fe=this.settings.stagePadding,lt=this._coordinates,St={width:Math.ceil(Math.abs(lt[lt.length-1]))+2*Fe,"padding-left":Fe||"","padding-right":Fe||""};this.stageData.width=St.width,this.stageData.paddingL=St["padding-left"],this.stageData.paddingR=St["padding-right"]}},{filter:["width","items","settings"],run:Fe=>{let lt=Fe.current?this.slidesData.findIndex(St=>St.id===Fe.current):0;lt=Math.max(this.minimum(),Math.min(this.maximum(),lt)),this.reset(lt)}},{filter:["position"],run:()=>{this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:()=>{const Fe=this.settings.rtl?1:-1,lt=2*this.settings.stagePadding,St=[];let qe,ke,ct,vt,$t,Vr;if(qe=this.coordinates(this.current()),"number"==typeof qe?qe+=lt:qe=0,ke=qe+this.width()*Fe,-1===Fe&&this.settings.center){const Sr=this._coordinates.filter(Ar=>this.settings.items%2==1?Ar>=qe:Ar>qe);qe=Sr.length?Sr[Sr.length-1]:qe}for($t=0,Vr=this._coordinates.length;$t<Vr;$t++)ct=Math.ceil(this._coordinates[$t-1]||0),vt=Math.ceil(Math.abs(this._coordinates[$t])+lt*Fe),(this._op(ct,"<=",qe)&&this._op(ct,">",ke)||this._op(vt,"<",qe)&&this._op(vt,">",ke))&&St.push($t);this.slidesData.forEach(Sr=>(Sr.isActive=!1,Sr)),St.forEach(Sr=>{this.slidesData[Sr].isActive=!0}),this.settings.center&&(this.slidesData.forEach(Sr=>(Sr.isCentered=!1,Sr)),this.slidesData[this.current()].isCentered=!0)}}]}get invalidated(){return this._invalidated}get states(){return this._states}getViewCurSettings(){return this._viewSettingsShipper$.asObservable()}getInitializedState(){return this._initializedCarousel$.asObservable()}getChangeState(){return this._changeSettingsCarousel$.asObservable()}getChangedState(){return this._changedSettingsCarousel$.asObservable()}getTranslateState(){return this._translateCarousel$.asObservable()}getTranslatedState(){return this._translatedCarousel$.asObservable()}getResizeState(){return this._resizeCarousel$.asObservable()}getResizedState(){return this._resizedCarousel$.asObservable()}getRefreshState(){return this._refreshCarousel$.asObservable()}getRefreshedState(){return this._refreshedCarousel$.asObservable()}getDragState(){return this._dragCarousel$.asObservable()}getDraggedState(){return this._draggedCarousel$.asObservable()}setOptions(xe){const Fe=new Ot,lt=this._validateOptions(xe,Fe);this._options=Object.assign(Object.assign({},Fe),lt)}_validateOptions(xe,Fe){const lt=Object.assign({},xe),St=new At,qe=(ke,ct)=>(this.logger.log(`options.${ct} must be type of ${ke}; ${ct}=${xe[ct]} skipped to defaults: ${ct}=${Fe[ct]}`),Fe[ct]);for(const ke in lt)if(lt.hasOwnProperty(ke))if("number"===St[ke])this._isNumeric(lt[ke])?(lt[ke]=+lt[ke],lt[ke]="items"===ke?this._validateItems(lt[ke],lt.skip_validateItems):lt[ke]):lt[ke]=qe(St[ke],ke);else if("boolean"===St[ke]&&"boolean"!=typeof lt[ke])lt[ke]=qe(St[ke],ke);else if("number|boolean"!==St[ke]||this._isNumberOrBoolean(lt[ke]))if("number|string"!==St[ke]||this._isNumberOrString(lt[ke]))if("string|boolean"!==St[ke]||this._isStringOrBoolean(lt[ke])){if("string[]"===St[ke])if(Array.isArray(lt[ke])){let ct=!1;lt[ke].forEach(vt=>{ct="string"==typeof vt}),ct||(lt[ke]=qe(St[ke],ke))}else lt[ke]=qe(St[ke],ke)}else lt[ke]=qe(St[ke],ke);else lt[ke]=qe(St[ke],ke);else lt[ke]=qe(St[ke],ke);return lt}_validateItems(xe,Fe){let lt=xe;return xe>this._items.length?Fe?this.logger.log("The option 'items' in your options is bigger than the number of slides. The navigation got disabled"):(lt=this._items.length,this.logger.log("The option 'items' in your options is bigger than the number of slides. This option is updated to the current number of slides and the navigation got disabled")):xe===this._items.length&&(this.settings.dots||this.settings.nav)&&this.logger.log("Option 'items' in your options is equal to the number of slides. So the navigation got disabled"),lt}setCarouselWidth(xe){this._width=xe}setup(xe,Fe,lt){this.setCarouselWidth(xe),this.setItems(Fe),this._defineSlidesData(),this.setOptions(lt),this.settings=Object.assign({},this._options),this.setOptionsForViewport(),this._trigger("change",{property:{name:"settings",value:this.settings}}),this.invalidate("settings"),this._trigger("changed",{property:{name:"settings",value:this.settings}})}setOptionsForViewport(){const xe=this._width,Fe=this._options.responsive;let lt=-1;if(!Object.keys(Fe).length)return;if(!xe)return void(this.settings.items=1);for(const qe in Fe)Fe.hasOwnProperty(qe)&&+qe<=xe&&+qe>lt&&(lt=Number(qe));this.settings=Object.assign(Object.assign(Object.assign({},this._options),Fe[lt]),{items:Fe[lt]&&Fe[lt].items?this._validateItems(Fe[lt].items,this._options.skip_validateItems):this._options.items}),delete this.settings.responsive,this.owlDOMData.isResponsive=!0,this.owlDOMData.isMouseDragable=this.settings.mouseDrag,this.owlDOMData.isTouchDragable=this.settings.touchDrag;const St=[];this._items.forEach(qe=>{St.push(this.settings.merge?qe.dataMerge:1)}),this._mergers=St,this._breakpoint=lt,this.invalidate("settings")}initialize(xe){this.enter("initializing"),this.owlDOMData.rtl=this.settings.rtl,this._mergers.length&&(this._mergers=[]),xe.forEach(Fe=>{this._mergers.push(this.settings.merge?Fe.dataMerge:1)}),this._clones=[],this.reset(this._isNumeric(this.settings.startPosition)?+this.settings.startPosition:0),this.invalidate("items"),this.refresh(),this.owlDOMData.isLoaded=!0,this.owlDOMData.isMouseDragable=this.settings.mouseDrag,this.owlDOMData.isTouchDragable=this.settings.touchDrag,this.sendChanges(),this.leave("initializing"),this._trigger("initialized")}sendChanges(){this._viewSettingsShipper$.next({owlDOMData:this.owlDOMData,stageData:this.stageData,slidesData:this.slidesData,navData:this.navData,dotsData:this.dotsData})}_optionsLogic(){this.settings.autoWidth&&(this.settings.stagePadding=0,this.settings.merge=!1)}update(){let xe=0;const Fe=this._pipe.length,lt=qe=>this._invalidated[qe],St={};for(;xe<Fe;){const qe=this._pipe[xe].filter.filter(lt);(this._invalidated.all||qe.length>0)&&this._pipe[xe].run(St),xe++}this.slidesData.forEach(qe=>qe.classes=this.setCurSlideClasses(qe)),this.sendChanges(),this._invalidated={},this.is("valid")||this.enter("valid")}width(xe){switch(xe=xe||Lt.Default){case Lt.Inner:case Lt.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}}refresh(){this.enter("refreshing"),this._trigger("refresh"),this._defineSlidesData(),this.setOptionsForViewport(),this._optionsLogic(),this.update(),this.leave("refreshing"),this._trigger("refreshed")}onResize(xe){if(!this._items.length)return!1;this.setCarouselWidth(xe),this.enter("resizing"),this._trigger("resize"),this.invalidate("width"),this.refresh(),this.leave("resizing"),this._trigger("resized")}prepareDragging(xe){let lt,Fe=null;return lt=this.stageData.transform.replace(/.*\(|\)| |[^,-\d]\w|\)/g,"").split(","),Fe={x:+lt[0],y:+lt[1]},this.is("animating")&&this.invalidate("position"),"mousedown"===xe.type&&(this.owlDOMData.isGrab=!0),this.speed(0),Fe}enterDragging(){this.enter("dragging"),this._trigger("drag")}defineNewCoordsDrag(xe,Fe){let lt=null,St=null,qe=null;const ke=this.difference(Fe.pointer,this.pointer(xe)),ct=this.difference(Fe.stage.start,ke);return!!this.is("dragging")&&(this.settings.loop?(lt=this.coordinates(this.minimum()),St=+this.coordinates(this.maximum()+1)-lt,ct.x=((ct.x-lt)%St+St)%St+lt):(lt=this.coordinates(this.settings.rtl?this.maximum():this.minimum()),St=this.coordinates(this.settings.rtl?this.minimum():this.maximum()),qe=this.settings.pullDrag?-1*ke.x/5:0,ct.x=Math.max(Math.min(ct.x,lt+qe),St+qe)),ct)}finishDragging(xe,Fe,lt){const qe=this.difference(Fe.pointer,this.pointer(xe)),ke=Fe.stage.current,ct=["right","left"][+(this.settings.rtl?qe.x<+this.settings.rtl:qe.x>+this.settings.rtl)];let vt,$t,Vr;(0!==qe.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(+this.settings.dragEndSpeed||this.settings.smartSpeed),vt=this.closest(ke.x,0!==qe.x?ct:Fe.direction),$t=this.current(),Vr=this.current(-1===vt?void 0:vt),$t!==Vr&&(this.invalidate("position"),this.update()),Fe.direction=ct,(Math.abs(qe.x)>3||(new Date).getTime()-Fe.time>300)&&lt()),this.is("dragging")&&(this.leave("dragging"),this._trigger("dragged"))}closest(xe,Fe){const St=this.width();let qe=this.coordinates(),ke=-1;this.settings.center&&(qe=qe.map(ct=>(0===ct&&(ct+=1e-6),ct)));for(let ct=0;ct<qe.length&&("left"===Fe&&xe>qe[ct]-30&&xe<qe[ct]+30?ke=ct:"right"===Fe&&xe>qe[ct]-St-30&&xe<qe[ct]-St+30?ke=ct+1:this._op(xe,"<",qe[ct])&&this._op(xe,">",qe[ct+1]||qe[ct]-St)?ke="left"===Fe?ct+1:ct:null===Fe&&xe>qe[ct]-30&&xe<qe[ct]+30&&(ke=ct),-1===ke);ct++);return this.settings.loop||(this._op(xe,">",qe[this.minimum()])?ke=xe=this.minimum():this._op(xe,"<",qe[this.maximum()])&&(ke=xe=this.maximum())),ke}animate(xe){const Fe=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),Fe&&(this.enter("animating"),this._trigger("translate")),this.stageData.transform="translate3d("+xe+"px,0px,0px)",this.stageData.transition=this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}is(xe){return this._states.current[xe]&&this._states.current[xe]>0}current(xe){return void 0===xe?this._current:0!==this._items.length?(xe=this.normalize(xe),this._current!==xe&&(this._trigger("change",{property:{name:"position",value:xe}}),this._current=xe,this.invalidate("position"),this._trigger("changed",{property:{name:"position",value:this._current}})),this._current):void 0}invalidate(xe){return"string"==typeof xe&&(this._invalidated[xe]=!0,this.is("valid")&&this.leave("valid")),Object.keys(this._invalidated)}reset(xe){void 0!==(xe=this.normalize(xe))&&(this._speed=0,this._current=xe,this._suppress(["translate","translated"]),this.animate(this.coordinates(xe)),this._release(["translate","translated"]))}normalize(xe,Fe){const lt=this._items.length,St=Fe?0:this._clones.length;return!this._isNumeric(xe)||lt<1?xe=void 0:(xe<0||xe>=lt+St)&&(xe=((xe-St/2)%lt+lt)%lt+St/2),xe}relative(xe){return this.normalize(xe-=this._clones.length/2,!0)}maximum(xe=!1){const Fe=this.settings;let St,qe,ke,lt=this._coordinates.length;if(Fe.loop)lt=this._clones.length/2+this._items.length-1;else if(Fe.autoWidth||Fe.merge){for(St=this._items.length,qe=this.slidesData[--St].width,ke=this._width;St--&&(qe+=+this.slidesData[St].width+this.settings.margin,!(qe>ke)););lt=St+1}else lt=Fe.center?this._items.length-1:this._items.length-Fe.items;return xe&&(lt-=this._clones.length/2),Math.max(lt,0)}minimum(xe=!1){return xe?0:this._clones.length/2}items(xe){return void 0===xe?this._items.slice():(xe=this.normalize(xe,!0),[this._items[xe]])}mergers(xe){return void 0===xe?this._mergers.slice():(xe=this.normalize(xe,!0),this._mergers[xe])}clones(xe){const Fe=this._clones.length/2,lt=Fe+this._items.length,St=qe=>qe%2==0?lt+qe/2:Fe-(qe+1)/2;return void 0===xe?this._clones.map((qe,ke)=>St(ke)):this._clones.map((qe,ke)=>qe===xe?St(ke):null).filter(qe=>qe)}speed(xe){return void 0!==xe&&(this._speed=xe),this._speed}coordinates(xe){let St,qe,Fe=1,lt=xe-1;return void 0===xe?(qe=this._coordinates.map((ke,ct)=>this.coordinates(ct)),qe):(this.settings.center?(this.settings.rtl&&(Fe=-1,lt=xe+1),St=this._coordinates[xe],St+=(this.width()-St+(this._coordinates[lt]||0))/2*Fe):St=this._coordinates[lt]||0,St=Math.ceil(St),St)}_duration(xe,Fe,lt){return 0===lt?0:Math.min(Math.max(Math.abs(Fe-xe),1),6)*Math.abs(+lt||this.settings.smartSpeed)}to(xe,Fe){let lt=this.current(),St=null,qe=xe-this.relative(lt),ke=this.maximum(),ct=0;const vt=+(qe>0)-+(qe<0),$t=this._items.length,Vr=this.minimum();this.settings.loop?(!this.settings.rewind&&Math.abs(qe)>$t/2&&(qe+=-1*vt*$t),St=(((xe=lt+qe)-Vr)%$t+$t)%$t+Vr,St!==xe&&St-qe<=ke&&St-qe>0&&(lt=St-qe,xe=St,ct=30,this.reset(lt),this.sendChanges())):this.settings.rewind?(ke+=1,xe=(xe%ke+ke)%ke):xe=Math.max(Vr,Math.min(ke,xe)),setTimeout(()=>{this.speed(this._duration(lt,xe,Fe)),this.current(xe),this.update()},ct)}next(xe){xe=xe||!1,this.to(this.relative(this.current())+1,xe)}prev(xe){xe=xe||!1,this.to(this.relative(this.current())-1,xe)}onTransitionEnd(xe){if(void 0!==xe)return!1;this.leave("animating"),this._trigger("translated")}_viewport(){let xe;return this._width?xe=this._width:this.logger.log("Can not detect viewport width."),xe}setItems(xe){this._items=xe}_defineSlidesData(){let xe;this.slidesData&&this.slidesData.length&&(xe=new Map,this.slidesData.forEach(Fe=>{Fe.load&&xe.set(Fe.id,Fe.load)})),this.slidesData=this._items.map(Fe=>({id:`${Fe.id}`,isActive:!1,tplRef:Fe.tplRef,dataMerge:Fe.dataMerge,width:0,isCloned:!1,load:!!xe&&xe.get(Fe.id),hashFragment:Fe.dataHash}))}setCurSlideClasses(xe){const Fe={active:xe.isActive,center:xe.isCentered,cloned:xe.isCloned,animated:xe.isAnimated,"owl-animated-in":xe.isDefAnimatedIn,"owl-animated-out":xe.isDefAnimatedOut};return this.settings.animateIn&&(Fe[this.settings.animateIn]=xe.isCustomAnimatedIn),this.settings.animateOut&&(Fe[this.settings.animateOut]=xe.isCustomAnimatedOut),Fe}_op(xe,Fe,lt){const St=this.settings.rtl;switch(Fe){case"<":return St?xe>lt:xe<lt;case">":return St?xe<lt:xe>lt;case">=":return St?xe<=lt:xe>=lt;case"<=":return St?xe>=lt:xe<=lt}}_trigger(xe,Fe,lt,St,qe){switch(xe){case"initialized":this._initializedCarousel$.next(xe);break;case"change":this._changeSettingsCarousel$.next(Fe);break;case"changed":this._changedSettingsCarousel$.next(Fe);break;case"drag":this._dragCarousel$.next(xe);break;case"dragged":this._draggedCarousel$.next(xe);break;case"resize":this._resizeCarousel$.next(xe);break;case"resized":this._resizedCarousel$.next(xe);break;case"refresh":this._refreshCarousel$.next(xe);break;case"refreshed":this._refreshedCarousel$.next(xe);break;case"translate":this._translateCarousel$.next(xe);break;case"translated":this._translatedCarousel$.next(xe)}}enter(xe){[xe].concat(this._states.tags[xe]||[]).forEach(Fe=>{void 0===this._states.current[Fe]&&(this._states.current[Fe]=0),this._states.current[Fe]++})}leave(xe){[xe].concat(this._states.tags[xe]||[]).forEach(Fe=>{(0===this._states.current[Fe]||this._states.current[Fe])&&this._states.current[Fe]--})}register(xe){xe.type===Be.State&&(this._states.tags[xe.name]=this._states.tags[xe.name]?this._states.tags[xe.name].concat(xe.tags):xe.tags,this._states.tags[xe.name]=this._states.tags[xe.name].filter((Fe,lt)=>this._states.tags[xe.name].indexOf(Fe)===lt))}_suppress(xe){xe.forEach(Fe=>{this._supress[Fe]=!0})}_release(xe){xe.forEach(Fe=>{delete this._supress[Fe]})}pointer(xe){const Fe={x:null,y:null};return(xe=(xe=xe.originalEvent||xe||window.event).touches&&xe.touches.length?xe.touches[0]:xe.changedTouches&&xe.changedTouches.length?xe.changedTouches[0]:xe).pageX?(Fe.x=xe.pageX,Fe.y=xe.pageY):(Fe.x=xe.clientX,Fe.y=xe.clientY),Fe}_isNumeric(xe){return!isNaN(parseFloat(xe))}_isNumberOrBoolean(xe){return this._isNumeric(xe)||"boolean"==typeof xe}_isNumberOrString(xe){return this._isNumeric(xe)||"string"==typeof xe}_isStringOrBoolean(xe){return"string"==typeof xe||"boolean"==typeof xe}difference(xe,Fe){return{x:xe.x-Fe.x,y:xe.y-Fe.y}}};return Ke.\u0275fac=function(xe){return new(xe||Ke)(e.LFG(Ze))},Ke.\u0275prov=e.Yz7({token:Ke,factory:function(kt){return Ke.\u0275fac(kt)}}),Ke})(),Te=(()=>{let Ke=class{constructor(xe){this.carouselService=xe,this._initialized=!1,this._pages=[],this._navData={disabled:!1,prev:{disabled:!1,htmlText:""},next:{disabled:!1,htmlText:""}},this._dotsData={disabled:!1,dots:[]},this.spyDataStreams()}ngOnDestroy(){this.navSubscription.unsubscribe()}spyDataStreams(){const xe=this.carouselService.getInitializedState().pipe((0,g.b)(qe=>{this.initialize(),this._updateNavPages(),this.draw(),this.update(),this.carouselService.sendChanges()})),Fe=this.carouselService.getChangedState().pipe((0,p.h)(qe=>"position"===qe.property.name),(0,g.b)(qe=>{this.update()})),lt=this.carouselService.getRefreshedState().pipe((0,g.b)(()=>{this._updateNavPages(),this.draw(),this.update(),this.carouselService.sendChanges()})),St=(0,r.T)(xe,Fe,lt);this.navSubscription=St.subscribe(()=>{})}initialize(){this._navData.disabled=!0,this._navData.prev.htmlText=this.carouselService.settings.navText[0],this._navData.next.htmlText=this.carouselService.settings.navText[1],this._dotsData.disabled=!0,this.carouselService.navData=this._navData,this.carouselService.dotsData=this._dotsData}_updateNavPages(){let xe,Fe,lt;const St=this.carouselService.clones().length/2,qe=St+this.carouselService.items().length,ke=this.carouselService.maximum(!0),ct=[],vt=this.carouselService.settings;let $t=vt.center||vt.autoWidth||vt.dotsData?1:vt.dotsEach||vt.items;if($t=+$t,"page"!==vt.slideBy&&(vt.slideBy=Math.min(+vt.slideBy,vt.items)),vt.dots||"page"===vt.slideBy)for(xe=St,Fe=0,lt=0;xe<qe;xe++){if(Fe>=$t||0===Fe){if(ct.push({start:Math.min(ke,xe-St),end:xe-St+$t-1}),Math.min(ke,xe-St)===ke)break;Fe=0,++lt}Fe+=this.carouselService.mergers(this.carouselService.relative(xe))}this._pages=ct}draw(){let xe;const Fe=this.carouselService.settings,lt=this.carouselService.items(),St=lt.length<=Fe.items;if(this._navData.disabled=!Fe.nav||St,this._dotsData.disabled=!Fe.dots||St,Fe.dots)if(xe=this._pages.length-this._dotsData.dots.length,Fe.dotsData&&0!==xe)this._dotsData.dots=[],lt.forEach(qe=>{this._dotsData.dots.push({active:!1,id:`dot-${qe.id}`,innerContent:qe.dotContent,showInnerContent:!0})});else if(xe>0){const qe=this._dotsData.dots.length>0?this._dotsData.dots.length:0;for(let ke=0;ke<xe;ke++)this._dotsData.dots.push({active:!1,id:`dot-${ke+qe}`,innerContent:"",showInnerContent:!1})}else xe<0&&this._dotsData.dots.splice(xe,Math.abs(xe));this.carouselService.navData=this._navData,this.carouselService.dotsData=this._dotsData}update(){this._updateNavButtons(),this._updateDots()}_updateNavButtons(){const xe=this.carouselService.settings,Fe=xe.loop||xe.rewind,lt=this.carouselService.relative(this.carouselService.current());xe.nav&&(this._navData.prev.disabled=!Fe&&lt<=this.carouselService.minimum(!0),this._navData.next.disabled=!Fe&&lt>=this.carouselService.maximum(!0)),this.carouselService.navData=this._navData}_updateDots(){let xe;!this.carouselService.settings.dots||(this._dotsData.dots.forEach(Fe=>{!0===Fe.active&&(Fe.active=!1)}),xe=this._current(),this._dotsData.dots.length&&(this._dotsData.dots[xe].active=!0),this.carouselService.dotsData=this._dotsData)}_current(){const xe=this.carouselService.relative(this.carouselService.current());let Fe;const lt=this._pages.filter((St,qe)=>St.start<=xe&&St.end>=xe).pop();return Fe=this._pages.findIndex(St=>St.start===lt.start&&St.end===lt.end),Fe}_getPosition(xe){let Fe,lt;const St=this.carouselService.settings;return"page"===St.slideBy?(Fe=this._current(),lt=this._pages.length,xe?++Fe:--Fe,Fe=this._pages[(Fe%lt+lt)%lt].start):(Fe=this.carouselService.relative(this.carouselService.current()),lt=this.carouselService.items().length,xe?Fe+=+St.slideBy:Fe-=+St.slideBy),Fe}next(xe){this.carouselService.to(this._getPosition(!0),xe)}prev(xe){this.carouselService.to(this._getPosition(!1),xe)}to(xe,Fe,lt){let St;!lt&&this._pages.length?(St=this._pages.length,this.carouselService.to(this._pages[(xe%St+St)%St].start,Fe)):this.carouselService.to(xe,Fe)}moveByDot(xe){const Fe=this._dotsData.dots.findIndex(lt=>xe===lt.id);this.to(Fe,this.carouselService.settings.dotsSpeed)}toSlideById(xe){const Fe=this.carouselService.slidesData.findIndex(lt=>lt.id===xe&&!1===lt.isCloned);-1===Fe||Fe===this.carouselService.current()||this.carouselService.to(this.carouselService.relative(Fe),!1)}};return Ke.\u0275fac=function(xe){return new(xe||Ke)(e.LFG(be))},Ke.\u0275prov=e.Yz7({token:Ke,factory:function(kt){return Ke.\u0275fac(kt)}}),Ke})();const $e=new e.OlP("WindowToken");class ft{get nativeWindow(){throw new Error("Not implemented.")}}const st=[{provide:ft,useClass:(()=>{let Ke=class extends ft{constructor(){super()}get nativeWindow(){return window}};return Ke.\u0275fac=function(xe){return new(xe||Ke)},Ke.\u0275prov=e.Yz7({token:Ke,factory:function(kt){return Ke.\u0275fac(kt)}}),Ke})()},{provide:$e,useFactory:function Ft(Ke,kt){return(0,l.NF)(kt)?Ke.nativeWindow:{setTimeout:(Fe,lt)=>{},clearTimeout:Fe=>{}}},deps:[ft,e.Lbi]}],Dt=new e.OlP("DocumentToken");class ot{get nativeDocument(){throw new Error("Not implemented.")}}const ge=[{provide:ot,useClass:(()=>{let Ke=class extends ot{constructor(){super()}get nativeDocument(){return document}};return Ke.\u0275fac=function(xe){return new(xe||Ke)},Ke.\u0275prov=e.Yz7({token:Ke,factory:function(kt){return Ke.\u0275fac(kt)}}),Ke})()},{provide:Dt,useFactory:function Yt(Ke,kt){return(0,l.NF)(kt)?Ke.nativeDocument:{hidden:!1,visibilityState:"visible"}},deps:[ot,e.Lbi]}];let Me=(()=>{let Ke=class{constructor(xe,Fe,lt){this.carouselService=xe,this._timeout=null,this._paused=!1,this.winRef=Fe,this.docRef=lt,this.spyDataStreams()}ngOnDestroy(){this.autoplaySubscription.unsubscribe()}spyDataStreams(){const xe=this.carouselService.getInitializedState().pipe((0,g.b)(()=>{this.carouselService.settings.autoplay&&this.play()})),Fe=this.carouselService.getChangedState().pipe((0,g.b)(qe=>{this._handleChangeObservable(qe)})),lt=this.carouselService.getResizedState().pipe((0,g.b)(()=>{this.carouselService.settings.autoplay?this.play():this.stop()})),St=(0,r.T)(xe,Fe,lt);this.autoplaySubscription=St.subscribe(()=>{})}play(xe,Fe){this._paused&&(this._paused=!1,this._setAutoPlayInterval(this.carouselService.settings.autoplayMouseleaveTimeout)),!this.carouselService.is("rotating")&&(this.carouselService.enter("rotating"),this._setAutoPlayInterval())}_getNextTimeout(xe,Fe){return this._timeout&&this.winRef.clearTimeout(this._timeout),this._isArtificialAutoplayTimeout=!!xe,this.winRef.setTimeout(()=>{this._paused||this.carouselService.is("busy")||this.carouselService.is("interacting")||this.docRef.hidden||this.carouselService.next(Fe||this.carouselService.settings.autoplaySpeed)},xe||this.carouselService.settings.autoplayTimeout)}_setAutoPlayInterval(xe){this._timeout=this._getNextTimeout(xe)}stop(){!this.carouselService.is("rotating")||(this._paused=!0,this.winRef.clearTimeout(this._timeout),this.carouselService.leave("rotating"))}pause(){!this.carouselService.is("rotating")||(this._paused=!0)}_handleChangeObservable(xe){"settings"===xe.property.name?this.carouselService.settings.autoplay?this.play():this.stop():"position"===xe.property.name&&this.carouselService.settings.autoplay&&this._setAutoPlayInterval()}_playAfterTranslated(){(0,d.of)("translated").pipe((0,f.w)(xe=>this.carouselService.getTranslatedState()),(0,C.P)(),(0,p.h)(()=>this._isArtificialAutoplayTimeout),(0,g.b)(()=>this._setAutoPlayInterval())).subscribe(()=>{})}startPausing(){this.carouselService.settings.autoplayHoverPause&&this.carouselService.is("rotating")&&this.pause()}startPlayingMouseLeave(){this.carouselService.settings.autoplayHoverPause&&this.carouselService.is("rotating")&&(this.play(),this._playAfterTranslated())}startPlayingTouchEnd(){this.carouselService.settings.autoplayHoverPause&&this.carouselService.is("rotating")&&(this.play(),this._playAfterTranslated())}};return Ke.\u0275fac=function(xe){return new(xe||Ke)(e.LFG(be),e.LFG($e),e.LFG(Dt))},Ke.\u0275prov=e.Yz7({token:Ke,factory:function(kt){return Ke.\u0275fac(kt)}}),Ke=(0,t.gn)([(0,t.fM)(1,(0,e.tBr)($e)),(0,t.fM)(2,(0,e.tBr)(Dt))],Ke),Ke})(),We=(()=>{let Ke=class{constructor(xe){this.carouselService=xe,this.spyDataStreams()}ngOnDestroy(){this.lazyLoadSubscription.unsubscribe()}spyDataStreams(){const xe=this.carouselService.getInitializedState().pipe((0,g.b)(()=>{const qe=this.carouselService.settings&&!this.carouselService.settings.lazyLoad;this.carouselService.slidesData.forEach(ke=>ke.load=!!qe)})),Fe=this.carouselService.getChangeState(),lt=this.carouselService.getResizedState(),St=(0,r.T)(xe,Fe,lt).pipe((0,g.b)(qe=>this._defineLazyLoadSlides(qe)));this.lazyLoadSubscription=St.subscribe(()=>{})}_defineLazyLoadSlides(xe){if(this.carouselService.settings&&this.carouselService.settings.lazyLoad&&(xe.property&&"position"===xe.property.name||"initialized"===xe||"resized"===xe)){const Fe=this.carouselService.settings,lt=this.carouselService.clones().length;let St=Fe.center&&Math.ceil(Fe.items/2)||Fe.items,qe=Fe.center&&-1*St||0,ke=(xe.property&&void 0!==xe.property.value?xe.property.value:this.carouselService.current())+qe;for(Fe.lazyLoadEager>0&&(St+=Fe.lazyLoadEager,Fe.loop&&(ke-=Fe.lazyLoadEager,St++));qe++<St;)this._load(lt/2+this.carouselService.relative(ke)),lt&&this.carouselService.clones(this.carouselService.relative(ke)).forEach(ct=>this._load(ct)),ke++}}_load(xe){this.carouselService.slidesData[xe].load||(this.carouselService.slidesData[xe].load=!0)}};return Ke.\u0275fac=function(xe){return new(xe||Ke)(e.LFG(be))},Ke.\u0275prov=e.Yz7({token:Ke,factory:function(kt){return Ke.\u0275fac(kt)}}),Ke})(),Re=(()=>{let Ke=class{constructor(xe){this.carouselService=xe,this.swapping=!0,this.previous=void 0,this.next=void 0,this.spyDataStreams()}ngOnDestroy(){this.animateSubscription.unsubscribe()}spyDataStreams(){const xe=this.carouselService.getChangeState().pipe((0,g.b)(vt=>{"position"===vt.property.name&&(this.previous=this.carouselService.current(),this.next=vt.property.value)})),Fe=this.carouselService.getDragState(),lt=this.carouselService.getDraggedState(),St=this.carouselService.getTranslatedState(),qe=(0,r.T)(Fe,lt,St).pipe((0,g.b)(vt=>this.swapping="translated"===vt)),ke=this.carouselService.getTranslateState().pipe((0,g.b)(vt=>{this.swapping&&(this.carouselService._options.animateOut||this.carouselService._options.animateIn)&&this._swap()})),ct=(0,r.T)(xe,ke,qe).pipe();this.animateSubscription=ct.subscribe(()=>{})}_swap(){if(1!==this.carouselService.settings.items)return;let xe;this.carouselService.speed(0);const Fe=this.carouselService.slidesData[this.previous],lt=this.carouselService.slidesData[this.next],St=this.carouselService.settings.animateIn,qe=this.carouselService.settings.animateOut;this.carouselService.current()!==this.previous&&(qe&&(xe=+this.carouselService.coordinates(this.previous)-+this.carouselService.coordinates(this.next),this.carouselService.slidesData.forEach(ke=>{ke.id===Fe.id&&(ke.left=`${xe}px`,ke.isAnimated=!0,ke.isDefAnimatedOut=!0,ke.isCustomAnimatedOut=!0)})),St&&this.carouselService.slidesData.forEach(ke=>{ke.id===lt.id&&(ke.isAnimated=!0,ke.isDefAnimatedIn=!0,ke.isCustomAnimatedIn=!0)}))}clear(xe){this.carouselService.slidesData.forEach(Fe=>{Fe.id===xe&&(Fe.left="",Fe.isAnimated=!1,Fe.isDefAnimatedOut=!1,Fe.isCustomAnimatedOut=!1,Fe.isDefAnimatedIn=!1,Fe.isCustomAnimatedIn=!1,Fe.classes=this.carouselService.setCurSlideClasses(Fe))}),this.carouselService.onTransitionEnd()}};return Ke.\u0275fac=function(xe){return new(xe||Ke)(e.LFG(be))},Ke.\u0275prov=e.Yz7({token:Ke,factory:function(kt){return Ke.\u0275fac(kt)}}),Ke})(),pt=(()=>{let Ke=class{constructor(xe){this.carouselService=xe,this.spyDataStreams()}ngOnDestroy(){this.autoHeightSubscription.unsubscribe()}spyDataStreams(){const xe=this.carouselService.getInitializedState().pipe((0,g.b)(qe=>{this.carouselService.settings.autoHeight?this.update():this.carouselService.slidesData.forEach(ke=>ke.heightState="full")})),Fe=this.carouselService.getChangedState().pipe((0,g.b)(qe=>{this.carouselService.settings.autoHeight&&"position"===qe.property.name&&this.update()})),lt=this.carouselService.getRefreshedState().pipe((0,g.b)(qe=>{this.carouselService.settings.autoHeight&&this.update()})),St=(0,r.T)(xe,Fe,lt);this.autoHeightSubscription=St.subscribe(()=>{})}update(){const xe=this.carouselService.settings.items;let Fe=this.carouselService.current(),lt=Fe+xe;this.carouselService.settings.center&&(Fe=xe%2==1?Fe-(xe-1)/2:Fe-xe/2,lt=xe%2==1?Fe+xe:Fe+xe+1),this.carouselService.slidesData.forEach((St,qe)=>{St.heightState=qe>=Fe&&qe<lt?"full":"nulled"})}};return Ke.\u0275fac=function(xe){return new(xe||Ke)(e.LFG(be))},Ke.\u0275prov=e.Yz7({token:Ke,factory:function(kt){return Ke.\u0275fac(kt)}}),Ke})(),Zt=(()=>{let Ke=class{constructor(xe,Fe,lt){this.carouselService=xe,this.route=Fe,this.router=lt,this.spyDataStreams(),this.route||(this.route={fragment:(0,d.of)("no route").pipe((0,N.q)(1))}),this.router||(this.router={navigate:(St,qe)=>{}})}ngOnDestroy(){this.hashSubscription.unsubscribe()}spyDataStreams(){const xe=this.carouselService.getInitializedState().pipe((0,g.b)(()=>this.listenToRoute())),Fe=this.carouselService.getChangedState().pipe((0,g.b)(St=>{if(this.carouselService.settings.URLhashListener&&"position"===St.property.name){const qe=this.carouselService.current(),ke=this.carouselService.slidesData[qe].hashFragment;if(!ke||ke===this.currentHashFragment)return;this.router.navigate(["./"],{fragment:ke,relativeTo:this.route})}})),lt=(0,r.T)(xe,Fe);this.hashSubscription=lt.subscribe(()=>{})}rewind(xe){const Fe=this.carouselService.slidesData.findIndex(lt=>lt.hashFragment===xe&&!1===lt.isCloned);-1===Fe||Fe===this.carouselService.current()||this.carouselService.to(this.carouselService.relative(Fe),!1)}listenToRoute(){this.route.fragment.pipe(O("URLHash"===this.carouselService.settings.startPosition?0:2)).subscribe(Fe=>{this.currentHashFragment=Fe,this.rewind(Fe)})}};return Ke.\u0275fac=function(xe){return new(xe||Ke)(e.LFG(be),e.LFG(oe.gz,8),e.LFG(oe.F0,8))},Ke.\u0275prov=e.Yz7({token:Ke,factory:function(kt){return Ke.\u0275fac(kt)}}),Ke=(0,t.gn)([(0,t.fM)(1,(0,e.FiY)()),(0,t.fM)(2,(0,e.FiY)())],Ke),Ke})(),cr=0,wt=(()=>{let Ke=class{constructor(xe){this.tplRef=xe,this.id="owl-slide-"+cr++,this._dataMerge=1,this.width=0,this.dotContent="",this.dataHash=""}set dataMerge(xe){this._dataMerge=this.isNumeric(xe)?xe:1}get dataMerge(){return this._dataMerge}isNumeric(xe){return!isNaN(parseFloat(xe))}};return Ke.\u0275fac=function(xe){return new(xe||Ke)(e.Y36(e.Rgc))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["ng-template","carouselSlide",""]],inputs:{id:"id",width:"width",dotContent:"dotContent",dataHash:"dataHash",dataMerge:"dataMerge"}}),(0,t.gn)([(0,e.IIB)()],Ke.prototype,"id",void 0),(0,t.gn)([(0,e.IIB)()],Ke.prototype,"dataMerge",null),(0,t.gn)([(0,e.IIB)()],Ke.prototype,"width",void 0),(0,t.gn)([(0,e.IIB)()],Ke.prototype,"dotContent",void 0),(0,t.gn)([(0,e.IIB)()],Ke.prototype,"dataHash",void 0),Ke})(),Ut=(()=>{let Ke=class{constructor(xe,Fe,lt,St,qe,ke,ct,vt,$t,Vr,Sr,Ar){this.el=xe,this.resizeService=Fe,this.carouselService=lt,this.navigationService=St,this.autoplayService=qe,this.lazyLoadService=ke,this.animateService=ct,this.autoHeightService=vt,this.hashService=$t,this.logger=Vr,this.changeDetectorRef=Sr,this.translated=new e.vpe,this.dragging=new e.vpe,this.change=new e.vpe,this.changed=new e.vpe,this.initialized=new e.vpe,this.slidesData=[],this.carouselLoaded=!1,this.docRef=Ar}onVisibilityChange(xe){if(this.carouselService.settings.autoplay)switch(this.docRef.visibilityState){case"visible":this.autoplayService.play();break;case"hidden":this.autoplayService.stop()}}ngOnInit(){this.spyDataStreams(),this.carouselWindowWidth=this.el.nativeElement.querySelector(".owl-carousel").clientWidth}ngAfterContentChecked(){}ngAfterContentInit(){this.slides.toArray().length?(this.carouselService.setup(this.carouselWindowWidth,this.slides.toArray(),this.options),this.carouselService.initialize(this.slides.toArray()),this._winResizeWatcher()):this.logger.log("There are no slides to show. So the carousel won't be rendered"),this._slidesChangesSubscription=this.slides.changes.pipe((0,g.b)(xe=>{xe.toArray().length?(this.carouselService.setup(this.carouselWindowWidth,xe.toArray(),this.options),this.carouselService.initialize(xe.toArray())):(this.carouselLoaded=!1,this.logger.log("There are no slides to show. So the carousel won't be re-rendered"))})).subscribe(()=>{})}ngOnDestroy(){this.resizeSubscription&&this.resizeSubscription.unsubscribe(),this._slidesChangesSubscription&&this._slidesChangesSubscription.unsubscribe(),this._allObservSubscription&&this._allObservSubscription.unsubscribe()}spyDataStreams(){this._viewCurSettings$=this.carouselService.getViewCurSettings().pipe((0,g.b)(xe=>{this.owlDOMData=xe.owlDOMData,this.stageData=xe.stageData,this.slidesData=xe.slidesData,this.carouselLoaded||(this.carouselLoaded=!0),this.navData=xe.navData,this.dotsData=xe.dotsData,this.changeDetectorRef.markForCheck()})),this._initializedCarousel$=this.carouselService.getInitializedState().pipe((0,g.b)(()=>{this.gatherTranslatedData(),this.initialized.emit(this.slidesOutputData)})),this._translatedCarousel$=this.carouselService.getTranslatedState().pipe((0,g.b)(()=>{this.gatherTranslatedData(),this.translated.emit(this.slidesOutputData)})),this._changeCarousel$=this.carouselService.getChangeState().pipe((0,g.b)(()=>{this.gatherTranslatedData(),this.change.emit(this.slidesOutputData)})),this._changedCarousel$=this.carouselService.getChangeState().pipe((0,f.w)(xe=>{const Fe=(0,d.of)(xe).pipe((0,p.h)(()=>"position"===xe.property.name),(0,f.w)(()=>(0,y.D)(this.slidesData)),O(xe.property.value),(0,N.q)(this.carouselService.settings.items),(0,V.U)(lt=>{const St=this.carouselService.clonedIdPrefix,qe=lt.id.indexOf(St)>=0?lt.id.slice(St.length):lt.id;return Object.assign(Object.assign({},lt),{id:qe,isActive:!0})}),function K(){return function G(Ke,kt){return arguments.length>=2?function(Fe){return(0,J.z)((0,D.R)(Ke,kt),(0,U.h)(1),(0,q.d)(kt))(Fe)}:function(Fe){return(0,J.z)((0,D.R)((lt,St,qe)=>Ke(lt,St,qe+1)),(0,U.h)(1))(Fe)}}(ie,[])}(),(0,V.U)(lt=>({slides:lt,startPosition:this.carouselService.relative(xe.property.value)})));return(0,r.T)(Fe)}),(0,g.b)(xe=>{this.gatherTranslatedData(),this.changed.emit(xe.slides.length?xe:this.slidesOutputData)})),this._draggingCarousel$=this.carouselService.getDragState().pipe((0,g.b)(()=>{this.gatherTranslatedData(),this.dragging.emit({dragging:!0,data:this.slidesOutputData})}),(0,f.w)(()=>this.carouselService.getDraggedState().pipe((0,V.U)(()=>!!this.carouselService.is("animating")))),(0,f.w)(xe=>xe?this.carouselService.getTranslatedState().pipe((0,C.P)()):(0,d.of)("not animating")),(0,g.b)(()=>{this.dragging.emit({dragging:!1,data:this.slidesOutputData})})),this._carouselMerge$=(0,r.T)(this._viewCurSettings$,this._translatedCarousel$,this._draggingCarousel$,this._changeCarousel$,this._changedCarousel$,this._initializedCarousel$),this._allObservSubscription=this._carouselMerge$.subscribe(()=>{})}_winResizeWatcher(){Object.keys(this.carouselService._options.responsive).length&&(this.resizeSubscription=this.resizeService.onResize$.pipe((0,p.h)(()=>this.carouselWindowWidth!==this.el.nativeElement.querySelector(".owl-carousel").clientWidth),(0,re.g)(this.carouselService.settings.responsiveRefreshRate)).subscribe(()=>{this.carouselService.onResize(this.el.nativeElement.querySelector(".owl-carousel").clientWidth),this.carouselWindowWidth=this.el.nativeElement.querySelector(".owl-carousel").clientWidth}))}onTransitionEnd(){this.carouselService.onTransitionEnd()}next(){!this.carouselLoaded||this.navigationService.next(this.carouselService.settings.navSpeed)}prev(){!this.carouselLoaded||this.navigationService.prev(this.carouselService.settings.navSpeed)}moveByDot(xe){!this.carouselLoaded||this.navigationService.moveByDot(xe)}to(xe){!this.carouselLoaded||this.navigationService.toSlideById(xe)}gatherTranslatedData(){let xe;const Fe=this.carouselService.clonedIdPrefix,lt=this.slidesData.filter(St=>!0===St.isActive).map(St=>({id:St.id.indexOf(Fe)>=0?St.id.slice(Fe.length):St.id,width:St.width,marginL:St.marginL,marginR:St.marginR,center:St.isCentered}));xe=this.carouselService.relative(this.carouselService.current()),this.slidesOutputData={startPosition:xe,slides:lt}}startPausing(){this.autoplayService.startPausing()}startPlayML(){this.autoplayService.startPlayingMouseLeave()}startPlayTE(){this.autoplayService.startPlayingTouchEnd()}};return Ke.\u0275fac=function(xe){return new(xe||Ke)(e.Y36(e.SBq),e.Y36(Qe),e.Y36(be),e.Y36(Te),e.Y36(Me),e.Y36(We),e.Y36(Re),e.Y36(pt),e.Y36(Zt),e.Y36(Ze),e.Y36(e.sBO),e.Y36(Dt))},Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["owl-carousel-o"]],contentQueries:function(xe,Fe,lt){if(1&xe&&e.Suo(lt,wt,4),2&xe){let St;e.iGM(St=e.CRH())&&(Fe.slides=St)}},hostBindings:function(xe,Fe){1&xe&&e.NdJ("visibilitychange",function(St){return Fe.onVisibilityChange(St)},!1,e.evT)},inputs:{options:"options"},outputs:{translated:"translated",dragging:"dragging",change:"change",changed:"changed",initialized:"initialized"},features:[e._Bn([Te,Me,be,We,Re,pt,Zt])],decls:4,vars:9,consts:[[1,"owl-carousel","owl-theme",3,"ngClass","mouseover","mouseleave","touchstart","touchend"],["owlCarousel",""],["class","owl-stage-outer",4,"ngIf"],[4,"ngIf"],[1,"owl-stage-outer"],[3,"owlDraggable","stageData","slidesData"],[1,"owl-nav",3,"ngClass"],[1,"owl-prev",3,"ngClass","innerHTML","click"],[1,"owl-next",3,"ngClass","innerHTML","click"],[1,"owl-dots",3,"ngClass"],["class","owl-dot",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"owl-dot",3,"ngClass","click"],[3,"innerHTML"]],template:function(xe,Fe){1&xe&&(e.TgZ(0,"div",0,1),e.NdJ("mouseover",function(){return Fe.startPausing()})("mouseleave",function(){return Fe.startPlayML()})("touchstart",function(){return Fe.startPausing()})("touchend",function(){return Fe.startPlayTE()}),e.YNc(2,w,2,6,"div",2),e.YNc(3,$,6,15,"ng-container",3),e.qZA()),2&xe&&(e.Q6J("ngClass",e.qbA(3,Y,null==Fe.owlDOMData?null:Fe.owlDOMData.rtl,null==Fe.owlDOMData?null:Fe.owlDOMData.isLoaded,null==Fe.owlDOMData?null:Fe.owlDOMData.isResponsive,null==Fe.owlDOMData?null:Fe.owlDOMData.isMouseDragable,null==Fe.owlDOMData?null:Fe.owlDOMData.isGrab)),e.xp6(2),e.Q6J("ngIf",Fe.carouselLoaded),e.xp6(1),e.Q6J("ngIf",Fe.slides.toArray().length))},directives:function(){return[l.mk,l.O5,hr,l.sg]},styles:[".owl-theme[_ngcontent-%COMP%] { display: block; }"]}),(0,t.gn)([(0,e.AcB)(wt)],Ke.prototype,"slides",void 0),(0,t.gn)([(0,e.r_U)()],Ke.prototype,"translated",void 0),(0,t.gn)([(0,e.r_U)()],Ke.prototype,"dragging",void 0),(0,t.gn)([(0,e.r_U)()],Ke.prototype,"change",void 0),(0,t.gn)([(0,e.r_U)()],Ke.prototype,"changed",void 0),(0,t.gn)([(0,e.r_U)()],Ke.prototype,"initialized",void 0),(0,t.gn)([(0,e.IIB)()],Ke.prototype,"options",void 0),(0,t.gn)([(0,e.L6J)("document:visibilitychange",["$event"])],Ke.prototype,"onVisibilityChange",null),Ke=(0,t.gn)([(0,t.fM)(11,(0,e.tBr)(Dt))],Ke),Ke})(),hr=(()=>{let Ke=class{constructor(xe,Fe,lt,St,qe){this.zone=xe,this.el=Fe,this.renderer=lt,this.carouselService=St,this.animateService=qe,this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null,active:!1,moving:!1},this._oneDragMove$=new h.xQ,this.bindOneMouseTouchMove=ke=>{this._oneMouseTouchMove(ke)},this.bindOnDragMove=ke=>{this._onDragMove(ke)},this.bindOnDragEnd=ke=>{this._onDragEnd(ke)},this._oneClickHandler=()=>{this.listenerOneClick=this.renderer.listen(this._drag.target,"click",()=>!1),this.listenerOneClick()}}onMouseDown(xe){this.owlDraggable.isMouseDragable&&this._onDragStart(xe)}onTouchStart(xe){this.owlDraggable.isTouchDragable&&this._onDragStart(xe)}onTouchCancel(xe){this._onDragEnd(xe)}onDragStart(){if(this.owlDraggable.isMouseDragable)return!1}onSelectStart(){if(this.owlDraggable.isMouseDragable)return!1}ngOnInit(){this._oneMoveSubsription=this._oneDragMove$.pipe((0,C.P)()).subscribe(()=>{this._sendChanges()})}ngOnDestroy(){this._oneMoveSubsription.unsubscribe()}_onDragStart(xe){let Fe=null;3!==xe.which&&(Fe=this._prepareDragging(xe),this._drag.time=(new Date).getTime(),this._drag.target=xe.target,this._drag.stage.start=Fe,this._drag.stage.current=Fe,this._drag.pointer=this._pointer(xe),this.listenerMouseUp=this.renderer.listen(document,"mouseup",this.bindOnDragEnd),this.listenerTouchEnd=this.renderer.listen(document,"touchend",this.bindOnDragEnd),this.zone.runOutsideAngular(()=>{this.listenerOneMouseMove=this.renderer.listen(document,"mousemove",this.bindOneMouseTouchMove),this.listenerOneTouchMove=this.renderer.listen(document,"touchmove",this.bindOneMouseTouchMove)}))}_oneMouseTouchMove(xe){const Fe=this._difference(this._drag.pointer,this._pointer(xe));this.listenerATag&&this.listenerATag(),!(Math.abs(Fe.x)<3&&Math.abs(Fe.y)<3&&this._is("valid"))&&(Math.abs(Fe.x)<3&&Math.abs(Fe.x)<Math.abs(Fe.y)&&this._is("valid")||(this.listenerOneMouseMove(),this.listenerOneTouchMove(),this._drag.moving=!0,this.blockClickAnchorInDragging(xe),this.listenerMouseMove=this.renderer.listen(document,"mousemove",this.bindOnDragMove),this.listenerTouchMove=this.renderer.listen(document,"touchmove",this.bindOnDragMove),xe.preventDefault(),this._enterDragging(),this._oneDragMove$.next(xe)))}blockClickAnchorInDragging(xe){let Fe=xe.target;for(;Fe&&!(Fe instanceof HTMLAnchorElement);)Fe=Fe.parentElement;Fe instanceof HTMLAnchorElement&&(this.listenerATag=this.renderer.listen(Fe,"click",()=>!1))}_onDragMove(xe){let Fe;const lt=this.carouselService.defineNewCoordsDrag(xe,this._drag);!1!==lt&&(Fe=lt,xe.preventDefault(),this._drag.stage.current=Fe,this._animate(Fe.x-this._drag.stage.start.x))}_animate(xe){this.renderer.setStyle(this.el.nativeElement.children[0],"transform",`translate3d(${xe}px,0px,0px`),this.renderer.setStyle(this.el.nativeElement.children[0],"transition","0s")}_onDragEnd(xe){this.carouselService.owlDOMData.isGrab=!1,this.listenerOneMouseMove(),this.listenerOneTouchMove(),this._drag.moving&&(this.renderer.setStyle(this.el.nativeElement.children[0],"transform",""),this.renderer.setStyle(this.el.nativeElement.children[0],"transition",this.carouselService.speed(+this.carouselService.settings.dragEndSpeed||this.carouselService.settings.smartSpeed)/1e3+"s"),this._finishDragging(xe),this.listenerMouseMove(),this.listenerTouchMove()),this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null,active:!1,moving:!1},this.listenerMouseUp(),this.listenerTouchEnd()}_prepareDragging(xe){return this.carouselService.prepareDragging(xe)}_finishDragging(xe){this.carouselService.finishDragging(xe,this._drag,this._oneClickHandler)}_pointer(xe){return this.carouselService.pointer(xe)}_difference(xe,Fe){return this.carouselService.difference(xe,Fe)}_is(xe){return this.carouselService.is(xe)}_enter(xe){this.carouselService.enter(xe)}_sendChanges(){this.carouselService.sendChanges()}onTransitionEnd(){this.carouselService.onTransitionEnd()}_enterDragging(){this.carouselService.enterDragging()}clear(xe){this.animateService.clear(xe)}};return Ke.\u0275fac=function(xe){return new(xe||Ke)(e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(be),e.Y36(Re))},Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["owl-stage"]],hostBindings:function(xe,Fe){1&xe&&e.NdJ("mousedown",function(St){return Fe.onMouseDown(St)})("touchstart",function(St){return Fe.onTouchStart(St)})("touchcancel",function(St){return Fe.onTouchCancel(St)})("dragstart",function(){return Fe.onDragStart()})("selectstart",function(){return Fe.onSelectStart()})},inputs:{owlDraggable:"owlDraggable",stageData:"stageData",slidesData:"slidesData"},decls:3,vars:8,consts:[[1,"owl-stage",3,"ngStyle","transitionend"],[4,"ngFor","ngForOf"],[1,"owl-item",3,"ngClass","ngStyle","animationend"],[4,"ngIf"],[3,"ngTemplateOutlet"]],template:function(xe,Fe){1&xe&&(e.TgZ(0,"div")(1,"div",0),e.NdJ("transitionend",function(){return Fe.onTransitionEnd()}),e.YNc(2,ae,3,9,"ng-container",1),e.qZA()()),2&xe&&(e.xp6(1),e.Q6J("ngStyle",e.qbA(2,ye,Fe.stageData.width+"px",Fe.stageData.transform,Fe.stageData.transition,Fe.stageData.paddingL?Fe.stageData.paddingL+"px":"",Fe.stageData.paddingR?Fe.stageData.paddingR+"px":"")),e.xp6(1),e.Q6J("ngForOf",Fe.slidesData))},directives:[l.PC,l.sg,l.mk,l.O5,l.tP],encapsulation:2,data:{animation:[(0,B.X$)("autoHeight",[(0,B.SB)("nulled",(0,B.oB)({height:0})),(0,B.SB)("full",(0,B.oB)({height:"*"})),(0,B.eR)("full => nulled",[(0,B.jt)("700ms 350ms")]),(0,B.eR)("nulled => full",[(0,B.jt)(350)])])]}}),(0,t.gn)([(0,e.IIB)()],Ke.prototype,"owlDraggable",void 0),(0,t.gn)([(0,e.IIB)()],Ke.prototype,"stageData",void 0),(0,t.gn)([(0,e.IIB)()],Ke.prototype,"slidesData",void 0),(0,t.gn)([(0,e.L6J)("mousedown",["$event"])],Ke.prototype,"onMouseDown",null),(0,t.gn)([(0,e.L6J)("touchstart",["$event"])],Ke.prototype,"onTouchStart",null),(0,t.gn)([(0,e.L6J)("touchcancel",["$event"])],Ke.prototype,"onTouchCancel",null),(0,t.gn)([(0,e.L6J)("dragstart")],Ke.prototype,"onDragStart",null),(0,t.gn)([(0,e.L6J)("selectstart")],Ke.prototype,"onSelectStart",null),Ke})(),Ue=(()=>{let Ke=class{constructor(xe,Fe,lt){this.router=xe,this.route=Fe,this.locationStrategy=lt,this.stopLink=!1,this.commands=[],this.subscription=xe.events.subscribe(St=>{St instanceof oe.m2&&this.updateTargetUrlAndHref()})}set owlRouterLink(xe){this.commands=null!=xe?Array.isArray(xe)?xe:[xe]:[]}set preserveQueryParams(xe){(0,e.X6Q)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=xe}ngOnChanges(xe){this.updateTargetUrlAndHref()}ngOnDestroy(){this.subscription.unsubscribe()}onClick(xe,Fe,lt,St){if(0!==xe||Fe||lt||St||"string"==typeof this.target&&"_self"!==this.target)return!0;if(this.stopLink)return!1;const qe={skipLocationChange:Pt(this.skipLocationChange),replaceUrl:Pt(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,qe),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Pt(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Pt(this.preserveFragment)})}};return Ke.\u0275fac=function(xe){return new(xe||Ke)(e.Y36(oe.F0),e.Y36(oe.gz),e.Y36(l.S$))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["a","owlRouterLink",""]],hostVars:2,hostBindings:function(xe,Fe){1&xe&&e.NdJ("click",function(St){return Fe.onClick(St.button,St.ctrlKey,St.metaKey,St.shiftKey)}),2&xe&&(e.Ikx("href",Fe.href,e.LSH),e.uIk("target",Fe.target))},inputs:{stopLink:"stopLink",owlRouterLink:"owlRouterLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl"},features:[e.TTD]}),(0,t.gn)([(0,e.pfw)("attr.target"),(0,e.IIB)()],Ke.prototype,"target",void 0),(0,t.gn)([(0,e.IIB)()],Ke.prototype,"queryParams",void 0),(0,t.gn)([(0,e.IIB)()],Ke.prototype,"fragment",void 0),(0,t.gn)([(0,e.IIB)()],Ke.prototype,"queryParamsHandling",void 0),(0,t.gn)([(0,e.IIB)()],Ke.prototype,"preserveFragment",void 0),(0,t.gn)([(0,e.IIB)()],Ke.prototype,"skipLocationChange",void 0),(0,t.gn)([(0,e.IIB)()],Ke.prototype,"replaceUrl",void 0),(0,t.gn)([(0,e.IIB)()],Ke.prototype,"stopLink",void 0),(0,t.gn)([(0,e.pfw)()],Ke.prototype,"href",void 0),(0,t.gn)([(0,e.IIB)()],Ke.prototype,"owlRouterLink",null),(0,t.gn)([(0,e.IIB)()],Ke.prototype,"preserveQueryParams",null),(0,t.gn)([(0,e.L6J)("click",["$event.button","$event.ctrlKey","$event.metaKey","$event.shiftKey"])],Ke.prototype,"onClick",null),Ke})();function Pt(Ke){return""===Ke||!!Ke}let tt=(()=>{let Ke=class{};return Ke.\u0275fac=function(xe){return new(xe||Ke)},Ke.\u0275mod=e.oAB({type:Ke}),Ke.\u0275inj=e.cJS({providers:[st,Qe,ge,Ze],imports:[[l.ez]]}),Ke})()},75275:(M,b,n)=>{"use strict";n.d(b,{xr:()=>V,hx:()=>D});var t=n(94650);const e=typeof performance<"u"&&typeof performance.now<"u"&&"function"==typeof performance.mark&&"function"==typeof performance.measure&&("function"==typeof performance.clearMarks||"function"==typeof performance.clearMeasures),l=typeof PerformanceObserver<"u"&&typeof PerformanceObserver.prototype<"u"&&"function"==typeof PerformanceObserver.prototype.constructor,h="[object process]"===Object.prototype.toString.call(typeof process<"u"?process:0);let r={},d={};const y=()=>e?performance.now():Date.now(),g=U=>{r[U]=void 0,d[U]&&(d[U]=void 0),e&&(h||performance.clearMeasures(U),performance.clearMarks(U))},p=U=>{if(e){if(h&&l){const q=new PerformanceObserver(J=>{d[U]=J.getEntries().find(G=>G.name===U),q.disconnect()});q.observe({entryTypes:["measure"]})}performance.mark(U)}r[U]=y()},f=(U,q)=>{try{const J=r[U];return e?(q||performance.mark(`${U}-end`),performance.measure(U,U,q||`${U}-end`),h?d[U]?d[U]:J?{duration:y()-J,startTime:J,entryType:"measure",name:U}:{}:performance.getEntriesByName(U).pop()||{}):J?{duration:y()-J,startTime:J,entryType:"measure",name:U}:{}}catch{return{}}finally{g(U),g(q||`${U}-end`)}};var N=n(36895);const a=function(U,q,J,G){return{circle:U,progress:q,"progress-dark":J,pulse:G}};function O(U,q){if(1&U&&t._UZ(0,"span",1),2&U){const J=t.oxw();t.Q6J("ngClass",t.l5B(4,a,"circle"===J.appearance,"progress"===J.animation,"progress-dark"===J.animation,"pulse"===J.animation))("ngStyle",J.theme),t.uIk("aria-label",J.ariaLabel)("aria-valuetext",J.loadingText)}}const F=new t.OlP("ngx-skeleton-loader.config");let V=(()=>{class U{constructor(J){const{appearance:G="line",animation:ie="progress",theme:K=null,loadingText:re="Loading...",count:oe=1,ariaLabel:B="loading"}=J||{};this.appearance=G,this.animation=ie,this.theme=K,this.loadingText=re,this.count=oe,this.items=[],this.ariaLabel=B}ngOnInit(){p("NgxSkeletonLoader:Rendered"),p("NgxSkeletonLoader:Loaded"),this.validateInputValues()}validateInputValues(){/^\d+$/.test(`${this.count}`)||((0,t.X6Q)()&&console.error("`NgxSkeletonLoaderComponent` need to receive 'count' a numeric value. Forcing default to \"1\"."),this.count=1),this.items.length=this.count;const J=["progress","progress-dark","pulse","false"];-1===J.indexOf(String(this.animation))&&((0,t.X6Q)()&&console.error(`\`NgxSkeletonLoaderComponent\` need to receive 'animation' as: ${J.join(", ")}. Forcing default to "progress".`),this.animation="progress"),-1===["circle","line",""].indexOf(String(this.appearance))&&((0,t.X6Q)()&&console.error("`NgxSkeletonLoaderComponent` need to receive 'appearance' as: circle or line or empty string. Forcing default to \"''\"."),this.appearance="")}ngOnChanges(J){["count","animation","appearance"].find(G=>J[G]&&(J[G].isFirstChange()||J[G].previousValue===J[G].currentValue))||this.validateInputValues()}ngAfterViewInit(){f("NgxSkeletonLoader:Rendered")}ngOnDestroy(){f("NgxSkeletonLoader:Loaded")}}return U.\u0275fac=function(J){return new(J||U)(t.Y36(F,8))},U.\u0275cmp=t.Xpm({type:U,selectors:[["ngx-skeleton-loader"]],inputs:{appearance:"appearance",animation:"animation",theme:"theme",loadingText:"loadingText",count:"count",ariaLabel:"ariaLabel"},features:[t.TTD],decls:1,vars:1,consts:[["class","loader","aria-busy","true","aria-valuemin","0","aria-valuemax","100","role","progressbar","tabindex","0",3,"ngClass","ngStyle",4,"ngFor","ngForOf"],["aria-busy","true","aria-valuemin","0","aria-valuemax","100","role","progressbar","tabindex","0",1,"loader",3,"ngClass","ngStyle"]],template:function(J,G){1&J&&t.YNc(0,O,1,9,"span",0),2&J&&t.Q6J("ngForOf",G.items)},directives:[N.sg,N.mk,N.PC],styles:['.loader[_ngcontent-%COMP%]{background:#eff1f6 no-repeat;border-radius:4px;box-sizing:border-box;display:inline-block;height:20px;margin-bottom:10px;overflow:hidden;position:relative;width:100%;will-change:transform}.loader[_ngcontent-%COMP%]:after, .loader[_ngcontent-%COMP%]:before{box-sizing:border-box}.loader.circle[_ngcontent-%COMP%]{border-radius:50%;height:40px;margin:5px;width:40px}.loader.progress[_ngcontent-%COMP%], .loader.progress-dark[_ngcontent-%COMP%]{transform:translateZ(0)}.loader.progress-dark[_ngcontent-%COMP%]:after, .loader.progress-dark[_ngcontent-%COMP%]:before, .loader.progress[_ngcontent-%COMP%]:after, .loader.progress[_ngcontent-%COMP%]:before{box-sizing:border-box}.loader.progress-dark[_ngcontent-%COMP%]:before, .loader.progress[_ngcontent-%COMP%]:before{-webkit-animation:progress 2s ease-in-out infinite;animation:progress 2s ease-in-out infinite;background-size:200px 100%;content:"";height:100%;left:0;position:absolute;top:0;width:200px;z-index:1}.loader.progress[_ngcontent-%COMP%]:before{background-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.6),hsla(0,0%,100%,0))}.loader.progress-dark[_ngcontent-%COMP%]:before{background-image:linear-gradient(90deg,transparent,rgba(0,0,0,.2),transparent)}.loader.pulse[_ngcontent-%COMP%]{-webkit-animation:pulse 1.5s cubic-bezier(.4,0,.2,1) infinite;-webkit-animation-delay:.5s;animation:pulse 1.5s cubic-bezier(.4,0,.2,1) infinite;animation-delay:.5s}@media (prefers-reduced-motion:reduce){.loader.progress[_ngcontent-%COMP%], .loader.progress-dark[_ngcontent-%COMP%], .loader.pulse[_ngcontent-%COMP%]{-webkit-animation:none;animation:none}.loader.progress[_ngcontent-%COMP%], .loader.progress-dark[_ngcontent-%COMP%]{background-image:none}}@-webkit-keyframes progress{0%{transform:translate3d(-200px,0,0)}to{transform:translate3d(calc(200px + 100vw),0,0)}}@keyframes progress{0%{transform:translate3d(-200px,0,0)}to{transform:translate3d(calc(200px + 100vw),0,0)}}@-webkit-keyframes pulse{0%{opacity:1}50%{opacity:.4}to{opacity:1}}@keyframes pulse{0%{opacity:1}50%{opacity:.4}to{opacity:1}}'],changeDetection:0}),U})(),D=(()=>{class U{static forRoot(J){return{ngModule:U,providers:[{provide:F,useValue:J}]}}}return U.\u0275fac=function(J){return new(J||U)},U.\u0275mod=t.oAB({type:U}),U.\u0275inj=t.cJS({imports:[[N.ez]]}),U})()},90534:(M,b,n)=>{"use strict";function r(Me,We,Re,pt){var wt,Zt=arguments.length,cr=Zt<3?We:null===pt?pt=Object.getOwnPropertyDescriptor(We,Re):pt;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)cr=Reflect.decorate(Me,We,Re,pt);else for(var gt=Me.length-1;gt>=0;gt--)(wt=Me[gt])&&(cr=(Zt<3?wt(cr):Zt>3?wt(We,Re,cr):wt(We,Re))||cr);return Zt>3&&cr&&Object.defineProperty(We,Re,cr),cr}function d(Me,We){return function(Re,pt){We(Re,pt,Me)}}n.d(b,{Rh:()=>ot,_W:()=>br});var re=n(94650),oe=n(37340),B=n(8929),s=n(11481),_=n(36895);const w=["toast-component",""];function E(Me,We){if(1&Me){const Re=re.EpF();re.TgZ(0,"button",5),re.NdJ("click",function(){return re.CHM(Re),re.oxw().remove()}),re.TgZ(1,"span",6),re._uU(2,"\xd7"),re.qZA()()}}function x(Me,We){if(1&Me&&(re.ynx(0),re._uU(1),re.BQk()),2&Me){const Re=re.oxw(2);re.xp6(1),re.hij("[",Re.duplicatesCount+1,"]")}}function j(Me,We){if(1&Me&&(re.TgZ(0,"div"),re._uU(1),re.YNc(2,x,2,1,"ng-container",4),re.qZA()),2&Me){const Re=re.oxw();re.Tol(Re.options.titleClass),re.uIk("aria-label",Re.title),re.xp6(1),re.hij(" ",Re.title," "),re.xp6(1),re.Q6J("ngIf",Re.duplicatesCount)}}function $(Me,We){if(1&Me&&re._UZ(0,"div",7),2&Me){const Re=re.oxw();re.Tol(Re.options.messageClass),re.Q6J("innerHTML",Re.message,re.oJD)}}function Y(Me,We){if(1&Me&&(re.TgZ(0,"div",8),re._uU(1),re.qZA()),2&Me){const Re=re.oxw();re.Tol(Re.options.messageClass),re.uIk("aria-label",Re.message),re.xp6(1),re.hij(" ",Re.message," ")}}function u(Me,We){if(1&Me&&(re.TgZ(0,"div"),re._UZ(1,"div",9),re.qZA()),2&Me){const Re=re.oxw();re.xp6(1),re.Udp("width",Re.width+"%")}}function W(Me,We){if(1&Me){const Re=re.EpF();re.TgZ(0,"button",5),re.NdJ("click",function(){return re.CHM(Re),re.oxw().remove()}),re.TgZ(1,"span",6),re._uU(2,"\xd7"),re.qZA()()}}function fe(Me,We){if(1&Me&&(re.ynx(0),re._uU(1),re.BQk()),2&Me){const Re=re.oxw(2);re.xp6(1),re.hij("[",Re.duplicatesCount+1,"]")}}function ae(Me,We){if(1&Me&&(re.TgZ(0,"div"),re._uU(1),re.YNc(2,fe,2,1,"ng-container",4),re.qZA()),2&Me){const Re=re.oxw();re.Tol(Re.options.titleClass),re.uIk("aria-label",Re.title),re.xp6(1),re.hij(" ",Re.title," "),re.xp6(1),re.Q6J("ngIf",Re.duplicatesCount)}}function ye(Me,We){if(1&Me&&re._UZ(0,"div",7),2&Me){const Re=re.oxw();re.Tol(Re.options.messageClass),re.Q6J("innerHTML",Re.message,re.oJD)}}function Qe(Me,We){if(1&Me&&(re.TgZ(0,"div",8),re._uU(1),re.qZA()),2&Me){const Re=re.oxw();re.Tol(Re.options.messageClass),re.uIk("aria-label",Re.message),re.xp6(1),re.hij(" ",Re.message," ")}}function Ot(Me,We){if(1&Me&&(re.TgZ(0,"div"),re._UZ(1,"div",9),re.qZA()),2&Me){const Re=re.oxw();re.xp6(1),re.Udp("width",Re.width+"%")}}class at{constructor(We,Re,pt,Zt,cr,wt){this.toastId=We,this.config=Re,this.message=pt,this.title=Zt,this.toastType=cr,this.toastRef=wt,this._onTap=new B.xQ,this._onAction=new B.xQ,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(We){this._onAction.next(We)}onAction(){return this._onAction.asObservable()}}const Be={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},Lt=new re.OlP("ToastConfig");class _e{constructor(We,Re){this.component=We,this.injector=Re}attach(We,Re){return this._attachedHost=We,We.attach(this,Re)}detach(){const We=this._attachedHost;if(We)return this._attachedHost=void 0,We.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(We){this._attachedHost=We}}class be extends class ne{attach(We,Re){return this._attachedPortal=We,this.attachComponentPortal(We,Re)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(We){this._disposeFn=We}}{constructor(We,Re,pt){super(),this._hostDomElement=We,this._componentFactoryResolver=Re,this._appRef=pt}attachComponentPortal(We,Re){const pt=this._componentFactoryResolver.resolveComponentFactory(We.component);let Zt;return Zt=pt.create(We.injector),this._appRef.attachView(Zt.hostView),this.setDisposeFn(()=>{this._appRef.detachView(Zt.hostView),Zt.destroy()}),Re?this._hostDomElement.insertBefore(this._getComponentRootNode(Zt),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(Zt)),Zt}_getComponentRootNode(We){return We.hostView.rootNodes[0]}}let Te=(()=>{let Me=class{constructor(Re){this._document=Re}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const Re=this._document.createElement("div");Re.classList.add("overlay-container"),this._document.body.appendChild(Re),this._containerElement=Re}};return Me.\u0275fac=function(Re){return new(Re||Me)(re.LFG(_.K0))},Me.\u0275prov=(0,re.Yz7)({factory:function(){return new Me((0,re.LFG)(_.K0))},token:Me,providedIn:"root"}),Me=r([d(0,(0,re.tBr)(_.K0))],Me),Me})();class $e{constructor(We){this._portalHost=We}attach(We,Re=!0){return this._portalHost.attach(We,Re)}detach(){return this._portalHost.detach()}}let ft=(()=>{let Me=class{constructor(Re,pt,Zt,cr){this._overlayContainer=Re,this._componentFactoryResolver=pt,this._appRef=Zt,this._document=cr,this._paneElements=new Map}create(Re,pt){return this._createOverlayRef(this.getPaneElement(Re,pt))}getPaneElement(Re="",pt){return this._paneElements.get(pt)||this._paneElements.set(pt,{}),this._paneElements.get(pt)[Re]||(this._paneElements.get(pt)[Re]=this._createPaneElement(Re,pt)),this._paneElements.get(pt)[Re]}_createPaneElement(Re,pt){const Zt=this._document.createElement("div");return Zt.id="toast-container",Zt.classList.add(Re),Zt.classList.add("toast-container"),pt?pt.getContainerElement().appendChild(Zt):this._overlayContainer.getContainerElement().appendChild(Zt),Zt}_createPortalHost(Re){return new be(Re,this._componentFactoryResolver,this._appRef)}_createOverlayRef(Re){return new $e(this._createPortalHost(Re))}};return Me.\u0275fac=function(Re){return new(Re||Me)(re.LFG(Te),re.LFG(re._Vd),re.LFG(re.z2F),re.LFG(_.K0))},Me.\u0275prov=(0,re.Yz7)({factory:function(){return new Me((0,re.LFG)(Te),(0,re.LFG)(re._Vd),(0,re.LFG)(re.z2F),(0,re.LFG)(_.K0))},token:Me,providedIn:"root"}),Me=r([d(3,(0,re.tBr)(_.K0))],Me),Me})();class Ge{constructor(We){this._overlayRef=We,this.duplicatesCount=0,this._afterClosed=new B.xQ,this._activate=new B.xQ,this._manualClose=new B.xQ,this._resetTimeout=new B.xQ,this._countDuplicate=new B.xQ}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(We,Re){We&&this._resetTimeout.next(),Re&&this._countDuplicate.next(++this.duplicatesCount)}}class Ft{constructor(We,Re){this._toastPackage=We,this._parentInjector=Re}get(We,Re,pt){return We===at?this._toastPackage:this._parentInjector.get(We,Re,pt)}}let br=(()=>{let Me=class{constructor(Re,pt,Zt,cr,wt){this.overlay=pt,this._injector=Zt,this.sanitizer=cr,this.ngZone=wt,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},Re.default),Re.config),Re.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},Re.default.iconClasses),Re.config.iconClasses))}show(Re,pt,Zt={},cr=""){return this._preBuildNotification(cr,Re,pt,this.applyConfig(Zt))}success(Re,pt,Zt={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",Re,pt,this.applyConfig(Zt))}error(Re,pt,Zt={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",Re,pt,this.applyConfig(Zt))}info(Re,pt,Zt={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",Re,pt,this.applyConfig(Zt))}warning(Re,pt,Zt={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",Re,pt,this.applyConfig(Zt))}clear(Re){for(const pt of this.toasts)if(void 0!==Re){if(pt.toastId===Re)return void pt.toastRef.manualClose()}else pt.toastRef.manualClose()}remove(Re){const pt=this._findToast(Re);if(!pt||(pt.activeToast.toastRef.close(),this.toasts.splice(pt.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){const Zt=this.toasts[this.currentlyActive].toastRef;Zt.isInactive()||(this.currentlyActive=this.currentlyActive+1,Zt.activate())}return!0}findDuplicate(Re,pt,Zt){for(const cr of this.toasts)if(cr.message===Re)return cr.toastRef.onDuplicate(pt,Zt),cr;return null}applyConfig(Re={}){return Object.assign(Object.assign({},this.toastrConfig),Re)}_findToast(Re){for(let pt=0;pt<this.toasts.length;pt++)if(this.toasts[pt].toastId===Re)return{index:pt,activeToast:this.toasts[pt]};return null}_preBuildNotification(Re,pt,Zt,cr){return cr.onActivateTick?this.ngZone.run(()=>this._buildNotification(Re,pt,Zt,cr)):this._buildNotification(Re,pt,Zt,cr)}_buildNotification(Re,pt,Zt,cr){if(!cr.toastComponent)throw new Error("toastComponent required");const wt=this.findDuplicate(pt,this.toastrConfig.resetTimeoutOnDuplicate&&cr.timeOut>0,this.toastrConfig.countDuplicates);if(pt&&this.toastrConfig.preventDuplicates&&null!==wt)return wt;this.previousToastMessage=pt;let gt=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(gt=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const Ut=this.overlay.create(cr.positionClass,this.overlayContainer);this.index=this.index+1;let hr=pt;pt&&cr.enableHtml&&(hr=this.sanitizer.sanitize(re.q3G.HTML,pt));const Cr=new Ge(Ut),Ue=new at(this.index,cr,hr,Zt,Re,Cr),Pt=new Ft(Ue,this._injector),He=new _e(cr.toastComponent,Pt),tt=Ut.attach(He,this.toastrConfig.newestOnTop);Cr.componentInstance=tt.instance;const Ke={toastId:this.index,message:pt||"",toastRef:Cr,onShown:Cr.afterActivate(),onHidden:Cr.afterClosed(),onTap:Ue.onTap(),onAction:Ue.onAction(),portal:tt};return gt||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{Ke.toastRef.activate()})),this.toasts.push(Ke),Ke}};return Me.\u0275fac=function(Re){return new(Re||Me)(re.LFG(Lt),re.LFG(ft),re.LFG(re.zs3),re.LFG(s.H7),re.LFG(re.R0b))},Me.\u0275prov=(0,re.Yz7)({factory:function(){return new Me((0,re.LFG)(Lt),(0,re.LFG)(ft),(0,re.LFG)(re.gxx),(0,re.LFG)(s.H7),(0,re.LFG)(re.R0b))},token:Me,providedIn:"root"}),Me=r([d(0,(0,re.tBr)(Lt))],Me),Me})(),rt=(()=>{let Me=class{constructor(Re,pt,Zt){this.toastrService=Re,this.toastPackage=pt,this.ngZone=Zt,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=pt.message,this.title=pt.title,this.options=pt.config,this.originalTimeout=pt.config.timeOut,this.toastClasses=`${pt.toastType} ${pt.config.toastClass}`,this.sub=pt.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=pt.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=pt.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=pt.toastRef.countDuplicate().subscribe(cr=>{this.duplicatesCount=cr})}get displayStyle(){if("inactive"===this.state.value)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state=Object.assign(Object.assign({},this.state),{value:"active"}),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const Re=(new Date).getTime();this.width=(this.hideTime-Re)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=Object.assign(Object.assign({},this.state),{value:"active"}),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state=Object.assign(Object.assign({},this.state),{value:"removed"}),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(Re,pt){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(Re),pt)):this.timeout=setTimeout(()=>Re(),pt)}outsideInterval(Re,pt){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(Re),pt)):this.intervalId=setInterval(()=>Re(),pt)}runInsideAngular(Re){this.ngZone?this.ngZone.run(()=>Re()):Re()}};return Me.\u0275fac=function(Re){return new(Re||Me)(re.Y36(br),re.Y36(at),re.Y36(re.R0b))},Me.\u0275cmp=re.Xpm({type:Me,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(Re,pt){1&Re&&re.NdJ("click",function(){return pt.tapToast()})("mouseenter",function(){return pt.stickAround()})("mouseleave",function(){return pt.delayedHideToast()}),2&Re&&(re.d8E("@flyInOut",pt.state),re.Tol(pt.toastClasses),re.Udp("display",pt.displayStyle))},attrs:w,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alertdialog","aria-live","polite",3,"innerHTML"],["role","alertdialog","aria-live","polite"],[1,"toast-progress"]],template:function(Re,pt){1&Re&&(re.YNc(0,E,3,0,"button",0),re.YNc(1,j,3,5,"div",1),re.YNc(2,$,1,3,"div",2),re.YNc(3,Y,2,4,"div",3),re.YNc(4,u,2,2,"div",4)),2&Re&&(re.Q6J("ngIf",pt.options.closeButton),re.xp6(1),re.Q6J("ngIf",pt.title),re.xp6(1),re.Q6J("ngIf",pt.message&&pt.options.enableHtml),re.xp6(1),re.Q6J("ngIf",pt.message&&!pt.options.enableHtml),re.xp6(1),re.Q6J("ngIf",pt.options.progressBar))},directives:[_.O5],encapsulation:2,data:{animation:[(0,oe.X$)("flyInOut",[(0,oe.SB)("inactive",(0,oe.oB)({opacity:0})),(0,oe.SB)("active",(0,oe.oB)({opacity:1})),(0,oe.SB)("removed",(0,oe.oB)({opacity:0})),(0,oe.eR)("inactive => active",(0,oe.jt)("{{ easeTime }}ms {{ easing }}")),(0,oe.eR)("active => removed",(0,oe.jt)("{{ easeTime }}ms {{ easing }}"))])]}}),r([(0,re.pfw)("class")],Me.prototype,"toastClasses",void 0),r([(0,re.pfw)("@flyInOut")],Me.prototype,"state",void 0),r([(0,re.pfw)("style.display")],Me.prototype,"displayStyle",null),r([(0,re.L6J)("click")],Me.prototype,"tapToast",null),r([(0,re.L6J)("mouseenter")],Me.prototype,"stickAround",null),r([(0,re.L6J)("mouseleave")],Me.prototype,"delayedHideToast",null),Me})();var st;const Dt=Object.assign(Object.assign({},Be),{toastComponent:rt});let ot=st=class{static forRoot(We={}){return{ngModule:st,providers:[{provide:Lt,useValue:{default:Dt,config:We}}]}}};var Yt;ot.\u0275fac=function(We){return new(We||ot)},ot.\u0275mod=re.oAB({type:ot}),ot.\u0275inj=re.cJS({imports:[[_.ez]]});let Ne=(()=>{let Me=class{constructor(Re,pt,Zt){this.toastrService=Re,this.toastPackage=pt,this.appRef=Zt,this.width=-1,this.toastClasses="",this.state="inactive",this.message=pt.message,this.title=pt.title,this.options=pt.config,this.originalTimeout=pt.config.timeOut,this.toastClasses=`${pt.toastType} ${pt.config.toastClass}`,this.sub=pt.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=pt.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=pt.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=pt.toastRef.countDuplicate().subscribe(cr=>{this.duplicatesCount=cr})}get displayStyle(){if("inactive"===this.state)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state="active",!(!0===this.options.disableTimeOut||"timeOut"===this.options.disableTimeOut)&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const Re=(new Date).getTime();this.width=(this.hideTime-Re)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state="active",this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=(new Date).getTime()+(this.originalTimeout||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){"removed"!==this.state&&(clearTimeout(this.timeout),this.state="removed",this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){"removed"!==this.state&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}};return Me.\u0275fac=function(Re){return new(Re||Me)(re.Y36(br),re.Y36(at),re.Y36(re.z2F))},Me.\u0275cmp=re.Xpm({type:Me,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(Re,pt){1&Re&&re.NdJ("click",function(){return pt.tapToast()})("mouseenter",function(){return pt.stickAround()})("mouseleave",function(){return pt.delayedHideToast()}),2&Re&&(re.Tol(pt.toastClasses),re.Udp("display",pt.displayStyle))},attrs:w,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alert","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert","aria-live","polite",3,"innerHTML"],["role","alert","aria-live","polite"],[1,"toast-progress"]],template:function(Re,pt){1&Re&&(re.YNc(0,W,3,0,"button",0),re.YNc(1,ae,3,5,"div",1),re.YNc(2,ye,1,3,"div",2),re.YNc(3,Qe,2,4,"div",3),re.YNc(4,Ot,2,2,"div",4)),2&Re&&(re.Q6J("ngIf",pt.options.closeButton),re.xp6(1),re.Q6J("ngIf",pt.title),re.xp6(1),re.Q6J("ngIf",pt.message&&pt.options.enableHtml),re.xp6(1),re.Q6J("ngIf",pt.message&&!pt.options.enableHtml),re.xp6(1),re.Q6J("ngIf",pt.options.progressBar))},directives:[_.O5],encapsulation:2}),r([(0,re.pfw)("class")],Me.prototype,"toastClasses",void 0),r([(0,re.pfw)("style.display")],Me.prototype,"displayStyle",null),r([(0,re.L6J)("click")],Me.prototype,"tapToast",null),r([(0,re.L6J)("mouseenter")],Me.prototype,"stickAround",null),r([(0,re.L6J)("mouseleave")],Me.prototype,"delayedHideToast",null),Me})();const X=Object.assign(Object.assign({},Be),{toastComponent:Ne});let ge=Yt=class{static forRoot(We={}){return{ngModule:Yt,providers:[{provide:Lt,useValue:{default:X,config:We}}]}}};ge.\u0275fac=function(We){return new(We||ge)},ge.\u0275mod=re.oAB({type:ge}),ge.\u0275inj=re.cJS({imports:[[_.ez]]})},1298:(M,b,n)=>{var t=n(18659);function e(O,H){t.cipher.registerAlgorithm(O,function(){return new t.aes.Algorithm(O,H)})}n(93311),n(63481),n(74747),M.exports=t.aes=t.aes||{},t.aes.startEncrypting=function(O,H,F,V){var D=a({key:O,output:F,decrypt:!1,mode:V});return D.start(H),D},t.aes.createEncryptionCipher=function(O,H){return a({key:O,output:null,decrypt:!1,mode:H})},t.aes.startDecrypting=function(O,H,F,V){var D=a({key:O,output:F,decrypt:!0,mode:V});return D.start(H),D},t.aes.createDecryptionCipher=function(O,H){return a({key:O,output:null,decrypt:!0,mode:H})},t.aes.Algorithm=function(O,H){l||f();var F=this;F.name=O,F.mode=new H({blockSize:16,cipher:{encrypt:function(V,D){return N(F._w,V,D,!1)},decrypt:function(V,D){return N(F._w,V,D,!0)}}}),F._init=!1},t.aes.Algorithm.prototype.initialize=function(O){if(!this._init){var F,H=O.key;if("string"!=typeof H||16!==H.length&&24!==H.length&&32!==H.length){if(t.util.isArray(H)&&(16===H.length||24===H.length||32===H.length)){F=H,H=t.util.createBuffer();for(var V=0;V<F.length;++V)H.putByte(F[V])}}else H=t.util.createBuffer(H);if(!t.util.isArray(H)){F=H,H=[];var D=F.length();if(16===D||24===D||32===D)for(D>>>=2,V=0;V<D;++V)H.push(F.getInt32())}if(!t.util.isArray(H)||4!==H.length&&6!==H.length&&8!==H.length)throw new Error("Invalid key parameter.");var q=-1!==["CFB","OFB","CTR","GCM"].indexOf(this.mode.name);this._w=C(H,O.decrypt&&!q),this._init=!0}},t.aes._expandKey=function(O,H){return l||f(),C(O,H)},t.aes._updateBlock=N,e("AES-ECB",t.cipher.modes.ecb),e("AES-CBC",t.cipher.modes.cbc),e("AES-CFB",t.cipher.modes.cfb),e("AES-OFB",t.cipher.modes.ofb),e("AES-CTR",t.cipher.modes.ctr),e("AES-GCM",t.cipher.modes.gcm);var r,d,y,g,p,l=!1;function f(){l=!0,y=[0,1,2,4,8,16,32,64,128,27,54];for(var O=new Array(256),H=0;H<128;++H)O[H]=H<<1,O[H+128]=H+128<<1^283;for(r=new Array(256),d=new Array(256),g=new Array(4),p=new Array(4),H=0;H<4;++H)g[H]=new Array(256),p[H]=new Array(256);var D,U,q,J,G,ie,K,F=0,V=0;for(H=0;H<256;++H){r[F]=J=(J=V^V<<1^V<<2^V<<3^V<<4)>>8^255&J^99,d[J]=F,ie=(G=O[J])<<24^J<<16^J<<8^J^G,K=((D=O[F])^(U=O[D])^(q=O[U]))<<24^(F^q)<<16^(F^U^q)<<8^F^D^q;for(var re=0;re<4;++re)g[re][F]=ie,p[re][J]=K,ie=ie<<24|ie>>>8,K=K<<24|K>>>8;0===F?F=V=1:(F=D^O[O[O[D^q]]],V^=O[O[V]])}}function C(O,H){for(var V,F=O.slice(0),D=1,U=F.length,J=4*(U+6+1),G=U;G<J;++G)V=F[G-1],G%U==0?(V=r[V>>>16&255]<<24^r[V>>>8&255]<<16^r[255&V]<<8^r[V>>>24]^y[D]<<24,D++):U>6&&G%U==4&&(V=r[V>>>24]<<24^r[V>>>16&255]<<16^r[V>>>8&255]<<8^r[255&V]),F[G]=F[G-U]^V;if(H){for(var ie,K=p[0],re=p[1],oe=p[2],B=p[3],s=F.slice(0),_=(G=0,(J=F.length)-4);G<J;G+=4,_-=4)if(0===G||G===J-4)s[G]=F[_],s[G+1]=F[_+3],s[G+2]=F[_+2],s[G+3]=F[_+1];else for(var w=0;w<4;++w)s[G+(3&-w)]=K[r[(ie=F[_+w])>>>24]]^re[r[ie>>>16&255]]^oe[r[ie>>>8&255]]^B[r[255&ie]];F=s}return F}function N(O,H,F,V){var U,q,J,G,ie,K,re,oe,B,s,_,w,D=O.length/4-1;V?(U=p[0],q=p[1],J=p[2],G=p[3],ie=d):(U=g[0],q=g[1],J=g[2],G=g[3],ie=r),K=H[0]^O[0],re=H[V?3:1]^O[1],oe=H[2]^O[2],B=H[V?1:3]^O[3];for(var E=3,x=1;x<D;++x)s=U[K>>>24]^q[re>>>16&255]^J[oe>>>8&255]^G[255&B]^O[++E],_=U[re>>>24]^q[oe>>>16&255]^J[B>>>8&255]^G[255&K]^O[++E],w=U[oe>>>24]^q[B>>>16&255]^J[K>>>8&255]^G[255&re]^O[++E],B=U[B>>>24]^q[K>>>16&255]^J[re>>>8&255]^G[255&oe]^O[++E],K=s,re=_,oe=w;F[0]=ie[K>>>24]<<24^ie[re>>>16&255]<<16^ie[oe>>>8&255]<<8^ie[255&B]^O[++E],F[V?3:1]=ie[re>>>24]<<24^ie[oe>>>16&255]<<16^ie[B>>>8&255]<<8^ie[255&K]^O[++E],F[2]=ie[oe>>>24]<<24^ie[B>>>16&255]<<16^ie[K>>>8&255]<<8^ie[255&re]^O[++E],F[V?1:3]=ie[B>>>24]<<24^ie[K>>>16&255]<<16^ie[re>>>8&255]<<8^ie[255&oe]^O[++E]}function a(O){var V,F="AES-"+((O=O||{}).mode||"CBC").toUpperCase(),D=(V=O.decrypt?t.cipher.createDecipher(F,O.key):t.cipher.createCipher(F,O.key)).start;return V.start=function(U,q){var J=null;q instanceof t.util.ByteBuffer&&(J=q,q={}),(q=q||{}).output=J,q.iv=U,D.call(V,q)},V}},16683:(M,b,n)=>{var t=n(18659);n(1298),n(82266);var e=M.exports=t.tls;function l(p,f,C){var N=f.entity===t.tls.ConnectionEnd.client;p.read.cipherState={init:!1,cipher:t.cipher.createDecipher("AES-CBC",N?C.keys.server_write_key:C.keys.client_write_key),iv:N?C.keys.server_write_IV:C.keys.client_write_IV},p.write.cipherState={init:!1,cipher:t.cipher.createCipher("AES-CBC",N?C.keys.client_write_key:C.keys.server_write_key),iv:N?C.keys.client_write_IV:C.keys.server_write_IV},p.read.cipherFunction=y,p.write.cipherFunction=h,p.read.macLength=p.write.macLength=C.mac_length,p.read.macFunction=p.write.macFunction=e.hmac_sha1}function h(p,f){var a,C=!1,N=f.macFunction(f.macKey,f.sequenceNumber,p);p.fragment.putBytes(N),f.updateSequenceNumber(),a=p.version.minor===e.Versions.TLS_1_0.minor?f.cipherState.init?null:f.cipherState.iv:t.random.getBytesSync(16),f.cipherState.init=!0;var O=f.cipherState.cipher;return O.start({iv:a}),p.version.minor>=e.Versions.TLS_1_1.minor&&O.output.putBytes(a),O.update(p.fragment),O.finish(r)&&(p.fragment=O.output,p.length=p.fragment.length(),C=!0),C}function r(p,f,C){if(!C){var N=p-f.length()%p;f.fillWithByte(N-1,N)}return!0}function d(p,f,C){var N=!0;if(C){for(var a=f.length(),O=f.last(),H=a-1-O;H<a-1;++H)N=N&&f.at(H)==O;N&&f.truncate(O+1)}return N}function y(p,f){var N,C=!1;N=p.version.minor===e.Versions.TLS_1_0.minor?f.cipherState.init?null:f.cipherState.iv:p.fragment.getBytes(16),f.cipherState.init=!0;var a=f.cipherState.cipher;a.start({iv:N}),a.update(p.fragment),C=a.finish(d);var O=f.macLength,H=t.random.getBytesSync(O),F=a.output.length();F>=O?(p.fragment=a.output.getBytes(F-O),H=a.output.getBytes(O)):p.fragment=a.output.getBytes(),p.fragment=t.util.createBuffer(p.fragment),p.length=p.fragment.length();var V=f.macFunction(f.macKey,f.sequenceNumber,p);return f.updateSequenceNumber(),C=function g(p,f,C){var N=t.hmac.create();return N.start("SHA1",p),N.update(f),f=N.digest().getBytes(),N.start(null,null),N.update(C),f===(C=N.digest().getBytes())}(f.macKey,H,V)&&C,C}e.CipherSuites.TLS_RSA_WITH_AES_128_CBC_SHA={id:[0,47],name:"TLS_RSA_WITH_AES_128_CBC_SHA",initSecurityParameters:function(p){p.bulk_cipher_algorithm=e.BulkCipherAlgorithm.aes,p.cipher_type=e.CipherType.block,p.enc_key_length=16,p.block_length=16,p.fixed_iv_length=16,p.record_iv_length=16,p.mac_algorithm=e.MACAlgorithm.hmac_sha1,p.mac_length=20,p.mac_key_length=20},initConnectionState:l},e.CipherSuites.TLS_RSA_WITH_AES_256_CBC_SHA={id:[0,53],name:"TLS_RSA_WITH_AES_256_CBC_SHA",initSecurityParameters:function(p){p.bulk_cipher_algorithm=e.BulkCipherAlgorithm.aes,p.cipher_type=e.CipherType.block,p.enc_key_length=32,p.block_length=16,p.fixed_iv_length=16,p.record_iv_length=16,p.mac_algorithm=e.MACAlgorithm.hmac_sha1,p.mac_length=20,p.mac_key_length=20},initConnectionState:l}},78877:(M,b,n)=>{var t=n(18659);n(17791);var e=t.asn1;b.privateKeyValidator={name:"PrivateKeyInfo",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:e.Class.UNIVERSAL,type:e.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:e.Class.UNIVERSAL,type:e.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:e.Class.UNIVERSAL,type:e.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]},b.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:e.Class.UNIVERSAL,type:e.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{tagClass:e.Class.UNIVERSAL,type:e.Type.BITSTRING,constructed:!1,composed:!0,captureBitStringValue:"ed25519PublicKey"}]}},17791:(M,b,n)=>{var t=n(18659);n(74747),n(16078);var e=M.exports=t.asn1=t.asn1||{};function l(y,g,p){if(p>g){var f=new Error("Too few bytes to parse DER.");throw f.available=y.length(),f.remaining=g,f.requested=p,f}}function r(y,g,p,f){var C;l(y,g,2);var N=y.getByte();g--;var a=192&N,O=31&N;C=y.length();var H=function(y,g){var p=y.getByte();if(g--,128!==p){var f;if(128&p){var N=127&p;l(y,g,N),f=y.getInt(N<<3)}else f=p;if(f<0)throw new Error("Negative length: "+f);return f}}(y,g);if(g-=C-y.length(),void 0!==H&&H>g){if(f.strict){var F=new Error("Too few bytes to read ASN.1 value.");throw F.available=y.length(),F.remaining=g,F.requested=H,F}H=g}var V,D,U=32==(32&N);if(U)if(V=[],void 0===H)for(;;){if(l(y,g,2),y.bytes(2)===String.fromCharCode(0,0)){y.getBytes(2),g-=2;break}C=y.length(),V.push(r(y,g,p+1,f)),g-=C-y.length()}else for(;H>0;)C=y.length(),V.push(r(y,H,p+1,f)),g-=C-y.length(),H-=C-y.length();if(void 0===V&&a===e.Class.UNIVERSAL&&O===e.Type.BITSTRING&&(D=y.bytes(H)),void 0===V&&f.decodeBitStrings&&a===e.Class.UNIVERSAL&&O===e.Type.BITSTRING&&H>1){var q=y.read,J=g,G=0;if(O===e.Type.BITSTRING&&(l(y,g,1),G=y.getByte(),g--),0===G)try{C=y.length();var K=r(y,g,p+1,{strict:!0,decodeBitStrings:!0}),re=C-y.length();g-=re,O==e.Type.BITSTRING&&re++;var oe=K.tagClass;re===H&&(oe===e.Class.UNIVERSAL||oe===e.Class.CONTEXT_SPECIFIC)&&(V=[K])}catch{}void 0===V&&(y.read=q,g=J)}if(void 0===V){if(void 0===H){if(f.strict)throw new Error("Non-constructed ASN.1 object of indefinite length.");H=g}if(O===e.Type.BMPSTRING)for(V="";H>0;H-=2)l(y,g,2),V+=String.fromCharCode(y.getInt16()),g-=2;else V=y.getBytes(H),g-=H}return e.create(a,O,U,V,void 0===D?null:{bitStringContents:D})}e.Class={UNIVERSAL:0,APPLICATION:64,CONTEXT_SPECIFIC:128,PRIVATE:192},e.Type={NONE:0,BOOLEAN:1,INTEGER:2,BITSTRING:3,OCTETSTRING:4,NULL:5,OID:6,ODESC:7,EXTERNAL:8,REAL:9,ENUMERATED:10,EMBEDDED:11,UTF8:12,ROID:13,SEQUENCE:16,SET:17,PRINTABLESTRING:19,IA5STRING:22,UTCTIME:23,GENERALIZEDTIME:24,BMPSTRING:30},e.create=function(y,g,p,f,C){if(t.util.isArray(f)){for(var N=[],a=0;a<f.length;++a)void 0!==f[a]&&N.push(f[a]);f=N}var O={tagClass:y,type:g,constructed:p,composed:p||t.util.isArray(f),value:f};return C&&"bitStringContents"in C&&(O.bitStringContents=C.bitStringContents,O.original=e.copy(O)),O},e.copy=function(y,g){var p;if(t.util.isArray(y)){p=[];for(var f=0;f<y.length;++f)p.push(e.copy(y[f],g));return p}return"string"==typeof y?y:(p={tagClass:y.tagClass,type:y.type,constructed:y.constructed,composed:y.composed,value:e.copy(y.value,g)},g&&!g.excludeBitStringContents&&(p.bitStringContents=y.bitStringContents),p)},e.equals=function(y,g,p){if(t.util.isArray(y)){if(!t.util.isArray(g)||y.length!==g.length)return!1;for(var f=0;f<y.length;++f)if(!e.equals(y[f],g[f]))return!1;return!0}if(typeof y!=typeof g)return!1;if("string"==typeof y)return y===g;var C=y.tagClass===g.tagClass&&y.type===g.type&&y.constructed===g.constructed&&y.composed===g.composed&&e.equals(y.value,g.value);return p&&p.includeBitStringContents&&(C=C&&y.bitStringContents===g.bitStringContents),C},e.getBerValueLength=function(y){var g=y.getByte();if(128!==g)return 128&g?y.getInt((127&g)<<3):g},e.fromDer=function(y,g){void 0===g&&(g={strict:!0,parseAllBytes:!0,decodeBitStrings:!0}),"boolean"==typeof g&&(g={strict:g,parseAllBytes:!0,decodeBitStrings:!0}),"strict"in g||(g.strict=!0),"parseAllBytes"in g||(g.parseAllBytes=!0),"decodeBitStrings"in g||(g.decodeBitStrings=!0),"string"==typeof y&&(y=t.util.createBuffer(y));var p=y.length(),f=r(y,y.length(),0,g);if(g.parseAllBytes&&0!==y.length()){var C=new Error("Unparsed DER bytes remain after ASN.1 parsing.");throw C.byteCount=p,C.remaining=y.length(),C}return f},e.toDer=function(y){var g=t.util.createBuffer(),p=y.tagClass|y.type,f=t.util.createBuffer(),C=!1;if("bitStringContents"in y&&(C=!0,y.original&&(C=e.equals(y,y.original))),C)f.putBytes(y.bitStringContents);else if(y.composed){y.constructed?p|=32:f.putByte(0);for(var N=0;N<y.value.length;++N)void 0!==y.value[N]&&f.putBuffer(e.toDer(y.value[N]))}else if(y.type===e.Type.BMPSTRING)for(N=0;N<y.value.length;++N)f.putInt16(y.value.charCodeAt(N));else y.type===e.Type.INTEGER&&y.value.length>1&&(0===y.value.charCodeAt(0)&&0==(128&y.value.charCodeAt(1))||255===y.value.charCodeAt(0)&&128==(128&y.value.charCodeAt(1)))?f.putBytes(y.value.substr(1)):f.putBytes(y.value);if(g.putByte(p),f.length()<=127)g.putByte(127&f.length());else{var a=f.length(),O="";do{O+=String.fromCharCode(255&a),a>>>=8}while(a>0);for(g.putByte(128|O.length),N=O.length-1;N>=0;--N)g.putByte(O.charCodeAt(N))}return g.putBuffer(f),g},e.oidToDer=function(y){var g=y.split("."),p=t.util.createBuffer();p.putByte(40*parseInt(g[0],10)+parseInt(g[1],10));for(var f,C,N,a,O=2;O<g.length;++O){f=!0,C=[],N=parseInt(g[O],10);do{a=127&N,N>>>=7,f||(a|=128),C.push(a),f=!1}while(N>0);for(var H=C.length-1;H>=0;--H)p.putByte(C[H])}return p},e.derToOid=function(y){var g;"string"==typeof y&&(y=t.util.createBuffer(y));var p=y.getByte();g=Math.floor(p/40)+"."+p%40;for(var f=0;y.length()>0;)f<<=7,128&(p=y.getByte())?f+=127&p:(g+="."+(f+p),f=0);return g},e.utcTimeToDate=function(y){var g=new Date,p=parseInt(y.substr(0,2),10);p=p>=50?1900+p:2e3+p;var f=parseInt(y.substr(2,2),10)-1,C=parseInt(y.substr(4,2),10),N=parseInt(y.substr(6,2),10),a=parseInt(y.substr(8,2),10),O=0;if(y.length>11){var H=y.charAt(10),F=10;"+"!==H&&"-"!==H&&(O=parseInt(y.substr(10,2),10),F+=2)}if(g.setUTCFullYear(p,f,C),g.setUTCHours(N,a,O,0),F&&("+"===(H=y.charAt(F))||"-"===H)){var U=60*parseInt(y.substr(F+1,2),10)+parseInt(y.substr(F+4,2),10);U*=6e4,g.setTime("+"===H?+g-U:+g+U)}return g},e.generalizedTimeToDate=function(y){var g=new Date,p=parseInt(y.substr(0,4),10),f=parseInt(y.substr(4,2),10)-1,C=parseInt(y.substr(6,2),10),N=parseInt(y.substr(8,2),10),a=parseInt(y.substr(10,2),10),O=parseInt(y.substr(12,2),10),H=0,F=0,V=!1;"Z"===y.charAt(y.length-1)&&(V=!0);var D=y.length-5,U=y.charAt(D);return"+"!==U&&"-"!==U||(F=60*parseInt(y.substr(D+1,2),10)+parseInt(y.substr(D+4,2),10),F*=6e4,"+"===U&&(F*=-1),V=!0),"."===y.charAt(14)&&(H=1e3*parseFloat(y.substr(14),10)),V?(g.setUTCFullYear(p,f,C),g.setUTCHours(N,a,O,H),g.setTime(+g+F)):(g.setFullYear(p,f,C),g.setHours(N,a,O,H)),g},e.dateToUtcTime=function(y){if("string"==typeof y)return y;var g="",p=[];p.push((""+y.getUTCFullYear()).substr(2)),p.push(""+(y.getUTCMonth()+1)),p.push(""+y.getUTCDate()),p.push(""+y.getUTCHours()),p.push(""+y.getUTCMinutes()),p.push(""+y.getUTCSeconds());for(var f=0;f<p.length;++f)p[f].length<2&&(g+="0"),g+=p[f];return g+"Z"},e.dateToGeneralizedTime=function(y){if("string"==typeof y)return y;var g="",p=[];p.push(""+y.getUTCFullYear()),p.push(""+(y.getUTCMonth()+1)),p.push(""+y.getUTCDate()),p.push(""+y.getUTCHours()),p.push(""+y.getUTCMinutes()),p.push(""+y.getUTCSeconds());for(var f=0;f<p.length;++f)p[f].length<2&&(g+="0"),g+=p[f];return g+"Z"},e.integerToDer=function(y){var g=t.util.createBuffer();if(y>=-128&&y<128)return g.putSignedInt(y,8);if(y>=-32768&&y<32768)return g.putSignedInt(y,16);if(y>=-8388608&&y<8388608)return g.putSignedInt(y,24);if(y>=-2147483648&&y<2147483648)return g.putSignedInt(y,32);var p=new Error("Integer too large; max is 32-bits.");throw p.integer=y,p},e.derToInteger=function(y){"string"==typeof y&&(y=t.util.createBuffer(y));var g=8*y.length();if(g>32)throw new Error("Integer too large; max is 32-bits.");return y.getSignedInt(g)},e.validate=function(y,g,p,f){var C=!1;if((y.tagClass===g.tagClass||typeof g.tagClass>"u")&&(y.type===g.type||typeof g.type>"u"))if(y.constructed===g.constructed||typeof g.constructed>"u"){if(C=!0,g.value&&t.util.isArray(g.value))for(var N=0,a=0;C&&a<g.value.length;++a)C=g.value[a].optional||!1,y.value[N]&&((C=e.validate(y.value[N],g.value[a],p,f))?++N:g.value[a].optional&&(C=!0)),!C&&f&&f.push("["+g.name+'] Tag class "'+g.tagClass+'", type "'+g.type+'" expected value length "'+g.value.length+'", got "'+y.value.length+'"');if(C&&p&&(g.capture&&(p[g.capture]=y.value),g.captureAsn1&&(p[g.captureAsn1]=y),g.captureBitStringContents&&"bitStringContents"in y&&(p[g.captureBitStringContents]=y.bitStringContents),g.captureBitStringValue&&"bitStringContents"in y))if(y.bitStringContents.length<2)p[g.captureBitStringValue]="";else{if(0!==y.bitStringContents.charCodeAt(0))throw new Error("captureBitStringValue only supported for zero unused bits");p[g.captureBitStringValue]=y.bitStringContents.slice(1)}}else f&&f.push("["+g.name+'] Expected constructed "'+g.constructed+'", got "'+y.constructed+'"');else f&&(y.tagClass!==g.tagClass&&f.push("["+g.name+'] Expected tag class "'+g.tagClass+'", got "'+y.tagClass+'"'),y.type!==g.type&&f.push("["+g.name+'] Expected type "'+g.type+'", got "'+y.type+'"'));return C};var d=/[^\\u0000-\\u00ff]/;e.prettyPrint=function(y,g,p){var f="";p=p||2,(g=g||0)>0&&(f+="\n");for(var C="",N=0;N<g*p;++N)C+=" ";switch(f+=C+"Tag: ",y.tagClass){case e.Class.UNIVERSAL:f+="Universal:";break;case e.Class.APPLICATION:f+="Application:";break;case e.Class.CONTEXT_SPECIFIC:f+="Context-Specific:";break;case e.Class.PRIVATE:f+="Private:"}if(y.tagClass===e.Class.UNIVERSAL)switch(f+=y.type,y.type){case e.Type.NONE:f+=" (None)";break;case e.Type.BOOLEAN:f+=" (Boolean)";break;case e.Type.INTEGER:f+=" (Integer)";break;case e.Type.BITSTRING:f+=" (Bit string)";break;case e.Type.OCTETSTRING:f+=" (Octet string)";break;case e.Type.NULL:f+=" (Null)";break;case e.Type.OID:f+=" (Object Identifier)";break;case e.Type.ODESC:f+=" (Object Descriptor)";break;case e.Type.EXTERNAL:f+=" (External or Instance of)";break;case e.Type.REAL:f+=" (Real)";break;case e.Type.ENUMERATED:f+=" (Enumerated)";break;case e.Type.EMBEDDED:f+=" (Embedded PDV)";break;case e.Type.UTF8:f+=" (UTF8)";break;case e.Type.ROID:f+=" (Relative Object Identifier)";break;case e.Type.SEQUENCE:f+=" (Sequence)";break;case e.Type.SET:f+=" (Set)";break;case e.Type.PRINTABLESTRING:f+=" (Printable String)";break;case e.Type.IA5String:f+=" (IA5String (ASCII))";break;case e.Type.UTCTIME:f+=" (UTC time)";break;case e.Type.GENERALIZEDTIME:f+=" (Generalized time)";break;case e.Type.BMPSTRING:f+=" (BMP String)"}else f+=y.type;if(f+="\n",f+=C+"Constructed: "+y.constructed+"\n",y.composed){var a=0,O="";for(N=0;N<y.value.length;++N)void 0!==y.value[N]&&(a+=1,O+=e.prettyPrint(y.value[N],g+1,p),N+1<y.value.length&&(O+=","));f+=C+"Sub values: "+a+O}else{if(f+=C+"Value: ",y.type===e.Type.OID){var H=e.derToOid(y.value);f+=H,t.pki&&t.pki.oids&&H in t.pki.oids&&(f+=" ("+t.pki.oids[H]+") ")}if(y.type===e.Type.INTEGER)try{f+=e.derToInteger(y.value)}catch{f+="0x"+t.util.bytesToHex(y.value)}else if(y.type===e.Type.BITSTRING){if(f+=y.value.length>1?"0x"+t.util.bytesToHex(y.value.slice(1)):"(none)",y.value.length>0){var F=y.value.charCodeAt(0);1==F?f+=" (1 unused bit shown)":F>1&&(f+=" ("+F+" unused bits shown)")}}else if(y.type===e.Type.OCTETSTRING)d.test(y.value)||(f+="("+y.value+") "),f+="0x"+t.util.bytesToHex(y.value);else if(y.type===e.Type.UTF8)try{f+=t.util.decodeUtf8(y.value)}catch(V){if("URI malformed"!==V.message)throw V;f+="0x"+t.util.bytesToHex(y.value)+" (malformed UTF8)"}else y.type===e.Type.PRINTABLESTRING||y.type===e.Type.IA5String?f+=y.value:d.test(y.value)?f+="0x"+t.util.bytesToHex(y.value):f+=0===y.value.length?"[null]":y.value}return f}},62020:M=>{var b={};M.exports=b;var n={};b.encode=function(e,l,h){if("string"!=typeof l)throw new TypeError('"alphabet" must be a string.');if(void 0!==h&&"number"!=typeof h)throw new TypeError('"maxline" must be a number.');var r="";if(e instanceof Uint8Array){var d=0,y=l.length,g=l.charAt(0),p=[0];for(d=0;d<e.length;++d){for(var f=0,C=e[d];f<p.length;++f)p[f]=(C+=p[f]<<8)%y,C=C/y|0;for(;C>0;)p.push(C%y),C=C/y|0}for(d=0;0===e[d]&&d<e.length-1;++d)r+=g;for(d=p.length-1;d>=0;--d)r+=l[p[d]]}else r=function t(e,l){var h=0,r=l.length,d=l.charAt(0),y=[0];for(h=0;h<e.length();++h){for(var g=0,p=e.at(h);g<y.length;++g)y[g]=(p+=y[g]<<8)%r,p=p/r|0;for(;p>0;)y.push(p%r),p=p/r|0}var f="";for(h=0;0===e.at(h)&&h<e.length()-1;++h)f+=d;for(h=y.length-1;h>=0;--h)f+=l[y[h]];return f}(e,l);if(h){var N=new RegExp(".{1,"+h+"}","g");r=r.match(N).join("\r\n")}return r},b.decode=function(e,l){if("string"!=typeof e)throw new TypeError('"input" must be a string.');if("string"!=typeof l)throw new TypeError('"alphabet" must be a string.');var h=n[l];if(!h){h=n[l]=[];for(var r=0;r<l.length;++r)h[l.charCodeAt(r)]=r}e=e.replace(/\s/g,"");var d=l.length,y=l.charAt(0),g=[0];for(r=0;r<e.length;r++){var p=h[e.charCodeAt(r)];if(void 0===p)return;for(var f=0,C=p;f<g.length;++f)g[f]=255&(C+=g[f]*d),C>>=8;for(;C>0;)g.push(255&C),C>>=8}for(var N=0;e[N]===y&&N<e.length-1;++N)g.push(0);return typeof Buffer<"u"?Buffer.from(g.reverse()):new Uint8Array(g.reverse())}},93311:(M,b,n)=>{var t=n(18659);n(74747),M.exports=t.cipher=t.cipher||{},t.cipher.algorithms=t.cipher.algorithms||{},t.cipher.createCipher=function(l,h){var r=l;if("string"==typeof r&&(r=t.cipher.getAlgorithm(r))&&(r=r()),!r)throw new Error("Unsupported algorithm: "+l);return new t.cipher.BlockCipher({algorithm:r,key:h,decrypt:!1})},t.cipher.createDecipher=function(l,h){var r=l;if("string"==typeof r&&(r=t.cipher.getAlgorithm(r))&&(r=r()),!r)throw new Error("Unsupported algorithm: "+l);return new t.cipher.BlockCipher({algorithm:r,key:h,decrypt:!0})},t.cipher.registerAlgorithm=function(l,h){l=l.toUpperCase(),t.cipher.algorithms[l]=h},t.cipher.getAlgorithm=function(l){return(l=l.toUpperCase())in t.cipher.algorithms?t.cipher.algorithms[l]:null};var e=t.cipher.BlockCipher=function(l){this.algorithm=l.algorithm,this.mode=this.algorithm.mode,this.blockSize=this.mode.blockSize,this._finish=!1,this._input=null,this.output=null,this._op=l.decrypt?this.mode.decrypt:this.mode.encrypt,this._decrypt=l.decrypt,this.algorithm.initialize(l)};e.prototype.start=function(l){l=l||{};var h={};for(var r in l)h[r]=l[r];h.decrypt=this._decrypt,this._finish=!1,this._input=t.util.createBuffer(),this.output=l.output||t.util.createBuffer(),this.mode.start(h)},e.prototype.update=function(l){for(l&&this._input.putBuffer(l);!this._op.call(this.mode,this._input,this.output,this._finish)&&!this._finish;);this._input.compact()},e.prototype.finish=function(l){l&&("ECB"===this.mode.name||"CBC"===this.mode.name)&&(this.mode.pad=function(r){return l(this.blockSize,r,!1)},this.mode.unpad=function(r){return l(this.blockSize,r,!0)});var h={};return h.decrypt=this._decrypt,h.overflow=this._input.length()%this.blockSize,!(!this._decrypt&&this.mode.pad&&!this.mode.pad(this._input,h)||(this._finish=!0,this.update(),this._decrypt&&this.mode.unpad&&!this.mode.unpad(this.output,h))||this.mode.afterFinish&&!this.mode.afterFinish(this.output,h))}},63481:(M,b,n)=>{var t=n(18659);n(74747),t.cipher=t.cipher||{};var e=M.exports=t.cipher.modes=t.cipher.modes||{};function l(d,y){if("string"==typeof d&&(d=t.util.createBuffer(d)),t.util.isArray(d)&&d.length>4){var g=d;d=t.util.createBuffer();for(var p=0;p<g.length;++p)d.putByte(g[p])}if(d.length()<y)throw new Error("Invalid IV length; got "+d.length()+" bytes and expected "+y+" bytes.");if(!t.util.isArray(d)){var f=[],C=y/4;for(p=0;p<C;++p)f.push(d.getInt32());d=f}return d}function h(d){d[d.length-1]=d[d.length-1]+1&4294967295}function r(d){return[d/4294967296|0,4294967295&d]}e.ecb=function(d){d=d||{},this.name="ECB",this.cipher=d.cipher,this.blockSize=d.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)},e.ecb.prototype.start=function(d){},e.ecb.prototype.encrypt=function(d,y,g){if(d.length()<this.blockSize&&!(g&&d.length()>0))return!0;for(var p=0;p<this._ints;++p)this._inBlock[p]=d.getInt32();for(this.cipher.encrypt(this._inBlock,this._outBlock),p=0;p<this._ints;++p)y.putInt32(this._outBlock[p])},e.ecb.prototype.decrypt=function(d,y,g){if(d.length()<this.blockSize&&!(g&&d.length()>0))return!0;for(var p=0;p<this._ints;++p)this._inBlock[p]=d.getInt32();for(this.cipher.decrypt(this._inBlock,this._outBlock),p=0;p<this._ints;++p)y.putInt32(this._outBlock[p])},e.ecb.prototype.pad=function(d,y){var g=d.length()===this.blockSize?this.blockSize:this.blockSize-d.length();return d.fillWithByte(g,g),!0},e.ecb.prototype.unpad=function(d,y){if(y.overflow>0)return!1;var g=d.length(),p=d.at(g-1);return!(p>this.blockSize<<2||(d.truncate(p),0))},e.cbc=function(d){d=d||{},this.name="CBC",this.cipher=d.cipher,this.blockSize=d.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)},e.cbc.prototype.start=function(d){if(null===d.iv){if(!this._prev)throw new Error("Invalid IV parameter.");this._iv=this._prev.slice(0)}else{if(!("iv"in d))throw new Error("Invalid IV parameter.");this._iv=l(d.iv,this.blockSize),this._prev=this._iv.slice(0)}},e.cbc.prototype.encrypt=function(d,y,g){if(d.length()<this.blockSize&&!(g&&d.length()>0))return!0;for(var p=0;p<this._ints;++p)this._inBlock[p]=this._prev[p]^d.getInt32();for(this.cipher.encrypt(this._inBlock,this._outBlock),p=0;p<this._ints;++p)y.putInt32(this._outBlock[p]);this._prev=this._outBlock},e.cbc.prototype.decrypt=function(d,y,g){if(d.length()<this.blockSize&&!(g&&d.length()>0))return!0;for(var p=0;p<this._ints;++p)this._inBlock[p]=d.getInt32();for(this.cipher.decrypt(this._inBlock,this._outBlock),p=0;p<this._ints;++p)y.putInt32(this._prev[p]^this._outBlock[p]);this._prev=this._inBlock.slice(0)},e.cbc.prototype.pad=function(d,y){var g=d.length()===this.blockSize?this.blockSize:this.blockSize-d.length();return d.fillWithByte(g,g),!0},e.cbc.prototype.unpad=function(d,y){if(y.overflow>0)return!1;var g=d.length(),p=d.at(g-1);return!(p>this.blockSize<<2||(d.truncate(p),0))},e.cfb=function(d){d=d||{},this.name="CFB",this.cipher=d.cipher,this.blockSize=d.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialBlock=new Array(this._ints),this._partialOutput=t.util.createBuffer(),this._partialBytes=0},e.cfb.prototype.start=function(d){if(!("iv"in d))throw new Error("Invalid IV parameter.");this._iv=l(d.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},e.cfb.prototype.encrypt=function(d,y,g){var p=d.length();if(0===p)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&p>=this.blockSize)for(var f=0;f<this._ints;++f)this._inBlock[f]=d.getInt32()^this._outBlock[f],y.putInt32(this._inBlock[f]);else{var C=(this.blockSize-p)%this.blockSize;for(C>0&&(C=this.blockSize-C),this._partialOutput.clear(),f=0;f<this._ints;++f)this._partialBlock[f]=d.getInt32()^this._outBlock[f],this._partialOutput.putInt32(this._partialBlock[f]);if(C>0)d.read-=this.blockSize;else for(f=0;f<this._ints;++f)this._inBlock[f]=this._partialBlock[f];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),C>0&&!g)return y.putBytes(this._partialOutput.getBytes(C-this._partialBytes)),this._partialBytes=C,!0;y.putBytes(this._partialOutput.getBytes(p-this._partialBytes)),this._partialBytes=0}},e.cfb.prototype.decrypt=function(d,y,g){var p=d.length();if(0===p)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&p>=this.blockSize)for(var f=0;f<this._ints;++f)this._inBlock[f]=d.getInt32(),y.putInt32(this._inBlock[f]^this._outBlock[f]);else{var C=(this.blockSize-p)%this.blockSize;for(C>0&&(C=this.blockSize-C),this._partialOutput.clear(),f=0;f<this._ints;++f)this._partialBlock[f]=d.getInt32(),this._partialOutput.putInt32(this._partialBlock[f]^this._outBlock[f]);if(C>0)d.read-=this.blockSize;else for(f=0;f<this._ints;++f)this._inBlock[f]=this._partialBlock[f];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),C>0&&!g)return y.putBytes(this._partialOutput.getBytes(C-this._partialBytes)),this._partialBytes=C,!0;y.putBytes(this._partialOutput.getBytes(p-this._partialBytes)),this._partialBytes=0}},e.ofb=function(d){d=d||{},this.name="OFB",this.cipher=d.cipher,this.blockSize=d.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=t.util.createBuffer(),this._partialBytes=0},e.ofb.prototype.start=function(d){if(!("iv"in d))throw new Error("Invalid IV parameter.");this._iv=l(d.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},e.ofb.prototype.encrypt=function(d,y,g){var p=d.length();if(0===d.length())return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&p>=this.blockSize)for(var f=0;f<this._ints;++f)y.putInt32(d.getInt32()^this._outBlock[f]),this._inBlock[f]=this._outBlock[f];else{var C=(this.blockSize-p)%this.blockSize;for(C>0&&(C=this.blockSize-C),this._partialOutput.clear(),f=0;f<this._ints;++f)this._partialOutput.putInt32(d.getInt32()^this._outBlock[f]);if(C>0)d.read-=this.blockSize;else for(f=0;f<this._ints;++f)this._inBlock[f]=this._outBlock[f];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),C>0&&!g)return y.putBytes(this._partialOutput.getBytes(C-this._partialBytes)),this._partialBytes=C,!0;y.putBytes(this._partialOutput.getBytes(p-this._partialBytes)),this._partialBytes=0}},e.ofb.prototype.decrypt=e.ofb.prototype.encrypt,e.ctr=function(d){d=d||{},this.name="CTR",this.cipher=d.cipher,this.blockSize=d.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=t.util.createBuffer(),this._partialBytes=0},e.ctr.prototype.start=function(d){if(!("iv"in d))throw new Error("Invalid IV parameter.");this._iv=l(d.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},e.ctr.prototype.encrypt=function(d,y,g){var p=d.length();if(0===p)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&p>=this.blockSize)for(var f=0;f<this._ints;++f)y.putInt32(d.getInt32()^this._outBlock[f]);else{var C=(this.blockSize-p)%this.blockSize;for(C>0&&(C=this.blockSize-C),this._partialOutput.clear(),f=0;f<this._ints;++f)this._partialOutput.putInt32(d.getInt32()^this._outBlock[f]);if(C>0&&(d.read-=this.blockSize),this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),C>0&&!g)return y.putBytes(this._partialOutput.getBytes(C-this._partialBytes)),this._partialBytes=C,!0;y.putBytes(this._partialOutput.getBytes(p-this._partialBytes)),this._partialBytes=0}h(this._inBlock)},e.ctr.prototype.decrypt=e.ctr.prototype.encrypt,e.gcm=function(d){d=d||{},this.name="GCM",this.cipher=d.cipher,this.blockSize=d.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints),this._partialOutput=t.util.createBuffer(),this._partialBytes=0,this._R=3774873600},e.gcm.prototype.start=function(d){if(!("iv"in d))throw new Error("Invalid IV parameter.");var g,y=t.util.createBuffer(d.iv);if(this._cipherLength=0,g="additionalData"in d?t.util.createBuffer(d.additionalData):t.util.createBuffer(),this._tagLength="tagLength"in d?d.tagLength:128,this._tag=null,d.decrypt&&(this._tag=t.util.createBuffer(d.tag).getBytes(),this._tag.length!==this._tagLength/8))throw new Error("Authentication tag does not match tag length.");this._hashBlock=new Array(this._ints),this.tag=null,this._hashSubkey=new Array(this._ints),this.cipher.encrypt([0,0,0,0],this._hashSubkey),this.componentBits=4,this._m=this.generateHashTable(this._hashSubkey,this.componentBits);var p=y.length();if(12===p)this._j0=[y.getInt32(),y.getInt32(),y.getInt32(),1];else{for(this._j0=[0,0,0,0];y.length()>0;)this._j0=this.ghash(this._hashSubkey,this._j0,[y.getInt32(),y.getInt32(),y.getInt32(),y.getInt32()]);this._j0=this.ghash(this._hashSubkey,this._j0,[0,0].concat(r(8*p)))}this._inBlock=this._j0.slice(0),h(this._inBlock),this._partialBytes=0,g=t.util.createBuffer(g),this._aDataLength=r(8*g.length());var f=g.length()%this.blockSize;for(f&&g.fillWithByte(0,this.blockSize-f),this._s=[0,0,0,0];g.length()>0;)this._s=this.ghash(this._hashSubkey,this._s,[g.getInt32(),g.getInt32(),g.getInt32(),g.getInt32()])},e.gcm.prototype.encrypt=function(d,y,g){var p=d.length();if(0===p)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&p>=this.blockSize){for(var f=0;f<this._ints;++f)y.putInt32(this._outBlock[f]^=d.getInt32());this._cipherLength+=this.blockSize}else{var C=(this.blockSize-p)%this.blockSize;for(C>0&&(C=this.blockSize-C),this._partialOutput.clear(),f=0;f<this._ints;++f)this._partialOutput.putInt32(d.getInt32()^this._outBlock[f]);if(C<=0||g){if(g){var N=p%this.blockSize;this._cipherLength+=N,this._partialOutput.truncate(this.blockSize-N)}else this._cipherLength+=this.blockSize;for(f=0;f<this._ints;++f)this._outBlock[f]=this._partialOutput.getInt32();this._partialOutput.read-=this.blockSize}if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),C>0&&!g)return d.read-=this.blockSize,y.putBytes(this._partialOutput.getBytes(C-this._partialBytes)),this._partialBytes=C,!0;y.putBytes(this._partialOutput.getBytes(p-this._partialBytes)),this._partialBytes=0}this._s=this.ghash(this._hashSubkey,this._s,this._outBlock),h(this._inBlock)},e.gcm.prototype.decrypt=function(d,y,g){var p=d.length();if(p<this.blockSize&&!(g&&p>0))return!0;this.cipher.encrypt(this._inBlock,this._outBlock),h(this._inBlock),this._hashBlock[0]=d.getInt32(),this._hashBlock[1]=d.getInt32(),this._hashBlock[2]=d.getInt32(),this._hashBlock[3]=d.getInt32(),this._s=this.ghash(this._hashSubkey,this._s,this._hashBlock);for(var f=0;f<this._ints;++f)y.putInt32(this._outBlock[f]^this._hashBlock[f]);this._cipherLength+=p<this.blockSize?p%this.blockSize:this.blockSize},e.gcm.prototype.afterFinish=function(d,y){var g=!0;y.decrypt&&y.overflow&&d.truncate(this.blockSize-y.overflow),this.tag=t.util.createBuffer();var p=this._aDataLength.concat(r(8*this._cipherLength));this._s=this.ghash(this._hashSubkey,this._s,p);var f=[];this.cipher.encrypt(this._j0,f);for(var C=0;C<this._ints;++C)this.tag.putInt32(this._s[C]^f[C]);return this.tag.truncate(this.tag.length()%(this._tagLength/8)),y.decrypt&&this.tag.bytes()!==this._tag&&(g=!1),g},e.gcm.prototype.multiply=function(d,y){for(var g=[0,0,0,0],p=y.slice(0),f=0;f<128;++f)d[f/32|0]&1<<31-f%32&&(g[0]^=p[0],g[1]^=p[1],g[2]^=p[2],g[3]^=p[3]),this.pow(p,p);return g},e.gcm.prototype.pow=function(d,y){for(var g=1&d[3],p=3;p>0;--p)y[p]=d[p]>>>1|(1&d[p-1])<<31;y[0]=d[0]>>>1,g&&(y[0]^=this._R)},e.gcm.prototype.tableMultiply=function(d){for(var y=[0,0,0,0],g=0;g<32;++g){var C=this._m[g][d[g/8|0]>>>4*(7-g%8)&15];y[0]^=C[0],y[1]^=C[1],y[2]^=C[2],y[3]^=C[3]}return y},e.gcm.prototype.ghash=function(d,y,g){return y[0]^=g[0],y[1]^=g[1],y[2]^=g[2],y[3]^=g[3],this.tableMultiply(y)},e.gcm.prototype.generateHashTable=function(d,y){for(var g=8/y,p=4*g,f=16*g,C=new Array(f),N=0;N<f;++N){var a=[0,0,0,0];a[N/p|0]=1<<y-1<<(p-1-N%p)*y,C[N]=this.generateSubHashTable(this.multiply(a,d),y)}return C},e.gcm.prototype.generateSubHashTable=function(d,y){var g=1<<y,p=g>>>1,f=new Array(g);f[p]=d.slice(0);for(var C=p>>>1;C>0;)this.pow(f[2*C],f[C]=[]),C>>=1;for(C=2;C<p;){for(var N=1;N<C;++N){var a=f[C],O=f[N];f[C+N]=[a[0]^O[0],a[1]^O[1],a[2]^O[2],a[3]^O[3]]}C*=2}for(f[0]=[0,0,0,0],C=p+1;C<g;++C){var H=f[C^p];f[C]=[d[0]^H[0],d[1]^H[1],d[2]^H[2],d[3]^H[3]]}return f}},10279:(M,b,n)=>{var t=n(18659);function e(O,H){t.cipher.registerAlgorithm(O,function(){return new t.des.Algorithm(O,H)})}n(93311),n(63481),n(74747),M.exports=t.des=t.des||{},t.des.startEncrypting=function(O,H,F,V){var D=a({key:O,output:F,decrypt:!1,mode:V||(null===H?"ECB":"CBC")});return D.start(H),D},t.des.createEncryptionCipher=function(O,H){return a({key:O,output:null,decrypt:!1,mode:H})},t.des.startDecrypting=function(O,H,F,V){var D=a({key:O,output:F,decrypt:!0,mode:V||(null===H?"ECB":"CBC")});return D.start(H),D},t.des.createDecryptionCipher=function(O,H){return a({key:O,output:null,decrypt:!0,mode:H})},t.des.Algorithm=function(O,H){var F=this;F.name=O,F.mode=new H({blockSize:8,cipher:{encrypt:function(V,D){return N(F._keys,V,D,!1)},decrypt:function(V,D){return N(F._keys,V,D,!0)}}}),F._init=!1},t.des.Algorithm.prototype.initialize=function(O){if(!this._init){var H=t.util.createBuffer(O.key);if(0===this.name.indexOf("3DES")&&24!==H.length())throw new Error("Invalid Triple-DES key size: "+8*H.length());this._keys=function C(O){for(var j,H=[0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964],F=[0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697],V=[0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272],D=[0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144],U=[0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256],q=[0,1024,32,1056,0,1024,32,1056,33554432,33555456,33554464,33555488,33554432,33555456,33554464,33555488],J=[0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746],G=[0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568],ie=[0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578],K=[0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024,268436480,1032,268436488],re=[0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800],oe=[0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744],B=[0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128],s=[0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261],_=O.length()>8?3:1,w=[],E=[0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0],x=0,$=0;$<_;$++){var Y=O.getInt32(),u=O.getInt32();Y^=(j=252645135&(Y>>>4^u))<<4,Y^=j=65535&((u^=j)>>>-16^Y),Y^=(j=858993459&(Y>>>2^(u^=j<<-16)))<<2,Y^=j=65535&((u^=j)>>>-16^Y),Y^=(j=1431655765&(Y>>>1^(u^=j<<-16)))<<1,Y^=j=16711935&((u^=j)>>>8^Y),j=(Y^=(j=1431655765&(Y>>>1^(u^=j<<8)))<<1)<<8|(u^=j)>>>20&240,Y=u<<24|u<<8&16711680|u>>>8&65280|u>>>24&240,u=j;for(var W=0;W<E.length;++W){E[W]?(Y=Y<<2|Y>>>26,u=u<<2|u>>>26):(Y=Y<<1|Y>>>27,u=u<<1|u>>>27);var fe=H[(Y&=-15)>>>28]|F[Y>>>24&15]|V[Y>>>20&15]|D[Y>>>16&15]|U[Y>>>12&15]|q[Y>>>8&15]|J[Y>>>4&15],ae=G[(u&=-15)>>>28]|ie[u>>>24&15]|K[u>>>20&15]|re[u>>>16&15]|oe[u>>>12&15]|B[u>>>8&15]|s[u>>>4&15];w[x++]=fe^(j=65535&(ae>>>16^fe)),w[x++]=ae^j<<16}}return w}(H),this._init=!0}},e("DES-ECB",t.cipher.modes.ecb),e("DES-CBC",t.cipher.modes.cbc),e("DES-CFB",t.cipher.modes.cfb),e("DES-OFB",t.cipher.modes.ofb),e("DES-CTR",t.cipher.modes.ctr),e("3DES-ECB",t.cipher.modes.ecb),e("3DES-CBC",t.cipher.modes.cbc),e("3DES-CFB",t.cipher.modes.cfb),e("3DES-OFB",t.cipher.modes.ofb),e("3DES-CTR",t.cipher.modes.ctr);var l=[16843776,0,65536,16843780,16842756,66564,4,65536,1024,16843776,16843780,1024,16778244,16842756,16777216,4,1028,16778240,16778240,66560,66560,16842752,16842752,16778244,65540,16777220,16777220,65540,0,1028,66564,16777216,65536,16843780,4,16842752,16843776,16777216,16777216,1024,16842756,65536,66560,16777220,1024,4,16778244,66564,16843780,65540,16842752,16778244,16777220,1028,66564,16843776,1028,16778240,16778240,0,65540,66560,0,16842756],h=[-2146402272,-2147450880,32768,1081376,1048576,32,-2146435040,-2147450848,-2147483616,-2146402272,-2146402304,-2147483648,-2147450880,1048576,32,-2146435040,1081344,1048608,-2147450848,0,-2147483648,32768,1081376,-2146435072,1048608,-2147483616,0,1081344,32800,-2146402304,-2146435072,32800,0,1081376,-2146435040,1048576,-2147450848,-2146435072,-2146402304,32768,-2146435072,-2147450880,32,-2146402272,1081376,32,32768,-2147483648,32800,-2146402304,1048576,-2147483616,1048608,-2147450848,-2147483616,1048608,1081344,0,-2147450880,32800,-2147483648,-2146435040,-2146402272,1081344],r=[520,134349312,0,134348808,134218240,0,131592,134218240,131080,134217736,134217736,131072,134349320,131080,134348800,520,134217728,8,134349312,512,131584,134348800,134348808,131592,134218248,131584,131072,134218248,8,134349320,512,134217728,134349312,134217728,131080,520,131072,134349312,134218240,0,512,131080,134349320,134218240,134217736,512,0,134348808,134218248,131072,134217728,134349320,8,131592,131584,134217736,134348800,134218248,520,134348800,131592,8,134348808,131584],d=[8396801,8321,8321,128,8396928,8388737,8388609,8193,0,8396800,8396800,8396929,129,0,8388736,8388609,1,8192,8388608,8396801,128,8388608,8193,8320,8388737,1,8320,8388736,8192,8396928,8396929,129,8388736,8388609,8396800,8396929,129,0,0,8396800,8320,8388736,8388737,1,8396801,8321,8321,128,8396929,129,1,8192,8388609,8193,8396928,8388737,8193,8320,8388608,8396801,128,8388608,8192,8396928],y=[256,34078976,34078720,1107296512,524288,256,1073741824,34078720,1074266368,524288,33554688,1074266368,1107296512,1107820544,524544,1073741824,33554432,1074266112,1074266112,0,1073742080,1107820800,1107820800,33554688,1107820544,1073742080,0,1107296256,34078976,33554432,1107296256,524544,524288,1107296512,256,33554432,1073741824,34078720,1107296512,1074266368,33554688,1073741824,1107820544,34078976,1074266368,256,33554432,1107820544,1107820800,524544,1107296256,1107820800,34078720,0,1074266112,1107296256,524544,33554688,1073742080,524288,0,1074266112,34078976,1073742080],g=[536870928,541065216,16384,541081616,541065216,16,541081616,4194304,536887296,4210704,4194304,536870928,4194320,536887296,536870912,16400,0,4194320,536887312,16384,4210688,536887312,16,541065232,541065232,0,4210704,541081600,16400,4210688,541081600,536870912,536887296,16,541065232,4210688,541081616,4194304,16400,536870928,4194304,536887296,536870912,16400,536870928,541081616,4210688,541065216,4210704,541081600,0,541065232,16,16384,541065216,4210704,16384,4194320,536887312,0,541081600,536870912,4194320,536887312],p=[2097152,69206018,67110914,0,2048,67110914,2099202,69208064,69208066,2097152,0,67108866,2,67108864,69206018,2050,67110912,2099202,2097154,67110912,67108866,69206016,69208064,2097154,69206016,2048,2050,69208066,2099200,2,67108864,2099200,67108864,2099200,2097152,67110914,67110914,69206018,69206018,2,2097154,67108864,67110912,2097152,69208064,2050,2099202,69208064,2050,67108866,69208066,69206016,2099200,0,2,69208066,0,2099202,69206016,2048,67108866,67110912,2048,2097154],f=[268439616,4096,262144,268701760,268435456,268439616,64,268435456,262208,268697600,268701760,266240,268701696,266304,4096,64,268697600,268435520,268439552,4160,266240,262208,268697664,268701696,4160,0,0,268697664,268435520,268439552,266304,262144,266304,262144,268701696,4096,64,268697664,4096,266304,268439552,64,268435520,268697600,268697664,268435456,262144,268439616,0,268701760,262208,268435520,268697600,268439552,268439616,0,268701760,266240,266240,4160,4160,262208,268435456,268701696];function N(O,H,F,V){var U,D=32===O.length?3:9;U=3===D?V?[30,-2,-2]:[0,32,2]:V?[94,62,-2,32,64,2,30,-2,-2]:[0,32,2,62,30,-2,64,96,2];var q,J=H[0],G=H[1];J^=(q=252645135&(J>>>4^G))<<4,J^=(q=65535&(J>>>16^(G^=q)))<<16,J^=q=858993459&((G^=q)>>>2^J),J^=q=16711935&((G^=q<<2)>>>8^J),J=(J^=(q=1431655765&(J>>>1^(G^=q<<8)))<<1)<<1|J>>>31,G=(G^=q)<<1|G>>>31;for(var ie=0;ie<D;ie+=3){for(var K=U[ie+1],re=U[ie+2],oe=U[ie];oe!=K;oe+=re){var B=G^O[oe],s=(G>>>4|G<<28)^O[oe+1];q=J,J=G,G=q^(h[B>>>24&63]|d[B>>>16&63]|g[B>>>8&63]|f[63&B]|l[s>>>24&63]|r[s>>>16&63]|y[s>>>8&63]|p[63&s])}q=J,J=G,G=q}G=G>>>1|G<<31,G^=q=1431655765&((J=J>>>1|J<<31)>>>1^G),G^=(q=16711935&(G>>>8^(J^=q<<1)))<<8,G^=(q=858993459&(G>>>2^(J^=q)))<<2,G^=q=65535&((J^=q)>>>16^G),G^=q=252645135&((J^=q<<16)>>>4^G),F[0]=J^=q<<4,F[1]=G}function a(O){var V,F="DES-"+((O=O||{}).mode||"CBC").toUpperCase(),D=(V=O.decrypt?t.cipher.createDecipher(F,O.key):t.cipher.createCipher(F,O.key)).start;return V.start=function(U,q){var J=null;q instanceof t.util.ByteBuffer&&(J=q,q={}),(q=q||{}).output=J,q.iv=U,D.call(V,q)},V}},4187:(M,b,n)=>{var t=n(18659);n(730),n(78365),n(18985),n(74747);var e=n(78877),l=e.publicKeyValidator,h=e.privateKeyValidator;if(typeof r>"u")var r=t.jsbn.BigInteger;var d=t.util.ByteBuffer,y=typeof Buffer>"u"?Uint8Array:Buffer;t.pki=t.pki||{},M.exports=t.pki.ed25519=t.ed25519=t.ed25519||{};var g=t.ed25519;function p(Be){var Lt=Be.message;if(Lt instanceof Uint8Array||Lt instanceof y)return Lt;var _e=Be.encoding;if(void 0===Lt){if(!Be.md)throw new TypeError('"options.message" or "options.md" not specified.');Lt=Be.md.digest().getBytes(),_e="binary"}if("string"==typeof Lt&&!_e)throw new TypeError('"options.encoding" must be "binary" or "utf8".');if("string"==typeof Lt){if(typeof Buffer<"u")return Buffer.from(Lt,_e);Lt=new d(Lt,_e)}else if(!(Lt instanceof d))throw new TypeError('"options.message" must be a node.js Buffer, a Uint8Array, a forge ByteBuffer, or a string with "options.encoding" specifying its encoding.');for(var ne=new y(Lt.length()),be=0;be<ne.length;++be)ne[be]=Lt.at(be);return ne}g.constants={},g.constants.PUBLIC_KEY_BYTE_LENGTH=32,g.constants.PRIVATE_KEY_BYTE_LENGTH=64,g.constants.SEED_BYTE_LENGTH=32,g.constants.SIGN_BYTE_LENGTH=64,g.constants.HASH_BYTE_LENGTH=64,g.generateKeyPair=function(Be){var Lt=(Be=Be||{}).seed;if(void 0===Lt)Lt=t.random.getBytesSync(g.constants.SEED_BYTE_LENGTH);else if("string"==typeof Lt){if(Lt.length!==g.constants.SEED_BYTE_LENGTH)throw new TypeError('"seed" must be '+g.constants.SEED_BYTE_LENGTH+" bytes in length.")}else if(!(Lt instanceof Uint8Array))throw new TypeError('"seed" must be a node.js Buffer, Uint8Array, or a binary string.');Lt=p({message:Lt,encoding:"binary"});for(var _e=new y(g.constants.PUBLIC_KEY_BYTE_LENGTH),ne=new y(g.constants.PRIVATE_KEY_BYTE_LENGTH),be=0;be<32;++be)ne[be]=Lt[be];return function U(Be,Lt){var ne,_e=[Qe(),Qe(),Qe(),Qe()],be=D(Lt,32);for(be[0]&=248,be[31]&=127,be[31]|=64,u(_e,be),oe(Be,_e),ne=0;ne<32;++ne)Lt[ne+32]=Be[ne]}(_e,ne),{publicKey:_e,privateKey:ne}},g.privateKeyFromAsn1=function(Be){var Lt={},_e=[];if(!t.asn1.validate(Be,h,Lt,_e)){var be=new Error("Invalid Key.");throw be.errors=_e,be}var Te=t.asn1.derToOid(Lt.privateKeyOid),$e=t.oids.EdDSA25519;if(Te!==$e)throw new Error('Invalid OID "'+Te+'"; OID must be "'+$e+'".');return{privateKeyBytes:p({message:t.asn1.fromDer(Lt.privateKey).value,encoding:"binary"})}},g.publicKeyFromAsn1=function(Be){var Lt={},_e=[];if(!t.asn1.validate(Be,l,Lt,_e)){var be=new Error("Invalid Key.");throw be.errors=_e,be}var Te=t.asn1.derToOid(Lt.publicKeyOid),$e=t.oids.EdDSA25519;if(Te!==$e)throw new Error('Invalid OID "'+Te+'"; OID must be "'+$e+'".');var ft=Lt.ed25519PublicKey;if(ft.length!==g.constants.PUBLIC_KEY_BYTE_LENGTH)throw new Error("Key length is invalid.");return p({message:ft,encoding:"binary"})},g.publicKeyFromPrivateKey=function(Be){var Lt=p({message:(Be=Be||{}).privateKey,encoding:"binary"});if(Lt.length!==g.constants.PRIVATE_KEY_BYTE_LENGTH)throw new TypeError('"options.privateKey" must have a byte length of '+g.constants.PRIVATE_KEY_BYTE_LENGTH);for(var _e=new y(g.constants.PUBLIC_KEY_BYTE_LENGTH),ne=0;ne<_e.length;++ne)_e[ne]=Lt[32+ne];return _e},g.sign=function(Be){var Lt=p(Be=Be||{}),_e=p({message:Be.privateKey,encoding:"binary"});if(_e.length===g.constants.SEED_BYTE_LENGTH)_e=g.generateKeyPair({seed:_e}).privateKey;else if(_e.length!==g.constants.PRIVATE_KEY_BYTE_LENGTH)throw new TypeError('"options.privateKey" must have a byte length of '+g.constants.SEED_BYTE_LENGTH+" or "+g.constants.PRIVATE_KEY_BYTE_LENGTH);var be=new y(g.constants.SIGN_BYTE_LENGTH+Lt.length);!function q(Be,Lt,_e,ne){var be,Te,$e=new Float64Array(64),ft=[Qe(),Qe(),Qe(),Qe()],Ge=D(ne,32);Ge[0]&=248,Ge[31]&=127,Ge[31]|=64;var Ft=_e+64;for(be=0;be<_e;++be)Be[64+be]=Lt[be];for(be=0;be<32;++be)Be[32+be]=Ge[32+be];var br=D(Be.subarray(32),_e+32);for(ie(br),u(ft,br),oe(Be,ft),be=32;be<64;++be)Be[be]=ne[be];var rt=D(Be,_e+64);for(ie(rt),be=32;be<64;++be)$e[be]=0;for(be=0;be<32;++be)$e[be]=br[be];for(be=0;be<32;++be)for(Te=0;Te<32;Te++)$e[be+Te]+=rt[be]*Ge[Te];G(Be.subarray(32),$e)}(be,Lt,Lt.length,_e);for(var Te=new y(g.constants.SIGN_BYTE_LENGTH),$e=0;$e<Te.length;++$e)Te[$e]=be[$e];return Te},g.verify=function(Be){var Lt=p(Be=Be||{});if(void 0===Be.signature)throw new TypeError('"options.signature" must be a node.js Buffer, a Uint8Array, a forge ByteBuffer, or a binary string.');var _e=p({message:Be.signature,encoding:"binary"});if(_e.length!==g.constants.SIGN_BYTE_LENGTH)throw new TypeError('"options.signature" must have a byte length of '+g.constants.SIGN_BYTE_LENGTH);var ne=p({message:Be.publicKey,encoding:"binary"});if(ne.length!==g.constants.PUBLIC_KEY_BYTE_LENGTH)throw new TypeError('"options.publicKey" must have a byte length of '+g.constants.PUBLIC_KEY_BYTE_LENGTH);var $e,be=new y(g.constants.SIGN_BYTE_LENGTH+Lt.length),Te=new y(g.constants.SIGN_BYTE_LENGTH+Lt.length);for($e=0;$e<g.constants.SIGN_BYTE_LENGTH;++$e)be[$e]=_e[$e];for($e=0;$e<Lt.length;++$e)be[$e+g.constants.SIGN_BYTE_LENGTH]=Lt[$e];return function J(Be,Lt,_e,ne){var be,$e=new y(32),ft=[Qe(),Qe(),Qe(),Qe()],Ge=[Qe(),Qe(),Qe(),Qe()];if(_e<64||function s(Be,Lt){var _e=Qe(),ne=Qe(),be=Qe(),Te=Qe(),$e=Qe(),ft=Qe(),Ge=Qe();return W(Be[2],C),function _(Be,Lt){var _e;for(_e=0;_e<16;++_e)Be[_e]=Lt[2*_e]+(Lt[2*_e+1]<<8);Be[15]&=32767}(Be[1],Lt),Ze(be,Be[1]),at(Te,be,N),At(be,be,Be[2]),Ot(Te,Be[2],Te),Ze($e,Te),Ze(ft,$e),at(Ge,ft,$e),at(_e,Ge,be),at(_e,_e,Te),function w(Be,Lt){var ne,_e=Qe();for(ne=0;ne<16;++ne)_e[ne]=Lt[ne];for(ne=250;ne>=0;--ne)Ze(_e,_e),1!==ne&&at(_e,_e,Lt);for(ne=0;ne<16;++ne)Be[ne]=_e[ne]}(_e,_e),at(_e,_e,be),at(_e,_e,Te),at(_e,_e,Te),at(Be[0],_e,Te),Ze(ne,Be[0]),at(ne,ne,Te),E(ne,be)&&at(Be[0],Be[0],V),Ze(ne,Be[0]),at(ne,ne,Te),E(ne,be)?-1:($(Be[0])===Lt[31]>>7&&At(Be[0],f,Be[0]),at(Be[3],Be[0],Be[1]),0)}(Ge,ne))return-1;for(be=0;be<_e;++be)Be[be]=Lt[be];for(be=0;be<32;++be)Be[be+32]=ne[be];var Ft=D(Be,_e);if(ie(Ft),Y(ft,Ge,Ft),u(Ge,Lt.subarray(32)),K(ft,Ge),oe($e,ft),_e-=64,x(Lt,0,$e,0)){for(be=0;be<_e;++be)Be[be]=0;return-1}for(be=0;be<_e;++be)Be[be]=Lt[be+64];return _e}(Te,be,be.length,ne)>=0};var f=Qe(),C=Qe([1]),N=Qe([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),a=Qe([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),O=Qe([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),H=Qe([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),F=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]),V=Qe([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function D(Be,Lt){var _e=t.md.sha512.create(),ne=new d(Be);_e.update(ne.getBytes(Lt),"binary");var be=_e.digest().getBytes();if(typeof Buffer<"u")return Buffer.from(be,"binary");for(var Te=new y(g.constants.HASH_BYTE_LENGTH),$e=0;$e<64;++$e)Te[$e]=be.charCodeAt($e);return Te}function G(Be,Lt){var _e,ne,be,Te;for(ne=63;ne>=32;--ne){for(_e=0,be=ne-32,Te=ne-12;be<Te;++be)Lt[be]+=_e-16*Lt[ne]*F[be-(ne-32)],Lt[be]-=256*(_e=Lt[be]+128>>8);Lt[be]+=_e,Lt[ne]=0}for(_e=0,be=0;be<32;++be)Lt[be]+=_e-(Lt[31]>>4)*F[be],_e=Lt[be]>>8,Lt[be]&=255;for(be=0;be<32;++be)Lt[be]-=_e*F[be];for(ne=0;ne<32;++ne)Lt[ne+1]+=Lt[ne]>>8,Be[ne]=255&Lt[ne]}function ie(Be){for(var Lt=new Float64Array(64),_e=0;_e<64;++_e)Lt[_e]=Be[_e],Be[_e]=0;G(Be,Lt)}function K(Be,Lt){var _e=Qe(),ne=Qe(),be=Qe(),Te=Qe(),$e=Qe(),ft=Qe(),Ge=Qe(),Ft=Qe(),br=Qe();At(_e,Be[1],Be[0]),At(br,Lt[1],Lt[0]),at(_e,_e,br),Ot(ne,Be[0],Be[1]),Ot(br,Lt[0],Lt[1]),at(ne,ne,br),at(be,Be[3],Lt[3]),at(be,be,a),at(Te,Be[2],Lt[2]),Ot(Te,Te,Te),At($e,ne,_e),At(ft,Te,be),Ot(Ge,Te,be),Ot(Ft,ne,_e),at(Be[0],$e,ft),at(Be[1],Ft,Ge),at(Be[2],Ge,ft),at(Be[3],$e,Ft)}function re(Be,Lt,_e){for(var ne=0;ne<4;++ne)ye(Be[ne],Lt[ne],_e)}function oe(Be,Lt){var _e=Qe(),ne=Qe(),be=Qe();(function fe(Be,Lt){var ne,_e=Qe();for(ne=0;ne<16;++ne)_e[ne]=Lt[ne];for(ne=253;ne>=0;--ne)Ze(_e,_e),2!==ne&&4!==ne&&at(_e,_e,Lt);for(ne=0;ne<16;++ne)Be[ne]=_e[ne]})(be,Lt[2]),at(_e,Lt[0],be),at(ne,Lt[1],be),B(Be,ne),Be[31]^=$(_e)<<7}function B(Be,Lt){var _e,ne,be,Te=Qe(),$e=Qe();for(_e=0;_e<16;++_e)$e[_e]=Lt[_e];for(ae($e),ae($e),ae($e),ne=0;ne<2;++ne){for(Te[0]=$e[0]-65517,_e=1;_e<15;++_e)Te[_e]=$e[_e]-65535-(Te[_e-1]>>16&1),Te[_e-1]&=65535;Te[15]=$e[15]-32767-(Te[14]>>16&1),be=Te[15]>>16&1,Te[14]&=65535,ye($e,Te,1-be)}for(_e=0;_e<16;_e++)Be[2*_e]=255&$e[_e],Be[2*_e+1]=$e[_e]>>8}function E(Be,Lt){var _e=new y(32),ne=new y(32);return B(_e,Be),B(ne,Lt),x(_e,0,ne,0)}function x(Be,Lt,_e,ne){return function j(Be,Lt,_e,ne,be){var Te,$e=0;for(Te=0;Te<be;++Te)$e|=Be[Lt+Te]^_e[ne+Te];return(1&$e-1>>>8)-1}(Be,Lt,_e,ne,32)}function $(Be){var Lt=new y(32);return B(Lt,Be),1&Lt[0]}function Y(Be,Lt,_e){var ne,be;for(W(Be[0],f),W(Be[1],C),W(Be[2],C),W(Be[3],f),be=255;be>=0;--be)re(Be,Lt,ne=_e[be/8|0]>>(7&be)&1),K(Lt,Be),K(Be,Be),re(Be,Lt,ne)}function u(Be,Lt){var _e=[Qe(),Qe(),Qe(),Qe()];W(_e[0],O),W(_e[1],H),W(_e[2],C),at(_e[3],O,H),Y(Be,_e,Lt)}function W(Be,Lt){var _e;for(_e=0;_e<16;_e++)Be[_e]=0|Lt[_e]}function ae(Be){var Lt,_e,ne=1;for(Lt=0;Lt<16;++Lt)_e=Be[Lt]+ne+65535,ne=Math.floor(_e/65536),Be[Lt]=_e-65536*ne;Be[0]+=ne-1+37*(ne-1)}function ye(Be,Lt,_e){for(var ne,be=~(_e-1),Te=0;Te<16;++Te)Be[Te]^=ne=be&(Be[Te]^Lt[Te]),Lt[Te]^=ne}function Qe(Be){var Lt,_e=new Float64Array(16);if(Be)for(Lt=0;Lt<Be.length;++Lt)_e[Lt]=Be[Lt];return _e}function Ot(Be,Lt,_e){for(var ne=0;ne<16;++ne)Be[ne]=Lt[ne]+_e[ne]}function At(Be,Lt,_e){for(var ne=0;ne<16;++ne)Be[ne]=Lt[ne]-_e[ne]}function Ze(Be,Lt){at(Be,Lt,Lt)}function at(Be,Lt,_e){var ne,be,Te=0,$e=0,ft=0,Ge=0,Ft=0,br=0,rt=0,st=0,Dt=0,ot=0,nt=0,Yt=0,Ne=0,X=0,ge=0,Me=0,We=0,Re=0,pt=0,Zt=0,cr=0,wt=0,gt=0,Ut=0,hr=0,Cr=0,Ue=0,Pt=0,He=0,tt=0,Ke=0,kt=_e[0],xe=_e[1],Fe=_e[2],lt=_e[3],St=_e[4],qe=_e[5],ke=_e[6],ct=_e[7],vt=_e[8],$t=_e[9],Vr=_e[10],Sr=_e[11],Ar=_e[12],Jr=_e[13],Fr=_e[14],Gt=_e[15];Te+=(ne=Lt[0])*kt,$e+=ne*xe,ft+=ne*Fe,Ge+=ne*lt,Ft+=ne*St,br+=ne*qe,rt+=ne*ke,st+=ne*ct,Dt+=ne*vt,ot+=ne*$t,nt+=ne*Vr,Yt+=ne*Sr,Ne+=ne*Ar,X+=ne*Jr,ge+=ne*Fr,Me+=ne*Gt,$e+=(ne=Lt[1])*kt,ft+=ne*xe,Ge+=ne*Fe,Ft+=ne*lt,br+=ne*St,rt+=ne*qe,st+=ne*ke,Dt+=ne*ct,ot+=ne*vt,nt+=ne*$t,Yt+=ne*Vr,Ne+=ne*Sr,X+=ne*Ar,ge+=ne*Jr,Me+=ne*Fr,We+=ne*Gt,ft+=(ne=Lt[2])*kt,Ge+=ne*xe,Ft+=ne*Fe,br+=ne*lt,rt+=ne*St,st+=ne*qe,Dt+=ne*ke,ot+=ne*ct,nt+=ne*vt,Yt+=ne*$t,Ne+=ne*Vr,X+=ne*Sr,ge+=ne*Ar,Me+=ne*Jr,We+=ne*Fr,Re+=ne*Gt,Ge+=(ne=Lt[3])*kt,Ft+=ne*xe,br+=ne*Fe,rt+=ne*lt,st+=ne*St,Dt+=ne*qe,ot+=ne*ke,nt+=ne*ct,Yt+=ne*vt,Ne+=ne*$t,X+=ne*Vr,ge+=ne*Sr,Me+=ne*Ar,We+=ne*Jr,Re+=ne*Fr,pt+=ne*Gt,Ft+=(ne=Lt[4])*kt,br+=ne*xe,rt+=ne*Fe,st+=ne*lt,Dt+=ne*St,ot+=ne*qe,nt+=ne*ke,Yt+=ne*ct,Ne+=ne*vt,X+=ne*$t,ge+=ne*Vr,Me+=ne*Sr,We+=ne*Ar,Re+=ne*Jr,pt+=ne*Fr,Zt+=ne*Gt,br+=(ne=Lt[5])*kt,rt+=ne*xe,st+=ne*Fe,Dt+=ne*lt,ot+=ne*St,nt+=ne*qe,Yt+=ne*ke,Ne+=ne*ct,X+=ne*vt,ge+=ne*$t,Me+=ne*Vr,We+=ne*Sr,Re+=ne*Ar,pt+=ne*Jr,Zt+=ne*Fr,cr+=ne*Gt,rt+=(ne=Lt[6])*kt,st+=ne*xe,Dt+=ne*Fe,ot+=ne*lt,nt+=ne*St,Yt+=ne*qe,Ne+=ne*ke,X+=ne*ct,ge+=ne*vt,Me+=ne*$t,We+=ne*Vr,Re+=ne*Sr,pt+=ne*Ar,Zt+=ne*Jr,cr+=ne*Fr,wt+=ne*Gt,st+=(ne=Lt[7])*kt,Dt+=ne*xe,ot+=ne*Fe,nt+=ne*lt,Yt+=ne*St,Ne+=ne*qe,X+=ne*ke,ge+=ne*ct,Me+=ne*vt,We+=ne*$t,Re+=ne*Vr,pt+=ne*Sr,Zt+=ne*Ar,cr+=ne*Jr,wt+=ne*Fr,gt+=ne*Gt,Dt+=(ne=Lt[8])*kt,ot+=ne*xe,nt+=ne*Fe,Yt+=ne*lt,Ne+=ne*St,X+=ne*qe,ge+=ne*ke,Me+=ne*ct,We+=ne*vt,Re+=ne*$t,pt+=ne*Vr,Zt+=ne*Sr,cr+=ne*Ar,wt+=ne*Jr,gt+=ne*Fr,Ut+=ne*Gt,ot+=(ne=Lt[9])*kt,nt+=ne*xe,Yt+=ne*Fe,Ne+=ne*lt,X+=ne*St,ge+=ne*qe,Me+=ne*ke,We+=ne*ct,Re+=ne*vt,pt+=ne*$t,Zt+=ne*Vr,cr+=ne*Sr,wt+=ne*Ar,gt+=ne*Jr,Ut+=ne*Fr,hr+=ne*Gt,nt+=(ne=Lt[10])*kt,Yt+=ne*xe,Ne+=ne*Fe,X+=ne*lt,ge+=ne*St,Me+=ne*qe,We+=ne*ke,Re+=ne*ct,pt+=ne*vt,Zt+=ne*$t,cr+=ne*Vr,wt+=ne*Sr,gt+=ne*Ar,Ut+=ne*Jr,hr+=ne*Fr,Cr+=ne*Gt,Yt+=(ne=Lt[11])*kt,Ne+=ne*xe,X+=ne*Fe,ge+=ne*lt,Me+=ne*St,We+=ne*qe,Re+=ne*ke,pt+=ne*ct,Zt+=ne*vt,cr+=ne*$t,wt+=ne*Vr,gt+=ne*Sr,Ut+=ne*Ar,hr+=ne*Jr,Cr+=ne*Fr,Ue+=ne*Gt,Ne+=(ne=Lt[12])*kt,X+=ne*xe,ge+=ne*Fe,Me+=ne*lt,We+=ne*St,Re+=ne*qe,pt+=ne*ke,Zt+=ne*ct,cr+=ne*vt,wt+=ne*$t,gt+=ne*Vr,Ut+=ne*Sr,hr+=ne*Ar,Cr+=ne*Jr,Ue+=ne*Fr,Pt+=ne*Gt,X+=(ne=Lt[13])*kt,ge+=ne*xe,Me+=ne*Fe,We+=ne*lt,Re+=ne*St,pt+=ne*qe,Zt+=ne*ke,cr+=ne*ct,wt+=ne*vt,gt+=ne*$t,Ut+=ne*Vr,hr+=ne*Sr,Cr+=ne*Ar,Ue+=ne*Jr,Pt+=ne*Fr,He+=ne*Gt,ge+=(ne=Lt[14])*kt,Me+=ne*xe,We+=ne*Fe,Re+=ne*lt,pt+=ne*St,Zt+=ne*qe,cr+=ne*ke,wt+=ne*ct,gt+=ne*vt,Ut+=ne*$t,hr+=ne*Vr,Cr+=ne*Sr,Ue+=ne*Ar,Pt+=ne*Jr,He+=ne*Fr,tt+=ne*Gt,Me+=(ne=Lt[15])*kt,$e+=38*(Re+=ne*Fe),ft+=38*(pt+=ne*lt),Ge+=38*(Zt+=ne*St),Ft+=38*(cr+=ne*qe),br+=38*(wt+=ne*ke),rt+=38*(gt+=ne*ct),st+=38*(Ut+=ne*vt),Dt+=38*(hr+=ne*$t),ot+=38*(Cr+=ne*Vr),nt+=38*(Ue+=ne*Sr),Yt+=38*(Pt+=ne*Ar),Ne+=38*(He+=ne*Jr),X+=38*(tt+=ne*Fr),ge+=38*(Ke+=ne*Gt),Te=(ne=(Te+=38*(We+=ne*xe))+(be=1)+65535)-65536*(be=Math.floor(ne/65536)),$e=(ne=$e+be+65535)-65536*(be=Math.floor(ne/65536)),ft=(ne=ft+be+65535)-65536*(be=Math.floor(ne/65536)),Ge=(ne=Ge+be+65535)-65536*(be=Math.floor(ne/65536)),Ft=(ne=Ft+be+65535)-65536*(be=Math.floor(ne/65536)),br=(ne=br+be+65535)-65536*(be=Math.floor(ne/65536)),rt=(ne=rt+be+65535)-65536*(be=Math.floor(ne/65536)),st=(ne=st+be+65535)-65536*(be=Math.floor(ne/65536)),Dt=(ne=Dt+be+65535)-65536*(be=Math.floor(ne/65536)),ot=(ne=ot+be+65535)-65536*(be=Math.floor(ne/65536)),nt=(ne=nt+be+65535)-65536*(be=Math.floor(ne/65536)),Yt=(ne=Yt+be+65535)-65536*(be=Math.floor(ne/65536)),Ne=(ne=Ne+be+65535)-65536*(be=Math.floor(ne/65536)),X=(ne=X+be+65535)-65536*(be=Math.floor(ne/65536)),ge=(ne=ge+be+65535)-65536*(be=Math.floor(ne/65536)),Me=(ne=Me+be+65535)-65536*(be=Math.floor(ne/65536)),Te=(ne=(Te+=be-1+37*(be-1))+(be=1)+65535)-65536*(be=Math.floor(ne/65536)),$e=(ne=$e+be+65535)-65536*(be=Math.floor(ne/65536)),ft=(ne=ft+be+65535)-65536*(be=Math.floor(ne/65536)),Ge=(ne=Ge+be+65535)-65536*(be=Math.floor(ne/65536)),Ft=(ne=Ft+be+65535)-65536*(be=Math.floor(ne/65536)),br=(ne=br+be+65535)-65536*(be=Math.floor(ne/65536)),rt=(ne=rt+be+65535)-65536*(be=Math.floor(ne/65536)),st=(ne=st+be+65535)-65536*(be=Math.floor(ne/65536)),Dt=(ne=Dt+be+65535)-65536*(be=Math.floor(ne/65536)),ot=(ne=ot+be+65535)-65536*(be=Math.floor(ne/65536)),nt=(ne=nt+be+65535)-65536*(be=Math.floor(ne/65536)),Yt=(ne=Yt+be+65535)-65536*(be=Math.floor(ne/65536)),Ne=(ne=Ne+be+65535)-65536*(be=Math.floor(ne/65536)),X=(ne=X+be+65535)-65536*(be=Math.floor(ne/65536)),ge=(ne=ge+be+65535)-65536*(be=Math.floor(ne/65536)),Me=(ne=Me+be+65535)-65536*(be=Math.floor(ne/65536)),Be[0]=Te+=be-1+37*(be-1),Be[1]=$e,Be[2]=ft,Be[3]=Ge,Be[4]=Ft,Be[5]=br,Be[6]=rt,Be[7]=st,Be[8]=Dt,Be[9]=ot,Be[10]=nt,Be[11]=Yt,Be[12]=Ne,Be[13]=X,Be[14]=ge,Be[15]=Me}},18659:M=>{M.exports={options:{usePureJavaScript:!1}}},39032:(M,b,n)=>{var t=n(18659);n(90979),n(74747),(M.exports=t.hmac=t.hmac||{}).create=function(){var l=null,h=null,r=null,d=null,y={start:function(g,p){if(null!==g)if("string"==typeof g){if(!((g=g.toLowerCase())in t.md.algorithms))throw new Error('Unknown hash algorithm "'+g+'"');h=t.md.algorithms[g].create()}else h=g;if(null===p)p=l;else{if("string"==typeof p)p=t.util.createBuffer(p);else if(t.util.isArray(p)){var f=p;p=t.util.createBuffer();for(var C=0;C<f.length;++C)p.putByte(f[C])}var N=p.length();for(N>h.blockLength&&(h.start(),h.update(p.bytes()),p=h.digest()),r=t.util.createBuffer(),d=t.util.createBuffer(),N=p.length(),C=0;C<N;++C)f=p.at(C),r.putByte(54^f),d.putByte(92^f);if(N<h.blockLength)for(f=h.blockLength-N,C=0;C<f;++C)r.putByte(54),d.putByte(92);l=p,r=r.bytes(),d=d.bytes()}h.start(),h.update(r)},update:function(g){h.update(g)},getMac:function(){var g=h.digest().bytes();return h.start(),h.update(d),h.update(g),h.digest()}};return y.digest=y.getMac,y}},90592:(M,b,n)=>{M.exports=n(18659),n(1298),n(16683),n(17791),n(93311),n(10279),n(4187),n(39032),n(57196),n(16113),n(44752),n(58449),n(77620),n(88604),n(47246),n(50562),n(30422),n(51965),n(69709),n(24473),n(27256),n(78365),n(70209),n(61015),n(82266),n(74747)},730:(M,b,n)=>{var e,t=n(18659);function r(sr,fr,Kt){this.data=[],null!=sr&&("number"==typeof sr?this.fromNumber(sr,fr,Kt):this.fromString(sr,null==fr&&"string"!=typeof sr?256:fr))}function d(){return new r(null)}function p(sr,fr,Kt,Qr,we,De){for(var ht=16383&fr,Vt=fr>>14;--De>=0;){var yt=16383&this.data[sr],gr=this.data[sr++]>>14,ur=Vt*yt+gr*ht;we=((yt=ht*yt+((16383&ur)<<14)+Kt.data[Qr]+we)>>28)+(ur>>14)+Vt*gr,Kt.data[Qr++]=268435455&yt}return we}M.exports=t.jsbn=t.jsbn||{},t.jsbn.BigInteger=r,typeof navigator>"u"?(r.prototype.am=p,e=28):"Microsoft Internet Explorer"==navigator.appName?(r.prototype.am=function g(sr,fr,Kt,Qr,we,De){for(var ht=32767&fr,Vt=fr>>15;--De>=0;){var yt=32767&this.data[sr],gr=this.data[sr++]>>15,ur=Vt*yt+gr*ht;we=((yt=ht*yt+((32767&ur)<<15)+Kt.data[Qr]+(1073741823&we))>>>30)+(ur>>>15)+Vt*gr+(we>>>30),Kt.data[Qr++]=1073741823&yt}return we},e=30):"Netscape"!=navigator.appName?(r.prototype.am=function y(sr,fr,Kt,Qr,we,De){for(;--De>=0;){var ht=fr*this.data[sr++]+Kt.data[Qr]+we;we=Math.floor(ht/67108864),Kt.data[Qr++]=67108863&ht}return we},e=26):(r.prototype.am=p,e=28),r.prototype.DB=e,r.prototype.DM=(1<<e)-1,r.prototype.DV=1<<e,r.prototype.FV=Math.pow(2,52),r.prototype.F1=52-e,r.prototype.F2=2*e-52;var a,O,N=new Array;for(a="0".charCodeAt(0),O=0;O<=9;++O)N[a++]=O;for(a="a".charCodeAt(0),O=10;O<36;++O)N[a++]=O;for(a="A".charCodeAt(0),O=10;O<36;++O)N[a++]=O;function H(sr){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(sr)}function F(sr,fr){return N[sr.charCodeAt(fr)]??-1}function U(sr){var fr=d();return fr.fromInt(sr),fr}function oe(sr){var Kt,fr=1;return 0!=(Kt=sr>>>16)&&(sr=Kt,fr+=16),0!=(Kt=sr>>8)&&(sr=Kt,fr+=8),0!=(Kt=sr>>4)&&(sr=Kt,fr+=4),0!=(Kt=sr>>2)&&(sr=Kt,fr+=2),0!=(Kt=sr>>1)&&(sr=Kt,fr+=1),fr}function W(sr){this.m=sr}function Ze(sr){this.m=sr,this.mp=sr.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<sr.DB-15)-1,this.mt2=2*sr.t}function We(sr,fr){return sr&fr}function pt(sr,fr){return sr|fr}function cr(sr,fr){return sr^fr}function gt(sr,fr){return sr&~fr}function Pt(sr){if(0==sr)return-1;var fr=0;return 0==(65535&sr)&&(sr>>=16,fr+=16),0==(255&sr)&&(sr>>=8,fr+=8),0==(15&sr)&&(sr>>=4,fr+=4),0==(3&sr)&&(sr>>=2,fr+=2),0==(1&sr)&&++fr,fr}function tt(sr){for(var fr=0;0!=sr;)sr&=sr-1,++fr;return fr}function Fr(){}function Gt(sr){return sr}function Se(sr){this.r2=d(),this.q3=d(),r.ONE.dlShiftTo(2*sr.t,this.r2),this.mu=this.r2.divide(sr),this.m=sr}W.prototype.convert=function fe(sr){return sr.s<0||sr.compareTo(this.m)>=0?sr.mod(this.m):sr},W.prototype.revert=function ae(sr){return sr},W.prototype.reduce=function ye(sr){sr.divRemTo(this.m,null,sr)},W.prototype.mulTo=function Qe(sr,fr,Kt){sr.multiplyTo(fr,Kt),this.reduce(Kt)},W.prototype.sqrTo=function Ot(sr,fr){sr.squareTo(fr),this.reduce(fr)},Ze.prototype.convert=function at(sr){var fr=d();return sr.abs().dlShiftTo(this.m.t,fr),fr.divRemTo(this.m,null,fr),sr.s<0&&fr.compareTo(r.ZERO)>0&&this.m.subTo(fr,fr),fr},Ze.prototype.revert=function Be(sr){var fr=d();return sr.copyTo(fr),this.reduce(fr),fr},Ze.prototype.reduce=function Lt(sr){for(;sr.t<=this.mt2;)sr.data[sr.t++]=0;for(var fr=0;fr<this.m.t;++fr){var Kt=32767&sr.data[fr],Qr=Kt*this.mpl+((Kt*this.mph+(sr.data[fr]>>15)*this.mpl&this.um)<<15)&sr.DM;for(sr.data[Kt=fr+this.m.t]+=this.m.am(0,Qr,sr,fr,0,this.m.t);sr.data[Kt]>=sr.DV;)sr.data[Kt]-=sr.DV,sr.data[++Kt]++}sr.clamp(),sr.drShiftTo(this.m.t,sr),sr.compareTo(this.m)>=0&&sr.subTo(this.m,sr)},Ze.prototype.mulTo=function ne(sr,fr,Kt){sr.multiplyTo(fr,Kt),this.reduce(Kt)},Ze.prototype.sqrTo=function _e(sr,fr){sr.squareTo(fr),this.reduce(fr)},r.prototype.copyTo=function V(sr){for(var fr=this.t-1;fr>=0;--fr)sr.data[fr]=this.data[fr];sr.t=this.t,sr.s=this.s},r.prototype.fromInt=function D(sr){this.t=1,this.s=sr<0?-1:0,sr>0?this.data[0]=sr:sr<-1?this.data[0]=sr+this.DV:this.t=0},r.prototype.fromString=function q(sr,fr){var Kt;if(16==fr)Kt=4;else if(8==fr)Kt=3;else if(256==fr)Kt=8;else if(2==fr)Kt=1;else if(32==fr)Kt=5;else{if(4!=fr)return void this.fromRadix(sr,fr);Kt=2}this.t=0,this.s=0;for(var Qr=sr.length,we=!1,De=0;--Qr>=0;){var ht=8==Kt?255&sr[Qr]:F(sr,Qr);ht<0?"-"==sr.charAt(Qr)&&(we=!0):(we=!1,0==De?this.data[this.t++]=ht:De+Kt>this.DB?(this.data[this.t-1]|=(ht&(1<<this.DB-De)-1)<<De,this.data[this.t++]=ht>>this.DB-De):this.data[this.t-1]|=ht<<De,(De+=Kt)>=this.DB&&(De-=this.DB))}8==Kt&&0!=(128&sr[0])&&(this.s=-1,De>0&&(this.data[this.t-1]|=(1<<this.DB-De)-1<<De)),this.clamp(),we&&r.ZERO.subTo(this,this)},r.prototype.clamp=function J(){for(var sr=this.s&this.DM;this.t>0&&this.data[this.t-1]==sr;)--this.t},r.prototype.dlShiftTo=function s(sr,fr){var Kt;for(Kt=this.t-1;Kt>=0;--Kt)fr.data[Kt+sr]=this.data[Kt];for(Kt=sr-1;Kt>=0;--Kt)fr.data[Kt]=0;fr.t=this.t+sr,fr.s=this.s},r.prototype.drShiftTo=function _(sr,fr){for(var Kt=sr;Kt<this.t;++Kt)fr.data[Kt-sr]=this.data[Kt];fr.t=Math.max(this.t-sr,0),fr.s=this.s},r.prototype.lShiftTo=function w(sr,fr){var Vt,Kt=sr%this.DB,Qr=this.DB-Kt,we=(1<<Qr)-1,De=Math.floor(sr/this.DB),ht=this.s<<Kt&this.DM;for(Vt=this.t-1;Vt>=0;--Vt)fr.data[Vt+De+1]=this.data[Vt]>>Qr|ht,ht=(this.data[Vt]&we)<<Kt;for(Vt=De-1;Vt>=0;--Vt)fr.data[Vt]=0;fr.data[De]=ht,fr.t=this.t+De+1,fr.s=this.s,fr.clamp()},r.prototype.rShiftTo=function E(sr,fr){fr.s=this.s;var Kt=Math.floor(sr/this.DB);if(Kt>=this.t)fr.t=0;else{var Qr=sr%this.DB,we=this.DB-Qr,De=(1<<Qr)-1;fr.data[0]=this.data[Kt]>>Qr;for(var ht=Kt+1;ht<this.t;++ht)fr.data[ht-Kt-1]|=(this.data[ht]&De)<<we,fr.data[ht-Kt]=this.data[ht]>>Qr;Qr>0&&(fr.data[this.t-Kt-1]|=(this.s&De)<<we),fr.t=this.t-Kt,fr.clamp()}},r.prototype.subTo=function x(sr,fr){for(var Kt=0,Qr=0,we=Math.min(sr.t,this.t);Kt<we;)Qr+=this.data[Kt]-sr.data[Kt],fr.data[Kt++]=Qr&this.DM,Qr>>=this.DB;if(sr.t<this.t){for(Qr-=sr.s;Kt<this.t;)Qr+=this.data[Kt],fr.data[Kt++]=Qr&this.DM,Qr>>=this.DB;Qr+=this.s}else{for(Qr+=this.s;Kt<sr.t;)Qr-=sr.data[Kt],fr.data[Kt++]=Qr&this.DM,Qr>>=this.DB;Qr-=sr.s}fr.s=Qr<0?-1:0,Qr<-1?fr.data[Kt++]=this.DV+Qr:Qr>0&&(fr.data[Kt++]=Qr),fr.t=Kt,fr.clamp()},r.prototype.multiplyTo=function j(sr,fr){var Kt=this.abs(),Qr=sr.abs(),we=Kt.t;for(fr.t=we+Qr.t;--we>=0;)fr.data[we]=0;for(we=0;we<Qr.t;++we)fr.data[we+Kt.t]=Kt.am(0,Qr.data[we],fr,we,0,Kt.t);fr.s=0,fr.clamp(),this.s!=sr.s&&r.ZERO.subTo(fr,fr)},r.prototype.squareTo=function $(sr){for(var fr=this.abs(),Kt=sr.t=2*fr.t;--Kt>=0;)sr.data[Kt]=0;for(Kt=0;Kt<fr.t-1;++Kt){var Qr=fr.am(Kt,fr.data[Kt],sr,2*Kt,0,1);(sr.data[Kt+fr.t]+=fr.am(Kt+1,2*fr.data[Kt],sr,2*Kt+1,Qr,fr.t-Kt-1))>=fr.DV&&(sr.data[Kt+fr.t]-=fr.DV,sr.data[Kt+fr.t+1]=1)}sr.t>0&&(sr.data[sr.t-1]+=fr.am(Kt,fr.data[Kt],sr,2*Kt,0,1)),sr.s=0,sr.clamp()},r.prototype.divRemTo=function Y(sr,fr,Kt){var Qr=sr.abs();if(!(Qr.t<=0)){var we=this.abs();if(we.t<Qr.t)return null!=fr&&fr.fromInt(0),void(null!=Kt&&this.copyTo(Kt));null==Kt&&(Kt=d());var De=d(),ht=this.s,Vt=sr.s,yt=this.DB-oe(Qr.data[Qr.t-1]);yt>0?(Qr.lShiftTo(yt,De),we.lShiftTo(yt,Kt)):(Qr.copyTo(De),we.copyTo(Kt));var gr=De.t,ur=De.data[gr-1];if(0!=ur){var Zr=ur*(1<<this.F1)+(gr>1?De.data[gr-2]>>this.F2:0),fn=this.FV/Zr,un=(1<<this.F1)/Zr,Et=1<<this.F2,Ae=Kt.t,it=Ae-gr,Bt=fr??d();for(De.dlShiftTo(it,Bt),Kt.compareTo(Bt)>=0&&(Kt.data[Kt.t++]=1,Kt.subTo(Bt,Kt)),r.ONE.dlShiftTo(gr,Bt),Bt.subTo(De,De);De.t<gr;)De.data[De.t++]=0;for(;--it>=0;){var pr=Kt.data[--Ae]==ur?this.DM:Math.floor(Kt.data[Ae]*fn+(Kt.data[Ae-1]+Et)*un);if((Kt.data[Ae]+=De.am(0,pr,Kt,it,0,gr))<pr)for(De.dlShiftTo(it,Bt),Kt.subTo(Bt,Kt);Kt.data[Ae]<--pr;)Kt.subTo(Bt,Kt)}null!=fr&&(Kt.drShiftTo(gr,fr),ht!=Vt&&r.ZERO.subTo(fr,fr)),Kt.t=gr,Kt.clamp(),yt>0&&Kt.rShiftTo(yt,Kt),ht<0&&r.ZERO.subTo(Kt,Kt)}}},r.prototype.invDigit=function At(){if(this.t<1)return 0;var sr=this.data[0];if(0==(1&sr))return 0;var fr=3&sr;return(fr=(fr=(fr=(fr=fr*(2-(15&sr)*fr)&15)*(2-(255&sr)*fr)&255)*(2-((65535&sr)*fr&65535))&65535)*(2-sr*fr%this.DV)%this.DV)>0?this.DV-fr:-fr},r.prototype.isEven=function be(){return 0==(this.t>0?1&this.data[0]:this.s)},r.prototype.exp=function Te(sr,fr){if(sr>4294967295||sr<1)return r.ONE;var Kt=d(),Qr=d(),we=fr.convert(this),De=oe(sr)-1;for(we.copyTo(Kt);--De>=0;)if(fr.sqrTo(Kt,Qr),(sr&1<<De)>0)fr.mulTo(Qr,we,Kt);else{var ht=Kt;Kt=Qr,Qr=ht}return fr.revert(Kt)},r.prototype.toString=function G(sr){if(this.s<0)return"-"+this.negate().toString(sr);var fr;if(16==sr)fr=4;else if(8==sr)fr=3;else if(2==sr)fr=1;else if(32==sr)fr=5;else{if(4!=sr)return this.toRadix(sr);fr=2}var Qr,Kt=(1<<fr)-1,we=!1,De="",ht=this.t,Vt=this.DB-ht*this.DB%fr;if(ht-- >0)for(Vt<this.DB&&(Qr=this.data[ht]>>Vt)>0&&(we=!0,De=H(Qr));ht>=0;)Vt<fr?(Qr=(this.data[ht]&(1<<Vt)-1)<<fr-Vt,Qr|=this.data[--ht]>>(Vt+=this.DB-fr)):(Qr=this.data[ht]>>(Vt-=fr)&Kt,Vt<=0&&(Vt+=this.DB,--ht)),Qr>0&&(we=!0),we&&(De+=H(Qr));return we?De:"0"},r.prototype.negate=function ie(){var sr=d();return r.ZERO.subTo(this,sr),sr},r.prototype.abs=function K(){return this.s<0?this.negate():this},r.prototype.compareTo=function re(sr){var fr=this.s-sr.s;if(0!=fr)return fr;var Kt=this.t;if(0!=(fr=Kt-sr.t))return this.s<0?-fr:fr;for(;--Kt>=0;)if(0!=(fr=this.data[Kt]-sr.data[Kt]))return fr;return 0},r.prototype.bitLength=function B(){return this.t<=0?0:this.DB*(this.t-1)+oe(this.data[this.t-1]^this.s&this.DM)},r.prototype.mod=function u(sr){var fr=d();return this.abs().divRemTo(sr,null,fr),this.s<0&&fr.compareTo(r.ZERO)>0&&sr.subTo(fr,fr),fr},r.prototype.modPowInt=function $e(sr,fr){var Kt;return Kt=sr<256||fr.isEven()?new W(fr):new Ze(fr),this.exp(sr,Kt)},r.ZERO=U(0),r.ONE=U(1),Fr.prototype.convert=Gt,Fr.prototype.revert=Gt,Fr.prototype.mulTo=function le(sr,fr,Kt){sr.multiplyTo(fr,Kt)},Fr.prototype.sqrTo=function Ce(sr,fr){sr.squareTo(fr)},Se.prototype.convert=function Xe(sr){if(sr.s<0||sr.t>2*this.m.t)return sr.mod(this.m);if(sr.compareTo(this.m)<0)return sr;var fr=d();return sr.copyTo(fr),this.reduce(fr),fr},Se.prototype.revert=function Ct(sr){return sr},Se.prototype.reduce=function zt(sr){for(sr.drShiftTo(this.m.t-1,this.r2),sr.t>this.m.t+1&&(sr.t=this.m.t+1,sr.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);sr.compareTo(this.r2)<0;)sr.dAddOffset(1,this.m.t+1);for(sr.subTo(this.r2,sr);sr.compareTo(this.m)>=0;)sr.subTo(this.m,sr)},Se.prototype.mulTo=function Br(sr,fr,Kt){sr.multiplyTo(fr,Kt),this.reduce(Kt)},Se.prototype.sqrTo=function kr(sr,fr){sr.squareTo(fr),this.reduce(fr)};var Nr=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509],zr=(1<<26)/Nr[Nr.length-1];r.prototype.chunkSize=function rt(sr){return Math.floor(Math.LN2*this.DB/Math.log(sr))},r.prototype.toRadix=function Dt(sr){if(null==sr&&(sr=10),0==this.signum()||sr<2||sr>36)return"0";var fr=this.chunkSize(sr),Kt=Math.pow(sr,fr),Qr=U(Kt),we=d(),De=d(),ht="";for(this.divRemTo(Qr,we,De);we.signum()>0;)ht=(Kt+De.intValue()).toString(sr).substr(1)+ht,we.divRemTo(Qr,we,De);return De.intValue().toString(sr)+ht},r.prototype.fromRadix=function ot(sr,fr){this.fromInt(0),null==fr&&(fr=10);for(var Kt=this.chunkSize(fr),Qr=Math.pow(fr,Kt),we=!1,De=0,ht=0,Vt=0;Vt<sr.length;++Vt){var yt=F(sr,Vt);yt<0?"-"==sr.charAt(Vt)&&0==this.signum()&&(we=!0):(ht=fr*ht+yt,++De>=Kt&&(this.dMultiply(Qr),this.dAddOffset(ht,0),De=0,ht=0))}De>0&&(this.dMultiply(Math.pow(fr,De)),this.dAddOffset(ht,0)),we&&r.ZERO.subTo(this,this)},r.prototype.fromNumber=function nt(sr,fr,Kt){if("number"==typeof fr)if(sr<2)this.fromInt(1);else for(this.fromNumber(sr,Kt),this.testBit(sr-1)||this.bitwiseTo(r.ONE.shiftLeft(sr-1),pt,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(fr);)this.dAddOffset(2,0),this.bitLength()>sr&&this.subTo(r.ONE.shiftLeft(sr-1),this);else{var Qr=new Array,we=7&sr;Qr.length=1+(sr>>3),fr.nextBytes(Qr),we>0?Qr[0]&=(1<<we)-1:Qr[0]=0,this.fromString(Qr,256)}},r.prototype.bitwiseTo=function Me(sr,fr,Kt){var Qr,we,De=Math.min(sr.t,this.t);for(Qr=0;Qr<De;++Qr)Kt.data[Qr]=fr(this.data[Qr],sr.data[Qr]);if(sr.t<this.t){for(we=sr.s&this.DM,Qr=De;Qr<this.t;++Qr)Kt.data[Qr]=fr(this.data[Qr],we);Kt.t=this.t}else{for(we=this.s&this.DM,Qr=De;Qr<sr.t;++Qr)Kt.data[Qr]=fr(we,sr.data[Qr]);Kt.t=sr.t}Kt.s=fr(this.s,sr.s),Kt.clamp()},r.prototype.changeBit=function xe(sr,fr){var Kt=r.ONE.shiftLeft(sr);return this.bitwiseTo(Kt,fr,Kt),Kt},r.prototype.addTo=function qe(sr,fr){for(var Kt=0,Qr=0,we=Math.min(sr.t,this.t);Kt<we;)Qr+=this.data[Kt]+sr.data[Kt],fr.data[Kt++]=Qr&this.DM,Qr>>=this.DB;if(sr.t<this.t){for(Qr+=sr.s;Kt<this.t;)Qr+=this.data[Kt],fr.data[Kt++]=Qr&this.DM,Qr>>=this.DB;Qr+=this.s}else{for(Qr+=this.s;Kt<sr.t;)Qr+=sr.data[Kt],fr.data[Kt++]=Qr&this.DM,Qr>>=this.DB;Qr+=sr.s}fr.s=Qr<0?-1:0,Qr>0?fr.data[Kt++]=Qr:Qr<-1&&(fr.data[Kt++]=this.DV+Qr),fr.t=Kt,fr.clamp()},r.prototype.dMultiply=function Ar(sr){this.data[this.t]=this.am(0,sr-1,this,0,0,this.t),++this.t,this.clamp()},r.prototype.dAddOffset=function Jr(sr,fr){if(0!=sr){for(;this.t<=fr;)this.data[this.t++]=0;for(this.data[fr]+=sr;this.data[fr]>=this.DV;)this.data[fr]-=this.DV,++fr>=this.t&&(this.data[this.t++]=0),++this.data[fr]}},r.prototype.multiplyLowerTo=function Pe(sr,fr,Kt){var we,Qr=Math.min(this.t+sr.t,fr);for(Kt.s=0,Kt.t=Qr;Qr>0;)Kt.data[--Qr]=0;for(we=Kt.t-this.t;Qr<we;++Qr)Kt.data[Qr+this.t]=this.am(0,sr.data[Qr],Kt,Qr,0,this.t);for(we=Math.min(sr.t,fr);Qr<we;++Qr)this.am(0,sr.data[Qr],Kt,Qr,0,fr-Qr);Kt.clamp()},r.prototype.multiplyUpperTo=function Oe(sr,fr,Kt){--fr;var Qr=Kt.t=this.t+sr.t-fr;for(Kt.s=0;--Qr>=0;)Kt.data[Qr]=0;for(Qr=Math.max(fr-this.t,0);Qr<sr.t;++Qr)Kt.data[this.t+Qr-fr]=this.am(fr-Qr,sr.data[Qr],Kt,0,0,this.t+Qr-fr);Kt.clamp(),Kt.drShiftTo(1,Kt)},r.prototype.modInt=function Rr(sr){if(sr<=0)return 0;var fr=this.DV%sr,Kt=this.s<0?sr-1:0;if(this.t>0)if(0==fr)Kt=this.data[0]%sr;else for(var Qr=this.t-1;Qr>=0;--Qr)Kt=(fr*Kt+this.data[Qr])%sr;return Kt},r.prototype.millerRabin=function _n(sr){var fr=this.subtract(r.ONE),Kt=fr.getLowestSetBit();if(Kt<=0)return!1;for(var De,Qr=fr.shiftRight(Kt),we=function Tn(){return{nextBytes:function(sr){for(var fr=0;fr<sr.length;++fr)sr[fr]=Math.floor(256*Math.random())}}}(),ht=0;ht<sr;++ht){do{De=new r(this.bitLength(),we)}while(De.compareTo(r.ONE)<=0||De.compareTo(fr)>=0);var Vt=De.modPow(Qr,this);if(0!=Vt.compareTo(r.ONE)&&0!=Vt.compareTo(fr)){for(var yt=1;yt++<Kt&&0!=Vt.compareTo(fr);)if(0==(Vt=Vt.modPowInt(2,this)).compareTo(r.ONE))return!1;if(0!=Vt.compareTo(fr))return!1}}return!0},r.prototype.clone=function ft(){var sr=d();return this.copyTo(sr),sr},r.prototype.intValue=function Ge(){if(this.s<0){if(1==this.t)return this.data[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this.data[0];if(0==this.t)return 0}return(this.data[1]&(1<<32-this.DB)-1)<<this.DB|this.data[0]},r.prototype.byteValue=function Ft(){return 0==this.t?this.s:this.data[0]<<24>>24},r.prototype.shortValue=function br(){return 0==this.t?this.s:this.data[0]<<16>>16},r.prototype.signum=function st(){return this.s<0?-1:this.t<=0||1==this.t&&this.data[0]<=0?0:1},r.prototype.toByteArray=function Yt(){var sr=this.t,fr=new Array;fr[0]=this.s;var Qr,Kt=this.DB-sr*this.DB%8,we=0;if(sr-- >0)for(Kt<this.DB&&(Qr=this.data[sr]>>Kt)!=(this.s&this.DM)>>Kt&&(fr[we++]=Qr|this.s<<this.DB-Kt);sr>=0;)Kt<8?(Qr=(this.data[sr]&(1<<Kt)-1)<<8-Kt,Qr|=this.data[--sr]>>(Kt+=this.DB-8)):(Qr=this.data[sr]>>(Kt-=8)&255,Kt<=0&&(Kt+=this.DB,--sr)),0!=(128&Qr)&&(Qr|=-256),0==we&&(128&this.s)!=(128&Qr)&&++we,(we>0||Qr!=this.s)&&(fr[we++]=Qr);return fr},r.prototype.equals=function Ne(sr){return 0==this.compareTo(sr)},r.prototype.min=function X(sr){return this.compareTo(sr)<0?this:sr},r.prototype.max=function ge(sr){return this.compareTo(sr)>0?this:sr},r.prototype.and=function Re(sr){var fr=d();return this.bitwiseTo(sr,We,fr),fr},r.prototype.or=function Zt(sr){var fr=d();return this.bitwiseTo(sr,pt,fr),fr},r.prototype.xor=function wt(sr){var fr=d();return this.bitwiseTo(sr,cr,fr),fr},r.prototype.andNot=function Ut(sr){var fr=d();return this.bitwiseTo(sr,gt,fr),fr},r.prototype.not=function hr(){for(var sr=d(),fr=0;fr<this.t;++fr)sr.data[fr]=this.DM&~this.data[fr];return sr.t=this.t,sr.s=~this.s,sr},r.prototype.shiftLeft=function Cr(sr){var fr=d();return sr<0?this.rShiftTo(-sr,fr):this.lShiftTo(sr,fr),fr},r.prototype.shiftRight=function Ue(sr){var fr=d();return sr<0?this.lShiftTo(-sr,fr):this.rShiftTo(sr,fr),fr},r.prototype.getLowestSetBit=function He(){for(var sr=0;sr<this.t;++sr)if(0!=this.data[sr])return sr*this.DB+Pt(this.data[sr]);return this.s<0?this.t*this.DB:-1},r.prototype.bitCount=function Ke(){for(var sr=0,fr=this.s&this.DM,Kt=0;Kt<this.t;++Kt)sr+=tt(this.data[Kt]^fr);return sr},r.prototype.testBit=function kt(sr){var fr=Math.floor(sr/this.DB);return fr>=this.t?0!=this.s:0!=(this.data[fr]&1<<sr%this.DB)},r.prototype.setBit=function Fe(sr){return this.changeBit(sr,pt)},r.prototype.clearBit=function lt(sr){return this.changeBit(sr,gt)},r.prototype.flipBit=function St(sr){return this.changeBit(sr,cr)},r.prototype.add=function ke(sr){var fr=d();return this.addTo(sr,fr),fr},r.prototype.subtract=function ct(sr){var fr=d();return this.subTo(sr,fr),fr},r.prototype.multiply=function vt(sr){var fr=d();return this.multiplyTo(sr,fr),fr},r.prototype.divide=function $t(sr){var fr=d();return this.divRemTo(sr,fr,null),fr},r.prototype.remainder=function Vr(sr){var fr=d();return this.divRemTo(sr,null,fr),fr},r.prototype.divideAndRemainder=function Sr(sr){var fr=d(),Kt=d();return this.divRemTo(sr,fr,Kt),new Array(fr,Kt)},r.prototype.modPow=function xt(sr,fr){var Qr,De,Kt=sr.bitLength(),we=U(1);if(Kt<=0)return we;Qr=Kt<18?1:Kt<48?3:Kt<144?4:Kt<768?5:6,De=Kt<8?new W(fr):fr.isEven()?new Se(fr):new Ze(fr);var ht=new Array,Vt=3,yt=Qr-1,gr=(1<<Qr)-1;if(ht[1]=De.convert(this),Qr>1){var ur=d();for(De.sqrTo(ht[1],ur);Vt<=gr;)ht[Vt]=d(),De.mulTo(ur,ht[Vt-2],ht[Vt]),Vt+=2}var fn,Ae,Zr=sr.t-1,un=!0,Et=d();for(Kt=oe(sr.data[Zr])-1;Zr>=0;){for(Kt>=yt?fn=sr.data[Zr]>>Kt-yt&gr:(fn=(sr.data[Zr]&(1<<Kt+1)-1)<<yt-Kt,Zr>0&&(fn|=sr.data[Zr-1]>>this.DB+Kt-yt)),Vt=Qr;0==(1&fn);)fn>>=1,--Vt;if((Kt-=Vt)<0&&(Kt+=this.DB,--Zr),un)ht[fn].copyTo(we),un=!1;else{for(;Vt>1;)De.sqrTo(we,Et),De.sqrTo(Et,we),Vt-=2;Vt>0?De.sqrTo(we,Et):(Ae=we,we=Et,Et=Ae),De.mulTo(Et,ht[fn],we)}for(;Zr>=0&&0==(sr.data[Zr]&1<<Kt);)De.sqrTo(we,Et),Ae=we,we=Et,Et=Ae,--Kt<0&&(Kt=this.DB-1,--Zr)}return De.revert(we)},r.prototype.modInverse=function Ur(sr){var fr=sr.isEven();if(this.isEven()&&fr||0==sr.signum())return r.ZERO;for(var Kt=sr.clone(),Qr=this.clone(),we=U(1),De=U(0),ht=U(0),Vt=U(1);0!=Kt.signum();){for(;Kt.isEven();)Kt.rShiftTo(1,Kt),fr?((!we.isEven()||!De.isEven())&&(we.addTo(this,we),De.subTo(sr,De)),we.rShiftTo(1,we)):De.isEven()||De.subTo(sr,De),De.rShiftTo(1,De);for(;Qr.isEven();)Qr.rShiftTo(1,Qr),fr?((!ht.isEven()||!Vt.isEven())&&(ht.addTo(this,ht),Vt.subTo(sr,Vt)),ht.rShiftTo(1,ht)):Vt.isEven()||Vt.subTo(sr,Vt),Vt.rShiftTo(1,Vt);Kt.compareTo(Qr)>=0?(Kt.subTo(Qr,Kt),fr&&we.subTo(ht,we),De.subTo(Vt,De)):(Qr.subTo(Kt,Qr),fr&&ht.subTo(we,ht),Vt.subTo(De,Vt))}return 0!=Qr.compareTo(r.ONE)?r.ZERO:Vt.compareTo(sr)>=0?Vt.subtract(sr):Vt.signum()<0?(Vt.addTo(sr,Vt),Vt.signum()<0?Vt.add(sr):Vt):Vt},r.prototype.pow=function Ie(sr){return this.exp(sr,new Fr)},r.prototype.gcd=function tr(sr){var fr=this.s<0?this.negate():this.clone(),Kt=sr.s<0?sr.negate():sr.clone();if(fr.compareTo(Kt)<0){var Qr=fr;fr=Kt,Kt=Qr}var we=fr.getLowestSetBit(),De=Kt.getLowestSetBit();if(De<0)return fr;for(we<De&&(De=we),De>0&&(fr.rShiftTo(De,fr),Kt.rShiftTo(De,Kt));fr.signum()>0;)(we=fr.getLowestSetBit())>0&&fr.rShiftTo(we,fr),(we=Kt.getLowestSetBit())>0&&Kt.rShiftTo(we,Kt),fr.compareTo(Kt)>=0?(fr.subTo(Kt,fr),fr.rShiftTo(1,fr)):(Kt.subTo(fr,Kt),Kt.rShiftTo(1,Kt));return De>0&&Kt.lShiftTo(De,Kt),Kt},r.prototype.isProbablePrime=function hn(sr){var fr,Kt=this.abs();if(1==Kt.t&&Kt.data[0]<=Nr[Nr.length-1]){for(fr=0;fr<Nr.length;++fr)if(Kt.data[0]==Nr[fr])return!0;return!1}if(Kt.isEven())return!1;for(fr=1;fr<Nr.length;){for(var Qr=Nr[fr],we=fr+1;we<Nr.length&&Qr<zr;)Qr*=Nr[we++];for(Qr=Kt.modInt(Qr);fr<we;)if(Qr%Nr[fr++]==0)return!1}return Kt.millerRabin(sr)}},57196:(M,b,n)=>{var t=n(18659);n(74747),n(78365),n(730),M.exports=t.kem=t.kem||{};var e=t.jsbn.BigInteger;function l(h,r,d,y){h.generate=function(g,p){for(var f=new t.util.ByteBuffer,C=Math.ceil(p/y)+d,N=new t.util.ByteBuffer,a=d;a<C;++a){N.putInt32(a),r.start(),r.update(g+N.getBytes());var O=r.digest();f.putBytes(O.getBytes(y))}return f.truncate(f.length()-p),f.getBytes()}}t.kem.rsa={},t.kem.rsa.create=function(h,r){var d=(r=r||{}).prng||t.random;return{encrypt:function(g,p){var C,f=Math.ceil(g.n.bitLength()/8);do{C=new e(t.util.bytesToHex(d.getBytesSync(f)),16).mod(g.n)}while(C.compareTo(e.ONE)<=0);var N=f-(C=t.util.hexToBytes(C.toString(16))).length;return N>0&&(C=t.util.fillString(String.fromCharCode(0),N)+C),{encapsulation:g.encrypt(C,"NONE"),key:h.generate(C,p)}},decrypt:function(g,p,f){var C=g.decrypt(p,"NONE");return h.generate(C,f)}}},t.kem.kdf1=function(h,r){l(this,h,0,r||h.digestLength)},t.kem.kdf2=function(h,r){l(this,h,1,r||h.digestLength)}},16113:(M,b,n)=>{var t=n(18659);n(74747),M.exports=t.log=t.log||{},t.log.levels=["none","error","warning","info","debug","verbose","max"];var e={},l=[],h=null;t.log.LEVEL_LOCKED=2,t.log.NO_LEVEL_CHECK=4,t.log.INTERPOLATE=8;for(var r=0;r<t.log.levels.length;++r){var d=t.log.levels[r];e[d]={index:r,name:d.toUpperCase()}}t.log.logMessage=function(a){for(var O=e[a.level].index,H=0;H<l.length;++H){var F=l[H];F.flags&t.log.NO_LEVEL_CHECK?F.f(a):O<=e[F.level].index&&F.f(F,a)}},t.log.prepareStandard=function(a){"standard"in a||(a.standard=e[a.level].name+" ["+a.category+"] "+a.message)},t.log.prepareFull=function(a){if(!("full"in a)){var O=[a.message];O=O.concat([]),a.full=t.util.format.apply(this,O)}},t.log.prepareStandardFull=function(a){"standardFull"in a||(t.log.prepareStandard(a),a.standardFull=a.standard)};var y=["error","warning","info","debug","verbose"];for(r=0;r<y.length;++r)!function(O){t.log[O]=function(H,F){var V=Array.prototype.slice.call(arguments).slice(2),D={timestamp:new Date,level:O,category:H,message:F,arguments:V};t.log.logMessage(D)}}(y[r]);if(t.log.makeLogger=function(a){var O={flags:0,f:a};return t.log.setLevel(O,"none"),O},t.log.setLevel=function(a,O){var H=!1;if(a&&!(a.flags&t.log.LEVEL_LOCKED))for(var F=0;F<t.log.levels.length;++F)if(O==t.log.levels[F]){a.level=O,H=!0;break}return H},t.log.lock=function(a,O){typeof O>"u"||O?a.flags|=t.log.LEVEL_LOCKED:a.flags&=~t.log.LEVEL_LOCKED},t.log.addLogger=function(a){l.push(a)},typeof console<"u"&&"log"in console){var g;if(console.error&&console.warn&&console.info&&console.debug){var p={error:console.error,warning:console.warn,info:console.info,debug:console.debug,verbose:console.debug},f=function(a,O){t.log.prepareStandard(O);var H=p[O.level],F=[O.standard];F=F.concat(O.arguments.slice()),H.apply(console,F)};g=t.log.makeLogger(f)}else f=function(O,H){t.log.prepareStandardFull(H),console.log(H.standardFull)},g=t.log.makeLogger(f);t.log.setLevel(g,"debug"),t.log.addLogger(g),h=g}else console={log:function(){}};if(null!==h&&typeof window<"u"&&window.location){var C=new URL(window.location.href).searchParams;C.has("console.level")&&t.log.setLevel(h,C.get("console.level").slice(-1)[0]),C.has("console.lock")&&"true"==C.get("console.lock").slice(-1)[0]&&t.log.lock(h)}t.log.consoleLogger=h},44752:(M,b,n)=>{M.exports=n(90979),n(32687),n(47690),n(71594),n(18985)},90979:(M,b,n)=>{var t=n(18659);M.exports=t.md=t.md||{},t.md.algorithms=t.md.algorithms||{}},32687:(M,b,n)=>{var t=n(18659);n(90979),n(74747);var e=M.exports=t.md5=t.md5||{};t.md.md5=t.md.algorithms.md5=e,e.create=function(){y||function g(){l=String.fromCharCode(128),l+=t.util.fillString(String.fromCharCode(0),64),h=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,6,11,0,5,10,15,4,9,14,3,8,13,2,7,12,5,8,11,14,1,4,7,10,13,0,3,6,9,12,15,2,0,7,14,5,12,3,10,1,8,15,6,13,4,11,2,9],r=[7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21],d=new Array(64);for(var f=0;f<64;++f)d[f]=Math.floor(4294967296*Math.abs(Math.sin(f+1)));y=!0}();var f=null,C=t.util.createBuffer(),N=new Array(16),a={algorithm:"md5",blockLength:64,digestLength:16,messageLength:0,fullMessageLength:null,messageLengthSize:8,start:function(){a.messageLength=0,a.fullMessageLength=a.messageLength64=[];for(var O=a.messageLengthSize/4,H=0;H<O;++H)a.fullMessageLength.push(0);return C=t.util.createBuffer(),f={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878},a}};return a.start(),a.update=function(O,H){"utf8"===H&&(O=t.util.encodeUtf8(O));var F=O.length;a.messageLength+=F,F=[F/4294967296>>>0,F>>>0];for(var V=a.fullMessageLength.length-1;V>=0;--V)a.fullMessageLength[V]+=F[1],F[1]=F[0]+(a.fullMessageLength[V]/4294967296>>>0),a.fullMessageLength[V]=a.fullMessageLength[V]>>>0,F[0]=F[1]/4294967296>>>0;return C.putBytes(O),p(f,N,C),(C.read>2048||0===C.length())&&C.compact(),a},a.digest=function(){var O=t.util.createBuffer();O.putBytes(C.bytes()),O.putBytes(l.substr(0,a.blockLength-(a.fullMessageLength[a.fullMessageLength.length-1]+a.messageLengthSize&a.blockLength-1)));for(var V,D=0,U=a.fullMessageLength.length-1;U>=0;--U)D=(V=8*a.fullMessageLength[U]+D)/4294967296>>>0,O.putInt32Le(V>>>0);var q={h0:f.h0,h1:f.h1,h2:f.h2,h3:f.h3};p(q,N,O);var J=t.util.createBuffer();return J.putInt32Le(q.h0),J.putInt32Le(q.h1),J.putInt32Le(q.h2),J.putInt32Le(q.h3),J},a};var l=null,h=null,r=null,d=null,y=!1;function p(f,C,N){for(var a,O,H,F,V,U,q,J=N.length();J>=64;){for(O=f.h0,H=f.h1,F=f.h2,V=f.h3,q=0;q<16;++q)C[q]=N.getInt32Le(),a=O+(V^H&(F^V))+d[q]+C[q],O=V,V=F,F=H,H+=a<<(U=r[q])|a>>>32-U;for(;q<32;++q)a=O+(F^V&(H^F))+d[q]+C[h[q]],O=V,V=F,F=H,H+=a<<(U=r[q])|a>>>32-U;for(;q<48;++q)a=O+(H^F^V)+d[q]+C[h[q]],O=V,V=F,F=H,H+=a<<(U=r[q])|a>>>32-U;for(;q<64;++q)a=O+(F^(H|~V))+d[q]+C[h[q]],O=V,V=F,F=H,H+=a<<(U=r[q])|a>>>32-U;f.h0=f.h0+O|0,f.h1=f.h1+H|0,f.h2=f.h2+F|0,f.h3=f.h3+V|0,J-=64}}},69386:(M,b,n)=>{var t=n(18659);n(58449),M.exports=t.mgf=t.mgf||{},t.mgf.mgf1=t.mgf1},58449:(M,b,n)=>{var t=n(18659);n(74747),t.mgf=t.mgf||{},(M.exports=t.mgf.mgf1=t.mgf1=t.mgf1||{}).create=function(l){return{generate:function(r,d){for(var y=new t.util.ByteBuffer,g=Math.ceil(d/l.digestLength),p=0;p<g;p++){var f=new t.util.ByteBuffer;f.putInt32(p),l.start(),l.update(r+f.getBytes()),y.putBuffer(l.digest())}return y.truncate(y.length()-d),y.getBytes()}}}},16078:(M,b,n)=>{var t=n(18659);t.pki=t.pki||{};var e=M.exports=t.pki.oids=t.oids=t.oids||{};function l(r,d){e[r]=d,e[d]=r}function h(r,d){e[r]=d}l("1.2.840.113549.1.1.1","rsaEncryption"),l("1.2.840.113549.1.1.4","md5WithRSAEncryption"),l("1.2.840.113549.1.1.5","sha1WithRSAEncryption"),l("1.2.840.113549.1.1.7","RSAES-OAEP"),l("1.2.840.113549.1.1.8","mgf1"),l("1.2.840.113549.1.1.9","pSpecified"),l("1.2.840.113549.1.1.10","RSASSA-PSS"),l("1.2.840.113549.1.1.11","sha256WithRSAEncryption"),l("1.2.840.113549.1.1.12","sha384WithRSAEncryption"),l("1.2.840.113549.1.1.13","sha512WithRSAEncryption"),l("1.3.101.112","EdDSA25519"),l("1.2.840.10040.4.3","dsa-with-sha1"),l("1.3.14.3.2.7","desCBC"),l("1.3.14.3.2.26","sha1"),l("1.3.14.3.2.29","sha1WithRSASignature"),l("2.16.840.1.101.3.4.2.1","sha256"),l("2.16.840.1.101.3.4.2.2","sha384"),l("2.16.840.1.101.3.4.2.3","sha512"),l("2.16.840.1.101.3.4.2.4","sha224"),l("2.16.840.1.101.3.4.2.5","sha512-224"),l("2.16.840.1.101.3.4.2.6","sha512-256"),l("1.2.840.113549.2.2","md2"),l("1.2.840.113549.2.5","md5"),l("1.2.840.113549.1.7.1","data"),l("1.2.840.113549.1.7.2","signedData"),l("1.2.840.113549.1.7.3","envelopedData"),l("1.2.840.113549.1.7.4","signedAndEnvelopedData"),l("1.2.840.113549.1.7.5","digestedData"),l("1.2.840.113549.1.7.6","encryptedData"),l("1.2.840.113549.1.9.1","emailAddress"),l("1.2.840.113549.1.9.2","unstructuredName"),l("1.2.840.113549.1.9.3","contentType"),l("1.2.840.113549.1.9.4","messageDigest"),l("1.2.840.113549.1.9.5","signingTime"),l("1.2.840.113549.1.9.6","counterSignature"),l("1.2.840.113549.1.9.7","challengePassword"),l("1.2.840.113549.1.9.8","unstructuredAddress"),l("1.2.840.113549.1.9.14","extensionRequest"),l("1.2.840.113549.1.9.20","friendlyName"),l("1.2.840.113549.1.9.21","localKeyId"),l("1.2.840.113549.1.9.22.1","x509Certificate"),l("1.2.840.113549.1.12.10.1.1","keyBag"),l("1.2.840.113549.1.12.10.1.2","pkcs8ShroudedKeyBag"),l("1.2.840.113549.1.12.10.1.3","certBag"),l("1.2.840.113549.1.12.10.1.4","crlBag"),l("1.2.840.113549.1.12.10.1.5","secretBag"),l("1.2.840.113549.1.12.10.1.6","safeContentsBag"),l("1.2.840.113549.1.5.13","pkcs5PBES2"),l("1.2.840.113549.1.5.12","pkcs5PBKDF2"),l("1.2.840.113549.1.12.1.1","pbeWithSHAAnd128BitRC4"),l("1.2.840.113549.1.12.1.2","pbeWithSHAAnd40BitRC4"),l("1.2.840.113549.1.12.1.3","pbeWithSHAAnd3-KeyTripleDES-CBC"),l("1.2.840.113549.1.12.1.4","pbeWithSHAAnd2-KeyTripleDES-CBC"),l("1.2.840.113549.1.12.1.5","pbeWithSHAAnd128BitRC2-CBC"),l("1.2.840.113549.1.12.1.6","pbewithSHAAnd40BitRC2-CBC"),l("1.2.840.113549.2.7","hmacWithSHA1"),l("1.2.840.113549.2.8","hmacWithSHA224"),l("1.2.840.113549.2.9","hmacWithSHA256"),l("1.2.840.113549.2.10","hmacWithSHA384"),l("1.2.840.113549.2.11","hmacWithSHA512"),l("1.2.840.113549.3.7","des-EDE3-CBC"),l("2.16.840.1.101.3.4.1.2","aes128-CBC"),l("2.16.840.1.101.3.4.1.22","aes192-CBC"),l("2.16.840.1.101.3.4.1.42","aes256-CBC"),l("2.5.4.3","commonName"),l("2.5.4.4","surname"),l("2.5.4.5","serialNumber"),l("2.5.4.6","countryName"),l("2.5.4.7","localityName"),l("2.5.4.8","stateOrProvinceName"),l("2.5.4.9","streetAddress"),l("2.5.4.10","organizationName"),l("2.5.4.11","organizationalUnitName"),l("2.5.4.12","title"),l("2.5.4.13","description"),l("2.5.4.15","businessCategory"),l("2.5.4.17","postalCode"),l("2.5.4.42","givenName"),l("1.3.6.1.4.1.311.60.2.1.2","jurisdictionOfIncorporationStateOrProvinceName"),l("1.3.6.1.4.1.311.60.2.1.3","jurisdictionOfIncorporationCountryName"),l("2.16.840.1.113730.1.1","nsCertType"),l("2.16.840.1.113730.1.13","nsComment"),h("2.5.29.1","authorityKeyIdentifier"),h("2.5.29.2","keyAttributes"),h("2.5.29.3","certificatePolicies"),h("2.5.29.4","keyUsageRestriction"),h("2.5.29.5","policyMapping"),h("2.5.29.6","subtreesConstraint"),h("2.5.29.7","subjectAltName"),h("2.5.29.8","issuerAltName"),h("2.5.29.9","subjectDirectoryAttributes"),h("2.5.29.10","basicConstraints"),h("2.5.29.11","nameConstraints"),h("2.5.29.12","policyConstraints"),h("2.5.29.13","basicConstraints"),l("2.5.29.14","subjectKeyIdentifier"),l("2.5.29.15","keyUsage"),h("2.5.29.16","privateKeyUsagePeriod"),l("2.5.29.17","subjectAltName"),l("2.5.29.18","issuerAltName"),l("2.5.29.19","basicConstraints"),h("2.5.29.20","cRLNumber"),h("2.5.29.21","cRLReason"),h("2.5.29.22","expirationDate"),h("2.5.29.23","instructionCode"),h("2.5.29.24","invalidityDate"),h("2.5.29.25","cRLDistributionPoints"),h("2.5.29.26","issuingDistributionPoint"),h("2.5.29.27","deltaCRLIndicator"),h("2.5.29.28","issuingDistributionPoint"),h("2.5.29.29","certificateIssuer"),h("2.5.29.30","nameConstraints"),l("2.5.29.31","cRLDistributionPoints"),l("2.5.29.32","certificatePolicies"),h("2.5.29.33","policyMappings"),h("2.5.29.34","policyConstraints"),l("2.5.29.35","authorityKeyIdentifier"),h("2.5.29.36","policyConstraints"),l("2.5.29.37","extKeyUsage"),h("2.5.29.46","freshestCRL"),h("2.5.29.54","inhibitAnyPolicy"),l("1.3.6.1.4.1.11129.2.4.2","timestampList"),l("1.3.6.1.5.5.7.1.1","authorityInfoAccess"),l("1.3.6.1.5.5.7.3.1","serverAuth"),l("1.3.6.1.5.5.7.3.2","clientAuth"),l("1.3.6.1.5.5.7.3.3","codeSigning"),l("1.3.6.1.5.5.7.3.4","emailProtection"),l("1.3.6.1.5.5.7.3.8","timeStamping")},62158:(M,b,n)=>{var t=n(18659);if(n(1298),n(17791),n(10279),n(90979),n(16078),n(77620),n(88604),n(78365),n(70209),n(25517),n(74747),typeof e>"u")var e=t.jsbn.BigInteger;var l=t.asn1,h=t.pki=t.pki||{};M.exports=h.pbe=t.pbe=t.pbe||{};var r=h.oids,d={name:"EncryptedPrivateKeyInfo",tagClass:l.Class.UNIVERSAL,type:l.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedPrivateKeyInfo.encryptionAlgorithm",tagClass:l.Class.UNIVERSAL,type:l.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:l.Class.UNIVERSAL,type:l.Type.OID,constructed:!1,capture:"encryptionOid"},{name:"AlgorithmIdentifier.parameters",tagClass:l.Class.UNIVERSAL,type:l.Type.SEQUENCE,constructed:!0,captureAsn1:"encryptionParams"}]},{name:"EncryptedPrivateKeyInfo.encryptedData",tagClass:l.Class.UNIVERSAL,type:l.Type.OCTETSTRING,constructed:!1,capture:"encryptedData"}]},y={name:"PBES2Algorithms",tagClass:l.Class.UNIVERSAL,type:l.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.keyDerivationFunc",tagClass:l.Class.UNIVERSAL,type:l.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.keyDerivationFunc.oid",tagClass:l.Class.UNIVERSAL,type:l.Type.OID,constructed:!1,capture:"kdfOid"},{name:"PBES2Algorithms.params",tagClass:l.Class.UNIVERSAL,type:l.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.params.salt",tagClass:l.Class.UNIVERSAL,type:l.Type.OCTETSTRING,constructed:!1,capture:"kdfSalt"},{name:"PBES2Algorithms.params.iterationCount",tagClass:l.Class.UNIVERSAL,type:l.Type.INTEGER,constructed:!1,capture:"kdfIterationCount"},{name:"PBES2Algorithms.params.keyLength",tagClass:l.Class.UNIVERSAL,type:l.Type.INTEGER,constructed:!1,optional:!0,capture:"keyLength"},{name:"PBES2Algorithms.params.prf",tagClass:l.Class.UNIVERSAL,type:l.Type.SEQUENCE,constructed:!0,optional:!0,value:[{name:"PBES2Algorithms.params.prf.algorithm",tagClass:l.Class.UNIVERSAL,type:l.Type.OID,constructed:!1,capture:"prfOid"}]}]}]},{name:"PBES2Algorithms.encryptionScheme",tagClass:l.Class.UNIVERSAL,type:l.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.encryptionScheme.oid",tagClass:l.Class.UNIVERSAL,type:l.Type.OID,constructed:!1,capture:"encOid"},{name:"PBES2Algorithms.encryptionScheme.iv",tagClass:l.Class.UNIVERSAL,type:l.Type.OCTETSTRING,constructed:!1,capture:"encIv"}]}]},g={name:"pkcs-12PbeParams",tagClass:l.Class.UNIVERSAL,type:l.Type.SEQUENCE,constructed:!0,value:[{name:"pkcs-12PbeParams.salt",tagClass:l.Class.UNIVERSAL,type:l.Type.OCTETSTRING,constructed:!1,capture:"salt"},{name:"pkcs-12PbeParams.iterations",tagClass:l.Class.UNIVERSAL,type:l.Type.INTEGER,constructed:!1,capture:"iterations"}]};function p(a,O){return a.start().update(O).digest().getBytes()}function f(a){var O;if(a){if(!(O=h.oids[l.derToOid(a)])){var H=new Error("Unsupported PRF OID.");throw H.oid=a,H.supported=["hmacWithSHA1","hmacWithSHA224","hmacWithSHA256","hmacWithSHA384","hmacWithSHA512"],H}}else O="hmacWithSHA1";return C(O)}function C(a){var O=t.md;switch(a){case"hmacWithSHA224":O=t.md.sha512;case"hmacWithSHA1":case"hmacWithSHA256":case"hmacWithSHA384":case"hmacWithSHA512":a=a.substr(8).toLowerCase();break;default:var H=new Error("Unsupported PRF algorithm.");throw H.algorithm=a,H.supported=["hmacWithSHA1","hmacWithSHA224","hmacWithSHA256","hmacWithSHA384","hmacWithSHA512"],H}if(!O||!(a in O))throw new Error("Unknown hash algorithm: "+a);return O[a].create()}h.encryptPrivateKeyInfo=function(a,O,H){(H=H||{}).saltSize=H.saltSize||8,H.count=H.count||2048,H.algorithm=H.algorithm||"aes128",H.prfAlgorithm=H.prfAlgorithm||"sha1";var U,q,J,F=t.random.getBytesSync(H.saltSize),V=H.count,D=l.integerToDer(V);if(0===H.algorithm.indexOf("aes")||"des"===H.algorithm){var G,ie,K;switch(H.algorithm){case"aes128":U=16,G=16,ie=r["aes128-CBC"],K=t.aes.createEncryptionCipher;break;case"aes192":U=24,G=16,ie=r["aes192-CBC"],K=t.aes.createEncryptionCipher;break;case"aes256":U=32,G=16,ie=r["aes256-CBC"],K=t.aes.createEncryptionCipher;break;case"des":U=8,G=8,ie=r.desCBC,K=t.des.createEncryptionCipher;break;default:throw(re=new Error("Cannot encrypt private key. Unknown encryption algorithm.")).algorithm=H.algorithm,re}var oe="hmacWith"+H.prfAlgorithm.toUpperCase(),B=C(oe),s=t.pkcs5.pbkdf2(O,F,V,U,B),_=t.random.getBytesSync(G);(w=K(s)).start(_),w.update(l.toDer(a)),w.finish(),J=w.output.getBytes();var E=function N(a,O,H,F){var V=l.create(l.Class.UNIVERSAL,l.Type.SEQUENCE,!0,[l.create(l.Class.UNIVERSAL,l.Type.OCTETSTRING,!1,a),l.create(l.Class.UNIVERSAL,l.Type.INTEGER,!1,O.getBytes())]);return"hmacWithSHA1"!==F&&V.value.push(l.create(l.Class.UNIVERSAL,l.Type.INTEGER,!1,t.util.hexToBytes(H.toString(16))),l.create(l.Class.UNIVERSAL,l.Type.SEQUENCE,!0,[l.create(l.Class.UNIVERSAL,l.Type.OID,!1,l.oidToDer(h.oids[F]).getBytes()),l.create(l.Class.UNIVERSAL,l.Type.NULL,!1,"")])),V}(F,D,U,oe);q=l.create(l.Class.UNIVERSAL,l.Type.SEQUENCE,!0,[l.create(l.Class.UNIVERSAL,l.Type.OID,!1,l.oidToDer(r.pkcs5PBES2).getBytes()),l.create(l.Class.UNIVERSAL,l.Type.SEQUENCE,!0,[l.create(l.Class.UNIVERSAL,l.Type.SEQUENCE,!0,[l.create(l.Class.UNIVERSAL,l.Type.OID,!1,l.oidToDer(r.pkcs5PBKDF2).getBytes()),E]),l.create(l.Class.UNIVERSAL,l.Type.SEQUENCE,!0,[l.create(l.Class.UNIVERSAL,l.Type.OID,!1,l.oidToDer(ie).getBytes()),l.create(l.Class.UNIVERSAL,l.Type.OCTETSTRING,!1,_)])])])}else{var re;if("3des"!==H.algorithm)throw(re=new Error("Cannot encrypt private key. Unknown encryption algorithm.")).algorithm=H.algorithm,re;U=24;var w,x=new t.util.ByteBuffer(F);s=h.pbe.generatePkcs12Key(O,x,1,V,U),_=h.pbe.generatePkcs12Key(O,x,2,V,U),(w=t.des.createEncryptionCipher(s)).start(_),w.update(l.toDer(a)),w.finish(),J=w.output.getBytes(),q=l.create(l.Class.UNIVERSAL,l.Type.SEQUENCE,!0,[l.create(l.Class.UNIVERSAL,l.Type.OID,!1,l.oidToDer(r["pbeWithSHAAnd3-KeyTripleDES-CBC"]).getBytes()),l.create(l.Class.UNIVERSAL,l.Type.SEQUENCE,!0,[l.create(l.Class.UNIVERSAL,l.Type.OCTETSTRING,!1,F),l.create(l.Class.UNIVERSAL,l.Type.INTEGER,!1,D.getBytes())])])}return l.create(l.Class.UNIVERSAL,l.Type.SEQUENCE,!0,[q,l.create(l.Class.UNIVERSAL,l.Type.OCTETSTRING,!1,J)])},h.decryptPrivateKeyInfo=function(a,O){var H=null,F={},V=[];if(!l.validate(a,d,F,V)){var D=new Error("Cannot read encrypted private key. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw D.errors=V,D}var U=l.derToOid(F.encryptionOid),q=h.pbe.getCipher(U,F.encryptionParams,O),J=t.util.createBuffer(F.encryptedData);return q.update(J),q.finish()&&(H=l.fromDer(q.output)),H},h.encryptedPrivateKeyToPem=function(a,O){var H={type:"ENCRYPTED PRIVATE KEY",body:l.toDer(a).getBytes()};return t.pem.encode(H,{maxline:O})},h.encryptedPrivateKeyFromPem=function(a){var O=t.pem.decode(a)[0];if("ENCRYPTED PRIVATE KEY"!==O.type){var H=new Error('Could not convert encrypted private key from PEM; PEM header type is "ENCRYPTED PRIVATE KEY".');throw H.headerType=O.type,H}if(O.procType&&"ENCRYPTED"===O.procType.type)throw new Error("Could not convert encrypted private key from PEM; PEM is encrypted.");return l.fromDer(O.body)},h.encryptRsaPrivateKey=function(a,O,H){if(!(H=H||{}).legacy){var F=h.wrapRsaPrivateKey(h.privateKeyToAsn1(a));return F=h.encryptPrivateKeyInfo(F,O,H),h.encryptedPrivateKeyToPem(F)}var V,D,U,q;switch(H.algorithm){case"aes128":V="AES-128-CBC",U=16,D=t.random.getBytesSync(16),q=t.aes.createEncryptionCipher;break;case"aes192":V="AES-192-CBC",U=24,D=t.random.getBytesSync(16),q=t.aes.createEncryptionCipher;break;case"aes256":V="AES-256-CBC",U=32,D=t.random.getBytesSync(16),q=t.aes.createEncryptionCipher;break;case"3des":V="DES-EDE3-CBC",U=24,D=t.random.getBytesSync(8),q=t.des.createEncryptionCipher;break;case"des":V="DES-CBC",U=8,D=t.random.getBytesSync(8),q=t.des.createEncryptionCipher;break;default:var J=new Error('Could not encrypt RSA private key; unsupported encryption algorithm "'+H.algorithm+'".');throw J.algorithm=H.algorithm,J}var ie=q(t.pbe.opensslDeriveBytes(O,D.substr(0,8),U));ie.start(D),ie.update(l.toDer(h.privateKeyToAsn1(a))),ie.finish();var K={type:"RSA PRIVATE KEY",procType:{version:"4",type:"ENCRYPTED"},dekInfo:{algorithm:V,parameters:t.util.bytesToHex(D).toUpperCase()},body:ie.output.getBytes()};return t.pem.encode(K)},h.decryptRsaPrivateKey=function(a,O){var H=null,F=t.pem.decode(a)[0];if("ENCRYPTED PRIVATE KEY"!==F.type&&"PRIVATE KEY"!==F.type&&"RSA PRIVATE KEY"!==F.type)throw(V=new Error('Could not convert private key from PEM; PEM header type is not "ENCRYPTED PRIVATE KEY", "PRIVATE KEY", or "RSA PRIVATE KEY".')).headerType=V,V;if(F.procType&&"ENCRYPTED"===F.procType.type){var D,U;switch(F.dekInfo.algorithm){case"DES-CBC":D=8,U=t.des.createDecryptionCipher;break;case"DES-EDE3-CBC":D=24,U=t.des.createDecryptionCipher;break;case"AES-128-CBC":D=16,U=t.aes.createDecryptionCipher;break;case"AES-192-CBC":D=24,U=t.aes.createDecryptionCipher;break;case"AES-256-CBC":D=32,U=t.aes.createDecryptionCipher;break;case"RC2-40-CBC":D=5,U=function(K){return t.rc2.createDecryptionCipher(K,40)};break;case"RC2-64-CBC":D=8,U=function(K){return t.rc2.createDecryptionCipher(K,64)};break;case"RC2-128-CBC":D=16,U=function(K){return t.rc2.createDecryptionCipher(K,128)};break;default:var V;throw(V=new Error('Could not decrypt private key; unsupported encryption algorithm "'+F.dekInfo.algorithm+'".')).algorithm=F.dekInfo.algorithm,V}var q=t.util.hexToBytes(F.dekInfo.parameters),G=U(t.pbe.opensslDeriveBytes(O,q.substr(0,8),D));if(G.start(q),G.update(t.util.createBuffer(F.body)),!G.finish())return H;H=G.output.getBytes()}else H=F.body;return null!==(H="ENCRYPTED PRIVATE KEY"===F.type?h.decryptPrivateKeyInfo(l.fromDer(H),O):l.fromDer(H))&&(H=h.privateKeyFromAsn1(H)),H},h.pbe.generatePkcs12Key=function(a,O,H,F,V,D){var U,q;if(typeof D>"u"||null===D){if(!("sha1"in t.md))throw new Error('"sha1" hash algorithm unavailable.');D=t.md.sha1.create()}var J=D.digestLength,G=D.blockLength,ie=new t.util.ByteBuffer,K=new t.util.ByteBuffer;if(null!=a){for(q=0;q<a.length;q++)K.putInt16(a.charCodeAt(q));K.putInt16(0)}var re=K.length(),oe=O.length(),B=new t.util.ByteBuffer;B.fillWithByte(H,G);var s=G*Math.ceil(oe/G),_=new t.util.ByteBuffer;for(q=0;q<s;q++)_.putByte(O.at(q%oe));var w=G*Math.ceil(re/G),E=new t.util.ByteBuffer;for(q=0;q<w;q++)E.putByte(K.at(q%re));var x=_;x.putBuffer(E);for(var j=Math.ceil(V/J),$=1;$<=j;$++){var Y=new t.util.ByteBuffer;Y.putBytes(B.bytes()),Y.putBytes(x.bytes());for(var u=0;u<F;u++)D.start(),D.update(Y.getBytes()),Y=D.digest();var W=new t.util.ByteBuffer;for(q=0;q<G;q++)W.putByte(Y.at(q%J));var fe=Math.ceil(oe/G)+Math.ceil(re/G),ae=new t.util.ByteBuffer;for(U=0;U<fe;U++){var ye=new t.util.ByteBuffer(x.getBytes(G)),Qe=511;for(q=W.length()-1;q>=0;q--)Qe>>=8,Qe+=W.at(q)+ye.at(q),ye.setAt(q,255&Qe);ae.putBuffer(ye)}x=ae,ie.putBuffer(Y)}return ie.truncate(ie.length()-V),ie},h.pbe.getCipher=function(a,O,H){switch(a){case h.oids.pkcs5PBES2:return h.pbe.getCipherForPBES2(a,O,H);case h.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:case h.oids["pbewithSHAAnd40BitRC2-CBC"]:return h.pbe.getCipherForPKCS12PBE(a,O,H);default:var F=new Error("Cannot read encrypted PBE data block. Unsupported OID.");throw F.oid=a,F.supportedOids=["pkcs5PBES2","pbeWithSHAAnd3-KeyTripleDES-CBC","pbewithSHAAnd40BitRC2-CBC"],F}},h.pbe.getCipherForPBES2=function(a,O,H){var D,F={},V=[];if(!l.validate(O,y,F,V))throw(D=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.")).errors=V,D;if((a=l.derToOid(F.kdfOid))!==h.oids.pkcs5PBKDF2)throw(D=new Error("Cannot read encrypted private key. Unsupported key derivation function OID.")).oid=a,D.supportedOids=["pkcs5PBKDF2"],D;if((a=l.derToOid(F.encOid))!==h.oids["aes128-CBC"]&&a!==h.oids["aes192-CBC"]&&a!==h.oids["aes256-CBC"]&&a!==h.oids["des-EDE3-CBC"]&&a!==h.oids.desCBC)throw(D=new Error("Cannot read encrypted private key. Unsupported encryption scheme OID.")).oid=a,D.supportedOids=["aes128-CBC","aes192-CBC","aes256-CBC","des-EDE3-CBC","desCBC"],D;var J,G,U=F.kdfSalt,q=t.util.createBuffer(F.kdfIterationCount);switch(q=q.getInt(q.length()<<3),h.oids[a]){case"aes128-CBC":J=16,G=t.aes.createDecryptionCipher;break;case"aes192-CBC":J=24,G=t.aes.createDecryptionCipher;break;case"aes256-CBC":J=32,G=t.aes.createDecryptionCipher;break;case"des-EDE3-CBC":J=24,G=t.des.createDecryptionCipher;break;case"desCBC":J=8,G=t.des.createDecryptionCipher}var ie=f(F.prfOid),K=t.pkcs5.pbkdf2(H,U,q,J,ie),re=F.encIv,oe=G(K);return oe.start(re),oe},h.pbe.getCipherForPKCS12PBE=function(a,O,H){var F={},V=[];if(!l.validate(O,g,F,V))throw(D=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.")).errors=V,D;var J,G,ie,U=t.util.createBuffer(F.salt),q=t.util.createBuffer(F.iterations);switch(q=q.getInt(q.length()<<3),a){case h.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:J=24,G=8,ie=t.des.startDecrypting;break;case h.oids["pbewithSHAAnd40BitRC2-CBC"]:J=5,G=8,ie=function(s,_){var w=t.rc2.createDecryptionCipher(s,40);return w.start(_,null),w};break;default:var D;throw(D=new Error("Cannot read PKCS #12 PBE data block. Unsupported OID.")).oid=a,D}var K=f(F.prfOid),re=h.pbe.generatePkcs12Key(H,U,1,q,J,K);return K.start(),ie(re,h.pbe.generatePkcs12Key(H,U,2,q,G,K))},h.pbe.opensslDeriveBytes=function(a,O,H,F){if(typeof F>"u"||null===F){if(!("md5"in t.md))throw new Error('"md5" hash algorithm unavailable.');F=t.md.md5.create()}null===O&&(O="");for(var V=[p(F,a+O)],D=16,U=1;D<H;++U,D+=16)V.push(p(F,V[U-1]+a+O));return V.join("").substr(0,H)}},77620:(M,b,n)=>{var t=n(18659);n(39032),n(90979),n(74747);var l,e=t.pkcs5=t.pkcs5||{};t.util.isNodejs&&!t.options.usePureJavaScript&&(l=n(41348)),M.exports=t.pbkdf2=e.pbkdf2=function(h,r,d,y,g,p){if("function"==typeof g&&(p=g,g=null),t.util.isNodejs&&!t.options.usePureJavaScript&&l.pbkdf2&&(null===g||"object"!=typeof g)&&(l.pbkdf2Sync.length>4||!g||"sha1"===g))return"string"!=typeof g&&(g="sha1"),h=Buffer.from(h,"binary"),r=Buffer.from(r,"binary"),p?4===l.pbkdf2Sync.length?l.pbkdf2(h,r,d,y,function(ie,K){if(ie)return p(ie);p(null,K.toString("binary"))}):l.pbkdf2(h,r,d,y,g,function(ie,K){if(ie)return p(ie);p(null,K.toString("binary"))}):4===l.pbkdf2Sync.length?l.pbkdf2Sync(h,r,d,y).toString("binary"):l.pbkdf2Sync(h,r,d,y,g).toString("binary");if((typeof g>"u"||null===g)&&(g="sha1"),"string"==typeof g){if(!(g in t.md.algorithms))throw new Error("Unknown hash algorithm: "+g);g=t.md[g].create()}var f=g.digestLength;if(y>4294967295*f){var C=new Error("Derived key is too long.");if(p)return p(C);throw C}var N=Math.ceil(y/f),a=y-(N-1)*f,O=t.hmac.create();O.start(g,h);var F,V,D,H="";if(!p){for(var U=1;U<=N;++U){O.start(null,null),O.update(r),O.update(t.util.int32ToBytes(U)),F=D=O.digest().getBytes();for(var q=2;q<=d;++q)O.start(null,null),O.update(D),V=O.digest().getBytes(),F=t.util.xorBytes(F,V,f),D=V;H+=U<N?F:F.substr(0,a)}return H}function J(){if(U>N)return p(null,H);O.start(null,null),O.update(r),O.update(t.util.int32ToBytes(U)),F=D=O.digest().getBytes(),q=2,G()}function G(){if(q<=d)return O.start(null,null),O.update(D),V=O.digest().getBytes(),F=t.util.xorBytes(F,V,f),D=V,++q,t.util.setImmediate(G);H+=U<N?F:F.substr(0,a),++U,J()}U=1,J()}},88604:(M,b,n)=>{var t=n(18659);n(74747);var e=M.exports=t.pem=t.pem||{};function l(r){for(var d=r.name+": ",y=[],g=function(a,O){return" "+O},p=0;p<r.values.length;++p)y.push(r.values[p].replace(/^(\S+\r\n)/,g));d+=y.join(",")+"\r\n";var f=0,C=-1;for(p=0;p<d.length;++p,++f)if(f>65&&-1!==C){var N=d[C];","===N?(++C,d=d.substr(0,C)+"\r\n "+d.substr(C)):d=d.substr(0,C)+"\r\n"+N+d.substr(C+1),f=p-C-1,C=-1,++p}else(" "===d[p]||"\t"===d[p]||","===d[p])&&(C=p);return d}function h(r){return r.replace(/^\s+/,"")}e.encode=function(r,d){d=d||{};var g,y="-----BEGIN "+r.type+"-----\r\n";if(r.procType&&(y+=l(g={name:"Proc-Type",values:[String(r.procType.version),r.procType.type]})),r.contentDomain&&(y+=l(g={name:"Content-Domain",values:[r.contentDomain]})),r.dekInfo&&(g={name:"DEK-Info",values:[r.dekInfo.algorithm]},r.dekInfo.parameters&&g.values.push(r.dekInfo.parameters),y+=l(g)),r.headers)for(var p=0;p<r.headers.length;++p)y+=l(r.headers[p]);return r.procType&&(y+="\r\n"),(y+=t.util.encode64(r.body,d.maxline||64)+"\r\n")+"-----END "+r.type+"-----\r\n"},e.decode=function(r){for(var f,d=[],y=/\s*-----BEGIN ([A-Z0-9- ]+)-----\r?\n?([\x21-\x7e\s]+?(?:\r?\n\r?\n))?([:A-Za-z0-9+\/=\s]+?)-----END \1-----/g,g=/([\x21-\x7e]+):\s*([\x21-\x7e\s^:]+)/,p=/\r?\n/;f=y.exec(r);){var C=f[1];"NEW CERTIFICATE REQUEST"===C&&(C="CERTIFICATE REQUEST");var N={type:C,procType:null,contentDomain:null,dekInfo:null,headers:[],body:t.util.decode64(f[3])};if(d.push(N),f[2]){for(var a=f[2].split(p),O=0;f&&O<a.length;){for(var H=a[O].replace(/\s+$/,""),F=O+1;F<a.length;++F){var V=a[F];if(!/\s/.test(V[0]))break;H+=V,O=F}if(f=H.match(g)){for(var D={name:f[1],values:[]},U=f[2].split(","),q=0;q<U.length;++q)D.values.push(h(U[q]));if(N.procType)if(N.contentDomain||"Content-Domain"!==D.name)if(N.dekInfo||"DEK-Info"!==D.name)N.headers.push(D);else{if(0===D.values.length)throw new Error('Invalid PEM formatted message. The "DEK-Info" header must have at least one subfield.');N.dekInfo={algorithm:U[0],parameters:U[1]||null}}else N.contentDomain=U[0]||"";else{if("Proc-Type"!==D.name)throw new Error('Invalid PEM formatted message. The first encapsulated header must be "Proc-Type".');if(2!==D.values.length)throw new Error('Invalid PEM formatted message. The "Proc-Type" header must have two subfields.');N.procType={version:U[0],type:U[1]}}}++O}if("ENCRYPTED"===N.procType&&!N.dekInfo)throw new Error('Invalid PEM formatted message. The "DEK-Info" header must be present if "Proc-Type" is "ENCRYPTED".')}}if(0===d.length)throw new Error("Invalid PEM formatted message.");return d}},47246:(M,b,n)=>{var t=n(18659);n(74747),n(78365),n(47690);var e=M.exports=t.pkcs1=t.pkcs1||{};function l(h,r,d){d||(d=t.md.sha1.create());for(var y="",g=Math.ceil(r/d.digestLength),p=0;p<g;++p){var f=String.fromCharCode(p>>24&255,p>>16&255,p>>8&255,255&p);d.start(),d.update(h+f),y+=d.digest().getBytes()}return y.substring(0,r)}e.encode_rsa_oaep=function(h,r,d){var y,g,p,f;"string"==typeof d?(y=d,g=arguments[3]||void 0,p=arguments[4]||void 0):d&&(y=d.label||void 0,g=d.seed||void 0,p=d.md||void 0,d.mgf1&&d.mgf1.md&&(f=d.mgf1.md)),p?p.start():p=t.md.sha1.create(),f||(f=p);var C=Math.ceil(h.n.bitLength()/8),N=C-2*p.digestLength-2;if(r.length>N)throw(a=new Error("RSAES-OAEP input message length is too long.")).length=r.length,a.maxLength=N,a;y||(y=""),p.update(y,"raw");for(var O=p.digest(),H="",F=N-r.length,V=0;V<F;V++)H+="\0";var D=O.getBytes()+H+"\x01"+r;if(g){if(g.length!==p.digestLength){var a;throw(a=new Error("Invalid RSAES-OAEP seed. The seed length must match the digest length.")).seedLength=g.length,a.digestLength=p.digestLength,a}}else g=t.random.getBytes(p.digestLength);var U=l(g,C-p.digestLength-1,f),q=t.util.xorBytes(D,U,D.length),J=l(q,p.digestLength,f),G=t.util.xorBytes(g,J,g.length);return"\0"+G+q},e.decode_rsa_oaep=function(h,r,d){var y,g,p;"string"==typeof d?(y=d,g=arguments[3]||void 0):d&&(y=d.label||void 0,g=d.md||void 0,d.mgf1&&d.mgf1.md&&(p=d.mgf1.md));var f=Math.ceil(h.n.bitLength()/8);if(r.length!==f)throw(q=new Error("RSAES-OAEP encoded message length is invalid.")).length=r.length,q.expectedLength=f,q;if(void 0===g?g=t.md.sha1.create():g.start(),p||(p=g),f<2*g.digestLength+2)throw new Error("RSAES-OAEP key is too short for the hash function.");y||(y=""),g.update(y,"raw");for(var C=g.digest().getBytes(),N=r.charAt(0),a=r.substring(1,g.digestLength+1),O=r.substring(1+g.digestLength),H=l(O,g.digestLength,p),F=t.util.xorBytes(a,H,a.length),V=l(F,f-g.digestLength-1,p),D=t.util.xorBytes(O,V,O.length),U=D.substring(0,g.digestLength),q="\0"!==N,J=0;J<g.digestLength;++J)q|=C.charAt(J)!==U.charAt(J);for(var G=1,ie=g.digestLength,K=g.digestLength;K<D.length;K++){var re=D.charCodeAt(K),oe=1&re^1,B=G?65534:0;q|=re&B,ie+=G&=oe}if(q||1!==D.charCodeAt(ie))throw new Error("Invalid RSAES-OAEP padding.");return D.substring(ie+1)}},50562:(M,b,n)=>{var t=n(18659);n(17791),n(39032),n(16078),n(14957),n(62158),n(78365),n(25517),n(47690),n(74747),n(55911);var e=t.asn1,l=t.pki,h=M.exports=t.pkcs12=t.pkcs12||{},r={name:"ContentInfo",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,value:[{name:"ContentInfo.contentType",tagClass:e.Class.UNIVERSAL,type:e.Type.OID,constructed:!1,capture:"contentType"},{name:"ContentInfo.content",tagClass:e.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"content"}]},d={name:"PFX",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.version",tagClass:e.Class.UNIVERSAL,type:e.Type.INTEGER,constructed:!1,capture:"version"},r,{name:"PFX.macData",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"mac",value:[{name:"PFX.macData.mac",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm.algorithm",tagClass:e.Class.UNIVERSAL,type:e.Type.OID,constructed:!1,capture:"macAlgorithm"},{name:"PFX.macData.mac.digestAlgorithm.parameters",tagClass:e.Class.UNIVERSAL,captureAsn1:"macAlgorithmParameters"}]},{name:"PFX.macData.mac.digest",tagClass:e.Class.UNIVERSAL,type:e.Type.OCTETSTRING,constructed:!1,capture:"macDigest"}]},{name:"PFX.macData.macSalt",tagClass:e.Class.UNIVERSAL,type:e.Type.OCTETSTRING,constructed:!1,capture:"macSalt"},{name:"PFX.macData.iterations",tagClass:e.Class.UNIVERSAL,type:e.Type.INTEGER,constructed:!1,optional:!0,capture:"macIterations"}]}]},y={name:"SafeBag",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,value:[{name:"SafeBag.bagId",tagClass:e.Class.UNIVERSAL,type:e.Type.OID,constructed:!1,capture:"bagId"},{name:"SafeBag.bagValue",tagClass:e.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"bagValue"},{name:"SafeBag.bagAttributes",tagClass:e.Class.UNIVERSAL,type:e.Type.SET,constructed:!0,optional:!0,capture:"bagAttributes"}]},g={name:"Attribute",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,value:[{name:"Attribute.attrId",tagClass:e.Class.UNIVERSAL,type:e.Type.OID,constructed:!1,capture:"oid"},{name:"Attribute.attrValues",tagClass:e.Class.UNIVERSAL,type:e.Type.SET,constructed:!0,capture:"values"}]},p={name:"CertBag",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,value:[{name:"CertBag.certId",tagClass:e.Class.UNIVERSAL,type:e.Type.OID,constructed:!1,capture:"certId"},{name:"CertBag.certValue",tagClass:e.Class.CONTEXT_SPECIFIC,constructed:!0,value:[{name:"CertBag.certValue[0]",tagClass:e.Class.UNIVERSAL,type:e.Class.OCTETSTRING,constructed:!1,capture:"cert"}]}]};function f(F,V,D,U){for(var q=[],J=0;J<F.length;J++)for(var G=0;G<F[J].safeBags.length;G++){var ie=F[J].safeBags[G];if(void 0===U||ie.type===U){if(null===V){q.push(ie);continue}void 0!==ie.attributes[V]&&ie.attributes[V].indexOf(D)>=0&&q.push(ie)}}return q}function C(F){if(F.composed||F.constructed){for(var V=t.util.createBuffer(),D=0;D<F.value.length;++D)V.putBytes(F.value[D].value);F.composed=F.constructed=!1,F.value=V.getBytes()}return F}function a(F,V){var D={},U=[];if(!e.validate(F,t.pkcs7.asn1.encryptedDataValidator,D,U))throw(q=new Error("Cannot read EncryptedContentInfo.")).errors=U,q;var q,J=e.derToOid(D.contentType);if(J!==l.oids.data)throw(q=new Error("PKCS#12 EncryptedContentInfo ContentType is not Data.")).oid=J,q;J=e.derToOid(D.encAlgorithm);var G=l.pbe.getCipher(J,D.encParameter,V),ie=C(D.encryptedContentAsn1),K=t.util.createBuffer(ie.value);if(G.update(K),!G.finish())throw new Error("Failed to decrypt PKCS#12 SafeContents.");return G.output.getBytes()}function O(F,V,D){if(!V&&0===F.length)return[];if((F=e.fromDer(F,V)).tagClass!==e.Class.UNIVERSAL||F.type!==e.Type.SEQUENCE||!0!==F.constructed)throw new Error("PKCS#12 SafeContents expected to be a SEQUENCE OF SafeBag.");for(var U=[],q=0;q<F.value.length;q++){var G={},ie=[];if(!e.validate(F.value[q],y,G,ie))throw(K=new Error("Cannot read SafeBag.")).errors=ie,K;var re={type:e.derToOid(G.bagId),attributes:H(G.bagAttributes)};U.push(re);var oe,B,s=G.bagValue.value[0];switch(re.type){case l.oids.pkcs8ShroudedKeyBag:if(null===(s=l.decryptPrivateKeyInfo(s,D)))throw new Error("Unable to decrypt PKCS#8 ShroudedKeyBag, wrong password?");case l.oids.keyBag:try{re.key=l.privateKeyFromAsn1(s)}catch{re.key=null,re.asn1=s}continue;case l.oids.certBag:oe=p,B=function(){if(e.derToOid(G.certId)!==l.oids.x509Certificate){var w=new Error("Unsupported certificate type, only X.509 supported.");throw w.oid=e.derToOid(G.certId),w}var E=e.fromDer(G.cert,V);try{re.cert=l.certificateFromAsn1(E,!0)}catch{re.cert=null,re.asn1=E}};break;default:var K;throw(K=new Error("Unsupported PKCS#12 SafeBag type.")).oid=re.type,K}if(void 0!==oe&&!e.validate(s,oe,G,ie))throw(K=new Error("Cannot read PKCS#12 "+oe.name)).errors=ie,K;B()}return U}function H(F){var V={};if(void 0!==F)for(var D=0;D<F.length;++D){var U={},q=[];if(!e.validate(F[D],g,U,q)){var J=new Error("Cannot read PKCS#12 BagAttribute.");throw J.errors=q,J}var G=e.derToOid(U.oid);if(void 0!==l.oids[G]){V[l.oids[G]]=[];for(var ie=0;ie<U.values.length;++ie)V[l.oids[G]].push(U.values[ie].value)}}return V}h.pkcs12FromAsn1=function(F,V,D){"string"==typeof V?(D=V,V=!0):void 0===V&&(V=!0);var U={};if(!e.validate(F,d,U,[]))throw(J=new Error("Cannot read PKCS#12 PFX. ASN.1 object is not an PKCS#12 PFX.")).errors=J,J;var J,G={version:U.version.charCodeAt(0),safeContents:[],getBags:function(x){var $,j={};return"localKeyId"in x?$=x.localKeyId:"localKeyIdHex"in x&&($=t.util.hexToBytes(x.localKeyIdHex)),void 0===$&&!("friendlyName"in x)&&"bagType"in x&&(j[x.bagType]=f(G.safeContents,null,null,x.bagType)),void 0!==$&&(j.localKeyId=f(G.safeContents,"localKeyId",$,x.bagType)),"friendlyName"in x&&(j.friendlyName=f(G.safeContents,"friendlyName",x.friendlyName,x.bagType)),j},getBagsByFriendlyName:function(x,j){return f(G.safeContents,"friendlyName",x,j)},getBagsByLocalKeyId:function(x,j){return f(G.safeContents,"localKeyId",x,j)}};if(3!==U.version.charCodeAt(0))throw(J=new Error("PKCS#12 PFX of version other than 3 not supported.")).version=U.version.charCodeAt(0),J;if(e.derToOid(U.contentType)!==l.oids.data)throw(J=new Error("Only PKCS#12 PFX in password integrity mode supported.")).oid=e.derToOid(U.contentType),J;var ie=U.content.value[0];if(ie.tagClass!==e.Class.UNIVERSAL||ie.type!==e.Type.OCTETSTRING)throw new Error("PKCS#12 authSafe content data is not an OCTET STRING.");if(ie=C(ie),U.mac){var K=null,re=0,oe=e.derToOid(U.macAlgorithm);switch(oe){case l.oids.sha1:K=t.md.sha1.create(),re=20;break;case l.oids.sha256:K=t.md.sha256.create(),re=32;break;case l.oids.sha384:K=t.md.sha384.create(),re=48;break;case l.oids.sha512:K=t.md.sha512.create(),re=64;break;case l.oids.md5:K=t.md.md5.create(),re=16}if(null===K)throw new Error("PKCS#12 uses unsupported MAC algorithm: "+oe);var B=new t.util.ByteBuffer(U.macSalt),s="macIterations"in U?parseInt(t.util.bytesToHex(U.macIterations),16):1,_=h.generateKey(D,B,3,s,re,K),w=t.hmac.create();if(w.start(K,_),w.update(ie.value),w.getMac().getBytes()!==U.macDigest)throw new Error("PKCS#12 MAC could not be verified. Invalid password?")}return function N(F,V,D,U){if((V=e.fromDer(V,D)).tagClass!==e.Class.UNIVERSAL||V.type!==e.Type.SEQUENCE||!0!==V.constructed)throw new Error("PKCS#12 AuthenticatedSafe expected to be a SEQUENCE OF ContentInfo");for(var q=0;q<V.value.length;q++){var G={},ie=[];if(!e.validate(V.value[q],r,G,ie))throw(K=new Error("Cannot read ContentInfo.")).errors=ie,K;var re={encrypted:!1},oe=null,B=G.content.value[0];switch(e.derToOid(G.contentType)){case l.oids.data:if(B.tagClass!==e.Class.UNIVERSAL||B.type!==e.Type.OCTETSTRING)throw new Error("PKCS#12 SafeContents Data is not an OCTET STRING.");oe=C(B).value;break;case l.oids.encryptedData:oe=a(B,U),re.encrypted=!0;break;default:var K;throw(K=new Error("Unsupported PKCS#12 contentType.")).contentType=e.derToOid(G.contentType),K}re.safeBags=O(oe,D,U),F.safeContents.push(re)}}(G,ie.value,V,D),G},h.toPkcs12Asn1=function(F,V,D,U){(U=U||{}).saltSize=U.saltSize||8,U.count=U.count||2048,U.algorithm=U.algorithm||U.encAlgorithm||"aes128","useMac"in U||(U.useMac=!0),"localKeyId"in U||(U.localKeyId=null),"generateLocalKeyId"in U||(U.generateLocalKeyId=!0);var J,q=U.localKeyId;if(null!==q)q=t.util.hexToBytes(q);else if(U.generateLocalKeyId)if(V){var G=t.util.isArray(V)?V[0]:V;"string"==typeof G&&(G=l.certificateFromPem(G)),(ie=t.md.sha1.create()).update(e.toDer(l.certificateToAsn1(G)).getBytes()),q=ie.digest().getBytes()}else q=t.random.getBytes(20);var K=[];null!==q&&K.push(e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[e.create(e.Class.UNIVERSAL,e.Type.OID,!1,e.oidToDer(l.oids.localKeyId).getBytes()),e.create(e.Class.UNIVERSAL,e.Type.SET,!0,[e.create(e.Class.UNIVERSAL,e.Type.OCTETSTRING,!1,q)])])),"friendlyName"in U&&K.push(e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[e.create(e.Class.UNIVERSAL,e.Type.OID,!1,e.oidToDer(l.oids.friendlyName).getBytes()),e.create(e.Class.UNIVERSAL,e.Type.SET,!0,[e.create(e.Class.UNIVERSAL,e.Type.BMPSTRING,!1,U.friendlyName)])])),K.length>0&&(J=e.create(e.Class.UNIVERSAL,e.Type.SET,!0,K));var re=[],oe=[];null!==V&&(oe=t.util.isArray(V)?V:[V]);for(var B=[],s=0;s<oe.length;++s){"string"==typeof(V=oe[s])&&(V=l.certificateFromPem(V));var _=0===s?J:void 0,w=l.certificateToAsn1(V),E=e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[e.create(e.Class.UNIVERSAL,e.Type.OID,!1,e.oidToDer(l.oids.certBag).getBytes()),e.create(e.Class.CONTEXT_SPECIFIC,0,!0,[e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[e.create(e.Class.UNIVERSAL,e.Type.OID,!1,e.oidToDer(l.oids.x509Certificate).getBytes()),e.create(e.Class.CONTEXT_SPECIFIC,0,!0,[e.create(e.Class.UNIVERSAL,e.Type.OCTETSTRING,!1,e.toDer(w).getBytes())])])]),_]);B.push(E)}if(B.length>0){var x=e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,B),j=e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[e.create(e.Class.UNIVERSAL,e.Type.OID,!1,e.oidToDer(l.oids.data).getBytes()),e.create(e.Class.CONTEXT_SPECIFIC,0,!0,[e.create(e.Class.UNIVERSAL,e.Type.OCTETSTRING,!1,e.toDer(x).getBytes())])]);re.push(j)}var $=null;if(null!==F){var Y=l.wrapRsaPrivateKey(l.privateKeyToAsn1(F));$=e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,null===D?[e.create(e.Class.UNIVERSAL,e.Type.OID,!1,e.oidToDer(l.oids.keyBag).getBytes()),e.create(e.Class.CONTEXT_SPECIFIC,0,!0,[Y]),J]:[e.create(e.Class.UNIVERSAL,e.Type.OID,!1,e.oidToDer(l.oids.pkcs8ShroudedKeyBag).getBytes()),e.create(e.Class.CONTEXT_SPECIFIC,0,!0,[l.encryptPrivateKeyInfo(Y,D,U)]),J]);var u=e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[$]),W=e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[e.create(e.Class.UNIVERSAL,e.Type.OID,!1,e.oidToDer(l.oids.data).getBytes()),e.create(e.Class.CONTEXT_SPECIFIC,0,!0,[e.create(e.Class.UNIVERSAL,e.Type.OCTETSTRING,!1,e.toDer(u).getBytes())])]);re.push(W)}var ae,fe=e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,re);if(U.useMac){var ie=t.md.sha1.create(),ye=new t.util.ByteBuffer(t.random.getBytes(U.saltSize)),Qe=U.count,Ot=(F=h.generateKey(D,ye,3,Qe,20),t.hmac.create());Ot.start(ie,F),Ot.update(e.toDer(fe).getBytes());var At=Ot.getMac();ae=e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[e.create(e.Class.UNIVERSAL,e.Type.OID,!1,e.oidToDer(l.oids.sha1).getBytes()),e.create(e.Class.UNIVERSAL,e.Type.NULL,!1,"")]),e.create(e.Class.UNIVERSAL,e.Type.OCTETSTRING,!1,At.getBytes())]),e.create(e.Class.UNIVERSAL,e.Type.OCTETSTRING,!1,ye.getBytes()),e.create(e.Class.UNIVERSAL,e.Type.INTEGER,!1,e.integerToDer(Qe).getBytes())])}return e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[e.create(e.Class.UNIVERSAL,e.Type.INTEGER,!1,e.integerToDer(3).getBytes()),e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[e.create(e.Class.UNIVERSAL,e.Type.OID,!1,e.oidToDer(l.oids.data).getBytes()),e.create(e.Class.CONTEXT_SPECIFIC,0,!0,[e.create(e.Class.UNIVERSAL,e.Type.OCTETSTRING,!1,e.toDer(fe).getBytes())])]),ae])},h.generateKey=t.pbe.generatePkcs12Key},30422:(M,b,n)=>{var t=n(18659);n(1298),n(17791),n(10279),n(16078),n(88604),n(14957),n(78365),n(74747),n(55911);var e=t.asn1,l=M.exports=t.pkcs7=t.pkcs7||{};function h(F){var V={},D=[];if(!e.validate(F,l.asn1.recipientInfoValidator,V,D)){var U=new Error("Cannot read PKCS#7 RecipientInfo. ASN.1 object is not an PKCS#7 RecipientInfo.");throw U.errors=D,U}return{version:V.version.charCodeAt(0),issuer:t.pki.RDNAttributesAsArray(V.issuer),serialNumber:t.util.createBuffer(V.serial).toHex(),encryptedContent:{algorithm:e.derToOid(V.encAlgorithm),parameter:V.encParameter?V.encParameter.value:void 0,content:V.encKey}}}function r(F){return e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[e.create(e.Class.UNIVERSAL,e.Type.INTEGER,!1,e.integerToDer(F.version).getBytes()),e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[t.pki.distinguishedNameToAsn1({attributes:F.issuer}),e.create(e.Class.UNIVERSAL,e.Type.INTEGER,!1,t.util.hexToBytes(F.serialNumber))]),e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[e.create(e.Class.UNIVERSAL,e.Type.OID,!1,e.oidToDer(F.encryptedContent.algorithm).getBytes()),e.create(e.Class.UNIVERSAL,e.Type.NULL,!1,"")]),e.create(e.Class.UNIVERSAL,e.Type.OCTETSTRING,!1,F.encryptedContent.content)])}function y(F){for(var V=[],D=0;D<F.length;++D)V.push(r(F[D]));return V}function p(F){var V=e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[e.create(e.Class.UNIVERSAL,e.Type.INTEGER,!1,e.integerToDer(F.version).getBytes()),e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[t.pki.distinguishedNameToAsn1({attributes:F.issuer}),e.create(e.Class.UNIVERSAL,e.Type.INTEGER,!1,t.util.hexToBytes(F.serialNumber))]),e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[e.create(e.Class.UNIVERSAL,e.Type.OID,!1,e.oidToDer(F.digestAlgorithm).getBytes()),e.create(e.Class.UNIVERSAL,e.Type.NULL,!1,"")])]);if(F.authenticatedAttributesAsn1&&V.value.push(F.authenticatedAttributesAsn1),V.value.push(e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[e.create(e.Class.UNIVERSAL,e.Type.OID,!1,e.oidToDer(F.signatureAlgorithm).getBytes()),e.create(e.Class.UNIVERSAL,e.Type.NULL,!1,"")])),V.value.push(e.create(e.Class.UNIVERSAL,e.Type.OCTETSTRING,!1,F.signature)),F.unauthenticatedAttributes.length>0){for(var D=e.create(e.Class.CONTEXT_SPECIFIC,1,!0,[]),U=0;U<F.unauthenticatedAttributes.length;++U)D.values.push(N(F.unauthenticatedAttributes[U]));V.value.push(D)}return V}function N(F){var V;if(F.type===t.pki.oids.contentType)V=e.create(e.Class.UNIVERSAL,e.Type.OID,!1,e.oidToDer(F.value).getBytes());else if(F.type===t.pki.oids.messageDigest)V=e.create(e.Class.UNIVERSAL,e.Type.OCTETSTRING,!1,F.value.bytes());else if(F.type===t.pki.oids.signingTime){var D=new Date("1950-01-01T00:00:00Z"),U=new Date("2050-01-01T00:00:00Z"),q=F.value;if("string"==typeof q){var J=Date.parse(q);q=isNaN(J)?13===q.length?e.utcTimeToDate(q):e.generalizedTimeToDate(q):new Date(J)}V=q>=D&&q<U?e.create(e.Class.UNIVERSAL,e.Type.UTCTIME,!1,e.dateToUtcTime(q)):e.create(e.Class.UNIVERSAL,e.Type.GENERALIZEDTIME,!1,e.dateToGeneralizedTime(q))}return e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[e.create(e.Class.UNIVERSAL,e.Type.OID,!1,e.oidToDer(F.type).getBytes()),e.create(e.Class.UNIVERSAL,e.Type.SET,!0,[V])])}function a(F){return[e.create(e.Class.UNIVERSAL,e.Type.OID,!1,e.oidToDer(t.pki.oids.data).getBytes()),e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[e.create(e.Class.UNIVERSAL,e.Type.OID,!1,e.oidToDer(F.algorithm).getBytes()),F.parameter?e.create(e.Class.UNIVERSAL,e.Type.OCTETSTRING,!1,F.parameter.getBytes()):void 0]),e.create(e.Class.CONTEXT_SPECIFIC,0,!0,[e.create(e.Class.UNIVERSAL,e.Type.OCTETSTRING,!1,F.content.getBytes())])]}function O(F,V,D){var U={};if(!e.validate(V,D,U,[])){var J=new Error("Cannot read PKCS#7 message. ASN.1 object is not a supported PKCS#7 message.");throw J.errors=J,J}if(e.derToOid(U.contentType)!==t.pki.oids.data)throw new Error("Unsupported PKCS#7 message. Only wrapped ContentType Data supported.");if(U.encryptedContent){var ie="";if(t.util.isArray(U.encryptedContent))for(var K=0;K<U.encryptedContent.length;++K){if(U.encryptedContent[K].type!==e.Type.OCTETSTRING)throw new Error("Malformed PKCS#7 message, expecting encrypted content constructed of only OCTET STRING objects.");ie+=U.encryptedContent[K].value}else ie=U.encryptedContent;F.encryptedContent={algorithm:e.derToOid(U.encAlgorithm),parameter:t.util.createBuffer(U.encParameter.value),content:t.util.createBuffer(ie)}}if(U.content){if(ie="",t.util.isArray(U.content))for(K=0;K<U.content.length;++K){if(U.content[K].type!==e.Type.OCTETSTRING)throw new Error("Malformed PKCS#7 message, expecting content constructed of only OCTET STRING objects.");ie+=U.content[K].value}else ie=U.content;F.content=t.util.createBuffer(ie)}return F.version=U.version.charCodeAt(0),F.rawCapture=U,U}function H(F){if(void 0===F.encryptedContent.key)throw new Error("Symmetric key not available.");if(void 0===F.content){var V;switch(F.encryptedContent.algorithm){case t.pki.oids["aes128-CBC"]:case t.pki.oids["aes192-CBC"]:case t.pki.oids["aes256-CBC"]:V=t.aes.createDecryptionCipher(F.encryptedContent.key);break;case t.pki.oids.desCBC:case t.pki.oids["des-EDE3-CBC"]:V=t.des.createDecryptionCipher(F.encryptedContent.key);break;default:throw new Error("Unsupported symmetric cipher, OID "+F.encryptedContent.algorithm)}if(V.start(F.encryptedContent.parameter),V.update(F.encryptedContent.content),!V.finish())throw new Error("Symmetric decryption failed.");F.content=V.output}}l.messageFromPem=function(F){var V=t.pem.decode(F)[0];if("PKCS7"!==V.type){var D=new Error('Could not convert PKCS#7 message from PEM; PEM header type is not "PKCS#7".');throw D.headerType=V.type,D}if(V.procType&&"ENCRYPTED"===V.procType.type)throw new Error("Could not convert PKCS#7 message from PEM; PEM is encrypted.");var U=e.fromDer(V.body);return l.messageFromAsn1(U)},l.messageToPem=function(F,V){var D={type:"PKCS7",body:e.toDer(F.toAsn1()).getBytes()};return t.pem.encode(D,{maxline:V})},l.messageFromAsn1=function(F){var V={},D=[];if(!e.validate(F,l.asn1.contentInfoValidator,V,D)){var U=new Error("Cannot read PKCS#7 message. ASN.1 object is not an PKCS#7 ContentInfo.");throw U.errors=D,U}var J,q=e.derToOid(V.contentType);switch(q){case t.pki.oids.envelopedData:J=l.createEnvelopedData();break;case t.pki.oids.encryptedData:J=l.createEncryptedData();break;case t.pki.oids.signedData:J=l.createSignedData();break;default:throw new Error("Cannot read PKCS#7 message. ContentType with OID "+q+" is not (yet) supported.")}return J.fromAsn1(V.content.value[0]),J},l.createSignedData=function(){var F=null;return F={type:t.pki.oids.signedData,version:1,certificates:[],crls:[],signers:[],digestAlgorithmIdentifiers:[],contentInfo:null,signerInfos:[],fromAsn1:function(U){if(O(F,U,l.asn1.signedDataValidator),F.certificates=[],F.crls=[],F.digestAlgorithmIdentifiers=[],F.contentInfo=null,F.signerInfos=[],F.rawCapture.certificates)for(var q=F.rawCapture.certificates.value,J=0;J<q.length;++J)F.certificates.push(t.pki.certificateFromAsn1(q[J]))},toAsn1:function(){F.contentInfo||F.sign();for(var U=[],q=0;q<F.certificates.length;++q)U.push(t.pki.certificateToAsn1(F.certificates[q]));var J=[],G=e.create(e.Class.CONTEXT_SPECIFIC,0,!0,[e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[e.create(e.Class.UNIVERSAL,e.Type.INTEGER,!1,e.integerToDer(F.version).getBytes()),e.create(e.Class.UNIVERSAL,e.Type.SET,!0,F.digestAlgorithmIdentifiers),F.contentInfo])]);return U.length>0&&G.value[0].value.push(e.create(e.Class.CONTEXT_SPECIFIC,0,!0,U)),J.length>0&&G.value[0].value.push(e.create(e.Class.CONTEXT_SPECIFIC,1,!0,J)),G.value[0].value.push(e.create(e.Class.UNIVERSAL,e.Type.SET,!0,F.signerInfos)),e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[e.create(e.Class.UNIVERSAL,e.Type.OID,!1,e.oidToDer(F.type).getBytes()),G])},addSigner:function(U){var q=U.issuer,J=U.serialNumber;if(U.certificate){var G=U.certificate;"string"==typeof G&&(G=t.pki.certificateFromPem(G)),q=G.issuer.attributes,J=G.serialNumber}var ie=U.key;if(!ie)throw new Error("Could not add PKCS#7 signer; no private key specified.");"string"==typeof ie&&(ie=t.pki.privateKeyFromPem(ie));var K=U.digestAlgorithm||t.pki.oids.sha1;switch(K){case t.pki.oids.sha1:case t.pki.oids.sha256:case t.pki.oids.sha384:case t.pki.oids.sha512:case t.pki.oids.md5:break;default:throw new Error("Could not add PKCS#7 signer; unknown message digest algorithm: "+K)}var re=U.authenticatedAttributes||[];if(re.length>0){for(var oe=!1,B=!1,s=0;s<re.length;++s){var _=re[s];if(oe||_.type!==t.pki.oids.contentType){if(B||_.type!==t.pki.oids.messageDigest);else if(B=!0,oe)break}else if(oe=!0,B)break}if(!oe||!B)throw new Error("Invalid signer.authenticatedAttributes. If signer.authenticatedAttributes is specified, then it must contain at least two attributes, PKCS #9 content-type and PKCS #9 message-digest.")}F.signers.push({key:ie,version:1,issuer:q,serialNumber:J,digestAlgorithm:K,signatureAlgorithm:t.pki.oids.rsaEncryption,signature:null,authenticatedAttributes:re,unauthenticatedAttributes:[]})},sign:function(U){var q;if(U=U||{},"object"==typeof F.content&&null!==F.contentInfo||(F.contentInfo=e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[e.create(e.Class.UNIVERSAL,e.Type.OID,!1,e.oidToDer(t.pki.oids.data).getBytes())]),!("content"in F))||(F.content instanceof t.util.ByteBuffer?q=F.content.bytes():"string"==typeof F.content&&(q=t.util.encodeUtf8(F.content)),U.detached?F.detachedContent=e.create(e.Class.UNIVERSAL,e.Type.OCTETSTRING,!1,q):F.contentInfo.value.push(e.create(e.Class.CONTEXT_SPECIFIC,0,!0,[e.create(e.Class.UNIVERSAL,e.Type.OCTETSTRING,!1,q)]))),0!==F.signers.length){var J=function V(){for(var U={},q=0;q<F.signers.length;++q){var J=F.signers[q];(G=J.digestAlgorithm)in U||(U[G]=t.md[t.pki.oids[G]].create()),J.md=0===J.authenticatedAttributes.length?U[G]:t.md[t.pki.oids[G]].create()}for(var G in F.digestAlgorithmIdentifiers=[],U)F.digestAlgorithmIdentifiers.push(e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[e.create(e.Class.UNIVERSAL,e.Type.OID,!1,e.oidToDer(G).getBytes()),e.create(e.Class.UNIVERSAL,e.Type.NULL,!1,"")]));return U}();!function D(U){var q;if(!(q=F.detachedContent?F.detachedContent:(q=F.contentInfo.value[1]).value[0]))throw new Error("Could not sign PKCS#7 message; there is no content to sign.");var J=e.derToOid(F.contentInfo.value[0].value),G=e.toDer(q);for(var ie in G.getByte(),e.getBerValueLength(G),G=G.getBytes(),U)U[ie].start().update(G);for(var K=new Date,re=0;re<F.signers.length;++re){var oe=F.signers[re];if(0===oe.authenticatedAttributes.length){if(J!==t.pki.oids.data)throw new Error("Invalid signer; authenticatedAttributes must be present when the ContentInfo content type is not PKCS#7 Data.")}else{oe.authenticatedAttributesAsn1=e.create(e.Class.CONTEXT_SPECIFIC,0,!0,[]);for(var B=e.create(e.Class.UNIVERSAL,e.Type.SET,!0,[]),s=0;s<oe.authenticatedAttributes.length;++s){var _=oe.authenticatedAttributes[s];_.type===t.pki.oids.messageDigest?_.value=U[oe.digestAlgorithm].digest():_.type===t.pki.oids.signingTime&&(_.value||(_.value=K)),B.value.push(N(_)),oe.authenticatedAttributesAsn1.value.push(N(_))}G=e.toDer(B).getBytes(),oe.md.start().update(G)}oe.signature=oe.key.sign(oe.md,"RSASSA-PKCS1-V1_5")}F.signerInfos=function C(F){for(var V=[],D=0;D<F.length;++D)V.push(p(F[D]));return V}(F.signers)}(J)}},verify:function(){throw new Error("PKCS#7 signature verification not yet implemented.")},addCertificate:function(U){"string"==typeof U&&(U=t.pki.certificateFromPem(U)),F.certificates.push(U)},addCertificateRevokationList:function(U){throw new Error("PKCS#7 CRL support not yet implemented.")}}},l.createEncryptedData=function(){var F=null;return F={type:t.pki.oids.encryptedData,version:0,encryptedContent:{algorithm:t.pki.oids["aes256-CBC"]},fromAsn1:function(V){O(F,V,l.asn1.encryptedDataValidator)},decrypt:function(V){void 0!==V&&(F.encryptedContent.key=V),H(F)}}},l.createEnvelopedData=function(){var F=null;return F={type:t.pki.oids.envelopedData,version:0,recipients:[],encryptedContent:{algorithm:t.pki.oids["aes256-CBC"]},fromAsn1:function(V){var D=O(F,V,l.asn1.envelopedDataValidator);F.recipients=function d(F){for(var V=[],D=0;D<F.length;++D)V.push(h(F[D]));return V}(D.recipientInfos.value)},toAsn1:function(){return e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[e.create(e.Class.UNIVERSAL,e.Type.OID,!1,e.oidToDer(F.type).getBytes()),e.create(e.Class.CONTEXT_SPECIFIC,0,!0,[e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[e.create(e.Class.UNIVERSAL,e.Type.INTEGER,!1,e.integerToDer(F.version).getBytes()),e.create(e.Class.UNIVERSAL,e.Type.SET,!0,y(F.recipients)),e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,a(F.encryptedContent))])])])},findRecipient:function(V){for(var D=V.issuer.attributes,U=0;U<F.recipients.length;++U){var q=F.recipients[U],J=q.issuer;if(q.serialNumber===V.serialNumber&&J.length===D.length){for(var G=!0,ie=0;ie<D.length;++ie)if(J[ie].type!==D[ie].type||J[ie].value!==D[ie].value){G=!1;break}if(G)return q}}return null},decrypt:function(V,D){if(void 0===F.encryptedContent.key&&void 0!==V&&void 0!==D)switch(V.encryptedContent.algorithm){case t.pki.oids.rsaEncryption:case t.pki.oids.desCBC:var U=D.decrypt(V.encryptedContent.content);F.encryptedContent.key=t.util.createBuffer(U);break;default:throw new Error("Unsupported asymmetric cipher, OID "+V.encryptedContent.algorithm)}H(F)},addRecipient:function(V){F.recipients.push({version:0,issuer:V.issuer.attributes,serialNumber:V.serialNumber,encryptedContent:{algorithm:t.pki.oids.rsaEncryption,key:V.publicKey}})},encrypt:function(V,D){if(void 0===F.encryptedContent.content){var U,q,J;switch(V=V||F.encryptedContent.key,D=D||F.encryptedContent.algorithm){case t.pki.oids["aes128-CBC"]:U=16,q=16,J=t.aes.createEncryptionCipher;break;case t.pki.oids["aes192-CBC"]:U=24,q=16,J=t.aes.createEncryptionCipher;break;case t.pki.oids["aes256-CBC"]:U=32,q=16,J=t.aes.createEncryptionCipher;break;case t.pki.oids["des-EDE3-CBC"]:U=24,q=8,J=t.des.createEncryptionCipher;break;default:throw new Error("Unsupported symmetric cipher, OID "+D)}if(void 0===V)V=t.util.createBuffer(t.random.getBytes(U));else if(V.length()!=U)throw new Error("Symmetric key has wrong length; got "+V.length()+" bytes, expected "+U+".");F.encryptedContent.algorithm=D,F.encryptedContent.key=V,F.encryptedContent.parameter=t.util.createBuffer(t.random.getBytes(q));var G=J(V);if(G.start(F.encryptedContent.parameter.copy()),G.update(F.content),!G.finish())throw new Error("Symmetric encryption failed.");F.encryptedContent.content=G.output}for(var ie=0;ie<F.recipients.length;++ie){var K=F.recipients[ie];if(void 0===K.encryptedContent.content){if(K.encryptedContent.algorithm!==t.pki.oids.rsaEncryption)throw new Error("Unsupported asymmetric cipher, OID "+K.encryptedContent.algorithm);K.encryptedContent.content=K.encryptedContent.key.encrypt(F.encryptedContent.key.data)}}}}}},14957:(M,b,n)=>{var t=n(18659);n(17791),n(74747);var e=t.asn1,l=M.exports=t.pkcs7asn1=t.pkcs7asn1||{};t.pkcs7=t.pkcs7||{},t.pkcs7.asn1=l;var h={name:"ContentInfo",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,value:[{name:"ContentInfo.ContentType",tagClass:e.Class.UNIVERSAL,type:e.Type.OID,constructed:!1,capture:"contentType"},{name:"ContentInfo.content",tagClass:e.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,captureAsn1:"content"}]};l.contentInfoValidator=h;var r={name:"EncryptedContentInfo",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedContentInfo.contentType",tagClass:e.Class.UNIVERSAL,type:e.Type.OID,constructed:!1,capture:"contentType"},{name:"EncryptedContentInfo.contentEncryptionAlgorithm",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedContentInfo.contentEncryptionAlgorithm.algorithm",tagClass:e.Class.UNIVERSAL,type:e.Type.OID,constructed:!1,capture:"encAlgorithm"},{name:"EncryptedContentInfo.contentEncryptionAlgorithm.parameter",tagClass:e.Class.UNIVERSAL,captureAsn1:"encParameter"}]},{name:"EncryptedContentInfo.encryptedContent",tagClass:e.Class.CONTEXT_SPECIFIC,type:0,capture:"encryptedContent",captureAsn1:"encryptedContentAsn1"}]};l.envelopedDataValidator={name:"EnvelopedData",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,value:[{name:"EnvelopedData.Version",tagClass:e.Class.UNIVERSAL,type:e.Type.INTEGER,constructed:!1,capture:"version"},{name:"EnvelopedData.RecipientInfos",tagClass:e.Class.UNIVERSAL,type:e.Type.SET,constructed:!0,captureAsn1:"recipientInfos"}].concat(r)},l.encryptedDataValidator={name:"EncryptedData",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedData.Version",tagClass:e.Class.UNIVERSAL,type:e.Type.INTEGER,constructed:!1,capture:"version"}].concat(r)},l.signedDataValidator={name:"SignedData",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,value:[{name:"SignedData.Version",tagClass:e.Class.UNIVERSAL,type:e.Type.INTEGER,constructed:!1,capture:"version"},{name:"SignedData.DigestAlgorithms",tagClass:e.Class.UNIVERSAL,type:e.Type.SET,constructed:!0,captureAsn1:"digestAlgorithms"},h,{name:"SignedData.Certificates",tagClass:e.Class.CONTEXT_SPECIFIC,type:0,optional:!0,captureAsn1:"certificates"},{name:"SignedData.CertificateRevocationLists",tagClass:e.Class.CONTEXT_SPECIFIC,type:1,optional:!0,captureAsn1:"crls"},{name:"SignedData.SignerInfos",tagClass:e.Class.UNIVERSAL,type:e.Type.SET,capture:"signerInfos",optional:!0,value:[{name:"SignerInfo",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.version",tagClass:e.Class.UNIVERSAL,type:e.Type.INTEGER,constructed:!1},{name:"SignerInfo.issuerAndSerialNumber",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.issuerAndSerialNumber.issuer",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,captureAsn1:"issuer"},{name:"SignerInfo.issuerAndSerialNumber.serialNumber",tagClass:e.Class.UNIVERSAL,type:e.Type.INTEGER,constructed:!1,capture:"serial"}]},{name:"SignerInfo.digestAlgorithm",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.digestAlgorithm.algorithm",tagClass:e.Class.UNIVERSAL,type:e.Type.OID,constructed:!1,capture:"digestAlgorithm"},{name:"SignerInfo.digestAlgorithm.parameter",tagClass:e.Class.UNIVERSAL,constructed:!1,captureAsn1:"digestParameter",optional:!0}]},{name:"SignerInfo.authenticatedAttributes",tagClass:e.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,capture:"authenticatedAttributes"},{name:"SignerInfo.digestEncryptionAlgorithm",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,capture:"signatureAlgorithm"},{name:"SignerInfo.encryptedDigest",tagClass:e.Class.UNIVERSAL,type:e.Type.OCTETSTRING,constructed:!1,capture:"signature"},{name:"SignerInfo.unauthenticatedAttributes",tagClass:e.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,optional:!0,capture:"unauthenticatedAttributes"}]}]}]},l.recipientInfoValidator={name:"RecipientInfo",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.version",tagClass:e.Class.UNIVERSAL,type:e.Type.INTEGER,constructed:!1,capture:"version"},{name:"RecipientInfo.issuerAndSerial",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.issuerAndSerial.issuer",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,captureAsn1:"issuer"},{name:"RecipientInfo.issuerAndSerial.serialNumber",tagClass:e.Class.UNIVERSAL,type:e.Type.INTEGER,constructed:!1,capture:"serial"}]},{name:"RecipientInfo.keyEncryptionAlgorithm",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.keyEncryptionAlgorithm.algorithm",tagClass:e.Class.UNIVERSAL,type:e.Type.OID,constructed:!1,capture:"encAlgorithm"},{name:"RecipientInfo.keyEncryptionAlgorithm.parameter",tagClass:e.Class.UNIVERSAL,constructed:!1,captureAsn1:"encParameter",optional:!0}]},{name:"RecipientInfo.encryptedKey",tagClass:e.Class.UNIVERSAL,type:e.Type.OCTETSTRING,constructed:!1,capture:"encKey"}]}},51965:(M,b,n)=>{var t=n(18659);n(17791),n(16078),n(62158),n(88604),n(77620),n(50562),n(27256),n(25517),n(74747),n(55911);var e=t.asn1,l=M.exports=t.pki=t.pki||{};l.pemToDer=function(h){var r=t.pem.decode(h)[0];if(r.procType&&"ENCRYPTED"===r.procType.type)throw new Error("Could not convert PEM to DER; PEM is encrypted.");return t.util.createBuffer(r.body)},l.privateKeyFromPem=function(h){var r=t.pem.decode(h)[0];if("PRIVATE KEY"!==r.type&&"RSA PRIVATE KEY"!==r.type){var d=new Error('Could not convert private key from PEM; PEM header type is not "PRIVATE KEY" or "RSA PRIVATE KEY".');throw d.headerType=r.type,d}if(r.procType&&"ENCRYPTED"===r.procType.type)throw new Error("Could not convert private key from PEM; PEM is encrypted.");var y=e.fromDer(r.body);return l.privateKeyFromAsn1(y)},l.privateKeyToPem=function(h,r){var d={type:"RSA PRIVATE KEY",body:e.toDer(l.privateKeyToAsn1(h)).getBytes()};return t.pem.encode(d,{maxline:r})},l.privateKeyInfoToPem=function(h,r){var d={type:"PRIVATE KEY",body:e.toDer(h).getBytes()};return t.pem.encode(d,{maxline:r})}},69709:(M,b,n)=>{var t=n(18659);n(74747),n(730),n(78365),function(){if(t.prime)M.exports=t.prime;else{var e=M.exports=t.prime=t.prime||{},l=t.jsbn.BigInteger,h=[6,4,2,4,2,4,6,2],r=new l(null);r.fromInt(30);var d=function(a,O){return a|O};e.generateProbablePrime=function(a,O,H){"function"==typeof O&&(H=O,O={});var F=(O=O||{}).algorithm||"PRIMEINC";"string"==typeof F&&(F={name:F}),F.options=F.options||{};var V=O.prng||t.random;if("PRIMEINC"===F.name)return function y(a,O,H,F){return"workers"in H?function f(a,O,H,F){if(typeof Worker>"u")return g(a,O,H,F);var V=C(a,O),D=H.workers,U=H.workLoad||100,q=30*U/8,J=H.workerScript||"forge/prime.worker.js";if(-1===D)return t.util.estimateCores(function(ie,K){ie&&(K=2),D=K-1,G()});function G(){D=Math.max(1,D);for(var ie=[],K=0;K<D;++K)ie[K]=new Worker(J);for(K=0;K<D;++K)ie[K].addEventListener("message",B);var oe=!1;function B(s){if(!oe){var _=s.data;if(_.found){for(var w=0;w<ie.length;++w)ie[w].terminate();return oe=!0,F(null,new l(_.prime,16))}V.bitLength()>a&&(V=C(a,O));var E=V.toString(16);s.target.postMessage({hex:E,workLoad:U}),V.dAddOffset(q,0)}}}G()}(a,O,H,F):g(a,O,H,F)}(a,{nextBytes:function(U){for(var q=V.getBytesSync(U.length),J=0;J<U.length;++J)U[J]=q.charCodeAt(J)}},F.options,H);throw new Error("Invalid prime generation algorithm: "+F.name)}}function g(a,O,H,F){var V=C(a,O),U=function N(a){return a<=100?27:a<=150?18:a<=200?15:a<=250?12:a<=300?9:a<=350?8:a<=400?7:a<=500?6:a<=600?5:a<=800?4:a<=1250?3:2}(V.bitLength());"millerRabinTests"in H&&(U=H.millerRabinTests);var q=10;"maxBlockTime"in H&&(q=H.maxBlockTime),p(V,a,O,0,U,q,F)}function p(a,O,H,F,V,D,U){var q=+new Date;do{if(a.bitLength()>O&&(a=C(O,H)),a.isProbablePrime(V))return U(null,a);a.dAddOffset(h[F++%8],0)}while(D<0||+new Date-q<D);t.util.setImmediate(function(){p(a,O,H,F,V,D,U)})}function C(a,O){var H=new l(a,O),F=a-1;return H.testBit(F)||H.bitwiseTo(l.ONE.shiftLeft(F),d,H),H.dAddOffset(31-H.mod(r).byteValue(),0),H}}()},24473:(M,b,n)=>{var t=n(18659);n(74747);var e=null;t.util.isNodejs&&!t.options.usePureJavaScript&&!process.versions["node-webkit"]&&(e=n(41348)),(M.exports=t.prng=t.prng||{}).create=function(h){for(var r={plugin:h,key:null,seed:null,time:null,reseeds:0,generated:0,keyBytes:""},d=h.md,y=new Array(32),g=0;g<32;++g)y[g]=d.create();function f(){if(r.pools[0].messageLength>=32)return C();r.collect(r.seedFileSync(32-r.pools[0].messageLength<<5)),C()}function C(){r.reseeds=4294967295===r.reseeds?0:r.reseeds+1;var a=r.plugin.md.create();a.update(r.keyBytes);for(var O=1,H=0;H<32;++H)r.reseeds%O==0&&(a.update(r.pools[H].digest().getBytes()),r.pools[H].start()),O<<=1;r.keyBytes=a.digest().getBytes(),a.start(),a.update(r.keyBytes);var F=a.digest().getBytes();r.key=r.plugin.formatKey(r.keyBytes),r.seed=r.plugin.formatSeed(F),r.generated=0}function N(a){var O=null,H=t.util.globalScope,F=H.crypto||H.msCrypto;F&&F.getRandomValues&&(O=function(re){return F.getRandomValues(re)});var V=t.util.createBuffer();if(O)for(;V.length()<a;){var D=Math.max(1,Math.min(a-V.length(),65536)/4),U=new Uint32Array(Math.floor(D));try{O(U);for(var q=0;q<U.length;++q)V.putInt32(U[q])}catch(re){if(!(typeof QuotaExceededError<"u"&&re instanceof QuotaExceededError))throw re}}if(V.length()<a)for(var J,G,ie,K=Math.floor(65536*Math.random());V.length()<a;)for(G=16807*(65535&K),G+=(32767&(J=16807*(K>>16)))<<16,K=4294967295&(G=(2147483647&(G+=J>>15))+(G>>31)),q=0;q<3;++q)ie=K>>>(q<<3),ie^=Math.floor(256*Math.random()),V.putByte(255&ie);return V.getBytes(a)}return r.pools=y,r.pool=0,r.generate=function(a,O){if(!O)return r.generateSync(a);var H=r.plugin.cipher,F=r.plugin.increment,V=r.plugin.formatKey,D=r.plugin.formatSeed,U=t.util.createBuffer();r.key=null,function q(J){if(J)return O(J);if(U.length()>=a)return O(null,U.getBytes(a));if(r.generated>1048575&&(r.key=null),null===r.key)return t.util.nextTick(function(){!function p(a){if(r.pools[0].messageLength>=32)return C(),a();r.seedFile(32-r.pools[0].messageLength<<5,function(H,F){if(H)return a(H);r.collect(F),C(),a()})}(q)});var G=H(r.key,r.seed);r.generated+=G.length,U.putBytes(G),r.key=V(H(r.key,F(r.seed))),r.seed=D(H(r.key,r.seed)),t.util.setImmediate(q)}()},r.generateSync=function(a){var O=r.plugin.cipher,H=r.plugin.increment,F=r.plugin.formatKey,V=r.plugin.formatSeed;r.key=null;for(var D=t.util.createBuffer();D.length()<a;){r.generated>1048575&&(r.key=null),null===r.key&&f();var U=O(r.key,r.seed);r.generated+=U.length,D.putBytes(U),r.key=F(O(r.key,H(r.seed))),r.seed=V(O(r.key,r.seed))}return D.getBytes(a)},e?(r.seedFile=function(a,O){e.randomBytes(a,function(H,F){if(H)return O(H);O(null,F.toString())})},r.seedFileSync=function(a){return e.randomBytes(a).toString()}):(r.seedFile=function(a,O){try{O(null,N(a))}catch(H){O(H)}},r.seedFileSync=N),r.collect=function(a){for(var O=a.length,H=0;H<O;++H)r.pools[r.pool].update(a.substr(H,1)),r.pool=31===r.pool?0:r.pool+1},r.collectInt=function(a,O){for(var H="",F=0;F<O;F+=8)H+=String.fromCharCode(a>>F&255);r.collect(H)},r.registerWorker=function(a){a===self?r.seedFile=function(H,F){self.addEventListener("message",function V(D){var U=D.data;U.forge&&U.forge.prng&&(self.removeEventListener("message",V),F(U.forge.prng.err,U.forge.prng.bytes))}),self.postMessage({forge:{prng:{needed:H}}})}:a.addEventListener("message",function(H){var F=H.data;F.forge&&F.forge.prng&&r.seedFile(F.forge.prng.needed,function(V,D){a.postMessage({forge:{prng:{err:V,bytes:D}}})})})},r}},27256:(M,b,n)=>{var t=n(18659);n(78365),n(74747),(M.exports=t.pss=t.pss||{}).create=function(l){3===arguments.length&&(l={md:arguments[0],mgf:arguments[1],saltLength:arguments[2]});var g,h=l.md,r=l.mgf,d=h.digestLength,y=l.salt||null;if("string"==typeof y&&(y=t.util.createBuffer(y)),"saltLength"in l)g=l.saltLength;else{if(null===y)throw new Error("Salt length not specified or specific salt not given.");g=y.length()}if(null!==y&&y.length()!==g)throw new Error("Given salt length does not match length of given salt.");var p=l.prng||t.random,f={encode:function(C,N){var a,V,O=N-1,H=Math.ceil(O/8),F=C.digest().getBytes();if(H<d+g+2)throw new Error("Message is too long to encrypt.");V=null===y?p.getBytesSync(g):y.bytes();var D=new t.util.ByteBuffer;D.fillWithByte(0,8),D.putBytes(F),D.putBytes(V),h.start(),h.update(D.getBytes());var U=h.digest().getBytes(),q=new t.util.ByteBuffer;q.fillWithByte(0,H-g-d-2),q.putByte(1),q.putBytes(V);var J=q.getBytes(),G=H-d-1,ie=r.generate(U,G),K="";for(a=0;a<G;a++)K+=String.fromCharCode(J.charCodeAt(a)^ie.charCodeAt(a));var re=65280>>8*H-O&255;return(K=String.fromCharCode(K.charCodeAt(0)&~re)+K.substr(1))+U+String.fromCharCode(188)},verify:function(C,N,a){var O,H=a-1,F=Math.ceil(H/8);if(N=N.substr(-F),F<d+g+2)throw new Error("Inconsistent parameters to PSS signature verification.");if(188!==N.charCodeAt(F-1))throw new Error("Encoded message does not end in 0xBC.");var V=F-d-1,D=N.substr(0,V),U=N.substr(V,d),q=65280>>8*F-H&255;if(0!=(D.charCodeAt(0)&q))throw new Error("Bits beyond keysize not zero as expected.");var J=r.generate(U,V),G="";for(O=0;O<V;O++)G+=String.fromCharCode(D.charCodeAt(O)^J.charCodeAt(O));G=String.fromCharCode(G.charCodeAt(0)&~q)+G.substr(1);var ie=F-d-g-2;for(O=0;O<ie;O++)if(0!==G.charCodeAt(O))throw new Error("Leftmost octets not zero as expected");if(1!==G.charCodeAt(ie))throw new Error("Inconsistent PSS signature, 0x01 marker not found");var K=G.substr(-g),re=new t.util.ByteBuffer;return re.fillWithByte(0,8),re.putBytes(C),re.putBytes(K),h.start(),h.update(re.getBytes()),U===h.digest().getBytes()}};return f}},78365:(M,b,n)=>{var t=n(18659);n(1298),n(71594),n(24473),n(74747),t.random&&t.random.getBytes?M.exports=t.random:function(e){var l={},h=new Array(4),r=t.util.createBuffer();function d(){var a=t.prng.create(l);return a.getBytes=function(O,H){return a.generate(O,H)},a.getBytesSync=function(O){return a.generate(O)},a}l.formatKey=function(a){var O=t.util.createBuffer(a);return(a=new Array(4))[0]=O.getInt32(),a[1]=O.getInt32(),a[2]=O.getInt32(),a[3]=O.getInt32(),t.aes._expandKey(a,!1)},l.formatSeed=function(a){var O=t.util.createBuffer(a);return(a=new Array(4))[0]=O.getInt32(),a[1]=O.getInt32(),a[2]=O.getInt32(),a[3]=O.getInt32(),a},l.cipher=function(a,O){return t.aes._updateBlock(a,O,h,!1),r.putInt32(h[0]),r.putInt32(h[1]),r.putInt32(h[2]),r.putInt32(h[3]),r.getBytes()},l.increment=function(a){return++a[3],a},l.md=t.md.sha256;var y=d(),g=null,p=t.util.globalScope,f=p.crypto||p.msCrypto;if(f&&f.getRandomValues&&(g=function(a){return f.getRandomValues(a)}),t.options.usePureJavaScript||!t.util.isNodejs&&!g){if(typeof window>"u"||window,y.collectInt(+new Date,32),typeof navigator<"u"){var C="";for(var N in navigator)try{"string"==typeof navigator[N]&&(C+=navigator[N])}catch{}y.collect(C),C=null}e&&(e().mousemove(function(a){y.collectInt(a.clientX,16),y.collectInt(a.clientY,16)}),e().keypress(function(a){y.collectInt(a.charCode,8)}))}if(t.random)for(var N in y)t.random[N]=y[N];else t.random=y;t.random.createInstance=d,M.exports=t.random}(typeof jQuery<"u"?jQuery:null)},70209:(M,b,n)=>{var t=n(18659);n(74747);var e=[217,120,249,196,25,221,181,237,40,233,253,121,74,160,216,157,198,126,55,131,43,118,83,142,98,76,100,136,68,139,251,162,23,154,89,245,135,179,79,19,97,69,109,141,9,129,125,50,189,143,64,235,134,183,123,11,240,149,33,34,92,107,78,130,84,214,101,147,206,96,178,28,115,86,192,20,167,140,241,220,18,117,202,31,59,190,228,209,66,61,212,48,163,60,182,38,111,191,14,218,70,105,7,87,39,242,29,155,188,148,67,3,248,17,199,246,144,239,62,231,6,195,213,47,200,102,30,215,8,232,234,222,128,82,238,247,132,170,114,172,53,77,106,42,150,26,210,113,90,21,73,116,75,159,208,94,4,24,164,236,194,224,65,110,15,81,203,204,36,145,175,80,161,244,112,57,153,124,58,133,35,184,180,122,252,2,54,91,37,85,151,49,45,93,250,152,227,138,146,174,5,223,41,16,103,108,186,201,211,0,230,207,225,158,168,44,99,22,1,63,88,226,137,169,13,56,52,27,171,51,255,176,187,72,12,95,185,177,205,46,197,243,219,71,229,165,156,119,10,166,32,104,254,127,193,173],l=[1,2,3,5],h=function(y,g){return y<<g&65535|(65535&y)>>16-g},r=function(y,g){return(65535&y)>>g|y<<16-g&65535};M.exports=t.rc2=t.rc2||{},t.rc2.expandKey=function(y,g){"string"==typeof y&&(y=t.util.createBuffer(y)),g=g||128;var O,p=y,f=y.length(),C=g,N=Math.ceil(C/8),a=255>>(7&C);for(O=f;O<128;O++)p.putByte(e[p.at(O-1)+p.at(O-f)&255]);for(p.setAt(128-N,e[p.at(128-N)&a]),O=127-N;O>=0;O--)p.setAt(O,e[p.at(O+1)^p.at(O+N)]);return p};var d=function(y,g,p){var O,H,F,V,f=!1,C=null,N=null,a=null,D=[];for(y=t.rc2.expandKey(y,g),F=0;F<64;F++)D.push(y.getInt16Le());p?(O=function(J){for(F=0;F<4;F++)J[F]+=D[V]+(J[(F+3)%4]&J[(F+2)%4])+(~J[(F+3)%4]&J[(F+1)%4]),J[F]=h(J[F],l[F]),V++},H=function(J){for(F=0;F<4;F++)J[F]+=D[63&J[(F+3)%4]]}):(O=function(J){for(F=3;F>=0;F--)J[F]=r(J[F],l[F]),J[F]-=D[V]+(J[(F+3)%4]&J[(F+2)%4])+(~J[(F+3)%4]&J[(F+1)%4]),V--},H=function(J){for(F=3;F>=0;F--)J[F]-=D[63&J[(F+3)%4]]});var U=function(J){var G=[];for(F=0;F<4;F++){var ie=C.getInt16Le();null!==a&&(p?ie^=a.getInt16Le():a.putInt16Le(ie)),G.push(65535&ie)}V=p?0:63;for(var K=0;K<J.length;K++)for(var re=0;re<J[K][0];re++)J[K][1](G);for(F=0;F<4;F++)null!==a&&(p?a.putInt16Le(G[F]):G[F]^=a.getInt16Le()),N.putInt16Le(G[F])},q=null;return q={start:function(J,G){J&&"string"==typeof J&&(J=t.util.createBuffer(J)),f=!1,C=t.util.createBuffer(),N=G||new t.util.createBuffer,a=J,q.output=N},update:function(J){for(f||C.putBuffer(J);C.length()>=8;)U([[5,O],[1,H],[6,O],[1,H],[5,O]])},finish:function(J){var G=!0;if(p)if(J)G=J(8,C,!p);else{var ie=8===C.length()?8:8-C.length();C.fillWithByte(ie,ie)}if(G&&(f=!0,q.update()),!p&&(G=0===C.length()))if(J)G=J(8,N,!p);else{var K=N.length(),re=N.at(K-1);re>K?G=!1:N.truncate(re)}return G}}};t.rc2.startEncrypting=function(y,g,p){var f=t.rc2.createEncryptionCipher(y,128);return f.start(g,p),f},t.rc2.createEncryptionCipher=function(y,g){return d(y,g,!0)},t.rc2.startDecrypting=function(y,g,p){var f=t.rc2.createDecryptionCipher(y,128);return f.start(g,p),f},t.rc2.createDecryptionCipher=function(y,g){return d(y,g,!1)}},25517:(M,b,n)=>{var t=n(18659);if(n(17791),n(730),n(16078),n(47246),n(69709),n(78365),n(74747),typeof e>"u")var e=t.jsbn.BigInteger;var l=t.util.isNodejs?n(41348):null,h=t.asn1,r=t.util;t.pki=t.pki||{},M.exports=t.pki.rsa=t.rsa=t.rsa||{};var d=t.pki,y=[6,4,2,4,2,4,6,2],g={name:"PrivateKeyInfo",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:h.Class.UNIVERSAL,type:h.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:h.Class.UNIVERSAL,type:h.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:h.Class.UNIVERSAL,type:h.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]},p={name:"RSAPrivateKey",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPrivateKey.version",tagClass:h.Class.UNIVERSAL,type:h.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"RSAPrivateKey.modulus",tagClass:h.Class.UNIVERSAL,type:h.Type.INTEGER,constructed:!1,capture:"privateKeyModulus"},{name:"RSAPrivateKey.publicExponent",tagClass:h.Class.UNIVERSAL,type:h.Type.INTEGER,constructed:!1,capture:"privateKeyPublicExponent"},{name:"RSAPrivateKey.privateExponent",tagClass:h.Class.UNIVERSAL,type:h.Type.INTEGER,constructed:!1,capture:"privateKeyPrivateExponent"},{name:"RSAPrivateKey.prime1",tagClass:h.Class.UNIVERSAL,type:h.Type.INTEGER,constructed:!1,capture:"privateKeyPrime1"},{name:"RSAPrivateKey.prime2",tagClass:h.Class.UNIVERSAL,type:h.Type.INTEGER,constructed:!1,capture:"privateKeyPrime2"},{name:"RSAPrivateKey.exponent1",tagClass:h.Class.UNIVERSAL,type:h.Type.INTEGER,constructed:!1,capture:"privateKeyExponent1"},{name:"RSAPrivateKey.exponent2",tagClass:h.Class.UNIVERSAL,type:h.Type.INTEGER,constructed:!1,capture:"privateKeyExponent2"},{name:"RSAPrivateKey.coefficient",tagClass:h.Class.UNIVERSAL,type:h.Type.INTEGER,constructed:!1,capture:"privateKeyCoefficient"}]},f={name:"RSAPublicKey",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPublicKey.modulus",tagClass:h.Class.UNIVERSAL,type:h.Type.INTEGER,constructed:!1,capture:"publicKeyModulus"},{name:"RSAPublicKey.exponent",tagClass:h.Class.UNIVERSAL,type:h.Type.INTEGER,constructed:!1,capture:"publicKeyExponent"}]},C=t.pki.rsa.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:h.Class.UNIVERSAL,type:h.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{name:"SubjectPublicKeyInfo.subjectPublicKey",tagClass:h.Class.UNIVERSAL,type:h.Type.BITSTRING,constructed:!1,value:[{name:"SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"rsaPublicKey"}]}]},N={name:"DigestInfo",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,value:[{name:"DigestInfo.DigestAlgorithm",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,value:[{name:"DigestInfo.DigestAlgorithm.algorithmIdentifier",tagClass:h.Class.UNIVERSAL,type:h.Type.OID,constructed:!1,capture:"algorithmIdentifier"},{name:"DigestInfo.DigestAlgorithm.parameters",tagClass:h.Class.UNIVERSAL,type:h.Type.NULL,capture:"parameters",optional:!0,constructed:!1}]},{name:"DigestInfo.digest",tagClass:h.Class.UNIVERSAL,type:h.Type.OCTETSTRING,constructed:!1,capture:"digest"}]},a=function(B){if(!(B.algorithm in d.oids)){var _=new Error("Unknown message digest algorithm.");throw _.algorithm=B.algorithm,_}var w=h.oidToDer(d.oids[B.algorithm]).getBytes(),E=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[]),x=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[]);x.value.push(h.create(h.Class.UNIVERSAL,h.Type.OID,!1,w)),x.value.push(h.create(h.Class.UNIVERSAL,h.Type.NULL,!1,""));var j=h.create(h.Class.UNIVERSAL,h.Type.OCTETSTRING,!1,B.digest().getBytes());return E.value.push(x),E.value.push(j),h.toDer(E).getBytes()},O=function(B,s,_){if(_)return B.modPow(s.e,s.n);if(!s.p||!s.q)return B.modPow(s.d,s.n);var w;s.dP||(s.dP=s.d.mod(s.p.subtract(e.ONE))),s.dQ||(s.dQ=s.d.mod(s.q.subtract(e.ONE))),s.qInv||(s.qInv=s.q.modInverse(s.p));do{w=new e(t.util.bytesToHex(t.random.getBytes(s.n.bitLength()/8)),16)}while(w.compareTo(s.n)>=0||!w.gcd(s.n).equals(e.ONE));for(var E=(B=B.multiply(w.modPow(s.e,s.n)).mod(s.n)).mod(s.p).modPow(s.dP,s.p),x=B.mod(s.q).modPow(s.dQ,s.q);E.compareTo(x)<0;)E=E.add(s.p);var j=E.subtract(x).multiply(s.qInv).mod(s.p).multiply(s.q).add(x);return j.multiply(w.modInverse(s.n)).mod(s.n)};function H(B,s,_){var w=t.util.createBuffer(),E=Math.ceil(s.n.bitLength()/8);if(B.length>E-11){var x=new Error("Message is too long for PKCS#1 v1.5 padding.");throw x.length=B.length,x.max=E-11,x}w.putByte(0),w.putByte(_);var $,j=E-3-B.length;if(0===_||1===_){$=0===_?0:255;for(var Y=0;Y<j;++Y)w.putByte($)}else for(;j>0;){var u=0,W=t.random.getBytes(j);for(Y=0;Y<j;++Y)0===($=W.charCodeAt(Y))?++u:w.putByte($);j=u}return w.putByte(0),w.putBytes(B),w}function F(B,s,_,w){var E=Math.ceil(s.n.bitLength()/8),x=t.util.createBuffer(B),j=x.getByte(),$=x.getByte();if(0!==j||_&&0!==$&&1!==$||!_&&2!=$||_&&0===$&&typeof w>"u")throw new Error("Encryption block is invalid.");var Y=0;if(0===$){Y=E-3-w;for(var u=0;u<Y;++u)if(0!==x.getByte())throw new Error("Encryption block is invalid.")}else if(1===$)for(Y=0;x.length()>1;){if(255!==x.getByte()){--x.read;break}++Y}else if(2===$)for(Y=0;x.length()>1;){if(0===x.getByte()){--x.read;break}++Y}if(0!==x.getByte()||Y!==E-3-x.length())throw new Error("Encryption block is invalid.");return x.getBytes()}function V(B,s,_){"function"==typeof s&&(_=s,s={});var w={algorithm:{name:(s=s||{}).algorithm||"PRIMEINC",options:{workers:s.workers||2,workLoad:s.workLoad||100,workerScript:s.workerScript}}};function E(){x(B.pBits,function($,Y){return $?_($):(B.p=Y,null!==B.q?j($,B.q):void x(B.qBits,j))})}function x($,Y){t.prime.generateProbablePrime($,w,Y)}function j($,Y){if($)return _($);if(B.q=Y,B.p.compareTo(B.q)<0){var u=B.p;B.p=B.q,B.q=u}if(0!==B.p.subtract(e.ONE).gcd(B.e).compareTo(e.ONE))return B.p=null,void E();if(0!==B.q.subtract(e.ONE).gcd(B.e).compareTo(e.ONE))return B.q=null,void x(B.qBits,j);if(B.p1=B.p.subtract(e.ONE),B.q1=B.q.subtract(e.ONE),B.phi=B.p1.multiply(B.q1),0!==B.phi.gcd(B.e).compareTo(e.ONE))return B.p=B.q=null,void E();if(B.n=B.p.multiply(B.q),B.n.bitLength()!==B.bits)return B.q=null,void x(B.qBits,j);var W=B.e.modInverse(B.phi);B.keys={privateKey:d.rsa.setPrivateKey(B.n,B.e,W,B.p,B.q,W.mod(B.p1),W.mod(B.q1),B.q.modInverse(B.p)),publicKey:d.rsa.setPublicKey(B.n,B.e)},_(null,B.keys)}"prng"in s&&(w.prng=s.prng),E()}function D(B){var s=B.toString(16);s[0]>="8"&&(s="00"+s);var _=t.util.hexToBytes(s);return _.length>1&&(0===_.charCodeAt(0)&&0==(128&_.charCodeAt(1))||255===_.charCodeAt(0)&&128==(128&_.charCodeAt(1)))?_.substr(1):_}function U(B){return B<=100?27:B<=150?18:B<=200?15:B<=250?12:B<=300?9:B<=350?8:B<=400?7:B<=500?6:B<=600?5:B<=800?4:B<=1250?3:2}function q(B){return t.util.isNodejs&&"function"==typeof l[B]}function J(B){return typeof r.globalScope<"u"&&"object"==typeof r.globalScope.crypto&&"object"==typeof r.globalScope.crypto.subtle&&"function"==typeof r.globalScope.crypto.subtle[B]}function G(B){return typeof r.globalScope<"u"&&"object"==typeof r.globalScope.msCrypto&&"object"==typeof r.globalScope.msCrypto.subtle&&"function"==typeof r.globalScope.msCrypto.subtle[B]}function ie(B){for(var s=t.util.hexToBytes(B.toString(16)),_=new Uint8Array(s.length),w=0;w<s.length;++w)_[w]=s.charCodeAt(w);return _}d.rsa.encrypt=function(B,s,_){var E,w=_,x=Math.ceil(s.n.bitLength()/8);!1!==_&&!0!==_?(w=2===_,E=H(B,s,_)):(E=t.util.createBuffer()).putBytes(B);for(var j=new e(E.toHex(),16),Y=O(j,s,w).toString(16),u=t.util.createBuffer(),W=x-Math.ceil(Y.length/2);W>0;)u.putByte(0),--W;return u.putBytes(t.util.hexToBytes(Y)),u.getBytes()},d.rsa.decrypt=function(B,s,_,w){var E=Math.ceil(s.n.bitLength()/8);if(B.length!==E){var x=new Error("Encrypted message length is invalid.");throw x.length=B.length,x.expected=E,x}var j=new e(t.util.createBuffer(B).toHex(),16);if(j.compareTo(s.n)>=0)throw new Error("Encrypted message is invalid.");for(var Y=O(j,s,_).toString(16),u=t.util.createBuffer(),W=E-Math.ceil(Y.length/2);W>0;)u.putByte(0),--W;return u.putBytes(t.util.hexToBytes(Y)),!1!==w?F(u.getBytes(),s,_):u.getBytes()},d.rsa.createKeyPairGenerationState=function(B,s,_){"string"==typeof B&&(B=parseInt(B,10)),B=B||2048;var j,w=(_=_||{}).prng||t.random,E={nextBytes:function($){for(var Y=w.getBytesSync($.length),u=0;u<$.length;++u)$[u]=Y.charCodeAt(u)}},x=_.algorithm||"PRIMEINC";if("PRIMEINC"!==x)throw new Error("Invalid key generation algorithm: "+x);return(j={algorithm:x,state:0,bits:B,rng:E,eInt:s||65537,e:new e(null),p:null,q:null,qBits:B>>1,pBits:B-(B>>1),pqState:0,num:null,keys:null}).e.fromInt(j.eInt),j},d.rsa.stepKeyPairGenerationState=function(B,s){"algorithm"in B||(B.algorithm="PRIMEINC");var _=new e(null);_.fromInt(30);for(var j,w=0,E=function(fe,ae){return fe|ae},x=+new Date,$=0;null===B.keys&&(s<=0||$<s);){if(0===B.state){var Y=null===B.p?B.pBits:B.qBits,u=Y-1;0===B.pqState?(B.num=new e(Y,B.rng),B.num.testBit(u)||B.num.bitwiseTo(e.ONE.shiftLeft(u),E,B.num),B.num.dAddOffset(31-B.num.mod(_).byteValue(),0),w=0,++B.pqState):1===B.pqState?B.num.bitLength()>Y?B.pqState=0:B.num.isProbablePrime(U(B.num.bitLength()))?++B.pqState:B.num.dAddOffset(y[w++%8],0):2===B.pqState?B.pqState=0===B.num.subtract(e.ONE).gcd(B.e).compareTo(e.ONE)?3:0:3===B.pqState&&(B.pqState=0,null===B.p?B.p=B.num:B.q=B.num,null!==B.p&&null!==B.q&&++B.state,B.num=null)}else if(1===B.state)B.p.compareTo(B.q)<0&&(B.num=B.p,B.p=B.q,B.q=B.num),++B.state;else if(2===B.state)B.p1=B.p.subtract(e.ONE),B.q1=B.q.subtract(e.ONE),B.phi=B.p1.multiply(B.q1),++B.state;else if(3===B.state)0===B.phi.gcd(B.e).compareTo(e.ONE)?++B.state:(B.p=null,B.q=null,B.state=0);else if(4===B.state)B.n=B.p.multiply(B.q),B.n.bitLength()===B.bits?++B.state:(B.q=null,B.state=0);else if(5===B.state){var W=B.e.modInverse(B.phi);B.keys={privateKey:d.rsa.setPrivateKey(B.n,B.e,W,B.p,B.q,W.mod(B.p1),W.mod(B.q1),B.q.modInverse(B.p)),publicKey:d.rsa.setPublicKey(B.n,B.e)}}$+=(j=+new Date)-x,x=j}return null!==B.keys},d.rsa.generateKeyPair=function(B,s,_,w){if(1===arguments.length?"object"==typeof B?(_=B,B=void 0):"function"==typeof B&&(w=B,B=void 0):2===arguments.length?"number"==typeof B?"function"==typeof s?(w=s,s=void 0):"number"!=typeof s&&(_=s,s=void 0):(_=B,w=s,B=void 0,s=void 0):3===arguments.length&&("number"==typeof s?"function"==typeof _&&(w=_,_=void 0):(w=_,_=s,s=void 0)),_=_||{},void 0===B&&(B=_.bits||2048),void 0===s&&(s=_.e||65537),!t.options.usePureJavaScript&&!_.prng&&B>=256&&B<=16384&&(65537===s||3===s))if(w){if(q("generateKeyPair"))return l.generateKeyPair("rsa",{modulusLength:B,publicExponent:s,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}},function($,Y,u){if($)return w($);w(null,{privateKey:d.privateKeyFromPem(u),publicKey:d.publicKeyFromPem(Y)})});if(J("generateKey")&&J("exportKey"))return r.globalScope.crypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:B,publicExponent:ie(s),hash:{name:"SHA-256"}},!0,["sign","verify"]).then(function($){return r.globalScope.crypto.subtle.exportKey("pkcs8",$.privateKey)}).then(void 0,function($){w($)}).then(function($){if($){var Y=d.privateKeyFromAsn1(h.fromDer(t.util.createBuffer($)));w(null,{privateKey:Y,publicKey:d.setRsaPublicKey(Y.n,Y.e)})}});if(G("generateKey")&&G("exportKey")){var E=r.globalScope.msCrypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:B,publicExponent:ie(s),hash:{name:"SHA-256"}},!0,["sign","verify"]);return E.oncomplete=function($){var u=r.globalScope.msCrypto.subtle.exportKey("pkcs8",$.target.result.privateKey);u.oncomplete=function(W){var ae=d.privateKeyFromAsn1(h.fromDer(t.util.createBuffer(W.target.result)));w(null,{privateKey:ae,publicKey:d.setRsaPublicKey(ae.n,ae.e)})},u.onerror=function(W){w(W)}},void(E.onerror=function($){w($)})}}else if(q("generateKeyPairSync")){var x=l.generateKeyPairSync("rsa",{modulusLength:B,publicExponent:s,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}});return{privateKey:d.privateKeyFromPem(x.privateKey),publicKey:d.publicKeyFromPem(x.publicKey)}}var j=d.rsa.createKeyPairGenerationState(B,s,_);if(!w)return d.rsa.stepKeyPairGenerationState(j,0),j.keys;V(j,_,w)},d.setRsaPublicKey=d.rsa.setPublicKey=function(B,s){var _={n:B,e:s,encrypt:function(w,E,x){if("string"==typeof E?E=E.toUpperCase():void 0===E&&(E="RSAES-PKCS1-V1_5"),"RSAES-PKCS1-V1_5"===E)E={encode:function($,Y,u){return H($,Y,2).getBytes()}};else if("RSA-OAEP"===E||"RSAES-OAEP"===E)E={encode:function($,Y){return t.pkcs1.encode_rsa_oaep(Y,$,x)}};else if(-1!==["RAW","NONE","NULL",null].indexOf(E))E={encode:function($){return $}};else if("string"==typeof E)throw new Error('Unsupported encryption scheme: "'+E+'".');var j=E.encode(w,_,!0);return d.rsa.encrypt(j,_,!0)},verify:function(w,E,x,j){"string"==typeof x?x=x.toUpperCase():void 0===x&&(x="RSASSA-PKCS1-V1_5"),void 0===j&&(j={_parseAllDigestBytes:!0}),"_parseAllDigestBytes"in j||(j._parseAllDigestBytes=!0),"RSASSA-PKCS1-V1_5"===x?x={verify:function(Y,u){u=F(u,_,!0);var W=h.fromDer(u,{parseAllBytes:j._parseAllDigestBytes}),fe={},ae=[];if(!h.validate(W,N,fe,ae))throw(ye=new Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value.")).errors=ae,ye;var ye,Qe=h.derToOid(fe.algorithmIdentifier);if(Qe!==t.oids.md2&&Qe!==t.oids.md5&&Qe!==t.oids.sha1&&Qe!==t.oids.sha224&&Qe!==t.oids.sha256&&Qe!==t.oids.sha384&&Qe!==t.oids.sha512&&Qe!==t.oids["sha512-224"]&&Qe!==t.oids["sha512-256"])throw(ye=new Error("Unknown RSASSA-PKCS1-v1_5 DigestAlgorithm identifier.")).oid=Qe,ye;if((Qe===t.oids.md2||Qe===t.oids.md5)&&!("parameters"in fe))throw new Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value. Missing algorithm identifer NULL parameters.");return Y===fe.digest}}:("NONE"===x||"NULL"===x||null===x)&&(x={verify:function(Y,u){return Y===F(u,_,!0)}});var $=d.rsa.decrypt(E,_,!0,!1);return x.verify(w,$,_.n.bitLength())}};return _},d.setRsaPrivateKey=d.rsa.setPrivateKey=function(B,s,_,w,E,x,j,$){var Y={n:B,e:s,d:_,p:w,q:E,dP:x,dQ:j,qInv:$,decrypt:function(u,W,fe){"string"==typeof W?W=W.toUpperCase():void 0===W&&(W="RSAES-PKCS1-V1_5");var ae=d.rsa.decrypt(u,Y,!1,!1);if("RSAES-PKCS1-V1_5"===W)W={decode:F};else if("RSA-OAEP"===W||"RSAES-OAEP"===W)W={decode:function(ye,Qe){return t.pkcs1.decode_rsa_oaep(Qe,ye,fe)}};else{if(-1===["RAW","NONE","NULL",null].indexOf(W))throw new Error('Unsupported encryption scheme: "'+W+'".');W={decode:function(ye){return ye}}}return W.decode(ae,Y,!1)},sign:function(u,W){var fe=!1;"string"==typeof W&&(W=W.toUpperCase()),void 0===W||"RSASSA-PKCS1-V1_5"===W?(W={encode:a},fe=1):("NONE"===W||"NULL"===W||null===W)&&(W={encode:function(){return u}},fe=1);var ae=W.encode(u,Y.n.bitLength());return d.rsa.encrypt(ae,Y,fe)}};return Y},d.wrapRsaPrivateKey=function(B){return h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.INTEGER,!1,h.integerToDer(0).getBytes()),h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(d.oids.rsaEncryption).getBytes()),h.create(h.Class.UNIVERSAL,h.Type.NULL,!1,"")]),h.create(h.Class.UNIVERSAL,h.Type.OCTETSTRING,!1,h.toDer(B).getBytes())])},d.privateKeyFromAsn1=function(B){var E,x,j,$,Y,u,W,fe,s={},_=[];if(h.validate(B,g,s,_)&&(B=h.fromDer(t.util.createBuffer(s.privateKey))),!h.validate(B,p,s={},_=[])){var w=new Error("Cannot read private key. ASN.1 object does not contain an RSAPrivateKey.");throw w.errors=_,w}return E=t.util.createBuffer(s.privateKeyModulus).toHex(),x=t.util.createBuffer(s.privateKeyPublicExponent).toHex(),j=t.util.createBuffer(s.privateKeyPrivateExponent).toHex(),$=t.util.createBuffer(s.privateKeyPrime1).toHex(),Y=t.util.createBuffer(s.privateKeyPrime2).toHex(),u=t.util.createBuffer(s.privateKeyExponent1).toHex(),W=t.util.createBuffer(s.privateKeyExponent2).toHex(),fe=t.util.createBuffer(s.privateKeyCoefficient).toHex(),d.setRsaPrivateKey(new e(E,16),new e(x,16),new e(j,16),new e($,16),new e(Y,16),new e(u,16),new e(W,16),new e(fe,16))},d.privateKeyToAsn1=d.privateKeyToRSAPrivateKey=function(B){return h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.INTEGER,!1,h.integerToDer(0).getBytes()),h.create(h.Class.UNIVERSAL,h.Type.INTEGER,!1,D(B.n)),h.create(h.Class.UNIVERSAL,h.Type.INTEGER,!1,D(B.e)),h.create(h.Class.UNIVERSAL,h.Type.INTEGER,!1,D(B.d)),h.create(h.Class.UNIVERSAL,h.Type.INTEGER,!1,D(B.p)),h.create(h.Class.UNIVERSAL,h.Type.INTEGER,!1,D(B.q)),h.create(h.Class.UNIVERSAL,h.Type.INTEGER,!1,D(B.dP)),h.create(h.Class.UNIVERSAL,h.Type.INTEGER,!1,D(B.dQ)),h.create(h.Class.UNIVERSAL,h.Type.INTEGER,!1,D(B.qInv))])},d.publicKeyFromAsn1=function(B){var s={},_=[];if(h.validate(B,C,s,_)){var E,w=h.derToOid(s.publicKeyOid);if(w!==d.oids.rsaEncryption)throw(E=new Error("Cannot read public key. Unknown OID.")).oid=w,E;B=s.rsaPublicKey}if(!h.validate(B,f,s,_=[]))throw(E=new Error("Cannot read public key. ASN.1 object does not contain an RSAPublicKey.")).errors=_,E;var x=t.util.createBuffer(s.publicKeyModulus).toHex(),j=t.util.createBuffer(s.publicKeyExponent).toHex();return d.setRsaPublicKey(new e(x,16),new e(j,16))},d.publicKeyToAsn1=d.publicKeyToSubjectPublicKeyInfo=function(B){return h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(d.oids.rsaEncryption).getBytes()),h.create(h.Class.UNIVERSAL,h.Type.NULL,!1,"")]),h.create(h.Class.UNIVERSAL,h.Type.BITSTRING,!1,[d.publicKeyToRSAPublicKey(B)])])},d.publicKeyToRSAPublicKey=function(B){return h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.INTEGER,!1,D(B.n)),h.create(h.Class.UNIVERSAL,h.Type.INTEGER,!1,D(B.e))])}},47690:(M,b,n)=>{var t=n(18659);n(90979),n(74747);var e=M.exports=t.sha1=t.sha1||{};t.md.sha1=t.md.algorithms.sha1=e,e.create=function(){h||function r(){l=String.fromCharCode(128),l+=t.util.fillString(String.fromCharCode(0),64),h=!0}();var y=null,g=t.util.createBuffer(),p=new Array(80),f={algorithm:"sha1",blockLength:64,digestLength:20,messageLength:0,fullMessageLength:null,messageLengthSize:8,start:function(){f.messageLength=0,f.fullMessageLength=f.messageLength64=[];for(var C=f.messageLengthSize/4,N=0;N<C;++N)f.fullMessageLength.push(0);return g=t.util.createBuffer(),y={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878,h4:3285377520},f}};return f.start(),f.update=function(C,N){"utf8"===N&&(C=t.util.encodeUtf8(C));var a=C.length;f.messageLength+=a,a=[a/4294967296>>>0,a>>>0];for(var O=f.fullMessageLength.length-1;O>=0;--O)f.fullMessageLength[O]+=a[1],a[1]=a[0]+(f.fullMessageLength[O]/4294967296>>>0),f.fullMessageLength[O]=f.fullMessageLength[O]>>>0,a[0]=a[1]/4294967296>>>0;return g.putBytes(C),d(y,p,g),(g.read>2048||0===g.length())&&g.compact(),f},f.digest=function(){var C=t.util.createBuffer();C.putBytes(g.bytes()),C.putBytes(l.substr(0,f.blockLength-(f.fullMessageLength[f.fullMessageLength.length-1]+f.messageLengthSize&f.blockLength-1)));for(var O,F=8*f.fullMessageLength[0],V=0;V<f.fullMessageLength.length-1;++V)C.putInt32((F+=(O=8*f.fullMessageLength[V+1])/4294967296>>>0)>>>0),F=O>>>0;C.putInt32(F);var D={h0:y.h0,h1:y.h1,h2:y.h2,h3:y.h3,h4:y.h4};d(D,p,C);var U=t.util.createBuffer();return U.putInt32(D.h0),U.putInt32(D.h1),U.putInt32(D.h2),U.putInt32(D.h3),U.putInt32(D.h4),U},f};var l=null,h=!1;function d(y,g,p){for(var f,C,N,a,O,H,V,D=p.length();D>=64;){for(C=y.h0,N=y.h1,a=y.h2,O=y.h3,H=y.h4,V=0;V<16;++V)f=p.getInt32(),g[V]=f,f=(C<<5|C>>>27)+(O^N&(a^O))+H+1518500249+f,H=O,O=a,a=(N<<30|N>>>2)>>>0,N=C,C=f;for(;V<20;++V)g[V]=f=(f=g[V-3]^g[V-8]^g[V-14]^g[V-16])<<1|f>>>31,f=(C<<5|C>>>27)+(O^N&(a^O))+H+1518500249+f,H=O,O=a,a=(N<<30|N>>>2)>>>0,N=C,C=f;for(;V<32;++V)g[V]=f=(f=g[V-3]^g[V-8]^g[V-14]^g[V-16])<<1|f>>>31,f=(C<<5|C>>>27)+(N^a^O)+H+1859775393+f,H=O,O=a,a=(N<<30|N>>>2)>>>0,N=C,C=f;for(;V<40;++V)g[V]=f=(f=g[V-6]^g[V-16]^g[V-28]^g[V-32])<<2|f>>>30,f=(C<<5|C>>>27)+(N^a^O)+H+1859775393+f,H=O,O=a,a=(N<<30|N>>>2)>>>0,N=C,C=f;for(;V<60;++V)g[V]=f=(f=g[V-6]^g[V-16]^g[V-28]^g[V-32])<<2|f>>>30,f=(C<<5|C>>>27)+(N&a|O&(N^a))+H+2400959708+f,H=O,O=a,a=(N<<30|N>>>2)>>>0,N=C,C=f;for(;V<80;++V)g[V]=f=(f=g[V-6]^g[V-16]^g[V-28]^g[V-32])<<2|f>>>30,f=(C<<5|C>>>27)+(N^a^O)+H+3395469782+f,H=O,O=a,a=(N<<30|N>>>2)>>>0,N=C,C=f;y.h0=y.h0+C|0,y.h1=y.h1+N|0,y.h2=y.h2+a|0,y.h3=y.h3+O|0,y.h4=y.h4+H|0,D-=64}}},71594:(M,b,n)=>{var t=n(18659);n(90979),n(74747);var e=M.exports=t.sha256=t.sha256||{};t.md.sha256=t.md.algorithms.sha256=e,e.create=function(){h||function d(){l=String.fromCharCode(128),l+=t.util.fillString(String.fromCharCode(0),64),r=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],h=!0}();var g=null,p=t.util.createBuffer(),f=new Array(64),C={algorithm:"sha256",blockLength:64,digestLength:32,messageLength:0,fullMessageLength:null,messageLengthSize:8,start:function(){C.messageLength=0,C.fullMessageLength=C.messageLength64=[];for(var N=C.messageLengthSize/4,a=0;a<N;++a)C.fullMessageLength.push(0);return p=t.util.createBuffer(),g={h0:1779033703,h1:3144134277,h2:1013904242,h3:2773480762,h4:1359893119,h5:2600822924,h6:528734635,h7:1541459225},C}};return C.start(),C.update=function(N,a){"utf8"===a&&(N=t.util.encodeUtf8(N));var O=N.length;C.messageLength+=O,O=[O/4294967296>>>0,O>>>0];for(var H=C.fullMessageLength.length-1;H>=0;--H)C.fullMessageLength[H]+=O[1],O[1]=O[0]+(C.fullMessageLength[H]/4294967296>>>0),C.fullMessageLength[H]=C.fullMessageLength[H]>>>0,O[0]=O[1]/4294967296>>>0;return p.putBytes(N),y(g,f,p),(p.read>2048||0===p.length())&&p.compact(),C},C.digest=function(){var N=t.util.createBuffer();N.putBytes(p.bytes()),N.putBytes(l.substr(0,C.blockLength-(C.fullMessageLength[C.fullMessageLength.length-1]+C.messageLengthSize&C.blockLength-1)));for(var H,V=8*C.fullMessageLength[0],D=0;D<C.fullMessageLength.length-1;++D)N.putInt32((V+=(H=8*C.fullMessageLength[D+1])/4294967296>>>0)>>>0),V=H>>>0;N.putInt32(V);var U={h0:g.h0,h1:g.h1,h2:g.h2,h3:g.h3,h4:g.h4,h5:g.h5,h6:g.h6,h7:g.h7};y(U,f,N);var q=t.util.createBuffer();return q.putInt32(U.h0),q.putInt32(U.h1),q.putInt32(U.h2),q.putInt32(U.h3),q.putInt32(U.h4),q.putInt32(U.h5),q.putInt32(U.h6),q.putInt32(U.h7),q},C};var l=null,h=!1,r=null;function y(g,p,f){for(var C,N,F,V,D,U,q,J,G,ie,K,re,oe=f.length();oe>=64;){for(V=0;V<16;++V)p[V]=f.getInt32();for(;V<64;++V)p[V]=(C=((C=p[V-2])>>>17|C<<15)^(C>>>19|C<<13)^C>>>10)+p[V-7]+(N=((N=p[V-15])>>>7|N<<25)^(N>>>18|N<<14)^N>>>3)+p[V-16]|0;for(D=g.h0,U=g.h1,q=g.h2,J=g.h3,G=g.h4,ie=g.h5,K=g.h6,re=g.h7,V=0;V<64;++V)F=D&U|q&(D^U),C=re+((G>>>6|G<<26)^(G>>>11|G<<21)^(G>>>25|G<<7))+(K^G&(ie^K))+r[V]+p[V],re=K,K=ie,ie=G,G=J+C>>>0,J=q,q=U,U=D,D=C+(N=((D>>>2|D<<30)^(D>>>13|D<<19)^(D>>>22|D<<10))+F)>>>0;g.h0=g.h0+D|0,g.h1=g.h1+U|0,g.h2=g.h2+q|0,g.h3=g.h3+J|0,g.h4=g.h4+G|0,g.h5=g.h5+ie|0,g.h6=g.h6+K|0,g.h7=g.h7+re|0,oe-=64}}},18985:(M,b,n)=>{var t=n(18659);n(90979),n(74747);var e=M.exports=t.sha512=t.sha512||{};t.md.sha512=t.md.algorithms.sha512=e;var l=t.sha384=t.sha512.sha384=t.sha512.sha384||{};l.create=function(){return e.create("SHA-384")},t.md.sha384=t.md.algorithms.sha384=l,t.sha512.sha256=t.sha512.sha256||{create:function(){return e.create("SHA-512/256")}},t.md["sha512/256"]=t.md.algorithms["sha512/256"]=t.sha512.sha256,t.sha512.sha224=t.sha512.sha224||{create:function(){return e.create("SHA-512/224")}},t.md["sha512/224"]=t.md.algorithms["sha512/224"]=t.sha512.sha224,e.create=function(f){if(r||function g(){h=String.fromCharCode(128),h+=t.util.fillString(String.fromCharCode(0),128),d=[[1116352408,3609767458],[1899447441,602891725],[3049323471,3964484399],[3921009573,2173295548],[961987163,4081628472],[1508970993,3053834265],[2453635748,2937671579],[2870763221,3664609560],[3624381080,2734883394],[310598401,1164996542],[607225278,1323610764],[1426881987,3590304994],[1925078388,4068182383],[2162078206,991336113],[2614888103,633803317],[3248222580,3479774868],[3835390401,2666613458],[4022224774,944711139],[264347078,2341262773],[604807628,2007800933],[770255983,1495990901],[1249150122,1856431235],[1555081692,3175218132],[1996064986,2198950837],[2554220882,3999719339],[2821834349,766784016],[2952996808,2566594879],[3210313671,3203337956],[3336571891,1034457026],[3584528711,2466948901],[113926993,3758326383],[338241895,168717936],[666307205,1188179964],[773529912,1546045734],[1294757372,1522805485],[1396182291,2643833823],[1695183700,2343527390],[1986661051,1014477480],[2177026350,1206759142],[2456956037,344077627],[2730485921,1290863460],[2820302411,3158454273],[3259730800,3505952657],[3345764771,106217008],[3516065817,3606008344],[3600352804,1432725776],[4094571909,1467031594],[275423344,851169720],[430227734,3100823752],[506948616,1363258195],[659060556,3750685593],[883997877,3785050280],[958139571,3318307427],[1322822218,3812723403],[1537002063,2003034995],[1747873779,3602036899],[1955562222,1575990012],[2024104815,1125592928],[2227730452,2716904306],[2361852424,442776044],[2428436474,593698344],[2756734187,3733110249],[3204031479,2999351573],[3329325298,3815920427],[3391569614,3928383900],[3515267271,566280711],[3940187606,3454069534],[4118630271,4000239992],[116418474,1914138554],[174292421,2731055270],[289380356,3203993006],[460393269,320620315],[685471733,587496836],[852142971,1086792851],[1017036298,365543100],[1126000580,2618297676],[1288033470,3409855158],[1501505948,4234509866],[1607167915,987167468],[1816402316,1246189591]],(y={})["SHA-512"]=[[1779033703,4089235720],[3144134277,2227873595],[1013904242,4271175723],[2773480762,1595750129],[1359893119,2917565137],[2600822924,725511199],[528734635,4215389547],[1541459225,327033209]],y["SHA-384"]=[[3418070365,3238371032],[1654270250,914150663],[2438529370,812702999],[355462360,4144912697],[1731405415,4290775857],[2394180231,1750603025],[3675008525,1694076839],[1203062813,3204075428]],y["SHA-512/256"]=[[573645204,4230739756],[2673172387,3360449730],[596883563,1867755857],[2520282905,1497426621],[2519219938,2827943907],[3193839141,1401305490],[721525244,746961066],[246885852,2177182882]],y["SHA-512/224"]=[[2352822216,424955298],[1944164710,2312950998],[502970286,855612546],[1738396948,1479516111],[258812777,2077511080],[2011393907,79989058],[1067287976,1780299464],[286451373,2446758561]],r=!0}(),typeof f>"u"&&(f="SHA-512"),!(f in y))throw new Error("Invalid SHA-512 algorithm: "+f);for(var C=y[f],N=null,a=t.util.createBuffer(),O=new Array(80),H=0;H<80;++H)O[H]=new Array(2);var F=64;switch(f){case"SHA-384":F=48;break;case"SHA-512/256":F=32;break;case"SHA-512/224":F=28}var V={algorithm:f.replace("-","").toLowerCase(),blockLength:128,digestLength:F,messageLength:0,fullMessageLength:null,messageLengthSize:16,start:function(){V.messageLength=0,V.fullMessageLength=V.messageLength128=[];for(var D=V.messageLengthSize/4,U=0;U<D;++U)V.fullMessageLength.push(0);for(a=t.util.createBuffer(),N=new Array(C.length),U=0;U<C.length;++U)N[U]=C[U].slice(0);return V}};return V.start(),V.update=function(D,U){"utf8"===U&&(D=t.util.encodeUtf8(D));var q=D.length;V.messageLength+=q,q=[q/4294967296>>>0,q>>>0];for(var J=V.fullMessageLength.length-1;J>=0;--J)V.fullMessageLength[J]+=q[1],q[1]=q[0]+(V.fullMessageLength[J]/4294967296>>>0),V.fullMessageLength[J]=V.fullMessageLength[J]>>>0,q[0]=q[1]/4294967296>>>0;return a.putBytes(D),p(N,O,a),(a.read>2048||0===a.length())&&a.compact(),V},V.digest=function(){var D=t.util.createBuffer();D.putBytes(a.bytes()),D.putBytes(h.substr(0,V.blockLength-(V.fullMessageLength[V.fullMessageLength.length-1]+V.messageLengthSize&V.blockLength-1)));for(var J,ie=8*V.fullMessageLength[0],K=0;K<V.fullMessageLength.length-1;++K)D.putInt32((ie+=(J=8*V.fullMessageLength[K+1])/4294967296>>>0)>>>0),ie=J>>>0;D.putInt32(ie);var re=new Array(N.length);for(K=0;K<N.length;++K)re[K]=N[K].slice(0);p(re,O,D);var B,oe=t.util.createBuffer();for(B="SHA-512"===f?re.length:"SHA-384"===f?re.length-2:re.length-4,K=0;K<B;++K)oe.putInt32(re[K][0]),(K!==B-1||"SHA-512/224"!==f)&&oe.putInt32(re[K][1]);return oe},V};var h=null,r=!1,d=null,y=null;function p(f,C,N){for(var a,O,H,F,re,oe,B,s,_,w,E,x,j,$,Y,u,W,fe,ae,ye,Qe,Ot,At,Ze,at,Be,Lt,_e=N.length();_e>=128;){for(Qe=0;Qe<16;++Qe)C[Qe][0]=N.getInt32()>>>0,C[Qe][1]=N.getInt32()>>>0;for(;Qe<80;++Qe)O=(((Ot=(Ze=C[Qe-2])[0])<<13|(At=Ze[1])>>>19)^(At<<3|Ot>>>29)^(Ot<<26|At>>>6))>>>0,C[Qe][0]=(a=((Ot>>>19|At<<13)^(At>>>29|Ot<<3)^Ot>>>6)>>>0)+(at=C[Qe-7])[0]+(H=(((Ot=(Be=C[Qe-15])[0])>>>1|(At=Be[1])<<31)^(Ot>>>8|At<<24)^Ot>>>7)>>>0)+(Lt=C[Qe-16])[0]+((At=O+at[1]+(F=((Ot<<31|At>>>1)^(Ot<<24|At>>>8)^(Ot<<25|At>>>7))>>>0)+Lt[1])/4294967296>>>0)>>>0,C[Qe][1]=At>>>0;for(re=f[0][0],oe=f[0][1],B=f[1][0],s=f[1][1],_=f[2][0],w=f[2][1],E=f[3][0],x=f[3][1],j=f[4][0],$=f[4][1],Y=f[5][0],u=f[5][1],W=f[6][0],fe=f[6][1],ae=f[7][0],ye=f[7][1],Qe=0;Qe<80;++Qe)a=ae+(((j>>>14|$<<18)^(j>>>18|$<<14)^($>>>9|j<<23))>>>0)+((W^j&(Y^W))>>>0)+d[Qe][0]+C[Qe][0]+((At=ye+(((j<<18|$>>>14)^(j<<14|$>>>18)^($<<23|j>>>9))>>>0)+((fe^$&(u^fe))>>>0)+d[Qe][1]+C[Qe][1])/4294967296>>>0)>>>0,O=At>>>0,H=(((re>>>28|oe<<4)^(oe>>>2|re<<30)^(oe>>>7|re<<25))>>>0)+((re&B|_&(re^B))>>>0)+((At=(((re<<4|oe>>>28)^(oe<<30|re>>>2)^(oe<<25|re>>>7))>>>0)+((oe&s|w&(oe^s))>>>0))/4294967296>>>0)>>>0,F=At>>>0,ae=W,ye=fe,W=Y,fe=u,Y=j,u=$,j=E+a+((At=x+O)/4294967296>>>0)>>>0,$=At>>>0,E=_,x=w,_=B,w=s,B=re,s=oe,re=a+H+((At=O+F)/4294967296>>>0)>>>0,oe=At>>>0;f[0][0]=f[0][0]+re+((At=f[0][1]+oe)/4294967296>>>0)>>>0,f[0][1]=At>>>0,f[1][0]=f[1][0]+B+((At=f[1][1]+s)/4294967296>>>0)>>>0,f[1][1]=At>>>0,f[2][0]=f[2][0]+_+((At=f[2][1]+w)/4294967296>>>0)>>>0,f[2][1]=At>>>0,f[3][0]=f[3][0]+E+((At=f[3][1]+x)/4294967296>>>0)>>>0,f[3][1]=At>>>0,f[4][0]=f[4][0]+j+((At=f[4][1]+$)/4294967296>>>0)>>>0,f[4][1]=At>>>0,f[5][0]=f[5][0]+Y+((At=f[5][1]+u)/4294967296>>>0)>>>0,f[5][1]=At>>>0,f[6][0]=f[6][0]+W+((At=f[6][1]+fe)/4294967296>>>0)>>>0,f[6][1]=At>>>0,f[7][0]=f[7][0]+ae+((At=f[7][1]+ye)/4294967296>>>0)>>>0,f[7][1]=At>>>0,_e-=128}}},61015:(M,b,n)=>{var t=n(18659);n(1298),n(39032),n(32687),n(47690),n(74747);var e=M.exports=t.ssh=t.ssh||{};function l(d,y){var g=y.toString(16);g[0]>="8"&&(g="00"+g);var p=t.util.hexToBytes(g);d.putInt32(p.length),d.putBytes(p)}function h(d,y){d.putInt32(y.length),d.putString(y)}function r(){for(var d=t.md.sha1.create(),y=arguments.length,g=0;g<y;++g)d.update(arguments[g]);return d.digest()}e.privateKeyToPutty=function(d,y,g){var p="ssh-rsa",f=""===(y=y||"")?"none":"aes256-cbc",C="PuTTY-User-Key-File-2: "+p+"\r\n";C+="Encryption: "+f+"\r\n",C+="Comment: "+(g=g||"")+"\r\n";var N=t.util.createBuffer();h(N,p),l(N,d.e),l(N,d.n);var a=t.util.encode64(N.bytes(),64),O=Math.floor(a.length/66)+1;C+="Public-Lines: "+O+"\r\n",C+=a;var F,H=t.util.createBuffer();if(l(H,d.d),l(H,d.p),l(H,d.q),l(H,d.qInv),y){var V=H.length()+16-1;V-=V%16;var D=r(H.bytes());D.truncate(D.length()-V+H.length()),H.putBuffer(D);var U=t.util.createBuffer();U.putBuffer(r("\0\0\0\0",y)),U.putBuffer(r("\0\0\0\x01",y));var q=t.aes.createEncryptionCipher(U.truncate(8),"CBC");q.start(t.util.createBuffer().fillWithByte(0,16)),q.update(H.copy()),q.finish();var J=q.output;J.truncate(16),F=t.util.encode64(J.bytes(),64)}else F=t.util.encode64(H.bytes(),64);C+="\r\nPrivate-Lines: "+(O=Math.floor(F.length/66)+1)+"\r\n",C+=F;var G=r("putty-private-key-file-mac-key",y),ie=t.util.createBuffer();h(ie,p),h(ie,f),h(ie,g),ie.putInt32(N.length()),ie.putBuffer(N),ie.putInt32(H.length()),ie.putBuffer(H);var K=t.hmac.create();return K.start("sha1",G),K.update(ie.bytes()),C+"\r\nPrivate-MAC: "+K.digest().toHex()+"\r\n"},e.publicKeyToOpenSSH=function(d,y){var g="ssh-rsa";y=y||"";var p=t.util.createBuffer();return h(p,g),l(p,d.e),l(p,d.n),g+" "+t.util.encode64(p.bytes())+" "+y},e.privateKeyToOpenSSH=function(d,y){return y?t.pki.encryptRsaPrivateKey(d,y,{legacy:!0,algorithm:"aes128"}):t.pki.privateKeyToPem(d)},e.getPublicKeyFingerprint=function(d,y){var g=(y=y||{}).md||t.md.md5.create(),f=t.util.createBuffer();h(f,"ssh-rsa"),l(f,d.e),l(f,d.n),g.start(),g.update(f.getBytes());var C=g.digest();if("hex"===y.encoding){var N=C.toHex();return y.delimiter?N.match(/.{2}/g).join(y.delimiter):N}if("binary"===y.encoding)return C.getBytes();if(y.encoding)throw new Error('Unknown encoding "'+y.encoding+'".');return C}},82266:(M,b,n)=>{var t=n(18659);n(17791),n(39032),n(32687),n(88604),n(51965),n(78365),n(47690),n(74747);var e=function(_e,ne,be,Te){var $e=t.util.createBuffer(),ft=_e.length>>1,Ge=ft+(1&_e.length),Ft=_e.substr(0,Ge),br=_e.substr(ft,Ge),rt=t.util.createBuffer(),st=t.hmac.create();be=ne+be;var Dt=Math.ceil(Te/16),ot=Math.ceil(Te/20);st.start("MD5",Ft);var nt=t.util.createBuffer();rt.putBytes(be);for(var Yt=0;Yt<Dt;++Yt)st.start(null,null),st.update(rt.getBytes()),rt.putBuffer(st.digest()),st.start(null,null),st.update(rt.bytes()+be),nt.putBuffer(st.digest());st.start("SHA1",br);var Ne=t.util.createBuffer();for(rt.clear(),rt.putBytes(be),Yt=0;Yt<ot;++Yt)st.start(null,null),st.update(rt.getBytes()),rt.putBuffer(st.digest()),st.start(null,null),st.update(rt.bytes()+be),Ne.putBuffer(st.digest());return $e.putBytes(t.util.xorBytes(nt.getBytes(),Ne.getBytes(),Te)),$e},r=function(_e,ne,be){var Te=!1;try{var $e=_e.deflate(ne.fragment.getBytes());ne.fragment=t.util.createBuffer($e),ne.length=$e.length,Te=!0}catch{}return Te},d=function(_e,ne,be){var Te=!1;try{var $e=_e.inflate(ne.fragment.getBytes());ne.fragment=t.util.createBuffer($e),ne.length=$e.length,Te=!0}catch{}return Te},y=function(_e,ne){var be=0;switch(ne){case 1:be=_e.getByte();break;case 2:be=_e.getInt16();break;case 3:be=_e.getInt24();break;case 4:be=_e.getInt32()}return t.util.createBuffer(_e.getBytes(be))},g=function(_e,ne,be){_e.putInt(be.length(),ne<<3),_e.putBuffer(be)},p={Versions:{TLS_1_0:{major:3,minor:1},TLS_1_1:{major:3,minor:2},TLS_1_2:{major:3,minor:3}}};p.SupportedVersions=[p.Versions.TLS_1_1,p.Versions.TLS_1_0],p.Version=p.SupportedVersions[0],p.MaxFragment=15360,p.ConnectionEnd={server:0,client:1},p.PRFAlgorithm={tls_prf_sha256:0},p.BulkCipherAlgorithm={none:null,rc4:0,des3:1,aes:2},p.CipherType={stream:0,block:1,aead:2},p.MACAlgorithm={none:null,hmac_md5:0,hmac_sha1:1,hmac_sha256:2,hmac_sha384:3,hmac_sha512:4},p.CompressionMethod={none:0,deflate:1},p.ContentType={change_cipher_spec:20,alert:21,handshake:22,application_data:23,heartbeat:24},p.HandshakeType={hello_request:0,client_hello:1,server_hello:2,certificate:11,server_key_exchange:12,certificate_request:13,server_hello_done:14,certificate_verify:15,client_key_exchange:16,finished:20},p.Alert={},p.Alert.Level={warning:1,fatal:2},p.Alert.Description={close_notify:0,unexpected_message:10,bad_record_mac:20,decryption_failed:21,record_overflow:22,decompression_failure:30,handshake_failure:40,bad_certificate:42,unsupported_certificate:43,certificate_revoked:44,certificate_expired:45,certificate_unknown:46,illegal_parameter:47,unknown_ca:48,access_denied:49,decode_error:50,decrypt_error:51,export_restriction:60,protocol_version:70,insufficient_security:71,internal_error:80,user_canceled:90,no_renegotiation:100},p.HeartbeatMessageType={heartbeat_request:1,heartbeat_response:2},p.CipherSuites={},p.getCipherSuite=function(_e){var ne=null;for(var be in p.CipherSuites){var Te=p.CipherSuites[be];if(Te.id[0]===_e.charCodeAt(0)&&Te.id[1]===_e.charCodeAt(1)){ne=Te;break}}return ne},p.handleUnexpected=function(_e,ne){!_e.open&&_e.entity===p.ConnectionEnd.client||_e.error(_e,{message:"Unexpected message. Received TLS record out of order.",send:!0,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.unexpected_message}})},p.handleHelloRequest=function(_e,ne,be){!_e.handshaking&&_e.handshakes>0&&(p.queue(_e,p.createAlert(_e,{level:p.Alert.Level.warning,description:p.Alert.Description.no_renegotiation})),p.flush(_e)),_e.process()},p.parseHelloMessage=function(_e,ne,be){var Te=null,$e=_e.entity===p.ConnectionEnd.client;if(be<38)_e.error(_e,{message:$e?"Invalid ServerHello message. Message too short.":"Invalid ClientHello message. Message too short.",send:!0,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.illegal_parameter}});else{var ft=ne.fragment,Ge=ft.length();if(Te={version:{major:ft.getByte(),minor:ft.getByte()},random:t.util.createBuffer(ft.getBytes(32)),session_id:y(ft,1),extensions:[]},$e?(Te.cipher_suite=ft.getBytes(2),Te.compression_method=ft.getByte()):(Te.cipher_suites=y(ft,2),Te.compression_methods=y(ft,1)),(Ge=be-(Ge-ft.length()))>0){for(var Ft=y(ft,2);Ft.length()>0;)Te.extensions.push({type:[Ft.getByte(),Ft.getByte()],data:y(Ft,2)});if(!$e)for(var br=0;br<Te.extensions.length;++br){var rt=Te.extensions[br];if(0===rt.type[0]&&0===rt.type[1])for(var st=y(rt.data,2);st.length()>0&&0===st.getByte();)_e.session.extensions.server_name.serverNameList.push(y(st,2).getBytes())}}if(_e.session.version&&(Te.version.major!==_e.session.version.major||Te.version.minor!==_e.session.version.minor))return _e.error(_e,{message:"TLS version change is disallowed during renegotiation.",send:!0,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.protocol_version}});if($e)_e.session.cipherSuite=p.getCipherSuite(Te.cipher_suite);else for(var ot=t.util.createBuffer(Te.cipher_suites.bytes());ot.length()>0&&(_e.session.cipherSuite=p.getCipherSuite(ot.getBytes(2)),null===_e.session.cipherSuite););if(null===_e.session.cipherSuite)return _e.error(_e,{message:"No cipher suites in common.",send:!0,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.handshake_failure},cipherSuite:t.util.bytesToHex(Te.cipher_suite)});_e.session.compressionMethod=$e?Te.compression_method:p.CompressionMethod.none}return Te},p.createSecurityParameters=function(_e,ne){var be=_e.entity===p.ConnectionEnd.client,Te=ne.random.bytes(),$e=be?_e.session.sp.client_random:Te,ft=be?Te:p.createRandom().getBytes();_e.session.sp={entity:_e.entity,prf_algorithm:p.PRFAlgorithm.tls_prf_sha256,bulk_cipher_algorithm:null,cipher_type:null,enc_key_length:null,block_length:null,fixed_iv_length:null,record_iv_length:null,mac_algorithm:null,mac_length:null,mac_key_length:null,compression_algorithm:_e.session.compressionMethod,pre_master_secret:null,master_secret:null,client_random:$e,server_random:ft}},p.handleServerHello=function(_e,ne,be){var Te=p.parseHelloMessage(_e,ne,be);if(!_e.fail){if(!(Te.version.minor<=_e.version.minor))return _e.error(_e,{message:"Incompatible TLS version.",send:!0,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.protocol_version}});_e.version.minor=Te.version.minor,_e.session.version=_e.version;var $e=Te.session_id.bytes();$e.length>0&&$e===_e.session.id?(_e.expect=H,_e.session.resuming=!0,_e.session.sp.server_random=Te.random.bytes()):(_e.expect=C,_e.session.resuming=!1,p.createSecurityParameters(_e,Te)),_e.session.id=$e,_e.process()}},p.handleClientHello=function(_e,ne,be){var Te=p.parseHelloMessage(_e,ne,be);if(!_e.fail){var $e=Te.session_id.bytes(),ft=null;if(_e.sessionCache&&(null===(ft=_e.sessionCache.getSession($e))?$e="":(ft.version.major!==Te.version.major||ft.version.minor>Te.version.minor)&&(ft=null,$e="")),0===$e.length&&($e=t.random.getBytes(32)),_e.session.id=$e,_e.session.clientHelloVersion=Te.version,_e.session.sp={},ft)_e.version=_e.session.version=ft.version,_e.session.sp=ft.sp;else{for(var Ge,Ft=1;Ft<p.SupportedVersions.length&&!((Ge=p.SupportedVersions[Ft]).minor<=Te.version.minor);++Ft);_e.version={major:Ge.major,minor:Ge.minor},_e.session.version=_e.version}null!==ft?(_e.expect=ie,_e.session.resuming=!0,_e.session.sp.client_random=Te.random.bytes()):(_e.expect=!1!==_e.verifyClient?q:J,_e.session.resuming=!1,p.createSecurityParameters(_e,Te)),_e.open=!0,p.queue(_e,p.createRecord(_e,{type:p.ContentType.handshake,data:p.createServerHello(_e)})),_e.session.resuming?(p.queue(_e,p.createRecord(_e,{type:p.ContentType.change_cipher_spec,data:p.createChangeCipherSpec()})),_e.state.pending=p.createConnectionState(_e),_e.state.current.write=_e.state.pending.write,p.queue(_e,p.createRecord(_e,{type:p.ContentType.handshake,data:p.createFinished(_e)}))):(p.queue(_e,p.createRecord(_e,{type:p.ContentType.handshake,data:p.createCertificate(_e)})),_e.fail||(p.queue(_e,p.createRecord(_e,{type:p.ContentType.handshake,data:p.createServerKeyExchange(_e)})),!1!==_e.verifyClient&&p.queue(_e,p.createRecord(_e,{type:p.ContentType.handshake,data:p.createCertificateRequest(_e)})),p.queue(_e,p.createRecord(_e,{type:p.ContentType.handshake,data:p.createServerHelloDone(_e)})))),p.flush(_e),_e.process()}},p.handleCertificate=function(_e,ne,be){if(be<3)return _e.error(_e,{message:"Invalid Certificate message. Message too short.",send:!0,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.illegal_parameter}});var ft,Ge,$e={certificate_list:y(ne.fragment,3)},Ft=[];try{for(;$e.certificate_list.length()>0;)ft=y($e.certificate_list,3),Ge=t.asn1.fromDer(ft),ft=t.pki.certificateFromAsn1(Ge,!0),Ft.push(ft)}catch(rt){return _e.error(_e,{message:"Could not parse certificate list.",cause:rt,send:!0,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.bad_certificate}})}var br=_e.entity===p.ConnectionEnd.client;!br&&!0!==_e.verifyClient||0!==Ft.length?0===Ft.length?_e.expect=br?N:J:(br?_e.session.serverCertificate=Ft[0]:_e.session.clientCertificate=Ft[0],p.verifyCertificateChain(_e,Ft)&&(_e.expect=br?N:J)):_e.error(_e,{message:br?"No server certificate provided.":"No client certificate provided.",send:!0,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.illegal_parameter}}),_e.process()},p.handleServerKeyExchange=function(_e,ne,be){if(be>0)return _e.error(_e,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.unsupported_certificate}});_e.expect=a,_e.process()},p.handleClientKeyExchange=function(_e,ne,be){if(be<48)return _e.error(_e,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.unsupported_certificate}});var $e={enc_pre_master_secret:y(ne.fragment,2).getBytes()},ft=null;if(_e.getPrivateKey)try{ft=_e.getPrivateKey(_e,_e.session.serverCertificate),ft=t.pki.privateKeyFromPem(ft)}catch(br){_e.error(_e,{message:"Could not get private key.",cause:br,send:!0,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.internal_error}})}if(null===ft)return _e.error(_e,{message:"No private key set.",send:!0,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.internal_error}});try{var Ge=_e.session.sp;Ge.pre_master_secret=ft.decrypt($e.enc_pre_master_secret);var Ft=_e.session.clientHelloVersion;if(Ft.major!==Ge.pre_master_secret.charCodeAt(0)||Ft.minor!==Ge.pre_master_secret.charCodeAt(1))throw new Error("TLS version rollback attack detected.")}catch{Ge.pre_master_secret=t.random.getBytes(48)}_e.expect=ie,null!==_e.session.clientCertificate&&(_e.expect=G),_e.process()},p.handleCertificateRequest=function(_e,ne,be){if(be<3)return _e.error(_e,{message:"Invalid CertificateRequest. Message too short.",send:!0,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.illegal_parameter}});var Te=ne.fragment,$e={certificate_types:y(Te,1),certificate_authorities:y(Te,2)};_e.session.certificateRequest=$e,_e.expect=O,_e.process()},p.handleCertificateVerify=function(_e,ne,be){if(be<2)return _e.error(_e,{message:"Invalid CertificateVerify. Message too short.",send:!0,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.illegal_parameter}});var Te=ne.fragment;Te.read-=4;var $e=Te.bytes();Te.read+=4;var ft={signature:y(Te,2).getBytes()},Ge=t.util.createBuffer();Ge.putBuffer(_e.session.md5.digest()),Ge.putBuffer(_e.session.sha1.digest()),Ge=Ge.getBytes();try{if(!_e.session.clientCertificate.publicKey.verify(Ge,ft.signature,"NONE"))throw new Error("CertificateVerify signature does not match.");_e.session.md5.update($e),_e.session.sha1.update($e)}catch{return _e.error(_e,{message:"Bad signature in CertificateVerify.",send:!0,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.handshake_failure}})}_e.expect=ie,_e.process()},p.handleServerHelloDone=function(_e,ne,be){if(be>0)return _e.error(_e,{message:"Invalid ServerHelloDone message. Invalid length.",send:!0,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.record_overflow}});if(null===_e.serverCertificate){var Te={message:"No server certificate provided. Not enough security.",send:!0,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.insufficient_security}},ft=_e.verify(_e,Te.alert.description,0,[]);if(!0!==ft)return(ft||0===ft)&&("object"!=typeof ft||t.util.isArray(ft)?"number"==typeof ft&&(Te.alert.description=ft):(ft.message&&(Te.message=ft.message),ft.alert&&(Te.alert.description=ft.alert))),_e.error(_e,Te)}null!==_e.session.certificateRequest&&(ne=p.createRecord(_e,{type:p.ContentType.handshake,data:p.createCertificate(_e)}),p.queue(_e,ne)),ne=p.createRecord(_e,{type:p.ContentType.handshake,data:p.createClientKeyExchange(_e)}),p.queue(_e,ne),_e.expect=D;var Ge=function(Ft,br){null!==Ft.session.certificateRequest&&null!==Ft.session.clientCertificate&&p.queue(Ft,p.createRecord(Ft,{type:p.ContentType.handshake,data:p.createCertificateVerify(Ft,br)})),p.queue(Ft,p.createRecord(Ft,{type:p.ContentType.change_cipher_spec,data:p.createChangeCipherSpec()})),Ft.state.pending=p.createConnectionState(Ft),Ft.state.current.write=Ft.state.pending.write,p.queue(Ft,p.createRecord(Ft,{type:p.ContentType.handshake,data:p.createFinished(Ft)})),Ft.expect=H,p.flush(Ft),Ft.process()};if(null===_e.session.certificateRequest||null===_e.session.clientCertificate)return Ge(_e,null);p.getClientSignature(_e,Ge)},p.handleChangeCipherSpec=function(_e,ne){if(1!==ne.fragment.getByte())return _e.error(_e,{message:"Invalid ChangeCipherSpec message received.",send:!0,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.illegal_parameter}});var be=_e.entity===p.ConnectionEnd.client;(_e.session.resuming&&be||!_e.session.resuming&&!be)&&(_e.state.pending=p.createConnectionState(_e)),_e.state.current.read=_e.state.pending.read,(!_e.session.resuming&&be||_e.session.resuming&&!be)&&(_e.state.pending=null),_e.expect=be?F:K,_e.process()},p.handleFinished=function(_e,ne,be){var Te=ne.fragment;Te.read-=4;var $e=Te.bytes();Te.read+=4;var ft=ne.fragment.getBytes();(Te=t.util.createBuffer()).putBuffer(_e.session.md5.digest()),Te.putBuffer(_e.session.sha1.digest());var Ge=_e.entity===p.ConnectionEnd.client;if((Te=e(_e.session.sp.master_secret,Ge?"server finished":"client finished",Te.getBytes(),12)).getBytes()!==ft)return _e.error(_e,{message:"Invalid verify_data in Finished message.",send:!0,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.decrypt_error}});_e.session.md5.update($e),_e.session.sha1.update($e),(_e.session.resuming&&Ge||!_e.session.resuming&&!Ge)&&(p.queue(_e,p.createRecord(_e,{type:p.ContentType.change_cipher_spec,data:p.createChangeCipherSpec()})),_e.state.current.write=_e.state.pending.write,_e.state.pending=null,p.queue(_e,p.createRecord(_e,{type:p.ContentType.handshake,data:p.createFinished(_e)}))),_e.expect=Ge?V:re,_e.handshaking=!1,++_e.handshakes,_e.peerCertificate=Ge?_e.session.serverCertificate:_e.session.clientCertificate,p.flush(_e),_e.isConnected=!0,_e.connected(_e),_e.process()},p.handleAlert=function(_e,ne){var $e,be=ne.fragment,Te={level:be.getByte(),description:be.getByte()};switch(Te.description){case p.Alert.Description.close_notify:$e="Connection closed.";break;case p.Alert.Description.unexpected_message:$e="Unexpected message.";break;case p.Alert.Description.bad_record_mac:$e="Bad record MAC.";break;case p.Alert.Description.decryption_failed:$e="Decryption failed.";break;case p.Alert.Description.record_overflow:$e="Record overflow.";break;case p.Alert.Description.decompression_failure:$e="Decompression failed.";break;case p.Alert.Description.handshake_failure:$e="Handshake failure.";break;case p.Alert.Description.bad_certificate:$e="Bad certificate.";break;case p.Alert.Description.unsupported_certificate:$e="Unsupported certificate.";break;case p.Alert.Description.certificate_revoked:$e="Certificate revoked.";break;case p.Alert.Description.certificate_expired:$e="Certificate expired.";break;case p.Alert.Description.certificate_unknown:$e="Certificate unknown.";break;case p.Alert.Description.illegal_parameter:$e="Illegal parameter.";break;case p.Alert.Description.unknown_ca:$e="Unknown certificate authority.";break;case p.Alert.Description.access_denied:$e="Access denied.";break;case p.Alert.Description.decode_error:$e="Decode error.";break;case p.Alert.Description.decrypt_error:$e="Decrypt error.";break;case p.Alert.Description.export_restriction:$e="Export restriction.";break;case p.Alert.Description.protocol_version:$e="Unsupported protocol version.";break;case p.Alert.Description.insufficient_security:$e="Insufficient security.";break;case p.Alert.Description.internal_error:$e="Internal error.";break;case p.Alert.Description.user_canceled:$e="User canceled.";break;case p.Alert.Description.no_renegotiation:$e="Renegotiation not supported.";break;default:$e="Unknown error."}if(Te.description===p.Alert.Description.close_notify)return _e.close();_e.error(_e,{message:$e,send:!1,origin:_e.entity===p.ConnectionEnd.client?"server":"client",alert:Te}),_e.process()},p.handleHandshake=function(_e,ne){var be=ne.fragment,Te=be.getByte(),$e=be.getInt24();if($e>be.length())return _e.fragmented=ne,ne.fragment=t.util.createBuffer(),be.read-=4,_e.process();_e.fragmented=null,be.read-=4;var ft=be.bytes($e+4);be.read+=4,Te in Qe[_e.entity][_e.expect]?(_e.entity===p.ConnectionEnd.server&&!_e.open&&!_e.fail&&(_e.handshaking=!0,_e.session={version:null,extensions:{server_name:{serverNameList:[]}},cipherSuite:null,compressionMethod:null,serverCertificate:null,clientCertificate:null,md5:t.md.md5.create(),sha1:t.md.sha1.create()}),Te!==p.HandshakeType.hello_request&&Te!==p.HandshakeType.certificate_verify&&Te!==p.HandshakeType.finished&&(_e.session.md5.update(ft),_e.session.sha1.update(ft)),Qe[_e.entity][_e.expect][Te](_e,ne,$e)):p.handleUnexpected(_e,ne)},p.handleApplicationData=function(_e,ne){_e.data.putBuffer(ne.fragment),_e.dataReady(_e),_e.process()},p.handleHeartbeat=function(_e,ne){var be=ne.fragment,Te=be.getByte(),$e=be.getInt16(),ft=be.getBytes($e);if(Te===p.HeartbeatMessageType.heartbeat_request){if(_e.handshaking||$e>ft.length)return _e.process();p.queue(_e,p.createRecord(_e,{type:p.ContentType.heartbeat,data:p.createHeartbeat(p.HeartbeatMessageType.heartbeat_response,ft)})),p.flush(_e)}else if(Te===p.HeartbeatMessageType.heartbeat_response){if(ft!==_e.expectedHeartbeatPayload)return _e.process();_e.heartbeatReceived&&_e.heartbeatReceived(_e,t.util.createBuffer(ft))}_e.process()};var C=1,N=2,a=3,O=4,H=5,F=6,V=7,D=8,q=1,J=2,G=3,ie=4,K=5,re=6,B=p.handleUnexpected,s=p.handleChangeCipherSpec,_=p.handleAlert,w=p.handleHandshake,E=p.handleApplicationData,x=p.handleHeartbeat,j=[];j[p.ConnectionEnd.client]=[[B,_,w,B,x],[B,_,w,B,x],[B,_,w,B,x],[B,_,w,B,x],[B,_,w,B,x],[s,_,B,B,x],[B,_,w,B,x],[B,_,w,E,x],[B,_,w,B,x]],j[p.ConnectionEnd.server]=[[B,_,w,B,x],[B,_,w,B,x],[B,_,w,B,x],[B,_,w,B,x],[s,_,B,B,x],[B,_,w,B,x],[B,_,w,E,x],[B,_,w,B,x]];var $=p.handleHelloRequest,u=p.handleCertificate,W=p.handleServerKeyExchange,fe=p.handleCertificateRequest,ae=p.handleServerHelloDone,ye=p.handleFinished,Qe=[];Qe[p.ConnectionEnd.client]=[[B,B,p.handleServerHello,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B],[$,B,B,B,B,B,B,B,B,B,B,u,W,fe,ae,B,B,B,B,B,B],[$,B,B,B,B,B,B,B,B,B,B,B,W,fe,ae,B,B,B,B,B,B],[$,B,B,B,B,B,B,B,B,B,B,B,B,fe,ae,B,B,B,B,B,B],[$,B,B,B,B,B,B,B,B,B,B,B,B,B,ae,B,B,B,B,B,B],[$,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B],[$,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,ye],[$,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B],[$,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B]],Qe[p.ConnectionEnd.server]=[[B,p.handleClientHello,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B],[B,B,B,B,B,B,B,B,B,B,B,u,B,B,B,B,B,B,B,B,B],[B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,p.handleClientKeyExchange,B,B,B,B],[B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,p.handleCertificateVerify,B,B,B,B,B],[B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B],[B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,ye],[B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B],[B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B]],p.generateKeys=function(_e,ne){var be=e,Te=ne.client_random+ne.server_random;_e.session.resuming||(ne.master_secret=be(ne.pre_master_secret,"master secret",Te,48).bytes(),ne.pre_master_secret=null);var $e=2*ne.mac_key_length+2*ne.enc_key_length,ft=_e.version.major===p.Versions.TLS_1_0.major&&_e.version.minor===p.Versions.TLS_1_0.minor;ft&&($e+=2*ne.fixed_iv_length);var Ge=be(ne.master_secret,"key expansion",Te=ne.server_random+ne.client_random,$e),Ft={client_write_MAC_key:Ge.getBytes(ne.mac_key_length),server_write_MAC_key:Ge.getBytes(ne.mac_key_length),client_write_key:Ge.getBytes(ne.enc_key_length),server_write_key:Ge.getBytes(ne.enc_key_length)};return ft&&(Ft.client_write_IV=Ge.getBytes(ne.fixed_iv_length),Ft.server_write_IV=Ge.getBytes(ne.fixed_iv_length)),Ft},p.createConnectionState=function(_e){var ne=_e.entity===p.ConnectionEnd.client,be=function(){var ft={sequenceNumber:[0,0],macKey:null,macLength:0,macFunction:null,cipherState:null,cipherFunction:function(Ge){return!0},compressionState:null,compressFunction:function(Ge){return!0},updateSequenceNumber:function(){4294967295===ft.sequenceNumber[1]?(ft.sequenceNumber[1]=0,++ft.sequenceNumber[0]):++ft.sequenceNumber[1]}};return ft},Te={read:be(),write:be()};if(Te.read.update=function(ft,Ge){return Te.read.cipherFunction(Ge,Te.read)?Te.read.compressFunction(ft,Ge,Te.read)||ft.error(ft,{message:"Could not decompress record.",send:!0,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.decompression_failure}}):ft.error(ft,{message:"Could not decrypt record or bad MAC.",send:!0,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.bad_record_mac}}),!ft.fail},Te.write.update=function(ft,Ge){return Te.write.compressFunction(ft,Ge,Te.write)?Te.write.cipherFunction(Ge,Te.write)||ft.error(ft,{message:"Could not encrypt record.",send:!1,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.internal_error}}):ft.error(ft,{message:"Could not compress record.",send:!1,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.internal_error}}),!ft.fail},_e.session){var $e=_e.session.sp;switch(_e.session.cipherSuite.initSecurityParameters($e),$e.keys=p.generateKeys(_e,$e),Te.read.macKey=ne?$e.keys.server_write_MAC_key:$e.keys.client_write_MAC_key,Te.write.macKey=ne?$e.keys.client_write_MAC_key:$e.keys.server_write_MAC_key,_e.session.cipherSuite.initConnectionState(Te,_e,$e),$e.compression_algorithm){case p.CompressionMethod.none:break;case p.CompressionMethod.deflate:Te.read.compressFunction=d,Te.write.compressFunction=r;break;default:throw new Error("Unsupported compression algorithm.")}}return Te},p.createRandom=function(){var _e=new Date,ne=+_e+6e4*_e.getTimezoneOffset(),be=t.util.createBuffer();return be.putInt32(ne),be.putBytes(t.random.getBytes(28)),be},p.createRecord=function(_e,ne){return ne.data?{type:ne.type,version:{major:_e.version.major,minor:_e.version.minor},length:ne.data.length(),fragment:ne.data}:null},p.createAlert=function(_e,ne){var be=t.util.createBuffer();return be.putByte(ne.level),be.putByte(ne.description),p.createRecord(_e,{type:p.ContentType.alert,data:be})},p.createClientHello=function(_e){_e.session.clientHelloVersion={major:_e.version.major,minor:_e.version.minor};for(var ne=t.util.createBuffer(),be=0;be<_e.cipherSuites.length;++be){var Te=_e.cipherSuites[be];ne.putByte(Te.id[0]),ne.putByte(Te.id[1])}var $e=ne.length(),ft=t.util.createBuffer();ft.putByte(p.CompressionMethod.none);var Ge=ft.length(),Ft=t.util.createBuffer();if(_e.virtualHost){var br=t.util.createBuffer();br.putByte(0),br.putByte(0);var rt=t.util.createBuffer();rt.putByte(0),g(rt,2,t.util.createBuffer(_e.virtualHost));var st=t.util.createBuffer();g(st,2,rt),g(br,2,st),Ft.putBuffer(br)}var Dt=Ft.length();Dt>0&&(Dt+=2);var ot=_e.session.id,nt=ot.length+1+2+4+28+2+$e+1+Ge+Dt,Yt=t.util.createBuffer();return Yt.putByte(p.HandshakeType.client_hello),Yt.putInt24(nt),Yt.putByte(_e.version.major),Yt.putByte(_e.version.minor),Yt.putBytes(_e.session.sp.client_random),g(Yt,1,t.util.createBuffer(ot)),g(Yt,2,ne),g(Yt,1,ft),Dt>0&&g(Yt,2,Ft),Yt},p.createServerHello=function(_e){var ne=_e.session.id,be=ne.length+1+2+4+28+2+1,Te=t.util.createBuffer();return Te.putByte(p.HandshakeType.server_hello),Te.putInt24(be),Te.putByte(_e.version.major),Te.putByte(_e.version.minor),Te.putBytes(_e.session.sp.server_random),g(Te,1,t.util.createBuffer(ne)),Te.putByte(_e.session.cipherSuite.id[0]),Te.putByte(_e.session.cipherSuite.id[1]),Te.putByte(_e.session.compressionMethod),Te},p.createCertificate=function(_e){var ne=_e.entity===p.ConnectionEnd.client,be=null;_e.getCertificate&&(be=_e.getCertificate(_e,ne?_e.session.certificateRequest:_e.session.extensions.server_name.serverNameList));var $e=t.util.createBuffer();if(null!==be)try{t.util.isArray(be)||(be=[be]);for(var ft=null,Ge=0;Ge<be.length;++Ge){var Ft=t.pem.decode(be[Ge])[0];if("CERTIFICATE"!==Ft.type&&"X509 CERTIFICATE"!==Ft.type&&"TRUSTED CERTIFICATE"!==Ft.type){var br=new Error('Could not convert certificate from PEM; PEM header type is not "CERTIFICATE", "X509 CERTIFICATE", or "TRUSTED CERTIFICATE".');throw br.headerType=Ft.type,br}if(Ft.procType&&"ENCRYPTED"===Ft.procType.type)throw new Error("Could not convert certificate from PEM; PEM is encrypted.");var rt=t.util.createBuffer(Ft.body);null===ft&&(ft=t.asn1.fromDer(rt.bytes(),!1));var st=t.util.createBuffer();g(st,3,rt),$e.putBuffer(st)}be=t.pki.certificateFromAsn1(ft),ne?_e.session.clientCertificate=be:_e.session.serverCertificate=be}catch(nt){return _e.error(_e,{message:"Could not send certificate list.",cause:nt,send:!0,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.bad_certificate}})}var Dt=3+$e.length(),ot=t.util.createBuffer();return ot.putByte(p.HandshakeType.certificate),ot.putInt24(Dt),g(ot,3,$e),ot},p.createClientKeyExchange=function(_e){var ne=t.util.createBuffer();ne.putByte(_e.session.clientHelloVersion.major),ne.putByte(_e.session.clientHelloVersion.minor),ne.putBytes(t.random.getBytes(46));var be=_e.session.sp;be.pre_master_secret=ne.getBytes();var $e=(ne=_e.session.serverCertificate.publicKey.encrypt(be.pre_master_secret)).length+2,ft=t.util.createBuffer();return ft.putByte(p.HandshakeType.client_key_exchange),ft.putInt24($e),ft.putInt16(ne.length),ft.putBytes(ne),ft},p.createServerKeyExchange=function(_e){return t.util.createBuffer()},p.getClientSignature=function(_e,ne){var be=t.util.createBuffer();be.putBuffer(_e.session.md5.digest()),be.putBuffer(_e.session.sha1.digest()),be=be.getBytes(),_e.getSignature=_e.getSignature||function(Te,$e,ft){var Ge=null;if(Te.getPrivateKey)try{Ge=Te.getPrivateKey(Te,Te.session.clientCertificate),Ge=t.pki.privateKeyFromPem(Ge)}catch(Ft){Te.error(Te,{message:"Could not get private key.",cause:Ft,send:!0,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.internal_error}})}null===Ge?Te.error(Te,{message:"No private key set.",send:!0,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.internal_error}}):$e=Ge.sign($e,null),ft(Te,$e)},_e.getSignature(_e,be,ne)},p.createCertificateVerify=function(_e,ne){var be=ne.length+2,Te=t.util.createBuffer();return Te.putByte(p.HandshakeType.certificate_verify),Te.putInt24(be),Te.putInt16(ne.length),Te.putBytes(ne),Te},p.createCertificateRequest=function(_e){var ne=t.util.createBuffer();ne.putByte(1);var be=t.util.createBuffer();for(var Te in _e.caStore.certs){var ft=t.pki.distinguishedNameToAsn1(_e.caStore.certs[Te].subject),Ge=t.asn1.toDer(ft);be.putInt16(Ge.length()),be.putBuffer(Ge)}var Ft=1+ne.length()+2+be.length(),br=t.util.createBuffer();return br.putByte(p.HandshakeType.certificate_request),br.putInt24(Ft),g(br,1,ne),g(br,2,be),br},p.createServerHelloDone=function(_e){var ne=t.util.createBuffer();return ne.putByte(p.HandshakeType.server_hello_done),ne.putInt24(0),ne},p.createChangeCipherSpec=function(){var _e=t.util.createBuffer();return _e.putByte(1),_e},p.createFinished=function(_e){var ne=t.util.createBuffer();ne.putBuffer(_e.session.md5.digest()),ne.putBuffer(_e.session.sha1.digest()),ne=e(_e.session.sp.master_secret,_e.entity===p.ConnectionEnd.client?"client finished":"server finished",ne.getBytes(),12);var Ft=t.util.createBuffer();return Ft.putByte(p.HandshakeType.finished),Ft.putInt24(ne.length()),Ft.putBuffer(ne),Ft},p.createHeartbeat=function(_e,ne,be){typeof be>"u"&&(be=ne.length);var Te=t.util.createBuffer();Te.putByte(_e),Te.putInt16(be),Te.putBytes(ne);var $e=Te.length(),ft=Math.max(16,$e-be-3);return Te.putBytes(t.random.getBytes(ft)),Te},p.queue=function(_e,ne){if(ne&&(0!==ne.fragment.length()||ne.type!==p.ContentType.handshake&&ne.type!==p.ContentType.alert&&ne.type!==p.ContentType.change_cipher_spec)){if(ne.type===p.ContentType.handshake){var be=ne.fragment.bytes();_e.session.md5.update(be),_e.session.sha1.update(be),be=null}var Te;if(ne.fragment.length()<=p.MaxFragment)Te=[ne];else{Te=[];for(var $e=ne.fragment.bytes();$e.length>p.MaxFragment;)Te.push(p.createRecord(_e,{type:ne.type,data:t.util.createBuffer($e.slice(0,p.MaxFragment))})),$e=$e.slice(p.MaxFragment);$e.length>0&&Te.push(p.createRecord(_e,{type:ne.type,data:t.util.createBuffer($e)}))}for(var ft=0;ft<Te.length&&!_e.fail;++ft){var Ge=Te[ft];_e.state.current.write.update(_e,Ge)&&_e.records.push(Ge)}}},p.flush=function(_e){for(var ne=0;ne<_e.records.length;++ne){var be=_e.records[ne];_e.tlsData.putByte(be.type),_e.tlsData.putByte(be.version.major),_e.tlsData.putByte(be.version.minor),_e.tlsData.putInt16(be.fragment.length()),_e.tlsData.putBuffer(_e.records[ne].fragment)}return _e.records=[],_e.tlsDataReady(_e)};var at=function(_e){switch(_e){case!0:return!0;case t.pki.certificateError.bad_certificate:return p.Alert.Description.bad_certificate;case t.pki.certificateError.unsupported_certificate:return p.Alert.Description.unsupported_certificate;case t.pki.certificateError.certificate_revoked:return p.Alert.Description.certificate_revoked;case t.pki.certificateError.certificate_expired:return p.Alert.Description.certificate_expired;case t.pki.certificateError.certificate_unknown:return p.Alert.Description.certificate_unknown;case t.pki.certificateError.unknown_ca:return p.Alert.Description.unknown_ca;default:return p.Alert.Description.bad_certificate}};for(var Lt in p.verifyCertificateChain=function(_e,ne){try{var be={};for(var Te in _e.verifyOptions)be[Te]=_e.verifyOptions[Te];be.verify=function(ft,Ge,Ft){at(ft);var rt=_e.verify(_e,ft,Ge,Ft);if(!0!==rt){if("object"==typeof rt&&!t.util.isArray(rt)){var st=new Error("The application rejected the certificate.");throw st.send=!0,st.alert={level:p.Alert.Level.fatal,description:p.Alert.Description.bad_certificate},rt.message&&(st.message=rt.message),rt.alert&&(st.alert.description=rt.alert),st}rt!==ft&&(rt=function(_e){switch(_e){case!0:return!0;case p.Alert.Description.bad_certificate:return t.pki.certificateError.bad_certificate;case p.Alert.Description.unsupported_certificate:return t.pki.certificateError.unsupported_certificate;case p.Alert.Description.certificate_revoked:return t.pki.certificateError.certificate_revoked;case p.Alert.Description.certificate_expired:return t.pki.certificateError.certificate_expired;case p.Alert.Description.certificate_unknown:return t.pki.certificateError.certificate_unknown;case p.Alert.Description.unknown_ca:return t.pki.certificateError.unknown_ca;default:return t.pki.certificateError.bad_certificate}}(rt))}return rt},t.pki.verifyCertificateChain(_e.caStore,ne,be)}catch(ft){var $e=ft;("object"!=typeof $e||t.util.isArray($e))&&($e={send:!0,alert:{level:p.Alert.Level.fatal,description:at(ft)}}),"send"in $e||($e.send=!0),"alert"in $e||($e.alert={level:p.Alert.Level.fatal,description:at($e.error)}),_e.error(_e,$e)}return!_e.fail},p.createSessionCache=function(_e,ne){var be=null;if(_e&&_e.getSession&&_e.setSession&&_e.order)be=_e;else{for(var Te in(be={}).cache=_e||{},be.capacity=Math.max(ne||100,1),be.order=[],_e)be.order.length<=ne?be.order.push(Te):delete _e[Te];be.getSession=function($e){var ft=null,Ge=null;if($e?Ge=t.util.bytesToHex($e):be.order.length>0&&(Ge=be.order[0]),null!==Ge&&Ge in be.cache)for(var Ft in ft=be.cache[Ge],delete be.cache[Ge],be.order)if(be.order[Ft]===Ge){be.order.splice(Ft,1);break}return ft},be.setSession=function($e,ft){if(be.order.length===be.capacity){var Ge=be.order.shift();delete be.cache[Ge]}Ge=t.util.bytesToHex($e),be.order.push(Ge),be.cache[Ge]=ft}}return be},p.createConnection=function(_e){var ne;ne=_e.caStore?t.util.isArray(_e.caStore)?t.pki.createCaStore(_e.caStore):_e.caStore:t.pki.createCaStore();var be=_e.cipherSuites||null;if(null===be)for(var Te in be=[],p.CipherSuites)be.push(p.CipherSuites[Te]);var $e=_e.server?p.ConnectionEnd.server:p.ConnectionEnd.client,ft=_e.sessionCache?p.createSessionCache(_e.sessionCache):null,Ge={version:{major:p.Version.major,minor:p.Version.minor},entity:$e,sessionId:_e.sessionId,caStore:ne,sessionCache:ft,cipherSuites:be,connected:_e.connected,virtualHost:_e.virtualHost||null,verifyClient:_e.verifyClient||!1,verify:_e.verify||function(st,Dt,ot,nt){return Dt},verifyOptions:_e.verifyOptions||{},getCertificate:_e.getCertificate||null,getPrivateKey:_e.getPrivateKey||null,getSignature:_e.getSignature||null,input:t.util.createBuffer(),tlsData:t.util.createBuffer(),data:t.util.createBuffer(),tlsDataReady:_e.tlsDataReady,dataReady:_e.dataReady,heartbeatReceived:_e.heartbeatReceived,closed:_e.closed,error:function(st,Dt){Dt.origin=Dt.origin||(st.entity===p.ConnectionEnd.client?"client":"server"),Dt.send&&(p.queue(st,p.createAlert(st,Dt.alert)),p.flush(st));var ot=!1!==Dt.fatal;ot&&(st.fail=!0),_e.error(st,Dt),ot&&st.close(!1)},deflate:_e.deflate||null,inflate:_e.inflate||null,reset:function(st){Ge.version={major:p.Version.major,minor:p.Version.minor},Ge.record=null,Ge.session=null,Ge.peerCertificate=null,Ge.state={pending:null,current:null},Ge.expect=0,Ge.fragmented=null,Ge.records=[],Ge.open=!1,Ge.handshakes=0,Ge.handshaking=!1,Ge.isConnected=!1,Ge.fail=!(st||typeof st>"u"),Ge.input.clear(),Ge.tlsData.clear(),Ge.data.clear(),Ge.state.current=p.createConnectionState(Ge)}};return Ge.reset(),Ge.handshake=function(st){if(Ge.entity!==p.ConnectionEnd.client)Ge.error(Ge,{message:"Cannot initiate handshake as a server.",fatal:!1});else if(Ge.handshaking)Ge.error(Ge,{message:"Handshake already in progress.",fatal:!1});else{Ge.fail&&!Ge.open&&0===Ge.handshakes&&(Ge.fail=!1),Ge.handshaking=!0;var Dt=null;(st=st||"").length>0&&(Ge.sessionCache&&(Dt=Ge.sessionCache.getSession(st)),null===Dt&&(st="")),0===st.length&&Ge.sessionCache&&null!==(Dt=Ge.sessionCache.getSession())&&(st=Dt.id),Ge.session={id:st,version:null,cipherSuite:null,compressionMethod:null,serverCertificate:null,certificateRequest:null,clientCertificate:null,sp:{},md5:t.md.md5.create(),sha1:t.md.sha1.create()},Dt&&(Ge.version=Dt.version,Ge.session.sp=Dt.sp),Ge.session.sp.client_random=p.createRandom().getBytes(),Ge.open=!0,p.queue(Ge,p.createRecord(Ge,{type:p.ContentType.handshake,data:p.createClientHello(Ge)})),p.flush(Ge)}},Ge.process=function(st){var Dt=0;return st&&Ge.input.putBytes(st),Ge.fail||(null!==Ge.record&&Ge.record.ready&&Ge.record.fragment.isEmpty()&&(Ge.record=null),null===Ge.record&&(Dt=function(st){var Dt=0,ot=st.input,nt=ot.length();if(nt<5)Dt=5-nt;else{st.record={type:ot.getByte(),version:{major:ot.getByte(),minor:ot.getByte()},length:ot.getInt16(),fragment:t.util.createBuffer(),ready:!1};var Yt=st.record.version.major===st.version.major;Yt&&st.session&&st.session.version&&(Yt=st.record.version.minor===st.version.minor),Yt||st.error(st,{message:"Incompatible TLS version.",send:!0,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.protocol_version}})}return Dt}(Ge)),!Ge.fail&&null!==Ge.record&&!Ge.record.ready&&(Dt=function(st){var Dt=0,ot=st.input,nt=ot.length();return nt<st.record.length?Dt=st.record.length-nt:(st.record.fragment.putBytes(ot.getBytes(st.record.length)),ot.compact(),st.state.current.read.update(st,st.record)&&(null!==st.fragmented&&(st.fragmented.type===st.record.type?(st.fragmented.fragment.putBuffer(st.record.fragment),st.record=st.fragmented):st.error(st,{message:"Invalid fragmented record.",send:!0,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.unexpected_message}})),st.record.ready=!0)),Dt}(Ge)),!Ge.fail&&null!==Ge.record&&Ge.record.ready&&function(st,Dt){var ot=Dt.type-p.ContentType.change_cipher_spec,nt=j[st.entity][st.expect];ot in nt?nt[ot](st,Dt):p.handleUnexpected(st,Dt)}(Ge,Ge.record)),Dt},Ge.prepare=function(st){return p.queue(Ge,p.createRecord(Ge,{type:p.ContentType.application_data,data:t.util.createBuffer(st)})),p.flush(Ge)},Ge.prepareHeartbeatRequest=function(st,Dt){return st instanceof t.util.ByteBuffer&&(st=st.bytes()),typeof Dt>"u"&&(Dt=st.length),Ge.expectedHeartbeatPayload=st,p.queue(Ge,p.createRecord(Ge,{type:p.ContentType.heartbeat,data:p.createHeartbeat(p.HeartbeatMessageType.heartbeat_request,st,Dt)})),p.flush(Ge)},Ge.close=function(st){if(!Ge.fail&&Ge.sessionCache&&Ge.session){var Dt={id:Ge.session.id,version:Ge.session.version,sp:Ge.session.sp};Dt.sp.keys=null,Ge.sessionCache.setSession(Dt.id,Dt)}Ge.open&&(Ge.open=!1,Ge.input.clear(),(Ge.isConnected||Ge.handshaking)&&(Ge.isConnected=Ge.handshaking=!1,p.queue(Ge,p.createAlert(Ge,{level:p.Alert.Level.warning,description:p.Alert.Description.close_notify})),p.flush(Ge)),Ge.closed(Ge)),Ge.reset(st)},Ge},M.exports=t.tls=t.tls||{},p)"function"!=typeof p[Lt]&&(t.tls[Lt]=p[Lt]);t.tls.prf_tls1=e,t.tls.hmac_sha1=function(_e,ne,be){var Te=t.hmac.create();Te.start("SHA1",_e);var $e=t.util.createBuffer();return $e.putInt32(ne[0]),$e.putInt32(ne[1]),$e.putByte(be.type),$e.putByte(be.version.major),$e.putByte(be.version.minor),$e.putInt16(be.length),$e.putBytes(be.fragment.bytes()),Te.update($e.getBytes()),Te.digest().getBytes()},t.tls.createSessionCache=p.createSessionCache,t.tls.createConnection=p.createConnection},74747:(M,b,n)=>{var t=n(18659),e=n(62020),l=M.exports=t.util=t.util||{};function h(D){if(8!==D&&16!==D&&24!==D&&32!==D)throw new Error("Only 8, 16, 24, or 32 bits supported: "+D)}function r(D){if(this.data="",this.read=0,"string"==typeof D)this.data=D;else if(l.isArrayBuffer(D)||l.isArrayBufferView(D))if(typeof Buffer<"u"&&D instanceof Buffer)this.data=D.toString("binary");else{var U=new Uint8Array(D);try{this.data=String.fromCharCode.apply(null,U)}catch{for(var q=0;q<U.length;++q)this.putByte(U[q])}}else(D instanceof r||"object"==typeof D&&"string"==typeof D.data&&"number"==typeof D.read)&&(this.data=D.data,this.read=D.read);this._constructedStringLength=0}(function(){if(typeof process<"u"&&process.nextTick&&!process.browser)return l.nextTick=process.nextTick,void(l.setImmediate="function"==typeof setImmediate?setImmediate:l.nextTick);if("function"==typeof setImmediate)return l.setImmediate=function(){return setImmediate.apply(void 0,arguments)},void(l.nextTick=function(re){return setImmediate(re)});if(l.setImmediate=function(re){setTimeout(re,0)},typeof window<"u"&&"function"==typeof window.postMessage){let re=function(oe){if(oe.source===window&&oe.data===D){oe.stopPropagation();var B=U.slice();U.length=0,B.forEach(function(s){s()})}};var D="forge.setImmediate",U=[];l.setImmediate=function(oe){U.push(oe),1===U.length&&window.postMessage(D,"*")},window.addEventListener("message",re,!0)}if(typeof MutationObserver<"u"){var q=Date.now(),J=!0,G=document.createElement("div");U=[],new MutationObserver(function(){var oe=U.slice();U.length=0,oe.forEach(function(B){B()})}).observe(G,{attributes:!0});var ie=l.setImmediate;l.setImmediate=function(oe){Date.now()-q>15?(q=Date.now(),ie(oe)):(U.push(oe),1===U.length&&G.setAttribute("a",J=!J))}}l.nextTick=l.setImmediate})(),l.isNodejs=typeof process<"u"&&process.versions&&process.versions.node,l.globalScope=l.isNodejs?global:typeof self>"u"?window:self,l.isArray=Array.isArray||function(D){return"[object Array]"===Object.prototype.toString.call(D)},l.isArrayBuffer=function(D){return typeof ArrayBuffer<"u"&&D instanceof ArrayBuffer},l.isArrayBufferView=function(D){return D&&l.isArrayBuffer(D.buffer)&&void 0!==D.byteLength},l.ByteBuffer=r,l.ByteStringBuffer=r,l.ByteStringBuffer.prototype._optimizeConstructedString=function(D){this._constructedStringLength+=D,this._constructedStringLength>4096&&(this.data.substr(0,1),this._constructedStringLength=0)},l.ByteStringBuffer.prototype.length=function(){return this.data.length-this.read},l.ByteStringBuffer.prototype.isEmpty=function(){return this.length()<=0},l.ByteStringBuffer.prototype.putByte=function(D){return this.putBytes(String.fromCharCode(D))},l.ByteStringBuffer.prototype.fillWithByte=function(D,U){D=String.fromCharCode(D);for(var q=this.data;U>0;)1&U&&(q+=D),(U>>>=1)>0&&(D+=D);return this.data=q,this._optimizeConstructedString(U),this},l.ByteStringBuffer.prototype.putBytes=function(D){return this.data+=D,this._optimizeConstructedString(D.length),this},l.ByteStringBuffer.prototype.putString=function(D){return this.putBytes(l.encodeUtf8(D))},l.ByteStringBuffer.prototype.putInt16=function(D){return this.putBytes(String.fromCharCode(D>>8&255)+String.fromCharCode(255&D))},l.ByteStringBuffer.prototype.putInt24=function(D){return this.putBytes(String.fromCharCode(D>>16&255)+String.fromCharCode(D>>8&255)+String.fromCharCode(255&D))},l.ByteStringBuffer.prototype.putInt32=function(D){return this.putBytes(String.fromCharCode(D>>24&255)+String.fromCharCode(D>>16&255)+String.fromCharCode(D>>8&255)+String.fromCharCode(255&D))},l.ByteStringBuffer.prototype.putInt16Le=function(D){return this.putBytes(String.fromCharCode(255&D)+String.fromCharCode(D>>8&255))},l.ByteStringBuffer.prototype.putInt24Le=function(D){return this.putBytes(String.fromCharCode(255&D)+String.fromCharCode(D>>8&255)+String.fromCharCode(D>>16&255))},l.ByteStringBuffer.prototype.putInt32Le=function(D){return this.putBytes(String.fromCharCode(255&D)+String.fromCharCode(D>>8&255)+String.fromCharCode(D>>16&255)+String.fromCharCode(D>>24&255))},l.ByteStringBuffer.prototype.putInt=function(D,U){h(U);var q="";do{U-=8,q+=String.fromCharCode(D>>U&255)}while(U>0);return this.putBytes(q)},l.ByteStringBuffer.prototype.putSignedInt=function(D,U){return D<0&&(D+=2<<U-1),this.putInt(D,U)},l.ByteStringBuffer.prototype.putBuffer=function(D){return this.putBytes(D.getBytes())},l.ByteStringBuffer.prototype.getByte=function(){return this.data.charCodeAt(this.read++)},l.ByteStringBuffer.prototype.getInt16=function(){var D=this.data.charCodeAt(this.read)<<8^this.data.charCodeAt(this.read+1);return this.read+=2,D},l.ByteStringBuffer.prototype.getInt24=function(){var D=this.data.charCodeAt(this.read)<<16^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2);return this.read+=3,D},l.ByteStringBuffer.prototype.getInt32=function(){var D=this.data.charCodeAt(this.read)<<24^this.data.charCodeAt(this.read+1)<<16^this.data.charCodeAt(this.read+2)<<8^this.data.charCodeAt(this.read+3);return this.read+=4,D},l.ByteStringBuffer.prototype.getInt16Le=function(){var D=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8;return this.read+=2,D},l.ByteStringBuffer.prototype.getInt24Le=function(){var D=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16;return this.read+=3,D},l.ByteStringBuffer.prototype.getInt32Le=function(){var D=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16^this.data.charCodeAt(this.read+3)<<24;return this.read+=4,D},l.ByteStringBuffer.prototype.getInt=function(D){h(D);var U=0;do{U=(U<<8)+this.data.charCodeAt(this.read++),D-=8}while(D>0);return U},l.ByteStringBuffer.prototype.getSignedInt=function(D){var U=this.getInt(D),q=2<<D-2;return U>=q&&(U-=q<<1),U},l.ByteStringBuffer.prototype.getBytes=function(D){var U;return D?(D=Math.min(this.length(),D),U=this.data.slice(this.read,this.read+D),this.read+=D):0===D?U="":(U=0===this.read?this.data:this.data.slice(this.read),this.clear()),U},l.ByteStringBuffer.prototype.bytes=function(D){return typeof D>"u"?this.data.slice(this.read):this.data.slice(this.read,this.read+D)},l.ByteStringBuffer.prototype.at=function(D){return this.data.charCodeAt(this.read+D)},l.ByteStringBuffer.prototype.setAt=function(D,U){return this.data=this.data.substr(0,this.read+D)+String.fromCharCode(U)+this.data.substr(this.read+D+1),this},l.ByteStringBuffer.prototype.last=function(){return this.data.charCodeAt(this.data.length-1)},l.ByteStringBuffer.prototype.copy=function(){var D=l.createBuffer(this.data);return D.read=this.read,D},l.ByteStringBuffer.prototype.compact=function(){return this.read>0&&(this.data=this.data.slice(this.read),this.read=0),this},l.ByteStringBuffer.prototype.clear=function(){return this.data="",this.read=0,this},l.ByteStringBuffer.prototype.truncate=function(D){var U=Math.max(0,this.length()-D);return this.data=this.data.substr(this.read,U),this.read=0,this},l.ByteStringBuffer.prototype.toHex=function(){for(var D="",U=this.read;U<this.data.length;++U){var q=this.data.charCodeAt(U);q<16&&(D+="0"),D+=q.toString(16)}return D},l.ByteStringBuffer.prototype.toString=function(){return l.decodeUtf8(this.bytes())},l.DataBuffer=function y(D,U){this.read=(U=U||{}).readOffset||0,this.growSize=U.growSize||1024;var q=l.isArrayBuffer(D),J=l.isArrayBufferView(D);if(q||J)return this.data=q?new DataView(D):new DataView(D.buffer,D.byteOffset,D.byteLength),void(this.write="writeOffset"in U?U.writeOffset:this.data.byteLength);this.data=new DataView(new ArrayBuffer(0)),this.write=0,null!=D&&this.putBytes(D),"writeOffset"in U&&(this.write=U.writeOffset)},l.DataBuffer.prototype.length=function(){return this.write-this.read},l.DataBuffer.prototype.isEmpty=function(){return this.length()<=0},l.DataBuffer.prototype.accommodate=function(D,U){if(this.length()>=D)return this;U=Math.max(U||this.growSize,D);var q=new Uint8Array(this.data.buffer,this.data.byteOffset,this.data.byteLength),J=new Uint8Array(this.length()+U);return J.set(q),this.data=new DataView(J.buffer),this},l.DataBuffer.prototype.putByte=function(D){return this.accommodate(1),this.data.setUint8(this.write++,D),this},l.DataBuffer.prototype.fillWithByte=function(D,U){this.accommodate(U);for(var q=0;q<U;++q)this.data.setUint8(D);return this},l.DataBuffer.prototype.putBytes=function(D,U){if(l.isArrayBufferView(D)){var J=(q=new Uint8Array(D.buffer,D.byteOffset,D.byteLength)).byteLength-q.byteOffset;return this.accommodate(J),new Uint8Array(this.data.buffer,this.write).set(q),this.write+=J,this}if(l.isArrayBuffer(D)){var q=new Uint8Array(D);return this.accommodate(q.byteLength),new Uint8Array(this.data.buffer).set(q,this.write),this.write+=q.byteLength,this}if(D instanceof l.DataBuffer||"object"==typeof D&&"number"==typeof D.read&&"number"==typeof D.write&&l.isArrayBufferView(D.data))return q=new Uint8Array(D.data.byteLength,D.read,D.length()),this.accommodate(q.byteLength),new Uint8Array(D.data.byteLength,this.write).set(q),this.write+=q.byteLength,this;if(D instanceof l.ByteStringBuffer&&(D=D.data,U="binary"),U=U||"binary","string"==typeof D){var ie;if("hex"===U)return this.accommodate(Math.ceil(D.length/2)),ie=new Uint8Array(this.data.buffer,this.write),this.write+=l.binary.hex.decode(D,ie,this.write),this;if("base64"===U)return this.accommodate(3*Math.ceil(D.length/4)),ie=new Uint8Array(this.data.buffer,this.write),this.write+=l.binary.base64.decode(D,ie,this.write),this;if("utf8"===U&&(D=l.encodeUtf8(D),U="binary"),"binary"===U||"raw"===U)return this.accommodate(D.length),ie=new Uint8Array(this.data.buffer,this.write),this.write+=l.binary.raw.decode(ie),this;if("utf16"===U)return this.accommodate(2*D.length),ie=new Uint16Array(this.data.buffer,this.write),this.write+=l.text.utf16.encode(ie),this;throw new Error("Invalid encoding: "+U)}throw Error("Invalid parameter: "+D)},l.DataBuffer.prototype.putBuffer=function(D){return this.putBytes(D),D.clear(),this},l.DataBuffer.prototype.putString=function(D){return this.putBytes(D,"utf16")},l.DataBuffer.prototype.putInt16=function(D){return this.accommodate(2),this.data.setInt16(this.write,D),this.write+=2,this},l.DataBuffer.prototype.putInt24=function(D){return this.accommodate(3),this.data.setInt16(this.write,D>>8&65535),this.data.setInt8(this.write,D>>16&255),this.write+=3,this},l.DataBuffer.prototype.putInt32=function(D){return this.accommodate(4),this.data.setInt32(this.write,D),this.write+=4,this},l.DataBuffer.prototype.putInt16Le=function(D){return this.accommodate(2),this.data.setInt16(this.write,D,!0),this.write+=2,this},l.DataBuffer.prototype.putInt24Le=function(D){return this.accommodate(3),this.data.setInt8(this.write,D>>16&255),this.data.setInt16(this.write,D>>8&65535,!0),this.write+=3,this},l.DataBuffer.prototype.putInt32Le=function(D){return this.accommodate(4),this.data.setInt32(this.write,D,!0),this.write+=4,this},l.DataBuffer.prototype.putInt=function(D,U){h(U),this.accommodate(U/8);do{U-=8,this.data.setInt8(this.write++,D>>U&255)}while(U>0);return this},l.DataBuffer.prototype.putSignedInt=function(D,U){return h(U),this.accommodate(U/8),D<0&&(D+=2<<U-1),this.putInt(D,U)},l.DataBuffer.prototype.getByte=function(){return this.data.getInt8(this.read++)},l.DataBuffer.prototype.getInt16=function(){var D=this.data.getInt16(this.read);return this.read+=2,D},l.DataBuffer.prototype.getInt24=function(){var D=this.data.getInt16(this.read)<<8^this.data.getInt8(this.read+2);return this.read+=3,D},l.DataBuffer.prototype.getInt32=function(){var D=this.data.getInt32(this.read);return this.read+=4,D},l.DataBuffer.prototype.getInt16Le=function(){var D=this.data.getInt16(this.read,!0);return this.read+=2,D},l.DataBuffer.prototype.getInt24Le=function(){var D=this.data.getInt8(this.read)^this.data.getInt16(this.read+1,!0)<<8;return this.read+=3,D},l.DataBuffer.prototype.getInt32Le=function(){var D=this.data.getInt32(this.read,!0);return this.read+=4,D},l.DataBuffer.prototype.getInt=function(D){h(D);var U=0;do{U=(U<<8)+this.data.getInt8(this.read++),D-=8}while(D>0);return U},l.DataBuffer.prototype.getSignedInt=function(D){var U=this.getInt(D),q=2<<D-2;return U>=q&&(U-=q<<1),U},l.DataBuffer.prototype.getBytes=function(D){var U;return D?(D=Math.min(this.length(),D),U=this.data.slice(this.read,this.read+D),this.read+=D):0===D?U="":(U=0===this.read?this.data:this.data.slice(this.read),this.clear()),U},l.DataBuffer.prototype.bytes=function(D){return typeof D>"u"?this.data.slice(this.read):this.data.slice(this.read,this.read+D)},l.DataBuffer.prototype.at=function(D){return this.data.getUint8(this.read+D)},l.DataBuffer.prototype.setAt=function(D,U){return this.data.setUint8(D,U),this},l.DataBuffer.prototype.last=function(){return this.data.getUint8(this.write-1)},l.DataBuffer.prototype.copy=function(){return new l.DataBuffer(this)},l.DataBuffer.prototype.compact=function(){if(this.read>0){var D=new Uint8Array(this.data.buffer,this.read),U=new Uint8Array(D.byteLength);U.set(D),this.data=new DataView(U),this.write-=this.read,this.read=0}return this},l.DataBuffer.prototype.clear=function(){return this.data=new DataView(new ArrayBuffer(0)),this.read=this.write=0,this},l.DataBuffer.prototype.truncate=function(D){return this.write=Math.max(0,this.length()-D),this.read=Math.min(this.read,this.write),this},l.DataBuffer.prototype.toHex=function(){for(var D="",U=this.read;U<this.data.byteLength;++U){var q=this.data.getUint8(U);q<16&&(D+="0"),D+=q.toString(16)}return D},l.DataBuffer.prototype.toString=function(D){var U=new Uint8Array(this.data,this.read,this.length());if("binary"===(D=D||"utf8")||"raw"===D)return l.binary.raw.encode(U);if("hex"===D)return l.binary.hex.encode(U);if("base64"===D)return l.binary.base64.encode(U);if("utf8"===D)return l.text.utf8.decode(U);if("utf16"===D)return l.text.utf16.decode(U);throw new Error("Invalid encoding: "+D)},l.createBuffer=function(D,U){return U=U||"raw",void 0!==D&&"utf8"===U&&(D=l.encodeUtf8(D)),new l.ByteBuffer(D)},l.fillString=function(D,U){for(var q="";U>0;)1&U&&(q+=D),(U>>>=1)>0&&(D+=D);return q},l.xorBytes=function(D,U,q){for(var J="",G="",ie="",K=0,re=0;q>0;--q,++K)G=D.charCodeAt(K)^U.charCodeAt(K),re>=10&&(J+=ie,ie="",re=0),ie+=String.fromCharCode(G),++re;return J+ie},l.hexToBytes=function(D){var U="",q=0;for(!0&D.length&&(q=1,U+=String.fromCharCode(parseInt(D[0],16)));q<D.length;q+=2)U+=String.fromCharCode(parseInt(D.substr(q,2),16));return U},l.bytesToHex=function(D){return l.createBuffer(D).toHex()},l.int32ToBytes=function(D){return String.fromCharCode(D>>24&255)+String.fromCharCode(D>>16&255)+String.fromCharCode(D>>8&255)+String.fromCharCode(255&D)};var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",p=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],f="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";l.encode64=function(D,U){for(var G,ie,K,q="",J="",re=0;re<D.length;)G=D.charCodeAt(re++),ie=D.charCodeAt(re++),K=D.charCodeAt(re++),q+=g.charAt(G>>2),q+=g.charAt((3&G)<<4|ie>>4),isNaN(ie)?q+="==":(q+=g.charAt((15&ie)<<2|K>>6),q+=isNaN(K)?"=":g.charAt(63&K)),U&&q.length>U&&(J+=q.substr(0,U)+"\r\n",q=q.substr(U));return J+q},l.decode64=function(D){D=D.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var q,J,G,ie,U="",K=0;K<D.length;)q=p[D.charCodeAt(K++)-43],J=p[D.charCodeAt(K++)-43],G=p[D.charCodeAt(K++)-43],ie=p[D.charCodeAt(K++)-43],U+=String.fromCharCode(q<<2|J>>4),64!==G&&(U+=String.fromCharCode((15&J)<<4|G>>2),64!==ie&&(U+=String.fromCharCode((3&G)<<6|ie)));return U},l.encodeUtf8=function(D){return unescape(encodeURIComponent(D))},l.decodeUtf8=function(D){return decodeURIComponent(escape(D))},l.binary={raw:{},hex:{},base64:{},base58:{},baseN:{encode:e.encode,decode:e.decode}},l.binary.raw.encode=function(D){return String.fromCharCode.apply(null,D)},l.binary.raw.decode=function(D,U,q){var J=U;J||(J=new Uint8Array(D.length));for(var G=q=q||0,ie=0;ie<D.length;++ie)J[G++]=D.charCodeAt(ie);return U?G-q:J},l.binary.hex.encode=l.bytesToHex,l.binary.hex.decode=function(D,U,q){var J=U;J||(J=new Uint8Array(Math.ceil(D.length/2)));var G=0,ie=q=q||0;for(1&D.length&&(G=1,J[ie++]=parseInt(D[0],16));G<D.length;G+=2)J[ie++]=parseInt(D.substr(G,2),16);return U?ie-q:J},l.binary.base64.encode=function(D,U){for(var G,ie,K,q="",J="",re=0;re<D.byteLength;)G=D[re++],ie=D[re++],K=D[re++],q+=g.charAt(G>>2),q+=g.charAt((3&G)<<4|ie>>4),isNaN(ie)?q+="==":(q+=g.charAt((15&ie)<<2|K>>6),q+=isNaN(K)?"=":g.charAt(63&K)),U&&q.length>U&&(J+=q.substr(0,U)+"\r\n",q=q.substr(U));return J+q},l.binary.base64.decode=function(D,U,q){var J=U;J||(J=new Uint8Array(3*Math.ceil(D.length/4))),D=D.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var G,ie,K,re,oe=0,B=q=q||0;oe<D.length;)G=p[D.charCodeAt(oe++)-43],ie=p[D.charCodeAt(oe++)-43],K=p[D.charCodeAt(oe++)-43],re=p[D.charCodeAt(oe++)-43],J[B++]=G<<2|ie>>4,64!==K&&(J[B++]=(15&ie)<<4|K>>2,64!==re&&(J[B++]=(3&K)<<6|re));return U?B-q:J.subarray(0,B)},l.binary.base58.encode=function(D,U){return l.binary.baseN.encode(D,f,U)},l.binary.base58.decode=function(D,U){return l.binary.baseN.decode(D,f,U)},l.text={utf8:{},utf16:{}},l.text.utf8.encode=function(D,U,q){D=l.encodeUtf8(D);var J=U;J||(J=new Uint8Array(D.length));for(var G=q=q||0,ie=0;ie<D.length;++ie)J[G++]=D.charCodeAt(ie);return U?G-q:J},l.text.utf8.decode=function(D){return l.decodeUtf8(String.fromCharCode.apply(null,D))},l.text.utf16.encode=function(D,U,q){var J=U;J||(J=new Uint8Array(2*D.length));for(var G=new Uint16Array(J.buffer),ie=q=q||0,K=q,re=0;re<D.length;++re)G[K++]=D.charCodeAt(re),ie+=2;return U?ie-q:J},l.text.utf16.decode=function(D){return String.fromCharCode.apply(null,new Uint16Array(D.buffer))},l.deflate=function(D,U,q){if(U=l.decode64(D.deflate(l.encode64(U)).rval),q){var J=2;32&U.charCodeAt(1)&&(J=6),U=U.substring(J,U.length-4)}return U},l.inflate=function(D,U,q){var J=D.inflate(l.encode64(U)).rval;return null===J?null:l.decode64(J)};var C=function(D,U,q){if(!D)throw new Error("WebStorage not available.");var J;if(null===q?J=D.removeItem(U):(q=l.encode64(JSON.stringify(q)),J=D.setItem(U,q)),typeof J<"u"&&!0!==J.rval){var G=new Error(J.error.message);throw G.id=J.error.id,G.name=J.error.name,G}},N=function(D,U){if(!D)throw new Error("WebStorage not available.");var q=D.getItem(U);if(D.init)if(null===q.rval){if(q.error){var J=new Error(q.error.message);throw J.id=q.error.id,J.name=q.error.name,J}q=null}else q=q.rval;return null!==q&&(q=JSON.parse(l.decode64(q))),q},a=function(D,U,q,J){var G=N(D,U);null===G&&(G={}),G[q]=J,C(D,U,G)},O=function(D,U,q){var J=N(D,U);return null!==J&&(J=q in J?J[q]:null),J},H=function(D,U,q){var J=N(D,U);if(null!==J&&q in J){delete J[q];var G=!0;for(var ie in J){G=!1;break}G&&(J=null),C(D,U,J)}},F=function(D,U){C(D,U,null)},V=function(D,U,q){var J=null;typeof q>"u"&&(q=["web","flash"]);var G,ie=!1,K=null;for(var re in q){G=q[re];try{if("flash"===G||"both"===G){if(null===U[0])throw new Error("Flash local storage not available.");J=D.apply(this,U),ie="flash"===G}("web"===G||"both"===G)&&(U[0]=localStorage,J=D.apply(this,U),ie=!0)}catch(oe){K=oe}if(ie)break}if(!ie)throw K;return J};l.setItem=function(D,U,q,J,G){V(a,arguments,G)},l.getItem=function(D,U,q,J){return V(O,arguments,J)},l.removeItem=function(D,U,q,J){V(H,arguments,J)},l.clearItems=function(D,U,q){V(F,arguments,q)},l.isEmpty=function(D){for(var U in D)if(D.hasOwnProperty(U))return!1;return!0},l.format=function(D){for(var q,J,U=/%./g,G=0,ie=[],K=0;q=U.exec(D);){(J=D.substring(K,U.lastIndex-2)).length>0&&ie.push(J),K=U.lastIndex;var re=q[0][1];switch(re){case"s":case"o":ie.push(G<arguments.length?arguments[1+G++]:"<?>");break;case"%":ie.push("%");break;default:ie.push("<%"+re+"?>")}}return ie.push(D.substring(K)),ie.join("")},l.formatNumber=function(D,U,q,J){var G=D,ie=isNaN(U=Math.abs(U))?2:U,K=void 0===q?",":q,re=void 0===J?".":J,oe=G<0?"-":"",B=parseInt(G=Math.abs(+G||0).toFixed(ie),10)+"",s=B.length>3?B.length%3:0;return oe+(s?B.substr(0,s)+re:"")+B.substr(s).replace(/(\d{3})(?=\d)/g,"$1"+re)+(ie?K+Math.abs(G-B).toFixed(ie).slice(2):"")},l.formatSize=function(D){return D>=1073741824?l.formatNumber(D/1073741824,2,".","")+" GiB":D>=1048576?l.formatNumber(D/1048576,2,".","")+" MiB":D>=1024?l.formatNumber(D/1024,0)+" KiB":l.formatNumber(D,0)+" bytes"},l.bytesFromIP=function(D){return-1!==D.indexOf(".")?l.bytesFromIPv4(D):-1!==D.indexOf(":")?l.bytesFromIPv6(D):null},l.bytesFromIPv4=function(D){if(4!==(D=D.split(".")).length)return null;for(var U=l.createBuffer(),q=0;q<D.length;++q){var J=parseInt(D[q],10);if(isNaN(J))return null;U.putByte(J)}return U.getBytes()},l.bytesFromIPv6=function(D){for(var U=0,q=2*(8-(D=D.split(":").filter(function(K){return 0===K.length&&++U,!0})).length+U),J=l.createBuffer(),G=0;G<8;++G)if(D[G]&&0!==D[G].length){var ie=l.hexToBytes(D[G]);ie.length<2&&J.putByte(0),J.putBytes(ie)}else J.fillWithByte(0,q),q=0;return J.getBytes()},l.bytesToIP=function(D){return 4===D.length?l.bytesToIPv4(D):16===D.length?l.bytesToIPv6(D):null},l.bytesToIPv4=function(D){if(4!==D.length)return null;for(var U=[],q=0;q<D.length;++q)U.push(D.charCodeAt(q));return U.join(".")},l.bytesToIPv6=function(D){if(16!==D.length)return null;for(var U=[],q=[],J=0,G=0;G<D.length;G+=2){for(var ie=l.bytesToHex(D[G]+D[G+1]);"0"===ie[0]&&"0"!==ie;)ie=ie.substr(1);if("0"===ie){var K=q[q.length-1],re=U.length;K&&re===K.end+1?(K.end=re,K.end-K.start>q[J].end-q[J].start&&(J=q.length-1)):q.push({start:re,end:re})}U.push(ie)}if(q.length>0){var oe=q[J];oe.end-oe.start>0&&(U.splice(oe.start,oe.end-oe.start+1,""),0===oe.start&&U.unshift(""),7===oe.end&&U.push(""))}return U.join(":")},l.estimateCores=function(D,U){if("function"==typeof D&&(U=D,D={}),D=D||{},"cores"in l&&!D.update)return U(null,l.cores);if(typeof navigator<"u"&&"hardwareConcurrency"in navigator&&navigator.hardwareConcurrency>0)return l.cores=navigator.hardwareConcurrency,U(null,l.cores);if(typeof Worker>"u")return l.cores=1,U(null,l.cores);if(typeof Blob>"u")return l.cores=2,U(null,l.cores);var q=URL.createObjectURL(new Blob(["(",function(){self.addEventListener("message",function(K){for(var re=Date.now(),oe=re+4;Date.now()<oe;);self.postMessage({st:re,et:oe})})}.toString(),")()"],{type:"application/javascript"}));!function J(K,re,oe){if(0===re){var B=Math.floor(K.reduce(function(s,_){return s+_},0)/K.length);return l.cores=Math.max(1,B),URL.revokeObjectURL(q),U(null,l.cores)}!function G(K,re){for(var oe=[],B=[],s=0;s<K;++s){var _=new Worker(q);_.addEventListener("message",function(w){if(B.push(w.data),B.length===K){for(var E=0;E<K;++E)oe[E].terminate();re(null,B)}}),oe.push(_)}for(s=0;s<K;++s)oe[s].postMessage(s)}(oe,function(s,_){K.push(function ie(K,re){for(var oe=[],B=0;B<K;++B)for(var s=re[B],_=oe[B]=[],w=0;w<K;++w)if(B!==w){var E=re[w];(s.st>E.st&&s.st<E.et||E.st>s.st&&E.st<s.et)&&_.push(w)}return oe.reduce(function(x,j){return Math.max(x,j.length)},0)}(oe,_)),J(K,re-1,oe)})}([],5,16)}},55911:(M,b,n)=>{var t=n(18659);n(1298),n(17791),n(10279),n(90979),n(69386),n(16078),n(88604),n(27256),n(25517),n(74747);var e=t.asn1,l=M.exports=t.pki=t.pki||{},h=l.oids,r={};r.CN=h.commonName,r.commonName="CN",r.C=h.countryName,r.countryName="C",r.L=h.localityName,r.localityName="L",r.ST=h.stateOrProvinceName,r.stateOrProvinceName="ST",r.O=h.organizationName,r.organizationName="O",r.OU=h.organizationalUnitName,r.organizationalUnitName="OU",r.E=h.emailAddress,r.emailAddress="E";var d=t.pki.rsa.publicKeyValidator,y={name:"Certificate",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,captureAsn1:"tbsCertificate",value:[{name:"Certificate.TBSCertificate.version",tagClass:e.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.version.integer",tagClass:e.Class.UNIVERSAL,type:e.Type.INTEGER,constructed:!1,capture:"certVersion"}]},{name:"Certificate.TBSCertificate.serialNumber",tagClass:e.Class.UNIVERSAL,type:e.Type.INTEGER,constructed:!1,capture:"certSerialNumber"},{name:"Certificate.TBSCertificate.signature",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate.signature.algorithm",tagClass:e.Class.UNIVERSAL,type:e.Type.OID,constructed:!1,capture:"certinfoSignatureOid"},{name:"Certificate.TBSCertificate.signature.parameters",tagClass:e.Class.UNIVERSAL,optional:!0,captureAsn1:"certinfoSignatureParams"}]},{name:"Certificate.TBSCertificate.issuer",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,captureAsn1:"certIssuer"},{name:"Certificate.TBSCertificate.validity",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate.validity.notBefore (utc)",tagClass:e.Class.UNIVERSAL,type:e.Type.UTCTIME,constructed:!1,optional:!0,capture:"certValidity1UTCTime"},{name:"Certificate.TBSCertificate.validity.notBefore (generalized)",tagClass:e.Class.UNIVERSAL,type:e.Type.GENERALIZEDTIME,constructed:!1,optional:!0,capture:"certValidity2GeneralizedTime"},{name:"Certificate.TBSCertificate.validity.notAfter (utc)",tagClass:e.Class.UNIVERSAL,type:e.Type.UTCTIME,constructed:!1,optional:!0,capture:"certValidity3UTCTime"},{name:"Certificate.TBSCertificate.validity.notAfter (generalized)",tagClass:e.Class.UNIVERSAL,type:e.Type.GENERALIZEDTIME,constructed:!1,optional:!0,capture:"certValidity4GeneralizedTime"}]},{name:"Certificate.TBSCertificate.subject",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,captureAsn1:"certSubject"},d,{name:"Certificate.TBSCertificate.issuerUniqueID",tagClass:e.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.issuerUniqueID.id",tagClass:e.Class.UNIVERSAL,type:e.Type.BITSTRING,constructed:!1,captureBitStringValue:"certIssuerUniqueId"}]},{name:"Certificate.TBSCertificate.subjectUniqueID",tagClass:e.Class.CONTEXT_SPECIFIC,type:2,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.subjectUniqueID.id",tagClass:e.Class.UNIVERSAL,type:e.Type.BITSTRING,constructed:!1,captureBitStringValue:"certSubjectUniqueId"}]},{name:"Certificate.TBSCertificate.extensions",tagClass:e.Class.CONTEXT_SPECIFIC,type:3,constructed:!0,captureAsn1:"certExtensions",optional:!0}]},{name:"Certificate.signatureAlgorithm",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.signatureAlgorithm.algorithm",tagClass:e.Class.UNIVERSAL,type:e.Type.OID,constructed:!1,capture:"certSignatureOid"},{name:"Certificate.TBSCertificate.signature.parameters",tagClass:e.Class.UNIVERSAL,optional:!0,captureAsn1:"certSignatureParams"}]},{name:"Certificate.signatureValue",tagClass:e.Class.UNIVERSAL,type:e.Type.BITSTRING,constructed:!1,captureBitStringValue:"certSignature"}]},g={name:"rsapss",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,value:[{name:"rsapss.hashAlgorithm",tagClass:e.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,value:[{name:"rsapss.hashAlgorithm.AlgorithmIdentifier",tagClass:e.Class.UNIVERSAL,type:e.Class.SEQUENCE,constructed:!0,optional:!0,value:[{name:"rsapss.hashAlgorithm.AlgorithmIdentifier.algorithm",tagClass:e.Class.UNIVERSAL,type:e.Type.OID,constructed:!1,capture:"hashOid"}]}]},{name:"rsapss.maskGenAlgorithm",tagClass:e.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier",tagClass:e.Class.UNIVERSAL,type:e.Class.SEQUENCE,constructed:!0,optional:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.algorithm",tagClass:e.Class.UNIVERSAL,type:e.Type.OID,constructed:!1,capture:"maskGenOid"},{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.params",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.params.algorithm",tagClass:e.Class.UNIVERSAL,type:e.Type.OID,constructed:!1,capture:"maskGenHashOid"}]}]}]},{name:"rsapss.saltLength",tagClass:e.Class.CONTEXT_SPECIFIC,type:2,optional:!0,value:[{name:"rsapss.saltLength.saltLength",tagClass:e.Class.UNIVERSAL,type:e.Class.INTEGER,constructed:!1,capture:"saltLength"}]},{name:"rsapss.trailerField",tagClass:e.Class.CONTEXT_SPECIFIC,type:3,optional:!0,value:[{name:"rsapss.trailer.trailer",tagClass:e.Class.UNIVERSAL,type:e.Class.INTEGER,constructed:!1,capture:"trailer"}]}]},f={name:"CertificationRequest",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,captureAsn1:"csr",value:[{name:"CertificationRequestInfo",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,captureAsn1:"certificationRequestInfo",value:[{name:"CertificationRequestInfo.integer",tagClass:e.Class.UNIVERSAL,type:e.Type.INTEGER,constructed:!1,capture:"certificationRequestInfoVersion"},{name:"CertificationRequestInfo.subject",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,captureAsn1:"certificationRequestInfoSubject"},d,{name:"CertificationRequestInfo.attributes",tagClass:e.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,capture:"certificationRequestInfoAttributes",value:[{name:"CertificationRequestInfo.attributes",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,value:[{name:"CertificationRequestInfo.attributes.type",tagClass:e.Class.UNIVERSAL,type:e.Type.OID,constructed:!1},{name:"CertificationRequestInfo.attributes.value",tagClass:e.Class.UNIVERSAL,type:e.Type.SET,constructed:!0}]}]}]},{name:"CertificationRequest.signatureAlgorithm",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,value:[{name:"CertificationRequest.signatureAlgorithm.algorithm",tagClass:e.Class.UNIVERSAL,type:e.Type.OID,constructed:!1,capture:"csrSignatureOid"},{name:"CertificationRequest.signatureAlgorithm.parameters",tagClass:e.Class.UNIVERSAL,optional:!0,captureAsn1:"csrSignatureParams"}]},{name:"CertificationRequest.signature",tagClass:e.Class.UNIVERSAL,type:e.Type.BITSTRING,constructed:!1,captureBitStringValue:"csrSignature"}]};function C(K,re){"string"==typeof re&&(re={shortName:re});for(var B,oe=null,s=0;null===oe&&s<K.attributes.length;++s)B=K.attributes[s],(re.type&&re.type===B.type||re.name&&re.name===B.name||re.shortName&&re.shortName===B.shortName)&&(oe=B);return oe}l.RDNAttributesAsArray=function(K,re){for(var B,s,_,oe=[],w=0;w<K.value.length;++w){B=K.value[w];for(var E=0;E<B.value.length;++E)(_={}).type=e.derToOid((s=B.value[E]).value[0].value),_.value=s.value[1].value,_.valueTagClass=s.value[1].type,_.type in h&&(_.name=h[_.type],_.name in r&&(_.shortName=r[_.name])),re&&(re.update(_.type),re.update(_.value)),oe.push(_)}return oe},l.CRIAttributesAsArray=function(K){for(var re=[],oe=0;oe<K.length;++oe)for(var B=K[oe],s=e.derToOid(B.value[0].value),_=B.value[1].value,w=0;w<_.length;++w){var E={};if(E.type=s,E.value=_[w].value,E.valueTagClass=_[w].type,E.type in h&&(E.name=h[E.type],E.name in r&&(E.shortName=r[E.name])),E.type===h.extensionRequest){E.extensions=[];for(var x=0;x<E.value.length;++x)E.extensions.push(l.certificateExtensionFromAsn1(E.value[x]))}re.push(E)}return re};var N=function(K,re,oe){var B={};if(K!==h["RSASSA-PSS"])return B;oe&&(B={hash:{algorithmOid:h.sha1},mgf:{algorithmOid:h.mgf1,hash:{algorithmOid:h.sha1}},saltLength:20});var s={},_=[];if(!e.validate(re,g,s,_)){var w=new Error("Cannot read RSASSA-PSS parameter block.");throw w.errors=_,w}return void 0!==s.hashOid&&(B.hash=B.hash||{},B.hash.algorithmOid=e.derToOid(s.hashOid)),void 0!==s.maskGenOid&&(B.mgf=B.mgf||{},B.mgf.algorithmOid=e.derToOid(s.maskGenOid),B.mgf.hash=B.mgf.hash||{},B.mgf.hash.algorithmOid=e.derToOid(s.maskGenHashOid)),void 0!==s.saltLength&&(B.saltLength=s.saltLength.charCodeAt(0)),B},a=function(K){switch(h[K.signatureOid]){case"sha1WithRSAEncryption":case"sha1WithRSASignature":return t.md.sha1.create();case"md5WithRSAEncryption":return t.md.md5.create();case"sha256WithRSAEncryption":case"RSASSA-PSS":return t.md.sha256.create();case"sha384WithRSAEncryption":return t.md.sha384.create();case"sha512WithRSAEncryption":return t.md.sha512.create();default:var re=new Error("Could not compute "+K.type+" digest. Unknown signature OID.");throw re.signatureOid=K.signatureOid,re}},O=function(K){var oe,re=K.certificate;switch(re.signatureOid){case h.sha1WithRSAEncryption:case h.sha1WithRSASignature:break;case h["RSASSA-PSS"]:var B,s,_;if(void 0===(B=h[re.signatureParameters.mgf.hash.algorithmOid])||void 0===t.md[B])throw(_=new Error("Unsupported MGF hash function.")).oid=re.signatureParameters.mgf.hash.algorithmOid,_.name=B,_;if(void 0===(s=h[re.signatureParameters.mgf.algorithmOid])||void 0===t.mgf[s])throw(_=new Error("Unsupported MGF function.")).oid=re.signatureParameters.mgf.algorithmOid,_.name=s,_;if(s=t.mgf[s].create(t.md[B].create()),void 0===(B=h[re.signatureParameters.hash.algorithmOid])||void 0===t.md[B])throw(_=new Error("Unsupported RSASSA-PSS hash function.")).oid=re.signatureParameters.hash.algorithmOid,_.name=B,_;oe=t.pss.create(t.md[B].create(),s,re.signatureParameters.saltLength)}return re.publicKey.verify(K.md.digest().getBytes(),K.signature,oe)};function H(K){for(var oe,B,re=e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[]),s=K.attributes,_=0;_<s.length;++_){var w=(oe=s[_]).value,E=e.Type.PRINTABLESTRING;"valueTagClass"in oe&&(E=oe.valueTagClass)===e.Type.UTF8&&(w=t.util.encodeUtf8(w)),B=e.create(e.Class.UNIVERSAL,e.Type.SET,!0,[e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[e.create(e.Class.UNIVERSAL,e.Type.OID,!1,e.oidToDer(oe.type).getBytes()),e.create(e.Class.UNIVERSAL,E,!1,w)])]),re.value.push(B)}return re}function V(K){for(var re,oe=0;oe<K.length;++oe){if(typeof(re=K[oe]).name>"u"&&(re.type&&re.type in l.oids?re.name=l.oids[re.type]:re.shortName&&re.shortName in r&&(re.name=l.oids[r[re.shortName]])),typeof re.type>"u"){if(!re.name||!(re.name in l.oids))throw(B=new Error("Attribute type not specified.")).attribute=re,B;re.type=l.oids[re.name]}if(typeof re.shortName>"u"&&re.name&&re.name in r&&(re.shortName=r[re.name]),re.type===h.extensionRequest&&(re.valueConstructed=!0,re.valueTagClass=e.Type.SEQUENCE,!re.value&&re.extensions)){re.value=[];for(var s=0;s<re.extensions.length;++s)re.value.push(l.certificateExtensionToAsn1(D(re.extensions[s])))}var B;if(typeof re.value>"u")throw(B=new Error("Attribute value not specified.")).attribute=re,B}}function D(K,re){if(re=re||{},typeof K.name>"u"&&K.id&&K.id in l.oids&&(K.name=l.oids[K.id]),typeof K.id>"u"){if(!K.name||!(K.name in l.oids))throw(oe=new Error("Extension ID not specified.")).extension=K,oe;K.id=l.oids[K.name]}if(typeof K.value<"u")return K;if("keyUsage"===K.name){var B=0,s=0,_=0;K.digitalSignature&&(s|=128,B=7),K.nonRepudiation&&(s|=64,B=6),K.keyEncipherment&&(s|=32,B=5),K.dataEncipherment&&(s|=16,B=4),K.keyAgreement&&(s|=8,B=3),K.keyCertSign&&(s|=4,B=2),K.cRLSign&&(s|=2,B=1),K.encipherOnly&&(s|=1,B=0),K.decipherOnly&&(_|=128,B=7);var w=String.fromCharCode(B);0!==_?w+=String.fromCharCode(s)+String.fromCharCode(_):0!==s&&(w+=String.fromCharCode(s)),K.value=e.create(e.Class.UNIVERSAL,e.Type.BITSTRING,!1,w)}else if("basicConstraints"===K.name)K.value=e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[]),K.cA&&K.value.value.push(e.create(e.Class.UNIVERSAL,e.Type.BOOLEAN,!1,String.fromCharCode(255))),"pathLenConstraint"in K&&K.value.value.push(e.create(e.Class.UNIVERSAL,e.Type.INTEGER,!1,e.integerToDer(K.pathLenConstraint).getBytes()));else if("extKeyUsage"===K.name){K.value=e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[]);var E=K.value.value;for(var x in K)!0===K[x]&&(x in h?E.push(e.create(e.Class.UNIVERSAL,e.Type.OID,!1,e.oidToDer(h[x]).getBytes())):-1!==x.indexOf(".")&&E.push(e.create(e.Class.UNIVERSAL,e.Type.OID,!1,e.oidToDer(x).getBytes())))}else if("nsCertType"===K.name)B=0,s=0,K.client&&(s|=128,B=7),K.server&&(s|=64,B=6),K.email&&(s|=32,B=5),K.objsign&&(s|=16,B=4),K.reserved&&(s|=8,B=3),K.sslCA&&(s|=4,B=2),K.emailCA&&(s|=2,B=1),K.objCA&&(s|=1,B=0),w=String.fromCharCode(B),0!==s&&(w+=String.fromCharCode(s)),K.value=e.create(e.Class.UNIVERSAL,e.Type.BITSTRING,!1,w);else if("subjectAltName"===K.name||"issuerAltName"===K.name){K.value=e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[]);for(var $=0;$<K.altNames.length;++$){if(w=(j=K.altNames[$]).value,7===j.type&&j.ip){if(null===(w=t.util.bytesFromIP(j.ip)))throw(oe=new Error('Extension "ip" value is not a valid IPv4 or IPv6 address.')).extension=K,oe}else 8===j.type&&(w=e.oidToDer(j.oid?e.oidToDer(j.oid):w));K.value.value.push(e.create(e.Class.CONTEXT_SPECIFIC,j.type,!1,w))}}else if("nsComment"===K.name&&re.cert){if(!/^[\x00-\x7F]*$/.test(K.comment)||K.comment.length<1||K.comment.length>128)throw new Error('Invalid "nsComment" content.');K.value=e.create(e.Class.UNIVERSAL,e.Type.IA5STRING,!1,K.comment)}else if("subjectKeyIdentifier"===K.name&&re.cert){var Y=re.cert.generateSubjectKeyIdentifier();K.subjectKeyIdentifier=Y.toHex(),K.value=e.create(e.Class.UNIVERSAL,e.Type.OCTETSTRING,!1,Y.getBytes())}else if("authorityKeyIdentifier"===K.name&&re.cert){if(K.value=e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[]),E=K.value.value,K.keyIdentifier){var u=!0===K.keyIdentifier?re.cert.generateSubjectKeyIdentifier().getBytes():K.keyIdentifier;E.push(e.create(e.Class.CONTEXT_SPECIFIC,0,!1,u))}if(K.authorityCertIssuer){var W=[e.create(e.Class.CONTEXT_SPECIFIC,4,!0,[H(!0===K.authorityCertIssuer?re.cert.issuer:K.authorityCertIssuer)])];E.push(e.create(e.Class.CONTEXT_SPECIFIC,1,!0,W))}if(K.serialNumber){var fe=t.util.hexToBytes(!0===K.serialNumber?re.cert.serialNumber:K.serialNumber);E.push(e.create(e.Class.CONTEXT_SPECIFIC,2,!1,fe))}}else if("cRLDistributionPoints"===K.name){K.value=e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[]),E=K.value.value;var j,ae=e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[]),ye=e.create(e.Class.CONTEXT_SPECIFIC,0,!0,[]);for($=0;$<K.altNames.length;++$){if(w=(j=K.altNames[$]).value,7===j.type&&j.ip){if(null===(w=t.util.bytesFromIP(j.ip)))throw(oe=new Error('Extension "ip" value is not a valid IPv4 or IPv6 address.')).extension=K,oe}else 8===j.type&&(w=e.oidToDer(j.oid?e.oidToDer(j.oid):w));ye.value.push(e.create(e.Class.CONTEXT_SPECIFIC,j.type,!1,w))}ae.value.push(e.create(e.Class.CONTEXT_SPECIFIC,0,!0,[ye])),E.push(ae)}var oe;if(typeof K.value>"u")throw(oe=new Error("Extension value not specified.")).extension=K,oe;return K}function U(K,re){if(K===h["RSASSA-PSS"]){var oe=[];return void 0!==re.hash.algorithmOid&&oe.push(e.create(e.Class.CONTEXT_SPECIFIC,0,!0,[e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[e.create(e.Class.UNIVERSAL,e.Type.OID,!1,e.oidToDer(re.hash.algorithmOid).getBytes()),e.create(e.Class.UNIVERSAL,e.Type.NULL,!1,"")])])),void 0!==re.mgf.algorithmOid&&oe.push(e.create(e.Class.CONTEXT_SPECIFIC,1,!0,[e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[e.create(e.Class.UNIVERSAL,e.Type.OID,!1,e.oidToDer(re.mgf.algorithmOid).getBytes()),e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[e.create(e.Class.UNIVERSAL,e.Type.OID,!1,e.oidToDer(re.mgf.hash.algorithmOid).getBytes()),e.create(e.Class.UNIVERSAL,e.Type.NULL,!1,"")])])])),void 0!==re.saltLength&&oe.push(e.create(e.Class.CONTEXT_SPECIFIC,2,!0,[e.create(e.Class.UNIVERSAL,e.Type.INTEGER,!1,e.integerToDer(re.saltLength).getBytes())])),e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,oe)}return e.create(e.Class.UNIVERSAL,e.Type.NULL,!1,"")}function q(K){var re=e.create(e.Class.CONTEXT_SPECIFIC,0,!0,[]);if(0===K.attributes.length)return re;for(var oe=K.attributes,B=0;B<oe.length;++B){var s=oe[B],_=s.value,w=e.Type.UTF8;"valueTagClass"in s&&(w=s.valueTagClass),w===e.Type.UTF8&&(_=t.util.encodeUtf8(_));var E=!1;"valueConstructed"in s&&(E=s.valueConstructed);var x=e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[e.create(e.Class.UNIVERSAL,e.Type.OID,!1,e.oidToDer(s.type).getBytes()),e.create(e.Class.UNIVERSAL,e.Type.SET,!0,[e.create(e.Class.UNIVERSAL,w,E,_)])]);re.value.push(x)}return re}l.certificateFromPem=function(K,re,oe){var B=t.pem.decode(K)[0];if("CERTIFICATE"!==B.type&&"X509 CERTIFICATE"!==B.type&&"TRUSTED CERTIFICATE"!==B.type){var s=new Error('Could not convert certificate from PEM; PEM header type is not "CERTIFICATE", "X509 CERTIFICATE", or "TRUSTED CERTIFICATE".');throw s.headerType=B.type,s}if(B.procType&&"ENCRYPTED"===B.procType.type)throw new Error("Could not convert certificate from PEM; PEM is encrypted.");var _=e.fromDer(B.body,oe);return l.certificateFromAsn1(_,re)},l.certificateToPem=function(K,re){var oe={type:"CERTIFICATE",body:e.toDer(l.certificateToAsn1(K)).getBytes()};return t.pem.encode(oe,{maxline:re})},l.publicKeyFromPem=function(K){var re=t.pem.decode(K)[0];if("PUBLIC KEY"!==re.type&&"RSA PUBLIC KEY"!==re.type){var oe=new Error('Could not convert public key from PEM; PEM header type is not "PUBLIC KEY" or "RSA PUBLIC KEY".');throw oe.headerType=re.type,oe}if(re.procType&&"ENCRYPTED"===re.procType.type)throw new Error("Could not convert public key from PEM; PEM is encrypted.");var B=e.fromDer(re.body);return l.publicKeyFromAsn1(B)},l.publicKeyToPem=function(K,re){var oe={type:"PUBLIC KEY",body:e.toDer(l.publicKeyToAsn1(K)).getBytes()};return t.pem.encode(oe,{maxline:re})},l.publicKeyToRSAPublicKeyPem=function(K,re){var oe={type:"RSA PUBLIC KEY",body:e.toDer(l.publicKeyToRSAPublicKey(K)).getBytes()};return t.pem.encode(oe,{maxline:re})},l.getPublicKeyFingerprint=function(K,re){var s,oe=(re=re||{}).md||t.md.sha1.create();switch(re.type||"RSAPublicKey"){case"RSAPublicKey":s=e.toDer(l.publicKeyToRSAPublicKey(K)).getBytes();break;case"SubjectPublicKeyInfo":s=e.toDer(l.publicKeyToAsn1(K)).getBytes();break;default:throw new Error('Unknown fingerprint type "'+re.type+'".')}oe.start(),oe.update(s);var _=oe.digest();if("hex"===re.encoding){var w=_.toHex();return re.delimiter?w.match(/.{2}/g).join(re.delimiter):w}if("binary"===re.encoding)return _.getBytes();if(re.encoding)throw new Error('Unknown encoding "'+re.encoding+'".');return _},l.certificationRequestFromPem=function(K,re,oe){var B=t.pem.decode(K)[0];if("CERTIFICATE REQUEST"!==B.type){var s=new Error('Could not convert certification request from PEM; PEM header type is not "CERTIFICATE REQUEST".');throw s.headerType=B.type,s}if(B.procType&&"ENCRYPTED"===B.procType.type)throw new Error("Could not convert certification request from PEM; PEM is encrypted.");var _=e.fromDer(B.body,oe);return l.certificationRequestFromAsn1(_,re)},l.certificationRequestToPem=function(K,re){var oe={type:"CERTIFICATE REQUEST",body:e.toDer(l.certificationRequestToAsn1(K)).getBytes()};return t.pem.encode(oe,{maxline:re})},l.createCertificate=function(){var K={version:2,serialNumber:"00",signatureOid:null,signature:null,siginfo:{}};return K.siginfo.algorithmOid=null,K.validity={},K.validity.notBefore=new Date,K.validity.notAfter=new Date,K.issuer={},K.issuer.getField=function(re){return C(K.issuer,re)},K.issuer.addField=function(re){V([re]),K.issuer.attributes.push(re)},K.issuer.attributes=[],K.issuer.hash=null,K.subject={},K.subject.getField=function(re){return C(K.subject,re)},K.subject.addField=function(re){V([re]),K.subject.attributes.push(re)},K.subject.attributes=[],K.subject.hash=null,K.extensions=[],K.publicKey=null,K.md=null,K.setSubject=function(re,oe){V(re),K.subject.attributes=re,delete K.subject.uniqueId,oe&&(K.subject.uniqueId=oe),K.subject.hash=null},K.setIssuer=function(re,oe){V(re),K.issuer.attributes=re,delete K.issuer.uniqueId,oe&&(K.issuer.uniqueId=oe),K.issuer.hash=null},K.setExtensions=function(re){for(var oe=0;oe<re.length;++oe)D(re[oe],{cert:K});K.extensions=re},K.getExtension=function(re){"string"==typeof re&&(re={name:re});for(var B,oe=null,s=0;null===oe&&s<K.extensions.length;++s)B=K.extensions[s],(re.id&&B.id===re.id||re.name&&B.name===re.name)&&(oe=B);return oe},K.sign=function(re,oe){K.md=oe||t.md.sha1.create();var B=h[K.md.algorithm+"WithRSAEncryption"];if(!B){var s=new Error("Could not compute certificate digest. Unknown message digest algorithm OID.");throw s.algorithm=K.md.algorithm,s}K.signatureOid=K.siginfo.algorithmOid=B,K.tbsCertificate=l.getTBSCertificate(K);var _=e.toDer(K.tbsCertificate);K.md.update(_.getBytes()),K.signature=re.sign(K.md)},K.verify=function(re){var oe=!1;if(!K.issued(re)){var B=re.issuer,s=K.subject,_=new Error("The parent certificate did not issue the given child certificate; the child certificate's issuer does not match the parent's subject.");throw _.expectedIssuer=s.attributes,_.actualIssuer=B.attributes,_}var w=re.md;if(null===w){w=a({signatureOid:re.signatureOid,type:"certificate"});var E=re.tbsCertificate||l.getTBSCertificate(re),x=e.toDer(E);w.update(x.getBytes())}return null!==w&&(oe=O({certificate:K,md:w,signature:re.signature})),oe},K.isIssuer=function(re){var oe=!1,B=K.issuer,s=re.subject;if(B.hash&&s.hash)oe=B.hash===s.hash;else if(B.attributes.length===s.attributes.length){oe=!0;for(var _,w,E=0;oe&&E<B.attributes.length;++E)((_=B.attributes[E]).type!==(w=s.attributes[E]).type||_.value!==w.value)&&(oe=!1)}return oe},K.issued=function(re){return re.isIssuer(K)},K.generateSubjectKeyIdentifier=function(){return l.getPublicKeyFingerprint(K.publicKey,{type:"RSAPublicKey"})},K.verifySubjectKeyIdentifier=function(){for(var re=h.subjectKeyIdentifier,oe=0;oe<K.extensions.length;++oe){var B=K.extensions[oe];if(B.id===re){var s=K.generateSubjectKeyIdentifier().getBytes();return t.util.hexToBytes(B.subjectKeyIdentifier)===s}}return!1},K},l.certificateFromAsn1=function(K,re){var oe={},B=[];if(!e.validate(K,y,oe,B)){var s=new Error("Cannot read X.509 certificate. ASN.1 object is not an X509v3 Certificate.");throw s.errors=B,s}if(e.derToOid(oe.publicKeyOid)!==l.oids.rsaEncryption)throw new Error("Cannot read public key. OID is not RSA.");var w=l.createCertificate();w.version=oe.certVersion?oe.certVersion.charCodeAt(0):0;var E=t.util.createBuffer(oe.certSerialNumber);w.serialNumber=E.toHex(),w.signatureOid=t.asn1.derToOid(oe.certSignatureOid),w.signatureParameters=N(w.signatureOid,oe.certSignatureParams,!0),w.siginfo.algorithmOid=t.asn1.derToOid(oe.certinfoSignatureOid),w.siginfo.parameters=N(w.siginfo.algorithmOid,oe.certinfoSignatureParams,!1),w.signature=oe.certSignature;var x=[];if(void 0!==oe.certValidity1UTCTime&&x.push(e.utcTimeToDate(oe.certValidity1UTCTime)),void 0!==oe.certValidity2GeneralizedTime&&x.push(e.generalizedTimeToDate(oe.certValidity2GeneralizedTime)),void 0!==oe.certValidity3UTCTime&&x.push(e.utcTimeToDate(oe.certValidity3UTCTime)),void 0!==oe.certValidity4GeneralizedTime&&x.push(e.generalizedTimeToDate(oe.certValidity4GeneralizedTime)),x.length>2)throw new Error("Cannot read notBefore/notAfter validity times; more than two times were provided in the certificate.");if(x.length<2)throw new Error("Cannot read notBefore/notAfter validity times; they were not provided as either UTCTime or GeneralizedTime.");if(w.validity.notBefore=x[0],w.validity.notAfter=x[1],w.tbsCertificate=oe.tbsCertificate,re){w.md=a({signatureOid:w.signatureOid,type:"certificate"});var j=e.toDer(w.tbsCertificate);w.md.update(j.getBytes())}var $=t.md.sha1.create(),Y=e.toDer(oe.certIssuer);$.update(Y.getBytes()),w.issuer.getField=function(fe){return C(w.issuer,fe)},w.issuer.addField=function(fe){V([fe]),w.issuer.attributes.push(fe)},w.issuer.attributes=l.RDNAttributesAsArray(oe.certIssuer),oe.certIssuerUniqueId&&(w.issuer.uniqueId=oe.certIssuerUniqueId),w.issuer.hash=$.digest().toHex();var u=t.md.sha1.create(),W=e.toDer(oe.certSubject);return u.update(W.getBytes()),w.subject.getField=function(fe){return C(w.subject,fe)},w.subject.addField=function(fe){V([fe]),w.subject.attributes.push(fe)},w.subject.attributes=l.RDNAttributesAsArray(oe.certSubject),oe.certSubjectUniqueId&&(w.subject.uniqueId=oe.certSubjectUniqueId),w.subject.hash=u.digest().toHex(),w.extensions=oe.certExtensions?l.certificateExtensionsFromAsn1(oe.certExtensions):[],w.publicKey=l.publicKeyFromAsn1(oe.subjectPublicKeyInfo),w},l.certificateExtensionsFromAsn1=function(K){for(var re=[],oe=0;oe<K.value.length;++oe)for(var B=K.value[oe],s=0;s<B.value.length;++s)re.push(l.certificateExtensionFromAsn1(B.value[s]));return re},l.certificateExtensionFromAsn1=function(K){var re={};if(re.id=e.derToOid(K.value[0].value),re.critical=!1,K.value[1].type===e.Type.BOOLEAN?(re.critical=0!==K.value[1].value.charCodeAt(0),re.value=K.value[2].value):re.value=K.value[1].value,re.id in h)if(re.name=h[re.id],"keyUsage"===re.name){var B=0,s=0;(oe=e.fromDer(re.value)).value.length>1&&(B=oe.value.charCodeAt(1),s=oe.value.length>2?oe.value.charCodeAt(2):0),re.digitalSignature=128==(128&B),re.nonRepudiation=64==(64&B),re.keyEncipherment=32==(32&B),re.dataEncipherment=16==(16&B),re.keyAgreement=8==(8&B),re.keyCertSign=4==(4&B),re.cRLSign=2==(2&B),re.encipherOnly=1==(1&B),re.decipherOnly=128==(128&s)}else if("basicConstraints"===re.name){var oe=e.fromDer(re.value);re.cA=oe.value.length>0&&oe.value[0].type===e.Type.BOOLEAN&&0!==oe.value[0].value.charCodeAt(0);var _=null;oe.value.length>0&&oe.value[0].type===e.Type.INTEGER?_=oe.value[0].value:oe.value.length>1&&(_=oe.value[1].value),null!==_&&(re.pathLenConstraint=e.derToInteger(_))}else if("extKeyUsage"===re.name){oe=e.fromDer(re.value);for(var w=0;w<oe.value.length;++w){var E=e.derToOid(oe.value[w].value);E in h?re[h[E]]=!0:re[E]=!0}}else if("nsCertType"===re.name)B=0,(oe=e.fromDer(re.value)).value.length>1&&(B=oe.value.charCodeAt(1)),re.client=128==(128&B),re.server=64==(64&B),re.email=32==(32&B),re.objsign=16==(16&B),re.reserved=8==(8&B),re.sslCA=4==(4&B),re.emailCA=2==(2&B),re.objCA=1==(1&B);else if("subjectAltName"===re.name||"issuerAltName"===re.name){re.altNames=[],oe=e.fromDer(re.value);for(var x,j=0;j<oe.value.length;++j){var $={type:(x=oe.value[j]).type,value:x.value};switch(re.altNames.push($),x.type){case 1:case 2:case 6:break;case 7:$.ip=t.util.bytesToIP(x.value);break;case 8:$.oid=e.derToOid(x.value)}}}else"subjectKeyIdentifier"===re.name&&(oe=e.fromDer(re.value),re.subjectKeyIdentifier=t.util.bytesToHex(oe.value));return re},l.certificationRequestFromAsn1=function(K,re){var oe={},B=[];if(!e.validate(K,f,oe,B)){var s=new Error("Cannot read PKCS#10 certificate request. ASN.1 object is not a PKCS#10 CertificationRequest.");throw s.errors=B,s}if(e.derToOid(oe.publicKeyOid)!==l.oids.rsaEncryption)throw new Error("Cannot read public key. OID is not RSA.");var w=l.createCertificationRequest();if(w.version=oe.csrVersion?oe.csrVersion.charCodeAt(0):0,w.signatureOid=t.asn1.derToOid(oe.csrSignatureOid),w.signatureParameters=N(w.signatureOid,oe.csrSignatureParams,!0),w.siginfo.algorithmOid=t.asn1.derToOid(oe.csrSignatureOid),w.siginfo.parameters=N(w.siginfo.algorithmOid,oe.csrSignatureParams,!1),w.signature=oe.csrSignature,w.certificationRequestInfo=oe.certificationRequestInfo,re){w.md=a({signatureOid:w.signatureOid,type:"certification request"});var E=e.toDer(w.certificationRequestInfo);w.md.update(E.getBytes())}var x=t.md.sha1.create();return w.subject.getField=function(j){return C(w.subject,j)},w.subject.addField=function(j){V([j]),w.subject.attributes.push(j)},w.subject.attributes=l.RDNAttributesAsArray(oe.certificationRequestInfoSubject,x),w.subject.hash=x.digest().toHex(),w.publicKey=l.publicKeyFromAsn1(oe.subjectPublicKeyInfo),w.getAttribute=function(j){return C(w,j)},w.addAttribute=function(j){V([j]),w.attributes.push(j)},w.attributes=l.CRIAttributesAsArray(oe.certificationRequestInfoAttributes||[]),w},l.createCertificationRequest=function(){var K={version:0,signatureOid:null,signature:null,siginfo:{}};return K.siginfo.algorithmOid=null,K.subject={},K.subject.getField=function(re){return C(K.subject,re)},K.subject.addField=function(re){V([re]),K.subject.attributes.push(re)},K.subject.attributes=[],K.subject.hash=null,K.publicKey=null,K.attributes=[],K.getAttribute=function(re){return C(K,re)},K.addAttribute=function(re){V([re]),K.attributes.push(re)},K.md=null,K.setSubject=function(re){V(re),K.subject.attributes=re,K.subject.hash=null},K.setAttributes=function(re){V(re),K.attributes=re},K.sign=function(re,oe){K.md=oe||t.md.sha1.create();var B=h[K.md.algorithm+"WithRSAEncryption"];if(!B){var s=new Error("Could not compute certification request digest. Unknown message digest algorithm OID.");throw s.algorithm=K.md.algorithm,s}K.signatureOid=K.siginfo.algorithmOid=B,K.certificationRequestInfo=l.getCertificationRequestInfo(K);var _=e.toDer(K.certificationRequestInfo);K.md.update(_.getBytes()),K.signature=re.sign(K.md)},K.verify=function(){var re=!1,oe=K.md;if(null===oe){oe=a({signatureOid:K.signatureOid,type:"certification request"});var B=K.certificationRequestInfo||l.getCertificationRequestInfo(K),s=e.toDer(B);oe.update(s.getBytes())}return null!==oe&&(re=O({certificate:K,md:oe,signature:K.signature})),re},K};var J=new Date("1950-01-01T00:00:00Z"),G=new Date("2050-01-01T00:00:00Z");function ie(K){return K>=J&&K<G?e.create(e.Class.UNIVERSAL,e.Type.UTCTIME,!1,e.dateToUtcTime(K)):e.create(e.Class.UNIVERSAL,e.Type.GENERALIZEDTIME,!1,e.dateToGeneralizedTime(K))}l.getTBSCertificate=function(K){var re=ie(K.validity.notBefore),oe=ie(K.validity.notAfter),B=e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[e.create(e.Class.CONTEXT_SPECIFIC,0,!0,[e.create(e.Class.UNIVERSAL,e.Type.INTEGER,!1,e.integerToDer(K.version).getBytes())]),e.create(e.Class.UNIVERSAL,e.Type.INTEGER,!1,t.util.hexToBytes(K.serialNumber)),e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[e.create(e.Class.UNIVERSAL,e.Type.OID,!1,e.oidToDer(K.siginfo.algorithmOid).getBytes()),U(K.siginfo.algorithmOid,K.siginfo.parameters)]),H(K.issuer),e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[re,oe]),H(K.subject),l.publicKeyToAsn1(K.publicKey)]);return K.issuer.uniqueId&&B.value.push(e.create(e.Class.CONTEXT_SPECIFIC,1,!0,[e.create(e.Class.UNIVERSAL,e.Type.BITSTRING,!1,String.fromCharCode(0)+K.issuer.uniqueId)])),K.subject.uniqueId&&B.value.push(e.create(e.Class.CONTEXT_SPECIFIC,2,!0,[e.create(e.Class.UNIVERSAL,e.Type.BITSTRING,!1,String.fromCharCode(0)+K.subject.uniqueId)])),K.extensions.length>0&&B.value.push(l.certificateExtensionsToAsn1(K.extensions)),B},l.getCertificationRequestInfo=function(K){return e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[e.create(e.Class.UNIVERSAL,e.Type.INTEGER,!1,e.integerToDer(K.version).getBytes()),H(K.subject),l.publicKeyToAsn1(K.publicKey),q(K)])},l.distinguishedNameToAsn1=function(K){return H(K)},l.certificateToAsn1=function(K){var re=K.tbsCertificate||l.getTBSCertificate(K);return e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[re,e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[e.create(e.Class.UNIVERSAL,e.Type.OID,!1,e.oidToDer(K.signatureOid).getBytes()),U(K.signatureOid,K.signatureParameters)]),e.create(e.Class.UNIVERSAL,e.Type.BITSTRING,!1,String.fromCharCode(0)+K.signature)])},l.certificateExtensionsToAsn1=function(K){var re=e.create(e.Class.CONTEXT_SPECIFIC,3,!0,[]),oe=e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[]);re.value.push(oe);for(var B=0;B<K.length;++B)oe.value.push(l.certificateExtensionToAsn1(K[B]));return re},l.certificateExtensionToAsn1=function(K){var re=e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[]);re.value.push(e.create(e.Class.UNIVERSAL,e.Type.OID,!1,e.oidToDer(K.id).getBytes())),K.critical&&re.value.push(e.create(e.Class.UNIVERSAL,e.Type.BOOLEAN,!1,String.fromCharCode(255)));var oe=K.value;return"string"!=typeof K.value&&(oe=e.toDer(oe).getBytes()),re.value.push(e.create(e.Class.UNIVERSAL,e.Type.OCTETSTRING,!1,oe)),re},l.certificationRequestToAsn1=function(K){var re=K.certificationRequestInfo||l.getCertificationRequestInfo(K);return e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[re,e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[e.create(e.Class.UNIVERSAL,e.Type.OID,!1,e.oidToDer(K.signatureOid).getBytes()),U(K.signatureOid,K.signatureParameters)]),e.create(e.Class.UNIVERSAL,e.Type.BITSTRING,!1,String.fromCharCode(0)+K.signature)])},l.createCaStore=function(K){var re={certs:{}};function oe(w){return B(w),re.certs[w.hash]||null}function B(w){if(!w.hash){var E=t.md.sha1.create();w.attributes=l.RDNAttributesAsArray(H(w),E),w.hash=E.digest().toHex()}}if(re.getIssuer=function(w){return oe(w.issuer)},re.addCertificate=function(w){if("string"==typeof w&&(w=t.pki.certificateFromPem(w)),B(w.subject),!re.hasCertificate(w))if(w.subject.hash in re.certs){var E=re.certs[w.subject.hash];t.util.isArray(E)||(E=[E]),E.push(w),re.certs[w.subject.hash]=E}else re.certs[w.subject.hash]=w},re.hasCertificate=function(w){"string"==typeof w&&(w=t.pki.certificateFromPem(w));var E=oe(w.subject);if(!E)return!1;t.util.isArray(E)||(E=[E]);for(var x=e.toDer(l.certificateToAsn1(w)).getBytes(),j=0;j<E.length;++j)if(x===e.toDer(l.certificateToAsn1(E[j])).getBytes())return!0;return!1},re.listAllCertificates=function(){var w=[];for(var E in re.certs)if(re.certs.hasOwnProperty(E)){var x=re.certs[E];if(t.util.isArray(x))for(var j=0;j<x.length;++j)w.push(x[j]);else w.push(x)}return w},re.removeCertificate=function(w){var E;if("string"==typeof w&&(w=t.pki.certificateFromPem(w)),B(w.subject),!re.hasCertificate(w))return null;var x=oe(w.subject);if(!t.util.isArray(x))return E=re.certs[w.subject.hash],delete re.certs[w.subject.hash],E;for(var j=e.toDer(l.certificateToAsn1(w)).getBytes(),$=0;$<x.length;++$)j===e.toDer(l.certificateToAsn1(x[$])).getBytes()&&(E=x[$],x.splice($,1));return 0===x.length&&delete re.certs[w.subject.hash],E},K)for(var s=0;s<K.length;++s)re.addCertificate(K[s]);return re},l.certificateError={bad_certificate:"forge.pki.BadCertificate",unsupported_certificate:"forge.pki.UnsupportedCertificate",certificate_revoked:"forge.pki.CertificateRevoked",certificate_expired:"forge.pki.CertificateExpired",certificate_unknown:"forge.pki.CertificateUnknown",unknown_ca:"forge.pki.UnknownCertificateAuthority"},l.verifyCertificateChain=function(K,re,oe){"function"==typeof oe&&(oe={verify:oe}),oe=oe||{};var B=(re=re.slice(0)).slice(0),s=oe.validityCheckDate;typeof s>"u"&&(s=new Date);var _=!0,w=null,E=0;do{var x=re.shift(),j=null,$=!1;if(s&&(s<x.validity.notBefore||s>x.validity.notAfter)&&(w={message:"Certificate is not valid yet or has expired.",error:l.certificateError.certificate_expired,notBefore:x.validity.notBefore,notAfter:x.validity.notAfter,now:s}),null===w){if(null===(j=re[0]||K.getIssuer(x))&&x.isIssuer(x)&&($=!0,j=x),j){var Y=j;t.util.isArray(Y)||(Y=[Y]);for(var u=!1;!u&&Y.length>0;){j=Y.shift();try{u=j.verify(x)}catch{}}u||(w={message:"Certificate signature is invalid.",error:l.certificateError.bad_certificate})}null===w&&(!j||$)&&!K.hasCertificate(x)&&(w={message:"Certificate is not trusted.",error:l.certificateError.unknown_ca})}if(null===w&&j&&!x.isIssuer(j)&&(w={message:"Certificate issuer is invalid.",error:l.certificateError.bad_certificate}),null===w)for(var W={keyUsage:!0,basicConstraints:!0},fe=0;null===w&&fe<x.extensions.length;++fe){var ae=x.extensions[fe];ae.critical&&!(ae.name in W)&&(w={message:"Certificate has an unsupported critical extension.",error:l.certificateError.unsupported_certificate})}if(null===w&&(!_||0===re.length&&(!j||$))){var ye=x.getExtension("basicConstraints"),Qe=x.getExtension("keyUsage");null!==Qe&&(!Qe.keyCertSign||null===ye)&&(w={message:"Certificate keyUsage or basicConstraints conflict or indicate that the certificate is not a CA. If the certificate is the only one in the chain or isn't the first then the certificate must be a valid CA.",error:l.certificateError.bad_certificate}),null===w&&null!==ye&&!ye.cA&&(w={message:"Certificate basicConstraints indicates the certificate is not a CA.",error:l.certificateError.bad_certificate}),null===w&&null!==Qe&&"pathLenConstraint"in ye&&E-1>ye.pathLenConstraint&&(w={message:"Certificate basicConstraints pathLenConstraint violated.",error:l.certificateError.bad_certificate})}var At=null===w||w.error,Ze=oe.verify?oe.verify(At,E,B):At;if(!0!==Ze)throw!0===At&&(w={message:"The application rejected the certificate.",error:l.certificateError.bad_certificate}),(Ze||0===Ze)&&("object"!=typeof Ze||t.util.isArray(Ze)?"string"==typeof Ze&&(w.error=Ze):(Ze.message&&(w.message=Ze.message),Ze.error&&(w.error=Ze.error))),w;w=null,_=!1,++E}while(re.length>0);return!0}},11364:(M,b,n)=>{"use strict";var r={};(0,n(22189).assign)(r,n(70075),n(49334),n(28077)),M.exports=r},70075:(M,b,n)=>{"use strict";var t=n(1655),e=n(22189),l=n(61404),h=n(51398),r=n(99243),d=Object.prototype.toString;function H(U){if(!(this instanceof H))return new H(U);this.options=e.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},U||{});var q=this.options;q.raw&&q.windowBits>0?q.windowBits=-q.windowBits:q.gzip&&q.windowBits>0&&q.windowBits<16&&(q.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new r,this.strm.avail_out=0;var J=t.deflateInit2(this.strm,q.level,q.method,q.windowBits,q.memLevel,q.strategy);if(0!==J)throw new Error(h[J]);if(q.header&&t.deflateSetHeader(this.strm,q.header),q.dictionary){var G;if(G="string"==typeof q.dictionary?l.string2buf(q.dictionary):"[object ArrayBuffer]"===d.call(q.dictionary)?new Uint8Array(q.dictionary):q.dictionary,0!==(J=t.deflateSetDictionary(this.strm,G)))throw new Error(h[J]);this._dict_set=!0}}function F(U,q){var J=new H(q);if(J.push(U,!0),J.err)throw J.msg||h[J.err];return J.result}H.prototype.push=function(U,q){var ie,K,J=this.strm,G=this.options.chunkSize;if(this.ended)return!1;K=q===~~q?q:!0===q?4:0,J.input="string"==typeof U?l.string2buf(U):"[object ArrayBuffer]"===d.call(U)?new Uint8Array(U):U,J.next_in=0,J.avail_in=J.input.length;do{if(0===J.avail_out&&(J.output=new e.Buf8(G),J.next_out=0,J.avail_out=G),1!==(ie=t.deflate(J,K))&&0!==ie)return this.onEnd(ie),this.ended=!0,!1;(0===J.avail_out||0===J.avail_in&&(4===K||2===K))&&this.onData("string"===this.options.to?l.buf2binstring(e.shrinkBuf(J.output,J.next_out)):e.shrinkBuf(J.output,J.next_out))}while((J.avail_in>0||0===J.avail_out)&&1!==ie);return 4===K?(ie=t.deflateEnd(this.strm),this.onEnd(ie),this.ended=!0,0===ie):(2===K&&(this.onEnd(0),J.avail_out=0),!0)},H.prototype.onData=function(U){this.chunks.push(U)},H.prototype.onEnd=function(U){0===U&&(this.result="string"===this.options.to?this.chunks.join(""):e.flattenChunks(this.chunks)),this.chunks=[],this.err=U,this.msg=this.strm.msg},b.Deflate=H,b.deflate=F,b.deflateRaw=function V(U,q){return(q=q||{}).raw=!0,F(U,q)},b.gzip=function D(U,q){return(q=q||{}).gzip=!0,F(U,q)}},49334:(M,b,n)=>{"use strict";var t=n(44010),e=n(22189),l=n(61404),h=n(28077),r=n(51398),d=n(99243),y=n(53826),g=Object.prototype.toString;function p(N){if(!(this instanceof p))return new p(N);this.options=e.assign({chunkSize:16384,windowBits:0,to:""},N||{});var a=this.options;a.raw&&a.windowBits>=0&&a.windowBits<16&&(a.windowBits=-a.windowBits,0===a.windowBits&&(a.windowBits=-15)),a.windowBits>=0&&a.windowBits<16&&!(N&&N.windowBits)&&(a.windowBits+=32),a.windowBits>15&&a.windowBits<48&&0==(15&a.windowBits)&&(a.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new d,this.strm.avail_out=0;var O=t.inflateInit2(this.strm,a.windowBits);if(O!==h.Z_OK)throw new Error(r[O]);if(this.header=new y,t.inflateGetHeader(this.strm,this.header),a.dictionary&&("string"==typeof a.dictionary?a.dictionary=l.string2buf(a.dictionary):"[object ArrayBuffer]"===g.call(a.dictionary)&&(a.dictionary=new Uint8Array(a.dictionary)),a.raw&&(O=t.inflateSetDictionary(this.strm,a.dictionary))!==h.Z_OK))throw new Error(r[O])}function f(N,a){var O=new p(a);if(O.push(N,!0),O.err)throw O.msg||r[O.err];return O.result}p.prototype.push=function(N,a){var V,D,U,q,J,O=this.strm,H=this.options.chunkSize,F=this.options.dictionary,G=!1;if(this.ended)return!1;D=a===~~a?a:!0===a?h.Z_FINISH:h.Z_NO_FLUSH,O.input="string"==typeof N?l.binstring2buf(N):"[object ArrayBuffer]"===g.call(N)?new Uint8Array(N):N,O.next_in=0,O.avail_in=O.input.length;do{if(0===O.avail_out&&(O.output=new e.Buf8(H),O.next_out=0,O.avail_out=H),(V=t.inflate(O,h.Z_NO_FLUSH))===h.Z_NEED_DICT&&F&&(V=t.inflateSetDictionary(this.strm,F)),V===h.Z_BUF_ERROR&&!0===G&&(V=h.Z_OK,G=!1),V!==h.Z_STREAM_END&&V!==h.Z_OK)return this.onEnd(V),this.ended=!0,!1;O.next_out&&(0===O.avail_out||V===h.Z_STREAM_END||0===O.avail_in&&(D===h.Z_FINISH||D===h.Z_SYNC_FLUSH))&&("string"===this.options.to?(U=l.utf8border(O.output,O.next_out),q=O.next_out-U,J=l.buf2string(O.output,U),O.next_out=q,O.avail_out=H-q,q&&e.arraySet(O.output,O.output,U,q,0),this.onData(J)):this.onData(e.shrinkBuf(O.output,O.next_out))),0===O.avail_in&&0===O.avail_out&&(G=!0)}while((O.avail_in>0||0===O.avail_out)&&V!==h.Z_STREAM_END);return V===h.Z_STREAM_END&&(D=h.Z_FINISH),D===h.Z_FINISH?(V=t.inflateEnd(this.strm),this.onEnd(V),this.ended=!0,V===h.Z_OK):(D===h.Z_SYNC_FLUSH&&(this.onEnd(h.Z_OK),O.avail_out=0),!0)},p.prototype.onData=function(N){this.chunks.push(N)},p.prototype.onEnd=function(N){N===h.Z_OK&&(this.result="string"===this.options.to?this.chunks.join(""):e.flattenChunks(this.chunks)),this.chunks=[],this.err=N,this.msg=this.strm.msg},b.Inflate=p,b.inflate=f,b.inflateRaw=function C(N,a){return(a=a||{}).raw=!0,f(N,a)},b.ungzip=f},22189:(M,b)=>{"use strict";var n=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function t(h,r){return Object.prototype.hasOwnProperty.call(h,r)}b.assign=function(h){for(var r=Array.prototype.slice.call(arguments,1);r.length;){var d=r.shift();if(d){if("object"!=typeof d)throw new TypeError(d+"must be non-object");for(var y in d)t(d,y)&&(h[y]=d[y])}}return h},b.shrinkBuf=function(h,r){return h.length===r?h:h.subarray?h.subarray(0,r):(h.length=r,h)};var e={arraySet:function(h,r,d,y,g){if(r.subarray&&h.subarray)h.set(r.subarray(d,d+y),g);else for(var p=0;p<y;p++)h[g+p]=r[d+p]},flattenChunks:function(h){var r,d,y,g,p,f;for(y=0,r=0,d=h.length;r<d;r++)y+=h[r].length;for(f=new Uint8Array(y),g=0,r=0,d=h.length;r<d;r++)f.set(p=h[r],g),g+=p.length;return f}},l={arraySet:function(h,r,d,y,g){for(var p=0;p<y;p++)h[g+p]=r[d+p]},flattenChunks:function(h){return[].concat.apply([],h)}};b.setTyped=function(h){h?(b.Buf8=Uint8Array,b.Buf16=Uint16Array,b.Buf32=Int32Array,b.assign(b,e)):(b.Buf8=Array,b.Buf16=Array,b.Buf32=Array,b.assign(b,l))},b.setTyped(n)},61404:(M,b,n)=>{"use strict";var t=n(22189),e=!0,l=!0;try{String.fromCharCode.apply(null,[0])}catch{e=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{l=!1}for(var h=new t.Buf8(256),r=0;r<256;r++)h[r]=r>=252?6:r>=248?5:r>=240?4:r>=224?3:r>=192?2:1;function d(y,g){if(g<65534&&(y.subarray&&l||!y.subarray&&e))return String.fromCharCode.apply(null,t.shrinkBuf(y,g));for(var p="",f=0;f<g;f++)p+=String.fromCharCode(y[f]);return p}h[254]=h[254]=1,b.string2buf=function(y){var g,p,f,C,N,a=y.length,O=0;for(C=0;C<a;C++)55296==(64512&(p=y.charCodeAt(C)))&&C+1<a&&56320==(64512&(f=y.charCodeAt(C+1)))&&(p=65536+(p-55296<<10)+(f-56320),C++),O+=p<128?1:p<2048?2:p<65536?3:4;for(g=new t.Buf8(O),N=0,C=0;N<O;C++)55296==(64512&(p=y.charCodeAt(C)))&&C+1<a&&56320==(64512&(f=y.charCodeAt(C+1)))&&(p=65536+(p-55296<<10)+(f-56320),C++),p<128?g[N++]=p:p<2048?(g[N++]=192|p>>>6,g[N++]=128|63&p):p<65536?(g[N++]=224|p>>>12,g[N++]=128|p>>>6&63,g[N++]=128|63&p):(g[N++]=240|p>>>18,g[N++]=128|p>>>12&63,g[N++]=128|p>>>6&63,g[N++]=128|63&p);return g},b.buf2binstring=function(y){return d(y,y.length)},b.binstring2buf=function(y){for(var g=new t.Buf8(y.length),p=0,f=g.length;p<f;p++)g[p]=y.charCodeAt(p);return g},b.buf2string=function(y,g){var p,f,C,N,a=g||y.length,O=new Array(2*a);for(f=0,p=0;p<a;)if((C=y[p++])<128)O[f++]=C;else if((N=h[C])>4)O[f++]=65533,p+=N-1;else{for(C&=2===N?31:3===N?15:7;N>1&&p<a;)C=C<<6|63&y[p++],N--;N>1?O[f++]=65533:C<65536?O[f++]=C:(O[f++]=55296|(C-=65536)>>10&1023,O[f++]=56320|1023&C)}return d(O,f)},b.utf8border=function(y,g){var p;for((g=g||y.length)>y.length&&(g=y.length),p=g-1;p>=0&&128==(192&y[p]);)p--;return p<0||0===p?g:p+h[y[p]]>g?p:g}},91994:M=>{"use strict";M.exports=function b(n,t,e,l){for(var h=65535&n|0,r=n>>>16&65535|0,d=0;0!==e;){e-=d=e>2e3?2e3:e;do{r=r+(h=h+t[l++]|0)|0}while(--d);h%=65521,r%=65521}return h|r<<16|0}},28077:M=>{"use strict";M.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},82394:M=>{"use strict";var n=function b(){for(var e,l=[],h=0;h<256;h++){e=h;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;l[h]=e}return l}();M.exports=function t(e,l,h,r){var d=n,y=r+h;e^=-1;for(var g=r;g<y;g++)e=e>>>8^d[255&(e^l[g])];return-1^e}},1655:(M,b,n)=>{"use strict";var Me,t=n(22189),e=n(40621),l=n(91994),h=n(82394),r=n(51398),a=-2,Y=258,u=262;function be(Ue,Pt){return Ue.msg=r[Pt],Pt}function Te(Ue){return(Ue<<1)-(Ue>4?9:0)}function $e(Ue){for(var Pt=Ue.length;--Pt>=0;)Ue[Pt]=0}function ft(Ue){var Pt=Ue.state,He=Pt.pending;He>Ue.avail_out&&(He=Ue.avail_out),0!==He&&(t.arraySet(Ue.output,Pt.pending_buf,Pt.pending_out,He,Ue.next_out),Ue.next_out+=He,Pt.pending_out+=He,Ue.total_out+=He,Ue.avail_out-=He,Pt.pending-=He,0===Pt.pending&&(Pt.pending_out=0))}function Ge(Ue,Pt){e._tr_flush_block(Ue,Ue.block_start>=0?Ue.block_start:-1,Ue.strstart-Ue.block_start,Pt),Ue.block_start=Ue.strstart,ft(Ue.strm)}function Ft(Ue,Pt){Ue.pending_buf[Ue.pending++]=Pt}function br(Ue,Pt){Ue.pending_buf[Ue.pending++]=Pt>>>8&255,Ue.pending_buf[Ue.pending++]=255&Pt}function rt(Ue,Pt,He,tt){var Ke=Ue.avail_in;return Ke>tt&&(Ke=tt),0===Ke?0:(Ue.avail_in-=Ke,t.arraySet(Pt,Ue.input,Ue.next_in,Ke,He),1===Ue.state.wrap?Ue.adler=l(Ue.adler,Pt,Ke,He):2===Ue.state.wrap&&(Ue.adler=h(Ue.adler,Pt,Ke,He)),Ue.next_in+=Ke,Ue.total_in+=Ke,Ke)}function st(Ue,Pt){var Ke,kt,He=Ue.max_chain_length,tt=Ue.strstart,xe=Ue.prev_length,Fe=Ue.nice_match,lt=Ue.strstart>Ue.w_size-u?Ue.strstart-(Ue.w_size-u):0,St=Ue.window,qe=Ue.w_mask,ke=Ue.prev,ct=Ue.strstart+Y,vt=St[tt+xe-1],$t=St[tt+xe];Ue.prev_length>=Ue.good_match&&(He>>=2),Fe>Ue.lookahead&&(Fe=Ue.lookahead);do{if(St[(Ke=Pt)+xe]===$t&&St[Ke+xe-1]===vt&&St[Ke]===St[tt]&&St[++Ke]===St[tt+1]){tt+=2,Ke++;do{}while(St[++tt]===St[++Ke]&&St[++tt]===St[++Ke]&&St[++tt]===St[++Ke]&&St[++tt]===St[++Ke]&&St[++tt]===St[++Ke]&&St[++tt]===St[++Ke]&&St[++tt]===St[++Ke]&&St[++tt]===St[++Ke]&&tt<ct);if(kt=Y-(ct-tt),tt=ct-Y,kt>xe){if(Ue.match_start=Pt,xe=kt,kt>=Fe)break;vt=St[tt+xe-1],$t=St[tt+xe]}}}while((Pt=ke[Pt&qe])>lt&&0!=--He);return xe<=Ue.lookahead?xe:Ue.lookahead}function Dt(Ue){var He,tt,Ke,kt,xe,Pt=Ue.w_size;do{if(kt=Ue.window_size-Ue.lookahead-Ue.strstart,Ue.strstart>=Pt+(Pt-u)){t.arraySet(Ue.window,Ue.window,Pt,Pt,0),Ue.match_start-=Pt,Ue.strstart-=Pt,Ue.block_start-=Pt,He=tt=Ue.hash_size;do{Ke=Ue.head[--He],Ue.head[He]=Ke>=Pt?Ke-Pt:0}while(--tt);He=tt=Pt;do{Ke=Ue.prev[--He],Ue.prev[He]=Ke>=Pt?Ke-Pt:0}while(--tt);kt+=Pt}if(0===Ue.strm.avail_in)break;if(tt=rt(Ue.strm,Ue.window,Ue.strstart+Ue.lookahead,kt),Ue.lookahead+=tt,Ue.lookahead+Ue.insert>=3)for(Ue.ins_h=Ue.window[xe=Ue.strstart-Ue.insert],Ue.ins_h=(Ue.ins_h<<Ue.hash_shift^Ue.window[xe+1])&Ue.hash_mask;Ue.insert&&(Ue.ins_h=(Ue.ins_h<<Ue.hash_shift^Ue.window[xe+3-1])&Ue.hash_mask,Ue.prev[xe&Ue.w_mask]=Ue.head[Ue.ins_h],Ue.head[Ue.ins_h]=xe,xe++,Ue.insert--,!(Ue.lookahead+Ue.insert<3)););}while(Ue.lookahead<u&&0!==Ue.strm.avail_in)}function nt(Ue,Pt){for(var He,tt;;){if(Ue.lookahead<u){if(Dt(Ue),Ue.lookahead<u&&0===Pt)return 1;if(0===Ue.lookahead)break}if(He=0,Ue.lookahead>=3&&(Ue.ins_h=(Ue.ins_h<<Ue.hash_shift^Ue.window[Ue.strstart+3-1])&Ue.hash_mask,He=Ue.prev[Ue.strstart&Ue.w_mask]=Ue.head[Ue.ins_h],Ue.head[Ue.ins_h]=Ue.strstart),0!==He&&Ue.strstart-He<=Ue.w_size-u&&(Ue.match_length=st(Ue,He)),Ue.match_length>=3)if(tt=e._tr_tally(Ue,Ue.strstart-Ue.match_start,Ue.match_length-3),Ue.lookahead-=Ue.match_length,Ue.match_length<=Ue.max_lazy_match&&Ue.lookahead>=3){Ue.match_length--;do{Ue.strstart++,Ue.ins_h=(Ue.ins_h<<Ue.hash_shift^Ue.window[Ue.strstart+3-1])&Ue.hash_mask,He=Ue.prev[Ue.strstart&Ue.w_mask]=Ue.head[Ue.ins_h],Ue.head[Ue.ins_h]=Ue.strstart}while(0!=--Ue.match_length);Ue.strstart++}else Ue.strstart+=Ue.match_length,Ue.match_length=0,Ue.ins_h=Ue.window[Ue.strstart],Ue.ins_h=(Ue.ins_h<<Ue.hash_shift^Ue.window[Ue.strstart+1])&Ue.hash_mask;else tt=e._tr_tally(Ue,0,Ue.window[Ue.strstart]),Ue.lookahead--,Ue.strstart++;if(tt&&(Ge(Ue,!1),0===Ue.strm.avail_out))return 1}return Ue.insert=Ue.strstart<2?Ue.strstart:2,4===Pt?(Ge(Ue,!0),0===Ue.strm.avail_out?3:4):Ue.last_lit&&(Ge(Ue,!1),0===Ue.strm.avail_out)?1:2}function Yt(Ue,Pt){for(var He,tt,Ke;;){if(Ue.lookahead<u){if(Dt(Ue),Ue.lookahead<u&&0===Pt)return 1;if(0===Ue.lookahead)break}if(He=0,Ue.lookahead>=3&&(Ue.ins_h=(Ue.ins_h<<Ue.hash_shift^Ue.window[Ue.strstart+3-1])&Ue.hash_mask,He=Ue.prev[Ue.strstart&Ue.w_mask]=Ue.head[Ue.ins_h],Ue.head[Ue.ins_h]=Ue.strstart),Ue.prev_length=Ue.match_length,Ue.prev_match=Ue.match_start,Ue.match_length=2,0!==He&&Ue.prev_length<Ue.max_lazy_match&&Ue.strstart-He<=Ue.w_size-u&&(Ue.match_length=st(Ue,He),Ue.match_length<=5&&(1===Ue.strategy||3===Ue.match_length&&Ue.strstart-Ue.match_start>4096)&&(Ue.match_length=2)),Ue.prev_length>=3&&Ue.match_length<=Ue.prev_length){Ke=Ue.strstart+Ue.lookahead-3,tt=e._tr_tally(Ue,Ue.strstart-1-Ue.prev_match,Ue.prev_length-3),Ue.lookahead-=Ue.prev_length-1,Ue.prev_length-=2;do{++Ue.strstart<=Ke&&(Ue.ins_h=(Ue.ins_h<<Ue.hash_shift^Ue.window[Ue.strstart+3-1])&Ue.hash_mask,He=Ue.prev[Ue.strstart&Ue.w_mask]=Ue.head[Ue.ins_h],Ue.head[Ue.ins_h]=Ue.strstart)}while(0!=--Ue.prev_length);if(Ue.match_available=0,Ue.match_length=2,Ue.strstart++,tt&&(Ge(Ue,!1),0===Ue.strm.avail_out))return 1}else if(Ue.match_available){if((tt=e._tr_tally(Ue,0,Ue.window[Ue.strstart-1]))&&Ge(Ue,!1),Ue.strstart++,Ue.lookahead--,0===Ue.strm.avail_out)return 1}else Ue.match_available=1,Ue.strstart++,Ue.lookahead--}return Ue.match_available&&(tt=e._tr_tally(Ue,0,Ue.window[Ue.strstart-1]),Ue.match_available=0),Ue.insert=Ue.strstart<2?Ue.strstart:2,4===Pt?(Ge(Ue,!0),0===Ue.strm.avail_out?3:4):Ue.last_lit&&(Ge(Ue,!1),0===Ue.strm.avail_out)?1:2}function ge(Ue,Pt,He,tt,Ke){this.good_length=Ue,this.max_lazy=Pt,this.nice_length=He,this.max_chain=tt,this.func=Ke}function Re(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new t.Buf16(1146),this.dyn_dtree=new t.Buf16(122),this.bl_tree=new t.Buf16(78),$e(this.dyn_ltree),$e(this.dyn_dtree),$e(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new t.Buf16(16),this.heap=new t.Buf16(573),$e(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new t.Buf16(573),$e(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function pt(Ue){var Pt;return Ue&&Ue.state?(Ue.total_in=Ue.total_out=0,Ue.data_type=2,(Pt=Ue.state).pending=0,Pt.pending_out=0,Pt.wrap<0&&(Pt.wrap=-Pt.wrap),Pt.status=Pt.wrap?42:113,Ue.adler=2===Pt.wrap?0:1,Pt.last_flush=0,e._tr_init(Pt),0):be(Ue,a)}function Zt(Ue){var Pt=pt(Ue);return 0===Pt&&function We(Ue){Ue.window_size=2*Ue.w_size,$e(Ue.head),Ue.max_lazy_match=Me[Ue.level].max_lazy,Ue.good_match=Me[Ue.level].good_length,Ue.nice_match=Me[Ue.level].nice_length,Ue.max_chain_length=Me[Ue.level].max_chain,Ue.strstart=0,Ue.block_start=0,Ue.lookahead=0,Ue.insert=0,Ue.match_length=Ue.prev_length=2,Ue.match_available=0,Ue.ins_h=0}(Ue.state),Pt}function wt(Ue,Pt,He,tt,Ke,kt){if(!Ue)return a;var xe=1;if(-1===Pt&&(Pt=6),tt<0?(xe=0,tt=-tt):tt>15&&(xe=2,tt-=16),Ke<1||Ke>9||8!==He||tt<8||tt>15||Pt<0||Pt>9||kt<0||kt>4)return be(Ue,a);8===tt&&(tt=9);var Fe=new Re;return Ue.state=Fe,Fe.strm=Ue,Fe.wrap=xe,Fe.gzhead=null,Fe.w_bits=tt,Fe.w_size=1<<Fe.w_bits,Fe.w_mask=Fe.w_size-1,Fe.hash_bits=Ke+7,Fe.hash_size=1<<Fe.hash_bits,Fe.hash_mask=Fe.hash_size-1,Fe.hash_shift=~~((Fe.hash_bits+3-1)/3),Fe.window=new t.Buf8(2*Fe.w_size),Fe.head=new t.Buf16(Fe.hash_size),Fe.prev=new t.Buf16(Fe.w_size),Fe.lit_bufsize=1<<Ke+6,Fe.pending_buf_size=4*Fe.lit_bufsize,Fe.pending_buf=new t.Buf8(Fe.pending_buf_size),Fe.d_buf=1*Fe.lit_bufsize,Fe.l_buf=3*Fe.lit_bufsize,Fe.level=Pt,Fe.strategy=kt,Fe.method=He,Zt(Ue)}Me=[new ge(0,0,0,0,function ot(Ue,Pt){var He=65535;for(He>Ue.pending_buf_size-5&&(He=Ue.pending_buf_size-5);;){if(Ue.lookahead<=1){if(Dt(Ue),0===Ue.lookahead&&0===Pt)return 1;if(0===Ue.lookahead)break}Ue.strstart+=Ue.lookahead,Ue.lookahead=0;var tt=Ue.block_start+He;if((0===Ue.strstart||Ue.strstart>=tt)&&(Ue.lookahead=Ue.strstart-tt,Ue.strstart=tt,Ge(Ue,!1),0===Ue.strm.avail_out)||Ue.strstart-Ue.block_start>=Ue.w_size-u&&(Ge(Ue,!1),0===Ue.strm.avail_out))return 1}return Ue.insert=0,4===Pt?(Ge(Ue,!0),0===Ue.strm.avail_out?3:4):(Ue.strstart>Ue.block_start&&Ge(Ue,!1),1)}),new ge(4,4,8,4,nt),new ge(4,5,16,8,nt),new ge(4,6,32,32,nt),new ge(4,4,16,16,Yt),new ge(8,16,32,32,Yt),new ge(8,16,128,128,Yt),new ge(8,32,128,256,Yt),new ge(32,128,258,1024,Yt),new ge(32,258,258,4096,Yt)],b.deflateInit=function gt(Ue,Pt){return wt(Ue,Pt,8,15,8,0)},b.deflateInit2=wt,b.deflateReset=Zt,b.deflateResetKeep=pt,b.deflateSetHeader=function cr(Ue,Pt){return Ue&&Ue.state&&2===Ue.state.wrap?(Ue.state.gzhead=Pt,0):a},b.deflate=function Ut(Ue,Pt){var He,tt,Ke,kt;if(!Ue||!Ue.state||Pt>5||Pt<0)return Ue?be(Ue,a):a;if(tt=Ue.state,!Ue.output||!Ue.input&&0!==Ue.avail_in||666===tt.status&&4!==Pt)return be(Ue,0===Ue.avail_out?-5:a);if(tt.strm=Ue,He=tt.last_flush,tt.last_flush=Pt,42===tt.status)if(2===tt.wrap)Ue.adler=0,Ft(tt,31),Ft(tt,139),Ft(tt,8),tt.gzhead?(Ft(tt,(tt.gzhead.text?1:0)+(tt.gzhead.hcrc?2:0)+(tt.gzhead.extra?4:0)+(tt.gzhead.name?8:0)+(tt.gzhead.comment?16:0)),Ft(tt,255&tt.gzhead.time),Ft(tt,tt.gzhead.time>>8&255),Ft(tt,tt.gzhead.time>>16&255),Ft(tt,tt.gzhead.time>>24&255),Ft(tt,9===tt.level?2:tt.strategy>=2||tt.level<2?4:0),Ft(tt,255&tt.gzhead.os),tt.gzhead.extra&&tt.gzhead.extra.length&&(Ft(tt,255&tt.gzhead.extra.length),Ft(tt,tt.gzhead.extra.length>>8&255)),tt.gzhead.hcrc&&(Ue.adler=h(Ue.adler,tt.pending_buf,tt.pending,0)),tt.gzindex=0,tt.status=69):(Ft(tt,0),Ft(tt,0),Ft(tt,0),Ft(tt,0),Ft(tt,0),Ft(tt,9===tt.level?2:tt.strategy>=2||tt.level<2?4:0),Ft(tt,3),tt.status=113);else{var xe=8+(tt.w_bits-8<<4)<<8;xe|=(tt.strategy>=2||tt.level<2?0:tt.level<6?1:6===tt.level?2:3)<<6,0!==tt.strstart&&(xe|=32),xe+=31-xe%31,tt.status=113,br(tt,xe),0!==tt.strstart&&(br(tt,Ue.adler>>>16),br(tt,65535&Ue.adler)),Ue.adler=1}if(69===tt.status)if(tt.gzhead.extra){for(Ke=tt.pending;tt.gzindex<(65535&tt.gzhead.extra.length)&&(tt.pending!==tt.pending_buf_size||(tt.gzhead.hcrc&&tt.pending>Ke&&(Ue.adler=h(Ue.adler,tt.pending_buf,tt.pending-Ke,Ke)),ft(Ue),Ke=tt.pending,tt.pending!==tt.pending_buf_size));)Ft(tt,255&tt.gzhead.extra[tt.gzindex]),tt.gzindex++;tt.gzhead.hcrc&&tt.pending>Ke&&(Ue.adler=h(Ue.adler,tt.pending_buf,tt.pending-Ke,Ke)),tt.gzindex===tt.gzhead.extra.length&&(tt.gzindex=0,tt.status=73)}else tt.status=73;if(73===tt.status)if(tt.gzhead.name){Ke=tt.pending;do{if(tt.pending===tt.pending_buf_size&&(tt.gzhead.hcrc&&tt.pending>Ke&&(Ue.adler=h(Ue.adler,tt.pending_buf,tt.pending-Ke,Ke)),ft(Ue),Ke=tt.pending,tt.pending===tt.pending_buf_size)){kt=1;break}kt=tt.gzindex<tt.gzhead.name.length?255&tt.gzhead.name.charCodeAt(tt.gzindex++):0,Ft(tt,kt)}while(0!==kt);tt.gzhead.hcrc&&tt.pending>Ke&&(Ue.adler=h(Ue.adler,tt.pending_buf,tt.pending-Ke,Ke)),0===kt&&(tt.gzindex=0,tt.status=91)}else tt.status=91;if(91===tt.status)if(tt.gzhead.comment){Ke=tt.pending;do{if(tt.pending===tt.pending_buf_size&&(tt.gzhead.hcrc&&tt.pending>Ke&&(Ue.adler=h(Ue.adler,tt.pending_buf,tt.pending-Ke,Ke)),ft(Ue),Ke=tt.pending,tt.pending===tt.pending_buf_size)){kt=1;break}kt=tt.gzindex<tt.gzhead.comment.length?255&tt.gzhead.comment.charCodeAt(tt.gzindex++):0,Ft(tt,kt)}while(0!==kt);tt.gzhead.hcrc&&tt.pending>Ke&&(Ue.adler=h(Ue.adler,tt.pending_buf,tt.pending-Ke,Ke)),0===kt&&(tt.status=103)}else tt.status=103;if(103===tt.status&&(tt.gzhead.hcrc?(tt.pending+2>tt.pending_buf_size&&ft(Ue),tt.pending+2<=tt.pending_buf_size&&(Ft(tt,255&Ue.adler),Ft(tt,Ue.adler>>8&255),Ue.adler=0,tt.status=113)):tt.status=113),0!==tt.pending){if(ft(Ue),0===Ue.avail_out)return tt.last_flush=-1,0}else if(0===Ue.avail_in&&Te(Pt)<=Te(He)&&4!==Pt)return be(Ue,-5);if(666===tt.status&&0!==Ue.avail_in)return be(Ue,-5);if(0!==Ue.avail_in||0!==tt.lookahead||0!==Pt&&666!==tt.status){var lt=2===tt.strategy?function X(Ue,Pt){for(var He;;){if(0===Ue.lookahead&&(Dt(Ue),0===Ue.lookahead)){if(0===Pt)return 1;break}if(Ue.match_length=0,He=e._tr_tally(Ue,0,Ue.window[Ue.strstart]),Ue.lookahead--,Ue.strstart++,He&&(Ge(Ue,!1),0===Ue.strm.avail_out))return 1}return Ue.insert=0,4===Pt?(Ge(Ue,!0),0===Ue.strm.avail_out?3:4):Ue.last_lit&&(Ge(Ue,!1),0===Ue.strm.avail_out)?1:2}(tt,Pt):3===tt.strategy?function Ne(Ue,Pt){for(var He,tt,Ke,kt,xe=Ue.window;;){if(Ue.lookahead<=Y){if(Dt(Ue),Ue.lookahead<=Y&&0===Pt)return 1;if(0===Ue.lookahead)break}if(Ue.match_length=0,Ue.lookahead>=3&&Ue.strstart>0&&(tt=xe[Ke=Ue.strstart-1])===xe[++Ke]&&tt===xe[++Ke]&&tt===xe[++Ke]){kt=Ue.strstart+Y;do{}while(tt===xe[++Ke]&&tt===xe[++Ke]&&tt===xe[++Ke]&&tt===xe[++Ke]&&tt===xe[++Ke]&&tt===xe[++Ke]&&tt===xe[++Ke]&&tt===xe[++Ke]&&Ke<kt);Ue.match_length=Y-(kt-Ke),Ue.match_length>Ue.lookahead&&(Ue.match_length=Ue.lookahead)}if(Ue.match_length>=3?(He=e._tr_tally(Ue,1,Ue.match_length-3),Ue.lookahead-=Ue.match_length,Ue.strstart+=Ue.match_length,Ue.match_length=0):(He=e._tr_tally(Ue,0,Ue.window[Ue.strstart]),Ue.lookahead--,Ue.strstart++),He&&(Ge(Ue,!1),0===Ue.strm.avail_out))return 1}return Ue.insert=0,4===Pt?(Ge(Ue,!0),0===Ue.strm.avail_out?3:4):Ue.last_lit&&(Ge(Ue,!1),0===Ue.strm.avail_out)?1:2}(tt,Pt):Me[tt.level].func(tt,Pt);if((3===lt||4===lt)&&(tt.status=666),1===lt||3===lt)return 0===Ue.avail_out&&(tt.last_flush=-1),0;if(2===lt&&(1===Pt?e._tr_align(tt):5!==Pt&&(e._tr_stored_block(tt,0,0,!1),3===Pt&&($e(tt.head),0===tt.lookahead&&(tt.strstart=0,tt.block_start=0,tt.insert=0))),ft(Ue),0===Ue.avail_out))return tt.last_flush=-1,0}return 4!==Pt?0:tt.wrap<=0?1:(2===tt.wrap?(Ft(tt,255&Ue.adler),Ft(tt,Ue.adler>>8&255),Ft(tt,Ue.adler>>16&255),Ft(tt,Ue.adler>>24&255),Ft(tt,255&Ue.total_in),Ft(tt,Ue.total_in>>8&255),Ft(tt,Ue.total_in>>16&255),Ft(tt,Ue.total_in>>24&255)):(br(tt,Ue.adler>>>16),br(tt,65535&Ue.adler)),ft(Ue),tt.wrap>0&&(tt.wrap=-tt.wrap),0!==tt.pending?0:1)},b.deflateEnd=function hr(Ue){var Pt;return Ue&&Ue.state?42!==(Pt=Ue.state.status)&&69!==Pt&&73!==Pt&&91!==Pt&&103!==Pt&&113!==Pt&&666!==Pt?be(Ue,a):(Ue.state=null,113===Pt?be(Ue,-3):0):a},b.deflateSetDictionary=function Cr(Ue,Pt){var tt,Ke,kt,xe,Fe,lt,St,qe,He=Pt.length;if(!Ue||!Ue.state||2===(xe=(tt=Ue.state).wrap)||1===xe&&42!==tt.status||tt.lookahead)return a;for(1===xe&&(Ue.adler=l(Ue.adler,Pt,He,0)),tt.wrap=0,He>=tt.w_size&&(0===xe&&($e(tt.head),tt.strstart=0,tt.block_start=0,tt.insert=0),qe=new t.Buf8(tt.w_size),t.arraySet(qe,Pt,He-tt.w_size,tt.w_size,0),Pt=qe,He=tt.w_size),Fe=Ue.avail_in,lt=Ue.next_in,St=Ue.input,Ue.avail_in=He,Ue.next_in=0,Ue.input=Pt,Dt(tt);tt.lookahead>=3;){Ke=tt.strstart,kt=tt.lookahead-2;do{tt.ins_h=(tt.ins_h<<tt.hash_shift^tt.window[Ke+3-1])&tt.hash_mask,tt.prev[Ke&tt.w_mask]=tt.head[tt.ins_h],tt.head[tt.ins_h]=Ke,Ke++}while(--kt);tt.strstart=Ke,tt.lookahead=2,Dt(tt)}return tt.strstart+=tt.lookahead,tt.block_start=tt.strstart,tt.insert=tt.lookahead,tt.lookahead=0,tt.match_length=tt.prev_length=2,tt.match_available=0,Ue.next_in=lt,Ue.input=St,Ue.avail_in=Fe,tt.wrap=xe,0},b.deflateInfo="pako deflate (from Nodeca project)"},53826:M=>{"use strict";M.exports=function b(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},17096:M=>{"use strict";M.exports=function(e,l){var h,r,d,y,g,p,f,C,N,a,O,H,F,V,D,U,q,J,G,ie,K,re,oe,B,s;B=e.input,d=(r=e.next_in)+(e.avail_in-5),s=e.output,g=(y=e.next_out)-(l-e.avail_out),p=y+(e.avail_out-257),f=(h=e.state).dmax,C=h.wsize,N=h.whave,a=h.wnext,O=h.window,H=h.hold,F=h.bits,V=h.lencode,D=h.distcode,U=(1<<h.lenbits)-1,q=(1<<h.distbits)-1;e:do{F<15&&(H+=B[r++]<<F,H+=B[r++]<<(F+=8),F+=8),J=V[H&U];t:for(;;){if(H>>>=G=J>>>24,F-=G,0==(G=J>>>16&255))s[y++]=65535&J;else{if(!(16&G)){if(0==(64&G)){J=V[(65535&J)+(H&(1<<G)-1)];continue t}if(32&G){h.mode=12;break e}e.msg="invalid literal/length code",h.mode=30;break e}ie=65535&J,(G&=15)&&(F<G&&(H+=B[r++]<<F,F+=8),ie+=H&(1<<G)-1,H>>>=G,F-=G),F<15&&(H+=B[r++]<<F,H+=B[r++]<<(F+=8),F+=8),J=D[H&q];r:for(;;){if(H>>>=G=J>>>24,F-=G,!(16&(G=J>>>16&255))){if(0==(64&G)){J=D[(65535&J)+(H&(1<<G)-1)];continue r}e.msg="invalid distance code",h.mode=30;break e}if(K=65535&J,F<(G&=15)&&(H+=B[r++]<<F,(F+=8)<G&&(H+=B[r++]<<F,F+=8)),(K+=H&(1<<G)-1)>f){e.msg="invalid distance too far back",h.mode=30;break e}if(H>>>=G,F-=G,K>(G=y-g)){if((G=K-G)>N&&h.sane){e.msg="invalid distance too far back",h.mode=30;break e}if(re=0,oe=O,0===a){if(re+=C-G,G<ie){ie-=G;do{s[y++]=O[re++]}while(--G);re=y-K,oe=s}}else if(a<G){if(re+=C+a-G,(G-=a)<ie){ie-=G;do{s[y++]=O[re++]}while(--G);if(re=0,a<ie){ie-=G=a;do{s[y++]=O[re++]}while(--G);re=y-K,oe=s}}}else if(re+=a-G,G<ie){ie-=G;do{s[y++]=O[re++]}while(--G);re=y-K,oe=s}for(;ie>2;)s[y++]=oe[re++],s[y++]=oe[re++],s[y++]=oe[re++],ie-=3;ie&&(s[y++]=oe[re++],ie>1&&(s[y++]=oe[re++]))}else{re=y-K;do{s[y++]=s[re++],s[y++]=s[re++],s[y++]=s[re++],ie-=3}while(ie>2);ie&&(s[y++]=s[re++],ie>1&&(s[y++]=s[re++]))}break}}break}}while(r<d&&y<p);H&=(1<<(F-=(ie=F>>3)<<3))-1,e.next_in=r-=ie,e.next_out=y,e.avail_in=r<d?d-r+5:5-(r-d),e.avail_out=y<p?p-y+257:257-(y-p),h.hold=H,h.bits=F}},44010:(M,b,n)=>{"use strict";var t=n(22189),e=n(91994),l=n(82394),h=n(17096),r=n(18251),H=-2,E=12;function br(wt){return(wt>>>24&255)+(wt>>>8&65280)+((65280&wt)<<8)+((255&wt)<<24)}function rt(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new t.Buf16(320),this.work=new t.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function st(wt){var gt;return wt&&wt.state?(wt.total_in=wt.total_out=(gt=wt.state).total=0,wt.msg="",gt.wrap&&(wt.adler=1&gt.wrap),gt.mode=1,gt.last=0,gt.havedict=0,gt.dmax=32768,gt.head=null,gt.hold=0,gt.bits=0,gt.lencode=gt.lendyn=new t.Buf32(852),gt.distcode=gt.distdyn=new t.Buf32(592),gt.sane=1,gt.back=-1,0):H}function Dt(wt){var gt;return wt&&wt.state?((gt=wt.state).wsize=0,gt.whave=0,gt.wnext=0,st(wt)):H}function ot(wt,gt){var Ut,hr;return!wt||!wt.state||(hr=wt.state,gt<0?(Ut=0,gt=-gt):(Ut=1+(gt>>4),gt<48&&(gt&=15)),gt&&(gt<8||gt>15))?H:(null!==hr.window&&hr.wbits!==gt&&(hr.window=null),hr.wrap=Ut,hr.wbits=gt,Dt(wt))}function nt(wt,gt){var Ut,hr;return wt?(hr=new rt,wt.state=hr,hr.window=null,0!==(Ut=ot(wt,gt))&&(wt.state=null),Ut):H}var X,ge,Ne=!0;function Me(wt){if(Ne){var gt;for(X=new t.Buf32(512),ge=new t.Buf32(32),gt=0;gt<144;)wt.lens[gt++]=8;for(;gt<256;)wt.lens[gt++]=9;for(;gt<280;)wt.lens[gt++]=7;for(;gt<288;)wt.lens[gt++]=8;for(r(1,wt.lens,0,288,X,0,wt.work,{bits:9}),gt=0;gt<32;)wt.lens[gt++]=5;r(2,wt.lens,0,32,ge,0,wt.work,{bits:5}),Ne=!1}wt.lencode=X,wt.lenbits=9,wt.distcode=ge,wt.distbits=5}function We(wt,gt,Ut,hr){var Cr,Ue=wt.state;return null===Ue.window&&(Ue.wsize=1<<Ue.wbits,Ue.wnext=0,Ue.whave=0,Ue.window=new t.Buf8(Ue.wsize)),hr>=Ue.wsize?(t.arraySet(Ue.window,gt,Ut-Ue.wsize,Ue.wsize,0),Ue.wnext=0,Ue.whave=Ue.wsize):((Cr=Ue.wsize-Ue.wnext)>hr&&(Cr=hr),t.arraySet(Ue.window,gt,Ut-hr,Cr,Ue.wnext),(hr-=Cr)?(t.arraySet(Ue.window,gt,Ut-hr,hr,0),Ue.wnext=hr,Ue.whave=Ue.wsize):(Ue.wnext+=Cr,Ue.wnext===Ue.wsize&&(Ue.wnext=0),Ue.whave<Ue.wsize&&(Ue.whave+=Cr))),0}b.inflateReset=Dt,b.inflateReset2=ot,b.inflateResetKeep=st,b.inflateInit=function Yt(wt){return nt(wt,15)},b.inflateInit2=nt,b.inflate=function Re(wt,gt){var Ut,hr,Cr,Ue,Pt,He,tt,Ke,kt,xe,Fe,lt,St,qe,ct,vt,$t,Vr,Sr,Ar,Jr,Fr,le,Ce,ke=0,Gt=new t.Buf8(4),Ie=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!wt||!wt.state||!wt.output||!wt.input&&0!==wt.avail_in)return H;(Ut=wt.state).mode===E&&(Ut.mode=13),Pt=wt.next_out,Cr=wt.output,Ue=wt.next_in,hr=wt.input,Ke=Ut.hold,kt=Ut.bits,xe=He=wt.avail_in,Fe=tt=wt.avail_out,Fr=0;e:for(;;)switch(Ut.mode){case 1:if(0===Ut.wrap){Ut.mode=13;break}for(;kt<16;){if(0===He)break e;He--,Ke+=hr[Ue++]<<kt,kt+=8}if(2&Ut.wrap&&35615===Ke){Ut.check=0,Gt[0]=255&Ke,Gt[1]=Ke>>>8&255,Ut.check=l(Ut.check,Gt,2,0),Ke=0,kt=0,Ut.mode=2;break}if(Ut.flags=0,Ut.head&&(Ut.head.done=!1),!(1&Ut.wrap)||(((255&Ke)<<8)+(Ke>>8))%31){wt.msg="incorrect header check",Ut.mode=30;break}if(8!=(15&Ke)){wt.msg="unknown compression method",Ut.mode=30;break}if(kt-=4,Jr=8+(15&(Ke>>>=4)),0===Ut.wbits)Ut.wbits=Jr;else if(Jr>Ut.wbits){wt.msg="invalid window size",Ut.mode=30;break}Ut.dmax=1<<Jr,wt.adler=Ut.check=1,Ut.mode=512&Ke?10:E,Ke=0,kt=0;break;case 2:for(;kt<16;){if(0===He)break e;He--,Ke+=hr[Ue++]<<kt,kt+=8}if(Ut.flags=Ke,8!=(255&Ut.flags)){wt.msg="unknown compression method",Ut.mode=30;break}if(57344&Ut.flags){wt.msg="unknown header flags set",Ut.mode=30;break}Ut.head&&(Ut.head.text=Ke>>8&1),512&Ut.flags&&(Gt[0]=255&Ke,Gt[1]=Ke>>>8&255,Ut.check=l(Ut.check,Gt,2,0)),Ke=0,kt=0,Ut.mode=3;case 3:for(;kt<32;){if(0===He)break e;He--,Ke+=hr[Ue++]<<kt,kt+=8}Ut.head&&(Ut.head.time=Ke),512&Ut.flags&&(Gt[0]=255&Ke,Gt[1]=Ke>>>8&255,Gt[2]=Ke>>>16&255,Gt[3]=Ke>>>24&255,Ut.check=l(Ut.check,Gt,4,0)),Ke=0,kt=0,Ut.mode=4;case 4:for(;kt<16;){if(0===He)break e;He--,Ke+=hr[Ue++]<<kt,kt+=8}Ut.head&&(Ut.head.xflags=255&Ke,Ut.head.os=Ke>>8),512&Ut.flags&&(Gt[0]=255&Ke,Gt[1]=Ke>>>8&255,Ut.check=l(Ut.check,Gt,2,0)),Ke=0,kt=0,Ut.mode=5;case 5:if(1024&Ut.flags){for(;kt<16;){if(0===He)break e;He--,Ke+=hr[Ue++]<<kt,kt+=8}Ut.length=Ke,Ut.head&&(Ut.head.extra_len=Ke),512&Ut.flags&&(Gt[0]=255&Ke,Gt[1]=Ke>>>8&255,Ut.check=l(Ut.check,Gt,2,0)),Ke=0,kt=0}else Ut.head&&(Ut.head.extra=null);Ut.mode=6;case 6:if(1024&Ut.flags&&((lt=Ut.length)>He&&(lt=He),lt&&(Ut.head&&(Jr=Ut.head.extra_len-Ut.length,Ut.head.extra||(Ut.head.extra=new Array(Ut.head.extra_len)),t.arraySet(Ut.head.extra,hr,Ue,lt,Jr)),512&Ut.flags&&(Ut.check=l(Ut.check,hr,lt,Ue)),He-=lt,Ue+=lt,Ut.length-=lt),Ut.length))break e;Ut.length=0,Ut.mode=7;case 7:if(2048&Ut.flags){if(0===He)break e;lt=0;do{Jr=hr[Ue+lt++],Ut.head&&Jr&&Ut.length<65536&&(Ut.head.name+=String.fromCharCode(Jr))}while(Jr&&lt<He);if(512&Ut.flags&&(Ut.check=l(Ut.check,hr,lt,Ue)),He-=lt,Ue+=lt,Jr)break e}else Ut.head&&(Ut.head.name=null);Ut.length=0,Ut.mode=8;case 8:if(4096&Ut.flags){if(0===He)break e;lt=0;do{Jr=hr[Ue+lt++],Ut.head&&Jr&&Ut.length<65536&&(Ut.head.comment+=String.fromCharCode(Jr))}while(Jr&&lt<He);if(512&Ut.flags&&(Ut.check=l(Ut.check,hr,lt,Ue)),He-=lt,Ue+=lt,Jr)break e}else Ut.head&&(Ut.head.comment=null);Ut.mode=9;case 9:if(512&Ut.flags){for(;kt<16;){if(0===He)break e;He--,Ke+=hr[Ue++]<<kt,kt+=8}if(Ke!==(65535&Ut.check)){wt.msg="header crc mismatch",Ut.mode=30;break}Ke=0,kt=0}Ut.head&&(Ut.head.hcrc=Ut.flags>>9&1,Ut.head.done=!0),wt.adler=Ut.check=0,Ut.mode=E;break;case 10:for(;kt<32;){if(0===He)break e;He--,Ke+=hr[Ue++]<<kt,kt+=8}wt.adler=Ut.check=br(Ke),Ke=0,kt=0,Ut.mode=11;case 11:if(0===Ut.havedict)return wt.next_out=Pt,wt.avail_out=tt,wt.next_in=Ue,wt.avail_in=He,Ut.hold=Ke,Ut.bits=kt,2;wt.adler=Ut.check=1,Ut.mode=E;case E:if(5===gt||6===gt)break e;case 13:if(Ut.last){Ke>>>=7&kt,kt-=7&kt,Ut.mode=27;break}for(;kt<3;){if(0===He)break e;He--,Ke+=hr[Ue++]<<kt,kt+=8}switch(Ut.last=1&Ke,kt-=1,3&(Ke>>>=1)){case 0:Ut.mode=14;break;case 1:if(Me(Ut),Ut.mode=20,6===gt){Ke>>>=2,kt-=2;break e}break;case 2:Ut.mode=17;break;case 3:wt.msg="invalid block type",Ut.mode=30}Ke>>>=2,kt-=2;break;case 14:for(Ke>>>=7&kt,kt-=7&kt;kt<32;){if(0===He)break e;He--,Ke+=hr[Ue++]<<kt,kt+=8}if((65535&Ke)!=(Ke>>>16^65535)){wt.msg="invalid stored block lengths",Ut.mode=30;break}if(Ut.length=65535&Ke,Ke=0,kt=0,Ut.mode=15,6===gt)break e;case 15:Ut.mode=16;case 16:if(lt=Ut.length){if(lt>He&&(lt=He),lt>tt&&(lt=tt),0===lt)break e;t.arraySet(Cr,hr,Ue,lt,Pt),He-=lt,Ue+=lt,tt-=lt,Pt+=lt,Ut.length-=lt;break}Ut.mode=E;break;case 17:for(;kt<14;){if(0===He)break e;He--,Ke+=hr[Ue++]<<kt,kt+=8}if(Ut.nlen=257+(31&Ke),kt-=5,Ut.ndist=1+(31&(Ke>>>=5)),kt-=5,Ut.ncode=4+(15&(Ke>>>=5)),Ke>>>=4,kt-=4,Ut.nlen>286||Ut.ndist>30){wt.msg="too many length or distance symbols",Ut.mode=30;break}Ut.have=0,Ut.mode=18;case 18:for(;Ut.have<Ut.ncode;){for(;kt<3;){if(0===He)break e;He--,Ke+=hr[Ue++]<<kt,kt+=8}Ut.lens[Ie[Ut.have++]]=7&Ke,Ke>>>=3,kt-=3}for(;Ut.have<19;)Ut.lens[Ie[Ut.have++]]=0;if(Ut.lencode=Ut.lendyn,Ut.lenbits=7,Fr=r(0,Ut.lens,0,19,Ut.lencode,0,Ut.work,le={bits:Ut.lenbits}),Ut.lenbits=le.bits,Fr){wt.msg="invalid code lengths set",Ut.mode=30;break}Ut.have=0,Ut.mode=19;case 19:for(;Ut.have<Ut.nlen+Ut.ndist;){for(;vt=(ke=Ut.lencode[Ke&(1<<Ut.lenbits)-1])>>>16&255,$t=65535&ke,!((ct=ke>>>24)<=kt);){if(0===He)break e;He--,Ke+=hr[Ue++]<<kt,kt+=8}if($t<16)Ke>>>=ct,kt-=ct,Ut.lens[Ut.have++]=$t;else{if(16===$t){for(Ce=ct+2;kt<Ce;){if(0===He)break e;He--,Ke+=hr[Ue++]<<kt,kt+=8}if(Ke>>>=ct,kt-=ct,0===Ut.have){wt.msg="invalid bit length repeat",Ut.mode=30;break}Jr=Ut.lens[Ut.have-1],lt=3+(3&Ke),Ke>>>=2,kt-=2}else if(17===$t){for(Ce=ct+3;kt<Ce;){if(0===He)break e;He--,Ke+=hr[Ue++]<<kt,kt+=8}kt-=ct,Jr=0,lt=3+(7&(Ke>>>=ct)),Ke>>>=3,kt-=3}else{for(Ce=ct+7;kt<Ce;){if(0===He)break e;He--,Ke+=hr[Ue++]<<kt,kt+=8}kt-=ct,Jr=0,lt=11+(127&(Ke>>>=ct)),Ke>>>=7,kt-=7}if(Ut.have+lt>Ut.nlen+Ut.ndist){wt.msg="invalid bit length repeat",Ut.mode=30;break}for(;lt--;)Ut.lens[Ut.have++]=Jr}}if(30===Ut.mode)break;if(0===Ut.lens[256]){wt.msg="invalid code -- missing end-of-block",Ut.mode=30;break}if(Ut.lenbits=9,Fr=r(1,Ut.lens,0,Ut.nlen,Ut.lencode,0,Ut.work,le={bits:Ut.lenbits}),Ut.lenbits=le.bits,Fr){wt.msg="invalid literal/lengths set",Ut.mode=30;break}if(Ut.distbits=6,Ut.distcode=Ut.distdyn,Fr=r(2,Ut.lens,Ut.nlen,Ut.ndist,Ut.distcode,0,Ut.work,le={bits:Ut.distbits}),Ut.distbits=le.bits,Fr){wt.msg="invalid distances set",Ut.mode=30;break}if(Ut.mode=20,6===gt)break e;case 20:Ut.mode=21;case 21:if(He>=6&&tt>=258){wt.next_out=Pt,wt.avail_out=tt,wt.next_in=Ue,wt.avail_in=He,Ut.hold=Ke,Ut.bits=kt,h(wt,Fe),Pt=wt.next_out,Cr=wt.output,tt=wt.avail_out,Ue=wt.next_in,hr=wt.input,He=wt.avail_in,Ke=Ut.hold,kt=Ut.bits,Ut.mode===E&&(Ut.back=-1);break}for(Ut.back=0;vt=(ke=Ut.lencode[Ke&(1<<Ut.lenbits)-1])>>>16&255,$t=65535&ke,!((ct=ke>>>24)<=kt);){if(0===He)break e;He--,Ke+=hr[Ue++]<<kt,kt+=8}if(vt&&0==(240&vt)){for(Vr=ct,Sr=vt,Ar=$t;vt=(ke=Ut.lencode[Ar+((Ke&(1<<Vr+Sr)-1)>>Vr)])>>>16&255,$t=65535&ke,!(Vr+(ct=ke>>>24)<=kt);){if(0===He)break e;He--,Ke+=hr[Ue++]<<kt,kt+=8}Ke>>>=Vr,kt-=Vr,Ut.back+=Vr}if(Ke>>>=ct,kt-=ct,Ut.back+=ct,Ut.length=$t,0===vt){Ut.mode=26;break}if(32&vt){Ut.back=-1,Ut.mode=E;break}if(64&vt){wt.msg="invalid literal/length code",Ut.mode=30;break}Ut.extra=15&vt,Ut.mode=22;case 22:if(Ut.extra){for(Ce=Ut.extra;kt<Ce;){if(0===He)break e;He--,Ke+=hr[Ue++]<<kt,kt+=8}Ut.length+=Ke&(1<<Ut.extra)-1,Ke>>>=Ut.extra,kt-=Ut.extra,Ut.back+=Ut.extra}Ut.was=Ut.length,Ut.mode=23;case 23:for(;vt=(ke=Ut.distcode[Ke&(1<<Ut.distbits)-1])>>>16&255,$t=65535&ke,!((ct=ke>>>24)<=kt);){if(0===He)break e;He--,Ke+=hr[Ue++]<<kt,kt+=8}if(0==(240&vt)){for(Vr=ct,Sr=vt,Ar=$t;vt=(ke=Ut.distcode[Ar+((Ke&(1<<Vr+Sr)-1)>>Vr)])>>>16&255,$t=65535&ke,!(Vr+(ct=ke>>>24)<=kt);){if(0===He)break e;He--,Ke+=hr[Ue++]<<kt,kt+=8}Ke>>>=Vr,kt-=Vr,Ut.back+=Vr}if(Ke>>>=ct,kt-=ct,Ut.back+=ct,64&vt){wt.msg="invalid distance code",Ut.mode=30;break}Ut.offset=$t,Ut.extra=15&vt,Ut.mode=24;case 24:if(Ut.extra){for(Ce=Ut.extra;kt<Ce;){if(0===He)break e;He--,Ke+=hr[Ue++]<<kt,kt+=8}Ut.offset+=Ke&(1<<Ut.extra)-1,Ke>>>=Ut.extra,kt-=Ut.extra,Ut.back+=Ut.extra}if(Ut.offset>Ut.dmax){wt.msg="invalid distance too far back",Ut.mode=30;break}Ut.mode=25;case 25:if(0===tt)break e;if(Ut.offset>(lt=Fe-tt)){if((lt=Ut.offset-lt)>Ut.whave&&Ut.sane){wt.msg="invalid distance too far back",Ut.mode=30;break}St=lt>Ut.wnext?Ut.wsize-(lt-=Ut.wnext):Ut.wnext-lt,lt>Ut.length&&(lt=Ut.length),qe=Ut.window}else qe=Cr,St=Pt-Ut.offset,lt=Ut.length;lt>tt&&(lt=tt),tt-=lt,Ut.length-=lt;do{Cr[Pt++]=qe[St++]}while(--lt);0===Ut.length&&(Ut.mode=21);break;case 26:if(0===tt)break e;Cr[Pt++]=Ut.length,tt--,Ut.mode=21;break;case 27:if(Ut.wrap){for(;kt<32;){if(0===He)break e;He--,Ke|=hr[Ue++]<<kt,kt+=8}if(wt.total_out+=Fe-=tt,Ut.total+=Fe,Fe&&(wt.adler=Ut.check=Ut.flags?l(Ut.check,Cr,Fe,Pt-Fe):e(Ut.check,Cr,Fe,Pt-Fe)),Fe=tt,(Ut.flags?Ke:br(Ke))!==Ut.check){wt.msg="incorrect data check",Ut.mode=30;break}Ke=0,kt=0}Ut.mode=28;case 28:if(Ut.wrap&&Ut.flags){for(;kt<32;){if(0===He)break e;He--,Ke+=hr[Ue++]<<kt,kt+=8}if(Ke!==(4294967295&Ut.total)){wt.msg="incorrect length check",Ut.mode=30;break}Ke=0,kt=0}Ut.mode=29;case 29:Fr=1;break e;case 30:Fr=-3;break e;case 31:return-4;default:return H}return wt.next_out=Pt,wt.avail_out=tt,wt.next_in=Ue,wt.avail_in=He,Ut.hold=Ke,Ut.bits=kt,(Ut.wsize||Fe!==wt.avail_out&&Ut.mode<30&&(Ut.mode<27||4!==gt))&&We(wt,wt.output,wt.next_out,Fe-wt.avail_out)?(Ut.mode=31,-4):(Fe-=wt.avail_out,wt.total_in+=xe-=wt.avail_in,wt.total_out+=Fe,Ut.total+=Fe,Ut.wrap&&Fe&&(wt.adler=Ut.check=Ut.flags?l(Ut.check,Cr,Fe,wt.next_out-Fe):e(Ut.check,Cr,Fe,wt.next_out-Fe)),wt.data_type=Ut.bits+(Ut.last?64:0)+(Ut.mode===E?128:0)+(20===Ut.mode||15===Ut.mode?256:0),(0===xe&&0===Fe||4===gt)&&0===Fr&&(Fr=-5),Fr)},b.inflateEnd=function pt(wt){if(!wt||!wt.state)return H;var gt=wt.state;return gt.window&&(gt.window=null),wt.state=null,0},b.inflateGetHeader=function Zt(wt,gt){var Ut;return wt&&wt.state&&0!=(2&(Ut=wt.state).wrap)?(Ut.head=gt,gt.done=!1,0):H},b.inflateSetDictionary=function cr(wt,gt){var hr,Ut=gt.length;return wt&&wt.state&&(0===(hr=wt.state).wrap||11===hr.mode)?11===hr.mode&&e(1,gt,Ut,0)!==hr.check?-3:We(wt,gt,Ut,Ut)?(hr.mode=31,-4):(hr.havedict=1,0):H},b.inflateInfo="pako inflate (from Nodeca project)"},18251:(M,b,n)=>{"use strict";var t=n(22189),g=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],p=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],f=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],C=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];M.exports=function(a,O,H,F,V,D,U,q){var x,j,$,Y,u,ae,Ze,at,Be,J=q.bits,G=0,ie=0,K=0,re=0,oe=0,B=0,s=0,_=0,w=0,E=0,W=null,fe=0,ye=new t.Buf16(16),Qe=new t.Buf16(16),Ot=null,At=0;for(G=0;G<=15;G++)ye[G]=0;for(ie=0;ie<F;ie++)ye[O[H+ie]]++;for(oe=J,re=15;re>=1&&0===ye[re];re--);if(oe>re&&(oe=re),0===re)return V[D++]=20971520,V[D++]=20971520,q.bits=1,0;for(K=1;K<re&&0===ye[K];K++);for(oe<K&&(oe=K),_=1,G=1;G<=15;G++)if(_<<=1,(_-=ye[G])<0)return-1;if(_>0&&(0===a||1!==re))return-1;for(Qe[1]=0,G=1;G<15;G++)Qe[G+1]=Qe[G]+ye[G];for(ie=0;ie<F;ie++)0!==O[H+ie]&&(U[Qe[O[H+ie]]++]=ie);if(0===a?(W=Ot=U,ae=19):1===a?(W=g,fe-=257,Ot=p,At-=257,ae=256):(W=f,Ot=C,ae=-1),E=0,ie=0,G=K,u=D,B=oe,s=0,$=-1,Y=(w=1<<oe)-1,1===a&&w>852||2===a&&w>592)return 1;for(;;){Ze=G-s,U[ie]<ae?(at=0,Be=U[ie]):U[ie]>ae?(at=Ot[At+U[ie]],Be=W[fe+U[ie]]):(at=96,Be=0),x=1<<G-s,K=j=1<<B;do{V[u+(E>>s)+(j-=x)]=Ze<<24|at<<16|Be|0}while(0!==j);for(x=1<<G-1;E&x;)x>>=1;if(0!==x?(E&=x-1,E+=x):E=0,ie++,0==--ye[G]){if(G===re)break;G=O[H+U[ie]]}if(G>oe&&(E&Y)!==$){for(0===s&&(s=oe),u+=K,_=1<<(B=G-s);B+s<re&&!((_-=ye[B+s])<=0);)B++,_<<=1;if(w+=1<<B,1===a&&w>852||2===a&&w>592)return 1;V[$=E&Y]=oe<<24|B<<16|u-D|0}}return 0!==E&&(V[u+E]=G-s<<24|64<<16|0),q.bits=oe,0}},51398:M=>{"use strict";M.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},40621:(M,b,n)=>{"use strict";var t=n(22189);function d(Re){for(var pt=Re.length;--pt>=0;)Re[pt]=0}var re=[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],oe=[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],B=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],s=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],w=new Array(576);d(w);var E=new Array(60);d(E);var x=new Array(512);d(x);var j=new Array(256);d(j);var $=new Array(29);d($);var W,fe,ae,Y=new Array(30);function u(Re,pt,Zt,cr,wt){this.static_tree=Re,this.extra_bits=pt,this.extra_base=Zt,this.elems=cr,this.max_length=wt,this.has_stree=Re&&Re.length}function ye(Re,pt){this.dyn_tree=Re,this.max_code=0,this.stat_desc=pt}function Qe(Re){return Re<256?x[Re]:x[256+(Re>>>7)]}function Ot(Re,pt){Re.pending_buf[Re.pending++]=255&pt,Re.pending_buf[Re.pending++]=pt>>>8&255}function At(Re,pt,Zt){Re.bi_valid>16-Zt?(Re.bi_buf|=pt<<Re.bi_valid&65535,Ot(Re,Re.bi_buf),Re.bi_buf=pt>>16-Re.bi_valid,Re.bi_valid+=Zt-16):(Re.bi_buf|=pt<<Re.bi_valid&65535,Re.bi_valid+=Zt)}function Ze(Re,pt,Zt){At(Re,Zt[2*pt],Zt[2*pt+1])}function at(Re,pt){var Zt=0;do{Zt|=1&Re,Re>>>=1,Zt<<=1}while(--pt>0);return Zt>>>1}function _e(Re,pt,Zt){var gt,Ut,cr=new Array(16),wt=0;for(gt=1;gt<=15;gt++)cr[gt]=wt=wt+Zt[gt-1]<<1;for(Ut=0;Ut<=pt;Ut++){var hr=Re[2*Ut+1];0!==hr&&(Re[2*Ut]=at(cr[hr]++,hr))}}function be(Re){var pt;for(pt=0;pt<286;pt++)Re.dyn_ltree[2*pt]=0;for(pt=0;pt<30;pt++)Re.dyn_dtree[2*pt]=0;for(pt=0;pt<19;pt++)Re.bl_tree[2*pt]=0;Re.dyn_ltree[512]=1,Re.opt_len=Re.static_len=0,Re.last_lit=Re.matches=0}function Te(Re){Re.bi_valid>8?Ot(Re,Re.bi_buf):Re.bi_valid>0&&(Re.pending_buf[Re.pending++]=Re.bi_buf),Re.bi_buf=0,Re.bi_valid=0}function ft(Re,pt,Zt,cr){var wt=2*pt,gt=2*Zt;return Re[wt]<Re[gt]||Re[wt]===Re[gt]&&cr[pt]<=cr[Zt]}function Ge(Re,pt,Zt){for(var cr=Re.heap[Zt],wt=Zt<<1;wt<=Re.heap_len&&(wt<Re.heap_len&&ft(pt,Re.heap[wt+1],Re.heap[wt],Re.depth)&&wt++,!ft(pt,cr,Re.heap[wt],Re.depth));)Re.heap[Zt]=Re.heap[wt],Zt=wt,wt<<=1;Re.heap[Zt]=cr}function Ft(Re,pt,Zt){var cr,wt,Ut,hr,gt=0;if(0!==Re.last_lit)do{cr=Re.pending_buf[Re.d_buf+2*gt]<<8|Re.pending_buf[Re.d_buf+2*gt+1],wt=Re.pending_buf[Re.l_buf+gt],gt++,0===cr?Ze(Re,wt,pt):(Ze(Re,(Ut=j[wt])+256+1,pt),0!==(hr=re[Ut])&&At(Re,wt-=$[Ut],hr),Ze(Re,Ut=Qe(--cr),Zt),0!==(hr=oe[Ut])&&At(Re,cr-=Y[Ut],hr))}while(gt<Re.last_lit);Ze(Re,256,pt)}function br(Re,pt){var Ut,hr,Ue,Zt=pt.dyn_tree,cr=pt.stat_desc.static_tree,wt=pt.stat_desc.has_stree,gt=pt.stat_desc.elems,Cr=-1;for(Re.heap_len=0,Re.heap_max=573,Ut=0;Ut<gt;Ut++)0!==Zt[2*Ut]?(Re.heap[++Re.heap_len]=Cr=Ut,Re.depth[Ut]=0):Zt[2*Ut+1]=0;for(;Re.heap_len<2;)Zt[2*(Ue=Re.heap[++Re.heap_len]=Cr<2?++Cr:0)]=1,Re.depth[Ue]=0,Re.opt_len--,wt&&(Re.static_len-=cr[2*Ue+1]);for(pt.max_code=Cr,Ut=Re.heap_len>>1;Ut>=1;Ut--)Ge(Re,Zt,Ut);Ue=gt;do{Ut=Re.heap[1],Re.heap[1]=Re.heap[Re.heap_len--],Ge(Re,Zt,1),hr=Re.heap[1],Re.heap[--Re.heap_max]=Ut,Re.heap[--Re.heap_max]=hr,Zt[2*Ue]=Zt[2*Ut]+Zt[2*hr],Re.depth[Ue]=(Re.depth[Ut]>=Re.depth[hr]?Re.depth[Ut]:Re.depth[hr])+1,Zt[2*Ut+1]=Zt[2*hr+1]=Ue,Re.heap[1]=Ue++,Ge(Re,Zt,1)}while(Re.heap_len>=2);Re.heap[--Re.heap_max]=Re.heap[1],function Lt(Re,pt){var Ue,Pt,He,tt,Ke,kt,Zt=pt.dyn_tree,cr=pt.max_code,wt=pt.stat_desc.static_tree,gt=pt.stat_desc.has_stree,Ut=pt.stat_desc.extra_bits,hr=pt.stat_desc.extra_base,Cr=pt.stat_desc.max_length,xe=0;for(tt=0;tt<=15;tt++)Re.bl_count[tt]=0;for(Zt[2*Re.heap[Re.heap_max]+1]=0,Ue=Re.heap_max+1;Ue<573;Ue++)(tt=Zt[2*Zt[2*(Pt=Re.heap[Ue])+1]+1]+1)>Cr&&(tt=Cr,xe++),Zt[2*Pt+1]=tt,!(Pt>cr)&&(Re.bl_count[tt]++,Ke=0,Pt>=hr&&(Ke=Ut[Pt-hr]),Re.opt_len+=(kt=Zt[2*Pt])*(tt+Ke),gt&&(Re.static_len+=kt*(wt[2*Pt+1]+Ke)));if(0!==xe){do{for(tt=Cr-1;0===Re.bl_count[tt];)tt--;Re.bl_count[tt]--,Re.bl_count[tt+1]+=2,Re.bl_count[Cr]--,xe-=2}while(xe>0);for(tt=Cr;0!==tt;tt--)for(Pt=Re.bl_count[tt];0!==Pt;)!((He=Re.heap[--Ue])>cr)&&(Zt[2*He+1]!==tt&&(Re.opt_len+=(tt-Zt[2*He+1])*Zt[2*He],Zt[2*He+1]=tt),Pt--)}}(Re,pt),_e(Zt,Cr,Re.bl_count)}function rt(Re,pt,Zt){var cr,gt,wt=-1,Ut=pt[1],hr=0,Cr=7,Ue=4;for(0===Ut&&(Cr=138,Ue=3),pt[2*(Zt+1)+1]=65535,cr=0;cr<=Zt;cr++)gt=Ut,Ut=pt[2*(cr+1)+1],!(++hr<Cr&&gt===Ut)&&(hr<Ue?Re.bl_tree[2*gt]+=hr:0!==gt?(gt!==wt&&Re.bl_tree[2*gt]++,Re.bl_tree[32]++):hr<=10?Re.bl_tree[34]++:Re.bl_tree[36]++,hr=0,wt=gt,0===Ut?(Cr=138,Ue=3):gt===Ut?(Cr=6,Ue=3):(Cr=7,Ue=4))}function st(Re,pt,Zt){var cr,gt,wt=-1,Ut=pt[1],hr=0,Cr=7,Ue=4;for(0===Ut&&(Cr=138,Ue=3),cr=0;cr<=Zt;cr++)if(gt=Ut,Ut=pt[2*(cr+1)+1],!(++hr<Cr&&gt===Ut)){if(hr<Ue)do{Ze(Re,gt,Re.bl_tree)}while(0!=--hr);else 0!==gt?(gt!==wt&&(Ze(Re,gt,Re.bl_tree),hr--),Ze(Re,16,Re.bl_tree),At(Re,hr-3,2)):hr<=10?(Ze(Re,17,Re.bl_tree),At(Re,hr-3,3)):(Ze(Re,18,Re.bl_tree),At(Re,hr-11,7));hr=0,wt=gt,0===Ut?(Cr=138,Ue=3):gt===Ut?(Cr=6,Ue=3):(Cr=7,Ue=4)}}d(Y);var Yt=!1;function X(Re,pt,Zt,cr){At(Re,0+(cr?1:0),3),function $e(Re,pt,Zt,cr){Te(Re),cr&&(Ot(Re,Zt),Ot(Re,~Zt)),t.arraySet(Re.pending_buf,Re.window,pt,Zt,Re.pending),Re.pending+=Zt}(Re,pt,Zt,!0)}b._tr_init=function Ne(Re){Yt||(function ne(){var Re,pt,Zt,cr,wt,gt=new Array(16);for(Zt=0,cr=0;cr<28;cr++)for($[cr]=Zt,Re=0;Re<1<<re[cr];Re++)j[Zt++]=cr;for(j[Zt-1]=cr,wt=0,cr=0;cr<16;cr++)for(Y[cr]=wt,Re=0;Re<1<<oe[cr];Re++)x[wt++]=cr;for(wt>>=7;cr<30;cr++)for(Y[cr]=wt<<7,Re=0;Re<1<<oe[cr]-7;Re++)x[256+wt++]=cr;for(pt=0;pt<=15;pt++)gt[pt]=0;for(Re=0;Re<=143;)w[2*Re+1]=8,Re++,gt[8]++;for(;Re<=255;)w[2*Re+1]=9,Re++,gt[9]++;for(;Re<=279;)w[2*Re+1]=7,Re++,gt[7]++;for(;Re<=287;)w[2*Re+1]=8,Re++,gt[8]++;for(_e(w,287,gt),Re=0;Re<30;Re++)E[2*Re+1]=5,E[2*Re]=at(Re,5);W=new u(w,re,257,286,15),fe=new u(E,oe,0,30,15),ae=new u(new Array(0),B,0,19,7)}(),Yt=!0),Re.l_desc=new ye(Re.dyn_ltree,W),Re.d_desc=new ye(Re.dyn_dtree,fe),Re.bl_desc=new ye(Re.bl_tree,ae),Re.bi_buf=0,Re.bi_valid=0,be(Re)},b._tr_stored_block=X,b._tr_flush_block=function Me(Re,pt,Zt,cr){var wt,gt,Ut=0;Re.level>0?(2===Re.strm.data_type&&(Re.strm.data_type=function nt(Re){var Zt,pt=4093624447;for(Zt=0;Zt<=31;Zt++,pt>>>=1)if(1&pt&&0!==Re.dyn_ltree[2*Zt])return 0;if(0!==Re.dyn_ltree[18]||0!==Re.dyn_ltree[20]||0!==Re.dyn_ltree[26])return 1;for(Zt=32;Zt<256;Zt++)if(0!==Re.dyn_ltree[2*Zt])return 1;return 0}(Re)),br(Re,Re.l_desc),br(Re,Re.d_desc),Ut=function Dt(Re){var pt;for(rt(Re,Re.dyn_ltree,Re.l_desc.max_code),rt(Re,Re.dyn_dtree,Re.d_desc.max_code),br(Re,Re.bl_desc),pt=18;pt>=3&&0===Re.bl_tree[2*s[pt]+1];pt--);return Re.opt_len+=3*(pt+1)+5+5+4,pt}(Re),(gt=Re.static_len+3+7>>>3)<=(wt=Re.opt_len+3+7>>>3)&&(wt=gt)):wt=gt=Zt+5,Zt+4<=wt&&-1!==pt?X(Re,pt,Zt,cr):4===Re.strategy||gt===wt?(At(Re,2+(cr?1:0),3),Ft(Re,w,E)):(At(Re,4+(cr?1:0),3),function ot(Re,pt,Zt,cr){var wt;for(At(Re,pt-257,5),At(Re,Zt-1,5),At(Re,cr-4,4),wt=0;wt<cr;wt++)At(Re,Re.bl_tree[2*s[wt]+1],3);st(Re,Re.dyn_ltree,pt-1),st(Re,Re.dyn_dtree,Zt-1)}(Re,Re.l_desc.max_code+1,Re.d_desc.max_code+1,Ut+1),Ft(Re,Re.dyn_ltree,Re.dyn_dtree)),be(Re),cr&&Te(Re)},b._tr_tally=function We(Re,pt,Zt){return Re.pending_buf[Re.d_buf+2*Re.last_lit]=pt>>>8&255,Re.pending_buf[Re.d_buf+2*Re.last_lit+1]=255&pt,Re.pending_buf[Re.l_buf+Re.last_lit]=255&Zt,Re.last_lit++,0===pt?Re.dyn_ltree[2*Zt]++:(Re.matches++,pt--,Re.dyn_ltree[2*(j[Zt]+256+1)]++,Re.dyn_dtree[2*Qe(pt)]++),Re.last_lit===Re.lit_bufsize-1},b._tr_align=function ge(Re){At(Re,2,3),Ze(Re,256,w),function Be(Re){16===Re.bi_valid?(Ot(Re,Re.bi_buf),Re.bi_buf=0,Re.bi_valid=0):Re.bi_valid>=8&&(Re.pending_buf[Re.pending++]=255&Re.bi_buf,Re.bi_buf>>=8,Re.bi_valid-=8)}(Re)}},99243:M=>{"use strict";M.exports=function b(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},52999:(M,b,n)=>{"use strict";var t=n(87977);b.certificate=n(12390);var e=t.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});b.RSAPrivateKey=e;var l=t.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});b.RSAPublicKey=l;var h=t.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(r),this.key("subjectPublicKey").bitstr())});b.PublicKey=h;var r=t.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),d=t.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(r),this.key("subjectPrivateKey").octstr())});b.PrivateKey=d;var y=t.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});b.EncryptedPrivateKey=y;var g=t.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});b.DSAPrivateKey=g,b.DSAparam=t.define("DSAparam",function(){this.int()});var p=t.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(f),this.key("publicKey").optional().explicit(1).bitstr())});b.ECPrivateKey=p;var f=t.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});b.signature=t.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},12390:(M,b,n)=>{"use strict";var t=n(87977),e=t.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),l=t.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),h=t.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),r=t.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(h),this.key("subjectPublicKey").bitstr())}),d=t.define("RelativeDistinguishedName",function(){this.setof(l)}),y=t.define("RDNSequence",function(){this.seqof(d)}),g=t.define("Name",function(){this.choice({rdnSequence:this.use(y)})}),p=t.define("Validity",function(){this.seq().obj(this.key("notBefore").use(e),this.key("notAfter").use(e))}),f=t.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),C=t.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(h),this.key("issuer").use(g),this.key("validity").use(p),this.key("subject").use(g),this.key("subjectPublicKeyInfo").use(r),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(f).optional())}),N=t.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(C),this.key("signatureAlgorithm").use(h),this.key("signatureValue").bitstr())});M.exports=N},65269:(M,b,n)=>{var t=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,e=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,l=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,h=n(40347),r=n(84330),d=n(73502).Buffer;M.exports=function(y,g){var C,p=y.toString(),f=p.match(t);if(f){var a="aes"+f[1],O=d.from(f[2],"hex"),H=d.from(f[3].replace(/[\r\n]/g,""),"base64"),F=h(g,O.slice(0,8),parseInt(f[1],10)).key,V=[],D=r.createDecipheriv(a,F,O);V.push(D.update(H)),V.push(D.final()),C=d.concat(V)}else{var N=p.match(l);C=d.from(N[2].replace(/[\r\n]/g,""),"base64")}return{tag:p.match(e)[1],data:C}}},22772:(M,b,n)=>{var t=n(52999),e=n(22562),l=n(65269),h=n(84330),r=n(99357),d=n(73502).Buffer;function y(p){var f;"object"==typeof p&&!d.isBuffer(p)&&(f=p.passphrase,p=p.key),"string"==typeof p&&(p=d.from(p));var O,H,C=l(p,f),N=C.tag,a=C.data;switch(N){case"CERTIFICATE":H=t.certificate.decode(a,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(H||(H=t.PublicKey.decode(a,"der")),O=H.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return t.RSAPublicKey.decode(H.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return H.subjectPrivateKey=H.subjectPublicKey,{type:"ec",data:H};case"1.2.840.10040.4.1":return H.algorithm.params.pub_key=t.DSAparam.decode(H.subjectPublicKey.data,"der"),{type:"dsa",data:H.algorithm.params};default:throw new Error("unknown key id "+O)}case"ENCRYPTED PRIVATE KEY":a=function g(p,f){var C=p.algorithm.decrypt.kde.kdeparams.salt,N=parseInt(p.algorithm.decrypt.kde.kdeparams.iters.toString(),10),a=e[p.algorithm.decrypt.cipher.algo.join(".")],O=p.algorithm.decrypt.cipher.iv,H=p.subjectPrivateKey,F=parseInt(a.split("-")[1],10)/8,V=r.pbkdf2Sync(f,C,N,F,"sha1"),D=h.createDecipheriv(a,V,O),U=[];return U.push(D.update(H)),U.push(D.final()),d.concat(U)}(a=t.EncryptedPrivateKey.decode(a,"der"),f);case"PRIVATE KEY":switch(O=(H=t.PrivateKey.decode(a,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return t.RSAPrivateKey.decode(H.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:H.algorithm.curve,privateKey:t.ECPrivateKey.decode(H.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return H.algorithm.params.priv_key=t.DSAparam.decode(H.subjectPrivateKey,"der"),{type:"dsa",params:H.algorithm.params};default:throw new Error("unknown key id "+O)}case"RSA PUBLIC KEY":return t.RSAPublicKey.decode(a,"der");case"RSA PRIVATE KEY":return t.RSAPrivateKey.decode(a,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:t.DSAPrivateKey.decode(a,"der")};case"EC PRIVATE KEY":return{curve:(a=t.ECPrivateKey.decode(a,"der")).parameters.value,privateKey:a.privateKey};default:throw new Error("unknown key type "+N)}}M.exports=y,y.signature=t.signature},99357:(M,b,n)=>{b.pbkdf2=n(90415),b.pbkdf2Sync=n(77472)},90415:(M,b,n)=>{var d,C,t=n(73502).Buffer,e=n(62697),l=n(78867),h=n(77472),r=n(94566),y=global.crypto&&global.crypto.subtle,g={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},p=[];function N(){return C||(C=global.process&&global.process.nextTick?global.process.nextTick:global.queueMicrotask?global.queueMicrotask:global.setImmediate?global.setImmediate:global.setTimeout)}function a(H,F,V,D,U){return y.importKey("raw",H,{name:"PBKDF2"},!1,["deriveBits"]).then(function(q){return y.deriveBits({name:"PBKDF2",salt:F,iterations:V,hash:{name:U}},q,D<<3)}).then(function(q){return t.from(q)})}M.exports=function(H,F,V,D,U,q){"function"==typeof U&&(q=U,U=void 0);var J=g[(U=U||"sha1").toLowerCase()];if(J&&"function"==typeof global.Promise){if(e(V,D),H=r(H,l,"Password"),F=r(F,l,"Salt"),"function"!=typeof q)throw new Error("No callback provided to pbkdf2");!function O(H,F){H.then(function(V){N()(function(){F(null,V)})},function(V){N()(function(){F(V)})})}(function f(H){if(global.process&&!global.process.browser||!y||!y.importKey||!y.deriveBits)return Promise.resolve(!1);if(void 0!==p[H])return p[H];var F=a(d=d||t.alloc(8),d,10,128,H).then(function(){return!0}).catch(function(){return!1});return p[H]=F,F}(J).then(function(G){return G?a(H,F,V,D,J):h(H,F,V,D,U)}),q)}else N()(function(){var G;try{G=h(H,F,V,D,U)}catch(ie){return q(ie)}q(null,G)})}},78867:M=>{var b;b=global.process&&global.process.browser?"utf-8":global.process&&global.process.version?parseInt(process.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",M.exports=b},62697:M=>{var b=Math.pow(2,30)-1;M.exports=function(n,t){if("number"!=typeof n)throw new TypeError("Iterations not a number");if(n<0)throw new TypeError("Bad iterations");if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||t>b||t!=t)throw new TypeError("Bad key length")}},77472:(M,b,n)=>{var t=n(55640),e=n(75634),l=n(95244),h=n(73502).Buffer,r=n(62697),d=n(78867),y=n(94566),g=h.alloc(128),p={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function f(a,O,H){var F=function C(a){return"rmd160"===a||"ripemd160"===a?function H(F){return(new e).update(F).digest()}:"md5"===a?t:function O(F){return l(a).update(F).digest()}}(a),V="sha512"===a||"sha384"===a?128:64;O.length>V?O=F(O):O.length<V&&(O=h.concat([O,g],V));for(var D=h.allocUnsafe(V+p[a]),U=h.allocUnsafe(V+p[a]),q=0;q<V;q++)D[q]=54^O[q],U[q]=92^O[q];var J=h.allocUnsafe(V+H+4);D.copy(J,0,0,V),this.ipad1=J,this.ipad2=D,this.opad=U,this.alg=a,this.blocksize=V,this.hash=F,this.size=p[a]}f.prototype.run=function(a,O){return a.copy(O,this.blocksize),this.hash(O).copy(this.opad,this.blocksize),this.hash(this.opad)},M.exports=function N(a,O,H,F,V){r(H,F);var D=new f(V=V||"sha1",a=y(a,d,"Password"),(O=y(O,d,"Salt")).length),U=h.allocUnsafe(F),q=h.allocUnsafe(O.length+4);O.copy(q,0,0,O.length);for(var J=0,G=p[V],ie=Math.ceil(F/G),K=1;K<=ie;K++){q.writeUInt32BE(K,O.length);for(var re=D.run(q,D.ipad1),oe=re,B=1;B<H;B++){oe=D.run(oe,D.ipad2);for(var s=0;s<G;s++)re[s]^=oe[s]}re.copy(U,J),J+=G}return U}},94566:(M,b,n)=>{var t=n(73502).Buffer;M.exports=function(e,l,h){if(t.isBuffer(e))return e;if("string"==typeof e)return t.from(e,l);if(ArrayBuffer.isView(e))return t.from(e.buffer);throw new TypeError(h+" must be a string, a Buffer, a typed array or a DataView")}},38122:(M,b,n)=>{"use strict";var t=n(95318);Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var e=t(n(32228)),l=t(n(58617)),h=t(n(11497)),r=t(n(12116));function d(g){var D,U,B,s,_,E,fe,ae,p=new h.default,f=this,C=g.protocol||"websocket",N=g.appId||"PodChat",a=g.deviceId,O=g.isBinary||!1,H=typeof g.retryStepTimerTime<"u"?g.retryStepTimerTime:0,F={connect:{},disconnect:{},reconnect:{},message:{},asyncReady:{},stateChange:{},error:{},reconnecting:{},asyncDestroyed:{}},V={},G=(0,r.default)(g.logLevel),ie=!1,K=!1,re=!1,oe=0,w=[],x=g.peerId,j=0,$=g.messageTtl||86400,Y=g.serverName||"oauth-wire",u="boolean"!=typeof g.serverRegisteration||g.serverRegisteration,W=g.connectionRetryInterval||5e3,ye="boolean"!=typeof g.reconnectOnClose||g.reconnectOnClose,Qe=!(!g.asyncLogging||"boolean"!=typeof g.asyncLogging.onFunction)&&g.asyncLogging.onFunction,Ot=!(!g.asyncLogging||"boolean"!=typeof g.asyncLogging.onMessageReceive)&&g.asyncLogging.onMessageReceive,At=!(!g.asyncLogging||"boolean"!=typeof g.asyncLogging.onMessageSend)&&g.asyncLogging.onMessageSend,Ze=g.asyncLogging&&"number"==typeof parseInt(g.asyncLogging.workerId)?g.asyncLogging.workerId:0,at=g.webrtcConfig?g.webrtcConfig:null,Be=!1,Lt=g.onStartWithRetryStepGreaterThanZero,_e="function"==typeof g.asyncLogCallback?g.asyncLogCallback:null,ne="function"==typeof g.msgLogCallback?g.msgLogCallback:null,be="function"==typeof g.onDeviceId?g.onDeviceId:null,Te=!1,$e={value:!1,oldValue:null,get:function(){return $e.value},set:function(cr){$e.value=cr},getOld:function(){return $e.oldValue},setOld:function(cr){$e.oldValue=cr}};$e.set(ye);var pt,ft={value:H,get:function(){return ft.value},set:function(cr){G.debug&&console.debug("[Async][async.js] retryStep new value:",cr),ft.value=cr}},Ft=function(cr,wt){p.asyncLogger({protocol:C,workerId:Ze,type:cr,msg:wt,peerId:x,deviceId:a,isSocketOpen:ie,isDeviceRegister:K,isServerRegister:re,socketState:oe,pushSendDataQueue:w})},st=function(cr){var wt;switch((4===cr.type||5===cr.type)&&(wt=function(){X({type:6,content:{messageId:cr.id}})}),cr.type){case 0:Dt(cr);break;case 1:Ne(cr);break;case 2:nt(cr.content);break;case 3:We("message",cr);break;case 4:case 5:wt(),We("message",cr);break;case 6:We("message",cr),"function"==V[cr.senderMessageId]&&(V[cr.senderMessageId](),delete V[cr.senderMessageId]);break;case-99:We("error",{errorCode:4002,errorMessage:"Async Error!",errorEvent:cr})}},Dt=function(cr){cr.content?(void 0===a&&(a=cr.content),be&&be(a)):Ot&&p.asyncStepLogger(Ze>0?Ze+"\t Ping Response at ("+new Date+")":"Ping Response at ("+new Date+")")},nt=function(cr){K||(s&&clearTimeout(s),K=!0,x=cr),u?re&&x===E?(We("asyncReady"),re=!0,Me(),We("stateChange",{socketState:oe=1,timeUntilReconnect:0,deviceRegister:K,serverRegister:re,peerId:x})):(We("stateChange",{socketState:oe=1,timeUntilReconnect:0,deviceRegister:K,serverRegister:re,peerId:x}),Yt()):(We("asyncReady"),re="Not Needed",Me(),Qe&&p.asyncStepLogger(Ze>0?Ze+"\t Async is Ready":"Async is Ready"),We("stateChange",{socketState:oe=1,timeUntilReconnect:0,deviceRegister:K,serverRegister:re,peerId:x}))},Yt=function Zt(){Qe&&p.asyncStepLogger(Ze>0?Ze+"\t Registering Server":"Registering Server"),X({type:1,content:{name:Y}}),B=setTimeout(function(){re||Zt()},W)},Ne=function(cr){cr.senderName&&cr.senderName===Y?(re=!0,B&&clearTimeout(B),We("stateChange",{socketState:oe=1,timeUntilReconnect:0,deviceRegister:K,serverRegister:re,peerId:x}),We("asyncReady"),Me(),Qe&&p.asyncStepLogger(Ze>0?Ze+"\t Async is Ready":"Async is Ready")):re=!1},X=function(cr){switch(At&&Ft("Send",cr),C){case"websocket":1===oe?D.emit(cr):w.push(cr);break;case"webrtc":1===oe?U.emit(cr):w.push(cr)}},ge=function(){s&&clearTimeout(s),s=null,B&&clearTimeout(B),B=null,_&&clearTimeout(_),_=null,ae&&clearTimeout(ae),ae=null},Me=function(){for(;w.length>0&&1===oe;){var cr=w.splice(0,1)[0];X(cr)}},We=function(cr,wt,gt){if(gt)for(var Ut in F[cr])F[cr][Ut](wt,gt);else for(var Ut in F[cr])F[cr][Ut](wt)};function Re(){if(!Te)switch(We("stateChange",{socketState:0,timeUntilReconnect:0,deviceRegister:!1,serverRegister:!1,peerId:x}),Te=!0,C){case"websocket":(D=new e.default({socketAddress:g.socketAddress,wsConnectionWaitTime:g.wsConnectionWaitTime,connectionCheckTimeout:g.connectionCheckTimeout,connectionCheckTimeoutThreshold:g.connectionCheckTimeoutThreshold,isBinary:O,logLevel:G,msgLogCallback:ne,asyncLogCallback:_e,onOpen:function(){Te=!1,_&&clearTimeout(_),fe&&clearTimeout(fe),fe=null,ae&&clearTimeout(ae),ie=!0,ft.set(0),We("stateChange",{socketState:oe=1,timeUntilReconnect:0,deviceRegister:K,serverRegister:re,peerId:x,deviceId:a})},onMessage:function(wt){st(wt),Ot&&Ft("Receive",wt)},onClose:function(wt){ie=!1,K=!1,E=x,oe=3,Te=!1,We("disconnect",wt),$e.get()||$e.getOld()?(Qe&&p.asyncStepLogger(Ze>0?Ze+"\t Reconnecting after "+ft.get()+"s":"Reconnecting after "+ft.get()+"s"),G.debug&&console.debug("[Async][async.js] on socket close, retryStep:",ft.get()),We("stateChange",{socketState:oe,timeUntilReconnect:1e3*ft.get(),deviceRegister:K,serverRegister:re,peerId:x}),fe&&clearTimeout(fe),fe=null,We("reconnecting",{nextTime:ft.get()}),D.destroy(),fe=setTimeout(function(){Be||Re()},1e3*ft.get()),ft.get()<64&&ft.set(ft.get()+3)):(fe&&clearTimeout(fe),fe=null,ae&&clearTimeout(ae),We("error",{errorCode:4005,errorMessage:"Socket Closed!"}),We("stateChange",{socketState:oe=3,timeUntilReconnect:0,deviceRegister:K,serverRegister:re,peerId:x}))},onError:function(wt){We("error",{errorCode:"",errorMessage:"",errorEvent:wt})},onCustomError:function(wt){We("error",{errorCode:wt.errorCode,errorMessage:wt.errorMessage,errorEvent:wt.errorEvent})}})).connect();break;case"webrtc":U=new l.default({baseUrl:at?at.baseUrl:null,basePath:at?at.basePath:null,configuration:at?at.configuration:null,connectionCheckTimeout:g.connectionCheckTimeout,logLevel:G,msgLogCallback:ne,asyncLogCallback:_e,connectionOpenWaitTime:g.connectionOpenWaitTime,onOpen:function(wt){Te=!1,_&&clearTimeout(_),_=null,fe&&clearTimeout(fe),fe=null,ae&&clearTimeout(ae),ie=!0,ft.set(0),We("stateChange",{socketState:oe=1,timeUntilReconnect:0,deviceRegister:K,serverRegister:re,peerId:x}),wt&&void 0===a&&(a=wt),be&&be(a)},onMessage:function(wt){st(wt),Ot&&Ft("Receive",wt)},onClose:function(wt){ie=!1,K=!1,E=x,oe=3,Te=!1,We("disconnect",wt),$e.get()||$e.getOld()?(Qe&&p.asyncStepLogger(Ze>0?Ze+"\t Reconnecting after "+ft.get()+"s":"Reconnecting after "+ft.get()+"s"),G.debug&&console.debug("[Async][async.js] on connection close, retryStep:",ft.get()),We("stateChange",{socketState:oe,timeUntilReconnect:1e3*ft.get(),deviceRegister:K,serverRegister:re,peerId:x}),fe&&clearTimeout(fe),fe=null,We("reconnecting",{nextTime:ft.get()}),U.destroy(),_e&&_e("async","closed.reconnect","before: "+ft.get()),fe=setTimeout(function(){Be||(_e&&_e("async","closed.reconnect","after"),Re())},1e3*ft.get()),ft.get()<64&&ft.set(ft.get()+3)):(fe&&clearTimeout(fe),fe=null,ae&&clearTimeout(ae),We("error",{errorCode:4005,errorMessage:"Connection Closed!"}),We("stateChange",{socketState:oe=3,timeUntilReconnect:0,deviceRegister:K,serverRegister:re,peerId:x}))},onCustomError:function(wt){We("error",{errorCode:wt.errorCode,errorMessage:wt.errorMessage,errorEvent:wt.errorEvent})},onError:function(wt){We("error",{errorCode:"",errorMessage:"",errorEvent:wt})}}),_=setTimeout(function(){ie||We("error",{errorCode:4001,errorMessage:"Can not open Socket!"})},65e3),U.connect()}}this.on=function(Zt,cr){if(F[Zt]){var wt=p.generateUUID();return F[Zt][wt]=cr,wt}"connect"===Zt&&1===oe&&cr(x)},this.send=function(Zt,cr){var wt="number"==typeof Zt.type?Zt.type:cr?5:3,gt={type:wt,uniqueId:Zt.uniqueId?Zt.uniqueId:void 0,content:Zt.content};Zt.trackerId&&(gt.trackerId=Zt.trackerId);var Ut=j+=1;(5===wt||4===wt)&&(V[Ut]=function(){cr&&cr()}),gt.content.messageId=Ut,gt.content.ttl=$,X(gt)},this.getAsyncState=function(){return oe},this.getSendQueue=function(){return w},this.getPeerId=function(){return x},this.getServerName=function(){return Y},this.setServerName=function(Zt){Y=Zt},this.setDeviceId=function(Zt){a=Zt},this.close=function(){switch(E=x,K=!1,ie=!1,ge(),C){case"websocket":We("stateChange",{socketState:oe=3,timeUntilReconnect:0,deviceRegister:K,serverRegister:re,peerId:x}),fe&&clearTimeout(fe),fe=null,D&&D.destroy();break;case"webrtc":We("stateChange",{socketState:oe=3,timeUntilReconnect:0,deviceRegister:K,serverRegister:re,peerId:x}),fe&&clearTimeout(fe),fe=null,U&&U.destroy()}},this.logout=function(){return new Promise(function(Zt){switch(Be=!0,fe&&clearTimeout(fe),fe=null,pt&&clearTimeout(fe),pt=null,E=x,x=void 0,re=!1,K=!1,ie=!1,a=void 0,w=[],V={},ge(),C){case"websocket":We("stateChange",{socketState:oe=3,timeUntilReconnect:0,deviceRegister:K,serverRegister:re,peerId:x}),$e.set(!1),D&&D.destroy();break;case"webrtc":We("stateChange",{socketState:oe=3,timeUntilReconnect:0,deviceRegister:K,serverRegister:re,peerId:x}),$e.set(!1),U&&U.destroy()}for(var cr in F)delete F[cr];setTimeout(function(){Zt()},20)})},this.reconnectSocket=function(){ft.set(0),!Te&&(ie=!1,K=!1,E=x,oe=3,We("disconnect",{}),G.debug&&console.debug("[Async][async.js] on socket close, retryStep:",ft.get()),We("stateChange",{socketState:oe,timeUntilReconnect:1e3*ft.get(),deviceRegister:K,serverRegister:re,peerId:x}),fe&&clearTimeout(fe),fe=null,We("reconnecting",{nextTime:ft.get()}),"websocket"==C?D&&D.destroy():"webrtc"==C&&U&&U.destroy(),!Be&&setTimeout(function(){Re(),ft.get()<64&&ft.set(3)},100))},this.setRetryTimerTime=function(Zt){ft.set(Zt)},this.generateUUID=p.generateUUID,this.registerDevice=function(cr){var wt={appId:N,deviceId:cr};void 0!==x?(wt.refresh=!0,wt.renew=!1):(wt.renew=!0,wt.refresh=!1),X({type:2,content:wt})},ft.get()>0&&Lt&&Lt({socketState:3,timeUntilReconnect:1e3*ft.get(),deviceRegister:!1,serverRegister:!1,peerId:x}),fe=setTimeout(function(){Be||(window.addEventListener("online",function(){_e&&_e("async","window.online",""),ie||f.reconnectSocket()}),window.addEventListener("offline",function(){_e&&_e("async","window.offline",""),ie&&f.reconnectSocket()}),Re(),ft.get()<64&&ft.set(ft.get()+3))},1e3*ft.get())}M.exports=d,b.default=d},32228:(M,b,n)=>{"use strict";var t=n(95318);Object.defineProperty(b,"__esModule",{value:!0}),b.Socket=h;var e=t(n(87757)),l=t(n(48926));function h(r){typeof WebSocket>"u"&&typeof b<"u"&&(WebSocket=n(99151));var p,f,O,d=r.socketAddress,y=r.wsConnectionWaitTime||500,N=r.logLevel,a=new function K($){var Y={normalWaitTime:$.waitTime,lastRequestTimeoutId:null,lastReceivedMessageTime:0,totalNoMessageCount:0,timeoutIds:{first:null,second:null,third:null}};return{resetPingLoop:function(){this.stopPingLoop(),this.setPingTimeout()},setPingTimeout:function(){Y.timeoutIds.first=setTimeout(function(){B(),Y.timeoutIds.second=setTimeout(function(){B(),Y.timeoutIds.third=setTimeout(function(){N.debug&&console.debug("[Async][Socket.js] Force closing socket."),j(F_PING_FAILED)},2e3)},2e3)},8e3)},stopPingLoop:function(){clearTimeout(Y.timeoutIds.first),clearTimeout(Y.timeoutIds.second),clearTimeout(Y.timeoutIds.third)}}}({waitTime:r.connectionCheckTimeout||1e4}),H=!1,F_PING_FAILED={code:4900,reason:"Ping with server failed"},F_REQUEST_FROM_ASYNC_CLASS={code:4901,reason:"Close by sdk"},F_CONNECTION_OPEN_TIMEOUT={code:4902,reason:"Connection didn't open after a long time"},V=r.msgLogCallback,D=r.onOpen,U=r.onClose,q=r.onMessage,J=r.onCustomError,G=r.onError,ie=r.isBinary,B=function(){_({type:0})},s=function $(Y){f&&clearTimeout(f),1===p.readyState?Y():f=setTimeout(function(){1===p.readyState?Y():$(Y)},y)},_=function(Y){var u={type:Y.type,uniqueId:Y.uniqueId};Y.trackerId&&(u.trackerId=Y.trackerId);try{if(Y.content&&(u.content=JSON.stringify(Y.content)),1===p.readyState){var W=JSON.stringify(u);if(ie){for(var fe=new ArrayBuffer(W.length),ae=new Uint8Array(fe),ye=0;ye<W.length;ye++)ae[ye]=W[ye].charCodeAt(0);W=ae}V&&V({msg:W,direction:"send",time:(new Date).getTime()}),p.send(W)}}catch(Qe){J({errorCode:4004,errorMessage:"Error in Socket sendData!",errorEvent:Qe})}};function w($){return E.apply(this,arguments)}function E(){return(E=(0,l.default)(e.default.mark(function $(Y){return e.default.wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:return ae.next=2,Y.text();case 2:return ae.abrupt("return",ae.sent);case 4:case"end":return ae.stop()}},$)}))).apply(this,arguments)}var x={};function j($){a.stopPingLoop(),p&&(p.onclose=null,p.onmessage=null,p.onerror=null,p.onopen=null),p&&(p.onerror=function(W){console.error("Socket Close Error: ",W)},p&&($?p.close($.code,$.reason):p.close(),p.onerror=null)),setTimeout(function(){p=null,!H&&U&&U()},35)}return x.emit=_,x.connect=function(){!function(){try{if(p&&1==p.readyState)return;p=new WebSocket(d,[]),O&&clearTimeout(O),O=setTimeout(function(){N.debug&&console.debug("[Async][Socket.js] socketWatchTimeout triggered."),j(F_CONNECTION_OPEN_TIMEOUT)},5e3),p.onopen=function(Y){D?s(function(){a.resetPingLoop(),D(),O&&clearTimeout(O)}):j()},p.onmessage=function(){var Y=(0,l.default)(e.default.mark(function u(W){var fe,ae;return e.default.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:if(!(W.data instanceof Blob)){Qe.next=6;break}return Qe.next=3,w(W.data);case 3:fe=Qe.sent,Qe.next=7;break;case 6:fe=W.data;case 7:V&&V({msg:fe,direction:"receive",time:(new Date).getTime()}),q?(a.resetPingLoop(),ae=JSON.parse(fe),q(ae)):j();case 9:case"end":return Qe.stop()}},u)}));return function(u){return Y.apply(this,arguments)}}(),p.onclose=function(Y){a.stopPingLoop(),N.debug&&console.debug("[Async][Socket.js] socket.onclose happened. EventData:",Y),j(),O&&clearTimeout(O)},p.onerror=function(Y){N.debug&&console.debug("[Async][Socket.js] socket.onerror happened. EventData:",Y),G&&(G(Y),j(),O&&clearTimeout(O))}}catch(Y){J({errorCode:4e3,errorMessage:"ERROR in WEBSOCKET!",errorEvent:Y})}}()},x.close=function(){N.debug&&console.debug("[Async][Socket.js] Closing socket by call to this.close"),j(F_REQUEST_FROM_ASYNC_CLASS),O&&clearTimeout(O)},x.destroy=function(){H=!0,x.close(),U=null,D=null,q=null,J=null},x}M.exports=h},58617:(M,b,n)=>{"use strict";var t=n(95318),e=n(50008),l=t(n(87757)),h=t(n(48926)),r=function y(p,f){if(!f&&p&&p.__esModule)return p;if(null===p||"object"!==e(p)&&"function"!=typeof p)return{default:p};var C=d(f);if(C&&C.has(p))return C.get(p);var N={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in p)if("default"!==O&&Object.prototype.hasOwnProperty.call(p,O)){var H=a?Object.getOwnPropertyDescriptor(p,O):null;H&&(H.get||H.set)?Object.defineProperty(N,O,H):N[O]=p[O]}return N.default=p,C&&C.set(p,N),N}(n(76842));function d(p){if("function"!=typeof WeakMap)return null;var f=new WeakMap,C=new WeakMap;return(d=function(a){return a?C:f})(p)}M.exports=function g(p){var f=p.baseUrl,C=p.basePath,N=p.configuration,a=p.connectionCheckTimeout,O=void 0===a?1e4:a,H=p.logLevel,F=p.msgLogCallback,V=p.connectionOpenWaitTime,D=p.onOpen,U=p.onMessage,q=p.onError,J=p.onCustomError,G=p.onClose,ie=p.asyncLogCallback,K={protocol:"https",baseUrl:"109.201.0.97",basePath:"/webrtc/",registerEndpoint:"register/",addICEEndpoint:"add-ice/",getICEEndpoint:"get-ice/?",configuration:{bundlePolicy:"balanced",iceTransportPolicy:"relay",iceServers:[{urls:"turn:turnsandbox.podstream.ir:3478",username:"mkhorrami",credential:"mkh_123456"}]},connectionCheckTimeout:1e4,logLevel:null,msgLogCallback:null,connectionOpenWaitTime:7e3},re={peerConnection:null,dataChannel:null,pingController:new function _(at){var Be={normalWaitTime:at.waitTime,lastRequestTimeoutId:null,lastReceivedMessageTime:0,totalNoMessageCount:0,timeoutIds:{first:null,second:null,third:null,fourth:null}};return{resetPingLoop:function(){this.stopPingLoop(),this.setPingTimeout()},setPingTimeout:function(){Be.timeoutIds.first=setTimeout(function(){W(),Be.timeoutIds.second=setTimeout(function(){W(),Be.timeoutIds.third=setTimeout(function(){K.logLevel.debug&&console.debug("[Async][Webrtc.js] Force closing connection."),ie&&ie("webrtc","setPingTimeout","closing"),ae.close()},2e3)},2e3)},8e3)},stopPingLoop:function(){clearTimeout(Be.timeoutIds.first),clearTimeout(Be.timeoutIds.second),clearTimeout(Be.timeoutIds.third)}}}({waitTime:K.connectionCheckTimeout}),candidatesQueue:[],candidateManager:new s,clientId:null,deviceId:null,apiCallRetries:{register:2,getIce:3,addIce:5},eventCallback:{},subdomain:null,isDestroyed:!1,dataChannelOpenTimeout:null,isDataChannelOpened:!1,controller:new AbortController},oe={};function s(){var at={candidatesToSend:[],alreadyReceivedServerCandidates:!1,reCheckTimeout:null};function Be(){!function _e(){if(re.peerConnection&&"stable"===re.peerConnection.signalingState)if(at.reCheckTimeout&&clearTimeout(at.reCheckTimeout),at.candidatesToSend.length){var ne=at.candidatesToSend.shift();Y.sendCandidate(ne).then(function(be){be.length&&(Lt(be),at.alreadyReceivedServerCandidates=!0),Be()})}else at.alreadyReceivedServerCandidates||Y.getCandidates(re.clientId).then(function(be){Lt(be)}).catch();else at.reCheckTimeout&&clearTimeout(at.reCheckTimeout),at.reCheckTimeout=setTimeout(_e,1e3)}()}function Lt(_e){for(var ne in _e)x.putCandidateToQueue(_e[ne])}return{add:function(ne){at.candidatesToSend.push(ne),Be()},destroy:function(){at.reCheckTimeout&&clearTimeout(at.reCheckTimeout)}}}f&&(oe.baseUrl=f),C&&(oe.basePath=C),N&&(oe.configuration=N),O&&(oe.connectionCheckTimeout=O),H&&(oe.logLevel=H),V&&(oe.connectionOpenWaitTime=V),(K=Object.assign(K,oe)).msgLogCallback=F;var x={createPeerConnection:function(){try{re.peerConnection=new RTCPeerConnection(K.configuration),console.log("[Async][webrtc] Created peer connection.")}catch(_e){return ie&&ie("webrtc","createPeerConnection","closing"),ae.close(),void console.error("[Async][webrtc] Webrtc Peer Create Error: ",_e.message)}function Lt(_e){re.clientId=_e.clientId,re.deviceId=_e.deviceId,re.subdomain=_e.subDomain,x.processAnswer(_e.sdpAnswer)}re.peerConnection.onconnectionstatechange=function(_e){ie&&ie("webrtc","onconnectionstatechange",re.peerConnection.connectionState)},re.peerConnection.oniceconnectionstatechange=function(_e){ie&&ie("webrtc","oniceconnectionstatechange",re.peerConnection.connectionState)},re.peerConnection.addEventListener("signalingstatechange",x.signalingStateChangeCallback),re.peerConnection.onicecandidate=function(_e){_e.candidate&&(re.candidateManager.add(_e.candidate),x.putCandidateToQueue(_e.candidate))},x.createDataChannel(),x.generateSdpOffer().then(function Be(_e){Y.register(_e.sdp).then(Lt).catch(),re.peerConnection.setLocalDescription(_e).catch(function(ne){return console.error(ne)})})},signalingStateChangeCallback:function(Be){ie&&ie("webrtc","signalingStateChangeCallback",re.peerConnection.signalingState),re.peerConnection&&"stable"===re.peerConnection.signalingState&&x.addTheCandidates()},createDataChannel:function(){re.dataChannel=re.peerConnection.createDataChannel("dataChannel",{ordered:!1}),re.dataChannel.onopen=j.onopen,re.dataChannel.onmessage=j.onmessage,re.dataChannel.onerror=j.onerror,re.dataChannel.onclose=j.onclose},generateSdpOffer:function(){return new Promise(function(Be,Lt){re.peerConnection.createOffer(function(_e){Be(_e)},function(_e){Lt(_e),console.error(_e)}).then(function(_e){console.log(_e),_e&&Be(_e)})})},processAnswer:function(Be){re.peerConnection.setRemoteDescription(new RTCSessionDescription({type:"answer",sdp:Be})).catch(function(_e){console.error(_e)})},addTheCandidates:function(){for(;re.candidatesQueue.length;){var Be=re.candidatesQueue.shift();re.peerConnection.addIceCandidate(Be.candidate)}},putCandidateToQueue:function(Be){re.candidatesQueue.push({candidate:new RTCIceCandidate(Be)}),re.peerConnection&&"stable"===re.peerConnection.signalingState&&x.addTheCandidates()},sendData:function(Be){if(re.dataChannel){var Lt={type:Be.type,uniqueId:Be.uniqueId};Be.trackerId&&(Lt.trackerId=Be.trackerId);try{if(Be.content&&(Lt.content=JSON.stringify(Be.content)),re.peerConnection&&"stable"===re.peerConnection.signalingState){var _e=JSON.stringify(Lt);K.msgLogCallback&&K.msgLogCallback({msg:_e,direction:"send",time:(new Date).getTime()}),re.dataChannel.send(_e)}}catch(ne){ie&&ie("webrtc","webrtcFunctions.sendData.catch",ne),J({errorCode:4004,errorMessage:"Error in channel send message!",errorEvent:ne})}}else console.error("Connection is closed, do not send messages.")}},j={onopen:function(Be){ie&&ie("webrtc","dataChannel.onopen",Be),re.isDataChannelOpened=!0,re.pingController.resetPingLoop(),D(re.deviceId)},onmessage:function(Be){re.pingController.resetPingLoop(),function Ot(at){return At.apply(this,arguments)}(Be.data).then(function(Lt){K.msgLogCallback&&K.msgLogCallback({msg:Lt,direction:"receive",time:(new Date).getTime()});var _e=JSON.parse(Lt);U(_e)})},onerror:function(Be){ie&&ie("webrtc","dataChannel.onerror",Be),K.logLevel.debug&&console.debug("[Async][webrtc] dataChannel.onerror happened. EventData:",Be),q(),ae.close()},onclose:function(Be){ie&&ie("webrtc","dataChannel.onclose",Be),ae.close()}};function $(){return(re.subdomain?re.subdomain:K.protocol+"://"+K.baseUrl)+K.basePath}var Y={register:function(Be){var Lt=re.apiCallRetries.register;return new Promise(_e);function _e(be,Te){if(!re.isDestroyed){var $e=$()+K.registerEndpoint,ft=new AbortController,Ge=setTimeout(function(){return ft.abort()},2500);fetch($e,{method:"POST",body:JSON.stringify({offer:Be}),headers:{"Content-Type":"application/json"},signal:ft.signal}).then(function(Ft){if(clearTimeout(Ge),Ft.ok)return function E(){re.dataChannelOpenTimeout=setTimeout(function(){(function B(){return re.isDataChannelOpened})()||(ie&&ie("webrtc","dataChannelOpenTimeout","closing"),ae.close())},K.connectionOpenWaitTime)}(),Ft.json();Lt?(ne(be,Te),Lt--):Te()}).then(function(Ft){return be(Ft)}).catch(function(Ft){clearTimeout(Ge),Lt?(ne(be,Te),Lt--):(ie&&ie("webrtc","register.catch","closing"),ae.close()),console.error(Ft)})}}function ne(be,Te){setTimeout(function(){_e(be,Te)},1e3)}},getCandidates:function(Be){var Lt=$()+K.getICEEndpoint;Lt+="clientId="+Be;var _e=re.apiCallRetries.getIce;return new Promise(ne);function ne(Te,$e){re.isDestroyed||fetch(Lt,{method:"GET",headers:{"Content-Type":"application/json"}}).then(function(ft){if(ft.ok)return ft.json();_e?(be(Te,$e),_e--):$e()}).then(function(ft){Te(ft.iceCandidates)}).catch(function(ft){_e?(be(Te,$e),_e--):$e(ft),console.error(ft)})}function be(Te,$e){setTimeout(function(){ne(Te,$e)},1e3)}},sendCandidate:function(Be){var Lt=$()+K.addICEEndpoint,_e=re.apiCallRetries.addIce;return new Promise(ne);function ne(Te,$e){re.isDestroyed||fetch(Lt,{method:"POST",body:JSON.stringify({clientId:re.clientId,candidate:Be}),headers:{"Content-Type":"application/json"}}).then(function(ft){if(ft.ok)return ft.json();_e?(be(Te,$e),_e--):$e()}).then(function(ft){Te(ft.iceCandidates)}).catch(function(ft){_e?(be(Te,$e),_e--):$e(ft),console.error(ft)})}function be(Te,$e){setTimeout(function(){ne(Te,$e)},2e3)}}};function W(){x.sendData({type:0})}var ae={};function ye(at,Be){return Qe.apply(this,arguments)}function Qe(){return(Qe=(0,h.default)(l.default.mark(function at(Be,Lt){var _e,ne;return l.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return _e=r.decompressSync(new Uint8Array(Be)),ne=(new TextDecoder).decode(_e),Te.abrupt("return",ne);case 3:case"end":return Te.stop()}},at)}))).apply(this,arguments)}function At(){return(At=(0,h.default)(l.default.mark(function at(Be){return l.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return _e.next=2,ye(Ze(Be),"gzip");case 2:return _e.abrupt("return",_e.sent);case 3:case"end":return _e.stop()}},at)}))).apply(this,arguments)}function Ze(at){for(var Be=window.atob(at),Lt=Be.length,_e=new Uint8Array(Lt),ne=0;ne<Lt;ne++)_e[ne]=Be.charCodeAt(ne);return _e.buffer}return ae.emit=x.sendData,ae.connect=function w(){re.isDestroyed=!1,x.createPeerConnection(),console.log("[Async][webrtc] defaultConfig.connectionOpenWaitTime",K.connectionOpenWaitTime)},ae.close=function(){ie&&ie("webrtc","publicized.close","closing"),function fe(){re.peerConnection&&(re.peerConnection.onicecandidate=null),re.dataChannel&&(re.dataChannel.onclose=null,re.dataChannel.onmessage=null,re.dataChannel.onerror=null,re.dataChannel.onopen=null)}(),function u(){re.subdomain=null,re.pingController.stopPingLoop(),re.dataChannel&&re.dataChannel.close(),re.dataChannel=null,re.peerConnection&&re.peerConnection.close(),re.peerConnection=null,re.candidatesQueue=[],re.clientId=null,re.deviceId=null,re.candidateManager.destroy(),re.candidateManager=new s,re.isDataChannelOpened=!1,clearTimeout(re.dataChannelOpenTimeout),!re.isDestroyed&&G&&G()}()},ae.destroy=function(){re.isDestroyed=!0,ie&&ie("webrtc","publicized.destroy","closing"),ae.close(),D=null,G=null,U=null,q=null,J=null},ae}},12116:M=>{"use strict";function b(n){switch(n||2){case 1:return{error:!0,debug:!1,info:!1};case 2:return{error:!0,debug:!0,info:!1};case 3:return{error:!0,debug:!0,info:!0}}}typeof M.exports<"u"?M.exports=b:(window.POD||(window.POD={}),window.POD.LogLevel=b)},11497:(M,b,n)=>{"use strict";var e=n(95318)(n(50008));function l(){this.isNode=function(){return typeof global<"u"&&"[object global]"==={}.toString.call(global)},this.generateUUID=function(h){var r=(new Date).getTime(),d="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";return 1==h&&(d="xxxxxxxx"),2==h&&(d="xxxxxxxx-xxxx"),3==h&&(d="xxxxxxxx-xxxx-4xxx"),4==h&&(d="xxxxxxxx-xxxx-4xxx-yxxx"),d.replace(/[xy]/g,function(g){var p=(r+16*Math.random())%16|0;return r=Math.floor(r/16),("x"==g?p:7&p|8).toString(16)})},this.asyncLogger=function(h){var F,V,D,r=h.type,d=h.msg,y=h.peerId,g=h.deviceId,p=h.isSocketOpen,f=h.isDeviceRegister,C=h.isServerRegister,N=h.socketState,a=h.pushSendDataQueue,O=h.workerId,H=h.protocol||"websocket";switch(r){case"Send":F=44,V=34,D="#4c8aff";break;case"Receive":F=45,V=35,D="#aa386d";break;case"Error":F=41,V=31,D="#ff0043";break;default:F=45,D="#212121"}"websocket"===H&&(typeof global<"u"&&"[object global]"==={}.toString.call(global)?(console.log("\n"),console.log("\x1b["+F+"m\x1b[8m%s\x1b[0m","################################################################"),console.log("\x1b["+F+"m\x1b[8m##################\x1b[0m\x1b[37m\x1b["+F+"m S O C K E T    S T A T U S \x1b[0m\x1b["+F+"m\x1b[8m##################\x1b[0m"),console.log("\x1b["+F+"m\x1b[8m%s\x1b[0m","################################################################"),console.log("\x1b["+F+"m\x1b[8m##\x1b[0m \t\t\t\t\t\t\t      \x1b["+F+"m\x1b[8m##\x1b[0m"),console.log("\x1b["+F+"m\x1b[8m##\x1b[0m \x1b[2m%s\x1b[0m \x1b[1m%s\x1b[0m"," PEER ID\t\t",y),O>0&&console.log("\x1b["+F+"m\x1b[8m##\x1b[0m \x1b[2m%s\x1b[0m \x1b[1m%s\x1b[0m"," WORKER ID\t\t",O),console.log("\x1b["+F+"m\x1b[8m##\x1b[0m \x1b[2m%s\x1b[0m \x1b[1m%s\x1b[0m"," DEVICE ID\t\t",g),console.log("\x1b["+F+"m\x1b[8m##\x1b[0m \x1b[2m%s\x1b[0m \x1b[1m%s\x1b[0m"," IS SOCKET OPEN\t",p),console.log("\x1b["+F+"m\x1b[8m##\x1b[0m \x1b[2m%s\x1b[0m \x1b[1m%s\x1b[0m"," DEVICE REGISTER\t",f),console.log("\x1b["+F+"m\x1b[8m##\x1b[0m \x1b[2m%s\x1b[0m \x1b[1m%s\x1b[0m"," SERVER REGISTER\t",C),console.log("\x1b["+F+"m\x1b[8m##\x1b[0m \x1b[2m%s\x1b[0m \x1b[1m%s\x1b[0m"," SOCKET STATE\t",N),console.log("\x1b["+F+"m\x1b[8m##\x1b[0m \x1b[2m%s\x1b[0m \x1b["+V+"m%s\x1b[0m "," CURRENT MESSAGE\t",r),console.log("\x1b["+F+"m\x1b[8m##\x1b[0m"),Object.keys(d).forEach(function(U){"object"===(0,e.default)(d[U])?(console.log("\x1b["+F+"m\x1b[8m##\x1b[0m \t \x1b[1m-\x1b[0m \x1b[35m%s\x1b[0m",U),Object.keys(d[U]).forEach(function(q){console.log("\x1b["+F+"m\x1b[8m##\x1b[0m \t   \x1b[1m\u2022\x1b[0m \x1b[35m%s\x1b[0m : \x1b[33m%s\x1b[0m",q,d[U][q])})):console.log("\x1b["+F+"m\x1b[8m##\x1b[0m \t \x1b[1m\u2022\x1b[0m \x1b[35m%s\x1b[0m : \x1b[33m%s\x1b[0m",U,d[U])}),console.log("\x1b["+F+"m\x1b[8m##\x1b[0m"),a.length>0?(console.log("\x1b["+F+"m\x1b[8m##\x1b[0m \x1b[2m%s\x1b[0m"," SEND QUEUE"),console.log("\x1b["+F+"m\x1b[8m##\x1b[0m"),Object.keys(a).forEach(function(U){"object"===(0,e.default)(a[U])?(console.log("\x1b["+F+"m\x1b[8m##\x1b[0m \t \x1b[1m-\x1b[0m \x1b[35m%s\x1b[0m",U),Object.keys(a[U]).forEach(function(q){console.log("\x1b["+F+"m\x1b[8m##\x1b[0m \t   \x1b[1m\u2022\x1b[0m \x1b[35m%s\x1b[0m : \x1b[36m%s\x1b[0m",q,JSON.stringify(a[U][q]))})):console.log("\x1b["+F+"m\x1b[8m##\x1b[0m \t \x1b[1m\u2022\x1b[0m \x1b[35m%s\x1b[0m : \x1b[33m%s\x1b[0m",U,a[U])})):console.log("\x1b["+F+"m\x1b[8m##\x1b[0m \x1b[2m%s\x1b[0m \x1b[1m%s\x1b[0m "," SEND QUEUE\t\t","Empty"),console.log("\x1b["+F+"m\x1b[8m##\x1b[0m \t\t\t\t\t\t\t      \x1b["+F+"m\x1b[8m##\x1b[0m"),console.log("\x1b["+F+"m\x1b[8m%s\x1b[0m","################################################################"),console.log("\n")):(console.log("\n"),console.log("%cS O C K E T    S T A T U S","background: "+D+"; padding: 10px 142px; font-weight: bold; font-size: 18px; color: #fff;"),console.log("\n"),console.log("%c   PEER ID\t\t %c"+y,"color: #444","color: #ffac28; font-weight: bold"),console.log("%c   DEVICE ID\t\t %c"+g,"color: #444","color: #ffac28; font-weight: bold"),console.log("%c   IS SOCKET OPEN\t %c"+p,"color: #444","color: #ffac28; font-weight: bold"),console.log("%c   DEVICE REGISTER\t %c"+f,"color: #444","color: #ffac28; font-weight: bold"),console.log("%c   SERVER REGISTER\t %c"+C,"color: #444","color: #ffac28; font-weight: bold"),console.log("%c   SOCKET STATE\t\t %c"+N,"color: #444","color: #ffac28; font-weight: bold"),console.log("%c   CURRENT MESSAGE\t %c"+r,"color: #444","color: #aa386d; font-weight: bold"),console.log("\n"),Object.keys(d).forEach(function(U){"object"===(0,e.default)(d[U])?(console.log("%c \t-"+U,"color: #777"),Object.keys(d[U]).forEach(function(q){console.log("%c \t  \u2022"+q+" : %c"+d[U][q],"color: #777","color: #f23; font-weight: bold")})):console.log("%c \t\u2022"+U+" : %c"+d[U],"color: #777","color: #f23; font-weight: bold")}),console.log("\n"),a.length>0?(console.log("%c   SEND QUEUE","color: #444"),console.log("\n"),Object.keys(a).forEach(function(U){"object"===(0,e.default)(a[U])?(console.log("%c \t-"+U,"color: #777"),Object.keys(a[U]).forEach(function(q){console.log("%c \t  \u2022"+q+" : %c"+JSON.stringify(a[U][q]),"color: #777","color: #999; font-weight: bold")})):console.log("%c \t\u2022"+U+" : %c"+a[U],"color: #777","color: #999; font-weight: bold")})):console.log("%c   SEND QUEUE\t\t %cEmpty","color: #444","color: #000; font-weight: bold"),console.log("\n"),console.log("%c ","font-weight: bold; font-size: 3px; border-left: solid 540px "+D+";"),console.log("\n")))},this.asyncStepLogger=function(h){typeof navigator>"u"?console.log("\x1b[90m    \u2630 \x1b[0m\x1b[90m%s\x1b[0m",h):console.log("%c   "+h,"border-left: solid #666 10px; color: #666;")}}typeof M.exports<"u"?M.exports=l:(window.POD||(window.POD={}),window.POD.AsyncUtility=l)},8889:(M,b,n)=>{"use strict";var t=n(95318),e=n(50008);Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var l=t(n(87757)),h=t(n(59713)),r=t(n(49064)),d=t(n(48926)),y=t(n(50008)),g=n(44289),p=t(n(63902)),f=function V(G,ie){if(!ie&&G&&G.__esModule)return G;if(null===G||"object"!==e(G)&&"function"!=typeof G)return{default:G};var K=F(ie);if(K&&K.has(G))return K.get(G);var re={},oe=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var B in G)if("default"!==B&&Object.prototype.hasOwnProperty.call(G,B)){var s=oe?Object.getOwnPropertyDescriptor(G,B):null;s&&(s.get||s.set)?Object.defineProperty(re,B,s):re[B]=G[B]}return re.default=G,K&&K.set(G,re),re}(n(17713)),C=t(n(19815)),N=n(97701),a=t(n(47931)),O=t(n(70856)),H=t(n(50017));function F(G){if("function"!=typeof WeakMap)return null;var ie=new WeakMap,K=new WeakMap;return(F=function(oe){return oe?K:ie})(G)}function D(G,ie){var K=Object.keys(G);if(Object.getOwnPropertySymbols){var re=Object.getOwnPropertySymbols(G);ie&&(re=re.filter(function(oe){return Object.getOwnPropertyDescriptor(G,oe).enumerable})),K.push.apply(K,re)}return K}function U(G){for(var ie=1;ie<arguments.length;ie++){var K=null!=arguments[ie]?arguments[ie]:{};ie%2?D(Object(K),!0).forEach(function(re){(0,h.default)(G,re,K[re])}):Object.getOwnPropertyDescriptors?Object.defineProperties(G,Object.getOwnPropertyDescriptors(K)):D(Object(K)).forEach(function(re){Object.defineProperty(G,re,Object.getOwnPropertyDescriptor(K,re))})}return G}b.default=function q(G,ie){var K,re;G.call=new a.default(G),G.callsManager=new C.default(G);var oe=new H.default(G);G.call.inquiryCallParticipants=oe;var B=new O.default(G);G.call.sharedVariables.deviceManager||(G.call.sharedVariables.deviceManager=new N.DeviceManager(G));var s=this,_={imCallOwner:!1,callRequestReceived:!1,callEstablishedInMySide:!1,callRequestTimeout:null,iRequestedCall:!1,iAcceptedCall:!1,canProcessStartCall:function(be){return G.sdkParams.consoleLogging&&console.log("[SDK] canProcessStartCall:",{callId:be},{acceptedCallId:G.call.sharedVariables.acceptedCallId},_.iAcceptedCall,_.iAcceptedCall&&G.call.sharedVariables.acceptedCallId==be),!!(_.iAcceptedCall&&G.call.sharedVariables.acceptedCallId==be||_.iRequestedCall&&G.call.sharedVariables.requestedCallId==be)}},E=null,x=new function W(ne){var be={ownerId:0,imOwner:!1,isStarted:!1,width:ne.call.sharedVariables.callVideoMinWidth,height:ne.call.sharedVariables.callVideoMinHeight};return{setOwner:function($e){be.ownerId=+$e},setIsStarted:function($e){be.isStarted=$e},isStarted:function(){return be.isStarted},iAmOwner:function(){return be.ownerId===ne.store.user.get().id},setWidth:function($e){be.width=$e},setHeight:function($e){be.height=$e},getWidth:function($e){return be.width},getHeight:function($e){return be.height},getOwner:function(){return be.ownerId},setDimension:function($e){$e&&$e.width&&+$e.width>0&&$e.height&&+$e.height>0?(x.setHeight($e.height),x.setWidth($e.width)):(x.setHeight(ne.call.sharedVariables.callVideoMinHeight),x.setWidth(ne.call.sharedVariables.callVideoMinWidth))}}}(G),$={},Y=G.sdkParams.callOptions;G.call.sharedVariables.useInternalTurnAddress=!(!Y||!Y.useInternalTurnAddress),G.call.sharedVariables.globalCallRequestTimeout=G.sdkParams.callRequestTimeout,G.call.sharedVariables.callTurnIp=Y&&Y.hasOwnProperty("callTurnIp")&&"string"==typeof Y.callTurnIp?Y.callTurnIp:"46.32.6.188",G.call.sharedVariables.callDivId=Y&&Y.hasOwnProperty("callDivId")&&"string"==typeof Y.callDivId?Y.callDivId:"call-div",G.call.sharedVariables.callAudioTagClassName=Y&&Y.hasOwnProperty("callAudioTagClassName")&&"string"==typeof Y.callAudioTagClassName?Y.callAudioTagClassName:"",G.call.sharedVariables.callVideoTagClassName=Y&&Y.hasOwnProperty("callVideoTagClassName")&&"string"==typeof Y.callVideoTagClassName?Y.callVideoTagClassName:"",G.call.sharedVariables.callVideoMinWidth=Y&&Y.hasOwnProperty("callVideo")&&"object"===(0,y.default)(Y.callVideo)&&Y.callVideo.hasOwnProperty("minWidth")?Y.callVideo.minWidth:320,G.call.sharedVariables.callVideoMinHeight=Y&&Y.hasOwnProperty("callVideo")&&"object"===(0,y.default)(Y.callVideo)&&Y.callVideo.hasOwnProperty("minHeight")?Y.callVideo.minHeight:180,G.call.sharedVariables.callNoAnswerTimeout=(null===(K=G.sdkParams.callOptions)||void 0===K?void 0:K.callNoAnswerTimeout)||0,G.call.sharedVariables.callStreamCloseTimeout=(null===(re=G.sdkParams.callOptions)||void 0===re?void 0:re.streamCloseTimeout)||1e4;var ye=function(be,Te,$e){var ft;G.errorHandler.raiseError(be,Te,$e,{eventName:"callEvents",eventType:"CALL_ERROR",environmentDetails:null===(ft=G.call.currentCall())||void 0===ft?void 0:ft.getCallDetails()})},Qe=function ne(be,Te,$e){var ft=$e.timeoutTime,Ge=void 0===ft?0:ft,Ft=$e.timeoutRetriesCount,br=void 0===Ft?0:Ft;be.token=G.sdkParams.token,be.uniqueId||(be.uniqueId=p.default.generateUUID()),be.chatId=G.callsManager.currentCallId();var st={type:3,content:{peerName:B.getCurrentServer(),priority:1,content:JSON.stringify(be),ttl:G.sdkParams.messageTtl}};"function"==typeof Te&&(G.store.messagesCallbacks[be.uniqueId]=Te),G.call.sharedVariables.asyncClient.send(st,function(Dt){}),(Ge||G.call.sharedVariables.globalCallRequestTimeout>0)&&(G.store.asyncRequestTimeouts[be.uniqueId]&&clearTimeout(G.store.asyncRequestTimeouts[be.uniqueId]),G.store.asyncRequestTimeouts[be.uniqueId]=setTimeout(function(){G.store.messagesCallbacks[be.uniqueId]&&delete G.store.messagesCallbacks[be.uniqueId],br?(G.sdkParams.consoleLogging&&console.log("[SDK][sendCallMessage] Retrying call request. uniqueId :"+be.uniqueId,{message:be}),ne(be,Te,{timeoutTime:Ge,timeoutRetriesCount:br-1})):"function"==typeof Te&&Te({done:"SKIP"})},Ge||G.call.sharedVariables.globalCallRequestTimeout))},Ot=function(be){var Te={id:be.id,joinTime:be.joinTime,leaveTime:be.leaveTime,sendTopic:be.sendTopic,receiveTopic:be.receiveTopic,brokerAddress:be.brokerAddress,active:be.active,callSession:be.callSession,callStatus:be.callStatus,createTime:be.createTime,sendKey:be.sendKey,mute:be.mute};return be.participantVO&&(Te.participantVO=be.participantVO),be.callSession&&(Te.callSession=be.callSession),JSON.parse(JSON.stringify(Te))},Ze=function(be){for(var Te=[],$e=0;$e<be.length;$e++)Te.push(Ot(be[$e]));return Te},at=function(be,Te){var $e={chatMessageVOType:g.chatMessageVOTypes.RECEIVE_CALL_REQUEST,typeCode:be.typeCode,pushMsgType:3,token:G.sdkParams.token};if(be){if("number"==typeof+be.callId&&be.callId>0)return $e.subjectId=+be.callId,G.messenger.sendMessage($e,{onResult:function(Ge){Te&&Te(Ge)}});G.errorHandler.raiseError(f.errorList.INVALID_CALLID,Te,!0,{})}else G.chatEvents.fireEvent("error",{code:999,message:"[SDK] No params have been sent to ReceiveCall()"})},Be=function(be){Qe({id:"SENDMETADATA",message:JSON.stringify({id:be.id,userid:be.userid,content:be.content||void 0}),chatId:G.callsManager.currentCallId()},null,{})};function Lt(ne,be){var Te=[g.chatMessageVOTypes.MUTE_CALL_PARTICIPANT,g.chatMessageVOTypes.UNMUTE_CALL_PARTICIPANT,g.chatMessageVOTypes.CALL_PARTICIPANT_JOINED,g.chatMessageVOTypes.REMOVE_CALL_PARTICIPANT,g.chatMessageVOTypes.RECONNECT,g.chatMessageVOTypes.TURN_OFF_VIDEO_CALL,g.chatMessageVOTypes.TURN_ON_VIDEO_CALL,g.chatMessageVOTypes.DESTINED_RECORD_CALL,g.chatMessageVOTypes.RECORD_CALL,g.chatMessageVOTypes.RECORD_CALL_STARTED,g.chatMessageVOTypes.END_RECORD_CALL,g.chatMessageVOTypes.TERMINATE_CALL,g.chatMessageVOTypes.CALL_STICKER_SYSTEM_MESSAGE,g.chatMessageVOTypes.CALL_RECORDING_FAILED];return!(G.call.callStopQueue.callStarted&&be==G.callsManager.currentCallId()||!Te.includes(ne))}this.callMessageHandler=function(ne){var be="string"==typeof ne.content&&p.default.isValidJson(ne.content)?JSON.parse(ne.content):ne.content;be.chatId?G.callsManager.routeCallMessage(be.chatId,be):G.sdkParams.consoleLogging&&console.warn("[SDK] Skipping call message, no chatId is available. ",{jsonMessage:be})},this.asyncInitialized=function(ne){G.call.sharedVariables.asyncClient=ne,G.call.sharedVariables.asyncClient.on("asyncReady",function(){G.callsManager.currentCallId()&&G.callsManager.get(G.callsManager.currentCallId()).onChatConnectionReconnect()})},this.handleChatMessages=function(ne,be,Te,$e,ft,Ge){var Ft,br;if(G.sdkParams.consoleLogging&&console.debug("[SDK][CALL_MODULE][handleChatMessages]","type:",be,"threadId:",ft,"currentCallId:",G.callsManager.currentCallId(),"latestCallRequestId:",E,"shouldNotProcessChatMessage:",Lt(be,ft)),!Lt(be,ft))switch(be){case g.chatMessageVOTypes.CALL_REQUEST:at({callId:Te.callId},function(Dt){}),G.store.messagesCallbacks[Ge]&&G.store.messagesCallbacks[Ge](p.default.createReturnData(ne.typeCode,ne.ownerId,!1,"",0,Te,$e)),Te.threadId=ft,G.chatEvents.fireEvent("callEvents",{type:"RECEIVE_CALL",result:Te}),Te.callId>0?E=Te.callId:G.chatEvents.fireEvent("callEvents",{type:"PARTNER_RECEIVED_YOUR_CALL",result:Te});break;case g.chatMessageVOTypes.ACCEPT_CALL:G.store.messagesCallbacks[Ge]&&G.store.messagesCallbacks[Ge](p.default.createReturnData(ne.typeCode,ne.ownerId,!1,"",0,Te,$e)),G.chatEvents.fireEvent("callEvents",{type:"ACCEPT_CALL",result:Te});break;case g.chatMessageVOTypes.REJECT_CALL:G.store.messagesCallbacks[Ge]&&G.store.messagesCallbacks[Ge](p.default.createReturnData(ne.typeCode,ne.ownerId,!1,"",0,Te,$e)),Te.callId=ft,G.chatEvents.fireEvent("callEvents",{type:"REJECT_CALL",callId:ft,result:Te});break;case g.chatMessageVOTypes.RECEIVE_CALL_REQUEST:G.store.messagesCallbacks[Ge]&&G.store.messagesCallbacks[Ge](p.default.createReturnData(ne.typeCode,ne.ownerId,!1,"",0,Te,$e)),Te.callId>0?(G.chatEvents.fireEvent("callEvents",{type:"RECEIVE_CALL",callId:ft,result:Te}),E=Te.callId):_.iRequestedCall&&G.chatEvents.fireEvent("callEvents",{type:"PARTNER_RECEIVED_YOUR_CALL",callId:ft,result:Te});break;case g.chatMessageVOTypes.START_CALL:if(!_.canProcessStartCall(ft))return void G.chatEvents.fireEvent("callEvents",{type:"CALL_STARTED_ELSEWHERE",callId:ft,message:"Call already started somewhere else..., aborting..."});_.iRequestedCall=!1,_.iAcceptedCall=!1,function _e(ne,be,Te,$e,ft,Ge){if(G.store.messagesCallbacks[Ge]&&G.store.messagesCallbacks[Ge](p.default.createReturnData(ne.typeCode,ne.ownerId,!1,"",0,Te,$e)),G.call.callStopQueue.callStarted=!0,Te.callId=ft,G.chatEvents.fireEvent("callEvents",{type:"CALL_STARTED",callId:ft,result:Te}),"object"===(0,y.default)(Te)&&Te.hasOwnProperty("chatDataDto")&&Te.chatDataDto.kurentoAddress){var Ft={video:Te.clientDTO.video,mute:Te.clientDTO.mute,sendingTopic:Te.clientDTO.topicSend,receiveTopic:Te.clientDTO.topicReceive,screenShare:Te.chatDataDto.screenShare,brokerAddress:Te.chatDataDto.brokerAddressWeb,turnAddress:Te.chatDataDto.turnAddress,internalTurnAddress:Te.chatDataDto.internalTurnAddress,selfData:Te.clientDTO,clientsList:Te.otherClientDtoList,screenShareOwner:+Te.chatDataDto.screenShareUser,recordingOwner:+Te.chatDataDto.recordingUser,kurentoAddress:Te.chatDataDto.kurentoAddress.split(","),cameraPaused:G.call.joinCallParams.cameraPaused};G.callsManager.addItem(ft,Ft)}else G.chatEvents.fireEvent("callEvents",{type:"CALL_ERROR",callId:ft,message:"Chat Data DTO is not present!",environmentDetails:getSDKCallDetails()})}(ne,0,Te,$e,ft,Ge);break;case g.chatMessageVOTypes.END_CALL_REQUEST:G.store.messagesCallbacks[Ge]&&G.store.messagesCallbacks[Ge](p.default.createReturnData(ne.typeCode,ne.ownerId,!1,"",0,Te,$e)),G.chatEvents.fireEvent("callEvents",{type:"END_CALL",result:Te}),G.callsManager.removeItem(ft);break;case g.chatMessageVOTypes.END_CALL:G.store.messagesCallbacks[Ge]&&G.store.messagesCallbacks[Ge](p.default.createReturnData(ne.typeCode,ne.ownerId,!1,"",0,Te,$e)),G.chatEvents.fireEvent("callEvents",{type:"CALL_ENDED",callId:ft}),ft===G.callsManager.currentCallId()&&G.call.callStopQueue.callStarted&&G.callsManager.removeItem(ft);break;case g.chatMessageVOTypes.GET_CALLS:G.store.messagesCallbacks[Ge]&&G.store.messagesCallbacks[Ge](p.default.createReturnData(ne.typeCode,ne.ownerId,!1,"",0,Te,$e));break;case g.chatMessageVOTypes.RECONNECT:G.store.messagesCallbacks[Ge]&&G.store.messagesCallbacks[Ge](p.default.createReturnData(ne.typeCode,ne.ownerId,!1,"",0,Te,$e)),Te.uniqueId=Ge,G.chatEvents.fireEvent("callEvents",{type:"CALL_PARTICIPANT_RECONNECTING",callId:ft,result:Te});break;case g.chatMessageVOTypes.CONNECT:if(!G.callsManager.currentCallId)return;G.store.messagesCallbacks[Ge]&&G.store.messagesCallbacks[Ge](p.default.createReturnData(ne.typeCode,ne.ownerId,!1,"",0,Te,$e)),G.chatEvents.fireEvent("callEvents",{type:"CALL_PARTICIPANT_CONNECTED",callId:ft,result:Te}),$&&$[G.store.user.get().id]&&$[G.store.user().id].video&&G.call.currentCall().users().get(G.store.user.get().id).videoTopicManager().restartMediaOnKeyFrame(G.store.user.get().id,[2e3,4e3,8e3,12e3]);break;case g.chatMessageVOTypes.CONTACT_SYNCED:G.chatEvents.fireEvent("contactEvents",{type:"CONTACTS_SYNCED",result:Te});break;case g.chatMessageVOTypes.GROUP_CALL_REQUEST:at({callId:Te.callId},function(Dt){}),G.store.messagesCallbacks[Ge]&&G.store.messagesCallbacks[Ge](p.default.createReturnData(ne.typeCode,ne.ownerId,!1,"",0,Te,$e)),Te.callId>0&&(E=Te.callId),G.chatEvents.fireEvent("callEvents",{type:"RECEIVE_CALL",callId:ft,result:Te});break;case g.chatMessageVOTypes.LEAVE_CALL:if(G.callsManager.currentCallId()!=ft)return;null===(Ft=G.callsManager.get(ft))||void 0===Ft||Ft.handleParticipantLeft(Te,ft);break;case g.chatMessageVOTypes.ADD_CALL_PARTICIPANT:G.store.messagesCallbacks[Ge]&&G.store.messagesCallbacks[Ge](p.default.createReturnData(ne.typeCode,ne.ownerId,!1,"",0,Te,$e));break;case g.chatMessageVOTypes.CALL_PARTICIPANT_JOINED:if(G.callsManager.currentCallId()!=ft)return;null===(br=G.callsManager.get(ft))||void 0===br||br.handleParticipantJoin(Te,ft);break;case g.chatMessageVOTypes.REMOVE_CALL_PARTICIPANT:G.store.messagesCallbacks[Ge]&&G.store.messagesCallbacks[Ge](p.default.createReturnData(ne.typeCode,ne.ownerId,!1,"",0,Te,$e)),G.chatEvents.fireEvent("callEvents",{type:"CALL_PARTICIPANT_REMOVED",callId:ft,result:Te});break;case g.chatMessageVOTypes.TERMINATE_CALL:G.store.messagesCallbacks[Ge]&&G.store.messagesCallbacks[Ge](p.default.createReturnData(ne.typeCode,ne.ownerId,!1,"",0,Te,$e)),G.chatEvents.fireEvent("callEvents",{type:"TERMINATE_CALL",callId:ft,result:Te}),ft===G.callsManager.currentCallId()&&G.callsManager.removeItem(ft);break;case g.chatMessageVOTypes.MUTE_CALL_PARTICIPANT:if(G.store.messagesCallbacks[Ge]&&G.store.messagesCallbacks[Ge](p.default.createReturnData(ne.typeCode,ne.ownerId,!1,"",0,Te,$e)),!G.call.currentCall())return;G.call.currentCall().handleParticipantMute(Te,ft);break;case g.chatMessageVOTypes.UNMUTE_CALL_PARTICIPANT:G.store.messagesCallbacks[Ge]&&G.store.messagesCallbacks[Ge](p.default.createReturnData(ne.typeCode,ne.ownerId,!1,"",0,Te,$e)),G.call.currentCall().handleParticipantUnMute(Te,ft);break;case g.chatMessageVOTypes.CANCEL_GROUP_CALL:G.store.messagesCallbacks[Ge]&&G.store.messagesCallbacks[Ge](p.default.createReturnData(ne.typeCode,ne.ownerId,!1,"",0,Te,$e)),Te.callId=ft,G.chatEvents.fireEvent("callEvents",{type:"REJECT_GROUP_CALL",callId:ft,result:Te});break;case g.chatMessageVOTypes.ACTIVE_CALL_PARTICIPANTS:G.store.messagesCallbacks[Ge]&&G.store.messagesCallbacks[Ge](p.default.createReturnData(ne.typeCode,ne.ownerId,!1,"",0,Te,$e));break;case g.chatMessageVOTypes.CALL_SESSION_CREATED:_.iRequestedCall&&(G.chatEvents.fireEvent("callEvents",{type:"CALL_SESSION_CREATED",callId:ft,result:Te}),G.call.sharedVariables.requestedCallId=Te.callId);break;case g.chatMessageVOTypes.TURN_ON_VIDEO_CALL:if(G.store.messagesCallbacks[Ge]&&G.store.messagesCallbacks[Ge](p.default.createReturnData(ne.typeCode,ne.ownerId,!1,"",0,Te,$e)),!G.call.currentCall())return;G.call.currentCall().handleParticipantVideoOn(Te);break;case g.chatMessageVOTypes.TURN_OFF_VIDEO_CALL:if(G.store.messagesCallbacks[Ge]&&G.store.messagesCallbacks[Ge](p.default.createReturnData(ne.typeCode,ne.ownerId,!1,"",0,Te,$e)),!G.call.currentCall())return;G.call.currentCall().handleParticipantVideoOff(Te);break;case g.chatMessageVOTypes.RECORD_CALL:if(G.store.messagesCallbacks[Ge]&&G.store.messagesCallbacks[Ge](p.default.createReturnData(ne.typeCode,ne.ownerId,!1,"",0,Te,$e)),!G.call.currentCall())return;G.chatEvents.fireEvent("callEvents",{type:"START_RECORDING_CALL",callId:ft,result:Te});var rt=G.call.currentCallMyUser();G.call.currentCall()&&!G.call.currentCall().callServerController().isJanus()&&(rt&&rt.user().video&&rt.videoTopicManager().restartMediaOnKeyFrame(G.store.user.get().id,[4e3,8e3,12e3]),G.call.currentCall().users().get("screenShare")&&G.call.currentCall().users().get("screenShare").videoTopicManager()&&G.call.currentCall().users().get("screenShare").videoTopicManager().restartMediaOnKeyFrame("screenShare",[4e3,8e3]));break;case g.chatMessageVOTypes.END_RECORD_CALL:G.store.messagesCallbacks[Ge]&&G.store.messagesCallbacks[Ge](p.default.createReturnData(ne.typeCode,ne.ownerId,!1,"",0,Te,$e)),G.chatEvents.fireEvent("callEvents",{type:"STOP_RECORDING_CALL",callId:ft,result:Te});break;case g.chatMessageVOTypes.START_SCREEN_SHARE:if(!G.call.currentCall())return;G.call.currentCall().handleStartScreenShare(ne.typeCode,ne.ownerId,Te);break;case g.chatMessageVOTypes.END_SCREEN_SHARE:G.callsManager.currentCallId()&&G.callsManager.get(ft).handleEndScreenShare(Te);break;case g.chatMessageVOTypes.DELETE_FROM_CALL_HISTORY:G.store.messagesCallbacks[Ge]&&G.store.messagesCallbacks[Ge](p.default.createReturnData(ne.typeCode,ne.ownerId,!1,"",0,Te)),G.chatEvents.fireEvent("callEvents",{type:"DELETE_FROM_CALL_LIST",callId:ft,result:Te});break;case g.chatMessageVOTypes.DESTINED_RECORD_CALL:if(G.store.messagesCallbacks[Ge]&&G.store.messagesCallbacks[Ge](p.default.createReturnData(ne.typeCode,ne.ownerId,!1,"",0,Te,$e)),!G.call.currentCall())return;G.chatEvents.fireEvent("callEvents",{type:"START_RECORDING_CALL",callId:ft,result:Te}),G.call.currentCall()&&!G.call.currentCall().callServerController().isJanus()&&G.call.currentCallMyUser().videoTopicManager()&&(G.call.currentCallMyUser().videoTopicManager().restartMediaOnKeyFrame(G.store.user.get().id,[4e3,8e3,12e3,25e3]),G.call.currentCallMyUser().videoTopicManager().restartMediaOnKeyFrame("screenShare",[4e3,8e3,12e3,25e3]));break;case g.chatMessageVOTypes.GET_CALLS_TO_JOIN:G.store.messagesCallbacks[Ge]&&G.store.messagesCallbacks[Ge](p.default.createReturnData(ne.typeCode,ne.ownerId,!1,"",0,Te,$e)),G.chatEvents.fireEvent("callEvents",{type:"GET_CALLS_TO_JOIN",callId:ft,uniqueId:Ge,result:Te});break;case g.chatMessageVOTypes.SWITCH_TO_GROUP_CALL_REQUEST:G.chatEvents.fireEvent("callEvents",{type:"SWITCH_TO_GROUP_CALL",callId:ft,result:Te});break;case g.chatMessageVOTypes.RECORD_CALL_STARTED:if(G.store.messagesCallbacks[Ge]&&G.store.messagesCallbacks[Ge](p.default.createReturnData(ne.typeCode,ne.ownerId,!1,"",0,Te,$e)),G.chatEvents.fireEvent("callEvents",{type:"CALL_RECORDING_STARTED",callId:ft,result:Te}),G.call.currentCall()&&!G.call.currentCall().callServerController().isJanus()){var st=G.call.currentCallMyUser();st&&st.user().video&&st.videoTopicManager()&&st.videoTopicManager().restartMediaOnKeyFrame(G.store.user.get().id,[2e3,4e3]),G.call.currentCall().users().get("screenShare")&&G.call.currentCall().users().get("screenShare").videoTopicManager()&&G.call.currentCall().users().get("screenShare").videoTopicManager().restartMediaOnKeyFrame("screenShare",[4e3,8e3])}break;case g.chatMessageVOTypes.CALL_STICKER_SYSTEM_MESSAGE:G.store.messagesCallbacks[Ge]&&G.store.messagesCallbacks[Ge](p.default.createReturnData(ne.typeCode,ne.ownerId,!1,"",0,Te,$e)),G.chatEvents.fireEvent("callEvents",{type:"CALL_STICKER",callId:ft,result:Te});break;case g.chatMessageVOTypes.RECALL_THREAD_PARTICIPANT:case g.chatMessageVOTypes.INQUIRY_CALL:G.store.messagesCallbacks[Ge]&&G.store.messagesCallbacks[Ge](p.default.createReturnData(ne.typeCode,ne.ownerId,!1,"",0,Te,$e,Ge));break;case g.chatMessageVOTypes.CALL_RECORDING_FAILED:G.store.messagesCallbacks[Ge]&&G.store.messagesCallbacks[Ge](p.default.createReturnData(ne.typeCode,ne.ownerId,!1,"",0,Te,$e,Ge)),G.chatEvents.fireEvent("callEvents",{type:"CALL_RECORDING_FAILED",callId:ft,result:Te})}},this.getDevicesList=function(){var ne=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;G.call.sharedVariables.deviceManager.getMediaDevices(ne)},this.changeMediaDevice=function(ne){var be=G.call.currentCall();if(be)try{be.deviceManager().changeMediaDevice(ne,function(){["videoIn","audioIn","audioOut"].includes(ne.deviceType)&&G.preferredMediaDevices.save(ne.deviceType,ne.deviceId),G.call.currentCall().sendCallDivs(),G.chatEvents.fireEvent("callEvents",{type:"MEDIA_DEVICE_CHANGED",result:ne})})}catch(Te){ye({code:f.errorList.CHANGE_MEDIA_DEVICE_FAILED.code,message:Te.message},null,!0)}else ye(f.errorList.INVALID_CALLID,null,!0)},this.setActiveDeviceInCall=function(ne,be){["videoIn","audioIn","audioOut"].includes(ne)&&G.preferredMediaDevices.save(ne,be)},this.startCall=function(){var ne=(0,d.default)(l.default.mark(function be(Te,$e){var ft,Ge,Ft,br,rt;return l.default.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:if(ft={chatMessageVOType:g.chatMessageVOTypes.CALL_REQUEST,typeCode:Te.typeCode,pushMsgType:3,token:G.sdkParams.token},Ge={creatorClientDto:{}},Ft=Te.audioPermissionObject?Te.audioPermissionObject:!Te.mute,!Te){Dt.next=22;break}if(Ge.type="string"==typeof Te.type&&G.call.callTypes.hasOwnProperty(Te.type.toUpperCase())?G.call.callTypes[Te.type.toUpperCase()]:0,Ge.creatorClientDto.mute=!(!Te.mute||"boolean"!=typeof Te.mute)&&Te.mute,Ge.mute=!(!Te.mute||"boolean"!=typeof Te.mute)&&Te.mute,Ge.creatorClientDto.clientType=Te.clientType&&"string"==typeof Te.clientType&&G.call.callClientType[Te.clientType.toUpperCase()]>0?G.call.callClientType[Te.clientType.toUpperCase()]:G.call.callClientType.WEB,!("number"==typeof+Te.threadId&&+Te.threadId>0)){Dt.next=11;break}Ge.threadId=+Te.threadId,Dt.next=18;break;case 11:if(!Array.isArray(Te.invitees)||!Te.invitees.length){Dt.next=16;break}for(Ge.invitees=[],br=0;br<Te.invitees.length;br++)(rt=Te.invitees[br])&&"string"==typeof rt.idType&&(rt.idType=g.inviteeVOidTypes[rt.idType],Ge.invitees.push(rt));Dt.next=18;break;case 16:return G.chatEvents.fireEvent("error",{code:999,message:"[SDK] Invitees list is empty! Send an array of invitees to start a call with, Or send a Thread Id to start a call with current participants"}),Dt.abrupt("return");case 18:Te.threadInfo&&(Te.threadInfo.metadata||Te.threadInfo.uniqueName)&&(Ge.createCallThreadRequest=Te.threadInfo),ft.content=JSON.stringify(Ge),Dt.next=24;break;case 22:return G.chatEvents.fireEvent("error",{code:999,message:"[SDK] No params have been sent to start call!"}),Dt.abrupt("return");case 24:G.call.joinCallParams.cameraPaused="boolean"==typeof Te.cameraPaused&&Te.cameraPaused,_.iRequestedCall=!0,G.call.sharedVariables.deviceManager.grantUserMediaDevicesPermissions({video:"video"==Te.type,audio:Ft,closeStream:!0},function(ot){ot.hasError?$e&&$e({hasError:!0,errorCode:ot.errorCode,errorMessage:ot.errorMessage}):(G.call.sharedVariables.callNoAnswerTimeout&&(_.callRequestTimeout=setTimeout(function(nt){G.call.callStopQueue.callStarted||(G.chatEvents.fireEvent("callEvents",{type:"CALL_NO_ANSWER_TIMEOUT",message:"[CALL_SESSION_CREATED] Call request timed out, No answer"}),nt.callInstance.rejectCall({callId:nt.currentCallId}))},G.call.sharedVariables.callNoAnswerTimeout,{callInstance:s,currentCallId:G.callsManager.currentCallId()})),G.callsManager.destroyAllCalls(),G.messenger.sendMessage(ft,{onResult:function(Yt){$e&&$e(Yt)}}))});case 27:case"end":return Dt.stop()}},be)}));return function(be,Te){return ne.apply(this,arguments)}}(),this.startGroupCall=function(){var ne=(0,d.default)(l.default.mark(function be(Te,$e){var ft,Ge,Ft,br;return l.default.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:if(ft={chatMessageVOType:g.chatMessageVOTypes.GROUP_CALL_REQUEST,typeCode:Te.typeCode,pushMsgType:3,token:G.sdkParams.token},Ge={creatorClientDto:{}},!Te){st.next=20;break}if(Ge.type="string"==typeof Te.type&&G.call.callTypes.hasOwnProperty(Te.type.toUpperCase())?G.call.callTypes[Te.type.toUpperCase()]:0,Ge.creatorClientDto.mute="boolean"==typeof Te.mute&&Te.mute,Ge.creatorClientDto.clientType=Te.clientType&&"string"==typeof Te.clientType&&G.call.callClientType[Te.clientType.toUpperCase()]>0?G.call.callClientType[Te.clientType.toUpperCase()]:G.call.callClientType.WEB,!("number"==typeof+Te.threadId&&Te.threadId>0)){st.next=9;break}Ge.threadId=+Te.threadId,st.next=16;break;case 9:if(!Array.isArray(Te.invitees)){st.next=14;break}for(Ge.invitees=[],Ft=0;Ft<Te.invitees.length;Ft++)(br=Te.invitees[Ft])&&"string"==typeof br.idType&&(br.idType=g.inviteeVOidTypes[br.idType],Ge.invitees.push(br));st.next=16;break;case 14:return G.chatEvents.fireEvent("error",{code:999,message:"[SDK] Invitees list is empty! Send an array of invitees to start a call with, Or send a Thread Id to start a call with current participants"}),st.abrupt("return");case 16:Te.threadInfo&&(Te.threadInfo.title||Te.threadInfo.description||Te.threadInfo.metadata||Te.threadInfo.uniqueName)&&(Ge.createCallThreadRequest=Te.threadInfo),ft.content=JSON.stringify(Ge),st.next=22;break;case 20:return G.chatEvents.fireEvent("error",{code:999,message:"[SDK] No params have been sent to start call!"}),st.abrupt("return");case 22:G.call.joinCallParams.cameraPaused="boolean"==typeof Te.cameraPaused&&Te.cameraPaused,_.iRequestedCall=!0,G.call.sharedVariables.deviceManager.grantUserMediaDevicesPermissions({video:"video"==Te.type,audio:!Te.mute,closeStream:!0},function(Dt){Dt.hasError?$e&&$e({hasError:!0,errorCode:Dt.errorCode,errorMessage:Dt.errorMessage}):(G.call.sharedVariables.callNoAnswerTimeout&&(_.callRequestTimeout=setTimeout(function(ot){G.call.callStopQueue.callStarted||(G.chatEvents.fireEvent("callEvents",{type:"CALL_NO_ANSWER_TIMEOUT",message:"[CALL_SESSION_CREATED] Call request timed out, No answer"}),ot.callInstance.rejectCall({callId:ot.currentCallId}))},G.call.sharedVariables.callNoAnswerTimeout,{callInstance:s,currentCallId:G.callsManager.currentCallId()})),G.messenger.sendMessage(ft,{onResult:function(nt){$e&&$e(nt)}}))});case 25:case"end":return st.stop()}},be)}));return function(be,Te){return ne.apply(this,arguments)}}(),this.sendCallMetaData=function(ne){Be({id:g.callMetaDataTypes.CUSTOMUSERMETADATA,userid:G.store.user.get().id,content:ne.content})},this.callReceived=at,this.terminateCall=function(ne,be){var Te={chatMessageVOType:g.chatMessageVOTypes.TERMINATE_CALL,typeCode:ne.typeCode,pushMsgType:3,token:G.sdkParams.token};if(ne){if("number"==typeof+ne.callId&&ne.callId>0)return Te.subjectId=+ne.callId,Te.content=JSON.stringify({}),G.messenger.sendMessage(Te,{onResult:function(Ge){be&&be(Ge)}});G.errorHandler.raiseError(f.errorList.INVALID_CALLID,be,!0,{})}else G.chatEvents.fireEvent("error",{code:999,message:"[SDK] No params have been sent to terminate the call!"})},this.acceptCall=function(){var ne=(0,d.default)(l.default.mark(function be(Te,$e){var ft,Ge,Ft;return l.default.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:if(ft={chatMessageVOType:g.chatMessageVOTypes.ACCEPT_CALL,typeCode:Te.typeCode,pushMsgType:3,token:G.sdkParams.token},Ge={},Ft=Te.audioPermissionObject?Te.audioPermissionObject:!Te.mute,!Te){rt.next=17;break}if(!("number"==typeof+Te.callId&&Te.callId>0)){rt.next=7;break}ft.subjectId=+Te.callId,rt.next=9;break;case 7:return G.errorHandler.raiseError(f.errorList.INVALID_CALLID,$e,!0,{}),rt.abrupt("return");case 9:Ge.mute="boolean"==typeof Te.mute&&Te.mute,Ge.video="boolean"==typeof Te.video&&Te.video,Ge.videoCall=Ge.video,G.call.joinCallParams.cameraPaused="boolean"==typeof Te.cameraPaused?Te.cameraPaused:_.cameraPaused,Ge.clientType=Te.clientType&&"string"==typeof Te.clientType&&G.call.callClientType[Te.clientType.toUpperCase()]>0?G.call.callClientType[Te.clientType.toUpperCase()]:G.call.callClientType.WEB,ft.content=JSON.stringify(Ge),rt.next=19;break;case 17:return G.chatEvents.fireEvent("error",{code:999,message:"[SDK] No params have been sent to accept the call!"}),rt.abrupt("return");case 19:G.call.sharedVariables.acceptedCallId=parseInt(Te.callId),_.iAcceptedCall=!0,G.call.sharedVariables.deviceManager.grantUserMediaDevicesPermissions({video:Te.video,audio:Ft,closeStream:!0},function(st){st.hasError?$e&&$e({hasError:!0,errorCode:st.errorCode,errorMessage:st.errorMessage}):G.messenger.sendMessage(ft,{onResult:function(ot){$e&&$e(ot)}})});case 22:case"end":return rt.stop()}},be)}));return function(be,Te){return ne.apply(this,arguments)}}(),this.rejectCall=this.cancelCall=function(ne,be){var Te={chatMessageVOType:g.chatMessageVOTypes.REJECT_CALL,typeCode:ne.typeCode,pushMsgType:3,token:G.sdkParams.token};if(ne){if("number"==typeof+ne.callId&&ne.callId>0)return Te.subjectId=+ne.callId,G.messenger.sendMessage(Te,{onResult:function(ft){be&&be(ft)}});G.errorHandler.raiseError(f.errorList.INVALID_CALLID,be,!0,{})}else G.chatEvents.fireEvent("error",{code:999,message:"[SDK] No params have been sent to reject the call!"})},this.endCall=G.call.endCall,this.startRecordingCall=function(ne,be){var Te={chatMessageVOType:g.chatMessageVOTypes.RECORD_CALL,typeCode:ne.typeCode,pushMsgType:3,token:G.sdkParams.token,content:{}};if(ne){if("number"==typeof+ne.callId&&ne.callId>0)return Te.subjectId=+ne.callId,!0===ne.destinated&&(Te.chatMessageVOType=g.chatMessageVOTypes.DESTINED_RECORD_CALL,Te.content.recordType="number"==typeof+ne.recordType?ne.recordType:1,Te.content.tags=Array.isArray(ne.tags)?ne.tags:null,Te.content.threadId="number"==typeof+ne.threadId?ne.threadId:null),G.messenger.sendMessage(Te,{onResult:function(ft){G.call.currentCall()&&!G.call.currentCall().callServerController().isJanus()&&G.call.currentCall().users().get(G.store.user.get().id)&&G.call.currentCall().users().get(G.store.user.get().id).videoTopicManager()&&G.call.currentCall().users().get(G.store.user.get().id).videoTopicManager().restartMediaOnKeyFrame(G.store.user.get().id,[100]),be&&be(ft)}});G.errorHandler.raiseError(f.errorList.INVALID_CALLID,be,!0,{})}else G.chatEvents.fireEvent("error",{code:999,message:"[SDK] No params have been sent to Record call!"})},this.stopRecordingCall=function(ne,be){var Te={chatMessageVOType:g.chatMessageVOTypes.END_RECORD_CALL,typeCode:ne.typeCode,pushMsgType:3,token:G.sdkParams.token};if(ne){if("number"==typeof+ne.callId&&ne.callId>0)return Te.subjectId=+ne.callId,G.messenger.sendMessage(Te,{onResult:function(ft){be&&be(ft)}});G.errorHandler.raiseError(f.errorList.INVALID_CALLID,be,!0,{})}else G.chatEvents.fireEvent("error",{code:999,message:"[SDK] No params have been sent to Stop Recording the call!"})},this.startScreenShare=function(ne,be){var Te={chatMessageVOType:g.chatMessageVOTypes.START_SCREEN_SHARE,typeCode:ne.typeCode,pushMsgType:3,subjectId:G.callsManager.currentCallId(),token:G.sdkParams.token};Te.subjectId?x.isStarted()?ye(f.errorList.SCREENSHARE_ALREADY_STARTED,be,!0):(ne.quality&&(G.call.sharedVariables.startScreenSharetParams.quality=ne.quality),G.call.currentCall().deviceManager().grantScreenSharePermission({video:ne.video,audio:!ne.mute,closeStream:!1},function($e){if(!$e.hasError)return G.messenger.sendMessage(Te,function(ft){be&&be(ft)});be&&be({hasError:!0,errorCode:$e.errorCode,errorMessage:$e.errorMessage})})):ye(f.errorList.INVALID_CALLID,be,!0)},this.endScreenShare=G.call.endScreenShare,this.resizeScreenShare=function(ne,be){var Te=G.call.currentCall(),$e={};if(!Te)return $e.hasError=!1,void(be&&be($e));if(Te.screenShareInfo.isStarted()&&Te.screenShareInfo.iAmOwner()){var ft=G.call.calculateScreenSize({quality:ne.quality});x.setWidth(ft.width),x.setHeight(ft.height),Te.callServerController().isJanus()&&Te.users().get("screenShare").videoTopicManager().restartMediaOnKeyFrame("screenShare",[10,1e3,2e3]),Te.sendCallMetaData({id:g.callMetaDataTypes.SCREENSHAREMETADATA,userid:G.store.user.get().id,content:{dimension:{width:Te.screenShareInfo.getWidth(),height:Te.screenShareInfo.getHeight()}}}),$e.hasError=!1}else $e.hasError=!0,$e.errorMessage="You can not apply size to others ScreenShare or ScreenShare is not started";be&&be($e)},this.getCallsList=function(ne,be){var Te={chatMessageVOType:g.chatMessageVOTypes.GET_CALLS,typeCode:ne.typeCode,pushMsgType:3,token:G.sdkParams.token},$e={};if(ne)return $e.count="number"==typeof ne.count&&ne.count>=0?+ne.count:25,$e.offset="number"==typeof ne.offset&&ne.offset>=0?+ne.offset:0,"number"==typeof ne.creatorCoreUserId&&ne.creatorCoreUserId>0&&($e.creatorCoreUserId=+ne.creatorCoreUserId),"number"==typeof ne.creatorSsoId&&ne.creatorSsoId>0&&($e.creatorSsoId=+ne.creatorSsoId),"string"==typeof ne.name&&($e.name=ne.name),"string"==typeof ne.type&&G.call.callTypes.hasOwnProperty(ne.type.toUpperCase())&&($e.type=G.call.callTypes[ne.type.toUpperCase()]),Array.isArray(ne.callIds)&&($e.callIds=ne.callIds),"number"==typeof ne.threadId&&+ne.threadId>0&&($e.threadId=+ne.threadId),"string"==typeof ne.contactType&&($e.contactType=ne.contactType),"string"==typeof ne.uniqueId&&($e.uniqueId=ne.uniqueId),Te.content=JSON.stringify($e),G.messenger.sendMessage(Te,{onResult:function(Ge){be&&be(Ge)}});G.chatEvents.fireEvent("error",{code:999,message:"[SDK] No params have been sent to End the call!"})},this.getCallsToJoin=function(ne,be){var Te={chatMessageVOType:g.chatMessageVOTypes.GET_CALLS_TO_JOIN,pushMsgType:3,typeCode:ne.typeCode,token:G.sdkParams.token},$e={};if(ne)return $e.count="number"==typeof ne.count&&ne.count>=0?+ne.count:25,$e.offset="number"==typeof ne.offset&&ne.offset>=0?+ne.offset:0,"number"==typeof ne.creatorSsoId&&ne.creatorSsoId>0&&($e.creatorSsoId=+ne.creatorSsoId),"string"==typeof ne.name&&($e.name=ne.name),"string"==typeof ne.type&&G.call.callTypes.hasOwnProperty(ne.type.toUpperCase())&&($e.type=G.call.callTypes[ne.type.toUpperCase()]),Array.isArray(ne.threadIds)&&($e.threadIds=ne.threadIds),"string"==typeof ne.uniqueId&&($e.uniqueId=ne.uniqueId),Te.content=JSON.stringify($e),G.messenger.sendMessage(Te,{onResult:function(Ge){be&&be(Ge)}});G.chatEvents.fireEvent("error",{code:999,message:"[SDK] Invalid params"})},this.deleteFromCallList=function(ne,be){var Te={chatMessageVOType:g.chatMessageVOTypes.DELETE_FROM_CALL_HISTORY,typeCode:ne.typeCode,content:[]};if(ne){if("string"==typeof ne.contactType&&ne.contactType.length)return Te.content.contactType=ne.contactType,Array.isArray(ne.callIds)&&(Te.content=ne.callIds),G.messenger.sendMessage(Te,{onResult:function(ft){var Ge={hasError:ft.hasError,cache:!1,errorMessage:ft.errorMessage,errorCode:ft.errorCode};Ge.hasError||(Ge.result=ft.result),be&&be(Ge)}});G.chatEvents.fireEvent("error",{code:999,message:"[SDK] You should enter a contactType!"})}else G.chatEvents.fireEvent("error",{code:999,message:"[SDK] No params have been sent to Delete a call from Call History!"})},this.getCallParticipants=function(ne,be){var Te={chatMessageVOType:g.chatMessageVOTypes.ACTIVE_CALL_PARTICIPANTS,typeCode:ne.typeCode,content:{}};if(ne){if(isNaN(ne.callId))return void G.chatEvents.fireEvent("error",{code:999,message:"[SDK] Call Id should be a valid number!"});var $e=+ne.callId;Te.subjectId=$e;var ft=parseInt(ne.offset)>0?parseInt(ne.offset):0,Ge=parseInt(ne.count)>0?parseInt(ne.count):25;return Te.content.count=Ge,Te.content.offset=ft,G.messenger.sendMessage(Te,{onResult:function(br){var rt={hasError:br.hasError,cache:!1,errorMessage:br.errorMessage,errorCode:br.errorCode};if(!rt.hasError){var st=br.result,Dt=st.length,ot={participants:Ze(st),contentCount:br.contentCount,hasNext:Te.content.offset+Te.content.count<br.contentCount&&Dt>0,nextOffset:1*Te.content.offset+1*Dt};rt.result=ot}be&&be(rt),be=void 0,rt.hasError||G.chatEvents.fireEvent("callEvents",{type:"CALL_PARTICIPANTS_LIST_CHANGE",threadId:$e,result:rt.result})}})}G.chatEvents.fireEvent("error",{code:999,message:"[SDK] No params have been sent to Get Call Participants!"})},this.inquiryCallParticipants=function(ne,be){return(0,r.default)(ne),G.call.inquiryCallParticipants.inquiryCallParticipants({},be)},this.addCallParticipants=function(ne,be){var Te={chatMessageVOType:g.chatMessageVOTypes.ADD_CALL_PARTICIPANT,typeCode:ne.typeCode,content:[]};if(ne){if("number"==typeof ne.callId&&ne.callId>0&&(Te.subjectId=ne.callId),Array.isArray(ne.contactIds)&&(Te.content=ne.contactIds),Array.isArray(ne.usernames)){Te.content=[];for(var $e=0;$e<ne.usernames.length;$e++)Te.content.push({id:ne.usernames[$e],idType:g.inviteeVOidTypes.TO_BE_USER_USERNAME})}if(Array.isArray(ne.coreUserids)){Te.content=[];for(var ft=0;ft<ne.coreUserids.length;ft++)Te.content.push({id:ne.coreUserids[ft],idType:g.inviteeVOidTypes.TO_BE_CORE_USER_ID})}}return G.messenger.sendMessage(Te,{onResult:function(Ft){var br={hasError:Ft.hasError,cache:!1,errorMessage:Ft.errorMessage,errorCode:Ft.errorCode};br.hasError||(br.result=Ft.result),be&&be(br)}})},this.removeCallParticipants=function(ne,be){var Te={chatMessageVOType:g.chatMessageVOTypes.REMOVE_CALL_PARTICIPANT,typeCode:ne.typeCode,content:[]};return ne&&("number"==typeof ne.callId&&ne.callId>0&&(Te.subjectId=ne.callId),Array.isArray(ne.userIds)&&(Te.content=ne.userIds)),G.messenger.sendMessage(Te,{onResult:function(ft){var Ge={hasError:ft.hasError,cache:!1,errorMessage:ft.errorMessage,errorCode:ft.errorCode};Ge.hasError||(Ge.result=ft.result),be&&be(Ge)}})},this.muteCallParticipants=function(ne,be){if(!G.requestBlocker.isKeyBlocked(G.requestBlocker.limitedTypes.START_STOP_VIDEO_VOICE)){var Te={chatMessageVOType:g.chatMessageVOTypes.MUTE_CALL_PARTICIPANT,typeCode:ne.typeCode,content:[],uniqueId:p.default.generateUUID()};return ne&&("number"==typeof ne.callId&&ne.callId>0&&(Te.subjectId=ne.callId),Array.isArray(ne.userIds)&&(Te.content=ne.userIds)),G.requestBlocker.add({key:G.requestBlocker.limitedTypes.START_STOP_VIDEO_VOICE,uniqueId:Te.uniqueId,blockTimeSeconds:2}),G.messenger.sendMessage(Te,{onResult:function(ft){var Ge={hasError:ft.hasError,cache:!1,errorMessage:ft.errorMessage,errorCode:ft.errorCode};Ge.hasError||(Ge.result=ft.result),be&&be(Ge)}})}G.errorHandler.raiseError(G.errorHandler.getFilledErrorObject(U(U({},f.errorList.REQUEST_BLOCKED),{},{replacements:["muteCallParticipants",G.requestBlocker.getRemainingTime(G.requestBlocker.limitedTypes.START_STOP_VIDEO_VOICE)]})),be,!0,{})},this.unMuteCallParticipants=function(ne,be){if(!G.requestBlocker.isKeyBlocked(G.requestBlocker.limitedTypes.START_STOP_VIDEO_VOICE)){var Te={chatMessageVOType:g.chatMessageVOTypes.UNMUTE_CALL_PARTICIPANT,typeCode:ne.typeCode,content:[],uniqueId:p.default.generateUUID()};return ne&&("number"==typeof ne.callId&&ne.callId>0&&(Te.subjectId=ne.callId),Array.isArray(ne.userIds)&&(Te.content=ne.userIds)),G.requestBlocker.add({key:G.requestBlocker.limitedTypes.START_STOP_VIDEO_VOICE,uniqueId:Te.uniqueId,blockTimeSeconds:2}),G.messenger.sendMessage(Te,{onResult:function(ft){var Ge={hasError:ft.hasError,cache:!1,errorMessage:ft.errorMessage,errorCode:ft.errorCode};Ge.hasError||(Ge.result=ft.result),be&&be(Ge)}})}G.errorHandler.raiseError(G.errorHandler.getFilledErrorObject(U(U({},f.errorList.REQUEST_BLOCKED),{},{replacements:["unMuteCallParticipants",G.requestBlocker.getRemainingTime(G.requestBlocker.limitedTypes.START_STOP_VIDEO_VOICE)]})),be,!0,{})},this.turnOnVideoCall=function(ne,be){if(G.requestBlocker.isKeyBlocked(G.requestBlocker.limitedTypes.START_STOP_VIDEO_VOICE))G.errorHandler.raiseError(G.errorHandler.getFilledErrorObject(U(U({},f.errorList.REQUEST_BLOCKED),{},{replacements:["turnOnVideoCall",G.requestBlocker.getRemainingTime(G.requestBlocker.limitedTypes.START_STOP_VIDEO_VOICE)]})),be,!0,{});else{var Te={chatMessageVOType:g.chatMessageVOTypes.TURN_ON_VIDEO_CALL,typeCode:ne.typeCode,pushMsgType:3,token:G.sdkParams.token,uniqueId:p.default.generateUUID()};if(ne)if("number"==typeof+ne.callId&&ne.callId>0){Te.subjectId=+ne.callId;var $e=G.call.currentCall();if($e){var ft=$e.users().get(G.store.user.get().id);if(!ft||!ft.user().video)return G.requestBlocker.add({key:G.requestBlocker.limitedTypes.START_STOP_VIDEO_VOICE,uniqueId:Te.uniqueId,blockTimeSeconds:2}),G.messenger.sendMessage(Te,{onResult:function(Ft){be&&be(Ft)}});G.chatEvents.fireEvent("error",{code:999,message:"[SDK] Video stream is already open!"})}else G.errorHandler.raiseError(f.errorList.INVALID_CALLID,be,!0,{})}else G.errorHandler.raiseError(f.errorList.INVALID_CALLID,be,!0,{});else G.chatEvents.fireEvent("error",{code:999,message:"[SDK] No params have been sent to turn on the video call!"})}},this.turnOffVideoCall=function(ne,be){if(G.requestBlocker.isKeyBlocked(G.requestBlocker.limitedTypes.START_STOP_VIDEO_VOICE))G.errorHandler.raiseError(G.errorHandler.getFilledErrorObject(U(U({},f.errorList.REQUEST_BLOCKED),{},{replacements:["turnOffVideoCall",G.requestBlocker.getRemainingTime(G.requestBlocker.limitedTypes.START_STOP_VIDEO_VOICE)]})),be,!0,{});else{var Te={chatMessageVOType:g.chatMessageVOTypes.TURN_OFF_VIDEO_CALL,typeCode:ne.typeCode,pushMsgType:3,token:G.sdkParams.token,uniqueId:p.default.generateUUID()};if(ne)if("number"==typeof+ne.callId&&ne.callId>0){Te.subjectId=+ne.callId;var $e=G.call.currentCall();if($e){var ft=$e.users().get(G.store.user.get().id);if(!$e.callServerController().isJanus()&&ft&&ft.videoTopicManager()&&ft.videoTopicManager().getPeer()&&(ft.videoTopicManager().isPeerConnecting()||ft.videoTopicManager().isPeerFailed()||ft.videoTopicManager().isPeerDisconnected()))G.chatEvents.fireEvent("error",{code:999,message:"[SDK] Can not stop stream in current state"});else{if(!($e.callServerController().isJanus()&&$e.sendPeerManager()&&$e.sendPeerManager().getPeer()&&($e.sendPeerManager().isPeerConnecting()||$e.sendPeerManager().isPeerFailed()||$e.sendPeerManager().isPeerDisconnected())))return G.requestBlocker.add({key:G.requestBlocker.limitedTypes.START_STOP_VIDEO_VOICE,uniqueId:Te.uniqueId,blockTimeSeconds:2}),G.messenger.sendMessage(Te,{onResult:function(Ft){be&&be(Ft)}});G.chatEvents.fireEvent("error",{code:999,message:"[SDK] Can not stop stream in current state"})}}else G.chatEvents.fireEvent("error",{code:999,message:"[SDK] Call not exists"})}else G.errorHandler.raiseError(f.errorList.INVALID_CALLID,be,!0,{});else G.chatEvents.fireEvent("error",{code:999,message:"[SDK] No params have been sent to turn off the video call!"})}},this.disableParticipantsVideoReceive=function(ne,be){if(ne){if(Array.isArray(ne.userIds)&&ne.userIds.length){for(var Te in ne.userIds){var $e=G.call.currentCall().users().get(ne.userIds[Te]);"screenShare"!=$e.user().id&&$e.destroyVideo()}be&&be({hasError:!1})}}else G.chatEvents.fireEvent("error",{code:999,message:"[SDK] No params have been sent to closeOthersVideoReceive"})},this.enableParticipantsVideoReceive=function(ne,be){if(ne){if(Array.isArray(ne.userIds)&&ne.userIds.length){for(var Te in ne.userIds){var $e=G.call.currentCall().users().get(ne.userIds[Te]);!$e||!$e.user().video||$e.startVideo($e.user().topicSend)}be&&be({hasError:!1})}}else G.chatEvents.fireEvent("error",{code:999,message:"[SDK] No params have been sent to closeOthersVideoReceive"})},this.pauseCamera=function(ne,be){!G.call.currentCall()||(G.call.currentCall().pauseCamera(),be&&be())},this.resumeCamera=function(ne,be){!G.call.currentCall()||(G.call.currentCall().resumeCamera(),be&&be())},this.pauseMice=function(ne,be){!G.call.currentCall()||(G.call.currentCall().pauseMice(),be&&be())},this.resumeMice=function(ne,be){!G.call.currentCall()||(G.call.currentCall().resumeMice(),be&&be())},this.resizeCallVideo=function(ne,be){if(ne)if(!!ne.width&&+ne.width>0&&(G.call.sharedVariables.callVideoMinWidth=+ne.width),!!ne.height&&+ne.height>0&&(G.call.sharedVariables.callVideoMinHeight=+ne.height),$[G.store.user.get().id]){var Te=$[G.store.user.get().id];Te.videoTopicManager.getPeer().getLocalStream().getTracks()[0].applyConstraints({width:G.call.sharedVariables.callVideoMinWidth,height:G.call.sharedVariables.callVideoMinHeight}).then(function($e){Te.htmlElements[Te.videoTopicName].style.width=G.call.sharedVariables.callVideoMinWidth+"px",Te.htmlElements[Te.videoTopicName].style.height=G.call.sharedVariables.callVideoMinHeight+"px",be&&be()}).catch(function($e){G.chatEvents.fireEvent("error",{code:999,message:"[SDK] "+$e})})}else G.sdkParams.consoleLogging&&console.log("Error in resizeCallVideo(), call not started ");else G.chatEvents.fireEvent("error",{code:999,message:"[SDK] No params have been sent to resize the video call! Send an object like {width: 640, height: 480}"})},this.sendCallSticker=function(ne,be){var Te=ne.sticker,$e=void 0===Te?g.callStickerTypes.RAISE_HAND:Te,ft={chatMessageVOType:g.chatMessageVOTypes.CALL_STICKER_SYSTEM_MESSAGE,typeCode:ie.typeCode,content:[$e],subjectId:G.callsManager.currentCallId()};if(ft.subjectId){if($e&&Object.values(g.callStickerTypes).includes($e))return G.messenger.sendMessage(ft,{onResult:function(Ft){be&&be(Ft)}});ye(f.errorList.INVALID_STICKER_NAME,be,!0)}else G.errorHandler.raiseError(f.errorList.INVALID_CALLID,be,!0,{})},this.recallThreadParticipant=function(ne,be){var Te=ne.invitees,$e={chatMessageVOType:g.chatMessageVOTypes.RECALL_THREAD_PARTICIPANT,typeCode:ie.typeCode,content:null,subjectId:G.callsManager.currentCallId()};if(Te&&Array.isArray(Te)&&Te.length)return $e.content=[],Te.forEach(function(ft){ft.idType=g.inviteeVOidTypes[ft.idType],$e.content.push(ft)}),G.messenger.sendMessage($e,{onResult:function(Ge){be&&be(Ge)}});ye(f.errorList.INVITEES_LIST_REQUIRED,be,!0)},this.deviceManager=function(){return G.call.currentCall()?G.call.currentCall().deviceManager():null},this.resetCallStream=function(){var ne=(0,d.default)(l.default.mark(function be(Te,$e){var ft,Ge,Ft,br;return l.default.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:if(ft=Te.userId,Ft=void 0===(Ge=Te.streamType)?"audio":Ge,G.call.currentCall()){st.next=4;break}return $e&&$e({hasError:!0}),st.abrupt("return");case 4:if(br=G.call.currentCall().users().get(ft)){st.next=8;break}return $e&&$e({hasError:!0}),st.abrupt("return");case 8:return st.next=10,br.reconnectTopic(Ft);case 10:$e&&$e({hasError:!1});case 11:case"end":return st.stop()}},be)}));return function(be,Te){return ne.apply(this,arguments)}}(),this.resetAudioSendStream=function(ne){G.call.currentCall()?(G.call.currentCall().deviceManager().mediaStreams.stopAudioInput(),G.call.currentCall().deviceManager().grantUserMediaDevicesPermissions({audio:!0},function(be){be.hasError?ne&&ne(be):(G.call.currentCall().users().get(G.store.user.get().id).audioTopicManager().updateStream(G.call.currentCall().deviceManager().mediaStreams.getAudioInput()),ne&&ne({hasError:!1}))})):ne&&ne({hasError:!0})},this.resetVideoSendStream=function(ne){G.call.currentCall()?(G.call.currentCall().deviceManager().mediaStreams.setVideoInput(),G.call.currentCall().deviceManager().grantUserMediaDevicesPermissions({audio:!0},function(be){be.hasError?ne&&ne(be):(G.call.currentCall().users().get(G.store.user.get().id).videoTopicManager().updateStream(G.call.currentCall().deviceManager().mediaStreams.getVideoInput()),ne&&ne({hasError:!1}))})):ne&&ne({hasError:!0})},this.startPrintStatus=function(ne,be){switch(console.log(ne,be),be){case"audio":G.call.currentCall().users().get(ne).audioTopicManager().startStatusPrint();break;case"video":G.call.currentCall().users().get(ne).videoTopicManager().startStatusPrint()}},this.stopPrintStatus=function(ne,be){switch(be){case"audio":G.call.currentCall().users().get(ne).audioTopicManager().stopStatusPrint();break;case"video":G.call.currentCall().users().get(ne).videoTopicManager().stopStatusPrint()}}}},3215:(M,b,n)=>{"use strict";var e=n(95318);b.Z=void 0;var l=e(n(319)),h=e(n(50008)),r=e(n(24084)),d=e(n(38122)),y=e(n(63902)),g=e(n(8889)),p=e(n(67532)),f=e(n(67005)),C=n(9013),a=(e(n(97726)),e(n(7661))),O=n(44289),H=e(n(91548)),V=(e(n(82670)),n(17713)),D=e(n(88071)),U=e(n(24776)),q=n(31518);function J(ie){var K=new r.default,re=new D.default({app:K,whiteList:ie.typeCodesList,current:{typeCode:ie.typeCode||"default",ownerId:ie.typeCodeOwnerId||void 0}});K.typeCodes=re;var oe=new H.default(K),B=new U.default(K),s=new a.default(K);K.sdkParams.appId=ie.appId||"PodChat",K.sdkParams.token=ie.token||"111",K.sdkParams.mapApiKey=ie.mapApiKey||"8b77db18704aa646ee5aaea13e7370f4f88b9e8c",K.sdkParams.productEnv=typeof navigator<"u"?navigator.product:"undefined",K.sdkParams.forceWaitQueueInMemory=!(!ie.forceWaitQueueInMemory||"boolean"!=typeof ie.forceWaitQueueInMemory)&&ie.forceWaitQueueInMemory,K.sdkParams.grantDeviceIdFromSSO=!(!ie.grantDeviceIdFromSSO||"boolean"!=typeof ie.grantDeviceIdFromSSO)&&ie.grantDeviceIdFromSSO,K.sdkParams.seenIntervalPitch=ie.seenIntervalPitch||2e3,K.sdkParams.systemMessageIntervalPitch=ie.systemMessageIntervalPitch||1e3,K.sdkParams.socketAddress=ie.socketAddress,K.sdkParams.serverName=ie.serverName,K.sdkParams.wsConnectionWaitTime=ie.wsConnectionWaitTime,K.sdkParams.connectionRetryInterval=ie.connectionRetryInterval,K.sdkParams.msgPriority=ie.msgPriority,K.sdkParams.messageTtl=ie.messageTtl||1e4,K.sdkParams.reconnectOnClose=ie.reconnectOnClose,K.sdkParams.asyncLogging=ie.asyncLogging,K.sdkParams.connectionCheckTimeout=ie.connectionCheckTimeout,K.sdkParams.httpRequestTimeout=ie.httpRequestTimeout>=0?ie.httpRequestTimeout:0,K.sdkParams.asyncRequestTimeout="number"==typeof ie.asyncRequestTimeout&&ie.asyncRequestTimeout>=0?ie.asyncRequestTimeout:0,K.sdkParams.connectionCheckTimeoutThreshold=ie.connectionCheckTimeoutThreshold,K.sdkParams.httpUploadRequestTimeout=ie.httpUploadRequestTimeout>=0?ie.httpUploadRequestTimeout:0,K.sdkParams.actualTimingLog=!(!ie.asyncLogging.actualTiming||"boolean"!=typeof ie.asyncLogging.actualTiming)&&ie.asyncLogging.actualTiming,K.sdkParams.consoleLogging=!(!ie.asyncLogging.consoleLogging||"boolean"!=typeof ie.asyncLogging.consoleLogging)&&ie.asyncLogging.consoleLogging,K.sdkParams.fullResponseObject=ie.fullResponseObject||!1,K.sdkParams.webrtcConfig=ie.webrtcConfig?ie.webrtcConfig:null,K.sdkParams.chatPingMessageInterval=ie.chatPingMessageInterval,K.sdkParams.protocol=ie.protocol,K.sdkParams.callRequestTimeout="number"==typeof ie.callRequestTimeout&&ie.callRequestTimeout>=0?ie.callRequestTimeout:1e4,K.sdkParams.callOptions=ie.callOptions,ie.ssoHost&&(K.sdkParams.SERVICE_ADDRESSES.SSO_ADDRESS=ie.ssoHost),ie.platformHost&&(K.sdkParams.SERVICE_ADDRESSES.PLATFORM_ADDRESS=ie.platformHost),ie.fileServer&&(K.sdkParams.SERVICE_ADDRESSES.FILESERVER_ADDRESS=ie.fileServer),ie.podSpaceFileServer&&(K.sdkParams.SERVICE_ADDRESSES.PODSPACE_FILESERVER_ADDRESS=ie.podSpaceFileServer),ie.mapServer&&(K.sdkParams.SERVICE_ADDRESSES.MAP_ADDRESS=ie.mapServer);var _,w,x,Y=ie.queueHost,u=ie.queuePort,W=ie.queueUsername,fe=ie.queuePassword,ae=ie.queueReceive,ye=ie.queueSend,Qe=ie.queueConnectionTimeout,Ze=0,at={},ne=[],be=ie.protocolSwitching,Te=new function Ft(we){var De=we.protocol,ht=void 0===De?"auto":De,Vt={switchingEnabled:"auto"==ht,currentProtocol:"auto"==ht?"websocket":ht,failOverProtocol:"auto"==ht||"websocket"==ht?"webrtc":"websocket",retries:0,allowedRetries:{websocket:be&&typeof be.websocket<"u"?be.websocket:1,webrtc:be&&typeof be.webrtc<"u"?be.webrtc:1},currentWaitTime:0};function yt(){return Vt.retries<=Vt.allowedRetries[Vt.currentProtocol]}function gr(fn){var un=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];_.logout().then(function(){var Et;fn?(Et=fn.toLowerCase(),Vt.failOverProtocol="webrtc"==Et?"websocket":"webrtc",Vt.currentProtocol=Et):(Et=Vt.currentProtocol,Vt.currentProtocol=Vt.failOverProtocol,Vt.failOverProtocol=Et),K.sdkParams.consoleLogging&&console.log("[SDK]|/| switchProtocol: ","config.currentProtocol: ",Vt.currentProtocol,"config.currentWaitTime: ",Vt.currentWaitTime),K.chatEvents.fireEvent("autoSwitchAsyncProtocol",{current:Vt.currentProtocol,previous:Vt.failOverProtocol}),un&&(Vt.retries=1),st()})}var Zr={switchProtocol:function(un){"auto"==un?(Vt.switchingEnabled=!0,gr("websocket")):(Vt.switchingEnabled=!1,gr(un))},increaseRetries:function(){Vt.retries+=1},canRetry:yt,getCurrentProtocol:function(){return Vt.currentProtocol},resetRetries:function(){!function ur(){Vt.retries=0}()},resetTimerTime:function(un){Vt.currentWaitTime=typeof un<"u"?un:0},onAsyncIsReconnecting:function(un){K.sdkParams.consoleLogging&&console.log("[SDK]|/| onAsyncIsReconnecting: ","config.currentProtocol: ",Vt.currentProtocol,"config.currentWaitTime: ",Vt.currentWaitTime),Zr.increaseRetries(),Vt.currentWaitTime<64&&(Vt.currentWaitTime+=3),!yt()&&Vt.switchingEnabled&&gr()},getRetryStepTimerTime:function(){return Vt.currentWaitTime},reconnectAsync:function(){Zr.resetTimerTime(),Vt.switchingEnabled?yt()?(Zr.increaseRetries(),gr(Vt.currentProtocol,!1)):gr():_.reconnectSocket()}};return Zr}({protocol:K.sdkParams.protocol}),$e="function"==typeof ie.asyncLogCallback?ie.asyncLogCallback:null,ft="function"==typeof ie.msgLogCallback?ie.msgLogCallback:null;K.sdkParams.messageTtl<2e3&&(K.sdkParams.messageTtl=2e3,console.warn("[SDK] messageTtl can not be less than 2000, we changed it to 2000")),K.sdkParams.consoleLogging||(window.Logger={error:function(){},log:function(){},debug:function(){}}),K.messenger=new p.default(K,Object.assign(ie,{asyncClient:_}));var Ge=new g.default(K,Object.assign(ie,{asyncClient:_}));function br(we){switch(K.chatEvents.fireEvent("chatState",we),at=we,we.socketState){case 1:Te.resetRetries(),Te.resetTimerTime(),we.deviceRegister&&we.serverRegister&&K.messenger.startChatPing();break;case 0:case 2:K.messenger.chatState=!1,K.messenger.stopChatPing();break;case 3:K.store.reactionSummaries.removeAllMessages(),K.store.reactionsList.removeAllMessages(),K.messenger.chatState=!1,K.messenger.stopChatPing()}}var st=function(){var De=(new Date).getTime();"number"==typeof K.sdkParams.appId&&(K.sdkParams.appId=K.sdkParams.appId.toString()),"string"!=typeof K.sdkParams.appId||K.sdkParams.appId.length>30?K.errorHandler.raiseError(V.errorList.INVALID_APP_ID,null,!0,{}):(_=new d.default({appId:K.sdkParams.appId,protocol:Te.getCurrentProtocol(),queueHost:Y,queuePort:u,queueUsername:W,queuePassword:fe,queueReceive:ae,queueSend:ye,queueConnectionTimeout:Qe,socketAddress:K.sdkParams.socketAddress,serverName:K.sdkParams.serverName,deviceId:x,wsConnectionWaitTime:K.sdkParams.wsConnectionWaitTime,connectionRetryInterval:K.sdkParams.connectionRetryInterval,connectionCheckTimeout:K.sdkParams.connectionCheckTimeout,connectionCheckTimeoutThreshold:K.sdkParams.connectionCheckTimeoutThreshold,messageTtl:K.sdkParams.messageTtl,reconnectOnClose:K.sdkParams.reconnectOnClose,asyncLogging:K.sdkParams.asyncLogging,logLevel:K.sdkParams.consoleLogging?3:1,webrtcConfig:K.sdkParams.webrtcConfig,retryStepTimerTime:Te.getRetryStepTimerTime(),onStartWithRetryStepGreaterThanZero:br,msgLogCallback:ft||null,asyncLogCallback:$e||null,onDeviceId:function ht(Vt){x||(x=Vt),_.registerDevice(x)}}),Ge.asyncInitialized(_),K.messenger.asyncInitialized(_),_.on("asyncReady",function(){K.store.history.reset(),K.sdkParams.actualTimingLog&&y.default.chatStepLogger("Async Connection ",(new Date).getTime()-De),w=_.getPeerId(),K.store.user.get()?K.store.user.get().id>0&&(K.messenger.chatState=!0,K.chatEvents.fireEvent("chatReady"),Ne()):Dt(),K.sdkParams.seenInterval&&clearInterval(K.sdkParams.seenInterval),K.sdkParams.seenInterval=setInterval(function(){Object.keys(K.sdkParams.messagesSeen).length&&X()},K.sdkParams.seenIntervalPitch)}),_.on("stateChange",br),_.on("connect",function(Vt){De=(new Date).getTime(),w=Vt,K.chatEvents.fireEvent("connect"),K.messenger.ping()}),_.on("disconnect",function(Vt){w=void 0,K.chatEvents.fireEvent("disconnect",Vt),K.store.contacts.removeAll()}),_.on("reconnect",function(Vt){w=Vt,K.chatEvents.fireEvent("reconnect")}),_.on("reconnecting",function(Vt){K.sdkParams.consoleLogging&&console.log("[SDK][event: asyncClient.reconnecting]"),Te.onAsyncIsReconnecting(Vt)}),_.on("message",function(Vt,yt){Me(Vt),yt&&yt()}),_.on("error",function(Vt){K.chatEvents.fireEvent("error",{code:Vt.errorCode,message:Vt.errorMessage,error:Vt.errorEvent})}))},Dt=function(){var De=(new Date).getTime();nt(function(ht){K.sdkParams.actualTimingLog&&y.default.chatStepLogger("Get User Info ",(new Date).getTime()-De),ht.hasError||(K.store.user.setUser(ht.result.user),K.messenger.chatState=!0,K.chatEvents.fireEvent("chatReady"),Ne())})},nt=function we(De){if(!(++Ze>5))return K.sdkParams.getUserInfoTimeout&&clearTimeout(K.sdkParams.getUserInfoTimeout),K.sdkParams.getUserInfoTimeout=setTimeout(function(){we(De)},1e4*Ze),K.messenger.sendMessage({chatMessageVOType:O.chatMessageVOTypes.USER_INFO,typeCode:ie.typeCode},{onResult:function(Vt){var yt={typeCode:Vt.typeCode,ownerId:Vt.ownerId,hasError:Vt.hasError,cache:!1,errorMessage:Vt.errorMessage,errorCode:Vt.errorCode};if(!yt.hasError){K.sdkParams.getUserInfoTimeout&&clearTimeout(K.sdkParams.getUserInfoTimeout);var ur=(0,q.formatDataToMakeUser)(Vt.result);yt.result={user:ur},Ze=0,De&&De(yt),De=void 0}}});K.sdkParams.getUserInfoTimeout&&clearTimeout(K.sdkParams.getUserInfoTimeout),Ze=0,K.chatEvents.fireEvent("error",{code:6101,message:O.CHAT_ERRORS[6101],error:null})},Ne=function we(){if(K.store.chatSendQueue.length){var De=K.store.chatSendQueue[0];K.store.history.remove(De.threadId),K.messenger.chatState&&K.messageQueues.getChatSendQueue(0,function(ht){K.messageQueues.deleteFromChatSentQueue(De,function(){K.messenger.sendMessage(De.message,De.callbacks,function(){K.store.chatSendQueue.length&&we()})})})}},X=function(){if(Object.keys(K.sdkParams.messagesSeen).length&&K.messenger.chatState)for(var De in K.sdkParams.messagesSeen)He({messageId:K.sdkParams.messagesSeen[De].messageId,typeCode:K.sdkParams.messagesSeen[De].typeCode}),delete K.sdkParams.messagesSeen[De]},Me=function(De){if(De.senderName===K.sdkParams.serverName){var ht=JSON.parse(De.content);(!ht.typeCode||K.typeCodes.isAllowed(ht.typeCode))&&We(ht)}else Ge.callMessageHandler(De)},We=function(De){var ht=De.subjectId,Vt=De.type,yt="string"==typeof De.content&&y.default.isValidJson(De.content)?JSON.parse(De.content):De.content,gr=De.contentCount,ur=De.uniqueId,Zr=De.time;switch(K.store.asyncRequestTimeouts[ur]&&clearTimeout(K.store.asyncRequestTimeouts[ur]),Vt){case O.chatMessageVOTypes.CREATE_THREAD:yt.uniqueId=ur,K.store.messagesCallbacks[ur]?(K.threadMethods.createThread(yt,!0,!0),K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt,gr))):K.threadMethods.createThread(yt,!0,!1);break;case O.chatMessageVOTypes.MESSAGE:pt(ht,yt,De);break;case O.chatMessageVOTypes.SENT:K.store.sendMessageCallbacks[ur]&&K.store.sendMessageCallbacks[ur].onSent&&(K.store.sendMessageCallbacks[ur].onSent({uniqueId:ur,messageId:yt,typeCode:De.typeCode,ownerId:De.ownerId}),delete K.store.sendMessageCallbacks[ur].onSent,K.store.threadCallbacks[ht]&&K.store.threadCallbacks[ht][ur]&&(K.store.threadCallbacks[ht][ur].onSent=!0));break;case O.chatMessageVOTypes.DELIVERY:break;case O.chatMessageVOTypes.SEEN:K.chatEvents.fireEvent("threadEvents",{type:"THREAD_LAST_ACTIVITY_TIME",result:{thread:Ae={id:yt.conversationId,lastSeenMessageId:yt.messageId,lastSeenMessageTime:yt.messageTime,lastParticipantId:yt.participantId}}}),K.chatEvents.fireEvent("messageEvents",{type:"MESSAGE_SEEN",result:{message:yt.messageId,threadId:ht,senderId:yt.participantId}}),Re(O.chatMessageVOTypes.SEEN,ht,ur);break;case O.chatMessageVOTypes.PING:break;case O.chatMessageVOTypes.BLOCK:case O.chatMessageVOTypes.UNBLOCK:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt));break;case O.chatMessageVOTypes.LEAVE_THREAD:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt,gr)),K.sdkParams.fullResponseObject?gt({threadIds:[ht]},function(pr){if(!pr.cache){var Or=pr.result.threads;Or.length>0?(K.chatEvents.fireEvent("threadEvents",{type:"THREAD_LEAVE_PARTICIPANT",result:{thread:Or[0],participant:(0,q.formatDataToMakeParticipant)(yt,ht)}}),K.chatEvents.fireEvent("threadEvents",{type:"THREAD_LAST_ACTIVITY_TIME",result:{thread:Or[0]}})):K.chatEvents.fireEvent("threadEvents",{type:"THREAD_LEAVE_PARTICIPANT",result:{threadId:ht,participant:(0,q.formatDataToMakeParticipant)(yt,ht)}})}}):(K.chatEvents.fireEvent("threadEvents",{type:"THREAD_LEAVE_PARTICIPANT",result:{thread:ht,participant:(0,q.formatDataToMakeParticipant)(yt,ht)}}),K.chatEvents.fireEvent("threadEvents",{type:"THREAD_LAST_ACTIVITY_TIME",result:{thread:ht}}));break;case O.chatMessageVOTypes.ADD_PARTICIPANT:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt,gr)),K.sdkParams.fullResponseObject?gt({threadIds:[yt.id]},function(pr){var Or=pr.result.threads;pr.cache||(K.chatEvents.fireEvent("threadEvents",{type:"THREAD_ADD_PARTICIPANTS",result:{thread:Or[0]}}),K.chatEvents.fireEvent("threadEvents",{type:"THREAD_LAST_ACTIVITY_TIME",result:{thread:Or[0]}}))}):(K.chatEvents.fireEvent("threadEvents",{type:"THREAD_ADD_PARTICIPANTS",result:{thread:yt}}),K.chatEvents.fireEvent("threadEvents",{type:"THREAD_LAST_ACTIVITY_TIME",result:{thread:yt}}));break;case O.chatMessageVOTypes.GET_CONTACTS:B.onGetContacts(ur,yt,gr,De);break;case O.chatMessageVOTypes.GET_THREADS:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt,gr,ur));break;case O.chatMessageVOTypes.GET_HISTORY:K.threadHistory.onGetHistory(ur,yt,gr,De);break;case O.chatMessageVOTypes.REMOVED_FROM_THREAD:K.chatEvents.fireEvent("threadEvents",{type:"THREAD_REMOVED_FROM",result:{thread:ht}});break;case O.chatMessageVOTypes.REMOVE_PARTICIPANT:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt,gr)),K.sdkParams.fullResponseObject?gt({threadIds:[ht]},function(pr){var Or=pr.result.threads;pr.cache||(K.chatEvents.fireEvent("threadEvents",{type:"THREAD_REMOVE_PARTICIPANTS",result:{thread:Or[0]}}),K.chatEvents.fireEvent("threadEvents",{type:"THREAD_LAST_ACTIVITY_TIME",result:{thread:Or[0]}}))}):(K.chatEvents.fireEvent("threadEvents",{type:"THREAD_REMOVE_PARTICIPANTS",result:{thread:ht}}),K.chatEvents.fireEvent("threadEvents",{type:"THREAD_LAST_ACTIVITY_TIME",result:{thread:ht}}));break;case O.chatMessageVOTypes.MUTE_THREAD:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt)),K.sdkParams.fullResponseObject?gt({threadIds:[ht]},function(pr){var Or=pr.result.threads[0];Or.mute=!0,K.chatEvents.fireEvent("threadEvents",{type:"THREAD_MUTE",result:{thread:Or}})}):K.chatEvents.fireEvent("threadEvents",{type:"THREAD_MUTE",result:{thread:ht}});break;case O.chatMessageVOTypes.UNMUTE_THREAD:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt)),K.sdkParams.fullResponseObject?gt({threadIds:[ht]},function(pr){var Or=pr.result.threads[0];Or.mute=!1,K.chatEvents.fireEvent("threadEvents",{type:"THREAD_UNMUTE",result:{thread:Or}})}):K.chatEvents.fireEvent("threadEvents",{type:"THREAD_UNMUTE",result:{thread:ht}});break;case O.chatMessageVOTypes.UPDATE_THREAD_INFO:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt)),K.sdkParams.fullResponseObject?gt({threadIds:[yt.id],cache:!1},function(pr){var Or=(0,q.formatDataToMakeConversation)(pr.result.threads[0]);K.chatEvents.fireEvent("threadEvents",{type:"THREAD_INFO_UPDATED",result:{thread:Or}})}):K.chatEvents.fireEvent("threadEvents",{type:"THREAD_INFO_UPDATED",result:{thread:yt}});break;case O.chatMessageVOTypes.FORWARD_MESSAGE:pt(ht,yt,De);break;case O.chatMessageVOTypes.USER_INFO:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt)),K.chatEvents.fireEvent("systemEvents",{type:"SERVER_TIME",result:{time:Zr}});break;case O.chatMessageVOTypes.GET_BLOCKED:case O.chatMessageVOTypes.THREAD_PARTICIPANTS:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt,gr));break;case O.chatMessageVOTypes.EDIT_MESSAGE:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt,gr)),Zt(ht,yt,De);break;case O.chatMessageVOTypes.DELETE_MESSAGE:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt,gr));var un,fn=1e9*parseInt(parseInt(yt.time)/1e3)+parseInt(yt.timeNanos);K.store.threads.get(ht)&&K.store.threads.get(ht).unreadCount.decrease(fn),yt.pinned&&Rr({messageId:yt.id,notifyAll:!0}),K.store.history.removeMessage(ht,yt.id),K.sdkParams.fullResponseObject?(yt.time.toString().length>14?(Zr=yt.time,un=parseInt(yt.time/1e6)):(Zr=yt.timeNanos?1e9*parseInt(parseInt(yt.time)/1e3)+parseInt(yt.timeNanos):parseInt(pushMessageVO.time),un=parseInt(yt.time)),gt({threadIds:[ht]},function(Or){var Wr=Or.result.threads;Or.cache||(K.chatEvents.fireEvent("messageEvents",{type:"MESSAGE_DELETE",result:{typeCode:De.typeCode,message:{id:yt.id,pinned:yt.pinned,threadId:ht,time:Zr,timeMiliSeconds:un,timeNanos:yt.timeNanos}}}),yt.pinned&&K.chatEvents.fireEvent("threadEvents",{type:"THREAD_LAST_ACTIVITY_TIME",result:{thread:Wr[0]}}))})):(K.chatEvents.fireEvent("messageEvents",{type:"MESSAGE_DELETE",result:{typeCode:De.typeCode,message:{id:yt.id,pinned:yt.pinned,threadId:ht,time:Zr,timeMiliSeconds:un,timeNanos:yt.timeNanos}}}),yt.pinned&&K.chatEvents.fireEvent("threadEvents",{type:"THREAD_LAST_ACTIVITY_TIME",result:{thread:ht}}));break;case O.chatMessageVOTypes.THREAD_INFO_UPDATED:var Et=(0,q.formatDataToMakeConversation)(yt);K.chatEvents.fireEvent("threadEvents",{type:"THREAD_INFO_UPDATED",result:{thread:Et}});break;case O.chatMessageVOTypes.LAST_SEEN_UPDATED:var Ae;if((Ae=yt).unreadCount=yt.unreadCount?yt.unreadCount:0,Ae.lastSeenMessageTime=yt.lastSeenMessageNanos?1e9*parseInt(parseInt(yt.lastSeenMessageTime)/1e3)+parseInt(yt.lastSeenMessageNanos):parseInt(yt.lastSeenMessageTime),K.chatEvents.fireEvent("threadEvents",{type:"THREAD_UNREAD_COUNT_UPDATED",result:{thread:Ae,unreadCount:yt.unreadCount?yt.unreadCount:0}}),K.chatEvents.fireEvent("threadEvents",{type:"THREAD_LAST_SEEN_UPDATED",result:{thread:Ae,unreadCount:yt.unreadCount?yt.unreadCount:0}}),K.store.threads.get(ht)&&(!K.store.threads.get(ht).lastSeenMessageTime.get()||K.store.threads.get(ht).lastSeenMessageTime.get()&&Ae.lastSeenMessageTime>K.store.threads.get(ht).lastSeenMessageTime.get()&&Ae.unreadCount<K.store.threads.get(ht).unreadCount.get())){var it=JSON.parse(JSON.stringify(yt));K.store.threads.save(it),K.store.threads.get(ht).lastSeenMessageTime.set(Ae.lastSeenMessageTime),K.store.threads.get(ht).unreadCount.set(yt.unreadCount)}break;case O.chatMessageVOTypes.GET_MESSAGE_DELIVERY_PARTICIPANTS:case O.chatMessageVOTypes.GET_MESSAGE_SEEN_PARTICIPANTS:case O.chatMessageVOTypes.IS_NAME_AVAILABLE:case O.chatMessageVOTypes.JOIN_THREAD:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt,gr));break;case O.chatMessageVOTypes.BOT_MESSAGE:K.chatEvents.fireEvent("botEvents",{type:"BOT_MESSAGE",result:{bot:yt}});break;case O.chatMessageVOTypes.SPAM_PV_THREAD:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt));break;case O.chatMessageVOTypes.SET_ROLE_TO_USER:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt)),K.sdkParams.fullResponseObject?gt({threadIds:[yt.id]},function(pr){var Or=pr.result.threads;pr.cache||(K.chatEvents.fireEvent("threadEvents",{type:"THREAD_ADD_ADMIN",result:{thread:Or[0],admin:yt}}),K.chatEvents.fireEvent("threadEvents",{type:"THREAD_LAST_ACTIVITY_TIME",result:{thread:Or[0],admin:yt}}))}):(K.chatEvents.fireEvent("threadEvents",{type:"THREAD_ADD_ADMIN",result:{thread:ht,admin:yt}}),K.chatEvents.fireEvent("threadEvents",{type:"THREAD_LAST_ACTIVITY_TIME",result:{thread:ht,admin:yt}}));break;case O.chatMessageVOTypes.REMOVE_ROLE_FROM_USER:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt)),K.sdkParams.fullResponseObject?gt({threadIds:[ht]},function(pr){var Or=pr.result.threads;pr.cache||(K.chatEvents.fireEvent("threadEvents",{type:"THREAD_REMOVE_ADMIN",result:{thread:Or[0],admin:yt}}),K.chatEvents.fireEvent("threadEvents",{type:"THREAD_LAST_ACTIVITY_TIME",result:{thread:Or[0],admin:yt}}))}):(K.chatEvents.fireEvent("threadEvents",{type:"THREAD_REMOVE_ADMIN",result:{thread:ht,admin:yt}}),K.chatEvents.fireEvent("threadEvents",{type:"THREAD_LAST_ACTIVITY_TIME",result:{thread:ht,admin:yt}}));break;case O.chatMessageVOTypes.CLEAR_HISTORY:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt));break;case O.chatMessageVOTypes.SYSTEM_MESSAGE:K.chatEvents.fireEvent("systemEvents",{type:"IS_TYPING",result:{thread:ht,user:yt}});break;case O.chatMessageVOTypes.GET_NOT_SEEN_DURATION:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt));break;case O.chatMessageVOTypes.PIN_THREAD:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt)),K.sdkParams.fullResponseObject?gt({threadIds:[ht]},function(pr){K.chatEvents.fireEvent("threadEvents",{type:"THREAD_PIN",result:{thread:pr.result.threads[0]}})}):K.chatEvents.fireEvent("threadEvents",{type:"THREAD_PIN",result:{thread:ht}});break;case O.chatMessageVOTypes.UNPIN_THREAD:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt)),K.sdkParams.fullResponseObject?gt({threadIds:[ht]},function(pr){K.chatEvents.fireEvent("threadEvents",{type:"THREAD_UNPIN",result:{thread:pr.result.threads[0]}})}):K.chatEvents.fireEvent("threadEvents",{type:"THREAD_UNPIN",result:{thread:ht}});break;case O.chatMessageVOTypes.PIN_MESSAGE:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt)),K.chatEvents.fireEvent("threadEvents",{type:"MESSAGE_PIN",result:{thread:ht,pinMessage:(0,q.formatDataToMakePinMessage)(ht,yt)}});break;case O.chatMessageVOTypes.UNPIN_MESSAGE:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt)),K.chatEvents.fireEvent("threadEvents",{type:"MESSAGE_UNPIN",result:{thread:ht,pinMessage:(0,q.formatDataToMakePinMessage)(ht,yt)}});break;case O.chatMessageVOTypes.UPDATE_CHAT_PROFILE:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt)),K.chatEvents.fireEvent("userEvents",{type:"CHAT_PROFILE_UPDATED",result:{user:yt}});break;case O.chatMessageVOTypes.CHANGE_THREAD_PRIVACY:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt)),K.chatEvents.fireEvent("threadEvents",{type:"THREAD_PRIVACY_CHANGED",result:{thread:yt}});break;case O.chatMessageVOTypes.GET_PARTICIPANT_ROLES:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt)),K.chatEvents.fireEvent("userEvents",{type:"GET_PARTICIPANT_ROLES",result:{roles:yt}});break;case O.chatMessageVOTypes.GET_CONTACT_NOT_SEEN_DURATION:K.chatEvents.fireEvent("contactEvents",{type:"CONTACTS_LAST_SEEN",result:yt});break;case O.chatMessageVOTypes.ALL_UNREAD_MESSAGE_COUNT:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt)),K.chatEvents.fireEvent("systemEvents",{type:"ALL_UNREAD_MESSAGES_COUNT",result:yt});break;case O.chatMessageVOTypes.CREATE_BOT:case O.chatMessageVOTypes.DEFINE_BOT_COMMAND:case O.chatMessageVOTypes.START_BOT:case O.chatMessageVOTypes.STOP_BOT:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt,gr));break;case O.chatMessageVOTypes.LAST_MESSAGE_DELETED:delete yt.unreadCount;var Bt=(0,q.formatDataToMakeConversation)(yt);K.store.threads.save(Bt),new Promise(function(pr,Or){if(K.sdkParams.fullResponseObject)gt({threadIds:[yt.id]},function(sn){var En=sn.result.threads;sn.cache||(pr(En[0]),K.chatEvents.fireEvent("threadEvents",{type:"THREAD_INFO_UPDATED",result:{thread:En[0]}}))});else{var Wr=(0,q.formatDataToMakeConversation)(yt);pr(Wr),K.chatEvents.fireEvent("threadEvents",{type:"THREAD_INFO_UPDATED",result:{thread:Wr}})}}).then(function(pr){typeof yt.unreadCount<"u"&&K.chatEvents.fireEvent("threadEvents",{type:"THREAD_UNREAD_COUNT_UPDATED",result:{thread:pr,unreadCount:yt.unreadCount?yt.unreadCount:0}})});break;case O.chatMessageVOTypes.LAST_MESSAGE_EDITED:K.sdkParams.fullResponseObject?gt({threadIds:[yt.id]},function(pr){pr.cache||K.chatEvents.fireEvent("threadEvents",{type:"THREAD_INFO_UPDATED",result:{thread:pr.result.threads[0]}})}):(Et=(0,q.formatDataToMakeConversation)(yt),K.chatEvents.fireEvent("threadEvents",{type:"THREAD_INFO_UPDATED",result:{thread:Et}}));break;case O.chatMessageVOTypes.BOT_COMMANDS:case O.chatMessageVOTypes.THREAD_ALL_BOTS:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt,gr));break;case O.chatMessageVOTypes.CALL_REQUEST:case O.chatMessageVOTypes.ACCEPT_CALL:case O.chatMessageVOTypes.REJECT_CALL:case O.chatMessageVOTypes.RECEIVE_CALL_REQUEST:case O.chatMessageVOTypes.START_CALL:case O.chatMessageVOTypes.END_CALL_REQUEST:case O.chatMessageVOTypes.END_CALL:case O.chatMessageVOTypes.GET_CALLS:case O.chatMessageVOTypes.RECONNECT:case O.chatMessageVOTypes.CONNECT:case O.chatMessageVOTypes.GROUP_CALL_REQUEST:case O.chatMessageVOTypes.LEAVE_CALL:case O.chatMessageVOTypes.ADD_CALL_PARTICIPANT:case O.chatMessageVOTypes.CALL_PARTICIPANT_JOINED:case O.chatMessageVOTypes.REMOVE_CALL_PARTICIPANT:case O.chatMessageVOTypes.TERMINATE_CALL:case O.chatMessageVOTypes.MUTE_CALL_PARTICIPANT:case O.chatMessageVOTypes.UNMUTE_CALL_PARTICIPANT:case O.chatMessageVOTypes.RECORD_CALL:case O.chatMessageVOTypes.RECORD_CALL_STARTED:case O.chatMessageVOTypes.END_RECORD_CALL:case O.chatMessageVOTypes.START_SCREEN_SHARE:case O.chatMessageVOTypes.END_SCREEN_SHARE:case O.chatMessageVOTypes.DELETE_FROM_CALL_HISTORY:case O.chatMessageVOTypes.TURN_ON_VIDEO_CALL:case O.chatMessageVOTypes.TURN_OFF_VIDEO_CALL:case O.chatMessageVOTypes.ACTIVE_CALL_PARTICIPANTS:case O.chatMessageVOTypes.CALL_SESSION_CREATED:case O.chatMessageVOTypes.CANCEL_GROUP_CALL:case O.chatMessageVOTypes.DESTINED_RECORD_CALL:case O.chatMessageVOTypes.GET_CALLS_TO_JOIN:case O.chatMessageVOTypes.SWITCH_TO_GROUP_CALL_REQUEST:case O.chatMessageVOTypes.CALL_STICKER_SYSTEM_MESSAGE:case O.chatMessageVOTypes.INQUIRY_CALL:case O.chatMessageVOTypes.CALL_RECORDING_FAILED:Ge.handleChatMessages(De,Vt,yt,gr,ht,ur);break;case O.chatMessageVOTypes.CONTACT_SYNCED:K.chatEvents.fireEvent("contactEvents",{type:"CONTACTS_SYNCED",result:yt});break;case O.chatMessageVOTypes.LOCATION_PING:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt)),K.chatEvents.fireEvent("systemEvents",{type:"LOCATION_PING",result:yt});break;case O.chatMessageVOTypes.CLOSE_THREAD:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt)),K.sdkParams.fullResponseObject?gt({threadIds:[ht]},function(pr){K.chatEvents.fireEvent("threadEvents",{type:"THREAD_CLOSE",result:{thread:pr.result.threads[0]}})}):K.chatEvents.fireEvent("threadEvents",{type:"THREAD_CLOSE",result:{thread:ht}});break;case O.chatMessageVOTypes.REMOVE_BOT_COMMANDS:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt,gr));break;case O.chatMessageVOTypes.REGISTER_ASSISTANT:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt)),K.chatEvents.fireEvent("assistantEvents",{type:"ASSISTANT_REGISTER",result:yt});break;case O.chatMessageVOTypes.DEACTIVATE_ASSISTANT:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt)),K.chatEvents.fireEvent("assistantEvents",{type:"ASSISTANT_DEACTIVATE",result:yt});break;case O.chatMessageVOTypes.GET_ASSISTANTS:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt,gr)),K.chatEvents.fireEvent("assistantEvents",{type:"ASSISTANTS_LIST",result:yt});break;case O.chatMessageVOTypes.ASSISTANT_HISTORY:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt,gr)),K.chatEvents.fireEvent("assistantEvents",{type:"ASSISTANTS_HSITORY",result:yt});break;case O.chatMessageVOTypes.BLOCK_ASSISTANT:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt)),K.chatEvents.fireEvent("assistantEvents",{type:"ASSISTANT_BLOCK",result:yt});break;case O.chatMessageVOTypes.UNBLOCK_ASSISTANT:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt)),K.chatEvents.fireEvent("assistantEvents",{type:"ASSISTANT_UNBLOCK",result:yt});break;case O.chatMessageVOTypes.BLOCKED_ASSISTANTS:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt,gr)),K.chatEvents.fireEvent("assistantEvents",{type:"ASSISTANTS_BLOCKED_LIST",result:yt});break;case O.chatMessageVOTypes.MUTUAL_GROUPS:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt,gr)),K.chatEvents.fireEvent("threadEvents",{type:"MUTUAL_GROUPS",result:yt});break;case O.chatMessageVOTypes.CREATE_TAG:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt)),K.chatEvents.fireEvent("threadEvents",{type:"NEW_TAG",result:yt});break;case O.chatMessageVOTypes.EDIT_TAG:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt)),K.chatEvents.fireEvent("threadEvents",{type:"EDIT_TAG",result:yt});break;case O.chatMessageVOTypes.DELETE_TAG:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt)),K.chatEvents.fireEvent("threadEvents",{type:"DELETE_TAG",result:yt});break;case O.chatMessageVOTypes.ADD_TAG_PARTICIPANT:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt)),K.chatEvents.fireEvent("threadEvents",{type:"ADD_TAG_PARTICIPANT",result:yt});break;case O.chatMessageVOTypes.REMOVE_TAG_PARTICIPANT:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt)),K.chatEvents.fireEvent("threadEvents",{type:"REMOVE_TAG_PARTICIPANT",result:yt});break;case O.chatMessageVOTypes.GET_TAG_LIST:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt)),K.chatEvents.fireEvent("threadEvents",{type:"TAG_LIST",result:yt});break;case O.chatMessageVOTypes.DELETE_MESSAGE_THREAD:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt)),yt||(yt={}),yt.threadId=ht,K.chatEvents.fireEvent("threadEvents",{type:"DELETE_THREAD",result:yt});break;case O.chatMessageVOTypes.EXPORT_CHAT:case O.chatMessageVOTypes.ADD_CONTACTS:case O.chatMessageVOTypes.REMOVE_CONTACTS:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt,gr,ur));break;case O.chatMessageVOTypes.CONTACT_THREAD_UPDATE:yt.threadId=ht,K.chatEvents.fireEvent("threadEvents",{type:"CONTACT_THREAD_UPDATE",result:yt});break;case O.chatMessageVOTypes.ARCHIVE_THREAD:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt,gr,ur)),K.chatEvents.fireEvent("threadEvents",{type:"THREAD_ARCHIVE",result:yt});break;case O.chatMessageVOTypes.UNARCHIVE_THREAD:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt,gr,ur)),K.chatEvents.fireEvent("threadEvents",{type:"THREAD_UNARCHIVE",result:yt});break;case O.chatMessageVOTypes.CUSTOMER_INFO:case O.chatMessageVOTypes.LAST_MESSAGE_INFO:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt,gr,ur));break;case O.chatMessageVOTypes.GET_PIN_MESSAGE:K.threadMethods.onGetPinMessages(ur,yt,gr);break;case O.chatMessageVOTypes.GET_THREAD_LIGHT:case O.chatMessageVOTypes.REPLY_PRIVATELY:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt,gr,ur));break;case O.chatMessageVOTypes.ADD_REACTION:oe.onAddReaction(ur,yt,gr);break;case O.chatMessageVOTypes.REPLACE_REACTION:oe.onReplaceReaction(ur,yt,gr);break;case O.chatMessageVOTypes.REMOVE_REACTION:oe.onRemoveReaction(ur,yt,gr);break;case O.chatMessageVOTypes.REACTION_LIST:oe.onReactionList(ur,yt);break;case O.chatMessageVOTypes.GET_MY_REACTION:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt,gr,ur));break;case O.chatMessageVOTypes.REACTION_COUNT:oe.onReactionSummaries(ur,yt);break;case O.chatMessageVOTypes.CUSTOMIZE_REACTION:oe.onCustomizeReaction(ur,ht,yt);break;case O.chatMessageVOTypes.SET_ADMIN_ROLE_TO_USER:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,yt.message,yt.code,yt,0)),K.chatEvents.fireEvent("threadEvents",{type:"SET_ADMIN_ROLE_TO_USER",result:yt});break;case O.chatMessageVOTypes.REMOVE_ADMIN_ROLE_FROM_USER:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,yt.message,yt.code,yt,0)),K.chatEvents.fireEvent("threadEvents",{type:"REMOVE_ADMIN_ROLE_FROM_USER",result:yt});break;case O.chatMessageVOTypes.LAST_ACTION_IN_THREAD:K.threadMethods.onGetLastActionInThread(ur,yt,null);break;case O.chatMessageVOTypes.ADD_USER_TO_USER_GROUP:K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!1,"",0,yt,0)),K.chatEvents.fireEvent("threadEvents",{type:"ADD_USER_TO_USER_GROUP",result:yt,uniqueId:ur});break;case O.chatMessageVOTypes.GET_THREAD_ALLOWED_REACTIONS:oe.onGetThreadAllowedReactions(ur,ht,yt);break;case O.chatMessageVOTypes.ERROR:yt&&(yt.errorSender="[ChatServer]"),K.store.messagesCallbacks[ur]&&K.store.messagesCallbacks[ur](y.default.createReturnData(De.typeCode,De.ownerId,!0,yt.message,yt.code,yt,0)),208===yt.code&&K.store.sendMessageCallbacks[ur]&&K.messageQueues.getItemFromChatWaitQueue(ur,function(pr){K.chatEvents.fireEvent("messageEvents",{type:"MESSAGE_FAILED",cache:!1,result:{message:pr,errorSender:yt.errorSender}})}),K.chatEvents.fireEvent("error",{code:yt.code,message:yt.message,errorSender:yt.errorSender,error:yt,uniqueId:ur})}},Re=function(De,ht,Vt){switch(De){case O.chatMessageVOTypes.DELIVERY:break;case O.chatMessageVOTypes.SEEN:if(K.store.threadCallbacks[ht]){var yt=Object.keys(K.store.threadCallbacks[ht]).indexOf(Vt);if(typeof yt<"u")for(;yt>-1;){var gr=Object.entries(K.store.threadCallbacks[ht])[yt][0];K.store.sendMessageCallbacks[gr]&&K.store.sendMessageCallbacks[gr].onSeen&&K.store.threadCallbacks[ht][gr]&&K.store.threadCallbacks[ht][gr].onSent&&(K.store.sendMessageCallbacks[gr].onSeen({uniqueId:gr}),delete K.store.sendMessageCallbacks[gr].onSeen,K.store.threadCallbacks[ht][gr].onSeen=!0,K.store.threadCallbacks[ht][gr].onSent&&K.store.threadCallbacks[ht][gr].onSeen&&(delete K.store.threadCallbacks[ht][gr],delete K.store.sendMessageCallbacks[gr])),yt-=1}}}},pt=function(De,ht,Vt){var yt=(0,q.formatDataToMakeMessage)(De,ht),gr=yt.conversation,ur=Object.assign({},yt);ur.conversation&&delete ur.conversation,gr.lastParticipantImage=yt.participant&&yt.participant.hasOwnProperty("image")?yt.participant.image:"",gr.lastMessageVO=ur,gr.lastParticipantName=yt.participant&&yt.participant.hasOwnProperty("name")?yt.participant.name:"",gr.lastMessage=yt.hasOwnProperty("message")?yt.message:"";var Zr=JSON.parse(JSON.stringify(yt));Zr.conversation=JSON.parse(JSON.stringify(gr)),K.store.history.saveMessage(De,Zr),K.chatEvents.fireEvent("messageEvents",{type:"MESSAGE_NEW",cache:!1,result:{typeCode:Vt.typeCode,message:Zr}}),K.chatEvents.fireEvent("threadEvents",{type:"THREAD_UNREAD_COUNT_UPDATED",result:{thread:gr,unreadCount:gr.unreadCount?gr.unreadCount:0}});var fn=K.store.threads.get(gr.id);fn||(K.store.threads.save(gr),fn=K.store.threads.get(gr.id)),yt.ownerId!=K.store.user.get().id?fn.unreadCount.get()?fn.unreadCount.increase():fn.unreadCount.set(1):fn.unreadCount.set(0),K.chatEvents.fireEvent("threadEvents",{type:"THREAD_LAST_ACTIVITY_TIME",result:{thread:gr}}),K.messageQueues.deleteFromChatWaitQueue(yt,function(){})},Zt=function(De,ht,Vt){var yt=(0,q.formatDataToMakeMessage)(De,ht);K.store.history.saveMessage(De,yt),K.sdkParams.fullResponseObject?gt({threadIds:[De]},function(gr){var ur=gr.result.threads;gr.cache||(K.chatEvents.fireEvent("messageEvents",{type:"MESSAGE_EDIT",result:{typeCode:Vt.typeCode,message:yt}}),yt.pinned&&K.chatEvents.fireEvent("threadEvents",{type:"THREAD_LAST_ACTIVITY_TIME",result:{thread:ur[0]}}))}):(K.chatEvents.fireEvent("messageEvents",{type:"MESSAGE_EDIT",result:{typeCode:Vt.typeCode,message:yt}}),yt.pinned&&K.chatEvents.fireEvent("threadEvents",{type:"THREAD_LAST_ACTIVITY_TIME",result:{thread:De}}))},gt=function(De,ht){var Vt=25,yt=0,gr={};return De&&(parseInt(De.count)>0&&(Vt=De.count),parseInt(De.offset)>0&&(yt=De.offset),"string"==typeof De.threadName&&(gr.name=De.threadName),"string"==typeof De.username&&(gr.username=De.username),"string"==typeof De.cellphoneNumber&&(gr.cellphoneNumber=De.cellphoneNumber),Array.isArray(De.threadIds)&&(gr.threadIds=De.threadIds),"boolean"==typeof De.new&&(gr.new=De.new),parseInt(De.creatorCoreUserId)>0&&(gr.creatorCoreUserId=De.creatorCoreUserId),parseInt(De.partnerCoreUserId)>0&&(gr.partnerCoreUserId=De.partnerCoreUserId),parseInt(De.partnerCoreContactId)>0&&(gr.partnerCoreContactId=De.partnerCoreContactId),parseInt(De.fromTime)>0&&parseInt(De.fromTime)<9999999999999&&(gr.fromTime=parseInt(De.fromTime)),parseInt(De.toTime)>0&&parseInt(De.toTime)<9999999999999&&(gr.toTime=parseInt(De.toTime)),"boolean"==typeof De.isGroup&&(gr.isGroup=De.isGroup),"number"==typeof De.type&&(gr.type=De.type)),gr.count=Vt,gr.offset=yt,K.messenger.sendMessage({chatMessageVOType:O.chatMessageVOTypes.GET_THREADS,typeCode:De.typeCode,content:gr},{onResult:function(Et){var Ae={typeCode:Et.typeCode,ownerId:Et.ownerId,hasError:Et.hasError,cache:!1,errorMessage:Et.errorMessage,errorCode:Et.errorCode,uniqueId:Et.uniqueId};if(!Ae.hasError){for(var Or,it=Et.result,Bt=it.length,pr={threads:[],contentCount:Et.contentCount,hasNext:it&&!(Bt<Vt),nextOffset:1*yt+1*Bt},Wr=0;Wr<Bt;Wr++)(Or=K.threadMethods.createThread(it[Wr],!1))&&pr.threads.push(Or);K.store.threads.saveMany(pr.threads),Ae.result=pr}ht&&ht(Ae),ht=void 0}})},He=function(De){return K.messenger.sendMessage({chatMessageVOType:O.chatMessageVOTypes.SEEN,typeCode:De.typeCode,content:De.messageId,pushMsgType:3})},ke=function we(De,ht){var Vt,yt,gr,ur;Vt=De.file.name,yt=De.file.size;var Zr={};if(De){if(typeof De.file<"u"&&(Zr.file=De.file),parseInt(De.threadId)>0?(ur=De.threadId,Zr.threadId=De.threadId):(ur=0,Zr.threadId=0),"string"==typeof De.uniqueId?(gr=De.uniqueId,Zr.uniqueId=De.uniqueId):(gr=y.default.generateUUID(),Zr.uniqueId=gr),"string"!=typeof De.userGroupHash)return void ht({hasError:!0,errorCode:999,errorMessage:"[SDK] You need to enter a userGroupHash to be able to upload on PodSpace!"});Zr.userGroupHash=De.userGroupHash,Zr.originalFileName="string"==typeof De.originalFileName?De.originalFileName:Vt,De.addToGroupRetryCount||(De.addToGroupRetryCount=0)}return yt>=5242880?K.uploads.sendResumableFileMessage(De,function(fn){ht(200===fn.status?{hasError:!1,result:fn.result}:{hasError:!0,errorCode:999,errorMessage:"[SDK] error fetch response from podspace"})}):K.httpRequest.httpRequest({url:K.sdkParams.SERVICE_ADDRESSES.PODSPACE_FILESERVER_ADDRESS+K.sdkParams.SERVICES_PATH.PODSPACE_UPLOAD_FILE_TO_USERGROUP_NEW.replace("{userGroupHash}",Zr.userGroupHash),method:"POST",headers:{Authorization:"Bearer "+K.sdkParams.token},data:Zr,uniqueId:gr},function(fn){if(fn.hasError)403==fn.errorCode&&De.addToGroupRetryCount<2?fr({threadId:Zr.threadId},function(Et){Et.hasError?K.errorHandler.raiseError({code:Et.errorCode,message:Et.errorMessage},ht,!0,{}):(De.addToGroupRetryCount++,we(De,ht))}):K.errorHandler.raiseError({code:fn.errorCode,message:fn.errorMessage},ht,!0,{});else try{var un="string"==typeof fn.result.responseText?JSON.parse(fn.result.responseText):fn.result.responseText;ht({hasError:un.hasError,result:un.result})}catch{ht({hasError:!0,errorCode:999,errorMessage:"[SDK] Problem in Parsing result"})}}),{uniqueId:gr,threadId:ur,participant:K.store.user.get(),content:{caption:De.content,file:{uniqueId:gr,fileName:Vt,fileSize:yt,fileObject:De.file}}}},Vr=function we(De,ht){var Vt,yt,gr,fn,un,Et,ur=0,Zr=0;Vt=De.image.name,yt=De.image.type,gr=De.image.size,fn=De.image.name.split(".").pop();var it=new FileReader;it.onload=function(Bt){var pr=new Image;pr.onload=function(){ur=this.width,Zr=this.height,function(pr){if(O.imageMimeTypes.indexOf(yt)>=0||O.imageExtentions.indexOf(fn)>=0){var Or={};if(pr){if(!(typeof pr.image<"u"))return void ht({hasError:!0,errorCode:999,errorMessage:"[SDK] You need to send a image file!"});if(Or.file=pr.image,"string"!=typeof pr.userGroupHash)return void ht({hasError:!0,errorCode:999,errorMessage:"[SDK] You need to enter a userGroupHash to be able to upload on PodSpace!"});Or.userGroupHash=pr.userGroupHash,pr.randomFileName?Or.fileName=y.default.generateUUID()+"."+fn:Or.filename=Vt,Or.fileSize=gr,parseInt(pr.threadId)>0?(Et=pr.threadId,Or.threadId=pr.threadId):(Et=0,Or.threadId=0),"string"==typeof pr.uniqueId?(un=pr.uniqueId,Or.uniqueId=pr.uniqueId):(un=y.default.generateUUID(),Or.uniqueId=un),Or.originalFileName="string"==typeof pr.originalFileName?pr.originalFileName:Vt,Or.x=parseInt(pr.xC)||0,Or.y=parseInt(pr.yC)||0,Or.height=parseInt(pr.hC)||Zr,Or.weight=parseInt(pr.wC)||ur,pr.addToGroupRetryCount||(pr.addToGroupRetryCount=0)}return K.httpRequest.httpRequest({url:K.sdkParams.SERVICE_ADDRESSES.PODSPACE_FILESERVER_ADDRESS+K.sdkParams.SERVICES_PATH.PODSPACE_UPLOAD_IMAGE_TO_USERGROUP_NEW.replace("{userGroupHash}",Or.userGroupHash),method:"POST",headers:{Authorization:"Bearer "+K.sdkParams.token},data:Or,uniqueId:un},function(Wr){if(Wr.hasError)403==Wr.errorCode&&pr.addToGroupRetryCount<2?fr({threadId:pr.threadId},function(En){En.hasError?K.errorHandler.raiseError({code:En.errorCode,message:En.errorMessage},ht,!0,{}):(pr.addToGroupRetryCount++,we(pr,ht))}):K.errorHandler.raiseError({code:Wr.errorCode,message:Wr.errorMessage},ht,!0,{});else try{var sn="string"==typeof Wr.result.responseText?JSON.parse(Wr.result.responseText):Wr.result.responseText;sn.status<400?(sn.result.actualHeight=Zr,sn.result.actualWidth=ur,ht({hasError:sn.hasError,result:sn.result})):ht({hasError:!0,errorCode:sn.errorCode,errorMessage:sn.message})}catch(En){K.sdkParams.consoleLogging&&console.log(En),ht({hasError:!0,errorCode:6300,errorMessage:O.CHAT_ERRORS[6300]})}}),{uniqueId:un,threadId:Et,participant:K.store.user.get(),content:{caption:pr.content,file:{uniqueId:un,fileName:Vt,fileSize:gr,fileObject:pr.file}}}}ht({hasError:!0,errorCode:6301,errorMessage:O.CHAT_ERRORS[6301]})}(De)},pr.src=Bt.target.result},it.readAsDataURL(De.image)},Sr=function(De,ht){var Vt={file:{}},yt={},gr="string"==typeof De.fileUniqueId&&De.fileUniqueId.length>0?De.fileUniqueId:y.default.generateUUID();if(De)return De.userGroupHash&&0!==De.userGroupHash.length&&"string"==typeof De.userGroupHash?(yt.userGroupHash=De.userGroupHash,Ur({threadId:De.threadId,file:De.file,fileUniqueId:gr},function(ur,Zr,fn,un){yt=Object.assign(yt,ur),K.messageQueues.putInChatUploadQueue({message:{chatMessageVOType:O.chatMessageVOTypes.MESSAGE,typeCode:De.typeCode,messageType:De.messageType&&typeof De.messageType.toUpperCase()<"u"&&O.chatMessageTypes[De.messageType.toUpperCase()]>0?O.chatMessageTypes[De.messageType.toUpperCase()]:1,subjectId:De.threadId,repliedTo:De.repliedTo,content:filterXSS(De.content),metadata:JSON.stringify(y.default.objectDeepMerger(Zr,De.metadata)),systemMetadata:JSON.stringify(De.systemMetadata),uniqueId:gr,pushMsgType:3},callbacks:ht},function(){O.imageMimeTypes.indexOf(fn)>=0||O.imageExtentions.indexOf(un)>=0?Vr(yt,function(Et){if(Et.hasError)K.messageQueues.deleteFromChatUploadQueue({message:{uniqueId:gr}});else{var Ae="blob"!=Et.result.name?Et.result.name:Zr.file.originalName;"object"===(0,h.default)(ht)&&ht.hasOwnProperty("onFileUpload")&&ht.onFileUpload&&ht.onFileUpload({name:Ae,hashCode:Et.result.hash,parentHash:Et.result.parentHash,size:Et.result.size,actualHeight:Et.result.actualHeight,actualWidth:Et.result.actualWidth,link:"".concat(K.sdkParams.SERVICE_ADDRESSES.PODSPACE_FILESERVER_ADDRESS,"/api/images/").concat(Et.result.hash,"?checkUserGroupAccess=true")}),Vt.name=Ae,Vt.fileHash=Et.result.hash,Vt.file.name=Ae,Vt.file.fileHash=Et.result.hash,Vt.file.hashCode=Et.result.hash,Vt.file.parentHash=Et.result.parentHash,Vt.file.size=Et.result.size,Vt.file.actualHeight=Et.result.actualHeight,Vt.file.actualWidth=Et.result.actualWidth,Vt.file.link="".concat(K.sdkParams.SERVICE_ADDRESSES.PODSPACE_FILESERVER_ADDRESS,"/api/images/").concat(Et.result.hash,"?checkUserGroupAccess=true"),K.messageQueues.transferFromUploadQToSendQ(parseInt(De.threadId),gr,JSON.stringify(Vt),function(){Ne()})}}):ke(yt,function(Et){if(Et.hasError)K.messageQueues.deleteFromChatUploadQueue({message:{uniqueId:gr}});else{var Ae="blob"!=Et.result.name?Et.result.name:Zr.file.originalName;Vt.fileHash=Et.result.hash,Vt.name=Ae,Vt.file.name=Ae,Vt.file.fileHash=Et.result.hash,Vt.file.hashCode=Et.result.hash,Vt.file.parentHash=Et.result.parentHash,Vt.file.size=Et.result.size,K.messageQueues.transferFromUploadQToSendQ(parseInt(De.threadId),gr,JSON.stringify(Vt),function(){Ne()})}})})})):void K.chatEvents.fireEvent("error",{code:6304,message:O.CHAT_ERRORS[6304]})},xt=function(De,ht){var Vt={chatMessageVOType:O.chatMessageVOTypes.SET_ROLE_TO_USER,typeCode:De.typeCode,content:[],pushMsgType:3,token:K.sdkParams.token};if(De&&(parseInt(De.threadId)>0&&(Vt.subjectId=De.threadId),De.admins&&Array.isArray(De.admins))){for(var yt=0;yt<De.admins.length;yt++){var gr={};parseInt(De.admins[yt].userId)>0&&(gr.userId=De.admins[yt].userId),Array.isArray(De.admins[yt].roles)&&(gr.roles=De.admins[yt].roles),Vt.content.push(gr)}Vt.content=JSON.stringify(Vt.content)}return K.messenger.sendMessage(Vt,{onResult:function(Zr){ht&&ht(Zr)}})},tr=function(De,ht){var Vt={chatMessageVOType:O.chatMessageVOTypes.REMOVE_ROLE_FROM_USER,typeCode:De.typeCode,content:[],pushMsgType:3,token:K.sdkParams.token};if(De&&(parseInt(De.threadId)>0&&(Vt.subjectId=De.threadId),De.admins&&Array.isArray(De.admins))){for(var yt=0;yt<De.admins.length;yt++){var gr={};parseInt(De.admins[yt].userId)>0&&(gr.userId=De.admins[yt].userId),Array.isArray(De.admins[yt].roles)&&(gr.roles=De.admins[yt].roles),Vt.content.push(gr)}Vt.content=JSON.stringify(Vt.content)}return K.messenger.sendMessage(Vt,{onResult:function(Zr){ht&&ht(Zr)}})},Rr=function(De,ht){return K.messenger.sendMessage({chatMessageVOType:O.chatMessageVOTypes.UNPIN_MESSAGE,typeCode:De.typeCode,subjectId:De.messageId,content:JSON.stringify({notifyAll:"boolean"==typeof De.notifyAll&&De.notifyAll}),pushMsgType:3,token:K.sdkParams.token},{onResult:function(yt){ht&&ht(yt)}})},Ur=function(De,ht){if(typeof De.file<"u"){var Vt,yt,gr,ur,Zr={},fn={file:{}},un=De.fileUniqueId;Vt=De.file.name,yt=De.file.type,gr=De.file.size,ur=De.file.name.split(".").pop(),K.chatEvents.fireEvent("fileUploadEvents",{threadId:De.threadId,uniqueId:un,state:"NOT_STARTED",progress:0,fileInfo:{fileName:Vt,fileSize:gr},fileObject:De.file}),O.imageMimeTypes.indexOf(yt)>=0||O.imageExtentions.indexOf(ur)>=0?(Zr.image=De.file,De.xC>=0&&(fileUploadParams.xC=De.xC),De.yC>=0&&(fileUploadParams.yC=De.yC),De.hC>0&&(fileUploadParams.hC=De.hC),De.wC>0&&(fileUploadParams.wC=De.wC)):Zr.file=De.file,fn.file.originalName=Vt,fn.file.mimeType=yt,fn.file.size=gr,Zr.threadId=De.threadId,Zr.uniqueId=un,Zr.fileObject=De.file,Zr.originalFileName=Vt,ht&&ht(Zr,fn,yt,ur)}else K.chatEvents.fireEvent("error",{code:6302,message:O.CHAT_ERRORS[6302]});return{uniqueId:un,threadId:De.threadId,participant:K.store.user.get(),content:{caption:De.content,file:{uniqueId:un,fileName:Vt,fileSize:gr,fileObject:De.file}}}},zr=function(De,ht){var Vt={};De&&(parseFloat(De.lat)>0&&(Vt.lat=De.lat),parseFloat(De.lng)>0&&(Vt.lng=De.lng),Vt.uniqueId=y.default.generateUUID()),K.httpRequest.httpRequest({url:K.sdkParams.SERVICE_ADDRESSES.MAP_ADDRESS+K.sdkParams.SERVICES_PATH.REVERSE,method:"GET",data:Vt,headers:{"Api-Key":K.sdkParams.mapApiKey}},function(gr){if(gr.hasError)K.chatEvents.fireEvent("error",{code:gr.errorCode,message:gr.errorMessage,error:gr});else{var ur=JSON.parse(gr.result.responseText);ht&&ht({hasError:gr.hasError,cache:gr.cache,errorMessage:gr.message,errorCode:gr.errorCode,result:ur})}})};function fr(we,De){var ht={chatMessageVOType:O.chatMessageVOTypes.ADD_USER_TO_USER_GROUP,uniqueId:y.default.generateUUID(),typeCode:we.typeCode,token:K.sdkParams.token,subjectId:we.threadId};return K.messenger.sendMessage(ht,{onResult:function(yt){De&&De(yt)}})}var Kt={};function Qr(we,De,ht,Vt,yt){return yt.content.offset=Vt,yt.content.count=ht,new Promise(function(gr,ur){return K.messenger.sendMessage(yt,{onResult:function(fn){fn.hasError?21!==fn.errorCode?(K.sdkParams.consoleLogging&&console.log("[SDK][exportChat] Problem in one step... . Rerunning the request.",De,ht,we.length,yt,fn),setTimeout(function(){gr(Qr(we,De,ht,we.length,yt))},2e3)):ur(fn):(we.push.apply(we,(0,l.default)(fn.result)),K.sdkParams.consoleLogging&&console.log("[SDK][exportChat] a step passed..."),fn.result.length<ht&&(De=we.length),setTimeout(function(){K.chatEvents.fireEvent("threadEvents",{type:"EXPORT_CHAT",subType:"IN_PROGRESS",threadId:yt.subjectId,percent:Math.floor(we.length/De*100)}),gr(we.length<De?Qr(we,De,ht=De-we.length<ht?De-we.length:ht,we.length,yt):we)}))}})})}return Kt.on=K.chatEvents.on,Kt.off=K.chatEvents.off,Kt.getPeerId=function(){return w},Kt.getCurrentUser=function(){return K.store.user.get()},Kt.getUserInfo=function(we,De){return K.messenger.sendMessage({chatMessageVOType:O.chatMessageVOTypes.USER_INFO,typeCode:De.typeCode},{onResult:function(Vt){var yt={typeCode:Vt.typeCode,ownerId:Vt.ownerId,hasError:Vt.hasError,cache:!1,errorMessage:Vt.errorMessage,errorCode:Vt.errorCode};if(!yt.hasError){var ur=(0,q.formatDataToMakeUser)(Vt.result);yt.result={user:ur},we&&we(yt)}}})},Kt.getThreads=gt,Kt.getAllThreads=function(De,ht){var Vt={chatMessageVOType:O.chatMessageVOTypes.GET_THREADS,typeCode:De.typeCode,content:{}};return Vt.content.summary=De.summary,K.messenger.sendMessage(Vt,{onResult:function(gr){ht&&ht(gr)}})},Kt.getHistory=function(we,De){return K.threadHistory.getHistory(we,De)},Kt.getAllMentionedMessages=function(we,De){return K.threadHistory.getHistory({threadId:we.threadId,allMentioned:!0,typeCode:we.typeCode,count:we.count||25,offset:we.offset||0,cache:!1,queues:{uploading:!1,sending:!1}},De)},Kt.getUnreadMentionedMessages=function(we,De){return K.threadHistory.getHistory({threadId:we.threadId,unreadMentioned:!0,typeCode:we.typeCode,count:we.count||25,offset:we.offset||0,cache:!1,queues:{uploading:!1,sending:!1}},De)},Kt.getAllUnreadMessagesCount=function(we,De){return K.messenger.sendMessage({chatMessageVOType:O.chatMessageVOTypes.ALL_UNREAD_MESSAGE_COUNT,typeCode:we.typeCode,content:JSON.stringify({mute:"boolean"==typeof we.countMuteThreads&&we.countMuteThreads}),pushMsgType:3,token:K.sdkParams.token},{onResult:function(Vt){De&&De(Vt)}})},Kt.getContacts=B.getContacts,Kt.getThreadParticipants=s.getThreadParticipants,Kt.getThreadAdmins=function(we,De){s.getThreadParticipants({threadId:we.threadId,admin:!0,cache:!1,typeCode:we.typeCode},De)},Kt.addParticipants=s.addParticipants,Kt.addParticipants2=s.addParticipants2,Kt.removeParticipants=function(we,De){var ht={chatMessageVOType:O.chatMessageVOTypes.REMOVE_PARTICIPANT,typeCode:we.typeCode};if(we){if(parseInt(we.threadId)>0&&(ht.subjectId=we.threadId),Array.isArray(we.usernames)){ht.content=[];for(var Vt=0;Vt<we.usernames.length;Vt++)ht.content.push({id:we.usernames[Vt],idType:O.inviteeVOidTypes.TO_BE_USER_USERNAME})}Array.isArray(we.participantIds)&&(ht.content=we.participantIds)}return K.messenger.sendMessage(ht,{onResult:function(gr){var ur={typeCode:gr.typeCode,ownerId:gr.ownerId,hasError:gr.hasError,cache:!1,errorMessage:gr.errorMessage,errorCode:gr.errorCode};ur.hasError||(ur.result={thread:K.threadMethods.createThread(gr.result)}),De&&De(ur)}})},Kt.getCurrentUserRoles=function(De,ht){return K.messenger.sendMessage({chatMessageVOType:O.chatMessageVOTypes.GET_PARTICIPANT_ROLES,pushMsgType:3,subjectId:De.threadId,token:K.sdkParams.token,typeCode:De.typeCode},{onResult:function(gr){ht&&ht(gr)}})},Kt.leaveThread=function(we,De){var ht={chatMessageVOType:O.chatMessageVOTypes.LEAVE_THREAD,typeCode:we.typeCode};return we&&(parseInt(we.threadId)>0&&(ht.subjectId=we.threadId),ht.content="boolean"==typeof we.clearHistory?{clearHistory:we.clearHistory}:{clearHistory:!0}),K.messenger.sendMessage(ht,{onResult:function(yt){var gr={typeCode:yt.typeCode,ownerId:yt.ownerId,hasError:yt.hasError,cache:!1,errorMessage:yt.errorMessage,errorCode:yt.errorCode};gr.hasError||(gr.result={thread:K.threadMethods.createThread(yt.result)}),De&&De(gr)}})},Kt.createThread=function(we,De){var ht={};if(we){if("string"==typeof we.title&&(ht.title=we.title),"string"==typeof we.type&&(ht.type=O.createThreadTypes[we.type]),"string"==typeof we.uniqueName&&(ht.uniqueName=we.uniqueName),Array.isArray(we.invitees)){ht.invitees=[];for(var yt=0;yt<we.invitees.length;yt++){var gr=(0,q.formatDataToMakeInvitee)(we.invitees[yt]);gr&&ht.invitees.push(gr)}}if("string"==typeof we.image&&(ht.image=we.image),"string"==typeof we.description&&(ht.description=we.description),"string"==typeof we.metadata)ht.metadata=we.metadata;else if("object"===(0,h.default)(we.metadata))try{ht.metadata=JSON.stringify(we.metadata)}catch(Zr){K.sdkParams.consoleLogging&&console.log(Zr)}if("object"==(0,h.default)(we.message)&&(ht.message={},"string"==typeof we.message.text&&(ht.message.text=we.message.text),"string"==typeof we.message.uniqueId&&(ht.message.uniqueId=we.message.uniqueId),we.message.type>0&&(ht.message.messageType=we.message.type),we.message.repliedTo>0&&(ht.message.repliedTo=we.message.repliedTo),"string"==typeof we.message.metadata?ht.message.metadata=we.message.metadata:"object"===(0,h.default)(we.message.metadata)&&(ht.message.metadata=JSON.stringify(we.message.metadata)),"string"==typeof we.message.systemMetadata?ht.message.systemMetadata=we.message.systemMetadata:"object"===(0,h.default)(we.message.systemMetadata)&&(ht.message.systemMetadata=JSON.stringify(we.message.systemMetadata)),Array.isArray(we.message.forwardedMessageIds)))for(ht.message.forwardedMessageIds=we.message.forwardedMessageIds,ht.message.forwardedUniqueIds=[],yt=0;yt<we.message.forwardedMessageIds.length;yt++)ht.message.forwardedUniqueIds.push(y.default.generateUUID())}return K.messenger.sendMessage({chatMessageVOType:O.chatMessageVOTypes.CREATE_THREAD,typeCode:we.typeCode,content:ht},{onResult:function(fn){var un={typeCode:fn.typeCode,ownerId:fn.ownerId,hasError:fn.hasError,cache:!1,errorMessage:fn.errorMessage,errorCode:fn.errorCode};un.hasError||(un.result={thread:K.threadMethods.createThread(fn.result)}),De&&De(un)}})},Kt.createSelfThread=function(we,De){var ht={type:O.createThreadTypes.SELF};if(we){if("string"==typeof we.description&&(ht.description=we.description),"string"==typeof we.metadata)ht.metadata=we.metadata;else if("object"===(0,h.default)(we.metadata))try{ht.metadata=JSON.stringify(we.metadata)}catch(gr){K.sdkParams.consoleLogging&&console.log(gr)}if("object"==(0,h.default)(we.message)&&(ht.message={},"string"==typeof we.message.text&&(ht.message.text=we.message.text),"string"==typeof we.message.uniqueId&&(ht.message.uniqueId=we.message.uniqueId),we.message.type>0&&(ht.message.messageType=we.message.type),we.message.repliedTo>0&&(ht.message.repliedTo=we.message.repliedTo),"string"==typeof we.message.metadata?ht.message.metadata=we.message.metadata:"object"===(0,h.default)(we.message.metadata)&&(ht.message.metadata=JSON.stringify(we.message.metadata)),"string"==typeof we.message.systemMetadata?ht.message.systemMetadata=we.message.systemMetadata:"object"===(0,h.default)(we.message.systemMetadata)&&(ht.message.systemMetadata=JSON.stringify(we.message.systemMetadata)),Array.isArray(we.message.forwardedMessageIds))){ht.message.forwardedMessageIds=we.message.forwardedMessageIds,ht.message.forwardedUniqueIds=[];for(var Vt=0;Vt<we.message.forwardedMessageIds.length;Vt++)ht.message.forwardedUniqueIds.push(y.default.generateUUID())}}return K.messenger.sendMessage({chatMessageVOType:O.chatMessageVOTypes.CREATE_THREAD,typeCode:we.typeCode,content:ht},{onResult:function(ur){var Zr={typeCode:ur.typeCode,ownerId:ur.ownerId,hasError:ur.hasError,cache:!1,errorMessage:ur.errorMessage,errorCode:ur.errorCode};Zr.hasError||(Zr.result={thread:K.threadMethods.createThread(ur.result)}),De&&De(Zr)}})},Kt.replyTextMessagePrivately=function(we,De){var Vt;Vt=typeof we.uniqueId<"u"?we.uniqueId:y.default.generateUUID();var yt={text:filterXSS(we.textMessage)};return typeof we.invitees<"u"&&we.invitees&&(yt.invitees=we.invitees),typeof we.targetThreadId<"u"&&we.targetThreadId&&(yt.targetThreadId=we.targetThreadId),K.messageQueues.putInChatSendQueue({message:{chatMessageVOType:O.chatMessageVOTypes.REPLY_PRIVATELY,typeCode:we.typeCode,messageType:1,subjectId:we.threadId,repliedTo:we.repliedTo,content:yt,uniqueId:Vt,systemMetadata:JSON.stringify(we.systemMetadata),metadata:JSON.stringify(we.metadata)},callbacks:De},function(){Ne()},!0),{uniqueId:Vt,threadId:we.threadId,participant:K.store.user.get(),content:yt}},Kt.sendTextMessage=function(we,De){var Vt;return Vt=typeof we.uniqueId<"u"?we.uniqueId:y.default.generateUUID(),K.messageQueues.putInChatSendQueue({message:{chatMessageVOType:O.chatMessageVOTypes.MESSAGE,typeCode:we.typeCode,messageType:we.messageType&&typeof we.messageType.toUpperCase()<"u"&&O.chatMessageTypes[we.messageType.toUpperCase()]>0?O.chatMessageTypes[we.messageType.toUpperCase()]:O.chatMessageTypes.TEXT,subjectId:we.threadId,repliedTo:we.repliedTo,content:filterXSS(we.textMessage),uniqueId:Vt,systemMetadata:JSON.stringify(we.systemMetadata),metadata:JSON.stringify({}),pushMsgType:3},callbacks:De},function(){Ne()}),{uniqueId:Vt,threadId:we.threadId,participant:K.store.user.get(),content:we.content}},Kt.sendBotMessage=function(we,De){return K.messenger.sendMessage({chatMessageVOType:O.chatMessageVOTypes.BOT_MESSAGE,typeCode:we.typeCode,subjectId:we.messageId,content:we.content,uniqueId:we.uniqueId,metadata:{},pushMsgType:3},De)},Kt.sendFileMessage=Sr,Kt.createThreadWithFileMessage=function(we,De,ht){var Vt={};if(we){if("string"==typeof we.title&&(Vt.title=we.title),"string"==typeof we.type&&(Vt.type=O.createThreadTypes[we.type]),Array.isArray(we.invitees)){Vt.invitees=[];for(var gr=0;gr<we.invitees.length;gr++){var ur=(0,q.formatDataToMakeInvitee)(we.invitees[gr]);ur&&Vt.invitees.push(ur)}}if("string"==typeof we.description&&(Vt.description=we.description),"string"==typeof we.content&&(Vt.content=we.content),"string"==typeof we.metadata)Vt.metadata=we.metadata;else if("object"===(0,h.default)(we.metadata))try{Vt.metadata=JSON.stringify(we.metadata)}catch(fn){K.sdkParams.consoleLogging&&console.log(fn)}}return K.messenger.sendMessage({chatMessageVOType:O.chatMessageVOTypes.CREATE_THREAD,typeCode:we.typeCode,content:Vt},{onResult:function(un){var Et={typeCode:un.typeCode,ownerId:un.ownerId,hasError:un.hasError,cache:!1,errorMessage:un.errorMessage,errorCode:un.errorCode};Et.hasError||(Et.result={thread:K.threadMethods.createThread(un.result)}),De&&De(Et),Sr({threadId:Et.result.thread.id,file:we.file,content:we.caption,messageType:we.messageType,userGroupHash:Et.result.thread.userGroupHash},ht)}})},Kt.sendLocationMessage=function(we,De){var ht={},Vt=K.sdkParams.SERVICE_ADDRESSES.MAP_ADDRESS+K.sdkParams.SERVICES_PATH.STATIC_IMAGE,yt=!1,gr=y.default.generateUUID();we&&(ht.type="string"==typeof we.mapType?we.mapType:"standard-night",ht.zoom=parseInt(we.mapZoom)>0?we.mapZoom:15,ht.width=parseInt(we.mapWidth)>0?we.mapWidth:800,ht.height=parseInt(we.mapHeight)>0?we.mapHeight:600,"object"===(0,h.default)(we.mapCenter)&&parseFloat(we.mapCenter.lat)>0&&parseFloat(we.mapCenter.lng)?ht.center=we.mapCenter.lat+","+parseFloat(we.mapCenter.lng):(yt=!0,K.chatEvents.fireEvent("error",{code:6700,message:O.CHAT_ERRORS[6700],error:void 0})),ht.key=K.sdkParams.mapApiKey,ht.marker="red");var ur=Object.keys(ht);if(ur.length>0){Vt+="?";for(var Zr=0;Zr<ur.length;Zr++){var fn=ur[Zr];Vt+=fn+"="+ht[fn],Zr<ur.length-1&&(Vt+="&")}}return yt||zr({lng:parseFloat(we.mapCenter.lng),lat:parseFloat(we.mapCenter.lat)},function(un){!function(De,ht,Vt){K.sdkParams.getImageFromLinkObjects[ht]=new Image,K.sdkParams.getImageFromLinkObjects[ht].setAttribute("crossOrigin","anonymous"),K.sdkParams.getImageFromLinkObjects[ht].onload=function(){var yt=document.createElement("canvas");yt.width=this.width,yt.height=this.height,yt.getContext("2d").drawImage(this,0,0);var Zr,ur=yt.toDataURL("image/jpg");Zr=ur.split(",")[0].indexOf("base64")>=0?atob(ur.split(",")[1]):unescape(ur.split(",")[1]);for(var fn=ur.split(",")[0].split(":")[1].split(";")[0],un=new Uint8Array(Zr.length),Et=0;Et<Zr.length;Et++)un[Et]=Zr.charCodeAt(Et);return delete K.sdkParams.getImageFromLinkObjects[ht],Vt(new Blob([un],{type:fn}))},K.sdkParams.getImageFromLinkObjects[ht].src=De}(Vt,gr,function(Et){Sr({typeCode:we.typeCode,threadId:we.threadId,fileUniqueId:gr,file:new File([Et],"location.png",{type:"image/png",lastModified:new Date}),content:un.result.formatted_address,messageType:"POD_SPACE_PICTURE",userGroupHash:we.userGroupHash,metadata:{mapLink:"https://maps.neshan.org/@".concat(ht.center,",").concat(ht.zoom,"z"),address:un}},De)})}),{uniqueId:gr,threadId:we.threadId,participant:K.store.user.get(),cancel:function(){typeof K.sdkParams.getImageFromLinkObjects<"u"&&K.sdkParams.getImageFromLinkObjects.hasOwnProperty(gr)&&(K.sdkParams.getImageFromLinkObjects[gr].onload=function(){},delete K.sdkParams.getImageFromLinkObjects[gr],K.sdkParams.consoleLogging&&console.log('"'.concat(gr,'" - Downloading Location Map has been canceled!'))),K.httpRequest.cancelFileUpload({uniqueId:gr},function(){K.sdkParams.consoleLogging&&console.log('"'.concat(gr,'" - Sending Location Message has been canceled!'))})}}},Kt.resendMessage=function(we,De){for(var ht=0;ht<ne.length;ht++)ne[ht].uniqueId===we&&K.messageQueues.putInChatSendQueue({message:ne[ht],callbacks:De},function(){Ne()},!0)},Kt.cancelMessage=function(De,ht){K.messageQueues.deleteFromChatSentQueue({message:{uniqueId:De}},function(){K.messageQueues.deleteFromChatWaitQueue({uniqueId:De},ht)})},Kt.clearHistory=function(we,De){var ht={chatMessageVOType:O.chatMessageVOTypes.CLEAR_HISTORY,typeCode:we.typeCode};return we&&parseInt(we.threadId)>0&&(ht.subjectId=we.threadId),K.messenger.sendMessage(ht,{onResult:function(yt){var gr={typeCode:yt.typeCode,ownerId:yt.ownerId,hasError:yt.hasError,cache:!1,errorMessage:yt.errorMessage,errorCode:yt.errorCode};gr.hasError||(gr.result={thread:yt.result}),De&&De(gr)}})},Kt.getImage=function(De,ht){var Vt={};De&&(parseInt(De.imageId)>0&&(Vt.imageId=De.imageId),"string"==typeof De.hashCode&&(Vt.hashCode=De.hashCode),parseInt(De.width)>0&&(Vt.width=De.width),parseInt(De.height)>0&&(Vt.height=De.height),parseInt(De.actual)>0&&(Vt.actual=De.actual),parseInt(De.downloadable)>0&&(Vt.downloadable=De.downloadable)),K.httpRequest.httpRequest({url:K.sdkParams.SERVICE_ADDRESSES.FILESERVER_ADDRESS+K.sdkParams.SERVICES_PATH.GET_IMAGE,method:"GET",data:Vt},function(yt){if(yt.hasError)ht({hasError:!0});else{var gr="?";for(var ur in De)gr+=ur+"="+De[ur]+"&";gr=gr.slice(0,-1),ht({hasError:yt.hasError,result:K.sdkParams.SERVICE_ADDRESSES.FILESERVER_ADDRESS+K.sdkParams.SERVICES_PATH.GET_IMAGE+gr})}})},Kt.getFile=function(De,ht){var Vt={};De&&(typeof De.fileId<"u"&&(Vt.fileId=De.fileId),"string"==typeof De.hashCode&&(Vt.hashCode=De.hashCode),"boolean"==typeof De.downloadable&&(Vt.downloadable=De.downloadable)),K.httpRequest.httpRequest({url:K.sdkParams.SERVICE_ADDRESSES.FILESERVER_ADDRESS+K.sdkParams.SERVICES_PATH.GET_FILE,method:"GET",data:Vt},function(yt){if(yt.hasError)ht({hasError:!0});else{var gr="?";for(var ur in De)gr+=ur+"="+De[ur]+"&";gr=gr.slice(0,-1),ht({hasError:yt.hasError,result:K.sdkParams.SERVICE_ADDRESSES.FILESERVER_ADDRESS+K.sdkParams.SERVICES_PATH.GET_FILE+gr})}})},Kt.getFileFromPodspace=function we(De,ht){var Vt=y.default.generateUUID(),yt={};if(De){if(!De.hashCode||"string"!=typeof De.hashCode)return void ht({hasError:!0,error:"Enter a file hash to get"});yt.hash=De.hashCode,De.checkUserGroupAccess&&(yt.checkUserGroupAccess=!0),De.addToGroupRetryCount||(De.addToGroupRetryCount=0)}if("link"!==De.responseType)return K.httpRequest.httpRequest({url:K.sdkParams.SERVICE_ADDRESSES.PODSPACE_FILESERVER_ADDRESS+K.sdkParams.SERVICES_PATH.PODSPACE_DOWNLOAD_FILE_NEW.replace("{fileHash}",De.hashCode)+"?checkUserGroupAccess=true",method:"GET",responseType:"blob",uniqueId:Vt,headers:{Authorization:"Bearer "+K.sdkParams.token},enableDownloadProgressEvents:De.enableDownloadProgressEvents,hashCode:De.hashCode},function(ur){ur.hasError?403==ur.errorCode&&De.addToGroupRetryCount<2?De.threadId?fr({threadId:De.threadId},function(Zr){Zr.hasError?K.errorHandler.raiseError({code:Zr.errorCode,message:Zr.errorMessage},ht,!0,{}):(De.addToGroupRetryCount++,we(De,ht))}):K.errorHandler.raiseError(V.errorList.USER_NOT_MEMBER_OF_USERGROUP,ht,!0,{}):K.errorHandler.raiseError({code:ur.errorCode,message:ur.errorMessage},ht,!0,{}):ht({hasError:ur.hasError,result:ur.result.response,type:"blob"})}),{uniqueId:Vt,cancel:function(){K.httpRequest.cancelFileDownload({uniqueId:Vt},function(){K.sdkParams.consoleLogging&&console.log('"'.concat(Vt,'" - File download has been canceled!'))})}};var gr=K.sdkParams.SERVICE_ADDRESSES.PODSPACE_FILESERVER_ADDRESS+K.sdkParams.SERVICES_PATH.PODSPACE_DOWNLOAD_FILE_NEW.replace("{fileHash}",De.hashCode)+"?checkUserGroupAccess=true";ht({hasError:!1,type:"link",result:gr})},Kt.getImageFromPodspace=function(we,De){return K.podspaceMethods.getImageFromPodspaceNew(we,De)},Kt.uploadFile=function(De,ht){(0,C.printIsDeprecate)(C.deprecatedString.uploadFile.methodName)},Kt.uploadImage=function(De,ht){(0,C.printIsDeprecate)(C.deprecatedString.uploadImage.methodName)},Kt.uploadFileToPodspace=function(De,ht){var Vt,gr,ur,Zr,fn;Vt=De.file.name,gr=De.file.size,ur=De.file.name.split(".").pop();var un={};return De&&(typeof De.file<"u"&&(un.file=De.file),un.fileName=De.randomFileName?y.default.generateUUID()+"."+ur:Vt,un.fileSize=gr,parseInt(De.threadId)>0?(fn=De.threadId,un.threadId=De.threadId):(fn=0,un.threadId=0),"string"==typeof De.uniqueId?(Zr=De.uniqueId,un.uniqueId=De.uniqueId):(Zr=y.default.generateUUID(),un.uniqueId=Zr),un.originalFileName="string"==typeof De.originalFileName?De.originalFileName:Vt),K.httpRequest.httpRequest({url:K.sdkParams.SERVICE_ADDRESSES.PODSPACE_FILESERVER_ADDRESS+K.sdkParams.SERVICES_PATH.PODSPACE_UPLOAD_FILE_NEW,method:"POST",headers:{Authorization:"Bearer "+K.sdkParams.token},data:un,uniqueId:Zr},function(Et){if(Et.hasError)ht({hasError:!0,errorCode:Et.errorCode,errorMessage:Et.errorMessage});else try{var Ae="string"==typeof Et.result.responseText?JSON.parse(Et.result.responseText):Et.result.responseText;ht({hasError:Ae.hasError,result:Ae.result})}catch{ht({hasError:!0,errorCode:999,errorMessage:"[SDK] Problem in Parsing result"})}}),{uniqueId:Zr,threadId:fn,participant:K.store.user.get(),content:{caption:De.content,file:{uniqueId:Zr,fileName:Vt,fileSize:gr,fileObject:De.file}}}},Kt.uploadImageToPodspace=function(De,ht){var Vt,yt,gr,ur,Zr,fn;if(Vt=De.image.name,yt=De.image.type,gr=De.image.size,ur=De.image.name.split(".").pop(),O.imageMimeTypes.indexOf(yt)>=0||O.imageExtentions.indexOf(ur)>=0){var un={};return De&&(typeof De.image<"u"&&(un.image=De.image,un.file=De.image),un.fileName=De.randomFileName?y.default.generateUUID()+"."+ur:Vt,un.fileSize=gr,parseInt(De.threadId)>0?(fn=De.threadId,un.threadId=De.threadId):(fn=0,un.threadId=0),"string"==typeof De.uniqueId?(Zr=De.uniqueId,un.uniqueId=De.uniqueId):(Zr=y.default.generateUUID(),un.uniqueId=Zr),un.originalFileName="string"==typeof De.originalFileName?De.originalFileName:Vt,parseInt(De.xC)>0&&(un.xC=De.xC),parseInt(De.yC)>0&&(un.yC=De.yC),parseInt(De.hC)>0&&(un.hC=De.hC),parseInt(De.wC)>0&&(un.wC=De.wC)),K.httpRequest.httpRequest({url:K.sdkParams.SERVICE_ADDRESSES.PODSPACE_FILESERVER_ADDRESS+K.sdkParams.SERVICES_PATH.PODSPACE_UPLOAD_IMAGE_NEW,method:"POST",headers:{Authorization:"Bearer "+K.sdkParams.token},data:un,uniqueId:Zr},function(Et){if(Et.hasError)ht({hasError:!0,errorCode:Et.errorCode,errorMessage:Et.errorMessage});else try{var Ae="string"==typeof Et.result.responseText?JSON.parse(Et.result.responseText):Et.result.responseText;ht(Ae.hasError?{hasError:!0,errorCode:Ae.errorCode,errorMessage:Ae.message}:{hasError:Ae.hasError,result:Ae.result})}catch{ht({hasError:!0,errorCode:6300,errorMessage:O.CHAT_ERRORS[6300]})}}),{uniqueId:Zr,threadId:fn,participant:K.store.user.get(),content:{caption:De.content,file:{uniqueId:Zr,fileName:Vt,fileSize:gr,fileObject:De.file}}}}ht({hasError:!0,errorCode:6301,errorMessage:O.CHAT_ERRORS[6301]})},Kt.cancelFileUpload=function(we,De){K.httpRequest.cancelFileUpload(we,De)},Kt.cancelFileDownload=function(we,De){K.httpRequest.cancelFileDownload(we,De)},Kt.editMessage=function(we,De){return K.messenger.sendMessage({chatMessageVOType:O.chatMessageVOTypes.EDIT_MESSAGE,typeCode:we.typeCode,messageType:we.messageType,subjectId:we.messageId,repliedTo:we.repliedTo,content:filterXSS(we.content),uniqueId:we.uniqueId,metadata:we.metadata,systemMetadata:we.systemMetadata,pushMsgType:3},{onResult:function(Vt){var yt={typeCode:Vt.typeCode,ownerId:Vt.ownerId,hasError:Vt.hasError,cache:!1,errorMessage:Vt.errorMessage,errorCode:Vt.errorCode};if(!yt.hasError){var ur={editedMessage:(0,q.formatDataToMakeMessage)(void 0,Vt.result)};yt.result=ur}De&&De(yt)}})},Kt.deleteMessage=function(we,De){return K.messenger.sendMessage({chatMessageVOType:O.chatMessageVOTypes.DELETE_MESSAGE,typeCode:we.typeCode,subjectId:we.messageId,uniqueId:we.uniqueId,content:JSON.stringify({deleteForAll:"boolean"==typeof we.deleteForAll&&we.deleteForAll}),pushMsgType:3},{onResult:function(Vt){var yt={typeCode:Vt.typeCode,ownerId:Vt.ownerId,hasError:Vt.hasError,cache:!1,errorMessage:Vt.errorMessage,errorCode:Vt.errorCode};yt.hasError||(yt.result={deletedMessage:{id:Vt.result.id,pinned:Vt.result.pinned,mentioned:Vt.result.mentioned,messageType:Vt.result.messageType,edited:Vt.result.edited,editable:Vt.result.editable,deletable:Vt.result.deletable}}),De&&De(yt)}})},Kt.deleteMultipleMessages=function(we,De){var ht=we.messageIds,Vt=[];for(var yt in ht){var gr=y.default.generateUUID();Vt.push(gr),K.store.messagesCallbacks[gr]=function(ur){var Zr={hasError:ur.hasError,cache:!1,errorMessage:ur.errorMessage,errorCode:ur.errorCode};Zr.hasError||(Zr.result={deletedMessage:{id:ur.result.id,pinned:ur.result.pinned,mentioned:ur.result.mentioned,messageType:ur.result.messageType,edited:ur.result.edited,editable:ur.result.editable,deletable:ur.result.deletable}}),De&&De(Zr)}}return K.messenger.sendMessage({chatMessageVOType:O.chatMessageVOTypes.DELETE_MESSAGE,typeCode:we.typeCode,content:{uniqueIds:Vt,ids:ht,deleteForAll:"boolean"==typeof we.deleteForAll&&we.deleteForAll},pushMsgType:3})},Kt.replyTextMessage=function(we,De){var ht;return ht=typeof we.uniqueId<"u"?we.uniqueId:y.default.generateUUID(),K.messageQueues.putInChatSendQueue({message:{chatMessageVOType:O.chatMessageVOTypes.MESSAGE,typeCode:we.typeCode,messageType:1,subjectId:we.threadId,repliedTo:we.repliedTo,content:filterXSS(we.textMessage),uniqueId:ht,systemMetadata:JSON.stringify(we.systemMetadata),metadata:JSON.stringify(we.metadata),pushMsgType:3},callbacks:De},function(){Ne()}),{uniqueId:ht,threadId:we.threadId,participant:K.store.user.get(),content:we.content}},Kt.replyFileMessage=function(we,De){var ht={file:{}},Vt={},yt=y.default.generateUUID();if(we.userGroupHash&&0!==we.userGroupHash.length&&"string"==typeof we.userGroupHash)return Vt.userGroupHash=we.userGroupHash,Ur({threadId:we.threadId,file:we.file,fileUniqueId:yt},function(gr,ur,Zr,fn){Vt=Object.assign(Vt,gr),K.messageQueues.putInChatUploadQueue({message:{chatMessageVOType:O.chatMessageVOTypes.MESSAGE,typeCode:we.typeCode,messageType:we.messageType&&typeof we.messageType.toUpperCase()<"u"&&O.chatMessageTypes[we.messageType.toUpperCase()]>0?O.chatMessageTypes[we.messageType.toUpperCase()]:1,subjectId:we.threadId,repliedTo:we.repliedTo,content:filterXSS(we.content),metadata:JSON.stringify(ur),systemMetadata:JSON.stringify(we.systemMetadata),uniqueId:yt,pushMsgType:3},callbacks:De},function(){O.imageMimeTypes.indexOf(Zr)>=0||O.imageExtentions.indexOf(fn)>=0?Vr(Vt,function(un){un.hasError?K.messageQueues.deleteFromChatUploadQueue({message:{uniqueId:yt}}):(ht.name=un.result.name,ht.fileHash=un.result.hash,ht.file.name=un.result.name,ht.file.fileHash=un.result.hash,ht.file.hashCode=un.result.hash,ht.file.actualHeight=un.result.actualHeight,ht.file.actualWidth=un.result.actualWidth,ht.file.parentHash=un.result.parentHash,ht.file.size=un.result.size,ht.file.link="".concat(K.sdkParams.SERVICE_ADDRESSES.PODSPACE_FILESERVER_ADDRESS,"/api/images/").concat(un.result.hash,"?checkUserGroupAccess=true"),K.messageQueues.transferFromUploadQToSendQ(parseInt(we.threadId),yt,JSON.stringify(ht),function(){Ne()}))}):ke(Vt,function(un){un.hasError?K.messageQueues.deleteFromChatUploadQueue({message:{uniqueId:yt}}):(ht.fileHash=un.result.hash,ht.name=un.result.name,ht.file.name=un.result.name,ht.file.fileHash=un.result.hash,ht.file.hashCode=un.result.hash,ht.file.parentHash=un.result.parentHash,ht.file.size=un.result.size,K.messageQueues.transferFromUploadQToSendQ(parseInt(we.threadId),yt,JSON.stringify(ht),function(){Ne()}))})})});K.chatEvents.fireEvent("error",{code:6304,message:O.CHAT_ERRORS[6304]})},Kt.replyFileMessagePrivately=function(we,De){var ht={file:{}},Vt={},yt=y.default.generateUUID();if(we.userGroupHash&&0!==we.userGroupHash.length&&"string"==typeof we.userGroupHash)return Vt.userGroupHash=we.userGroupHash,Ur({threadId:we.threadId,file:we.file,fileUniqueId:yt},function(gr,ur,Zr,fn){Vt=Object.assign(Vt,gr);var un={text:filterXSS(we.textMessage)};typeof we.invitees<"u"&&we.invitees&&(un.invitees=we.invitees),typeof we.targetThreadId<"u"&&we.targetThreadId&&(un.targetThreadId=we.targetThreadId),K.messageQueues.putInChatUploadQueue({message:{chatMessageVOType:O.chatMessageVOTypes.REPLY_PRIVATELY,typeCode:we.typeCode,messageType:we.messageType&&typeof we.messageType.toUpperCase()<"u"&&O.chatMessageTypes[we.messageType.toUpperCase()]>0?O.chatMessageTypes[we.messageType.toUpperCase()]:1,subjectId:we.threadId,repliedTo:we.repliedTo,content:un,metadata:JSON.stringify(ur),systemMetadata:JSON.stringify(we.systemMetadata),uniqueId:yt,pushMsgType:3},callbacks:De},function(){O.imageMimeTypes.indexOf(Zr)>=0||O.imageExtentions.indexOf(fn)>=0?Vr(Vt,function(Et){Et.hasError?K.messageQueues.deleteFromChatUploadQueue({message:{uniqueId:yt}}):(ht.name=Et.result.name,ht.fileHash=Et.result.hash,ht.file.name=Et.result.name,ht.file.fileHash=Et.result.hash,ht.file.hashCode=Et.result.hash,ht.file.actualHeight=Et.result.actualHeight,ht.file.actualWidth=Et.result.actualWidth,ht.file.parentHash=Et.result.parentHash,ht.file.size=Et.result.size,ht.file.link="".concat(K.sdkParams.SERVICE_ADDRESSES.PODSPACE_FILESERVER_ADDRESS,"/api/images/").concat(Et.result.hash,"?checkUserGroupAccess=true"),K.messageQueues.transferFromUploadQToSendQ(parseInt(we.threadId),yt,JSON.stringify(ht),function(){Ne()}))}):ke(Vt,function(Et){Et.hasError?K.messageQueues.deleteFromChatUploadQueue({message:{uniqueId:yt}}):(ht.fileHash=Et.result.hash,ht.name=Et.result.name,ht.file.name=Et.result.name,ht.file.fileHash=Et.result.hash,ht.file.hashCode=Et.result.hash,ht.file.parentHash=Et.result.parentHash,ht.file.size=Et.result.size,K.messageQueues.transferFromUploadQToSendQ(parseInt(we.threadId),yt,JSON.stringify(ht),function(){Ne()}))})})});K.chatEvents.fireEvent("error",{code:6304,message:O.CHAT_ERRORS[6304]})},Kt.forwardMessage=function(we,De){var ht=we.threadId,Vt=we.messageIds,yt=[];for(var gr in Vt){K.store.threadCallbacks[ht]||(K.store.threadCallbacks[ht]={});var ur=y.default.generateUUID();yt.push(ur),K.store.threadCallbacks[ht][ur]={},K.store.sendMessageCallbacks[ur]={},De.onSent&&(K.store.sendMessageCallbacks[ur].onSent=De.onSent,K.store.threadCallbacks[ht][ur].onSent=!1,K.store.threadCallbacks[ht][ur].uniqueId=ur),De.onSeen&&(K.store.sendMessageCallbacks[ur].onSeen=De.onSeen,K.store.threadCallbacks[ht][ur].onSeen=!1)}K.messageQueues.putInChatSendQueue({message:{chatMessageVOType:O.chatMessageVOTypes.FORWARD_MESSAGE,typeCode:we.typeCode,subjectId:we.threadId,repliedTo:we.repliedTo,content:Vt,uniqueId:yt,metadata:JSON.stringify(we.metadata),pushMsgType:3},callbacks:De},function(){Ne()},!0)},Kt.deliver=function(De){(0,C.printIsDeprecate)(C.deprecatedString.deliver.methodName)},Kt.seen=function(we){return K.messageQueues.putInMessagesSeenQueue(we.threadId,we.messageId,we.typeCode)},Kt.startTyping=function(we){var De=y.default.generateUUID();if(parseInt(we.threadId)>0)var ht=we.threadId;K.sdkParams.isTypingInterval&&clearInterval(K.sdkParams.isTypingInterval),K.sdkParams.isTypingInterval=setInterval(function(){!function(De){K.messenger.sendMessage({chatMessageVOType:O.chatMessageVOTypes.SYSTEM_MESSAGE,subjectId:De.threadId,content:De.content,uniqueId:De.uniqueId,pushMsgType:3})}({content:JSON.stringify({type:O.systemMessageTypes.IS_TYPING}),threadId:ht,uniqueId:De})},K.sdkParams.systemMessageIntervalPitch)},Kt.stopTyping=function(){K.sdkParams.isTypingInterval&&clearInterval(K.sdkParams.isTypingInterval)},Kt.getMessageDeliveredList=function(we,De){(0,C.printIsDeprecate)(C.deprecatedString.getMessageDeliveredList.methodName)},Kt.getMessageSeenList=function(we,De){var ht={chatMessageVOType:O.chatMessageVOTypes.GET_MESSAGE_SEEN_PARTICIPANTS,typeCode:we.typeCode,content:{},pushMsgType:3,token:K.sdkParams.token,timeout:we.timeout};return we&&(parseInt(we.messageId)>0&&(ht.content.messageId=we.messageId),parseInt(we.count)>0&&(ht.content.count=parseInt(we.count)),parseInt(we.offset)>0&&(ht.content.offset=parseInt(we.offset))),K.messenger.sendMessage(ht,{onResult:function(yt){if("object"==(0,h.default)(yt.result))for(var gr=0;gr<yt.result.length;gr++)yt.result[gr]=(0,q.formatDataToMakeUser)(yt.result[gr]);De&&De(yt)}})},Kt.updateThreadInfo=function(De,ht){var Zr,Vt={chatMessageVOType:O.chatMessageVOTypes.UPDATE_THREAD_INFO,typeCode:De.typeCode,content:{},pushMsgType:3,token:K.sdkParams.token},yt={},gr={},ur={file:{}},fn=y.default.generateUUID();if(De){if(!De.userGroupHash||0===De.userGroupHash.length||"string"!=typeof De.userGroupHash)return void K.chatEvents.fireEvent("error",{code:6304,message:O.CHAT_ERRORS[6304]});if(gr.userGroupHash=De.userGroupHash,parseInt(De.threadId)>0?(Zr=parseInt(De.threadId),Vt.subjectId=Zr):K.chatEvents.fireEvent("error",{code:999,message:"[SDK] Thread ID is required for Updating thread info!"}),"string"==typeof De.description&&(yt.description=De.description),"string"==typeof De.title&&(yt.name=De.title),"object"==(0,h.default)(De.metadata))yt.metadata=JSON.parse(JSON.stringify(De.metadata));else if("string"==typeof De.metadata)try{yt.metadata=JSON.parse(De.metadata)}catch{yt.metadata={}}else yt.metadata={};return Vt.content=yt,"object"==(0,h.default)(De.image)&&De.image.size>0?Ur({threadId:Zr,file:De.image,fileUniqueId:fn},function(un,Et,Ae,it){gr=Object.assign(gr,un),yt.metadata=JSON.stringify(Object.assign(yt.metadata,Et)),K.messageQueues.putInChatUploadQueue({message:{chatMessageVOType:O.chatMessageVOTypes.UPDATE_THREAD_INFO,typeCode:De.typeCode,subjectId:Zr,content:yt,metadata:yt.metadata,uniqueId:fn,pushMsgType:3,token:K.sdkParams.token},callbacks:ht},function(){O.imageMimeTypes.indexOf(Ae)>=0||O.imageExtentions.indexOf(it)>=0?Vr(gr,function(Bt){Bt.hasError?K.messageQueues.deleteFromChatUploadQueue({message:{uniqueId:fn}}):(ur.name=Bt.result.name,ur.fileHash=Bt.result.hash,ur.file.name=Bt.result.name,ur.file.fileHash=Bt.result.hash,ur.file.hashCode=Bt.result.hash,ur.file.parentHash=Bt.result.parentHash,ur.file.size=Bt.result.size,ur.file.actualHeight=Bt.result.actualHeight,ur.file.actualWidth=Bt.result.actualWidth,ur.file.link="".concat(K.sdkParams.SERVICE_ADDRESSES.PODSPACE_FILESERVER_ADDRESS,"/api/images/").concat(Bt.result.hash,"?checkUserGroupAccess=true"),K.messageQueues.transferFromUploadQToSendQ(parseInt(De.threadId),fn,JSON.stringify(ur),function(){Ne()}))}):K.chatEvents.fireEvent("error",{code:999,message:"[SDK] Thread picture can be a image type only!"})})}):"string"==typeof De.image&&De.image.length>5?(yt.metadata=JSON.stringify(Object.assign(yt.metadata,{fileHash:De.image})),K.podspaceMethods.getImageDownloadLinkFromPodspaceNew({hashCode:De.image},function(un){un.hasError||(yt.image=un.downloadUrl)}),K.messenger.sendMessage({chatMessageVOType:O.chatMessageVOTypes.UPDATE_THREAD_INFO,typeCode:De.typeCode,subjectId:Zr,content:yt,metadata:yt.metadata,uniqueId:fn,pushMsgType:3,token:K.sdkParams.token},{onResult:function(Et){ht&&ht(Et)}})):(0===Object.keys(yt.metadata).length&&delete yt.metadata,K.messenger.sendMessage({chatMessageVOType:O.chatMessageVOTypes.UPDATE_THREAD_INFO,typeCode:De.typeCode,subjectId:Zr,content:yt,metadata:yt.metadata,uniqueId:fn,pushMsgType:3,token:K.sdkParams.token},{onResult:function(Et){ht&&ht(Et)}}))}},Kt.updateChatProfile=function(De,ht){var Vt={chatMessageVOType:O.chatMessageVOTypes.UPDATE_CHAT_PROFILE,typeCode:De.typeCode,content:{},pushMsgType:3,token:K.sdkParams.token};return De&&("string"==typeof De.bio&&(Vt.content.bio=De.bio),"object"==(0,h.default)(De.metadata)?Vt.content.metadata=JSON.stringify(De.metadata):"string"==typeof De.metadata&&(Vt.content.metadata=De.metadata)),K.messenger.sendMessage(Vt,{onResult:function(gr){ht&&ht(gr)}})},Kt.muteThread=function(we,De){return K.messenger.sendMessage({chatMessageVOType:O.chatMessageVOTypes.MUTE_THREAD,typeCode:we.typeCode,subjectId:we.threadId,content:{},pushMsgType:3,token:K.sdkParams.token},{onResult:function(Vt){De&&De(Vt)}})},Kt.unMuteThread=function(we,De){return K.messenger.sendMessage({chatMessageVOType:O.chatMessageVOTypes.UNMUTE_THREAD,typeCode:we.typeCode,subjectId:we.threadId,content:{},pushMsgType:3,token:K.sdkParams.token},{onResult:function(Vt){De&&De(Vt)}})},Kt.closeThread=function(we,De){return K.messenger.sendMessage({chatMessageVOType:O.chatMessageVOTypes.CLOSE_THREAD,typeCode:we.typeCode,subjectId:we.threadId,content:{},pushMsgType:3,token:K.sdkParams.token},{onResult:function(Vt){De&&De(Vt)}})},Kt.joinPublicThread=function(we,De){var ht={chatMessageVOType:O.chatMessageVOTypes.JOIN_THREAD,typeCode:we.typeCode,content:"",pushMsgType:3,token:K.sdkParams.token};return we&&"string"==typeof we.uniqueName&&we.uniqueName.length>0&&(ht.content=we.uniqueName),K.messenger.sendMessage(ht,{onResult:function(yt){De&&De(yt)}})},Kt.isPublicThreadNameAvailable=function(we,De){var ht={chatMessageVOType:O.chatMessageVOTypes.IS_NAME_AVAILABLE,typeCode:we.typeCode,content:"",pushMsgType:3,token:K.sdkParams.token};return we&&"string"==typeof we.uniqueName&&we.uniqueName.length>0&&(ht.content=we.uniqueName),K.messenger.sendMessage(ht,{onResult:function(yt){De&&De(yt)}})},Kt.changeThreadPrivacy=function(we,De){var ht={chatMessageVOType:O.chatMessageVOTypes.CHANGE_THREAD_PRIVACY,typeCode:we.typeCode,pushMsgType:3,content:{},token:K.sdkParams.token,timeout:we.timeout};if(we)if(parseInt(we.threadId)>0){if(ht.subjectId=+we.threadId,"string"==typeof we.threadType&&O.createThreadTypes.hasOwnProperty(we.threadType.toUpperCase())){if("PUBLIC_GROUP"===we.threadType.toUpperCase()||"PUBLIC_CHANNEL"===we.threadType.toUpperCase()){if(!("string"==typeof we.uniqueName&&we.uniqueName.length>0))return void K.chatEvents.fireEvent("error",{code:999,message:"[SDK] Public Threads need a unique name! One must enter a unique name for this thread."});ht.content.uniqueName=we.uniqueName}return ht.content.type=O.createThreadTypes[we.threadType.toUpperCase()],K.messenger.sendMessage(ht,{onResult:function(yt){De&&De(yt)}})}K.chatEvents.fireEvent("error",{code:999,message:"[SDK] No thread type has been declared! Possible inputs are (".concat(Object.keys(O.createThreadTypes).join(","),")")})}else K.chatEvents.fireEvent("error",{code:999,message:"[SDK] No Thread Id has been sent!"});else K.chatEvents.fireEvent("error",{code:999,message:"[SDK] No params have been sent to Change thread Privacy!"})},Kt.pinThread=function(we,De){return K.messenger.sendMessage({chatMessageVOType:O.chatMessageVOTypes.PIN_THREAD,typeCode:we.typeCode,subjectId:we.threadId,content:{},pushMsgType:3,token:K.sdkParams.token},{onResult:function(Vt){De&&De(Vt)}})},Kt.unPinThread=function(we,De){return K.messenger.sendMessage({chatMessageVOType:O.chatMessageVOTypes.UNPIN_THREAD,typeCode:we.typeCode,subjectId:we.threadId,content:{},pushMsgType:3,token:K.sdkParams.token},{onResult:function(Vt){De&&De(Vt)}})},Kt.deleteThread=function(we,De){var ht={chatMessageVOType:O.chatMessageVOTypes.DELETE_MESSAGE_THREAD,typeCode:we.typeCode};if(we)return+we.threadId>0&&(ht.subjectId=+we.threadId),K.messenger.sendMessage(ht,{onResult:function(yt){var gr={typeCode:yt.typeCode,ownerId:yt.ownerId,hasError:yt.hasError,cache:!1,errorMessage:yt.errorMessage,errorCode:yt.errorCode};gr.hasError||(gr.result=yt.result),De&&De(gr)}});K.chatEvents.fireEvent("error",{code:999,message:"[SDK] No params have been sent to Delete Thread!"})},Kt.pinMessage=function(we,De){return K.messenger.sendMessage({chatMessageVOType:O.chatMessageVOTypes.PIN_MESSAGE,typeCode:we.typeCode,subjectId:we.messageId,content:JSON.stringify({notifyAll:"boolean"==typeof we.notifyAll&&we.notifyAll}),pushMsgType:3,token:K.sdkParams.token},{onResult:function(Vt){De&&De(Vt)}})},Kt.unPinMessage=Rr,Kt.spamPrivateThread=function(we,De){var ht={chatMessageVOType:O.chatMessageVOTypes.SPAM_PV_THREAD,typeCode:we.typeCode,pushMsgType:3,token:K.sdkParams.token,timeout:we.timeout};return we&&parseInt(we.threadId)>0&&(ht.subjectId=we.threadId),K.messenger.sendMessage(ht,{onResult:function(yt){De&&De(yt)}})},Kt.block=function(we,De){var ht={chatMessageVOType:O.chatMessageVOTypes.BLOCK,typeCode:we.typeCode,content:{},pushMsgType:3,token:K.sdkParams.token,timeout:we.timeout};return we&&(parseInt(we.contactId)>0&&(ht.content.contactId=we.contactId),parseInt(we.threadId)>0&&(ht.content.threadId=we.threadId),parseInt(we.userId)>0&&(ht.content.userId=we.userId)),K.messenger.sendMessage(ht,{onResult:function(yt){"object"==(0,h.default)(yt.result)&&(yt.result=(0,q.formatDataToMakeBlockedUser)(yt.result)),De&&De(yt)}})},Kt.unblock=function(we,De){var ht={chatMessageVOType:O.chatMessageVOTypes.UNBLOCK,typeCode:we.typeCode,pushMsgType:3,token:K.sdkParams.token,content:{},timeout:we.timeout};return we&&(parseInt(we.blockId)>0&&(ht.subjectId=we.blockId),parseInt(we.contactId)>0&&(ht.content.contactId=we.contactId),parseInt(we.threadId)>0&&(ht.content.threadId=we.threadId),parseInt(we.userId)>0&&(ht.content.userId=we.userId)),K.messenger.sendMessage(ht,{onResult:function(yt){"object"==(0,h.default)(yt.result)&&(yt.result=(0,q.formatDataToMakeBlockedUser)(yt.result)),De&&De(yt)}})},Kt.getBlockedList=function(we,De){var ht=25,Vt=0,yt={};return we&&(parseInt(we.count)>0&&(ht=we.count),parseInt(we.offset)>0&&(Vt=we.offset)),yt.count=ht,yt.offset=Vt,K.messenger.sendMessage({chatMessageVOType:O.chatMessageVOTypes.GET_BLOCKED,typeCode:we.typeCode,content:yt,pushMsgType:3,token:K.sdkParams.token,timeout:we.timeout},{onResult:function(Zr){var fn={typeCode:Zr.typeCode,ownerId:Zr.ownerId,hasError:Zr.hasError,cache:!1,errorMessage:Zr.errorMessage,errorCode:Zr.errorCode};if(!fn.hasError){for(var it,un=Zr.result,Et=un.length,Ae={blockedUsers:[],contentCount:Zr.contentCount,hasNext:Vt+ht<Zr.contentCount&&Et>0,nextOffset:1*Vt+1*Et},Bt=0;Bt<Et;Bt++)(it=(0,q.formatDataToMakeBlockedUser)(un[Bt]))&&Ae.blockedUsers.push(it);fn.result=Ae}De&&De(fn)}})},Kt.getUserNotSeenDuration=function(we,De){var ht={};return we&&Array.isArray(we.userIds)&&(ht.userIds=we.userIds),K.messenger.sendMessage({chatMessageVOType:O.chatMessageVOTypes.GET_NOT_SEEN_DURATION,typeCode:we.typeCode,content:ht,pushMsgType:3,token:K.sdkParams.token,timeout:we.timeout},{onResult:function(gr){var ur={typeCode:gr.typeCode,ownerId:gr.ownerId,hasError:gr.hasError,cache:!1,errorMessage:gr.errorMessage,errorCode:gr.errorCode};ur.hasError||(ur.result=gr.result),De&&De(ur)}})},Kt.addContacts=function(we,De){var ht={};we&&(ht.firstName="string"==typeof we.firstName?we.firstName:"",ht.lastName="string"==typeof we.lastName?we.lastName:"",ht.typeCode="string"==typeof we.typeCode?we.typeCode:K.typeCodes.getActiveTypeCode().typeCode,ht.ownerId=K.sdkParams.typeCodeOwnerId?K.sdkParams.typeCodeOwnerId:we.ownerId?we.ownerId:void 0,ht.cellphoneNumber="string"==typeof we.cellphoneNumber?we.cellphoneNumber:"",ht.email="string"==typeof we.email?we.email:"","string"==typeof we.username&&(ht.username=we.username),ht.uniqueId=y.default.generateUUID()),K.httpRequest.httpRequest({url:K.sdkParams.SERVICE_ADDRESSES.PLATFORM_ADDRESS+K.sdkParams.SERVICES_PATH.ADD_CONTACTS,method:"POST",data:ht,headers:{_token_:K.sdkParams.token,_token_issuer_:1}},function(yt){if(yt.hasError)K.chatEvents.fireEvent("error",{code:yt.errorCode,message:yt.errorMessage,error:yt});else{var gr=JSON.parse(yt.result.responseText),ur={hasError:gr.hasError,cache:!1,errorMessage:gr.message,errorCode:gr.errorCode};if(!gr.hasError){for(var Et,Zr=gr.result,fn=gr.result.length,un={contacts:[],contentCount:fn},Ae=0;Ae<fn;Ae++)(Et=(0,q.formatDataToMakeContact)(Zr[Ae]))&&un.contacts.push(Et);K.store.contacts.addOrUpdate(Et),ur.result=un}De&&De(ur)}})},Kt.newAddContacts=function(we,De){var ht={chatMessageVOType:O.chatMessageVOTypes.ADD_CONTACTS,content:{},pushMsgType:3,token:K.sdkParams.token,typeCode:we.typeCode},Vt={},yt=[],gr=[],ur=[],Zr=[],fn=[],un=[];return we&&(yt.push("string"==typeof we.firstName?we.firstName:""),gr.push("string"==typeof we.lastName?we.lastName:""),ur.push("string"==typeof we.cellphoneNumber?we.cellphoneNumber:""),Zr.push("string"==typeof we.email?we.email:""),"string"==typeof we.username&&fn.push(we.username),un.push(y.default.generateUUID()),Vt={uniqueIdList:un,emailList:Zr,userNameList:fn,firstNameList:yt,lastNameList:gr,cellphoneNumberList:ur}),ht.content=Vt,K.messenger.sendMessage(ht,{onResult:function(Ae){var it={typeCode:Ae.typeCode,ownerId:Ae.ownerId,hasError:Ae.hasError,cache:!1,errorMessage:Ae.message,errorCode:Ae.errorCode};if("object"==(0,h.default)(Ae.result)){for(var Bt,pr,Or,Sn,Wr=null==Ae||null===(Bt=Ae.result)||void 0===Bt?void 0:Bt.result,sn=null==Ae||null===(pr=Ae.result)||void 0===pr||null===(Or=pr.result)||void 0===Or?void 0:Or.length,En={contacts:[],contentCount:sn},yn=0;yn<sn;yn++)(Sn=(0,q.formatDataToMakeContact)(Wr[yn]))&&En.contacts.push(Sn);it.result=En,De&&De(it)}}})},Kt.updateContacts=function(we,De){var ht={};we&&(parseInt(we.id)>0?ht.id=parseInt(we.id):K.chatEvents.fireEvent("error",{code:999,message:"[SDK] ID is required for Updating Contact!",error:void 0}),"string"==typeof we.firstName?ht.firstName=we.firstName:K.chatEvents.fireEvent("error",{code:999,message:"[SDK] firstName is required for Updating Contact!"}),"string"==typeof we.lastName?ht.lastName=we.lastName:K.chatEvents.fireEvent("error",{code:999,message:"[SDK] lastName is required for Updating Contact!"}),"string"==typeof we.cellphoneNumber?ht.cellphoneNumber=we.cellphoneNumber:K.chatEvents.fireEvent("error",{code:999,message:"[SDK] cellphoneNumber is required for Updating Contact!"}),"string"==typeof we.email?ht.email=we.email:K.chatEvents.fireEvent("error",{code:999,message:"[SDK] email is required for Updating Contact!"}),ht.uniqueId=y.default.generateUUID()),K.httpRequest.httpRequest({url:K.sdkParams.SERVICE_ADDRESSES.PLATFORM_ADDRESS+K.sdkParams.SERVICES_PATH.UPDATE_CONTACTS,method:"GET",data:ht,headers:{_token_:K.sdkParams.token,_token_issuer_:1}},function(yt){if(yt.hasError)K.chatEvents.fireEvent("error",{code:yt.errorCode,message:yt.errorMessage,error:yt});else{var gr=JSON.parse(yt.result.responseText),ur={hasError:gr.hasError,cache:!1,errorMessage:gr.message,errorCode:gr.errorCode};if(!gr.hasError){for(var Et,Zr=gr.result,fn=gr.result.length,un={contacts:[],contentCount:fn},Ae=0;Ae<fn;Ae++)(Et=(0,q.formatDataToMakeContact)(Zr[Ae]))&&un.contacts.push(Et);ur.result=un}K.store.contacts.addOrUpdate(Et),De&&De(ur)}})},Kt.removeContacts=function(we,De){var ht={};we&&(parseInt(we.id)>0?ht.id=parseInt(we.id):K.chatEvents.fireEvent("error",{code:999,message:"[SDK] ID is required for Deleting Contact!",error:void 0})),ht.ownerId=K.sdkParams.typeCodeOwnerId?K.sdkParams.typeCodeOwnerId:we.ownerId?we.ownerId:void 0,K.httpRequest.httpRequest({url:K.sdkParams.SERVICE_ADDRESSES.PLATFORM_ADDRESS+K.sdkParams.SERVICES_PATH.REMOVE_CONTACTS,method:"POST",data:ht,headers:{_token_:K.sdkParams.token,_token_issuer_:1}},function(yt){if(yt.hasError)K.chatEvents.fireEvent("error",{code:yt.errorCode,message:yt.errorMessage,error:yt});else{var gr=JSON.parse(yt.result.responseText),ur={hasError:gr.hasError,cache:!1,errorMessage:gr.message,errorCode:gr.errorCode};gr.hasError||(ur.result=gr.result),K.store.contacts.remove(ht.id),De&&De(ur)}})},Kt.searchContacts=function(we,De){var ht={size:50,offset:0};we&&("string"==typeof we.firstName&&(ht.firstName=we.firstName),"string"==typeof we.lastName&&(ht.lastName=we.lastName),parseInt(we.cellphoneNumber)>0&&(ht.cellphoneNumber=we.cellphoneNumber),"string"==typeof we.email&&(ht.email=we.email),"string"==typeof we.query&&(ht.q=we.query),"string"==typeof we.uniqueId&&(ht.uniqueId=we.uniqueId),parseInt(we.id)>0&&(ht.id=we.id),ht.typeCode=we.typeCode?we.typeCode:K.typeCodes.getActiveTypeCode().typeCode,parseInt(we.size)>0&&(ht.size=we.size),parseInt(we.offset)>0&&(ht.offset=we.offset)),K.httpRequest.httpRequest({url:K.sdkParams.SERVICE_ADDRESSES.PLATFORM_ADDRESS+K.sdkParams.SERVICES_PATH.SEARCH_CONTACTS,method:"POST",data:ht,headers:{_token_:K.sdkParams.token,_token_issuer_:1}},function(ur){if(ur.hasError)K.chatEvents.fireEvent("error",{code:ur.errorCode,message:ur.errorMessage,error:ur});else{var Zr=JSON.parse(ur.result.responseText),fn={hasError:Zr.hasError,cache:!1,errorMessage:Zr.message,errorCode:Zr.errorCode};if(!Zr.hasError){for(var it,un=Zr.result,Et=Zr.result.length,Ae={contacts:[],contentCount:Et},Bt=0;Bt<Et;Bt++)(it=(0,q.formatDataToMakeContact)(un[Bt]))&&Ae.contacts.push(it);fn.result=Ae}De&&De(fn),De=void 0}})},Kt.createBot=function(we,De){var ht={chatMessageVOType:O.chatMessageVOTypes.CREATE_BOT,typeCode:we.typeCode,content:"",pushMsgType:3,token:K.sdkParams.token};if(we)if("string"==typeof we.botName&&we.botName.length>0){if("BOT"===we.botName.substr(-3))return ht.content=we.botName,K.messenger.sendMessage(ht,{onResult:function(yt){De&&De(yt)}});K.chatEvents.fireEvent("error",{code:999,message:'[SDK] Bot name should end in "BOT", ex. "testBOT"'})}else K.chatEvents.fireEvent("error",{code:999,message:"[SDK] Insert a bot name to create one!"});else K.chatEvents.fireEvent("error",{code:999,message:"[SDK] Insert a bot name to create one!"})},Kt.defineBotCommand=function(we,De){var ht={chatMessageVOType:O.chatMessageVOTypes.DEFINE_BOT_COMMAND,typeCode:we.typeCode,content:{},pushMsgType:3,token:K.sdkParams.token},Vt=[];if(we)if("string"==typeof we.botName&&0!==we.botName.length){if(Array.isArray(we.commandList)&&we.commandList.length){for(var yt=0;yt<we.commandList.length;yt++)Vt.push("/"+we.commandList[yt].trim());return ht.content={botName:we.botName.trim(),commandList:Vt},K.messenger.sendMessage(ht,{onResult:function(ur){De&&De(ur)}})}K.chatEvents.fireEvent("error",{code:999,message:"[SDK] Bot Commands List has to be an array of strings."})}else K.chatEvents.fireEvent("error",{code:999,message:"[SDK] You need to insert a botName!"});else K.chatEvents.fireEvent("error",{code:999,message:"[SDK] No params have been sent to create bot commands"})},Kt.removeBotCommand=function(we,De){var ht={chatMessageVOType:O.chatMessageVOTypes.REMOVE_BOT_COMMANDS,typeCode:we.typeCode,content:{},pushMsgType:3,token:K.sdkParams.token},Vt=[];if(we)if("string"==typeof we.botName&&0!==we.botName.length){if(Array.isArray(we.commandList)&&we.commandList.length){for(var yt=0;yt<we.commandList.length;yt++)Vt.push("/"+we.commandList[yt].trim());return ht.content={botName:we.botName.trim(),commandList:Vt},K.messenger.sendMessage(ht,{onResult:function(ur){De&&De(ur)}})}K.chatEvents.fireEvent("error",{code:999,message:"[SDK] Bot Commands List has to be an array of strings."})}else K.chatEvents.fireEvent("error",{code:999,message:"[SDK] You need to insert a botName!"});else K.chatEvents.fireEvent("error",{code:999,message:"[SDK] No params have been sent to remove bot commands"})},Kt.startBot=function(we,De){var ht={chatMessageVOType:O.chatMessageVOTypes.START_BOT,typeCode:we.typeCode,content:{},pushMsgType:3,token:K.sdkParams.token};if(we)if("number"!=typeof+we.threadId||we.threadId<0)K.chatEvents.fireEvent("error",{code:999,message:"[SDK] Enter a valid Thread Id for Bot to start in!"});else{if("string"==typeof we.botName&&0!==we.botName.length)return ht.subjectId=+we.threadId,ht.content=JSON.stringify({botName:we.botName.trim()}),K.messenger.sendMessage(ht,{onResult:function(yt){De&&De(yt)}});K.chatEvents.fireEvent("error",{code:999,message:"[SDK] You need to insert a botName!"})}else K.chatEvents.fireEvent("error",{code:999,message:"[SDK] No params have been sent to create bot commands"})},Kt.stopBot=function(we,De){var ht={chatMessageVOType:O.chatMessageVOTypes.STOP_BOT,typeCode:we.typeCode,content:{},pushMsgType:3,token:K.sdkParams.token};if(we)if("number"!=typeof+we.threadId||we.threadId<0)K.chatEvents.fireEvent("error",{code:999,message:"[SDK] Enter a valid Thread Id for Bot to stop on!"});else{if("string"==typeof we.botName&&0!==we.botName.length)return ht.subjectId=+we.threadId,ht.content=JSON.stringify({botName:we.botName.trim()}),K.messenger.sendMessage(ht,{onResult:function(yt){De&&De(yt)}});K.chatEvents.fireEvent("error",{code:999,message:"[SDK] You need to insert a botName!"})}else K.chatEvents.fireEvent("error",{code:999,message:"[SDK] No params have been sent to create bot commands"})},Kt.getBotCommandsList=function(we,De){var ht={chatMessageVOType:O.chatMessageVOTypes.BOT_COMMANDS,typeCode:we.typeCode,content:{},pushMsgType:3,token:K.sdkParams.token};if(we){if("string"==typeof we.botName&&0!==we.botName.length)return ht.content=JSON.stringify({botName:we.botName.trim()}),K.messenger.sendMessage(ht,{onResult:function(yt){De&&De(yt)}});K.chatEvents.fireEvent("error",{code:999,message:"[SDK] You need to insert a botName!"})}else K.chatEvents.fireEvent("error",{code:999,message:"[SDK] No params have been sent to get bot commands"})},Kt.getThreadAllBots=function(we,De){var ht={chatMessageVOType:O.chatMessageVOTypes.THREAD_ALL_BOTS,typeCode:we.typeCode,content:{},pushMsgType:3,token:K.sdkParams.token};if(we){if(!("number"!=typeof+we.threadId||we.threadId<0))return ht.subjectId=+we.threadId,K.messenger.sendMessage(ht,{onResult:function(yt){De&&De(yt)}});K.chatEvents.fireEvent("error",{code:999,message:"[SDK] Enter a valid Thread Id to get all Bots List!"})}else K.chatEvents.fireEvent("error",{code:999,message:"[SDK] No params have been sent to get thread' bots list!"})},Kt.createTag=function(we,De){var ht={chatMessageVOType:O.chatMessageVOTypes.CREATE_TAG,typeCode:we.typeCode,content:{},pushMsgType:3,token:K.sdkParams.token};if(we){if("string"==typeof we.tagName&&we.tagName.length>0)return ht.content.name=we.tagName,K.messenger.sendMessage(ht,{onResult:function(yt){De&&De(yt)}});K.chatEvents.fireEvent("error",{code:999,message:"[SDK] No tag name has been declared!"})}else K.chatEvents.fireEvent("error",{code:999,message:"[SDK] No params have been sent to Create New Tag!"})},Kt.editTag=function(we,De){var ht={chatMessageVOType:O.chatMessageVOTypes.EDIT_TAG,typeCode:we.typeCode,content:{},pushMsgType:3,token:K.sdkParams.token};if(we)if(parseInt(we.tagId)>0){if(ht.subjectId=+we.tagId,"string"==typeof we.tagName&&we.tagName.length>0)return ht.content.name=we.tagName,K.messenger.sendMessage(ht,{onResult:function(yt){De&&De(yt)}});K.chatEvents.fireEvent("error",{code:999,message:"[SDK] No tag name has been declared!"})}else K.chatEvents.fireEvent("error",{code:999,message:"[SDK] No Tag Id has been sent!"});else K.chatEvents.fireEvent("error",{code:999,message:"[SDK] No params have been sent to Edit Tag!"})},Kt.deleteTag=function(we,De){var ht={chatMessageVOType:O.chatMessageVOTypes.DELETE_TAG,typeCode:we.typeCode,content:{},pushMsgType:3,token:K.sdkParams.token};if(we){if(parseInt(we.tagId)>0)return ht.subjectId=+we.tagId,K.messenger.sendMessage(ht,{onResult:function(yt){De&&De(yt)}});K.chatEvents.fireEvent("error",{code:999,message:"No Tag Id has been sent!"})}else K.chatEvents.fireEvent("error",{code:999,message:"No params have been sent to Delete Tag!"})},Kt.getTagList=function(we,De){return K.messenger.sendMessage({chatMessageVOType:O.chatMessageVOTypes.GET_TAG_LIST,typeCode:we.typeCode,content:{},pushMsgType:3,token:K.sdkParams.token},{onResult:function(yt){De&&De(yt)}})},Kt.addTagParticipants=function(we,De){var ht={chatMessageVOType:O.chatMessageVOTypes.ADD_TAG_PARTICIPANT,typeCode:we.typeCode,content:[]};if(we)return+we.tagId>0&&(ht.subjectId=+we.tagId),Array.isArray(we.threadIds)&&(ht.content=we.threadIds),K.messenger.sendMessage(ht,{onResult:function(yt){var gr={typeCode:yt.typeCode,ownerId:yt.ownerId,hasError:yt.hasError,cache:!1,errorMessage:yt.errorMessage,errorCode:yt.errorCode};gr.hasError||(gr.result=yt.result),De&&De(gr)}});K.chatEvents.fireEvent("error",{code:999,message:"No params have been sent to Add Tag PArticipants!"})},Kt.removeTagParticipants=function(we,De){var ht={chatMessageVOType:O.chatMessageVOTypes.REMOVE_TAG_PARTICIPANT,typeCode:we.typeCode,content:[]};if(we)return+we.tagId>0&&(ht.subjectId=+we.tagId),Array.isArray(we.threadIds)&&(ht.content=we.threadIds),K.messenger.sendMessage(ht,{onResult:function(yt){var gr={typeCode:yt.typeCode,ownerId:yt.ownerId,hasError:yt.hasError,cache:!1,errorMessage:yt.errorMessage,errorCode:yt.errorCode};gr.hasError||(gr.result=yt.result),De&&De(gr)}});K.chatEvents.fireEvent("error",{code:999,message:"No params have been sent to Remove Tag Participants!"})},Kt.registerAssistant=function(we,De){var ht={chatMessageVOType:O.chatMessageVOTypes.REGISTER_ASSISTANT,typeCode:we.typeCode,content:[]};if(we){if(Array.isArray(we.assistants)&&"object"===(0,h.default)(we.assistants[0])){for(var Vt=0;Vt<we.assistants.length;Vt++){if(!("object"===(0,h.default)(we.assistants[Vt])&&we.assistants[Vt].hasOwnProperty("contactType")&&we.assistants[Vt].contactType&&we.assistants[Vt].hasOwnProperty("roleTypes")&&Array.isArray(we.assistants[Vt].roleTypes)&&we.assistants[Vt].roleTypes.length&&we.assistants[Vt].hasOwnProperty("assistant")&&we.assistants[Vt].assistant.hasOwnProperty("id")&&we.assistants[Vt].assistant.hasOwnProperty("idType")&&we.assistants[Vt].assistant.id.length&&O.inviteeVOidTypes[we.assistants[Vt].assistant.idType]>0))return void K.chatEvents.fireEvent("error",{code:999,message:"You should send an array of Assistant Objects each containing of contactType, roleTypes and assistant itself!"});ht.content.push({contactType:we.assistants[Vt].contactType,roleTypes:we.assistants[Vt].roleTypes,assistant:{id:we.assistants[Vt].assistant.id,idType:+O.inviteeVOidTypes[we.assistants[Vt].assistant.idType]}})}return K.messenger.sendMessage(ht,{onResult:function(gr){var ur={typeCode:gr.typeCode,ownerId:gr.ownerId,hasError:gr.hasError,cache:!1,errorMessage:gr.errorMessage,errorCode:gr.errorCode};ur.hasError||(ur.result=gr.result),De&&De(ur)}})}K.chatEvents.fireEvent("error",{code:999,message:"You should send an array of Assistant Objects each containing of contactType, roleTypes and assistant itself!"})}else K.chatEvents.fireEvent("error",{code:999,message:"No params have been sent to Create Assistants!"})},Kt.deactivateAssistant=function(we,De){var ht={chatMessageVOType:O.chatMessageVOTypes.DEACTIVATE_ASSISTANT,typeCode:we.typeCode,content:[]};if(we){if(Array.isArray(we.assistants)&&"object"===(0,h.default)(we.assistants[0])){for(var Vt=0;Vt<we.assistants.length;Vt++){if(!("object"===(0,h.default)(we.assistants[Vt])&&we.assistants[Vt].hasOwnProperty("assistant")&&we.assistants[Vt].assistant.hasOwnProperty("id")&&we.assistants[Vt].assistant.hasOwnProperty("idType")&&we.assistants[Vt].assistant.id.length&&O.inviteeVOidTypes[we.assistants[Vt].assistant.idType]>0))return void K.chatEvents.fireEvent("error",{code:999,message:"You should send an array of Assistant Objects each containing of an assistant!"});ht.content.push({assistant:{id:we.assistants[Vt].assistant.id,idType:+O.inviteeVOidTypes[we.assistants[Vt].assistant.idType]}})}return K.messenger.sendMessage(ht,{onResult:function(gr){var ur={typeCode:gr.typeCode,ownerId:gr.ownerId,hasError:gr.hasError,cache:!1,errorMessage:gr.errorMessage,errorCode:gr.errorCode};ur.hasError||(ur.result=gr.result),De&&De(ur)}})}K.chatEvents.fireEvent("error",{code:999,message:"You should send an array of Assistant Objects each containing of an assistant!"})}else K.chatEvents.fireEvent("error",{code:999,message:"No params have been sent to Deactivate Assistants!"})},Kt.blockAssistant=function(we,De){var ht={chatMessageVOType:O.chatMessageVOTypes.BLOCK_ASSISTANT,typeCode:we.typeCode,content:[]};if(we){if(Array.isArray(we.assistants)&&"object"===(0,h.default)(we.assistants[0])){for(var Vt=0;Vt<we.assistants.length;Vt++){if(!("object"===(0,h.default)(we.assistants[Vt])&&we.assistants[Vt].hasOwnProperty("assistant")&&we.assistants[Vt].assistant.hasOwnProperty("id")&&we.assistants[Vt].assistant.hasOwnProperty("idType")&&we.assistants[Vt].assistant.id.length&&O.inviteeVOidTypes[we.assistants[Vt].assistant.idType]>0))return void K.chatEvents.fireEvent("error",{code:999,message:"You should send an array of Assistant Objects each containing of an assistant!"});ht.content.push({assistant:{id:we.assistants[Vt].assistant.id,idType:+O.inviteeVOidTypes[we.assistants[Vt].assistant.idType]}})}return K.messenger.sendMessage(ht,{onResult:function(gr){var ur={typeCode:gr.typeCode,ownerId:gr.ownerId,hasError:gr.hasError,cache:!1,errorMessage:gr.errorMessage,errorCode:gr.errorCode};ur.hasError||(ur.result=gr.result),De&&De(ur)}})}K.chatEvents.fireEvent("error",{code:999,message:"You should send an array of Assistant Objects each containing of an assistant!"})}else K.chatEvents.fireEvent("error",{code:999,message:"No params have been sent to Block Assistants!"})},Kt.unblockAssistant=function(we,De){var ht={chatMessageVOType:O.chatMessageVOTypes.UNBLOCK_ASSISTANT,typeCode:we.typeCode,content:[]};if(we){if(Array.isArray(we.assistants)&&"object"===(0,h.default)(we.assistants[0])){for(var Vt=0;Vt<we.assistants.length;Vt++){if(!("object"===(0,h.default)(we.assistants[Vt])&&we.assistants[Vt].hasOwnProperty("assistant")&&we.assistants[Vt].assistant.hasOwnProperty("id")&&we.assistants[Vt].assistant.hasOwnProperty("idType")&&we.assistants[Vt].assistant.id.length&&O.inviteeVOidTypes[we.assistants[Vt].assistant.idType]>0))return void K.chatEvents.fireEvent("error",{code:999,message:"You should send an array of Assistant Objects each containing of an assistant!"});ht.content.push({assistant:{id:we.assistants[Vt].assistant.id,idType:+O.inviteeVOidTypes[we.assistants[Vt].assistant.idType]}})}return K.messenger.sendMessage(ht,{onResult:function(gr){var ur={typeCode:gr.typeCode,ownerId:gr.ownerId,hasError:gr.hasError,cache:!1,errorMessage:gr.errorMessage,errorCode:gr.errorCode};ur.hasError||(ur.result=gr.result),De&&De(ur)}})}K.chatEvents.fireEvent("error",{code:999,message:"You should send an array of Assistant Objects each containing of an assistant!"})}else K.chatEvents.fireEvent("error",{code:999,message:"No params have been sent to Unblock Assistants!"})},Kt.getAssistantsList=function(we,De){var ht={chatMessageVOType:O.chatMessageVOTypes.GET_ASSISTANTS,typeCode:we.typeCode,content:{},pushMsgType:3,token:K.sdkParams.token};if(we){if("string"==typeof we.contactType&&we.contactType.length)return ht.content.contactType=we.contactType,ht.content.count=we.count?+we.count:25,ht.content.offset=we.offset?+we.offset:0,K.messenger.sendMessage(ht,{onResult:function(yt){De&&De(yt)}});K.chatEvents.fireEvent("error",{code:999,message:"Enter a ContactType to get all related Assistants!"})}else K.chatEvents.fireEvent("error",{code:999,message:"No params have been sent to get Assistants list!"})},Kt.getBlockedAssistantsList=function(we,De){var ht={chatMessageVOType:O.chatMessageVOTypes.BLOCKED_ASSISTANTS,typeCode:we.typeCode,content:{},pushMsgType:3,token:K.sdkParams.token};if(we){if("string"==typeof we.contactType&&we.contactType.length)return ht.content.contactType=we.contactType,ht.content.count=we.count?+we.count:25,ht.content.offset=we.offset?+we.offset:0,K.messenger.sendMessage(ht,{onResult:function(yt){De&&De(yt)}});K.chatEvents.fireEvent("error",{code:999,message:"Enter a ContactType to get all Blocked Assistants!"})}else K.chatEvents.fireEvent("error",{code:999,message:"No params have been sent to get Blocked Assistants list!"})},Kt.getAssistantsHistory=function(we,De){var ht={chatMessageVOType:O.chatMessageVOTypes.ASSISTANT_HISTORY,typeCode:we.typeCode,content:{offset:+we.offset>0?+we.offset:0,count:+we.count>0?+we.count:50}};return+we.fromTime>0&&+we.fromTime<9999999999999&&(ht.content.fromTime=+we.fromTime),+we.toTime>0&&+we.toTime<9999999999999&&(ht.content.toTime=+we.toTime),!!we.actionType&&O.assistantActionTypes.hasOwnProperty(we.actionType.toUpperCase())&&(ht.content.actionType=O.assistantActionTypes[we.actionType.toUpperCase()]),K.messenger.sendMessage(ht,{onResult:function(yt){var gr={typeCode:yt.typeCode,ownerId:yt.ownerId,hasError:yt.hasError,cache:!1,errorMessage:yt.errorMessage,errorCode:yt.errorCode};if(!gr.hasError){var ur=yt.result,Zr=ur.length,fn={participants:(0,q.formatDataToMakeAssistantHistoryList)(ur),contentCount:yt.contentCount,hasNext:ht.content.offset+ht.content.count<yt.contentCount&&Zr>0,nextOffset:1*ht.content.offset+1*Zr};gr.result=fn}De&&De(gr),De=void 0}})},Kt.mapReverse=zr,Kt.mapSearch=function(De,ht){var Vt={};De&&("string"==typeof De.term&&(Vt.term=De.term),parseFloat(De.lat)>0&&(Vt.lat=De.lat),parseFloat(De.lng)>0&&(Vt.lng=De.lng),Vt.uniqueId=y.default.generateUUID()),K.httpRequest.httpRequest({url:K.sdkParams.SERVICE_ADDRESSES.MAP_ADDRESS+K.sdkParams.SERVICES_PATH.SEARCH,method:"GET",data:Vt,headers:{"Api-Key":K.sdkParams.mapApiKey}},function(gr){if(gr.hasError)K.chatEvents.fireEvent("error",{code:gr.errorCode,message:gr.errorMessage,error:gr});else{var ur=JSON.parse(gr.result.responseText);ht&&ht({hasError:gr.hasError,cache:gr.cache,errorMessage:gr.message,errorCode:gr.errorCode,result:ur})}})},Kt.mapRouting=function(De,ht){var Vt={};De&&(Vt.alternative="boolean"!=typeof De.alternative||De.alternative,"object"===(0,h.default)(De.origin)&&(parseFloat(De.origin.lat)>0&&parseFloat(De.origin.lng)?Vt.origin=De.origin.lat+","+parseFloat(De.origin.lng):K.sdkParams.consoleLogging&&console.log("No origin has been selected!")),"object"===(0,h.default)(De.destination)&&(parseFloat(De.destination.lat)>0&&parseFloat(De.destination.lng)?Vt.destination=De.destination.lat+","+parseFloat(De.destination.lng):K.sdkParams.consoleLogging&&console.log("No destination has been selected!")),Vt.uniqueId=y.default.generateUUID()),K.httpRequest.httpRequest({url:K.sdkParams.SERVICE_ADDRESSES.MAP_ADDRESS+K.sdkParams.SERVICES_PATH.ROUTING,method:"GET",data:Vt,headers:{"Api-Key":K.sdkParams.mapApiKey}},function(gr){if(gr.hasError)K.chatEvents.fireEvent("error",{code:gr.errorCode,message:gr.errorMessage,error:gr});else{var ur=JSON.parse(gr.result.responseText);ht&&ht({hasError:gr.hasError,cache:gr.cache,errorMessage:gr.message,errorCode:gr.errorCode,result:ur})}})},Kt.mapStaticImage=function(De,ht){var Vt={},yt=K.sdkParams.SERVICE_ADDRESSES.MAP_ADDRESS+K.sdkParams.SERVICES_PATH.STATIC_IMAGE,gr=!1;De&&(Vt.type="string"==typeof De.type?De.type:"standard-night",Vt.zoom=parseInt(De.zoom)>0?De.zoom:15,Vt.width=parseInt(De.width)>0?De.width:800,Vt.height=parseInt(De.height)>0?De.height:600,"object"===(0,h.default)(De.center)&&parseFloat(De.center.lat)>0&&parseFloat(De.center.lng)?Vt.center=De.center.lat+","+parseFloat(De.center.lng):(gr=!0,K.chatEvents.fireEvent("error",{code:6700,message:O.CHAT_ERRORS[6700],error:void 0})),Vt.key=K.sdkParams.mapApiKey);var ur=Object.keys(Vt);if(ur.length>0){yt+="?";for(var Zr=0;Zr<ur.length;Zr++){var fn=ur[Zr];yt+=fn+"="+Vt[fn],Zr<ur.length-1&&(yt+="&")}}ht&&ht({hasError:gr,cache:!1,errorMessage:gr?O.CHAT_ERRORS[6700]:"",errorCode:gr?6700:void 0,result:{link:gr?"":yt}})},Kt.setAdmin=function(we,De){xt(we,De)},Kt.removeAdmin=function(we,De){tr(we,De)},Kt.setAuditor=function(we,De){xt(we,De)},Kt.removeAuditor=function(we,De){tr(we,De)},Kt.exportChat=function(we,De){var Vt=1e4,yt=500,gr=0,ur={chatMessageVOType:O.chatMessageVOTypes.EXPORT_CHAT,typeCode:we.typeCode,content:{offset:+we.offset>0?+we.offset:gr,count:+we.count>0?+we.count:Vt},subjectId:we.threadId};+we.fromTime>0&&+we.fromTime<9999999999999&&(ur.content.fromTime=+we.fromTime),+we.toTime>0&&+we.toTime<9999999999999&&(ur.content.toTime=+we.toTime),+we.wantedCount>0&&(Vt=we.wantedCount),+we.stepCount>0&&(yt=we.stepCount),+we.offset>0&&(gr=we.offset),ur.content.messageType=1,Vt<yt&&(yt=Vt),K.sdkParams.consoleLogging&&console.log("[SDK][exportChat] Starting..."),Qr([],Vt,yt,gr,ur).then(function(Zr){K.sdkParams.consoleLogging&&console.log("[SDK][exportChat] Export done..., Now converting...");var fn=(we.fileName||"export-"+we.threadId)+".csv",un=null!==we.responseType?we.responseType:"blob",Et=null===we.autoStartDownload||we.autoStartDownload,Ae="";Ae+="\u062a\u0627\u0631\u06cc\u062e ,",Ae+=" \u0633\u0627\u0639\u062a ,",Ae+="\u0646\u0627\u0645 \u0641\u0631\u0633\u062a\u0646\u062f\u0647,",Ae+="\u0646\u0627\u0645 \u06a9\u0627\u0631\u0628\u0631\u06cc \u0641\u0631\u0633\u062a\u0646\u062f\u0647,",Ae+="\u0645\u062a\u0646 \u067e\u06cc\u0627\u0645,",Ae+="\r\n";for(var Bt="",Or=0;Or<Zr.length;Or++)if(Bt="",1===Zr[Or].messageType){var Wr="";Zr[Or].participant.contactName?Wr=Zr[Or].participant.contactName+",":(Zr[Or].participant.firstName&&(Wr=Zr[Or].participant.firstName+" "),Zr[Or].participant.lastName&&(Wr+=Zr[Or].participant.lastName),Wr+=","),Bt+=new Date(Zr[Or].time).toLocaleDateString("fa-IR")+",",Bt+=new Date(Zr[Or].time).toLocaleTimeString("fa-IR")+",",Bt+=Wr,Bt+=Zr[Or].participant.username+",",Ae+=(Bt+='"'+Zr[Or].message.replaceAll(",","\u060c").replaceAll('"',"\u201d")+'",')+"\r\n"}var sn=new Blob([Ae],{type:"text/csv;charset=utf-8;"});if(K.chatEvents.fireEvent("threadEvents",{type:"EXPORT_CHAT",subType:"DONE",threadId:ur.subjectId,result:sn}),"link"===un){var En=document.createElement("a");URL.createObjectURL(sn),En.setAttribute("href","data:text/csv; charset=utf-8,"+encodeURIComponent("\ufeff"+Ae)),En.setAttribute("download",fn),Et&&(En.style.visibility="hidden",document.body.appendChild(En),En.click(),document.body.removeChild(En)),De&&De({hasError:!1,type:"link",result:En})}else De&&De({hasError:!1,type:"blob",result:sn});De=void 0})},Kt.getDevicesList=Ge.getDevicesList,Kt.changeMediaDevice=Ge.changeMediaDevice,Kt.setActiveDeviceInCall=Ge.setActiveDeviceInCall,Kt.startCall=Ge.startCall,Kt.startGroupCall=Ge.startGroupCall,Kt.callReceived=Ge.callReceived,Kt.terminateCall=Ge.terminateCall,Kt.acceptCall=Ge.acceptCall,Kt.rejectCall=Kt.cancelCall=Ge.rejectCall,Kt.endCall=Ge.endCall,Kt.startRecordingCall=Ge.startRecordingCall,Kt.stopRecordingCall=Ge.stopRecordingCall,Kt.startScreenShare=Ge.startScreenShare,Kt.resizeScreenShare=Ge.resizeScreenShare,Kt.endScreenShare=Ge.endScreenShare,Kt.getCallsList=Ge.getCallsList,Kt.getCallsToJoin=Ge.getCallsToJoin,Kt.deleteFromCallList=Ge.deleteFromCallList,Kt.getCallParticipants=Ge.getCallParticipants,Kt.addCallParticipants=Ge.addCallParticipants,Kt.removeCallParticipants=Ge.removeCallParticipants,Kt.muteCallParticipants=Ge.muteCallParticipants,Kt.unMuteCallParticipants=Ge.unMuteCallParticipants,Kt.turnOnVideoCall=Ge.turnOnVideoCall,Kt.turnOffVideoCall=Ge.turnOffVideoCall,Kt.disableParticipantsVideoReceive=Ge.disableParticipantsVideoReceive,Kt.enableParticipantsVideoReceive=Ge.enableParticipantsVideoReceive,Kt.pauseCamera=Ge.pauseCamera,Kt.resumeCamera=Ge.resumeCamera,Kt.pauseMice=Ge.pauseMice,Kt.resumeMice=Ge.resumeMice,Kt.resizeCallVideo=Ge.resizeCallVideo,Kt.sendCallMetaData=Ge.sendCallMetaData,Kt.sendCallSticker=Ge.sendCallSticker,Kt.callStickerTypes=O.callStickerTypes,Kt.recallThreadParticipant=Ge.recallThreadParticipant,Kt.deviceManager=Ge.deviceManager,Kt.currentCall=Ge.currentCall,Kt.inquiryCallParticipants=Ge.inquiryCallParticipants,Kt.resetCallStream=Ge.resetCallStream,Kt.getMutualGroups=function(we,De){var ht=+we.count?+we.count:25,Vt=+we.offset?+we.offset:0,yt={chatMessageVOType:O.chatMessageVOTypes.MUTUAL_GROUPS,typeCode:we.typeCode,content:{count:ht,offset:Vt}};if(we){if("object"===(0,h.default)(we.user)&&we.user.hasOwnProperty("id")&&we.user.hasOwnProperty("idType")&&we.user.id.length&&O.inviteeVOidTypes[we.user.idType]>0)return yt.content.toBeUserVO={id:we.user.id,idType:+O.inviteeVOidTypes[we.user.idType]},K.messenger.sendMessage(yt,{onResult:function(ur){var Zr={hasError:ur.hasError,cache:!1,errorMessage:ur.errorMessage,errorCode:ur.errorCode,uniqueId:ur.uniqueId};if(!Zr.hasError){for(var Ae,fn=ur.result,un=fn.length,Et={threads:[],contentCount:ur.contentCount,hasNext:Vt+ht<ur.contentCount&&un>0,nextOffset:1*Vt+1*un},it=0;it<un;it++)(Ae=K.threadMethods.createThread(fn[it],!1))&&Et.threads.push(Ae);Zr.result=Et}De&&De(Zr),De=void 0}});K.chatEvents.fireEvent("error",{code:999,message:'You should send an user object like {id: 92, idType: "TO_BE_USER_CONTACT_ID"}'})}else K.chatEvents.fireEvent("error",{code:999,message:"No params have been sent to Get Mutual Groups!"})},Kt.sendLocationPing=function(we,De){var ht={chatMessageVOType:O.chatMessageVOTypes.LOCATION_PING,typeCode:we.typeCode,pushMsgType:3,token:K.sdkParams.token},Vt={};if(we){if("string"==typeof we.location&&K.sdkParams.locationPingTypes.hasOwnProperty(we.location.toUpperCase())){if(Vt.location=K.sdkParams.locationPingTypes[we.location.toUpperCase()],"THREAD"===we.location.toUpperCase()){if(!("number"==typeof we.threadId&&we.threadId>0))return void K.chatEvents.fireEvent("error",{code:999,message:"You set the location to be a thread, you have to send a valid ThreadId"});Vt.locationId=+we.threadId}return ht.content=JSON.stringify(Vt),K.messenger.sendMessage(ht,{onResult:function(gr){De&&De(gr)}})}K.chatEvents.fireEvent("error",{code:999,message:"Send a valid location type (CHAT / THREAD / CONTACTS)"})}else K.chatEvents.fireEvent("error",{code:999,message:"No params have been sent to LocationPing!"})},Kt.clearChatServerCaches=function(){K.messenger.sendMessage({chatMessageVOType:O.chatMessageVOTypes.LOGOUT,pushMsgType:3})},Kt.deleteCacheDatabases=function(){(0,C.printIsDeprecate)(C.deprecatedString.deleteCacheDatabases.methodName)},Kt.clearCacheDatabasesOfUser=function(De){(0,C.printIsDeprecate)(C.deprecatedString.clearCacheDatabasesOfUser.methodName)},Kt.getChatState=function(){return at},Kt.reconnect=function(){_.reconnectSocket()},Kt.setToken=function(we){typeof we<"u"&&(K.sdkParams.token=we,(!K.store.user.get()||!K.store.user.get().id)&&Dt())},Kt.generateUUID=y.default.generateUUID,Kt.logout=function(){K.chatEvents.clearEventCallbacks(),K.store.messagesCallbacks={},K.store.sendMessageCallbacks={},K.store.threadCallbacks={},K.messenger.stopChatPing(),_.logout()},Kt.inviteeIdTypes=O.inviteeVOidTypes,Kt.checkTURNServer=function(we,De){var ht=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Vt=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"mkhorrami",yt=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"mkh_123456",gr=arguments.length>5?arguments[5]:void 0,ur="turn:"+we+":"+De+"?transport="+(ht?"udp":"tcp"),Zr={urls:ur,username:Vt,credential:yt};return-1!==navigator.userAgent.indexOf("firefox")&&-1!==navigator.userAgent.indexOf("92.0.5")&&alert("Browser version is not suitable for video call. Upgrade or use another browser."),console.log("turnConfig: ",Zr),new Promise(function(fn,un){var Et;setTimeout(function(){Et||(fn(!1),Et=!0)},gr||5e3),Et=!1;var it=new(window.RTCPeerConnection||window.mozRTCPeerConnection||window.webkitRTCPeerConnection)({iceServers:[Zr]}),Bt=function(){};it.createDataChannel(""),it.createOffer(function(pr){pr.sdp.indexOf("typ relay")>-1&&(Et=!0,fn(!0)),it.setLocalDescription(pr,Bt,Bt)},Bt),it.onicecandidate=function(pr){Et||!pr||!pr.candidate||!pr.candidate.candidate||!(pr.candidate.candidate.indexOf("typ relay")>-1)||(Et=!0,fn(!0))}})},Kt.getCustomerInfo=function(we,De){var ht=we.userId||K.store.user.get().id;return K.messenger.sendMessage({chatMessageVOType:O.chatMessageVOTypes.CUSTOMER_INFO,typeCode:we.typeCode,content:[ht],token:K.sdkParams.token},{onResult:function(gr){De&&De(gr)}})},Kt.addUserToUserGroup=fr,Kt.getThreadsLight=function(we,De){var ht=25,Vt=0,yt={};return we&&(parseInt(we.count)>0&&(ht=we.count),parseInt(we.offset)>0&&(Vt=we.offset),"string"==typeof we.threadName&&(yt.name=we.threadName),"string"==typeof we.username&&(yt.username=we.username),"string"==typeof we.cellphoneNumber&&(yt.cellphoneNumber=we.cellphoneNumber),Array.isArray(we.threadIds)&&(yt.threadIds=we.threadIds),"boolean"==typeof we.new&&(yt.new=we.new),parseInt(we.creatorCoreUserId)>0&&(yt.creatorCoreUserId=we.creatorCoreUserId),parseInt(we.partnerCoreUserId)>0&&(yt.partnerCoreUserId=we.partnerCoreUserId),parseInt(we.partnerCoreContactId)>0&&(yt.partnerCoreContactId=we.partnerCoreContactId),parseInt(we.fromTime)>0&&parseInt(we.fromTime)<9999999999999&&(yt.fromTime=parseInt(we.fromTime)),parseInt(we.toTime)>0&&parseInt(we.toTime)<9999999999999&&(yt.toTime=parseInt(we.toTime)),"boolean"==typeof we.isGroup&&(yt.isGroup=we.isGroup),"number"==typeof we.type&&(yt.type=we.type)),yt.count=ht,yt.offset=Vt,K.messenger.sendMessage({chatMessageVOType:O.chatMessageVOTypes.GET_THREAD_LIGHT,typeCode:we.typeCode,content:yt},{onResult:function(fn){var un={typeCode:fn.typeCode,ownerId:fn.ownerId,hasError:fn.hasError,cache:!1,errorMessage:fn.errorMessage,errorCode:fn.errorCode,uniqueId:fn.uniqueId};if(!un.hasError){for(var Bt,Et=fn.result,Ae=Et.length,it={threads:[],contentCount:fn.contentCount,hasNext:Et&&!(Ae<ht),nextOffset:1*Vt+1*Ae},pr=0;pr<Ae;pr++)(Bt=K.threadMethods.createThread(Et[pr],!1))&&it.threads.push(Bt);K.store.threads.saveMany(it.threads),un.result=it}De&&De(un)}})},Kt.archiveThread=function(we,De){return K.messenger.sendMessage({chatMessageVOType:O.chatMessageVOTypes.ARCHIVE_THREAD,typeCode:ie.typeCode,token:K.sdkParams.token,subjectId:we.threadId},{onResult:function(gr){De&&De(gr)}})},Kt.unArchiveThread=function(we,De){return K.messenger.sendMessage({chatMessageVOType:O.chatMessageVOTypes.UNARCHIVE_THREAD,typeCode:ie.typeCode,token:K.sdkParams.token,subjectId:we.threadId},{onResult:function(gr){De&&De(gr)}})},Kt.chatStickerTypes=O.chatStickerTypes,Kt.customizeReactionTypes=O.customizeReactionTypes,Kt.addReaction=oe.addReaction,Kt.getMyReaction=oe.getMyReaction,Kt.replaceReaction=oe.replaceReaction,Kt.removeReaction=oe.removeReaction,Kt.getReactionList=oe.getReactionList,Kt.getReactionsSummaries=oe.getReactionsSummaries,Kt.customizeReaction=oe.customizeReaction,Kt.getThreadAllowedReactions=oe.getThreadAllowedReactions,Kt.version=function(){return console.log("%c[SDK] Version: podchat-browser@"+f.default.version,"color:green; font-size:13px"),console.log("%c[SDK] Build date:"+f.default.date,"color:green;font-size:13px"),console.log("%c[SDK] Additional info: "+f.default.VersionInfo,"color:green;font-size:13px"),f.default},Kt.changeProtocol=function(){var we=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"websocket";["webrtc","websocket","auto"].includes(we)?we!=Te.getCurrentProtocol()?Te.switchProtocol(we.toLowerCase()):console.warn("SDK is currently using the ".concat(we," protocol. Nothing to do.")):console.error("Protocol ".concat(we,' is not supported in SDK. Valid protocols: "webrtc", "websocket"'))},Kt.getPinMessages=K.threadMethods.getPinMessages,Kt.getLastActionInthread=K.threadMethods.getLastActionInthread,Kt.lastMessageInfo=function(we,De){return K.messenger.sendMessage({chatMessageVOType:O.chatMessageVOTypes.LAST_MESSAGE_INFO,typeCode:we.typeCode,token:K.sdkParams.token,content:we.content},{onResult:function(yt){if(!yt.hasError){var gr={};yt.result&&Object.values(yt.result).length&&(Object.entries(yt.result).forEach(function(ur){gr[ur[0]]=(0,q.formatDataToMakeMessage)(ur[0],ur[1])}),yt.result=gr)}De&&De(yt)}})},Kt.setAdminRole=function(we,De){var ht={chatMessageVOType:O.chatMessageVOTypes.SET_ADMIN_ROLE_TO_USER,typeCode:we.typeCode,token:sdkParams.token,subjectId:we.threadId,content:we.content};return K.messenger.sendMessage(ht,{onResult:function(yt){De&&De(yt)}})},Kt.removeAdminRole=function(we,De){var ht={chatMessageVOType:O.chatMessageVOTypes.REMOVE_ADMIN_ROLE_FROM_USER,typeCode:we.typeCode,token:sdkParams.token,subjectId:we.threadId,content:we.content};return K.messenger.sendMessage(ht,{onResult:function(yt){De&&De(yt)}})},Kt.setRoleToUser=xt,Kt.removeRoleFromUser=tr,Kt.changeActiveTypeCode=function(we){K.typeCodes.setActiveTypeCode(we)},Kt.getCurrentTypeCode=function(){return K.typeCodes.getActiveTypeCode().typeCode},Kt.resetAudioSendStream=Ge.resetAudioSendStream,Kt.resetVideoSendStream=Ge.resetVideoSendStream,Kt.stopPrintStatus=Ge.stopPrintStatus,Kt.startPrintStatus=Ge.startPrintStatus,Kt.addTypeCodeToBusiness=K.typeCodeApiMethods.addTypeCodeToBusiness,Kt.registerTypeCodeInChat=K.typeCodeApiMethods.registerTypeCodeInChat,Kt.registerTypeCodeInChat=K.typeCodeApiMethods.registerTypeCodeInChat,K.store.events.on(K.store.threads.eventsList.UNREAD_COUNT_UPDATED,function(we){K.chatEvents.fireEvent("threadEvents",{type:"UNREAD_COUNT_UPDATED",result:{threadId:we.id,unreadCount:we.unreadCount||0,lastSeenMessageTime:we.lastSeenMessageTime||void 0}})}),function(){if(K.sdkParams.grantDeviceIdFromSSO){var De=(new Date).getTime();!function(De){var ht;K.httpRequest.httpRequest({url:K.sdkParams.SERVICE_ADDRESSES.SSO_ADDRESS+K.sdkParams.SERVICES_PATH.SSO_DEVICES,method:"GET",headers:{Authorization:"Bearer "+K.sdkParams.token}},function(yt){if(yt.hasError)K.chatEvents.fireEvent("error",{code:yt.errorCode,message:yt.errorMessage,error:yt});else{var gr=JSON.parse(yt.result.responseText).devices;if(gr&&gr.length>0){for(var ur=0;ur<gr.length;ur++)if(gr[ur].current){ht=gr[ur].uid;break}ht?De(ht):K.chatEvents.fireEvent("error",{code:6e3,message:O.CHAT_ERRORS[6e3],error:null})}else K.chatEvents.fireEvent("error",{code:6001,message:O.CHAT_ERRORS[6001],error:null})}})}(function(ht){K.sdkParams.actualTimingLog&&y.default.chatStepLogger("Get Device ID ",(new Date).getTime()-De),x=ht,st()})}else st()}(),Kt}typeof window<"u"&&(window.POD||(window.POD={}),window.POD.Chat=J,window.PodChat=J),b.Z=J},9013:(M,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.deprecatedString=void 0,b.printIsDeprecate=function t(e){console.warn("||| Method: "+n[e].methodName+" is deprecated! "+(n[e].replacementString?" use "+n[e].replacementString+"instead. ":"")+(n[e].deprecationDate?" Deprecation Date: "+n[e].deprecationDate:""))};var n={turnOffVideoCall:{deprecationDate:"",methodName:"turnOffVideoCall",replacementString:""},turnOnVideoCall:{deprecationDate:"",methodName:"turnOnVideoCall",replacementString:""},muteCallParticipants:{deprecationDate:"",methodName:"muteCallParticipants",replacementString:""},unMuteCallParticipants:{deprecationDate:"",methodName:"unMuteCallParticipants",replacementString:""},uploadFile:{deprecationDate:"21/5/2024",methodName:"uploadFile",replacementString:""},uploadImage:{deprecationDate:"21/5/2024",methodName:"uploadImage",replacementString:""},getFile:{deprecationDate:"",methodName:"getFile",replacementString:""},getImage:{deprecationDate:"",methodName:"getImage",replacementString:""},deleteCacheDatabases:{deprecationDate:"26/6/2023",methodName:"deleteCacheDatabases",replacementString:""},startCacheDatabases:{deprecationDate:"26/6/2023",methodName:"startCacheDatabases",replacementString:""},clearCacheDatabasesOfUser:{deprecationDate:"26/6/2023",methodName:"clearCacheDatabasesOfUser",replacementString:""},deliver:{deprecationDate:"21/5/2024",methodName:"deliver",replacementString:""},getMessageDeliveredList:{deprecationDate:"21/5/2024",methodName:"getMessageDeliveredList",replacementString:""}};b.deprecatedString=n},14130:(M,b,n)=>{"use strict";var t=n(95318);Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var e=t(n(63902));b.default=function l(r){var d={connect:{},disconnect:{},reconnect:{},messageEvents:{},threadEvents:{},contactEvents:{},botEvents:{},userEvents:{},callEvents:{},callStreamEvents:{},fileUploadEvents:{},fileDownloadEvents:{},systemEvents:{},chatReady:{},error:{},chatState:{},autoSwitchAsyncProtocol:{}},y=function(p){this.code=p.error?p.error.code:p.code,this.message=p.error?p.error.message:p.message,this.uniqueId=p.uniqueId?p.uniqueId:"",this.token=r.sdkParams.token,this.error=JSON.stringify(p.error?p.error:p),this.environmentDetails=p.environmentDetails};this.fireEvent=function(g,p){if("chatReady"===g&&(typeof navigator>"u"?r.sdkParams.consoleLogging&&console.log("\x1b[90m    \u2630 \x1b[0m\x1b[90m%s\x1b[0m","Chat is Ready \u{1f609}"):r.sdkParams.consoleLogging&&console.log("%c   Chat is Ready \u{1f609}","border-left: solid #666 10px; color: #666;")),"error"===g||"callEvents"===g&&"CALL_ERROR"===p.type)try{throw new y(p)}catch(C){console.error(C)}for(var f in d[g])d[g]&&d[g][f]&&d[g][f](p)},this.on=function(g,p){if(d[g]){var f=e.default.generateUUID();return d[g][f]=p,f}},this.off=function(g,p){if(d[g]&&d[g].hasOwnProperty(p))return delete d[g][p],p},this.clearEventCallbacks=function(){for(var g in d)delete d[g]}}},24084:(M,b,n)=>{"use strict";var t=n(95318);Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var e=n(94569),l=n(53834),h=t(n(14130)),r=t(n(57509)),d=t(n(17713)),y=t(n(32900)),g=t(n(91938)),p=t(n(83512)),f=t(n(80250)),C=t(n(5137)),N=t(n(14244)),a=t(n(82670)),O=t(n(43757));b.default=function H(){var V={};return V.store=new e.Store(V),V.sdkParams=new l.SDKParams,V.chatEvents=new h.default(V),V.requestBlocker=new r.default(V),V.errorHandler=new d.default(V),V.uploads=new y.default(V),V.messageQueues=new g.default(V),V.httpRequest=new p.default(V),V.podspaceMethods=new f.default(V),V.threadHistory=new C.default(V),V.preferredMediaDevices=new N.default(V),V.threadMethods=new a.default(V),V.typeCodeApiMethods=new O.default(V),V}},47931:(M,b,n)=>{"use strict";var t=n(95318);Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var e=t(n(29079));b.default=function l(r){var d={},y=new e.default(r);return d.currentCall=y.currentCall,d.currentCallMyUser=y.currentCallMyUser,d.callStopQueue=y.callStopQueue,d.calculateScreenSize=y.calculateScreenSize,d.sharedVariables=y.sharedVariables,d.callClientType=y.callClientType,d.callTypes=y.callTypes,d.joinCallParams=y.joinCallParams,d.endScreenShare=y.endScreenShare,d.currentCall=y.currentCall,d.endCall=y.endCall,d.audioCtx=y.audioCtx,d}},69880:(M,b,n)=>{"use strict";var t=n(95318);Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var e=t(n(87757)),l=t(n(59713)),h=t(n(48926)),r=t(n(93706)),d=t(n(63902)),y=t(n(70856)),g=n(44289),p=n(17713),f=t(n(16694));function C(H,F){var V=Object.keys(H);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(H);F&&(D=D.filter(function(U){return Object.getOwnPropertyDescriptor(H,U).enumerable})),V.push.apply(V,D)}return V}function N(H){for(var F=1;F<arguments.length;F++){var V=null!=arguments[F]?arguments[F]:{};F%2?C(Object(V),!0).forEach(function(D){(0,l.default)(H,D,V[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(H,Object.getOwnPropertyDescriptors(V)):C(Object(V)).forEach(function(D){Object.defineProperty(H,D,Object.getOwnPropertyDescriptor(V,D))})}return H}b.default=function a(H){var F=H.app,V=H.callId,D=H.callConfig,U={callId:V,callConfig:D,users:new r.default({app:F,callId:V}),callServerController:new y.default(F),screenShareInfo:new f.default(F),deviceManager:null};function G(){return ie.apply(this,arguments)}function ie(){return ie=(0,h.default)(e.default.mark(function u(){var W,fe,ae=arguments;return e.default.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:return W=!(ae.length>0&&void 0!==ae[0])||ae[0],fe=!(ae.length>1&&void 0!==ae[1])||ae[1],Qe.next=4,U.users.destroy();case 4:F.call.callStopQueue.callStarted&&(K({id:"CLOSE"},null,{}),F.call.callStopQueue.callStarted=!1),fe&&(F.call.joinCallParams.cameraPaused=!1),clearTimeout(U.callRequestTimeout),U.callConfig={},W&&(U.callId=null);case 9:case"end":return Qe.stop()}},u)})),ie.apply(this,arguments)}function K(u,W,fe){var ae=fe.timeoutTime,ye=void 0===ae?0:ae,Qe=fe.timeoutRetriesCount,Ot=void 0===Qe?0:Qe;u.token=F.sdkParams.token,u.uniqueId||(u.uniqueId=d.default.generateUUID()),u.chatId=U.callId;var At={type:3,content:{peerName:U.callServerController.getCurrentServer(),priority:1,content:JSON.stringify(u),ttl:F.sdkParams.messageTtl},uniqueId:u.uniqueId};"function"==typeof W&&(F.store.messagesCallbacks[u.uniqueId]=W),F.call.sharedVariables.asyncClient.send(At,function(Ze){}),(ye||F.call.sharedVariables.globalCallRequestTimeout>0)&&(F.store.asyncRequestTimeouts[u.uniqueId]&&clearTimeout(F.store.asyncRequestTimeouts[u.uniqueId]),F.store.asyncRequestTimeouts[u.uniqueId]=setTimeout(function(){F.store.messagesCallbacks[u.uniqueId]&&delete F.store.messagesCallbacks[u.uniqueId],Ot?(F.sdkParams.consoleLogging&&console.log("[SDK][sendCallMessage] Retrying call request. uniqueId :"+u.uniqueId,{message:u}),K(u,W,{timeoutTime:ye,timeoutRetriesCount:Ot-1})):"function"==typeof W&&W({done:"SKIP"})},ye||F.call.sharedVariables.globalCallRequestTimeout))}function _(u){return N({currentUser:F.store.user.get(),currentServers:{callTurnIp:F.call.sharedVariables.callTurnIp},isJanus:U.callId&&U.callServerController.isJanus(),screenShareInfo:{isStarted:U.screenShareInfo.isStarted(),iAmOwner:U.screenShareInfo.iAmOwner()},callId:U.callId,startCallInfo:U.callConfig},u)}function j(u){K({id:"SENDMETADATA",message:JSON.stringify({id:u.id,userid:u.userid,content:u.content||void 0}),chatId:U.callId},null,{})}var Y={callServerController:function(){return U.callServerController},callConfig:function(){return U.callConfig},callStop:G,endCall:F.call.endCall,users:function(){return U.users},deviceManager:function(){return F.call.sharedVariables.deviceManager},sendCallDivs:function(){F.chatEvents.fireEvent("callEvents",{type:"CALL_DIVS",callId:U.callId,result:U.users.generateCallUIList()})},screenShareInfo:U.screenShareInfo,raiseCallError:function(W,fe,ae){F.errorHandler.raiseError(W,fe,ae,{eventName:"callEvents",eventType:"CALL_ERROR",environmentDetails:_()})},getCallDetails:_,sendCallMessage:K,getTurnServer:function(W){if(W.turnAddress&&W.turnAddress.length>0||F.call.sharedVariables.useInternalTurnAddress&&W.internalTurnAddress&&W.turnAddress.length>0){var fe=F.call.sharedVariables.useInternalTurnAddress?W.internalTurnAddress.split(","):W.turnAddress.split(","),ae=[];for(var ye in fe)ae.push({urls:"turn:"+fe[ye],username:"mkhorrami",credential:"mkh_123456"});return ae}return[{urls:"turn:"+F.call.sharedVariables.callTurnIp+":3478",username:"mkhorrami",credential:"mkh_123456"}]},sendQualityCheckEvent:function(W){var fe=W.userId,ae=W.topic,ye=W.mediaType,Qe=W.isLongTime,Ot=void 0!==Qe&&Qe,At=W.isResolved,Ze=void 0!==At&&At,at=W.canSendCallMetaData,Be=void 0===at||at;"video"===ye&&F.chatEvents.fireEvent("callEvents",{type:Ze?"POOR_VIDEO_CONNECTION_RESOLVED":"POOR_VIDEO_CONNECTION",callId:U.callId,subType:Ze?void 0:Ot?"LONG_TIME":"SHORT_TIME",message:"Poor connection resolved",metadata:{elementId:"uiRemoteVideo-"+ae,topic:ae,userId:fe}}),F.chatEvents.fireEvent("callEvents",{type:Ze?"POOR_CONNECTION_RESOLVED":"POOR_CONNECTION",callId:U.callId,subType:Ze?void 0:Ot?"LONG_TIME":"SHORT_TIME",message:"Poor connection ".concat(Ze?"resolved":""),metadata:{media:ye,elementId:"uiRemoteVideo-"+ae,topic:ae,userId:fe}}),Be&&j({id:Ze?g.callMetaDataTypes.POORCONNECTIONRESOLVED:g.callMetaDataTypes.POORCONNECTION,userid:fe,content:{title:"Poor Connection ".concat(Ze?"Resolved":""),description:ae}})},processCallMessage:function(W){var fe=W.uniqueId;switch("FALSE"!==W.done||"FALSE"===W.done&&"duplicated"===W.desc?F.store.asyncRequestTimeouts[fe]&&clearTimeout(F.store.asyncRequestTimeouts[fe]):"FALSE"===W.done&&F.chatEvents.fireEvent("callEvents",{type:"CALL_ERROR",callId:U.callId,code:7e3,message:"Kurento error: "+(W.desc?W.desc:W.message),environmentDetails:_()}),W.id){case"PROCESS_SDP_ANSWER":!function B(u){var fe,ae,W=U.users.findUserIdByTopic(u.topic);if(W){var ye=U.users.get(W);if(-1!==u.topic.indexOf("Vi-")||-1!==u.topic.indexOf("screen-Share")?fe=ye.videoTopicManager():-1!==u.topic.indexOf("Vo-")&&(fe=ye.audioTopicManager()),fe){if(null==(ae=fe.getPeer()))return void F.chatEvents.fireEvent("callEvents",{type:"CALL_ERROR",callId:U.callId,code:7e3,message:"[handleProcessSdpAnswer] Skip, no WebRTC Peer",error:ae,environmentDetails:_()});ae.processAnswer(u.sdpAnswer,function(Qe){if(Qe)return function w(u){F.chatEvents.fireEvent("callEvents",{type:"CALL_ERROR",callId:U.callId,code:7e3,message:u,environmentDetails:_()}),K({id:"ERROR",message:u},null,{})}("[handleProcessSdpAnswer] Error: "+Qe),void F.chatEvents.fireEvent("callEvents",{type:"CALL_ERROR",callId:U.callId,code:7e3,message:"[handleProcessSdpAnswer] Error: "+Qe,environmentDetails:_()});F.sdkParams.consoleLogging&&console.log("[SDK][handleProcessSdpAnswer]",u,u.topic,fe.metadata().isIceCandidateIntervalSet().toString()),fe.metadata().isIceCandidateIntervalSet()&&(fe.topicMetaData().sdpAnswerReceived=!0)})}}else console.warn("[SDK] Skipping PROCESS_SDP_ANSWER, topic not exists. ",{jsonMessage:u})}(W);break;case"RECEIVING_MEDIA":!function re(u){!0===u.upOrDown&&K({id:"SUBSCRIBE",useComedia:!0,useSrtp:!1,topic:u.topic,mediaType:-1!==u.topic.indexOf("screen-Share")||-1!==u.topic.indexOf("Vi-")?2:1},null,{timeoutTime:4e3,timeoutRetriesCount:5})}(W);break;case"PROCESS_SDP_OFFER":!function oe(u){var fe,ae,W=U.users.findUserIdByTopic(u.topic);W?(U.users.get(W),-1!==u.topic.indexOf("Vi-")||-1!==u.topic.indexOf("screen-Share")?ae=(fe=U.users.get(W).videoTopicManager()).videoTopicManager().getPeer():-1!==u.topic.indexOf("Vo-")&&(ae=(fe=U.users.get(W).audioTopicManager()).audioTopicManager().getPeer()),null!=ae?ae.processOffer(u.sdpOffer,function(Qe,Ot){if(Qe)return console.error("[SDK][handleProcessSdpOffer] Error: "+Qe),void stop();K({id:"RECIVE_SDP_ANSWER",sdpAnswer:Ot,useComedia:!0,useSrtp:!1,topic:u.topic,mediaType:-1!==u.topic.indexOf("screen-Share")||-1!==u.topic.indexOf("Vi-")?2:1},null,{timeoutTime:4e3,timeoutRetriesCount:5}),fe.topicMetaData().sdpAnswerReceived=!0}):console.warn("[handleProcessSdpAnswer] Skip, no WebRTC Peer")):console.warn("[SDK] Skipping PROCESS_SDP_OFFER, topic not exists.",{jsonMessage:u})}(W);break;case"ADD_ICE_CANDIDATE":!function s(u){var fe,W=U.users.findUserIdByTopic(u.topic);if(W){if(u.topic.indexOf("Vi-")>-1||-1!==u.topic.indexOf("screen-Share")?fe=U.users.get(W).videoTopicManager():u.topic.indexOf("Vo-")>-1&&(fe=U.users.get(W).audioTopicManager()),fe){if(null==(fe=fe.getPeer()))return void F.chatEvents.fireEvent("callEvents",{type:"CALL_ERROR",callId:U.callId,code:7e3,message:"[handleAddIceCandidate] Skip, no WebRTC Peer",error:JSON.stringify(fe),environmentDetails:_()});fe.addIceCandidate(u.candidate,function(ae){if(ae)return console.error("[handleAddIceCandidate] "+ae),void F.chatEvents.fireEvent("callEvents",{type:"CALL_ERROR",callId:U.callId,code:7e3,message:"[handleAddIceCandidate] "+ae,error:JSON.stringify(u.candidate),environmentDetails:_()})})}}else console.warn("[SDK] Skipping ADD_ICE_CANDIDATE, topic not exists.",{jsonMessage:u})}(W);break;case"GET_KEY_FRAME":var ae=U.users.get(F.store.user.get().id);ae&&ae.user().video&&ae.videoTopicManager().restartMediaOnKeyFrame(F.store.user.get().id,[2e3,4e3,8e3,12e3]);var ye=U.users.get("screenShare");ye&&ye.user().video&&U.screenShareInfo.isStarted()&&U.screenShareInfo.iAmOwner()&&ye.videoTopicManager().restartMediaOnKeyFrame("screenShare",[2e3,4e3,8e3,12e3]);break;case"FREEZED":!function E(u){if(u&&u.topic&&"Vi"===u.topic.substring(0,2)){var W=U.users.findUserIdByTopic();W&&(U.users.get(W).videoTopicManager().restartMedia(),setTimeout(function(){U.users.get(W).videoTopicManager().restartMedia()},4e3),setTimeout(function(){U.users.get(W).videoTopicManager().restartMedia()},8e3))}}(W);break;case"STOP":case"CLOSE":case"SESSION_NEW_CREATED":case"SESSION_REFRESH":F.store.messagesCallbacks[fe]&&F.store.messagesCallbacks[fe](W);break;case"RECEIVEMETADATA":!function x(u,W){var fe=JSON.parse(u.message),ae=fe.id;if(ae&&!(typeof ae>"u")&&u.userid!=F.store.user.get().id)switch(ae){case g.callMetaDataTypes.POORCONNECTION:Y.sendQualityCheckEvent({userId:fe.userid,topic:fe.content.description,mediaType:-1!==fe.content.description.indexOf("Vi")?"video":"audio",canSendCallMetaData:!1});break;case g.callMetaDataTypes.POORCONNECTIONRESOLVED:Y.sendQualityCheckEvent({userId:fe.userid,topic:fe.content.description,mediaType:-1!==fe.content.description.indexOf("Vi")?"video":"audio",isResolved:!0,canSendCallMetaData:!1});break;case g.callMetaDataTypes.CUSTOMUSERMETADATA:F.store.messagesCallbacks[W]&&F.store.messagesCallbacks[W](u),F.chatEvents.fireEvent("callEvents",{type:"CUSTOM_USER_METADATA",callId:U.callId,userId:fe.userid,content:fe.content});break;case g.callMetaDataTypes.SCREENSHAREMETADATA:U.screenShareInfo.isStarted()&&(U.screenShareInfo.setWidth(fe.content.dimension.width),U.screenShareInfo.setHeight(fe.content.dimension.height),U.screenShareInfo.iAmOwner()&&setTimeout(function(){U.users.get("screenShare")&&U.users.get("screenShare").videoTopicManager()&&U.users.get("screenShare").videoTopicManager().restartMediaOnKeyFrame("screenShare",[2e3])},2500),F.chatEvents.fireEvent("callEvents",{type:"SCREENSHARE_METADATA",callId:U.callId,userId:fe.userid,content:fe.content}))}}(W,fe);break;case"ERROR":Y.raiseCallError(F.errorHandler.getFilledErrorObject(N(N({},p.errorList.CALL_SERVER_ERROR),{},{replacements:[JSON.stringify(W)]})),null,!0);break;case"SEND_SDP_OFFER":case"RECIVE_SDP_OFFER":case"SDP_ANSWER_RECEIVED":break;default:console.warn("[SDK][onmessage] Invalid message, id: "+W.id,W)}F.store.messagesCallbacks[fe]&&delete F.store.messagesCallbacks[fe]},handleParticipantJoin:function(W,fe){if(Array.isArray(W)){var ae=function(Ot){var At={video:W[Ot].video,mute:W[Ot].mute,userId:W[Ot].userId,topicSend:W[Ot].sendTopic,autoStartStreams:!0,callId:U.callId,cameraPaused:!1};U.users.get(At.userId)?(U.users.removeItem(At.userId),new Promise(function(Ze){U.users.addItem(At),Ze()}).then(function(){F.chatEvents.fireEvent("callEvents",{type:"CALL_DIVS",callId:U.callId,result:U.users.generateCallUIList()})})):new Promise(function(Ze){U.users.addItem(At),Ze()}).then(function(){F.chatEvents.fireEvent("callEvents",{type:"CALL_DIVS",callId:U.callId,result:U.users.generateCallUIList()})})};for(var ye in W)ae(ye)}F.chatEvents.fireEvent("callEvents",{type:"CALL_PARTICIPANT_JOINED",callId:U.callId,result:W}),U.users.get(F.store.user.get().id).video&&U.users.get(F.store.user.get().id).videoTopicManager().restartMediaOnKeyFrame(F.store.user().id,[2e3,4e3,8e3,12e3,16e3,24e3]),U.screenShareInfo.isStarted()&&U.screenShareInfo.iAmOwner()&&j({id:g.callMetaDataTypes.SCREENSHAREMETADATA,userid:F.store.user.get().id,content:{dimension:{width:U.screenShareInfo.getWidth(),height:U.screenShareInfo.getHeight()}}})},handleParticipantLeft:function(W,fe){return(0,h.default)(e.default.mark(function ae(){return e.default.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:if(F.chatEvents.fireEvent("callEvents",{type:"CALL_PARTICIPANT_LEFT",callId:U.callId,result:W}),!(Object.values(U.users.getAll()).length<2)){Qe.next=5;break}return F.chatEvents.fireEvent("callEvents",{type:"CALL_ENDED",callId:U.callId}),F.callsManager.removeItem(U.callId),Qe.abrupt("return");case 5:if(!W[0].userId){Qe.next=13;break}if(W[0].userId!=F.store.user.get().id){Qe.next=10;break}F.callsManager.removeItem(U.callId),Qe.next=13;break;case 10:return Qe.next=12,U.users.removeItem(W[0].userId);case 12:U.screenShareInfo.isStarted()&&U.screenShareInfo.getOwner()===W[0].userId&&U.users.removeItem("screenShare");case 13:case"end":return Qe.stop()}},ae)}))()},handleParticipantMute:function(W,fe){if(Array.isArray(W))for(var ae in W){var ye=U.users.get(W[ae].userId);ye&&ye.stopAudio()}setTimeout(function(){F.chatEvents.fireEvent("callEvents",{type:"CALL_DIVS",callId:U.callId,result:U.users.generateCallUIList()})}),F.chatEvents.fireEvent("callEvents",{type:"CALL_PARTICIPANT_MUTE",callId:U.callId,result:W})},handleParticipantUnMute:function(W,fe){return(0,h.default)(e.default.mark(function ae(){var ye;return e.default.wrap(function(At){for(;;)switch(At.prev=At.next){case 0:if(!Array.isArray(W)){At.next=8;break}ye=e.default.mark(function Ze(at){var Be;return e.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:if(!(Be=U.users.get(W[at].userId))){_e.next=6;break}if(!Be.audioTopicManager()){_e.next=5;break}return _e.next=5,Be.destroyAudio();case 5:setTimeout(function(){Be.startAudio(W[at].sendTopic)},50);case 6:case"end":return _e.stop()}},Ze)}),At.t0=e.default.keys(W);case 3:if((At.t1=At.t0()).done){At.next=8;break}return At.delegateYield(ye(At.t1.value),"t2",6);case 6:At.next=3;break;case 8:setTimeout(function(){F.chatEvents.fireEvent("callEvents",{type:"CALL_DIVS",callId:U.callId,result:U.users.generateCallUIList()})}),F.chatEvents.fireEvent("callEvents",{type:"CALL_PARTICIPANT_UNMUTE",callId:U.callId,result:W});case 10:case"end":return At.stop()}},ae)}))()},handleParticipantVideoOn:function(W,fe){return(0,h.default)(e.default.mark(function ae(){var ye;return e.default.wrap(function(At){for(;;)switch(At.prev=At.next){case 0:if(!Array.isArray(W)){At.next=8;break}ye=e.default.mark(function Ze(at){var Be;return e.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:if(!(Be=U.users.get(W[at].userId))){_e.next=6;break}if(!Be.videoTopicManager()){_e.next=5;break}return _e.next=5,Be.destroyVideo();case 5:setTimeout(function(){Be.startVideo(W[at].sendTopic)},50);case 6:case"end":return _e.stop()}},Ze)}),At.t0=e.default.keys(W);case 3:if((At.t1=At.t0()).done){At.next=8;break}return At.delegateYield(ye(At.t1.value),"t2",6);case 6:At.next=3;break;case 8:setTimeout(function(){F.chatEvents.fireEvent("callEvents",{type:"CALL_DIVS",callId:U.callId,result:U.users.generateCallUIList()})}),F.chatEvents.fireEvent("callEvents",{type:"TURN_ON_VIDEO_CALL",callId:U.callId,result:W});case 10:case"end":return At.stop()}},ae)}))()},handleParticipantVideoOff:function(W,fe){if(Array.isArray(W))for(var ae in W){var ye=U.users.get(W[ae].userId);ye&&ye.stopVideo()}setTimeout(function(){F.chatEvents.fireEvent("callEvents",{type:"CALL_DIVS",callId:U.callId,result:U.users.generateCallUIList()})}),F.chatEvents.fireEvent("callEvents",{type:"TURN_OFF_VIDEO_CALL",callId:U.callId,result:W})},handleStartScreenShare:function(W,fe,ae,ye){if(F.sdkParams.consoleLogging&&console.log("[sdk][startScreenShare][onResult]: ",ae),d.default.createReturnData(W,fe,!1,"",0,ae,null).hasError)U.users.removeItem("screenShare");else{if(U.screenShareInfo.setIsStarted(!0),U.screenShareInfo.setOwner(ae.screenOwner.id),U.screenShareInfo.isStarted()&&U.screenShareInfo.iAmOwner(),U.screenShareInfo.isStarted()&&U.screenShareInfo.iAmOwner()){var Ze=F.call.calculateScreenSize({quality:F.call.sharedVariables.startScreenSharetParams.quality});U.screenShareInfo.setWidth(Ze.width),U.screenShareInfo.setHeight(Ze.height),j({id:g.callMetaDataTypes.SCREENSHAREMETADATA,userid:F.store.user.get().id,content:{dimension:{width:U.screenShareInfo.getWidth(),height:U.screenShareInfo.getHeight()}}})}U.screenShareInfo.iAmOwner()?setTimeout(function(){at()},1e3):at()}function at(){D.screenShareObject.callId=U.callId,D.screenShareObject.cameraPaused=!1,D.screenShareObject.userId="screenShare",U.users.addItem(D.screenShareObject,"screenShare"),F.chatEvents.fireEvent("callEvents",{type:"START_SCREEN_SHARE",callId:U.callId,result:ae})}},handleEndScreenShare:function(W,fe){return(0,h.default)(e.default.mark(function ae(){return e.default.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:return U.screenShareInfo.setIsStarted(!1),U.screenShareInfo.setOwner(W.screenOwner.id),Qe.next=4,U.users.removeItem("screenShare");case 4:return Qe.next=6,F.call.sharedVariables.deviceManager.mediaStreams.stopScreenShareInput();case 6:F.chatEvents.fireEvent("callEvents",{type:"END_SCREEN_SHARE",callId:U.callId,result:W}),F.chatEvents.fireEvent("callEvents",{type:"CALL_DIVS",callId:U.callId,result:U.users.generateCallUIList()});case 8:case"end":return Qe.stop()}},ae)}))()},pauseCamera:function(){var W=U.users.get(F.store.user.get().id);!W||!W.user().video||!W.videoTopicManager().getPeer()||W.videoTopicManager().pauseSendStream()},resumeCamera:function(){var W=U.users.get(F.store.user.get().id);!W||!W.user().videoTopicName||!W.videoTopicManager().getPeer()||W.videoTopicManager().resumeSendStream()},pauseMice:function(){var W=U.users.get(F.store.user.get().id);!W||!W.user().audioTopicName||!W.audioTopicManager().getPeer()||W.audioTopicManager().pauseSendStream()},resumeMice:function(){var W=U.users.get(F.store.user.get().id);!W||!W.user().audioTopicName||!W.audioTopicManager().getPeer()||W.audioTopicManager().resumeSendStream()},onChatConnectionReconnect:function(){},destroy:function(){return(0,h.default)(e.default.mark(function W(){return e.default.wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:return ae.next=2,F.call.sharedVariables.deviceManager.onCallEnd();case 2:return ae.abrupt("return",G());case 3:case"end":return ae.stop()}},W)}))()}};return setTimeout(function(){!function q(u){U.callServerController.setServers(u.kurentoAddress),F.call.sharedVariables.callDivId?new Promise(function(W){var fe="boolean"!=typeof u.video||u.video,ae="boolean"==typeof u.mute&&u.mute;if(u.selfData&&(u.selfData.callId=U.callId,u.selfData.cameraPaused=u.cameraPaused,U.users.addItem(u.selfData)),U.screenShareInfo.setOwner(u.screenShareOwner),U.screenShareInfo.setIsStarted(!!u.screenShareOwner),u.recordingOwner&&F.chatEvents.fireEvent("callEvents",{type:"CALL_RECORDING_STARTED",callId:U.callId,result:{id:u.recordingOwner}}),u.clientsList&&u.clientsList.length)for(var ye in u.clientsList)u.clientsList[ye].userId!==F.store.user.get().id&&(u.clientsList[ye].callId=U.callId,u.clientsList[ye].cameraPaused=!1,U.users.addItem(u.clientsList[ye]));U.callConfig.screenShareObject={callId:U.callId,cameraPaused:!1,userId:"screenShare",topicSend:u.screenShare},U.screenShareInfo.setIsStarted(!!U.callConfig.screenShareOwner),U.screenShareInfo.isStarted()&&(U.screenShareInfo.setOwner(U.callConfig.screenShareOwner),U.users.addItem(U.callConfig.screenShareObject,"screenShare")),U.callConfig.callVideo=fe,U.callConfig.callAudio=ae,function J(){F.call.callStopQueue.callStarted=!0,K({id:"CREATE_SESSION",brokerAddress:U.callConfig.brokerAddress,turnAddress:U.callConfig.turnAddress.split(",")[0]},function(ae){"TRUE"===ae.done?F.call.callStopQueue.callStarted=!0:F.callsManager.removeItem(U.callId)},{timeoutTime:4e3,timeoutRetriesCount:5})}(),W()}).then(function(){F.chatEvents.fireEvent("callEvents",{type:"CALL_DIVS",callId:U.callId,result:U.users.generateCallUIList()})}):F.sdkParams.consoleLogging&&console.log("No Call DIV has been declared!")}(U.callConfig)},50),Y}},70856:(M,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0,b.default=function n(e){var l={servers:[],currentServerIndex:0};return{setServers:function(r){l.servers=r,l.currentServerIndex=0},getCurrentServer:function(){return l.servers[0]},isJanus:function(){return"j"===l.servers[l.currentServerIndex].toLowerCase().substr(0,1)},canChangeServer:function(){return l.currentServerIndex<l.servers.length-1},changeServer:function(){this.canChangeServer()&&(e.sdkParams.consoleLogging&&console.debug("[SDK][changeServer] Changing kurento server..."),l.currentServerIndex++)}}}},69667:(M,b,n)=>{"use strict";var t=n(95318);Object.defineProperty(b,"__esModule",{value:!0}),b.CallTopicManager=function p(f){var C=f.app,a=f.userId,H=f.topic,F=f.mediaType,V=f.direction,q=f.onHTMLElement,J={callId:f.callId,userId:a,user:f.user,state:0,peer:null,topic:H,mediaType:F,direction:V,isScreenShare:f.isScreenShare,sdpOfferRequestSent:!1,htmlElement:null,topicMetaData:{interval:null,receivedSdpAnswer:!1,connectionQualityInterval:null,poorConnectionCount:0,poorConnectionResolvedCount:0,isConnectionPoor:!1},isDestroyed:!1,dataStream:null,statusEventsInterval:null,audioObject:null,alreadyAddedStreamTrackToElement:!1},G=new d.topicMetaDataManager({userId:a,topic:H}),ie_DISCONNECTED=0,ie_CONNECTING=1,ie_FAILED=3,ie_CONNECTED=4;function re(B){J.alreadyAddedStreamTrackToElement||(J.alreadyAddedStreamTrackToElement=!0,J.dataStream=B,"audio"==J.mediaType&&"receive"==V?(J.audioObject=new Audio,J.audioObject.srcObject=B,J.audioObject.autoplay=!0,J.audioObject.play(),oe.watchAudioLevel()):"audio"==J.mediaType&&"send"==V?oe.watchAudioLevel():(oe.getHtmlElement().mute=!0,J.htmlElement.srcObject=B,"video"===J.mediaType&&J.htmlElement.load(),q(J.htmlElement)))}var B,oe={getAudioObject:function(){return J.audioObject},getHtmlElement:function(){var s=g.default.generateUUID();if("video"===J.mediaType&&J.user.video&&!J.htmlElement){J.htmlElement=document.createElement("video");var _=J.htmlElement;_.setAttribute("id","callUserVideo-"+J.user.videoTopicName),_.setAttribute("class",C.call.sharedVariables.callVideoTagClassName),_.setAttribute("playsinline",""),_.setAttribute("muted",""),_.setAttribute("autoplay",""),_.setAttribute("data-uniqueId",s),_.setAttribute("width",C.call.sharedVariables.callVideoMinWidth+"px"),_.setAttribute("height",C.call.sharedVariables.callVideoMinHeight+"px")}return J.htmlElement},setPeerState:function(s){J.state=s},setIsScreenShare:function(){J.isScreenShare=!0},setDirection:function(s){J.direction=s},getPeer:function(){return J.peer},metadata:function(){return G},isPeerConnecting:function(){return J.state===ie_CONNECTING},isPeerFailed:function(){return J.state===ie_FAILED},isPeerConnected:function(){return J.state===ie_CONNECTED},isPeerDisconnected:function(){return J.state===ie_DISCONNECTED},createTopic:function(){var s=this;J.peer||(oe.resumeSendStream(),this.generateSdpOfferOptions().then(function(_){C.sdkParams.consoleLogging&&console.debug("[SDK][generateSdpOfferOptions] Options for this request have been resolved: ",{options:_},"userId: ",J.userId,"topic: ",J.topic,"direction: ",J.direction),s.establishPeerConnection(_)}).catch(function(_){console.error(_)}))},generateSdpOfferOptions:function(){return new Promise(function(_,w){var E={audio:"audio"===J.mediaType,video:"video"===J.mediaType};"send"===J.direction&&"video"===J.mediaType&&(E.video={width:C.call.sharedVariables.callVideoMinWidth,height:C.call.sharedVariables.callVideoMinHeight,framerate:15});var x={mediaConstraints:E,configuration:{iceServers:C.call.currentCall().getTurnServer(C.call.currentCall().callConfig())}};"send"===J.direction?"video"===J.mediaType?J.isScreenShare?C.call.currentCall().deviceManager().grantScreenSharePermission({closeStream:!1}).then(function(j){j?(j.getVideoTracks()[0].addEventListener("ended",function Y(u){oe.isDestroyed()||(j.getVideoTracks()[0].removeEventListener("ended",Y),!oe.isDestroyed()&&J.peer&&C.call.endScreenShare({callId:J.callId}))}),x.stream=j,x.sendSource="screen",_(x)):w("Error: could not find screenShareInput")}).catch(function(j){var $="[SDK][grantScreenSharePermission][catch] "+JSON.stringify(j);console.error($),C.call.currentCall().raiseCallError(r.errorList.SCREENSHARE_PERMISSION_ERROR,null,!0),oe.explainUserMediaError(j,"video","screen"),C.call.endScreenShare({callId:J.callId})}):C.call.currentCall().deviceManager().grantUserMediaDevicesPermissions({video:!0},function(j){j.hasError?w(j):(x.stream=C.call.currentCall().deviceManager().mediaStreams.getVideoInput(),_(x))}):"audio"===J.mediaType&&C.call.currentCall().deviceManager().grantUserMediaDevicesPermissions({audio:!0},function(j){if(j.hasError)w(j);else{var $=C.call.currentCall().deviceManager().mediaStreams.getAudioInput();C.call.currentCall().deviceManager().watchAudioInputStream(C.call.currentCall().raiseCallError),x.stream=$,_(x)}}):_(x),C.sdkParams.consoleLogging&&console.log("[SDK][getSdpOfferOptions] ","topic: ",J.topic,"mediaType: ",J.mediaType,"direction: ",J.direction,"options: ",x)})},establishPeerConnection:function(s){var _=this;J.state=ie_CONNECTING,J.peer=new y.WebrtcPeerConnection({callId:J.callId,userId:J.userId,direction:J.direction,mediaType:J.mediaType,stream:s.stream,rtcPeerConfig:s.configuration,connectionStateChange:oe.onConnectionStateChange,iceConnectionStateChange:oe.onIceConnectionStateChange,onTrackCallback:re},function(x){if(C.sdkParams.consoleLogging&&console.debug("[SDK][establishPeerConnection][KurentoUtils.WebRtcPeer][WebRtcFunction]: ",{options:s},"userId: ",J.userId,"topic: ",J.topic,"direction: ",J.direction),x){var j="[SDK][start/webRtc "+J.direction+"  "+J.mediaType+" Peer] Error: "+oe.explainUserMediaError(x,J.mediaType);return console.error(j),void C.chatEvents.fireEvent("callEvents",{type:"CALL_ERROR",callId:J.callId,code:7e3,message:j,environmentDetails:C.call.currentCall().getCallDetails()})}if("send"===J.direction&&C.call.currentCall().users().get(J.userId).user().cameraPaused&&oe.pauseSendStream(),C.call.currentCall().callServerController().isJanus()&&"receive"===J.direction){var $={id:"REGISTER_RECV_NOTIFICATION",topic:J.topic,mediaType:"video"===J.mediaType?2:1};C.call.currentCall().sendCallMessage($,null,{timeoutTime:4e3,timeoutRetriesCount:5})}else J.peer.generateOffer(function(Y,u){if(Y){var W="[SDK][start/WebRc "+J.direction+"  "+J.mediaType+" Peer/generateOffer] "+Y;return console.error(W),void C.chatEvents.fireEvent("callEvents",{type:"CALL_ERROR",callId:J.callId,code:7e3,message:W,environmentDetails:C.call.currentCall().getCallDetails()})}J.sdpOfferRequestSent||(J.sdpOfferRequestSent=!0,_.sendSDPOfferRequestMessage(u,1))})})},onConnectionStateChange:function(){if(C.chatEvents.fireEvent("callStreamEvents",{type:"WEBRTC_CONNECTION_STATE_CHANGE",callId:J.callId,userId:J.userId,topic:J.topic,direction:J.direction,connectionState:J.peer.peerConnection.connectionState,mediaType:J.mediaType}),J.peer&&!oe.isDestroyed()){if(C.sdkParams.consoleLogging&&console.log("[SDK][peerConnection.onconnectionstatechange] ","peer: ",J.topic," peerConnection.connectionState: ",J.peer.peerConnection.connectionState),"disconnected"===J.peer.peerConnection.connectionState&&(oe.removeConnectionQualityInterval(),oe.removeAudioWatcherInterval()),"failed"===J.peer.peerConnection.connectionState){if(oe.isPeerFailed())return;J.state=ie_FAILED,C.chatEvents.fireEvent("callEvents",{type:"CALL_STATUS",callId:J.callId,errorCode:7e3,errorMessage:"Call Peer (".concat(J.topic,") has failed!"),errorInfo:J.peer}),C.messenger.chatState&&oe.shouldReconnectTopic()}"connected"===J.peer.peerConnection.connectionState&&(J.state=ie_CONNECTED,"send"===J.direction&&!J.topicMetaData.connectionQualityInterval&&(J.topicMetaData.connectionQualityInterval=setInterval(function(){oe.checkConnectionQuality()},1e3)))}},onIceConnectionStateChange:function(){if(J.peer&&!oe.isDestroyed()){if(C.sdkParams.consoleLogging&&console.log("[SDK][oniceconnectionstatechange] ","peer: ",J.topic," peerConnection.connectionState: ",J.peer.peerConnection.iceConnectionState),"disconnected"===J.peer.peerConnection.iceConnectionState&&(J.state=ie_DISCONNECTED,C.chatEvents.fireEvent("callEvents",{type:"CALL_STATUS",callId:J.callId,errorCode:7e3,errorMessage:"Call Peer (".concat(J.topic,") is disconnected!"),errorInfo:J.peer}),C.sdkParams.consoleLogging&&console.log("[SDK][oniceconnectionstatechange]:[disconnected] Internet connection failed, Reconnect your call, topic:",J.topic)),"failed"===J.peer.peerConnection.iceConnectionState){if(oe.isPeerFailed())return;J.state=ie_FAILED,C.chatEvents.fireEvent("callEvents",{type:"CALL_STATUS",callId:J.callId,errorCode:7e3,errorMessage:"Call Peer (".concat(J.topic,") has failed!"),errorInfo:J.peer}),C.messenger.chatState&&oe.shouldReconnectTopic()}"connected"===J.peer.peerConnection.iceConnectionState&&(J.state=ie_CONNECTED,"send"===J.direction&&!J.topicMetaData.connectionQualityInterval&&(J.topicMetaData.connectionQualityInterval=setInterval(function(){oe.checkConnectionQuality()},1e3)),"video"===J.mediaType&&"receive"===J.direction&&C.chatEvents.fireEvent("callEvents",{type:"RECEIVE_VIDEO_CONNECTION_ESTABLISHED",callId:J.callId,userId:J.userId}),J.state=ie_CONNECTED,C.chatEvents.fireEvent("callEvents",{type:"CALL_STATUS",callId:J.callId,errorCode:7e3,errorMessage:"Call Peer (".concat(J.topic,") has connected!"),errorInfo:J.peer}))}},sendSDPOfferRequestMessage:function(s,_){C.call.currentCall().sendCallMessage({id:"send"===J.direction?"SEND_SDP_OFFER":"RECIVE_SDP_OFFER",sdpOffer:s,useComedia:!0,useSrtp:!1,topic:J.topic,mediaType:"video"===J.mediaType?2:1},function(w){"FALSE"===w.done&&_>0&&(_-=1,oe.sendSDPOfferRequestMessage(s))},{timeoutTime:4e3,timeoutRetriesCount:5})},watchAudioLevel:function(){var s=J.dataStream,w=J.topicMetaData,E=C.call.audioCtx().createAnalyser();function j($){return $<=-60?0:$>=-60&&$<-50?1:$>=-50&&$<-40?2:$>=-40&&$<30?3:$>=-30?4:void 0}E.fftSize=512,E.smoothingTimeConstant=.1,C.call.audioCtx().createMediaStreamSource(s).connect(E),w.audioLevelInterval=setInterval(function(){var $=new Float32Array(E.frequencyBinCount);E.getFloatFrequencyData($);var Y=Math.max.apply(Math,(0,h.default)($)),u=new Uint8Array(E.frequencyBinCount);E.getByteFrequencyData(u);var W=u.reduce(function(ae,ye){return ae+ye},0),fe=Math.sqrt(W/u.length);Y>-50&&fe>0?C.chatEvents.fireEvent("callStreamEvents",{type:"USER_SPEAKING",callId:J.callId,userId:J.userId,audioLevel:j(Y),isNoise:!1,isMute:!1}):Y!==-1/0&&Y<-60&&fe>0?C.chatEvents.fireEvent("callStreamEvents",{type:"USER_SPEAKING",callId:J.callId,userId:J.userId,audioLevel:0,isNoise:!0,isMute:!1}):Y===-1/0&&0==fe&&C.chatEvents.fireEvent("callStreamEvents",{type:"USER_SPEAKING",callId:J.callId,userId:J.userId,audioLevel:0,isNoise:!1,isMute:!0})},500)},checkConnectionQuality:function(){if(!(C.call.currentCall()&&C.call.currentCall().users().get(J.userId)&&J.peer&&J.peer.peerConnection))return this.removeConnectionQualityInterval(),void this.removeAudioWatcherInterval();J.peer.peerConnection.getStats(null).then(function(s){var w=J.topicMetaData;s.forEach(function(E){E&&E.type&&"remote-inbound-rtp"===E.type&&(!E.roundTripTime||E.roundTripTime>1?(10===w.poorConnectionCount&&C.call.currentCall().sendQualityCheckEvent({userId:J.userId,topic:J.topic,mediaType:J.mediaType,isLongTime:!0}),w.poorConnectionCount>3&&!w.isConnectionPoor?(C.sdkParams.consoleLogging&&console.log("[SDK][checkConnectionQuality] Poor connection detected..."),C.call.currentCall().sendQualityCheckEvent({userId:J.userId,topic:J.topic,mediaType:J.mediaType}),w.isConnectionPoor=!0,w.poorConnectionCount=0,w.poorConnectionResolvedCount=0):J.topicMetaData.poorConnectionCount++):(E.roundTripTime||E.roundTripTime<1)&&(w.poorConnectionResolvedCount>3&&w.isConnectionPoor?(w.poorConnectionResolvedCount=0,w.poorConnectionCount=0,w.isConnectionPoor=!1,C.call.currentCall().sendQualityCheckEvent({userId:J.userId,topic:J.topic,mediaType:J.mediaType,isResolved:!0})):w.poorConnectionResolvedCount++))})})},removeConnectionQualityInterval:function(){J.topicMetaData&&(J.topicMetaData.poorConnectionCount=0,clearInterval(J.topicMetaData.connectionQualityInterval))},removeAudioWatcherInterval:function(){J.topicMetaData&&clearInterval(J.topicMetaData.audioLevelInterval)},shouldReconnectTopic:function(){var s=J.peer.peerConnection.iceConnectionState;oe.isDestroyed()||J.peer&&"connected"!=s&&(C.chatEvents.fireEvent("callEvents",{type:"CALL_STATUS",callId:J.callId,errorCode:7e3,errorMessage:"Call Peer (".concat(J.topic,") is not in connected state, reconnecting peer ...!"),errorInfo:J.peer}),C.call.currentCall().users().get(J.userId).reconnectTopic(J.mediaType))},explainUserMediaError:function(s,_,w){var E=s.name;return"NotFoundError"===E||"DevicesNotFoundError"===E?(C.chatEvents.fireEvent("callEvents",{type:"CALL_ERROR",callId:J.callId,code:7e3,message:"Missing "+("video"===_?"webcam":"mice")+" for required tracks",environmentDetails:C.call.currentCall().getCallDetails()}),alert("Missing "+("video"===_?"webcam":"mice")+" for required tracks"),"Missing "+("video"===_?"webcam":"mice")+" for required tracks"):"NotReadableError"===E||"TrackStartError"===E?(C.chatEvents.fireEvent("callEvents",{type:"CALL_ERROR",callId:J.callId,code:7e3,message:("video"===_?"Webcam":"Mice")+" is already in use",environmentDetails:C.call.currentCall().getCallDetails()}),alert(("video"===_?"Webcam":"Mice")+" is already in use"),("video"===_?"Webcam":"Mice")+" is already in use"):"OverconstrainedError"===E||"ConstraintNotSatisfiedError"===E?(C.chatEvents.fireEvent("callEvents",{type:"CALL_ERROR",callId:J.callId,code:7e3,message:("video"===_?"Webcam":"Mice")+" doesn't provide required tracks",environmentDetails:C.call.currentCall().getCallDetails()}),alert(("video"===_?"Webcam":"Mice")+" doesn't provide required tracks"),("video"===_?"Webcam":"Mice")+" doesn't provide required tracks"):"NotAllowedError"===E||"PermissionDeniedError"===E?(C.chatEvents.fireEvent("callEvents",{type:"CALL_ERROR",callId:J.callId,code:7e3,message:("video"===_?"screen"===w?"ScreenShare":"Webcam":"Mice")+" permission has been denied by the user",environmentDetails:C.call.currentCall().getCallDetails()}),alert(("video"===_?"screen"===w?"ScreenShare":"Webcam":"Mice")+" permission has been denied by the user"),("video"===_?"screen"===w?"ScreenShare":"Webcam":"Mice")+" permission has been denied by the user"):"TypeError"===E?(C.chatEvents.fireEvent("callEvents",{type:"CALL_ERROR",callId:J.callId,code:7e3,message:"No media tracks have been requested",environmentDetails:C.call.currentCall().getCallDetails()}),"No media tracks have been requested"):(C.chatEvents.fireEvent("callEvents",{type:"CALL_ERROR",callId:J.callId,code:7e3,message:"Unknown error: "+s,environmentDetails:C.call.currentCall().getCallDetails()}),"Unknown error: "+s)},stopTopicOnServer:function(){return new Promise(function(s){C.callsManager.get(J.callId).sendCallMessage({id:"STOP",topic:J.topic},function(_){"TRUE"===_.done||"SKIP"===_.done?s():console.warn("[SDK] SDK tried to stop the topic but failed.",J.topic)},{})})},removeTopic:(B=(0,l.default)(e.default.mark(function _(){var w;return e.default.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:w=this,"send"==V&&oe.pauseSendStream(),J.peer&&(w.removeConnectionQualityInterval(),w.removeAudioWatcherInterval(),!J.htmlElement||(J.htmlElement.srcObject=null,J.htmlElement.remove(),document.getElementById("callUserVideo-"+J.user.videoTopicName)&&document.getElementById("callUserVideo-"+J.user.videoTopicName).remove(),delete J.htmlElement),J.audioObject&&(J.audioObject.srcObject=null,delete J.audioObject),J.peer.dispose(),J.peer=null,J.state=ie_DISCONNECTED);case 3:case"end":return x.stop()}},_,this)})),function s(){return B.apply(this,arguments)}),topicMetaData:function(){return J.topicMetaData},pauseSendStream:function(){var s;switch(J.mediaType){case"audio":s=C.call.currentCall().deviceManager().mediaStreams.getAudioInput();break;case"video":s=J.isScreenShare?C.call.currentCall().deviceManager().mediaStreams.getScreenShareInput():C.call.currentCall().deviceManager().mediaStreams.getVideoInput()}s&&(s.getTracks()[0].enabled=!1)},resumeSendStream:function(){var s;switch(J.mediaType){case"audio":s=C.call.currentCall().deviceManager().mediaStreams.getAudioInput();break;case"video":s=J.isScreenShare?C.call.currentCall().deviceManager().mediaStreams.getScreenShareInput():C.call.currentCall().deviceManager().mediaStreams.getVideoInput()}s&&(s.getTracks()[0].enabled=!0)},startMedia:function(){C.sdkParams.consoleLogging&&console.log("[SDK][startMedia] called with: ",J.htmlElement),J.htmlElement&&J.htmlElement.play().catch(function(s){"NotAllowedError"===s.name&&C.chatEvents.fireEvent("callEvents",{type:"CALL_ERROR",callId:J.callId,code:7e3,message:"[startMedia] Browser doesn't allow playing media: "+s,environmentDetails:C.call.currentCall().getCallDetails()})})},restartMediaOnKeyFrame:function(s,_){if(!C.call.currentCall().callServerController().isJanus())for(var w=0;w<_.length;w++)setTimeout(function(){!oe.isDestroyed()&&J.peer&&oe.restartMedia()},_[w])},restartMedia:function(){if(!oe.isDestroyed()&&!C.call.currentCall().users().get(J.userId).user().cameraPaused&&"video"==J.mediaType){C.sdkParams.consoleLogging&&console.log("[SDK] Sending Key Frame ...");var s=document.getElementById("callUserVideo-"+J.user.videoTopicName);s.srcObject||(s.srcObject=J.dataStream);var _=s,w=_.srcObject.getTracks()[0];if(w.enabled=!0,setTimeout(function(){w.enabled=!1,setTimeout(function(){w.enabled=!0},1500)},1500),_){var E=J.isScreenShare?C.call.currentCall().screenShareInfo.getWidth():C.call.sharedVariables.callVideoMinWidth,x=J.isScreenShare?C.call.currentCall().screenShareInfo.getHeight():C.call.sharedVariables.callVideoMinHeight,$=(Math.random(),E-5),Y=x-5;navigator&&navigator.userAgent.match(/firefox/gi)?w.applyConstraints({width:$=E-150,height:Y=x-150,advanced:[{aspectRatio:1.77}]}).then(function(u){w.enabled=!0,setTimeout(function(){w.applyConstraints({width:E,height:x})},1500)}).catch(function(u){return C.sdkParams.consoleLogging&&console.log(u)}):(w.applyConstraints({width:$,height:Y,advanced:[{aspectRatio:1.777}]}).then(function(u){}).catch(function(u){return C.sdkParams.consoleLogging&&console.log(u)}),setTimeout(function(){w.applyConstraints({width:E,height:x})},1500))}}},startStatusPrint:function(){J.statusEventsInterval&&clearInterval(J.statusEventsInterval),J.statusEventsInterval=setInterval(function(){J.peer?J.peer.peerConnection.getStats(null).then(function(s){var _="";s.forEach(function(x){_+="<h2>Report: ".concat(x.type,"</h2>\n<strong>ID:</strong> ").concat(x.id,"<br>\n")+"<strong>Timestamp:</strong> ".concat(x.timestamp,"<br>\n"),Object.keys(x).forEach(function(j){"id"!==j&&"timestamp"!==j&&"type"!==j&&(_+="<strong>".concat(j,":</strong> ").concat(x[j],"<br>\n"))})}),document.getElementById("peer-status-container").innerHTML=_}):J.statusEventsInterval&&clearInterval(J.statusEventsInterval)},1e3)},getStream:function(){return J.dataStream},updateStream:function(s){"audio"==F?(oe.removeAudioWatcherInterval(),J.dataStream=s,oe.watchAudioLevel()):(J.dataStream=s,J.htmlElement.srcObject=s),J.peer.updateStream(s)},stopStatusPrint:function(){J.statusEventsInterval&&clearInterval(J.statusEventsInterval)},changeAudioObject:function(s){J.audioObject.srcObject=null,J.audioObject.srcObject=J.dataStream,J.audioObject.setSinkId(s)},isDestroyed:function(){return J.isDestroyed},destroy:function(){return(0,l.default)(e.default.mark(function s(){return e.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return J.isDestroyed=!0,w.next=3,oe.removeTopic();case 3:case"end":return w.stop()}},s)}))()}};return oe};var e=t(n(87757)),l=t(n(48926)),h=t(n(319)),r=n(17713),d=n(25967),y=n(82779),g=t(n(63902))},22954:(M,b,n)=>{"use strict";var t=n(95318);Object.defineProperty(b,"__esModule",{value:!0}),b.CallScreenShare=function y(g,p){var f={callId:p.callId,userId:p.userId,isMe:p.userId==g.store.user.get().id,user:p,type:"screenShare",containerTag:null,htmlElements:{},videoTopicManager:null},C={getVideoStream:function(){return f.videoTopicManager.getStream()},isMe:function(){return!1},isScreenShare:function(){return!0},user:function(){return f.user},getHTMLElements:function(){return f.htmlElements},appendVideoToCallDiv:function(){var F;if(g.call.sharedVariables.callDivId){var V=f.user,D=document.getElementById(g.call.sharedVariables.callDivId),U=document.getElementById("callParticipantWrapper-"+f.userId);U||(D.appendChild(f.htmlElements.container),U=document.getElementById("callParticipantWrapper-"+f.userId)),V.video&&f.videoTopicManager&&(document.getElementById("callUserVideo-"+f.user.videoTopicName)||(U.appendChild(f.htmlElements[f.user.videoTopicName]),f.videoTopicManager.startMedia())),null===(F=f.videoTopicManager)||void 0===F||F.restartMediaOnKeyFrame("screenShare",[1e3,4e3]),g.call.currentCall().sendCallDivs()}else g.sdkParams.consoleLogging&&console.log("No Call DIV has been declared!")},videoTopicManager:function(){return f.videoTopicManager},audioTopicManager:function(){return f.audioTopicManager},audioStopManager:function(){return f.user.audioStopManager},startAudio:function(F){},startVideo:function(F){f.user.videoTopicName=F,f.user.video=!0,f.videoTopicManager=new h.CallTopicManager({app:g,callId:f.user.callId,userId:f.user.userId,topic:f.user.videoTopicName,mediaType:"video",direction:g.callsManager.get(f.callId).screenShareInfo.iAmOwner()?"send":"receive",user:f.user,isScreenShare:!0,onHTMLElement:function(D){f.htmlElements[f.user.videoTopicName]=D,C.appendVideoToCallDiv()}}),f.videoTopicManager.createTopic()},reconnectTopic:function(F){return(0,l.default)(e.default.mark(function V(){return e.default.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return U.next=2,f.videoTopicManager.stopTopicOnServer();case 2:return U.next=4,C.destroyVideo();case 4:return U.next=6,C.startVideo(f.user.topic);case 6:case"end":return U.stop()}},V)}))()},destroy:function(){return(0,l.default)(e.default.mark(function F(){return e.default.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:if(!f.videoTopicManager||!f.videoTopicManager.getPeer()){D.next=3;break}return D.next=3,f.videoTopicManager.destroy();case 3:f.htmlElements={},p=null;case 5:case"end":return D.stop()}},F)}))()},destroyAudio:function(){return new Promise(function(F){F()})},destroyVideo:function(){return(0,l.default)(e.default.mark(function F(){return e.default.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return D.next=2,f.videoTopicManager.destroy();case 2:delete f.htmlElements[f.user.videoTopicName],f.videoTopicManager=null;case 4:case"end":return D.stop()}},F)}))()}};return function N(H){var F=g.callsManager.get(f.callId).screenShareInfo.iAmOwner(),V={video:!0,callId:H.callId,userId:H.userId,topic:H.topicSend};V.direction=F?"send":"receive",V.videoTopicName=f.topic,f.user=V,function a(){if(!f.htmlElements.container){f.htmlElements.container=document.createElement("div");var H=f.htmlElements.container;H.setAttribute("id","callParticipantWrapper-"+f.userId),H.classList.add("participant"),H.classList.add("wrapper"),H.classList.add("user-"+f.userId),H.classList.add(f.isMe?"local":"remote")}}(),f.user.video&&C.startVideo(V.topic)}(p),C},b.CallUser=function d(g,p){var f={callId:p.callId,userId:p.userId,user:p,isMe:p.userId==g.store.user.get().id,containerTag:null,htmlElements:{},videoTopicManager:null,audioTopicManager:null},C={getAudioStream:function(){return f.audioTopicManager.getStream()},getVideoStream:function(){return f.videoTopicManager.getStream()},switchSpeaker:function(H){return(0,l.default)(e.default.mark(function F(){var V;return e.default.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:(V=f.audioTopicManager)&&V.changeAudioObject(H);case 2:case"end":return U.stop()}},F)}))()},isMe:function(){return f.userId==g.store.user.get().id},isScreenShare:function(){return!1},user:function(){return f.user},getHTMLElements:function(){return f.htmlElements},appendAudioToCallDiv:function(){if(g.call.sharedVariables.callDivId){var H=f.user,F=document.getElementById(g.call.sharedVariables.callDivId),V=document.getElementById("callParticipantWrapper-"+f.userId);V||(F.appendChild(f.htmlElements.container),V=document.getElementById("callParticipantWrapper-"+f.userId)),typeof H.mute<"u"&&!H.mute&&f.audioTopicManager&&(document.getElementById("callUserAudio-"+f.user.audioTopicName)||(V.appendChild(f.htmlElements[f.user.audioTopicName]),f.audioTopicManager.startMedia(),f.audioTopicManager.watchAudioLevel()))}else g.sdkParams.consoleLogging&&console.log("No Call DIV has been declared!")},appendVideoToCallDiv:function(){if(g.call.sharedVariables.callDivId){var H=f.user,F=document.getElementById(g.call.sharedVariables.callDivId),V=document.getElementById("callParticipantWrapper-"+f.userId);V||(F.appendChild(f.htmlElements.container),V=document.getElementById("callParticipantWrapper-"+f.userId)),H.video&&f.videoTopicManager&&(document.getElementById("callUserVideo-"+f.user.videoTopicName)||(V.appendChild(f.htmlElements[f.user.videoTopicName]),f.videoTopicManager.startMedia())),g.call.currentCall().sendCallDivs()}else g.sdkParams.consoleLogging&&console.log("No Call DIV has been declared!")},videoTopicManager:function(){return f.videoTopicManager},audioTopicManager:function(){return f.audioTopicManager},startAudio:function(H){return(0,l.default)(e.default.mark(function F(){return e.default.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:if(!f.audioTopicManager){D.next=2;break}return D.abrupt("return");case 2:f.user.audioTopicName="Vo-"+H,f.user.mute=!1,f.audioTopicManager=new h.CallTopicManager({app:g,callId:f.user.callId,userId:f.user.userId,topic:"Vo-"+f.user.topicSend,mediaType:"audio",direction:f.user.userId===g.store.user.get().id?"send":"receive",user:f.user,onHTMLElement:function(q){f.htmlElements[f.user.audioTopicName]=q,C.appendAudioToCallDiv()}}),f.audioTopicManager.createTopic();case 6:case"end":return D.stop()}},F)}))()},startVideo:function(H){return(0,l.default)(e.default.mark(function F(){return e.default.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:if(!f.videoTopicManager){D.next=2;break}return D.abrupt("return");case 2:f.user.videoTopicName="Vi-"+H,f.user.video=!0,f.videoTopicManager=new h.CallTopicManager({app:g,callId:f.user.callId,userId:f.user.userId,topic:"Vi-"+f.user.topicSend,mediaType:"video",direction:f.user.userId===g.store.user.get().id?"send":"receive",user:f.user,onHTMLElement:function(q){f.htmlElements[f.user.videoTopicName]=q,C.appendVideoToCallDiv()}}),f.videoTopicManager.createTopic();case 6:case"end":return D.stop()}},F)}))()},reconnectTopic:function(H){return(0,l.default)(e.default.mark(function F(){return e.default.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:if("audio"!=H){D.next=9;break}return D.next=3,f.audioTopicManager.stopTopicOnServer();case 3:return D.next=5,C.destroyAudio();case 5:return D.next=7,C.startAudio(f.user.topicSend);case 7:D.next=15;break;case 9:return D.next=11,f.videoTopicManager.stopTopicOnServer();case 11:return D.next=13,C.destroyVideo();case 13:return D.next=15,C.startVideo(f.user.topicSend);case 15:case"end":return D.stop()}},F)}))()},destroy:function(){return(0,l.default)(e.default.mark(function H(){return e.default.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:if(!f.videoTopicManager||!f.videoTopicManager.getPeer()){V.next=3;break}return V.next=3,C.destroyVideo();case 3:if(!f.audioTopicManager||!f.audioTopicManager.getPeer()){V.next=6;break}return V.next=6,C.destroyAudio();case 6:f.htmlElements={},p=null;case 8:case"end":return V.stop()}},H)}))()},stopAudio:function(){return(0,l.default)(e.default.mark(function H(){return e.default.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return f.user.mute=!0,V.next=3,C.destroyAudio();case 3:case"end":return V.stop()}},H)}))()},destroyAudio:function(){return(0,l.default)(e.default.mark(function H(){return e.default.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:if(f.audioTopicManager){V.next=2;break}return V.abrupt("return");case 2:if(!f.isMe){V.next=5;break}return V.next=5,g.call.currentCall().deviceManager().mediaStreams.stopAudioInput();case 5:return V.next=7,f.audioTopicManager.destroy();case 7:delete f.htmlElements[f.user.audioTopicName],f.audioTopicManager=null;case 9:case"end":return V.stop()}},H)}))()},changeAudioStream:function(H,F){var V={deviceId:{exact:H}},D=g.call.currentCall().deviceManager();if(!D.mediaStreams.getAudioInput())throw new Error("[SDK] Microphone is not active");D.mediaStreams.stopAudioInput(),D.grantUserMediaDevicesPermissions({audio:V},function(U){if(U.hasError)g.call.currentCall().raiseCallError({code:U.errorCode,message:U.errorMessage},null,!0),C.stopAudio();else try{f.audioTopicManager.updateStream(D.mediaStreams.getAudioInput()),F&&F()}catch(q){g.call.currentCall().raiseCallError({code:r.errorList.CHANGE_MEDIA_DEVICE_FAILED.code,message:q.message},null,!0),C.stopAudio()}})},changeVideoStream:function(H,F){var V={deviceId:{exact:H}},D=g.call.currentCall().deviceManager();if(!D.mediaStreams.getVideoInput())throw new Error("[SDK] Webcam is not active");D.mediaStreams.stopVideoInput();var U=Object.assign(V,{width:320,framerate:10});g.call.currentCall().deviceManager().grantUserMediaDevicesPermissions({video:U},function(q){if(q.hasError)g.call.currentCall().raiseCallError({code:q.errorCode,message:q.errorMessage},null,!0),g.call.currentCall().users().get(g.store.user.get().id).stopVideo(),setTimeout(function(){var G;g.chatEvents.fireEvent("callEvents",{type:"CALL_DIVS",callId:f.callId,result:null===(G=g.call.currentCall())||void 0===G?void 0:G.users().generateCallUIList()})});else{g.call.currentCall().users().get(g.store.user.get().id);try{f.videoTopicManager.updateStream(g.call.currentCall().deviceManager().mediaStreams.getVideoInput()),F&&F()}catch(G){g.call.currentCall().raiseCallError({code:r.errorList.CHANGE_MEDIA_DEVICE_FAILED.code,message:G.message},null,!0),C.stopVideo(),setTimeout(function(){var ie;g.chatEvents.fireEvent("callEvents",{type:"CALL_DIVS",callId:f.callId,result:null===(ie=g.call.currentCall())||void 0===ie?void 0:ie.users().generateCallUIList()})})}}})},stopVideo:function(){return(0,l.default)(e.default.mark(function H(){return e.default.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return f.user.video=!1,V.next=3,C.destroyVideo();case 3:case"end":return V.stop()}},H)}))()},destroyVideo:function(){return(0,l.default)(e.default.mark(function H(){return e.default.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:if(f.videoTopicManager){V.next=2;break}return V.abrupt("return");case 2:return f.isMe&&g.call.currentCall().deviceManager().mediaStreams.stopVideoInput(),V.next=5,f.videoTopicManager.destroy();case 5:delete f.htmlElements[f.user.videoTopicName],f.videoTopicManager=null;case 7:case"end":return V.stop()}},H)}))()}};return function N(O){f.user=O,f.user.direction=f.isMe?"send":"receive",f.user.videoTopicName="Vi-"+f.user.topicSend,f.user.audioTopicName="Vo-"+f.user.topicSend,function a(){if(!f.htmlElements.container){f.htmlElements.container=document.createElement("div");var O=f.htmlElements.container;O.setAttribute("id","callParticipantWrapper-"+f.userId),O.classList.add("participant"),O.classList.add("wrapper"),O.classList.add("user-"+f.userId),O.classList.add(f.isMe?"local":"remote")}}(),f.user.video&&C.startVideo(f.user.topicSend),f.user.mute||C.startAudio(f.user.topicSend)}(p),C};var e=t(n(87757)),l=t(n(48926)),h=n(69667),r=n(17713)},93706:(M,b,n)=>{"use strict";var t=n(95318);Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var e=t(n(87757)),l=t(n(48926)),h=n(22954);b.default=function r(y){var g=y.app,f={list:{},callId:y.callId},a={addItem:function(H){var F=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"user";"user"==F?f.list[H.userId]=new h.CallUser(g,H):"screenShare"==F&&(f.list[H.userId]=new h.CallScreenShare(g,H))},removeItem:function(H){return(0,l.default)(e.default.mark(function F(){return e.default.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:if(!f.list[H]){D.next=4;break}return D.next=3,f.list[H].destroy();case 3:delete f.list[H];case 4:case"end":return D.stop()}},F)}))()},get:function N(O){return f.list[O]},getAll:function(){return f.list},getHTMLElements:function C(){return Object.values(f.list).map(function(O){return O.getHTMLElements()})},generateCallUIList:function(){g.store.user.get();var F={};if(g.callsManager.get(f.callId)){for(var V in f.list){var D={},U=f.list[V].getHTMLElements();f.list[V]&&U&&(D.container=U.container,("screenShare"===V&&g.call.currentCall().screenShareInfo.isStarted()||"screenShare"!=V&&f.list[V].user().video&&U[f.list[V].user().videoTopicName])&&(D.video=U[f.list[V].user().videoTopicName],D.videoStream=f.list[V].getVideoStream()),F[V]=D)}return{uiElements:F}}},findUserIdByTopic:function(H){for(var F in f.list)if(f.list[F]&&(f.list[F].user().videoTopicName===H||f.list[F].user().audioTopicName===H))return F},destroy:function(){return new Promise(function(H){var F=[];for(var V in f.list){var D=f.list[V];D&&F.push(D.destroy())}Promise.all(F).then(function(){for(var U in f.list)delete f.list[U];H()})})},switchSpeakers:function(H,F){var V=!1;for(var D in f.list){var U=f.list[D];U&&!U.isMe()&&!U.isScreenShare()&&U.audioTopicManager()&&(V=!0,null==U||U.switchSpeaker(H))}if(!V)throw new Error("[SDK] No active audio receiver found.");F&&F({hasError:!1})}};return a}},19815:(M,b,n)=>{"use strict";var t=n(95318);Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var e=t(n(87757)),l=t(n(48926)),h=t(n(69880)),r=t(n(70856)),d=t(n(98435));b.default=function y(p){var f={list:{},currentCallId:null},C={addItem:function(a,O){return(0,l.default)(e.default.mark(function H(){var F;return e.default.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:if((F=new r.default(p)).setServers(O.kurentoAddress),!Object.values(f.list).filter(function(U){return null!=U}).length){D.next=11;break}return D.prev=3,D.next=6,C.destroyAllCalls();case 6:D.next=11;break;case 8:D.prev=8,D.t0=D.catch(3),console.error({error:D.t0});case 11:f.currentCallId=a,f.list[a]=F.isJanus()?new d.default({app:p,callId:a,callConfig:O}):new h.default({app:p,callId:a,callConfig:O});case 13:case"end":return D.stop()}},H,null,[[3,8]])}))()},removeItem:function(a){return(0,l.default)(e.default.mark(function O(){return e.default.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:if(!f.list[a]){F.next=4;break}return F.next=3,f.list[a].destroy();case 3:delete f.list[a];case 4:f.currentCallId=null;case 5:case"end":return F.stop()}},O)}))()},get:function(a){return f.list[a]},currentCallId:function(){return f.currentCallId},routeCallMessage:function(a,O){f.list[a]?f.list[a].processCallMessage(O):p.sdkParams.consoleLogging&&console.warn("[SDK] Skipping call message, call not exists. uniqueId: ",{message:O})},destroyAllCalls:function(){return new Promise(function(a){var O=[];for(var H in f.list)console.log("destroyAllCalls()",H),p.call.endCall({callId:H}),O.push(C.removeItem(H));Promise.all(O).then(function(){a()})})}};return C}},97701:(M,b,n)=>{"use strict";var t=n(95318);Object.defineProperty(b,"__esModule",{value:!0}),b.DeviceManager=function g(p){var f={mediaStreams:new y,streamsMetada:{audioInWatcherId:null},permissionRequests:[],isProcessingPermissionRequests:!1},C={getInputDevicePermission:function(a){var O=a.audio,H=void 0!==O&&O,F=a.video,V=void 0!==F&&F;return new Promise(function(D,U){V&&f.mediaStreams.getVideoInput()?D(f.mediaStreams.getVideoInput()):H&&f.mediaStreams.getAudioInput()?D(f.mediaStreams.getAudioInput()):navigator.mediaDevices.getUserMedia({audio:H,video:V}).then(function(q){H&&f.mediaStreams.setAudioInput(q),V&&f.mediaStreams.setVideoInput(q),D(q)}).catch(function(q){p.chatEvents.fireEvent("callEvents",{type:"CALL_ERROR",code:H?12401:12400,message:q}),U(p.errorHandler.handleError(H?12401:12400))})})},canChooseAudioOutputDevice:function(){return!!navigator.mediaDevices.selectAudioOutput},changeAudioOutputDevice:function(){navigator.mediaDevices.selectAudioOutput?navigator.mediaDevices.selectAudioOutput().then(function(a){console.log(a.kind+": "+a.label+" id = "+a.deviceId)}).catch(function(a){console.log(a.name+": "+a.message)}):console.warn("selectAudioOutput() not supported.")},changeMediaDevice:function(a,O){var H=p.call.currentCall().users().get(p.store.user.get().id),F={deviceId:{exact:a.deviceId}};"audioIn"===a.deviceType?H.changeAudioStream(a.deviceId,O):"audioOut"===a.deviceType?p.call.currentCall().users().switchSpeakers(a.deviceId,O):"videoIn"===a.deviceType&&(F=Object.assign(F,{width:320,framerate:10}),H.changeVideoStream(a.deviceId,O))},getMediaDevices:function(a){var O;null!==(O=navigator.mediaDevices)&&void 0!==O&&O.enumerateDevices?(C.grantUserMediaDevicesPermissions({audio:!0,video:!1},function(H){H.hasError?a&&a(H):navigator.mediaDevices.enumerateDevices().then(function(F){var V={audioinput:[],videoinput:[],audiooutput:[]};F.forEach(function(D){var U,K,q=D.kind,J=D.label,G=D.deviceId,ie=D.groupId;"videoinput"==q?K=G==p.preferredMediaDevices.get("videoIn"):"audioinput"==q?K=G==p.preferredMediaDevices.get("audioIn"):"audiooutput"==q&&(K=G==p.preferredMediaDevices.get("audioOut")),null===(U=V[q])||void 0===U||U.push({label:J,deviceId:G,groupId:ie,active:K,default:!1})}),C.mediaStreams.stopAudioInput(),a&&a({hasError:!1,devices:V})}).catch(function(F){a&&a({hasError:!1,message:F.message,devices:[]}),console.error("".concat(F.name,": ").concat(F.message))})}),navigator.mediaDevices.ondevicechange||(navigator.mediaDevices.ondevicechange=C.handleDeviceChange)):a&&a({hasError:!0})},removeDuplicateGroupIds:function(a){var O="",H={audioinput:!1,videoinput:!1,audiooutput:!1},F={},V={},D=function(J){if(V[J]=new Set,a.hasOwnProperty(J)){F[J]=(0,h.default)(a[J]).reverse().filter(function(ie){return V[J].has(ie.groupId)?(O=ie.groupId,!1):(V[J].add(ie.groupId),!0)});var G=F[J].findIndex(function(ie){return ie.groupId===O});G>-1&&(H[J]=!0,F[J][G].default=!0)}H[J]||(F[J][F[J].length-1].default=!0)};for(var U in a)D(U);return F},handleDeviceChange:function(a){C.deviceChangeFlag||(C.deviceChangeFlag=!0,C.getMediaDevices(function(O){p.chatEvents.fireEvent("callEvents",{type:"USER_MEDIA_DEVICES_CHANGED",result:O.devices})}),setTimeout(function(){C.deviceChangeFlag=!1},1e3))},grantScreenSharePermission:function(a){var O=a.closeStream,H=void 0!==O&&O,F=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new Promise(function(V,D){if(f.mediaStreams.getScreenShareInput()){if(f.mediaStreams.getScreenShareInput().active)return void V(f.mediaStreams.getScreenShareInput());f.mediaStreams.stopScreenShareInput()}navigator.mediaDevices.getDisplayMedia({audio:!1,video:!0}).then(function(U){f.mediaStreams.setScreenShareInput(U),H&&f.mediaStreams.stopScreenShareInput(),F&&F({hasError:!1}),V(U)}).catch(function(U){var q=p.errorHandler.raiseError(d.errorList.SCREENSHARE_PERMISSION_ERROR,F,!0,{eventName:"callEvents",eventType:"CALL_ERROR"});D(q)})})},executePermissionRequest:function(a){var O=a.video,H=a.audio,F=a.closeStream,V=a.callback;return f.isProcessingPermissionRequests=!0,new Promise(function(){var D=(0,r.default)(e.default.mark(function U(q,J){var G;return e.default.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:if(K.prev=0,!H){K.next=4;break}return K.next=4,C.getInputDevicePermission({audio:H});case 4:if(!O){K.next=7;break}return K.next=7,C.getInputDevicePermission({video:O});case 7:F&&(H&&f.mediaStreams.stopAudioInput(),O&&f.mediaStreams.stopVideoInput()),V&&V({hasError:!1}),q({hasError:!1}),K.next=17;break;case 12:K.prev=12,K.t0=K.catch(0),G={hasError:!0,errorCode:K.t0.code,errorMessage:K.t0.message},V&&V(G),J(G);case 17:return f.isProcessingPermissionRequests=!1,K.abrupt("return",C.maybeGoToNext());case 19:case"end":return K.stop()}},U,null,[[0,12]])}));return function(U,q){return D.apply(this,arguments)}}())},maybeGoToNext:function(){!f.isProcessingPermissionRequests&&f.permissionRequests.length&&C.executePermissionRequest(f.permissionRequests.shift())},grantUserMediaDevicesPermissions:function(a){var O=a.video,H=void 0!==O&&O,F=a.audio,V=void 0!==F&&F,D=a.closeStream,U=void 0!==D&&D,q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;p.preferredMediaDevices.get("videoIn")&&H&&("object"==(0,l.default)(H)?H.deviceId||(H.deviceId={exact:p.preferredMediaDevices.get("videoIn")}):H={deviceId:{exact:p.preferredMediaDevices.get("videoIn")}}),p.preferredMediaDevices.get("audioIn")&&V&&("object"==(0,l.default)(V)?V.deviceId||(V.deviceId={exact:p.preferredMediaDevices.get("audioIn")}):V={deviceId:{exact:p.preferredMediaDevices.get("audioIn")}}),f.permissionRequests.push({video:H,audio:V,closeStream:U,callback:q}),C.maybeGoToNext()},mediaStreams:f.mediaStreams,watchAudioInputStream:function(a){f.streamsMetada.audioInWatcherId&&clearInterval(f.streamsMetada.audioInWatcherId),f.streamsMetada.audioInWatcherId=setInterval(function(){var O;if(f.mediaStreams.getAudioInput()){var H=null===(O=f.mediaStreams.getAudioInput())||void 0===O?void 0:O.getAudioTracks();if(0===H.length)return a(d.errorList.NO_AUDIO_TRACKS_AVAILABLE,null,!0,{}),void clearInterval(f.streamsMetada.audioInWatcherId);var F=H[0];F.muted&&(a(d.errorList.AUDIO_TRACK_MUTED,null,!0,{}),clearInterval(f.streamsMetada.audioInWatcherId)),F.enabled||a(d.errorList.AUDIO_TRACK_DISABLED,null,!0,{}),"ended"===F.readyState&&(a(d.errorList.AUDIO_TRACK_ENDED,null,!0,{}),clearInterval(f.streamsMetada.audioInWatcherId))}else clearInterval(f.streamsMetada.audioInWatcherId)},1e4)},onCallEnd:function(){return(0,r.default)(e.default.mark(function a(){return e.default.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return f.permissionRequests=[],f.isProcessingPermissionRequests=!1,H.next=4,f.mediaStreams.stopAudioInput();case 4:return H.next=6,f.mediaStreams.stopVideoInput();case 6:return H.next=8,f.mediaStreams.stopScreenShareInput();case 8:navigator.mediaDevices.ondevicechange=null;case 9:case"end":return H.stop()}},a)}))()}};return C};var e=t(n(87757)),l=t(n(50008)),h=t(n(319)),r=t(n(48926));n(44289);var d=n(17713);function y(){var p={videoIn:null,audioIn:null,audioOut:null,screenShare:null,deviceChangeFlag:!1};return{setAudioInput:function(C){p.audioIn=C},setVideoInput:function(C){p.videoIn=C},setScreenShareInput:function(C){p.screenShare=C},getVideoInput:function(){return p.videoIn},getAudioInput:function(){return p.audioIn},getScreenShareInput:function(){return p.screenShare},stopAudioInput:function(){return(0,r.default)(e.default.mark(function C(){return e.default.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(p.audioIn){a.next=2;break}return a.abrupt("return");case 2:p.audioIn.getTracks().forEach(function(O){O&&O.stop(),p.audioIn=null});case 3:case"end":return a.stop()}},C)}))()},stopVideoInput:function(){return(0,r.default)(e.default.mark(function C(){return e.default.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(p.videoIn){a.next=2;break}return a.abrupt("return");case 2:p.videoIn.getTracks().forEach(function(O){O.stop(),p.videoIn=null});case 3:case"end":return a.stop()}},C)}))()},stopScreenShareInput:function(){return(0,r.default)(e.default.mark(function C(){return e.default.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(p.screenShare){a.next=2;break}return a.abrupt("return");case 2:p.screenShare.getTracks().forEach(function(O){O.stop()}),p.screenShare=null;case 4:case"end":return a.stop()}},C)}))()}}}},98435:(M,b,n)=>{"use strict";var t=n(95318);Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var e=t(n(87757)),l=t(n(59713)),h=t(n(48926)),r=t(n(59386)),d=t(n(63902)),y=t(n(70856)),g=n(44289),p=n(17713),f=t(n(48056)),C=t(n(16694));function N(U,q){var J=Object.keys(U);if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(U);q&&(G=G.filter(function(ie){return Object.getOwnPropertyDescriptor(U,ie).enumerable})),J.push.apply(J,G)}return J}function a(U){for(var q=1;q<arguments.length;q++){var J=null!=arguments[q]?arguments[q]:{};q%2?N(Object(J),!0).forEach(function(G){(0,l.default)(U,G,J[G])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(J)):N(Object(J)).forEach(function(G){Object.defineProperty(U,G,Object.getOwnPropertyDescriptor(J,G))})}return U}function F(U,q){(null==q||q>U.length)&&(q=U.length);for(var J=0,G=new Array(q);J<q;J++)G[J]=U[J];return G}b.default=function V(U){var q=U.app,J=U.callId,G=U.callConfig,ie={callId:J,callConfig:G,users:new r.default({app:q,callId:J}),callServerController:new y.default(q),screenShareInfo:new C.default(q),deviceManager:null,sendPeerManager:null,receivePeerManager:null,receivePeerSdpVersion:0,isReconnecting:!1,isDestroyed:!1,onChatReadyUniqueId:null,inquiryCallCounter:0};function K(){ie.inquiryCallCounter||(ie.inquiryCallCounter++,setTimeout(function(){ie.inquiryCallCounter=0,(!ie.isDestroyed&&ie.receivePeerManager.isPeerFailed()||ie.sendPeerManager.isPeerFailed())&&K()},9e3),q.call.inquiryCallParticipants.inquiryCallParticipants({},function(){var Ge=(0,h.default)(e.default.mark(function Ft(br){var rt,st,Dt,ot,nt;return e.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:if(br.hasError){Ne.next=24;break}if(null!==(rt=br.result)&&void 0!==rt&&rt.callParticipantVOs&&br.result.callParticipantVOs.length&&((Dt=null===(st=br.result)||void 0===st?void 0:st.callParticipantVOs).forEach(function(X){ie.users.userExists(X.userId)||ie.users.addItem({clientId:X.participantVO.ssoId,topicSend:X.sendTopic,mute:X.mute,video:X.video,userId:X.userId,callId:ie.callId,cameraPaused:!1,brokerAddress:ie.callConfig.brokerAddress})}),ot=Dt.map(function(X){return X.userId}),Object.keys(ie.users.getAll()).forEach(function(X){!ot.includes(Number(X))&&"screenShare"!=X&&ie.users.removeItem(X)})),!Number(br.result.screenShareUser)){Ne.next=16;break}if(nt=ie.users.findUserIdByClientId(Number(br.result.screenShareUser)),G.screenShareOwner=nt,ie.screenShareInfo.setOwner(G.screenShareOwner),ie.screenShareInfo.setIsStarted(!0),ie.callConfig.screenShareObject.clientId=Number(br.result.screenShareUser),ie.callConfig.screenShareObject.brokerAddress=ie.callConfig.brokerAddress,!ie.users.userExists("screenShare")){Ne.next=13;break}return Ne.next=12,ie.users.removeItem("screenShare");case 12:case 13:ie.users.addItem(ie.callConfig.screenShareObject,"screenShare"),Ne.next=20;break;case 16:if(!ie.users.userExists("screenShare")){Ne.next=20;break}return Ne.next=19,ie.users.removeItem("screenShare");case 19:case 20:Number(br.result.recordingUser)?q.chatEvents.fireEvent("callEvents",{type:"CALL_RECORDING_STARTED",callId:ie.callId,result:{id:br.result.recordingUser}}):ie.callConfig.recordingOwner&&q.chatEvents.fireEvent("callEvents",{type:"STOP_RECORDING_CALL",callId:ie.callId,result:{id:ie.callConfig.recordingOwner}}),setTimeout(function(){ie.isReconnecting=!0,oe({})},500),Ne.next=25;break;case 24:171==br.errorCode?(q.call.endCall({callId:ie.callId},null),q.chatEvents.fireEvent("callEvents",{type:"YOU_DROPPED_FROM_CALL",callId:ie.callId,result:{callId:ie.callId,userId:q.store.user.get().id}}),q.callsManager.removeItem(ie.callId)):163==br.errorCode&&(q.call.endCall({callId:ie.callId},null),q.chatEvents.fireEvent("callEvents",{type:"CALL_ENDED",callId:ie.callId}),q.callsManager.removeItem(ie.callId));case 25:case"end":return Ne.stop()}},Ft)}));return function(Ft){return Ge.apply(this,arguments)}}()))}function re(){oe({receivePeer:!1})}function oe(ft){var Ge=ft.sendPeer,br=ft.receivePeer,st=!1,Dt=!1;(void 0===Ge||Ge)&&(st=!0),(void 0===br||br)&&(Dt=!0),Dt&&(q.chatEvents.fireEvent("callEvents",{type:"PEER_RECONNECTING",callId:ie.callId,direction:"receive"}),ie.users.stopAllReceivers()),st&&(q.chatEvents.fireEvent("callEvents",{type:"PEER_RECONNECTING",callId:ie.callId,direction:"send"}),ie.users.stopAllSenders()),setTimeout(function(){st&&s("send"),Dt&&s("receive"),setTimeout(function(){Dt&&_("receive"),st&&_("send"),setTimeout(function(){st&&ie.users.startAllsenders(),Dt?(console.log("xxx receivePeerFailed 1"),Object.values(ie.users.getAll()).forEach(function(ot){ot.isMe()||ot.resetTopicVersions()}),Qe(),ie.isReconnecting=!1):(console.log("xxx receivePeerFailed 2"),ie.receivePeerManager.repairMutedTracks(),ie.isReconnecting=!1,$({id:"REQUEST_LATEST_SDP_OFFER",token:q.sdkParams.token,chatId:ie.callId,sdpVersion:ie.receivePeerSdpVersion,clientId:ie.users.get(q.store.user.get().id).user().clientId},null,{}))},200)},200)},200)}function B(){q.messenger.chatState&&K()}function s(ft){"send"===ft?ie.sendPeerManager&&(ie.sendPeerManager.destroy(),ie.sendPeerManager=null):ie.receivePeerManager&&(ie.receivePeerManager.destroy(),ie.receivePeerManager=null,ie.users.resetTopicVersions())}function _(ft){"send"==ft?ie.sendPeerManager=new f.default({app:q,callId:J,direction:"send",rtcPeerConfig:{iceServers:$e.getTurnServer($e.callConfig()),iceTransportPolicy:"relay"},brokerAddress:ie.callConfig.brokerAddress,onPeerFailed:B,onSendTrackFailed:re}):ie.receivePeerManager=new f.default({app:q,callId:J,direction:"receive",rtcPeerConfig:{iceServers:$e.getTurnServer($e.callConfig()),iceTransportPolicy:"relay"},brokerAddress:ie.callConfig.brokerAddress,onPeerFailed:B})}function w(ft){ie.callServerController.setServers(ft.kurentoAddress),_("send"),_("receive"),ie.onChatReadyUniqueId=q.chatEvents.on("chatReady",K),q.call.sharedVariables.callDivId?new Promise(function(Ge){var Ft="boolean"!=typeof ft.video||ft.video,br="boolean"==typeof ft.mute&&ft.mute;if(ft.selfData&&(ft.selfData.callId=ie.callId,ft.selfData.cameraPaused=ft.cameraPaused,ft.selfData.brokerAddress=ie.callConfig.brokerAddress,ie.users.addItem(ft.selfData)),ie.screenShareInfo.setOwner(ft.screenShareOwner),ie.screenShareInfo.setIsStarted(!!ft.screenShareOwner),ft.recordingOwner&&q.chatEvents.fireEvent("callEvents",{type:"CALL_RECORDING_STARTED",callId:ie.callId,result:{id:ft.recordingOwner}}),ft.clientsList&&ft.clientsList.length)for(var rt in ft.clientsList)ft.clientsList[rt].userId!==q.store.user.get().id&&(ft.clientsList[rt].callId=ie.callId,ft.clientsList[rt].cameraPaused=!1,ft.clientsList[rt].brokerAddress=ie.callConfig.brokerAddress,ie.users.addItem(ft.clientsList[rt]));if(ie.callConfig.screenShareObject={callId:ie.callId,cameraPaused:!1,userId:"screenShare",topicSend:ft.screenShare},ie.screenShareInfo.setIsStarted(!!ie.callConfig.screenShareOwner),ie.screenShareInfo.isStarted()){ft.screenShare.split("-");var Dt,nt,ot=function O(U,q){var J=typeof Symbol<"u"&&U[Symbol.iterator]||U["@@iterator"];if(!J){if(Array.isArray(U)||(J=function H(U,q){if(U){if("string"==typeof U)return F(U,q);var J=Object.prototype.toString.call(U).slice(8,-1);if("Object"===J&&U.constructor&&(J=U.constructor.name),"Map"===J||"Set"===J)return Array.from(U);if("Arguments"===J||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J))return F(U,q)}}(U))||q&&U&&"number"==typeof U.length){J&&(U=J);var G=0,ie=function(){};return{s:ie,n:function(){return G>=U.length?{done:!0}:{done:!1,value:U[G++]}},e:function(s){throw s},f:ie}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var oe,K=!0,re=!1;return{s:function(){J=J.call(U)},n:function(){var s=J.next();return K=s.done,s},e:function(s){re=!0,oe=s},f:function(){try{!K&&null!=J.return&&J.return()}finally{if(re)throw oe}}}}(ft.clientsList);try{for(ot.s();!(nt=ot.n()).done;){var Yt=nt.value;Yt.userId==ie.callConfig.screenShareOwner&&(Dt=Yt.clientId)}}catch(Ne){ot.e(Ne)}finally{ot.f()}ie.callConfig.screenShareObject.clientId=Dt,ie.callConfig.screenShareObject.brokerAddress=ie.callConfig.brokerAddress,ie.screenShareInfo.setOwner(ie.callConfig.screenShareOwner),ie.users.addItem(ie.callConfig.screenShareObject,"screenShare")}ie.callConfig.callVideo=Ft,ie.callConfig.callAudio=br,function E(){q.call.callStopQueue.callStarted=!0;$({id:"CREATE_SESSION",brokerAddress:ie.callConfig.brokerAddress,turnAddress:ie.callConfig.turnAddress.split(",")[0],chatId:J,token:q.sdkParams.token},function(br){if("TRUE"===br.done){q.call.callStopQueue.callStarted=!0;var rt=ie.users.get(q.store.user.get().id);rt.user().video&&rt.startVideo(rt.user().topicSend,null),rt.user().mute||rt.startAudio(rt.user().topicSend,null)}else q.callsManager.removeItem(ie.callId)},{timeoutTime:4e3,timeoutRetriesCount:5})}(),Ge()}).then(function(){q.chatEvents.fireEvent("callEvents",{type:"CALL_DIVS",callId:ie.callId,result:ie.users.generateCallUIList()})}):q.sdkParams.consoleLogging&&console.log("No Call DIV has been declared!")}function x(){return j.apply(this,arguments)}function j(){return j=(0,h.default)(e.default.mark(function ft(){var Ge,Ft,br=arguments;return e.default.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:return Ge=!(br.length>0&&void 0!==br[0])||br[0],Ft=!(br.length>1&&void 0!==br[1])||br[1],st.next=4,ie.users.destroy();case 4:ie.sendPeerManager.destroy(),ie.receivePeerManager.destroy(),q.call.callStopQueue.callStarted&&($({id:"EXIT_CLIENT",token:q.sdkParams.token},null,{}),q.call.callStopQueue.callStarted=!1),Ft&&(q.call.joinCallParams.cameraPaused=!1),clearTimeout(ie.callRequestTimeout),ie.callConfig={},Ge&&(ie.callId=null);case 11:case"end":return st.stop()}},ft)})),j.apply(this,arguments)}function $(ft,Ge,Ft){var br=Ft.timeoutTime,rt=void 0===br?0:br,st=Ft.timeoutRetriesCount,Dt=void 0===st?0:st;ft.token=q.sdkParams.token,ft.uniqueId||(ft.uniqueId=d.default.generateUUID()),ft.chatId=ie.callId;var ot={type:3,content:{peerName:ie.callServerController.getCurrentServer(),priority:1,content:JSON.stringify(ft),ttl:q.sdkParams.messageTtl},uniqueId:ft.uniqueId};"function"==typeof Ge&&(q.store.messagesCallbacks[ft.uniqueId]=Ge),q.call.sharedVariables.asyncClient.send(ot,function(nt){}),(rt||q.call.sharedVariables.globalCallRequestTimeout>0)&&(q.store.asyncRequestTimeouts[ft.uniqueId]&&clearTimeout(q.store.asyncRequestTimeouts[ft.uniqueId]),q.store.asyncRequestTimeouts[ft.uniqueId]=setTimeout(function(){q.store.messagesCallbacks[ft.uniqueId]&&delete q.store.messagesCallbacks[ft.uniqueId],Dt?(q.sdkParams.consoleLogging&&console.log("[SDK][sendCallMessage] Retrying call request. uniqueId :"+ft.uniqueId,{message:ft}),$(ft,Ge,{timeoutTime:rt,timeoutRetriesCount:Dt-1})):"function"==typeof Ge&&Ge({done:"SKIP"})},rt||q.call.sharedVariables.globalCallRequestTimeout))}var Y=null,W=null,ye=null;function Qe(){ye&&clearTimeout(ye),ye=setTimeout(function(){$({id:"REQUEST_RECEIVING_MEDIA",token:q.sdkParams.token,chatId:ie.callId,brokerAddress:ie.callConfig.brokerAddress},null,{})},1e3)}function Be(ft){return a({currentUser:q.store.user.get(),currentServers:{callTurnIp:q.call.sharedVariables.callTurnIp},isJanus:ie.callId&&ie.callServerController.isJanus(),screenShareInfo:{isStarted:ie.screenShareInfo.isStarted(),iAmOwner:ie.screenShareInfo.iAmOwner()},callId:ie.callId,startCallInfo:ie.callConfig},ft)}function be(ft){$({id:"SENDMETADATA",message:JSON.stringify({id:ft.id,userid:ft.userid,content:ft.content||void 0}),chatId:ie.callId},null,{})}var $e={requestReceivingMedia:Qe,setReceivePeerSdpVersion:function(Ge){ie.receivePeerSdpVersion=Ge},getReceivePeerSdpVersion:function(Ge){return ie.receivePeerSdpVersion},callServerController:function(){return ie.callServerController},callConfig:function(){return ie.callConfig},callStop:x,endCall:q.call.endCall,users:function(){return ie.users},deviceManager:function(){return q.call.sharedVariables.deviceManager},sendCallDivs:function(){q.chatEvents.fireEvent("callEvents",{type:"CALL_DIVS",callId:ie.callId,result:ie.users.generateCallUIList()})},screenShareInfo:ie.screenShareInfo,raiseCallError:function(Ge,Ft,br){q.errorHandler.raiseError(Ge,Ft,br,{eventName:"callEvents",eventType:"CALL_ERROR",callId:ie.callId,environmentDetails:Be()})},getCallDetails:Be,sendCallMessage:$,sendPeerManager:function(){return ie.sendPeerManager},receivePeerManager:function(){return ie.receivePeerManager},getTurnServer:function(Ge){if(Ge.turnAddress&&Ge.turnAddress.length>0||q.call.sharedVariables.useInternalTurnAddress&&Ge.internalTurnAddress&&Ge.turnAddress.length>0){var Ft=q.call.sharedVariables.useInternalTurnAddress?Ge.internalTurnAddress.split(","):Ge.turnAddress.split(","),br=[];for(var rt in Ft)br.push({urls:"turn:"+Ft[rt],username:"mkhorrami",credential:"mkh_123456"});return br}return[{urls:"turn:"+q.call.sharedVariables.callTurnIp+":3478",username:"mkhorrami",credential:"mkh_123456"}]},sendQualityCheckEvent:function(Ge){var Ft=Ge.userId,br=Ge.topic,rt=Ge.mediaType,st=Ge.isLongTime,Dt=void 0!==st&&st,ot=Ge.isResolved,nt=void 0!==ot&&ot,Yt=Ge.canSendCallMetaData,Ne=void 0===Yt||Yt;"video"===rt&&q.chatEvents.fireEvent("callEvents",{type:nt?"POOR_VIDEO_CONNECTION_RESOLVED":"POOR_VIDEO_CONNECTION",callId:ie.callId,subType:nt?void 0:Dt?"LONG_TIME":"SHORT_TIME",message:"Poor connection resolved",metadata:{elementId:"uiRemoteVideo-"+br,topic:br,userId:Ft}}),q.chatEvents.fireEvent("callEvents",{type:nt?"POOR_CONNECTION_RESOLVED":"POOR_CONNECTION",callId:ie.callId,subType:nt?void 0:Dt?"LONG_TIME":"SHORT_TIME",message:"Poor connection ".concat(nt?"resolved":""),metadata:{media:rt,elementId:"uiRemoteVideo-"+br,topic:br,userId:Ft}}),Ne&&be({id:nt?g.callMetaDataTypes.POORCONNECTIONRESOLVED:g.callMetaDataTypes.POORCONNECTION,userid:Ft,content:{title:"Poor Connection ".concat(nt?"Resolved":""),description:br}})},processCallMessage:function(Ge){var Ft=Ge.uniqueId;switch("FALSE"!==Ge.done||"FALSE"===Ge.done&&"duplicated"===Ge.desc?q.store.asyncRequestTimeouts[Ft]&&clearTimeout(q.store.asyncRequestTimeouts[Ft]):"FALSE"===Ge.done&&q.chatEvents.fireEvent("callEvents",{type:"CALL_ERROR",callId:ie.callId,code:7e3,message:"Kurento error: "+(Ge.desc?Ge.desc:Ge.message),environmentDetails:Be()}),Ge.id){case"PROCESS_SDP_ANSWER":!function At(ft){var Ge=ie.sendPeerManager.getPeer();null!=Ge?Ge.processAnswer(ft.sdpAnswer,function(Ft){if(Ft)return function Lt(ft){q.chatEvents.fireEvent("callEvents",{type:"CALL_ERROR",callId:ie.callId,code:7e3,message:ft,environmentDetails:Be()}),$({id:"ERROR",message:ft},null,{})}("[handleProcessSdpAnswer] Error: "+Ft),void q.chatEvents.fireEvent("callEvents",{type:"CALL_ERROR",callId:ie.callId,code:7e3,message:"[handleProcessSdpAnswer] Error: "+Ft,environmentDetails:Be()});q.sdkParams.consoleLogging&&console.log("[SDK][handleProcessSdpAnswer]",ft)}):q.chatEvents.fireEvent("callEvents",{type:"CALL_ERROR",callId:ie.callId,code:7e3,message:"[handleProcessSdpAnswer] Skip, no WebRTC Peer",error:Ge,environmentDetails:Be()})}(Ge);break;case"SEND_COMPLETE":case"UNPUBLISHED":case"GET_KEY_FRAME":break;case"RECEIVING_MEDIA":q.store.messagesCallbacks[Ft]?q.store.messagesCallbacks[Ft](Ge):ie.isReconnecting||function u(ft){if(ie.receivePeerManager&&ft&&ft.recvList&&ft.recvList.length)try{var Ge=[],Ft=JSON.parse(ft.recvList);console.log("[media][RECEIVING_MEDIA] Received.. , clientIds: ",Ft.map(function(Dt){return Dt.clientId}).join(", ")," |||  topics: ",Ft.map(function(Dt){return Dt.topic}).join(", "));for(var br=Ft.length-1;br>=0;br--)if(!Ge.includes(Ft[br].topic)){Ge.push(Ft[br].topic);var rt=ie.users.findUserIdByTopic(Ft[br].topic),st=ie.users.get(rt);console.log("[media][[RECEIVING_MEDIA][User] clientId: ",Ft[br].clientId," , topic: ",Ft[br].topic," , item: ",Ft[br],{userId:rt,user:st}),st?st.isScreenShare()&&!ie.screenShareInfo.iAmOwner()||!st.isMe()?st.processTrackChange(Ft[br]):st.isMe()&&(ie.sendPeerManager.removeRequestTimeoutByTopic(Ft[br].topic),ie.sendPeerManager.processingCurrentTrackCompleted()):(console.log("[media][RECEIVING_MEDIA] User not found in the call , clientIds: ",Ft[br]),console.error("[SDK][handleReceivingTracksChanges] User not found in the call. ",Ft[br]))}Y&&clearTimeout(Y),Y=setTimeout(function(){ie.receivePeerManager&&ie.receivePeerManager.maybeNextTrack()},1e3)}catch(Dt){console.error("Unable to parse receive list",Dt)}}(Ge);break;case"PROCESS_SDP_OFFER":case"PROCESS_SDP_UPDATE":!function fe(ft){if(ie.receivePeerManager&&(ie.receivePeerSdpVersion=ft.sdpVersion,ie.receivePeerManager&&(ie.receivePeerManager.removeRequestTimeout(ft.uniqueId),ft.topic&&ft.topic.length))){var Ge=ft.sdpOffer.substring(ft.sdpOffer.indexOf("IP4"));W==Ge?(console.warn("[media][handleProcessSdpOffer] same offers",{prevOffer:W},ft.sdpOffer),ie.receivePeerManager.handleProcessSDPOfferForReceiveTrackUseExsistingTracks(ft,null)):ie.receivePeerManager.handleProcessSDPOfferForReceiveTrack(ft,null),W=Ge}}(Ge);break;case"PROCESS_SDP_NEGOTIATE":!function ae(ft){!ie.receivePeerManager||(ie.receivePeerSdpVersion=ft.sdpVersion,ie.receivePeerManager.removeRequestTimeout(ft.uniqueId),ie.receivePeerManager.addNegotiationOfferToQueue(ft.sdpOffer,ft.topic),ie.receivePeerManager.maybeNextTrack())}(Ge);break;case"PROCESS_LATEST_SDP_OFFER":!function Ot(ft){!ie.receivePeerManager||(ie.receivePeerSdpVersion=ft.sdpVersion,ie.receivePeerManager.removeRequestTimeout(ft.uniqueId),ft.sdpOffer?ie.receivePeerManager.addNegotiationOfferToQueue(ft.sdpOffer,[]):Qe())}(Ge);break;case"SEND_ADD_ICE_CANDIDATE":!function Ze(ft){var Ge=ie.sendPeerManager.getPeer();if(Ge){if(ft.candidate&&ft.candidate.length){var Ft=JSON.parse(ft.candidate);ie.sendPeerManager.addIceCandidateToQueue(Ft)}}else q.chatEvents.fireEvent("callEvents",{type:"CALL_ERROR",callId:ie.callId,code:7e3,message:"[handleSendAddIceCandidate] Skip, no WebRTC Peer",error:JSON.stringify(Ge),environmentDetails:Be()})}(Ge);break;case"RECIVE_ADD_ICE_CANDIDATE":!function at(ft){if(ie.receivePeerManager){var Ge=ie.receivePeerManager.getPeer();if(!Ge)return void q.chatEvents.fireEvent("callEvents",{type:"CALL_ERROR",callId:ie.callId,code:7e3,message:"[handleReceiveAddIceCandidate] Skip, no WebRTC Peer",error:JSON.stringify(Ge),environmentDetails:Be()});if(ft.candidate&&ft.candidate.length){var Ft=JSON.parse(ft.candidate);ie.receivePeerManager.addIceCandidateToQueue(Ft)}}}(Ge);break;case"JOIN_AADDITIONN_COMPLETE":var br=JSON.parse(Ge.topic);console.log("[media][JOIN_AADDITIONN_COMPLETE] topics: ",br.map(function(st){return st.topic}).join(",")),ie.receivePeerManager&&ie.receivePeerManager.processingCurrentTrackCompleted();break;case"JOIN_DELETION_COMPLETE":console.log("[media][JOIN_DELETION_COMPLETE] ",{message:Ge}),ie.receivePeerManager&&ie.receivePeerManager.processingCurrentTrackCompleted(),ie.isReconnecting=!1,ie.receivePeerManager&&Qe();break;case"SUB_FAILED":case"UPDATE_FAILED":if(oe({sendPeer:!1}),Ge.topic&&Ge.topic.length){var rt=JSON.parse(Ge.topic);console.log("[media][SUB_FAILED/UPDATE_FAILED] topics: ",rt.map(function(st){return st.topic}).join(", ")),rt.forEach(function(st){var Dt=ie.users.findUserIdByTopic(st.topic),ot=ie.users.get(Dt);ot&&(ot.isScreenShare()&&!ie.screenShareInfo.iAmOwner()||!ot.isMe())&&ot.resetTopicVersion(st)})}break;case"STOP":case"EXIT_CLIENT":case"CLOSE":case"SESSION_NEW_CREATED":case"SESSION_REFRESH":q.store.messagesCallbacks[Ft]&&q.store.messagesCallbacks[Ft](Ge);break;case"SLOW_LINK":!function ne(ft){console.log("handleSlowLink ",{jsonMessage:ft});var Ge=ie.users.findUserIdByClientId(ft.client);ie.users.get(Ge).startSLowLink()}(Ge);break;case"RECEIVEMETADATA":!function _e(ft,Ge){var Ft=JSON.parse(ft.message),br=Ft.id;if(br&&!(typeof br>"u")&&ft.userid!=q.store.user.get().id)switch(br){case g.callMetaDataTypes.POORCONNECTION:$e.sendQualityCheckEvent({userId:Ft.userid,topic:Ft.content.description,mediaType:-1!==Ft.content.description.indexOf("Vi")?"video":"audio",canSendCallMetaData:!1});break;case g.callMetaDataTypes.POORCONNECTIONRESOLVED:$e.sendQualityCheckEvent({userId:Ft.userid,topic:Ft.content.description,mediaType:-1!==Ft.content.description.indexOf("Vi")?"video":"audio",isResolved:!0,canSendCallMetaData:!1});break;case g.callMetaDataTypes.CUSTOMUSERMETADATA:q.store.messagesCallbacks[Ge]&&q.store.messagesCallbacks[Ge](ft),q.chatEvents.fireEvent("callEvents",{type:"CUSTOM_USER_METADATA",callId:ie.callId,userId:Ft.userid,content:Ft.content});break;case g.callMetaDataTypes.SCREENSHAREMETADATA:ie.screenShareInfo.isStarted()&&(ie.screenShareInfo.setWidth(Ft.content.dimension.width),ie.screenShareInfo.setHeight(Ft.content.dimension.height),q.chatEvents.fireEvent("callEvents",{type:"SCREENSHARE_METADATA",callId:ie.callId,userId:Ft.userid,content:Ft.content}))}}(Ge,Ft);break;case"ERROR":ie.receivePeerManager.requestReceiveError(Ft),$e.raiseCallError(q.errorHandler.getFilledErrorObject(a(a({},p.errorList.CALL_SERVER_ERROR),{},{replacements:[JSON.stringify(Ge)]})),null,!0);break;default:console.warn("[SDK][onmessage] Invalid message, id: "+Ge.id,Ge)}q.store.messagesCallbacks[Ft]&&delete q.store.messagesCallbacks[Ft]},handleParticipantJoin:function(Ge,Ft){if(Array.isArray(Ge)){var br=function(Dt){var ot={video:Ge[Dt].video,mute:Ge[Dt].mute,userId:Ge[Dt].userId,topicSend:Ge[Dt].sendTopic,clientId:Ge[Dt].participantVO.ssoId,autoStartStreams:!0,callId:ie.callId,cameraPaused:!1};ie.users.get(ot.userId)?(ie.users.removeItem(ot.userId),setTimeout(function(){new Promise(function(nt){ie.users.addItem(ot),nt()}).then(function(){q.chatEvents.fireEvent("callEvents",{type:"CALL_DIVS",callId:ie.callId,result:ie.users.generateCallUIList()})})},200)):new Promise(function(nt){ie.users.addItem(ot),nt()}).then(function(){q.chatEvents.fireEvent("callEvents",{type:"CALL_DIVS",callId:ie.callId,result:ie.users.generateCallUIList()})})};for(var rt in Ge)br(rt)}q.chatEvents.fireEvent("callEvents",{type:"CALL_PARTICIPANT_JOINED",callId:ie.callId,result:Ge}),ie.screenShareInfo.isStarted()&&ie.screenShareInfo.iAmOwner()&&be({id:g.callMetaDataTypes.SCREENSHAREMETADATA,userid:q.store.user.get().id,content:{dimension:{width:ie.screenShareInfo.getWidth(),height:ie.screenShareInfo.getHeight()}}})},handleParticipantLeft:function(Ge,Ft){return(0,h.default)(e.default.mark(function br(){return e.default.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:if(q.chatEvents.fireEvent("callEvents",{type:"CALL_PARTICIPANT_LEFT",callId:ie.callId,result:Ge}),!(Object.values(ie.users.getAll()).length<2)){st.next=5;break}return q.chatEvents.fireEvent("callEvents",{type:"CALL_ENDED",callId:ie.callId}),q.callsManager.removeItem(ie.callId),st.abrupt("return");case 5:if(!Ge[0].userId){st.next=13;break}if(Ge[0].userId!=q.store.user.get().id){st.next=10;break}q.callsManager.removeItem(ie.callId),st.next=13;break;case 10:return st.next=12,ie.users.removeItem(Ge[0].userId);case 12:ie.screenShareInfo.isStarted()&&ie.screenShareInfo.getOwner()===Ge[0].userId&&ie.users.removeItem("screenShare");case 13:case"end":return st.stop()}},br)}))()},handleParticipantMute:function(Ge,Ft){if(Array.isArray(Ge))for(var br in Ge){var rt=ie.users.get(Ge[br].userId);rt&&(rt.isMe()&&q.call.sharedVariables.deviceManager.mediaStreams.stopAudioInput(),rt.stopAudio())}setTimeout(function(){q.chatEvents.fireEvent("callEvents",{type:"CALL_DIVS",callId:ie.callId,result:ie.users.generateCallUIList()})}),q.chatEvents.fireEvent("callEvents",{type:"CALL_PARTICIPANT_MUTE",callId:ie.callId,result:Ge})},handleParticipantUnMute:function(Ge,Ft){return(0,h.default)(e.default.mark(function br(){var rt;return e.default.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:if(!Array.isArray(Ge)){ot.next=8;break}rt=e.default.mark(function nt(Yt){var Ne;return e.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:if(!(Ne=ie.users.get(Ge[Yt].userId))||!Ne.isMe()){ge.next=6;break}if(Ne.user.mute){ge.next=5;break}return ge.next=5,Ne.destroyAudio();case 5:setTimeout(function(){Ne.startAudio(Ge[Yt].sendTopic)},50);case 6:case"end":return ge.stop()}},nt)}),ot.t0=e.default.keys(Ge);case 3:if((ot.t1=ot.t0()).done){ot.next=8;break}return ot.delegateYield(rt(ot.t1.value),"t2",6);case 6:ot.next=3;break;case 8:setTimeout(function(){q.chatEvents.fireEvent("callEvents",{type:"CALL_DIVS",callId:ie.callId,result:ie.users.generateCallUIList()})}),q.chatEvents.fireEvent("callEvents",{type:"CALL_PARTICIPANT_UNMUTE",callId:ie.callId,result:Ge});case 10:case"end":return ot.stop()}},br)}))()},handleParticipantVideoOn:function(Ge,Ft){return(0,h.default)(e.default.mark(function br(){var rt,st;return e.default.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:if(!Array.isArray(Ge)){ot.next=12;break}ot.t0=e.default.keys(Ge);case 2:if((ot.t1=ot.t0()).done){ot.next=12;break}if(!(st=ie.users.get(Ge[rt=ot.t1.value].userId))||!st.isMe()){ot.next=10;break}if(!st.user.video){ot.next=9;break}return ot.next=9,st.stopVideo();case 9:st.startVideo(Ge[rt].sendTopic);case 10:ot.next=2;break;case 12:setTimeout(function(){q.chatEvents.fireEvent("callEvents",{type:"CALL_DIVS",callId:ie.callId,result:ie.users.generateCallUIList()})}),q.chatEvents.fireEvent("callEvents",{type:"TURN_ON_VIDEO_CALL",callId:ie.callId,result:Ge});case 14:case"end":return ot.stop()}},br)}))()},handleParticipantVideoOff:function(Ge,Ft){if(Array.isArray(Ge))for(var br in Ge){var rt=ie.users.get(Ge[br].userId);rt&&(rt.isMe()&&q.call.sharedVariables.deviceManager.mediaStreams.stopVideoInput(),rt.stopVideo())}setTimeout(function(){q.chatEvents.fireEvent("callEvents",{type:"CALL_DIVS",callId:ie.callId,result:ie.users.generateCallUIList()})}),q.chatEvents.fireEvent("callEvents",{type:"TURN_OFF_VIDEO_CALL",callId:ie.callId,result:Ge})},handleStartScreenShare:function(Ge,Ft,br,rt){if(q.sdkParams.consoleLogging&&console.log("[sdk][startScreenShare][onResult]: ",br),d.default.createReturnData(Ge,Ft,!1,"",0,br,null).hasError)ie.users.removeItem("screenShare");else{if(ie.screenShareInfo.setIsStarted(!0),ie.screenShareInfo.setOwner(br.screenOwner.id),ie.screenShareInfo.isStarted()&&ie.screenShareInfo.iAmOwner(),ie.screenShareInfo.isStarted()&&ie.screenShareInfo.iAmOwner()){var nt=q.call.calculateScreenSize({quality:q.call.sharedVariables.startScreenSharetParams.quality});ie.screenShareInfo.setWidth(nt.width),ie.screenShareInfo.setHeight(nt.height),be({id:g.callMetaDataTypes.SCREENSHAREMETADATA,userid:q.store.user.get().id,content:{dimension:{width:ie.screenShareInfo.getWidth(),height:ie.screenShareInfo.getHeight()}}})}ie.screenShareInfo.iAmOwner()?setTimeout(function(){Yt()},1e3):Yt()}function Yt(){G.screenShareObject.callId=ie.callId;var Ne=br.topicSend.split("-")[2];G.screenShareObject.clientId=Ne,G.screenShareObject.cameraPaused=!1,G.screenShareObject.userId="screenShare",ie.users.addItem(G.screenShareObject,"screenShare"),q.chatEvents.fireEvent("callEvents",{type:"START_SCREEN_SHARE",callId:ie.callId,result:br})}},handleEndScreenShare:function(Ge,Ft){return(0,h.default)(e.default.mark(function br(){return e.default.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:return ie.screenShareInfo.setIsStarted(!1),ie.screenShareInfo.setOwner(Ge.screenOwner.id),st.prev=2,st.next=5,ie.users.removeItem("screenShare");case 5:return st.next=7,q.call.sharedVariables.deviceManager.mediaStreams.stopScreenShareInput();case 7:st.next=12;break;case 9:st.prev=9,st.t0=st.catch(2),console.warn("Exception on handleEndScreenShare ",{error:st.t0});case 12:q.chatEvents.fireEvent("callEvents",{type:"END_SCREEN_SHARE",callId:ie.callId,result:Ge}),q.chatEvents.fireEvent("callEvents",{type:"CALL_DIVS",callId:ie.callId,result:ie.users.generateCallUIList()});case 14:case"end":return st.stop()}},br,null,[[2,9]])}))()},pauseCamera:function(){var Ge=ie.users.get(q.store.user.get().id);!Ge||!Ge.user().video||!Ge.user().videoTopicName||Ge.pauseVideoSendStream()},resumeCamera:function(){var Ge=ie.users.get(q.store.user.get().id);!Ge||!Ge.user().videoTopicName||!Ge.user().video||Ge.resumeVideoSendStream()},pauseMice:function(){var Ge=ie.users.get(q.store.user.get().id);!Ge||!Ge.user().audioTopicName||Ge.user().mute||Ge.pauseAudioSendStream()},resumeMice:function(){var Ge=ie.users.get(q.store.user.get().id);!Ge||!Ge.user().audioTopicName||Ge.user().mute||Ge.resumeAudioSendStream()},onChatConnectionReconnect:function(){},destroy:function(){return(0,h.default)(e.default.mark(function Ge(){return e.default.wrap(function(br){for(;;)switch(br.prev=br.next){case 0:return ie.isDestroyed=!0,q.chatEvents.off("chatReady",ie.onChatReadyUniqueId),br.next=4,q.call.sharedVariables.deviceManager.onCallEnd();case 4:return br.abrupt("return",x());case 5:case"end":return br.stop()}},Ge)}))()},isDestroyed:function(){return ie.isDestroyed}};return setTimeout(function(){w(ie.callConfig)},50),$e}},95626:(M,b,n)=>{"use strict";var t=n(95318);Object.defineProperty(b,"__esModule",{value:!0}),b.CallScreenShare=function g(p,f){var C={callId:f.callId,userId:f.userId,isMe:!1,user:f,videoIsOpen:!1,type:"screenShare",containerTag:null,htmlElements:{},videoStream:null,isDestroyed:!1,videoReceiveVersion:-1,streamTracks:{video:null}},N={getVideoStream:function(){return C.videoStream},getAudioTrack:function(){return null},isMe:function(){return p.call.currentCall().screenShareInfo.iAmOwner()},audioIsOpen:function(){return!1},resetTopicVersions:function(){C.videoReceiveVersion=-1},isScreenShare:function(){return!0},user:function(){return C.user},setVideoIsOpen:function(G){C.videoIsOpen=G},setAudioIsOpen:function(G){C.audioIsOpen=G},getHTMLElements:function(){return C.htmlElements},appendVideoToCallDiv:function(){if(p.call.sharedVariables.callDivId){var G=C.user,ie=document.getElementById(p.call.sharedVariables.callDivId),K=document.getElementById("callParticipantWrapper-"+C.userId);K||(ie.appendChild(C.htmlElements.container),K=document.getElementById("callParticipantWrapper-"+C.userId)),G.video&&(document.getElementById("callUserVideo-"+C.user.videoTopicName)||(K.appendChild(C.htmlElements[C.user.videoTopicName]),C.videoStream.getTracks()[0].enabled=!0,setTimeout(function(){var re=document.getElementById("callUserVideo-"+C.user.videoTopicName);re&&(re.addEventListener("loadedmetadata",function oe(){re.play()}),re.srcObject=C.videoStream)},500))),p.call.currentCall().sendCallDivs()}else p.sdkParams.consoleLogging&&console.log("No Call DIV has been declared!")},audioStopManager:function(){return C.user.audioStopManager},startAudio:function(G){},startVideo:function(G,ie){C.user.video=!0,C.videoIsOpen=!0,p.call.currentCall().screenShareInfo.iAmOwner()?p.call.currentCall().deviceManager().grantScreenSharePermission({closeStream:!1}).then(function(re){re?(re.getVideoTracks()[0].addEventListener("ended",function B(s){!C.user||(re.getVideoTracks()[0].removeEventListener("ended",B),p.call.currentCall()&&p.call.currentCall().screenShareInfo.isStarted()&&p.call.endScreenShare({callId:C.callId}))}),O()):alert("Error: could not find screenShareInput")}).catch(function(re){}):(C.videoReceiveVersion=ie.version,H(ie))},resumeVideoSendStream:function(){var G=p.call.currentCall().deviceManager().mediaStreams.getVideoInput();G&&(G.getTracks()[0].enabled=!0)},processTrackChange:function(G){(G.topic.indexOf("Vi-")>-1||G.topic.indexOf("screen")>-1)&&(!C.videoIsOpen&&G.isReceiving?N.startVideo(G.topic.replace("Vi-",""),G):C.videoIsOpen&&!G.isReceiving?(C.videoIsOpen=!1,N.stopVideo()):C.videoIsOpen&&G.isReceiving&&C.videoReceiveVersion!=G.version&&(N.stopVideo(),setTimeout(function(){N.startVideo(G.topic.replace("Vi-",""),G)},200)))},resetTopicVersion:function(G){2==G.mediaType&&(C.videoReceiveVersion=-1)},reconnectTopic:function(G){return(0,h.default)(e.default.mark(function ie(){return e.default.wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return re.next=2,N.destroyVideo();case 2:return re.next=4,N.startVideo(C.user.topic);case 4:case"end":return re.stop()}},ie)}))()},destroy:function(){return(0,h.default)(e.default.mark(function G(){return e.default.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,N.stopVideo();case 2:C.isDestroyed=!0,C.htmlElements={},C.user=null;case 5:case"end":return K.stop()}},G)}))()},stopVideo:function(){return(0,h.default)(e.default.mark(function G(){var ie,K;return e.default.wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return C.user.video=!1,C.videoIsOpen=!1,K=null===(ie=p.call.currentCall().screenShareInfo)||void 0===ie?void 0:ie.iAmOwner(),p.call.currentCall().isDestroyed()||(K?p.call.currentCall().sendPeerManager()&&p.call.currentCall().sendPeerManager().removeTrack(C.user.videoTopicName):p.call.currentCall().receivePeerManager()&&p.call.currentCall().receivePeerManager().removeTrack(C.user.videoTopicName)),B.next=7,N.destroyVideo();case 7:case"end":return B.stop()}},G)}))()},destroyAudio:function(){},destroyVideo:function(){return(0,h.default)(e.default.mark(function G(){var ie;return e.default.wrap(function(re){for(;;)switch(re.prev=re.next){case 0:C.videoReceiveVersion=-1,C.videoIsOpen=!1,(ie=document.getElementById("callUserVideo-"+C.user.videoTopicName))&&(ie.remove(),delete C.htmlElements[C.user.videoTopicName]);case 4:case"end":return re.stop()}},G)}))()}};function O(J){function ie(K){C.isDestroyed||setTimeout(function(){O(K)},10)}J>3||(p.call.currentCall().sendPeerManager()?0===p.call.currentCall().sendPeerManager().addTrack({clientId:C.user.clientId,topic:C.user.videoTopicName,mediaType:2,isScreenShare:!0,stream:p.call.currentCall().deviceManager().mediaStreams.getScreenShareInput(),onTrackCallback:q})&&ie(J+1):ie(J+1))}function H(J){var G=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!(G>3))if(p.call.currentCall().receivePeerManager()){var ie=p.call.currentCall().receivePeerManager().addTrack({clientId:C.user.clientId,topic:C.user.videoTopicName,mediaType:2,isScreenShare:!0,requestedTopicVersion:J.version,mline:J&&J.mline,onTrackCallback:q,onOpenFailure:F,onUpdateSuccess:U});0===ie&&K(J,G+1)}else K(J,G+1);function K(re,oe){C.isDestroyed||setTimeout(function(){H(re,oe)},10)}}function F(J){2==J.mediaType&&(C.videoIsOpen=!1),N.isMe()&&2==J.mediaType&&N.startVideo(C.user.topicSend,null)}function U(J){C.videoReceiveVersion=J.requestedTopicVersion}function q(J,G){var ie;2==J.mediaType&&(ie=G||C.streamTracks.video),C.streamTracks.video=ie;var K=new MediaStream([ie]);C.videoStream=K;var re=function D(){var J=r.default.generateUUID();if(C.user.video&&!C.htmlElement){C.htmlElement=document.createElement("video");var G=C.htmlElement;G.setAttribute("id","callUserVideo-"+C.user.videoTopicName),G.setAttribute("class",p.call.sharedVariables.callVideoTagClassName),G.setAttribute("playsinline",""),G.setAttribute("muted",""),G.setAttribute("autoplay",""),G.setAttribute("data-uniqueId",J),G.setAttribute("width",p.call.sharedVariables.callVideoMinWidth+"px"),G.setAttribute("height",p.call.sharedVariables.callVideoMinHeight+"px")}return C.htmlElement}();C.htmlElements[C.user.videoTopicName]=re,N.appendVideoToCallDiv()}return function a(J){var G=p.call.currentCall().screenShareInfo.iAmOwner(),ie={video:!0,callId:J.callId,userId:J.userId,topic:J.topicSend,clientId:J.clientId};ie.direction=G?"send":"receive",ie.videoTopicName=ie.topic,C.user=ie,C.isMe=p.call.currentCall().screenShareInfo.iAmOwner(),function V(){if(!C.htmlElements.container){C.htmlElements.container=document.createElement("div");var J=C.htmlElements.container;J.setAttribute("id","callParticipantWrapper-"+C.userId),J.classList.add("participant"),J.classList.add("wrapper"),J.classList.add("user-"+C.userId),J.classList.add(C.isMe?"local":"remote")}}(),C.user.video&&p.call.currentCall().screenShareInfo.iAmOwner()&&N.startVideo(ie.topic)}(f),N},b.CallUser=function y(p,f){var C={callId:f.callId,userId:f.userId,user:f,isMe:f.userId==p.store.user.get().id,containerTag:null,htmlElements:{},videoIsOpen:!1,audioIsOpen:!1,topicMetaData:{audioLevelInterval:null},slowLinkTimeout:null,isDestroyed:!1,videoReceiveVersion:-1,audioReceiveVersion:-1,videoStream:null,audioStream:null,streamTracks:{video:null,audio:null}},N={getAudioStream:function(){return C.audioStream},getVideoStream:function(){return C.videoStream},switchSpeaker:function(J){return(0,h.default)(e.default.mark(function G(){var ie;return e.default.wrap(function(re){for(;;)switch(re.prev=re.next){case 0:try{(ie=N.getAudioObject())&&(ie.setSinkId(J),p.sdkParams.consoleLogging&&console.log("speaker changed"))}catch(oe){console.error("Error setting audio output:",oe)}case 1:case"end":return re.stop()}},G)}))()},audioIsOpen:function(){return C.audioIsOpen},resetTopicVersions:function(){C.videoReceiveVersion=-1,C.audioReceiveVersion=-1},getAudioObject:function(){return C.audioObject},userId:function(){return C.userId},isMe:function(){return C.userId==p.store.user.get().id},setVideoIsOpen:function(J){C.videoIsOpen=J},setAudioIsOpen:function(J){C.audioIsOpen=J},isScreenShare:function(){return!1},user:function(){return C.user},getHTMLElements:function(){return C.htmlElements},getVideoHtmlElement:function(){var J=r.default.generateUUID();if(C.user.video&&!C.htmlElement){C.htmlElement=document.createElement("video");var G=C.htmlElement;G.setAttribute("id","callUserVideo-"+C.user.videoTopicName),G.setAttribute("class",p.call.sharedVariables.callVideoTagClassName),G.setAttribute("playsinline",""),G.setAttribute("muted",""),G.setAttribute("autoplay",""),G.setAttribute("data-uniqueId",J),G.setAttribute("width",p.call.sharedVariables.callVideoMinWidth+"px"),G.setAttribute("height",p.call.sharedVariables.callVideoMinHeight+"px")}return C.htmlElement},appendVideoToCallDiv:function(){if(p.call.sharedVariables.callDivId){var J=C.user,G=document.getElementById(p.call.sharedVariables.callDivId),ie=document.getElementById("callParticipantWrapper-"+C.userId);if(ie||(G.appendChild(C.htmlElements.container),ie=document.getElementById("callParticipantWrapper-"+C.userId)),J.video)if(document.getElementById("callUserVideo-"+C.user.videoTopicName)){var K=document.getElementById("callUserVideo-"+C.user.videoTopicName);K.srcObject||(K.srcObject=C.htmlElements[C.user.videoTopicName].srcObject)}else ie.appendChild(C.htmlElements[C.user.videoTopicName]),C.htmlElements[C.user.videoTopicName].play();p.call.currentCall().sendCallDivs()}else p.sdkParams.consoleLogging&&console.log("No Call DIV has been declared!")},videoTopicManager:function(){},audioTopicManager:function(){},removeAudioWatcherInterval:function(){C.topicMetaData&&clearInterval(C.topicMetaData.audioLevelInterval)},changeVideoStream:function(J,G){var ie={deviceId:{exact:J}},K=p.call.currentCall().deviceManager();if(!K.mediaStreams.getVideoInput())throw new Error("[SDK] Webcam is not active");K.mediaStreams.stopVideoInput(),K.grantUserMediaDevicesPermissions({video:ie},function(re){if(re.hasError)p.call.currentCall().raiseCallError({code:re.errorCode,message:re.errorMessage},null,!0),N.stopVideo(),setTimeout(function(){p.call.currentCall().sendCallDivs()});else{var oe=K.mediaStreams.getVideoInput();C.htmlElements[C.user.videoTopicName].srcObject=oe;try{p.call.currentCall().sendPeerManager().changeVideoSendStream(oe);var B=document.getElementById("callUserVideo-"+C.user.videoTopicName);B.srcObject||(B.srcObject=C.htmlElements[C.user.videoTopicName].srcObject),G&&G()}catch(s){p.call.currentCall().raiseCallError({code:d.errorList.CHANGE_MEDIA_DEVICE_FAILED.code,message:s.message},null,!0),N.stopVideo(),setTimeout(function(){p.call.currentCall().sendCallDivs()})}}})},changeAudioStream:function(J,G){var ie={deviceId:{exact:J}},K=p.call.currentCall().deviceManager();if(!K.mediaStreams.getAudioInput())throw new Error("[SDK] Microphone is not active");K.mediaStreams.stopAudioInput(),p.call.currentCall().deviceManager().grantUserMediaDevicesPermissions({audio:ie},function(re){if(re.hasError)p.call.currentCall().raiseCallError({code:re.errorCode,message:re.errorMessage},null,!0),N.stopAudio();else try{var oe=p.call.currentCall().deviceManager().mediaStreams.getAudioInput();p.call.currentCall().sendPeerManager().getPeer().switchAudioStream(oe),G&&G()}catch(B){p.call.currentCall().raiseCallError({code:d.errorList.CHANGE_MEDIA_DEVICE_FAILED.code,message:B.message},null,!0),N.stopAudio()}})},startAudio:function(J,G){return(0,h.default)(e.default.mark(function ie(){return e.default.wrap(function(re){for(;;)switch(re.prev=re.next){case 0:C.isMe?p.call.currentCall().deviceManager().grantUserMediaDevicesPermissions({audio:!0},function(oe){oe.hasError||(C.audioIsOpen=!0,C.user.mute=!1,a("audio"))}):(C.audioIsOpen=!0,C.user.mute=!1,C.audioReceiveVersion=G.version,O("audio",G));case 1:case"end":return re.stop()}},ie)}))()},startVideo:function(J,G){return(0,h.default)(e.default.mark(function ie(){return e.default.wrap(function(re){for(;;)switch(re.prev=re.next){case 0:C.isMe?p.call.currentCall().deviceManager().grantUserMediaDevicesPermissions({video:{width:320,framerate:10}},function(oe){oe.hasError||(C.user.video=!0,C.videoIsOpen=!0,a("video"))}):(C.user.video=!0,C.videoIsOpen=!0,C.videoReceiveVersion=G.version,O("video",G));case 1:case"end":return re.stop()}},ie)}))()},pauseVideoSendStream:function(){var J=p.call.currentCall().deviceManager().mediaStreams.getVideoInput();J&&(J.getTracks()[0].enabled=!1)},pauseAudioSendStream:function(){var J=p.call.currentCall().deviceManager().mediaStreams.getAudioInput();J&&(J.getTracks()[0].enabled=!1)},resumeVideoSendStream:function(){var J=p.call.currentCall().deviceManager().mediaStreams.getVideoInput();J&&(J.getTracks()[0].enabled=!0)},resumeAudioSendStream:function(){var J=p.call.currentCall().deviceManager().mediaStreams.getAudioInput();J&&(J.getTracks()[0].enabled=!0)},startSLowLink:function(){p.chatEvents.fireEvent("callEvents",{type:"SLOW_LINK",callId:C.callId,message:"Slow link",userId:C.userId}),C.slowLinkTimeout&&clearTimeout(C.slowLinkTimeout),C.slowLinkTimeout=setTimeout(function(){p.chatEvents.fireEvent("callEvents",{type:"SLOW_LINK_RESOLVED",callId:C.callId,message:"Slow link resolved",userId:C.userId})},1e4)},destroy:function(){return(0,h.default)(e.default.mark(function J(){return e.default.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.next=2,N.stopVideo();case 2:return ie.next=4,N.stopAudio();case 4:C.isDestroyed=!0,C.htmlElements={},f=null;case 7:case"end":return ie.stop()}},J)}))()},stopAudio:function(){return(0,h.default)(e.default.mark(function J(){var G;return e.default.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return C.user.mute=!0,C.audioIsOpen=!1,(G=p.call.currentCall()).isDestroyed()||(C.isMe?G.sendPeerManager()&&G.sendPeerManager().removeTrack(C.user.audioTopicName):G.receivePeerManager()&&G.receivePeerManager().removeTrack(C.user.audioTopicName)),K.next=6,N.destroyAudio();case 6:case"end":return K.stop()}},J)}))()},destroyAudio:function(){return(0,h.default)(e.default.mark(function J(){return e.default.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:C.audioReceiveVersion=-1,console.log("[media][audio] destroy, topic: ",C.user.audioTopicName),C.audioObject&&(C.audioObject.srcObject=null,C.audioObject=null),C.audioIsOpen=!1,N.removeAudioWatcherInterval();case 5:case"end":return ie.stop()}},J)}))()},stopVideo:function(){return(0,h.default)(e.default.mark(function J(){var G;return e.default.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return C.user.video=!1,C.videoIsOpen=!1,(G=p.call.currentCall()).isDestroyed()||(C.isMe?G.sendPeerManager()&&G.sendPeerManager().removeTrack(C.user.videoTopicName):G.receivePeerManager()&&G.receivePeerManager().removeTrack(C.user.videoTopicName)),K.next=6,N.destroyVideo();case 6:case"end":return K.stop()}},J)}))()},destroyVideo:function(){return(0,h.default)(e.default.mark(function J(){return e.default.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:C.videoReceiveVersion=-1,C.videoIsOpen=!1,C.htmlElements[C.user.videoTopicName]&&(C.htmlElements[C.user.videoTopicName].remove(),delete C.htmlElements[C.user.videoTopicName]);case 3:case"end":return ie.stop()}},J)}))()},processTrackChange:function(J){J.topic.indexOf("Vi-")>-1?!C.videoIsOpen&&J.isReceiving?N.startVideo(J.topic.replace("Vi-",""),J):C.videoIsOpen&&!J.isReceiving?N.stopVideo():C.videoIsOpen&&J.isReceiving&&C.videoReceiveVersion!=J.version&&(N.stopVideo(),setTimeout(function(){N.startVideo(J.topic.replace("Vi-",""),J)},200)):J.topic.indexOf("Vo-")>-1&&(!C.audioIsOpen&&J.isReceiving?N.startAudio(J.topic.replace("Vo-",""),J):C.audioIsOpen&&!J.isReceiving?N.stopAudio():C.audioIsOpen&&J.isReceiving&&C.audioReceiveVersion!=J.version&&(N.stopAudio(),setTimeout(function(){N.startAudio(J.topic.replace("Vo-",""),J)},200)))},resetTopicVersion:function(J){0==J.mediaType?C.videoReceiveVersion=-1:1==J.mediaType&&(C.audioReceiveVersion=-1)},watchAudioLevel:function(J){var ie=C.topicMetaData,K=p.call.audioCtx().createAnalyser();function oe(B){return B<=-60?0:B>=-60&&B<-50?1:B>=-50&&B<-40?2:B>=-40&&B<30?3:B>=-30?4:void 0}K.fftSize=512,K.smoothingTimeConstant=.1,p.call.audioCtx().createMediaStreamSource(J).connect(K),ie.audioLevelInterval=setInterval(function(){var B=new Float32Array(K.frequencyBinCount);K.getFloatFrequencyData(B);var s=Math.max.apply(Math,(0,l.default)(B)),_=new Uint8Array(K.frequencyBinCount);K.getByteFrequencyData(_);var w=_.reduce(function(x,j){return x+j},0),E=Math.sqrt(w/_.length);s>-50&&E>0?p.chatEvents.fireEvent("callStreamEvents",{type:"USER_SPEAKING",userId:C.userId,audioLevel:oe(s),isNoise:!1,isMute:!1}):s!==-1/0&&s<-60&&E>0?p.chatEvents.fireEvent("callStreamEvents",{type:"USER_SPEAKING",userId:C.userId,audioLevel:0,isNoise:!0,isMute:!1}):s===-1/0&&0==E&&p.chatEvents.fireEvent("callStreamEvents",{type:"USER_SPEAKING",userId:C.userId,audioLevel:0,isNoise:!1,isMute:!0})},500)}};function a(q,J){if(!(J>3))if(p.call.currentCall().receivePeerManager()){var G;if("video"==q){var ie=p.call.currentCall().deviceManager().mediaStreams.getVideoInput();G=p.call.currentCall().sendPeerManager().addTrack({currentTrackId:ie.getTracks()[0].id,clientId:C.user.clientId,topic:C.user.videoTopicName,mediaType:0,stream:ie,onTrackCallback:V,onOpenFailure:H})}else G=p.call.currentCall().sendPeerManager().addTrack({clientId:C.user.clientId,topic:C.user.audioTopicName,mediaType:1,stream:p.call.currentCall().deviceManager().mediaStreams.getAudioInput(),onTrackCallback:V,onOpenFailure:H});0===G&&K(q,J+1)}else K(q,J+1);function K(re,oe){C.isDestroyed||setTimeout(function(){a(re,oe)},100)}}function O(q,J){var G=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;function K(re,oe,B){C.isDestroyed||setTimeout(function(){O(re,oe,B)},100)}G>3||(p.call.currentCall().receivePeerManager()?0===("video"==q?p.call.currentCall().receivePeerManager().addTrack({clientId:C.user.clientId,topic:C.user.videoTopicName,mediaType:0,requestedTopicVersion:J.version,mline:J&&J.mline,onTrackCallback:V,onOpenFailure:H,onUpdateSuccess:F}):p.call.currentCall().receivePeerManager().addTrack({clientId:C.user.clientId,topic:C.user.audioTopicName,mediaType:1,requestedTopicVersion:J.version,mline:J&&J.mline,onTrackCallback:V,onOpenFailure:H,onUpdateSuccess:F}))&&K(q,J,G+1):K(q,J,G+1))}function H(q){0==q.mediaType?C.videoIsOpen=!1:1==q.mediaType&&(C.audioIsOpen=!1),C.isMe&&(0==q.mediaType?N.startVideo(C.user.topicSend,null):N.startAudio(C.user.topicSend,null))}function F(q){0==q.mediaType?C.videoReceiveVersion=q.requestedTopicVersion:1==q.mediaType&&(C.audioReceiveVersion=q.requestedTopicVersion)}function V(q,J){var G,ie,K=q.topic.indexOf("Vo-")>-1,re=q.topic.indexOf("Vi-")>-1;if(re?C.streamTracks.video=ie=J||C.streamTracks.video:K&&(C.streamTracks.audio=ie=J||C.streamTracks.audio),G=new MediaStream([ie]),K?C.audioStream=G:C.videoStream=G,C.isMe)if(K)N.watchAudioLevel(G);else{var oe=N.getVideoHtmlElement();oe.srcObject=G,C.htmlElements[C.user.videoTopicName]=oe,N.appendVideoToCallDiv()}else if(K)console.log("[media][audio] create, topic: ",q.topic),C.audioObject=new Audio,C.audioObject.srcObject=G,C.audioObject.autoplay=!0,C.audioObject.play(),N.watchAudioLevel(G);else if(re){var B=N.getVideoHtmlElement();B.srcObject=null,setTimeout(function(){B.srcObject=G,C.htmlElements[C.user.videoTopicName]=B,N.appendVideoToCallDiv()},100)}}return function D(q){C.user=q,C.user.direction=C.isMe?"send":"receive",C.user.videoTopicName="Vi-"+C.user.topicSend,C.user.audioTopicName="Vo-"+C.user.topicSend,function U(){if(!C.htmlElements.container){C.htmlElements.container=document.createElement("div");var q=C.htmlElements.container;q.setAttribute("id","callParticipantWrapper-"+C.userId),q.classList.add("participant"),q.classList.add("wrapper"),q.classList.add("user-"+C.userId),q.classList.add(C.isMe?"local":"remote")}}()}(f),N};var e=t(n(87757)),l=t(n(319)),h=t(n(48926)),r=t(n(63902)),d=n(17713)},59386:(M,b,n)=>{"use strict";var t=n(95318);Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var e=t(n(87757)),l=t(n(48926)),h=n(95626);b.default=function r(y){var g=y.app,f={list:{},callId:y.callId},a={addItem:function(H){var F=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"user";"user"==F?f.list[H.userId]=new h.CallUser(g,H):"screenShare"==F&&(f.list[H.userId]=new h.CallScreenShare(g,H))},userExists:function(H){return!!f.list[H]},removeItem:function(H){return(0,l.default)(e.default.mark(function F(){return e.default.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:if(!f.list[H]){D.next=4;break}return D.next=3,f.list[H].destroy();case 3:delete f.list[H];case 4:case"end":return D.stop()}},F)}))()},get:function N(O){return f.list[O]},getAll:function(){return f.list},getHTMLElements:function C(){return Object.values(f.list).map(function(O){return O.getHTMLElements()})},generateCallUIList:function(){g.store.user.get();var F={};if(g.callsManager.get(f.callId)){for(var V in f.list){var D={},U=f.list[V].getHTMLElements();f.list[V]&&U&&(D.container=U.container,("screenShare"===V&&g.call.currentCall().screenShareInfo.isStarted()||"screenShare"!=V&&f.list[V].user().video&&U[f.list[V].user().videoTopicName])&&(D.video=U[f.list[V].user().videoTopicName]),D.videoStream=f.list[V].getVideoStream(),F[V]=D)}return{uiElements:F}}},findUserIdByTopic:function(H){for(var F in f.list)if(f.list[F]&&(f.list[F].user().videoTopicName===H||f.list[F].user().audioTopicName===H)||H.indexOf("screen")>-1&&"screenShare"==F)return F},findUserIdByClientId:function(H){for(var F in f.list)if(f.list[F]&&f.list[F].user().clientId==H)return F},destroy:function(){return new Promise(function(H){var F=[];for(var V in f.list){var D=f.list[V];D&&F.push(D.destroy())}Promise.all(F).then(function(){for(var U in f.list)delete f.list[U];H()})})},stopTracks:function(H){return(0,l.default)(e.default.mark(function F(){return e.default.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:if(!H.user().video){D.next=3;break}return D.next=3,H.destroyVideo();case 3:if(H.user().mute){D.next=6;break}return D.next=6,H.destroyAudio();case 6:case"end":return D.stop()}},F)}))()},startTracks:function(H){return(0,l.default)(e.default.mark(function F(){return e.default.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:H.user().video&&H.startVideo(H.user().topicSend),H.user().mute||H.startAudio(H.user().topicSend);case 2:case"end":return D.stop()}},F)}))()},stopAllReceivers:function(){return(0,l.default)(e.default.mark(function H(){var V;return e.default.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:U.t0=e.default.keys(f.list);case 1:if((U.t1=U.t0()).done){U.next=9;break}if(!(V=f.list[U.t1.value])||V.isMe()){U.next=7;break}return U.next=7,a.stopTracks(V);case 7:U.next=1;break;case 9:case"end":return U.stop()}},H)}))()},startAllReceivers:function(){return(0,l.default)(e.default.mark(function H(){var V;return e.default.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:U.t0=e.default.keys(f.list);case 1:if((U.t1=U.t0()).done){U.next=9;break}if(!(V=f.list[U.t1.value])||V.isMe()){U.next=7;break}return U.next=7,a.startTracks(V);case 7:U.next=1;break;case 9:case"end":return U.stop()}},H)}))()},stopAllSenders:function(){return(0,l.default)(e.default.mark(function H(){var F;return e.default.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return F=a.get(g.store.user.get().id),f.isMe&&(g.call.currentCall().sendPeerManager().removeTrack(f.user.videoTopicName),g.call.currentCall().sendPeerManager().removeTrack(f.user.audioTopicName)),D.next=4,a.stopTracks(F);case 4:case"end":return D.stop()}},H)}))()},startAllsenders:function(){return(0,l.default)(e.default.mark(function H(){var F,V;return e.default.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:F=a.get(g.store.user.get().id),a.startTracks(F),g.call.currentCall().screenShareInfo.isStarted()&&g.call.currentCall().screenShareInfo.iAmOwner()&&(V=a.get("screenShare"),a.startTracks(V));case 3:case"end":return U.stop()}},H)}))()},resetTopicVersions:function(){for(var H in f.list){var F=f.list[H];F&&!F.isMe()&&F.resetTopicVersions()}},switchSpeakers:function(H,F){var V=!1;for(var D in f.list){var U=f.list[D];U&&!U.isMe()&&!U.isScreenShare()&&U.audioIsOpen()&&(V=!0,null==U||U.switchSpeaker(H))}if(!V)throw new Error("[SDK] No active audio receiver found.");F&&F({hasError:!1})}};return a}},48056:(M,b,n)=>{"use strict";var t=n(95318);Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var e=t(n(87757)),l=t(n(48926)),h=t(n(34575)),r=t(n(93913)),d=n(18423),y=t(n(63902));b.default=function(){function f(C){var N=C.app,a=C.callId,O=C.direction,H=C.rtcPeerConfig,F=C.brokerAddress,V=C.onPeerFailed,D=C.onSendTrackFailed;(0,h.default)(this,f),this._app=N,this._callId=a,this._brokerAddress=F,this._nextTrackMid=0,this._trackList=[],this._addTrackQueue=[],this._sendTrackQueue=[],this._addIceQueue=[],this._direction=O,this._firstSub=!0,this._canProcessNextTrack=!0,this._isDestroyed=!1,this._requestTimeouts={},this._negotiationOfferUpdate=[],this._isReconnecting=!1,this._peerStates={DISCONNECTED:0,CONNECTING:1,FAILED:3,CONNECTED:4},this._state=0,this._defaultConfig={callId:a,direction:O,rtcPeerConfig:H,connectionStateChange:this._onConnectionStateChange.bind(this),iceConnectionStateChange:this._onIceConnectionStateChange.bind(this)},this._onPeerFailed=V,this._onSendTrackFailed=D,this._peer=new d.WebrtcPeerConnection(this._defaultConfig),this._onTrackCalls=0,this._sendOpenDone=!1,this._sendOpenDoneTimeout=null,this.watchConnectionStateChange(),this._addTrackLock=!1;var U=this;window.trackList=function(){return U._trackList}}return(0,r.default)(f,[{key:"_nextTrack",value:function(){if(!this.isDestroyed()&&this._canProcessNextTrack)if("send"==this._direction&&this._canProcessNextTrack&&this._addTrackQueue.length)(this._firstSub||this._peer&&this._peer.peerConnection&&"connected"==this._peer.peerConnection.connectionState)&&(this._canProcessNextTrack=!1,this._requestAddSendTrack(this._addTrackQueue[0]));else if("receive"==this._direction&&this._canProcessNextTrack)if(this._negotiationOfferUpdate.length)this._canProcessNextTrack=!1,this._sendTrackQueue=[],this.handleProcessSDPOfferForRenegotiate();else if(this._addTrackQueue.length&&!this._isReconnecting){for(this._canProcessNextTrack=!1,this._sendTrackQueue=[];this._addTrackQueue.length>0;){if(2==this._addTrackQueue[0].mediaType){if(this._sendTrackQueue.length)break;this._sendTrackQueue.push(this._addTrackQueue.shift());break}var a=this._addTrackQueue.shift();this._sendTrackQueue.push(a)}this._requestReceiveTrack()}}},{key:"_requestAddSendTrack",value:function(N){var a=this,O=this,F=y.default.generateUUID();N.uniqueId=F;var D,V=this._peer.peerConnection.getSenders().find(function(U,q){if(U.track==N.stream.getTracks()[0])return!0});V&&console.warn("Track already exists in connection, direction: send"),N.topic.indexOf("Vi-")>-1||N.topic.indexOf("screen")>-1?(D=N.isScreenShare?this._app.call.currentCall().deviceManager().mediaStreams.getScreenShareInput():this._app.call.currentCall().deviceManager().mediaStreams.getVideoInput())&&!V&&this._peer.addTrack(D.getTracks()[0],D):(D=this._app.call.currentCall().deviceManager().mediaStreams.getAudioInput())&&!V&&this._peer.addTrack(D.getTracks()[0],D),this._peer.peerConnection.onicecandidate=function(U){var q=U.candidate;a._app.call.currentCall().sendCallMessage({id:"SEND_ADD_ICE_CANDIDATE",token:a._app.sdkParams.token,chatId:a._callId,brokerAddress:a._brokerAddress,iceCandidate:JSON.stringify(q)},null,{})},N.onTrackCallback(N,D.getTracks()[0]),this._firstSub?(this._firstSub=!1,N.isFirstSub=!0,N.offer?O._sendSdpOfferMessage(N,F):O._peer.peerConnection.createOffer().then(function(U){if(a._addTrackQueue[0])return a._addTrackQueue[0].offer=U,O._peer.peerConnection.setLocalDescription(U)}).then(function(){O._sendSdpOfferMessage(N,F)}).catch(function(U){return console.error({error:U})})):N.offer?O._sendNegotioateMessage(N,F):O._peer.peerConnection.createOffer().then(function(U){return a._addTrackQueue[0].offer=U,O._peer.peerConnection.setLocalDescription(U)}).then(function(){console.log("[debug][_requestAddSendTrack] SEND_NEGOTIATION",a._peer.peerConnection.localDescription.sdp,[{mline:N.mline,topic:N.topic,mediaType:N.mediaType}]),O._sendNegotioateMessage(N,F)}),this.setSendRequestTimeout(F,N)}},{key:"_requestRemoveSendTrackNoMessage",value:function(N){if(!this._isDestroyed){var O=this._peer.peerConnection.getSenders().find(function(H,F){if(H.track==N.stream.getTracks()[0])return!0});O&&this._peer.peerConnection.removeTrack(O)}}},{key:"_sendSdpOfferMessage",value:function(N,a){this._app.call.currentCall().sendCallMessage({id:"SEND_SDP_OFFER",sdpOffer:this._peer.peerConnection.localDescription.sdp,token:this._app.sdkParams.token,chatId:this._callId,brokerAddress:this._brokerAddress,addition:[{mline:N.mline,topic:N.topic,mediaType:N.mediaType}],uniqueId:a},null,{})}},{key:"_sendNegotioateMessage",value:function(N,a){this._app.call.currentCall().sendCallMessage({id:"SEND_NEGOTIATION",sdpOffer:this._peer.peerConnection.localDescription.sdp,token:this._app.sdkParams.token,chatId:this._callId,brokerAddress:this._brokerAddress,addition:[{mline:N.mline,topic:N.topic,mediaType:N.mediaType}],uniqueId:a},null,{})}},{key:"_requestRemoveSendTrack",value:function(N){var a=this;if(!this._isDestroyed){var H=this._peer.peerConnection.getSenders().find(function(F,V){if(F.track==N.stream.getTracks()[0])return!0});H&&(this._peer.peerConnection.removeTrack(H),this._peer.peerConnection.createOffer().then(function(F){return a._peer.peerConnection.setLocalDescription(F)}).then(function(){a._app.call.currentCall().sendCallMessage({id:"SEND_NEGOTIATION",sdpOffer:a._peer.peerConnection.localDescription.sdp,token:a._app.sdkParams.token,chatId:a._callId,brokerAddress:a._brokerAddress,deletion:[{mline:N.mline,topic:N.topic,mediaType:N.mediaType}]},null,{})}))}}},{key:"_requestReceiveTrack",value:function(){var N=[],a=[];this._sendTrackQueue.forEach(function(H){a.includes(H.topic)||(N.push({clientId:H.clientId,mline:H.mline,topic:H.topic,mediaType:H.mediaType}),a.push(H.topic))});var O=y.default.generateUUID();console.log("[media][SUBSCRIBE/UPDATE] Sending.. , clientIds: ",N.map(function(H){return H.clientId}).join(",")," |||  topics: ",N.map(function(H){return H.topic}).join(","),"||| _trackList: ",JSON.stringify(this._trackList),"||| _sendTrackQueue: ",JSON.stringify(this._sendTrackQueue),"||| _addTrackQueue: ",JSON.stringify(this._addTrackQueue)),this._firstSub?this._app.call.currentCall().sendCallMessage({id:"SUBSCRIBE",uniqueId:O,token:this._app.sdkParams.token,chatId:this._callId,brokerAddress:this._brokerAddress,addition:N},null,{}):this._app.call.currentCall().sendCallMessage({id:"UPDATE",uniqueId:O,token:this._app.sdkParams.token,chatId:this._callId,brokerAddress:this._brokerAddress,addition:N},null,{}),this.setRequestTimeout(O,this._sendTrackQueue)}},{key:"setSendRequestTimeout",value:function(N,a){var O=this;this._requestTimeouts[N]={timeout:setTimeout(function(){delete O._requestTimeouts[N],O._onSendTrackFailed()},1e4)}}},{key:"setRequestTimeout",value:function(N,a){var O=this;this._requestTimeouts[N]={timeout:setTimeout(function(){a.forEach(function(H){O.removeFailedTrack(H),H.onOpenFailure&&H.onOpenFailure(H)}),O._app.call.currentCall().sendCallMessage({id:"REQUEST_RECEIVING_MEDIA",token:O._app.sdkParams.token,chatId:O._callId,brokerAddress:O._brokerAddress},null,{}),O.processingCurrentTrackCompleted(),delete O._requestTimeouts[N]},5e3)}}},{key:"removeFailedTrack",value:function(N){this._addTrackQueue=this._addTrackQueue.filter(function(a){return a.topic!=N.topic}),this._sendTrackQueue=[],this._trackList=this._trackList.filter(function(a){return a.topic!=N.topic})}},{key:"requestReceiveError",value:function(N){var a=this;if(this._requestTimeouts[N]){var O=this._trackList.find(function(H){return H&&H.topic===a._requestTimeouts[N].topic});this.removeRequestTimeout(N),this.removeFailedTrack(O),this.processingCurrentTrackCompleted(),O.onOpenFailure(O)}}},{key:"removeRequestTimeout",value:function(N){var a=this._requestTimeouts[N];a&&(a.timeout&&clearTimeout(a.timeout),delete this._requestTimeouts[N])}},{key:"removeRequestTimeoutByTopic",value:function(N){var a=this;this._trackList.forEach(function(O){O.topic==N&&a._requestTimeouts[O.uniqueId]&&(a._requestTimeouts[O.uniqueId].timeout&&clearTimeout(a._requestTimeouts[O.uniqueId].timeout),a._requestTimeouts[O.uniqueId]&&delete a._requestTimeouts[O.uniqueId])})}},{key:"_unlockProcessingNextTrack",value:function(){this._canProcessNextTrack=!0}},{key:"_setPeerState",value:function(N){this._state=N}},{key:"addTrack",value:function(N){return this._trackList.some(function(O){return O.topic==N.topic})?2:("send"==this._direction&&(N.mline=this._nextTrackMid,this._nextTrackMid++),this._trackList.push(N),this._addTrackQueue.push(N),"send"==this._direction&&this._nextTrack(),1)}},{key:"removeTrack",value:function(N){var a=this._trackList.find(function(O){return O&&O.topic===N});"send"==this._direction&&a&&this._requestRemoveSendTrack(a),a&&(this._trackList=this._trackList.filter(function(O){return O.topic!=a.topic}))}},{key:"processingCurrentTrackCompleted",value:function(){"send"==this._direction&&this._addTrackQueue.shift(),this._unlockProcessingNextTrack(),this._nextTrack()}},{key:"maybeNextTrack",value:function(){this._nextTrack()}},{key:"isPeerConnecting",value:function(){return this._state===this._peerStates.CONNECTING}},{key:"isPeerFailed",value:function(){return this._state===this._peerStates.FAILED}},{key:"isPeerConnected",value:function(){return this._state===this._peerStates.CONNECTED}},{key:"isPeerDisconnected",value:function(){return this._state===this._peerStates.DISCONNECTED}},{key:"_onConnectionStateChange",value:function(){if(this._peer&&!this.isDestroyed())switch(this._app.chatEvents.fireEvent("callStreamEvents",{type:"WEBRTC_CONNECTION_STATE_CHANGE",callId:this._callId,direction:this._direction,connectionState:this._peer.peerConnection.connectionState}),this._app.sdkParams.consoleLogging&&console.log("[SDK][peerConnection.onconnectionstatechange] ","peer: ",this._direction," peerConnection.connectionState: ",this._peer.peerConnection.connectionState),this._peer.peerConnection.connectionState){case"disconnected":this._state=this._peerStates.DISCONNECTED;break;case"failed":if(this.isPeerFailed())return;this._app.chatEvents.fireEvent("callEvents",{type:"PEER_FAILED",callId:this._callId,direction:this._direction}),this._handlePeerFailed();break;case"connected":this._nextTrack(),this._state=this._peerStates.CONNECTED,this._app.chatEvents.fireEvent("callEvents",{type:"PEER_CONNECTED",callId:this._callId,direction:this._direction})}}},{key:"_onIceConnectionStateChange",value:function(){if(this._peer&&!this.isDestroyed())switch(this._app.sdkParams.consoleLogging&&console.log("[SDK][oniceconnectionstatechange] ","peer: ",this._direction," peerConnection.connectionState: ",this._peer.peerConnection.iceConnectionState),this._peer.peerConnection.iceConnectionState){case"disconnected":this._state=this._peerStates.DISCONNECTED,this._app.chatEvents.fireEvent("callEvents",{type:"CALL_STATUS",callId:this._callId,errorCode:7e3,errorMessage:"Call Peer (".concat(this._direction,") is disconnected!"),errorInfo:this._peer}),this._app.sdkParams.consoleLogging&&console.log("[SDK][oniceconnectionstatechange]:[disconnected] Internet connection failed, Reconnect your call, peer:",this._direction);break;case"failed":if(this.isPeerFailed())return;this._app.chatEvents.fireEvent("callEvents",{type:"PEER_FAILED",callId:this._callId,direction:this._direction}),this._handlePeerFailed();break;case"connected":this._state=this._peerStates.CONNECTED,this._app.chatEvents.fireEvent("callEvents",{type:"PEER_CONNECTED",callId:this._callId,direction:this._direction}),this._app.chatEvents.fireEvent("callEvents",{type:"CALL_STATUS",callId:this._callId,errorCode:7e3,errorMessage:"Call Peer (".concat(this._direction,") has connected!"),errorInfo:this._peer.peerConnection})}}},{key:"_handlePeerFailed",value:function(){this._state=this._peerStates.FAILED,this._app.chatEvents.fireEvent("callEvents",{type:"CALL_STATUS",callId:this._callId,errorCode:7e3,errorMessage:"Call Peer (".concat(this._direction,") has failed!"),errorInfo:this._peer}),this._onPeerFailed(this._direction)}},{key:"addIceCandidateToQueue",value:function(N){var a=this;"stable"===this._peer.peerConnection.signalingState&&this._peer.peerConnection.currentRemoteDescription?this.addIceCandidate(N).catch(function(O){a._addIceQueue.push(N)}):this._addIceQueue.push(N)}},{key:"addIceOnPeer",value:function(N){var a=this;a._addIceQueue.forEach(function(O){a.addIceCandidate(O)})}},{key:"watchConnectionStateChange",value:function(){var N=this;this._peer.peerConnection.onsignalingstatechange=function(a){"stable"===N._peer.peerConnection.signalingState&&N._peer.peerConnection.currentRemoteDescription&&N.addIceOnPeer(a)}}},{key:"addIceCandidate",value:(C=(0,l.default)(e.default.mark(function a(O){var H=this;return e.default.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.abrupt("return",new Promise(function(D,U){H._peer.peerConnection.addIceCandidate(O).catch(function(q){q&&(console.warn("[peerConnectionManager addIceCandidate"+H._direction+"] "+q),U(q))})}));case 1:case"end":return V.stop()}},a)})),function N(a){return C.apply(this,arguments)})},{key:"reconnectPeer",value:function(){this._destroyPeer(),this._peer=new d.WebrtcPeerConnection(this._defaultConfig)}},{key:"handleProcessSDPOfferForReceiveTrack",value:function(N,a){var O=this;this._firstSub=!1;var H=JSON.parse(N.topic);console.log("[media][PROCESS_SDP_OFFER/UPDATE] Received.. , clientIds: ",H.map(function(q){return q.clientId}).join(",")," |||  topics: ",H.map(function(q){return q.topic}).join(","),", sendTrackQueue: ",this._sendTrackQueue),this._sendTrackQueue.forEach(function(q){H.forEach(function(J){q.topic==J.topic&&q.onUpdateSuccess(q)})}),this._bindReceiveIceCandidateCallback();var F={};this._sendTrackQueue.forEach(function(q){H.forEach(function(J){q.topic==J.topic&&(F[J.topic]=setTimeout(function(){var G=O._app.call.currentCall().users().findUserIdByTopic(J.topic);!G||(0==J.mediaType||2==J.mediaType?(O._app.call.currentCall().users().get(G).stopVideo(),setTimeout(function(){O._app.call.currentCall().users().get(G).startVideo(J.topic.replace("Vi-",""),J),setTimeout(function(){O.maybeNextTrack()},200)},200)):0==J.mediaType&&(O._app.call.currentCall().users().get(G).stopAudio(),setTimeout(function(){O._app.call.currentCall().users().get(G).startAudio(J.topic.replace("Vo-",""),J),setTimeout(function(){O.maybeNextTrack()},200)},200)))},5e3))})}),this._peer.peerConnection.ontrack=function(q){var J=q.transceiver;console.log("[media][ontrack] ",{topics:H,transceiver:J}),J.receiver.track&&(J.receiver.track.onunmute=function(){console.log("[media][track.onunmute] ",{topics:H,transceiver:J}),1==H.length&&2==H[0].mediaType?function U(q){var J;(J=V._trackList.find(function(G){return 2==G.mediaType}))?(clearTimeout(F[J.topic]),J.track=q.receiver.track,J.onTrackCallback(J,q.receiver.track)):console.error("[SDK][ontrack] screenShareTopicHandler cTrackData not found.",{transceiver:q},{topics:H})}(J):function D(q,J){var G;q.forEach(function(ie){ie.mids.includes(J.mid)&&V._trackList.forEach(function(K){K.topic===ie.topic&&(clearTimeout(F[K.topic]),console.log("[media][onTrack][match] , clientId: ",K.clientId," , topic: ",K.topic,", mid: ",J.mid,{transceiver:J}),console.log("debug matched mid: ",J.mid," for topic: ",ie.topic,J),K.mid=J.mid,K.transceiver=J,G=K)})}),G?(G.track=J.receiver.track,G.onTrackCallback(G,J.receiver.track)):(console.error("[media][onTrack][mismatch] normalTopicHandler cTrackData not found.",{transceiver:J},{topics:H}),console.error("[SDK][ontrack] normalTopicHandler cTrackData not found.",{transceiver:J},{topics:H}))}(H,J),J.receiver.track.onunmute=null},J.receiver.track.onmute=function(){console.log("[media][track.onmute] debug transceiver.receiver.track.onmute",{transceiver:J}),J.receiver.track.onmute=null}),O._onTrackCalls++,O._onTrackCalls==H.length&&(O._peer.peerConnection.ontrack=null,O._onTrackCalls=0)};var V=this;this._peer.processOffer(N.sdpOffer,function(q,J){q?console.error("[SDK][processOffer] Error: ",{error:q}):(console.log("[media][RECIVE_SDP_ANSWER] Sending.. , clientIds: ",H.map(function(G){return G.clientId}).join(",")," |||  topics: ",H.map(function(G){return G.topic}).join(",")),O._app.call.currentCall().sendCallMessage({id:"RECIVE_SDP_ANSWER",sdpAnswer:J,token:O._app.sdkParams.token,brokerAddress:O._brokerAddress,addition:H},null,{}),setTimeout(function(){a&&a()}))})}},{key:"handleProcessSDPOfferForReceiveTrackUseExsistingTracks",value:function(N,a){var O=this;this._firstSub=!1;var F=JSON.parse(N.topic);console.log("[media][PROCESS_SDP_OFFER/UPDATE using exist tracks] Received.. , clientIds: ",F.map(function(V){return V.clientId}).join(",")," |||  topics: ",F.map(function(V){return V.topic}).join(","),", sendTrackQueue: ",this._sendTrackQueue),this._sendTrackQueue.forEach(function(V){F.forEach(function(D){V.topic==D.topic&&D.onTrackCallback(D)})}),this._peer.processOffer(N.sdpOffer,function(V,D){V?console.error("[SDK][processOffer] Error: ",{error:V}):(console.log("[media][RECIVE_SDP_ANSWER] Sending.. , clientIds: ",F.map(function(U){return U.clientId}).join(",")," |||  topics: ",F.map(function(U){return U.topic}).join(",")),O._app.call.currentCall().sendCallMessage({id:"RECIVE_SDP_ANSWER",sdpAnswer:D,token:O._app.sdkParams.token,brokerAddress:O._brokerAddress,addition:F},null,{}),setTimeout(function(){a&&a()}))})}},{key:"addNegotiationOfferToQueue",value:function(N,a){this._negotiationOfferUpdate.push({offer:N,topics:a})}},{key:"_bindReceiveIceCandidateCallback",value:function(){var N=this;this._peer.peerConnection.onicecandidate=function(a){var O=a.candidate;N._app.call.currentCall().sendCallMessage({id:"RECIVE_ADD_ICE_CANDIDATE",brokerAddress:N._brokerAddress,token:N._app.sdkParams.token,chatId:N._callId,iceCandidate:JSON.stringify(O)},null,{})}}},{key:"handleProcessSDPOfferForRenegotiate",value:function(){var N=this;this._bindReceiveIceCandidateCallback();var a=this._negotiationOfferUpdate.shift();this._peer.processOffer(a.offer,function(O,H){O?console.error("[SDK][processOffer] Error: ",{error:O}):N._app.call.currentCall().sendCallMessage({id:"RECIVE_SDP_ANSWER",sdpAnswer:H,token:N._app.sdkParams.token,brokerAddress:N._brokerAddress,deletion:Array.isArray(a.topics)?a.topics:JSON.parse(a.topics)},null,{})})}},{key:"handleProcessLatestSDPOffer",value:function(N,a){var O=this;this._bindReceiveIceCandidateCallback(),this._peer.processOffer(N.sdpOffer,function(H,F){H||(O._app.call.currentCall().sendCallMessage({id:"RECIVE_SDP_ANSWER",sdpAnswer:F,token:O._app.sdkParams.token,brokerAddress:O._brokerAddress},null,{}),setTimeout(function(){a&&a()},100))})}},{key:"repairMutedTracks",value:function(){var N=this;this._trackList.forEach(function(a){a.track&&a.track.mute&&(console.log("[media] repairMutedTracks()",a.topic,{item:a}),N.removeFailedTrack(a),N.processingCurrentTrackCompleted(),a.onOpenFailure(a))})}},{key:"getPeer",value:function(){return this._peer}},{key:"_destroyPeer",value:function(){this._peer.dispose(),this._peer=null}},{key:"destroy",value:function(){var C=(0,l.default)(e.default.mark(function a(){return e.default.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:this._isDestroyed=!0,this._destroyPeer();case 2:case"end":return H.stop()}},a,this)}));return function N(){return C.apply(this,arguments)}}()},{key:"isDestroyed",value:function(){return this._isDestroyed}},{key:"changeVideoSendStream",value:function(N){var a=this._trackList.find(function(H){return 0===H.mediaType});a||console.error("webcam src not found");var O=this._app.call.currentCall().sendPeerManager().getPeer().switchVideoStream(a.currentTrackId,N);O&&(a.currentTrackId=O)}},{key:"getTracksList",value:function(){return this._trackList}},{key:"getIsReConnecting",value:function(){return this._isReconnecting}},{key:"setIsReconnecting",value:function(N){this._isReconnecting=N}},{key:"sendOpenDone",value:function(){this._sendOpenDone=!0}},{key:"isSendOpenDone",value:function(){return this._sendOpenDone}}]),f;var C}()},18423:(M,b,n)=>{"use strict";var t=n(95318);Object.defineProperty(b,"__esModule",{value:!0}),b.WebrtcPeerConnection=function y(g){var f=g.direction,N=g.connectionStateChange,a=void 0===N?null:N,O=g.iceConnectionStateChange,H=void 0===O?null:O,V={rtcPeerConfig:g.rtcPeerConfig,direction:f,offer:null,peerConnection:null,dataChannel:null,candidatesQueue:[]};function K(){"stable"===V.peerConnection.signalingState&&re()}function re(){for(;V.candidatesQueue.length;){var oe=V.candidatesQueue.shift();V.peerConnection.addIceCandidate(oe.candidate,oe.callback,oe.callback)}}return function D(){try{V.peerConnection=new RTCPeerConnection(V.rtcPeerConfig)}catch(oe){console.error("[SDK][WebrtcPeerConnection][createPeer]",oe)}V.peerConnection.onconnectionstatechange=a,V.peerConnection.oniceconnectionstatechange=H,V.peerConnection.addEventListener("signalingstatechange",K)}(),{peerConnection:V.peerConnection,addTrack:function(B,s){!function ie(oe,B){V.peerConnection.addTrack(oe,B)}(B,s)},dispose:function(){V.peerConnection&&(V.peerConnection.ontrack=null,V.peerConnection.onremovetrack=null,V.peerConnection.onicecandidate=null,V.peerConnection.oniceconnectionstatechange=null,V.peerConnection.onsignalingstatechange=null,"closed"!==V.peerConnection.signalingState&&("send"!=f&&function G(){if(!V.peerConnection)return[];var oe=new MediaStream;return V.peerConnection.getReceivers().forEach(function(B){oe.addTrack(B.track)}),[oe]}().forEach(function(B){B.getTracks().forEach(function(s){s.enabled=!1})}),V.peerConnection.close()),V.peerConnection=null)},generateOffer:function(B){return(0,l.default)(e.default.mark(function s(){return e.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return"send"==V.direction?V.peerConnection.getTransceivers().forEach(function(E){E.direction="sendonly"}):V.peerConnection.addTransceiver(V.mediaType,{direction:"recvonly"}),w.prev=1,w.next=4,V.peerConnection.setLocalDescription();case 4:B&&B(null,V.peerConnection.localDescription.sdp),w.next=10;break;case 7:w.prev=7,w.t0=w.catch(1),B&&B(w.t0,null);case 10:case"end":return w.stop()}},s,null,[[1,7]])}))()},processOffer:function(B,s){s=s.bind(this);var _=new RTCSessionDescription({type:"offer",sdp:B});if("closed"===V.peerConnection.signalingState)return s("[SDK][WebRtcModule] PeerConnection is closed");V.peerConnection.setRemoteDescription(_).then(function(){}).then(function(){return V.peerConnection.createAnswer()}).then(function(w){return console.debug("[SDK][WebRtcModule] Created SDP answer"),V.peerConnection.setLocalDescription(w)}).then(function(){s(void 0,V.peerConnection.localDescription.sdp)}).catch(s)},processAnswer:function(B,s){return"closed"===V.peerConnection.signalingState?s("[SDK][WebRtcModule] PeerConnection is closed"):"stable"===V.peerConnection.signalingState?s("[SDK][WebRtcModule] PeerConnection is already stable"):(_=new RTCSessionDescription({type:"answer",sdp:B}),void V.peerConnection.setRemoteDescription(_).then(function(){s&&s()},function(E){s&&s(E)}));var _},switchVideoStream:function(B,s){if(s){var E,w=h(V.peerConnection.getTransceivers());try{for(w.s();!(E=w.n()).done;){var x=E.value;if(x.sender&&x.sender.track&&"video"===x.sender.track.kind&&B===x.sender.track.id)return x.sender.replaceTrack(s.getVideoTracks()[0]),s.getTracks()[0].id}}catch(j){w.e(j)}finally{w.f()}}},switchAudioStream:function(B){return(0,l.default)(e.default.mark(function s(){var _,w,E,x;return e.default.wrap(function($){for(;;)switch($.prev=$.next){case 0:_=V.peerConnection.getTransceivers(),w=h(_),$.prev=2,w.s();case 4:if((E=w.n()).done){$.next=11;break}if(!(x=E.value).sender||!x.sender.track||"audio"!==x.sender.track.kind){$.next=9;break}return $.next=9,x.sender.replaceTrack(B.getAudioTracks()[0]);case 9:$.next=4;break;case 11:$.next=16;break;case 13:$.prev=13,$.t0=$.catch(2),w.e($.t0);case 16:return $.prev=16,w.f(),$.finish(16);case 19:case"end":return $.stop()}},s,null,[[2,13,16,19]])}))()},addIceCandidate:function(B,s){V.candidatesQueue.push({candidate:new RTCIceCandidate(B),callback:s}),re()},getRemoteStream:function(B){if(V.peerConnection)return V.peerConnection.getRemoteStreams()[B||0]},getLocalStream:function(B){if(V.peerConnection)return V.peerConnection.getLocalStreams()[B||0]},onConnectionStable:function(B){V.peerConnection.addEventListener("signalingstatechange",function(){"stable"===V.peerConnection.signalingState&&B&&B()})},generateSDPAnswer:function(){return new Promise(function(B){V.peerConnection.createAnswer(function(s){V.peerConnection.setLocalDescription(s),B(s)},function(s){s&&console.error("error: ",{error:s})})})},updateStream:function(B){return(0,l.default)(e.default.mark(function s(){var _,w;return e.default.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:if(_=B.getTracks()[0],w=V.peerConnection.getSenders()[0]){x.next=6;break}V.peerConnection.addTrack(_),x.next=8;break;case 6:return x.next=8,w.replaceTrack(_);case 8:case"end":return x.stop()}},s)}))()}}};var e=t(n(87757)),l=t(n(48926));function h(g,p){var f=typeof Symbol<"u"&&g[Symbol.iterator]||g["@@iterator"];if(!f){if(Array.isArray(g)||(f=function r(g,p){if(g){if("string"==typeof g)return d(g,p);var f=Object.prototype.toString.call(g).slice(8,-1);if("Object"===f&&g.constructor&&(f=g.constructor.name),"Map"===f||"Set"===f)return Array.from(g);if("Arguments"===f||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return d(g,p)}}(g))||p&&g&&"number"==typeof g.length){f&&(g=f);var C=0,N=function(){};return{s:N,n:function(){return C>=g.length?{done:!0}:{done:!1,value:g[C++]}},e:function(V){throw V},f:N}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var H,a=!0,O=!1;return{s:function(){f=f.call(g)},n:function(){var V=f.next();return a=V.done,V},e:function(V){O=!0,H=V},f:function(){try{!a&&null!=f.return&&f.return()}finally{if(O)throw H}}}}function d(g,p){(null==p||p>g.length)&&(p=g.length);for(var f=0,C=new Array(p);f<p;f++)C[f]=g[f];return C}},14244:(M,b,n)=>{"use strict";var t=n(95318);Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var e=t(n(34575)),l=t(n(93913));b.default=function(){function d(y){(0,e.default)(this,d),this._app=y,this.devices={}}return(0,l.default)(d,[{key:"save",value:function(g,p){console.log("[mediaDevice] save(media, id).. ",{id:p,media:g}),this.devices[g]=p}},{key:"get",value:function(g){return this.devices[g]||null}}]),d}()},16694:(M,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0,b.default=function n(e){var l={ownerId:0,imOwner:!1,isStarted:!1,width:e.call.sharedVariables.callVideoMinWidth,height:e.call.sharedVariables.callVideoMinHeight};return{setOwner:function(r){l.ownerId=+r},setIsStarted:function(r){l.isStarted=r},isStarted:function(){return l.isStarted},iAmOwner:function(){return l.ownerId===e.store.user.get().id},setWidth:function(r){l.width=r},setHeight:function(r){l.height=r},getWidth:function(r){return l.width},getHeight:function(r){return l.height},getOwner:function(){return l.ownerId},setDimension:function(r){r&&r.width&&+r.width>0&&r.height&&+r.height>0?(l.screenShareInfo.setHeight(r.height),l.screenShareInfo.setWidth(r.width)):(l.screenShareInfo.setHeight(e.call.sharedVariables.callVideoMinHeight),l.screenShareInfo.setWidth(e.call.sharedVariables.callVideoMinWidth))}}}},29079:(M,b,n)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var t=n(17713),e=n(44289);b.default=function l(r){var f={globalCallRequestTimeout:null,callTurnIp:null,useInternalTurnAddress:null,callDivId:null,callAudioTagClassName:null,callVideoTagClassName:null,callVideoMinWidth:null,callVideoMinHeight:null,requestedCallId:null,acceptedCallId:null,currentCallId:null,callNoAnswerTimeout:null,callStreamCloseTimeout:null,asyncClient:null,callOptions:null,startScreenSharetParams:{quality:3},deviceManager:null,audioCtx:null};function H(){return r.callsManager.get(r.callsManager.currentCallId())}return{calculateScreenSize:function O(V){var D=V.quality,U=void 0===D?3:D,q=window.screen;return[{width:Math.round(q.width/3),height:Math.round(window.screen.height/3)},{width:Math.round(q.width/2),height:Math.round(q.height/2)},{width:q.width,height:q.height},{width:Math.round(1.6*q.width),height:Math.round(1.6*q.height)}][U?+U-1:3]},currentCallMyUser:function F(){return H().users().get(r.store.user.get().id)},callStopQueue:{callStarted:!1},sharedVariables:f,callClientType:{WEB:1,ANDROID:2,DESKTOP:3},callTypes:{VOICE:0,VIDEO:1},joinCallParams:{cameraPaused:!1},endScreenShare:function a(V,D){var U=r.callsManager.get(r.callsManager.currentCallId());if(U){var q={chatMessageVOType:e.chatMessageVOTypes.END_SCREEN_SHARE,typeCode:V.typeCode,pushMsgType:3,token:r.sdkParams.token,subjectId:r.callsManager.currentCallId()};if(q.subjectId)if(U.screenShareInfo.isStarted()){if(U.users().removeItem("screenShare"),U.screenShareInfo.iAmOwner())return r.messenger.sendMessage(q,{onResult:function(G){D&&D(G)}});U.raiseCallError(t.errorList.NOT_SCREENSHARE_OWNER,D,!0)}else U.raiseCallError(t.errorList.SCREENSHARE_NOT_STARTED,D,!0);else U.raiseCallError(t.errorList.INVALID_CALLID,D,!0,{})}else r.errorHandler.raiseError(t.errorList.INVALID_CALLID,D,!0,{})},currentCall:H,endCall:function N(V,D){r.sdkParams.consoleLogging&&console.log("[SDK][endCall] called...");var U={chatMessageVOType:e.chatMessageVOTypes.END_CALL_REQUEST,typeCode:V.typeCode,pushMsgType:3,token:r.sdkParams.token};if(V){if("number"==typeof+V.callId&&V.callId>0)return U.subjectId=+V.callId,r.messenger.sendMessage(U,{onResult:function(J){D&&D(J)}});r.errorHandler.raiseError(t.errorList.INVALID_CALLID,D,!0,{})}else r.chatEvents.fireEvent("error",{code:999,message:"[SDK] No params have been sent to End the call!"})},audioCtx:function C(){return f.audioCtx||(f.audioCtx=new(window.AudioContext||window.webkitAudioContext)),f.audioCtx}}}},25967:(M,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.topicMetaDataManager=function n(t){var e={userId:t.userId,topic:t.topic,interval:null,receivedSdpAnswer:!1,connectionQualityInterval:null,poorConnectionCount:0,poorConnectionResolvedCount:0,isConnectionPoor:!1};return{setIsConnectionPoor:function(h){e.isConnectionPoor=h},setReceivedSdpAnswer:function(h){e.receivedSdpAnswer=h},setIceCandidateInterval:function(h){e.interval=h},isConnectionPoor:function(){return e.isConnectionPoor},isReceivedSdpAnswer:function(){return e.receivedSdpAnswer},isIceCandidateIntervalSet:function(){return null!==e.interval},clearIceCandidateInterval:function(){clearInterval(e.interval)}}}},82779:(M,b,n)=>{"use strict";var t=n(95318);Object.defineProperty(b,"__esModule",{value:!0}),b.WebrtcPeerConnection=function h(r,d){var p=r.direction,f=void 0===p?"send":p,C=r.mediaType,O=r.stream,H=r.connectionStateChange,F=void 0===H?null:H,V=r.iceConnectionStateChange,D=void 0===V?null:V,U=r.onTrackCallback,q={rtcPeerConfig:r.rtcPeerConfig,direction:f,mediaType:void 0===C?"video":C,offer:null,peerConnection:null,dataChannel:null,stream:O,candidatesQueue:[]};function G(_){return ie.apply(this,arguments)}function ie(){return(ie=(0,l.default)(e.default.mark(function _(w){var E;return e.default.wrap(function($){for(;;)switch($.prev=$.next){case 0:(E=w.track).onunmute=function(){var Y=new MediaStream([E]);U&&U(Y)};case 2:case"end":return $.stop()}},_)}))).apply(this,arguments)}function oe(_){q.peerConnection.addTrack(_,O)}function B(){"stable"===q.peerConnection.signalingState&&s()}function s(){for(;q.candidatesQueue.length;){var _=q.candidatesQueue.shift();q.peerConnection.addIceCandidate(_.candidate,_.callback,_.callback)}}return function J(){try{q.peerConnection=new RTCPeerConnection(q.rtcPeerConfig)}catch(_){console.error("[SDK][WebrtcPeerConnection][createPeer]",_),d&&d(_)}q.peerConnection.onconnectionstatechange=F,q.peerConnection.oniceconnectionstatechange=D,q.peerConnection.addEventListener("signalingstatechange",B),q.peerConnection.addEventListener("track",G),"closed"===q.peerConnection.signalingState&&d&&d('[SDK][WebRtcModule] The peer connection object is in "closed" state. This is most likely due to an invocation of the dispose method before accepting in the dialogue'),"send"===f&&(O.getTracks().forEach(oe),U&&U(O)),setTimeout(function(){d&&d(null)})}(),{peerConnection:q.peerConnection,dispose:function(){q.peerConnection&&(q.peerConnection.ontrack=null,q.peerConnection.onremovetrack=null,q.peerConnection.onicecandidate=null,q.peerConnection.oniceconnectionstatechange=null,q.peerConnection.onsignalingstatechange=null,"closed"!==q.peerConnection.signalingState&&("send"!=f&&function re(){if(!q.peerConnection)return[];var _=new MediaStream;return q.peerConnection.getReceivers().forEach(function(w){_.addTrack(w.track)}),[_]}().forEach(function(w){w.getTracks().forEach(function(E){E.enabled=!1})}),q.peerConnection.close()),q.peerConnection=null)},generateOffer:function(w){return(0,l.default)(e.default.mark(function E(){return e.default.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return"send"==q.direction?q.peerConnection.getTransceivers().forEach(function($){$.direction="sendonly"}):q.peerConnection.addTransceiver(q.mediaType,{direction:"recvonly"}),j.prev=1,j.next=4,q.peerConnection.setLocalDescription();case 4:w&&w(null,q.peerConnection.localDescription.sdp),j.next=10;break;case 7:j.prev=7,j.t0=j.catch(1),w&&w(j.t0,null);case 10:case"end":return j.stop()}},E,null,[[1,7]])}))()},processOffer:function(w,E){E=E.bind(this);var x=new RTCSessionDescription({type:"offer",sdp:w});if("closed"===q.peerConnection.signalingState)return E("[SDK][WebRtcModule] PeerConnection is closed");q.peerConnection.setRemoteDescription(x).then(function(){}).then(function(){return q.peerConnection.createAnswer()}).then(function(j){return console.debug("[SDK][WebRtcModule] Created SDP answer"),q.peerConnection.setLocalDescription(j)}).then(function(){E(null,q.peerConnection.localDescription.sdp)}).catch(E)},processAnswer:function(w,E){if("closed"===q.peerConnection.signalingState)return E("[SDK][WebRtcModule] PeerConnection is closed");if("stable"===q.peerConnection.signalingState)return E("[SDK][WebRtcModule] PeerConnection is already stable");var x=new RTCSessionDescription({type:"answer",sdp:w});q.peerConnection.setRemoteDescription(x).then(function(){E&&E()},function(j){E&&E(j)})},addIceCandidate:function(w,E){q.candidatesQueue.push({candidate:new RTCIceCandidate(w),callback:E}),"stable"===q.peerConnection.signalingState&&s()},getRemoteStream:function(w){if(q.peerConnection)return q.peerConnection.getRemoteStreams()[w||0]},getLocalStream:function(w){if(q.peerConnection)return q.peerConnection.getLocalStreams()[w||0]},onConnectionStable:function(w){q.peerConnection.addEventListener("signalingstatechange",function(){"stable"===q.peerConnection.signalingState&&w&&w()})},updateStream:function(w){return(0,l.default)(e.default.mark(function E(){var x,j;return e.default.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(x=w.getTracks()[0],j=q.peerConnection.getSenders()[0]){Y.next=6;break}q.peerConnection.addTrack(x),Y.next=8;break;case 6:return Y.next=8,j.replaceTrack(x);case 8:case"end":return Y.stop()}},E)}))()}}};var e=t(n(87757)),l=t(n(48926))},50017:(M,b,n)=>{"use strict";var t=n(95318);Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var e=t(n(49064)),l=n(44289);b.default=function h(d){return{inquiryCallParticipants:function y(f,C){(0,e.default)(f);var N={chatMessageVOType:l.chatMessageVOTypes.INQUIRY_CALL,typeCode:d.typeCodes.getActiveTypeCode().typeCode,subjectId:d.callsManager.currentCallId(),content:{}};return d.messenger.sendMessage(N,{onResult:function(O){var H={hasError:O.hasError,cache:!1,errorMessage:O.errorMessage,errorCode:O.errorCode};H.hasError||(H.result=O.result),C&&C(H),C=void 0,H.hasError||d.chatEvents.fireEvent("callEvents",{type:"ACTIVE_CALL_PARTICIPANTS",result:H.result})}})}}}},24776:(M,b,n)=>{"use strict";var t=n(95318);Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var e=n(44289),l=t(n(63902)),h=n(31518);b.default=function r(y){return{getContacts:function g(f,C){var N=25,a=0,O={},H=!1;f&&("boolean"==typeof f.cache&&(H=f.cache),parseInt(f.count)>0&&(N=parseInt(f.count)),parseInt(f.offset)>0&&(a=parseInt(f.offset)),"string"==typeof f.query&&(O.query=f.query),"string"==typeof f.email&&(O.email=f.email),"string"==typeof f.cellphoneNumber&&(O.cellphoneNumber=f.cellphoneNumber),parseInt(f.contactId)>0&&(O.id=f.contactId),"string"==typeof f.uniqueId&&(O.uniqueId=f.uniqueId),"string"==typeof f.username&&(O.username=f.username),typeof f.coreUserId<"u"&&(O.coreUserId=f.coreUserId)),O.size=N,O.offset=a;var D={chatMessageVOType:e.chatMessageVOTypes.GET_CONTACTS,typeCode:f.typeCode,ownerId:f.ownerId,content:O},U=y.store.contacts.paginate(O,H);return U?(C&&C(U),void(C=void 0)):y.messenger.sendMessage(D,{onResult:function(G){var ie={typeCode:G.typeCode,ownerId:G.ownerId,hasError:G.hasError,cache:!1,errorMessage:G.errorMessage,errorCode:G.errorCode};if(!ie.hasError){for(var B,K=G.result,re=K.length,oe={contacts:[],contentCount:G.contentCount,hasNext:a+N<G.contentCount&&re>0,nextOffset:1*a+1*re},s=0;s<re;s++)(B=(0,h.formatDataToMakeContact)(K[s]))&&oe.contacts.push(B);ie.result=oe}var _=JSON.parse(JSON.stringify(ie));_.result.fromCache=!1,C&&C(_),ie.hasError||H&&y.store.contacts.saveMany(O,ie.result,N,a),C=void 0}})},onGetContacts:function p(f,C,N,a){y.store.messagesCallbacks[f]&&y.store.messagesCallbacks[f](l.default.createReturnData(a.typeCode,a.ownerId,!1,"",0,C,N))}}}},91548:(M,b,n)=>{"use strict";var t=n(95318);Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var e=n(44289),l=t(n(63902));b.default=function h(d){var y={},g={};return{getReactionsSummaries:function O(K){var re={chatMessageVOType:e.chatMessageVOTypes.REACTION_COUNT,typeCode:K.typeCode,token:d.sdkParams.token,subjectId:K.threadId,uniqueId:K.uniqueId?K.uniqueId:l.default.generateUUID()},oe=d.store.reactionSummaries.filterExists(K.messageIds);g[re.uniqueId]=K.messageIds;var B=K.messageIds.reduce(function(_,w){return-1===oe.indexOf(w)&&_.push(w),_},[]);return B.length&&(re.content=B,d.messenger.sendMessage(re)),oe&&oe.length&&setTimeout(function(){var _=d.store.reactionSummaries.getMany(oe);_=JSON.parse(JSON.stringify(_)),d.chatEvents.fireEvent("messageEvents",{type:"REACTION_SUMMARIES",uniqueId:re.uniqueId,result:_})},100),{uniqueId:re.uniqueId}},getReactionList:function a(K){var oe=K.messageId,B=K.count,s=void 0===B?20:B,_=K.offset,w=void 0===_?0:_,E=K.sticker,x=void 0===E?null:E,j=K.uniqueId,Y=K.typeCode,W={chatMessageVOType:e.chatMessageVOTypes.REACTION_LIST,subjectId:K.threadId,typeCode:void 0===Y?null:Y,content:{messageId:oe,count:s,offset:w},token:d.sdkParams.token,uniqueId:void 0===j?null:j};x&&"null"!=x&&(W.content.sticker=x),W.uniqueId||(W.uniqueId=l.default.generateUUID()),y[W.uniqueId]=W.content;var fe=d.store.reactionsList.getItem(oe,x,s,w);if(fe&&(fe=JSON.parse(JSON.stringify(fe)),d.chatEvents.fireEvent("messageEvents",{type:"REACTIONS_LIST",uniqueId:W.uniqueId,messageId:oe,result:fe})),!fe)return d.messenger.sendMessage(W)},removeReaction:function N(K,re){return d.messenger.sendMessage({chatMessageVOType:e.chatMessageVOTypes.REMOVE_REACTION,subjectId:K.threadId,typeCode:K.typeCode,content:{reactionId:K.reactionId},token:d.sdkParams.token},{onResult:function(s){re&&re(s)}})},replaceReaction:function C(K,re){return d.messenger.sendMessage({chatMessageVOType:e.chatMessageVOTypes.REPLACE_REACTION,subjectId:K.threadId,typeCode:K.typeCode,content:{reactionId:K.reactionId,reaction:K.reaction},token:d.sdkParams.token},{onResult:function(s){re&&re(s)}})},getMyReaction:function f(K,re){return d.messenger.sendMessage({chatMessageVOType:e.chatMessageVOTypes.GET_MY_REACTION,subjectId:K.threadId,typeCode:K.typeCode,content:{messageId:K.messageId},token:d.sdkParams.token},{onResult:function(s){re&&re(s)}})},addReaction:function p(K,re){return d.messenger.sendMessage({chatMessageVOType:e.chatMessageVOTypes.ADD_REACTION,subjectId:K.threadId,typeCode:K.typeCode,content:{messageId:K.messageId,reaction:K.reaction},token:d.sdkParams.token})},customizeReaction:function H(K,re){return d.messenger.sendMessage({chatMessageVOType:e.chatMessageVOTypes.CUSTOMIZE_REACTION,typeCode:K.typeCode,token:d.sdkParams.token,subjectId:K.threadId,content:{reactionStatus:K.reactionStatus,allowedReactions:K.allowedReactions}},{onResult:function(s){re&&re(s)}})},getThreadAllowedReactions:function F(K){return d.messenger.sendMessage({chatMessageVOType:e.chatMessageVOTypes.GET_THREAD_ALLOWED_REACTIONS,typeCode:K.typeCode,token:d.sdkParams.token,subjectId:K.threadId})},onReactionSummaries:function V(K,re){var oe=JSON.parse(JSON.stringify(re));d.store.reactionSummaries.addMany(re),g[K]&&g[K].length&&g[K].forEach(function(B){d.store.reactionSummaries.initItem(B,{})}),d.chatEvents.fireEvent("messageEvents",{type:"REACTION_SUMMARIES",uniqueId:K,result:oe})},onReactionList:function D(K,re){if(y[K]){var oe=y[K];d.store.reactionsList.save(y[K],re);var B=d.store.reactionsList.getItem(oe.messageId,oe.sticker,oe.count,oe.offset);B&&(B=JSON.parse(JSON.stringify(B))),d.chatEvents.fireEvent("messageEvents",{type:"REACTIONS_LIST",uniqueId:K,messageId:oe.messageId,result:B}),delete y[K]}},onRemoveReaction:function U(K,re,oe){d.store.reactionSummaries.decreaseCount(re.messageId,re.reactionVO.reaction),d.store.user.isMe(re.reactionVO.participantVO.id)&&d.store.reactionSummaries.removeMyReaction(re.messageId),d.store.reactionsList.removeCachedData(re.messageId,re.reactionVO.reaction),d.chatEvents.fireEvent("messageEvents",{type:"REMOVE_REACTION",result:re})},onReplaceReaction:function q(K,re,oe){d.store.reactionSummaries.decreaseCount(re.messageId,re.oldSticker),d.store.reactionSummaries.increaseCount(re.messageId,re.reactionVO.reaction),d.store.reactionSummaries.maybeUpdateMyReaction(re.messageId,re.reactionVO.id,re.reactionVO.reaction,re.reactionVO.participantVO.id,re.reactionVO.time),d.store.reactionsList.removeCachedData(re.messageId,re.oldSticker),d.store.reactionsList.removeCachedData(re.messageId,re.reactionVO.reaction),d.chatEvents.fireEvent("messageEvents",{type:"REPLACE_REACTION",result:re})},onAddReaction:function J(K,re,oe){var B=JSON.parse(JSON.stringify(re));d.store.reactionSummaries.increaseCount(re.messageId,re.reactionVO.reaction),d.store.reactionSummaries.maybeUpdateMyReaction(re.messageId,re.reactionVO.id,re.reactionVO.reaction,re.reactionVO.participantVO.id,re.reactionVO.time),d.store.reactionsList.removeCachedData(re.messageId,re.reactionVO.reaction),d.chatEvents.fireEvent("messageEvents",{type:"ADD_REACTION",result:B})},onCustomizeReaction:function G(K,re,oe){oe.threadId=re,d.chatEvents.fireEvent("threadEvents",{type:"CUSTOMIZE_REACTION",result:oe})},onGetThreadAllowedReactions:function ie(K,re,oe){oe.threadId=re,d.chatEvents.fireEvent("threadEvents",{type:"GET_THREAD_ALLOWED_REACTIONS",result:oe})}}}},5137:(M,b,n)=>{"use strict";var t=n(95318);Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var e=t(n(50008)),l=n(31518),h=n(44289),r=t(n(63902));b.default=function d(g){return{getHistory:function p(C,N){if(parseInt(C.threadId)>0){var a={chatMessageVOType:h.chatMessageVOTypes.GET_HISTORY,typeCode:C.typeCode,content:{},subjectId:C.threadId},O=parseInt(C.offset)>0?parseInt(C.offset):0,H=parseInt(C.count)>0?parseInt(C.count):20,F=typeof C.order<"u"?C.order.toLowerCase():"desc",V=!(!C.dynamicHistoryCount||"boolean"!=typeof C.dynamicHistoryCount)&&C.dynamicHistoryCount,D=!C.queues||"boolean"!=typeof C.queues.sending||C.queues.sending,U=!C.queues||"boolean"!=typeof C.queues.failed||C.queues.failed,q=!C.queues||"boolean"!=typeof C.queues.uploading||C.queues.uploading,J=[],G=[],ie=[];D&&g.messageQueues.getChatSendQueue(parseInt(C.threadId),function(K){for(var re=0;re<K.length;re++){var oe=(new Date).getTime();J.push((0,l.formatDataToMakeMessage)(K[re].threadId,{uniqueId:K[re].uniqueId,ownerId:g.store.user.get().id,message:K[re].content,metadata:K[re].metadata,systemMetadata:K[re].systemMetadata,replyInfo:K[re].replyInfo,forwardInfo:K[re].forwardInfo,time:oe,timeNanos:oe%1e3*1e6}))}}),q&&g.messageQueues.getChatUploadQueue(parseInt(C.threadId),function(K){for(var re=0;re<K.length;re++){K[re].message.participant=g.store.user.get();var oe=(new Date).getTime();K[re].message.time=oe,K[re].message.timeNanos=oe%1e3*1e6,ie.push((0,l.formatDataToMakeMessage)(C.threadId,K[re].message,!1))}}),g.messageQueues.getChatWaitQueue(parseInt(C.threadId),U,function(K){if(G=[],V){var re=H-(J.length+G.length+ie.length);a.content.count=re>0?re:0}else a.content.count=H;a.content.offset=O,a.content.order=F,parseInt(C.messageId)>0&&(a.content.id=C.messageId),Array.isArray(C.uniqueIds)&&(a.content.uniqueIds=C.uniqueIds),parseInt(C.fromTimeFull)>0&&19===C.fromTimeFull.toString().length?(a.content.fromTime=parseInt(C.fromTimeFull.toString().substring(0,13)),a.content.fromTimeNanos=parseInt(C.fromTimeFull.toString().substring(10,19))):(parseInt(C.fromTime)>0&&parseInt(C.fromTime)<9999999999999&&(a.content.fromTime=parseInt(C.fromTime)),parseInt(C.fromTimeNanos)>0&&parseInt(C.fromTimeNanos)<999999999&&(a.content.fromTimeNanos=parseInt(C.fromTimeNanos))),parseInt(C.toTimeFull)>0&&19===C.toTimeFull.toString().length?(a.content.toTime=parseInt(C.toTimeFull.toString().substring(0,13)),a.content.toTimeNanos=parseInt(C.toTimeFull.toString().substring(10,19))):(parseInt(C.toTime)>0&&parseInt(C.toTime)<9999999999999&&(a.content.toTime=parseInt(C.toTime)),parseInt(C.toTimeNanos)>0&&parseInt(C.toTimeNanos)<999999999&&(a.content.toTimeNanos=parseInt(C.toTimeNanos))),typeof C.query<"u"&&(a.content.query=C.query),C.allMentioned&&"boolean"==typeof C.allMentioned&&(a.content.allMentioned=C.allMentioned),C.unreadMentioned&&"boolean"==typeof C.unreadMentioned&&(a.content.unreadMentioned=C.unreadMentioned),C.messageType&&typeof C.messageType.toUpperCase()<"u"&&h.chatMessageTypes[C.messageType.toUpperCase()]>0&&(a.content.messageType=h.chatMessageTypes[C.messageType.toUpperCase()]),"object"==(0,e.default)(C.metadataCriteria)&&C.metadataCriteria.hasOwnProperty("field")&&(a.content.metadataCriteria=C.metadataCriteria),"boolean"==typeof C.onlyNewMessages&&(a.content.newMessages=C.onlyNewMessages);var oe=!1;if("boolean"==typeof C.cache&&(oe=C.cache),!oe||!g.store.history.canGetFromCache(C.threadId,a.content))return g.messenger.sendMessage(a,{onResult:function(w){var E={hasError:w.hasError,cache:!1,errorMessage:w.errorMessage,errorCode:w.errorCode};if(!E.hasError){var j=w.result,$=j.length,Y=(0,l.reformatThreadHistory)(C.threadId,j);if(oe&&g.store.history.saveList(C.threadId,a.content,JSON.parse(JSON.stringify(Y))),$>0){var W=Y[0];g.store.user.get().id!==W.participant.id&&!W.delivered&&g.messageQueues.putInMessagesDeliveryQueue(C.threadId,W.id)}E.result={history:Y,contentCount:w.contentCount,hasNext:w.result&&!(w.result.length<a.content.count),nextOffset:1*a.content.offset+1*$},D&&(E.result.sending=J),q&&(E.result.uploading=ie),U&&(E.result.failed=G),N&&N(E),N=void 0}}});var B={hasError:!1,cache:!0,errorMessage:null,errorCode:null},s=g.store.history.get(C.threadId).count(a.content.count);B.result={history:s,hasNext:g.store.history.get(C.threadId).hasMore(),nextOffset:1*a.content.offset+1*s.length},D&&(B.result.sending=J),q&&(B.result.uploading=ie),U&&(B.result.failed=G),N&&N(B),N=void 0})}else g.chatEvents.fireEvent("error",{code:999,message:"[SDK] Thread ID is required for Getting history!"})},onGetHistory:function f(C,N,a,O){g.store.messagesCallbacks[C]&&g.store.messagesCallbacks[C](r.default.createReturnData(O.typeCode,O.ownerId,!1,"",0,N,a))}}}},82670:(M,b,n)=>{"use strict";var t=n(95318);Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var e=n(44289),l=t(n(63902)),h=n(31518);b.default=function r(y){var g={};return{createThread:function a(O,H,F){var V=(0,h.formatDataToMakeConversation)(O);return H&&y.chatEvents.fireEvent("threadEvents",{type:"THREAD_NEW",redirectToThread:!0===F&&F,result:{thread:V}}),V},getPinMessages:function p(O,H){var F={chatMessageVOType:e.chatMessageVOTypes.GET_PIN_MESSAGE,typeCode:O.typeCode,token:y.sdkParams.token};if(O.uniqueId||(F.uniqueId=l.default.generateUUID()),O.content&&O.content.length){var V=[],D=[];if(O.content.forEach(function(U){var q=y.store.threads.findOrCreate({id:U});q.pinMessage.isPinMessageRequested()||q.get().pinMessageVO?q.get().pinMessageVO&&D.push(JSON.parse(JSON.stringify({id:q.get().id,pinMessageVO:q.get().pinMessageVO}))):V.push(U)}),D.length&&y.chatEvents.fireEvent("threadEvents",{type:"GET_PIN_MESSAGES",result:D,uniqueId:F.uniqueId}),V.length)return g[F.uniqueId]=V,y.messenger.sendMessage(F)}},getLastActionInthread:function f(O){var H={chatMessageVOType:e.chatMessageVOTypes.LAST_ACTION_IN_THREAD,typeCode:O.typeCode,token:y.sdkParams.token};if(O.uniqueId||(H.uniqueId=l.default.generateUUID()),O.content&&O.content.length)return H.content=O.content,y.messenger.sendMessage(H)},onGetPinMessages:function C(O,H,F){if(g[O]){var V=[];g[O].forEach(function(D){var U=y.store.threads.findOrCreate({id:D.id}),q=H.length&&H.find(function(J){return J.id==U.id});q&&(U.pinMessage.setPinMessage(q.pinMessageVO),V.push(JSON.parse(JSON.stringify({id:U.id,pinMessageVO:q.pinMessageVO})))),U.pinMessage.setPinMessageRequested(!0)}),y.chatEvents.fireEvent("threadEvents",{type:"GET_PIN_MESSAGES",result:V,uniqueId:O})}},onGetLastActionInThread:function N(O,H,F){var V=[];H.forEach(function(D){V.push({id:D.threadId,lastMessageVO:D.lastMessageVO,lastReactionVO:D.lastReactionVO})}),y.chatEvents.fireEvent("threadEvents",{type:"GET_LAST_ACTION_IN_THREAD",result:V,uniqueId:O})}}}},7661:(M,b,n)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var t=n(44289),e=n(31518);b.default=function l(r){return{getThreadParticipants:function d(p,f){var C={chatMessageVOType:t.chatMessageVOTypes.THREAD_PARTICIPANTS,typeCode:p.typeCode,content:{},subjectId:p.threadId},a=parseInt(p.offset)>0?parseInt(p.offset):0,O=parseInt(p.count)>0?parseInt(p.count):20;return C.content.count=O,C.content.offset=a,"string"==typeof p.name&&(C.content.name=p.name),"string"==typeof p.username&&(C.content.username=p.username),"string"==typeof p.cellphoneNumber&&(C.content.cellphoneNumber=p.cellphoneNumber),"boolean"==typeof p.admin&&(C.content.admin=p.admin),r.messenger.sendMessage(C,{onResult:function(F){var V={hasError:F.hasError,cache:!1,errorMessage:F.errorMessage,errorCode:F.errorCode};if(!V.hasError){var D=F.result,U=D.length,q={participants:(0,e.reformatThreadParticipants)(D,p.threadId),contentCount:F.contentCount,hasNext:C.content.offset+C.content.count<F.contentCount&&U>0,nextOffset:1*C.content.offset+1*U};V.result=q}f&&f(V),f=void 0}})},addParticipants:function y(p,f){var C={chatMessageVOType:t.chatMessageVOTypes.ADD_PARTICIPANT,typeCode:p.typeCode,content:[]};if(p){if(parseInt(p.threadId)>0&&(C.subjectId=p.threadId),Array.isArray(p.contactIds)&&(C.content=p.contactIds),Array.isArray(p.usernames)){C.content=[];for(var N=0;N<p.usernames.length;N++)C.content.push({id:p.usernames[N],idType:t.inviteeVOidTypes.TO_BE_USER_USERNAME})}if(Array.isArray(p.coreUserids))for(C.content=[],N=0;N<p.coreUserids.length;N++)C.content.push({id:p.coreUserids[N],idType:t.inviteeVOidTypes.TO_BE_CORE_USER_ID})}return r.messenger.sendMessage(C,{onResult:function(O){var H={typeCode:O.typeCode,ownerId:O.ownerId,hasError:O.hasError,cache:!1,errorMessage:O.errorMessage,errorCode:O.errorCode};H.hasError||(H.result={thread:r.threadMethods.createThread(O.result)}),f&&f(H)}})},addParticipants2:function g(p,f){var C={chatMessageVOType:t.chatMessageVOTypes.ADD_PARTICIPANT,typeCode:p.typeCode,content:[]};if(p&&(parseInt(p.threadId)>0&&(C.subjectId=p.threadId),Array.isArray(p.contactIds)&&(C.content=p.contactIds),Array.isArray(p.invitees))){C.content=[];for(var N=0;N<p.invitees.length;N++)C.content.push({id:p.invitees[N].id,idType:p.invitees[N].idType,historyTime:p.invitees[N].historyTime})}return r.messenger.sendMessage(C,{onResult:function(O){var H={typeCode:O.typeCode,ownerId:O.ownerId,hasError:O.hasError,cache:!1,errorMessage:O.errorMessage,errorCode:O.errorCode};H.hasError||(H.result={thread:r.threadMethods.createThread(O.result)}),f&&f(H)}})}}}},32900:(M,b,n)=>{"use strict";var t=n(50008);Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var e=function h(g,p){if(!p&&g&&g.__esModule)return g;if(null===g||"object"!==t(g)&&"function"!=typeof g)return{default:g};var f=l(p);if(f&&f.has(g))return f.get(g);var C={},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in g)if("default"!==a&&Object.prototype.hasOwnProperty.call(g,a)){var O=N?Object.getOwnPropertyDescriptor(g,a):null;O&&(O.get||O.set)?Object.defineProperty(C,a,O):C[a]=g[a]}return C.default=g,f&&f.set(g,C),C}(n(81263));function l(g){if("function"!=typeof WeakMap)return null;var p=new WeakMap,f=new WeakMap;return(l=function(N){return N?f:p})(g)}var r={};b.default=function d(g){function N(H){var F;r[H].findPreviousUploads().then(function(V){V.length&&r[H].resumeFromPreviousUpload(V[0])}),null===(F=r[H])||void 0===F||F.start()}return{sendResumableFileMessage:function p(H,F){(function f(H,F){var V=H.file,U=H.threadId,q=H.uniqueId,J=H.fileObject,G=H.originalFileName;r[q]=new e.Upload(V,{endpoint:g.sdkParams.SERVICE_ADDRESSES.PODSPACE_FILESERVER_ADDRESS+"/api/files/resumable_upload",retryDelays:[0,3e3,5e3,1e4,2e4,3e4,4e4,5e4,6e4],chunkSize:5242880,headers:{Authorization:"Bearer "+g.sdkParams.token},metadata:{userGroupHash:H.userGroupHash,name:V.name},onError:function(K){},onProgress:function(K,re){var oe=(K/re*100).toFixed(0);oe>r[q].last_percentage&&g.chatEvents.fireEvent("fileUploadEvents",{threadId:U,uniqueId:q,state:"UPLOADING",progress:oe,fileInfo:{fileName:G,fileSize:J.size},fileObject:J}),r[q].last_percentage=oe},onSuccess:function(){fetch(g.sdkParams.SERVICE_ADDRESSES.PODSPACE_FILESERVER_ADDRESS+"/api/files/uploaded_file_info/"+r[q].url.split("/").pop(),{headers:{Authorization:"Bearer "+g.sdkParams.token}}).then(function(K){K.json().then(function(re){F&&F(re)})}),delete r[q]},onShouldRetry:function(K,re,oe){var B=K.originalResponse?K.originalResponse.getStatus():0;return!(400===B||401===B)}})})(H,F),N(H.uniqueId)},resume:function C(H){var F,V;null===(F=r[H])||void 0===F||F.findPreviousUploads().then(function(D){D.length&&r[H].resumeFromPreviousUpload(D[0])}),null===(V=r[H])||void 0===V||V.start()},start:N,pause:function a(H){var F;null===(F=r[H])||void 0===F||F.abort()},abort:function O(H){var F;null===(F=r[H])||void 0===F||F.abort()}}}},44289:(M,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.systemMessageTypes=b.inviteeVOidTypes=b.imageMimeTypes=b.imageExtentions=b.customizeReactionTypes=b.createThreadTypes=b.chatStickerTypes=b.chatMessageVOTypes=b.chatMessageTypes=b.callStickerTypes=b.callMetaDataTypes=b.assistantActionTypes=b.CHAT_ERRORS=void 0,b.chatMessageVOTypes={CREATE_THREAD:1,MESSAGE:2,SENT:3,DELIVERY:4,SEEN:5,PING:6,BLOCK:7,UNBLOCK:8,LEAVE_THREAD:9,ADD_PARTICIPANT:11,GET_STATUS:12,GET_CONTACTS:13,GET_THREADS:14,GET_HISTORY:15,CHANGE_TYPE:16,REMOVED_FROM_THREAD:17,REMOVE_PARTICIPANT:18,MUTE_THREAD:19,UNMUTE_THREAD:20,UPDATE_THREAD_INFO:21,FORWARD_MESSAGE:22,USER_INFO:23,USER_STATUS:24,GET_BLOCKED:25,RELATION_INFO:26,THREAD_PARTICIPANTS:27,EDIT_MESSAGE:28,DELETE_MESSAGE:29,THREAD_INFO_UPDATED:30,LAST_SEEN_UPDATED:31,GET_MESSAGE_DELIVERY_PARTICIPANTS:32,GET_MESSAGE_SEEN_PARTICIPANTS:33,IS_NAME_AVAILABLE:34,JOIN_THREAD:39,BOT_MESSAGE:40,SPAM_PV_THREAD:41,SET_ROLE_TO_USER:42,REMOVE_ROLE_FROM_USER:43,CLEAR_HISTORY:44,SYSTEM_MESSAGE:46,GET_NOT_SEEN_DURATION:47,PIN_THREAD:48,UNPIN_THREAD:49,PIN_MESSAGE:50,UNPIN_MESSAGE:51,UPDATE_CHAT_PROFILE:52,CHANGE_THREAD_PRIVACY:53,GET_PARTICIPANT_ROLES:54,GET_REPORT_REASONS:56,REPORT_THREAD:57,REPORT_USER:58,REPORT_MESSAGE:59,GET_CONTACT_NOT_SEEN_DURATION:60,ALL_UNREAD_MESSAGE_COUNT:61,CREATE_BOT:62,DEFINE_BOT_COMMAND:63,START_BOT:64,STOP_BOT:65,LAST_MESSAGE_DELETED:66,LAST_MESSAGE_EDITED:67,BOT_COMMANDS:68,THREAD_ALL_BOTS:69,CALL_REQUEST:70,ACCEPT_CALL:71,REJECT_CALL:72,RECEIVE_CALL_REQUEST:73,START_CALL:74,END_CALL_REQUEST:75,END_CALL:76,GET_CALLS:77,RECONNECT:78,CONNECT:79,CONTACT_SYNCED:90,GROUP_CALL_REQUEST:91,LEAVE_CALL:92,ADD_CALL_PARTICIPANT:93,CALL_PARTICIPANT_JOINED:94,REMOVE_CALL_PARTICIPANT:95,TERMINATE_CALL:96,MUTE_CALL_PARTICIPANT:97,UNMUTE_CALL_PARTICIPANT:98,CANCEL_GROUP_CALL:99,LOGOUT:100,LOCATION_PING:101,CLOSE_THREAD:102,REMOVE_BOT_COMMANDS:104,SEARCH:105,CONTINUE_SEARCH:106,REGISTER_ASSISTANT:107,DEACTIVATE_ASSISTANT:108,GET_ASSISTANTS:109,ACTIVE_CALL_PARTICIPANTS:110,CALL_SESSION_CREATED:111,IS_BOT_NAME_AVAILABLE:112,TURN_ON_VIDEO_CALL:113,TURN_OFF_VIDEO_CALL:114,ASSISTANT_HISTORY:115,BLOCK_ASSISTANT:116,UNBLOCK_ASSISTANT:117,BLOCKED_ASSISTANTS:118,RECORD_CALL:121,END_RECORD_CALL:122,START_SCREEN_SHARE:123,END_SCREEN_SHARE:124,DELETE_FROM_CALL_HISTORY:125,DESTINED_RECORD_CALL:126,GET_CALLS_TO_JOIN:129,MUTUAL_GROUPS:130,CREATE_TAG:140,EDIT_TAG:141,DELETE_TAG:142,ADD_TAG_PARTICIPANT:143,REMOVE_TAG_PARTICIPANT:144,GET_TAG_LIST:145,DELETE_MESSAGE_THREAD:151,EXPORT_CHAT:152,ADD_CONTACTS:200,REMOVE_CONTACTS:201,CONTACT_THREAD_UPDATE:220,SWITCH_TO_GROUP_CALL_REQUEST:221,RECORD_CALL_STARTED:222,ARCHIVE_THREAD:223,UNARCHIVE_THREAD:224,CALL_STICKER_SYSTEM_MESSAGE:225,CUSTOMER_INFO:226,RECALL_THREAD_PARTICIPANT:227,INQUIRY_CALL:228,CALL_RECORDING_FAILED:230,LAST_MESSAGE_INFO:234,GET_PIN_MESSAGE:236,GET_THREAD_LIGHT:237,REPLY_PRIVATELY:238,ADD_REACTION:239,REPLACE_REACTION:240,REMOVE_REACTION:241,REACTION_LIST:242,GET_MY_REACTION:243,REACTION_COUNT:244,CUSTOMIZE_REACTION:245,SET_ADMIN_ROLE_TO_USER:250,REMOVE_ADMIN_ROLE_FROM_USER:251,LAST_ACTION_IN_THREAD:252,ADD_USER_TO_USER_GROUP:253,GET_THREAD_ALLOWED_REACTIONS:255,ERROR:999},b.inviteeVOidTypes={TO_BE_USER_SSO_ID:1,TO_BE_USER_CONTACT_ID:2,TO_BE_USER_CELLPHONE_NUMBER:3,TO_BE_USER_USERNAME:4,TO_BE_USER_ID:5,TO_BE_CORE_USER_ID:6},b.createThreadTypes={NORMAL:0,OWNER_GROUP:1,PUBLIC_GROUP:2,CHANNEL_GROUP:4,CHANNEL:8,NOTIFICATION_CHANNEL:16,PUBLIC_THREAD:32,PUBLIC_CHANNEL:64,SELF:128},b.chatMessageTypes={TEXT:"1",VOICE:"2",PICTURE:"3",VIDEO:"4",SOUND:"5",FILE:"6",POD_SPACE_PICTURE:"7",POD_SPACE_VIDEO:"8",POD_SPACE_SOUND:"9",POD_SPACE_VOICE:"10",POD_SPACE_FILE:"11",LINK:"12",END_CALL:"13",START_CALL:"14",STICKER:"15",LOCATION:"16"},b.assistantActionTypes={REGISTER:1,ACTIVATE:2,DEACTIVATE:3,BLOCK:4},b.systemMessageTypes={IS_TYPING:"1",RECORD_VOICE:"2",UPLOAD_PICTURE:"3",UPLOAD_VIDEO:"4",UPLOAD_SOUND:"5",UPLOAD_FILE:"6"},b.imageMimeTypes=["image/bmp","image/png","image/tiff","image/x-icon","image/jpeg","image/webp"],b.imageExtentions=["bmp","png","tiff","tiff2","ico","jpg","jpeg","webp"],b.callStickerTypes={RAISE_HAND:"raise_hand",LIKE:"like",DISLIKE:"dislike",CLAP:"clap",HEART:"heart",HAPPY:"happy",ANGRY:"angry",CRY:"cry",POWER:"power",BORED:"bored"},b.chatStickerTypes={HI_FIVE:1,LIKE:2,HAPPY:3,CRY:4,THUMBS_DOWN:5,RED_HEART:6,ANGRY_FACE:7,VERIFICATION:8,HEART_EYES:9,CLAPPING_HANDS:10,FACE_SCREAMING:11,FLUSHING_FACE:12,GRIMACING_FACE:13,NO_EXPRESSION_FACE:14,ROFL:15,FACEPALMING_GIRL:16,FACEPALMING_BOY:17,SWEARING_FACE:18,BLOWING_KISS_FACE:19,SEE_NO_EVIL_MONKEY:20,TULIP:21,GREEN_HEART:22,PURPLE_HEART:23,BD_CAKE:24,HUNDRED_POINT:25,ALARM:26,PARTY_POPPER:27,PERSON_WALKING:28,SMILING_POO:29,CRYING_LOUDLY_FACE:30},b.callMetaDataTypes={POORCONNECTION:1,POORCONNECTIONRESOLVED:2,CUSTOMUSERMETADATA:3,SCREENSHAREMETADATA:4},b.customizeReactionTypes={deActive:1,active:2,customizeReaction:3},b.CHAT_ERRORS={6e3:"No Active Device found for this Token!",6001:"Invalid Token!",6002:"User not found!",6100:"Cant get UserInfo!",6101:"Getting User Info Retry Count exceeded 5 times; Connection Can Not Been Estabilished!",6200:"Network Error",6201:"URL is not clarified!",6300:"Error in uploading File!",6301:"Not an image!",6302:"No file has been selected!",6303:"File upload has been canceled!",6304:"User Group Hash is needed for file sharing!",6600:"Your Environment doesn't have Databse compatibility",6601:"Database is not defined! (missing db)",6602:"Database Error",6700:'You should Enter a Center Location like {lat: " ", lng: " "}'}},17713:(M,b,n)=>{"use strict";var t=n(95318);Object.defineProperty(b,"__esModule",{value:!0}),b.errorList=b.default=void 0;var e=t(n(59713));function l(g,p){var f=Object.keys(g);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(g);p&&(C=C.filter(function(N){return Object.getOwnPropertyDescriptor(g,N).enumerable})),f.push.apply(f,C)}return f}function h(g){for(var p=1;p<arguments.length;p++){var f=null!=arguments[p]?arguments[p]:{};p%2?l(Object(f),!0).forEach(function(C){(0,e.default)(g,C,f[C])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(f)):l(Object(f)).forEach(function(C){Object.defineProperty(g,C,Object.getOwnPropertyDescriptor(f,C))})}return g}var r={INVALID_CALLID:{code:12e3,message:"[SDK] Call not started or invalid callId"},SOCKET_NOT_CONNECTED:{code:12002,message:"[SDK] Async is not connected"},REQUEST_BLOCKED:{code:12003,message:"[SDK] Requests to {methodName} has been blocked for next {seconds} seconds.",variables:["{methodName}","{seconds}"]},CALL_SERVER_ERROR:{code:12004,message:"[SDK] ERROR from call server: {errorMessage}",variables:["{errorMessage}"]},INVALID_APP_ID:{code:12005,message:"[SDK] AppId is not valid. it should be a string with maximum of 30 characters"},INVALID_CONTACT_TYPE:{code:12006,message:"[SDK] TypeCode is not valid"},INVITEES_LIST_REQUIRED:{code:12350,message:"Invitees list is required"},VIDEO_PERMISSION_ERROR:{code:12400,message:"Could not grant video input permission"},AUDIO_PERMISSION_ERROR:{code:12401,message:"Could not grant audio input permission"},AUDIO_OUT_PERMISSION_ERROR:{code:12402,message:"Could not grant audio out permission"},MEDIA_DEVICES_NOT_SUPPORTED:{code:12403,message:"Current environment does not supports user media devices"},SCREENSHARE_PERMISSION_ERROR:{code:12404,message:"Could not grant screen share permission"},NO_AUDIO_TRACKS_AVAILABLE:{code:12405,message:"Audio stream has no tracks"},AUDIO_TRACK_MUTED:{code:12406,message:"Audio track is muted and is not useful anymore, request the permission again"},AUDIO_TRACK_ENDED:{code:12407,message:"Audio track is ended and is not useful anymore, request the permission again"},AUDIO_TRACK_DISABLED:{code:12408,message:"Audio track is disabled, enable it to be able to send voice"},CHANGE_MEDIA_DEVICE_FAILED:{code:12409,message:"Can not change device"},SCREENSHARE_NOT_STARTED:{code:12550,message:"ScreenShare not started "},NOT_SCREENSHARE_OWNER:{code:12551,message:"You are not ScreenShare owner"},SCREENSHARE_ALREADY_STARTED:{code:12552,message:"ScreenShare already started "},INVALID_STICKER_NAME:{code:12700,message:"[SDK] Invalid sticker name. Use SDK.callStickerTypes"},USER_NOT_MEMBER_OF_USERGROUP:{code:12721,message:"[SDK] User is not member of userGroup in PodSpace, send threadId in params so sdk can retry the request"}};b.errorList=r,b.default=function d(g){return{handleError:function p(N){var a=Object.values(r).filter(function(O){return O.code==N});return a.length?a[0]:{}},raiseError:function C(N,a){var O=arguments.length>2&&void 0!==arguments[2]&&arguments[2],H=arguments.length>3?arguments[3]:void 0,F=H.eventName,V=void 0===F?"error":F,D=H.eventType,U=void 0===D?null:D,q=H.environmentDetails,J=void 0===q?null:q;return a&&a({hasError:!0,errorCode:N.code,errorMessage:N.message}),O&&g.chatEvents.fireEvent(V,{type:U,code:N.code,message:N.message,environmentDetails:J}),h({hasError:!0},N)},getFilledErrorObject:function f(N){for(var a in N.variables)N.message=N.message.replace(N.variables[a],N.replacements[a]);return N}}}},80250:(M,b,n)=>{"use strict";var t=n(95318);Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var e=t(n(63902));b.default=function l(r){return{getImageDownloadLinkFromPodspaceNew:function d(p,f){if(p){if(p.hashCode&&"string"==typeof p.hashCode){var C=r.sdkParams.SERVICE_ADDRESSES.PODSPACE_FILESERVER_ADDRESS+r.sdkParams.SERVICES_PATH.PODSPACE_DOWNLOAD_IMAGE_NEW.replace("{fileHash}",p.hashCode);return f&&f({hasError:!1,downloadUrl:C}),C}f&&f({hasError:!0,error:"Enter a image hash to get download link!"})}},getImageFromPodspaceNew:function y(p,f){var C=e.default.generateUUID(),N={size:p.size,quality:p.quality,crop:p.crop};if(p){if(!p.hashCode||"string"!=typeof p.hashCode)return void f({hasError:!0,error:"Enter a file hash to get"});if(N.hash=p.hashCode,"link"!==p.responseType)return"base64"===p.responseType?(r.httpRequest.httpRequest({url:r.sdkParams.SERVICE_ADDRESSES.PODSPACE_FILESERVER_ADDRESS+r.sdkParams.SERVICES_PATH.PODSPACE_DOWNLOAD_IMAGE_NEW.replace("{fileHash}",p.hashCode)+"?checkUserGroupAccess=true&size=".concat(p.size,"&quality=").concat(p.quality,"&crop=").concat(p.crop),method:"GET",uniqueId:C,responseType:"blob",headers:{Authorization:"Bearer "+r.sdkParams.token},enableDownloadProgressEvents:p.enableDownloadProgressEvents,hashCode:p.hashCode},function(O){if(O.hasError)f({hasError:!0});else{var H=new FileReader;H.onloadend=function(){f({hasError:O.hasError,type:"base64",result:H.result})},H.readAsDataURL(O.result.response)}}),{uniqueId:C,cancel:function(){r.httpRequest.cancelFileDownload({uniqueId:C},function(){r.sdkParams.consoleLogging&&console.log('"'.concat(C,'" - Image download has been canceled!'))})}}):(r.httpRequest.httpRequest({url:r.sdkParams.SERVICE_ADDRESSES.PODSPACE_FILESERVER_ADDRESS+r.sdkParams.SERVICES_PATH.PODSPACE_DOWNLOAD_IMAGE_NEW.replace("{fileHash}",p.hashCode)+"?checkUserGroupAccess=true&size=".concat(p.size,"&quality=").concat(p.quality,"&crop=").concat(p.crop),method:"GET",responseType:"blob",uniqueId:C,headers:{Authorization:"Bearer "+r.sdkParams.token},enableDownloadProgressEvents:p.enableDownloadProgressEvents,hashCode:p.hashCode},function(O){f(O.hasError?{hasError:!0}:{hasError:O.hasError,type:"blob",result:O.result.response})}),{uniqueId:C,cancel:function(){r.httpRequest.cancelFileDownload({uniqueId:C},function(){r.sdkParams.consoleLogging&&console.log('"'.concat(C,'" - Image download has been canceled!'))})}});var a=r.sdkParams.SERVICE_ADDRESSES.PODSPACE_FILESERVER_ADDRESS+r.sdkParams.SERVICES_PATH.PODSPACE_DOWNLOAD_IMAGE_NEW.replace("{fileHash}",p.hashCode)+"?checkUserGroupAccess=true&size=".concat(p.size,"&quality=").concat(p.quality,"&crop=").concat(p.crop);f({hasError:!1,type:"link",result:a})}},getImageDownloadLinkFromPodspace:function g(p,f){if(p){if(p.hashCode&&"string"==typeof p.hashCode){var C=r.sdkParams.SERVICE_ADDRESSES.PODSPACE_FILESERVER_ADDRESS+r.sdkParams.SERVICES_PATH.PODSPACE_DOWNLOAD_IMAGE+"?hash="+p.hashCode;return f&&f({hasError:!1,downloadUrl:C}),C}f&&f({hasError:!0,error:"Enter a image hash to get download link!"})}}}}},31518:(M,b,n)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.formatDataToMakeAssistantHistoryList=function O(V){for(var D=[],U=0;U<V.length;U++)D.push(a(V[U]));return D},b.formatDataToMakeAssistanthistoryItem=a,b.formatDataToMakeBlockedUser=function N(V){var D={blockId:V.id,coreUserId:V.coreUserId,firstName:V.firstName,lastName:V.lastName,nickName:V.nickName,profileImage:V.profileImage};return V.contactVO&&(D.contact=V.contactVO),JSON.parse(JSON.stringify(D))},b.formatDataToMakeContact=function f(V){var D={id:V.id,blocked:typeof V.blocked<"u"&&V.blocked,userId:V.userId,firstName:V.firstName,lastName:V.lastName,image:V.profileImage,email:V.email,cellphoneNumber:V.cellphoneNumber,uniqueId:V.uniqueId,notSeenDuration:V.notSeenDuration,hasUser:V.hasUser,linkedUser:void 0};return typeof V.linkedUser<"u"&&(D.linkedUser=p(V.linkedUser)),JSON.parse(JSON.stringify(D))},b.formatDataToMakeConversation=g,b.formatDataToMakeForwardInfo=d,b.formatDataToMakeInvitee=function H(V){return{id:V.id,idType:t.inviteeVOidTypes[V.idType]}},b.formatDataToMakeLinkedUser=p,b.formatDataToMakeMessage=e,b.formatDataToMakeParticipant=l,b.formatDataToMakePinMessage=h,b.formatDataToMakeReplyInfo=y,b.formatDataToMakeUser=function C(V){var D={id:V.id,coreUserId:V.coreUserId,username:V.username,name:V.name,email:V.email,cellphoneNumber:V.cellphoneNumber,image:V.image,lastSeen:V.lastSeen,sendEnable:V.sendEnable,receiveEnable:V.receiveEnable,contactSynced:V.contactSynced,callCenter:V.callCenter};return V.contactId&&(D.contactId=V.contactId),V.contactName&&(D.contactName=V.contactName),V.contactFirstName&&(D.contactFirstName=V.contactFirstName),V.contactLastName&&(D.contactLastName=V.contactLastName),V.blocked&&(D.blocked=V.blocked),V.chatProfileVO&&(D.chatProfileVO=V.chatProfileVO),JSON.parse(JSON.stringify(D))},b.reformatThreadHistory=function r(V,D){for(var U=[],q=0;q<D.length;q++)U.push(e(V,D[q]));return U},b.reformatThreadParticipants=function F(V,D){for(var U=[],q=0;q<V.length;q++)U.push(l(V[q],D));return U};var t=n(44289);function e(V,D,U){if(U||D.time.toString().length>14)var q=D.time,J=parseInt(D.time/1e6);else q=D.timeNanos?1e9*parseInt(parseInt(D.time)/1e3)+parseInt(D.timeNanos):parseInt(D.time),J=parseInt(D.time);var G={id:D.id,threadId:V,ownerId:D.ownerId?D.ownerId:void 0,uniqueId:D.uniqueId,previousId:D.previousId,message:filterXSS(D.message),messageType:D.messageType,edited:D.edited,editable:D.editable,deletable:D.deletable,delivered:D.delivered,seen:D.seen,mentioned:D.mentioned,pinned:D.pinned,participant:void 0,conversation:void 0,replyInfo:void 0,forwardInfo:void 0,metadata:D.metadata,systemMetadata:D.systemMetadata,time:q,timeMiliSeconds:J,timeNanos:parseInt(D.timeNanos),callHistory:D.callHistoryVO};return D.participant?G.ownerId=D.participant.id:D.participantVO&&(G.ownerId=D.participantVO.id),D.conversation&&(G.conversation=g(D.conversation),G.threadId=D.conversation.id),(D.replyInfoVO||D.replyInfo)&&(G.replyInfo=y(D.replyInfoVO?D.replyInfoVO:D.replyInfo,V)),D.forwardInfo&&(G.forwardInfo=d(D.forwardInfo,V)),D.participant&&(G.participant=l(D.participant,V)),JSON.parse(JSON.stringify(G))}function l(V,D){var U={id:V.id,coreUserId:V.coreUserId,threadId:parseInt(D),sendEnable:V.sendEnable,receiveEnable:V.receiveEnable,firstName:V.firstName,lastName:V.lastName,name:V.name,cellphoneNumber:V.cellphoneNumber,email:V.email,image:V.image,myFriend:V.myFriend,online:V.online,notSeenDuration:V.notSeenDuration,contactId:V.contactId,contactName:V.contactName,contactFirstName:V.contactFirstName,contactLastName:V.contactLastName,blocked:V.blocked,admin:V.admin,auditor:V.auditor,keyId:V.keyId,roles:V.roles,username:V.username};return V.chatProfileVO&&(U.chatProfileVO=V.chatProfileVO),JSON.parse(JSON.stringify(U))}function h(V,D){D.time=D.timeNanos?1e9*parseInt(parseInt(D.time)/1e3)+parseInt(D.timeNanos):parseInt(D.time);var U={threadId:V,time:D.time,timeNanos:D.timeNanos,sender:D.sender,messageId:D.messageId,text:filterXSS(D.text),metadata:D.metadata,systemMetadata:D.systemMetadata};return"boolean"==typeof D.notifyAll&&(U.notifyAll=D.notifyAll),JSON.parse(JSON.stringify(U))}function d(V,D){var U={participant:void 0,conversation:void 0};return V.conversation&&(U.conversation=g(V.conversation)),V.participant&&(U.participant=l(V.participant,D)),JSON.parse(JSON.stringify(U))}function y(V,D){var U={participant:void 0,repliedToMessageId:V.repliedToMessageId,repliedToMessageTime:V.repliedToMessageNanos?1e9*parseInt(parseInt(V.repliedToMessageTime)/1e3)+parseInt(V.repliedToMessageNanos):parseInt(V.repliedToMessageTime),repliedToMessageTimeMiliSeconds:parseInt(V.repliedToMessageTime),repliedToMessageTimeNanos:parseInt(V.repliedToMessageNanos),message:V.message,deleted:V.deleted,messageType:V.messageType,metadata:V.metadata,systemMetadata:V.systemMetadata};return V.participant&&(U.participant=l(V.participant,D)),V.replyPrivatelyInfoVO&&(U.replyPrivatelyInfoVO=V.replyPrivatelyInfoVO),JSON.parse(JSON.stringify(U))}function g(V){var D={id:V.id,joinDate:V.joinDate,title:V.title,inviter:void 0,participants:void 0,time:V.time,lastMessage:V.lastMessage,lastParticipantName:V.lastParticipantName,group:V.group,partner:V.partner,lastParticipantImage:V.lastParticipantImage,image:V.image,description:V.description,unreadCount:V.unreadCount,lastSeenMessageId:V.lastSeenMessageId,lastSeenMessageTime:V.lastSeenMessageNanos?1e9*parseInt(parseInt(V.lastSeenMessageTime)/1e3)+parseInt(V.lastSeenMessageNanos):parseInt(V.lastSeenMessageTime),lastMessageVO:void 0,pinMessageVO:void 0,partnerLastSeenMessageId:V.partnerLastSeenMessageId,partnerLastSeenMessageTime:V.partnerLastSeenMessageNanos?1e9*parseInt(parseInt(V.partnerLastSeenMessageTime)/1e3)+parseInt(V.partnerLastSeenMessageNanos):parseInt(V.partnerLastSeenMessageTime),partnerLastDeliveredMessageId:V.partnerLastDeliveredMessageId,partnerLastDeliveredMessageTime:V.partnerLastDeliveredMessageNanos?1e9*parseInt(parseInt(V.partnerLastDeliveredMessageTime)/1e3)+parseInt(V.partnerLastDeliveredMessageNanos):parseInt(V.partnerLastDeliveredMessageTime),archiveThread:V.archiveThread,type:V.type,metadata:V.metadata,mute:V.mute,participantCount:V.participantCount,canEditInfo:V.canEditInfo,canSpam:V.canSpam,admin:V.admin,mentioned:V.mentioned,pin:V.pin,uniqueName:V.uniqueName,userGroupHash:V.userGroupHash,leftWithHistory:V.leftWithHistory,closed:V.closed,seenByAnyAssistant:V.seenByAnyAssistant,lastReactionVO:V.lastReactionVO,reactionStatus:V.reactionStatus};if(V.inviter&&(D.inviter=l(V.inviter,V.id)),V.participants&&Array.isArray(V.participants)){D.participants=[];for(var U=0;U<V.participants.length;U++){var q=l(V.participants[U],V.id);q&&D.participants.push(q)}}return V.lastMessageVO&&(D.lastMessageVO=e(V.id,V.lastMessageVO)),V.pinMessageVO&&(D.pinMessageVO=h(V.id,V.pinMessageVO)),JSON.parse(JSON.stringify(D))}function p(V){return JSON.parse(JSON.stringify({coreUserId:typeof V.coreUserId<"u"?V.coreUserId:V.id,username:V.username,nickname:V.nickname,name:V.name,image:V.image}))}function a(V){var D={actionType:Object.keys(t.assistantActionTypes)[Object.values(t.assistantActionTypes).indexOf(V.actionType)],actionTime:V.actionTime};return V.participantVO&&(D.participantVO=V.participantVO),JSON.parse(JSON.stringify(D))}},83512:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var _interopRequireDefault=__webpack_require__(95318);Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _typeof2=_interopRequireDefault(__webpack_require__(50008)),_constants=__webpack_require__(44289);function HTTPRequestsManager(app){function cancelFileDownload(params,callback){if(params&&"string"==typeof params.uniqueId){var uniqueId=params.uniqueId;app.store.httpRequestObject[eval("uniqueId")]&&app.store.httpRequestObject[eval("uniqueId")].abort(),app.store.httpRequestObject[eval("uniqueId")]&&delete app.store.httpRequestObject[eval("uniqueId")],callback&&callback(uniqueId)}}function cancelFileUpload(params,callback){if(params&&"string"==typeof params.uniqueId){var uniqueId=params.uniqueId;app.store.httpRequestObject[eval("uniqueId")]&&app.store.httpRequestObject[eval("uniqueId")].abort(),app.store.httpRequestObject[eval("uniqueId")]&&delete app.store.httpRequestObject[eval("uniqueId")],app.messageQueues.deleteFromChatUploadQueue({message:{uniqueId}},callback)}}function httpRequest(params,callback){var url=params.url,xhrResponseType=params.responseType||"text",fileSize,originalFileName,threadId,fileUniqueId,fileObject,data=params.data,method="string"==typeof params.method?params.method:"GET",fileUploadUniqueId="string"==typeof params.uniqueId?params.uniqueId:"uniqueId",hasError=!1;if(url){var hasFile=!1;app.store.httpRequestObject[eval("fileUploadUniqueId")]=new XMLHttpRequest;var settings=params.settings;app.store.httpRequestObject[eval("fileUploadUniqueId")].responseType=xhrResponseType,data&&"object"===(0,_typeof2.default)(data)&&(data.hasOwnProperty("image")||data.hasOwnProperty("file"))?app.store.httpRequestObject[eval("fileUploadUniqueId")].timeout=settings&&(0,_typeof2.default)(parseInt(settings.uploadTimeout))>0&&settings.uploadTimeout>0?settings.uploadTimeout:app.sdkParams.httpUploadRequestTimeout:app.store.httpRequestObject[eval("fileUploadUniqueId")].timeout=settings&&(0,_typeof2.default)(parseInt(settings.timeout))>0&&settings.timeout>0?settings.timeout:app.sdkParams.httpRequestTimeout,app.store.httpRequestObject[eval("fileUploadUniqueId")].addEventListener("error",function(M){callback&&"POST"===method?(hasFile&&(hasError=!0,app.chatEvents.fireEvent("fileUploadEvents",{threadId,uniqueId:fileUniqueId,state:"UPLOAD_ERROR",progress:0,fileInfo:{fileName:originalFileName,fileSize},fileObject,errorCode:6200,errorMessage:_constants.CHAT_ERRORS[6200]+" (XMLHttpRequest Error Event Listener)"})),callback({hasError:!0,errorCode:6200,errorMessage:_constants.CHAT_ERRORS[6200]+" (XMLHttpRequest Error Event Listener)"})):(callback&&callback({hasError:!0,errorCode:6200,errorMessage:_constants.CHAT_ERRORS[6200]+" (XMLHttpRequest Error Event Listener)"}),params.enableDownloadProgressEvents&&app.chatEvents.fireEvent("fileDownloadEvents",{hashCode:params.hashCode,state:"DOWNLOAD_ERROR",errorCode:6200,errorMessage:_constants.CHAT_ERRORS[6200]+" (XMLHttpRequest Error Event Listener)"}))},!1),params.enableDownloadProgressEvents&&(app.store.httpRequestObject[eval("fileUploadUniqueId")].onprogress=function(M){app.chatEvents.fireEvent("fileDownloadEvents",{hashCode:params.hashCode,state:"DOWNLOADING",progress:Math.round(M.loaded/M.total*100)})}),app.store.httpRequestObject[eval("fileUploadUniqueId")].addEventListener("abort",function(M){callback&&(hasFile&&(hasError=!0,app.chatEvents.fireEvent("fileUploadEvents",{threadId,uniqueId:fileUniqueId,state:"UPLOAD_CANCELED",progress:0,fileInfo:{fileName:originalFileName,fileSize},fileObject,errorCode:6303,errorMessage:_constants.CHAT_ERRORS[6303]})),callback({hasError:!0,errorCode:6303,errorMessage:_constants.CHAT_ERRORS[6303]}))},!1);try{if("GET"===method){if("object"===(0,_typeof2.default)(data)&&null!==data){var keys=Object.keys(data);if(keys.length>0){url+="?";for(var i=0;i<keys.length;i++){var key=keys[i];url+=key+"="+data[key],i<keys.length-1&&(url+="&")}}}else"string"==typeof data&&(url+="?"+data);if(app.store.httpRequestObject[eval("fileUploadUniqueId")].open(method,url,!0),"object"===(0,_typeof2.default)(params.headers))for(var key in params.headers)params.headers.hasOwnProperty(key)&&app.store.httpRequestObject[eval("fileUploadUniqueId")].setRequestHeader(key,params.headers[key]);app.store.httpRequestObject[eval("fileUploadUniqueId")].send()}if("POST"===method&&data){if(app.store.httpRequestObject[eval("fileUploadUniqueId")].open(method,url,!0),"object"===(0,_typeof2.default)(params.headers))for(var key in params.headers)params.headers.hasOwnProperty(key)&&app.store.httpRequestObject[eval("fileUploadUniqueId")].setRequestHeader(key,params.headers[key]);if("object"==(0,_typeof2.default)(data))if(data.hasOwnProperty("image")||data.hasOwnProperty("file")){hasFile=!0;var formData=new FormData;for(var key in data)data.hasOwnProperty(key)&&formData.append(key,data[key]);fileSize=data.fileSize,originalFileName=data.originalFileName,threadId=data.threadId,fileUniqueId=data.uniqueId,fileObject=data.image?data.image:data.file,app.store.httpRequestObject[eval("fileUploadUniqueId")].upload.onprogress=function(M){M.lengthComputable&&!hasError&&app.chatEvents.fireEvent("fileUploadEvents",{threadId,uniqueId:fileUniqueId,state:"UPLOADING",progress:Math.round(M.loaded/M.total*100),fileInfo:{fileName:originalFileName,fileSize},fileObject})},app.store.httpRequestObject[eval("fileUploadUniqueId")].send(formData)}else{app.store.httpRequestObject[eval("fileUploadUniqueId")].setRequestHeader("Content-Type","application/x-www-form-urlencoded");var keys=Object.keys(data);if(keys.length>0)for(var sendData="",i=0;i<keys.length;i++){var key=keys[i];sendData+=key+"="+data[key],i<keys.length-1&&(sendData+="&")}app.store.httpRequestObject[eval("fileUploadUniqueId")].send(sendData)}else app.store.httpRequestObject[eval("fileUploadUniqueId")].send(data)}}catch(M){callback&&callback({hasError:!0,cache:!1,errorCode:6200,errorMessage:_constants.CHAT_ERRORS[6200]+" (Request Catch Error)"+M})}app.store.httpRequestObject[eval("fileUploadUniqueId")].onreadystatechange=function(){if(4===app.store.httpRequestObject[eval("fileUploadUniqueId")].readyState)if(200===app.store.httpRequestObject[eval("fileUploadUniqueId")].status){if(hasFile){hasError=!1;var fileHashCode="";try{var fileUploadResult=JSON.parse(app.store.httpRequestObject[eval("fileUploadUniqueId")].response);fileUploadResult&&fileUploadResult.hasOwnProperty("result")&&(fileHashCode=fileUploadResult.result.hashCode)}catch(M){app.sdkParams.consoleLogging&&console.log(M)}app.chatEvents.fireEvent("fileUploadEvents",{threadId,uniqueId:fileUniqueId,fileHash:fileHashCode,state:"UPLOADED",progress:100,fileInfo:{fileName:originalFileName,fileSize},fileObject})}callback&&callback({hasError:!1,cache:!1,result:{response:app.store.httpRequestObject[eval("fileUploadUniqueId")].response,responseText:"text"===xhrResponseType?app.store.httpRequestObject[eval("fileUploadUniqueId")].responseText:"",responseHeaders:app.store.httpRequestObject[eval("fileUploadUniqueId")].getAllResponseHeaders(),responseContentType:app.store.httpRequestObject[eval("fileUploadUniqueId")].getResponseHeader("content-type")}})}else hasFile&&(hasError=!0,app.chatEvents.fireEvent("fileUploadEvents",{threadId,uniqueId:fileUniqueId,state:"UPLOAD_ERROR",progress:0,fileInfo:{fileName:originalFileName,fileSize},fileObject,errorCode:6200,errorMessage:_constants.CHAT_ERRORS[6200]+" (Request Status != 200)",statusCode:app.store.httpRequestObject[eval("fileUploadUniqueId")].status})),callback&&callback({hasError:!0,errorMessage:"text"===xhrResponseType?app.store.httpRequestObject[eval("fileUploadUniqueId")].responseText:"\u064fAn error accoured!",errorCode:app.store.httpRequestObject[eval("fileUploadUniqueId")].status})}}else callback({hasError:!0,errorCode:6201,errorMessage:_constants.CHAT_ERRORS[6201]})}return{httpRequest,cancelFileUpload,cancelFileDownload}}var _default=HTTPRequestsManager;exports.default=_default},57509:(M,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0,b.default=function n(){var e=[];function h(p){return e.find(function(f){return f&&f.key==p})}function y(p){var f=e.findIndex(function(C){return C&&C.uniqueId==p});f>-1&&(clearTimeout(e[f].timeout),delete e[f])}return{add:function r(p){var f=p.uniqueId,C=p.time,N=void 0===C?null:C,a=p.key,O=p.blockTimeSeconds,H=void 0===O?1:O;N||(N=(new Date).getTime()),e.push({uniqueId:f,time:N,key:a,blockTimeSeconds:H*=125,timeout:setTimeout(function(){y(f)},H)})},remove:y,isKeyBlocked:function d(p){var f=h(p);if(!f)return!1;var C=(new Date).getTime();return f.time+f.blockTimeSeconds>C||(y(f.uniqueId),!1)},limitedTypes:{START_STOP_CALL:"START_STOP_CALL",START_STOP_VIDEO_VOICE:"START_STOP_VIDEO_VOICE"},getRemainingTime:function g(p){var f=h(p);if(!f)return 0;var C=(new Date).getTime();return console.log({filteredRequest:f},f.time+f.blockTimeSeconds-C),new Date(f.time+f.blockTimeSeconds-C).getSeconds()}}}},53834:(M,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.SDKParams=function n(){return{SERVICE_ADDRESSES:{SSO_ADDRESS:"https://accounts.pod.ir",PLATFORM_ADDRESS:"https://api.pod.ir/srv/core",FILESERVER_ADDRESS:"https://core.pod.ir",PODSPACE_FILESERVER_ADDRESS:"https://podspace.pod.ir",MAP_ADDRESS:"https://api.neshan.org/v2"},token:"111",generalTypeCode:"default",typeCodeOwnerId:null,mapApiKey:"8b77db18704aa646ee5aaea13e7370f4f88b9e8c",productEnv:"undefined",forceWaitQueueInMemory:!1,grantDeviceIdFromSSO:!1,deliveryIntervalPitch:2e3,seenIntervalPitch:2e3,systemMessageIntervalPitch:1e3,messagesDelivery:{},messagesSeen:{},deliveryInterval:void 0,seenInterval:void 0,getImageFromLinkObjects:{},locationPingTypes:{CHAT:1,THREAD:2,CONTACTS:3},isTypingInterval:void 0,protocol:"websocket",deviceId:void 0,socketAddress:"",serverName:"",wsConnectionWaitTime:0,connectionRetryInterval:0,msgPriority:1,messageTtl:1e4,reconnectOnClose:!1,asyncLogging:void 0,chatPingMessageInterval:2e4,getUserInfoTimeout:void 0,connectionCheckTimeout:0,httpRequestTimeout:0,asyncRequestTimeout:0,connectionCheckTimeoutThreshold:void 0,httpUploadRequestTimeout:0,actualTimingLog:!1,consoleLogging:!1,fullResponseObject:!1,webrtcConfig:null,callOptions:{},asyncPriority:void 0,SERVICES_PATH:{SSO_DEVICES:"/oauth2/grants/devices",SSO_GENERATE_KEY:"/handshake/users/",SSO_GET_KEY:"/handshake/keys/",ADD_CONTACTS:"/nzh/addContacts",UPDATE_CONTACTS:"/nzh/updateContacts",REMOVE_CONTACTS:"/nzh/removeContacts",SEARCH_CONTACTS:"/nzh/listContacts",UPLOAD_IMAGE:"/nzh/uploadImage",GET_IMAGE:"/nzh/image/",UPLOAD_FILE:"/nzh/uploadFile",GET_FILE:"/nzh/file/",PODSPACE_UPLOAD_FILE_TO_USERGROUP:"/userGroup/uploadFile",PODSPACE_UPLOAD_FILE_TO_USERGROUP_NEW:"/api/usergroups/{userGroupHash}/files",PODSPACE_UPLOAD_IMAGE_TO_USERGROUP:"/userGroup/uploadImage",PODSPACE_UPLOAD_IMAGE_TO_USERGROUP_NEW:"/api/usergroups/{userGroupHash}/images",PODSPACE_UPLOAD_IMAGE:"/nzh/drive/uploadImage",PODSPACE_UPLOAD_IMAGE_NEW:"/api/images",PODSPACE_UPLOAD_FILE_NEW:"/api/files",PODSPACE_DOWNLOAD_FILE:"/nzh/drive/downloadFile",PODSPACE_DOWNLOAD_FILE_NEW:"/api/files/{fileHash}",PODSPACE_DOWNLOAD_IMAGE:"/nzh/drive/downloadImage",PODSPACE_DOWNLOAD_IMAGE_NEW:"/api/images/{fileHash}",ADD_CONTACT_TYPE:"/nzh/biz/addContactType",REGISTER_CONTACT_TYPE_IN_CHAT:"/nzh/manage/registerContactTypeForEvent",CHECK_CONTACT_TYPE_REGISTERED:"/nzh/manage/checkContactTypeRegisteredForEvent",DISABLE_CONTACT_TYPE:"/nzh/manage/disableContactEvent",REVERSE:"/reverse",SEARCH:"/search",ROUTING:"/routing",STATIC_IMAGE:"/static"}}}},43757:(M,b,n)=>{"use strict";var t=n(95318);Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var e=t(n(63902));b.default=function l(r){return{addTypeCodeToBusiness:function d(f,C){var N=e.default.generateUUID(),a={};return f&&(f.typeCode&&"string"==typeof f.typeCode&&(a.typeCode=f.typeCode),f.businessToken&&"string"==typeof f.businessToken&&(a.businessToken=f.businessToken)),a.name=f.typeCode,r.httpRequest.httpRequest({url:r.sdkParams.SERVICE_ADDRESSES.PLATFORM_ADDRESS+r.sdkParams.SERVICES_PATH.ADD_CONTACT_TYPE+"?typeCode=".concat(a.typeCode,"&name=").concat(a.name,"&scopes=CELLPHONE_SCOPE&scopes=FIRSTNAME_SCOPE&scopes=LASTNAME_SCOPE&scopes=NATIONALCODE_SCOPE&scopes=DEBITCARD_SCOPE&scopes=USERNAME_SCOPE&scopes=NICKNAME_SCOPE&scopes=EMAIL_SCOPE"),method:"POST",data:{},uniqueId:N,headers:{_token_:a.businessToken,_token_issuer_:1}},function(O){if(O.hasError)r.errorHandler.raiseError({code:O.errorCode,message:O.errorMessage},C,!0,{});else try{var H="string"==typeof O.result.response?JSON.parse(O.result.response):O.result.response;C&&C(H)}catch(F){C({hasError:!0,errorCode:999,errorMessage:"[SDK] Problem in Parsing result",error:F})}}),{uniqueId:N}},registerTypeCodeInChat:function y(f,C){var N=e.default.generateUUID(),a={};return f&&(f.typeCode&&"string"==typeof f.typeCode&&(a.typeCode=f.typeCode),f.ownerId&&"string"==typeof f.ownerId&&(a.ownerId=f.ownerId)),r.httpRequest.httpRequest({url:r.sdkParams.SERVICE_ADDRESSES.PLATFORM_ADDRESS+r.sdkParams.SERVICES_PATH.REGISTER_CONTACT_TYPE_IN_CHAT,method:"GET",data:a,uniqueId:N,headers:{_token_:r.sdkParams.token,_token_issuer_:1}},function(O){O.hasError?r.errorHandler.raiseError({code:O.errorCode,message:O.errorMessage},C,!0,{}):C({hasError:O.hasError,result:O.result.response})}),{uniqueId:N}}}}},38417:(M,b,n)=>{"use strict";var t=n(95318);Object.defineProperty(b,"__esModule",{value:!0}),b.ContactsList=void 0;var e=t(n(63038)),l=t(n(34575)),h=t(n(93913)),r=t(n(63902));function d(F,V){(function y(F,V){if(V.has(F))throw new TypeError("Cannot initialize the same private elements twice on an object")})(F,V),V.add(F)}function g(F,V,D){if(!V.has(F))throw new TypeError("attempted to get private field on non-instance");return D}var p=new WeakSet,f=new WeakSet,C=new WeakSet;function a(F){return Object.keys(F).some(function(V){return["query","username","cellphoneNumber"].includes(V)})&&3===Object.keys(F).length}function O(F,V,D){var U=[];return typeof F.query<"u"?U=this._list.filter(function(q){return((null==q?void 0:q.firstName)+" "+(null==q?void 0:q.lastName)).includes(F.query)}):typeof F.username<"u"?U=this._list.filter(function(q){var J;return null==q||null===(J=q.linkedUser)||void 0===J?void 0:J.username.includes(F.username)}):typeof F.cellphoneNumber<"u"&&(U=this._list.filter(function(q){var J;return null==q||null===(J=q.cellphoneNumber)||void 0===J?void 0:J.includes(F.cellphoneNumber)})),U.slice(V,D)}function H(F,V,D,U){return{typeCode:"default",ownerId:void 0,hasError:!1,cache:!0,errorMessage:"",errorCode:"",result:{hasNext:U,nextOffset:D,contentCount:this._total_count,contacts:F},uniqueId:r.default.generateUUID()}}b.ContactsList=function(){function F(V){(0,l.default)(this,F),d(this,C),d(this,f),d(this,p),this.loadAllData=!1,this._total_count=0,this._list=[]}return(0,h.default)(F,[{key:"paginate",value:function(D,U){if(!U)return!1;var q=parseInt(D.offset),J=q+parseInt(D.size),G=[];if(Object.keys(D).some(function(K){return["size","offset"].includes(K)})&&2===Object.keys(D).length){if((G=this._list.slice(q,J)).length>=D.size&&!G.includes(null))return g(this,C,H).call(this,G,q,J,!0)}else if(g(this,p,a).call(this,D)&&this.loadAllData&&(G=g(this,f,O).call(this,D,q,J)).length>0)return g(this,C,H).call(this,G,q,J,J<G.length);return!1}},{key:"get",value:function(D){return this._list.findIndex(function(U){return(null==U?void 0:U.id)==D})}},{key:"getAll",value:function(){return this._list}},{key:"findOrCreate",value:function(D){var U=this.get(D.id);return U||(U=this.save(D)),U}},{key:"update",value:function(D){var U=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},q=this.get(D);if(q>-1){var J=this._list[q];Object.entries(U).forEach(function(G){var ie=(0,e.default)(G,2);J[ie[0]]=ie[1]}),this._list[q]=J}}},{key:"updateContactByUserId",value:function(D){var U=D.partner,q=D.title,J=q.replace(/ .*/,""),G=q.replace(J,""),ie=this._list.findIndex(function(re){return(null==re?void 0:re.userId)==U});if(ie>-1){var K=this._list[ie];K.firstName=J,K.lastName=G,this._list[ie]=K}}},{key:"save",value:function(D,U){var q=this.get(D.id);return U>=0&&-1===q?this._list[U]=D:q>-1&&(this._list[q]=D),D}},{key:"saveMany",value:function(D,U,q,J){if(!g(this,p,a).call(this,D)){var G=U.contacts,K=U.hasNext;if(this._total_count=U.contentCount,K||(this.loadAllData=!0),Array.isArray(G)){q=parseInt(q);var re=J=parseInt(J);for(var oe in G)this.save(G[oe],re++);for(var B=0;B<this._list.length-1;B++)null==this._list[B]&&(this._list[B]=null)}}}},{key:"remove",value:function(D){var U=this.get(D);return U>-1&&this._list.splice(U,1),this._list}},{key:"removeAll",value:function(){this._list=[]}},{key:"addOrUpdate",value:function(D){var U=this.get(null==D?void 0:D.id);U>-1?this._list[U]=D:this._list.splice(0,0,D)}}]),F}()},68243:(M,b,n)=>{"use strict";var t=n(95318);Object.defineProperty(b,"__esModule",{value:!0}),b.StoreEvents=function h(){return{on:function(d,y){l.on(d,y)},off:function(d){l.off(d)},emit:function(d,y){l.emit(d,y)}}};var l=new(t(n(59069)).default)},88841:(M,b,n)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.HistoryItem=function e(l,h,r){var d={threadId:l,list:r,hasMore:h.count<=r.length,params:new t.RequestParamsManager(h)};return{threadId:l,get:function(){return d.list},count:function(g){return d.list.length>=g?d.list.slice(0,g):d.list},isParamsValid:function(g){return!d.params.isParamsChanged(g)},pushAtEnd:function(g){d.list.push(g)},putAtBegin:function(g){d.list.unshift(g)},updateMessage:function(g){var p=d.list.findIndex(function(f){return f.id==g.id});p>-1&&(d.list[p]=g)},hasMore:function(){return d.hasMore},messageExists:function(g){return d.list.findIndex(function(p){return p.id==g})>-1},remove:function(g){d.list=d.list.filter(function(p){return!p||p&&p.id!=g})}}};var t=n(52269)},32852:(M,b,n)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.HistoryListManager=function l(){var h={list:{},nextOrder:0};return{get:function(d){return h.list[d]||null},save:function(d,y,g){var p=h.list[d];p?p.isParamsValid(y)&&(h.list[d]=new e.HistoryItem(d,y,g)):h.list[d]=new e.HistoryItem(d,y,g)},saveMessage:function(d,y){h.list[d]&&(h.list[d].messageExists(y.id)?h.list[d].updateMessage(y):h.list[d].putAtBegin(y))},reset:function(){h.list={}},remove:function(d){h.list[d]&&delete h.list[d]},removeMessage:function(d,y){h.list[d]&&h.list[d].remove(y)},exists:function(d){return!!h.list[d]}}},n(52269);var e=n(88841)},73236:(M,b,n)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.historyCache=void 0;var t=n(32852),l=new function e(){var h={historyList:new t.HistoryListManager};return{saveList:function(g,p,f){h.historyList.save(g,p,f)},saveMessage:h.historyList.saveMessage,canGetFromCache:function d(y,g){var p=h.historyList.get(y);return!(!p||!p.isParamsValid(g))},canSave:function r(y,g){return h.historyList.get(y).params.canCacheTheRequest(g)},get:function(g){return h.historyList.get(g)},remove:function(g){h.historyList.remove(g)},removeMessage:h.historyList.removeMessage,reset:function(){h.historyList.reset()}}};b.historyCache=l},52269:(M,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.RequestParamsManager=function n(t){var e={params:t};return{set:function(h){e.params=h},get:function(){return e.params},isParamsChanged:function(h){return JSON.stringify(e.params)!==JSON.stringify(h)},canCacheTheRequest:function(h){return!(h.offset&&h.offset>0||h.id||h.fromTime||h.fromTimeNanos||h.toTime||h.toTimeNanos||h.uniqueIds||h.query||h.allMentioned||h.unreadMentioned||h.messageType||h.metadataCriteria||h.newMessages)}}}},94569:(M,b,n)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.Store=function g(p){return{threads:new r.ThreadsList(p),contacts:new y.ContactsList(p),events:new t.StoreEvents,reactionSummaries:new e.ReactionsSummariesCache(p),reactionsList:new h.ReactionsListCache(p),user:new l.SDKUser(p),threadCallbacks:{},sendMessageCallbacks:{},messagesCallbacks:{},asyncRequestTimeouts:{},history:d.historyCache,httpRequestObject:{},chatSendQueue:[]}};var t=n(68243),e=n(75909),l=n(68548),h=n(53751),r=n(47667),d=n(73236),y=n(38417)},91938:(M,b,n)=>{"use strict";var t=n(95318);Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var e=t(n(63902)),l=n(31518);b.default=function h(d){var y=[],g=[];function N(ie,K){for(var re=[],oe=0;oe<g.length;oe++)parseInt(g[oe].message.subjectId)===ie&&re.push(g[oe]);K&&K(re)}function H(ie,K){for(var re=0;re<g.length;re++)g[re].message.uniqueId===ie.message.uniqueId&&g.splice(re,1);K&&K()}function V(ie,K,re){if(d.store.chatSendQueue.push(ie),re)K&&K();else{var oe=(new Date).getTime();ie.message.time=oe,ie.message.timeNanos=oe%1e3*1e6,function D(ie,K){if(""!==ie.uniqueId){var re="string"==typeof ie.uniqueId?ie.uniqueId:Array.isArray(ie.uniqueId)?ie.uniqueId[0]:null;null!=re&&(d.sdkParams.consoleLogging&&console.log("Forced to use in memory cache"),ie.uniqueId=re,y.push(ie),K&&K())}}(ie.message,function(){K&&K()})}}return{putInMessagesDeliveryQueue:function p(ie,K){d.sdkParams.messagesDelivery.hasOwnProperty(ie)&&"number"==typeof d.sdkParams.messagesDelivery[ie]&&d.sdkParams.messagesDelivery[ie]?d.sdkParams.messagesDelivery[ie]<K&&(d.sdkParams.messagesDelivery[ie]=K):d.sdkParams.messagesDelivery[ie]=K},putInMessagesSeenQueue:function f(ie,K,re){d.sdkParams.messagesSeen.hasOwnProperty(ie)&&"number"==typeof d.sdkParams.messagesSeen[ie]&&d.sdkParams.messagesSeen[ie]?d.sdkParams.messagesSeen[ie].messageId<K&&(d.sdkParams.messagesSeen[ie]={messageId:K,typeCode:re}):d.sdkParams.messagesSeen[ie]={messageId:K,typeCode:re}},putInChatSendQueue:V,putInChatUploadQueue:function q(ie,K){g.push(ie),K&&K()},getChatWaitQueue:function C(ie,K,re){re&&re([])},deleteFromChatUploadQueue:H,deleteFromChatSentQueue:function a(ie,K){for(var re=0;re<d.store.chatSendQueue.length;re++)d.store.chatSendQueue[re].message.uniqueId===ie.message.uniqueId&&d.store.chatSendQueue.splice(re,1);K&&K()},deleteFromChatWaitQueue:function O(ie,K){for(var re=0;re<y.length;re++)y[re].uniqueId===ie.uniqueId&&y.splice(re,1);K&&K()},deleteThreadFailedMessagesFromWaitQueue:function F(ie,K){for(var re=0;re<y.length;re++)y[re].uniqueId===item.uniqueId&&y.splice(re,1);K&&K()},getChatUploadQueue:N,getChatSendQueue:function G(ie,K){if(ie){for(var re=[],oe=0;oe<d.store.chatSendQueue.length;oe++)d.store.chatSendQueue[oe].threadId===ie&&re.push(d.store.chatSendQueue[oe]);K&&K(re)}else K&&K(d.store.chatSendQueue)},getItemFromChatWaitQueue:function U(ie,K){for(var re=0;re<y.length;re++)if(y[re].uniqueId===ie){var oe=y[re],B=(new Date).getTime(),s=(0,l.formatDataToMakeMessage)(oe.threadId,{uniqueId:oe.uniqueId,ownerId:d.store.user.get().id,message:oe.content,metadata:oe.metadata,systemMetadata:oe.systemMetadata,replyInfo:oe.replyInfo,forwardInfo:oe.forwardInfo,participant:d.store.user.get(),time:B,timeNanos:B%1e3*1e6});K&&K(s);break}},transferFromUploadQToSendQ:function J(ie,K,re,oe){N(ie,function(B){for(var s=0;s<B.length;s++)if(B[s].message.uniqueId===K){try{var _=B[s].message,w=B[s].callbacks,E=JSON.parse(_.metadata),x=JSON.parse(re),j=e.default.objectDeepMerger(x,E);typeof _<"u"&&_&&typeof _.content<"u"&&_.content&&_.content.hasOwnProperty("message")&&(_.content.message.metadata=JSON.stringify(j)),typeof _<"u"&&_&&typeof _.content<"u"&&_.content&&_.content.hasOwnProperty("metadata")&&(_.content.metadata=JSON.stringify(j)),21===_.chatMessageVOType&&d.podspaceMethods.getImageDownloadLinkFromPodspace({hashCode:j.fileHash},function($){$.hasError||(_.content.image=$.downloadUrl)}),_.metadata=JSON.stringify(j)}catch($){d.sdkParams.consoleLogging&&console.log($)}H(B[s],function(){V({message:_,callbacks:w},function(){oe&&oe()},!0)});break}})}}}},53751:(M,b,n)=>{"use strict";var t=n(95318);Object.defineProperty(b,"__esModule",{value:!0}),b.ReactionsListCache=void 0;var e=t(n(34575)),l=t(n(93913));b.ReactionsListCache=function(){function g(p){(0,e.default)(this,g),this._list={}}return(0,l.default)(g,[{key:"list",get:function(){return this._list}},{key:"getItem",value:function(f){var C=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,N=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0;return C||(C="all"),this.messageExists(f)&&this._list[f][C]&&this._list[f][C][this.genKey(N,a)]?{messageId:f,sticker:C,count:N,offset:a,reactionVOList:this._list[f][C][this.genKey(N,a)]}:null}},{key:"removeCachedData",value:function(f,C){return f?C?(this._list[f]&&this._list[f][C]&&delete this._list[f][C],void(this._list[f]&&this._list[f].all&&delete this._list[f].all)):delete this._list[f]:this.removeAllMessages()}},{key:"messageExists",value:function(f){return!!this._list[f]}},{key:"stickerExists",value:function(f){var C=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return C?!!this._list[f]&&!!this._list[f][C]:!!this._list[f]&&!!this._list[f].all}},{key:"save",value:function(f,C){var a=f.sticker?f.sticker:"all";this.messageExists(f.messageId)||(this._list[f.messageId]={}),this.stickerExists(f.messageId,a)||(this._list[f.messageId][a]={}),this._list[f.messageId][a][this.genKey(f.count,f.offset)]=C}},{key:"genKey",value:function(f,C){return"count:".concat(f,",offset:").concat(C)}},{key:"removeAllMessages",value:function(){this._list={}}}]),g}()},75909:(M,b,n)=>{"use strict";var t=n(95318);Object.defineProperty(b,"__esModule",{value:!0}),b.ReactionsSummariesCache=void 0;var e=t(n(59713)),l=t(n(34575)),h=t(n(93913));function r(C,N){var a=Object.keys(C);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(C);N&&(O=O.filter(function(H){return Object.getOwnPropertyDescriptor(C,H).enumerable})),a.push.apply(a,O)}return a}function d(C){for(var N=1;N<arguments.length;N++){var a=null!=arguments[N]?arguments[N]:{};N%2?r(Object(a),!0).forEach(function(O){(0,e.default)(C,O,a[O])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(a)):r(Object(a)).forEach(function(O){Object.defineProperty(C,O,Object.getOwnPropertyDescriptor(a,O))})}return C}b.ReactionsSummariesCache=function(){function C(N){(0,l.default)(this,C),this._list={},this._app=N}return(0,h.default)(C,[{key:"list",get:function(){return this._list}},{key:"getMany",value:function(a){var O=this,H=[];return a.forEach(function(F){var V=O.getItem(F);O.hasAnyReaction(V)&&H.push(V.userReaction?{messageId:F,reactionCountVO:V.reactionCountVO,userReaction:V.userReaction}:{messageId:F,reactionCountVO:V.reactionCountVO})}),H}},{key:"getItem",value:function(a){return this._list[a]}},{key:"messageExists",value:function(a){return!!this._list[a]}},{key:"filterExists",value:function(a){var O=this;return a.filter(function(H){return O.messageExists(H)})}},{key:"addMany",value:function(a){var O=this;a.forEach(function(H){O.messageExists(H.messageId)?O.updateItem(H.messageId,H):O.initItem(H.messageId,H)})}},{key:"initItem",value:function(a,O){var H=this;this.messageExists(a)||(this._list[a]=d(d({},O),{},{hasReaction:function(D){return!!H._list[a].reactionCountVO.find(function(U){return U.sticker===D})}}))}},{key:"updateItem",value:function(a,O){var H=this,F=this.getItem(a);this.hasAnyReaction(F)?O.reactionCountVO&&O.reactionCountVO.forEach(function(V){F.hasReaction(V.sticker)?H._list[a].reactionCountVO.forEach(function(D){D.sticker===V.sticker&&(D.count=V.count)}):H._list[a].reactionCountVO.push(V)}):this._list[a].reactionCountVO=O.reactionCountVO,O.userReaction&&(this._list[a].userReaction=O.userReaction)}},{key:"increaseCount",value:function(a,O,H){var F;if(this.messageExists(a)){var V;F=this.getItem(a);var D=!1;null===(V=F.reactionCountVO)||void 0===V||V.forEach(function(U){U.sticker==O&&(U.count++,D=!0)}),D||(F.reactionCountVO||(F.reactionCountVO=[]),F.reactionCountVO.push({sticker:O,count:1}))}}},{key:"decreaseCount",value:function(a,O,H){if(this.messageExists(a)){var F=this.getItem(a),V=!1;F.reactionCountVO.forEach(function(D,U){D.sticker==O&&(D.count>1?D.count--:(V=!0,F.reactionCountVO&&delete F.reactionCountVO[U]))}),V&&(F.reactionCountVO=F.reactionCountVO.filter(function(D){return void 0!==D}))}}},{key:"hasAnyReaction",value:function(a){return!(!a||!a.reactionCountVO||!a.reactionCountVO.length)}},{key:"maybeUpdateMyReaction",value:function(a,O,H,F,V){!this.getItem(a)||this._app.store.user.isMe(F)&&(this._list[a].userReaction={id:O,reaction:H,time:V})}},{key:"addMyReaction",value:function(a){this.getItem(a)}},{key:"removeMyReaction",value:function(a){var O=this.getItem(a);!O||(O.userReaction&&delete this._list[a].userReaction,this._list[a]=JSON.parse(JSON.stringify(this._list[a])))}},{key:"removeAllMessages",value:function(){this._list={}}}]),C}()},47667:(M,b,n)=>{"use strict";var t=n(95318);Object.defineProperty(b,"__esModule",{value:!0}),b.ThreadsList=function d(g){var p=[],f={eventsList:r,get:function(N){return p[f.findIndex(N)]},getAll:function(){return p},getPinMessages:function(N){var a=[];return N.forEach(function(O){var H=f.get(O);H.getField("pinMessageVO")&&a.push(H.getField("pinMessageVO"))}),a},findIndex:function(N){return p.findIndex(function(a){return(null==a?void 0:a.get().id)==N})},findOrCreate:function(N){var a=f.get(N.id);return a||(a=f.save(N)),a},save:function(N){var a,O=f.findIndex(N.id);return O>-1?(p[O].set(N),a=p[O]):(a=new y(g,N),O=0,p=[a].concat(p)),g.store.events.emit(r.SINGLE_THREAD_UPDATE,a.get()),p[O]},saveMany:function(N){if(Array.isArray(N)){var a=[];for(var O in N){var H=f.findIndex(N[O].id);H>-1?p[H].set(N[O]):a.push(new y(g,N[O]))}a.length&&(p=a.concat(p))}},remove:function(N){var a=f.findIndex(N);a>-1&&delete p[a]},removeAll:function(){p=[]}};return f};var e=t(n(59713));function l(g,p){var f=Object.keys(g);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(g);p&&(C=C.filter(function(N){return Object.getOwnPropertyDescriptor(g,N).enumerable})),f.push.apply(f,C)}return f}function h(g){for(var p=1;p<arguments.length;p++){var f=null!=arguments[p]?arguments[p]:{};p%2?l(Object(f),!0).forEach(function(C){(0,e.default)(g,C,f[C])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(f)):l(Object(f)).forEach(function(C){Object.defineProperty(g,C,Object.getOwnPropertyDescriptor(f,C))})}return g}var r={SINGLE_THREAD_UPDATE:"singleThreadUpdate",UNREAD_COUNT_UPDATED:"unreadCountUpdated",LAST_SEEN_MESSAGE_TIME_UPDATED:"lastSeenMessageTimeUpdated"};function y(g,p){var f={thread:p,isValid:!0,latestReceivedMessage:null,pinMessageRequested:!1,lastActionRequested:!1};function C(a){a.unreadCount||(a.unreadCount=f.thread.unreadCount?f.thread.unreadCount:0)}C(f.thread);var N={set:function(O){C(O),f.thread=h(h({},f.thread),O)},get:function(){return f.thread},getField:function(O){return JSON.parse(JSON.stringify(f.thread[O]))},update:function(O,H){f.thread[O]=H,g.store.events.emit(r.SINGLE_THREAD_UPDATE,f.thread)},unreadCount:{set:function(O){var H=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];f.thread.unreadCount=O,H&&g.store.events.emit(r.UNREAD_COUNT_UPDATED,f.thread)},get:function(){return f.thread.unreadCount},increase:function(){f.thread.unreadCount++,g.store.events.emit(r.UNREAD_COUNT_UPDATED,f.thread)},decrease:function(O){O>f.thread.lastSeenMessageTime&&f.thread.unreadCount>0&&(f.thread.unreadCount--,g.store.events.emit(r.UNREAD_COUNT_UPDATED,f.thread))}},lastSeenMessageTime:{set:function(O){O>f.thread.lastSeenMessageTime&&(f.thread.lastSeenMessageTime=O)},get:function(){return f.thread.lastSeenMessageTime}},latestReceivedMessage:{getTime:function(){return f.latestReceivedMessage?f.latestReceivedMessage.time:0},get:function(){return f.latestReceivedMessage},set:function(O){f.latestReceivedMessage=O}},pinMessage:{hasPinMessage:function(){return f.thread.pinMessageVO},isPinMessageRequested:function(){return f.pinMessageRequested},setPinMessageRequested:function(O){return f.pinMessageRequested=O},setPinMessage:function(O){f.thread.pinMessageVO=O},removePinMessage:function(){f.thread.pinMessageVO=null}},lastAction:{isLastActionRequested:function(){return f.lastActionRequested},setLastActionRequested:function(O){return f.lastActionRequested=O}},isDataValid:function(){return f.isValid}};return N}},88071:(M,b,n)=>{"use strict";var t=n(95318);Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var e=t(n(34575)),l=t(n(93913)),h=n(17713);b.default=function(){function y(g){var p=g.app,f=g.current,C=void 0===f?{typeCode:"default",ownerId:void 0}:f,N=g.whiteList,a=void 0===N?null:N;(0,e.default)(this,y),this._list=a||[],this._current=C,this._app=p}return(0,l.default)(y,[{key:"hasWhiteList",value:function(){return this._list.length}},{key:"getActiveTypeCode",value:function(){return this._current}},{key:"setActiveTypeCode",value:function(p){if(this.hasWhiteList()){var f=this._list.find(function(C){return C.typeCode==p});f?this._current=f:this._app.errorHandler.raiseError(h.errorList.INVALID_CONTACT_TYPE,null,!0,{})}else this._current={typeCode:p,ownerId:void 0}}},{key:"isAllowed",value:function(p){if(this._current.typeCode==p)return!0;var f=this._list.find(function(C){return C.typeCode==p});return!(!this.hasWhiteList()||!f)}}]),y}()},68548:(M,b,n)=>{"use strict";var t=n(95318);Object.defineProperty(b,"__esModule",{value:!0}),b.SDKUser=void 0;var e=t(n(34575)),l=t(n(93913));b.SDKUser=function(){function r(){(0,e.default)(this,r),this._user=null}return(0,l.default)(r,[{key:"get",value:function(){return this._user}},{key:"setUser",value:function(y){this._user=y}},{key:"isMe",value:function(y){return this._user.id==y}}]),r}()},67532:(M,b,n)=>{"use strict";var t=n(95318);Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var e=t(n(50008)),l=n(44289),h=t(n(92735)),r=t(n(63902)),d=n(17713);b.default=function y(p,f){var C=this,N=f.asyncClient;this.threadCallbacks={},this.sendMessageCallbacks={},this.chatState=!1,this.userInfo=null,this.startChatPing=function(){p.sdkParams.chatPingMessageInterval&&clearInterval(p.sdkParams.chatPingMessageInterval),p.sdkParams.chatPingMessageInterval=setInterval(function(){C.ping()},2e4)},this.stopChatPing=function(){clearInterval(p.sdkParams.chatPingMessageInterval)},this.asyncInitialized=function(a){N=a},this.sendMessage=function(a,O,H){var F,V;if(!C.chatState&&l.chatMessageVOTypes.USER_INFO!=a.chatMessageVOType)return O?"function"==typeof O?V=O:O.onResult&&(V=O.onResult):V=null,void p.errorHandler.raiseError(d.errorList.SOCKET_NOT_CONNECTED,V,!0,{});var J,D=null,U=a.asyncPriority>0?a.asyncPriority:p.sdkParams.msgPriority,q={type:a.chatMessageVOType,token:p.sdkParams.token,tokenIssuer:1};q.typeCode=a.typeCode?a.typeCode:p.typeCodes.getActiveTypeCode().typeCode,q.ownerId=a.ownerId?a.ownerId:p.typeCodes.getActiveTypeCode().ownerId,a.messageType&&(q.messageType=a.messageType),a.subjectId&&(D=a.subjectId,q.subjectId=a.subjectId),a.content&&("object"==(0,e.default)(a.content)?q.content=JSON.stringify(a.content):(q.content=a.content,h.default.isSupported&&(q.content=h.default.sanitize(q.content,{ALLOWED_TAGS:[]})))),a.metadata&&(q.metadata=a.metadata),a.systemMetadata&&(q.systemMetadata=a.systemMetadata),a.repliedTo&&(q.repliedTo=a.repliedTo),typeof a.uniqueId<"u"?J=a.uniqueId:a.chatMessageVOType!==l.chatMessageVOTypes.PING&&(J=r.default.generateUUID()),q.uniqueId=Array.isArray(J)?JSON.stringify(J):J,"object"==(0,e.default)(O)?O.onSeen||O.onDeliver||O.onSent?(p.store.threadCallbacks[D]||(p.store.threadCallbacks[D]={}),p.store.threadCallbacks[D][J]={},p.store.sendMessageCallbacks[J]={},O.onSent&&(p.store.sendMessageCallbacks[J].onSent=O.onSent,p.store.threadCallbacks[D][J].onSent=!1,p.store.threadCallbacks[D][J].uniqueId=J),O.onSeen&&(p.store.sendMessageCallbacks[J].onSeen=O.onSeen,p.store.threadCallbacks[D][J].onSeen=!1),O.onDeliver&&(p.store.sendMessageCallbacks[J].onDeliver=O.onDeliver,p.store.threadCallbacks[D][J].onDeliver=!1)):O.onResult&&(p.store.messagesCallbacks[J]=O.onResult):"function"==typeof O&&(p.store.messagesCallbacks[J]=O);var G={type:parseInt(a.pushMsgType)>0?a.pushMsgType:3,content:{peerName:p.sdkParams.serverName,priority:U,content:JSON.stringify(q),ttl:a.messageTtl>0?a.messageTtl:p.sdkParams.messageTtl},uniqueId:q.uniqueId};return N.send(G,function(ie){!ie.hasError&&O&&("function"==typeof O?O(ie):"object"==(0,e.default)(O)&&"function"==typeof O.onResult&&O.onResult(ie),p.store.messagesCallbacks[J]&&delete p.store.messagesCallbacks[J])}),p.sdkParams.asyncRequestTimeout>0&&(p.store.asyncRequestTimeouts[J]&&clearTimeout(p.store.asyncRequestTimeouts[J]),p.store.asyncRequestTimeouts[J]=setTimeout(function(){"function"==typeof O?O({hasError:!0,errorCode:408,errorMessage:"Async Request Timed Out!"}):"object"==(0,e.default)(O)&&"function"==typeof O.onResult&&O.onResult({hasError:!0,errorCode:408,errorMessage:"Async Request Timed Out!"}),p.store.messagesCallbacks[J]&&delete p.store.messagesCallbacks[J],p.store.sendMessageCallbacks[J]&&delete p.store.sendMessageCallbacks[J],p.store.threadCallbacks[D]&&p.store.threadCallbacks[D][J]&&(p.store.threadCallbacks[D][J]={},delete p.store.threadCallbacks[D][J])},p.sdkParams.asyncRequestTimeout)),H&&H(),{uniqueId:J,threadId:D,participant:null===(F=C.userInfo)||void 0===F?void 0:F.id,content:a.content}},this.ping=function(){C.chatState&&typeof C.userInfo<"u"&&C.sendMessage({chatMessageVOType:l.chatMessageVOTypes.PING,pushMsgType:3})}}},63902:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var _interopRequireDefault=__webpack_require__(95318);Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _typeof2=_interopRequireDefault(__webpack_require__(50008)),_cryptoJs=_interopRequireDefault(__webpack_require__(7206));function ChatUtility(){this.isNode=function(){return typeof global<"u"&&"[object global]"==={}.toString.call(global)},this.isValidJson=function(M){try{JSON.parse(M)}catch{return!1}return!0},this.generateUUID=function(M){var b=(new Date).getTime(),n="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";return 1==M&&(n="xxxxxxxx"),2==M&&(n="xxxxxxxx-xxxx"),3==M&&(n="xxxxxxxx-xxxx-4xxx"),4==M&&(n="xxxxxxxx-xxxx-4xxx-yxxx"),n.replace(/[xy]/g,function(e){var l=(b+16*Math.random())%16|0;return b=Math.floor(b/16),("x"==e?l:7&l|8).toString(16)})},this.createReturnData=function(M,b,n,t,e,l,h,r){var d={hasError:n,errorMessage:"string"==typeof t?t:"",errorCode:"number"==typeof e?e:0,result:l,typeCode:M,ownerId:b,uniqueId:r};return"number"==typeof h&&(d.contentCount=h),d},this.chatStepLogger=function(M,b){typeof navigator>"u"?console.log("\x1b[90m    \u2630 %s \x1b[0m \x1b[90m(%sms)\x1b[0m",M,b):console.log("%c   "+M+" ("+b+"ms)","border-left: solid #666 10px; color: #666;")},this.MD5=function(M){function b(ae,ye){return ae<<ye|ae>>>32-ye}function n(ae,ye){var Qe,Ot,At,Ze,at;return At=2147483648&ae,Ze=2147483648&ye,at=(1073741823&ae)+(1073741823&ye),(Qe=1073741824&ae)&(Ot=1073741824&ye)?2147483648^at^At^Ze:Qe|Ot?1073741824&at?3221225472^at^At^Ze:1073741824^at^At^Ze:at^At^Ze}function r(ae,ye,Qe,Ot,At,Ze,at){return ae=n(ae,n(n(function t(ae,ye,Qe){return ae&ye|~ae&Qe}(ye,Qe,Ot),At),at)),n(b(ae,Ze),ye)}function d(ae,ye,Qe,Ot,At,Ze,at){return ae=n(ae,n(n(function e(ae,ye,Qe){return ae&Qe|ye&~Qe}(ye,Qe,Ot),At),at)),n(b(ae,Ze),ye)}function y(ae,ye,Qe,Ot,At,Ze,at){return ae=n(ae,n(n(function l(ae,ye,Qe){return ae^ye^Qe}(ye,Qe,Ot),At),at)),n(b(ae,Ze),ye)}function g(ae,ye,Qe,Ot,At,Ze,at){return ae=n(ae,n(n(function h(ae,ye,Qe){return ye^(ae|~Qe)}(ye,Qe,Ot),At),at)),n(b(ae,Ze),ye)}function f(ae){var At,ye="",Qe="";for(At=0;At<=3;At++)ye+=(Qe="0"+(ae>>>8*At&255).toString(16)).substr(Qe.length-2,2);return ye}var a,O,H,F,V,D,U,q,J,N=Array();for(N=function p(ae){for(var ye,Qe=ae.length,Ot=Qe+8,Ze=16*((Ot-Ot%64)/64+1),at=Array(Ze-1),Be=0,Lt=0;Lt<Qe;)Be=Lt%4*8,at[ye=(Lt-Lt%4)/4]=at[ye]|ae.charCodeAt(Lt)<<Be,Lt++;return at[ye=(Lt-Lt%4)/4]=at[ye]|128<<(Be=Lt%4*8),at[Ze-2]=Qe<<3,at[Ze-1]=Qe>>>29,at}(M=function C(ae){ae=ae.replace(/\r\n/g,"\n");for(var ye="",Qe=0;Qe<ae.length;Qe++){var Ot=ae.charCodeAt(Qe);Ot<128?ye+=String.fromCharCode(Ot):Ot>127&&Ot<2048?(ye+=String.fromCharCode(Ot>>6|192),ye+=String.fromCharCode(63&Ot|128)):(ye+=String.fromCharCode(Ot>>12|224),ye+=String.fromCharCode(Ot>>6&63|128),ye+=String.fromCharCode(63&Ot|128))}return ye}(M)),D=1732584193,U=4023233417,q=2562383102,J=271733878,a=0;a<N.length;a+=16)O=D,H=U,F=q,V=J,D=r(D,U,q,J,N[a+0],7,3614090360),J=r(J,D,U,q,N[a+1],12,3905402710),q=r(q,J,D,U,N[a+2],17,606105819),U=r(U,q,J,D,N[a+3],22,3250441966),D=r(D,U,q,J,N[a+4],7,4118548399),J=r(J,D,U,q,N[a+5],12,1200080426),q=r(q,J,D,U,N[a+6],17,2821735955),U=r(U,q,J,D,N[a+7],22,4249261313),D=r(D,U,q,J,N[a+8],7,1770035416),J=r(J,D,U,q,N[a+9],12,2336552879),q=r(q,J,D,U,N[a+10],17,4294925233),U=r(U,q,J,D,N[a+11],22,2304563134),D=r(D,U,q,J,N[a+12],7,1804603682),J=r(J,D,U,q,N[a+13],12,4254626195),q=r(q,J,D,U,N[a+14],17,2792965006),D=d(D,U=r(U,q,J,D,N[a+15],22,1236535329),q,J,N[a+1],5,4129170786),J=d(J,D,U,q,N[a+6],9,3225465664),q=d(q,J,D,U,N[a+11],14,643717713),U=d(U,q,J,D,N[a+0],20,3921069994),D=d(D,U,q,J,N[a+5],5,3593408605),J=d(J,D,U,q,N[a+10],9,38016083),q=d(q,J,D,U,N[a+15],14,3634488961),U=d(U,q,J,D,N[a+4],20,3889429448),D=d(D,U,q,J,N[a+9],5,568446438),J=d(J,D,U,q,N[a+14],9,3275163606),q=d(q,J,D,U,N[a+3],14,4107603335),U=d(U,q,J,D,N[a+8],20,1163531501),D=d(D,U,q,J,N[a+13],5,2850285829),J=d(J,D,U,q,N[a+2],9,4243563512),q=d(q,J,D,U,N[a+7],14,1735328473),D=y(D,U=d(U,q,J,D,N[a+12],20,2368359562),q,J,N[a+5],4,4294588738),J=y(J,D,U,q,N[a+8],11,2272392833),q=y(q,J,D,U,N[a+11],16,1839030562),U=y(U,q,J,D,N[a+14],23,4259657740),D=y(D,U,q,J,N[a+1],4,2763975236),J=y(J,D,U,q,N[a+4],11,1272893353),q=y(q,J,D,U,N[a+7],16,4139469664),U=y(U,q,J,D,N[a+10],23,3200236656),D=y(D,U,q,J,N[a+13],4,681279174),J=y(J,D,U,q,N[a+0],11,3936430074),q=y(q,J,D,U,N[a+3],16,3572445317),U=y(U,q,J,D,N[a+6],23,76029189),D=y(D,U,q,J,N[a+9],4,3654602809),J=y(J,D,U,q,N[a+12],11,3873151461),q=y(q,J,D,U,N[a+15],16,530742520),D=g(D,U=y(U,q,J,D,N[a+2],23,3299628645),q,J,N[a+0],6,4096336452),J=g(J,D,U,q,N[a+7],10,1126891415),q=g(q,J,D,U,N[a+14],15,2878612391),U=g(U,q,J,D,N[a+5],21,4237533241),D=g(D,U,q,J,N[a+12],6,1700485571),J=g(J,D,U,q,N[a+3],10,2399980690),q=g(q,J,D,U,N[a+10],15,4293915773),U=g(U,q,J,D,N[a+1],21,2240044497),D=g(D,U,q,J,N[a+8],6,1873313359),J=g(J,D,U,q,N[a+15],10,4264355552),q=g(q,J,D,U,N[a+6],15,2734768916),U=g(U,q,J,D,N[a+13],21,1309151649),D=g(D,U,q,J,N[a+4],6,4149444226),J=g(J,D,U,q,N[a+11],10,3174756917),q=g(q,J,D,U,N[a+2],15,718787259),U=g(U,q,J,D,N[a+9],21,3951481745),D=n(D,O),U=n(U,H),q=n(q,F),J=n(J,V);return(f(D)+f(U)+f(q)+f(J)).toLowerCase()},this.RC4=function(M,b){for(var e,n=[],t=0,l="",h=0;h<256;h++)n[h]=h;for(h=0;h<256;h++)t=(t+n[h]+M.charCodeAt(h%M.length))%256,e=n[h],n[h]=n[t],n[t]=e;h=0,t=0;for(var r=0;r<b.length;r++)e=n[h=(h+1)%256],n[h]=n[t=(t+n[h])%256],n[t]=e,l+=String.fromCharCode(b.charCodeAt(r)^n[(n[h]+n[t])%256]);return l},this.dynamicSort=function(M,b){var n=1;return b&&(n=-1),function(t,e){return(t[M]<e[M]?-1:t[M]>e[M]?1:0)*n}},this.crypt=function(M,b,n){return"string"!=typeof M&&(M=JSON.stringify(M)),(null==M||"undefined"==M)&&(M=""),_cryptoJs.default.AES.encrypt(M,b+n).toString()},this.decrypt=function(M,b,n){var t=_cryptoJs.default.AES.decrypt(M,b+n);try{return{hasError:!1,result:t=t.toString(_cryptoJs.default.enc.Utf8)}}catch(e){return{hasError:!0,result:e}}},this.jsonStringify=function(M){return JSON.stringify(M,function(b,n){return"function"==typeof n?""+n:n})},this.jsonParser=function(string){try{return JSON.parse(string,function(k,v){return"string"==typeof v&&v.startsWith("function")?eval("("+v+")"):v})}catch(M){console.log("Error happened at Utility.jsonParser function()",M)}},this.objectDeepMerger=function(){for(var M={},b=this,n=function(l){for(var h in l)l.hasOwnProperty(h)&&(M[h]="[object Object]"===Object.prototype.toString.call(l[h])?b.objectDeepMerger(M[h],l[h]):l[h])},t=0;t<arguments.length;t++)n(t<0||arguments.length<=t?void 0:arguments[t]);return M},this.convertToCSV=function(M){for(var b="object"!=(0,_typeof2.default)(M)?JSON.parse(M):M,n="",t=0;t<b.length;t++){var e="";for(var l in b[t])""!=e&&(e+=","),e+=l,e+=": "+("string"!=typeof b[t][l]?JSON.stringify(b[t][l]).replaceAll(",","."):b[t][l]);n+=e+"\r\n"}return n}}var _default=new ChatUtility;exports.default=_default},81263:(M,b,n)=>{"use strict";n.r(b),n.d(b,{DetailedError:()=>U,HttpStack:()=>Ft,Upload:()=>Fr,canStoreURLs:()=>be,defaultOptions:()=>Jr,enableDebugLog:()=>J,isSupported:()=>Ie});var t=n(70028),e=n(87629),l=n.n(e);function h(Pe){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Se){return typeof Se}:function(Se){return Se&&"function"==typeof Symbol&&Se.constructor===Symbol&&Se!==Symbol.prototype?"symbol":typeof Se})(Pe)}function r(Pe,Oe){for(var Se=0;Se<Oe.length;Se++){var Xe=Oe[Se];Xe.enumerable=Xe.enumerable||!1,Xe.configurable=!0,"value"in Xe&&(Xe.writable=!0),Object.defineProperty(Pe,Xe.key,Xe)}}function y(Pe,Oe){if(!(Pe instanceof Oe))throw new TypeError("Cannot call a class as a function")}function f(Pe,Oe){return!Oe||"object"!==h(Oe)&&"function"!=typeof Oe?function C(Pe){if(void 0===Pe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Pe}(Pe):Oe}function N(Pe){var Oe="function"==typeof Map?new Map:void 0;return N=function(Xe){if(null===Xe||!function H(Pe){return-1!==Function.toString.call(Pe).indexOf("[native code]")}(Xe))return Xe;if("function"!=typeof Xe)throw new TypeError("Super expression must either be null or a function");if(typeof Oe<"u"){if(Oe.has(Xe))return Oe.get(Xe);Oe.set(Xe,Ct)}function Ct(){return a(Xe,arguments,V(this).constructor)}return Ct.prototype=Object.create(Xe.prototype,{constructor:{value:Ct,enumerable:!1,writable:!0,configurable:!0}}),F(Ct,Xe)},N(Pe)}function a(Pe,Oe,Se){return(a=O()?Reflect.construct:function(Ct,zt,kr){var Br=[null];Br.push.apply(Br,zt);var tr=new(Function.bind.apply(Ct,Br));return kr&&F(tr,kr.prototype),tr}).apply(null,arguments)}function O(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function F(Pe,Oe){return(F=Object.setPrototypeOf||function(Xe,Ct){return Xe.__proto__=Ct,Xe})(Pe,Oe)}function V(Pe){return(V=Object.setPrototypeOf?Object.getPrototypeOf:function(Se){return Se.__proto__||Object.getPrototypeOf(Se)})(Pe)}const U=function(Pe){!function g(Pe,Oe){if("function"!=typeof Oe&&null!==Oe)throw new TypeError("Super expression must either be null or a function");Pe.prototype=Object.create(Oe&&Oe.prototype,{constructor:{value:Pe,writable:!0,configurable:!0}}),Oe&&F(Pe,Oe)}(Se,Pe);var Oe=function p(Pe){var Oe=O();return function(){var Ct,Xe=V(Pe);if(Oe){var zt=V(this).constructor;Ct=Reflect.construct(Xe,arguments,zt)}else Ct=Xe.apply(this,arguments);return f(this,Ct)}}(Se);function Se(Xe){var Ct,zt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,kr=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,Br=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(y(this,Se),(Ct=Oe.call(this,Xe)).originalRequest=kr,Ct.originalResponse=Br,Ct.causingError=zt,null!=zt&&(Xe+=", caused by ".concat(zt.toString())),null!=kr){var xt=kr.getHeader("X-Request-ID")||"n/a",tr=kr.getMethod(),Rr=kr.getURL(),Ur=Br?Br.getStatus():"n/a",Nr=Br?Br.getBody()||"":"n/a";Xe+=", originated from request (method: ".concat(tr,", url: ").concat(Rr,", response code: ").concat(Ur,", response text: ").concat(Nr,", request id: ").concat(xt,")")}return Ct.message=Xe,Ct}return function d(Pe,Oe,Se){return Oe&&r(Pe.prototype,Oe),Se&&r(Pe,Se),Pe}(Se)}(N(Error));var q=!1;function J(){q=!0}function G(Pe){!q||console.log(Pe)}function K(Pe,Oe){var Se=Object.keys(Pe);if(Object.getOwnPropertySymbols){var Xe=Object.getOwnPropertySymbols(Pe);Oe&&(Xe=Xe.filter(function(Ct){return Object.getOwnPropertyDescriptor(Pe,Ct).enumerable})),Se.push.apply(Se,Xe)}return Se}function re(Pe){for(var Oe=1;Oe<arguments.length;Oe++){var Se=null!=arguments[Oe]?arguments[Oe]:{};Oe%2?K(Object(Se),!0).forEach(function(Xe){oe(Pe,Xe,Se[Xe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Pe,Object.getOwnPropertyDescriptors(Se)):K(Object(Se)).forEach(function(Xe){Object.defineProperty(Pe,Xe,Object.getOwnPropertyDescriptor(Se,Xe))})}return Pe}function oe(Pe,Oe,Se){return Oe in Pe?Object.defineProperty(Pe,Oe,{value:Se,enumerable:!0,configurable:!0,writable:!0}):Pe[Oe]=Se,Pe}function s(Pe,Oe){for(var Se=0;Se<Oe.length;Se++){var Xe=Oe[Se];Xe.enumerable=Xe.enumerable||!1,Xe.configurable=!0,"value"in Xe&&(Xe.writable=!0),Object.defineProperty(Pe,Xe.key,Xe)}}var E=function(){function Pe(Oe,Se){(function B(Pe,Oe){if(!(Pe instanceof Oe))throw new TypeError("Cannot call a class as a function")})(this,Pe),"resume"in Se&&console.log("tus: The `resume` option has been removed in tus-js-client v2. Please use the URL storage API instead."),this.options=Se,this.options.chunkSize=+this.options.chunkSize,this._urlStorage=this.options.urlStorage,this.file=Oe,this.url=null,this._req=null,this._fingerprint=null,this._urlStorageKey=null,this._offset=null,this._aborted=!1,this._size=null,this._source=null,this._retryAttempt=0,this._retryTimeout=null,this._offsetBeforeRetry=0,this._parallelUploads=null,this._parallelUploadUrls=null}return function _(Pe,Oe,Se){Oe&&s(Pe.prototype,Oe),Se&&s(Pe,Se)}(Pe,[{key:"findPreviousUploads",value:function(){var Se=this;return this.options.fingerprint(this.file,this.options).then(function(Xe){return Se._urlStorage.findUploadsByFingerprint(Xe)})}},{key:"resumeFromPreviousUpload",value:function(Se){this.url=Se.uploadUrl||null,this._parallelUploadUrls=Se.parallelUploadUrls||null,this._urlStorageKey=Se.urlStorageKey}},{key:"start",value:function(){var Se=this,Xe=this.file;if(Xe)if(this.options.endpoint||this.options.uploadUrl){var Ct=this.options.retryDelays;null==Ct||"[object Array]"===Object.prototype.toString.call(Ct)?(this.options.parallelUploads>1&&["uploadUrl","uploadSize","uploadLengthDeferred"].forEach(function(zt){Se.options[zt]&&Se._emitError(new Error("tus: cannot use the ".concat(zt," option when parallelUploads is enabled")))}),this.options.fingerprint(Xe,this.options).then(function(zt){return G(null==zt?"No fingerprint was calculated meaning that the upload cannot be stored in the URL storage.":"Calculated fingerprint: ".concat(zt)),Se._fingerprint=zt,Se._source?Se._source:Se.options.fileReader.openFile(Xe,Se.options.chunkSize)}).then(function(zt){Se._source=zt,Se.options.parallelUploads>1||null!=Se._parallelUploadUrls?Se._startParallelUpload():Se._startSingleUpload()}).catch(function(zt){Se._emitError(zt)})):this._emitError(new Error("tus: the `retryDelays` option must either be an array or null"))}else this._emitError(new Error("tus: neither an endpoint or an upload URL is provided"));else this._emitError(new Error("tus: no file or stream to upload provided"))}},{key:"_startParallelUpload",value:function(){var Se=this,Xe=this._size=this._source.size,Ct=0;this._parallelUploads=[];var kr=function ae(Pe,Oe,Se){for(var Xe=Math.floor(Pe/Oe),Ct=[],zt=0;zt<Oe;zt++)Ct.push({start:Xe*zt,end:Xe*(zt+1)});return Ct[Oe-1].end=Pe,Se&&Ct.forEach(function(kr,Br){kr.uploadUrl=Se[Br]||null}),Ct}(this._source.size,null!=this._parallelUploadUrls?this._parallelUploadUrls.length:this.options.parallelUploads,this._parallelUploadUrls);this._parallelUploadUrls=new Array(kr.length);var xt,Br=kr.map(function(tr,Rr){var Ur=0;return Se._source.slice(tr.start,tr.end).then(function(Nr){var zr=Nr.value;return new Promise(function(hn,_n){var Tn=re(re({},Se.options),{},{uploadUrl:tr.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,metadata:{},headers:re(re({},Se.options.headers),{},{"Upload-Concat":"partial"}),onSuccess:hn,onError:_n,onProgress:function(Kt){Ct=Ct-Ur+Kt,Ur=Kt,Se._emitProgress(Ct,Xe)},_onUploadUrlAvailable:function(){Se._parallelUploadUrls[Rr]=sr.url,Se._parallelUploadUrls.filter(function(Kt){return!!Kt}).length===kr.length&&Se._saveUploadInUrlStorage()}}),sr=new Pe(zr,Tn);sr.start(),Se._parallelUploads.push(sr)})})});Promise.all(Br).then(function(){(xt=Se._openRequest("POST",Se.options.endpoint)).setHeader("Upload-Concat","final;".concat(Se._parallelUploadUrls.join(" ")));var tr=x(Se.options.metadata);return""!==tr&&xt.setHeader("Upload-Metadata",tr),Se._sendRequest(xt,null)}).then(function(tr){if(j(tr.getStatus(),200)){var Rr=tr.getHeader("Location");null!=Rr?(Se.url=fe(Se.options.endpoint,Rr),G("Created upload at ".concat(Se.url)),Se._emitSuccess()):Se._emitHttpError(xt,tr,"tus: invalid or missing Location header")}else Se._emitHttpError(xt,tr,"tus: unexpected response while creating upload")}).catch(function(tr){Se._emitError(tr)})}},{key:"_startSingleUpload",value:function(){if(this.options.uploadLengthDeferred)this._size=null;else if(null!=this.options.uploadSize){if(this._size=+this.options.uploadSize,isNaN(this._size))return void this._emitError(new Error("tus: cannot convert `uploadSize` option into a number"))}else if(this._size=this._source.size,null==this._size)return void this._emitError(new Error("tus: cannot automatically derive upload's size from input. Specify it manually using the `uploadSize` option or use the `uploadLengthDeferred` option"));return this._aborted=!1,null!=this.url?(G("Resuming upload from previous URL: ".concat(this.url)),void this._resumeUpload()):null!=this.options.uploadUrl?(G("Resuming upload from provided URL: ".concat(this.options.uploadUrl)),this.url=this.options.uploadUrl,void this._resumeUpload()):(G("Creating a new upload"),void this._createUpload())}},{key:"abort",value:function(Se){var Xe=this;if(arguments.length>1&&"function"==typeof arguments[1])throw new Error("tus: the abort function does not accept a callback since v2 anymore; please use the returned Promise instead");return null!=this._parallelUploads&&this._parallelUploads.forEach(function(Ct){Ct.abort(Se)}),null!==this._req&&(this._req.abort(),this._source.close()),this._aborted=!0,null!=this._retryTimeout&&(clearTimeout(this._retryTimeout),this._retryTimeout=null),Se&&null!=this.url?Pe.terminate(this.url,this.options).then(function(){return Xe._removeFromUrlStorage()}):Promise.resolve()}},{key:"_emitHttpError",value:function(Se,Xe,Ct,zt){this._emitError(new U(Ct,zt,Se,Xe))}},{key:"_emitError",value:function(Se){var Xe=this;if(!this._aborted){if(null!=this.options.retryDelays&&(null!=this._offset&&this._offset>this._offsetBeforeRetry&&(this._retryAttempt=0),W(Se,this._retryAttempt,this.options))){var zt=this.options.retryDelays[this._retryAttempt++];return this._offsetBeforeRetry=this._offset,void(this._retryTimeout=setTimeout(function(){Xe.start()},zt))}if("function"!=typeof this.options.onError)throw Se;this.options.onError(Se)}}},{key:"_emitSuccess",value:function(){this.options.removeFingerprintOnSuccess&&this._removeFromUrlStorage(),"function"==typeof this.options.onSuccess&&this.options.onSuccess()}},{key:"_emitProgress",value:function(Se,Xe){"function"==typeof this.options.onProgress&&this.options.onProgress(Se,Xe)}},{key:"_emitChunkComplete",value:function(Se,Xe,Ct){"function"==typeof this.options.onChunkComplete&&this.options.onChunkComplete(Se,Xe,Ct)}},{key:"_createUpload",value:function(){var Se=this;if(this.options.endpoint){var Xe=this._openRequest("POST",this.options.endpoint);this.options.uploadLengthDeferred?Xe.setHeader("Upload-Defer-Length",1):Xe.setHeader("Upload-Length",this._size);var zt,Ct=x(this.options.metadata);""!==Ct&&Xe.setHeader("Upload-Metadata",Ct),this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,zt=this._addChunkToRequest(Xe)):zt=this._sendRequest(Xe,null),zt.then(function(kr){if(j(kr.getStatus(),200)){var Br=kr.getHeader("Location");if(null!=Br)return Se.url=fe(Se.options.endpoint,Br),G("Created upload at ".concat(Se.url)),"function"==typeof Se.options._onUploadUrlAvailable&&Se.options._onUploadUrlAvailable(),0===Se._size?(Se._emitSuccess(),void Se._source.close()):(Se._saveUploadInUrlStorage(),void(Se.options.uploadDataDuringCreation?Se._handleUploadResponse(Xe,kr):(Se._offset=0,Se._performUpload())));Se._emitHttpError(Xe,kr,"tus: invalid or missing Location header")}else Se._emitHttpError(Xe,kr,"tus: unexpected response while creating upload")}).catch(function(kr){Se._emitHttpError(Xe,null,"tus: failed to create upload",kr)})}else this._emitError(new Error("tus: unable to create upload because no endpoint is provided"))}},{key:"_resumeUpload",value:function(){var Se=this,Xe=this._openRequest("HEAD",this.url);this._sendRequest(Xe,null).then(function(zt){var kr=zt.getStatus();if(!j(kr,200))return j(kr,400)&&Se._removeFromUrlStorage(),423===kr?void Se._emitHttpError(Xe,zt,"tus: upload is currently locked; retry later"):Se.options.endpoint?(Se.url=null,void Se._createUpload()):void Se._emitHttpError(Xe,zt,"tus: unable to resume upload (new upload cannot be created without an endpoint)");var Br=parseInt(zt.getHeader("Upload-Offset"),10);if(isNaN(Br))Se._emitHttpError(Xe,zt,"tus: invalid or missing offset value");else{var xt=parseInt(zt.getHeader("Upload-Length"),10);if(!isNaN(xt)||Se.options.uploadLengthDeferred)return"function"==typeof Se.options._onUploadUrlAvailable&&Se.options._onUploadUrlAvailable(),Br===xt?(Se._emitProgress(xt,xt),void Se._emitSuccess()):(Se._offset=Br,void Se._performUpload());Se._emitHttpError(Xe,zt,"tus: invalid or missing length value")}}).catch(function(zt){Se._emitHttpError(Xe,null,"tus: failed to resume upload",zt)})}},{key:"_performUpload",value:function(){var Xe,Se=this;this._aborted||(this.options.overridePatchMethod?(Xe=this._openRequest("POST",this.url)).setHeader("X-HTTP-Method-Override","PATCH"):Xe=this._openRequest("PATCH",this.url),Xe.setHeader("Upload-Offset",this._offset),this._addChunkToRequest(Xe).then(function(zt){j(zt.getStatus(),200)?Se._handleUploadResponse(Xe,zt):Se._emitHttpError(Xe,zt,"tus: unexpected response while uploading chunk")}).catch(function(zt){Se._aborted||Se._emitHttpError(Xe,null,"tus: failed to upload chunk at offset ".concat(Se._offset),zt)}))}},{key:"_addChunkToRequest",value:function(Se){var Xe=this,Ct=this._offset,zt=this._offset+this.options.chunkSize;return Se.setProgressHandler(function(kr){Xe._emitProgress(Ct+kr,Xe._size)}),Se.setHeader("Content-Type","application/offset+octet-stream"),(zt===1/0||zt>this._size)&&!this.options.uploadLengthDeferred&&(zt=this._size),this._source.slice(Ct,zt).then(function(kr){var Br=kr.value;return Xe.options.uploadLengthDeferred&&kr.done&&(Xe._size=Xe._offset+(Br&&Br.size?Br.size:0),Se.setHeader("Upload-Length",Xe._size)),null===Br?Xe._sendRequest(Se):(Xe._emitProgress(Xe._offset,Xe._size),Xe._sendRequest(Se,Br))})}},{key:"_handleUploadResponse",value:function(Se,Xe){var Ct=parseInt(Xe.getHeader("Upload-Offset"),10);if(!isNaN(Ct))return this._emitProgress(Ct,this._size),this._emitChunkComplete(Ct-this._offset,Ct,this._size),this._offset=Ct,Ct==this._size?(this._emitSuccess(),void this._source.close()):void this._performUpload();this._emitHttpError(Se,Xe,"tus: invalid or missing offset value")}},{key:"_openRequest",value:function(Se,Xe){var Ct=$(Se,Xe,this.options);return this._req=Ct,Ct}},{key:"_removeFromUrlStorage",value:function(){var Se=this;!this._urlStorageKey||(this._urlStorage.removeUpload(this._urlStorageKey).catch(function(Xe){Se._emitError(Xe)}),this._urlStorageKey=null)}},{key:"_saveUploadInUrlStorage",value:function(){var Se=this;if(this.options.storeFingerprintForResuming&&this._fingerprint){var Xe={size:this._size,metadata:this.options.metadata,creationTime:(new Date).toString()};this._parallelUploads?Xe.parallelUploadUrls=this._parallelUploadUrls:Xe.uploadUrl=this.url,this._urlStorage.addUpload(this._fingerprint,Xe).then(function(Ct){return Se._urlStorageKey=Ct}).catch(function(Ct){Se._emitError(Ct)})}}},{key:"_sendRequest",value:function(Se){var Xe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Y(Se,Xe,this.options)}}],[{key:"terminate",value:function(Se,Xe){if(arguments.length>1&&"function"==typeof arguments[arguments.length-1])throw new Error("tus: the terminate function does not accept a callback since v2 anymore; please use the returned Promise instead");void 0===Xe&&(Xe={});var Ct=$("DELETE",Se,Xe);return Y(Ct,null,Xe).then(function(zt){if(204!==zt.getStatus())throw new U("tus: unexpected response while terminating upload",null,Ct,zt)}).catch(function(zt){if(zt instanceof U||(zt=new U("tus: failed to terminate upload",zt,Ct,null)),!W(zt,0,Xe))throw zt;var kr=Xe.retryDelays[0],Br=Xe.retryDelays.slice(1),xt=re(re({},Xe),{},{retryDelays:Br});return new Promise(function(tr){return setTimeout(tr,kr)}).then(function(){return Pe.terminate(Se,xt)})})}}]),Pe}();function x(Pe){var Oe=[];for(var Se in Pe)Oe.push("".concat(Se," ").concat(t.Base64.encode(Pe[Se])));return Oe.join(",")}function j(Pe,Oe){return Pe>=Oe&&Pe<Oe+100}function $(Pe,Oe,Se){var Xe=Se.httpStack.createRequest(Pe,Oe);Xe.setHeader("Tus-Resumable","1.0.0");var Ct=Se.headers||{};for(var zt in Ct)Xe.setHeader(zt,Ct[zt]);if(Se.addRequestId){var kr=function ie(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(Pe){var Oe=16*Math.random()|0;return("x"==Pe?Oe:3&Oe|8).toString(16)})}();Xe.setHeader("X-Request-ID",kr)}return Xe}function Y(Pe,Oe,Se){return("function"==typeof Se.onBeforeRequest?Promise.resolve(Se.onBeforeRequest(Pe)):Promise.resolve()).then(function(){return Pe.send(Oe).then(function(Ct){return("function"==typeof Se.onAfterResponse?Promise.resolve(Se.onAfterResponse(Pe,Ct)):Promise.resolve()).then(function(){return Ct})})})}function W(Pe,Oe,Se){if(null==Se.retryDelays||Oe>=Se.retryDelays.length||null==Pe.originalRequest)return!1;if(Se&&"function"==typeof Se.onShouldRetry)return Se.onShouldRetry(Pe,Oe,Se);var Xe=Pe.originalResponse?Pe.originalResponse.getStatus():0;return(!j(Xe,400)||409===Xe||423===Xe)&&function u(){var Pe=!0;return typeof window<"u"&&"navigator"in window&&!1===window.navigator.onLine&&(Pe=!1),Pe}()}function fe(Pe,Oe){return new(l())(Oe,Pe).toString()}E.defaultOptions={endpoint:null,uploadUrl:null,metadata:{},fingerprint:null,uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,_onUploadUrlAvailable:null,overridePatchMethod:!1,headers:{},addRequestId:!1,onBeforeRequest:null,onAfterResponse:null,onShouldRetry:null,chunkSize:1/0,retryDelays:[0,1e3,3e3,5e3],parallelUploads:1,storeFingerprintForResuming:!0,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1,urlStorage:null,fileReader:null,httpStack:null};const ye=E;function Ot(Pe,Oe){for(var Se=0;Se<Oe.length;Se++){var Xe=Oe[Se];Xe.enumerable=Xe.enumerable||!1,Xe.configurable=!0,"value"in Xe&&(Xe.writable=!0),Object.defineProperty(Pe,Xe.key,Xe)}}var Ze=function(){function Pe(){!function Qe(Pe,Oe){if(!(Pe instanceof Oe))throw new TypeError("Cannot call a class as a function")}(this,Pe)}return function At(Pe,Oe,Se){Oe&&Ot(Pe.prototype,Oe),Se&&Ot(Pe,Se)}(Pe,[{key:"listAllUploads",value:function(){return Promise.resolve([])}},{key:"findUploadsByFingerprint",value:function(Se){return Promise.resolve([])}},{key:"removeUpload",value:function(Se){return Promise.resolve()}},{key:"addUpload",value:function(Se,Xe){return Promise.resolve(null)}}]),Pe}();function Be(Pe,Oe){for(var Se=0;Se<Oe.length;Se++){var Xe=Oe[Se];Xe.enumerable=Xe.enumerable||!1,Xe.configurable=!0,"value"in Xe&&(Xe.writable=!0),Object.defineProperty(Pe,Xe.key,Xe)}}var _e=!1;try{_e="localStorage"in window;var ne="tusSupport";localStorage.setItem(ne,localStorage.getItem(ne))}catch(Pe){if(Pe.code!==Pe.SECURITY_ERR&&Pe.code!==Pe.QUOTA_EXCEEDED_ERR)throw Pe;_e=!1}var be=_e,Te=function(){function Pe(){!function at(Pe,Oe){if(!(Pe instanceof Oe))throw new TypeError("Cannot call a class as a function")}(this,Pe)}return function Lt(Pe,Oe,Se){Oe&&Be(Pe.prototype,Oe),Se&&Be(Pe,Se)}(Pe,[{key:"findAllUploads",value:function(){var Se=this._findEntries("tus::");return Promise.resolve(Se)}},{key:"findUploadsByFingerprint",value:function(Se){var Xe=this._findEntries("tus::".concat(Se,"::"));return Promise.resolve(Xe)}},{key:"removeUpload",value:function(Se){return localStorage.removeItem(Se),Promise.resolve()}},{key:"addUpload",value:function(Se,Xe){var Ct=Math.round(1e12*Math.random()),zt="tus::".concat(Se,"::").concat(Ct);return localStorage.setItem(zt,JSON.stringify(Xe)),Promise.resolve(zt)}},{key:"_findEntries",value:function(Se){for(var Xe=[],Ct=0;Ct<localStorage.length;Ct++){var zt=localStorage.key(Ct);if(0===zt.indexOf(Se))try{var kr=JSON.parse(localStorage.getItem(zt));kr.urlStorageKey=zt,Xe.push(kr)}catch{}}return Xe}}]),Pe}();function $e(Pe,Oe){if(!(Pe instanceof Oe))throw new TypeError("Cannot call a class as a function")}function ft(Pe,Oe){for(var Se=0;Se<Oe.length;Se++){var Xe=Oe[Se];Xe.enumerable=Xe.enumerable||!1,Xe.configurable=!0,"value"in Xe&&(Xe.writable=!0),Object.defineProperty(Pe,Xe.key,Xe)}}function Ge(Pe,Oe,Se){return Oe&&ft(Pe.prototype,Oe),Se&&ft(Pe,Se),Pe}var Ft=function(){function Pe(){$e(this,Pe)}return Ge(Pe,[{key:"createRequest",value:function(Se,Xe){return new br(Se,Xe)}},{key:"getName",value:function(){return"XHRHttpStack"}}]),Pe}(),br=function(){function Pe(Oe,Se){$e(this,Pe),this._xhr=new XMLHttpRequest,this._xhr.open(Oe,Se,!0),this._method=Oe,this._url=Se,this._headers={}}return Ge(Pe,[{key:"getMethod",value:function(){return this._method}},{key:"getURL",value:function(){return this._url}},{key:"setHeader",value:function(Se,Xe){this._xhr.setRequestHeader(Se,Xe),this._headers[Se]=Xe}},{key:"getHeader",value:function(Se){return this._headers[Se]}},{key:"setProgressHandler",value:function(Se){"upload"in this._xhr&&(this._xhr.upload.onprogress=function(Xe){!Xe.lengthComputable||Se(Xe.loaded)})}},{key:"send",value:function(){var Se=this,Xe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return new Promise(function(Ct,zt){Se._xhr.onload=function(){Ct(new rt(Se._xhr))},Se._xhr.onerror=function(kr){zt(kr)},Se._xhr.send(Xe)})}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),Pe}(),rt=function(){function Pe(Oe){$e(this,Pe),this._xhr=Oe}return Ge(Pe,[{key:"getStatus",value:function(){return this._xhr.status}},{key:"getHeader",value:function(Se){return this._xhr.getResponseHeader(Se)}},{key:"getBody",value:function(){return this._xhr.responseText}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),Pe}();const Dt=function(){return typeof navigator<"u"&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase()};function ge(Pe,Oe){for(var Se=0;Se<Oe.length;Se++){var Xe=Oe[Se];Xe.enumerable=Xe.enumerable||!1,Xe.configurable=!0,"value"in Xe&&(Xe.writable=!0),Object.defineProperty(Pe,Xe.key,Xe)}}var We=function(){function Pe(Oe){(function X(Pe,Oe){if(!(Pe instanceof Oe))throw new TypeError("Cannot call a class as a function")})(this,Pe),this._file=Oe,this.size=Oe.size}return function Me(Pe,Oe,Se){Oe&&ge(Pe.prototype,Oe),Se&&ge(Pe,Se)}(Pe,[{key:"slice",value:function(Se,Xe){if(typeof window<"u"&&(typeof window.PhoneGap<"u"||typeof window.Cordova<"u"||typeof window.cordova<"u"))return function Ne(Pe){return new Promise(function(Oe,Se){var Xe=new FileReader;Xe.onload=function(){var Ct=new Uint8Array(Xe.result);Oe({value:Ct})},Xe.onerror=function(Ct){Se(Ct)},Xe.readAsArrayBuffer(Pe)})}(this._file.slice(Se,Xe));var Ct=this._file.slice(Se,Xe);return Promise.resolve({value:Ct})}},{key:"close",value:function(){}}]),Pe}();function pt(Pe,Oe){for(var Se=0;Se<Oe.length;Se++){var Xe=Oe[Se];Xe.enumerable=Xe.enumerable||!1,Xe.configurable=!0,"value"in Xe&&(Xe.writable=!0),Object.defineProperty(Pe,Xe.key,Xe)}}function cr(Pe){return void 0===Pe?0:void 0!==Pe.size?Pe.size:Pe.length}var gt=function(){function Pe(Oe,Se){(function Re(Pe,Oe){if(!(Pe instanceof Oe))throw new TypeError("Cannot call a class as a function")})(this,Pe),this._chunkSize=Se,this._buffer=void 0,this._bufferOffset=0,this._reader=Oe,this._done=!1}return function Zt(Pe,Oe,Se){Oe&&pt(Pe.prototype,Oe),Se&&pt(Pe,Se)}(Pe,[{key:"slice",value:function(Se,Xe){return Se<this._bufferOffset?Promise.reject(new Error("Requested data is before the reader's current offset")):this._readUntilEnoughDataOrDone(Se,Xe)}},{key:"_readUntilEnoughDataOrDone",value:function(Se,Xe){var Ct=this,zt=Xe<=this._bufferOffset+cr(this._buffer);if(this._done||zt){var kr=this._getDataFromBuffer(Se,Xe);return Promise.resolve({value:kr,done:null==kr&&this._done})}return this._reader.read().then(function(xt){var tr=xt.value;return xt.done?Ct._done=!0:Ct._buffer=void 0===Ct._buffer?tr:function wt(Pe,Oe){if(Pe.concat)return Pe.concat(Oe);if(Pe instanceof Blob)return new Blob([Pe,Oe],{type:Pe.type});if(Pe.set){var Se=new Pe.constructor(Pe.length+Oe.length);return Se.set(Pe),Se.set(Oe,Pe.length),Se}throw new Error("Unknown data type")}(Ct._buffer,tr),Ct._readUntilEnoughDataOrDone(Se,Xe)})}},{key:"_getDataFromBuffer",value:function(Se,Xe){Se>this._bufferOffset&&(this._buffer=this._buffer.slice(Se-this._bufferOffset),this._bufferOffset=Se);var Ct=0===cr(this._buffer);return this._done&&Ct?null:this._buffer.slice(0,Xe-Se)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}]),Pe}();function hr(Pe,Oe){for(var Se=0;Se<Oe.length;Se++){var Xe=Oe[Se];Xe.enumerable=Xe.enumerable||!1,Xe.configurable=!0,"value"in Xe&&(Xe.writable=!0),Object.defineProperty(Pe,Xe.key,Xe)}}var Ue=function(){function Pe(){!function Ut(Pe,Oe){if(!(Pe instanceof Oe))throw new TypeError("Cannot call a class as a function")}(this,Pe)}return function Cr(Pe,Oe,Se){Oe&&hr(Pe.prototype,Oe),Se&&hr(Pe,Se)}(Pe,[{key:"openFile",value:function(Se,Xe){return Dt()&&Se&&typeof Se.uri<"u"?function ot(Pe){return new Promise(function(Oe,Se){var Xe=new XMLHttpRequest;Xe.responseType="blob",Xe.onload=function(){Oe(Xe.response)},Xe.onerror=function(Ct){Se(Ct)},Xe.open("GET",Pe),Xe.send()})}(Se.uri).then(function(Ct){return new We(Ct)}).catch(function(Ct){throw new Error("tus: cannot fetch `file.uri` as Blob, make sure the uri is correct and accessible. ".concat(Ct))}):"function"==typeof Se.slice&&typeof Se.size<"u"?Promise.resolve(new We(Se)):"function"==typeof Se.read?(Xe=+Xe,isFinite(Xe)?Promise.resolve(new gt(Se,Xe)):Promise.reject(new Error("cannot create source for stream without a finite value for the `chunkSize` option"))):Promise.reject(new Error("source object may only be an instance of File, Blob, or Reader in this environment"))}}]),Pe}();function Ke(Pe){return(Ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Se){return typeof Se}:function(Se){return Se&&"function"==typeof Symbol&&Se.constructor===Symbol&&Se!==Symbol.prototype?"symbol":typeof Se})(Pe)}function kt(Pe,Oe){if(!(Pe instanceof Oe))throw new TypeError("Cannot call a class as a function")}function xe(Pe,Oe){for(var Se=0;Se<Oe.length;Se++){var Xe=Oe[Se];Xe.enumerable=Xe.enumerable||!1,Xe.configurable=!0,"value"in Xe&&(Xe.writable=!0),Object.defineProperty(Pe,Xe.key,Xe)}}function St(Pe,Oe){return(St=Object.setPrototypeOf||function(Xe,Ct){return Xe.__proto__=Ct,Xe})(Pe,Oe)}function ke(Pe,Oe){return!Oe||"object"!==Ke(Oe)&&"function"!=typeof Oe?function ct(Pe){if(void 0===Pe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Pe}(Pe):Oe}function $t(Pe){return($t=Object.setPrototypeOf?Object.getPrototypeOf:function(Se){return Se.__proto__||Object.getPrototypeOf(Se)})(Pe)}function Vr(Pe,Oe){var Se=Object.keys(Pe);if(Object.getOwnPropertySymbols){var Xe=Object.getOwnPropertySymbols(Pe);Oe&&(Xe=Xe.filter(function(Ct){return Object.getOwnPropertyDescriptor(Pe,Ct).enumerable})),Se.push.apply(Se,Xe)}return Se}function Sr(Pe){for(var Oe=1;Oe<arguments.length;Oe++){var Se=null!=arguments[Oe]?arguments[Oe]:{};Oe%2?Vr(Object(Se),!0).forEach(function(Xe){Ar(Pe,Xe,Se[Xe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Pe,Object.getOwnPropertyDescriptors(Se)):Vr(Object(Se)).forEach(function(Xe){Object.defineProperty(Pe,Xe,Object.getOwnPropertyDescriptor(Se,Xe))})}return Pe}function Ar(Pe,Oe,Se){return Oe in Pe?Object.defineProperty(Pe,Oe,{value:Se,enumerable:!0,configurable:!0,writable:!0}):Pe[Oe]=Se,Pe}var Jr=Sr(Sr({},ye.defaultOptions),{},{httpStack:new Ft,fileReader:new Ue,urlStorage:be?new Te:new Ze,fingerprint:function Pt(Pe,Oe){return Dt()?Promise.resolve(function He(Pe,Oe){var Se=Pe.exif?function tt(Pe){var Oe=0;if(0===Pe.length)return Oe;for(var Se=0;Se<Pe.length;Se++)Oe=(Oe<<5)-Oe+Pe.charCodeAt(Se),Oe&=Oe;return Oe}(JSON.stringify(Pe.exif)):"noexif";return["tus-rn",Pe.name||"noname",Pe.size||"nosize",Se,Oe.endpoint].join("/")}(Pe,Oe)):Promise.resolve(["tus-br",Pe.name,Pe.type,Pe.size,Pe.lastModified,Oe.endpoint].join("-"))}}),Fr=function(Pe){!function lt(Pe,Oe){if("function"!=typeof Oe&&null!==Oe)throw new TypeError("Super expression must either be null or a function");Pe.prototype=Object.create(Oe&&Oe.prototype,{constructor:{value:Pe,writable:!0,configurable:!0}}),Oe&&St(Pe,Oe)}(Se,Pe);var Oe=function qe(Pe){var Oe=function vt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ct,Xe=$t(Pe);if(Oe){var zt=$t(this).constructor;Ct=Reflect.construct(Xe,arguments,zt)}else Ct=Xe.apply(this,arguments);return ke(this,Ct)}}(Se);function Se(){var Xe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,Ct=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return kt(this,Se),Ct=Sr(Sr({},Jr),Ct),Oe.call(this,Xe,Ct)}return function Fe(Pe,Oe,Se){Oe&&xe(Pe.prototype,Oe),Se&&xe(Pe,Se)}(Se,null,[{key:"terminate",value:function(Ct,zt,kr){return zt=Sr(Sr({},Jr),zt),ye.terminate(Ct,zt,kr)}}]),Se}(ye),Gt=window,Ce=Gt.Blob,Ie=Gt.XMLHttpRequest&&Ce&&"function"==typeof Ce.prototype.slice},63701:(M,b,n)=>{b.publicEncrypt=n(16562),b.privateDecrypt=n(36705),b.privateEncrypt=function(e,l){return b.publicEncrypt(e,l,!0)},b.publicDecrypt=function(e,l){return b.privateDecrypt(e,l,!0)}},86945:(M,b,n)=>{var t=n(96386),e=n(73502).Buffer;function l(h){var r=e.allocUnsafe(4);return r.writeUInt32BE(h,0),r}M.exports=function(h,r){for(var g,d=e.alloc(0),y=0;d.length<r;)g=l(y++),d=e.concat([d,t("sha1").update(h).update(g).digest()]);return d.slice(0,r)}},82057:function(M,b,n){!function(t,e){"use strict";function l(B,s){if(!B)throw new Error(s||"Assertion failed")}function h(B,s){B.super_=s;var _=function(){};_.prototype=s.prototype,B.prototype=new _,B.prototype.constructor=B}function r(B,s,_){if(r.isBN(B))return B;this.negative=0,this.words=null,this.length=0,this.red=null,null!==B&&(("le"===s||"be"===s)&&(_=s,s=10),this._init(B||0,s||10,_||"be"))}var d;"object"==typeof t?t.exports=r:e.BN=r,r.BN=r,r.wordSize=26;try{d=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:n(77108).Buffer}catch{}function y(B,s){var _=B.charCodeAt(s);return _>=65&&_<=70?_-55:_>=97&&_<=102?_-87:_-48&15}function g(B,s,_){var w=y(B,_);return _-1>=s&&(w|=y(B,_-1)<<4),w}function p(B,s,_,w){for(var E=0,x=Math.min(B.length,_),j=s;j<x;j++){var $=B.charCodeAt(j)-48;E*=w,E+=$>=49?$-49+10:$>=17?$-17+10:$}return E}r.isBN=function(s){return s instanceof r||null!==s&&"object"==typeof s&&s.constructor.wordSize===r.wordSize&&Array.isArray(s.words)},r.max=function(s,_){return s.cmp(_)>0?s:_},r.min=function(s,_){return s.cmp(_)<0?s:_},r.prototype._init=function(s,_,w){if("number"==typeof s)return this._initNumber(s,_,w);if("object"==typeof s)return this._initArray(s,_,w);"hex"===_&&(_=16),l(_===(0|_)&&_>=2&&_<=36);var E=0;"-"===(s=s.toString().replace(/\s+/g,""))[0]&&(E++,this.negative=1),E<s.length&&(16===_?this._parseHex(s,E,w):(this._parseBase(s,_,E),"le"===w&&this._initArray(this.toArray(),_,w)))},r.prototype._initNumber=function(s,_,w){s<0&&(this.negative=1,s=-s),s<67108864?(this.words=[67108863&s],this.length=1):s<4503599627370496?(this.words=[67108863&s,s/67108864&67108863],this.length=2):(l(s<9007199254740992),this.words=[67108863&s,s/67108864&67108863,1],this.length=3),"le"===w&&this._initArray(this.toArray(),_,w)},r.prototype._initArray=function(s,_,w){if(l("number"==typeof s.length),s.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(s.length/3),this.words=new Array(this.length);for(var E=0;E<this.length;E++)this.words[E]=0;var x,j,$=0;if("be"===w)for(E=s.length-1,x=0;E>=0;E-=3)this.words[x]|=(j=s[E]|s[E-1]<<8|s[E-2]<<16)<<$&67108863,this.words[x+1]=j>>>26-$&67108863,($+=24)>=26&&($-=26,x++);else if("le"===w)for(E=0,x=0;E<s.length;E+=3)this.words[x]|=(j=s[E]|s[E+1]<<8|s[E+2]<<16)<<$&67108863,this.words[x+1]=j>>>26-$&67108863,($+=24)>=26&&($-=26,x++);return this.strip()},r.prototype._parseHex=function(s,_,w){this.length=Math.ceil((s.length-_)/6),this.words=new Array(this.length);for(var E=0;E<this.length;E++)this.words[E]=0;var $,x=0,j=0;if("be"===w)for(E=s.length-1;E>=_;E-=2)$=g(s,_,E)<<x,this.words[j]|=67108863&$,x>=18?(x-=18,this.words[j+=1]|=$>>>26):x+=8;else for(E=(s.length-_)%2==0?_+1:_;E<s.length;E+=2)$=g(s,_,E)<<x,this.words[j]|=67108863&$,x>=18?(x-=18,this.words[j+=1]|=$>>>26):x+=8;this.strip()},r.prototype._parseBase=function(s,_,w){this.words=[0],this.length=1;for(var E=0,x=1;x<=67108863;x*=_)E++;E--,x=x/_|0;for(var j=s.length-w,$=j%E,Y=Math.min(j,j-$)+w,u=0,W=w;W<Y;W+=E)u=p(s,W,W+E,_),this.imuln(x),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==$){var fe=1;for(u=p(s,W,s.length,_),W=0;W<$;W++)fe*=_;this.imuln(fe),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},r.prototype.copy=function(s){s.words=new Array(this.length);for(var _=0;_<this.length;_++)s.words[_]=this.words[_];s.length=this.length,s.negative=this.negative,s.red=this.red},r.prototype.clone=function(){var s=new r(null);return this.copy(s),s},r.prototype._expand=function(s){for(;this.length<s;)this.words[this.length++]=0;return this},r.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},r.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},r.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],C=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],N=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function O(B,s,_){_.negative=s.negative^B.negative;var w=B.length+s.length|0;_.length=w,w=w-1|0;var E=0|B.words[0],x=0|s.words[0],j=E*x,Y=j/67108864|0;_.words[0]=67108863&j;for(var u=1;u<w;u++){for(var W=Y>>>26,fe=67108863&Y,ae=Math.min(u,s.length-1),ye=Math.max(0,u-B.length+1);ye<=ae;ye++)W+=(j=(E=0|B.words[u-ye|0])*(x=0|s.words[ye])+fe)/67108864|0,fe=67108863&j;_.words[u]=0|fe,Y=0|W}return 0!==Y?_.words[u]=0|Y:_.length--,_.strip()}r.prototype.toString=function(s,_){var w;if(_=0|_||1,16===(s=s||10)||"hex"===s){w="";for(var E=0,x=0,j=0;j<this.length;j++){var $=this.words[j],Y=(16777215&($<<E|x)).toString(16);w=0!=(x=$>>>24-E&16777215)||j!==this.length-1?f[6-Y.length]+Y+w:Y+w,(E+=2)>=26&&(E-=26,j--)}for(0!==x&&(w=x.toString(16)+w);w.length%_!=0;)w="0"+w;return 0!==this.negative&&(w="-"+w),w}if(s===(0|s)&&s>=2&&s<=36){var u=C[s],W=N[s];w="";var fe=this.clone();for(fe.negative=0;!fe.isZero();){var ae=fe.modn(W).toString(s);w=(fe=fe.idivn(W)).isZero()?ae+w:f[u-ae.length]+ae+w}for(this.isZero()&&(w="0"+w);w.length%_!=0;)w="0"+w;return 0!==this.negative&&(w="-"+w),w}l(!1,"Base should be between 2 and 36")},r.prototype.toNumber=function(){var s=this.words[0];return 2===this.length?s+=67108864*this.words[1]:3===this.length&&1===this.words[2]?s+=4503599627370496+67108864*this.words[1]:this.length>2&&l(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-s:s},r.prototype.toJSON=function(){return this.toString(16)},r.prototype.toBuffer=function(s,_){return l(typeof d<"u"),this.toArrayLike(d,s,_)},r.prototype.toArray=function(s,_){return this.toArrayLike(Array,s,_)},r.prototype.toArrayLike=function(s,_,w){var E=this.byteLength(),x=w||Math.max(1,E);l(E<=x,"byte array longer than desired length"),l(x>0,"Requested array length <= 0"),this.strip();var Y,u,j="le"===_,$=new s(x),W=this.clone();if(j){for(u=0;!W.isZero();u++)Y=W.andln(255),W.iushrn(8),$[u]=Y;for(;u<x;u++)$[u]=0}else{for(u=0;u<x-E;u++)$[u]=0;for(u=0;!W.isZero();u++)Y=W.andln(255),W.iushrn(8),$[x-u-1]=Y}return $},r.prototype._countBits=Math.clz32?function(s){return 32-Math.clz32(s)}:function(s){var _=s,w=0;return _>=4096&&(w+=13,_>>>=13),_>=64&&(w+=7,_>>>=7),_>=8&&(w+=4,_>>>=4),_>=2&&(w+=2,_>>>=2),w+_},r.prototype._zeroBits=function(s){if(0===s)return 26;var _=s,w=0;return 0==(8191&_)&&(w+=13,_>>>=13),0==(127&_)&&(w+=7,_>>>=7),0==(15&_)&&(w+=4,_>>>=4),0==(3&_)&&(w+=2,_>>>=2),0==(1&_)&&w++,w},r.prototype.bitLength=function(){var _=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+_},r.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s=0,_=0;_<this.length;_++){var w=this._zeroBits(this.words[_]);if(s+=w,26!==w)break}return s},r.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},r.prototype.toTwos=function(s){return 0!==this.negative?this.abs().inotn(s).iaddn(1):this.clone()},r.prototype.fromTwos=function(s){return this.testn(s-1)?this.notn(s).iaddn(1).ineg():this.clone()},r.prototype.isNeg=function(){return 0!==this.negative},r.prototype.neg=function(){return this.clone().ineg()},r.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},r.prototype.iuor=function(s){for(;this.length<s.length;)this.words[this.length++]=0;for(var _=0;_<s.length;_++)this.words[_]=this.words[_]|s.words[_];return this.strip()},r.prototype.ior=function(s){return l(0==(this.negative|s.negative)),this.iuor(s)},r.prototype.or=function(s){return this.length>s.length?this.clone().ior(s):s.clone().ior(this)},r.prototype.uor=function(s){return this.length>s.length?this.clone().iuor(s):s.clone().iuor(this)},r.prototype.iuand=function(s){var _;_=this.length>s.length?s:this;for(var w=0;w<_.length;w++)this.words[w]=this.words[w]&s.words[w];return this.length=_.length,this.strip()},r.prototype.iand=function(s){return l(0==(this.negative|s.negative)),this.iuand(s)},r.prototype.and=function(s){return this.length>s.length?this.clone().iand(s):s.clone().iand(this)},r.prototype.uand=function(s){return this.length>s.length?this.clone().iuand(s):s.clone().iuand(this)},r.prototype.iuxor=function(s){var _,w;this.length>s.length?(_=this,w=s):(_=s,w=this);for(var E=0;E<w.length;E++)this.words[E]=_.words[E]^w.words[E];if(this!==_)for(;E<_.length;E++)this.words[E]=_.words[E];return this.length=_.length,this.strip()},r.prototype.ixor=function(s){return l(0==(this.negative|s.negative)),this.iuxor(s)},r.prototype.xor=function(s){return this.length>s.length?this.clone().ixor(s):s.clone().ixor(this)},r.prototype.uxor=function(s){return this.length>s.length?this.clone().iuxor(s):s.clone().iuxor(this)},r.prototype.inotn=function(s){l("number"==typeof s&&s>=0);var _=0|Math.ceil(s/26),w=s%26;this._expand(_),w>0&&_--;for(var E=0;E<_;E++)this.words[E]=67108863&~this.words[E];return w>0&&(this.words[E]=~this.words[E]&67108863>>26-w),this.strip()},r.prototype.notn=function(s){return this.clone().inotn(s)},r.prototype.setn=function(s,_){l("number"==typeof s&&s>=0);var w=s/26|0,E=s%26;return this._expand(w+1),this.words[w]=_?this.words[w]|1<<E:this.words[w]&~(1<<E),this.strip()},r.prototype.iadd=function(s){var _,w,E;if(0!==this.negative&&0===s.negative)return this.negative=0,_=this.isub(s),this.negative^=1,this._normSign();if(0===this.negative&&0!==s.negative)return s.negative=0,_=this.isub(s),s.negative=1,_._normSign();this.length>s.length?(w=this,E=s):(w=s,E=this);for(var x=0,j=0;j<E.length;j++)this.words[j]=67108863&(_=(0|w.words[j])+(0|E.words[j])+x),x=_>>>26;for(;0!==x&&j<w.length;j++)this.words[j]=67108863&(_=(0|w.words[j])+x),x=_>>>26;if(this.length=w.length,0!==x)this.words[this.length]=x,this.length++;else if(w!==this)for(;j<w.length;j++)this.words[j]=w.words[j];return this},r.prototype.add=function(s){var _;return 0!==s.negative&&0===this.negative?(s.negative=0,_=this.sub(s),s.negative^=1,_):0===s.negative&&0!==this.negative?(this.negative=0,_=s.sub(this),this.negative=1,_):this.length>s.length?this.clone().iadd(s):s.clone().iadd(this)},r.prototype.isub=function(s){if(0!==s.negative){s.negative=0;var _=this.iadd(s);return s.negative=1,_._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(s),this.negative=1,this._normSign();var E,x,w=this.cmp(s);if(0===w)return this.negative=0,this.length=1,this.words[0]=0,this;w>0?(E=this,x=s):(E=s,x=this);for(var j=0,$=0;$<x.length;$++)j=(_=(0|E.words[$])-(0|x.words[$])+j)>>26,this.words[$]=67108863&_;for(;0!==j&&$<E.length;$++)j=(_=(0|E.words[$])+j)>>26,this.words[$]=67108863&_;if(0===j&&$<E.length&&E!==this)for(;$<E.length;$++)this.words[$]=E.words[$];return this.length=Math.max(this.length,$),E!==this&&(this.negative=1),this.strip()},r.prototype.sub=function(s){return this.clone().isub(s)};var H=function(s,_,w){var Y,u,W,E=s.words,x=_.words,j=w.words,$=0,fe=0|E[0],ae=8191&fe,ye=fe>>>13,Qe=0|E[1],Ot=8191&Qe,At=Qe>>>13,Ze=0|E[2],at=8191&Ze,Be=Ze>>>13,Lt=0|E[3],_e=8191&Lt,ne=Lt>>>13,be=0|E[4],Te=8191&be,$e=be>>>13,ft=0|E[5],Ge=8191&ft,Ft=ft>>>13,br=0|E[6],rt=8191&br,st=br>>>13,Dt=0|E[7],ot=8191&Dt,nt=Dt>>>13,Yt=0|E[8],Ne=8191&Yt,X=Yt>>>13,ge=0|E[9],Me=8191&ge,We=ge>>>13,Re=0|x[0],pt=8191&Re,Zt=Re>>>13,cr=0|x[1],wt=8191&cr,gt=cr>>>13,Ut=0|x[2],hr=8191&Ut,Cr=Ut>>>13,Ue=0|x[3],Pt=8191&Ue,He=Ue>>>13,tt=0|x[4],Ke=8191&tt,kt=tt>>>13,xe=0|x[5],Fe=8191&xe,lt=xe>>>13,St=0|x[6],qe=8191&St,ke=St>>>13,ct=0|x[7],vt=8191&ct,$t=ct>>>13,Vr=0|x[8],Sr=8191&Vr,Ar=Vr>>>13,Jr=0|x[9],Fr=8191&Jr,Gt=Jr>>>13;w.negative=s.negative^_.negative,w.length=19;var le=($+(Y=Math.imul(ae,pt))|0)+((8191&(u=(u=Math.imul(ae,Zt))+Math.imul(ye,pt)|0))<<13)|0;$=((W=Math.imul(ye,Zt))+(u>>>13)|0)+(le>>>26)|0,le&=67108863,Y=Math.imul(Ot,pt),u=(u=Math.imul(Ot,Zt))+Math.imul(At,pt)|0,W=Math.imul(At,Zt);var Ce=($+(Y=Y+Math.imul(ae,wt)|0)|0)+((8191&(u=(u=u+Math.imul(ae,gt)|0)+Math.imul(ye,wt)|0))<<13)|0;$=((W=W+Math.imul(ye,gt)|0)+(u>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,Y=Math.imul(at,pt),u=(u=Math.imul(at,Zt))+Math.imul(Be,pt)|0,W=Math.imul(Be,Zt),Y=Y+Math.imul(Ot,wt)|0,u=(u=u+Math.imul(Ot,gt)|0)+Math.imul(At,wt)|0,W=W+Math.imul(At,gt)|0;var Ie=($+(Y=Y+Math.imul(ae,hr)|0)|0)+((8191&(u=(u=u+Math.imul(ae,Cr)|0)+Math.imul(ye,hr)|0))<<13)|0;$=((W=W+Math.imul(ye,Cr)|0)+(u>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,Y=Math.imul(_e,pt),u=(u=Math.imul(_e,Zt))+Math.imul(ne,pt)|0,W=Math.imul(ne,Zt),Y=Y+Math.imul(at,wt)|0,u=(u=u+Math.imul(at,gt)|0)+Math.imul(Be,wt)|0,W=W+Math.imul(Be,gt)|0,Y=Y+Math.imul(Ot,hr)|0,u=(u=u+Math.imul(Ot,Cr)|0)+Math.imul(At,hr)|0,W=W+Math.imul(At,Cr)|0;var Pe=($+(Y=Y+Math.imul(ae,Pt)|0)|0)+((8191&(u=(u=u+Math.imul(ae,He)|0)+Math.imul(ye,Pt)|0))<<13)|0;$=((W=W+Math.imul(ye,He)|0)+(u>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,Y=Math.imul(Te,pt),u=(u=Math.imul(Te,Zt))+Math.imul($e,pt)|0,W=Math.imul($e,Zt),Y=Y+Math.imul(_e,wt)|0,u=(u=u+Math.imul(_e,gt)|0)+Math.imul(ne,wt)|0,W=W+Math.imul(ne,gt)|0,Y=Y+Math.imul(at,hr)|0,u=(u=u+Math.imul(at,Cr)|0)+Math.imul(Be,hr)|0,W=W+Math.imul(Be,Cr)|0,Y=Y+Math.imul(Ot,Pt)|0,u=(u=u+Math.imul(Ot,He)|0)+Math.imul(At,Pt)|0,W=W+Math.imul(At,He)|0;var Oe=($+(Y=Y+Math.imul(ae,Ke)|0)|0)+((8191&(u=(u=u+Math.imul(ae,kt)|0)+Math.imul(ye,Ke)|0))<<13)|0;$=((W=W+Math.imul(ye,kt)|0)+(u>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,Y=Math.imul(Ge,pt),u=(u=Math.imul(Ge,Zt))+Math.imul(Ft,pt)|0,W=Math.imul(Ft,Zt),Y=Y+Math.imul(Te,wt)|0,u=(u=u+Math.imul(Te,gt)|0)+Math.imul($e,wt)|0,W=W+Math.imul($e,gt)|0,Y=Y+Math.imul(_e,hr)|0,u=(u=u+Math.imul(_e,Cr)|0)+Math.imul(ne,hr)|0,W=W+Math.imul(ne,Cr)|0,Y=Y+Math.imul(at,Pt)|0,u=(u=u+Math.imul(at,He)|0)+Math.imul(Be,Pt)|0,W=W+Math.imul(Be,He)|0,Y=Y+Math.imul(Ot,Ke)|0,u=(u=u+Math.imul(Ot,kt)|0)+Math.imul(At,Ke)|0,W=W+Math.imul(At,kt)|0;var Se=($+(Y=Y+Math.imul(ae,Fe)|0)|0)+((8191&(u=(u=u+Math.imul(ae,lt)|0)+Math.imul(ye,Fe)|0))<<13)|0;$=((W=W+Math.imul(ye,lt)|0)+(u>>>13)|0)+(Se>>>26)|0,Se&=67108863,Y=Math.imul(rt,pt),u=(u=Math.imul(rt,Zt))+Math.imul(st,pt)|0,W=Math.imul(st,Zt),Y=Y+Math.imul(Ge,wt)|0,u=(u=u+Math.imul(Ge,gt)|0)+Math.imul(Ft,wt)|0,W=W+Math.imul(Ft,gt)|0,Y=Y+Math.imul(Te,hr)|0,u=(u=u+Math.imul(Te,Cr)|0)+Math.imul($e,hr)|0,W=W+Math.imul($e,Cr)|0,Y=Y+Math.imul(_e,Pt)|0,u=(u=u+Math.imul(_e,He)|0)+Math.imul(ne,Pt)|0,W=W+Math.imul(ne,He)|0,Y=Y+Math.imul(at,Ke)|0,u=(u=u+Math.imul(at,kt)|0)+Math.imul(Be,Ke)|0,W=W+Math.imul(Be,kt)|0,Y=Y+Math.imul(Ot,Fe)|0,u=(u=u+Math.imul(Ot,lt)|0)+Math.imul(At,Fe)|0,W=W+Math.imul(At,lt)|0;var Xe=($+(Y=Y+Math.imul(ae,qe)|0)|0)+((8191&(u=(u=u+Math.imul(ae,ke)|0)+Math.imul(ye,qe)|0))<<13)|0;$=((W=W+Math.imul(ye,ke)|0)+(u>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,Y=Math.imul(ot,pt),u=(u=Math.imul(ot,Zt))+Math.imul(nt,pt)|0,W=Math.imul(nt,Zt),Y=Y+Math.imul(rt,wt)|0,u=(u=u+Math.imul(rt,gt)|0)+Math.imul(st,wt)|0,W=W+Math.imul(st,gt)|0,Y=Y+Math.imul(Ge,hr)|0,u=(u=u+Math.imul(Ge,Cr)|0)+Math.imul(Ft,hr)|0,W=W+Math.imul(Ft,Cr)|0,Y=Y+Math.imul(Te,Pt)|0,u=(u=u+Math.imul(Te,He)|0)+Math.imul($e,Pt)|0,W=W+Math.imul($e,He)|0,Y=Y+Math.imul(_e,Ke)|0,u=(u=u+Math.imul(_e,kt)|0)+Math.imul(ne,Ke)|0,W=W+Math.imul(ne,kt)|0,Y=Y+Math.imul(at,Fe)|0,u=(u=u+Math.imul(at,lt)|0)+Math.imul(Be,Fe)|0,W=W+Math.imul(Be,lt)|0,Y=Y+Math.imul(Ot,qe)|0,u=(u=u+Math.imul(Ot,ke)|0)+Math.imul(At,qe)|0,W=W+Math.imul(At,ke)|0;var Ct=($+(Y=Y+Math.imul(ae,vt)|0)|0)+((8191&(u=(u=u+Math.imul(ae,$t)|0)+Math.imul(ye,vt)|0))<<13)|0;$=((W=W+Math.imul(ye,$t)|0)+(u>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,Y=Math.imul(Ne,pt),u=(u=Math.imul(Ne,Zt))+Math.imul(X,pt)|0,W=Math.imul(X,Zt),Y=Y+Math.imul(ot,wt)|0,u=(u=u+Math.imul(ot,gt)|0)+Math.imul(nt,wt)|0,W=W+Math.imul(nt,gt)|0,Y=Y+Math.imul(rt,hr)|0,u=(u=u+Math.imul(rt,Cr)|0)+Math.imul(st,hr)|0,W=W+Math.imul(st,Cr)|0,Y=Y+Math.imul(Ge,Pt)|0,u=(u=u+Math.imul(Ge,He)|0)+Math.imul(Ft,Pt)|0,W=W+Math.imul(Ft,He)|0,Y=Y+Math.imul(Te,Ke)|0,u=(u=u+Math.imul(Te,kt)|0)+Math.imul($e,Ke)|0,W=W+Math.imul($e,kt)|0,Y=Y+Math.imul(_e,Fe)|0,u=(u=u+Math.imul(_e,lt)|0)+Math.imul(ne,Fe)|0,W=W+Math.imul(ne,lt)|0,Y=Y+Math.imul(at,qe)|0,u=(u=u+Math.imul(at,ke)|0)+Math.imul(Be,qe)|0,W=W+Math.imul(Be,ke)|0,Y=Y+Math.imul(Ot,vt)|0,u=(u=u+Math.imul(Ot,$t)|0)+Math.imul(At,vt)|0,W=W+Math.imul(At,$t)|0;var zt=($+(Y=Y+Math.imul(ae,Sr)|0)|0)+((8191&(u=(u=u+Math.imul(ae,Ar)|0)+Math.imul(ye,Sr)|0))<<13)|0;$=((W=W+Math.imul(ye,Ar)|0)+(u>>>13)|0)+(zt>>>26)|0,zt&=67108863,Y=Math.imul(Me,pt),u=(u=Math.imul(Me,Zt))+Math.imul(We,pt)|0,W=Math.imul(We,Zt),Y=Y+Math.imul(Ne,wt)|0,u=(u=u+Math.imul(Ne,gt)|0)+Math.imul(X,wt)|0,W=W+Math.imul(X,gt)|0,Y=Y+Math.imul(ot,hr)|0,u=(u=u+Math.imul(ot,Cr)|0)+Math.imul(nt,hr)|0,W=W+Math.imul(nt,Cr)|0,Y=Y+Math.imul(rt,Pt)|0,u=(u=u+Math.imul(rt,He)|0)+Math.imul(st,Pt)|0,W=W+Math.imul(st,He)|0,Y=Y+Math.imul(Ge,Ke)|0,u=(u=u+Math.imul(Ge,kt)|0)+Math.imul(Ft,Ke)|0,W=W+Math.imul(Ft,kt)|0,Y=Y+Math.imul(Te,Fe)|0,u=(u=u+Math.imul(Te,lt)|0)+Math.imul($e,Fe)|0,W=W+Math.imul($e,lt)|0,Y=Y+Math.imul(_e,qe)|0,u=(u=u+Math.imul(_e,ke)|0)+Math.imul(ne,qe)|0,W=W+Math.imul(ne,ke)|0,Y=Y+Math.imul(at,vt)|0,u=(u=u+Math.imul(at,$t)|0)+Math.imul(Be,vt)|0,W=W+Math.imul(Be,$t)|0,Y=Y+Math.imul(Ot,Sr)|0,u=(u=u+Math.imul(Ot,Ar)|0)+Math.imul(At,Sr)|0,W=W+Math.imul(At,Ar)|0;var kr=($+(Y=Y+Math.imul(ae,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(ae,Gt)|0)+Math.imul(ye,Fr)|0))<<13)|0;$=((W=W+Math.imul(ye,Gt)|0)+(u>>>13)|0)+(kr>>>26)|0,kr&=67108863,Y=Math.imul(Me,wt),u=(u=Math.imul(Me,gt))+Math.imul(We,wt)|0,W=Math.imul(We,gt),Y=Y+Math.imul(Ne,hr)|0,u=(u=u+Math.imul(Ne,Cr)|0)+Math.imul(X,hr)|0,W=W+Math.imul(X,Cr)|0,Y=Y+Math.imul(ot,Pt)|0,u=(u=u+Math.imul(ot,He)|0)+Math.imul(nt,Pt)|0,W=W+Math.imul(nt,He)|0,Y=Y+Math.imul(rt,Ke)|0,u=(u=u+Math.imul(rt,kt)|0)+Math.imul(st,Ke)|0,W=W+Math.imul(st,kt)|0,Y=Y+Math.imul(Ge,Fe)|0,u=(u=u+Math.imul(Ge,lt)|0)+Math.imul(Ft,Fe)|0,W=W+Math.imul(Ft,lt)|0,Y=Y+Math.imul(Te,qe)|0,u=(u=u+Math.imul(Te,ke)|0)+Math.imul($e,qe)|0,W=W+Math.imul($e,ke)|0,Y=Y+Math.imul(_e,vt)|0,u=(u=u+Math.imul(_e,$t)|0)+Math.imul(ne,vt)|0,W=W+Math.imul(ne,$t)|0,Y=Y+Math.imul(at,Sr)|0,u=(u=u+Math.imul(at,Ar)|0)+Math.imul(Be,Sr)|0,W=W+Math.imul(Be,Ar)|0;var Br=($+(Y=Y+Math.imul(Ot,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(Ot,Gt)|0)+Math.imul(At,Fr)|0))<<13)|0;$=((W=W+Math.imul(At,Gt)|0)+(u>>>13)|0)+(Br>>>26)|0,Br&=67108863,Y=Math.imul(Me,hr),u=(u=Math.imul(Me,Cr))+Math.imul(We,hr)|0,W=Math.imul(We,Cr),Y=Y+Math.imul(Ne,Pt)|0,u=(u=u+Math.imul(Ne,He)|0)+Math.imul(X,Pt)|0,W=W+Math.imul(X,He)|0,Y=Y+Math.imul(ot,Ke)|0,u=(u=u+Math.imul(ot,kt)|0)+Math.imul(nt,Ke)|0,W=W+Math.imul(nt,kt)|0,Y=Y+Math.imul(rt,Fe)|0,u=(u=u+Math.imul(rt,lt)|0)+Math.imul(st,Fe)|0,W=W+Math.imul(st,lt)|0,Y=Y+Math.imul(Ge,qe)|0,u=(u=u+Math.imul(Ge,ke)|0)+Math.imul(Ft,qe)|0,W=W+Math.imul(Ft,ke)|0,Y=Y+Math.imul(Te,vt)|0,u=(u=u+Math.imul(Te,$t)|0)+Math.imul($e,vt)|0,W=W+Math.imul($e,$t)|0,Y=Y+Math.imul(_e,Sr)|0,u=(u=u+Math.imul(_e,Ar)|0)+Math.imul(ne,Sr)|0,W=W+Math.imul(ne,Ar)|0;var xt=($+(Y=Y+Math.imul(at,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(at,Gt)|0)+Math.imul(Be,Fr)|0))<<13)|0;$=((W=W+Math.imul(Be,Gt)|0)+(u>>>13)|0)+(xt>>>26)|0,xt&=67108863,Y=Math.imul(Me,Pt),u=(u=Math.imul(Me,He))+Math.imul(We,Pt)|0,W=Math.imul(We,He),Y=Y+Math.imul(Ne,Ke)|0,u=(u=u+Math.imul(Ne,kt)|0)+Math.imul(X,Ke)|0,W=W+Math.imul(X,kt)|0,Y=Y+Math.imul(ot,Fe)|0,u=(u=u+Math.imul(ot,lt)|0)+Math.imul(nt,Fe)|0,W=W+Math.imul(nt,lt)|0,Y=Y+Math.imul(rt,qe)|0,u=(u=u+Math.imul(rt,ke)|0)+Math.imul(st,qe)|0,W=W+Math.imul(st,ke)|0,Y=Y+Math.imul(Ge,vt)|0,u=(u=u+Math.imul(Ge,$t)|0)+Math.imul(Ft,vt)|0,W=W+Math.imul(Ft,$t)|0,Y=Y+Math.imul(Te,Sr)|0,u=(u=u+Math.imul(Te,Ar)|0)+Math.imul($e,Sr)|0,W=W+Math.imul($e,Ar)|0;var tr=($+(Y=Y+Math.imul(_e,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(_e,Gt)|0)+Math.imul(ne,Fr)|0))<<13)|0;$=((W=W+Math.imul(ne,Gt)|0)+(u>>>13)|0)+(tr>>>26)|0,tr&=67108863,Y=Math.imul(Me,Ke),u=(u=Math.imul(Me,kt))+Math.imul(We,Ke)|0,W=Math.imul(We,kt),Y=Y+Math.imul(Ne,Fe)|0,u=(u=u+Math.imul(Ne,lt)|0)+Math.imul(X,Fe)|0,W=W+Math.imul(X,lt)|0,Y=Y+Math.imul(ot,qe)|0,u=(u=u+Math.imul(ot,ke)|0)+Math.imul(nt,qe)|0,W=W+Math.imul(nt,ke)|0,Y=Y+Math.imul(rt,vt)|0,u=(u=u+Math.imul(rt,$t)|0)+Math.imul(st,vt)|0,W=W+Math.imul(st,$t)|0,Y=Y+Math.imul(Ge,Sr)|0,u=(u=u+Math.imul(Ge,Ar)|0)+Math.imul(Ft,Sr)|0,W=W+Math.imul(Ft,Ar)|0;var Rr=($+(Y=Y+Math.imul(Te,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(Te,Gt)|0)+Math.imul($e,Fr)|0))<<13)|0;$=((W=W+Math.imul($e,Gt)|0)+(u>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,Y=Math.imul(Me,Fe),u=(u=Math.imul(Me,lt))+Math.imul(We,Fe)|0,W=Math.imul(We,lt),Y=Y+Math.imul(Ne,qe)|0,u=(u=u+Math.imul(Ne,ke)|0)+Math.imul(X,qe)|0,W=W+Math.imul(X,ke)|0,Y=Y+Math.imul(ot,vt)|0,u=(u=u+Math.imul(ot,$t)|0)+Math.imul(nt,vt)|0,W=W+Math.imul(nt,$t)|0,Y=Y+Math.imul(rt,Sr)|0,u=(u=u+Math.imul(rt,Ar)|0)+Math.imul(st,Sr)|0,W=W+Math.imul(st,Ar)|0;var Ur=($+(Y=Y+Math.imul(Ge,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(Ge,Gt)|0)+Math.imul(Ft,Fr)|0))<<13)|0;$=((W=W+Math.imul(Ft,Gt)|0)+(u>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,Y=Math.imul(Me,qe),u=(u=Math.imul(Me,ke))+Math.imul(We,qe)|0,W=Math.imul(We,ke),Y=Y+Math.imul(Ne,vt)|0,u=(u=u+Math.imul(Ne,$t)|0)+Math.imul(X,vt)|0,W=W+Math.imul(X,$t)|0,Y=Y+Math.imul(ot,Sr)|0,u=(u=u+Math.imul(ot,Ar)|0)+Math.imul(nt,Sr)|0,W=W+Math.imul(nt,Ar)|0;var Nr=($+(Y=Y+Math.imul(rt,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(rt,Gt)|0)+Math.imul(st,Fr)|0))<<13)|0;$=((W=W+Math.imul(st,Gt)|0)+(u>>>13)|0)+(Nr>>>26)|0,Nr&=67108863,Y=Math.imul(Me,vt),u=(u=Math.imul(Me,$t))+Math.imul(We,vt)|0,W=Math.imul(We,$t),Y=Y+Math.imul(Ne,Sr)|0,u=(u=u+Math.imul(Ne,Ar)|0)+Math.imul(X,Sr)|0,W=W+Math.imul(X,Ar)|0;var zr=($+(Y=Y+Math.imul(ot,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(ot,Gt)|0)+Math.imul(nt,Fr)|0))<<13)|0;$=((W=W+Math.imul(nt,Gt)|0)+(u>>>13)|0)+(zr>>>26)|0,zr&=67108863,Y=Math.imul(Me,Sr),u=(u=Math.imul(Me,Ar))+Math.imul(We,Sr)|0,W=Math.imul(We,Ar);var hn=($+(Y=Y+Math.imul(Ne,Fr)|0)|0)+((8191&(u=(u=u+Math.imul(Ne,Gt)|0)+Math.imul(X,Fr)|0))<<13)|0;$=((W=W+Math.imul(X,Gt)|0)+(u>>>13)|0)+(hn>>>26)|0,hn&=67108863;var _n=($+(Y=Math.imul(Me,Fr))|0)+((8191&(u=(u=Math.imul(Me,Gt))+Math.imul(We,Fr)|0))<<13)|0;return $=((W=Math.imul(We,Gt))+(u>>>13)|0)+(_n>>>26)|0,_n&=67108863,j[0]=le,j[1]=Ce,j[2]=Ie,j[3]=Pe,j[4]=Oe,j[5]=Se,j[6]=Xe,j[7]=Ct,j[8]=zt,j[9]=kr,j[10]=Br,j[11]=xt,j[12]=tr,j[13]=Rr,j[14]=Ur,j[15]=Nr,j[16]=zr,j[17]=hn,j[18]=_n,0!==$&&(j[19]=$,w.length++),w};function V(B,s,_){return(new D).mulp(B,s,_)}function D(B,s){this.x=B,this.y=s}Math.imul||(H=O),r.prototype.mulTo=function(s,_){var w,E=this.length+s.length;return w=10===this.length&&10===s.length?H(this,s,_):E<63?O(this,s,_):E<1024?function F(B,s,_){_.negative=s.negative^B.negative,_.length=B.length+s.length;for(var w=0,E=0,x=0;x<_.length-1;x++){var j=E;E=0;for(var $=67108863&w,Y=Math.min(x,s.length-1),u=Math.max(0,x-B.length+1);u<=Y;u++){var ye=(0|B.words[x-u])*(0|s.words[u]),Qe=67108863&ye;$=67108863&(Qe=Qe+$|0),E+=(j=(j=j+(ye/67108864|0)|0)+(Qe>>>26)|0)>>>26,j&=67108863}_.words[x]=$,w=j,j=E}return 0!==w?_.words[x]=w:_.length--,_.strip()}(this,s,_):V(this,s,_),w},D.prototype.makeRBT=function(s){for(var _=new Array(s),w=r.prototype._countBits(s)-1,E=0;E<s;E++)_[E]=this.revBin(E,w,s);return _},D.prototype.revBin=function(s,_,w){if(0===s||s===w-1)return s;for(var E=0,x=0;x<_;x++)E|=(1&s)<<_-x-1,s>>=1;return E},D.prototype.permute=function(s,_,w,E,x,j){for(var $=0;$<j;$++)E[$]=_[s[$]],x[$]=w[s[$]]},D.prototype.transform=function(s,_,w,E,x,j){this.permute(j,s,_,w,E,x);for(var $=1;$<x;$<<=1)for(var Y=$<<1,u=Math.cos(2*Math.PI/Y),W=Math.sin(2*Math.PI/Y),fe=0;fe<x;fe+=Y)for(var ae=u,ye=W,Qe=0;Qe<$;Qe++){var Ot=w[fe+Qe],At=E[fe+Qe],Ze=w[fe+Qe+$],at=E[fe+Qe+$],Be=ae*Ze-ye*at;at=ae*at+ye*Ze,w[fe+Qe]=Ot+(Ze=Be),E[fe+Qe]=At+at,w[fe+Qe+$]=Ot-Ze,E[fe+Qe+$]=At-at,Qe!==Y&&(Be=u*ae-W*ye,ye=u*ye+W*ae,ae=Be)}},D.prototype.guessLen13b=function(s,_){var w=1|Math.max(_,s),E=1&w,x=0;for(w=w/2|0;w;w>>>=1)x++;return 1<<x+1+E},D.prototype.conjugate=function(s,_,w){if(!(w<=1))for(var E=0;E<w/2;E++){var x=s[E];s[E]=s[w-E-1],s[w-E-1]=x,x=_[E],_[E]=-_[w-E-1],_[w-E-1]=-x}},D.prototype.normalize13b=function(s,_){for(var w=0,E=0;E<_/2;E++){var x=8192*Math.round(s[2*E+1]/_)+Math.round(s[2*E]/_)+w;s[E]=67108863&x,w=x<67108864?0:x/67108864|0}return s},D.prototype.convert13b=function(s,_,w,E){for(var x=0,j=0;j<_;j++)w[2*j]=8191&(x+=0|s[j]),w[2*j+1]=8191&(x>>>=13),x>>>=13;for(j=2*_;j<E;++j)w[j]=0;l(0===x),l(0==(-8192&x))},D.prototype.stub=function(s){for(var _=new Array(s),w=0;w<s;w++)_[w]=0;return _},D.prototype.mulp=function(s,_,w){var E=2*this.guessLen13b(s.length,_.length),x=this.makeRBT(E),j=this.stub(E),$=new Array(E),Y=new Array(E),u=new Array(E),W=new Array(E),fe=new Array(E),ae=new Array(E),ye=w.words;ye.length=E,this.convert13b(s.words,s.length,$,E),this.convert13b(_.words,_.length,W,E),this.transform($,j,Y,u,E,x),this.transform(W,j,fe,ae,E,x);for(var Qe=0;Qe<E;Qe++){var Ot=Y[Qe]*fe[Qe]-u[Qe]*ae[Qe];u[Qe]=Y[Qe]*ae[Qe]+u[Qe]*fe[Qe],Y[Qe]=Ot}return this.conjugate(Y,u,E),this.transform(Y,u,ye,j,E,x),this.conjugate(ye,j,E),this.normalize13b(ye,E),w.negative=s.negative^_.negative,w.length=s.length+_.length,w.strip()},r.prototype.mul=function(s){var _=new r(null);return _.words=new Array(this.length+s.length),this.mulTo(s,_)},r.prototype.mulf=function(s){var _=new r(null);return _.words=new Array(this.length+s.length),V(this,s,_)},r.prototype.imul=function(s){return this.clone().mulTo(s,this)},r.prototype.imuln=function(s){l("number"==typeof s),l(s<67108864);for(var _=0,w=0;w<this.length;w++){var E=(0|this.words[w])*s,x=(67108863&E)+(67108863&_);_>>=26,_+=E/67108864|0,_+=x>>>26,this.words[w]=67108863&x}return 0!==_&&(this.words[w]=_,this.length++),this},r.prototype.muln=function(s){return this.clone().imuln(s)},r.prototype.sqr=function(){return this.mul(this)},r.prototype.isqr=function(){return this.imul(this.clone())},r.prototype.pow=function(s){var _=function a(B){for(var s=new Array(B.bitLength()),_=0;_<s.length;_++){var E=_%26;s[_]=(B.words[_/26|0]&1<<E)>>>E}return s}(s);if(0===_.length)return new r(1);for(var w=this,E=0;E<_.length&&0===_[E];E++,w=w.sqr());if(++E<_.length)for(var x=w.sqr();E<_.length;E++,x=x.sqr())0!==_[E]&&(w=w.mul(x));return w},r.prototype.iushln=function(s){l("number"==typeof s&&s>=0);var x,_=s%26,w=(s-_)/26,E=67108863>>>26-_<<26-_;if(0!==_){var j=0;for(x=0;x<this.length;x++){var $=this.words[x]&E;this.words[x]=(0|this.words[x])-$<<_|j,j=$>>>26-_}j&&(this.words[x]=j,this.length++)}if(0!==w){for(x=this.length-1;x>=0;x--)this.words[x+w]=this.words[x];for(x=0;x<w;x++)this.words[x]=0;this.length+=w}return this.strip()},r.prototype.ishln=function(s){return l(0===this.negative),this.iushln(s)},r.prototype.iushrn=function(s,_,w){var E;l("number"==typeof s&&s>=0),E=_?(_-_%26)/26:0;var x=s%26,j=Math.min((s-x)/26,this.length),$=67108863^67108863>>>x<<x,Y=w;if(E-=j,E=Math.max(0,E),Y){for(var u=0;u<j;u++)Y.words[u]=this.words[u];Y.length=j}if(0!==j)if(this.length>j)for(this.length-=j,u=0;u<this.length;u++)this.words[u]=this.words[u+j];else this.words[0]=0,this.length=1;var W=0;for(u=this.length-1;u>=0&&(0!==W||u>=E);u--){var fe=0|this.words[u];this.words[u]=W<<26-x|fe>>>x,W=fe&$}return Y&&0!==W&&(Y.words[Y.length++]=W),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},r.prototype.ishrn=function(s,_,w){return l(0===this.negative),this.iushrn(s,_,w)},r.prototype.shln=function(s){return this.clone().ishln(s)},r.prototype.ushln=function(s){return this.clone().iushln(s)},r.prototype.shrn=function(s){return this.clone().ishrn(s)},r.prototype.ushrn=function(s){return this.clone().iushrn(s)},r.prototype.testn=function(s){l("number"==typeof s&&s>=0);var _=s%26,w=(s-_)/26;return!(this.length<=w||!(this.words[w]&1<<_))},r.prototype.imaskn=function(s){l("number"==typeof s&&s>=0);var _=s%26,w=(s-_)/26;return l(0===this.negative,"imaskn works only with positive numbers"),this.length<=w?this:(0!==_&&w++,this.length=Math.min(w,this.length),0!==_&&(this.words[this.length-1]&=67108863^67108863>>>_<<_),this.strip())},r.prototype.maskn=function(s){return this.clone().imaskn(s)},r.prototype.iaddn=function(s){return l("number"==typeof s),l(s<67108864),s<0?this.isubn(-s):0!==this.negative?1===this.length&&(0|this.words[0])<s?(this.words[0]=s-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(s),this.negative=1,this):this._iaddn(s)},r.prototype._iaddn=function(s){this.words[0]+=s;for(var _=0;_<this.length&&this.words[_]>=67108864;_++)this.words[_]-=67108864,_===this.length-1?this.words[_+1]=1:this.words[_+1]++;return this.length=Math.max(this.length,_+1),this},r.prototype.isubn=function(s){if(l("number"==typeof s),l(s<67108864),s<0)return this.iaddn(-s);if(0!==this.negative)return this.negative=0,this.iaddn(s),this.negative=1,this;if(this.words[0]-=s,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var _=0;_<this.length&&this.words[_]<0;_++)this.words[_]+=67108864,this.words[_+1]-=1;return this.strip()},r.prototype.addn=function(s){return this.clone().iaddn(s)},r.prototype.subn=function(s){return this.clone().isubn(s)},r.prototype.iabs=function(){return this.negative=0,this},r.prototype.abs=function(){return this.clone().iabs()},r.prototype._ishlnsubmul=function(s,_,w){var x;this._expand(s.length+w);var j,$=0;for(x=0;x<s.length;x++){j=(0|this.words[x+w])+$;var Y=(0|s.words[x])*_;$=((j-=67108863&Y)>>26)-(Y/67108864|0),this.words[x+w]=67108863&j}for(;x<this.length-w;x++)$=(j=(0|this.words[x+w])+$)>>26,this.words[x+w]=67108863&j;if(0===$)return this.strip();for(l(-1===$),$=0,x=0;x<this.length;x++)$=(j=-(0|this.words[x])+$)>>26,this.words[x]=67108863&j;return this.negative=1,this.strip()},r.prototype._wordDiv=function(s,_){var w,E=this.clone(),x=s,j=0|x.words[x.length-1];0!=(w=26-this._countBits(j))&&(x=x.ushln(w),E.iushln(w),j=0|x.words[x.length-1]);var u,Y=E.length-x.length;if("mod"!==_){(u=new r(null)).length=Y+1,u.words=new Array(u.length);for(var W=0;W<u.length;W++)u.words[W]=0}var fe=E.clone()._ishlnsubmul(x,1,Y);0===fe.negative&&(E=fe,u&&(u.words[Y]=1));for(var ae=Y-1;ae>=0;ae--){var ye=67108864*(0|E.words[x.length+ae])+(0|E.words[x.length+ae-1]);for(ye=Math.min(ye/j|0,67108863),E._ishlnsubmul(x,ye,ae);0!==E.negative;)ye--,E.negative=0,E._ishlnsubmul(x,1,ae),E.isZero()||(E.negative^=1);u&&(u.words[ae]=ye)}return u&&u.strip(),E.strip(),"div"!==_&&0!==w&&E.iushrn(w),{div:u||null,mod:E}},r.prototype.divmod=function(s,_,w){return l(!s.isZero()),this.isZero()?{div:new r(0),mod:new r(0)}:0!==this.negative&&0===s.negative?(j=this.neg().divmod(s,_),"mod"!==_&&(E=j.div.neg()),"div"!==_&&(x=j.mod.neg(),w&&0!==x.negative&&x.iadd(s)),{div:E,mod:x}):0===this.negative&&0!==s.negative?(j=this.divmod(s.neg(),_),"mod"!==_&&(E=j.div.neg()),{div:E,mod:j.mod}):0!=(this.negative&s.negative)?(j=this.neg().divmod(s.neg(),_),"div"!==_&&(x=j.mod.neg(),w&&0!==x.negative&&x.isub(s)),{div:j.div,mod:x}):s.length>this.length||this.cmp(s)<0?{div:new r(0),mod:this}:1===s.length?"div"===_?{div:this.divn(s.words[0]),mod:null}:"mod"===_?{div:null,mod:new r(this.modn(s.words[0]))}:{div:this.divn(s.words[0]),mod:new r(this.modn(s.words[0]))}:this._wordDiv(s,_);var E,x,j},r.prototype.div=function(s){return this.divmod(s,"div",!1).div},r.prototype.mod=function(s){return this.divmod(s,"mod",!1).mod},r.prototype.umod=function(s){return this.divmod(s,"mod",!0).mod},r.prototype.divRound=function(s){var _=this.divmod(s);if(_.mod.isZero())return _.div;var w=0!==_.div.negative?_.mod.isub(s):_.mod,E=s.ushrn(1),x=s.andln(1),j=w.cmp(E);return j<0||1===x&&0===j?_.div:0!==_.div.negative?_.div.isubn(1):_.div.iaddn(1)},r.prototype.modn=function(s){l(s<=67108863);for(var _=(1<<26)%s,w=0,E=this.length-1;E>=0;E--)w=(_*w+(0|this.words[E]))%s;return w},r.prototype.idivn=function(s){l(s<=67108863);for(var _=0,w=this.length-1;w>=0;w--){var E=(0|this.words[w])+67108864*_;this.words[w]=E/s|0,_=E%s}return this.strip()},r.prototype.divn=function(s){return this.clone().idivn(s)},r.prototype.egcd=function(s){l(0===s.negative),l(!s.isZero());var _=this,w=s.clone();_=0!==_.negative?_.umod(s):_.clone();for(var E=new r(1),x=new r(0),j=new r(0),$=new r(1),Y=0;_.isEven()&&w.isEven();)_.iushrn(1),w.iushrn(1),++Y;for(var u=w.clone(),W=_.clone();!_.isZero();){for(var fe=0,ae=1;0==(_.words[0]&ae)&&fe<26;++fe,ae<<=1);if(fe>0)for(_.iushrn(fe);fe-- >0;)(E.isOdd()||x.isOdd())&&(E.iadd(u),x.isub(W)),E.iushrn(1),x.iushrn(1);for(var ye=0,Qe=1;0==(w.words[0]&Qe)&&ye<26;++ye,Qe<<=1);if(ye>0)for(w.iushrn(ye);ye-- >0;)(j.isOdd()||$.isOdd())&&(j.iadd(u),$.isub(W)),j.iushrn(1),$.iushrn(1);_.cmp(w)>=0?(_.isub(w),E.isub(j),x.isub($)):(w.isub(_),j.isub(E),$.isub(x))}return{a:j,b:$,gcd:w.iushln(Y)}},r.prototype._invmp=function(s){l(0===s.negative),l(!s.isZero());var fe,_=this,w=s.clone();_=0!==_.negative?_.umod(s):_.clone();for(var E=new r(1),x=new r(0),j=w.clone();_.cmpn(1)>0&&w.cmpn(1)>0;){for(var $=0,Y=1;0==(_.words[0]&Y)&&$<26;++$,Y<<=1);if($>0)for(_.iushrn($);$-- >0;)E.isOdd()&&E.iadd(j),E.iushrn(1);for(var u=0,W=1;0==(w.words[0]&W)&&u<26;++u,W<<=1);if(u>0)for(w.iushrn(u);u-- >0;)x.isOdd()&&x.iadd(j),x.iushrn(1);_.cmp(w)>=0?(_.isub(w),E.isub(x)):(w.isub(_),x.isub(E))}return(fe=0===_.cmpn(1)?E:x).cmpn(0)<0&&fe.iadd(s),fe},r.prototype.gcd=function(s){if(this.isZero())return s.abs();if(s.isZero())return this.abs();var _=this.clone(),w=s.clone();_.negative=0,w.negative=0;for(var E=0;_.isEven()&&w.isEven();E++)_.iushrn(1),w.iushrn(1);for(;;){for(;_.isEven();)_.iushrn(1);for(;w.isEven();)w.iushrn(1);var x=_.cmp(w);if(x<0){var j=_;_=w,w=j}else if(0===x||0===w.cmpn(1))break;_.isub(w)}return w.iushln(E)},r.prototype.invm=function(s){return this.egcd(s).a.umod(s)},r.prototype.isEven=function(){return 0==(1&this.words[0])},r.prototype.isOdd=function(){return 1==(1&this.words[0])},r.prototype.andln=function(s){return this.words[0]&s},r.prototype.bincn=function(s){l("number"==typeof s);var _=s%26,w=(s-_)/26,E=1<<_;if(this.length<=w)return this._expand(w+1),this.words[w]|=E,this;for(var x=E,j=w;0!==x&&j<this.length;j++){var $=0|this.words[j];x=($+=x)>>>26,this.words[j]=$&=67108863}return 0!==x&&(this.words[j]=x,this.length++),this},r.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},r.prototype.cmpn=function(s){var w,_=s<0;if(0!==this.negative&&!_)return-1;if(0===this.negative&&_)return 1;if(this.strip(),this.length>1)w=1;else{_&&(s=-s),l(s<=67108863,"Number is too big");var E=0|this.words[0];w=E===s?0:E<s?-1:1}return 0!==this.negative?0|-w:w},r.prototype.cmp=function(s){if(0!==this.negative&&0===s.negative)return-1;if(0===this.negative&&0!==s.negative)return 1;var _=this.ucmp(s);return 0!==this.negative?0|-_:_},r.prototype.ucmp=function(s){if(this.length>s.length)return 1;if(this.length<s.length)return-1;for(var _=0,w=this.length-1;w>=0;w--){var E=0|this.words[w],x=0|s.words[w];if(E!==x){E<x?_=-1:E>x&&(_=1);break}}return _},r.prototype.gtn=function(s){return 1===this.cmpn(s)},r.prototype.gt=function(s){return 1===this.cmp(s)},r.prototype.gten=function(s){return this.cmpn(s)>=0},r.prototype.gte=function(s){return this.cmp(s)>=0},r.prototype.ltn=function(s){return-1===this.cmpn(s)},r.prototype.lt=function(s){return-1===this.cmp(s)},r.prototype.lten=function(s){return this.cmpn(s)<=0},r.prototype.lte=function(s){return this.cmp(s)<=0},r.prototype.eqn=function(s){return 0===this.cmpn(s)},r.prototype.eq=function(s){return 0===this.cmp(s)},r.red=function(s){return new re(s)},r.prototype.toRed=function(s){return l(!this.red,"Already a number in reduction context"),l(0===this.negative,"red works only with positives"),s.convertTo(this)._forceRed(s)},r.prototype.fromRed=function(){return l(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},r.prototype._forceRed=function(s){return this.red=s,this},r.prototype.forceRed=function(s){return l(!this.red,"Already a number in reduction context"),this._forceRed(s)},r.prototype.redAdd=function(s){return l(this.red,"redAdd works only with red numbers"),this.red.add(this,s)},r.prototype.redIAdd=function(s){return l(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,s)},r.prototype.redSub=function(s){return l(this.red,"redSub works only with red numbers"),this.red.sub(this,s)},r.prototype.redISub=function(s){return l(this.red,"redISub works only with red numbers"),this.red.isub(this,s)},r.prototype.redShl=function(s){return l(this.red,"redShl works only with red numbers"),this.red.shl(this,s)},r.prototype.redMul=function(s){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.mul(this,s)},r.prototype.redIMul=function(s){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.imul(this,s)},r.prototype.redSqr=function(){return l(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},r.prototype.redISqr=function(){return l(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},r.prototype.redSqrt=function(){return l(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},r.prototype.redInvm=function(){return l(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},r.prototype.redNeg=function(){return l(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},r.prototype.redPow=function(s){return l(this.red&&!s.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,s)};var U={k256:null,p224:null,p192:null,p25519:null};function q(B,s){this.name=B,this.p=new r(s,16),this.n=this.p.bitLength(),this.k=new r(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function J(){q.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function G(){q.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){q.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function K(){q.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function re(B){if("string"==typeof B){var s=r._prime(B);this.m=s.p,this.prime=s}else l(B.gtn(1),"modulus must be greater than 1"),this.m=B,this.prime=null}function oe(B){re.call(this,B),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new r(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}q.prototype._tmp=function(){var s=new r(null);return s.words=new Array(Math.ceil(this.n/13)),s},q.prototype.ireduce=function(s){var w,_=s;do{this.split(_,this.tmp),w=(_=(_=this.imulK(_)).iadd(this.tmp)).bitLength()}while(w>this.n);var E=w<this.n?-1:_.ucmp(this.p);return 0===E?(_.words[0]=0,_.length=1):E>0?_.isub(this.p):void 0!==_.strip?_.strip():_._strip(),_},q.prototype.split=function(s,_){s.iushrn(this.n,0,_)},q.prototype.imulK=function(s){return s.imul(this.k)},h(J,q),J.prototype.split=function(s,_){for(var w=4194303,E=Math.min(s.length,9),x=0;x<E;x++)_.words[x]=s.words[x];if(_.length=E,s.length<=9)return s.words[0]=0,void(s.length=1);var j=s.words[9];for(_.words[_.length++]=j&w,x=10;x<s.length;x++){var $=0|s.words[x];s.words[x-10]=($&w)<<4|j>>>22,j=$}s.words[x-10]=j>>>=22,s.length-=0===j&&s.length>10?10:9},J.prototype.imulK=function(s){s.words[s.length]=0,s.words[s.length+1]=0,s.length+=2;for(var _=0,w=0;w<s.length;w++){var E=0|s.words[w];s.words[w]=67108863&(_+=977*E),_=64*E+(_/67108864|0)}return 0===s.words[s.length-1]&&(s.length--,0===s.words[s.length-1]&&s.length--),s},h(G,q),h(ie,q),h(K,q),K.prototype.imulK=function(s){for(var _=0,w=0;w<s.length;w++){var E=19*(0|s.words[w])+_,x=67108863&E;E>>>=26,s.words[w]=x,_=E}return 0!==_&&(s.words[s.length++]=_),s},r._prime=function(s){if(U[s])return U[s];var _;if("k256"===s)_=new J;else if("p224"===s)_=new G;else if("p192"===s)_=new ie;else{if("p25519"!==s)throw new Error("Unknown prime "+s);_=new K}return U[s]=_,_},re.prototype._verify1=function(s){l(0===s.negative,"red works only with positives"),l(s.red,"red works only with red numbers")},re.prototype._verify2=function(s,_){l(0==(s.negative|_.negative),"red works only with positives"),l(s.red&&s.red===_.red,"red works only with red numbers")},re.prototype.imod=function(s){return this.prime?this.prime.ireduce(s)._forceRed(this):s.umod(this.m)._forceRed(this)},re.prototype.neg=function(s){return s.isZero()?s.clone():this.m.sub(s)._forceRed(this)},re.prototype.add=function(s,_){this._verify2(s,_);var w=s.add(_);return w.cmp(this.m)>=0&&w.isub(this.m),w._forceRed(this)},re.prototype.iadd=function(s,_){this._verify2(s,_);var w=s.iadd(_);return w.cmp(this.m)>=0&&w.isub(this.m),w},re.prototype.sub=function(s,_){this._verify2(s,_);var w=s.sub(_);return w.cmpn(0)<0&&w.iadd(this.m),w._forceRed(this)},re.prototype.isub=function(s,_){this._verify2(s,_);var w=s.isub(_);return w.cmpn(0)<0&&w.iadd(this.m),w},re.prototype.shl=function(s,_){return this._verify1(s),this.imod(s.ushln(_))},re.prototype.imul=function(s,_){return this._verify2(s,_),this.imod(s.imul(_))},re.prototype.mul=function(s,_){return this._verify2(s,_),this.imod(s.mul(_))},re.prototype.isqr=function(s){return this.imul(s,s.clone())},re.prototype.sqr=function(s){return this.mul(s,s)},re.prototype.sqrt=function(s){if(s.isZero())return s.clone();var _=this.m.andln(3);if(l(_%2==1),3===_){var w=this.m.add(new r(1)).iushrn(2);return this.pow(s,w)}for(var E=this.m.subn(1),x=0;!E.isZero()&&0===E.andln(1);)x++,E.iushrn(1);l(!E.isZero());var j=new r(1).toRed(this),$=j.redNeg(),Y=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new r(2*u*u).toRed(this);0!==this.pow(u,Y).cmp($);)u.redIAdd($);for(var W=this.pow(u,E),fe=this.pow(s,E.addn(1).iushrn(1)),ae=this.pow(s,E),ye=x;0!==ae.cmp(j);){for(var Qe=ae,Ot=0;0!==Qe.cmp(j);Ot++)Qe=Qe.redSqr();l(Ot<ye);var At=this.pow(W,new r(1).iushln(ye-Ot-1));fe=fe.redMul(At),W=At.redSqr(),ae=ae.redMul(W),ye=Ot}return fe},re.prototype.invm=function(s){var _=s._invmp(this.m);return 0!==_.negative?(_.negative=0,this.imod(_).redNeg()):this.imod(_)},re.prototype.pow=function(s,_){if(_.isZero())return new r(1).toRed(this);if(0===_.cmpn(1))return s.clone();var E=new Array(16);E[0]=new r(1).toRed(this),E[1]=s;for(var x=2;x<E.length;x++)E[x]=this.mul(E[x-1],s);var j=E[0],$=0,Y=0,u=_.bitLength()%26;for(0===u&&(u=26),x=_.length-1;x>=0;x--){for(var W=_.words[x],fe=u-1;fe>=0;fe--){var ae=W>>fe&1;j!==E[0]&&(j=this.sqr(j)),0!==ae||0!==$?($<<=1,$|=ae,(4==++Y||0===x&&0===fe)&&(j=this.mul(j,E[$]),Y=0,$=0)):Y=0}u=26}return j},re.prototype.convertTo=function(s){var _=s.umod(this.m);return _===s?_.clone():_},re.prototype.convertFrom=function(s){var _=s.clone();return _.red=null,_},r.mont=function(s){return new oe(s)},h(oe,re),oe.prototype.convertTo=function(s){return this.imod(s.ushln(this.shift))},oe.prototype.convertFrom=function(s){var _=this.imod(s.mul(this.rinv));return _.red=null,_},oe.prototype.imul=function(s,_){if(s.isZero()||_.isZero())return s.words[0]=0,s.length=1,s;var w=s.imul(_),E=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=w.isub(E).iushrn(this.shift),j=x;return x.cmp(this.m)>=0?j=x.isub(this.m):x.cmpn(0)<0&&(j=x.iadd(this.m)),j._forceRed(this)},oe.prototype.mul=function(s,_){if(s.isZero()||_.isZero())return new r(0)._forceRed(this);var w=s.mul(_),E=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=w.isub(E).iushrn(this.shift),j=x;return x.cmp(this.m)>=0?j=x.isub(this.m):x.cmpn(0)<0&&(j=x.iadd(this.m)),j._forceRed(this)},oe.prototype.invm=function(s){return this.imod(s._invmp(this.m).mul(this.r2))._forceRed(this)}}(M=n.nmd(M),this)},36705:(M,b,n)=>{var t=n(22772),e=n(86945),l=n(79401),h=n(82057),r=n(8466),d=n(96386),y=n(38651),g=n(73502).Buffer;M.exports=function(a,O,H){var F;F=a.padding?a.padding:H?1:4;var U,V=t(a),D=V.modulus.byteLength();if(O.length>D||new h(O).cmp(V.modulus)>=0)throw new Error("decryption error");U=H?y(new h(O),V):r(O,V);var q=g.alloc(D-U.length);if(U=g.concat([q,U],D),4===F)return function p(N,a){var O=N.modulus.byteLength(),H=d("sha1").update(g.alloc(0)).digest(),F=H.length;if(0!==a[0])throw new Error("decryption error");var V=a.slice(1,F+1),D=a.slice(F+1),U=l(V,e(D,F)),q=l(D,e(U,O-F-1));if(function C(N,a){N=g.from(N),a=g.from(a);var O=0,H=N.length;N.length!==a.length&&(O++,H=Math.min(N.length,a.length));for(var F=-1;++F<H;)O+=N[F]^a[F];return O}(H,q.slice(0,F)))throw new Error("decryption error");for(var J=F;0===q[J];)J++;if(1!==q[J++])throw new Error("decryption error");return q.slice(J)}(V,U);if(1===F)return function f(N,a,O){for(var H=a.slice(0,2),F=2,V=0;0!==a[F++];)if(F>=a.length){V++;break}var D=a.slice(2,F-1);if(("0002"!==H.toString("hex")&&!O||"0001"!==H.toString("hex")&&O)&&V++,D.length<8&&V++,V)throw new Error("decryption error");return a.slice(F)}(0,U,H);if(3===F)return U;throw new Error("unknown padding")}},16562:(M,b,n)=>{var t=n(22772),e=n(53753),l=n(96386),h=n(86945),r=n(79401),d=n(82057),y=n(38651),g=n(8466),p=n(73502).Buffer;M.exports=function(O,H,F){var V;V=O.padding?O.padding:F?1:4;var U,D=t(O);if(4===V)U=function f(a,O){var H=a.modulus.byteLength(),F=O.length,V=l("sha1").update(p.alloc(0)).digest(),D=V.length,U=2*D;if(F>H-U-2)throw new Error("message too long");var q=p.alloc(H-F-U-2),J=H-D-1,G=e(D),ie=r(p.concat([V,q,p.alloc(1,1),O],J),h(G,J)),K=r(G,h(ie,D));return new d(p.concat([p.alloc(1),K,ie],H))}(D,H);else if(1===V)U=function C(a,O,H){var D,F=O.length,V=a.modulus.byteLength();if(F>V-11)throw new Error("message too long");return D=H?p.alloc(V-F-3,255):function N(a){for(var D,O=p.allocUnsafe(a),H=0,F=e(2*a),V=0;H<a;)V===F.length&&(F=e(2*a),V=0),(D=F[V++])&&(O[H++]=D);return O}(V-F-3),new d(p.concat([p.from([0,H?1:2]),D,p.alloc(1),O],V))}(D,H,F);else{if(3!==V)throw new Error("unknown padding");if((U=new d(H)).cmp(D.modulus)>=0)throw new Error("data too long for modulus")}return F?g(U,D):y(U,D)}},38651:(M,b,n)=>{var t=n(82057),e=n(73502).Buffer;M.exports=function l(h,r){return e.from(h.toRed(t.mont(r.modulus)).redPow(new t(r.publicExponent)).fromRed().toArray())}},79401:M=>{M.exports=function(n,t){for(var e=n.length,l=-1;++l<e;)n[l]^=t[l];return n}},12858:(M,b)=>{"use strict";var n=Object.prototype.hasOwnProperty;function e(d){try{return decodeURIComponent(d.replace(/\+/g," "))}catch{return null}}function l(d){try{return encodeURIComponent(d)}catch{return null}}b.stringify=function r(d,y){y=y||"";var p,f,g=[];for(f in"string"!=typeof y&&(y="?"),d)if(n.call(d,f)){if(!(p=d[f])&&(null==p||isNaN(p))&&(p=""),f=l(f),p=l(p),null===f||null===p)continue;g.push(f+"="+p)}return g.length?y+g.join("&"):""},b.parse=function h(d){for(var p,y=/([^=?#&]+)=?([^&]*)/g,g={};p=y.exec(d);){var f=e(p[1]),C=e(p[2]);null===f||null===C||f in g||(g[f]=C)}return g}},53753:(M,b,n)=>{"use strict";var t=65536,h=n(73502).Buffer,r=global.crypto||global.msCrypto;M.exports=r&&r.getRandomValues?function d(y,g){if(y>4294967295)throw new RangeError("requested too many random bytes");var p=h.allocUnsafe(y);if(y>0)if(y>t)for(var f=0;f<y;f+=t)r.getRandomValues(p.slice(f,f+t));else r.getRandomValues(p);return"function"==typeof g?process.nextTick(function(){g(null,p)}):p}:function l(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}},14275:(M,b,n)=>{"use strict";function t(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var e=n(73502),l=n(53753),h=e.Buffer,r=e.kMaxLength,d=global.crypto||global.msCrypto,y=Math.pow(2,32)-1;function g(a,O){if("number"!=typeof a||a!=a)throw new TypeError("offset must be a number");if(a>y||a<0)throw new TypeError("offset must be a uint32");if(a>r||a>O)throw new RangeError("offset out of range")}function p(a,O,H){if("number"!=typeof a||a!=a)throw new TypeError("size must be a number");if(a>y||a<0)throw new TypeError("size must be a uint32");if(a+O>H||a>r)throw new RangeError("buffer too small")}function C(a,O,H,F){if(process.browser){var D=new Uint8Array(a.buffer,O,H);return d.getRandomValues(D),F?void process.nextTick(function(){F(null,a)}):a}if(!F)return l(H).copy(a,O),a;l(H,function(q,J){if(q)return F(q);J.copy(a,O),F(null,a)})}d&&d.getRandomValues||!process.browser?(b.randomFill=function f(a,O,H,F){if(!(h.isBuffer(a)||a instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof O)F=O,O=0,H=a.length;else if("function"==typeof H)F=H,H=a.length-O;else if("function"!=typeof F)throw new TypeError('"cb" argument must be a function');return g(O,a.length),p(H,O,a.length),C(a,O,H,F)},b.randomFillSync=function N(a,O,H){if(typeof O>"u"&&(O=0),!(h.isBuffer(a)||a instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return g(O,a.length),void 0===H&&(H=a.length-O),p(H,O,a.length),C(a,O,H)}):(b.randomFill=t,b.randomFillSync=t)},70891:M=>{"use strict";var n={};function t(d,y,g){g||(g=Error);var f=function(C){function N(a,O,H){return C.call(this,function p(C,N,a){return"string"==typeof y?y:y(C,N,a)}(a,O,H))||this}return function b(d,y){d.prototype=Object.create(y.prototype),d.prototype.constructor=d,d.__proto__=y}(N,C),N}(g);f.prototype.name=g.name,f.prototype.code=d,n[d]=f}function e(d,y){if(Array.isArray(d)){var g=d.length;return d=d.map(function(p){return String(p)}),g>2?"one of ".concat(y," ").concat(d.slice(0,g-1).join(", "),", or ")+d[g-1]:2===g?"one of ".concat(y," ").concat(d[0]," or ").concat(d[1]):"of ".concat(y," ").concat(d[0])}return"of ".concat(y," ").concat(String(d))}t("ERR_INVALID_OPT_VALUE",function(d,y){return'The value "'+y+'" is invalid for option "'+d+'"'},TypeError),t("ERR_INVALID_ARG_TYPE",function(d,y,g){var p,f;if("string"==typeof y&&function l(d,y,g){return d.substr(!g||g<0?0:+g,y.length)===y}(y,"not ")?(p="must not be",y=y.replace(/^not /,"")):p="must be",function h(d,y,g){return(void 0===g||g>d.length)&&(g=d.length),d.substring(g-y.length,g)===y}(d," argument"))f="The ".concat(d," ").concat(p," ").concat(e(y,"type"));else{var C=function r(d,y,g){return"number"!=typeof g&&(g=0),!(g+y.length>d.length)&&-1!==d.indexOf(y,g)}(d,".")?"property":"argument";f='The "'.concat(d,'" ').concat(C," ").concat(p," ").concat(e(y,"type"))}return f+". Received type ".concat(typeof g)},TypeError),t("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),t("ERR_METHOD_NOT_IMPLEMENTED",function(d){return"The "+d+" method is not implemented"}),t("ERR_STREAM_PREMATURE_CLOSE","Premature close"),t("ERR_STREAM_DESTROYED",function(d){return"Cannot call "+d+" after a stream was destroyed"}),t("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),t("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),t("ERR_STREAM_WRITE_AFTER_END","write after end"),t("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),t("ERR_UNKNOWN_ENCODING",function(d){return"Unknown encoding: "+d},TypeError),t("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),M.exports.q=n},41339:(M,b,n)=>{"use strict";var t=Object.keys||function(f){var C=[];for(var N in f)C.push(N);return C};M.exports=y;var e=n(3154),l=n(20520);n(83894)(y,e);for(var h=t(l.prototype),r=0;r<h.length;r++){var d=h[r];y.prototype[d]||(y.prototype[d]=l.prototype[d])}function y(f){if(!(this instanceof y))return new y(f);e.call(this,f),l.call(this,f),this.allowHalfOpen=!0,f&&(!1===f.readable&&(this.readable=!1),!1===f.writable&&(this.writable=!1),!1===f.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",g)))}function g(){this._writableState.ended||process.nextTick(p,this)}function p(f){f.end()}Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(y.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(y.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(y.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(C){void 0===this._readableState||void 0===this._writableState||(this._readableState.destroyed=C,this._writableState.destroyed=C)}})},56071:(M,b,n)=>{"use strict";M.exports=e;var t=n(6025);function e(l){if(!(this instanceof e))return new e(l);t.call(this,l)}n(83894)(e,t),e.prototype._transform=function(l,h,r){r(null,l)}},3154:(M,b,n)=>{"use strict";var t;M.exports=B,B.ReadableState=oe,n(59069);var f,l=function(be,Te){return be.listeners(Te).length},h=n(4970),r=n(93172).Buffer,d=global.Uint8Array||function(){},p=n(94616);f=p&&p.debuglog?p.debuglog("stream"):function(){};var q,J,G,C=n(25019),N=n(41920),O=n(47102).getHighWaterMark,H=n(70891).q,F=H.ERR_INVALID_ARG_TYPE,V=H.ERR_STREAM_PUSH_AFTER_EOF,D=H.ERR_METHOD_NOT_IMPLEMENTED,U=H.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(83894)(B,h);var ie=N.errorOrDestroy,K=["error","close","destroy","pause","resume"];function oe(ne,be,Te){t=t||n(41339),"boolean"!=typeof Te&&(Te=be instanceof t),this.objectMode=!!(ne=ne||{}).objectMode,Te&&(this.objectMode=this.objectMode||!!ne.readableObjectMode),this.highWaterMark=O(this,ne,"readableHighWaterMark",Te),this.buffer=new C,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==ne.emitClose,this.autoDestroy=!!ne.autoDestroy,this.destroyed=!1,this.defaultEncoding=ne.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,ne.encoding&&(q||(q=n(73054).s),this.decoder=new q(ne.encoding),this.encoding=ne.encoding)}function B(ne){if(t=t||n(41339),!(this instanceof B))return new B(ne);this._readableState=new oe(ne,this,this instanceof t),this.readable=!0,ne&&("function"==typeof ne.read&&(this._read=ne.read),"function"==typeof ne.destroy&&(this._destroy=ne.destroy)),h.call(this)}function s(ne,be,Te,$e,ft){f("readableAddChunk",be);var Ft,Ge=ne._readableState;if(null===be)Ge.reading=!1,function $(ne,be){if(f("onEofChunk"),!be.ended){if(be.decoder){var Te=be.decoder.end();Te&&Te.length&&(be.buffer.push(Te),be.length+=be.objectMode?1:Te.length)}be.ended=!0,be.sync?Y(ne):(be.needReadable=!1,be.emittedReadable||(be.emittedReadable=!0,u(ne)))}}(ne,Ge);else if(ft||(Ft=function w(ne,be){var Te;return!function g(ne){return r.isBuffer(ne)||ne instanceof d}(be)&&"string"!=typeof be&&void 0!==be&&!ne.objectMode&&(Te=new F("chunk",["string","Buffer","Uint8Array"],be)),Te}(Ge,be)),Ft)ie(ne,Ft);else if(Ge.objectMode||be&&be.length>0)if("string"!=typeof be&&!Ge.objectMode&&Object.getPrototypeOf(be)!==r.prototype&&(be=function y(ne){return r.from(ne)}(be)),$e)Ge.endEmitted?ie(ne,new U):_(ne,Ge,be,!0);else if(Ge.ended)ie(ne,new V);else{if(Ge.destroyed)return!1;Ge.reading=!1,Ge.decoder&&!Te?(be=Ge.decoder.write(be),Ge.objectMode||0!==be.length?_(ne,Ge,be,!1):W(ne,Ge)):_(ne,Ge,be,!1)}else $e||(Ge.reading=!1,W(ne,Ge));return!Ge.ended&&(Ge.length<Ge.highWaterMark||0===Ge.length)}function _(ne,be,Te,$e){be.flowing&&0===be.length&&!be.sync?(be.awaitDrain=0,ne.emit("data",Te)):(be.length+=be.objectMode?1:Te.length,$e?be.buffer.unshift(Te):be.buffer.push(Te),be.needReadable&&Y(ne)),W(ne,be)}Object.defineProperty(B.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(be){!this._readableState||(this._readableState.destroyed=be)}}),B.prototype.destroy=N.destroy,B.prototype._undestroy=N.undestroy,B.prototype._destroy=function(ne,be){be(ne)},B.prototype.push=function(ne,be){var $e,Te=this._readableState;return Te.objectMode?$e=!0:"string"==typeof ne&&((be=be||Te.defaultEncoding)!==Te.encoding&&(ne=r.from(ne,be),be=""),$e=!0),s(this,ne,be,!1,$e)},B.prototype.unshift=function(ne){return s(this,ne,null,!0,!1)},B.prototype.isPaused=function(){return!1===this._readableState.flowing},B.prototype.setEncoding=function(ne){q||(q=n(73054).s);var be=new q(ne);this._readableState.decoder=be,this._readableState.encoding=this._readableState.decoder.encoding;for(var Te=this._readableState.buffer.head,$e="";null!==Te;)$e+=be.write(Te.data),Te=Te.next;return this._readableState.buffer.clear(),""!==$e&&this._readableState.buffer.push($e),this._readableState.length=$e.length,this};var E=1073741824;function j(ne,be){return ne<=0||0===be.length&&be.ended?0:be.objectMode?1:ne!=ne?be.flowing&&be.length?be.buffer.head.data.length:be.length:(ne>be.highWaterMark&&(be.highWaterMark=function x(ne){return ne>=E?ne=E:(ne--,ne|=ne>>>1,ne|=ne>>>2,ne|=ne>>>4,ne|=ne>>>8,ne|=ne>>>16,ne++),ne}(ne)),ne<=be.length?ne:be.ended?be.length:(be.needReadable=!0,0))}function Y(ne){var be=ne._readableState;f("emitReadable",be.needReadable,be.emittedReadable),be.needReadable=!1,be.emittedReadable||(f("emitReadable",be.flowing),be.emittedReadable=!0,process.nextTick(u,ne))}function u(ne){var be=ne._readableState;f("emitReadable_",be.destroyed,be.length,be.ended),!be.destroyed&&(be.length||be.ended)&&(ne.emit("readable"),be.emittedReadable=!1),be.needReadable=!be.flowing&&!be.ended&&be.length<=be.highWaterMark,Ze(ne)}function W(ne,be){be.readingMore||(be.readingMore=!0,process.nextTick(fe,ne,be))}function fe(ne,be){for(;!be.reading&&!be.ended&&(be.length<be.highWaterMark||be.flowing&&0===be.length);){var Te=be.length;if(f("maybeReadMore read 0"),ne.read(0),Te===be.length)break}be.readingMore=!1}function ye(ne){var be=ne._readableState;be.readableListening=ne.listenerCount("readable")>0,be.resumeScheduled&&!be.paused?be.flowing=!0:ne.listenerCount("data")>0&&ne.resume()}function Qe(ne){f("readable nexttick read 0"),ne.read(0)}function At(ne,be){f("resume",be.reading),be.reading||ne.read(0),be.resumeScheduled=!1,ne.emit("resume"),Ze(ne),be.flowing&&!be.reading&&ne.read(0)}function Ze(ne){var be=ne._readableState;for(f("flow",be.flowing);be.flowing&&null!==ne.read(););}function at(ne,be){return 0===be.length?null:(be.objectMode?Te=be.buffer.shift():!ne||ne>=be.length?(Te=be.decoder?be.buffer.join(""):1===be.buffer.length?be.buffer.first():be.buffer.concat(be.length),be.buffer.clear()):Te=be.buffer.consume(ne,be.decoder),Te);var Te}function Be(ne){var be=ne._readableState;f("endReadable",be.endEmitted),be.endEmitted||(be.ended=!0,process.nextTick(Lt,be,ne))}function Lt(ne,be){if(f("endReadableNT",ne.endEmitted,ne.length),!ne.endEmitted&&0===ne.length&&(ne.endEmitted=!0,be.readable=!1,be.emit("end"),ne.autoDestroy)){var Te=be._writableState;(!Te||Te.autoDestroy&&Te.finished)&&be.destroy()}}function _e(ne,be){for(var Te=0,$e=ne.length;Te<$e;Te++)if(ne[Te]===be)return Te;return-1}B.prototype.read=function(ne){f("read",ne),ne=parseInt(ne,10);var be=this._readableState,Te=ne;if(0!==ne&&(be.emittedReadable=!1),0===ne&&be.needReadable&&((0!==be.highWaterMark?be.length>=be.highWaterMark:be.length>0)||be.ended))return f("read: emitReadable",be.length,be.ended),0===be.length&&be.ended?Be(this):Y(this),null;if(0===(ne=j(ne,be))&&be.ended)return 0===be.length&&Be(this),null;var ft,$e=be.needReadable;return f("need readable",$e),(0===be.length||be.length-ne<be.highWaterMark)&&f("length less than watermark",$e=!0),be.ended||be.reading?f("reading or ended",$e=!1):$e&&(f("do read"),be.reading=!0,be.sync=!0,0===be.length&&(be.needReadable=!0),this._read(be.highWaterMark),be.sync=!1,be.reading||(ne=j(Te,be))),null===(ft=ne>0?at(ne,be):null)?(be.needReadable=be.length<=be.highWaterMark,ne=0):(be.length-=ne,be.awaitDrain=0),0===be.length&&(be.ended||(be.needReadable=!0),Te!==ne&&be.ended&&Be(this)),null!==ft&&this.emit("data",ft),ft},B.prototype._read=function(ne){ie(this,new D("_read()"))},B.prototype.pipe=function(ne,be){var Te=this,$e=this._readableState;switch($e.pipesCount){case 0:$e.pipes=ne;break;case 1:$e.pipes=[$e.pipes,ne];break;default:$e.pipes.push(ne)}$e.pipesCount+=1,f("pipe count=%d opts=%j",$e.pipesCount,be);var Ge=be&&!1===be.end||ne===process.stdout||ne===process.stderr?X:br;function br(){f("onend"),ne.end()}$e.endEmitted?process.nextTick(Ge):Te.once("end",Ge),ne.on("unpipe",function Ft(ge,Me){f("onunpipe"),ge===Te&&Me&&!1===Me.hasUnpiped&&(Me.hasUnpiped=!0,function Dt(){f("cleanup"),ne.removeListener("close",Yt),ne.removeListener("finish",Ne),ne.removeListener("drain",rt),ne.removeListener("error",nt),ne.removeListener("unpipe",Ft),Te.removeListener("end",br),Te.removeListener("end",X),Te.removeListener("data",ot),st=!0,$e.awaitDrain&&(!ne._writableState||ne._writableState.needDrain)&&rt()}())});var rt=function ae(ne){return function(){var Te=ne._readableState;f("pipeOnDrain",Te.awaitDrain),Te.awaitDrain&&Te.awaitDrain--,0===Te.awaitDrain&&l(ne,"data")&&(Te.flowing=!0,Ze(ne))}}(Te);ne.on("drain",rt);var st=!1;function ot(ge){f("ondata");var Me=ne.write(ge);f("dest.write",Me),!1===Me&&((1===$e.pipesCount&&$e.pipes===ne||$e.pipesCount>1&&-1!==_e($e.pipes,ne))&&!st&&(f("false write response, pause",$e.awaitDrain),$e.awaitDrain++),Te.pause())}function nt(ge){f("onerror",ge),X(),ne.removeListener("error",nt),0===l(ne,"error")&&ie(ne,ge)}function Yt(){ne.removeListener("finish",Ne),X()}function Ne(){f("onfinish"),ne.removeListener("close",Yt),X()}function X(){f("unpipe"),Te.unpipe(ne)}return Te.on("data",ot),function re(ne,be,Te){if("function"==typeof ne.prependListener)return ne.prependListener(be,Te);ne._events&&ne._events[be]?Array.isArray(ne._events[be])?ne._events[be].unshift(Te):ne._events[be]=[Te,ne._events[be]]:ne.on(be,Te)}(ne,"error",nt),ne.once("close",Yt),ne.once("finish",Ne),ne.emit("pipe",Te),$e.flowing||(f("pipe resume"),Te.resume()),ne},B.prototype.unpipe=function(ne){var be=this._readableState,Te={hasUnpiped:!1};if(0===be.pipesCount)return this;if(1===be.pipesCount)return ne&&ne!==be.pipes||(ne||(ne=be.pipes),be.pipes=null,be.pipesCount=0,be.flowing=!1,ne&&ne.emit("unpipe",this,Te)),this;if(!ne){var $e=be.pipes,ft=be.pipesCount;be.pipes=null,be.pipesCount=0,be.flowing=!1;for(var Ge=0;Ge<ft;Ge++)$e[Ge].emit("unpipe",this,{hasUnpiped:!1});return this}var Ft=_e(be.pipes,ne);return-1===Ft||(be.pipes.splice(Ft,1),be.pipesCount-=1,1===be.pipesCount&&(be.pipes=be.pipes[0]),ne.emit("unpipe",this,Te)),this},B.prototype.addListener=B.prototype.on=function(ne,be){var Te=h.prototype.on.call(this,ne,be),$e=this._readableState;return"data"===ne?($e.readableListening=this.listenerCount("readable")>0,!1!==$e.flowing&&this.resume()):"readable"===ne&&!$e.endEmitted&&!$e.readableListening&&($e.readableListening=$e.needReadable=!0,$e.flowing=!1,$e.emittedReadable=!1,f("on readable",$e.length,$e.reading),$e.length?Y(this):$e.reading||process.nextTick(Qe,this)),Te},B.prototype.removeListener=function(ne,be){var Te=h.prototype.removeListener.call(this,ne,be);return"readable"===ne&&process.nextTick(ye,this),Te},B.prototype.removeAllListeners=function(ne){var be=h.prototype.removeAllListeners.apply(this,arguments);return("readable"===ne||void 0===ne)&&process.nextTick(ye,this),be},B.prototype.resume=function(){var ne=this._readableState;return ne.flowing||(f("resume"),ne.flowing=!ne.readableListening,function Ot(ne,be){be.resumeScheduled||(be.resumeScheduled=!0,process.nextTick(At,ne,be))}(this,ne)),ne.paused=!1,this},B.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},B.prototype.wrap=function(ne){var be=this,Te=this._readableState,$e=!1;for(var ft in ne.on("end",function(){if(f("wrapped end"),Te.decoder&&!Te.ended){var Ft=Te.decoder.end();Ft&&Ft.length&&be.push(Ft)}be.push(null)}),ne.on("data",function(Ft){f("wrapped data"),Te.decoder&&(Ft=Te.decoder.write(Ft)),Te.objectMode&&null==Ft||!(Te.objectMode||Ft&&Ft.length)||be.push(Ft)||($e=!0,ne.pause())}),ne)void 0===this[ft]&&"function"==typeof ne[ft]&&(this[ft]=function(br){return function(){return ne[br].apply(ne,arguments)}}(ft));for(var Ge=0;Ge<K.length;Ge++)ne.on(K[Ge],this.emit.bind(this,K[Ge]));return this._read=function(Ft){f("wrapped _read",Ft),$e&&($e=!1,ne.resume())},this},"function"==typeof Symbol&&(B.prototype[Symbol.asyncIterator]=function(){return void 0===J&&(J=n(13872)),J(this)}),Object.defineProperty(B.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(B.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(B.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(be){this._readableState&&(this._readableState.flowing=be)}}),B._fromList=at,Object.defineProperty(B.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(B.from=function(ne,be){return void 0===G&&(G=n(47412)),G(B,ne,be)})},6025:(M,b,n)=>{"use strict";M.exports=g;var t=n(70891).q,e=t.ERR_METHOD_NOT_IMPLEMENTED,l=t.ERR_MULTIPLE_CALLBACK,h=t.ERR_TRANSFORM_ALREADY_TRANSFORMING,r=t.ERR_TRANSFORM_WITH_LENGTH_0,d=n(41339);function y(C,N){var a=this._transformState;a.transforming=!1;var O=a.writecb;if(null===O)return this.emit("error",new l);a.writechunk=null,a.writecb=null,null!=N&&this.push(N),O(C);var H=this._readableState;H.reading=!1,(H.needReadable||H.length<H.highWaterMark)&&this._read(H.highWaterMark)}function g(C){if(!(this instanceof g))return new g(C);d.call(this,C),this._transformState={afterTransform:y.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,C&&("function"==typeof C.transform&&(this._transform=C.transform),"function"==typeof C.flush&&(this._flush=C.flush)),this.on("prefinish",p)}function p(){var C=this;"function"!=typeof this._flush||this._readableState.destroyed?f(this,null,null):this._flush(function(N,a){f(C,N,a)})}function f(C,N,a){if(N)return C.emit("error",N);if(null!=a&&C.push(a),C._writableState.length)throw new r;if(C._transformState.transforming)throw new h;return C.push(null)}n(83894)(g,d),g.prototype.push=function(C,N){return this._transformState.needTransform=!1,d.prototype.push.call(this,C,N)},g.prototype._transform=function(C,N,a){a(new e("_transform()"))},g.prototype._write=function(C,N,a){var O=this._transformState;if(O.writecb=a,O.writechunk=C,O.writeencoding=N,!O.transforming){var H=this._readableState;(O.needTransform||H.needReadable||H.length<H.highWaterMark)&&this._read(H.highWaterMark)}},g.prototype._read=function(C){var N=this._transformState;null===N.writechunk||N.transforming?N.needTransform=!0:(N.transforming=!0,this._transform(N.writechunk,N.writeencoding,N.afterTransform))},g.prototype._destroy=function(C,N){d.prototype._destroy.call(this,C,function(a){N(a)})}},20520:(M,b,n)=>{"use strict";function e(Ze){var at=this;this.next=null,this.entry=null,this.finish=function(){!function At(Ze,at,Be){var Lt=Ze.entry;for(Ze.entry=null;Lt;){var _e=Lt.callback;at.pendingcb--,_e(Be),Lt=Lt.next}at.corkedRequestsFree.next=Ze}(at,Ze)}}var l;M.exports=oe,oe.WritableState=K;var re,h={deprecate:n(23532)},r=n(4970),d=n(93172).Buffer,y=global.Uint8Array||function(){},f=n(41920),N=n(47102).getHighWaterMark,a=n(70891).q,O=a.ERR_INVALID_ARG_TYPE,H=a.ERR_METHOD_NOT_IMPLEMENTED,F=a.ERR_MULTIPLE_CALLBACK,V=a.ERR_STREAM_CANNOT_PIPE,D=a.ERR_STREAM_DESTROYED,U=a.ERR_STREAM_NULL_VALUES,q=a.ERR_STREAM_WRITE_AFTER_END,J=a.ERR_UNKNOWN_ENCODING,G=f.errorOrDestroy;function ie(){}function K(Ze,at,Be){l=l||n(41339),"boolean"!=typeof Be&&(Be=at instanceof l),this.objectMode=!!(Ze=Ze||{}).objectMode,Be&&(this.objectMode=this.objectMode||!!Ze.writableObjectMode),this.highWaterMark=N(this,Ze,"writableHighWaterMark",Be),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===Ze.decodeStrings),this.defaultEncoding=Ze.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(_e){!function $(Ze,at){var Be=Ze._writableState,Lt=Be.sync,_e=Be.writecb;if("function"!=typeof _e)throw new F;if(function j(Ze){Ze.writing=!1,Ze.writecb=null,Ze.length-=Ze.writelen,Ze.writelen=0}(Be),at)!function x(Ze,at,Be,Lt,_e){--at.pendingcb,Be?(process.nextTick(_e,Lt),process.nextTick(Qe,Ze,at),Ze._writableState.errorEmitted=!0,G(Ze,Lt)):(_e(Lt),Ze._writableState.errorEmitted=!0,G(Ze,Lt),Qe(Ze,at))}(Ze,Be,Lt,at,_e);else{var ne=fe(Be)||Ze.destroyed;!ne&&!Be.corked&&!Be.bufferProcessing&&Be.bufferedRequest&&W(Ze,Be),Lt?process.nextTick(Y,Ze,Be,ne,_e):Y(Ze,Be,ne,_e)}}(at,_e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==Ze.emitClose,this.autoDestroy=!!Ze.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}function oe(Ze){var at=this instanceof(l=l||n(41339));if(!at&&!re.call(oe,this))return new oe(Ze);this._writableState=new K(Ze,this,at),this.writable=!0,Ze&&("function"==typeof Ze.write&&(this._write=Ze.write),"function"==typeof Ze.writev&&(this._writev=Ze.writev),"function"==typeof Ze.destroy&&(this._destroy=Ze.destroy),"function"==typeof Ze.final&&(this._final=Ze.final)),r.call(this)}function E(Ze,at,Be,Lt,_e,ne,be){at.writelen=Lt,at.writecb=be,at.writing=!0,at.sync=!0,at.destroyed?at.onwrite(new D("write")):Be?Ze._writev(_e,at.onwrite):Ze._write(_e,ne,at.onwrite),at.sync=!1}function Y(Ze,at,Be,Lt){Be||function u(Ze,at){0===at.length&&at.needDrain&&(at.needDrain=!1,Ze.emit("drain"))}(Ze,at),at.pendingcb--,Lt(),Qe(Ze,at)}function W(Ze,at){at.bufferProcessing=!0;var Be=at.bufferedRequest;if(Ze._writev&&Be&&Be.next){var _e=new Array(at.bufferedRequestCount),ne=at.corkedRequestsFree;ne.entry=Be;for(var be=0,Te=!0;Be;)_e[be]=Be,Be.isBuf||(Te=!1),Be=Be.next,be+=1;_e.allBuffers=Te,E(Ze,at,!0,at.length,_e,"",ne.finish),at.pendingcb++,at.lastBufferedRequest=null,ne.next?(at.corkedRequestsFree=ne.next,ne.next=null):at.corkedRequestsFree=new e(at),at.bufferedRequestCount=0}else{for(;Be;){var $e=Be.chunk;if(E(Ze,at,!1,at.objectMode?1:$e.length,$e,Be.encoding,Be.callback),Be=Be.next,at.bufferedRequestCount--,at.writing)break}null===Be&&(at.lastBufferedRequest=null)}at.bufferedRequest=Be,at.bufferProcessing=!1}function fe(Ze){return Ze.ending&&0===Ze.length&&null===Ze.bufferedRequest&&!Ze.finished&&!Ze.writing}function ae(Ze,at){Ze._final(function(Be){at.pendingcb--,Be&&G(Ze,Be),at.prefinished=!0,Ze.emit("prefinish"),Qe(Ze,at)})}function Qe(Ze,at){var Be=fe(at);if(Be&&(function ye(Ze,at){!at.prefinished&&!at.finalCalled&&("function"!=typeof Ze._final||at.destroyed?(at.prefinished=!0,Ze.emit("prefinish")):(at.pendingcb++,at.finalCalled=!0,process.nextTick(ae,Ze,at)))}(Ze,at),0===at.pendingcb&&(at.finished=!0,Ze.emit("finish"),at.autoDestroy))){var Lt=Ze._readableState;(!Lt||Lt.autoDestroy&&Lt.endEmitted)&&Ze.destroy()}return Be}n(83894)(oe,r),K.prototype.getBuffer=function(){for(var at=this.bufferedRequest,Be=[];at;)Be.push(at),at=at.next;return Be},function(){try{Object.defineProperty(K.prototype,"buffer",{get:h.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(re=Function.prototype[Symbol.hasInstance],Object.defineProperty(oe,Symbol.hasInstance,{value:function(at){return!!re.call(this,at)||this===oe&&at&&at._writableState instanceof K}})):re=function(at){return at instanceof this},oe.prototype.pipe=function(){G(this,new V)},oe.prototype.write=function(Ze,at,Be){var Lt=this._writableState,_e=!1,ne=!Lt.objectMode&&function p(Ze){return d.isBuffer(Ze)||Ze instanceof y}(Ze);return ne&&!d.isBuffer(Ze)&&(Ze=function g(Ze){return d.from(Ze)}(Ze)),"function"==typeof at&&(Be=at,at=null),ne?at="buffer":at||(at=Lt.defaultEncoding),"function"!=typeof Be&&(Be=ie),Lt.ending?function B(Ze,at){var Be=new q;G(Ze,Be),process.nextTick(at,Be)}(this,Be):(ne||function s(Ze,at,Be,Lt){var _e;return null===Be?_e=new U:"string"!=typeof Be&&!at.objectMode&&(_e=new O("chunk",["string","Buffer"],Be)),!_e||(G(Ze,_e),process.nextTick(Lt,_e),!1)}(this,Lt,Ze,Be))&&(Lt.pendingcb++,_e=function w(Ze,at,Be,Lt,_e,ne){if(!Be){var be=function _(Ze,at,Be){return!Ze.objectMode&&!1!==Ze.decodeStrings&&"string"==typeof at&&(at=d.from(at,Be)),at}(at,Lt,_e);Lt!==be&&(Be=!0,_e="buffer",Lt=be)}var Te=at.objectMode?1:Lt.length;at.length+=Te;var $e=at.length<at.highWaterMark;if($e||(at.needDrain=!0),at.writing||at.corked){var ft=at.lastBufferedRequest;at.lastBufferedRequest={chunk:Lt,encoding:_e,isBuf:Be,callback:ne,next:null},ft?ft.next=at.lastBufferedRequest:at.bufferedRequest=at.lastBufferedRequest,at.bufferedRequestCount+=1}else E(Ze,at,!1,Te,Lt,_e,ne);return $e}(this,Lt,ne,Ze,at,Be)),_e},oe.prototype.cork=function(){this._writableState.corked++},oe.prototype.uncork=function(){var Ze=this._writableState;Ze.corked&&(Ze.corked--,!Ze.writing&&!Ze.corked&&!Ze.bufferProcessing&&Ze.bufferedRequest&&W(this,Ze))},oe.prototype.setDefaultEncoding=function(at){if("string"==typeof at&&(at=at.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((at+"").toLowerCase())>-1))throw new J(at);return this._writableState.defaultEncoding=at,this},Object.defineProperty(oe.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(oe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),oe.prototype._write=function(Ze,at,Be){Be(new H("_write()"))},oe.prototype._writev=null,oe.prototype.end=function(Ze,at,Be){var Lt=this._writableState;return"function"==typeof Ze?(Be=Ze,Ze=null,at=null):"function"==typeof at&&(Be=at,at=null),null!=Ze&&this.write(Ze,at),Lt.corked&&(Lt.corked=1,this.uncork()),Lt.ending||function Ot(Ze,at,Be){at.ending=!0,Qe(Ze,at),Be&&(at.finished?process.nextTick(Be):Ze.once("finish",Be)),at.ended=!0,Ze.writable=!1}(this,Lt,Be),this},Object.defineProperty(oe.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(oe.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(at){!this._writableState||(this._writableState.destroyed=at)}}),oe.prototype.destroy=f.destroy,oe.prototype._undestroy=f.undestroy,oe.prototype._destroy=function(Ze,at){at(Ze)}},13872:(M,b,n)=>{"use strict";var t;function e(D,U,q){return U in D?Object.defineProperty(D,U,{value:q,enumerable:!0,configurable:!0,writable:!0}):D[U]=q,D}var l=n(67542),h=Symbol("lastResolve"),r=Symbol("lastReject"),d=Symbol("error"),y=Symbol("ended"),g=Symbol("lastPromise"),p=Symbol("handlePromise"),f=Symbol("stream");function C(D,U){return{value:D,done:U}}function N(D){var U=D[h];if(null!==U){var q=D[f].read();null!==q&&(D[g]=null,D[h]=null,D[r]=null,U(C(q,!1)))}}function a(D){process.nextTick(N,D)}var H=Object.getPrototypeOf(function(){}),F=Object.setPrototypeOf((e(t={get stream(){return this[f]},next:function(){var U=this,q=this[d];if(null!==q)return Promise.reject(q);if(this[y])return Promise.resolve(C(void 0,!0));if(this[f].destroyed)return new Promise(function(K,re){process.nextTick(function(){U[d]?re(U[d]):K(C(void 0,!0))})});var G,J=this[g];if(J)G=new Promise(function O(D,U){return function(q,J){D.then(function(){U[y]?q(C(void 0,!0)):U[p](q,J)},J)}}(J,this));else{var ie=this[f].read();if(null!==ie)return Promise.resolve(C(ie,!1));G=new Promise(this[p])}return this[g]=G,G}},Symbol.asyncIterator,function(){return this}),e(t,"return",function(){var U=this;return new Promise(function(q,J){U[f].destroy(null,function(G){G?J(G):q(C(void 0,!0))})})}),t),H);M.exports=function(U){var q,J=Object.create(F,(e(q={},f,{value:U,writable:!0}),e(q,h,{value:null,writable:!0}),e(q,r,{value:null,writable:!0}),e(q,d,{value:null,writable:!0}),e(q,y,{value:U._readableState.endEmitted,writable:!0}),e(q,p,{value:function(ie,K){var re=J[f].read();re?(J[g]=null,J[h]=null,J[r]=null,ie(C(re,!1))):(J[h]=ie,J[r]=K)},writable:!0}),q));return J[g]=null,l(U,function(G){if(G&&"ERR_STREAM_PREMATURE_CLOSE"!==G.code){var ie=J[r];return null!==ie&&(J[g]=null,J[h]=null,J[r]=null,ie(G)),void(J[d]=G)}var K=J[h];null!==K&&(J[g]=null,J[h]=null,J[r]=null,K(C(void 0,!0))),J[y]=!0}),U.on("readable",a.bind(null,J)),J}},25019:(M,b,n)=>{"use strict";function t(a,O){var H=Object.keys(a);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(a);O&&(F=F.filter(function(V){return Object.getOwnPropertyDescriptor(a,V).enumerable})),H.push.apply(H,F)}return H}function l(a,O,H){return O in a?Object.defineProperty(a,O,{value:H,enumerable:!0,configurable:!0,writable:!0}):a[O]=H,a}function r(a,O){for(var H=0;H<O.length;H++){var F=O[H];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(a,F.key,F)}}var g=n(93172).Buffer,f=n(52361).inspect,C=f&&f.custom||"inspect";function N(a,O,H){g.prototype.copy.call(a,O,H)}M.exports=function(){function a(){(function h(a,O){if(!(a instanceof O))throw new TypeError("Cannot call a class as a function")})(this,a),this.head=null,this.tail=null,this.length=0}return function d(a,O,H){O&&r(a.prototype,O),H&&r(a,H)}(a,[{key:"push",value:function(H){var F={data:H,next:null};this.length>0?this.tail.next=F:this.head=F,this.tail=F,++this.length}},{key:"unshift",value:function(H){var F={data:H,next:this.head};0===this.length&&(this.tail=F),this.head=F,++this.length}},{key:"shift",value:function(){if(0!==this.length){var H=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,H}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(H){if(0===this.length)return"";for(var F=this.head,V=""+F.data;F=F.next;)V+=H+F.data;return V}},{key:"concat",value:function(H){if(0===this.length)return g.alloc(0);for(var F=g.allocUnsafe(H>>>0),V=this.head,D=0;V;)N(V.data,F,D),D+=V.data.length,V=V.next;return F}},{key:"consume",value:function(H,F){var V;return H<this.head.data.length?(V=this.head.data.slice(0,H),this.head.data=this.head.data.slice(H)):V=H===this.head.data.length?this.shift():F?this._getString(H):this._getBuffer(H),V}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(H){var F=this.head,V=1,D=F.data;for(H-=D.length;F=F.next;){var U=F.data,q=H>U.length?U.length:H;if(D+=q===U.length?U:U.slice(0,H),0==(H-=q)){q===U.length?(++V,this.head=F.next?F.next:this.tail=null):(this.head=F,F.data=U.slice(q));break}++V}return this.length-=V,D}},{key:"_getBuffer",value:function(H){var F=g.allocUnsafe(H),V=this.head,D=1;for(V.data.copy(F),H-=V.data.length;V=V.next;){var U=V.data,q=H>U.length?U.length:H;if(U.copy(F,F.length-H,0,q),0==(H-=q)){q===U.length?(++D,this.head=V.next?V.next:this.tail=null):(this.head=V,V.data=U.slice(q));break}++D}return this.length-=D,F}},{key:C,value:function(H,F){return f(this,function e(a){for(var O=1;O<arguments.length;O++){var H=null!=arguments[O]?arguments[O]:{};O%2?t(Object(H),!0).forEach(function(F){l(a,F,H[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(H)):t(Object(H)).forEach(function(F){Object.defineProperty(a,F,Object.getOwnPropertyDescriptor(H,F))})}return a}({},F,{depth:0,customInspect:!1}))}}]),a}()},41920:M=>{"use strict";function n(r,d){l(r,d),t(r)}function t(r){r._writableState&&!r._writableState.emitClose||r._readableState&&!r._readableState.emitClose||r.emit("close")}function l(r,d){r.emit("error",d)}M.exports={destroy:function b(r,d){var y=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(d?d(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(l,this,r)):process.nextTick(l,this,r)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,function(f){!d&&f?y._writableState?y._writableState.errorEmitted?process.nextTick(t,y):(y._writableState.errorEmitted=!0,process.nextTick(n,y,f)):process.nextTick(n,y,f):d?(process.nextTick(t,y),d(f)):process.nextTick(t,y)}),this)},undestroy:function e(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function h(r,d){var y=r._readableState,g=r._writableState;y&&y.autoDestroy||g&&g.autoDestroy?r.destroy(d):r.emit("error",d)}}},67542:(M,b,n)=>{"use strict";var t=n(70891).q.ERR_STREAM_PREMATURE_CLOSE;function l(){}M.exports=function r(d,y,g){if("function"==typeof y)return r(d,null,y);y||(y={}),g=function e(d){var y=!1;return function(){if(!y){y=!0;for(var g=arguments.length,p=new Array(g),f=0;f<g;f++)p[f]=arguments[f];d.apply(this,p)}}}(g||l);var p=y.readable||!1!==y.readable&&d.readable,f=y.writable||!1!==y.writable&&d.writable,C=function(){d.writable||a()},N=d._writableState&&d._writableState.finished,a=function(){f=!1,N=!0,p||g.call(d)},O=d._readableState&&d._readableState.endEmitted,H=function(){p=!1,O=!0,f||g.call(d)},F=function(q){g.call(d,q)},V=function(){var q;return p&&!O?((!d._readableState||!d._readableState.ended)&&(q=new t),g.call(d,q)):f&&!N?((!d._writableState||!d._writableState.ended)&&(q=new t),g.call(d,q)):void 0},D=function(){d.req.on("finish",a)};return function h(d){return d.setHeader&&"function"==typeof d.abort}(d)?(d.on("complete",a),d.on("abort",V),d.req?D():d.on("request",D)):f&&!d._writableState&&(d.on("end",C),d.on("close",C)),d.on("end",H),d.on("finish",a),!1!==y.error&&d.on("error",F),d.on("close",V),function(){d.removeListener("complete",a),d.removeListener("abort",V),d.removeListener("request",D),d.req&&d.req.removeListener("finish",a),d.removeListener("end",C),d.removeListener("close",C),d.removeListener("finish",a),d.removeListener("end",H),d.removeListener("error",F),d.removeListener("close",V)}}},47412:M=>{M.exports=function(){throw new Error("Readable.from is not available in the browser")}},90954:(M,b,n)=>{"use strict";var t,l=n(70891).q,h=l.ERR_MISSING_ARGS,r=l.ERR_STREAM_DESTROYED;function d(a){if(a)throw a}function g(a,O,H,F){F=function e(a){var O=!1;return function(){O||(O=!0,a.apply(void 0,arguments))}}(F);var V=!1;a.on("close",function(){V=!0}),void 0===t&&(t=n(67542)),t(a,{readable:O,writable:H},function(U){if(U)return F(U);V=!0,F()});var D=!1;return function(U){if(!V&&!D){if(D=!0,function y(a){return a.setHeader&&"function"==typeof a.abort}(a))return a.abort();if("function"==typeof a.destroy)return a.destroy();F(U||new r("pipe"))}}}function p(a){a()}function f(a,O){return a.pipe(O)}function C(a){return a.length&&"function"==typeof a[a.length-1]?a.pop():d}M.exports=function N(){for(var a=arguments.length,O=new Array(a),H=0;H<a;H++)O[H]=arguments[H];var F=C(O);if(Array.isArray(O[0])&&(O=O[0]),O.length<2)throw new h("streams");var V,D=O.map(function(U,q){var J=q<O.length-1;return g(U,J,q>0,function(ie){V||(V=ie),ie&&D.forEach(p),!J&&(D.forEach(p),F(V))})});return O.reduce(f)}},47102:(M,b,n)=>{"use strict";var t=n(70891).q.ERR_INVALID_OPT_VALUE;M.exports={getHighWaterMark:function l(h,r,d,y){var g=function e(h,r,d){return null!=h.highWaterMark?h.highWaterMark:r?h[d]:null}(r,y,d);if(null!=g){if(!isFinite(g)||Math.floor(g)!==g||g<0)throw new t(y?d:"highWaterMark",g);return Math.floor(g)}return h.objectMode?16:16384}}},4970:(M,b,n)=>{M.exports=n(59069).EventEmitter},65685:(M,b,n)=>{(b=M.exports=n(3154)).Stream=b,b.Readable=b,b.Writable=n(20520),b.Duplex=n(41339),b.Transform=n(6025),b.PassThrough=n(56071),b.finished=n(67542),b.pipeline=n(90954)},67854:M=>{var b=function(n){"use strict";var l,t=Object.prototype,e=t.hasOwnProperty,h="function"==typeof Symbol?Symbol:{},r=h.iterator||"@@iterator",d=h.asyncIterator||"@@asyncIterator",y=h.toStringTag||"@@toStringTag";function g(x,j,$){return Object.defineProperty(x,j,{value:$,enumerable:!0,configurable:!0,writable:!0}),x[j]}try{g({},"")}catch{g=function(j,$,Y){return j[$]=Y}}function p(x,j,$,Y){var W=Object.create((j&&j.prototype instanceof F?j:F).prototype),fe=new _(Y||[]);return W._invoke=function re(x,j,$){var Y=C;return function(W,fe){if(Y===a)throw new Error("Generator is already running");if(Y===O){if("throw"===W)throw fe;return E()}for($.method=W,$.arg=fe;;){var ae=$.delegate;if(ae){var ye=oe(ae,$);if(ye){if(ye===H)continue;return ye}}if("next"===$.method)$.sent=$._sent=$.arg;else if("throw"===$.method){if(Y===C)throw Y=O,$.arg;$.dispatchException($.arg)}else"return"===$.method&&$.abrupt("return",$.arg);Y=a;var Qe=f(x,j,$);if("normal"===Qe.type){if(Y=$.done?O:N,Qe.arg===H)continue;return{value:Qe.arg,done:$.done}}"throw"===Qe.type&&(Y=O,$.method="throw",$.arg=Qe.arg)}}}(x,$,fe),W}function f(x,j,$){try{return{type:"normal",arg:x.call(j,$)}}catch(Y){return{type:"throw",arg:Y}}}n.wrap=p;var C="suspendedStart",N="suspendedYield",a="executing",O="completed",H={};function F(){}function V(){}function D(){}var U={};g(U,r,function(){return this});var q=Object.getPrototypeOf,J=q&&q(q(w([])));J&&J!==t&&e.call(J,r)&&(U=J);var G=D.prototype=F.prototype=Object.create(U);function ie(x){["next","throw","return"].forEach(function(j){g(x,j,function($){return this._invoke(j,$)})})}function K(x,j){function $(W,fe,ae,ye){var Qe=f(x[W],x,fe);if("throw"!==Qe.type){var Ot=Qe.arg,At=Ot.value;return At&&"object"==typeof At&&e.call(At,"__await")?j.resolve(At.__await).then(function(Ze){$("next",Ze,ae,ye)},function(Ze){$("throw",Ze,ae,ye)}):j.resolve(At).then(function(Ze){Ot.value=Ze,ae(Ot)},function(Ze){return $("throw",Ze,ae,ye)})}ye(Qe.arg)}var Y;this._invoke=function u(W,fe){function ae(){return new j(function(ye,Qe){$(W,fe,ye,Qe)})}return Y=Y?Y.then(ae,ae):ae()}}function oe(x,j){var $=x.iterator[j.method];if($===l){if(j.delegate=null,"throw"===j.method){if(x.iterator.return&&(j.method="return",j.arg=l,oe(x,j),"throw"===j.method))return H;j.method="throw",j.arg=new TypeError("The iterator does not provide a 'throw' method")}return H}var Y=f($,x.iterator,j.arg);if("throw"===Y.type)return j.method="throw",j.arg=Y.arg,j.delegate=null,H;var u=Y.arg;return u?u.done?(j[x.resultName]=u.value,j.next=x.nextLoc,"return"!==j.method&&(j.method="next",j.arg=l),j.delegate=null,H):u:(j.method="throw",j.arg=new TypeError("iterator result is not an object"),j.delegate=null,H)}function B(x){var j={tryLoc:x[0]};1 in x&&(j.catchLoc=x[1]),2 in x&&(j.finallyLoc=x[2],j.afterLoc=x[3]),this.tryEntries.push(j)}function s(x){var j=x.completion||{};j.type="normal",delete j.arg,x.completion=j}function _(x){this.tryEntries=[{tryLoc:"root"}],x.forEach(B,this),this.reset(!0)}function w(x){if(x){var j=x[r];if(j)return j.call(x);if("function"==typeof x.next)return x;if(!isNaN(x.length)){var $=-1,Y=function u(){for(;++$<x.length;)if(e.call(x,$))return u.value=x[$],u.done=!1,u;return u.value=l,u.done=!0,u};return Y.next=Y}}return{next:E}}function E(){return{value:l,done:!0}}return V.prototype=D,g(G,"constructor",D),g(D,"constructor",V),V.displayName=g(D,y,"GeneratorFunction"),n.isGeneratorFunction=function(x){var j="function"==typeof x&&x.constructor;return!!j&&(j===V||"GeneratorFunction"===(j.displayName||j.name))},n.mark=function(x){return Object.setPrototypeOf?Object.setPrototypeOf(x,D):(x.__proto__=D,g(x,y,"GeneratorFunction")),x.prototype=Object.create(G),x},n.awrap=function(x){return{__await:x}},ie(K.prototype),g(K.prototype,d,function(){return this}),n.AsyncIterator=K,n.async=function(x,j,$,Y,u){void 0===u&&(u=Promise);var W=new K(p(x,j,$,Y),u);return n.isGeneratorFunction(j)?W:W.next().then(function(fe){return fe.done?fe.value:W.next()})},ie(G),g(G,y,"Generator"),g(G,r,function(){return this}),g(G,"toString",function(){return"[object Generator]"}),n.keys=function(x){var j=[];for(var $ in x)j.push($);return j.reverse(),function Y(){for(;j.length;){var u=j.pop();if(u in x)return Y.value=u,Y.done=!1,Y}return Y.done=!0,Y}},n.values=w,_.prototype={constructor:_,reset:function(x){if(this.prev=0,this.next=0,this.sent=this._sent=l,this.done=!1,this.delegate=null,this.method="next",this.arg=l,this.tryEntries.forEach(s),!x)for(var j in this)"t"===j.charAt(0)&&e.call(this,j)&&!isNaN(+j.slice(1))&&(this[j]=l)},stop:function(){this.done=!0;var j=this.tryEntries[0].completion;if("throw"===j.type)throw j.arg;return this.rval},dispatchException:function(x){if(this.done)throw x;var j=this;function $(ye,Qe){return W.type="throw",W.arg=x,j.next=ye,Qe&&(j.method="next",j.arg=l),!!Qe}for(var Y=this.tryEntries.length-1;Y>=0;--Y){var u=this.tryEntries[Y],W=u.completion;if("root"===u.tryLoc)return $("end");if(u.tryLoc<=this.prev){var fe=e.call(u,"catchLoc"),ae=e.call(u,"finallyLoc");if(fe&&ae){if(this.prev<u.catchLoc)return $(u.catchLoc,!0);if(this.prev<u.finallyLoc)return $(u.finallyLoc)}else if(fe){if(this.prev<u.catchLoc)return $(u.catchLoc,!0)}else{if(!ae)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return $(u.finallyLoc)}}}},abrupt:function(x,j){for(var $=this.tryEntries.length-1;$>=0;--$){var Y=this.tryEntries[$];if(Y.tryLoc<=this.prev&&e.call(Y,"finallyLoc")&&this.prev<Y.finallyLoc){var u=Y;break}}u&&("break"===x||"continue"===x)&&u.tryLoc<=j&&j<=u.finallyLoc&&(u=null);var W=u?u.completion:{};return W.type=x,W.arg=j,u?(this.method="next",this.next=u.finallyLoc,H):this.complete(W)},complete:function(x,j){if("throw"===x.type)throw x.arg;return"break"===x.type||"continue"===x.type?this.next=x.arg:"return"===x.type?(this.rval=this.arg=x.arg,this.method="return",this.next="end"):"normal"===x.type&&j&&(this.next=j),H},finish:function(x){for(var j=this.tryEntries.length-1;j>=0;--j){var $=this.tryEntries[j];if($.finallyLoc===x)return this.complete($.completion,$.afterLoc),s($),H}},catch:function(x){for(var j=this.tryEntries.length-1;j>=0;--j){var $=this.tryEntries[j];if($.tryLoc===x){var Y=$.completion;if("throw"===Y.type){var u=Y.arg;s($)}return u}}throw new Error("illegal catch attempt")},delegateYield:function(x,j,$){return this.delegate={iterator:w(x),resultName:j,nextLoc:$},"next"===this.method&&(this.arg=l),H}},n}(M.exports);try{regeneratorRuntime=b}catch{"object"==typeof globalThis?globalThis.regeneratorRuntime=b:Function("r","regeneratorRuntime = r")(b)}},28237:M=>{"use strict";M.exports=function(n,t){if(t=t.split(":")[0],!(n=+n))return!1;switch(t){case"http":case"ws":return 80!==n;case"https":case"wss":return 443!==n;case"ftp":return 21!==n;case"gopher":return 70!==n;case"file":return!1}return 0!==n}},75634:(M,b,n)=>{"use strict";var t=n(93172).Buffer,e=n(83894),l=n(39650),h=new Array(16),r=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],d=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],y=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],g=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],p=[0,1518500249,1859775393,2400959708,2840853838],f=[1352829926,1548603684,1836072691,2053994217,0];function C(){l.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function N(D,U){return D<<U|D>>>32-U}function a(D,U,q,J,G,ie,K,re){return N(D+(U^q^J)+ie+K|0,re)+G|0}function O(D,U,q,J,G,ie,K,re){return N(D+(U&q|~U&J)+ie+K|0,re)+G|0}function H(D,U,q,J,G,ie,K,re){return N(D+((U|~q)^J)+ie+K|0,re)+G|0}function F(D,U,q,J,G,ie,K,re){return N(D+(U&J|q&~J)+ie+K|0,re)+G|0}function V(D,U,q,J,G,ie,K,re){return N(D+(U^(q|~J))+ie+K|0,re)+G|0}e(C,l),C.prototype._update=function(){for(var D=h,U=0;U<16;++U)D[U]=this._block.readInt32LE(4*U);for(var q=0|this._a,J=0|this._b,G=0|this._c,ie=0|this._d,K=0|this._e,re=0|this._a,oe=0|this._b,B=0|this._c,s=0|this._d,_=0|this._e,w=0;w<80;w+=1){var E,x;w<16?(E=a(q,J,G,ie,K,D[r[w]],p[0],y[w]),x=V(re,oe,B,s,_,D[d[w]],f[0],g[w])):w<32?(E=O(q,J,G,ie,K,D[r[w]],p[1],y[w]),x=F(re,oe,B,s,_,D[d[w]],f[1],g[w])):w<48?(E=H(q,J,G,ie,K,D[r[w]],p[2],y[w]),x=H(re,oe,B,s,_,D[d[w]],f[2],g[w])):w<64?(E=F(q,J,G,ie,K,D[r[w]],p[3],y[w]),x=O(re,oe,B,s,_,D[d[w]],f[3],g[w])):(E=V(q,J,G,ie,K,D[r[w]],p[4],y[w]),x=a(re,oe,B,s,_,D[d[w]],f[4],g[w])),q=K,K=ie,ie=N(G,10),G=J,J=E,re=_,_=s,s=N(B,10),B=oe,oe=x}var j=this._b+G+s|0;this._b=this._c+ie+_|0,this._c=this._d+K+re|0,this._d=this._e+q+oe|0,this._e=this._a+J+B|0,this._a=j},C.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var D=t.alloc?t.alloc(20):new t(20);return D.writeInt32LE(this._a,0),D.writeInt32LE(this._b,4),D.writeInt32LE(this._c,8),D.writeInt32LE(this._d,12),D.writeInt32LE(this._e,16),D},M.exports=C},591:(M,b,n)=>{"use strict";n.d(b,{X:()=>l});var t=n(8929),e=n(95279);class l extends t.xQ{constructor(r){super(),this._value=r}get value(){return this.getValue()}_subscribe(r){const d=super._subscribe(r);return d&&!d.closed&&r.next(this._value),d}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new e.N;return this._value}next(r){super.next(this._value=r)}}},29312:(M,b,n)=>{"use strict";n.d(b,{P:()=>r});var t=n(68896),e=n(21086),l=n(61737);class r{constructor(y,g,p){this.kind=y,this.value=g,this.error=p,this.hasValue="N"===y}observe(y){switch(this.kind){case"N":return y.next&&y.next(this.value);case"E":return y.error&&y.error(this.error);case"C":return y.complete&&y.complete()}}do(y,g,p){switch(this.kind){case"N":return y&&y(this.value);case"E":return g&&g(this.error);case"C":return p&&p()}}accept(y,g,p){return y&&"function"==typeof y.next?this.observe(y):this.do(y,g,p)}toObservable(){switch(this.kind){case"N":return(0,e.of)(this.value);case"E":return(0,l._)(this.error);case"C":return(0,t.c)()}throw new Error("unexpected notification kind value")}static createNext(y){return typeof y<"u"?new r("N",y):r.undefinedValueNotification}static createError(y){return new r("E",void 0,y)}static createComplete(){return r.completeNotification}}r.completeNotification=new r("C"),r.undefinedValueNotification=new r("N",void 0)},56498:(M,b,n)=>{"use strict";n.d(b,{y:()=>p});var t=n(43489),l=n(57668),h=n(73292),d=n(93821),y=n(4843),g=n(92830);let p=(()=>{class C{constructor(a){this._isScalar=!1,a&&(this._subscribe=a)}lift(a){const O=new C;return O.source=this,O.operator=a,O}subscribe(a,O,H){const{operator:F}=this,V=function r(C,N,a){if(C){if(C instanceof t.L)return C;if(C[l.b])return C[l.b]()}return C||N||a?new t.L(C,N,a):new t.L(h.c)}(a,O,H);if(V.add(F?F.call(V,this.source):this.source||g.v.useDeprecatedSynchronousErrorHandling&&!V.syncErrorThrowable?this._subscribe(V):this._trySubscribe(V)),g.v.useDeprecatedSynchronousErrorHandling&&V.syncErrorThrowable&&(V.syncErrorThrowable=!1,V.syncErrorThrown))throw V.syncErrorValue;return V}_trySubscribe(a){try{return this._subscribe(a)}catch(O){g.v.useDeprecatedSynchronousErrorHandling&&(a.syncErrorThrown=!0,a.syncErrorValue=O),function e(C){for(;C;){const{closed:N,destination:a,isStopped:O}=C;if(N||O)return!1;C=a&&a instanceof t.L?a:null}return!0}(a)?a.error(O):console.warn(O)}}forEach(a,O){return new(O=f(O))((H,F)=>{let V;V=this.subscribe(D=>{try{a(D)}catch(U){F(U),V&&V.unsubscribe()}},F,H)})}_subscribe(a){const{source:O}=this;return O&&O.subscribe(a)}[d.L](){return this}pipe(...a){return 0===a.length?this:(0,y.U)(a)(this)}toPromise(a){return new(a=f(a))((O,H)=>{let F;this.subscribe(V=>F=V,V=>H(V),()=>O(F))})}}return C.create=N=>new C(N),C})();function f(C){if(C||(C=g.v.Promise||Promise),!C)throw new Error("no Promise impl found");return C}},73292:(M,b,n)=>{"use strict";n.d(b,{c:()=>l});var t=n(92830),e=n(22782);const l={closed:!0,next(h){},error(h){if(t.v.useDeprecatedSynchronousErrorHandling)throw h;(0,e.z)(h)},complete(){}}},826:(M,b,n)=>{"use strict";n.d(b,{L:()=>e});var t=n(43489);class e extends t.L{notifyNext(h,r,d,y,g){this.destination.next(r)}notifyError(h,r){this.destination.error(h)}notifyComplete(h){this.destination.complete()}}},30839:(M,b,n)=>{"use strict";n.d(b,{t:()=>y});var t=n(8929),e=n(30341),l=n(42654),h=n(57770),r=n(95279),d=n(45283);class y extends t.xQ{constructor(f=Number.POSITIVE_INFINITY,C=Number.POSITIVE_INFINITY,N){super(),this.scheduler=N,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=f<1?1:f,this._windowTime=C<1?1:C,C===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(f){if(!this.isStopped){const C=this._events;C.push(f),C.length>this._bufferSize&&C.shift()}super.next(f)}nextTimeWindow(f){this.isStopped||(this._events.push(new g(this._getNow(),f)),this._trimBufferThenGetEvents()),super.next(f)}_subscribe(f){const C=this._infiniteTimeWindow,N=C?this._events:this._trimBufferThenGetEvents(),a=this.scheduler,O=N.length;let H;if(this.closed)throw new r.N;if(this.isStopped||this.hasError?H=l.w.EMPTY:(this.observers.push(f),H=new d.W(this,f)),a&&f.add(f=new h.ht(f,a)),C)for(let F=0;F<O&&!f.closed;F++)f.next(N[F]);else for(let F=0;F<O&&!f.closed;F++)f.next(N[F].value);return this.hasError?f.error(this.thrownError):this.isStopped&&f.complete(),H}_getNow(){return(this.scheduler||e.c).now()}_trimBufferThenGetEvents(){const f=this._getNow(),C=this._bufferSize,N=this._windowTime,a=this._events,O=a.length;let H=0;for(;H<O&&!(f-a[H].time<N);)H++;return O>C&&(H=Math.max(H,O-C)),H>0&&a.splice(0,H),a}}class g{constructor(f,C){this.time=f,this.value=C}}},8929:(M,b,n)=>{"use strict";n.d(b,{Yc:()=>y,xQ:()=>g});var t=n(56498),e=n(43489),l=n(42654),h=n(95279),r=n(45283),d=n(57668);class y extends e.L{constructor(C){super(C),this.destination=C}}let g=(()=>{class f extends t.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[d.b](){return new y(this)}lift(N){const a=new p(this,this);return a.operator=N,a}next(N){if(this.closed)throw new h.N;if(!this.isStopped){const{observers:a}=this,O=a.length,H=a.slice();for(let F=0;F<O;F++)H[F].next(N)}}error(N){if(this.closed)throw new h.N;this.hasError=!0,this.thrownError=N,this.isStopped=!0;const{observers:a}=this,O=a.length,H=a.slice();for(let F=0;F<O;F++)H[F].error(N);this.observers.length=0}complete(){if(this.closed)throw new h.N;this.isStopped=!0;const{observers:N}=this,a=N.length,O=N.slice();for(let H=0;H<a;H++)O[H].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(N){if(this.closed)throw new h.N;return super._trySubscribe(N)}_subscribe(N){if(this.closed)throw new h.N;return this.hasError?(N.error(this.thrownError),l.w.EMPTY):this.isStopped?(N.complete(),l.w.EMPTY):(this.observers.push(N),new r.W(this,N))}asObservable(){const N=new t.y;return N.source=this,N}}return f.create=(C,N)=>new p(C,N),f})();class p extends g{constructor(C,N){super(),this.destination=C,this.source=N}next(C){const{destination:N}=this;N&&N.next&&N.next(C)}error(C){const{destination:N}=this;N&&N.error&&this.destination.error(C)}complete(){const{destination:C}=this;C&&C.complete&&this.destination.complete()}_subscribe(C){const{source:N}=this;return N?this.source.subscribe(C):l.w.EMPTY}}},45283:(M,b,n)=>{"use strict";n.d(b,{W:()=>e});var t=n(42654);class e extends t.w{constructor(h,r){super(),this.subject=h,this.subscriber=r,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const h=this.subject,r=h.observers;if(this.subject=null,!r||0===r.length||h.isStopped||h.closed)return;const d=r.indexOf(this.subscriber);-1!==d&&r.splice(d,1)}}},43489:(M,b,n)=>{"use strict";n.d(b,{L:()=>y});var t=n(67043),e=n(73292),l=n(42654),h=n(57668),r=n(92830),d=n(22782);class y extends l.w{constructor(f,C,N){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=e.c;break;case 1:if(!f){this.destination=e.c;break}if("object"==typeof f){f instanceof y?(this.syncErrorThrowable=f.syncErrorThrowable,this.destination=f,f.add(this)):(this.syncErrorThrowable=!0,this.destination=new g(this,f));break}default:this.syncErrorThrowable=!0,this.destination=new g(this,f,C,N)}}[h.b](){return this}static create(f,C,N){const a=new y(f,C,N);return a.syncErrorThrowable=!1,a}next(f){this.isStopped||this._next(f)}error(f){this.isStopped||(this.isStopped=!0,this._error(f))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(f){this.destination.next(f)}_error(f){this.destination.error(f),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:f}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=f,this}}class g extends y{constructor(f,C,N,a){super(),this._parentSubscriber=f;let O,H=this;(0,t.m)(C)?O=C:C&&(O=C.next,N=C.error,a=C.complete,C!==e.c&&(H=Object.create(C),(0,t.m)(H.unsubscribe)&&this.add(H.unsubscribe.bind(H)),H.unsubscribe=this.unsubscribe.bind(this))),this._context=H,this._next=O,this._error=N,this._complete=a}next(f){if(!this.isStopped&&this._next){const{_parentSubscriber:C}=this;r.v.useDeprecatedSynchronousErrorHandling&&C.syncErrorThrowable?this.__tryOrSetError(C,this._next,f)&&this.unsubscribe():this.__tryOrUnsub(this._next,f)}}error(f){if(!this.isStopped){const{_parentSubscriber:C}=this,{useDeprecatedSynchronousErrorHandling:N}=r.v;if(this._error)N&&C.syncErrorThrowable?(this.__tryOrSetError(C,this._error,f),this.unsubscribe()):(this.__tryOrUnsub(this._error,f),this.unsubscribe());else if(C.syncErrorThrowable)N?(C.syncErrorValue=f,C.syncErrorThrown=!0):(0,d.z)(f),this.unsubscribe();else{if(this.unsubscribe(),N)throw f;(0,d.z)(f)}}}complete(){if(!this.isStopped){const{_parentSubscriber:f}=this;if(this._complete){const C=()=>this._complete.call(this._context);r.v.useDeprecatedSynchronousErrorHandling&&f.syncErrorThrowable?(this.__tryOrSetError(f,C),this.unsubscribe()):(this.__tryOrUnsub(C),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(f,C){try{f.call(this._context,C)}catch(N){if(this.unsubscribe(),r.v.useDeprecatedSynchronousErrorHandling)throw N;(0,d.z)(N)}}__tryOrSetError(f,C,N){if(!r.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{C.call(this._context,N)}catch(a){return r.v.useDeprecatedSynchronousErrorHandling?(f.syncErrorValue=a,f.syncErrorThrown=!0,!0):((0,d.z)(a),!0)}return!1}_unsubscribe(){const{_parentSubscriber:f}=this;this._context=null,this._parentSubscriber=null,f.unsubscribe()}}},42654:(M,b,n)=>{"use strict";n.d(b,{w:()=>d});var t=n(66688),e=n(57830),l=n(67043);const r=(()=>{function g(p){return Error.call(this),this.message=p?`${p.length} errors occurred during unsubscription:\n${p.map((f,C)=>`${C+1}) ${f.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=p,this}return g.prototype=Object.create(Error.prototype),g})();class d{constructor(p){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,p&&(this._ctorUnsubscribe=!0,this._unsubscribe=p)}unsubscribe(){let p;if(this.closed)return;let{_parentOrParents:f,_ctorUnsubscribe:C,_unsubscribe:N,_subscriptions:a}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,f instanceof d)f.remove(this);else if(null!==f)for(let O=0;O<f.length;++O)f[O].remove(this);if((0,l.m)(N)){C&&(this._unsubscribe=void 0);try{N.call(this)}catch(O){p=O instanceof r?y(O.errors):[O]}}if((0,t.k)(a)){let O=-1,H=a.length;for(;++O<H;){const F=a[O];if((0,e.K)(F))try{F.unsubscribe()}catch(V){p=p||[],V instanceof r?p=p.concat(y(V.errors)):p.push(V)}}}if(p)throw new r(p)}add(p){let f=p;if(!p)return d.EMPTY;switch(typeof p){case"function":f=new d(p);case"object":if(f===this||f.closed||"function"!=typeof f.unsubscribe)return f;if(this.closed)return f.unsubscribe(),f;if(!(f instanceof d)){const a=f;f=new d,f._subscriptions=[a]}break;default:throw new Error("unrecognized teardown "+p+" added to Subscription.")}let{_parentOrParents:C}=f;if(null===C)f._parentOrParents=this;else if(C instanceof d){if(C===this)return f;f._parentOrParents=[C,this]}else{if(-1!==C.indexOf(this))return f;C.push(this)}const N=this._subscriptions;return null===N?this._subscriptions=[f]:N.push(f),f}remove(p){const f=this._subscriptions;if(f){const C=f.indexOf(p);-1!==C&&f.splice(C,1)}}}var g;function y(g){return g.reduce((p,f)=>p.concat(f instanceof r?f.errors:f),[])}d.EMPTY=((g=new d).closed=!0,g)},92830:(M,b,n)=>{"use strict";n.d(b,{v:()=>e});let t=!1;const e={Promise:void 0,set useDeprecatedSynchronousErrorHandling(l){if(l){const h=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+h.stack)}else t&&console.log("RxJS: Back to a better error behavior. Thank you. <3");t=l},get useDeprecatedSynchronousErrorHandling(){return t}}},41177:(M,b,n)=>{"use strict";n.d(b,{Ds:()=>d,IY:()=>h,ft:()=>g});var t=n(43489),e=n(56498),l=n(59249);class h extends t.L{constructor(f){super(),this.parent=f}_next(f){this.parent.notifyNext(f)}_error(f){this.parent.notifyError(f),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class d extends t.L{notifyNext(f){this.destination.next(f)}notifyError(f){this.destination.error(f)}notifyComplete(){this.destination.complete()}}function g(p,f){if(f.closed)return;if(p instanceof e.y)return p.subscribe(f);let C;try{C=(0,l.s)(p)(f)}catch(N){f.error(N)}return C}},71762:(M,b,n)=>{"use strict";n.d(b,{N:()=>d,c:()=>r});var t=n(8929),e=n(56498),l=n(42654),h=n(74327);class r extends e.y{constructor(C,N){super(),this.source=C,this.subjectFactory=N,this._refCount=0,this._isComplete=!1}_subscribe(C){return this.getSubject().subscribe(C)}getSubject(){const C=this._subject;return(!C||C.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let C=this._connection;return C||(this._isComplete=!1,C=this._connection=new l.w,C.add(this.source.subscribe(new y(this.getSubject(),this))),C.closed&&(this._connection=null,C=l.w.EMPTY)),C}refCount(){return(0,h.x)()(this)}}const d=(()=>{const f=r.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:f._subscribe},_isComplete:{value:f._isComplete,writable:!0},getSubject:{value:f.getSubject},connect:{value:f.connect},refCount:{value:f.refCount}}})();class y extends t.Yc{constructor(C,N){super(C),this.connectable=N}_error(C){this._unsubscribe(),super._error(C)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const C=this.connectable;if(C){this.connectable=null;const N=C._connection;C._refCount=0,C._subject=null,C._connection=null,N&&N.unsubscribe()}}}},61221:(M,b,n)=>{"use strict";n.d(b,{z:()=>h});var t=n(21086),e=n(89146);function h(...r){return function l(){return(0,e.J)(1)}()((0,t.of)(...r))}},88514:(M,b,n)=>{"use strict";n.d(b,{P:()=>h});var t=n(56498),e=n(5254),l=n(68896);function h(r){return new t.y(d=>{let y;try{y=r()}catch(p){return void d.error(p)}return(y?(0,e.D)(y):(0,l.c)()).subscribe(d)})}},68896:(M,b,n)=>{"use strict";n.d(b,{E:()=>e,c:()=>l});var t=n(56498);const e=new t.y(r=>r.complete());function l(r){return r?function h(r){return new t.y(d=>r.schedule(()=>d.complete()))}(r):e}},30567:(M,b,n)=>{"use strict";n.d(b,{D:()=>d});var t=n(56498),e=n(66688),l=n(24850),h=n(57830),r=n(5254);function d(...g){if(1===g.length){const p=g[0];if((0,e.k)(p))return y(p,null);if((0,h.K)(p)&&Object.getPrototypeOf(p)===Object.prototype){const f=Object.keys(p);return y(f.map(C=>p[C]),f)}}if("function"==typeof g[g.length-1]){const p=g.pop();return y(g=1===g.length&&(0,e.k)(g[0])?g[0]:g,null).pipe((0,l.U)(f=>p(...f)))}return y(g,null)}function y(g,p){return new t.y(f=>{const C=g.length;if(0===C)return void f.complete();const N=new Array(C);let a=0,O=0;for(let H=0;H<C;H++){const F=(0,r.D)(g[H]);let V=!1;f.add(F.subscribe({next:D=>{V||(V=!0,O++),N[H]=D},error:D=>f.error(D),complete:()=>{a++,(a===C||!V)&&(O===C&&f.next(p?p.reduce((D,U,q)=>(D[U]=N[q],D),{}):N),f.complete())}}))}})}},5254:(M,b,n)=>{"use strict";n.d(b,{D:()=>H});var t=n(56498),e=n(59249),l=n(42654),h=n(93821),y=n(66454),g=n(5430),C=n(98955),N=n(58515);function H(F,V){return V?function O(F,V){if(null!=F){if(function f(F){return F&&"function"==typeof F[h.L]}(F))return function r(F,V){return new t.y(D=>{const U=new l.w;return U.add(V.schedule(()=>{const q=F[h.L]();U.add(q.subscribe({next(J){U.add(V.schedule(()=>D.next(J)))},error(J){U.add(V.schedule(()=>D.error(J)))},complete(){U.add(V.schedule(()=>D.complete()))}}))})),U})}(F,V);if((0,C.t)(F))return function d(F,V){return new t.y(D=>{const U=new l.w;return U.add(V.schedule(()=>F.then(q=>{U.add(V.schedule(()=>{D.next(q),U.add(V.schedule(()=>D.complete()))}))},q=>{U.add(V.schedule(()=>D.error(q)))}))),U})}(F,V);if((0,N.z)(F))return(0,y.r)(F,V);if(function a(F){return F&&"function"==typeof F[g.hZ]}(F)||"string"==typeof F)return function p(F,V){if(!F)throw new Error("Iterable cannot be null");return new t.y(D=>{const U=new l.w;let q;return U.add(()=>{q&&"function"==typeof q.return&&q.return()}),U.add(V.schedule(()=>{q=F[g.hZ](),U.add(V.schedule(function(){if(D.closed)return;let J,G;try{const ie=q.next();J=ie.value,G=ie.done}catch(ie){return void D.error(ie)}G?D.complete():(D.next(J),this.schedule())}))})),U})}(F,V)}throw new TypeError((null!==F&&typeof F||F)+" is not observable")}(F,V):F instanceof t.y?F:new t.y((0,e.s)(F))}},33009:(M,b,n)=>{"use strict";n.d(b,{n:()=>h});var t=n(56498),e=n(13650),l=n(66454);function h(r,d){return d?(0,l.r)(r,d):new t.y((0,e.V)(r))}},23753:(M,b,n)=>{"use strict";n.d(b,{R:()=>d});var t=n(56498),e=n(66688),l=n(67043),h=n(24850);function d(C,N,a,O){return(0,l.m)(a)&&(O=a,a=void 0),O?d(C,N,a).pipe((0,h.U)(H=>(0,e.k)(H)?O(...H):O(H))):new t.y(H=>{y(C,N,function F(V){H.next(arguments.length>1?Array.prototype.slice.call(arguments):V)},H,a)})}function y(C,N,a,O,H){let F;if(function f(C){return C&&"function"==typeof C.addEventListener&&"function"==typeof C.removeEventListener}(C)){const V=C;C.addEventListener(N,a,H),F=()=>V.removeEventListener(N,a,H)}else if(function p(C){return C&&"function"==typeof C.on&&"function"==typeof C.off}(C)){const V=C;C.on(N,a),F=()=>V.off(N,a)}else if(function g(C){return C&&"function"==typeof C.addListener&&"function"==typeof C.removeListener}(C)){const V=C;C.addListener(N,a),F=()=>V.removeListener(N,a)}else{if(!C||!C.length)throw new TypeError("Invalid event target");for(let V=0,D=C.length;V<D;V++)y(C[V],N,a,O,H)}O.add(F)}},36787:(M,b,n)=>{"use strict";n.d(b,{T:()=>r});var t=n(56498),e=n(72866),l=n(89146),h=n(33009);function r(...d){let y=Number.POSITIVE_INFINITY,g=null,p=d[d.length-1];return(0,e.K)(p)?(g=d.pop(),d.length>1&&"number"==typeof d[d.length-1]&&(y=d.pop())):"number"==typeof p&&(y=d.pop()),null===g&&1===d.length&&d[0]instanceof t.y?d[0]:(0,l.J)(y)((0,h.n)(d,g))}},21086:(M,b,n)=>{"use strict";n.d(b,{of:()=>h});var t=n(72866),e=n(33009),l=n(66454);function h(...r){let d=r[r.length-1];return(0,t.K)(d)?(r.pop(),(0,l.r)(r,d)):(0,e.n)(r)}},61737:(M,b,n)=>{"use strict";n.d(b,{_:()=>e});var t=n(56498);function e(h,r){return new t.y(r?d=>r.schedule(l,0,{error:h,subscriber:d}):d=>d.error(h))}function l({error:h,subscriber:r}){r.error(h)}},98723:(M,b,n)=>{"use strict";n.d(b,{H:()=>r});var t=n(56498),e=n(20353),l=n(84241),h=n(72866);function r(y=0,g,p){let f=-1;return(0,l.k)(g)?f=Number(g)<1?1:Number(g):(0,h.K)(g)&&(p=g),(0,h.K)(p)||(p=e.P),new t.y(C=>{const N=(0,l.k)(y)?y:+y-p.now();return p.schedule(d,N,{index:0,period:f,subscriber:C})})}function d(y){const{index:g,period:p,subscriber:f}=y;if(f.next(g),!f.closed){if(-1===p)return f.complete();y.index=g+1,this.schedule(y,p)}}},27221:(M,b,n)=>{"use strict";n.d(b,{K:()=>e});var t=n(41177);function e(r){return function(y){const g=new l(r),p=y.lift(g);return g.caught=p}}class l{constructor(d){this.selector=d}call(d,y){return y.subscribe(new h(d,this.selector,this.caught))}}class h extends t.Ds{constructor(d,y,g){super(d),this.selector=y,this.caught=g}error(d){if(!this.isStopped){let y;try{y=this.selector(d,this.caught)}catch(f){return void super.error(f)}this._unsubscribeAndRecycle();const g=new t.IY(this);this.add(g);const p=(0,t.ft)(y,g);p!==g&&this.add(p)}}}},21406:(M,b,n)=>{"use strict";n.d(b,{b:()=>e});var t=n(61709);function e(l,h){return(0,t.zg)(l,h,1)}},47314:(M,b,n)=>{"use strict";n.d(b,{d:()=>e});var t=n(43489);function e(r=null){return d=>d.lift(new l(r))}class l{constructor(d){this.defaultValue=d}call(d,y){return y.subscribe(new h(d,this.defaultValue))}}class h extends t.L{constructor(d,y){super(d),this.defaultValue=y,this.isEmpty=!0}_next(d){this.isEmpty=!1,this.destination.next(d)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},40943:(M,b,n)=>{"use strict";n.d(b,{g:()=>r});var t=n(20353),e=n(82697),l=n(43489),h=n(29312);function r(p,f=t.P){const N=(0,e.J)(p)?+p-f.now():Math.abs(p);return a=>a.lift(new d(N,f))}class d{constructor(f,C){this.delay=f,this.scheduler=C}call(f,C){return C.subscribe(new y(f,this.delay,this.scheduler))}}class y extends l.L{constructor(f,C,N){super(f),this.delay=C,this.scheduler=N,this.queue=[],this.active=!1,this.errored=!1}static dispatch(f){const C=f.source,N=C.queue,a=f.scheduler,O=f.destination;for(;N.length>0&&N[0].time-a.now()<=0;)N.shift().notification.observe(O);if(N.length>0){const H=Math.max(0,N[0].time-a.now());this.schedule(f,H)}else this.unsubscribe(),C.active=!1}_schedule(f){this.active=!0,this.destination.add(f.schedule(y.dispatch,this.delay,{source:this,destination:this.destination,scheduler:f}))}scheduleNotification(f){if(!0===this.errored)return;const C=this.scheduler,N=new g(C.now()+this.delay,f);this.queue.push(N),!1===this.active&&this._schedule(C)}_next(f){this.scheduleNotification(h.P.createNext(f))}_error(f){this.errored=!0,this.queue=[],this.destination.error(f),this.unsubscribe()}_complete(){this.scheduleNotification(h.P.createComplete()),this.unsubscribe()}}class g{constructor(f,C){this.time=f,this.notification=C}}},75778:(M,b,n)=>{"use strict";n.d(b,{x:()=>e});var t=n(43489);function e(r,d){return y=>y.lift(new l(r,d))}class l{constructor(d,y){this.compare=d,this.keySelector=y}call(d,y){return y.subscribe(new h(d,this.compare,this.keySelector))}}class h extends t.L{constructor(d,y,g){super(d),this.keySelector=g,this.hasKey=!1,"function"==typeof y&&(this.compare=y)}compare(d,y){return d===y}_next(d){let y;try{const{keySelector:p}=this;y=p?p(d):d}catch(p){return this.destination.error(p)}let g=!1;if(this.hasKey)try{const{compare:p}=this;g=p(this.key,y)}catch(p){return this.destination.error(p)}else this.hasKey=!0;g||(this.key=y,this.destination.next(d))}}},92198:(M,b,n)=>{"use strict";n.d(b,{h:()=>e});var t=n(43489);function e(r,d){return function(g){return g.lift(new l(r,d))}}class l{constructor(d,y){this.predicate=d,this.thisArg=y}call(d,y){return y.subscribe(new h(d,this.predicate,this.thisArg))}}class h extends t.L{constructor(d,y,g){super(d),this.predicate=y,this.thisArg=g,this.count=0}_next(d){let y;try{y=this.predicate.call(this.thisArg,d,this.count++)}catch(g){return void this.destination.error(g)}y&&this.destination.next(d)}}},40537:(M,b,n)=>{"use strict";n.d(b,{x:()=>l});var t=n(43489),e=n(42654);function l(d){return y=>y.lift(new h(d))}class h{constructor(y){this.callback=y}call(y,g){return g.subscribe(new r(y,this.callback))}}class r extends t.L{constructor(y,g){super(y),this.add(new e.w(g))}}},87224:(M,b,n)=>{"use strict";n.d(b,{P:()=>y});var t=n(84450),e=n(92198),l=n(72986),h=n(47314),r=n(34907),d=n(35379);function y(g,p){const f=arguments.length>=2;return C=>C.pipe(g?(0,e.h)((N,a)=>g(N,a,C)):d.y,(0,l.q)(1),f?(0,h.d)(p):(0,r.T)(()=>new t.K))}},24850:(M,b,n)=>{"use strict";n.d(b,{U:()=>e});var t=n(43489);function e(r,d){return function(g){if("function"!=typeof r)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return g.lift(new l(r,d))}}class l{constructor(d,y){this.project=d,this.thisArg=y}call(d,y){return y.subscribe(new h(d,this.project,this.thisArg))}}class h extends t.L{constructor(d,y,g){super(d),this.project=y,this.count=0,this.thisArg=g||this}_next(d){let y;try{y=this.project.call(this.thisArg,d,this.count++)}catch(g){return void this.destination.error(g)}this.destination.next(y)}}},89146:(M,b,n)=>{"use strict";n.d(b,{J:()=>l});var t=n(61709),e=n(35379);function l(h=Number.POSITIVE_INFINITY){return(0,t.zg)(e.y,h)}},61709:(M,b,n)=>{"use strict";n.d(b,{zg:()=>h});var t=n(24850),e=n(5254),l=n(41177);function h(g,p,f=Number.POSITIVE_INFINITY){return"function"==typeof p?C=>C.pipe(h((N,a)=>(0,e.D)(g(N,a)).pipe((0,t.U)((O,H)=>p(N,O,a,H))),f)):("number"==typeof p&&(f=p),C=>C.lift(new r(g,f)))}class r{constructor(p,f=Number.POSITIVE_INFINITY){this.project=p,this.concurrent=f}call(p,f){return f.subscribe(new d(p,this.project,this.concurrent))}}class d extends l.Ds{constructor(p,f,C=Number.POSITIVE_INFINITY){super(p),this.project=f,this.concurrent=C,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(p){this.active<this.concurrent?this._tryNext(p):this.buffer.push(p)}_tryNext(p){let f;const C=this.index++;try{f=this.project(p,C)}catch(N){return void this.destination.error(N)}this.active++,this._innerSub(f)}_innerSub(p){const f=new l.IY(this),C=this.destination;C.add(f);const N=(0,l.ft)(p,f);N!==f&&C.add(N)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(p){this.destination.next(p)}notifyComplete(){const p=this.buffer;this.active--,p.length>0?this._next(p.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},82536:(M,b,n)=>{"use strict";n.d(b,{O:()=>e});var t=n(71762);function e(h,r){return function(y){let g;if(g="function"==typeof h?h:function(){return h},"function"==typeof r)return y.lift(new l(g,r));const p=Object.create(y,t.N);return p.source=y,p.subjectFactory=g,p}}class l{constructor(r,d){this.subjectFactory=r,this.selector=d}call(r,d){const{selector:y}=this,g=this.subjectFactory(),p=y(g).subscribe(r);return p.add(d.subscribe(g)),p}}},57770:(M,b,n)=>{"use strict";n.d(b,{QV:()=>l,ht:()=>r});var t=n(43489),e=n(29312);function l(y,g=0){return function(f){return f.lift(new h(y,g))}}class h{constructor(g,p=0){this.scheduler=g,this.delay=p}call(g,p){return p.subscribe(new r(g,this.scheduler,this.delay))}}class r extends t.L{constructor(g,p,f=0){super(g),this.scheduler=p,this.delay=f}static dispatch(g){const{notification:p,destination:f}=g;p.observe(f),this.unsubscribe()}scheduleMessage(g){this.destination.add(this.scheduler.schedule(r.dispatch,this.delay,new d(g,this.destination)))}_next(g){this.scheduleMessage(e.P.createNext(g))}_error(g){this.scheduleMessage(e.P.createError(g)),this.unsubscribe()}_complete(){this.scheduleMessage(e.P.createComplete()),this.unsubscribe()}}class d{constructor(g,p){this.notification=g,this.destination=p}}},74327:(M,b,n)=>{"use strict";n.d(b,{x:()=>e});var t=n(43489);function e(){return function(d){return d.lift(new l(d))}}class l{constructor(d){this.connectable=d}call(d,y){const{connectable:g}=this;g._refCount++;const p=new h(d,g),f=y.subscribe(p);return p.closed||(p.connection=g.connect()),f}}class h extends t.L{constructor(d,y){super(d),this.connectable=y}_unsubscribe(){const{connectable:d}=this;if(!d)return void(this.connection=null);this.connectable=null;const y=d._refCount;if(y<=0)return void(this.connection=null);if(d._refCount=y-1,y>1)return void(this.connection=null);const{connection:g}=this,p=d._connection;this.connection=null,p&&(!g||p===g)&&p.unsubscribe()}}},59973:(M,b,n)=>{"use strict";n.d(b,{X:()=>e});var t=n(43489);function e(r=-1){return d=>d.lift(new l(r,d))}class l{constructor(d,y){this.count=d,this.source=y}call(d,y){return y.subscribe(new h(d,this.count,this.source))}}class h extends t.L{constructor(d,y,g){super(d),this.count=y,this.source=g}error(d){if(!this.isStopped){const{source:y,count:g}=this;if(0===g)return super.error(d);g>-1&&(this.count=g-1),y.subscribe(this._unsubscribeAndRecycle())}}}},92014:(M,b,n)=>{"use strict";n.d(b,{R:()=>e});var t=n(43489);function e(r,d){let y=!1;return arguments.length>=2&&(y=!0),function(p){return p.lift(new l(r,d,y))}}class l{constructor(d,y,g=!1){this.accumulator=d,this.seed=y,this.hasSeed=g}call(d,y){return y.subscribe(new h(d,this.accumulator,this.seed,this.hasSeed))}}class h extends t.L{constructor(d,y,g,p){super(d),this.accumulator=y,this._seed=g,this.hasSeed=p,this.index=0}get seed(){return this._seed}set seed(d){this.hasSeed=!0,this._seed=d}_next(d){if(this.hasSeed)return this._tryNext(d);this.seed=d,this.destination.next(d)}_tryNext(d){const y=this.index++;let g;try{g=this.accumulator(this.seed,d,y)}catch(p){this.destination.error(p)}this.seed=g,this.destination.next(g)}}},88117:(M,b,n)=>{"use strict";n.d(b,{B:()=>r});var t=n(82536),e=n(74327),l=n(8929);function h(){return new l.xQ}function r(){return d=>(0,e.x)()((0,t.O)(h)(d))}},5154:(M,b,n)=>{"use strict";n.d(b,{d:()=>e});var t=n(30839);function e(h,r,d){let y;return y=h&&"object"==typeof h?h:{bufferSize:h,windowTime:r,refCount:!1,scheduler:d},g=>g.lift(function l({bufferSize:h=Number.POSITIVE_INFINITY,windowTime:r=Number.POSITIVE_INFINITY,refCount:d,scheduler:y}){let g,f,p=0,C=!1,N=!1;return function(O){let H;p++,!g||C?(C=!1,g=new t.t(h,r,y),H=g.subscribe(this),f=O.subscribe({next(F){g.next(F)},error(F){C=!0,g.error(F)},complete(){N=!0,f=void 0,g.complete()}}),N&&(f=void 0)):H=g.subscribe(this),this.add(()=>{p--,H.unsubscribe(),H=void 0,f&&!N&&d&&0===p&&(f.unsubscribe(),f=void 0,g=void 0)})}}(y))}},13334:(M,b,n)=>{"use strict";n.d(b,{R:()=>r});var t=n(56498),e=n(8139),l=n(84241);class h extends t.y{constructor(g,p=0,f=e.e){super(),this.source=g,this.delayTime=p,this.scheduler=f,(!(0,l.k)(p)||p<0)&&(this.delayTime=0),(!f||"function"!=typeof f.schedule)&&(this.scheduler=e.e)}static create(g,p=0,f=e.e){return new h(g,p,f)}static dispatch(g){const{source:p,subscriber:f}=g;return this.add(p.subscribe(f))}_subscribe(g){return this.scheduler.schedule(h.dispatch,this.delayTime,{source:this.source,subscriber:g})}}function r(y,g=0){return function(f){return f.lift(new d(y,g))}}class d{constructor(g,p){this.scheduler=g,this.delay=p}call(g,p){return new h(p,this.delay,this.scheduler).subscribe(g)}}},87545:(M,b,n)=>{"use strict";n.d(b,{w:()=>h});var t=n(24850),e=n(5254),l=n(41177);function h(y,g){return"function"==typeof g?p=>p.pipe(h((f,C)=>(0,e.D)(y(f,C)).pipe((0,t.U)((N,a)=>g(f,N,C,a))))):p=>p.lift(new r(y))}class r{constructor(g){this.project=g}call(g,p){return p.subscribe(new d(g,this.project))}}class d extends l.Ds{constructor(g,p){super(g),this.project=p,this.index=0}_next(g){let p;const f=this.index++;try{p=this.project(g,f)}catch(C){return void this.destination.error(C)}this._innerSub(p)}_innerSub(g){const p=this.innerSubscription;p&&p.unsubscribe();const f=new l.IY(this),C=this.destination;C.add(f),this.innerSubscription=(0,l.ft)(g,f),this.innerSubscription!==f&&C.add(this.innerSubscription)}_complete(){const{innerSubscription:g}=this;(!g||g.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(g){this.destination.next(g)}}},2313:(M,b,n)=>{"use strict";n.d(b,{c:()=>e});var t=n(87545);function e(l,h){return h?(0,t.w)(()=>l,h):(0,t.w)(()=>l)}},72986:(M,b,n)=>{"use strict";n.d(b,{q:()=>h});var t=n(43489),e=n(94231),l=n(68896);function h(y){return g=>0===y?(0,l.c)():g.lift(new r(y))}class r{constructor(g){if(this.total=g,this.total<0)throw new e.W}call(g,p){return p.subscribe(new d(g,this.total))}}class d extends t.L{constructor(g,p){super(g),this.total=p,this.count=0}_next(g){const p=this.total,f=++this.count;f<=p&&(this.destination.next(g),f===p&&(this.destination.complete(),this.unsubscribe()))}}},92821:(M,b,n)=>{"use strict";n.d(b,{h:()=>h});var t=n(43489),e=n(94231),l=n(68896);function h(y){return function(p){return 0===y?(0,l.c)():p.lift(new r(y))}}class r{constructor(g){if(this.total=g,this.total<0)throw new e.W}call(g,p){return p.subscribe(new d(g,this.total))}}class d extends t.L{constructor(g,p){super(g),this.total=p,this.ring=new Array,this.count=0}_next(g){const p=this.ring,f=this.total,C=this.count++;p.length<f?p.push(g):p[C%f]=g}_complete(){const g=this.destination;let p=this.count;if(p>0){const f=this.count>=this.total?this.total:this.count,C=this.ring;for(let N=0;N<f;N++){const a=p++%f;g.next(C[a])}}g.complete()}}},7625:(M,b,n)=>{"use strict";n.d(b,{R:()=>e});var t=n(41177);function e(r){return d=>d.lift(new l(r))}class l{constructor(d){this.notifier=d}call(d,y){const g=new h(d),p=(0,t.ft)(this.notifier,new t.IY(g));return p&&!g.seenValue?(g.add(p),y.subscribe(g)):g}}class h extends t.Ds{constructor(d){super(d),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},2994:(M,b,n)=>{"use strict";n.d(b,{b:()=>h});var t=n(43489),e=n(67876),l=n(67043);function h(y,g,p){return function(C){return C.lift(new r(y,g,p))}}class r{constructor(g,p,f){this.nextOrObserver=g,this.error=p,this.complete=f}call(g,p){return p.subscribe(new d(g,this.nextOrObserver,this.error,this.complete))}}class d extends t.L{constructor(g,p,f,C){super(g),this._tapNext=e.Z,this._tapError=e.Z,this._tapComplete=e.Z,this._tapError=f||e.Z,this._tapComplete=C||e.Z,(0,l.m)(p)?(this._context=this,this._tapNext=p):p&&(this._context=p,this._tapNext=p.next||e.Z,this._tapError=p.error||e.Z,this._tapComplete=p.complete||e.Z)}_next(g){try{this._tapNext.call(this._context,g)}catch(p){return void this.destination.error(p)}this.destination.next(g)}_error(g){try{this._tapError.call(this._context,g)}catch(p){return void this.destination.error(p)}this.destination.error(g)}_complete(){try{this._tapComplete.call(this._context)}catch(g){return void this.destination.error(g)}return this.destination.complete()}}},34907:(M,b,n)=>{"use strict";n.d(b,{T:()=>l});var t=n(84450),e=n(43489);function l(y=d){return g=>g.lift(new h(y))}class h{constructor(g){this.errorFactory=g}call(g,p){return p.subscribe(new r(g,this.errorFactory))}}class r extends e.L{constructor(g,p){super(g),this.errorFactory=p,this.hasValue=!1}_next(g){this.hasValue=!0,this.destination.next(g)}_complete(){if(this.hasValue)return this.destination.complete();{let g;try{g=this.errorFactory()}catch(p){g=p}this.destination.error(g)}}}function d(){return new t.K}},66454:(M,b,n)=>{"use strict";n.d(b,{r:()=>l});var t=n(56498),e=n(42654);function l(h,r){return new t.y(d=>{const y=new e.w;let g=0;return y.add(r.schedule(function(){g!==h.length?(d.next(h[g++]),d.closed||y.add(this.schedule())):d.complete()})),y})}},56686:(M,b,n)=>{"use strict";n.d(b,{o:()=>l});var t=n(42654);class e extends t.w{constructor(r,d){super()}schedule(r,d=0){return this}}class l extends e{constructor(r,d){super(r,d),this.scheduler=r,this.work=d,this.pending=!1}schedule(r,d=0){if(this.closed)return this;this.state=r;const y=this.id,g=this.scheduler;return null!=y&&(this.id=this.recycleAsyncId(g,y,d)),this.pending=!0,this.delay=d,this.id=this.id||this.requestAsyncId(g,this.id,d),this}requestAsyncId(r,d,y=0){return setInterval(r.flush.bind(r,this),y)}recycleAsyncId(r,d,y=0){if(null!==y&&this.delay===y&&!1===this.pending)return d;clearInterval(d)}execute(r,d){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const y=this._execute(r,d);if(y)return y;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(r,d){let g,y=!1;try{this.work(r)}catch(p){y=!0,g=!!p&&p||new Error(p)}if(y)return this.unsubscribe(),g}_unsubscribe(){const r=this.id,d=this.scheduler,y=d.actions,g=y.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==g&&y.splice(g,1),null!=r&&(this.id=this.recycleAsyncId(d,r,null)),this.delay=null}}},32268:(M,b,n)=>{"use strict";n.d(b,{v:()=>e});let t=(()=>{class l{constructor(r,d=l.now){this.SchedulerAction=r,this.now=d}schedule(r,d=0,y){return new this.SchedulerAction(this,r).schedule(y,d)}}return l.now=()=>Date.now(),l})();class e extends t{constructor(h,r=t.now){super(h,()=>e.delegate&&e.delegate!==this?e.delegate.now():r()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(h,r=0,d){return e.delegate&&e.delegate!==this?e.delegate.schedule(h,r,d):super.schedule(h,r,d)}flush(h){const{actions:r}=this;if(this.active)return void r.push(h);let d;this.active=!0;do{if(d=h.execute(h.state,h.delay))break}while(h=r.shift());if(this.active=!1,d){for(;h=r.shift();)h.unsubscribe();throw d}}}},90352:(M,b,n)=>{"use strict";n.d(b,{Z:()=>r});var t=n(56686),l=n(32268);const r=new class h extends l.v{flush(g){this.active=!0,this.scheduled=void 0;const{actions:p}=this;let f,C=-1,N=p.length;g=g||p.shift();do{if(f=g.execute(g.state,g.delay))break}while(++C<N&&(g=p.shift()));if(this.active=!1,f){for(;++C<N&&(g=p.shift());)g.unsubscribe();throw f}}}(class e extends t.o{constructor(g,p){super(g,p),this.scheduler=g,this.work=p}requestAsyncId(g,p,f=0){return null!==f&&f>0?super.requestAsyncId(g,p,f):(g.actions.push(this),g.scheduled||(g.scheduled=requestAnimationFrame(()=>g.flush(null))))}recycleAsyncId(g,p,f=0){if(null!==f&&f>0||null===f&&this.delay>0)return super.recycleAsyncId(g,p,f);0===g.actions.length&&(cancelAnimationFrame(p),g.scheduled=void 0)}})},8139:(M,b,n)=>{"use strict";n.d(b,{e:()=>N,E:()=>C});let t=1;const e=Promise.resolve(),l={};function h(a){return a in l&&(delete l[a],!0)}const r={setImmediate(a){const O=t++;return l[O]=!0,e.then(()=>h(O)&&a()),O},clearImmediate(a){h(a)}};var y=n(56686),p=n(32268);const C=new class f extends p.v{flush(O){this.active=!0,this.scheduled=void 0;const{actions:H}=this;let F,V=-1,D=H.length;O=O||H.shift();do{if(F=O.execute(O.state,O.delay))break}while(++V<D&&(O=H.shift()));if(this.active=!1,F){for(;++V<D&&(O=H.shift());)O.unsubscribe();throw F}}}(class g extends y.o{constructor(O,H){super(O,H),this.scheduler=O,this.work=H}requestAsyncId(O,H,F=0){return null!==F&&F>0?super.requestAsyncId(O,H,F):(O.actions.push(this),O.scheduled||(O.scheduled=r.setImmediate(O.flush.bind(O,null))))}recycleAsyncId(O,H,F=0){if(null!==F&&F>0||null===F&&this.delay>0)return super.recycleAsyncId(O,H,F);0===O.actions.length&&(r.clearImmediate(H),O.scheduled=void 0)}}),N=C},20353:(M,b,n)=>{"use strict";n.d(b,{P:()=>h,z:()=>l});var t=n(56686);const l=new(n(32268).v)(t.o),h=l},30341:(M,b,n)=>{"use strict";n.d(b,{c:()=>d,N:()=>r});var t=n(56686),l=n(32268);const r=new class h extends l.v{}(class e extends t.o{constructor(g,p){super(g,p),this.scheduler=g,this.work=p}schedule(g,p=0){return p>0?super.schedule(g,p):(this.delay=p,this.state=g,this.scheduler.flush(this),this)}execute(g,p){return p>0||this.closed?super.execute(g,p):this._execute(g,p)}requestAsyncId(g,p,f=0){return null!==f&&f>0||null===f&&this.delay>0?super.requestAsyncId(g,p,f):g.flush(this)}}),d=r},5430:(M,b,n)=>{"use strict";n.d(b,{hZ:()=>e});const e=function t(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},93821:(M,b,n)=>{"use strict";n.d(b,{L:()=>t});const t="function"==typeof Symbol&&Symbol.observable||"@@observable"},57668:(M,b,n)=>{"use strict";n.d(b,{b:()=>t});const t="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},94231:(M,b,n)=>{"use strict";n.d(b,{W:()=>e});const e=(()=>{function l(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return l.prototype=Object.create(Error.prototype),l})()},84450:(M,b,n)=>{"use strict";n.d(b,{K:()=>e});const e=(()=>{function l(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return l.prototype=Object.create(Error.prototype),l})()},95279:(M,b,n)=>{"use strict";n.d(b,{N:()=>e});const e=(()=>{function l(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return l.prototype=Object.create(Error.prototype),l})()},22782:(M,b,n)=>{"use strict";function t(e){setTimeout(()=>{throw e},0)}n.d(b,{z:()=>t})},35379:(M,b,n)=>{"use strict";function t(e){return e}n.d(b,{y:()=>t})},66688:(M,b,n)=>{"use strict";n.d(b,{k:()=>t});const t=Array.isArray||(e=>e&&"number"==typeof e.length)},58515:(M,b,n)=>{"use strict";n.d(b,{z:()=>t});const t=e=>e&&"number"==typeof e.length&&"function"!=typeof e},82697:(M,b,n)=>{"use strict";function t(e){return e instanceof Date&&!isNaN(+e)}n.d(b,{J:()=>t})},67043:(M,b,n)=>{"use strict";function t(e){return"function"==typeof e}n.d(b,{m:()=>t})},84241:(M,b,n)=>{"use strict";n.d(b,{k:()=>e});var t=n(66688);function e(l){return!(0,t.k)(l)&&l-parseFloat(l)+1>=0}},57830:(M,b,n)=>{"use strict";function t(e){return null!==e&&"object"==typeof e}n.d(b,{K:()=>t})},98955:(M,b,n)=>{"use strict";function t(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(b,{t:()=>t})},72866:(M,b,n)=>{"use strict";function t(e){return e&&"function"==typeof e.schedule}n.d(b,{K:()=>t})},67876:(M,b,n)=>{"use strict";function t(){}n.d(b,{Z:()=>t})},4843:(M,b,n)=>{"use strict";n.d(b,{U:()=>l,z:()=>e});var t=n(35379);function e(...h){return l(h)}function l(h){return 0===h.length?t.y:1===h.length?h[0]:function(d){return h.reduce((y,g)=>g(y),d)}}},59249:(M,b,n)=>{"use strict";n.d(b,{s:()=>C});var t=n(13650),e=n(22782),h=n(5430),d=n(93821),g=n(58515),p=n(98955),f=n(57830);const C=N=>{if(N&&"function"==typeof N[d.L])return(N=>a=>{const O=N[d.L]();if("function"!=typeof O.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return O.subscribe(a)})(N);if((0,g.z)(N))return(0,t.V)(N);if((0,p.t)(N))return(N=>a=>(N.then(O=>{a.closed||(a.next(O),a.complete())},O=>a.error(O)).then(null,e.z),a))(N);if(N&&"function"==typeof N[h.hZ])return(N=>a=>{const O=N[h.hZ]();for(;;){let H;try{H=O.next()}catch(F){return a.error(F),a}if(H.done){a.complete();break}if(a.next(H.value),a.closed)break}return"function"==typeof O.return&&a.add(()=>{O.return&&O.return()}),a})(N);{const O=`You provided ${(0,f.K)(N)?"an invalid object":`'${N}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(O)}}},13650:(M,b,n)=>{"use strict";n.d(b,{V:()=>t});const t=e=>l=>{for(let h=0,r=e.length;h<r&&!l.closed;h++)l.next(e[h]);l.complete()}},40448:(M,b,n)=>{"use strict";n.d(b,{D:()=>r});var t=n(43489);class e extends t.L{constructor(y,g,p){super(),this.parent=y,this.outerValue=g,this.outerIndex=p,this.index=0}_next(y){this.parent.notifyNext(this.outerValue,y,this.outerIndex,this.index++,this)}_error(y){this.parent.notifyError(y,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var l=n(59249),h=n(56498);function r(d,y,g,p,f=new e(d,g,p)){if(!f.closed)return y instanceof h.y?y.subscribe(f):(0,l.s)(y)(f)}},73502:(M,b,n)=>{var t=n(93172),e=t.Buffer;function l(r,d){for(var y in r)d[y]=r[y]}function h(r,d,y){return e(r,d,y)}e.from&&e.alloc&&e.allocUnsafe&&e.allocUnsafeSlow?M.exports=t:(l(t,b),b.Buffer=h),h.prototype=Object.create(e.prototype),l(e,h),h.from=function(r,d,y){if("number"==typeof r)throw new TypeError("Argument must not be a number");return e(r,d,y)},h.alloc=function(r,d,y){if("number"!=typeof r)throw new TypeError("Argument must be a number");var g=e(r);return void 0!==d?"string"==typeof y?g.fill(d,y):g.fill(d):g.fill(0),g},h.allocUnsafe=function(r){if("number"!=typeof r)throw new TypeError("Argument must be a number");return e(r)},h.allocUnsafeSlow=function(r){if("number"!=typeof r)throw new TypeError("Argument must be a number");return t.SlowBuffer(r)}},62038:(M,b,n)=>{"use strict";var h,t=n(93172),e=t.Buffer,l={};for(h in t)!t.hasOwnProperty(h)||"SlowBuffer"===h||"Buffer"===h||(l[h]=t[h]);var r=l.Buffer={};for(h in e)!e.hasOwnProperty(h)||"allocUnsafe"===h||"allocUnsafeSlow"===h||(r[h]=e[h]);if(l.Buffer.prototype=e.prototype,(!r.from||r.from===Uint8Array.from)&&(r.from=function(d,y,g){if("number"==typeof d)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof d);if(d&&typeof d.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof d);return e(d,y,g)}),r.alloc||(r.alloc=function(d,y,g){if("number"!=typeof d)throw new TypeError('The "size" argument must be of type number. Received type '+typeof d);if(d<0||d>=2*(1<<30))throw new RangeError('The value "'+d+'" is invalid for option "size"');var p=e(d);return y&&0!==y.length?"string"==typeof g?p.fill(y,g):p.fill(y):p.fill(0),p}),!l.kStringMaxLength)try{l.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch{}l.constants||(l.constants={MAX_LENGTH:l.kMaxLength},l.kStringMaxLength&&(l.constants.MAX_STRING_LENGTH=l.kStringMaxLength)),M.exports=l},86692:(M,b,n)=>{var t=n(73502).Buffer;function e(l,h){this._block=t.alloc(l),this._finalSize=h,this._blockSize=l,this._len=0}e.prototype.update=function(l,h){"string"==typeof l&&(l=t.from(l,h=h||"utf8"));for(var r=this._block,d=this._blockSize,y=l.length,g=this._len,p=0;p<y;){for(var f=g%d,C=Math.min(y-p,d-f),N=0;N<C;N++)r[f+N]=l[p+N];p+=C,(g+=C)%d==0&&this._update(r)}return this._len+=y,this},e.prototype.digest=function(l){var h=this._len%this._blockSize;this._block[h]=128,this._block.fill(0,h+1),h>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var d=(4294967295&r)>>>0;this._block.writeUInt32BE((r-d)/4294967296,this._blockSize-8),this._block.writeUInt32BE(d,this._blockSize-4)}this._update(this._block);var g=this._hash();return l?g.toString(l):g},e.prototype._update=function(){throw new Error("_update must be implemented by subclass")},M.exports=e},95244:(M,b,n)=>{var t=M.exports=function(l){l=l.toLowerCase();var h=t[l];if(!h)throw new Error(l+" is not supported (we accept pull requests)");return new h};t.sha=n(88932),t.sha1=n(17736),t.sha224=n(25044),t.sha256=n(15014),t.sha384=n(76540),t.sha512=n(10117)},88932:(M,b,n)=>{var t=n(83894),e=n(86692),l=n(73502).Buffer,h=[1518500249,1859775393,-1894007588,-899497514],r=new Array(80);function d(){this.init(),this._w=r,e.call(this,64,56)}function y(f){return f<<5|f>>>27}function g(f){return f<<30|f>>>2}function p(f,C,N,a){return 0===f?C&N|~C&a:2===f?C&N|C&a|N&a:C^N^a}t(d,e),d.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},d.prototype._update=function(f){for(var C=this._w,N=0|this._a,a=0|this._b,O=0|this._c,H=0|this._d,F=0|this._e,V=0;V<16;++V)C[V]=f.readInt32BE(4*V);for(;V<80;++V)C[V]=C[V-3]^C[V-8]^C[V-14]^C[V-16];for(var D=0;D<80;++D){var U=~~(D/20),q=y(N)+p(U,a,O,H)+F+C[D]+h[U]|0;F=H,H=O,O=g(a),a=N,N=q}this._a=N+this._a|0,this._b=a+this._b|0,this._c=O+this._c|0,this._d=H+this._d|0,this._e=F+this._e|0},d.prototype._hash=function(){var f=l.allocUnsafe(20);return f.writeInt32BE(0|this._a,0),f.writeInt32BE(0|this._b,4),f.writeInt32BE(0|this._c,8),f.writeInt32BE(0|this._d,12),f.writeInt32BE(0|this._e,16),f},M.exports=d},17736:(M,b,n)=>{var t=n(83894),e=n(86692),l=n(73502).Buffer,h=[1518500249,1859775393,-1894007588,-899497514],r=new Array(80);function d(){this.init(),this._w=r,e.call(this,64,56)}function y(C){return C<<1|C>>>31}function g(C){return C<<5|C>>>27}function p(C){return C<<30|C>>>2}function f(C,N,a,O){return 0===C?N&a|~N&O:2===C?N&a|N&O|a&O:N^a^O}t(d,e),d.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},d.prototype._update=function(C){for(var N=this._w,a=0|this._a,O=0|this._b,H=0|this._c,F=0|this._d,V=0|this._e,D=0;D<16;++D)N[D]=C.readInt32BE(4*D);for(;D<80;++D)N[D]=y(N[D-3]^N[D-8]^N[D-14]^N[D-16]);for(var U=0;U<80;++U){var q=~~(U/20),J=g(a)+f(q,O,H,F)+V+N[U]+h[q]|0;V=F,F=H,H=p(O),O=a,a=J}this._a=a+this._a|0,this._b=O+this._b|0,this._c=H+this._c|0,this._d=F+this._d|0,this._e=V+this._e|0},d.prototype._hash=function(){var C=l.allocUnsafe(20);return C.writeInt32BE(0|this._a,0),C.writeInt32BE(0|this._b,4),C.writeInt32BE(0|this._c,8),C.writeInt32BE(0|this._d,12),C.writeInt32BE(0|this._e,16),C},M.exports=d},25044:(M,b,n)=>{var t=n(83894),e=n(15014),l=n(86692),h=n(73502).Buffer,r=new Array(64);function d(){this.init(),this._w=r,l.call(this,64,56)}t(d,e),d.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},d.prototype._hash=function(){var y=h.allocUnsafe(28);return y.writeInt32BE(this._a,0),y.writeInt32BE(this._b,4),y.writeInt32BE(this._c,8),y.writeInt32BE(this._d,12),y.writeInt32BE(this._e,16),y.writeInt32BE(this._f,20),y.writeInt32BE(this._g,24),y},M.exports=d},15014:(M,b,n)=>{var t=n(83894),e=n(86692),l=n(73502).Buffer,h=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],r=new Array(64);function d(){this.init(),this._w=r,e.call(this,64,56)}function y(a,O,H){return H^a&(O^H)}function g(a,O,H){return a&O|H&(a|O)}function p(a){return(a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10)}function f(a){return(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7)}function C(a){return(a>>>7|a<<25)^(a>>>18|a<<14)^a>>>3}function N(a){return(a>>>17|a<<15)^(a>>>19|a<<13)^a>>>10}t(d,e),d.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},d.prototype._update=function(a){for(var O=this._w,H=0|this._a,F=0|this._b,V=0|this._c,D=0|this._d,U=0|this._e,q=0|this._f,J=0|this._g,G=0|this._h,ie=0;ie<16;++ie)O[ie]=a.readInt32BE(4*ie);for(;ie<64;++ie)O[ie]=N(O[ie-2])+O[ie-7]+C(O[ie-15])+O[ie-16]|0;for(var K=0;K<64;++K){var re=G+f(U)+y(U,q,J)+h[K]+O[K]|0,oe=p(H)+g(H,F,V)|0;G=J,J=q,q=U,U=D+re|0,D=V,V=F,F=H,H=re+oe|0}this._a=H+this._a|0,this._b=F+this._b|0,this._c=V+this._c|0,this._d=D+this._d|0,this._e=U+this._e|0,this._f=q+this._f|0,this._g=J+this._g|0,this._h=G+this._h|0},d.prototype._hash=function(){var a=l.allocUnsafe(32);return a.writeInt32BE(this._a,0),a.writeInt32BE(this._b,4),a.writeInt32BE(this._c,8),a.writeInt32BE(this._d,12),a.writeInt32BE(this._e,16),a.writeInt32BE(this._f,20),a.writeInt32BE(this._g,24),a.writeInt32BE(this._h,28),a},M.exports=d},76540:(M,b,n)=>{var t=n(83894),e=n(10117),l=n(86692),h=n(73502).Buffer,r=new Array(160);function d(){this.init(),this._w=r,l.call(this,128,112)}t(d,e),d.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},d.prototype._hash=function(){var y=h.allocUnsafe(48);function g(p,f,C){y.writeInt32BE(p,C),y.writeInt32BE(f,C+4)}return g(this._ah,this._al,0),g(this._bh,this._bl,8),g(this._ch,this._cl,16),g(this._dh,this._dl,24),g(this._eh,this._el,32),g(this._fh,this._fl,40),y},M.exports=d},10117:(M,b,n)=>{var t=n(83894),e=n(86692),l=n(73502).Buffer,h=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],r=new Array(160);function d(){this.init(),this._w=r,e.call(this,128,112)}function y(F,V,D){return D^F&(V^D)}function g(F,V,D){return F&V|D&(F|V)}function p(F,V){return(F>>>28|V<<4)^(V>>>2|F<<30)^(V>>>7|F<<25)}function f(F,V){return(F>>>14|V<<18)^(F>>>18|V<<14)^(V>>>9|F<<23)}function C(F,V){return(F>>>1|V<<31)^(F>>>8|V<<24)^F>>>7}function N(F,V){return(F>>>1|V<<31)^(F>>>8|V<<24)^(F>>>7|V<<25)}function a(F,V){return(F>>>19|V<<13)^(V>>>29|F<<3)^F>>>6}function O(F,V){return(F>>>19|V<<13)^(V>>>29|F<<3)^(F>>>6|V<<26)}function H(F,V){return F>>>0<V>>>0?1:0}t(d,e),d.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},d.prototype._update=function(F){for(var V=this._w,D=0|this._ah,U=0|this._bh,q=0|this._ch,J=0|this._dh,G=0|this._eh,ie=0|this._fh,K=0|this._gh,re=0|this._hh,oe=0|this._al,B=0|this._bl,s=0|this._cl,_=0|this._dl,w=0|this._el,E=0|this._fl,x=0|this._gl,j=0|this._hl,$=0;$<32;$+=2)V[$]=F.readInt32BE(4*$),V[$+1]=F.readInt32BE(4*$+4);for(;$<160;$+=2){var Y=V[$-30],u=V[$-30+1],W=C(Y,u),fe=N(u,Y),ae=a(Y=V[$-4],u=V[$-4+1]),ye=O(u,Y),At=V[$-32],Ze=V[$-32+1],at=fe+V[$-14+1]|0,Be=W+V[$-14]+H(at,fe)|0;Be=(Be=Be+ae+H(at=at+ye|0,ye)|0)+At+H(at=at+Ze|0,Ze)|0,V[$]=Be,V[$+1]=at}for(var Lt=0;Lt<160;Lt+=2){Be=V[Lt],at=V[Lt+1];var _e=g(D,U,q),ne=g(oe,B,s),be=p(D,oe),Te=p(oe,D),$e=f(G,w),ft=f(w,G),Ge=h[Lt],Ft=h[Lt+1],br=y(G,ie,K),rt=y(w,E,x),st=j+ft|0,Dt=re+$e+H(st,j)|0;Dt=(Dt=(Dt=Dt+br+H(st=st+rt|0,rt)|0)+Ge+H(st=st+Ft|0,Ft)|0)+Be+H(st=st+at|0,at)|0;var ot=Te+ne|0,nt=be+_e+H(ot,Te)|0;re=K,j=x,K=ie,x=E,ie=G,E=w,G=J+Dt+H(w=_+st|0,_)|0,J=q,_=s,q=U,s=B,U=D,B=oe,D=Dt+nt+H(oe=st+ot|0,st)|0}this._al=this._al+oe|0,this._bl=this._bl+B|0,this._cl=this._cl+s|0,this._dl=this._dl+_|0,this._el=this._el+w|0,this._fl=this._fl+E|0,this._gl=this._gl+x|0,this._hl=this._hl+j|0,this._ah=this._ah+D+H(this._al,oe)|0,this._bh=this._bh+U+H(this._bl,B)|0,this._ch=this._ch+q+H(this._cl,s)|0,this._dh=this._dh+J+H(this._dl,_)|0,this._eh=this._eh+G+H(this._el,w)|0,this._fh=this._fh+ie+H(this._fl,E)|0,this._gh=this._gh+K+H(this._gl,x)|0,this._hh=this._hh+re+H(this._hl,j)|0},d.prototype._hash=function(){var F=l.allocUnsafe(64);function V(D,U,q){F.writeInt32BE(D,q),F.writeInt32BE(U,q+4)}return V(this._ah,this._al,0),V(this._bh,this._bl,8),V(this._ch,this._cl,16),V(this._dh,this._dl,24),V(this._eh,this._el,32),V(this._fh,this._fl,40),V(this._gh,this._gl,48),V(this._hh,this._hl,56),F},M.exports=d},295:(M,b,n)=>{M.exports=l;var t=n(59069).EventEmitter;function l(){t.call(this)}n(83894)(l,t),l.Readable=n(3154),l.Writable=n(20520),l.Duplex=n(41339),l.Transform=n(6025),l.PassThrough=n(56071),l.finished=n(67542),l.pipeline=n(90954),l.Stream=l,l.prototype.pipe=function(h,r){var d=this;function y(O){h.writable&&!1===h.write(O)&&d.pause&&d.pause()}function g(){d.readable&&d.resume&&d.resume()}d.on("data",y),h.on("drain",g),!h._isStdio&&(!r||!1!==r.end)&&(d.on("end",f),d.on("close",C));var p=!1;function f(){p||(p=!0,h.end())}function C(){p||(p=!0,"function"==typeof h.destroy&&h.destroy())}function N(O){if(a(),0===t.listenerCount(this,"error"))throw O}function a(){d.removeListener("data",y),h.removeListener("drain",g),d.removeListener("end",f),d.removeListener("close",C),d.removeListener("error",N),h.removeListener("error",N),d.removeListener("end",a),d.removeListener("close",a),h.removeListener("close",a)}return d.on("error",N),h.on("error",N),d.on("end",a),d.on("close",a),h.on("close",a),h.emit("pipe",d),h}},73054:(M,b,n)=>{"use strict";var t=n(73502).Buffer,e=t.isEncoding||function(D){switch((D=""+D)&&D.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(D){var U;switch(this.encoding=function h(D){var U=function l(D){if(!D)return"utf8";for(var U;;)switch(D){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return D;default:if(U)return;D=(""+D).toLowerCase(),U=!0}}(D);if("string"!=typeof U&&(t.isEncoding===e||!e(D)))throw new Error("Unknown encoding: "+D);return U||D}(D),this.encoding){case"utf16le":this.text=N,this.end=a,U=4;break;case"utf8":this.fillLast=p,U=4;break;case"base64":this.text=O,this.end=H,U=3;break;default:return this.write=F,void(this.end=V)}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(U)}function d(D){return D<=127?0:D>>5==6?2:D>>4==14?3:D>>3==30?4:D>>6==2?-1:-2}function p(D){var U=this.lastTotal-this.lastNeed,q=function g(D,U,q){if(128!=(192&U[0]))return D.lastNeed=0,"\ufffd";if(D.lastNeed>1&&U.length>1){if(128!=(192&U[1]))return D.lastNeed=1,"\ufffd";if(D.lastNeed>2&&U.length>2&&128!=(192&U[2]))return D.lastNeed=2,"\ufffd"}}(this,D);return void 0!==q?q:this.lastNeed<=D.length?(D.copy(this.lastChar,U,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(D.copy(this.lastChar,U,0,D.length),void(this.lastNeed-=D.length))}function N(D,U){if((D.length-U)%2==0){var q=D.toString("utf16le",U);if(q){var J=q.charCodeAt(q.length-1);if(J>=55296&&J<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=D[D.length-2],this.lastChar[1]=D[D.length-1],q.slice(0,-1)}return q}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=D[D.length-1],D.toString("utf16le",U,D.length-1)}function a(D){var U=D&&D.length?this.write(D):"";return this.lastNeed?U+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):U}function O(D,U){var q=(D.length-U)%3;return 0===q?D.toString("base64",U):(this.lastNeed=3-q,this.lastTotal=3,1===q?this.lastChar[0]=D[D.length-1]:(this.lastChar[0]=D[D.length-2],this.lastChar[1]=D[D.length-1]),D.toString("base64",U,D.length-q))}function H(D){var U=D&&D.length?this.write(D):"";return this.lastNeed?U+this.lastChar.toString("base64",0,3-this.lastNeed):U}function F(D){return D.toString(this.encoding)}function V(D){return D&&D.length?this.write(D):""}b.s=r,r.prototype.write=function(D){if(0===D.length)return"";var U,q;if(this.lastNeed){if(void 0===(U=this.fillLast(D)))return"";q=this.lastNeed,this.lastNeed=0}else q=0;return q<D.length?U?U+this.text(D,q):this.text(D,q):U||""},r.prototype.end=function C(D){var U=D&&D.length?this.write(D):"";return this.lastNeed?U+"\ufffd":U},r.prototype.text=function f(D,U){var q=function y(D,U,q){var J=U.length-1;if(J<q)return 0;var G=d(U[J]);return G>=0?(G>0&&(D.lastNeed=G-1),G):--J<q||-2===G?0:(G=d(U[J]))>=0?(G>0&&(D.lastNeed=G-2),G):--J<q||-2===G?0:(G=d(U[J]))>=0?(G>0&&(2===G?G=0:D.lastNeed=G-3),G):0}(this,D,U);if(!this.lastNeed)return D.toString("utf8",U);this.lastTotal=q;var J=D.length-(q-this.lastNeed);return D.copy(this.lastChar,0,J),D.toString("utf8",U,J)},r.prototype.fillLast=function(D){if(this.lastNeed<=D.length)return D.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);D.copy(this.lastChar,this.lastTotal-this.lastNeed,0,D.length),this.lastNeed-=D.length}},17563:(M,b,n)=>{"use strict";n.d(b,{gq:()=>Rn});const h="function"==typeof btoa,r="function"==typeof Buffer,y=("function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder?new TextEncoder:void 0),p=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),N=((lr=>{let _r={};lr.forEach((yr,xr)=>_r[yr]=xr)})(p),String.fromCharCode.bind(String)),O=("function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array),lr=>lr.replace(/=/g,"").replace(/[+\/]/g,_r=>"+"==_r?"-":"_")),V=h?lr=>btoa(lr):r?lr=>Buffer.from(lr,"binary").toString("base64"):lr=>{let _r,yr,xr,dn,bn="";const Un=lr.length%3;for(let Fn=0;Fn<lr.length;){if((yr=lr.charCodeAt(Fn++))>255||(xr=lr.charCodeAt(Fn++))>255||(dn=lr.charCodeAt(Fn++))>255)throw new TypeError("invalid character found");_r=yr<<16|xr<<8|dn,bn+=p[_r>>18&63]+p[_r>>12&63]+p[_r>>6&63]+p[63&_r]}return Un?bn.slice(0,Un-3)+"===".substring(Un):bn},D=r?lr=>Buffer.from(lr).toString("base64"):lr=>{let yr=[];for(let xr=0,dn=lr.length;xr<dn;xr+=4096)yr.push(N.apply(null,lr.subarray(xr,xr+4096)));return V(yr.join(""))},q=lr=>{if(lr.length<2)return(_r=lr.charCodeAt(0))<128?lr:_r<2048?N(192|_r>>>6)+N(128|63&_r):N(224|_r>>>12&15)+N(128|_r>>>6&63)+N(128|63&_r);var _r=65536+1024*(lr.charCodeAt(0)-55296)+(lr.charCodeAt(1)-56320);return N(240|_r>>>18&7)+N(128|_r>>>12&63)+N(128|_r>>>6&63)+N(128|63&_r)},J=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ie=r?lr=>Buffer.from(lr,"utf8").toString("base64"):y?lr=>D(y.encode(lr)):lr=>V((lr=>lr.replace(J,q))(lr)),Qe_encode=(lr,_r=!1)=>_r?O(ie(lr)):ie(lr);var Ot=n(87629),At=n.n(Ot);function Ze(lr){return(Ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(_r){return typeof _r}:function(_r){return _r&&"function"==typeof Symbol&&_r.constructor===Symbol&&_r!==Symbol.prototype?"symbol":typeof _r})(lr)}function at(lr,_r){for(var yr=0;yr<_r.length;yr++){var xr=_r[yr];xr.enumerable=xr.enumerable||!1,xr.configurable=!0,"value"in xr&&(xr.writable=!0),Object.defineProperty(lr,xr.key,xr)}}function Lt(lr,_r){if(!(lr instanceof _r))throw new TypeError("Cannot call a class as a function")}function be(lr,_r){if(_r&&("object"===Ze(_r)||"function"==typeof _r))return _r;if(void 0!==_r)throw new TypeError("Derived constructors may only return object or undefined");return function Te(lr){if(void 0===lr)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return lr}(lr)}function $e(lr){var _r="function"==typeof Map?new Map:void 0;return $e=function(xr){if(null===xr||!function Ft(lr){return-1!==Function.toString.call(lr).indexOf("[native code]")}(xr))return xr;if("function"!=typeof xr)throw new TypeError("Super expression must either be null or a function");if(typeof _r<"u"){if(_r.has(xr))return _r.get(xr);_r.set(xr,dn)}function dn(){return ft(xr,arguments,rt(this).constructor)}return dn.prototype=Object.create(xr.prototype,{constructor:{value:dn,enumerable:!1,writable:!0,configurable:!0}}),br(dn,xr)},$e(lr)}function ft(lr,_r,yr){return(ft=Ge()?Reflect.construct.bind():function(dn,bn,Un){var Fn=[null];Fn.push.apply(Fn,bn);var zn=new(Function.bind.apply(dn,Fn));return Un&&br(zn,Un.prototype),zn}).apply(null,arguments)}function Ge(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function br(lr,_r){return(br=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(xr,dn){return xr.__proto__=dn,xr})(lr,_r)}function rt(lr){return(rt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(yr){return yr.__proto__||Object.getPrototypeOf(yr)})(lr)}const Dt=function(lr){!function _e(lr,_r){if("function"!=typeof _r&&null!==_r)throw new TypeError("Super expression must either be null or a function");lr.prototype=Object.create(_r&&_r.prototype,{constructor:{value:lr,writable:!0,configurable:!0}}),Object.defineProperty(lr,"prototype",{writable:!1}),_r&&br(lr,_r)}(yr,lr);var _r=function ne(lr){var _r=Ge();return function(){var dn,xr=rt(lr);if(_r){var bn=rt(this).constructor;dn=Reflect.construct(xr,arguments,bn)}else dn=xr.apply(this,arguments);return be(this,dn)}}(yr);function yr(xr){var dn,bn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,Un=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,Fn=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(Lt(this,yr),(dn=_r.call(this,xr)).originalRequest=Un,dn.originalResponse=Fn,dn.causingError=bn,null!=bn&&(xr+=", caused by ".concat(bn.toString())),null!=Un){var Vn=Un.getHeader("X-Request-ID")||"n/a",zn=Un.getMethod(),ai=Un.getURL(),_i=Fn?Fn.getStatus():"n/a",wi=Fn?Fn.getBody()||"":"n/a";xr+=", originated from request (method: ".concat(zn,", url: ").concat(ai,", response code: ").concat(_i,", response text: ").concat(wi,", request id: ").concat(Vn,")")}return dn.message=xr,dn}return function Be(lr,_r,yr){return _r&&at(lr.prototype,_r),yr&&at(lr,yr),Object.defineProperty(lr,"prototype",{writable:!1}),lr}(yr)}($e(Error));function X(lr,_r){return function pt(lr){if(Array.isArray(lr))return lr}(lr)||function Re(lr,_r){var yr=null==lr?null:typeof Symbol<"u"&&lr[Symbol.iterator]||lr["@@iterator"];if(null!=yr){var Un,Fn,xr=[],dn=!0,bn=!1;try{for(yr=yr.call(lr);!(dn=(Un=yr.next()).done)&&(xr.push(Un.value),!_r||xr.length!==_r);dn=!0);}catch(Vn){bn=!0,Fn=Vn}finally{try{!dn&&null!=yr.return&&yr.return()}finally{if(bn)throw Fn}}return xr}}(lr,_r)||function Me(lr,_r){if(lr){if("string"==typeof lr)return We(lr,_r);var yr=Object.prototype.toString.call(lr).slice(8,-1);if("Object"===yr&&lr.constructor&&(yr=lr.constructor.name),"Map"===yr||"Set"===yr)return Array.from(lr);if("Arguments"===yr||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(yr))return We(lr,_r)}}(lr,_r)||function ge(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function We(lr,_r){(null==_r||_r>lr.length)&&(_r=lr.length);for(var yr=0,xr=new Array(_r);yr<_r;yr++)xr[yr]=lr[yr];return xr}function Zt(lr,_r){var yr=Object.keys(lr);if(Object.getOwnPropertySymbols){var xr=Object.getOwnPropertySymbols(lr);_r&&(xr=xr.filter(function(dn){return Object.getOwnPropertyDescriptor(lr,dn).enumerable})),yr.push.apply(yr,xr)}return yr}function cr(lr){for(var _r=1;_r<arguments.length;_r++){var yr=null!=arguments[_r]?arguments[_r]:{};_r%2?Zt(Object(yr),!0).forEach(function(xr){wt(lr,xr,yr[xr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(lr,Object.getOwnPropertyDescriptors(yr)):Zt(Object(yr)).forEach(function(xr){Object.defineProperty(lr,xr,Object.getOwnPropertyDescriptor(yr,xr))})}return lr}function wt(lr,_r,yr){return _r in lr?Object.defineProperty(lr,_r,{value:yr,enumerable:!0,configurable:!0,writable:!0}):lr[_r]=yr,lr}function Ut(lr,_r){for(var yr=0;yr<_r.length;yr++){var xr=_r[yr];xr.enumerable=xr.enumerable||!1,xr.configurable=!0,"value"in xr&&(xr.writable=!0),Object.defineProperty(lr,xr.key,xr)}}var Ue=function(){function lr(_r,yr){(function gt(lr,_r){if(!(lr instanceof _r))throw new TypeError("Cannot call a class as a function")})(this,lr),"resume"in yr&&console.log("tus: The `resume` option has been removed in tus-js-client v2. Please use the URL storage API instead."),this.options=yr,this.options.chunkSize=Number(this.options.chunkSize),this._urlStorage=this.options.urlStorage,this.file=_r,this.url=null,this._req=null,this._fingerprint=null,this._urlStorageKey=null,this._offset=null,this._aborted=!1,this._size=null,this._source=null,this._retryAttempt=0,this._retryTimeout=null,this._offsetBeforeRetry=0,this._parallelUploads=null,this._parallelUploadUrls=null}return function hr(lr,_r,yr){_r&&Ut(lr.prototype,_r),yr&&Ut(lr,yr),Object.defineProperty(lr,"prototype",{writable:!1})}(lr,[{key:"findPreviousUploads",value:function(){var yr=this;return this.options.fingerprint(this.file,this.options).then(function(xr){return yr._urlStorage.findUploadsByFingerprint(xr)})}},{key:"resumeFromPreviousUpload",value:function(yr){this.url=yr.uploadUrl||null,this._parallelUploadUrls=yr.parallelUploadUrls||null,this._urlStorageKey=yr.urlStorageKey}},{key:"start",value:function(){var yr=this,xr=this.file;if(xr)if(this.options.endpoint||this.options.uploadUrl||this.url){var dn=this.options.retryDelays;if(null==dn||"[object Array]"===Object.prototype.toString.call(dn)){if(this.options.parallelUploads>1)for(var bn=0,Un=["uploadUrl","uploadSize","uploadLengthDeferred"];bn<Un.length;bn++){var Fn=Un[bn];if(this.options[Fn])return void this._emitError(new Error("tus: cannot use the ".concat(Fn," option when parallelUploads is enabled")))}if(this.options.parallelUploadBoundaries){if(this.options.parallelUploads<=1)return void this._emitError(new Error("tus: cannot use the `parallelUploadBoundaries` option when `parallelUploads` is disabled"));if(this.options.parallelUploads!==this.options.parallelUploadBoundaries.length)return void this._emitError(new Error("tus: the `parallelUploadBoundaries` must have the same length as the value of `parallelUploads`"))}this.options.fingerprint(xr,this.options).then(function(Vn){return null==Vn||"Calculated fingerprint: ".concat(Vn),yr._fingerprint=Vn,yr._source?yr._source:yr.options.fileReader.openFile(xr,yr.options.chunkSize)}).then(function(Vn){if(yr._source=Vn,yr.options.uploadLengthDeferred)yr._size=null;else if(null!=yr.options.uploadSize){if(yr._size=Number(yr.options.uploadSize),Number.isNaN(yr._size))return void yr._emitError(new Error("tus: cannot convert `uploadSize` option into a number"))}else if(yr._size=yr._source.size,null==yr._size)return void yr._emitError(new Error("tus: cannot automatically derive upload's size from input. Specify it manually using the `uploadSize` option or use the `uploadLengthDeferred` option"));yr.options.parallelUploads>1||null!=yr._parallelUploadUrls?yr._startParallelUpload():yr._startSingleUpload()}).catch(function(Vn){yr._emitError(Vn)})}else this._emitError(new Error("tus: the `retryDelays` option must either be an array or null"))}else this._emitError(new Error("tus: neither an endpoint or an upload URL is provided"));else this._emitError(new Error("tus: no file or stream to upload provided"))}},{key:"_startParallelUpload",value:function(){var yr,xr=this,dn=this._size,bn=0;this._parallelUploads=[];var Fn=null!==(yr=this.options.parallelUploadBoundaries)&&void 0!==yr?yr:function lt(lr,_r){for(var yr=Math.floor(lr/_r),xr=[],dn=0;dn<_r;dn++)xr.push({start:yr*dn,end:yr*(dn+1)});return xr[_r-1].end=lr,xr}(this._source.size,null!=this._parallelUploadUrls?this._parallelUploadUrls.length:this.options.parallelUploads);this._parallelUploadUrls&&Fn.forEach(function(ai,_i){ai.uploadUrl=xr._parallelUploadUrls[_i]||null}),this._parallelUploadUrls=new Array(Fn.length);var zn,Vn=Fn.map(function(ai,_i){var wi=0;return xr._source.slice(ai.start,ai.end).then(function(Wn){var $r=Wn.value;return new Promise(function(Pn,An){var Qn=cr(cr({},xr.options),{},{uploadUrl:ai.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,parallelUploadBoundaries:null,metadata:{},headers:cr(cr({},xr.options.headers),{},{"Upload-Concat":"partial"}),onSuccess:Pn,onError:An,onProgress:function(di){bn=bn-wi+di,wi=di,xr._emitProgress(bn,dn)},onUploadUrlAvailable:function(){xr._parallelUploadUrls[_i]=yi.url,xr._parallelUploadUrls.filter(function(di){return Boolean(di)}).length===Fn.length&&xr._saveUploadInUrlStorage()}}),yi=new lr($r,Qn);yi.start(),xr._parallelUploads.push(yi)})})});Promise.all(Vn).then(function(){(zn=xr._openRequest("POST",xr.options.endpoint)).setHeader("Upload-Concat","final;".concat(xr._parallelUploadUrls.join(" ")));var ai=Pt(xr.options.metadata);return""!==ai&&zn.setHeader("Upload-Metadata",ai),xr._sendRequest(zn,null)}).then(function(ai){if(He(ai.getStatus(),200)){var _i=ai.getHeader("Location");null!=_i?(xr.url=Fe(xr.options.endpoint,_i),"Created upload at ".concat(xr.url),xr._emitSuccess()):xr._emitHttpError(zn,ai,"tus: invalid or missing Location header")}else xr._emitHttpError(zn,ai,"tus: unexpected response while creating upload")}).catch(function(ai){xr._emitError(ai)})}},{key:"_startSingleUpload",value:function(){return this._aborted=!1,null!=this.url?("Resuming upload from previous URL: ".concat(this.url),void this._resumeUpload()):null!=this.options.uploadUrl?("Resuming upload from provided URL: ".concat(this.options.uploadUrl),this.url=this.options.uploadUrl,void this._resumeUpload()):void this._createUpload()}},{key:"abort",value:function(yr){var xr=this;return null!=this._parallelUploads&&this._parallelUploads.forEach(function(dn){dn.abort(yr)}),null!==this._req&&this._req.abort(),this._aborted=!0,null!=this._retryTimeout&&(clearTimeout(this._retryTimeout),this._retryTimeout=null),yr&&null!=this.url?lr.terminate(this.url,this.options).then(function(){return xr._removeFromUrlStorage()}):Promise.resolve()}},{key:"_emitHttpError",value:function(yr,xr,dn,bn){this._emitError(new Dt(dn,bn,yr,xr))}},{key:"_emitError",value:function(yr){var xr=this;if(!this._aborted){if(null!=this.options.retryDelays&&(null!=this._offset&&this._offset>this._offsetBeforeRetry&&(this._retryAttempt=0),xe(yr,this._retryAttempt,this.options))){var bn=this.options.retryDelays[this._retryAttempt++];return this._offsetBeforeRetry=this._offset,void(this._retryTimeout=setTimeout(function(){xr.start()},bn))}if("function"!=typeof this.options.onError)throw yr;this.options.onError(yr)}}},{key:"_emitSuccess",value:function(){this.options.removeFingerprintOnSuccess&&this._removeFromUrlStorage(),"function"==typeof this.options.onSuccess&&this.options.onSuccess()}},{key:"_emitProgress",value:function(yr,xr){"function"==typeof this.options.onProgress&&this.options.onProgress(yr,xr)}},{key:"_emitChunkComplete",value:function(yr,xr,dn){"function"==typeof this.options.onChunkComplete&&this.options.onChunkComplete(yr,xr,dn)}},{key:"_createUpload",value:function(){var yr=this;if(this.options.endpoint){var xr=this._openRequest("POST",this.options.endpoint);this.options.uploadLengthDeferred?xr.setHeader("Upload-Defer-Length",1):xr.setHeader("Upload-Length",this._size);var bn,dn=Pt(this.options.metadata);""!==dn&&xr.setHeader("Upload-Metadata",dn),this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,bn=this._addChunkToRequest(xr)):bn=this._sendRequest(xr,null),bn.then(function(Un){if(He(Un.getStatus(),200)){var Fn=Un.getHeader("Location");if(null!=Fn)return yr.url=Fe(yr.options.endpoint,Fn),"Created upload at ".concat(yr.url),"function"==typeof yr.options.onUploadUrlAvailable&&yr.options.onUploadUrlAvailable(),0===yr._size?(yr._emitSuccess(),void yr._source.close()):void yr._saveUploadInUrlStorage().then(function(){yr.options.uploadDataDuringCreation?yr._handleUploadResponse(xr,Un):(yr._offset=0,yr._performUpload())});yr._emitHttpError(xr,Un,"tus: invalid or missing Location header")}else yr._emitHttpError(xr,Un,"tus: unexpected response while creating upload")}).catch(function(Un){yr._emitHttpError(xr,null,"tus: failed to create upload",Un)})}else this._emitError(new Error("tus: unable to create upload because no endpoint is provided"))}},{key:"_resumeUpload",value:function(){var yr=this,xr=this._openRequest("HEAD",this.url);this._sendRequest(xr,null).then(function(bn){var Un=bn.getStatus();if(!He(Un,200))return 423===Un?void yr._emitHttpError(xr,bn,"tus: upload is currently locked; retry later"):(He(Un,400)&&yr._removeFromUrlStorage(),yr.options.endpoint?(yr.url=null,void yr._createUpload()):void yr._emitHttpError(xr,bn,"tus: unable to resume upload (new upload cannot be created without an endpoint)"));var Fn=parseInt(bn.getHeader("Upload-Offset"),10);if(Number.isNaN(Fn))yr._emitHttpError(xr,bn,"tus: invalid or missing offset value");else{var Vn=parseInt(bn.getHeader("Upload-Length"),10);!Number.isNaN(Vn)||yr.options.uploadLengthDeferred?("function"==typeof yr.options.onUploadUrlAvailable&&yr.options.onUploadUrlAvailable(),yr._saveUploadInUrlStorage().then(function(){if(Fn===Vn)return yr._emitProgress(Vn,Vn),void yr._emitSuccess();yr._offset=Fn,yr._performUpload()})):yr._emitHttpError(xr,bn,"tus: invalid or missing length value")}}).catch(function(bn){yr._emitHttpError(xr,null,"tus: failed to resume upload",bn)})}},{key:"_performUpload",value:function(){var xr,yr=this;this._aborted||(this.options.overridePatchMethod?(xr=this._openRequest("POST",this.url)).setHeader("X-HTTP-Method-Override","PATCH"):xr=this._openRequest("PATCH",this.url),xr.setHeader("Upload-Offset",this._offset),this._addChunkToRequest(xr).then(function(bn){He(bn.getStatus(),200)?yr._handleUploadResponse(xr,bn):yr._emitHttpError(xr,bn,"tus: unexpected response while uploading chunk")}).catch(function(bn){yr._aborted||yr._emitHttpError(xr,null,"tus: failed to upload chunk at offset ".concat(yr._offset),bn)}))}},{key:"_addChunkToRequest",value:function(yr){var xr=this,dn=this._offset,bn=this._offset+this.options.chunkSize;return yr.setProgressHandler(function(Un){xr._emitProgress(dn+Un,xr._size)}),yr.setHeader("Content-Type","application/offset+octet-stream"),(bn===1/0||bn>this._size)&&!this.options.uploadLengthDeferred&&(bn=this._size),this._source.slice(dn,bn).then(function(Un){var Fn=Un.value;return xr.options.uploadLengthDeferred&&Un.done&&(xr._size=xr._offset+(Fn&&Fn.size?Fn.size:0),yr.setHeader("Upload-Length",xr._size)),null===Fn?xr._sendRequest(yr):(xr._emitProgress(xr._offset,xr._size),xr._sendRequest(yr,Fn))})}},{key:"_handleUploadResponse",value:function(yr,xr){var dn=parseInt(xr.getHeader("Upload-Offset"),10);if(!Number.isNaN(dn))return this._emitProgress(dn,this._size),this._emitChunkComplete(dn-this._offset,dn,this._size),this._offset=dn,dn===this._size?(this._emitSuccess(),void this._source.close()):void this._performUpload();this._emitHttpError(yr,xr,"tus: invalid or missing offset value")}},{key:"_openRequest",value:function(yr,xr){var dn=tt(yr,xr,this.options);return this._req=dn,dn}},{key:"_removeFromUrlStorage",value:function(){var yr=this;!this._urlStorageKey||(this._urlStorage.removeUpload(this._urlStorageKey).catch(function(xr){yr._emitError(xr)}),this._urlStorageKey=null)}},{key:"_saveUploadInUrlStorage",value:function(){var yr=this;if(!this.options.storeFingerprintForResuming||!this._fingerprint||null!==this._urlStorageKey)return Promise.resolve();var xr={size:this._size,metadata:this.options.metadata,creationTime:(new Date).toString()};return this._parallelUploads?xr.parallelUploadUrls=this._parallelUploadUrls:xr.uploadUrl=this.url,this._urlStorage.addUpload(this._fingerprint,xr).then(function(dn){yr._urlStorageKey=dn})}},{key:"_sendRequest",value:function(yr){var xr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Ke(yr,xr,this.options)}}],[{key:"terminate",value:function(yr){var xr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},dn=tt("DELETE",yr,xr);return Ke(dn,null,xr).then(function(bn){if(204!==bn.getStatus())throw new Dt("tus: unexpected response while terminating upload",null,dn,bn)}).catch(function(bn){if(bn instanceof Dt||(bn=new Dt("tus: failed to terminate upload",bn,dn,null)),!xe(bn,0,xr))throw bn;var Un=xr.retryDelays[0],Fn=xr.retryDelays.slice(1),Vn=cr(cr({},xr),{},{retryDelays:Fn});return new Promise(function(zn){return setTimeout(zn,Un)}).then(function(){return lr.terminate(yr,Vn)})})}}]),lr}();function Pt(lr){return Object.entries(lr).map(function(_r){var yr=X(_r,2),dn=yr[1];return"".concat(yr[0]," ").concat(Qe_encode(String(dn)))}).join(",")}function He(lr,_r){return lr>=_r&&lr<_r+100}function tt(lr,_r,yr){var xr=yr.httpStack.createRequest(lr,_r);if(xr.setHeader("Tus-Resumable","1.0.0"),Object.entries(yr.headers||{}).forEach(function(Un){var Fn=X(Un,2);xr.setHeader(Fn[0],Fn[1])}),yr.addRequestId){var bn=function Ne(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(lr){var _r=16*Math.random()|0;return("x"===lr?_r:3&_r|8).toString(16)})}();xr.setHeader("X-Request-ID",bn)}return xr}function Ke(lr,_r,yr){return("function"==typeof yr.onBeforeRequest?Promise.resolve(yr.onBeforeRequest(lr)):Promise.resolve()).then(function(){return lr.send(_r).then(function(dn){return("function"==typeof yr.onAfterResponse?Promise.resolve(yr.onAfterResponse(lr,dn)):Promise.resolve()).then(function(){return dn})})})}function xe(lr,_r,yr){if(null==yr.retryDelays||_r>=yr.retryDelays.length||null==lr.originalRequest)return!1;if(yr&&"function"==typeof yr.onShouldRetry)return yr.onShouldRetry(lr,_r,yr);var xr=lr.originalResponse?lr.originalResponse.getStatus():0;return(!He(xr,400)||409===xr||423===xr)&&function kt(){var lr=!0;return typeof window<"u"&&"navigator"in window&&!1===window.navigator.onLine&&(lr=!1),lr}()}function Fe(lr,_r){return new(At())(_r,lr).toString()}Ue.defaultOptions={endpoint:null,uploadUrl:null,metadata:{},fingerprint:null,uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,onUploadUrlAvailable:null,overridePatchMethod:!1,headers:{},addRequestId:!1,onBeforeRequest:null,onAfterResponse:null,onShouldRetry:null,chunkSize:1/0,retryDelays:[0,1e3,3e3,5e3],parallelUploads:1,parallelUploadBoundaries:null,storeFingerprintForResuming:!0,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1,urlStorage:null,fileReader:null,httpStack:null};const St=Ue;function ke(lr,_r){for(var yr=0;yr<_r.length;yr++){var xr=_r[yr];xr.enumerable=xr.enumerable||!1,xr.configurable=!0,"value"in xr&&(xr.writable=!0),Object.defineProperty(lr,xr.key,xr)}}var vt=function(){function lr(){!function qe(lr,_r){if(!(lr instanceof _r))throw new TypeError("Cannot call a class as a function")}(this,lr)}return function ct(lr,_r,yr){_r&&ke(lr.prototype,_r),yr&&ke(lr,yr),Object.defineProperty(lr,"prototype",{writable:!1})}(lr,[{key:"listAllUploads",value:function(){return Promise.resolve([])}},{key:"findUploadsByFingerprint",value:function(yr){return Promise.resolve([])}},{key:"removeUpload",value:function(yr){return Promise.resolve()}},{key:"addUpload",value:function(yr,xr){return Promise.resolve(null)}}]),lr}();function Vr(lr,_r){for(var yr=0;yr<_r.length;yr++){var xr=_r[yr];xr.enumerable=xr.enumerable||!1,xr.configurable=!0,"value"in xr&&(xr.writable=!0),Object.defineProperty(lr,xr.key,xr)}}var Ar=!1;try{Ar="localStorage"in window;var Jr="tusSupport",Fr=localStorage.getItem(Jr);localStorage.setItem(Jr,Fr),null===Fr&&localStorage.removeItem(Jr)}catch(lr){if(lr.code!==lr.SECURITY_ERR&&lr.code!==lr.QUOTA_EXCEEDED_ERR)throw lr;Ar=!1}var Gt=Ar,le=function(){function lr(){!function $t(lr,_r){if(!(lr instanceof _r))throw new TypeError("Cannot call a class as a function")}(this,lr)}return function Sr(lr,_r,yr){_r&&Vr(lr.prototype,_r),yr&&Vr(lr,yr),Object.defineProperty(lr,"prototype",{writable:!1})}(lr,[{key:"findAllUploads",value:function(){var yr=this._findEntries("tus::");return Promise.resolve(yr)}},{key:"findUploadsByFingerprint",value:function(yr){var xr=this._findEntries("tus::".concat(yr,"::"));return Promise.resolve(xr)}},{key:"removeUpload",value:function(yr){return localStorage.removeItem(yr),Promise.resolve()}},{key:"addUpload",value:function(yr,xr){var dn=Math.round(1e12*Math.random()),bn="tus::".concat(yr,"::").concat(dn);return localStorage.setItem(bn,JSON.stringify(xr)),Promise.resolve(bn)}},{key:"_findEntries",value:function(yr){for(var xr=[],dn=0;dn<localStorage.length;dn++){var bn=localStorage.key(dn);if(0===bn.indexOf(yr))try{var Un=JSON.parse(localStorage.getItem(bn));Un.urlStorageKey=bn,xr.push(Un)}catch{}}return xr}}]),lr}();function Ce(lr,_r){if(!(lr instanceof _r))throw new TypeError("Cannot call a class as a function")}function Ie(lr,_r){for(var yr=0;yr<_r.length;yr++){var xr=_r[yr];xr.enumerable=xr.enumerable||!1,xr.configurable=!0,"value"in xr&&(xr.writable=!0),Object.defineProperty(lr,xr.key,xr)}}function Pe(lr,_r,yr){return _r&&Ie(lr.prototype,_r),yr&&Ie(lr,yr),Object.defineProperty(lr,"prototype",{writable:!1}),lr}var Oe=function(){function lr(){Ce(this,lr)}return Pe(lr,[{key:"createRequest",value:function(yr,xr){return new Se(yr,xr)}},{key:"getName",value:function(){return"XHRHttpStack"}}]),lr}(),Se=function(){function lr(_r,yr){Ce(this,lr),this._xhr=new XMLHttpRequest,this._xhr.open(_r,yr,!0),this._method=_r,this._url=yr,this._headers={}}return Pe(lr,[{key:"getMethod",value:function(){return this._method}},{key:"getURL",value:function(){return this._url}},{key:"setHeader",value:function(yr,xr){this._xhr.setRequestHeader(yr,xr),this._headers[yr]=xr}},{key:"getHeader",value:function(yr){return this._headers[yr]}},{key:"setProgressHandler",value:function(yr){"upload"in this._xhr&&(this._xhr.upload.onprogress=function(xr){!xr.lengthComputable||yr(xr.loaded)})}},{key:"send",value:function(){var yr=this,xr=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return new Promise(function(dn,bn){yr._xhr.onload=function(){dn(new Xe(yr._xhr))},yr._xhr.onerror=function(Un){bn(Un)},yr._xhr.send(xr)})}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),lr}(),Xe=function(){function lr(_r){Ce(this,lr),this._xhr=_r}return Pe(lr,[{key:"getStatus",value:function(){return this._xhr.status}},{key:"getHeader",value:function(yr){return this._xhr.getResponseHeader(yr)}},{key:"getBody",value:function(){return this._xhr.responseText}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),lr}();const zt=function(){return typeof navigator<"u"&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase()};function Ur(lr,_r){for(var yr=0;yr<_r.length;yr++){var xr=_r[yr];xr.enumerable=xr.enumerable||!1,xr.configurable=!0,"value"in xr&&(xr.writable=!0),Object.defineProperty(lr,xr.key,xr)}}var zr=function(){function lr(_r){(function Rr(lr,_r){if(!(lr instanceof _r))throw new TypeError("Cannot call a class as a function")})(this,lr),this._file=_r,this.size=_r.size}return function Nr(lr,_r,yr){_r&&Ur(lr.prototype,_r),yr&&Ur(lr,yr),Object.defineProperty(lr,"prototype",{writable:!1})}(lr,[{key:"slice",value:function(yr,xr){if(typeof window<"u"&&(typeof window.PhoneGap<"u"||typeof window.Cordova<"u"||typeof window.cordova<"u"))return function tr(lr){return new Promise(function(_r,yr){var xr=new FileReader;xr.onload=function(){var dn=new Uint8Array(xr.result);_r({value:dn})},xr.onerror=function(dn){yr(dn)},xr.readAsArrayBuffer(lr)})}(this._file.slice(yr,xr));var dn=this._file.slice(yr,xr);return Promise.resolve({value:dn})}},{key:"close",value:function(){}}]),lr}();function _n(lr,_r){for(var yr=0;yr<_r.length;yr++){var xr=_r[yr];xr.enumerable=xr.enumerable||!1,xr.configurable=!0,"value"in xr&&(xr.writable=!0),Object.defineProperty(lr,xr.key,xr)}}function sr(lr){return void 0===lr?0:void 0!==lr.size?lr.size:lr.length}var Kt=function(){function lr(_r){(function hn(lr,_r){if(!(lr instanceof _r))throw new TypeError("Cannot call a class as a function")})(this,lr),this._buffer=void 0,this._bufferOffset=0,this._reader=_r,this._done=!1}return function Tn(lr,_r,yr){_r&&_n(lr.prototype,_r),yr&&_n(lr,yr),Object.defineProperty(lr,"prototype",{writable:!1})}(lr,[{key:"slice",value:function(yr,xr){return yr<this._bufferOffset?Promise.reject(new Error("Requested data is before the reader's current offset")):this._readUntilEnoughDataOrDone(yr,xr)}},{key:"_readUntilEnoughDataOrDone",value:function(yr,xr){var dn=this,bn=xr<=this._bufferOffset+sr(this._buffer);if(this._done||bn){var Un=this._getDataFromBuffer(yr,xr);return Promise.resolve({value:Un,done:null==Un&&this._done})}return this._reader.read().then(function(Vn){var zn=Vn.value;return Vn.done?dn._done=!0:dn._buffer=void 0===dn._buffer?zn:function fr(lr,_r){if(lr.concat)return lr.concat(_r);if(lr instanceof Blob)return new Blob([lr,_r],{type:lr.type});if(lr.set){var yr=new lr.constructor(lr.length+_r.length);return yr.set(lr),yr.set(_r,lr.length),yr}throw new Error("Unknown data type")}(dn._buffer,zn),dn._readUntilEnoughDataOrDone(yr,xr)})}},{key:"_getDataFromBuffer",value:function(yr,xr){yr>this._bufferOffset&&(this._buffer=this._buffer.slice(yr-this._bufferOffset),this._bufferOffset=yr);var dn=0===sr(this._buffer);return this._done&&dn?null:this._buffer.slice(0,xr-yr)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}]),lr}();function we(lr,_r){for(var yr=0;yr<_r.length;yr++){var xr=_r[yr];xr.enumerable=xr.enumerable||!1,xr.configurable=!0,"value"in xr&&(xr.writable=!0),Object.defineProperty(lr,xr.key,xr)}}var ht=function(){function lr(){!function Qr(lr,_r){if(!(lr instanceof _r))throw new TypeError("Cannot call a class as a function")}(this,lr)}return function De(lr,_r,yr){_r&&we(lr.prototype,_r),yr&&we(lr,yr),Object.defineProperty(lr,"prototype",{writable:!1})}(lr,[{key:"openFile",value:function(yr,xr){return zt()&&yr&&typeof yr.uri<"u"?function kr(lr){return new Promise(function(_r,yr){var xr=new XMLHttpRequest;xr.responseType="blob",xr.onload=function(){_r(xr.response)},xr.onerror=function(dn){yr(dn)},xr.open("GET",lr),xr.send()})}(yr.uri).then(function(dn){return new zr(dn)}).catch(function(dn){throw new Error("tus: cannot fetch `file.uri` as Blob, make sure the uri is correct and accessible. ".concat(dn))}):"function"==typeof yr.slice&&typeof yr.size<"u"?Promise.resolve(new zr(yr)):"function"==typeof yr.read?(xr=Number(xr),Number.isFinite(xr)?Promise.resolve(new Kt(yr,xr)):Promise.reject(new Error("cannot create source for stream without a finite value for the `chunkSize` option"))):Promise.reject(new Error("source object may only be an instance of File, Blob, or Reader in this environment"))}}]),lr}();function ur(lr){return(ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(_r){return typeof _r}:function(_r){return _r&&"function"==typeof Symbol&&_r.constructor===Symbol&&_r!==Symbol.prototype?"symbol":typeof _r})(lr)}function Zr(lr,_r){if(!(lr instanceof _r))throw new TypeError("Cannot call a class as a function")}function fn(lr,_r){for(var yr=0;yr<_r.length;yr++){var xr=_r[yr];xr.enumerable=xr.enumerable||!1,xr.configurable=!0,"value"in xr&&(xr.writable=!0),Object.defineProperty(lr,xr.key,xr)}}function Ae(lr,_r){return(Ae=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(xr,dn){return xr.__proto__=dn,xr})(lr,_r)}function Bt(lr,_r){if(_r&&("object"===ur(_r)||"function"==typeof _r))return _r;if(void 0!==_r)throw new TypeError("Derived constructors may only return object or undefined");return function pr(lr){if(void 0===lr)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return lr}(lr)}function Wr(lr){return(Wr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(yr){return yr.__proto__||Object.getPrototypeOf(yr)})(lr)}function sn(lr,_r){var yr=Object.keys(lr);if(Object.getOwnPropertySymbols){var xr=Object.getOwnPropertySymbols(lr);_r&&(xr=xr.filter(function(dn){return Object.getOwnPropertyDescriptor(lr,dn).enumerable})),yr.push.apply(yr,xr)}return yr}function En(lr){for(var _r=1;_r<arguments.length;_r++){var yr=null!=arguments[_r]?arguments[_r]:{};_r%2?sn(Object(yr),!0).forEach(function(xr){Sn(lr,xr,yr[xr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(lr,Object.getOwnPropertyDescriptors(yr)):sn(Object(yr)).forEach(function(xr){Object.defineProperty(lr,xr,Object.getOwnPropertyDescriptor(yr,xr))})}return lr}function Sn(lr,_r,yr){return _r in lr?Object.defineProperty(lr,_r,{value:yr,enumerable:!0,configurable:!0,writable:!0}):lr[_r]=yr,lr}var yn=En(En({},St.defaultOptions),{},{httpStack:new Oe,fileReader:new ht,urlStorage:Gt?new le:new vt,fingerprint:function Vt(lr,_r){return zt()?Promise.resolve(function yt(lr,_r){var yr=lr.exif?function gr(lr){var _r=0;if(0===lr.length)return _r;for(var yr=0;yr<lr.length;yr++)_r=(_r<<5)-_r+lr.charCodeAt(yr),_r&=_r;return _r}(JSON.stringify(lr.exif)):"noexif";return["tus-rn",lr.name||"noname",lr.size||"nosize",yr,_r.endpoint].join("/")}(lr,_r)):Promise.resolve(["tus-br",lr.name,lr.type,lr.size,lr.lastModified,_r.endpoint].join("-"))}}),Rn=function(lr){!function Et(lr,_r){if("function"!=typeof _r&&null!==_r)throw new TypeError("Super expression must either be null or a function");lr.prototype=Object.create(_r&&_r.prototype,{constructor:{value:lr,writable:!0,configurable:!0}}),Object.defineProperty(lr,"prototype",{writable:!1}),_r&&Ae(lr,_r)}(yr,lr);var _r=function it(lr){var _r=function Or(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var dn,xr=Wr(lr);if(_r){var bn=Wr(this).constructor;dn=Reflect.construct(xr,arguments,bn)}else dn=xr.apply(this,arguments);return Bt(this,dn)}}(yr);function yr(){var xr=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,dn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Zr(this,yr),dn=En(En({},yn),dn),_r.call(this,xr,dn)}return function un(lr,_r,yr){_r&&fn(lr.prototype,_r),yr&&fn(lr,yr),Object.defineProperty(lr,"prototype",{writable:!1})}(yr,null,[{key:"terminate",value:function(dn){var bn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return bn=En(En({},yn),bn),St.terminate(dn,bn)}}]),yr}(St);window},87629:(M,b,n)=>{"use strict";var t=n(28237),e=n(12858),l=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,h=/[\n\r\t]/g,r=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,d=/:\d+$/,y=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,g=/^[a-zA-Z]:/;function p(U){return(U||"").toString().replace(l,"")}var f=[["#","hash"],["?","query"],function(q,J){return a(J.protocol)?q.replace(/\\/g,"/"):q},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],C={hash:1,query:1};function N(U){var q;q=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};var K,G={},ie=typeof(U=U||q.location||{});if("blob:"===U.protocol)G=new F(unescape(U.pathname),{});else if("string"===ie)for(K in G=new F(U,{}),C)delete G[K];else if("object"===ie){for(K in U)K in C||(G[K]=U[K]);void 0===G.slashes&&(G.slashes=r.test(U.href))}return G}function a(U){return"file:"===U||"ftp:"===U||"http:"===U||"https:"===U||"ws:"===U||"wss:"===U}function O(U,q){U=(U=p(U)).replace(h,""),q=q||{};var oe,J=y.exec(U),G=J[1]?J[1].toLowerCase():"",ie=!!J[2],K=!!J[3],re=0;return ie?K?(oe=J[2]+J[3]+J[4],re=J[2].length+J[3].length):(oe=J[2]+J[4],re=J[2].length):K?(oe=J[3]+J[4],re=J[3].length):oe=J[4],"file:"===G?re>=2&&(oe=oe.slice(2)):a(G)?oe=J[4]:G?ie&&(oe=oe.slice(2)):re>=2&&a(q.protocol)&&(oe=J[4]),{protocol:G,slashes:ie||a(G),slashesCount:re,rest:oe}}function F(U,q,J){if(U=(U=p(U)).replace(h,""),!(this instanceof F))return new F(U,q,J);var G,ie,K,re,oe,B,s=f.slice(),_=typeof q,w=this,E=0;for("object"!==_&&"string"!==_&&(J=q,q=null),J&&"function"!=typeof J&&(J=e.parse),G=!(ie=O(U||"",q=N(q))).protocol&&!ie.slashes,w.slashes=ie.slashes||G&&q.slashes,w.protocol=ie.protocol||q.protocol||"",U=ie.rest,("file:"===ie.protocol&&(2!==ie.slashesCount||g.test(U))||!ie.slashes&&(ie.protocol||ie.slashesCount<2||!a(w.protocol)))&&(s[3]=[/(.*)/,"pathname"]);E<s.length;E++)"function"!=typeof(re=s[E])?(B=re[1],(K=re[0])!=K?w[B]=U:"string"==typeof K?~(oe="@"===K?U.lastIndexOf(K):U.indexOf(K))&&("number"==typeof re[2]?(w[B]=U.slice(0,oe),U=U.slice(oe+re[2])):(w[B]=U.slice(oe),U=U.slice(0,oe))):(oe=K.exec(U))&&(w[B]=oe[1],U=U.slice(0,oe.index)),w[B]=w[B]||G&&re[3]&&q[B]||"",re[4]&&(w[B]=w[B].toLowerCase())):U=re(U,w);J&&(w.query=J(w.query)),G&&q.slashes&&"/"!==w.pathname.charAt(0)&&(""!==w.pathname||""!==q.pathname)&&(w.pathname=function H(U,q){if(""===U)return q;for(var J=(q||"/").split("/").slice(0,-1).concat(U.split("/")),G=J.length,ie=J[G-1],K=!1,re=0;G--;)"."===J[G]?J.splice(G,1):".."===J[G]?(J.splice(G,1),re++):re&&(0===G&&(K=!0),J.splice(G,1),re--);return K&&J.unshift(""),("."===ie||".."===ie)&&J.push(""),J.join("/")}(w.pathname,q.pathname)),"/"!==w.pathname.charAt(0)&&a(w.protocol)&&(w.pathname="/"+w.pathname),t(w.port,w.protocol)||(w.host=w.hostname,w.port=""),w.username=w.password="",w.auth&&(~(oe=w.auth.indexOf(":"))?(w.username=w.auth.slice(0,oe),w.username=encodeURIComponent(decodeURIComponent(w.username)),w.password=w.auth.slice(oe+1),w.password=encodeURIComponent(decodeURIComponent(w.password))):w.username=encodeURIComponent(decodeURIComponent(w.auth)),w.auth=w.password?w.username+":"+w.password:w.username),w.origin="file:"!==w.protocol&&a(w.protocol)&&w.host?w.protocol+"//"+w.host:"null",w.href=w.toString()}F.prototype={set:function V(U,q,J){var G=this;switch(U){case"query":"string"==typeof q&&q.length&&(q=(J||e.parse)(q)),G[U]=q;break;case"port":G[U]=q,t(q,G.protocol)?q&&(G.host=G.hostname+":"+q):(G.host=G.hostname,G[U]="");break;case"hostname":G[U]=q,G.port&&(q+=":"+G.port),G.host=q;break;case"host":G[U]=q,d.test(q)?(q=q.split(":"),G.port=q.pop(),G.hostname=q.join(":")):(G.hostname=q,G.port="");break;case"protocol":G.protocol=q.toLowerCase(),G.slashes=!J;break;case"pathname":case"hash":if(q){var ie="pathname"===U?"/":"#";G[U]=q.charAt(0)!==ie?ie+q:q}else G[U]=q;break;case"username":case"password":G[U]=encodeURIComponent(q);break;case"auth":var K=q.indexOf(":");~K?(G.username=q.slice(0,K),G.username=encodeURIComponent(decodeURIComponent(G.username)),G.password=q.slice(K+1),G.password=encodeURIComponent(decodeURIComponent(G.password))):G.username=encodeURIComponent(decodeURIComponent(q))}for(var re=0;re<f.length;re++){var oe=f[re];oe[4]&&(G[oe[1]]=G[oe[1]].toLowerCase())}return G.auth=G.password?G.username+":"+G.password:G.username,G.origin="file:"!==G.protocol&&a(G.protocol)&&G.host?G.protocol+"//"+G.host:"null",G.href=G.toString(),G},toString:function D(U){(!U||"function"!=typeof U)&&(U=e.stringify);var q,J=this,G=J.host,ie=J.protocol;ie&&":"!==ie.charAt(ie.length-1)&&(ie+=":");var K=ie+(J.protocol&&J.slashes||a(J.protocol)?"//":"");return J.username?(K+=J.username,J.password&&(K+=":"+J.password),K+="@"):J.password?(K+=":"+J.password,K+="@"):"file:"!==J.protocol&&a(J.protocol)&&!G&&"/"!==J.pathname&&(K+="@"),(":"===G[G.length-1]||d.test(J.hostname)&&!J.port)&&(G+=":"),K+=G+J.pathname,(q="object"==typeof J.query?U(J.query):J.query)&&(K+="?"!==q.charAt(0)?"?"+q:q),J.hash&&(K+=J.hash),K}},F.extractProtocol=O,F.location=N,F.trimLeft=p,F.qs=e,M.exports=F},23532:M=>{function n(t){try{if(!global.localStorage)return!1}catch{return!1}var e=global.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}M.exports=function b(t,e){if(n("noDeprecation"))return t;var l=!1;return function h(){if(!l){if(n("throwDeprecation"))throw new Error(e);n("traceDeprecation")?console.trace(e):console.warn(e),l=!0}return t.apply(this,arguments)}}},81042:(M,b,n)=>{"use strict";n.d(b,{Z:()=>N});var t,e=new Uint8Array(16);function l(){if(!t&&!(t=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return t(e)}const h=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,d=function r(a){return"string"==typeof a&&h.test(a)};for(var y=[],g=0;g<256;++g)y.push((g+256).toString(16).substr(1));const N=function C(a,O,H){var F=(a=a||{}).random||(a.rng||l)();if(F[6]=15&F[6]|64,F[8]=63&F[8]|128,O){H=H||0;for(var V=0;V<16;++V)O[H+V]=F[V];return O}return function p(a){var O=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,H=(y[a[O+0]]+y[a[O+1]]+y[a[O+2]]+y[a[O+3]]+"-"+y[a[O+4]]+y[a[O+5]]+"-"+y[a[O+6]]+y[a[O+7]]+"-"+y[a[O+8]]+y[a[O+9]]+"-"+y[a[O+10]]+y[a[O+11]]+y[a[O+12]]+y[a[O+13]]+y[a[O+14]]+y[a[O+15]]).toLowerCase();if(!d(H))throw TypeError("Stringified UUID is invalid");return H}(F)}},49440:(M,b,n)=>{var t=n(95872).FilterCSS,e=n(95872).getDefaultWhiteList,l=n(61075);var r=new t;function f(j){return j.replace(N,"&lt;").replace(a,"&gt;")}var N=/</g,a=/>/g,O=/"/g,H=/&quot;/g,F=/&#([a-zA-Z0-9]*);?/gim,V=/&colon;?/gim,D=/&newline;?/gim,U=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,q=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,J=/u\s*r\s*l\s*\(.*/gi;function G(j){return j.replace(O,"&quot;")}function ie(j){return j.replace(H,'"')}function K(j){return j.replace(F,function(Y,u){return String.fromCharCode("x"===u[0]||"X"===u[0]?parseInt(u.substr(1),16):parseInt(u,10))})}function re(j){return j.replace(V,":").replace(D," ")}function oe(j){for(var $="",Y=0,u=j.length;Y<u;Y++)$+=j.charCodeAt(Y)<32?" ":j.charAt(Y);return l.trim($)}function B(j){return oe(j=re(j=K(j=ie(j))))}function s(j){return f(j=G(j))}b.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]},b.getDefaultWhiteList=function h(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}},b.onTag=function d(j,$,Y){},b.onIgnoreTag=function y(j,$,Y){},b.onTagAttr=function g(j,$,Y){},b.onIgnoreTagAttr=function p(j,$,Y){},b.safeAttrValue=function C(j,$,Y,u){if(Y=B(Y),"href"===$||"src"===$){if("#"===(Y=l.trim(Y)))return"#";if("http://"!==Y.substr(0,7)&&"https://"!==Y.substr(0,8)&&"mailto:"!==Y.substr(0,7)&&"tel:"!==Y.substr(0,4)&&"data:image/"!==Y.substr(0,11)&&"ftp://"!==Y.substr(0,6)&&"./"!==Y.substr(0,2)&&"../"!==Y.substr(0,3)&&"#"!==Y[0]&&"/"!==Y[0])return""}else if("background"===$){if(U.lastIndex=0,U.test(Y))return""}else if("style"===$){if(q.lastIndex=0,q.test(Y)||(J.lastIndex=0,J.test(Y)&&(U.lastIndex=0,U.test(Y))))return"";!1!==u&&(Y=(u=u||r).process(Y))}return s(Y)},b.escapeHtml=f,b.escapeQuote=G,b.unescapeQuote=ie,b.escapeHtmlEntities=K,b.escapeDangerHtml5Entities=re,b.clearNonPrintableCharacter=oe,b.friendlyAttrValue=B,b.escapeAttrValue=s,b.onIgnoreTagStripAll=function _(){return""},b.StripTagBody=function w(j,$){"function"!=typeof $&&($=function(){});var Y=!Array.isArray(j),W=[],fe=!1;return{onIgnoreTag:function(ae,ye,Qe){if(function u(ae){return!!Y||-1!==l.indexOf(j,ae)}(ae)){if(Qe.isClosing){var Ot="[/removed]";return W.push([!1!==fe?fe:Qe.position,Qe.position+Ot.length]),fe=!1,Ot}return fe||(fe=Qe.position),"[removed]"}return $(ae,ye,Qe)},remove:function(ae){var ye="",Qe=0;return l.forEach(W,function(Ot){ye+=ae.slice(Qe,Ot[0]),Qe=Ot[1]}),ye+=ae.slice(Qe)}}},b.stripCommentTag=function E(j){for(var $="",Y=0;Y<j.length;){var u=j.indexOf("\x3c!--",Y);if(-1===u){$+=j.slice(Y);break}$+=j.slice(Y,u);var W=j.indexOf("--\x3e",u);if(-1===W)break;Y=W+3}return $},b.stripBlankChar=function x(j){var $=j.split("");return($=$.filter(function(Y){var u=Y.charCodeAt(0);return!(127===u||u<=31&&10!==u&&13!==u)})).join("")},b.attributeWrapSign='"',b.cssFilter=r,b.getDefaultCSSWhiteList=e},97726:(M,b,n)=>{var t=n(49440),e=n(971),l=n(52923);function h(d,y){return new l(y).process(d)}(b=M.exports=h).filterXSS=h,b.FilterXSS=l,function(){for(var d in t)b[d]=t[d];for(var y in e)b[y]=e[y]}(),typeof window<"u"&&(window.filterXSS=M.exports),function r(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}()&&(self.filterXSS=M.exports)},971:(M,b,n)=>{var t=n(61075);function e(N){var O,a=t.spaceIndex(N);return O=N.slice(1,-1===a?-1:a+1),"/"===(O=t.trim(O).toLowerCase()).slice(0,1)&&(O=O.slice(1)),"/"===O.slice(-1)&&(O=O.slice(0,-1)),O}function l(N){return"</"===N.slice(0,2)}var r=/[^a-zA-Z0-9\\_:.-]/gim;function y(N,a){for(;a<N.length;a++){var O=N[a];if(" "!==O)return"="===O?a:-1}}function g(N,a){for(;a<N.length;a++){var O=N[a];if(" "!==O)return"'"===O||'"'===O?a:-1}}function p(N,a){for(;a>0;a--){var O=N[a];if(" "!==O)return"="===O?a:-1}}function C(N){return function f(N){return'"'===N[0]&&'"'===N[N.length-1]||"'"===N[0]&&"'"===N[N.length-1]}(N)?N.substr(1,N.length-2):N}b.parseTag=function h(N,a,O){"use strict";var H="",F=0,V=!1,D=!1,U=0,q=N.length,J="",G="";e:for(U=0;U<q;U++){var ie=N.charAt(U);if(!1===V){if("<"===ie){V=U;continue}}else if(!1===D){if("<"===ie){H+=O(N.slice(F,U)),V=U,F=U;continue}if(">"===ie||U===q-1){H+=O(N.slice(F,V)),J=e(G=N.slice(V,U+1)),H+=a(V,H.length,J,G,l(G)),F=U+1,V=!1;continue}if('"'===ie||"'"===ie)for(var K=1,re=N.charAt(U-K);""===re.trim()||"="===re;){if("="===re){D=ie;continue e}re=N.charAt(U-++K)}}else if(ie===D){D=!1;continue}}return F<q&&(H+=O(N.substr(F))),H},b.parseAttr=function d(N,a){"use strict";var O=0,H=0,F=[],V=!1,D=N.length;function U(K,re){if(!((K=(K=t.trim(K)).replace(r,"").toLowerCase()).length<1)){var oe=a(K,re||"");oe&&F.push(oe)}}for(var q=0;q<D;q++){var ie,J=N.charAt(q);if(!1!==V||"="!==J)if(!1===V||q!==H){if(/\s|\n|\t/.test(J)){if(N=N.replace(/\s|\n|\t/g," "),!1===V){if(-1===(ie=y(N,q))){U(t.trim(N.slice(O,q))),V=!1,O=q+1;continue}q=ie-1;continue}if(-1===(ie=p(N,q-1))){U(V,C(t.trim(N.slice(O,q)))),V=!1,O=q+1;continue}}}else{if(-1===(ie=N.indexOf(J,q+1)))break;U(V,t.trim(N.slice(H+1,ie))),V=!1,O=(q=ie)+1}else V=N.slice(O,q),H='"'===N.charAt(O=q+1)||"'"===N.charAt(O)?O:g(N,q+1)}return O<N.length&&(!1===V?U(N.slice(O)):U(V,C(t.trim(N.slice(O))))),t.trim(F.join(" "))}},61075:M=>{M.exports={indexOf:function(b,n){var t,e;if(Array.prototype.indexOf)return b.indexOf(n);for(t=0,e=b.length;t<e;t++)if(b[t]===n)return t;return-1},forEach:function(b,n,t){var e,l;if(Array.prototype.forEach)return b.forEach(n,t);for(e=0,l=b.length;e<l;e++)n.call(t,b[e],e,b)},trim:function(b){return String.prototype.trim?b.trim():b.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(b){var t=/\s|\n|\t/.exec(b);return t?t.index:-1}}},52923:(M,b,n)=>{var t=n(95872).FilterCSS,e=n(49440),l=n(971),h=l.parseTag,r=l.parseAttr,d=n(61075);function y(N){return null==N}function C(N){(N=function p(N){var a={};for(var O in N)a[O]=N[O];return a}(N||{})).stripIgnoreTag&&(N.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),N.onIgnoreTag=e.onIgnoreTagStripAll),N.whiteList=N.whiteList||N.allowList?function f(N){var a={};for(var O in N)Array.isArray(N[O])?a[O.toLowerCase()]=N[O].map(function(H){return H.toLowerCase()}):a[O.toLowerCase()]=N[O];return a}(N.whiteList||N.allowList):e.whiteList,this.attributeWrapSign=!0===N.singleQuotedAttributeValue?"'":e.attributeWrapSign,N.onTag=N.onTag||e.onTag,N.onTagAttr=N.onTagAttr||e.onTagAttr,N.onIgnoreTag=N.onIgnoreTag||e.onIgnoreTag,N.onIgnoreTagAttr=N.onIgnoreTagAttr||e.onIgnoreTagAttr,N.safeAttrValue=N.safeAttrValue||e.safeAttrValue,N.escapeHtml=N.escapeHtml||e.escapeHtml,this.options=N,!1===N.css?this.cssFilter=!1:(N.css=N.css||{},this.cssFilter=new t(N.css))}C.prototype.process=function(N){if(!(N=(N=N||"").toString()))return"";var a=this,O=a.options,H=O.whiteList,F=O.onTag,V=O.onIgnoreTag,D=O.onTagAttr,U=O.onIgnoreTagAttr,q=O.safeAttrValue,J=O.escapeHtml,G=a.attributeWrapSign,ie=a.cssFilter;O.stripBlankChar&&(N=e.stripBlankChar(N)),O.allowCommentTag||(N=e.stripCommentTag(N));var K=!1;O.stripIgnoreTagBody&&(K=e.StripTagBody(O.stripIgnoreTagBody,V),V=K.onIgnoreTag);var re=h(N,function(oe,B,s,_,w){var E={sourcePosition:oe,position:B,isClosing:w,isWhite:Object.prototype.hasOwnProperty.call(H,s)},x=F(s,_,E);if(!y(x))return x;if(E.isWhite){if(E.isClosing)return"</"+s+">";var j=function g(N){var a=d.spaceIndex(N);if(-1===a)return{html:"",closing:"/"===N[N.length-2]};var O="/"===(N=d.trim(N.slice(a+1,-1)))[N.length-1];return O&&(N=d.trim(N.slice(0,-1))),{html:N,closing:O}}(_),$=H[s],Y=r(j.html,function(u,W){var fe=-1!==d.indexOf($,u),ae=D(s,u,W,fe);return y(ae)?fe?(W=q(s,u,W,ie))?u+"="+G+W+G:u:y(ae=U(s,u,W,fe))?void 0:ae:ae});return _="<"+s,Y&&(_+=" "+Y),j.closing&&(_+=" /"),_+">"}return y(x=V(s,_,E))?J(_):x},J);return K&&(re=K.remove(re)),re},M.exports=C},67228:M=>{M.exports=function b(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,l=new Array(t);e<t;e++)l[e]=n[e];return l},M.exports.__esModule=!0,M.exports.default=M.exports},22858:M=>{M.exports=function b(n){if(Array.isArray(n))return n},M.exports.__esModule=!0,M.exports.default=M.exports},23646:(M,b,n)=>{var t=n(67228);M.exports=function e(l){if(Array.isArray(l))return t(l)},M.exports.__esModule=!0,M.exports.default=M.exports},48926:M=>{function b(t,e,l,h,r,d,y){try{var g=t[d](y),p=g.value}catch(f){return void l(f)}g.done?e(p):Promise.resolve(p).then(h,r)}M.exports=function n(t){return function(){var e=this,l=arguments;return new Promise(function(h,r){var d=t.apply(e,l);function y(p){b(d,h,r,y,g,"next",p)}function g(p){b(d,h,r,y,g,"throw",p)}y(void 0)})}},M.exports.__esModule=!0,M.exports.default=M.exports},34575:M=>{M.exports=function b(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")},M.exports.__esModule=!0,M.exports.default=M.exports},93913:M=>{function b(t,e){for(var l=0;l<e.length;l++){var h=e[l];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(t,h.key,h)}}M.exports=function n(t,e,l){return e&&b(t.prototype,e),l&&b(t,l),Object.defineProperty(t,"prototype",{writable:!1}),t},M.exports.__esModule=!0,M.exports.default=M.exports},59713:M=>{M.exports=function b(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n},M.exports.__esModule=!0,M.exports.default=M.exports},95318:M=>{M.exports=function b(n){return n&&n.__esModule?n:{default:n}},M.exports.__esModule=!0,M.exports.default=M.exports},46860:M=>{M.exports=function b(n){if(typeof Symbol<"u"&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)},M.exports.__esModule=!0,M.exports.default=M.exports},13884:M=>{M.exports=function b(n,t){var e=null==n?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(null!=e){var d,y,l=[],h=!0,r=!1;try{for(e=e.call(n);!(h=(d=e.next()).done)&&(l.push(d.value),!t||l.length!==t);h=!0);}catch(g){r=!0,y=g}finally{try{!h&&null!=e.return&&e.return()}finally{if(r)throw y}}return l}},M.exports.__esModule=!0,M.exports.default=M.exports},80521:M=>{M.exports=function b(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},M.exports.__esModule=!0,M.exports.default=M.exports},98206:M=>{M.exports=function b(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},M.exports.__esModule=!0,M.exports.default=M.exports},49064:M=>{M.exports=function b(n){if(null==n)throw new TypeError("Cannot destructure undefined")},M.exports.__esModule=!0,M.exports.default=M.exports},59591:(M,b,n)=>{var t=n(50008).default;function e(){"use strict";M.exports=e=function(){return l},M.exports.__esModule=!0,M.exports.default=M.exports;var l={},h=Object.prototype,r=h.hasOwnProperty,d="function"==typeof Symbol?Symbol:{},y=d.iterator||"@@iterator",g=d.asyncIterator||"@@asyncIterator",p=d.toStringTag||"@@toStringTag";function f(_,w,E){return Object.defineProperty(_,w,{value:E,enumerable:!0,configurable:!0,writable:!0}),_[w]}try{f({},"")}catch{f=function(E,x,j){return E[x]=j}}function C(_,w,E,x){var u,W,fe,ae,$=Object.create((w&&w.prototype instanceof O?w:O).prototype),Y=new oe(x||[]);return $._invoke=(u=_,W=E,fe=Y,ae="suspendedStart",function(ye,Qe){if("executing"===ae)throw new Error("Generator is already running");if("completed"===ae){if("throw"===ye)throw Qe;return{value:void 0,done:!0}}for(fe.method=ye,fe.arg=Qe;;){var Ot=fe.delegate;if(Ot){var At=ie(Ot,fe);if(At){if(At===a)continue;return At}}if("next"===fe.method)fe.sent=fe._sent=fe.arg;else if("throw"===fe.method){if("suspendedStart"===ae)throw ae="completed",fe.arg;fe.dispatchException(fe.arg)}else"return"===fe.method&&fe.abrupt("return",fe.arg);ae="executing";var Ze=N(u,W,fe);if("normal"===Ze.type){if(ae=fe.done?"completed":"suspendedYield",Ze.arg===a)continue;return{value:Ze.arg,done:fe.done}}"throw"===Ze.type&&(ae="completed",fe.method="throw",fe.arg=Ze.arg)}}),$}function N(_,w,E){try{return{type:"normal",arg:_.call(w,E)}}catch(x){return{type:"throw",arg:x}}}l.wrap=C;var a={};function O(){}function H(){}function F(){}var V={};f(V,y,function(){return this});var D=Object.getPrototypeOf,U=D&&D(D(B([])));U&&U!==h&&r.call(U,y)&&(V=U);var q=F.prototype=O.prototype=Object.create(V);function J(_){["next","throw","return"].forEach(function(w){f(_,w,function(E){return this._invoke(w,E)})})}function G(_,w){function E(j,$,Y,u){var W=N(_[j],_,$);if("throw"!==W.type){var fe=W.arg,ae=fe.value;return ae&&"object"==t(ae)&&r.call(ae,"__await")?w.resolve(ae.__await).then(function(ye){E("next",ye,Y,u)},function(ye){E("throw",ye,Y,u)}):w.resolve(ae).then(function(ye){fe.value=ye,Y(fe)},function(ye){return E("throw",ye,Y,u)})}u(W.arg)}var x;this._invoke=function(j,$){function Y(){return new w(function(u,W){E(j,$,u,W)})}return x=x?x.then(Y,Y):Y()}}function ie(_,w){var E=_.iterator[w.method];if(void 0===E){if(w.delegate=null,"throw"===w.method){if(_.iterator.return&&(w.method="return",w.arg=void 0,ie(_,w),"throw"===w.method))return a;w.method="throw",w.arg=new TypeError("The iterator does not provide a 'throw' method")}return a}var x=N(E,_.iterator,w.arg);if("throw"===x.type)return w.method="throw",w.arg=x.arg,w.delegate=null,a;var j=x.arg;return j?j.done?(w[_.resultName]=j.value,w.next=_.nextLoc,"return"!==w.method&&(w.method="next",w.arg=void 0),w.delegate=null,a):j:(w.method="throw",w.arg=new TypeError("iterator result is not an object"),w.delegate=null,a)}function K(_){var w={tryLoc:_[0]};1 in _&&(w.catchLoc=_[1]),2 in _&&(w.finallyLoc=_[2],w.afterLoc=_[3]),this.tryEntries.push(w)}function re(_){var w=_.completion||{};w.type="normal",delete w.arg,_.completion=w}function oe(_){this.tryEntries=[{tryLoc:"root"}],_.forEach(K,this),this.reset(!0)}function B(_){if(_){var w=_[y];if(w)return w.call(_);if("function"==typeof _.next)return _;if(!isNaN(_.length)){var E=-1,x=function j(){for(;++E<_.length;)if(r.call(_,E))return j.value=_[E],j.done=!1,j;return j.value=void 0,j.done=!0,j};return x.next=x}}return{next:s}}function s(){return{value:void 0,done:!0}}return H.prototype=F,f(q,"constructor",F),f(F,"constructor",H),H.displayName=f(F,p,"GeneratorFunction"),l.isGeneratorFunction=function(_){var w="function"==typeof _&&_.constructor;return!!w&&(w===H||"GeneratorFunction"===(w.displayName||w.name))},l.mark=function(_){return Object.setPrototypeOf?Object.setPrototypeOf(_,F):(_.__proto__=F,f(_,p,"GeneratorFunction")),_.prototype=Object.create(q),_},l.awrap=function(_){return{__await:_}},J(G.prototype),f(G.prototype,g,function(){return this}),l.AsyncIterator=G,l.async=function(_,w,E,x,j){void 0===j&&(j=Promise);var $=new G(C(_,w,E,x),j);return l.isGeneratorFunction(w)?$:$.next().then(function(Y){return Y.done?Y.value:$.next()})},J(q),f(q,p,"Generator"),f(q,y,function(){return this}),f(q,"toString",function(){return"[object Generator]"}),l.keys=function(_){var w=[];for(var E in _)w.push(E);return w.reverse(),function x(){for(;w.length;){var j=w.pop();if(j in _)return x.value=j,x.done=!1,x}return x.done=!0,x}},l.values=B,oe.prototype={constructor:oe,reset:function(w){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(re),!w)for(var E in this)"t"===E.charAt(0)&&r.call(this,E)&&!isNaN(+E.slice(1))&&(this[E]=void 0)},stop:function(){this.done=!0;var w=this.tryEntries[0].completion;if("throw"===w.type)throw w.arg;return this.rval},dispatchException:function(w){if(this.done)throw w;var E=this;function x(fe,ae){return Y.type="throw",Y.arg=w,E.next=fe,ae&&(E.method="next",E.arg=void 0),!!ae}for(var j=this.tryEntries.length-1;j>=0;--j){var $=this.tryEntries[j],Y=$.completion;if("root"===$.tryLoc)return x("end");if($.tryLoc<=this.prev){var u=r.call($,"catchLoc"),W=r.call($,"finallyLoc");if(u&&W){if(this.prev<$.catchLoc)return x($.catchLoc,!0);if(this.prev<$.finallyLoc)return x($.finallyLoc)}else if(u){if(this.prev<$.catchLoc)return x($.catchLoc,!0)}else{if(!W)throw new Error("try statement without catch or finally");if(this.prev<$.finallyLoc)return x($.finallyLoc)}}}},abrupt:function(w,E){for(var x=this.tryEntries.length-1;x>=0;--x){var j=this.tryEntries[x];if(j.tryLoc<=this.prev&&r.call(j,"finallyLoc")&&this.prev<j.finallyLoc){var $=j;break}}$&&("break"===w||"continue"===w)&&$.tryLoc<=E&&E<=$.finallyLoc&&($=null);var Y=$?$.completion:{};return Y.type=w,Y.arg=E,$?(this.method="next",this.next=$.finallyLoc,a):this.complete(Y)},complete:function(w,E){if("throw"===w.type)throw w.arg;return"break"===w.type||"continue"===w.type?this.next=w.arg:"return"===w.type?(this.rval=this.arg=w.arg,this.method="return",this.next="end"):"normal"===w.type&&E&&(this.next=E),a},finish:function(w){for(var E=this.tryEntries.length-1;E>=0;--E){var x=this.tryEntries[E];if(x.finallyLoc===w)return this.complete(x.completion,x.afterLoc),re(x),a}},catch:function(w){for(var E=this.tryEntries.length-1;E>=0;--E){var x=this.tryEntries[E];if(x.tryLoc===w){var j=x.completion;if("throw"===j.type){var $=j.arg;re(x)}return $}}throw new Error("illegal catch attempt")},delegateYield:function(w,E,x){return this.delegate={iterator:B(w),resultName:E,nextLoc:x},"next"===this.method&&(this.arg=void 0),a}},l}M.exports=e,M.exports.__esModule=!0,M.exports.default=M.exports},63038:(M,b,n)=>{var t=n(22858),e=n(13884),l=n(60379),h=n(80521);M.exports=function r(d,y){return t(d)||e(d,y)||l(d,y)||h()},M.exports.__esModule=!0,M.exports.default=M.exports},319:(M,b,n)=>{var t=n(23646),e=n(46860),l=n(60379),h=n(98206);M.exports=function r(d){return t(d)||e(d)||l(d)||h()},M.exports.__esModule=!0,M.exports.default=M.exports},50008:M=>{function b(n){return M.exports=b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},M.exports.__esModule=!0,M.exports.default=M.exports,b(n)}M.exports=b,M.exports.__esModule=!0,M.exports.default=M.exports},60379:(M,b,n)=>{var t=n(67228);M.exports=function e(l,h){if(l){if("string"==typeof l)return t(l,h);var r=Object.prototype.toString.call(l).slice(8,-1);if("Object"===r&&l.constructor&&(r=l.constructor.name),"Map"===r||"Set"===r)return Array.from(l);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(l,h)}},M.exports.__esModule=!0,M.exports.default=M.exports},87757:(M,b,n)=>{M.exports=n(59591)()},95877:M=>{function b(t,e,l,h,r,d,y){try{var g=t[d](y),p=g.value}catch(f){return void l(f)}g.done?e(p):Promise.resolve(p).then(h,r)}M.exports=function n(t){return function(){var e=this,l=arguments;return new Promise(function(h,r){var d=t.apply(e,l);function y(p){b(d,h,r,y,g,"next",p)}function g(p){b(d,h,r,y,g,"throw",p)}y(void 0)})}}},67957:M=>{M.exports=function b(n){return n&&n.__esModule?n:{default:n}}},86780:(M,b,n)=>{M.exports=n(67854)},46700:(M,b,n)=>{var t={"./af":27088,"./af.js":27088,"./ar":17038,"./ar-dz":52502,"./ar-dz.js":52502,"./ar-kw":30128,"./ar-kw.js":30128,"./ar-ly":84519,"./ar-ly.js":84519,"./ar-ma":65443,"./ar-ma.js":65443,"./ar-sa":17642,"./ar-sa.js":17642,"./ar-tn":68592,"./ar-tn.js":68592,"./ar.js":17038,"./az":51213,"./az.js":51213,"./be":69191,"./be.js":69191,"./bg":90322,"./bg.js":90322,"./bm":28042,"./bm.js":28042,"./bn":59620,"./bn-bd":65903,"./bn-bd.js":65903,"./bn.js":59620,"./bo":69645,"./bo.js":69645,"./br":45020,"./br.js":45020,"./bs":64792,"./bs.js":64792,"./ca":47980,"./ca.js":47980,"./cs":47322,"./cs.js":47322,"./cv":90365,"./cv.js":90365,"./cy":32092,"./cy.js":32092,"./da":77387,"./da.js":77387,"./de":54307,"./de-at":29459,"./de-at.js":29459,"./de-ch":73694,"./de-ch.js":73694,"./de.js":54307,"./dv":39659,"./dv.js":39659,"./el":3460,"./el.js":3460,"./en-au":94369,"./en-au.js":94369,"./en-ca":60530,"./en-ca.js":60530,"./en-gb":9998,"./en-gb.js":9998,"./en-ie":13391,"./en-ie.js":13391,"./en-il":75414,"./en-il.js":75414,"./en-in":19615,"./en-in.js":19615,"./en-nz":21248,"./en-nz.js":21248,"./en-sg":13767,"./en-sg.js":13767,"./eo":84530,"./eo.js":84530,"./es":86866,"./es-do":18944,"./es-do.js":18944,"./es-mx":29116,"./es-mx.js":29116,"./es-us":83609,"./es-us.js":83609,"./es.js":86866,"./et":96725,"./et.js":96725,"./eu":67931,"./eu.js":67931,"./fa":56417,"./fa.js":56417,"./fi":20944,"./fi.js":20944,"./fil":61766,"./fil.js":61766,"./fo":95867,"./fo.js":95867,"./fr":1636,"./fr-ca":16848,"./fr-ca.js":16848,"./fr-ch":77773,"./fr-ch.js":77773,"./fr.js":1636,"./fy":14940,"./fy.js":14940,"./ga":91402,"./ga.js":91402,"./gd":46924,"./gd.js":46924,"./gl":16398,"./gl.js":16398,"./gom-deva":72457,"./gom-deva.js":72457,"./gom-latn":52545,"./gom-latn.js":52545,"./gu":42641,"./gu.js":42641,"./he":7536,"./he.js":7536,"./hi":96335,"./hi.js":96335,"./hr":7458,"./hr.js":7458,"./hu":56540,"./hu.js":56540,"./hy-am":65283,"./hy-am.js":65283,"./id":98780,"./id.js":98780,"./is":14205,"./is.js":14205,"./it":34211,"./it-ch":29985,"./it-ch.js":29985,"./it.js":34211,"./ja":31003,"./ja.js":31003,"./jv":60420,"./jv.js":60420,"./ka":40851,"./ka.js":40851,"./kk":16074,"./kk.js":16074,"./km":53343,"./km.js":53343,"./kn":44799,"./kn.js":44799,"./ko":13549,"./ko.js":13549,"./ku":91037,"./ku.js":91037,"./ky":93125,"./ky.js":93125,"./lb":69586,"./lb.js":69586,"./lo":32349,"./lo.js":32349,"./lt":92400,"./lt.js":92400,"./lv":39991,"./lv.js":39991,"./me":28477,"./me.js":28477,"./mi":55118,"./mi.js":55118,"./mk":15943,"./mk.js":15943,"./ml":13849,"./ml.js":13849,"./mn":31977,"./mn.js":31977,"./mr":66184,"./mr.js":66184,"./ms":70485,"./ms-my":64524,"./ms-my.js":64524,"./ms.js":70485,"./mt":36681,"./mt.js":36681,"./my":52024,"./my.js":52024,"./nb":42688,"./nb.js":42688,"./ne":68914,"./ne.js":68914,"./nl":11758,"./nl-be":52272,"./nl-be.js":52272,"./nl.js":11758,"./nn":41510,"./nn.js":41510,"./oc-lnc":52797,"./oc-lnc.js":52797,"./pa-in":37944,"./pa-in.js":37944,"./pl":1605,"./pl.js":1605,"./pt":54225,"./pt-br":73840,"./pt-br.js":73840,"./pt.js":54225,"./ro":45128,"./ro.js":45128,"./ru":35127,"./ru.js":35127,"./sd":32525,"./sd.js":32525,"./se":59893,"./se.js":59893,"./si":33123,"./si.js":33123,"./sk":59635,"./sk.js":59635,"./sl":78106,"./sl.js":78106,"./sq":88799,"./sq.js":88799,"./sr":97949,"./sr-cyrl":52872,"./sr-cyrl.js":52872,"./sr.js":97949,"./ss":86167,"./ss.js":86167,"./sv":39713,"./sv.js":39713,"./sw":41982,"./sw.js":41982,"./ta":22732,"./ta.js":22732,"./te":43636,"./te.js":43636,"./tet":2115,"./tet.js":2115,"./tg":69801,"./tg.js":69801,"./th":2868,"./th.js":2868,"./tk":31310,"./tk.js":31310,"./tl-ph":22360,"./tl-ph.js":22360,"./tlh":66645,"./tlh.js":66645,"./tr":98374,"./tr.js":98374,"./tzl":256,"./tzl.js":256,"./tzm":61595,"./tzm-latn":61631,"./tzm-latn.js":61631,"./tzm.js":61595,"./ug-cn":6050,"./ug-cn.js":6050,"./uk":65610,"./uk.js":65610,"./ur":86077,"./ur.js":86077,"./uz":22862,"./uz-latn":12207,"./uz-latn.js":12207,"./uz.js":22862,"./vi":48093,"./vi.js":48093,"./x-pseudo":25590,"./x-pseudo.js":25590,"./yo":9058,"./yo.js":9058,"./zh-cn":77908,"./zh-cn.js":77908,"./zh-hk":8867,"./zh-hk.js":8867,"./zh-mo":31133,"./zh-mo.js":31133,"./zh-tw":83291,"./zh-tw.js":83291};function e(h){var r=l(h);return n(r)}function l(h){if(!n.o(t,h)){var r=new Error("Cannot find module '"+h+"'");throw r.code="MODULE_NOT_FOUND",r}return t[h]}e.keys=function(){return Object.keys(t)},e.resolve=l,M.exports=e,e.id=46700},70655:(M,b,n)=>{"use strict";function h(x,j){var $={};for(var Y in x)Object.prototype.hasOwnProperty.call(x,Y)&&j.indexOf(Y)<0&&($[Y]=x[Y]);if(null!=x&&"function"==typeof Object.getOwnPropertySymbols){var u=0;for(Y=Object.getOwnPropertySymbols(x);u<Y.length;u++)j.indexOf(Y[u])<0&&Object.prototype.propertyIsEnumerable.call(x,Y[u])&&($[Y[u]]=x[Y[u]])}return $}function r(x,j,$,Y){var fe,u=arguments.length,W=u<3?j:null===Y?Y=Object.getOwnPropertyDescriptor(j,$):Y;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)W=Reflect.decorate(x,j,$,Y);else for(var ae=x.length-1;ae>=0;ae--)(fe=x[ae])&&(W=(u<3?fe(W):u>3?fe(j,$,W):fe(j,$))||W);return u>3&&W&&Object.defineProperty(j,$,W),W}function d(x,j){return function($,Y){j($,Y,x)}}function N(x,j,$,Y){return new($||($=Promise))(function(W,fe){function ae(Ot){try{Qe(Y.next(Ot))}catch(At){fe(At)}}function ye(Ot){try{Qe(Y.throw(Ot))}catch(At){fe(At)}}function Qe(Ot){Ot.done?W(Ot.value):function u(W){return W instanceof $?W:new $(function(fe){fe(W)})}(Ot.value).then(ae,ye)}Qe((Y=Y.apply(x,j||[])).next())})}n.d(b,{_T:()=>h,fM:()=>d,gn:()=>r,mG:()=>N})},80950:()=>{},46601:()=>{},8623:()=>{},7748:()=>{},85568:()=>{},56619:()=>{},77108:()=>{},52361:()=>{},94616:()=>{},76842:(M,b)=>{"use strict";var n={},t_default=function(Et,Ae,it,Bt,pr){var Or=new Worker(n[Ae]||(n[Ae]=URL.createObjectURL(new Blob([Et+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return Or.onmessage=function(Wr){var sn=Wr.data,En=sn.$e$;if(En){var Sn=new Error(En[0]);Sn.code=En[1],Sn.stack=En[2],pr(Sn,null)}else pr(null,sn)},Or.postMessage(it,Bt),Or},e=Uint8Array,l=Uint16Array,h=Int32Array,r=new e([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]),d=new e([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]),y=new e([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),g=function(Et,Ae){for(var it=new l(31),Bt=0;Bt<31;++Bt)it[Bt]=Ae+=1<<Et[Bt-1];var pr=new h(it[30]);for(Bt=1;Bt<30;++Bt)for(var Or=it[Bt];Or<it[Bt+1];++Or)pr[Or]=Or-it[Bt]<<5|Bt;return{b:it,r:pr}},p=g(r,2),f=p.b,C=p.r;f[28]=258,C[258]=28;for(var N=g(d,0),a=N.b,O=N.r,H=new l(32768),F=0;F<32768;++F){var V=(43690&F)>>1|(21845&F)<<1;H[F]=((65280&(V=(61680&(V=(52428&V)>>2|(13107&V)<<2))>>4|(3855&V)<<4))>>8|(255&V)<<8)>>1}var D=function(Et,Ae,it){for(var Bt=Et.length,pr=0,Or=new l(Ae);pr<Bt;++pr)Et[pr]&&++Or[Et[pr]-1];var sn,Wr=new l(Ae);for(pr=1;pr<Ae;++pr)Wr[pr]=Wr[pr-1]+Or[pr-1]<<1;if(it){sn=new l(1<<Ae);var En=15-Ae;for(pr=0;pr<Bt;++pr)if(Et[pr])for(var Sn=pr<<4|Et[pr],yn=Ae-Et[pr],Rn=Wr[Et[pr]-1]++<<yn,Kn=Rn|(1<<yn)-1;Rn<=Kn;++Rn)sn[H[Rn]>>En]=Sn}else for(sn=new l(Bt),pr=0;pr<Bt;++pr)Et[pr]&&(sn[pr]=H[Wr[Et[pr]-1]++]>>15-Et[pr]);return sn},U=new e(288);for(F=0;F<144;++F)U[F]=8;for(F=144;F<256;++F)U[F]=9;for(F=256;F<280;++F)U[F]=7;for(F=280;F<288;++F)U[F]=8;var q=new e(32);for(F=0;F<32;++F)q[F]=5;var J=D(U,9,0),G=D(U,9,1),ie=D(q,5,0),K=D(q,5,1),re=function(Et){for(var Ae=Et[0],it=1;it<Et.length;++it)Et[it]>Ae&&(Ae=Et[it]);return Ae},oe=function(Et,Ae,it){var Bt=Ae/8|0;return(Et[Bt]|Et[Bt+1]<<8)>>(7&Ae)&it},B=function(Et,Ae){var it=Ae/8|0;return(Et[it]|Et[it+1]<<8|Et[it+2]<<16)>>(7&Ae)},s=function(Et){return(Et+7)/8|0},_=function(Et,Ae,it){return(null==Ae||Ae<0)&&(Ae=0),(null==it||it>Et.length)&&(it=Et.length),new e(Et.subarray(Ae,it))};b.FlateErrorCode={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14};var w=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(Et,Ae,it){var Bt=new Error(Ae||w[Et]);if(Bt.code=Et,Error.captureStackTrace&&Error.captureStackTrace(Bt,E),!it)throw Bt;return Bt},x=function(Et,Ae,it,Bt){var pr=Et.length,Or=Bt?Bt.length:0;if(!pr||Ae.f&&!Ae.l)return it||new e(0);var Wr=!it,sn=Wr||2!=Ae.i,En=Ae.i;Wr&&(it=new e(3*pr));var Sn=function($s){var Zs=it.length;if($s>Zs){var ps=new e(Math.max(2*Zs,$s));ps.set(it),it=ps}},yn=Ae.f||0,Rn=Ae.p||0,Kn=Ae.b||0,vi=Ae.l,li=Ae.d,ci=Ae.m,lr=Ae.n,_r=8*pr;do{if(!vi){yn=oe(Et,Rn,1);var yr=oe(Et,Rn+1,3);if(Rn+=3,!yr){var dn=Et[(xr=s(Rn)+4)-4]|Et[xr-3]<<8,bn=xr+dn;if(bn>pr){En&&E(0);break}sn&&Sn(Kn+dn),it.set(Et.subarray(xr,bn),Kn),Ae.b=Kn+=dn,Ae.p=Rn=8*bn,Ae.f=yn;continue}if(1==yr)vi=G,li=K,ci=9,lr=5;else if(2==yr){var Un=oe(Et,Rn,31)+257,Fn=oe(Et,Rn+10,15)+4,Vn=Un+oe(Et,Rn+5,31)+1;Rn+=14;for(var zn=new e(Vn),ai=new e(19),_i=0;_i<Fn;++_i)ai[y[_i]]=oe(Et,Rn+3*_i,7);Rn+=3*Fn;var wi=re(ai),Wn=(1<<wi)-1,$r=D(ai,wi,1);for(_i=0;_i<Vn;){var xr,Pn=$r[oe(Et,Rn,Wn)];if(Rn+=15&Pn,(xr=Pn>>4)<16)zn[_i++]=xr;else{var An=0,Qn=0;for(16==xr?(Qn=3+oe(Et,Rn,3),Rn+=2,An=zn[_i-1]):17==xr?(Qn=3+oe(Et,Rn,7),Rn+=3):18==xr&&(Qn=11+oe(Et,Rn,127),Rn+=7);Qn--;)zn[_i++]=An}}var yi=zn.subarray(0,Un),oi=zn.subarray(Un);ci=re(yi),lr=re(oi),vi=D(yi,ci,1),li=D(oi,lr,1)}else E(1);if(Rn>_r){En&&E(0);break}}sn&&Sn(Kn+131072);for(var di=(1<<ci)-1,Qi=(1<<lr)-1,Di=Rn;;Di=Rn){var ts=(An=vi[B(Et,Rn)&di])>>4;if((Rn+=15&An)>_r){En&&E(0);break}if(An||E(2),ts<256)it[Kn++]=ts;else{if(256==ts){Di=Rn,vi=null;break}var Oi=ts-254;ts>264&&(Oi=oe(Et,Rn,(1<<(hs=r[_i=ts-257]))-1)+f[_i],Rn+=hs);var Fi=li[B(Et,Rn)&Qi],Os=Fi>>4;if(Fi||E(3),Rn+=15&Fi,oi=a[Os],Os>3){var hs=d[Os];oi+=B(Et,Rn)&(1<<hs)-1,Rn+=hs}if(Rn>_r){En&&E(0);break}sn&&Sn(Kn+131072);var ys=Kn+Oi;if(Kn<oi){var rs=Or-oi,fa=Math.min(oi,ys);for(rs+Kn<0&&E(3);Kn<fa;++Kn)it[Kn]=Bt[rs+Kn]}for(;Kn<ys;++Kn)it[Kn]=it[Kn-oi]}}Ae.l=vi,Ae.p=Di,Ae.b=Kn,Ae.f=yn,vi&&(yn=1,Ae.m=ci,Ae.d=li,Ae.n=lr)}while(!yn);return Kn!=it.length&&Wr?_(it,0,Kn):it.subarray(0,Kn)},j=function(Et,Ae,it){var Bt=Ae/8|0;Et[Bt]|=it<<=7&Ae,Et[Bt+1]|=it>>8},$=function(Et,Ae,it){var Bt=Ae/8|0;Et[Bt]|=it<<=7&Ae,Et[Bt+1]|=it>>8,Et[Bt+2]|=it>>16},Y=function(Et,Ae){for(var it=[],Bt=0;Bt<Et.length;++Bt)Et[Bt]&&it.push({s:Bt,f:Et[Bt]});var pr=it.length,Or=it.slice();if(!pr)return{t:Ot,l:0};if(1==pr){var Wr=new e(it[0].s+1);return Wr[it[0].s]=1,{t:Wr,l:1}}it.sort(function(bn,Un){return bn.f-Un.f}),it.push({s:-1,f:25001});var sn=it[0],En=it[1],Sn=0,yn=1,Rn=2;for(it[0]={s:-1,f:sn.f+En.f,l:sn,r:En};yn!=pr-1;)sn=it[it[Sn].f<it[Rn].f?Sn++:Rn++],En=it[Sn!=yn&&it[Sn].f<it[Rn].f?Sn++:Rn++],it[yn++]={s:-1,f:sn.f+En.f,l:sn,r:En};var Kn=Or[0].s;for(Bt=1;Bt<pr;++Bt)Or[Bt].s>Kn&&(Kn=Or[Bt].s);var vi=new l(Kn+1),li=u(it[yn-1],vi,0);if(li>Ae){Bt=0;var ci=0,lr=li-Ae,_r=1<<lr;for(Or.sort(function(Un,Fn){return vi[Fn.s]-vi[Un.s]||Un.f-Fn.f});Bt<pr;++Bt){var yr=Or[Bt].s;if(!(vi[yr]>Ae))break;ci+=_r-(1<<li-vi[yr]),vi[yr]=Ae}for(ci>>=lr;ci>0;){var xr=Or[Bt].s;vi[xr]<Ae?ci-=1<<Ae-vi[xr]++-1:++Bt}for(;Bt>=0&&ci;--Bt){var dn=Or[Bt].s;vi[dn]==Ae&&(--vi[dn],++ci)}li=Ae}return{t:new e(vi),l:li}},u=function(Et,Ae,it){return-1==Et.s?Math.max(u(Et.l,Ae,it+1),u(Et.r,Ae,it+1)):Ae[Et.s]=it},W=function(Et){for(var Ae=Et.length;Ae&&!Et[--Ae];);for(var it=new l(++Ae),Bt=0,pr=Et[0],Or=1,Wr=function(En){it[Bt++]=En},sn=1;sn<=Ae;++sn)if(Et[sn]==pr&&sn!=Ae)++Or;else{if(!pr&&Or>2){for(;Or>138;Or-=138)Wr(32754);Or>2&&(Wr(Or>10?Or-11<<5|28690:Or-3<<5|12305),Or=0)}else if(Or>3){for(Wr(pr),--Or;Or>6;Or-=6)Wr(8304);Or>2&&(Wr(Or-3<<5|8208),Or=0)}for(;Or--;)Wr(pr);Or=1,pr=Et[sn]}return{c:it.subarray(0,Bt),n:Ae}},fe=function(Et,Ae){for(var it=0,Bt=0;Bt<Ae.length;++Bt)it+=Et[Bt]*Ae[Bt];return it},ae=function(Et,Ae,it){var Bt=it.length,pr=s(Ae+2);Et[pr]=255&Bt,Et[pr+1]=Bt>>8,Et[pr+2]=255^Et[pr],Et[pr+3]=255^Et[pr+1];for(var Or=0;Or<Bt;++Or)Et[pr+Or+4]=it[Or];return 8*(pr+4+Bt)},ye=function(Et,Ae,it,Bt,pr,Or,Wr,sn,En,Sn,yn){j(Ae,yn++,it),++pr[256];for(var Rn=Y(pr,15),Kn=Rn.t,vi=Rn.l,li=Y(Or,15),ci=li.t,lr=li.l,_r=W(Kn),yr=_r.c,xr=_r.n,dn=W(ci),bn=dn.c,Un=dn.n,Fn=new l(19),Vn=0;Vn<yr.length;++Vn)++Fn[31&yr[Vn]];for(Vn=0;Vn<bn.length;++Vn)++Fn[31&bn[Vn]];for(var zn=Y(Fn,7),ai=zn.t,_i=zn.l,wi=19;wi>4&&!ai[y[wi-1]];--wi);var An,Qn,yi,oi,Wn=Sn+5<<3,$r=fe(pr,U)+fe(Or,q)+Wr,Pn=fe(pr,Kn)+fe(Or,ci)+Wr+14+3*wi+fe(Fn,ai)+2*Fn[16]+3*Fn[17]+7*Fn[18];if(En>=0&&Wn<=$r&&Wn<=Pn)return ae(Ae,yn,Et.subarray(En,En+Sn));if(j(Ae,yn,1+(Pn<$r)),yn+=2,Pn<$r){An=D(Kn,vi,0),Qn=Kn,yi=D(ci,lr,0),oi=ci;var di=D(ai,_i,0);for(j(Ae,yn,xr-257),j(Ae,yn+5,Un-1),j(Ae,yn+10,wi-4),yn+=14,Vn=0;Vn<wi;++Vn)j(Ae,yn+3*Vn,ai[y[Vn]]);yn+=3*wi;for(var Qi=[yr,bn],Di=0;Di<2;++Di){var ts=Qi[Di];for(Vn=0;Vn<ts.length;++Vn)j(Ae,yn,di[Oi=31&ts[Vn]]),yn+=ai[Oi],Oi>15&&(j(Ae,yn,ts[Vn]>>5&127),yn+=ts[Vn]>>12)}}else An=J,Qn=U,yi=ie,oi=q;for(Vn=0;Vn<sn;++Vn){var hs=Bt[Vn];if(hs>255){var Oi;$(Ae,yn,An[257+(Oi=hs>>18&31)]),yn+=Qn[Oi+257],Oi>7&&(j(Ae,yn,hs>>23&31),yn+=r[Oi]);var Fi=31&hs;$(Ae,yn,yi[Fi]),yn+=oi[Fi],Fi>3&&($(Ae,yn,hs>>5&8191),yn+=d[Fi])}else $(Ae,yn,An[hs]),yn+=Qn[hs]}return $(Ae,yn,An[256]),yn+Qn[256]},Qe=new h([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Ot=new e(0),At=function(Et,Ae,it,Bt,pr,Or){var Wr=Or.z||Et.length,sn=new e(Bt+Wr+5*(1+Math.ceil(Wr/7e3))+pr),En=sn.subarray(Bt,sn.length-pr),Sn=Or.l,yn=7&(Or.r||0);if(Ae){yn&&(En[0]=Or.r>>3);for(var Rn=Qe[Ae-1],Kn=Rn>>13,vi=8191&Rn,li=(1<<it)-1,ci=Or.p||new l(32768),lr=Or.h||new l(li+1),_r=Math.ceil(it/3),yr=2*_r,xr=function(Ta){return(Et[Ta]^Et[Ta+1]<<_r^Et[Ta+2]<<yr)&li},dn=new h(25e3),bn=new l(288),Un=new l(32),Fn=0,Vn=0,zn=Or.i||0,ai=0,_i=Or.w||0,wi=0;zn+2<Wr;++zn){var Wn=xr(zn),$r=32767&zn,Pn=lr[Wn];if(ci[$r]=Pn,lr[Wn]=$r,_i<=zn){var An=Wr-zn;if((Fn>7e3||ai>24576)&&(An>423||!Sn)){yn=ye(Et,En,0,dn,bn,Un,Vn,ai,wi,zn-wi,yn),ai=Fn=Vn=0,wi=zn;for(var Qn=0;Qn<286;++Qn)bn[Qn]=0;for(Qn=0;Qn<30;++Qn)Un[Qn]=0}var yi=2,oi=0,di=vi,Qi=$r-Pn&32767;if(An>2&&Wn==xr(zn-Qi))for(var Di=Math.min(Kn,An)-1,ts=Math.min(32767,zn),Oi=Math.min(258,An);Qi<=ts&&--di&&$r!=Pn;){if(Et[zn+yi]==Et[zn+yi-Qi]){for(var hs=0;hs<Oi&&Et[zn+hs]==Et[zn+hs-Qi];++hs);if(hs>yi){if(yi=hs,oi=Qi,hs>Di)break;var Fi=Math.min(Qi,hs-2),Os=0;for(Qn=0;Qn<Fi;++Qn){var ys=zn-Qi+Qn&32767,fa=ys-ci[ys]&32767;fa>Os&&(Os=fa,Pn=ys)}}}Qi+=($r=Pn)-(Pn=ci[$r])&32767}if(oi){dn[ai++]=268435456|C[yi]<<18|O[oi];var $s=31&C[yi],Zs=31&O[oi];Vn+=r[$s]+d[Zs],++bn[257+$s],++Un[Zs],_i=zn+yi,++Fn}else dn[ai++]=Et[zn],++bn[Et[zn]]}}for(zn=Math.max(zn,_i);zn<Wr;++zn)dn[ai++]=Et[zn],++bn[Et[zn]];yn=ye(Et,En,Sn,dn,bn,Un,Vn,ai,wi,zn-wi,yn),Sn||(Or.r=7&yn|En[yn/8|0]<<3,yn-=7,Or.h=lr,Or.p=ci,Or.i=zn,Or.w=_i)}else{for(zn=Or.w||0;zn<Wr+Sn;zn+=65535){var ps=zn+65535;ps>=Wr&&(En[yn/8|0]=Sn,ps=Wr),yn=ae(En,yn+1,Et.subarray(zn,ps))}Or.i=Wr}return _(sn,0,Bt+s(yn)+pr)},Ze=function(){for(var Et=new Int32Array(256),Ae=0;Ae<256;++Ae){for(var it=Ae,Bt=9;--Bt;)it=(1&it&&-306674912)^it>>>1;Et[Ae]=it}return Et}(),at=function(){var Et=-1;return{p:function(Ae){for(var it=Et,Bt=0;Bt<Ae.length;++Bt)it=Ze[255&it^Ae[Bt]]^it>>>8;Et=it},d:function(){return~Et}}},Be=function(){var Et=1,Ae=0;return{p:function(it){for(var Bt=Et,pr=Ae,Or=0|it.length,Wr=0;Wr!=Or;){for(var sn=Math.min(Wr+2655,Or);Wr<sn;++Wr)pr+=Bt+=it[Wr];Bt=(65535&Bt)+15*(Bt>>16),pr=(65535&pr)+15*(pr>>16)}Et=Bt,Ae=pr},d:function(){return(255&(Et%=65521))<<24|(65280&Et)<<8|(255&(Ae%=65521))<<8|Ae>>8}}},Lt=function(Et,Ae,it,Bt,pr){if(!pr&&(pr={l:1},Ae.dictionary)){var Or=Ae.dictionary.subarray(-32768),Wr=new e(Or.length+Et.length);Wr.set(Or),Wr.set(Et,Or.length),Et=Wr,pr.w=Or.length}return At(Et,Ae.level??6,null==Ae.mem?pr.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(Et.length)))):20:12+Ae.mem,it,Bt,pr)},_e=function(Et,Ae){var it={};for(var Bt in Et)it[Bt]=Et[Bt];for(var Bt in Ae)it[Bt]=Ae[Bt];return it},ne=function(Et,Ae,it){for(var Bt=Et(),pr=Et.toString(),Or=pr.slice(pr.indexOf("[")+1,pr.lastIndexOf("]")).replace(/\s+/g,"").split(","),Wr=0;Wr<Bt.length;++Wr){var sn=Bt[Wr],En=Or[Wr];if("function"==typeof sn){Ae+=";"+En+"=";var Sn=sn.toString();if(sn.prototype)if(-1!=Sn.indexOf("[native code]")){var yn=Sn.indexOf(" ",8)+1;Ae+=Sn.slice(yn,Sn.indexOf("(",yn))}else for(var Rn in Ae+=Sn,sn.prototype)Ae+=";"+En+".prototype."+Rn+"="+sn.prototype[Rn].toString();else Ae+=Sn}else it[En]=sn}return Ae},be=[],$e=function(Et,Ae,it,Bt){if(!be[it]){for(var pr="",Or={},Wr=Et.length-1,sn=0;sn<Wr;++sn)pr=ne(Et[sn],pr,Or);be[it]={c:ne(Et[Wr],pr,Or),e:Or}}var En=_e({},be[it].e);return t_default(be[it].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+Ae.toString()+"}",it,En,function(Et){var Ae=[];for(var it in Et)Et[it].buffer&&Ae.push((Et[it]=new Et[it].constructor(Et[it])).buffer);return Ae}(En),Bt)},ft=function(){return[e,l,h,r,d,y,f,a,G,K,H,w,D,re,oe,B,s,_,E,x,kt,Dt,ot]},Ge=function(){return[e,l,h,r,d,y,C,O,J,U,ie,q,H,Qe,Ot,D,j,$,Y,u,W,fe,ae,ye,s,_,At,Lt,Pt,Dt]},Ft=function(){return[Re,cr,We,at,Ze]},br=function(){return[pt,Zt]},rt=function(){return[wt,We,Be]},st=function(){return[gt]},Dt=function(Et){return postMessage(Et,[Et.buffer])},ot=function(Et){return Et&&{out:Et.size&&new e(Et.size),dictionary:Et.dictionary}},nt=function(Et,Ae,it,Bt,pr,Or){var Wr=$e(it,Bt,pr,function(sn,En){Wr.terminate(),Or(sn,En)});return Wr.postMessage([Et,Ae],Ae.consume?[Et.buffer]:[]),function(){Wr.terminate()}},Yt=function(Et){return Et.ondata=function(Ae,it){return postMessage([Ae,it],[Ae.buffer])},function(Ae){Ae.data.length?(Et.push(Ae.data[0],Ae.data[1]),postMessage([Ae.data[0].length])):Et.flush()}},Ne=function(Et,Ae,it,Bt,pr,Or,Wr){var sn,En=$e(Et,Bt,pr,function(Sn,yn){Sn?(En.terminate(),Ae.ondata.call(Ae,Sn)):Array.isArray(yn)?1==yn.length?(Ae.queuedSize-=yn[0],Ae.ondrain&&Ae.ondrain(yn[0])):(yn[1]&&En.terminate(),Ae.ondata.call(Ae,Sn,yn[0],yn[1])):Wr(yn)});En.postMessage(it),Ae.queuedSize=0,Ae.push=function(Sn,yn){Ae.ondata||E(5),sn&&Ae.ondata(E(4,0,1),null,!!yn),Ae.queuedSize+=Sn.length,En.postMessage([Sn,sn=yn],[Sn.buffer])},Ae.terminate=function(){En.terminate()},Or&&(Ae.flush=function(){En.postMessage([])})},X=function(Et,Ae){return Et[Ae]|Et[Ae+1]<<8},ge=function(Et,Ae){return(Et[Ae]|Et[Ae+1]<<8|Et[Ae+2]<<16|Et[Ae+3]<<24)>>>0},Me=function(Et,Ae){return ge(Et,Ae)+4294967296*ge(Et,Ae+4)},We=function(Et,Ae,it){for(;it;++Ae)Et[Ae]=it,it>>>=8},Re=function(Et,Ae){var it=Ae.filename;if(Et[0]=31,Et[1]=139,Et[2]=8,Et[8]=Ae.level<2?4:9==Ae.level?2:0,Et[9]=3,0!=Ae.mtime&&We(Et,4,Math.floor(new Date(Ae.mtime||Date.now())/1e3)),it){Et[3]=8;for(var Bt=0;Bt<=it.length;++Bt)Et[Bt+10]=it.charCodeAt(Bt)}},pt=function(Et){(31!=Et[0]||139!=Et[1]||8!=Et[2])&&E(6,"invalid gzip data");var Ae=Et[3],it=10;4&Ae&&(it+=2+(Et[10]|Et[11]<<8));for(var Bt=(Ae>>3&1)+(Ae>>4&1);Bt>0;Bt-=!Et[it++]);return it+(2&Ae)},Zt=function(Et){var Ae=Et.length;return(Et[Ae-4]|Et[Ae-3]<<8|Et[Ae-2]<<16|Et[Ae-1]<<24)>>>0},cr=function(Et){return 10+(Et.filename?Et.filename.length+1:0)},wt=function(Et,Ae){var it=Ae.level,Bt=0==it?0:it<6?1:9==it?3:2;if(Et[0]=120,Et[1]=Bt<<6|(Ae.dictionary&&32),Et[1]|=31-(Et[0]<<8|Et[1])%31,Ae.dictionary){var pr=Be();pr.p(Ae.dictionary),We(Et,2,pr.d())}},gt=function(Et,Ae){return(8!=(15&Et[0])||Et[0]>>4>7||(Et[0]<<8|Et[1])%31)&&E(6,"invalid zlib data"),(Et[1]>>5&1)==+!Ae&&E(6,"invalid zlib data: "+(32&Et[1]?"need":"unexpected")+" dictionary"),2+(Et[1]>>3&4)};function Ut(Et,Ae){return"function"==typeof Et&&(Ae=Et,Et={}),this.ondata=Ae,Et}var hr=function(){function Et(Ae,it){if("function"==typeof Ae&&(it=Ae,Ae={}),this.ondata=it,this.o=Ae||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new e(98304),this.o.dictionary){var Bt=this.o.dictionary.subarray(-32768);this.b.set(Bt,32768-Bt.length),this.s.i=32768-Bt.length}}return Et.prototype.p=function(Ae,it){this.ondata(Lt(Ae,this.o,0,0,this.s),it)},Et.prototype.push=function(Ae,it){this.ondata||E(5),this.s.l&&E(4);var Bt=Ae.length+this.s.z;if(Bt>this.b.length){if(Bt>2*this.b.length-32768){var pr=new e(-32768&Bt);pr.set(this.b.subarray(0,this.s.z)),this.b=pr}var Or=this.b.length-this.s.z;this.b.set(Ae.subarray(0,Or),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(Ae.subarray(Or),32768),this.s.z=Ae.length-Or+32768,this.s.i=32766,this.s.w=32768}else this.b.set(Ae,this.s.z),this.s.z+=Ae.length;this.s.l=1&it,(this.s.z>this.s.w+8191||it)&&(this.p(this.b,it||!1),this.s.w=this.s.i,this.s.i-=2)},Et.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},Et}();b.Deflate=hr;var Cr=function(){return function Et(Ae,it){Ne([Ge,function(){return[Yt,hr]}],this,Ut.call(this,Ae,it),function(Bt){var pr=new hr(Bt.data);onmessage=Yt(pr)},6,1)}}();function Ue(Et,Ae,it){return it||(it=Ae,Ae={}),"function"!=typeof it&&E(7),nt(Et,Ae,[Ge],function(Bt){return Dt(Pt(Bt.data[0],Bt.data[1]))},0,it)}function Pt(Et,Ae){return Lt(Et,Ae||{},0,0)}b.AsyncDeflate=Cr,b.deflate=Ue,b.deflateSync=Pt;var He=function(){function Et(Ae,it){"function"==typeof Ae&&(it=Ae,Ae={}),this.ondata=it;var Bt=Ae&&Ae.dictionary&&Ae.dictionary.subarray(-32768);this.s={i:0,b:Bt?Bt.length:0},this.o=new e(32768),this.p=new e(0),Bt&&this.o.set(Bt)}return Et.prototype.e=function(Ae){if(this.ondata||E(5),this.d&&E(4),this.p.length){if(Ae.length){var it=new e(this.p.length+Ae.length);it.set(this.p),it.set(Ae,this.p.length),this.p=it}}else this.p=Ae},Et.prototype.c=function(Ae){this.s.i=+(this.d=Ae||!1);var it=this.s.b,Bt=x(this.p,this.s,this.o);this.ondata(_(Bt,it,this.s.b),this.d),this.o=_(Bt,this.s.b-32768),this.s.b=this.o.length,this.p=_(this.p,this.s.p/8|0),this.s.p&=7},Et.prototype.push=function(Ae,it){this.e(Ae),this.c(it)},Et}();b.Inflate=He;var tt=function(){return function Et(Ae,it){Ne([ft,function(){return[Yt,He]}],this,Ut.call(this,Ae,it),function(Bt){var pr=new He(Bt.data);onmessage=Yt(pr)},7,0)}}();function Ke(Et,Ae,it){return it||(it=Ae,Ae={}),"function"!=typeof it&&E(7),nt(Et,Ae,[ft],function(Bt){return Dt(kt(Bt.data[0],ot(Bt.data[1])))},1,it)}function kt(Et,Ae){return x(Et,{i:2},Ae&&Ae.out,Ae&&Ae.dictionary)}b.AsyncInflate=tt,b.inflate=Ke,b.inflateSync=kt;var xe=function(){function Et(Ae,it){this.c=at(),this.l=0,this.v=1,hr.call(this,Ae,it)}return Et.prototype.push=function(Ae,it){this.c.p(Ae),this.l+=Ae.length,hr.prototype.push.call(this,Ae,it)},Et.prototype.p=function(Ae,it){var Bt=Lt(Ae,this.o,this.v&&cr(this.o),it&&8,this.s);this.v&&(Re(Bt,this.o),this.v=0),it&&(We(Bt,Bt.length-8,this.c.d()),We(Bt,Bt.length-4,this.l)),this.ondata(Bt,it)},Et.prototype.flush=function(){hr.prototype.flush.call(this)},Et}();b.Gzip=xe,b.Compress=xe;var Fe=function(){return function Et(Ae,it){Ne([Ge,Ft,function(){return[Yt,hr,xe]}],this,Ut.call(this,Ae,it),function(Bt){var pr=new xe(Bt.data);onmessage=Yt(pr)},8,1)}}();function lt(Et,Ae,it){return it||(it=Ae,Ae={}),"function"!=typeof it&&E(7),nt(Et,Ae,[Ge,Ft,function(){return[St]}],function(Bt){return Dt(St(Bt.data[0],Bt.data[1]))},2,it)}function St(Et,Ae){Ae||(Ae={});var it=at(),Bt=Et.length;it.p(Et);var pr=Lt(Et,Ae,cr(Ae),8),Or=pr.length;return Re(pr,Ae),We(pr,Or-8,it.d()),We(pr,Or-4,Bt),pr}b.AsyncGzip=Fe,b.AsyncCompress=Fe,b.gzip=lt,b.compress=lt,b.gzipSync=St,b.compressSync=St;var qe=function(){function Et(Ae,it){this.v=1,this.r=0,He.call(this,Ae,it)}return Et.prototype.push=function(Ae,it){if(He.prototype.e.call(this,Ae),this.r+=Ae.length,this.v){var Bt=this.p.subarray(this.v-1),pr=Bt.length>3?pt(Bt):4;if(pr>Bt.length){if(!it)return}else this.v>1&&this.onmember&&this.onmember(this.r-Bt.length);this.p=Bt.subarray(pr),this.v=0}He.prototype.c.call(this,it),this.s.f&&!this.s.l&&!it&&(this.v=s(this.s.p)+9,this.s={i:0},this.o=new e(0),this.push(new e(0),it))},Et}();b.Gunzip=qe;var ke=function(){return function Et(Ae,it){var Bt=this;Ne([ft,br,function(){return[Yt,He,qe]}],this,Ut.call(this,Ae,it),function(pr){var Or=new qe(pr.data);Or.onmember=function(Wr){return postMessage(Wr)},onmessage=Yt(Or)},9,0,function(pr){return Bt.onmember&&Bt.onmember(pr)})}}();function ct(Et,Ae,it){return it||(it=Ae,Ae={}),"function"!=typeof it&&E(7),nt(Et,Ae,[ft,br,function(){return[vt]}],function(Bt){return Dt(vt(Bt.data[0],Bt.data[1]))},3,it)}function vt(Et,Ae){var it=pt(Et);return it+8>Et.length&&E(6,"invalid gzip data"),x(Et.subarray(it,-8),{i:2},Ae&&Ae.out||new e(Zt(Et)),Ae&&Ae.dictionary)}b.AsyncGunzip=ke,b.gunzip=ct,b.gunzipSync=vt;var $t=function(){function Et(Ae,it){this.c=Be(),this.v=1,hr.call(this,Ae,it)}return Et.prototype.push=function(Ae,it){this.c.p(Ae),hr.prototype.push.call(this,Ae,it)},Et.prototype.p=function(Ae,it){var Bt=Lt(Ae,this.o,this.v&&(this.o.dictionary?6:2),it&&4,this.s);this.v&&(wt(Bt,this.o),this.v=0),it&&We(Bt,Bt.length-4,this.c.d()),this.ondata(Bt,it)},Et.prototype.flush=function(){hr.prototype.flush.call(this)},Et}();function Ar(Et,Ae){Ae||(Ae={});var it=Be();it.p(Et);var Bt=Lt(Et,Ae,Ae.dictionary?6:2,4);return wt(Bt,Ae),We(Bt,Bt.length-4,it.d()),Bt}b.Zlib=$t,b.AsyncZlib=function(){return function Et(Ae,it){Ne([Ge,rt,function(){return[Yt,hr,$t]}],this,Ut.call(this,Ae,it),function(Bt){var pr=new $t(Bt.data);onmessage=Yt(pr)},10,1)}}(),b.zlib=function Sr(Et,Ae,it){return it||(it=Ae,Ae={}),"function"!=typeof it&&E(7),nt(Et,Ae,[Ge,rt,function(){return[Ar]}],function(Bt){return Dt(Ar(Bt.data[0],Bt.data[1]))},4,it)},b.zlibSync=Ar;var Jr=function(){function Et(Ae,it){He.call(this,Ae,it),this.v=Ae&&Ae.dictionary?2:1}return Et.prototype.push=function(Ae,it){if(He.prototype.e.call(this,Ae),this.v){if(this.p.length<6&&!it)return;this.p=this.p.subarray(gt(this.p,this.v-1)),this.v=0}it&&(this.p.length<4&&E(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),He.prototype.c.call(this,it)},Et}();b.Unzlib=Jr;var Fr=function(){return function Et(Ae,it){Ne([ft,st,function(){return[Yt,He,Jr]}],this,Ut.call(this,Ae,it),function(Bt){var pr=new Jr(Bt.data);onmessage=Yt(pr)},11,0)}}();function Gt(Et,Ae,it){return it||(it=Ae,Ae={}),"function"!=typeof it&&E(7),nt(Et,Ae,[ft,st,function(){return[le]}],function(Bt){return Dt(le(Bt.data[0],ot(Bt.data[1])))},5,it)}function le(Et,Ae){return x(Et.subarray(gt(Et,Ae&&Ae.dictionary),-4),{i:2},Ae&&Ae.out,Ae&&Ae.dictionary)}b.AsyncUnzlib=Fr,b.unzlib=Gt,b.unzlibSync=le;var Ce=function(){function Et(Ae,it){this.o=Ut.call(this,Ae,it)||{},this.G=qe,this.I=He,this.Z=Jr}return Et.prototype.i=function(){var Ae=this;this.s.ondata=function(it,Bt){Ae.ondata(it,Bt)}},Et.prototype.push=function(Ae,it){if(this.ondata||E(5),this.s)this.s.push(Ae,it);else{if(this.p&&this.p.length){var Bt=new e(this.p.length+Ae.length);Bt.set(this.p),Bt.set(Ae,this.p.length)}else this.p=Ae;this.p.length>2&&(this.s=31==this.p[0]&&139==this.p[1]&&8==this.p[2]?new this.G(this.o):8!=(15&this.p[0])||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o):new this.Z(this.o),this.i(),this.s.push(this.p,it),this.p=null)}},Et}();b.Decompress=Ce,b.AsyncDecompress=function(){function Et(Ae,it){Ce.call(this,Ae,it),this.queuedSize=0,this.G=ke,this.I=tt,this.Z=Fr}return Et.prototype.i=function(){var Ae=this;this.s.ondata=function(it,Bt,pr){Ae.ondata(it,Bt,pr)},this.s.ondrain=function(it){Ae.queuedSize-=it,Ae.ondrain&&Ae.ondrain(it)}},Et.prototype.push=function(Ae,it){this.queuedSize+=Ae.length,Ce.prototype.push.call(this,Ae,it)},Et}(),b.decompress=function Pe(Et,Ae,it){return it||(it=Ae,Ae={}),"function"!=typeof it&&E(7),31==Et[0]&&139==Et[1]&&8==Et[2]?ct(Et,Ae,it):8!=(15&Et[0])||Et[0]>>4>7||(Et[0]<<8|Et[1])%31?Ke(Et,Ae,it):Gt(Et,Ae,it)},b.decompressSync=function Oe(Et,Ae){return 31==Et[0]&&139==Et[1]&&8==Et[2]?vt(Et,Ae):8!=(15&Et[0])||Et[0]>>4>7||(Et[0]<<8|Et[1])%31?kt(Et,Ae):le(Et,Ae)};var Se=function(Et,Ae,it,Bt){for(var pr in Et){var Or=Et[pr],Wr=Ae+pr,sn=Bt;Array.isArray(Or)&&(sn=_e(Bt,Or[1]),Or=Or[0]),Or instanceof e?it[Wr]=[Or,sn]:(it[Wr+="/"]=[new e(0),sn],Se(Or,Wr,it,Bt))}},Xe=typeof TextEncoder<"u"&&new TextEncoder,Ct=typeof TextDecoder<"u"&&new TextDecoder,zt=0;try{Ct.decode(Ot,{stream:!0}),zt=1}catch{}var kr=function(Et){for(var Ae="",it=0;;){var Bt=Et[it++],pr=(Bt>127)+(Bt>223)+(Bt>239);if(it+pr>Et.length)return{s:Ae,r:_(Et,it-1)};pr?3==pr?(Bt=((15&Bt)<<18|(63&Et[it++])<<12|(63&Et[it++])<<6|63&Et[it++])-65536,Ae+=String.fromCharCode(55296|Bt>>10,56320|1023&Bt)):Ae+=String.fromCharCode(1&pr?(31&Bt)<<6|63&Et[it++]:(15&Bt)<<12|(63&Et[it++])<<6|63&Et[it++]):Ae+=String.fromCharCode(Bt)}};function tr(Et,Ae){if(Ae){for(var it=new e(Et.length),Bt=0;Bt<Et.length;++Bt)it[Bt]=Et.charCodeAt(Bt);return it}if(Xe)return Xe.encode(Et);var pr=Et.length,Or=new e(Et.length+(Et.length>>1)),Wr=0,sn=function(yn){Or[Wr++]=yn};for(Bt=0;Bt<pr;++Bt){if(Wr+5>Or.length){var En=new e(Wr+8+(pr-Bt<<1));En.set(Or),Or=En}var Sn=Et.charCodeAt(Bt);Sn<128||Ae?sn(Sn):Sn<2048?(sn(192|Sn>>6),sn(128|63&Sn)):Sn>55295&&Sn<57344?(sn(240|(Sn=65536+(1047552&Sn)|1023&Et.charCodeAt(++Bt))>>18),sn(128|Sn>>12&63),sn(128|Sn>>6&63),sn(128|63&Sn)):(sn(224|Sn>>12),sn(128|Sn>>6&63),sn(128|63&Sn))}return _(Or,0,Wr)}function Rr(Et,Ae){if(Ae){for(var it="",Bt=0;Bt<Et.length;Bt+=16384)it+=String.fromCharCode.apply(null,Et.subarray(Bt,Bt+16384));return it}if(Ct)return Ct.decode(Et);var pr=kr(Et),Or=pr.s;return(it=pr.r).length&&E(8),Or}b.DecodeUTF8=function(){function Et(Ae){this.ondata=Ae,zt?this.t=new TextDecoder:this.p=Ot}return Et.prototype.push=function(Ae,it){if(this.ondata||E(5),it=!!it,this.t)return this.ondata(this.t.decode(Ae,{stream:!0}),it),void(it&&(this.t.decode().length&&E(8),this.t=null));this.p||E(4);var Bt=new e(this.p.length+Ae.length);Bt.set(this.p),Bt.set(Ae,this.p.length);var pr=kr(Bt),Or=pr.s,Wr=pr.r;it?(Wr.length&&E(8),this.p=null):this.p=Wr,this.ondata(Or,it)},Et}(),b.EncodeUTF8=function(){function Et(Ae){this.ondata=Ae}return Et.prototype.push=function(Ae,it){this.ondata||E(5),this.d&&E(4),this.ondata(tr(Ae),this.d=it||!1)},Et}(),b.strToU8=tr,b.strFromU8=Rr;var Ur=function(Et){return 1==Et?3:Et<6?2:9==Et?1:0},Nr=function(Et,Ae){return Ae+30+X(Et,Ae+26)+X(Et,Ae+28)},zr=function(Et,Ae,it){var Bt=X(Et,Ae+28),pr=Rr(Et.subarray(Ae+46,Ae+46+Bt),!(2048&X(Et,Ae+8))),Or=Ae+46+Bt,Wr=ge(Et,Ae+20),sn=it&&4294967295==Wr?hn(Et,Or):[Wr,ge(Et,Ae+24),ge(Et,Ae+42)],En=sn[0],Sn=sn[1],yn=sn[2];return[X(Et,Ae+10),En,Sn,pr,Or+X(Et,Ae+30)+X(Et,Ae+32),yn]},hn=function(Et,Ae){for(;1!=X(Et,Ae);Ae+=4+X(Et,Ae+2));return[Me(Et,Ae+12),Me(Et,Ae+4),Me(Et,Ae+20)]},_n=function(Et){var Ae=0;if(Et)for(var it in Et){var Bt=Et[it].length;Bt>65535&&E(9),Ae+=Bt+4}return Ae},Tn=function(Et,Ae,it,Bt,pr,Or,Wr,sn){var En=Bt.length,Sn=it.extra,yn=sn&&sn.length,Rn=_n(Sn);We(Et,Ae,null!=Wr?33639248:67324752),Ae+=4,null!=Wr&&(Et[Ae++]=20,Et[Ae++]=it.os),Et[Ae]=20,Ae+=2,Et[Ae++]=it.flag<<1|(Or<0&&8),Et[Ae++]=pr&&8,Et[Ae++]=255&it.compression,Et[Ae++]=it.compression>>8;var Kn=new Date(it.mtime??Date.now()),vi=Kn.getFullYear()-1980;if((vi<0||vi>119)&&E(10),We(Et,Ae,vi<<25|Kn.getMonth()+1<<21|Kn.getDate()<<16|Kn.getHours()<<11|Kn.getMinutes()<<5|Kn.getSeconds()>>1),Ae+=4,-1!=Or&&(We(Et,Ae,it.crc),We(Et,Ae+4,Or<0?-Or-2:Or),We(Et,Ae+8,it.size)),We(Et,Ae+12,En),We(Et,Ae+14,Rn),Ae+=16,null!=Wr&&(We(Et,Ae,yn),We(Et,Ae+6,it.attrs),We(Et,Ae+10,Wr),Ae+=14),Et.set(Bt,Ae),Ae+=En,Rn)for(var li in Sn){var ci=Sn[li],lr=ci.length;We(Et,Ae,+li),We(Et,Ae+2,lr),Et.set(ci,Ae+4),Ae+=4+lr}return yn&&(Et.set(sn,Ae),Ae+=yn),Ae},sr=function(Et,Ae,it,Bt,pr){We(Et,Ae,101010256),We(Et,Ae+8,it),We(Et,Ae+10,it),We(Et,Ae+12,Bt),We(Et,Ae+16,pr)},fr=function(){function Et(Ae){this.filename=Ae,this.c=at(),this.size=0,this.compression=0}return Et.prototype.process=function(Ae,it){this.ondata(null,Ae,it)},Et.prototype.push=function(Ae,it){this.ondata||E(5),this.c.p(Ae),this.size+=Ae.length,it&&(this.crc=this.c.d()),this.process(Ae,it||!1)},Et}();b.ZipPassThrough=fr,b.ZipDeflate=function(){function Et(Ae,it){var Bt=this;it||(it={}),fr.call(this,Ae),this.d=new hr(it,function(pr,Or){Bt.ondata(null,pr,Or)}),this.compression=8,this.flag=Ur(it.level)}return Et.prototype.process=function(Ae,it){try{this.d.push(Ae,it)}catch(Bt){this.ondata(Bt,null,it)}},Et.prototype.push=function(Ae,it){fr.prototype.push.call(this,Ae,it)},Et}(),b.AsyncZipDeflate=function(){function Et(Ae,it){var Bt=this;it||(it={}),fr.call(this,Ae),this.d=new Cr(it,function(pr,Or,Wr){Bt.ondata(pr,Or,Wr)}),this.compression=8,this.flag=Ur(it.level),this.terminate=this.d.terminate}return Et.prototype.process=function(Ae,it){this.d.push(Ae,it)},Et.prototype.push=function(Ae,it){fr.prototype.push.call(this,Ae,it)},Et}(),b.Zip=function(){function Et(Ae){this.ondata=Ae,this.u=[],this.d=1}return Et.prototype.add=function(Ae){var it=this;if(this.ondata||E(5),2&this.d)this.ondata(E(4+8*(1&this.d),0,1),null,!1);else{var Bt=tr(Ae.filename),pr=Bt.length,Or=Ae.comment,Wr=Or&&tr(Or),sn=pr!=Ae.filename.length||Wr&&Or.length!=Wr.length,En=pr+_n(Ae.extra)+30;pr>65535&&this.ondata(E(11,0,1),null,!1);var Sn=new e(En);Tn(Sn,0,Ae,Bt,sn,-1);var yn=[Sn],Rn=function(){for(var lr=0,_r=yn;lr<_r.length;lr++)it.ondata(null,_r[lr],!1);yn=[]},Kn=this.d;this.d=0;var vi=this.u.length,li=_e(Ae,{f:Bt,u:sn,o:Wr,t:function(){Ae.terminate&&Ae.terminate()},r:function(){if(Rn(),Kn){var lr=it.u[vi+1];lr?lr.r():it.d=1}Kn=1}}),ci=0;Ae.ondata=function(lr,_r,yr){if(lr)it.ondata(lr,_r,yr),it.terminate();else if(ci+=_r.length,yn.push(_r),yr){var xr=new e(16);We(xr,0,134695760),We(xr,4,Ae.crc),We(xr,8,ci),We(xr,12,Ae.size),yn.push(xr),li.c=ci,li.b=En+ci+16,li.crc=Ae.crc,li.size=Ae.size,Kn&&li.r(),Kn=1}else Kn&&Rn()},this.u.push(li)}},Et.prototype.end=function(){var Ae=this;2&this.d?this.ondata(E(4+8*(1&this.d),0,1),null,!0):(this.d?this.e():this.u.push({r:function(){!(1&Ae.d)||(Ae.u.splice(-1,1),Ae.e())},t:function(){}}),this.d=3)},Et.prototype.e=function(){for(var Ae=0,it=0,Bt=0,pr=0,Or=this.u;pr<Or.length;pr++)Bt+=46+(Wr=Or[pr]).f.length+_n(Wr.extra)+(Wr.o?Wr.o.length:0);for(var sn=new e(Bt+22),En=0,Sn=this.u;En<Sn.length;En++){var Wr;Tn(sn,Ae,Wr=Sn[En],Wr.f,Wr.u,-Wr.c-2,it,Wr.o),Ae+=46+Wr.f.length+_n(Wr.extra)+(Wr.o?Wr.o.length:0),it+=Wr.b}sr(sn,Ae,this.u.length,Bt,it),this.ondata(null,sn,!0),this.d=2},Et.prototype.terminate=function(){for(var Ae=0,it=this.u;Ae<it.length;Ae++)it[Ae].t();this.d=2},Et}(),b.zip=function De(Et,Ae,it){it||(it=Ae,Ae={}),"function"!=typeof it&&E(7);var Bt={};Se(Et,"",Bt,Ae);var pr=Object.keys(Bt),Or=pr.length,Wr=0,sn=0,En=Or,Sn=new Array(Or),yn=[],Rn=function(){for(var lr=0;lr<yn.length;++lr)yn[lr]()},Kn=function(lr,_r){Zr(function(){it(lr,_r)})};Zr(function(){Kn=it});var vi=function(){var lr=new e(sn+22),_r=Wr,yr=sn-Wr;sn=0;for(var xr=0;xr<En;++xr){var dn=Sn[xr];try{var bn=dn.c.length;Tn(lr,sn,dn,dn.f,dn.u,bn);var Un=30+dn.f.length+_n(dn.extra),Fn=sn+Un;lr.set(dn.c,Fn),Tn(lr,Wr,dn,dn.f,dn.u,bn,sn,dn.m),Wr+=16+Un+(dn.m?dn.m.length:0),sn=Fn+bn}catch(Vn){return Kn(Vn,null)}}sr(lr,Wr,Sn.length,yr,_r),Kn(null,lr)};Or||vi();for(var li=function(lr){var _r=pr[lr],yr=Bt[_r],xr=yr[0],dn=yr[1],bn=at(),Un=xr.length;bn.p(xr);var Fn=tr(_r),Vn=Fn.length,zn=dn.comment,ai=zn&&tr(zn),_i=ai&&ai.length,wi=_n(dn.extra),Wn=0==dn.level?0:8,$r=function(Pn,An){if(Pn)Rn(),Kn(Pn,null);else{var Qn=An.length;Sn[lr]=_e(dn,{size:Un,crc:bn.d(),c:An,f:Fn,m:ai,u:Vn!=_r.length||ai&&zn.length!=_i,compression:Wn}),Wr+=30+Vn+wi+Qn,sn+=76+2*(Vn+wi)+(_i||0)+Qn,--Or||vi()}};if(Vn>65535&&$r(E(11,0,1),null),Wn)if(Un<16e4)try{$r(null,Pt(xr,dn))}catch(Pn){$r(Pn,null)}else yn.push(Ue(xr,dn,$r));else $r(null,xr)},ci=0;ci<En;++ci)li(ci);return Rn},b.zipSync=function ht(Et,Ae){Ae||(Ae={});var it={},Bt=[];Se(Et,"",it,Ae);var pr=0,Or=0;for(var Wr in it){var sn=it[Wr],En=sn[0],Sn=sn[1],yn=0==Sn.level?0:8,Kn=(Rn=tr(Wr)).length,vi=Sn.comment,li=vi&&tr(vi),ci=li&&li.length,lr=_n(Sn.extra);Kn>65535&&E(11);var _r=yn?Pt(En,Sn):En,yr=_r.length,xr=at();xr.p(En),Bt.push(_e(Sn,{size:En.length,crc:xr.d(),c:_r,f:Rn,m:li,u:Kn!=Wr.length||li&&vi.length!=ci,o:pr,compression:yn})),pr+=30+Kn+lr+yr,Or+=76+2*(Kn+lr)+(ci||0)+yr}for(var dn=new e(Or+22),bn=pr,Un=Or-pr,Fn=0;Fn<Bt.length;++Fn){var Rn;Tn(dn,(Rn=Bt[Fn]).o,Rn,Rn.f,Rn.u,Rn.c.length);var Vn=30+Rn.f.length+_n(Rn.extra);dn.set(Rn.c,Rn.o+Vn),Tn(dn,pr,Rn,Rn.f,Rn.u,Rn.c.length,Rn.o,Rn.m),pr+=16+Vn+(Rn.m?Rn.m.length:0)}return sr(dn,pr,Bt.length,Un,bn),dn};var Vt=function(){function Et(){}return Et.prototype.push=function(Ae,it){this.ondata(null,Ae,it)},Et.compression=0,Et}();b.UnzipPassThrough=Vt,b.UnzipInflate=function(){function Et(){var Ae=this;this.i=new He(function(it,Bt){Ae.ondata(null,it,Bt)})}return Et.prototype.push=function(Ae,it){try{this.i.push(Ae,it)}catch(Bt){this.ondata(Bt,null,it)}},Et.compression=8,Et}(),b.AsyncUnzipInflate=function(){function Et(Ae,it){var Bt=this;it<32e4?this.i=new He(function(pr,Or){Bt.ondata(null,pr,Or)}):(this.i=new tt(function(pr,Or,Wr){Bt.ondata(pr,Or,Wr)}),this.terminate=this.i.terminate)}return Et.prototype.push=function(Ae,it){this.i.terminate&&(Ae=_(Ae,0)),this.i.push(Ae,it)},Et.compression=8,Et}(),b.Unzip=function(){function Et(Ae){this.onfile=Ae,this.k=[],this.o={0:Vt},this.p=Ot}return Et.prototype.push=function(Ae,it){var Bt=this;if(this.onfile||E(5),this.p||E(4),this.c>0){var pr=Math.min(this.c,Ae.length),Or=Ae.subarray(0,pr);if(this.c-=pr,this.d?this.d.push(Or,!this.c):this.k[0].push(Or),(Ae=Ae.subarray(pr)).length)return this.push(Ae,it)}else{var Wr=0,sn=0,En=void 0,Sn=void 0;this.p.length?Ae.length?((Sn=new e(this.p.length+Ae.length)).set(this.p),Sn.set(Ae,this.p.length)):Sn=this.p:Sn=Ae;for(var yn=Sn.length,Rn=this.c,Kn=Rn&&this.d,vi=function(){var _r,yr=ge(Sn,sn);if(67324752==yr){Wr=1,En=sn,li.d=null,li.c=0;var xr=X(Sn,sn+6),dn=X(Sn,sn+8),bn=2048&xr,Un=8&xr,Fn=X(Sn,sn+26),Vn=X(Sn,sn+28);if(yn>sn+30+Fn+Vn){var zn=[];li.k.unshift(zn),Wr=2;var ai=ge(Sn,sn+18),_i=ge(Sn,sn+22),wi=Rr(Sn.subarray(sn+30,sn+=30+Fn),!bn);4294967295==ai?(_r=Un?[-2]:hn(Sn,sn),ai=_r[0],_i=_r[1]):Un&&(ai=-1),sn+=Vn,li.c=ai;var Wn,$r={name:wi,compression:dn,start:function(){if($r.ondata||E(5),ai){var Pn=Bt.o[dn];Pn||$r.ondata(E(14,"unknown compression type "+dn,1),null,!1),(Wn=ai<0?new Pn(wi):new Pn(wi,ai,_i)).ondata=function(oi,di,Qi){$r.ondata(oi,di,Qi)};for(var An=0,Qn=zn;An<Qn.length;An++)Wn.push(Qn[An],!1);Bt.k[0]==zn&&Bt.c?Bt.d=Wn:Wn.push(Ot,!0)}else $r.ondata(null,Ot,!0)},terminate:function(){Wn&&Wn.terminate&&Wn.terminate()}};ai>=0&&($r.size=ai,$r.originalSize=_i),li.onfile($r)}return"break"}if(Rn){if(134695760==yr)return En=sn+=12+(-2==Rn&&8),Wr=3,li.c=0,"break";if(33639248==yr)return En=sn-=4,Wr=3,li.c=0,"break"}},li=this;sn<yn-4&&"break"!==vi();++sn);if(this.p=Ot,Rn<0){var lr=Sn.subarray(0,Wr?En-12-(-2==Rn&&8)-(134695760==ge(Sn,En-16)&&4):sn);Kn?Kn.push(lr,!!Wr):this.k[+(2==Wr)].push(lr)}if(2&Wr)return this.push(Sn.subarray(sn),it);this.p=Sn.subarray(sn)}it&&(this.c&&E(13),this.p=null)},Et.prototype.register=function(Ae){this.o[Ae.compression]=Ae},Et}();var Zr="function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout?setTimeout:function(Et){Et()};b.unzip=function fn(Et,Ae,it){it||(it=Ae,Ae={}),"function"!=typeof it&&E(7);var Bt=[],pr=function(){for(var lr=0;lr<Bt.length;++lr)Bt[lr]()},Or={},Wr=function(lr,_r){Zr(function(){it(lr,_r)})};Zr(function(){Wr=it});for(var sn=Et.length-22;101010256!=ge(Et,sn);--sn)if(!sn||Et.length-sn>65558)return Wr(E(13,0,1),null),pr;var En=X(Et,sn+8);if(En){var Sn=En,yn=ge(Et,sn+16),Rn=4294967295==yn||65535==Sn;if(Rn){var Kn=ge(Et,sn-12);(Rn=101075792==ge(Et,Kn))&&(Sn=En=ge(Et,Kn+32),yn=ge(Et,Kn+48))}for(var vi=Ae&&Ae.filter,li=function(lr){var _r=zr(Et,yn,Rn),yr=_r[0],xr=_r[1],dn=_r[2],bn=_r[3],Un=_r[4],Vn=Nr(Et,_r[5]);yn=Un;var zn=function(_i,wi){_i?(pr(),Wr(_i,null)):(wi&&(Or[bn]=wi),--En||Wr(null,Or))};if(!vi||vi({name:bn,size:xr,originalSize:dn,compression:yr}))if(yr)if(8==yr){var ai=Et.subarray(Vn,Vn+xr);if(dn<524288||xr>.8*dn)try{zn(null,kt(ai,{out:new e(dn)}))}catch(_i){zn(_i,null)}else Bt.push(Ke(ai,{size:dn},zn))}else zn(E(14,"unknown compression type "+yr,1),null);else zn(null,_(Et,Vn,Vn+xr));else zn(null,null)},ci=0;ci<Sn;++ci)li()}else Wr(null,{});return pr},b.unzipSync=function un(Et,Ae){for(var it={},Bt=Et.length-22;101010256!=ge(Et,Bt);--Bt)(!Bt||Et.length-Bt>65558)&&E(13);var pr=X(Et,Bt+8);if(!pr)return{};var Or=ge(Et,Bt+16),Wr=4294967295==Or||65535==pr;if(Wr){var sn=ge(Et,Bt-12);(Wr=101075792==ge(Et,sn))&&(pr=ge(Et,sn+32),Or=ge(Et,sn+48))}for(var En=Ae&&Ae.filter,Sn=0;Sn<pr;++Sn){var yn=zr(Et,Or,Wr),Rn=yn[0],Kn=yn[1],vi=yn[2],li=yn[3],ci=yn[4],_r=Nr(Et,yn[5]);Or=ci,(!En||En({name:li,size:Kn,originalSize:vi,compression:Rn}))&&(Rn?8==Rn?it[li]=kt(Et.subarray(_r,_r+Kn),{out:new e(vi)}):E(14,"unknown compression type "+Rn):it[li]=_(Et,_r,_r+Kn))}return it}},49671:(M,b,n)=>{"use strict";function t(l,h,r,d,y,g,p){try{var f=l[g](p),C=f.value}catch(N){return void r(N)}f.done?h(C):Promise.resolve(C).then(d,y)}function e(l){return function(){var h=this,r=arguments;return new Promise(function(d,y){var g=l.apply(h,r);function p(C){t(g,d,y,p,f,"next",C)}function f(C){t(g,d,y,p,f,"throw",C)}p(void 0)})}}n.d(b,{Z:()=>e})},37340:(M,b,n)=>{"use strict";n.d(b,{LC:()=>e,SB:()=>p,X$:()=>h,ZE:()=>U,ZN:()=>D,_j:()=>t,eR:()=>C,jt:()=>r,k1:()=>q,l3:()=>l,oB:()=>g,vP:()=>y});class t{}class e{}const l="*";function h(J,G){return{type:7,name:J,definitions:G,options:{}}}function r(J,G=null){return{type:4,styles:G,timings:J}}function y(J,G=null){return{type:2,steps:J,options:G}}function g(J){return{type:6,styles:J,offset:null}}function p(J,G,ie){return{type:0,name:J,styles:G,options:ie}}function C(J,G,ie=null){return{type:1,expr:J,animation:G,options:ie}}function V(J){Promise.resolve(null).then(J)}class D{constructor(G=0,ie=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=G+ie}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(G=>G()),this._onDoneFns=[])}onStart(G){this._onStartFns.push(G)}onDone(G){this._onDoneFns.push(G)}onDestroy(G){this._onDestroyFns.push(G)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){V(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(G=>G()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(G=>G()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(G){this._position=this.totalTime?G*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(G){const ie="start"==G?this._onStartFns:this._onDoneFns;ie.forEach(K=>K()),ie.length=0}}class U{constructor(G){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=G;let ie=0,K=0,re=0;const oe=this.players.length;0==oe?V(()=>this._onFinish()):this.players.forEach(B=>{B.onDone(()=>{++ie==oe&&this._onFinish()}),B.onDestroy(()=>{++K==oe&&this._onDestroy()}),B.onStart(()=>{++re==oe&&this._onStart()})}),this.totalTime=this.players.reduce((B,s)=>Math.max(B,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(G=>G()),this._onDoneFns=[])}init(){this.players.forEach(G=>G.init())}onStart(G){this._onStartFns.push(G)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(G=>G()),this._onStartFns=[])}onDone(G){this._onDoneFns.push(G)}onDestroy(G){this._onDestroyFns.push(G)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(G=>G.play())}pause(){this.players.forEach(G=>G.pause())}restart(){this.players.forEach(G=>G.restart())}finish(){this._onFinish(),this.players.forEach(G=>G.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(G=>G.destroy()),this._onDestroyFns.forEach(G=>G()),this._onDestroyFns=[])}reset(){this.players.forEach(G=>G.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(G){const ie=G*this.totalTime;this.players.forEach(K=>{const re=K.totalTime?Math.min(1,ie/K.totalTime):1;K.setPosition(re)})}getPosition(){const G=this.players.reduce((ie,K)=>null===ie||K.totalTime>ie.totalTime?K:ie,null);return null!=G?G.getPosition():0}beforeDestroy(){this.players.forEach(G=>{G.beforeDestroy&&G.beforeDestroy()})}triggerCallback(G){const ie="start"==G?this._onStartFns:this._onDoneFns;ie.forEach(K=>K()),ie.length=0}}const q="!"},83353:(M,b,n)=>{"use strict";n.d(b,{Mq:()=>O,Oy:()=>J,i$:()=>C,sA:()=>q,t4:()=>h,ud:()=>r});var t=n(94650),e=n(36895);let l;try{l=typeof Intl<"u"&&Intl.v8BreakIterator}catch{l=!1}let p,a,h=(()=>{class G{constructor(K){this._platformId=K,this.isBrowser=this._platformId?(0,e.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!l)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return G.\u0275fac=function(K){return new(K||G)(t.LFG(t.Lbi))},G.\u0275prov=t.Yz7({token:G,factory:G.\u0275fac,providedIn:"root"}),G})(),r=(()=>{class G{}return G.\u0275fac=function(K){return new(K||G)},G.\u0275mod=t.oAB({type:G}),G.\u0275inj=t.cJS({}),G})();function C(G){return function f(){if(null==p&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>p=!0}))}finally{p=p||!1}return p}()?G:!!G.capture}function O(){if(null==a){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return a=!1,a;if("scrollBehavior"in document.documentElement.style)a=!0;else{const G=Element.prototype.scrollTo;a=!!G&&!/\{\s*\[native code\]\s*\}/.test(G.toString())}}return a}function q(G){return G.composedPath?G.composedPath()[0]:G.target}function J(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},36895:(M,b,n)=>{"use strict";n.d(b,{Do:()=>J,ED:()=>Ci,EM:()=>lo,HT:()=>r,JF:()=>ma,JJ:()=>zo,K0:()=>y,Mx:()=>Nr,NF:()=>gr,Nd:()=>Ro,O5:()=>Kt,Ov:()=>eo,PC:()=>ha,PM:()=>ur,RF:()=>wr,S$:()=>V,Ts:()=>go,V_:()=>f,Ye:()=>G,b0:()=>q,bD:()=>De,ez:()=>Jo,lw:()=>g,mk:()=>zr,mr:()=>U,n9:()=>On,q:()=>l,sg:()=>Tn,tP:()=>As,uf:()=>Se,w_:()=>d});var t=n(94650);let e=null;function l(){return e}function r(_t){e||(e=_t)}class d{}const y=new t.OlP("DocumentToken");let g=(()=>{class _t{historyGo(Nt){throw new Error("Not implemented")}}return _t.\u0275fac=function(Nt){return new(Nt||_t)},_t.\u0275prov=t.Yz7({token:_t,factory:function(){return function p(){return(0,t.LFG)(C)}()},providedIn:"platform"}),_t})();const f=new t.OlP("Location Initialized");let C=(()=>{class _t extends g{constructor(Nt){super(),this._doc=Nt,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return l().getBaseHref(this._doc)}onPopState(Nt){const Er=l().getGlobalEventTarget(this._doc,"window");return Er.addEventListener("popstate",Nt,!1),()=>Er.removeEventListener("popstate",Nt)}onHashChange(Nt){const Er=l().getGlobalEventTarget(this._doc,"window");return Er.addEventListener("hashchange",Nt,!1),()=>Er.removeEventListener("hashchange",Nt)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(Nt){this.location.pathname=Nt}pushState(Nt,Er,qr){N()?this._history.pushState(Nt,Er,qr):this.location.hash=qr}replaceState(Nt,Er,qr){N()?this._history.replaceState(Nt,Er,qr):this.location.hash=qr}forward(){this._history.forward()}back(){this._history.back()}historyGo(Nt=0){this._history.go(Nt)}getState(){return this._history.state}}return _t.\u0275fac=function(Nt){return new(Nt||_t)(t.LFG(y))},_t.\u0275prov=t.Yz7({token:_t,factory:function(){return function a(){return new C((0,t.LFG)(y))}()},providedIn:"platform"}),_t})();function N(){return!!window.history.pushState}function O(_t,ar){if(0==_t.length)return ar;if(0==ar.length)return _t;let Nt=0;return _t.endsWith("/")&&Nt++,ar.startsWith("/")&&Nt++,2==Nt?_t+ar.substring(1):1==Nt?_t+ar:_t+"/"+ar}function H(_t){const ar=_t.match(/#|\?|$/),Nt=ar&&ar.index||_t.length;return _t.slice(0,Nt-("/"===_t[Nt-1]?1:0))+_t.slice(Nt)}function F(_t){return _t&&"?"!==_t[0]?"?"+_t:_t}let V=(()=>{class _t{historyGo(Nt){throw new Error("Not implemented")}}return _t.\u0275fac=function(Nt){return new(Nt||_t)},_t.\u0275prov=t.Yz7({token:_t,factory:function(){return function D(_t){const ar=(0,t.LFG)(y).location;return new q((0,t.LFG)(g),ar&&ar.origin||"")}()},providedIn:"root"}),_t})();const U=new t.OlP("appBaseHref");let q=(()=>{class _t extends V{constructor(Nt,Er){if(super(),this._platformLocation=Nt,this._removeListenerFns=[],null==Er&&(Er=this._platformLocation.getBaseHrefFromDOM()),null==Er)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=Er}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Nt){this._removeListenerFns.push(this._platformLocation.onPopState(Nt),this._platformLocation.onHashChange(Nt))}getBaseHref(){return this._baseHref}prepareExternalUrl(Nt){return O(this._baseHref,Nt)}path(Nt=!1){const Er=this._platformLocation.pathname+F(this._platformLocation.search),qr=this._platformLocation.hash;return qr&&Nt?`${Er}${qr}`:Er}pushState(Nt,Er,qr,Cn){const Nn=this.prepareExternalUrl(qr+F(Cn));this._platformLocation.pushState(Nt,Er,Nn)}replaceState(Nt,Er,qr,Cn){const Nn=this.prepareExternalUrl(qr+F(Cn));this._platformLocation.replaceState(Nt,Er,Nn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(Nt=0){this._platformLocation.historyGo?.(Nt)}}return _t.\u0275fac=function(Nt){return new(Nt||_t)(t.LFG(g),t.LFG(U,8))},_t.\u0275prov=t.Yz7({token:_t,factory:_t.\u0275fac}),_t})(),J=(()=>{class _t extends V{constructor(Nt,Er){super(),this._platformLocation=Nt,this._baseHref="",this._removeListenerFns=[],null!=Er&&(this._baseHref=Er)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Nt){this._removeListenerFns.push(this._platformLocation.onPopState(Nt),this._platformLocation.onHashChange(Nt))}getBaseHref(){return this._baseHref}path(Nt=!1){let Er=this._platformLocation.hash;return null==Er&&(Er="#"),Er.length>0?Er.substring(1):Er}prepareExternalUrl(Nt){const Er=O(this._baseHref,Nt);return Er.length>0?"#"+Er:Er}pushState(Nt,Er,qr,Cn){let Nn=this.prepareExternalUrl(qr+F(Cn));0==Nn.length&&(Nn=this._platformLocation.pathname),this._platformLocation.pushState(Nt,Er,Nn)}replaceState(Nt,Er,qr,Cn){let Nn=this.prepareExternalUrl(qr+F(Cn));0==Nn.length&&(Nn=this._platformLocation.pathname),this._platformLocation.replaceState(Nt,Er,Nn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(Nt=0){this._platformLocation.historyGo?.(Nt)}}return _t.\u0275fac=function(Nt){return new(Nt||_t)(t.LFG(g),t.LFG(U,8))},_t.\u0275prov=t.Yz7({token:_t,factory:_t.\u0275fac}),_t})(),G=(()=>{class _t{constructor(Nt,Er){this._subject=new t.vpe,this._urlChangeListeners=[],this._platformStrategy=Nt;const qr=this._platformStrategy.getBaseHref();this._platformLocation=Er,this._baseHref=H(re(qr)),this._platformStrategy.onPopState(Cn=>{this._subject.emit({url:this.path(!0),pop:!0,state:Cn.state,type:Cn.type})})}path(Nt=!1){return this.normalize(this._platformStrategy.path(Nt))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(Nt,Er=""){return this.path()==this.normalize(Nt+F(Er))}normalize(Nt){return _t.stripTrailingSlash(function K(_t,ar){return _t&&ar.startsWith(_t)?ar.substring(_t.length):ar}(this._baseHref,re(Nt)))}prepareExternalUrl(Nt){return Nt&&"/"!==Nt[0]&&(Nt="/"+Nt),this._platformStrategy.prepareExternalUrl(Nt)}go(Nt,Er="",qr=null){this._platformStrategy.pushState(qr,"",Nt,Er),this._notifyUrlChangeListeners(this.prepareExternalUrl(Nt+F(Er)),qr)}replaceState(Nt,Er="",qr=null){this._platformStrategy.replaceState(qr,"",Nt,Er),this._notifyUrlChangeListeners(this.prepareExternalUrl(Nt+F(Er)),qr)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(Nt=0){this._platformStrategy.historyGo?.(Nt)}onUrlChange(Nt){this._urlChangeListeners.push(Nt),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Er=>{this._notifyUrlChangeListeners(Er.url,Er.state)}))}_notifyUrlChangeListeners(Nt="",Er){this._urlChangeListeners.forEach(qr=>qr(Nt,Er))}subscribe(Nt,Er,qr){return this._subject.subscribe({next:Nt,error:Er,complete:qr})}}return _t.normalizeQueryParams=F,_t.joinWithSlash=O,_t.stripTrailingSlash=H,_t.\u0275fac=function(Nt){return new(Nt||_t)(t.LFG(V),t.LFG(g))},_t.\u0275prov=t.Yz7({token:_t,factory:function(){return function ie(){return new G((0,t.LFG)(V),(0,t.LFG)(g))}()},providedIn:"root"}),_t})();function re(_t){return _t.replace(/\/index.html$/,"")}var B=(()=>((B=B||{})[B.Decimal=0]="Decimal",B[B.Percent=1]="Percent",B[B.Currency=2]="Currency",B[B.Scientific=3]="Scientific",B))(),x=(()=>((x=x||{})[x.Decimal=0]="Decimal",x[x.Group=1]="Group",x[x.List=2]="List",x[x.PercentSign=3]="PercentSign",x[x.PlusSign=4]="PlusSign",x[x.MinusSign=5]="MinusSign",x[x.Exponential=6]="Exponential",x[x.SuperscriptingExponent=7]="SuperscriptingExponent",x[x.PerMille=8]="PerMille",x[x.Infinity=9]="Infinity",x[x.NaN=10]="NaN",x[x.TimeSeparator=11]="TimeSeparator",x[x.CurrencyDecimal=12]="CurrencyDecimal",x[x.CurrencyGroup=13]="CurrencyGroup",x))();function Ze(_t,ar){const Nt=(0,t.cg1)(_t),Er=Nt[t.wAp.NumberSymbols][ar];if(typeof Er>"u"){if(ar===x.CurrencyDecimal)return Nt[t.wAp.NumberSymbols][x.Decimal];if(ar===x.CurrencyGroup)return Nt[t.wAp.NumberSymbols][x.Group]}return Er}const $t=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Se(_t,ar,Nt){return function Ie(_t,ar,Nt,Er,qr,Cn,Nn=!1){let ei="",ns=!1;if(isFinite(_t)){let gs=function zt(_t){let Er,qr,Cn,Nn,ei,ar=Math.abs(_t)+"",Nt=0;for((qr=ar.indexOf("."))>-1&&(ar=ar.replace(".","")),(Cn=ar.search(/e/i))>0?(qr<0&&(qr=Cn),qr+=+ar.slice(Cn+1),ar=ar.substring(0,Cn)):qr<0&&(qr=ar.length),Cn=0;"0"===ar.charAt(Cn);Cn++);if(Cn===(ei=ar.length))Er=[0],qr=1;else{for(ei--;"0"===ar.charAt(ei);)ei--;for(qr-=Cn,Er=[],Nn=0;Cn<=ei;Cn++,Nn++)Er[Nn]=Number(ar.charAt(Cn))}return qr>22&&(Er=Er.splice(0,21),Nt=qr-1,qr=1),{digits:Er,exponent:Nt,integerLen:qr}}(_t);Nn&&(gs=function Ct(_t){if(0===_t.digits[0])return _t;const ar=_t.digits.length-_t.integerLen;return _t.exponent?_t.exponent+=2:(0===ar?_t.digits.push(0,0):1===ar&&_t.digits.push(0),_t.integerLen+=2),_t}(gs));let as=ar.minInt,Yi=ar.minFrac,bs=ar.maxFrac;if(Cn){const ra=Cn.match($t);if(null===ra)throw new Error(`${Cn} is not a valid digit info`);const no=ra[1],bi=ra[3],ls=ra[5];null!=no&&(as=Br(no)),null!=bi&&(Yi=Br(bi)),null!=ls?bs=Br(ls):null!=bi&&Yi>bs&&(bs=Yi)}!function kr(_t,ar,Nt){if(ar>Nt)throw new Error(`The minimum number of digits after fraction (${ar}) is higher than the maximum (${Nt}).`);let Er=_t.digits,qr=Er.length-_t.integerLen;const Cn=Math.min(Math.max(ar,qr),Nt);let Nn=Cn+_t.integerLen,ei=Er[Nn];if(Nn>0){Er.splice(Math.max(_t.integerLen,Nn));for(let Yi=Nn;Yi<Er.length;Yi++)Er[Yi]=0}else{qr=Math.max(0,qr),_t.integerLen=1,Er.length=Math.max(1,Nn=Cn+1),Er[0]=0;for(let Yi=1;Yi<Nn;Yi++)Er[Yi]=0}if(ei>=5)if(Nn-1<0){for(let Yi=0;Yi>Nn;Yi--)Er.unshift(0),_t.integerLen++;Er.unshift(1),_t.integerLen++}else Er[Nn-1]++;for(;qr<Math.max(0,Cn);qr++)Er.push(0);let ns=0!==Cn;const gs=ar+_t.integerLen,as=Er.reduceRight(function(Yi,bs,qi,Us){return Us[qi]=(bs+=Yi)<10?bs:bs-10,ns&&(0===Us[qi]&&qi>=gs?Us.pop():ns=!1),bs>=10?1:0},0);as&&(Er.unshift(as),_t.integerLen++)}(gs,Yi,bs);let qi=gs.digits,Us=gs.integerLen;const aa=gs.exponent;let Rs=[];for(ns=qi.every(ra=>!ra);Us<as;Us++)qi.unshift(0);for(;Us<0;Us++)qi.unshift(0);Us>0?Rs=qi.splice(Us,qi.length):(Rs=qi,qi=[0]);const Ia=[];for(qi.length>=ar.lgSize&&Ia.unshift(qi.splice(-ar.lgSize,qi.length).join(""));qi.length>ar.gSize;)Ia.unshift(qi.splice(-ar.gSize,qi.length).join(""));qi.length&&Ia.unshift(qi.join("")),ei=Ia.join(Ze(Nt,Er)),Rs.length&&(ei+=Ze(Nt,qr)+Rs.join("")),aa&&(ei+=Ze(Nt,x.Exponential)+"+"+aa)}else ei=Ze(Nt,x.Infinity);return ei=_t<0&&!ns?ar.negPre+ei+ar.negSuf:ar.posPre+ei+ar.posSuf,ei}(_t,function Xe(_t,ar="-"){const Nt={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Er=_t.split(";"),qr=Er[0],Cn=Er[1],Nn=-1!==qr.indexOf(".")?qr.split("."):[qr.substring(0,qr.lastIndexOf("0")+1),qr.substring(qr.lastIndexOf("0")+1)],ei=Nn[0],ns=Nn[1]||"";Nt.posPre=ei.substr(0,ei.indexOf("#"));for(let as=0;as<ns.length;as++){const Yi=ns.charAt(as);"0"===Yi?Nt.minFrac=Nt.maxFrac=as+1:"#"===Yi?Nt.maxFrac=as+1:Nt.posSuf+=Yi}const gs=ei.split(",");if(Nt.gSize=gs[1]?gs[1].length:0,Nt.lgSize=gs[2]||gs[1]?(gs[2]||gs[1]).length:0,Cn){const as=qr.length-Nt.posPre.length-Nt.posSuf.length,Yi=Cn.indexOf("#");Nt.negPre=Cn.substr(0,Yi).replace(/'/g,""),Nt.negSuf=Cn.substr(Yi+as).replace(/'/g,"")}else Nt.negPre=ar+Nt.posPre,Nt.negSuf=Nt.posSuf;return Nt}(function at(_t,ar){return(0,t.cg1)(_t)[t.wAp.NumberFormats][ar]}(ar,B.Decimal),Ze(ar,x.MinusSign)),ar,x.Group,x.Decimal,Nt)}function Br(_t){const ar=parseInt(_t);if(isNaN(ar))throw new Error("Invalid integer literal when parsing "+_t);return ar}function Nr(_t,ar){ar=encodeURIComponent(ar);for(const Nt of _t.split(";")){const Er=Nt.indexOf("="),[qr,Cn]=-1==Er?[Nt,""]:[Nt.slice(0,Er),Nt.slice(Er+1)];if(qr.trim()===ar)return decodeURIComponent(Cn)}return null}let zr=(()=>{class _t{constructor(Nt,Er,qr,Cn){this._iterableDiffers=Nt,this._keyValueDiffers=Er,this._ngEl=qr,this._renderer=Cn,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(Nt){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof Nt?Nt.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(Nt){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof Nt?Nt.split(/\s+/):Nt,this._rawClass&&((0,t.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const Nt=this._iterableDiffer.diff(this._rawClass);Nt&&this._applyIterableChanges(Nt)}else if(this._keyValueDiffer){const Nt=this._keyValueDiffer.diff(this._rawClass);Nt&&this._applyKeyValueChanges(Nt)}}_applyKeyValueChanges(Nt){Nt.forEachAddedItem(Er=>this._toggleClass(Er.key,Er.currentValue)),Nt.forEachChangedItem(Er=>this._toggleClass(Er.key,Er.currentValue)),Nt.forEachRemovedItem(Er=>{Er.previousValue&&this._toggleClass(Er.key,!1)})}_applyIterableChanges(Nt){Nt.forEachAddedItem(Er=>{if("string"!=typeof Er.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,t.AaK)(Er.item)}`);this._toggleClass(Er.item,!0)}),Nt.forEachRemovedItem(Er=>this._toggleClass(Er.item,!1))}_applyClasses(Nt){Nt&&(Array.isArray(Nt)||Nt instanceof Set?Nt.forEach(Er=>this._toggleClass(Er,!0)):Object.keys(Nt).forEach(Er=>this._toggleClass(Er,!!Nt[Er])))}_removeClasses(Nt){Nt&&(Array.isArray(Nt)||Nt instanceof Set?Nt.forEach(Er=>this._toggleClass(Er,!1)):Object.keys(Nt).forEach(Er=>this._toggleClass(Er,!1)))}_toggleClass(Nt,Er){(Nt=Nt.trim())&&Nt.split(/\s+/g).forEach(qr=>{Er?this._renderer.addClass(this._ngEl.nativeElement,qr):this._renderer.removeClass(this._ngEl.nativeElement,qr)})}}return _t.\u0275fac=function(Nt){return new(Nt||_t)(t.Y36(t.ZZ4),t.Y36(t.aQg),t.Y36(t.SBq),t.Y36(t.Qsj))},_t.\u0275dir=t.lG2({type:_t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),_t})();class _n{constructor(ar,Nt,Er,qr){this.$implicit=ar,this.ngForOf=Nt,this.index=Er,this.count=qr}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Tn=(()=>{class _t{constructor(Nt,Er,qr){this._viewContainer=Nt,this._template=Er,this._differs=qr,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(Nt){this._ngForOf=Nt,this._ngForOfDirty=!0}set ngForTrackBy(Nt){this._trackByFn=Nt}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(Nt){Nt&&(this._template=Nt)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const Nt=this._ngForOf;!this._differ&&Nt&&(this._differ=this._differs.find(Nt).create(this.ngForTrackBy))}if(this._differ){const Nt=this._differ.diff(this._ngForOf);Nt&&this._applyChanges(Nt)}}_applyChanges(Nt){const Er=this._viewContainer;Nt.forEachOperation((qr,Cn,Nn)=>{if(null==qr.previousIndex)Er.createEmbeddedView(this._template,new _n(qr.item,this._ngForOf,-1,-1),null===Nn?void 0:Nn);else if(null==Nn)Er.remove(null===Cn?void 0:Cn);else if(null!==Cn){const ei=Er.get(Cn);Er.move(ei,Nn),sr(ei,qr)}});for(let qr=0,Cn=Er.length;qr<Cn;qr++){const ei=Er.get(qr).context;ei.index=qr,ei.count=Cn,ei.ngForOf=this._ngForOf}Nt.forEachIdentityChange(qr=>{sr(Er.get(qr.currentIndex),qr)})}static ngTemplateContextGuard(Nt,Er){return!0}}return _t.\u0275fac=function(Nt){return new(Nt||_t)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(t.ZZ4))},_t.\u0275dir=t.lG2({type:_t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),_t})();function sr(_t,ar){_t.context.$implicit=ar.item}let Kt=(()=>{class _t{constructor(Nt,Er){this._viewContainer=Nt,this._context=new Qr,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Er}set ngIf(Nt){this._context.$implicit=this._context.ngIf=Nt,this._updateView()}set ngIfThen(Nt){we("ngIfThen",Nt),this._thenTemplateRef=Nt,this._thenViewRef=null,this._updateView()}set ngIfElse(Nt){we("ngIfElse",Nt),this._elseTemplateRef=Nt,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(Nt,Er){return!0}}return _t.\u0275fac=function(Nt){return new(Nt||_t)(t.Y36(t.s_b),t.Y36(t.Rgc))},_t.\u0275dir=t.lG2({type:_t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),_t})();class Qr{constructor(){this.$implicit=null,this.ngIf=null}}function we(_t,ar){if(ar&&!ar.createEmbeddedView)throw new Error(`${_t} must be a TemplateRef, but received '${(0,t.AaK)(ar)}'.`)}const De="browser";function gr(_t){return _t===De}function ur(_t){return"server"===_t}class Qt{constructor(ar,Nt){this._viewContainerRef=ar,this._templateRef=Nt,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(ar){ar&&!this._created?this.create():!ar&&this._created&&this.destroy()}}let wr=(()=>{class _t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(Nt){this._ngSwitch=Nt,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(Nt){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(Nt)}_matchCase(Nt){const Er=Nt==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Er,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Er}_updateDefaultCases(Nt){if(this._defaultViews&&Nt!==this._defaultUsed){this._defaultUsed=Nt;for(let Er=0;Er<this._defaultViews.length;Er++)this._defaultViews[Er].enforceState(Nt)}}}return _t.\u0275fac=function(Nt){return new(Nt||_t)},_t.\u0275dir=t.lG2({type:_t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),_t})(),On=(()=>{class _t{constructor(Nt,Er,qr){this.ngSwitch=qr,qr._addCase(),this._view=new Qt(Nt,Er)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return _t.\u0275fac=function(Nt){return new(Nt||_t)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(wr,9))},_t.\u0275dir=t.lG2({type:_t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),_t})(),Ci=(()=>{class _t{constructor(Nt,Er,qr){qr._addDefault(new Qt(Nt,Er))}}return _t.\u0275fac=function(Nt){return new(Nt||_t)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(wr,9))},_t.\u0275dir=t.lG2({type:_t,selectors:[["","ngSwitchDefault",""]]}),_t})(),ha=(()=>{class _t{constructor(Nt,Er,qr){this._ngEl=Nt,this._differs=Er,this._renderer=qr,this._ngStyle=null,this._differ=null}set ngStyle(Nt){this._ngStyle=Nt,!this._differ&&Nt&&(this._differ=this._differs.find(Nt).create())}ngDoCheck(){if(this._differ){const Nt=this._differ.diff(this._ngStyle);Nt&&this._applyChanges(Nt)}}_setStyle(Nt,Er){const[qr,Cn]=Nt.split(".");null!=(Er=null!=Er&&Cn?`${Er}${Cn}`:Er)?this._renderer.setStyle(this._ngEl.nativeElement,qr,Er):this._renderer.removeStyle(this._ngEl.nativeElement,qr)}_applyChanges(Nt){Nt.forEachRemovedItem(Er=>this._setStyle(Er.key,null)),Nt.forEachAddedItem(Er=>this._setStyle(Er.key,Er.currentValue)),Nt.forEachChangedItem(Er=>this._setStyle(Er.key,Er.currentValue))}}return _t.\u0275fac=function(Nt){return new(Nt||_t)(t.Y36(t.SBq),t.Y36(t.aQg),t.Y36(t.Qsj))},_t.\u0275dir=t.lG2({type:_t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),_t})(),As=(()=>{class _t{constructor(Nt){this._viewContainerRef=Nt,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(Nt){if(Nt.ngTemplateOutlet){const Er=this._viewContainerRef;this._viewRef&&Er.remove(Er.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?Er.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&Nt.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return _t.\u0275fac=function(Nt){return new(Nt||_t)(t.Y36(t.s_b))},_t.\u0275dir=t.lG2({type:_t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[t.TTD]}),_t})();function pa(_t,ar){return new t.vHH(2100,"")}class Ca{createSubscription(ar,Nt){return ar.subscribe({next:Nt,error:Er=>{throw Er}})}dispose(ar){ar.unsubscribe()}onDestroy(ar){ar.unsubscribe()}}class Fa{createSubscription(ar,Nt){return ar.then(Nt,Er=>{throw Er})}dispose(ar){}onDestroy(ar){}}const Rl=new Fa,So=new Ca;let eo=(()=>{class _t{constructor(Nt){this._ref=Nt,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(Nt){return this._obj?Nt!==this._obj?(this._dispose(),this.transform(Nt)):this._latestValue:(Nt&&this._subscribe(Nt),this._latestValue)}_subscribe(Nt){this._obj=Nt,this._strategy=this._selectStrategy(Nt),this._subscription=this._strategy.createSubscription(Nt,Er=>this._updateLatestValue(Nt,Er))}_selectStrategy(Nt){if((0,t.QGY)(Nt))return Rl;if((0,t.F4k)(Nt))return So;throw pa()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(Nt,Er){Nt===this._obj&&(this._latestValue=Er,this._ref.markForCheck())}}return _t.\u0275fac=function(Nt){return new(Nt||_t)(t.Y36(t.sBO,16))},_t.\u0275pipe=t.Yjl({name:"async",type:_t,pure:!1}),_t})(),go=(()=>{class _t{transform(Nt){return JSON.stringify(Nt,null,2)}}return _t.\u0275fac=function(Nt){return new(Nt||_t)},_t.\u0275pipe=t.Yjl({name:"json",type:_t,pure:!1}),_t})(),Ro=(()=>{class _t{constructor(Nt){this.differs=Nt,this.keyValues=[],this.compareFn=mo}transform(Nt,Er=mo){if(!Nt||!(Nt instanceof Map)&&"object"!=typeof Nt)return null;this.differ||(this.differ=this.differs.find(Nt).create());const qr=this.differ.diff(Nt),Cn=Er!==this.compareFn;return qr&&(this.keyValues=[],qr.forEachItem(Nn=>{this.keyValues.push(function za(_t,ar){return{key:_t,value:ar}}(Nn.key,Nn.currentValue))})),(qr||Cn)&&(this.keyValues.sort(Er),this.compareFn=Er),this.keyValues}}return _t.\u0275fac=function(Nt){return new(Nt||_t)(t.Y36(t.aQg,16))},_t.\u0275pipe=t.Yjl({name:"keyvalue",type:_t,pure:!1}),_t})();function mo(_t,ar){const Nt=_t.key,Er=ar.key;if(Nt===Er)return 0;if(void 0===Nt)return 1;if(void 0===Er)return-1;if(null===Nt)return 1;if(null===Er)return-1;if("string"==typeof Nt&&"string"==typeof Er)return Nt<Er?-1:1;if("number"==typeof Nt&&"number"==typeof Er)return Nt-Er;if("boolean"==typeof Nt&&"boolean"==typeof Er)return Nt<Er?-1:1;const qr=String(Nt),Cn=String(Er);return qr==Cn?0:qr<Cn?-1:1}let zo=(()=>{class _t{constructor(Nt){this._locale=Nt}transform(Nt,Er,qr){if(!function wa(_t){return!(null==_t||""===_t||_t!=_t)}(Nt))return null;qr=qr||this._locale;try{return Se(function Ps(_t){if("string"==typeof _t&&!isNaN(Number(_t)-parseFloat(_t)))return Number(_t);if("number"!=typeof _t)throw new Error(`${_t} is not a number`);return _t}(Nt),qr,Er)}catch(Cn){throw pa()}}}return _t.\u0275fac=function(Nt){return new(Nt||_t)(t.Y36(t.soG,16))},_t.\u0275pipe=t.Yjl({name:"number",type:_t,pure:!0}),_t})();let Jo=(()=>{class _t{}return _t.\u0275fac=function(Nt){return new(Nt||_t)},_t.\u0275mod=t.oAB({type:_t}),_t.\u0275inj=t.cJS({}),_t})(),lo=(()=>{class _t{}return _t.\u0275prov=(0,t.Yz7)({token:_t,providedIn:"root",factory:()=>new ga((0,t.LFG)(y),window)}),_t})();class ga{constructor(ar,Nt){this.document=ar,this.window=Nt,this.offset=()=>[0,0]}setOffset(ar){this.offset=Array.isArray(ar)?()=>ar:ar}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(ar){this.supportsScrolling()&&this.window.scrollTo(ar[0],ar[1])}scrollToAnchor(ar){if(!this.supportsScrolling())return;const Nt=function ro(_t,ar){const Nt=_t.getElementById(ar)||_t.getElementsByName(ar)[0];if(Nt)return Nt;if("function"==typeof _t.createTreeWalker&&_t.body&&(_t.body.createShadowRoot||_t.body.attachShadow)){const Er=_t.createTreeWalker(_t.body,NodeFilter.SHOW_ELEMENT);let qr=Er.currentNode;for(;qr;){const Cn=qr.shadowRoot;if(Cn){const Nn=Cn.getElementById(ar)||Cn.querySelector(`[name="${ar}"]`);if(Nn)return Nn}qr=Er.nextNode()}}return null}(this.document,ar);Nt&&(this.scrollToElement(Nt),Nt.focus())}setHistoryScrollRestoration(ar){if(this.supportScrollRestoration()){const Nt=this.window.history;Nt&&Nt.scrollRestoration&&(Nt.scrollRestoration=ar)}}scrollToElement(ar){const Nt=ar.getBoundingClientRect(),Er=Nt.left+this.window.pageXOffset,qr=Nt.top+this.window.pageYOffset,Cn=this.offset();this.window.scrollTo(Er-Cn[0],qr-Cn[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const ar=$o(this.window.history)||$o(Object.getPrototypeOf(this.window.history));return!(!ar||!ar.writable&&!ar.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function $o(_t){return Object.getOwnPropertyDescriptor(_t,"scrollRestoration")}class ma{}},80529:(M,b,n)=>{"use strict";n.d(b,{JF:()=>br,LE:()=>V,TP:()=>$,UA:()=>w,Zn:()=>_,eN:()=>x});var t=n(36895),e=n(94650),l=n(21086),h=n(56498),r=n(21406),d=n(92198),y=n(24850);class g{}class p{}class f{constructor(ot){this.normalizedNames=new Map,this.lazyUpdate=null,ot?this.lazyInit="string"==typeof ot?()=>{this.headers=new Map,ot.split("\n").forEach(nt=>{const Yt=nt.indexOf(":");if(Yt>0){const Ne=nt.slice(0,Yt),X=Ne.toLowerCase(),ge=nt.slice(Yt+1).trim();this.maybeSetNormalizedName(Ne,X),this.headers.has(X)?this.headers.get(X).push(ge):this.headers.set(X,[ge])}})}:()=>{this.headers=new Map,Object.keys(ot).forEach(nt=>{let Yt=ot[nt];const Ne=nt.toLowerCase();"string"==typeof Yt&&(Yt=[Yt]),Yt.length>0&&(this.headers.set(Ne,Yt),this.maybeSetNormalizedName(nt,Ne))})}:this.headers=new Map}has(ot){return this.init(),this.headers.has(ot.toLowerCase())}get(ot){this.init();const nt=this.headers.get(ot.toLowerCase());return nt&&nt.length>0?nt[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ot){return this.init(),this.headers.get(ot.toLowerCase())||null}append(ot,nt){return this.clone({name:ot,value:nt,op:"a"})}set(ot,nt){return this.clone({name:ot,value:nt,op:"s"})}delete(ot,nt){return this.clone({name:ot,value:nt,op:"d"})}maybeSetNormalizedName(ot,nt){this.normalizedNames.has(nt)||this.normalizedNames.set(nt,ot)}init(){this.lazyInit&&(this.lazyInit instanceof f?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ot=>this.applyUpdate(ot)),this.lazyUpdate=null))}copyFrom(ot){ot.init(),Array.from(ot.headers.keys()).forEach(nt=>{this.headers.set(nt,ot.headers.get(nt)),this.normalizedNames.set(nt,ot.normalizedNames.get(nt))})}clone(ot){const nt=new f;return nt.lazyInit=this.lazyInit&&this.lazyInit instanceof f?this.lazyInit:this,nt.lazyUpdate=(this.lazyUpdate||[]).concat([ot]),nt}applyUpdate(ot){const nt=ot.name.toLowerCase();switch(ot.op){case"a":case"s":let Yt=ot.value;if("string"==typeof Yt&&(Yt=[Yt]),0===Yt.length)return;this.maybeSetNormalizedName(ot.name,nt);const Ne=("a"===ot.op?this.headers.get(nt):void 0)||[];Ne.push(...Yt),this.headers.set(nt,Ne);break;case"d":const X=ot.value;if(X){let ge=this.headers.get(nt);if(!ge)return;ge=ge.filter(Me=>-1===X.indexOf(Me)),0===ge.length?(this.headers.delete(nt),this.normalizedNames.delete(nt)):this.headers.set(nt,ge)}else this.headers.delete(nt),this.normalizedNames.delete(nt)}}forEach(ot){this.init(),Array.from(this.normalizedNames.keys()).forEach(nt=>ot(this.normalizedNames.get(nt),this.headers.get(nt)))}}class C{encodeKey(ot){return H(ot)}encodeValue(ot){return H(ot)}decodeKey(ot){return decodeURIComponent(ot)}decodeValue(ot){return decodeURIComponent(ot)}}const a=/%(\d[a-f0-9])/gi,O={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function H(Dt){return encodeURIComponent(Dt).replace(a,(ot,nt)=>O[nt]??ot)}function F(Dt){return`${Dt}`}class V{constructor(ot={}){if(this.updates=null,this.cloneFrom=null,this.encoder=ot.encoder||new C,ot.fromString){if(ot.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function N(Dt,ot){const nt=new Map;return Dt.length>0&&Dt.replace(/^\?/,"").split("&").forEach(Ne=>{const X=Ne.indexOf("="),[ge,Me]=-1==X?[ot.decodeKey(Ne),""]:[ot.decodeKey(Ne.slice(0,X)),ot.decodeValue(Ne.slice(X+1))],We=nt.get(ge)||[];We.push(Me),nt.set(ge,We)}),nt}(ot.fromString,this.encoder)}else ot.fromObject?(this.map=new Map,Object.keys(ot.fromObject).forEach(nt=>{const Yt=ot.fromObject[nt];this.map.set(nt,Array.isArray(Yt)?Yt:[Yt])})):this.map=null}has(ot){return this.init(),this.map.has(ot)}get(ot){this.init();const nt=this.map.get(ot);return nt?nt[0]:null}getAll(ot){return this.init(),this.map.get(ot)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ot,nt){return this.clone({param:ot,value:nt,op:"a"})}appendAll(ot){const nt=[];return Object.keys(ot).forEach(Yt=>{const Ne=ot[Yt];Array.isArray(Ne)?Ne.forEach(X=>{nt.push({param:Yt,value:X,op:"a"})}):nt.push({param:Yt,value:Ne,op:"a"})}),this.clone(nt)}set(ot,nt){return this.clone({param:ot,value:nt,op:"s"})}delete(ot,nt){return this.clone({param:ot,value:nt,op:"d"})}toString(){return this.init(),this.keys().map(ot=>{const nt=this.encoder.encodeKey(ot);return this.map.get(ot).map(Yt=>nt+"="+this.encoder.encodeValue(Yt)).join("&")}).filter(ot=>""!==ot).join("&")}clone(ot){const nt=new V({encoder:this.encoder});return nt.cloneFrom=this.cloneFrom||this,nt.updates=(this.updates||[]).concat(ot),nt}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ot=>this.map.set(ot,this.cloneFrom.map.get(ot))),this.updates.forEach(ot=>{switch(ot.op){case"a":case"s":const nt=("a"===ot.op?this.map.get(ot.param):void 0)||[];nt.push(F(ot.value)),this.map.set(ot.param,nt);break;case"d":if(void 0===ot.value){this.map.delete(ot.param);break}{let Yt=this.map.get(ot.param)||[];const Ne=Yt.indexOf(F(ot.value));-1!==Ne&&Yt.splice(Ne,1),Yt.length>0?this.map.set(ot.param,Yt):this.map.delete(ot.param)}}}),this.cloneFrom=this.updates=null)}}class U{constructor(){this.map=new Map}set(ot,nt){return this.map.set(ot,nt),this}get(ot){return this.map.has(ot)||this.map.set(ot,ot.defaultValue()),this.map.get(ot)}delete(ot){return this.map.delete(ot),this}has(ot){return this.map.has(ot)}keys(){return this.map.keys()}}function J(Dt){return typeof ArrayBuffer<"u"&&Dt instanceof ArrayBuffer}function G(Dt){return typeof Blob<"u"&&Dt instanceof Blob}function ie(Dt){return typeof FormData<"u"&&Dt instanceof FormData}class re{constructor(ot,nt,Yt,Ne){let X;if(this.url=nt,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ot.toUpperCase(),function q(Dt){switch(Dt){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ne?(this.body=void 0!==Yt?Yt:null,X=Ne):X=Yt,X&&(this.reportProgress=!!X.reportProgress,this.withCredentials=!!X.withCredentials,X.responseType&&(this.responseType=X.responseType),X.headers&&(this.headers=X.headers),X.context&&(this.context=X.context),X.params&&(this.params=X.params)),this.headers||(this.headers=new f),this.context||(this.context=new U),this.params){const ge=this.params.toString();if(0===ge.length)this.urlWithParams=nt;else{const Me=nt.indexOf("?");this.urlWithParams=nt+(-1===Me?"?":Me<nt.length-1?"&":"")+ge}}else this.params=new V,this.urlWithParams=nt}serializeBody(){return null===this.body?null:J(this.body)||G(this.body)||ie(this.body)||function K(Dt){return typeof URLSearchParams<"u"&&Dt instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof V?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||ie(this.body)?null:G(this.body)?this.body.type||null:J(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof V?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(ot={}){const nt=ot.method||this.method,Yt=ot.url||this.url,Ne=ot.responseType||this.responseType,X=void 0!==ot.body?ot.body:this.body,ge=void 0!==ot.withCredentials?ot.withCredentials:this.withCredentials,Me=void 0!==ot.reportProgress?ot.reportProgress:this.reportProgress;let We=ot.headers||this.headers,Re=ot.params||this.params;const pt=ot.context??this.context;return void 0!==ot.setHeaders&&(We=Object.keys(ot.setHeaders).reduce((Zt,cr)=>Zt.set(cr,ot.setHeaders[cr]),We)),ot.setParams&&(Re=Object.keys(ot.setParams).reduce((Zt,cr)=>Zt.set(cr,ot.setParams[cr]),Re)),new re(nt,Yt,X,{params:Re,headers:We,context:pt,reportProgress:Me,responseType:Ne,withCredentials:ge})}}var oe=(()=>((oe=oe||{})[oe.Sent=0]="Sent",oe[oe.UploadProgress=1]="UploadProgress",oe[oe.ResponseHeader=2]="ResponseHeader",oe[oe.DownloadProgress=3]="DownloadProgress",oe[oe.Response=4]="Response",oe[oe.User=5]="User",oe))();class B{constructor(ot,nt=200,Yt="OK"){this.headers=ot.headers||new f,this.status=void 0!==ot.status?ot.status:nt,this.statusText=ot.statusText||Yt,this.url=ot.url||null,this.ok=this.status>=200&&this.status<300}}class s extends B{constructor(ot={}){super(ot),this.type=oe.ResponseHeader}clone(ot={}){return new s({headers:ot.headers||this.headers,status:void 0!==ot.status?ot.status:this.status,statusText:ot.statusText||this.statusText,url:ot.url||this.url||void 0})}}class _ extends B{constructor(ot={}){super(ot),this.type=oe.Response,this.body=void 0!==ot.body?ot.body:null}clone(ot={}){return new _({body:void 0!==ot.body?ot.body:this.body,headers:ot.headers||this.headers,status:void 0!==ot.status?ot.status:this.status,statusText:ot.statusText||this.statusText,url:ot.url||this.url||void 0})}}class w extends B{constructor(ot){super(ot,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ot.url||"(unknown url)"}`:`Http failure response for ${ot.url||"(unknown url)"}: ${ot.status} ${ot.statusText}`,this.error=ot.error||null}}function E(Dt,ot){return{body:ot,headers:Dt.headers,context:Dt.context,observe:Dt.observe,params:Dt.params,reportProgress:Dt.reportProgress,responseType:Dt.responseType,withCredentials:Dt.withCredentials}}let x=(()=>{class Dt{constructor(nt){this.handler=nt}request(nt,Yt,Ne={}){let X;if(nt instanceof re)X=nt;else{let We,Re;We=Ne.headers instanceof f?Ne.headers:new f(Ne.headers),Ne.params&&(Re=Ne.params instanceof V?Ne.params:new V({fromObject:Ne.params})),X=new re(nt,Yt,void 0!==Ne.body?Ne.body:null,{headers:We,context:Ne.context,params:Re,reportProgress:Ne.reportProgress,responseType:Ne.responseType||"json",withCredentials:Ne.withCredentials})}const ge=(0,l.of)(X).pipe((0,r.b)(We=>this.handler.handle(We)));if(nt instanceof re||"events"===Ne.observe)return ge;const Me=ge.pipe((0,d.h)(We=>We instanceof _));switch(Ne.observe||"body"){case"body":switch(X.responseType){case"arraybuffer":return Me.pipe((0,y.U)(We=>{if(null!==We.body&&!(We.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return We.body}));case"blob":return Me.pipe((0,y.U)(We=>{if(null!==We.body&&!(We.body instanceof Blob))throw new Error("Response is not a Blob.");return We.body}));case"text":return Me.pipe((0,y.U)(We=>{if(null!==We.body&&"string"!=typeof We.body)throw new Error("Response is not a string.");return We.body}));default:return Me.pipe((0,y.U)(We=>We.body))}case"response":return Me;default:throw new Error(`Unreachable: unhandled observe type ${Ne.observe}}`)}}delete(nt,Yt={}){return this.request("DELETE",nt,Yt)}get(nt,Yt={}){return this.request("GET",nt,Yt)}head(nt,Yt={}){return this.request("HEAD",nt,Yt)}jsonp(nt,Yt){return this.request("JSONP",nt,{params:(new V).append(Yt,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(nt,Yt={}){return this.request("OPTIONS",nt,Yt)}patch(nt,Yt,Ne={}){return this.request("PATCH",nt,E(Ne,Yt))}post(nt,Yt,Ne={}){return this.request("POST",nt,E(Ne,Yt))}put(nt,Yt,Ne={}){return this.request("PUT",nt,E(Ne,Yt))}}return Dt.\u0275fac=function(nt){return new(nt||Dt)(e.LFG(g))},Dt.\u0275prov=e.Yz7({token:Dt,factory:Dt.\u0275fac}),Dt})();class j{constructor(ot,nt){this.next=ot,this.interceptor=nt}handle(ot){return this.interceptor.intercept(ot,this.next)}}const $=new e.OlP("HTTP_INTERCEPTORS");let Y=(()=>{class Dt{intercept(nt,Yt){return Yt.handle(nt)}}return Dt.\u0275fac=function(nt){return new(nt||Dt)},Dt.\u0275prov=e.Yz7({token:Dt,factory:Dt.\u0275fac}),Dt})();const Ze=/^\)\]\}',?\n/;let Be=(()=>{class Dt{constructor(nt){this.xhrFactory=nt}handle(nt){if("JSONP"===nt.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new h.y(Yt=>{const Ne=this.xhrFactory.build();if(Ne.open(nt.method,nt.urlWithParams),nt.withCredentials&&(Ne.withCredentials=!0),nt.headers.forEach((wt,gt)=>Ne.setRequestHeader(wt,gt.join(","))),nt.headers.has("Accept")||Ne.setRequestHeader("Accept","application/json, text/plain, */*"),!nt.headers.has("Content-Type")){const wt=nt.detectContentTypeHeader();null!==wt&&Ne.setRequestHeader("Content-Type",wt)}if(nt.responseType){const wt=nt.responseType.toLowerCase();Ne.responseType="json"!==wt?wt:"text"}const X=nt.serializeBody();let ge=null;const Me=()=>{if(null!==ge)return ge;const wt=Ne.statusText||"OK",gt=new f(Ne.getAllResponseHeaders()),Ut=function at(Dt){return"responseURL"in Dt&&Dt.responseURL?Dt.responseURL:/^X-Request-URL:/m.test(Dt.getAllResponseHeaders())?Dt.getResponseHeader("X-Request-URL"):null}(Ne)||nt.url;return ge=new s({headers:gt,status:Ne.status,statusText:wt,url:Ut}),ge},We=()=>{let{headers:wt,status:gt,statusText:Ut,url:hr}=Me(),Cr=null;204!==gt&&(Cr=typeof Ne.response>"u"?Ne.responseText:Ne.response),0===gt&&(gt=Cr?200:0);let Ue=gt>=200&&gt<300;if("json"===nt.responseType&&"string"==typeof Cr){const Pt=Cr;Cr=Cr.replace(Ze,"");try{Cr=""!==Cr?JSON.parse(Cr):null}catch(He){Cr=Pt,Ue&&(Ue=!1,Cr={error:He,text:Cr})}}Ue?(Yt.next(new _({body:Cr,headers:wt,status:gt,statusText:Ut,url:hr||void 0})),Yt.complete()):Yt.error(new w({error:Cr,headers:wt,status:gt,statusText:Ut,url:hr||void 0}))},Re=wt=>{const{url:gt}=Me(),Ut=new w({error:wt,status:Ne.status||0,statusText:Ne.statusText||"Unknown Error",url:gt||void 0});Yt.error(Ut)};let pt=!1;const Zt=wt=>{pt||(Yt.next(Me()),pt=!0);let gt={type:oe.DownloadProgress,loaded:wt.loaded};wt.lengthComputable&&(gt.total=wt.total),"text"===nt.responseType&&!!Ne.responseText&&(gt.partialText=Ne.responseText),Yt.next(gt)},cr=wt=>{let gt={type:oe.UploadProgress,loaded:wt.loaded};wt.lengthComputable&&(gt.total=wt.total),Yt.next(gt)};return Ne.addEventListener("load",We),Ne.addEventListener("error",Re),Ne.addEventListener("timeout",Re),Ne.addEventListener("abort",Re),nt.reportProgress&&(Ne.addEventListener("progress",Zt),null!==X&&Ne.upload&&Ne.upload.addEventListener("progress",cr)),Ne.send(X),Yt.next({type:oe.Sent}),()=>{Ne.removeEventListener("error",Re),Ne.removeEventListener("abort",Re),Ne.removeEventListener("load",We),Ne.removeEventListener("timeout",Re),nt.reportProgress&&(Ne.removeEventListener("progress",Zt),null!==X&&Ne.upload&&Ne.upload.removeEventListener("progress",cr)),Ne.readyState!==Ne.DONE&&Ne.abort()}})}}return Dt.\u0275fac=function(nt){return new(nt||Dt)(e.LFG(t.JF))},Dt.\u0275prov=e.Yz7({token:Dt,factory:Dt.\u0275fac}),Dt})();const Lt=new e.OlP("XSRF_COOKIE_NAME"),_e=new e.OlP("XSRF_HEADER_NAME");class ne{}let be=(()=>{class Dt{constructor(nt,Yt,Ne){this.doc=nt,this.platform=Yt,this.cookieName=Ne,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const nt=this.doc.cookie||"";return nt!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,t.Mx)(nt,this.cookieName),this.lastCookieString=nt),this.lastToken}}return Dt.\u0275fac=function(nt){return new(nt||Dt)(e.LFG(t.K0),e.LFG(e.Lbi),e.LFG(Lt))},Dt.\u0275prov=e.Yz7({token:Dt,factory:Dt.\u0275fac}),Dt})(),Te=(()=>{class Dt{constructor(nt,Yt){this.tokenService=nt,this.headerName=Yt}intercept(nt,Yt){const Ne=nt.url.toLowerCase();if("GET"===nt.method||"HEAD"===nt.method||Ne.startsWith("http://")||Ne.startsWith("https://"))return Yt.handle(nt);const X=this.tokenService.getToken();return null!==X&&!nt.headers.has(this.headerName)&&(nt=nt.clone({headers:nt.headers.set(this.headerName,X)})),Yt.handle(nt)}}return Dt.\u0275fac=function(nt){return new(nt||Dt)(e.LFG(ne),e.LFG(_e))},Dt.\u0275prov=e.Yz7({token:Dt,factory:Dt.\u0275fac}),Dt})(),$e=(()=>{class Dt{constructor(nt,Yt){this.backend=nt,this.injector=Yt,this.chain=null}handle(nt){if(null===this.chain){const Yt=this.injector.get($,[]);this.chain=Yt.reduceRight((Ne,X)=>new j(Ne,X),this.backend)}return this.chain.handle(nt)}}return Dt.\u0275fac=function(nt){return new(nt||Dt)(e.LFG(p),e.LFG(e.zs3))},Dt.\u0275prov=e.Yz7({token:Dt,factory:Dt.\u0275fac}),Dt})(),Ft=(()=>{class Dt{static disable(){return{ngModule:Dt,providers:[{provide:Te,useClass:Y}]}}static withOptions(nt={}){return{ngModule:Dt,providers:[nt.cookieName?{provide:Lt,useValue:nt.cookieName}:[],nt.headerName?{provide:_e,useValue:nt.headerName}:[]]}}}return Dt.\u0275fac=function(nt){return new(nt||Dt)},Dt.\u0275mod=e.oAB({type:Dt}),Dt.\u0275inj=e.cJS({providers:[Te,{provide:$,useExisting:Te,multi:!0},{provide:ne,useClass:be},{provide:Lt,useValue:"XSRF-TOKEN"},{provide:_e,useValue:"X-XSRF-TOKEN"}]}),Dt})(),br=(()=>{class Dt{}return Dt.\u0275fac=function(nt){return new(nt||Dt)},Dt.\u0275mod=e.oAB({type:Dt}),Dt.\u0275inj=e.cJS({providers:[x,{provide:g,useClass:$e},Be,{provide:p,useExisting:Be}],imports:[[Ft.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),Dt})()},94650:(M,b,n)=>{"use strict";n.d(b,{$8M:()=>fl,$Z:()=>mh,AFp:()=>v_,ALo:()=>U1,AaK:()=>g,AcB:()=>Nl,Akn:()=>su,AsE:()=>E0,B6R:()=>Ke,BQk:()=>Bd,CHM:()=>Xa,CRH:()=>$1,CZH:()=>L0,CqO:()=>v0,DdM:()=>Ga,EJc:()=>b_,EiD:()=>Sa,EpF:()=>Rp,Ez6:()=>Ot,F$t:()=>Mv,F4k:()=>Uy,FYo:()=>M1,FiY:()=>_o,G48:()=>Cb,Gf:()=>q1,GfV:()=>w1,GkF:()=>Op,Gpc:()=>C,Gre:()=>Qp,HOy:()=>Jp,Hsn:()=>wv,IIB:()=>g_,Ikx:()=>eg,JOm:()=>Ht,JVY:()=>Cd,Jf7:()=>Lr,L6J:()=>zC,L6k:()=>Bc,LAX:()=>_c,LFG:()=>_a,LSH:()=>Td,Lbi:()=>KC,MAs:()=>yp,MGl:()=>_0,NdJ:()=>Tv,O4$:()=>qo,OlP:()=>Hs,Oqu:()=>qp,PXZ:()=>fb,Q6J:()=>Dp,QGY:()=>Lp,Qsj:()=>eC,R0b:()=>Au,RDi:()=>ts,Rgc:()=>Oh,SBq:()=>xh,SDv:()=>C1,Sil:()=>QC,Suo:()=>J1,TTD:()=>Fn,TgZ:()=>p0,Tol:()=>Wp,Udp:()=>jp,VKq:()=>po,VLi:()=>lb,W1O:()=>kf,WFA:()=>kp,WLB:()=>$a,X6Q:()=>yb,XFs:()=>ft,Xpm:()=>tt,Y36:()=>Fd,YKP:()=>D1,YNc:()=>Ec,Yjl:()=>ct,Yz7:()=>Qe,ZZ4:()=>qg,_Bn:()=>T1,_UZ:()=>vh,_Vd:()=>I0,_c5:()=>Nb,_uU:()=>jv,aQg:()=>Jg,ahi:()=>ou,c2e:()=>qC,cJS:()=>At,cg1:()=>na,d8E:()=>Sh,dDg:()=>E_,deG:()=>pl,dqk:()=>Re,eBb:()=>io,eFA:()=>x_,ekj:()=>Gp,evT:()=>Yr,f3M:()=>rl,g9A:()=>y_,gxx:()=>r0,h0i:()=>Pf,hGG:()=>Fb,hYB:()=>y0,hij:()=>Ch,iGM:()=>K1,ifc:()=>Ne,ip1:()=>m_,kEZ:()=>Ah,kL8:()=>Xv,kYT:()=>St,kcU:()=>Jo,l5B:()=>_g,lG2:()=>ke,lcZ:()=>H1,lnq:()=>M0,mCW:()=>Ya,n5z:()=>kl,oAB:()=>lt,oJD:()=>bd,oxw:()=>Fp,pB0:()=>yc,pfw:()=>ZC,q3G:()=>Qs,q4F:()=>x1,qLn:()=>se,qOj:()=>hp,qZA:()=>g0,qbA:()=>Dh,qzn:()=>al,r_U:()=>WC,s9C:()=>Bp,sBO:()=>Gg,sIi:()=>Dd,s_b:()=>P0,soG:()=>Ng,tBr:()=>Uo,tb:()=>C_,tp0:()=>Io,uIk:()=>a0,uOi:()=>bo,vHH:()=>H,vpe:()=>Al,wAp:()=>ni,xi3:()=>V1,xp6:()=>jh,yDS:()=>_d,yhl:()=>Pa,ynx:()=>Tf,z2F:()=>jg,z3N:()=>la,zSh:()=>n0,zs3:()=>ac});var t=n(8929),e=n(42654),l=n(56498),h=n(36787),r=n(88117);function d(P){for(let L in P)if(P[L]===d)return L;throw Error("Could not find renamed property on target object.")}function y(P,L){for(const z in L)L.hasOwnProperty(z)&&!P.hasOwnProperty(z)&&(P[z]=L[z])}function g(P){if("string"==typeof P)return P;if(Array.isArray(P))return"["+P.map(g).join(", ")+"]";if(null==P)return""+P;if(P.overriddenName)return`${P.overriddenName}`;if(P.name)return`${P.name}`;const L=P.toString();if(null==L)return""+L;const z=L.indexOf("\n");return-1===z?L:L.substring(0,z)}function p(P,L){return null==P||""===P?null===L?"":L:null==L||""===L?P:P+" "+L}const f=d({__forward_ref__:d});function C(P){return P.__forward_ref__=C,P.toString=function(){return g(this())},P}function N(P){return a(P)?P():P}function a(P){return"function"==typeof P&&P.hasOwnProperty(f)&&P.__forward_ref__===C}class H extends Error{constructor(L,z){super(function F(P,L){return`NG0${Math.abs(P)}${L?": "+L:""}`}(L,z)),this.code=L}}function V(P){return"string"==typeof P?P:null==P?"":String(P)}function D(P){return"function"==typeof P?P.name||P.toString():"object"==typeof P&&null!=P&&"function"==typeof P.type?P.type.name||P.type.toString():V(P)}function G(P,L){const z=L?` in ${L}`:"";throw new H(-201,`No provider for ${D(P)} found${z}`)}function W(P,L,z,te){throw new Error(`ASSERTION ERROR: ${P}`+(null==te?"":` [Expected=> ${z} ${te} ${L} <=Actual]`))}function Qe(P){return{token:P.token,providedIn:P.providedIn||null,factory:P.factory,value:void 0}}const Ot=Qe;function At(P){return{providers:P.providers||[],imports:P.imports||[]}}function Ze(P){return at(P,ne)||at(P,Te)}function at(P,L){return P.hasOwnProperty(L)?P[L]:null}function _e(P){return P&&(P.hasOwnProperty(be)||P.hasOwnProperty($e))?P[be]:null}const ne=d({\u0275prov:d}),be=d({\u0275inj:d}),Te=d({ngInjectableDef:d}),$e=d({ngInjectorDef:d});var ft=(()=>((ft=ft||{})[ft.Default=0]="Default",ft[ft.Host=1]="Host",ft[ft.Self=2]="Self",ft[ft.SkipSelf=4]="SkipSelf",ft[ft.Optional=8]="Optional",ft))();let Ge;function br(P){const L=Ge;return Ge=P,L}function rt(P,L,z){const te=Ze(P);return te&&"root"==te.providedIn?void 0===te.value?te.value=te.factory():te.value:z&ft.Optional?null:void 0!==L?L:void G(g(P),"Injector")}function Dt(P){return{toString:P}.toString()}var ot=(()=>((ot=ot||{})[ot.OnPush=0]="OnPush",ot[ot.Default=1]="Default",ot))(),Ne=(()=>{return(P=Ne||(Ne={}))[P.Emulated=0]="Emulated",P[P.None=2]="None",P[P.ShadowDom=3]="ShadowDom",Ne;var P})();const X=typeof globalThis<"u"&&globalThis,ge=typeof window<"u"&&window,Me=typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self,Re=X||typeof global<"u"&&global||ge||Me,cr={},wt=[],gt=d({\u0275cmp:d}),Ut=d({\u0275dir:d}),hr=d({\u0275pipe:d}),Cr=d({\u0275mod:d}),Ue=d({\u0275fac:d}),Pt=d({__NG_ELEMENT_ID__:d});let He=0;function tt(P){return Dt(()=>{const z={},te={type:P.type,providersResolver:null,decls:P.decls,vars:P.vars,factory:null,template:P.template||null,consts:P.consts||null,ngContentSelectors:P.ngContentSelectors,hostBindings:P.hostBindings||null,hostVars:P.hostVars||0,hostAttrs:P.hostAttrs||null,contentQueries:P.contentQueries||null,declaredInputs:z,inputs:null,outputs:null,exportAs:P.exportAs||null,onPush:P.changeDetection===ot.OnPush,directiveDefs:null,pipeDefs:null,selectors:P.selectors||wt,viewQuery:P.viewQuery||null,features:P.features||null,data:P.data||{},encapsulation:P.encapsulation||Ne.Emulated,id:"c",styles:P.styles||wt,_:null,setInput:null,schemas:P.schemas||null,tView:null},ue=P.directives,ve=P.features,je=P.pipes;return te.id+=He++,te.inputs=qe(P.inputs,z),te.outputs=qe(P.outputs),ve&&ve.forEach(dt=>dt(te)),te.directiveDefs=ue?()=>("function"==typeof ue?ue():ue).map(kt):null,te.pipeDefs=je?()=>("function"==typeof je?je():je).map(xe):null,te})}function Ke(P,L,z){const te=P.\u0275cmp;te.directiveDefs=()=>L.map(kt),te.pipeDefs=()=>z.map(xe)}function kt(P){return vt(P)||function $t(P){return P[Ut]||null}(P)}function xe(P){return function Vr(P){return P[hr]||null}(P)}const Fe={};function lt(P){return Dt(()=>{const L={type:P.type,bootstrap:P.bootstrap||wt,declarations:P.declarations||wt,imports:P.imports||wt,exports:P.exports||wt,transitiveCompileScopes:null,schemas:P.schemas||null,id:P.id||null};return null!=P.id&&(Fe[P.id]=P.type),L})}function St(P,L){return Dt(()=>{const z=Sr(P,!0);z.declarations=L.declarations||wt,z.imports=L.imports||wt,z.exports=L.exports||wt})}function qe(P,L){if(null==P)return cr;const z={};for(const te in P)if(P.hasOwnProperty(te)){let ue=P[te],ve=ue;Array.isArray(ue)&&(ve=ue[1],ue=ue[0]),z[ue]=te,L&&(L[ue]=ve)}return z}const ke=tt;function ct(P){return{type:P.type,name:P.name,factory:null,pure:!1!==P.pure,onDestroy:P.type.prototype.ngOnDestroy||null}}function vt(P){return P[gt]||null}function Sr(P,L){const z=P[Cr]||null;if(!z&&!0===L)throw new Error(`Type ${g(P)} does not have '\u0275mod' property.`);return z}function ht(P){return Array.isArray(P)&&"object"==typeof P[1]}function Vt(P){return Array.isArray(P)&&!0===P[1]}function yt(P){return 0!=(8&P.flags)}function gr(P){return 2==(2&P.flags)}function ur(P){return 1==(1&P.flags)}function Zr(P){return null!==P.template}function fn(P){return 0!=(512&P[2])}function bn(P,L){return P.hasOwnProperty(Ue)?P[Ue]:null}class Un{constructor(L,z,te){this.previousValue=L,this.currentValue=z,this.firstChange=te}isFirstChange(){return this.firstChange}}function Fn(){return Vn}function Vn(P){return P.type.prototype.ngOnChanges&&(P.setInput=ai),zn}function zn(){const P=wi(this),L=P?.current;if(L){const z=P.previous;if(z===cr)P.previous=L;else for(let te in L)z[te]=L[te];P.current=null,this.ngOnChanges(L)}}function ai(P,L,z,te){const ue=wi(P)||function Wn(P,L){return P[_i]=L}(P,{previous:cr,current:null}),ve=ue.current||(ue.current={}),je=ue.previous,dt=this.declaredInputs[z],Rt=je[dt];ve[dt]=new Un(Rt&&Rt.currentValue,L,je===cr),P[te]=L}Fn.ngInherit=!0;const _i="__ngSimpleChanges__";function wi(P){return P[_i]||null}let Di;function ts(P){Di=P}function Oi(){return void 0!==Di?Di:typeof document<"u"?document:void 0}function Fi(P){return!!P.listen}const Os={createRenderer:(P,L)=>Oi()};function rs(P){for(;Array.isArray(P);)P=P[0];return P}function Zs(P,L){return rs(L[P])}function ps(P,L){return rs(L[P.index])}function ka(P,L){return P.data[L]}function Xs(P,L){return P[L]}function ks(P,L){const z=L[P];return ht(z)?z:z[0]}function ia(P){return 4==(4&P[2])}function Qa(P){return 128==(128&P[2])}function Ma(P,L){return null==L?null:P[L]}function qt(P){P[18]=0}function jt(P,L){P[5]+=L;let z=P,te=P[3];for(;null!==te&&(1===L&&1===z[5]||-1===L&&0===z[5]);)te[5]+=L,z=te,te=te[3]}const Mt={lFrame:go(null),bindingsEnabled:!0};function zs(){return Mt.bindingsEnabled}function xn(){return Mt.lFrame.lView}function Hi(){return Mt.lFrame.tView}function Xa(P){return Mt.lFrame.contextLView=P,P[8]}function rr(){let P=cn();for(;null!==P&&64===P.type;)P=P.parent;return P}function cn(){return Mt.lFrame.currentTNode}function Qt(){const P=Mt.lFrame,L=P.currentTNode;return P.isParent?L:L.parent}function wr(P,L){const z=Mt.lFrame;z.currentTNode=P,z.isParent=L}function On(){return Mt.lFrame.isParent}function Ci(){Mt.lFrame.isParent=!1}function As(){const P=Mt.lFrame;let L=P.bindingRootIndex;return-1===L&&(L=P.bindingRootIndex=P.tView.bindingStartIndex),L}function ao(){return Mt.lFrame.bindingIndex}function Ca(){return Mt.lFrame.bindingIndex++}function Fa(P){const L=Mt.lFrame,z=L.bindingIndex;return L.bindingIndex=L.bindingIndex+P,z}function So(P){Mt.lFrame.inI18n=P}function eo(P,L){const z=Mt.lFrame;z.bindingIndex=z.bindingRootIndex=P,Za(L)}function Za(P){Mt.lFrame.currentDirectiveIndex=P}function To(P){const L=Mt.lFrame.currentDirectiveIndex;return-1===L?null:P[L]}function Zo(){return Mt.lFrame.currentQueryIndex}function to(P){Mt.lFrame.currentQueryIndex=P}function Eo(P){const L=P[1];return 2===L.type?L.declTNode:1===L.type?P[6]:null}function Oo(P,L,z){if(z&ft.SkipSelf){let ue=L,ve=P;for(;!(ue=ue.parent,null!==ue||z&ft.Host||(ue=Eo(ve),null===ue||(ve=ve[15],10&ue.type))););if(null===ue)return!1;L=ue,P=ve}const te=Mt.lFrame=Mo();return te.currentTNode=L,te.lView=P,!0}function oo(P){const L=Mo(),z=P[1];Mt.lFrame=L,L.currentTNode=z.firstChild,L.lView=P,L.tView=z,L.contextLView=P,L.bindingIndex=z.bindingStartIndex,L.inI18n=!1}function Mo(){const P=Mt.lFrame,L=null===P?null:P.child;return null===L?go(P):L}function go(P){const L={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:P,child:null,inI18n:!1};return null!==P&&(P.child=L),L}function za(){const P=Mt.lFrame;return Mt.lFrame=P.parent,P.currentTNode=null,P.lView=null,P}const Ro=za;function mo(){const P=za();P.isParent=!0,P.tView=null,P.selectedIndex=-1,P.contextLView=null,P.elementDepthCount=0,P.currentDirectiveIndex=-1,P.currentNamespace=null,P.bindingRootIndex=-1,P.bindingIndex=-1,P.currentQueryIndex=0}function ta(){return Mt.lFrame.selectedIndex}function wa(P){Mt.lFrame.selectedIndex=P}function Ps(){const P=Mt.lFrame;return ka(P.tView,P.selectedIndex)}function qo(){Mt.lFrame.currentNamespace="svg"}function Jo(){!function Ba(){Mt.lFrame.currentNamespace=null}()}function $o(P,L){for(let z=L.directiveStart,te=L.directiveEnd;z<te;z++){const ve=P.data[z].type.prototype,{ngAfterContentInit:je,ngAfterContentChecked:dt,ngAfterViewInit:Rt,ngAfterViewChecked:dr,ngOnDestroy:Tr}=ve;je&&(P.contentHooks||(P.contentHooks=[])).push(-z,je),dt&&((P.contentHooks||(P.contentHooks=[])).push(z,dt),(P.contentCheckHooks||(P.contentCheckHooks=[])).push(z,dt)),Rt&&(P.viewHooks||(P.viewHooks=[])).push(-z,Rt),dr&&((P.viewHooks||(P.viewHooks=[])).push(z,dr),(P.viewCheckHooks||(P.viewCheckHooks=[])).push(z,dr)),null!=Tr&&(P.destroyHooks||(P.destroyHooks=[])).push(z,Tr)}}function ro(P,L,z){wo(P,L,3,z)}function xa(P,L,z,te){(3&P[2])===z&&wo(P,L,z,te)}function ma(P,L){let z=P[2];(3&z)===L&&(z&=2047,z+=1,P[2]=z)}function wo(P,L,z,te){const ve=te??-1,je=L.length-1;let dt=0;for(let Rt=void 0!==te?65535&P[18]:0;Rt<je;Rt++)if("number"==typeof L[Rt+1]){if(dt=L[Rt],null!=te&&dt>=te)break}else L[Rt]<0&&(P[18]+=65536),(dt<ve||-1==ve)&&(Qo(P,z,L,Rt),P[18]=(4294901760&P[18])+Rt+2),Rt++}function Qo(P,L,z,te){const ue=z[te]<0,ve=z[te+1],dt=P[ue?-z[te]:z[te]];if(ue){if(P[2]>>11<P[18]>>16&&(3&P[2])===L){P[2]+=2048;try{ve.call(dt)}finally{}}}else try{ve.call(dt)}finally{}}class ar{constructor(L,z,te){this.factory=L,this.resolving=!1,this.canSeeViewProviders=z,this.injectImpl=te}}function as(P,L,z){const te=Fi(P);let ue=0;for(;ue<z.length;){const ve=z[ue];if("number"==typeof ve){if(0!==ve)break;ue++;const je=z[ue++],dt=z[ue++],Rt=z[ue++];te?P.setAttribute(L,dt,Rt,je):L.setAttributeNS(je,dt,Rt)}else{const je=ve,dt=z[++ue];bs(je)?te&&P.setProperty(L,je,dt):te?P.setAttribute(L,je,dt):L.setAttribute(je,dt),ue++}}return ue}function Yi(P){return 3===P||4===P||6===P}function bs(P){return 64===P.charCodeAt(0)}function qi(P,L){if(null!==L&&0!==L.length)if(null===P||0===P.length)P=L.slice();else{let z=-1;for(let te=0;te<L.length;te++){const ue=L[te];"number"==typeof ue?z=ue:0===z||Us(P,z,ue,null,-1===z||2===z?L[++te]:null)}}return P}function Us(P,L,z,te,ue){let ve=0,je=P.length;if(-1===L)je=-1;else for(;ve<P.length;){const dt=P[ve++];if("number"==typeof dt){if(dt===L){je=-1;break}if(dt>L){je=ve-1;break}}}for(;ve<P.length;){const dt=P[ve];if("number"==typeof dt)break;if(dt===z){if(null===te)return void(null!==ue&&(P[ve+1]=ue));if(te===P[ve+1])return void(P[ve+2]=ue)}ve++,null!==te&&ve++,null!==ue&&ve++}-1!==je&&(P.splice(je,0,L),ve=je+1),P.splice(ve++,0,z),null!==te&&P.splice(ve++,0,te),null!==ue&&P.splice(ve++,0,ue)}function aa(P){return-1!==P}function Rs(P){return 32767&P}function ra(P,L){let z=function Ia(P){return P>>16}(P),te=L;for(;z>0;)te=te[15],z--;return te}let no=!0;function bi(P){const L=no;return no=P,L}let Ll=0;function ut(P,L){const z=Wt(P,L);if(-1!==z)return z;const te=L[1];te.firstCreatePass&&(P.injectorIndex=L.length,et(te.data,P),et(L,null),et(te.blueprint,null));const ue=ir(P,L),ve=P.injectorIndex;if(aa(ue)){const je=Rs(ue),dt=ra(ue,L),Rt=dt[1].data;for(let dr=0;dr<8;dr++)L[ve+dr]=dt[je+dr]|Rt[je+dr]}return L[ve+8]=ue,ve}function et(P,L){P.push(0,0,0,0,0,0,0,0,L)}function Wt(P,L){return-1===P.injectorIndex||P.parent&&P.parent.injectorIndex===P.injectorIndex||null===L[P.injectorIndex+8]?-1:P.injectorIndex}function ir(P,L){if(P.parent&&-1!==P.parent.injectorIndex)return P.parent.injectorIndex;let z=0,te=null,ue=L;for(;null!==ue;){const ve=ue[1],je=ve.type;if(te=2===je?ve.declTNode:1===je?ue[6]:null,null===te)return-1;if(z++,ue=ue[15],-1!==te.injectorIndex)return te.injectorIndex|z<<16}return-1}function Pr(P,L,z){!function Tt(P,L,z){let te;"string"==typeof z?te=z.charCodeAt(0)||0:z.hasOwnProperty(Pt)&&(te=z[Pt]),null==te&&(te=z[Pt]=Ll++);const ue=255&te;L.data[P+(ue>>5)]|=1<<ue}(P,L,z)}function Xr(P,L,z){if(z&ft.Optional)return P;G(L,"NodeInjector")}function Ln(P,L,z,te){if(z&ft.Optional&&void 0===te&&(te=null),0==(z&(ft.Self|ft.Host))){const ue=P[9],ve=br(void 0);try{return ue?ue.get(L,te,z&ft.Optional):rt(L,te,z&ft.Optional)}finally{br(ve)}}return Xr(te,L,z)}function si(P,L,z,te=ft.Default,ue){if(null!==P){const ve=function Zi(P){if("string"==typeof P)return P.charCodeAt(0)||0;const L=P.hasOwnProperty(Pt)?P[Pt]:void 0;return"number"==typeof L?L>=0?255&L:pi:L}(z);if("function"==typeof ve){if(!Oo(L,P,te))return te&ft.Host?Xr(ue,z,te):Ln(L,z,te,ue);try{const je=ve(te);if(null!=je||te&ft.Optional)return je;G(z)}finally{Ro()}}else if("number"==typeof ve){let je=null,dt=Wt(P,L),Rt=-1,dr=te&ft.Host?L[16][6]:null;for((-1===dt||te&ft.SkipSelf)&&(Rt=-1===dt?ir(P,L):L[dt+8],-1!==Rt&&xo(te,!1)?(je=L[1],dt=Rs(Rt),L=ra(Rt,L)):dt=-1);-1!==dt;){const Tr=L[1];if(Bi(ve,dt,Tr.data)){const Gr=Ss(dt,L,z,je,te,dr);if(Gr!==is)return Gr}Rt=L[dt+8],-1!==Rt&&xo(te,L[1].data[dt+8]===dr)&&Bi(ve,dt,L)?(je=Tr,dt=Rs(Rt),L=ra(Rt,L)):dt=-1}}}return Ln(L,z,te,ue)}const is={};function pi(){return new xi(rr(),xn())}function Ss(P,L,z,te,ue,ve){const je=L[1],dt=je.data[P+8],Tr=cs(dt,je,z,null==te?gr(dt)&&no:te!=je&&0!=(3&dt.type),ue&ft.Host&&ve===dt);return null!==Tr?Wi(L,je,Tr,dt):is}function cs(P,L,z,te,ue){const ve=P.providerIndexes,je=L.data,dt=1048575&ve,Rt=P.directiveStart,Tr=ve>>20,tn=ue?dt+Tr:P.directiveEnd;for(let pn=te?dt:dt+Tr;pn<tn;pn++){const kn=je[pn];if(pn<Rt&&z===kn||pn>=Rt&&kn.type===z)return pn}if(ue){const pn=je[Rt];if(pn&&Zr(pn)&&pn.type===z)return Rt}return null}function Wi(P,L,z,te){let ue=P[z];const ve=L.data;if(function Nt(P){return P instanceof ar}(ue)){const je=ue;je.resolving&&function U(P,L){const z=L?`. Dependency path: ${L.join(" > ")} > ${P}`:"";throw new H(-200,`Circular dependency in DI detected for ${P}${z}`)}(D(ve[z]));const dt=bi(je.canSeeViewProviders);je.resolving=!0;const Rt=je.injectImpl?br(je.injectImpl):null;Oo(P,te,ft.Default);try{ue=P[z]=je.factory(void 0,ve,P,te),L.firstCreatePass&&z>=te.directiveStart&&function ga(P,L,z){const{ngOnChanges:te,ngOnInit:ue,ngDoCheck:ve}=L.type.prototype;if(te){const je=Vn(L);(z.preOrderHooks||(z.preOrderHooks=[])).push(P,je),(z.preOrderCheckHooks||(z.preOrderCheckHooks=[])).push(P,je)}ue&&(z.preOrderHooks||(z.preOrderHooks=[])).push(0-P,ue),ve&&((z.preOrderHooks||(z.preOrderHooks=[])).push(P,ve),(z.preOrderCheckHooks||(z.preOrderCheckHooks=[])).push(P,ve))}(z,ve[z],L)}finally{null!==Rt&&br(Rt),bi(dt),je.resolving=!1,Ro()}}return ue}function Bi(P,L,z){return!!(z[L+(P>>5)]&1<<P)}function xo(P,L){return!(P&ft.Self||P&ft.Host&&L)}class xi{constructor(L,z){this._tNode=L,this._lView=z}get(L,z,te){return si(this._tNode,this._lView,L,te,z)}}function kl(P){return Dt(()=>{const L=P.prototype.constructor,z=L[Ue]||vo(L),te=Object.prototype;let ue=Object.getPrototypeOf(P.prototype).constructor;for(;ue&&ue!==te;){const ve=ue[Ue]||vo(ue);if(ve&&ve!==z)return ve;ue=Object.getPrototypeOf(ue)}return ve=>new ve})}function vo(P){return a(P)?()=>{const L=vo(N(P));return L&&L()}:bn(P)}function fl(P){return function jr(P,L){if("class"===L)return P.classes;if("style"===L)return P.styles;const z=P.attrs;if(z){const te=z.length;let ue=0;for(;ue<te;){const ve=z[ue];if(Yi(ve))break;if(0===ve)ue+=2;else if("number"==typeof ve)for(ue++;ue<te&&"string"==typeof z[ue];)ue++;else{if(ve===L)return z[ue+1];ue+=2}}}return null}(rr(),P)}const ms="__parameters__",Ui="__prop__metadata__";function gn(P){return function(...z){if(P){const te=P(...z);for(const ue in te)this[ue]=te[ue]}}}function Xo(P,L,z){return Dt(()=>{const te=gn(L);function ue(...ve){if(this instanceof ue)return te.apply(this,ve),this;const je=new ue(...ve);return dt.annotation=je,dt;function dt(Rt,dr,Tr){const Gr=Rt.hasOwnProperty(ms)?Rt[ms]:Object.defineProperty(Rt,ms,{value:[]})[ms];for(;Gr.length<=Tr;)Gr.push(null);return(Gr[Tr]=Gr[Tr]||[]).push(je),Rt}}return z&&(ue.prototype=Object.create(z.prototype)),ue.prototype.ngMetadataName=P,ue.annotationCls=ue,ue})}function Hr(P,L,z,te){return Dt(()=>{const ue=gn(L);function ve(...je){if(this instanceof ve)return ue.apply(this,je),this;const dt=new ve(...je);return function Rt(dr,Tr){const Gr=dr.constructor,tn=Gr.hasOwnProperty(Ui)?Gr[Ui]:Object.defineProperty(Gr,Ui,{value:{}})[Ui];tn[Tr]=tn.hasOwnProperty(Tr)&&tn[Tr]||[],tn[Tr].unshift(dt),te&&te(dr,Tr,...je)}}return z&&(ve.prototype=Object.create(z.prototype)),ve.prototype.ngMetadataName=P,ve.annotationCls=ve,ve})}const ou=Xo("Attribute",P=>({attributeName:P,__NG_ELEMENT_ID__:()=>fl(P)}));class Hs{constructor(L,z){this._desc=L,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof z?this.__NG_ELEMENT_ID__=z:void 0!==z&&(this.\u0275prov=Qe({token:this,providedIn:z.providedIn||"root",factory:z.factory}))}toString(){return`InjectionToken ${this._desc}`}}const pl=new Hs("AnalyzeForEntryComponents");class Lo{}const Nl=Hr("ContentChildren",(P,L={})=>({selector:P,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!0,...L}),Lo);function va(P,L){void 0===L&&(L=P);for(let z=0;z<P.length;z++){let te=P[z];Array.isArray(te)?(L===P&&(L=P.slice(0,z)),va(te,L)):L!==P&&L.push(te)}return L}function uo(P,L){P.forEach(z=>Array.isArray(z)?uo(z,L):L(z))}function Ka(P,L,z){L>=P.length?P.push(z):P.splice(L,0,z)}function ml(P,L){return L>=P.length-1?P.pop():P.splice(L,1)[0]}function Vs(P,L){const z=[];for(let te=0;te<P;te++)z.push(L);return z}function Da(P,L,z){let te=Xi(P,L);return te>=0?P[1|te]=z:(te=~te,function od(P,L,z,te){let ue=P.length;if(ue==L)P.push(z,te);else if(1===ue)P.push(te,P[0]),P[0]=z;else{for(ue--,P.push(P[ue-1],P[ue]);ue>L;)P[ue]=P[ue-2],ue--;P[L]=z,P[L+1]=te}}(P,te,L,z)),te}function uu(P,L){const z=Xi(P,L);if(z>=0)return P[1|z]}function Xi(P,L){return function Bl(P,L,z){let te=0,ue=P.length>>z;for(;ue!==te;){const ve=te+(ue-te>>1),je=P[ve<<z];if(L===je)return ve<<z;je>L?ue=ve:te=ve+1}return~(ue<<z)}(P,L,1)}const ji={},Ua="__NG_DI_FLAG__",Fo="ngTempTokenPath",Nu=/\n/gm,Fu="__source",Ks=d({provide:String,useValue:d});let qs;function lc(P){const L=qs;return qs=P,L}function Bu(P,L=ft.Default){if(void 0===qs)throw new H(203,"");return null===qs?rt(P,void 0,L):qs.get(P,L&ft.Optional?null:void 0,L)}function _a(P,L=ft.Default){return(function Ft(){return Ge}()||Bu)(N(P),L)}const rl=_a;function _l(P){const L=[];for(let z=0;z<P.length;z++){const te=N(P[z]);if(Array.isArray(te)){if(0===te.length)throw new H(900,"");let ue,ve=ft.Default;for(let je=0;je<te.length;je++){const dt=te[je],Rt=fu(dt);"number"==typeof Rt?-1===Rt?ue=dt.token:ve|=Rt:ue=dt}L.push(_a(ue,ve))}else L.push(_a(te))}return L}function du(P,L){return P[Ua]=L,P.prototype[Ua]=L,P}function fu(P){return P[Ua]}const Uo=du(Xo("Inject",P=>({token:P})),-1),_o=du(Xo("Optional"),8),Io=du(Xo("SkipSelf"),4);var Ht=(()=>((Ht=Ht||{})[Ht.Important=1]="Important",Ht[Ht.DashCase=2]="DashCase",Ht))();const Fs="__ngContext__";function Ys(P,L){P[Fs]=L}function mu(P){const L=function co(P){return P[Fs]||null}(P);return L?Array.isArray(L)?L:L.lView:null}let _s;function yo(P,L){return _s(P,L)}function Gl(P){const L=P[3];return Vt(L)?L[3]:L}function Zu(P){return Wl(P[13])}function Ao(P){return Wl(P[4])}function Wl(P){for(;null!==P&&!Vt(P);)P=P[4];return P}function yl(P,L,z,te,ue){if(null!=te){let ve,je=!1;Vt(te)?ve=te:ht(te)&&(je=!0,te=te[0]);const dt=rs(te);0===P&&null!==z?null==ue?Ds(L,z,dt):zl(L,z,dt,ue||null,!0):1===P&&null!==z?zl(L,z,dt,ue||null,!0):2===P?ql(L,dt,je):3===P&&L.destroyNode(dt),null!=ve&&function pd(P,L,z,te,ue){const ve=z[7];ve!==rs(z)&&yl(L,P,te,ve,ue);for(let dt=10;dt<z.length;dt++){const Rt=z[dt];Ju(Rt[1],Rt,P,L,te,ve)}}(L,P,ve,z,ue)}}function Ku(P,L){return Fi(P)?P.createText(L):P.createTextNode(L)}function Qd(P,L,z){if(Fi(P))return P.createElement(L,z);{const te=null!==z?function Qi(P){const L=P.toLowerCase();return"svg"===L?"http://www.w3.org/2000/svg":"math"===L?"http://www.w3.org/1998/MathML/":null}(z):null;return null===te?P.createElement(L):P.createElementNS(te,L)}}function Xd(P,L){const z=P[9],te=z.indexOf(L),ue=L[3];1024&L[2]&&(L[2]&=-1025,jt(ue,-1)),z.splice(te,1)}function Cl(P,L){if(P.length<=10)return;const z=10+L,te=P[z];if(te){const ue=te[17];null!==ue&&ue!==P&&Xd(ue,te),L>0&&(P[z-1][4]=te[4]);const ve=ml(P,10+L);!function Gf(P,L){Ju(P,L,L[11],2,null,null),L[0]=null,L[6]=null}(te[1],te);const je=ve[19];null!==je&&je.detachView(ve[1]),te[3]=null,te[4]=null,te[2]&=-129}return te}function ef(P,L){if(!(256&L[2])){const z=L[11];Fi(z)&&z.destroyNode&&Ju(P,L,z,3,null,null),function Js(P){let L=P[13];if(!L)return pc(P[1],P);for(;L;){let z=null;if(ht(L))z=L[13];else{const te=L[10];te&&(z=te)}if(!z){for(;L&&!L[4]&&L!==P;)ht(L)&&pc(L[1],L),L=L[3];null===L&&(L=P),ht(L)&&pc(L[1],L),z=L&&L[4]}L=z}}(L)}}function pc(P,L){if(!(256&L[2])){L[2]&=-129,L[2]|=256,function zf(P,L){let z;if(null!=P&&null!=(z=P.destroyHooks))for(let te=0;te<z.length;te+=2){const ue=L[z[te]];if(!(ue instanceof ar)){const ve=z[te+1];if(Array.isArray(ve))for(let je=0;je<ve.length;je+=2){const dt=ue[ve[je]],Rt=ve[je+1];try{Rt.call(dt)}finally{}}else try{ve.call(ue)}finally{}}}}(P,L),function Zf(P,L){const z=P.cleanup,te=L[7];let ue=-1;if(null!==z)for(let ve=0;ve<z.length-1;ve+=2)if("string"==typeof z[ve]){const je=z[ve+1],dt="function"==typeof je?je(L):rs(L[je]),Rt=te[ue=z[ve+2]],dr=z[ve+3];"boolean"==typeof dr?dt.removeEventListener(z[ve],Rt,dr):dr>=0?te[ue=dr]():te[ue=-dr].unsubscribe(),ve+=2}else{const je=te[ue=z[ve+1]];z[ve].call(je)}if(null!==te){for(let ve=ue+1;ve<te.length;ve++)te[ve]();L[7]=null}}(P,L),1===L[1].type&&Fi(L[11])&&L[11].destroy();const z=L[17];if(null!==z&&Vt(L[3])){z!==L[3]&&Xd(z,L);const te=L[19];null!==te&&te.detachView(P)}}}function bl(P,L,z){return Oc(P,L.parent,z)}function Oc(P,L,z){let te=L;for(;null!==te&&40&te.type;)te=(L=te).parent;if(null===te)return z[0];if(2&te.flags){const ue=P.data[te.directiveStart].encapsulation;if(ue===Ne.None||ue===Ne.Emulated)return null}return ps(te,z)}function zl(P,L,z,te,ue){Fi(P)?P.insertBefore(L,z,te,ue):L.insertBefore(z,te,ue)}function Ds(P,L,z){Fi(P)?P.appendChild(L,z):L.appendChild(z)}function tf(P,L,z,te,ue){null!==te?zl(P,L,z,te,ue):Ds(P,L,z)}function gc(P,L){return Fi(P)?P.parentNode(L):L.parentNode}function dd(P,L,z){return Kl(P,L,z)}function fd(P,L,z){return 40&P.type?ps(P,z):null}let Lc,Jl,$u,Kl=fd;function nf(P,L){Kl=P,Lc=L}function qu(P,L,z,te){const ue=bl(P,te,L),ve=L[11],dt=dd(te.parent||L[6],te,L);if(null!=ue)if(Array.isArray(z))for(let Rt=0;Rt<z.length;Rt++)tf(ve,ue,z[Rt],dt,!1);else tf(ve,ue,z,dt,!1);void 0!==Lc&&Lc(ve,te,L,z,ue)}function mc(P,L){if(null!==L){const z=L.type;if(3&z)return ps(L,P);if(4&z)return kc(-1,P[L.index]);if(8&z){const te=L.child;if(null!==te)return mc(P,te);{const ue=P[L.index];return Vt(ue)?kc(-1,ue):rs(ue)}}if(32&z)return yo(L,P)()||rs(P[L.index]);{const te=Kf(P,L);return null!==te?Array.isArray(te)?te[0]:mc(Gl(P[16]),te):mc(P,L.next)}}return null}function Kf(P,L){return null!==L?P[16][6].projection[L.projection]:null}function kc(P,L){const z=10+P+1;if(z<L.length){const te=L[z],ue=te[1].firstChild;if(null!==ue)return mc(te,ue)}return L[7]}function ql(P,L,z){const te=gc(P,L);te&&function Rc(P,L,z,te){Fi(P)?P.removeChild(L,z,te):L.removeChild(z)}(P,te,L,z)}function Nc(P,L,z,te,ue,ve,je){for(;null!=z;){const dt=te[z.index],Rt=z.type;if(je&&0===L&&(dt&&Ys(rs(dt),te),z.flags|=4),64!=(64&z.flags))if(8&Rt)Nc(P,L,z.child,te,ue,ve,!1),yl(L,P,ue,dt,ve);else if(32&Rt){const dr=yo(z,te);let Tr;for(;Tr=dr();)yl(L,P,ue,Tr,ve);yl(L,P,ue,dt,ve)}else 16&Rt?hd(P,L,te,z,ue,ve):yl(L,P,ue,dt,ve);z=je?z.projectionNext:z.next}}function Ju(P,L,z,te,ue,ve){Nc(z,te,P.firstChild,L,ue,ve,!1)}function hd(P,L,z,te,ue,ve){const je=z[16],Rt=je[6].projection[te.projection];if(Array.isArray(Rt))for(let dr=0;dr<Rt.length;dr++)yl(L,P,ue,Rt[dr],ve);else Nc(P,L,Rt,je[3],ue,ve,!0)}function sf(P,L,z){Fi(P)?P.setAttribute(L,"style",z):L.style.cssText=z}function gd(P,L,z){Fi(P)?""===z?P.removeAttribute(L,"class"):P.setAttribute(L,"class",z):L.className=z}function $l(P){return function md(){if(void 0===Jl&&(Jl=null,Re.trustedTypes))try{Jl=Re.trustedTypes.createPolicy("angular",{createHTML:P=>P,createScript:P=>P,createScriptURL:P=>P})}catch{}return Jl}()?.createHTML(P)||P}function _d(P,L,z){const te=xn(),ue=Ps(),ve=ps(ue,te);if(2===ue.type&&"iframe"===L.toLowerCase()){const je=ve;throw je.src="",je.srcdoc=$l(""),ql(te[11],je),new H(-910,!1)}return P}function vc(){if(void 0===$u&&($u=null,Re.trustedTypes))try{$u=Re.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:P=>P,createScript:P=>P,createScriptURL:P=>P})}catch{}return $u}function yu(P){return vc()?.createHTML(P)||P}function yd(P){return vc()?.createScriptURL(P)||P}class Sl{constructor(L){this.changingThisBreaksApplicationSecurity=L}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class $f extends Sl{getTypeName(){return"HTML"}}class Va extends Sl{getTypeName(){return"Style"}}class Cu extends Sl{getTypeName(){return"Script"}}class sl extends Sl{getTypeName(){return"URL"}}class Fc extends Sl{getTypeName(){return"ResourceURL"}}function la(P){return P instanceof Sl?P.changingThisBreaksApplicationSecurity:P}function al(P,L){const z=Pa(P);if(null!=z&&z!==L){if("ResourceURL"===z&&"URL"===L)return!0;throw new Error(`Required a safe ${L}, got a ${z} (see https://g.co/ng/security#xss)`)}return z===L}function Pa(P){return P instanceof Sl&&P.getTypeName()||null}function Cd(P){return new $f(P)}function Bc(P){return new Va(P)}function io(P){return new Cu(P)}function _c(P){return new sl(P)}function yc(P){return new Fc(P)}function af(P){const L=new of(P);return function so(){try{return!!(new window.DOMParser).parseFromString($l(""),"text/html")}catch{return!1}}()?new Qf(L):L}class Qf{constructor(L){this.inertDocumentHelper=L}getInertBodyElement(L){L="<body><remove></remove>"+L;try{const z=(new window.DOMParser).parseFromString($l(L),"text/html").body;return null===z?this.inertDocumentHelper.getInertBodyElement(L):(z.removeChild(z.firstChild),z)}catch{return null}}}class of{constructor(L){if(this.defaultDoc=L,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const z=this.inertDocument.createElement("html");this.inertDocument.appendChild(z);const te=this.inertDocument.createElement("body");z.appendChild(te)}}getInertBodyElement(L){const z=this.inertDocument.createElement("template");if("content"in z)return z.innerHTML=$l(L),z;const te=this.inertDocument.createElement("body");return te.innerHTML=$l(L),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(te),te}stripCustomNsAttrs(L){const z=L.attributes;for(let ue=z.length-1;0<ue;ue--){const je=z.item(ue).name;("xmlns:ns1"===je||0===je.indexOf("ns1:"))&&L.removeAttribute(je)}let te=L.firstChild;for(;te;)te.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(te),te=te.nextSibling}}const bu=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Ql=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Ya(P){return(P=String(P)).match(bu)||P.match(Ql)?P:"unsafe:"+P}function Xu(P){return(P=String(P)).split(",").map(L=>Ya(L.trim())).join(", ")}function Vo(P){const L={};for(const z of P.split(","))L[z]=!0;return L}function Xl(...P){const L={};for(const z of P)for(const te in z)z.hasOwnProperty(te)&&(L[te]=!0);return L}const Uc=Vo("area,br,col,hr,img,wbr"),Hc=Vo("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),lf=Vo("rp,rt"),Le=Xl(Uc,Xl(Hc,Vo("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Xl(lf,Vo("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Xl(lf,Hc)),ce=Vo("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),pe=Vo("srcset"),Ir=Xl(ce,pe,Vo("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Vo("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),an=Vo("script,style,template");class wn{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(L){let z=L.firstChild,te=!0;for(;z;)if(z.nodeType===Node.ELEMENT_NODE?te=this.startElement(z):z.nodeType===Node.TEXT_NODE?this.chars(z.nodeValue):this.sanitizedSomething=!0,te&&z.firstChild)z=z.firstChild;else for(;z;){z.nodeType===Node.ELEMENT_NODE&&this.endElement(z);let ue=this.checkClobberedElement(z,z.nextSibling);if(ue){z=ue;break}z=this.checkClobberedElement(z,z.parentNode)}return this.buf.join("")}startElement(L){const z=L.nodeName.toLowerCase();if(!Le.hasOwnProperty(z))return this.sanitizedSomething=!0,!an.hasOwnProperty(z);this.buf.push("<"),this.buf.push(z);const te=L.attributes;for(let ue=0;ue<te.length;ue++){const ve=te.item(ue),je=ve.name,dt=je.toLowerCase();if(!Ir.hasOwnProperty(dt)){this.sanitizedSomething=!0;continue}let Rt=ve.value;ce[dt]&&(Rt=Ya(Rt)),pe[dt]&&(Rt=Xu(Rt)),this.buf.push(" ",je,'="',Mi(Rt),'"')}return this.buf.push(">"),!0}endElement(L){const z=L.nodeName.toLowerCase();Le.hasOwnProperty(z)&&!Uc.hasOwnProperty(z)&&(this.buf.push("</"),this.buf.push(z),this.buf.push(">"))}chars(L){this.buf.push(Mi(L))}checkClobberedElement(L,z){if(z&&(L.compareDocumentPosition(z)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${L.outerHTML}`);return z}}const Jn=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,fi=/([^\#-~ |!])/g;function Mi(P){return P.replace(/&/g,"&amp;").replace(Jn,function(L){return"&#"+(1024*(L.charCodeAt(0)-55296)+(L.charCodeAt(1)-56320)+65536)+";"}).replace(fi,function(L){return"&#"+L.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Ti;function Sa(P,L){let z=null;try{Ti=Ti||af(P);let te=L?String(L):"";z=Ti.getInertBodyElement(te);let ue=5,ve=te;do{if(0===ue)throw new Error("Failed to sanitize html because the input is unstable");ue--,te=ve,ve=z.innerHTML,z=Ti.getInertBodyElement(te)}while(te!==ve);return $l((new wn).sanitizeChildren(Co(z)||z))}finally{if(z){const te=Co(z)||z;for(;te.firstChild;)te.removeChild(te.firstChild)}}}function Co(P){return"content"in P&&function ec(P){return P.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===P.nodeName}(P)?P.content:null}var Qs=(()=>((Qs=Qs||{})[Qs.NONE=0]="NONE",Qs[Qs.HTML=1]="HTML",Qs[Qs.STYLE=2]="STYLE",Qs[Qs.SCRIPT=3]="SCRIPT",Qs[Qs.URL=4]="URL",Qs[Qs.RESOURCE_URL=5]="RESOURCE_URL",Qs))();function bd(P){const L=Wc();return L?yu(L.sanitize(Qs.HTML,P)||""):al(P,"HTML")?yu(la(P)):Sa(Oi(),V(P))}function Td(P){const L=Wc();return L?L.sanitize(Qs.URL,P)||"":al(P,"URL")?la(P):Ya(V(P))}function bo(P){const L=Wc();if(L)return yd(L.sanitize(Qs.RESOURCE_URL,P)||"");if(al(P,"ResourceURL"))return yd(la(P));throw new H(904,"")}function Wc(){const P=xn();return P&&P[12]}function R(P){return P.ngOriginalError}function Q(P,...L){P.error(...L)}class se{constructor(){this._console=console}handleError(L){const z=this._findOriginalError(L),te=function Z(P){return P&&P.ngErrorLogger||Q}(L);te(this._console,"ERROR",L),z&&te(this._console,"ORIGINAL ERROR",z)}_findOriginalError(L){let z=L&&R(L);for(;z&&R(z);)z=R(z);return z||null}}const Xt=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(Re))();function Lr(P){return P.ownerDocument.defaultView}function Yr(P){return P.ownerDocument}function en(P){return P instanceof Function?P():P}function Xn(P,L,z){let te=P.length;for(;;){const ue=P.indexOf(L,z);if(-1===ue)return ue;if(0===ue||P.charCodeAt(ue-1)<=32){const ve=L.length;if(ue+ve===te||P.charCodeAt(ue+ve)<=32)return ue}z=ue+1}}const fs="ng-template";function Ri(P,L,z){let te=0;for(;te<P.length;){let ue=P[te++];if(z&&"class"===ue){if(ue=P[te],-1!==Xn(ue.toLowerCase(),L,0))return!0}else if(1===ue){for(;te<P.length&&"string"==typeof(ue=P[te++]);)if(ue.toLowerCase()===L)return!0;return!1}}return!1}function Ms(P){return 4===P.type&&P.value!==fs}function ws(P,L,z){return L===(4!==P.type||z?P.value:fs)}function ca(P,L,z){let te=4;const ue=P.attrs||[],ve=function hf(P){for(let L=0;L<P.length;L++)if(Yi(P[L]))return L;return P.length}(ue);let je=!1;for(let dt=0;dt<L.length;dt++){const Rt=L[dt];if("number"!=typeof Rt){if(!je)if(4&te){if(te=2|1&te,""!==Rt&&!ws(P,Rt,z)||""===Rt&&1===L.length){if(da(te))return!1;je=!0}}else{const dr=8&te?Rt:L[++dt];if(8&te&&null!==P.attrs){if(!Ri(P.attrs,dr,z)){if(da(te))return!1;je=!0}continue}const Gr=tc(8&te?"class":Rt,ue,Ms(P),z);if(-1===Gr){if(da(te))return!1;je=!0;continue}if(""!==dr){let tn;tn=Gr>ve?"":ue[Gr+1].toLowerCase();const pn=8&te?tn:null;if(pn&&-1!==Xn(pn,dr,0)||2&te&&dr!==tn){if(da(te))return!1;je=!0}}}}else{if(!je&&!da(te)&&!da(Rt))return!1;if(je&&da(Rt))continue;je=!1,te=Rt|1&te}}return da(te)||je}function da(P){return 0==(1&P)}function tc(P,L,z,te){if(null===L)return-1;let ue=0;if(te||!z){let ve=!1;for(;ue<L.length;){const je=L[ue];if(je===P)return ue;if(3===je||6===je)ve=!0;else{if(1===je||2===je){let dt=L[++ue];for(;"string"==typeof dt;)dt=L[++ue];continue}if(4===je)break;if(0===je){ue+=4;continue}}ue+=ve?1:2}return-1}return function eh(P,L){let z=P.indexOf(4);if(z>-1)for(z++;z<P.length;){const te=P[z];if("number"==typeof te)return-1;if(te===L)return z;z++}return-1}(L,P)}function ff(P,L,z=!1){for(let te=0;te<L.length;te++)if(ca(P,L[te],z))return!0;return!1}function om(P,L){e:for(let z=0;z<L.length;z++){const te=L[z];if(P.length===te.length){for(let ue=0;ue<P.length;ue++)if(P[ue]!==te[ue])continue e;return!0}}return!1}function B0(P,L){return P?":not("+L.trim()+")":L}function j_(P){let L=P[0],z=1,te=2,ue="",ve=!1;for(;z<P.length;){let je=P[z];if("string"==typeof je)if(2&te){const dt=P[++z];ue+="["+je+(dt.length>0?'="'+dt+'"':"")+"]"}else 8&te?ue+="."+je:4&te&&(ue+=" "+je);else""!==ue&&!da(je)&&(L+=B0(ve,ue),ue=""),te=je,ve=ve||!da(te);z++}return""!==ue&&(L+=B0(ve,ue)),L}const es={};function jh(P){lm(Hi(),xn(),ta()+P,!1)}function lm(P,L,z,te){if(!te)if(3==(3&L[2])){const ve=P.preOrderCheckHooks;null!==ve&&ro(L,ve,z)}else{const ve=P.preOrderHooks;null!==ve&&xa(L,ve,0,z)}wa(z)}function Gh(P,L){return P<<17|L<<2}function eu(P){return P>>17&32767}function H0(P){return 2|P}function Su(P){return(131068&P)>>2}function Wh(P,L){return-131069&P|L<<2}function Zc(P){return 1|P}function J0(P,L){const z=P.contentQueries;if(null!==z)for(let te=0;te<z.length;te+=2){const ue=z[te],ve=z[te+1];if(-1!==ve){const je=P.data[ve];to(ue),je.contentQueries(2,L[ve],ve)}}}function mf(P,L,z,te,ue,ve,je,dt,Rt,dr){const Tr=L.blueprint.slice();return Tr[0]=ue,Tr[2]=140|te,qt(Tr),Tr[3]=Tr[15]=P,Tr[8]=z,Tr[10]=je||P&&P[10],Tr[11]=dt||P&&P[11],Tr[12]=Rt||P&&P[12]||null,Tr[9]=dr||P&&P[9]||null,Tr[6]=ve,Tr[16]=2==L.type?P[16]:Tr,Tr}function Id(P,L,z,te,ue){let ve=P.data[L];if(null===ve)ve=El(P,L,z,te,ue),function Rl(){return Mt.lFrame.inI18n}()&&(ve.flags|=64);else if(64&ve.type){ve.type=z,ve.value=te,ve.attrs=ue;const je=Qt();ve.injectorIndex=null===je?-1:je.injectorIndex}return wr(ve,!0),ve}function El(P,L,z,te,ue){const ve=cn(),je=On(),Rt=P.data[L]=function X_(P,L,z,te,ue,ve){return{type:z,index:te,insertBeforeIndex:null,injectorIndex:L?L.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:ue,attrs:ve,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:L,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,je?ve:ve&&ve.parent,z,L,te,ue);return null===P.firstChild&&(P.firstChild=Rt),null!==ve&&(je?null==ve.child&&null!==Rt.parent&&(ve.child=Rt):null===ve.next&&(ve.next=Rt)),Rt}function Ad(P,L,z,te){if(0===z)return-1;const ue=L.length;for(let ve=0;ve<z;ve++)L.push(te),P.blueprint.push(te),P.data.push(null);return ue}function rh(P,L,z){oo(L);try{const te=P.viewQuery;null!==te&&sp(1,te,z);const ue=P.template;null!==ue&&$0(P,L,ue,1,z),P.firstCreatePass&&(P.firstCreatePass=!1),P.staticContentQueries&&J0(P,L),P.staticViewQueries&&sp(2,P.viewQuery,z);const ve=P.components;null!==ve&&function Tm(P,L){for(let z=0;z<L.length;z++)py(P,L[z])}(L,ve)}catch(te){throw P.firstCreatePass&&(P.incompleteFirstPass=!0,P.firstCreatePass=!1),te}finally{L[2]&=-5,mo()}}function vf(P,L,z,te){const ue=L[2];if(256!=(256&ue)){oo(L);try{qt(L),function pa(P){return Mt.lFrame.bindingIndex=P}(P.bindingStartIndex),null!==z&&$0(P,L,z,2,te);const je=3==(3&ue);if(je){const dr=P.preOrderCheckHooks;null!==dr&&ro(L,dr,null)}else{const dr=P.preOrderHooks;null!==dr&&xa(L,dr,0,null),ma(L,0)}if(function zb(P){for(let L=Zu(P);null!==L;L=Ao(L)){if(!L[2])continue;const z=L[9];for(let te=0;te<z.length;te++){const ue=z[te],ve=ue[3];0==(1024&ue[2])&&jt(ve,1),ue[2]|=1024}}}(L),function Zb(P){for(let L=Zu(P);null!==L;L=Ao(L))for(let z=10;z<L.length;z++){const te=L[z],ue=te[1];Qa(te)&&vf(ue,te,ue.template,te[8])}}(L),null!==P.contentQueries&&J0(P,L),je){const dr=P.contentCheckHooks;null!==dr&&ro(L,dr)}else{const dr=P.contentHooks;null!==dr&&xa(L,dr,1),ma(L,1)}!function q0(P,L){const z=P.hostBindingOpCodes;if(null!==z)try{for(let te=0;te<z.length;te++){const ue=z[te];if(ue<0)wa(~ue);else{const ve=ue,je=z[++te],dt=z[++te];eo(je,ve),dt(2,L[ve])}}}finally{wa(-1)}}(P,L);const dt=P.components;null!==dt&&function Sm(P,L){for(let z=0;z<L.length;z++)hy(P,L[z])}(L,dt);const Rt=P.viewQuery;if(null!==Rt&&sp(2,Rt,te),je){const dr=P.viewCheckHooks;null!==dr&&ro(L,dr)}else{const dr=P.viewHooks;null!==dr&&xa(L,dr,2),ma(L,2)}!0===P.firstUpdatePass&&(P.firstUpdatePass=!1),L[2]&=-73,1024&L[2]&&(L[2]&=-1025,jt(L[3],-1))}finally{mo()}}}function $_(P,L,z,te){const ue=L[10],je=ia(L);try{!je&&ue.begin&&ue.begin(),je&&rh(P,L,te),vf(P,L,z,te)}finally{!je&&ue.end&&ue.end()}}function $0(P,L,z,te,ue){const ve=ta(),je=2&te;try{wa(-1),je&&L.length>20&&lm(P,L,20,!1),z(te,ue)}finally{wa(ve)}}function Em(P,L,z){if(yt(L)){const ue=L.directiveEnd;for(let ve=L.directiveStart;ve<ue;ve++){const je=P.data[ve];je.contentQueries&&je.contentQueries(1,z[ve],ve)}}}function Q0(P,L,z){!zs()||(function oy(P,L,z,te){const ue=z.directiveStart,ve=z.directiveEnd;P.firstCreatePass||ut(z,L),Ys(te,L);const je=z.initialInputs;for(let dt=ue;dt<ve;dt++){const Rt=P.data[dt],dr=Zr(Rt);dr&&cy(L,z,Rt);const Tr=Wi(L,P,dt,z);Ys(Tr,L),null!==je&&dy(0,dt-ue,Tr,Rt,0,je),dr&&(ks(z.index,L)[8]=Tr)}}(P,L,z,ps(z,L)),128==(128&z.flags)&&function ly(P,L,z){const te=z.directiveStart,ue=z.directiveEnd,je=z.index,dt=function ea(){return Mt.lFrame.currentDirectiveIndex}();try{wa(je);for(let Rt=te;Rt<ue;Rt++){const dr=P.data[Rt],Tr=L[Rt];Za(Rt),(null!==dr.hostBindings||0!==dr.hostVars||null!==dr.hostAttrs)&&ep(dr,Tr)}}finally{wa(-1),Za(dt)}}(P,L,z))}function X0(P,L,z=ps){const te=L.localNames;if(null!==te){let ue=L.index+1;for(let ve=0;ve<te.length;ve+=2){const je=te[ve+1],dt=-1===je?z(L,P):P[je];P[ue++]=dt}}}function Mm(P){const L=P.tView;return null===L||L.incompleteFirstPass?P.tView=$h(1,null,P.template,P.decls,P.vars,P.directiveDefs,P.pipeDefs,P.viewQuery,P.schemas,P.consts):L}function $h(P,L,z,te,ue,ve,je,dt,Rt,dr){const Tr=20+te,Gr=Tr+ue,tn=function Q_(P,L){const z=[];for(let te=0;te<L;te++)z.push(te<P?null:es);return z}(Tr,Gr),pn="function"==typeof dr?dr():dr;return tn[1]={type:P,blueprint:tn,template:z,queries:null,viewQuery:dt,declTNode:L,data:tn.slice().fill(null,Tr),bindingStartIndex:Tr,expandoStartIndex:Gr,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof ve?ve():ve,pipeRegistry:"function"==typeof je?je():je,firstChild:null,schemas:Rt,consts:pn,incompleteFirstPass:!1}}function Im(P,L,z,te){const ue=Fm(L);null===z?ue.push(te):(ue.push(z),P.firstCreatePass&&Bm(P).push(te,ue.length-1))}function Am(P,L,z){for(let te in P)if(P.hasOwnProperty(te)){const ue=P[te];(z=null===z?{}:z).hasOwnProperty(te)?z[te].push(L,ue):z[te]=[L,ue]}return z}function Ml(P,L,z,te,ue,ve,je,dt){const Rt=ps(L,z);let Tr,dr=L.inputs;!dt&&null!=dr&&(Tr=dr[te])?(op(P,z,Tr,te,ue),gr(L)&&function ry(P,L){const z=ks(L,P);16&z[2]||(z[2]|=64)}(z,L.index)):3&L.type&&(te=function ty(P){return"class"===P?"className":"for"===P?"htmlFor":"formaction"===P?"formAction":"innerHtml"===P?"innerHTML":"readonly"===P?"readOnly":"tabindex"===P?"tabIndex":P}(te),ue=null!=je?je(ue,L.value||"",te):ue,Fi(ve)?ve.setProperty(Rt,te,ue):bs(te)||(Rt.setProperty?Rt.setProperty(te,ue):Rt[te]=ue))}function Xh(P,L,z,te){let ue=!1;if(zs()){const ve=function uy(P,L,z){const te=P.directiveRegistry;let ue=null;if(te)for(let ve=0;ve<te.length;ve++){const je=te[ve];ff(z,je.selectors,!1)&&(ue||(ue=[]),Pr(ut(z,L),P,je.type),Zr(je)?(Pm(P,z),ue.unshift(je)):ue.push(je))}return ue}(P,L,z),je=null===te?null:{"":-1};if(null!==ve){ue=!0,Rm(z,P.data.length,ve.length);for(let Tr=0;Tr<ve.length;Tr++){const Gr=ve[Tr];Gr.providersResolver&&Gr.providersResolver(Gr)}let dt=!1,Rt=!1,dr=Ad(P,L,ve.length,null);for(let Tr=0;Tr<ve.length;Tr++){const Gr=ve[Tr];z.mergedAttrs=qi(z.mergedAttrs,Gr.hostAttrs),Lm(P,z,L,dr,Gr),Om(dr,Gr,je),null!==Gr.contentQueries&&(z.flags|=8),(null!==Gr.hostBindings||null!==Gr.hostAttrs||0!==Gr.hostVars)&&(z.flags|=128);const tn=Gr.type.prototype;!dt&&(tn.ngOnChanges||tn.ngOnInit||tn.ngDoCheck)&&((P.preOrderHooks||(P.preOrderHooks=[])).push(z.index),dt=!0),!Rt&&(tn.ngOnChanges||tn.ngDoCheck)&&((P.preOrderCheckHooks||(P.preOrderCheckHooks=[])).push(z.index),Rt=!0),dr++}!function ey(P,L){const te=L.directiveEnd,ue=P.data,ve=L.attrs,je=[];let dt=null,Rt=null;for(let dr=L.directiveStart;dr<te;dr++){const Tr=ue[dr],Gr=Tr.inputs,tn=null===ve||Ms(L)?null:fy(Gr,ve);je.push(tn),dt=Am(Gr,dr,dt),Rt=Am(Tr.outputs,dr,Rt)}null!==dt&&(dt.hasOwnProperty("class")&&(L.flags|=16),dt.hasOwnProperty("style")&&(L.flags|=32)),L.initialInputs=je,L.inputs=dt,L.outputs=Rt}(P,z)}je&&function Gb(P,L,z){if(L){const te=P.localNames=[];for(let ue=0;ue<L.length;ue+=2){const ve=z[L[ue+1]];if(null==ve)throw new H(-301,!1);te.push(L[ue],ve)}}}(z,te,je)}return z.mergedAttrs=qi(z.mergedAttrs,z.attrs),ue}function Dm(P,L,z,te,ue,ve){const je=ve.hostBindings;if(je){let dt=P.hostBindingOpCodes;null===dt&&(dt=P.hostBindingOpCodes=[]);const Rt=~L.index;(function ay(P){let L=P.length;for(;L>0;){const z=P[--L];if("number"==typeof z&&z<0)return z}return 0})(dt)!=Rt&&dt.push(Rt),dt.push(te,ue,je)}}function ep(P,L){null!==P.hostBindings&&P.hostBindings(1,L)}function Pm(P,L){L.flags|=2,(P.components||(P.components=[])).push(L.index)}function Om(P,L,z){if(z){if(L.exportAs)for(let te=0;te<L.exportAs.length;te++)z[L.exportAs[te]]=P;Zr(L)&&(z[""]=P)}}function Rm(P,L,z){P.flags|=1,P.directiveStart=L,P.directiveEnd=L+z,P.providerIndexes=L}function Lm(P,L,z,te,ue){P.data[te]=ue;const ve=ue.factory||(ue.factory=bn(ue.type)),je=new ar(ve,Zr(ue),null);P.blueprint[te]=je,z[te]=je,Dm(P,L,0,te,Ad(P,z,ue.hostVars,es),ue)}function cy(P,L,z){const te=ps(L,P),ue=Mm(z),ve=P[10],je=e0(P,mf(P,ue,null,z.onPush?64:16,te,L,ve,ve.createRenderer(te,z),null,null));P[L.index]=je}function nc(P,L,z,te,ue,ve){const je=ps(P,L);!function tp(P,L,z,te,ue,ve,je){if(null==ve)Fi(P)?P.removeAttribute(L,ue,z):L.removeAttribute(ue);else{const dt=null==je?V(ve):je(ve,te||"",ue);Fi(P)?P.setAttribute(L,ue,dt,z):z?L.setAttributeNS(z,ue,dt):L.setAttribute(ue,dt)}}(L[11],je,ve,P.value,z,te,ue)}function dy(P,L,z,te,ue,ve){const je=ve[L];if(null!==je){const dt=te.setInput;for(let Rt=0;Rt<je.length;){const dr=je[Rt++],Tr=je[Rt++],Gr=je[Rt++];null!==dt?te.setInput(z,Gr,dr,Tr):z[Tr]=Gr}}}function fy(P,L){let z=null,te=0;for(;te<L.length;){const ue=L[te];if(0!==ue)if(5!==ue){if("number"==typeof ue)break;P.hasOwnProperty(ue)&&(null===z&&(z=[]),z.push(ue,P[ue],L[te+1])),te+=2}else te+=2;else te+=4}return z}function km(P,L,z,te){return new Array(P,!0,!1,L,null,0,te,z,null,null)}function hy(P,L){const z=ks(L,P);if(Qa(z)){const te=z[1];80&z[2]?vf(te,z,te.template,z[8]):z[5]>0&&rp(z)}}function rp(P){for(let te=Zu(P);null!==te;te=Ao(te))for(let ue=10;ue<te.length;ue++){const ve=te[ue];if(1024&ve[2]){const je=ve[1];vf(je,ve,je.template,ve[8])}else ve[5]>0&&rp(ve)}const z=P[1].components;if(null!==z)for(let te=0;te<z.length;te++){const ue=ks(z[te],P);Qa(ue)&&ue[5]>0&&rp(ue)}}function py(P,L){const z=ks(L,P),te=z[1];(function Nm(P,L){for(let z=L.length;z<P.blueprint.length;z++)L.push(P.blueprint[z])})(te,z),rh(te,z,z[8])}function e0(P,L){return P[13]?P[14][4]=L:P[13]=L,P[14]=L,L}function np(P){for(;P;){P[2]|=64;const L=Gl(P);if(fn(P)&&!L)return P;P=L}return null}function fo(P){!function ip(P){for(let L=0;L<P.components.length;L++){const z=P.components[L],te=mu(z),ue=te[1];$_(ue,te,ue.template,z)}}(P[8])}function sp(P,L,z){to(0),L(P,z)}const my=(()=>Promise.resolve(null))();function Fm(P){return P[7]||(P[7]=[])}function Bm(P){return P.cleanup||(P.cleanup=[])}function Um(P,L,z){return(null===P||Zr(P))&&(z=function fa(P){for(;Array.isArray(P);){if("object"==typeof P[1])return P;P=P[0]}return null}(z[L.index])),z[11]}function ap(P,L){const z=P[9],te=z?z.get(se,null):null;te&&te.handleError(L)}function op(P,L,z,te,ue){for(let ve=0;ve<z.length;){const je=z[ve++],dt=z[ve++],Rt=L[je],dr=P.data[je];null!==dr.setInput?dr.setInput(Rt,ue,te,dt):Rt[dt]=ue}}function sc(P,L,z){const te=Zs(L,P);!function Yf(P,L,z){Fi(P)?P.setValue(L,z):L.textContent=z}(P[11],te,z)}function nh(P,L,z){let te=z?P.styles:null,ue=z?P.classes:null,ve=0;if(null!==L)for(let je=0;je<L.length;je++){const dt=L[je];"number"==typeof dt?ve=dt:1==ve?ue=p(ue,dt):2==ve&&(te=p(te,dt+": "+L[++je]+";"))}z?P.styles=te:P.stylesWithoutHost=te,z?P.classes=ue:P.classesWithoutHost=ue}const r0=new Hs("INJECTOR",-1);class Hm{get(L,z=ji){if(z===ji){const te=new Error(`NullInjectorError: No provider for ${g(L)}!`);throw te.name="NullInjectorError",te}return z}}const n0=new Hs("Set Injector scope."),_f={},Vm={};let lp;function Ym(){return void 0===lp&&(lp=new Hm),lp}function jm(P,L=null,z=null,te){const ue=up(P,L,z,te);return ue._resolveInjectorDefTypes(),ue}function up(P,L=null,z=null,te){return new yy(P,z,L||Ym(),te)}class yy{constructor(L,z,te,ue=null){this.parent=te,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const ve=[];z&&uo(z,dt=>this.processProvider(dt,L,z)),uo([L],dt=>this.processInjectorType(dt,[],ve)),this.records.set(r0,yf(void 0,this));const je=this.records.get(n0);this.scope=null!=je?je.value:null,this.source=ue||("object"==typeof L?null:g(L))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(L=>L.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(L,z=ji,te=ft.Default){this.assertNotDestroyed();const ue=lc(this),ve=br(void 0);try{if(!(te&ft.SkipSelf)){let dt=this.records.get(L);if(void 0===dt){const Rt=function Ty(P){return"function"==typeof P||"object"==typeof P&&P instanceof Hs}(L)&&Ze(L);dt=Rt&&this.injectableDefInScope(Rt)?yf(cp(L),_f):null,this.records.set(L,dt)}if(null!=dt)return this.hydrate(L,dt)}return(te&ft.Self?Ym():this.parent).get(L,z=te&ft.Optional&&z===ji?null:z)}catch(je){if("NullInjectorError"===je.name){if((je[Fo]=je[Fo]||[]).unshift(g(L)),ue)throw je;return function hu(P,L,z,te){const ue=P[Fo];throw L[Fu]&&ue.unshift(L[Fu]),P.message=function uc(P,L,z,te=null){P=P&&"\n"===P.charAt(0)&&"\u0275"==P.charAt(1)?P.substr(2):P;let ue=g(L);if(Array.isArray(L))ue=L.map(g).join(" -> ");else if("object"==typeof L){let ve=[];for(let je in L)if(L.hasOwnProperty(je)){let dt=L[je];ve.push(je+":"+("string"==typeof dt?JSON.stringify(dt):g(dt)))}ue=`{${ve.join(", ")}}`}return`${z}${te?"("+te+")":""}[${ue}]: ${P.replace(Nu,"\n  ")}`}("\n"+P.message,ue,z,te),P.ngTokenPath=ue,P[Fo]=null,P}(je,L,"R3InjectorError",this.source)}throw je}finally{br(ve),lc(ue)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(L=>this.get(L))}toString(){const L=[];return this.records.forEach((te,ue)=>L.push(g(ue))),`R3Injector[${L.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new H(205,!1)}processInjectorType(L,z,te){if(!(L=N(L)))return!1;let ue=_e(L);const ve=null==ue&&L.ngModule||void 0,je=void 0===ve?L:ve,dt=-1!==te.indexOf(je);if(void 0!==ve&&(ue=_e(ve)),null==ue)return!1;if(null!=ue.imports&&!dt){let Tr;te.push(je);try{uo(ue.imports,Gr=>{this.processInjectorType(Gr,z,te)&&(void 0===Tr&&(Tr=[]),Tr.push(Gr))})}finally{}if(void 0!==Tr)for(let Gr=0;Gr<Tr.length;Gr++){const{ngModule:tn,providers:pn}=Tr[Gr];uo(pn,kn=>this.processProvider(kn,tn,pn||wt))}}this.injectorDefTypes.add(je);const Rt=bn(je)||(()=>new je);this.records.set(je,yf(Rt,_f));const dr=ue.providers;if(null!=dr&&!dt){const Tr=L;uo(dr,Gr=>this.processProvider(Gr,Tr,dr))}return void 0!==ve&&void 0!==L.providers}processProvider(L,z,te){let ue=qn(L=N(L))?L:N(L&&L.provide);const ve=function Cy(P,L,z){return Zm(P)?yf(void 0,P.useValue):yf(Wm(P),_f)}(L);if(qn(L)||!0!==L.multi)this.records.get(ue);else{let je=this.records.get(ue);je||(je=yf(void 0,_f,!0),je.factory=()=>_l(je.multi),this.records.set(ue,je)),ue=L,je.multi.push(L)}this.records.set(ue,ve)}hydrate(L,z){return z.value===_f&&(z.value=Vm,z.value=z.factory()),"object"==typeof z.value&&z.value&&function zm(P){return null!==P&&"object"==typeof P&&"function"==typeof P.ngOnDestroy}(z.value)&&this.onDestroy.add(z.value),z.value}injectableDefInScope(L){if(!L.providedIn)return!1;const z=N(L.providedIn);return"string"==typeof z?"any"===z||z===this.scope:this.injectorDefTypes.has(z)}}function cp(P){const L=Ze(P),z=null!==L?L.factory:bn(P);if(null!==z)return z;if(P instanceof Hs)throw new H(204,!1);if(P instanceof Function)return function Gm(P){const L=P.length;if(L>0)throw Vs(L,"?"),new H(204,!1);const z=function Be(P){const L=P&&(P[ne]||P[Te]);if(L){const z=function Lt(P){if(P.hasOwnProperty("name"))return P.name;const L=(""+P).match(/^function\s*([^\s(]+)/);return null===L?"":L[1]}(P);return console.warn(`DEPRECATED: DI is instantiating a token "${z}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${z}" class.`),L}return null}(P);return null!==z?()=>z.factory(P):()=>new P}(P);throw new H(204,!1)}function Wm(P,L,z){let te;if(qn(P)){const ue=N(P);return bn(ue)||cp(ue)}if(Zm(P))te=()=>N(P.useValue);else if(function Sy(P){return!(!P||!P.useFactory)}(P))te=()=>P.useFactory(..._l(P.deps||[]));else if(function by(P){return!(!P||!P.useExisting)}(P))te=()=>_a(N(P.useExisting));else{const ue=N(P&&(P.useClass||P.provide));if(!function s0(P){return!!P.deps}(P))return bn(ue)||cp(ue);te=()=>new ue(..._l(P.deps))}return te}function yf(P,L,z=!1){return{factory:P,value:L,multi:z?[]:void 0}}function Zm(P){return null!==P&&"object"==typeof P&&Ks in P}function qn(P){return"function"==typeof P}let ac=(()=>{class P{static create(z,te){if(Array.isArray(z))return jm({name:""},te,z,"");{const ue=z.name??"";return jm({name:ue},z.parent,z.providers,ue)}}}return P.THROW_IF_NOT_FOUND=ji,P.NULL=new Hm,P.\u0275prov=Qe({token:P,providedIn:"any",factory:()=>_a(r0)}),P.__NG_ELEMENT_ID__=-1,P})();function Dy(P,L){$o(mu(P)[1],rr())}function hp(P){let L=function sv(P){return Object.getPrototypeOf(P.prototype).constructor}(P.type),z=!0;const te=[P];for(;L;){let ue;if(Zr(P))ue=L.\u0275cmp||L.\u0275dir;else{if(L.\u0275cmp)throw new H(903,"");ue=L.\u0275dir}if(ue){if(z){te.push(ue);const je=P;je.inputs=pp(P.inputs),je.declaredInputs=pp(P.declaredInputs),je.outputs=pp(P.outputs);const dt=ue.hostBindings;dt&&qc(P,dt);const Rt=ue.viewQuery,dr=ue.contentQueries;if(Rt&&Py(P,Rt),dr&&gp(P,dr),y(P.inputs,ue.inputs),y(P.declaredInputs,ue.declaredInputs),y(P.outputs,ue.outputs),Zr(ue)&&ue.data.animation){const Tr=P.data;Tr.animation=(Tr.animation||[]).concat(ue.data.animation)}}const ve=ue.features;if(ve)for(let je=0;je<ve.length;je++){const dt=ve[je];dt&&dt.ngInherit&&dt(P),dt===hp&&(z=!1)}}L=Object.getPrototypeOf(L)}!function n6(P){let L=0,z=null;for(let te=P.length-1;te>=0;te--){const ue=P[te];ue.hostVars=L+=ue.hostVars,ue.hostAttrs=qi(ue.hostAttrs,z=qi(z,ue.hostAttrs))}}(te)}function pp(P){return P===cr?{}:P===wt?[]:P}function Py(P,L){const z=P.viewQuery;P.viewQuery=z?(te,ue)=>{L(te,ue),z(te,ue)}:L}function gp(P,L){const z=P.contentQueries;P.contentQueries=z?(te,ue,ve)=>{L(te,ue,ve),z(te,ue,ve)}:L}function qc(P,L){const z=P.hostBindings;P.hostBindings=z?(te,ue)=>{L(te,ue),z(te,ue)}:L}let Cf=null;function ho(){if(!Cf){const P=Re.Symbol;if(P&&P.iterator)Cf=P.iterator;else{const L=Object.getOwnPropertyNames(Map.prototype);for(let z=0;z<L.length;++z){const te=L[z];"entries"!==te&&"size"!==te&&Map.prototype[te]===Map.prototype.entries&&(Cf=te)}}}return Cf}function Dd(P){return!!sh(P)&&(Array.isArray(P)||!(P instanceof Map)&&ho()in P)}function sh(P){return null!==P&&("function"==typeof P||"object"==typeof P)}function Sc(P,L,z){return P[L]=z}function ah(P,L){return P[L]}function Oa(P,L,z){return!Object.is(P[L],z)&&(P[L]=z,!0)}function Jc(P,L,z,te){const ue=Oa(P,L,z);return Oa(P,L+1,te)||ue}function oh(P,L,z,te,ue){const ve=Jc(P,L,z,te);return Oa(P,L+2,ue)||ve}function ru(P,L,z,te,ue,ve){const je=Jc(P,L,z,te);return Jc(P,L+2,ue,ve)||je}function a0(P,L,z,te){const ue=xn();return Oa(ue,Ca(),L)&&(Hi(),nc(Ps(),ue,P,L,z,te)),a0}function lh(P,L,z,te){return Oa(P,Ca(),z)?L+V(z)+te:es}function Od(P,L,z,te,ue,ve){const dt=Jc(P,ao(),z,ue);return Fa(2),dt?L+V(z)+te+V(ue)+ve:es}function Ec(P,L,z,te,ue,ve,je,dt){const Rt=xn(),dr=Hi(),Tr=P+20,Gr=dr.firstCreatePass?function dv(P,L,z,te,ue,ve,je,dt,Rt){const dr=L.consts,Tr=Id(L,P,4,je||null,Ma(dr,dt));Xh(L,z,Tr,Ma(dr,Rt)),$o(L,Tr);const Gr=Tr.tViews=$h(2,Tr,te,ue,ve,L.directiveRegistry,L.pipeRegistry,null,L.schemas,dr);return null!==L.queries&&(L.queries.template(L,Tr),Gr.queries=L.queries.embeddedTView(Tr)),Tr}(Tr,dr,Rt,L,z,te,ue,ve,je):dr.data[Tr];wr(Gr,!1);const tn=Rt[11].createComment("");qu(dr,Rt,tn,Gr),Ys(tn,Rt),e0(Rt,Rt[Tr]=km(tn,Rt,tn,Gr)),ur(Gr)&&Q0(dr,Rt,Gr),null!=je&&X0(Rt,Gr,dt)}function yp(P){return Xs(function Cs(){return Mt.lFrame.contextLView}(),20+P)}function Fd(P,L=ft.Default){const z=xn();return null===z?_a(P,L):si(rr(),z,N(P),L)}function mh(){throw new Error("invalid")}function Dp(P,L,z){const te=xn();return Oa(te,Ca(),L)&&Ml(Hi(),Ps(),te,P,L,te[11],z,!1),Dp}function Pp(P,L,z,te,ue){const je=ue?"class":"style";op(P,z,L.inputs[je],je,te)}function p0(P,L,z,te){const ue=xn(),ve=Hi(),je=20+P,dt=ue[11],Rt=ue[je]=Qd(dt,L,function lo(){return Mt.lFrame.currentNamespace}()),dr=ve.firstCreatePass?function By(P,L,z,te,ue,ve,je){const dt=L.consts,dr=Id(L,P,2,ue,Ma(dt,ve));return Xh(L,z,dr,Ma(dt,je)),null!==dr.attrs&&nh(dr,dr.attrs,!1),null!==dr.mergedAttrs&&nh(dr,dr.mergedAttrs,!0),null!==L.queries&&L.queries.elementStart(L,dr),dr}(je,ve,ue,0,L,z,te):ve.data[je];wr(dr,!0);const Tr=dr.mergedAttrs;null!==Tr&&as(dt,Rt,Tr);const Gr=dr.classes;null!==Gr&&gd(dt,Rt,Gr);const tn=dr.styles;return null!==tn&&sf(dt,Rt,tn),64!=(64&dr.flags)&&qu(ve,ue,Rt,dr),0===function ui(){return Mt.lFrame.elementDepthCount}()&&Ys(Rt,ue),function ss(){Mt.lFrame.elementDepthCount++}(),ur(dr)&&(Q0(ve,ue,dr),Em(ve,dr,ue)),null!==te&&X0(ue,dr),p0}function g0(){let P=rr();On()?Ci():(P=P.parent,wr(P,!1));const L=P;!function Ki(){Mt.lFrame.elementDepthCount--}();const z=Hi();return z.firstCreatePass&&($o(z,P),yt(P)&&z.queries.elementEnd(P)),null!=L.classesWithoutHost&&function Nn(P){return 0!=(16&P.flags)}(L)&&Pp(z,L,xn(),L.classesWithoutHost,!0),null!=L.stylesWithoutHost&&function ei(P){return 0!=(32&P.flags)}(L)&&Pp(z,L,xn(),L.stylesWithoutHost,!1),g0}function vh(P,L,z,te){return p0(P,L,z,te),g0(),vh}function Tf(P,L,z){const te=xn(),ue=Hi(),ve=P+20,je=ue.firstCreatePass?function m0(P,L,z,te,ue){const ve=L.consts,je=Ma(ve,te),dt=Id(L,P,8,"ng-container",je);return null!==je&&nh(dt,je,!0),Xh(L,z,dt,Ma(ve,ue)),null!==L.queries&&L.queries.elementStart(L,dt),dt}(ve,ue,te,L,z):ue.data[ve];wr(je,!0);const dt=te[ve]=te[11].createComment("");return qu(ue,te,dt,je),Ys(dt,te),ur(je)&&(Q0(ue,te,je),Em(ue,je,te)),null!=z&&X0(te,je),Tf}function Bd(){let P=rr();const L=Hi();return On()?Ci():(P=P.parent,wr(P,!1)),L.firstCreatePass&&($o(L,P),yt(P)&&L.queries.elementEnd(P)),Bd}function Op(P,L,z){return Tf(P,L,z),Bd(),Op}function Rp(){return xn()}function Lp(P){return!!P&&"function"==typeof P.then}function Uy(P){return!!P&&"function"==typeof P.subscribe}const v0=Uy;function Tv(P,L,z,te){const ue=xn(),ve=Hi(),je=rr();return Ev(ve,ue,ue[11],je,P,L,!!z,te),Tv}function kp(P,L){const z=rr(),te=xn(),ue=Hi();return Ev(ue,te,Um(To(ue.data),z,te),z,P,L,!1),kp}function Ev(P,L,z,te,ue,ve,je,dt){const Rt=ur(te),Tr=P.firstCreatePass&&Bm(P),Gr=L[8],tn=Fm(L);let pn=!0;if(3&te.type||dt){const ti=ps(te,L),gi=dt?dt(ti):ti,Bn=tn.length,Ii=dt?Es=>dt(rs(Es[te.index])):te.index;if(Fi(z)){let Es=null;if(!dt&&Rt&&(Es=function Hy(P,L,z,te){const ue=P.cleanup;if(null!=ue)for(let ve=0;ve<ue.length-1;ve+=2){const je=ue[ve];if(je===z&&ue[ve+1]===te){const dt=L[7],Rt=ue[ve+2];return dt.length>Rt?dt[Rt]:null}"string"==typeof je&&(ve+=2)}return null}(P,L,ue,te.index)),null!==Es)(Es.__ngLastListenerFn__||Es).__ngNextListenerFn__=ve,Es.__ngLastListenerFn__=ve,pn=!1;else{ve=_h(te,L,Gr,ve,!1);const Gs=z.listen(gi,ue,ve);tn.push(ve,Gs),Tr&&Tr.push(ue,Ii,Bn,Bn+1)}}else ve=_h(te,L,Gr,ve,!0),gi.addEventListener(ue,ve,je),tn.push(ve),Tr&&Tr.push(ue,Ii,Bn,je)}else ve=_h(te,L,Gr,ve,!1);const kn=te.outputs;let $n;if(pn&&null!==kn&&($n=kn[ue])){const ti=$n.length;if(ti)for(let gi=0;gi<ti;gi+=2){const Dl=L[$n[gi]][$n[gi+1]].subscribe(ve),Zd=tn.length;tn.push(ve,Dl),Tr&&Tr.push(ue,te.index,Zd,-(Zd+1))}}}function Np(P,L,z,te){try{return!1!==z(te)}catch(ue){return ap(P,ue),!1}}function _h(P,L,z,te,ue){return function ve(je){if(je===Function)return te;const dt=2&P.flags?ks(P.index,L):L;0==(32&L[2])&&np(dt);let Rt=Np(L,0,te,je),dr=ve.__ngNextListenerFn__;for(;dr;)Rt=Np(L,0,dr,je)&&Rt,dr=dr.__ngNextListenerFn__;return ue&&!1===Rt&&(je.preventDefault(),je.returnValue=!1),Rt}}function Fp(P=1){return function zo(P){return(Mt.lFrame.contextLView=function Ko(P,L){for(;P>0;)L=L[15],P--;return L}(P,Mt.lFrame.contextLView))[8]}(P)}function Vy(P,L){let z=null;const te=function Xf(P){const L=P.attrs;if(null!=L){const z=L.indexOf(5);if(0==(1&z))return L[z+1]}return null}(P);for(let ue=0;ue<L.length;ue++){const ve=L[ue];if("*"!==ve){if(null===te?ff(P,ve,!0):om(te,ve))return ue}else z=ue}return z}function Mv(P){const L=xn()[16][6];if(!L.projection){const te=L.projection=Vs(P?P.length:1,null),ue=te.slice();let ve=L.child;for(;null!==ve;){const je=P?Vy(ve,P):0;null!==je&&(ue[je]?ue[je].projectionNext=ve:te[je]=ve,ue[je]=ve),ve=ve.next}}}function wv(P,L=0,z){const te=xn(),ue=Hi(),ve=Id(ue,20+P,16,null,z||null);null===ve.projection&&(ve.projection=L),Ci(),64!=(64&ve.flags)&&function Uh(P,L,z){hd(L[11],0,L,z,bl(P,z,L),dd(z.parent||L[6],z,L))}(ue,te,ve)}function Bp(P,L,z){return _0(P,"",L,"",z),Bp}function _0(P,L,z,te,ue){const ve=xn(),je=lh(ve,L,z,te);return je!==es&&Ml(Hi(),Ps(),ve,P,je,ve[11],ue,!1),_0}function y0(P,L,z,te,ue,ve,je){const dt=xn(),Rt=Od(dt,L,z,te,ue,ve);return Rt!==es&&Ml(Hi(),Ps(),dt,P,Rt,dt[11],je,!1),y0}function Rv(P,L,z,te,ue){const ve=P[z+1],je=null===L;let dt=te?eu(ve):Su(ve),Rt=!1;for(;0!==dt&&(!1===Rt||je);){const Tr=P[dt+1];iu(P[dt],L)&&(Rt=!0,P[dt+1]=te?Zc(Tr):H0(Tr)),dt=te?eu(Tr):Su(Tr)}Rt&&(P[z+1]=te?H0(ve):Zc(ve))}function iu(P,L){return null===P||null==L||(Array.isArray(P)?P[1]:P)===L||!(!Array.isArray(P)||"string"!=typeof L)&&Xi(P,L)>=0}const ja={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ef(P){return P.substring(ja.key,ja.keyEnd)}function Hp(P){return P.substring(ja.value,ja.valueEnd)}function Lv(P,L){const z=ja.textEnd;return z===L?-1:(L=ja.keyEnd=function Gy(P,L,z){for(;L<z&&P.charCodeAt(L)>32;)L++;return L}(P,ja.key=L,z),Mc(P,L,z))}function kv(P,L){const z=ja.textEnd;let te=ja.key=Mc(P,L,z);return z===te?-1:(te=ja.keyEnd=function Fv(P,L,z){let te;for(;L<z&&(45===(te=P.charCodeAt(L))||95===te||(-33&te)>=65&&(-33&te)<=90||te>=48&&te<=57);)L++;return L}(P,te,z),te=Yp(P,te,z),te=ja.value=Mc(P,te,z),te=ja.valueEnd=function Bv(P,L,z){let te=-1,ue=-1,ve=-1,je=L,dt=je;for(;je<z;){const Rt=P.charCodeAt(je++);if(59===Rt)return dt;34===Rt||39===Rt?dt=je=wl(P,Rt,je,z):L===je-4&&85===ve&&82===ue&&76===te&&40===Rt?dt=je=wl(P,41,je,z):Rt>32&&(dt=je),ve=ue,ue=te,te=-33&Rt}return dt}(P,te,z),Yp(P,te,z))}function Nv(P){ja.key=0,ja.keyEnd=0,ja.value=0,ja.valueEnd=0,ja.textEnd=P.length}function Mc(P,L,z){for(;L<z&&P.charCodeAt(L)<=32;)L++;return L}function Yp(P,L,z,te){return(L=Mc(P,L,z))<z&&L++,L}function wl(P,L,z,te){let ue=-1,ve=z;for(;ve<te;){const je=P.charCodeAt(ve++);if(je==L&&92!==ue)return ve;ue=92==je&&92===ue?0:je}throw new Error}function jp(P,L,z){return wu(P,L,z,!1),jp}function Gp(P,L){return wu(P,L,null,!0),Gp}function su(P){xu(zp,Wy,P,!1)}function Wy(P,L){for(let z=function Vp(P){return Nv(P),kv(P,Mc(P,0,ja.textEnd))}(L);z>=0;z=kv(L,z))zp(P,Ef(L),Hp(L))}function Wp(P){xu(Da,xl,P,!0)}function xl(P,L){for(let z=function jy(P){return Nv(P),Lv(P,Mc(P,0,ja.textEnd))}(L);z>=0;z=Lv(L,z))Da(P,Ef(L),!0)}function wu(P,L,z,te){const ue=xn(),ve=Hi(),je=Fa(2);ve.firstUpdatePass&&Uv(ve,P,je,te),L!==es&&Oa(ue,je,L)&&Kp(ve,ve.data[ta()],ue,ue[11],P,ue[je+1]=function Jy(P,L){return null==P||("string"==typeof L?P+=L:"object"==typeof P&&(P=g(la(P)))),P}(L,z),te,je)}function xu(P,L,z,te){const ue=Hi(),ve=Fa(2);ue.firstUpdatePass&&Uv(ue,null,ve,te);const je=xn();if(z!==es&&Oa(je,ve,z)){const dt=ue.data[ta()];if(Yv(dt,te)&&!b0(ue,ve)){let Rt=te?dt.classesWithoutHost:dt.stylesWithoutHost;null!==Rt&&(z=p(Rt,z||"")),Pp(ue,dt,je,z,te)}else!function qy(P,L,z,te,ue,ve,je,dt){ue===es&&(ue=wt);let Rt=0,dr=0,Tr=0<ue.length?ue[0]:null,Gr=0<ve.length?ve[0]:null;for(;null!==Tr||null!==Gr;){const tn=Rt<ue.length?ue[Rt+1]:void 0,pn=dr<ve.length?ve[dr+1]:void 0;let $n,kn=null;Tr===Gr?(Rt+=2,dr+=2,tn!==pn&&(kn=Gr,$n=pn)):null===Gr||null!==Tr&&Tr<Gr?(Rt+=2,kn=Tr):(dr+=2,kn=Gr,$n=pn),null!==kn&&Kp(P,L,z,te,kn,$n,je,dt),Tr=Rt<ue.length?ue[Rt]:null,Gr=dr<ve.length?ve[dr]:null}}(ue,dt,je,je[11],je[ve+1],je[ve+1]=function S0(P,L,z){if(null==z||""===z)return wt;const te=[],ue=la(z);if(Array.isArray(ue))for(let ve=0;ve<ue.length;ve++)P(te,ue[ve],!0);else if("object"==typeof ue)for(const ve in ue)ue.hasOwnProperty(ve)&&P(te,ve,ue[ve]);else"string"==typeof ue&&L(te,ue);return te}(P,L,z),te,ve)}}function b0(P,L){return L>=P.expandoStartIndex}function Uv(P,L,z,te){const ue=P.data;if(null===ue[z+1]){const ve=ue[ta()],je=b0(P,z);Yv(ve,te)&&null===L&&!je&&(L=!1),L=function Hv(P,L,z,te){const ue=To(P);let ve=te?L.residualClasses:L.residualStyles;if(null===ue)0===(te?L.classBindings:L.styleBindings)&&(z=Mf(z=Zp(null,P,L,z,te),L.attrs,te),ve=null);else{const je=L.directiveStylingLast;if(-1===je||P[je]!==ue)if(z=Zp(ue,P,L,z,te),null===ve){let Rt=function Zy(P,L,z){const te=z?L.classBindings:L.styleBindings;if(0!==Su(te))return P[eu(te)]}(P,L,te);void 0!==Rt&&Array.isArray(Rt)&&(Rt=Zp(null,P,L,Rt[1],te),Rt=Mf(Rt,L.attrs,te),function zy(P,L,z,te){P[eu(z?L.classBindings:L.styleBindings)]=te}(P,L,te,Rt))}else ve=function Ky(P,L,z){let te;const ue=L.directiveEnd;for(let ve=1+L.directiveStylingLast;ve<ue;ve++)te=Mf(te,P[ve].hostAttrs,z);return Mf(te,L.attrs,z)}(P,L,te)}return void 0!==ve&&(te?L.residualClasses=ve:L.residualStyles=ve),z}(ue,ve,L,te),function Yy(P,L,z,te,ue,ve){let je=ve?L.classBindings:L.styleBindings,dt=eu(je),Rt=Su(je);P[te]=z;let Tr,dr=!1;if(Array.isArray(z)){const Gr=z;Tr=Gr[1],(null===Tr||Xi(Gr,Tr)>0)&&(dr=!0)}else Tr=z;if(ue)if(0!==Rt){const tn=eu(P[dt+1]);P[te+1]=Gh(tn,dt),0!==tn&&(P[tn+1]=Wh(P[tn+1],te)),P[dt+1]=function G_(P,L){return 131071&P|L<<17}(P[dt+1],te)}else P[te+1]=Gh(dt,0),0!==dt&&(P[dt+1]=Wh(P[dt+1],te)),dt=te;else P[te+1]=Gh(Rt,0),0===dt?dt=te:P[Rt+1]=Wh(P[Rt+1],te),Rt=te;dr&&(P[te+1]=H0(P[te+1])),Rv(P,Tr,te,!0),Rv(P,Tr,te,!1),function Ov(P,L,z,te,ue){const ve=ue?P.residualClasses:P.residualStyles;null!=ve&&"string"==typeof L&&Xi(ve,L)>=0&&(z[te+1]=Zc(z[te+1]))}(L,Tr,P,te,ve),je=Gh(dt,Rt),ve?L.classBindings=je:L.styleBindings=je}(ue,ve,L,z,je,te)}}function Zp(P,L,z,te,ue){let ve=null;const je=z.directiveEnd;let dt=z.directiveStylingLast;for(-1===dt?dt=z.directiveStart:dt++;dt<je&&(ve=L[dt],te=Mf(te,ve.hostAttrs,ue),ve!==P);)dt++;return null!==P&&(z.directiveStylingLast=dt),te}function Mf(P,L,z){const te=z?1:2;let ue=-1;if(null!==L)for(let ve=0;ve<L.length;ve++){const je=L[ve];"number"==typeof je?ue=je:ue===te&&(Array.isArray(P)||(P=void 0===P?[]:["",P]),Da(P,je,!!z||L[++ve]))}return void 0===P?null:P}function zp(P,L,z){Da(P,L,la(z))}function Kp(P,L,z,te,ue,ve,je,dt){if(!(3&L.type))return;const Rt=P.data,dr=Rt[dt+1];T0(function dm(P){return 1==(1&P)}(dr)?Vv(Rt,L,z,ue,Su(dr),je):void 0)||(T0(ve)||function cm(P){return 2==(2&P)}(dr)&&(ve=Vv(Rt,null,z,ue,dt,je)),function qf(P,L,z,te,ue){const ve=Fi(P);if(L)ue?ve?P.addClass(z,te):z.classList.add(te):ve?P.removeClass(z,te):z.classList.remove(te);else{let je=-1===te.indexOf("-")?void 0:Ht.DashCase;if(null==ue)ve?P.removeStyle(z,te,je):z.style.removeProperty(te);else{const dt="string"==typeof ue&&ue.endsWith("!important");dt&&(ue=ue.slice(0,-10),je|=Ht.Important),ve?P.setStyle(z,te,ue,je):z.style.setProperty(te,ue,dt?"important":"")}}}(te,je,Zs(ta(),z),ue,ve))}function Vv(P,L,z,te,ue,ve){const je=null===L;let dt;for(;ue>0;){const Rt=P[ue],dr=Array.isArray(Rt),Tr=dr?Rt[1]:Rt,Gr=null===Tr;let tn=z[ue+1];tn===es&&(tn=Gr?wt:void 0);let pn=Gr?uu(tn,te):Tr===te?tn:void 0;if(dr&&!T0(pn)&&(pn=uu(Rt,te)),T0(pn)&&(dt=pn,je))return dt;const kn=P[ue+1];ue=je?eu(kn):Su(kn)}if(null!==L){let Rt=ve?L.residualClasses:L.residualStyles;null!=Rt&&(dt=uu(Rt,te))}return dt}function T0(P){return void 0!==P}function Yv(P,L){return 0!=(P.flags&(L?16:32))}function jv(P,L=""){const z=xn(),te=Hi(),ue=P+20,ve=te.firstCreatePass?Id(te,ue,1,L,null):te.data[ue],je=z[ue]=Ku(z[11],L);qu(te,z,je,ve),wr(ve,!1)}function qp(P){return Ch("",P,""),qp}function Ch(P,L,z){const te=xn(),ue=lh(te,P,L,z);return ue!==es&&sc(te,ta(),ue),Ch}function E0(P,L,z,te,ue){const ve=xn(),je=Od(ve,P,L,z,te,ue);return je!==es&&sc(ve,ta(),je),E0}function M0(P,L,z,te,ue,ve,je){const dt=xn(),Rt=function $c(P,L,z,te,ue,ve,je,dt){const dr=oh(P,ao(),z,ue,je);return Fa(3),dr?L+V(z)+te+V(ue)+ve+V(je)+dt:es}(dt,P,L,z,te,ue,ve,je);return Rt!==es&&sc(dt,ta(),Rt),M0}function Jp(P,L,z,te,ue,ve,je,dt,Rt){const dr=xn(),Tr=function bf(P,L,z,te,ue,ve,je,dt,Rt,dr){const Gr=ru(P,ao(),z,ue,je,Rt);return Fa(4),Gr?L+V(z)+te+V(ue)+ve+V(je)+dt+V(Rt)+dr:es}(dr,P,L,z,te,ue,ve,je,dt,Rt);return Tr!==es&&sc(dr,ta(),Tr),Jp}function Qp(P,L,z){xu(Da,xl,lh(xn(),P,L,z),!0)}function eg(P,L,z){const te=xn();return Oa(te,Ca(),L)&&Ml(Hi(),Ps(),te,P,L,te[11],z,!0),eg}function Sh(P,L,z){const te=xn();if(Oa(te,Ca(),L)){const ve=Hi(),je=Ps();Ml(ve,je,te,P,L,Um(To(ve.data),je,te),z,!0)}return Sh}const Vd=void 0;var a2=["en",[["a","p"],["AM","PM"],Vd],[["AM","PM"],Vd,Vd],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Vd,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Vd,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Vd,"{1} 'at' {0}",Vd],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function s2(P){const z=Math.floor(Math.abs(P)),te=P.toString().replace(/^[^.]*\.?/,"").length;return 1===z&&0===te?1:5}];let wf={};function na(P){const L=function vr(P){return P.toLowerCase().replace(/_/g,"-")}(P);let z=e1(L);if(z)return z;const te=L.split("-")[0];if(z=e1(te),z)return z;if("en"===te)return a2;throw new Error(`Missing locale data for the locale "${P}".`)}function Xv(P){return na(P)[ni.PluralCase]}function e1(P){return P in wf||(wf[P]=Re.ng&&Re.ng.common&&Re.ng.common.locales&&Re.ng.common.locales[P]),wf[P]}var ni=(()=>((ni=ni||{})[ni.LocaleId=0]="LocaleId",ni[ni.DayPeriodsFormat=1]="DayPeriodsFormat",ni[ni.DayPeriodsStandalone=2]="DayPeriodsStandalone",ni[ni.DaysFormat=3]="DaysFormat",ni[ni.DaysStandalone=4]="DaysStandalone",ni[ni.MonthsFormat=5]="MonthsFormat",ni[ni.MonthsStandalone=6]="MonthsStandalone",ni[ni.Eras=7]="Eras",ni[ni.FirstDayOfWeek=8]="FirstDayOfWeek",ni[ni.WeekendRange=9]="WeekendRange",ni[ni.DateFormat=10]="DateFormat",ni[ni.TimeFormat=11]="TimeFormat",ni[ni.DateTimeFormat=12]="DateTimeFormat",ni[ni.NumberSymbols=13]="NumberSymbols",ni[ni.NumberFormats=14]="NumberFormats",ni[ni.CurrencyCode=15]="CurrencyCode",ni[ni.CurrencySymbol=16]="CurrencySymbol",ni[ni.CurrencyName=17]="CurrencyName",ni[ni.Currencies=18]="Currencies",ni[ni.Directionality=19]="Directionality",ni[ni.PluralCase=20]="PluralCase",ni[ni.ExtraData=21]="ExtraData",ni))();const Yd="en-US",jd={marker:"element"},Ic={marker:"ICU"};var Ra=(()=>((Ra=Ra||{})[Ra.SHIFT=2]="SHIFT",Ra[Ra.APPEND_EAGERLY=1]="APPEND_EAGERLY",Ra[Ra.COMMENT=2]="COMMENT",Ra))();let o2=Yd;function rg(P,L,z){const te=L.insertBeforeIndex,ue=Array.isArray(te)?te[0]:te;return null===ue?fd(P,0,z):rs(z[ue])}function rd(P,L,z,te,ue){const ve=L.insertBeforeIndex;if(Array.isArray(ve)){let je=te,dt=null;if(3&L.type||(dt=je,je=ue),null!==je&&0==(2&L.flags))for(let Rt=1;Rt<ve.length;Rt++)zl(P,je,z[ve[Rt]],dt,!1)}}function t1(P,L){if(P.push(L),P.length>1)for(let z=P.length-2;z>=0;z--){const te=P[z];r1(te)||n1(te,L)&&null===c2(te)&&d2(te,L.index)}}function r1(P){return!(64&P.type)}function n1(P,L){return r1(L)||P.index>L.index}function c2(P){const L=P.insertBeforeIndex;return Array.isArray(L)?L[0]:L}function d2(P,L){const z=P.insertBeforeIndex;Array.isArray(z)?z[0]=L:(nf(rg,rd),P.insertBeforeIndex=L)}function h2(P,L,z){const te=El(P,z,64,null,null);return t1(L,te),te}function ig(){const P=[];let z,te,L=-1;function ve(dt,Rt){L=0;const dr=function w0(P,L){const z=L[P.currentCaseLViewIndex];return null===z?z:z<0?~z:z}(dt,Rt);te=null!==dr?dt.remove[dr]:wt}function je(){if(L<te.length){const dt=te[L++];return dt>0?z[dt]:(P.push(L,te),ve(z[1].data[~dt],z),je())}return 0===P.length?null:(te=P.pop(),L=P.pop(),je())}return function ue(dt,Rt){for(z=Rt;P.length;)P.pop();return ve(dt.value,Rt),je}}const x0=/\ufffd(\d+):?\d*\ufffd/gi,b2=/\ufffd(\d+)\ufffd/,h1=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,La=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,S2=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,T2=/\uE500/g;function p1(P,L,z,te,ue,ve,je){const dt=Ad(P,te,1,null);let Rt=dt<<Ra.SHIFT,dr=Qt();L===dr&&(dr=null),null===dr&&(Rt|=Ra.APPEND_EAGERLY),je&&(Rt|=Ra.COMMENT,function Wu(P){void 0===_s&&(_s=P())}(ig)),ue.push(Rt,null===ve?"":ve);const Tr=El(P,dt,je?32:1,null===ve?"":ve,null);t1(z,Tr);const Gr=Tr.index;return wr(Tr,!1),null!==dr&&L!==dr&&function f2(P,L){let z=P.insertBeforeIndex;null===z?(nf(rg,rd),z=P.insertBeforeIndex=[null,L]):(function B(P,L,z){P!=L&&W(z,P,L,"==")}(Array.isArray(z),!0,"Expecting array here"),z.push(L))}(dr,Gr),Tr}function w2(P,L,z,te,ue,ve,je){const dt=je.match(x0),Rt=p1(P,L,z,ve,te,dt?null:je,!1);dt&&Mh(ue,je,Rt.index,null,0,null)}function Mh(P,L,z,te,ue,ve){const je=P.length,dt=je+1;P.push(null,null);const Rt=je+2,dr=L.split(x0);let Tr=0;for(let Gr=0;Gr<dr.length;Gr++){const tn=dr[Gr];if(1&Gr){const pn=ue+parseInt(tn,10);P.push(-1-pn),Tr|=m1(pn)}else""!==tn&&P.push(tn)}return P.push(z<<2|(te?1:0)),te&&P.push(te,ve),P[je]=Tr,P[dt]=P.length-Rt,Tr}function m1(P){return 1<<Math.min(P,31)}function v1(P){let L,ve,z="",te=0,ue=!1;for(;null!==(L=La.exec(P));)ue?L[0]===`\ufffd/*${ve}\ufffd`&&(te=L.index,ue=!1):(z+=P.substring(te,L.index+L[0].length),ve=L[1],ue=!0);return z+=P.substr(te),z}function A2(P,L,z,te,ue,ve){let je=0;const dt={type:ue.type,currentCaseLViewIndex:Ad(P,L,1,null),anchorIdx:ve,cases:[],create:[],remove:[],update:[]};(function O2(P,L,z){P.push(m1(L.mainBinding),2,-1-L.mainBinding,z<<2|2)})(z,ue,ve),function s1(P,L,z){const te=P.data[L];null===te?P.data[L]=z:te.value=z}(P,ve,dt);const Rt=ue.values;for(let dr=0;dr<Rt.length;dr++){const Tr=Rt[dr],Gr=[];for(let tn=0;tn<Tr.length;tn++){const pn=Tr[tn];if("string"!=typeof pn){const kn=Gr.push(pn)-1;Tr[tn]=`\x3c!--\ufffd${kn}\ufffd--\x3e`}}je=D2(P,dt,L,z,te,ue.cases[dr],Tr.join(""),Gr)|je}je&&function R2(P,L,z){P.push(L,1,z<<2|3)}(z,je,ve)}function Pi(P){const L=[],z=[];let te=1,ue=0;const ve=If(P=P.replace(h1,function(je,dt,Rt){return te="select"===Rt?0:1,ue=parseInt(dt.substr(1),10),""}));for(let je=0;je<ve.length;){let dt=ve[je++].trim();1===te&&(dt=dt.replace(/\s*(?:=)?(\w+)\s*/,"$1")),dt.length&&L.push(dt);const Rt=If(ve[je++]);L.length>z.length&&z.push(Rt)}return{type:te,mainBinding:ue,cases:L,values:z}}function If(P){if(!P)return[];let L=0;const z=[],te=[],ue=/[{}]/g;let ve;for(ue.lastIndex=0;ve=ue.exec(P);){const dt=ve.index;if("}"==ve[0]){if(z.pop(),0==z.length){const Rt=P.substring(L,dt);h1.test(Rt)?te.push(Pi(Rt)):te.push(Rt),L=dt+1}}else{if(0==z.length){const Rt=P.substring(L,dt);te.push(Rt),L=dt+1}z.push("{")}}const je=P.substring(L);return te.push(je),te}function D2(P,L,z,te,ue,ve,je,dt){const Rt=[],dr=[],Tr=[];L.cases.push(ve),L.create.push(Rt),L.remove.push(dr),L.update.push(Tr);const tn=af(Oi()).getInertBodyElement(je),pn=Co(tn)||tn;return pn?sg(P,L,z,te,Rt,dr,Tr,pn,ue,dt,0):0}function sg(P,L,z,te,ue,ve,je,dt,Rt,dr,Tr){let Gr=0,tn=dt.firstChild;for(;tn;){const pn=Ad(P,z,1,null);switch(tn.nodeType){case Node.ELEMENT_NODE:const kn=tn,$n=kn.tagName.toLowerCase();if(Le.hasOwnProperty($n)){ag(ue,jd,$n,Rt,pn),P.data[pn]=$n;const Ii=kn.attributes;for(let Es=0;Es<Ii.length;Es++){const Gs=Ii.item(Es),Dl=Gs.name.toLowerCase();Gs.value.match(x0)?Ir.hasOwnProperty(Dl)&&Mh(je,Gs.value,pn,Gs.name,0,ce[Dl]?Ya:pe[Dl]?Xu:null):L2(ue,pn,Gs)}Gr=sg(P,L,z,te,ue,ve,je,tn,pn,dr,Tr+1)|Gr,wh(ve,pn,Tr)}break;case Node.TEXT_NODE:const ti=tn.textContent||"",gi=ti.match(x0);ag(ue,null,gi?"":ti,Rt,pn),wh(ve,pn,Tr),gi&&(Gr=Mh(je,ti,pn,null,0,null)|Gr);break;case Node.COMMENT_NODE:const Bn=b2.exec(tn.textContent||"");if(Bn){const Es=dr[parseInt(Bn[1],10)];ag(ue,Ic,"",Rt,pn),A2(P,z,te,Rt,Es,pn),P2(ve,pn,Tr)}}tn=tn.nextSibling}return Gr}function wh(P,L,z){0===z&&P.push(L)}function P2(P,L,z){0===z&&(P.push(~L),P.push(L))}function ag(P,L,z,te,ue){null!==L&&P.push(L),P.push(z,ue,function p2(P,L,z){return P|L<<17|z<<1}(0,te,ue))}function L2(P,L,z){P.push(L<<1|1,z.name,z.value)}function _1(P,L,z=-1){const te=Hi(),ue=xn(),ve=20+P,je=Ma(te.consts,L),dt=Qt();te.firstCreatePass&&function M2(P,L,z,te,ue,ve){const je=Qt(),dt=[],Rt=[],dr=[[]];ue=function I2(P,L){if(function x2(P){return-1===P}(L))return v1(P);{const z=P.indexOf(`:${L}\ufffd`)+2+L.toString().length,te=P.search(new RegExp(`\ufffd\\/\\*\\d+:${L}\ufffd`));return v1(P.substring(z,te))}}(ue,ve);const Tr=function E2(P){return P.replace(T2," ")}(ue).split(S2);for(let Gr=0;Gr<Tr.length;Gr++){let tn=Tr[Gr];if(0==(1&Gr)){const pn=If(tn);for(let kn=0;kn<pn.length;kn++){let $n=pn[kn];if(0==(1&kn)){const ti=$n;""!==ti&&w2(P,je,dr[0],dt,Rt,z,ti)}else{const ti=$n;if("object"!=typeof ti)throw new Error(`Unable to parse ICU expression in "${ue}" message.`);A2(P,z,Rt,L,ti,p1(P,je,dr[0],z,dt,"",!0).index)}}}else{const pn=47===tn.charCodeAt(0),$n=(tn.charCodeAt(pn?1:0),20+Number.parseInt(tn.substring(pn?2:1)));if(pn)dr.shift(),wr(Qt(),!1);else{const ti=h2(P,dr[0],$n);dr.unshift([]),wr(ti,!0)}}}P.data[te]={create:dt,update:Rt}}(te,null===dt?0:dt.index,ue,ve,je,z);const Rt=te.data[ve],Tr=Oc(te,dt===ue[6]?null:dt,ue);(function v2(P,L,z,te){const ue=P[11];for(let ve=0;ve<L.length;ve++){const je=L[ve++],dt=L[ve],Rt=(je&Ra.COMMENT)===Ra.COMMENT,dr=(je&Ra.APPEND_EAGERLY)===Ra.APPEND_EAGERLY,Tr=je>>>Ra.SHIFT;let Gr=P[Tr];null===Gr&&(Gr=P[Tr]=Rt?ue.createComment(dt):Ku(ue,dt)),dr&&null!==z&&zl(ue,z,Gr,te,!1)}})(ue,Rt.create,Tr,dt&&8&dt.type?ue[dt.index]:null),So(!0)}function C1(P,L,z){_1(P,L,z),function y1(){So(!1)}()}function ug(P,L,z,te,ue){if(P=N(P),Array.isArray(P))for(let ve=0;ve<P.length;ve++)ug(P[ve],L,z,te,ue);else{const ve=Hi(),je=xn();let dt=qn(P)?P:N(P.provide),Rt=Wm(P);const dr=rr(),Tr=1048575&dr.providerIndexes,Gr=dr.directiveStart,tn=dr.providerIndexes>>20;if(qn(P)||!P.multi){const pn=new ar(Rt,ue,Fd),kn=dg(dt,L,ue?Tr:Tr+tn,Gr);-1===kn?(Pr(ut(dr,je),ve,dt),cg(ve,P,L.length),L.push(dt),dr.directiveStart++,dr.directiveEnd++,ue&&(dr.providerIndexes+=1048576),z.push(pn),je.push(pn)):(z[kn]=pn,je[kn]=pn)}else{const pn=dg(dt,L,Tr+tn,Gr),kn=dg(dt,L,Tr,Tr+tn),$n=pn>=0&&z[pn],ti=kn>=0&&z[kn];if(ue&&!ti||!ue&&!$n){Pr(ut(dr,je),ve,dt);const gi=function K2(P,L,z,te,ue){const ve=new ar(P,z,Fd);return ve.multi=[],ve.index=L,ve.componentProviders=0,S1(ve,ue,te&&!z),ve}(ue?z2:Z2,z.length,ue,te,Rt);!ue&&ti&&(z[kn].providerFactory=gi),cg(ve,P,L.length,0),L.push(dt),dr.directiveStart++,dr.directiveEnd++,ue&&(dr.providerIndexes+=1048576),z.push(gi),je.push(gi)}else cg(ve,P,pn>-1?pn:kn,S1(z[ue?kn:pn],Rt,!ue&&te));!ue&&te&&ti&&z[kn].componentProviders++}}}function cg(P,L,z,te){const ue=qn(L),ve=function xs(P){return!!P.useClass}(L);if(ue||ve){const Rt=(ve?N(L.useClass):L).prototype.ngOnDestroy;if(Rt){const dr=P.destroyHooks||(P.destroyHooks=[]);if(!ue&&L.multi){const Tr=dr.indexOf(z);-1===Tr?dr.push(z,[te,Rt]):dr[Tr+1].push(te,Rt)}else dr.push(z,Rt)}}}function S1(P,L,z){return z&&P.componentProviders++,P.multi.push(L)-1}function dg(P,L,z,te){for(let ue=z;ue<te;ue++)if(L[ue]===P)return ue;return-1}function Z2(P,L,z,te){return fg(this.multi,[])}function z2(P,L,z,te){const ue=this.multi;let ve;if(this.providerFactory){const je=this.providerFactory.componentProviders,dt=Wi(z,z[1],this.providerFactory.index,te);ve=dt.slice(0,je),fg(ue,ve);for(let Rt=je;Rt<dt.length;Rt++)ve.push(dt[Rt])}else ve=[],fg(ue,ve);return ve}function fg(P,L){for(let z=0;z<P.length;z++)L.push((0,P[z])());return L}function T1(P,L=[]){return z=>{z.providersResolver=(te,ue)=>function W2(P,L,z){const te=Hi();if(te.firstCreatePass){const ue=Zr(P);ug(z,te.data,te.blueprint,ue,!0),ug(L,te.data,te.blueprint,ue,!1)}}(te,ue?ue(P):P,L)}}class E1{}class $2{resolveComponentFactory(L){throw function J2(P){const L=Error(`No component factory found for ${g(P)}. Did you add it to @NgModule.entryComponents?`);return L.ngComponent=P,L}(L)}}let I0=(()=>{class P{}return P.NULL=new $2,P})();function Q2(){return Af(rr(),xn())}function Af(P,L){return new xh(ps(P,L))}let xh=(()=>{class P{constructor(z){this.nativeElement=z}}return P.__NG_ELEMENT_ID__=Q2,P})();function X2(P){return P instanceof xh?P.nativeElement:P}class M1{}let eC=(()=>{class P{}return P.__NG_ELEMENT_ID__=()=>function tC(){const P=xn(),z=ks(rr().index,P);return function Df(P){return P[11]}(ht(z)?z:P)}(),P})(),rC=(()=>{class P{}return P.\u0275prov=Qe({token:P,providedIn:"root",factory:()=>null}),P})();class w1{constructor(L){this.full=L,this.major=L.split(".")[0],this.minor=L.split(".")[1],this.patch=L.split(".").slice(2).join(".")}}const x1=new w1("13.4.0"),pg={};function A0(P,L,z,te,ue=!1){for(;null!==z;){const ve=L[z.index];if(null!==ve&&te.push(rs(ve)),Vt(ve))for(let dt=10;dt<ve.length;dt++){const Rt=ve[dt],dr=Rt[1].firstChild;null!==dr&&A0(Rt[1],Rt,dr,te)}const je=z.type;if(8&je)A0(P,L,z.child,te);else if(32&je){const dt=yo(z,L);let Rt;for(;Rt=dt();)te.push(Rt)}else if(16&je){const dt=Kf(L,z);if(Array.isArray(dt))te.push(...dt);else{const Rt=Gl(L[16]);A0(Rt[1],Rt,dt,te,!0)}}z=ue?z.projectionNext:z.next}return te}class Ih{constructor(L,z){this._lView=L,this._cdRefInjectingView=z,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const L=this._lView,z=L[1];return A0(z,L,z.firstChild,[])}get context(){return this._lView[8]}set context(L){this._lView[8]=L}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const L=this._lView[3];if(Vt(L)){const z=L[8],te=z?z.indexOf(this):-1;te>-1&&(Cl(L,te),ml(z,te))}this._attachedToViewContainer=!1}ef(this._lView[1],this._lView)}onDestroy(L){Im(this._lView[1],this._lView,null,L)}markForCheck(){np(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function ic(P,L,z){const te=L[10];te.begin&&te.begin();try{vf(P,L,P.template,z)}catch(ue){throw ap(L,ue),ue}finally{te.end&&te.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new H(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Pc(P,L){Ju(P,L,L[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(L){if(this._attachedToViewContainer)throw new H(902,"");this._appRef=L}}class nC extends Ih{constructor(L){super(L),this._view=L}detectChanges(){fo(this._view)}checkNoChanges(){}get context(){return null}}class I1 extends I0{constructor(L){super(),this.ngModule=L}resolveComponentFactory(L){const z=vt(L);return new gg(z,this.ngModule)}}function A1(P){const L=[];for(let z in P)P.hasOwnProperty(z)&&L.push({propName:P[z],templateName:z});return L}class gg extends E1{constructor(L,z){super(),this.componentDef=L,this.ngModule=z,this.componentType=L.type,this.selector=function U0(P){return P.map(j_).join(",")}(L.selectors),this.ngContentSelectors=L.ngContentSelectors?L.ngContentSelectors:[],this.isBoundToModule=!!z}get inputs(){return A1(this.componentDef.inputs)}get outputs(){return A1(this.componentDef.outputs)}create(L,z,te,ue){const ve=(ue=ue||this.ngModule)?function sC(P,L){return{get:(z,te,ue)=>{const ve=P.get(z,pg,ue);return ve!==pg||te===pg?ve:L.get(z,te,ue)}}}(L,ue.injector):L,je=ve.get(M1,Os),dt=ve.get(rC,null),Rt=je.createRenderer(null,this.componentDef),dr=this.componentDef.selectors[0][0]||"div",Tr=te?function xm(P,L,z){if(Fi(P))return P.selectRootElement(L,z===Ne.ShadowDom);let te="string"==typeof L?P.querySelector(L):L;return te.textContent="",te}(Rt,te,this.componentDef.encapsulation):Qd(je.createRenderer(null,this.componentDef),dr,function iC(P){const L=P.toLowerCase();return"svg"===L?"svg":"math"===L?"math":null}(dr)),Gr=this.componentDef.onPush?576:528,tn=function iv(P,L){return{components:[],scheduler:P||Xt,clean:my,playerHandler:L||null,flags:0}}(),pn=$h(0,null,null,1,0,null,null,null,null,null),kn=mf(null,pn,tn,Gr,null,null,je,Rt,dt,ve);let $n,ti;oo(kn);try{const gi=function rv(P,L,z,te,ue,ve){const je=z[1];z[20]=P;const Rt=Id(je,20,2,"#host",null),dr=Rt.mergedAttrs=L.hostAttrs;null!==dr&&(nh(Rt,dr,!0),null!==P&&(as(ue,P,dr),null!==Rt.classes&&gd(ue,P,Rt.classes),null!==Rt.styles&&sf(ue,P,Rt.styles)));const Tr=te.createRenderer(P,L),Gr=mf(z,Mm(L),null,L.onPush?64:16,z[20],Rt,te,Tr,ve||null,null);return je.firstCreatePass&&(Pr(ut(Rt,z),je,L.type),Pm(je,Rt),Rm(Rt,z.length,1)),e0(z,Gr),z[20]=Gr}(Tr,this.componentDef,kn,je,Rt);if(Tr)if(te)as(Rt,Tr,["ng-version",x1.full]);else{const{attrs:Bn,classes:Ii}=function Yh(P){const L=[],z=[];let te=1,ue=2;for(;te<P.length;){let ve=P[te];if("string"==typeof ve)2===ue?""!==ve&&L.push(ve,P[++te]):8===ue&&z.push(ve);else{if(!da(ue))break;ue=ve}te++}return{attrs:L,classes:z}}(this.componentDef.selectors[0]);Bn&&as(Rt,Tr,Bn),Ii&&Ii.length>0&&gd(Rt,Tr,Ii.join(" "))}if(ti=ka(pn,20),void 0!==z){const Bn=ti.projection=[];for(let Ii=0;Ii<this.ngContentSelectors.length;Ii++){const Es=z[Ii];Bn.push(null!=Es?Array.from(Es):null)}}$n=function nv(P,L,z,te,ue){const ve=z[1],je=function sy(P,L,z){const te=rr();P.firstCreatePass&&(z.providersResolver&&z.providersResolver(z),Lm(P,te,L,Ad(P,L,1,null),z));const ue=Wi(L,P,te.directiveStart,te);Ys(ue,L);const ve=ps(te,L);return ve&&Ys(ve,L),ue}(ve,z,L);if(te.components.push(je),P[8]=je,ue&&ue.forEach(Rt=>Rt(je,L)),L.contentQueries){const Rt=rr();L.contentQueries(1,je,Rt.directiveStart)}const dt=rr();return!ve.firstCreatePass||null===L.hostBindings&&null===L.hostAttrs||(wa(dt.index),Dm(z[1],dt,0,dt.directiveStart,dt.directiveEnd,L),ep(L,je)),je}(gi,this.componentDef,kn,tn,[Dy]),rh(pn,kn,null)}finally{mo()}return new oC(this.componentType,$n,Af(ti,kn),kn,ti)}}class oC extends class q2{}{constructor(L,z,te,ue,ve){super(),this.location=te,this._rootLView=ue,this._tNode=ve,this.instance=z,this.hostView=this.changeDetectorRef=new nC(ue),this.componentType=L}get injector(){return new xi(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(L){this.hostView.onDestroy(L)}}class Pf{}class D1{}const Of=new Map;class vg extends Pf{constructor(L,z){super(),this._parent=z,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new I1(this);const te=Sr(L);this._bootstrapComponents=en(te.bootstrap),this._r3Injector=up(L,z,[{provide:Pf,useValue:this},{provide:I0,useValue:this.componentFactoryResolver}],g(L)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(L)}get(L,z=ac.THROW_IF_NOT_FOUND,te=ft.Default){return L===ac||L===Pf||L===r0?this:this._r3Injector.get(L,z,te)}destroy(){const L=this._r3Injector;!L.destroyed&&L.destroy(),this.destroyCbs.forEach(z=>z()),this.destroyCbs=null}onDestroy(L){this.destroyCbs.push(L)}}class Rf extends D1{constructor(L){super(),this.moduleType=L,null!==Sr(L)&&function mg(P){const L=new Set;!function z(te){const ue=Sr(te,!0),ve=ue.id;null!==ve&&(function P1(P,L,z){if(L&&L!==z)throw new Error(`Duplicate module registered for ${P} - ${g(L)} vs ${g(L.name)}`)}(ve,Of.get(ve),te),Of.set(ve,te));const je=en(ue.imports);for(const dt of je)L.has(dt)||(L.add(dt),z(dt))}(P)}(L)}create(L){return new vg(this.moduleType,L)}}function Ga(P,L,z){const te=As()+P,ue=xn();return ue[te]===es?Sc(ue,te,z?L.call(z):L()):ah(ue,te)}function po(P,L,z,te){return k1(xn(),As(),P,L,z,te)}function $a(P,L,z,te,ue){return N1(xn(),As(),P,L,z,te,ue)}function Ah(P,L,z,te,ue,ve){return function F1(P,L,z,te,ue,ve,je,dt){const Rt=L+z;return oh(P,Rt,ue,ve,je)?Sc(P,Rt+3,dt?te.call(dt,ue,ve,je):te(ue,ve,je)):Ph(P,Rt+3)}(xn(),As(),P,L,z,te,ue,ve)}function _g(P,L,z,te,ue,ve,je){return function Lf(P,L,z,te,ue,ve,je,dt,Rt){const dr=L+z;return ru(P,dr,ue,ve,je,dt)?Sc(P,dr+4,Rt?te.call(Rt,ue,ve,je,dt):te(ue,ve,je,dt)):Ph(P,dr+4)}(xn(),As(),P,L,z,te,ue,ve,je)}function Dh(P,L,z,te,ue,ve,je,dt){const Rt=As()+P,dr=xn(),Tr=ru(dr,Rt,z,te,ue,ve);return Oa(dr,Rt+4,je)||Tr?Sc(dr,Rt+5,dt?L.call(dt,z,te,ue,ve,je):L(z,te,ue,ve,je)):ah(dr,Rt+5)}function Ph(P,L){const z=P[L];return z===es?void 0:z}function k1(P,L,z,te,ue,ve){const je=L+z;return Oa(P,je,ue)?Sc(P,je+1,ve?te.call(ve,ue):te(ue)):Ph(P,je+1)}function N1(P,L,z,te,ue,ve,je){const dt=L+z;return Jc(P,dt,ue,ve)?Sc(P,dt+2,je?te.call(je,ue,ve):te(ue,ve)):Ph(P,dt+2)}function U1(P,L){const z=Hi();let te;const ue=P+20;z.firstCreatePass?(te=function dC(P,L){if(L)for(let z=L.length-1;z>=0;z--){const te=L[z];if(P===te.name)return te}}(L,z.pipeRegistry),z.data[ue]=te,te.onDestroy&&(z.destroyHooks||(z.destroyHooks=[])).push(ue,te.onDestroy)):te=z.data[ue];const ve=te.factory||(te.factory=bn(te.type)),je=br(Fd);try{const dt=bi(!1),Rt=ve();return bi(dt),function fv(P,L,z,te){z>=P.data.length&&(P.data[z]=null,P.blueprint[z]=null),L[z]=te}(z,xn(),ue,Rt),Rt}finally{br(je)}}function H1(P,L,z){const te=P+20,ue=xn(),ve=Xs(ue,te);return au(ue,te)?k1(ue,As(),L,ve.transform,z,ve):ve.transform(z)}function V1(P,L,z,te){const ue=P+20,ve=xn(),je=Xs(ve,ue);return au(ve,ue)?N1(ve,As(),L,je.transform,z,te,je):je.transform(z,te)}function au(P,L){return P[1].data[L].pure}function yg(P){return L=>{setTimeout(P,void 0,L)}}const Al=class gC extends t.xQ{constructor(L=!1){super(),this.__isAsync=L}emit(L){super.next(L)}subscribe(L,z,te){let ue=L,ve=z||(()=>null),je=te;if(L&&"object"==typeof L){const Rt=L;ue=Rt.next?.bind(Rt),ve=Rt.error?.bind(Rt),je=Rt.complete?.bind(Rt)}this.__isAsync&&(ve=yg(ve),ue&&(ue=yg(ue)),je&&(je=yg(je)));const dt=super.subscribe({next:ue,error:ve,complete:je});return L instanceof e.w&&L.add(dt),dt}};function mC(){return this._results[ho()]()}class Cg{constructor(L=!1){this._emitDistinctChangesOnly=L,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const z=ho(),te=Cg.prototype;te[z]||(te[z]=mC)}get changes(){return this._changes||(this._changes=new Al)}get(L){return this._results[L]}map(L){return this._results.map(L)}filter(L){return this._results.filter(L)}find(L){return this._results.find(L)}reduce(L,z){return this._results.reduce(L,z)}forEach(L){this._results.forEach(L)}some(L){return this._results.some(L)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(L,z){const te=this;te.dirty=!1;const ue=va(L);(this._changesDetected=!function Ru(P,L,z){if(P.length!==L.length)return!1;for(let te=0;te<P.length;te++){let ue=P[te],ve=L[te];if(z&&(ue=z(ue),ve=z(ve)),ve!==ue)return!1}return!0}(te._results,ue,z))&&(te._results=ue,te.length=ue.length,te.last=ue[this.length-1],te.first=ue[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let Oh=(()=>{class P{}return P.__NG_ELEMENT_ID__=yC,P})();const vC=Oh,_C=class extends vC{constructor(L,z,te){super(),this._declarationLView=L,this._declarationTContainer=z,this.elementRef=te}createEmbeddedView(L){const z=this._declarationTContainer.tViews,te=mf(this._declarationLView,z,L,16,null,z.declTNode,null,null,null,null);te[17]=this._declarationLView[this._declarationTContainer.index];const ve=this._declarationLView[19];return null!==ve&&(te[19]=ve.createEmbeddedView(z)),rh(z,te,L),new Ih(te)}};function yC(){return D0(rr(),xn())}function D0(P,L){return 4&P.type?new _C(L,P,Af(P,L)):null}let P0=(()=>{class P{}return P.__NG_ELEMENT_ID__=Y1,P})();function Y1(){return W1(rr(),xn())}const Rh=P0,j1=class extends Rh{constructor(L,z,te){super(),this._lContainer=L,this._hostTNode=z,this._hostLView=te}get element(){return Af(this._hostTNode,this._hostLView)}get injector(){return new xi(this._hostTNode,this._hostLView)}get parentInjector(){const L=ir(this._hostTNode,this._hostLView);if(aa(L)){const z=ra(L,this._hostLView),te=Rs(L);return new xi(z[1].data[te+8],z)}return new xi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(L){const z=G1(this._lContainer);return null!==z&&z[L]||null}get length(){return this._lContainer.length-10}createEmbeddedView(L,z,te){const ue=L.createEmbeddedView(z||{});return this.insert(ue,te),ue}createComponent(L,z,te,ue,ve){const je=L&&!function os(P){return"function"==typeof P}(L);let dt;if(je)dt=z;else{const Gr=z||{};dt=Gr.index,te=Gr.injector,ue=Gr.projectableNodes,ve=Gr.ngModuleRef}const Rt=je?L:new gg(vt(L)),dr=te||this.parentInjector;if(!ve&&null==Rt.ngModule){const tn=(je?dr:this.parentInjector).get(Pf,null);tn&&(ve=tn)}const Tr=Rt.create(dr,ue,void 0,ve);return this.insert(Tr.hostView,dt),Tr}insert(L,z){const te=L._lView,ue=te[1];if(function Ea(P){return Vt(P[3])}(te)){const Tr=this.indexOf(L);if(-1!==Tr)this.detach(Tr);else{const Gr=te[3],tn=new j1(Gr,Gr[6],Gr[3]);tn.detach(tn.indexOf(L))}}const ve=this._adjustIndex(z),je=this._lContainer;!function Zl(P,L,z,te){const ue=10+te,ve=z.length;te>0&&(z[ue-1][4]=L),te<ve-10?(L[4]=z[ue],Ka(z,10+te,L)):(z.push(L),L[4]=null),L[3]=z;const je=L[17];null!==je&&z!==je&&function cd(P,L){const z=P[9];L[16]!==L[3][3][16]&&(P[2]=!0),null===z?P[9]=[L]:z.push(L)}(je,L);const dt=L[19];null!==dt&&dt.insertView(P),L[2]|=128}(ue,te,je,ve);const dt=kc(ve,je),Rt=te[11],dr=gc(Rt,je[7]);return null!==dr&&function Wf(P,L,z,te,ue,ve){te[0]=ue,te[6]=L,Ju(P,te,z,1,ue,ve)}(ue,je[6],Rt,te,dr,dt),L.attachToViewContainerRef(),Ka(bg(je),ve,L),L}move(L,z){return this.insert(L,z)}indexOf(L){const z=G1(this._lContainer);return null!==z?z.indexOf(L):-1}remove(L){const z=this._adjustIndex(L,-1),te=Cl(this._lContainer,z);te&&(ml(bg(this._lContainer),z),ef(te[1],te))}detach(L){const z=this._adjustIndex(L,-1),te=Cl(this._lContainer,z);return te&&null!=ml(bg(this._lContainer),z)?new Ih(te):null}_adjustIndex(L,z=0){return L??this.length+z}};function G1(P){return P[8]}function bg(P){return P[8]||(P[8]=[])}function W1(P,L){let z;const te=L[P.index];if(Vt(te))z=te;else{let ue;if(8&P.type)ue=rs(te);else{const ve=L[11];ue=ve.createComment("");const je=ps(P,L);zl(ve,gc(ve,je),ue,function rf(P,L){return Fi(P)?P.nextSibling(L):L.nextSibling}(ve,je),!1)}L[P.index]=z=km(te,L,ue,P),e0(L,z)}return new j1(z,P,L)}class Sg{constructor(L){this.queryList=L,this.matches=null}clone(){return new Sg(this.queryList)}setDirty(){this.queryList.setDirty()}}class Tg{constructor(L=[]){this.queries=L}createEmbeddedView(L){const z=L.queries;if(null!==z){const te=null!==L.contentQueries?L.contentQueries[0]:z.length,ue=[];for(let ve=0;ve<te;ve++){const je=z.getByIndex(ve);ue.push(this.queries[je.indexInDeclarationView].clone())}return new Tg(ue)}return null}insertView(L){this.dirtyQueriesWithMatches(L)}detachView(L){this.dirtyQueriesWithMatches(L)}dirtyQueriesWithMatches(L){for(let z=0;z<this.queries.length;z++)null!==e_(L,z).matches&&this.queries[z].setDirty()}}class Z1{constructor(L,z,te=null){this.predicate=L,this.flags=z,this.read=te}}class Eg{constructor(L=[]){this.queries=L}elementStart(L,z){for(let te=0;te<this.queries.length;te++)this.queries[te].elementStart(L,z)}elementEnd(L){for(let z=0;z<this.queries.length;z++)this.queries[z].elementEnd(L)}embeddedTView(L){let z=null;for(let te=0;te<this.length;te++){const ue=null!==z?z.length:0,ve=this.getByIndex(te).embeddedTView(L,ue);ve&&(ve.indexInDeclarationView=te,null!==z?z.push(ve):z=[ve])}return null!==z?new Eg(z):null}template(L,z){for(let te=0;te<this.queries.length;te++)this.queries[te].template(L,z)}getByIndex(L){return this.queries[L]}get length(){return this.queries.length}track(L){this.queries.push(L)}}class Mg{constructor(L,z=-1){this.metadata=L,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=z}elementStart(L,z){this.isApplyingToNode(z)&&this.matchTNode(L,z)}elementEnd(L){this._declarationNodeIndex===L.index&&(this._appliesToNextNode=!1)}template(L,z){this.elementStart(L,z)}embeddedTView(L,z){return this.isApplyingToNode(L)?(this.crossesNgTemplate=!0,this.addMatch(-L.index,z),new Mg(this.metadata)):null}isApplyingToNode(L){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const z=this._declarationNodeIndex;let te=L.parent;for(;null!==te&&8&te.type&&te.index!==z;)te=te.parent;return z===(null!==te?te.index:-1)}return this._appliesToNextNode}matchTNode(L,z){const te=this.metadata.predicate;if(Array.isArray(te))for(let ue=0;ue<te.length;ue++){const ve=te[ue];this.matchTNodeWithReadOption(L,z,SC(z,ve)),this.matchTNodeWithReadOption(L,z,cs(z,L,ve,!1,!1))}else te===Oh?4&z.type&&this.matchTNodeWithReadOption(L,z,-1):this.matchTNodeWithReadOption(L,z,cs(z,L,te,!1,!1))}matchTNodeWithReadOption(L,z,te){if(null!==te){const ue=this.metadata.read;if(null!==ue)if(ue===xh||ue===P0||ue===Oh&&4&z.type)this.addMatch(z.index,-2);else{const ve=cs(z,L,ue,!1,!1);null!==ve&&this.addMatch(z.index,ve)}else this.addMatch(z.index,te)}}addMatch(L,z){null===this.matches?this.matches=[L,z]:this.matches.push(L,z)}}function SC(P,L){const z=P.localNames;if(null!==z)for(let te=0;te<z.length;te+=2)if(z[te]===L)return z[te+1];return null}function EC(P,L,z,te){return-1===z?function TC(P,L){return 11&P.type?Af(P,L):4&P.type?D0(P,L):null}(L,P):-2===z?function MC(P,L,z){return z===xh?Af(L,P):z===Oh?D0(L,P):z===P0?W1(L,P):void 0}(P,L,te):Wi(P,P[1],z,L)}function z1(P,L,z,te){const ue=L[19].queries[te];if(null===ue.matches){const ve=P.data,je=z.matches,dt=[];for(let Rt=0;Rt<je.length;Rt+=2){const dr=je[Rt];dt.push(dr<0?null:EC(L,ve[dr],je[Rt+1],z.metadata.read))}ue.matches=dt}return ue.matches}function wg(P,L,z,te){const ue=P.queries.getByIndex(z),ve=ue.matches;if(null!==ve){const je=z1(P,L,ue,z);for(let dt=0;dt<ve.length;dt+=2){const Rt=ve[dt];if(Rt>0)te.push(je[dt/2]);else{const dr=ve[dt+1],Tr=L[-Rt];for(let Gr=10;Gr<Tr.length;Gr++){const tn=Tr[Gr];tn[17]===tn[3]&&wg(tn[1],tn,dr,te)}if(null!==Tr[9]){const Gr=Tr[9];for(let tn=0;tn<Gr.length;tn++){const pn=Gr[tn];wg(pn[1],pn,dr,te)}}}}}return te}function K1(P){const L=xn(),z=Hi(),te=Zo();to(te+1);const ue=e_(z,te);if(P.dirty&&ia(L)===(2==(2&ue.metadata.flags))){if(null===ue.matches)P.reset([]);else{const ve=ue.crossesNgTemplate?wg(z,L,te,[]):z1(z,L,ue,te);P.reset(ve,X2),P.notifyOnChanges()}return!0}return!1}function q1(P,L,z){const te=Hi();te.firstCreatePass&&(X1(te,new Z1(P,L,z),-1),2==(2&L)&&(te.staticViewQueries=!0)),Q1(te,xn(),L)}function J1(P,L,z,te){const ue=Hi();if(ue.firstCreatePass){const ve=rr();X1(ue,new Z1(L,z,te),ve.index),function xC(P,L){const z=P.contentQueries||(P.contentQueries=[]);L!==(z.length?z[z.length-1]:-1)&&z.push(P.queries.length-1,L)}(ue,P),2==(2&z)&&(ue.staticContentQueries=!0)}Q1(ue,xn(),z)}function $1(){return function wC(P,L){return P[19].queries[L].queryList}(xn(),Zo())}function Q1(P,L,z){const te=new Cg(4==(4&z));Im(P,L,te,te.destroy),null===L[19]&&(L[19]=new Tg),L[19].queries.push(new Sg(te))}function X1(P,L,z){null===P.queries&&(P.queries=new Eg),P.queries.track(new Mg(L,z))}function e_(P,L){return P.queries.getByIndex(L)}function kf(P,L){return D0(P,L)}const g_=Hr("Input",P=>({bindingPropertyName:P})),WC=Hr("Output",P=>({bindingPropertyName:P})),ZC=Hr("HostBinding",P=>({hostPropertyName:P})),zC=Hr("HostListener",(P,L)=>({eventName:P,args:L}));function Iu(...P){}const m_=new Hs("Application Initializer");let L0=(()=>{class P{constructor(z){this.appInits=z,this.resolve=Iu,this.reject=Iu,this.initialized=!1,this.done=!1,this.donePromise=new Promise((te,ue)=>{this.resolve=te,this.reject=ue})}runInitializers(){if(this.initialized)return;const z=[],te=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let ue=0;ue<this.appInits.length;ue++){const ve=this.appInits[ue]();if(Lp(ve))z.push(ve);else if(v0(ve)){const je=new Promise((dt,Rt)=>{ve.subscribe({complete:dt,error:Rt})});z.push(je)}}Promise.all(z).then(()=>{te()}).catch(ue=>{this.reject(ue)}),0===z.length&&te(),this.initialized=!0}}return P.\u0275fac=function(z){return new(z||P)(_a(m_,8))},P.\u0275prov=Qe({token:P,factory:P.\u0275fac,providedIn:"root"}),P})();const v_=new Hs("AppId",{providedIn:"root",factory:function __(){return`${kg()}${kg()}${kg()}`}});function kg(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const y_=new Hs("Platform Initializer"),KC=new Hs("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),C_=new Hs("appBootstrapListener");let qC=(()=>{class P{log(z){console.log(z)}warn(z){console.warn(z)}}return P.\u0275fac=function(z){return new(z||P)},P.\u0275prov=Qe({token:P,factory:P.\u0275fac,providedIn:"platform"}),P})();const Ng=new Hs("LocaleId",{providedIn:"root",factory:()=>rl(Ng,ft.Optional|ft.SkipSelf)||function JC(){return typeof $localize<"u"&&$localize.locale||Yd}()}),b_=new Hs("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class $C{constructor(L,z){this.ngModuleFactory=L,this.componentFactories=z}}let QC=(()=>{class P{compileModuleSync(z){return new Rf(z)}compileModuleAsync(z){return Promise.resolve(this.compileModuleSync(z))}compileModuleAndAllComponentsSync(z){const te=this.compileModuleSync(z),ve=en(Sr(z).declarations).reduce((je,dt)=>{const Rt=vt(dt);return Rt&&je.push(new gg(Rt)),je},[]);return new $C(te,ve)}compileModuleAndAllComponentsAsync(z){return Promise.resolve(this.compileModuleAndAllComponentsSync(z))}clearCache(){}clearCacheFor(z){}getModuleId(z){}}return P.\u0275fac=function(z){return new(z||P)},P.\u0275prov=Qe({token:P,factory:P.\u0275fac,providedIn:"root"}),P})();const eb=(()=>Promise.resolve(0))();function Fg(P){typeof Zone>"u"?eb.then(()=>{P&&P.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",P)}class Au{constructor({enableLongStackTrace:L=!1,shouldCoalesceEventChangeDetection:z=!1,shouldCoalesceRunChangeDetection:te=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Al(!1),this.onMicrotaskEmpty=new Al(!1),this.onStable=new Al(!1),this.onError=new Al(!1),typeof Zone>"u")throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const ue=this;ue._nesting=0,ue._outer=ue._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(ue._inner=ue._inner.fork(new Zone.TaskTrackingZoneSpec)),L&&Zone.longStackTraceZoneSpec&&(ue._inner=ue._inner.fork(Zone.longStackTraceZoneSpec)),ue.shouldCoalesceEventChangeDetection=!te&&z,ue.shouldCoalesceRunChangeDetection=te,ue.lastRequestAnimationFrameId=-1,ue.nativeRequestAnimationFrame=function tb(){let P=Re.requestAnimationFrame,L=Re.cancelAnimationFrame;if(typeof Zone<"u"&&P&&L){const z=P[Zone.__symbol__("OriginalDelegate")];z&&(P=z);const te=L[Zone.__symbol__("OriginalDelegate")];te&&(L=te)}return{nativeRequestAnimationFrame:P,nativeCancelAnimationFrame:L}}().nativeRequestAnimationFrame,function ib(P){const L=()=>{!function nb(P){P.isCheckStableRunning||-1!==P.lastRequestAnimationFrameId||(P.lastRequestAnimationFrameId=P.nativeRequestAnimationFrame.call(Re,()=>{P.fakeTopEventTask||(P.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{P.lastRequestAnimationFrameId=-1,Ug(P),P.isCheckStableRunning=!0,Bg(P),P.isCheckStableRunning=!1},void 0,()=>{},()=>{})),P.fakeTopEventTask.invoke()}),Ug(P))}(P)};P._inner=P._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(z,te,ue,ve,je,dt)=>{try{return S_(P),z.invokeTask(ue,ve,je,dt)}finally{(P.shouldCoalesceEventChangeDetection&&"eventTask"===ve.type||P.shouldCoalesceRunChangeDetection)&&L(),T_(P)}},onInvoke:(z,te,ue,ve,je,dt,Rt)=>{try{return S_(P),z.invoke(ue,ve,je,dt,Rt)}finally{P.shouldCoalesceRunChangeDetection&&L(),T_(P)}},onHasTask:(z,te,ue,ve)=>{z.hasTask(ue,ve),te===ue&&("microTask"==ve.change?(P._hasPendingMicrotasks=ve.microTask,Ug(P),Bg(P)):"macroTask"==ve.change&&(P.hasPendingMacrotasks=ve.macroTask))},onHandleError:(z,te,ue,ve)=>(z.handleError(ue,ve),P.runOutsideAngular(()=>P.onError.emit(ve)),!1)})}(ue)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Au.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Au.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(L,z,te){return this._inner.run(L,z,te)}runTask(L,z,te,ue){const ve=this._inner,je=ve.scheduleEventTask("NgZoneEvent: "+ue,L,rb,Iu,Iu);try{return ve.runTask(je,z,te)}finally{ve.cancelTask(je)}}runGuarded(L,z,te){return this._inner.runGuarded(L,z,te)}runOutsideAngular(L){return this._outer.run(L)}}const rb={};function Bg(P){if(0==P._nesting&&!P.hasPendingMicrotasks&&!P.isStable)try{P._nesting++,P.onMicrotaskEmpty.emit(null)}finally{if(P._nesting--,!P.hasPendingMicrotasks)try{P.runOutsideAngular(()=>P.onStable.emit(null))}finally{P.isStable=!0}}}function Ug(P){P.hasPendingMicrotasks=!!(P._hasPendingMicrotasks||(P.shouldCoalesceEventChangeDetection||P.shouldCoalesceRunChangeDetection)&&-1!==P.lastRequestAnimationFrameId)}function S_(P){P._nesting++,P.isStable&&(P.isStable=!1,P.onUnstable.emit(null))}function T_(P){P._nesting--,Bg(P)}class sb{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Al,this.onMicrotaskEmpty=new Al,this.onStable=new Al,this.onError=new Al}run(L,z,te){return L.apply(z,te)}runGuarded(L,z,te){return L.apply(z,te)}runOutsideAngular(L){return L()}runTask(L,z,te,ue){return L.apply(z,te)}}let E_=(()=>{class P{constructor(z){this._ngZone=z,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),z.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Au.assertNotInAngularZone(),Fg(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Fg(()=>{for(;0!==this._callbacks.length;){let z=this._callbacks.pop();clearTimeout(z.timeoutId),z.doneCb(this._didWork)}this._didWork=!1});else{let z=this.getPendingTasks();this._callbacks=this._callbacks.filter(te=>!te.updateCb||!te.updateCb(z)||(clearTimeout(te.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(z=>({source:z.source,creationLocation:z.creationLocation,data:z.data})):[]}addCallback(z,te,ue){let ve=-1;te&&te>0&&(ve=setTimeout(()=>{this._callbacks=this._callbacks.filter(je=>je.timeoutId!==ve),z(this._didWork,this.getPendingTasks())},te)),this._callbacks.push({doneCb:z,timeoutId:ve,updateCb:ue})}whenStable(z,te,ue){if(ue&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(z,te,ue),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(z,te,ue){return[]}}return P.\u0275fac=function(z){return new(z||P)(_a(Au))},P.\u0275prov=Qe({token:P,factory:P.\u0275fac}),P})(),Hg=(()=>{class P{constructor(){this._applications=new Map,Vg.addToWindow(this)}registerApplication(z,te){this._applications.set(z,te)}unregisterApplication(z){this._applications.delete(z)}unregisterAllApplications(){this._applications.clear()}getTestability(z){return this._applications.get(z)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(z,te=!0){return Vg.findTestabilityInTree(this,z,te)}}return P.\u0275fac=function(z){return new(z||P)},P.\u0275prov=Qe({token:P,factory:P.\u0275fac,providedIn:"platform"}),P})();class ab{addToWindow(L){}findTestabilityInTree(L,z,te){return null}}function lb(P){Vg=P}let Vg=new ab,kh=null;const M_=new Hs("AllowMultipleToken"),w_=new Hs("PlatformOnDestroy");class fb{constructor(L,z){this.name=L,this.token=z}}function x_(P,L,z=[]){const te=`Platform: ${L}`,ue=new Hs(te);return(ve=[])=>{let je=Yg();if(!je||je.injector.get(M_,!1)){const dt=[...z,...ve,{provide:ue,useValue:!0}];P?P(dt):function hb(P){if(kh&&!kh.get(M_,!1))throw new H(400,"");kh=P;const L=P.get(I_),z=P.get(y_,null);z&&z.forEach(te=>te())}(function gb(P=[],L){return ac.create({name:L,providers:[{provide:n0,useValue:"platform"},{provide:w_,useValue:()=>kh=null},...P]})}(dt,te))}return function pb(P){const L=Yg();if(!L)throw new H(401,"");return L}()}}function Yg(){return kh?.get(I_)??null}let I_=(()=>{class P{constructor(z){this._injector=z,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(z,te){const dt=function mb(P,L){let z;return z="noop"===P?new sb:("zone.js"===P?void 0:P)||new Au({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!L?.ngZoneEventCoalescing,shouldCoalesceRunChangeDetection:!!L?.ngZoneRunCoalescing}),z}(te?te.ngZone:void 0,{ngZoneEventCoalescing:te&&te.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:te&&te.ngZoneRunCoalescing||!1}),Rt=[{provide:Au,useValue:dt}];return dt.run(()=>{const dr=ac.create({providers:Rt,parent:this.injector,name:z.moduleType.name}),Tr=z.create(dr),Gr=Tr.injector.get(se,null);if(!Gr)throw new H(402,"");return dt.runOutsideAngular(()=>{const tn=dt.onError.subscribe({next:pn=>{Gr.handleError(pn)}});Tr.onDestroy(()=>{k0(this._modules,Tr),tn.unsubscribe()})}),function vb(P,L,z){try{const te=z();return Lp(te)?te.catch(ue=>{throw L.runOutsideAngular(()=>P.handleError(ue)),ue}):te}catch(te){throw L.runOutsideAngular(()=>P.handleError(te)),te}}(Gr,dt,()=>{const tn=Tr.injector.get(L0);return tn.runInitializers(),tn.donePromise.then(()=>(function l2(P){(function u(P,L){null==P&&W(L,P,null,"!=")})(P,"Expected localeId to be defined"),"string"==typeof P&&(o2=P.toLowerCase().replace(/_/g,"-"))}(Tr.injector.get(Ng,Yd)||Yd),this._moduleDoBootstrap(Tr),Tr))})})}bootstrapModule(z,te=[]){const ue=A_({},te);return function ub(P,L,z){const te=new Rf(z);return Promise.resolve(te)}(0,0,z).then(ve=>this.bootstrapModuleFactory(ve,ue))}_moduleDoBootstrap(z){const te=z.injector.get(jg);if(z._bootstrapComponents.length>0)z._bootstrapComponents.forEach(ue=>te.bootstrap(ue));else{if(!z.instance.ngDoBootstrap)throw new H(403,"");z.instance.ngDoBootstrap(te)}this._modules.push(z)}onDestroy(z){this._destroyListeners.push(z)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new H(404,"");this._modules.slice().forEach(te=>te.destroy()),this._destroyListeners.forEach(te=>te()),this._injector.get(w_,null)?.(),this._destroyed=!0}get destroyed(){return this._destroyed}}return P.\u0275fac=function(z){return new(z||P)(_a(ac))},P.\u0275prov=Qe({token:P,factory:P.\u0275fac,providedIn:"platform"}),P})();function A_(P,L){return Array.isArray(L)?L.reduce(A_,P):{...P,...L}}let jg=(()=>{class P{constructor(z,te,ue,ve){this._zone=z,this._injector=te,this._exceptionHandler=ue,this._initStatus=ve,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const je=new l.y(Rt=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{Rt.next(this._stable),Rt.complete()})}),dt=new l.y(Rt=>{let dr;this._zone.runOutsideAngular(()=>{dr=this._zone.onStable.subscribe(()=>{Au.assertNotInAngularZone(),Fg(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,Rt.next(!0))})})});const Tr=this._zone.onUnstable.subscribe(()=>{Au.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{Rt.next(!1)}))});return()=>{dr.unsubscribe(),Tr.unsubscribe()}});this.isStable=(0,h.T)(je,dt.pipe((0,r.B)()))}bootstrap(z,te){if(!this._initStatus.done)throw new H(405,"");let ue;ue=z instanceof E1?z:this._injector.get(I0).resolveComponentFactory(z),this.componentTypes.push(ue.componentType);const ve=function cb(P){return P.isBoundToModule}(ue)?void 0:this._injector.get(Pf),dt=ue.create(ac.NULL,[],te||ue.selector,ve),Rt=dt.location.nativeElement,dr=dt.injector.get(E_,null),Tr=dr&&dt.injector.get(Hg);return dr&&Tr&&Tr.registerApplication(Rt,dr),dt.onDestroy(()=>{this.detachView(dt.hostView),k0(this.components,dt),Tr&&Tr.unregisterApplication(Rt)}),this._loadComponent(dt),dt}tick(){if(this._runningTick)throw new H(101,"");try{this._runningTick=!0;for(let z of this._views)z.detectChanges()}catch(z){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(z))}finally{this._runningTick=!1}}attachView(z){const te=z;this._views.push(te),te.attachToAppRef(this)}detachView(z){const te=z;k0(this._views,te),te.detachFromAppRef()}_loadComponent(z){this.attachView(z.hostView),this.tick(),this.components.push(z),this._injector.get(C_,[]).concat(this._bootstrapListeners).forEach(ue=>ue(z))}ngOnDestroy(){this._views.slice().forEach(z=>z.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return P.\u0275fac=function(z){return new(z||P)(_a(Au),_a(ac),_a(se),_a(L0))},P.\u0275prov=Qe({token:P,factory:P.\u0275fac,providedIn:"root"}),P})();function k0(P,L){const z=P.indexOf(L);z>-1&&P.splice(z,1)}let P_=!0,O_=!1;function yb(){return O_=!0,P_}function Cb(){if(O_)throw new Error("Cannot enable prod mode after platform setup.");P_=!1}let Gg=(()=>{class P{}return P.__NG_ELEMENT_ID__=bb,P})();function bb(P){return function Sb(P,L,z){if(gr(P)&&!z){const te=ks(P.index,L);return new Ih(te,te)}return 47&P.type?new Ih(L[16],L):null}(rr(),xn(),16==(16&P))}class N_{constructor(){}supports(L){return Dd(L)}create(L){return new Ab(L)}}const Ib=(P,L)=>L;class Ab{constructor(L){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=L||Ib}forEachItem(L){let z;for(z=this._itHead;null!==z;z=z._next)L(z)}forEachOperation(L){let z=this._itHead,te=this._removalsHead,ue=0,ve=null;for(;z||te;){const je=!te||z&&z.currentIndex<B_(te,ue,ve)?z:te,dt=B_(je,ue,ve),Rt=je.currentIndex;if(je===te)ue--,te=te._nextRemoved;else if(z=z._next,null==je.previousIndex)ue++;else{ve||(ve=[]);const dr=dt-ue,Tr=Rt-ue;if(dr!=Tr){for(let tn=0;tn<dr;tn++){const pn=tn<ve.length?ve[tn]:ve[tn]=0,kn=pn+tn;Tr<=kn&&kn<dr&&(ve[tn]=pn+1)}ve[je.previousIndex]=Tr-dr}}dt!==Rt&&L(je,dt,Rt)}}forEachPreviousItem(L){let z;for(z=this._previousItHead;null!==z;z=z._nextPrevious)L(z)}forEachAddedItem(L){let z;for(z=this._additionsHead;null!==z;z=z._nextAdded)L(z)}forEachMovedItem(L){let z;for(z=this._movesHead;null!==z;z=z._nextMoved)L(z)}forEachRemovedItem(L){let z;for(z=this._removalsHead;null!==z;z=z._nextRemoved)L(z)}forEachIdentityChange(L){let z;for(z=this._identityChangesHead;null!==z;z=z._nextIdentityChange)L(z)}diff(L){if(null==L&&(L=[]),!Dd(L))throw new H(900,"");return this.check(L)?this:null}onDestroy(){}check(L){this._reset();let ue,ve,je,z=this._itHead,te=!1;if(Array.isArray(L)){this.length=L.length;for(let dt=0;dt<this.length;dt++)ve=L[dt],je=this._trackByFn(dt,ve),null!==z&&Object.is(z.trackById,je)?(te&&(z=this._verifyReinsertion(z,ve,je,dt)),Object.is(z.item,ve)||this._addIdentityChange(z,ve)):(z=this._mismatch(z,ve,je,dt),te=!0),z=z._next}else ue=0,function uv(P,L){if(Array.isArray(P))for(let z=0;z<P.length;z++)L(P[z]);else{const z=P[ho()]();let te;for(;!(te=z.next()).done;)L(te.value)}}(L,dt=>{je=this._trackByFn(ue,dt),null!==z&&Object.is(z.trackById,je)?(te&&(z=this._verifyReinsertion(z,dt,je,ue)),Object.is(z.item,dt)||this._addIdentityChange(z,dt)):(z=this._mismatch(z,dt,je,ue),te=!0),z=z._next,ue++}),this.length=ue;return this._truncate(z),this.collection=L,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let L;for(L=this._previousItHead=this._itHead;null!==L;L=L._next)L._nextPrevious=L._next;for(L=this._additionsHead;null!==L;L=L._nextAdded)L.previousIndex=L.currentIndex;for(this._additionsHead=this._additionsTail=null,L=this._movesHead;null!==L;L=L._nextMoved)L.previousIndex=L.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(L,z,te,ue){let ve;return null===L?ve=this._itTail:(ve=L._prev,this._remove(L)),null!==(L=null===this._unlinkedRecords?null:this._unlinkedRecords.get(te,null))?(Object.is(L.item,z)||this._addIdentityChange(L,z),this._reinsertAfter(L,ve,ue)):null!==(L=null===this._linkedRecords?null:this._linkedRecords.get(te,ue))?(Object.is(L.item,z)||this._addIdentityChange(L,z),this._moveAfter(L,ve,ue)):L=this._addAfter(new Db(z,te),ve,ue),L}_verifyReinsertion(L,z,te,ue){let ve=null===this._unlinkedRecords?null:this._unlinkedRecords.get(te,null);return null!==ve?L=this._reinsertAfter(ve,L._prev,ue):L.currentIndex!=ue&&(L.currentIndex=ue,this._addToMoves(L,ue)),L}_truncate(L){for(;null!==L;){const z=L._next;this._addToRemovals(this._unlink(L)),L=z}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(L,z,te){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(L);const ue=L._prevRemoved,ve=L._nextRemoved;return null===ue?this._removalsHead=ve:ue._nextRemoved=ve,null===ve?this._removalsTail=ue:ve._prevRemoved=ue,this._insertAfter(L,z,te),this._addToMoves(L,te),L}_moveAfter(L,z,te){return this._unlink(L),this._insertAfter(L,z,te),this._addToMoves(L,te),L}_addAfter(L,z,te){return this._insertAfter(L,z,te),this._additionsTail=null===this._additionsTail?this._additionsHead=L:this._additionsTail._nextAdded=L,L}_insertAfter(L,z,te){const ue=null===z?this._itHead:z._next;return L._next=ue,L._prev=z,null===ue?this._itTail=L:ue._prev=L,null===z?this._itHead=L:z._next=L,null===this._linkedRecords&&(this._linkedRecords=new F_),this._linkedRecords.put(L),L.currentIndex=te,L}_remove(L){return this._addToRemovals(this._unlink(L))}_unlink(L){null!==this._linkedRecords&&this._linkedRecords.remove(L);const z=L._prev,te=L._next;return null===z?this._itHead=te:z._next=te,null===te?this._itTail=z:te._prev=z,L}_addToMoves(L,z){return L.previousIndex===z||(this._movesTail=null===this._movesTail?this._movesHead=L:this._movesTail._nextMoved=L),L}_addToRemovals(L){return null===this._unlinkedRecords&&(this._unlinkedRecords=new F_),this._unlinkedRecords.put(L),L.currentIndex=null,L._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=L,L._prevRemoved=null):(L._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=L),L}_addIdentityChange(L,z){return L.item=z,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=L:this._identityChangesTail._nextIdentityChange=L,L}}class Db{constructor(L,z){this.item=L,this.trackById=z,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Pb{constructor(){this._head=null,this._tail=null}add(L){null===this._head?(this._head=this._tail=L,L._nextDup=null,L._prevDup=null):(this._tail._nextDup=L,L._prevDup=this._tail,L._nextDup=null,this._tail=L)}get(L,z){let te;for(te=this._head;null!==te;te=te._nextDup)if((null===z||z<=te.currentIndex)&&Object.is(te.trackById,L))return te;return null}remove(L){const z=L._prevDup,te=L._nextDup;return null===z?this._head=te:z._nextDup=te,null===te?this._tail=z:te._prevDup=z,null===this._head}}class F_{constructor(){this.map=new Map}put(L){const z=L.trackById;let te=this.map.get(z);te||(te=new Pb,this.map.set(z,te)),te.add(L)}get(L,z){const ue=this.map.get(L);return ue?ue.get(L,z):null}remove(L){const z=L.trackById;return this.map.get(z).remove(L)&&this.map.delete(z),L}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function B_(P,L,z){const te=P.previousIndex;if(null===te)return te;let ue=0;return z&&te<z.length&&(ue=z[te]),te+L+ue}class U_{constructor(){}supports(L){return L instanceof Map||sh(L)}create(){return new Ob}}class Ob{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(L){let z;for(z=this._mapHead;null!==z;z=z._next)L(z)}forEachPreviousItem(L){let z;for(z=this._previousMapHead;null!==z;z=z._nextPrevious)L(z)}forEachChangedItem(L){let z;for(z=this._changesHead;null!==z;z=z._nextChanged)L(z)}forEachAddedItem(L){let z;for(z=this._additionsHead;null!==z;z=z._nextAdded)L(z)}forEachRemovedItem(L){let z;for(z=this._removalsHead;null!==z;z=z._nextRemoved)L(z)}diff(L){if(L){if(!(L instanceof Map||sh(L)))throw new H(900,"")}else L=new Map;return this.check(L)?this:null}onDestroy(){}check(L){this._reset();let z=this._mapHead;if(this._appendAfter=null,this._forEach(L,(te,ue)=>{if(z&&z.key===ue)this._maybeAddToChanges(z,te),this._appendAfter=z,z=z._next;else{const ve=this._getOrCreateRecordForKey(ue,te);z=this._insertBeforeOrAppend(z,ve)}}),z){z._prev&&(z._prev._next=null),this._removalsHead=z;for(let te=z;null!==te;te=te._nextRemoved)te===this._mapHead&&(this._mapHead=null),this._records.delete(te.key),te._nextRemoved=te._next,te.previousValue=te.currentValue,te.currentValue=null,te._prev=null,te._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(L,z){if(L){const te=L._prev;return z._next=L,z._prev=te,L._prev=z,te&&(te._next=z),L===this._mapHead&&(this._mapHead=z),this._appendAfter=L,L}return this._appendAfter?(this._appendAfter._next=z,z._prev=this._appendAfter):this._mapHead=z,this._appendAfter=z,null}_getOrCreateRecordForKey(L,z){if(this._records.has(L)){const ue=this._records.get(L);this._maybeAddToChanges(ue,z);const ve=ue._prev,je=ue._next;return ve&&(ve._next=je),je&&(je._prev=ve),ue._next=null,ue._prev=null,ue}const te=new Rb(L);return this._records.set(L,te),te.currentValue=z,this._addToAdditions(te),te}_reset(){if(this.isDirty){let L;for(this._previousMapHead=this._mapHead,L=this._previousMapHead;null!==L;L=L._next)L._nextPrevious=L._next;for(L=this._changesHead;null!==L;L=L._nextChanged)L.previousValue=L.currentValue;for(L=this._additionsHead;null!=L;L=L._nextAdded)L.previousValue=L.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(L,z){Object.is(z,L.currentValue)||(L.previousValue=L.currentValue,L.currentValue=z,this._addToChanges(L))}_addToAdditions(L){null===this._additionsHead?this._additionsHead=this._additionsTail=L:(this._additionsTail._nextAdded=L,this._additionsTail=L)}_addToChanges(L){null===this._changesHead?this._changesHead=this._changesTail=L:(this._changesTail._nextChanged=L,this._changesTail=L)}_forEach(L,z){L instanceof Map?L.forEach(z):Object.keys(L).forEach(te=>z(L[te],te))}}class Rb{constructor(L){this.key=L,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function H_(){return new qg([new N_])}let qg=(()=>{class P{constructor(z){this.factories=z}static create(z,te){if(null!=te){const ue=te.factories.slice();z=z.concat(ue)}return new P(z)}static extend(z){return{provide:P,useFactory:te=>P.create(z,te||H_()),deps:[[P,new Io,new _o]]}}find(z){const te=this.factories.find(ue=>ue.supports(z));if(null!=te)return te;throw new H(901,"")}}return P.\u0275prov=Qe({token:P,providedIn:"root",factory:H_}),P})();function V_(){return new Jg([new U_])}let Jg=(()=>{class P{constructor(z){this.factories=z}static create(z,te){if(te){const ue=te.factories.slice();z=z.concat(ue)}return new P(z)}static extend(z){return{provide:P,useFactory:te=>P.create(z,te||V_()),deps:[[P,new Io,new _o]]}}find(z){const te=this.factories.find(ve=>ve.supports(z));if(te)return te;throw new H(901,"")}}return P.\u0275prov=Qe({token:P,providedIn:"root",factory:V_}),P})();const Nb=x_(null,"core",[]);let Fb=(()=>{class P{constructor(z){}}return P.\u0275fac=function(z){return new(z||P)(_a(jg))},P.\u0275mod=lt({type:P}),P.\u0275inj=At({}),P})()},24006:(M,b,n)=>{"use strict";n.d(b,{Cf:()=>V,F:()=>Tn,Fj:()=>O,JJ:()=>ft,JL:()=>Ge,JU:()=>g,NI:()=>Ur,On:()=>gr,Q7:()=>ts,UX:()=>ia,_Y:()=>ur,a5:()=>ne,c5:()=>Zs,cw:()=>Nr,kI:()=>q,nD:()=>fa,qu:()=>Ea,sg:()=>yn,u:()=>_r,u5:()=>ks,wO:()=>ys,wV:()=>fn});var t=n(94650),e=n(36895),l=n(5254),h=n(30567),r=n(24850);let d=(()=>{class qt{constructor(Mt,Mr){this._renderer=Mt,this._elementRef=Mr,this.onChange=Mn=>{},this.onTouched=()=>{}}setProperty(Mt,Mr){this._renderer.setProperty(this._elementRef.nativeElement,Mt,Mr)}registerOnTouched(Mt){this.onTouched=Mt}registerOnChange(Mt){this.onChange=Mt}setDisabledState(Mt){this.setProperty("disabled",Mt)}}return qt.\u0275fac=function(Mt){return new(Mt||qt)(t.Y36(t.Qsj),t.Y36(t.SBq))},qt.\u0275dir=t.lG2({type:qt}),qt})(),y=(()=>{class qt extends d{}return qt.\u0275fac=function(){let jt;return function(Mr){return(jt||(jt=t.n5z(qt)))(Mr||qt)}}(),qt.\u0275dir=t.lG2({type:qt,features:[t.qOj]}),qt})();const g=new t.OlP("NgValueAccessor"),C={provide:g,useExisting:(0,t.Gpc)(()=>O),multi:!0},a=new t.OlP("CompositionEventMode");let O=(()=>{class qt extends d{constructor(Mt,Mr,Mn){super(Mt,Mr),this._compositionMode=Mn,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function N(){const qt=(0,e.q)()?(0,e.q)().getUserAgent():"";return/android (\d+)/.test(qt.toLowerCase())}())}writeValue(Mt){this.setProperty("value",Mt??"")}_handleInput(Mt){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Mt)}_compositionStart(){this._composing=!0}_compositionEnd(Mt){this._composing=!1,this._compositionMode&&this.onChange(Mt)}}return qt.\u0275fac=function(Mt){return new(Mt||qt)(t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(a,8))},qt.\u0275dir=t.lG2({type:qt,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(Mt,Mr){1&Mt&&t.NdJ("input",function(ui){return Mr._handleInput(ui.target.value)})("blur",function(){return Mr.onTouched()})("compositionstart",function(){return Mr._compositionStart()})("compositionend",function(ui){return Mr._compositionEnd(ui.target.value)})},features:[t._Bn([C]),t.qOj]}),qt})();function H(qt){return null==qt||0===qt.length}function F(qt){return null!=qt&&"number"==typeof qt.length}const V=new t.OlP("NgValidators"),D=new t.OlP("NgAsyncValidators"),U=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class q{static min(jt){return function J(qt){return jt=>{if(H(jt.value)||H(qt))return null;const Mt=parseFloat(jt.value);return!isNaN(Mt)&&Mt<qt?{min:{min:qt,actual:jt.value}}:null}}(jt)}static max(jt){return function G(qt){return jt=>{if(H(jt.value)||H(qt))return null;const Mt=parseFloat(jt.value);return!isNaN(Mt)&&Mt>qt?{max:{max:qt,actual:jt.value}}:null}}(jt)}static required(jt){return ie(jt)}static requiredTrue(jt){return function K(qt){return!0===qt.value?null:{required:!0}}(jt)}static email(jt){return function re(qt){return H(qt.value)||U.test(qt.value)?null:{email:!0}}(jt)}static minLength(jt){return oe(jt)}static maxLength(jt){return B(jt)}static pattern(jt){return s(jt)}static nullValidator(jt){return null}static compose(jt){return u(jt)}static composeAsync(jt){return fe(jt)}}function ie(qt){return H(qt.value)?{required:!0}:null}function oe(qt){return jt=>H(jt.value)||!F(jt.value)?null:jt.value.length<qt?{minlength:{requiredLength:qt,actualLength:jt.value.length}}:null}function B(qt){return jt=>F(jt.value)&&jt.value.length>qt?{maxlength:{requiredLength:qt,actualLength:jt.value.length}}:null}function s(qt){if(!qt)return _;let jt,Mt;return"string"==typeof qt?(Mt="","^"!==qt.charAt(0)&&(Mt+="^"),Mt+=qt,"$"!==qt.charAt(qt.length-1)&&(Mt+="$"),jt=new RegExp(Mt)):(Mt=qt.toString(),jt=qt),Mr=>{if(H(Mr.value))return null;const Mn=Mr.value;return jt.test(Mn)?null:{pattern:{requiredPattern:Mt,actualValue:Mn}}}}function _(qt){return null}function w(qt){return null!=qt}function E(qt){const jt=(0,t.QGY)(qt)?(0,l.D)(qt):qt;return(0,t.CqO)(jt),jt}function x(qt){let jt={};return qt.forEach(Mt=>{jt=null!=Mt?{...jt,...Mt}:jt}),0===Object.keys(jt).length?null:jt}function j(qt,jt){return jt.map(Mt=>Mt(qt))}function Y(qt){return qt.map(jt=>function $(qt){return!qt.validate}(jt)?jt:Mt=>jt.validate(Mt))}function u(qt){if(!qt)return null;const jt=qt.filter(w);return 0==jt.length?null:function(Mt){return x(j(Mt,jt))}}function W(qt){return null!=qt?u(Y(qt)):null}function fe(qt){if(!qt)return null;const jt=qt.filter(w);return 0==jt.length?null:function(Mt){const Mr=j(Mt,jt).map(E);return(0,h.D)(Mr).pipe((0,r.U)(x))}}function ae(qt){return null!=qt?fe(Y(qt)):null}function ye(qt,jt){return null===qt?[jt]:Array.isArray(qt)?[...qt,jt]:[qt,jt]}function Qe(qt){return qt._rawValidators}function Ot(qt){return qt._rawAsyncValidators}function At(qt){return qt?Array.isArray(qt)?qt:[qt]:[]}function Ze(qt,jt){return Array.isArray(qt)?qt.includes(jt):qt===jt}function at(qt,jt){const Mt=At(jt);return At(qt).forEach(Mn=>{Ze(Mt,Mn)||Mt.push(Mn)}),Mt}function Be(qt,jt){return At(jt).filter(Mt=>!Ze(qt,Mt))}class Lt{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(jt){this._rawValidators=jt||[],this._composedValidatorFn=W(this._rawValidators)}_setAsyncValidators(jt){this._rawAsyncValidators=jt||[],this._composedAsyncValidatorFn=ae(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(jt){this._onDestroyCallbacks.push(jt)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(jt=>jt()),this._onDestroyCallbacks=[]}reset(jt){this.control&&this.control.reset(jt)}hasError(jt,Mt){return!!this.control&&this.control.hasError(jt,Mt)}getError(jt,Mt){return this.control?this.control.getError(jt,Mt):null}}class _e extends Lt{get formDirective(){return null}get path(){return null}}class ne extends Lt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class be{constructor(jt){this._cd=jt}is(jt){return"submitted"===jt?!!this._cd?.submitted:!!this._cd?.control?.[jt]}}let ft=(()=>{class qt extends be{constructor(Mt){super(Mt)}}return qt.\u0275fac=function(Mt){return new(Mt||qt)(t.Y36(ne,2))},qt.\u0275dir=t.lG2({type:qt,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Mt,Mr){2&Mt&&t.ekj("ng-untouched",Mr.is("untouched"))("ng-touched",Mr.is("touched"))("ng-pristine",Mr.is("pristine"))("ng-dirty",Mr.is("dirty"))("ng-valid",Mr.is("valid"))("ng-invalid",Mr.is("invalid"))("ng-pending",Mr.is("pending"))},features:[t.qOj]}),qt})(),Ge=(()=>{class qt extends be{constructor(Mt){super(Mt)}}return qt.\u0275fac=function(Mt){return new(Mt||qt)(t.Y36(_e,10))},qt.\u0275dir=t.lG2({type:qt,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Mt,Mr){2&Mt&&t.ekj("ng-untouched",Mr.is("untouched"))("ng-touched",Mr.is("touched"))("ng-pristine",Mr.is("pristine"))("ng-dirty",Mr.is("dirty"))("ng-valid",Mr.is("valid"))("ng-invalid",Mr.is("invalid"))("ng-pending",Mr.is("pending"))("ng-submitted",Mr.is("submitted"))},features:[t.qOj]}),qt})();function cr(qt,jt){return[...jt.path,qt]}function wt(qt,jt){Cr(qt,jt),jt.valueAccessor.writeValue(qt.value),function Pt(qt,jt){jt.valueAccessor.registerOnChange(Mt=>{qt._pendingValue=Mt,qt._pendingChange=!0,qt._pendingDirty=!0,"change"===qt.updateOn&&tt(qt,jt)})}(qt,jt),function Ke(qt,jt){const Mt=(Mr,Mn)=>{jt.valueAccessor.writeValue(Mr),Mn&&jt.viewToModelUpdate(Mr)};qt.registerOnChange(Mt),jt._registerOnDestroy(()=>{qt._unregisterOnChange(Mt)})}(qt,jt),function He(qt,jt){jt.valueAccessor.registerOnTouched(()=>{qt._pendingTouched=!0,"blur"===qt.updateOn&&qt._pendingChange&&tt(qt,jt),"submit"!==qt.updateOn&&qt.markAsTouched()})}(qt,jt),function hr(qt,jt){if(jt.valueAccessor.setDisabledState){const Mt=Mr=>{jt.valueAccessor.setDisabledState(Mr)};qt.registerOnDisabledChange(Mt),jt._registerOnDestroy(()=>{qt._unregisterOnDisabledChange(Mt)})}}(qt,jt)}function gt(qt,jt,Mt=!0){const Mr=()=>{};jt.valueAccessor&&(jt.valueAccessor.registerOnChange(Mr),jt.valueAccessor.registerOnTouched(Mr)),Ue(qt,jt),qt&&(jt._invokeOnDestroyCallbacks(),qt._registerOnCollectionChange(()=>{}))}function Ut(qt,jt){qt.forEach(Mt=>{Mt.registerOnValidatorChange&&Mt.registerOnValidatorChange(jt)})}function Cr(qt,jt){const Mt=Qe(qt);null!==jt.validator?qt.setValidators(ye(Mt,jt.validator)):"function"==typeof Mt&&qt.setValidators([Mt]);const Mr=Ot(qt);null!==jt.asyncValidator?qt.setAsyncValidators(ye(Mr,jt.asyncValidator)):"function"==typeof Mr&&qt.setAsyncValidators([Mr]);const Mn=()=>qt.updateValueAndValidity();Ut(jt._rawValidators,Mn),Ut(jt._rawAsyncValidators,Mn)}function Ue(qt,jt){let Mt=!1;if(null!==qt){if(null!==jt.validator){const Mn=Qe(qt);if(Array.isArray(Mn)&&Mn.length>0){const ui=Mn.filter(ss=>ss!==jt.validator);ui.length!==Mn.length&&(Mt=!0,qt.setValidators(ui))}}if(null!==jt.asyncValidator){const Mn=Ot(qt);if(Array.isArray(Mn)&&Mn.length>0){const ui=Mn.filter(ss=>ss!==jt.asyncValidator);ui.length!==Mn.length&&(Mt=!0,qt.setAsyncValidators(ui))}}}const Mr=()=>{};return Ut(jt._rawValidators,Mr),Ut(jt._rawAsyncValidators,Mr),Mt}function tt(qt,jt){qt._pendingDirty&&qt.markAsDirty(),qt.setValue(qt._pendingValue,{emitModelToViewChange:!1}),jt.viewToModelUpdate(qt._pendingValue),qt._pendingChange=!1}function kt(qt,jt){Cr(qt,jt)}function ke(qt,jt){if(!qt.hasOwnProperty("model"))return!1;const Mt=qt.model;return!!Mt.isFirstChange()||!Object.is(jt,Mt.currentValue)}function vt(qt,jt){qt._syncPendingControls(),jt.forEach(Mt=>{const Mr=Mt.control;"submit"===Mr.updateOn&&Mr._pendingChange&&(Mt.viewToModelUpdate(Mr._pendingValue),Mr._pendingChange=!1)})}function $t(qt,jt){if(!jt)return null;let Mt,Mr,Mn;return Array.isArray(jt),jt.forEach(ui=>{ui.constructor===O?Mt=ui:function ct(qt){return Object.getPrototypeOf(qt.constructor)===y}(ui)?Mr=ui:Mn=ui}),Mn||Mr||Mt||null}function Vr(qt,jt){const Mt=qt.indexOf(jt);Mt>-1&&qt.splice(Mt,1)}const Jr="VALID",Fr="INVALID",Gt="PENDING",le="DISABLED";function Ie(qt){return(Xe(qt)?qt.validators:qt)||null}function Pe(qt){return Array.isArray(qt)?W(qt):qt||null}function Oe(qt,jt){return(Xe(jt)?jt.asyncValidators:qt)||null}function Se(qt){return Array.isArray(qt)?ae(qt):qt||null}function Xe(qt){return null!=qt&&!Array.isArray(qt)&&"object"==typeof qt}const Ct=qt=>qt instanceof Ur,zt=qt=>qt instanceof Nr,kr=qt=>qt instanceof zr;function Br(qt){return Ct(qt)?qt.value:qt.getRawValue()}function xt(qt,jt){const Mt=zt(qt),Mr=qt.controls;if(!(Mt?Object.keys(Mr):Mr).length)throw new t.vHH(1e3,"");if(!Mr[jt])throw new t.vHH(1001,"")}function tr(qt,jt){zt(qt),qt._forEachChild((Mr,Mn)=>{if(void 0===jt[Mn])throw new t.vHH(1002,"")})}class Rr{constructor(jt,Mt){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=jt,this._rawAsyncValidators=Mt,this._composedValidatorFn=Pe(this._rawValidators),this._composedAsyncValidatorFn=Se(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(jt){this._rawValidators=this._composedValidatorFn=jt}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(jt){this._rawAsyncValidators=this._composedAsyncValidatorFn=jt}get parent(){return this._parent}get valid(){return this.status===Jr}get invalid(){return this.status===Fr}get pending(){return this.status==Gt}get disabled(){return this.status===le}get enabled(){return this.status!==le}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(jt){this._rawValidators=jt,this._composedValidatorFn=Pe(jt)}setAsyncValidators(jt){this._rawAsyncValidators=jt,this._composedAsyncValidatorFn=Se(jt)}addValidators(jt){this.setValidators(at(jt,this._rawValidators))}addAsyncValidators(jt){this.setAsyncValidators(at(jt,this._rawAsyncValidators))}removeValidators(jt){this.setValidators(Be(jt,this._rawValidators))}removeAsyncValidators(jt){this.setAsyncValidators(Be(jt,this._rawAsyncValidators))}hasValidator(jt){return Ze(this._rawValidators,jt)}hasAsyncValidator(jt){return Ze(this._rawAsyncValidators,jt)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(jt={}){this.touched=!0,this._parent&&!jt.onlySelf&&this._parent.markAsTouched(jt)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(jt=>jt.markAllAsTouched())}markAsUntouched(jt={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Mt=>{Mt.markAsUntouched({onlySelf:!0})}),this._parent&&!jt.onlySelf&&this._parent._updateTouched(jt)}markAsDirty(jt={}){this.pristine=!1,this._parent&&!jt.onlySelf&&this._parent.markAsDirty(jt)}markAsPristine(jt={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Mt=>{Mt.markAsPristine({onlySelf:!0})}),this._parent&&!jt.onlySelf&&this._parent._updatePristine(jt)}markAsPending(jt={}){this.status=Gt,!1!==jt.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!jt.onlySelf&&this._parent.markAsPending(jt)}disable(jt={}){const Mt=this._parentMarkedDirty(jt.onlySelf);this.status=le,this.errors=null,this._forEachChild(Mr=>{Mr.disable({...jt,onlySelf:!0})}),this._updateValue(),!1!==jt.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...jt,skipPristineCheck:Mt}),this._onDisabledChange.forEach(Mr=>Mr(!0))}enable(jt={}){const Mt=this._parentMarkedDirty(jt.onlySelf);this.status=Jr,this._forEachChild(Mr=>{Mr.enable({...jt,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:jt.emitEvent}),this._updateAncestors({...jt,skipPristineCheck:Mt}),this._onDisabledChange.forEach(Mr=>Mr(!1))}_updateAncestors(jt){this._parent&&!jt.onlySelf&&(this._parent.updateValueAndValidity(jt),jt.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(jt){this._parent=jt}updateValueAndValidity(jt={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Jr||this.status===Gt)&&this._runAsyncValidator(jt.emitEvent)),!1!==jt.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!jt.onlySelf&&this._parent.updateValueAndValidity(jt)}_updateTreeValidity(jt={emitEvent:!0}){this._forEachChild(Mt=>Mt._updateTreeValidity(jt)),this.updateValueAndValidity({onlySelf:!0,emitEvent:jt.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?le:Jr}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(jt){if(this.asyncValidator){this.status=Gt,this._hasOwnPendingAsyncValidator=!0;const Mt=E(this.asyncValidator(this));this._asyncValidationSubscription=Mt.subscribe(Mr=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Mr,{emitEvent:jt})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(jt,Mt={}){this.errors=jt,this._updateControlsErrors(!1!==Mt.emitEvent)}get(jt){return function Ce(qt,jt,Mt){if(null==jt||(Array.isArray(jt)||(jt=jt.split(Mt)),Array.isArray(jt)&&0===jt.length))return null;let Mr=qt;return jt.forEach(Mn=>{Mr=zt(Mr)?Mr.controls.hasOwnProperty(Mn)?Mr.controls[Mn]:null:kr(Mr)&&Mr.at(Mn)||null}),Mr}(this,jt,".")}getError(jt,Mt){const Mr=Mt?this.get(Mt):this;return Mr&&Mr.errors?Mr.errors[jt]:null}hasError(jt,Mt){return!!this.getError(jt,Mt)}get root(){let jt=this;for(;jt._parent;)jt=jt._parent;return jt}_updateControlsErrors(jt){this.status=this._calculateStatus(),jt&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(jt)}_initObservables(){this.valueChanges=new t.vpe,this.statusChanges=new t.vpe}_calculateStatus(){return this._allControlsDisabled()?le:this.errors?Fr:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Gt)?Gt:this._anyControlsHaveStatus(Fr)?Fr:Jr}_anyControlsHaveStatus(jt){return this._anyControls(Mt=>Mt.status===jt)}_anyControlsDirty(){return this._anyControls(jt=>jt.dirty)}_anyControlsTouched(){return this._anyControls(jt=>jt.touched)}_updatePristine(jt={}){this.pristine=!this._anyControlsDirty(),this._parent&&!jt.onlySelf&&this._parent._updatePristine(jt)}_updateTouched(jt={}){this.touched=this._anyControlsTouched(),this._parent&&!jt.onlySelf&&this._parent._updateTouched(jt)}_isBoxedValue(jt){return"object"==typeof jt&&null!==jt&&2===Object.keys(jt).length&&"value"in jt&&"disabled"in jt}_registerOnCollectionChange(jt){this._onCollectionChange=jt}_setUpdateStrategy(jt){Xe(jt)&&null!=jt.updateOn&&(this._updateOn=jt.updateOn)}_parentMarkedDirty(jt){return!jt&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Ur extends Rr{constructor(jt=null,Mt,Mr){super(Ie(Mt),Oe(Mr,Mt)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(jt),this._setUpdateStrategy(Mt),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Xe(Mt)&&Mt.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(jt)?jt.value:jt)}setValue(jt,Mt={}){this.value=this._pendingValue=jt,this._onChange.length&&!1!==Mt.emitModelToViewChange&&this._onChange.forEach(Mr=>Mr(this.value,!1!==Mt.emitViewToModelChange)),this.updateValueAndValidity(Mt)}patchValue(jt,Mt={}){this.setValue(jt,Mt)}reset(jt=this.defaultValue,Mt={}){this._applyFormState(jt),this.markAsPristine(Mt),this.markAsUntouched(Mt),this.setValue(this.value,Mt),this._pendingChange=!1}_updateValue(){}_anyControls(jt){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(jt){this._onChange.push(jt)}_unregisterOnChange(jt){Vr(this._onChange,jt)}registerOnDisabledChange(jt){this._onDisabledChange.push(jt)}_unregisterOnDisabledChange(jt){Vr(this._onDisabledChange,jt)}_forEachChild(jt){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(jt){this._isBoxedValue(jt)?(this.value=this._pendingValue=jt.value,jt.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=jt}}class Nr extends Rr{constructor(jt,Mt,Mr){super(Ie(Mt),Oe(Mr,Mt)),this.controls=jt,this._initObservables(),this._setUpdateStrategy(Mt),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(jt,Mt){return this.controls[jt]?this.controls[jt]:(this.controls[jt]=Mt,Mt.setParent(this),Mt._registerOnCollectionChange(this._onCollectionChange),Mt)}addControl(jt,Mt,Mr={}){this.registerControl(jt,Mt),this.updateValueAndValidity({emitEvent:Mr.emitEvent}),this._onCollectionChange()}removeControl(jt,Mt={}){this.controls[jt]&&this.controls[jt]._registerOnCollectionChange(()=>{}),delete this.controls[jt],this.updateValueAndValidity({emitEvent:Mt.emitEvent}),this._onCollectionChange()}setControl(jt,Mt,Mr={}){this.controls[jt]&&this.controls[jt]._registerOnCollectionChange(()=>{}),delete this.controls[jt],Mt&&this.registerControl(jt,Mt),this.updateValueAndValidity({emitEvent:Mr.emitEvent}),this._onCollectionChange()}contains(jt){return this.controls.hasOwnProperty(jt)&&this.controls[jt].enabled}setValue(jt,Mt={}){tr(this,jt),Object.keys(jt).forEach(Mr=>{xt(this,Mr),this.controls[Mr].setValue(jt[Mr],{onlySelf:!0,emitEvent:Mt.emitEvent})}),this.updateValueAndValidity(Mt)}patchValue(jt,Mt={}){null!=jt&&(Object.keys(jt).forEach(Mr=>{this.controls[Mr]&&this.controls[Mr].patchValue(jt[Mr],{onlySelf:!0,emitEvent:Mt.emitEvent})}),this.updateValueAndValidity(Mt))}reset(jt={},Mt={}){this._forEachChild((Mr,Mn)=>{Mr.reset(jt[Mn],{onlySelf:!0,emitEvent:Mt.emitEvent})}),this._updatePristine(Mt),this._updateTouched(Mt),this.updateValueAndValidity(Mt)}getRawValue(){return this._reduceChildren({},(jt,Mt,Mr)=>(jt[Mr]=Br(Mt),jt))}_syncPendingControls(){let jt=this._reduceChildren(!1,(Mt,Mr)=>!!Mr._syncPendingControls()||Mt);return jt&&this.updateValueAndValidity({onlySelf:!0}),jt}_forEachChild(jt){Object.keys(this.controls).forEach(Mt=>{const Mr=this.controls[Mt];Mr&&jt(Mr,Mt)})}_setUpControls(){this._forEachChild(jt=>{jt.setParent(this),jt._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(jt){for(const Mt of Object.keys(this.controls)){const Mr=this.controls[Mt];if(this.contains(Mt)&&jt(Mr))return!0}return!1}_reduceValue(){return this._reduceChildren({},(jt,Mt,Mr)=>((Mt.enabled||this.disabled)&&(jt[Mr]=Mt.value),jt))}_reduceChildren(jt,Mt){let Mr=jt;return this._forEachChild((Mn,ui)=>{Mr=Mt(Mr,Mn,ui)}),Mr}_allControlsDisabled(){for(const jt of Object.keys(this.controls))if(this.controls[jt].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class zr extends Rr{constructor(jt,Mt,Mr){super(Ie(Mt),Oe(Mr,Mt)),this.controls=jt,this._initObservables(),this._setUpdateStrategy(Mt),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(jt){return this.controls[jt]}push(jt,Mt={}){this.controls.push(jt),this._registerControl(jt),this.updateValueAndValidity({emitEvent:Mt.emitEvent}),this._onCollectionChange()}insert(jt,Mt,Mr={}){this.controls.splice(jt,0,Mt),this._registerControl(Mt),this.updateValueAndValidity({emitEvent:Mr.emitEvent})}removeAt(jt,Mt={}){this.controls[jt]&&this.controls[jt]._registerOnCollectionChange(()=>{}),this.controls.splice(jt,1),this.updateValueAndValidity({emitEvent:Mt.emitEvent})}setControl(jt,Mt,Mr={}){this.controls[jt]&&this.controls[jt]._registerOnCollectionChange(()=>{}),this.controls.splice(jt,1),Mt&&(this.controls.splice(jt,0,Mt),this._registerControl(Mt)),this.updateValueAndValidity({emitEvent:Mr.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(jt,Mt={}){tr(this,jt),jt.forEach((Mr,Mn)=>{xt(this,Mn),this.at(Mn).setValue(Mr,{onlySelf:!0,emitEvent:Mt.emitEvent})}),this.updateValueAndValidity(Mt)}patchValue(jt,Mt={}){null!=jt&&(jt.forEach((Mr,Mn)=>{this.at(Mn)&&this.at(Mn).patchValue(Mr,{onlySelf:!0,emitEvent:Mt.emitEvent})}),this.updateValueAndValidity(Mt))}reset(jt=[],Mt={}){this._forEachChild((Mr,Mn)=>{Mr.reset(jt[Mn],{onlySelf:!0,emitEvent:Mt.emitEvent})}),this._updatePristine(Mt),this._updateTouched(Mt),this.updateValueAndValidity(Mt)}getRawValue(){return this.controls.map(jt=>Br(jt))}clear(jt={}){this.controls.length<1||(this._forEachChild(Mt=>Mt._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:jt.emitEvent}))}_syncPendingControls(){let jt=this.controls.reduce((Mt,Mr)=>!!Mr._syncPendingControls()||Mt,!1);return jt&&this.updateValueAndValidity({onlySelf:!0}),jt}_forEachChild(jt){this.controls.forEach((Mt,Mr)=>{jt(Mt,Mr)})}_updateValue(){this.value=this.controls.filter(jt=>jt.enabled||this.disabled).map(jt=>jt.value)}_anyControls(jt){return this.controls.some(Mt=>Mt.enabled&&jt(Mt))}_setUpControls(){this._forEachChild(jt=>this._registerControl(jt))}_allControlsDisabled(){for(const jt of this.controls)if(jt.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(jt){jt.setParent(this),jt._registerOnCollectionChange(this._onCollectionChange)}}const hn={provide:_e,useExisting:(0,t.Gpc)(()=>Tn)},_n=(()=>Promise.resolve(null))();let Tn=(()=>{class qt extends _e{constructor(Mt,Mr){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new t.vpe,this.form=new Nr({},W(Mt),ae(Mr))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Mt){_n.then(()=>{const Mr=this._findContainer(Mt.path);Mt.control=Mr.registerControl(Mt.name,Mt.control),wt(Mt.control,Mt),Mt.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Mt)})}getControl(Mt){return this.form.get(Mt.path)}removeControl(Mt){_n.then(()=>{const Mr=this._findContainer(Mt.path);Mr&&Mr.removeControl(Mt.name),this._directives.delete(Mt)})}addFormGroup(Mt){_n.then(()=>{const Mr=this._findContainer(Mt.path),Mn=new Nr({});kt(Mn,Mt),Mr.registerControl(Mt.name,Mn),Mn.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Mt){_n.then(()=>{const Mr=this._findContainer(Mt.path);Mr&&Mr.removeControl(Mt.name)})}getFormGroup(Mt){return this.form.get(Mt.path)}updateModel(Mt,Mr){_n.then(()=>{this.form.get(Mt.path).setValue(Mr)})}setValue(Mt){this.control.setValue(Mt)}onSubmit(Mt){return this.submitted=!0,vt(this.form,this._directives),this.ngSubmit.emit(Mt),!1}onReset(){this.resetForm()}resetForm(Mt){this.form.reset(Mt),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Mt){return Mt.pop(),Mt.length?this.form.get(Mt):this.form}}return qt.\u0275fac=function(Mt){return new(Mt||qt)(t.Y36(V,10),t.Y36(D,10))},qt.\u0275dir=t.lG2({type:qt,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Mt,Mr){1&Mt&&t.NdJ("submit",function(ui){return Mr.onSubmit(ui)})("reset",function(){return Mr.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([hn]),t.qOj]}),qt})();const Vt={provide:ne,useExisting:(0,t.Gpc)(()=>gr)},yt=(()=>Promise.resolve(null))();let gr=(()=>{class qt extends ne{constructor(Mt,Mr,Mn,ui,ss){super(),this._changeDetectorRef=ss,this.control=new Ur,this._registered=!1,this.update=new t.vpe,this._parent=Mt,this._setValidators(Mr),this._setAsyncValidators(Mn),this.valueAccessor=$t(0,ui)}ngOnChanges(Mt){if(this._checkForErrors(),!this._registered||"name"in Mt){if(this._registered&&(this._checkName(),this.formDirective)){const Mr=Mt.name.previousValue;this.formDirective.removeControl({name:Mr,path:this._getPath(Mr)})}this._setUpControl()}"isDisabled"in Mt&&this._updateDisabled(Mt),ke(Mt,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(Mt){this.viewModel=Mt,this.update.emit(Mt)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){wt(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(Mt){yt.then(()=>{this.control.setValue(Mt,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(Mt){const Mr=Mt.isDisabled.currentValue,Mn=""===Mr||Mr&&"false"!==Mr;yt.then(()=>{Mn&&!this.control.disabled?this.control.disable():!Mn&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(Mt){return this._parent?cr(Mt,this._parent):[Mt]}}return qt.\u0275fac=function(Mt){return new(Mt||qt)(t.Y36(_e,9),t.Y36(V,10),t.Y36(D,10),t.Y36(g,10),t.Y36(t.sBO,8))},qt.\u0275dir=t.lG2({type:qt,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[t._Bn([Vt]),t.qOj,t.TTD]}),qt})(),ur=(()=>{class qt{}return qt.\u0275fac=function(Mt){return new(Mt||qt)},qt.\u0275dir=t.lG2({type:qt,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),qt})();const Zr={provide:g,useExisting:(0,t.Gpc)(()=>fn),multi:!0};let fn=(()=>{class qt extends y{writeValue(Mt){this.setProperty("value",Mt??"")}registerOnChange(Mt){this.onChange=Mr=>{Mt(""==Mr?null:parseFloat(Mr))}}}return qt.\u0275fac=function(){let jt;return function(Mr){return(jt||(jt=t.n5z(qt)))(Mr||qt)}}(),qt.\u0275dir=t.lG2({type:qt,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Mt,Mr){1&Mt&&t.NdJ("input",function(ui){return Mr.onChange(ui.target.value)})("blur",function(){return Mr.onTouched()})},features:[t._Bn([Zr]),t.qOj]}),qt})(),Ae=(()=>{class qt{}return qt.\u0275fac=function(Mt){return new(Mt||qt)},qt.\u0275mod=t.oAB({type:qt}),qt.\u0275inj=t.cJS({}),qt})();const Wr=new t.OlP("NgModelWithFormControlWarning"),Sn={provide:_e,useExisting:(0,t.Gpc)(()=>yn)};let yn=(()=>{class qt extends _e{constructor(Mt,Mr){super(),this.validators=Mt,this.asyncValidators=Mr,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new t.vpe,this._setValidators(Mt),this._setAsyncValidators(Mr)}ngOnChanges(Mt){this._checkFormPresent(),Mt.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ue(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Mt){const Mr=this.form.get(Mt.path);return wt(Mr,Mt),Mr.updateValueAndValidity({emitEvent:!1}),this.directives.push(Mt),Mr}getControl(Mt){return this.form.get(Mt.path)}removeControl(Mt){gt(Mt.control||null,Mt,!1),Vr(this.directives,Mt)}addFormGroup(Mt){this._setUpFormContainer(Mt)}removeFormGroup(Mt){this._cleanUpFormContainer(Mt)}getFormGroup(Mt){return this.form.get(Mt.path)}addFormArray(Mt){this._setUpFormContainer(Mt)}removeFormArray(Mt){this._cleanUpFormContainer(Mt)}getFormArray(Mt){return this.form.get(Mt.path)}updateModel(Mt,Mr){this.form.get(Mt.path).setValue(Mr)}onSubmit(Mt){return this.submitted=!0,vt(this.form,this.directives),this.ngSubmit.emit(Mt),!1}onReset(){this.resetForm()}resetForm(Mt){this.form.reset(Mt),this.submitted=!1}_updateDomValue(){this.directives.forEach(Mt=>{const Mr=Mt.control,Mn=this.form.get(Mt.path);Mr!==Mn&&(gt(Mr||null,Mt),Ct(Mn)&&(wt(Mn,Mt),Mt.control=Mn))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Mt){const Mr=this.form.get(Mt.path);kt(Mr,Mt),Mr.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Mt){if(this.form){const Mr=this.form.get(Mt.path);Mr&&function xe(qt,jt){return Ue(qt,jt)}(Mr,Mt)&&Mr.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Cr(this.form,this),this._oldForm&&Ue(this._oldForm,this)}_checkFormPresent(){}}return qt.\u0275fac=function(Mt){return new(Mt||qt)(t.Y36(V,10),t.Y36(D,10))},qt.\u0275dir=t.lG2({type:qt,selectors:[["","formGroup",""]],hostBindings:function(Mt,Mr){1&Mt&&t.NdJ("submit",function(ui){return Mr.onSubmit(ui)})("reset",function(){return Mr.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([Sn]),t.qOj,t.TTD]}),qt})();const lr={provide:ne,useExisting:(0,t.Gpc)(()=>_r)};let _r=(()=>{class qt extends ne{constructor(Mt,Mr,Mn,ui,ss){super(),this._ngModelWarningConfig=ss,this._added=!1,this.update=new t.vpe,this._ngModelWarningSent=!1,this._parent=Mt,this._setValidators(Mr),this._setAsyncValidators(Mn),this.valueAccessor=$t(0,ui)}set isDisabled(Mt){}ngOnChanges(Mt){this._added||this._setUpControl(),ke(Mt,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(Mt){this.viewModel=Mt,this.update.emit(Mt)}get path(){return cr(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return qt._ngModelWarningSentOnce=!1,qt.\u0275fac=function(Mt){return new(Mt||qt)(t.Y36(_e,13),t.Y36(V,10),t.Y36(D,10),t.Y36(g,10),t.Y36(Wr,8))},qt.\u0275dir=t.lG2({type:qt,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[t._Bn([lr]),t.qOj,t.TTD]}),qt})();function Wn(qt){return"number"==typeof qt?qt:parseInt(qt,10)}let An=(()=>{class qt{constructor(){this._validator=_}ngOnChanges(Mt){if(this.inputName in Mt){const Mr=this.normalizeInput(Mt[this.inputName].currentValue);this._enabled=this.enabled(Mr),this._validator=this._enabled?this.createValidator(Mr):_,this._onChange&&this._onChange()}}validate(Mt){return this._validator(Mt)}registerOnValidatorChange(Mt){this._onChange=Mt}enabled(Mt){return null!=Mt}}return qt.\u0275fac=function(Mt){return new(Mt||qt)},qt.\u0275dir=t.lG2({type:qt,features:[t.TTD]}),qt})();const Qi={provide:V,useExisting:(0,t.Gpc)(()=>ts),multi:!0};let ts=(()=>{class qt extends An{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Mt=>function $r(qt){return null!=qt&&!1!==qt&&"false"!=`${qt}`}(Mt),this.createValidator=Mt=>ie}enabled(Mt){return Mt}}return qt.\u0275fac=function(){let jt;return function(Mr){return(jt||(jt=t.n5z(qt)))(Mr||qt)}}(),qt.\u0275dir=t.lG2({type:qt,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Mt,Mr){2&Mt&&t.uIk("required",Mr._enabled?"":null)},inputs:{required:"required"},features:[t._Bn([Qi]),t.qOj]}),qt})();const Os={provide:V,useExisting:(0,t.Gpc)(()=>ys),multi:!0};let ys=(()=>{class qt extends An{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=Mt=>Wn(Mt),this.createValidator=Mt=>oe(Mt)}}return qt.\u0275fac=function(){let jt;return function(Mr){return(jt||(jt=t.n5z(qt)))(Mr||qt)}}(),qt.\u0275dir=t.lG2({type:qt,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(Mt,Mr){2&Mt&&t.uIk("minlength",Mr._enabled?Mr.minlength:null)},inputs:{minlength:"minlength"},features:[t._Bn([Os]),t.qOj]}),qt})();const rs={provide:V,useExisting:(0,t.Gpc)(()=>fa),multi:!0};let fa=(()=>{class qt extends An{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=Mt=>Wn(Mt),this.createValidator=Mt=>B(Mt)}}return qt.\u0275fac=function(){let jt;return function(Mr){return(jt||(jt=t.n5z(qt)))(Mr||qt)}}(),qt.\u0275dir=t.lG2({type:qt,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(Mt,Mr){2&Mt&&t.uIk("maxlength",Mr._enabled?Mr.maxlength:null)},inputs:{maxlength:"maxlength"},features:[t._Bn([rs]),t.qOj]}),qt})();const $s={provide:V,useExisting:(0,t.Gpc)(()=>Zs),multi:!0};let Zs=(()=>{class qt extends An{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=Mt=>Mt,this.createValidator=Mt=>s(Mt)}}return qt.\u0275fac=function(){let jt;return function(Mr){return(jt||(jt=t.n5z(qt)))(Mr||qt)}}(),qt.\u0275dir=t.lG2({type:qt,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(Mt,Mr){2&Mt&&t.uIk("pattern",Mr._enabled?Mr.pattern:null)},inputs:{pattern:"pattern"},features:[t._Bn([$s]),t.qOj]}),qt})(),Xs=(()=>{class qt{}return qt.\u0275fac=function(Mt){return new(Mt||qt)},qt.\u0275mod=t.oAB({type:qt}),qt.\u0275inj=t.cJS({imports:[[Ae]]}),qt})(),ks=(()=>{class qt{}return qt.\u0275fac=function(Mt){return new(Mt||qt)},qt.\u0275mod=t.oAB({type:qt}),qt.\u0275inj=t.cJS({imports:[Xs]}),qt})(),ia=(()=>{class qt{static withConfig(Mt){return{ngModule:qt,providers:[{provide:Wr,useValue:Mt.warnOnNgModelWithFormControl}]}}}return qt.\u0275fac=function(Mt){return new(Mt||qt)},qt.\u0275mod=t.oAB({type:qt}),qt.\u0275inj=t.cJS({imports:[Xs]}),qt})(),Ea=(()=>{class qt{group(Mt,Mr=null){const Mn=this._reduceControls(Mt);let Ki,ui=null,ss=null;return null!=Mr&&(function Qa(qt){return void 0!==qt.asyncValidators||void 0!==qt.validators||void 0!==qt.updateOn}(Mr)?(ui=null!=Mr.validators?Mr.validators:null,ss=null!=Mr.asyncValidators?Mr.asyncValidators:null,Ki=null!=Mr.updateOn?Mr.updateOn:void 0):(ui=null!=Mr.validator?Mr.validator:null,ss=null!=Mr.asyncValidator?Mr.asyncValidator:null)),new Nr(Mn,{asyncValidators:ss,updateOn:Ki,validators:ui})}control(Mt,Mr,Mn){return new Ur(Mt,Mr,Mn)}array(Mt,Mr,Mn){const ui=Mt.map(ss=>this._createControl(ss));return new zr(ui,Mr,Mn)}_reduceControls(Mt){const Mr={};return Object.keys(Mt).forEach(Mn=>{Mr[Mn]=this._createControl(Mt[Mn])}),Mr}_createControl(Mt){return Ct(Mt)||zt(Mt)||kr(Mt)?Mt:Array.isArray(Mt)?this.control(Mt[0],Mt.length>1?Mt[1]:null,Mt.length>2?Mt[2]:null):this.control(Mt)}}return qt.\u0275fac=function(Mt){return new(Mt||qt)},qt.\u0275prov=t.Yz7({token:qt,factory:qt.\u0275fac,providedIn:ia}),qt})()},11481:(M,b,n)=>{"use strict";n.d(b,{H7:()=>xe,Qz:()=>H,b2:()=>Te,hm:()=>tt,ok:()=>Pt,q6:()=>ne,se:()=>E,t6:()=>kt});var t=n(36895),e=n(94650);class l extends t.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class h extends l{static makeCurrent(){(0,t.HT)(new h)}onAndCancel(ke,ct,vt){return ke.addEventListener(ct,vt,!1),()=>{ke.removeEventListener(ct,vt,!1)}}dispatchEvent(ke,ct){ke.dispatchEvent(ct)}remove(ke){ke.parentNode&&ke.parentNode.removeChild(ke)}createElement(ke,ct){return(ct=ct||this.getDefaultDocument()).createElement(ke)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(ke){return ke.nodeType===Node.ELEMENT_NODE}isShadowRoot(ke){return ke instanceof DocumentFragment}getGlobalEventTarget(ke,ct){return"window"===ct?window:"document"===ct?ke:"body"===ct?ke.body:null}getBaseHref(ke){const ct=function d(){return r=r||document.querySelector("base"),r?r.getAttribute("href"):null}();return null==ct?null:function g(qe){y=y||document.createElement("a"),y.setAttribute("href",qe);const ke=y.pathname;return"/"===ke.charAt(0)?ke:`/${ke}`}(ct)}resetBaseElement(){r=null}getUserAgent(){return window.navigator.userAgent}getCookie(ke){return(0,t.Mx)(document.cookie,ke)}}let y,r=null;const p=new e.OlP("TRANSITION_ID"),C=[{provide:e.ip1,useFactory:function f(qe,ke,ct){return()=>{ct.get(e.CZH).donePromise.then(()=>{const vt=(0,t.q)(),$t=ke.querySelectorAll(`style[ng-transition="${qe}"]`);for(let Vr=0;Vr<$t.length;Vr++)vt.remove($t[Vr])})}},deps:[p,t.K0,e.zs3],multi:!0}];class N{static init(){(0,e.VLi)(new N)}addToWindow(ke){e.dqk.getAngularTestability=(vt,$t=!0)=>{const Vr=ke.findTestabilityInTree(vt,$t);if(null==Vr)throw new Error("Could not find testability for element.");return Vr},e.dqk.getAllAngularTestabilities=()=>ke.getAllTestabilities(),e.dqk.getAllAngularRootElements=()=>ke.getAllRootElements(),e.dqk.frameworkStabilizers||(e.dqk.frameworkStabilizers=[]),e.dqk.frameworkStabilizers.push(vt=>{const $t=e.dqk.getAllAngularTestabilities();let Vr=$t.length,Sr=!1;const Ar=function(Jr){Sr=Sr||Jr,Vr--,0==Vr&&vt(Sr)};$t.forEach(function(Jr){Jr.whenStable(Ar)})})}findTestabilityInTree(ke,ct,vt){return null==ct?null:ke.getTestability(ct)??(vt?(0,t.q)().isShadowRoot(ct)?this.findTestabilityInTree(ke,ct.host,!0):this.findTestabilityInTree(ke,ct.parentElement,!0):null)}}let a=(()=>{class qe{build(){return new XMLHttpRequest}}return qe.\u0275fac=function(ct){return new(ct||qe)},qe.\u0275prov=e.Yz7({token:qe,factory:qe.\u0275fac}),qe})();const O=new e.OlP("EventManagerPlugins");let H=(()=>{class qe{constructor(ct,vt){this._zone=vt,this._eventNameToPlugin=new Map,ct.forEach($t=>$t.manager=this),this._plugins=ct.slice().reverse()}addEventListener(ct,vt,$t){return this._findPluginFor(vt).addEventListener(ct,vt,$t)}addGlobalEventListener(ct,vt,$t){return this._findPluginFor(vt).addGlobalEventListener(ct,vt,$t)}getZone(){return this._zone}_findPluginFor(ct){const vt=this._eventNameToPlugin.get(ct);if(vt)return vt;const $t=this._plugins;for(let Vr=0;Vr<$t.length;Vr++){const Sr=$t[Vr];if(Sr.supports(ct))return this._eventNameToPlugin.set(ct,Sr),Sr}throw new Error(`No event manager plugin found for event ${ct}`)}}return qe.\u0275fac=function(ct){return new(ct||qe)(e.LFG(O),e.LFG(e.R0b))},qe.\u0275prov=e.Yz7({token:qe,factory:qe.\u0275fac}),qe})();class F{constructor(ke){this._doc=ke}addGlobalEventListener(ke,ct,vt){const $t=(0,t.q)().getGlobalEventTarget(this._doc,ke);if(!$t)throw new Error(`Unsupported event target ${$t} for event ${ct}`);return this.addEventListener($t,ct,vt)}}let V=(()=>{class qe{constructor(){this._stylesSet=new Set}addStyles(ct){const vt=new Set;ct.forEach($t=>{this._stylesSet.has($t)||(this._stylesSet.add($t),vt.add($t))}),this.onStylesAdded(vt)}onStylesAdded(ct){}getAllStyles(){return Array.from(this._stylesSet)}}return qe.\u0275fac=function(ct){return new(ct||qe)},qe.\u0275prov=e.Yz7({token:qe,factory:qe.\u0275fac}),qe})(),D=(()=>{class qe extends V{constructor(ct){super(),this._doc=ct,this._hostNodes=new Map,this._hostNodes.set(ct.head,[])}_addStylesToHost(ct,vt,$t){ct.forEach(Vr=>{const Sr=this._doc.createElement("style");Sr.textContent=Vr,$t.push(vt.appendChild(Sr))})}addHost(ct){const vt=[];this._addStylesToHost(this._stylesSet,ct,vt),this._hostNodes.set(ct,vt)}removeHost(ct){const vt=this._hostNodes.get(ct);vt&&vt.forEach(U),this._hostNodes.delete(ct)}onStylesAdded(ct){this._hostNodes.forEach((vt,$t)=>{this._addStylesToHost(ct,$t,vt)})}ngOnDestroy(){this._hostNodes.forEach(ct=>ct.forEach(U))}}return qe.\u0275fac=function(ct){return new(ct||qe)(e.LFG(t.K0))},qe.\u0275prov=e.Yz7({token:qe,factory:qe.\u0275fac}),qe})();function U(qe){(0,t.q)().remove(qe)}const q={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},J=/%COMP%/g;function s(qe,ke,ct){for(let vt=0;vt<ke.length;vt++){let $t=ke[vt];Array.isArray($t)?s(qe,$t,ct):($t=$t.replace(J,qe),ct.push($t))}return ct}function _(qe){return ke=>{if("__ngUnwrap__"===ke)return qe;!1===qe(ke)&&(ke.preventDefault(),ke.returnValue=!1)}}let E=(()=>{class qe{constructor(ct,vt,$t){this.eventManager=ct,this.sharedStylesHost=vt,this.appId=$t,this.rendererByCompId=new Map,this.defaultRenderer=new x(ct)}createRenderer(ct,vt){if(!ct||!vt)return this.defaultRenderer;switch(vt.encapsulation){case e.ifc.Emulated:{let $t=this.rendererByCompId.get(vt.id);return $t||($t=new Y(this.eventManager,this.sharedStylesHost,vt,this.appId),this.rendererByCompId.set(vt.id,$t)),$t.applyToHost(ct),$t}case 1:case e.ifc.ShadowDom:return new u(this.eventManager,this.sharedStylesHost,ct,vt);default:if(!this.rendererByCompId.has(vt.id)){const $t=s(vt.id,vt.styles,[]);this.sharedStylesHost.addStyles($t),this.rendererByCompId.set(vt.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return qe.\u0275fac=function(ct){return new(ct||qe)(e.LFG(H),e.LFG(D),e.LFG(e.AFp))},qe.\u0275prov=e.Yz7({token:qe,factory:qe.\u0275fac}),qe})();class x{constructor(ke){this.eventManager=ke,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(ke,ct){return ct?document.createElementNS(q[ct]||ct,ke):document.createElement(ke)}createComment(ke){return document.createComment(ke)}createText(ke){return document.createTextNode(ke)}appendChild(ke,ct){ke.appendChild(ct)}insertBefore(ke,ct,vt){ke&&ke.insertBefore(ct,vt)}removeChild(ke,ct){ke&&ke.removeChild(ct)}selectRootElement(ke,ct){let vt="string"==typeof ke?document.querySelector(ke):ke;if(!vt)throw new Error(`The selector "${ke}" did not match any elements`);return ct||(vt.textContent=""),vt}parentNode(ke){return ke.parentNode}nextSibling(ke){return ke.nextSibling}setAttribute(ke,ct,vt,$t){if($t){ct=$t+":"+ct;const Vr=q[$t];Vr?ke.setAttributeNS(Vr,ct,vt):ke.setAttribute(ct,vt)}else ke.setAttribute(ct,vt)}removeAttribute(ke,ct,vt){if(vt){const $t=q[vt];$t?ke.removeAttributeNS($t,ct):ke.removeAttribute(`${vt}:${ct}`)}else ke.removeAttribute(ct)}addClass(ke,ct){ke.classList.add(ct)}removeClass(ke,ct){ke.classList.remove(ct)}setStyle(ke,ct,vt,$t){$t&(e.JOm.DashCase|e.JOm.Important)?ke.style.setProperty(ct,vt,$t&e.JOm.Important?"important":""):ke.style[ct]=vt}removeStyle(ke,ct,vt){vt&e.JOm.DashCase?ke.style.removeProperty(ct):ke.style[ct]=""}setProperty(ke,ct,vt){ke[ct]=vt}setValue(ke,ct){ke.nodeValue=ct}listen(ke,ct,vt){return"string"==typeof ke?this.eventManager.addGlobalEventListener(ke,ct,_(vt)):this.eventManager.addEventListener(ke,ct,_(vt))}}class Y extends x{constructor(ke,ct,vt,$t){super(ke),this.component=vt;const Vr=s($t+"-"+vt.id,vt.styles,[]);ct.addStyles(Vr),this.contentAttr=function oe(qe){return"_ngcontent-%COMP%".replace(J,qe)}($t+"-"+vt.id),this.hostAttr=function B(qe){return"_nghost-%COMP%".replace(J,qe)}($t+"-"+vt.id)}applyToHost(ke){super.setAttribute(ke,this.hostAttr,"")}createElement(ke,ct){const vt=super.createElement(ke,ct);return super.setAttribute(vt,this.contentAttr,""),vt}}class u extends x{constructor(ke,ct,vt,$t){super(ke),this.sharedStylesHost=ct,this.hostEl=vt,this.shadowRoot=vt.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Vr=s($t.id,$t.styles,[]);for(let Sr=0;Sr<Vr.length;Sr++){const Ar=document.createElement("style");Ar.textContent=Vr[Sr],this.shadowRoot.appendChild(Ar)}}nodeOrShadowRoot(ke){return ke===this.hostEl?this.shadowRoot:ke}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(ke,ct){return super.appendChild(this.nodeOrShadowRoot(ke),ct)}insertBefore(ke,ct,vt){return super.insertBefore(this.nodeOrShadowRoot(ke),ct,vt)}removeChild(ke,ct){return super.removeChild(this.nodeOrShadowRoot(ke),ct)}parentNode(ke){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(ke)))}}let W=(()=>{class qe extends F{constructor(ct){super(ct)}supports(ct){return!0}addEventListener(ct,vt,$t){return ct.addEventListener(vt,$t,!1),()=>this.removeEventListener(ct,vt,$t)}removeEventListener(ct,vt,$t){return ct.removeEventListener(vt,$t)}}return qe.\u0275fac=function(ct){return new(ct||qe)(e.LFG(t.K0))},qe.\u0275prov=e.Yz7({token:qe,factory:qe.\u0275fac}),qe})();const fe=["alt","control","meta","shift"],ye={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Qe={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Ot={alt:qe=>qe.altKey,control:qe=>qe.ctrlKey,meta:qe=>qe.metaKey,shift:qe=>qe.shiftKey};let At=(()=>{class qe extends F{constructor(ct){super(ct)}supports(ct){return null!=qe.parseEventName(ct)}addEventListener(ct,vt,$t){const Vr=qe.parseEventName(vt),Sr=qe.eventCallback(Vr.fullKey,$t,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,t.q)().onAndCancel(ct,Vr.domEventName,Sr))}static parseEventName(ct){const vt=ct.toLowerCase().split("."),$t=vt.shift();if(0===vt.length||"keydown"!==$t&&"keyup"!==$t)return null;const Vr=qe._normalizeKey(vt.pop());let Sr="";if(fe.forEach(Jr=>{const Fr=vt.indexOf(Jr);Fr>-1&&(vt.splice(Fr,1),Sr+=Jr+".")}),Sr+=Vr,0!=vt.length||0===Vr.length)return null;const Ar={};return Ar.domEventName=$t,Ar.fullKey=Sr,Ar}static getEventFullKey(ct){let vt="",$t=function Ze(qe){let ke=qe.key;if(null==ke){if(ke=qe.keyIdentifier,null==ke)return"Unidentified";ke.startsWith("U+")&&(ke=String.fromCharCode(parseInt(ke.substring(2),16)),3===qe.location&&Qe.hasOwnProperty(ke)&&(ke=Qe[ke]))}return ye[ke]||ke}(ct);return $t=$t.toLowerCase()," "===$t?$t="space":"."===$t&&($t="dot"),fe.forEach(Vr=>{Vr!=$t&&Ot[Vr](ct)&&(vt+=Vr+".")}),vt+=$t,vt}static eventCallback(ct,vt,$t){return Vr=>{qe.getEventFullKey(Vr)===ct&&$t.runGuarded(()=>vt(Vr))}}static _normalizeKey(ct){return"esc"===ct?"escape":ct}}return qe.\u0275fac=function(ct){return new(ct||qe)(e.LFG(t.K0))},qe.\u0275prov=e.Yz7({token:qe,factory:qe.\u0275fac}),qe})();const ne=(0,e.eFA)(e._c5,"browser",[{provide:e.Lbi,useValue:t.bD},{provide:e.g9A,useValue:function at(){h.makeCurrent(),N.init()},multi:!0},{provide:t.K0,useFactory:function Lt(){return(0,e.RDi)(document),document},deps:[]}]),be=[{provide:e.zSh,useValue:"root"},{provide:e.qLn,useFactory:function Be(){return new e.qLn},deps:[]},{provide:O,useClass:W,multi:!0,deps:[t.K0,e.R0b,e.Lbi]},{provide:O,useClass:At,multi:!0,deps:[t.K0]},{provide:E,useClass:E,deps:[H,D,e.AFp]},{provide:e.FYo,useExisting:E},{provide:V,useExisting:D},{provide:D,useClass:D,deps:[t.K0]},{provide:e.dDg,useClass:e.dDg,deps:[e.R0b]},{provide:H,useClass:H,deps:[O,e.R0b]},{provide:t.JF,useClass:a,deps:[]}];let Te=(()=>{class qe{constructor(ct){if(ct)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(ct){return{ngModule:qe,providers:[{provide:e.AFp,useValue:ct.appId},{provide:p,useExisting:e.AFp},C]}}}return qe.\u0275fac=function(ct){return new(ct||qe)(e.LFG(qe,12))},qe.\u0275mod=e.oAB({type:qe}),qe.\u0275inj=e.cJS({providers:be,imports:[t.ez,e.hGG]}),qe})();typeof window<"u"&&window;const Ue={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},Pt=new e.OlP("HammerGestureConfig"),He=new e.OlP("HammerLoader");let tt=(()=>{class qe{constructor(){this.events=[],this.overrides={}}buildHammer(ct){const vt=new Hammer(ct,this.options);vt.get("pinch").set({enable:!0}),vt.get("rotate").set({enable:!0});for(const $t in this.overrides)vt.get($t).set(this.overrides[$t]);return vt}}return qe.\u0275fac=function(ct){return new(ct||qe)},qe.\u0275prov=e.Yz7({token:qe,factory:qe.\u0275fac}),qe})(),Ke=(()=>{class qe extends F{constructor(ct,vt,$t,Vr){super(ct),this._config=vt,this.console=$t,this.loader=Vr,this._loaderPromise=null}supports(ct){return!(!Ue.hasOwnProperty(ct.toLowerCase())&&!this.isCustomEvent(ct)||!window.Hammer&&!this.loader)}addEventListener(ct,vt,$t){const Vr=this.manager.getZone();if(vt=vt.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();let Sr=!1,Ar=()=>{Sr=!0};return this._loaderPromise.then(()=>{window.Hammer?Sr||(Ar=this.addEventListener(ct,vt,$t)):Ar=()=>{}}).catch(()=>{Ar=()=>{}}),()=>{Ar()}}return Vr.runOutsideAngular(()=>{const Sr=this._config.buildHammer(ct),Ar=function(Jr){Vr.runGuarded(function(){$t(Jr)})};return Sr.on(vt,Ar),()=>{Sr.off(vt,Ar),"function"==typeof Sr.destroy&&Sr.destroy()}})}isCustomEvent(ct){return this._config.events.indexOf(ct)>-1}}return qe.\u0275fac=function(ct){return new(ct||qe)(e.LFG(t.K0),e.LFG(Pt),e.LFG(e.c2e),e.LFG(He,8))},qe.\u0275prov=e.Yz7({token:qe,factory:qe.\u0275fac}),qe})(),kt=(()=>{class qe{}return qe.\u0275fac=function(ct){return new(ct||qe)},qe.\u0275mod=e.oAB({type:qe}),qe.\u0275inj=e.cJS({providers:[{provide:O,useClass:Ke,multi:!0,deps:[t.K0,Pt,e.c2e,[new e.FiY,He]]},{provide:Pt,useClass:tt,deps:[]}]}),qe})(),xe=(()=>{class qe{}return qe.\u0275fac=function(ct){return new(ct||qe)},qe.\u0275prov=e.Yz7({token:qe,factory:function(ct){let vt=null;return vt=ct?new(ct||qe):e.LFG(lt),vt},providedIn:"root"}),qe})(),lt=(()=>{class qe extends xe{constructor(ct){super(),this._doc=ct}sanitize(ct,vt){if(null==vt)return null;switch(ct){case e.q3G.NONE:return vt;case e.q3G.HTML:return(0,e.qzn)(vt,"HTML")?(0,e.z3N)(vt):(0,e.EiD)(this._doc,String(vt)).toString();case e.q3G.STYLE:return(0,e.qzn)(vt,"Style")?(0,e.z3N)(vt):vt;case e.q3G.SCRIPT:if((0,e.qzn)(vt,"Script"))return(0,e.z3N)(vt);throw new Error("unsafe value used in a script context");case e.q3G.URL:return(0,e.yhl)(vt),(0,e.qzn)(vt,"URL")?(0,e.z3N)(vt):(0,e.mCW)(String(vt));case e.q3G.RESOURCE_URL:if((0,e.qzn)(vt,"ResourceURL"))return(0,e.z3N)(vt);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${ct} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(ct){return(0,e.JVY)(ct)}bypassSecurityTrustStyle(ct){return(0,e.L6k)(ct)}bypassSecurityTrustScript(ct){return(0,e.eBb)(ct)}bypassSecurityTrustUrl(ct){return(0,e.LAX)(ct)}bypassSecurityTrustResourceUrl(ct){return(0,e.pB0)(ct)}}return qe.\u0275fac=function(ct){return new(ct||qe)(e.LFG(t.K0))},qe.\u0275prov=e.Yz7({token:qe,factory:function(ct){let vt=null;return vt=ct?new ct:function Fe(qe){return new lt(qe.get(t.K0))}(e.LFG(e.zs3)),vt},providedIn:"root"}),qe})()},13861:(M,b,n)=>{"use strict";n.d(b,{gz:()=>fr,gk:()=>at,m2:()=>Ze,Q3:()=>Be,OD:()=>At,wm:()=>Nt,F0:()=>ga,Od:()=>Qo,Bz:()=>Yi,lC:()=>Qn});var t=n(36895),e=n(94650),l=n(5254),h=n(21086),r=n(591),d=n(72866),y=n(66688),g=n(826),p=n(40448),f=n(33009);const C={};class a{constructor(ut){this.resultSelector=ut}call(ut,et){return et.subscribe(new O(ut,this.resultSelector))}}class O extends g.L{constructor(ut,et){super(ut),this.resultSelector=et,this.active=0,this.values=[],this.observables=[]}_next(ut){this.values.push(C),this.observables.push(ut)}_complete(){const ut=this.observables,et=ut.length;if(0===et)this.destination.complete();else{this.active=et,this.toRespond=et;for(let Wt=0;Wt<et;Wt++)this.add((0,p.D)(this,ut[Wt],void 0,Wt))}}notifyComplete(ut){0==(this.active-=1)&&this.destination.complete()}notifyNext(ut,et,Wt){const ir=this.values,jr=this.toRespond?ir[Wt]===C?--this.toRespond:this.toRespond:0;ir[Wt]=et,0===jr&&(this.resultSelector?this._tryResultSelector(ir):this.destination.next(ir.slice()))}_tryResultSelector(ut){let et;try{et=this.resultSelector.apply(this,ut)}catch(Wt){return void this.destination.error(Wt)}this.destination.next(et)}}var H=n(61737),F=n(84450),V=n(61221),D=n(88514),U=n(56498),q=n(68896),J=n(71762),G=n(8929),ie=n(24850),K=n(87545),re=n(72986),B=n(92014),s=n(92198),_=n(27221),w=n(21406),E=n(92821),x=n(34907),j=n(47314),$=n(35379),u=n(87224),W=n(61709),fe=n(2994),ae=n(74327),ye=n(40537),Qe=n(89146);class Ot{constructor(ut,et){this.id=ut,this.url=et}}class At extends Ot{constructor(ut,et,Wt="imperative",ir=null){super(ut,et),this.navigationTrigger=Wt,this.restoredState=ir}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ze extends Ot{constructor(ut,et,Wt){super(ut,et),this.urlAfterRedirects=Wt}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class at extends Ot{constructor(ut,et,Wt){super(ut,et),this.reason=Wt}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Be extends Ot{constructor(ut,et,Wt){super(ut,et),this.error=Wt}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Lt extends Ot{constructor(ut,et,Wt,ir){super(ut,et),this.urlAfterRedirects=Wt,this.state=ir}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class _e extends Ot{constructor(ut,et,Wt,ir){super(ut,et),this.urlAfterRedirects=Wt,this.state=ir}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ne extends Ot{constructor(ut,et,Wt,ir,Pr){super(ut,et),this.urlAfterRedirects=Wt,this.state=ir,this.shouldActivate=Pr}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class be extends Ot{constructor(ut,et,Wt,ir){super(ut,et),this.urlAfterRedirects=Wt,this.state=ir}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Te extends Ot{constructor(ut,et,Wt,ir){super(ut,et),this.urlAfterRedirects=Wt,this.state=ir}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $e{constructor(ut){this.route=ut}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ft{constructor(ut){this.route=ut}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Ge{constructor(ut){this.snapshot=ut}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ft{constructor(ut){this.snapshot=ut}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class br{constructor(ut){this.snapshot=ut}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class rt{constructor(ut){this.snapshot=ut}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class st{constructor(ut,et,Wt){this.routerEvent=ut,this.position=et,this.anchor=Wt}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Dt="primary";class ot{constructor(ut){this.params=ut||{}}has(ut){return Object.prototype.hasOwnProperty.call(this.params,ut)}get(ut){if(this.has(ut)){const et=this.params[ut];return Array.isArray(et)?et[0]:et}return null}getAll(ut){if(this.has(ut)){const et=this.params[ut];return Array.isArray(et)?et:[et]}return[]}get keys(){return Object.keys(this.params)}}function nt(Tt){return new ot(Tt)}const Yt="ngNavigationCancelingError";function Ne(Tt){const ut=Error("NavigationCancelingError: "+Tt);return ut[Yt]=!0,ut}function ge(Tt,ut,et){const Wt=et.path.split("/");if(Wt.length>Tt.length||"full"===et.pathMatch&&(ut.hasChildren()||Wt.length<Tt.length))return null;const ir={};for(let Pr=0;Pr<Wt.length;Pr++){const jr=Wt[Pr],Xr=Tt[Pr];if(jr.startsWith(":"))ir[jr.substring(1)]=Xr;else if(jr!==Xr.path)return null}return{consumed:Tt.slice(0,Wt.length),posParams:ir}}function We(Tt,ut){const et=Tt?Object.keys(Tt):void 0,Wt=ut?Object.keys(ut):void 0;if(!et||!Wt||et.length!=Wt.length)return!1;let ir;for(let Pr=0;Pr<et.length;Pr++)if(ir=et[Pr],!Re(Tt[ir],ut[ir]))return!1;return!0}function Re(Tt,ut){if(Array.isArray(Tt)&&Array.isArray(ut)){if(Tt.length!==ut.length)return!1;const et=[...Tt].sort(),Wt=[...ut].sort();return et.every((ir,Pr)=>Wt[Pr]===ir)}return Tt===ut}function pt(Tt){return Array.prototype.concat.apply([],Tt)}function Zt(Tt){return Tt.length>0?Tt[Tt.length-1]:null}function wt(Tt,ut){for(const et in Tt)Tt.hasOwnProperty(et)&&ut(Tt[et],et)}function gt(Tt){return(0,e.CqO)(Tt)?Tt:(0,e.QGY)(Tt)?(0,l.D)(Promise.resolve(Tt)):(0,h.of)(Tt)}const hr={exact:function He(Tt,ut,et){if(!ke(Tt.segments,ut.segments)||!xe(Tt.segments,ut.segments,et)||Tt.numberOfChildren!==ut.numberOfChildren)return!1;for(const Wt in ut.children)if(!Tt.children[Wt]||!He(Tt.children[Wt],ut.children[Wt],et))return!1;return!0},subset:Ke},Cr={exact:function Pt(Tt,ut){return We(Tt,ut)},subset:function tt(Tt,ut){return Object.keys(ut).length<=Object.keys(Tt).length&&Object.keys(ut).every(et=>Re(Tt[et],ut[et]))},ignored:()=>!0};function Ue(Tt,ut,et){return hr[et.paths](Tt.root,ut.root,et.matrixParams)&&Cr[et.queryParams](Tt.queryParams,ut.queryParams)&&!("exact"===et.fragment&&Tt.fragment!==ut.fragment)}function Ke(Tt,ut,et){return kt(Tt,ut,ut.segments,et)}function kt(Tt,ut,et,Wt){if(Tt.segments.length>et.length){const ir=Tt.segments.slice(0,et.length);return!(!ke(ir,et)||ut.hasChildren()||!xe(ir,et,Wt))}if(Tt.segments.length===et.length){if(!ke(Tt.segments,et)||!xe(Tt.segments,et,Wt))return!1;for(const ir in ut.children)if(!Tt.children[ir]||!Ke(Tt.children[ir],ut.children[ir],Wt))return!1;return!0}{const ir=et.slice(0,Tt.segments.length),Pr=et.slice(Tt.segments.length);return!!(ke(Tt.segments,ir)&&xe(Tt.segments,ir,Wt)&&Tt.children[Dt])&&kt(Tt.children[Dt],ut,Pr,Wt)}}function xe(Tt,ut,et){return ut.every((Wt,ir)=>Cr[et](Tt[ir].parameters,Wt.parameters))}class Fe{constructor(ut,et,Wt){this.root=ut,this.queryParams=et,this.fragment=Wt}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=nt(this.queryParams)),this._queryParamMap}toString(){return Vr.serialize(this)}}class lt{constructor(ut,et){this.segments=ut,this.children=et,this.parent=null,wt(et,(Wt,ir)=>Wt.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Sr(this)}}class St{constructor(ut,et){this.path=ut,this.parameters=et}get parameterMap(){return this._parameterMap||(this._parameterMap=nt(this.parameters)),this._parameterMap}toString(){return Pe(this)}}function ke(Tt,ut){return Tt.length===ut.length&&Tt.every((et,Wt)=>et.path===ut[Wt].path)}class vt{}class $t{parse(ut){const et=new tr(ut);return new Fe(et.parseRootSegment(),et.parseQueryParams(),et.parseFragment())}serialize(ut){const et=`/${Ar(ut.root,!0)}`,Wt=function Se(Tt){const ut=Object.keys(Tt).map(et=>{const Wt=Tt[et];return Array.isArray(Wt)?Wt.map(ir=>`${Fr(et)}=${Fr(ir)}`).join("&"):`${Fr(et)}=${Fr(Wt)}`}).filter(et=>!!et);return ut.length?`?${ut.join("&")}`:""}(ut.queryParams);return`${et}${Wt}${"string"==typeof ut.fragment?`#${function Gt(Tt){return encodeURI(Tt)}(ut.fragment)}`:""}`}}const Vr=new $t;function Sr(Tt){return Tt.segments.map(ut=>Pe(ut)).join("/")}function Ar(Tt,ut){if(!Tt.hasChildren())return Sr(Tt);if(ut){const et=Tt.children[Dt]?Ar(Tt.children[Dt],!1):"",Wt=[];return wt(Tt.children,(ir,Pr)=>{Pr!==Dt&&Wt.push(`${Pr}:${Ar(ir,!1)}`)}),Wt.length>0?`${et}(${Wt.join("//")})`:et}{const et=function ct(Tt,ut){let et=[];return wt(Tt.children,(Wt,ir)=>{ir===Dt&&(et=et.concat(ut(Wt,ir)))}),wt(Tt.children,(Wt,ir)=>{ir!==Dt&&(et=et.concat(ut(Wt,ir)))}),et}(Tt,(Wt,ir)=>ir===Dt?[Ar(Tt.children[Dt],!1)]:[`${ir}:${Ar(Wt,!1)}`]);return 1===Object.keys(Tt.children).length&&null!=Tt.children[Dt]?`${Sr(Tt)}/${et[0]}`:`${Sr(Tt)}/(${et.join("//")})`}}function Jr(Tt){return encodeURIComponent(Tt).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Fr(Tt){return Jr(Tt).replace(/%3B/gi,";")}function le(Tt){return Jr(Tt).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ce(Tt){return decodeURIComponent(Tt)}function Ie(Tt){return Ce(Tt.replace(/\+/g,"%20"))}function Pe(Tt){return`${le(Tt.path)}${function Oe(Tt){return Object.keys(Tt).map(ut=>`;${le(ut)}=${le(Tt[ut])}`).join("")}(Tt.parameters)}`}const Xe=/^[^\/()?;=#]+/;function Ct(Tt){const ut=Tt.match(Xe);return ut?ut[0]:""}const zt=/^[^=?&#]+/,Br=/^[^&#]+/;class tr{constructor(ut){this.url=ut,this.remaining=ut}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new lt([],{}):new lt([],this.parseChildren())}parseQueryParams(){const ut={};if(this.consumeOptional("?"))do{this.parseQueryParam(ut)}while(this.consumeOptional("&"));return ut}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const ut=[];for(this.peekStartsWith("(")||ut.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),ut.push(this.parseSegment());let et={};this.peekStartsWith("/(")&&(this.capture("/"),et=this.parseParens(!0));let Wt={};return this.peekStartsWith("(")&&(Wt=this.parseParens(!1)),(ut.length>0||Object.keys(et).length>0)&&(Wt[Dt]=new lt(ut,et)),Wt}parseSegment(){const ut=Ct(this.remaining);if(""===ut&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(ut),new St(Ce(ut),this.parseMatrixParams())}parseMatrixParams(){const ut={};for(;this.consumeOptional(";");)this.parseParam(ut);return ut}parseParam(ut){const et=Ct(this.remaining);if(!et)return;this.capture(et);let Wt="";if(this.consumeOptional("=")){const ir=Ct(this.remaining);ir&&(Wt=ir,this.capture(Wt))}ut[Ce(et)]=Ce(Wt)}parseQueryParam(ut){const et=function kr(Tt){const ut=Tt.match(zt);return ut?ut[0]:""}(this.remaining);if(!et)return;this.capture(et);let Wt="";if(this.consumeOptional("=")){const jr=function xt(Tt){const ut=Tt.match(Br);return ut?ut[0]:""}(this.remaining);jr&&(Wt=jr,this.capture(Wt))}const ir=Ie(et),Pr=Ie(Wt);if(ut.hasOwnProperty(ir)){let jr=ut[ir];Array.isArray(jr)||(jr=[jr],ut[ir]=jr),jr.push(Pr)}else ut[ir]=Pr}parseParens(ut){const et={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Wt=Ct(this.remaining),ir=this.remaining[Wt.length];if("/"!==ir&&")"!==ir&&";"!==ir)throw new Error(`Cannot parse url '${this.url}'`);let Pr;Wt.indexOf(":")>-1?(Pr=Wt.substr(0,Wt.indexOf(":")),this.capture(Pr),this.capture(":")):ut&&(Pr=Dt);const jr=this.parseChildren();et[Pr]=1===Object.keys(jr).length?jr[Dt]:new lt([],jr),this.consumeOptional("//")}return et}peekStartsWith(ut){return this.remaining.startsWith(ut)}consumeOptional(ut){return!!this.peekStartsWith(ut)&&(this.remaining=this.remaining.substring(ut.length),!0)}capture(ut){if(!this.consumeOptional(ut))throw new Error(`Expected "${ut}".`)}}class Rr{constructor(ut){this._root=ut}get root(){return this._root.value}parent(ut){const et=this.pathFromRoot(ut);return et.length>1?et[et.length-2]:null}children(ut){const et=Ur(ut,this._root);return et?et.children.map(Wt=>Wt.value):[]}firstChild(ut){const et=Ur(ut,this._root);return et&&et.children.length>0?et.children[0].value:null}siblings(ut){const et=Nr(ut,this._root);return et.length<2?[]:et[et.length-2].children.map(ir=>ir.value).filter(ir=>ir!==ut)}pathFromRoot(ut){return Nr(ut,this._root).map(et=>et.value)}}function Ur(Tt,ut){if(Tt===ut.value)return ut;for(const et of ut.children){const Wt=Ur(Tt,et);if(Wt)return Wt}return null}function Nr(Tt,ut){if(Tt===ut.value)return[ut];for(const et of ut.children){const Wt=Nr(Tt,et);if(Wt.length)return Wt.unshift(ut),Wt}return[]}class zr{constructor(ut,et){this.value=ut,this.children=et}toString(){return`TreeNode(${this.value})`}}function hn(Tt){const ut={};return Tt&&Tt.children.forEach(et=>ut[et.value.outlet]=et),ut}class _n extends Rr{constructor(ut,et){super(ut),this.snapshot=et,ht(this,ut)}toString(){return this.snapshot.toString()}}function Tn(Tt,ut){const et=function sr(Tt,ut){const jr=new we([],{},{},"",{},Dt,ut,null,Tt.root,-1,{});return new De("",new zr(jr,[]))}(Tt,ut),Wt=new r.X([new St("",{})]),ir=new r.X({}),Pr=new r.X({}),jr=new r.X({}),Xr=new r.X(""),Ln=new fr(Wt,ir,jr,Xr,Pr,Dt,ut,et.root);return Ln.snapshot=et.root,new _n(new zr(Ln,[]),et)}class fr{constructor(ut,et,Wt,ir,Pr,jr,Xr,Ln){this.url=ut,this.params=et,this.queryParams=Wt,this.fragment=ir,this.data=Pr,this.outlet=jr,this.component=Xr,this._futureSnapshot=Ln}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,ie.U)(ut=>nt(ut)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ie.U)(ut=>nt(ut)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Kt(Tt,ut="emptyOnly"){const et=Tt.pathFromRoot;let Wt=0;if("always"!==ut)for(Wt=et.length-1;Wt>=1;){const ir=et[Wt],Pr=et[Wt-1];if(ir.routeConfig&&""===ir.routeConfig.path)Wt--;else{if(Pr.component)break;Wt--}}return function Qr(Tt){return Tt.reduce((ut,et)=>({params:{...ut.params,...et.params},data:{...ut.data,...et.data},resolve:{...ut.resolve,...et._resolvedData}}),{params:{},data:{},resolve:{}})}(et.slice(Wt))}class we{constructor(ut,et,Wt,ir,Pr,jr,Xr,Ln,si,is,pi){this.url=ut,this.params=et,this.queryParams=Wt,this.fragment=ir,this.data=Pr,this.outlet=jr,this.component=Xr,this.routeConfig=Ln,this._urlSegment=si,this._lastPathIndex=is,this._resolve=pi}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=nt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=nt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Wt=>Wt.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class De extends Rr{constructor(ut,et){super(et),this.url=ut,ht(this,et)}toString(){return Vt(this._root)}}function ht(Tt,ut){ut.value._routerState=Tt,ut.children.forEach(et=>ht(Tt,et))}function Vt(Tt){const ut=Tt.children.length>0?` { ${Tt.children.map(Vt).join(", ")} } `:"";return`${Tt.value}${ut}`}function yt(Tt){if(Tt.snapshot){const ut=Tt.snapshot,et=Tt._futureSnapshot;Tt.snapshot=et,We(ut.queryParams,et.queryParams)||Tt.queryParams.next(et.queryParams),ut.fragment!==et.fragment&&Tt.fragment.next(et.fragment),We(ut.params,et.params)||Tt.params.next(et.params),function Me(Tt,ut){if(Tt.length!==ut.length)return!1;for(let et=0;et<Tt.length;++et)if(!We(Tt[et],ut[et]))return!1;return!0}(ut.url,et.url)||Tt.url.next(et.url),We(ut.data,et.data)||Tt.data.next(et.data)}else Tt.snapshot=Tt._futureSnapshot,Tt.data.next(Tt._futureSnapshot.data)}function gr(Tt,ut){const et=We(Tt.params,ut.params)&&function qe(Tt,ut){return ke(Tt,ut)&&Tt.every((et,Wt)=>We(et.parameters,ut[Wt].parameters))}(Tt.url,ut.url);return et&&!(!Tt.parent!=!ut.parent)&&(!Tt.parent||gr(Tt.parent,ut.parent))}function Zr(Tt,ut,et){if(et&&Tt.shouldReuseRoute(ut.value,et.value.snapshot)){const Wt=et.value;Wt._futureSnapshot=ut.value;const ir=function fn(Tt,ut,et){return ut.children.map(Wt=>{for(const ir of et.children)if(Tt.shouldReuseRoute(Wt.value,ir.value.snapshot))return Zr(Tt,Wt,ir);return Zr(Tt,Wt)})}(Tt,ut,et);return new zr(Wt,ir)}{if(Tt.shouldAttach(ut.value)){const Pr=Tt.retrieve(ut.value);if(null!==Pr){const jr=Pr.route;return jr.value._futureSnapshot=ut.value,jr.children=ut.children.map(Xr=>Zr(Tt,Xr)),jr}}const Wt=function un(Tt){return new fr(new r.X(Tt.url),new r.X(Tt.params),new r.X(Tt.queryParams),new r.X(Tt.fragment),new r.X(Tt.data),Tt.outlet,Tt.component,Tt)}(ut.value),ir=ut.children.map(Pr=>Zr(Tt,Pr));return new zr(Wt,ir)}}function Ae(Tt){return"object"==typeof Tt&&null!=Tt&&!Tt.outlets&&!Tt.segmentPath}function it(Tt){return"object"==typeof Tt&&null!=Tt&&Tt.outlets}function Bt(Tt,ut,et,Wt,ir){let Pr={};if(Wt&&wt(Wt,(Xr,Ln)=>{Pr[Ln]=Array.isArray(Xr)?Xr.map(si=>`${si}`):`${Xr}`}),Tt===ut)return new Fe(et,Pr,ir);const jr=pr(Tt,ut,et);return new Fe(jr,Pr,ir)}function pr(Tt,ut,et){const Wt={};return wt(Tt.children,(ir,Pr)=>{Wt[Pr]=ir===ut?et:pr(ir,ut,et)}),new lt(Tt.segments,Wt)}class Or{constructor(ut,et,Wt){if(this.isAbsolute=ut,this.numberOfDoubleDots=et,this.commands=Wt,ut&&Wt.length>0&&Ae(Wt[0]))throw new Error("Root segment cannot have matrix parameters");const ir=Wt.find(it);if(ir&&ir!==Zt(Wt))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class sn{constructor(ut,et,Wt){this.segmentGroup=ut,this.processChildren=et,this.index=Wt}}function Rn(Tt,ut,et){if(Tt||(Tt=new lt([],{})),0===Tt.segments.length&&Tt.hasChildren())return Kn(Tt,ut,et);const Wt=function vi(Tt,ut,et){let Wt=0,ir=ut;const Pr={match:!1,pathIndex:0,commandIndex:0};for(;ir<Tt.segments.length;){if(Wt>=et.length)return Pr;const jr=Tt.segments[ir],Xr=et[Wt];if(it(Xr))break;const Ln=`${Xr}`,si=Wt<et.length-1?et[Wt+1]:null;if(ir>0&&void 0===Ln)break;if(Ln&&si&&"object"==typeof si&&void 0===si.outlets){if(!_r(Ln,si,jr))return Pr;Wt+=2}else{if(!_r(Ln,{},jr))return Pr;Wt++}ir++}return{match:!0,pathIndex:ir,commandIndex:Wt}}(Tt,ut,et),ir=et.slice(Wt.commandIndex);if(Wt.match&&Wt.pathIndex<Tt.segments.length){const Pr=new lt(Tt.segments.slice(0,Wt.pathIndex),{});return Pr.children[Dt]=new lt(Tt.segments.slice(Wt.pathIndex),Tt.children),Kn(Pr,0,ir)}return Wt.match&&0===ir.length?new lt(Tt.segments,{}):Wt.match&&!Tt.hasChildren()?li(Tt,ut,et):Wt.match?Kn(Tt,0,ir):li(Tt,ut,et)}function Kn(Tt,ut,et){if(0===et.length)return new lt(Tt.segments,{});{const Wt=function yn(Tt){return it(Tt[0])?Tt[0].outlets:{[Dt]:Tt}}(et),ir={};return wt(Wt,(Pr,jr)=>{"string"==typeof Pr&&(Pr=[Pr]),null!==Pr&&(ir[jr]=Rn(Tt.children[jr],ut,Pr))}),wt(Tt.children,(Pr,jr)=>{void 0===Wt[jr]&&(ir[jr]=Pr)}),new lt(Tt.segments,ir)}}function li(Tt,ut,et){const Wt=Tt.segments.slice(0,ut);let ir=0;for(;ir<et.length;){const Pr=et[ir];if(it(Pr)){const Ln=ci(Pr.outlets);return new lt(Wt,Ln)}if(0===ir&&Ae(et[0])){Wt.push(new St(Tt.segments[ut].path,lr(et[0]))),ir++;continue}const jr=it(Pr)?Pr.outlets[Dt]:`${Pr}`,Xr=ir<et.length-1?et[ir+1]:null;jr&&Xr&&Ae(Xr)?(Wt.push(new St(jr,lr(Xr))),ir+=2):(Wt.push(new St(jr,{})),ir++)}return new lt(Wt,{})}function ci(Tt){const ut={};return wt(Tt,(et,Wt)=>{"string"==typeof et&&(et=[et]),null!==et&&(ut[Wt]=li(new lt([],{}),0,et))}),ut}function lr(Tt){const ut={};return wt(Tt,(et,Wt)=>ut[Wt]=`${et}`),ut}function _r(Tt,ut,et){return Tt==et.path&&We(ut,et.parameters)}class xr{constructor(ut,et,Wt,ir){this.routeReuseStrategy=ut,this.futureState=et,this.currState=Wt,this.forwardEvent=ir}activate(ut){const et=this.futureState._root,Wt=this.currState?this.currState._root:null;this.deactivateChildRoutes(et,Wt,ut),yt(this.futureState.root),this.activateChildRoutes(et,Wt,ut)}deactivateChildRoutes(ut,et,Wt){const ir=hn(et);ut.children.forEach(Pr=>{const jr=Pr.value.outlet;this.deactivateRoutes(Pr,ir[jr],Wt),delete ir[jr]}),wt(ir,(Pr,jr)=>{this.deactivateRouteAndItsChildren(Pr,Wt)})}deactivateRoutes(ut,et,Wt){const ir=ut.value,Pr=et?et.value:null;if(ir===Pr)if(ir.component){const jr=Wt.getContext(ir.outlet);jr&&this.deactivateChildRoutes(ut,et,jr.children)}else this.deactivateChildRoutes(ut,et,Wt);else Pr&&this.deactivateRouteAndItsChildren(et,Wt)}deactivateRouteAndItsChildren(ut,et){ut.value.component&&this.routeReuseStrategy.shouldDetach(ut.value.snapshot)?this.detachAndStoreRouteSubtree(ut,et):this.deactivateRouteAndOutlet(ut,et)}detachAndStoreRouteSubtree(ut,et){const Wt=et.getContext(ut.value.outlet),ir=Wt&&ut.value.component?Wt.children:et,Pr=hn(ut);for(const jr of Object.keys(Pr))this.deactivateRouteAndItsChildren(Pr[jr],ir);if(Wt&&Wt.outlet){const jr=Wt.outlet.detach(),Xr=Wt.children.onOutletDeactivated();this.routeReuseStrategy.store(ut.value.snapshot,{componentRef:jr,route:ut,contexts:Xr})}}deactivateRouteAndOutlet(ut,et){const Wt=et.getContext(ut.value.outlet),ir=Wt&&ut.value.component?Wt.children:et,Pr=hn(ut);for(const jr of Object.keys(Pr))this.deactivateRouteAndItsChildren(Pr[jr],ir);Wt&&Wt.outlet&&(Wt.outlet.deactivate(),Wt.children.onOutletDeactivated(),Wt.attachRef=null,Wt.resolver=null,Wt.route=null)}activateChildRoutes(ut,et,Wt){const ir=hn(et);ut.children.forEach(Pr=>{this.activateRoutes(Pr,ir[Pr.value.outlet],Wt),this.forwardEvent(new rt(Pr.value.snapshot))}),ut.children.length&&this.forwardEvent(new Ft(ut.value.snapshot))}activateRoutes(ut,et,Wt){const ir=ut.value,Pr=et?et.value:null;if(yt(ir),ir===Pr)if(ir.component){const jr=Wt.getOrCreateContext(ir.outlet);this.activateChildRoutes(ut,et,jr.children)}else this.activateChildRoutes(ut,et,Wt);else if(ir.component){const jr=Wt.getOrCreateContext(ir.outlet);if(this.routeReuseStrategy.shouldAttach(ir.snapshot)){const Xr=this.routeReuseStrategy.retrieve(ir.snapshot);this.routeReuseStrategy.store(ir.snapshot,null),jr.children.onOutletReAttached(Xr.contexts),jr.attachRef=Xr.componentRef,jr.route=Xr.route.value,jr.outlet&&jr.outlet.attach(Xr.componentRef,Xr.route.value),yt(Xr.route.value),this.activateChildRoutes(ut,null,jr.children)}else{const Xr=function dn(Tt){for(let ut=Tt.parent;ut;ut=ut.parent){const et=ut.routeConfig;if(et&&et._loadedConfig)return et._loadedConfig;if(et&&et.component)return null}return null}(ir.snapshot),Ln=Xr?Xr.module.componentFactoryResolver:null;jr.attachRef=null,jr.route=ir,jr.resolver=Ln,jr.outlet&&jr.outlet.activateWith(ir,Ln),this.activateChildRoutes(ut,null,jr.children)}}else this.activateChildRoutes(ut,null,Wt)}}class bn{constructor(ut,et){this.routes=ut,this.module=et}}function Un(Tt){return"function"==typeof Tt}function Vn(Tt){return Tt instanceof Fe}const Wn=Symbol("INITIAL_VALUE");function $r(){return(0,K.w)(Tt=>function N(...Tt){let ut,et;return(0,d.K)(Tt[Tt.length-1])&&(et=Tt.pop()),"function"==typeof Tt[Tt.length-1]&&(ut=Tt.pop()),1===Tt.length&&(0,y.k)(Tt[0])&&(Tt=Tt[0]),(0,f.n)(Tt,et).lift(new a(ut))}(Tt.map(ut=>ut.pipe((0,re.q)(1),function oe(...Tt){const ut=Tt[Tt.length-1];return(0,d.K)(ut)?(Tt.pop(),et=>(0,V.z)(Tt,et,ut)):et=>(0,V.z)(Tt,et)}(Wn)))).pipe((0,B.R)((ut,et)=>{let Wt=!1;return et.reduce((ir,Pr,jr)=>ir!==Wn?ir:(Pr===Wn&&(Wt=!0),Wt||!1!==Pr&&jr!==et.length-1&&!Vn(Pr)?ir:Pr),ut)},Wn),(0,s.h)(ut=>ut!==Wn),(0,ie.U)(ut=>Vn(ut)?ut:!0===ut),(0,re.q)(1)))}class Pn{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new An,this.attachRef=null}}class An{constructor(){this.contexts=new Map}onChildOutletCreated(ut,et){const Wt=this.getOrCreateContext(ut);Wt.outlet=et,this.contexts.set(ut,Wt)}onChildOutletDestroyed(ut){const et=this.getContext(ut);et&&(et.outlet=null,et.attachRef=null)}onOutletDeactivated(){const ut=this.contexts;return this.contexts=new Map,ut}onOutletReAttached(ut){this.contexts=ut}getOrCreateContext(ut){let et=this.getContext(ut);return et||(et=new Pn,this.contexts.set(ut,et)),et}getContext(ut){return this.contexts.get(ut)||null}}let Qn=(()=>{class Tt{constructor(et,Wt,ir,Pr,jr){this.parentContexts=et,this.location=Wt,this.resolver=ir,this.changeDetector=jr,this.activated=null,this._activatedRoute=null,this.activateEvents=new e.vpe,this.deactivateEvents=new e.vpe,this.attachEvents=new e.vpe,this.detachEvents=new e.vpe,this.name=Pr||Dt,et.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const et=this.parentContexts.getContext(this.name);et&&et.route&&(et.attachRef?this.attach(et.attachRef,et.route):this.activateWith(et.route,et.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const et=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(et.instance),et}attach(et,Wt){this.activated=et,this._activatedRoute=Wt,this.location.insert(et.hostView),this.attachEvents.emit(et.instance)}deactivate(){if(this.activated){const et=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(et)}}activateWith(et,Wt){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=et;const jr=(Wt=Wt||this.resolver).resolveComponentFactory(et._futureSnapshot.routeConfig.component),Xr=this.parentContexts.getOrCreateContext(this.name).children,Ln=new yi(et,Xr,this.location.injector);this.activated=this.location.createComponent(jr,this.location.length,Ln),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return Tt.\u0275fac=function(et){return new(et||Tt)(e.Y36(An),e.Y36(e.s_b),e.Y36(e._Vd),e.$8M("name"),e.Y36(e.sBO))},Tt.\u0275dir=e.lG2({type:Tt,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),Tt})();class yi{constructor(ut,et,Wt){this.route=ut,this.childContexts=et,this.parent=Wt}get(ut,et){return ut===fr?this.route:ut===An?this.childContexts:this.parent.get(ut,et)}}let oi=(()=>{class Tt{}return Tt.\u0275fac=function(et){return new(et||Tt)},Tt.\u0275cmp=e.Xpm({type:Tt,selectors:[["ng-component"]],decls:1,vars:0,template:function(et,Wt){1&et&&e._UZ(0,"router-outlet")},directives:[Qn],encapsulation:2}),Tt})();function di(Tt,ut=""){for(let et=0;et<Tt.length;et++){const Wt=Tt[et];Qi(Wt,Di(ut,Wt))}}function Qi(Tt,ut){Tt.children&&di(Tt.children,ut)}function Di(Tt,ut){return ut?Tt||ut.path?Tt&&!ut.path?`${Tt}/`:!Tt&&ut.path?ut.path:`${Tt}/${ut.path}`:"":Tt}function ts(Tt){const ut=Tt.children&&Tt.children.map(ts),et=ut?{...Tt,children:ut}:{...Tt};return!et.component&&(ut||et.loadChildren)&&et.outlet&&et.outlet!==Dt&&(et.component=oi),et}function Oi(Tt){return Tt.outlet||Dt}function hs(Tt,ut){const et=Tt.filter(Wt=>Oi(Wt)===ut);return et.push(...Tt.filter(Wt=>Oi(Wt)!==ut)),et}const Fi={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Os(Tt,ut,et){if(""===ut.path)return"full"===ut.pathMatch&&(Tt.hasChildren()||et.length>0)?{...Fi}:{matched:!0,consumedSegments:[],remainingSegments:et,parameters:{},positionalParamSegments:{}};const ir=(ut.matcher||ge)(et,Tt,ut);if(!ir)return{...Fi};const Pr={};wt(ir.posParams,(Xr,Ln)=>{Pr[Ln]=Xr.path});const jr=ir.consumed.length>0?{...Pr,...ir.consumed[ir.consumed.length-1].parameters}:Pr;return{matched:!0,consumedSegments:ir.consumed,remainingSegments:et.slice(ir.consumed.length),parameters:jr,positionalParamSegments:ir.posParams??{}}}function ys(Tt,ut,et,Wt,ir="corrected"){if(et.length>0&&function $s(Tt,ut,et){return et.some(Wt=>ps(Tt,ut,Wt)&&Oi(Wt)!==Dt)}(Tt,et,Wt)){const jr=new lt(ut,function fa(Tt,ut,et,Wt){const ir={};ir[Dt]=Wt,Wt._sourceSegment=Tt,Wt._segmentIndexShift=ut.length;for(const Pr of et)if(""===Pr.path&&Oi(Pr)!==Dt){const jr=new lt([],{});jr._sourceSegment=Tt,jr._segmentIndexShift=ut.length,ir[Oi(Pr)]=jr}return ir}(Tt,ut,Wt,new lt(et,Tt.children)));return jr._sourceSegment=Tt,jr._segmentIndexShift=ut.length,{segmentGroup:jr,slicedSegments:[]}}if(0===et.length&&function Zs(Tt,ut,et){return et.some(Wt=>ps(Tt,ut,Wt))}(Tt,et,Wt)){const jr=new lt(Tt.segments,function rs(Tt,ut,et,Wt,ir,Pr){const jr={};for(const Xr of Wt)if(ps(Tt,et,Xr)&&!ir[Oi(Xr)]){const Ln=new lt([],{});Ln._sourceSegment=Tt,Ln._segmentIndexShift="legacy"===Pr?Tt.segments.length:ut.length,jr[Oi(Xr)]=Ln}return{...ir,...jr}}(Tt,ut,et,Wt,Tt.children,ir));return jr._sourceSegment=Tt,jr._segmentIndexShift=ut.length,{segmentGroup:jr,slicedSegments:et}}const Pr=new lt(Tt.segments,Tt.children);return Pr._sourceSegment=Tt,Pr._segmentIndexShift=ut.length,{segmentGroup:Pr,slicedSegments:et}}function ps(Tt,ut,et){return(!(Tt.hasChildren()||ut.length>0)||"full"!==et.pathMatch)&&""===et.path}function Ta(Tt,ut,et,Wt){return!!(Oi(Tt)===Wt||Wt!==Dt&&ps(ut,et,Tt))&&("**"===Tt.path||Os(ut,Tt,et).matched)}function ka(Tt,ut,et){return 0===ut.length&&!Tt.children[et]}class Xs{constructor(ut){this.segmentGroup=ut||null}}class ks{constructor(ut){this.urlTree=ut}}function ia(Tt){return(0,H._)(new Xs(Tt))}function Qa(Tt){return(0,H._)(new ks(Tt))}class jt{constructor(ut,et,Wt,ir,Pr){this.configLoader=et,this.urlSerializer=Wt,this.urlTree=ir,this.config=Pr,this.allowRedirects=!0,this.ngModule=ut.get(e.h0i)}apply(){const ut=ys(this.urlTree.root,[],[],this.config).segmentGroup,et=new lt(ut.segments,ut.children);return this.expandSegmentGroup(this.ngModule,this.config,et,Dt).pipe((0,ie.U)(Pr=>this.createUrlTree(Mr(Pr),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,_.K)(Pr=>{if(Pr instanceof ks)return this.allowRedirects=!1,this.match(Pr.urlTree);throw Pr instanceof Xs?this.noMatchError(Pr):Pr}))}match(ut){return this.expandSegmentGroup(this.ngModule,this.config,ut.root,Dt).pipe((0,ie.U)(ir=>this.createUrlTree(Mr(ir),ut.queryParams,ut.fragment))).pipe((0,_.K)(ir=>{throw ir instanceof Xs?this.noMatchError(ir):ir}))}noMatchError(ut){return new Error(`Cannot match any routes. URL Segment: '${ut.segmentGroup}'`)}createUrlTree(ut,et,Wt){const ir=ut.segments.length>0?new lt([],{[Dt]:ut}):ut;return new Fe(ir,et,Wt)}expandSegmentGroup(ut,et,Wt,ir){return 0===Wt.segments.length&&Wt.hasChildren()?this.expandChildren(ut,et,Wt).pipe((0,ie.U)(Pr=>new lt([],Pr))):this.expandSegment(ut,Wt,et,Wt.segments,ir,!0)}expandChildren(ut,et,Wt){const ir=[];for(const Pr of Object.keys(Wt.children))"primary"===Pr?ir.unshift(Pr):ir.push(Pr);return(0,l.D)(ir).pipe((0,w.b)(Pr=>{const jr=Wt.children[Pr],Xr=hs(et,Pr);return this.expandSegmentGroup(ut,Xr,jr,Pr).pipe((0,ie.U)(Ln=>({segment:Ln,outlet:Pr})))}),(0,B.R)((Pr,jr)=>(Pr[jr.outlet]=jr.segment,Pr),{}),function Y(Tt,ut){const et=arguments.length>=2;return Wt=>Wt.pipe(Tt?(0,s.h)((ir,Pr)=>Tt(ir,Pr,Wt)):$.y,(0,E.h)(1),et?(0,j.d)(ut):(0,x.T)(()=>new F.K))}())}expandSegment(ut,et,Wt,ir,Pr,jr){return(0,l.D)(Wt).pipe((0,w.b)(Xr=>this.expandSegmentAgainstRoute(ut,et,Wt,Xr,ir,Pr,jr).pipe((0,_.K)(si=>{if(si instanceof Xs)return(0,h.of)(null);throw si}))),(0,u.P)(Xr=>!!Xr),(0,_.K)((Xr,Ln)=>{if(Xr instanceof F.K||"EmptyError"===Xr.name)return ka(et,ir,Pr)?(0,h.of)(new lt([],{})):ia(et);throw Xr}))}expandSegmentAgainstRoute(ut,et,Wt,ir,Pr,jr,Xr){return Ta(ir,et,Pr,jr)?void 0===ir.redirectTo?this.matchSegmentAgainstRoute(ut,et,ir,Pr,jr):Xr&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(ut,et,Wt,ir,Pr,jr):ia(et):ia(et)}expandSegmentAgainstRouteUsingRedirect(ut,et,Wt,ir,Pr,jr){return"**"===ir.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(ut,Wt,ir,jr):this.expandRegularSegmentAgainstRouteUsingRedirect(ut,et,Wt,ir,Pr,jr)}expandWildCardWithParamsAgainstRouteUsingRedirect(ut,et,Wt,ir){const Pr=this.applyRedirectCommands([],Wt.redirectTo,{});return Wt.redirectTo.startsWith("/")?Qa(Pr):this.lineralizeSegments(Wt,Pr).pipe((0,W.zg)(jr=>{const Xr=new lt(jr,{});return this.expandSegment(ut,Xr,et,jr,ir,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(ut,et,Wt,ir,Pr,jr){const{matched:Xr,consumedSegments:Ln,remainingSegments:si,positionalParamSegments:is}=Os(et,ir,Pr);if(!Xr)return ia(et);const pi=this.applyRedirectCommands(Ln,ir.redirectTo,is);return ir.redirectTo.startsWith("/")?Qa(pi):this.lineralizeSegments(ir,pi).pipe((0,W.zg)(Ss=>this.expandSegment(ut,et,Wt,Ss.concat(si),jr,!1)))}matchSegmentAgainstRoute(ut,et,Wt,ir,Pr){if("**"===Wt.path)return Wt.loadChildren?(Wt._loadedConfig?(0,h.of)(Wt._loadedConfig):this.configLoader.load(ut.injector,Wt)).pipe((0,ie.U)(pi=>(Wt._loadedConfig=pi,new lt(ir,{})))):(0,h.of)(new lt(ir,{}));const{matched:jr,consumedSegments:Xr,remainingSegments:Ln}=Os(et,Wt,ir);return jr?this.getChildConfig(ut,Wt,ir).pipe((0,W.zg)(is=>{const pi=is.module,Ss=is.routes,{segmentGroup:cs,slicedSegments:Wi}=ys(et,Xr,Ln,Ss),Zi=new lt(cs.segments,cs.children);if(0===Wi.length&&Zi.hasChildren())return this.expandChildren(pi,Ss,Zi).pipe((0,ie.U)(kl=>new lt(Xr,kl)));if(0===Ss.length&&0===Wi.length)return(0,h.of)(new lt(Xr,{}));const Bi=Oi(Wt)===Pr;return this.expandSegment(pi,Zi,Ss,Wi,Bi?Dt:Pr,!0).pipe((0,ie.U)(xi=>new lt(Xr.concat(xi.segments),xi.children)))})):ia(et)}getChildConfig(ut,et,Wt){return et.children?(0,h.of)(new bn(et.children,ut)):et.loadChildren?void 0!==et._loadedConfig?(0,h.of)(et._loadedConfig):this.runCanLoadGuards(ut.injector,et,Wt).pipe((0,W.zg)(ir=>ir?this.configLoader.load(ut.injector,et).pipe((0,ie.U)(Pr=>(et._loadedConfig=Pr,Pr))):function Ma(Tt){return(0,H._)(Ne(`Cannot load children because the guard of the route "path: '${Tt.path}'" returned false`))}(et))):(0,h.of)(new bn([],ut))}runCanLoadGuards(ut,et,Wt){const ir=et.canLoad;if(!ir||0===ir.length)return(0,h.of)(!0);const Pr=ir.map(jr=>{const Xr=ut.get(jr);let Ln;if(function zn(Tt){return Tt&&Un(Tt.canLoad)}(Xr))Ln=Xr.canLoad(et,Wt);else{if(!Un(Xr))throw new Error("Invalid CanLoad guard");Ln=Xr(et,Wt)}return gt(Ln)});return(0,h.of)(Pr).pipe($r(),(0,fe.b)(jr=>{if(!Vn(jr))return;const Xr=Ne(`Redirecting to "${this.urlSerializer.serialize(jr)}"`);throw Xr.url=jr,Xr}),(0,ie.U)(jr=>!0===jr))}lineralizeSegments(ut,et){let Wt=[],ir=et.root;for(;;){if(Wt=Wt.concat(ir.segments),0===ir.numberOfChildren)return(0,h.of)(Wt);if(ir.numberOfChildren>1||!ir.children[Dt])return(0,H._)(new Error(`Only absolute redirects can have named outlets. redirectTo: '${ut.redirectTo}'`));ir=ir.children[Dt]}}applyRedirectCommands(ut,et,Wt){return this.applyRedirectCreatreUrlTree(et,this.urlSerializer.parse(et),ut,Wt)}applyRedirectCreatreUrlTree(ut,et,Wt,ir){const Pr=this.createSegmentGroup(ut,et.root,Wt,ir);return new Fe(Pr,this.createQueryParams(et.queryParams,this.urlTree.queryParams),et.fragment)}createQueryParams(ut,et){const Wt={};return wt(ut,(ir,Pr)=>{if("string"==typeof ir&&ir.startsWith(":")){const Xr=ir.substring(1);Wt[Pr]=et[Xr]}else Wt[Pr]=ir}),Wt}createSegmentGroup(ut,et,Wt,ir){const Pr=this.createSegments(ut,et.segments,Wt,ir);let jr={};return wt(et.children,(Xr,Ln)=>{jr[Ln]=this.createSegmentGroup(ut,Xr,Wt,ir)}),new lt(Pr,jr)}createSegments(ut,et,Wt,ir){return et.map(Pr=>Pr.path.startsWith(":")?this.findPosParam(ut,Pr,ir):this.findOrReturn(Pr,Wt))}findPosParam(ut,et,Wt){const ir=Wt[et.path.substring(1)];if(!ir)throw new Error(`Cannot redirect to '${ut}'. Cannot find '${et.path}'.`);return ir}findOrReturn(ut,et){let Wt=0;for(const ir of et){if(ir.path===ut.path)return et.splice(Wt),ir;Wt++}return ut}}function Mr(Tt){const ut={};for(const Wt of Object.keys(Tt.children)){const Pr=Mr(Tt.children[Wt]);(Pr.segments.length>0||Pr.hasChildren())&&(ut[Wt]=Pr)}return function Mt(Tt){if(1===Tt.numberOfChildren&&Tt.children[Dt]){const ut=Tt.children[Dt];return new lt(Tt.segments.concat(ut.segments),ut.children)}return Tt}(new lt(Tt.segments,ut))}class ui{constructor(ut){this.path=ut,this.route=this.path[this.path.length-1]}}class ss{constructor(ut,et){this.component=ut,this.route=et}}function Ki(Tt,ut,et){const Wt=Tt._root;return xn(Wt,ut?ut._root:null,et,[Wt.value])}function Na(Tt,ut,et){const Wt=function sa(Tt){if(!Tt)return null;for(let ut=Tt.parent;ut;ut=ut.parent){const et=ut.routeConfig;if(et&&et._loadedConfig)return et._loadedConfig}return null}(ut);return(Wt?Wt.module.injector:et).get(Tt)}function xn(Tt,ut,et,Wt,ir={canDeactivateChecks:[],canActivateChecks:[]}){const Pr=hn(ut);return Tt.children.forEach(jr=>{(function Hi(Tt,ut,et,Wt,ir={canDeactivateChecks:[],canActivateChecks:[]}){const Pr=Tt.value,jr=ut?ut.value:null,Xr=et?et.getContext(Tt.value.outlet):null;if(jr&&Pr.routeConfig===jr.routeConfig){const Ln=function Xa(Tt,ut,et){if("function"==typeof et)return et(Tt,ut);switch(et){case"pathParamsChange":return!ke(Tt.url,ut.url);case"pathParamsOrQueryParamsChange":return!ke(Tt.url,ut.url)||!We(Tt.queryParams,ut.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!gr(Tt,ut)||!We(Tt.queryParams,ut.queryParams);default:return!gr(Tt,ut)}}(jr,Pr,Pr.routeConfig.runGuardsAndResolvers);Ln?ir.canActivateChecks.push(new ui(Wt)):(Pr.data=jr.data,Pr._resolvedData=jr._resolvedData),xn(Tt,ut,Pr.component?Xr?Xr.children:null:et,Wt,ir),Ln&&Xr&&Xr.outlet&&Xr.outlet.isActivated&&ir.canDeactivateChecks.push(new ss(Xr.outlet.component,jr))}else jr&&rr(ut,Xr,ir),ir.canActivateChecks.push(new ui(Wt)),xn(Tt,null,Pr.component?Xr?Xr.children:null:et,Wt,ir)})(jr,Pr[jr.value.outlet],et,Wt.concat([jr.value]),ir),delete Pr[jr.value.outlet]}),wt(Pr,(jr,Xr)=>rr(jr,et.getContext(Xr),ir)),ir}function rr(Tt,ut,et){const Wt=hn(Tt),ir=Tt.value;wt(Wt,(Pr,jr)=>{rr(Pr,ir.component?ut?ut.children.getContext(jr):null:ut,et)}),et.canDeactivateChecks.push(new ss(ir.component&&ut&&ut.outlet&&ut.outlet.isActivated?ut.outlet.component:null,ir))}class ha{}function As(Tt){return new U.y(ut=>ut.error(Tt))}class pa{constructor(ut,et,Wt,ir,Pr,jr){this.rootComponentType=ut,this.config=et,this.urlTree=Wt,this.url=ir,this.paramsInheritanceStrategy=Pr,this.relativeLinkResolution=jr}recognize(){const ut=ys(this.urlTree.root,[],[],this.config.filter(jr=>void 0===jr.redirectTo),this.relativeLinkResolution).segmentGroup,et=this.processSegmentGroup(this.config,ut,Dt);if(null===et)return null;const Wt=new we([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Dt,this.rootComponentType,null,this.urlTree.root,-1,{}),ir=new zr(Wt,et),Pr=new De(this.url,ir);return this.inheritParamsAndData(Pr._root),Pr}inheritParamsAndData(ut){const et=ut.value,Wt=Kt(et,this.paramsInheritanceStrategy);et.params=Object.freeze(Wt.params),et.data=Object.freeze(Wt.data),ut.children.forEach(ir=>this.inheritParamsAndData(ir))}processSegmentGroup(ut,et,Wt){return 0===et.segments.length&&et.hasChildren()?this.processChildren(ut,et):this.processSegment(ut,et,et.segments,Wt)}processChildren(ut,et){const Wt=[];for(const Pr of Object.keys(et.children)){const jr=et.children[Pr],Xr=hs(ut,Pr),Ln=this.processSegmentGroup(Xr,jr,Pr);if(null===Ln)return null;Wt.push(...Ln)}const ir=So(Wt);return function Ca(Tt){Tt.sort((ut,et)=>ut.value.outlet===Dt?-1:et.value.outlet===Dt?1:ut.value.outlet.localeCompare(et.value.outlet))}(ir),ir}processSegment(ut,et,Wt,ir){for(const Pr of ut){const jr=this.processSegmentAgainstRoute(Pr,et,Wt,ir);if(null!==jr)return jr}return ka(et,Wt,ir)?[]:null}processSegmentAgainstRoute(ut,et,Wt,ir){if(ut.redirectTo||!Ta(ut,et,Wt,ir))return null;let Pr,jr=[],Xr=[];if("**"===ut.path){const cs=Wt.length>0?Zt(Wt).parameters:{};Pr=new we(Wt,cs,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,To(ut),Oi(ut),ut.component,ut,ea(et),Za(et)+Wt.length,Zo(ut))}else{const cs=Os(et,ut,Wt);if(!cs.matched)return null;jr=cs.consumedSegments,Xr=cs.remainingSegments,Pr=new we(jr,cs.parameters,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,To(ut),Oi(ut),ut.component,ut,ea(et),Za(et)+jr.length,Zo(ut))}const Ln=function Fa(Tt){return Tt.children?Tt.children:Tt.loadChildren?Tt._loadedConfig.routes:[]}(ut),{segmentGroup:si,slicedSegments:is}=ys(et,jr,Xr,Ln.filter(cs=>void 0===cs.redirectTo),this.relativeLinkResolution);if(0===is.length&&si.hasChildren()){const cs=this.processChildren(Ln,si);return null===cs?null:[new zr(Pr,cs)]}if(0===Ln.length&&0===is.length)return[new zr(Pr,[])];const pi=Oi(ut)===ir,Ss=this.processSegment(Ln,si,is,pi?Dt:ir);return null===Ss?null:[new zr(Pr,Ss)]}}function Rl(Tt){const ut=Tt.value.routeConfig;return ut&&""===ut.path&&void 0===ut.redirectTo}function So(Tt){const ut=[],et=new Set;for(const Wt of Tt){if(!Rl(Wt)){ut.push(Wt);continue}const ir=ut.find(Pr=>Wt.value.routeConfig===Pr.value.routeConfig);void 0!==ir?(ir.children.push(...Wt.children),et.add(ir)):ut.push(Wt)}for(const Wt of et){const ir=So(Wt.children);ut.push(new zr(Wt.value,ir))}return ut.filter(Wt=>!et.has(Wt))}function ea(Tt){let ut=Tt;for(;ut._sourceSegment;)ut=ut._sourceSegment;return ut}function Za(Tt){let ut=Tt,et=ut._segmentIndexShift?ut._segmentIndexShift:0;for(;ut._sourceSegment;)ut=ut._sourceSegment,et+=ut._segmentIndexShift?ut._segmentIndexShift:0;return et-1}function To(Tt){return Tt.data||{}}function Zo(Tt){return Tt.resolve||{}}function Mo(Tt){return[...Object.keys(Tt),...Object.getOwnPropertySymbols(Tt)]}function za(Tt){return(0,K.w)(ut=>{const et=Tt(ut);return et?(0,l.D)(et).pipe((0,ie.U)(()=>ut)):(0,h.of)(ut)})}class zo extends class mo{shouldDetach(ut){return!1}store(ut,et){}shouldAttach(ut){return!1}retrieve(ut){return null}shouldReuseRoute(ut,et){return ut.routeConfig===et.routeConfig}}{}const Ko=new e.OlP("ROUTES");class ta{constructor(ut,et,Wt,ir){this.injector=ut,this.compiler=et,this.onLoadStartListener=Wt,this.onLoadEndListener=ir}load(ut,et){if(et._loader$)return et._loader$;this.onLoadStartListener&&this.onLoadStartListener(et);const ir=this.loadModuleFactory(et.loadChildren).pipe((0,ie.U)(Pr=>{this.onLoadEndListener&&this.onLoadEndListener(et);const jr=Pr.create(ut);return new bn(pt(jr.injector.get(Ko,void 0,e.XFs.Self|e.XFs.Optional)).map(ts),jr)}),(0,_.K)(Pr=>{throw et._loader$=void 0,Pr}));return et._loader$=new J.c(ir,()=>new G.xQ).pipe((0,ae.x)()),et._loader$}loadModuleFactory(ut){return gt(ut()).pipe((0,W.zg)(et=>et instanceof e.YKP?(0,h.of)(et):(0,l.D)(this.compiler.compileModuleAsync(et))))}}class Ps{shouldProcessUrl(ut){return!0}extract(ut){return ut}merge(ut,et){return ut}}function qo(Tt){throw Tt}function Pu(Tt,ut,et){return ut.parse("/")}function Jo(Tt,ut){return(0,h.of)(null)}const Ba={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},lo={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ga=(()=>{class Tt{constructor(et,Wt,ir,Pr,jr,Xr,Ln){this.rootComponentType=et,this.urlSerializer=Wt,this.rootContexts=ir,this.location=Pr,this.config=Ln,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new G.xQ,this.errorHandler=qo,this.malformedUriErrorHandler=Pu,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Jo,afterPreactivation:Jo},this.urlHandlingStrategy=new Ps,this.routeReuseStrategy=new zo,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=jr.get(e.h0i),this.console=jr.get(e.c2e);const pi=jr.get(e.R0b);this.isNgZoneEnabled=pi instanceof e.R0b&&e.R0b.isInAngularZone(),this.resetConfig(Ln),this.currentUrlTree=function Ut(){return new Fe(new lt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new ta(jr,Xr,Ss=>this.triggerEvent(new $e(Ss)),Ss=>this.triggerEvent(new ft(Ss))),this.routerState=Tn(this.currentUrlTree,this.rootComponentType),this.transitions=new r.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(et){const Wt=this.events;return et.pipe((0,s.h)(ir=>0!==ir.id),(0,ie.U)(ir=>({...ir,extractedUrl:this.urlHandlingStrategy.extract(ir.rawUrl)})),(0,K.w)(ir=>{let Pr=!1,jr=!1;return(0,h.of)(ir).pipe((0,fe.b)(Xr=>{this.currentNavigation={id:Xr.id,initialUrl:Xr.currentRawUrl,extractedUrl:Xr.extractedUrl,trigger:Xr.source,extras:Xr.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,K.w)(Xr=>{const Ln=this.browserUrlTree.toString(),si=!this.navigated||Xr.extractedUrl.toString()!==Ln||Ln!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||si)&&this.urlHandlingStrategy.shouldProcessUrl(Xr.rawUrl))return ro(Xr.source)&&(this.browserUrlTree=Xr.extractedUrl),(0,h.of)(Xr).pipe((0,K.w)(pi=>{const Ss=this.transitions.getValue();return Wt.next(new At(pi.id,this.serializeUrl(pi.extractedUrl),pi.source,pi.restoredState)),Ss!==this.transitions.getValue()?q.E:Promise.resolve(pi)}),function Mn(Tt,ut,et,Wt){return(0,K.w)(ir=>function qt(Tt,ut,et,Wt,ir){return new jt(Tt,ut,et,Wt,ir).apply()}(Tt,ut,et,ir.extractedUrl,Wt).pipe((0,ie.U)(Pr=>({...ir,urlAfterRedirects:Pr}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,fe.b)(pi=>{this.currentNavigation={...this.currentNavigation,finalUrl:pi.urlAfterRedirects}}),function to(Tt,ut,et,Wt,ir){return(0,W.zg)(Pr=>function ao(Tt,ut,et,Wt,ir="emptyOnly",Pr="legacy"){try{const jr=new pa(Tt,ut,et,Wt,ir,Pr).recognize();return null===jr?As(new ha):(0,h.of)(jr)}catch(jr){return As(jr)}}(Tt,ut,Pr.urlAfterRedirects,et(Pr.urlAfterRedirects),Wt,ir).pipe((0,ie.U)(jr=>({...Pr,targetSnapshot:jr}))))}(this.rootComponentType,this.config,pi=>this.serializeUrl(pi),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,fe.b)(pi=>{if("eager"===this.urlUpdateStrategy){if(!pi.extras.skipLocationChange){const cs=this.urlHandlingStrategy.merge(pi.urlAfterRedirects,pi.rawUrl);this.setBrowserUrl(cs,pi)}this.browserUrlTree=pi.urlAfterRedirects}const Ss=new Lt(pi.id,this.serializeUrl(pi.extractedUrl),this.serializeUrl(pi.urlAfterRedirects),pi.targetSnapshot);Wt.next(Ss)}));if(si&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:Ss,extractedUrl:cs,source:Wi,restoredState:Zi,extras:Bi}=Xr,xo=new At(Ss,this.serializeUrl(cs),Wi,Zi);Wt.next(xo);const xi=Tn(cs,this.rootComponentType).snapshot;return(0,h.of)({...Xr,targetSnapshot:xi,urlAfterRedirects:cs,extras:{...Bi,skipLocationChange:!1,replaceUrl:!1}})}return this.rawUrlTree=Xr.rawUrl,Xr.resolve(null),q.E}),za(Xr=>{const{targetSnapshot:Ln,id:si,extractedUrl:is,rawUrl:pi,extras:{skipLocationChange:Ss,replaceUrl:cs}}=Xr;return this.hooks.beforePreactivation(Ln,{navigationId:si,appliedUrlTree:is,rawUrlTree:pi,skipLocationChange:!!Ss,replaceUrl:!!cs})}),(0,fe.b)(Xr=>{const Ln=new _e(Xr.id,this.serializeUrl(Xr.extractedUrl),this.serializeUrl(Xr.urlAfterRedirects),Xr.targetSnapshot);this.triggerEvent(Ln)}),(0,ie.U)(Xr=>({...Xr,guards:Ki(Xr.targetSnapshot,Xr.currentSnapshot,this.rootContexts)})),function cn(Tt,ut){return(0,W.zg)(et=>{const{targetSnapshot:Wt,currentSnapshot:ir,guards:{canActivateChecks:Pr,canDeactivateChecks:jr}}=et;return 0===jr.length&&0===Pr.length?(0,h.of)({...et,guardsResult:!0}):function Qt(Tt,ut,et,Wt){return(0,l.D)(Tt).pipe((0,W.zg)(ir=>function Gi(Tt,ut,et,Wt,ir){const Pr=ut&&ut.routeConfig?ut.routeConfig.canDeactivate:null;if(!Pr||0===Pr.length)return(0,h.of)(!0);const jr=Pr.map(Xr=>{const Ln=Na(Xr,ut,ir);let si;if(function wi(Tt){return Tt&&Un(Tt.canDeactivate)}(Ln))si=gt(Ln.canDeactivate(Tt,ut,et,Wt));else{if(!Un(Ln))throw new Error("Invalid CanDeactivate guard");si=gt(Ln(Tt,ut,et,Wt))}return si.pipe((0,u.P)())});return(0,h.of)(jr).pipe($r())}(ir.component,ir.route,et,ut,Wt)),(0,u.P)(ir=>!0!==ir,!0))}(jr,Wt,ir,Tt).pipe((0,W.zg)(Xr=>Xr&&function Fn(Tt){return"boolean"==typeof Tt}(Xr)?function wr(Tt,ut,et,Wt){return(0,l.D)(ut).pipe((0,w.b)(ir=>(0,V.z)(function Ci(Tt,ut){return null!==Tt&&ut&&ut(new Ge(Tt)),(0,h.of)(!0)}(ir.route.parent,Wt),function On(Tt,ut){return null!==Tt&&ut&&ut(new br(Tt)),(0,h.of)(!0)}(ir.route,Wt),function Cs(Tt,ut,et){const Wt=ut[ut.length-1],Pr=ut.slice(0,ut.length-1).reverse().map(jr=>function zs(Tt){const ut=Tt.routeConfig?Tt.routeConfig.canActivateChild:null;return ut&&0!==ut.length?{node:Tt,guards:ut}:null}(jr)).filter(jr=>null!==jr).map(jr=>(0,D.P)(()=>{const Xr=jr.guards.map(Ln=>{const si=Na(Ln,jr.node,et);let is;if(function _i(Tt){return Tt&&Un(Tt.canActivateChild)}(si))is=gt(si.canActivateChild(Wt,Tt));else{if(!Un(si))throw new Error("Invalid CanActivateChild guard");is=gt(si(Wt,Tt))}return is.pipe((0,u.P)())});return(0,h.of)(Xr).pipe($r())}));return(0,h.of)(Pr).pipe($r())}(Tt,ir.path,et),function Si(Tt,ut,et){const Wt=ut.routeConfig?ut.routeConfig.canActivate:null;if(!Wt||0===Wt.length)return(0,h.of)(!0);const ir=Wt.map(Pr=>(0,D.P)(()=>{const jr=Na(Pr,ut,et);let Xr;if(function ai(Tt){return Tt&&Un(Tt.canActivate)}(jr))Xr=gt(jr.canActivate(ut,Tt));else{if(!Un(jr))throw new Error("Invalid CanActivate guard");Xr=gt(jr(ut,Tt))}return Xr.pipe((0,u.P)())}));return(0,h.of)(ir).pipe($r())}(Tt,ir.route,et))),(0,u.P)(ir=>!0!==ir,!0))}(Wt,Pr,Tt,ut):(0,h.of)(Xr)),(0,ie.U)(Xr=>({...et,guardsResult:Xr})))})}(this.ngModule.injector,Xr=>this.triggerEvent(Xr)),(0,fe.b)(Xr=>{if(Vn(Xr.guardsResult)){const si=Ne(`Redirecting to "${this.serializeUrl(Xr.guardsResult)}"`);throw si.url=Xr.guardsResult,si}const Ln=new ne(Xr.id,this.serializeUrl(Xr.extractedUrl),this.serializeUrl(Xr.urlAfterRedirects),Xr.targetSnapshot,!!Xr.guardsResult);this.triggerEvent(Ln)}),(0,s.h)(Xr=>!!Xr.guardsResult||(this.restoreHistory(Xr),this.cancelNavigationTransition(Xr,""),!1)),za(Xr=>{if(Xr.guards.canActivateChecks.length)return(0,h.of)(Xr).pipe((0,fe.b)(Ln=>{const si=new be(Ln.id,this.serializeUrl(Ln.extractedUrl),this.serializeUrl(Ln.urlAfterRedirects),Ln.targetSnapshot);this.triggerEvent(si)}),(0,K.w)(Ln=>{let si=!1;return(0,h.of)(Ln).pipe(function Eo(Tt,ut){return(0,W.zg)(et=>{const{targetSnapshot:Wt,guards:{canActivateChecks:ir}}=et;if(!ir.length)return(0,h.of)(et);let Pr=0;return(0,l.D)(ir).pipe((0,w.b)(jr=>function Oo(Tt,ut,et,Wt){return function oo(Tt,ut,et,Wt){const ir=Mo(Tt);if(0===ir.length)return(0,h.of)({});const Pr={};return(0,l.D)(ir).pipe((0,W.zg)(jr=>function go(Tt,ut,et,Wt){const ir=Na(Tt,ut,Wt);return gt(ir.resolve?ir.resolve(ut,et):ir(ut,et))}(Tt[jr],ut,et,Wt).pipe((0,fe.b)(Xr=>{Pr[jr]=Xr}))),(0,E.h)(1),(0,W.zg)(()=>Mo(Pr).length===ir.length?(0,h.of)(Pr):q.E))}(Tt._resolve,Tt,ut,Wt).pipe((0,ie.U)(Pr=>(Tt._resolvedData=Pr,Tt.data={...Tt.data,...Kt(Tt,et).resolve},null)))}(jr.route,Wt,Tt,ut)),(0,fe.b)(()=>Pr++),(0,E.h)(1),(0,W.zg)(jr=>Pr===ir.length?(0,h.of)(et):q.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,fe.b)({next:()=>si=!0,complete:()=>{si||(this.restoreHistory(Ln),this.cancelNavigationTransition(Ln,"At least one route resolver didn't emit any value."))}}))}),(0,fe.b)(Ln=>{const si=new Te(Ln.id,this.serializeUrl(Ln.extractedUrl),this.serializeUrl(Ln.urlAfterRedirects),Ln.targetSnapshot);this.triggerEvent(si)}))}),za(Xr=>{const{targetSnapshot:Ln,id:si,extractedUrl:is,rawUrl:pi,extras:{skipLocationChange:Ss,replaceUrl:cs}}=Xr;return this.hooks.afterPreactivation(Ln,{navigationId:si,appliedUrlTree:is,rawUrlTree:pi,skipLocationChange:!!Ss,replaceUrl:!!cs})}),(0,ie.U)(Xr=>{const Ln=function ur(Tt,ut,et){const Wt=Zr(Tt,ut._root,et?et._root:void 0);return new _n(Wt,ut)}(this.routeReuseStrategy,Xr.targetSnapshot,Xr.currentRouterState);return{...Xr,targetRouterState:Ln}}),(0,fe.b)(Xr=>{this.currentUrlTree=Xr.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(Xr.urlAfterRedirects,Xr.rawUrl),this.routerState=Xr.targetRouterState,"deferred"===this.urlUpdateStrategy&&(Xr.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,Xr),this.browserUrlTree=Xr.urlAfterRedirects)}),((Tt,ut,et)=>(0,ie.U)(Wt=>(new xr(ut,Wt.targetRouterState,Wt.currentRouterState,et).activate(Tt),Wt)))(this.rootContexts,this.routeReuseStrategy,Xr=>this.triggerEvent(Xr)),(0,fe.b)({next(){Pr=!0},complete(){Pr=!0}}),(0,ye.x)(()=>{Pr||jr||this.cancelNavigationTransition(ir,`Navigation ID ${ir.id} is not equal to the current navigation id ${this.navigationId}`),this.currentNavigation?.id===ir.id&&(this.currentNavigation=null)}),(0,_.K)(Xr=>{if(jr=!0,function X(Tt){return Tt&&Tt[Yt]}(Xr)){const Ln=Vn(Xr.url);Ln||(this.navigated=!0,this.restoreHistory(ir,!0));const si=new at(ir.id,this.serializeUrl(ir.extractedUrl),Xr.message);Wt.next(si),Ln?setTimeout(()=>{const is=this.urlHandlingStrategy.merge(Xr.url,this.rawUrlTree),pi={skipLocationChange:ir.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||ro(ir.source)};this.scheduleNavigation(is,"imperative",null,pi,{resolve:ir.resolve,reject:ir.reject,promise:ir.promise})},0):ir.resolve(!1)}else{this.restoreHistory(ir,!0);const Ln=new Be(ir.id,this.serializeUrl(ir.extractedUrl),Xr);Wt.next(Ln);try{ir.resolve(this.errorHandler(Xr))}catch(si){ir.reject(si)}}return q.E}))}))}resetRootComponentType(et){this.rootComponentType=et,this.routerState.root.component=this.rootComponentType}setTransition(et){this.transitions.next({...this.transitions.value,...et})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(et=>{const Wt="popstate"===et.type?"popstate":"hashchange";"popstate"===Wt&&setTimeout(()=>{const ir={replaceUrl:!0},Pr=et.state?.navigationId?et.state:null;if(Pr){const Xr={...Pr};delete Xr.navigationId,delete Xr.\u0275routerPageId,0!==Object.keys(Xr).length&&(ir.state=Xr)}const jr=this.parseUrl(et.url);this.scheduleNavigation(jr,Wt,Pr,ir)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(et){this.events.next(et)}resetConfig(et){di(et),this.config=et.map(ts),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(et,Wt={}){const{relativeTo:ir,queryParams:Pr,fragment:jr,queryParamsHandling:Xr,preserveFragment:Ln}=Wt,si=ir||this.routerState.root,is=Ln?this.currentUrlTree.fragment:jr;let pi=null;switch(Xr){case"merge":pi={...this.currentUrlTree.queryParams,...Pr};break;case"preserve":pi=this.currentUrlTree.queryParams;break;default:pi=Pr||null}return null!==pi&&(pi=this.removeEmptyProps(pi)),function Et(Tt,ut,et,Wt,ir){if(0===et.length)return Bt(ut.root,ut.root,ut.root,Wt,ir);const Pr=function Wr(Tt){if("string"==typeof Tt[0]&&1===Tt.length&&"/"===Tt[0])return new Or(!0,0,Tt);let ut=0,et=!1;const Wt=Tt.reduce((ir,Pr,jr)=>{if("object"==typeof Pr&&null!=Pr){if(Pr.outlets){const Xr={};return wt(Pr.outlets,(Ln,si)=>{Xr[si]="string"==typeof Ln?Ln.split("/"):Ln}),[...ir,{outlets:Xr}]}if(Pr.segmentPath)return[...ir,Pr.segmentPath]}return"string"!=typeof Pr?[...ir,Pr]:0===jr?(Pr.split("/").forEach((Xr,Ln)=>{0==Ln&&"."===Xr||(0==Ln&&""===Xr?et=!0:".."===Xr?ut++:""!=Xr&&ir.push(Xr))}),ir):[...ir,Pr]},[]);return new Or(et,ut,Wt)}(et);if(Pr.toRoot())return Bt(ut.root,ut.root,new lt([],{}),Wt,ir);const jr=function En(Tt,ut,et){if(Tt.isAbsolute)return new sn(ut.root,!0,0);if(-1===et.snapshot._lastPathIndex){const Pr=et.snapshot._urlSegment;return new sn(Pr,Pr===ut.root,0)}const Wt=Ae(Tt.commands[0])?0:1;return function Sn(Tt,ut,et){let Wt=Tt,ir=ut,Pr=et;for(;Pr>ir;){if(Pr-=ir,Wt=Wt.parent,!Wt)throw new Error("Invalid number of '../'");ir=Wt.segments.length}return new sn(Wt,!1,ir-Pr)}(et.snapshot._urlSegment,et.snapshot._lastPathIndex+Wt,Tt.numberOfDoubleDots)}(Pr,ut,Tt),Xr=jr.processChildren?Kn(jr.segmentGroup,jr.index,Pr.commands):Rn(jr.segmentGroup,jr.index,Pr.commands);return Bt(ut.root,jr.segmentGroup,Xr,Wt,ir)}(si,this.currentUrlTree,et,pi,is??null)}navigateByUrl(et,Wt={skipLocationChange:!1}){const ir=Vn(et)?et:this.parseUrl(et),Pr=this.urlHandlingStrategy.merge(ir,this.rawUrlTree);return this.scheduleNavigation(Pr,"imperative",null,Wt)}navigate(et,Wt={skipLocationChange:!1}){return function $o(Tt){for(let ut=0;ut<Tt.length;ut++){const et=Tt[ut];if(null==et)throw new Error(`The requested path contains ${et} segment at index ${ut}`)}}(et),this.navigateByUrl(this.createUrlTree(et,Wt),Wt)}serializeUrl(et){return this.urlSerializer.serialize(et)}parseUrl(et){let Wt;try{Wt=this.urlSerializer.parse(et)}catch(ir){Wt=this.malformedUriErrorHandler(ir,this.urlSerializer,et)}return Wt}isActive(et,Wt){let ir;if(ir=!0===Wt?{...Ba}:!1===Wt?{...lo}:Wt,Vn(et))return Ue(this.currentUrlTree,et,ir);const Pr=this.parseUrl(et);return Ue(this.currentUrlTree,Pr,ir)}removeEmptyProps(et){return Object.keys(et).reduce((Wt,ir)=>{const Pr=et[ir];return null!=Pr&&(Wt[ir]=Pr),Wt},{})}processNavigations(){this.navigations.subscribe(et=>{this.navigated=!0,this.lastSuccessfulId=et.id,this.currentPageId=et.targetPageId,this.events.next(new Ze(et.id,this.serializeUrl(et.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,et.resolve(!0)},et=>{this.console.warn(`Unhandled Navigation Error: ${et}`)})}scheduleNavigation(et,Wt,ir,Pr,jr){if(this.disposed)return Promise.resolve(!1);let Xr,Ln,si;jr?(Xr=jr.resolve,Ln=jr.reject,si=jr.promise):si=new Promise((Ss,cs)=>{Xr=Ss,Ln=cs});const is=++this.navigationId;let pi;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(ir=this.location.getState()),pi=ir&&ir.\u0275routerPageId?ir.\u0275routerPageId:Pr.replaceUrl||Pr.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):pi=0,this.setTransition({id:is,targetPageId:pi,source:Wt,restoredState:ir,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:et,extras:Pr,resolve:Xr,reject:Ln,promise:si,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),si.catch(Ss=>Promise.reject(Ss))}setBrowserUrl(et,Wt){const ir=this.urlSerializer.serialize(et),Pr={...Wt.extras.state,...this.generateNgRouterState(Wt.id,Wt.targetPageId)};this.location.isCurrentPathEqualTo(ir)||Wt.extras.replaceUrl?this.location.replaceState(ir,"",Pr):this.location.go(ir,"",Pr)}restoreHistory(et,Wt=!1){if("computed"===this.canceledNavigationResolution){const ir=this.currentPageId-et.targetPageId;"popstate"!==et.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===ir?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===ir&&(this.resetState(et),this.browserUrlTree=et.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(ir)}else"replace"===this.canceledNavigationResolution&&(Wt&&this.resetState(et),this.resetUrlToCurrentUrlTree())}resetState(et){this.routerState=et.currentRouterState,this.currentUrlTree=et.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,et.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(et,Wt){const ir=new at(et.id,this.serializeUrl(et.extractedUrl),Wt);this.triggerEvent(ir),et.resolve(!1)}generateNgRouterState(et,Wt){return"computed"===this.canceledNavigationResolution?{navigationId:et,\u0275routerPageId:Wt}:{navigationId:et}}}return Tt.\u0275fac=function(et){e.$Z()},Tt.\u0275prov=e.Yz7({token:Tt,factory:Tt.\u0275fac}),Tt})();function ro(Tt){return"imperative"!==Tt}let xa=(()=>{class Tt{constructor(et,Wt,ir,Pr,jr){this.router=et,this.route=Wt,this.tabIndexAttribute=ir,this.renderer=Pr,this.el=jr,this.commands=null,this.onChanges=new G.xQ,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(et){if(null!=this.tabIndexAttribute)return;const Wt=this.renderer,ir=this.el.nativeElement;null!==et?Wt.setAttribute(ir,"tabindex",et):Wt.removeAttribute(ir,"tabindex")}ngOnChanges(et){this.onChanges.next(this)}set routerLink(et){null!=et?(this.commands=Array.isArray(et)?et:[et],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const et={skipLocationChange:wo(this.skipLocationChange),replaceUrl:wo(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,et),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:wo(this.preserveFragment)})}}return Tt.\u0275fac=function(et){return new(et||Tt)(e.Y36(ga),e.Y36(fr),e.$8M("tabindex"),e.Y36(e.Qsj),e.Y36(e.SBq))},Tt.\u0275dir=e.lG2({type:Tt,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(et,Wt){1&et&&e.NdJ("click",function(){return Wt.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[e.TTD]}),Tt})(),ma=(()=>{class Tt{constructor(et,Wt,ir){this.router=et,this.route=Wt,this.locationStrategy=ir,this.commands=null,this.href=null,this.onChanges=new G.xQ,this.subscription=et.events.subscribe(Pr=>{Pr instanceof Ze&&this.updateTargetUrlAndHref()})}set routerLink(et){this.commands=null!=et?Array.isArray(et)?et:[et]:null}ngOnChanges(et){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(et,Wt,ir,Pr,jr){if(0!==et||Wt||ir||Pr||jr||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const Xr={skipLocationChange:wo(this.skipLocationChange),replaceUrl:wo(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,Xr),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:wo(this.preserveFragment)})}}return Tt.\u0275fac=function(et){return new(et||Tt)(e.Y36(ga),e.Y36(fr),e.Y36(t.S$))},Tt.\u0275dir=e.lG2({type:Tt,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(et,Wt){1&et&&e.NdJ("click",function(Pr){return Wt.onClick(Pr.button,Pr.ctrlKey,Pr.shiftKey,Pr.altKey,Pr.metaKey)}),2&et&&e.uIk("target",Wt.target)("href",Wt.href,e.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[e.TTD]}),Tt})();function wo(Tt){return""===Tt||!!Tt}let Qo=(()=>{class Tt{constructor(et,Wt,ir,Pr,jr,Xr){this.router=et,this.element=Wt,this.renderer=ir,this.cdr=Pr,this.link=jr,this.linkWithHref=Xr,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new e.vpe,this.routerEventsSubscription=et.events.subscribe(Ln=>{Ln instanceof Ze&&this.update()})}ngAfterContentInit(){(0,h.of)(this.links.changes,this.linksWithHrefs.changes,(0,h.of)(null)).pipe((0,Qe.J)()).subscribe(et=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const et=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(Wt=>!!Wt).map(Wt=>Wt.onChanges);this.linkInputChangesSubscription=(0,l.D)(et).pipe((0,Qe.J)()).subscribe(Wt=>{this.isActive!==this.isLinkActive(this.router)(Wt)&&this.update()})}set routerLinkActive(et){const Wt=Array.isArray(et)?et:et.split(" ");this.classes=Wt.filter(ir=>!!ir)}ngOnChanges(et){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const et=this.hasActiveLinks();this.isActive!==et&&(this.isActive=et,this.cdr.markForCheck(),this.classes.forEach(Wt=>{et?this.renderer.addClass(this.element.nativeElement,Wt):this.renderer.removeClass(this.element.nativeElement,Wt)}),this.isActiveChange.emit(et))})}isLinkActive(et){const Wt=function _t(Tt){return!!Tt.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return ir=>!!ir.urlTree&&et.isActive(ir.urlTree,Wt)}hasActiveLinks(){const et=this.isLinkActive(this.router);return this.link&&et(this.link)||this.linkWithHref&&et(this.linkWithHref)||this.links.some(et)||this.linksWithHrefs.some(et)}}return Tt.\u0275fac=function(et){return new(et||Tt)(e.Y36(ga),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(xa,8),e.Y36(ma,8))},Tt.\u0275dir=e.lG2({type:Tt,selectors:[["","routerLinkActive",""]],contentQueries:function(et,Wt,ir){if(1&et&&(e.Suo(ir,xa,5),e.Suo(ir,ma,5)),2&et){let Pr;e.iGM(Pr=e.CRH())&&(Wt.links=Pr),e.iGM(Pr=e.CRH())&&(Wt.linksWithHrefs=Pr)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[e.TTD]}),Tt})();class ar{}class Nt{preload(ut,et){return et().pipe((0,_.K)(()=>(0,h.of)(null)))}}class Er{preload(ut,et){return(0,h.of)(null)}}let qr=(()=>{class Tt{constructor(et,Wt,ir,Pr){this.router=et,this.injector=ir,this.preloadingStrategy=Pr,this.loader=new ta(ir,Wt,Ln=>et.triggerEvent(new $e(Ln)),Ln=>et.triggerEvent(new ft(Ln)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,s.h)(et=>et instanceof Ze),(0,w.b)(()=>this.preload())).subscribe(()=>{})}preload(){const et=this.injector.get(e.h0i);return this.processRoutes(et,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(et,Wt){const ir=[];for(const Pr of Wt)if(Pr.loadChildren&&!Pr.canLoad&&Pr._loadedConfig){const jr=Pr._loadedConfig;ir.push(this.processRoutes(jr.module,jr.routes))}else Pr.loadChildren&&!Pr.canLoad?ir.push(this.preloadConfig(et,Pr)):Pr.children&&ir.push(this.processRoutes(et,Pr.children));return(0,l.D)(ir).pipe((0,Qe.J)(),(0,ie.U)(Pr=>{}))}preloadConfig(et,Wt){return this.preloadingStrategy.preload(Wt,()=>(Wt._loadedConfig?(0,h.of)(Wt._loadedConfig):this.loader.load(et.injector,Wt)).pipe((0,W.zg)(Pr=>(Wt._loadedConfig=Pr,this.processRoutes(Pr.module,Pr.routes)))))}}return Tt.\u0275fac=function(et){return new(et||Tt)(e.LFG(ga),e.LFG(e.Sil),e.LFG(e.zs3),e.LFG(ar))},Tt.\u0275prov=e.Yz7({token:Tt,factory:Tt.\u0275fac}),Tt})(),Cn=(()=>{class Tt{constructor(et,Wt,ir={}){this.router=et,this.viewportScroller=Wt,this.options=ir,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},ir.scrollPositionRestoration=ir.scrollPositionRestoration||"disabled",ir.anchorScrolling=ir.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(et=>{et instanceof At?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=et.navigationTrigger,this.restoredId=et.restoredState?et.restoredState.navigationId:0):et instanceof Ze&&(this.lastId=et.id,this.scheduleScrollEvent(et,this.router.parseUrl(et.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(et=>{et instanceof st&&(et.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(et.position):et.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(et.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(et,Wt){this.router.triggerEvent(new st(et,"popstate"===this.lastSource?this.store[this.restoredId]:null,Wt))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return Tt.\u0275fac=function(et){e.$Z()},Tt.\u0275prov=e.Yz7({token:Tt,factory:Tt.\u0275fac}),Tt})();const ei=new e.OlP("ROUTER_CONFIGURATION"),ns=new e.OlP("ROUTER_FORROOT_GUARD"),gs=[t.Ye,{provide:vt,useClass:$t},{provide:ga,useFactory:function Rs(Tt,ut,et,Wt,ir,Pr,jr={},Xr,Ln){const si=new ga(null,Tt,ut,et,Wt,ir,pt(Pr));return Xr&&(si.urlHandlingStrategy=Xr),Ln&&(si.routeReuseStrategy=Ln),function Ia(Tt,ut){Tt.errorHandler&&(ut.errorHandler=Tt.errorHandler),Tt.malformedUriErrorHandler&&(ut.malformedUriErrorHandler=Tt.malformedUriErrorHandler),Tt.onSameUrlNavigation&&(ut.onSameUrlNavigation=Tt.onSameUrlNavigation),Tt.paramsInheritanceStrategy&&(ut.paramsInheritanceStrategy=Tt.paramsInheritanceStrategy),Tt.relativeLinkResolution&&(ut.relativeLinkResolution=Tt.relativeLinkResolution),Tt.urlUpdateStrategy&&(ut.urlUpdateStrategy=Tt.urlUpdateStrategy),Tt.canceledNavigationResolution&&(ut.canceledNavigationResolution=Tt.canceledNavigationResolution)}(jr,si),jr.enableTracing&&si.events.subscribe(is=>{console.group?.(`Router Event: ${is.constructor.name}`),console.log(is.toString()),console.log(is),console.groupEnd?.()}),si},deps:[vt,An,t.Ye,e.zs3,e.Sil,Ko,ei,[class wa{},new e.FiY],[class Ro{},new e.FiY]]},An,{provide:fr,useFactory:function ra(Tt){return Tt.routerState.root},deps:[ga]},qr,Er,Nt,{provide:ei,useValue:{enableTracing:!1}}];function as(){return new e.PXZ("Router",ga)}let Yi=(()=>{class Tt{constructor(et,Wt){}static forRoot(et,Wt){return{ngModule:Tt,providers:[gs,aa(et),{provide:ns,useFactory:Us,deps:[[ga,new e.FiY,new e.tp0]]},{provide:ei,useValue:Wt||{}},{provide:t.S$,useFactory:qi,deps:[t.lw,[new e.tBr(t.mr),new e.FiY],ei]},{provide:Cn,useFactory:bs,deps:[ga,t.EM,ei]},{provide:ar,useExisting:Wt&&Wt.preloadingStrategy?Wt.preloadingStrategy:Er},{provide:e.PXZ,multi:!0,useFactory:as},[no,{provide:e.ip1,multi:!0,useFactory:bi,deps:[no]},{provide:cl,useFactory:ls,deps:[no]},{provide:e.tb,multi:!0,useExisting:cl}]]}}static forChild(et){return{ngModule:Tt,providers:[aa(et)]}}}return Tt.\u0275fac=function(et){return new(et||Tt)(e.LFG(ns,8),e.LFG(ga,8))},Tt.\u0275mod=e.oAB({type:Tt}),Tt.\u0275inj=e.cJS({}),Tt})();function bs(Tt,ut,et){return et.scrollOffset&&ut.setOffset(et.scrollOffset),new Cn(Tt,ut,et)}function qi(Tt,ut,et={}){return et.useHash?new t.Do(Tt,ut):new t.b0(Tt,ut)}function Us(Tt){return"guarded"}function aa(Tt){return[{provide:e.deG,multi:!0,useValue:Tt},{provide:Ko,multi:!0,useValue:Tt}]}let no=(()=>{class Tt{constructor(et){this.injector=et,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new G.xQ}appInitializer(){return this.injector.get(t.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let Wt=null;const ir=new Promise(Xr=>Wt=Xr),Pr=this.injector.get(ga),jr=this.injector.get(ei);return"disabled"===jr.initialNavigation?(Pr.setUpLocationChangeListener(),Wt(!0)):"enabled"===jr.initialNavigation||"enabledBlocking"===jr.initialNavigation?(Pr.hooks.afterPreactivation=()=>this.initNavigation?(0,h.of)(null):(this.initNavigation=!0,Wt(!0),this.resultOfPreactivationDone),Pr.initialNavigation()):Wt(!0),ir})}bootstrapListener(et){const Wt=this.injector.get(ei),ir=this.injector.get(qr),Pr=this.injector.get(Cn),jr=this.injector.get(ga),Xr=this.injector.get(e.z2F);et===Xr.components[0]&&(("enabledNonBlocking"===Wt.initialNavigation||void 0===Wt.initialNavigation)&&jr.initialNavigation(),ir.setUpPreloading(),Pr.init(),jr.resetRootComponentType(Xr.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return Tt.\u0275fac=function(et){return new(et||Tt)(e.LFG(e.zs3))},Tt.\u0275prov=e.Yz7({token:Tt,factory:Tt.\u0275fac}),Tt})();function bi(Tt){return Tt.appInitializer.bind(Tt)}function ls(Tt){return Tt.bootstrapListener.bind(Tt)}const cl=new e.OlP("Router Initializer")},51848:(M,b,n)=>{"use strict";n.d(b,{Wr:()=>j,yO:()=>oe});var t=n(36895),e=n(94650),l=n(88514),h=n(61737),r=n(23753),d=n(21086),y=n(61221),g=n(8929),p=n(56498),f=n(67876);const C=new p.y(f.Z);var a=n(36787),O=n(24850),H=n(92198),F=n(87545),V=n(82536),U=n(72986),q=n(2994),J=n(40943);const G="Service workers are disabled or not supported by this browser";class K{constructor(Y){if(this.serviceWorker=Y,Y){const W=(0,r.R)(Y,"controllerchange").pipe((0,O.U)(()=>Y.controller)),fe=(0,l.P)(()=>(0,d.of)(Y.controller)),ae=(0,y.z)(fe,W);this.worker=ae.pipe((0,H.h)(Ze=>!!Ze)),this.registration=this.worker.pipe((0,F.w)(()=>Y.getRegistration()));const At=(0,r.R)(Y,"message").pipe((0,O.U)(Ze=>Ze.data)).pipe((0,H.h)(Ze=>Ze&&Ze.type)).pipe(function D($){return $?(0,V.O)(()=>new g.xQ,$):(0,V.O)(new g.xQ)}());At.connect(),this.events=At}else this.worker=this.events=this.registration=function ie($){return(0,l.P)(()=>(0,h._)(new Error($)))}(G)}postMessage(Y,u){return this.worker.pipe((0,U.q)(1),(0,q.b)(W=>{W.postMessage({action:Y,...u})})).toPromise().then(()=>{})}postMessageWithOperation(Y,u,W){const fe=this.waitForOperationCompleted(W),ae=this.postMessage(Y,u);return Promise.all([ae,fe]).then(([,ye])=>ye)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(Y){let u;return u="string"==typeof Y?W=>W.type===Y:W=>Y.includes(W.type),this.events.pipe((0,H.h)(u))}nextEventOfType(Y){return this.eventsOfType(Y).pipe((0,U.q)(1))}waitForOperationCompleted(Y){return this.eventsOfType("OPERATION_COMPLETED").pipe((0,H.h)(u=>u.nonce===Y),(0,U.q)(1),(0,O.U)(u=>{if(void 0!==u.result)return u.result;throw new Error(u.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let re=(()=>{class ${constructor(u){if(this.sw=u,this.subscriptionChanges=new g.xQ,!u.isEnabled)return this.messages=C,this.notificationClicks=C,void(this.subscription=C);this.messages=this.sw.eventsOfType("PUSH").pipe((0,O.U)(fe=>fe.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe((0,O.U)(fe=>fe.data)),this.pushManager=this.sw.registration.pipe((0,O.U)(fe=>fe.pushManager));const W=this.pushManager.pipe((0,F.w)(fe=>fe.getSubscription()));this.subscription=(0,a.T)(W,this.subscriptionChanges)}get isEnabled(){return this.sw.isEnabled}requestSubscription(u){if(!this.sw.isEnabled)return Promise.reject(new Error(G));const W={userVisibleOnly:!0};let fe=this.decodeBase64(u.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),ae=new Uint8Array(new ArrayBuffer(fe.length));for(let ye=0;ye<fe.length;ye++)ae[ye]=fe.charCodeAt(ye);return W.applicationServerKey=ae,this.pushManager.pipe((0,F.w)(ye=>ye.subscribe(W)),(0,U.q)(1)).toPromise().then(ye=>(this.subscriptionChanges.next(ye),ye))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe((0,U.q)(1),(0,F.w)(W=>{if(null===W)throw new Error("Not subscribed to push notifications.");return W.unsubscribe().then(fe=>{if(!fe)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(G))}decodeBase64(u){return atob(u)}}return $.\u0275fac=function(u){return new(u||$)(e.LFG(K))},$.\u0275prov=e.Yz7({token:$,factory:$.\u0275fac}),$})(),oe=(()=>{class ${constructor(u){if(this.sw=u,!u.isEnabled)return this.versionUpdates=C,this.available=C,this.activated=C,void(this.unrecoverable=C);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY"]),this.available=this.versionUpdates.pipe((0,H.h)(W=>"VERSION_READY"===W.type),(0,O.U)(W=>({type:"UPDATE_AVAILABLE",current:W.currentVersion,available:W.latestVersion}))),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED"),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}get isEnabled(){return this.sw.isEnabled}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(G));const u=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:u},u)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(G));const u=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:u},u)}}return $.\u0275fac=function(u){return new(u||$)(e.LFG(K))},$.\u0275prov=e.Yz7({token:$,factory:$.\u0275fac}),$})();class B{}const s=new e.OlP("NGSW_REGISTER_SCRIPT");function _($,Y,u,W){return()=>{if(!(0,t.NF)(W)||!("serviceWorker"in navigator)||!1===u.enabled)return;let ae;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof u.registrationStrategy)ae=u.registrationStrategy();else{const[Qe,...Ot]=(u.registrationStrategy||"registerWhenStable:30000").split(":");switch(Qe){case"registerImmediately":ae=(0,d.of)(null);break;case"registerWithDelay":ae=w(+Ot[0]||0);break;case"registerWhenStable":ae=Ot[0]?(0,a.T)(E($),w(+Ot[0])):E($);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${u.registrationStrategy}`)}}$.get(e.R0b).runOutsideAngular(()=>ae.pipe((0,U.q)(1)).subscribe(()=>navigator.serviceWorker.register(Y,{scope:u.scope}).catch(Qe=>console.error("Service worker registration failed with:",Qe))))}}function w($){return(0,d.of)(null).pipe((0,J.g)($))}function E($){return $.get(e.z2F).isStable.pipe((0,H.h)(u=>u))}function x($,Y){return new K((0,t.NF)(Y)&&!1!==$.enabled?navigator.serviceWorker:void 0)}let j=(()=>{class ${static register(u,W={}){return{ngModule:$,providers:[{provide:s,useValue:u},{provide:B,useValue:W},{provide:K,useFactory:x,deps:[B,e.Lbi]},{provide:e.ip1,useFactory:_,deps:[e.zs3,s,B,e.Lbi],multi:!0}]}}}return $.\u0275fac=function(u){return new(u||$)},$.\u0275mod=e.oAB({type:$}),$.\u0275inj=e.cJS({providers:[re,oe]}),$})()},70579:(M,b,n)=>{"use strict";n.d(b,{EI:()=>He,Gb:()=>Ut,Iv:()=>Ue,Kz:()=>Ke,Xd:()=>pt,lT:()=>Cr,xP:()=>Pt});var t=n(49671),e=n(49681),l=n(41877),h=n(42090),r=n(34859);n(12833);const y="analytics",g="firebase_id",p="origin",C="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig",N="https://www.googletagmanager.com/gtag/js",a=new l.Yd("@firebase/analytics"),H=new h.LL("analytics","Analytics",{"already-exists":"A Firebase Analytics instance with the appId {$id}  already exists. Only one Firebase Analytics instance can be created for each appId.","already-initialized":"initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-intialized instance.","already-initialized-settings":"Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.","interop-component-reg-failed":"Firebase Analytics Interop Component failed to instantiate: {$reason}","invalid-analytics-context":"Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","indexeddb-unavailable":"IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","fetch-throttle":"The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.","config-fetch-failed":"Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',"no-app-id":'The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',"invalid-gtag-resource":"Trusted Types detected an invalid gtag resource: {$gtagURL}."});function F(St){if(!St.startsWith(N)){const qe=H.create("invalid-gtag-resource",{gtagURL:St});return a.warn(qe.message),""}return St}function V(St){return Promise.all(St.map(qe=>qe.catch(ke=>ke)))}function U(St,qe){const ke=function D(St,qe){let ke;return window.trustedTypes&&(ke=window.trustedTypes.createPolicy(St,qe)),ke}("firebase-js-sdk-policy",{createScriptURL:F}),ct=document.createElement("script"),vt=`${N}?l=${St}&id=${qe}`;ct.src=ke?null==ke?void 0:ke.createScriptURL(vt):vt,ct.async=!0,document.head.appendChild(ct)}function J(St,qe,ke,ct,vt,$t){return G.apply(this,arguments)}function G(){return(G=(0,t.Z)(function*(St,qe,ke,ct,vt,$t){const Vr=ct[vt];try{if(Vr)yield qe[Vr];else{const Ar=(yield V(ke)).find(Jr=>Jr.measurementId===vt);Ar&&(yield qe[Ar.appId])}}catch(Sr){a.error(Sr)}St("config",vt,$t)})).apply(this,arguments)}function ie(St,qe,ke,ct,vt){return K.apply(this,arguments)}function K(){return(K=(0,t.Z)(function*(St,qe,ke,ct,vt){try{let $t=[];if(vt&&vt.send_to){let Vr=vt.send_to;Array.isArray(Vr)||(Vr=[Vr]);const Sr=yield V(ke);for(const Ar of Vr){const Jr=Sr.find(Gt=>Gt.measurementId===Ar),Fr=Jr&&qe[Jr.appId];if(!Fr){$t=[];break}$t.push(Fr)}}0===$t.length&&($t=Object.values(qe)),yield Promise.all($t),St("event",ct,vt||{})}catch($t){a.error($t)}})).apply(this,arguments)}function B(St){const qe=window.document.getElementsByTagName("script");for(const ke of Object.values(qe))if(ke.src&&ke.src.includes(N)&&ke.src.includes(St))return ke;return null}const E=new class w{constructor(qe={},ke=1e3){this.throttleMetadata=qe,this.intervalMillis=ke}getThrottleMetadata(qe){return this.throttleMetadata[qe]}setThrottleMetadata(qe,ke){this.throttleMetadata[qe]=ke}deleteThrottleMetadata(qe){delete this.throttleMetadata[qe]}};function x(St){return new Headers({Accept:"application/json","x-goog-api-key":St})}function j(St){return $.apply(this,arguments)}function $(){return($=(0,t.Z)(function*(St){var qe;const{appId:ke,apiKey:ct}=St,vt={method:"GET",headers:x(ct)},$t=C.replace("{app-id}",ke),Vr=yield fetch($t,vt);if(200!==Vr.status&&304!==Vr.status){let Sr="";try{const Ar=yield Vr.json();(null===(qe=Ar.error)||void 0===qe?void 0:qe.message)&&(Sr=Ar.error.message)}catch{}throw H.create("config-fetch-failed",{httpStatus:Vr.status,responseMessage:Sr})}return Vr.json()})).apply(this,arguments)}function Y(St){return u.apply(this,arguments)}function u(){return(u=(0,t.Z)(function*(St,qe=E,ke){const{appId:ct,apiKey:vt,measurementId:$t}=St.options;if(!ct)throw H.create("no-app-id");if(!vt){if($t)return{measurementId:$t,appId:ct};throw H.create("no-api-key")}const Vr=qe.getThrottleMetadata(ct)||{backoffCount:0,throttleEndTimeMillis:Date.now()},Sr=new Qe;return setTimeout((0,t.Z)(function*(){Sr.abort()}),void 0!==ke?ke:6e4),W({appId:ct,apiKey:vt,measurementId:$t},Vr,Sr,qe)})).apply(this,arguments)}function W(St,qe,ke){return fe.apply(this,arguments)}function fe(){return(fe=(0,t.Z)(function*(St,{throttleEndTimeMillis:qe,backoffCount:ke},ct,vt=E){var $t;const{appId:Vr,measurementId:Sr}=St;try{yield ae(ct,qe)}catch(Ar){if(Sr)return a.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${Sr} provided in the "measurementId" field in the local Firebase config. [${null==Ar?void 0:Ar.message}]`),{appId:Vr,measurementId:Sr};throw Ar}try{const Ar=yield j(St);return vt.deleteThrottleMetadata(Vr),Ar}catch(Ar){const Jr=Ar;if(!ye(Jr)){if(vt.deleteThrottleMetadata(Vr),Sr)return a.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${Sr} provided in the "measurementId" field in the local Firebase config. [${null==Jr?void 0:Jr.message}]`),{appId:Vr,measurementId:Sr};throw Ar}const Fr=503===Number(null===($t=null==Jr?void 0:Jr.customData)||void 0===$t?void 0:$t.httpStatus)?(0,h.$s)(ke,vt.intervalMillis,30):(0,h.$s)(ke,vt.intervalMillis),Gt={throttleEndTimeMillis:Date.now()+Fr,backoffCount:ke+1};return vt.setThrottleMetadata(Vr,Gt),a.debug(`Calling attemptFetch again in ${Fr} millis`),W(St,Gt,ct,vt)}})).apply(this,arguments)}function ae(St,qe){return new Promise((ke,ct)=>{const vt=Math.max(qe-Date.now(),0),$t=setTimeout(ke,vt);St.addEventListener(()=>{clearTimeout($t),ct(H.create("fetch-throttle",{throttleEndTimeMillis:qe}))})})}function ye(St){if(!(St instanceof h.ZR&&St.customData))return!1;const qe=Number(St.customData.httpStatus);return 429===qe||500===qe||503===qe||504===qe}class Qe{constructor(){this.listeners=[]}addEventListener(qe){this.listeners.push(qe)}abort(){this.listeners.forEach(qe=>qe())}}let Ot,ft;function Ze(){return(Ze=(0,t.Z)(function*(St,qe,ke,ct,vt){if(vt&&vt.global)St("event",ke,ct);else{const $t=yield qe;St("event",ke,Object.assign(Object.assign({},ct),{send_to:$t}))}})).apply(this,arguments)}function Be(){return(Be=(0,t.Z)(function*(St,qe,ke,ct){if(ct&&ct.global)return St("set",{screen_name:ke}),Promise.resolve();St("config",yield qe,{update:!0,screen_name:ke})})).apply(this,arguments)}function _e(){return(_e=(0,t.Z)(function*(St,qe,ke,ct){if(ct&&ct.global)return St("set",{user_id:ke}),Promise.resolve();St("config",yield qe,{update:!0,user_id:ke})})).apply(this,arguments)}function be(){return(be=(0,t.Z)(function*(St,qe,ke,ct){if(ct&&ct.global){const vt={};for(const $t of Object.keys(ke))vt[`user_properties.${$t}`]=ke[$t];return St("set",vt),Promise.resolve()}St("config",yield qe,{update:!0,user_properties:ke})})).apply(this,arguments)}function $e(){return($e=(0,t.Z)(function*(St,qe){const ke=yield St;window[`ga-disable-${ke}`]=!qe})).apply(this,arguments)}function Ge(St){ft=St}function Ft(St){Ot=St}function br(){return rt.apply(this,arguments)}function rt(){return(rt=(0,t.Z)(function*(){if(!(0,h.hl)())return a.warn(H.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;try{yield(0,h.eu)()}catch(St){return a.warn(H.create("indexeddb-unavailable",{errorInfo:null==St?void 0:St.toString()}).message),!1}return!0})).apply(this,arguments)}function Dt(){return(Dt=(0,t.Z)(function*(St,qe,ke,ct,vt,$t,Vr){var Sr;const Ar=Y(St);Ar.then(Ce=>{ke[Ce.measurementId]=Ce.appId,St.options.measurementId&&Ce.measurementId!==St.options.measurementId&&a.warn(`The measurement ID in the local Firebase config (${St.options.measurementId}) does not match the measurement ID fetched from the server (${Ce.measurementId}). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.`)}).catch(Ce=>a.error(Ce)),qe.push(Ar);const Jr=br().then(Ce=>{if(Ce)return ct.getId()}),[Fr,Gt]=yield Promise.all([Ar,Jr]);B($t)||U($t,Fr.measurementId),ft&&(vt("consent","default",ft),Ge(void 0)),vt("js",new Date);const le=null!==(Sr=null==Vr?void 0:Vr.config)&&void 0!==Sr?Sr:{};return le[p]="firebase",le.update=!0,null!=Gt&&(le[g]=Gt),vt("config",Fr.measurementId,le),Ot&&(vt("set",Ot),Ft(void 0)),Fr.measurementId})).apply(this,arguments)}class ot{constructor(qe){this.app=qe}_delete(){return delete nt[this.app.options.appId],Promise.resolve()}}let nt={},Yt=[];const Ne={};let Me,We,X="dataLayer",ge="gtag",Re=!1;function pt(St){if(Re)throw H.create("already-initialized");St.dataLayerName&&(X=St.dataLayerName),St.gtagName&&(ge=St.gtagName)}function cr(St,qe,ke){!function Zt(){const St=[];if((0,h.ru)()&&St.push("This is a browser extension environment."),(0,h.zI)()||St.push("Cookies are not available."),St.length>0){const qe=St.map((ct,vt)=>`(${vt+1}) ${ct}`).join(" "),ke=H.create("invalid-analytics-context",{errorInfo:qe});a.warn(ke.message)}}();const ct=St.options.appId;if(!ct)throw H.create("no-app-id");if(!St.options.apiKey){if(!St.options.measurementId)throw H.create("no-api-key");a.warn(`The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID ${St.options.measurementId} provided in the "measurementId" field in the local Firebase config.`)}if(null!=nt[ct])throw H.create("already-exists",{id:ct});if(!Re){!function q(St){let qe=[];Array.isArray(window[St])?qe=window[St]:window[St]=qe}(X);const{wrappedGtag:$t,gtagCore:Vr}=function oe(St,qe,ke,ct,vt){let $t=function(...Vr){window[ct].push(arguments)};return window[vt]&&"function"==typeof window[vt]&&($t=window[vt]),window[vt]=function re(St,qe,ke,ct){function $t(){return($t=(0,t.Z)(function*(Vr,Sr,Ar){try{"event"===Vr?yield ie(St,qe,ke,Sr,Ar):"config"===Vr?yield J(St,qe,ke,ct,Sr,Ar):"consent"===Vr?St("consent","update",Ar):St("set",Sr)}catch(Jr){a.error(Jr)}})).apply(this,arguments)}return function vt(Vr,Sr,Ar){return $t.apply(this,arguments)}}($t,St,qe,ke),{gtagCore:$t,wrappedGtag:window[vt]}}(nt,Yt,Ne,X,ge);We=$t,Me=Vr,Re=!0}return nt[ct]=function st(St,qe,ke,ct,vt,$t,Vr){return Dt.apply(this,arguments)}(St,Yt,Ne,qe,Me,X,ke),new ot(St)}function Ut(){return hr.apply(this,arguments)}function hr(){return(hr=(0,t.Z)(function*(){if((0,h.ru)()||!(0,h.zI)()||!(0,h.hl)())return!1;try{return yield(0,h.eu)()}catch{return!1}})).apply(this,arguments)}function Cr(St,qe,ke){St=(0,h.m9)(St),function at(St,qe,ke,ct){return Be.apply(this,arguments)}(We,nt[St.app.options.appId],qe,ke).catch(ct=>a.error(ct))}function Ue(St,qe,ke){St=(0,h.m9)(St),function Lt(St,qe,ke,ct){return _e.apply(this,arguments)}(We,nt[St.app.options.appId],qe,ke).catch(ct=>a.error(ct))}function Pt(St,qe,ke){St=(0,h.m9)(St),function ne(St,qe,ke,ct){return be.apply(this,arguments)}(We,nt[St.app.options.appId],qe,ke).catch(ct=>a.error(ct))}function He(St,qe){St=(0,h.m9)(St),function Te(St,qe){return $e.apply(this,arguments)}(nt[St.app.options.appId],qe).catch(ke=>a.error(ke))}function Ke(St,qe,ke,ct){St=(0,h.m9)(St),function At(St,qe,ke,ct,vt){return Ze.apply(this,arguments)}(We,nt[St.app.options.appId],qe,ke,ct).catch(vt=>a.error(vt))}const xe="@firebase/analytics";!function lt(){(0,e._registerComponent)(new r.wA(y,(qe,{options:ke})=>cr(qe.getProvider("app").getImmediate(),qe.getProvider("installations-internal").getImmediate(),ke),"PUBLIC")),(0,e._registerComponent)(new r.wA("analytics-internal",function St(qe){try{const ke=qe.getProvider(y).getImmediate();return{logEvent:(ct,vt,$t)=>Ke(ke,ct,vt,$t)}}catch(ke){throw H.create("interop-component-reg-failed",{reason:ke})}},"PRIVATE")),(0,e.registerVersion)(xe,"0.9.5"),(0,e.registerVersion)(xe,"0.9.5","esm2017")}()},63942:(M,b,n)=>{"use strict";n.d(b,{Z:()=>H});var t=n(42090),e=n(34859),l=n(49681),h=n(41877);class r{constructor(V,D){this._delegate=V,this.firebase=D,(0,l._addComponent)(V,new e.wA("app-compat",()=>this,"PUBLIC")),this.container=V.container}get automaticDataCollectionEnabled(){return this._delegate.automaticDataCollectionEnabled}set automaticDataCollectionEnabled(V){this._delegate.automaticDataCollectionEnabled=V}get name(){return this._delegate.name}get options(){return this._delegate.options}delete(){return new Promise(V=>{this._delegate.checkDestroyed(),V()}).then(()=>(this.firebase.INTERNAL.removeApp(this.name),(0,l.deleteApp)(this._delegate)))}_getService(V,D=l._DEFAULT_ENTRY_NAME){var U;this._delegate.checkDestroyed();const q=this._delegate.container.getProvider(V);return!q.isInitialized()&&"EXPLICIT"===(null===(U=q.getComponent())||void 0===U?void 0:U.instantiationMode)&&q.initialize(),q.getImmediate({identifier:D})}_removeServiceInstance(V,D=l._DEFAULT_ENTRY_NAME){this._delegate.container.getProvider(V).clearInstance(D)}_addComponent(V){(0,l._addComponent)(this._delegate,V)}_addOrOverwriteComponent(V){(0,l._addOrOverwriteComponent)(this._delegate,V)}toJSON(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}}}const y=new t.LL("app-compat","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance."}),f=function p(){const F=function g(F){const V={},D={__esModule:!0,initializeApp:function J(re,oe={}){const B=l.initializeApp(re,oe);if((0,t.r3)(V,B.name))return V[B.name];const s=new F(B,D);return V[B.name]=s,s},app:q,registerVersion:l.registerVersion,setLogLevel:l.setLogLevel,onLog:l.onLog,apps:null,SDK_VERSION:l.SDK_VERSION,INTERNAL:{registerComponent:function ie(re){const oe=re.name,B=oe.replace("-compat","");if(l._registerComponent(re)&&"PUBLIC"===re.type){const s=(_=q())=>{if("function"!=typeof _[B])throw y.create("invalid-app-argument",{appName:oe});return _[B]()};void 0!==re.serviceProps&&(0,t.ZB)(s,re.serviceProps),D[B]=s,F.prototype[B]=function(..._){return this._getService.bind(this,oe).apply(this,re.multipleInstances?_:[])}}return"PUBLIC"===re.type?D[B]:null},removeApp:function U(re){delete V[re]},useAsService:function K(re,oe){return"serverAuth"===oe?null:oe},modularAPIs:l}};function q(re){if(!(0,t.r3)(V,re=re||l._DEFAULT_ENTRY_NAME))throw y.create("no-app",{appName:re});return V[re]}return D.default=D,Object.defineProperty(D,"apps",{get:function G(){return Object.keys(V).map(re=>V[re])}}),q.App=F,D}(r);return F.INTERNAL=Object.assign(Object.assign({},F.INTERNAL),{createFirebaseNamespace:p,extendNamespace:function V(D){(0,t.ZB)(F,D)},createSubscribe:t.ne,ErrorFactory:t.LL,deepExtend:t.ZB}),F}(),C=new h.Yd("@firebase/app-compat");if((0,t.jU)()&&void 0!==self.firebase){C.warn("\n    Warning: Firebase is already defined in the global scope. Please make sure\n    Firebase library is only loaded once.\n  ");const F=self.firebase.SDK_VERSION;F&&F.indexOf("LITE")>=0&&C.warn("\n    Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n    You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n    ")}const H=f;!function O(F){(0,l.registerVersion)("@firebase/app-compat","0.2.7",F)}()},49681:(M,b,n)=>{"use strict";n.r(b),n.d(b,{FirebaseError:()=>h.ZR,SDK_VERSION:()=>ne,_DEFAULT_ENTRY_NAME:()=>u,_addComponent:()=>ye,_addOrOverwriteComponent:()=>Qe,_apps:()=>fe,_clearComponents:()=>at,_components:()=>ae,_getProvider:()=>At,_registerComponent:()=>Ot,_removeServiceInstance:()=>Ze,deleteApp:()=>ft,getApp:()=>Te,getApps:()=>$e,initializeApp:()=>be,onLog:()=>br,registerVersion:()=>Ft,setLogLevel:()=>rt});var t=n(49671),e=n(34859),l=n(41877),h=n(42090),r=n(98766);class d{constructor(Ue){this.container=Ue}getPlatformInfoString(){return this.container.getProviders().map(Pt=>{if(function y(Cr){const Ue=Cr.getComponent();return"VERSION"===(null==Ue?void 0:Ue.type)}(Pt)){const He=Pt.getImmediate();return`${He.library}/${He.version}`}return null}).filter(Pt=>Pt).join(" ")}}const g="@firebase/app",p="0.9.7",f=new l.Yd("@firebase/app"),u="[DEFAULT]",W={[g]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","fire-js":"fire-js",firebase:"fire-js-all"},fe=new Map,ae=new Map;function ye(Cr,Ue){try{Cr.container.addComponent(Ue)}catch(Pt){f.debug(`Component ${Ue.name} failed to register with FirebaseApp ${Cr.name}`,Pt)}}function Qe(Cr,Ue){Cr.container.addOrOverwriteComponent(Ue)}function Ot(Cr){const Ue=Cr.name;if(ae.has(Ue))return f.debug(`There were multiple attempts to register component ${Ue}.`),!1;ae.set(Ue,Cr);for(const Pt of fe.values())ye(Pt,Cr);return!0}function At(Cr,Ue){const Pt=Cr.container.getProvider("heartbeat").getImmediate({optional:!0});return Pt&&Pt.triggerHeartbeat(),Cr.container.getProvider(Ue)}function Ze(Cr,Ue,Pt=u){At(Cr,Ue).clearInstance(Pt)}function at(){ae.clear()}const Lt=new h.LL("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()","bad-app-name":"Illegal App name: '{$appName}","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."});class _e{constructor(Ue,Pt,He){this._isDeleted=!1,this._options=Object.assign({},Ue),this._config=Object.assign({},Pt),this._name=Pt.name,this._automaticDataCollectionEnabled=Pt.automaticDataCollectionEnabled,this._container=He,this.container.addComponent(new e.wA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(Ue){this.checkDestroyed(),this._automaticDataCollectionEnabled=Ue}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(Ue){this._isDeleted=Ue}checkDestroyed(){if(this.isDeleted)throw Lt.create("app-deleted",{appName:this._name})}}const ne="9.19.1";function be(Cr,Ue={}){let Pt=Cr;"object"!=typeof Ue&&(Ue={name:Ue});const He=Object.assign({name:u,automaticDataCollectionEnabled:!1},Ue),tt=He.name;if("string"!=typeof tt||!tt)throw Lt.create("bad-app-name",{appName:String(tt)});if(Pt||(Pt=(0,h.aH)()),!Pt)throw Lt.create("no-options");const Ke=fe.get(tt);if(Ke){if((0,h.vZ)(Pt,Ke.options)&&(0,h.vZ)(He,Ke.config))return Ke;throw Lt.create("duplicate-app",{appName:tt})}const kt=new e.H0(tt);for(const Fe of ae.values())kt.addComponent(Fe);const xe=new _e(Pt,He,kt);return fe.set(tt,xe),xe}function Te(Cr=u){const Ue=fe.get(Cr);if(!Ue&&Cr===u)return be();if(!Ue)throw Lt.create("no-app",{appName:Cr});return Ue}function $e(){return Array.from(fe.values())}function ft(Cr){return Ge.apply(this,arguments)}function Ge(){return(Ge=(0,t.Z)(function*(Cr){const Ue=Cr.name;fe.has(Ue)&&(fe.delete(Ue),yield Promise.all(Cr.container.getProviders().map(Pt=>Pt.delete())),Cr.isDeleted=!0)})).apply(this,arguments)}function Ft(Cr,Ue,Pt){var He;let tt=null!==(He=W[Cr])&&void 0!==He?He:Cr;Pt&&(tt+=`-${Pt}`);const Ke=tt.match(/\s|\//),kt=Ue.match(/\s|\//);if(Ke||kt){const xe=[`Unable to register library "${tt}" with version "${Ue}":`];return Ke&&xe.push(`library name "${tt}" contains illegal characters (whitespace or "/")`),Ke&&kt&&xe.push("and"),kt&&xe.push(`version name "${Ue}" contains illegal characters (whitespace or "/")`),void f.warn(xe.join(" "))}Ot(new e.wA(`${tt}-version`,()=>({library:tt,version:Ue}),"VERSION"))}function br(Cr,Ue){if(null!==Cr&&"function"!=typeof Cr)throw Lt.create("invalid-log-argument");(0,l.Am)(Cr,Ue)}function rt(Cr){(0,l.Ub)(Cr)}const ot="firebase-heartbeat-store";let nt=null;function Yt(){return nt||(nt=(0,r.X3)("firebase-heartbeat-database",1,{upgrade:(Cr,Ue)=>{0===Ue&&Cr.createObjectStore(ot)}}).catch(Cr=>{throw Lt.create("idb-open",{originalErrorMessage:Cr.message})})),nt}function X(){return(X=(0,t.Z)(function*(Cr){try{return(yield Yt()).transaction(ot).objectStore(ot).get(We(Cr))}catch(Ue){if(Ue instanceof h.ZR)f.warn(Ue.message);else{const Pt=Lt.create("idb-get",{originalErrorMessage:null==Ue?void 0:Ue.message});f.warn(Pt.message)}}})).apply(this,arguments)}function ge(Cr,Ue){return Me.apply(this,arguments)}function Me(){return(Me=(0,t.Z)(function*(Cr,Ue){try{const He=(yield Yt()).transaction(ot,"readwrite");return yield He.objectStore(ot).put(Ue,We(Cr)),He.done}catch(Pt){if(Pt instanceof h.ZR)f.warn(Pt.message);else{const He=Lt.create("idb-set",{originalErrorMessage:null==Pt?void 0:Pt.message});f.warn(He.message)}}})).apply(this,arguments)}function We(Cr){return`${Cr.name}!${Cr.options.appId}`}class Zt{constructor(Ue){this.container=Ue,this._heartbeatsCache=null;const Pt=this.container.getProvider("app").getImmediate();this._storage=new gt(Pt),this._heartbeatsCachePromise=this._storage.read().then(He=>(this._heartbeatsCache=He,He))}triggerHeartbeat(){var Ue=this;return(0,t.Z)(function*(){const He=Ue.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),tt=cr();if(null===Ue._heartbeatsCache&&(Ue._heartbeatsCache=yield Ue._heartbeatsCachePromise),Ue._heartbeatsCache.lastSentHeartbeatDate!==tt&&!Ue._heartbeatsCache.heartbeats.some(Ke=>Ke.date===tt))return Ue._heartbeatsCache.heartbeats.push({date:tt,agent:He}),Ue._heartbeatsCache.heartbeats=Ue._heartbeatsCache.heartbeats.filter(Ke=>{const kt=new Date(Ke.date).valueOf();return Date.now()-kt<=2592e6}),Ue._storage.overwrite(Ue._heartbeatsCache)})()}getHeartbeatsHeader(){var Ue=this;return(0,t.Z)(function*(){if(null===Ue._heartbeatsCache&&(yield Ue._heartbeatsCachePromise),null===Ue._heartbeatsCache||0===Ue._heartbeatsCache.heartbeats.length)return"";const Pt=cr(),{heartbeatsToSend:He,unsentEntries:tt}=function wt(Cr,Ue=1024){const Pt=[];let He=Cr.slice();for(const tt of Cr){const Ke=Pt.find(kt=>kt.agent===tt.agent);if(Ke){if(Ke.dates.push(tt.date),Ut(Pt)>Ue){Ke.dates.pop();break}}else if(Pt.push({agent:tt.agent,dates:[tt.date]}),Ut(Pt)>Ue){Pt.pop();break}He=He.slice(1)}return{heartbeatsToSend:Pt,unsentEntries:He}}(Ue._heartbeatsCache.heartbeats),Ke=(0,h.L)(JSON.stringify({version:2,heartbeats:He}));return Ue._heartbeatsCache.lastSentHeartbeatDate=Pt,tt.length>0?(Ue._heartbeatsCache.heartbeats=tt,yield Ue._storage.overwrite(Ue._heartbeatsCache)):(Ue._heartbeatsCache.heartbeats=[],Ue._storage.overwrite(Ue._heartbeatsCache)),Ke})()}}function cr(){return(new Date).toISOString().substring(0,10)}class gt{constructor(Ue){this.app=Ue,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return(0,t.Z)(function*(){return!!(0,h.hl)()&&(0,h.eu)().then(()=>!0).catch(()=>!1)})()}read(){var Ue=this;return(0,t.Z)(function*(){return(yield Ue._canUseIndexedDBPromise)&&(yield function Ne(Cr){return X.apply(this,arguments)}(Ue.app))||{heartbeats:[]}})()}overwrite(Ue){var Pt=this;return(0,t.Z)(function*(){var He;if(yield Pt._canUseIndexedDBPromise){const Ke=yield Pt.read();return ge(Pt.app,{lastSentHeartbeatDate:null!==(He=Ue.lastSentHeartbeatDate)&&void 0!==He?He:Ke.lastSentHeartbeatDate,heartbeats:Ue.heartbeats})}})()}add(Ue){var Pt=this;return(0,t.Z)(function*(){var He;if(yield Pt._canUseIndexedDBPromise){const Ke=yield Pt.read();return ge(Pt.app,{lastSentHeartbeatDate:null!==(He=Ue.lastSentHeartbeatDate)&&void 0!==He?He:Ke.lastSentHeartbeatDate,heartbeats:[...Ke.heartbeats,...Ue.heartbeats]})}})()}}function Ut(Cr){return(0,h.L)(JSON.stringify({version:2,heartbeats:Cr})).length}!function hr(Cr){Ot(new e.wA("platform-logger",Ue=>new d(Ue),"PRIVATE")),Ot(new e.wA("heartbeat",Ue=>new Zt(Ue),"PRIVATE")),Ft(g,p,Cr),Ft(g,p,"esm2017"),Ft("fire-js","")}("")},34859:(M,b,n)=>{"use strict";n.d(b,{H0:()=>g,wA:()=>l,zt:()=>r});var t=n(49671),e=n(42090);class l{constructor(f,C,N){this.name=f,this.instanceFactory=C,this.type=N,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(f){return this.instantiationMode=f,this}setMultipleInstances(f){return this.multipleInstances=f,this}setServiceProps(f){return this.serviceProps=f,this}setInstanceCreatedCallback(f){return this.onInstanceCreated=f,this}}const h="[DEFAULT]";class r{constructor(f,C){this.name=f,this.container=C,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(f){const C=this.normalizeInstanceIdentifier(f);if(!this.instancesDeferred.has(C)){const N=new e.BH;if(this.instancesDeferred.set(C,N),this.isInitialized(C)||this.shouldAutoInitialize())try{const a=this.getOrInitializeService({instanceIdentifier:C});a&&N.resolve(a)}catch{}}return this.instancesDeferred.get(C).promise}getImmediate(f){var C;const N=this.normalizeInstanceIdentifier(null==f?void 0:f.identifier),a=null!==(C=null==f?void 0:f.optional)&&void 0!==C&&C;if(!this.isInitialized(N)&&!this.shouldAutoInitialize()){if(a)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:N})}catch(O){if(a)return null;throw O}}getComponent(){return this.component}setComponent(f){if(f.name!==this.name)throw Error(`Mismatching Component ${f.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=f,this.shouldAutoInitialize()){if(function y(p){return"EAGER"===p.instantiationMode}(f))try{this.getOrInitializeService({instanceIdentifier:h})}catch{}for(const[C,N]of this.instancesDeferred.entries()){const a=this.normalizeInstanceIdentifier(C);try{const O=this.getOrInitializeService({instanceIdentifier:a});N.resolve(O)}catch{}}}}clearInstance(f=h){this.instancesDeferred.delete(f),this.instancesOptions.delete(f),this.instances.delete(f)}delete(){var f=this;return(0,t.Z)(function*(){const C=Array.from(f.instances.values());yield Promise.all([...C.filter(N=>"INTERNAL"in N).map(N=>N.INTERNAL.delete()),...C.filter(N=>"_delete"in N).map(N=>N._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(f=h){return this.instances.has(f)}getOptions(f=h){return this.instancesOptions.get(f)||{}}initialize(f={}){const{options:C={}}=f,N=this.normalizeInstanceIdentifier(f.instanceIdentifier);if(this.isInitialized(N))throw Error(`${this.name}(${N}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const a=this.getOrInitializeService({instanceIdentifier:N,options:C});for(const[O,H]of this.instancesDeferred.entries())N===this.normalizeInstanceIdentifier(O)&&H.resolve(a);return a}onInit(f,C){var N;const a=this.normalizeInstanceIdentifier(C),O=null!==(N=this.onInitCallbacks.get(a))&&void 0!==N?N:new Set;O.add(f),this.onInitCallbacks.set(a,O);const H=this.instances.get(a);return H&&f(H,a),()=>{O.delete(f)}}invokeOnInitCallbacks(f,C){const N=this.onInitCallbacks.get(C);if(N)for(const a of N)try{a(f,C)}catch{}}getOrInitializeService({instanceIdentifier:f,options:C={}}){let N=this.instances.get(f);if(!N&&this.component&&(N=this.component.instanceFactory(this.container,{instanceIdentifier:(p=f,p===h?void 0:p),options:C}),this.instances.set(f,N),this.instancesOptions.set(f,C),this.invokeOnInitCallbacks(N,f),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,f,N)}catch{}var p;return N||null}normalizeInstanceIdentifier(f=h){return this.component?this.component.multipleInstances?f:h:f}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class g{constructor(f){this.name=f,this.providers=new Map}addComponent(f){const C=this.getProvider(f.name);if(C.isComponentSet())throw new Error(`Component ${f.name} has already been registered with ${this.name}`);C.setComponent(f)}addOrOverwriteComponent(f){this.getProvider(f.name).isComponentSet()&&this.providers.delete(f.name),this.addComponent(f)}getProvider(f){if(this.providers.has(f))return this.providers.get(f);const C=new r(f,this);return this.providers.set(f,C),C}getProviders(){return Array.from(this.providers.values())}}},12833:(M,b,n)=>{"use strict";var t=n(49671),e=n(49681),l=n(34859),h=n(42090),r=n(98766);const d="@firebase/installations",y="0.6.4",p=`w:${y}`,f="FIS_v2",F=new h.LL("installations","Installations",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."});function V(Se){return Se instanceof h.ZR&&Se.code.includes("request-failed")}function D({projectId:Se}){return`https://firebaseinstallations.googleapis.com/v1/projects/${Se}/installations`}function U(Se){return{token:Se.token,requestStatus:2,expiresIn:oe(Se.expiresIn),creationTime:Date.now()}}function q(Se,Xe){return J.apply(this,arguments)}function J(){return(J=(0,t.Z)(function*(Se,Xe){const zt=(yield Xe.json()).error;return F.create("request-failed",{requestName:Se,serverCode:zt.code,serverMessage:zt.message,serverStatus:zt.status})})).apply(this,arguments)}function G({apiKey:Se}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":Se})}function ie(Se,{refreshToken:Xe}){const Ct=G(Se);return Ct.append("Authorization",function B(Se){return`${f} ${Se}`}(Xe)),Ct}function K(Se){return re.apply(this,arguments)}function re(){return(re=(0,t.Z)(function*(Se){const Xe=yield Se();return Xe.status>=500&&Xe.status<600?Se():Xe})).apply(this,arguments)}function oe(Se){return Number(Se.replace("s","000"))}function s(Se,Xe){return _.apply(this,arguments)}function _(){return(_=(0,t.Z)(function*({appConfig:Se,heartbeatServiceProvider:Xe},{fid:Ct}){const zt=D(Se),kr=G(Se),Br=Xe.getImmediate({optional:!0});if(Br){const Ur=yield Br.getHeartbeatsHeader();Ur&&kr.append("x-firebase-client",Ur)}const tr={method:"POST",headers:kr,body:JSON.stringify({fid:Ct,authVersion:f,appId:Se.appId,sdkVersion:p})},Rr=yield K(()=>fetch(zt,tr));if(Rr.ok){const Ur=yield Rr.json();return{fid:Ur.fid||Ct,registrationStatus:2,refreshToken:Ur.refreshToken,authToken:U(Ur.authToken)}}throw yield q("Create Installation",Rr)})).apply(this,arguments)}function w(Se){return new Promise(Xe=>{setTimeout(Xe,Se)})}const x=/^[cdef][\w-]{21}$/;function $(){try{const Se=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(Se),Se[0]=112+Se[0]%16;const Ct=function Y(Se){return function E(Se){return btoa(String.fromCharCode(...Se)).replace(/\+/g,"-").replace(/\//g,"_")}(Se).substr(0,22)}(Se);return x.test(Ct)?Ct:""}catch{return""}}function u(Se){return`${Se.appName}!${Se.appId}`}const W=new Map;function fe(Se,Xe){const Ct=u(Se);Qe(Ct,Xe),function Ot(Se,Xe){const Ct=function Ze(){return!At&&"BroadcastChannel"in self&&(At=new BroadcastChannel("[Firebase] FID Change"),At.onmessage=Se=>{Qe(Se.data.key,Se.data.fid)}),At}();Ct&&Ct.postMessage({key:Se,fid:Xe}),function at(){0===W.size&&At&&(At.close(),At=null)}()}(Ct,Xe)}function Qe(Se,Xe){const Ct=W.get(Se);if(Ct)for(const zt of Ct)zt(Xe)}let At=null;const _e="firebase-installations-store";let ne=null;function be(){return ne||(ne=(0,r.X3)("firebase-installations-database",1,{upgrade:(Se,Xe)=>{0===Xe&&Se.createObjectStore(_e)}})),ne}function Te(Se,Xe){return $e.apply(this,arguments)}function $e(){return($e=(0,t.Z)(function*(Se,Xe){const Ct=u(Se),kr=(yield be()).transaction(_e,"readwrite"),Br=kr.objectStore(_e),xt=yield Br.get(Ct);return yield Br.put(Xe,Ct),yield kr.done,(!xt||xt.fid!==Xe.fid)&&fe(Se,Xe.fid),Xe})).apply(this,arguments)}function ft(Se){return Ge.apply(this,arguments)}function Ge(){return(Ge=(0,t.Z)(function*(Se){const Xe=u(Se),zt=(yield be()).transaction(_e,"readwrite");yield zt.objectStore(_e).delete(Xe),yield zt.done})).apply(this,arguments)}function Ft(Se,Xe){return br.apply(this,arguments)}function br(){return(br=(0,t.Z)(function*(Se,Xe){const Ct=u(Se),kr=(yield be()).transaction(_e,"readwrite"),Br=kr.objectStore(_e),xt=yield Br.get(Ct),tr=Xe(xt);return void 0===tr?yield Br.delete(Ct):yield Br.put(tr,Ct),yield kr.done,tr&&(!xt||xt.fid!==tr.fid)&&fe(Se,tr.fid),tr})).apply(this,arguments)}function rt(Se){return st.apply(this,arguments)}function st(){return(st=(0,t.Z)(function*(Se){let Xe;const Ct=yield Ft(Se.appConfig,zt=>{const kr=Dt(zt),Br=ot(Se,kr);return Xe=Br.registrationPromise,Br.installationEntry});return""===Ct.fid?{installationEntry:yield Xe}:{installationEntry:Ct,registrationPromise:Xe}})).apply(this,arguments)}function Dt(Se){return Me(Se||{fid:$(),registrationStatus:0})}function ot(Se,Xe){if(0===Xe.registrationStatus){if(!navigator.onLine)return{installationEntry:Xe,registrationPromise:Promise.reject(F.create("app-offline"))};const Ct={fid:Xe.fid,registrationStatus:1,registrationTime:Date.now()},zt=function nt(Se,Xe){return Yt.apply(this,arguments)}(Se,Ct);return{installationEntry:Ct,registrationPromise:zt}}return 1===Xe.registrationStatus?{installationEntry:Xe,registrationPromise:Ne(Se)}:{installationEntry:Xe}}function Yt(){return(Yt=(0,t.Z)(function*(Se,Xe){try{const Ct=yield s(Se,Xe);return Te(Se.appConfig,Ct)}catch(Ct){throw V(Ct)&&409===Ct.customData.serverCode?yield ft(Se.appConfig):yield Te(Se.appConfig,{fid:Xe.fid,registrationStatus:0}),Ct}})).apply(this,arguments)}function Ne(Se){return X.apply(this,arguments)}function X(){return(X=(0,t.Z)(function*(Se){let Xe=yield ge(Se.appConfig);for(;1===Xe.registrationStatus;)yield w(100),Xe=yield ge(Se.appConfig);if(0===Xe.registrationStatus){const{installationEntry:Ct,registrationPromise:zt}=yield rt(Se);return zt||Ct}return Xe})).apply(this,arguments)}function ge(Se){return Ft(Se,Xe=>{if(!Xe)throw F.create("installation-not-found");return Me(Xe)})}function Me(Se){return function We(Se){return 1===Se.registrationStatus&&Se.registrationTime+1e4<Date.now()}(Se)?{fid:Se.fid,registrationStatus:0}:Se}function Re(Se,Xe){return pt.apply(this,arguments)}function pt(){return(pt=(0,t.Z)(function*({appConfig:Se,heartbeatServiceProvider:Xe},Ct){const zt=Zt(Se,Ct),kr=ie(Se,Ct),Br=Xe.getImmediate({optional:!0});if(Br){const Ur=yield Br.getHeartbeatsHeader();Ur&&kr.append("x-firebase-client",Ur)}const tr={method:"POST",headers:kr,body:JSON.stringify({installation:{sdkVersion:p,appId:Se.appId}})},Rr=yield K(()=>fetch(zt,tr));if(Rr.ok)return U(yield Rr.json());throw yield q("Generate Auth Token",Rr)})).apply(this,arguments)}function Zt(Se,{fid:Xe}){return`${D(Se)}/${Xe}/authTokens:generate`}function cr(Se){return wt.apply(this,arguments)}function wt(){return(wt=(0,t.Z)(function*(Se,Xe=!1){let Ct;const zt=yield Ft(Se.appConfig,Br=>{if(!Pt(Br))throw F.create("not-registered");const xt=Br.authToken;if(!Xe&&He(xt))return Br;if(1===xt.requestStatus)return Ct=gt(Se,Xe),Br;{if(!navigator.onLine)throw F.create("app-offline");const tr=Ke(Br);return Ct=Cr(Se,tr),tr}});return Ct?yield Ct:zt.authToken})).apply(this,arguments)}function gt(Se,Xe){return Ut.apply(this,arguments)}function Ut(){return(Ut=(0,t.Z)(function*(Se,Xe){let Ct=yield hr(Se.appConfig);for(;1===Ct.authToken.requestStatus;)yield w(100),Ct=yield hr(Se.appConfig);const zt=Ct.authToken;return 0===zt.requestStatus?cr(Se,Xe):zt})).apply(this,arguments)}function hr(Se){return Ft(Se,Xe=>{if(!Pt(Xe))throw F.create("not-registered");return function kt(Se){return 1===Se.requestStatus&&Se.requestTime+1e4<Date.now()}(Xe.authToken)?Object.assign(Object.assign({},Xe),{authToken:{requestStatus:0}}):Xe})}function Cr(Se,Xe){return Ue.apply(this,arguments)}function Ue(){return(Ue=(0,t.Z)(function*(Se,Xe){try{const Ct=yield Re(Se,Xe),zt=Object.assign(Object.assign({},Xe),{authToken:Ct});return yield Te(Se.appConfig,zt),Ct}catch(Ct){if(!V(Ct)||401!==Ct.customData.serverCode&&404!==Ct.customData.serverCode){const zt=Object.assign(Object.assign({},Xe),{authToken:{requestStatus:0}});yield Te(Se.appConfig,zt)}else yield ft(Se.appConfig);throw Ct}})).apply(this,arguments)}function Pt(Se){return void 0!==Se&&2===Se.registrationStatus}function He(Se){return 2===Se.requestStatus&&!function tt(Se){const Xe=Date.now();return Xe<Se.creationTime||Se.creationTime+Se.expiresIn<Xe+36e5}(Se)}function Ke(Se){const Xe={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},Se),{authToken:Xe})}function Fe(){return(Fe=(0,t.Z)(function*(Se){const Xe=Se,{installationEntry:Ct,registrationPromise:zt}=yield rt(Xe);return zt?zt.catch(console.error):cr(Xe).catch(console.error),Ct.fid})).apply(this,arguments)}function St(){return(St=(0,t.Z)(function*(Se,Xe=!1){const Ct=Se;return yield qe(Ct),(yield cr(Ct,Xe)).token})).apply(this,arguments)}function qe(Se){return ke.apply(this,arguments)}function ke(){return(ke=(0,t.Z)(function*(Se){const{registrationPromise:Xe}=yield rt(Se);Xe&&(yield Xe)})).apply(this,arguments)}function Gt(Se){return F.create("missing-app-config-values",{valueName:Se})}const le="installations",Ie=Se=>{const Xe=Se.getProvider("app").getImmediate(),Ct=function Fr(Se){if(!Se||!Se.options)throw Gt("App Configuration");if(!Se.name)throw Gt("App Name");const Xe=["projectId","apiKey","appId"];for(const Ct of Xe)if(!Se.options[Ct])throw Gt(Ct);return{appName:Se.name,projectId:Se.options.projectId,apiKey:Se.options.apiKey,appId:Se.options.appId}}(Xe);return{app:Xe,appConfig:Ct,heartbeatServiceProvider:(0,e._getProvider)(Xe,"heartbeat"),_delete:()=>Promise.resolve()}},Pe=Se=>{const Xe=Se.getProvider("app").getImmediate(),Ct=(0,e._getProvider)(Xe,le).getImmediate();return{getId:()=>function xe(Se){return Fe.apply(this,arguments)}(Ct),getToken:kr=>function lt(Se){return St.apply(this,arguments)}(Ct,kr)}};(function Oe(){(0,e._registerComponent)(new l.wA(le,Ie,"PUBLIC")),(0,e._registerComponent)(new l.wA("installations-internal",Pe,"PRIVATE"))})(),(0,e.registerVersion)(d,y),(0,e.registerVersion)(d,y,"esm2017")},41877:(M,b,n)=>{"use strict";n.d(b,{Am:()=>p,Ub:()=>g,Yd:()=>y,in:()=>e});const t=[];var e=(()=>{return(f=e||(e={}))[f.DEBUG=0]="DEBUG",f[f.VERBOSE=1]="VERBOSE",f[f.INFO=2]="INFO",f[f.WARN=3]="WARN",f[f.ERROR=4]="ERROR",f[f.SILENT=5]="SILENT",e;var f})();const l={debug:e.DEBUG,verbose:e.VERBOSE,info:e.INFO,warn:e.WARN,error:e.ERROR,silent:e.SILENT},h=e.INFO,r={[e.DEBUG]:"log",[e.VERBOSE]:"log",[e.INFO]:"info",[e.WARN]:"warn",[e.ERROR]:"error"},d=(f,C,...N)=>{if(C<f.logLevel)return;const a=(new Date).toISOString(),O=r[C];if(!O)throw new Error(`Attempted to log a message with an invalid logType (value: ${C})`);console[O](`[${a}]  ${f.name}:`,...N)};class y{constructor(C){this.name=C,this._logLevel=h,this._logHandler=d,this._userLogHandler=null,t.push(this)}get logLevel(){return this._logLevel}set logLevel(C){if(!(C in e))throw new TypeError(`Invalid value "${C}" assigned to \`logLevel\``);this._logLevel=C}setLogLevel(C){this._logLevel="string"==typeof C?l[C]:C}get logHandler(){return this._logHandler}set logHandler(C){if("function"!=typeof C)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=C}get userLogHandler(){return this._userLogHandler}set userLogHandler(C){this._userLogHandler=C}debug(...C){this._userLogHandler&&this._userLogHandler(this,e.DEBUG,...C),this._logHandler(this,e.DEBUG,...C)}log(...C){this._userLogHandler&&this._userLogHandler(this,e.VERBOSE,...C),this._logHandler(this,e.VERBOSE,...C)}info(...C){this._userLogHandler&&this._userLogHandler(this,e.INFO,...C),this._logHandler(this,e.INFO,...C)}warn(...C){this._userLogHandler&&this._userLogHandler(this,e.WARN,...C),this._logHandler(this,e.WARN,...C)}error(...C){this._userLogHandler&&this._userLogHandler(this,e.ERROR,...C),this._logHandler(this,e.ERROR,...C)}}function g(f){t.forEach(C=>{C.setLogLevel(f)})}function p(f,C){for(const N of t){let a=null;C&&C.level&&(a=l[C.level]),N.userLogHandler=null===f?null:(O,H,...F)=>{const V=F.map(D=>{if(null==D)return null;if("string"==typeof D)return D;if("number"==typeof D||"boolean"==typeof D)return D.toString();if(D instanceof Error)return D.message;try{return JSON.stringify(D)}catch{return null}}).filter(D=>D).join(" ");H>=(a??O.logLevel)&&f({level:e[H].toLowerCase(),message:V,args:F,type:O.name})}}}},20908:(M,b,n)=>{"use strict";n.d(b,{Gb:()=>ke,LP:()=>Ar,pQ:()=>Fr,ps:()=>Gt});var t=n(49671),l=(n(12833),n(34859)),h=n(98766),r=n(42090),d=n(49681);const y="/firebase-messaging-sw.js",g="/firebase-cloud-messaging-push-scope",p="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",C="google.c.a.c_id",N="google.c.a.c_l",a="google.c.a.ts",O="google.c.a.e";var F=(()=>{return(le=F||(F={})).PUSH_RECEIVED="push-received",le.NOTIFICATION_CLICKED="notification-clicked",F;var le})();function V(le){const Ce=new Uint8Array(le);return btoa(String.fromCharCode(...Ce)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function D(le){const Ie=(le+"=".repeat((4-le.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),Pe=atob(Ie),Oe=new Uint8Array(Pe.length);for(let Se=0;Se<Pe.length;++Se)Oe[Se]=Pe.charCodeAt(Se);return Oe}const U="fcm_token_details_db",J="fcm_token_object_Store";function G(le){return ie.apply(this,arguments)}function ie(){return ie=(0,t.Z)(function*(le){if("databases"in indexedDB&&!(yield indexedDB.databases()).map(Se=>Se.name).includes(U))return null;let Ce=null;return(yield(0,h.X3)(U,5,{upgrade:(Pe=(0,t.Z)(function*(Oe,Se,Xe,Ct){var zt;if(Se<2||!Oe.objectStoreNames.contains(J))return;const kr=Ct.objectStore(J),Br=yield kr.index("fcmSenderId").get(le);if(yield kr.clear(),Br)if(2===Se){const xt=Br;if(!xt.auth||!xt.p256dh||!xt.endpoint)return;Ce={token:xt.fcmToken,createTime:null!==(zt=xt.createTime)&&void 0!==zt?zt:Date.now(),subscriptionOptions:{auth:xt.auth,p256dh:xt.p256dh,endpoint:xt.endpoint,swScope:xt.swScope,vapidKey:"string"==typeof xt.vapidKey?xt.vapidKey:V(xt.vapidKey)}}}else if(3===Se){const xt=Br;Ce={token:xt.fcmToken,createTime:xt.createTime,subscriptionOptions:{auth:V(xt.auth),p256dh:V(xt.p256dh),endpoint:xt.endpoint,swScope:xt.swScope,vapidKey:V(xt.vapidKey)}}}else if(4===Se){const xt=Br;Ce={token:xt.fcmToken,createTime:xt.createTime,subscriptionOptions:{auth:V(xt.auth),p256dh:V(xt.p256dh),endpoint:xt.endpoint,swScope:xt.swScope,vapidKey:V(xt.vapidKey)}}}}),function(Se,Xe,Ct,zt){return Pe.apply(this,arguments)})})).close(),yield(0,h.Lj)(U),yield(0,h.Lj)("fcm_vapid_details_db"),yield(0,h.Lj)("undefined"),K(Ce)?Ce:null;var Pe}),ie.apply(this,arguments)}function K(le){if(!le||!le.subscriptionOptions)return!1;const{subscriptionOptions:Ce}=le;return"number"==typeof le.createTime&&le.createTime>0&&"string"==typeof le.token&&le.token.length>0&&"string"==typeof Ce.auth&&Ce.auth.length>0&&"string"==typeof Ce.p256dh&&Ce.p256dh.length>0&&"string"==typeof Ce.endpoint&&Ce.endpoint.length>0&&"string"==typeof Ce.swScope&&Ce.swScope.length>0&&"string"==typeof Ce.vapidKey&&Ce.vapidKey.length>0}const B="firebase-messaging-store";let s=null;function _(){return s||(s=(0,h.X3)("firebase-messaging-database",1,{upgrade:(le,Ce)=>{0===Ce&&le.createObjectStore(B)}})),s}function w(le){return E.apply(this,arguments)}function E(){return(E=(0,t.Z)(function*(le){const Ce=u(le),Pe=yield(yield _()).transaction(B).objectStore(B).get(Ce);if(Pe)return Pe;{const Oe=yield G(le.appConfig.senderId);if(Oe)return yield x(le,Oe),Oe}})).apply(this,arguments)}function x(le,Ce){return j.apply(this,arguments)}function j(){return(j=(0,t.Z)(function*(le,Ce){const Ie=u(le),Oe=(yield _()).transaction(B,"readwrite");return yield Oe.objectStore(B).put(Ce,Ie),yield Oe.done,Ce})).apply(this,arguments)}function $(le){return Y.apply(this,arguments)}function Y(){return(Y=(0,t.Z)(function*(le){const Ce=u(le),Pe=(yield _()).transaction(B,"readwrite");yield Pe.objectStore(B).delete(Ce),yield Pe.done})).apply(this,arguments)}function u({appConfig:le}){return le.appId}const fe=new r.LL("messaging","Messaging",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","use-sw-after-get-token":"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.","invalid-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","use-vapid-key-after-get-token":"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."});function ae(le,Ce){return ye.apply(this,arguments)}function ye(){return(ye=(0,t.Z)(function*(le,Ce){const Ie=yield Be(le),Pe=_e(Ce),Oe={method:"POST",headers:Ie,body:JSON.stringify(Pe)};let Se;try{Se=yield(yield fetch(at(le.appConfig),Oe)).json()}catch(Xe){throw fe.create("token-subscribe-failed",{errorInfo:null==Xe?void 0:Xe.toString()})}if(Se.error)throw fe.create("token-subscribe-failed",{errorInfo:Se.error.message});if(!Se.token)throw fe.create("token-subscribe-no-token");return Se.token})).apply(this,arguments)}function Qe(le,Ce){return Ot.apply(this,arguments)}function Ot(){return(Ot=(0,t.Z)(function*(le,Ce){const Ie=yield Be(le),Pe=_e(Ce.subscriptionOptions),Oe={method:"PATCH",headers:Ie,body:JSON.stringify(Pe)};let Se;try{Se=yield(yield fetch(`${at(le.appConfig)}/${Ce.token}`,Oe)).json()}catch(Xe){throw fe.create("token-update-failed",{errorInfo:null==Xe?void 0:Xe.toString()})}if(Se.error)throw fe.create("token-update-failed",{errorInfo:Se.error.message});if(!Se.token)throw fe.create("token-update-no-token");return Se.token})).apply(this,arguments)}function At(le,Ce){return Ze.apply(this,arguments)}function Ze(){return(Ze=(0,t.Z)(function*(le,Ce){const Pe={method:"DELETE",headers:yield Be(le)};try{const Se=yield(yield fetch(`${at(le.appConfig)}/${Ce}`,Pe)).json();if(Se.error)throw fe.create("token-unsubscribe-failed",{errorInfo:Se.error.message})}catch(Oe){throw fe.create("token-unsubscribe-failed",{errorInfo:null==Oe?void 0:Oe.toString()})}})).apply(this,arguments)}function at({projectId:le}){return`https://fcmregistrations.googleapis.com/v1/projects/${le}/registrations`}function Be(le){return Lt.apply(this,arguments)}function Lt(){return(Lt=(0,t.Z)(function*({appConfig:le,installations:Ce}){const Ie=yield Ce.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":le.apiKey,"x-goog-firebase-installations-auth":`FIS ${Ie}`})})).apply(this,arguments)}function _e({p256dh:le,auth:Ce,endpoint:Ie,vapidKey:Pe}){const Oe={web:{endpoint:Ie,auth:Ce,p256dh:le}};return Pe!==p&&(Oe.web.applicationPubKey=Pe),Oe}const ne=6048e5;function be(le){return Te.apply(this,arguments)}function Te(){return(Te=(0,t.Z)(function*(le){const Ce=yield st(le.swRegistration,le.vapidKey),Ie={vapidKey:le.vapidKey,swScope:le.swRegistration.scope,endpoint:Ce.endpoint,auth:V(Ce.getKey("auth")),p256dh:V(Ce.getKey("p256dh"))},Pe=yield w(le.firebaseDependencies);if(Pe){if(ot(Pe.subscriptionOptions,Ie))return Date.now()>=Pe.createTime+ne?Ge(le,{token:Pe.token,createTime:Date.now(),subscriptionOptions:Ie}):Pe.token;try{yield At(le.firebaseDependencies,Pe.token)}catch(Oe){console.warn(Oe)}return br(le.firebaseDependencies,Ie)}return br(le.firebaseDependencies,Ie)})).apply(this,arguments)}function $e(le){return ft.apply(this,arguments)}function ft(){return(ft=(0,t.Z)(function*(le){const Ce=yield w(le.firebaseDependencies);Ce&&(yield At(le.firebaseDependencies,Ce.token),yield $(le.firebaseDependencies));const Ie=yield le.swRegistration.pushManager.getSubscription();return!Ie||Ie.unsubscribe()})).apply(this,arguments)}function Ge(le,Ce){return Ft.apply(this,arguments)}function Ft(){return(Ft=(0,t.Z)(function*(le,Ce){try{const Ie=yield Qe(le.firebaseDependencies,Ce),Pe=Object.assign(Object.assign({},Ce),{token:Ie,createTime:Date.now()});return yield x(le.firebaseDependencies,Pe),Ie}catch(Ie){throw yield $e(le),Ie}})).apply(this,arguments)}function br(le,Ce){return rt.apply(this,arguments)}function rt(){return(rt=(0,t.Z)(function*(le,Ce){const Pe={token:yield ae(le,Ce),createTime:Date.now(),subscriptionOptions:Ce};return yield x(le,Pe),Pe.token})).apply(this,arguments)}function st(le,Ce){return Dt.apply(this,arguments)}function Dt(){return(Dt=(0,t.Z)(function*(le,Ce){return(yield le.pushManager.getSubscription())||le.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:D(Ce)})})).apply(this,arguments)}function ot(le,Ce){return Ce.vapidKey===le.vapidKey&&Ce.endpoint===le.endpoint&&Ce.auth===le.auth&&Ce.p256dh===le.p256dh}function nt(le){const Ce={from:le.from,collapseKey:le.collapse_key,messageId:le.fcmMessageId};return function Yt(le,Ce){if(!Ce.notification)return;le.notification={};const Ie=Ce.notification.title;Ie&&(le.notification.title=Ie);const Pe=Ce.notification.body;Pe&&(le.notification.body=Pe);const Oe=Ce.notification.image;Oe&&(le.notification.image=Oe);const Se=Ce.notification.icon;Se&&(le.notification.icon=Se)}(Ce,le),function Ne(le,Ce){!Ce.data||(le.data=Ce.data)}(Ce,le),function X(le,Ce){var Ie,Pe,Oe,Se,Xe;if(!Ce.fcmOptions&&!(null===(Ie=Ce.notification)||void 0===Ie?void 0:Ie.click_action))return;le.fcmOptions={};const Ct=null!==(Oe=null===(Pe=Ce.fcmOptions)||void 0===Pe?void 0:Pe.link)&&void 0!==Oe?Oe:null===(Se=Ce.notification)||void 0===Se?void 0:Se.click_action;Ct&&(le.fcmOptions.link=Ct);const zt=null===(Xe=Ce.fcmOptions)||void 0===Xe?void 0:Xe.analytics_label;zt&&(le.fcmOptions.analyticsLabel=zt)}(Ce,le),Ce}function ge(le){return"object"==typeof le&&!!le&&C in le}function Me(le,Ce){const Ie=[];for(let Pe=0;Pe<le.length;Pe++)Ie.push(le.charAt(Pe)),Pe<Ce.length&&Ie.push(Ce.charAt(Pe));return Ie.join("")}function Re(le){return fe.create("missing-app-config-values",{valueName:le})}Me("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),Me("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");class pt{constructor(Ce,Ie,Pe){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const Oe=function We(le){if(!le||!le.options)throw Re("App Configuration Object");if(!le.name)throw Re("App Name");const Ce=["projectId","apiKey","appId","messagingSenderId"],{options:Ie}=le;for(const Pe of Ce)if(!Ie[Pe])throw Re(Pe);return{appName:le.name,projectId:Ie.projectId,apiKey:Ie.apiKey,appId:Ie.appId,senderId:Ie.messagingSenderId}}(Ce);this.firebaseDependencies={app:Ce,appConfig:Oe,installations:Ie,analyticsProvider:Pe}}_delete(){return Promise.resolve()}}function Zt(le){return cr.apply(this,arguments)}function cr(){return(cr=(0,t.Z)(function*(le){try{le.swRegistration=yield navigator.serviceWorker.register(y,{scope:g}),le.swRegistration.update().catch(()=>{})}catch(Ce){throw fe.create("failed-service-worker-registration",{browserErrorMessage:null==Ce?void 0:Ce.message})}})).apply(this,arguments)}function wt(le,Ce){return gt.apply(this,arguments)}function gt(){return(gt=(0,t.Z)(function*(le,Ce){if(!Ce&&!le.swRegistration&&(yield Zt(le)),Ce||!le.swRegistration){if(!(Ce instanceof ServiceWorkerRegistration))throw fe.create("invalid-sw-registration");le.swRegistration=Ce}})).apply(this,arguments)}function Ut(le,Ce){return hr.apply(this,arguments)}function hr(){return(hr=(0,t.Z)(function*(le,Ce){Ce?le.vapidKey=Ce:le.vapidKey||(le.vapidKey=p)})).apply(this,arguments)}function Cr(le,Ce){return Ue.apply(this,arguments)}function Ue(){return(Ue=(0,t.Z)(function*(le,Ce){if(!navigator)throw fe.create("only-available-in-window");if("default"===Notification.permission&&(yield Notification.requestPermission()),"granted"!==Notification.permission)throw fe.create("permission-blocked");return yield Ut(le,null==Ce?void 0:Ce.vapidKey),yield wt(le,null==Ce?void 0:Ce.serviceWorkerRegistration),be(le)})).apply(this,arguments)}function Pt(le,Ce,Ie){return He.apply(this,arguments)}function He(){return(He=(0,t.Z)(function*(le,Ce,Ie){const Pe=tt(Ce);(yield le.firebaseDependencies.analyticsProvider.get()).logEvent(Pe,{message_id:Ie[C],message_name:Ie[N],message_time:Ie[a],message_device_time:Math.floor(Date.now()/1e3)})})).apply(this,arguments)}function tt(le){switch(le){case F.NOTIFICATION_CLICKED:return"notification_open";case F.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}function kt(){return(kt=(0,t.Z)(function*(le,Ce){const Ie=Ce.data;if(!Ie.isFirebaseMessaging)return;le.onMessageHandler&&Ie.messageType===F.PUSH_RECEIVED&&("function"==typeof le.onMessageHandler?le.onMessageHandler(nt(Ie)):le.onMessageHandler.next(nt(Ie)));const Pe=Ie.data;ge(Pe)&&"1"===Pe[O]&&(yield Pt(le,Ie.messageType,Pe))})).apply(this,arguments)}const xe="@firebase/messaging",lt=le=>{const Ce=new pt(le.getProvider("app").getImmediate(),le.getProvider("installations-internal").getImmediate(),le.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",Ie=>function Ke(le,Ce){return kt.apply(this,arguments)}(Ce,Ie)),Ce},St=le=>{const Ce=le.getProvider("messaging").getImmediate();return{getToken:Pe=>Cr(Ce,Pe)}};function ke(){return ct.apply(this,arguments)}function ct(){return(ct=(0,t.Z)(function*(){try{yield(0,r.eu)()}catch{return!1}return typeof window<"u"&&(0,r.hl)()&&(0,r.zI)()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")})).apply(this,arguments)}function $t(){return($t=(0,t.Z)(function*(le){if(!navigator)throw fe.create("only-available-in-window");return le.swRegistration||(yield Zt(le)),$e(le)})).apply(this,arguments)}function Ar(le,Ce){return Jr.apply(this,arguments)}function Jr(){return(Jr=(0,t.Z)(function*(le,Ce){return Cr(le=(0,r.m9)(le),Ce)})).apply(this,arguments)}function Fr(le){return function vt(le){return $t.apply(this,arguments)}(le=(0,r.m9)(le))}function Gt(le,Ce){return function Vr(le,Ce){if(!navigator)throw fe.create("only-available-in-window");return le.onMessageHandler=Ce,()=>{le.onMessageHandler=null}}(le=(0,r.m9)(le),Ce)}!function qe(){(0,d._registerComponent)(new l.wA("messaging",lt,"PUBLIC")),(0,d._registerComponent)(new l.wA("messaging-internal",St,"PRIVATE")),(0,d.registerVersion)(xe,"0.12.4"),(0,d.registerVersion)(xe,"0.12.4","esm2017")}()},92200:(M,b,n)=>{"use strict";n.d(b,{S:()=>df,f:()=>Wc});var t=n(49671),e=n(36895),l=n(94650),h=n(24006);var I,y=(I=function(m,R){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Z,Q){Z.__proto__=Q}||function(Z,Q){for(var se in Q)Object.prototype.hasOwnProperty.call(Q,se)&&(Z[se]=Q[se])})(m,R)},function(c,m){if("function"!=typeof m&&null!==m)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}),g=function(I){function c(m,R){var Z=this.constructor,Q=I.call(this,m,R)||this;return Object.defineProperty(Q,"name",{value:Z.name,enumerable:!1,configurable:!0}),function r(I,c){var m=Object.setPrototypeOf;m?m(I,c):I.__proto__=c}(Q,Z.prototype),function d(I,c){void 0===c&&(c=I.constructor);var m=Error.captureStackTrace;m&&m(I,c)}(Q),Q}return y(c,I),c}(Error),C=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),N=function(I){function c(m){void 0===m&&(m=void 0);var R=I.call(this,m)||this;return R.message=m,R}return C(c,I),c.prototype.getKind=function(){return this.constructor.kind},c.kind="Exception",c}(g);const a=N;var O=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),H=function(I){function c(){return null!==I&&I.apply(this,arguments)||this}return O(c,I),c.kind="ArgumentException",c}(a);const F=H;var V=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),D=function(I){function c(){return null!==I&&I.apply(this,arguments)||this}return V(c,I),c.kind="IllegalArgumentException",c}(a);const U=D;var q=function(){function I(c){if(this.binarizer=c,null===c)throw new U("Binarizer must be non-null.")}return I.prototype.getWidth=function(){return this.binarizer.getWidth()},I.prototype.getHeight=function(){return this.binarizer.getHeight()},I.prototype.getBlackRow=function(c,m){return this.binarizer.getBlackRow(c,m)},I.prototype.getBlackMatrix=function(){return null==this.matrix&&(this.matrix=this.binarizer.getBlackMatrix()),this.matrix},I.prototype.isCropSupported=function(){return this.binarizer.getLuminanceSource().isCropSupported()},I.prototype.crop=function(c,m,R,Z){var Q=this.binarizer.getLuminanceSource().crop(c,m,R,Z);return new I(this.binarizer.createBinarizer(Q))},I.prototype.isRotateSupported=function(){return this.binarizer.getLuminanceSource().isRotateSupported()},I.prototype.rotateCounterClockwise=function(){var c=this.binarizer.getLuminanceSource().rotateCounterClockwise();return new I(this.binarizer.createBinarizer(c))},I.prototype.rotateCounterClockwise45=function(){var c=this.binarizer.getLuminanceSource().rotateCounterClockwise45();return new I(this.binarizer.createBinarizer(c))},I.prototype.toString=function(){try{return this.getBlackMatrix().toString()}catch{return""}},I}();const J=q;var G=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),ie=function(I){function c(){return null!==I&&I.apply(this,arguments)||this}return G(c,I),c.getChecksumInstance=function(){return new c},c.kind="ChecksumException",c}(a);const K=ie;var re=function(){function I(c){this.source=c}return I.prototype.getLuminanceSource=function(){return this.source},I.prototype.getWidth=function(){return this.source.getWidth()},I.prototype.getHeight=function(){return this.source.getHeight()},I}();const oe=re;var B=function(){function I(){}return I.arraycopy=function(c,m,R,Z,Q){for(;Q--;)R[Z++]=c[m++]},I.currentTimeMillis=function(){return Date.now()},I}();const s=B;var _=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),w=function(I){function c(){return null!==I&&I.apply(this,arguments)||this}return _(c,I),c.kind="IndexOutOfBoundsException",c}(a);const E=w;var x=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),j=function(I){function c(m,R){void 0===m&&(m=void 0),void 0===R&&(R=void 0);var Z=I.call(this,R)||this;return Z.index=m,Z.message=R,Z}return x(c,I),c.kind="ArrayIndexOutOfBoundsException",c}(E);const $=j;var u=function(){function I(){}return I.fill=function(c,m){for(var R=0,Z=c.length;R<Z;R++)c[R]=m},I.fillWithin=function(c,m,R,Z){I.rangeCheck(c.length,m,R);for(var Q=m;Q<R;Q++)c[Q]=Z},I.rangeCheck=function(c,m,R){if(m>R)throw new U("fromIndex("+m+") > toIndex("+R+")");if(m<0)throw new $(m);if(R>c)throw new $(R)},I.asList=function(){for(var c=[],m=0;m<arguments.length;m++)c[m]=arguments[m];return c},I.create=function(c,m,R){return Array.from({length:c}).map(function(Q){return Array.from({length:m}).fill(R)})},I.createInt32Array=function(c,m,R){return Array.from({length:c}).map(function(Q){return Int32Array.from({length:m}).fill(R)})},I.equals=function(c,m){if(!(c&&m&&c.length&&m.length&&c.length===m.length))return!1;for(var R=0,Z=c.length;R<Z;R++)if(c[R]!==m[R])return!1;return!0},I.hashCode=function(c){var m,R;if(null===c)return 0;var Z=1;try{for(var Q=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")}(c),se=Q.next();!se.done;se=Q.next())Z=31*Z+se.value}catch(Ee){m={error:Ee}}finally{try{se&&!se.done&&(R=Q.return)&&R.call(Q)}finally{if(m)throw m.error}}return Z},I.fillUint8Array=function(c,m){for(var R=0;R!==c.length;R++)c[R]=m},I.copyOf=function(c,m){return c.slice(0,m)},I.copyOfUint8Array=function(c,m){if(c.length<=m){var R=new Uint8Array(m);return R.set(c),R}return c.slice(0,m)},I.copyOfRange=function(c,m,R){var Z=R-m,Q=new Int32Array(Z);return s.arraycopy(c,m,Q,0,Z),Q},I.binarySearch=function(c,m,R){void 0===R&&(R=I.numberComparator);for(var Z=0,Q=c.length-1;Z<=Q;){var se=Q+Z>>1,de=R(m,c[se]);if(de>0)Z=se+1;else{if(!(de<0))return se;Q=se-1}}return-Z-1},I.numberComparator=function(c,m){return c-m},I}();const W=u;var fe=function(){function I(){}return I.numberOfTrailingZeros=function(c){var m;if(0===c)return 32;var R=31;return 0!=(m=c<<16)&&(R-=16,c=m),0!=(m=c<<8)&&(R-=8,c=m),0!=(m=c<<4)&&(R-=4,c=m),0!=(m=c<<2)&&(R-=2,c=m),R-(c<<1>>>31)},I.numberOfLeadingZeros=function(c){if(0===c)return 32;var m=1;return c>>>16==0&&(m+=16,c<<=16),c>>>24==0&&(m+=8,c<<=8),c>>>28==0&&(m+=4,c<<=4),c>>>30==0&&(m+=2,c<<=2),m-(c>>>31)},I.toHexString=function(c){return c.toString(16)},I.toBinaryString=function(c){return String(parseInt(String(c),2))},I.bitCount=function(c){return c=(c=(858993459&(c-=c>>>1&1431655765))+(c>>>2&858993459))+(c>>>4)&252645135,63&(c+=c>>>8)+(c>>>16)},I.truncDivision=function(c,m){return Math.trunc(c/m)},I.parseInt=function(c,m){return void 0===m&&(m=void 0),parseInt(c,m)},I.MIN_VALUE_32_BITS=-2147483648,I.MAX_VALUE=Number.MAX_SAFE_INTEGER,I}();const ae=fe;var ye=function(){function I(c,m){void 0===c?(this.size=0,this.bits=new Int32Array(1)):(this.size=c,this.bits=m??I.makeArray(c))}return I.prototype.getSize=function(){return this.size},I.prototype.getSizeInBytes=function(){return Math.floor((this.size+7)/8)},I.prototype.ensureCapacity=function(c){if(c>32*this.bits.length){var m=I.makeArray(c);s.arraycopy(this.bits,0,m,0,this.bits.length),this.bits=m}},I.prototype.get=function(c){return 0!=(this.bits[Math.floor(c/32)]&1<<(31&c))},I.prototype.set=function(c){this.bits[Math.floor(c/32)]|=1<<(31&c)},I.prototype.flip=function(c){this.bits[Math.floor(c/32)]^=1<<(31&c)},I.prototype.getNextSet=function(c){var m=this.size;if(c>=m)return m;var R=this.bits,Z=Math.floor(c/32),Q=R[Z];Q&=~((1<<(31&c))-1);for(var se=R.length;0===Q;){if(++Z===se)return m;Q=R[Z]}var de=32*Z+ae.numberOfTrailingZeros(Q);return de>m?m:de},I.prototype.getNextUnset=function(c){var m=this.size;if(c>=m)return m;var R=this.bits,Z=Math.floor(c/32),Q=~R[Z];Q&=~((1<<(31&c))-1);for(var se=R.length;0===Q;){if(++Z===se)return m;Q=~R[Z]}var de=32*Z+ae.numberOfTrailingZeros(Q);return de>m?m:de},I.prototype.setBulk=function(c,m){this.bits[Math.floor(c/32)]=m},I.prototype.setRange=function(c,m){if(m<c||c<0||m>this.size)throw new U;if(m!==c){m--;for(var R=Math.floor(c/32),Z=Math.floor(m/32),Q=this.bits,se=R;se<=Z;se++)Q[se]|=(2<<(se<Z?31:31&m))-(1<<(se>R?0:31&c))}},I.prototype.clear=function(){for(var c=this.bits.length,m=this.bits,R=0;R<c;R++)m[R]=0},I.prototype.isRange=function(c,m,R){if(m<c||c<0||m>this.size)throw new U;if(m===c)return!0;m--;for(var Z=Math.floor(c/32),Q=Math.floor(m/32),se=this.bits,de=Z;de<=Q;de++){var mt=(2<<(de<Q?31:31&m))-(1<<(de>Z?0:31&c))&4294967295;if((se[de]&mt)!==(R?mt:0))return!1}return!0},I.prototype.appendBit=function(c){this.ensureCapacity(this.size+1),c&&(this.bits[Math.floor(this.size/32)]|=1<<(31&this.size)),this.size++},I.prototype.appendBits=function(c,m){if(m<0||m>32)throw new U("Num bits must be between 0 and 32");this.ensureCapacity(this.size+m);for(var R=m;R>0;R--)this.appendBit(1==(c>>R-1&1))},I.prototype.appendBitArray=function(c){var m=c.size;this.ensureCapacity(this.size+m);for(var R=0;R<m;R++)this.appendBit(c.get(R))},I.prototype.xor=function(c){if(this.size!==c.size)throw new U("Sizes don't match");for(var m=this.bits,R=0,Z=m.length;R<Z;R++)m[R]^=c.bits[R]},I.prototype.toBytes=function(c,m,R,Z){for(var Q=0;Q<Z;Q++){for(var se=0,de=0;de<8;de++)this.get(c)&&(se|=1<<7-de),c++;m[R+Q]=se}},I.prototype.getBitArray=function(){return this.bits},I.prototype.reverse=function(){for(var c=new Int32Array(this.bits.length),m=Math.floor((this.size-1)/32),R=m+1,Z=this.bits,Q=0;Q<R;Q++){var se=Z[Q];c[m-Q]=se=(se=(se=(se=(se=se>>1&1431655765|(1431655765&se)<<1)>>2&858993459|(858993459&se)<<2)>>4&252645135|(252645135&se)<<4)>>8&16711935|(16711935&se)<<8)>>16&65535|(65535&se)<<16}if(this.size!==32*R){var de=32*R-this.size,Ee=c[0]>>>de;for(Q=1;Q<R;Q++){var Ve=c[Q];c[Q-1]=Ee|=Ve<<32-de,Ee=Ve>>>de}c[R-1]=Ee}this.bits=c},I.makeArray=function(c){return new Int32Array(Math.floor((c+31)/32))},I.prototype.equals=function(c){return c instanceof I&&(this.size===c.size&&W.equals(this.bits,c.bits))},I.prototype.hashCode=function(){return 31*this.size+W.hashCode(this.bits)},I.prototype.toString=function(){for(var c="",m=0,R=this.size;m<R;m++)0==(7&m)&&(c+=" "),c+=this.get(m)?"X":".";return c},I.prototype.clone=function(){return new I(this.size,this.bits.slice())},I}();const Qe=ye;var Ot=(()=>(function(I){I[I.OTHER=0]="OTHER",I[I.PURE_BARCODE=1]="PURE_BARCODE",I[I.POSSIBLE_FORMATS=2]="POSSIBLE_FORMATS",I[I.TRY_HARDER=3]="TRY_HARDER",I[I.CHARACTER_SET=4]="CHARACTER_SET",I[I.ALLOWED_LENGTHS=5]="ALLOWED_LENGTHS",I[I.ASSUME_CODE_39_CHECK_DIGIT=6]="ASSUME_CODE_39_CHECK_DIGIT",I[I.ASSUME_GS1=7]="ASSUME_GS1",I[I.RETURN_CODABAR_START_END=8]="RETURN_CODABAR_START_END",I[I.NEED_RESULT_POINT_CALLBACK=9]="NEED_RESULT_POINT_CALLBACK",I[I.ALLOWED_EAN_EXTENSIONS=10]="ALLOWED_EAN_EXTENSIONS"}(Ot||(Ot={})),Ot))();const At=Ot;var Ze=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),at=function(I){function c(){return null!==I&&I.apply(this,arguments)||this}return Ze(c,I),c.getFormatInstance=function(){return new c},c.kind="FormatException",c}(a);const Be=at;var Lt=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")},_e=(()=>(function(I){I[I.Cp437=0]="Cp437",I[I.ISO8859_1=1]="ISO8859_1",I[I.ISO8859_2=2]="ISO8859_2",I[I.ISO8859_3=3]="ISO8859_3",I[I.ISO8859_4=4]="ISO8859_4",I[I.ISO8859_5=5]="ISO8859_5",I[I.ISO8859_6=6]="ISO8859_6",I[I.ISO8859_7=7]="ISO8859_7",I[I.ISO8859_8=8]="ISO8859_8",I[I.ISO8859_9=9]="ISO8859_9",I[I.ISO8859_10=10]="ISO8859_10",I[I.ISO8859_11=11]="ISO8859_11",I[I.ISO8859_13=12]="ISO8859_13",I[I.ISO8859_14=13]="ISO8859_14",I[I.ISO8859_15=14]="ISO8859_15",I[I.ISO8859_16=15]="ISO8859_16",I[I.SJIS=16]="SJIS",I[I.Cp1250=17]="Cp1250",I[I.Cp1251=18]="Cp1251",I[I.Cp1252=19]="Cp1252",I[I.Cp1256=20]="Cp1256",I[I.UnicodeBigUnmarked=21]="UnicodeBigUnmarked",I[I.UTF8=22]="UTF8",I[I.ASCII=23]="ASCII",I[I.Big5=24]="Big5",I[I.GB18030=25]="GB18030",I[I.EUC_KR=26]="EUC_KR"}(_e||(_e={})),_e))(),ne=function(){function I(c,m,R){for(var Z,Q,se=[],de=3;de<arguments.length;de++)se[de-3]=arguments[de];this.valueIdentifier=c,this.name=R,this.values="number"==typeof m?Int32Array.from([m]):m,this.otherEncodingNames=se,I.VALUE_IDENTIFIER_TO_ECI.set(c,this),I.NAME_TO_ECI.set(R,this);for(var Ee=this.values,Ve=0,mt=Ee.length;Ve!==mt;Ve++){var It=Ee[Ve];I.VALUES_TO_ECI.set(It,this)}try{for(var Jt=Lt(se),Xt=Jt.next();!Xt.done;Xt=Jt.next()){var Lr=Xt.value;I.NAME_TO_ECI.set(Lr,this)}}catch(Yr){Z={error:Yr}}finally{try{Xt&&!Xt.done&&(Q=Jt.return)&&Q.call(Jt)}finally{if(Z)throw Z.error}}}return I.prototype.getValueIdentifier=function(){return this.valueIdentifier},I.prototype.getName=function(){return this.name},I.prototype.getValue=function(){return this.values[0]},I.getCharacterSetECIByValue=function(c){if(c<0||c>=900)throw new Be("incorect value");var m=I.VALUES_TO_ECI.get(c);if(void 0===m)throw new Be("incorect value");return m},I.getCharacterSetECIByName=function(c){var m=I.NAME_TO_ECI.get(c);if(void 0===m)throw new Be("incorect value");return m},I.prototype.equals=function(c){if(!(c instanceof I))return!1;var m=c;return this.getName()===m.getName()},I.VALUE_IDENTIFIER_TO_ECI=new Map,I.VALUES_TO_ECI=new Map,I.NAME_TO_ECI=new Map,I.Cp437=new I(_e.Cp437,Int32Array.from([0,2]),"Cp437"),I.ISO8859_1=new I(_e.ISO8859_1,Int32Array.from([1,3]),"ISO-8859-1","ISO88591","ISO8859_1"),I.ISO8859_2=new I(_e.ISO8859_2,4,"ISO-8859-2","ISO88592","ISO8859_2"),I.ISO8859_3=new I(_e.ISO8859_3,5,"ISO-8859-3","ISO88593","ISO8859_3"),I.ISO8859_4=new I(_e.ISO8859_4,6,"ISO-8859-4","ISO88594","ISO8859_4"),I.ISO8859_5=new I(_e.ISO8859_5,7,"ISO-8859-5","ISO88595","ISO8859_5"),I.ISO8859_6=new I(_e.ISO8859_6,8,"ISO-8859-6","ISO88596","ISO8859_6"),I.ISO8859_7=new I(_e.ISO8859_7,9,"ISO-8859-7","ISO88597","ISO8859_7"),I.ISO8859_8=new I(_e.ISO8859_8,10,"ISO-8859-8","ISO88598","ISO8859_8"),I.ISO8859_9=new I(_e.ISO8859_9,11,"ISO-8859-9","ISO88599","ISO8859_9"),I.ISO8859_10=new I(_e.ISO8859_10,12,"ISO-8859-10","ISO885910","ISO8859_10"),I.ISO8859_11=new I(_e.ISO8859_11,13,"ISO-8859-11","ISO885911","ISO8859_11"),I.ISO8859_13=new I(_e.ISO8859_13,15,"ISO-8859-13","ISO885913","ISO8859_13"),I.ISO8859_14=new I(_e.ISO8859_14,16,"ISO-8859-14","ISO885914","ISO8859_14"),I.ISO8859_15=new I(_e.ISO8859_15,17,"ISO-8859-15","ISO885915","ISO8859_15"),I.ISO8859_16=new I(_e.ISO8859_16,18,"ISO-8859-16","ISO885916","ISO8859_16"),I.SJIS=new I(_e.SJIS,20,"SJIS","Shift_JIS"),I.Cp1250=new I(_e.Cp1250,21,"Cp1250","windows-1250"),I.Cp1251=new I(_e.Cp1251,22,"Cp1251","windows-1251"),I.Cp1252=new I(_e.Cp1252,23,"Cp1252","windows-1252"),I.Cp1256=new I(_e.Cp1256,24,"Cp1256","windows-1256"),I.UnicodeBigUnmarked=new I(_e.UnicodeBigUnmarked,25,"UnicodeBigUnmarked","UTF-16BE","UnicodeBig"),I.UTF8=new I(_e.UTF8,26,"UTF8","UTF-8"),I.ASCII=new I(_e.ASCII,Int32Array.from([27,170]),"ASCII","US-ASCII"),I.Big5=new I(_e.Big5,28,"Big5"),I.GB18030=new I(_e.GB18030,29,"GB18030","GB2312","EUC_CN","GBK"),I.EUC_KR=new I(_e.EUC_KR,30,"EUC_KR","EUC-KR"),I}();const be=ne;var Te=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),$e=function(I){function c(){return null!==I&&I.apply(this,arguments)||this}return Te(c,I),c.kind="UnsupportedOperationException",c}(a);const ft=$e;var Ge=function(){function I(){}return I.decode=function(c,m){var R=this.encodingName(m);return this.customDecoder?this.customDecoder(c,R):typeof TextDecoder>"u"||this.shouldDecodeOnFallback(R)?this.decodeFallback(c,R):new TextDecoder(R).decode(c)},I.shouldDecodeOnFallback=function(c){return!I.isBrowser()&&"ISO-8859-1"===c},I.encode=function(c,m){var R=this.encodingName(m);return this.customEncoder?this.customEncoder(c,R):typeof TextEncoder>"u"?this.encodeFallback(c):(new TextEncoder).encode(c)},I.isBrowser=function(){return typeof window<"u"&&"[object Window]"==={}.toString.call(window)},I.encodingName=function(c){return"string"==typeof c?c:c.getName()},I.encodingCharacterSet=function(c){return c instanceof be?c:be.getCharacterSetECIByName(c)},I.decodeFallback=function(c,m){var R=this.encodingCharacterSet(m);if(I.isDecodeFallbackSupported(R)){for(var Z="",Q=0,se=c.length;Q<se;Q++){var de=c[Q].toString(16);de.length<2&&(de="0"+de),Z+="%"+de}return decodeURIComponent(Z)}if(R.equals(be.UnicodeBigUnmarked))return String.fromCharCode.apply(null,new Uint16Array(c.buffer));throw new ft("Encoding "+this.encodingName(m)+" not supported by fallback.")},I.isDecodeFallbackSupported=function(c){return c.equals(be.UTF8)||c.equals(be.ISO8859_1)||c.equals(be.ASCII)},I.encodeFallback=function(c){for(var R=btoa(unescape(encodeURIComponent(c))).split(""),Z=[],Q=0;Q<R.length;Q++)Z.push(R[Q].charCodeAt(0));return new Uint8Array(Z)},I}();const Ft=Ge;var br=function(){function I(){}return I.castAsNonUtf8Char=function(c,m){void 0===m&&(m=null);var R=m?m.getName():this.ISO88591;return Ft.decode(new Uint8Array([c]),R)},I.guessEncoding=function(c,m){if(null!=m&&void 0!==m.get(At.CHARACTER_SET))return m.get(At.CHARACTER_SET).toString();for(var R=c.length,Z=!0,Q=!0,se=!0,de=0,Ee=0,Ve=0,mt=0,It=0,Jt=0,Xt=0,Lr=0,Yr=0,on=0,ln=0,en=c.length>3&&239===c[0]&&187===c[1]&&191===c[2],mn=0;mn<R&&(Z||Q||se);mn++){var In=255&c[mn];se&&(de>0?0==(128&In)?se=!1:de--:0!=(128&In)&&(0==(64&In)?se=!1:(de++,0==(32&In)?Ee++:(de++,0==(16&In)?Ve++:(de++,0==(8&In)?mt++:se=!1))))),Z&&(In>127&&In<160?Z=!1:In>159&&(In<192||215===In||247===In)&&ln++),Q&&(It>0?In<64||127===In||In>252?Q=!1:It--:128===In||160===In||In>239?Q=!1:In>160&&In<224?(Jt++,Lr=0,++Xt>Yr&&(Yr=Xt)):In>127?(It++,Xt=0,++Lr>on&&(on=Lr)):(Xt=0,Lr=0))}return se&&de>0&&(se=!1),Q&&It>0&&(Q=!1),se&&(en||Ee+Ve+mt>0)?I.UTF8:Q&&(I.ASSUME_SHIFT_JIS||Yr>=3||on>=3)?I.SHIFT_JIS:Z&&Q?2===Yr&&2===Jt||10*ln>=R?I.SHIFT_JIS:I.ISO88591:Z?I.ISO88591:Q?I.SHIFT_JIS:se?I.UTF8:I.PLATFORM_DEFAULT_ENCODING},I.format=function(c){for(var m=[],R=1;R<arguments.length;R++)m[R-1]=arguments[R];var Z=-1;function Q(de,Ee,Ve,mt,It,Jt){if("%%"===de)return"%";if(void 0!==m[++Z]){de=mt?parseInt(mt.substr(1)):void 0;var Lr,Xt=It?parseInt(It.substr(1)):void 0;switch(Jt){case"s":Lr=m[Z];break;case"c":Lr=m[Z][0];break;case"f":Lr=parseFloat(m[Z]).toFixed(de);break;case"p":Lr=parseFloat(m[Z]).toPrecision(de);break;case"e":Lr=parseFloat(m[Z]).toExponential(de);break;case"x":Lr=parseInt(m[Z]).toString(Xt||16);break;case"d":Lr=parseFloat(parseInt(m[Z],Xt||10).toPrecision(de)).toFixed(0)}Lr="object"==typeof Lr?JSON.stringify(Lr):(+Lr).toString(Xt);for(var Yr=parseInt(Ve),on=Ve&&Ve[0]+""=="0"?"0":" ";Lr.length<Yr;)Lr=void 0!==Ee?Lr+on:on+Lr;return Lr}}var se=/%(-)?(0?[0-9]+)?([.][0-9]+)?([#][0-9]+)?([scfpexd%])/g;return c.replace(se,Q)},I.getBytes=function(c,m){return Ft.encode(c,m)},I.getCharCode=function(c,m){return void 0===m&&(m=0),c.charCodeAt(m)},I.getCharAt=function(c){return String.fromCharCode(c)},I.SHIFT_JIS=be.SJIS.getName(),I.GB2312="GB2312",I.ISO88591=be.ISO8859_1.getName(),I.EUC_JP="EUC_JP",I.UTF8=be.UTF8.getName(),I.PLATFORM_DEFAULT_ENCODING=I.UTF8,I.ASSUME_SHIFT_JIS=!1,I}();const rt=br;var st=function(){function I(c){void 0===c&&(c=""),this.value=c}return I.prototype.enableDecoding=function(c){return this.encoding=c,this},I.prototype.append=function(c){return this.value+="string"==typeof c?c.toString():this.encoding?rt.castAsNonUtf8Char(c,this.encoding):String.fromCharCode(c),this},I.prototype.appendChars=function(c,m,R){for(var Z=m;m<m+R;Z++)this.append(c[Z]);return this},I.prototype.length=function(){return this.value.length},I.prototype.charAt=function(c){return this.value.charAt(c)},I.prototype.deleteCharAt=function(c){this.value=this.value.substr(0,c)+this.value.substring(c+1)},I.prototype.setCharAt=function(c,m){this.value=this.value.substr(0,c)+m+this.value.substr(c+1)},I.prototype.substring=function(c,m){return this.value.substring(c,m)},I.prototype.setLengthToZero=function(){this.value=""},I.prototype.toString=function(){return this.value},I.prototype.insert=function(c,m){this.value=this.value.substr(0,c)+m+this.value.substr(c+m.length)},I}();const Dt=st;var ot=function(){function I(c,m,R,Z){if(this.width=c,this.height=m,this.rowSize=R,this.bits=Z,null==m&&(m=c),this.height=m,c<1||m<1)throw new U("Both dimensions must be greater than 0");null==R&&(R=Math.floor((c+31)/32)),this.rowSize=R,null==Z&&(this.bits=new Int32Array(this.rowSize*this.height))}return I.parseFromBooleanArray=function(c){for(var m=c.length,R=c[0].length,Z=new I(R,m),Q=0;Q<m;Q++)for(var se=c[Q],de=0;de<R;de++)se[de]&&Z.set(de,Q);return Z},I.parseFromString=function(c,m,R){if(null===c)throw new U("stringRepresentation cannot be null");for(var Z=new Array(c.length),Q=0,se=0,de=-1,Ee=0,Ve=0;Ve<c.length;)if("\n"===c.charAt(Ve)||"\r"===c.charAt(Ve)){if(Q>se){if(-1===de)de=Q-se;else if(Q-se!==de)throw new U("row lengths do not match");se=Q,Ee++}Ve++}else if(c.substring(Ve,Ve+m.length)===m)Ve+=m.length,Z[Q]=!0,Q++;else{if(c.substring(Ve,Ve+R.length)!==R)throw new U("illegal character encountered: "+c.substring(Ve));Ve+=R.length,Z[Q]=!1,Q++}if(Q>se){if(-1===de)de=Q-se;else if(Q-se!==de)throw new U("row lengths do not match");Ee++}for(var mt=new I(de,Ee),It=0;It<Q;It++)Z[It]&&mt.set(Math.floor(It%de),Math.floor(It/de));return mt},I.prototype.get=function(c,m){var R=m*this.rowSize+Math.floor(c/32);return 0!=(this.bits[R]>>>(31&c)&1)},I.prototype.set=function(c,m){var R=m*this.rowSize+Math.floor(c/32);this.bits[R]|=1<<(31&c)&4294967295},I.prototype.unset=function(c,m){var R=m*this.rowSize+Math.floor(c/32);this.bits[R]&=~(1<<(31&c)&4294967295)},I.prototype.flip=function(c,m){var R=m*this.rowSize+Math.floor(c/32);this.bits[R]^=1<<(31&c)&4294967295},I.prototype.xor=function(c){if(this.width!==c.getWidth()||this.height!==c.getHeight()||this.rowSize!==c.getRowSize())throw new U("input matrix dimensions do not match");for(var m=new Qe(Math.floor(this.width/32)+1),R=this.rowSize,Z=this.bits,Q=0,se=this.height;Q<se;Q++)for(var de=Q*R,Ee=c.getRow(Q,m).getBitArray(),Ve=0;Ve<R;Ve++)Z[de+Ve]^=Ee[Ve]},I.prototype.clear=function(){for(var c=this.bits,m=c.length,R=0;R<m;R++)c[R]=0},I.prototype.setRegion=function(c,m,R,Z){if(m<0||c<0)throw new U("Left and top must be nonnegative");if(Z<1||R<1)throw new U("Height and width must be at least 1");var Q=c+R,se=m+Z;if(se>this.height||Q>this.width)throw new U("The region must fit inside the matrix");for(var de=this.rowSize,Ee=this.bits,Ve=m;Ve<se;Ve++)for(var mt=Ve*de,It=c;It<Q;It++)Ee[mt+Math.floor(It/32)]|=1<<(31&It)&4294967295},I.prototype.getRow=function(c,m){null==m||m.getSize()<this.width?m=new Qe(this.width):m.clear();for(var R=this.rowSize,Z=this.bits,Q=c*R,se=0;se<R;se++)m.setBulk(32*se,Z[Q+se]);return m},I.prototype.setRow=function(c,m){s.arraycopy(m.getBitArray(),0,this.bits,c*this.rowSize,this.rowSize)},I.prototype.rotate180=function(){for(var c=this.getWidth(),m=this.getHeight(),R=new Qe(c),Z=new Qe(c),Q=0,se=Math.floor((m+1)/2);Q<se;Q++)R=this.getRow(Q,R),Z=this.getRow(m-1-Q,Z),R.reverse(),Z.reverse(),this.setRow(Q,Z),this.setRow(m-1-Q,R)},I.prototype.getEnclosingRectangle=function(){for(var m=this.height,R=this.rowSize,Z=this.bits,Q=this.width,se=m,de=-1,Ee=-1,Ve=0;Ve<m;Ve++)for(var mt=0;mt<R;mt++){var It=Z[Ve*R+mt];if(0!==It){if(Ve<se&&(se=Ve),Ve>Ee&&(Ee=Ve),32*mt<Q){for(var Jt=0;0==(It<<31-Jt&4294967295);)Jt++;32*mt+Jt<Q&&(Q=32*mt+Jt)}if(32*mt+31>de){for(Jt=31;It>>>Jt==0;)Jt--;32*mt+Jt>de&&(de=32*mt+Jt)}}}return de<Q||Ee<se?null:Int32Array.from([Q,se,de-Q+1,Ee-se+1])},I.prototype.getTopLeftOnBit=function(){for(var c=this.rowSize,m=this.bits,R=0;R<m.length&&0===m[R];)R++;if(R===m.length)return null;for(var Z=R/c,Q=R%c*32,se=m[R],de=0;0==(se<<31-de&4294967295);)de++;return Int32Array.from([Q+=de,Z])},I.prototype.getBottomRightOnBit=function(){for(var c=this.rowSize,m=this.bits,R=m.length-1;R>=0&&0===m[R];)R--;if(R<0)return null;for(var Z=Math.floor(R/c),Q=32*Math.floor(R%c),se=m[R],de=31;se>>>de==0;)de--;return Int32Array.from([Q+=de,Z])},I.prototype.getWidth=function(){return this.width},I.prototype.getHeight=function(){return this.height},I.prototype.getRowSize=function(){return this.rowSize},I.prototype.equals=function(c){return c instanceof I&&(this.width===c.width&&this.height===c.height&&this.rowSize===c.rowSize&&W.equals(this.bits,c.bits))},I.prototype.hashCode=function(){var c=this.width;return 31*(c=31*(c=31*(c=31*c+this.width)+this.height)+this.rowSize)+W.hashCode(this.bits)},I.prototype.toString=function(c,m,R){return void 0===c&&(c="X "),void 0===m&&(m="  "),void 0===R&&(R="\n"),this.buildToString(c,m,R)},I.prototype.buildToString=function(c,m,R){for(var Z=new Dt,Q=0,se=this.height;Q<se;Q++){for(var de=0,Ee=this.width;de<Ee;de++)Z.append(this.get(de,Q)?c:m);Z.append(R)}return Z.toString()},I.prototype.clone=function(){return new I(this.width,this.height,this.rowSize,this.bits.slice())},I}();const nt=ot;var Yt=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),Ne=function(I){function c(){return null!==I&&I.apply(this,arguments)||this}return Yt(c,I),c.getNotFoundInstance=function(){return new c},c.kind="NotFoundException",c}(a);const X=Ne;var ge=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),Me=function(I){function c(m){var R=I.call(this,m)||this;return R.luminances=c.EMPTY,R.buckets=new Int32Array(c.LUMINANCE_BUCKETS),R}return ge(c,I),c.prototype.getBlackRow=function(m,R){var Z=this.getLuminanceSource(),Q=Z.getWidth();null==R||R.getSize()<Q?R=new Qe(Q):R.clear(),this.initArrays(Q);for(var se=Z.getRow(m,this.luminances),de=this.buckets,Ee=0;Ee<Q;Ee++)de[(255&se[Ee])>>c.LUMINANCE_SHIFT]++;var Ve=c.estimateBlackPoint(de);if(Q<3)for(Ee=0;Ee<Q;Ee++)(255&se[Ee])<Ve&&R.set(Ee);else{var mt=255&se[0],It=255&se[1];for(Ee=1;Ee<Q-1;Ee++){var Jt=255&se[Ee+1];(4*It-mt-Jt)/2<Ve&&R.set(Ee),mt=It,It=Jt}}return R},c.prototype.getBlackMatrix=function(){var m=this.getLuminanceSource(),R=m.getWidth(),Z=m.getHeight(),Q=new nt(R,Z);this.initArrays(R);for(var se=this.buckets,de=1;de<5;de++)for(var Ee=Math.floor(Z*de/5),Ve=m.getRow(Ee,this.luminances),mt=Math.floor(4*R/5),It=Math.floor(R/5);It<mt;It++)se[(255&Ve[It])>>c.LUMINANCE_SHIFT]++;var Xt=c.estimateBlackPoint(se),Lr=m.getMatrix();for(de=0;de<Z;de++){var Yr=de*R;for(It=0;It<R;It++)(255&Lr[Yr+It])<Xt&&Q.set(It,de)}return Q},c.prototype.createBinarizer=function(m){return new c(m)},c.prototype.initArrays=function(m){this.luminances.length<m&&(this.luminances=new Uint8ClampedArray(m));for(var R=this.buckets,Z=0;Z<c.LUMINANCE_BUCKETS;Z++)R[Z]=0},c.estimateBlackPoint=function(m){for(var R=m.length,Z=0,Q=0,se=0,de=0;de<R;de++)m[de]>se&&(Q=de,se=m[de]),m[de]>Z&&(Z=m[de]);var Ee=0,Ve=0;for(de=0;de<R;de++){var mt=de-Q;(It=m[de]*mt*mt)>Ve&&(Ee=de,Ve=It)}if(Q>Ee){var Jt=Q;Q=Ee,Ee=Jt}if(Ee-Q<=R/16)throw new X;var Xt=Ee-1,Lr=-1;for(de=Ee-1;de>Q;de--){var It,Yr=de-Q;(It=Yr*Yr*(Ee-de)*(Z-m[de]))>Lr&&(Xt=de,Lr=It)}return Xt<<c.LUMINANCE_SHIFT},c.LUMINANCE_SHIFT=8-(c.LUMINANCE_BITS=5),c.LUMINANCE_BUCKETS=1<<c.LUMINANCE_BITS,c.EMPTY=Uint8ClampedArray.from([0]),c}(oe);const We=Me;var Re=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),pt=function(I){function c(m){var R=I.call(this,m)||this;return R.matrix=null,R}return Re(c,I),c.prototype.getBlackMatrix=function(){if(null!==this.matrix)return this.matrix;var m=this.getLuminanceSource(),R=m.getWidth(),Z=m.getHeight();if(R>=c.MINIMUM_DIMENSION&&Z>=c.MINIMUM_DIMENSION){var Q=m.getMatrix(),se=R>>c.BLOCK_SIZE_POWER;0!=(R&c.BLOCK_SIZE_MASK)&&se++;var de=Z>>c.BLOCK_SIZE_POWER;0!=(Z&c.BLOCK_SIZE_MASK)&&de++;var Ee=c.calculateBlackPoints(Q,se,de,R,Z),Ve=new nt(R,Z);c.calculateThresholdForBlock(Q,se,de,R,Z,Ee,Ve),this.matrix=Ve}else this.matrix=I.prototype.getBlackMatrix.call(this);return this.matrix},c.prototype.createBinarizer=function(m){return new c(m)},c.calculateThresholdForBlock=function(m,R,Z,Q,se,de,Ee){for(var Ve=se-c.BLOCK_SIZE,mt=Q-c.BLOCK_SIZE,It=0;It<Z;It++){var Jt=It<<c.BLOCK_SIZE_POWER;Jt>Ve&&(Jt=Ve);for(var Xt=c.cap(It,2,Z-3),Lr=0;Lr<R;Lr++){var Yr=Lr<<c.BLOCK_SIZE_POWER;Yr>mt&&(Yr=mt);for(var on=c.cap(Lr,2,R-3),ln=0,en=-2;en<=2;en++){var mn=de[Xt+en];ln+=mn[on-2]+mn[on-1]+mn[on]+mn[on+1]+mn[on+2]}c.thresholdBlock(m,Yr,Jt,ln/25,Q,Ee)}}},c.cap=function(m,R,Z){return m<R?R:m>Z?Z:m},c.thresholdBlock=function(m,R,Z,Q,se,de){for(var Ee=0,Ve=Z*se+R;Ee<c.BLOCK_SIZE;Ee++,Ve+=se)for(var mt=0;mt<c.BLOCK_SIZE;mt++)(255&m[Ve+mt])<=Q&&de.set(R+mt,Z+Ee)},c.calculateBlackPoints=function(m,R,Z,Q,se){for(var de=se-c.BLOCK_SIZE,Ee=Q-c.BLOCK_SIZE,Ve=new Array(Z),mt=0;mt<Z;mt++){Ve[mt]=new Int32Array(R);var It=mt<<c.BLOCK_SIZE_POWER;It>de&&(It=de);for(var Jt=0;Jt<R;Jt++){var Xt=Jt<<c.BLOCK_SIZE_POWER;Xt>Ee&&(Xt=Ee);for(var Lr=0,Yr=255,on=0,ln=0,en=It*Q+Xt;ln<c.BLOCK_SIZE;ln++,en+=Q){for(var mn=0;mn<c.BLOCK_SIZE;mn++){var In=255&m[en+mn];Lr+=In,In<Yr&&(Yr=In),In>on&&(on=In)}if(on-Yr>c.MIN_DYNAMIC_RANGE)for(ln++,en+=Q;ln<c.BLOCK_SIZE;ln++,en+=Q)for(mn=0;mn<c.BLOCK_SIZE;mn++)Lr+=255&m[en+mn]}var jn=Lr>>2*c.BLOCK_SIZE_POWER;if(on-Yr<=c.MIN_DYNAMIC_RANGE&&(jn=Yr/2,mt>0&&Jt>0)){var Zn=(Ve[mt-1][Jt]+2*Ve[mt][Jt-1]+Ve[mt-1][Jt-1])/4;Yr<Zn&&(jn=Zn)}Ve[mt][Jt]=jn}}return Ve},c.BLOCK_SIZE_MASK=(c.BLOCK_SIZE=1<<(c.BLOCK_SIZE_POWER=3))-1,c.MINIMUM_DIMENSION=5*c.BLOCK_SIZE,c.MIN_DYNAMIC_RANGE=24,c}(We);const Zt=pt;var cr=function(){function I(c,m){this.width=c,this.height=m}return I.prototype.getWidth=function(){return this.width},I.prototype.getHeight=function(){return this.height},I.prototype.isCropSupported=function(){return!1},I.prototype.crop=function(c,m,R,Z){throw new ft("This luminance source does not support cropping.")},I.prototype.isRotateSupported=function(){return!1},I.prototype.rotateCounterClockwise=function(){throw new ft("This luminance source does not support rotation by 90 degrees.")},I.prototype.rotateCounterClockwise45=function(){throw new ft("This luminance source does not support rotation by 45 degrees.")},I.prototype.toString=function(){for(var c=new Uint8ClampedArray(this.width),m=new Dt,R=0;R<this.height;R++){for(var Z=this.getRow(R,c),Q=0;Q<this.width;Q++){var se=255&Z[Q];m.append(se<64?"#":se<128?"+":se<192?".":" ")}m.append("\n")}return m.toString()},I}();const wt=cr;var gt=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),Ut=function(I){function c(m){var R=I.call(this,m.getWidth(),m.getHeight())||this;return R.delegate=m,R}return gt(c,I),c.prototype.getRow=function(m,R){for(var Z=this.delegate.getRow(m,R),Q=this.getWidth(),se=0;se<Q;se++)Z[se]=255-(255&Z[se]);return Z},c.prototype.getMatrix=function(){for(var m=this.delegate.getMatrix(),R=this.getWidth()*this.getHeight(),Z=new Uint8ClampedArray(R),Q=0;Q<R;Q++)Z[Q]=255-(255&m[Q]);return Z},c.prototype.isCropSupported=function(){return this.delegate.isCropSupported()},c.prototype.crop=function(m,R,Z,Q){return new c(this.delegate.crop(m,R,Z,Q))},c.prototype.isRotateSupported=function(){return this.delegate.isRotateSupported()},c.prototype.invert=function(){return this.delegate},c.prototype.rotateCounterClockwise=function(){return new c(this.delegate.rotateCounterClockwise())},c.prototype.rotateCounterClockwise45=function(){return new c(this.delegate.rotateCounterClockwise45())},c}(wt);const hr=Ut;var Cr=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),Ue=function(I){function c(m){var R=I.call(this,m.width,m.height)||this;return R.canvas=m,R.tempCanvasElement=null,R.buffer=c.makeBufferFromCanvasImageData(m),R}return Cr(c,I),c.makeBufferFromCanvasImageData=function(m){var R=m.getContext("2d").getImageData(0,0,m.width,m.height);return c.toGrayscaleBuffer(R.data,m.width,m.height)},c.toGrayscaleBuffer=function(m,R,Z){for(var Q=new Uint8ClampedArray(R*Z),se=0,de=0,Ee=m.length;se<Ee;se+=4,de++){Q[de]=0===m[se+3]?255:306*m[se]+601*m[se+1]+117*m[se+2]+512>>10}return Q},c.prototype.getRow=function(m,R){if(m<0||m>=this.getHeight())throw new U("Requested row is outside the image: "+m);var Z=this.getWidth(),Q=m*Z;return null===R?R=this.buffer.slice(Q,Q+Z):(R.length<Z&&(R=new Uint8ClampedArray(Z)),R.set(this.buffer.slice(Q,Q+Z))),R},c.prototype.getMatrix=function(){return this.buffer},c.prototype.isCropSupported=function(){return!0},c.prototype.crop=function(m,R,Z,Q){return I.prototype.crop.call(this,m,R,Z,Q),this},c.prototype.isRotateSupported=function(){return!0},c.prototype.rotateCounterClockwise=function(){return this.rotate(-90),this},c.prototype.rotateCounterClockwise45=function(){return this.rotate(-45),this},c.prototype.getTempCanvasElement=function(){if(null===this.tempCanvasElement){var m=this.canvas.ownerDocument.createElement("canvas");m.width=this.canvas.width,m.height=this.canvas.height,this.tempCanvasElement=m}return this.tempCanvasElement},c.prototype.rotate=function(m){var R=this.getTempCanvasElement(),Z=R.getContext("2d"),Q=m*c.DEGREE_TO_RADIANS,se=this.canvas.width,de=this.canvas.height,Ee=Math.ceil(Math.abs(Math.cos(Q))*se+Math.abs(Math.sin(Q))*de),Ve=Math.ceil(Math.abs(Math.sin(Q))*se+Math.abs(Math.cos(Q))*de);return R.width=Ee,R.height=Ve,Z.translate(Ee/2,Ve/2),Z.rotate(Q),Z.drawImage(this.canvas,se/-2,de/-2),this.buffer=c.makeBufferFromCanvasImageData(R),this},c.prototype.invert=function(){return new hr(this)},c.DEGREE_TO_RADIANS=Math.PI/180,c}(wt),Pt=function(){function I(c,m,R){this.deviceId=c,this.label=m,this.kind="videoinput",this.groupId=R||void 0}return I.prototype.toJSON=function(){return{kind:this.kind,groupId:this.groupId,deviceId:this.deviceId,label:this.label}},I}(),He=function(I,c,m,R){return new(m||(m=Promise))(function(Q,se){function de(mt){try{Ve(R.next(mt))}catch(It){se(It)}}function Ee(mt){try{Ve(R.throw(mt))}catch(It){se(It)}}function Ve(mt){mt.done?Q(mt.value):function Z(Q){return Q instanceof m?Q:new m(function(se){se(Q)})}(mt.value).then(de,Ee)}Ve((R=R.apply(I,c||[])).next())})},tt=function(I,c){var R,Z,Q,se,m={label:0,sent:function(){if(1&Q[0])throw Q[1];return Q[1]},trys:[],ops:[]};return se={next:de(0),throw:de(1),return:de(2)},"function"==typeof Symbol&&(se[Symbol.iterator]=function(){return this}),se;function de(Ve){return function(mt){return function Ee(Ve){if(R)throw new TypeError("Generator is already executing.");for(;m;)try{if(R=1,Z&&(Q=2&Ve[0]?Z.return:Ve[0]?Z.throw||((Q=Z.return)&&Q.call(Z),0):Z.next)&&!(Q=Q.call(Z,Ve[1])).done)return Q;switch(Z=0,Q&&(Ve=[2&Ve[0],Q.value]),Ve[0]){case 0:case 1:Q=Ve;break;case 4:return m.label++,{value:Ve[1],done:!1};case 5:m.label++,Z=Ve[1],Ve=[0];continue;case 7:Ve=m.ops.pop(),m.trys.pop();continue;default:if(!(Q=(Q=m.trys).length>0&&Q[Q.length-1])&&(6===Ve[0]||2===Ve[0])){m=0;continue}if(3===Ve[0]&&(!Q||Ve[1]>Q[0]&&Ve[1]<Q[3])){m.label=Ve[1];break}if(6===Ve[0]&&m.label<Q[1]){m.label=Q[1],Q=Ve;break}if(Q&&m.label<Q[2]){m.label=Q[2],m.ops.push(Ve);break}Q[2]&&m.ops.pop(),m.trys.pop();continue}Ve=c.call(I,m)}catch(mt){Ve=[6,mt],Z=0}finally{R=Q=0}if(5&Ve[0])throw Ve[1];return{value:Ve[0]?Ve[1]:void 0,done:!0}}([Ve,mt])}}},kt=function(){function I(c,m,R){void 0===m&&(m=500),this.reader=c,this.timeBetweenScansMillis=m,this._hints=R,this._stopContinuousDecode=!1,this._stopAsyncDecode=!1,this._timeBetweenDecodingAttempts=0}return Object.defineProperty(I.prototype,"hasNavigator",{get:function(){return typeof navigator<"u"},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"isMediaDevicesSuported",{get:function(){return this.hasNavigator&&!!navigator.mediaDevices},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"canEnumerateDevices",{get:function(){return!(!this.isMediaDevicesSuported||!navigator.mediaDevices.enumerateDevices)},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"timeBetweenDecodingAttempts",{get:function(){return this._timeBetweenDecodingAttempts},set:function(c){this._timeBetweenDecodingAttempts=c<0?0:c},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"hints",{get:function(){return this._hints},set:function(c){this._hints=c||null},enumerable:!1,configurable:!0}),I.prototype.listVideoInputDevices=function(){return He(this,void 0,void 0,function(){var c,m,R,Z,Q,se,It,Jt;return tt(this,function(Xt){switch(Xt.label){case 0:if(!this.hasNavigator)throw new Error("Can't enumerate devices, navigator is not present.");if(!this.canEnumerateDevices)throw new Error("Can't enumerate devices, method not supported.");return[4,navigator.mediaDevices.enumerateDevices()];case 1:c=Xt.sent(),m=[];try{for(R=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")}(c),Z=R.next();!Z.done;Z=R.next())"videoinput"===(se="video"===(Q=Z.value).kind?"videoinput":Q.kind)&&m.push({deviceId:Q.deviceId||Q.id,label:Q.label||"Video device "+(m.length+1),kind:se,groupId:Q.groupId})}catch(Lr){It={error:Lr}}finally{try{Z&&!Z.done&&(Jt=R.return)&&Jt.call(R)}finally{if(It)throw It.error}}return[2,m]}})})},I.prototype.getVideoInputDevices=function(){return He(this,void 0,void 0,function(){return tt(this,function(m){switch(m.label){case 0:return[4,this.listVideoInputDevices()];case 1:return[2,m.sent().map(function(R){return new Pt(R.deviceId,R.label)})]}})})},I.prototype.findDeviceById=function(c){return He(this,void 0,void 0,function(){var m;return tt(this,function(R){switch(R.label){case 0:return[4,this.listVideoInputDevices()];case 1:return(m=R.sent())?[2,m.find(function(Z){return Z.deviceId===c})]:[2,null]}})})},I.prototype.decodeFromInputVideoDevice=function(c,m){return He(this,void 0,void 0,function(){return tt(this,function(R){switch(R.label){case 0:return[4,this.decodeOnceFromVideoDevice(c,m)];case 1:return[2,R.sent()]}})})},I.prototype.decodeOnceFromVideoDevice=function(c,m){return He(this,void 0,void 0,function(){return tt(this,function(Q){switch(Q.label){case 0:return this.reset(),[4,this.decodeOnceFromConstraints({video:c?{deviceId:{exact:c}}:{facingMode:"environment"}},m)];case 1:return[2,Q.sent()]}})})},I.prototype.decodeOnceFromConstraints=function(c,m){return He(this,void 0,void 0,function(){var R;return tt(this,function(Z){switch(Z.label){case 0:return[4,navigator.mediaDevices.getUserMedia(c)];case 1:return R=Z.sent(),[4,this.decodeOnceFromStream(R,m)];case 2:return[2,Z.sent()]}})})},I.prototype.decodeOnceFromStream=function(c,m){return He(this,void 0,void 0,function(){var R;return tt(this,function(Q){switch(Q.label){case 0:return this.reset(),[4,this.attachStreamToVideo(c,m)];case 1:return R=Q.sent(),[4,this.decodeOnce(R)];case 2:return[2,Q.sent()]}})})},I.prototype.decodeFromInputVideoDeviceContinuously=function(c,m,R){return He(this,void 0,void 0,function(){return tt(this,function(Z){switch(Z.label){case 0:return[4,this.decodeFromVideoDevice(c,m,R)];case 1:return[2,Z.sent()]}})})},I.prototype.decodeFromVideoDevice=function(c,m,R){return He(this,void 0,void 0,function(){return tt(this,function(se){switch(se.label){case 0:return[4,this.decodeFromConstraints({video:c?{deviceId:{exact:c}}:{facingMode:"environment"}},m,R)];case 1:return[2,se.sent()]}})})},I.prototype.decodeFromConstraints=function(c,m,R){return He(this,void 0,void 0,function(){var Z;return tt(this,function(Q){switch(Q.label){case 0:return[4,navigator.mediaDevices.getUserMedia(c)];case 1:return Z=Q.sent(),[4,this.decodeFromStream(Z,m,R)];case 2:return[2,Q.sent()]}})})},I.prototype.decodeFromStream=function(c,m,R){return He(this,void 0,void 0,function(){var Z;return tt(this,function(Q){switch(Q.label){case 0:return this.reset(),[4,this.attachStreamToVideo(c,m)];case 1:return Z=Q.sent(),[4,this.decodeContinuously(Z,R)];case 2:return[2,Q.sent()]}})})},I.prototype.stopAsyncDecode=function(){this._stopAsyncDecode=!0},I.prototype.stopContinuousDecode=function(){this._stopContinuousDecode=!0},I.prototype.attachStreamToVideo=function(c,m){return He(this,void 0,void 0,function(){var R;return tt(this,function(Z){switch(Z.label){case 0:return R=this.prepareVideoElement(m),this.addVideoSource(R,c),this.videoElement=R,this.stream=c,[4,this.playVideoOnLoadAsync(R)];case 1:return Z.sent(),[2,R]}})})},I.prototype.playVideoOnLoadAsync=function(c){var m=this;return new Promise(function(R,Z){return m.playVideoOnLoad(c,function(){return R()})})},I.prototype.playVideoOnLoad=function(c,m){var R=this;this.videoEndedListener=function(){return R.stopStreams()},this.videoCanPlayListener=function(){return R.tryPlayVideo(c)},c.addEventListener("ended",this.videoEndedListener),c.addEventListener("canplay",this.videoCanPlayListener),c.addEventListener("playing",m),this.tryPlayVideo(c)},I.prototype.isVideoPlaying=function(c){return c.currentTime>0&&!c.paused&&!c.ended&&c.readyState>2},I.prototype.tryPlayVideo=function(c){return He(this,void 0,void 0,function(){return tt(this,function(R){switch(R.label){case 0:if(this.isVideoPlaying(c))return console.warn("Trying to play video that is already playing."),[2];R.label=1;case 1:return R.trys.push([1,3,,4]),[4,c.play()];case 2:return R.sent(),[3,4];case 3:return R.sent(),console.warn("It was not possible to play the video."),[3,4];case 4:return[2]}})})},I.prototype.getMediaElement=function(c,m){var R=document.getElementById(c);if(!R)throw new F("element with id '"+c+"' not found");if(R.nodeName.toLowerCase()!==m.toLowerCase())throw new F("element with id '"+c+"' must be an "+m+" element");return R},I.prototype.decodeFromImage=function(c,m){if(!c&&!m)throw new F("either imageElement with a src set or an url must be provided");return m&&!c?this.decodeFromImageUrl(m):this.decodeFromImageElement(c)},I.prototype.decodeFromVideo=function(c,m){if(!c&&!m)throw new F("Either an element with a src set or an URL must be provided");return m&&!c?this.decodeFromVideoUrl(m):this.decodeFromVideoElement(c)},I.prototype.decodeFromVideoContinuously=function(c,m,R){if(void 0===c&&void 0===m)throw new F("Either an element with a src set or an URL must be provided");return m&&!c?this.decodeFromVideoUrlContinuously(m,R):this.decodeFromVideoElementContinuously(c,R)},I.prototype.decodeFromImageElement=function(c){if(!c)throw new F("An image element must be provided.");this.reset();var m=this.prepareImageElement(c);return this.imageElement=m,this.isImageLoaded(m)?this.decodeOnce(m,!1,!0):this._decodeOnLoadImage(m)},I.prototype.decodeFromVideoElement=function(c){var m=this._decodeFromVideoElementSetup(c);return this._decodeOnLoadVideo(m)},I.prototype.decodeFromVideoElementContinuously=function(c,m){var R=this._decodeFromVideoElementSetup(c);return this._decodeOnLoadVideoContinuously(R,m)},I.prototype._decodeFromVideoElementSetup=function(c){if(!c)throw new F("A video element must be provided.");this.reset();var m=this.prepareVideoElement(c);return this.videoElement=m,m},I.prototype.decodeFromImageUrl=function(c){if(!c)throw new F("An URL must be provided.");this.reset();var m=this.prepareImageElement();this.imageElement=m;var R=this._decodeOnLoadImage(m);return m.src=c,R},I.prototype.decodeFromVideoUrl=function(c){if(!c)throw new F("An URL must be provided.");this.reset();var m=this.prepareVideoElement(),R=this.decodeFromVideoElement(m);return m.src=c,R},I.prototype.decodeFromVideoUrlContinuously=function(c,m){if(!c)throw new F("An URL must be provided.");this.reset();var R=this.prepareVideoElement(),Z=this.decodeFromVideoElementContinuously(R,m);return R.src=c,Z},I.prototype._decodeOnLoadImage=function(c){var m=this;return new Promise(function(R,Z){m.imageLoadedListener=function(){return m.decodeOnce(c,!1,!0).then(R,Z)},c.addEventListener("load",m.imageLoadedListener)})},I.prototype._decodeOnLoadVideo=function(c){return He(this,void 0,void 0,function(){return tt(this,function(m){switch(m.label){case 0:return[4,this.playVideoOnLoadAsync(c)];case 1:return m.sent(),[4,this.decodeOnce(c)];case 2:return[2,m.sent()]}})})},I.prototype._decodeOnLoadVideoContinuously=function(c,m){return He(this,void 0,void 0,function(){return tt(this,function(R){switch(R.label){case 0:return[4,this.playVideoOnLoadAsync(c)];case 1:return R.sent(),this.decodeContinuously(c,m),[2]}})})},I.prototype.isImageLoaded=function(c){return!(!c.complete||0===c.naturalWidth)},I.prototype.prepareImageElement=function(c){var m;return typeof c>"u"&&((m=document.createElement("img")).width=200,m.height=200),"string"==typeof c&&(m=this.getMediaElement(c,"img")),c instanceof HTMLImageElement&&(m=c),m},I.prototype.prepareVideoElement=function(c){var m;return!c&&typeof document<"u"&&((m=document.createElement("video")).width=200,m.height=200),"string"==typeof c&&(m=this.getMediaElement(c,"video")),c instanceof HTMLVideoElement&&(m=c),m.setAttribute("autoplay","true"),m.setAttribute("muted","true"),m.setAttribute("playsinline","true"),m},I.prototype.decodeOnce=function(c,m,R){var Z=this;void 0===m&&(m=!0),void 0===R&&(R=!0),this._stopAsyncDecode=!1;var Q=function(se,de){if(Z._stopAsyncDecode)return de(new X("Video stream has ended before any code could be detected.")),void(Z._stopAsyncDecode=void 0);try{se(Z.decode(c))}catch(Jt){if(m&&Jt instanceof X||(Jt instanceof K||Jt instanceof Be)&&R)return setTimeout(Q,Z._timeBetweenDecodingAttempts,se,de);de(Jt)}};return new Promise(function(se,de){return Q(se,de)})},I.prototype.decodeContinuously=function(c,m){var R=this;this._stopContinuousDecode=!1;var Z=function(){if(R._stopContinuousDecode)R._stopContinuousDecode=void 0;else try{var Q=R.decode(c);m(Q,null),setTimeout(Z,R.timeBetweenScansMillis)}catch(Ee){m(null,Ee),(Ee instanceof K||Ee instanceof Be||Ee instanceof X)&&setTimeout(Z,R._timeBetweenDecodingAttempts)}};Z()},I.prototype.decode=function(c){var m=this.createBinaryBitmap(c);return this.decodeBitmap(m)},I.prototype._isHTMLVideoElement=function(c){return 0!==c.videoWidth},I.prototype.createBinaryBitmap=function(c){this.getCaptureCanvasContext(c),this._isHTMLVideoElement(c)?this.drawFrameOnCanvas(c):this.drawImageOnCanvas(c);var R=this.getCaptureCanvas(c),Z=new Ue(R),Q=new Zt(Z);return new J(Q)},I.prototype.getCaptureCanvasContext=function(c){if(!this.captureCanvasContext){var R=this.getCaptureCanvas(c).getContext("2d");this.captureCanvasContext=R}return this.captureCanvasContext},I.prototype.getCaptureCanvas=function(c){if(!this.captureCanvas){var m=this.createCaptureCanvas(c);this.captureCanvas=m}return this.captureCanvas},I.prototype.drawFrameOnCanvas=function(c,m,R){void 0===m&&(m={sx:0,sy:0,sWidth:c.videoWidth,sHeight:c.videoHeight,dx:0,dy:0,dWidth:c.videoWidth,dHeight:c.videoHeight}),void 0===R&&(R=this.captureCanvasContext),R.drawImage(c,m.sx,m.sy,m.sWidth,m.sHeight,m.dx,m.dy,m.dWidth,m.dHeight)},I.prototype.drawImageOnCanvas=function(c,m,R){void 0===m&&(m={sx:0,sy:0,sWidth:c.naturalWidth,sHeight:c.naturalHeight,dx:0,dy:0,dWidth:c.naturalWidth,dHeight:c.naturalHeight}),void 0===R&&(R=this.captureCanvasContext),R.drawImage(c,m.sx,m.sy,m.sWidth,m.sHeight,m.dx,m.dy,m.dWidth,m.dHeight)},I.prototype.decodeBitmap=function(c){return this.reader.decode(c,this._hints)},I.prototype.createCaptureCanvas=function(c){if(typeof document>"u")return this._destroyCaptureCanvas(),null;var R,Z,m=document.createElement("canvas");return typeof c<"u"&&(c instanceof HTMLVideoElement?(R=c.videoWidth,Z=c.videoHeight):c instanceof HTMLImageElement&&(R=c.naturalWidth||c.width,Z=c.naturalHeight||c.height)),m.style.width=R+"px",m.style.height=Z+"px",m.width=R,m.height=Z,m},I.prototype.stopStreams=function(){this.stream&&(this.stream.getVideoTracks().forEach(function(c){return c.stop()}),this.stream=void 0),!1===this._stopAsyncDecode&&this.stopAsyncDecode(),!1===this._stopContinuousDecode&&this.stopContinuousDecode()},I.prototype.reset=function(){this.stopStreams(),this._destroyVideoElement(),this._destroyImageElement(),this._destroyCaptureCanvas()},I.prototype._destroyVideoElement=function(){!this.videoElement||(typeof this.videoEndedListener<"u"&&this.videoElement.removeEventListener("ended",this.videoEndedListener),typeof this.videoPlayingEventListener<"u"&&this.videoElement.removeEventListener("playing",this.videoPlayingEventListener),typeof this.videoCanPlayListener<"u"&&this.videoElement.removeEventListener("loadedmetadata",this.videoCanPlayListener),this.cleanVideoSource(this.videoElement),this.videoElement=void 0)},I.prototype._destroyImageElement=function(){!this.imageElement||(void 0!==this.imageLoadedListener&&this.imageElement.removeEventListener("load",this.imageLoadedListener),this.imageElement.src=void 0,this.imageElement.removeAttribute("src"),this.imageElement=void 0)},I.prototype._destroyCaptureCanvas=function(){this.captureCanvasContext=void 0,this.captureCanvas=void 0},I.prototype.addVideoSource=function(c,m){try{c.srcObject=m}catch{c.src=URL.createObjectURL(m)}},I.prototype.cleanVideoSource=function(c){try{c.srcObject=null}catch{c.src=""}this.videoElement.removeAttribute("src")},I}(),xe=function(){function I(c,m,R,Z,Q,se){void 0===R&&(R=null==m?0:8*m.length),void 0===se&&(se=s.currentTimeMillis()),this.text=c,this.rawBytes=m,this.numBits=R,this.resultPoints=Z,this.format=Q,this.timestamp=se,this.text=c,this.rawBytes=m,this.numBits=R??(null==m?0:8*m.length),this.resultPoints=Z,this.format=Q,this.resultMetadata=null,this.timestamp=se??s.currentTimeMillis()}return I.prototype.getText=function(){return this.text},I.prototype.getRawBytes=function(){return this.rawBytes},I.prototype.getNumBits=function(){return this.numBits},I.prototype.getResultPoints=function(){return this.resultPoints},I.prototype.getBarcodeFormat=function(){return this.format},I.prototype.getResultMetadata=function(){return this.resultMetadata},I.prototype.putMetadata=function(c,m){null===this.resultMetadata&&(this.resultMetadata=new Map),this.resultMetadata.set(c,m)},I.prototype.putAllMetadata=function(c){null!==c&&(this.resultMetadata=null===this.resultMetadata?c:new Map(c))},I.prototype.addResultPoints=function(c){var m=this.resultPoints;if(null===m)this.resultPoints=c;else if(null!==c&&c.length>0){var R=new Array(m.length+c.length);s.arraycopy(m,0,R,0,m.length),s.arraycopy(c,0,R,m.length,c.length),this.resultPoints=R}},I.prototype.getTimestamp=function(){return this.timestamp},I.prototype.toString=function(){return this.text},I}();const Fe=xe;var lt=(()=>(function(I){I[I.AZTEC=0]="AZTEC",I[I.CODABAR=1]="CODABAR",I[I.CODE_39=2]="CODE_39",I[I.CODE_93=3]="CODE_93",I[I.CODE_128=4]="CODE_128",I[I.DATA_MATRIX=5]="DATA_MATRIX",I[I.EAN_8=6]="EAN_8",I[I.EAN_13=7]="EAN_13",I[I.ITF=8]="ITF",I[I.MAXICODE=9]="MAXICODE",I[I.PDF_417=10]="PDF_417",I[I.QR_CODE=11]="QR_CODE",I[I.RSS_14=12]="RSS_14",I[I.RSS_EXPANDED=13]="RSS_EXPANDED",I[I.UPC_A=14]="UPC_A",I[I.UPC_E=15]="UPC_E",I[I.UPC_EAN_EXTENSION=16]="UPC_EAN_EXTENSION"}(lt||(lt={})),lt))();const St=lt;var qe=(()=>(function(I){I[I.OTHER=0]="OTHER",I[I.ORIENTATION=1]="ORIENTATION",I[I.BYTE_SEGMENTS=2]="BYTE_SEGMENTS",I[I.ERROR_CORRECTION_LEVEL=3]="ERROR_CORRECTION_LEVEL",I[I.ISSUE_NUMBER=4]="ISSUE_NUMBER",I[I.SUGGESTED_PRICE=5]="SUGGESTED_PRICE",I[I.POSSIBLE_COUNTRY=6]="POSSIBLE_COUNTRY",I[I.UPC_EAN_EXTENSION=7]="UPC_EAN_EXTENSION",I[I.PDF417_EXTRA_METADATA=8]="PDF417_EXTRA_METADATA",I[I.STRUCTURED_APPEND_SEQUENCE=9]="STRUCTURED_APPEND_SEQUENCE",I[I.STRUCTURED_APPEND_PARITY=10]="STRUCTURED_APPEND_PARITY"}(qe||(qe={})),qe))();const ke=qe;var ct=function(){function I(c,m,R,Z,Q,se){void 0===Q&&(Q=-1),void 0===se&&(se=-1),this.rawBytes=c,this.text=m,this.byteSegments=R,this.ecLevel=Z,this.structuredAppendSequenceNumber=Q,this.structuredAppendParity=se,this.numBits=null==c?0:8*c.length}return I.prototype.getRawBytes=function(){return this.rawBytes},I.prototype.getNumBits=function(){return this.numBits},I.prototype.setNumBits=function(c){this.numBits=c},I.prototype.getText=function(){return this.text},I.prototype.getByteSegments=function(){return this.byteSegments},I.prototype.getECLevel=function(){return this.ecLevel},I.prototype.getErrorsCorrected=function(){return this.errorsCorrected},I.prototype.setErrorsCorrected=function(c){this.errorsCorrected=c},I.prototype.getErasures=function(){return this.erasures},I.prototype.setErasures=function(c){this.erasures=c},I.prototype.getOther=function(){return this.other},I.prototype.setOther=function(c){this.other=c},I.prototype.hasStructuredAppend=function(){return this.structuredAppendParity>=0&&this.structuredAppendSequenceNumber>=0},I.prototype.getStructuredAppendParity=function(){return this.structuredAppendParity},I.prototype.getStructuredAppendSequenceNumber=function(){return this.structuredAppendSequenceNumber},I}();const vt=ct;var $t=function(){function I(){}return I.prototype.exp=function(c){return this.expTable[c]},I.prototype.log=function(c){if(0===c)throw new U;return this.logTable[c]},I.addOrSubtract=function(c,m){return c^m},I}();const Vr=$t;var Sr=function(){function I(c,m){if(0===m.length)throw new U;this.field=c;var R=m.length;if(R>1&&0===m[0]){for(var Z=1;Z<R&&0===m[Z];)Z++;Z===R?this.coefficients=Int32Array.from([0]):(this.coefficients=new Int32Array(R-Z),s.arraycopy(m,Z,this.coefficients,0,this.coefficients.length))}else this.coefficients=m}return I.prototype.getCoefficients=function(){return this.coefficients},I.prototype.getDegree=function(){return this.coefficients.length-1},I.prototype.isZero=function(){return 0===this.coefficients[0]},I.prototype.getCoefficient=function(c){return this.coefficients[this.coefficients.length-1-c]},I.prototype.evaluateAt=function(c){if(0===c)return this.getCoefficient(0);var R,m=this.coefficients;if(1===c){R=0;for(var Z=0,Q=m.length;Z!==Q;Z++)R=Vr.addOrSubtract(R,m[Z]);return R}R=m[0];var de=m.length,Ee=this.field;for(Z=1;Z<de;Z++)R=Vr.addOrSubtract(Ee.multiply(c,R),m[Z]);return R},I.prototype.addOrSubtract=function(c){if(!this.field.equals(c.field))throw new U("GenericGFPolys do not have same GenericGF field");if(this.isZero())return c;if(c.isZero())return this;var m=this.coefficients,R=c.coefficients;if(m.length>R.length){var Z=m;m=R,R=Z}var Q=new Int32Array(R.length),se=R.length-m.length;s.arraycopy(R,0,Q,0,se);for(var de=se;de<R.length;de++)Q[de]=Vr.addOrSubtract(m[de-se],R[de]);return new I(this.field,Q)},I.prototype.multiply=function(c){if(!this.field.equals(c.field))throw new U("GenericGFPolys do not have same GenericGF field");if(this.isZero()||c.isZero())return this.field.getZero();for(var m=this.coefficients,R=m.length,Z=c.coefficients,Q=Z.length,se=new Int32Array(R+Q-1),de=this.field,Ee=0;Ee<R;Ee++)for(var Ve=m[Ee],mt=0;mt<Q;mt++)se[Ee+mt]=Vr.addOrSubtract(se[Ee+mt],de.multiply(Ve,Z[mt]));return new I(de,se)},I.prototype.multiplyScalar=function(c){if(0===c)return this.field.getZero();if(1===c)return this;for(var m=this.coefficients.length,R=this.field,Z=new Int32Array(m),Q=this.coefficients,se=0;se<m;se++)Z[se]=R.multiply(Q[se],c);return new I(R,Z)},I.prototype.multiplyByMonomial=function(c,m){if(c<0)throw new U;if(0===m)return this.field.getZero();for(var R=this.coefficients,Z=R.length,Q=new Int32Array(Z+c),se=this.field,de=0;de<Z;de++)Q[de]=se.multiply(R[de],m);return new I(se,Q)},I.prototype.divide=function(c){if(!this.field.equals(c.field))throw new U("GenericGFPolys do not have same GenericGF field");if(c.isZero())throw new U("Divide by 0");for(var m=this.field,R=m.getZero(),Z=this,Q=c.getCoefficient(c.getDegree()),se=m.inverse(Q);Z.getDegree()>=c.getDegree()&&!Z.isZero();){var de=Z.getDegree()-c.getDegree(),Ee=m.multiply(Z.getCoefficient(Z.getDegree()),se),Ve=c.multiplyByMonomial(de,Ee),mt=m.buildMonomial(de,Ee);R=R.addOrSubtract(mt),Z=Z.addOrSubtract(Ve)}return[R,Z]},I.prototype.toString=function(){for(var c="",m=this.getDegree();m>=0;m--){var R=this.getCoefficient(m);if(0!==R){if(R<0?(c+=" - ",R=-R):c.length>0&&(c+=" + "),0===m||1!==R){var Z=this.field.log(R);0===Z?c+="1":1===Z?c+="a":(c+="a^",c+=Z)}0!==m&&(1===m?c+="x":(c+="x^",c+=m))}}return c},I}();const Ar=Sr;var Jr=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),Fr=function(I){function c(){return null!==I&&I.apply(this,arguments)||this}return Jr(c,I),c.kind="ArithmeticException",c}(a);const Gt=Fr;var le=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),Ce=function(I){function c(m,R,Z){var Q=I.call(this)||this;Q.primitive=m,Q.size=R,Q.generatorBase=Z;for(var se=new Int32Array(R),de=1,Ee=0;Ee<R;Ee++)se[Ee]=de,(de*=2)>=R&&(de^=m,de&=R-1);Q.expTable=se;var Ve=new Int32Array(R);for(Ee=0;Ee<R-1;Ee++)Ve[se[Ee]]=Ee;return Q.logTable=Ve,Q.zero=new Ar(Q,Int32Array.from([0])),Q.one=new Ar(Q,Int32Array.from([1])),Q}return le(c,I),c.prototype.getZero=function(){return this.zero},c.prototype.getOne=function(){return this.one},c.prototype.buildMonomial=function(m,R){if(m<0)throw new U;if(0===R)return this.zero;var Z=new Int32Array(m+1);return Z[0]=R,new Ar(this,Z)},c.prototype.inverse=function(m){if(0===m)throw new Gt;return this.expTable[this.size-this.logTable[m]-1]},c.prototype.multiply=function(m,R){return 0===m||0===R?0:this.expTable[(this.logTable[m]+this.logTable[R])%(this.size-1)]},c.prototype.getSize=function(){return this.size},c.prototype.getGeneratorBase=function(){return this.generatorBase},c.prototype.toString=function(){return"GF(0x"+ae.toHexString(this.primitive)+","+this.size+")"},c.prototype.equals=function(m){return m===this},c.AZTEC_DATA_12=new c(4201,4096,1),c.AZTEC_DATA_10=new c(1033,1024,1),c.AZTEC_DATA_6=new c(67,64,1),c.AZTEC_PARAM=new c(19,16,1),c.QR_CODE_FIELD_256=new c(285,256,0),c.DATA_MATRIX_FIELD_256=new c(301,256,1),c.AZTEC_DATA_8=c.DATA_MATRIX_FIELD_256,c.MAXICODE_FIELD_64=c.AZTEC_DATA_6,c}(Vr);const Ie=Ce;var Pe=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),Oe=function(I){function c(){return null!==I&&I.apply(this,arguments)||this}return Pe(c,I),c.kind="ReedSolomonException",c}(a);const Se=Oe;var Xe=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),Ct=function(I){function c(){return null!==I&&I.apply(this,arguments)||this}return Xe(c,I),c.kind="IllegalStateException",c}(a);const zt=Ct;var kr=function(){function I(c){this.field=c}return I.prototype.decode=function(c,m){for(var R=this.field,Z=new Ar(R,c),Q=new Int32Array(m),se=!0,de=0;de<m;de++){var Ee=Z.evaluateAt(R.exp(de+R.getGeneratorBase()));Q[Q.length-1-de]=Ee,0!==Ee&&(se=!1)}if(!se){var Ve=new Ar(R,Q),mt=this.runEuclideanAlgorithm(R.buildMonomial(m,1),Ve,m),Jt=mt[1],Xt=this.findErrorLocations(mt[0]),Lr=this.findErrorMagnitudes(Jt,Xt);for(de=0;de<Xt.length;de++){var Yr=c.length-1-R.log(Xt[de]);if(Yr<0)throw new Se("Bad error location");c[Yr]=Ie.addOrSubtract(c[Yr],Lr[de])}}},I.prototype.runEuclideanAlgorithm=function(c,m,R){if(c.getDegree()<m.getDegree()){var Z=c;c=m,m=Z}for(var Q=this.field,se=c,de=m,Ee=Q.getZero(),Ve=Q.getOne();de.getDegree()>=(R/2|0);){var mt=se,It=Ee;if(Ee=Ve,(se=de).isZero())throw new Se("r_{i-1} was zero");de=mt;for(var Jt=Q.getZero(),Xt=se.getCoefficient(se.getDegree()),Lr=Q.inverse(Xt);de.getDegree()>=se.getDegree()&&!de.isZero();){var Yr=de.getDegree()-se.getDegree(),on=Q.multiply(de.getCoefficient(de.getDegree()),Lr);Jt=Jt.addOrSubtract(Q.buildMonomial(Yr,on)),de=de.addOrSubtract(se.multiplyByMonomial(Yr,on))}if(Ve=Jt.multiply(Ee).addOrSubtract(It),de.getDegree()>=se.getDegree())throw new zt("Division algorithm failed to reduce polynomial?")}var ln=Ve.getCoefficient(0);if(0===ln)throw new Se("sigmaTilde(0) was zero");var en=Q.inverse(ln);return[Ve.multiplyScalar(en),de.multiplyScalar(en)]},I.prototype.findErrorLocations=function(c){var m=c.getDegree();if(1===m)return Int32Array.from([c.getCoefficient(1)]);for(var R=new Int32Array(m),Z=0,Q=this.field,se=1;se<Q.getSize()&&Z<m;se++)0===c.evaluateAt(se)&&(R[Z]=Q.inverse(se),Z++);if(Z!==m)throw new Se("Error locator degree does not match number of roots");return R},I.prototype.findErrorMagnitudes=function(c,m){for(var R=m.length,Z=new Int32Array(R),Q=this.field,se=0;se<R;se++){for(var de=Q.inverse(m[se]),Ee=1,Ve=0;Ve<R;Ve++)if(se!==Ve){var mt=Q.multiply(m[Ve],de);Ee=Q.multiply(Ee,0==(1&mt)?1|mt:-2&mt)}Z[se]=Q.multiply(c.evaluateAt(de),Q.inverse(Ee)),0!==Q.getGeneratorBase()&&(Z[se]=Q.multiply(Z[se],de))}return Z},I}();const Br=kr;var xt=(()=>(function(I){I[I.UPPER=0]="UPPER",I[I.LOWER=1]="LOWER",I[I.MIXED=2]="MIXED",I[I.DIGIT=3]="DIGIT",I[I.PUNCT=4]="PUNCT",I[I.BINARY=5]="BINARY"}(xt||(xt={})),xt))(),tr=function(){function I(){}return I.prototype.decode=function(c){this.ddata=c;var m=c.getBits(),R=this.extractBits(m),Z=this.correctBits(R),Q=I.convertBoolArrayToByteArray(Z),se=I.getEncodedData(Z),de=new vt(Q,se,null,null);return de.setNumBits(Z.length),de},I.highLevelDecode=function(c){return this.getEncodedData(c)},I.getEncodedData=function(c){for(var m=c.length,R=xt.UPPER,Z=xt.UPPER,Q="",se=0;se<m;)if(Z===xt.BINARY){if(m-se<5)break;var de=I.readCode(c,se,5);if(se+=5,0===de){if(m-se<11)break;de=I.readCode(c,se,11)+31,se+=11}for(var Ee=0;Ee<de;Ee++){if(m-se<8){se=m;break}var Ve=I.readCode(c,se,8);Q+=rt.castAsNonUtf8Char(Ve),se+=8}Z=R}else{var mt=Z===xt.DIGIT?4:5;if(m-se<mt)break;Ve=I.readCode(c,se,mt),se+=mt;var It=I.getCharacter(Z,Ve);It.startsWith("CTRL_")?(R=Z,Z=I.getTable(It.charAt(5)),"L"===It.charAt(6)&&(R=Z)):(Q+=It,Z=R)}return Q},I.getTable=function(c){switch(c){case"L":return xt.LOWER;case"P":return xt.PUNCT;case"M":return xt.MIXED;case"D":return xt.DIGIT;case"B":return xt.BINARY;default:return xt.UPPER}},I.getCharacter=function(c,m){switch(c){case xt.UPPER:return I.UPPER_TABLE[m];case xt.LOWER:return I.LOWER_TABLE[m];case xt.MIXED:return I.MIXED_TABLE[m];case xt.PUNCT:return I.PUNCT_TABLE[m];case xt.DIGIT:return I.DIGIT_TABLE[m];default:throw new zt("Bad table")}},I.prototype.correctBits=function(c){var m,R;this.ddata.getNbLayers()<=2?(R=6,m=Ie.AZTEC_DATA_6):this.ddata.getNbLayers()<=8?(R=8,m=Ie.AZTEC_DATA_8):this.ddata.getNbLayers()<=22?(R=10,m=Ie.AZTEC_DATA_10):(R=12,m=Ie.AZTEC_DATA_12);var Z=this.ddata.getNbDatablocks(),Q=c.length/R;if(Q<Z)throw new Be;for(var se=c.length%R,de=new Int32Array(Q),Ee=0;Ee<Q;Ee++,se+=R)de[Ee]=I.readCode(c,se,R);try{new Br(m).decode(de,Q-Z)}catch(on){throw new Be(on)}var mt=(1<<R)-1,It=0;for(Ee=0;Ee<Z;Ee++){if(0===(Jt=de[Ee])||Jt===mt)throw new Be;(1===Jt||Jt===mt-1)&&It++}var Xt=new Array(Z*R-It),Lr=0;for(Ee=0;Ee<Z;Ee++){var Jt;if(1===(Jt=de[Ee])||Jt===mt-1)Xt.fill(Jt>1,Lr,Lr+R-1),Lr+=R-1;else for(var Yr=R-1;Yr>=0;--Yr)Xt[Lr++]=0!=(Jt&1<<Yr)}return Xt},I.prototype.extractBits=function(c){var m=this.ddata.isCompact(),R=this.ddata.getNbLayers(),Z=(m?11:14)+4*R,Q=new Int32Array(Z),se=new Array(this.totalBitsInLayer(R,m));if(m)for(var de=0;de<Q.length;de++)Q[de]=de;else{var Ee=Z+1+2*ae.truncDivision(ae.truncDivision(Z,2)-1,15),Ve=Z/2,mt=ae.truncDivision(Ee,2);for(de=0;de<Ve;de++){var It=de+ae.truncDivision(de,15);Q[Ve-de-1]=mt-It-1,Q[Ve+de]=mt+It+1}}de=0;for(var Jt=0;de<R;de++){for(var Xt=4*(R-de)+(m?9:12),Lr=2*de,Yr=Z-1-Lr,on=0;on<Xt;on++)for(var ln=2*on,en=0;en<2;en++)se[Jt+ln+en]=c.get(Q[Lr+en],Q[Lr+on]),se[Jt+2*Xt+ln+en]=c.get(Q[Lr+on],Q[Yr-en]),se[Jt+4*Xt+ln+en]=c.get(Q[Yr-en],Q[Yr-on]),se[Jt+6*Xt+ln+en]=c.get(Q[Yr-on],Q[Lr+en]);Jt+=8*Xt}return se},I.readCode=function(c,m,R){for(var Z=0,Q=m;Q<m+R;Q++)Z<<=1,c[Q]&&(Z|=1);return Z},I.readByte=function(c,m){var R=c.length-m;return R>=8?I.readCode(c,m,8):I.readCode(c,m,R)<<8-R},I.convertBoolArrayToByteArray=function(c){for(var m=new Uint8Array((c.length+7)/8),R=0;R<m.length;R++)m[R]=I.readByte(c,8*R);return m},I.prototype.totalBitsInLayer=function(c,m){return((m?88:112)+16*c)*c},I.UPPER_TABLE=["CTRL_PS"," ","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","CTRL_LL","CTRL_ML","CTRL_DL","CTRL_BS"],I.LOWER_TABLE=["CTRL_PS"," ","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","CTRL_US","CTRL_ML","CTRL_DL","CTRL_BS"],I.MIXED_TABLE=["CTRL_PS"," ","\\1","\\2","\\3","\\4","\\5","\\6","\\7","\b","\t","\n","\\13","\f","\r","\\33","\\34","\\35","\\36","\\37","@","\\","^","_","`","|","~","\\177","CTRL_LL","CTRL_UL","CTRL_PL","CTRL_BS"],I.PUNCT_TABLE=["","\r","\r\n",". ",", ",": ","!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","[","]","{","}","CTRL_UL"],I.DIGIT_TABLE=["CTRL_PS"," ","0","1","2","3","4","5","6","7","8","9",",",".","CTRL_UL","CTRL_US"],I}();const Rr=tr;var Ur=function(){function I(){}return I.round=function(c){return NaN===c?0:c<=Number.MIN_SAFE_INTEGER?Number.MIN_SAFE_INTEGER:c>=Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:c+(c<0?-.5:.5)|0},I.distance=function(c,m,R,Z){var Q=c-R,se=m-Z;return Math.sqrt(Q*Q+se*se)},I.sum=function(c){for(var m=0,R=0,Z=c.length;R!==Z;R++)m+=c[R];return m},I}();const Nr=Ur;var zr=function(){function I(){}return I.floatToIntBits=function(c){return c},I.MAX_VALUE=Number.MAX_SAFE_INTEGER,I}();const hn=zr;var _n=function(){function I(c,m){this.x=c,this.y=m}return I.prototype.getX=function(){return this.x},I.prototype.getY=function(){return this.y},I.prototype.equals=function(c){return c instanceof I&&(this.x===c.x&&this.y===c.y)},I.prototype.hashCode=function(){return 31*hn.floatToIntBits(this.x)+hn.floatToIntBits(this.y)},I.prototype.toString=function(){return"("+this.x+","+this.y+")"},I.orderBestPatterns=function(c){var Q,se,de,m=this.distance(c[0],c[1]),R=this.distance(c[1],c[2]),Z=this.distance(c[0],c[2]);if(R>=m&&R>=Z?(se=c[0],Q=c[1],de=c[2]):Z>=R&&Z>=m?(se=c[1],Q=c[0],de=c[2]):(se=c[2],Q=c[0],de=c[1]),this.crossProductZ(Q,se,de)<0){var Ee=Q;Q=de,de=Ee}c[0]=Q,c[1]=se,c[2]=de},I.distance=function(c,m){return Nr.distance(c.x,c.y,m.x,m.y)},I.crossProductZ=function(c,m,R){var Z=m.x,Q=m.y;return(R.x-Z)*(c.y-Q)-(R.y-Q)*(c.x-Z)},I}();const Tn=_n;var sr=function(){function I(c,m){this.bits=c,this.points=m}return I.prototype.getBits=function(){return this.bits},I.prototype.getPoints=function(){return this.points},I}();const fr=sr;var Kt=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),Qr=function(I){function c(m,R,Z,Q,se){var de=I.call(this,m,R)||this;return de.compact=Z,de.nbDatablocks=Q,de.nbLayers=se,de}return Kt(c,I),c.prototype.getNbLayers=function(){return this.nbLayers},c.prototype.getNbDatablocks=function(){return this.nbDatablocks},c.prototype.isCompact=function(){return this.compact},c}(fr);const we=Qr;var De=function(){function I(c,m,R,Z){this.image=c,this.height=c.getHeight(),this.width=c.getWidth(),null==m&&(m=I.INIT_SIZE),null==R&&(R=c.getWidth()/2|0),null==Z&&(Z=c.getHeight()/2|0);var Q=m/2|0;if(this.leftInit=R-Q,this.rightInit=R+Q,this.upInit=Z-Q,this.downInit=Z+Q,this.upInit<0||this.leftInit<0||this.downInit>=this.height||this.rightInit>=this.width)throw new X}return I.prototype.detect=function(){for(var c=this.leftInit,m=this.rightInit,R=this.upInit,Z=this.downInit,Q=!1,se=!0,de=!1,Ee=!1,Ve=!1,mt=!1,It=!1,Jt=this.width,Xt=this.height;se;){se=!1;for(var Lr=!0;(Lr||!Ee)&&m<Jt;)(Lr=this.containsBlackPoint(R,Z,m,!1))?(m++,se=!0,Ee=!0):Ee||m++;if(m>=Jt){Q=!0;break}for(var Yr=!0;(Yr||!Ve)&&Z<Xt;)(Yr=this.containsBlackPoint(c,m,Z,!0))?(Z++,se=!0,Ve=!0):Ve||Z++;if(Z>=Xt){Q=!0;break}for(var on=!0;(on||!mt)&&c>=0;)(on=this.containsBlackPoint(R,Z,c,!1))?(c--,se=!0,mt=!0):mt||c--;if(c<0){Q=!0;break}for(var ln=!0;(ln||!It)&&R>=0;)(ln=this.containsBlackPoint(c,m,R,!0))?(R--,se=!0,It=!0):It||R--;if(R<0){Q=!0;break}se&&(de=!0)}if(!Q&&de){for(var en=m-c,mn=null,In=1;null===mn&&In<en;In++)mn=this.getBlackPointOnSegment(c,Z-In,c+In,Z);if(null==mn)throw new X;var jn=null;for(In=1;null===jn&&In<en;In++)jn=this.getBlackPointOnSegment(c,R+In,c+In,R);if(null==jn)throw new X;var Zn=null;for(In=1;null===Zn&&In<en;In++)Zn=this.getBlackPointOnSegment(m,R+In,m-In,R);if(null==Zn)throw new X;var Xn=null;for(In=1;null===Xn&&In<en;In++)Xn=this.getBlackPointOnSegment(m,Z-In,m-In,Z);if(null==Xn)throw new X;return this.centerEdges(Xn,mn,Zn,jn)}throw new X},I.prototype.getBlackPointOnSegment=function(c,m,R,Z){for(var Q=Nr.round(Nr.distance(c,m,R,Z)),se=(R-c)/Q,de=(Z-m)/Q,Ee=this.image,Ve=0;Ve<Q;Ve++){var mt=Nr.round(c+Ve*se),It=Nr.round(m+Ve*de);if(Ee.get(mt,It))return new Tn(mt,It)}return null},I.prototype.centerEdges=function(c,m,R,Z){var Q=c.getX(),se=c.getY(),de=m.getX(),Ee=m.getY(),Ve=R.getX(),mt=R.getY(),It=Z.getX(),Jt=Z.getY(),Xt=I.CORR;return Q<this.width/2?[new Tn(It-Xt,Jt+Xt),new Tn(de+Xt,Ee+Xt),new Tn(Ve-Xt,mt-Xt),new Tn(Q+Xt,se-Xt)]:[new Tn(It+Xt,Jt+Xt),new Tn(de+Xt,Ee-Xt),new Tn(Ve-Xt,mt+Xt),new Tn(Q-Xt,se-Xt)]},I.prototype.containsBlackPoint=function(c,m,R,Z){var Q=this.image;if(Z){for(var se=c;se<=m;se++)if(Q.get(se,R))return!0}else for(var de=c;de<=m;de++)if(Q.get(R,de))return!0;return!1},I.INIT_SIZE=10,I.CORR=1,I}();const ht=De;var Vt=function(){function I(){}return I.checkAndNudgePoints=function(c,m){for(var R=c.getWidth(),Z=c.getHeight(),Q=!0,se=0;se<m.length&&Q;se+=2){var de=Math.floor(m[se]),Ee=Math.floor(m[se+1]);if(de<-1||de>R||Ee<-1||Ee>Z)throw new X;Q=!1,-1===de?(m[se]=0,Q=!0):de===R&&(m[se]=R-1,Q=!0),-1===Ee?(m[se+1]=0,Q=!0):Ee===Z&&(m[se+1]=Z-1,Q=!0)}for(Q=!0,se=m.length-2;se>=0&&Q;se-=2){if(de=Math.floor(m[se]),Ee=Math.floor(m[se+1]),de<-1||de>R||Ee<-1||Ee>Z)throw new X;Q=!1,-1===de?(m[se]=0,Q=!0):de===R&&(m[se]=R-1,Q=!0),-1===Ee?(m[se+1]=0,Q=!0):Ee===Z&&(m[se+1]=Z-1,Q=!0)}},I}();const yt=Vt;var gr=function(){function I(c,m,R,Z,Q,se,de,Ee,Ve){this.a11=c,this.a21=m,this.a31=R,this.a12=Z,this.a22=Q,this.a32=se,this.a13=de,this.a23=Ee,this.a33=Ve}return I.quadrilateralToQuadrilateral=function(c,m,R,Z,Q,se,de,Ee,Ve,mt,It,Jt,Xt,Lr,Yr,on){var ln=I.quadrilateralToSquare(c,m,R,Z,Q,se,de,Ee);return I.squareToQuadrilateral(Ve,mt,It,Jt,Xt,Lr,Yr,on).times(ln)},I.prototype.transformPoints=function(c){for(var m=c.length,R=this.a11,Z=this.a12,Q=this.a13,se=this.a21,de=this.a22,Ee=this.a23,Ve=this.a31,mt=this.a32,It=this.a33,Jt=0;Jt<m;Jt+=2){var Xt=c[Jt],Lr=c[Jt+1],Yr=Q*Xt+Ee*Lr+It;c[Jt]=(R*Xt+se*Lr+Ve)/Yr,c[Jt+1]=(Z*Xt+de*Lr+mt)/Yr}},I.prototype.transformPointsWithValues=function(c,m){for(var R=this.a11,Z=this.a12,Q=this.a13,se=this.a21,de=this.a22,Ee=this.a23,Ve=this.a31,mt=this.a32,It=this.a33,Jt=c.length,Xt=0;Xt<Jt;Xt++){var Lr=c[Xt],Yr=m[Xt],on=Q*Lr+Ee*Yr+It;c[Xt]=(R*Lr+se*Yr+Ve)/on,m[Xt]=(Z*Lr+de*Yr+mt)/on}},I.squareToQuadrilateral=function(c,m,R,Z,Q,se,de,Ee){var Ve=c-R+Q-de,mt=m-Z+se-Ee;if(0===Ve&&0===mt)return new I(R-c,Q-R,c,Z-m,se-Z,m,0,0,1);var It=R-Q,Jt=de-Q,Xt=Z-se,Lr=Ee-se,Yr=It*Lr-Jt*Xt,on=(Ve*Lr-Jt*mt)/Yr,ln=(It*mt-Ve*Xt)/Yr;return new I(R-c+on*R,de-c+ln*de,c,Z-m+on*Z,Ee-m+ln*Ee,m,on,ln,1)},I.quadrilateralToSquare=function(c,m,R,Z,Q,se,de,Ee){return I.squareToQuadrilateral(c,m,R,Z,Q,se,de,Ee).buildAdjoint()},I.prototype.buildAdjoint=function(){return new I(this.a22*this.a33-this.a23*this.a32,this.a23*this.a31-this.a21*this.a33,this.a21*this.a32-this.a22*this.a31,this.a13*this.a32-this.a12*this.a33,this.a11*this.a33-this.a13*this.a31,this.a12*this.a31-this.a11*this.a32,this.a12*this.a23-this.a13*this.a22,this.a13*this.a21-this.a11*this.a23,this.a11*this.a22-this.a12*this.a21)},I.prototype.times=function(c){return new I(this.a11*c.a11+this.a21*c.a12+this.a31*c.a13,this.a11*c.a21+this.a21*c.a22+this.a31*c.a23,this.a11*c.a31+this.a21*c.a32+this.a31*c.a33,this.a12*c.a11+this.a22*c.a12+this.a32*c.a13,this.a12*c.a21+this.a22*c.a22+this.a32*c.a23,this.a12*c.a31+this.a22*c.a32+this.a32*c.a33,this.a13*c.a11+this.a23*c.a12+this.a33*c.a13,this.a13*c.a21+this.a23*c.a22+this.a33*c.a23,this.a13*c.a31+this.a23*c.a32+this.a33*c.a33)},I}();const ur=gr;var Zr=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),fn=function(I){function c(){return null!==I&&I.apply(this,arguments)||this}return Zr(c,I),c.prototype.sampleGrid=function(m,R,Z,Q,se,de,Ee,Ve,mt,It,Jt,Xt,Lr,Yr,on,ln,en,mn,In){var jn=ur.quadrilateralToQuadrilateral(Q,se,de,Ee,Ve,mt,It,Jt,Xt,Lr,Yr,on,ln,en,mn,In);return this.sampleGridWithTransform(m,R,Z,jn)},c.prototype.sampleGridWithTransform=function(m,R,Z,Q){if(R<=0||Z<=0)throw new X;for(var se=new nt(R,Z),de=new Float32Array(2*R),Ee=0;Ee<Z;Ee++){for(var Ve=de.length,mt=Ee+.5,It=0;It<Ve;It+=2)de[It]=It/2+.5,de[It+1]=mt;Q.transformPoints(de),yt.checkAndNudgePoints(m,de);try{for(It=0;It<Ve;It+=2)m.get(Math.floor(de[It]),Math.floor(de[It+1]))&&se.set(It/2,Ee)}catch{throw new X}}return se},c}(yt);const un=fn;var Et=function(){function I(){}return I.setGridSampler=function(c){I.gridSampler=c},I.getInstance=function(){return I.gridSampler},I.gridSampler=new un,I}();const Ae=Et;var it=function(){function I(c,m){this.x=c,this.y=m}return I.prototype.toResultPoint=function(){return new Tn(this.getX(),this.getY())},I.prototype.getX=function(){return this.x},I.prototype.getY=function(){return this.y},I}(),Bt=function(){function I(c){this.EXPECTED_CORNER_BITS=new Int32Array([3808,476,2107,1799]),this.image=c}return I.prototype.detect=function(){return this.detectMirror(!1)},I.prototype.detectMirror=function(c){var m=this.getMatrixCenter(),R=this.getBullsEyeCorners(m);if(c){var Z=R[0];R[0]=R[2],R[2]=Z}this.extractParameters(R);var Q=this.sampleGrid(this.image,R[this.shift%4],R[(this.shift+1)%4],R[(this.shift+2)%4],R[(this.shift+3)%4]),se=this.getMatrixCornerPoints(R);return new we(Q,se,this.compact,this.nbDataBlocks,this.nbLayers)},I.prototype.extractParameters=function(c){if(!(this.isValidPoint(c[0])&&this.isValidPoint(c[1])&&this.isValidPoint(c[2])&&this.isValidPoint(c[3])))throw new X;var m=2*this.nbCenterLayers,R=new Int32Array([this.sampleLine(c[0],c[1],m),this.sampleLine(c[1],c[2],m),this.sampleLine(c[2],c[3],m),this.sampleLine(c[3],c[0],m)]);this.shift=this.getRotation(R,m);for(var Z=0,Q=0;Q<4;Q++){var se=R[(this.shift+Q)%4];this.compact?(Z<<=7,Z+=se>>1&127):(Z<<=10,Z+=(se>>2&992)+(se>>1&31))}var de=this.getCorrectedParameterData(Z,this.compact);this.compact?(this.nbLayers=1+(de>>6),this.nbDataBlocks=1+(63&de)):(this.nbLayers=1+(de>>11),this.nbDataBlocks=1+(2047&de))},I.prototype.getRotation=function(c,m){var R=0;c.forEach(function(Q,se,de){R=(Q>>m-2<<1)+(1&Q)+(R<<3)}),R=((1&R)<<11)+(R>>1);for(var Z=0;Z<4;Z++)if(ae.bitCount(R^this.EXPECTED_CORNER_BITS[Z])<=2)return Z;throw new X},I.prototype.getCorrectedParameterData=function(c,m){var R,Z;m?(R=7,Z=2):(R=10,Z=4);for(var Q=R-Z,se=new Int32Array(R),de=R-1;de>=0;--de)se[de]=15&c,c>>=4;try{new Br(Ie.AZTEC_PARAM).decode(se,Q)}catch{throw new X}var Ve=0;for(de=0;de<Z;de++)Ve=(Ve<<4)+se[de];return Ve},I.prototype.getBullsEyeCorners=function(c){var m=c,R=c,Z=c,Q=c,se=!0;for(this.nbCenterLayers=1;this.nbCenterLayers<9;this.nbCenterLayers++){var de=this.getFirstDifferent(m,se,1,-1),Ee=this.getFirstDifferent(R,se,1,1),Ve=this.getFirstDifferent(Z,se,-1,1),mt=this.getFirstDifferent(Q,se,-1,-1);if(this.nbCenterLayers>2){var It=this.distancePoint(mt,de)*this.nbCenterLayers/(this.distancePoint(Q,m)*(this.nbCenterLayers+2));if(It<.75||It>1.25||!this.isWhiteOrBlackRectangle(de,Ee,Ve,mt))break}m=de,R=Ee,Z=Ve,Q=mt,se=!se}if(5!==this.nbCenterLayers&&7!==this.nbCenterLayers)throw new X;this.compact=5===this.nbCenterLayers;var Jt=new Tn(m.getX()+.5,m.getY()-.5),Xt=new Tn(R.getX()+.5,R.getY()+.5),Lr=new Tn(Z.getX()-.5,Z.getY()+.5),Yr=new Tn(Q.getX()-.5,Q.getY()-.5);return this.expandSquare([Jt,Xt,Lr,Yr],2*this.nbCenterLayers-3,2*this.nbCenterLayers)},I.prototype.getMatrixCenter=function(){var c,m,R,Z;try{c=(Q=new ht(this.image).detect())[0],m=Q[1],R=Q[2],Z=Q[3]}catch{var se=this.image.getWidth()/2,de=this.image.getHeight()/2;c=this.getFirstDifferent(new it(se+7,de-7),!1,1,-1).toResultPoint(),m=this.getFirstDifferent(new it(se+7,de+7),!1,1,1).toResultPoint(),R=this.getFirstDifferent(new it(se-7,de+7),!1,-1,1).toResultPoint(),Z=this.getFirstDifferent(new it(se-7,de-7),!1,-1,-1).toResultPoint()}var Ee=Nr.round((c.getX()+Z.getX()+m.getX()+R.getX())/4),Ve=Nr.round((c.getY()+Z.getY()+m.getY()+R.getY())/4);try{var Q;c=(Q=new ht(this.image,15,Ee,Ve).detect())[0],m=Q[1],R=Q[2],Z=Q[3]}catch{c=this.getFirstDifferent(new it(Ee+7,Ve-7),!1,1,-1).toResultPoint(),m=this.getFirstDifferent(new it(Ee+7,Ve+7),!1,1,1).toResultPoint(),R=this.getFirstDifferent(new it(Ee-7,Ve+7),!1,-1,1).toResultPoint(),Z=this.getFirstDifferent(new it(Ee-7,Ve-7),!1,-1,-1).toResultPoint()}return Ee=Nr.round((c.getX()+Z.getX()+m.getX()+R.getX())/4),Ve=Nr.round((c.getY()+Z.getY()+m.getY()+R.getY())/4),new it(Ee,Ve)},I.prototype.getMatrixCornerPoints=function(c){return this.expandSquare(c,2*this.nbCenterLayers,this.getDimension())},I.prototype.sampleGrid=function(c,m,R,Z,Q){var se=Ae.getInstance(),de=this.getDimension(),Ee=de/2-this.nbCenterLayers,Ve=de/2+this.nbCenterLayers;return se.sampleGrid(c,de,de,Ee,Ee,Ve,Ee,Ve,Ve,Ee,Ve,m.getX(),m.getY(),R.getX(),R.getY(),Z.getX(),Z.getY(),Q.getX(),Q.getY())},I.prototype.sampleLine=function(c,m,R){for(var Z=0,Q=this.distanceResultPoint(c,m),se=Q/R,de=c.getX(),Ee=c.getY(),Ve=se*(m.getX()-c.getX())/Q,mt=se*(m.getY()-c.getY())/Q,It=0;It<R;It++)this.image.get(Nr.round(de+It*Ve),Nr.round(Ee+It*mt))&&(Z|=1<<R-It-1);return Z},I.prototype.isWhiteOrBlackRectangle=function(c,m,R,Z){c=new it(c.getX()-3,c.getY()+3),m=new it(m.getX()-3,m.getY()-3),R=new it(R.getX()+3,R.getY()-3),Z=new it(Z.getX()+3,Z.getY()+3);var se=this.getColor(Z,c);if(0===se)return!1;var de=this.getColor(c,m);return de===se&&(de=this.getColor(m,R))===se&&(de=this.getColor(R,Z))===se},I.prototype.getColor=function(c,m){for(var R=this.distancePoint(c,m),Z=(m.getX()-c.getX())/R,Q=(m.getY()-c.getY())/R,se=0,de=c.getX(),Ee=c.getY(),Ve=this.image.get(c.getX(),c.getY()),mt=Math.ceil(R),It=0;It<mt;It++)Ee+=Q,this.image.get(Nr.round(de+=Z),Nr.round(Ee))!==Ve&&se++;var Jt=se/R;return Jt>.1&&Jt<.9?0:Jt<=.1===Ve?1:-1},I.prototype.getFirstDifferent=function(c,m,R,Z){for(var Q=c.getX()+R,se=c.getY()+Z;this.isValid(Q,se)&&this.image.get(Q,se)===m;)Q+=R,se+=Z;for(Q-=R,se-=Z;this.isValid(Q,se)&&this.image.get(Q,se)===m;)Q+=R;for(Q-=R;this.isValid(Q,se)&&this.image.get(Q,se)===m;)se+=Z;return new it(Q,se-=Z)},I.prototype.expandSquare=function(c,m,R){var Z=R/(2*m),Q=c[0].getX()-c[2].getX(),se=c[0].getY()-c[2].getY(),de=(c[0].getX()+c[2].getX())/2,Ee=(c[0].getY()+c[2].getY())/2,Ve=new Tn(de+Z*Q,Ee+Z*se),mt=new Tn(de-Z*Q,Ee-Z*se);return Q=c[1].getX()-c[3].getX(),se=c[1].getY()-c[3].getY(),de=(c[1].getX()+c[3].getX())/2,Ee=(c[1].getY()+c[3].getY())/2,[Ve,new Tn(de+Z*Q,Ee+Z*se),mt,new Tn(de-Z*Q,Ee-Z*se)]},I.prototype.isValid=function(c,m){return c>=0&&c<this.image.getWidth()&&m>0&&m<this.image.getHeight()},I.prototype.isValidPoint=function(c){var m=Nr.round(c.getX()),R=Nr.round(c.getY());return this.isValid(m,R)},I.prototype.distancePoint=function(c,m){return Nr.distance(c.getX(),c.getY(),m.getX(),m.getY())},I.prototype.distanceResultPoint=function(c,m){return Nr.distance(c.getX(),c.getY(),m.getX(),m.getY())},I.prototype.getDimension=function(){return this.compact?4*this.nbLayers+11:this.nbLayers<=4?4*this.nbLayers+15:4*this.nbLayers+2*(ae.truncDivision(this.nbLayers-4,8)+1)+15},I}();const pr=Bt;var Or=function(){function I(){}return I.prototype.decode=function(c,m){void 0===m&&(m=null);var R=null,Z=new pr(c.getBlackMatrix()),Q=null,se=null;try{Q=(de=Z.detectMirror(!1)).getPoints(),this.reportFoundResultPoints(m,Q),se=(new Rr).decode(de)}catch(It){R=It}if(null==se)try{var de;Q=(de=Z.detectMirror(!0)).getPoints(),this.reportFoundResultPoints(m,Q),se=(new Rr).decode(de)}catch(It){throw R??It}var Ee=new Fe(se.getText(),se.getRawBytes(),se.getNumBits(),Q,St.AZTEC,s.currentTimeMillis()),Ve=se.getByteSegments();null!=Ve&&Ee.putMetadata(ke.BYTE_SEGMENTS,Ve);var mt=se.getECLevel();return null!=mt&&Ee.putMetadata(ke.ERROR_CORRECTION_LEVEL,mt),Ee},I.prototype.reportFoundResultPoints=function(c,m){if(null!=c){var R=c.get(At.NEED_RESULT_POINT_CALLBACK);null!=R&&m.forEach(function(Z,Q,se){R.foundPossibleResultPoint(Z)})}},I.prototype.reset=function(){},I}();const Wr=Or;var sn=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),Sn=(function(I){sn(function c(m){return void 0===m&&(m=500),I.call(this,new Wr,m)||this},I)}(kt),function(){function I(){}return I.prototype.decode=function(c,m){try{return this.doDecode(c,m)}catch{if(m&&!0===m.get(At.TRY_HARDER)&&c.isRotateSupported()){var Z=c.rotateCounterClockwise(),Q=this.doDecode(Z,m),se=Q.getResultMetadata(),de=270;null!==se&&!0===se.get(ke.ORIENTATION)&&(de+=se.get(ke.ORIENTATION)%360),Q.putMetadata(ke.ORIENTATION,de);var Ee=Q.getResultPoints();if(null!==Ee)for(var Ve=Z.getHeight(),mt=0;mt<Ee.length;mt++)Ee[mt]=new Tn(Ve-Ee[mt].getY()-1,Ee[mt].getX());return Q}throw new X}},I.prototype.reset=function(){},I.prototype.doDecode=function(c,m){var Ee,R=c.getWidth(),Z=c.getHeight(),Q=new Qe(R),se=m&&!0===m.get(At.TRY_HARDER),de=Math.max(1,Z>>(se?8:5));Ee=se?Z:15;for(var Ve=Math.trunc(Z/2),mt=0;mt<Ee;mt++){var It=Math.trunc((mt+1)/2),Xt=Ve+de*(0==(1&mt)?It:-It);if(Xt<0||Xt>=Z)break;try{Q=c.getBlackRow(Xt,Q)}catch{continue}for(var Lr=function(en){if(1===en&&(Q.reverse(),m&&!0===m.get(At.NEED_RESULT_POINT_CALLBACK))){var mn=new Map;m.forEach(function(Zn,Xn){return mn.set(Xn,Zn)}),mn.delete(At.NEED_RESULT_POINT_CALLBACK),m=mn}try{var In=Yr.decodeRow(Xt,Q,m);if(1===en){In.putMetadata(ke.ORIENTATION,180);var jn=In.getResultPoints();null!==jn&&(jn[0]=new Tn(R-jn[0].getX()-1,jn[0].getY()),jn[1]=new Tn(R-jn[1].getX()-1,jn[1].getY()))}return{value:In}}catch{}},Yr=this,on=0;on<2;on++){var ln=Lr(on);if("object"==typeof ln)return ln.value}}throw new X},I.recordPattern=function(c,m,R){for(var Z=R.length,Q=0;Q<Z;Q++)R[Q]=0;var se=c.getSize();if(m>=se)throw new X;for(var de=!c.get(m),Ee=0,Ve=m;Ve<se;){if(c.get(Ve)!==de)R[Ee]++;else{if(++Ee===Z)break;R[Ee]=1,de=!de}Ve++}if(Ee!==Z&&(Ee!==Z-1||Ve!==se))throw new X},I.recordPatternInReverse=function(c,m,R){for(var Z=R.length,Q=c.get(m);m>0&&Z>=0;)c.get(--m)!==Q&&(Z--,Q=!Q);if(Z>=0)throw new X;I.recordPattern(c,m+1,R)},I.patternMatchVariance=function(c,m,R){for(var Z=c.length,Q=0,se=0,de=0;de<Z;de++)Q+=c[de],se+=m[de];if(Q<se)return Number.POSITIVE_INFINITY;var Ee=Q/se;R*=Ee;for(var Ve=0,mt=0;mt<Z;mt++){var It=c[mt],Jt=m[mt]*Ee,Xt=It>Jt?It-Jt:Jt-It;if(Xt>R)return Number.POSITIVE_INFINITY;Ve+=Xt}return Ve/Q},I}());const yn=Sn;var Rn=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),Kn=function(I){function c(){return null!==I&&I.apply(this,arguments)||this}return Rn(c,I),c.findStartPattern=function(m){for(var R=m.getSize(),Z=m.getNextSet(0),Q=0,se=Int32Array.from([0,0,0,0,0,0]),de=Z,Ee=!1,mt=Z;mt<R;mt++)if(m.get(mt)!==Ee)se[Q]++;else{if(5===Q){for(var It=c.MAX_AVG_VARIANCE,Jt=-1,Xt=c.CODE_START_A;Xt<=c.CODE_START_C;Xt++){var Lr=yn.patternMatchVariance(se,c.CODE_PATTERNS[Xt],c.MAX_INDIVIDUAL_VARIANCE);Lr<It&&(It=Lr,Jt=Xt)}if(Jt>=0&&m.isRange(Math.max(0,de-(mt-de)/2),de,!1))return Int32Array.from([de,mt,Jt]);de+=se[0]+se[1],(se=se.slice(2,se.length-1))[Q-1]=0,se[Q]=0,Q--}else Q++;se[Q]=1,Ee=!Ee}throw new X},c.decodeCode=function(m,R,Z){yn.recordPattern(m,Z,R);for(var Q=c.MAX_AVG_VARIANCE,se=-1,de=0;de<c.CODE_PATTERNS.length;de++){var Ve=this.patternMatchVariance(R,c.CODE_PATTERNS[de],c.MAX_INDIVIDUAL_VARIANCE);Ve<Q&&(Q=Ve,se=de)}if(se>=0)return se;throw new X},c.prototype.decodeRow=function(m,R,Z){var mt,Q=Z&&!0===Z.get(At.ASSUME_GS1),se=c.findStartPattern(R),de=se[2],Ee=0,Ve=new Uint8Array(20);switch(Ve[Ee++]=de,de){case c.CODE_START_A:mt=c.CODE_CODE_A;break;case c.CODE_START_B:mt=c.CODE_CODE_B;break;case c.CODE_START_C:mt=c.CODE_CODE_C;break;default:throw new Be}for(var It=!1,Jt=!1,Xt="",Lr=se[0],Yr=se[1],on=Int32Array.from([0,0,0,0,0,0]),ln=0,en=0,mn=de,In=0,jn=!0,Zn=!1,Xn=!1;!It;){var mi=Jt;switch(Jt=!1,ln=en,en=c.decodeCode(R,on,Yr),Ve[Ee++]=en,en!==c.CODE_STOP&&(jn=!0),en!==c.CODE_STOP&&(mn+=++In*en),Lr=Yr,Yr+=on.reduce(function(Xf,hf){return Xf+hf},0),en){case c.CODE_START_A:case c.CODE_START_B:case c.CODE_START_C:throw new Be}switch(mt){case c.CODE_CODE_A:if(en<64)Xt+=String.fromCharCode(Xn===Zn?" ".charCodeAt(0)+en:" ".charCodeAt(0)+en+128),Xn=!1;else if(en<96)Xt+=String.fromCharCode(Xn===Zn?en-64:en+64),Xn=!1;else switch(en!==c.CODE_STOP&&(jn=!1),en){case c.CODE_FNC_1:Q&&(Xt+=0===Xt.length?"]C1":String.fromCharCode(29));break;case c.CODE_FNC_2:case c.CODE_FNC_3:break;case c.CODE_FNC_4_A:!Zn&&Xn?(Zn=!0,Xn=!1):Zn&&Xn?(Zn=!1,Xn=!1):Xn=!0;break;case c.CODE_SHIFT:Jt=!0,mt=c.CODE_CODE_B;break;case c.CODE_CODE_B:mt=c.CODE_CODE_B;break;case c.CODE_CODE_C:mt=c.CODE_CODE_C;break;case c.CODE_STOP:It=!0}break;case c.CODE_CODE_B:if(en<96)Xt+=String.fromCharCode(Xn===Zn?" ".charCodeAt(0)+en:" ".charCodeAt(0)+en+128),Xn=!1;else switch(en!==c.CODE_STOP&&(jn=!1),en){case c.CODE_FNC_1:Q&&(Xt+=0===Xt.length?"]C1":String.fromCharCode(29));break;case c.CODE_FNC_2:case c.CODE_FNC_3:break;case c.CODE_FNC_4_B:!Zn&&Xn?(Zn=!0,Xn=!1):Zn&&Xn?(Zn=!1,Xn=!1):Xn=!0;break;case c.CODE_SHIFT:Jt=!0,mt=c.CODE_CODE_A;break;case c.CODE_CODE_A:mt=c.CODE_CODE_A;break;case c.CODE_CODE_C:mt=c.CODE_CODE_C;break;case c.CODE_STOP:It=!0}break;case c.CODE_CODE_C:if(en<100)en<10&&(Xt+="0"),Xt+=en;else switch(en!==c.CODE_STOP&&(jn=!1),en){case c.CODE_FNC_1:Q&&(Xt+=0===Xt.length?"]C1":String.fromCharCode(29));break;case c.CODE_CODE_A:mt=c.CODE_CODE_A;break;case c.CODE_CODE_B:mt=c.CODE_CODE_B;break;case c.CODE_STOP:It=!0}}mi&&(mt=mt===c.CODE_CODE_A?c.CODE_CODE_B:c.CODE_CODE_A)}var fs=Yr-Lr;if(Yr=R.getNextUnset(Yr),!R.isRange(Yr,Math.min(R.getSize(),Yr+(Yr-Lr)/2),!1))throw new X;if((mn-=In*ln)%103!==ln)throw new K;var Ri=Xt.length;if(0===Ri)throw new X;Ri>0&&jn&&(Xt=Xt.substring(0,mt===c.CODE_CODE_C?Ri-2:Ri-1));for(var Ms=(se[1]+se[0])/2,ws=Lr+fs/2,ca=Ve.length,da=new Uint8Array(ca),tc=0;tc<ca;tc++)da[tc]=Ve[tc];var ff=[new Tn(Ms,m),new Tn(ws,m)];return new Fe(Xt,da,0,ff,St.CODE_128,(new Date).getTime())},c.CODE_PATTERNS=[Int32Array.from([2,1,2,2,2,2]),Int32Array.from([2,2,2,1,2,2]),Int32Array.from([2,2,2,2,2,1]),Int32Array.from([1,2,1,2,2,3]),Int32Array.from([1,2,1,3,2,2]),Int32Array.from([1,3,1,2,2,2]),Int32Array.from([1,2,2,2,1,3]),Int32Array.from([1,2,2,3,1,2]),Int32Array.from([1,3,2,2,1,2]),Int32Array.from([2,2,1,2,1,3]),Int32Array.from([2,2,1,3,1,2]),Int32Array.from([2,3,1,2,1,2]),Int32Array.from([1,1,2,2,3,2]),Int32Array.from([1,2,2,1,3,2]),Int32Array.from([1,2,2,2,3,1]),Int32Array.from([1,1,3,2,2,2]),Int32Array.from([1,2,3,1,2,2]),Int32Array.from([1,2,3,2,2,1]),Int32Array.from([2,2,3,2,1,1]),Int32Array.from([2,2,1,1,3,2]),Int32Array.from([2,2,1,2,3,1]),Int32Array.from([2,1,3,2,1,2]),Int32Array.from([2,2,3,1,1,2]),Int32Array.from([3,1,2,1,3,1]),Int32Array.from([3,1,1,2,2,2]),Int32Array.from([3,2,1,1,2,2]),Int32Array.from([3,2,1,2,2,1]),Int32Array.from([3,1,2,2,1,2]),Int32Array.from([3,2,2,1,1,2]),Int32Array.from([3,2,2,2,1,1]),Int32Array.from([2,1,2,1,2,3]),Int32Array.from([2,1,2,3,2,1]),Int32Array.from([2,3,2,1,2,1]),Int32Array.from([1,1,1,3,2,3]),Int32Array.from([1,3,1,1,2,3]),Int32Array.from([1,3,1,3,2,1]),Int32Array.from([1,1,2,3,1,3]),Int32Array.from([1,3,2,1,1,3]),Int32Array.from([1,3,2,3,1,1]),Int32Array.from([2,1,1,3,1,3]),Int32Array.from([2,3,1,1,1,3]),Int32Array.from([2,3,1,3,1,1]),Int32Array.from([1,1,2,1,3,3]),Int32Array.from([1,1,2,3,3,1]),Int32Array.from([1,3,2,1,3,1]),Int32Array.from([1,1,3,1,2,3]),Int32Array.from([1,1,3,3,2,1]),Int32Array.from([1,3,3,1,2,1]),Int32Array.from([3,1,3,1,2,1]),Int32Array.from([2,1,1,3,3,1]),Int32Array.from([2,3,1,1,3,1]),Int32Array.from([2,1,3,1,1,3]),Int32Array.from([2,1,3,3,1,1]),Int32Array.from([2,1,3,1,3,1]),Int32Array.from([3,1,1,1,2,3]),Int32Array.from([3,1,1,3,2,1]),Int32Array.from([3,3,1,1,2,1]),Int32Array.from([3,1,2,1,1,3]),Int32Array.from([3,1,2,3,1,1]),Int32Array.from([3,3,2,1,1,1]),Int32Array.from([3,1,4,1,1,1]),Int32Array.from([2,2,1,4,1,1]),Int32Array.from([4,3,1,1,1,1]),Int32Array.from([1,1,1,2,2,4]),Int32Array.from([1,1,1,4,2,2]),Int32Array.from([1,2,1,1,2,4]),Int32Array.from([1,2,1,4,2,1]),Int32Array.from([1,4,1,1,2,2]),Int32Array.from([1,4,1,2,2,1]),Int32Array.from([1,1,2,2,1,4]),Int32Array.from([1,1,2,4,1,2]),Int32Array.from([1,2,2,1,1,4]),Int32Array.from([1,2,2,4,1,1]),Int32Array.from([1,4,2,1,1,2]),Int32Array.from([1,4,2,2,1,1]),Int32Array.from([2,4,1,2,1,1]),Int32Array.from([2,2,1,1,1,4]),Int32Array.from([4,1,3,1,1,1]),Int32Array.from([2,4,1,1,1,2]),Int32Array.from([1,3,4,1,1,1]),Int32Array.from([1,1,1,2,4,2]),Int32Array.from([1,2,1,1,4,2]),Int32Array.from([1,2,1,2,4,1]),Int32Array.from([1,1,4,2,1,2]),Int32Array.from([1,2,4,1,1,2]),Int32Array.from([1,2,4,2,1,1]),Int32Array.from([4,1,1,2,1,2]),Int32Array.from([4,2,1,1,1,2]),Int32Array.from([4,2,1,2,1,1]),Int32Array.from([2,1,2,1,4,1]),Int32Array.from([2,1,4,1,2,1]),Int32Array.from([4,1,2,1,2,1]),Int32Array.from([1,1,1,1,4,3]),Int32Array.from([1,1,1,3,4,1]),Int32Array.from([1,3,1,1,4,1]),Int32Array.from([1,1,4,1,1,3]),Int32Array.from([1,1,4,3,1,1]),Int32Array.from([4,1,1,1,1,3]),Int32Array.from([4,1,1,3,1,1]),Int32Array.from([1,1,3,1,4,1]),Int32Array.from([1,1,4,1,3,1]),Int32Array.from([3,1,1,1,4,1]),Int32Array.from([4,1,1,1,3,1]),Int32Array.from([2,1,1,4,1,2]),Int32Array.from([2,1,1,2,1,4]),Int32Array.from([2,1,1,2,3,2]),Int32Array.from([2,3,3,1,1,1,2])],c.MAX_AVG_VARIANCE=.25,c.MAX_INDIVIDUAL_VARIANCE=.7,c.CODE_SHIFT=98,c.CODE_CODE_C=99,c.CODE_CODE_B=100,c.CODE_CODE_A=101,c.CODE_FNC_1=102,c.CODE_FNC_2=97,c.CODE_FNC_3=96,c.CODE_FNC_4_A=101,c.CODE_FNC_4_B=100,c.CODE_START_A=103,c.CODE_START_B=104,c.CODE_START_C=105,c.CODE_STOP=106,c}(yn);const vi=Kn;var li=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),ci=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")},lr=function(I){function c(m,R){void 0===m&&(m=!1),void 0===R&&(R=!1);var Z=I.call(this)||this;return Z.usingCheckDigit=m,Z.extendedMode=R,Z.decodeRowResult="",Z.counters=new Int32Array(9),Z}return li(c,I),c.prototype.decodeRow=function(m,R,Z){var Q,se,de,Ee,Ve=this.counters;Ve.fill(0),this.decodeRowResult="";var Xt,Lr,mt=c.findAsteriskPattern(R,Ve),It=R.getNextSet(mt[1]),Jt=R.getSize();do{c.recordPattern(R,It,Ve);var Yr=c.toNarrowWidePattern(Ve);if(Yr<0)throw new X;Xt=c.patternToChar(Yr),this.decodeRowResult+=Xt,Lr=It;try{for(var on=(Q=void 0,ci(Ve)),ln=on.next();!ln.done;ln=on.next())It+=ln.value}catch(ca){Q={error:ca}}finally{try{ln&&!ln.done&&(se=on.return)&&se.call(on)}finally{if(Q)throw Q.error}}It=R.getNextSet(It)}while("*"!==Xt);this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-1);var Ri,mn=0;try{for(var In=ci(Ve),jn=In.next();!jn.done;jn=In.next())mn+=jn.value}catch(ca){de={error:ca}}finally{try{jn&&!jn.done&&(Ee=In.return)&&Ee.call(In)}finally{if(de)throw de.error}}if(It!==Jt&&2*(It-Lr-mn)<mn)throw new X;if(this.usingCheckDigit){for(var Xn=this.decodeRowResult.length-1,mi=0,fs=0;fs<Xn;fs++)mi+=c.ALPHABET_STRING.indexOf(this.decodeRowResult.charAt(fs));if(this.decodeRowResult.charAt(Xn)!==c.ALPHABET_STRING.charAt(mi%43))throw new K;this.decodeRowResult=this.decodeRowResult.substring(0,Xn)}if(0===this.decodeRowResult.length)throw new X;Ri=this.extendedMode?c.decodeExtended(this.decodeRowResult):this.decodeRowResult;var ws=Lr+mn/2;return new Fe(Ri,null,0,[new Tn((mt[1]+mt[0])/2,m),new Tn(ws,m)],St.CODE_39,(new Date).getTime())},c.findAsteriskPattern=function(m,R){for(var Z=m.getSize(),Q=m.getNextSet(0),se=0,de=Q,Ee=!1,Ve=R.length,mt=Q;mt<Z;mt++)if(m.get(mt)!==Ee)R[se]++;else{if(se===Ve-1){if(this.toNarrowWidePattern(R)===c.ASTERISK_ENCODING&&m.isRange(Math.max(0,de-Math.floor((mt-de)/2)),de,!1))return[de,mt];de+=R[0]+R[1],R.copyWithin(0,2,2+se-1),R[se-1]=0,R[se]=0,se--}else se++;R[se]=1,Ee=!Ee}throw new X},c.toNarrowWidePattern=function(m){var R,Z,de,Q=m.length,se=0;do{var Ee=2147483647;try{for(var Ve=(R=void 0,ci(m)),mt=Ve.next();!mt.done;mt=Ve.next())(It=mt.value)<Ee&&It>se&&(Ee=It)}catch(Yr){R={error:Yr}}finally{try{mt&&!mt.done&&(Z=Ve.return)&&Z.call(Ve)}finally{if(R)throw R.error}}se=Ee,de=0;for(var Jt=0,Xt=0,Lr=0;Lr<Q;Lr++)(It=m[Lr])>se&&(Xt|=1<<Q-1-Lr,de++,Jt+=It);if(3===de){for(Lr=0;Lr<Q&&de>0;Lr++){var It;if((It=m[Lr])>se&&(de--,2*It>=Jt))return-1}return Xt}}while(de>3);return-1},c.patternToChar=function(m){for(var R=0;R<c.CHARACTER_ENCODINGS.length;R++)if(c.CHARACTER_ENCODINGS[R]===m)return c.ALPHABET_STRING.charAt(R);if(m===c.ASTERISK_ENCODING)return"*";throw new X},c.decodeExtended=function(m){for(var R=m.length,Z="",Q=0;Q<R;Q++){var se=m.charAt(Q);if("+"===se||"$"===se||"%"===se||"/"===se){var de=m.charAt(Q+1),Ee="\0";switch(se){case"+":if(!(de>="A"&&de<="Z"))throw new Be;Ee=String.fromCharCode(de.charCodeAt(0)+32);break;case"$":if(!(de>="A"&&de<="Z"))throw new Be;Ee=String.fromCharCode(de.charCodeAt(0)-64);break;case"%":if(de>="A"&&de<="E")Ee=String.fromCharCode(de.charCodeAt(0)-38);else if(de>="F"&&de<="J")Ee=String.fromCharCode(de.charCodeAt(0)-11);else if(de>="K"&&de<="O")Ee=String.fromCharCode(de.charCodeAt(0)+16);else if(de>="P"&&de<="T")Ee=String.fromCharCode(de.charCodeAt(0)+43);else if("U"===de)Ee="\0";else if("V"===de)Ee="@";else if("W"===de)Ee="`";else{if("X"!==de&&"Y"!==de&&"Z"!==de)throw new Be;Ee="\x7f"}break;case"/":if(de>="A"&&de<="O")Ee=String.fromCharCode(de.charCodeAt(0)-32);else{if("Z"!==de)throw new Be;Ee=":"}}Z+=Ee,Q++}else Z+=se}return Z},c.ALPHABET_STRING="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%",c.CHARACTER_ENCODINGS=[52,289,97,352,49,304,112,37,292,100,265,73,328,25,280,88,13,268,76,28,259,67,322,19,274,82,7,262,70,22,385,193,448,145,400,208,133,388,196,168,162,138,42],c.ASTERISK_ENCODING=148,c}(yn);const _r=lr;var yr=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),dn=function(I){function c(){var m=null!==I&&I.apply(this,arguments)||this;return m.narrowLineWidth=-1,m}return yr(c,I),c.prototype.decodeRow=function(m,R,Z){var Q,se,de=this.decodeStart(R),Ee=this.decodeEnd(R),Ve=new Dt;c.decodeMiddle(R,de[1],Ee[0],Ve);var mt=Ve.toString(),It=null;null!=Z&&(It=Z.get(At.ALLOWED_LENGTHS)),null==It&&(It=c.DEFAULT_ALLOWED_LENGTHS);var Jt=mt.length,Xt=!1,Lr=0;try{for(var Yr=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")}(It),on=Yr.next();!on.done;on=Yr.next()){var ln=on.value;if(Jt===ln){Xt=!0;break}ln>Lr&&(Lr=ln)}}catch(In){Q={error:In}}finally{try{on&&!on.done&&(se=Yr.return)&&se.call(Yr)}finally{if(Q)throw Q.error}}if(!Xt&&Jt>Lr&&(Xt=!0),!Xt)throw new Be;var en=[new Tn(de[1],m),new Tn(Ee[0],m)];return new Fe(mt,null,0,en,St.ITF,(new Date).getTime())},c.decodeMiddle=function(m,R,Z,Q){var se=new Int32Array(10),de=new Int32Array(5),Ee=new Int32Array(5);for(se.fill(0),de.fill(0),Ee.fill(0);R<Z;){yn.recordPattern(m,R,se);for(var Ve=0;Ve<5;Ve++){var mt=2*Ve;de[Ve]=se[mt],Ee[Ve]=se[mt+1]}var It=c.decodeDigit(de);Q.append(It.toString()),It=this.decodeDigit(Ee),Q.append(It.toString()),se.forEach(function(Jt){R+=Jt})}},c.prototype.decodeStart=function(m){var R=c.skipWhiteSpace(m),Z=c.findGuardPattern(m,R,c.START_PATTERN);return this.narrowLineWidth=(Z[1]-Z[0])/4,this.validateQuietZone(m,Z[0]),Z},c.prototype.validateQuietZone=function(m,R){var Z=10*this.narrowLineWidth;Z=Z<R?Z:R;for(var Q=R-1;Z>0&&Q>=0&&!m.get(Q);Q--)Z--;if(0!==Z)throw new X},c.skipWhiteSpace=function(m){var R=m.getSize(),Z=m.getNextSet(0);if(Z===R)throw new X;return Z},c.prototype.decodeEnd=function(m){m.reverse();try{var R=c.skipWhiteSpace(m),Z=void 0;try{Z=c.findGuardPattern(m,R,c.END_PATTERN_REVERSED[0])}catch(se){se instanceof X&&(Z=c.findGuardPattern(m,R,c.END_PATTERN_REVERSED[1]))}this.validateQuietZone(m,Z[0]);var Q=Z[0];return Z[0]=m.getSize()-Z[1],Z[1]=m.getSize()-Q,Z}finally{m.reverse()}},c.findGuardPattern=function(m,R,Z){var Q=Z.length,se=new Int32Array(Q),de=m.getSize(),Ee=!1,Ve=0,mt=R;se.fill(0);for(var It=R;It<de;It++)if(m.get(It)!==Ee)se[Ve]++;else{if(Ve===Q-1){if(yn.patternMatchVariance(se,Z,c.MAX_INDIVIDUAL_VARIANCE)<c.MAX_AVG_VARIANCE)return[mt,It];mt+=se[0]+se[1],s.arraycopy(se,2,se,0,Ve-1),se[Ve-1]=0,se[Ve]=0,Ve--}else Ve++;se[Ve]=1,Ee=!Ee}throw new X},c.decodeDigit=function(m){for(var R=c.MAX_AVG_VARIANCE,Z=-1,Q=c.PATTERNS.length,se=0;se<Q;se++){var Ee=yn.patternMatchVariance(m,c.PATTERNS[se],c.MAX_INDIVIDUAL_VARIANCE);Ee<R?(R=Ee,Z=se):Ee===R&&(Z=-1)}if(Z>=0)return Z%10;throw new X},c.PATTERNS=[Int32Array.from([1,1,2,2,1]),Int32Array.from([2,1,1,1,2]),Int32Array.from([1,2,1,1,2]),Int32Array.from([2,2,1,1,1]),Int32Array.from([1,1,2,1,2]),Int32Array.from([2,1,2,1,1]),Int32Array.from([1,2,2,1,1]),Int32Array.from([1,1,1,2,2]),Int32Array.from([2,1,1,2,1]),Int32Array.from([1,2,1,2,1]),Int32Array.from([1,1,3,3,1]),Int32Array.from([3,1,1,1,3]),Int32Array.from([1,3,1,1,3]),Int32Array.from([3,3,1,1,1]),Int32Array.from([1,1,3,1,3]),Int32Array.from([3,1,3,1,1]),Int32Array.from([1,3,3,1,1]),Int32Array.from([1,1,1,3,3]),Int32Array.from([3,1,1,3,1]),Int32Array.from([1,3,1,3,1])],c.MAX_AVG_VARIANCE=.38,c.MAX_INDIVIDUAL_VARIANCE=.5,c.DEFAULT_ALLOWED_LENGTHS=[6,8,10,12,14],c.START_PATTERN=Int32Array.from([1,1,1,1]),c.END_PATTERN_REVERSED=[Int32Array.from([1,1,2]),Int32Array.from([1,1,3])],c}(yn);const bn=dn;var Un=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),Fn=function(I){function c(){var m=null!==I&&I.apply(this,arguments)||this;return m.decodeRowStringBuffer="",m}return Un(c,I),c.findStartGuardPattern=function(m){for(var Z,R=!1,Q=0,se=Int32Array.from([0,0,0]);!R;){se=Int32Array.from([0,0,0]);var de=(Z=c.findGuardPattern(m,Q,!1,this.START_END_PATTERN,se))[0],Ee=de-((Q=Z[1])-de);Ee>=0&&(R=m.isRange(Ee,de,!1))}return Z},c.checkChecksum=function(m){return c.checkStandardUPCEANChecksum(m)},c.checkStandardUPCEANChecksum=function(m){var R=m.length;if(0===R)return!1;var Z=parseInt(m.charAt(R-1),10);return c.getStandardUPCEANChecksum(m.substring(0,R-1))===Z},c.getStandardUPCEANChecksum=function(m){for(var R=m.length,Z=0,Q=R-1;Q>=0;Q-=2){if((se=m.charAt(Q).charCodeAt(0)-"0".charCodeAt(0))<0||se>9)throw new Be;Z+=se}for(Z*=3,Q=R-2;Q>=0;Q-=2){var se;if((se=m.charAt(Q).charCodeAt(0)-"0".charCodeAt(0))<0||se>9)throw new Be;Z+=se}return(1e3-Z)%10},c.decodeEnd=function(m,R){return c.findGuardPattern(m,R,!1,c.START_END_PATTERN,new Int32Array(c.START_END_PATTERN.length).fill(0))},c.findGuardPatternWithoutCounters=function(m,R,Z,Q){return this.findGuardPattern(m,R,Z,Q,new Int32Array(Q.length))},c.findGuardPattern=function(m,R,Z,Q,se){for(var de=m.getSize(),Ee=0,Ve=R=Z?m.getNextUnset(R):m.getNextSet(R),mt=Q.length,It=Z,Jt=R;Jt<de;Jt++)if(m.get(Jt)!==It)se[Ee]++;else{if(Ee===mt-1){if(yn.patternMatchVariance(se,Q,c.MAX_INDIVIDUAL_VARIANCE)<c.MAX_AVG_VARIANCE)return Int32Array.from([Ve,Jt]);Ve+=se[0]+se[1];for(var Xt=se.slice(2,se.length-1),Lr=0;Lr<Ee-1;Lr++)se[Lr]=Xt[Lr];se[Ee-1]=0,se[Ee]=0,Ee--}else Ee++;se[Ee]=1,It=!It}throw new X},c.decodeDigit=function(m,R,Z,Q){this.recordPattern(m,Z,R);for(var se=this.MAX_AVG_VARIANCE,de=-1,Ee=Q.length,Ve=0;Ve<Ee;Ve++){var It=yn.patternMatchVariance(R,Q[Ve],c.MAX_INDIVIDUAL_VARIANCE);It<se&&(se=It,de=Ve)}if(de>=0)return de;throw new X},c.MAX_AVG_VARIANCE=.48,c.MAX_INDIVIDUAL_VARIANCE=.7,c.START_END_PATTERN=Int32Array.from([1,1,1]),c.MIDDLE_PATTERN=Int32Array.from([1,1,1,1,1]),c.END_PATTERN=Int32Array.from([1,1,1,1,1,1]),c.L_PATTERNS=[Int32Array.from([3,2,1,1]),Int32Array.from([2,2,2,1]),Int32Array.from([2,1,2,2]),Int32Array.from([1,4,1,1]),Int32Array.from([1,1,3,2]),Int32Array.from([1,2,3,1]),Int32Array.from([1,1,1,4]),Int32Array.from([1,3,1,2]),Int32Array.from([1,2,1,3]),Int32Array.from([3,1,1,2])],c}(yn);const Vn=Fn;var zn=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")},ai=function(){function I(){this.CHECK_DIGIT_ENCODINGS=[24,20,18,17,12,6,3,10,9,5],this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}return I.prototype.decodeRow=function(c,m,R){var Z=this.decodeRowStringBuffer,Q=this.decodeMiddle(m,R,Z),se=Z.toString(),de=I.parseExtensionString(se),Ee=[new Tn((R[0]+R[1])/2,c),new Tn(Q,c)],Ve=new Fe(se,null,0,Ee,St.UPC_EAN_EXTENSION,(new Date).getTime());return null!=de&&Ve.putAllMetadata(de),Ve},I.prototype.decodeMiddle=function(c,m,R){var Z,Q,se=this.decodeMiddleCounters;se[0]=0,se[1]=0,se[2]=0,se[3]=0;for(var de=c.getSize(),Ee=m[1],Ve=0,mt=0;mt<5&&Ee<de;mt++){var It=Vn.decodeDigit(c,se,Ee,Vn.L_AND_G_PATTERNS);R+=String.fromCharCode("0".charCodeAt(0)+It%10);try{for(var Jt=(Z=void 0,zn(se)),Xt=Jt.next();!Xt.done;Xt=Jt.next())Ee+=Xt.value}catch(on){Z={error:on}}finally{try{Xt&&!Xt.done&&(Q=Jt.return)&&Q.call(Jt)}finally{if(Z)throw Z.error}}It>=10&&(Ve|=1<<4-mt),4!==mt&&(Ee=c.getNextSet(Ee),Ee=c.getNextUnset(Ee))}if(5!==R.length)throw new X;var Yr=this.determineCheckDigit(Ve);if(I.extensionChecksum(R.toString())!==Yr)throw new X;return Ee},I.extensionChecksum=function(c){for(var m=c.length,R=0,Z=m-2;Z>=0;Z-=2)R+=c.charAt(Z).charCodeAt(0)-"0".charCodeAt(0);for(R*=3,Z=m-1;Z>=0;Z-=2)R+=c.charAt(Z).charCodeAt(0)-"0".charCodeAt(0);return(R*=3)%10},I.prototype.determineCheckDigit=function(c){for(var m=0;m<10;m++)if(c===this.CHECK_DIGIT_ENCODINGS[m])return m;throw new X},I.parseExtensionString=function(c){if(5!==c.length)return null;var m=I.parseExtension5String(c);return null==m?null:new Map([[ke.SUGGESTED_PRICE,m]])},I.parseExtension5String=function(c){var m;switch(c.charAt(0)){case"0":m="\xa3";break;case"5":m="$";break;case"9":switch(c){case"90000":return null;case"99991":return"0.00";case"99990":return"Used"}m="";break;default:m=""}var R=parseInt(c.substring(1)),Q=R%100;return m+(R/100).toString()+"."+(Q<10?"0"+Q:Q.toString())},I}();const _i=ai;var wi=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")},Wn=function(){function I(){this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}return I.prototype.decodeRow=function(c,m,R){var Z=this.decodeRowStringBuffer,Q=this.decodeMiddle(m,R,Z),se=Z.toString(),de=I.parseExtensionString(se),Ee=[new Tn((R[0]+R[1])/2,c),new Tn(Q,c)],Ve=new Fe(se,null,0,Ee,St.UPC_EAN_EXTENSION,(new Date).getTime());return null!=de&&Ve.putAllMetadata(de),Ve},I.prototype.decodeMiddle=function(c,m,R){var Z,Q,se=this.decodeMiddleCounters;se[0]=0,se[1]=0,se[2]=0,se[3]=0;for(var de=c.getSize(),Ee=m[1],Ve=0,mt=0;mt<2&&Ee<de;mt++){var It=Vn.decodeDigit(c,se,Ee,Vn.L_AND_G_PATTERNS);R+=String.fromCharCode("0".charCodeAt(0)+It%10);try{for(var Jt=(Z=void 0,wi(se)),Xt=Jt.next();!Xt.done;Xt=Jt.next())Ee+=Xt.value}catch(Yr){Z={error:Yr}}finally{try{Xt&&!Xt.done&&(Q=Jt.return)&&Q.call(Jt)}finally{if(Z)throw Z.error}}It>=10&&(Ve|=1<<1-mt),1!==mt&&(Ee=c.getNextSet(Ee),Ee=c.getNextUnset(Ee))}if(2!==R.length)throw new X;if(parseInt(R.toString())%4!==Ve)throw new X;return Ee},I.parseExtensionString=function(c){return 2!==c.length?null:new Map([[ke.ISSUE_NUMBER,parseInt(c)]])},I}();const $r=Wn;var Pn=function(){function I(){}return I.decodeRow=function(c,m,R){var Z=Vn.findGuardPattern(m,R,!1,this.EXTENSION_START_PATTERN,new Int32Array(this.EXTENSION_START_PATTERN.length).fill(0));try{return(new _i).decodeRow(c,m,Z)}catch{return(new $r).decodeRow(c,m,Z)}},I.EXTENSION_START_PATTERN=Int32Array.from([1,1,2]),I}();const An=Pn;var Qn=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),yi=function(I){function c(){var m=I.call(this)||this;m.decodeRowStringBuffer="",c.L_AND_G_PATTERNS=c.L_PATTERNS.map(function(de){return Int32Array.from(de)});for(var R=10;R<20;R++){for(var Z=c.L_PATTERNS[R-10],Q=new Int32Array(Z.length),se=0;se<Z.length;se++)Q[se]=Z[Z.length-se-1];c.L_AND_G_PATTERNS[R]=Q}return m}return Qn(c,I),c.prototype.decodeRow=function(m,R,Z){var Q=c.findStartGuardPattern(R),se=null==Z?null:Z.get(At.NEED_RESULT_POINT_CALLBACK);if(null!=se){var de=new Tn((Q[0]+Q[1])/2,m);se.foundPossibleResultPoint(de)}var Ee=this.decodeMiddle(R,Q,this.decodeRowStringBuffer),Ve=Ee.rowOffset,mt=Ee.resultString;if(null!=se){var It=new Tn(Ve,m);se.foundPossibleResultPoint(It)}var Jt=c.decodeEnd(R,Ve);if(null!=se){var Xt=new Tn((Jt[0]+Jt[1])/2,m);se.foundPossibleResultPoint(Xt)}var Lr=Jt[1],Yr=Lr+(Lr-Jt[0]);if(Yr>=R.getSize()||!R.isRange(Lr,Yr,!1))throw new X;var on=mt.toString();if(on.length<8)throw new Be;if(!c.checkChecksum(on))throw new K;var ln=(Q[1]+Q[0])/2,en=(Jt[1]+Jt[0])/2,mn=this.getBarcodeFormat(),In=[new Tn(ln,m),new Tn(en,m)],jn=new Fe(on,null,0,In,mn,(new Date).getTime()),Zn=0;try{var Xn=An.decodeRow(m,R,Jt[1]);jn.putMetadata(ke.UPC_EAN_EXTENSION,Xn.getText()),jn.putAllMetadata(Xn.getResultMetadata()),jn.addResultPoints(Xn.getResultPoints()),Zn=Xn.getText().length}catch{}var mi=null==Z?null:Z.get(At.ALLOWED_EAN_EXTENSIONS);if(null!=mi){var fs=!1;for(var Ri in mi)if(Zn.toString()===Ri){fs=!0;break}if(!fs)throw new X}return jn},c.checkChecksum=function(m){return c.checkStandardUPCEANChecksum(m)},c.checkStandardUPCEANChecksum=function(m){var R=m.length;if(0===R)return!1;var Z=parseInt(m.charAt(R-1),10);return c.getStandardUPCEANChecksum(m.substring(0,R-1))===Z},c.getStandardUPCEANChecksum=function(m){for(var R=m.length,Z=0,Q=R-1;Q>=0;Q-=2){if((se=m.charAt(Q).charCodeAt(0)-"0".charCodeAt(0))<0||se>9)throw new Be;Z+=se}for(Z*=3,Q=R-2;Q>=0;Q-=2){var se;if((se=m.charAt(Q).charCodeAt(0)-"0".charCodeAt(0))<0||se>9)throw new Be;Z+=se}return(1e3-Z)%10},c.decodeEnd=function(m,R){return c.findGuardPattern(m,R,!1,c.START_END_PATTERN,new Int32Array(c.START_END_PATTERN.length).fill(0))},c}(Vn);const oi=yi;var di=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),Qi=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")},Di=function(I){function c(){var m=I.call(this)||this;return m.decodeMiddleCounters=Int32Array.from([0,0,0,0]),m}return di(c,I),c.prototype.decodeMiddle=function(m,R,Z){var Q,se,de,Ee,Ve=this.decodeMiddleCounters;Ve[0]=0,Ve[1]=0,Ve[2]=0,Ve[3]=0;for(var mt=m.getSize(),It=R[1],Jt=0,Xt=0;Xt<6&&It<mt;Xt++){var Lr=oi.decodeDigit(m,Ve,It,oi.L_AND_G_PATTERNS);Z+=String.fromCharCode("0".charCodeAt(0)+Lr%10);try{for(var Yr=(Q=void 0,Qi(Ve)),on=Yr.next();!on.done;on=Yr.next())It+=on.value}catch(jn){Q={error:jn}}finally{try{on&&!on.done&&(se=Yr.return)&&se.call(Yr)}finally{if(Q)throw Q.error}}Lr>=10&&(Jt|=1<<5-Xt)}for(Z=c.determineFirstDigit(Z,Jt),It=oi.findGuardPattern(m,It,!0,oi.MIDDLE_PATTERN,new Int32Array(oi.MIDDLE_PATTERN.length).fill(0))[1],Xt=0;Xt<6&&It<mt;Xt++){Lr=oi.decodeDigit(m,Ve,It,oi.L_PATTERNS),Z+=String.fromCharCode("0".charCodeAt(0)+Lr);try{for(var mn=(de=void 0,Qi(Ve)),In=mn.next();!In.done;In=mn.next())It+=In.value}catch(Xn){de={error:Xn}}finally{try{In&&!In.done&&(Ee=mn.return)&&Ee.call(mn)}finally{if(de)throw de.error}}}return{rowOffset:It,resultString:Z}},c.prototype.getBarcodeFormat=function(){return St.EAN_13},c.determineFirstDigit=function(m,R){for(var Z=0;Z<10;Z++)if(R===this.FIRST_DIGIT_ENCODINGS[Z])return String.fromCharCode("0".charCodeAt(0)+Z)+m;throw new X},c.FIRST_DIGIT_ENCODINGS=[0,11,13,14,19,25,28,21,22,26],c}(oi);const ts=Di;var Oi=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),hs=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")},Fi=function(I){function c(){var m=I.call(this)||this;return m.decodeMiddleCounters=Int32Array.from([0,0,0,0]),m}return Oi(c,I),c.prototype.decodeMiddle=function(m,R,Z){var Q,se,de,Ee,Ve=this.decodeMiddleCounters;Ve[0]=0,Ve[1]=0,Ve[2]=0,Ve[3]=0;for(var mt=m.getSize(),It=R[1],Jt=0;Jt<4&&It<mt;Jt++){var Xt=oi.decodeDigit(m,Ve,It,oi.L_PATTERNS);Z+=String.fromCharCode("0".charCodeAt(0)+Xt);try{for(var Lr=(Q=void 0,hs(Ve)),Yr=Lr.next();!Yr.done;Yr=Lr.next())It+=Yr.value}catch(In){Q={error:In}}finally{try{Yr&&!Yr.done&&(se=Lr.return)&&se.call(Lr)}finally{if(Q)throw Q.error}}}for(It=oi.findGuardPattern(m,It,!0,oi.MIDDLE_PATTERN,new Int32Array(oi.MIDDLE_PATTERN.length).fill(0))[1],Jt=0;Jt<4&&It<mt;Jt++){Xt=oi.decodeDigit(m,Ve,It,oi.L_PATTERNS),Z+=String.fromCharCode("0".charCodeAt(0)+Xt);try{for(var en=(de=void 0,hs(Ve)),mn=en.next();!mn.done;mn=en.next())It+=mn.value}catch(Zn){de={error:Zn}}finally{try{mn&&!mn.done&&(Ee=en.return)&&Ee.call(en)}finally{if(de)throw de.error}}}return{rowOffset:It,resultString:Z}},c.prototype.getBarcodeFormat=function(){return St.EAN_8},c}(oi);const Os=Fi;var ys=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),rs=function(I){function c(){var m=null!==I&&I.apply(this,arguments)||this;return m.ean13Reader=new ts,m}return ys(c,I),c.prototype.getBarcodeFormat=function(){return St.UPC_A},c.prototype.decode=function(m,R){return this.maybeReturnResult(this.ean13Reader.decode(m))},c.prototype.decodeRow=function(m,R,Z){return this.maybeReturnResult(this.ean13Reader.decodeRow(m,R,Z))},c.prototype.decodeMiddle=function(m,R,Z){return this.ean13Reader.decodeMiddle(m,R,Z)},c.prototype.maybeReturnResult=function(m){var R=m.getText();if("0"===R.charAt(0)){var Z=new Fe(R.substring(1),null,null,m.getResultPoints(),St.UPC_A);return null!=m.getResultMetadata()&&Z.putAllMetadata(m.getResultMetadata()),Z}throw new X},c.prototype.reset=function(){this.ean13Reader.reset()},c}(oi);const fa=rs;var $s=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),Zs=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")},ps=function(I){function c(){var m=I.call(this)||this;return m.decodeMiddleCounters=new Int32Array(4),m}return $s(c,I),c.prototype.decodeMiddle=function(m,R,Z){var Q,se,de=this.decodeMiddleCounters.map(function(on){return on});de[0]=0,de[1]=0,de[2]=0,de[3]=0;for(var Ee=m.getSize(),Ve=R[1],mt=0,It=0;It<6&&Ve<Ee;It++){var Jt=c.decodeDigit(m,de,Ve,c.L_AND_G_PATTERNS);Z+=String.fromCharCode("0".charCodeAt(0)+Jt%10);try{for(var Xt=(Q=void 0,Zs(de)),Lr=Xt.next();!Lr.done;Lr=Xt.next())Ve+=Lr.value}catch(on){Q={error:on}}finally{try{Lr&&!Lr.done&&(se=Xt.return)&&se.call(Xt)}finally{if(Q)throw Q.error}}Jt>=10&&(mt|=1<<5-It)}return c.determineNumSysAndCheckDigit(new Dt(Z),mt),Ve},c.prototype.decodeEnd=function(m,R){return c.findGuardPatternWithoutCounters(m,R,!0,c.MIDDLE_END_PATTERN)},c.prototype.checkChecksum=function(m){return oi.checkChecksum(c.convertUPCEtoUPCA(m))},c.determineNumSysAndCheckDigit=function(m,R){for(var Z=0;Z<=1;Z++)for(var Q=0;Q<10;Q++)if(R===this.NUMSYS_AND_CHECK_DIGIT_PATTERNS[Z][Q])return m.insert(0,"0"+Z),void m.append("0"+Q);throw X.getNotFoundInstance()},c.prototype.getBarcodeFormat=function(){return St.UPC_E},c.convertUPCEtoUPCA=function(m){var R=m.slice(1,7).split("").map(function(se){return se.charCodeAt(0)}),Z=new Dt;Z.append(m.charAt(0));var Q=R[5];switch(Q){case 0:case 1:case 2:Z.appendChars(R,0,2),Z.append(Q),Z.append("0000"),Z.appendChars(R,2,3);break;case 3:Z.appendChars(R,0,3),Z.append("00000"),Z.appendChars(R,3,2);break;case 4:Z.appendChars(R,0,4),Z.append("00000"),Z.append(R[4]);break;default:Z.appendChars(R,0,5),Z.append("0000"),Z.append(Q)}return m.length>=8&&Z.append(m.charAt(7)),Z.toString()},c.MIDDLE_END_PATTERN=Int32Array.from([1,1,1,1,1,1]),c.NUMSYS_AND_CHECK_DIGIT_PATTERNS=[Int32Array.from([56,52,50,49,44,38,35,42,41,37]),Int32Array.from([7,11,13,14,19,25,28,21,22,1])],c}(oi);const Ta=ps;var ka=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),Xs=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")},ks=function(I){function c(m){var R=I.call(this)||this,Z=null==m?null:m.get(At.POSSIBLE_FORMATS),Q=[];return null!=Z&&(Z.indexOf(St.EAN_13)>-1&&Q.push(new ts),Z.indexOf(St.UPC_A)>-1&&Q.push(new fa),Z.indexOf(St.EAN_8)>-1&&Q.push(new Os),Z.indexOf(St.UPC_E)>-1&&Q.push(new Ta)),0===Q.length&&(Q.push(new ts),Q.push(new fa),Q.push(new Os),Q.push(new Ta)),R.readers=Q,R}return ka(c,I),c.prototype.decodeRow=function(m,R,Z){var Q,se;try{for(var de=Xs(this.readers),Ee=de.next();!Ee.done;Ee=de.next()){var Ve=Ee.value;try{var mt=Ve.decodeRow(m,R,Z),It=mt.getBarcodeFormat()===St.EAN_13&&"0"===mt.getText().charAt(0),Jt=null==Z?null:Z.get(At.POSSIBLE_FORMATS),Xt=null==Jt||Jt.includes(St.UPC_A);if(It&&Xt){var Lr=mt.getRawBytes(),Yr=new Fe(mt.getText().substring(1),Lr,Lr?Lr.length:null,mt.getResultPoints(),St.UPC_A);return Yr.putAllMetadata(mt.getResultMetadata()),Yr}return mt}catch{}}}catch(on){Q={error:on}}finally{try{Ee&&!Ee.done&&(se=de.return)&&se.call(de)}finally{if(Q)throw Q.error}}throw new X},c.prototype.reset=function(){var m,R;try{for(var Z=Xs(this.readers),Q=Z.next();!Q.done;Q=Z.next())Q.value.reset()}catch(de){m={error:de}}finally{try{Q&&!Q.done&&(R=Z.return)&&R.call(Z)}finally{if(m)throw m.error}}},c}(yn);const ia=ks;var Qa=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),Ma=function(I){function c(){var m=I.call(this)||this;return m.decodeFinderCounters=new Int32Array(4),m.dataCharacterCounters=new Int32Array(8),m.oddRoundingErrors=new Array(4),m.evenRoundingErrors=new Array(4),m.oddCounts=new Array(m.dataCharacterCounters.length/2),m.evenCounts=new Array(m.dataCharacterCounters.length/2),m}return Qa(c,I),c.prototype.getDecodeFinderCounters=function(){return this.decodeFinderCounters},c.prototype.getDataCharacterCounters=function(){return this.dataCharacterCounters},c.prototype.getOddRoundingErrors=function(){return this.oddRoundingErrors},c.prototype.getEvenRoundingErrors=function(){return this.evenRoundingErrors},c.prototype.getOddCounts=function(){return this.oddCounts},c.prototype.getEvenCounts=function(){return this.evenCounts},c.prototype.parseFinderValue=function(m,R){for(var Z=0;Z<R.length;Z++)if(yn.patternMatchVariance(m,R[Z],c.MAX_INDIVIDUAL_VARIANCE)<c.MAX_AVG_VARIANCE)return Z;throw new X},c.count=function(m){return Nr.sum(new Int32Array(m))},c.increment=function(m,R){for(var Z=0,Q=R[0],se=1;se<m.length;se++)R[se]>Q&&(Q=R[se],Z=se);m[Z]++},c.decrement=function(m,R){for(var Z=0,Q=R[0],se=1;se<m.length;se++)R[se]<Q&&(Q=R[se],Z=se);m[Z]--},c.isFinderPattern=function(m){var R,Z,Q=m[0]+m[1],de=Q/(Q+m[2]+m[3]);if(de>=c.MIN_FINDER_PATTERN_RATIO&&de<=c.MAX_FINDER_PATTERN_RATIO){var Ee=Number.MAX_SAFE_INTEGER,Ve=Number.MIN_SAFE_INTEGER;try{for(var mt=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")}(m),It=mt.next();!It.done;It=mt.next()){var Jt=It.value;Jt>Ve&&(Ve=Jt),Jt<Ee&&(Ee=Jt)}}catch(Xt){R={error:Xt}}finally{try{It&&!It.done&&(Z=mt.return)&&Z.call(mt)}finally{if(R)throw R.error}}return Ve<10*Ee}return!1},c.MAX_AVG_VARIANCE=.2,c.MAX_INDIVIDUAL_VARIANCE=.45,c.MIN_FINDER_PATTERN_RATIO=9.5/12,c.MAX_FINDER_PATTERN_RATIO=12.5/14,c}(yn);const qt=Ma;var jt=function(){function I(c,m){this.value=c,this.checksumPortion=m}return I.prototype.getValue=function(){return this.value},I.prototype.getChecksumPortion=function(){return this.checksumPortion},I.prototype.toString=function(){return this.value+"("+this.checksumPortion+")"},I.prototype.equals=function(c){return c instanceof I&&(this.value===c.value&&this.checksumPortion===c.checksumPortion)},I.prototype.hashCode=function(){return this.value^this.checksumPortion},I}();const Mt=jt;var Mr=function(){function I(c,m,R,Z,Q){this.value=c,this.startEnd=m,this.value=c,this.startEnd=m,this.resultPoints=new Array,this.resultPoints.push(new Tn(R,Q)),this.resultPoints.push(new Tn(Z,Q))}return I.prototype.getValue=function(){return this.value},I.prototype.getStartEnd=function(){return this.startEnd},I.prototype.getResultPoints=function(){return this.resultPoints},I.prototype.equals=function(c){return c instanceof I&&this.value===c.value},I.prototype.hashCode=function(){return this.value},I}();const Mn=Mr;var ss=function(){function I(){}return I.getRSSvalue=function(c,m,R){var Z,Q,se=0;try{for(var de=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")}(c),Ee=de.next();!Ee.done;Ee=de.next())se+=Ee.value}catch(en){Z={error:en}}finally{try{Ee&&!Ee.done&&(Q=de.return)&&Q.call(de)}finally{if(Z)throw Z.error}}for(var mt=0,It=0,Jt=c.length,Xt=0;Xt<Jt-1;Xt++){var Lr=void 0;for(Lr=1,It|=1<<Xt;Lr<c[Xt];Lr++,It&=~(1<<Xt)){var Yr=I.combins(se-Lr-1,Jt-Xt-2);if(R&&0===It&&se-Lr-(Jt-Xt-1)>=Jt-Xt-1&&(Yr-=I.combins(se-Lr-(Jt-Xt),Jt-Xt-2)),Jt-Xt-1>1){for(var on=0,ln=se-Lr-(Jt-Xt-2);ln>m;ln--)on+=I.combins(se-Lr-ln-1,Jt-Xt-3);Yr-=on*(Jt-1-Xt)}else se-Lr>m&&Yr--;mt+=Yr}se-=Lr}return mt},I.combins=function(c,m){var R,Z;c-m>m?(Z=m,R=c-m):(Z=c-m,R=m);for(var Q=1,se=1,de=c;de>R;de--)Q*=de,se<=Z&&(Q/=se,se++);for(;se<=Z;)Q/=se,se++;return Q},I}();const Ki=ss;var zs=function(){function I(){}return I.buildBitArray=function(c){var m=2*c.length-1;null==c[c.length-1].getRightChar()&&(m-=1);for(var Z=new Qe(12*m),Q=0,de=c[0].getRightChar().getValue(),Ee=11;Ee>=0;--Ee)0!=(de&1<<Ee)&&Z.set(Q),Q++;for(Ee=1;Ee<c.length;++Ee){for(var Ve=c[Ee],mt=Ve.getLeftChar().getValue(),It=11;It>=0;--It)0!=(mt&1<<It)&&Z.set(Q),Q++;if(null!=Ve.getRightChar()){var Jt=Ve.getRightChar().getValue();for(It=11;It>=0;--It)0!=(Jt&1<<It)&&Z.set(Q),Q++}}return Z},I}();const Na=zs;var sa=function(){function I(c,m){m?this.decodedInformation=null:(this.finished=c,this.decodedInformation=m)}return I.prototype.getDecodedInformation=function(){return this.decodedInformation},I.prototype.isFinished=function(){return this.finished},I}();const xn=sa;var Hi=function(){function I(c){this.newPosition=c}return I.prototype.getNewPosition=function(){return this.newPosition},I}();const Xa=Hi;var rr=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),cn=function(I){function c(m,R){var Z=I.call(this,m)||this;return Z.value=R,Z}return rr(c,I),c.prototype.getValue=function(){return this.value},c.prototype.isFNC1=function(){return this.value===c.FNC1},c.FNC1="$",c}(Xa);const Qt=cn;var wr=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),On=function(I){function c(m,R,Z){var Q=I.call(this,m)||this;return Z?(Q.remaining=!0,Q.remainingValue=Q.remainingValue):(Q.remaining=!1,Q.remainingValue=0),Q.newString=R,Q}return wr(c,I),c.prototype.getNewString=function(){return this.newString},c.prototype.isRemaining=function(){return this.remaining},c.prototype.getRemainingValue=function(){return this.remainingValue},c}(Xa);const Ci=On;var Si=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),Cs=function(I){function c(m,R,Z){var Q=I.call(this,m)||this;if(R<0||R>10||Z<0||Z>10)throw new Be;return Q.firstDigit=R,Q.secondDigit=Z,Q}return Si(c,I),c.prototype.getFirstDigit=function(){return this.firstDigit},c.prototype.getSecondDigit=function(){return this.secondDigit},c.prototype.getValue=function(){return 10*this.firstDigit+this.secondDigit},c.prototype.isFirstDigitFNC1=function(){return this.firstDigit===c.FNC1},c.prototype.isSecondDigitFNC1=function(){return this.secondDigit===c.FNC1},c.prototype.isAnyFNC1=function(){return this.firstDigit===c.FNC1||this.secondDigit===c.FNC1},c.FNC1=10,c}(Xa);const Gi=Cs;var ha=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")},As=function(){function I(){}return I.parseFieldsInGeneralPurpose=function(c){var m,R,Z,Q,se,de,Ee,Ve;if(!c)return null;if(c.length<2)throw new X;var mt=c.substring(0,2);try{for(var It=ha(I.TWO_DIGIT_DATA_LENGTH),Jt=It.next();!Jt.done;Jt=It.next())if((Xt=Jt.value)[0]===mt)return Xt[1]===I.VARIABLE_LENGTH?I.processVariableAI(2,Xt[2],c):I.processFixedAI(2,Xt[1],c)}catch(Zn){m={error:Zn}}finally{try{Jt&&!Jt.done&&(R=It.return)&&R.call(It)}finally{if(m)throw m.error}}if(c.length<3)throw new X;var Lr=c.substring(0,3);try{for(var Yr=ha(I.THREE_DIGIT_DATA_LENGTH),on=Yr.next();!on.done;on=Yr.next())if((Xt=on.value)[0]===Lr)return Xt[1]===I.VARIABLE_LENGTH?I.processVariableAI(3,Xt[2],c):I.processFixedAI(3,Xt[1],c)}catch(Zn){Z={error:Zn}}finally{try{on&&!on.done&&(Q=Yr.return)&&Q.call(Yr)}finally{if(Z)throw Z.error}}try{for(var ln=ha(I.THREE_DIGIT_PLUS_DIGIT_DATA_LENGTH),en=ln.next();!en.done;en=ln.next())if((Xt=en.value)[0]===Lr)return Xt[1]===I.VARIABLE_LENGTH?I.processVariableAI(4,Xt[2],c):I.processFixedAI(4,Xt[1],c)}catch(Zn){se={error:Zn}}finally{try{en&&!en.done&&(de=ln.return)&&de.call(ln)}finally{if(se)throw se.error}}if(c.length<4)throw new X;var mn=c.substring(0,4);try{for(var In=ha(I.FOUR_DIGIT_DATA_LENGTH),jn=In.next();!jn.done;jn=In.next()){var Xt;if((Xt=jn.value)[0]===mn)return Xt[1]===I.VARIABLE_LENGTH?I.processVariableAI(4,Xt[2],c):I.processFixedAI(4,Xt[1],c)}}catch(Zn){Ee={error:Zn}}finally{try{jn&&!jn.done&&(Ve=In.return)&&Ve.call(In)}finally{if(Ee)throw Ee.error}}throw new X},I.processFixedAI=function(c,m,R){if(R.length<c)throw new X;var Z=R.substring(0,c);if(R.length<c+m)throw new X;var Q=R.substring(c,c+m),se=R.substring(c+m),de="("+Z+")"+Q,Ee=I.parseFieldsInGeneralPurpose(se);return null==Ee?de:de+Ee},I.processVariableAI=function(c,m,R){var Q,Z=R.substring(0,c),se=R.substring(c,Q=R.length<c+m?R.length:c+m),de=R.substring(Q),Ee="("+Z+")"+se,Ve=I.parseFieldsInGeneralPurpose(de);return null==Ve?Ee:Ee+Ve},I.TWO_DIGIT_DATA_LENGTH=[["00",18],["01",14],["02",14],["10",I.VARIABLE_LENGTH=[],20],["11",6],["12",6],["13",6],["15",6],["17",6],["20",2],["21",I.VARIABLE_LENGTH,20],["22",I.VARIABLE_LENGTH,29],["30",I.VARIABLE_LENGTH,8],["37",I.VARIABLE_LENGTH,8],["90",I.VARIABLE_LENGTH,30],["91",I.VARIABLE_LENGTH,30],["92",I.VARIABLE_LENGTH,30],["93",I.VARIABLE_LENGTH,30],["94",I.VARIABLE_LENGTH,30],["95",I.VARIABLE_LENGTH,30],["96",I.VARIABLE_LENGTH,30],["97",I.VARIABLE_LENGTH,3],["98",I.VARIABLE_LENGTH,30],["99",I.VARIABLE_LENGTH,30]],I.THREE_DIGIT_DATA_LENGTH=[["240",I.VARIABLE_LENGTH,30],["241",I.VARIABLE_LENGTH,30],["242",I.VARIABLE_LENGTH,6],["250",I.VARIABLE_LENGTH,30],["251",I.VARIABLE_LENGTH,30],["253",I.VARIABLE_LENGTH,17],["254",I.VARIABLE_LENGTH,20],["400",I.VARIABLE_LENGTH,30],["401",I.VARIABLE_LENGTH,30],["402",17],["403",I.VARIABLE_LENGTH,30],["410",13],["411",13],["412",13],["413",13],["414",13],["420",I.VARIABLE_LENGTH,20],["421",I.VARIABLE_LENGTH,15],["422",3],["423",I.VARIABLE_LENGTH,15],["424",3],["425",3],["426",3]],I.THREE_DIGIT_PLUS_DIGIT_DATA_LENGTH=[["310",6],["311",6],["312",6],["313",6],["314",6],["315",6],["316",6],["320",6],["321",6],["322",6],["323",6],["324",6],["325",6],["326",6],["327",6],["328",6],["329",6],["330",6],["331",6],["332",6],["333",6],["334",6],["335",6],["336",6],["340",6],["341",6],["342",6],["343",6],["344",6],["345",6],["346",6],["347",6],["348",6],["349",6],["350",6],["351",6],["352",6],["353",6],["354",6],["355",6],["356",6],["357",6],["360",6],["361",6],["362",6],["363",6],["364",6],["365",6],["366",6],["367",6],["368",6],["369",6],["390",I.VARIABLE_LENGTH,15],["391",I.VARIABLE_LENGTH,18],["392",I.VARIABLE_LENGTH,15],["393",I.VARIABLE_LENGTH,18],["703",I.VARIABLE_LENGTH,30]],I.FOUR_DIGIT_DATA_LENGTH=[["7001",13],["7002",I.VARIABLE_LENGTH,30],["7003",10],["8001",14],["8002",I.VARIABLE_LENGTH,20],["8003",I.VARIABLE_LENGTH,30],["8004",I.VARIABLE_LENGTH,30],["8005",6],["8006",18],["8007",I.VARIABLE_LENGTH,30],["8008",I.VARIABLE_LENGTH,12],["8018",18],["8020",I.VARIABLE_LENGTH,25],["8100",6],["8101",10],["8102",2],["8110",I.VARIABLE_LENGTH,70],["8200",I.VARIABLE_LENGTH,70]],I}();const ao=As;var pa=function(){function I(c){this.buffer=new Dt,this.information=c}return I.prototype.decodeAllCodes=function(c,m){for(var R=m,Z=null;;){var Q=this.decodeGeneralPurposeField(R,Z),se=ao.parseFieldsInGeneralPurpose(Q.getNewString());if(null!=se&&c.append(se),Z=Q.isRemaining()?""+Q.getRemainingValue():null,R===Q.getNewPosition())break;R=Q.getNewPosition()}return c.toString()},I.prototype.isStillNumeric=function(c){if(c+7>this.information.getSize())return c+4<=this.information.getSize();for(var m=c;m<c+3;++m)if(this.information.get(m))return!0;return this.information.get(c+3)},I.prototype.decodeNumeric=function(c){if(c+7>this.information.getSize()){var m=this.extractNumericValueFromBitArray(c,4);return new Gi(this.information.getSize(),0===m?Gi.FNC1:m-1,Gi.FNC1)}var R=this.extractNumericValueFromBitArray(c,7);return new Gi(c+7,(R-8)/11,(R-8)%11)},I.prototype.extractNumericValueFromBitArray=function(c,m){return I.extractNumericValueFromBitArray(this.information,c,m)},I.extractNumericValueFromBitArray=function(c,m,R){for(var Z=0,Q=0;Q<R;++Q)c.get(m+Q)&&(Z|=1<<R-Q-1);return Z},I.prototype.decodeGeneralPurposeField=function(c,m){this.buffer.setLengthToZero(),null!=m&&this.buffer.append(m),this.current.setPosition(c);var R=this.parseBlocks();return null!=R&&R.isRemaining()?new Ci(this.current.getPosition(),this.buffer.toString(),R.getRemainingValue()):new Ci(this.current.getPosition(),this.buffer.toString())},I.prototype.parseBlocks=function(){var c,m;do{var R=this.current.getPosition();if(c=this.current.isAlpha()?(m=this.parseAlphaBlock()).isFinished():this.current.isIsoIec646()?(m=this.parseIsoIec646Block()).isFinished():(m=this.parseNumericBlock()).isFinished(),R===this.current.getPosition()&&!c)break}while(!c);return m.getDecodedInformation()},I.prototype.parseNumericBlock=function(){for(;this.isStillNumeric(this.current.getPosition());){var c=this.decodeNumeric(this.current.getPosition());if(this.current.setPosition(c.getNewPosition()),c.isFirstDigitFNC1()){var m=void 0;return m=c.isSecondDigitFNC1()?new Ci(this.current.getPosition(),this.buffer.toString()):new Ci(this.current.getPosition(),this.buffer.toString(),c.getSecondDigit()),new xn(!0,m)}if(this.buffer.append(c.getFirstDigit()),c.isSecondDigitFNC1())return m=new Ci(this.current.getPosition(),this.buffer.toString()),new xn(!0,m);this.buffer.append(c.getSecondDigit())}return this.isNumericToAlphaNumericLatch(this.current.getPosition())&&(this.current.setAlpha(),this.current.incrementPosition(4)),new xn(!1)},I.prototype.parseIsoIec646Block=function(){for(;this.isStillIsoIec646(this.current.getPosition());){var c=this.decodeIsoIec646(this.current.getPosition());if(this.current.setPosition(c.getNewPosition()),c.isFNC1()){var m=new Ci(this.current.getPosition(),this.buffer.toString());return new xn(!0,m)}this.buffer.append(c.getValue())}return this.isAlphaOr646ToNumericLatch(this.current.getPosition())?(this.current.incrementPosition(3),this.current.setNumeric()):this.isAlphaTo646ToAlphaLatch(this.current.getPosition())&&(this.current.getPosition()+5<this.information.getSize()?this.current.incrementPosition(5):this.current.setPosition(this.information.getSize()),this.current.setAlpha()),new xn(!1)},I.prototype.parseAlphaBlock=function(){for(;this.isStillAlpha(this.current.getPosition());){var c=this.decodeAlphanumeric(this.current.getPosition());if(this.current.setPosition(c.getNewPosition()),c.isFNC1()){var m=new Ci(this.current.getPosition(),this.buffer.toString());return new xn(!0,m)}this.buffer.append(c.getValue())}return this.isAlphaOr646ToNumericLatch(this.current.getPosition())?(this.current.incrementPosition(3),this.current.setNumeric()):this.isAlphaTo646ToAlphaLatch(this.current.getPosition())&&(this.current.getPosition()+5<this.information.getSize()?this.current.incrementPosition(5):this.current.setPosition(this.information.getSize()),this.current.setIsoIec646()),new xn(!1)},I.prototype.isStillIsoIec646=function(c){if(c+5>this.information.getSize())return!1;var m=this.extractNumericValueFromBitArray(c,5);if(m>=5&&m<16)return!0;if(c+7>this.information.getSize())return!1;var R=this.extractNumericValueFromBitArray(c,7);if(R>=64&&R<116)return!0;if(c+8>this.information.getSize())return!1;var Z=this.extractNumericValueFromBitArray(c,8);return Z>=232&&Z<253},I.prototype.decodeIsoIec646=function(c){var m=this.extractNumericValueFromBitArray(c,5);if(15===m)return new Qt(c+5,Qt.FNC1);if(m>=5&&m<15)return new Qt(c+5,"0"+(m-5));var Q,R=this.extractNumericValueFromBitArray(c,7);if(R>=64&&R<90)return new Qt(c+7,""+(R+1));if(R>=90&&R<116)return new Qt(c+7,""+(R+7));switch(this.extractNumericValueFromBitArray(c,8)){case 232:Q="!";break;case 233:Q='"';break;case 234:Q="%";break;case 235:Q="&";break;case 236:Q="'";break;case 237:Q="(";break;case 238:Q=")";break;case 239:Q="*";break;case 240:Q="+";break;case 241:Q=",";break;case 242:Q="-";break;case 243:Q=".";break;case 244:Q="/";break;case 245:Q=":";break;case 246:Q=";";break;case 247:Q="<";break;case 248:Q="=";break;case 249:Q=">";break;case 250:Q="?";break;case 251:Q="_";break;case 252:Q=" ";break;default:throw new Be}return new Qt(c+8,Q)},I.prototype.isStillAlpha=function(c){if(c+5>this.information.getSize())return!1;var m=this.extractNumericValueFromBitArray(c,5);if(m>=5&&m<16)return!0;if(c+6>this.information.getSize())return!1;var R=this.extractNumericValueFromBitArray(c,6);return R>=16&&R<63},I.prototype.decodeAlphanumeric=function(c){var m=this.extractNumericValueFromBitArray(c,5);if(15===m)return new Qt(c+5,Qt.FNC1);if(m>=5&&m<15)return new Qt(c+5,"0"+(m-5));var Z,R=this.extractNumericValueFromBitArray(c,6);if(R>=32&&R<58)return new Qt(c+6,""+(R+33));switch(R){case 58:Z="*";break;case 59:Z=",";break;case 60:Z="-";break;case 61:Z=".";break;case 62:Z="/";break;default:throw new zt("Decoding invalid alphanumeric value: "+R)}return new Qt(c+6,Z)},I.prototype.isAlphaTo646ToAlphaLatch=function(c){if(c+1>this.information.getSize())return!1;for(var m=0;m<5&&m+c<this.information.getSize();++m)if(2===m){if(!this.information.get(c+2))return!1}else if(this.information.get(c+m))return!1;return!0},I.prototype.isAlphaOr646ToNumericLatch=function(c){if(c+3>this.information.getSize())return!1;for(var m=c;m<c+3;++m)if(this.information.get(m))return!1;return!0},I.prototype.isNumericToAlphaNumericLatch=function(c){if(c+1>this.information.getSize())return!1;for(var m=0;m<4&&m+c<this.information.getSize();++m)if(this.information.get(c+m))return!1;return!0},I}();const Ca=pa;var Fa=function(){function I(c){this.information=c,this.generalDecoder=new Ca(c)}return I.prototype.getInformation=function(){return this.information},I.prototype.getGeneralDecoder=function(){return this.generalDecoder},I}();const Rl=Fa;var So=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),eo=function(I){function c(m){return I.call(this,m)||this}return So(c,I),c.prototype.encodeCompressedGtin=function(m,R){m.append("(01)");var Z=m.length();m.append("9"),this.encodeCompressedGtinWithoutAI(m,R,Z)},c.prototype.encodeCompressedGtinWithoutAI=function(m,R,Z){for(var Q=0;Q<4;++Q){var se=this.getGeneralDecoder().extractNumericValueFromBitArray(R+10*Q,10);se/100==0&&m.append("0"),se/10==0&&m.append("0"),m.append(se)}c.appendCheckDigit(m,Z)},c.appendCheckDigit=function(m,R){for(var Z=0,Q=0;Q<13;Q++){var se=m.charAt(Q+R).charCodeAt(0)-"0".charCodeAt(0);Z+=0==(1&Q)?3*se:se}10==(Z=10-Z%10)&&(Z=0),m.append(Z)},c.GTIN_SIZE=40,c}(Rl);const ea=eo;var Za=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),To=function(I){function c(m){return I.call(this,m)||this}return Za(c,I),c.prototype.parseInformation=function(){var m=new Dt;m.append("(01)");var R=m.length(),Z=this.getGeneralDecoder().extractNumericValueFromBitArray(c.HEADER_SIZE,4);return m.append(Z),this.encodeCompressedGtinWithoutAI(m,c.HEADER_SIZE+4,R),this.getGeneralDecoder().decodeAllCodes(m,c.HEADER_SIZE+44)},c.HEADER_SIZE=4,c}(ea);const Zo=To;var to=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),Eo=function(I){function c(m){return I.call(this,m)||this}return to(c,I),c.prototype.parseInformation=function(){var m=new Dt;return this.getGeneralDecoder().decodeAllCodes(m,c.HEADER_SIZE)},c.HEADER_SIZE=5,c}(Rl);const Oo=Eo;var oo=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),Mo=function(I){function c(m){return I.call(this,m)||this}return oo(c,I),c.prototype.encodeCompressedWeight=function(m,R,Z){var Q=this.getGeneralDecoder().extractNumericValueFromBitArray(R,Z);this.addWeightCode(m,Q);for(var se=this.checkWeight(Q),de=1e5,Ee=0;Ee<5;++Ee)se/de==0&&m.append("0"),de/=10;m.append(se)},c}(ea);const go=Mo;var za=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),Ro=function(I){function c(m){return I.call(this,m)||this}return za(c,I),c.prototype.parseInformation=function(){if(this.getInformation().getSize()!=c.HEADER_SIZE+go.GTIN_SIZE+c.WEIGHT_SIZE)throw new X;var m=new Dt;return this.encodeCompressedGtin(m,c.HEADER_SIZE),this.encodeCompressedWeight(m,c.HEADER_SIZE+go.GTIN_SIZE,c.WEIGHT_SIZE),m.toString()},c.HEADER_SIZE=5,c.WEIGHT_SIZE=15,c}(go);const mo=Ro;var zo=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),Ko=function(I){function c(m){return I.call(this,m)||this}return zo(c,I),c.prototype.addWeightCode=function(m,R){m.append("(3103)")},c.prototype.checkWeight=function(m){return m},c}(mo);const ta=Ko;var wa=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),Ps=function(I){function c(m){return I.call(this,m)||this}return wa(c,I),c.prototype.addWeightCode=function(m,R){m.append(R<1e4?"(3202)":"(3203)")},c.prototype.checkWeight=function(m){return m<1e4?m:m-1e4},c}(mo);const qo=Ps;var Pu=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),Jo=function(I){function c(m){return I.call(this,m)||this}return Pu(c,I),c.prototype.parseInformation=function(){if(this.getInformation().getSize()<c.HEADER_SIZE+ea.GTIN_SIZE)throw new X;var m=new Dt;this.encodeCompressedGtin(m,c.HEADER_SIZE);var R=this.getGeneralDecoder().extractNumericValueFromBitArray(c.HEADER_SIZE+ea.GTIN_SIZE,c.LAST_DIGIT_SIZE);m.append("(392"),m.append(R),m.append(")");var Z=this.getGeneralDecoder().decodeGeneralPurposeField(c.HEADER_SIZE+ea.GTIN_SIZE+c.LAST_DIGIT_SIZE,null);return m.append(Z.getNewString()),m.toString()},c.HEADER_SIZE=8,c.LAST_DIGIT_SIZE=2,c}(ea);const Ba=Jo;var lo=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),ga=function(I){function c(m){return I.call(this,m)||this}return lo(c,I),c.prototype.parseInformation=function(){if(this.getInformation().getSize()<c.HEADER_SIZE+ea.GTIN_SIZE)throw new X;var m=new Dt;this.encodeCompressedGtin(m,c.HEADER_SIZE);var R=this.getGeneralDecoder().extractNumericValueFromBitArray(c.HEADER_SIZE+ea.GTIN_SIZE,c.LAST_DIGIT_SIZE);m.append("(393"),m.append(R),m.append(")");var Z=this.getGeneralDecoder().extractNumericValueFromBitArray(c.HEADER_SIZE+ea.GTIN_SIZE+c.LAST_DIGIT_SIZE,c.FIRST_THREE_DIGITS_SIZE);Z/100==0&&m.append("0"),Z/10==0&&m.append("0"),m.append(Z);var Q=this.getGeneralDecoder().decodeGeneralPurposeField(c.HEADER_SIZE+ea.GTIN_SIZE+c.LAST_DIGIT_SIZE+c.FIRST_THREE_DIGITS_SIZE,null);return m.append(Q.getNewString()),m.toString()},c.HEADER_SIZE=8,c.LAST_DIGIT_SIZE=2,c.FIRST_THREE_DIGITS_SIZE=10,c}(ea);const $o=ga;var ro=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),xa=function(I){function c(m,R,Z){var Q=I.call(this,m)||this;return Q.dateCode=Z,Q.firstAIdigits=R,Q}return ro(c,I),c.prototype.parseInformation=function(){if(this.getInformation().getSize()!=c.HEADER_SIZE+c.GTIN_SIZE+c.WEIGHT_SIZE+c.DATE_SIZE)throw new X;var m=new Dt;return this.encodeCompressedGtin(m,c.HEADER_SIZE),this.encodeCompressedWeight(m,c.HEADER_SIZE+c.GTIN_SIZE,c.WEIGHT_SIZE),this.encodeCompressedDate(m,c.HEADER_SIZE+c.GTIN_SIZE+c.WEIGHT_SIZE),m.toString()},c.prototype.encodeCompressedDate=function(m,R){var Z=this.getGeneralDecoder().extractNumericValueFromBitArray(R,c.DATE_SIZE);if(38400!=Z){m.append("("),m.append(this.dateCode),m.append(")");var Q=Z%32,se=(Z/=32)%12+1,de=Z/=12;de/10==0&&m.append("0"),m.append(de),se/10==0&&m.append("0"),m.append(se),Q/10==0&&m.append("0"),m.append(Q)}},c.prototype.addWeightCode=function(m,R){m.append("("),m.append(this.firstAIdigits),m.append(R/1e5),m.append(")")},c.prototype.checkWeight=function(m){return m%1e5},c.HEADER_SIZE=8,c.WEIGHT_SIZE=20,c.DATE_SIZE=16,c}(go);const ma=xa;var Qo=function(){function I(c,m,R,Z){this.leftchar=c,this.rightchar=m,this.finderpattern=R,this.maybeLast=Z}return I.prototype.mayBeLast=function(){return this.maybeLast},I.prototype.getLeftChar=function(){return this.leftchar},I.prototype.getRightChar=function(){return this.rightchar},I.prototype.getFinderPattern=function(){return this.finderpattern},I.prototype.mustBeLast=function(){return null==this.rightchar},I.prototype.toString=function(){return"[ "+this.leftchar+", "+this.rightchar+" : "+(null==this.finderpattern?"null":this.finderpattern.getValue())+" ]"},I.equals=function(c,m){return c instanceof I&&I.equalsOrNull(c.leftchar,m.leftchar)&&I.equalsOrNull(c.rightchar,m.rightchar)&&I.equalsOrNull(c.finderpattern,m.finderpattern)},I.equalsOrNull=function(c,m){return null===c?null===m:I.equals(c,m)},I.prototype.hashCode=function(){return this.leftchar.getValue()^this.rightchar.getValue()^this.finderpattern.getValue()},I}();const _t=Qo;var ar=function(){function I(c,m,R){this.pairs=c,this.rowNumber=m,this.wasReversed=R}return I.prototype.getPairs=function(){return this.pairs},I.prototype.getRowNumber=function(){return this.rowNumber},I.prototype.isReversed=function(){return this.wasReversed},I.prototype.isEquivalent=function(c){return this.checkEqualitity(this,c)},I.prototype.toString=function(){return"{ "+this.pairs+" }"},I.prototype.equals=function(c,m){return c instanceof I&&this.checkEqualitity(c,m)&&c.wasReversed===m.wasReversed},I.prototype.checkEqualitity=function(c,m){var R;if(c&&m)return c.forEach(function(Z,Q){m.forEach(function(se){Z.getLeftChar().getValue()===se.getLeftChar().getValue()&&Z.getRightChar().getValue()===se.getRightChar().getValue()&&Z.getFinderPatter().getValue()===se.getFinderPatter().getValue()&&(R=!0)})}),R},I}();const Nt=ar;var Er=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),qr=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")},Cn=function(I){function c(){var m=null!==I&&I.apply(this,arguments)||this;return m.pairs=new Array(c.MAX_PAIRS),m.rows=new Array,m.startEnd=[2],m}return Er(c,I),c.prototype.decodeRow=function(m,R,Z){this.pairs.length=0,this.startFromEven=!1;try{return c.constructResult(this.decodeRow2pairs(m,R))}catch{}return this.pairs.length=0,this.startFromEven=!0,c.constructResult(this.decodeRow2pairs(m,R))},c.prototype.reset=function(){this.pairs.length=0,this.rows.length=0},c.prototype.decodeRow2pairs=function(m,R){for(var Z=!1;!Z;)try{this.pairs.push(this.retrieveNextPair(R,this.pairs,m))}catch(de){if(de instanceof X){if(!this.pairs.length)throw new X;Z=!0}}if(this.checkChecksum())return this.pairs;var Q;if(Q=!!this.rows.length,this.storeRow(m,!1),Q){var se=this.checkRowsBoolean(!1);if(null!=se||null!=(se=this.checkRowsBoolean(!0)))return se}throw new X},c.prototype.checkRowsBoolean=function(m){if(this.rows.length>25)return this.rows.length=0,null;this.pairs.length=0,m&&(this.rows=this.rows.reverse());var R=null;try{R=this.checkRows(new Array,0)}catch(Z){console.log(Z)}return m&&(this.rows=this.rows.reverse()),R},c.prototype.checkRows=function(m,R){for(var Z,Q,se=R;se<this.rows.length;se++){var de=this.rows[se];this.pairs.length=0;try{for(var Ee=(Z=void 0,qr(m)),Ve=Ee.next();!Ve.done;Ve=Ee.next())this.pairs.push(Ve.value.getPairs())}catch(Jt){Z={error:Jt}}finally{try{Ve&&!Ve.done&&(Q=Ee.return)&&Q.call(Ee)}finally{if(Z)throw Z.error}}if(this.pairs.push(de.getPairs()),c.isValidSequence(this.pairs)){if(this.checkChecksum())return this.pairs;var It=new Array(m);It.push(de);try{return this.checkRows(It,se+1)}catch(Jt){console.log(Jt)}}}throw new X},c.isValidSequence=function(m){var R,Z;try{for(var Q=qr(c.FINDER_PATTERN_SEQUENCES),se=Q.next();!se.done;se=Q.next()){var de=se.value;if(!(m.length>de.length)){for(var Ee=!0,Ve=0;Ve<m.length;Ve++)if(m[Ve].getFinderPattern().getValue()!=de[Ve]){Ee=!1;break}if(Ee)return!0}}}catch(mt){R={error:mt}}finally{try{se&&!se.done&&(Z=Q.return)&&Z.call(Q)}finally{if(R)throw R.error}}return!1},c.prototype.storeRow=function(m,R){for(var Z=0,Q=!1,se=!1;Z<this.rows.length;){var de=this.rows[Z];if(de.getRowNumber()>m){se=de.isEquivalent(this.pairs);break}Q=de.isEquivalent(this.pairs),Z++}se||Q||c.isPartialRow(this.pairs,this.rows)||(this.rows.push(Z,new Nt(this.pairs,m,R)),this.removePartialRows(this.pairs,this.rows))},c.prototype.removePartialRows=function(m,R){var Z,Q,se,de,Ee,Ve;try{for(var mt=qr(R),It=mt.next();!It.done;It=mt.next()){var Jt=It.value;if(Jt.getPairs().length!==m.length)try{for(var Lr=(se=void 0,qr(Jt.getPairs())),Yr=Lr.next();!Yr.done;Yr=Lr.next()){var on=Yr.value;try{for(var en=(Ee=void 0,qr(m)),mn=en.next();!mn.done;mn=en.next())if(_t.equals(on,mn.value)){!0;break}}catch(jn){Ee={error:jn}}finally{try{mn&&!mn.done&&(Ve=en.return)&&Ve.call(en)}finally{if(Ee)throw Ee.error}}}}catch(jn){se={error:jn}}finally{try{Yr&&!Yr.done&&(de=Lr.return)&&de.call(Lr)}finally{if(se)throw se.error}}}}catch(jn){Z={error:jn}}finally{try{It&&!It.done&&(Q=mt.return)&&Q.call(mt)}finally{if(Z)throw Z.error}}},c.isPartialRow=function(m,R){var Z,Q,se,de,Ee,Ve;try{for(var mt=qr(R),It=mt.next();!It.done;It=mt.next()){var Jt=It.value,Xt=!0;try{for(var Lr=(se=void 0,qr(m)),Yr=Lr.next();!Yr.done;Yr=Lr.next()){var on=Yr.value,ln=!1;try{for(var en=(Ee=void 0,qr(Jt.getPairs())),mn=en.next();!mn.done;mn=en.next())if(on.equals(mn.value)){ln=!0;break}}catch(jn){Ee={error:jn}}finally{try{mn&&!mn.done&&(Ve=en.return)&&Ve.call(en)}finally{if(Ee)throw Ee.error}}if(!ln){Xt=!1;break}}}catch(jn){se={error:jn}}finally{try{Yr&&!Yr.done&&(de=Lr.return)&&de.call(Lr)}finally{if(se)throw se.error}}if(Xt)return!0}}catch(jn){Z={error:jn}}finally{try{It&&!It.done&&(Q=mt.return)&&Q.call(mt)}finally{if(Z)throw Z.error}}return!1},c.prototype.getRows=function(){return this.rows},c.constructResult=function(m){var Z=function wo(I){try{if(I.get(1))return new Zo(I);if(!I.get(2))return new Oo(I);switch(Ca.extractNumericValueFromBitArray(I,1,4)){case 4:return new ta(I);case 5:return new qo(I)}switch(Ca.extractNumericValueFromBitArray(I,1,5)){case 12:return new Ba(I);case 13:return new $o(I)}switch(Ca.extractNumericValueFromBitArray(I,1,7)){case 56:return new ma(I,"310","11");case 57:return new ma(I,"320","11");case 58:return new ma(I,"310","13");case 59:return new ma(I,"320","13");case 60:return new ma(I,"310","15");case 61:return new ma(I,"320","15");case 62:return new ma(I,"310","17");case 63:return new ma(I,"320","17")}}catch(Z){throw console.log(Z),new zt("unknown decoder: "+I)}}(Na.buildBitArray(m)),Q=Z.parseInformation(),se=m[0].getFinderPattern().getResultPoints(),de=m[m.length-1].getFinderPattern().getResultPoints();return new Fe(Q,null,null,[se[0],se[1],de[0],de[1]],St.RSS_EXPANDED,null)},c.prototype.checkChecksum=function(){var m=this.pairs.get(0),R=m.getLeftChar(),Z=m.getRightChar();if(null==Z)return!1;for(var Q=Z.getChecksumPortion(),se=2,de=1;de<this.pairs.size();++de){var Ee=this.pairs.get(de);Q+=Ee.getLeftChar().getChecksumPortion(),se++;var Ve=Ee.getRightChar();null!=Ve&&(Q+=Ve.getChecksumPortion(),se++)}return 211*(se-4)+(Q%=211)==R.getValue()},c.getNextSecondBar=function(m,R){var Z;return m.get(R)?(Z=m.getNextUnset(R),Z=m.getNextSet(Z)):(Z=m.getNextSet(R),Z=m.getNextUnset(Z)),Z},c.prototype.retrieveNextPair=function(m,R,Z){var Q=R.length%2==0;this.startFromEven&&(Q=!Q);var se,de=!0,Ee=-1;do{this.findNextPair(m,R,Ee),null==(se=this.parseFoundFinderPattern(m,Z,Q))?Ee=c.getNextSecondBar(m,this.startEnd[0]):de=!1}while(de);var mt,Ve=this.decodeDataCharacter(m,se,Q,!0);if(!this.isEmptyPair(R)&&R[R.length-1].mustBeLast())throw new X;try{mt=this.decodeDataCharacter(m,se,Q,!1)}catch(It){mt=null,console.log(It)}return new _t(Ve,mt,se,!0)},c.prototype.isEmptyPair=function(m){return 0===m.length},c.prototype.findNextPair=function(m,R,Z){var Q=this.getDecodeFinderCounters();Q[0]=0,Q[1]=0,Q[2]=0,Q[3]=0;var de,se=m.getSize();de=Z>=0?Z:this.isEmptyPair(R)?0:R[R.length-1].getFinderPattern().getStartEnd()[1];var Ve=R.length%2!=0;this.startFromEven&&(Ve=!Ve);for(var mt=!1;de<se&&(mt=!m.get(de));)de++;for(var It=0,Jt=de,Xt=de;Xt<se;Xt++)if(m.get(Xt)!=mt)Q[It]++;else{if(3==It){if(Ve&&c.reverseCounters(Q),c.isFinderPattern(Q))return this.startEnd[0]=Jt,void(this.startEnd[1]=Xt);Ve&&c.reverseCounters(Q),Jt+=Q[0]+Q[1],Q[0]=Q[2],Q[1]=Q[3],Q[2]=0,Q[3]=0,It--}else It++;Q[It]=1,mt=!mt}throw new X},c.reverseCounters=function(m){for(var R=m.length,Z=0;Z<R/2;++Z){var Q=m[Z];m[Z]=m[R-Z-1],m[R-Z-1]=Q}},c.prototype.parseFoundFinderPattern=function(m,R,Z){var Q,se,de;if(Z){for(var Ee=this.startEnd[0]-1;Ee>=0&&!m.get(Ee);)Ee--;Ee++,Q=this.startEnd[0]-Ee,se=Ee,de=this.startEnd[1]}else se=this.startEnd[0],Q=(de=m.getNextUnset(this.startEnd[1]+1))-this.startEnd[1];var mt,Ve=this.getDecodeFinderCounters();s.arraycopy(Ve,0,Ve,1,Ve.length-1),Ve[0]=Q;try{mt=this.parseFinderValue(Ve,c.FINDER_PATTERNS)}catch(It){return null}return new Mn(mt,[se,de],se,de,R)},c.prototype.decodeDataCharacter=function(m,R,Z,Q){for(var se=this.getDataCharacterCounters(),de=0;de<se.length;de++)se[de]=0;if(Q)c.recordPatternInReverse(m,R.getStartEnd()[0],se);else{c.recordPattern(m,R.getStartEnd()[1],se);for(var Ee=0,Ve=se.length-1;Ee<Ve;Ee++,Ve--){var mt=se[Ee];se[Ee]=se[Ve],se[Ve]=mt}}var Jt=Nr.sum(new Int32Array(se))/17,Xt=(R.getStartEnd()[1]-R.getStartEnd()[0])/15;if(Math.abs(Jt-Xt)/Xt>.3)throw new X;var Lr=this.getOddCounts(),Yr=this.getEvenCounts(),on=this.getOddRoundingErrors(),ln=this.getEvenRoundingErrors();for(Ee=0;Ee<se.length;Ee++){var en=1*se[Ee]/Jt,mn=en+.5;if(mn<1){if(en<.3)throw new X;mn=1}else if(mn>8){if(en>8.7)throw new X;mn=8}var In=Ee/2;0==(1&Ee)?(Lr[In]=mn,on[In]=en-mn):(Yr[In]=mn,ln[In]=en-mn)}this.adjustOddEvenCounts(17);var jn=4*R.getValue()+(Z?0:2)+(Q?0:1)-1,Zn=0,Xn=0;for(Ee=Lr.length-1;Ee>=0;Ee--)c.isNotA1left(R,Z,Q)&&(Xn+=Lr[Ee]*c.WEIGHTS[jn][2*Ee]),Zn+=Lr[Ee];var fs=0;for(Ee=Yr.length-1;Ee>=0;Ee--)c.isNotA1left(R,Z,Q)&&(fs+=Yr[Ee]*c.WEIGHTS[jn][2*Ee+1]);var Ri=Xn+fs;if(0!=(1&Zn)||Zn>13||Zn<4)throw new X;var Ms=(13-Zn)/2,ws=c.SYMBOL_WIDEST[Ms],ca=9-ws,da=Ki.getRSSvalue(Lr,ws,!0),tc=Ki.getRSSvalue(Yr,ca,!1);return new Mt(da*c.EVEN_TOTAL_SUBSET[Ms]+tc+c.GSUM[Ms],Ri)},c.isNotA1left=function(m,R,Z){return!(0==m.getValue()&&R&&Z)},c.prototype.adjustOddEvenCounts=function(m){var R=Nr.sum(new Int32Array(this.getOddCounts())),Z=Nr.sum(new Int32Array(this.getEvenCounts())),Q=!1,se=!1;R>13?se=!0:R<4&&(Q=!0);var de=!1,Ee=!1;Z>13?Ee=!0:Z<4&&(de=!0);var Ve=R+Z-m,mt=1==(1&R),It=0==(1&Z);if(1==Ve)if(mt){if(It)throw new X;se=!0}else{if(!It)throw new X;Ee=!0}else if(-1==Ve)if(mt){if(It)throw new X;Q=!0}else{if(!It)throw new X;de=!0}else{if(0!=Ve)throw new X;if(mt){if(!It)throw new X;R<Z?(Q=!0,Ee=!0):(se=!0,de=!0)}else if(It)throw new X}if(Q){if(se)throw new X;c.increment(this.getOddCounts(),this.getOddRoundingErrors())}if(se&&c.decrement(this.getOddCounts(),this.getOddRoundingErrors()),de){if(Ee)throw new X;c.increment(this.getEvenCounts(),this.getOddRoundingErrors())}Ee&&c.decrement(this.getEvenCounts(),this.getEvenRoundingErrors())},c.SYMBOL_WIDEST=[7,5,4,3,1],c.EVEN_TOTAL_SUBSET=[4,20,52,104,204],c.GSUM=[0,348,1388,2948,3988],c.FINDER_PATTERNS=[Int32Array.from([1,8,4,1]),Int32Array.from([3,6,4,1]),Int32Array.from([3,4,6,1]),Int32Array.from([3,2,8,1]),Int32Array.from([2,6,5,1]),Int32Array.from([2,2,9,1])],c.WEIGHTS=[[1,3,9,27,81,32,96,77],[20,60,180,118,143,7,21,63],[189,145,13,39,117,140,209,205],[193,157,49,147,19,57,171,91],[62,186,136,197,169,85,44,132],[185,133,188,142,4,12,36,108],[113,128,173,97,80,29,87,50],[150,28,84,41,123,158,52,156],[46,138,203,187,139,206,196,166],[76,17,51,153,37,111,122,155],[43,129,176,106,107,110,119,146],[16,48,144,10,30,90,59,177],[109,116,137,200,178,112,125,164],[70,210,208,202,184,130,179,115],[134,191,151,31,93,68,204,190],[148,22,66,198,172,94,71,2],[6,18,54,162,64,192,154,40],[120,149,25,75,14,42,126,167],[79,26,78,23,69,207,199,175],[103,98,83,38,114,131,182,124],[161,61,183,127,170,88,53,159],[55,165,73,8,24,72,5,15],[45,135,194,160,58,174,100,89]],c.FINDER_PATTERN_SEQUENCES=[[c.FINDER_PAT_A=0,c.FINDER_PAT_A],[c.FINDER_PAT_A,c.FINDER_PAT_B=1,c.FINDER_PAT_B],[c.FINDER_PAT_A,c.FINDER_PAT_C=2,c.FINDER_PAT_B,c.FINDER_PAT_D=3],[c.FINDER_PAT_A,c.FINDER_PAT_E=4,c.FINDER_PAT_B,c.FINDER_PAT_D,c.FINDER_PAT_C],[c.FINDER_PAT_A,c.FINDER_PAT_E,c.FINDER_PAT_B,c.FINDER_PAT_D,c.FINDER_PAT_D,c.FINDER_PAT_F=5],[c.FINDER_PAT_A,c.FINDER_PAT_E,c.FINDER_PAT_B,c.FINDER_PAT_D,c.FINDER_PAT_E,c.FINDER_PAT_F,c.FINDER_PAT_F],[c.FINDER_PAT_A,c.FINDER_PAT_A,c.FINDER_PAT_B,c.FINDER_PAT_B,c.FINDER_PAT_C,c.FINDER_PAT_C,c.FINDER_PAT_D,c.FINDER_PAT_D],[c.FINDER_PAT_A,c.FINDER_PAT_A,c.FINDER_PAT_B,c.FINDER_PAT_B,c.FINDER_PAT_C,c.FINDER_PAT_C,c.FINDER_PAT_D,c.FINDER_PAT_E,c.FINDER_PAT_E],[c.FINDER_PAT_A,c.FINDER_PAT_A,c.FINDER_PAT_B,c.FINDER_PAT_B,c.FINDER_PAT_C,c.FINDER_PAT_C,c.FINDER_PAT_D,c.FINDER_PAT_E,c.FINDER_PAT_F,c.FINDER_PAT_F],[c.FINDER_PAT_A,c.FINDER_PAT_A,c.FINDER_PAT_B,c.FINDER_PAT_B,c.FINDER_PAT_C,c.FINDER_PAT_D,c.FINDER_PAT_D,c.FINDER_PAT_E,c.FINDER_PAT_E,c.FINDER_PAT_F,c.FINDER_PAT_F]],c.MAX_PAIRS=11,c}(qt);const Nn=Cn;var ei=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),ns=function(I){function c(m,R,Z){var Q=I.call(this,m,R)||this;return Q.count=0,Q.finderPattern=Z,Q}return ei(c,I),c.prototype.getFinderPattern=function(){return this.finderPattern},c.prototype.getCount=function(){return this.count},c.prototype.incrementCount=function(){this.count++},c}(Mt);const gs=ns;var as=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),Yi=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")},bs=function(I){function c(){var m=null!==I&&I.apply(this,arguments)||this;return m.possibleLeftPairs=[],m.possibleRightPairs=[],m}return as(c,I),c.prototype.decodeRow=function(m,R,Z){var Q,se,de,Ee,Ve=this.decodePair(R,!1,m,Z);c.addOrTally(this.possibleLeftPairs,Ve),R.reverse();var mt=this.decodePair(R,!0,m,Z);c.addOrTally(this.possibleRightPairs,mt),R.reverse();try{for(var It=Yi(this.possibleLeftPairs),Jt=It.next();!Jt.done;Jt=It.next()){var Xt=Jt.value;if(Xt.getCount()>1)try{for(var Lr=(de=void 0,Yi(this.possibleRightPairs)),Yr=Lr.next();!Yr.done;Yr=Lr.next()){var on=Yr.value;if(on.getCount()>1&&c.checkChecksum(Xt,on))return c.constructResult(Xt,on)}}catch(ln){de={error:ln}}finally{try{Yr&&!Yr.done&&(Ee=Lr.return)&&Ee.call(Lr)}finally{if(de)throw de.error}}}}catch(ln){Q={error:ln}}finally{try{Jt&&!Jt.done&&(se=It.return)&&se.call(It)}finally{if(Q)throw Q.error}}throw new X},c.addOrTally=function(m,R){var Z,Q;if(null!=R){var se=!1;try{for(var de=Yi(m),Ee=de.next();!Ee.done;Ee=de.next()){var Ve=Ee.value;if(Ve.getValue()===R.getValue()){Ve.incrementCount(),se=!0;break}}}catch(mt){Z={error:mt}}finally{try{Ee&&!Ee.done&&(Q=de.return)&&Q.call(de)}finally{if(Z)throw Z.error}}se||m.push(R)}},c.prototype.reset=function(){this.possibleLeftPairs.length=0,this.possibleRightPairs.length=0},c.constructResult=function(m,R){for(var Z=4537077*m.getValue()+R.getValue(),Q=new String(Z).toString(),se=new Dt,de=13-Q.length;de>0;de--)se.append("0");se.append(Q);var Ee=0;for(de=0;de<13;de++){var Ve=se.charAt(de).charCodeAt(0)-"0".charCodeAt(0);Ee+=0==(1&de)?3*Ve:Ve}10==(Ee=10-Ee%10)&&(Ee=0),se.append(Ee.toString());var mt=m.getFinderPattern().getResultPoints(),It=R.getFinderPattern().getResultPoints();return new Fe(se.toString(),null,0,[mt[0],mt[1],It[0],It[1]],St.RSS_14,(new Date).getTime())},c.checkChecksum=function(m,R){var Z=(m.getChecksumPortion()+16*R.getChecksumPortion())%79,Q=9*m.getFinderPattern().getValue()+R.getFinderPattern().getValue();return Q>72&&Q--,Q>8&&Q--,Z===Q},c.prototype.decodePair=function(m,R,Z,Q){try{var se=this.findFinderPattern(m,R),de=this.parseFoundFinderPattern(m,Z,R,se),Ee=null==Q?null:Q.get(At.NEED_RESULT_POINT_CALLBACK);if(null!=Ee){var Ve=(se[0]+se[1])/2;R&&(Ve=m.getSize()-1-Ve),Ee.foundPossibleResultPoint(new Tn(Ve,Z))}var mt=this.decodeDataCharacter(m,de,!0),It=this.decodeDataCharacter(m,de,!1);return new gs(1597*mt.getValue()+It.getValue(),mt.getChecksumPortion()+4*It.getChecksumPortion(),de)}catch{return null}},c.prototype.decodeDataCharacter=function(m,R,Z){for(var Q=this.getDataCharacterCounters(),se=0;se<Q.length;se++)Q[se]=0;if(Z)yn.recordPatternInReverse(m,R.getStartEnd()[0],Q);else{yn.recordPattern(m,R.getStartEnd()[1]+1,Q);for(var de=0,Ee=Q.length-1;de<Ee;de++,Ee--){var Ve=Q[de];Q[de]=Q[Ee],Q[Ee]=Ve}}var mt=Z?16:15,It=Nr.sum(new Int32Array(Q))/mt,Jt=this.getOddCounts(),Xt=this.getEvenCounts(),Lr=this.getOddRoundingErrors(),Yr=this.getEvenRoundingErrors();for(de=0;de<Q.length;de++){var on=Q[de]/It,ln=Math.floor(on+.5);ln<1?ln=1:ln>8&&(ln=8);var en=Math.floor(de/2);0==(1&de)?(Jt[en]=ln,Lr[en]=on-ln):(Xt[en]=ln,Yr[en]=on-ln)}this.adjustOddEvenCounts(Z,mt);var mn=0,In=0;for(de=Jt.length-1;de>=0;de--)In*=9,In+=Jt[de],mn+=Jt[de];var jn=0,Zn=0;for(de=Xt.length-1;de>=0;de--)jn*=9,jn+=Xt[de],Zn+=Xt[de];var mi,fs,Xn=In+3*jn;if(Z){if(0!=(1&mn)||mn>12||mn<4)throw new X;var Ri=9-(fs=c.OUTSIDE_ODD_WIDEST[mi=(12-mn)/2]),Ms=Ki.getRSSvalue(Jt,fs,!1),ws=Ki.getRSSvalue(Xt,Ri,!0);return new Mt(Ms*c.OUTSIDE_EVEN_TOTAL_SUBSET[mi]+ws+c.OUTSIDE_GSUM[mi],Xn)}if(0!=(1&Zn)||Zn>10||Zn<4)throw new X;return Ri=9-(fs=c.INSIDE_ODD_WIDEST[mi=(10-Zn)/2]),Ms=Ki.getRSSvalue(Jt,fs,!0),ws=Ki.getRSSvalue(Xt,Ri,!1),new Mt(ws*c.INSIDE_ODD_TOTAL_SUBSET[mi]+Ms+c.INSIDE_GSUM[mi],Xn)},c.prototype.findFinderPattern=function(m,R){var Z=this.getDecodeFinderCounters();Z[0]=0,Z[1]=0,Z[2]=0,Z[3]=0;for(var Q=m.getSize(),se=!1,de=0;de<Q&&R!==(se=!m.get(de));)de++;for(var Ee=0,Ve=de,mt=de;mt<Q;mt++)if(m.get(mt)!==se)Z[Ee]++;else{if(3===Ee){if(qt.isFinderPattern(Z))return[Ve,mt];Ve+=Z[0]+Z[1],Z[0]=Z[2],Z[1]=Z[3],Z[2]=0,Z[3]=0,Ee--}else Ee++;Z[Ee]=1,se=!se}throw new X},c.prototype.parseFoundFinderPattern=function(m,R,Z,Q){for(var se=m.get(Q[0]),de=Q[0]-1;de>=0&&se!==m.get(de);)de--;de++;var Ee=Q[0]-de,Ve=this.getDecodeFinderCounters(),mt=new Int32Array(Ve.length);s.arraycopy(Ve,0,mt,1,Ve.length-1),mt[0]=Ee;var It=this.parseFinderValue(mt,c.FINDER_PATTERNS),Jt=de,Xt=Q[1];return Z&&(Jt=m.getSize()-1-Jt,Xt=m.getSize()-1-Xt),new Mn(It,[de,Q[1]],Jt,Xt,R)},c.prototype.adjustOddEvenCounts=function(m,R){var Z=Nr.sum(new Int32Array(this.getOddCounts())),Q=Nr.sum(new Int32Array(this.getEvenCounts())),se=!1,de=!1,Ee=!1,Ve=!1;m?(Z>12?de=!0:Z<4&&(se=!0),Q>12?Ve=!0:Q<4&&(Ee=!0)):(Z>11?de=!0:Z<5&&(se=!0),Q>10?Ve=!0:Q<4&&(Ee=!0));var mt=Z+Q-R,It=(1&Z)==(m?1:0),Jt=1==(1&Q);if(1===mt)if(It){if(Jt)throw new X;de=!0}else{if(!Jt)throw new X;Ve=!0}else if(-1===mt)if(It){if(Jt)throw new X;se=!0}else{if(!Jt)throw new X;Ee=!0}else{if(0!==mt)throw new X;if(It){if(!Jt)throw new X;Z<Q?(se=!0,Ve=!0):(de=!0,Ee=!0)}else if(Jt)throw new X}if(se){if(de)throw new X;qt.increment(this.getOddCounts(),this.getOddRoundingErrors())}if(de&&qt.decrement(this.getOddCounts(),this.getOddRoundingErrors()),Ee){if(Ve)throw new X;qt.increment(this.getEvenCounts(),this.getOddRoundingErrors())}Ve&&qt.decrement(this.getEvenCounts(),this.getEvenRoundingErrors())},c.OUTSIDE_EVEN_TOTAL_SUBSET=[1,10,34,70,126],c.INSIDE_ODD_TOTAL_SUBSET=[4,20,48,81],c.OUTSIDE_GSUM=[0,161,961,2015,2715],c.INSIDE_GSUM=[0,336,1036,1516],c.OUTSIDE_ODD_WIDEST=[8,6,4,3,1],c.INSIDE_ODD_WIDEST=[2,4,6,8],c.FINDER_PATTERNS=[Int32Array.from([3,8,2,1]),Int32Array.from([3,5,5,1]),Int32Array.from([3,3,7,1]),Int32Array.from([3,1,9,1]),Int32Array.from([2,7,4,1]),Int32Array.from([2,5,6,1]),Int32Array.from([2,3,8,1]),Int32Array.from([1,5,7,1]),Int32Array.from([1,3,9,1])],c}(qt);const qi=bs;var Us=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),aa=function(I){function c(m){var R=I.call(this)||this;R.readers=[];var Z=m?m.get(At.POSSIBLE_FORMATS):null,Q=m&&void 0!==m.get(At.ASSUME_CODE_39_CHECK_DIGIT);return Z&&((Z.includes(St.EAN_13)||Z.includes(St.UPC_A)||Z.includes(St.EAN_8)||Z.includes(St.UPC_E))&&R.readers.push(new ia(m)),Z.includes(St.CODE_39)&&R.readers.push(new _r(Q)),Z.includes(St.CODE_128)&&R.readers.push(new vi),Z.includes(St.ITF)&&R.readers.push(new bn),Z.includes(St.RSS_14)&&R.readers.push(new qi),Z.includes(St.RSS_EXPANDED)&&(console.warn("RSS Expanded reader IS NOT ready for production yet! use at your own risk."),R.readers.push(new Nn))),0===R.readers.length&&(R.readers.push(new ia(m)),R.readers.push(new _r),R.readers.push(new ia(m)),R.readers.push(new vi),R.readers.push(new bn),R.readers.push(new qi)),R}return Us(c,I),c.prototype.decodeRow=function(m,R,Z){for(var Q=0;Q<this.readers.length;Q++)try{return this.readers[Q].decodeRow(m,R,Z)}catch{}throw new X},c.prototype.reset=function(){this.readers.forEach(function(m){return m.reset()})},c}(yn);const Rs=aa;var Ia=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),no=(function(I){Ia(function c(m,R){return void 0===m&&(m=500),I.call(this,new Rs(R),m,R)||this},I)}(kt),function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")}),bi=function(){function I(c,m,R){this.ecCodewords=c,this.ecBlocks=[m],R&&this.ecBlocks.push(R)}return I.prototype.getECCodewords=function(){return this.ecCodewords},I.prototype.getECBlocks=function(){return this.ecBlocks},I}(),ls=function(){function I(c,m){this.count=c,this.dataCodewords=m}return I.prototype.getCount=function(){return this.count},I.prototype.getDataCodewords=function(){return this.dataCodewords},I}(),cl=function(){function I(c,m,R,Z,Q,se){var de,Ee;this.versionNumber=c,this.symbolSizeRows=m,this.symbolSizeColumns=R,this.dataRegionSizeRows=Z,this.dataRegionSizeColumns=Q,this.ecBlocks=se;var Ve=0,mt=se.getECCodewords(),It=se.getECBlocks();try{for(var Jt=no(It),Xt=Jt.next();!Xt.done;Xt=Jt.next()){var Lr=Xt.value;Ve+=Lr.getCount()*(Lr.getDataCodewords()+mt)}}catch(Yr){de={error:Yr}}finally{try{Xt&&!Xt.done&&(Ee=Jt.return)&&Ee.call(Jt)}finally{if(de)throw de.error}}this.totalCodewords=Ve}return I.prototype.getVersionNumber=function(){return this.versionNumber},I.prototype.getSymbolSizeRows=function(){return this.symbolSizeRows},I.prototype.getSymbolSizeColumns=function(){return this.symbolSizeColumns},I.prototype.getDataRegionSizeRows=function(){return this.dataRegionSizeRows},I.prototype.getDataRegionSizeColumns=function(){return this.dataRegionSizeColumns},I.prototype.getTotalCodewords=function(){return this.totalCodewords},I.prototype.getECBlocks=function(){return this.ecBlocks},I.getVersionForDimensions=function(c,m){var R,Z;if(0!=(1&c)||0!=(1&m))throw new Be;try{for(var Q=no(I.VERSIONS),se=Q.next();!se.done;se=Q.next()){var de=se.value;if(de.symbolSizeRows===c&&de.symbolSizeColumns===m)return de}}catch(Ee){R={error:Ee}}finally{try{se&&!se.done&&(Z=Q.return)&&Z.call(Q)}finally{if(R)throw R.error}}throw new Be},I.prototype.toString=function(){return""+this.versionNumber},I.buildVersions=function(){return[new I(1,10,10,8,8,new bi(5,new ls(1,3))),new I(2,12,12,10,10,new bi(7,new ls(1,5))),new I(3,14,14,12,12,new bi(10,new ls(1,8))),new I(4,16,16,14,14,new bi(12,new ls(1,12))),new I(5,18,18,16,16,new bi(14,new ls(1,18))),new I(6,20,20,18,18,new bi(18,new ls(1,22))),new I(7,22,22,20,20,new bi(20,new ls(1,30))),new I(8,24,24,22,22,new bi(24,new ls(1,36))),new I(9,26,26,24,24,new bi(28,new ls(1,44))),new I(10,32,32,14,14,new bi(36,new ls(1,62))),new I(11,36,36,16,16,new bi(42,new ls(1,86))),new I(12,40,40,18,18,new bi(48,new ls(1,114))),new I(13,44,44,20,20,new bi(56,new ls(1,144))),new I(14,48,48,22,22,new bi(68,new ls(1,174))),new I(15,52,52,24,24,new bi(42,new ls(2,102))),new I(16,64,64,14,14,new bi(56,new ls(2,140))),new I(17,72,72,16,16,new bi(36,new ls(4,92))),new I(18,80,80,18,18,new bi(48,new ls(4,114))),new I(19,88,88,20,20,new bi(56,new ls(4,144))),new I(20,96,96,22,22,new bi(68,new ls(4,174))),new I(21,104,104,24,24,new bi(56,new ls(6,136))),new I(22,120,120,18,18,new bi(68,new ls(6,175))),new I(23,132,132,20,20,new bi(62,new ls(8,163))),new I(24,144,144,22,22,new bi(62,new ls(8,156),new ls(2,155))),new I(25,8,18,6,16,new bi(7,new ls(1,5))),new I(26,8,32,6,14,new bi(11,new ls(1,10))),new I(27,12,26,10,24,new bi(14,new ls(1,16))),new I(28,12,36,10,16,new bi(18,new ls(1,22))),new I(29,16,36,14,16,new bi(24,new ls(1,32))),new I(30,16,48,14,22,new bi(28,new ls(1,49)))]},I.VERSIONS=I.buildVersions(),I}();const dl=cl;var Ll=function(){function I(c){var m=c.getHeight();if(m<8||m>144||0!=(1&m))throw new Be;this.version=I.readVersion(c),this.mappingBitMatrix=this.extractDataRegion(c),this.readMappingMatrix=new nt(this.mappingBitMatrix.getWidth(),this.mappingBitMatrix.getHeight())}return I.prototype.getVersion=function(){return this.version},I.readVersion=function(c){var m=c.getHeight(),R=c.getWidth();return dl.getVersionForDimensions(m,R)},I.prototype.readCodewords=function(){var c=new Int8Array(this.version.getTotalCodewords()),m=0,R=4,Z=0,Q=this.mappingBitMatrix.getHeight(),se=this.mappingBitMatrix.getWidth(),de=!1,Ee=!1,Ve=!1,mt=!1;do{if(R!==Q||0!==Z||de)if(R!==Q-2||0!==Z||0==(3&se)||Ee)if(R!==Q+4||2!==Z||0!=(7&se)||Ve)if(R!==Q-2||0!==Z||4!=(7&se)||mt){do{R<Q&&Z>=0&&!this.readMappingMatrix.get(Z,R)&&(c[m++]=255&this.readUtah(R,Z,Q,se)),R-=2,Z+=2}while(R>=0&&Z<se);R+=1,Z+=3;do{R>=0&&Z<se&&!this.readMappingMatrix.get(Z,R)&&(c[m++]=255&this.readUtah(R,Z,Q,se)),R+=2,Z-=2}while(R<Q&&Z>=0);R+=3,Z+=1}else c[m++]=255&this.readCorner4(Q,se),R-=2,Z+=2,mt=!0;else c[m++]=255&this.readCorner3(Q,se),R-=2,Z+=2,Ve=!0;else c[m++]=255&this.readCorner2(Q,se),R-=2,Z+=2,Ee=!0;else c[m++]=255&this.readCorner1(Q,se),R-=2,Z+=2,de=!0}while(R<Q||Z<se);if(m!==this.version.getTotalCodewords())throw new Be;return c},I.prototype.readModule=function(c,m,R,Z){return c<0&&(c+=R,m+=4-(R+4&7)),m<0&&(m+=Z,c+=4-(Z+4&7)),this.readMappingMatrix.set(m,c),this.mappingBitMatrix.get(m,c)},I.prototype.readUtah=function(c,m,R,Z){var Q=0;return this.readModule(c-2,m-2,R,Z)&&(Q|=1),Q<<=1,this.readModule(c-2,m-1,R,Z)&&(Q|=1),Q<<=1,this.readModule(c-1,m-2,R,Z)&&(Q|=1),Q<<=1,this.readModule(c-1,m-1,R,Z)&&(Q|=1),Q<<=1,this.readModule(c-1,m,R,Z)&&(Q|=1),Q<<=1,this.readModule(c,m-2,R,Z)&&(Q|=1),Q<<=1,this.readModule(c,m-1,R,Z)&&(Q|=1),Q<<=1,this.readModule(c,m,R,Z)&&(Q|=1),Q},I.prototype.readCorner1=function(c,m){var R=0;return this.readModule(c-1,0,c,m)&&(R|=1),R<<=1,this.readModule(c-1,1,c,m)&&(R|=1),R<<=1,this.readModule(c-1,2,c,m)&&(R|=1),R<<=1,this.readModule(0,m-2,c,m)&&(R|=1),R<<=1,this.readModule(0,m-1,c,m)&&(R|=1),R<<=1,this.readModule(1,m-1,c,m)&&(R|=1),R<<=1,this.readModule(2,m-1,c,m)&&(R|=1),R<<=1,this.readModule(3,m-1,c,m)&&(R|=1),R},I.prototype.readCorner2=function(c,m){var R=0;return this.readModule(c-3,0,c,m)&&(R|=1),R<<=1,this.readModule(c-2,0,c,m)&&(R|=1),R<<=1,this.readModule(c-1,0,c,m)&&(R|=1),R<<=1,this.readModule(0,m-4,c,m)&&(R|=1),R<<=1,this.readModule(0,m-3,c,m)&&(R|=1),R<<=1,this.readModule(0,m-2,c,m)&&(R|=1),R<<=1,this.readModule(0,m-1,c,m)&&(R|=1),R<<=1,this.readModule(1,m-1,c,m)&&(R|=1),R},I.prototype.readCorner3=function(c,m){var R=0;return this.readModule(c-1,0,c,m)&&(R|=1),R<<=1,this.readModule(c-1,m-1,c,m)&&(R|=1),R<<=1,this.readModule(0,m-3,c,m)&&(R|=1),R<<=1,this.readModule(0,m-2,c,m)&&(R|=1),R<<=1,this.readModule(0,m-1,c,m)&&(R|=1),R<<=1,this.readModule(1,m-3,c,m)&&(R|=1),R<<=1,this.readModule(1,m-2,c,m)&&(R|=1),R<<=1,this.readModule(1,m-1,c,m)&&(R|=1),R},I.prototype.readCorner4=function(c,m){var R=0;return this.readModule(c-3,0,c,m)&&(R|=1),R<<=1,this.readModule(c-2,0,c,m)&&(R|=1),R<<=1,this.readModule(c-1,0,c,m)&&(R|=1),R<<=1,this.readModule(0,m-2,c,m)&&(R|=1),R<<=1,this.readModule(0,m-1,c,m)&&(R|=1),R<<=1,this.readModule(1,m-1,c,m)&&(R|=1),R<<=1,this.readModule(2,m-1,c,m)&&(R|=1),R<<=1,this.readModule(3,m-1,c,m)&&(R|=1),R},I.prototype.extractDataRegion=function(c){var m=this.version.getSymbolSizeRows(),R=this.version.getSymbolSizeColumns();if(c.getHeight()!==m)throw new U("Dimension of bitMatrix must match the version size");for(var Z=this.version.getDataRegionSizeRows(),Q=this.version.getDataRegionSizeColumns(),se=m/Z|0,de=R/Q|0,mt=new nt(de*Q,se*Z),It=0;It<se;++It)for(var Jt=It*Z,Xt=0;Xt<de;++Xt)for(var Lr=Xt*Q,Yr=0;Yr<Z;++Yr)for(var on=It*(Z+2)+1+Yr,ln=Jt+Yr,en=0;en<Q;++en)c.get(Xt*(Q+2)+1+en,on)&&mt.set(Lr+en,ln);return mt},I}();const Tt=Ll;var ut=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")},et=function(){function I(c,m){this.numDataCodewords=c,this.codewords=m}return I.getDataBlocks=function(c,m){var R,Z,Q,se,de=m.getECBlocks(),Ee=0,Ve=de.getECBlocks();try{for(var mt=ut(Ve),It=mt.next();!It.done;It=mt.next())Ee+=(Jt=It.value).getCount()}catch(da){R={error:da}}finally{try{It&&!It.done&&(Z=mt.return)&&Z.call(mt)}finally{if(R)throw R.error}}var Xt=new Array(Ee),Lr=0;try{for(var Yr=ut(Ve),on=Yr.next();!on.done;on=Yr.next())for(var Jt=on.value,ln=0;ln<Jt.getCount();ln++){var en=Jt.getDataCodewords(),mn=de.getECCodewords()+en;Xt[Lr++]=new I(en,new Uint8Array(mn))}}catch(da){Q={error:da}}finally{try{on&&!on.done&&(se=Yr.return)&&se.call(Yr)}finally{if(Q)throw Q.error}}var jn=Xt[0].codewords.length-de.getECCodewords(),Zn=jn-1,Xn=0;for(ln=0;ln<Zn;ln++)for(var mi=0;mi<Lr;mi++)Xt[mi].codewords[ln]=c[Xn++];var fs=24===m.getVersionNumber(),Ri=fs?8:Lr;for(mi=0;mi<Ri;mi++)Xt[mi].codewords[jn-1]=c[Xn++];var Ms=Xt[0].codewords.length;for(ln=jn;ln<Ms;ln++)for(mi=0;mi<Lr;mi++){var ws=fs?(mi+8)%Lr:mi;Xt[ws].codewords[fs&&ws>7?ln-1:ln]=c[Xn++]}if(Xn!==c.length)throw new U;return Xt},I.prototype.getNumDataCodewords=function(){return this.numDataCodewords},I.prototype.getCodewords=function(){return this.codewords},I}();const Wt=et;var ir=function(){function I(c){this.bytes=c,this.byteOffset=0,this.bitOffset=0}return I.prototype.getBitOffset=function(){return this.bitOffset},I.prototype.getByteOffset=function(){return this.byteOffset},I.prototype.readBits=function(c){if(c<1||c>32||c>this.available())throw new U(""+c);var m=0,R=this.bitOffset,Z=this.byteOffset,Q=this.bytes;if(R>0){var se=8-R,de=c<se?c:se;m=(Q[Z]&255>>8-de<<(Ee=se-de))>>Ee,c-=de,8===(R+=de)&&(R=0,Z++)}if(c>0){for(;c>=8;)m=m<<8|255&Q[Z],Z++,c-=8;var Ee;c>0&&(m=m<<c|(Q[Z]&255>>(Ee=8-c)<<Ee)>>Ee,R+=c)}return this.bitOffset=R,this.byteOffset=Z,m},I.prototype.available=function(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset},I}();const Pr=ir;var jr=(()=>(function(I){I[I.PAD_ENCODE=0]="PAD_ENCODE",I[I.ASCII_ENCODE=1]="ASCII_ENCODE",I[I.C40_ENCODE=2]="C40_ENCODE",I[I.TEXT_ENCODE=3]="TEXT_ENCODE",I[I.ANSIX12_ENCODE=4]="ANSIX12_ENCODE",I[I.EDIFACT_ENCODE=5]="EDIFACT_ENCODE",I[I.BASE256_ENCODE=6]="BASE256_ENCODE"}(jr||(jr={})),jr))(),Xr=function(){function I(){}return I.decode=function(c){var m=new Pr(c),R=new Dt,Z=new Dt,Q=new Array,se=jr.ASCII_ENCODE;do{if(se===jr.ASCII_ENCODE)se=this.decodeAsciiSegment(m,R,Z);else{switch(se){case jr.C40_ENCODE:this.decodeC40Segment(m,R);break;case jr.TEXT_ENCODE:this.decodeTextSegment(m,R);break;case jr.ANSIX12_ENCODE:this.decodeAnsiX12Segment(m,R);break;case jr.EDIFACT_ENCODE:this.decodeEdifactSegment(m,R);break;case jr.BASE256_ENCODE:this.decodeBase256Segment(m,R,Q);break;default:throw new Be}se=jr.ASCII_ENCODE}}while(se!==jr.PAD_ENCODE&&m.available()>0);return Z.length()>0&&R.append(Z.toString()),new vt(c,R.toString(),0===Q.length?null:Q,null)},I.decodeAsciiSegment=function(c,m,R){var Z=!1;do{var Q=c.readBits(8);if(0===Q)throw new Be;if(Q<=128)return Z&&(Q+=128),m.append(String.fromCharCode(Q-1)),jr.ASCII_ENCODE;if(129===Q)return jr.PAD_ENCODE;if(Q<=229){var se=Q-130;se<10&&m.append("0"),m.append(""+se)}else switch(Q){case 230:return jr.C40_ENCODE;case 231:return jr.BASE256_ENCODE;case 232:m.append(String.fromCharCode(29));break;case 233:case 234:case 241:break;case 235:Z=!0;break;case 236:m.append("[)>\x1e05\x1d"),R.insert(0,"\x1e\x04");break;case 237:m.append("[)>\x1e06\x1d"),R.insert(0,"\x1e\x04");break;case 238:return jr.ANSIX12_ENCODE;case 239:return jr.TEXT_ENCODE;case 240:return jr.EDIFACT_ENCODE;default:if(254!==Q||0!==c.available())throw new Be}}while(c.available()>0);return jr.ASCII_ENCODE},I.decodeC40Segment=function(c,m){var R=!1,Z=[],Q=0;do{if(8===c.available())return;var se=c.readBits(8);if(254===se)return;this.parseTwoBytes(se,c.readBits(8),Z);for(var de=0;de<3;de++){var Ee=Z[de];switch(Q){case 0:if(Ee<3)Q=Ee+1;else{if(!(Ee<this.C40_BASIC_SET_CHARS.length))throw new Be;var Ve=this.C40_BASIC_SET_CHARS[Ee];R?(m.append(String.fromCharCode(Ve.charCodeAt(0)+128)),R=!1):m.append(Ve)}break;case 1:R?(m.append(String.fromCharCode(Ee+128)),R=!1):m.append(String.fromCharCode(Ee)),Q=0;break;case 2:if(Ee<this.C40_SHIFT2_SET_CHARS.length)Ve=this.C40_SHIFT2_SET_CHARS[Ee],R?(m.append(String.fromCharCode(Ve.charCodeAt(0)+128)),R=!1):m.append(Ve);else switch(Ee){case 27:m.append(String.fromCharCode(29));break;case 30:R=!0;break;default:throw new Be}Q=0;break;case 3:R?(m.append(String.fromCharCode(Ee+224)),R=!1):m.append(String.fromCharCode(Ee+96)),Q=0;break;default:throw new Be}}}while(c.available()>0)},I.decodeTextSegment=function(c,m){var R=!1,Z=[],Q=0;do{if(8===c.available())return;var se=c.readBits(8);if(254===se)return;this.parseTwoBytes(se,c.readBits(8),Z);for(var de=0;de<3;de++){var Ee=Z[de];switch(Q){case 0:if(Ee<3)Q=Ee+1;else{if(!(Ee<this.TEXT_BASIC_SET_CHARS.length))throw new Be;var Ve=this.TEXT_BASIC_SET_CHARS[Ee];R?(m.append(String.fromCharCode(Ve.charCodeAt(0)+128)),R=!1):m.append(Ve)}break;case 1:R?(m.append(String.fromCharCode(Ee+128)),R=!1):m.append(String.fromCharCode(Ee)),Q=0;break;case 2:if(Ee<this.TEXT_SHIFT2_SET_CHARS.length)Ve=this.TEXT_SHIFT2_SET_CHARS[Ee],R?(m.append(String.fromCharCode(Ve.charCodeAt(0)+128)),R=!1):m.append(Ve);else switch(Ee){case 27:m.append(String.fromCharCode(29));break;case 30:R=!0;break;default:throw new Be}Q=0;break;case 3:if(!(Ee<this.TEXT_SHIFT3_SET_CHARS.length))throw new Be;Ve=this.TEXT_SHIFT3_SET_CHARS[Ee],R?(m.append(String.fromCharCode(Ve.charCodeAt(0)+128)),R=!1):m.append(Ve),Q=0;break;default:throw new Be}}}while(c.available()>0)},I.decodeAnsiX12Segment=function(c,m){var R=[];do{if(8===c.available())return;var Z=c.readBits(8);if(254===Z)return;this.parseTwoBytes(Z,c.readBits(8),R);for(var Q=0;Q<3;Q++){var se=R[Q];switch(se){case 0:m.append("\r");break;case 1:m.append("*");break;case 2:m.append(">");break;case 3:m.append(" ");break;default:if(se<14)m.append(String.fromCharCode(se+44));else{if(!(se<40))throw new Be;m.append(String.fromCharCode(se+51))}}}}while(c.available()>0)},I.parseTwoBytes=function(c,m,R){var Z=(c<<8)+m-1,Q=Math.floor(Z/1600);R[0]=Q,Z-=1600*Q,Q=Math.floor(Z/40),R[1]=Q,R[2]=Z-40*Q},I.decodeEdifactSegment=function(c,m){do{if(c.available()<=16)return;for(var R=0;R<4;R++){var Z=c.readBits(6);if(31===Z){var Q=8-c.getBitOffset();return void(8!==Q&&c.readBits(Q))}0==(32&Z)&&(Z|=64),m.append(String.fromCharCode(Z))}}while(c.available()>0)},I.decodeBase256Segment=function(c,m,R){var se,Z=1+c.getByteOffset(),Q=this.unrandomize255State(c.readBits(8),Z++);if((se=0===Q?c.available()/8|0:Q<250?Q:250*(Q-249)+this.unrandomize255State(c.readBits(8),Z++))<0)throw new Be;for(var de=new Uint8Array(se),Ee=0;Ee<se;Ee++){if(c.available()<8)throw new Be;de[Ee]=this.unrandomize255State(c.readBits(8),Z++)}R.push(de);try{m.append(Ft.decode(de,rt.ISO88591))}catch(Ve){throw new zt("Platform does not support required encoding: "+Ve.message)}},I.unrandomize255State=function(c,m){var Z=c-(149*m%255+1);return Z>=0?Z:Z+256},I.C40_BASIC_SET_CHARS=["*","*","*"," ","0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],I.C40_SHIFT2_SET_CHARS=["!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_"],I.TEXT_BASIC_SET_CHARS=["*","*","*"," ","0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],I.TEXT_SHIFT2_SET_CHARS=I.C40_SHIFT2_SET_CHARS,I.TEXT_SHIFT3_SET_CHARS=["`","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","{","|","}","~",String.fromCharCode(127)],I}();const Ln=Xr;var is=function(){function I(){this.rsDecoder=new Br(Ie.DATA_MATRIX_FIELD_256)}return I.prototype.decode=function(c){var m,R,Z=new Tt(c),Q=Z.getVersion(),se=Z.readCodewords(),de=Wt.getDataBlocks(se,Q),Ee=0;try{for(var Ve=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")}(de),mt=Ve.next();!mt.done;mt=Ve.next())Ee+=mt.value.getNumDataCodewords()}catch(mn){m={error:mn}}finally{try{mt&&!mt.done&&(R=Ve.return)&&R.call(Ve)}finally{if(m)throw m.error}}for(var Jt=new Uint8Array(Ee),Xt=de.length,Lr=0;Lr<Xt;Lr++){var Yr=de[Lr],on=Yr.getCodewords(),ln=Yr.getNumDataCodewords();this.correctErrors(on,ln);for(var en=0;en<ln;en++)Jt[en*Xt+Lr]=on[en]}return Ln.decode(Jt)},I.prototype.correctErrors=function(c,m){var R=new Int32Array(c);try{this.rsDecoder.decode(R,c.length-m)}catch{throw new K}for(var Z=0;Z<m;Z++)c[Z]=R[Z]},I}();const pi=is;var Ss=function(){function I(c){this.image=c,this.rectangleDetector=new ht(this.image)}return I.prototype.detect=function(){var c=this.rectangleDetector.detect(),m=this.detectSolid1(c);if((m=this.detectSolid2(m))[3]=this.correctTopRight(m),!m[3])throw new X;var R=(m=this.shiftToModuleCenter(m))[0],Z=m[1],Q=m[2],se=m[3],de=this.transitionsBetween(R,se)+1,Ee=this.transitionsBetween(Q,se)+1;1==(1&de)&&(de+=1),1==(1&Ee)&&(Ee+=1),4*de<7*Ee&&4*Ee<7*de&&(de=Ee=Math.max(de,Ee));var Ve=I.sampleGrid(this.image,R,Z,Q,se,de,Ee);return new fr(Ve,[R,Z,Q,se])},I.shiftPoint=function(c,m,R){var Z=(m.getX()-c.getX())/(R+1),Q=(m.getY()-c.getY())/(R+1);return new Tn(c.getX()+Z,c.getY()+Q)},I.moveAway=function(c,m,R){var Z=c.getX(),Q=c.getY();return Z<m?Z-=1:Z+=1,Q<R?Q-=1:Q+=1,new Tn(Z,Q)},I.prototype.detectSolid1=function(c){var m=c[0],R=c[1],Z=c[3],Q=c[2],se=this.transitionsBetween(m,R),de=this.transitionsBetween(R,Z),Ee=this.transitionsBetween(Z,Q),Ve=this.transitionsBetween(Q,m),mt=se,It=[Q,m,R,Z];return mt>de&&(mt=de,It[0]=m,It[1]=R,It[2]=Z,It[3]=Q),mt>Ee&&(mt=Ee,It[0]=R,It[1]=Z,It[2]=Q,It[3]=m),mt>Ve&&(It[0]=Z,It[1]=Q,It[2]=m,It[3]=R),It},I.prototype.detectSolid2=function(c){var m=c[0],R=c[1],Z=c[2],Q=c[3],se=this.transitionsBetween(m,Q),de=I.shiftPoint(R,Z,4*(se+1)),Ee=I.shiftPoint(Z,R,4*(se+1));return this.transitionsBetween(de,m)<this.transitionsBetween(Ee,Q)?(c[0]=m,c[1]=R,c[2]=Z,c[3]=Q):(c[0]=R,c[1]=Z,c[2]=Q,c[3]=m),c},I.prototype.correctTopRight=function(c){var m=c[0],R=c[1],Z=c[2],Q=c[3],se=this.transitionsBetween(m,Q),de=this.transitionsBetween(R,Q),Ee=I.shiftPoint(m,R,4*(de+1)),Ve=I.shiftPoint(Z,R,4*(se+1));se=this.transitionsBetween(Ee,Q),de=this.transitionsBetween(Ve,Q);var mt=new Tn(Q.getX()+(Z.getX()-R.getX())/(se+1),Q.getY()+(Z.getY()-R.getY())/(se+1)),It=new Tn(Q.getX()+(m.getX()-R.getX())/(de+1),Q.getY()+(m.getY()-R.getY())/(de+1));return this.isValid(mt)?this.isValid(It)?this.transitionsBetween(Ee,mt)+this.transitionsBetween(Ve,mt)>this.transitionsBetween(Ee,It)+this.transitionsBetween(Ve,It)?mt:It:mt:this.isValid(It)?It:null},I.prototype.shiftToModuleCenter=function(c){var m=c[0],R=c[1],Z=c[2],Q=c[3],se=this.transitionsBetween(m,Q)+1,de=this.transitionsBetween(Z,Q)+1,Ee=I.shiftPoint(m,R,4*de),Ve=I.shiftPoint(Z,R,4*se);1==(1&(se=this.transitionsBetween(Ee,Q)+1))&&(se+=1),1==(1&(de=this.transitionsBetween(Ve,Q)+1))&&(de+=1);var Jt,Xt,mt=(m.getX()+R.getX()+Z.getX()+Q.getX())/4,It=(m.getY()+R.getY()+Z.getY()+Q.getY())/4;return m=I.moveAway(m,mt,It),R=I.moveAway(R,mt,It),Z=I.moveAway(Z,mt,It),Q=I.moveAway(Q,mt,It),Ee=I.shiftPoint(m,R,4*de),Ee=I.shiftPoint(Ee,Q,4*se),Jt=I.shiftPoint(R,m,4*de),Jt=I.shiftPoint(Jt,Z,4*se),Ve=I.shiftPoint(Z,Q,4*de),Ve=I.shiftPoint(Ve,R,4*se),Xt=I.shiftPoint(Q,Z,4*de),[Ee,Jt,Ve,Xt=I.shiftPoint(Xt,m,4*se)]},I.prototype.isValid=function(c){return c.getX()>=0&&c.getX()<this.image.getWidth()&&c.getY()>0&&c.getY()<this.image.getHeight()},I.sampleGrid=function(c,m,R,Z,Q,se,de){return Ae.getInstance().sampleGrid(c,se,de,.5,.5,se-.5,.5,se-.5,de-.5,.5,de-.5,m.getX(),m.getY(),Q.getX(),Q.getY(),Z.getX(),Z.getY(),R.getX(),R.getY())},I.prototype.transitionsBetween=function(c,m){var R=Math.trunc(c.getX()),Z=Math.trunc(c.getY()),Q=Math.trunc(m.getX()),se=Math.trunc(m.getY()),de=Math.abs(se-Z)>Math.abs(Q-R);if(de){var Ee=R;R=Z,Z=Ee,Ee=Q,Q=se,se=Ee}for(var Ve=Math.abs(Q-R),mt=Math.abs(se-Z),It=-Ve/2,Jt=Z<se?1:-1,Xt=R<Q?1:-1,Lr=0,Yr=this.image.get(de?Z:R,de?R:Z),on=R,ln=Z;on!==Q;on+=Xt){var en=this.image.get(de?ln:on,de?on:ln);if(en!==Yr&&(Lr++,Yr=en),(It+=mt)>0){if(ln===se)break;ln+=Jt,It-=Ve}}return Lr},I}();const cs=Ss;var Wi=function(){function I(){this.decoder=new pi}return I.prototype.decode=function(c,m){var R,Z;if(void 0===m&&(m=null),null!=m&&m.has(At.PURE_BARCODE)){var Q=I.extractPureBits(c.getBlackMatrix());R=this.decoder.decode(Q),Z=I.NO_POINTS}else{var se=new cs(c.getBlackMatrix()).detect();R=this.decoder.decode(se.getBits()),Z=se.getPoints()}var de=R.getRawBytes(),Ee=new Fe(R.getText(),de,8*de.length,Z,St.DATA_MATRIX,s.currentTimeMillis()),Ve=R.getByteSegments();null!=Ve&&Ee.putMetadata(ke.BYTE_SEGMENTS,Ve);var mt=R.getECLevel();return null!=mt&&Ee.putMetadata(ke.ERROR_CORRECTION_LEVEL,mt),Ee},I.prototype.reset=function(){},I.extractPureBits=function(c){var m=c.getTopLeftOnBit(),R=c.getBottomRightOnBit();if(null==m||null==R)throw new X;var Z=this.moduleSize(m,c),Q=m[1],de=m[0],Ve=(R[0]-de+1)/Z,mt=(R[1]-Q+1)/Z;if(Ve<=0||mt<=0)throw new X;var It=Z/2;Q+=It,de+=It;for(var Jt=new nt(Ve,mt),Xt=0;Xt<mt;Xt++)for(var Lr=Q+Xt*Z,Yr=0;Yr<Ve;Yr++)c.get(de+Yr*Z,Lr)&&Jt.set(Yr,Xt);return Jt},I.moduleSize=function(c,m){for(var R=m.getWidth(),Z=c[0],Q=c[1];Z<R&&m.get(Z,Q);)Z++;if(Z===R)throw new X;var se=Z-c[0];if(0===se)throw new X;return se},I.NO_POINTS=[],I}();const Zi=Wi;var Bi=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),xi=(function(I){Bi(function c(m){return void 0===m&&(m=500),I.call(this,new Zi,m)||this},I)}(kt),(()=>(function(I){I[I.L=0]="L",I[I.M=1]="M",I[I.Q=2]="Q",I[I.H=3]="H"}(xi||(xi={})),xi))()),kl=function(){function I(c,m,R){this.value=c,this.stringValue=m,this.bits=R,I.FOR_BITS.set(R,this),I.FOR_VALUE.set(c,this)}return I.prototype.getValue=function(){return this.value},I.prototype.getBits=function(){return this.bits},I.fromString=function(c){switch(c){case"L":return I.L;case"M":return I.M;case"Q":return I.Q;case"H":return I.H;default:throw new F(c+"not available")}},I.prototype.toString=function(){return this.stringValue},I.prototype.equals=function(c){return c instanceof I&&this.value===c.value},I.forBits=function(c){if(c<0||c>=I.FOR_BITS.size)throw new U;return I.FOR_BITS.get(c)},I.FOR_BITS=new Map,I.FOR_VALUE=new Map,I.L=new I(xi.L,"L",1),I.M=new I(xi.M,"M",0),I.Q=new I(xi.Q,"Q",3),I.H=new I(xi.H,"H",2),I}();const vo=kl;var hl=function(){function I(c){this.errorCorrectionLevel=vo.forBits(c>>3&3),this.dataMask=7&c}return I.numBitsDiffering=function(c,m){return ae.bitCount(c^m)},I.decodeFormatInformation=function(c,m){var R=I.doDecodeFormatInformation(c,m);return null!==R?R:I.doDecodeFormatInformation(c^I.FORMAT_INFO_MASK_QR,m^I.FORMAT_INFO_MASK_QR)},I.doDecodeFormatInformation=function(c,m){var R,Z,Q=Number.MAX_SAFE_INTEGER,se=0;try{for(var de=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")}(I.FORMAT_INFO_DECODE_LOOKUP),Ee=de.next();!Ee.done;Ee=de.next()){var Ve=Ee.value,mt=Ve[0];if(mt===c||mt===m)return new I(Ve[1]);var It=I.numBitsDiffering(c,mt);It<Q&&(se=Ve[1],Q=It),c!==m&&(It=I.numBitsDiffering(m,mt))<Q&&(se=Ve[1],Q=It)}}catch(Jt){R={error:Jt}}finally{try{Ee&&!Ee.done&&(Z=de.return)&&Z.call(de)}finally{if(R)throw R.error}}return Q<=3?new I(se):null},I.prototype.getErrorCorrectionLevel=function(){return this.errorCorrectionLevel},I.prototype.getDataMask=function(){return this.dataMask},I.prototype.hashCode=function(){return this.errorCorrectionLevel.getBits()<<3|this.dataMask},I.prototype.equals=function(c){return c instanceof I&&(this.errorCorrectionLevel===c.errorCorrectionLevel&&this.dataMask===c.dataMask)},I.FORMAT_INFO_MASK_QR=21522,I.FORMAT_INFO_DECODE_LOOKUP=[Int32Array.from([21522,0]),Int32Array.from([20773,1]),Int32Array.from([24188,2]),Int32Array.from([23371,3]),Int32Array.from([17913,4]),Int32Array.from([16590,5]),Int32Array.from([20375,6]),Int32Array.from([19104,7]),Int32Array.from([30660,8]),Int32Array.from([29427,9]),Int32Array.from([32170,10]),Int32Array.from([30877,11]),Int32Array.from([26159,12]),Int32Array.from([25368,13]),Int32Array.from([27713,14]),Int32Array.from([26998,15]),Int32Array.from([5769,16]),Int32Array.from([5054,17]),Int32Array.from([7399,18]),Int32Array.from([6608,19]),Int32Array.from([1890,20]),Int32Array.from([597,21]),Int32Array.from([3340,22]),Int32Array.from([2107,23]),Int32Array.from([13663,24]),Int32Array.from([12392,25]),Int32Array.from([16177,26]),Int32Array.from([14854,27]),Int32Array.from([9396,28]),Int32Array.from([8579,29]),Int32Array.from([11994,30]),Int32Array.from([11245,31])],I}();const ms=hl;var ba=function(){function I(c){for(var m=[],R=1;R<arguments.length;R++)m[R-1]=arguments[R];this.ecCodewordsPerBlock=c,this.ecBlocks=m}return I.prototype.getECCodewordsPerBlock=function(){return this.ecCodewordsPerBlock},I.prototype.getNumBlocks=function(){var c,m,R=0,Z=this.ecBlocks;try{for(var Q=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")}(Z),se=Q.next();!se.done;se=Q.next())R+=se.value.getCount()}catch(Ee){c={error:Ee}}finally{try{se&&!se.done&&(m=Q.return)&&m.call(Q)}finally{if(c)throw c.error}}return R},I.prototype.getTotalECCodewords=function(){return this.ecCodewordsPerBlock*this.getNumBlocks()},I.prototype.getECBlocks=function(){return this.ecBlocks},I}();const gn=ba;var Xo=function(){function I(c,m){this.count=c,this.dataCodewords=m}return I.prototype.getCount=function(){return this.count},I.prototype.getDataCodewords=function(){return this.dataCodewords},I}();const Hr=Xo;var ou=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")},Hs=function(){function I(c,m){for(var R,Z,Q=[],se=2;se<arguments.length;se++)Q[se-2]=arguments[se];this.versionNumber=c,this.alignmentPatternCenters=m,this.ecBlocks=Q;var de=0,Ee=Q[0].getECCodewordsPerBlock(),Ve=Q[0].getECBlocks();try{for(var mt=ou(Ve),It=mt.next();!It.done;It=mt.next()){var Jt=It.value;de+=Jt.getCount()*(Jt.getDataCodewords()+Ee)}}catch(Xt){R={error:Xt}}finally{try{It&&!It.done&&(Z=mt.return)&&Z.call(mt)}finally{if(R)throw R.error}}this.totalCodewords=de}return I.prototype.getVersionNumber=function(){return this.versionNumber},I.prototype.getAlignmentPatternCenters=function(){return this.alignmentPatternCenters},I.prototype.getTotalCodewords=function(){return this.totalCodewords},I.prototype.getDimensionForVersion=function(){return 17+4*this.versionNumber},I.prototype.getECBlocksForLevel=function(c){return this.ecBlocks[c.getValue()]},I.getProvisionalVersionForDimension=function(c){if(c%4!=1)throw new Be;try{return this.getVersionForNumber((c-17)/4)}catch{throw new Be}},I.getVersionForNumber=function(c){if(c<1||c>40)throw new U;return I.VERSIONS[c-1]},I.decodeVersionInformation=function(c){for(var m=Number.MAX_SAFE_INTEGER,R=0,Z=0;Z<I.VERSION_DECODE_INFO.length;Z++){var Q=I.VERSION_DECODE_INFO[Z];if(Q===c)return I.getVersionForNumber(Z+7);var se=ms.numBitsDiffering(c,Q);se<m&&(R=Z+7,m=se)}return m<=3?I.getVersionForNumber(R):null},I.prototype.buildFunctionPattern=function(){var c=this.getDimensionForVersion(),m=new nt(c);m.setRegion(0,0,9,9),m.setRegion(c-8,0,8,9),m.setRegion(0,c-8,9,8);for(var R=this.alignmentPatternCenters.length,Z=0;Z<R;Z++)for(var Q=this.alignmentPatternCenters[Z]-2,se=0;se<R;se++)0===Z&&(0===se||se===R-1)||Z===R-1&&0===se||m.setRegion(this.alignmentPatternCenters[se]-2,Q,5,5);return m.setRegion(6,9,1,c-17),m.setRegion(9,6,c-17,1),this.versionNumber>6&&(m.setRegion(c-11,0,3,6),m.setRegion(0,c-11,6,3)),m},I.prototype.toString=function(){return""+this.versionNumber},I.VERSION_DECODE_INFO=Int32Array.from([31892,34236,39577,42195,48118,51042,55367,58893,63784,68472,70749,76311,79154,84390,87683,92361,96236,102084,102881,110507,110734,117786,119615,126325,127568,133589,136944,141498,145311,150283,152622,158308,161089,167017]),I.VERSIONS=[new I(1,new Int32Array(0),new gn(7,new Hr(1,19)),new gn(10,new Hr(1,16)),new gn(13,new Hr(1,13)),new gn(17,new Hr(1,9))),new I(2,Int32Array.from([6,18]),new gn(10,new Hr(1,34)),new gn(16,new Hr(1,28)),new gn(22,new Hr(1,22)),new gn(28,new Hr(1,16))),new I(3,Int32Array.from([6,22]),new gn(15,new Hr(1,55)),new gn(26,new Hr(1,44)),new gn(18,new Hr(2,17)),new gn(22,new Hr(2,13))),new I(4,Int32Array.from([6,26]),new gn(20,new Hr(1,80)),new gn(18,new Hr(2,32)),new gn(26,new Hr(2,24)),new gn(16,new Hr(4,9))),new I(5,Int32Array.from([6,30]),new gn(26,new Hr(1,108)),new gn(24,new Hr(2,43)),new gn(18,new Hr(2,15),new Hr(2,16)),new gn(22,new Hr(2,11),new Hr(2,12))),new I(6,Int32Array.from([6,34]),new gn(18,new Hr(2,68)),new gn(16,new Hr(4,27)),new gn(24,new Hr(4,19)),new gn(28,new Hr(4,15))),new I(7,Int32Array.from([6,22,38]),new gn(20,new Hr(2,78)),new gn(18,new Hr(4,31)),new gn(18,new Hr(2,14),new Hr(4,15)),new gn(26,new Hr(4,13),new Hr(1,14))),new I(8,Int32Array.from([6,24,42]),new gn(24,new Hr(2,97)),new gn(22,new Hr(2,38),new Hr(2,39)),new gn(22,new Hr(4,18),new Hr(2,19)),new gn(26,new Hr(4,14),new Hr(2,15))),new I(9,Int32Array.from([6,26,46]),new gn(30,new Hr(2,116)),new gn(22,new Hr(3,36),new Hr(2,37)),new gn(20,new Hr(4,16),new Hr(4,17)),new gn(24,new Hr(4,12),new Hr(4,13))),new I(10,Int32Array.from([6,28,50]),new gn(18,new Hr(2,68),new Hr(2,69)),new gn(26,new Hr(4,43),new Hr(1,44)),new gn(24,new Hr(6,19),new Hr(2,20)),new gn(28,new Hr(6,15),new Hr(2,16))),new I(11,Int32Array.from([6,30,54]),new gn(20,new Hr(4,81)),new gn(30,new Hr(1,50),new Hr(4,51)),new gn(28,new Hr(4,22),new Hr(4,23)),new gn(24,new Hr(3,12),new Hr(8,13))),new I(12,Int32Array.from([6,32,58]),new gn(24,new Hr(2,92),new Hr(2,93)),new gn(22,new Hr(6,36),new Hr(2,37)),new gn(26,new Hr(4,20),new Hr(6,21)),new gn(28,new Hr(7,14),new Hr(4,15))),new I(13,Int32Array.from([6,34,62]),new gn(26,new Hr(4,107)),new gn(22,new Hr(8,37),new Hr(1,38)),new gn(24,new Hr(8,20),new Hr(4,21)),new gn(22,new Hr(12,11),new Hr(4,12))),new I(14,Int32Array.from([6,26,46,66]),new gn(30,new Hr(3,115),new Hr(1,116)),new gn(24,new Hr(4,40),new Hr(5,41)),new gn(20,new Hr(11,16),new Hr(5,17)),new gn(24,new Hr(11,12),new Hr(5,13))),new I(15,Int32Array.from([6,26,48,70]),new gn(22,new Hr(5,87),new Hr(1,88)),new gn(24,new Hr(5,41),new Hr(5,42)),new gn(30,new Hr(5,24),new Hr(7,25)),new gn(24,new Hr(11,12),new Hr(7,13))),new I(16,Int32Array.from([6,26,50,74]),new gn(24,new Hr(5,98),new Hr(1,99)),new gn(28,new Hr(7,45),new Hr(3,46)),new gn(24,new Hr(15,19),new Hr(2,20)),new gn(30,new Hr(3,15),new Hr(13,16))),new I(17,Int32Array.from([6,30,54,78]),new gn(28,new Hr(1,107),new Hr(5,108)),new gn(28,new Hr(10,46),new Hr(1,47)),new gn(28,new Hr(1,22),new Hr(15,23)),new gn(28,new Hr(2,14),new Hr(17,15))),new I(18,Int32Array.from([6,30,56,82]),new gn(30,new Hr(5,120),new Hr(1,121)),new gn(26,new Hr(9,43),new Hr(4,44)),new gn(28,new Hr(17,22),new Hr(1,23)),new gn(28,new Hr(2,14),new Hr(19,15))),new I(19,Int32Array.from([6,30,58,86]),new gn(28,new Hr(3,113),new Hr(4,114)),new gn(26,new Hr(3,44),new Hr(11,45)),new gn(26,new Hr(17,21),new Hr(4,22)),new gn(26,new Hr(9,13),new Hr(16,14))),new I(20,Int32Array.from([6,34,62,90]),new gn(28,new Hr(3,107),new Hr(5,108)),new gn(26,new Hr(3,41),new Hr(13,42)),new gn(30,new Hr(15,24),new Hr(5,25)),new gn(28,new Hr(15,15),new Hr(10,16))),new I(21,Int32Array.from([6,28,50,72,94]),new gn(28,new Hr(4,116),new Hr(4,117)),new gn(26,new Hr(17,42)),new gn(28,new Hr(17,22),new Hr(6,23)),new gn(30,new Hr(19,16),new Hr(6,17))),new I(22,Int32Array.from([6,26,50,74,98]),new gn(28,new Hr(2,111),new Hr(7,112)),new gn(28,new Hr(17,46)),new gn(30,new Hr(7,24),new Hr(16,25)),new gn(24,new Hr(34,13))),new I(23,Int32Array.from([6,30,54,78,102]),new gn(30,new Hr(4,121),new Hr(5,122)),new gn(28,new Hr(4,47),new Hr(14,48)),new gn(30,new Hr(11,24),new Hr(14,25)),new gn(30,new Hr(16,15),new Hr(14,16))),new I(24,Int32Array.from([6,28,54,80,106]),new gn(30,new Hr(6,117),new Hr(4,118)),new gn(28,new Hr(6,45),new Hr(14,46)),new gn(30,new Hr(11,24),new Hr(16,25)),new gn(30,new Hr(30,16),new Hr(2,17))),new I(25,Int32Array.from([6,32,58,84,110]),new gn(26,new Hr(8,106),new Hr(4,107)),new gn(28,new Hr(8,47),new Hr(13,48)),new gn(30,new Hr(7,24),new Hr(22,25)),new gn(30,new Hr(22,15),new Hr(13,16))),new I(26,Int32Array.from([6,30,58,86,114]),new gn(28,new Hr(10,114),new Hr(2,115)),new gn(28,new Hr(19,46),new Hr(4,47)),new gn(28,new Hr(28,22),new Hr(6,23)),new gn(30,new Hr(33,16),new Hr(4,17))),new I(27,Int32Array.from([6,34,62,90,118]),new gn(30,new Hr(8,122),new Hr(4,123)),new gn(28,new Hr(22,45),new Hr(3,46)),new gn(30,new Hr(8,23),new Hr(26,24)),new gn(30,new Hr(12,15),new Hr(28,16))),new I(28,Int32Array.from([6,26,50,74,98,122]),new gn(30,new Hr(3,117),new Hr(10,118)),new gn(28,new Hr(3,45),new Hr(23,46)),new gn(30,new Hr(4,24),new Hr(31,25)),new gn(30,new Hr(11,15),new Hr(31,16))),new I(29,Int32Array.from([6,30,54,78,102,126]),new gn(30,new Hr(7,116),new Hr(7,117)),new gn(28,new Hr(21,45),new Hr(7,46)),new gn(30,new Hr(1,23),new Hr(37,24)),new gn(30,new Hr(19,15),new Hr(26,16))),new I(30,Int32Array.from([6,26,52,78,104,130]),new gn(30,new Hr(5,115),new Hr(10,116)),new gn(28,new Hr(19,47),new Hr(10,48)),new gn(30,new Hr(15,24),new Hr(25,25)),new gn(30,new Hr(23,15),new Hr(25,16))),new I(31,Int32Array.from([6,30,56,82,108,134]),new gn(30,new Hr(13,115),new Hr(3,116)),new gn(28,new Hr(2,46),new Hr(29,47)),new gn(30,new Hr(42,24),new Hr(1,25)),new gn(30,new Hr(23,15),new Hr(28,16))),new I(32,Int32Array.from([6,34,60,86,112,138]),new gn(30,new Hr(17,115)),new gn(28,new Hr(10,46),new Hr(23,47)),new gn(30,new Hr(10,24),new Hr(35,25)),new gn(30,new Hr(19,15),new Hr(35,16))),new I(33,Int32Array.from([6,30,58,86,114,142]),new gn(30,new Hr(17,115),new Hr(1,116)),new gn(28,new Hr(14,46),new Hr(21,47)),new gn(30,new Hr(29,24),new Hr(19,25)),new gn(30,new Hr(11,15),new Hr(46,16))),new I(34,Int32Array.from([6,34,62,90,118,146]),new gn(30,new Hr(13,115),new Hr(6,116)),new gn(28,new Hr(14,46),new Hr(23,47)),new gn(30,new Hr(44,24),new Hr(7,25)),new gn(30,new Hr(59,16),new Hr(1,17))),new I(35,Int32Array.from([6,30,54,78,102,126,150]),new gn(30,new Hr(12,121),new Hr(7,122)),new gn(28,new Hr(12,47),new Hr(26,48)),new gn(30,new Hr(39,24),new Hr(14,25)),new gn(30,new Hr(22,15),new Hr(41,16))),new I(36,Int32Array.from([6,24,50,76,102,128,154]),new gn(30,new Hr(6,121),new Hr(14,122)),new gn(28,new Hr(6,47),new Hr(34,48)),new gn(30,new Hr(46,24),new Hr(10,25)),new gn(30,new Hr(2,15),new Hr(64,16))),new I(37,Int32Array.from([6,28,54,80,106,132,158]),new gn(30,new Hr(17,122),new Hr(4,123)),new gn(28,new Hr(29,46),new Hr(14,47)),new gn(30,new Hr(49,24),new Hr(10,25)),new gn(30,new Hr(24,15),new Hr(46,16))),new I(38,Int32Array.from([6,32,58,84,110,136,162]),new gn(30,new Hr(4,122),new Hr(18,123)),new gn(28,new Hr(13,46),new Hr(32,47)),new gn(30,new Hr(48,24),new Hr(14,25)),new gn(30,new Hr(42,15),new Hr(32,16))),new I(39,Int32Array.from([6,26,54,82,110,138,166]),new gn(30,new Hr(20,117),new Hr(4,118)),new gn(28,new Hr(40,47),new Hr(7,48)),new gn(30,new Hr(43,24),new Hr(22,25)),new gn(30,new Hr(10,15),new Hr(67,16))),new I(40,Int32Array.from([6,30,58,86,114,142,170]),new gn(30,new Hr(19,118),new Hr(6,119)),new gn(28,new Hr(18,47),new Hr(31,48)),new gn(30,new Hr(34,24),new Hr(34,25)),new gn(30,new Hr(20,15),new Hr(61,16)))],I}();const pl=Hs;var oa=(()=>(function(I){I[I.DATA_MASK_000=0]="DATA_MASK_000",I[I.DATA_MASK_001=1]="DATA_MASK_001",I[I.DATA_MASK_010=2]="DATA_MASK_010",I[I.DATA_MASK_011=3]="DATA_MASK_011",I[I.DATA_MASK_100=4]="DATA_MASK_100",I[I.DATA_MASK_101=5]="DATA_MASK_101",I[I.DATA_MASK_110=6]="DATA_MASK_110",I[I.DATA_MASK_111=7]="DATA_MASK_111"}(oa||(oa={})),oa))(),Lo=function(){function I(c,m){this.value=c,this.isMasked=m}return I.prototype.unmaskBitMatrix=function(c,m){for(var R=0;R<m;R++)for(var Z=0;Z<m;Z++)this.isMasked(R,Z)&&c.flip(Z,R)},I.values=new Map([[oa.DATA_MASK_000,new I(oa.DATA_MASK_000,function(c,m){return 0==(c+m&1)})],[oa.DATA_MASK_001,new I(oa.DATA_MASK_001,function(c,m){return 0==(1&c)})],[oa.DATA_MASK_010,new I(oa.DATA_MASK_010,function(c,m){return m%3==0})],[oa.DATA_MASK_011,new I(oa.DATA_MASK_011,function(c,m){return(c+m)%3==0})],[oa.DATA_MASK_100,new I(oa.DATA_MASK_100,function(c,m){return 0==(Math.floor(c/2)+Math.floor(m/3)&1)})],[oa.DATA_MASK_101,new I(oa.DATA_MASK_101,function(c,m){return c*m%6==0})],[oa.DATA_MASK_110,new I(oa.DATA_MASK_110,function(c,m){return c*m%6<3})],[oa.DATA_MASK_111,new I(oa.DATA_MASK_111,function(c,m){return 0==(c+m+c*m%3&1)})]]),I}();const Nl=Lo;var gl=function(){function I(c){var m=c.getHeight();if(m<21||1!=(3&m))throw new Be;this.bitMatrix=c}return I.prototype.readFormatInformation=function(){if(null!=this.parsedFormatInfo)return this.parsedFormatInfo;for(var c=0,m=0;m<6;m++)c=this.copyBit(m,8,c);c=this.copyBit(7,8,c),c=this.copyBit(8,8,c),c=this.copyBit(8,7,c);for(var R=5;R>=0;R--)c=this.copyBit(8,R,c);var Z=this.bitMatrix.getHeight(),Q=0,se=Z-7;for(R=Z-1;R>=se;R--)Q=this.copyBit(8,R,Q);for(m=Z-8;m<Z;m++)Q=this.copyBit(m,8,Q);if(this.parsedFormatInfo=ms.decodeFormatInformation(c,Q),null!==this.parsedFormatInfo)return this.parsedFormatInfo;throw new Be},I.prototype.readVersion=function(){if(null!=this.parsedVersion)return this.parsedVersion;var c=this.bitMatrix.getHeight(),m=Math.floor((c-17)/4);if(m<=6)return pl.getVersionForNumber(m);for(var R=0,Z=c-11,Q=5;Q>=0;Q--)for(var se=c-9;se>=Z;se--)R=this.copyBit(se,Q,R);var de=pl.decodeVersionInformation(R);if(null!==de&&de.getDimensionForVersion()===c)return this.parsedVersion=de,de;for(R=0,se=5;se>=0;se--)for(Q=c-9;Q>=Z;Q--)R=this.copyBit(se,Q,R);if(null!==(de=pl.decodeVersionInformation(R))&&de.getDimensionForVersion()===c)return this.parsedVersion=de,de;throw new Be},I.prototype.copyBit=function(c,m,R){return(this.isMirror?this.bitMatrix.get(m,c):this.bitMatrix.get(c,m))?R<<1|1:R<<1},I.prototype.readCodewords=function(){var c=this.readFormatInformation(),m=this.readVersion(),R=Nl.values.get(c.getDataMask()),Z=this.bitMatrix.getHeight();R.unmaskBitMatrix(this.bitMatrix,Z);for(var Q=m.buildFunctionPattern(),se=!0,de=new Uint8Array(m.getTotalCodewords()),Ee=0,Ve=0,mt=0,It=Z-1;It>0;It-=2){6===It&&It--;for(var Jt=0;Jt<Z;Jt++)for(var Xt=se?Z-1-Jt:Jt,Lr=0;Lr<2;Lr++)Q.get(It-Lr,Xt)||(mt++,Ve<<=1,this.bitMatrix.get(It-Lr,Xt)&&(Ve|=1),8===mt&&(de[Ee++]=Ve,mt=0,Ve=0));se=!se}if(Ee!==m.getTotalCodewords())throw new Be;return de},I.prototype.remask=function(){if(null!==this.parsedFormatInfo){var c=Nl.values[this.parsedFormatInfo.getDataMask()],m=this.bitMatrix.getHeight();c.unmaskBitMatrix(this.bitMatrix,m)}},I.prototype.setMirror=function(c){this.parsedVersion=null,this.parsedFormatInfo=null,this.isMirror=c},I.prototype.mirror=function(){for(var c=this.bitMatrix,m=0,R=c.getWidth();m<R;m++)for(var Z=m+1,Q=c.getHeight();Z<Q;Z++)c.get(m,Z)!==c.get(Z,m)&&(c.flip(Z,m),c.flip(m,Z))},I}();const $d=gl;var Ac=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")},lu=function(){function I(c,m){this.numDataCodewords=c,this.codewords=m}return I.getDataBlocks=function(c,m,R){var Z,Q,se,de;if(c.length!==m.getTotalCodewords())throw new U;var Ee=m.getECBlocksForLevel(R),Ve=0,mt=Ee.getECBlocks();try{for(var It=Ac(mt),Jt=It.next();!Jt.done;Jt=It.next())Ve+=(Xt=Jt.value).getCount()}catch(ca){Z={error:ca}}finally{try{Jt&&!Jt.done&&(Q=It.return)&&Q.call(It)}finally{if(Z)throw Z.error}}var Lr=new Array(Ve),Yr=0;try{for(var on=Ac(mt),ln=on.next();!ln.done;ln=on.next())for(var Xt=ln.value,en=0;en<Xt.getCount();en++){var mn=Xt.getDataCodewords(),In=Ee.getECCodewordsPerBlock()+mn;Lr[Yr++]=new I(mn,new Uint8Array(In))}}catch(ca){se={error:ca}}finally{try{ln&&!ln.done&&(de=on.return)&&de.call(on)}finally{if(se)throw se.error}}for(var jn=Lr[0].codewords.length,Zn=Lr.length-1;Zn>=0&&Lr[Zn].codewords.length!==jn;)Zn--;Zn++;var mi=jn-Ee.getECCodewordsPerBlock(),fs=0;for(en=0;en<mi;en++)for(var Ri=0;Ri<Yr;Ri++)Lr[Ri].codewords[en]=c[fs++];for(Ri=Zn;Ri<Yr;Ri++)Lr[Ri].codewords[mi]=c[fs++];var Ms=Lr[0].codewords.length;for(en=mi;en<Ms;en++)for(Ri=0;Ri<Yr;Ri++)Lr[Ri].codewords[Ri<Zn?en:en+1]=c[fs++];return Lr},I.prototype.getNumDataCodewords=function(){return this.numDataCodewords},I.prototype.getCodewords=function(){return this.codewords},I}();const ad=lu;var Ts=(()=>(function(I){I[I.TERMINATOR=0]="TERMINATOR",I[I.NUMERIC=1]="NUMERIC",I[I.ALPHANUMERIC=2]="ALPHANUMERIC",I[I.STRUCTURED_APPEND=3]="STRUCTURED_APPEND",I[I.BYTE=4]="BYTE",I[I.ECI=5]="ECI",I[I.KANJI=6]="KANJI",I[I.FNC1_FIRST_POSITION=7]="FNC1_FIRST_POSITION",I[I.FNC1_SECOND_POSITION=8]="FNC1_SECOND_POSITION",I[I.HANZI=9]="HANZI"}(Ts||(Ts={})),Ts))(),Ou=function(){function I(c,m,R,Z){this.value=c,this.stringValue=m,this.characterCountBitsForVersions=R,this.bits=Z,I.FOR_BITS.set(Z,this),I.FOR_VALUE.set(c,this)}return I.forBits=function(c){var m=I.FOR_BITS.get(c);if(void 0===m)throw new U;return m},I.prototype.getCharacterCountBits=function(c){var m=c.getVersionNumber();return this.characterCountBitsForVersions[m<=9?0:m<=26?1:2]},I.prototype.getValue=function(){return this.value},I.prototype.getBits=function(){return this.bits},I.prototype.equals=function(c){return c instanceof I&&this.value===c.value},I.prototype.toString=function(){return this.stringValue},I.FOR_BITS=new Map,I.FOR_VALUE=new Map,I.TERMINATOR=new I(Ts.TERMINATOR,"TERMINATOR",Int32Array.from([0,0,0]),0),I.NUMERIC=new I(Ts.NUMERIC,"NUMERIC",Int32Array.from([10,12,14]),1),I.ALPHANUMERIC=new I(Ts.ALPHANUMERIC,"ALPHANUMERIC",Int32Array.from([9,11,13]),2),I.STRUCTURED_APPEND=new I(Ts.STRUCTURED_APPEND,"STRUCTURED_APPEND",Int32Array.from([0,0,0]),3),I.BYTE=new I(Ts.BYTE,"BYTE",Int32Array.from([8,16,16]),4),I.ECI=new I(Ts.ECI,"ECI",Int32Array.from([0,0,0]),7),I.KANJI=new I(Ts.KANJI,"KANJI",Int32Array.from([8,10,12]),8),I.FNC1_FIRST_POSITION=new I(Ts.FNC1_FIRST_POSITION,"FNC1_FIRST_POSITION",Int32Array.from([0,0,0]),5),I.FNC1_SECOND_POSITION=new I(Ts.FNC1_SECOND_POSITION,"FNC1_SECOND_POSITION",Int32Array.from([0,0,0]),9),I.HANZI=new I(Ts.HANZI,"HANZI",Int32Array.from([8,10,12]),13),I}();const os=Ou;var Ji=function(){function I(){}return I.decode=function(c,m,R,Z){var Q=new Pr(c),se=new Dt,de=new Array,Ee=-1,Ve=-1;try{var mt=null,It=!1,Jt=void 0;do{if(Q.available()<4)Jt=os.TERMINATOR;else{var Xt=Q.readBits(4);Jt=os.forBits(Xt)}switch(Jt){case os.TERMINATOR:break;case os.FNC1_FIRST_POSITION:case os.FNC1_SECOND_POSITION:It=!0;break;case os.STRUCTURED_APPEND:if(Q.available()<16)throw new Be;Ee=Q.readBits(8),Ve=Q.readBits(8);break;case os.ECI:var Lr=I.parseECIValue(Q);if(null===(mt=be.getCharacterSetECIByValue(Lr)))throw new Be;break;case os.HANZI:var Yr=Q.readBits(4),on=Q.readBits(Jt.getCharacterCountBits(m));Yr===I.GB2312_SUBSET&&I.decodeHanziSegment(Q,se,on);break;default:var ln=Q.readBits(Jt.getCharacterCountBits(m));switch(Jt){case os.NUMERIC:I.decodeNumericSegment(Q,se,ln);break;case os.ALPHANUMERIC:I.decodeAlphanumericSegment(Q,se,ln,It);break;case os.BYTE:I.decodeByteSegment(Q,se,ln,mt,de,Z);break;case os.KANJI:I.decodeKanjiSegment(Q,se,ln);break;default:throw new Be}}}while(Jt!==os.TERMINATOR)}catch{throw new Be}return new vt(c,se.toString(),0===de.length?null:de,null===R?null:R.toString(),Ee,Ve)},I.decodeHanziSegment=function(c,m,R){if(13*R>c.available())throw new Be;for(var Z=new Uint8Array(2*R),Q=0;R>0;){var se=c.readBits(13),de=se/96<<8&4294967295|se%96;Z[Q]=(de+=de<959?41377:42657)>>8&255,Z[Q+1]=255&de,Q+=2,R--}try{m.append(Ft.decode(Z,rt.GB2312))}catch(Ee){throw new Be(Ee)}},I.decodeKanjiSegment=function(c,m,R){if(13*R>c.available())throw new Be;for(var Z=new Uint8Array(2*R),Q=0;R>0;){var se=c.readBits(13),de=se/192<<8&4294967295|se%192;Z[Q]=(de+=de<7936?33088:49472)>>8,Z[Q+1]=de,Q+=2,R--}try{m.append(Ft.decode(Z,rt.SHIFT_JIS))}catch(Ee){throw new Be(Ee)}},I.decodeByteSegment=function(c,m,R,Z,Q,se){if(8*R>c.available())throw new Be;for(var de=new Uint8Array(R),Ee=0;Ee<R;Ee++)de[Ee]=c.readBits(8);var Ve;Ve=null===Z?rt.guessEncoding(de,se):Z.getName();try{m.append(Ft.decode(de,Ve))}catch(mt){throw new Be(mt)}Q.push(de)},I.toAlphaNumericChar=function(c){if(c>=I.ALPHANUMERIC_CHARS.length)throw new Be;return I.ALPHANUMERIC_CHARS[c]},I.decodeAlphanumericSegment=function(c,m,R,Z){for(var Q=m.length();R>1;){if(c.available()<11)throw new Be;var se=c.readBits(11);m.append(I.toAlphaNumericChar(Math.floor(se/45))),m.append(I.toAlphaNumericChar(se%45)),R-=2}if(1===R){if(c.available()<6)throw new Be;m.append(I.toAlphaNumericChar(c.readBits(6)))}if(Z)for(var de=Q;de<m.length();de++)"%"===m.charAt(de)&&(de<m.length()-1&&"%"===m.charAt(de+1)?m.deleteCharAt(de+1):m.setCharAt(de,String.fromCharCode(29)))},I.decodeNumericSegment=function(c,m,R){for(;R>=3;){if(c.available()<10)throw new Be;var Z=c.readBits(10);if(Z>=1e3)throw new Be;m.append(I.toAlphaNumericChar(Math.floor(Z/100))),m.append(I.toAlphaNumericChar(Math.floor(Z/10)%10)),m.append(I.toAlphaNumericChar(Z%10)),R-=3}if(2===R){if(c.available()<7)throw new Be;var Q=c.readBits(7);if(Q>=100)throw new Be;m.append(I.toAlphaNumericChar(Math.floor(Q/10))),m.append(I.toAlphaNumericChar(Q%10))}else if(1===R){if(c.available()<4)throw new Be;var se=c.readBits(4);if(se>=10)throw new Be;m.append(I.toAlphaNumericChar(se))}},I.parseECIValue=function(c){var m=c.readBits(8);if(0==(128&m))return 127&m;if(128==(192&m))return(63&m)<<8&4294967295|c.readBits(8);if(192==(224&m))return(31&m)<<16&4294967295|c.readBits(16);throw new Be},I.ALPHANUMERIC_CHARS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",I.GB2312_SUBSET=1,I}();const Ru=Ji;var va=function(){function I(c){this.mirrored=c}return I.prototype.isMirrored=function(){return this.mirrored},I.prototype.applyMirroredCorrection=function(c){if(this.mirrored&&null!==c&&!(c.length<3)){var m=c[0];c[0]=c[2],c[2]=m}},I}();const uo=va;var Ka=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")},ml=function(){function I(){this.rsDecoder=new Br(Ie.QR_CODE_FIELD_256)}return I.prototype.decodeBooleanArray=function(c,m){return this.decodeBitMatrix(nt.parseFromBooleanArray(c),m)},I.prototype.decodeBitMatrix=function(c,m){var R=new $d(c),Z=null;try{return this.decodeBitMatrixParser(R,m)}catch(se){Z=se}try{R.remask(),R.setMirror(!0),R.readVersion(),R.readFormatInformation(),R.mirror();var Q=this.decodeBitMatrixParser(R,m);return Q.setOther(new uo(!0)),Q}catch(se){throw null!==Z?Z:se}},I.prototype.decodeBitMatrixParser=function(c,m){var R,Z,Q,se,de=c.readVersion(),Ee=c.readFormatInformation().getErrorCorrectionLevel(),Ve=c.readCodewords(),mt=ad.getDataBlocks(Ve,de,Ee),It=0;try{for(var Jt=Ka(mt),Xt=Jt.next();!Xt.done;Xt=Jt.next())It+=(Lr=Xt.value).getNumDataCodewords()}catch(Zn){R={error:Zn}}finally{try{Xt&&!Xt.done&&(Z=Jt.return)&&Z.call(Jt)}finally{if(R)throw R.error}}var Yr=new Uint8Array(It),on=0;try{for(var ln=Ka(mt),en=ln.next();!en.done;en=ln.next()){var Lr,mn=(Lr=en.value).getCodewords(),In=Lr.getNumDataCodewords();this.correctErrors(mn,In);for(var jn=0;jn<In;jn++)Yr[on++]=mn[jn]}}catch(Zn){Q={error:Zn}}finally{try{en&&!en.done&&(se=ln.return)&&se.call(ln)}finally{if(Q)throw Q.error}}return Ru.decode(Yr,de,Ee,m)},I.prototype.correctErrors=function(c,m){var R=new Int32Array(c);try{this.rsDecoder.decode(R,c.length-m)}catch{throw new K}for(var Z=0;Z<m;Z++)c[Z]=R[Z]},I}();const Vs=ml;var Fl=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),Aa=function(I){function c(m,R,Z){var Q=I.call(this,m,R)||this;return Q.estimatedModuleSize=Z,Q}return Fl(c,I),c.prototype.aboutEquals=function(m,R,Z){if(Math.abs(R-this.getY())<=m&&Math.abs(Z-this.getX())<=m){var Q=Math.abs(m-this.estimatedModuleSize);return Q<=1||Q<=this.estimatedModuleSize}return!1},c.prototype.combineEstimate=function(m,R,Z){return new c((this.getX()+R)/2,(this.getY()+m)/2,(this.estimatedModuleSize+Z)/2)},c}(Tn);const od=Aa;var Gn=function(){function I(c,m,R,Z,Q,se,de){this.image=c,this.startX=m,this.startY=R,this.width=Z,this.height=Q,this.moduleSize=se,this.resultPointCallback=de,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(3)}return I.prototype.find=function(){for(var c=this.startX,m=this.height,Z=c+this.width,Q=this.startY+m/2,se=new Int32Array(3),de=this.image,Ee=0;Ee<m;Ee++){var Ve=Q+(0==(1&Ee)?Math.floor((Ee+1)/2):-Math.floor((Ee+1)/2));se[0]=0,se[1]=0,se[2]=0;for(var mt=c;mt<Z&&!de.get(mt,Ve);)mt++;for(var It=0;mt<Z;){if(de.get(mt,Ve))if(1===It)se[1]++;else if(2===It){var Jt;if(this.foundPatternCross(se)&&null!==(Jt=this.handlePossibleCenter(se,Ve,mt)))return Jt;se[0]=se[2],se[1]=1,se[2]=0,It=1}else se[++It]++;else 1===It&&It++,se[It]++;mt++}if(this.foundPatternCross(se)&&null!==(Jt=this.handlePossibleCenter(se,Ve,Z)))return Jt}if(0!==this.possibleCenters.length)return this.possibleCenters[0];throw new X},I.centerFromEnd=function(c,m){return m-c[2]-c[1]/2},I.prototype.foundPatternCross=function(c){for(var m=this.moduleSize,R=m/2,Z=0;Z<3;Z++)if(Math.abs(m-c[Z])>=R)return!1;return!0},I.prototype.crossCheckVertical=function(c,m,R,Z){var Q=this.image,se=Q.getHeight(),de=this.crossCheckStateCount;de[0]=0,de[1]=0,de[2]=0;for(var Ee=c;Ee>=0&&Q.get(m,Ee)&&de[1]<=R;)de[1]++,Ee--;if(Ee<0||de[1]>R)return NaN;for(;Ee>=0&&!Q.get(m,Ee)&&de[0]<=R;)de[0]++,Ee--;if(de[0]>R)return NaN;for(Ee=c+1;Ee<se&&Q.get(m,Ee)&&de[1]<=R;)de[1]++,Ee++;if(Ee===se||de[1]>R)return NaN;for(;Ee<se&&!Q.get(m,Ee)&&de[2]<=R;)de[2]++,Ee++;return de[2]>R||5*Math.abs(de[0]+de[1]+de[2]-Z)>=2*Z?NaN:this.foundPatternCross(de)?I.centerFromEnd(de,Ee):NaN},I.prototype.handlePossibleCenter=function(c,m,R){var Z,Q,se=c[0]+c[1]+c[2],de=I.centerFromEnd(c,R),Ee=this.crossCheckVertical(m,de,2*c[1],se);if(!isNaN(Ee)){var Ve=(c[0]+c[1]+c[2])/3;try{for(var mt=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")}(this.possibleCenters),It=mt.next();!It.done;It=mt.next()){var Jt=It.value;if(Jt.aboutEquals(Ve,Ee,de))return Jt.combineEstimate(Ee,de,Ve)}}catch(Lr){Z={error:Lr}}finally{try{It&&!It.done&&(Q=mt.return)&&Q.call(mt)}finally{if(Z)throw Z.error}}var Xt=new od(de,Ee,Ve);this.possibleCenters.push(Xt),null!=this.resultPointCallback&&this.resultPointCallback.foundPossibleResultPoint(Xt)}return null},I}();const el=Gn;var Da=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),uu=function(I){function c(m,R,Z,Q){var se=I.call(this,m,R)||this;return se.estimatedModuleSize=Z,se.count=Q,void 0===Q&&(se.count=1),se}return Da(c,I),c.prototype.getEstimatedModuleSize=function(){return this.estimatedModuleSize},c.prototype.getCount=function(){return this.count},c.prototype.aboutEquals=function(m,R,Z){if(Math.abs(R-this.getY())<=m&&Math.abs(Z-this.getX())<=m){var Q=Math.abs(m-this.estimatedModuleSize);return Q<=1||Q<=this.estimatedModuleSize}return!1},c.prototype.combineEstimate=function(m,R,Z){var Q=this.count+1;return new c((this.count*this.getX()+R)/Q,(this.count*this.getY()+m)/Q,(this.count*this.estimatedModuleSize+Z)/Q,Q)},c}(Tn);const Xi=uu;var tl=function(){function I(c){this.bottomLeft=c[0],this.topLeft=c[1],this.topRight=c[2]}return I.prototype.getBottomLeft=function(){return this.bottomLeft},I.prototype.getTopLeft=function(){return this.topLeft},I.prototype.getTopRight=function(){return this.topRight},I}();const Bl=tl;var ko=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")},ld=function(){function I(c,m){this.image=c,this.resultPointCallback=m,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(5),this.resultPointCallback=m}return I.prototype.getImage=function(){return this.image},I.prototype.getPossibleCenters=function(){return this.possibleCenters},I.prototype.find=function(c){var m=null!=c&&void 0!==c.get(At.TRY_HARDER),R=null!=c&&void 0!==c.get(At.PURE_BARCODE),Z=this.image,Q=Z.getHeight(),se=Z.getWidth(),de=Math.floor(3*Q/(4*I.MAX_MODULES));(de<I.MIN_SKIP||m)&&(de=I.MIN_SKIP);for(var Ee=!1,Ve=new Int32Array(5),mt=de-1;mt<Q&&!Ee;mt+=de){Ve[0]=0,Ve[1]=0,Ve[2]=0,Ve[3]=0,Ve[4]=0;for(var It=0,Jt=0;Jt<se;Jt++)if(Z.get(Jt,mt))1==(1&It)&&It++,Ve[It]++;else if(0==(1&It))if(4===It)if(I.foundPatternCross(Ve)){if(!0!==this.handlePossibleCenter(Ve,mt,Jt,R)){Ve[0]=Ve[2],Ve[1]=Ve[3],Ve[2]=Ve[4],Ve[3]=1,Ve[4]=0,It=3;continue}if(de=2,!0===this.hasSkipped)Ee=this.haveMultiplyConfirmedCenters();else{var Lr=this.findRowSkip();Lr>Ve[2]&&(mt+=Lr-Ve[2]-de,Jt=se-1)}It=0,Ve[0]=0,Ve[1]=0,Ve[2]=0,Ve[3]=0,Ve[4]=0}else Ve[0]=Ve[2],Ve[1]=Ve[3],Ve[2]=Ve[4],Ve[3]=1,Ve[4]=0,It=3;else Ve[++It]++;else Ve[It]++;I.foundPatternCross(Ve)&&!0===this.handlePossibleCenter(Ve,mt,se,R)&&(de=Ve[0],this.hasSkipped&&(Ee=this.haveMultiplyConfirmedCenters()))}var Yr=this.selectBestPatterns();return Tn.orderBestPatterns(Yr),new Bl(Yr)},I.centerFromEnd=function(c,m){return m-c[4]-c[3]-c[2]/2},I.foundPatternCross=function(c){for(var m=0,R=0;R<5;R++){var Z=c[R];if(0===Z)return!1;m+=Z}if(m<7)return!1;var Q=m/7,se=Q/2;return Math.abs(Q-c[0])<se&&Math.abs(Q-c[1])<se&&Math.abs(3*Q-c[2])<3*se&&Math.abs(Q-c[3])<se&&Math.abs(Q-c[4])<se},I.prototype.getCrossCheckStateCount=function(){var c=this.crossCheckStateCount;return c[0]=0,c[1]=0,c[2]=0,c[3]=0,c[4]=0,c},I.prototype.crossCheckDiagonal=function(c,m,R,Z){for(var Q=this.getCrossCheckStateCount(),se=0,de=this.image;c>=se&&m>=se&&de.get(m-se,c-se);)Q[2]++,se++;if(c<se||m<se)return!1;for(;c>=se&&m>=se&&!de.get(m-se,c-se)&&Q[1]<=R;)Q[1]++,se++;if(c<se||m<se||Q[1]>R)return!1;for(;c>=se&&m>=se&&de.get(m-se,c-se)&&Q[0]<=R;)Q[0]++,se++;if(Q[0]>R)return!1;var Ee=de.getHeight(),Ve=de.getWidth();for(se=1;c+se<Ee&&m+se<Ve&&de.get(m+se,c+se);)Q[2]++,se++;if(c+se>=Ee||m+se>=Ve)return!1;for(;c+se<Ee&&m+se<Ve&&!de.get(m+se,c+se)&&Q[3]<R;)Q[3]++,se++;if(c+se>=Ee||m+se>=Ve||Q[3]>=R)return!1;for(;c+se<Ee&&m+se<Ve&&de.get(m+se,c+se)&&Q[4]<R;)Q[4]++,se++;return!(Q[4]>=R)&&Math.abs(Q[0]+Q[1]+Q[2]+Q[3]+Q[4]-Z)<2*Z&&I.foundPatternCross(Q)},I.prototype.crossCheckVertical=function(c,m,R,Z){for(var Q=this.image,se=Q.getHeight(),de=this.getCrossCheckStateCount(),Ee=c;Ee>=0&&Q.get(m,Ee);)de[2]++,Ee--;if(Ee<0)return NaN;for(;Ee>=0&&!Q.get(m,Ee)&&de[1]<=R;)de[1]++,Ee--;if(Ee<0||de[1]>R)return NaN;for(;Ee>=0&&Q.get(m,Ee)&&de[0]<=R;)de[0]++,Ee--;if(de[0]>R)return NaN;for(Ee=c+1;Ee<se&&Q.get(m,Ee);)de[2]++,Ee++;if(Ee===se)return NaN;for(;Ee<se&&!Q.get(m,Ee)&&de[3]<R;)de[3]++,Ee++;if(Ee===se||de[3]>=R)return NaN;for(;Ee<se&&Q.get(m,Ee)&&de[4]<R;)de[4]++,Ee++;return de[4]>=R||5*Math.abs(de[0]+de[1]+de[2]+de[3]+de[4]-Z)>=2*Z?NaN:I.foundPatternCross(de)?I.centerFromEnd(de,Ee):NaN},I.prototype.crossCheckHorizontal=function(c,m,R,Z){for(var Q=this.image,se=Q.getWidth(),de=this.getCrossCheckStateCount(),Ee=c;Ee>=0&&Q.get(Ee,m);)de[2]++,Ee--;if(Ee<0)return NaN;for(;Ee>=0&&!Q.get(Ee,m)&&de[1]<=R;)de[1]++,Ee--;if(Ee<0||de[1]>R)return NaN;for(;Ee>=0&&Q.get(Ee,m)&&de[0]<=R;)de[0]++,Ee--;if(de[0]>R)return NaN;for(Ee=c+1;Ee<se&&Q.get(Ee,m);)de[2]++,Ee++;if(Ee===se)return NaN;for(;Ee<se&&!Q.get(Ee,m)&&de[3]<R;)de[3]++,Ee++;if(Ee===se||de[3]>=R)return NaN;for(;Ee<se&&Q.get(Ee,m)&&de[4]<R;)de[4]++,Ee++;return de[4]>=R||5*Math.abs(de[0]+de[1]+de[2]+de[3]+de[4]-Z)>=Z?NaN:I.foundPatternCross(de)?I.centerFromEnd(de,Ee):NaN},I.prototype.handlePossibleCenter=function(c,m,R,Z){var Q=c[0]+c[1]+c[2]+c[3]+c[4],se=I.centerFromEnd(c,R),de=this.crossCheckVertical(m,Math.floor(se),c[2],Q);if(!isNaN(de)&&(se=this.crossCheckHorizontal(Math.floor(se),Math.floor(de),c[2],Q),!isNaN(se)&&(!Z||this.crossCheckDiagonal(Math.floor(de),Math.floor(se),c[2],Q)))){for(var Ee=Q/7,Ve=!1,mt=this.possibleCenters,It=0,Jt=mt.length;It<Jt;It++){var Xt=mt[It];if(Xt.aboutEquals(Ee,de,se)){mt[It]=Xt.combineEstimate(de,se,Ee),Ve=!0;break}}if(!Ve){var Lr=new Xi(se,de,Ee);mt.push(Lr),null!=this.resultPointCallback&&this.resultPointCallback.foundPossibleResultPoint(Lr)}return!0}return!1},I.prototype.findRowSkip=function(){var c,m;if(this.possibleCenters.length<=1)return 0;var Z=null;try{for(var Q=ko(this.possibleCenters),se=Q.next();!se.done;se=Q.next()){var de=se.value;if(de.getCount()>=I.CENTER_QUORUM){if(null!=Z)return this.hasSkipped=!0,Math.floor((Math.abs(Z.getX()-de.getX())-Math.abs(Z.getY()-de.getY()))/2);Z=de}}}catch(Ee){c={error:Ee}}finally{try{se&&!se.done&&(m=Q.return)&&m.call(Q)}finally{if(c)throw c.error}}return 0},I.prototype.haveMultiplyConfirmedCenters=function(){var c,m,R,Z,Q=0,se=0,de=this.possibleCenters.length;try{for(var Ee=ko(this.possibleCenters),Ve=Ee.next();!Ve.done;Ve=Ee.next())(mt=Ve.value).getCount()>=I.CENTER_QUORUM&&(Q++,se+=mt.getEstimatedModuleSize())}catch(Yr){c={error:Yr}}finally{try{Ve&&!Ve.done&&(m=Ee.return)&&m.call(Ee)}finally{if(c)throw c.error}}if(Q<3)return!1;var It=se/de,Jt=0;try{for(var Xt=ko(this.possibleCenters),Lr=Xt.next();!Lr.done;Lr=Xt.next()){var mt=Lr.value;Jt+=Math.abs(mt.getEstimatedModuleSize()-It)}}catch(Yr){R={error:Yr}}finally{try{Lr&&!Lr.done&&(Z=Xt.return)&&Z.call(Xt)}finally{if(R)throw R.error}}return Jt<=.05*se},I.prototype.selectBestPatterns=function(){var c,m,R,Z,Q=this.possibleCenters.length;if(Q<3)throw new X;var de,se=this.possibleCenters;if(Q>3){var Ee=0,Ve=0;try{for(var mt=ko(this.possibleCenters),It=mt.next();!It.done;It=mt.next()){var Xt=It.value.getEstimatedModuleSize();Ee+=Xt,Ve+=Xt*Xt}}catch(jn){c={error:jn}}finally{try{It&&!It.done&&(m=mt.return)&&m.call(mt)}finally{if(c)throw c.error}}de=Ee/Q;var Lr=Math.sqrt(Ve/Q-de*de);se.sort(function(jn,Zn){var Xn=Math.abs(Zn.getEstimatedModuleSize()-de),mi=Math.abs(jn.getEstimatedModuleSize()-de);return Xn<mi?-1:Xn>mi?1:0});for(var Yr=Math.max(.2*de,Lr),on=0;on<se.length&&se.length>3;on++)Math.abs(se[on].getEstimatedModuleSize()-de)>Yr&&(se.splice(on,1),on--)}if(se.length>3){Ee=0;try{for(var en=ko(se),mn=en.next();!mn.done;mn=en.next())Ee+=mn.value.getEstimatedModuleSize()}catch(Zn){R={error:Zn}}finally{try{mn&&!mn.done&&(Z=en.return)&&Z.call(en)}finally{if(R)throw R.error}}de=Ee/se.length,se.sort(function(Zn,Xn){if(Xn.getCount()===Zn.getCount()){var mi=Math.abs(Xn.getEstimatedModuleSize()-de),fs=Math.abs(Zn.getEstimatedModuleSize()-de);return mi<fs?1:mi>fs?-1:0}return Xn.getCount()-Zn.getCount()}),se.splice(3)}return[se[0],se[1],se[2]]},I.CENTER_QUORUM=2,I.MIN_SKIP=3,I.MAX_MODULES=57,I}();const ud=ld;var oc=function(){function I(c){this.image=c}return I.prototype.getImage=function(){return this.image},I.prototype.getResultPointCallback=function(){return this.resultPointCallback},I.prototype.detect=function(c){this.resultPointCallback=null==c?null:c.get(At.NEED_RESULT_POINT_CALLBACK);var R=new ud(this.image,this.resultPointCallback).find(c);return this.processFinderPatternInfo(R)},I.prototype.processFinderPatternInfo=function(c){var m=c.getTopLeft(),R=c.getTopRight(),Z=c.getBottomLeft(),Q=this.calculateModuleSize(m,R,Z);if(Q<1)throw new X("No pattern found in proccess finder.");var se=I.computeDimension(m,R,Z,Q),de=pl.getProvisionalVersionForDimension(se),Ee=de.getDimensionForVersion()-7,Ve=null;if(de.getAlignmentPatternCenters().length>0)for(var mt=R.getX()-m.getX()+Z.getX(),It=R.getY()-m.getY()+Z.getY(),Jt=1-3/Ee,Xt=Math.floor(m.getX()+Jt*(mt-m.getX())),Lr=Math.floor(m.getY()+Jt*(It-m.getY())),Yr=4;Yr<=16;Yr<<=1)try{Ve=this.findAlignmentInRegion(Q,Xt,Lr,Yr);break}catch(mn){if(!(mn instanceof X))throw mn}var on=I.createTransform(m,R,Z,Ve,se),ln=I.sampleGrid(this.image,on,se);return new fr(ln,null===Ve?[Z,m,R]:[Z,m,R,Ve])},I.createTransform=function(c,m,R,Z,Q){var de,Ee,Ve,mt,se=Q-3.5;return null!==Z?(de=Z.getX(),Ee=Z.getY(),mt=Ve=se-3):(de=m.getX()-c.getX()+R.getX(),Ee=m.getY()-c.getY()+R.getY(),Ve=se,mt=se),ur.quadrilateralToQuadrilateral(3.5,3.5,se,3.5,Ve,mt,3.5,se,c.getX(),c.getY(),m.getX(),m.getY(),de,Ee,R.getX(),R.getY())},I.sampleGrid=function(c,m,R){return Ae.getInstance().sampleGridWithTransform(c,R,R,m)},I.computeDimension=function(c,m,R,Z){var Q=Nr.round(Tn.distance(c,m)/Z),se=Nr.round(Tn.distance(c,R)/Z),de=Math.floor((Q+se)/2)+7;switch(3&de){case 0:de++;break;case 2:de--;break;case 3:throw new X("Dimensions could be not found.")}return de},I.prototype.calculateModuleSize=function(c,m,R){return(this.calculateModuleSizeOneWay(c,m)+this.calculateModuleSizeOneWay(c,R))/2},I.prototype.calculateModuleSizeOneWay=function(c,m){var R=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(c.getX()),Math.floor(c.getY()),Math.floor(m.getX()),Math.floor(m.getY())),Z=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(m.getX()),Math.floor(m.getY()),Math.floor(c.getX()),Math.floor(c.getY()));return isNaN(R)?Z/7:isNaN(Z)?R/7:(R+Z)/14},I.prototype.sizeOfBlackWhiteBlackRunBothWays=function(c,m,R,Z){var Q=this.sizeOfBlackWhiteBlackRun(c,m,R,Z),se=1,de=c-(R-c);de<0?(se=c/(c-de),de=0):de>=this.image.getWidth()&&(se=(this.image.getWidth()-1-c)/(de-c),de=this.image.getWidth()-1);var Ee=Math.floor(m-(Z-m)*se);return se=1,Ee<0?(se=m/(m-Ee),Ee=0):Ee>=this.image.getHeight()&&(se=(this.image.getHeight()-1-m)/(Ee-m),Ee=this.image.getHeight()-1),de=Math.floor(c+(de-c)*se),(Q+=this.sizeOfBlackWhiteBlackRun(c,m,de,Ee))-1},I.prototype.sizeOfBlackWhiteBlackRun=function(c,m,R,Z){var Q=Math.abs(Z-m)>Math.abs(R-c);if(Q){var se=c;c=m,m=se,se=R,R=Z,Z=se}for(var de=Math.abs(R-c),Ee=Math.abs(Z-m),Ve=-de/2,mt=c<R?1:-1,It=m<Z?1:-1,Jt=0,Xt=R+mt,Lr=c,Yr=m;Lr!==Xt;Lr+=mt){if(1===Jt===this.image.get(Q?Yr:Lr,Q?Lr:Yr)){if(2===Jt)return Nr.distance(Lr,Yr,c,m);Jt++}if((Ve+=Ee)>0){if(Yr===Z)break;Yr+=It,Ve-=de}}return 2===Jt?Nr.distance(R+mt,Z,c,m):NaN},I.prototype.findAlignmentInRegion=function(c,m,R,Z){var Q=Math.floor(Z*c),se=Math.max(0,m-Q),de=Math.min(this.image.getWidth()-1,m+Q);if(de-se<3*c)throw new X("Alignment top exceeds estimated module size.");var Ee=Math.max(0,R-Q),Ve=Math.min(this.image.getHeight()-1,R+Q);if(Ve-Ee<3*c)throw new X("Alignment bottom exceeds estimated module size.");return new el(this.image,se,Ee,de-se,Ve-Ee,c,this.resultPointCallback).find()},I}();const Ns=oc;var ku=function(){function I(){this.decoder=new Vs}return I.prototype.getDecoder=function(){return this.decoder},I.prototype.decode=function(c,m){var R,Z;if(null!=m&&void 0!==m.get(At.PURE_BARCODE)){var Q=I.extractPureBits(c.getBlackMatrix());R=this.decoder.decodeBitMatrix(Q,m),Z=I.NO_POINTS}else{var se=new Ns(c.getBlackMatrix()).detect(m);R=this.decoder.decodeBitMatrix(se.getBits(),m),Z=se.getPoints()}R.getOther()instanceof uo&&R.getOther().applyMirroredCorrection(Z);var de=new Fe(R.getText(),R.getRawBytes(),void 0,Z,St.QR_CODE,void 0),Ee=R.getByteSegments();null!==Ee&&de.putMetadata(ke.BYTE_SEGMENTS,Ee);var Ve=R.getECLevel();return null!==Ve&&de.putMetadata(ke.ERROR_CORRECTION_LEVEL,Ve),R.hasStructuredAppend()&&(de.putMetadata(ke.STRUCTURED_APPEND_SEQUENCE,R.getStructuredAppendSequenceNumber()),de.putMetadata(ke.STRUCTURED_APPEND_PARITY,R.getStructuredAppendParity())),de},I.prototype.reset=function(){},I.extractPureBits=function(c){var m=c.getTopLeftOnBit(),R=c.getBottomRightOnBit();if(null===m||null===R)throw new X;var Z=this.moduleSize(m,c),Q=m[1],se=R[1],de=m[0],Ee=R[0];if(de>=Ee||Q>=se)throw new X;if(se-Q!=Ee-de&&(Ee=de+(se-Q))>=c.getWidth())throw new X;var Ve=Math.round((Ee-de+1)/Z),mt=Math.round((se-Q+1)/Z);if(Ve<=0||mt<=0)throw new X;if(mt!==Ve)throw new X;var It=Math.floor(Z/2);Q+=It;var Jt=(de+=It)+Math.floor((Ve-1)*Z)-Ee;if(Jt>0){if(Jt>It)throw new X;de-=Jt}var Xt=Q+Math.floor((mt-1)*Z)-se;if(Xt>0){if(Xt>It)throw new X;Q-=Xt}for(var Lr=new nt(Ve,mt),Yr=0;Yr<mt;Yr++)for(var on=Q+Math.floor(Yr*Z),ln=0;ln<Ve;ln++)c.get(de+Math.floor(ln*Z),on)&&Lr.set(ln,Yr);return Lr},I.moduleSize=function(c,m){for(var R=m.getHeight(),Z=m.getWidth(),Q=c[0],se=c[1],de=!0,Ee=0;Q<Z&&se<R;){if(de!==m.get(Q,se)){if(5==++Ee)break;de=!de}Q++,se++}if(Q===Z||se===R)throw new X;return(Q-c[0])/7},I.NO_POINTS=new Array,I}();const qa=ku;var cu=function(){function I(){}return I.prototype.PDF417Common=function(){},I.getBitCountSum=function(c){return Nr.sum(c)},I.toIntArray=function(c){var m,R;if(null==c||!c.length)return I.EMPTY_INT_ARRAY;var Z=new Int32Array(c.length),Q=0;try{for(var se=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")}(c),de=se.next();!de.done;de=se.next())Z[Q++]=de.value}catch(Ve){m={error:Ve}}finally{try{de&&!de.done&&(R=se.return)&&R.call(se)}finally{if(m)throw m.error}}return Z},I.getCodeword=function(c){var m=W.binarySearch(I.SYMBOL_TABLE,262143&c);return m<0?-1:(I.CODEWORD_TABLE[m]-1)%I.NUMBER_OF_CODEWORDS},I.MAX_CODEWORDS_IN_BARCODE=(I.NUMBER_OF_CODEWORDS=929)-1,I.MIN_ROWS_IN_BARCODE=3,I.MAX_ROWS_IN_BARCODE=90,I.MODULES_IN_CODEWORD=17,I.MODULES_IN_STOP_PATTERN=18,I.BARS_IN_MODULE=8,I.EMPTY_INT_ARRAY=new Int32Array([]),I.SYMBOL_TABLE=Int32Array.from([66142,66170,66206,66236,66290,66292,66350,66382,66396,66454,66470,66476,66594,66600,66614,66626,66628,66632,66640,66654,66662,66668,66682,66690,66718,66720,66748,66758,66776,66798,66802,66804,66820,66824,66832,66846,66848,66876,66880,66936,66950,66956,66968,66992,67006,67022,67036,67042,67044,67048,67062,67118,67150,67164,67214,67228,67256,67294,67322,67350,67366,67372,67398,67404,67416,67438,67474,67476,67490,67492,67496,67510,67618,67624,67650,67656,67664,67678,67686,67692,67706,67714,67716,67728,67742,67744,67772,67782,67788,67800,67822,67826,67828,67842,67848,67870,67872,67900,67904,67960,67974,67992,68016,68030,68046,68060,68066,68068,68072,68086,68104,68112,68126,68128,68156,68160,68216,68336,68358,68364,68376,68400,68414,68448,68476,68494,68508,68536,68546,68548,68552,68560,68574,68582,68588,68654,68686,68700,68706,68708,68712,68726,68750,68764,68792,68802,68804,68808,68816,68830,68838,68844,68858,68878,68892,68920,68976,68990,68994,68996,69e3,69008,69022,69024,69052,69062,69068,69080,69102,69106,69108,69142,69158,69164,69190,69208,69230,69254,69260,69272,69296,69310,69326,69340,69386,69394,69396,69410,69416,69430,69442,69444,69448,69456,69470,69478,69484,69554,69556,69666,69672,69698,69704,69712,69726,69754,69762,69764,69776,69790,69792,69820,69830,69836,69848,69870,69874,69876,69890,69918,69920,69948,69952,70008,70022,70040,70064,70078,70094,70108,70114,70116,70120,70134,70152,70174,70176,70264,70384,70412,70448,70462,70496,70524,70542,70556,70584,70594,70600,70608,70622,70630,70636,70664,70672,70686,70688,70716,70720,70776,70896,71136,71180,71192,71216,71230,71264,71292,71360,71416,71452,71480,71536,71550,71554,71556,71560,71568,71582,71584,71612,71622,71628,71640,71662,71726,71732,71758,71772,71778,71780,71784,71798,71822,71836,71864,71874,71880,71888,71902,71910,71916,71930,71950,71964,71992,72048,72062,72066,72068,72080,72094,72096,72124,72134,72140,72152,72174,72178,72180,72206,72220,72248,72304,72318,72416,72444,72456,72464,72478,72480,72508,72512,72568,72588,72600,72624,72638,72654,72668,72674,72676,72680,72694,72726,72742,72748,72774,72780,72792,72814,72838,72856,72880,72894,72910,72924,72930,72932,72936,72950,72966,72972,72984,73008,73022,73056,73084,73102,73116,73144,73156,73160,73168,73182,73190,73196,73210,73226,73234,73236,73250,73252,73256,73270,73282,73284,73296,73310,73318,73324,73346,73348,73352,73360,73374,73376,73404,73414,73420,73432,73454,73498,73518,73522,73524,73550,73564,73570,73572,73576,73590,73800,73822,73858,73860,73872,73886,73888,73916,73944,73970,73972,73992,74014,74016,74044,74048,74104,74118,74136,74160,74174,74210,74212,74216,74230,74244,74256,74270,74272,74360,74480,74502,74508,74544,74558,74592,74620,74638,74652,74680,74690,74696,74704,74726,74732,74782,74784,74812,74992,75232,75288,75326,75360,75388,75456,75512,75576,75632,75646,75650,75652,75664,75678,75680,75708,75718,75724,75736,75758,75808,75836,75840,75896,76016,76256,76736,76824,76848,76862,76896,76924,76992,77048,77296,77340,77368,77424,77438,77536,77564,77572,77576,77584,77600,77628,77632,77688,77702,77708,77720,77744,77758,77774,77788,77870,77902,77916,77922,77928,77966,77980,78008,78018,78024,78032,78046,78060,78074,78094,78136,78192,78206,78210,78212,78224,78238,78240,78268,78278,78284,78296,78322,78324,78350,78364,78448,78462,78560,78588,78600,78622,78624,78652,78656,78712,78726,78744,78768,78782,78798,78812,78818,78820,78824,78838,78862,78876,78904,78960,78974,79072,79100,79296,79352,79368,79376,79390,79392,79420,79424,79480,79600,79628,79640,79664,79678,79712,79740,79772,79800,79810,79812,79816,79824,79838,79846,79852,79894,79910,79916,79942,79948,79960,79982,79988,80006,80024,80048,80062,80078,80092,80098,80100,80104,80134,80140,80176,80190,80224,80252,80270,80284,80312,80328,80336,80350,80358,80364,80378,80390,80396,80408,80432,80446,80480,80508,80576,80632,80654,80668,80696,80752,80766,80776,80784,80798,80800,80828,80844,80856,80878,80882,80884,80914,80916,80930,80932,80936,80950,80962,80968,80976,80990,80998,81004,81026,81028,81040,81054,81056,81084,81094,81100,81112,81134,81154,81156,81160,81168,81182,81184,81212,81216,81272,81286,81292,81304,81328,81342,81358,81372,81380,81384,81398,81434,81454,81458,81460,81486,81500,81506,81508,81512,81526,81550,81564,81592,81602,81604,81608,81616,81630,81638,81644,81702,81708,81722,81734,81740,81752,81774,81778,81780,82050,82078,82080,82108,82180,82184,82192,82206,82208,82236,82240,82296,82316,82328,82352,82366,82402,82404,82408,82440,82448,82462,82464,82492,82496,82552,82672,82694,82700,82712,82736,82750,82784,82812,82830,82882,82884,82888,82896,82918,82924,82952,82960,82974,82976,83004,83008,83064,83184,83424,83468,83480,83504,83518,83552,83580,83648,83704,83740,83768,83824,83838,83842,83844,83848,83856,83872,83900,83910,83916,83928,83950,83984,84e3,84028,84032,84088,84208,84448,84928,85040,85054,85088,85116,85184,85240,85488,85560,85616,85630,85728,85756,85764,85768,85776,85790,85792,85820,85824,85880,85894,85900,85912,85936,85966,85980,86048,86080,86136,86256,86496,86976,88160,88188,88256,88312,88560,89056,89200,89214,89312,89340,89536,89592,89608,89616,89632,89664,89720,89840,89868,89880,89904,89952,89980,89998,90012,90040,90190,90204,90254,90268,90296,90306,90308,90312,90334,90382,90396,90424,90480,90494,90500,90504,90512,90526,90528,90556,90566,90572,90584,90610,90612,90638,90652,90680,90736,90750,90848,90876,90884,90888,90896,90910,90912,90940,90944,91e3,91014,91020,91032,91056,91070,91086,91100,91106,91108,91112,91126,91150,91164,91192,91248,91262,91360,91388,91584,91640,91664,91678,91680,91708,91712,91768,91888,91928,91952,91966,92e3,92028,92046,92060,92088,92098,92100,92104,92112,92126,92134,92140,92188,92216,92272,92384,92412,92608,92664,93168,93200,93214,93216,93244,93248,93304,93424,93664,93720,93744,93758,93792,93820,93888,93944,93980,94008,94064,94078,94084,94088,94096,94110,94112,94140,94150,94156,94168,94246,94252,94278,94284,94296,94318,94342,94348,94360,94384,94398,94414,94428,94440,94470,94476,94488,94512,94526,94560,94588,94606,94620,94648,94658,94660,94664,94672,94686,94694,94700,94714,94726,94732,94744,94768,94782,94816,94844,94912,94968,94990,95004,95032,95088,95102,95112,95120,95134,95136,95164,95180,95192,95214,95218,95220,95244,95256,95280,95294,95328,95356,95424,95480,95728,95758,95772,95800,95856,95870,95968,95996,96008,96016,96030,96032,96060,96064,96120,96152,96176,96190,96220,96226,96228,96232,96290,96292,96296,96310,96322,96324,96328,96336,96350,96358,96364,96386,96388,96392,96400,96414,96416,96444,96454,96460,96472,96494,96498,96500,96514,96516,96520,96528,96542,96544,96572,96576,96632,96646,96652,96664,96688,96702,96718,96732,96738,96740,96744,96758,96772,96776,96784,96798,96800,96828,96832,96888,97008,97030,97036,97048,97072,97086,97120,97148,97166,97180,97208,97220,97224,97232,97246,97254,97260,97326,97330,97332,97358,97372,97378,97380,97384,97398,97422,97436,97464,97474,97476,97480,97488,97502,97510,97516,97550,97564,97592,97648,97666,97668,97672,97680,97694,97696,97724,97734,97740,97752,97774,97830,97836,97850,97862,97868,97880,97902,97906,97908,97926,97932,97944,97968,97998,98012,98018,98020,98024,98038,98618,98674,98676,98838,98854,98874,98892,98904,98926,98930,98932,98968,99006,99042,99044,99048,99062,99166,99194,99246,99286,99350,99366,99372,99386,99398,99416,99438,99442,99444,99462,99504,99518,99534,99548,99554,99556,99560,99574,99590,99596,99608,99632,99646,99680,99708,99726,99740,99768,99778,99780,99784,99792,99806,99814,99820,99834,99858,99860,99874,99880,99894,99906,99920,99934,99962,99970,99972,99976,99984,99998,1e5,100028,100038,100044,100056,100078,100082,100084,100142,100174,100188,100246,100262,100268,100306,100308,100390,100396,100410,100422,100428,100440,100462,100466,100468,100486,100504,100528,100542,100558,100572,100578,100580,100584,100598,100620,100656,100670,100704,100732,100750,100792,100802,100808,100816,100830,100838,100844,100858,100888,100912,100926,100960,100988,101056,101112,101148,101176,101232,101246,101250,101252,101256,101264,101278,101280,101308,101318,101324,101336,101358,101362,101364,101410,101412,101416,101430,101442,101448,101456,101470,101478,101498,101506,101508,101520,101534,101536,101564,101580,101618,101620,101636,101640,101648,101662,101664,101692,101696,101752,101766,101784,101838,101858,101860,101864,101934,101938,101940,101966,101980,101986,101988,101992,102030,102044,102072,102082,102084,102088,102096,102138,102166,102182,102188,102214,102220,102232,102254,102282,102290,102292,102306,102308,102312,102326,102444,102458,102470,102476,102488,102514,102516,102534,102552,102576,102590,102606,102620,102626,102632,102646,102662,102668,102704,102718,102752,102780,102798,102812,102840,102850,102856,102864,102878,102886,102892,102906,102936,102974,103008,103036,103104,103160,103224,103280,103294,103298,103300,103312,103326,103328,103356,103366,103372,103384,103406,103410,103412,103472,103486,103520,103548,103616,103672,103920,103992,104048,104062,104160,104188,104194,104196,104200,104208,104224,104252,104256,104312,104326,104332,104344,104368,104382,104398,104412,104418,104420,104424,104482,104484,104514,104520,104528,104542,104550,104570,104578,104580,104592,104606,104608,104636,104652,104690,104692,104706,104712,104734,104736,104764,104768,104824,104838,104856,104910,104930,104932,104936,104968,104976,104990,104992,105020,105024,105080,105200,105240,105278,105312,105372,105410,105412,105416,105424,105446,105518,105524,105550,105564,105570,105572,105576,105614,105628,105656,105666,105672,105680,105702,105722,105742,105756,105784,105840,105854,105858,105860,105864,105872,105888,105932,105970,105972,106006,106022,106028,106054,106060,106072,106100,106118,106124,106136,106160,106174,106190,106210,106212,106216,106250,106258,106260,106274,106276,106280,106306,106308,106312,106320,106334,106348,106394,106414,106418,106420,106566,106572,106610,106612,106630,106636,106648,106672,106686,106722,106724,106728,106742,106758,106764,106776,106800,106814,106848,106876,106894,106908,106936,106946,106948,106952,106960,106974,106982,106988,107032,107056,107070,107104,107132,107200,107256,107292,107320,107376,107390,107394,107396,107400,107408,107422,107424,107452,107462,107468,107480,107502,107506,107508,107544,107568,107582,107616,107644,107712,107768,108016,108060,108088,108144,108158,108256,108284,108290,108292,108296,108304,108318,108320,108348,108352,108408,108422,108428,108440,108464,108478,108494,108508,108514,108516,108520,108592,108640,108668,108736,108792,109040,109536,109680,109694,109792,109820,110016,110072,110084,110088,110096,110112,110140,110144,110200,110320,110342,110348,110360,110384,110398,110432,110460,110478,110492,110520,110532,110536,110544,110558,110658,110686,110714,110722,110724,110728,110736,110750,110752,110780,110796,110834,110836,110850,110852,110856,110864,110878,110880,110908,110912,110968,110982,111e3,111054,111074,111076,111080,111108,111112,111120,111134,111136,111164,111168,111224,111344,111372,111422,111456,111516,111554,111556,111560,111568,111590,111632,111646,111648,111676,111680,111736,111856,112096,112152,112224,112252,112320,112440,112514,112516,112520,112528,112542,112544,112588,112686,112718,112732,112782,112796,112824,112834,112836,112840,112848,112870,112890,112910,112924,112952,113008,113022,113026,113028,113032,113040,113054,113056,113100,113138,113140,113166,113180,113208,113264,113278,113376,113404,113416,113424,113440,113468,113472,113560,113614,113634,113636,113640,113686,113702,113708,113734,113740,113752,113778,113780,113798,113804,113816,113840,113854,113870,113890,113892,113896,113926,113932,113944,113968,113982,114016,114044,114076,114114,114116,114120,114128,114150,114170,114194,114196,114210,114212,114216,114242,114244,114248,114256,114270,114278,114306,114308,114312,114320,114334,114336,114364,114380,114420,114458,114478,114482,114484,114510,114524,114530,114532,114536,114842,114866,114868,114970,114994,114996,115042,115044,115048,115062,115130,115226,115250,115252,115278,115292,115298,115300,115304,115318,115342,115394,115396,115400,115408,115422,115430,115436,115450,115478,115494,115514,115526,115532,115570,115572,115738,115758,115762,115764,115790,115804,115810,115812,115816,115830,115854,115868,115896,115906,115912,115920,115934,115942,115948,115962,115996,116024,116080,116094,116098,116100,116104,116112,116126,116128,116156,116166,116172,116184,116206,116210,116212,116246,116262,116268,116282,116294,116300,116312,116334,116338,116340,116358,116364,116376,116400,116414,116430,116444,116450,116452,116456,116498,116500,116514,116520,116534,116546,116548,116552,116560,116574,116582,116588,116602,116654,116694,116714,116762,116782,116786,116788,116814,116828,116834,116836,116840,116854,116878,116892,116920,116930,116936,116944,116958,116966,116972,116986,117006,117048,117104,117118,117122,117124,117136,117150,117152,117180,117190,117196,117208,117230,117234,117236,117304,117360,117374,117472,117500,117506,117508,117512,117520,117536,117564,117568,117624,117638,117644,117656,117680,117694,117710,117724,117730,117732,117736,117750,117782,117798,117804,117818,117830,117848,117874,117876,117894,117936,117950,117966,117986,117988,117992,118022,118028,118040,118064,118078,118112,118140,118172,118210,118212,118216,118224,118238,118246,118266,118306,118312,118338,118352,118366,118374,118394,118402,118404,118408,118416,118430,118432,118460,118476,118514,118516,118574,118578,118580,118606,118620,118626,118628,118632,118678,118694,118700,118730,118738,118740,118830,118834,118836,118862,118876,118882,118884,118888,118902,118926,118940,118968,118978,118980,118984,118992,119006,119014,119020,119034,119068,119096,119152,119166,119170,119172,119176,119184,119198,119200,119228,119238,119244,119256,119278,119282,119284,119324,119352,119408,119422,119520,119548,119554,119556,119560,119568,119582,119584,119612,119616,119672,119686,119692,119704,119728,119742,119758,119772,119778,119780,119784,119798,119920,119934,120032,120060,120256,120312,120324,120328,120336,120352,120384,120440,120560,120582,120588,120600,120624,120638,120672,120700,120718,120732,120760,120770,120772,120776,120784,120798,120806,120812,120870,120876,120890,120902,120908,120920,120946,120948,120966,120972,120984,121008,121022,121038,121058,121060,121064,121078,121100,121112,121136,121150,121184,121212,121244,121282,121284,121288,121296,121318,121338,121356,121368,121392,121406,121440,121468,121536,121592,121656,121730,121732,121736,121744,121758,121760,121804,121842,121844,121890,121922,121924,121928,121936,121950,121958,121978,121986,121988,121992,122e3,122014,122016,122044,122060,122098,122100,122116,122120,122128,122142,122144,122172,122176,122232,122246,122264,122318,122338,122340,122344,122414,122418,122420,122446,122460,122466,122468,122472,122510,122524,122552,122562,122564,122568,122576,122598,122618,122646,122662,122668,122694,122700,122712,122738,122740,122762,122770,122772,122786,122788,122792,123018,123026,123028,123042,123044,123048,123062,123098,123146,123154,123156,123170,123172,123176,123190,123202,123204,123208,123216,123238,123244,123258,123290,123314,123316,123402,123410,123412,123426,123428,123432,123446,123458,123464,123472,123486,123494,123500,123514,123522,123524,123528,123536,123552,123580,123590,123596,123608,123630,123634,123636,123674,123698,123700,123740,123746,123748,123752,123834,123914,123922,123924,123938,123944,123958,123970,123976,123984,123998,124006,124012,124026,124034,124036,124048,124062,124064,124092,124102,124108,124120,124142,124146,124148,124162,124164,124168,124176,124190,124192,124220,124224,124280,124294,124300,124312,124336,124350,124366,124380,124386,124388,124392,124406,124442,124462,124466,124468,124494,124508,124514,124520,124558,124572,124600,124610,124612,124616,124624,124646,124666,124694,124710,124716,124730,124742,124748,124760,124786,124788,124818,124820,124834,124836,124840,124854,124946,124948,124962,124964,124968,124982,124994,124996,125e3,125008,125022,125030,125036,125050,125058,125060,125064,125072,125086,125088,125116,125126,125132,125144,125166,125170,125172,125186,125188,125192,125200,125216,125244,125248,125304,125318,125324,125336,125360,125374,125390,125404,125410,125412,125416,125430,125444,125448,125456,125472,125504,125560,125680,125702,125708,125720,125744,125758,125792,125820,125838,125852,125880,125890,125892,125896,125904,125918,125926,125932,125978,125998,126002,126004,126030,126044,126050,126052,126056,126094,126108,126136,126146,126148,126152,126160,126182,126202,126222,126236,126264,126320,126334,126338,126340,126344,126352,126366,126368,126412,126450,126452,126486,126502,126508,126522,126534,126540,126552,126574,126578,126580,126598,126604,126616,126640,126654,126670,126684,126690,126692,126696,126738,126754,126756,126760,126774,126786,126788,126792,126800,126814,126822,126828,126842,126894,126898,126900,126934,127126,127142,127148,127162,127178,127186,127188,127254,127270,127276,127290,127302,127308,127320,127342,127346,127348,127370,127378,127380,127394,127396,127400,127450,127510,127526,127532,127546,127558,127576,127598,127602,127604,127622,127628,127640,127664,127678,127694,127708,127714,127716,127720,127734,127754,127762,127764,127778,127784,127810,127812,127816,127824,127838,127846,127866,127898,127918,127922,127924,128022,128038,128044,128058,128070,128076,128088,128110,128114,128116,128134,128140,128152,128176,128190,128206,128220,128226,128228,128232,128246,128262,128268,128280,128304,128318,128352,128380,128398,128412,128440,128450,128452,128456,128464,128478,128486,128492,128506,128522,128530,128532,128546,128548,128552,128566,128578,128580,128584,128592,128606,128614,128634,128642,128644,128648,128656,128670,128672,128700,128716,128754,128756,128794,128814,128818,128820,128846,128860,128866,128868,128872,128886,128918,128934,128940,128954,128978,128980,129178,129198,129202,129204,129238,129258,129306,129326,129330,129332,129358,129372,129378,129380,129384,129398,129430,129446,129452,129466,129482,129490,129492,129562,129582,129586,129588,129614,129628,129634,129636,129640,129654,129678,129692,129720,129730,129732,129736,129744,129758,129766,129772,129814,129830,129836,129850,129862,129868,129880,129902,129906,129908,129930,129938,129940,129954,129956,129960,129974,130010]),I.CODEWORD_TABLE=Int32Array.from([2627,1819,2622,2621,1813,1812,2729,2724,2723,2779,2774,2773,902,896,908,868,865,861,859,2511,873,871,1780,835,2493,825,2491,842,837,844,1764,1762,811,810,809,2483,807,2482,806,2480,815,814,813,812,2484,817,816,1745,1744,1742,1746,2655,2637,2635,2626,2625,2623,2628,1820,2752,2739,2737,2728,2727,2725,2730,2785,2783,2778,2777,2775,2780,787,781,747,739,736,2413,754,752,1719,692,689,681,2371,678,2369,700,697,694,703,1688,1686,642,638,2343,631,2341,627,2338,651,646,643,2345,654,652,1652,1650,1647,1654,601,599,2322,596,2321,594,2319,2317,611,610,608,606,2324,603,2323,615,614,612,1617,1616,1614,1612,616,1619,1618,2575,2538,2536,905,901,898,909,2509,2507,2504,870,867,864,860,2512,875,872,1781,2490,2489,2487,2485,1748,836,834,832,830,2494,827,2492,843,841,839,845,1765,1763,2701,2676,2674,2653,2648,2656,2634,2633,2631,2629,1821,2638,2636,2770,2763,2761,2750,2745,2753,2736,2735,2733,2731,1848,2740,2738,2786,2784,591,588,576,569,566,2296,1590,537,534,526,2276,522,2274,545,542,539,548,1572,1570,481,2245,466,2242,462,2239,492,485,482,2249,496,494,1534,1531,1528,1538,413,2196,406,2191,2188,425,419,2202,415,2199,432,430,427,1472,1467,1464,433,1476,1474,368,367,2160,365,2159,362,2157,2155,2152,378,377,375,2166,372,2165,369,2162,383,381,379,2168,1419,1418,1416,1414,385,1411,384,1423,1422,1420,1424,2461,802,2441,2439,790,786,783,794,2409,2406,2403,750,742,738,2414,756,753,1720,2367,2365,2362,2359,1663,693,691,684,2373,680,2370,702,699,696,704,1690,1687,2337,2336,2334,2332,1624,2329,1622,640,637,2344,634,2342,630,2340,650,648,645,2346,655,653,1653,1651,1649,1655,2612,2597,2595,2571,2568,2565,2576,2534,2529,2526,1787,2540,2537,907,904,900,910,2503,2502,2500,2498,1768,2495,1767,2510,2508,2506,869,866,863,2513,876,874,1782,2720,2713,2711,2697,2694,2691,2702,2672,2670,2664,1828,2678,2675,2647,2646,2644,2642,1823,2639,1822,2654,2652,2650,2657,2771,1855,2765,2762,1850,1849,2751,2749,2747,2754,353,2148,344,342,336,2142,332,2140,345,1375,1373,306,2130,299,2128,295,2125,319,314,311,2132,1354,1352,1349,1356,262,257,2101,253,2096,2093,274,273,267,2107,263,2104,280,278,275,1316,1311,1308,1320,1318,2052,202,2050,2044,2040,219,2063,212,2060,208,2055,224,221,2066,1260,1258,1252,231,1248,229,1266,1264,1261,1268,155,1998,153,1996,1994,1991,1988,165,164,2007,162,2006,159,2003,2e3,172,171,169,2012,166,2010,1186,1184,1182,1179,175,1176,173,1192,1191,1189,1187,176,1194,1193,2313,2307,2305,592,589,2294,2292,2289,578,572,568,2297,580,1591,2272,2267,2264,1547,538,536,529,2278,525,2275,547,544,541,1574,1571,2237,2235,2229,1493,2225,1489,478,2247,470,2244,465,2241,493,488,484,2250,498,495,1536,1533,1530,1539,2187,2186,2184,2182,1432,2179,1430,2176,1427,414,412,2197,409,2195,405,2193,2190,426,424,421,2203,418,2201,431,429,1473,1471,1469,1466,434,1477,1475,2478,2472,2470,2459,2457,2454,2462,803,2437,2432,2429,1726,2443,2440,792,789,785,2401,2399,2393,1702,2389,1699,2411,2408,2405,745,741,2415,758,755,1721,2358,2357,2355,2353,1661,2350,1660,2347,1657,2368,2366,2364,2361,1666,690,687,2374,683,2372,701,698,705,1691,1689,2619,2617,2610,2608,2605,2613,2593,2588,2585,1803,2599,2596,2563,2561,2555,1797,2551,1795,2573,2570,2567,2577,2525,2524,2522,2520,1786,2517,1785,2514,1783,2535,2533,2531,2528,1788,2541,2539,906,903,911,2721,1844,2715,2712,1838,1836,2699,2696,2693,2703,1827,1826,1824,2673,2671,2669,2666,1829,2679,2677,1858,1857,2772,1854,1853,1851,1856,2766,2764,143,1987,139,1986,135,133,131,1984,128,1983,125,1981,138,137,136,1985,1133,1132,1130,112,110,1974,107,1973,104,1971,1969,122,121,119,117,1977,114,1976,124,1115,1114,1112,1110,1117,1116,84,83,1953,81,1952,78,1950,1948,1945,94,93,91,1959,88,1958,85,1955,99,97,95,1961,1086,1085,1083,1081,1078,100,1090,1089,1087,1091,49,47,1917,44,1915,1913,1910,1907,59,1926,56,1925,53,1922,1919,66,64,1931,61,1929,1042,1040,1038,71,1035,70,1032,68,1048,1047,1045,1043,1050,1049,12,10,1869,1867,1864,1861,21,1880,19,1877,1874,1871,28,1888,25,1886,22,1883,982,980,977,974,32,30,991,989,987,984,34,995,994,992,2151,2150,2147,2146,2144,356,355,354,2149,2139,2138,2136,2134,1359,343,341,338,2143,335,2141,348,347,346,1376,1374,2124,2123,2121,2119,1326,2116,1324,310,308,305,2131,302,2129,298,2127,320,318,316,313,2133,322,321,1355,1353,1351,1357,2092,2091,2089,2087,1276,2084,1274,2081,1271,259,2102,256,2100,252,2098,2095,272,269,2108,266,2106,281,279,277,1317,1315,1313,1310,282,1321,1319,2039,2037,2035,2032,1203,2029,1200,1197,207,2053,205,2051,201,2049,2046,2043,220,218,2064,215,2062,211,2059,228,226,223,2069,1259,1257,1254,232,1251,230,1267,1265,1263,2316,2315,2312,2311,2309,2314,2304,2303,2301,2299,1593,2308,2306,590,2288,2287,2285,2283,1578,2280,1577,2295,2293,2291,579,577,574,571,2298,582,581,1592,2263,2262,2260,2258,1545,2255,1544,2252,1541,2273,2271,2269,2266,1550,535,532,2279,528,2277,546,543,549,1575,1573,2224,2222,2220,1486,2217,1485,2214,1482,1479,2238,2236,2234,2231,1496,2228,1492,480,477,2248,473,2246,469,2243,490,487,2251,497,1537,1535,1532,2477,2476,2474,2479,2469,2468,2466,2464,1730,2473,2471,2453,2452,2450,2448,1729,2445,1728,2460,2458,2456,2463,805,804,2428,2427,2425,2423,1725,2420,1724,2417,1722,2438,2436,2434,2431,1727,2444,2442,793,791,788,795,2388,2386,2384,1697,2381,1696,2378,1694,1692,2402,2400,2398,2395,1703,2392,1701,2412,2410,2407,751,748,744,2416,759,757,1807,2620,2618,1806,1805,2611,2609,2607,2614,1802,1801,1799,2594,2592,2590,2587,1804,2600,2598,1794,1793,1791,1789,2564,2562,2560,2557,1798,2554,1796,2574,2572,2569,2578,1847,1846,2722,1843,1842,1840,1845,2716,2714,1835,1834,1832,1830,1839,1837,2700,2698,2695,2704,1817,1811,1810,897,862,1777,829,826,838,1760,1758,808,2481,1741,1740,1738,1743,2624,1818,2726,2776,782,740,737,1715,686,679,695,1682,1680,639,628,2339,647,644,1645,1643,1640,1648,602,600,597,595,2320,593,2318,609,607,604,1611,1610,1608,1606,613,1615,1613,2328,926,924,892,886,899,857,850,2505,1778,824,823,821,819,2488,818,2486,833,831,828,840,1761,1759,2649,2632,2630,2746,2734,2732,2782,2781,570,567,1587,531,527,523,540,1566,1564,476,467,463,2240,486,483,1524,1521,1518,1529,411,403,2192,399,2189,423,416,1462,1457,1454,428,1468,1465,2210,366,363,2158,360,2156,357,2153,376,373,370,2163,1410,1409,1407,1405,382,1402,380,1417,1415,1412,1421,2175,2174,777,774,771,784,732,725,722,2404,743,1716,676,674,668,2363,665,2360,685,1684,1681,626,624,622,2335,620,2333,617,2330,641,635,649,1646,1644,1642,2566,928,925,2530,2527,894,891,888,2501,2499,2496,858,856,854,851,1779,2692,2668,2665,2645,2643,2640,2651,2768,2759,2757,2744,2743,2741,2748,352,1382,340,337,333,1371,1369,307,300,296,2126,315,312,1347,1342,1350,261,258,250,2097,246,2094,271,268,264,1306,1301,1298,276,1312,1309,2115,203,2048,195,2045,191,2041,213,209,2056,1246,1244,1238,225,1234,222,1256,1253,1249,1262,2080,2079,154,1997,150,1995,147,1992,1989,163,160,2004,156,2001,1175,1174,1172,1170,1167,170,1164,167,1185,1183,1180,1177,174,1190,1188,2025,2024,2022,587,586,564,559,556,2290,573,1588,520,518,512,2268,508,2265,530,1568,1565,461,457,2233,450,2230,446,2226,479,471,489,1526,1523,1520,397,395,2185,392,2183,389,2180,2177,410,2194,402,422,1463,1461,1459,1456,1470,2455,799,2433,2430,779,776,773,2397,2394,2390,734,728,724,746,1717,2356,2354,2351,2348,1658,677,675,673,670,667,688,1685,1683,2606,2589,2586,2559,2556,2552,927,2523,2521,2518,2515,1784,2532,895,893,890,2718,2709,2707,2689,2687,2684,2663,2662,2660,2658,1825,2667,2769,1852,2760,2758,142,141,1139,1138,134,132,129,126,1982,1129,1128,1126,1131,113,111,108,105,1972,101,1970,120,118,115,1109,1108,1106,1104,123,1113,1111,82,79,1951,75,1949,72,1946,92,89,86,1956,1077,1076,1074,1072,98,1069,96,1084,1082,1079,1088,1968,1967,48,45,1916,42,1914,39,1911,1908,60,57,54,1923,50,1920,1031,1030,1028,1026,67,1023,65,1020,62,1041,1039,1036,1033,69,1046,1044,1944,1943,1941,11,9,1868,7,1865,1862,1859,20,1878,16,1875,13,1872,970,968,966,963,29,960,26,23,983,981,978,975,33,971,31,990,988,985,1906,1904,1902,993,351,2145,1383,331,330,328,326,2137,323,2135,339,1372,1370,294,293,291,289,2122,286,2120,283,2117,309,303,317,1348,1346,1344,245,244,242,2090,239,2088,236,2085,2082,260,2099,249,270,1307,1305,1303,1300,1314,189,2038,186,2036,183,2033,2030,2026,206,198,2047,194,216,1247,1245,1243,1240,227,1237,1255,2310,2302,2300,2286,2284,2281,565,563,561,558,575,1589,2261,2259,2256,2253,1542,521,519,517,514,2270,511,533,1569,1567,2223,2221,2218,2215,1483,2211,1480,459,456,453,2232,449,474,491,1527,1525,1522,2475,2467,2465,2451,2449,2446,801,800,2426,2424,2421,2418,1723,2435,780,778,775,2387,2385,2382,2379,1695,2375,1693,2396,735,733,730,727,749,1718,2616,2615,2604,2603,2601,2584,2583,2581,2579,1800,2591,2550,2549,2547,2545,1792,2542,1790,2558,929,2719,1841,2710,2708,1833,1831,2690,2688,2686,1815,1809,1808,1774,1756,1754,1737,1736,1734,1739,1816,1711,1676,1674,633,629,1638,1636,1633,1641,598,1605,1604,1602,1600,605,1609,1607,2327,887,853,1775,822,820,1757,1755,1584,524,1560,1558,468,464,1514,1511,1508,1519,408,404,400,1452,1447,1444,417,1458,1455,2208,364,361,358,2154,1401,1400,1398,1396,374,1393,371,1408,1406,1403,1413,2173,2172,772,726,723,1712,672,669,666,682,1678,1675,625,623,621,618,2331,636,632,1639,1637,1635,920,918,884,880,889,849,848,847,846,2497,855,852,1776,2641,2742,2787,1380,334,1367,1365,301,297,1340,1338,1335,1343,255,251,247,1296,1291,1288,265,1302,1299,2113,204,196,192,2042,1232,1230,1224,214,1220,210,1242,1239,1235,1250,2077,2075,151,148,1993,144,1990,1163,1162,1160,1158,1155,161,1152,157,1173,1171,1168,1165,168,1181,1178,2021,2020,2018,2023,585,560,557,1585,516,509,1562,1559,458,447,2227,472,1516,1513,1510,398,396,393,390,2181,386,2178,407,1453,1451,1449,1446,420,1460,2209,769,764,720,712,2391,729,1713,664,663,661,659,2352,656,2349,671,1679,1677,2553,922,919,2519,2516,885,883,881,2685,2661,2659,2767,2756,2755,140,1137,1136,130,127,1125,1124,1122,1127,109,106,102,1103,1102,1100,1098,116,1107,1105,1980,80,76,73,1947,1068,1067,1065,1063,90,1060,87,1075,1073,1070,1080,1966,1965,46,43,40,1912,36,1909,1019,1018,1016,1014,58,1011,55,1008,51,1029,1027,1024,1021,63,1037,1034,1940,1939,1937,1942,8,1866,4,1863,1,1860,956,954,952,949,946,17,14,969,967,964,961,27,957,24,979,976,972,1901,1900,1898,1896,986,1905,1903,350,349,1381,329,327,324,1368,1366,292,290,287,284,2118,304,1341,1339,1337,1345,243,240,237,2086,233,2083,254,1297,1295,1293,1290,1304,2114,190,187,184,2034,180,2031,177,2027,199,1233,1231,1229,1226,217,1223,1241,2078,2076,584,555,554,552,550,2282,562,1586,507,506,504,502,2257,499,2254,515,1563,1561,445,443,441,2219,438,2216,435,2212,460,454,475,1517,1515,1512,2447,798,797,2422,2419,770,768,766,2383,2380,2376,721,719,717,714,731,1714,2602,2582,2580,2548,2546,2543,923,921,2717,2706,2705,2683,2682,2680,1771,1752,1750,1733,1732,1731,1735,1814,1707,1670,1668,1631,1629,1626,1634,1599,1598,1596,1594,1603,1601,2326,1772,1753,1751,1581,1554,1552,1504,1501,1498,1509,1442,1437,1434,401,1448,1445,2206,1392,1391,1389,1387,1384,359,1399,1397,1394,1404,2171,2170,1708,1672,1669,619,1632,1630,1628,1773,1378,1363,1361,1333,1328,1336,1286,1281,1278,248,1292,1289,2111,1218,1216,1210,197,1206,193,1228,1225,1221,1236,2073,2071,1151,1150,1148,1146,152,1143,149,1140,145,1161,1159,1156,1153,158,1169,1166,2017,2016,2014,2019,1582,510,1556,1553,452,448,1506,1500,394,391,387,1443,1441,1439,1436,1450,2207,765,716,713,1709,662,660,657,1673,1671,916,914,879,878,877,882,1135,1134,1121,1120,1118,1123,1097,1096,1094,1092,103,1101,1099,1979,1059,1058,1056,1054,77,1051,74,1066,1064,1061,1071,1964,1963,1007,1006,1004,1002,999,41,996,37,1017,1015,1012,1009,52,1025,1022,1936,1935,1933,1938,942,940,938,935,932,5,2,955,953,950,947,18,943,15,965,962,958,1895,1894,1892,1890,973,1899,1897,1379,325,1364,1362,288,285,1334,1332,1330,241,238,234,1287,1285,1283,1280,1294,2112,188,185,181,178,2028,1219,1217,1215,1212,200,1209,1227,2074,2072,583,553,551,1583,505,503,500,513,1557,1555,444,442,439,436,2213,455,451,1507,1505,1502,796,763,762,760,767,711,710,708,706,2377,718,715,1710,2544,917,915,2681,1627,1597,1595,2325,1769,1749,1747,1499,1438,1435,2204,1390,1388,1385,1395,2169,2167,1704,1665,1662,1625,1623,1620,1770,1329,1282,1279,2109,1214,1207,1222,2068,2065,1149,1147,1144,1141,146,1157,1154,2013,2011,2008,2015,1579,1549,1546,1495,1487,1433,1431,1428,1425,388,1440,2205,1705,658,1667,1664,1119,1095,1093,1978,1057,1055,1052,1062,1962,1960,1005,1003,1e3,997,38,1013,1010,1932,1930,1927,1934,941,939,936,933,6,930,3,951,948,944,1889,1887,1884,1881,959,1893,1891,35,1377,1360,1358,1327,1325,1322,1331,1277,1275,1272,1269,235,1284,2110,1205,1204,1201,1198,182,1195,179,1213,2070,2067,1580,501,1551,1548,440,437,1497,1494,1490,1503,761,709,707,1706,913,912,2198,1386,2164,2161,1621,1766,2103,1208,2058,2054,1145,1142,2005,2002,1999,2009,1488,1429,1426,2200,1698,1659,1656,1975,1053,1957,1954,1001,998,1924,1921,1918,1928,937,934,931,1879,1876,1873,1870,945,1885,1882,1323,1273,1270,2105,1202,1199,1196,1211,2061,2057,1576,1543,1540,1484,1481,1478,1491,1700]),I}();const ji=cu;var Ua=function(){function I(c,m){this.bits=c,this.points=m}return I.prototype.getBits=function(){return this.bits},I.prototype.getPoints=function(){return this.points},I}();const Fo=Ua;var Vi=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")},Nu=function(){function I(){}return I.detectMultiple=function(c,m,R){var Z=c.getBlackMatrix(),Q=I.detect(R,Z);return Q.length||((Z=Z.clone()).rotate180(),Q=I.detect(R,Z)),new Fo(Z,Q)},I.detect=function(c,m){for(var R,Z,Q=new Array,se=0,de=0,Ee=!1;se<m.getHeight();){var Ve=I.findVertices(m,se,de);if(null!=Ve[0]||null!=Ve[3]){if(Ee=!0,Q.push(Ve),!c)break;null!=Ve[2]?(de=Math.trunc(Ve[2].getX()),se=Math.trunc(Ve[2].getY())):(de=Math.trunc(Ve[4].getX()),se=Math.trunc(Ve[4].getY()))}else{if(!Ee)break;Ee=!1,de=0;try{for(var mt=(R=void 0,Vi(Q)),It=mt.next();!It.done;It=mt.next()){var Jt=It.value;null!=Jt[1]&&(se=Math.trunc(Math.max(se,Jt[1].getY()))),null!=Jt[3]&&(se=Math.max(se,Math.trunc(Jt[3].getY())))}}catch(Xt){R={error:Xt}}finally{try{It&&!It.done&&(Z=mt.return)&&Z.call(mt)}finally{if(R)throw R.error}}se+=I.ROW_STEP}}return Q},I.findVertices=function(c,m,R){var Z=c.getHeight(),Q=c.getWidth(),se=new Array(8);return I.copyToResult(se,I.findRowsWithPattern(c,Z,Q,m,R,I.START_PATTERN),I.INDEXES_START_PATTERN),null!=se[4]&&(R=Math.trunc(se[4].getX()),m=Math.trunc(se[4].getY())),I.copyToResult(se,I.findRowsWithPattern(c,Z,Q,m,R,I.STOP_PATTERN),I.INDEXES_STOP_PATTERN),se},I.copyToResult=function(c,m,R){for(var Z=0;Z<R.length;Z++)c[R[Z]]=m[Z]},I.findRowsWithPattern=function(c,m,R,Z,Q,se){for(var de=new Array(4),Ee=!1,Ve=new Int32Array(se.length);Z<m;Z+=I.ROW_STEP)if(null!=(mt=I.findGuardPattern(c,Q,Z,R,!1,se,Ve))){for(;Z>0;){if(null==(It=I.findGuardPattern(c,Q,--Z,R,!1,se,Ve))){Z++;break}mt=It}de[0]=new Tn(mt[0],Z),de[1]=new Tn(mt[1],Z),Ee=!0;break}var Jt=Z+1;if(Ee){for(var Xt=0,It=Int32Array.from([Math.trunc(de[0].getX()),Math.trunc(de[1].getX())]);Jt<m;Jt++){var mt;if(null!=(mt=I.findGuardPattern(c,It[0],Jt,R,!1,se,Ve))&&Math.abs(It[0]-mt[0])<I.MAX_PATTERN_DRIFT&&Math.abs(It[1]-mt[1])<I.MAX_PATTERN_DRIFT)It=mt,Xt=0;else{if(Xt>I.SKIPPED_ROW_COUNT_MAX)break;Xt++}}de[2]=new Tn(It[0],Jt-=Xt+1),de[3]=new Tn(It[1],Jt)}return Jt-Z<I.BARCODE_MIN_HEIGHT&&W.fill(de,null),de},I.findGuardPattern=function(c,m,R,Z,Q,se,de){W.fillWithin(de,0,de.length,0);for(var Ee=m,Ve=0;c.get(Ee,R)&&Ee>0&&Ve++<I.MAX_PIXEL_DRIFT;)Ee--;for(var mt=Ee,It=0,Jt=se.length,Xt=Q;mt<Z;mt++)if(c.get(mt,R)!==Xt)de[It]++;else{if(It===Jt-1){if(I.patternMatchVariance(de,se,I.MAX_INDIVIDUAL_VARIANCE)<I.MAX_AVG_VARIANCE)return new Int32Array([Ee,mt]);Ee+=de[0]+de[1],s.arraycopy(de,2,de,0,It-1),de[It-1]=0,de[It]=0,It--}else It++;de[It]=1,Xt=!Xt}return It===Jt-1&&I.patternMatchVariance(de,se,I.MAX_INDIVIDUAL_VARIANCE)<I.MAX_AVG_VARIANCE?new Int32Array([Ee,mt-1]):null},I.patternMatchVariance=function(c,m,R){for(var Z=c.length,Q=0,se=0,de=0;de<Z;de++)Q+=c[de],se+=m[de];if(Q<se)return 1/0;var Ee=Q/se;R*=Ee;for(var Ve=0,mt=0;mt<Z;mt++){var It=c[mt],Jt=m[mt]*Ee,Xt=It>Jt?It-Jt:Jt-It;if(Xt>R)return 1/0;Ve+=Xt}return Ve/Q},I.INDEXES_START_PATTERN=Int32Array.from([0,4,1,5]),I.INDEXES_STOP_PATTERN=Int32Array.from([6,2,7,3]),I.MAX_AVG_VARIANCE=.42,I.MAX_INDIVIDUAL_VARIANCE=.8,I.START_PATTERN=Int32Array.from([8,1,1,1,1,1,1,3]),I.STOP_PATTERN=Int32Array.from([7,1,1,3,1,1,1,2,1]),I.MAX_PIXEL_DRIFT=3,I.MAX_PATTERN_DRIFT=5,I.SKIPPED_ROW_COUNT_MAX=25,I.ROW_STEP=5,I.BARCODE_MIN_HEIGHT=10,I}();const Bo=Nu;var Ks=function(){function I(c,m){if(0===m.length)throw new U;this.field=c;var R=m.length;if(R>1&&0===m[0]){for(var Z=1;Z<R&&0===m[Z];)Z++;Z===R?this.coefficients=new Int32Array([0]):(this.coefficients=new Int32Array(R-Z),s.arraycopy(m,Z,this.coefficients,0,this.coefficients.length))}else this.coefficients=m}return I.prototype.getCoefficients=function(){return this.coefficients},I.prototype.getDegree=function(){return this.coefficients.length-1},I.prototype.isZero=function(){return 0===this.coefficients[0]},I.prototype.getCoefficient=function(c){return this.coefficients[this.coefficients.length-1-c]},I.prototype.evaluateAt=function(c){var m,R;if(0===c)return this.getCoefficient(0);if(1===c){var Z=0;try{for(var Q=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")}(this.coefficients),se=Q.next();!se.done;se=Q.next())Z=this.field.add(Z,se.value)}catch(It){m={error:It}}finally{try{se&&!se.done&&(R=Q.return)&&R.call(Q)}finally{if(m)throw m.error}}return Z}for(var Ee=this.coefficients[0],Ve=this.coefficients.length,mt=1;mt<Ve;mt++)Ee=this.field.add(this.field.multiply(c,Ee),this.coefficients[mt]);return Ee},I.prototype.add=function(c){if(!this.field.equals(c.field))throw new U("ModulusPolys do not have same ModulusGF field");if(this.isZero())return c;if(c.isZero())return this;var m=this.coefficients,R=c.coefficients;if(m.length>R.length){var Z=m;m=R,R=Z}var Q=new Int32Array(R.length),se=R.length-m.length;s.arraycopy(R,0,Q,0,se);for(var de=se;de<R.length;de++)Q[de]=this.field.add(m[de-se],R[de]);return new I(this.field,Q)},I.prototype.subtract=function(c){if(!this.field.equals(c.field))throw new U("ModulusPolys do not have same ModulusGF field");return c.isZero()?this:this.add(c.negative())},I.prototype.multiply=function(c){return c instanceof I?this.multiplyOther(c):this.multiplyScalar(c)},I.prototype.multiplyOther=function(c){if(!this.field.equals(c.field))throw new U("ModulusPolys do not have same ModulusGF field");if(this.isZero()||c.isZero())return new I(this.field,new Int32Array([0]));for(var m=this.coefficients,R=m.length,Z=c.coefficients,Q=Z.length,se=new Int32Array(R+Q-1),de=0;de<R;de++)for(var Ee=m[de],Ve=0;Ve<Q;Ve++)se[de+Ve]=this.field.add(se[de+Ve],this.field.multiply(Ee,Z[Ve]));return new I(this.field,se)},I.prototype.negative=function(){for(var c=this.coefficients.length,m=new Int32Array(c),R=0;R<c;R++)m[R]=this.field.subtract(0,this.coefficients[R]);return new I(this.field,m)},I.prototype.multiplyScalar=function(c){if(0===c)return new I(this.field,new Int32Array([0]));if(1===c)return this;for(var m=this.coefficients.length,R=new Int32Array(m),Z=0;Z<m;Z++)R[Z]=this.field.multiply(this.coefficients[Z],c);return new I(this.field,R)},I.prototype.multiplyByMonomial=function(c,m){if(c<0)throw new U;if(0===m)return new I(this.field,new Int32Array([0]));for(var R=this.coefficients.length,Z=new Int32Array(R+c),Q=0;Q<R;Q++)Z[Q]=this.field.multiply(this.coefficients[Q],m);return new I(this.field,Z)},I.prototype.toString=function(){for(var c=new Dt,m=this.getDegree();m>=0;m--){var R=this.getCoefficient(m);0!==R&&(R<0?(c.append(" - "),R=-R):c.length()>0&&c.append(" + "),(0===m||1!==R)&&c.append(R),0!==m&&(1===m?c.append("x"):(c.append("x^"),c.append(m))))}return c.toString()},I}();const qs=Ks;var lc=function(){function I(){}return I.prototype.add=function(c,m){return(c+m)%this.modulus},I.prototype.subtract=function(c,m){return(this.modulus+c-m)%this.modulus},I.prototype.exp=function(c){return this.expTable[c]},I.prototype.log=function(c){if(0===c)throw new U;return this.logTable[c]},I.prototype.inverse=function(c){if(0===c)throw new Gt;return this.expTable[this.modulus-this.logTable[c]-1]},I.prototype.multiply=function(c,m){return 0===c||0===m?0:this.expTable[(this.logTable[c]+this.logTable[m])%(this.modulus-1)]},I.prototype.getSize=function(){return this.modulus},I.prototype.equals=function(c){return c===this},I}();const Bu=lc;var _a=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),vl=function(I){function c(m,R){var Z=I.call(this)||this;Z.modulus=m,Z.expTable=new Int32Array(m),Z.logTable=new Int32Array(m);for(var Q=1,se=0;se<m;se++)Z.expTable[se]=Q,Q=Q*R%m;for(se=0;se<m-1;se++)Z.logTable[Z.expTable[se]]=se;return Z.zero=new qs(Z,new Int32Array([0])),Z.one=new qs(Z,new Int32Array([1])),Z}return _a(c,I),c.prototype.getZero=function(){return this.zero},c.prototype.getOne=function(){return this.one},c.prototype.buildMonomial=function(m,R){if(m<0)throw new U;if(0===R)return this.zero;var Z=new Int32Array(m+1);return Z[0]=R,new qs(this,Z)},c.PDF417_GF=new c(ji.NUMBER_OF_CODEWORDS,3),c}(Bu);const rl=vl;var du=function(){function I(){this.field=rl.PDF417_GF}return I.prototype.decode=function(c,m,R){for(var Z,Q,se=new qs(this.field,c),de=new Int32Array(m),Ee=!1,Ve=m;Ve>0;Ve--){var mt=se.evaluateAt(this.field.exp(Ve));de[m-Ve]=mt,0!==mt&&(Ee=!0)}if(!Ee)return 0;var It=this.field.getOne();if(null!=R)try{for(var Jt=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")}(R),Xt=Jt.next();!Xt.done;Xt=Jt.next()){var Yr=this.field.exp(c.length-1-Xt.value),on=new qs(this.field,new Int32Array([this.field.subtract(0,Yr),1]));It=It.multiply(on)}}catch(mi){Z={error:mi}}finally{try{Xt&&!Xt.done&&(Q=Jt.return)&&Q.call(Jt)}finally{if(Z)throw Z.error}}var ln=new qs(this.field,de),en=this.runEuclideanAlgorithm(this.field.buildMonomial(m,1),ln,m),mn=en[0],In=en[1],jn=this.findErrorLocations(mn),Zn=this.findErrorMagnitudes(In,mn,jn);for(Ve=0;Ve<jn.length;Ve++){var Xn=c.length-1-this.field.log(jn[Ve]);if(Xn<0)throw K.getChecksumInstance();c[Xn]=this.field.subtract(c[Xn],Zn[Ve])}return jn.length},I.prototype.runEuclideanAlgorithm=function(c,m,R){if(c.getDegree()<m.getDegree()){var Z=c;c=m,m=Z}for(var Q=c,se=m,de=this.field.getZero(),Ee=this.field.getOne();se.getDegree()>=Math.round(R/2);){var Ve=Q,mt=de;if(de=Ee,(Q=se).isZero())throw K.getChecksumInstance();se=Ve;for(var It=this.field.getZero(),Jt=Q.getCoefficient(Q.getDegree()),Xt=this.field.inverse(Jt);se.getDegree()>=Q.getDegree()&&!se.isZero();){var Lr=se.getDegree()-Q.getDegree(),Yr=this.field.multiply(se.getCoefficient(se.getDegree()),Xt);It=It.add(this.field.buildMonomial(Lr,Yr)),se=se.subtract(Q.multiplyByMonomial(Lr,Yr))}Ee=It.multiply(de).subtract(mt).negative()}var on=Ee.getCoefficient(0);if(0===on)throw K.getChecksumInstance();var ln=this.field.inverse(on);return[Ee.multiply(ln),se.multiply(ln)]},I.prototype.findErrorLocations=function(c){for(var m=c.getDegree(),R=new Int32Array(m),Z=0,Q=1;Q<this.field.getSize()&&Z<m;Q++)0===c.evaluateAt(Q)&&(R[Z]=this.field.inverse(Q),Z++);if(Z!==m)throw K.getChecksumInstance();return R},I.prototype.findErrorMagnitudes=function(c,m,R){for(var Z=m.getDegree(),Q=new Int32Array(Z),se=1;se<=Z;se++)Q[Z-se]=this.field.multiply(se,m.getCoefficient(se));var de=new qs(this.field,Q),Ee=R.length,Ve=new Int32Array(Ee);for(se=0;se<Ee;se++){var mt=this.field.inverse(R[se]),It=this.field.subtract(0,c.evaluateAt(mt)),Jt=this.field.inverse(de.evaluateAt(mt));Ve[se]=this.field.multiply(It,Jt)}return Ve},I}();const fu=du;var hu=function(){function I(c,m,R,Z,Q){c instanceof I?this.constructor_2(c):this.constructor_1(c,m,R,Z,Q)}return I.prototype.constructor_1=function(c,m,R,Z,Q){var se=null==m||null==R,de=null==Z||null==Q;if(se&&de)throw new X;se?(m=new Tn(0,Z.getY()),R=new Tn(0,Q.getY())):de&&(Z=new Tn(c.getWidth()-1,m.getY()),Q=new Tn(c.getWidth()-1,R.getY())),this.image=c,this.topLeft=m,this.bottomLeft=R,this.topRight=Z,this.bottomRight=Q,this.minX=Math.trunc(Math.min(m.getX(),R.getX())),this.maxX=Math.trunc(Math.max(Z.getX(),Q.getX())),this.minY=Math.trunc(Math.min(m.getY(),Z.getY())),this.maxY=Math.trunc(Math.max(R.getY(),Q.getY()))},I.prototype.constructor_2=function(c){this.image=c.image,this.topLeft=c.getTopLeft(),this.bottomLeft=c.getBottomLeft(),this.topRight=c.getTopRight(),this.bottomRight=c.getBottomRight(),this.minX=c.getMinX(),this.maxX=c.getMaxX(),this.minY=c.getMinY(),this.maxY=c.getMaxY()},I.merge=function(c,m){return null==c?m:null==m?c:new I(c.image,c.topLeft,c.bottomLeft,m.topRight,m.bottomRight)},I.prototype.addMissingRows=function(c,m,R){var Z=this.topLeft,Q=this.bottomLeft,se=this.topRight,de=this.bottomRight;if(c>0){var Ee=R?this.topLeft:this.topRight,Ve=Math.trunc(Ee.getY()-c);Ve<0&&(Ve=0);var mt=new Tn(Ee.getX(),Ve);R?Z=mt:se=mt}if(m>0){var It=R?this.bottomLeft:this.bottomRight,Jt=Math.trunc(It.getY()+m);Jt>=this.image.getHeight()&&(Jt=this.image.getHeight()-1);var Xt=new Tn(It.getX(),Jt);R?Q=Xt:de=Xt}return new I(this.image,Z,Q,se,de)},I.prototype.getMinX=function(){return this.minX},I.prototype.getMaxX=function(){return this.maxX},I.prototype.getMinY=function(){return this.minY},I.prototype.getMaxY=function(){return this.maxY},I.prototype.getTopLeft=function(){return this.topLeft},I.prototype.getTopRight=function(){return this.topRight},I.prototype.getBottomLeft=function(){return this.bottomLeft},I.prototype.getBottomRight=function(){return this.bottomRight},I}();const uc=hu;var Uo=function(){function I(c,m,R,Z){this.columnCount=c,this.errorCorrectionLevel=Z,this.rowCountUpperPart=m,this.rowCountLowerPart=R,this.rowCount=m+R}return I.prototype.getColumnCount=function(){return this.columnCount},I.prototype.getErrorCorrectionLevel=function(){return this.errorCorrectionLevel},I.prototype.getRowCount=function(){return this.rowCount},I.prototype.getRowCountUpperPart=function(){return this.rowCountUpperPart},I.prototype.getRowCountLowerPart=function(){return this.rowCountLowerPart},I}();const _o=Uo;var Uu=function(){function I(){this.buffer=""}return I.form=function(c,m){var R=-1;return c.replace(/%(-)?(0?[0-9]+)?([.][0-9]+)?([#][0-9]+)?([scfpexd%])/g,function Z(se,de,Ee,Ve,mt,It){if("%%"===se)return"%";if(void 0!==m[++R]){se=Ve?parseInt(Ve.substr(1)):void 0;var Xt,Jt=mt?parseInt(mt.substr(1)):void 0;switch(It){case"s":Xt=m[R];break;case"c":Xt=m[R][0];break;case"f":Xt=parseFloat(m[R]).toFixed(se);break;case"p":Xt=parseFloat(m[R]).toPrecision(se);break;case"e":Xt=parseFloat(m[R]).toExponential(se);break;case"x":Xt=parseInt(m[R]).toString(Jt||16);break;case"d":Xt=parseFloat(parseInt(m[R],Jt||10).toPrecision(se)).toFixed(0)}Xt="object"==typeof Xt?JSON.stringify(Xt):(+Xt).toString(Jt);for(var Lr=parseInt(Ee),Yr=Ee&&Ee[0]+""=="0"?"0":" ";Xt.length<Lr;)Xt=void 0!==de?Xt+Yr:Yr+Xt;return Xt}})},I.prototype.format=function(c){for(var m=[],R=1;R<arguments.length;R++)m[R-1]=arguments[R];this.buffer+=I.form(c,m)},I.prototype.toString=function(){return this.buffer},I}();const Io=Uu;var cc=function(){function I(c){this.boundingBox=new uc(c),this.codewords=new Array(c.getMaxY()-c.getMinY()+1)}return I.prototype.getCodewordNearby=function(c){var m=this.getCodeword(c);if(null!=m)return m;for(var R=1;R<I.MAX_NEARBY_DISTANCE;R++){var Z=this.imageRowToCodewordIndex(c)-R;if(Z>=0&&null!=(m=this.codewords[Z])||(Z=this.imageRowToCodewordIndex(c)+R)<this.codewords.length&&null!=(m=this.codewords[Z]))return m}return null},I.prototype.imageRowToCodewordIndex=function(c){return c-this.boundingBox.getMinY()},I.prototype.setCodeword=function(c,m){this.codewords[this.imageRowToCodewordIndex(c)]=m},I.prototype.getCodeword=function(c){return this.codewords[this.imageRowToCodewordIndex(c)]},I.prototype.getBoundingBox=function(){return this.boundingBox},I.prototype.getCodewords=function(){return this.codewords},I.prototype.toString=function(){var c,m,R=new Io,Z=0;try{for(var Q=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")}(this.codewords),se=Q.next();!se.done;se=Q.next()){var de=se.value;null!=de?R.format("%3d: %3d|%3d%n",Z++,de.getRowNumber(),de.getValue()):R.format("%3d:    |   %n",Z++)}}catch(Ee){c={error:Ee}}finally{try{se&&!se.done&&(m=Q.return)&&m.call(Q)}finally{if(c)throw c.error}}return R.toString()},I.MAX_NEARBY_DISTANCE=5,I}();const nl=cc;var Ul=function(I,c){var m="function"==typeof Symbol&&I[Symbol.iterator];if(!m)return I;var Z,se,R=m.call(I),Q=[];try{for(;(void 0===c||c-- >0)&&!(Z=R.next()).done;)Q.push(Z.value)}catch(de){se={error:de}}finally{try{Z&&!Z.done&&(m=R.return)&&m.call(R)}finally{if(se)throw se.error}}return Q},dc=function(){function I(){this.values=new Map}return I.prototype.setValue=function(c){c=Math.trunc(c);var m=this.values.get(c);null==m&&(m=0),m++,this.values.set(c,m)},I.prototype.getValue=function(){var c,m,R=-1,Z=new Array,Q=function(It,Jt){var Xt_getKey=function(){return It},Xt_getValue=function(){return Jt};Xt_getValue()>R?(R=Xt_getValue(),(Z=[]).push(Xt_getKey())):Xt_getValue()===R&&Z.push(Xt_getKey())};try{for(var se=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")}(this.values.entries()),de=se.next();!de.done;de=se.next()){var Ee=Ul(de.value,2);Q(Ee[0],Ee[1])}}catch(It){c={error:It}}finally{try{de&&!de.done&&(m=se.return)&&m.call(se)}finally{if(c)throw c.error}}return ji.toIntArray(Z)},I.prototype.getConfidence=function(c){return this.values.get(c)},I}();const Ha=dc;var Ja=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),il=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")},Hl=function(I){function c(m,R){var Z=I.call(this,m)||this;return Z._isLeft=R,Z}return Ja(c,I),c.prototype.setRowNumbers=function(){var m,R;try{for(var Z=il(this.getCodewords()),Q=Z.next();!Q.done;Q=Z.next()){var se=Q.value;null!=se&&se.setRowNumberAsRowIndicatorColumn()}}catch(de){m={error:de}}finally{try{Q&&!Q.done&&(R=Z.return)&&R.call(Z)}finally{if(m)throw m.error}}},c.prototype.adjustCompleteIndicatorColumnRowNumbers=function(m){var R=this.getCodewords();this.setRowNumbers(),this.removeIncorrectCodewords(R,m);for(var Z=this.getBoundingBox(),Q=this._isLeft?Z.getTopLeft():Z.getTopRight(),se=this._isLeft?Z.getBottomLeft():Z.getBottomRight(),de=this.imageRowToCodewordIndex(Math.trunc(Q.getY())),Ee=this.imageRowToCodewordIndex(Math.trunc(se.getY())),Ve=-1,mt=1,It=0,Jt=de;Jt<Ee;Jt++)if(null!=R[Jt]){var Xt=R[Jt],Lr=Xt.getRowNumber()-Ve;if(0===Lr)It++;else if(1===Lr)mt=Math.max(mt,It),It=1,Ve=Xt.getRowNumber();else if(Lr<0||Xt.getRowNumber()>=m.getRowCount()||Lr>Jt)R[Jt]=null;else{for(var Yr,on=(Yr=mt>2?(mt-2)*Lr:Lr)>=Jt,ln=1;ln<=Yr&&!on;ln++)on=null!=R[Jt-ln];on?R[Jt]=null:(Ve=Xt.getRowNumber(),It=1)}}},c.prototype.getRowHeights=function(){var m,R,Z=this.getBarcodeMetadata();if(null==Z)return null;this.adjustIncompleteIndicatorColumnRowNumbers(Z);var Q=new Int32Array(Z.getRowCount());try{for(var se=il(this.getCodewords()),de=se.next();!de.done;de=se.next()){var Ee=de.value;if(null!=Ee){var Ve=Ee.getRowNumber();if(Ve>=Q.length)continue;Q[Ve]++}}}catch(mt){m={error:mt}}finally{try{de&&!de.done&&(R=se.return)&&R.call(se)}finally{if(m)throw m.error}}return Q},c.prototype.adjustIncompleteIndicatorColumnRowNumbers=function(m){for(var R=this.getBoundingBox(),Z=this._isLeft?R.getTopLeft():R.getTopRight(),Q=this._isLeft?R.getBottomLeft():R.getBottomRight(),se=this.imageRowToCodewordIndex(Math.trunc(Z.getY())),de=this.imageRowToCodewordIndex(Math.trunc(Q.getY())),Ee=this.getCodewords(),Ve=-1,mt=1,It=0,Jt=se;Jt<de;Jt++)if(null!=Ee[Jt]){var Xt=Ee[Jt];Xt.setRowNumberAsRowIndicatorColumn();var Lr=Xt.getRowNumber()-Ve;0===Lr?It++:1===Lr?(mt=Math.max(mt,It),It=1,Ve=Xt.getRowNumber()):Xt.getRowNumber()>=m.getRowCount()?Ee[Jt]=null:(Ve=Xt.getRowNumber(),It=1)}},c.prototype.getBarcodeMetadata=function(){var m,R,Z=this.getCodewords(),Q=new Ha,se=new Ha,de=new Ha,Ee=new Ha;try{for(var Ve=il(Z),mt=Ve.next();!mt.done;mt=Ve.next()){var It=mt.value;if(null!=It){It.setRowNumberAsRowIndicatorColumn();var Jt=It.getValue()%30,Xt=It.getRowNumber();switch(this._isLeft||(Xt+=2),Xt%3){case 0:se.setValue(3*Jt+1);break;case 1:Ee.setValue(Jt/3),de.setValue(Jt%3);break;case 2:Q.setValue(Jt+1)}}}}catch(Yr){m={error:Yr}}finally{try{mt&&!mt.done&&(R=Ve.return)&&R.call(Ve)}finally{if(m)throw m.error}}if(0===Q.getValue().length||0===se.getValue().length||0===de.getValue().length||0===Ee.getValue().length||Q.getValue()[0]<1||se.getValue()[0]+de.getValue()[0]<ji.MIN_ROWS_IN_BARCODE||se.getValue()[0]+de.getValue()[0]>ji.MAX_ROWS_IN_BARCODE)return null;var Lr=new _o(Q.getValue()[0],se.getValue()[0],de.getValue()[0],Ee.getValue()[0]);return this.removeIncorrectCodewords(Z,Lr),Lr},c.prototype.removeIncorrectCodewords=function(m,R){for(var Z=0;Z<m.length;Z++){var Q=m[Z];if(null!=m[Z]){var se=Q.getValue()%30,de=Q.getRowNumber();if(de>R.getRowCount()){m[Z]=null;continue}switch(this._isLeft||(de+=2),de%3){case 0:3*se+1!==R.getRowCountUpperPart()&&(m[Z]=null);break;case 1:(Math.trunc(se/3)!==R.getErrorCorrectionLevel()||se%3!==R.getRowCountLowerPart())&&(m[Z]=null);break;case 2:se+1!==R.getColumnCount()&&(m[Z]=null)}}}},c.prototype.isLeft=function(){return this._isLeft},c.prototype.toString=function(){return"IsLeft: "+this._isLeft+"\n"+I.prototype.toString.call(this)},c}(nl);const Vl=Hl;var fc=function(){function I(c,m){this.ADJUST_ROW_NUMBER_SKIP=2,this.barcodeMetadata=c,this.barcodeColumnCount=c.getColumnCount(),this.boundingBox=m,this.detectionResultColumns=new Array(this.barcodeColumnCount+2)}return I.prototype.getDetectionResultColumns=function(){this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[0]),this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[this.barcodeColumnCount+1]);var m,c=ji.MAX_CODEWORDS_IN_BARCODE;do{m=c,c=this.adjustRowNumbersAndGetCount()}while(c>0&&c<m);return this.detectionResultColumns},I.prototype.adjustIndicatorColumnRowNumbers=function(c){null!=c&&c.adjustCompleteIndicatorColumnRowNumbers(this.barcodeMetadata)},I.prototype.adjustRowNumbersAndGetCount=function(){var c=this.adjustRowNumbersByRow();if(0===c)return 0;for(var m=1;m<this.barcodeColumnCount+1;m++)for(var R=this.detectionResultColumns[m].getCodewords(),Z=0;Z<R.length;Z++)null!=R[Z]&&(R[Z].hasValidRowNumber()||this.adjustRowNumbers(m,Z,R));return c},I.prototype.adjustRowNumbersByRow=function(){return this.adjustRowNumbersFromBothRI(),this.adjustRowNumbersFromLRI()+this.adjustRowNumbersFromRRI()},I.prototype.adjustRowNumbersFromBothRI=function(){if(null!=this.detectionResultColumns[0]&&null!=this.detectionResultColumns[this.barcodeColumnCount+1])for(var c=this.detectionResultColumns[0].getCodewords(),m=this.detectionResultColumns[this.barcodeColumnCount+1].getCodewords(),R=0;R<c.length;R++)if(null!=c[R]&&null!=m[R]&&c[R].getRowNumber()===m[R].getRowNumber())for(var Z=1;Z<=this.barcodeColumnCount;Z++){var Q=this.detectionResultColumns[Z].getCodewords()[R];null!=Q&&(Q.setRowNumber(c[R].getRowNumber()),Q.hasValidRowNumber()||(this.detectionResultColumns[Z].getCodewords()[R]=null))}},I.prototype.adjustRowNumbersFromRRI=function(){if(null==this.detectionResultColumns[this.barcodeColumnCount+1])return 0;for(var c=0,m=this.detectionResultColumns[this.barcodeColumnCount+1].getCodewords(),R=0;R<m.length;R++)if(null!=m[R])for(var Z=m[R].getRowNumber(),Q=0,se=this.barcodeColumnCount+1;se>0&&Q<this.ADJUST_ROW_NUMBER_SKIP;se--){var de=this.detectionResultColumns[se].getCodewords()[R];null!=de&&(Q=I.adjustRowNumberIfValid(Z,Q,de),de.hasValidRowNumber()||c++)}return c},I.prototype.adjustRowNumbersFromLRI=function(){if(null==this.detectionResultColumns[0])return 0;for(var c=0,m=this.detectionResultColumns[0].getCodewords(),R=0;R<m.length;R++)if(null!=m[R])for(var Z=m[R].getRowNumber(),Q=0,se=1;se<this.barcodeColumnCount+1&&Q<this.ADJUST_ROW_NUMBER_SKIP;se++){var de=this.detectionResultColumns[se].getCodewords()[R];null!=de&&(Q=I.adjustRowNumberIfValid(Z,Q,de),de.hasValidRowNumber()||c++)}return c},I.adjustRowNumberIfValid=function(c,m,R){return null==R||R.hasValidRowNumber()||(R.isValidRowNumber(c)?(R.setRowNumber(c),m=0):++m),m},I.prototype.adjustRowNumbers=function(c,m,R){var Z,Q;if(null!=this.detectionResultColumns[c-1]){var se=R[m],de=this.detectionResultColumns[c-1].getCodewords(),Ee=de;null!=this.detectionResultColumns[c+1]&&(Ee=this.detectionResultColumns[c+1].getCodewords());var Ve=new Array(14);Ve[2]=de[m],Ve[3]=Ee[m],m>0&&(Ve[0]=R[m-1],Ve[4]=de[m-1],Ve[5]=Ee[m-1]),m>1&&(Ve[8]=R[m-2],Ve[10]=de[m-2],Ve[11]=Ee[m-2]),m<R.length-1&&(Ve[1]=R[m+1],Ve[6]=de[m+1],Ve[7]=Ee[m+1]),m<R.length-2&&(Ve[9]=R[m+2],Ve[12]=de[m+2],Ve[13]=Ee[m+2]);try{for(var mt=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")}(Ve),It=mt.next();!It.done;It=mt.next())if(I.adjustRowNumber(se,It.value))return}catch(Xt){Z={error:Xt}}finally{try{It&&!It.done&&(Q=mt.return)&&Q.call(mt)}finally{if(Z)throw Z.error}}}},I.adjustRowNumber=function(c,m){return!(null==m||!m.hasValidRowNumber()||m.getBucket()!==c.getBucket()||(c.setRowNumber(m.getRowNumber()),0))},I.prototype.getBarcodeColumnCount=function(){return this.barcodeColumnCount},I.prototype.getBarcodeRowCount=function(){return this.barcodeMetadata.getRowCount()},I.prototype.getBarcodeECLevel=function(){return this.barcodeMetadata.getErrorCorrectionLevel()},I.prototype.setBoundingBox=function(c){this.boundingBox=c},I.prototype.getBoundingBox=function(){return this.boundingBox},I.prototype.setDetectionResultColumn=function(c,m){this.detectionResultColumns[c]=m},I.prototype.getDetectionResultColumn=function(c){return this.detectionResultColumns[c]},I.prototype.toString=function(){var c=this.detectionResultColumns[0];null==c&&(c=this.detectionResultColumns[this.barcodeColumnCount+1]);for(var m=new Io,R=0;R<c.getCodewords().length;R++){m.format("CW %3d:",R);for(var Z=0;Z<this.barcodeColumnCount+2;Z++)if(null!=this.detectionResultColumns[Z]){var Q=this.detectionResultColumns[Z].getCodewords()[R];null!=Q?m.format(" %3d|%3d",Q.getRowNumber(),Q.getValue()):m.format("    |   ")}else m.format("    |   ");m.format("%n")}return m.toString()},I}();const Yu=fc;var Yl=function(){function I(c,m,R,Z){this.rowNumber=I.BARCODE_ROW_UNKNOWN,this.startX=Math.trunc(c),this.endX=Math.trunc(m),this.bucket=Math.trunc(R),this.value=Math.trunc(Z)}return I.prototype.hasValidRowNumber=function(){return this.isValidRowNumber(this.rowNumber)},I.prototype.isValidRowNumber=function(c){return c!==I.BARCODE_ROW_UNKNOWN&&this.bucket===c%3*3},I.prototype.setRowNumberAsRowIndicatorColumn=function(){this.rowNumber=Math.trunc(3*Math.trunc(this.value/30)+Math.trunc(this.bucket/3))},I.prototype.getWidth=function(){return this.endX-this.startX},I.prototype.getStartX=function(){return this.startX},I.prototype.getEndX=function(){return this.endX},I.prototype.getBucket=function(){return this.bucket},I.prototype.getValue=function(){return this.value},I.prototype.getRowNumber=function(){return this.rowNumber},I.prototype.setRowNumber=function(c){this.rowNumber=c},I.prototype.toString=function(){return this.rowNumber+"|"+this.value},I.BARCODE_ROW_UNKNOWN=-1,I}();const gu=Yl;var us=function(){function I(){}return I.initialize=function(){for(var c=0;c<ji.SYMBOL_TABLE.length;c++)for(var m=ji.SYMBOL_TABLE[c],R=1&m,Z=0;Z<ji.BARS_IN_MODULE;Z++){for(var Q=0;(1&m)===R;)Q+=1,m>>=1;R=1&m,I.RATIOS_TABLE[c]||(I.RATIOS_TABLE[c]=new Array(ji.BARS_IN_MODULE)),I.RATIOS_TABLE[c][ji.BARS_IN_MODULE-Z-1]=Math.fround(Q/ji.MODULES_IN_CODEWORD)}this.bSymbolTableReady=!0},I.getDecodedValue=function(c){var m=I.getDecodedCodewordValue(I.sampleBitCounts(c));return-1!==m?m:I.getClosestDecodedValue(c)},I.sampleBitCounts=function(c){for(var m=Nr.sum(c),R=new Int32Array(ji.BARS_IN_MODULE),Z=0,Q=0,se=0;se<ji.MODULES_IN_CODEWORD;se++)Q+c[Z]<=m/(2*ji.MODULES_IN_CODEWORD)+se*m/ji.MODULES_IN_CODEWORD&&(Q+=c[Z],Z++),R[Z]++;return R},I.getDecodedCodewordValue=function(c){var m=I.getBitValue(c);return-1===ji.getCodeword(m)?-1:m},I.getBitValue=function(c){for(var m=0,R=0;R<c.length;R++)for(var Z=0;Z<c[R];Z++)m=m<<1|(R%2==0?1:0);return Math.trunc(m)},I.getClosestDecodedValue=function(c){var m=Nr.sum(c),R=new Array(ji.BARS_IN_MODULE);if(m>1)for(var Z=0;Z<R.length;Z++)R[Z]=Math.fround(c[Z]/m);var Q=hn.MAX_VALUE,se=-1;this.bSymbolTableReady||I.initialize();for(var de=0;de<I.RATIOS_TABLE.length;de++){for(var Ee=0,Ve=I.RATIOS_TABLE[de],mt=0;mt<ji.BARS_IN_MODULE;mt++){var It=Math.fround(Ve[mt]-R[mt]);if((Ee+=Math.fround(It*It))>=Q)break}Ee<Q&&(Q=Ee,se=ji.SYMBOL_TABLE[de])}return se},I.bSymbolTableReady=!1,I.RATIOS_TABLE=new Array(ji.SYMBOL_TABLE.length).map(function(c){return new Array(ji.BARS_IN_MODULE)}),I}();const me=us;var Je=function(){function I(){this.segmentCount=-1,this.fileSize=-1,this.timestamp=-1,this.checksum=-1}return I.prototype.getSegmentIndex=function(){return this.segmentIndex},I.prototype.setSegmentIndex=function(c){this.segmentIndex=c},I.prototype.getFileId=function(){return this.fileId},I.prototype.setFileId=function(c){this.fileId=c},I.prototype.getOptionalData=function(){return this.optionalData},I.prototype.setOptionalData=function(c){this.optionalData=c},I.prototype.isLastSegment=function(){return this.lastSegment},I.prototype.setLastSegment=function(c){this.lastSegment=c},I.prototype.getSegmentCount=function(){return this.segmentCount},I.prototype.setSegmentCount=function(c){this.segmentCount=c},I.prototype.getSender=function(){return this.sender||null},I.prototype.setSender=function(c){this.sender=c},I.prototype.getAddressee=function(){return this.addressee||null},I.prototype.setAddressee=function(c){this.addressee=c},I.prototype.getFileName=function(){return this.fileName},I.prototype.setFileName=function(c){this.fileName=c},I.prototype.getFileSize=function(){return this.fileSize},I.prototype.setFileSize=function(c){this.fileSize=c},I.prototype.getChecksum=function(){return this.checksum},I.prototype.setChecksum=function(c){this.checksum=c},I.prototype.getTimestamp=function(){return this.timestamp},I.prototype.setTimestamp=function(c){this.timestamp=c},I}();const Ht=Je;var or=function(){function I(){}return I.parseLong=function(c,m){return void 0===m&&(m=void 0),parseInt(c,m)},I}();const Dr=or;var rn=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),Dn=function(I){function c(){return null!==I&&I.apply(this,arguments)||this}return rn(c,I),c.kind="NullPointerException",c}(a);const ri=Dn;var Ai=function(){function I(){}return I.prototype.writeBytes=function(c){this.writeBytesOffset(c,0,c.length)},I.prototype.writeBytesOffset=function(c,m,R){if(null==c)throw new ri;if(m<0||m>c.length||R<0||m+R>c.length||m+R<0)throw new E;if(0!==R)for(var Z=0;Z<R;Z++)this.write(c[m+Z])},I.prototype.flush=function(){},I.prototype.close=function(){},I}();const ds=Ai;var Fs=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),Ys=function(I){function c(){return null!==I&&I.apply(this,arguments)||this}return Fs(c,I),c}(a);const co=Ys;var mu=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),Uf=function(I){function c(m){void 0===m&&(m=32);var R=I.call(this)||this;if(R.count=0,m<0)throw new U("Negative initial size: "+m);return R.buf=new Uint8Array(m),R}return mu(c,I),c.prototype.ensureCapacity=function(m){m-this.buf.length>0&&this.grow(m)},c.prototype.grow=function(m){var Z=this.buf.length<<1;if(Z-m<0&&(Z=m),Z<0){if(m<0)throw new co;Z=ae.MAX_VALUE}this.buf=W.copyOfUint8Array(this.buf,Z)},c.prototype.write=function(m){this.ensureCapacity(this.count+1),this.buf[this.count]=m,this.count+=1},c.prototype.writeBytesOffset=function(m,R,Z){if(R<0||R>m.length||Z<0||R+Z-m.length>0)throw new E;this.ensureCapacity(this.count+Z),s.arraycopy(m,R,this.buf,this.count,Z),this.count+=Z},c.prototype.writeTo=function(m){m.writeBytesOffset(this.buf,0,this.count)},c.prototype.reset=function(){this.count=0},c.prototype.toByteArray=function(){return W.copyOfUint8Array(this.buf,this.count)},c.prototype.size=function(){return this.count},c.prototype.toString=function(m){return m?"string"==typeof m?this.toString_string(m):this.toString_number(m):this.toString_void()},c.prototype.toString_void=function(){return new String(this.buf).toString()},c.prototype.toString_string=function(m){return new String(this.buf).toString()},c.prototype.toString_number=function(m){return new String(this.buf).toString()},c.prototype.close=function(){},c}(ds);const Hf=Uf;var Gu,vs=(()=>(function(I){I[I.ALPHA=0]="ALPHA",I[I.LOWER=1]="LOWER",I[I.MIXED=2]="MIXED",I[I.PUNCT=3]="PUNCT",I[I.ALPHA_SHIFT=4]="ALPHA_SHIFT",I[I.PUNCT_SHIFT=5]="PUNCT_SHIFT"}(vs||(vs={})),vs))();function ju(){if(typeof window<"u")return window.BigInt||null;if(typeof global<"u")return global.BigInt||null;if(typeof self<"u")return self.BigInt||null;throw new Error("Can't search globals for BigInt!")}function Ho(I){if(typeof Gu>"u"&&(Gu=ju()),null===Gu)throw new Error("BigInt is not supported!");return Gu(I)}var hc=function(){function I(){}return I.decode=function(c,m){var R=new Dt(""),Z=be.ISO8859_1;R.enableDecoding(Z);for(var Q=1,se=c[Q++],de=new Ht;Q<c[0];){switch(se){case I.TEXT_COMPACTION_MODE_LATCH:Q=I.textCompaction(c,Q,R);break;case I.BYTE_COMPACTION_MODE_LATCH:case I.BYTE_COMPACTION_MODE_LATCH_6:Q=I.byteCompaction(se,c,Z,Q,R);break;case I.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:R.append(c[Q++]);break;case I.NUMERIC_COMPACTION_MODE_LATCH:Q=I.numericCompaction(c,Q,R);break;case I.ECI_CHARSET:be.getCharacterSetECIByValue(c[Q++]);break;case I.ECI_GENERAL_PURPOSE:Q+=2;break;case I.ECI_USER_DEFINED:Q++;break;case I.BEGIN_MACRO_PDF417_CONTROL_BLOCK:Q=I.decodeMacroBlock(c,Q,de);break;case I.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case I.MACRO_PDF417_TERMINATOR:throw new Be;default:Q--,Q=I.textCompaction(c,Q,R)}if(!(Q<c.length))throw Be.getFormatInstance();se=c[Q++]}if(0===R.length())throw Be.getFormatInstance();var Ve=new vt(null,R.toString(),null,m);return Ve.setOther(de),Ve},I.decodeMacroBlock=function(c,m,R){if(m+I.NUMBER_OF_SEQUENCE_CODEWORDS>c[0])throw Be.getFormatInstance();for(var Z=new Int32Array(I.NUMBER_OF_SEQUENCE_CODEWORDS),Q=0;Q<I.NUMBER_OF_SEQUENCE_CODEWORDS;Q++,m++)Z[Q]=c[m];R.setSegmentIndex(ae.parseInt(I.decodeBase900toBase10(Z,I.NUMBER_OF_SEQUENCE_CODEWORDS)));var se=new Dt;m=I.textCompaction(c,m,se),R.setFileId(se.toString());var de=-1;for(c[m]===I.BEGIN_MACRO_PDF417_OPTIONAL_FIELD&&(de=m+1);m<c[0];)switch(c[m]){case I.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:switch(c[++m]){case I.MACRO_PDF417_OPTIONAL_FIELD_FILE_NAME:var Ee=new Dt;m=I.textCompaction(c,m+1,Ee),R.setFileName(Ee.toString());break;case I.MACRO_PDF417_OPTIONAL_FIELD_SENDER:var Ve=new Dt;m=I.textCompaction(c,m+1,Ve),R.setSender(Ve.toString());break;case I.MACRO_PDF417_OPTIONAL_FIELD_ADDRESSEE:var mt=new Dt;m=I.textCompaction(c,m+1,mt),R.setAddressee(mt.toString());break;case I.MACRO_PDF417_OPTIONAL_FIELD_SEGMENT_COUNT:var It=new Dt;m=I.numericCompaction(c,m+1,It),R.setSegmentCount(ae.parseInt(It.toString()));break;case I.MACRO_PDF417_OPTIONAL_FIELD_TIME_STAMP:var Jt=new Dt;m=I.numericCompaction(c,m+1,Jt),R.setTimestamp(Dr.parseLong(Jt.toString()));break;case I.MACRO_PDF417_OPTIONAL_FIELD_CHECKSUM:var Xt=new Dt;m=I.numericCompaction(c,m+1,Xt),R.setChecksum(ae.parseInt(Xt.toString()));break;case I.MACRO_PDF417_OPTIONAL_FIELD_FILE_SIZE:var Lr=new Dt;m=I.numericCompaction(c,m+1,Lr),R.setFileSize(Dr.parseLong(Lr.toString()));break;default:throw Be.getFormatInstance()}break;case I.MACRO_PDF417_TERMINATOR:m++,R.setLastSegment(!0);break;default:throw Be.getFormatInstance()}if(-1!==de){var Yr=m-de;R.isLastSegment()&&Yr--,R.setOptionalData(W.copyOfRange(c,de,de+Yr))}return m},I.textCompaction=function(c,m,R){for(var Z=new Int32Array(2*(c[0]-m)),Q=new Int32Array(2*(c[0]-m)),se=0,de=!1;m<c[0]&&!de;){var Ee=c[m++];if(Ee<I.TEXT_COMPACTION_MODE_LATCH)Z[se]=Ee/30,Z[se+1]=Ee%30,se+=2;else switch(Ee){case I.TEXT_COMPACTION_MODE_LATCH:Z[se++]=I.TEXT_COMPACTION_MODE_LATCH;break;case I.BYTE_COMPACTION_MODE_LATCH:case I.BYTE_COMPACTION_MODE_LATCH_6:case I.NUMERIC_COMPACTION_MODE_LATCH:case I.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case I.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case I.MACRO_PDF417_TERMINATOR:m--,de=!0;break;case I.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:Z[se]=I.MODE_SHIFT_TO_BYTE_COMPACTION_MODE,Ee=c[m++],Q[se]=Ee,se++}}return I.decodeTextCompaction(Z,Q,se,R),m},I.decodeTextCompaction=function(c,m,R,Z){for(var Q=vs.ALPHA,se=vs.ALPHA,de=0;de<R;){var Ee=c[de],Ve="";switch(Q){case vs.ALPHA:if(Ee<26)Ve=String.fromCharCode(65+Ee);else switch(Ee){case 26:Ve=" ";break;case I.LL:Q=vs.LOWER;break;case I.ML:Q=vs.MIXED;break;case I.PS:se=Q,Q=vs.PUNCT_SHIFT;break;case I.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:Z.append(m[de]);break;case I.TEXT_COMPACTION_MODE_LATCH:Q=vs.ALPHA}break;case vs.LOWER:if(Ee<26)Ve=String.fromCharCode(97+Ee);else switch(Ee){case 26:Ve=" ";break;case I.AS:se=Q,Q=vs.ALPHA_SHIFT;break;case I.ML:Q=vs.MIXED;break;case I.PS:se=Q,Q=vs.PUNCT_SHIFT;break;case I.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:Z.append(m[de]);break;case I.TEXT_COMPACTION_MODE_LATCH:Q=vs.ALPHA}break;case vs.MIXED:if(Ee<I.PL)Ve=I.MIXED_CHARS[Ee];else switch(Ee){case I.PL:Q=vs.PUNCT;break;case 26:Ve=" ";break;case I.LL:Q=vs.LOWER;break;case I.AL:Q=vs.ALPHA;break;case I.PS:se=Q,Q=vs.PUNCT_SHIFT;break;case I.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:Z.append(m[de]);break;case I.TEXT_COMPACTION_MODE_LATCH:Q=vs.ALPHA}break;case vs.PUNCT:if(Ee<I.PAL)Ve=I.PUNCT_CHARS[Ee];else switch(Ee){case I.PAL:Q=vs.ALPHA;break;case I.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:Z.append(m[de]);break;case I.TEXT_COMPACTION_MODE_LATCH:Q=vs.ALPHA}break;case vs.ALPHA_SHIFT:if(Q=se,Ee<26)Ve=String.fromCharCode(65+Ee);else switch(Ee){case 26:Ve=" ";break;case I.TEXT_COMPACTION_MODE_LATCH:Q=vs.ALPHA}break;case vs.PUNCT_SHIFT:if(Q=se,Ee<I.PAL)Ve=I.PUNCT_CHARS[Ee];else switch(Ee){case I.PAL:Q=vs.ALPHA;break;case I.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:Z.append(m[de]);break;case I.TEXT_COMPACTION_MODE_LATCH:Q=vs.ALPHA}}""!==Ve&&Z.append(Ve),de++}},I.byteCompaction=function(c,m,R,Z,Q){var se=new Hf,de=0,Ee=0,Ve=!1;switch(c){case I.BYTE_COMPACTION_MODE_LATCH:for(var mt=new Int32Array(6),It=m[Z++];Z<m[0]&&!Ve;)switch(mt[de++]=It,Ee=900*Ee+It,It=m[Z++],It){case I.TEXT_COMPACTION_MODE_LATCH:case I.BYTE_COMPACTION_MODE_LATCH:case I.NUMERIC_COMPACTION_MODE_LATCH:case I.BYTE_COMPACTION_MODE_LATCH_6:case I.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case I.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case I.MACRO_PDF417_TERMINATOR:Z--,Ve=!0;break;default:if(de%5==0&&de>0){for(var Jt=0;Jt<6;++Jt)se.write(Number(Ho(Ee)>>Ho(8*(5-Jt))));Ee=0,de=0}}Z===m[0]&&It<I.TEXT_COMPACTION_MODE_LATCH&&(mt[de++]=It);for(var Xt=0;Xt<de;Xt++)se.write(mt[Xt]);break;case I.BYTE_COMPACTION_MODE_LATCH_6:for(;Z<m[0]&&!Ve;){var Lr=m[Z++];if(Lr<I.TEXT_COMPACTION_MODE_LATCH)de++,Ee=900*Ee+Lr;else switch(Lr){case I.TEXT_COMPACTION_MODE_LATCH:case I.BYTE_COMPACTION_MODE_LATCH:case I.NUMERIC_COMPACTION_MODE_LATCH:case I.BYTE_COMPACTION_MODE_LATCH_6:case I.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case I.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case I.MACRO_PDF417_TERMINATOR:Z--,Ve=!0}if(de%5==0&&de>0){for(Jt=0;Jt<6;++Jt)se.write(Number(Ho(Ee)>>Ho(8*(5-Jt))));Ee=0,de=0}}}return Q.append(Ft.decode(se.toByteArray(),R)),Z},I.numericCompaction=function(c,m,R){for(var Z=0,Q=!1,se=new Int32Array(I.MAX_NUMERIC_CODEWORDS);m<c[0]&&!Q;){var de=c[m++];if(m===c[0]&&(Q=!0),de<I.TEXT_COMPACTION_MODE_LATCH)se[Z]=de,Z++;else switch(de){case I.TEXT_COMPACTION_MODE_LATCH:case I.BYTE_COMPACTION_MODE_LATCH:case I.BYTE_COMPACTION_MODE_LATCH_6:case I.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case I.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case I.MACRO_PDF417_TERMINATOR:m--,Q=!0}(Z%I.MAX_NUMERIC_CODEWORDS==0||de===I.NUMERIC_COMPACTION_MODE_LATCH||Q)&&Z>0&&(R.append(I.decodeBase900toBase10(se,Z)),Z=0)}return m},I.decodeBase900toBase10=function(c,m){for(var R=Ho(0),Z=0;Z<m;Z++)R+=I.EXP900[m-Z-1]*Ho(c[Z]);var Q=R.toString();if("1"!==Q.charAt(0))throw new Be;return Q.substring(1)},I.TEXT_COMPACTION_MODE_LATCH=900,I.BYTE_COMPACTION_MODE_LATCH=901,I.NUMERIC_COMPACTION_MODE_LATCH=902,I.BYTE_COMPACTION_MODE_LATCH_6=924,I.ECI_USER_DEFINED=925,I.ECI_GENERAL_PURPOSE=926,I.ECI_CHARSET=927,I.BEGIN_MACRO_PDF417_CONTROL_BLOCK=928,I.BEGIN_MACRO_PDF417_OPTIONAL_FIELD=923,I.MACRO_PDF417_TERMINATOR=922,I.MODE_SHIFT_TO_BYTE_COMPACTION_MODE=913,I.MAX_NUMERIC_CODEWORDS=15,I.MACRO_PDF417_OPTIONAL_FIELD_FILE_NAME=0,I.MACRO_PDF417_OPTIONAL_FIELD_SEGMENT_COUNT=1,I.MACRO_PDF417_OPTIONAL_FIELD_TIME_STAMP=2,I.MACRO_PDF417_OPTIONAL_FIELD_SENDER=3,I.MACRO_PDF417_OPTIONAL_FIELD_ADDRESSEE=4,I.MACRO_PDF417_OPTIONAL_FIELD_FILE_SIZE=5,I.MACRO_PDF417_OPTIONAL_FIELD_CHECKSUM=6,I.PL=25,I.LL=27,I.AS=27,I.ML=28,I.AL=28,I.PS=29,I.PAL=29,I.PUNCT_CHARS=";<>@[\\]_`~!\r\t,:\n-.$/\"|*()?{}'",I.MIXED_CHARS="0123456789&\r\t,:#-.$/+%*=^",I.EXP900=ju()?function jl(){var I=[];I[0]=Ho(1);var c=Ho(900);I[1]=c;for(var m=2;m<16;m++)I[m]=I[m-1]*c;return I}():[],I.NUMBER_OF_SEQUENCE_CODEWORDS=2,I}();const Vf=hc;var _s=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")},yo=function(){function I(){}return I.decode=function(c,m,R,Z,Q,se,de){for(var It,Ee=new uc(c,m,R,Z,Q),Ve=null,mt=null,Jt=!0;;Jt=!1){if(null!=m&&(Ve=I.getRowIndicatorColumn(c,Ee,m,!0,se,de)),null!=Z&&(mt=I.getRowIndicatorColumn(c,Ee,Z,!1,se,de)),null==(It=I.merge(Ve,mt)))throw X.getNotFoundInstance();var Xt=It.getBoundingBox();if(!Jt||null==Xt||!(Xt.getMinY()<Ee.getMinY()||Xt.getMaxY()>Ee.getMaxY()))break;Ee=Xt}It.setBoundingBox(Ee);var Lr=It.getBarcodeColumnCount()+1;It.setDetectionResultColumn(0,Ve),It.setDetectionResultColumn(Lr,mt);for(var Yr=null!=Ve,on=1;on<=Lr;on++){var ln=Yr?on:Lr-on;if(void 0===It.getDetectionResultColumn(ln)){var en=void 0;en=0===ln||ln===Lr?new Vl(Ee,0===ln):new nl(Ee),It.setDetectionResultColumn(ln,en);for(var mn=-1,In=mn,jn=Ee.getMinY();jn<=Ee.getMaxY();jn++){if((mn=I.getStartColumn(It,ln,jn,Yr))<0||mn>Ee.getMaxX()){if(-1===In)continue;mn=In}var Zn=I.detectCodeword(c,Ee.getMinX(),Ee.getMaxX(),Yr,mn,jn,se,de);null!=Zn&&(en.setCodeword(jn,Zn),In=mn,se=Math.min(se,Zn.getWidth()),de=Math.max(de,Zn.getWidth()))}}}return I.createDecoderResult(It)},I.merge=function(c,m){if(null==c&&null==m)return null;var R=I.getBarcodeMetadata(c,m);if(null==R)return null;var Z=uc.merge(I.adjustBoundingBox(c),I.adjustBoundingBox(m));return new Yu(R,Z)},I.adjustBoundingBox=function(c){var m,R;if(null==c)return null;var Z=c.getRowHeights();if(null==Z)return null;var Q=I.getMax(Z),se=0;try{for(var de=_s(Z),Ee=de.next();!Ee.done;Ee=de.next()){var Ve=Ee.value;if(se+=Q-Ve,Ve>0)break}}catch(Xt){m={error:Xt}}finally{try{Ee&&!Ee.done&&(R=de.return)&&R.call(de)}finally{if(m)throw m.error}}for(var mt=c.getCodewords(),It=0;se>0&&null==mt[It];It++)se--;var Jt=0;for(It=Z.length-1;It>=0&&(Jt+=Q-Z[It],!(Z[It]>0));It--);for(It=mt.length-1;Jt>0&&null==mt[It];It--)Jt--;return c.getBoundingBox().addMissingRows(se,Jt,c.isLeft())},I.getMax=function(c){var m,R,Z=-1;try{for(var Q=_s(c),se=Q.next();!se.done;se=Q.next())Z=Math.max(Z,se.value)}catch(Ee){m={error:Ee}}finally{try{se&&!se.done&&(R=Q.return)&&R.call(Q)}finally{if(m)throw m.error}}return Z},I.getBarcodeMetadata=function(c,m){var R,Z;return null==c||null==(R=c.getBarcodeMetadata())?null==m?null:m.getBarcodeMetadata():null==m||null==(Z=m.getBarcodeMetadata())?R:R.getColumnCount()!==Z.getColumnCount()&&R.getErrorCorrectionLevel()!==Z.getErrorCorrectionLevel()&&R.getRowCount()!==Z.getRowCount()?null:R},I.getRowIndicatorColumn=function(c,m,R,Z,Q,se){for(var de=new Vl(m,Z),Ee=0;Ee<2;Ee++)for(var Ve=0===Ee?1:-1,mt=Math.trunc(Math.trunc(R.getX())),It=Math.trunc(Math.trunc(R.getY()));It<=m.getMaxY()&&It>=m.getMinY();It+=Ve){var Jt=I.detectCodeword(c,0,c.getWidth(),Z,mt,It,Q,se);null!=Jt&&(de.setCodeword(It,Jt),mt=Z?Jt.getStartX():Jt.getEndX())}return de},I.adjustCodewordCount=function(c,m){var R=m[0][1],Z=R.getValue(),Q=c.getBarcodeColumnCount()*c.getBarcodeRowCount()-I.getNumberOfECCodeWords(c.getBarcodeECLevel());if(0===Z.length){if(Q<1||Q>ji.MAX_CODEWORDS_IN_BARCODE)throw X.getNotFoundInstance();R.setValue(Q)}else Z[0]!==Q&&R.setValue(Q)},I.createDecoderResult=function(c){var m=I.createBarcodeMatrix(c);I.adjustCodewordCount(c,m);for(var R=new Array,Z=new Int32Array(c.getBarcodeRowCount()*c.getBarcodeColumnCount()),Q=[],se=new Array,de=0;de<c.getBarcodeRowCount();de++)for(var Ee=0;Ee<c.getBarcodeColumnCount();Ee++){var Ve=m[de][Ee+1].getValue(),mt=de*c.getBarcodeColumnCount()+Ee;0===Ve.length?R.push(mt):1===Ve.length?Z[mt]=Ve[0]:(se.push(mt),Q.push(Ve))}for(var It=new Array(Q.length),Jt=0;Jt<It.length;Jt++)It[Jt]=Q[Jt];return I.createDecoderResultFromAmbiguousValues(c.getBarcodeECLevel(),Z,ji.toIntArray(R),ji.toIntArray(se),It)},I.createDecoderResultFromAmbiguousValues=function(c,m,R,Z,Q){for(var se=new Int32Array(Z.length),de=100;de-- >0;){for(var Ee=0;Ee<se.length;Ee++)m[Z[Ee]]=Q[Ee][se[Ee]];try{return I.decodeCodewords(m,c,R)}catch(mt){if(!(mt instanceof K))throw mt}if(0===se.length)throw K.getChecksumInstance();for(Ee=0;Ee<se.length;Ee++){if(se[Ee]<Q[Ee].length-1){se[Ee]++;break}if(se[Ee]=0,Ee===se.length-1)throw K.getChecksumInstance()}}throw K.getChecksumInstance()},I.createBarcodeMatrix=function(c){for(var m,R,Z,Q,se=Array.from({length:c.getBarcodeRowCount()},function(){return new Array(c.getBarcodeColumnCount()+2)}),de=0;de<se.length;de++)for(var Ee=0;Ee<se[de].length;Ee++)se[de][Ee]=new Ha;var Ve=0;try{for(var mt=_s(c.getDetectionResultColumns()),It=mt.next();!It.done;It=mt.next()){var Jt=It.value;if(null!=Jt)try{for(var Xt=(Z=void 0,_s(Jt.getCodewords())),Lr=Xt.next();!Lr.done;Lr=Xt.next()){var Yr=Lr.value;if(null!=Yr){var on=Yr.getRowNumber();if(on>=0){if(on>=se.length)continue;se[on][Ve].setValue(Yr.getValue())}}}}catch(ln){Z={error:ln}}finally{try{Lr&&!Lr.done&&(Q=Xt.return)&&Q.call(Xt)}finally{if(Z)throw Z.error}}Ve++}}catch(ln){m={error:ln}}finally{try{It&&!It.done&&(R=mt.return)&&R.call(mt)}finally{if(m)throw m.error}}return se},I.isValidBarcodeColumn=function(c,m){return m>=0&&m<=c.getBarcodeColumnCount()+1},I.getStartColumn=function(c,m,R,Z){var Q,se,de=Z?1:-1,Ee=null;if(I.isValidBarcodeColumn(c,m-de)&&(Ee=c.getDetectionResultColumn(m-de).getCodeword(R)),null!=Ee)return Z?Ee.getEndX():Ee.getStartX();if(null!=(Ee=c.getDetectionResultColumn(m).getCodewordNearby(R)))return Z?Ee.getStartX():Ee.getEndX();if(I.isValidBarcodeColumn(c,m-de)&&(Ee=c.getDetectionResultColumn(m-de).getCodewordNearby(R)),null!=Ee)return Z?Ee.getEndX():Ee.getStartX();for(var Ve=0;I.isValidBarcodeColumn(c,m-de);){m-=de;try{for(var mt=(Q=void 0,_s(c.getDetectionResultColumn(m).getCodewords())),It=mt.next();!It.done;It=mt.next()){var Jt=It.value;if(null!=Jt)return(Z?Jt.getEndX():Jt.getStartX())+de*Ve*(Jt.getEndX()-Jt.getStartX())}}catch(Xt){Q={error:Xt}}finally{try{It&&!It.done&&(se=mt.return)&&se.call(mt)}finally{if(Q)throw Q.error}}Ve++}return Z?c.getBoundingBox().getMinX():c.getBoundingBox().getMaxX()},I.detectCodeword=function(c,m,R,Z,Q,se,de,Ee){Q=I.adjustCodewordStartColumn(c,m,R,Z,Q,se);var Ve=I.getModuleBitCount(c,m,R,Z,Q,se);if(null==Ve)return null;var mt,It=Nr.sum(Ve);if(Z)mt=Q+It;else{for(var Jt=0;Jt<Ve.length/2;Jt++){var Xt=Ve[Jt];Ve[Jt]=Ve[Ve.length-1-Jt],Ve[Ve.length-1-Jt]=Xt}Q=(mt=Q)-It}if(!I.checkCodewordSkew(It,de,Ee))return null;var Lr=me.getDecodedValue(Ve),Yr=ji.getCodeword(Lr);return-1===Yr?null:new gu(Q,mt,I.getCodewordBucketNumber(Lr),Yr)},I.getModuleBitCount=function(c,m,R,Z,Q,se){for(var de=Q,Ee=new Int32Array(8),Ve=0,mt=Z?1:-1,It=Z;(Z?de<R:de>=m)&&Ve<Ee.length;)c.get(de,se)===It?(Ee[Ve]++,de+=mt):(Ve++,It=!It);return Ve===Ee.length||de===(Z?R:m)&&Ve===Ee.length-1?Ee:null},I.getNumberOfECCodeWords=function(c){return 2<<c},I.adjustCodewordStartColumn=function(c,m,R,Z,Q,se){for(var de=Q,Ee=Z?-1:1,Ve=0;Ve<2;Ve++){for(;(Z?de>=m:de<R)&&Z===c.get(de,se);){if(Math.abs(Q-de)>I.CODEWORD_SKEW_SIZE)return Q;de+=Ee}Ee=-Ee,Z=!Z}return de},I.checkCodewordSkew=function(c,m,R){return m-I.CODEWORD_SKEW_SIZE<=c&&c<=R+I.CODEWORD_SKEW_SIZE},I.decodeCodewords=function(c,m,R){if(0===c.length)throw Be.getFormatInstance();var Z=1<<m+1,Q=I.correctErrors(c,R,Z);I.verifyCodewordCount(c,Z);var se=Vf.decode(c,""+m);return se.setErrorsCorrected(Q),se.setErasures(R.length),se},I.correctErrors=function(c,m,R){if(null!=m&&m.length>R/2+I.MAX_ERRORS||R<0||R>I.MAX_EC_CODEWORDS)throw K.getChecksumInstance();return I.errorCorrection.decode(c,R,m)},I.verifyCodewordCount=function(c,m){if(c.length<4)throw Be.getFormatInstance();var R=c[0];if(R>c.length)throw Be.getFormatInstance();if(0===R){if(!(m<c.length))throw Be.getFormatInstance();c[0]=c.length-m}},I.getBitCountForCodeword=function(c){for(var m=new Int32Array(8),R=0,Z=m.length-1;!((1&c)!==R&&(R=1&c,Z--,Z<0));)m[Z]++,c>>=1;return m},I.getCodewordBucketNumber=function(c){return c instanceof Int32Array?this.getCodewordBucketNumber_Int32Array(c):this.getCodewordBucketNumber_number(c)},I.getCodewordBucketNumber_number=function(c){return I.getCodewordBucketNumber(I.getBitCountForCodeword(c))},I.getCodewordBucketNumber_Int32Array=function(c){return(c[0]-c[2]+c[4]-c[6]+9)%9},I.toString=function(c){for(var m=new Io,R=0;R<c.length;R++){m.format("Row %2d: ",R);for(var Z=0;Z<c[R].length;Z++){var Q=c[R][Z];0===Q.getValue().length?m.format("        ",null):m.format("%4d(%2d)",Q.getValue()[0],Q.getConfidence(Q.getValue()[0]))}m.format("%n")}return m.toString()},I.CODEWORD_SKEW_SIZE=2,I.MAX_ERRORS=3,I.MAX_EC_CODEWORDS=512,I.errorCorrection=new fu,I}();const Wu=yo;var Gl=function(){function I(){}return I.prototype.decode=function(c,m){void 0===m&&(m=null);var R=I.decode(c,m,!1);if(null==R||0===R.length||null==R[0])throw X.getNotFoundInstance();return R[0]},I.prototype.decodeMultiple=function(c,m){void 0===m&&(m=null);try{return I.decode(c,m,!0)}catch(R){throw R instanceof Be||R instanceof K?X.getNotFoundInstance():R}},I.decode=function(c,m,R){var Z,Q,se=new Array,de=Bo.detectMultiple(c,m,R);try{for(var Ee=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")}(de.getPoints()),Ve=Ee.next();!Ve.done;Ve=Ee.next()){var mt=Ve.value,It=Wu.decode(de.getBits(),mt[4],mt[5],mt[6],mt[7],I.getMinCodewordWidth(mt),I.getMaxCodewordWidth(mt)),Jt=new Fe(It.getText(),It.getRawBytes(),void 0,mt,St.PDF_417);Jt.putMetadata(ke.ERROR_CORRECTION_LEVEL,It.getECLevel());var Xt=It.getOther();null!=Xt&&Jt.putMetadata(ke.PDF417_EXTRA_METADATA,Xt),se.push(Jt)}}catch(Lr){Z={error:Lr}}finally{try{Ve&&!Ve.done&&(Q=Ee.return)&&Q.call(Ee)}finally{if(Z)throw Z.error}}return se.map(function(Lr){return Lr})},I.getMaxWidth=function(c,m){return null==c||null==m?0:Math.trunc(Math.abs(c.getX()-m.getX()))},I.getMinWidth=function(c,m){return null==c||null==m?ae.MAX_VALUE:Math.trunc(Math.abs(c.getX()-m.getX()))},I.getMaxCodewordWidth=function(c){return Math.floor(Math.max(Math.max(I.getMaxWidth(c[0],c[4]),I.getMaxWidth(c[6],c[2])*ji.MODULES_IN_CODEWORD/ji.MODULES_IN_STOP_PATTERN),Math.max(I.getMaxWidth(c[1],c[5]),I.getMaxWidth(c[7],c[3])*ji.MODULES_IN_CODEWORD/ji.MODULES_IN_STOP_PATTERN)))},I.getMinCodewordWidth=function(c){return Math.floor(Math.min(Math.min(I.getMinWidth(c[0],c[4]),I.getMinWidth(c[6],c[2])*ji.MODULES_IN_CODEWORD/ji.MODULES_IN_STOP_PATTERN),Math.min(I.getMinWidth(c[1],c[5]),I.getMinWidth(c[7],c[3])*ji.MODULES_IN_CODEWORD/ji.MODULES_IN_STOP_PATTERN)))},I.prototype.reset=function(){},I}();const vu=Gl;var _u=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),Zu=function(I){function c(){return null!==I&&I.apply(this,arguments)||this}return _u(c,I),c.kind="ReaderException",c}(a);const Ao=Zu;var Wl=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")},zu=function(){function I(){}return I.prototype.decode=function(c,m){return this.setHints(m),this.decodeInternal(c)},I.prototype.decodeWithState=function(c){return null==this.readers&&this.setHints(null),this.decodeInternal(c)},I.prototype.setHints=function(c){this.hints=c;var m=null!=c&&void 0!==c.get(At.TRY_HARDER),R=null==c?null:c.get(At.POSSIBLE_FORMATS),Z=new Array;if(null!=R){var Q=R.some(function(se){return se===St.UPC_A||se===St.UPC_E||se===St.EAN_13||se===St.EAN_8||se===St.CODABAR||se===St.CODE_39||se===St.CODE_93||se===St.CODE_128||se===St.ITF||se===St.RSS_14||se===St.RSS_EXPANDED});Q&&!m&&Z.push(new Rs(c)),R.includes(St.QR_CODE)&&Z.push(new qa),R.includes(St.DATA_MATRIX)&&Z.push(new Zi),R.includes(St.AZTEC)&&Z.push(new Wr),R.includes(St.PDF_417)&&Z.push(new vu),Q&&m&&Z.push(new Rs(c))}0===Z.length&&(m||Z.push(new Rs(c)),Z.push(new qa),Z.push(new Zi),Z.push(new Wr),Z.push(new vu),m&&Z.push(new Rs(c))),this.readers=Z},I.prototype.reset=function(){var c,m;if(null!==this.readers)try{for(var R=Wl(this.readers),Z=R.next();!Z.done;Z=R.next())Z.value.reset()}catch(se){c={error:se}}finally{try{Z&&!Z.done&&(m=R.return)&&m.call(R)}finally{if(c)throw c.error}}},I.prototype.decodeInternal=function(c){var m,R;if(null===this.readers)throw new Ao("No readers where selected, nothing can be read.");try{for(var Z=Wl(this.readers),Q=Z.next();!Q.done;Q=Z.next()){var se=Q.value;try{return se.decode(c,this.hints)}catch(de){if(de instanceof Ao)continue}}}catch(de){m={error:de}}finally{try{Q&&!Q.done&&(R=Z.return)&&R.call(Z)}finally{if(m)throw m.error}}throw new X("No MultiFormat Readers were able to detect the code.")},I}();const yl=zu;var Ku=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),jf=(function(I){function c(m,R){void 0===m&&(m=null),void 0===R&&(R=500);var Q=new yl;return Q.setHints(m),I.call(this,Q,R)||this}Ku(c,I),c.prototype.decodeBitmap=function(m){return this.reader.decodeWithState(m)}}(kt),function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}()),Gf=(function(I){jf(function c(m){return void 0===m&&(m=500),I.call(this,new vu,m)||this},I)}(kt),function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}()),Pc=(function(I){Gf(function c(m){return void 0===m&&(m=500),I.call(this,new qa,m)||this},I)}(kt),(()=>(function(I){I[I.ERROR_CORRECTION=0]="ERROR_CORRECTION",I[I.CHARACTER_SET=1]="CHARACTER_SET",I[I.DATA_MATRIX_SHAPE=2]="DATA_MATRIX_SHAPE",I[I.MIN_SIZE=3]="MIN_SIZE",I[I.MAX_SIZE=4]="MAX_SIZE",I[I.MARGIN=5]="MARGIN",I[I.PDF417_COMPACT=6]="PDF417_COMPACT",I[I.PDF417_COMPACTION=7]="PDF417_COMPACTION",I[I.PDF417_DIMENSIONS=8]="PDF417_DIMENSIONS",I[I.AZTEC_LAYERS=9]="AZTEC_LAYERS",I[I.QR_VERSION=10]="QR_VERSION"}(Pc||(Pc={})),Pc))());const Js=Pc;var Zl=function(){function I(c){this.field=c,this.cachedGenerators=[],this.cachedGenerators.push(new Ar(c,Int32Array.from([1])))}return I.prototype.buildGenerator=function(c){var m=this.cachedGenerators;if(c>=m.length)for(var R=m[m.length-1],Z=this.field,Q=m.length;Q<=c;Q++){var se=R.multiply(new Ar(Z,Int32Array.from([1,Z.exp(Q-1+Z.getGeneratorBase())])));m.push(se),R=se}return m[c]},I.prototype.encode=function(c,m){if(0===m)throw new U("No error correction bytes");var R=c.length-m;if(R<=0)throw new U("No data bytes provided");var Z=this.buildGenerator(m),Q=new Int32Array(R);s.arraycopy(c,0,Q,0,R);for(var se=new Ar(this.field,Q),Ee=(se=se.multiplyByMonomial(m,1)).divide(Z)[1].getCoefficients(),Ve=m-Ee.length,mt=0;mt<Ve;mt++)c[R+mt]=0;s.arraycopy(Ee,0,c,R+Ve,Ee.length)},I}();const cd=Zl;var Xd=function(){function I(){}return I.applyMaskPenaltyRule1=function(c){return I.applyMaskPenaltyRule1Internal(c,!0)+I.applyMaskPenaltyRule1Internal(c,!1)},I.applyMaskPenaltyRule2=function(c){for(var m=0,R=c.getArray(),Z=c.getWidth(),Q=c.getHeight(),se=0;se<Q-1;se++)for(var de=R[se],Ee=0;Ee<Z-1;Ee++){var Ve=de[Ee];Ve===de[Ee+1]&&Ve===R[se+1][Ee]&&Ve===R[se+1][Ee+1]&&m++}return I.N2*m},I.applyMaskPenaltyRule3=function(c){for(var m=0,R=c.getArray(),Z=c.getWidth(),Q=c.getHeight(),se=0;se<Q;se++)for(var de=0;de<Z;de++){var Ee=R[se];de+6<Z&&1===Ee[de]&&0===Ee[de+1]&&1===Ee[de+2]&&1===Ee[de+3]&&1===Ee[de+4]&&0===Ee[de+5]&&1===Ee[de+6]&&(I.isWhiteHorizontal(Ee,de-4,de)||I.isWhiteHorizontal(Ee,de+7,de+11))&&m++,se+6<Q&&1===R[se][de]&&0===R[se+1][de]&&1===R[se+2][de]&&1===R[se+3][de]&&1===R[se+4][de]&&0===R[se+5][de]&&1===R[se+6][de]&&(I.isWhiteVertical(R,de,se-4,se)||I.isWhiteVertical(R,de,se+7,se+11))&&m++}return m*I.N3},I.isWhiteHorizontal=function(c,m,R){m=Math.max(m,0),R=Math.min(R,c.length);for(var Z=m;Z<R;Z++)if(1===c[Z])return!1;return!0},I.isWhiteVertical=function(c,m,R,Z){R=Math.max(R,0),Z=Math.min(Z,c.length);for(var Q=R;Q<Z;Q++)if(1===c[Q][m])return!1;return!0},I.applyMaskPenaltyRule4=function(c){for(var m=0,R=c.getArray(),Z=c.getWidth(),Q=c.getHeight(),se=0;se<Q;se++)for(var de=R[se],Ee=0;Ee<Z;Ee++)1===de[Ee]&&m++;var Ve=c.getHeight()*c.getWidth();return Math.floor(10*Math.abs(2*m-Ve)/Ve)*I.N4},I.getDataMaskBit=function(c,m,R){var Z,Q;switch(c){case 0:Z=R+m&1;break;case 1:Z=1&R;break;case 2:Z=m%3;break;case 3:Z=(R+m)%3;break;case 4:Z=Math.floor(R/2)+Math.floor(m/3)&1;break;case 5:Z=(1&(Q=R*m))+Q%3;break;case 6:Z=(1&(Q=R*m))+Q%3&1;break;case 7:Z=(Q=R*m)%3+(R+m&1)&1;break;default:throw new U("Invalid mask pattern: "+c)}return 0===Z},I.applyMaskPenaltyRule1Internal=function(c,m){for(var R=0,Z=m?c.getHeight():c.getWidth(),Q=m?c.getWidth():c.getHeight(),se=c.getArray(),de=0;de<Z;de++){for(var Ee=0,Ve=-1,mt=0;mt<Q;mt++){var It=m?se[de][mt]:se[mt][de];It===Ve?Ee++:(Ee>=5&&(R+=I.N1+(Ee-5)),Ee=1,Ve=It)}Ee>=5&&(R+=I.N1+(Ee-5))}return R},I.N1=3,I.N2=3,I.N3=40,I.N4=10,I}();const Cl=Xd;var pc=function(){function I(c,m){this.width=c,this.height=m;for(var R=new Array(m),Z=0;Z!==m;Z++)R[Z]=new Uint8Array(c);this.bytes=R}return I.prototype.getHeight=function(){return this.height},I.prototype.getWidth=function(){return this.width},I.prototype.get=function(c,m){return this.bytes[m][c]},I.prototype.getArray=function(){return this.bytes},I.prototype.setNumber=function(c,m,R){this.bytes[m][c]=R},I.prototype.setBoolean=function(c,m,R){this.bytes[m][c]=R?1:0},I.prototype.clear=function(c){var m,R;try{for(var Z=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")}(this.bytes),Q=Z.next();!Q.done;Q=Z.next())W.fill(Q.value,c)}catch(de){m={error:de}}finally{try{Q&&!Q.done&&(R=Z.return)&&R.call(Z)}finally{if(m)throw m.error}}},I.prototype.equals=function(c){if(!(c instanceof I))return!1;var m=c;if(this.width!==m.width||this.height!==m.height)return!1;for(var R=0,Z=this.height;R<Z;++R)for(var Q=this.bytes[R],se=m.bytes[R],de=0,Ee=this.width;de<Ee;++de)if(Q[de]!==se[de])return!1;return!0},I.prototype.toString=function(){for(var c=new Dt,m=0,R=this.height;m<R;++m){for(var Z=this.bytes[m],Q=0,se=this.width;Q<se;++Q)switch(Z[Q]){case 0:c.append(" 0");break;case 1:c.append(" 1");break;default:c.append("  ")}c.append("\n")}return c.toString()},I}();const Zf=pc;var zf=function(){function I(){this.maskPattern=-1}return I.prototype.getMode=function(){return this.mode},I.prototype.getECLevel=function(){return this.ecLevel},I.prototype.getVersion=function(){return this.version},I.prototype.getMaskPattern=function(){return this.maskPattern},I.prototype.getMatrix=function(){return this.matrix},I.prototype.toString=function(){var c=new Dt;return c.append("<<\n"),c.append(" mode: "),c.append(this.mode?this.mode.toString():"null"),c.append("\n ecLevel: "),c.append(this.ecLevel?this.ecLevel.toString():"null"),c.append("\n version: "),c.append(this.version?this.version.toString():"null"),c.append("\n maskPattern: "),c.append(this.maskPattern.toString()),this.matrix?(c.append("\n matrix:\n"),c.append(this.matrix.toString())):c.append("\n matrix: null\n"),c.append(">>\n"),c.toString()},I.prototype.setMode=function(c){this.mode=c},I.prototype.setECLevel=function(c){this.ecLevel=c},I.prototype.setVersion=function(c){this.version=c},I.prototype.setMaskPattern=function(c){this.maskPattern=c},I.prototype.setMatrix=function(c){this.matrix=c},I.isValidMaskPattern=function(c){return c>=0&&c<I.NUM_MASK_PATTERNS},I.NUM_MASK_PATTERNS=8,I}();const bl=zf;var Oc=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),zl=function(I){function c(){return null!==I&&I.apply(this,arguments)||this}return Oc(c,I),c.kind="WriterException",c}(a);const Ds=zl;var tf=function(){function I(){}return I.clearMatrix=function(c){c.clear(255)},I.buildMatrix=function(c,m,R,Z,Q){I.clearMatrix(Q),I.embedBasicPatterns(R,Q),I.embedTypeInfo(m,Z,Q),I.maybeEmbedVersionInfo(R,Q),I.embedDataBits(c,Z,Q)},I.embedBasicPatterns=function(c,m){I.embedPositionDetectionPatternsAndSeparators(m),I.embedDarkDotAtLeftBottomCorner(m),I.maybeEmbedPositionAdjustmentPatterns(c,m),I.embedTimingPatterns(m)},I.embedTypeInfo=function(c,m,R){var Z=new Qe;I.makeTypeInfoBits(c,m,Z);for(var Q=0,se=Z.getSize();Q<se;++Q){var de=Z.get(Z.getSize()-1-Q),Ee=I.TYPE_INFO_COORDINATES[Q];if(R.setBoolean(Ee[0],Ee[1],de),Q<8){var It=R.getWidth()-Q-1;R.setBoolean(It,Jt=8,de)}else{It=8;var Jt=R.getHeight()-7+(Q-8);R.setBoolean(It,Jt,de)}}},I.maybeEmbedVersionInfo=function(c,m){if(!(c.getVersionNumber()<7)){var R=new Qe;I.makeVersionInfoBits(c,R);for(var Z=17,Q=0;Q<6;++Q)for(var se=0;se<3;++se){var de=R.get(Z);Z--,m.setBoolean(Q,m.getHeight()-11+se,de),m.setBoolean(m.getHeight()-11+se,Q,de)}}},I.embedDataBits=function(c,m,R){for(var Z=0,Q=-1,se=R.getWidth()-1,de=R.getHeight()-1;se>0;){for(6===se&&(se-=1);de>=0&&de<R.getHeight();){for(var Ee=0;Ee<2;++Ee){var Ve=se-Ee;if(I.isEmpty(R.get(Ve,de))){var mt=void 0;Z<c.getSize()?(mt=c.get(Z),++Z):mt=!1,255!==m&&Cl.getDataMaskBit(m,Ve,de)&&(mt=!mt),R.setBoolean(Ve,de,mt)}}de+=Q}de+=Q=-Q,se-=2}if(Z!==c.getSize())throw new Ds("Not all bits consumed: "+Z+"/"+c.getSize())},I.findMSBSet=function(c){return 32-ae.numberOfLeadingZeros(c)},I.calculateBCHCode=function(c,m){if(0===m)throw new U("0 polynomial");var R=I.findMSBSet(m);for(c<<=R-1;I.findMSBSet(c)>=R;)c^=m<<I.findMSBSet(c)-R;return c},I.makeTypeInfoBits=function(c,m,R){if(!bl.isValidMaskPattern(m))throw new Ds("Invalid mask pattern");var Z=c.getBits()<<3|m;R.appendBits(Z,5);var Q=I.calculateBCHCode(Z,I.TYPE_INFO_POLY);R.appendBits(Q,10);var se=new Qe;if(se.appendBits(I.TYPE_INFO_MASK_PATTERN,15),R.xor(se),15!==R.getSize())throw new Ds("should not happen but we got: "+R.getSize())},I.makeVersionInfoBits=function(c,m){m.appendBits(c.getVersionNumber(),6);var R=I.calculateBCHCode(c.getVersionNumber(),I.VERSION_INFO_POLY);if(m.appendBits(R,12),18!==m.getSize())throw new Ds("should not happen but we got: "+m.getSize())},I.isEmpty=function(c){return 255===c},I.embedTimingPatterns=function(c){for(var m=8;m<c.getWidth()-8;++m){var R=(m+1)%2;I.isEmpty(c.get(m,6))&&c.setNumber(m,6,R),I.isEmpty(c.get(6,m))&&c.setNumber(6,m,R)}},I.embedDarkDotAtLeftBottomCorner=function(c){if(0===c.get(8,c.getHeight()-8))throw new Ds;c.setNumber(8,c.getHeight()-8,1)},I.embedHorizontalSeparationPattern=function(c,m,R){for(var Z=0;Z<8;++Z){if(!I.isEmpty(R.get(c+Z,m)))throw new Ds;R.setNumber(c+Z,m,0)}},I.embedVerticalSeparationPattern=function(c,m,R){for(var Z=0;Z<7;++Z){if(!I.isEmpty(R.get(c,m+Z)))throw new Ds;R.setNumber(c,m+Z,0)}},I.embedPositionAdjustmentPattern=function(c,m,R){for(var Z=0;Z<5;++Z)for(var Q=I.POSITION_ADJUSTMENT_PATTERN[Z],se=0;se<5;++se)R.setNumber(c+se,m+Z,Q[se])},I.embedPositionDetectionPattern=function(c,m,R){for(var Z=0;Z<7;++Z)for(var Q=I.POSITION_DETECTION_PATTERN[Z],se=0;se<7;++se)R.setNumber(c+se,m+Z,Q[se])},I.embedPositionDetectionPatternsAndSeparators=function(c){var m=I.POSITION_DETECTION_PATTERN[0].length;I.embedPositionDetectionPattern(0,0,c),I.embedPositionDetectionPattern(c.getWidth()-m,0,c),I.embedPositionDetectionPattern(0,c.getWidth()-m,c),I.embedHorizontalSeparationPattern(0,7,c),I.embedHorizontalSeparationPattern(c.getWidth()-8,7,c),I.embedHorizontalSeparationPattern(0,c.getWidth()-8,c),I.embedVerticalSeparationPattern(7,0,c),I.embedVerticalSeparationPattern(c.getHeight()-7-1,0,c),I.embedVerticalSeparationPattern(7,c.getHeight()-7,c)},I.maybeEmbedPositionAdjustmentPatterns=function(c,m){if(!(c.getVersionNumber()<2))for(var R=c.getVersionNumber()-1,Z=I.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE[R],Q=0,se=Z.length;Q!==se;Q++){var de=Z[Q];if(de>=0)for(var Ee=0;Ee!==se;Ee++){var Ve=Z[Ee];Ve>=0&&I.isEmpty(m.get(Ve,de))&&I.embedPositionAdjustmentPattern(Ve-2,de-2,m)}}},I.POSITION_DETECTION_PATTERN=Array.from([Int32Array.from([1,1,1,1,1,1,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,1,1,1,1,1,1])]),I.POSITION_ADJUSTMENT_PATTERN=Array.from([Int32Array.from([1,1,1,1,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,0,1,0,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,1,1,1,1])]),I.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE=Array.from([Int32Array.from([-1,-1,-1,-1,-1,-1,-1]),Int32Array.from([6,18,-1,-1,-1,-1,-1]),Int32Array.from([6,22,-1,-1,-1,-1,-1]),Int32Array.from([6,26,-1,-1,-1,-1,-1]),Int32Array.from([6,30,-1,-1,-1,-1,-1]),Int32Array.from([6,34,-1,-1,-1,-1,-1]),Int32Array.from([6,22,38,-1,-1,-1,-1]),Int32Array.from([6,24,42,-1,-1,-1,-1]),Int32Array.from([6,26,46,-1,-1,-1,-1]),Int32Array.from([6,28,50,-1,-1,-1,-1]),Int32Array.from([6,30,54,-1,-1,-1,-1]),Int32Array.from([6,32,58,-1,-1,-1,-1]),Int32Array.from([6,34,62,-1,-1,-1,-1]),Int32Array.from([6,26,46,66,-1,-1,-1]),Int32Array.from([6,26,48,70,-1,-1,-1]),Int32Array.from([6,26,50,74,-1,-1,-1]),Int32Array.from([6,30,54,78,-1,-1,-1]),Int32Array.from([6,30,56,82,-1,-1,-1]),Int32Array.from([6,30,58,86,-1,-1,-1]),Int32Array.from([6,34,62,90,-1,-1,-1]),Int32Array.from([6,28,50,72,94,-1,-1]),Int32Array.from([6,26,50,74,98,-1,-1]),Int32Array.from([6,30,54,78,102,-1,-1]),Int32Array.from([6,28,54,80,106,-1,-1]),Int32Array.from([6,32,58,84,110,-1,-1]),Int32Array.from([6,30,58,86,114,-1,-1]),Int32Array.from([6,34,62,90,118,-1,-1]),Int32Array.from([6,26,50,74,98,122,-1]),Int32Array.from([6,30,54,78,102,126,-1]),Int32Array.from([6,26,52,78,104,130,-1]),Int32Array.from([6,30,56,82,108,134,-1]),Int32Array.from([6,34,60,86,112,138,-1]),Int32Array.from([6,30,58,86,114,142,-1]),Int32Array.from([6,34,62,90,118,146,-1]),Int32Array.from([6,30,54,78,102,126,150]),Int32Array.from([6,24,50,76,102,128,154]),Int32Array.from([6,28,54,80,106,132,158]),Int32Array.from([6,32,58,84,110,136,162]),Int32Array.from([6,26,54,82,110,138,166]),Int32Array.from([6,30,58,86,114,142,170])]),I.TYPE_INFO_COORDINATES=Array.from([Int32Array.from([8,0]),Int32Array.from([8,1]),Int32Array.from([8,2]),Int32Array.from([8,3]),Int32Array.from([8,4]),Int32Array.from([8,5]),Int32Array.from([8,7]),Int32Array.from([8,8]),Int32Array.from([7,8]),Int32Array.from([5,8]),Int32Array.from([4,8]),Int32Array.from([3,8]),Int32Array.from([2,8]),Int32Array.from([1,8]),Int32Array.from([0,8])]),I.VERSION_INFO_POLY=7973,I.TYPE_INFO_POLY=1335,I.TYPE_INFO_MASK_PATTERN=21522,I}();const Rc=tf;var gc=function(){function I(c,m){this.dataBytes=c,this.errorCorrectionBytes=m}return I.prototype.getDataBytes=function(){return this.dataBytes},I.prototype.getErrorCorrectionBytes=function(){return this.errorCorrectionBytes},I}();const rf=gc;var dd=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")},fd=function(){function I(){}return I.calculateMaskPenalty=function(c){return Cl.applyMaskPenaltyRule1(c)+Cl.applyMaskPenaltyRule2(c)+Cl.applyMaskPenaltyRule3(c)+Cl.applyMaskPenaltyRule4(c)},I.encode=function(c,m,R){void 0===R&&(R=null);var Z=I.DEFAULT_BYTE_MODE_ENCODING,Q=null!==R&&void 0!==R.get(Js.CHARACTER_SET);Q&&(Z=R.get(Js.CHARACTER_SET).toString());var se=this.chooseMode(c,Z),de=new Qe;if(se===os.BYTE&&(Q||I.DEFAULT_BYTE_MODE_ENCODING!==Z)){var Ee=be.getCharacterSetECIByName(Z);void 0!==Ee&&this.appendECI(Ee,de)}this.appendModeInfo(se,de);var mt,Ve=new Qe;if(this.appendBytes(c,se,Ve,Z),null!==R&&void 0!==R.get(Js.QR_VERSION)){var It=Number.parseInt(R.get(Js.QR_VERSION).toString(),10);mt=pl.getVersionForNumber(It);var Jt=this.calculateBitsNeeded(se,de,Ve,mt);if(!this.willFit(Jt,mt,m))throw new Ds("Data too big for requested version")}else mt=this.recommendVersion(m,se,de,Ve);var Xt=new Qe;Xt.appendBitArray(de);var Lr=se===os.BYTE?Ve.getSizeInBytes():c.length;this.appendLengthInfo(Lr,mt,se,Xt),Xt.appendBitArray(Ve);var Yr=mt.getECBlocksForLevel(m),on=mt.getTotalCodewords()-Yr.getTotalECCodewords();this.terminateBits(on,Xt);var ln=this.interleaveWithECBytes(Xt,mt.getTotalCodewords(),on,Yr.getNumBlocks()),en=new bl;en.setECLevel(m),en.setMode(se),en.setVersion(mt);var mn=mt.getDimensionForVersion(),In=new Zf(mn,mn),jn=this.chooseMaskPattern(ln,m,mt,In);return en.setMaskPattern(jn),Rc.buildMatrix(ln,m,mt,jn,In),en.setMatrix(In),en},I.recommendVersion=function(c,m,R,Z){var Q=this.calculateBitsNeeded(m,R,Z,pl.getVersionForNumber(1)),se=this.chooseVersion(Q,c),de=this.calculateBitsNeeded(m,R,Z,se);return this.chooseVersion(de,c)},I.calculateBitsNeeded=function(c,m,R,Z){return m.getSize()+c.getCharacterCountBits(Z)+R.getSize()},I.getAlphanumericCode=function(c){return c<I.ALPHANUMERIC_TABLE.length?I.ALPHANUMERIC_TABLE[c]:-1},I.chooseMode=function(c,m){if(void 0===m&&(m=null),be.SJIS.getName()===m&&this.isOnlyDoubleByteKanji(c))return os.KANJI;for(var R=!1,Z=!1,Q=0,se=c.length;Q<se;++Q){var de=c.charAt(Q);if(I.isDigit(de))R=!0;else{if(-1===this.getAlphanumericCode(de.charCodeAt(0)))return os.BYTE;Z=!0}}return Z?os.ALPHANUMERIC:R?os.NUMERIC:os.BYTE},I.isOnlyDoubleByteKanji=function(c){var m;try{m=Ft.encode(c,be.SJIS)}catch{return!1}var R=m.length;if(R%2!=0)return!1;for(var Z=0;Z<R;Z+=2){var Q=255&m[Z];if((Q<129||Q>159)&&(Q<224||Q>235))return!1}return!0},I.chooseMaskPattern=function(c,m,R,Z){for(var Q=Number.MAX_SAFE_INTEGER,se=-1,de=0;de<bl.NUM_MASK_PATTERNS;de++){Rc.buildMatrix(c,m,R,de,Z);var Ee=this.calculateMaskPenalty(Z);Ee<Q&&(Q=Ee,se=de)}return se},I.chooseVersion=function(c,m){for(var R=1;R<=40;R++){var Z=pl.getVersionForNumber(R);if(I.willFit(c,Z,m))return Z}throw new Ds("Data too big")},I.willFit=function(c,m,R){return m.getTotalCodewords()-m.getECBlocksForLevel(R).getTotalECCodewords()>=(c+7)/8},I.terminateBits=function(c,m){var R=8*c;if(m.getSize()>R)throw new Ds("data bits cannot fit in the QR Code"+m.getSize()+" > "+R);for(var Z=0;Z<4&&m.getSize()<R;++Z)m.appendBit(!1);var Q=7&m.getSize();if(Q>0)for(Z=Q;Z<8;Z++)m.appendBit(!1);var se=c-m.getSizeInBytes();for(Z=0;Z<se;++Z)m.appendBits(0==(1&Z)?236:17,8);if(m.getSize()!==R)throw new Ds("Bits size does not equal capacity")},I.getNumDataBytesAndNumECBytesForBlockID=function(c,m,R,Z,Q,se){if(Z>=R)throw new Ds("Block ID too large");var de=c%R,Ee=R-de,Ve=Math.floor(c/R),mt=Ve+1,It=Math.floor(m/R),Jt=It+1,Xt=Ve-It,Lr=mt-Jt;if(Xt!==Lr)throw new Ds("EC bytes mismatch");if(R!==Ee+de)throw new Ds("RS blocks mismatch");if(c!==(It+Xt)*Ee+(Jt+Lr)*de)throw new Ds("Total bytes mismatch");Z<Ee?(Q[0]=It,se[0]=Xt):(Q[0]=Jt,se[0]=Lr)},I.interleaveWithECBytes=function(c,m,R,Z){var Q,se,de,Ee;if(c.getSizeInBytes()!==R)throw new Ds("Number of bits and data bytes does not match");for(var Ve=0,mt=0,It=0,Jt=new Array,Xt=0;Xt<Z;++Xt){var Lr=new Int32Array(1),Yr=new Int32Array(1);I.getNumDataBytesAndNumECBytesForBlockID(m,R,Z,Xt,Lr,Yr);var on=Lr[0],ln=new Uint8Array(on);c.toBytes(8*Ve,ln,0,on);var en=I.generateECBytes(ln,Yr[0]);Jt.push(new rf(ln,en)),mt=Math.max(mt,on),It=Math.max(It,en.length),Ve+=Lr[0]}if(R!==Ve)throw new Ds("Data bytes does not match offset");var mn=new Qe;for(Xt=0;Xt<mt;++Xt)try{for(var In=(Q=void 0,dd(Jt)),jn=In.next();!jn.done;jn=In.next())Xt<(ln=jn.value.getDataBytes()).length&&mn.appendBits(ln[Xt],8)}catch(Ri){Q={error:Ri}}finally{try{jn&&!jn.done&&(se=In.return)&&se.call(In)}finally{if(Q)throw Q.error}}for(Xt=0;Xt<It;++Xt)try{for(var Xn=(de=void 0,dd(Jt)),mi=Xn.next();!mi.done;mi=Xn.next())Xt<(en=mi.value.getErrorCorrectionBytes()).length&&mn.appendBits(en[Xt],8)}catch(Ri){de={error:Ri}}finally{try{mi&&!mi.done&&(Ee=Xn.return)&&Ee.call(Xn)}finally{if(de)throw de.error}}if(m!==mn.getSizeInBytes())throw new Ds("Interleaving error: "+m+" and "+mn.getSizeInBytes()+" differ.");return mn},I.generateECBytes=function(c,m){for(var R=c.length,Z=new Int32Array(R+m),Q=0;Q<R;Q++)Z[Q]=255&c[Q];new cd(Ie.QR_CODE_FIELD_256).encode(Z,m);var se=new Uint8Array(m);for(Q=0;Q<m;Q++)se[Q]=Z[R+Q];return se},I.appendModeInfo=function(c,m){m.appendBits(c.getBits(),4)},I.appendLengthInfo=function(c,m,R,Z){var Q=R.getCharacterCountBits(m);if(c>=1<<Q)throw new Ds(c+" is bigger than "+((1<<Q)-1));Z.appendBits(c,Q)},I.appendBytes=function(c,m,R,Z){switch(m){case os.NUMERIC:I.appendNumericBytes(c,R);break;case os.ALPHANUMERIC:I.appendAlphanumericBytes(c,R);break;case os.BYTE:I.append8BitBytes(c,R,Z);break;case os.KANJI:I.appendKanjiBytes(c,R);break;default:throw new Ds("Invalid mode: "+m)}},I.getDigit=function(c){return c.charCodeAt(0)-48},I.isDigit=function(c){var m=I.getDigit(c);return m>=0&&m<=9},I.appendNumericBytes=function(c,m){for(var R=c.length,Z=0;Z<R;){var Q=I.getDigit(c.charAt(Z));if(Z+2<R){var se=I.getDigit(c.charAt(Z+1)),de=I.getDigit(c.charAt(Z+2));m.appendBits(100*Q+10*se+de,10),Z+=3}else Z+1<R?(se=I.getDigit(c.charAt(Z+1)),m.appendBits(10*Q+se,7),Z+=2):(m.appendBits(Q,4),Z++)}},I.appendAlphanumericBytes=function(c,m){for(var R=c.length,Z=0;Z<R;){var Q=I.getAlphanumericCode(c.charCodeAt(Z));if(-1===Q)throw new Ds;if(Z+1<R){var se=I.getAlphanumericCode(c.charCodeAt(Z+1));if(-1===se)throw new Ds;m.appendBits(45*Q+se,11),Z+=2}else m.appendBits(Q,6),Z++}},I.append8BitBytes=function(c,m,R){var Z;try{Z=Ft.encode(c,R)}catch(Ee){throw new Ds(Ee)}for(var Q=0,se=Z.length;Q!==se;Q++)m.appendBits(Z[Q],8)},I.appendKanjiBytes=function(c,m){var R;try{R=Ft.encode(c,be.SJIS)}catch(It){throw new Ds(It)}for(var Z=R.length,Q=0;Q<Z;Q+=2){var Ee=(255&R[Q])<<8&4294967295|255&R[Q+1],Ve=-1;if(Ee>=33088&&Ee<=40956?Ve=Ee-33088:Ee>=57408&&Ee<=60351&&(Ve=Ee-49472),-1===Ve)throw new Ds("Invalid byte sequence");m.appendBits(192*(Ve>>8)+(255&Ve),13)}},I.appendECI=function(c,m){m.appendBits(os.ECI.getBits(),4),m.appendBits(c.getValue(),8)},I.ALPHANUMERIC_TABLE=Int32Array.from([-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,36,-1,-1,-1,37,38,-1,-1,-1,-1,39,40,-1,41,42,43,0,1,2,3,4,5,6,7,8,9,44,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,-1,-1,-1,-1,-1]),I.DEFAULT_BYTE_MODE_ENCODING=be.UTF8.getName(),I}();const Kl=fd;!function(){function I(){}I.prototype.write=function(c,m,R,Z){if(void 0===Z&&(Z=null),0===c.length)throw new U("Found empty contents");if(m<0||R<0)throw new U("Requested dimensions are too small: "+m+"x"+R);var Q=vo.L,se=I.QUIET_ZONE_SIZE;null!==Z&&(void 0!==Z.get(Js.ERROR_CORRECTION)&&(Q=vo.fromString(Z.get(Js.ERROR_CORRECTION).toString())),void 0!==Z.get(Js.MARGIN)&&(se=Number.parseInt(Z.get(Js.MARGIN).toString(),10)));var de=Kl.encode(c,Q,Z);return this.renderResult(de,m,R,se)},I.prototype.writeToDom=function(c,m,R,Z,Q){void 0===Q&&(Q=null),"string"==typeof c&&(c=document.querySelector(c));var se=this.write(m,R,Z,Q);c&&c.appendChild(se)},I.prototype.renderResult=function(c,m,R,Z){var Q=c.getMatrix();if(null===Q)throw new zt;for(var se=Q.getWidth(),de=Q.getHeight(),Ee=se+2*Z,Ve=de+2*Z,mt=Math.max(m,Ee),It=Math.max(R,Ve),Jt=Math.min(Math.floor(mt/Ee),Math.floor(It/Ve)),Xt=Math.floor((mt-se*Jt)/2),Lr=Math.floor((It-de*Jt)/2),Yr=this.createSVGElement(mt,It),on=0,ln=Lr;on<de;on++,ln+=Jt)for(var en=0,mn=Xt;en<se;en++,mn+=Jt)if(1===Q.get(en,on)){var In=this.createSvgRectElement(mn,ln,Jt,Jt);Yr.appendChild(In)}return Yr},I.prototype.createSVGElement=function(c,m){var R=document.createElementNS(I.SVG_NS,"svg");return R.setAttributeNS(null,"height",c.toString()),R.setAttributeNS(null,"width",m.toString()),R},I.prototype.createSvgRectElement=function(c,m,R,Z){var Q=document.createElementNS(I.SVG_NS,"rect");return Q.setAttributeNS(null,"x",c.toString()),Q.setAttributeNS(null,"y",m.toString()),Q.setAttributeNS(null,"height",R.toString()),Q.setAttributeNS(null,"width",Z.toString()),Q.setAttributeNS(null,"fill","#000000"),Q},I.QUIET_ZONE_SIZE=4,I.SVG_NS="http://www.w3.org/2000/svg"}();!function(){function I(){}I.prototype.encode=function(c,m,R,Z,Q){if(0===c.length)throw new U("Found empty contents");if(m!==St.QR_CODE)throw new U("Can only encode QR_CODE, but got "+m);if(R<0||Z<0)throw new U("Requested dimensions are too small: "+R+"x"+Z);var se=vo.L,de=I.QUIET_ZONE_SIZE;null!==Q&&(void 0!==Q.get(Js.ERROR_CORRECTION)&&(se=vo.fromString(Q.get(Js.ERROR_CORRECTION).toString())),void 0!==Q.get(Js.MARGIN)&&(de=Number.parseInt(Q.get(Js.MARGIN).toString(),10)));var Ee=Kl.encode(c,se,Q);return I.renderResult(Ee,R,Z,de)},I.renderResult=function(c,m,R,Z){var Q=c.getMatrix();if(null===Q)throw new zt;for(var se=Q.getWidth(),de=Q.getHeight(),Ee=se+2*Z,Ve=de+2*Z,mt=Math.max(m,Ee),It=Math.max(R,Ve),Jt=Math.min(Math.floor(mt/Ee),Math.floor(It/Ve)),Xt=Math.floor((mt-se*Jt)/2),Lr=Math.floor((It-de*Jt)/2),Yr=new nt(mt,It),on=0,ln=Lr;on<de;on++,ln+=Jt)for(var en=0,mn=Xt;en<se;en++,mn+=Jt)1===Q.get(en,on)&&Yr.setRegion(mn,ln,Jt,Jt);return Yr},I.QUIET_ZONE_SIZE=4}();var kc=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}();!function(I){function c(m,R,Z,Q,se,de,Ee,Ve){var mt=I.call(this,de,Ee)||this;if(mt.yuvData=m,mt.dataWidth=R,mt.dataHeight=Z,mt.left=Q,mt.top=se,Q+de>R||se+Ee>Z)throw new U("Crop rectangle does not fit within image data.");return Ve&&mt.reverseHorizontal(de,Ee),mt}kc(c,I),c.prototype.getRow=function(m,R){if(m<0||m>=this.getHeight())throw new U("Requested row is outside the image: "+m);var Z=this.getWidth();return(null==R||R.length<Z)&&(R=new Uint8ClampedArray(Z)),s.arraycopy(this.yuvData,(m+this.top)*this.dataWidth+this.left,R,0,Z),R},c.prototype.getMatrix=function(){var m=this.getWidth(),R=this.getHeight();if(m===this.dataWidth&&R===this.dataHeight)return this.yuvData;var Z=m*R,Q=new Uint8ClampedArray(Z),se=this.top*this.dataWidth+this.left;if(m===this.dataWidth)return s.arraycopy(this.yuvData,se,Q,0,Z),Q;for(var de=0;de<R;de++)s.arraycopy(this.yuvData,se,Q,de*m,m),se+=this.dataWidth;return Q},c.prototype.isCropSupported=function(){return!0},c.prototype.crop=function(m,R,Z,Q){return new c(this.yuvData,this.dataWidth,this.dataHeight,this.left+m,this.top+R,Z,Q,!1)},c.prototype.renderThumbnail=function(){for(var m=this.getWidth()/c.THUMBNAIL_SCALE_FACTOR,R=this.getHeight()/c.THUMBNAIL_SCALE_FACTOR,Z=new Int32Array(m*R),Q=this.yuvData,se=this.top*this.dataWidth+this.left,de=0;de<R;de++){for(var Ee=de*m,Ve=0;Ve<m;Ve++)Z[Ee+Ve]=4278190080|65793*(255&Q[se+Ve*c.THUMBNAIL_SCALE_FACTOR]);se+=this.dataWidth*c.THUMBNAIL_SCALE_FACTOR}return Z},c.prototype.getThumbnailWidth=function(){return this.getWidth()/c.THUMBNAIL_SCALE_FACTOR},c.prototype.getThumbnailHeight=function(){return this.getHeight()/c.THUMBNAIL_SCALE_FACTOR},c.prototype.reverseHorizontal=function(m,R){for(var Z=this.yuvData,Q=0,se=this.top*this.dataWidth+this.left;Q<R;Q++,se+=this.dataWidth)for(var de=se+m/2,Ee=se,Ve=se+m-1;Ee<de;Ee++,Ve--){var mt=Z[Ee];Z[Ee]=Z[Ve],Z[Ve]=mt}},c.prototype.invert=function(){return new hr(this)},c.THUMBNAIL_SCALE_FACTOR=2}(wt);var Ju=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}();!function(I){function c(m,R,Z,Q,se,de,Ee){var Ve=I.call(this,R,Z)||this;if(Ve.dataWidth=Q,Ve.dataHeight=se,Ve.left=de,Ve.top=Ee,4===m.BYTES_PER_ELEMENT){for(var mt=R*Z,It=new Uint8ClampedArray(mt),Jt=0;Jt<mt;Jt++){var Xt=m[Jt];It[Jt]=((Xt>>16&255)+(Xt>>7&510)+(255&Xt))/4&255}Ve.luminances=It}else Ve.luminances=m;if(void 0===Q&&(Ve.dataWidth=R),void 0===se&&(Ve.dataHeight=Z),void 0===de&&(Ve.left=0),void 0===Ee&&(Ve.top=0),Ve.left+R>Ve.dataWidth||Ve.top+Z>Ve.dataHeight)throw new U("Crop rectangle does not fit within image data.");return Ve}Ju(c,I),c.prototype.getRow=function(m,R){if(m<0||m>=this.getHeight())throw new U("Requested row is outside the image: "+m);var Z=this.getWidth();return(null==R||R.length<Z)&&(R=new Uint8ClampedArray(Z)),s.arraycopy(this.luminances,(m+this.top)*this.dataWidth+this.left,R,0,Z),R},c.prototype.getMatrix=function(){var m=this.getWidth(),R=this.getHeight();if(m===this.dataWidth&&R===this.dataHeight)return this.luminances;var Z=m*R,Q=new Uint8ClampedArray(Z),se=this.top*this.dataWidth+this.left;if(m===this.dataWidth)return s.arraycopy(this.luminances,se,Q,0,Z),Q;for(var de=0;de<R;de++)s.arraycopy(this.luminances,se,Q,de*m,m),se+=this.dataWidth;return Q},c.prototype.isCropSupported=function(){return!0},c.prototype.crop=function(m,R,Z,Q){return new c(this.luminances,Z,Q,this.dataWidth,this.dataHeight,this.left+m,this.top+R)},c.prototype.invert=function(){return new hr(this)}}(wt);var pd=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),qf=function(I){function c(){return null!==I&&I.apply(this,arguments)||this}return pd(c,I),c.forName=function(m){return this.getCharacterSetECIByName(m)},c}(be);const sf=qf;var gd=function(){function I(){}return I.ISO_8859_1=be.ISO8859_1,I}();const Jl=gd;var md=function(){function I(){}return I.prototype.isCompact=function(){return this.compact},I.prototype.setCompact=function(c){this.compact=c},I.prototype.getSize=function(){return this.size},I.prototype.setSize=function(c){this.size=c},I.prototype.getLayers=function(){return this.layers},I.prototype.setLayers=function(c){this.layers=c},I.prototype.getCodeWords=function(){return this.codeWords},I.prototype.setCodeWords=function(c){this.codeWords=c},I.prototype.getMatrix=function(){return this.matrix},I.prototype.setMatrix=function(c){this.matrix=c},I}();const $l=md;var Jf=function(){function I(){}return I.singletonList=function(c){return[c]},I.min=function(c,m){return c.sort(m)[0]},I}();const vd=Jf;var Hh=function(){function I(c){this.previous=c}return I.prototype.getPrevious=function(){return this.previous},I}();const _d=Hh;var $u=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),vc=function(I){function c(m,R,Z){var Q=I.call(this,m)||this;return Q.value=R,Q.bitCount=Z,Q}return $u(c,I),c.prototype.appendTo=function(m,R){m.appendBits(this.value,this.bitCount)},c.prototype.add=function(m,R){return new c(this,m,R)},c.prototype.addBinaryShift=function(m,R){return console.warn("addBinaryShift on SimpleToken, this simply returns a copy of this token"),new c(this,m,R)},c.prototype.toString=function(){var m=this.value&(1<<this.bitCount)-1;return"<"+ae.toBinaryString((m|=1<<this.bitCount)|1<<this.bitCount).substring(1)+">"},c}(_d);const yu=vc;var Qu=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Z.hasOwnProperty(Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),yd=function(I){function c(m,R,Z){var Q=I.call(this,m,0,0)||this;return Q.binaryShiftStart=R,Q.binaryShiftByteCount=Z,Q}return Qu(c,I),c.prototype.appendTo=function(m,R){for(var Z=0;Z<this.binaryShiftByteCount;Z++)(0===Z||31===Z&&this.binaryShiftByteCount<=62)&&(m.appendBits(31,5),this.binaryShiftByteCount>62?m.appendBits(this.binaryShiftByteCount-31,16):m.appendBits(0===Z?Math.min(this.binaryShiftByteCount,31):this.binaryShiftByteCount-31,5)),m.appendBits(R[this.binaryShiftStart+Z],8)},c.prototype.addBinaryShift=function(m,R){return new c(this,m,R)},c.prototype.toString=function(){return"<"+this.binaryShiftStart+"::"+(this.binaryShiftStart+this.binaryShiftByteCount-1)+">"},c}(yu);const Sl=yd;function Va(I,c,m){return new yu(I,c,m)}var Cu=["UPPER","LOWER","DIGIT","MIXED","PUNCT"],Cd=new yu(null,0,0),Bc=[Int32Array.from([0,327708,327710,327709,656318]),Int32Array.from([590318,0,327710,327709,656318]),Int32Array.from([262158,590300,0,590301,932798]),Int32Array.from([327709,327708,656318,0,327710]),Int32Array.from([327711,656380,656382,656381,0])],yc=function _c(I){var c,m;try{for(var R=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")}(I),Z=R.next();!Z.done;Z=R.next())W.fill(Z.value,-1)}catch(se){c={error:se}}finally{try{Z&&!Z.done&&(m=R.return)&&m.call(R)}finally{if(c)throw c.error}}return I[0][4]=0,I[1][4]=0,I[1][0]=28,I[3][4]=0,I[2][4]=0,I[2][0]=15,I}(W.createInt32Array(6,6)),Qf=function(){function I(c,m,R,Z){this.token=c,this.mode=m,this.binaryShiftByteCount=R,this.bitCount=Z}return I.prototype.getMode=function(){return this.mode},I.prototype.getToken=function(){return this.token},I.prototype.getBinaryShiftByteCount=function(){return this.binaryShiftByteCount},I.prototype.getBitCount=function(){return this.bitCount},I.prototype.latchAndAppend=function(c,m){var R=this.bitCount,Z=this.token;if(c!==this.mode){var Q=Bc[this.mode][c];Z=Va(Z,65535&Q,Q>>16),R+=Q>>16}var se=2===c?4:5;return new I(Z=Va(Z,m,se),c,0,R+se)},I.prototype.shiftAndAppend=function(c,m){var R=this.token,Z=2===this.mode?4:5;return R=Va(R,yc[this.mode][c],Z),new I(R=Va(R,m,5),this.mode,0,this.bitCount+Z+5)},I.prototype.addBinaryShiftChar=function(c){var m=this.token,R=this.mode,Z=this.bitCount;if(4===this.mode||2===this.mode){var Q=Bc[R][0];m=Va(m,65535&Q,Q>>16),Z+=Q>>16,R=0}var de=new I(m,R,this.binaryShiftByteCount+1,Z+(0===this.binaryShiftByteCount||31===this.binaryShiftByteCount?18:62===this.binaryShiftByteCount?9:8));return 2078===de.binaryShiftByteCount&&(de=de.endBinaryShift(c+1)),de},I.prototype.endBinaryShift=function(c){if(0===this.binaryShiftByteCount)return this;var m=this.token;return m=function $f(I,c,m){return new Sl(I,c,m)}(m,c-this.binaryShiftByteCount,this.binaryShiftByteCount),new I(m,this.mode,0,this.bitCount)},I.prototype.isBetterThanOrEqualTo=function(c){var m=this.bitCount+(Bc[this.mode][c.mode]>>16);return this.binaryShiftByteCount<c.binaryShiftByteCount?m+=I.calculateBinaryShiftCost(c)-I.calculateBinaryShiftCost(this):this.binaryShiftByteCount>c.binaryShiftByteCount&&c.binaryShiftByteCount>0&&(m+=10),m<=c.bitCount},I.prototype.toBitArray=function(c){for(var m,R,Z=[],Q=this.endBinaryShift(c.length).token;null!==Q;Q=Q.getPrevious())Z.unshift(Q);var se=new Qe;try{for(var de=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")}(Z),Ee=de.next();!Ee.done;Ee=de.next())Ee.value.appendTo(se,c)}catch(mt){m={error:mt}}finally{try{Ee&&!Ee.done&&(R=de.return)&&R.call(de)}finally{if(m)throw m.error}}return se},I.prototype.toString=function(){return rt.format("%s bits=%d bytes=%d",Cu[this.mode],this.bitCount,this.binaryShiftByteCount)},I.calculateBinaryShiftCost=function(c){return c.binaryShiftByteCount>62?21:c.binaryShiftByteCount>31?20:c.binaryShiftByteCount>0?10:0},I.INITIAL_STATE=new I(Cd,0,0,0),I}();const of=Qf;var bu=function so(I){var c=rt.getCharCode(" "),m=rt.getCharCode("."),R=rt.getCharCode(",");I[0][c]=1;for(var Z=rt.getCharCode("Z"),Q=rt.getCharCode("A"),se=Q;se<=Z;se++)I[0][se]=se-Q+2;I[1][c]=1;var de=rt.getCharCode("z"),Ee=rt.getCharCode("a");for(se=Ee;se<=de;se++)I[1][se]=se-Ee+2;I[2][c]=1;var Ve=rt.getCharCode("9"),mt=rt.getCharCode("0");for(se=mt;se<=Ve;se++)I[2][se]=se-mt+2;I[2][R]=12,I[2][m]=13;for(var It=["\0"," ","\x01","\x02","\x03","\x04","\x05","\x06","\x07","\b","\t","\n","\v","\f","\r","\x1b","\x1c","\x1d","\x1e","\x1f","@","\\","^","_","`","|","~","\x7f"],Jt=0;Jt<It.length;Jt++)I[3][rt.getCharCode(It[Jt])]=Jt;var Xt=["\0","\r","\0","\0","\0","\0","!","'","#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","[","]","{","}"];for(Jt=0;Jt<Xt.length;Jt++)rt.getCharCode(Xt[Jt])>0&&(I[4][rt.getCharCode(Xt[Jt])]=Jt);return I}(W.createInt32Array(5,256)),Cc=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")},Ql=function(){function I(c){this.text=c}return I.prototype.encode=function(){for(var c=rt.getCharCode(" "),m=rt.getCharCode("\n"),R=vd.singletonList(of.INITIAL_STATE),Z=0;Z<this.text.length;Z++){var Q=void 0,se=Z+1<this.text.length?this.text[Z+1]:0;switch(this.text[Z]){case rt.getCharCode("\r"):Q=se===m?2:0;break;case rt.getCharCode("."):Q=se===c?3:0;break;case rt.getCharCode(","):Q=se===c?4:0;break;case rt.getCharCode(":"):Q=se===c?5:0;break;default:Q=0}Q>0?(R=I.updateStateListForPair(R,Z,Q),Z++):R=this.updateStateListForChar(R,Z)}return vd.min(R,function(Ee,Ve){return Ee.getBitCount()-Ve.getBitCount()}).toBitArray(this.text)},I.prototype.updateStateListForChar=function(c,m){var R,Z,Q=[];try{for(var se=Cc(c),de=se.next();!de.done;de=se.next())this.updateStateForChar(de.value,m,Q)}catch(Ve){R={error:Ve}}finally{try{de&&!de.done&&(Z=se.return)&&Z.call(se)}finally{if(R)throw R.error}}return I.simplifyStates(Q)},I.prototype.updateStateForChar=function(c,m,R){for(var Z=255&this.text[m],Q=bu[c.getMode()][Z]>0,se=null,de=0;de<=4;de++){var Ee=bu[de][Z];if(Ee>0){if(null==se&&(se=c.endBinaryShift(m)),!Q||de===c.getMode()||2===de){var Ve=se.latchAndAppend(de,Ee);R.push(Ve)}if(!Q&&yc[c.getMode()][de]>=0){var mt=se.shiftAndAppend(de,Ee);R.push(mt)}}}if(c.getBinaryShiftByteCount()>0||0===bu[c.getMode()][Z]){var It=c.addBinaryShiftChar(m);R.push(It)}},I.updateStateListForPair=function(c,m,R){var Z,Q,se=[];try{for(var de=Cc(c),Ee=de.next();!Ee.done;Ee=de.next())this.updateStateForPair(Ee.value,m,R,se)}catch(mt){Z={error:mt}}finally{try{Ee&&!Ee.done&&(Q=de.return)&&Q.call(de)}finally{if(Z)throw Z.error}}return this.simplifyStates(se)},I.updateStateForPair=function(c,m,R,Z){var Q=c.endBinaryShift(m);if(Z.push(Q.latchAndAppend(4,R)),4!==c.getMode()&&Z.push(Q.shiftAndAppend(4,R)),3===R||4===R){var se=Q.latchAndAppend(2,16-R).latchAndAppend(2,1);Z.push(se)}if(c.getBinaryShiftByteCount()>0){var de=c.addBinaryShiftChar(m).addBinaryShiftChar(m+1);Z.push(de)}},I.simplifyStates=function(c){var m,R,Z,Q,se=[];try{for(var de=Cc(c),Ee=de.next();!Ee.done;Ee=de.next()){var Ve=Ee.value,mt=!0,It=function(on){if(on.isBetterThanOrEqualTo(Ve))return mt=!1,"break";Ve.isBetterThanOrEqualTo(on)&&(se=se.filter(function(ln){return ln!==on}))};try{for(var Jt=(Z=void 0,Cc(se)),Xt=Jt.next();!Xt.done&&"break"!==It(Xt.value);Xt=Jt.next());}catch(on){Z={error:on}}finally{try{Xt&&!Xt.done&&(Q=Jt.return)&&Q.call(Jt)}finally{if(Z)throw Z.error}}mt&&se.push(Ve)}}catch(on){m={error:on}}finally{try{Ee&&!Ee.done&&(R=de.return)&&R.call(de)}finally{if(m)throw m.error}}return se},I}();const Ya=Ql;var Vo=function(){function I(){}return I.encodeBytes=function(c){return I.encode(c,I.DEFAULT_EC_PERCENT,I.DEFAULT_AZTEC_LAYERS)},I.encode=function(c,m,R){var de,Ee,Ve,mt,It,Z=new Ya(c).encode(),Q=ae.truncDivision(Z.getSize()*m,100)+11,se=Z.getSize()+Q;if(R!==I.DEFAULT_AZTEC_LAYERS){if(de=R<0,(Ee=Math.abs(R))>(de?I.MAX_NB_BITS_COMPACT:I.MAX_NB_BITS))throw new U(rt.format("Illegal value %s for layers",R));var Jt=(Ve=I.totalBitsInLayer(Ee,de))-Ve%(mt=I.WORD_SIZE[Ee]);if((It=I.stuffBits(Z,mt)).getSize()+Q>Jt)throw new U("Data to large for user specified layer");if(de&&It.getSize()>64*mt)throw new U("Data to large for user specified layer")}else{mt=0,It=null;for(var Xt=0;;Xt++){if(Xt>I.MAX_NB_BITS)throw new U("Data too large for an Aztec code");if(!(se>(Ve=I.totalBitsInLayer(Ee=(de=Xt<=3)?Xt+1:Xt,de)))&&((null==It||mt!==I.WORD_SIZE[Ee])&&(It=I.stuffBits(Z,mt=I.WORD_SIZE[Ee])),Jt=Ve-Ve%mt,!(de&&It.getSize()>64*mt)&&It.getSize()+Q<=Jt))break}}var mn,Lr=I.generateCheckWords(It,Ve,mt),Yr=It.getSize()/mt,on=I.generateModeMessage(de,Ee,Yr),ln=(de?11:14)+4*Ee,en=new Int32Array(ln);if(de)for(mn=ln,Xt=0;Xt<en.length;Xt++)en[Xt]=Xt;else{mn=ln+1+2*ae.truncDivision(ae.truncDivision(ln,2)-1,15);var In=ae.truncDivision(ln,2),jn=ae.truncDivision(mn,2);for(Xt=0;Xt<In;Xt++){var Zn=Xt+ae.truncDivision(Xt,15);en[In-Xt-1]=jn-Zn-1,en[In+Xt]=jn+Zn+1}}for(var Xn=new nt(mn),mi=(Xt=0,0);Xt<Ee;Xt++){for(var fs=4*(Ee-Xt)+(de?9:12),Ri=0;Ri<fs;Ri++)for(var Ms=2*Ri,ws=0;ws<2;ws++)Lr.get(mi+Ms+ws)&&Xn.set(en[2*Xt+ws],en[2*Xt+Ri]),Lr.get(mi+2*fs+Ms+ws)&&Xn.set(en[2*Xt+Ri],en[ln-1-2*Xt-ws]),Lr.get(mi+4*fs+Ms+ws)&&Xn.set(en[ln-1-2*Xt-ws],en[ln-1-2*Xt-Ri]),Lr.get(mi+6*fs+Ms+ws)&&Xn.set(en[ln-1-2*Xt-Ri],en[2*Xt+ws]);mi+=8*fs}if(I.drawModeMessage(Xn,de,mn,on),de)I.drawBullsEye(Xn,ae.truncDivision(mn,2),5);else for(I.drawBullsEye(Xn,ae.truncDivision(mn,2),7),Xt=0,Ri=0;Xt<ae.truncDivision(ln,2)-1;Xt+=15,Ri+=16)for(ws=1&ae.truncDivision(mn,2);ws<mn;ws+=2)Xn.set(ae.truncDivision(mn,2)-Ri,ws),Xn.set(ae.truncDivision(mn,2)+Ri,ws),Xn.set(ws,ae.truncDivision(mn,2)-Ri),Xn.set(ws,ae.truncDivision(mn,2)+Ri);var ca=new $l;return ca.setCompact(de),ca.setSize(mn),ca.setLayers(Ee),ca.setCodeWords(Yr),ca.setMatrix(Xn),ca},I.drawBullsEye=function(c,m,R){for(var Z=0;Z<R;Z+=2)for(var Q=m-Z;Q<=m+Z;Q++)c.set(Q,m-Z),c.set(Q,m+Z),c.set(m-Z,Q),c.set(m+Z,Q);c.set(m-R,m-R),c.set(m-R+1,m-R),c.set(m-R,m-R+1),c.set(m+R,m-R),c.set(m+R,m-R+1),c.set(m+R,m+R-1)},I.generateModeMessage=function(c,m,R){var Z=new Qe;return c?(Z.appendBits(m-1,2),Z.appendBits(R-1,6),Z=I.generateCheckWords(Z,28,4)):(Z.appendBits(m-1,5),Z.appendBits(R-1,11),Z=I.generateCheckWords(Z,40,4)),Z},I.drawModeMessage=function(c,m,R,Z){var Q=ae.truncDivision(R,2);if(m)for(var se=0;se<7;se++){var de=Q-3+se;Z.get(se)&&c.set(de,Q-5),Z.get(se+7)&&c.set(Q+5,de),Z.get(20-se)&&c.set(de,Q+5),Z.get(27-se)&&c.set(Q-5,de)}else for(se=0;se<10;se++)de=Q-5+se+ae.truncDivision(se,5),Z.get(se)&&c.set(de,Q-7),Z.get(se+10)&&c.set(Q+7,de),Z.get(29-se)&&c.set(de,Q+7),Z.get(39-se)&&c.set(Q-7,de)},I.generateCheckWords=function(c,m,R){var Z,Q,se=c.getSize()/R,de=new cd(I.getGF(R)),Ee=ae.truncDivision(m,R),Ve=I.bitsToWords(c,R,Ee);de.encode(Ve,Ee-se);var mt=m%R,It=new Qe;It.appendBits(0,mt);try{for(var Jt=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")}(Array.from(Ve)),Xt=Jt.next();!Xt.done;Xt=Jt.next())It.appendBits(Xt.value,R)}catch(Yr){Z={error:Yr}}finally{try{Xt&&!Xt.done&&(Q=Jt.return)&&Q.call(Jt)}finally{if(Z)throw Z.error}}return It},I.bitsToWords=function(c,m,R){var Q,se,Z=new Int32Array(R);for(Q=0,se=c.getSize()/m;Q<se;Q++){for(var de=0,Ee=0;Ee<m;Ee++)de|=c.get(Q*m+Ee)?1<<m-Ee-1:0;Z[Q]=de}return Z},I.getGF=function(c){switch(c){case 4:return Ie.AZTEC_PARAM;case 6:return Ie.AZTEC_DATA_6;case 8:return Ie.AZTEC_DATA_8;case 10:return Ie.AZTEC_DATA_10;case 12:return Ie.AZTEC_DATA_12;default:throw new U("Unsupported word size "+c)}},I.stuffBits=function(c,m){for(var R=new Qe,Z=c.getSize(),Q=(1<<m)-2,se=0;se<Z;se+=m){for(var de=0,Ee=0;Ee<m;Ee++)(se+Ee>=Z||c.get(se+Ee))&&(de|=1<<m-1-Ee);(de&Q)===Q?(R.appendBits(de&Q,m),se--):0==(de&Q)?(R.appendBits(1|de,m),se--):R.appendBits(de,m)}return R},I.totalBitsInLayer=function(c,m){return((m?88:112)+16*c)*c},I.DEFAULT_EC_PERCENT=33,I.DEFAULT_AZTEC_LAYERS=0,I.MAX_NB_BITS=32,I.MAX_NB_BITS_COMPACT=4,I.WORD_SIZE=Int32Array.from([4,6,6,8,8,8,8,8,8,10,10,10,10,10,10,10,10,10,10,10,10,10,10,12,12,12,12,12,12,12,12,12,12]),I}();const Xl=Vo;!function(){function I(){}I.prototype.encode=function(c,m,R,Z){return this.encodeWithHints(c,m,R,Z,null)},I.prototype.encodeWithHints=function(c,m,R,Z,Q){var se=Jl.ISO_8859_1,de=Xl.DEFAULT_EC_PERCENT,Ee=Xl.DEFAULT_AZTEC_LAYERS;return null!=Q&&(Q.has(Js.CHARACTER_SET)&&(se=sf.forName(Q.get(Js.CHARACTER_SET).toString())),Q.has(Js.ERROR_CORRECTION)&&(de=ae.parseInt(Q.get(Js.ERROR_CORRECTION).toString())),Q.has(Js.AZTEC_LAYERS)&&(Ee=ae.parseInt(Q.get(Js.AZTEC_LAYERS).toString()))),I.encodeLayers(c,m,R,Z,se,de,Ee)},I.encodeLayers=function(c,m,R,Z,Q,se,de){if(m!==St.AZTEC)throw new U("Can only encode AZTEC, but got "+m);var Ee=Xl.encode(rt.getBytes(c,Q),se,de);return I.renderResult(Ee,R,Z)},I.renderResult=function(c,m,R){var Z=c.getMatrix();if(null==Z)throw new zt;for(var Q=Z.getWidth(),se=Z.getHeight(),de=Math.max(m,Q),Ee=Math.max(R,se),Ve=Math.min(de/Q,Ee/se),mt=(de-Q*Ve)/2,It=(Ee-se*Ve)/2,Jt=new nt(de,Ee),Xt=0,Lr=It;Xt<se;Xt++,Lr+=Ve)for(var Yr=0,on=mt;Yr<Q;Yr++,on+=Ve)Z.get(Yr,Xt)&&Jt.setRegion(on,Lr,Ve,Ve);return Jt}}();var lf=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Object.prototype.hasOwnProperty.call(Z,Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){if("function"!=typeof m&&null!==m)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),uf=function(I){function c(m){var R=I.call(this,m.width,m.height)||this;return R.canvas=m,R.tempCanvasElement=null,R.buffer=c.makeBufferFromCanvasImageData(m),R}return lf(c,I),c.makeBufferFromCanvasImageData=function(m){var R=m.getContext("2d");if(!R)throw new Error("Couldn't get canvas context.");var Z=R.getImageData(0,0,m.width,m.height);return c.toGrayscaleBuffer(Z.data,m.width,m.height)},c.toGrayscaleBuffer=function(m,R,Z){for(var Q=new Uint8ClampedArray(R*Z),se=0,de=0,Ee=m.length;se<Ee;se+=4,de++){Q[de]=0===m[se+3]?255:306*m[se]+601*m[se+1]+117*m[se+2]+512>>10}return Q},c.prototype.getRow=function(m,R){if(m<0||m>=this.getHeight())throw new U("Requested row is outside the image: "+m);var Z=this.getWidth(),Q=m*Z;return null===R?R=this.buffer.slice(Q,Q+Z):(R.length<Z&&(R=new Uint8ClampedArray(Z)),R.set(this.buffer.slice(Q,Q+Z))),R},c.prototype.getMatrix=function(){return this.buffer},c.prototype.isCropSupported=function(){return!0},c.prototype.crop=function(m,R,Z,Q){return I.prototype.crop.call(this,m,R,Z,Q),this},c.prototype.isRotateSupported=function(){return!0},c.prototype.rotateCounterClockwise=function(){return this.rotate(-90),this},c.prototype.rotateCounterClockwise45=function(){return this.rotate(-45),this},c.prototype.invert=function(){return new hr(this)},c.prototype.getTempCanvasElement=function(){if(null===this.tempCanvasElement){var m=this.canvas.ownerDocument.createElement("canvas");m.width=this.canvas.width,m.height=this.canvas.height,this.tempCanvasElement=m}return this.tempCanvasElement},c.prototype.rotate=function(m){var R=this.getTempCanvasElement();if(!R)throw new Error("Could not create a Canvas element.");var Z=m*c.DEGREE_TO_RADIANS,Q=this.canvas.width,se=this.canvas.height,de=Math.ceil(Math.abs(Math.cos(Z))*Q+Math.abs(Math.sin(Z))*se),Ee=Math.ceil(Math.abs(Math.sin(Z))*Q+Math.abs(Math.cos(Z))*se);R.width=de,R.height=Ee;var Ve=R.getContext("2d");if(!Ve)throw new Error("Could not create a Canvas Context element.");return Ve.translate(de/2,Ee/2),Ve.rotate(Z),Ve.drawImage(this.canvas,Q/-2,se/-2),this.buffer=c.makeBufferFromCanvasImageData(R),this},c.DEGREE_TO_RADIANS=Math.PI/180,c}(wt);function Vc(){return typeof navigator<"u"}var ce=function(){return ce=Object.assign||function(I){for(var c,m=1,R=arguments.length;m<R;m++)for(var Z in c=arguments[m])Object.prototype.hasOwnProperty.call(c,Z)&&(I[Z]=c[Z]);return I},ce.apply(this,arguments)},pe=function(I,c,m,R){return new(m||(m=Promise))(function(Q,se){function de(mt){try{Ve(R.next(mt))}catch(It){se(It)}}function Ee(mt){try{Ve(R.throw(mt))}catch(It){se(It)}}function Ve(mt){mt.done?Q(mt.value):function Z(Q){return Q instanceof m?Q:new m(function(se){se(Q)})}(mt.value).then(de,Ee)}Ve((R=R.apply(I,c||[])).next())})},ze=function(I,c){var R,Z,Q,se,m={label:0,sent:function(){if(1&Q[0])throw Q[1];return Q[1]},trys:[],ops:[]};return se={next:de(0),throw:de(1),return:de(2)},"function"==typeof Symbol&&(se[Symbol.iterator]=function(){return this}),se;function de(Ve){return function(mt){return function Ee(Ve){if(R)throw new TypeError("Generator is already executing.");for(;m;)try{if(R=1,Z&&(Q=2&Ve[0]?Z.return:Ve[0]?Z.throw||((Q=Z.return)&&Q.call(Z),0):Z.next)&&!(Q=Q.call(Z,Ve[1])).done)return Q;switch(Z=0,Q&&(Ve=[2&Ve[0],Q.value]),Ve[0]){case 0:case 1:Q=Ve;break;case 4:return m.label++,{value:Ve[1],done:!1};case 5:m.label++,Z=Ve[1],Ve=[0];continue;case 7:Ve=m.ops.pop(),m.trys.pop();continue;default:if(!(Q=(Q=m.trys).length>0&&Q[Q.length-1])&&(6===Ve[0]||2===Ve[0])){m=0;continue}if(3===Ve[0]&&(!Q||Ve[1]>Q[0]&&Ve[1]<Q[3])){m.label=Ve[1];break}if(6===Ve[0]&&m.label<Q[1]){m.label=Q[1],Q=Ve;break}if(Q&&m.label<Q[2]){m.label=Q[2],m.ops.push(Ve);break}Q[2]&&m.ops.pop(),m.trys.pop();continue}Ve=c.call(I,m)}catch(mt){Ve=[6,mt],Z=0}finally{R=Q=0}if(5&Ve[0])throw Ve[1];return{value:Ve[0]?Ve[1]:void 0,done:!0}}([Ve,mt])}}},nr=function(I){var c="function"==typeof Symbol&&Symbol.iterator,m=c&&I[c],R=0;if(m)return m.call(I);if(I&&"number"==typeof I.length)return{next:function(){return I&&R>=I.length&&(I=void 0),{value:I&&I[R++],done:!I}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")},Ir={delayBetweenScanAttempts:500,delayBetweenScanSuccess:500,tryPlayVideoTimeout:5e3},an=function(){function I(c,m,R){void 0===m&&(m=new Map),void 0===R&&(R={}),this.reader=c,this.hints=m,this.options=ce(ce({},Ir),R)}return Object.defineProperty(I.prototype,"possibleFormats",{set:function(c){this.hints.set(At.POSSIBLE_FORMATS,c)},enumerable:!1,configurable:!0}),I.addVideoSource=function(c,m){try{c.srcObject=m}catch{console.error("got interrupted by new loading request")}},I.mediaStreamSetTorch=function(c,m){return pe(this,void 0,void 0,function(){return ze(this,function(R){switch(R.label){case 0:return[4,c.applyConstraints({advanced:[{fillLightMode:m?"flash":"off",torch:!!m}]})];case 1:return R.sent(),[2]}})})},I.mediaStreamIsTorchCompatible=function(c){var m,R,Z=c.getVideoTracks();try{for(var Q=nr(Z),se=Q.next();!se.done;se=Q.next())if(I.mediaStreamIsTorchCompatibleTrack(se.value))return!0}catch(Ee){m={error:Ee}}finally{try{se&&!se.done&&(R=Q.return)&&R.call(Q)}finally{if(m)throw m.error}}return!1},I.mediaStreamIsTorchCompatibleTrack=function(c){try{return"torch"in c.getCapabilities()}catch(R){return console.error(R),console.warn("Your browser may be not fully compatible with WebRTC and/or ImageCapture specs. Torch will not be available."),!1}},I.isVideoPlaying=function(c){return c.currentTime>0&&!c.paused&&c.readyState>2},I.getMediaElement=function(c,m){var R=document.getElementById(c);if(!R)throw new F("element with id '".concat(c,"' not found"));if(R.nodeName.toLowerCase()!==m.toLowerCase())throw new F("element with id '".concat(c,"' must be an ").concat(m," element"));return R},I.createVideoElement=function(c){if(c instanceof HTMLVideoElement)return c;if("string"==typeof c)return I.getMediaElement(c,"video");if(!c&&typeof document<"u"){var m=document.createElement("video");return m.width=200,m.height=200,m}throw new Error("Couldn't get videoElement from videoSource!")},I.prepareImageElement=function(c){if(c instanceof HTMLImageElement)return c;if("string"==typeof c)return I.getMediaElement(c,"img");if(typeof c>"u"){var m=document.createElement("img");return m.width=200,m.height=200,m}throw new Error("Couldn't get imageElement from imageSource!")},I.prepareVideoElement=function(c){var m=I.createVideoElement(c);return m.setAttribute("autoplay","true"),m.setAttribute("muted","true"),m.setAttribute("playsinline","true"),m},I.isImageLoaded=function(c){return!(!c.complete||0===c.naturalWidth)},I.createBinaryBitmapFromCanvas=function(c){var m=new uf(c),R=new Zt(m);return new J(R)},I.drawImageOnCanvas=function(c,m){c.drawImage(m,0,0)},I.getMediaElementDimensions=function(c){if(c instanceof HTMLVideoElement)return{height:c.videoHeight,width:c.videoWidth};if(c instanceof HTMLImageElement)return{height:c.naturalHeight||c.height,width:c.naturalWidth||c.width};throw new Error("Couldn't find the Source's dimensions!")},I.createCaptureCanvas=function(c){if(!c)throw new F("Cannot create a capture canvas without a media element.");if(typeof document>"u")throw new Error('The page "Document" is undefined, make sure you\'re running in a browser.');var m=document.createElement("canvas"),R=I.getMediaElementDimensions(c),Z=R.width,Q=R.height;return m.style.width=Z+"px",m.style.height=Q+"px",m.width=Z,m.height=Q,m},I.tryPlayVideo=function(c){return pe(this,void 0,void 0,function(){var m;return ze(this,function(R){switch(R.label){case 0:if(null==c?void 0:c.ended)return console.error("Trying to play video that has ended."),[2,!1];if(I.isVideoPlaying(c))return console.warn("Trying to play video that is already playing."),[2,!0];R.label=1;case 1:return R.trys.push([1,3,,4]),[4,c.play()];case 2:return R.sent(),[2,!0];case 3:return m=R.sent(),console.warn("It was not possible to play the video.",m),[2,!1];case 4:return[2]}})})},I.createCanvasFromMediaElement=function(c){var m=I.createCaptureCanvas(c),R=m.getContext("2d");if(!R)throw new Error("Couldn't find Canvas 2D Context.");return I.drawImageOnCanvas(R,c),m},I.createBinaryBitmapFromMediaElem=function(c){var m=I.createCanvasFromMediaElement(c);return I.createBinaryBitmapFromCanvas(m)},I.destroyImageElement=function(c){c.src="",c.removeAttribute("src"),c=void 0},I.listVideoInputDevices=function(){return pe(this,void 0,void 0,function(){var c,m,R,Z,Q,se,de,Ee,It,Jt;return ze(this,function(Xt){switch(Xt.label){case 0:if(!Vc())throw new Error("Can't enumerate devices, navigator is not present.");if(!function Le(){return!(!function Vh(){return Vc()&&!!navigator.mediaDevices}()||!navigator.mediaDevices.enumerateDevices)}())throw new Error("Can't enumerate devices, method not supported.");return[4,navigator.mediaDevices.enumerateDevices()];case 1:c=Xt.sent(),m=[];try{for(R=nr(c),Z=R.next();!Z.done;Z=R.next())"videoinput"===(se="video"===(Q=Z.value).kind?"videoinput":Q.kind)&&(de=Q.deviceId||Q.id,Ee=Q.label||"Video device ".concat(m.length+1),m.push({deviceId:de,label:Ee,kind:se,groupId:Q.groupId}))}catch(Lr){It={error:Lr}}finally{try{Z&&!Z.done&&(Jt=R.return)&&Jt.call(R)}finally{if(It)throw It.error}}return[2,m]}})})},I.findDeviceById=function(c){return pe(this,void 0,void 0,function(){var m;return ze(this,function(R){switch(R.label){case 0:return[4,I.listVideoInputDevices()];case 1:return(m=R.sent())?[2,m.find(function(Z){return Z.deviceId===c})]:[2]}})})},I.cleanVideoSource=function(c){if(c){try{c.srcObject=null}catch{c.src=""}c&&c.removeAttribute("src")}},I.releaseAllStreams=function(){0!==I.streamTracker.length&&I.streamTracker.forEach(function(c){c.getTracks().forEach(function(m){return m.stop()})}),I.streamTracker=[]},I.playVideoOnLoadAsync=function(c,m){return pe(this,void 0,void 0,function(){return ze(this,function(Z){switch(Z.label){case 0:return[4,I.tryPlayVideo(c)];case 1:return Z.sent()?[2,!0]:[2,new Promise(function(Q,se){var de=setTimeout(function(){I.isVideoPlaying(c)||(se(!1),c.removeEventListener("canplay",Ee))},m),Ee=function(){I.tryPlayVideo(c).then(function(Ve){clearTimeout(de),c.removeEventListener("canplay",Ee),Q(Ve)})};c.addEventListener("canplay",Ee)})]}})})},I.attachStreamToVideo=function(c,m,R){return void 0===R&&(R=5e3),pe(this,void 0,void 0,function(){var Z;return ze(this,function(Q){switch(Q.label){case 0:return Z=I.prepareVideoElement(m),I.addVideoSource(Z,c),[4,I.playVideoOnLoadAsync(Z,R)];case 1:return Q.sent(),[2,Z]}})})},I._waitImageLoad=function(c){return new Promise(function(m,R){var Q=setTimeout(function(){I.isImageLoaded(c)||(c.removeEventListener("load",se),R())},1e4),se=function(){clearTimeout(Q),c.removeEventListener("load",se),m()};c.addEventListener("load",se)})},I.checkCallbackFnOrThrow=function(c){if(!c)throw new F("`callbackFn` is a required parameter, you cannot capture results without it.")},I.disposeMediaStream=function(c){c.getVideoTracks().forEach(function(m){return m.stop()}),c=void 0},I.prototype.decode=function(c){var m=I.createCanvasFromMediaElement(c);return this.decodeFromCanvas(m)},I.prototype.decodeBitmap=function(c){return this.reader.decode(c,this.hints)},I.prototype.decodeFromCanvas=function(c){var m=I.createBinaryBitmapFromCanvas(c);return this.decodeBitmap(m)},I.prototype.decodeFromImageElement=function(c){return pe(this,void 0,void 0,function(){var m;return ze(this,function(R){switch(R.label){case 0:if(!c)throw new F("An image element must be provided.");return m=I.prepareImageElement(c),[4,this._decodeOnLoadImage(m)];case 1:return[2,R.sent()]}})})},I.prototype.decodeFromImageUrl=function(c){return pe(this,void 0,void 0,function(){var m;return ze(this,function(R){switch(R.label){case 0:if(!c)throw new F("An URL must be provided.");(m=I.prepareImageElement()).src=c,R.label=1;case 1:return R.trys.push([1,,3,4]),[4,this.decodeFromImageElement(m)];case 2:return[2,R.sent()];case 3:return I.destroyImageElement(m),[7];case 4:return[2]}})})},I.prototype.decodeFromConstraints=function(c,m,R){return pe(this,void 0,void 0,function(){var Z,Q;return ze(this,function(se){switch(se.label){case 0:return I.checkCallbackFnOrThrow(R),[4,this.getUserMedia(c)];case 1:Z=se.sent(),se.label=2;case 2:return se.trys.push([2,4,,5]),[4,this.decodeFromStream(Z,m,R)];case 3:return[2,se.sent()];case 4:throw Q=se.sent(),I.disposeMediaStream(Z),Q;case 5:return[2]}})})},I.prototype.decodeFromStream=function(c,m,R){return pe(this,void 0,void 0,function(){var Q,de,Ee,Ve,It,Jt,Xt=this;return ze(this,function(Lr){switch(Lr.label){case 0:return I.checkCallbackFnOrThrow(R),[4,I.attachStreamToVideo(c,m,this.options.tryPlayVideoTimeout)];case 1:return Q=Lr.sent(),de=this.scan(Q,R,function(){I.disposeMediaStream(c),I.cleanVideoSource(Q)}),Ee=c.getVideoTracks(),Ve=ce(ce({},de),{stop:function(){de.stop()},streamVideoConstraintsApply:function(Yr,on){return pe(this,void 0,void 0,function(){var ln,en,mn,jn,Zn,Xn;return ze(this,function(mi){switch(mi.label){case 0:ln=on?Ee.filter(on):Ee,mi.label=1;case 1:mi.trys.push([1,6,7,8]),en=nr(ln),mn=en.next(),mi.label=2;case 2:return mn.done?[3,5]:[4,mn.value.applyConstraints(Yr)];case 3:mi.sent(),mi.label=4;case 4:return mn=en.next(),[3,2];case 5:return[3,8];case 6:return jn=mi.sent(),Zn={error:jn},[3,8];case 7:try{mn&&!mn.done&&(Xn=en.return)&&Xn.call(en)}finally{if(Zn)throw Zn.error}return[7];case 8:return[2]}})})},streamVideoConstraintsGet:function(Yr){return Ee.find(Yr).getConstraints()},streamVideoSettingsGet:function(Yr){return Ee.find(Yr).getSettings()},streamVideoCapabilitiesGet:function(Yr){return Ee.find(Yr).getCapabilities()}}),I.mediaStreamIsTorchCompatible(c)&&(It=null==Ee?void 0:Ee.find(function(Yr){return I.mediaStreamIsTorchCompatibleTrack(Yr)}),Ve.switchTorch=Jt=function(Yr){return pe(Xt,void 0,void 0,function(){return ze(this,function(on){switch(on.label){case 0:return[4,I.mediaStreamSetTorch(It,Yr)];case 1:return on.sent(),[2]}})})},Ve.stop=function(){return pe(Xt,void 0,void 0,function(){return ze(this,function(Yr){switch(Yr.label){case 0:return de.stop(),[4,Jt(!1)];case 1:return Yr.sent(),[2]}})})}),[2,Ve]}})})},I.prototype.decodeFromVideoDevice=function(c,m,R){return pe(this,void 0,void 0,function(){return ze(this,function(se){switch(se.label){case 0:return I.checkCallbackFnOrThrow(R),[4,this.decodeFromConstraints({video:c?{deviceId:{exact:c}}:{facingMode:"environment"}},m,R)];case 1:return[2,se.sent()]}})})},I.prototype.decodeFromVideoElement=function(c,m){return pe(this,void 0,void 0,function(){var R;return ze(this,function(Q){switch(Q.label){case 0:if(I.checkCallbackFnOrThrow(m),!c)throw new F("A video element must be provided.");return R=I.prepareVideoElement(c),[4,I.playVideoOnLoadAsync(R,this.options.tryPlayVideoTimeout)];case 1:return Q.sent(),[2,this.scan(R,m)]}})})},I.prototype.decodeFromVideoUrl=function(c,m){return pe(this,void 0,void 0,function(){var R,Z;return ze(this,function(de){switch(de.label){case 0:if(I.checkCallbackFnOrThrow(m),!c)throw new F("An URL must be provided.");return(R=I.prepareVideoElement()).src=c,Z=function(){I.cleanVideoSource(R)},[4,I.playVideoOnLoadAsync(R,this.options.tryPlayVideoTimeout)];case 1:return de.sent(),[2,this.scan(R,m,Z)]}})})},I.prototype.decodeOnceFromConstraints=function(c,m){return pe(this,void 0,void 0,function(){var R;return ze(this,function(Z){switch(Z.label){case 0:return[4,this.getUserMedia(c)];case 1:return R=Z.sent(),[4,this.decodeOnceFromStream(R,m)];case 2:return[2,Z.sent()]}})})},I.prototype.decodeOnceFromStream=function(c,m){return pe(this,void 0,void 0,function(){var R,Z;return ze(this,function(se){switch(se.label){case 0:return R=Boolean(m),[4,I.attachStreamToVideo(c,m)];case 1:Z=se.sent(),se.label=2;case 2:return se.trys.push([2,,4,5]),[4,this.scanOneResult(Z)];case 3:return[2,se.sent()];case 4:return R||I.cleanVideoSource(Z),[7];case 5:return[2]}})})},I.prototype.decodeOnceFromVideoDevice=function(c,m){return pe(this,void 0,void 0,function(){return ze(this,function(Q){switch(Q.label){case 0:return[4,this.decodeOnceFromConstraints({video:c?{deviceId:{exact:c}}:{facingMode:"environment"}},m)];case 1:return[2,Q.sent()]}})})},I.prototype.decodeOnceFromVideoElement=function(c){return pe(this,void 0,void 0,function(){var m;return ze(this,function(Z){switch(Z.label){case 0:if(!c)throw new F("A video element must be provided.");return m=I.prepareVideoElement(c),[4,I.playVideoOnLoadAsync(m,this.options.tryPlayVideoTimeout)];case 1:return Z.sent(),[4,this.scanOneResult(m)];case 2:return[2,Z.sent()]}})})},I.prototype.decodeOnceFromVideoUrl=function(c){return pe(this,void 0,void 0,function(){var m,R;return ze(this,function(Z){switch(Z.label){case 0:if(!c)throw new F("An URL must be provided.");(m=I.prepareVideoElement()).src=c,R=this.decodeOnceFromVideoElement(m),Z.label=1;case 1:return Z.trys.push([1,,3,4]),[4,R];case 2:return[2,Z.sent()];case 3:return I.cleanVideoSource(m),[7];case 4:return[2]}})})},I.prototype.scanOneResult=function(c,m,R,Z){var Q=this;return void 0===m&&(m=!0),void 0===R&&(R=!0),void 0===Z&&(Z=!0),new Promise(function(se,de){Q.scan(c,function(Ee,Ve,mt){if(Ee)return se(Ee),void mt.stop();if(Ve){if(Ve instanceof X&&m||Ve instanceof K&&R||Ve instanceof Be&&Z)return;mt.stop(),de(Ve)}})})},I.prototype.scan=function(c,m,R){var Z=this;I.checkCallbackFnOrThrow(m);var Q=I.createCaptureCanvas(c),se=Q.getContext("2d");if(!se)throw new Error("Couldn't create canvas for visual element scan.");var Ve,de=function(){se=void 0,Q=void 0},Ee=!1,It={stop:function(){Ee=!0,clearTimeout(Ve),de(),R&&R()}},Jt=function(){if(!Ee)try{I.drawImageOnCanvas(se,c);var Xt=Z.decodeFromCanvas(Q);m(Xt,void 0,It),Ve=setTimeout(Jt,Z.options.delayBetweenScanSuccess)}catch(ln){if(m(void 0,ln,It),ln instanceof K||ln instanceof Be||ln instanceof X)return void(Ve=setTimeout(Jt,Z.options.delayBetweenScanAttempts));de(),R&&R(ln)}};return Jt(),It},I.prototype._decodeOnLoadImage=function(c){return pe(this,void 0,void 0,function(){return ze(this,function(R){switch(R.label){case 0:return I.isImageLoaded(c)?[3,2]:[4,I._waitImageLoad(c)];case 1:R.sent(),R.label=2;case 2:return[2,this.decode(c)]}})})},I.prototype.getUserMedia=function(c){return pe(this,void 0,void 0,function(){var m;return ze(this,function(R){switch(R.label){case 0:return[4,navigator.mediaDevices.getUserMedia(c)];case 1:return m=R.sent(),I.streamTracker.push(m),[2,m]}})})},I.streamTracker=[],I}(),wn=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Object.prototype.hasOwnProperty.call(Z,Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){if("function"!=typeof m&&null!==m)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),fi=(function(I){wn(function c(m,R){return I.call(this,new Wr,m,R)||this},I)}(an),function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Object.prototype.hasOwnProperty.call(Z,Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){if("function"!=typeof m&&null!==m)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}()),Ti=(function(I){fi(function c(m,R){return I.call(this,new Rs(m),m,R)||this},I)}(an),function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Object.prototype.hasOwnProperty.call(Z,Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){if("function"!=typeof m&&null!==m)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}()),Co=(function(I){Ti(function c(m,R){return I.call(this,new Zi,m,R)||this},I)}(an),function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Object.prototype.hasOwnProperty.call(Z,Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){if("function"!=typeof m&&null!==m)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}()),ec=function(I){function c(m,R){var Z=this,Q=new yl;return Q.setHints(m),(Z=I.call(this,Q,m,R)||this).reader=Q,Z}return Co(c,I),Object.defineProperty(c.prototype,"possibleFormats",{set:function(m){this.hints.set(At.POSSIBLE_FORMATS,m),this.reader.setHints(this.hints)},enumerable:!1,configurable:!0}),c.prototype.decodeBitmap=function(m){return this.reader.decodeWithState(m)},c.prototype.setHints=function(m){this.hints=m,this.reader.setHints(this.hints)},c}(an),Qs=function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Object.prototype.hasOwnProperty.call(Z,Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){if("function"!=typeof m&&null!==m)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}(),Sd=(function(I){Qs(function c(m,R){return I.call(this,new vu,m,R)||this},I)}(an),function(){var I=function(c,m){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Z){R.__proto__=Z}||function(R,Z){for(var Q in Z)Object.prototype.hasOwnProperty.call(Z,Q)&&(R[Q]=Z[Q])})(c,m)};return function(c,m){if("function"!=typeof m&&null!==m)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");function R(){this.constructor=c}I(c,m),c.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}}()),bo=(function(I){Sd(function c(m,R){return I.call(this,new qa,m,R)||this},I)}(an),"http://www.w3.org/2000/svg"),bc=(function(){function I(c){if("string"==typeof c){var m=document.getElementById(c);if(!m)throw new Error("Could not find a Container element with '".concat(c,"'."));this.containerElement=m}else this.containerElement=c}I.prototype.write=function(c,m,R,Z){if(0===c.length)throw new U("Found empty contents");if(m<0||R<0)throw new U("Requested dimensions are too small: "+m+"x"+R);var Q=Z&&void 0!==Z.get(Js.MARGIN)?Number.parseInt(Z.get(Js.MARGIN).toString(),10):I.QUIET_ZONE_SIZE,se=this.encode(Z,c);return this.renderResult(se,m,R,Q)},I.prototype.createSVGElement=function(c,m){var R=document.createElementNS(I.SVG_NS,"svg");return R.setAttributeNS(bo,"width",m.toString()),R.setAttributeNS(bo,"height",c.toString()),R},I.prototype.createSvgPathPlaceholderElement=function(c,m){var R=document.createElementNS(I.SVG_NS,"path");return R.setAttributeNS(bo,"d","M0 0h".concat(c,"v").concat(m,"H0z")),R.setAttributeNS(bo,"fill","none"),R},I.prototype.createSvgRectElement=function(c,m,R,Z){var Q=document.createElementNS(I.SVG_NS,"rect");return Q.setAttributeNS(bo,"x",c.toString()),Q.setAttributeNS(bo,"y",m.toString()),Q.setAttributeNS(bo,"height",R.toString()),Q.setAttributeNS(bo,"width",Z.toString()),Q.setAttributeNS(bo,"fill","#000000"),Q},I.prototype.encode=function(c,m){var R=vo.L;if(c&&void 0!==c.get(Js.ERROR_CORRECTION)){var Z=c.get(Js.ERROR_CORRECTION).toString();R=vo.fromString(Z)}return Kl.encode(m,R,c)},I.prototype.renderResult=function(c,m,R,Z){var Q=c.getMatrix();if(null===Q)throw new zt;var se=Q.getWidth(),de=Q.getHeight(),Ee=se+2*Z,Ve=de+2*Z,mt=Math.max(m,Ee),It=Math.max(R,Ve),Jt=Math.min(Math.floor(mt/Ee),Math.floor(It/Ve)),Xt=Math.floor((mt-se*Jt)/2),Lr=Math.floor((It-de*Jt)/2),Yr=this.createSVGElement(mt,It),on=this.createSvgPathPlaceholderElement(m,R);Yr.appendChild(on),this.containerElement.appendChild(Yr);for(var ln=0,en=Lr;ln<de;ln++,en+=Jt)for(var mn=0,In=Xt;mn<se;mn++,In+=Jt)if(1===Q.get(mn,ln)){var jn=this.createSvgRectElement(In,en,Jt,Jt);Yr.appendChild(jn)}return Yr},I.QUIET_ZONE_SIZE=4,I.SVG_NS="http://www.w3.org/2000/svg"}(),"http://www.w3.org/2000/svg"),jc=(function(){function I(){}I.prototype.write=function(c,m,R,Z){if(0===c.length)throw new U("Found empty contents");if(m<0||R<0)throw new U("Requested dimensions are too small: "+m+"x"+R);var Q=vo.L,se=I.QUIET_ZONE_SIZE;if(Z){if(void 0!==Z.get(Js.ERROR_CORRECTION)){var de=Z.get(Js.ERROR_CORRECTION).toString();Q=vo.fromString(de)}void 0!==Z.get(Js.MARGIN)&&(se=Number.parseInt(Z.get(Js.MARGIN).toString(),10))}var Ee=Kl.encode(c,Q,Z);return this.renderResult(Ee,m,R,se)},I.prototype.writeToDom=function(c,m,R,Z,Q){if("string"==typeof c){var se=document.querySelector(c);if(!se)throw new Error("Could no find the target HTML element.");c=se}var de=this.write(m,R,Z,Q);c instanceof HTMLElement&&c.appendChild(de)},I.prototype.renderResult=function(c,m,R,Z){var Q=c.getMatrix();if(null===Q)throw new zt;for(var se=Q.getWidth(),de=Q.getHeight(),Ee=se+2*Z,Ve=de+2*Z,mt=Math.max(m,Ee),It=Math.max(R,Ve),Jt=Math.min(Math.floor(mt/Ee),Math.floor(It/Ve)),Xt=Math.floor((mt-se*Jt)/2),Lr=Math.floor((It-de*Jt)/2),Yr=this.createSVGElement(mt,It),on=0,ln=Lr;on<de;on++,ln+=Jt)for(var en=0,mn=Xt;en<se;en++,mn+=Jt)if(1===Q.get(en,on)){var In=this.createSvgRectElement(mn,ln,Jt,Jt);Yr.appendChild(In)}return Yr},I.prototype.createSVGElement=function(c,m){var R=document.createElementNS(bc,"svg"),Z=c.toString(),Q=m.toString();return R.setAttribute("height",Q),R.setAttribute("width",Z),R.setAttribute("viewBox","0 0 "+Z+" "+Q),R},I.prototype.createSvgRectElement=function(c,m,R,Z){var Q=document.createElementNS(bc,"rect");return Q.setAttribute("x",c.toString()),Q.setAttribute("y",m.toString()),Q.setAttribute("height",R.toString()),Q.setAttribute("width",Z.toString()),Q.setAttribute("fill","#000000"),Q},I.QUIET_ZONE_SIZE=4}(),n(591));const Gc=["preview"];class ol extends ec{getScannerControls(){if(!this.scannerControls)throw new Error("No scanning is running at the time.");return this.scannerControls}scanFromDeviceObservable(c,m){var R=this;return(0,t.Z)(function*(){const Z=new jc.X({});let Q;try{Q=yield R.decodeFromVideoDevice(c,m,(se,de)=>{if(!de)return void Z.next({result:se});const Ee=de.name;Ee===X.name||Ee===K.name||Ee===Be.name||de.message.includes("No MultiFormat Readers were able to detect the code.")?Z.next({error:de}):(Z.error(de),R.scannerControls.stop(),R.scannerControls=void 0)}),R.scannerControls={...Q,stop(){Q.stop(),Z.complete()}}}catch(se){Z.error(se),R.scannerControls?.stop(),R.scannerControls=void 0}return Z.asObservable()})()}}let df=(()=>{class I{constructor(){this.timeBetweenScans=500,this.delayBetweenScanSuccess=500,this.previewFitMode="cover",this._ready=!1,this.autostarted=new l.vpe,this.autostarting=new l.vpe,this.torchCompatible=new l.vpe(!1),this.scanSuccess=new l.vpe,this.scanFailure=new l.vpe,this.scanError=new l.vpe,this.scanComplete=new l.vpe,this.camerasFound=new l.vpe,this.camerasNotFound=new l.vpe,this.permissionResponse=new l.vpe(!0),this.hasDevices=new l.vpe,this.deviceChange=new l.vpe,this._enabled=!0,this._hints=new Map,this.autofocusEnabled=!0,this.autostart=!0,this.formats=[St.QR_CODE],this.hasNavigator=typeof navigator<"u",this.isMediaDevicesSupported=this.hasNavigator&&!!navigator.mediaDevices}get codeReader(){return this._codeReader}set device(m){this._ready?this.isAutostarting?console.warn("Avoid setting a device during auto-start."):this.isCurrentDevice(m)?console.warn("Setting the same device is not allowed."):this.hasPermission?this.setDevice(m):console.warn("Permissions not set yet, waiting for them to be set to apply device change."):this._devicePreStart=m}get device(){return this._device}get formats(){return this.hints.get(At.POSSIBLE_FORMATS)}set formats(m){if("string"==typeof m)throw new Error("Invalid formats, make sure the [formats] input is a binding.");const R=m.map(Q=>this.getBarcodeFormatOrFail(Q)),Z=this.hints;Z.set(At.POSSIBLE_FORMATS,R),this.hints=Z}get hints(){return this._hints}set hints(m){this._hints=m,this.codeReader?.setHints(this._hints)}set videoConstraints(m){const R=this.codeReader?.getScannerControls();!R||R?.streamVideoConstraintsApply(m)}set isAutostarting(m){this._isAutostarting=m,this.autostarting.next(m)}get isAutostarting(){return this._isAutostarting}set torch(m){try{this.getCodeReader().getScannerControls().switchTorch(m)}catch{}}set enable(m){this._enabled=Boolean(m),this._enabled?this.device?this.scanFromDevice(this.device.deviceId):this.init():(this.reset(),ol.releaseAllStreams())}get enabled(){return this._enabled}get tryHarder(){return this.hints.get(At.TRY_HARDER)}set tryHarder(m){const R=this.hints;m?R.set(At.TRY_HARDER,!0):R.delete(At.TRY_HARDER),this.hints=R}askForPermission(){var m=this;return(0,t.Z)(function*(){if(!m.hasNavigator)return console.error("@zxing/ngx-scanner","Can't ask permission, navigator is not present."),m.setPermission(null),m.hasPermission;if(!m.isMediaDevicesSupported)return console.error("@zxing/ngx-scanner","Can't get user media, this is not supported."),m.setPermission(null),m.hasPermission;let R,Z;try{R=yield m.getAnyVideoDevice(),Z=!!R}catch(Q){return m.handlePermissionException(Q)}finally{m.terminateStream(R)}return m.setPermission(Z),Z})()}getAnyVideoDevice(){return navigator.mediaDevices.getUserMedia({video:!0})}terminateStream(m){m&&m.getTracks().forEach(R=>R.stop()),m=void 0}init(){var m=this;return(0,t.Z)(function*(){if(!m.autostart)return console.warn("Feature 'autostart' disabled. Permissions and devices recovery has to be run manually."),m.initAutostartOff(),void(m._ready=!0);yield m.initAutostartOn(),m._ready=!0})()}initAutostartOff(){this.isAutostarting=!1,this.updateVideoInputDevices(),this._device&&this._devicePreStart&&this.setDevice(this._devicePreStart)}initAutostartOn(){var m=this;return(0,t.Z)(function*(){let R;m.isAutostarting=!0;try{R=yield m.askForPermission()}catch(Z){return void console.error("Exception occurred while asking for permission:",Z)}if(R){const Z=yield m.updateVideoInputDevices();yield m.autostartScanner([...Z])}m.isAutostarting=!1,m.autostarted.next()})()}isCurrentDevice(m){return m?.deviceId===this._device?.deviceId}ngOnDestroy(){this.reset(),ol.releaseAllStreams()}ngOnInit(){this.init()}scanStop(){this._scanSubscription&&(this.codeReader?.getScannerControls().stop(),this._scanSubscription?.unsubscribe(),this._scanSubscription=void 0),this.torchCompatible.next(!1)}scanStart(){if(this._scanSubscription)throw new Error("There is already a scan proccess running.");if(!this._device)throw new Error("No device defined, cannot start scan, please define a device.");this.scanFromDevice(this._device.deviceId)}restart(){this._codeReader=void 0;const m=this._reset();!m||(this.device=m)}updateVideoInputDevices(){var m=this;return(0,t.Z)(function*(){const R=(yield an.listVideoInputDevices())||[],Z=R&&R.length>0;return m.hasDevices.next(Z),m.camerasFound.next([...R]),Z||m.camerasNotFound.next(),R})()}autostartScanner(m){var R=this;return(0,t.Z)(function*(){const Q=m.find(({label:se})=>/back|tr\xe1s|rear|traseira|environment|ambiente/gi.test(se))||m.pop();if(!Q)throw new Error("Impossible to autostart, no input devices available.");yield R.setDevice(Q),R.deviceChange.next(Q)})()}dispatchScanSuccess(m){this.scanSuccess.next(m.getText())}dispatchScanFailure(m){this.scanFailure.next(m)}dispatchScanError(m){this.scanError.observers.some(R=>Boolean(R))||(console.error(`zxing scanner component: ${m.name}`,m),console.warn("Use the `(scanError)` property to handle errors like this!")),this.scanError.next(m)}dispatchScanComplete(m){this.scanComplete.next(m)}handlePermissionException(m){let R;switch(console.error("@zxing/ngx-scanner","Error when asking for permission.",m),m.name){case"NotSupportedError":console.warn("@zxing/ngx-scanner",m.message),R=null,this.hasDevices.next(null);break;case"NotAllowedError":console.warn("@zxing/ngx-scanner",m.message),R=!1,this.hasDevices.next(!0);break;case"NotFoundError":console.warn("@zxing/ngx-scanner",m.message),R=null,this.hasDevices.next(!1),this.camerasNotFound.next(m);break;case"NotReadableError":console.warn("@zxing/ngx-scanner","Couldn't read the device(s)'s stream, it's probably in use by another app."),R=null,this.hasDevices.next(!1),this.camerasNotFound.next(m);break;default:console.warn("@zxing/ngx-scanner","I was not able to define if I have permissions for camera or not.",m),R=null}return this.setPermission(R),this.permissionResponse.error(m),R}getBarcodeFormatOrFail(m){return"string"==typeof m?St[m.trim().toUpperCase()]:m}getCodeReader(){return this._codeReader||(this._codeReader=new ol(this.hints,{delayBetweenScanAttempts:this.timeBetweenScans,delayBetweenScanSuccess:this.delayBetweenScanSuccess})),this._codeReader}scanFromDevice(m){var R=this;return(0,t.Z)(function*(){const Z=R.previewElemRef.nativeElement,Q=R.getCodeReader(),se=yield Q.scanFromDeviceObservable(m,Z);if(!se)throw new Error("Undefined decoding stream, aborting.");if(R._scanSubscription=se.subscribe(Jt=>R._onDecodeResult(Jt.result,Jt.error),Jt=>R._onDecodeError(Jt),()=>{}),R._scanSubscription.closed)return;const It=typeof Q.getScannerControls().switchTorch<"u";R.torchCompatible.next(It)})()}_onDecodeError(m){this.dispatchScanError(m)}_onDecodeResult(m,R){m?this.dispatchScanSuccess(m):this.dispatchScanFailure(R),this.dispatchScanComplete(m)}_reset(){if(!this._codeReader)return;const m=this._device;return this.device=void 0,this._codeReader=void 0,m}reset(){this._reset(),this.deviceChange.emit(null)}setDevice(m){var R=this;return(0,t.Z)(function*(){R.scanStop(),R._device=m||void 0,R._device||an.cleanVideoSource(R.previewElemRef.nativeElement),R._enabled&&m&&(yield R.scanFromDevice(m.deviceId))})()}setPermission(m){this.hasPermission=m,this.permissionResponse.next(m)}}return I.\u0275fac=function(m){return new(m||I)},I.\u0275cmp=l.Xpm({type:I,selectors:[["zxing-scanner"]],viewQuery:function(m,R){if(1&m&&l.Gf(Gc,7),2&m){let Z;l.iGM(Z=l.CRH())&&(R.previewElemRef=Z.first)}},inputs:{autofocusEnabled:"autofocusEnabled",timeBetweenScans:"timeBetweenScans",delayBetweenScanSuccess:"delayBetweenScanSuccess",autostart:"autostart",previewFitMode:"previewFitMode",device:"device",formats:"formats",videoConstraints:"videoConstraints",torch:"torch",enable:"enable",tryHarder:"tryHarder"},outputs:{autostarted:"autostarted",autostarting:"autostarting",torchCompatible:"torchCompatible",scanSuccess:"scanSuccess",scanFailure:"scanFailure",scanError:"scanError",scanComplete:"scanComplete",camerasFound:"camerasFound",camerasNotFound:"camerasNotFound",permissionResponse:"permissionResponse",hasDevices:"hasDevices",deviceChange:"deviceChange"},decls:6,vars:2,consts:[["preview",""]],template:function(m,R){1&m&&(l.TgZ(0,"video",null,0)(2,"p"),l._uU(3," Your browser does not support this feature, please try to upgrade it. "),l.qZA(),l.TgZ(4,"p"),l._uU(5," Seu navegador n\xe3o suporta este recurso, por favor tente atualiz\xe1-lo. "),l.qZA()()),2&m&&l.Udp("object-fit",R.previewFitMode)},styles:["[_nghost-%COMP%]{display:block}video[_ngcontent-%COMP%]{width:100%;height:auto;object-fit:contain}"],changeDetection:0}),I})(),Wc=(()=>{class I{}return I.\u0275fac=function(m){return new(m||I)},I.\u0275mod=l.oAB({type:I}),I.\u0275inj=l.cJS({imports:[[e.ez,h.u5]]}),I})()},85132:(M,b,n)=>{"use strict";n.d(b,{Gb:()=>t.Gb});var t=n(70579)},70259:(M,b,n)=>{"use strict";n.d(b,{C6:()=>t.getApps,Mq:()=>t.getApp});var t=n(49681);(0,t.registerVersion)("firebase","9.19.1","app")},29260:(M,b,n)=>{"use strict";n.d(b,{Z:()=>t.Z});var t=n(63942);t.Z.registerVersion("firebase","9.19.1","app-compat")},69800:(M,b,n)=>{"use strict";n.r(b);var t=n(49671),e=n(63942),l=n(42090),h=n(49681),r=n(41877),d=n(70655),y=n(34859);const H=function a(){return{"admin-restricted-operation":"This operation is restricted to administrators only.","argument-error":"","app-not-authorized":"This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.","app-not-installed":"The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device.","captcha-check-failed":"The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains.","code-expired":"The SMS code has expired. Please re-send the verification code to try again.","cordova-not-ready":"Cordova framework is not ready.","cors-unsupported":"This browser is not supported.","credential-already-in-use":"This credential is already associated with a different user account.","custom-token-mismatch":"The custom token corresponds to a different audience.","requires-recent-login":"This operation is sensitive and requires recent authentication. Log in again before retrying this request.","dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK.","dynamic-link-not-activated":"Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions.","email-change-needs-verification":"Multi-factor users must always have a verified email.","email-already-in-use":"The email address is already in use by another account.","emulator-config-failed":'Auth instance has already been used to make a network call. Auth can no longer be configured to use the emulator. Try calling "connectAuthEmulator()" sooner.',"expired-action-code":"The action code has expired.","cancelled-popup-request":"This operation has been cancelled due to another conflicting popup being opened.","internal-error":"An internal AuthError has occurred.","invalid-app-credential":"The phone verification request contains an invalid application verifier. The reCAPTCHA token response is either invalid or expired.","invalid-app-id":"The mobile app identifier is not registed for the current project.","invalid-user-token":"This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key.","invalid-auth-event":"An internal AuthError has occurred.","invalid-verification-code":"The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure to use the verification code provided by the user.","invalid-continue-uri":"The continue URL provided in the request is invalid.","invalid-cordova-configuration":"The following Cordova plugins must be installed to enable OAuth sign-in: cordova-plugin-buildinfo, cordova-universal-links-plugin, cordova-plugin-browsertab, cordova-plugin-inappbrowser and cordova-plugin-customurlscheme.","invalid-custom-token":"The custom token format is incorrect. Please check the documentation.","invalid-dynamic-link-domain":"The provided dynamic link domain is not configured or authorized for the current project.","invalid-email":"The email address is badly formatted.","invalid-emulator-scheme":"Emulator URL must start with a valid scheme (http:// or https://).","invalid-api-key":"Your API key is invalid, please check you have copied it correctly.","invalid-cert-hash":"The SHA-1 certificate hash provided is invalid.","invalid-credential":"The supplied auth credential is malformed or has expired.","invalid-message-payload":"The email template corresponding to this action contains invalid characters in its message. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-multi-factor-session":"The request does not contain a valid proof of first factor successful sign-in.","invalid-oauth-provider":"EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers.","invalid-oauth-client-id":"The OAuth client ID provided is either invalid or does not match the specified API key.","unauthorized-domain":"This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.","invalid-action-code":"The action code is invalid. This can happen if the code is malformed, expired, or has already been used.","wrong-password":"The password is invalid or the user does not have a password.","invalid-persistence-type":"The specified persistence type is invalid. It can only be local, session or none.","invalid-phone-number":"The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code].","invalid-provider-id":"The specified provider ID is invalid.","invalid-recipient-email":"The email corresponding to this action failed to send as the provided recipient email address is invalid.","invalid-sender":"The email template corresponding to this action contains an invalid sender email or name. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-verification-id":"The verification ID used to create the phone auth credential is invalid.","invalid-tenant-id":"The Auth instance's tenant ID is invalid.","login-blocked":"Login blocked by user-provided method: {$originalMessage}","missing-android-pkg-name":"An Android Package Name must be provided if the Android App is required to be installed.","auth-domain-config-required":"Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console.","missing-app-credential":"The phone verification request is missing an application verifier assertion. A reCAPTCHA response token needs to be provided.","missing-verification-code":"The phone auth credential was created with an empty SMS verification code.","missing-continue-uri":"A continue URL must be provided in the request.","missing-iframe-start":"An internal AuthError has occurred.","missing-ios-bundle-id":"An iOS Bundle ID must be provided if an App Store ID is provided.","missing-or-invalid-nonce":"The request does not contain a valid nonce. This can occur if the SHA-256 hash of the provided raw nonce does not match the hashed nonce in the ID token payload.","missing-password":"A non-empty password must be provided","missing-multi-factor-info":"No second factor identifier is provided.","missing-multi-factor-session":"The request is missing proof of first factor successful sign-in.","missing-phone-number":"To send verification codes, provide a phone number for the recipient.","missing-verification-id":"The phone auth credential was created with an empty verification ID.","app-deleted":"This instance of FirebaseApp has been deleted.","multi-factor-info-not-found":"The user does not have a second factor matching the identifier provided.","multi-factor-auth-required":"Proof of ownership of a second factor is required to complete sign-in.","account-exists-with-different-credential":"An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.","network-request-failed":"A network AuthError (such as timeout, interrupted connection or unreachable host) has occurred.","no-auth-event":"An internal AuthError has occurred.","no-such-provider":"User was not linked to an account with the given provider.","null-user":"A null user object was provided as the argument for an operation which requires a non-null user object.","operation-not-allowed":"The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.","operation-not-supported-in-this-environment":'This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.',"popup-blocked":"Unable to establish a connection with the popup. It may have been blocked by the browser.","popup-closed-by-user":"The popup has been closed by the user before finalizing the operation.","provider-already-linked":"User can only be linked to one identity for the given provider.","quota-exceeded":"The project's quota for this operation has been exceeded.","redirect-cancelled-by-user":"The redirect operation has been cancelled by the user before finalizing.","redirect-operation-pending":"A redirect sign-in operation is already pending.","rejected-credential":"The request contains malformed or mismatching credentials.","second-factor-already-in-use":"The second factor is already enrolled on this account.","maximum-second-factor-count-exceeded":"The maximum allowed number of second factors on a user has been exceeded.","tenant-id-mismatch":"The provided tenant ID does not match the Auth instance's tenant ID",timeout:"The operation has timed out.","user-token-expired":"The user's credential is no longer valid. The user must sign in again.","too-many-requests":"We have blocked all requests from this device due to unusual activity. Try again later.","unauthorized-continue-uri":"The domain of the continue URL is not whitelisted.  Please whitelist the domain in the Firebase console.","unsupported-first-factor":"Enrolling a second factor or signing in with a multi-factor account requires sign-in with a supported first factor.","unsupported-persistence-type":"The current environment does not support the specified persistence type.","unsupported-tenant-operation":"This operation is not supported in a multi-tenant context.","unverified-email":"The operation requires a verified email.","user-cancelled":"The user did not grant your application the permissions it requested.","user-not-found":"There is no user record corresponding to this identifier. The user may have been deleted.","user-disabled":"The user account has been disabled by an administrator.","user-mismatch":"The supplied credentials do not correspond to the previously signed in user.","user-signed-out":"","weak-password":"The password must be 6 characters long or more.","web-storage-unsupported":"This browser is not supported or 3rd party cookies and data may be disabled.","already-initialized":"initializeAuth() has already been called with different options. To avoid this error, call initializeAuth() with the same options as when it was originally called, or call getAuth() to return the already initialized instance."}},F=function O(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}},V=new l.LL("auth","Firebase",{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}),U=new r.Yd("@firebase/auth");function q(Le,...ce){U.logLevel<=r.in.ERROR&&U.error(`Auth (${h.SDK_VERSION}): ${Le}`,...ce)}function J(Le,...ce){throw re(Le,...ce)}function G(Le,...ce){return re(Le,...ce)}function ie(Le,ce,pe){const ze=Object.assign(Object.assign({},F()),{[ce]:pe});return new l.LL("auth","Firebase",ze).create(ce,{appName:Le.name})}function K(Le,ce,pe){if(!(ce instanceof pe))throw pe.name!==ce.constructor.name&&J(Le,"argument-error"),ie(Le,"argument-error",`Type of ${ce.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}function re(Le,...ce){if("string"!=typeof Le){const pe=ce[0],ze=[...ce.slice(1)];return ze[0]&&(ze[0].appName=Le.name),Le._errorFactory.create(pe,...ze)}return V.create(Le,...ce)}function oe(Le,ce,...pe){if(!Le)throw re(ce,...pe)}function B(Le){const ce="INTERNAL ASSERTION FAILED: "+Le;throw q(ce),new Error(ce)}function s(Le,ce){Le||B(ce)}const _=new Map;function w(Le){s(Le instanceof Function,"Expected a class definition");let ce=_.get(Le);return ce?(s(ce instanceof Le,"Instance stored in cache mismatched with class"),ce):(ce=new Le,_.set(Le,ce),ce)}function j(){var Le;return typeof self<"u"&&(null===(Le=self.location)||void 0===Le?void 0:Le.href)||""}function $(){return"http:"===Y()||"https:"===Y()}function Y(){var Le;return typeof self<"u"&&(null===(Le=self.location)||void 0===Le?void 0:Le.protocol)||null}class fe{constructor(ce,pe){this.shortDelay=ce,this.longDelay=pe,s(pe>ce,"Short delay should be less than long delay!"),this.isMobile=(0,l.uI)()||(0,l.b$)()}get(){return function u(){return!(typeof navigator<"u"&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&($()||(0,l.ru)()||"connection"in navigator))||navigator.onLine}()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}function ae(Le,ce){s(Le.emulator,"Emulator should always be set here");const{url:pe}=Le.emulator;return ce?`${pe}${ce.startsWith("/")?ce.slice(1):ce}`:pe}class ye{static initialize(ce,pe,ze){this.fetchImpl=ce,pe&&(this.headersImpl=pe),ze&&(this.responseImpl=ze)}static fetch(){return this.fetchImpl?this.fetchImpl:typeof self<"u"&&"fetch"in self?self.fetch:void B("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:typeof self<"u"&&"Headers"in self?self.Headers:void B("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:typeof self<"u"&&"Response"in self?self.Response:void B("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const Qe={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error"},Ot=new fe(3e4,6e4);function At(Le,ce){return Le.tenantId&&!ce.tenantId?Object.assign(Object.assign({},ce),{tenantId:Le.tenantId}):ce}function Ze(Le,ce,pe,ze){return at.apply(this,arguments)}function at(){return(at=(0,t.Z)(function*(Le,ce,pe,ze,nr={}){return Be(Le,nr,(0,t.Z)(function*(){let Ir={},an={};ze&&("GET"===ce?an=ze:Ir={body:JSON.stringify(ze)});const wn=(0,l.xO)(Object.assign({key:Le.config.apiKey},an)).slice(1),Jn=yield Le._getAdditionalHeaders();return Jn["Content-Type"]="application/json",Le.languageCode&&(Jn["X-Firebase-Locale"]=Le.languageCode),ye.fetch()(be(Le,Le.config.apiHost,pe,wn),Object.assign({method:ce,headers:Jn,referrerPolicy:"no-referrer"},Ir))}))})).apply(this,arguments)}function Be(Le,ce,pe){return Lt.apply(this,arguments)}function Lt(){return(Lt=(0,t.Z)(function*(Le,ce,pe){Le._canInitEmulator=!1;const ze=Object.assign(Object.assign({},Qe),ce);try{const nr=new Te(Le),Ir=yield Promise.race([pe(),nr.promise]);nr.clearNetworkTimeout();const an=yield Ir.json();if("needConfirmation"in an)throw $e(Le,"account-exists-with-different-credential",an);if(Ir.ok&&!("errorMessage"in an))return an;{const wn=Ir.ok?an.errorMessage:an.error.message,[Jn,fi]=wn.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===Jn)throw $e(Le,"credential-already-in-use",an);if("EMAIL_EXISTS"===Jn)throw $e(Le,"email-already-in-use",an);if("USER_DISABLED"===Jn)throw $e(Le,"user-disabled",an);const Mi=ze[Jn]||Jn.toLowerCase().replace(/[_\s]+/g,"-");if(fi)throw ie(Le,Mi,fi);J(Le,Mi)}}catch(nr){if(nr instanceof l.ZR)throw nr;J(Le,"network-request-failed",{message:String(nr)})}})).apply(this,arguments)}function _e(Le,ce,pe,ze){return ne.apply(this,arguments)}function ne(){return(ne=(0,t.Z)(function*(Le,ce,pe,ze,nr={}){const Ir=yield Ze(Le,ce,pe,ze,nr);return"mfaPendingCredential"in Ir&&J(Le,"multi-factor-auth-required",{_serverResponse:Ir}),Ir})).apply(this,arguments)}function be(Le,ce,pe,ze){const nr=`${ce}${pe}?${ze}`;return Le.config.emulator?ae(Le.config,nr):`${Le.config.apiScheme}://${nr}`}class Te{constructor(ce){this.auth=ce,this.timer=null,this.promise=new Promise((pe,ze)=>{this.timer=setTimeout(()=>ze(G(this.auth,"network-request-failed")),Ot.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function $e(Le,ce,pe){const ze={appName:Le.name};pe.email&&(ze.email=pe.email),pe.phoneNumber&&(ze.phoneNumber=pe.phoneNumber);const nr=G(Le,ce,ze);return nr.customData._tokenResponse=pe,nr}function Ge(){return(Ge=(0,t.Z)(function*(Le,ce){return Ze(Le,"POST","/v1/accounts:delete",ce)})).apply(this,arguments)}function Ft(Le,ce){return br.apply(this,arguments)}function br(){return(br=(0,t.Z)(function*(Le,ce){return Ze(Le,"POST","/v1/accounts:update",ce)})).apply(this,arguments)}function rt(Le,ce){return st.apply(this,arguments)}function st(){return(st=(0,t.Z)(function*(Le,ce){return Ze(Le,"POST","/v1/accounts:lookup",ce)})).apply(this,arguments)}function Dt(Le){if(Le)try{const ce=new Date(Number(Le));if(!isNaN(ce.getTime()))return ce.toUTCString()}catch{}}function Yt(){return(Yt=(0,t.Z)(function*(Le,ce=!1){const pe=(0,l.m9)(Le),ze=yield pe.getIdToken(ce),nr=X(ze);oe(nr&&nr.exp&&nr.auth_time&&nr.iat,pe.auth,"internal-error");const Ir="object"==typeof nr.firebase?nr.firebase:void 0,an=null==Ir?void 0:Ir.sign_in_provider;return{claims:nr,token:ze,authTime:Dt(Ne(nr.auth_time)),issuedAtTime:Dt(Ne(nr.iat)),expirationTime:Dt(Ne(nr.exp)),signInProvider:an||null,signInSecondFactor:(null==Ir?void 0:Ir.sign_in_second_factor)||null}})).apply(this,arguments)}function Ne(Le){return 1e3*Number(Le)}function X(Le){const[ce,pe,ze]=Le.split(".");if(void 0===ce||void 0===pe||void 0===ze)return q("JWT malformed, contained fewer than 3 sections"),null;try{const nr=(0,l.tV)(pe);return nr?JSON.parse(nr):(q("Failed to decode base64 JWT payload"),null)}catch(nr){return q("Caught error parsing JWT payload as JSON",null==nr?void 0:nr.toString()),null}}function Me(Le,ce){return We.apply(this,arguments)}function We(){return(We=(0,t.Z)(function*(Le,ce,pe=!1){if(pe)return ce;try{return yield ce}catch(ze){throw ze instanceof l.ZR&&Re(ze)&&Le.auth.currentUser===Le&&(yield Le.auth.signOut()),ze}})).apply(this,arguments)}function Re({code:Le}){return"auth/user-disabled"===Le||"auth/user-token-expired"===Le}class pt{constructor(ce){this.user=ce,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){!this.isRunning||(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(ce){var pe;if(ce){const ze=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),ze}{this.errorBackoff=3e4;const nr=(null!==(pe=this.user.stsTokenManager.expirationTime)&&void 0!==pe?pe:0)-Date.now()-3e5;return Math.max(0,nr)}}schedule(ce=!1){var pe=this;if(!this.isRunning)return;const ze=this.getInterval(ce);this.timerId=setTimeout((0,t.Z)(function*(){yield pe.iteration()}),ze)}iteration(){var ce=this;return(0,t.Z)(function*(){try{yield ce.user.getIdToken(!0)}catch(pe){return void("auth/network-request-failed"===(null==pe?void 0:pe.code)&&ce.schedule(!0))}ce.schedule()})()}}class Zt{constructor(ce,pe){this.createdAt=ce,this.lastLoginAt=pe,this._initializeTime()}_initializeTime(){this.lastSignInTime=Dt(this.lastLoginAt),this.creationTime=Dt(this.createdAt)}_copy(ce){this.createdAt=ce.createdAt,this.lastLoginAt=ce.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}function cr(Le){return wt.apply(this,arguments)}function wt(){return(wt=(0,t.Z)(function*(Le){var ce;const pe=Le.auth,ze=yield Le.getIdToken(),nr=yield Me(Le,rt(pe,{idToken:ze}));oe(null==nr?void 0:nr.users.length,pe,"internal-error");const Ir=nr.users[0];Le._notifyReloadListener(Ir);const an=(null===(ce=Ir.providerUserInfo)||void 0===ce?void 0:ce.length)?Cr(Ir.providerUserInfo):[],wn=hr(Le.providerData,an),Mi=!!Le.isAnonymous&&!(Le.email&&Ir.passwordHash||(null==wn?void 0:wn.length)),Ti={uid:Ir.localId,displayName:Ir.displayName||null,photoURL:Ir.photoUrl||null,email:Ir.email||null,emailVerified:Ir.emailVerified||!1,phoneNumber:Ir.phoneNumber||null,tenantId:Ir.tenantId||null,providerData:wn,metadata:new Zt(Ir.createdAt,Ir.lastLoginAt),isAnonymous:Mi};Object.assign(Le,Ti)})).apply(this,arguments)}function Ut(){return(Ut=(0,t.Z)(function*(Le){const ce=(0,l.m9)(Le);yield cr(ce),yield ce.auth._persistUserIfCurrent(ce),ce.auth._notifyListenersIfCurrent(ce)})).apply(this,arguments)}function hr(Le,ce){return[...Le.filter(ze=>!ce.some(nr=>nr.providerId===ze.providerId)),...ce]}function Cr(Le){return Le.map(ce=>{var{providerId:pe}=ce,ze=(0,d._T)(ce,["providerId"]);return{providerId:pe,uid:ze.rawId||"",displayName:ze.displayName||null,email:ze.email||null,phoneNumber:ze.phoneNumber||null,photoURL:ze.photoUrl||null}})}function Pt(){return(Pt=(0,t.Z)(function*(Le,ce){const pe=yield Be(Le,{},(0,t.Z)(function*(){const ze=(0,l.xO)({grant_type:"refresh_token",refresh_token:ce}).slice(1),{tokenApiHost:nr,apiKey:Ir}=Le.config,an=be(Le,nr,"/v1/token",`key=${Ir}`),wn=yield Le._getAdditionalHeaders();return wn["Content-Type"]="application/x-www-form-urlencoded",ye.fetch()(an,{method:"POST",headers:wn,body:ze})}));return{accessToken:pe.access_token,expiresIn:pe.expires_in,refreshToken:pe.refresh_token}})).apply(this,arguments)}class He{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(ce){oe(ce.idToken,"internal-error"),oe(typeof ce.idToken<"u","internal-error"),oe(typeof ce.refreshToken<"u","internal-error");const pe="expiresIn"in ce&&typeof ce.expiresIn<"u"?Number(ce.expiresIn):function ge(Le){const ce=X(Le);return oe(ce,"internal-error"),oe(typeof ce.exp<"u","internal-error"),oe(typeof ce.iat<"u","internal-error"),Number(ce.exp)-Number(ce.iat)}(ce.idToken);this.updateTokensAndExpiration(ce.idToken,ce.refreshToken,pe)}getToken(ce,pe=!1){var ze=this;return(0,t.Z)(function*(){return oe(!ze.accessToken||ze.refreshToken,ce,"user-token-expired"),pe||!ze.accessToken||ze.isExpired?ze.refreshToken?(yield ze.refresh(ce,ze.refreshToken),ze.accessToken):null:ze.accessToken})()}clearRefreshToken(){this.refreshToken=null}refresh(ce,pe){var ze=this;return(0,t.Z)(function*(){const{accessToken:nr,refreshToken:Ir,expiresIn:an}=yield function Ue(Le,ce){return Pt.apply(this,arguments)}(ce,pe);ze.updateTokensAndExpiration(nr,Ir,Number(an))})()}updateTokensAndExpiration(ce,pe,ze){this.refreshToken=pe||null,this.accessToken=ce||null,this.expirationTime=Date.now()+1e3*ze}static fromJSON(ce,pe){const{refreshToken:ze,accessToken:nr,expirationTime:Ir}=pe,an=new He;return ze&&(oe("string"==typeof ze,"internal-error",{appName:ce}),an.refreshToken=ze),nr&&(oe("string"==typeof nr,"internal-error",{appName:ce}),an.accessToken=nr),Ir&&(oe("number"==typeof Ir,"internal-error",{appName:ce}),an.expirationTime=Ir),an}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(ce){this.accessToken=ce.accessToken,this.refreshToken=ce.refreshToken,this.expirationTime=ce.expirationTime}_clone(){return Object.assign(new He,this.toJSON())}_performRefresh(){return B("not implemented")}}function tt(Le,ce){oe("string"==typeof Le||typeof Le>"u","internal-error",{appName:ce})}class Ke{constructor(ce){var{uid:pe,auth:ze,stsTokenManager:nr}=ce,Ir=(0,d._T)(ce,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new pt(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=pe,this.auth=ze,this.stsTokenManager=nr,this.accessToken=nr.accessToken,this.displayName=Ir.displayName||null,this.email=Ir.email||null,this.emailVerified=Ir.emailVerified||!1,this.phoneNumber=Ir.phoneNumber||null,this.photoURL=Ir.photoURL||null,this.isAnonymous=Ir.isAnonymous||!1,this.tenantId=Ir.tenantId||null,this.providerData=Ir.providerData?[...Ir.providerData]:[],this.metadata=new Zt(Ir.createdAt||void 0,Ir.lastLoginAt||void 0)}getIdToken(ce){var pe=this;return(0,t.Z)(function*(){const ze=yield Me(pe,pe.stsTokenManager.getToken(pe.auth,ce));return oe(ze,pe.auth,"internal-error"),pe.accessToken!==ze&&(pe.accessToken=ze,yield pe.auth._persistUserIfCurrent(pe),pe.auth._notifyListenersIfCurrent(pe)),ze})()}getIdTokenResult(ce){return function nt(Le){return Yt.apply(this,arguments)}(this,ce)}reload(){return function gt(Le){return Ut.apply(this,arguments)}(this)}_assign(ce){this!==ce&&(oe(this.uid===ce.uid,this.auth,"internal-error"),this.displayName=ce.displayName,this.photoURL=ce.photoURL,this.email=ce.email,this.emailVerified=ce.emailVerified,this.phoneNumber=ce.phoneNumber,this.isAnonymous=ce.isAnonymous,this.tenantId=ce.tenantId,this.providerData=ce.providerData.map(pe=>Object.assign({},pe)),this.metadata._copy(ce.metadata),this.stsTokenManager._assign(ce.stsTokenManager))}_clone(ce){const pe=new Ke(Object.assign(Object.assign({},this),{auth:ce,stsTokenManager:this.stsTokenManager._clone()}));return pe.metadata._copy(this.metadata),pe}_onReload(ce){oe(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=ce,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(ce){this.reloadListener?this.reloadListener(ce):this.reloadUserInfo=ce}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}_updateTokensIfNecessary(ce,pe=!1){var ze=this;return(0,t.Z)(function*(){let nr=!1;ce.idToken&&ce.idToken!==ze.stsTokenManager.accessToken&&(ze.stsTokenManager.updateFromServerResponse(ce),nr=!0),pe&&(yield cr(ze)),yield ze.auth._persistUserIfCurrent(ze),nr&&ze.auth._notifyListenersIfCurrent(ze)})()}delete(){var ce=this;return(0,t.Z)(function*(){const pe=yield ce.getIdToken();return yield Me(ce,function ft(Le,ce){return Ge.apply(this,arguments)}(ce.auth,{idToken:pe})),ce.stsTokenManager.clearRefreshToken(),ce.auth.signOut()})()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(ce=>Object.assign({},ce)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(ce,pe){var ze,nr,Ir,an,wn,Jn,fi,Mi;const Ti=null!==(ze=pe.displayName)&&void 0!==ze?ze:void 0,Sa=null!==(nr=pe.email)&&void 0!==nr?nr:void 0,Co=null!==(Ir=pe.phoneNumber)&&void 0!==Ir?Ir:void 0,ec=null!==(an=pe.photoURL)&&void 0!==an?an:void 0,Qs=null!==(wn=pe.tenantId)&&void 0!==wn?wn:void 0,bd=null!==(Jn=pe._redirectEventId)&&void 0!==Jn?Jn:void 0,Sd=null!==(fi=pe.createdAt)&&void 0!==fi?fi:void 0,Td=null!==(Mi=pe.lastLoginAt)&&void 0!==Mi?Mi:void 0,{uid:bo,emailVerified:cf,isAnonymous:bc,providerData:Yc,stsTokenManager:jc}=pe;oe(bo&&jc,ce,"internal-error");const Gc=He.fromJSON(this.name,jc);oe("string"==typeof bo,ce,"internal-error"),tt(Ti,ce.name),tt(Sa,ce.name),oe("boolean"==typeof cf,ce,"internal-error"),oe("boolean"==typeof bc,ce,"internal-error"),tt(Co,ce.name),tt(ec,ce.name),tt(Qs,ce.name),tt(bd,ce.name),tt(Sd,ce.name),tt(Td,ce.name);const ol=new Ke({uid:bo,auth:ce,email:Sa,emailVerified:cf,displayName:Ti,isAnonymous:bc,photoURL:ec,phoneNumber:Co,tenantId:Qs,stsTokenManager:Gc,createdAt:Sd,lastLoginAt:Td});return Yc&&Array.isArray(Yc)&&(ol.providerData=Yc.map(df=>Object.assign({},df))),bd&&(ol._redirectEventId=bd),ol}static _fromIdTokenResponse(ce,pe,ze=!1){return(0,t.Z)(function*(){const nr=new He;nr.updateFromServerResponse(pe);const Ir=new Ke({uid:pe.localId,auth:ce,stsTokenManager:nr,isAnonymous:ze});return yield cr(Ir),Ir})()}}const xe=(()=>{class Le{constructor(){this.type="NONE",this.storage={}}_isAvailable(){return(0,t.Z)(function*(){return!0})()}_set(pe,ze){var nr=this;return(0,t.Z)(function*(){nr.storage[pe]=ze})()}_get(pe){var ze=this;return(0,t.Z)(function*(){const nr=ze.storage[pe];return void 0===nr?null:nr})()}_remove(pe){var ze=this;return(0,t.Z)(function*(){delete ze.storage[pe]})()}_addListener(pe,ze){}_removeListener(pe,ze){}}return Le.type="NONE",Le})();function Fe(Le,ce,pe){return`firebase:${Le}:${ce}:${pe}`}class lt{constructor(ce,pe,ze){this.persistence=ce,this.auth=pe,this.userKey=ze;const{config:nr,name:Ir}=this.auth;this.fullUserKey=Fe(this.userKey,nr.apiKey,Ir),this.fullPersistenceKey=Fe("persistence",nr.apiKey,Ir),this.boundEventHandler=pe._onStorageEvent.bind(pe),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(ce){return this.persistence._set(this.fullUserKey,ce.toJSON())}getCurrentUser(){var ce=this;return(0,t.Z)(function*(){const pe=yield ce.persistence._get(ce.fullUserKey);return pe?Ke._fromJSON(ce.auth,pe):null})()}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}setPersistence(ce){var pe=this;return(0,t.Z)(function*(){if(pe.persistence===ce)return;const ze=yield pe.getCurrentUser();return yield pe.removeCurrentUser(),pe.persistence=ce,ze?pe.setCurrentUser(ze):void 0})()}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static create(ce,pe,ze="authUser"){return(0,t.Z)(function*(){if(!pe.length)return new lt(w(xe),ce,ze);const nr=(yield Promise.all(pe.map(function(){var fi=(0,t.Z)(function*(Mi){if(yield Mi._isAvailable())return Mi});return function(Mi){return fi.apply(this,arguments)}}()))).filter(fi=>fi);let Ir=nr[0]||w(xe);const an=Fe(ze,ce.config.apiKey,ce.name);let wn=null;for(const fi of pe)try{const Mi=yield fi._get(an);if(Mi){const Ti=Ke._fromJSON(ce,Mi);fi!==Ir&&(wn=Ti),Ir=fi;break}}catch{}const Jn=nr.filter(fi=>fi._shouldAllowMigration);return Ir._shouldAllowMigration&&Jn.length?(Ir=Jn[0],wn&&(yield Ir._set(an,wn.toJSON())),yield Promise.all(pe.map(function(){var fi=(0,t.Z)(function*(Mi){if(Mi!==Ir)try{yield Mi._remove(an)}catch{}});return function(Mi){return fi.apply(this,arguments)}}())),new lt(Ir,ce,ze)):new lt(Ir,ce,ze)})()}}function St(Le){const ce=Le.toLowerCase();if(ce.includes("opera/")||ce.includes("opr/")||ce.includes("opios/"))return"Opera";if(vt(ce))return"IEMobile";if(ce.includes("msie")||ce.includes("trident/"))return"IE";if(ce.includes("edge/"))return"Edge";if(qe(ce))return"Firefox";if(ce.includes("silk/"))return"Silk";if(Vr(ce))return"Blackberry";if(Sr(ce))return"Webos";if(ke(ce))return"Safari";if((ce.includes("chrome/")||ct(ce))&&!ce.includes("edge/"))return"Chrome";if($t(ce))return"Android";{const ze=Le.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);if(2===(null==ze?void 0:ze.length))return ze[1]}return"Other"}function qe(Le=(0,l.z$)()){return/firefox\//i.test(Le)}function ke(Le=(0,l.z$)()){const ce=Le.toLowerCase();return ce.includes("safari/")&&!ce.includes("chrome/")&&!ce.includes("crios/")&&!ce.includes("android")}function ct(Le=(0,l.z$)()){return/crios\//i.test(Le)}function vt(Le=(0,l.z$)()){return/iemobile/i.test(Le)}function $t(Le=(0,l.z$)()){return/android/i.test(Le)}function Vr(Le=(0,l.z$)()){return/blackberry/i.test(Le)}function Sr(Le=(0,l.z$)()){return/webos/i.test(Le)}function Ar(Le=(0,l.z$)()){return/iphone|ipad|ipod/i.test(Le)||/macintosh/i.test(Le)&&/mobile/i.test(Le)}function le(Le=(0,l.z$)()){return Ar(Le)||$t(Le)||Sr(Le)||Vr(Le)||/windows phone/i.test(Le)||vt(Le)}function Ie(Le,ce=[]){let pe;switch(Le){case"Browser":pe=St((0,l.z$)());break;case"Worker":pe=`${St((0,l.z$)())}-${Le}`;break;default:pe=Le}const ze=ce.length?ce.join(","):"FirebaseCore-web";return`${pe}/JsCore/${h.SDK_VERSION}/${ze}`}class Pe{constructor(ce){this.auth=ce,this.queue=[]}pushCallback(ce,pe){const ze=Ir=>new Promise((an,wn)=>{try{an(ce(Ir))}catch(Jn){wn(Jn)}});ze.onAbort=pe,this.queue.push(ze);const nr=this.queue.length-1;return()=>{this.queue[nr]=()=>Promise.resolve()}}runMiddleware(ce){var pe=this;return(0,t.Z)(function*(){if(pe.auth.currentUser===ce)return;const ze=[];try{for(const nr of pe.queue)yield nr(ce),nr.onAbort&&ze.push(nr.onAbort)}catch(nr){ze.reverse();for(const Ir of ze)try{Ir()}catch{}throw pe.auth._errorFactory.create("login-blocked",{originalMessage:null==nr?void 0:nr.message})}})()}}class Oe{constructor(ce,pe,ze){this.app=ce,this.heartbeatServiceProvider=pe,this.config=ze,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new Xe(this),this.idTokenSubscription=new Xe(this),this.beforeStateQueue=new Pe(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=V,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=ce.name,this.clientVersion=ze.sdkClientVersion}_initializeWithPersistence(ce,pe){var ze=this;return pe&&(this._popupRedirectResolver=w(pe)),this._initializationPromise=this.queue((0,t.Z)(function*(){var nr,Ir;if(!ze._deleted&&(ze.persistenceManager=yield lt.create(ze,ce),!ze._deleted)){if(null===(nr=ze._popupRedirectResolver)||void 0===nr?void 0:nr._shouldInitProactively)try{yield ze._popupRedirectResolver._initialize(ze)}catch{}yield ze.initializeCurrentUser(pe),ze.lastNotifiedUid=(null===(Ir=ze.currentUser)||void 0===Ir?void 0:Ir.uid)||null,!ze._deleted&&(ze._isInitialized=!0)}})),this._initializationPromise}_onStorageEvent(){var ce=this;return(0,t.Z)(function*(){if(ce._deleted)return;const pe=yield ce.assertedPersistence.getCurrentUser();if(ce.currentUser||pe){if(ce.currentUser&&pe&&ce.currentUser.uid===pe.uid)return ce._currentUser._assign(pe),void(yield ce.currentUser.getIdToken());yield ce._updateCurrentUser(pe,!0)}})()}initializeCurrentUser(ce){var pe=this;return(0,t.Z)(function*(){var ze;const nr=yield pe.assertedPersistence.getCurrentUser();let Ir=nr,an=!1;if(ce&&pe.config.authDomain){yield pe.getOrInitRedirectPersistenceManager();const wn=null===(ze=pe.redirectUser)||void 0===ze?void 0:ze._redirectEventId,Jn=null==Ir?void 0:Ir._redirectEventId,fi=yield pe.tryRedirectSignIn(ce);(!wn||wn===Jn)&&(null==fi?void 0:fi.user)&&(Ir=fi.user,an=!0)}if(!Ir)return pe.directlySetCurrentUser(null);if(!Ir._redirectEventId){if(an)try{yield pe.beforeStateQueue.runMiddleware(Ir)}catch(wn){Ir=nr,pe._popupRedirectResolver._overrideRedirectResult(pe,()=>Promise.reject(wn))}return Ir?pe.reloadAndSetCurrentUserOrClear(Ir):pe.directlySetCurrentUser(null)}return oe(pe._popupRedirectResolver,pe,"argument-error"),yield pe.getOrInitRedirectPersistenceManager(),pe.redirectUser&&pe.redirectUser._redirectEventId===Ir._redirectEventId?pe.directlySetCurrentUser(Ir):pe.reloadAndSetCurrentUserOrClear(Ir)})()}tryRedirectSignIn(ce){var pe=this;return(0,t.Z)(function*(){let ze=null;try{ze=yield pe._popupRedirectResolver._completeRedirectFn(pe,ce,!0)}catch{yield pe._setRedirectUser(null)}return ze})()}reloadAndSetCurrentUserOrClear(ce){var pe=this;return(0,t.Z)(function*(){try{yield cr(ce)}catch(ze){if("auth/network-request-failed"!==(null==ze?void 0:ze.code))return pe.directlySetCurrentUser(null)}return pe.directlySetCurrentUser(ce)})()}useDeviceLanguage(){this.languageCode=function W(){if(typeof navigator>"u")return null;const Le=navigator;return Le.languages&&Le.languages[0]||Le.language||null}()}_delete(){var ce=this;return(0,t.Z)(function*(){ce._deleted=!0})()}updateCurrentUser(ce){var pe=this;return(0,t.Z)(function*(){const ze=ce?(0,l.m9)(ce):null;return ze&&oe(ze.auth.config.apiKey===pe.config.apiKey,pe,"invalid-user-token"),pe._updateCurrentUser(ze&&ze._clone(pe))})()}_updateCurrentUser(ce,pe=!1){var ze=this;return(0,t.Z)(function*(){if(!ze._deleted)return ce&&oe(ze.tenantId===ce.tenantId,ze,"tenant-id-mismatch"),pe||(yield ze.beforeStateQueue.runMiddleware(ce)),ze.queue((0,t.Z)(function*(){yield ze.directlySetCurrentUser(ce),ze.notifyAuthListeners()}))})()}signOut(){var ce=this;return(0,t.Z)(function*(){return yield ce.beforeStateQueue.runMiddleware(null),(ce.redirectPersistenceManager||ce._popupRedirectResolver)&&(yield ce._setRedirectUser(null)),ce._updateCurrentUser(null,!0)})()}setPersistence(ce){var pe=this;return this.queue((0,t.Z)(function*(){yield pe.assertedPersistence.setPersistence(w(ce))}))}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(ce){this._errorFactory=new l.LL("auth","Firebase",ce())}onAuthStateChanged(ce,pe,ze){return this.registerStateListener(this.authStateSubscription,ce,pe,ze)}beforeAuthStateChanged(ce,pe){return this.beforeStateQueue.pushCallback(ce,pe)}onIdTokenChanged(ce,pe,ze){return this.registerStateListener(this.idTokenSubscription,ce,pe,ze)}toJSON(){var ce;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(ce=this._currentUser)||void 0===ce?void 0:ce.toJSON()}}_setRedirectUser(ce,pe){var ze=this;return(0,t.Z)(function*(){const nr=yield ze.getOrInitRedirectPersistenceManager(pe);return null===ce?nr.removeCurrentUser():nr.setCurrentUser(ce)})()}getOrInitRedirectPersistenceManager(ce){var pe=this;return(0,t.Z)(function*(){if(!pe.redirectPersistenceManager){const ze=ce&&w(ce)||pe._popupRedirectResolver;oe(ze,pe,"argument-error"),pe.redirectPersistenceManager=yield lt.create(pe,[w(ze._redirectPersistence)],"redirectUser"),pe.redirectUser=yield pe.redirectPersistenceManager.getCurrentUser()}return pe.redirectPersistenceManager})()}_redirectUserForId(ce){var pe=this;return(0,t.Z)(function*(){var ze,nr;return pe._isInitialized&&(yield pe.queue((0,t.Z)(function*(){}))),(null===(ze=pe._currentUser)||void 0===ze?void 0:ze._redirectEventId)===ce?pe._currentUser:(null===(nr=pe.redirectUser)||void 0===nr?void 0:nr._redirectEventId)===ce?pe.redirectUser:null})()}_persistUserIfCurrent(ce){var pe=this;return(0,t.Z)(function*(){if(ce===pe.currentUser)return pe.queue((0,t.Z)(function*(){return pe.directlySetCurrentUser(ce)}))})()}_notifyListenersIfCurrent(ce){ce===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var ce,pe;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const ze=null!==(pe=null===(ce=this.currentUser)||void 0===ce?void 0:ce.uid)&&void 0!==pe?pe:null;this.lastNotifiedUid!==ze&&(this.lastNotifiedUid=ze,this.authStateSubscription.next(this.currentUser))}registerStateListener(ce,pe,ze,nr){if(this._deleted)return()=>{};const Ir="function"==typeof pe?pe:pe.next.bind(pe),an=this._isInitialized?Promise.resolve():this._initializationPromise;return oe(an,this,"internal-error"),an.then(()=>Ir(this.currentUser)),"function"==typeof pe?ce.addObserver(pe,ze,nr):ce.addObserver(pe)}directlySetCurrentUser(ce){var pe=this;return(0,t.Z)(function*(){pe.currentUser&&pe.currentUser!==ce&&pe._currentUser._stopProactiveRefresh(),ce&&pe.isProactiveRefreshEnabled&&ce._startProactiveRefresh(),pe.currentUser=ce,ce?yield pe.assertedPersistence.setCurrentUser(ce):yield pe.assertedPersistence.removeCurrentUser()})()}queue(ce){return this.operations=this.operations.then(ce,ce),this.operations}get assertedPersistence(){return oe(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(ce){!ce||this.frameworks.includes(ce)||(this.frameworks.push(ce),this.frameworks.sort(),this.clientVersion=Ie(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}_getAdditionalHeaders(){var ce=this;return(0,t.Z)(function*(){var pe;const ze={"X-Client-Version":ce.clientVersion};ce.app.options.appId&&(ze["X-Firebase-gmpid"]=ce.app.options.appId);const nr=yield null===(pe=ce.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===pe?void 0:pe.getHeartbeatsHeader();return nr&&(ze["X-Firebase-Client"]=nr),ze})()}}function Se(Le){return(0,l.m9)(Le)}class Xe{constructor(ce){this.auth=ce,this.observer=null,this.addObserver=(0,l.ne)(pe=>this.observer=pe)}get next(){return oe(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}function zt(Le){const ce=Le.indexOf(":");return ce<0?"":Le.substr(0,ce+1)}function Br(Le){if(!Le)return null;const ce=Number(Le);return isNaN(ce)?null:ce}class tr{constructor(ce,pe){this.providerId=ce,this.signInMethod=pe}toJSON(){return B("not implemented")}_getIdTokenResponse(ce){return B("not implemented")}_linkToIdToken(ce,pe){return B("not implemented")}_getReauthenticationResolver(ce){return B("not implemented")}}function Rr(Le,ce){return Ur.apply(this,arguments)}function Ur(){return(Ur=(0,t.Z)(function*(Le,ce){return Ze(Le,"POST","/v1/accounts:resetPassword",At(Le,ce))})).apply(this,arguments)}function Nr(Le,ce){return zr.apply(this,arguments)}function zr(){return(zr=(0,t.Z)(function*(Le,ce){return Ze(Le,"POST","/v1/accounts:update",ce)})).apply(this,arguments)}function hn(Le,ce){return _n.apply(this,arguments)}function _n(){return(_n=(0,t.Z)(function*(Le,ce){return Ze(Le,"POST","/v1/accounts:update",At(Le,ce))})).apply(this,arguments)}function sr(){return(sr=(0,t.Z)(function*(Le,ce){return _e(Le,"POST","/v1/accounts:signInWithPassword",At(Le,ce))})).apply(this,arguments)}function fr(Le,ce){return Kt.apply(this,arguments)}function Kt(){return(Kt=(0,t.Z)(function*(Le,ce){return Ze(Le,"POST","/v1/accounts:sendOobCode",At(Le,ce))})).apply(this,arguments)}function Qr(Le,ce){return we.apply(this,arguments)}function we(){return(we=(0,t.Z)(function*(Le,ce){return fr(Le,ce)})).apply(this,arguments)}function De(Le,ce){return ht.apply(this,arguments)}function ht(){return(ht=(0,t.Z)(function*(Le,ce){return fr(Le,ce)})).apply(this,arguments)}function Vt(Le,ce){return yt.apply(this,arguments)}function yt(){return(yt=(0,t.Z)(function*(Le,ce){return fr(Le,ce)})).apply(this,arguments)}function gr(Le,ce){return ur.apply(this,arguments)}function ur(){return(ur=(0,t.Z)(function*(Le,ce){return fr(Le,ce)})).apply(this,arguments)}function fn(){return(fn=(0,t.Z)(function*(Le,ce){return _e(Le,"POST","/v1/accounts:signInWithEmailLink",At(Le,ce))})).apply(this,arguments)}function Et(){return(Et=(0,t.Z)(function*(Le,ce){return _e(Le,"POST","/v1/accounts:signInWithEmailLink",At(Le,ce))})).apply(this,arguments)}class Ae extends tr{constructor(ce,pe,ze,nr=null){super("password",ze),this._email=ce,this._password=pe,this._tenantId=nr}static _fromEmailAndPassword(ce,pe){return new Ae(ce,pe,"password")}static _fromEmailAndCode(ce,pe,ze=null){return new Ae(ce,pe,"emailLink",ze)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(ce){const pe="string"==typeof ce?JSON.parse(ce):ce;if((null==pe?void 0:pe.email)&&(null==pe?void 0:pe.password)){if("password"===pe.signInMethod)return this._fromEmailAndPassword(pe.email,pe.password);if("emailLink"===pe.signInMethod)return this._fromEmailAndCode(pe.email,pe.password,pe.tenantId)}return null}_getIdTokenResponse(ce){var pe=this;return(0,t.Z)(function*(){switch(pe.signInMethod){case"password":return function Tn(Le,ce){return sr.apply(this,arguments)}(ce,{returnSecureToken:!0,email:pe._email,password:pe._password});case"emailLink":return function Zr(Le,ce){return fn.apply(this,arguments)}(ce,{email:pe._email,oobCode:pe._password});default:J(ce,"internal-error")}})()}_linkToIdToken(ce,pe){var ze=this;return(0,t.Z)(function*(){switch(ze.signInMethod){case"password":return Nr(ce,{idToken:pe,returnSecureToken:!0,email:ze._email,password:ze._password});case"emailLink":return function un(Le,ce){return Et.apply(this,arguments)}(ce,{idToken:pe,email:ze._email,oobCode:ze._password});default:J(ce,"internal-error")}})()}_getReauthenticationResolver(ce){return this._getIdTokenResponse(ce)}}function it(Le,ce){return Bt.apply(this,arguments)}function Bt(){return(Bt=(0,t.Z)(function*(Le,ce){return _e(Le,"POST","/v1/accounts:signInWithIdp",At(Le,ce))})).apply(this,arguments)}class Or extends tr{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(ce){const pe=new Or(ce.providerId,ce.signInMethod);return ce.idToken||ce.accessToken?(ce.idToken&&(pe.idToken=ce.idToken),ce.accessToken&&(pe.accessToken=ce.accessToken),ce.nonce&&!ce.pendingToken&&(pe.nonce=ce.nonce),ce.pendingToken&&(pe.pendingToken=ce.pendingToken)):ce.oauthToken&&ce.oauthTokenSecret?(pe.accessToken=ce.oauthToken,pe.secret=ce.oauthTokenSecret):J("argument-error"),pe}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(ce){const pe="string"==typeof ce?JSON.parse(ce):ce,{providerId:ze,signInMethod:nr}=pe,Ir=(0,d._T)(pe,["providerId","signInMethod"]);if(!ze||!nr)return null;const an=new Or(ze,nr);return an.idToken=Ir.idToken||void 0,an.accessToken=Ir.accessToken||void 0,an.secret=Ir.secret,an.nonce=Ir.nonce,an.pendingToken=Ir.pendingToken||null,an}_getIdTokenResponse(ce){return it(ce,this.buildRequest())}_linkToIdToken(ce,pe){const ze=this.buildRequest();return ze.idToken=pe,it(ce,ze)}_getReauthenticationResolver(ce){const pe=this.buildRequest();return pe.autoCreate=!1,it(ce,pe)}buildRequest(){const ce={requestUri:"http://localhost",returnSecureToken:!0};if(this.pendingToken)ce.pendingToken=this.pendingToken;else{const pe={};this.idToken&&(pe.id_token=this.idToken),this.accessToken&&(pe.access_token=this.accessToken),this.secret&&(pe.oauth_token_secret=this.secret),pe.providerId=this.providerId,this.nonce&&!this.pendingToken&&(pe.nonce=this.nonce),ce.postBody=(0,l.xO)(pe)}return ce}}function Wr(Le,ce){return sn.apply(this,arguments)}function sn(){return(sn=(0,t.Z)(function*(Le,ce){return Ze(Le,"POST","/v1/accounts:sendVerificationCode",At(Le,ce))})).apply(this,arguments)}function Sn(){return(Sn=(0,t.Z)(function*(Le,ce){return _e(Le,"POST","/v1/accounts:signInWithPhoneNumber",At(Le,ce))})).apply(this,arguments)}function Rn(){return(Rn=(0,t.Z)(function*(Le,ce){const pe=yield _e(Le,"POST","/v1/accounts:signInWithPhoneNumber",At(Le,ce));if(pe.temporaryProof)throw $e(Le,"account-exists-with-different-credential",pe);return pe})).apply(this,arguments)}const Kn={USER_NOT_FOUND:"user-not-found"};function li(){return(li=(0,t.Z)(function*(Le,ce){return _e(Le,"POST","/v1/accounts:signInWithPhoneNumber",At(Le,Object.assign(Object.assign({},ce),{operation:"REAUTH"})),Kn)})).apply(this,arguments)}class ci extends tr{constructor(ce){super("phone","phone"),this.params=ce}static _fromVerification(ce,pe){return new ci({verificationId:ce,verificationCode:pe})}static _fromTokenResponse(ce,pe){return new ci({phoneNumber:ce,temporaryProof:pe})}_getIdTokenResponse(ce){return function En(Le,ce){return Sn.apply(this,arguments)}(ce,this._makeVerificationRequest())}_linkToIdToken(ce,pe){return function yn(Le,ce){return Rn.apply(this,arguments)}(ce,Object.assign({idToken:pe},this._makeVerificationRequest()))}_getReauthenticationResolver(ce){return function vi(Le,ce){return li.apply(this,arguments)}(ce,this._makeVerificationRequest())}_makeVerificationRequest(){const{temporaryProof:ce,phoneNumber:pe,verificationId:ze,verificationCode:nr}=this.params;return ce&&pe?{temporaryProof:ce,phoneNumber:pe}:{sessionInfo:ze,code:nr}}toJSON(){const ce={providerId:this.providerId};return this.params.phoneNumber&&(ce.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(ce.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(ce.verificationCode=this.params.verificationCode),this.params.verificationId&&(ce.verificationId=this.params.verificationId),ce}static fromJSON(ce){"string"==typeof ce&&(ce=JSON.parse(ce));const{verificationId:pe,verificationCode:ze,phoneNumber:nr,temporaryProof:Ir}=ce;return ze||pe||nr||Ir?new ci({verificationId:pe,verificationCode:ze,phoneNumber:nr,temporaryProof:Ir}):null}}class yr{constructor(ce){var pe,ze,nr,Ir,an,wn;const Jn=(0,l.zd)((0,l.pd)(ce)),fi=null!==(pe=Jn.apiKey)&&void 0!==pe?pe:null,Mi=null!==(ze=Jn.oobCode)&&void 0!==ze?ze:null,Ti=function lr(Le){switch(Le){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}(null!==(nr=Jn.mode)&&void 0!==nr?nr:null);oe(fi&&Mi&&Ti,"argument-error"),this.apiKey=fi,this.operation=Ti,this.code=Mi,this.continueUrl=null!==(Ir=Jn.continueUrl)&&void 0!==Ir?Ir:null,this.languageCode=null!==(an=Jn.languageCode)&&void 0!==an?an:null,this.tenantId=null!==(wn=Jn.tenantId)&&void 0!==wn?wn:null}static parseLink(ce){const pe=function _r(Le){const ce=(0,l.zd)((0,l.pd)(Le)).link,pe=ce?(0,l.zd)((0,l.pd)(ce)).deep_link_id:null,ze=(0,l.zd)((0,l.pd)(Le)).deep_link_id;return(ze?(0,l.zd)((0,l.pd)(ze)).link:null)||ze||pe||ce||Le}(ce);try{return new yr(pe)}catch{return null}}}let dn=(()=>{class Le{constructor(){this.providerId=Le.PROVIDER_ID}static credential(pe,ze){return Ae._fromEmailAndPassword(pe,ze)}static credentialWithLink(pe,ze){const nr=yr.parseLink(ze);return oe(nr,"argument-error"),Ae._fromEmailAndCode(pe,nr.code,nr.tenantId)}}return Le.PROVIDER_ID="password",Le.EMAIL_PASSWORD_SIGN_IN_METHOD="password",Le.EMAIL_LINK_SIGN_IN_METHOD="emailLink",Le})();class bn{constructor(ce){this.providerId=ce,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(ce){this.defaultLanguageCode=ce}setCustomParameters(ce){return this.customParameters=ce,this}getCustomParameters(){return this.customParameters}}class Un extends bn{constructor(){super(...arguments),this.scopes=[]}addScope(ce){return this.scopes.includes(ce)||this.scopes.push(ce),this}getScopes(){return[...this.scopes]}}class Fn extends Un{static credentialFromJSON(ce){const pe="string"==typeof ce?JSON.parse(ce):ce;return oe("providerId"in pe&&"signInMethod"in pe,"argument-error"),Or._fromParams(pe)}credential(ce){return this._credential(Object.assign(Object.assign({},ce),{nonce:ce.rawNonce}))}_credential(ce){return oe(ce.idToken||ce.accessToken,"argument-error"),Or._fromParams(Object.assign(Object.assign({},ce),{providerId:this.providerId,signInMethod:this.providerId}))}static credentialFromResult(ce){return Fn.oauthCredentialFromTaggedObject(ce)}static credentialFromError(ce){return Fn.oauthCredentialFromTaggedObject(ce.customData||{})}static oauthCredentialFromTaggedObject({_tokenResponse:ce}){if(!ce)return null;const{oauthIdToken:pe,oauthAccessToken:ze,oauthTokenSecret:nr,pendingToken:Ir,nonce:an,providerId:wn}=ce;if(!ze&&!nr&&!pe&&!Ir||!wn)return null;try{return new Fn(wn)._credential({idToken:pe,accessToken:ze,nonce:an,pendingToken:Ir})}catch{return null}}}let Vn=(()=>{class Le extends Un{constructor(){super("facebook.com")}static credential(pe){return Or._fromParams({providerId:Le.PROVIDER_ID,signInMethod:Le.FACEBOOK_SIGN_IN_METHOD,accessToken:pe})}static credentialFromResult(pe){return Le.credentialFromTaggedObject(pe)}static credentialFromError(pe){return Le.credentialFromTaggedObject(pe.customData||{})}static credentialFromTaggedObject({_tokenResponse:pe}){if(!pe||!("oauthAccessToken"in pe)||!pe.oauthAccessToken)return null;try{return Le.credential(pe.oauthAccessToken)}catch{return null}}}return Le.FACEBOOK_SIGN_IN_METHOD="facebook.com",Le.PROVIDER_ID="facebook.com",Le})(),zn=(()=>{class Le extends Un{constructor(){super("google.com"),this.addScope("profile")}static credential(pe,ze){return Or._fromParams({providerId:Le.PROVIDER_ID,signInMethod:Le.GOOGLE_SIGN_IN_METHOD,idToken:pe,accessToken:ze})}static credentialFromResult(pe){return Le.credentialFromTaggedObject(pe)}static credentialFromError(pe){return Le.credentialFromTaggedObject(pe.customData||{})}static credentialFromTaggedObject({_tokenResponse:pe}){if(!pe)return null;const{oauthIdToken:ze,oauthAccessToken:nr}=pe;if(!ze&&!nr)return null;try{return Le.credential(ze,nr)}catch{return null}}}return Le.GOOGLE_SIGN_IN_METHOD="google.com",Le.PROVIDER_ID="google.com",Le})(),ai=(()=>{class Le extends Un{constructor(){super("github.com")}static credential(pe){return Or._fromParams({providerId:Le.PROVIDER_ID,signInMethod:Le.GITHUB_SIGN_IN_METHOD,accessToken:pe})}static credentialFromResult(pe){return Le.credentialFromTaggedObject(pe)}static credentialFromError(pe){return Le.credentialFromTaggedObject(pe.customData||{})}static credentialFromTaggedObject({_tokenResponse:pe}){if(!pe||!("oauthAccessToken"in pe)||!pe.oauthAccessToken)return null;try{return Le.credential(pe.oauthAccessToken)}catch{return null}}}return Le.GITHUB_SIGN_IN_METHOD="github.com",Le.PROVIDER_ID="github.com",Le})();class wi extends tr{constructor(ce,pe){super(ce,ce),this.pendingToken=pe}_getIdTokenResponse(ce){return it(ce,this.buildRequest())}_linkToIdToken(ce,pe){const ze=this.buildRequest();return ze.idToken=pe,it(ce,ze)}_getReauthenticationResolver(ce){const pe=this.buildRequest();return pe.autoCreate=!1,it(ce,pe)}toJSON(){return{signInMethod:this.signInMethod,providerId:this.providerId,pendingToken:this.pendingToken}}static fromJSON(ce){const pe="string"==typeof ce?JSON.parse(ce):ce,{providerId:ze,signInMethod:nr,pendingToken:Ir}=pe;return ze&&nr&&Ir&&ze===nr?new wi(ze,Ir):null}static _create(ce,pe){return new wi(ce,pe)}buildRequest(){return{requestUri:"http://localhost",returnSecureToken:!0,pendingToken:this.pendingToken}}}class $r extends bn{constructor(ce){oe(ce.startsWith("saml."),"argument-error"),super(ce)}static credentialFromResult(ce){return $r.samlCredentialFromTaggedObject(ce)}static credentialFromError(ce){return $r.samlCredentialFromTaggedObject(ce.customData||{})}static credentialFromJSON(ce){const pe=wi.fromJSON(ce);return oe(pe,"argument-error"),pe}static samlCredentialFromTaggedObject({_tokenResponse:ce}){if(!ce)return null;const{pendingToken:pe,providerId:ze}=ce;if(!pe||!ze)return null;try{return wi._create(ze,pe)}catch{return null}}}let Pn=(()=>{class Le extends Un{constructor(){super("twitter.com")}static credential(pe,ze){return Or._fromParams({providerId:Le.PROVIDER_ID,signInMethod:Le.TWITTER_SIGN_IN_METHOD,oauthToken:pe,oauthTokenSecret:ze})}static credentialFromResult(pe){return Le.credentialFromTaggedObject(pe)}static credentialFromError(pe){return Le.credentialFromTaggedObject(pe.customData||{})}static credentialFromTaggedObject({_tokenResponse:pe}){if(!pe)return null;const{oauthAccessToken:ze,oauthTokenSecret:nr}=pe;if(!ze||!nr)return null;try{return Le.credential(ze,nr)}catch{return null}}}return Le.TWITTER_SIGN_IN_METHOD="twitter.com",Le.PROVIDER_ID="twitter.com",Le})();function An(Le,ce){return Qn.apply(this,arguments)}function Qn(){return(Qn=(0,t.Z)(function*(Le,ce){return _e(Le,"POST","/v1/accounts:signUp",At(Le,ce))})).apply(this,arguments)}class yi{constructor(ce){this.user=ce.user,this.providerId=ce.providerId,this._tokenResponse=ce._tokenResponse,this.operationType=ce.operationType}static _fromIdTokenResponse(ce,pe,ze,nr=!1){return(0,t.Z)(function*(){const Ir=yield Ke._fromIdTokenResponse(ce,ze,nr),an=oi(ze);return new yi({user:Ir,providerId:an,_tokenResponse:ze,operationType:pe})})()}static _forOperation(ce,pe,ze){return(0,t.Z)(function*(){yield ce._updateTokensIfNecessary(ze,!0);const nr=oi(ze);return new yi({user:ce,providerId:nr,_tokenResponse:ze,operationType:pe})})()}}function oi(Le){return Le.providerId?Le.providerId:"phoneNumber"in Le?"phone":null}function Qi(){return(Qi=(0,t.Z)(function*(Le){var ce;const pe=Se(Le);if(yield pe._initializationPromise,null===(ce=pe.currentUser)||void 0===ce?void 0:ce.isAnonymous)return new yi({user:pe.currentUser,providerId:null,operationType:"signIn"});const ze=yield An(pe,{returnSecureToken:!0}),nr=yield yi._fromIdTokenResponse(pe,"signIn",ze,!0);return yield pe._updateCurrentUser(nr.user),nr})).apply(this,arguments)}class Di extends l.ZR{constructor(ce,pe,ze,nr){var Ir;super(pe.code,pe.message),this.operationType=ze,this.user=nr,Object.setPrototypeOf(this,Di.prototype),this.customData={appName:ce.name,tenantId:null!==(Ir=ce.tenantId)&&void 0!==Ir?Ir:void 0,_serverResponse:pe.customData._serverResponse,operationType:ze}}static _fromErrorAndOperation(ce,pe,ze,nr){return new Di(ce,pe,ze,nr)}}function ts(Le,ce,pe,ze){return("reauthenticate"===ce?pe._getReauthenticationResolver(Le):pe._getIdTokenResponse(Le)).catch(Ir=>{throw"auth/multi-factor-auth-required"===Ir.code?Di._fromErrorAndOperation(Le,Ir,ce,ze):Ir})}function Oi(Le){return new Set(Le.map(({providerId:ce})=>ce).filter(ce=>!!ce))}function Fi(){return(Fi=(0,t.Z)(function*(Le,ce){const pe=(0,l.m9)(Le);yield rs(!0,pe,ce);const{providerUserInfo:ze}=yield Ft(pe.auth,{idToken:yield pe.getIdToken(),deleteProvider:[ce]}),nr=Oi(ze||[]);return pe.providerData=pe.providerData.filter(Ir=>nr.has(Ir.providerId)),nr.has("phone")||(pe.phoneNumber=null),yield pe.auth._persistUserIfCurrent(pe),pe})).apply(this,arguments)}function Os(Le,ce){return ys.apply(this,arguments)}function ys(){return(ys=(0,t.Z)(function*(Le,ce,pe=!1){const ze=yield Me(Le,ce._linkToIdToken(Le.auth,yield Le.getIdToken()),pe);return yi._forOperation(Le,"link",ze)})).apply(this,arguments)}function rs(Le,ce,pe){return fa.apply(this,arguments)}function fa(){return(fa=(0,t.Z)(function*(Le,ce,pe){yield cr(ce);const nr=!1===Le?"provider-already-linked":"no-such-provider";oe(Oi(ce.providerData).has(pe)===Le,ce.auth,nr)})).apply(this,arguments)}function $s(Le,ce){return Zs.apply(this,arguments)}function Zs(){return(Zs=(0,t.Z)(function*(Le,ce,pe=!1){const{auth:ze}=Le,nr="reauthenticate";try{const Ir=yield Me(Le,ts(ze,nr,ce,Le),pe);oe(Ir.idToken,ze,"internal-error");const an=X(Ir.idToken);oe(an,ze,"internal-error");const{sub:wn}=an;return oe(Le.uid===wn,ze,"user-mismatch"),yi._forOperation(Le,nr,Ir)}catch(Ir){throw"auth/user-not-found"===(null==Ir?void 0:Ir.code)&&J(ze,"user-mismatch"),Ir}})).apply(this,arguments)}function ps(Le,ce){return Ta.apply(this,arguments)}function Ta(){return(Ta=(0,t.Z)(function*(Le,ce,pe=!1){const nr=yield ts(Le,"signIn",ce),Ir=yield yi._fromIdTokenResponse(Le,"signIn",nr);return pe||(yield Le._updateCurrentUser(Ir.user)),Ir})).apply(this,arguments)}function ka(Le,ce){return Xs.apply(this,arguments)}function Xs(){return(Xs=(0,t.Z)(function*(Le,ce){return ps(Se(Le),ce)})).apply(this,arguments)}function ks(Le,ce){return ia.apply(this,arguments)}function ia(){return(ia=(0,t.Z)(function*(Le,ce){const pe=(0,l.m9)(Le);return yield rs(!1,pe,ce.providerId),Os(pe,ce)})).apply(this,arguments)}function Qa(Le,ce){return Ea.apply(this,arguments)}function Ea(){return(Ea=(0,t.Z)(function*(Le,ce){return $s((0,l.m9)(Le),ce)})).apply(this,arguments)}function Ma(Le,ce){return qt.apply(this,arguments)}function qt(){return(qt=(0,t.Z)(function*(Le,ce){return _e(Le,"POST","/v1/accounts:signInWithCustomToken",At(Le,ce))})).apply(this,arguments)}function Mt(){return(Mt=(0,t.Z)(function*(Le,ce){const pe=Se(Le),ze=yield Ma(pe,{token:ce,returnSecureToken:!0}),nr=yield yi._fromIdTokenResponse(pe,"signIn",ze);return yield pe._updateCurrentUser(nr.user),nr})).apply(this,arguments)}class Mr{constructor(ce,pe){this.factorId=ce,this.uid=pe.mfaEnrollmentId,this.enrollmentTime=new Date(pe.enrolledAt).toUTCString(),this.displayName=pe.displayName}static _fromServerResponse(ce,pe){return"phoneInfo"in pe?Mn._fromServerResponse(ce,pe):"totpInfo"in pe?ui._fromServerResponse(ce,pe):J(ce,"internal-error")}}class Mn extends Mr{constructor(ce){super("phone",ce),this.phoneNumber=ce.phoneInfo}static _fromServerResponse(ce,pe){return new Mn(pe)}}class ui extends Mr{constructor(ce){super("totp",ce)}static _fromServerResponse(ce,pe){return new ui(pe)}}function ss(Le,ce,pe){var ze;oe((null===(ze=pe.url)||void 0===ze?void 0:ze.length)>0,Le,"invalid-continue-uri"),oe(typeof pe.dynamicLinkDomain>"u"||pe.dynamicLinkDomain.length>0,Le,"invalid-dynamic-link-domain"),ce.continueUrl=pe.url,ce.dynamicLinkDomain=pe.dynamicLinkDomain,ce.canHandleCodeInApp=pe.handleCodeInApp,pe.iOS&&(oe(pe.iOS.bundleId.length>0,Le,"missing-ios-bundle-id"),ce.iOSBundleId=pe.iOS.bundleId),pe.android&&(oe(pe.android.packageName.length>0,Le,"missing-android-pkg-name"),ce.androidInstallApp=pe.android.installApp,ce.androidMinimumVersionCode=pe.android.minimumVersion,ce.androidPackageName=pe.android.packageName)}function zs(){return(zs=(0,t.Z)(function*(Le,ce,pe){const ze=(0,l.m9)(Le),nr={requestType:"PASSWORD_RESET",email:ce};pe&&ss(ze,nr,pe),yield De(ze,nr)})).apply(this,arguments)}function sa(){return(sa=(0,t.Z)(function*(Le,ce,pe){yield Rr((0,l.m9)(Le),{oobCode:ce,newPassword:pe})})).apply(this,arguments)}function Hi(){return(Hi=(0,t.Z)(function*(Le,ce){yield hn((0,l.m9)(Le),{oobCode:ce})})).apply(this,arguments)}function Xa(Le,ce){return rr.apply(this,arguments)}function rr(){return(rr=(0,t.Z)(function*(Le,ce){const pe=(0,l.m9)(Le),ze=yield Rr(pe,{oobCode:ce}),nr=ze.requestType;switch(oe(nr,pe,"internal-error"),nr){case"EMAIL_SIGNIN":break;case"VERIFY_AND_CHANGE_EMAIL":oe(ze.newEmail,pe,"internal-error");break;case"REVERT_SECOND_FACTOR_ADDITION":oe(ze.mfaInfo,pe,"internal-error");default:oe(ze.email,pe,"internal-error")}let Ir=null;return ze.mfaInfo&&(Ir=Mr._fromServerResponse(Se(pe),ze.mfaInfo)),{data:{email:("VERIFY_AND_CHANGE_EMAIL"===ze.requestType?ze.newEmail:ze.email)||null,previousEmail:("VERIFY_AND_CHANGE_EMAIL"===ze.requestType?ze.email:ze.newEmail)||null,multiFactorInfo:Ir},operation:nr}})).apply(this,arguments)}function Qt(){return(Qt=(0,t.Z)(function*(Le,ce){const{data:pe}=yield Xa((0,l.m9)(Le),ce);return pe.email})).apply(this,arguments)}function On(){return(On=(0,t.Z)(function*(Le,ce,pe){const ze=Se(Le),nr=yield An(ze,{returnSecureToken:!0,email:ce,password:pe}),Ir=yield yi._fromIdTokenResponse(ze,"signIn",nr);return yield ze._updateCurrentUser(Ir.user),Ir})).apply(this,arguments)}function Cs(){return(Cs=(0,t.Z)(function*(Le,ce,pe){const ze=(0,l.m9)(Le),nr={requestType:"EMAIL_SIGNIN",email:ce};oe(pe.handleCodeInApp,ze,"argument-error"),pe&&ss(ze,nr,pe),yield Vt(ze,nr)})).apply(this,arguments)}function As(){return(As=(0,t.Z)(function*(Le,ce,pe){const ze=(0,l.m9)(Le),nr=dn.credentialWithLink(ce,pe||j());return oe(nr._tenantId===(ze.tenantId||null),ze,"tenant-id-mismatch"),ka(ze,nr)})).apply(this,arguments)}function ao(Le,ce){return pa.apply(this,arguments)}function pa(){return(pa=(0,t.Z)(function*(Le,ce){return Ze(Le,"POST","/v1/accounts:createAuthUri",At(Le,ce))})).apply(this,arguments)}function Fa(){return(Fa=(0,t.Z)(function*(Le,ce){const ze={identifier:ce,continueUri:$()?j():"http://localhost"},{signinMethods:nr}=yield ao((0,l.m9)(Le),ze);return nr||[]})).apply(this,arguments)}function So(){return(So=(0,t.Z)(function*(Le,ce){const pe=(0,l.m9)(Le),nr={requestType:"VERIFY_EMAIL",idToken:yield Le.getIdToken()};ce&&ss(pe.auth,nr,ce);const{email:Ir}=yield Qr(pe.auth,nr);Ir!==Le.email&&(yield Le.reload())})).apply(this,arguments)}function ea(){return(ea=(0,t.Z)(function*(Le,ce,pe){const ze=(0,l.m9)(Le),Ir={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:yield Le.getIdToken(),newEmail:ce};pe&&ss(ze.auth,Ir,pe);const{email:an}=yield gr(ze.auth,Ir);an!==Le.email&&(yield Le.reload())})).apply(this,arguments)}function Za(Le,ce){return To.apply(this,arguments)}function To(){return(To=(0,t.Z)(function*(Le,ce){return Ze(Le,"POST","/v1/accounts:update",ce)})).apply(this,arguments)}function to(){return(to=(0,t.Z)(function*(Le,{displayName:ce,photoURL:pe}){if(void 0===ce&&void 0===pe)return;const ze=(0,l.m9)(Le),Ir={idToken:yield ze.getIdToken(),displayName:ce,photoUrl:pe,returnSecureToken:!0},an=yield Me(ze,Za(ze.auth,Ir));ze.displayName=an.displayName||null,ze.photoURL=an.photoUrl||null;const wn=ze.providerData.find(({providerId:Jn})=>"password"===Jn);wn&&(wn.displayName=ze.displayName,wn.photoURL=ze.photoURL),yield ze._updateTokensIfNecessary(an)})).apply(this,arguments)}function oo(Le,ce,pe){return Mo.apply(this,arguments)}function Mo(){return(Mo=(0,t.Z)(function*(Le,ce,pe){const{auth:ze}=Le,Ir={idToken:yield Le.getIdToken(),returnSecureToken:!0};ce&&(Ir.email=ce),pe&&(Ir.password=pe);const an=yield Me(Le,Nr(ze,Ir));yield Le._updateTokensIfNecessary(an,!0)})).apply(this,arguments)}class za{constructor(ce,pe,ze={}){this.isNewUser=ce,this.providerId=pe,this.profile=ze}}class Ro extends za{constructor(ce,pe,ze,nr){super(ce,pe,ze),this.username=nr}}class mo extends za{constructor(ce,pe){super(ce,"facebook.com",pe)}}class zo extends Ro{constructor(ce,pe){super(ce,"github.com",pe,"string"==typeof(null==pe?void 0:pe.login)?null==pe?void 0:pe.login:null)}}class Ko extends za{constructor(ce,pe){super(ce,"google.com",pe)}}class ta extends Ro{constructor(ce,pe,ze){super(ce,"twitter.com",pe,ze)}}function wa(Le){const{user:ce,_tokenResponse:pe}=Le;return ce.isAnonymous&&!pe?{providerId:null,isNewUser:!1,profile:null}:function go(Le){var ce,pe;if(!Le)return null;const{providerId:ze}=Le,nr=Le.rawUserInfo?JSON.parse(Le.rawUserInfo):{},Ir=Le.isNewUser||"identitytoolkit#SignupNewUserResponse"===Le.kind;if(!ze&&(null==Le?void 0:Le.idToken)){const an=null===(pe=null===(ce=X(Le.idToken))||void 0===ce?void 0:ce.firebase)||void 0===pe?void 0:pe.sign_in_provider;if(an)return new za(Ir,"anonymous"!==an&&"custom"!==an?an:null)}if(!ze)return null;switch(ze){case"facebook.com":return new mo(Ir,nr);case"github.com":return new zo(Ir,nr);case"google.com":return new Ko(Ir,nr);case"twitter.com":return new ta(Ir,nr,Le.screenName||null);case"custom":case"anonymous":return new za(Ir,null);default:return new za(Ir,ze,nr)}}(pe)}class xa{constructor(ce,pe,ze){this.type=ce,this.credential=pe,this.auth=ze}static _fromIdtoken(ce,pe){return new xa("enroll",ce,pe)}static _fromMfaPendingCredential(ce){return new xa("signin",ce)}toJSON(){return{multiFactorSession:{["enroll"===this.type?"idToken":"pendingCredential"]:this.credential}}}static fromJSON(ce){var pe,ze;if(null==ce?void 0:ce.multiFactorSession){if(null===(pe=ce.multiFactorSession)||void 0===pe?void 0:pe.pendingCredential)return xa._fromMfaPendingCredential(ce.multiFactorSession.pendingCredential);if(null===(ze=ce.multiFactorSession)||void 0===ze?void 0:ze.idToken)return xa._fromIdtoken(ce.multiFactorSession.idToken)}return null}}class ma{constructor(ce,pe,ze){this.session=ce,this.hints=pe,this.signInResolver=ze}static _fromError(ce,pe){const ze=Se(ce),nr=pe.customData._serverResponse,Ir=(nr.mfaInfo||[]).map(wn=>Mr._fromServerResponse(ze,wn));oe(nr.mfaPendingCredential,ze,"internal-error");const an=xa._fromMfaPendingCredential(nr.mfaPendingCredential);return new ma(an,Ir,function(){var wn=(0,t.Z)(function*(Jn){const fi=yield Jn._process(ze,an);delete nr.mfaInfo,delete nr.mfaPendingCredential;const Mi=Object.assign(Object.assign({},nr),{idToken:fi.idToken,refreshToken:fi.refreshToken});switch(pe.operationType){case"signIn":const Ti=yield yi._fromIdTokenResponse(ze,pe.operationType,Mi);return yield ze._updateCurrentUser(Ti.user),Ti;case"reauthenticate":return oe(pe.user,ze,"internal-error"),yi._forOperation(pe.user,pe.operationType,Mi);default:J(ze,"internal-error")}});return function(Jn){return wn.apply(this,arguments)}}())}resolveSignIn(ce){var pe=this;return(0,t.Z)(function*(){return pe.signInResolver(ce)})()}}function Qo(Le,ce){return Ze(Le,"POST","/v2/accounts/mfaEnrollment:start",At(Le,ce))}class qr{constructor(ce){this.user=ce,this.enrolledFactors=[],ce._onReload(pe=>{pe.mfaInfo&&(this.enrolledFactors=pe.mfaInfo.map(ze=>Mr._fromServerResponse(ce.auth,ze)))})}static _fromUser(ce){return new qr(ce)}getSession(){var ce=this;return(0,t.Z)(function*(){return xa._fromIdtoken(yield ce.user.getIdToken(),ce.user.auth)})()}enroll(ce,pe){var ze=this;return(0,t.Z)(function*(){const nr=ce,Ir=yield ze.getSession(),an=yield Me(ze.user,nr._process(ze.user.auth,Ir,pe));return yield ze.user._updateTokensIfNecessary(an),ze.user.reload()})()}unenroll(ce){var pe=this;return(0,t.Z)(function*(){const ze="string"==typeof ce?ce:ce.uid,nr=yield pe.user.getIdToken();try{const Ir=yield Me(pe.user,function Er(Le,ce){return Ze(Le,"POST","/v2/accounts/mfaEnrollment:withdraw",At(Le,ce))}(pe.user.auth,{idToken:nr,mfaEnrollmentId:ze}));pe.enrolledFactors=pe.enrolledFactors.filter(({uid:an})=>an!==ze),yield pe.user._updateTokensIfNecessary(Ir),yield pe.user.reload()}catch(Ir){throw Ir}})()}}const Cn=new WeakMap,ei="__sak";class ns{constructor(ce,pe){this.storageRetriever=ce,this.type=pe}_isAvailable(){try{return this.storage?(this.storage.setItem(ei,"1"),this.storage.removeItem(ei),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(ce,pe){return this.storage.setItem(ce,JSON.stringify(pe)),Promise.resolve()}_get(ce){const pe=this.storage.getItem(ce);return Promise.resolve(pe?JSON.parse(pe):null)}_remove(ce){return this.storage.removeItem(ce),Promise.resolve()}get storage(){return this.storageRetriever()}}const qi=(()=>{class Le extends ns{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(pe,ze)=>this.onStorageEvent(pe,ze),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=function gs(){const Le=(0,l.z$)();return ke(Le)||Ar(Le)}()&&function Ce(){try{return!(!window||window===window.top)}catch{return!1}}(),this.fallbackToPolling=le(),this._shouldAllowMigration=!0}forAllChangedKeys(pe){for(const ze of Object.keys(this.listeners)){const nr=this.storage.getItem(ze),Ir=this.localCache[ze];nr!==Ir&&pe(ze,Ir,nr)}}onStorageEvent(pe,ze=!1){if(!pe.key)return void this.forAllChangedKeys((wn,Jn,fi)=>{this.notifyListeners(wn,fi)});const nr=pe.key;if(ze?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const wn=this.storage.getItem(nr);if(pe.newValue!==wn)null!==pe.newValue?this.storage.setItem(nr,pe.newValue):this.storage.removeItem(nr);else if(this.localCache[nr]===pe.newValue&&!ze)return}const Ir=()=>{const wn=this.storage.getItem(nr);!ze&&this.localCache[nr]===wn||this.notifyListeners(nr,wn)},an=this.storage.getItem(nr);!function Gt(){return(0,l.w1)()&&10===document.documentMode}()||an===pe.newValue||pe.newValue===pe.oldValue?Ir():setTimeout(Ir,10)}notifyListeners(pe,ze){this.localCache[pe]=ze;const nr=this.listeners[pe];if(nr)for(const Ir of Array.from(nr))Ir(ze&&JSON.parse(ze))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((pe,ze,nr)=>{this.onStorageEvent(new StorageEvent("storage",{key:pe,oldValue:ze,newValue:nr}),!0)})},1e3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(pe,ze){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[pe]||(this.listeners[pe]=new Set,this.localCache[pe]=this.storage.getItem(pe)),this.listeners[pe].add(ze)}_removeListener(pe,ze){this.listeners[pe]&&(this.listeners[pe].delete(ze),0===this.listeners[pe].size&&delete this.listeners[pe]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}_set(pe,ze){var nr=()=>super._set,Ir=this;return(0,t.Z)(function*(){yield nr().call(Ir,pe,ze),Ir.localCache[pe]=JSON.stringify(ze)})()}_get(pe){var ze=()=>super._get,nr=this;return(0,t.Z)(function*(){const Ir=yield ze().call(nr,pe);return nr.localCache[pe]=JSON.stringify(Ir),Ir})()}_remove(pe){var ze=()=>super._remove,nr=this;return(0,t.Z)(function*(){yield ze().call(nr,pe),delete nr.localCache[pe]})()}}return Le.type="LOCAL",Le})(),aa=(()=>{class Le extends ns{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(pe,ze){}_removeListener(pe,ze){}}return Le.type="SESSION",Le})();let Ia=(()=>{class Le{constructor(pe){this.eventTarget=pe,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(pe){const ze=this.receivers.find(Ir=>Ir.isListeningto(pe));if(ze)return ze;const nr=new Le(pe);return this.receivers.push(nr),nr}isListeningto(pe){return this.eventTarget===pe}handleEvent(pe){var ze=this;return(0,t.Z)(function*(){const nr=pe,{eventId:Ir,eventType:an,data:wn}=nr.data,Jn=ze.handlersMap[an];if(!(null==Jn?void 0:Jn.size))return;nr.ports[0].postMessage({status:"ack",eventId:Ir,eventType:an});const fi=Array.from(Jn).map(function(){var Ti=(0,t.Z)(function*(Sa){return Sa(nr.origin,wn)});return function(Sa){return Ti.apply(this,arguments)}}()),Mi=yield function Rs(Le){return Promise.all(Le.map(function(){var ce=(0,t.Z)(function*(pe){try{return{fulfilled:!0,value:yield pe}}catch(ze){return{fulfilled:!1,reason:ze}}});return function(pe){return ce.apply(this,arguments)}}()))}(fi);nr.ports[0].postMessage({status:"done",eventId:Ir,eventType:an,response:Mi})})()}_subscribe(pe,ze){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[pe]||(this.handlersMap[pe]=new Set),this.handlersMap[pe].add(ze)}_unsubscribe(pe,ze){this.handlersMap[pe]&&ze&&this.handlersMap[pe].delete(ze),(!ze||0===this.handlersMap[pe].size)&&delete this.handlersMap[pe],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}return Le.receivers=[],Le})();function ra(Le="",ce=10){let pe="";for(let ze=0;ze<ce;ze++)pe+=Math.floor(10*Math.random());return Le+pe}class no{constructor(ce){this.target=ce,this.handlers=new Set}removeMessageHandler(ce){ce.messageChannel&&(ce.messageChannel.port1.removeEventListener("message",ce.onMessage),ce.messageChannel.port1.close()),this.handlers.delete(ce)}_send(ce,pe,ze=50){var nr=this;return(0,t.Z)(function*(){const Ir=typeof MessageChannel<"u"?new MessageChannel:null;if(!Ir)throw new Error("connection_unavailable");let an,wn;return new Promise((Jn,fi)=>{const Mi=ra("",20);Ir.port1.start();const Ti=setTimeout(()=>{fi(new Error("unsupported_event"))},ze);wn={messageChannel:Ir,onMessage(Sa){const Co=Sa;if(Co.data.eventId===Mi)switch(Co.data.status){case"ack":clearTimeout(Ti),an=setTimeout(()=>{fi(new Error("timeout"))},3e3);break;case"done":clearTimeout(an),Jn(Co.data.response);break;default:clearTimeout(Ti),clearTimeout(an),fi(new Error("invalid_response"))}}},nr.handlers.add(wn),Ir.port1.addEventListener("message",wn.onMessage),nr.target.postMessage({eventType:ce,eventId:Mi,data:pe},[Ir.port2])}).finally(()=>{wn&&nr.removeMessageHandler(wn)})})()}}function bi(){return window}function cl(){return typeof bi().WorkerGlobalScope<"u"&&"function"==typeof bi().importScripts}function Ll(){return(Ll=(0,t.Z)(function*(){if(!(null==navigator?void 0:navigator.serviceWorker))return null;try{return(yield navigator.serviceWorker.ready).active}catch{return null}})).apply(this,arguments)}const et="firebaseLocalStorageDb",ir="firebaseLocalStorage",Pr="fbase_key";class jr{constructor(ce){this.request=ce}toPromise(){return new Promise((ce,pe)=>{this.request.addEventListener("success",()=>{ce(this.request.result)}),this.request.addEventListener("error",()=>{pe(this.request.error)})})}}function Xr(Le,ce){return Le.transaction([ir],ce?"readwrite":"readonly").objectStore(ir)}function si(){const Le=indexedDB.open(et,1);return new Promise((ce,pe)=>{Le.addEventListener("error",()=>{pe(Le.error)}),Le.addEventListener("upgradeneeded",()=>{const ze=Le.result;try{ze.createObjectStore(ir,{keyPath:Pr})}catch(nr){pe(nr)}}),Le.addEventListener("success",(0,t.Z)(function*(){const ze=Le.result;ze.objectStoreNames.contains(ir)?ce(ze):(ze.close(),yield function Ln(){const Le=indexedDB.deleteDatabase(et);return new jr(Le).toPromise()}(),ce(yield si()))}))})}function is(Le,ce,pe){return pi.apply(this,arguments)}function pi(){return(pi=(0,t.Z)(function*(Le,ce,pe){const ze=Xr(Le,!0).put({[Pr]:ce,value:pe});return new jr(ze).toPromise()})).apply(this,arguments)}function cs(){return(cs=(0,t.Z)(function*(Le,ce){const pe=Xr(Le,!1).get(ce),ze=yield new jr(pe).toPromise();return void 0===ze?null:ze.value})).apply(this,arguments)}function Wi(Le,ce){const pe=Xr(Le,!0).delete(ce);return new jr(pe).toPromise()}const xi=(()=>{class Le{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}_openDb(){var pe=this;return(0,t.Z)(function*(){return pe.db||(pe.db=yield si()),pe.db})()}_withRetries(pe){var ze=this;return(0,t.Z)(function*(){let nr=0;for(;;)try{const Ir=yield ze._openDb();return yield pe(Ir)}catch(Ir){if(nr++>3)throw Ir;ze.db&&(ze.db.close(),ze.db=void 0)}})()}initializeServiceWorkerMessaging(){var pe=this;return(0,t.Z)(function*(){return cl()?pe.initializeReceiver():pe.initializeSender()})()}initializeReceiver(){var pe=this;return(0,t.Z)(function*(){pe.receiver=Ia._getInstance(function ut(){return cl()?self:null}()),pe.receiver._subscribe("keyChanged",function(){var ze=(0,t.Z)(function*(nr,Ir){return{keyProcessed:(yield pe._poll()).includes(Ir.key)}});return function(nr,Ir){return ze.apply(this,arguments)}}()),pe.receiver._subscribe("ping",function(){var ze=(0,t.Z)(function*(nr,Ir){return["keyChanged"]});return function(nr,Ir){return ze.apply(this,arguments)}}())})()}initializeSender(){var pe=this;return(0,t.Z)(function*(){var ze,nr;if(pe.activeServiceWorker=yield function dl(){return Ll.apply(this,arguments)}(),!pe.activeServiceWorker)return;pe.sender=new no(pe.activeServiceWorker);const Ir=yield pe.sender._send("ping",{},800);!Ir||(null===(ze=Ir[0])||void 0===ze?void 0:ze.fulfilled)&&(null===(nr=Ir[0])||void 0===nr?void 0:nr.value.includes("keyChanged"))&&(pe.serviceWorkerReceiverAvailable=!0)})()}notifyServiceWorker(pe){var ze=this;return(0,t.Z)(function*(){if(ze.sender&&ze.activeServiceWorker&&function Tt(){var Le;return(null===(Le=null==navigator?void 0:navigator.serviceWorker)||void 0===Le?void 0:Le.controller)||null}()===ze.activeServiceWorker)try{yield ze.sender._send("keyChanged",{key:pe},ze.serviceWorkerReceiverAvailable?800:50)}catch{}})()}_isAvailable(){return(0,t.Z)(function*(){try{if(!indexedDB)return!1;const pe=yield si();return yield is(pe,ei,"1"),yield Wi(pe,ei),!0}catch{}return!1})()}_withPendingWrite(pe){var ze=this;return(0,t.Z)(function*(){ze.pendingWrites++;try{yield pe()}finally{ze.pendingWrites--}})()}_set(pe,ze){var nr=this;return(0,t.Z)(function*(){return nr._withPendingWrite((0,t.Z)(function*(){return yield nr._withRetries(Ir=>is(Ir,pe,ze)),nr.localCache[pe]=ze,nr.notifyServiceWorker(pe)}))})()}_get(pe){var ze=this;return(0,t.Z)(function*(){const nr=yield ze._withRetries(Ir=>function Ss(Le,ce){return cs.apply(this,arguments)}(Ir,pe));return ze.localCache[pe]=nr,nr})()}_remove(pe){var ze=this;return(0,t.Z)(function*(){return ze._withPendingWrite((0,t.Z)(function*(){return yield ze._withRetries(nr=>Wi(nr,pe)),delete ze.localCache[pe],ze.notifyServiceWorker(pe)}))})()}_poll(){var pe=this;return(0,t.Z)(function*(){const ze=yield pe._withRetries(an=>{const wn=Xr(an,!1).getAll();return new jr(wn).toPromise()});if(!ze)return[];if(0!==pe.pendingWrites)return[];const nr=[],Ir=new Set;for(const{fbase_key:an,value:wn}of ze)Ir.add(an),JSON.stringify(pe.localCache[an])!==JSON.stringify(wn)&&(pe.notifyListeners(an,wn),nr.push(an));for(const an of Object.keys(pe.localCache))pe.localCache[an]&&!Ir.has(an)&&(pe.notifyListeners(an,null),nr.push(an));return nr})()}notifyListeners(pe,ze){this.localCache[pe]=ze;const nr=this.listeners[pe];if(nr)for(const Ir of Array.from(nr))Ir(ze)}startPolling(){var pe=this;this.stopPolling(),this.pollTimer=setInterval((0,t.Z)(function*(){return pe._poll()}),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(pe,ze){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[pe]||(this.listeners[pe]=new Set,this._get(pe)),this.listeners[pe].add(ze)}_removeListener(pe,ze){this.listeners[pe]&&(this.listeners[pe].delete(ze),0===this.listeners[pe].size&&delete this.listeners[pe]),0===Object.keys(this.listeners).length&&this.stopPolling()}}return Le.type="LOCAL",Le})();function kl(Le,ce){return Ze(Le,"POST","/v2/accounts/mfaSignIn:start",At(Le,ce))}function ms(){return(ms=(0,t.Z)(function*(Le){return(yield Ze(Le,"GET","/v1/recaptchaParams")).recaptchaSiteKey||""})).apply(this,arguments)}function ba(Le){return new Promise((ce,pe)=>{const ze=document.createElement("script");ze.setAttribute("src",Le),ze.onload=ce,ze.onerror=nr=>{const Ir=G("internal-error");Ir.customData=nr,pe(Ir)},ze.type="text/javascript",ze.charset="UTF-8",function Ui(){var Le,ce;return null!==(ce=null===(Le=document.getElementsByTagName("head"))||void 0===Le?void 0:Le[0])&&void 0!==ce?ce:document}().appendChild(ze)})}function gn(Le){return`__${Le}${Math.floor(1e6*Math.random())}`}const ou=1e12;class Hs{constructor(ce){this.auth=ce,this.counter=ou,this._widgets=new Map}render(ce,pe){const ze=this.counter;return this._widgets.set(ze,new pl(ce,this.auth.name,pe||{})),this.counter++,ze}reset(ce){var pe;const ze=ce||ou;null===(pe=this._widgets.get(ze))||void 0===pe||pe.delete(),this._widgets.delete(ze)}getResponse(ce){var pe;return(null===(pe=this._widgets.get(ce||ou))||void 0===pe?void 0:pe.getResponse())||""}execute(ce){var pe=this;return(0,t.Z)(function*(){var ze;return null===(ze=pe._widgets.get(ce||ou))||void 0===ze||ze.execute(),""})()}}class pl{constructor(ce,pe,ze){this.params=ze,this.timerId=null,this.deleted=!1,this.responseToken=null,this.clickHandler=()=>{this.execute()};const nr="string"==typeof ce?document.getElementById(ce):ce;oe(nr,"argument-error",{appName:pe}),this.container=nr,this.isVisible="invisible"!==this.params.size,this.isVisible?this.execute():this.container.addEventListener("click",this.clickHandler)}getResponse(){return this.checkIfDeleted(),this.responseToken}delete(){this.checkIfDeleted(),this.deleted=!0,this.timerId&&(clearTimeout(this.timerId),this.timerId=null),this.container.removeEventListener("click",this.clickHandler)}execute(){this.checkIfDeleted(),!this.timerId&&(this.timerId=window.setTimeout(()=>{this.responseToken=function oa(Le){const ce=[],pe="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";for(let ze=0;ze<Le;ze++)ce.push(pe.charAt(Math.floor(Math.random()*pe.length)));return ce.join("")}(50);const{callback:ce,"expired-callback":pe}=this.params;if(ce)try{ce(this.responseToken)}catch{}this.timerId=window.setTimeout(()=>{if(this.timerId=null,this.responseToken=null,pe)try{pe()}catch{}this.isVisible&&this.execute()},6e4)},500))}checkIfDeleted(){if(this.deleted)throw new Error("reCAPTCHA mock was already deleted!")}}const Lo=gn("rcb"),Nl=new fe(3e4,6e4);class $d{constructor(){var ce;this.hostLanguage="",this.counter=0,this.librarySeparatelyLoaded=!!(null===(ce=bi().grecaptcha)||void 0===ce?void 0:ce.render)}load(ce,pe=""){return oe(function Ac(Le){return Le.length<=6&&/^\s*[a-zA-Z0-9\-]*\s*$/.test(Le)}(pe),ce,"argument-error"),this.shouldResolveImmediately(pe)?Promise.resolve(bi().grecaptcha):new Promise((ze,nr)=>{const Ir=bi().setTimeout(()=>{nr(G(ce,"network-request-failed"))},Nl.get());bi()[Lo]=()=>{bi().clearTimeout(Ir),delete bi()[Lo];const wn=bi().grecaptcha;if(!wn)return void nr(G(ce,"internal-error"));const Jn=wn.render;wn.render=(fi,Mi)=>{const Ti=Jn(fi,Mi);return this.counter++,Ti},this.hostLanguage=pe,ze(wn)},ba(`https://www.google.com/recaptcha/api.js??${(0,l.xO)({onload:Lo,render:"explicit",hl:pe})}`).catch(()=>{clearTimeout(Ir),nr(G(ce,"internal-error"))})})}clearedOneInstance(){this.counter--}shouldResolveImmediately(ce){var pe;return!!(null===(pe=bi().grecaptcha)||void 0===pe?void 0:pe.render)&&(ce===this.hostLanguage||this.counter>0||this.librarySeparatelyLoaded)}}class lu{load(ce){return(0,t.Z)(function*(){return new Hs(ce)})()}clearedOneInstance(){}}const ad="recaptcha",Ts={theme:"light",type:"image"};class Ou{constructor(ce,pe=Object.assign({},Ts),ze){this.parameters=pe,this.type=ad,this.destroyed=!1,this.widgetId=null,this.tokenChangeListeners=new Set,this.renderPromise=null,this.recaptcha=null,this.auth=Se(ze),this.isInvisible="invisible"===this.parameters.size,oe(typeof document<"u",this.auth,"operation-not-supported-in-this-environment");const nr="string"==typeof ce?document.getElementById(ce):ce;oe(nr,this.auth,"argument-error"),this.container=nr,this.parameters.callback=this.makeTokenCallback(this.parameters.callback),this._recaptchaLoader=this.auth.settings.appVerificationDisabledForTesting?new lu:new $d,this.validateStartingState()}verify(){var ce=this;return(0,t.Z)(function*(){ce.assertNotDestroyed();const pe=yield ce.render(),ze=ce.getAssertedRecaptcha();return ze.getResponse(pe)||new Promise(Ir=>{const an=wn=>{!wn||(ce.tokenChangeListeners.delete(an),Ir(wn))};ce.tokenChangeListeners.add(an),ce.isInvisible&&ze.execute(pe)})})()}render(){try{this.assertNotDestroyed()}catch(ce){return Promise.reject(ce)}return this.renderPromise||(this.renderPromise=this.makeRenderPromise().catch(ce=>{throw this.renderPromise=null,ce})),this.renderPromise}_reset(){this.assertNotDestroyed(),null!==this.widgetId&&this.getAssertedRecaptcha().reset(this.widgetId)}clear(){this.assertNotDestroyed(),this.destroyed=!0,this._recaptchaLoader.clearedOneInstance(),this.isInvisible||this.container.childNodes.forEach(ce=>{this.container.removeChild(ce)})}validateStartingState(){oe(!this.parameters.sitekey,this.auth,"argument-error"),oe(this.isInvisible||!this.container.hasChildNodes(),this.auth,"argument-error"),oe(typeof document<"u",this.auth,"operation-not-supported-in-this-environment")}makeTokenCallback(ce){return pe=>{if(this.tokenChangeListeners.forEach(ze=>ze(pe)),"function"==typeof ce)ce(pe);else if("string"==typeof ce){const ze=bi()[ce];"function"==typeof ze&&ze(pe)}}}assertNotDestroyed(){oe(!this.destroyed,this.auth,"internal-error")}makeRenderPromise(){var ce=this;return(0,t.Z)(function*(){if(yield ce.init(),!ce.widgetId){let pe=ce.container;if(!ce.isInvisible){const ze=document.createElement("div");pe.appendChild(ze),pe=ze}ce.widgetId=ce.getAssertedRecaptcha().render(pe,ce.parameters)}return ce.widgetId})()}init(){var ce=this;return(0,t.Z)(function*(){oe($()&&!cl(),ce.auth,"internal-error"),yield function os(){let Le=null;return new Promise(ce=>{"complete"!==document.readyState?(Le=()=>ce(),window.addEventListener("load",Le)):ce()}).catch(ce=>{throw Le&&window.removeEventListener("load",Le),ce})}(),ce.recaptcha=yield ce._recaptchaLoader.load(ce.auth,ce.auth.languageCode||void 0);const pe=yield function hl(Le){return ms.apply(this,arguments)}(ce.auth);oe(pe,ce.auth,"internal-error"),ce.parameters.sitekey=pe})()}getAssertedRecaptcha(){return oe(this.recaptcha,this.auth,"internal-error"),this.recaptcha}}class Ji{constructor(ce,pe){this.verificationId=ce,this.onConfirmation=pe}confirm(ce){const pe=ci._fromVerification(this.verificationId,ce);return this.onConfirmation(pe)}}function va(){return(va=(0,t.Z)(function*(Le,ce,pe){const ze=Se(Le),nr=yield Fl(ze,ce,(0,l.m9)(pe));return new Ji(nr,Ir=>ka(ze,Ir))})).apply(this,arguments)}function Ka(){return(Ka=(0,t.Z)(function*(Le,ce,pe){const ze=(0,l.m9)(Le);yield rs(!1,ze,"phone");const nr=yield Fl(ze.auth,ce,(0,l.m9)(pe));return new Ji(nr,Ir=>ks(ze,Ir))})).apply(this,arguments)}function Vs(){return(Vs=(0,t.Z)(function*(Le,ce,pe){const ze=(0,l.m9)(Le),nr=yield Fl(ze.auth,ce,(0,l.m9)(pe));return new Ji(nr,Ir=>Qa(ze,Ir))})).apply(this,arguments)}function Fl(Le,ce,pe){return Aa.apply(this,arguments)}function Aa(){return(Aa=(0,t.Z)(function*(Le,ce,pe){var ze;const nr=yield pe.verify();try{let Ir;if(oe("string"==typeof nr,Le,"argument-error"),oe(pe.type===ad,Le,"argument-error"),Ir="string"==typeof ce?{phoneNumber:ce}:ce,"session"in Ir){const an=Ir.session;if("phoneNumber"in Ir)return oe("enroll"===an.type,Le,"internal-error"),(yield Qo(Le,{idToken:an.credential,phoneEnrollmentInfo:{phoneNumber:Ir.phoneNumber,recaptchaToken:nr}})).phoneSessionInfo.sessionInfo;{oe("signin"===an.type,Le,"internal-error");const wn=(null===(ze=Ir.multiFactorHint)||void 0===ze?void 0:ze.uid)||Ir.multiFactorUid;return oe(wn,Le,"missing-multi-factor-info"),(yield kl(Le,{mfaPendingCredential:an.credential,mfaEnrollmentId:wn,phoneSignInInfo:{recaptchaToken:nr}})).phoneResponseInfo.sessionInfo}}{const{sessionInfo:an}=yield Wr(Le,{phoneNumber:Ir.phoneNumber,recaptchaToken:nr});return an}}finally{pe._reset()}})).apply(this,arguments)}function Lu(){return(Lu=(0,t.Z)(function*(Le,ce){yield Os((0,l.m9)(Le),ce)})).apply(this,arguments)}let Gn=(()=>{class Le{constructor(pe){this.providerId=Le.PROVIDER_ID,this.auth=Se(pe)}verifyPhoneNumber(pe,ze){return Fl(this.auth,pe,(0,l.m9)(ze))}static credential(pe,ze){return ci._fromVerification(pe,ze)}static credentialFromResult(pe){return Le.credentialFromTaggedObject(pe)}static credentialFromError(pe){return Le.credentialFromTaggedObject(pe.customData||{})}static credentialFromTaggedObject({_tokenResponse:pe}){if(!pe)return null;const{phoneNumber:ze,temporaryProof:nr}=pe;return ze&&nr?ci._fromTokenResponse(ze,nr):null}}return Le.PROVIDER_ID="phone",Le.PHONE_SIGN_IN_METHOD="phone",Le})();function el(Le,ce){return ce?w(ce):(oe(Le._popupRedirectResolver,Le,"argument-error"),Le._popupRedirectResolver)}class Da extends tr{constructor(ce){super("custom","custom"),this.params=ce}_getIdTokenResponse(ce){return it(ce,this._buildIdpRequest())}_linkToIdToken(ce,pe){return it(ce,this._buildIdpRequest(pe))}_getReauthenticationResolver(ce){return it(ce,this._buildIdpRequest())}_buildIdpRequest(ce){const pe={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return ce&&(pe.idToken=ce),pe}}function uu(Le){return ps(Le.auth,new Da(Le),Le.bypassAuthState)}function Xi(Le){const{auth:ce,user:pe}=Le;return oe(pe,ce,"internal-error"),$s(pe,new Da(Le),Le.bypassAuthState)}function tl(Le){return Bl.apply(this,arguments)}function Bl(){return(Bl=(0,t.Z)(function*(Le){const{auth:ce,user:pe}=Le;return oe(pe,ce,"internal-error"),Os(pe,new Da(Le),Le.bypassAuthState)})).apply(this,arguments)}class ko{constructor(ce,pe,ze,nr,Ir=!1){this.auth=ce,this.resolver=ze,this.user=nr,this.bypassAuthState=Ir,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(pe)?pe:[pe]}execute(){var ce=this;return new Promise(function(){var pe=(0,t.Z)(function*(ze,nr){ce.pendingPromise={resolve:ze,reject:nr};try{ce.eventManager=yield ce.resolver._initialize(ce.auth),yield ce.onExecution(),ce.eventManager.registerConsumer(ce)}catch(Ir){ce.reject(Ir)}});return function(ze,nr){return pe.apply(this,arguments)}}())}onAuthEvent(ce){var pe=this;return(0,t.Z)(function*(){const{urlResponse:ze,sessionId:nr,postBody:Ir,tenantId:an,error:wn,type:Jn}=ce;if(wn)return void pe.reject(wn);const fi={auth:pe.auth,requestUri:ze,sessionId:nr,tenantId:an||void 0,postBody:Ir||void 0,user:pe.user,bypassAuthState:pe.bypassAuthState};try{pe.resolve(yield pe.getIdpTask(Jn)(fi))}catch(Mi){pe.reject(Mi)}})()}onError(ce){this.reject(ce)}getIdpTask(ce){switch(ce){case"signInViaPopup":case"signInViaRedirect":return uu;case"linkViaPopup":case"linkViaRedirect":return tl;case"reauthViaPopup":case"reauthViaRedirect":return Xi;default:J(this.auth,"internal-error")}}resolve(ce){s(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(ce),this.unregisterAndCleanUp()}reject(ce){s(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(ce),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}const ld=new fe(2e3,1e4);function oc(){return(oc=(0,t.Z)(function*(Le,ce,pe){const ze=Se(Le);K(Le,ce,bn);const nr=el(ze,pe);return new cu(ze,"signInViaPopup",ce,nr).executeNotNull()})).apply(this,arguments)}function ku(){return(ku=(0,t.Z)(function*(Le,ce,pe){const ze=(0,l.m9)(Le);K(ze.auth,ce,bn);const nr=el(ze.auth,pe);return new cu(ze.auth,"reauthViaPopup",ce,nr,ze).executeNotNull()})).apply(this,arguments)}function No(){return(No=(0,t.Z)(function*(Le,ce,pe){const ze=(0,l.m9)(Le);K(ze.auth,ce,bn);const nr=el(ze.auth,pe);return new cu(ze.auth,"linkViaPopup",ce,nr,ze).executeNotNull()})).apply(this,arguments)}let cu=(()=>{class Le extends ko{constructor(pe,ze,nr,Ir,an){super(pe,ze,Ir,an),this.provider=nr,this.authWindow=null,this.pollId=null,Le.currentPopupAction&&Le.currentPopupAction.cancel(),Le.currentPopupAction=this}executeNotNull(){var pe=this;return(0,t.Z)(function*(){const ze=yield pe.execute();return oe(ze,pe.auth,"internal-error"),ze})()}onExecution(){var pe=this;return(0,t.Z)(function*(){s(1===pe.filter.length,"Popup operations only handle one event");const ze=ra();pe.authWindow=yield pe.resolver._openPopup(pe.auth,pe.provider,pe.filter[0],ze),pe.authWindow.associatedEvent=ze,pe.resolver._originValidation(pe.auth).catch(nr=>{pe.reject(nr)}),pe.resolver._isIframeWebStorageSupported(pe.auth,nr=>{nr||pe.reject(G(pe.auth,"web-storage-unsupported"))}),pe.pollUserCancellation()})()}get eventId(){var pe;return(null===(pe=this.authWindow)||void 0===pe?void 0:pe.associatedEvent)||null}cancel(){this.reject(G(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,Le.currentPopupAction=null}pollUserCancellation(){const pe=()=>{var ze,nr;this.pollId=(null===(nr=null===(ze=this.authWindow)||void 0===ze?void 0:ze.window)||void 0===nr?void 0:nr.closed)?window.setTimeout(()=>{this.pollId=null,this.reject(G(this.auth,"popup-closed-by-user"))},2e3):window.setTimeout(pe,ld.get())};pe()}}return Le.currentPopupAction=null,Le})();const Ua=new Map;class Fo extends ko{constructor(ce,pe,ze=!1){super(ce,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],pe,void 0,ze),this.eventId=null}execute(){var ce=()=>super.execute,pe=this;return(0,t.Z)(function*(){let ze=Ua.get(pe.auth._key());if(!ze){try{const Ir=(yield function Vi(Le,ce){return Nu.apply(this,arguments)}(pe.resolver,pe.auth))?yield ce().call(pe):null;ze=()=>Promise.resolve(Ir)}catch(nr){ze=()=>Promise.reject(nr)}Ua.set(pe.auth._key(),ze)}return pe.bypassAuthState||Ua.set(pe.auth._key(),()=>Promise.resolve(null)),ze()})()}onAuthEvent(ce){var pe=()=>super.onAuthEvent,ze=this;return(0,t.Z)(function*(){if("signInViaRedirect"===ce.type)return pe().call(ze,ce);if("unknown"!==ce.type){if(ce.eventId){const nr=yield ze.auth._redirectUserForId(ce.eventId);if(nr)return ze.user=nr,pe().call(ze,ce);ze.resolve(null)}}else ze.resolve(null)})()}onExecution(){return(0,t.Z)(function*(){})()}cleanUp(){}}function Nu(){return(Nu=(0,t.Z)(function*(Le,ce){const pe=Bu(ce),ze=lc(Le);if(!(yield ze._isAvailable()))return!1;const nr="true"===(yield ze._get(pe));return yield ze._remove(pe),nr})).apply(this,arguments)}function Bo(Le,ce){return Fu.apply(this,arguments)}function Fu(){return(Fu=(0,t.Z)(function*(Le,ce){return lc(Le)._set(Bu(ce),"true")})).apply(this,arguments)}function qs(Le,ce){Ua.set(Le._key(),ce)}function lc(Le){return w(Le._redirectPersistence)}function Bu(Le){return Fe("pendingRedirect",Le.config.apiKey,Le.name)}function rl(){return(rl=(0,t.Z)(function*(Le,ce,pe){const ze=Se(Le);K(Le,ce,bn),yield ze._initializationPromise;const nr=el(ze,pe);return yield Bo(nr,ze),nr._openRedirect(ze,ce,"signInViaRedirect")})).apply(this,arguments)}function fu(){return(fu=(0,t.Z)(function*(Le,ce,pe){const ze=(0,l.m9)(Le);K(ze.auth,ce,bn),yield ze.auth._initializationPromise;const nr=el(ze.auth,pe);yield Bo(nr,ze.auth);const Ir=yield cc(ze);return nr._openRedirect(ze.auth,ce,"reauthViaRedirect",Ir)})).apply(this,arguments)}function Uo(){return(Uo=(0,t.Z)(function*(Le,ce,pe){const ze=(0,l.m9)(Le);K(ze.auth,ce,bn),yield ze.auth._initializationPromise;const nr=el(ze.auth,pe);yield rs(!1,ze,ce.providerId),yield Bo(nr,ze.auth);const Ir=yield cc(ze);return nr._openRedirect(ze.auth,ce,"linkViaRedirect",Ir)})).apply(this,arguments)}function Uu(){return(Uu=(0,t.Z)(function*(Le,ce){return yield Se(Le)._initializationPromise,Io(Le,ce,!1)})).apply(this,arguments)}function Io(Le,ce){return pu.apply(this,arguments)}function pu(){return(pu=(0,t.Z)(function*(Le,ce,pe=!1){const ze=Se(Le),nr=el(ze,ce),an=yield new Fo(ze,nr,pe).execute();return an&&!pe&&(delete an.user._redirectEventId,yield ze._persistUserIfCurrent(an.user),yield ze._setRedirectUser(null,ce)),an})).apply(this,arguments)}function cc(Le){return nl.apply(this,arguments)}function nl(){return(nl=(0,t.Z)(function*(Le){const ce=ra(`${Le.uid}:::`);return Le._redirectEventId=ce,yield Le.auth._setRedirectUser(Le),yield Le.auth._persistUserIfCurrent(Le),ce})).apply(this,arguments)}class Ul{constructor(ce){this.auth=ce,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(ce){this.consumers.add(ce),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,ce)&&(this.sendToConsumer(this.queuedRedirectEvent,ce),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(ce){this.consumers.delete(ce)}onEvent(ce){if(this.hasEventBeenHandled(ce))return!1;let pe=!1;return this.consumers.forEach(ze=>{this.isEventForConsumer(ce,ze)&&(pe=!0,this.sendToConsumer(ce,ze),this.saveEventToCache(ce))}),this.hasHandledPotentialRedirect||!function Ja(Le){switch(Le.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return Ha(Le);default:return!1}}(ce)||(this.hasHandledPotentialRedirect=!0,pe||(this.queuedRedirectEvent=ce,pe=!0)),pe}sendToConsumer(ce,pe){var ze;if(ce.error&&!Ha(ce)){const nr=(null===(ze=ce.error.code)||void 0===ze?void 0:ze.split("auth/")[1])||"internal-error";pe.onError(G(this.auth,nr))}else pe.onAuthEvent(ce)}isEventForConsumer(ce,pe){const ze=null===pe.eventId||!!ce.eventId&&ce.eventId===pe.eventId;return pe.filter.includes(ce.type)&&ze}hasEventBeenHandled(ce){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(dc(ce))}saveEventToCache(ce){this.cachedEventUids.add(dc(ce)),this.lastProcessedEventTime=Date.now()}}function dc(Le){return[Le.type,Le.eventId,Le.sessionId,Le.tenantId].filter(ce=>ce).join("-")}function Ha({type:Le,error:ce}){return"unknown"===Le&&"auth/no-auth-event"===(null==ce?void 0:ce.code)}function il(Le){return Hl.apply(this,arguments)}function Hl(){return(Hl=(0,t.Z)(function*(Le,ce={}){return Ze(Le,"GET","/v1/projects",ce)})).apply(this,arguments)}const Vl=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,Vu=/^https?/;function Yu(){return(Yu=(0,t.Z)(function*(Le){if(Le.config.emulator)return;const{authorizedDomains:ce}=yield il(Le);for(const pe of ce)try{if(Yl(pe))return}catch{}J(Le,"unauthorized-domain")})).apply(this,arguments)}function Yl(Le){const ce=j(),{protocol:pe,hostname:ze}=new URL(ce);if(Le.startsWith("chrome-extension://")){const an=new URL(Le);return""===an.hostname&&""===ze?"chrome-extension:"===pe&&Le.replace("chrome-extension://","")===ce.replace("chrome-extension://",""):"chrome-extension:"===pe&&an.hostname===ze}if(!Vu.test(pe))return!1;if(Vl.test(Le))return ze===Le;const nr=Le.replace(/\./g,"\\.");return new RegExp("^(.+\\."+nr+"|"+nr+")$","i").test(ze)}const gu=new fe(3e4,6e4);function us(){const Le=bi().___jsl;if(null==Le?void 0:Le.H)for(const ce of Object.keys(Le.H))if(Le.H[ce].r=Le.H[ce].r||[],Le.H[ce].L=Le.H[ce].L||[],Le.H[ce].r=[...Le.H[ce].L],Le.CP)for(let pe=0;pe<Le.CP.length;pe++)Le.CP[pe]=null}let Je=null;function Ht(Le){return Je=Je||function me(Le){return new Promise((ce,pe)=>{var ze,nr,Ir;function an(){us(),gapi.load("gapi.iframes",{callback:()=>{ce(gapi.iframes.getContext())},ontimeout:()=>{us(),pe(G(Le,"network-request-failed"))},timeout:gu.get()})}if(null===(nr=null===(ze=bi().gapi)||void 0===ze?void 0:ze.iframes)||void 0===nr?void 0:nr.Iframe)ce(gapi.iframes.getContext());else{if(!(null===(Ir=bi().gapi)||void 0===Ir?void 0:Ir.load)){const wn=gn("iframefcb");return bi()[wn]=()=>{gapi.load?an():pe(G(Le,"network-request-failed"))},ba(`https://apis.google.com/js/api.js?onload=${wn}`).catch(Jn=>pe(Jn))}an()}}).catch(ce=>{throw Je=null,ce})}(Le),Je}const or=new fe(5e3,15e3),Dn={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},ri=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function Ai(Le){const ce=Le.config;oe(ce.authDomain,Le,"auth-domain-config-required");const pe=ce.emulator?ae(ce,"emulator/auth/iframe"):`https://${Le.config.authDomain}/__/auth/iframe`,ze={apiKey:ce.apiKey,appName:Le.name,v:h.SDK_VERSION},nr=ri.get(Le.config.apiHost);nr&&(ze.eid=nr);const Ir=Le._getFrameworks();return Ir.length&&(ze.fw=Ir.join(",")),`${pe}?${(0,l.xO)(ze).slice(1)}`}function Fs(){return Fs=(0,t.Z)(function*(Le){const ce=yield Ht(Le),pe=bi().gapi;return oe(pe,Le,"internal-error"),ce.open({where:document.body,url:Ai(Le),messageHandlersFilter:pe.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:Dn,dontclear:!0},ze=>new Promise(function(){var nr=(0,t.Z)(function*(Ir,an){yield ze.restyle({setHideOnLeave:!1});const wn=G(Le,"network-request-failed"),Jn=bi().setTimeout(()=>{an(wn)},or.get());function fi(){bi().clearTimeout(Jn),Ir(ze)}ze.ping(fi).then(fi,()=>{an(wn)})});return function(Ir,an){return nr.apply(this,arguments)}}()))}),Fs.apply(this,arguments)}const Ys={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class vs{constructor(ce){this.window=ce,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}function hc(Le,ce,pe,ze,nr,Ir){oe(Le.config.authDomain,Le,"auth-domain-config-required"),oe(Le.config.apiKey,Le,"invalid-api-key");const an={apiKey:Le.config.apiKey,appName:Le.name,authType:pe,redirectUrl:ze,v:h.SDK_VERSION,eventId:nr};if(ce instanceof bn){ce.setDefaultLanguage(Le.languageCode),an.providerId=ce.providerId||"",(0,l.xb)(ce.getCustomParameters())||(an.customParameters=JSON.stringify(ce.getCustomParameters()));for(const[Jn,fi]of Object.entries(Ir||{}))an[Jn]=fi}if(ce instanceof Un){const Jn=ce.getScopes().filter(fi=>""!==fi);Jn.length>0&&(an.scopes=Jn.join(","))}Le.tenantId&&(an.tid=Le.tenantId);const wn=an;for(const Jn of Object.keys(wn))void 0===wn[Jn]&&delete wn[Jn];return`${function Vf({config:Le}){return Le.emulator?ae(Le,"emulator/auth/handler"):`https://${Le.authDomain}/__/auth/handler`}(Le)}?${(0,l.xO)(wn).slice(1)}`}const _s="webStorageSupport";class Gl extends class Dc{constructor(ce){this.factorId=ce}_process(ce,pe,ze){switch(pe.type){case"enroll":return this._finalizeEnroll(ce,pe.credential,ze);case"signin":return this._finalizeSignIn(ce,pe.credential);default:return B("unexpected MultiFactorSessionType")}}}{constructor(ce){super("phone"),this.credential=ce}static _fromCredential(ce){return new Gl(ce)}_finalizeEnroll(ce,pe,ze){return function _t(Le,ce){return Ze(Le,"POST","/v2/accounts/mfaEnrollment:finalize",At(Le,ce))}(ce,{idToken:pe,displayName:ze,phoneVerificationInfo:this.credential._makeVerificationRequest()})}_finalizeSignIn(ce,pe){return function vo(Le,ce){return Ze(Le,"POST","/v2/accounts/mfaSignIn:finalize",At(Le,ce))}(ce,{mfaPendingCredential:pe,phoneVerificationInfo:this.credential._makeVerificationRequest()})}}let vu=(()=>{class Le{constructor(){}static assertion(pe){return Gl._fromCredential(pe)}}return Le.FACTOR_ID="phone",Le})();var zu="@firebase/auth";class Ku{constructor(ce){this.auth=ce,this.internalListeners=new Map}getUid(){var ce;return this.assertAuthConfigured(),(null===(ce=this.auth.currentUser)||void 0===ce?void 0:ce.uid)||null}getToken(ce){var pe=this;return(0,t.Z)(function*(){return pe.assertAuthConfigured(),yield pe.auth._initializationPromise,pe.auth.currentUser?{accessToken:yield pe.auth.currentUser.getIdToken(ce)}:null})()}addAuthTokenListener(ce){if(this.assertAuthConfigured(),this.internalListeners.has(ce))return;const pe=this.auth.onIdTokenChanged(ze=>{ce((null==ze?void 0:ze.stsTokenManager.accessToken)||null)});this.internalListeners.set(ce,pe),this.updateProactiveRefresh()}removeAuthTokenListener(ce){this.assertAuthConfigured();const pe=this.internalListeners.get(ce);!pe||(this.internalListeners.delete(ce),pe(),this.updateProactiveRefresh())}assertAuthConfigured(){oe(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}function Zl(){return window}function Cl(){return(Cl=(0,t.Z)(function*(Le,ce,pe){var ze;const{BuildInfo:nr}=Zl();s(ce.sessionId,"AuthEvent did not contain a session ID");const Ir=yield zl(ce.sessionId),an={};return Ar()?an.ibi=nr.packageName:$t()?an.apn=nr.packageName:J(Le,"operation-not-supported-in-this-environment"),nr.displayName&&(an.appDisplayName=nr.displayName),an.sessionId=Ir,hc(Le,pe,ce.type,void 0,null!==(ze=ce.eventId)&&void 0!==ze?ze:void 0,an)})).apply(this,arguments)}function pc(){return(pc=(0,t.Z)(function*(Le){const{BuildInfo:ce}=Zl(),pe={};Ar()?pe.iosBundleId=ce.packageName:$t()?pe.androidPackageName=ce.packageName:J(Le,"operation-not-supported-in-this-environment"),yield il(Le,pe)})).apply(this,arguments)}function bl(){return(bl=(0,t.Z)(function*(Le,ce,pe){const{cordova:ze}=Zl();let nr=()=>{};try{yield new Promise((Ir,an)=>{let wn=null;function Jn(){var Ti;Ir();const Sa=null===(Ti=ze.plugins.browsertab)||void 0===Ti?void 0:Ti.close;"function"==typeof Sa&&Sa(),"function"==typeof(null==pe?void 0:pe.close)&&pe.close()}function fi(){wn||(wn=window.setTimeout(()=>{an(G(Le,"redirect-cancelled-by-user"))},2e3))}function Mi(){"visible"===(null==document?void 0:document.visibilityState)&&fi()}ce.addPassiveListener(Jn),document.addEventListener("resume",fi,!1),$t()&&document.addEventListener("visibilitychange",Mi,!1),nr=()=>{ce.removePassiveListener(Jn),document.removeEventListener("resume",fi,!1),document.removeEventListener("visibilitychange",Mi,!1),wn&&window.clearTimeout(wn)}})}finally{nr()}})).apply(this,arguments)}function zl(Le){return Ds.apply(this,arguments)}function Ds(){return(Ds=(0,t.Z)(function*(Le){const ce=tf(Le),pe=yield crypto.subtle.digest("SHA-256",ce);return Array.from(new Uint8Array(pe)).map(nr=>nr.toString(16).padStart(2,"0")).join("")})).apply(this,arguments)}function tf(Le){if(s(/[0-9a-zA-Z]+/.test(Le),"Can only convert alpha-numeric strings"),typeof TextEncoder<"u")return(new TextEncoder).encode(Le);const ce=new ArrayBuffer(Le.length),pe=new Uint8Array(ce);for(let ze=0;ze<Le.length;ze++)pe[ze]=Le.charCodeAt(ze);return pe}(0,l.Pz)("authIdTokenMaxAge"),function jf(Le){(0,h._registerComponent)(new y.wA("auth",(ce,{options:pe})=>{const ze=ce.getProvider("app").getImmediate(),nr=ce.getProvider("heartbeat"),{apiKey:Ir,authDomain:an}=ze.options;return((wn,Jn)=>{oe(Ir&&!Ir.includes(":"),"invalid-api-key",{appName:wn.name}),oe(!(null==an?void 0:an.includes(":")),"argument-error",{appName:wn.name});const fi={apiKey:Ir,authDomain:an,clientPlatform:Le,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:Ie(Le)},Mi=new Oe(wn,Jn,fi);return function x(Le,ce){const pe=(null==ce?void 0:ce.persistence)||[],ze=(Array.isArray(pe)?pe:[pe]).map(w);(null==ce?void 0:ce.errorMap)&&Le._updateErrorMap(ce.errorMap),Le._initializeWithPersistence(ze,null==ce?void 0:ce.popupRedirectResolver)}(Mi,pe),Mi})(ze,nr)},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((ce,pe,ze)=>{ce.getProvider("auth-internal").initialize()})),(0,h._registerComponent)(new y.wA("auth-internal",ce=>{const pe=Se(ce.getProvider("auth").getImmediate());return new Ku(pe)},"PRIVATE").setInstantiationMode("EXPLICIT")),(0,h.registerVersion)(zu,"0.22.0",function Yf(Le){switch(Le){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";default:return}}(Le)),(0,h.registerVersion)(zu,"0.22.0","esm2017")}("Browser");class gc extends Ul{constructor(){super(...arguments),this.passiveListeners=new Set,this.initPromise=new Promise(ce=>{this.resolveInialized=ce})}addPassiveListener(ce){this.passiveListeners.add(ce)}removePassiveListener(ce){this.passiveListeners.delete(ce)}resetRedirect(){this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1}onEvent(ce){return this.resolveInialized(),this.passiveListeners.forEach(pe=>pe(ce)),super.onEvent(ce)}initialized(){var ce=this;return(0,t.Z)(function*(){yield ce.initPromise})()}}function fd(Le){return Kl.apply(this,arguments)}function Kl(){return(Kl=(0,t.Z)(function*(Le){const ce=yield qu()._get(mc(Le));return ce&&(yield qu()._remove(mc(Le))),ce})).apply(this,arguments)}function nf(){const Le=[],ce="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";for(let pe=0;pe<20;pe++){const ze=Math.floor(Math.random()*ce.length);Le.push(ce.charAt(ze))}return Le.join("")}function qu(){return w(qi)}function mc(Le){return Fe("authEvent",Le.config.apiKey,Le.name)}function ql(Le){if(!(null==Le?void 0:Le.includes("?")))return{};const[ce,...pe]=Le.split("?");return(0,l.zd)(pe.join("?"))}function hd(){return{type:"unknown",eventId:null,sessionId:null,urlResponse:null,postBody:null,tenantId:null,error:G("no-auth-event")}}function Jl(){var Le;return(null===(Le=null==self?void 0:self.location)||void 0===Le?void 0:Le.protocol)||null}function $l(Le=(0,l.z$)()){return!("file:"!==Jl()&&"ionic:"!==Jl()&&"capacitor:"!==Jl()||!Le.toLowerCase().match(/iphone|ipad|ipod|android/))}function $u(){try{const Le=self.localStorage,ce=ra();if(Le)return Le.setItem(ce,"1"),Le.removeItem(ce),!function _d(Le=(0,l.z$)()){return function vd(){return(0,l.w1)()&&11===(null==document?void 0:document.documentMode)}()||function Hh(Le=(0,l.z$)()){return/Edge\/\d+/.test(Le)}(Le)}()||(0,l.hl)()}catch{return vc()&&(0,l.hl)()}return!1}function vc(){return typeof global<"u"&&"WorkerGlobalScope"in global&&"importScripts"in global}function yu(){return(function md(){return"http:"===Jl()||"https:"===Jl()}()||(0,l.ru)()||$l())&&!function Jf(){return(0,l.b$)()||(0,l.UG)()}()&&$u()&&!vc()}function Qu(){return $l()&&typeof document<"u"}function Sl(){return(Sl=(0,t.Z)(function*(){return!!Qu()&&new Promise(Le=>{const ce=setTimeout(()=>{Le(!1)},1e3);document.addEventListener("deviceready",()=>{clearTimeout(ce),Le(!0)})})})).apply(this,arguments)}const Va={LOCAL:"local",NONE:"none",SESSION:"session"},Cu=oe,sl="persistence";function la(Le){return al.apply(this,arguments)}function al(){return(al=(0,t.Z)(function*(Le){yield Le._initializationPromise;const ce=Cd(),pe=Fe(sl,Le.config.apiKey,Le.name);ce&&ce.setItem(pe,Le._getPersistence())})).apply(this,arguments)}function Cd(){var Le;try{return(null===(Le=function $f(){return typeof window<"u"?window:null}())||void 0===Le?void 0:Le.sessionStorage)||null}catch{return null}}const Bc=oe;class io{constructor(){this.browserResolver=w(class yo{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=aa,this._completeRedirectFn=Io,this._overrideRedirectResult=qs}_openPopup(ce,pe,ze,nr){var Ir=this;return(0,t.Z)(function*(){var an;s(null===(an=Ir.eventManagers[ce._key()])||void 0===an?void 0:an.manager,"_initialize() not called before _openPopup()");const wn=hc(ce,pe,ze,j(),nr);return function ju(Le,ce,pe,ze=500,nr=600){const Ir=Math.max((window.screen.availHeight-nr)/2,0).toString(),an=Math.max((window.screen.availWidth-ze)/2,0).toString();let wn="";const Jn=Object.assign(Object.assign({},Ys),{width:ze.toString(),height:nr.toString(),top:Ir,left:an}),fi=(0,l.z$)().toLowerCase();pe&&(wn=ct(fi)?"_blank":pe),qe(fi)&&(ce=ce||"http://localhost",Jn.scrollbars="yes");const Mi=Object.entries(Jn).reduce((Sa,[Co,ec])=>`${Sa}${Co}=${ec},`,"");if(function Fr(Le=(0,l.z$)()){var ce;return Ar(Le)&&!!(null===(ce=window.navigator)||void 0===ce?void 0:ce.standalone)}(fi)&&"_self"!==wn)return function Gu(Le,ce){const pe=document.createElement("a");pe.href=Le,pe.target=ce;const ze=document.createEvent("MouseEvent");ze.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),pe.dispatchEvent(ze)}(ce||"",wn),new vs(null);const Ti=window.open(ce||"",wn,Mi);oe(Ti,Le,"popup-blocked");try{Ti.focus()}catch{}return new vs(Ti)}(ce,wn,ra())})()}_openRedirect(ce,pe,ze,nr){var Ir=this;return(0,t.Z)(function*(){return yield Ir._originValidation(ce),function ls(Le){bi().location.href=Le}(hc(ce,pe,ze,j(),nr)),new Promise(()=>{})})()}_initialize(ce){const pe=ce._key();if(this.eventManagers[pe]){const{manager:nr,promise:Ir}=this.eventManagers[pe];return nr?Promise.resolve(nr):(s(Ir,"If manager is not set, promise should be"),Ir)}const ze=this.initAndGetManager(ce);return this.eventManagers[pe]={promise:ze},ze.catch(()=>{delete this.eventManagers[pe]}),ze}initAndGetManager(ce){var pe=this;return(0,t.Z)(function*(){const ze=yield function ds(Le){return Fs.apply(this,arguments)}(ce),nr=new Ul(ce);return ze.register("authEvent",Ir=>(oe(null==Ir?void 0:Ir.authEvent,ce,"invalid-auth-event"),{status:nr.onEvent(Ir.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),pe.eventManagers[ce._key()]={manager:nr},pe.iframes[ce._key()]=ze,nr})()}_isIframeWebStorageSupported(ce,pe){this.iframes[ce._key()].send(_s,{type:_s},nr=>{var Ir;const an=null===(Ir=null==nr?void 0:nr[0])||void 0===Ir?void 0:Ir[_s];void 0!==an&&pe(!!an),J(ce,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(ce){const pe=ce._key();return this.originValidationPromises[pe]||(this.originValidationPromises[pe]=function fc(Le){return Yu.apply(this,arguments)}(ce)),this.originValidationPromises[pe]}get _shouldInitProactively(){return le()||ke()||Ar()}}),this.cordovaResolver=w(class Ju{constructor(){this._redirectPersistence=aa,this._shouldInitProactively=!0,this.eventManagers=new Map,this.originValidationPromises={},this._completeRedirectFn=Io,this._overrideRedirectResult=qs}_initialize(ce){var pe=this;return(0,t.Z)(function*(){const ze=ce._key();let nr=pe.eventManagers.get(ze);return nr||(nr=new gc(ce),pe.eventManagers.set(ze,nr),pe.attachCallbackListeners(ce,nr)),nr})()}_openPopup(ce){J(ce,"operation-not-supported-in-this-environment")}_openRedirect(ce,pe,ze,nr){var Ir=this;return(0,t.Z)(function*(){!function Oc(Le){var ce,pe,ze,nr,Ir,an,wn,Jn,fi,Mi;const Ti=Zl();oe("function"==typeof(null===(ce=null==Ti?void 0:Ti.universalLinks)||void 0===ce?void 0:ce.subscribe),Le,"invalid-cordova-configuration",{missingPlugin:"cordova-universal-links-plugin-fix"}),oe(typeof(null===(pe=null==Ti?void 0:Ti.BuildInfo)||void 0===pe?void 0:pe.packageName)<"u",Le,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-buildInfo"}),oe("function"==typeof(null===(Ir=null===(nr=null===(ze=null==Ti?void 0:Ti.cordova)||void 0===ze?void 0:ze.plugins)||void 0===nr?void 0:nr.browsertab)||void 0===Ir?void 0:Ir.openUrl),Le,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-browsertab"}),oe("function"==typeof(null===(Jn=null===(wn=null===(an=null==Ti?void 0:Ti.cordova)||void 0===an?void 0:an.plugins)||void 0===wn?void 0:wn.browsertab)||void 0===Jn?void 0:Jn.isAvailable),Le,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-browsertab"}),oe("function"==typeof(null===(Mi=null===(fi=null==Ti?void 0:Ti.cordova)||void 0===fi?void 0:fi.InAppBrowser)||void 0===Mi?void 0:Mi.open),Le,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-inappbrowser"})}(ce);const an=yield Ir._initialize(ce);yield an.initialized(),an.resetRedirect(),function Ks(){Ua.clear()}(),yield Ir._originValidation(ce);const wn=function rf(Le,ce,pe=null){return{type:ce,eventId:pe,urlResponse:null,sessionId:nf(),postBody:null,tenantId:Le.tenantId,error:G(Le,"no-auth-event")}}(ce,ze,nr);yield function dd(Le,ce){return qu()._set(mc(Le),ce)}(ce,wn);const Jn=yield function Xd(Le,ce,pe){return Cl.apply(this,arguments)}(ce,wn,pe),fi=yield function Zf(Le){const{cordova:ce}=Zl();return new Promise(pe=>{ce.plugins.browsertab.isAvailable(ze=>{let nr=null;ze?ce.plugins.browsertab.openUrl(Le):nr=ce.InAppBrowser.open(Le,function Jr(Le=(0,l.z$)()){return/(iPad|iPhone|iPod).*OS 7_\d/i.test(Le)||/(iPad|iPhone|iPod).*OS 8_\d/i.test(Le)}()?"_blank":"_system","location=yes"),pe(nr)})})}(Jn);return function zf(Le,ce,pe){return bl.apply(this,arguments)}(ce,an,fi)})()}_isIframeWebStorageSupported(ce,pe){throw new Error("Method not implemented.")}_originValidation(ce){const pe=ce._key();return this.originValidationPromises[pe]||(this.originValidationPromises[pe]=function ef(Le){return pc.apply(this,arguments)}(ce)),this.originValidationPromises[pe]}attachCallbackListeners(ce,pe){const{universalLinks:ze,handleOpenURL:nr,BuildInfo:Ir}=Zl(),an=setTimeout((0,t.Z)(function*(){yield fd(ce),pe.onEvent(hd())}),500),wn=function(){var Mi=(0,t.Z)(function*(Ti){clearTimeout(an);const Sa=yield fd(ce);let Co=null;Sa&&(null==Ti?void 0:Ti.url)&&(Co=function Lc(Le,ce){var pe,ze;const nr=function kc(Le){const ce=ql(Le),pe=ce.link?decodeURIComponent(ce.link):void 0,ze=ql(pe).link,nr=ce.deep_link_id?decodeURIComponent(ce.deep_link_id):void 0;return ql(nr).link||nr||ze||pe||Le}(ce);if(nr.includes("/__/auth/callback")){const Ir=ql(nr),an=Ir.firebaseError?function Kf(Le){try{return JSON.parse(Le)}catch{return null}}(decodeURIComponent(Ir.firebaseError)):null,wn=null===(ze=null===(pe=null==an?void 0:an.code)||void 0===pe?void 0:pe.split("auth/"))||void 0===ze?void 0:ze[1],Jn=wn?G(wn):null;return Jn?{type:Le.type,eventId:Le.eventId,tenantId:Le.tenantId,error:Jn,urlResponse:null,sessionId:null,postBody:null}:{type:Le.type,eventId:Le.eventId,tenantId:Le.tenantId,sessionId:Le.sessionId,urlResponse:nr,postBody:null}}return null}(Sa,Ti.url)),pe.onEvent(Co||hd())});return function(Sa){return Mi.apply(this,arguments)}}();typeof ze<"u"&&"function"==typeof ze.subscribe&&ze.subscribe(null,wn);const Jn=nr,fi=`${Ir.packageName.toLowerCase()}://`;Zl().handleOpenURL=function(){var Mi=(0,t.Z)(function*(Ti){if(Ti.toLowerCase().startsWith(fi)&&wn({url:Ti}),"function"==typeof Jn)try{Jn(Ti)}catch(Sa){console.error(Sa)}});return function(Ti){return Mi.apply(this,arguments)}}()}}),this.underlyingResolver=null,this._redirectPersistence=aa,this._completeRedirectFn=Io,this._overrideRedirectResult=qs}_initialize(ce){var pe=this;return(0,t.Z)(function*(){return yield pe.selectUnderlyingResolver(),pe.assertedUnderlyingResolver._initialize(ce)})()}_openPopup(ce,pe,ze,nr){var Ir=this;return(0,t.Z)(function*(){return yield Ir.selectUnderlyingResolver(),Ir.assertedUnderlyingResolver._openPopup(ce,pe,ze,nr)})()}_openRedirect(ce,pe,ze,nr){var Ir=this;return(0,t.Z)(function*(){return yield Ir.selectUnderlyingResolver(),Ir.assertedUnderlyingResolver._openRedirect(ce,pe,ze,nr)})()}_isIframeWebStorageSupported(ce,pe){this.assertedUnderlyingResolver._isIframeWebStorageSupported(ce,pe)}_originValidation(ce){return this.assertedUnderlyingResolver._originValidation(ce)}get _shouldInitProactively(){return Qu()||this.browserResolver._shouldInitProactively}get assertedUnderlyingResolver(){return Bc(this.underlyingResolver,"internal-error"),this.underlyingResolver}selectUnderlyingResolver(){var ce=this;return(0,t.Z)(function*(){if(ce.underlyingResolver)return;const pe=yield function yd(){return Sl.apply(this,arguments)}();ce.underlyingResolver=pe?ce.cordovaResolver:ce.browserResolver})()}}function _c(Le){return Le.unwrap()}function af(Le){return of(Le)}function of(Le){const{_tokenResponse:ce}=Le instanceof l.ZR?Le.customData:Le;if(!ce)return null;if(!(Le instanceof l.ZR)&&"temporaryProof"in ce&&"phoneNumber"in ce)return Gn.credentialFromResult(Le);const pe=ce.providerId;if(!pe||"password"===pe)return null;let ze;switch(pe){case"google.com":ze=zn;break;case"facebook.com":ze=Vn;break;case"github.com":ze=ai;break;case"twitter.com":ze=Pn;break;default:const{oauthIdToken:nr,oauthAccessToken:Ir,oauthTokenSecret:an,pendingToken:wn,nonce:Jn}=ce;return Ir||an||nr||wn?wn?pe.startsWith("saml.")?wi._create(pe,wn):Or._fromParams({providerId:pe,signInMethod:pe,pendingToken:wn,idToken:nr,accessToken:Ir}):new Fn(pe).credential({idToken:nr,accessToken:Ir,rawNonce:Jn}):null}return Le instanceof l.ZR?ze.credentialFromError(Le):ze.credentialFromResult(Le)}function so(Le,ce){return ce.catch(pe=>{throw pe instanceof l.ZR&&function Qf(Le,ce){var pe;const ze=null===(pe=ce.customData)||void 0===pe?void 0:pe._tokenResponse;if("auth/multi-factor-auth-required"===(null==ce?void 0:ce.code))ce.resolver=new Ql(Le,function wo(Le,ce){var pe;const ze=(0,l.m9)(Le),nr=ce;return oe(ce.customData.operationType,ze,"argument-error"),oe(null===(pe=nr.customData._serverResponse)||void 0===pe?void 0:pe.mfaPendingCredential,ze,"argument-error"),ma._fromError(ze,nr)}(Le,ce));else if(ze){const nr=of(ce),Ir=ce;nr&&(Ir.credential=nr,Ir.tenantId=ze.tenantId||void 0,Ir.email=ze.email||void 0,Ir.phoneNumber=ze.phoneNumber||void 0)}}(Le,pe),pe}).then(pe=>{const nr=pe.user;return{operationType:pe.operationType,credential:af(pe),additionalUserInfo:wa(pe),user:Ya.getOrCreate(nr)}})}function bu(Le,ce){return Cc.apply(this,arguments)}function Cc(){return(Cc=(0,t.Z)(function*(Le,ce){const pe=yield ce;return{verificationId:pe.verificationId,confirm:ze=>so(Le,pe.confirm(ze))}})).apply(this,arguments)}class Ql{constructor(ce,pe){this.resolver=pe,this.auth=function yc(Le){return Le.wrapped()}(ce)}get session(){return this.resolver.session}get hints(){return this.resolver.hints}resolveSignIn(ce){return so(_c(this.auth),this.resolver.resolveSignIn(ce))}}class Ya{constructor(ce){this._delegate=ce,this.multiFactor=function Nn(Le){const ce=(0,l.m9)(Le);return Cn.has(ce)||Cn.set(ce,qr._fromUser(ce)),Cn.get(ce)}(ce)}static getOrCreate(ce){return Ya.USER_MAP.has(ce)||Ya.USER_MAP.set(ce,new Ya(ce)),Ya.USER_MAP.get(ce)}delete(){return this._delegate.delete()}reload(){return this._delegate.reload()}toJSON(){return this._delegate.toJSON()}getIdTokenResult(ce){return this._delegate.getIdTokenResult(ce)}getIdToken(ce){return this._delegate.getIdToken(ce)}linkAndRetrieveDataWithCredential(ce){return this.linkWithCredential(ce)}linkWithCredential(ce){var pe=this;return(0,t.Z)(function*(){return so(pe.auth,ks(pe._delegate,ce))})()}linkWithPhoneNumber(ce,pe){var ze=this;return(0,t.Z)(function*(){return bu(ze.auth,function uo(Le,ce,pe){return Ka.apply(this,arguments)}(ze._delegate,ce,pe))})()}linkWithPopup(ce){var pe=this;return(0,t.Z)(function*(){return so(pe.auth,function qa(Le,ce,pe){return No.apply(this,arguments)}(pe._delegate,ce,io))})()}linkWithRedirect(ce){var pe=this;return(0,t.Z)(function*(){return yield la(Se(pe.auth)),function hu(Le,ce,pe){return function uc(Le,ce,pe){return Uo.apply(this,arguments)}(Le,ce,pe)}(pe._delegate,ce,io)})()}reauthenticateAndRetrieveDataWithCredential(ce){return this.reauthenticateWithCredential(ce)}reauthenticateWithCredential(ce){var pe=this;return(0,t.Z)(function*(){return so(pe.auth,Qa(pe._delegate,ce))})()}reauthenticateWithPhoneNumber(ce,pe){return bu(this.auth,function ml(Le,ce,pe){return Vs.apply(this,arguments)}(this._delegate,ce,pe))}reauthenticateWithPopup(ce){return so(this.auth,function Ns(Le,ce,pe){return ku.apply(this,arguments)}(this._delegate,ce,io))}reauthenticateWithRedirect(ce){var pe=this;return(0,t.Z)(function*(){return yield la(Se(pe.auth)),function _l(Le,ce,pe){return function du(Le,ce,pe){return fu.apply(this,arguments)}(Le,ce,pe)}(pe._delegate,ce,io)})()}sendEmailVerification(ce){return function Rl(Le,ce){return So.apply(this,arguments)}(this._delegate,ce)}unlink(ce){var pe=this;return(0,t.Z)(function*(){return yield function hs(Le,ce){return Fi.apply(this,arguments)}(pe._delegate,ce),pe})()}updateEmail(ce){return function Eo(Le,ce){return oo((0,l.m9)(Le),ce,null)}(this._delegate,ce)}updatePassword(ce){return function Oo(Le,ce){return oo((0,l.m9)(Le),null,ce)}(this._delegate,ce)}updatePhoneNumber(ce){return function od(Le,ce){return Lu.apply(this,arguments)}(this._delegate,ce)}updateProfile(ce){return function Zo(Le,ce){return to.apply(this,arguments)}(this._delegate,ce)}verifyBeforeUpdateEmail(ce,pe){return function eo(Le,ce,pe){return ea.apply(this,arguments)}(this._delegate,ce,pe)}get emailVerified(){return this._delegate.emailVerified}get isAnonymous(){return this._delegate.isAnonymous}get metadata(){return this._delegate.metadata}get phoneNumber(){return this._delegate.phoneNumber}get providerData(){return this._delegate.providerData}get refreshToken(){return this._delegate.refreshToken}get tenantId(){return this._delegate.tenantId}get displayName(){return this._delegate.displayName}get email(){return this._delegate.email}get photoURL(){return this._delegate.photoURL}get providerId(){return this._delegate.providerId}get uid(){return this._delegate.uid}get auth(){return this._delegate.auth}}Ya.USER_MAP=new WeakMap;const Xu=oe;let Vo=(()=>{class Le{constructor(pe,ze){if(this.app=pe,ze.isInitialized())return this._delegate=ze.getImmediate(),void this.linkUnderlyingAuth();const{apiKey:nr}=pe.options;Xu(nr,"invalid-api-key",{appName:pe.name}),Xu(nr,"invalid-api-key",{appName:pe.name});const Ir=typeof window<"u"?io:void 0;this._delegate=ze.initialize({options:{persistence:Uc(nr,pe.name),popupRedirectResolver:Ir}}),this._delegate._updateErrorMap(H),this.linkUnderlyingAuth()}get emulatorConfig(){return this._delegate.emulatorConfig}get currentUser(){return this._delegate.currentUser?Ya.getOrCreate(this._delegate.currentUser):null}get languageCode(){return this._delegate.languageCode}set languageCode(pe){this._delegate.languageCode=pe}get settings(){return this._delegate.settings}get tenantId(){return this._delegate.tenantId}set tenantId(pe){this._delegate.tenantId=pe}useDeviceLanguage(){this._delegate.useDeviceLanguage()}signOut(){return this._delegate.signOut()}useEmulator(pe,ze){!function Ct(Le,ce,pe){const ze=Se(Le);oe(ze._canInitEmulator,ze,"emulator-config-failed"),oe(/^https?:\/\//.test(ce),ze,"invalid-emulator-scheme");const nr=!!(null==pe?void 0:pe.disableWarnings),Ir=zt(ce),{host:an,port:wn}=function kr(Le){const ce=zt(Le),pe=/(\/\/)?([^?#/]+)/.exec(Le.substr(ce.length));if(!pe)return{host:"",port:null};const ze=pe[2].split("@").pop()||"",nr=/^(\[[^\]]+\])(:|$)/.exec(ze);if(nr){const Ir=nr[1];return{host:Ir,port:Br(ze.substr(Ir.length+1))}}{const[Ir,an]=ze.split(":");return{host:Ir,port:Br(an)}}}(ce);ze.config.emulator={url:`${Ir}//${an}${null===wn?"":`:${wn}`}/`},ze.settings.appVerificationDisabledForTesting=!0,ze.emulatorConfig=Object.freeze({host:an,port:wn,protocol:Ir.replace(":",""),options:Object.freeze({disableWarnings:nr})}),nr||function xt(){function Le(){const ce=document.createElement("p"),pe=ce.style;ce.innerText="Running in emulator mode. Do not use with production credentials.",pe.position="fixed",pe.width="100%",pe.backgroundColor="#ffffff",pe.border=".1em solid #000000",pe.color="#b50000",pe.bottom="0px",pe.left="0px",pe.margin="0px",pe.zIndex="10000",pe.textAlign="center",ce.classList.add("firebase-emulator-warning"),document.body.appendChild(ce)}typeof console<"u"&&"function"==typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",Le):Le())}()}(this._delegate,pe,ze)}applyActionCode(pe){return function xn(Le,ce){return Hi.apply(this,arguments)}(this._delegate,pe)}checkActionCode(pe){return Xa(this._delegate,pe)}confirmPasswordReset(pe,ze){return function Na(Le,ce,pe){return sa.apply(this,arguments)}(this._delegate,pe,ze)}createUserWithEmailAndPassword(pe,ze){var nr=this;return(0,t.Z)(function*(){return so(nr._delegate,function wr(Le,ce,pe){return On.apply(this,arguments)}(nr._delegate,pe,ze))})()}fetchProvidersForEmail(pe){return this.fetchSignInMethodsForEmail(pe)}fetchSignInMethodsForEmail(pe){return function Ca(Le,ce){return Fa.apply(this,arguments)}(this._delegate,pe)}isSignInWithEmailLink(pe){return function Gi(Le,ce){const pe=yr.parseLink(ce);return"EMAIL_SIGNIN"===(null==pe?void 0:pe.operation)}(0,pe)}getRedirectResult(){var pe=this;return(0,t.Z)(function*(){Xu(yu(),pe._delegate,"operation-not-supported-in-this-environment");const ze=yield function _o(Le,ce){return Uu.apply(this,arguments)}(pe._delegate,io);return ze?so(pe._delegate,Promise.resolve(ze)):{credential:null,user:null}})()}addFrameworkForLogging(pe){!function pd(Le,ce){Se(Le)._logFramework(ce)}(this._delegate,pe)}onAuthStateChanged(pe,ze,nr){const{next:Ir,error:an,complete:wn}=Xl(pe,ze,nr);return this._delegate.onAuthStateChanged(Ir,an,wn)}onIdTokenChanged(pe,ze,nr){const{next:Ir,error:an,complete:wn}=Xl(pe,ze,nr);return this._delegate.onIdTokenChanged(Ir,an,wn)}sendSignInLinkToEmail(pe,ze){return function Si(Le,ce,pe){return Cs.apply(this,arguments)}(this._delegate,pe,ze)}sendPasswordResetEmail(pe,ze){return function Ki(Le,ce,pe){return zs.apply(this,arguments)}(this._delegate,pe,ze||void 0)}setPersistence(pe){var ze=this;return(0,t.Z)(function*(){let nr;switch(function Fc(Le,ce){Cu(Object.values(Va).includes(ce),Le,"invalid-persistence-type"),(0,l.b$)()?Cu(ce!==Va.SESSION,Le,"unsupported-persistence-type"):(0,l.UG)()?Cu(ce===Va.NONE,Le,"unsupported-persistence-type"):vc()?Cu(ce===Va.NONE||ce===Va.LOCAL&&(0,l.hl)(),Le,"unsupported-persistence-type"):Cu(ce===Va.NONE||$u(),Le,"unsupported-persistence-type")}(ze._delegate,pe),pe){case Va.SESSION:nr=aa;break;case Va.LOCAL:nr=(yield w(xi)._isAvailable())?xi:qi;break;case Va.NONE:nr=xe;break;default:return J("argument-error",{appName:ze._delegate.name})}return ze._delegate.setPersistence(nr)})()}signInAndRetrieveDataWithCredential(pe){return this.signInWithCredential(pe)}signInAnonymously(){return so(this._delegate,function di(Le){return Qi.apply(this,arguments)}(this._delegate))}signInWithCredential(pe){return so(this._delegate,ka(this._delegate,pe))}signInWithCustomToken(pe){return so(this._delegate,function jt(Le,ce){return Mt.apply(this,arguments)}(this._delegate,pe))}signInWithEmailAndPassword(pe,ze){return so(this._delegate,function Ci(Le,ce,pe){return ka((0,l.m9)(Le),dn.credential(ce,pe))}(this._delegate,pe,ze))}signInWithEmailLink(pe,ze){return so(this._delegate,function ha(Le,ce,pe){return As.apply(this,arguments)}(this._delegate,pe,ze))}signInWithPhoneNumber(pe,ze){return bu(this._delegate,function Ru(Le,ce,pe){return va.apply(this,arguments)}(this._delegate,pe,ze))}signInWithPopup(pe){var ze=this;return(0,t.Z)(function*(){return Xu(yu(),ze._delegate,"operation-not-supported-in-this-environment"),so(ze._delegate,function ud(Le,ce,pe){return oc.apply(this,arguments)}(ze._delegate,pe,io))})()}signInWithRedirect(pe){var ze=this;return(0,t.Z)(function*(){return Xu(yu(),ze._delegate,"operation-not-supported-in-this-environment"),yield la(ze._delegate),function _a(Le,ce,pe){return function vl(Le,ce,pe){return rl.apply(this,arguments)}(Le,ce,pe)}(ze._delegate,pe,io)})()}updateCurrentUser(pe){return this._delegate.updateCurrentUser(pe)}verifyPasswordResetCode(pe){return function cn(Le,ce){return Qt.apply(this,arguments)}(this._delegate,pe)}unwrap(){return this._delegate}_delete(){return this._delegate._delete()}linkUnderlyingAuth(){this._delegate.wrapped=()=>this}}return Le.Persistence=Va,Le})();function Xl(Le,ce,pe){let ze=Le;"function"!=typeof Le&&({next:ze,error:ce,complete:pe}=Le);const nr=ze;return{next:an=>nr(an&&Ya.getOrCreate(an)),error:ce,complete:pe}}function Uc(Le,ce){const pe=function Pa(Le,ce){const pe=Cd();if(!pe)return[];const ze=Fe(sl,Le,ce);switch(pe.getItem(ze)){case Va.NONE:return[xe];case Va.LOCAL:return[xi,aa];case Va.SESSION:return[aa];default:return[]}}(Le,ce);if(typeof self<"u"&&!pe.includes(xi)&&pe.push(xi),typeof window<"u")for(const ze of[qi,aa])pe.includes(ze)||pe.push(ze);return pe.includes(xe)||pe.push(xe),pe}class Hc{constructor(){this.providerId="phone",this._delegate=new Gn(_c(e.Z.auth()))}static credential(ce,pe){return Gn.credential(ce,pe)}verifyPhoneNumber(ce,pe){return this._delegate.verifyPhoneNumber(ce,pe)}unwrap(){return this._delegate}}Hc.PHONE_SIGN_IN_METHOD=Gn.PHONE_SIGN_IN_METHOD,Hc.PROVIDER_ID=Gn.PROVIDER_ID;const lf=oe;class uf{constructor(ce,pe,ze=e.Z.app()){var nr;lf(null===(nr=ze.options)||void 0===nr?void 0:nr.apiKey,"invalid-api-key",{appName:ze.name}),this._delegate=new Ou(ce,pe,ze.auth()),this.type=this._delegate.type}clear(){this._delegate.clear()}render(){return this._delegate.render()}verify(){return this._delegate.verify()}}!function Vh(Le){Le.INTERNAL.registerComponent(new y.wA("auth-compat",ce=>{const pe=ce.getProvider("app-compat").getImmediate(),ze=ce.getProvider("auth");return new Vo(pe,ze)},"PUBLIC").setServiceProps({ActionCodeInfo:{Operation:{EMAIL_SIGNIN:"EMAIL_SIGNIN",PASSWORD_RESET:"PASSWORD_RESET",RECOVER_EMAIL:"RECOVER_EMAIL",REVERT_SECOND_FACTOR_ADDITION:"REVERT_SECOND_FACTOR_ADDITION",VERIFY_AND_CHANGE_EMAIL:"VERIFY_AND_CHANGE_EMAIL",VERIFY_EMAIL:"VERIFY_EMAIL"}},EmailAuthProvider:dn,FacebookAuthProvider:Vn,GithubAuthProvider:ai,GoogleAuthProvider:zn,OAuthProvider:Fn,SAMLAuthProvider:$r,PhoneAuthProvider:Hc,PhoneMultiFactorGenerator:vu,RecaptchaVerifier:uf,TwitterAuthProvider:Pn,Auth:Vo,AuthCredential:tr,Error:l.ZR}).setInstantiationMode("LAZY").setMultipleInstances(!1)),Le.registerVersion("@firebase/auth-compat","0.3.7")}(e.Z)},26774:(M,b,n)=>{"use strict";n.d(b,{Gb:()=>t.Gb});var t=n(20908)},98766:(M,b,n)=>{"use strict";n.d(b,{Lj:()=>J,X3:()=>q});var t=n(49671);let l,h;const y=new WeakMap,g=new WeakMap,p=new WeakMap,f=new WeakMap,C=new WeakMap;let O={get(oe,B,s){if(oe instanceof IDBTransaction){if("done"===B)return g.get(oe);if("objectStoreNames"===B)return oe.objectStoreNames||p.get(oe);if("store"===B)return s.objectStoreNames[1]?void 0:s.objectStore(s.objectStoreNames[0])}return D(oe[B])},set:(oe,B,s)=>(oe[B]=s,!0),has:(oe,B)=>oe instanceof IDBTransaction&&("done"===B||"store"===B)||B in oe};function V(oe){return"function"==typeof oe?function F(oe){return oe!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function d(){return h||(h=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(oe)?function(...B){return oe.apply(U(this),B),D(y.get(this))}:function(...B){return D(oe.apply(U(this),B))}:function(B,...s){const _=oe.call(U(this),B,...s);return p.set(_,B.sort?B.sort():[B]),D(_)}}(oe):(oe instanceof IDBTransaction&&function a(oe){if(g.has(oe))return;const B=new Promise((s,_)=>{const w=()=>{oe.removeEventListener("complete",E),oe.removeEventListener("error",x),oe.removeEventListener("abort",x)},E=()=>{s(),w()},x=()=>{_(oe.error||new DOMException("AbortError","AbortError")),w()};oe.addEventListener("complete",E),oe.addEventListener("error",x),oe.addEventListener("abort",x)});g.set(oe,B)}(oe),((oe,B)=>B.some(s=>oe instanceof s))(oe,function r(){return l||(l=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(oe,O):oe)}function D(oe){if(oe instanceof IDBRequest)return function N(oe){const B=new Promise((s,_)=>{const w=()=>{oe.removeEventListener("success",E),oe.removeEventListener("error",x)},E=()=>{s(D(oe.result)),w()},x=()=>{_(oe.error),w()};oe.addEventListener("success",E),oe.addEventListener("error",x)});return B.then(s=>{s instanceof IDBCursor&&y.set(s,oe)}).catch(()=>{}),C.set(B,oe),B}(oe);if(f.has(oe))return f.get(oe);const B=V(oe);return B!==oe&&(f.set(oe,B),C.set(B,oe)),B}const U=oe=>C.get(oe);function q(oe,B,{blocked:s,upgrade:_,blocking:w,terminated:E}={}){const x=indexedDB.open(oe,B),j=D(x);return _&&x.addEventListener("upgradeneeded",$=>{_(D(x.result),$.oldVersion,$.newVersion,D(x.transaction))}),s&&x.addEventListener("blocked",()=>s()),j.then($=>{E&&$.addEventListener("close",()=>E()),w&&$.addEventListener("versionchange",()=>w())}).catch(()=>{}),j}function J(oe,{blocked:B}={}){const s=indexedDB.deleteDatabase(oe);return B&&s.addEventListener("blocked",()=>B()),D(s).then(()=>{})}const G=["get","getKey","getAll","getAllKeys","count"],ie=["put","add","delete","clear"],K=new Map;function re(oe,B){if(!(oe instanceof IDBDatabase)||B in oe||"string"!=typeof B)return;if(K.get(B))return K.get(B);const s=B.replace(/FromIndex$/,""),_=B!==s,w=ie.includes(s);if(!(s in(_?IDBIndex:IDBObjectStore).prototype)||!w&&!G.includes(s))return;const E=function(){var x=(0,t.Z)(function*(j,...$){const Y=this.transaction(j,w?"readwrite":"readonly");let u=Y.store;return _&&(u=u.index($.shift())),(yield Promise.all([u[s](...$),w&&Y.done]))[0]});return function($){return x.apply(this,arguments)}}();return K.set(B,E),E}!function H(oe){O=oe(O)}(oe=>({...oe,get:(B,s,_)=>re(B,s)||oe.get(B,s,_),has:(B,s)=>!!re(B,s)||oe.has(B,s)}))},43904:(M,b,n)=>{"use strict";n.d(b,{Yg:()=>r,qV:()=>h});var t=n(94650),e=n(36895),l=(()=>{return(d=l||(l={}))[d.OFFLINE=0]="OFFLINE",d[d.ONLINE=1]="ONLINE",l;var d})();let h=(()=>{class d{constructor(){this.status=new t.vpe(!0),this.bind(),typeof window<"u"&&(window.addEventListener(d.EVENT_TYPE_ONLINE,this.onOnline),window.addEventListener(d.EVENT_TYPE_OFFLINE,this.onOffline))}ngOnDestroy(){typeof window<"u"&&(window.removeEventListener(d.EVENT_TYPE_ONLINE,this.onOnline),window.removeEventListener(d.EVENT_TYPE_OFFLINE,this.onOffline))}getStatus(){return navigator.onLine?l.ONLINE:l.OFFLINE}bind(){this.onOnline=this.onOnline.bind(this),this.onOffline=this.onOffline.bind(this)}onOnline(){this.status.emit(l.ONLINE)}onOffline(){this.status.emit(l.OFFLINE)}}return d.EVENT_TYPE_ONLINE="online",d.EVENT_TYPE_OFFLINE="offline",d.\u0275fac=function(g){return new(g||d)},d.\u0275prov=t.Yz7({token:d,factory:d.\u0275fac}),d})(),r=(()=>{class d{}return d.\u0275fac=function(g){return new(g||d)},d.\u0275mod=t.oAB({type:d}),d.\u0275inj=t.cJS({providers:[h],imports:[[e.ez]]}),d})()},44946:M=>{"use strict";M.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},75207:M=>{"use strict";M.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},1308:M=>{"use strict";M.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},29799:M=>{"use strict";M.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},18597:M=>{"use strict";M.exports={i8:"6.5.4"}},22562:M=>{"use strict";M.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')},67005:M=>{"use strict";M.exports=JSON.parse('{"version":"12.9.14-snapshot.25","date":"\u06f1\u06f4\u06f0\u06f3/\u06f6/\u06f1\u06f9","VersionInfo":"Release: false, Snapshot: true, Is For Test: true"}')}},M=>{M(M.s=84464)}]);