{"ast":null,"code":"import _defineProperty from \"F:/workspace/huinongbao-app/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nvar _BooleanValueAccessorDirective, _NumericValueAccessorDirective, _SelectValueAccessorDirective, _TextValueAccessorDirective, _IonAccordion, _IonAccordionGroup, _IonActionSheet, _IonAlert, _IonApp, _IonAvatar, _IonBackdrop, _IonBadge, _IonBreadcrumb, _IonBreadcrumbs, _IonButton, _IonButtons, _IonCard, _IonCardContent, _IonCardHeader, _IonCardSubtitle, _IonCardTitle, _IonCheckbox, _IonChip, _IonCol, _IonContent, _IonDatetime, _IonDatetimeButton, _IonFab, _IonFabButton, _IonFabList, _IonFooter, _IonGrid, _IonHeader, _IonIcon, _IonImg, _IonInfiniteScroll, _IonInfiniteScrollContent, _IonInput, _IonInputPasswordToggle, _IonItem, _IonItemDivider, _IonItemGroup, _IonItemOption, _IonItemOptions, _IonItemSliding, _IonLabel, _IonList, _IonListHeader, _IonLoading, _IonMenu, _IonMenuButton, _IonMenuToggle, _IonNavLink, _IonNote, _IonPicker, _IonPickerColumn, _IonPickerColumnOption, _IonPickerLegacy, _IonProgressBar, _IonRadio, _IonRadioGroup, _IonRange, _IonRefresher, _IonRefresherContent, _IonReorder, _IonReorderGroup, _IonRippleEffect, _IonRow, _IonSearchbar, _IonSegment, _IonSegmentButton, _IonSegmentContent, _IonSegmentView, _IonSelect, _IonSelectModal, _IonSelectOption, _IonSkeletonText, _IonSpinner, _IonSplitPane, _IonTab, _IonTabBar, _IonTabButton, _IonText, _IonTextarea, _IonThumbnail, _IonTitle, _IonToast, _IonToggle, _IonToolbar, _IonRouterOutlet, _IonTabs, _IonBackButton, _IonNav, _RouterLinkDelegateDirective, _RouterLinkWithHrefDelegateDirective, _IonModal, _IonPopover, _IonMaxValidator, _IonMinValidator, _AlertController, _AnimationController, _ActionSheetController, _GestureController, _LoadingController, _MenuController, _ModalController, _PickerController, _ToastController, _IonicModule;\nconst _c0 = [\"*\"];\nconst _c1 = [\"outletContent\"];\nconst _c2 = [\"outlet\"];\nconst _c3 = [[[\"\", \"slot\", \"top\"]], \"*\", [[\"ion-tab\"]]];\nconst _c4 = [\"[slot=top]\", \"*\", \"ion-tab\"];\nfunction _IonTabs_ion_router_outlet_3_Template(rf, ctx) {\n if (rf & 1) {\n const _r1 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"ion-router-outlet\", 5, 1);\n i0.ɵɵlistener(\"stackWillChange\", function _IonTabs_ion_router_outlet_3_Template_ion_router_outlet_stackWillChange_0_listener($event) {\n i0.ɵɵrestoreView(_r1);\n const ctx_r1 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r1.onStackWillChange($event));\n })(\"stackDidChange\", function _IonTabs_ion_router_outlet_3_Template_ion_router_outlet_stackDidChange_0_listener($event) {\n i0.ɵɵrestoreView(_r1);\n const ctx_r1 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r1.onStackDidChange($event));\n });\n i0.ɵɵelementEnd();\n }\n}\nfunction _IonTabs_ng_content_4_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵprojection(0, 2, [\"*ngIf\", \"tabs.length > 0\"]);\n }\n}\nfunction _IonModal_div_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 1);\n i0.ɵɵelementContainer(1, 2);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.template);\n }\n}\nfunction _IonPopover_ng_container_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0, 1);\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.template);\n }\n}\nimport * as i0 from '@angular/core';\nimport { Directive, HostListener, Component, ChangeDetectionStrategy, ViewContainerRef, Attribute, Optional, SkipSelf, ViewChild, ContentChild, ContentChildren, forwardRef, Injectable, inject, Injector, EnvironmentInjector, APP_INITIALIZER, NgZone, NgModule } from '@angular/core';\nimport { NG_VALUE_ACCESSOR, NG_VALIDATORS, MaxValidator, MinValidator } from '@angular/forms';\nimport * as i2$1 from '@ionic/angular/common';\nimport { ValueAccessor, setIonicClasses, IonRouterOutlet as IonRouterOutlet$1, IonTabs as IonTabs$1, IonBackButton as IonBackButton$1, IonNav as IonNav$1, RouterLinkDelegateDirective as RouterLinkDelegateDirective$1, RouterLinkWithHrefDelegateDirective as RouterLinkWithHrefDelegateDirective$1, IonModal as IonModal$1, IonPopover as IonPopover$1, OverlayBaseController, MenuController as MenuController$1, AngularDelegate, raf, ConfigToken, provideComponentInputBinding } from '@ionic/angular/common';\nexport { AngularDelegate, Config, DomController, IonicRouteStrategy, NavController, NavParams, Platform } from '@ionic/angular/common';\nimport { __decorate } from 'tslib';\nimport { fromEvent } from 'rxjs';\nimport * as i1 from '@angular/common';\nimport { DOCUMENT, CommonModule } from '@angular/common';\nimport * as i2 from '@angular/router';\nimport { alertController, createAnimation, getTimeGivenProgression, actionSheetController, createGesture, loadingController, menuController, modalController, pickerController, popoverController, toastController, setupConfig } from '@ionic/core';\nexport { IonicSafeString, IonicSlides, createAnimation, createGesture, getIonPageElement, getPlatforms, getTimeGivenProgression, iosTransitionAnimation, isPlatform, mdTransitionAnimation, openURL } from '@ionic/core';\nimport { applyPolyfills, defineCustomElements } from '@ionic/core/loader';\nclass BooleanValueAccessorDirective extends ValueAccessor {\n constructor(injector, el) {\n super(injector, el);\n }\n writeValue(value) {\n this.elementRef.nativeElement.checked = this.lastValue = value;\n setIonicClasses(this.elementRef);\n }\n _handleIonChange(el) {\n this.handleValueChange(el, el.checked);\n }\n /** @nocollapse */\n}\n_BooleanValueAccessorDirective = BooleanValueAccessorDirective;\n_defineProperty(BooleanValueAccessorDirective, \"\\u0275fac\", function _BooleanValueAccessorDirective_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || _BooleanValueAccessorDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.ElementRef));\n});\n/** @nocollapse */\n_defineProperty(BooleanValueAccessorDirective, \"\\u0275dir\", /* @__PURE__ */i0.ɵɵdefineDirective({\n type: _BooleanValueAccessorDirective,\n selectors: [[\"ion-checkbox\"], [\"ion-toggle\"]],\n hostBindings: function _BooleanValueAccessorDirective_HostBindings(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵlistener(\"ionChange\", function _BooleanValueAccessorDirective_ionChange_HostBindingHandler($event) {\n return ctx._handleIonChange($event.target);\n });\n }\n },\n features: [i0.ɵɵProvidersFeature([{\n provide: NG_VALUE_ACCESSOR,\n useExisting: _BooleanValueAccessorDirective,\n multi: true\n }]), i0.ɵɵInheritDefinitionFeature]\n}));\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(BooleanValueAccessorDirective, [{\n type: Directive,\n args: [{\n selector: 'ion-checkbox,ion-toggle',\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: BooleanValueAccessorDirective,\n multi: true\n }]\n }]\n }], function () {\n return [{\n type: i0.Injector\n }, {\n type: i0.ElementRef\n }];\n }, {\n _handleIonChange: [{\n type: HostListener,\n args: ['ionChange', ['$event.target']]\n }]\n });\n})();\nclass NumericValueAccessorDirective extends ValueAccessor {\n constructor(injector, el) {\n super(injector, el);\n _defineProperty(this, \"el\", void 0);\n this.el = el;\n }\n handleInputEvent(el) {\n this.handleValueChange(el, el.value);\n }\n registerOnChange(fn) {\n if (this.el.nativeElement.tagName === 'ION-INPUT') {\n super.registerOnChange(value => {\n fn(value === '' ? null : parseFloat(value));\n });\n } else {\n super.registerOnChange(fn);\n }\n }\n /** @nocollapse */\n}\n_NumericValueAccessorDirective = NumericValueAccessorDirective;\n_defineProperty(NumericValueAccessorDirective, \"\\u0275fac\", function _NumericValueAccessorDirective_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || _NumericValueAccessorDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.ElementRef));\n});\n/** @nocollapse */\n_defineProperty(NumericValueAccessorDirective, \"\\u0275dir\", /* @__PURE__ */i0.ɵɵdefineDirective({\n type: _NumericValueAccessorDirective,\n selectors: [[\"ion-input\", \"type\", \"number\"], [\"ion-range\"]],\n hostBindings: function _NumericValueAccessorDirective_HostBindings(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵlistener(\"ionInput\", function _NumericValueAccessorDirective_ionInput_HostBindingHandler($event) {\n return ctx.handleInputEvent($event.target);\n });\n }\n },\n features: [i0.ɵɵProvidersFeature([{\n provide: NG_VALUE_ACCESSOR,\n useExisting: _NumericValueAccessorDirective,\n multi: true\n }]), i0.ɵɵInheritDefinitionFeature]\n}));\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(NumericValueAccessorDirective, [{\n type: Directive,\n args: [{\n selector: 'ion-input[type=number],ion-range',\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: NumericValueAccessorDirective,\n multi: true\n }]\n }]\n }], function () {\n return [{\n type: i0.Injector\n }, {\n type: i0.ElementRef\n }];\n }, {\n handleInputEvent: [{\n type: HostListener,\n args: ['ionInput', ['$event.target']]\n }]\n });\n})();\nclass SelectValueAccessorDirective extends ValueAccessor {\n constructor(injector, el) {\n super(injector, el);\n }\n _handleChangeEvent(el) {\n this.handleValueChange(el, el.value);\n }\n /** @nocollapse */\n}\n_SelectValueAccessorDirective = SelectValueAccessorDirective;\n_defineProperty(SelectValueAccessorDirective, \"\\u0275fac\", function _SelectValueAccessorDirective_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || _SelectValueAccessorDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.ElementRef));\n});\n/** @nocollapse */\n_defineProperty(SelectValueAccessorDirective, \"\\u0275dir\", /* @__PURE__ */i0.ɵɵdefineDirective({\n type: _SelectValueAccessorDirective,\n selectors: [[\"ion-select\"], [\"ion-radio-group\"], [\"ion-segment\"], [\"ion-datetime\"]],\n hostBindings: function _SelectValueAccessorDirective_HostBindings(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵlistener(\"ionChange\", function _SelectValueAccessorDirective_ionChange_HostBindingHandler($event) {\n return ctx._handleChangeEvent($event.target);\n });\n }\n },\n features: [i0.ɵɵProvidersFeature([{\n provide: NG_VALUE_ACCESSOR,\n useExisting: _SelectValueAccessorDirective,\n multi: true\n }]), i0.ɵɵInheritDefinitionFeature]\n}));\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(SelectValueAccessorDirective, [{\n type: Directive,\n args: [{\n /* tslint:disable-next-line:directive-selector */\n selector: 'ion-select, ion-radio-group, ion-segment, ion-datetime',\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: SelectValueAccessorDirective,\n multi: true\n }]\n }]\n }], function () {\n return [{\n type: i0.Injector\n }, {\n type: i0.ElementRef\n }];\n }, {\n _handleChangeEvent: [{\n type: HostListener,\n args: ['ionChange', ['$event.target']]\n }]\n });\n})();\nclass TextValueAccessorDirective extends ValueAccessor {\n constructor(injector, el) {\n super(injector, el);\n }\n _handleInputEvent(el) {\n this.handleValueChange(el, el.value);\n }\n /** @nocollapse */\n}\n_TextValueAccessorDirective = TextValueAccessorDirective;\n_defineProperty(TextValueAccessorDirective, \"\\u0275fac\", function _TextValueAccessorDirective_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || _TextValueAccessorDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.ElementRef));\n});\n/** @nocollapse */\n_defineProperty(TextValueAccessorDirective, \"\\u0275dir\", /* @__PURE__ */i0.ɵɵdefineDirective({\n type: _TextValueAccessorDirective,\n selectors: [[\"ion-input\", 3, \"type\", \"number\"], [\"ion-textarea\"], [\"ion-searchbar\"]],\n hostBindings: function _TextValueAccessorDirective_HostBindings(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵlistener(\"ionInput\", function _TextValueAccessorDirective_ionInput_HostBindingHandler($event) {\n return ctx._handleInputEvent($event.target);\n });\n }\n },\n features: [i0.ɵɵProvidersFeature([{\n provide: NG_VALUE_ACCESSOR,\n useExisting: _TextValueAccessorDirective,\n multi: true\n }]), i0.ɵɵInheritDefinitionFeature]\n}));\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(TextValueAccessorDirective, [{\n type: Directive,\n args: [{\n selector: 'ion-input:not([type=number]),ion-textarea,ion-searchbar',\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: TextValueAccessorDirective,\n multi: true\n }]\n }]\n }], function () {\n return [{\n type: i0.Injector\n }, {\n type: i0.ElementRef\n }];\n }, {\n _handleInputEvent: [{\n type: HostListener,\n args: ['ionInput', ['$event.target']]\n }]\n });\n})();\n\n/* eslint-disable */\n/* tslint:disable */\nconst proxyInputs = (Cmp, inputs) => {\n const Prototype = Cmp.prototype;\n inputs.forEach(item => {\n Object.defineProperty(Prototype, item, {\n get() {\n return this.el[item];\n },\n set(val) {\n this.z.runOutsideAngular(() => this.el[item] = val);\n },\n /**\n * In the event that proxyInputs is called\n * multiple times re-defining these inputs\n * will cause an error to be thrown. As a result\n * we set configurable: true to indicate these\n * properties can be changed.\n */\n configurable: true\n });\n });\n};\nconst proxyMethods = (Cmp, methods) => {\n const Prototype = Cmp.prototype;\n methods.forEach(methodName => {\n Prototype[methodName] = function () {\n const args = arguments;\n return this.z.runOutsideAngular(() => this.el[methodName].apply(this.el, args));\n };\n });\n};\nconst proxyOutputs = (instance, el, events) => {\n events.forEach(eventName => instance[eventName] = fromEvent(el, eventName));\n};\nconst defineCustomElement = (tagName, customElement) => {\n if (customElement !== undefined && typeof customElements !== 'undefined' && !customElements.get(tagName)) {\n customElements.define(tagName, customElement);\n }\n};\n// tslint:disable-next-line: only-arrow-functions\nfunction ProxyCmp(opts) {\n const decorator = function (cls) {\n const {\n defineCustomElementFn,\n inputs,\n methods\n } = opts;\n if (defineCustomElementFn !== undefined) {\n defineCustomElementFn();\n }\n if (inputs) {\n proxyInputs(cls, inputs);\n }\n if (methods) {\n proxyMethods(cls, methods);\n }\n return cls;\n };\n return decorator;\n}\nlet IonAccordion = (_IonAccordion = class IonAccordion {\n constructor(c, r, z) {\n _defineProperty(this, \"z\", void 0);\n _defineProperty(this, \"el\", void 0);\n this.z = z;\n c.detach();\n this.el = r.nativeElement;\n }\n /** @nocollapse */\n}, _defineProperty(_IonAccordion, \"\\u0275fac\", function _IonAccordion_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || _IonAccordion)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.NgZone));\n}), _defineProperty(_IonAccordion, \"\\u0275cmp\", /* @__PURE__ */i0.ɵɵdefineComponent({\n type: _IonAccordion,\n selectors: [[\"ion-accordion\"]],\n inputs: {\n disabled: \"disabled\",\n mode: \"mode\",\n readonly: \"readonly\",\n toggleIcon: \"toggleIcon\",\n toggleIconSlot: \"toggleIconSlot\",\n value: \"value\"\n },\n ngContentSelectors: _c0,\n decls: 1,\n vars: 0,\n template: function _IonAccordion_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵprojectionDef();\n i0.ɵɵprojection(0);\n }\n },\n encapsulation: 2,\n changeDetection: 0\n})), _IonAccordion);\nIonAccordion = __decorate([ProxyCmp({\n inputs: ['disabled', 'mode', 'readonly', 'toggleIcon', 'toggleIconSlot', 'value']\n})], IonAccordion);\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(IonAccordion, [{\n type: Component,\n args: [{\n selector: 'ion-accordion',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: '