diff --git a/README.md b/README.md index dd8d958c..a8bc4cca 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,19 @@ EnRecipes is an easy to use, privacy-friendly digital cookbook that lets you cre Lots of interesting features on the way... +## Screenshots + +![EnRecipes](fastlane/metadata/android/en-US/images/phoneScreenshots/1.png) +![Delete Recipe](fastlane/metadata/android/en-US/images/phoneScreenshots/2.png) +![View Recipe](fastlane/metadata/android/en-US/images/phoneScreenshots/3.png) +![Ingredients](fastlane/metadata/android/en-US/images/phoneScreenshots/4.png) +![Edit Recipe](fastlane/metadata/android/en-US/images/phoneScreenshots/5.png) +![Share](fastlane/metadata/android/en-US/images/phoneScreenshots/6.png) +![Side Drawer](fastlane/metadata/android/en-US/images/phoneScreenshots/7.png) +![Mealplanner](fastlane/metadata/android/en-US/images/phoneScreenshots/8.png) +![About](fastlane/metadata/android/en-US/images/phoneScreenshots/9.png) +![Dark Mode](fastlane/metadata/android/en-US/images/phoneScreenshots/10.png) + ## Credits This app was written in my free time using NativeScript. I would like to thank all those people who helped me understand the concepts during the process and my special thanks to the NativeScript team and the community. diff --git a/app/components/ViewRecipe.vue b/app/components/ViewRecipe.vue index b5730e9a..cd2eab5c 100644 --- a/app/components/ViewRecipe.vue +++ b/app/components/ViewRecipe.vue @@ -383,29 +383,7 @@ - - - - - + @@ -438,6 +416,10 @@ import { Utils, GestureTypes, Tabs, + Span, + FormattedString, + Label, + StackLayout, } from "@nativescript/core" import { Feedback, FeedbackType, FeedbackPosition } from "nativescript-feedback" import * as Toast from "nativescript-toast" @@ -723,13 +705,44 @@ export default { openURL(url) { Utils.openUrl(url) }, - copyURL(url) { - const clipboard = Utils.ad - .getApplicationContext() - .getSystemService(android.content.Context.CLIPBOARD_SERVICE) - const clip = android.content.ClipData.newPlainText("URl", url) - clipboard.setPrimaryClip(clip) - Toast.makeText("URL Copied").show() + createNote(note) { + const vm = this + let regex = /(https?:\/\/[^\s]+)/g + let label = new Label() + label.class = "textCard" + label.textWrap = true + let dispDensity = Utils.layout.getDisplayDensity() + let formattedString = new FormattedString() + let textArray = note.split(regex) + console.log(dispDensity) + + function createSpan(text, isUrl) { + let span = new Span() + span.text = text + span.fontSize = 16 + if (isUrl) { + span.textDecoration = "underline" + span.color = "#ff5200" + span.on("linkTap", () => Utils.openUrl(text)) + } + formattedString.spans.push(span) + } + + textArray.forEach((text) => { + createSpan(text, regex.test(text)) + }) + + label.formattedText = formattedString + + return label + }, + createNotes(args) { + const stack = args.object + if (!stack.getChildrenCount()) { + this.recipe.notes.forEach((note) => { + stack.addChild(this.createNote(note)) + }) + } }, }, created() { diff --git a/fastlane/metadata/android/en-US/images/phoneScreenshots/1.png b/fastlane/metadata/android/en-US/images/phoneScreenshots/1.png new file mode 100644 index 00000000..0c1a3e85 Binary files /dev/null and b/fastlane/metadata/android/en-US/images/phoneScreenshots/1.png differ diff --git a/fastlane/metadata/android/en-US/images/phoneScreenshots/10.png b/fastlane/metadata/android/en-US/images/phoneScreenshots/10.png new file mode 100644 index 00000000..fe0b254e Binary files /dev/null and b/fastlane/metadata/android/en-US/images/phoneScreenshots/10.png differ diff --git a/fastlane/metadata/android/en-US/images/phoneScreenshots/2.png b/fastlane/metadata/android/en-US/images/phoneScreenshots/2.png new file mode 100644 index 00000000..ece1d742 Binary files /dev/null and b/fastlane/metadata/android/en-US/images/phoneScreenshots/2.png differ diff --git a/fastlane/metadata/android/en-US/images/phoneScreenshots/3.png b/fastlane/metadata/android/en-US/images/phoneScreenshots/3.png new file mode 100644 index 00000000..dc063438 Binary files /dev/null and b/fastlane/metadata/android/en-US/images/phoneScreenshots/3.png differ diff --git a/fastlane/metadata/android/en-US/images/phoneScreenshots/4.png b/fastlane/metadata/android/en-US/images/phoneScreenshots/4.png new file mode 100644 index 00000000..9d7a475a Binary files /dev/null and b/fastlane/metadata/android/en-US/images/phoneScreenshots/4.png differ diff --git a/fastlane/metadata/android/en-US/images/phoneScreenshots/5.png b/fastlane/metadata/android/en-US/images/phoneScreenshots/5.png new file mode 100644 index 00000000..3030d1b4 Binary files /dev/null and b/fastlane/metadata/android/en-US/images/phoneScreenshots/5.png differ diff --git a/fastlane/metadata/android/en-US/images/phoneScreenshots/6.png b/fastlane/metadata/android/en-US/images/phoneScreenshots/6.png new file mode 100644 index 00000000..db1fa6b9 Binary files /dev/null and b/fastlane/metadata/android/en-US/images/phoneScreenshots/6.png differ diff --git a/fastlane/metadata/android/en-US/images/phoneScreenshots/7.png b/fastlane/metadata/android/en-US/images/phoneScreenshots/7.png new file mode 100644 index 00000000..1cf3fc6c Binary files /dev/null and b/fastlane/metadata/android/en-US/images/phoneScreenshots/7.png differ diff --git a/fastlane/metadata/android/en-US/images/phoneScreenshots/8.png b/fastlane/metadata/android/en-US/images/phoneScreenshots/8.png new file mode 100644 index 00000000..eb8c09e6 Binary files /dev/null and b/fastlane/metadata/android/en-US/images/phoneScreenshots/8.png differ diff --git a/fastlane/metadata/android/en-US/images/phoneScreenshots/9.png b/fastlane/metadata/android/en-US/images/phoneScreenshots/9.png new file mode 100644 index 00000000..ba3125bf Binary files /dev/null and b/fastlane/metadata/android/en-US/images/phoneScreenshots/9.png differ diff --git a/platforms/android/.gradle/6.4/executionHistory/executionHistory.bin b/platforms/android/.gradle/6.4/executionHistory/executionHistory.bin index 8c0d06f8..98f50967 100644 Binary files a/platforms/android/.gradle/6.4/executionHistory/executionHistory.bin and b/platforms/android/.gradle/6.4/executionHistory/executionHistory.bin differ diff --git a/platforms/android/.gradle/6.4/executionHistory/executionHistory.lock b/platforms/android/.gradle/6.4/executionHistory/executionHistory.lock index 58218c09..ed5799d3 100644 Binary files a/platforms/android/.gradle/6.4/executionHistory/executionHistory.lock and b/platforms/android/.gradle/6.4/executionHistory/executionHistory.lock differ diff --git a/platforms/android/.gradle/6.4/fileHashes/fileHashes.bin b/platforms/android/.gradle/6.4/fileHashes/fileHashes.bin index e5202284..278bae52 100644 Binary files a/platforms/android/.gradle/6.4/fileHashes/fileHashes.bin and b/platforms/android/.gradle/6.4/fileHashes/fileHashes.bin differ diff --git a/platforms/android/.gradle/6.4/fileHashes/fileHashes.lock b/platforms/android/.gradle/6.4/fileHashes/fileHashes.lock index bf7b8178..fbee658b 100644 Binary files a/platforms/android/.gradle/6.4/fileHashes/fileHashes.lock and b/platforms/android/.gradle/6.4/fileHashes/fileHashes.lock differ diff --git a/platforms/android/.gradle/6.4/fileHashes/resourceHashesCache.bin b/platforms/android/.gradle/6.4/fileHashes/resourceHashesCache.bin index e3b6986d..e0830cab 100644 Binary files a/platforms/android/.gradle/6.4/fileHashes/resourceHashesCache.bin and b/platforms/android/.gradle/6.4/fileHashes/resourceHashesCache.bin differ diff --git a/platforms/android/.gradle/6.4/javaCompile/javaCompile.lock b/platforms/android/.gradle/6.4/javaCompile/javaCompile.lock index 1109470f..69bb6502 100644 Binary files a/platforms/android/.gradle/6.4/javaCompile/javaCompile.lock and b/platforms/android/.gradle/6.4/javaCompile/javaCompile.lock differ diff --git a/platforms/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/platforms/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock index 59f0cce4..017de44c 100644 Binary files a/platforms/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock and b/platforms/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ diff --git a/platforms/android/.nsprepareinfo b/platforms/android/.nsprepareinfo index 7a2c0322..c4483eea 100644 --- a/platforms/android/.nsprepareinfo +++ b/platforms/android/.nsprepareinfo @@ -1,8 +1,8 @@ { - "time": "Tue Dec 01 2020 14:41:20 GMT+0530 (India Standard Time)", + "time": "Wed Dec 02 2020 15:14:23 GMT+0530 (India Standard Time)", "nativePlatformStatus": "3", "changesRequireBuild": true, "projectFileHash": "7e76fcc579c6b048fb6a6099b9da9192f2f9ca58fe7cc504fe760ca454b8d7ae", - "changesRequireBuildTime": "Tue Dec 01 2020 14:41:20 GMT+0530 (India Standard Time)", + "changesRequireBuildTime": "Wed Dec 02 2020 15:14:23 GMT+0530 (India Standard Time)", "release": true } \ No newline at end of file diff --git a/platforms/android/app/build/intermediates/incremental/mergeReleaseResources/compile-file-map.properties b/platforms/android/app/build/intermediates/incremental/mergeReleaseResources/compile-file-map.properties index 3c1aed1f..f4e24c77 100644 --- a/platforms/android/app/build/intermediates/incremental/mergeReleaseResources/compile-file-map.properties +++ b/platforms/android/app/build/intermediates/incremental/mergeReleaseResources/compile-file-map.properties @@ -1,4 +1,4 @@ -#Tue Dec 01 14:41:24 IST 2020 +#Wed Dec 02 15:14:34 IST 2020 /mnt/82e5ff15-70b8-44a5-bb66-55688fc2381f/Freelance/Projects/WIP/EnRecipes/Developement/EnRecipes/platforms/android/app/src/main/res/drawable-anydpi-v26/ic_launcher.xml=/mnt/82e5ff15-70b8-44a5-bb66-55688fc2381f/Freelance/Projects/WIP/EnRecipes/Developement/EnRecipes/platforms/android/app/build/intermediates/res/merged/release/drawable-anydpi-v26_ic_launcher.xml.flat /mnt/82e5ff15-70b8-44a5-bb66-55688fc2381f/Freelance/Projects/WIP/EnRecipes/Developement/EnRecipes/platforms/android/app/src/main/res/drawable-mdpi/logo.png=/mnt/82e5ff15-70b8-44a5-bb66-55688fc2381f/Freelance/Projects/WIP/EnRecipes/Developement/EnRecipes/platforms/android/app/build/intermediates/res/merged/release/drawable-mdpi_logo.png.flat /mnt/82e5ff15-70b8-44a5-bb66-55688fc2381f/Freelance/Projects/WIP/EnRecipes/Developement/EnRecipes/platforms/android/app/src/main/res/drawable-xxhdpi/share.png=/mnt/82e5ff15-70b8-44a5-bb66-55688fc2381f/Freelance/Projects/WIP/EnRecipes/Developement/EnRecipes/platforms/android/app/build/intermediates/res/merged/release/drawable-xxhdpi_share.png.flat diff --git a/platforms/android/app/build/intermediates/incremental/packageRelease/tmp/release/dex-renamer-state.txt b/platforms/android/app/build/intermediates/incremental/packageRelease/tmp/release/dex-renamer-state.txt index d35860a5..1674ad5f 100644 --- a/platforms/android/app/build/intermediates/incremental/packageRelease/tmp/release/dex-renamer-state.txt +++ b/platforms/android/app/build/intermediates/incremental/packageRelease/tmp/release/dex-renamer-state.txt @@ -1,4 +1,4 @@ -#Tue Dec 01 14:41:56 IST 2020 +#Wed Dec 02 15:15:07 IST 2020 base.0=/mnt/82e5ff15-70b8-44a5-bb66-55688fc2381f/Freelance/Projects/WIP/EnRecipes/Developement/EnRecipes/platforms/android/app/build/intermediates/dex/release/out/classes.dex path.0=classes.dex renamed.0=classes.dex diff --git a/platforms/android/app/build/intermediates/incremental/packageRelease/tmp/release/zip-cache/javaResources0 b/platforms/android/app/build/intermediates/incremental/packageRelease/tmp/release/zip-cache/javaResources0 index c8d810e2..7c500788 100644 Binary files a/platforms/android/app/build/intermediates/incremental/packageRelease/tmp/release/zip-cache/javaResources0 and b/platforms/android/app/build/intermediates/incremental/packageRelease/tmp/release/zip-cache/javaResources0 differ diff --git a/platforms/android/app/build/intermediates/merged_assets/release/out/app/bundle.js b/platforms/android/app/build/intermediates/merged_assets/release/out/app/bundle.js index 6adc75b7..7fa076f7 100644 --- a/platforms/android/app/build/intermediates/merged_assets/release/out/app/bundle.js +++ b/platforms/android/app/build/intermediates/merged_assets/release/out/app/bundle.js @@ -1 +1 @@ -require("./runtime.js");require("./vendor.js");module.exports=(global.webpackJsonp=global.webpackJsonp||[]).push([[0],{139:function(e,t,r){"use strict";r.r(t);var a=r(58),o=r.n(a),i=r(31),l=r(113),n=r(17),s=new l.Couchbase("EnRecipes"),p=new l.Couchbase("userCategories"),c=new l.Couchbase("userYieldUnits"),d=new l.Couchbase("mealPlans");o.a.use(i.a);var u=["Appetizers","BBQ","Beverages","Breads","Breakfast","Desserts","Dinner","Drinks","Healthy","Lunch","Main dishes","Meat","Noodles","Pasta","Poultry","Rice","Salads","Sauces","Seafood","Side dishes","Snacks","Soups","Undefined","Vegan","Vegetarian"],y=["Serving","Piece","Teaspoon","Tablespoon","Fluid Ounce","Ounce","Pound","Gram","Kilogram","Cup","Gallon","Millilitre","Litre","Roll","Patty","Loaf"];t.default=new i.a.Store({state:{recipes:[],categories:[],userCategories:[],units:["unit","tsp","dsp","tbsp","fl oz","cup","pt","qt","gal","ml","l","oz","lb","mg","g","kg","cm","in","leaf","clove","pinch","drop","dozen","stick","small","medium","large"],yieldUnits:[],userYieldUnits:[],mealPlans:[],icon:{home:"",heart:"",heartOutline:"",label:"",labelOutline:"",cog:"",info:"",menu:"",search:"",sort:"",plus:"",plusCircle:"",close:"",image:"",food:"",back:"",save:"",camera:"",share:"",edit:"",theme:"",link:"",file:"",detail:"",user:"",trash:"",donate:"",trylater:"",trylaterOutline:"",note:"",copy:"",check:"",telegram:"",time:"",item:"",step:"",source:"",export:"",import:"",outline:"",calendar:"",today:""},currentComponent:"EnRecipes"},mutations:{initializeRecipes(e){s.query({select:[]}).forEach(t=>{e.recipes.push(t)})},initializeCategories(e){var t=p.query({select:[]}).length;if(t){e.userCategories=p.getDocument("userCategories").userCategories;var r=e.recipes.map(e=>e.category);e.userCategories=e.userCategories.filter(e=>r.includes(e))}else p.createDocument({userCategories:[]},"userCategories");e.categories=[...u,...e.userCategories];e.categories.sort()},initializeYieldUnits(e){var t=c.query({select:[]}).length;if(t){e.userYieldUnits=c.getDocument("userYieldUnits").userYieldUnits;var r=e.recipes.map(e=>e.yield.unit);e.userYieldUnits=e.userYieldUnits.filter(e=>r.includes(e))}else c.createDocument({userYieldUnits:[]},"userYieldUnits");e.yieldUnits=[...y,...e.userYieldUnits]},initializeMealPlans(e){var t=d.query({select:[]}).length;t?e.mealPlans=d.getDocument("mealPlans").mealPlans:d.createDocument({mealPlans:[]},"mealPlans")},importRecipes(e,t){var r,a;if(e.recipes.length){r=e.recipes.map(e=>e.id);a=t.reduce((e,t,a)=>{r.indexOf(t.id)<0?e[0].push(t):e[1].push(t);return e},[[],[]]);a[0].length&&createDocuments(a[0]);a[1].length&&function updateDocuments(t){t=getUpdatedData(t);t.forEach(t=>{var r=e.recipes.map((e,r)=>{var a=new Date(e.lastModified).getTime(),o=new Date(t.lastModified).getTime();return e.id===t.id&&ae>=0)[0];if(r>=0){Object.assign(e.recipes[r],t);s.updateDocument(t.id,t)}})}(a[1])}else createDocuments(t);function getUpdatedData(e){return e.map(e=>{var t=Object.assign({},e);if(t.timeRequired){t.prepTime="00:00";t.cookTime=t.timeRequired;delete t.timeRequired}return t})}function createDocuments(t){t=getUpdatedData(t);e.recipes=[...e.recipes,...t];t.forEach(e=>{s.createDocument(e,e.id)})}},importCategories(e,t){e.userCategories=new Set([...e.userCategories,...t]);p.updateDocument("userCategories",{userCategories:[...e.userCategories]});e.categories=[...u,...e.userCategories];e.categories.sort()},importYieldUnits(e,t){e.userYieldUnits=new Set([...e.userYieldUnits,...t]);c.updateDocument("userYieldUnits",{userYieldUnits:[...e.userYieldUnits]});e.yieldUnits=[...y,...e.userYieldUnits]},importMealPlans(e,t){var r=t.filter(t=>!e.mealPlans.some(e=>e.title===t.title&&e.startDate===t.startDate));e.mealPlans=[...e.mealPlans,...r];d.updateDocument("mealPlans",{mealPlans:[...e.mealPlans]})},addRecipe(e,t){var{id:r,recipe:a}=t;e.recipes.push(a);s.createDocument(a,r)},addCategory(e,t){var r=e.categories.map(e=>e.toLowerCase());if(-1==r.indexOf(t.toLowerCase())){e.userCategories.push(t);p.updateDocument("userCategories",{userCategories:[...e.userCategories]});e.categories=[...u,...e.userCategories];e.categories.sort()}},addYieldUnit(e,t){var r=e.yieldUnits.map(e=>e.toLowerCase());if(-1==r.indexOf(t.toLowerCase())){e.userYieldUnits.push(t);c.updateDocument("userYieldUnits",{userYieldUnits:[...e.userYieldUnits]});e.yieldUnits=[...y,...e.userYieldUnits]}},addMealPlan(e,t){var{event:r,eventColor:a}=t;e.mealPlans.push({title:r.title,startDate:r.startDate,endDate:r.endDate,eventColor:a});d.updateDocument("mealPlans",{mealPlans:[...e.mealPlans]})},deleteRecipe(e,t){var{index:r,id:a}=t;Object(n.getFileAccess)().deleteFile(e.recipes[r].imageSrc);e.recipes.splice(r,1);s.deleteDocument(a);e.recipes.forEach((t,r)=>{if(t.combinations.includes(a)){e.recipes[r].combinations.splice(t.combinations.indexOf(a),1);s.updateDocument(e.recipes[r].id,e.recipes[r])}})},deleteMealPlan(e,t){var{title:r,startDate:a}=t,o=e.mealPlans.filter(e=>{console.log(e.startDate,a);var t=new Date(e.startDate).getTime();return e.title===r&&t===a.getTime()})[0],i=e.mealPlans.indexOf(o);e.mealPlans.splice(i,1);e.mealPlans=[...e.mealPlans];var l=d.getDocument("mealPlans").mealPlans;l.splice(i,1);d.updateDocument("mealPlans",{mealPlans:[...l]})},overwriteRecipe(e,t){var{id:r,recipe:a}=t,o=e.recipes.indexOf(e.recipes.filter(e=>e.id===r)[0]);Object.assign(e.recipes[o],a);s.updateDocument(r,a)},toggleState(e,t){var{id:r,recipe:a,key:o,setDate:i}=t,l=e.recipes.indexOf(e.recipes.filter(e=>e.id===r)[0]);e.recipes[l][o]=!e.recipes[l][o];i&&(e.recipes[l].lastTried=new Date);s.updateDocument(r,a)},setRecipeAsTried(e,t){var{id:r,recipe:a}=t,o=e.recipes.indexOf(e.recipes.filter(e=>e.id===r)[0]);e.recipes[o].tried=!0;e.recipes[o].lastTried=new Date;s.updateDocument(r,a)},setLastTriedDate(e,t){e.recipes[t].lastTried=new Date;s.updateDocument(e.recipes[t].id,e.recipes[t])},renameCategory(e,t){var{current:r,updated:a}=t,o=e.categories.map(e=>e.toLowerCase());if(-1==o.indexOf(a.toLowerCase())){e.userCategories.push(a);p.updateDocument("userCategories",{userCategories:[...e.userCategories]});e.categories=[...u,...e.userCategories];e.categories.sort()}e.recipes.forEach((t,o)=>{if(t.category==r){e.recipes[o].category=a;s.inBatch(()=>{s.updateDocument(e.recipes[o].id,e.recipes[o])})}})},setCurrentComponent(e,t){e.currentComponent=t},unSyncCombinations(e,t){var{id:r,combinations:a}=t;e.recipes.forEach((t,o)=>{if(a.includes(t.id)){e.recipes[o].combinations.splice(t.combinations.indexOf(r),1);s.updateDocument(e.recipes[o].id,e.recipes[o])}})}},actions:{initializeRecipes(e){var{commit:t}=e;t("initializeRecipes")},initializeCategories(e){var{commit:t}=e;t("initializeCategories")},initializeYieldUnits(e){var{commit:t}=e;t("initializeYieldUnits")},initializeMealPlans(e){var{commit:t}=e;t("initializeMealPlans")},importRecipesAction(e,t){var{commit:r}=e;r("importRecipes",t)},importCategoriesAction(e,t){var{commit:r}=e;r("importCategories",t)},importYieldUnitsAction(e,t){var{commit:r}=e;r("importYieldUnits",t)},importMealPlansAction(e,t){var{commit:r}=e;r("importMealPlans",t)},addRecipeAction(e,t){var{commit:r}=e;r("addRecipe",t)},addYieldUnitAction(e,t){var{commit:r}=e;r("addYieldUnit",t)},addCategoryAction(e,t){var{commit:r}=e;r("addCategory",t)},addMealPlanAction(e,t){var{commit:r}=e;r("addMealPlan",t)},deleteMealPlanAction(e,t){var{commit:r}=e;r("deleteMealPlan",t)},deleteRecipeAction(e,t){var{commit:r}=e;r("deleteRecipe",t)},overwriteRecipeAction(e,t){var{commit:r}=e;r("overwriteRecipe",t)},toggleStateAction(e,t){var{commit:r}=e;r("toggleState",t)},setRecipeAsTriedAction(e,t){var{commit:r}=e;r("setRecipeAsTried",t)},setLastTriedDateAction(e,t){var{commit:r}=e;r("setLastTriedDate",t)},renameCategoryAction(e,t){var{commit:r}=e;r("renameCategory",t)},setCurrentComponentAction(e,t){var{commit:r}=e;r("setCurrentComponent",t)},unSyncCombinationsAction(e,t){var{commit:r}=e;r("unSyncCombinations",t)}}})},146:function(e,t,r){"use strict";r.r(t);(function(e){r(325);var t=r(58),a=r.n(t),o=r(189),i=r(139),l=r(194),n=r(190),s=r(191),p=r(185),c=r(192),d=r(193),u=r(195),y=r(196),g=r(188);const m=r(3).isAndroid;if(m&&!e.__snapshot){r(41);r(320)}r(321)();0;const h=r(324);e.registerWebpackModules(h);0;a.a.use(l.a);a.a.use(n.a);a.a.use(s.a);a.a.use(p.a);a.a.use(c.a);a.a.use(d.a);a.a.use(u.a);a.a.use(y.a);a.a.registerElement("CheckBox",()=>g.a,{model:{prop:"checked",event:"checkedChange"}});a.a.config.silent=!0;new a.a({store:i.default,render:e=>e("frame",[e(o.a)])}).$start()}).call(this,r(20))},147:function(e,t){e.exports=require("~/package.json")},171:function(e,t,r){e.exports={type:"stylesheet",stylesheet:{rules:[{type:"comment",comment:"!\n * NativeScript Theme __VERSION__ (https://nativescript.org)\n * Copyright 2016-2016 The Theme Authors\n * Copyright 2016-2019 Progress Software\n * Licensed under Apache 2.0 (https://github.com/NativeScript/theme/blob/master/LICENSE)\n "},{type:"keyframes",name:"empty",keyframes:[]},{type:"rule",selectors:[".c-black"],declarations:[{type:"declaration",property:"color",value:"#000"}]},{type:"rule",selectors:[".c-bg-black"],declarations:[{type:"declaration",property:"background-color",value:"#000"}]},{type:"rule",selectors:[".c-white"],declarations:[{type:"declaration",property:"color",value:"#fff"}]},{type:"rule",selectors:[".c-bg-white"],declarations:[{type:"declaration",property:"background-color",value:"#fff"}]},{type:"rule",selectors:[".c-grey"],declarations:[{type:"declaration",property:"color",value:"#e0e0e0"}]},{type:"rule",selectors:[".c-bg-grey"],declarations:[{type:"declaration",property:"background-color",value:"#e0e0e0"}]},{type:"rule",selectors:[".c-grey-light"],declarations:[{type:"declaration",property:"color",value:"#bababa"}]},{type:"rule",selectors:[".c-bg-grey-light"],declarations:[{type:"declaration",property:"background-color",value:"#bababa"}]},{type:"rule",selectors:[".c-charcoal"],declarations:[{type:"declaration",property:"color",value:"#303030"}]},{type:"rule",selectors:[".c-bg-charcoal"],declarations:[{type:"declaration",property:"background-color",value:"#303030"}]},{type:"rule",selectors:[".c-transparent"],declarations:[{type:"declaration",property:"color",value:"rgba(0,0,0,0)"}]},{type:"rule",selectors:[".c-bg-transparent"],declarations:[{type:"declaration",property:"background-color",value:"rgba(0,0,0,0)"}]},{type:"rule",selectors:[".c-aqua"],declarations:[{type:"declaration",property:"color",value:"#00caab"}]},{type:"rule",selectors:[".c-bg-aqua"],declarations:[{type:"declaration",property:"background-color",value:"#00caab"}]},{type:"rule",selectors:[".c-blue"],declarations:[{type:"declaration",property:"color",value:"#3a53ff"}]},{type:"rule",selectors:[".c-bg-blue"],declarations:[{type:"declaration",property:"background-color",value:"#3a53ff"}]},{type:"rule",selectors:[".c-brown"],declarations:[{type:"declaration",property:"color",value:"#795548"}]},{type:"rule",selectors:[".c-bg-brown"],declarations:[{type:"declaration",property:"background-color",value:"#795548"}]},{type:"rule",selectors:[".c-forest"],declarations:[{type:"declaration",property:"color",value:"#006968"}]},{type:"rule",selectors:[".c-bg-forest"],declarations:[{type:"declaration",property:"background-color",value:"#006968"}]},{type:"rule",selectors:[".c-grey-dark"],declarations:[{type:"declaration",property:"color",value:"#5c687c"}]},{type:"rule",selectors:[".c-bg-grey-dark"],declarations:[{type:"declaration",property:"background-color",value:"#5c687c"}]},{type:"rule",selectors:[".c-purple"],declarations:[{type:"declaration",property:"color",value:"#8130ff"}]},{type:"rule",selectors:[".c-bg-purple"],declarations:[{type:"declaration",property:"background-color",value:"#8130ff"}]},{type:"rule",selectors:[".c-lemon"],declarations:[{type:"declaration",property:"color",value:"#ffea00"}]},{type:"rule",selectors:[".c-bg-lemon"],declarations:[{type:"declaration",property:"background-color",value:"#ffea00"}]},{type:"rule",selectors:[".c-lime"],declarations:[{type:"declaration",property:"color",value:"#aee406"}]},{type:"rule",selectors:[".c-bg-lime"],declarations:[{type:"declaration",property:"background-color",value:"#aee406"}]},{type:"rule",selectors:[".c-orange"],declarations:[{type:"declaration",property:"color",value:"#f57c00"}]},{type:"rule",selectors:[".c-bg-orange"],declarations:[{type:"declaration",property:"background-color",value:"#f57c00"}]},{type:"rule",selectors:[".c-ruby"],declarations:[{type:"declaration",property:"color",value:"#ff1744"}]},{type:"rule",selectors:[".c-bg-ruby"],declarations:[{type:"declaration",property:"background-color",value:"#ff1744"}]},{type:"rule",selectors:[".c-sky"],declarations:[{type:"declaration",property:"color",value:"#30bcff"}]},{type:"rule",selectors:[".c-bg-sky"],declarations:[{type:"declaration",property:"background-color",value:"#30bcff"}]},{type:"rule",selectors:[".c-error"],declarations:[{type:"declaration",property:"color",value:"#d50000"}]},{type:"rule",selectors:[".c-bg-error"],declarations:[{type:"declaration",property:"background-color",value:"#d50000"}]},{type:"rule",selectors:[".w-full"],declarations:[{type:"declaration",property:"width",value:"100%"}]},{type:"rule",selectors:[".w-100"],declarations:[{type:"declaration",property:"width",value:"100"}]},{type:"rule",selectors:[".h-full"],declarations:[{type:"declaration",property:"height",value:"100%"}]},{type:"rule",selectors:[".h-100"],declarations:[{type:"declaration",property:"height",value:"100"}]},{type:"rule",selectors:[".m-0"],declarations:[{type:"declaration",property:"margin",value:"0"}]},{type:"rule",selectors:[".m-t-0"],declarations:[{type:"declaration",property:"margin-top",value:"0"}]},{type:"rule",selectors:[".m-r-0"],declarations:[{type:"declaration",property:"margin-right",value:"0"}]},{type:"rule",selectors:[".m-b-0"],declarations:[{type:"declaration",property:"margin-bottom",value:"0"}]},{type:"rule",selectors:[".m-l-0"],declarations:[{type:"declaration",property:"margin-left",value:"0"}]},{type:"rule",selectors:[".m-x-0"],declarations:[{type:"declaration",property:"margin-right",value:"0"},{type:"declaration",property:"margin-left",value:"0"}]},{type:"rule",selectors:[".m-y-0"],declarations:[{type:"declaration",property:"margin-top",value:"0"},{type:"declaration",property:"margin-bottom",value:"0"}]},{type:"rule",selectors:[".m-2"],declarations:[{type:"declaration",property:"margin",value:"2"}]},{type:"rule",selectors:[".m-t-2"],declarations:[{type:"declaration",property:"margin-top",value:"2"}]},{type:"rule",selectors:[".m-r-2"],declarations:[{type:"declaration",property:"margin-right",value:"2"}]},{type:"rule",selectors:[".m-b-2"],declarations:[{type:"declaration",property:"margin-bottom",value:"2"}]},{type:"rule",selectors:[".m-l-2"],declarations:[{type:"declaration",property:"margin-left",value:"2"}]},{type:"rule",selectors:[".m-x-2"],declarations:[{type:"declaration",property:"margin-right",value:"2"},{type:"declaration",property:"margin-left",value:"2"}]},{type:"rule",selectors:[".m-y-2"],declarations:[{type:"declaration",property:"margin-top",value:"2"},{type:"declaration",property:"margin-bottom",value:"2"}]},{type:"rule",selectors:[".m-4"],declarations:[{type:"declaration",property:"margin",value:"4"}]},{type:"rule",selectors:[".m-t-4"],declarations:[{type:"declaration",property:"margin-top",value:"4"}]},{type:"rule",selectors:[".m-r-4"],declarations:[{type:"declaration",property:"margin-right",value:"4"}]},{type:"rule",selectors:[".m-b-4"],declarations:[{type:"declaration",property:"margin-bottom",value:"4"}]},{type:"rule",selectors:[".m-l-4"],declarations:[{type:"declaration",property:"margin-left",value:"4"}]},{type:"rule",selectors:[".m-x-4"],declarations:[{type:"declaration",property:"margin-right",value:"4"},{type:"declaration",property:"margin-left",value:"4"}]},{type:"rule",selectors:[".m-y-4"],declarations:[{type:"declaration",property:"margin-top",value:"4"},{type:"declaration",property:"margin-bottom",value:"4"}]},{type:"rule",selectors:[".m-5"],declarations:[{type:"declaration",property:"margin",value:"5"}]},{type:"rule",selectors:[".m-t-5"],declarations:[{type:"declaration",property:"margin-top",value:"5"}]},{type:"rule",selectors:[".m-r-5"],declarations:[{type:"declaration",property:"margin-right",value:"5"}]},{type:"rule",selectors:[".m-b-5"],declarations:[{type:"declaration",property:"margin-bottom",value:"5"}]},{type:"rule",selectors:[".m-l-5"],declarations:[{type:"declaration",property:"margin-left",value:"5"}]},{type:"rule",selectors:[".m-x-5"],declarations:[{type:"declaration",property:"margin-right",value:"5"},{type:"declaration",property:"margin-left",value:"5"}]},{type:"rule",selectors:[".m-y-5"],declarations:[{type:"declaration",property:"margin-top",value:"5"},{type:"declaration",property:"margin-bottom",value:"5"}]},{type:"rule",selectors:[".m-8"],declarations:[{type:"declaration",property:"margin",value:"8"}]},{type:"rule",selectors:[".m-t-8"],declarations:[{type:"declaration",property:"margin-top",value:"8"}]},{type:"rule",selectors:[".m-r-8"],declarations:[{type:"declaration",property:"margin-right",value:"8"}]},{type:"rule",selectors:[".m-b-8"],declarations:[{type:"declaration",property:"margin-bottom",value:"8"}]},{type:"rule",selectors:[".m-l-8"],declarations:[{type:"declaration",property:"margin-left",value:"8"}]},{type:"rule",selectors:[".m-x-8"],declarations:[{type:"declaration",property:"margin-right",value:"8"},{type:"declaration",property:"margin-left",value:"8"}]},{type:"rule",selectors:[".m-y-8"],declarations:[{type:"declaration",property:"margin-top",value:"8"},{type:"declaration",property:"margin-bottom",value:"8"}]},{type:"rule",selectors:[".m-10"],declarations:[{type:"declaration",property:"margin",value:"10"}]},{type:"rule",selectors:[".m-t-10"],declarations:[{type:"declaration",property:"margin-top",value:"10"}]},{type:"rule",selectors:[".m-r-10"],declarations:[{type:"declaration",property:"margin-right",value:"10"}]},{type:"rule",selectors:[".m-b-10"],declarations:[{type:"declaration",property:"margin-bottom",value:"10"}]},{type:"rule",selectors:[".m-l-10"],declarations:[{type:"declaration",property:"margin-left",value:"10"}]},{type:"rule",selectors:[".m-x-10"],declarations:[{type:"declaration",property:"margin-right",value:"10"},{type:"declaration",property:"margin-left",value:"10"}]},{type:"rule",selectors:[".m-y-10"],declarations:[{type:"declaration",property:"margin-top",value:"10"},{type:"declaration",property:"margin-bottom",value:"10"}]},{type:"rule",selectors:[".m-12"],declarations:[{type:"declaration",property:"margin",value:"12"}]},{type:"rule",selectors:[".m-t-12"],declarations:[{type:"declaration",property:"margin-top",value:"12"}]},{type:"rule",selectors:[".m-r-12"],declarations:[{type:"declaration",property:"margin-right",value:"12"}]},{type:"rule",selectors:[".m-b-12"],declarations:[{type:"declaration",property:"margin-bottom",value:"12"}]},{type:"rule",selectors:[".m-l-12"],declarations:[{type:"declaration",property:"margin-left",value:"12"}]},{type:"rule",selectors:[".m-x-12"],declarations:[{type:"declaration",property:"margin-right",value:"12"},{type:"declaration",property:"margin-left",value:"12"}]},{type:"rule",selectors:[".m-y-12"],declarations:[{type:"declaration",property:"margin-top",value:"12"},{type:"declaration",property:"margin-bottom",value:"12"}]},{type:"rule",selectors:[".m-15"],declarations:[{type:"declaration",property:"margin",value:"15"}]},{type:"rule",selectors:[".m-t-15"],declarations:[{type:"declaration",property:"margin-top",value:"15"}]},{type:"rule",selectors:[".m-r-15"],declarations:[{type:"declaration",property:"margin-right",value:"15"}]},{type:"rule",selectors:[".m-b-15"],declarations:[{type:"declaration",property:"margin-bottom",value:"15"}]},{type:"rule",selectors:[".m-l-15"],declarations:[{type:"declaration",property:"margin-left",value:"15"}]},{type:"rule",selectors:[".m-x-15"],declarations:[{type:"declaration",property:"margin-right",value:"15"},{type:"declaration",property:"margin-left",value:"15"}]},{type:"rule",selectors:[".m-y-15"],declarations:[{type:"declaration",property:"margin-top",value:"15"},{type:"declaration",property:"margin-bottom",value:"15"}]},{type:"rule",selectors:[".m-16"],declarations:[{type:"declaration",property:"margin",value:"16"}]},{type:"rule",selectors:[".m-t-16"],declarations:[{type:"declaration",property:"margin-top",value:"16"}]},{type:"rule",selectors:[".m-r-16"],declarations:[{type:"declaration",property:"margin-right",value:"16"}]},{type:"rule",selectors:[".m-b-16"],declarations:[{type:"declaration",property:"margin-bottom",value:"16"}]},{type:"rule",selectors:[".m-l-16"],declarations:[{type:"declaration",property:"margin-left",value:"16"}]},{type:"rule",selectors:[".m-x-16"],declarations:[{type:"declaration",property:"margin-right",value:"16"},{type:"declaration",property:"margin-left",value:"16"}]},{type:"rule",selectors:[".m-y-16"],declarations:[{type:"declaration",property:"margin-top",value:"16"},{type:"declaration",property:"margin-bottom",value:"16"}]},{type:"rule",selectors:[".m-20"],declarations:[{type:"declaration",property:"margin",value:"20"}]},{type:"rule",selectors:[".m-t-20"],declarations:[{type:"declaration",property:"margin-top",value:"20"}]},{type:"rule",selectors:[".m-r-20"],declarations:[{type:"declaration",property:"margin-right",value:"20"}]},{type:"rule",selectors:[".m-b-20"],declarations:[{type:"declaration",property:"margin-bottom",value:"20"}]},{type:"rule",selectors:[".m-l-20"],declarations:[{type:"declaration",property:"margin-left",value:"20"}]},{type:"rule",selectors:[".m-x-20"],declarations:[{type:"declaration",property:"margin-right",value:"20"},{type:"declaration",property:"margin-left",value:"20"}]},{type:"rule",selectors:[".m-y-20"],declarations:[{type:"declaration",property:"margin-top",value:"20"},{type:"declaration",property:"margin-bottom",value:"20"}]},{type:"rule",selectors:[".m-24"],declarations:[{type:"declaration",property:"margin",value:"24"}]},{type:"rule",selectors:[".m-t-24"],declarations:[{type:"declaration",property:"margin-top",value:"24"}]},{type:"rule",selectors:[".m-r-24"],declarations:[{type:"declaration",property:"margin-right",value:"24"}]},{type:"rule",selectors:[".m-b-24"],declarations:[{type:"declaration",property:"margin-bottom",value:"24"}]},{type:"rule",selectors:[".m-l-24"],declarations:[{type:"declaration",property:"margin-left",value:"24"}]},{type:"rule",selectors:[".m-x-24"],declarations:[{type:"declaration",property:"margin-right",value:"24"},{type:"declaration",property:"margin-left",value:"24"}]},{type:"rule",selectors:[".m-y-24"],declarations:[{type:"declaration",property:"margin-top",value:"24"},{type:"declaration",property:"margin-bottom",value:"24"}]},{type:"rule",selectors:[".m-25"],declarations:[{type:"declaration",property:"margin",value:"25"}]},{type:"rule",selectors:[".m-t-25"],declarations:[{type:"declaration",property:"margin-top",value:"25"}]},{type:"rule",selectors:[".m-r-25"],declarations:[{type:"declaration",property:"margin-right",value:"25"}]},{type:"rule",selectors:[".m-b-25"],declarations:[{type:"declaration",property:"margin-bottom",value:"25"}]},{type:"rule",selectors:[".m-l-25"],declarations:[{type:"declaration",property:"margin-left",value:"25"}]},{type:"rule",selectors:[".m-x-25"],declarations:[{type:"declaration",property:"margin-right",value:"25"},{type:"declaration",property:"margin-left",value:"25"}]},{type:"rule",selectors:[".m-y-25"],declarations:[{type:"declaration",property:"margin-top",value:"25"},{type:"declaration",property:"margin-bottom",value:"25"}]},{type:"rule",selectors:[".m-28"],declarations:[{type:"declaration",property:"margin",value:"28"}]},{type:"rule",selectors:[".m-t-28"],declarations:[{type:"declaration",property:"margin-top",value:"28"}]},{type:"rule",selectors:[".m-r-28"],declarations:[{type:"declaration",property:"margin-right",value:"28"}]},{type:"rule",selectors:[".m-b-28"],declarations:[{type:"declaration",property:"margin-bottom",value:"28"}]},{type:"rule",selectors:[".m-l-28"],declarations:[{type:"declaration",property:"margin-left",value:"28"}]},{type:"rule",selectors:[".m-x-28"],declarations:[{type:"declaration",property:"margin-right",value:"28"},{type:"declaration",property:"margin-left",value:"28"}]},{type:"rule",selectors:[".m-y-28"],declarations:[{type:"declaration",property:"margin-top",value:"28"},{type:"declaration",property:"margin-bottom",value:"28"}]},{type:"rule",selectors:[".m-30"],declarations:[{type:"declaration",property:"margin",value:"30"}]},{type:"rule",selectors:[".m-t-30"],declarations:[{type:"declaration",property:"margin-top",value:"30"}]},{type:"rule",selectors:[".m-r-30"],declarations:[{type:"declaration",property:"margin-right",value:"30"}]},{type:"rule",selectors:[".m-b-30"],declarations:[{type:"declaration",property:"margin-bottom",value:"30"}]},{type:"rule",selectors:[".m-l-30"],declarations:[{type:"declaration",property:"margin-left",value:"30"}]},{type:"rule",selectors:[".m-x-30"],declarations:[{type:"declaration",property:"margin-right",value:"30"},{type:"declaration",property:"margin-left",value:"30"}]},{type:"rule",selectors:[".m-y-30"],declarations:[{type:"declaration",property:"margin-top",value:"30"},{type:"declaration",property:"margin-bottom",value:"30"}]},{type:"rule",selectors:[".p-0"],declarations:[{type:"declaration",property:"padding",value:"0"}]},{type:"rule",selectors:[".p-t-0"],declarations:[{type:"declaration",property:"padding-top",value:"0"}]},{type:"rule",selectors:[".p-r-0"],declarations:[{type:"declaration",property:"padding-right",value:"0"}]},{type:"rule",selectors:[".p-b-0"],declarations:[{type:"declaration",property:"padding-bottom",value:"0"}]},{type:"rule",selectors:[".p-l-0"],declarations:[{type:"declaration",property:"padding-left",value:"0"}]},{type:"rule",selectors:[".p-x-0"],declarations:[{type:"declaration",property:"padding-right",value:"0"},{type:"declaration",property:"padding-left",value:"0"}]},{type:"rule",selectors:[".p-y-0"],declarations:[{type:"declaration",property:"padding-top",value:"0"},{type:"declaration",property:"padding-bottom",value:"0"}]},{type:"rule",selectors:[".p-2"],declarations:[{type:"declaration",property:"padding",value:"2"}]},{type:"rule",selectors:[".p-t-2"],declarations:[{type:"declaration",property:"padding-top",value:"2"}]},{type:"rule",selectors:[".p-r-2"],declarations:[{type:"declaration",property:"padding-right",value:"2"}]},{type:"rule",selectors:[".p-b-2"],declarations:[{type:"declaration",property:"padding-bottom",value:"2"}]},{type:"rule",selectors:[".p-l-2"],declarations:[{type:"declaration",property:"padding-left",value:"2"}]},{type:"rule",selectors:[".p-x-2"],declarations:[{type:"declaration",property:"padding-right",value:"2"},{type:"declaration",property:"padding-left",value:"2"}]},{type:"rule",selectors:[".p-y-2"],declarations:[{type:"declaration",property:"padding-top",value:"2"},{type:"declaration",property:"padding-bottom",value:"2"}]},{type:"rule",selectors:[".p-4"],declarations:[{type:"declaration",property:"padding",value:"4"}]},{type:"rule",selectors:[".p-t-4"],declarations:[{type:"declaration",property:"padding-top",value:"4"}]},{type:"rule",selectors:[".p-r-4"],declarations:[{type:"declaration",property:"padding-right",value:"4"}]},{type:"rule",selectors:[".p-b-4"],declarations:[{type:"declaration",property:"padding-bottom",value:"4"}]},{type:"rule",selectors:[".p-l-4"],declarations:[{type:"declaration",property:"padding-left",value:"4"}]},{type:"rule",selectors:[".p-x-4"],declarations:[{type:"declaration",property:"padding-right",value:"4"},{type:"declaration",property:"padding-left",value:"4"}]},{type:"rule",selectors:[".p-y-4"],declarations:[{type:"declaration",property:"padding-top",value:"4"},{type:"declaration",property:"padding-bottom",value:"4"}]},{type:"rule",selectors:[".p-5"],declarations:[{type:"declaration",property:"padding",value:"5"}]},{type:"rule",selectors:[".p-t-5"],declarations:[{type:"declaration",property:"padding-top",value:"5"}]},{type:"rule",selectors:[".p-r-5"],declarations:[{type:"declaration",property:"padding-right",value:"5"}]},{type:"rule",selectors:[".p-b-5"],declarations:[{type:"declaration",property:"padding-bottom",value:"5"}]},{type:"rule",selectors:[".p-l-5"],declarations:[{type:"declaration",property:"padding-left",value:"5"}]},{type:"rule",selectors:[".p-x-5"],declarations:[{type:"declaration",property:"padding-right",value:"5"},{type:"declaration",property:"padding-left",value:"5"}]},{type:"rule",selectors:[".p-y-5"],declarations:[{type:"declaration",property:"padding-top",value:"5"},{type:"declaration",property:"padding-bottom",value:"5"}]},{type:"rule",selectors:[".p-8"],declarations:[{type:"declaration",property:"padding",value:"8"}]},{type:"rule",selectors:[".p-t-8"],declarations:[{type:"declaration",property:"padding-top",value:"8"}]},{type:"rule",selectors:[".p-r-8"],declarations:[{type:"declaration",property:"padding-right",value:"8"}]},{type:"rule",selectors:[".p-b-8"],declarations:[{type:"declaration",property:"padding-bottom",value:"8"}]},{type:"rule",selectors:[".p-l-8"],declarations:[{type:"declaration",property:"padding-left",value:"8"}]},{type:"rule",selectors:[".p-x-8"],declarations:[{type:"declaration",property:"padding-right",value:"8"},{type:"declaration",property:"padding-left",value:"8"}]},{type:"rule",selectors:[".p-y-8"],declarations:[{type:"declaration",property:"padding-top",value:"8"},{type:"declaration",property:"padding-bottom",value:"8"}]},{type:"rule",selectors:[".p-10"],declarations:[{type:"declaration",property:"padding",value:"10"}]},{type:"rule",selectors:[".p-t-10"],declarations:[{type:"declaration",property:"padding-top",value:"10"}]},{type:"rule",selectors:[".p-r-10"],declarations:[{type:"declaration",property:"padding-right",value:"10"}]},{type:"rule",selectors:[".p-b-10"],declarations:[{type:"declaration",property:"padding-bottom",value:"10"}]},{type:"rule",selectors:[".p-l-10"],declarations:[{type:"declaration",property:"padding-left",value:"10"}]},{type:"rule",selectors:[".p-x-10"],declarations:[{type:"declaration",property:"padding-right",value:"10"},{type:"declaration",property:"padding-left",value:"10"}]},{type:"rule",selectors:[".p-y-10"],declarations:[{type:"declaration",property:"padding-top",value:"10"},{type:"declaration",property:"padding-bottom",value:"10"}]},{type:"rule",selectors:[".p-12"],declarations:[{type:"declaration",property:"padding",value:"12"}]},{type:"rule",selectors:[".p-t-12"],declarations:[{type:"declaration",property:"padding-top",value:"12"}]},{type:"rule",selectors:[".p-r-12"],declarations:[{type:"declaration",property:"padding-right",value:"12"}]},{type:"rule",selectors:[".p-b-12"],declarations:[{type:"declaration",property:"padding-bottom",value:"12"}]},{type:"rule",selectors:[".p-l-12"],declarations:[{type:"declaration",property:"padding-left",value:"12"}]},{type:"rule",selectors:[".p-x-12"],declarations:[{type:"declaration",property:"padding-right",value:"12"},{type:"declaration",property:"padding-left",value:"12"}]},{type:"rule",selectors:[".p-y-12"],declarations:[{type:"declaration",property:"padding-top",value:"12"},{type:"declaration",property:"padding-bottom",value:"12"}]},{type:"rule",selectors:[".p-15"],declarations:[{type:"declaration",property:"padding",value:"15"}]},{type:"rule",selectors:[".p-t-15"],declarations:[{type:"declaration",property:"padding-top",value:"15"}]},{type:"rule",selectors:[".p-r-15"],declarations:[{type:"declaration",property:"padding-right",value:"15"}]},{type:"rule",selectors:[".p-b-15"],declarations:[{type:"declaration",property:"padding-bottom",value:"15"}]},{type:"rule",selectors:[".p-l-15"],declarations:[{type:"declaration",property:"padding-left",value:"15"}]},{type:"rule",selectors:[".p-x-15"],declarations:[{type:"declaration",property:"padding-right",value:"15"},{type:"declaration",property:"padding-left",value:"15"}]},{type:"rule",selectors:[".p-y-15"],declarations:[{type:"declaration",property:"padding-top",value:"15"},{type:"declaration",property:"padding-bottom",value:"15"}]},{type:"rule",selectors:[".p-16"],declarations:[{type:"declaration",property:"padding",value:"16"}]},{type:"rule",selectors:[".p-t-16"],declarations:[{type:"declaration",property:"padding-top",value:"16"}]},{type:"rule",selectors:[".p-r-16"],declarations:[{type:"declaration",property:"padding-right",value:"16"}]},{type:"rule",selectors:[".p-b-16"],declarations:[{type:"declaration",property:"padding-bottom",value:"16"}]},{type:"rule",selectors:[".p-l-16"],declarations:[{type:"declaration",property:"padding-left",value:"16"}]},{type:"rule",selectors:[".p-x-16"],declarations:[{type:"declaration",property:"padding-right",value:"16"},{type:"declaration",property:"padding-left",value:"16"}]},{type:"rule",selectors:[".p-y-16"],declarations:[{type:"declaration",property:"padding-top",value:"16"},{type:"declaration",property:"padding-bottom",value:"16"}]},{type:"rule",selectors:[".p-20"],declarations:[{type:"declaration",property:"padding",value:"20"}]},{type:"rule",selectors:[".p-t-20"],declarations:[{type:"declaration",property:"padding-top",value:"20"}]},{type:"rule",selectors:[".p-r-20"],declarations:[{type:"declaration",property:"padding-right",value:"20"}]},{type:"rule",selectors:[".p-b-20"],declarations:[{type:"declaration",property:"padding-bottom",value:"20"}]},{type:"rule",selectors:[".p-l-20"],declarations:[{type:"declaration",property:"padding-left",value:"20"}]},{type:"rule",selectors:[".p-x-20"],declarations:[{type:"declaration",property:"padding-right",value:"20"},{type:"declaration",property:"padding-left",value:"20"}]},{type:"rule",selectors:[".p-y-20"],declarations:[{type:"declaration",property:"padding-top",value:"20"},{type:"declaration",property:"padding-bottom",value:"20"}]},{type:"rule",selectors:[".p-24"],declarations:[{type:"declaration",property:"padding",value:"24"}]},{type:"rule",selectors:[".p-t-24"],declarations:[{type:"declaration",property:"padding-top",value:"24"}]},{type:"rule",selectors:[".p-r-24"],declarations:[{type:"declaration",property:"padding-right",value:"24"}]},{type:"rule",selectors:[".p-b-24"],declarations:[{type:"declaration",property:"padding-bottom",value:"24"}]},{type:"rule",selectors:[".p-l-24"],declarations:[{type:"declaration",property:"padding-left",value:"24"}]},{type:"rule",selectors:[".p-x-24"],declarations:[{type:"declaration",property:"padding-right",value:"24"},{type:"declaration",property:"padding-left",value:"24"}]},{type:"rule",selectors:[".p-y-24"],declarations:[{type:"declaration",property:"padding-top",value:"24"},{type:"declaration",property:"padding-bottom",value:"24"}]},{type:"rule",selectors:[".p-25"],declarations:[{type:"declaration",property:"padding",value:"25"}]},{type:"rule",selectors:[".p-t-25"],declarations:[{type:"declaration",property:"padding-top",value:"25"}]},{type:"rule",selectors:[".p-r-25"],declarations:[{type:"declaration",property:"padding-right",value:"25"}]},{type:"rule",selectors:[".p-b-25"],declarations:[{type:"declaration",property:"padding-bottom",value:"25"}]},{type:"rule",selectors:[".p-l-25"],declarations:[{type:"declaration",property:"padding-left",value:"25"}]},{type:"rule",selectors:[".p-x-25"],declarations:[{type:"declaration",property:"padding-right",value:"25"},{type:"declaration",property:"padding-left",value:"25"}]},{type:"rule",selectors:[".p-y-25"],declarations:[{type:"declaration",property:"padding-top",value:"25"},{type:"declaration",property:"padding-bottom",value:"25"}]},{type:"rule",selectors:[".p-28"],declarations:[{type:"declaration",property:"padding",value:"28"}]},{type:"rule",selectors:[".p-t-28"],declarations:[{type:"declaration",property:"padding-top",value:"28"}]},{type:"rule",selectors:[".p-r-28"],declarations:[{type:"declaration",property:"padding-right",value:"28"}]},{type:"rule",selectors:[".p-b-28"],declarations:[{type:"declaration",property:"padding-bottom",value:"28"}]},{type:"rule",selectors:[".p-l-28"],declarations:[{type:"declaration",property:"padding-left",value:"28"}]},{type:"rule",selectors:[".p-x-28"],declarations:[{type:"declaration",property:"padding-right",value:"28"},{type:"declaration",property:"padding-left",value:"28"}]},{type:"rule",selectors:[".p-y-28"],declarations:[{type:"declaration",property:"padding-top",value:"28"},{type:"declaration",property:"padding-bottom",value:"28"}]},{type:"rule",selectors:[".p-30"],declarations:[{type:"declaration",property:"padding",value:"30"}]},{type:"rule",selectors:[".p-t-30"],declarations:[{type:"declaration",property:"padding-top",value:"30"}]},{type:"rule",selectors:[".p-r-30"],declarations:[{type:"declaration",property:"padding-right",value:"30"}]},{type:"rule",selectors:[".p-b-30"],declarations:[{type:"declaration",property:"padding-bottom",value:"30"}]},{type:"rule",selectors:[".p-l-30"],declarations:[{type:"declaration",property:"padding-left",value:"30"}]},{type:"rule",selectors:[".p-x-30"],declarations:[{type:"declaration",property:"padding-right",value:"30"},{type:"declaration",property:"padding-left",value:"30"}]},{type:"rule",selectors:[".p-y-30"],declarations:[{type:"declaration",property:"padding-top",value:"30"},{type:"declaration",property:"padding-bottom",value:"30"}]},{type:"rule",selectors:[".text-left"],declarations:[{type:"declaration",property:"text-align",value:"left"}]},{type:"rule",selectors:[".text-right"],declarations:[{type:"declaration",property:"text-align",value:"right"}]},{type:"rule",selectors:[".text-center"],declarations:[{type:"declaration",property:"text-align",value:"center"}]},{type:"rule",selectors:[".text-lowercase"],declarations:[{type:"declaration",property:"text-transform",value:"lowercase"}]},{type:"rule",selectors:[".text-uppercase"],declarations:[{type:"declaration",property:"text-transform",value:"uppercase"}]},{type:"rule",selectors:[".text-capitalize"],declarations:[{type:"declaration",property:"text-transform",value:"capitalize"}]},{type:"rule",selectors:[".font-weight-normal"],declarations:[{type:"declaration",property:"font-weight",value:"normal"}]},{type:"rule",selectors:[".font-weight-bold"],declarations:[{type:"declaration",property:"font-weight",value:"bold"}]},{type:"rule",selectors:[".font-italic"],declarations:[{type:"declaration",property:"font-style",value:"italic"}]},{type:"rule",selectors:[".t-10"],declarations:[{type:"declaration",property:"font-size",value:"10"}]},{type:"rule",selectors:[".t-12"],declarations:[{type:"declaration",property:"font-size",value:"12"}]},{type:"rule",selectors:[".t-14"],declarations:[{type:"declaration",property:"font-size",value:"14"}]},{type:"rule",selectors:[".t-15"],declarations:[{type:"declaration",property:"font-size",value:"15"}]},{type:"rule",selectors:[".t-16"],declarations:[{type:"declaration",property:"font-size",value:"16"}]},{type:"rule",selectors:[".t-17"],declarations:[{type:"declaration",property:"font-size",value:"17"}]},{type:"rule",selectors:[".t-18"],declarations:[{type:"declaration",property:"font-size",value:"18"}]},{type:"rule",selectors:[".t-19"],declarations:[{type:"declaration",property:"font-size",value:"19"}]},{type:"rule",selectors:[".t-20"],declarations:[{type:"declaration",property:"font-size",value:"20"}]},{type:"rule",selectors:[".t-25"],declarations:[{type:"declaration",property:"font-size",value:"25"}]},{type:"rule",selectors:[".t-30"],declarations:[{type:"declaration",property:"font-size",value:"30"}]},{type:"rule",selectors:[".t-36"],declarations:[{type:"declaration",property:"font-size",value:"36"}]},{type:"rule",selectors:[".h1",".h2",".h3",".h4",".h5",".h6"],declarations:[{type:"declaration",property:"margin-bottom",value:"4"},{type:"declaration",property:"font-weight",value:"normal"},{type:"declaration",property:"color",value:"#262626"}]},{type:"rule",selectors:[".ns-dark .h1",".ns-dark .h2",".ns-dark .h3",".ns-dark .h4",".ns-dark .h5",".ns-dark .h6"],declarations:[{type:"declaration",property:"color",value:"#fff"}]},{type:"rule",selectors:[".body",".body2",".footnote"],declarations:[{type:"declaration",property:"color",value:"#000"},{type:"declaration",property:"font-weight",value:"normal"}]},{type:"rule",selectors:[".ns-dark .body",".ns-dark .body2",".ns-dark .footnote"],declarations:[{type:"declaration",property:"color",value:"#b3b3b3"}]},{type:"rule",selectors:[".h1"],declarations:[{type:"declaration",property:"font-size",value:"32"}]},{type:"rule",selectors:[".h2"],declarations:[{type:"declaration",property:"font-size",value:"22"}]},{type:"rule",selectors:[".h3"],declarations:[{type:"declaration",property:"font-size",value:"15"}]},{type:"rule",selectors:[".h4"],declarations:[{type:"declaration",property:"font-size",value:"12"}]},{type:"rule",selectors:[".h5"],declarations:[{type:"declaration",property:"font-size",value:"11"}]},{type:"rule",selectors:[".h6"],declarations:[{type:"declaration",property:"font-size",value:"10"}]},{type:"rule",selectors:[".body"],declarations:[{type:"declaration",property:"font-size",value:"14"}]},{type:"rule",selectors:[".body2"],declarations:[{type:"declaration",property:"font-size",value:"17"}]},{type:"rule",selectors:[".footnote"],declarations:[{type:"declaration",property:"font-size",value:"13"}]},{type:"rule",selectors:[".img-thumbnail"],declarations:[{type:"declaration",property:"border-radius",value:"0"}]},{type:"rule",selectors:[".invisible"],declarations:[{type:"declaration",property:"visibility",value:"collapse"}]},{type:"rule",selectors:[".pull-left"],declarations:[{type:"declaration",property:"horizontal-align",value:"left"}]},{type:"rule",selectors:[".pull-right"],declarations:[{type:"declaration",property:"horizontal-align",value:"right"}]},{type:"rule",selectors:[".m-x-auto"],declarations:[{type:"declaration",property:"horizontal-align",value:"center"}]},{type:"rule",selectors:[".m-y-auto"],declarations:[{type:"declaration",property:"vertical-align",value:"center"}]},{type:"rule",selectors:[".ns-modal",".ns-root"],declarations:[{type:"declaration",property:"background-color",value:"#fff"},{type:"declaration",property:"color",value:"#262626"},{type:"declaration",property:"font-family",value:"sans-serif"},{type:"declaration",property:"font-size",value:"12"}]},{type:"rule",selectors:[".ns-dark.ns-modal",".ns-dark.ns-root"],declarations:[{type:"declaration",property:"background-color",value:"#303030"},{type:"declaration",property:"color",value:"#fff"}]},{type:"rule",selectors:[".-hidden",".hidden"],declarations:[{type:"declaration",property:"visibility",value:"collapsed"}]},{type:"rule",selectors:[".-rounded",".rounded"],declarations:[{type:"declaration",property:"border-radius",value:"4"}]},{type:"rule",selectors:[".-circle"],declarations:[{type:"declaration",property:"border-radius",value:"50%"}]},{type:"rule",selectors:[".hr"],declarations:[{type:"declaration",property:"height",value:"1"},{type:"declaration",property:"width",value:"100%"},{type:"declaration",property:"margin",value:"9 0 10"},{type:"declaration",property:"border-width",value:"0 0 1"},{type:"declaration",property:"border-style",value:"solid"}]},{type:"rule",selectors:[".text-muted"],declarations:[{type:"declaration",property:"color",value:"#ace4ff"}]},{type:"rule",selectors:[".ns-dark .text-muted"],declarations:[{type:"declaration",property:"color",value:"#446f83"}]},{type:"rule",selectors:["Label>*","Label>*>*","Button>*","Button>*>*","TextField>*","TextField>*>*","TextView>*","TextView>*>*"],declarations:[{type:"declaration",property:"background-color",value:"transparent"}]},{type:"rule",selectors:["ListView","RadListView"],declarations:[{type:"declaration",property:"min-height",value:"100"}]},{type:"rule",selectors:["Image"],declarations:[{type:"declaration",property:"min-height",value:"20"}]},{type:"rule",selectors:[".nt-icon"],declarations:[{type:"declaration",property:"font-size",value:"14"}]},{type:"rule",selectors:["Button",".nt-button"],declarations:[{type:"declaration",property:"text-transform",value:"none"},{type:"declaration",property:"border-color",value:"transparent"},{type:"declaration",property:"min-width",value:"64"},{type:"declaration",property:"height",value:"52"},{type:"declaration",property:"padding",value:"0 5 0 5"},{type:"declaration",property:"font-size",value:"14"},{type:"declaration",property:"margin",value:"8 16 8 16"}]},{type:"rule",selectors:[".ns-ios Button",".ns-ios .nt-button"],declarations:[{type:"declaration",property:"height",value:"40"},{type:"declaration",property:"border-width",value:"0"}]},{type:"rule",selectors:[".ns-android Button",".ns-android .nt-button"],declarations:[{type:"declaration",property:"margin",value:"4 12"}]},{type:"rule",selectors:["Button.-outline",".nt-button.-outline"],declarations:[{type:"declaration",property:"height",value:"40"},{type:"declaration",property:"border-width",value:"1"}]},{type:"rule",selectors:[".ns-android Button.-outline",".ns-android .nt-button.-outline"],declarations:[{type:"declaration",property:"margin",value:"8 16"}]},{type:"rule",selectors:["Button.-rounded-sm","Button.-rounded-lg",".nt-button.-rounded-sm",".nt-button.-rounded-lg"],declarations:[{type:"declaration",property:"height",value:"40"},{type:"declaration",property:"border-radius",value:"4"}]},{type:"rule",selectors:[".ns-android Button.-rounded-sm",".ns-android Button.-rounded-lg",".ns-android .nt-button.-rounded-sm",".ns-android .nt-button.-rounded-lg"],declarations:[{type:"declaration",property:"margin",value:"8 16"}]},{type:"rule",selectors:["Button.-rounded-lg",".nt-button.-rounded-lg"],declarations:[{type:"declaration",property:"border-radius",value:"50%"}]},{type:"rule",selectors:["Button[isEnabled=false]",".nt-button[isEnabled=false]"],declarations:[{type:"declaration",property:"opacity",value:".5"}]},{type:"rule",selectors:["Button.-simple",".nt-button.-simple"],declarations:[{type:"declaration",property:"android-elevation",value:"0"},{type:"declaration",property:"android-dynamic-elevation-offset",value:"0"}]},{type:"rule",selectors:[".ns-root Button.-aqua",".ns-root .nt-button.-aqua"],declarations:[{type:"declaration",property:"border-color",value:"#00caab"},{type:"declaration",property:"color",value:"#00caab"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-aqua",".ns-dark.ns-root .nt-button.-aqua"],declarations:[{type:"declaration",property:"border-color",value:"#00caab"},{type:"declaration",property:"color",value:"#00caab"}]},{type:"rule",selectors:[".ns-root Button.-aqua.-primary",".ns-root .nt-button.-aqua.-primary"],declarations:[{type:"declaration",property:"color",value:"#fdffff"},{type:"declaration",property:"background-color",value:"#00caab"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-aqua.-primary",".ns-dark.ns-root .nt-button.-aqua.-primary"],declarations:[{type:"declaration",property:"color",value:"#fdffff"},{type:"declaration",property:"background-color",value:"#00caab"}]},{type:"rule",selectors:[".ns-root Button.-blue",".ns-root .nt-button.-blue"],declarations:[{type:"declaration",property:"border-color",value:"#3a53ff"},{type:"declaration",property:"color",value:"#3a53ff"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-blue",".ns-dark.ns-root .nt-button.-blue"],declarations:[{type:"declaration",property:"border-color",value:"#3a53ff"},{type:"declaration",property:"color",value:"#3a53ff"}]},{type:"rule",selectors:[".ns-root Button.-blue.-primary",".ns-root .nt-button.-blue.-primary"],declarations:[{type:"declaration",property:"color",value:"#fff"},{type:"declaration",property:"background-color",value:"#3a53ff"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-blue.-primary",".ns-dark.ns-root .nt-button.-blue.-primary"],declarations:[{type:"declaration",property:"color",value:"#fff"},{type:"declaration",property:"background-color",value:"#3a53ff"}]},{type:"rule",selectors:[".ns-root Button.-brown",".ns-root .nt-button.-brown"],declarations:[{type:"declaration",property:"border-color",value:"#795548"},{type:"declaration",property:"color",value:"#795548"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-brown",".ns-dark.ns-root .nt-button.-brown"],declarations:[{type:"declaration",property:"border-color",value:"#795548"},{type:"declaration",property:"color",value:"#795548"}]},{type:"rule",selectors:[".ns-root Button.-brown.-primary",".ns-root .nt-button.-brown.-primary"],declarations:[{type:"declaration",property:"color",value:"#fbf9f8"},{type:"declaration",property:"background-color",value:"#795548"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-brown.-primary",".ns-dark.ns-root .nt-button.-brown.-primary"],declarations:[{type:"declaration",property:"color",value:"#fbf9f8"},{type:"declaration",property:"background-color",value:"#795548"}]},{type:"rule",selectors:[".ns-root Button.-forest",".ns-root .nt-button.-forest"],declarations:[{type:"declaration",property:"border-color",value:"#006968"},{type:"declaration",property:"color",value:"#006968"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-forest",".ns-dark.ns-root .nt-button.-forest"],declarations:[{type:"declaration",property:"border-color",value:"#006968"},{type:"declaration",property:"color",value:"#006968"}]},{type:"rule",selectors:[".ns-root Button.-forest.-primary",".ns-root .nt-button.-forest.-primary"],declarations:[{type:"declaration",property:"color",value:"#9cfffe"},{type:"declaration",property:"background-color",value:"#006968"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-forest.-primary",".ns-dark.ns-root .nt-button.-forest.-primary"],declarations:[{type:"declaration",property:"color",value:"#9cfffe"},{type:"declaration",property:"background-color",value:"#006968"}]},{type:"rule",selectors:[".ns-root Button.-grey",".ns-root .nt-button.-grey"],declarations:[{type:"declaration",property:"border-color",value:"#5c687c"},{type:"declaration",property:"color",value:"#5c687c"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-grey",".ns-dark.ns-root .nt-button.-grey"],declarations:[{type:"declaration",property:"border-color",value:"#5c687c"},{type:"declaration",property:"color",value:"#5c687c"}]},{type:"rule",selectors:[".ns-root Button.-grey.-primary",".ns-root .nt-button.-grey.-primary"],declarations:[{type:"declaration",property:"color",value:"#fff"},{type:"declaration",property:"background-color",value:"#5c687c"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-grey.-primary",".ns-dark.ns-root .nt-button.-grey.-primary"],declarations:[{type:"declaration",property:"color",value:"#fff"},{type:"declaration",property:"background-color",value:"#5c687c"}]},{type:"rule",selectors:[".ns-root Button.-lemon",".ns-root .nt-button.-lemon"],declarations:[{type:"declaration",property:"border-color",value:"#ffea00"},{type:"declaration",property:"color",value:"#ffea00"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-lemon",".ns-dark.ns-root .nt-button.-lemon"],declarations:[{type:"declaration",property:"border-color",value:"#ffea00"},{type:"declaration",property:"color",value:"#ffea00"}]},{type:"rule",selectors:[".ns-root Button.-lemon.-primary",".ns-root .nt-button.-lemon.-primary"],declarations:[{type:"declaration",property:"color",value:"#000"},{type:"declaration",property:"background-color",value:"#ffea00"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-lemon.-primary",".ns-dark.ns-root .nt-button.-lemon.-primary"],declarations:[{type:"declaration",property:"color",value:"#000"},{type:"declaration",property:"background-color",value:"#ffea00"}]},{type:"rule",selectors:[".ns-root Button.-lime",".ns-root .nt-button.-lime"],declarations:[{type:"declaration",property:"border-color",value:"#aee406"},{type:"declaration",property:"color",value:"#aee406"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-lime",".ns-dark.ns-root .nt-button.-lime"],declarations:[{type:"declaration",property:"border-color",value:"#aee406"},{type:"declaration",property:"color",value:"#aee406"}]},{type:"rule",selectors:[".ns-root Button.-lime.-primary",".ns-root .nt-button.-lime.-primary"],declarations:[{type:"declaration",property:"color",value:"#000"},{type:"declaration",property:"background-color",value:"#aee406"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-lime.-primary",".ns-dark.ns-root .nt-button.-lime.-primary"],declarations:[{type:"declaration",property:"color",value:"#000"},{type:"declaration",property:"background-color",value:"#aee406"}]},{type:"rule",selectors:[".ns-root Button.-orange",".ns-root .nt-button.-orange"],declarations:[{type:"declaration",property:"border-color",value:"#f57c00"},{type:"declaration",property:"color",value:"#f57c00"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-orange",".ns-dark.ns-root .nt-button.-orange"],declarations:[{type:"declaration",property:"border-color",value:"#f57c00"},{type:"declaration",property:"color",value:"#f57c00"}]},{type:"rule",selectors:[".ns-root Button.-orange.-primary",".ns-root .nt-button.-orange.-primary"],declarations:[{type:"declaration",property:"color",value:"#000"},{type:"declaration",property:"background-color",value:"#f57c00"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-orange.-primary",".ns-dark.ns-root .nt-button.-orange.-primary"],declarations:[{type:"declaration",property:"color",value:"#000"},{type:"declaration",property:"background-color",value:"#f57c00"}]},{type:"rule",selectors:[".ns-root Button.-purple",".ns-root .nt-button.-purple"],declarations:[{type:"declaration",property:"border-color",value:"#8130ff"},{type:"declaration",property:"color",value:"#8130ff"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-purple",".ns-dark.ns-root .nt-button.-purple"],declarations:[{type:"declaration",property:"border-color",value:"#8130ff"},{type:"declaration",property:"color",value:"#8130ff"}]},{type:"rule",selectors:[".ns-root Button.-purple.-primary",".ns-root .nt-button.-purple.-primary"],declarations:[{type:"declaration",property:"color",value:"#fff"},{type:"declaration",property:"background-color",value:"#8130ff"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-purple.-primary",".ns-dark.ns-root .nt-button.-purple.-primary"],declarations:[{type:"declaration",property:"color",value:"#fff"},{type:"declaration",property:"background-color",value:"#8130ff"}]},{type:"rule",selectors:[".ns-root Button.-ruby",".ns-root .nt-button.-ruby"],declarations:[{type:"declaration",property:"border-color",value:"#ff1744"},{type:"declaration",property:"color",value:"#ff1744"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-ruby",".ns-dark.ns-root .nt-button.-ruby"],declarations:[{type:"declaration",property:"border-color",value:"#ff1744"},{type:"declaration",property:"color",value:"#ff1744"}]},{type:"rule",selectors:[".ns-root Button.-ruby.-primary",".ns-root .nt-button.-ruby.-primary"],declarations:[{type:"declaration",property:"color",value:"#fff"},{type:"declaration",property:"background-color",value:"#ff1744"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-ruby.-primary",".ns-dark.ns-root .nt-button.-ruby.-primary"],declarations:[{type:"declaration",property:"color",value:"#fff"},{type:"declaration",property:"background-color",value:"#ff1744"}]},{type:"rule",selectors:[".ns-root Button.-sky",".ns-root .nt-button.-sky"],declarations:[{type:"declaration",property:"border-color",value:"#30bcff"},{type:"declaration",property:"color",value:"#30bcff"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-sky",".ns-dark.ns-root .nt-button.-sky"],declarations:[{type:"declaration",property:"border-color",value:"#30bcff"},{type:"declaration",property:"color",value:"#30bcff"}]},{type:"rule",selectors:[".ns-root Button.-sky.-primary",".ns-root .nt-button.-sky.-primary"],declarations:[{type:"declaration",property:"color",value:"#fff"},{type:"declaration",property:"background-color",value:"#30bcff"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-sky.-primary",".ns-dark.ns-root .nt-button.-sky.-primary"],declarations:[{type:"declaration",property:"color",value:"#fff"},{type:"declaration",property:"background-color",value:"#30bcff"}]},{type:"rule",selectors:["Frame",".nt-frame"],declarations:[{type:"declaration",property:"background-color",value:"#fff"}]},{type:"rule",selectors:[".ns-dark Frame",".ns-dark .nt-frame"],declarations:[{type:"declaration",property:"background-color",value:"#303030"}]},{type:"rule",selectors:["Page",".nt-page"],declarations:[{type:"declaration",property:"color",value:"#262626"},{type:"declaration",property:"background-color",value:"#fff"}]},{type:"rule",selectors:[".ns-dark Page",".ns-dark .nt-page"],declarations:[{type:"declaration",property:"color",value:"#fff"},{type:"declaration",property:"background-color",value:"#303030"}]},{type:"rule",selectors:["ActivityIndicator",".nt-activity-indicator"],declarations:[{type:"declaration",property:"width",value:"30"},{type:"declaration",property:"height",value:"30"}]},{type:"rule",selectors:["Slider",".nt-slider"],declarations:[{type:"declaration",property:"margin",value:"20 16"}]},{type:"rule",selectors:[".ns-ios Slider",".ns-ios .nt-slider"],declarations:[{type:"declaration",property:"margin",value:"10 15"}]},{type:"rule",selectors:["Slider[isEnabled=false]",".nt-slider[isEnabled=false]"],declarations:[{type:"declaration",property:"background-color",value:"#e0e0e0"},{type:"declaration",property:"color",value:"#e0e0e0"}]},{type:"rule",selectors:[".ns-android Switch",".ns-android .nt-switch"],declarations:[{type:"declaration",property:"margin",value:"14 16"}]},{type:"rule",selectors:[".ns-android Switch[isEnabled=false]",".ns-android .nt-switch[isEnabled=false]"],declarations:[{type:"declaration",property:"color",value:"#e6e6e6"}]},{type:"rule",selectors:[".ns-dark.ns-android Switch[isEnabled=false]",".ns-dark.ns-android .nt-switch[isEnabled=false]"],declarations:[{type:"declaration",property:"color",value:"#4a4a4a"}]},{type:"rule",selectors:[".ns-ios Switch",".ns-ios .nt-switch"],declarations:[{type:"declaration",property:"margin",value:"8 15"}]},{type:"rule",selectors:[".ns-ios Switch[isEnabled=false]",".ns-ios .nt-switch[isEnabled=false]"],declarations:[{type:"declaration",property:"background-color",value:"rgba(48,188,255,0.4)"}]},{type:"rule",selectors:[".ns-dark.ns-ios Switch[isEnabled=false]",".ns-dark.ns-ios .nt-switch[isEnabled=false]"],declarations:[{type:"declaration",property:"background-color",value:"rgba(99,205,255,0.4)"}]},{type:"rule",selectors:["TabView",".nt-tab-view"],declarations:[{type:"declaration",property:"tab-text-font-size",value:"14"},{type:"declaration",property:"text-transform",value:"capitalize"}]},{type:"rule",selectors:["BottomNavigation",".nt-bottom-navigation"],declarations:[{type:"declaration",property:"font-size",value:"10"}]},{type:"rule",selectors:["ListView","RadListView",".nt-list-view"],declarations:[{type:"declaration",property:"background-color",value:"transparent"}]},{type:"rule",selectors:["ListView StackLayout","RadListView StackLayout",".nt-list-view StackLayout"],declarations:[{type:"declaration",property:"padding",value:"8"}]},{type:"rule",selectors:["ListView>*","RadListView>*",".nt-list-view>*"],declarations:[{type:"declaration",property:"background-color",value:"transparent"},{type:"declaration",property:"padding",value:"8"},{type:"declaration",property:"margin",value:"0"}]},{type:"rule",selectors:["ListView>* Label","RadListView>* Label",".nt-list-view>* Label"],declarations:[{type:"declaration",property:"padding",value:"5"},{type:"declaration",property:"vertical-align",value:"center"}]},{type:"rule",selectors:["ListView .thumb","ListView .-thumb","RadListView .thumb","RadListView .-thumb",".nt-list-view .thumb",".nt-list-view .-thumb"],declarations:[{type:"declaration",property:"stretch",value:"fill"},{type:"declaration",property:"width",value:"40"},{type:"declaration",property:"height",value:"40"},{type:"declaration",property:"min-height",value:"0"},{type:"declaration",property:"margin-right",value:"16"}]},{type:"rule",selectors:["ListView.-single-col-cards Image","RadListView.-single-col-cards Image",".nt-list-view.-single-col-cards Image"],declarations:[{type:"declaration",property:"width",value:"100%"},{type:"declaration",property:"height",value:"200"}]},{type:"rule",selectors:["ListView.-two-col-cards Image","RadListView.-two-col-cards Image",".nt-list-view.-two-col-cards Image"],declarations:[{type:"declaration",property:"height",value:"100"}]},{type:"rule",selectors:[".ns-ios ListView.-two-col-cards>StackLayout",".ns-ios RadListView.-two-col-cards>StackLayout",".ns-ios .nt-list-view.-two-col-cards>StackLayout"],declarations:[{type:"declaration",property:"width",value:"50%"}]},{type:"rule",selectors:[".ns-ios ListView.-two-col-cards>StackLayout Image",".ns-ios RadListView.-two-col-cards>StackLayout Image",".ns-ios .nt-list-view.-two-col-cards>StackLayout Image"],declarations:[{type:"declaration",property:"horizontal-align",value:"left"},{type:"declaration",property:"width",value:"100%"}]},{type:"rule",selectors:["ListView.-two-lines-image Image","ListView.-single-line-image Image","RadListView.-two-lines-image Image","RadListView.-single-line-image Image",".nt-list-view.-two-lines-image Image",".nt-list-view.-single-line-image Image"],declarations:[{type:"declaration",property:"width",value:"60"},{type:"declaration",property:"height",value:"60"},{type:"declaration",property:"margin-right",value:"10"},{type:"declaration",property:"margin-bottom",value:"0"}]},{type:"rule",selectors:["ListView .-separator","RadListView .-separator",".nt-list-view .-separator"],declarations:[{type:"declaration",property:"border-bottom-width",value:"1"}]},{type:"rule",selectors:["ListView .nt-list-view__delete","RadListView .nt-list-view__delete",".nt-list-view .nt-list-view__delete"],declarations:[{type:"declaration",property:"padding",value:"0 10"}]},{type:"rule",selectors:[".ns-ios ListView .nt-list-view__delete",".ns-ios RadListView .nt-list-view__delete",".ns-ios .nt-list-view .nt-list-view__delete"],declarations:[{type:"declaration",property:"padding",value:"0 10 0 25"}]},{type:"rule",selectors:["ListView .nt-list-view__delete>Label","RadListView .nt-list-view__delete>Label",".nt-list-view .nt-list-view__delete>Label"],declarations:[{type:"declaration",property:"horizontal-align",value:"center"},{type:"declaration",property:"vertical-align",value:"center"},{type:"declaration",property:"text-transform",value:"capitalize"}]},{type:"rule",selectors:["ListView .nt-icon","RadListView .nt-icon",".nt-list-view .nt-icon"],declarations:[{type:"declaration",property:"font-size",value:"16"},{type:"declaration",property:"width",value:"56"},{type:"declaration",property:"height",value:"100%"},{type:"declaration",property:"text-align",value:"center"}]},{type:"rule",selectors:["RadListView>StackLayout"],declarations:[{type:"declaration",property:"padding",value:"0"}]},{type:"rule",selectors:["RadListView>*>*"],declarations:[{type:"declaration",property:"background-color",value:"transparent"}]},{type:"rule",selectors:["RadSideDrawer .nt-drawer__header",".nt-drawer .nt-drawer__header"],declarations:[{type:"declaration",property:"width",value:"100%"},{type:"declaration",property:"vertical-align",value:"top"},{type:"declaration",property:"padding",value:"35 0"}]},{type:"rule",selectors:["RadSideDrawer .nt-drawer__header Label",".nt-drawer .nt-drawer__header Label"],declarations:[{type:"declaration",property:"padding",value:"0"}]},{type:"rule",selectors:["RadSideDrawer .nt-drawer__header>Label",".nt-drawer .nt-drawer__header>Label"],declarations:[{type:"declaration",property:"font-size",value:"18"}]},{type:"rule",selectors:["RadSideDrawer .nt-drawer__header-image",".nt-drawer .nt-drawer__header-image"],declarations:[{type:"declaration",property:"height",value:"74"},{type:"declaration",property:"width",value:"74"},{type:"declaration",property:"border-radius",value:"50%"}]},{type:"rule",selectors:["RadSideDrawer .nt-drawer__header-footnote",".nt-drawer .nt-drawer__header-footnote"],declarations:[{type:"declaration",property:"opacity",value:".5"}]},{type:"rule",selectors:["RadSideDrawer .nt-drawer__header>Label","RadSideDrawer .nt-drawer__header-image",".nt-drawer .nt-drawer__header>Label",".nt-drawer .nt-drawer__header-image"],declarations:[{type:"declaration",property:"margin-left",value:"15"},{type:"declaration",property:"margin-right",value:"15"},{type:"declaration",property:"horizontal-align",value:"center"},{type:"declaration",property:"text-align",value:"center"}]},{type:"rule",selectors:["RadSideDrawer .nt-drawer__header.-left>Label","RadSideDrawer .nt-drawer__header.-left .nt-drawer__header-image",".nt-drawer .nt-drawer__header.-left>Label",".nt-drawer .nt-drawer__header.-left .nt-drawer__header-image"],declarations:[{type:"declaration",property:"horizontal-align",value:"left"}]},{type:"rule",selectors:["RadSideDrawer .nt-drawer__list-item",".nt-drawer .nt-drawer__list-item"],declarations:[{type:"declaration",property:"padding-left",value:"15"},{type:"declaration",property:"height",value:"48"},{type:"declaration",property:"horizontal-align",value:"left"},{type:"declaration",property:"width",value:"100%"},{type:"declaration",property:"orientation",value:"horizontal"}]},{type:"rule",selectors:["RadSideDrawer .nt-drawer__list-item Label",".nt-drawer .nt-drawer__list-item Label"],declarations:[{type:"declaration",property:"vertical-align",value:"center"}]},{type:"rule",selectors:["RadSideDrawer .nt-drawer__list-item .nt-icon",".nt-drawer .nt-drawer__list-item .nt-icon"],declarations:[{type:"declaration",property:"font-size",value:"12"},{type:"declaration",property:"width",value:"30"}]},{type:"rule",selectors:["RadSideDrawer.ns-dark .nt-drawer__header",".nt-drawer.ns-dark .nt-drawer__header"],declarations:[{type:"declaration",property:"background-color",value:"#1e1e1e"}]},{type:"rule",selectors:["RadSideDrawer.ns-dark .nt-drawer__header Label",".nt-drawer.ns-dark .nt-drawer__header Label"],declarations:[{type:"declaration",property:"color",value:"#fff"}]},{type:"rule",selectors:["Form",".nt-form"],declarations:[{type:"declaration",property:"padding",value:"16 0 10"}]},{type:"rule",selectors:["Form .-center",".nt-form .-center"],declarations:[{type:"declaration",property:"horizontal-align",value:"center"}]},{type:"rule",selectors:["Form .nt-form__or-separator",".nt-form .nt-form__or-separator"],declarations:[{type:"declaration",property:"margin",value:"20 0"}]},{type:"rule",selectors:["Form .nt-form__logo",".nt-form .nt-form__logo"],declarations:[{type:"declaration",property:"margin",value:"20 0"},{type:"declaration",property:"width",value:"50%"}]},{type:"rule",selectors:["Form .nt-form__validation-message",".nt-form .nt-form__validation-message"],declarations:[{type:"declaration",property:"margin",value:"1 0 0"},{type:"declaration",property:"padding",value:"0"},{type:"declaration",property:"height",value:"19"}]},{type:"rule",selectors:["Form .nt-form__footer",".nt-form .nt-form__footer"],declarations:[{type:"declaration",property:"padding",value:"0"},{type:"declaration",property:"horizontal-align",value:"center"}]},{type:"rule",selectors:["Form .nt-form__footer Button",".nt-form .nt-form__footer Button"],declarations:[{type:"declaration",property:"width",value:"50%"},{type:"declaration",property:"margin",value:"5"}]},{type:"rule",selectors:[".nt-input.ng-valid","TextView.ng-valid","TextField.ng-valid","PickerField.ng-valid","DatePickerField.ng-valid","TimePickerField.ng-valid","RadAutoCompleteTextView.ng-valid"],declarations:[{type:"declaration",property:"margin-bottom",value:"20"}]},{type:"rule",selectors:[".nt-input.ng-invalid.ng-dirty","TextView.ng-invalid.ng-dirty","TextField.ng-invalid.ng-dirty","PickerField.ng-invalid.ng-dirty","DatePickerField.ng-invalid.ng-dirty","TimePickerField.ng-invalid.ng-dirty","RadAutoCompleteTextView.ng-invalid.ng-dirty"],declarations:[{type:"declaration",property:"margin-bottom",value:"0"},{type:"declaration",property:"border-color",value:"#d50000"}]},{type:"rule",selectors:[".nt-input","TextView","TextField","PickerField","DatePickerField","TimePickerField","DateTimePickerFields","DataFormEditorCore","RadAutoCompleteTextView"],declarations:[{type:"declaration",property:"border-width",value:"0 0 1"},{type:"declaration",property:"border-radius",value:"0"},{type:"declaration",property:"background-color",value:"transparent"},{type:"declaration",property:"font-size",value:"12"},{type:"declaration",property:"padding",value:"8 0 4"},{type:"declaration",property:"margin",value:"5 16"}]},{type:"rule",selectors:[".-rounded-sm",".-rounded-lg",".-border"],declarations:[{type:"declaration",property:"border-width",value:"1"},{type:"declaration",property:"padding",value:"12 14"}]},{type:"rule",selectors:[".-rounded-sm"],declarations:[{type:"declaration",property:"border-radius",value:"4"}]},{type:"rule",selectors:[".-rounded-lg"],declarations:[{type:"declaration",property:"border-radius",value:"50%"}]},{type:"rule",selectors:["[isEnabled=false]"],declarations:[{type:"declaration",property:"opacity",value:".5"}]},{type:"rule",selectors:["TextView[editable=false]"],declarations:[{type:"declaration",property:"border-width",value:"0"}]},{type:"rule",selectors:["Label","DataFormEditorLabel"],declarations:[{type:"declaration",property:"padding",value:"2 0"}]},{type:"rule",selectors:["TextView"],declarations:[{type:"declaration",property:"min-height",value:"100"}]},{type:"rule",selectors:["RadAutoCompleteTextView[displayMode=Tokens]"],declarations:[{type:"declaration",property:"padding",value:"4 0 8"}]},{type:"rule",selectors:["RadAutoCompleteTextView Token"],declarations:[{type:"declaration",property:"border-radius",value:"50%"}]},{type:"rule",selectors:[".ns-android TokenClearButton"],declarations:[{type:"declaration",property:"width",value:"18"},{type:"declaration",property:"height",value:"18"},{type:"declaration",property:"border-radius",value:"50%"},{type:"declaration",property:"opacity",value:".6"}]},{type:"rule",selectors:["PickerField","DatePickerField","TimePickerField","DateTimePickerFields","DataFormEditorCore","RadAutoCompleteTextView"],declarations:[{type:"declaration",property:"background-repeat",value:"no-repeat"},{type:"declaration",property:"background-position",value:"right center"}]},{type:"rule",selectors:[".ns-ios PickerField",".ns-ios DatePickerField",".ns-ios TimePickerField",".ns-ios DateTimePickerFields",".ns-ios DataFormEditorCore",".ns-ios RadAutoCompleteTextView"],declarations:[{type:"declaration",property:"background-size",value:"28 16"}]},{type:"rule",selectors:["PropertyEditor[type='Date'] DataFormEditorCore","DatePickerField"],declarations:[{type:"declaration",property:"background-image",value:'url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAAwBAMAAAB9IEC+AAAAD1BMVEVHcEwAAAAAAAAAAAAAAADTrAj/AAAABHRSTlMAwBAgU5DCQwAAAFdJREFUSMdjYCAVuLi4oDHop5RJxAUDOCpgVcroggUIYFXKgk2pMw6lChhudXHAoZSBVkrRw26EKcUC6Kt0NAoGkVIWaFSNKh25Sgd7QURCZURCFUcLAAC2I2hEECBYPgAAAABJRU5ErkJggg==")'}]},{type:"rule",selectors:["PropertyEditor[type='Time'] DataFormEditorCore","TimePickerField"],declarations:[{type:"declaration",property:"background-image",value:'url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAAwBAMAAAB9IEC+AAAALVBMVEVHcEwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACttl6nAAAADnRSTlMAYOBAwCAQ0FCAcPCwoEZwdhsAAAE2SURBVEjHY2AYLIB1Td27d89PBRBWyQhUCALPBQiq1HsHBY8IqGX1e/fuyWRjY0sQjd8N3e/eKSaAGGxC797twGs9UCWMDVSLzwly794mwNhs9949xK2SA8UgoBUNOJVGo5oj924rTqV+EEP53sGMfYLbU28ZkJUy3MPpMaZ3aqhKk94p4PS/AKpSRpxhUPeIAVUpg95zHJEKMwOhVO4d9sjlevcMXWneuwVYlfK8c0BXyvLuAI4AmICulPNdAValfO8M0JVyvHtArFJmqiqFACopbSBWKTsssBAAV2DBowABcEUBPGIRAFfEsmImOVzJBZ4IEQBXIoQnbaQc9JBAhoED3BkGlg3hAHc2hGVuhNYn1CgySCiISCjeSCk0SSiKIQX8DGPjTsIFPAnVBimVESlV3IABAKDkz5jHIcToAAAAAElFTkSuQmCC")'}]},{type:"rule",selectors:["DateTimePickerFields"],declarations:[{type:"declaration",property:"padding",value:"0"},{type:"declaration",property:"background-image",value:'url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKgAAAAwBAMAAAB3UCypAAAALVBMVEVHcEwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACttl6nAAAADnRSTlMAQGDgwBAg0FCAcPCwoM9Ie+kAAAGcSURBVEjH5Ze/TsMwEMZD2pQWVRUZu0VijxASa8UTVJXYUXYWniDqilhgY+QBmBEjMw9RtTQlU79nICRyrDjxxYkdqYhviYe7X87/7s6WlQqAMDCgPwF15igpWhAOg9cQiD8DCtpHha7k9naYmcQeAZ1UQb/lzBmz2XoUdFFaU2ykc08WK3py3envNyCgVgPoA3CRLrhzBrybgdoJk40TqkdCxRMmg/rY5wfDWeHLBHRYCC4Je2kAeluMzcebAeg8C5S52Ij0oTb2RZeVbKsaQHu4LLpc47zBjdpI9t4rQm3Z/jeAhltxcrNYFzpgcXGoj0BzTU+wE11u8KIJHbOMyF36+NCE9vAouowk268OneBUdBlibR56dPDQTAcMXbaBZtZrCfSYHSmuEe40oeNyO6By+Glofk25VK4pDR2UE51KQqGheerjkqc+ZagvVg8iSStDWTnJRZQTZSgrfLmUCl8NlJVo/hOVEl0HbdVM1EFbtT110E4atG5ayUZNrzI0bc+fXfe+rj2v0E7zIdHJk6eTx5nluCUF1j/RDxQQPw3i9N+zAAAAAElFTkSuQmCC")'}]},{type:"rule",selectors:[".ns-ios DateTimePickerFields"],declarations:[{type:"declaration",property:"background-size",value:"56 16"}]},{type:"rule",selectors:["DateTimePickerFields .input","DateTimePickerFields DatePickerField","DateTimePickerFields TimePickerField"],declarations:[{type:"declaration",property:"background-image",value:"none"},{type:"declaration",property:"border-width",value:"0"},{type:"declaration",property:"margin",value:"0"}]},{type:"rule",selectors:[".ns-dark DateTimePickerFields .input",".ns-dark DateTimePickerFields DatePickerField",".ns-dark DateTimePickerFields TimePickerField"],declarations:[{type:"declaration",property:"background-image",value:"none"},{type:"declaration",property:"background-color",value:"transparent"}]},{type:"rule",selectors:["DateTimePickerFields TimePickerField"],declarations:[{type:"declaration",property:"margin-left",value:"-30"}]},{type:"rule",selectors:["PickerField"],declarations:[{type:"declaration",property:"background-image",value:'url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAAwBAMAAAB9IEC+AAAAGFBMVEVHcEwAAAAAAAAAAAAAAAAAAAAAAAAAAABoAtTLAAAAB3RSTlMAoPAw0BAgCEJU4wAAAEpJREFUSMdjYBgFgwUwChCtVLyQaEPLy4k1Nqm8nFhjmdWJN9Zo1NghZiwJSol3wKihA2ooCZk7hPj0x+pOdEHEEEJ88TYKBgoAAAC5JRg49rIWAAAAAElFTkSuQmCC")'}]},{type:"rule",selectors:["PickerPage.input"],declarations:[{type:"declaration",property:"padding",value:"0"},{type:"declaration",property:"margin",value:"0"}]},{type:"rule",selectors:["PickerPage ListView"],declarations:[{type:"declaration",property:"separator-color",value:"transparent"}]},{type:"rule",selectors:["PickerPage ListView>*"],declarations:[{type:"declaration",property:"height",value:"48"},{type:"declaration",property:"margin-top",value:"0"},{type:"declaration",property:"padding",value:"10 12"},{type:"declaration",property:"border-bottom-width",value:"1px"}]},{type:"rule",selectors:[".ns-dark PickerField"],declarations:[{type:"declaration",property:"background-image",value:'url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAAwBAMAAAB9IEC+AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAYUExURUdwTP///////////////////////////x1LVb4AAAAHdFJOUwCg8DDQECAIQlTjAAAASklEQVRIx2NgGAWDBTAKEK1UvJBoQ8vLiTU2qbycWGOZ1Yk31mjU2CFmLAlKiXfAqKEDaigJmTuE+PTH6k50QcQQQnzxNgoGCgAAALklGDj2shYAAAAASUVORK5CYII=")'}]},{type:"rule",selectors:[".ns-dark DatePickerField"],declarations:[{type:"declaration",property:"background-image",value:'url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAAwBAMAAAB9IEC+AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAPUExURUdwTP///////////////xPgMRoAAAAEdFJOUwDAECBTkMJDAAAAV0lEQVRIx2NgIBW4uLigMeinlEnEBQM4KmBVyuiCBQhgVcqCTakzDqUKGG51ccChlIFWStHDboQpxQLoq3Q0CgaRUhZoVI0qHblKB3tBREJlREIVRwsAALYjaEQQIFg+AAAAAElFTkSuQmCC")'}]},{type:"rule",selectors:[".ns-dark TimePickerField"],declarations:[{type:"declaration",property:"background-image",value:'url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAAwBAMAAAB9IEC+AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAtUExURUdwTP///////////////////////////////////////////////////////81e3QIAAAAOdFJOUwBg4EDAIBDQUHDwsKCA4isvJAAAATZJREFUSMdjYBgsgHV23bt3z3cGEFbJCFQIAs8FCKrUewcFjwioZfV79+7JZWNjWxCN3w1d794pJoAYbELv3q3Aaz1QJYwNVIvPCXLv3iTA2Gzn3j3ErZIDxSCgFQ04lUahmiP3bilOpX4QQ/newYx9gttTbxiQlTKcw+kxpndqqEqT3ing9L8AqlJGnGFQ94gBVSmD3nMckQozA6FU7h32yOV89wxdad67CViVcr9zQFfK8m4DjgC4gK6U910BVqV87wzQlXK8e0CsUmaqKoUAKiltIFYpOyywEABXYMGjAAFwRQE8YhEAV8SyYiY5XMkFnggRAFcihCdtpBz0kECGgQPcGQaWDeEAdzaEZW6E1ifUKDJIKIhIKN5IKTRJKIohBfwNY+NewgU8CdUGKZURKVXcgAEAq1LPmF1qDewAAAAASUVORK5CYII=")'}]},{type:"rule",selectors:[".ns-dark DateTimePickerFields"],declarations:[{type:"declaration",property:"background-image",value:'url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKgAAAAwBAMAAAB3UCypAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAtUExURUdwTP///////////////////////////////////////////////////////81e3QIAAAAOdFJOUwBAYODAECDQUHDwsKCAaxMi1gAAAZxJREFUSMfll89Kw0AQxmPa1EppMQ9QCHgPIngtPkEpeJecPfkEoWdB8O5dPHr1JYrePLY2NZfyPYMxYbNkk51sshuo+F2yh5lfZv/NzFpWKgDCwID+BNSZo6RoQTgMnkIgfgsoaB8VupLb22FmEnsEdFIF/ZYzZ8xm61HQRWlNsZHOPVms6MN1p7/fgIBaDaD3wEW64M4Z8GIGaidMNk6oHgkVT5gM6mOfHwxnhS8T0GEhuCTspQHobTE2H88GoPMsUOZiI9KH2tgXXVayrWoA7eGy6HKN8wY3aiPZe68ItWX73wAabsXJzWJd6IDFxaE+As01PcFOdLnBoyZ0xDIid+njVRPaw7voMpZsvzp0glPRZYi1eejRwUMzHTB02QaaWa8l0GN2pLjGuNOEjsrtgMrhp6H5NeVSuaY0dFBOdCoJhYbmqY9LnvqUob5YPYgkrQxl5SQXUU6Uoazw5VIqfDVQVqL5T1RKdB20VTNRB23V9tRBO2nQumklGzW9ytC0Pf903Ye69rxCO82HRCdPnk4eZ5bjlhRY/0Q/Hn4/DfXSncYAAAAASUVORK5CYII=")'}]},{type:"rule",selectors:[".ns-dark PickerField",".ns-dark DatePickerField",".ns-dark TimePickerField",".ns-dark DateTimePickerFields",".ns-dark RadAutoCompleteTextView"],declarations:[{type:"declaration",property:"class",value:"ns-dark"}]},{type:"rule",selectors:["RadDataForm PropertyEditor"],declarations:[{type:"declaration",property:"padding",value:"5 0 0"}]},{type:"rule",selectors:["FlexboxLayout.nt-input","GridLayout.nt-input","StackLayout.nt-input"],declarations:[{type:"declaration",property:"border-width",value:"0"},{type:"declaration",property:"border-radius",value:"0"},{type:"declaration",property:"padding",value:"0"}]},{type:"rule",selectors:["DataFormEditorLabel",".nt-input>.nt-label",".nt-input>Label"],declarations:[{type:"declaration",property:"font-size",value:"12"},{type:"declaration",property:"color",value:"#bababa"}]},{type:"rule",selectors:["DataFormEditorLabel",".nt-input>.nt-label",".nt-input>.nt-input",".nt-input>Label",".nt-input>TextView",".nt-input>TextField",".nt-input>PickerField",".nt-input>DatePickerField",".nt-input>TimePickerField",".nt-input>DateTimePickerFields",".nt-input>RadAutoCompleteTextView"],declarations:[{type:"declaration",property:"margin",value:"0"}]},{type:"rule",selectors:[".nt-input.-sides"],declarations:[{type:"declaration",property:"margin-bottom",value:"10"}]},{type:"rule",selectors:[".nt-input>.nt-icon"],declarations:[{type:"declaration",property:"font-size",value:"16"},{type:"declaration",property:"vertical-align",value:"center"},{type:"declaration",property:"horizontal-align",value:"right"},{type:"declaration",property:"margin",value:"-15 10 0 0"}]},{type:"rule",selectors:["ActionBar",".nt-action-bar"],declarations:[{type:"declaration",property:"font-size",value:"14"}]},{type:"rule",selectors:[".ns-ios ActionBar",".ns-ios .nt-action-bar"],declarations:[{type:"declaration",property:"margin-left",value:"20"},{type:"declaration",property:"vertical-align",value:"stretch"},{type:"declaration",property:"horizontal-align",value:"stretch"}]},{type:"rule",selectors:[".ns-landscape.ns-ios ActionBar",".ns-landscape.ns-ios .nt-action-bar"],declarations:[{type:"declaration",property:"margin-left",value:"100"},{type:"declaration",property:"padding",value:"0 5"}]},{type:"rule",selectors:["ActionBar Label","ActionBar Button","ActionBar .nt-action-bar__item",".nt-action-bar Label",".nt-action-bar Button",".nt-action-bar .nt-action-bar__item"],declarations:[{type:"declaration",property:"android-elevation",value:"0"},{type:"declaration",property:"font-size",value:"12"},{type:"declaration",property:"padding",value:"12 10 12 0"},{type:"declaration",property:"margin",value:"0"},{type:"declaration",property:"min-width",value:"0"},{type:"declaration",property:"width",value:"auto"},{type:"declaration",property:"border-width",value:"0"},{type:"declaration",property:"text-transform",value:"none"},{type:"declaration",property:"font-weight",value:"normal"}]},{type:"rule",selectors:["ActionBar Label:active","ActionBar Button:active","ActionBar .nt-action-bar__item:active",".nt-action-bar Label:active",".nt-action-bar Button:active",".nt-action-bar .nt-action-bar__item:active"],declarations:[{type:"declaration",property:"opacity",value:".7"}]},{type:"rule",selectors:["ActionBar>Label",".nt-action-bar>Label"],declarations:[{type:"declaration",property:"font-weight",value:"bold"},{type:"declaration",property:"font-size",value:"14"}]},{type:"rule",selectors:[".ns-statusbar-transparent Page>ActionBar",".ns-statusbar-transparent Page>.nt-action-bar"],declarations:[{type:"declaration",property:"padding-top",value:"24"}]},{type:"rule",selectors:[".ns-android__19.ns-statusbar-transparent Page>ActionBar",".ns-modal.ns-statusbar-transparent Page>ActionBar",".ns-android__19.ns-statusbar-transparent Page>.nt-action-bar",".ns-modal.ns-statusbar-transparent Page>.nt-action-bar"],declarations:[{type:"declaration",property:"padding-top",value:"0"}]},{type:"rule",selectors:[".ns-android ActionBar Button",".ns-android ActionBar .nt-button",".ns-android .nt-action-bar Button",".ns-android .nt-action-bar .nt-button"],declarations:[{type:"declaration",property:"padding",value:"0 6"}]},{type:"rule",selectors:[".ns-android ActionBar>Label",".ns-android .nt-action-bar>Label"],declarations:[{type:"declaration",property:"width",value:"100%"}]},{type:"rule",selectors:["ActionBar>Label","ActionBar>GridLayout Label",".nt-action-bar>Label",".nt-action-bar>GridLayout Label"],declarations:[{type:"declaration",property:"font-size",value:"14"},{type:"declaration",property:"vertical-align",value:"center"},{type:"declaration",property:"text-align",value:"center"}]},{type:"rule",selectors:["ActionBar>GridLayout",".nt-action-bar>GridLayout"],declarations:[{type:"declaration",property:"width",value:"100%"},{type:"declaration",property:"height",value:"100%"}]},{type:"rule",selectors:["ActionBar>GridLayout>StackLayout",".nt-action-bar>GridLayout>StackLayout"],declarations:[{type:"declaration",property:"padding",value:"0"},{type:"declaration",property:"horizontal-align",value:"left"}]},{type:"rule",selectors:["ActionBar>GridLayout Button",".nt-action-bar>GridLayout Button"],declarations:[{type:"declaration",property:"padding",value:"12 10"},{type:"declaration",property:"horizontal-align",value:"left"}]},{type:"rule",selectors:['ActionBar>GridLayout [col="2"]','.nt-action-bar>GridLayout [col="2"]'],declarations:[{type:"declaration",property:"horizontal-align",value:"right"}]},{type:"rule",selectors:[".ns-android ActionBar>GridLayout",".ns-android .nt-action-bar>GridLayout"],declarations:[{type:"declaration",property:"padding",value:"0 4"}]},{type:"rule",selectors:[".ns-android ActionBar>GridLayout Button",".ns-android .nt-action-bar>GridLayout Button"],declarations:[{type:"declaration",property:"padding",value:"12 16"},{type:"declaration",property:"margin",value:"0"}]},{type:"rule",selectors:["Page",".ns-modal"],declarations:[{type:"declaration",property:"font-family",value:'"Orkney-Regular"'}]},{type:"rule",selectors:[".orkm"],declarations:[{type:"declaration",property:"font-family",value:'"Orkney-Medium"'}]},{type:"rule",selectors:[".bx"],declarations:[{type:"declaration",property:"font-family",value:'"boxicons"'},{type:"declaration",property:"font-size",value:"24"},{type:"declaration",property:"vertical-alignment",value:"center"}]},{type:"rule",selectors:[".bx.small"],declarations:[{type:"declaration",property:"padding",value:"0"},{type:"declaration",property:"font-size",value:"16"}]},{type:"rule",selectors:[".ns-light Page",".ns-light ActionBar",".ns-light SearchBar",".ns-light Tabs",".ns-light TabStripItem",".ns-light ListPicker"],declarations:[{type:"declaration",property:"color",value:"#212529"},{type:"declaration",property:"background",value:"#f1f3f5"}]},{type:"rule",selectors:[".ns-light MDRipple",".ns-light MDButton"],declarations:[{type:"declaration",property:"ripple-color",value:"rgba(134,142,150,0.2)"}]},{type:"rule",selectors:[".ns-light .hr"],declarations:[{type:"declaration",property:"border-color",value:"#dee2e6"}]},{type:"rule",selectors:[".ns-light .sd",".ns-light .fieldLabel"],declarations:[{type:"declaration",property:"background",value:"#f1f3f5"}]},{type:"rule",selectors:[".ns-light .urlCard",".ns-light .textCard",".ns-light .overviewItem",".ns-light .recipeItem"],declarations:[{type:"declaration",property:"background",value:"white"}]},{type:"rule",selectors:[".ns-light TextField.combinationToken"],declarations:[{type:"declaration",property:"background",value:"#dee2e6"}]},{type:"rule",selectors:[".ns-light .sd-item",".ns-light .sd-group-header",".ns-light .time .bx"],declarations:[{type:"declaration",property:"color",value:"#343a40"}]},{type:"rule",selectors:[".ns-light .option .bx",".ns-light .option .info"],declarations:[{type:"declaration",property:"color",value:"#495057"}]},{type:"rule",selectors:[".ns-light .imageHolder"],declarations:[{type:"declaration",property:"color",value:"#ced4da"},{type:"declaration",property:"background",value:"#dee2e6"}]},{type:"rule",selectors:[".ns-light .count",".ns-light .marker"],declarations:[{type:"declaration",property:"color",value:"#f1f3f5"},{type:"declaration",property:"background",value:"#212529"}]},{type:"rule",selectors:[".ns-light .instruction",".ns-light .dayContainer"],declarations:[{type:"declaration",property:"border-color",value:"#212529"}]},{type:"rule",selectors:[".ns-light MDProgress"],declarations:[{type:"declaration",property:"progress-background-color",value:"#ced4da"}]},{type:"rule",selectors:[".ns-light MDFloatingActionButton"],declarations:[{type:"declaration",property:"color",value:"white"}]},{type:"rule",selectors:[".ns-light .appIconContainer"],declarations:[{type:"declaration",property:"background",value:"#ff5200"}]},{type:"rule",selectors:[".ns-dark Page",".ns-dark ActionBar",".ns-dark SearchBar",".ns-dark Tabs",".ns-dark TabStripItem",".ns-dark ListPicker"],declarations:[{type:"declaration",property:"color",value:"#f1f3f5"},{type:"declaration",property:"background",value:"#212529"}]},{type:"rule",selectors:[".ns-dark MDRipple",".ns-dark MDButton"],declarations:[{type:"declaration",property:"ripple-color",value:"rgba(206,212,218,0.1)"}]},{type:"rule",selectors:[".ns-dark .hr"],declarations:[{type:"declaration",property:"border-color",value:"#111"}]},{type:"rule",selectors:[".ns-dark .sd",".ns-dark .fieldLabel"],declarations:[{type:"declaration",property:"background",value:"#212529"}]},{type:"rule",selectors:[".ns-dark .urlCard",".ns-dark .textCard",".ns-dark .overviewItem",".ns-dark .recipeItem",".ns-dark TextField.combinationToken"],declarations:[{type:"declaration",property:"background",value:"#343a40"}]},{type:"rule",selectors:[".ns-dark .sd-item",".ns-dark .sd-group-header",".ns-dark .time .bx"],declarations:[{type:"declaration",property:"color",value:"#dee2e6"}]},{type:"rule",selectors:[".ns-dark .option .bx",".ns-dark .option .info"],declarations:[{type:"declaration",property:"color",value:"#adb5bd"}]},{type:"rule",selectors:[".ns-dark .imageHolder"],declarations:[{type:"declaration",property:"color",value:"#343a40"},{type:"declaration",property:"background",value:"#111"}]},{type:"rule",selectors:[".ns-dark .count",".ns-dark .marker"],declarations:[{type:"declaration",property:"color",value:"#212529"},{type:"declaration",property:"background",value:"#f1f3f5"}]},{type:"rule",selectors:[".ns-dark .instruction",".ns-dark .dayContainer"],declarations:[{type:"declaration",property:"border-color",value:"#f1f3f5"}]},{type:"rule",selectors:[".ns-dark MDProgress"],declarations:[{type:"declaration",property:"progress-background-color",value:"#868e96"}]},{type:"rule",selectors:[".ns-dark MDFloatingActionButton"],declarations:[{type:"declaration",property:"color",value:"#212529"}]},{type:"rule",selectors:[".ns-dark .appIconContainer"],declarations:[{type:"declaration",property:"background",value:"#ff5200"}]},{type:"rule",selectors:["TextField","TextView","TimePickerField"],declarations:[{type:"declaration",property:"width",value:"100%"},{type:"declaration",property:"border-width",value:"1"},{type:"declaration",property:"font-size",value:"14"},{type:"declaration",property:"padding",value:"14 14 13"},{type:"declaration",property:"margin",value:"8 0 0 0"},{type:"declaration",property:"border-radius",value:"4"},{type:"declaration",property:"border-color",value:"#868e96"},{type:"declaration",property:"placeholder-color",value:"#868e96"}]},{type:"rule",selectors:["TextView"],declarations:[{type:"declaration",property:"line-height",value:"12"}]},{type:"rule",selectors:["SearchBar"],declarations:[{type:"declaration",property:"font-family",value:'"Orkney-Regular"'},{type:"declaration",property:"font-size",value:"16"},{type:"declaration",property:"text-field-hint-color",value:"#868e96"}]},{type:"rule",selectors:["TabView"],declarations:[{type:"declaration",property:"tab-text-color",value:"#868e96"}]},{type:"rule",selectors:[".inputField"],declarations:[{type:"declaration",property:"margin-bottom",value:"4"}]},{type:"rule",selectors:[".fieldLabel"],declarations:[{type:"declaration",property:"font-size",value:"12"},{type:"declaration",property:"margin-left",value:"12"},{type:"declaration",property:"padding",value:"0 4"}]},{type:"rule",selectors:[".progressContainer"],declarations:[{type:"declaration",property:"width",value:"100%"}]},{type:"rule",selectors:[".text-btn",".group-header",".category","MDActivityIndicator"],declarations:[{type:"declaration",property:"color",value:"#ff5200"}]},{type:"rule",selectors:["MDProgress"],declarations:[{type:"declaration",property:"progress-color",value:"#ff5200"}]},{type:"rule",selectors:["ActionBar"],declarations:[{type:"declaration",property:"margin",value:"0"},{type:"declaration",property:"padding",value:"6 8"}]},{type:"rule",selectors:["ActionBar GridLayout"],declarations:[{type:"declaration",property:"padding",value:"0"},{type:"declaration",property:"margin",value:"0"}]},{type:"rule",selectors:["ActionBar MDButton.bx"],declarations:[{type:"declaration",property:"padding",value:"0"},{type:"declaration",property:"margin",value:"0"}]},{type:"rule",selectors:["ActionBar MDButton.bx.flip"],declarations:[{type:"declaration",property:"transform",value:"scaleX(-1)"}]},{type:"rule",selectors:["ActionBar .title"],declarations:[{type:"declaration",property:"padding-left",value:"12"},{type:"declaration",property:"text-align",value:"left"},{type:"declaration",property:"font-size",value:"18"}]},{type:"rule",selectors:[".sd"],declarations:[{type:"declaration",property:"padding",value:"8"}]},{type:"rule",selectors:[".sd-item"],declarations:[{type:"declaration",property:"border-radius",value:"4"},{type:"declaration",property:"height",value:"48"},{type:"declaration",property:"vertical-alignment",value:"center"}]},{type:"rule",selectors:[".sd-item .bx"],declarations:[{type:"declaration",property:"font-size",value:"24"}]},{type:"rule",selectors:[".sd-item.selected-sd-item"],declarations:[{type:"declaration",property:"color",value:"#ff5200"},{type:"declaration",property:"background",value:"rgba(255,82,0,0.1)"}]},{type:"rule",selectors:[".sd-item.selected-sd-item MDRipple"],declarations:[{type:"declaration",property:"ripple-color",value:"transparent"}]},{type:"rule",selectors:[".sd-item Label"],declarations:[{type:"declaration",property:"padding",value:"2 16 0 0"},{type:"declaration",property:"font-size",value:"16"},{type:"declaration",property:"vertical-alignment",value:"center"}]},{type:"rule",selectors:[".sd-item Label.bx"],declarations:[{type:"declaration",property:"padding",value:"0 0 0 16"}]},{type:"rule",selectors:[".sd-item MDRipple"],declarations:[{type:"declaration",property:"padding",value:"0 16"}]},{type:"rule",selectors:[".sd-group-header"],declarations:[{type:"declaration",property:"width",value:"100%"},{type:"declaration",property:"padding",value:"8"}]},{type:"rule",selectors:["MDRipple"],declarations:[{type:"declaration",property:"border-radius",value:"4"}]},{type:"rule",selectors:["MDButton"],declarations:[{type:"declaration",property:"padding",value:"8"},{type:"declaration",property:"min-width",value:"0"},{type:"declaration",property:"min-height",value:"0"}]},{type:"rule",selectors:["MDButton.bx"],declarations:[{type:"declaration",property:"padding",value:"0"},{type:"declaration",property:"width",value:"48"},{type:"declaration",property:"height",value:"48"},{type:"declaration",property:"margin",value:"0 8 0 0"},{type:"declaration",property:"border-radius",value:"99"}]},{type:"rule",selectors:[".emptyStateContainer"],declarations:[{type:"declaration",property:"width",value:"100%"},{type:"declaration",property:"height",value:"100%"}]},{type:"rule",selectors:[".emptyState"],declarations:[{type:"declaration",property:"line-height",value:"8"},{type:"declaration",property:"padding",value:"0 32"},{type:"declaration",property:"text-align",value:"center"},{type:"declaration",property:"font-size",value:"16"},{type:"declaration",property:"horizontal-alignment",value:"center"}]},{type:"rule",selectors:[".emptyState .icon"],declarations:[{type:"declaration",property:"font-size",value:"64"},{type:"declaration",property:"text-align",value:"center"},{type:"declaration",property:"color",value:"#adb5bd"},{type:"declaration",property:"margin-bottom",value:"16"}]},{type:"rule",selectors:[".emptyState .logo"],declarations:[{type:"declaration",property:"width",value:"64"},{type:"declaration",property:"margin-bottom",value:"16"}]},{type:"rule",selectors:[".emptyState .title"],declarations:[{type:"declaration",property:"font-size",value:"20"},{type:"declaration",property:"text-align",value:"center"},{type:"declaration",property:"padding",value:"0"},{type:"declaration",property:"margin",value:"0"},{type:"declaration",property:"horizontal-alignment",value:"center"}]},{type:"rule",selectors:[".emptyState .title .bx"],declarations:[{type:"declaration",property:"font-size",value:"24"},{type:"declaration",property:"vertical-alignment",value:"center"}]},{type:"rule",selectors:["RadListView"],declarations:[{type:"declaration",property:"margin",value:"0 0 128"},{type:"declaration",property:"font-size",value:"16"}]},{type:"rule",selectors:[".recipeItem"],declarations:[{type:"declaration",property:"margin",value:"8 16"},{type:"declaration",property:"border-radius",value:"4"}]},{type:"rule",selectors:[".recipeItem .recipeInfo"],declarations:[{type:"declaration",property:"margin",value:"4"}]},{type:"rule",selectors:[".recipeItem .recipeInfo .category",".recipeItem .recipeInfo .time"],declarations:[{type:"declaration",property:"font-size",value:"12"},{type:"declaration",property:"padding",value:"0"},{type:"declaration",property:"margin",value:"0"}]},{type:"rule",selectors:[".recipeItem .recipeInfo .title"],declarations:[{type:"declaration",property:"margin",value:"0"},{type:"declaration",property:"padding",value:"4 0"}]},{type:"rule",selectors:[".recipeItem .recipeInfo .timeContainer"],declarations:[{type:"declaration",property:"padding",value:"0"}]},{type:"rule",selectors:[".recipeItem .recipeInfo .timeContainer .time"],declarations:[{type:"declaration",property:"padding",value:"0 0 0 4"}]},{type:"rule",selectors:[".imageHolder"],declarations:[{type:"declaration",property:"vertical-alignment",value:"center"}]},{type:"rule",selectors:[".imageHolder.card"],declarations:[{type:"declaration",property:"border-radius",value:"4 0 0 4"}]},{type:"rule",selectors:[".imageHolder.card Image"],declarations:[{type:"declaration",property:"border-radius",value:"4 0 0 4"}]},{type:"rule",selectors:[".swipe-item"],declarations:[{type:"declaration",property:"margin",value:"0 8"},{type:"declaration",property:"background",value:"#c92a2a"},{type:"declaration",property:"color",value:"#fff"},{type:"declaration",property:"height",value:"128"},{type:"declaration",property:"border-radius",value:"4"}]},{type:"rule",selectors:[".group-header"],declarations:[{type:"declaration",property:"text-transform",value:"uppercase"},{type:"declaration",property:"padding",value:"8"}]},{type:"rule",selectors:[".main-container"],declarations:[{type:"declaration",property:"padding",value:"8 8 88"}]},{type:"rule",selectors:[".main-container .option"],declarations:[{type:"declaration",property:"font-size",value:"16"}]},{type:"rule",selectors:[".main-container .option .bx"],declarations:[{type:"declaration",property:"margin",value:"11 24 11 16"}]},{type:"rule",selectors:[".main-container .option .info"],declarations:[{type:"declaration",property:"font-size",value:"12"},{type:"declaration",property:"line-height",value:"4"}]},{type:"rule",selectors:[".main-container .option StackLayout"],declarations:[{type:"declaration",property:"margin",value:"9 24 9 0"}]},{type:"rule",selectors:[".appIconContainer"],declarations:[{type:"declaration",property:"background",value:"#ff5200"},{type:"declaration",property:"padding",value:"24 0"},{type:"declaration",property:"width",value:"100%"},{type:"declaration",property:"border-radius",value:"4"}]},{type:"rule",selectors:[".appIconContainer .appIcon"],declarations:[{type:"declaration",property:"height",value:"128"}]},{type:"rule",selectors:[".viewRecipe .category",".viewRecipe .time",".viewRecipe .ingredient"],declarations:[{type:"declaration",property:"font-size",value:"16"}]},{type:"rule",selectors:[".viewRecipe .category"],declarations:[{type:"declaration",property:"margin",value:"0 8"}]},{type:"rule",selectors:[".viewRecipe .time"],declarations:[{type:"declaration",property:"margin",value:"0 8"}]},{type:"rule",selectors:[".viewRecipe .time .bx"],declarations:[{type:"declaration",property:"vertical-align",value:"top"}]},{type:"rule",selectors:[".viewRecipe .title"],declarations:[{type:"declaration",property:"font-size",value:"22"},{type:"declaration",property:"line-height",value:"6"}]},{type:"rule",selectors:[".viewRecipe .overviewContainer"],declarations:[{type:"declaration",property:"margin-top",value:"12"}]},{type:"rule",selectors:[".viewRecipe .overviewContainer .overviewItem"],declarations:[{type:"declaration",property:"border-radius",value:"4"},{type:"declaration",property:"margin",value:"8"},{type:"declaration",property:"android-elevation",value:"1"}]},{type:"rule",selectors:[".viewRecipe .overviewContainer .overviewItem .bx"],declarations:[{type:"declaration",property:"padding",value:"12 0 0 12"},{type:"declaration",property:"color",value:"#868e96"},{type:"declaration",property:"horizontal-alignment",value:"left"}]},{type:"rule",selectors:[".viewRecipe .overviewContainer .overviewItem .itemCount"],declarations:[{type:"declaration",property:"font-size",value:"16"},{type:"declaration",property:"padding",value:"8 12 12"}]},{type:"rule",selectors:[".viewRecipe .ingredient"],declarations:[{type:"declaration",property:"line-height",value:"6"},{type:"declaration",property:"padding-bottom",value:"0"}]},{type:"rule",selectors:[".viewRecipe .count"],declarations:[{type:"declaration",property:"width",value:"24"},{type:"declaration",property:"height",value:"24"},{type:"declaration",property:"padding-top",value:"4%"},{type:"declaration",property:"margin",value:"0 0 0 8"},{type:"declaration",property:"text-align",value:"center"},{type:"declaration",property:"border-radius",value:"99"}]},{type:"rule",selectors:[".viewRecipe .instruction"],declarations:[{type:"declaration",property:"font-size",value:"16"},{type:"declaration",property:"line-height",value:"6"},{type:"declaration",property:"padding",value:"1 0 24 36"},{type:"declaration",property:"margin",value:"0 0 0 19"},{type:"declaration",property:"border-width",value:"0 0 0 2"}]},{type:"rule",selectors:[".viewRecipe .instruction.noBorder"],declarations:[{type:"declaration",property:"border-color",value:"transparent"}]},{type:"rule",selectors:[".viewRecipe .urlCard"],declarations:[{type:"declaration",property:"margin",value:"8 16"},{type:"declaration",property:"border-radius",value:"4"},{type:"declaration",property:"font-size",value:"16"}]},{type:"rule",selectors:[".viewRecipe .urlCard .bx"],declarations:[{type:"declaration",property:"font-size",value:"24"}]},{type:"rule",selectors:[".viewRecipe .urlCard .link"],declarations:[{type:"declaration",property:"padding",value:"13 16 13 11"},{type:"declaration",property:"margin",value:"0"},{type:"declaration",property:"line-height",value:"6"}]},{type:"rule",selectors:[".viewRecipe .urlCard .linkIcon"],declarations:[{type:"declaration",property:"padding",value:"0 0 0 12"}]},{type:"rule",selectors:[".viewRecipe .textCard"],declarations:[{type:"declaration",property:"font-size",value:"16"},{type:"declaration",property:"line-height",value:"6"},{type:"declaration",property:"padding",value:"13 16"},{type:"declaration",property:"margin",value:"8 16"},{type:"declaration",property:"border-radius",value:"4"}]},{type:"rule",selectors:["#btnFabContainer"],declarations:[{type:"declaration",property:"z-index",value:"100"},{type:"declaration",property:"width",value:"100%"},{type:"declaration",property:"height",value:"100%"}]},{type:"rule",selectors:["MDFloatingActionButton"],declarations:[{type:"declaration",property:"width",value:"56"},{type:"declaration",property:"height",value:"56"},{type:"declaration",property:"margin",value:"16"},{type:"declaration",property:"background",value:"#ff5200"},{type:"declaration",property:"ripple-color",value:"#ff864d"}]},{type:"rule",selectors:[".sectionTitle"],declarations:[{type:"declaration",property:"font-size",value:"20"}]},{type:"rule",selectors:[".text-btn"],declarations:[{type:"declaration",property:"font-size",value:"14"},{type:"declaration",property:"horizontal-alignment",value:"left"},{type:"declaration",property:"padding",value:"12"},{type:"declaration",property:"margin",value:"8 0 0 0"},{type:"declaration",property:"min-width",value:"0"}]},{type:"rule",selectors:["MDButton.closeBtn"],declarations:[{type:"declaration",property:"margin",value:"16 0 0"},{type:"declaration",property:"width",value:"32"},{type:"declaration",property:"height",value:"32"},{type:"declaration",property:"min-width",value:"0"},{type:"declaration",property:"vertical-alignment",value:"top"}]},{type:"rule",selectors:[".dayPlan"],declarations:[{type:"declaration",property:"padding",value:"0 0 88"},{type:"declaration",property:"width",value:"100%"}]},{type:"rule",selectors:[".dayPlan .plansContainer"],declarations:[{type:"declaration",property:"padding",value:"8 4"},{type:"declaration",property:"color",value:"#212529"}]},{type:"rule",selectors:[".dayPlan .plansContainer.breakfast"],declarations:[{type:"declaration",property:"background",value:"#ffb180"}]},{type:"rule",selectors:[".dayPlan .plansContainer.lunch"],declarations:[{type:"declaration",property:"background",value:"#ceff80"}]},{type:"rule",selectors:[".dayPlan .plansContainer.dinner"],declarations:[{type:"declaration",property:"background",value:"#80ceff"}]},{type:"rule",selectors:[".dayPlan .plansContainer.snacks"],declarations:[{type:"declaration",property:"background",value:"#b180ff"}]},{type:"rule",selectors:[".dayPlan .plansContainer .periodLabel"],declarations:[{type:"declaration",property:"text-transform",value:"uppercase"},{type:"declaration",property:"vertical-alignment",value:"center"},{type:"declaration",property:"font-size",value:"14"},{type:"declaration",property:"padding",value:"0 0 0 16"}]},{type:"rule",selectors:[".dayPlan .plansContainer .recipes"],declarations:[{type:"declaration",property:"margin",value:"4 8 4"}]},{type:"rule",selectors:[".dayPlan .plansContainer .recipes .recipeTitle"],declarations:[{type:"declaration",property:"font-size",value:"14"},{type:"declaration",property:"padding",value:"6 8"},{type:"declaration",property:"line-height",value:"4"}]},{type:"rule",selectors:[".dayPlan .plansContainer .recipes .closeBtn"],declarations:[{type:"declaration",property:"margin",value:"0 8"},{type:"declaration",property:"vertical-alignment",value:"top"}]},{type:"rule",selectors:[".dayPlan .plansContainer MDRipple",".dayPlan .plansContainer MDButton"],declarations:[{type:"declaration",property:"ripple-color",value:"rgba(134,142,150,0.2)"}]},{type:"rule",selectors:[".dialogContainer"],declarations:[{type:"declaration",property:"max-width",value:"480"},{type:"declaration",property:"width",value:"100%"},{type:"declaration",property:"color",value:"#212529"},{type:"declaration",property:"background",value:"#f1f3f5"},{type:"declaration",property:"font-size",value:"16"}]},{type:"rule",selectors:[".dialogContainer.dark"],declarations:[{type:"declaration",property:"color",value:"#f1f3f5"},{type:"declaration",property:"background",value:"#212529"}]},{type:"rule",selectors:[".dialogContainer .dialogTitle"],declarations:[{type:"declaration",property:"line-height",value:"6"},{type:"declaration",property:"padding",value:"24 24 16"},{type:"declaration",property:"font-size",value:"20"}]},{type:"rule",selectors:[".dialogContainer .dialogInput"],declarations:[{type:"declaration",property:"padding",value:"0 24 16"}]},{type:"rule",selectors:[".dialogContainer .dialogDescription"],declarations:[{type:"declaration",property:"line-height",value:"6"},{type:"declaration",property:"padding",value:"0 24 8"}]},{type:"rule",selectors:[".dialogContainer .actionItem"],declarations:[{type:"declaration",property:"letter-spacing",value:"0"},{type:"declaration",property:"text-transform",value:"none"},{type:"declaration",property:"line-height",value:"6"},{type:"declaration",property:"padding",value:"13 24"},{type:"declaration",property:"margin",value:"0"}]},{type:"rule",selectors:[".dialogContainer .actionsContainer"],declarations:[{type:"declaration",property:"padding",value:"8"}]},{type:"rule",selectors:[".dialogContainer .action"],declarations:[{type:"declaration",property:"font-size",value:"12"},{type:"declaration",property:"padding",value:"12"},{type:"declaration",property:"min-width",value:"0"},{type:"declaration",property:"color",value:"#ff7043"}]},{type:"rule",selectors:[".dialogContainer MDButton.actionIcon"],declarations:[{type:"declaration",property:"width",value:"auto"},{type:"declaration",property:"height",value:"auto"},{type:"declaration",property:"min-width",value:"0"},{type:"declaration",property:"padding",value:"16 24"},{type:"declaration",property:"border-radius",value:"4"},{type:"declaration",property:"letter-spacing",value:"0"},{type:"declaration",property:"text-transform",value:"none"},{type:"declaration",property:"margin",value:"0 16 16"}]},{type:"rule",selectors:["MDActivityIndicator"],declarations:[{type:"declaration",property:"width",value:"24"},{type:"declaration",property:"height",value:"24"},{type:"declaration",property:"margin",value:"16 12"}]},{type:"rule",selectors:[".bounce-enter-active"],declarations:[{type:"declaration",property:"animation-name",value:"bounce-in"},{type:"declaration",property:"animation-duration",value:"1s"},{type:"declaration",property:"animation-fill-mode",value:"forwards"},{type:"declaration",property:"animation-timing-function",value:"ease-in-out"}]},{type:"rule",selectors:[".bounce-leave-active"],declarations:[{type:"declaration",property:"animation-name",value:"bounce-out"},{type:"declaration",property:"animation-duration",value:"0.25s"},{type:"declaration",property:"animation-fill-mode",value:"forwards"}]},{type:"keyframes",name:"bounce-in",keyframes:[{type:"keyframe",values:["0%"],declarations:[{type:"declaration",property:"transform",value:"scale(0)"},{type:"declaration",property:"opacity",value:"0"}]},{type:"keyframe",values:["25%"],declarations:[{type:"declaration",property:"transform",value:"scale(1.2)"},{type:"declaration",property:"opacity",value:"1"}]},{type:"keyframe",values:["50%"],declarations:[{type:"declaration",property:"transform",value:"scale(0.9)"}]},{type:"keyframe",values:["75%"],declarations:[{type:"declaration",property:"transform",value:"scale(1.1)"}]},{type:"keyframe",values:["100%"],declarations:[{type:"declaration",property:"transform",value:"scale(1)"}]}]},{type:"keyframes",name:"bounce-out",keyframes:[{type:"keyframe",values:["0%"],declarations:[{type:"declaration",property:"transform",value:"scale(1)"}]},{type:"keyframe",values:["100%"],declarations:[{type:"declaration",property:"transform",value:"scale(0)"},{type:"declaration",property:"opacity",value:"0"}]}]},{type:"rule",selectors:[".dolly-enter-active"],declarations:[{type:"declaration",property:"animation-name",value:"dolly"},{type:"declaration",property:"animation-duration",value:"1s"},{type:"declaration",property:"animation-delay",value:"0.25s"},{type:"declaration",property:"animation-fill-mode",value:"forwards"},{type:"declaration",property:"animation-timing-function",value:"ease-in-out"}]},{type:"rule",selectors:[".dolly-leave-active"],declarations:[{type:"declaration",property:"opacity",value:"0"}]},{type:"keyframes",name:"dolly",keyframes:[{type:"keyframe",values:["0%"],declarations:[{type:"declaration",property:"transform",value:"rotate(20deg)"}]},{type:"keyframe",values:["25%"],declarations:[{type:"declaration",property:"transform",value:"rotate(-20deg)"}]},{type:"keyframe",values:["50%"],declarations:[{type:"declaration",property:"transform",value:"rotate(10deg)"}]},{type:"keyframe",values:["75%"],declarations:[{type:"declaration",property:"transform",value:"rotate(-10deg)"}]},{type:"keyframe",values:["100%"],declarations:[{type:"declaration",property:"transform",value:"rotate(0deg)"}]}]}],parsingErrors:[]}};0},189:function(e,t,r){"use strict";var render=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("Page",{attrs:{actionBarHidden:"true",androidStatusBarBackground:"Light"==e.appTheme?"#f1f3f5":"#212529"},on:{loaded:e.onPageLoad,unloaded:e.onPageUnload}},[r("RadSideDrawer",{ref:"drawer",attrs:{allowEdgeSwipe:"true",showOverNavigation:"true",id:"sideDrawer",drawerContentSize:"270",gesturesEnabled:"true",drawerTransition:"SlideInOnTopTransition"}},[r("GridLayout",{directives:[{name:"view",rawName:"v-view:drawerContent",arg:"drawerContent",modifiers:{}}],staticClass:"sd",attrs:{rows:"*, auto",columns:"*"}},[r("StackLayout",{attrs:{row:"0"}},[e._l(e.topmenu,(function(t,a){return r("GridLayout",{key:a,staticClass:"sd-item orkm",class:{"selected-sd-item":e.currentComponent===t.component},attrs:{rows:"48",columns:"auto, 24, *"}},[r("MDRipple",{attrs:{row:"0",colSpan:"3"},on:{tap:function(r){return e.navigateTo(t.component,!1,!1)}}}),r("Label",{staticClass:"bx",attrs:{col:"0",row:"0",text:e.icon[t.icon]}}),r("Label",{attrs:{col:"2",row:"0",text:t.title}})],1)})),r("StackLayout",{staticClass:"hr m-8"}),r("GridLayout",{staticClass:"sd-item orkm",class:{"selected-sd-item":"MealPlanner"===e.currentComponent},attrs:{rows:"48",columns:"auto, 24, *"}},[r("MDRipple",{attrs:{row:"0",colSpan:"3"},on:{tap:function(t){return e.navigateTo(e.MealPlanner,!0,!1)}}}),r("Label",{staticClass:"bx",attrs:{col:"0",row:"0",text:e.icon.calendar}}),r("Label",{attrs:{col:"2",row:"0",text:"Meal Planner"}})],1),r("StackLayout",{staticClass:"hr m-8"}),e.categoriesWithRecipes.length?r("GridLayout",{staticClass:"sd-group-header orkm",attrs:{rows:"auto",columns:"*, auto"}},[r("Label",{attrs:{verticalAlignment:"center",col:"0",text:"Categories"}}),r("MDButton",{attrs:{variant:"text",col:"2",text:e.editCategory?"DONE":"RENAME"},on:{tap:e.toggleCatEdit}})],1):e._e(),r("ScrollView",{attrs:{height:"100%"}},[r("StackLayout",e._l(e.categoriesWithRecipes,(function(t,a){return r("GridLayout",{key:a,staticClass:"sd-item orkm",class:{"selected-sd-item":e.currentComponent==t},attrs:{columns:"auto, *, auto"}},[r("MDRipple",{attrs:{row:"0",colSpan:"3"},on:{tap:function(r){return e.navigateTo(t,!1,!0)}}}),r("Label",{staticClass:"bx",attrs:{col:"0",text:e.icon.label,margin:"0 24 0 0"}}),r("Label",{attrs:{col:"1",text:t}}),e.editCategory?r("MDButton",{staticClass:"bx",attrs:{variant:"text",col:"2",text:e.icon.edit},on:{tap:function(r){return e.renameCategory(t)}}}):e._e()],1)})),1)],1)],2),r("StackLayout",{attrs:{row:"1"}},[r("StackLayout",{staticClass:"hr m-10"}),e._l(e.bottommenu,(function(t,a){return r("GridLayout",{key:a,staticClass:"sd-item orkm",class:{"selected-sd-item":e.currentComponent==t.title},attrs:{rows:"48",columns:"auto, 24, *"}},[r("MDRipple",{attrs:{colSpan:"3"},on:{tap:function(r){return e.navigateTo(t.component,!0,!1)}}}),r("Label",{staticClass:"bx",attrs:{col:"0",text:e.icon[t.icon]}}),r("Label",{attrs:{col:"2",text:t.title}})],1)}))],2)],1),r("Frame",{directives:[{name:"view",rawName:"v-view:mainContent",arg:"mainContent",modifiers:{}}],attrs:{id:"main-frame"}},[r("EnRecipes",{ref:"enrecipes",attrs:{filterFavorites:e.filterFavorites,filterTrylater:e.filterTrylater,selectedCategory:e.selectedCategory,closeDrawer:e.closeDrawer,hijackGlobalBackEvent:e.hijackGlobalBackEvent,releaseGlobalBackEvent:e.releaseGlobalBackEvent}})],1)],1)],1)};render._withStripped=!0;var a=r(3),o=r(8),i=r(123),l=r(45),n=r(31),EnRecipesvue_type_template_id_5150c21e_render=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("Page",{on:{loaded:e.onPageLoad}},[r("ActionBar",{attrs:{androidElevation:e.viewIsScrolled?4:0}},[e.showSearch?r("GridLayout",{attrs:{columns:"auto, *",verticalAlignment:"center"}},[r("MDButton",{staticClass:"bx",attrs:{text:e.icon.back,variant:"text",automationText:"Back",col:"0"},on:{tap:e.closeSearch}}),r("SearchBar",{attrs:{col:"1",hint:"Search"},on:{textChange:e.updateFilter,clear:e.clearSearch},model:{value:e.searchQuery,callback:function(t){e.searchQuery=t.object.text},expression:"searchQuery"}})],1):r("GridLayout",{attrs:{columns:"auto, *, auto, auto"}},[r("MDButton",{staticClass:"bx",attrs:{col:"0",variant:"text",text:e.icon.menu,automationText:"Back"},on:{tap:e.showDrawer}}),r("Label",{staticClass:"title orkm",attrs:{text:e.currentComponent,col:"1"}}),e.recipes.length?r("MDButton",{staticClass:"bx",attrs:{text:e.icon.search,variant:"text",col:"2"},on:{tap:e.openSearch}}):e._e(),e.recipes.length?r("MDButton",{staticClass:"bx",attrs:{text:e.icon.sort,variant:"text",col:"3"},on:{tap:e.sortDialog}}):e._e()],1)],1),r("AbsoluteLayout",[r("RadListView",{ref:"listView",attrs:{itemHeight:"112",swipeActions:"true",filteringFunction:e.filterFunction,sortingFunction:e.sortFunction,items:e.recipes,"+alias":"recipe"},on:{itemSwipeProgressChanged:e.onSwiping,itemSwipeProgressEnded:e.onSwipeEnded,scrolled:e.onScroll}},[r("v-template",{scopedSlots:e._u([{key:"default",fn:function(t){var a=t.recipe;t.$index,t.$even,t.$odd;return r("GridLayout",{staticClass:"recipeItem",attrs:{rows:"112",columns:"112, *",androidElevation:"1"}},[r("MDRipple",{attrs:{colSpan:"2"},on:{tap:function(t){return e.viewRecipe(a.id)}}}),r("GridLayout",{staticClass:"imageHolder card",attrs:{rows:"112",columns:"112"}},[a.imageSrc?r("Image",{attrs:{row:"0",col:"0",src:a.imageSrc,stretch:"aspectFill",decodeWidth:"112",decodeHeight:"112",loadMode:"async"}}):r("Label",{staticClass:"bx",attrs:{row:"0",col:"0",horizontalAlignment:"center",fontSize:"56",text:e.icon.image}})],1),r("StackLayout",{staticClass:"recipeInfo",attrs:{col:"1"}},[r("Label",{staticClass:"orkm category",attrs:{text:a.category}}),r("Label",{staticClass:"orkm title",attrs:{text:a.title}}),r("StackLayout",{staticClass:"timeContainer",attrs:{orientation:"horizontal"}},[r("Label",{staticClass:"bx small",attrs:{text:e.icon.time}}),r("Label",{staticClass:"time",attrs:{text:""+e.formattedTotalTime(a.prepTime,a.cookTime).time}})],1)],1)],1)}}])}),r("v-template",{attrs:{name:"itemswipe"},scopedSlots:e._u([{key:"default",fn:function(t){t.recipe,t.$index,t.$even,t.$odd;return r("GridLayout",{attrs:{columns:"*, auto"}},[r("StackLayout",{staticClass:"swipe-item right",attrs:{id:"delete-action",col:"1"}},[r("Label",{staticClass:"bx",attrs:{padding:"8 0 0 6",text:e.icon.trash}})],1)],1)}}])}),r("v-template",{attrs:{name:"footer"},scopedSlots:e._u([{key:"default",fn:function(e){e.recipe,e.$index,e.$even,e.$odd;return r("StackLayout",{attrs:{height:"80"}})}}])})],1),r("GridLayout",{staticClass:"emptyStateContainer",attrs:{rows:"*, auto, *, 88",columns:"*"}},[e.recipes.length||e.filterFavorites||e.filterTrylater||e.selectedCategory?e._e():r("StackLayout",{staticClass:"emptyState",attrs:{row:"1"},on:{tap:e.addRecipe}},[r("Label",{staticClass:"bx icon",attrs:{text:e.icon.plusCircle}}),r("Label",{staticClass:"title orkm",attrs:{text:"Start adding your recipes!",textWrap:"true"}}),r("StackLayout",{attrs:{orientation:"horizontal",horizontalAlignment:"center"}},[r("Label",{attrs:{text:"Use the "}}),r("Label",{staticClass:"bx",attrs:{text:e.icon.plus}}),r("Label",{attrs:{text:" button to add one"}})],1)],1),e.filteredRecipes.length||!e.filterTrylater||e.searchQuery?e._e():r("StackLayout",{staticClass:"emptyState",attrs:{row:"1"}},[r("Label",{staticClass:"bx icon",attrs:{text:e.icon.trylaterOutline,textWrap:"true"}}),r("Label",{staticClass:"title orkm",attrs:{text:"All done!",textWrap:"true"}}),r("Label",{attrs:{text:"Recipes you mark as try later will be listed here",textWrap:"true"}})],1),e.filteredRecipes.length||!e.filterFavorites||e.searchQuery?e._e():r("StackLayout",{staticClass:"emptyState",attrs:{row:"1"}},[r("Label",{staticClass:"bx icon",attrs:{text:e.icon.heartOutline,textWrap:"true"}}),r("Label",{staticClass:"title orkm",attrs:{text:"No favorites yet",textWrap:"true"}}),r("Label",{attrs:{text:"Recipes you mark as favorite will be listed here",textWrap:"true"}})],1),e.filteredRecipes.length||e.searchQuery||!e.selectedCategory?e._e():r("StackLayout",{staticClass:"emptyState",attrs:{row:"1"}},[r("Label",{staticClass:"bx icon",attrs:{text:e.icon.labelOutline,textWrap:"true"}}),r("Label",{staticClass:"title orkm",attrs:{text:"Category looks empty",textWrap:"true"}}),r("StackLayout",{attrs:{orientation:"horizontal",horizontalAlignment:"center"}},[r("Label",{attrs:{text:"Use the ",textWrap:"true"}}),r("Label",{staticClass:"bx",attrs:{text:e.icon.plus}}),r("Label",{attrs:{text:" button to add a recipe",textWrap:"true"}})],1)],1),!e.filteredRecipes.length&&e.searchQuery?r("StackLayout",{staticClass:"emptyState",attrs:{row:"1"}},[r("Label",{staticClass:"bx icon",attrs:{text:e.icon.search,textWrap:"true"}}),r("Label",{staticClass:"title orkm",attrs:{text:"No recipes found",textWrap:"true"}}),r("Label",{attrs:{text:'Your search "'+e.searchQuery+'" did not match any recipes'+e.noResultFor,textWrap:"true"}})],1):e._e()],1),r("GridLayout",{attrs:{id:"btnFabContainer",rows:"*, auto",columns:"*, auto"}},[r("transition",{attrs:{name:"bounce"}},[e.showFAB?r("MDFloatingActionButton",{staticClass:"bx fab-button",attrs:{row:"1",col:"1",src:"res://plus"},on:{tap:e.addRecipe}}):e._e()],1)],1)],1)],1)};EnRecipesvue_type_template_id_5150c21e_render._withStripped=!0;var EditRecipevue_type_template_id_2dd987d3_render=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("Page",{on:{loaded:e.onPageLoad,unloaded:e.releaseBackEvent}},[r("ActionBar",{attrs:{androidElevation:e.viewIsScrolled?4:0}},[r("GridLayout",{attrs:{rows:"*",columns:"auto, *, auto"}},[r("MDButton",{staticClass:"bx",attrs:{variant:"text",text:e.icon.back,automationText:"Back",col:"0"},on:{tap:e.navigateBack}}),r("Label",{staticClass:"title orkm",attrs:{text:e.title,col:"1"}}),e.hasChanges&&!e.saving?r("MDButton",{staticClass:"bx",attrs:{variant:"text",text:e.icon.save,col:"2"},on:{tap:e.saveOperation}}):e._e(),e.saving?r("MDActivityIndicator",{attrs:{col:"2",busy:e.saving}}):e._e()],1)],1),r("ScrollView",{attrs:{width:"100%",height:"100%"},on:{scroll:e.onScroll}},[r("StackLayout",{attrs:{width:"100%",padding:"0 0 88"}},[r("AbsoluteLayout",[r("StackLayout",{staticClass:"imageHolder",attrs:{width:"100%",height:e.screenWidth,verticalAlignment:"center"}},[e.recipeContent.imageSrc?r("Image",{attrs:{src:e.recipeContent.imageSrc,stretch:"aspectFill",width:"100%",height:e.screenWidth}}):r("Label",{staticClass:"bx",attrs:{horizontalAlignment:"center",fontSize:"160",text:e.icon.image}})],1),r("transition",{attrs:{name:e.recipeContent.imageSrc?"null":"bounce"}},[e.showFab?r("MDFloatingActionButton",{staticClass:"bx",attrs:{top:e.screenWidth-44,left:e.screenWidth-88,src:"res://camera"},on:{tap:e.imageHandler}}):e._e()],1)],1),r("StackLayout",{attrs:{margin:"0 16"}},[r("AbsoluteLayout",{staticClass:"inputField"},[r("TextField",{attrs:{hint:"My Healthy Recipe"},on:{loaded:function(t){return e.setInputTypeText(t,"words")}},model:{value:e.recipeContent.title,callback:function(t){e.$set(e.recipeContent,"title",t.object.text)},expression:"recipeContent.title"}}),r("Label",{staticClass:"fieldLabel",attrs:{top:"0",text:"Title"}})],1),r("AbsoluteLayout",{staticClass:"inputField"},[r("TextField",{attrs:{text:e.recipeContent.category,editable:"false"},on:{focus:function(t){!1===e.modalOpen&&e.showCategories(!0)},tap:function(t){return e.showCategories(!1)}}}),r("Label",{staticClass:"fieldLabel",attrs:{top:"0",text:"Category"}})],1),r("GridLayout",{attrs:{columns:"*, 8, *"}},[r("AbsoluteLayout",{staticClass:"inputField",attrs:{col:"0"}},[r("TextField",{ref:"prepTime",attrs:{text:e.timeRequired("prepTime"),editable:"false"},on:{focus:function(t){!1===e.modalOpen&&e.setTimeRequired(!0,"prepTime")},tap:function(t){return e.setTimeRequired(!1,"prepTime")}}}),r("Label",{staticClass:"fieldLabel",attrs:{top:"0",text:"Preparation time"}})],1),r("AbsoluteLayout",{staticClass:"inputField",attrs:{col:"2"}},[r("TextField",{ref:"cookTime",attrs:{text:e.timeRequired("cookTime"),editable:"false"},on:{focus:function(t){!1===e.modalOpen&&e.setTimeRequired(!0,"cookTime")},tap:function(t){return e.setTimeRequired(!1,"cookTime")}}}),r("Label",{staticClass:"fieldLabel",attrs:{top:"0",text:"Cooking time"}})],1)],1),r("GridLayout",{attrs:{columns:"*, 8, *"}},[r("AbsoluteLayout",{staticClass:"inputField",attrs:{col:"0"}},[r("TextField",{ref:"yieldQuantity",attrs:{hint:"1",keyboardType:"number",returnKeyType:"next"},model:{value:e.recipeContent.yield.quantity,callback:function(t){e.$set(e.recipeContent.yield,"quantity",t.object.text)},expression:"recipeContent.yield.quantity"}}),r("Label",{staticClass:"fieldLabel",attrs:{top:"0",text:"Yield quantity"}})],1),r("AbsoluteLayout",{staticClass:"inputField",attrs:{col:"2"}},[r("TextField",{attrs:{text:e.recipeContent.yield.unit,editable:"false"},on:{focus:function(t){!1===e.modalOpen&&e.showYieldUnits(!0)},tap:function(t){return e.showYieldUnits(!1)}}}),r("Label",{staticClass:"fieldLabel",attrs:{top:"0",text:"Yield measured in"}})],1)],1),r("StackLayout",{staticClass:"hr",attrs:{margin:"24 16"}})],1),r("StackLayout",{attrs:{margin:"0 16"}},[r("Label",{staticClass:"sectionTitle",attrs:{text:"Ingredients"}}),e._l(e.recipeContent.ingredients,(function(t,a){return r("GridLayout",{key:a,attrs:{columns:"*,8,auto,8,auto,8,auto"}},[r("TextField",{ref:"ingredient",refInFor:!0,attrs:{col:"0",hint:"Item "+(a+1),returnKeyType:"next"},on:{loaded:function(t){return e.focusField(t,"sentence")}},model:{value:e.recipeContent.ingredients[a].item,callback:function(t){e.$set(e.recipeContent.ingredients[a],"item",t.object.text)},expression:"recipeContent.ingredients[index].item"}}),r("TextField",{attrs:{width:"60",col:"2",hint:"1.00",keyboardType:"number",returnKeyType:"next"},model:{value:e.recipeContent.ingredients[a].quantity,callback:function(t){e.$set(e.recipeContent.ingredients[a],"quantity",t.object.text)},expression:"recipeContent.ingredients[index].quantity"}}),r("TextField",{attrs:{width:"76",col:"4",hint:"Unit",editable:"false"},on:{focus:function(t){!1===e.modalOpen&&e.showUnits(t,!0,a)},tap:function(t){return e.showUnits(t,!1,a)}},model:{value:e.recipeContent.ingredients[a].unit,callback:function(t){e.$set(e.recipeContent.ingredients[a],"unit",t.object.text)},expression:"recipeContent.ingredients[index].unit"}}),r("MDButton",{staticClass:"bx closeBtn",attrs:{variant:"text",col:"6",text:e.icon.close},on:{tap:function(t){return e.removeIngredient(a)}}})],1)})),r("MDButton",{staticClass:"text-btn orkm",attrs:{variant:"text",text:"+ ADD INGREDIENT"},on:{tap:function(t){return e.addIngredient()}}}),r("StackLayout",{staticClass:"hr",attrs:{margin:"24 16"}})],2),r("StackLayout",{attrs:{margin:"0 16"}},[r("Label",{staticClass:"sectionTitle",attrs:{text:"Instructions"}}),e._l(e.recipeContent.instructions,(function(t,a){return r("GridLayout",{key:a,attrs:{columns:"*,8,auto"}},[r("TextView",{attrs:{col:"0",hint:"Step "+(a+1)},on:{loaded:function(t){return e.focusField(t,"multiLine")}},model:{value:e.recipeContent.instructions[a],callback:function(t){e.$set(e.recipeContent.instructions,a,t.object.text)},expression:"recipeContent.instructions[index]"}}),r("MDButton",{staticClass:"bx closeBtn",attrs:{variant:"text",col:"2",text:e.icon.close},on:{tap:function(t){return e.removeInstruction(a)}}})],1)})),r("MDButton",{staticClass:"text-btn orkm",attrs:{variant:"text",text:"+ ADD STEP"},on:{tap:e.addInstruction}}),r("StackLayout",{staticClass:"hr",attrs:{margin:"24 16"}})],2),r("StackLayout",{attrs:{margin:"0 16"}},[r("Label",{staticClass:"sectionTitle",attrs:{text:"Combinations"}}),e._l(e.recipeContent.combinations,(function(t,a){return r("GridLayout",{key:a,attrs:{columns:"*,8,auto"}},[r("TextField",{staticClass:"combinationToken",attrs:{col:"0",text:e.getCombinationTitle(t),editable:"false"}}),r("MDButton",{staticClass:"bx closeBtn",attrs:{variant:"text",col:"2",text:e.icon.close},on:{tap:function(r){return e.removeCombination(t)}}})],1)})),r("MDButton",{staticClass:"text-btn orkm",attrs:{variant:"text",text:"+ ADD COMBINATION"},on:{tap:e.showCombinations}}),r("StackLayout",{staticClass:"hr",attrs:{margin:"24 16"}})],2),r("StackLayout",{attrs:{margin:"0 16"}},[r("Label",{staticClass:"sectionTitle",attrs:{text:"Notes"}}),e._l(e.recipeContent.notes,(function(t,a){return r("GridLayout",{key:a,attrs:{columns:"*,8,auto"}},[r("TextView",{attrs:{col:"0",hint:"Text or URL"},on:{loaded:function(t){return e.focusField(t,"multiLine")}},model:{value:e.recipeContent.notes[a],callback:function(t){e.$set(e.recipeContent.notes,a,t.object.text)},expression:"recipeContent.notes[index]"}}),r("MDButton",{staticClass:"bx closeBtn",attrs:{variant:"text",col:"2",text:e.icon.close},on:{tap:function(t){return e.removeNote(a)}}})],1)})),r("MDButton",{staticClass:"text-btn orkm",attrs:{variant:"text",text:"+ ADD NOTE"},on:{tap:e.addNote}})],2)],1)],1)],1)};EditRecipevue_type_template_id_2dd987d3_render._withStripped=!0;var s=r(18),p=r(17),c=r(29),d=r(103),u=r(124),y=r(183),ViewRecipevue_type_template_id_760a8eae_render=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("Page",{on:{loaded:e.onPageLoad,unloaded:e.onPageUnload}},[r("ActionBar",{attrs:{flat:"true"}},[r("GridLayout",{attrs:{rows:"48",columns:"auto, *, auto"}},[r("MDButton",{staticClass:"bx",attrs:{variant:"text",row:"0",col:"0",text:e.icon.back,automationText:"Back"},on:{tap:function(t){return e.$navigateBack()}}}),r("FlexboxLayout",{attrs:{row:"0",col:"2",alignItems:"center"}},[e.filterTrylater?r("MDButton",{staticClass:"bx",attrs:{variant:"text",text:e.icon.check},on:{tap:e.recipeTried}}):r("MDButton",{staticClass:"bx",attrs:{variant:"text",text:e.recipe.tried?e.icon.trylaterOutline:e.icon.trylater},on:{tap:e.toggleTrylater}}),r("MDButton",{staticClass:"bx",attrs:{variant:"text",text:e.recipe.isFavorite?e.icon.heart:e.icon.heartOutline},on:{tap:e.toggleFavorite}}),e.busy?r("MDActivityIndicator",{attrs:{busy:e.busy}}):r("MDButton",{staticClass:"bx",attrs:{variant:"text",text:e.icon.edit},on:{tap:e.editRecipe}})],1)],1)],1),r("AbsoluteLayout",[r("Tabs",{staticClass:"viewRecipe",attrs:{width:"100%",height:"100%",selectedIndex:e.selectedTabIndex},on:{selectedIndexChange:e.selectedIndexChange}},[r("TabStrip",{attrs:{androidElevation:e.viewIsScrolled?4:0}},[r("TabStripItem",[r("Label",{attrs:{text:"Overview"}})],1),r("TabStripItem",[r("Label",{attrs:{text:"Ingredients"}})],1),r("TabStripItem",[r("Label",{attrs:{text:"Instructions"}})],1),r("TabStripItem",[r("Label",{attrs:{text:"Combinations"}})],1),r("TabStripItem",[r("Label",{attrs:{text:"Notes"}})],1)],1),r("TabContentItem",[r("ScrollView",{on:{scroll:e.onScroll}},[r("StackLayout",[r("StackLayout",{staticClass:"imageHolder",attrs:{width:"100%",height:e.screenWidth,verticalAlignment:"center"}},[e.recipe.imageSrc?r("Image",{attrs:{src:e.recipe.imageSrc,stretch:"aspectFill",width:"100%",height:e.screenWidth}}):r("Label",{staticClass:"bx",attrs:{horizontalAlignment:"center",fontSize:"160",text:e.icon.image}})],1),r("StackLayout",{attrs:{margin:"16 8 80"}},[r("Label",{staticClass:"category orkm",attrs:{text:e.recipe.category}}),r("Label",{staticClass:"title orkm",attrs:{margin:"0 8",text:e.recipe.title,textWrap:"true"}}),r("StackLayout",{staticClass:"time",attrs:{orientation:"horizontal"}},[r("Label",{attrs:{text:"Preparation time:"}}),r("Label",{attrs:{text:" "+e.formattedTime(e.recipe.prepTime)}})],1),r("StackLayout",{staticClass:"time",attrs:{orientation:"horizontal"}},[r("Label",{attrs:{text:"Cooking time:"}}),r("Label",{attrs:{text:" "+e.formattedTime(e.recipe.cookTime)}})],1),r("GridLayout",{staticClass:"overviewContainer",attrs:{rows:"auto, auto",columns:"*, *"}},[r("GridLayout",{staticClass:"overviewItem",attrs:{row:"0",col:"0",rows:"auto, auto",columns:"*"}},[r("MDRipple",{attrs:{rowSpan:"2"},on:{tap:function(t){e.selectedTabIndex=1}}}),r("Label",{staticClass:"bx",attrs:{row:"0",text:e.icon.item}}),r("Label",{staticClass:"itemCount",attrs:{row:"1",text:e.recipe.ingredients.length+" "+(1==e.recipe.ingredients.length?"Ingredient":"Ingredients"),textWrap:"true"}})],1),r("GridLayout",{staticClass:"overviewItem",attrs:{row:"0",col:"1",rows:"auto, auto",columns:"*"}},[r("MDRipple",{attrs:{rowSpan:"2"},on:{tap:function(t){e.selectedTabIndex=2}}}),r("Label",{staticClass:"bx",attrs:{row:"0",text:e.icon.step}}),r("Label",{staticClass:"itemCount",attrs:{row:"1",text:e.recipe.instructions.length+" "+(1==e.recipe.instructions.length?"Instruction":"Instructions"),textWrap:"true"}})],1),r("GridLayout",{staticClass:"overviewItem",attrs:{row:"1",col:"0",rows:"auto, auto",columns:"*"}},[r("MDRipple",{attrs:{rowSpan:"2"},on:{tap:function(t){e.selectedTabIndex=3}}}),r("Label",{staticClass:"bx",attrs:{row:"0",text:e.icon.outline}}),r("Label",{staticClass:"itemCount",attrs:{row:"1",text:e.recipe.combinations.length+" "+(1==e.recipe.combinations.length?"Combination":"Combinations"),textWrap:"true"}})],1),r("GridLayout",{staticClass:"overviewItem",attrs:{row:"1",col:"1",rows:"auto, auto",columns:"*"}},[r("MDRipple",{attrs:{rowSpan:"2"},on:{tap:function(t){e.selectedTabIndex=4}}}),r("Label",{staticClass:"bx",attrs:{row:"0",text:e.icon.note}}),r("Label",{staticClass:"itemCount",attrs:{row:"1",text:e.recipe.notes.length+" "+(1==e.recipe.notes.length?"Note":"Notes"),textWrap:"true"}})],1)],1)],1)],1)],1)],1),r("TabContentItem",[r("ScrollView",{on:{scroll:e.onScroll}},[e.recipe.ingredients.length?r("StackLayout",{attrs:{padding:"24 16 72"}},[r("AbsoluteLayout",{staticClass:"inputField"},[r("TextField",{attrs:{width:"50%",keyboardType:"number"},model:{value:e.yieldMultiplier,callback:function(t){e.yieldMultiplier=t.object.text},expression:"yieldMultiplier"}}),r("Label",{staticClass:"fieldLabel",attrs:{top:"0",text:"Required "+e.recipe.yield.unit.toLowerCase()}})],1),r("StackLayout",{attrs:{margin:"16 0"}},[r("Label",{staticClass:"title orkm",attrs:{text:"Ingredients for "+e.positiveYieldMultiplier+" "+e.recipe.yield.unit.toLowerCase(),textWrap:"true"}})],1),e._l(e.recipe.ingredients,(function(t,a){return r("StackLayout",{key:a},[r("check-box",{staticClass:"ingredient",attrs:{checkPadding:"16",fillColor:"#ff5200",text:(e.roundedQuantity(t.quantity)?e.roundedQuantity(t.quantity)+" ":"")+(e.roundedQuantity(t.quantity)?t.unit+" ":"")+t.item}})],1)}))],2):r("GridLayout",{staticClass:"emptyStateContainer",attrs:{rows:"*, auto, *, 88",columns:"*"}},[r("StackLayout",{staticClass:"emptyState",attrs:{col:"0",row:"1"}},[r("Label",{staticClass:"bx icon",attrs:{text:e.icon.item,textWrap:"true"}}),r("StackLayout",{staticClass:"title orkm",attrs:{orientation:"horizontal"}},[r("Label",{attrs:{text:"Use the "}}),r("Label",{staticClass:"bx",attrs:{text:e.icon.edit}}),r("Label",{attrs:{text:" button"}})],1),r("Label",{attrs:{text:"to add some ingredients",textWrap:"true"}})],1)],1)],1)],1),r("TabContentItem",[r("ScrollView",{on:{scroll:e.onScroll}},[e.recipe.instructions.length?r("StackLayout",{attrs:{padding:"28 16 62"}},e._l(e.recipe.instructions,(function(t,a){return r("GridLayout",{key:a,attrs:{columns:"auto ,*"}},[r("Label",{staticClass:"instruction",class:{noBorder:a===e.recipe.instructions.length-1},attrs:{col:"0",colSpan:"2",text:t,textWrap:"true"}}),r("Label",{staticClass:"count orkm",attrs:{verticalAlignment:"top",horizontalAlignment:"center",col:"0",text:a+1}})],1)})),1):r("GridLayout",{staticClass:"emptyStateContainer",attrs:{rows:"*, auto, *, 88",columns:"*"}},[r("StackLayout",{staticClass:"emptyState",attrs:{col:"0",row:"1"}},[r("Label",{staticClass:"bx icon",attrs:{text:e.icon.step,textWrap:"true"}}),r("StackLayout",{staticClass:"title orkm",attrs:{orientation:"horizontal"}},[r("Label",{attrs:{text:"Use the "}}),r("Label",{staticClass:"bx",attrs:{text:e.icon.edit}}),r("Label",{attrs:{text:" button"}})],1),r("Label",{attrs:{text:"to add some instructions",textWrap:"true"}})],1)],1)],1)],1),r("TabContentItem",[r("ScrollView",{on:{scroll:e.onScroll}},[e.recipe.combinations.length?r("StackLayout",{attrs:{padding:"8 0 80"}},e._l(e.recipe.combinations,(function(t,a){return r("GridLayout",{key:a,staticClass:"urlCard",attrs:{columns:"auto, *",androidElevation:"1"}},[r("MDRipple",{attrs:{colSpan:"2"},on:{tap:function(r){return e.viewCombination(t)}}}),r("Label",{staticClass:"bx linkIcon",attrs:{col:"0",text:e.icon.food}}),r("Label",{staticClass:"link",attrs:{col:"1",verticalAlignment:"center",text:e.getCombinationTitle(t),textWrap:"true"}})],1)})),1):r("GridLayout",{staticClass:"emptyStateContainer",attrs:{rows:"*, auto, *, 88",columns:"*"}},[r("StackLayout",{staticClass:"emptyState",attrs:{col:"0",row:"1"}},[r("Label",{staticClass:"bx icon",attrs:{text:e.icon.outline,textWrap:"true"}}),r("StackLayout",{staticClass:"title orkm",attrs:{orientation:"horizontal"}},[r("Label",{attrs:{text:"Use the "}}),r("Label",{staticClass:"bx",attrs:{text:e.icon.edit}}),r("Label",{attrs:{text:" button"}})],1),r("Label",{attrs:{text:"to add some combinations",textWrap:"true"}})],1)],1)],1)],1),r("TabContentItem",[r("ScrollView",{on:{scroll:e.onScroll}},[e.recipe.notes.length?r("StackLayout",{attrs:{padding:"8 0 80"}},e._l(e.recipe.notes,(function(t,a){return r("StackLayout",{key:a},[e.isValidURL(t)?r("GridLayout",{staticClass:"urlCard",attrs:{columns:"auto, *",androidElevation:"1"}},[r("MDRipple",{attrs:{colSpan:"2"},on:{longPress:function(r){return e.copyURL(t)},tap:function(r){return e.openURL(t)}}}),r("Label",{staticClass:"bx linkIcon",attrs:{col:"0",text:e.icon.source}}),r("Label",{staticClass:"link",attrs:{col:"1",verticalAlignment:"center",text:t,textWrap:"false"}})],1):r("Label",{staticClass:"textCard",attrs:{text:t,textWrap:"true"}})],1)})),1):r("GridLayout",{staticClass:"emptyStateContainer",attrs:{rows:"*, auto, *, 88",columns:"*"}},[r("StackLayout",{staticClass:"emptyState",attrs:{col:"0",row:"1"}},[r("Label",{staticClass:"bx icon",attrs:{text:e.icon.note,textWrap:"true"}}),r("StackLayout",{staticClass:"title orkm",attrs:{orientation:"horizontal"}},[r("Label",{attrs:{text:"Use the "}}),r("Label",{staticClass:"bx",attrs:{text:e.icon.edit}}),r("Label",{attrs:{text:" button"}})],1),r("Label",{attrs:{text:"to add some notes",textWrap:"true"}})],1)],1)],1)],1)],1),r("GridLayout",{attrs:{id:"btnFabContainer",rows:"*, auto",columns:"*, auto"}},[r("transition",{attrs:{name:"dolly",appear:""}},[e.showFab?r("MDFloatingActionButton",{attrs:{row:"1",col:"1",src:"res://share"},on:{tap:e.shareHandler}}):e._e()],1)],1)],1)],1)};ViewRecipevue_type_template_id_760a8eae_render._withStripped=!0;var g=r(4),m=r(184),h=r(144),ShareChooservue_type_template_id_d11e43ce_render=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("Page",[r("StackLayout",{staticClass:"dialogContainer",class:e.appTheme},[r("Label",{staticClass:"dialogTitle orkm",attrs:{text:e.title}}),r("GridLayout",{staticClass:"actionsContainer",attrs:{rows:"auto, auto",columns:"*"}},[r("MDButton",{staticClass:"actionIcon",attrs:{rippleColor:e.rippleColor,backgroundColor:e.backgroundColor,row:"0",src:"res://photo",text:"Photo"},on:{tap:function(t){return e.$modal.close("photo")}}}),r("MDButton",{staticClass:"actionIcon",attrs:{rippleColor:e.rippleColor,backgroundColor:e.backgroundColor,row:"1",src:"res://detail",text:"Recipe"},on:{tap:function(t){return e.$modal.close("recipe")}}})],1)],1)],1)};ShareChooservue_type_template_id_d11e43ce_render._withStripped=!0;function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})));r.push.apply(r,a)}return r}function _objectSpread(e){for(var t=1;ta.Application.systemAppearance(),rippleColor(){return"light"==this.appTheme?"rgba(134,142,150,0.2)":"rgba(206,212,218,0.1)"},backgroundColor(){return"light"==this.appTheme?"#fff":"#343a40"}})},b=v,f=r(30),w=Object(f.a)(b,ShareChooservue_type_template_id_d11e43ce_render,[],!1,null,null,null);w.options.__file="components/modal/ShareChooser.vue";var C=w.exports;function ViewRecipevue_type_script_lang_js_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})));r.push.apply(r,a)}return r}function ViewRecipevue_type_script_lang_js_objectSpread(e){for(var t=1;ts.b.mainScreen.widthDIPs,positiveYieldMultiplier(){return Math.abs(this.yieldMultiplier)>0?Math.abs(parseFloat(this.yieldMultiplier)):1},isLightMode:()=>"light"===a.Application.systemAppearance()}),methods:ViewRecipevue_type_script_lang_js_objectSpread(ViewRecipevue_type_script_lang_js_objectSpread({},Object(n.b)(["toggleStateAction","setCurrentComponentAction","overwriteRecipeAction","setRecipeAsTriedAction"])),{},{onPageLoad(){this.busy=!1;setTimeout(e=>{this.setCurrentComponentAction("ViewRecipe")},500);this.showFab=!0;this.yieldMultiplier=this.recipe.yield.quantity;this.keepScreenOn(!0);this.syncCombinations()},onPageUnload(){A.hide();this.keepScreenOn(!1)},niceDates(e){var t=new Date(e).getTime(),r=(new Date).getTime(),a=(new Date).setHours(0,0,0,0),o=(r-t)/1e3,i=Math.ceil(o/86400);return isNaN(i)||i<0?"":(o<86400&&t>a?"today":1==i&&"yesterday")||i<7&&i+" days ago"||i<31&&Math.round(i/7)+" week(s) ago"||i<366&&Math.round(i/30)+" month(s) ago"||i>365&&"long time ago"},selectedIndexChange(e){this.selectedTabIndex=e.object.selectedIndex;this.viewIsScrolled=this.isScrolled[this.selectedTabIndex]},showLastTried(){A.show({title:"You tried this recipe ".concat(this.niceDates(this.recipe.lastTried),"!"),titleColor:new g.a("".concat(this.isLightMode?"#f1f3f5":"#212529")),backgroundColor:new g.a("#ff5200")})},roundedQuantity(e){return Math.abs(Math.round(e/this.recipe.yield.quantity*this.positiveYieldMultiplier*100)/100)},keepScreenOn(e){var t=a.Application.android.foregroundActivity||a.Application.android.startActivity,r=t.getWindow();e?r.addFlags(android.view.WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON):r.clearFlags(android.view.WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)},formattedTime(e){var t=e.split(":"),r=parseInt(t[0]),a=parseInt(t[1]);return r?a?"".concat(r," hr ").concat(a," min"):"".concat(r," hr"):"".concat(a," min")},isValidURL(e){var t=new RegExp("^https?|^www","ig");return t.test(e)},getCombinationTitle(e){return this.recipes.filter(t=>t.id===e)[0].title},syncCombinations(){var e=this.recipes.filter(e=>e.combinations.indexOf(this.currentRecipeID)>=0||this.recipe.combinations.includes(e.id)).map(e=>e.id);this.recipe.combinations=e;this.overwriteRecipeAction({id:this.currentRecipeID,recipe:this.recipe})},onScroll(e){this.viewIsScrolled=this.isScrolled[this.selectedTabIndex]=e.scrollY>8},editRecipe(){this.showFab=!1;this.busy=!0;this.$navigateTo(J,{props:{navigationFromView:!0,filterTrylater:this.filterTrylater,recipeID:this.currentRecipeID},backstackVisible:!1})},viewCombination(e){this.recipe=this.recipes.filter(t=>t.id===e)[0];this.currentRecipeID=e;this.syncCombinations();this.selectedTabIndex=0;setTimeout(e=>this.recipe.tried&&this.recipe.lastTried&&this.showLastTried(),500)},shareHandler(){this.recipe.imageSrc?this.$showModal(C,{props:{title:"Share"}}).then(e=>{switch(e){case"photo":c.ImageSource.fromFile(this.recipe.imageSrc).then(e=>{h.a(e,"Share recipe photo using")});break;case"recipe":this.shareRecipe()}}):this.shareRecipe()},shareRecipe(){var e="".concat(this.recipe.title,"\n\nPreparation time: ").concat(this.formattedTime(this.recipe.prepTime),"\nCooking time: ").concat(this.formattedTime(this.recipe.cookTime),"\n"),t=e;if(this.recipe.ingredients.length){var r="\n\nIngredients for ".concat(this.yieldMultiplier," ").concat(this.recipe.yield.unit.toLowerCase(),"\n\n");this.recipe.ingredients.forEach(e=>{r+="- ".concat(e.quantity?this.roundedQuantity(e.quantity)+" "+e.unit+" ":"").concat(e.item,"\n")});t+=r}if(this.recipe.instructions.length){var a="\n\nInstructions:\n\n";this.recipe.instructions.forEach((e,t)=>{a+="Step ".concat(t+1,": ").concat(e,"\n\n")});t+=a}if(this.recipe.combinations.length){var o="\nCombinations:\n\n";this.recipe.combinations.forEach((e,t)=>{o+="".concat(t+1,". ").concat(this.getCombinationTitle(e),"\n\n")});t+=o}if(this.recipe.notes.length){var i="\nNotes:\n\n";this.recipe.notes.forEach((e,t)=>{i+="".concat(t+1,". ").concat(e,"\n\n")});t+=i}t+="\nCreated and shared via EnRecipes. Get it on F-Droid.";h.b(t,"Share recipe using")},toggle(e,t){this.toggleStateAction({id:this.currentRecipeID,recipe:this.recipe,key:e,setDate:t})},toggleFavorite(){this.recipe.isFavorite?l.makeText("Removed from Favorites").show():l.makeText("Added to Favorites").show();this.toggle("isFavorite")},toggleTrylater(){this.recipe.tried?this.filterTrylater?l.makeText("Added back to Try Later").show():l.makeText("Added to Try Later").show():this.filterTrylater?l.makeText("You tried this recipe").show():l.makeText("Removed from Try Later").show();this.toggle("tried")},recipeTried(){this.setRecipeAsTriedAction({id:this.currentRecipeID,recipe:this.recipe});this.$navigateBack()},openURL(e){a.Utils.openUrl(e)},copyURL(e){var t=a.Utils.ad.getApplicationContext().getSystemService(android.content.Context.CLIPBOARD_SERVICE),r=android.content.ClipData.newPlainText("URl",e);t.setPrimaryClip(r);l.makeText("URL Copied").show()}}),created(){this.recipe=this.recipes.filter(e=>e.id===this.currentRecipeID)[0]},mounted(){this.showFab=!0;setTimeout(e=>this.recipe.tried&&this.recipe.lastTried&&this.showLastTried(),500)}},x=k,_=Object(f.a)(x,ViewRecipevue_type_template_id_760a8eae_render,[],!1,null,null,null);_.options.__file="components/ViewRecipe.vue";var L=_.exports,ActionDialogvue_type_template_id_73f3704a_render=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("Page",[r("StackLayout",{staticClass:"dialogContainer",class:e.appTheme},[r("Label",{staticClass:"dialogTitle orkm",attrs:{text:e.title}}),r("ScrollView",{attrs:{width:"100%",height:e.height?e.height:e.screenHeight-256}},[r("StackLayout",e._l(e.list,(function(t,a){return r("MDButton",{key:a,staticClass:"actionItem",attrs:{variant:"text",rippleColor:e.rippleColor,text:t},on:{loaded:e.onLabelLoaded,tap:function(r){return e.tapAction(t)}}})})),1)],1),r("GridLayout",{staticClass:"actionsContainer",attrs:{rows:"auto",columns:"auto, *, auto"}},[e.action?r("MDButton",{staticClass:"action orkm pull-left",attrs:{rippleColor:e.rippleColor,variant:"text",col:"0",text:e.action},on:{tap:function(t){return e.$modal.close(e.action)}}}):e._e(),r("MDButton",{staticClass:"action orkm pull-right",attrs:{rippleColor:e.rippleColor,variant:"text",col:"2",text:"CANCEL"},on:{tap:function(t){return e.$modal.close(!1)}}})],1)],1)],1)};ActionDialogvue_type_template_id_73f3704a_render._withStripped=!0;var T={props:["title","list","height","action"],computed:{appTheme:()=>a.Application.systemAppearance(),rippleColor(){return"light"==this.appTheme?"rgba(134,142,150,0.2)":"rgba(206,212,218,0.1)"},screenHeight:()=>Math.round(s.b.mainScreen.heightDIPs)},methods:{tapAction(e){this.$modal.close(e)},onLabelLoaded(e){e.object.android.setGravity(16)}}},S=T,D=Object(f.a)(S,ActionDialogvue_type_template_id_73f3704a_render,[],!1,null,null,null);D.options.__file="components/modal/ActionDialog.vue";var P=D.exports,ActionDialogWithSearchvue_type_template_id_5700bb49_render=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("Page",[r("StackLayout",{staticClass:"dialogContainer",class:e.appTheme},[r("Label",{staticClass:"dialogTitle orkm",attrs:{text:e.title}}),e.filteredRecipes.length||e.searchTerm?r("StackLayout",{attrs:{padding:"0 24 24"}},[r("TextField",{attrs:{hint:"Search"},model:{value:e.searchTerm,callback:function(t){e.searchTerm=t.object.text},expression:"searchTerm"}})],1):e._e(),r("ScrollView",{attrs:{width:"100%",height:e.height?e.height:e.screenHeight-320}},[r("StackLayout",[e._l(e.filteredRecipes,(function(t,a){return r("MDButton",{key:a,staticClass:"actionItem",attrs:{variant:"text",rippleColor:e.rippleColor,text:t.title},on:{loaded:e.onLabelLoaded,tap:function(r){return e.tapAction(t)}}})})),e.filteredRecipes.length?e._e():r("Label",{attrs:{padding:"24",lineHeight:"6",text:"Nothing here! Add some recipes and try again.",textAlignment:"center",textWrap:"true"}})],2)],1),r("GridLayout",{staticClass:"actionsContainer",attrs:{rows:"auto",columns:"auto, *, auto"}},[e.action?r("MDButton",{staticClass:"action orkm pull-left",attrs:{rippleColor:e.rippleColor,variant:"text",col:"0",text:e.action},on:{tap:function(t){return e.$modal.close(e.action)}}}):e._e(),r("MDButton",{staticClass:"action orkm pull-right",attrs:{rippleColor:e.rippleColor,variant:"text",col:"2",text:"CANCEL"},on:{tap:function(t){return e.$modal.close(!1)}}})],1)],1)],1)};ActionDialogWithSearchvue_type_template_id_5700bb49_render._withStripped=!0;var B={props:["title","recipes","height","action"],data:()=>({searchTerm:""}),computed:{appTheme:()=>a.Application.systemAppearance(),rippleColor(){return"light"==this.appTheme?"rgba(134,142,150,0.2)":"rgba(206,212,218,0.1)"},screenHeight:()=>Math.round(s.b.mainScreen.heightDIPs),filteredRecipes(){return this.recipes.map((e,t)=>({id:e.id,title:e.title})).filter(e=>e.title.includes(this.searchTerm))}},methods:{tapAction(e){this.$modal.close(e.id)},onLabelLoaded(e){e.object.android.setGravity(16)}}},R=B,E=Object(f.a)(R,ActionDialogWithSearchvue_type_template_id_5700bb49_render,[],!1,null,null,null);E.options.__file="components/modal/ActionDialogWithSearch.vue";var j=E.exports,ConfirmDialogvue_type_template_id_1d53d63b_render=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("Page",[r("StackLayout",{staticClass:"dialogContainer",class:e.appTheme},[r("Label",{staticClass:"dialogTitle orkm",attrs:{text:e.title,textWrap:"true"}}),e.description?r("Label",{staticClass:"dialogDescription",attrs:{text:e.description,textWrap:"true"}}):e._e(),r("GridLayout",{staticClass:"actionsContainer",attrs:{rows:"auto",columns:"*, auto, auto"}},[r("MDButton",{staticClass:"action orkm",attrs:{rippleColor:e.rippleColor,variant:"text",col:"1",text:e.cancelButtonText},on:{tap:function(t){return e.$modal.close(!1)}}}),r("MDButton",{staticClass:"action orkm",attrs:{rippleColor:e.rippleColor,variant:"text",col:"2",text:e.okButtonText},on:{tap:function(t){return e.$modal.close(!0)}}})],1)],1)],1)};ConfirmDialogvue_type_template_id_1d53d63b_render._withStripped=!0;var F={props:["title","description","cancelButtonText","okButtonText"],computed:{appTheme:()=>a.Application.systemAppearance(),rippleColor(){return"light"==this.appTheme?"rgba(134,142,150,0.2)":"rgba(206,212,218,0.1)"}}},O=F,I=Object(f.a)(O,ConfirmDialogvue_type_template_id_1d53d63b_render,[],!1,null,null,null);I.options.__file="components/modal/ConfirmDialog.vue";var M=I.exports,PromptDialogvue_type_template_id_17328189_render=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("Page",[r("StackLayout",{staticClass:"dialogContainer",class:e.appTheme},[r("Label",{staticClass:"dialogTitle orkm",attrs:{text:e.title}}),r("StackLayout",{staticClass:"dialogInput"},[r("TextField",{attrs:{hint:e.hint?e.hint:"",autocapitalizationType:"words"},on:{loaded:e.focusField},model:{value:e.category,callback:function(t){e.category=t.object.text},expression:"category"}})],1),r("GridLayout",{staticClass:"actionsContainer",attrs:{rows:"auto",columns:"*, auto, auto"}},[r("MDButton",{staticClass:"action orkm",attrs:{rippleColor:e.rippleColor,variant:"text",col:"1",text:"CANCEL"},on:{tap:function(t){return e.$modal.close(!1)}}}),r("MDButton",{staticClass:"action orkm",attrs:{rippleColor:e.rippleColor,variant:"text",col:"2",text:e.action},on:{tap:function(t){return e.$modal.close(e.category)}}})],1)],1)],1)};PromptDialogvue_type_template_id_17328189_render._withStripped=!0;var U={props:["title","hint","text","action"],data:()=>({category:null}),computed:{appTheme:()=>a.Application.systemAppearance(),rippleColor(){return"light"==this.appTheme?"rgba(134,142,150,0.2)":"rgba(206,212,218,0.1)"}},methods:{focusField(e){e.object.focus();setTimeout(t=>a.Utils.ad.showSoftInput(e.object.android),1)}},mounted(){this.text&&(this.category=this.text)}},V=U,z=Object(f.a)(V,PromptDialogvue_type_template_id_17328189_render,[],!1,null,null,null);z.options.__file="components/modal/PromptDialog.vue";var G=z.exports,ListPickervue_type_template_id_3632d46e_render=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("Page",[r("StackLayout",{staticClass:"dialogContainer",class:e.appTheme},[r("Label",{staticClass:"dialogTitle orkm",attrs:{text:e.title}}),r("StackLayout",{staticClass:"dialogListPicker",attrs:{orientation:"horizontal",horizontalAlignment:"center"}},[r("ListPicker",{ref:"hrPicker",attrs:{items:e.hrs,selectedIndex:e.hrIndex},on:{selectedIndexChange:e.setHrs}}),r("ListPicker",{ref:"minPicker",attrs:{items:e.mins,selectedIndex:e.minIndex},on:{selectedIndexChange:e.setMins}})],1),r("GridLayout",{staticClass:"actionsContainer",attrs:{rows:"auto",columns:"*, auto, auto"}},[r("MDButton",{staticClass:"action orkm",attrs:{rippleColor:e.rippleColor,variant:"text",col:"1",text:"CANCEL"},on:{tap:function(t){return e.$modal.close(!1)}}}),r("MDButton",{staticClass:"action orkm",attrs:{rippleColor:e.rippleColor,variant:"text",col:"2",text:e.action},on:{tap:function(t){return e.$modal.close(e.selectedTime)}}})],1)],1)],1)};ListPickervue_type_template_id_3632d46e_render._withStripped=!0;var N={props:["title","selectedHr","selectedMin","action"],data:()=>({hrs:["0 hr","1 hr","2 hr","3 hr","4 hr","5 hr","6 hr","7 hr","8 hr","9 hr","10 hr","11 hr","12 hr","13 hr","14 hr","15 hr","16 hr","17 hr","18 hr","19 hr","20 hr","21 hr","22 hr","23 hr"],mins:["0 min","1 min","2 min","3 min","4 min","5 min","6 min","7 min","8 min","9 min","10 min","15 min","20 min","25 min","30 min","35 min","40 min","45 min","50 min","55 min"],selectedHrs:"00",selectedMins:"00"}),computed:{hrIndex(){var e=this.selectedHr;"0"==e.charAt(0)?e=e.slice(-1)+" hr":e+=" hr";return this.hrs.indexOf(e)},minIndex(){var e=this.selectedMin;"0"==e.charAt(0)?e=e.slice(-1)+" min":e+=" min";return this.mins.indexOf(e)},appTheme:()=>a.Application.systemAppearance(),rippleColor(){return"light"==this.appTheme?"rgba(134,142,150,0.2)":"rgba(206,212,218,0.1)"},selectedTime(){return this.selectedHrs+":"+this.selectedMins}},methods:{setHrs(e){var t="0"+this.hrs[e.object.selectedIndex];this.selectedHrs=t.slice(-5).slice(0,-3)},setMins(e){var t="0"+this.mins[e.object.selectedIndex];this.selectedMins=t.slice(-6).slice(0,-4)}}},Y=N,Q=Object(f.a)(Y,ListPickervue_type_template_id_3632d46e_render,[],!1,null,null,null);Q.options.__file="components/modal/ListPicker.vue";var W=Q.exports,K=r(60);function EditRecipevue_type_script_lang_js_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})));r.push.apply(r,a)}return r}function EditRecipevue_type_script_lang_js_objectSpread(e){for(var t=1;t({title:"New recipe",viewIsScrolled:!1,recipeContent:{imageSrc:null,title:void 0,category:"Undefined",prepTime:"00:00",cookTime:"00:00",yield:{quantity:void 0,unit:"Servings"},ingredients:[],instructions:[],combinations:[],notes:[],isFavorite:!1,tried:!0,lastTried:null,lastModified:null},tempRecipeContent:{},blockModal:!1,modalOpen:!1,newRecipeID:null,showFab:!1,saving:!1,cacheImagePath:null,unSyncCombinations:[]}),computed:EditRecipevue_type_script_lang_js_objectSpread(EditRecipevue_type_script_lang_js_objectSpread({},Object(n.c)(["icon","units","yieldUnits","recipes","categories","currentComponent"])),{},{screenWidth:()=>s.b.mainScreen.widthDIPs,appTheme:()=>a.Application.systemAppearance(),hasChanges(){return JSON.stringify(this.recipeContent)!==JSON.stringify(this.tempRecipeContent)}}),methods:EditRecipevue_type_script_lang_js_objectSpread(EditRecipevue_type_script_lang_js_objectSpread({},Object(n.b)(["setCurrentComponentAction","addRecipeAction","overwriteRecipeAction","addCategoryAction","addYieldUnitAction","unSyncCombinationsAction"])),{},{onPageLoad(){this.showFab=!0},timeRequired(e){var t=this.recipeContent[e].split(":"),r=parseInt(t[0]),a=parseInt(t[1]);return r?a?"".concat(r," hr ").concat(a," min"):"".concat(r," hr"):"".concat(a," min")},focusField(e,t){t&&this.setInputTypeText(e,t);if(!e.object.text){e.object.focus();setTimeout(t=>a.Utils.ad.showSoftInput(e.object.android),10)}},setInputTypeText(e,t){var r=e.object;switch(t){case"words":r.android.setInputType(android.text.InputType.TYPE_CLASS_TEXT|android.text.InputType.TYPE_TEXT_FLAG_CAP_WORDS|android.text.InputType.TYPE_TEXT_FLAG_AUTO_CORRECT);break;case"sentence":r.android.setInputType(android.text.InputType.TYPE_CLASS_TEXT|android.text.InputType.TYPE_TEXT_FLAG_CAP_SENTENCES|android.text.InputType.TYPE_TEXT_FLAG_AUTO_CORRECT);break;case"multiLine":r.android.setInputType(android.text.InputType.TYPE_CLASS_TEXT|android.text.InputType.TYPE_TEXT_FLAG_MULTI_LINE|android.text.InputType.TYPE_TEXT_FLAG_CAP_SENTENCES|android.text.InputType.TYPE_TEXT_FLAG_AUTO_CORRECT)}},getRandomID(){for(var e="",t="abcdefghijklmnopqrstuvwxyz0123456789",r=0;r<10;r++)e+=t.charAt(Math.floor(Math.random()*t.length));return e},setTimeRequired(e,t){this.modalOpen=!0;var r=this.recipeContent[t].split(":"),a=r[0],o=r[1];this.$showModal(W,{props:{title:"".concat("prepTime"==t?"Preparation":"Cooking"," time"),action:"SET",selectedHr:a,selectedMin:o}}).then(r=>{if(r){this.recipeContent[t]=r;this.modalOpen=!1;if(e)switch(t){case"prepTime":this.autoFocusField("cookTime",!1);break;case"cookTime":this.autoFocusField("yieldQuantity",!0)}}})},onScroll(e){this.viewIsScrolled=!!e.scrollY},showCategories(e){this.modalOpen=!0;this.releaseBackEvent();this.$showModal(P,{props:{title:"Category",list:[...this.categories],action:"ADD NEW"}}).then(t=>{if("ADD NEW"==t)this.$showModal(G,{props:{title:"New category",action:"ADD"}}).then(t=>{this.hijackBackEvent();if(t.length){this.recipeContent.category=t;this.addCategoryAction(t);this.modalOpen=!1;e&&this.autoFocusField("prepTime",!1)}});else if(t){this.recipeContent.category=t;this.hijackBackEvent();this.modalOpen=!1;e&&this.autoFocusField("prepTime",!1)}else this.hijackBackEvent()})},autoFocusField(e,t){this.$refs[e].nativeView.focus();t&&setTimeout(()=>{a.Utils.ad.showSoftInput(this.$refs[e].nativeView.android)},1)},showYieldUnits(e){this.modalOpen=!0;this.releaseBackEvent();this.$showModal(P,{props:{title:"Yield measured in",list:[...this.yieldUnits],action:"ADD NEW"}}).then(t=>{if("ADD NEW"==t)this.$showModal(G,{props:{title:"New yield unit",action:"ADD"}}).then(t=>{this.hijackBackEvent();if(t.length){this.recipeContent.yield.unit=t;this.addYieldUnitAction(t);this.modalOpen=!1;e&&this.addIngredient()}});else if(t){this.recipeContent.yield.unit=t;this.hijackBackEvent();this.modalOpen=!1;e&&this.addIngredient()}else this.hijackBackEvent()})},showUnits(e,t,r){this.modalOpen=!0;this.releaseBackEvent();this.$showModal(P,{props:{title:"Unit",list:[...this.units]}}).then(o=>{this.hijackBackEvent();if(o){e.object.text=o;this.modalOpen=!1;if(t)if(this.recipeContent.ingredients.length-1===r)this.addIngredient();else{this.$refs.ingredient[r+1].nativeView.focus();setTimeout(e=>a.Utils.ad.showSoftInput(this.$refs.ingredient[r+1].nativeView.android),10)}}})},navigateBackController(){this.navigationFromView?this.$navigateTo(L,{props:{filterTrylater:this.filterTrylater,recipeID:this.recipeID},backstackVisible:!1}):this.$navigateBack()},navigateBack(){if(this.hasChanges){this.blockModal=!0;this.$showModal(M,{props:{title:"Unsaved changes",description:"Are you sure you want to discard unsaved changes to this recipe?",cancelButtonText:"DISCARD",okButtonText:"KEEP EDITING"}}).then(e=>{this.blockModal=!1;if(null!=e&&!e){this.navigateBackController();this.releaseBackEvent()}})}else{this.navigateBackController();this.releaseBackEvent()}},hijackBackEvent(){o.AndroidApplication.on(o.AndroidApplication.activityBackPressedEvent,this.backEvent)},releaseBackEvent(){o.AndroidApplication.off(o.AndroidApplication.activityBackPressedEvent,this.backEvent)},backEvent(e){if(this.hasChanges&&!this.blockModal){e.cancel=!0;this.navigateBack()}},imageHandler(){if(this.recipeContent.imageSrc){this.blockModal=!0;this.$showModal(M,{props:{title:"Recipe photo",cancelButtonText:"REMOVE",okButtonText:"REPLACE PHOTO"}}).then(e=>{this.blockModal=!1;if(e)this.permissionCheck(this.permissionConfirmation,this.imagePicker);else if(null!=e){this.recipeContent.imageSrc=null;this.releaseBackEvent()}})}else this.permissionCheck(this.permissionConfirmation,this.imagePicker)},permissionConfirmation(){return this.$showModal(M,{props:{title:"Grant permission",description:"EnRecipes requires storage permission in order to set recipe photo.",cancelButtonText:"NOT NOW",okButtonText:"CONTINUE"}})},permissionCheck(e,t){a.ApplicationSettings.getBoolean("storagePermissionAsked",!1)?d.a("photo").then(r=>{"authorized"!==r[0]?e().then(e=>e&&K.openAppSettingsPage()):t()}):e().then(e=>{e&&d.b("photo").then(e=>{switch(e[0]){case"authorized":t();break;case"never_ask_again":a.ApplicationSettings.setBoolean("storagePermissionAsked",!0);break;case"denied":l.makeText("Permission denied").show()}})})},imagePicker(){a.ApplicationSettings.setBoolean("storagePermissionAsked",!0);this.cacheImagePath=p.path.join(p.knownFolders.temp().path,"".concat(this.getRandomID(),".jpg"));u.create({mode:"single",extensions:["png","jpeg","jpg"]}).present().then(e=>{var t=e[0];c.ImageSource.fromFile(t).then(e=>{y.a.prototype.show(e,{width:1080,height:1080},{hideBottomControls:!0,toolbarTitle:"Crop photo",statusBarColor:"#ff5200",toolbarTextColor:"light"==this.appTheme?"#212529":"#f1f3f5",toolbarColor:"light"==this.appTheme?"#f1f3f5":"#212529",cropFrameColor:"#ff5200"}).then(e=>{e.image.saveToFile(this.cacheImagePath,"jpg",75);this.recipeContent.imageSrc=this.cacheImagePath})})})},fieldDeletionConfirm(e){return this.$showModal(M,{props:{title:e,cancelButtonText:"CANCEL",okButtonText:"REMOVE"}})},addIngredient(){this.recipeContent.ingredients.push({item:"",quantity:null,unit:"unit"})},removeIngredient(e){this.recipeContent.ingredients[e].item.length?this.fieldDeletionConfirm("Remove ingredient").then(t=>{t&&this.recipeContent.ingredients.splice(e,1)}):this.recipeContent.ingredients.splice(e,1)},addInstruction(){this.recipeContent.instructions.push("")},removeInstruction(e){this.recipeContent.instructions[e].length?this.fieldDeletionConfirm("Remove instruction").then(t=>{t&&this.recipeContent.instructions.splice(e,1)}):this.recipeContent.instructions.splice(e,1)},getCombinationTitle(e){return this.recipes.filter(t=>t.id===e)[0].title},showCombinations(){var e=[...this.recipeContent.combinations,this.recipeContent.id],t=this.recipes.filter(t=>!e.includes(t.id));this.$showModal(j,{props:{title:"Select a recipe",recipes:t}}).then(e=>{e&&this.recipeContent.combinations.push(e)})},removeCombination(e){var t=this.recipeContent.combinations.indexOf(e);this.fieldDeletionConfirm("Remove combination").then(r=>{if(r){this.recipeContent.combinations.splice(t,1);this.unSyncCombinations.push(e)}})},addNote(){this.recipeContent.notes.push("")},removeNote(e){this.recipeContent.notes[e].length?this.fieldDeletionConfirm("Remove note").then(t=>{t&&this.recipeContent.notes.splice(e,1)}):this.recipeContent.notes.splice(e,1)},clearEmptyFields(){this.recipeContent.title||(this.recipeContent.title="Untitled Recipe");this.recipeContent.yield.quantity||(this.recipeContent.yield.quantity=1);this.recipeContent.ingredients=this.recipeContent.ingredients.filter(e=>e.item);var e=this;function clearEmpty(t){e.recipeContent[t]=e.recipeContent[t].filter(e=>e)}clearEmpty("instructions");clearEmpty("notes")},saveOperation(){this.saving=this.modalOpen=!0;this.clearEmptyFields();this.recipeContent.lastModified=new Date;if(this.cacheImagePath){var e=p.path.join(p.knownFolders.documents().getFolder("EnRecipes").getFolder("Images").path,"".concat(this.getRandomID(),".jpg")),t=p.File.fromPath(this.cacheImagePath).readSync();p.File.fromPath(e).writeSync(t);this.recipeContent.imageSrc=e;p.knownFolders.temp().clear()}this.recipeContent.imageSrc?this.tempRecipeContent.imageSrc&&this.tempRecipeContent.imageSrc!==this.recipeContent.imageSrc&&Object(p.getFileAccess)().deleteFile(this.tempRecipeContent.imageSrc):this.tempRecipeContent.imageSrc&&Object(p.getFileAccess)().deleteFile(this.tempRecipeContent.imageSrc);this.unSyncCombinationsAction({id:this.recipeID,combinations:this.unSyncCombinations});this.saveRecipe()},saveRecipe(){if(this.recipeID)this.overwriteRecipeAction({id:this.recipeID,recipe:this.recipeContent});else{this.recipeContent.id=this.newRecipeID;this.addRecipeAction({id:this.newRecipeID,recipe:this.recipeContent})}setTimeout(()=>{this.saving=!1},100);this.navigateBackController()}}),created(){setTimeout(e=>{this.setCurrentComponentAction("EditRecipe")},500);this.title=this.recipeID?"Edit recipe":"New recipe";if(this.recipeID){var e=this.recipes.filter(e=>e.id===this.recipeID)[0];Object.assign(this.recipeContent,JSON.parse(JSON.stringify(e)));Object.assign(this.tempRecipeContent,JSON.parse(JSON.stringify(this.recipeContent)))}else{this.selectedCategory&&(this.recipeContent.category=this.selectedCategory);this.filterFavorites&&(this.recipeContent.isFavorite=!0);Object.assign(this.tempRecipeContent,JSON.parse(JSON.stringify(this.recipeContent)));this.newRecipeID=this.getRandomID()}this.hijackBackEvent()}},H=$,q=Object(f.a)(H,EditRecipevue_type_template_id_2dd987d3_render,[],!1,null,null,null);q.options.__file="components/EditRecipe.vue";var J=q.exports;function EnRecipesvue_type_script_lang_js_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})));r.push.apply(r,a)}return r}function EnRecipesvue_type_script_lang_js_objectSpread(e){for(var t=1;t({searchQuery:"",viewIsScrolled:!1,showSearch:!1,rightAction:!1,sortType:"Natural order",deletionDialogActive:!1,showFAB:!1}),computed:EnRecipesvue_type_script_lang_js_objectSpread(EnRecipesvue_type_script_lang_js_objectSpread({},Object(n.c)(["icon","recipes","currentComponent"])),{},{filteredRecipes(){return this.filterFavorites?this.recipes.filter(e=>e.isFavorite&&e.title.toLowerCase().includes(this.searchQuery)):this.filterTrylater?this.recipes.filter(e=>!e.tried&&e.title.toLowerCase().includes(this.searchQuery)):this.selectedCategory?this.recipes.filter(e=>e.category===this.selectedCategory&&e.title.toLowerCase().includes(this.searchQuery)):this.recipes.filter(e=>e.title.toLowerCase().includes(this.searchQuery))},noResultFor(){return this.selectedCategory?" in this category":this.filterFavorites?" in your favorites":this.filterTrylater?" in your try later list":""}}),methods:EnRecipesvue_type_script_lang_js_objectSpread(EnRecipesvue_type_script_lang_js_objectSpread({},Object(n.b)(["setCurrentComponentAction","deleteRecipeAction"])),{},{onPageLoad(){this.filterFavorites?this.setComponent("Favorites"):this.filterTrylater?this.setComponent("Try Later"):this.selectedCategory?this.setComponent(this.selectedCategory):this.setComponent("EnRecipes");this.showFAB=!0},showDrawer(){K.showDrawer()},openSearch(){this.showSearch=!0;this.showFAB=!1;this.hijackLocalBackEvent()},closeSearch(){this.searchQuery&&this.updateFilter();this.searchQuery="";a.Utils.ad.dismissSoftInput();this.showSearch=!1;this.showFAB=!0;this.releaseLocalBackEvent()},setComponent(e){this.setCurrentComponentAction(e);this.hijackGlobalBackEvent()},clearSearch(){""!==this.searchQuery&&this.updateFilter()},formattedTotalTime(e,t){var r=e.split(":"),a=t.split(":"),o=parseInt(r[0])+parseInt(a[0]),i=parseInt(r[1])+parseInt(a[1]);return{time:o?i?"".concat(o," hr ").concat(i," min"):"".concat(o," hr"):"".concat(i," min"),duration:"".concat(o).concat(i)}},onScroll(e){this.viewIsScrolled=!!e.scrollOffset},hijackLocalBackEvent(){this.releaseGlobalBackEvent();o.AndroidApplication.on(o.AndroidApplication.activityBackPressedEvent,this.searchBackEvent)},releaseLocalBackEvent(){o.AndroidApplication.off(o.AndroidApplication.activityBackPressedEvent,this.searchBackEvent);this.hijackGlobalBackEvent()},searchBackEvent(e){e.cancel=!0;this.closeDrawer();this.closeSearch()},addRecipe(){this.showFAB=!1;this.releaseGlobalBackEvent();this.$navigateTo(J,{props:{selectedCategory:this.selectedCategory,filterFavorites:this.filterFavorites}})},viewRecipe(e){this.showFAB=!1;this.$navigateTo(L,{props:{filterTrylater:this.filterTrylater,recipeID:e},backstackVisible:!1})},sortDialog(){this.releaseGlobalBackEvent();this.$showModal(P,{props:{title:"Sort by",list:["Natural order","Title","Duration","Last modified"],height:"192"}}).then(e=>{if(e&&"Cancel"!==e&&this.sortType!==e){this.sortType=e;this.updateSort()}this.hijackGlobalBackEvent()})},updateSort(){var e=this.$refs.listView.nativeView;e.sortingFunction=void 0;e.sortingFunction=this.sortFunction},sortFunction(e,t){var r=e.title.toLowerCase().localeCompare(t.title.toLowerCase(),"en",{ignorePunctuation:!0}),a=this.formattedTotalTime(e.prepTime,e.cookTime).duration,o=this.formattedTotalTime(t.prepTime,t.cookTime).duration,i=new Date(e.lastModified),l=new Date(t.lastModified);switch(this.sortType){case"Title":return r>0?-1:r<0?1:0;case"Duration":return a>o?-1:al?1:0;default:return 0}},updateFilter(){var e=this.$refs.listView.nativeView;setTimeout(t=>{e.filteringFunction=void 0;e.filteringFunction=this.filterFunction},1)},filterFunction(e){return this.filterFavorites?!!e.isFavorite&&e.title.toLowerCase().includes(this.searchQuery):this.filterTrylater?!e.tried&&e.title.toLowerCase().includes(this.searchQuery):this.selectedCategory?e.category===this.selectedCategory&&e.title.toLowerCase().includes(this.searchQuery):e.title.toLowerCase().includes(this.searchQuery)},onSwiping(e){var{data:t,object:r}=e,a=t.swipeLimits,o=r,i=o.getViewById("delete-action");a.right=i.getMeasuredWidth()-12;a.threshold=a.right-6;if(t.x<-a.threshold){this.rightAction=!0;o.notifySwipeToExecuteFinished()}},onSwipeEnded(e){var{index:t}=e,r=this.recipes[t].id;this.rightAction&&!this.deletionDialogActive&&this.deleteRecipe(t,r);this.rightAction=!1},deleteRecipe(e,t){this.deletionDialogActive=!0;this.$showModal(M,{props:{title:"Delete recipe",description:'Are you sure you want to delete the recipe "'.concat(this.recipes[e].title,'"?'),cancelButtonText:"CANCEL",okButtonText:"DELETE"}}).then(r=>{r&&this.deleteRecipeAction({index:e,id:t});this.deletionDialogActive=!1})}}),mounted(){this.showFAB=!0}},X=Z,ee=Object(f.a)(X,EnRecipesvue_type_template_id_5150c21e_render,[],!1,null,null,null);ee.options.__file="components/EnRecipes.vue";var te=ee.exports,MealPlannervue_type_template_id_ed5c11f8_render=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("Page",{on:{loaded:e.onPageLoad}},[r("ActionBar",{attrs:{flat:"true"}},[r("GridLayout",{attrs:{rows:"*",columns:"auto, *, auto"}},[r("MDButton",{staticClass:"bx left",attrs:{variant:"text",text:e.icon.menu,automationText:"Back",col:"0"},on:{tap:e.showDrawer}}),r("Label",{staticClass:"title orkm",attrs:{text:"Meal Planner",col:"1"}}),r("MDButton",{staticClass:"bx left",attrs:{variant:"text",text:e.icon.today,automationText:"today",col:"2"},on:{tap:e.goToToday}})],1)],1),r("GridLayout",{attrs:{rows:"280, *"}},[r("RadCalendar",{ref:"calendar",staticClass:"orkm",attrs:{androidElevation:e.viewIsScrolled?4:0,row:"0",locale:"en-US",viewMode:e.viewMode,transitionMode:e.transitionMode,selectionMode:e.selectionMode,eventsViewMode:e.eventsViewMode,eventSource:e.getMealPlans},on:{loaded:e.onCalendarLoad,dateSelected:e.onDateSelected}}),r("ScrollView",{attrs:{row:"1",width:"100%",height:"100%"},on:{scroll:e.onScroll}},[r("StackLayout",{staticClass:"dayPlan"},e._l(e.mealTimes,(function(t,a){return r("StackLayout",{key:"mealType"+a,staticClass:"plansContainer",class:t},[r("GridLayout",{staticClass:"header",attrs:{columns:"*, auto"}},[r("Label",{staticClass:"periodLabel orkm",attrs:{col:"0",text:t}}),r("MDButton",{staticClass:"bx addMeal",attrs:{col:"1",variant:"text",text:e.icon.plus},on:{tap:function(r){return e.addRecipe(t)}}})],1),e._l(e.getRecipes[t],(function(a,o){return r("GridLayout",{key:t+o,staticClass:"recipes",attrs:{columns:"*, auto"}},[r("MDRipple",{on:{tap:function(t){return e.viewRecipe(a)}}}),r("Label",{staticClass:"recipeTitle",attrs:{verticalAlignment:"center",col:"0",text:e.getRecipeTitle(a),textWrap:"true"}}),r("MDButton",{staticClass:"bx closeBtn",attrs:{variant:"text",col:"1",text:e.icon.close},on:{tap:function(r){return e.removeRecipe(t,a)}}})],1)}))],2)})),1)],1)],1)],1)};MealPlannervue_type_template_id_ed5c11f8_render._withStripped=!0;var re=r(38);function MealPlannervue_type_script_lang_js_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})));r.push.apply(r,a)}return r}function MealPlannervue_type_script_lang_js_objectSpread(e){for(var t=1;t({viewIsScrolled:!1,appTheme:"Light",mealTimes:["breakfast","lunch","dinner","snacks"],eventList:[],selectedDayMealPlans:[],viewMode:re.h.Month,transitionMode:re.g.Slide,selectionMode:re.f.Single,eventsViewMode:re.c.None,color:{white:new g.a("#ffffff"),gray1:new g.a("#f1f3f5"),gray2:new g.a("#e9ecef"),gray3:new g.a("#dee2e6"),gray4:new g.a("#ced4da"),gray5:new g.a("#adb5bd"),gray6:new g.a("#868e96"),gray7:new g.a("#495057"),gray8:new g.a("#343a40"),gray9:new g.a("#212529"),black:new g.a("#111111"),orange:new g.a("#ff5200"),breakfast:"#ffb180",lunch:"#ceff80",dinner:"#80ceff",snacks:"#b180ff"},appFontRegular:"Orkney-Regular",appFontMedium:"Orkney-Medium",selectedDate:null}),computed:MealPlannervue_type_script_lang_js_objectSpread(MealPlannervue_type_script_lang_js_objectSpread({},Object(n.c)(["icon","recipes","mealPlans"])),{},{isLightMode(){return"Light"===this.appTheme},monthViewStyle(){var e=new re.e;e.backgroundColor=this.isLightMode?this.color.gray1:this.color.gray9;e.showTitle=!0;e.showWeekNumbers=!1;e.showDayNames=!0;var t=new re.j;t.cellBackgroundColor=this.isLightMode?this.color.gray2:this.color.black;t.cellBorderWidth=1;t.cellBorderColor=this.isLightMode?this.color.gray2:this.color.black;t.cellTextSize=16;t.cellTextColor=this.isLightMode?this.color.gray9:this.color.gray1;t.cellTextFontName=this.appFontMedium;e.titleCellStyle=t;var r=new re.i;r.cellBackgroundColor=this.isLightMode?this.color.gray2:this.color.black;r.cellTextColor=this.isLightMode?this.color.gray9:this.color.gray1;r.cellBorderWidth=1;r.cellBorderColor=this.isLightMode?this.color.gray2:this.color.black;r.cellTextSize=10;r.cellAlignment=re.a.Center;r.cellTextFontName=this.appFontMedium;e.dayNameCellStyle=r;var a=new re.j;a.showEventsText=!1;a.eventTextColor=this.color.orange;a.eventFontName=this.appFontRegular;a.eventFontStyle=re.d.Bold;a.eventTextSize=8;a.cellTextSize=16;a.cellTextColor=this.isLightMode?this.color.gray9:this.color.gray1;a.cellAlignment=re.a.Bottom;a.cellBackgroundColor=this.isLightMode?this.color.gray1:this.color.gray9;a.cellTextFontName=this.appFontRegular;a.cellBorderWidth=1;a.cellBorderColor=this.isLightMode?this.color.gray2:this.color.black;e.dayCellStyle=a;var o=new re.j;o.cellBackgroundColor=this.isLightMode?this.color.gray1:this.color.gray9;o.cellTextColor=this.color.orange;o.cellBorderWidth=1;o.cellTextFontName=this.appFontMedium;o.cellTextFontStyle=re.d.Bold;o.cellTextSize=16;o.cellAlignment=re.a.Bottom;o.cellBorderColor=this.isLightMode?this.color.gray2:this.color.black;e.todayCellStyle=o;var i=new re.j;i.eventTextSize=1;i.cellAlignment=re.a.Bottom;i.cellBackgroundColor=this.isLightMode?this.color.white:this.color.gray8;i.cellBorderWidth=1;i.cellBorderColor=this.color.orange;i.cellTextColor=this.isLightMode?this.color.gray9:this.color.gray1;i.cellTextFontName=this.appFontMedium;i.cellTextFontStyle=re.d.Bold;i.cellTextSize=16;e.selectedDayCellStyle=i;return e},getRecipes(){return this.selectedDayMealPlans.length?this.selectedDayMealPlans.reduce((e,t)=>{switch(t.startDate.getHours()){case 0:e.breakfast=[...e.breakfast||[],t.title];break;case 5:e.lunch=[...e.lunch||[],t.title];break;case 10:e.dinner=[...e.dinner||[],t.title];break;case 15:e.snacks=[...e.snacks||[],t.title]}return e},{}):0},getMealPlans(){var getDate=e=>{var t=new Date(e),r=new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours());return r},e=[];this.mealPlans.forEach(t=>{var r=new re.b(t.title,getDate(t.startDate),getDate(t.endDate),!1,new g.a(t.eventColor));e=[...e,r]});return e}}),methods:MealPlannervue_type_script_lang_js_objectSpread(MealPlannervue_type_script_lang_js_objectSpread({},Object(n.b)(["setCurrentComponentAction","initializeMealPlans","addMealPlanAction","deleteMealPlanAction"])),{},{onPageLoad(e){this.setCurrentComponentAction("MealPlanner")},onCalendarLoad(e){e.object.monthViewStyle=this.monthViewStyle;e.object.android.getGestureManager().setDoubleTapToChangeDisplayMode(!1);e.object.android.getGestureManager().setPinchCloseToChangeDisplayMode(!1);null==e.object.selectedDate&&(e.object.selectedDate=new Date);e.object.nativeView.getEventAdapter()&&e.object.nativeView.getEventAdapter().getRenderer().setEventRenderMode(com.telerik.widget.calendar.events.EventRenderMode.Shape)},showDrawer(){K.showDrawer()},onScroll(e){this.viewIsScrolled=!!e.scrollY},getDate(e){var t=new Date;t.setDate(t.getDate()+e);return t.getTime()},getDateString(e){var t=new Date;t.setDate(t.getDate()+e);return t.toDateString().slice(0,-5)},getRecipeTitle(e){var t=this.recipes.filter(t=>t.id===e)[0];return t?t.title:"[Deleted Recipe]"},viewRecipe(e){var t=this.recipes.filter(t=>t.id===e)[0];t&&this.$navigateTo(L,{props:{filterTrylater:!0,recipeID:e},backstackVisible:!1})},addRecipe(e){var t=this.recipes.filter(t=>!this.getRecipes[e]||!this.getRecipes[e].includes(t.id));this.$showModal(j,{props:{title:"Select a recipe",recipes:t}}).then(t=>{t&&this.newEvent(t,e)})},removeRecipeConfirm(e){return this.$showModal(M,{props:{title:"Remove recipe from ".concat(e),cancelButtonText:"CANCEL",okButtonText:"REMOVE"}})},removeRecipe(e,t){var r={breakfast:0,lunch:5,dinner:10,snacks:15};this.removeRecipeConfirm(e).then(a=>{if(a){var o=this.selectedDayMealPlans.filter(a=>a.startDate.getHours()===r[e]&&a.title===t)[0],i={title:o.title,startDate:o.startDate};this.deleteMealPlanAction(i);this.updateSelectedDatePlans()}})},updateSelectedDatePlans(){var e=new Date(this.selectedDate);setTimeout(()=>{this.selectedDayMealPlans=this.$refs.calendar.nativeView.getEventsForDate(e)},100)},onDateSelected(e){this.selectedDate=e.date;this.selectedDayMealPlans=e.object.getEventsForDate(e.date)},newEvent(e,t){var r=new Date(this.selectedDate),{y:a,m:o,d:i}={y:r.getFullYear(),m:r.getMonth(),d:r.getDate()},l={breakfast:{start:new Date(a,o,i,0),end:new Date(a,o,i,4)},lunch:{start:new Date(a,o,i,5),end:new Date(a,o,i,9)},dinner:{start:new Date(a,o,i,10),end:new Date(a,o,i,14)},snacks:{start:new Date(a,o,i,15),end:new Date(a,o,i,19)}},n=new re.b(e,l[t].start,l[t].end,!1,new g.a(this.color[t]));this.addMealPlanAction({event:n,eventColor:this.color[t]});this.updateSelectedDatePlans()},goToToday(){var e=new Date;this.$refs.calendar.goToDate(e);this.$refs.calendar.nativeView.selectedDate=e}}),created(){this.appTheme=a.ApplicationSettings.getString("appTheme","Light");var e=new Date;e.setHours(0,0,0);this.selectedDate=e}},oe=ae,ie=Object(f.a)(oe,MealPlannervue_type_template_id_ed5c11f8_render,[],!1,null,null,null);ie.options.__file="components/MealPlanner.vue";var le=ie.exports,Settingsvue_type_template_id_6c938a04_render=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("Page",{on:{loaded:e.onPageLoad}},[r("ActionBar",{attrs:{androidElevation:e.viewIsScrolled?4:0}},[r("GridLayout",{attrs:{rows:"*",columns:"auto, *"}},[r("MDButton",{staticClass:"bx left",attrs:{variant:"text",text:e.icon.menu,automationText:"Back",col:"0"},on:{tap:e.showDrawer}}),r("Label",{staticClass:"title orkm",attrs:{text:"Settings",col:"1"}})],1)],1),r("ScrollView",{on:{scroll:e.onScroll}},[r("StackLayout",{staticClass:"main-container"},[r("Label",{staticClass:"group-header orkm",attrs:{text:"Interface"}}),r("GridLayout",{staticClass:"option",attrs:{columns:"auto, *"}},[r("MDRipple",{attrs:{colSpan:"2"},on:{tap:e.selectThemes}}),r("Label",{staticClass:"bx",attrs:{col:"0",verticalAlignment:"center",text:e.icon.theme}}),r("StackLayout",{attrs:{col:"1"}},[r("Label",{attrs:{text:"Theme"}}),r("Label",{staticClass:"info",attrs:{text:e.appTheme}})],1)],1),r("StackLayout",{staticClass:"hr m-10"}),r("Label",{staticClass:"group-header orkm",attrs:{text:"Database"}}),r("GridLayout",{staticClass:"option",attrs:{columns:"auto, *"}},[r("MDRipple",{attrs:{colSpan:"2"},on:{tap:e.exportCheck}}),r("Label",{staticClass:"bx",attrs:{col:"0",text:e.icon.export}}),r("StackLayout",{attrs:{col:"1"}},[r("Label",{attrs:{text:"Export a full backup"}}),e.backupInProgress?r("GridLayout",{staticClass:"progressContainer",attrs:{columns:"*, 64"}},[r("MDProgress",{attrs:{col:"0",value:e.backupProgress,maxValue:"100"}}),r("Label",{attrs:{col:"1",text:" "+e.backupProgress+"%"}})],1):r("Label",{staticClass:"info",attrs:{text:"Generates a zip file that contains all your data. This file can be imported back.",textWrap:"true"}})],1)],1),r("GridLayout",{staticClass:"option",attrs:{columns:"auto, *"}},[r("MDRipple",{attrs:{colSpan:"2"},on:{tap:e.importCheck}}),r("Label",{staticClass:"bx",attrs:{col:"0",text:e.icon.import}}),r("StackLayout",{attrs:{col:"1"}},[r("Label",{attrs:{text:"Import from backup"}}),r("Label",{staticClass:"info",attrs:{text:"Supports full backups exported by this app",textWrap:"true"}})],1)],1)],1)],1)],1)};Settingsvue_type_template_id_6c938a04_render._withStripped=!0;var ne=r(126);function Settingsvue_type_script_lang_js_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})));r.push.apply(r,a)}return r}function Settingsvue_type_script_lang_js_objectSpread(e){for(var t=1;t({viewIsScrolled:!1,appTheme:"Light",backupProgress:0,backupInProgress:!1}),computed:Settingsvue_type_script_lang_js_objectSpread({},Object(n.c)(["icon","recipes","userCategories","userYieldUnits","mealPlans","currentComponent"])),methods:Settingsvue_type_script_lang_js_objectSpread(Settingsvue_type_script_lang_js_objectSpread({},Object(n.b)(["setCurrentComponentAction","importCategoriesAction","importYieldUnitsAction","importRecipesAction","importMealPlansAction"])),{},{onPageLoad(){this.setCurrentComponentAction("Settings")},showDrawer(){K.showDrawer()},onScroll(e){this.viewIsScrolled=!!e.scrollY},selectThemes(){this.$showModal(P,{props:{title:"Theme",list:["Light","Dark"],height:"96"}}).then(e=>{e&&"Cancel"!==e&&this.appTheme!==e&&this.$showModal(M,{props:{title:"Reload required",description:"EnRecipes needs to be reloaded for the theme change to take effect.",cancelButtonText:"CANCEL",okButtonText:"RELOAD"}}).then(t=>{if(t){this.appTheme=e;a.ApplicationSettings.setString("appTheme",e);setTimeout(e=>K.restartApp(),250)}})})},exportCheck(){this.recipes.length?this.permissionCheck(this.permissionConfirmation,"EnRecipes requires storage permission in order to backup your data to this device.",this.exportBackup):l.makeText("Add at least one recipe to perform a backup","long").show()},exportBackup(){this.exportFiles("create");var e=new Date,t=e.getFullYear()+"-"+("0"+(e.getMonth()+1)).slice(-2)+"-"+("0"+e.getDate()).slice(-2)+"_"+("0"+e.getHours()).slice(-2)+("0"+e.getMinutes()).slice(-2)+("0"+e.getSeconds()).slice(-2),r=p.Folder.fromPath(android.os.Environment.getExternalStorageDirectory().getAbsolutePath()).getFolder("Download").path,a=p.path.join(p.knownFolders.documents().path,"EnRecipes"),o=p.path.join(r,"EnRecipes-Backup_".concat(t,".zip"));this.backupInProgress=!0;ne.a.zip({directory:a,archive:o,onProgress:e=>{this.backupProgress=e}}).then(e=>{l.makeText("Backup file successfully saved to Download folder","long").show();this.exportFiles("delete")})},exportFiles(e){var t,r,a,o=p.path.join(p.knownFolders.documents().path,"EnRecipes"),i=p.File.fromPath(p.path.join(o,"recipes.json"));this.userCategories.length&&(t=p.File.fromPath(p.path.join(o,"userCategories.json")));this.userYieldUnits.length&&(r=p.File.fromPath(p.path.join(o,"userYieldUnits.json")));this.mealPlans.length&&(a=p.File.fromPath(p.path.join(o,"mealPlans.json")));switch(e){case"create":this.writeDataToFile(i,this.recipes);this.userCategories.length&&this.writeDataToFile(t,this.userCategories);this.userYieldUnits.length&&this.writeDataToFile(r,this.userYieldUnits);this.mealPlans.length&&this.writeDataToFile(a,this.mealPlans);break;case"delete":i.remove();this.userCategories.length&&t.remove();this.userYieldUnits.length&&r.remove();this.mealPlans.length&&a.remove()}},writeDataToFile(e,t){e.writeText(JSON.stringify(t))},importCheck(){this.permissionCheck(this.permissionConfirmation,"EnRecipes requires storage permission in order to import your data from a previous backup.",this.openFilePicker)},openFilePicker(){u.create({mode:"single",extensions:["zip"]}).present().then(e=>{l.makeText("Processing...").show();var t=e[0];this.validateZipContent(t)})},importDataToDB(e,t,r){switch(t){case"EnRecipesDB":this.importImages(r);this.importRecipesAction(e);break;case"userCategoriesDB":this.importCategoriesAction(e);break;case"userYieldUnitsDB":this.importYieldUnitsAction(e);break;case"mealPlansDB":this.importMealPlansAction(e)}},isFileDataValid(e){e.forEach((e,t)=>{p.File.exists(e.path)&&p.File.fromPath(e.path).readText().then(t=>{Array.isArray(JSON.parse(t))&&this.importDataToDB(JSON.parse(t),e.db,e.zipPath)})})},validateZipContent(e){ne.a.unzip({archive:e,overwrite:!0}).then(t=>{var r=t+"/EnRecipes",a=r+"/recipes.json",o=r+"/userCategories.json",i=r+"/userYieldUnits.json",n=r+"/mealPlans.json";if(p.Folder.exists(r))this.isFileDataValid([{zipPath:e,path:a,db:"EnRecipesDB"},{zipPath:e,path:o,db:"userCategoriesDB"},{zipPath:e,path:i,db:"userYieldUnitsDB"},{zipPath:e,path:n,db:"mealPlansDB"}]);else{p.Folder.fromPath(t).remove();l.makeText("Import failed. Backup file is incorrect or corrupt","long").show()}p.Folder.exists(r+"/Images")&&this.importImages(r+"/Images")})},importImages(e){var t=p.knownFolders.documents().path;ne.a.unzip({archive:e,directory:t,overwrite:!0}).then(e=>{l.makeText("Import successful","long").show();this.$navigateBack()})},permissionCheck(e,t,r){a.ApplicationSettings.getBoolean("storagePermissionAsked",!1)?d.a("photo").then(a=>{var o=a[Object.keys(a)[0]];"authorized"!==o?e(t).then(e=>{e&&K.openAppSettingsPage()}):r()}):e(t).then(e=>{e&&d.b("photo").then(e=>{var t=e[Object.keys(e)[0]];"authorized"===t&&r();"denied"!==t?a.ApplicationSettings.setBoolean("storagePermissionAsked",!0):l.makeText("Permission denied").show()})})},permissionConfirmation(e){return this.$showModal(M,{props:{title:"Grant permission",description:e,cancelButtonText:"NOT NOW",okButtonText:"CONTINUE"}})}}),mounted(){this.appTheme=a.ApplicationSettings.getString("appTheme","Light")}},pe=se,ce=Object(f.a)(pe,Settingsvue_type_template_id_6c938a04_render,[],!1,null,null,null);ce.options.__file="components/Settings.vue";var de=ce.exports,Aboutvue_type_template_id_95337e7c_render=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("Page",{on:{loaded:e.onPageLoad}},[r("ActionBar",{attrs:{androidElevation:e.viewIsScrolled?4:0}},[r("GridLayout",{attrs:{rows:"*",columns:"auto, *"}},[r("MDButton",{staticClass:"bx",attrs:{variant:"text",text:e.icon.menu,automationText:"Back",col:"0"},on:{tap:e.showDrawer}}),r("Label",{staticClass:"title orkm",attrs:{text:"About",col:"1"}})],1)],1),r("ScrollView",{on:{scroll:e.onScroll}},[r("StackLayout",{staticClass:"main-container"},[r("StackLayout",{staticClass:"appIconContainer",attrs:{horizontalAlignment:"center",orientation:"horizontal"}},[r("Image",{staticClass:"appIcon",attrs:{src:"res://logo",stretch:"aspectFit"}})],1),r("StackLayout",{staticClass:"m-8"}),r("GridLayout",{staticClass:"option",attrs:{columns:"auto, *"}},[r("Label",{staticClass:"bx",attrs:{col:"0",text:e.icon.info}}),r("StackLayout",{attrs:{col:"1"}},[r("Label",{attrs:{text:"Version"}}),r("Label",{staticClass:"info",attrs:{text:e.getVersion,textWrap:"true"}})],1)],1),r("GridLayout",{staticClass:"option",attrs:{columns:"auto, *"}},[r("MDRipple",{attrs:{colSpan:"2"},on:{tap:function(t){return e.openURL("https://github.com/vishnuraghavb/enrecipes")}}}),r("Label",{staticClass:"bx",attrs:{col:"0",text:e.icon.link}}),r("Label",{attrs:{verticalAlignment:"center",col:"1",text:"View project on GitHub"}})],1),r("GridLayout",{staticClass:"option",attrs:{columns:"auto, *"}},[r("MDRipple",{attrs:{colSpan:"2"},on:{tap:function(t){return e.openURL("https://t.me/enrecipes")}}}),r("Label",{staticClass:"bx",attrs:{col:"0",text:e.icon.telegram}}),r("StackLayout",{attrs:{col:"1"}},[r("Label",{attrs:{text:"Join the Telegram group"}}),r("Label",{staticClass:"info",attrs:{text:"for reporting issues, suggestions and feedback",textWrap:"true"}})],1)],1),r("StackLayout",{staticClass:"hr m-10"}),r("Label",{staticClass:"group-header orkm",attrs:{text:"Author"}}),r("GridLayout",{staticClass:"option",attrs:{columns:"auto, *"}},[r("MDRipple",{attrs:{colSpan:"2"},on:{tap:function(t){return e.openURL("https://www.vishnuraghav.com")}}}),r("Label",{staticClass:"bx",attrs:{col:"0",text:e.icon.user}}),r("Label",{attrs:{verticalAlignment:"center",col:"1",text:"Vishnu Raghav B"}})],1),r("GridLayout",{staticClass:"option",attrs:{columns:"auto, *"}},[r("MDRipple",{attrs:{colSpan:"2"},on:{tap:function(t){return e.openURL("https://github.com/vishnuraghavb")}}}),r("Label",{staticClass:"bx",attrs:{col:"0",text:e.icon.link}}),r("Label",{attrs:{verticalAlignment:"center",col:"1",text:"Follow on GitHub"}})],1),r("GridLayout",{staticClass:"option",attrs:{columns:"auto, *"}},[r("MDRipple",{attrs:{colSpan:"2"},on:{tap:function(t){return e.openURL("https://mastodon.social/@vishnuraghavb")}}}),r("Label",{staticClass:"bx",attrs:{col:"0",text:e.icon.link}}),r("Label",{attrs:{verticalAlignment:"center",col:"1",text:"Follow on Mastodon"}})],1)],1)],1)],1)};Aboutvue_type_template_id_95337e7c_render._withStripped=!0;function Aboutvue_type_script_lang_js_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})));r.push.apply(r,a)}return r}function Aboutvue_type_script_lang_js_objectSpread(e){for(var t=1;t({viewIsScrolled:!1,appTheme:"Light"}),methods:Aboutvue_type_script_lang_js_objectSpread(Aboutvue_type_script_lang_js_objectSpread({},Object(n.b)(["setCurrentComponentAction"])),{},{onPageLoad(){this.setCurrentComponentAction("About")},showDrawer(){K.showDrawer()},onScroll(e){this.viewIsScrolled=!!e.scrollY},openURL(e){a.Utils.openUrl(e)}})},ye=ue,ge=Object(f.a)(ye,Aboutvue_type_template_id_95337e7c_render,[],!1,null,null,null);ge.options.__file="components/About.vue";var me=ge.exports;function Appvue_type_script_lang_js_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})));r.push.apply(r,a)}return r}function Appvue_type_script_lang_js_objectSpread(e){for(var t=1;t({selectedCategory:null,filterFavorites:!1,filterTrylater:!1,MealPlanner:le,topmenu:[{title:"EnRecipes",component:"EnRecipes",icon:"home"},{title:"Try Later",component:"Try Later",icon:"trylater"},{title:"Favorites",component:"Favorites",icon:"heart"}],bottommenu:[{title:"Settings",component:de,icon:"cog"},{title:"About",component:me,icon:"info"}],editCategory:!1,appTheme:"Light"}),components:{EnRecipes:te,MealPlanner:le},computed:Appvue_type_script_lang_js_objectSpread(Appvue_type_script_lang_js_objectSpread({},Object(n.c)(["icon","recipes","categories","yieldUnits","mealPlans","currentComponent"])),{},{categoriesWithRecipes(){var e=this.recipes.map(e=>e.category);return[...new Set(e)]}}),methods:Appvue_type_script_lang_js_objectSpread(Appvue_type_script_lang_js_objectSpread({},Object(n.b)(["setCurrentComponentAction","initializeRecipes","initializeCategories","initializeYieldUnits","initializeMealPlans","renameCategoryAction"])),{},{onPageLoad(){if("Light"===this.appTheme){var e=android.view.View,t=a.Application.android.startActivity.getWindow(),r=t.getDecorView();r.setSystemUiVisibility(e.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR)}},onPageUnload(){},toggleCatEdit(){this.editCategory=!this.editCategory;this.selectedCategory&&this.setComponent("EnRecipes");this.filterFavorites=this.filterTrylater=!1;this.selectedCategory=null;this.$refs.enrecipes.updateFilter()},setComponent(e){this.setCurrentComponentAction(e)},renameCategory(e){this.releaseGlobalBackEvent();this.$showModal(G,{props:{title:"Rename category",text:e,action:"RENAME"}}).then(t=>{this.hijackGlobalBackEvent();if(t.length){this.renameCategoryAction({current:e,updated:t});this.editCategory=!1;this.navigateTo(t,!1,!0)}})},setSelectedCategory(e){this.selectedCategory=e.item;this.closeDrawer()},closeDrawer(){this.$refs.drawer.nativeView.closeDrawer()},hijackGlobalBackEvent(){o.AndroidApplication.on(o.AndroidApplication.activityBackPressedEvent,this.globalBackEvent)},releaseGlobalBackEvent(){o.AndroidApplication.off(o.AndroidApplication.activityBackPressedEvent,this.globalBackEvent)},globalBackEvent(e){function preventDefault(){e.cancel=!0}if(this.$refs.drawer&&this.$refs.drawer.nativeView.getIsOpen()){preventDefault();this.closeDrawer();this.editCategory=!1}else if(["Favorites","Try Later",this.selectedCategory].includes(this.currentComponent)){preventDefault();this.setComponent("EnRecipes");this.filterFavorites=this.filterTrylater=!1;this.selectedCategory=null;this.$refs.enrecipes.updateFilter();this.releaseGlobalBackEvent()}},navigateTo(e,t,r){if(t){this.$navigateTo(e,{frame:"main-frame",backstackVisible:!1});this.closeDrawer()}else if(!this.editCategory||!r){this.releaseGlobalBackEvent();this.hijackGlobalBackEvent();this.setComponent(e);this.$navigateBack({frame:"main-frame",backstackVisible:!1});this.filterFavorites="Favorites"===e;this.filterTrylater="Try Later"===e;this.selectedCategory=r?e:null;this.$refs.enrecipes.updateFilter();this.closeDrawer()}this.editCategory=!1},donate(){a.Utils.openUrl("https://www.vishnuraghav.com/donate/")}}),created(){this.appTheme=a.ApplicationSettings.getString("appTheme","Light");setTimeout(e=>{i.a.setMode(i.a[this.appTheme])},10);this.recipes.length||this.initializeRecipes();this.categories.length||this.initializeCategories();this.yieldUnits.length||this.initializeYieldUnits();this.mealPlans.length||this.initializeMealPlans()}},ve=he,be=Object(f.a)(ve,render,[],!1,null,null,null);be.options.__file="components/App.vue";t.a=be.exports},323:function(e,t,r){var a={"./app.scss":171};function webpackContext(e){var t=webpackContextResolve(e);return r(t)}function webpackContextResolve(e){if(!r.o(a,e)){var t=new Error("Cannot find module '"+e+"'");t.code="MODULE_NOT_FOUND";throw t}return a[e]}webpackContext.keys=function webpackContextKeys(){return Object.keys(a)};webpackContext.resolve=webpackContextResolve;e.exports=webpackContext;webpackContext.id=323},324:function(e,t,r){var a={"./app.scss":171,"./main.js":146,"./shared/utils.js":60,"./store.js":139};function webpackContext(e){var t=webpackContextResolve(e);return r(t)}function webpackContextResolve(e){if(!r.o(a,e)){var t=new Error("Cannot find module '"+e+"'");t.code="MODULE_NOT_FOUND";throw t}return a[e]}webpackContext.keys=function webpackContextKeys(){return Object.keys(a)};webpackContext.resolve=webpackContextResolve;e.exports=webpackContext;webpackContext.id=324},60:function(e,t,r){"use strict";r.r(t);r.d(t,"showDrawer",(function(){return showDrawer}));r.d(t,"restartApp",(function(){return restartApp}));r.d(t,"openAppSettingsPage",(function(){return openAppSettingsPage}));var a=r(3),showDrawer=()=>{var e=a.Application.getRootView().getViewById("sideDrawer");e&&e.showDrawer()},restartApp=()=>{var e=new android.content.Intent(a.Application.android.context,a.Application.android.startActivity.getClass()),t=parseInt(1e5*Math.random(),10),r=android.app.PendingIntent.getActivity(a.Application.android.context,t,e,android.app.PendingIntent.FLAG_CANCEL_CURRENT),o=a.Application.android.context.getSystemService(android.content.Context.ALARM_SERVICE);o.set(android.app.AlarmManager.RTC,java.lang.System.currentTimeMillis()+100,r);android.os.Process.killProcess(android.os.Process.myPid())},openAppSettingsPage=()=>{var e=new android.content.Intent(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS);e.addCategory(android.content.Intent.CATEGORY_DEFAULT);e.setData(android.net.Uri.parse("package:"+a.Application.android.context.getPackageName()));a.Application.android.foregroundActivity.startActivity(e)}}},[[146,1,2]]]); \ No newline at end of file +require("./runtime.js");require("./vendor.js");module.exports=(global.webpackJsonp=global.webpackJsonp||[]).push([[0],{139:function(e,t,r){"use strict";r.r(t);var a=r(58),o=r.n(a),i=r(31),l=r(113),n=r(17),s=new l.Couchbase("EnRecipes"),p=new l.Couchbase("userCategories"),c=new l.Couchbase("userYieldUnits"),d=new l.Couchbase("mealPlans");o.a.use(i.a);var u=["Appetizers","BBQ","Beverages","Breads","Breakfast","Desserts","Dinner","Drinks","Healthy","Lunch","Main dishes","Meat","Noodles","Pasta","Poultry","Rice","Salads","Sauces","Seafood","Side dishes","Snacks","Soups","Undefined","Vegan","Vegetarian"],y=["Serving","Piece","Teaspoon","Tablespoon","Fluid Ounce","Ounce","Pound","Gram","Kilogram","Cup","Gallon","Millilitre","Litre","Roll","Patty","Loaf"];t.default=new i.a.Store({state:{recipes:[],categories:[],userCategories:[],units:["unit","tsp","dsp","tbsp","fl oz","cup","pt","qt","gal","ml","l","oz","lb","mg","g","kg","cm","in","leaf","clove","pinch","drop","dozen","stick","small","medium","large"],yieldUnits:[],userYieldUnits:[],mealPlans:[],icon:{home:"",heart:"",heartOutline:"",label:"",labelOutline:"",cog:"",info:"",menu:"",search:"",sort:"",plus:"",plusCircle:"",close:"",image:"",food:"",back:"",save:"",camera:"",share:"",edit:"",theme:"",link:"",file:"",detail:"",user:"",trash:"",donate:"",trylater:"",trylaterOutline:"",note:"",copy:"",check:"",telegram:"",time:"",item:"",step:"",source:"",export:"",import:"",outline:"",calendar:"",today:""},currentComponent:"EnRecipes"},mutations:{initializeRecipes(e){s.query({select:[]}).forEach(t=>{e.recipes.push(t)})},initializeCategories(e){var t=p.query({select:[]}).length;if(t){e.userCategories=p.getDocument("userCategories").userCategories;var r=e.recipes.map(e=>e.category);e.userCategories=e.userCategories.filter(e=>r.includes(e))}else p.createDocument({userCategories:[]},"userCategories");e.categories=[...u,...e.userCategories];e.categories.sort()},initializeYieldUnits(e){var t=c.query({select:[]}).length;if(t){e.userYieldUnits=c.getDocument("userYieldUnits").userYieldUnits;var r=e.recipes.map(e=>e.yield.unit);e.userYieldUnits=e.userYieldUnits.filter(e=>r.includes(e))}else c.createDocument({userYieldUnits:[]},"userYieldUnits");e.yieldUnits=[...y,...e.userYieldUnits]},initializeMealPlans(e){var t=d.query({select:[]}).length;t?e.mealPlans=d.getDocument("mealPlans").mealPlans:d.createDocument({mealPlans:[]},"mealPlans")},importRecipes(e,t){var r,a;if(e.recipes.length){r=e.recipes.map(e=>e.id);a=t.reduce((e,t,a)=>{r.indexOf(t.id)<0?e[0].push(t):e[1].push(t);return e},[[],[]]);a[0].length&&createDocuments(a[0]);a[1].length&&function updateDocuments(t){t=getUpdatedData(t);t.forEach(t=>{var r=e.recipes.map((e,r)=>{var a=new Date(e.lastModified).getTime(),o=new Date(t.lastModified).getTime();return e.id===t.id&&ae>=0)[0];if(r>=0){Object.assign(e.recipes[r],t);s.updateDocument(t.id,t)}})}(a[1])}else createDocuments(t);function getUpdatedData(e){return e.map(e=>{var t=Object.assign({},e);if(t.timeRequired){t.prepTime="00:00";t.cookTime=t.timeRequired;delete t.timeRequired}return t})}function createDocuments(t){t=getUpdatedData(t);e.recipes=[...e.recipes,...t];t.forEach(e=>{s.createDocument(e,e.id)})}},importCategories(e,t){e.userCategories=new Set([...e.userCategories,...t]);p.updateDocument("userCategories",{userCategories:[...e.userCategories]});e.categories=[...u,...e.userCategories];e.categories.sort()},importYieldUnits(e,t){e.userYieldUnits=new Set([...e.userYieldUnits,...t]);c.updateDocument("userYieldUnits",{userYieldUnits:[...e.userYieldUnits]});e.yieldUnits=[...y,...e.userYieldUnits]},importMealPlans(e,t){var r=t.filter(t=>!e.mealPlans.some(e=>e.title===t.title&&e.startDate===t.startDate));e.mealPlans=[...e.mealPlans,...r];d.updateDocument("mealPlans",{mealPlans:[...e.mealPlans]})},addRecipe(e,t){var{id:r,recipe:a}=t;e.recipes.push(a);s.createDocument(a,r)},addCategory(e,t){var r=e.categories.map(e=>e.toLowerCase());if(-1==r.indexOf(t.toLowerCase())){e.userCategories.push(t);p.updateDocument("userCategories",{userCategories:[...e.userCategories]});e.categories=[...u,...e.userCategories];e.categories.sort()}},addYieldUnit(e,t){var r=e.yieldUnits.map(e=>e.toLowerCase());if(-1==r.indexOf(t.toLowerCase())){e.userYieldUnits.push(t);c.updateDocument("userYieldUnits",{userYieldUnits:[...e.userYieldUnits]});e.yieldUnits=[...y,...e.userYieldUnits]}},addMealPlan(e,t){var{event:r,eventColor:a}=t;e.mealPlans.push({title:r.title,startDate:r.startDate,endDate:r.endDate,eventColor:a});d.updateDocument("mealPlans",{mealPlans:[...e.mealPlans]})},deleteRecipe(e,t){var{index:r,id:a}=t;Object(n.getFileAccess)().deleteFile(e.recipes[r].imageSrc);e.recipes.splice(r,1);s.deleteDocument(a);e.recipes.forEach((t,r)=>{if(t.combinations.includes(a)){e.recipes[r].combinations.splice(t.combinations.indexOf(a),1);s.updateDocument(e.recipes[r].id,e.recipes[r])}})},deleteMealPlan(e,t){var{title:r,startDate:a}=t,o=e.mealPlans.filter(e=>{console.log(e.startDate,a);var t=new Date(e.startDate).getTime();return e.title===r&&t===a.getTime()})[0],i=e.mealPlans.indexOf(o);e.mealPlans.splice(i,1);e.mealPlans=[...e.mealPlans];var l=d.getDocument("mealPlans").mealPlans;l.splice(i,1);d.updateDocument("mealPlans",{mealPlans:[...l]})},overwriteRecipe(e,t){var{id:r,recipe:a}=t,o=e.recipes.indexOf(e.recipes.filter(e=>e.id===r)[0]);Object.assign(e.recipes[o],a);s.updateDocument(r,a)},toggleState(e,t){var{id:r,recipe:a,key:o,setDate:i}=t,l=e.recipes.indexOf(e.recipes.filter(e=>e.id===r)[0]);e.recipes[l][o]=!e.recipes[l][o];i&&(e.recipes[l].lastTried=new Date);s.updateDocument(r,a)},setRecipeAsTried(e,t){var{id:r,recipe:a}=t,o=e.recipes.indexOf(e.recipes.filter(e=>e.id===r)[0]);e.recipes[o].tried=!0;e.recipes[o].lastTried=new Date;s.updateDocument(r,a)},setLastTriedDate(e,t){e.recipes[t].lastTried=new Date;s.updateDocument(e.recipes[t].id,e.recipes[t])},renameCategory(e,t){var{current:r,updated:a}=t,o=e.categories.map(e=>e.toLowerCase());if(-1==o.indexOf(a.toLowerCase())){e.userCategories.push(a);p.updateDocument("userCategories",{userCategories:[...e.userCategories]});e.categories=[...u,...e.userCategories];e.categories.sort()}e.recipes.forEach((t,o)=>{if(t.category==r){e.recipes[o].category=a;s.inBatch(()=>{s.updateDocument(e.recipes[o].id,e.recipes[o])})}})},setCurrentComponent(e,t){e.currentComponent=t},unSyncCombinations(e,t){var{id:r,combinations:a}=t;e.recipes.forEach((t,o)=>{if(a.includes(t.id)){e.recipes[o].combinations.splice(t.combinations.indexOf(r),1);s.updateDocument(e.recipes[o].id,e.recipes[o])}})}},actions:{initializeRecipes(e){var{commit:t}=e;t("initializeRecipes")},initializeCategories(e){var{commit:t}=e;t("initializeCategories")},initializeYieldUnits(e){var{commit:t}=e;t("initializeYieldUnits")},initializeMealPlans(e){var{commit:t}=e;t("initializeMealPlans")},importRecipesAction(e,t){var{commit:r}=e;r("importRecipes",t)},importCategoriesAction(e,t){var{commit:r}=e;r("importCategories",t)},importYieldUnitsAction(e,t){var{commit:r}=e;r("importYieldUnits",t)},importMealPlansAction(e,t){var{commit:r}=e;r("importMealPlans",t)},addRecipeAction(e,t){var{commit:r}=e;r("addRecipe",t)},addYieldUnitAction(e,t){var{commit:r}=e;r("addYieldUnit",t)},addCategoryAction(e,t){var{commit:r}=e;r("addCategory",t)},addMealPlanAction(e,t){var{commit:r}=e;r("addMealPlan",t)},deleteMealPlanAction(e,t){var{commit:r}=e;r("deleteMealPlan",t)},deleteRecipeAction(e,t){var{commit:r}=e;r("deleteRecipe",t)},overwriteRecipeAction(e,t){var{commit:r}=e;r("overwriteRecipe",t)},toggleStateAction(e,t){var{commit:r}=e;r("toggleState",t)},setRecipeAsTriedAction(e,t){var{commit:r}=e;r("setRecipeAsTried",t)},setLastTriedDateAction(e,t){var{commit:r}=e;r("setLastTriedDate",t)},renameCategoryAction(e,t){var{commit:r}=e;r("renameCategory",t)},setCurrentComponentAction(e,t){var{commit:r}=e;r("setCurrentComponent",t)},unSyncCombinationsAction(e,t){var{commit:r}=e;r("unSyncCombinations",t)}}})},146:function(e,t,r){"use strict";r.r(t);(function(e){r(325);var t=r(58),a=r.n(t),o=r(189),i=r(139),l=r(194),n=r(190),s=r(191),p=r(185),c=r(192),d=r(193),u=r(195),y=r(196),g=r(188);const m=r(3).isAndroid;if(m&&!e.__snapshot){r(41);r(320)}r(321)();0;const h=r(324);e.registerWebpackModules(h);0;a.a.use(l.a);a.a.use(n.a);a.a.use(s.a);a.a.use(p.a);a.a.use(c.a);a.a.use(d.a);a.a.use(u.a);a.a.use(y.a);a.a.registerElement("CheckBox",()=>g.a,{model:{prop:"checked",event:"checkedChange"}});a.a.config.silent=!0;new a.a({store:i.default,render:e=>e("frame",[e(o.a)])}).$start()}).call(this,r(20))},147:function(e,t){e.exports=require("~/package.json")},171:function(e,t,r){e.exports={type:"stylesheet",stylesheet:{rules:[{type:"comment",comment:"!\n * NativeScript Theme __VERSION__ (https://nativescript.org)\n * Copyright 2016-2016 The Theme Authors\n * Copyright 2016-2019 Progress Software\n * Licensed under Apache 2.0 (https://github.com/NativeScript/theme/blob/master/LICENSE)\n "},{type:"keyframes",name:"empty",keyframes:[]},{type:"rule",selectors:[".c-black"],declarations:[{type:"declaration",property:"color",value:"#000"}]},{type:"rule",selectors:[".c-bg-black"],declarations:[{type:"declaration",property:"background-color",value:"#000"}]},{type:"rule",selectors:[".c-white"],declarations:[{type:"declaration",property:"color",value:"#fff"}]},{type:"rule",selectors:[".c-bg-white"],declarations:[{type:"declaration",property:"background-color",value:"#fff"}]},{type:"rule",selectors:[".c-grey"],declarations:[{type:"declaration",property:"color",value:"#e0e0e0"}]},{type:"rule",selectors:[".c-bg-grey"],declarations:[{type:"declaration",property:"background-color",value:"#e0e0e0"}]},{type:"rule",selectors:[".c-grey-light"],declarations:[{type:"declaration",property:"color",value:"#bababa"}]},{type:"rule",selectors:[".c-bg-grey-light"],declarations:[{type:"declaration",property:"background-color",value:"#bababa"}]},{type:"rule",selectors:[".c-charcoal"],declarations:[{type:"declaration",property:"color",value:"#303030"}]},{type:"rule",selectors:[".c-bg-charcoal"],declarations:[{type:"declaration",property:"background-color",value:"#303030"}]},{type:"rule",selectors:[".c-transparent"],declarations:[{type:"declaration",property:"color",value:"rgba(0,0,0,0)"}]},{type:"rule",selectors:[".c-bg-transparent"],declarations:[{type:"declaration",property:"background-color",value:"rgba(0,0,0,0)"}]},{type:"rule",selectors:[".c-aqua"],declarations:[{type:"declaration",property:"color",value:"#00caab"}]},{type:"rule",selectors:[".c-bg-aqua"],declarations:[{type:"declaration",property:"background-color",value:"#00caab"}]},{type:"rule",selectors:[".c-blue"],declarations:[{type:"declaration",property:"color",value:"#3a53ff"}]},{type:"rule",selectors:[".c-bg-blue"],declarations:[{type:"declaration",property:"background-color",value:"#3a53ff"}]},{type:"rule",selectors:[".c-brown"],declarations:[{type:"declaration",property:"color",value:"#795548"}]},{type:"rule",selectors:[".c-bg-brown"],declarations:[{type:"declaration",property:"background-color",value:"#795548"}]},{type:"rule",selectors:[".c-forest"],declarations:[{type:"declaration",property:"color",value:"#006968"}]},{type:"rule",selectors:[".c-bg-forest"],declarations:[{type:"declaration",property:"background-color",value:"#006968"}]},{type:"rule",selectors:[".c-grey-dark"],declarations:[{type:"declaration",property:"color",value:"#5c687c"}]},{type:"rule",selectors:[".c-bg-grey-dark"],declarations:[{type:"declaration",property:"background-color",value:"#5c687c"}]},{type:"rule",selectors:[".c-purple"],declarations:[{type:"declaration",property:"color",value:"#8130ff"}]},{type:"rule",selectors:[".c-bg-purple"],declarations:[{type:"declaration",property:"background-color",value:"#8130ff"}]},{type:"rule",selectors:[".c-lemon"],declarations:[{type:"declaration",property:"color",value:"#ffea00"}]},{type:"rule",selectors:[".c-bg-lemon"],declarations:[{type:"declaration",property:"background-color",value:"#ffea00"}]},{type:"rule",selectors:[".c-lime"],declarations:[{type:"declaration",property:"color",value:"#aee406"}]},{type:"rule",selectors:[".c-bg-lime"],declarations:[{type:"declaration",property:"background-color",value:"#aee406"}]},{type:"rule",selectors:[".c-orange"],declarations:[{type:"declaration",property:"color",value:"#f57c00"}]},{type:"rule",selectors:[".c-bg-orange"],declarations:[{type:"declaration",property:"background-color",value:"#f57c00"}]},{type:"rule",selectors:[".c-ruby"],declarations:[{type:"declaration",property:"color",value:"#ff1744"}]},{type:"rule",selectors:[".c-bg-ruby"],declarations:[{type:"declaration",property:"background-color",value:"#ff1744"}]},{type:"rule",selectors:[".c-sky"],declarations:[{type:"declaration",property:"color",value:"#30bcff"}]},{type:"rule",selectors:[".c-bg-sky"],declarations:[{type:"declaration",property:"background-color",value:"#30bcff"}]},{type:"rule",selectors:[".c-error"],declarations:[{type:"declaration",property:"color",value:"#d50000"}]},{type:"rule",selectors:[".c-bg-error"],declarations:[{type:"declaration",property:"background-color",value:"#d50000"}]},{type:"rule",selectors:[".w-full"],declarations:[{type:"declaration",property:"width",value:"100%"}]},{type:"rule",selectors:[".w-100"],declarations:[{type:"declaration",property:"width",value:"100"}]},{type:"rule",selectors:[".h-full"],declarations:[{type:"declaration",property:"height",value:"100%"}]},{type:"rule",selectors:[".h-100"],declarations:[{type:"declaration",property:"height",value:"100"}]},{type:"rule",selectors:[".m-0"],declarations:[{type:"declaration",property:"margin",value:"0"}]},{type:"rule",selectors:[".m-t-0"],declarations:[{type:"declaration",property:"margin-top",value:"0"}]},{type:"rule",selectors:[".m-r-0"],declarations:[{type:"declaration",property:"margin-right",value:"0"}]},{type:"rule",selectors:[".m-b-0"],declarations:[{type:"declaration",property:"margin-bottom",value:"0"}]},{type:"rule",selectors:[".m-l-0"],declarations:[{type:"declaration",property:"margin-left",value:"0"}]},{type:"rule",selectors:[".m-x-0"],declarations:[{type:"declaration",property:"margin-right",value:"0"},{type:"declaration",property:"margin-left",value:"0"}]},{type:"rule",selectors:[".m-y-0"],declarations:[{type:"declaration",property:"margin-top",value:"0"},{type:"declaration",property:"margin-bottom",value:"0"}]},{type:"rule",selectors:[".m-2"],declarations:[{type:"declaration",property:"margin",value:"2"}]},{type:"rule",selectors:[".m-t-2"],declarations:[{type:"declaration",property:"margin-top",value:"2"}]},{type:"rule",selectors:[".m-r-2"],declarations:[{type:"declaration",property:"margin-right",value:"2"}]},{type:"rule",selectors:[".m-b-2"],declarations:[{type:"declaration",property:"margin-bottom",value:"2"}]},{type:"rule",selectors:[".m-l-2"],declarations:[{type:"declaration",property:"margin-left",value:"2"}]},{type:"rule",selectors:[".m-x-2"],declarations:[{type:"declaration",property:"margin-right",value:"2"},{type:"declaration",property:"margin-left",value:"2"}]},{type:"rule",selectors:[".m-y-2"],declarations:[{type:"declaration",property:"margin-top",value:"2"},{type:"declaration",property:"margin-bottom",value:"2"}]},{type:"rule",selectors:[".m-4"],declarations:[{type:"declaration",property:"margin",value:"4"}]},{type:"rule",selectors:[".m-t-4"],declarations:[{type:"declaration",property:"margin-top",value:"4"}]},{type:"rule",selectors:[".m-r-4"],declarations:[{type:"declaration",property:"margin-right",value:"4"}]},{type:"rule",selectors:[".m-b-4"],declarations:[{type:"declaration",property:"margin-bottom",value:"4"}]},{type:"rule",selectors:[".m-l-4"],declarations:[{type:"declaration",property:"margin-left",value:"4"}]},{type:"rule",selectors:[".m-x-4"],declarations:[{type:"declaration",property:"margin-right",value:"4"},{type:"declaration",property:"margin-left",value:"4"}]},{type:"rule",selectors:[".m-y-4"],declarations:[{type:"declaration",property:"margin-top",value:"4"},{type:"declaration",property:"margin-bottom",value:"4"}]},{type:"rule",selectors:[".m-5"],declarations:[{type:"declaration",property:"margin",value:"5"}]},{type:"rule",selectors:[".m-t-5"],declarations:[{type:"declaration",property:"margin-top",value:"5"}]},{type:"rule",selectors:[".m-r-5"],declarations:[{type:"declaration",property:"margin-right",value:"5"}]},{type:"rule",selectors:[".m-b-5"],declarations:[{type:"declaration",property:"margin-bottom",value:"5"}]},{type:"rule",selectors:[".m-l-5"],declarations:[{type:"declaration",property:"margin-left",value:"5"}]},{type:"rule",selectors:[".m-x-5"],declarations:[{type:"declaration",property:"margin-right",value:"5"},{type:"declaration",property:"margin-left",value:"5"}]},{type:"rule",selectors:[".m-y-5"],declarations:[{type:"declaration",property:"margin-top",value:"5"},{type:"declaration",property:"margin-bottom",value:"5"}]},{type:"rule",selectors:[".m-8"],declarations:[{type:"declaration",property:"margin",value:"8"}]},{type:"rule",selectors:[".m-t-8"],declarations:[{type:"declaration",property:"margin-top",value:"8"}]},{type:"rule",selectors:[".m-r-8"],declarations:[{type:"declaration",property:"margin-right",value:"8"}]},{type:"rule",selectors:[".m-b-8"],declarations:[{type:"declaration",property:"margin-bottom",value:"8"}]},{type:"rule",selectors:[".m-l-8"],declarations:[{type:"declaration",property:"margin-left",value:"8"}]},{type:"rule",selectors:[".m-x-8"],declarations:[{type:"declaration",property:"margin-right",value:"8"},{type:"declaration",property:"margin-left",value:"8"}]},{type:"rule",selectors:[".m-y-8"],declarations:[{type:"declaration",property:"margin-top",value:"8"},{type:"declaration",property:"margin-bottom",value:"8"}]},{type:"rule",selectors:[".m-10"],declarations:[{type:"declaration",property:"margin",value:"10"}]},{type:"rule",selectors:[".m-t-10"],declarations:[{type:"declaration",property:"margin-top",value:"10"}]},{type:"rule",selectors:[".m-r-10"],declarations:[{type:"declaration",property:"margin-right",value:"10"}]},{type:"rule",selectors:[".m-b-10"],declarations:[{type:"declaration",property:"margin-bottom",value:"10"}]},{type:"rule",selectors:[".m-l-10"],declarations:[{type:"declaration",property:"margin-left",value:"10"}]},{type:"rule",selectors:[".m-x-10"],declarations:[{type:"declaration",property:"margin-right",value:"10"},{type:"declaration",property:"margin-left",value:"10"}]},{type:"rule",selectors:[".m-y-10"],declarations:[{type:"declaration",property:"margin-top",value:"10"},{type:"declaration",property:"margin-bottom",value:"10"}]},{type:"rule",selectors:[".m-12"],declarations:[{type:"declaration",property:"margin",value:"12"}]},{type:"rule",selectors:[".m-t-12"],declarations:[{type:"declaration",property:"margin-top",value:"12"}]},{type:"rule",selectors:[".m-r-12"],declarations:[{type:"declaration",property:"margin-right",value:"12"}]},{type:"rule",selectors:[".m-b-12"],declarations:[{type:"declaration",property:"margin-bottom",value:"12"}]},{type:"rule",selectors:[".m-l-12"],declarations:[{type:"declaration",property:"margin-left",value:"12"}]},{type:"rule",selectors:[".m-x-12"],declarations:[{type:"declaration",property:"margin-right",value:"12"},{type:"declaration",property:"margin-left",value:"12"}]},{type:"rule",selectors:[".m-y-12"],declarations:[{type:"declaration",property:"margin-top",value:"12"},{type:"declaration",property:"margin-bottom",value:"12"}]},{type:"rule",selectors:[".m-15"],declarations:[{type:"declaration",property:"margin",value:"15"}]},{type:"rule",selectors:[".m-t-15"],declarations:[{type:"declaration",property:"margin-top",value:"15"}]},{type:"rule",selectors:[".m-r-15"],declarations:[{type:"declaration",property:"margin-right",value:"15"}]},{type:"rule",selectors:[".m-b-15"],declarations:[{type:"declaration",property:"margin-bottom",value:"15"}]},{type:"rule",selectors:[".m-l-15"],declarations:[{type:"declaration",property:"margin-left",value:"15"}]},{type:"rule",selectors:[".m-x-15"],declarations:[{type:"declaration",property:"margin-right",value:"15"},{type:"declaration",property:"margin-left",value:"15"}]},{type:"rule",selectors:[".m-y-15"],declarations:[{type:"declaration",property:"margin-top",value:"15"},{type:"declaration",property:"margin-bottom",value:"15"}]},{type:"rule",selectors:[".m-16"],declarations:[{type:"declaration",property:"margin",value:"16"}]},{type:"rule",selectors:[".m-t-16"],declarations:[{type:"declaration",property:"margin-top",value:"16"}]},{type:"rule",selectors:[".m-r-16"],declarations:[{type:"declaration",property:"margin-right",value:"16"}]},{type:"rule",selectors:[".m-b-16"],declarations:[{type:"declaration",property:"margin-bottom",value:"16"}]},{type:"rule",selectors:[".m-l-16"],declarations:[{type:"declaration",property:"margin-left",value:"16"}]},{type:"rule",selectors:[".m-x-16"],declarations:[{type:"declaration",property:"margin-right",value:"16"},{type:"declaration",property:"margin-left",value:"16"}]},{type:"rule",selectors:[".m-y-16"],declarations:[{type:"declaration",property:"margin-top",value:"16"},{type:"declaration",property:"margin-bottom",value:"16"}]},{type:"rule",selectors:[".m-20"],declarations:[{type:"declaration",property:"margin",value:"20"}]},{type:"rule",selectors:[".m-t-20"],declarations:[{type:"declaration",property:"margin-top",value:"20"}]},{type:"rule",selectors:[".m-r-20"],declarations:[{type:"declaration",property:"margin-right",value:"20"}]},{type:"rule",selectors:[".m-b-20"],declarations:[{type:"declaration",property:"margin-bottom",value:"20"}]},{type:"rule",selectors:[".m-l-20"],declarations:[{type:"declaration",property:"margin-left",value:"20"}]},{type:"rule",selectors:[".m-x-20"],declarations:[{type:"declaration",property:"margin-right",value:"20"},{type:"declaration",property:"margin-left",value:"20"}]},{type:"rule",selectors:[".m-y-20"],declarations:[{type:"declaration",property:"margin-top",value:"20"},{type:"declaration",property:"margin-bottom",value:"20"}]},{type:"rule",selectors:[".m-24"],declarations:[{type:"declaration",property:"margin",value:"24"}]},{type:"rule",selectors:[".m-t-24"],declarations:[{type:"declaration",property:"margin-top",value:"24"}]},{type:"rule",selectors:[".m-r-24"],declarations:[{type:"declaration",property:"margin-right",value:"24"}]},{type:"rule",selectors:[".m-b-24"],declarations:[{type:"declaration",property:"margin-bottom",value:"24"}]},{type:"rule",selectors:[".m-l-24"],declarations:[{type:"declaration",property:"margin-left",value:"24"}]},{type:"rule",selectors:[".m-x-24"],declarations:[{type:"declaration",property:"margin-right",value:"24"},{type:"declaration",property:"margin-left",value:"24"}]},{type:"rule",selectors:[".m-y-24"],declarations:[{type:"declaration",property:"margin-top",value:"24"},{type:"declaration",property:"margin-bottom",value:"24"}]},{type:"rule",selectors:[".m-25"],declarations:[{type:"declaration",property:"margin",value:"25"}]},{type:"rule",selectors:[".m-t-25"],declarations:[{type:"declaration",property:"margin-top",value:"25"}]},{type:"rule",selectors:[".m-r-25"],declarations:[{type:"declaration",property:"margin-right",value:"25"}]},{type:"rule",selectors:[".m-b-25"],declarations:[{type:"declaration",property:"margin-bottom",value:"25"}]},{type:"rule",selectors:[".m-l-25"],declarations:[{type:"declaration",property:"margin-left",value:"25"}]},{type:"rule",selectors:[".m-x-25"],declarations:[{type:"declaration",property:"margin-right",value:"25"},{type:"declaration",property:"margin-left",value:"25"}]},{type:"rule",selectors:[".m-y-25"],declarations:[{type:"declaration",property:"margin-top",value:"25"},{type:"declaration",property:"margin-bottom",value:"25"}]},{type:"rule",selectors:[".m-28"],declarations:[{type:"declaration",property:"margin",value:"28"}]},{type:"rule",selectors:[".m-t-28"],declarations:[{type:"declaration",property:"margin-top",value:"28"}]},{type:"rule",selectors:[".m-r-28"],declarations:[{type:"declaration",property:"margin-right",value:"28"}]},{type:"rule",selectors:[".m-b-28"],declarations:[{type:"declaration",property:"margin-bottom",value:"28"}]},{type:"rule",selectors:[".m-l-28"],declarations:[{type:"declaration",property:"margin-left",value:"28"}]},{type:"rule",selectors:[".m-x-28"],declarations:[{type:"declaration",property:"margin-right",value:"28"},{type:"declaration",property:"margin-left",value:"28"}]},{type:"rule",selectors:[".m-y-28"],declarations:[{type:"declaration",property:"margin-top",value:"28"},{type:"declaration",property:"margin-bottom",value:"28"}]},{type:"rule",selectors:[".m-30"],declarations:[{type:"declaration",property:"margin",value:"30"}]},{type:"rule",selectors:[".m-t-30"],declarations:[{type:"declaration",property:"margin-top",value:"30"}]},{type:"rule",selectors:[".m-r-30"],declarations:[{type:"declaration",property:"margin-right",value:"30"}]},{type:"rule",selectors:[".m-b-30"],declarations:[{type:"declaration",property:"margin-bottom",value:"30"}]},{type:"rule",selectors:[".m-l-30"],declarations:[{type:"declaration",property:"margin-left",value:"30"}]},{type:"rule",selectors:[".m-x-30"],declarations:[{type:"declaration",property:"margin-right",value:"30"},{type:"declaration",property:"margin-left",value:"30"}]},{type:"rule",selectors:[".m-y-30"],declarations:[{type:"declaration",property:"margin-top",value:"30"},{type:"declaration",property:"margin-bottom",value:"30"}]},{type:"rule",selectors:[".p-0"],declarations:[{type:"declaration",property:"padding",value:"0"}]},{type:"rule",selectors:[".p-t-0"],declarations:[{type:"declaration",property:"padding-top",value:"0"}]},{type:"rule",selectors:[".p-r-0"],declarations:[{type:"declaration",property:"padding-right",value:"0"}]},{type:"rule",selectors:[".p-b-0"],declarations:[{type:"declaration",property:"padding-bottom",value:"0"}]},{type:"rule",selectors:[".p-l-0"],declarations:[{type:"declaration",property:"padding-left",value:"0"}]},{type:"rule",selectors:[".p-x-0"],declarations:[{type:"declaration",property:"padding-right",value:"0"},{type:"declaration",property:"padding-left",value:"0"}]},{type:"rule",selectors:[".p-y-0"],declarations:[{type:"declaration",property:"padding-top",value:"0"},{type:"declaration",property:"padding-bottom",value:"0"}]},{type:"rule",selectors:[".p-2"],declarations:[{type:"declaration",property:"padding",value:"2"}]},{type:"rule",selectors:[".p-t-2"],declarations:[{type:"declaration",property:"padding-top",value:"2"}]},{type:"rule",selectors:[".p-r-2"],declarations:[{type:"declaration",property:"padding-right",value:"2"}]},{type:"rule",selectors:[".p-b-2"],declarations:[{type:"declaration",property:"padding-bottom",value:"2"}]},{type:"rule",selectors:[".p-l-2"],declarations:[{type:"declaration",property:"padding-left",value:"2"}]},{type:"rule",selectors:[".p-x-2"],declarations:[{type:"declaration",property:"padding-right",value:"2"},{type:"declaration",property:"padding-left",value:"2"}]},{type:"rule",selectors:[".p-y-2"],declarations:[{type:"declaration",property:"padding-top",value:"2"},{type:"declaration",property:"padding-bottom",value:"2"}]},{type:"rule",selectors:[".p-4"],declarations:[{type:"declaration",property:"padding",value:"4"}]},{type:"rule",selectors:[".p-t-4"],declarations:[{type:"declaration",property:"padding-top",value:"4"}]},{type:"rule",selectors:[".p-r-4"],declarations:[{type:"declaration",property:"padding-right",value:"4"}]},{type:"rule",selectors:[".p-b-4"],declarations:[{type:"declaration",property:"padding-bottom",value:"4"}]},{type:"rule",selectors:[".p-l-4"],declarations:[{type:"declaration",property:"padding-left",value:"4"}]},{type:"rule",selectors:[".p-x-4"],declarations:[{type:"declaration",property:"padding-right",value:"4"},{type:"declaration",property:"padding-left",value:"4"}]},{type:"rule",selectors:[".p-y-4"],declarations:[{type:"declaration",property:"padding-top",value:"4"},{type:"declaration",property:"padding-bottom",value:"4"}]},{type:"rule",selectors:[".p-5"],declarations:[{type:"declaration",property:"padding",value:"5"}]},{type:"rule",selectors:[".p-t-5"],declarations:[{type:"declaration",property:"padding-top",value:"5"}]},{type:"rule",selectors:[".p-r-5"],declarations:[{type:"declaration",property:"padding-right",value:"5"}]},{type:"rule",selectors:[".p-b-5"],declarations:[{type:"declaration",property:"padding-bottom",value:"5"}]},{type:"rule",selectors:[".p-l-5"],declarations:[{type:"declaration",property:"padding-left",value:"5"}]},{type:"rule",selectors:[".p-x-5"],declarations:[{type:"declaration",property:"padding-right",value:"5"},{type:"declaration",property:"padding-left",value:"5"}]},{type:"rule",selectors:[".p-y-5"],declarations:[{type:"declaration",property:"padding-top",value:"5"},{type:"declaration",property:"padding-bottom",value:"5"}]},{type:"rule",selectors:[".p-8"],declarations:[{type:"declaration",property:"padding",value:"8"}]},{type:"rule",selectors:[".p-t-8"],declarations:[{type:"declaration",property:"padding-top",value:"8"}]},{type:"rule",selectors:[".p-r-8"],declarations:[{type:"declaration",property:"padding-right",value:"8"}]},{type:"rule",selectors:[".p-b-8"],declarations:[{type:"declaration",property:"padding-bottom",value:"8"}]},{type:"rule",selectors:[".p-l-8"],declarations:[{type:"declaration",property:"padding-left",value:"8"}]},{type:"rule",selectors:[".p-x-8"],declarations:[{type:"declaration",property:"padding-right",value:"8"},{type:"declaration",property:"padding-left",value:"8"}]},{type:"rule",selectors:[".p-y-8"],declarations:[{type:"declaration",property:"padding-top",value:"8"},{type:"declaration",property:"padding-bottom",value:"8"}]},{type:"rule",selectors:[".p-10"],declarations:[{type:"declaration",property:"padding",value:"10"}]},{type:"rule",selectors:[".p-t-10"],declarations:[{type:"declaration",property:"padding-top",value:"10"}]},{type:"rule",selectors:[".p-r-10"],declarations:[{type:"declaration",property:"padding-right",value:"10"}]},{type:"rule",selectors:[".p-b-10"],declarations:[{type:"declaration",property:"padding-bottom",value:"10"}]},{type:"rule",selectors:[".p-l-10"],declarations:[{type:"declaration",property:"padding-left",value:"10"}]},{type:"rule",selectors:[".p-x-10"],declarations:[{type:"declaration",property:"padding-right",value:"10"},{type:"declaration",property:"padding-left",value:"10"}]},{type:"rule",selectors:[".p-y-10"],declarations:[{type:"declaration",property:"padding-top",value:"10"},{type:"declaration",property:"padding-bottom",value:"10"}]},{type:"rule",selectors:[".p-12"],declarations:[{type:"declaration",property:"padding",value:"12"}]},{type:"rule",selectors:[".p-t-12"],declarations:[{type:"declaration",property:"padding-top",value:"12"}]},{type:"rule",selectors:[".p-r-12"],declarations:[{type:"declaration",property:"padding-right",value:"12"}]},{type:"rule",selectors:[".p-b-12"],declarations:[{type:"declaration",property:"padding-bottom",value:"12"}]},{type:"rule",selectors:[".p-l-12"],declarations:[{type:"declaration",property:"padding-left",value:"12"}]},{type:"rule",selectors:[".p-x-12"],declarations:[{type:"declaration",property:"padding-right",value:"12"},{type:"declaration",property:"padding-left",value:"12"}]},{type:"rule",selectors:[".p-y-12"],declarations:[{type:"declaration",property:"padding-top",value:"12"},{type:"declaration",property:"padding-bottom",value:"12"}]},{type:"rule",selectors:[".p-15"],declarations:[{type:"declaration",property:"padding",value:"15"}]},{type:"rule",selectors:[".p-t-15"],declarations:[{type:"declaration",property:"padding-top",value:"15"}]},{type:"rule",selectors:[".p-r-15"],declarations:[{type:"declaration",property:"padding-right",value:"15"}]},{type:"rule",selectors:[".p-b-15"],declarations:[{type:"declaration",property:"padding-bottom",value:"15"}]},{type:"rule",selectors:[".p-l-15"],declarations:[{type:"declaration",property:"padding-left",value:"15"}]},{type:"rule",selectors:[".p-x-15"],declarations:[{type:"declaration",property:"padding-right",value:"15"},{type:"declaration",property:"padding-left",value:"15"}]},{type:"rule",selectors:[".p-y-15"],declarations:[{type:"declaration",property:"padding-top",value:"15"},{type:"declaration",property:"padding-bottom",value:"15"}]},{type:"rule",selectors:[".p-16"],declarations:[{type:"declaration",property:"padding",value:"16"}]},{type:"rule",selectors:[".p-t-16"],declarations:[{type:"declaration",property:"padding-top",value:"16"}]},{type:"rule",selectors:[".p-r-16"],declarations:[{type:"declaration",property:"padding-right",value:"16"}]},{type:"rule",selectors:[".p-b-16"],declarations:[{type:"declaration",property:"padding-bottom",value:"16"}]},{type:"rule",selectors:[".p-l-16"],declarations:[{type:"declaration",property:"padding-left",value:"16"}]},{type:"rule",selectors:[".p-x-16"],declarations:[{type:"declaration",property:"padding-right",value:"16"},{type:"declaration",property:"padding-left",value:"16"}]},{type:"rule",selectors:[".p-y-16"],declarations:[{type:"declaration",property:"padding-top",value:"16"},{type:"declaration",property:"padding-bottom",value:"16"}]},{type:"rule",selectors:[".p-20"],declarations:[{type:"declaration",property:"padding",value:"20"}]},{type:"rule",selectors:[".p-t-20"],declarations:[{type:"declaration",property:"padding-top",value:"20"}]},{type:"rule",selectors:[".p-r-20"],declarations:[{type:"declaration",property:"padding-right",value:"20"}]},{type:"rule",selectors:[".p-b-20"],declarations:[{type:"declaration",property:"padding-bottom",value:"20"}]},{type:"rule",selectors:[".p-l-20"],declarations:[{type:"declaration",property:"padding-left",value:"20"}]},{type:"rule",selectors:[".p-x-20"],declarations:[{type:"declaration",property:"padding-right",value:"20"},{type:"declaration",property:"padding-left",value:"20"}]},{type:"rule",selectors:[".p-y-20"],declarations:[{type:"declaration",property:"padding-top",value:"20"},{type:"declaration",property:"padding-bottom",value:"20"}]},{type:"rule",selectors:[".p-24"],declarations:[{type:"declaration",property:"padding",value:"24"}]},{type:"rule",selectors:[".p-t-24"],declarations:[{type:"declaration",property:"padding-top",value:"24"}]},{type:"rule",selectors:[".p-r-24"],declarations:[{type:"declaration",property:"padding-right",value:"24"}]},{type:"rule",selectors:[".p-b-24"],declarations:[{type:"declaration",property:"padding-bottom",value:"24"}]},{type:"rule",selectors:[".p-l-24"],declarations:[{type:"declaration",property:"padding-left",value:"24"}]},{type:"rule",selectors:[".p-x-24"],declarations:[{type:"declaration",property:"padding-right",value:"24"},{type:"declaration",property:"padding-left",value:"24"}]},{type:"rule",selectors:[".p-y-24"],declarations:[{type:"declaration",property:"padding-top",value:"24"},{type:"declaration",property:"padding-bottom",value:"24"}]},{type:"rule",selectors:[".p-25"],declarations:[{type:"declaration",property:"padding",value:"25"}]},{type:"rule",selectors:[".p-t-25"],declarations:[{type:"declaration",property:"padding-top",value:"25"}]},{type:"rule",selectors:[".p-r-25"],declarations:[{type:"declaration",property:"padding-right",value:"25"}]},{type:"rule",selectors:[".p-b-25"],declarations:[{type:"declaration",property:"padding-bottom",value:"25"}]},{type:"rule",selectors:[".p-l-25"],declarations:[{type:"declaration",property:"padding-left",value:"25"}]},{type:"rule",selectors:[".p-x-25"],declarations:[{type:"declaration",property:"padding-right",value:"25"},{type:"declaration",property:"padding-left",value:"25"}]},{type:"rule",selectors:[".p-y-25"],declarations:[{type:"declaration",property:"padding-top",value:"25"},{type:"declaration",property:"padding-bottom",value:"25"}]},{type:"rule",selectors:[".p-28"],declarations:[{type:"declaration",property:"padding",value:"28"}]},{type:"rule",selectors:[".p-t-28"],declarations:[{type:"declaration",property:"padding-top",value:"28"}]},{type:"rule",selectors:[".p-r-28"],declarations:[{type:"declaration",property:"padding-right",value:"28"}]},{type:"rule",selectors:[".p-b-28"],declarations:[{type:"declaration",property:"padding-bottom",value:"28"}]},{type:"rule",selectors:[".p-l-28"],declarations:[{type:"declaration",property:"padding-left",value:"28"}]},{type:"rule",selectors:[".p-x-28"],declarations:[{type:"declaration",property:"padding-right",value:"28"},{type:"declaration",property:"padding-left",value:"28"}]},{type:"rule",selectors:[".p-y-28"],declarations:[{type:"declaration",property:"padding-top",value:"28"},{type:"declaration",property:"padding-bottom",value:"28"}]},{type:"rule",selectors:[".p-30"],declarations:[{type:"declaration",property:"padding",value:"30"}]},{type:"rule",selectors:[".p-t-30"],declarations:[{type:"declaration",property:"padding-top",value:"30"}]},{type:"rule",selectors:[".p-r-30"],declarations:[{type:"declaration",property:"padding-right",value:"30"}]},{type:"rule",selectors:[".p-b-30"],declarations:[{type:"declaration",property:"padding-bottom",value:"30"}]},{type:"rule",selectors:[".p-l-30"],declarations:[{type:"declaration",property:"padding-left",value:"30"}]},{type:"rule",selectors:[".p-x-30"],declarations:[{type:"declaration",property:"padding-right",value:"30"},{type:"declaration",property:"padding-left",value:"30"}]},{type:"rule",selectors:[".p-y-30"],declarations:[{type:"declaration",property:"padding-top",value:"30"},{type:"declaration",property:"padding-bottom",value:"30"}]},{type:"rule",selectors:[".text-left"],declarations:[{type:"declaration",property:"text-align",value:"left"}]},{type:"rule",selectors:[".text-right"],declarations:[{type:"declaration",property:"text-align",value:"right"}]},{type:"rule",selectors:[".text-center"],declarations:[{type:"declaration",property:"text-align",value:"center"}]},{type:"rule",selectors:[".text-lowercase"],declarations:[{type:"declaration",property:"text-transform",value:"lowercase"}]},{type:"rule",selectors:[".text-uppercase"],declarations:[{type:"declaration",property:"text-transform",value:"uppercase"}]},{type:"rule",selectors:[".text-capitalize"],declarations:[{type:"declaration",property:"text-transform",value:"capitalize"}]},{type:"rule",selectors:[".font-weight-normal"],declarations:[{type:"declaration",property:"font-weight",value:"normal"}]},{type:"rule",selectors:[".font-weight-bold"],declarations:[{type:"declaration",property:"font-weight",value:"bold"}]},{type:"rule",selectors:[".font-italic"],declarations:[{type:"declaration",property:"font-style",value:"italic"}]},{type:"rule",selectors:[".t-10"],declarations:[{type:"declaration",property:"font-size",value:"10"}]},{type:"rule",selectors:[".t-12"],declarations:[{type:"declaration",property:"font-size",value:"12"}]},{type:"rule",selectors:[".t-14"],declarations:[{type:"declaration",property:"font-size",value:"14"}]},{type:"rule",selectors:[".t-15"],declarations:[{type:"declaration",property:"font-size",value:"15"}]},{type:"rule",selectors:[".t-16"],declarations:[{type:"declaration",property:"font-size",value:"16"}]},{type:"rule",selectors:[".t-17"],declarations:[{type:"declaration",property:"font-size",value:"17"}]},{type:"rule",selectors:[".t-18"],declarations:[{type:"declaration",property:"font-size",value:"18"}]},{type:"rule",selectors:[".t-19"],declarations:[{type:"declaration",property:"font-size",value:"19"}]},{type:"rule",selectors:[".t-20"],declarations:[{type:"declaration",property:"font-size",value:"20"}]},{type:"rule",selectors:[".t-25"],declarations:[{type:"declaration",property:"font-size",value:"25"}]},{type:"rule",selectors:[".t-30"],declarations:[{type:"declaration",property:"font-size",value:"30"}]},{type:"rule",selectors:[".t-36"],declarations:[{type:"declaration",property:"font-size",value:"36"}]},{type:"rule",selectors:[".h1",".h2",".h3",".h4",".h5",".h6"],declarations:[{type:"declaration",property:"margin-bottom",value:"4"},{type:"declaration",property:"font-weight",value:"normal"},{type:"declaration",property:"color",value:"#262626"}]},{type:"rule",selectors:[".ns-dark .h1",".ns-dark .h2",".ns-dark .h3",".ns-dark .h4",".ns-dark .h5",".ns-dark .h6"],declarations:[{type:"declaration",property:"color",value:"#fff"}]},{type:"rule",selectors:[".body",".body2",".footnote"],declarations:[{type:"declaration",property:"color",value:"#000"},{type:"declaration",property:"font-weight",value:"normal"}]},{type:"rule",selectors:[".ns-dark .body",".ns-dark .body2",".ns-dark .footnote"],declarations:[{type:"declaration",property:"color",value:"#b3b3b3"}]},{type:"rule",selectors:[".h1"],declarations:[{type:"declaration",property:"font-size",value:"32"}]},{type:"rule",selectors:[".h2"],declarations:[{type:"declaration",property:"font-size",value:"22"}]},{type:"rule",selectors:[".h3"],declarations:[{type:"declaration",property:"font-size",value:"15"}]},{type:"rule",selectors:[".h4"],declarations:[{type:"declaration",property:"font-size",value:"12"}]},{type:"rule",selectors:[".h5"],declarations:[{type:"declaration",property:"font-size",value:"11"}]},{type:"rule",selectors:[".h6"],declarations:[{type:"declaration",property:"font-size",value:"10"}]},{type:"rule",selectors:[".body"],declarations:[{type:"declaration",property:"font-size",value:"14"}]},{type:"rule",selectors:[".body2"],declarations:[{type:"declaration",property:"font-size",value:"17"}]},{type:"rule",selectors:[".footnote"],declarations:[{type:"declaration",property:"font-size",value:"13"}]},{type:"rule",selectors:[".img-thumbnail"],declarations:[{type:"declaration",property:"border-radius",value:"0"}]},{type:"rule",selectors:[".invisible"],declarations:[{type:"declaration",property:"visibility",value:"collapse"}]},{type:"rule",selectors:[".pull-left"],declarations:[{type:"declaration",property:"horizontal-align",value:"left"}]},{type:"rule",selectors:[".pull-right"],declarations:[{type:"declaration",property:"horizontal-align",value:"right"}]},{type:"rule",selectors:[".m-x-auto"],declarations:[{type:"declaration",property:"horizontal-align",value:"center"}]},{type:"rule",selectors:[".m-y-auto"],declarations:[{type:"declaration",property:"vertical-align",value:"center"}]},{type:"rule",selectors:[".ns-modal",".ns-root"],declarations:[{type:"declaration",property:"background-color",value:"#fff"},{type:"declaration",property:"color",value:"#262626"},{type:"declaration",property:"font-family",value:"sans-serif"},{type:"declaration",property:"font-size",value:"12"}]},{type:"rule",selectors:[".ns-dark.ns-modal",".ns-dark.ns-root"],declarations:[{type:"declaration",property:"background-color",value:"#303030"},{type:"declaration",property:"color",value:"#fff"}]},{type:"rule",selectors:[".-hidden",".hidden"],declarations:[{type:"declaration",property:"visibility",value:"collapsed"}]},{type:"rule",selectors:[".-rounded",".rounded"],declarations:[{type:"declaration",property:"border-radius",value:"4"}]},{type:"rule",selectors:[".-circle"],declarations:[{type:"declaration",property:"border-radius",value:"50%"}]},{type:"rule",selectors:[".hr"],declarations:[{type:"declaration",property:"height",value:"1"},{type:"declaration",property:"width",value:"100%"},{type:"declaration",property:"margin",value:"9 0 10"},{type:"declaration",property:"border-width",value:"0 0 1"},{type:"declaration",property:"border-style",value:"solid"}]},{type:"rule",selectors:[".text-muted"],declarations:[{type:"declaration",property:"color",value:"#ace4ff"}]},{type:"rule",selectors:[".ns-dark .text-muted"],declarations:[{type:"declaration",property:"color",value:"#446f83"}]},{type:"rule",selectors:["Label>*","Label>*>*","Button>*","Button>*>*","TextField>*","TextField>*>*","TextView>*","TextView>*>*"],declarations:[{type:"declaration",property:"background-color",value:"transparent"}]},{type:"rule",selectors:["ListView","RadListView"],declarations:[{type:"declaration",property:"min-height",value:"100"}]},{type:"rule",selectors:["Image"],declarations:[{type:"declaration",property:"min-height",value:"20"}]},{type:"rule",selectors:[".nt-icon"],declarations:[{type:"declaration",property:"font-size",value:"14"}]},{type:"rule",selectors:["Button",".nt-button"],declarations:[{type:"declaration",property:"text-transform",value:"none"},{type:"declaration",property:"border-color",value:"transparent"},{type:"declaration",property:"min-width",value:"64"},{type:"declaration",property:"height",value:"52"},{type:"declaration",property:"padding",value:"0 5 0 5"},{type:"declaration",property:"font-size",value:"14"},{type:"declaration",property:"margin",value:"8 16 8 16"}]},{type:"rule",selectors:[".ns-ios Button",".ns-ios .nt-button"],declarations:[{type:"declaration",property:"height",value:"40"},{type:"declaration",property:"border-width",value:"0"}]},{type:"rule",selectors:[".ns-android Button",".ns-android .nt-button"],declarations:[{type:"declaration",property:"margin",value:"4 12"}]},{type:"rule",selectors:["Button.-outline",".nt-button.-outline"],declarations:[{type:"declaration",property:"height",value:"40"},{type:"declaration",property:"border-width",value:"1"}]},{type:"rule",selectors:[".ns-android Button.-outline",".ns-android .nt-button.-outline"],declarations:[{type:"declaration",property:"margin",value:"8 16"}]},{type:"rule",selectors:["Button.-rounded-sm","Button.-rounded-lg",".nt-button.-rounded-sm",".nt-button.-rounded-lg"],declarations:[{type:"declaration",property:"height",value:"40"},{type:"declaration",property:"border-radius",value:"4"}]},{type:"rule",selectors:[".ns-android Button.-rounded-sm",".ns-android Button.-rounded-lg",".ns-android .nt-button.-rounded-sm",".ns-android .nt-button.-rounded-lg"],declarations:[{type:"declaration",property:"margin",value:"8 16"}]},{type:"rule",selectors:["Button.-rounded-lg",".nt-button.-rounded-lg"],declarations:[{type:"declaration",property:"border-radius",value:"50%"}]},{type:"rule",selectors:["Button[isEnabled=false]",".nt-button[isEnabled=false]"],declarations:[{type:"declaration",property:"opacity",value:".5"}]},{type:"rule",selectors:["Button.-simple",".nt-button.-simple"],declarations:[{type:"declaration",property:"android-elevation",value:"0"},{type:"declaration",property:"android-dynamic-elevation-offset",value:"0"}]},{type:"rule",selectors:[".ns-root Button.-aqua",".ns-root .nt-button.-aqua"],declarations:[{type:"declaration",property:"border-color",value:"#00caab"},{type:"declaration",property:"color",value:"#00caab"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-aqua",".ns-dark.ns-root .nt-button.-aqua"],declarations:[{type:"declaration",property:"border-color",value:"#00caab"},{type:"declaration",property:"color",value:"#00caab"}]},{type:"rule",selectors:[".ns-root Button.-aqua.-primary",".ns-root .nt-button.-aqua.-primary"],declarations:[{type:"declaration",property:"color",value:"#fdffff"},{type:"declaration",property:"background-color",value:"#00caab"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-aqua.-primary",".ns-dark.ns-root .nt-button.-aqua.-primary"],declarations:[{type:"declaration",property:"color",value:"#fdffff"},{type:"declaration",property:"background-color",value:"#00caab"}]},{type:"rule",selectors:[".ns-root Button.-blue",".ns-root .nt-button.-blue"],declarations:[{type:"declaration",property:"border-color",value:"#3a53ff"},{type:"declaration",property:"color",value:"#3a53ff"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-blue",".ns-dark.ns-root .nt-button.-blue"],declarations:[{type:"declaration",property:"border-color",value:"#3a53ff"},{type:"declaration",property:"color",value:"#3a53ff"}]},{type:"rule",selectors:[".ns-root Button.-blue.-primary",".ns-root .nt-button.-blue.-primary"],declarations:[{type:"declaration",property:"color",value:"#fff"},{type:"declaration",property:"background-color",value:"#3a53ff"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-blue.-primary",".ns-dark.ns-root .nt-button.-blue.-primary"],declarations:[{type:"declaration",property:"color",value:"#fff"},{type:"declaration",property:"background-color",value:"#3a53ff"}]},{type:"rule",selectors:[".ns-root Button.-brown",".ns-root .nt-button.-brown"],declarations:[{type:"declaration",property:"border-color",value:"#795548"},{type:"declaration",property:"color",value:"#795548"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-brown",".ns-dark.ns-root .nt-button.-brown"],declarations:[{type:"declaration",property:"border-color",value:"#795548"},{type:"declaration",property:"color",value:"#795548"}]},{type:"rule",selectors:[".ns-root Button.-brown.-primary",".ns-root .nt-button.-brown.-primary"],declarations:[{type:"declaration",property:"color",value:"#fbf9f8"},{type:"declaration",property:"background-color",value:"#795548"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-brown.-primary",".ns-dark.ns-root .nt-button.-brown.-primary"],declarations:[{type:"declaration",property:"color",value:"#fbf9f8"},{type:"declaration",property:"background-color",value:"#795548"}]},{type:"rule",selectors:[".ns-root Button.-forest",".ns-root .nt-button.-forest"],declarations:[{type:"declaration",property:"border-color",value:"#006968"},{type:"declaration",property:"color",value:"#006968"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-forest",".ns-dark.ns-root .nt-button.-forest"],declarations:[{type:"declaration",property:"border-color",value:"#006968"},{type:"declaration",property:"color",value:"#006968"}]},{type:"rule",selectors:[".ns-root Button.-forest.-primary",".ns-root .nt-button.-forest.-primary"],declarations:[{type:"declaration",property:"color",value:"#9cfffe"},{type:"declaration",property:"background-color",value:"#006968"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-forest.-primary",".ns-dark.ns-root .nt-button.-forest.-primary"],declarations:[{type:"declaration",property:"color",value:"#9cfffe"},{type:"declaration",property:"background-color",value:"#006968"}]},{type:"rule",selectors:[".ns-root Button.-grey",".ns-root .nt-button.-grey"],declarations:[{type:"declaration",property:"border-color",value:"#5c687c"},{type:"declaration",property:"color",value:"#5c687c"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-grey",".ns-dark.ns-root .nt-button.-grey"],declarations:[{type:"declaration",property:"border-color",value:"#5c687c"},{type:"declaration",property:"color",value:"#5c687c"}]},{type:"rule",selectors:[".ns-root Button.-grey.-primary",".ns-root .nt-button.-grey.-primary"],declarations:[{type:"declaration",property:"color",value:"#fff"},{type:"declaration",property:"background-color",value:"#5c687c"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-grey.-primary",".ns-dark.ns-root .nt-button.-grey.-primary"],declarations:[{type:"declaration",property:"color",value:"#fff"},{type:"declaration",property:"background-color",value:"#5c687c"}]},{type:"rule",selectors:[".ns-root Button.-lemon",".ns-root .nt-button.-lemon"],declarations:[{type:"declaration",property:"border-color",value:"#ffea00"},{type:"declaration",property:"color",value:"#ffea00"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-lemon",".ns-dark.ns-root .nt-button.-lemon"],declarations:[{type:"declaration",property:"border-color",value:"#ffea00"},{type:"declaration",property:"color",value:"#ffea00"}]},{type:"rule",selectors:[".ns-root Button.-lemon.-primary",".ns-root .nt-button.-lemon.-primary"],declarations:[{type:"declaration",property:"color",value:"#000"},{type:"declaration",property:"background-color",value:"#ffea00"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-lemon.-primary",".ns-dark.ns-root .nt-button.-lemon.-primary"],declarations:[{type:"declaration",property:"color",value:"#000"},{type:"declaration",property:"background-color",value:"#ffea00"}]},{type:"rule",selectors:[".ns-root Button.-lime",".ns-root .nt-button.-lime"],declarations:[{type:"declaration",property:"border-color",value:"#aee406"},{type:"declaration",property:"color",value:"#aee406"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-lime",".ns-dark.ns-root .nt-button.-lime"],declarations:[{type:"declaration",property:"border-color",value:"#aee406"},{type:"declaration",property:"color",value:"#aee406"}]},{type:"rule",selectors:[".ns-root Button.-lime.-primary",".ns-root .nt-button.-lime.-primary"],declarations:[{type:"declaration",property:"color",value:"#000"},{type:"declaration",property:"background-color",value:"#aee406"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-lime.-primary",".ns-dark.ns-root .nt-button.-lime.-primary"],declarations:[{type:"declaration",property:"color",value:"#000"},{type:"declaration",property:"background-color",value:"#aee406"}]},{type:"rule",selectors:[".ns-root Button.-orange",".ns-root .nt-button.-orange"],declarations:[{type:"declaration",property:"border-color",value:"#f57c00"},{type:"declaration",property:"color",value:"#f57c00"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-orange",".ns-dark.ns-root .nt-button.-orange"],declarations:[{type:"declaration",property:"border-color",value:"#f57c00"},{type:"declaration",property:"color",value:"#f57c00"}]},{type:"rule",selectors:[".ns-root Button.-orange.-primary",".ns-root .nt-button.-orange.-primary"],declarations:[{type:"declaration",property:"color",value:"#000"},{type:"declaration",property:"background-color",value:"#f57c00"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-orange.-primary",".ns-dark.ns-root .nt-button.-orange.-primary"],declarations:[{type:"declaration",property:"color",value:"#000"},{type:"declaration",property:"background-color",value:"#f57c00"}]},{type:"rule",selectors:[".ns-root Button.-purple",".ns-root .nt-button.-purple"],declarations:[{type:"declaration",property:"border-color",value:"#8130ff"},{type:"declaration",property:"color",value:"#8130ff"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-purple",".ns-dark.ns-root .nt-button.-purple"],declarations:[{type:"declaration",property:"border-color",value:"#8130ff"},{type:"declaration",property:"color",value:"#8130ff"}]},{type:"rule",selectors:[".ns-root Button.-purple.-primary",".ns-root .nt-button.-purple.-primary"],declarations:[{type:"declaration",property:"color",value:"#fff"},{type:"declaration",property:"background-color",value:"#8130ff"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-purple.-primary",".ns-dark.ns-root .nt-button.-purple.-primary"],declarations:[{type:"declaration",property:"color",value:"#fff"},{type:"declaration",property:"background-color",value:"#8130ff"}]},{type:"rule",selectors:[".ns-root Button.-ruby",".ns-root .nt-button.-ruby"],declarations:[{type:"declaration",property:"border-color",value:"#ff1744"},{type:"declaration",property:"color",value:"#ff1744"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-ruby",".ns-dark.ns-root .nt-button.-ruby"],declarations:[{type:"declaration",property:"border-color",value:"#ff1744"},{type:"declaration",property:"color",value:"#ff1744"}]},{type:"rule",selectors:[".ns-root Button.-ruby.-primary",".ns-root .nt-button.-ruby.-primary"],declarations:[{type:"declaration",property:"color",value:"#fff"},{type:"declaration",property:"background-color",value:"#ff1744"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-ruby.-primary",".ns-dark.ns-root .nt-button.-ruby.-primary"],declarations:[{type:"declaration",property:"color",value:"#fff"},{type:"declaration",property:"background-color",value:"#ff1744"}]},{type:"rule",selectors:[".ns-root Button.-sky",".ns-root .nt-button.-sky"],declarations:[{type:"declaration",property:"border-color",value:"#30bcff"},{type:"declaration",property:"color",value:"#30bcff"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-sky",".ns-dark.ns-root .nt-button.-sky"],declarations:[{type:"declaration",property:"border-color",value:"#30bcff"},{type:"declaration",property:"color",value:"#30bcff"}]},{type:"rule",selectors:[".ns-root Button.-sky.-primary",".ns-root .nt-button.-sky.-primary"],declarations:[{type:"declaration",property:"color",value:"#fff"},{type:"declaration",property:"background-color",value:"#30bcff"}]},{type:"rule",selectors:[".ns-dark.ns-root Button.-sky.-primary",".ns-dark.ns-root .nt-button.-sky.-primary"],declarations:[{type:"declaration",property:"color",value:"#fff"},{type:"declaration",property:"background-color",value:"#30bcff"}]},{type:"rule",selectors:["Frame",".nt-frame"],declarations:[{type:"declaration",property:"background-color",value:"#fff"}]},{type:"rule",selectors:[".ns-dark Frame",".ns-dark .nt-frame"],declarations:[{type:"declaration",property:"background-color",value:"#303030"}]},{type:"rule",selectors:["Page",".nt-page"],declarations:[{type:"declaration",property:"color",value:"#262626"},{type:"declaration",property:"background-color",value:"#fff"}]},{type:"rule",selectors:[".ns-dark Page",".ns-dark .nt-page"],declarations:[{type:"declaration",property:"color",value:"#fff"},{type:"declaration",property:"background-color",value:"#303030"}]},{type:"rule",selectors:["ActivityIndicator",".nt-activity-indicator"],declarations:[{type:"declaration",property:"width",value:"30"},{type:"declaration",property:"height",value:"30"}]},{type:"rule",selectors:["Slider",".nt-slider"],declarations:[{type:"declaration",property:"margin",value:"20 16"}]},{type:"rule",selectors:[".ns-ios Slider",".ns-ios .nt-slider"],declarations:[{type:"declaration",property:"margin",value:"10 15"}]},{type:"rule",selectors:["Slider[isEnabled=false]",".nt-slider[isEnabled=false]"],declarations:[{type:"declaration",property:"background-color",value:"#e0e0e0"},{type:"declaration",property:"color",value:"#e0e0e0"}]},{type:"rule",selectors:[".ns-android Switch",".ns-android .nt-switch"],declarations:[{type:"declaration",property:"margin",value:"14 16"}]},{type:"rule",selectors:[".ns-android Switch[isEnabled=false]",".ns-android .nt-switch[isEnabled=false]"],declarations:[{type:"declaration",property:"color",value:"#e6e6e6"}]},{type:"rule",selectors:[".ns-dark.ns-android Switch[isEnabled=false]",".ns-dark.ns-android .nt-switch[isEnabled=false]"],declarations:[{type:"declaration",property:"color",value:"#4a4a4a"}]},{type:"rule",selectors:[".ns-ios Switch",".ns-ios .nt-switch"],declarations:[{type:"declaration",property:"margin",value:"8 15"}]},{type:"rule",selectors:[".ns-ios Switch[isEnabled=false]",".ns-ios .nt-switch[isEnabled=false]"],declarations:[{type:"declaration",property:"background-color",value:"rgba(48,188,255,0.4)"}]},{type:"rule",selectors:[".ns-dark.ns-ios Switch[isEnabled=false]",".ns-dark.ns-ios .nt-switch[isEnabled=false]"],declarations:[{type:"declaration",property:"background-color",value:"rgba(99,205,255,0.4)"}]},{type:"rule",selectors:["TabView",".nt-tab-view"],declarations:[{type:"declaration",property:"tab-text-font-size",value:"14"},{type:"declaration",property:"text-transform",value:"capitalize"}]},{type:"rule",selectors:["BottomNavigation",".nt-bottom-navigation"],declarations:[{type:"declaration",property:"font-size",value:"10"}]},{type:"rule",selectors:["ListView","RadListView",".nt-list-view"],declarations:[{type:"declaration",property:"background-color",value:"transparent"}]},{type:"rule",selectors:["ListView StackLayout","RadListView StackLayout",".nt-list-view StackLayout"],declarations:[{type:"declaration",property:"padding",value:"8"}]},{type:"rule",selectors:["ListView>*","RadListView>*",".nt-list-view>*"],declarations:[{type:"declaration",property:"background-color",value:"transparent"},{type:"declaration",property:"padding",value:"8"},{type:"declaration",property:"margin",value:"0"}]},{type:"rule",selectors:["ListView>* Label","RadListView>* Label",".nt-list-view>* Label"],declarations:[{type:"declaration",property:"padding",value:"5"},{type:"declaration",property:"vertical-align",value:"center"}]},{type:"rule",selectors:["ListView .thumb","ListView .-thumb","RadListView .thumb","RadListView .-thumb",".nt-list-view .thumb",".nt-list-view .-thumb"],declarations:[{type:"declaration",property:"stretch",value:"fill"},{type:"declaration",property:"width",value:"40"},{type:"declaration",property:"height",value:"40"},{type:"declaration",property:"min-height",value:"0"},{type:"declaration",property:"margin-right",value:"16"}]},{type:"rule",selectors:["ListView.-single-col-cards Image","RadListView.-single-col-cards Image",".nt-list-view.-single-col-cards Image"],declarations:[{type:"declaration",property:"width",value:"100%"},{type:"declaration",property:"height",value:"200"}]},{type:"rule",selectors:["ListView.-two-col-cards Image","RadListView.-two-col-cards Image",".nt-list-view.-two-col-cards Image"],declarations:[{type:"declaration",property:"height",value:"100"}]},{type:"rule",selectors:[".ns-ios ListView.-two-col-cards>StackLayout",".ns-ios RadListView.-two-col-cards>StackLayout",".ns-ios .nt-list-view.-two-col-cards>StackLayout"],declarations:[{type:"declaration",property:"width",value:"50%"}]},{type:"rule",selectors:[".ns-ios ListView.-two-col-cards>StackLayout Image",".ns-ios RadListView.-two-col-cards>StackLayout Image",".ns-ios .nt-list-view.-two-col-cards>StackLayout Image"],declarations:[{type:"declaration",property:"horizontal-align",value:"left"},{type:"declaration",property:"width",value:"100%"}]},{type:"rule",selectors:["ListView.-two-lines-image Image","ListView.-single-line-image Image","RadListView.-two-lines-image Image","RadListView.-single-line-image Image",".nt-list-view.-two-lines-image Image",".nt-list-view.-single-line-image Image"],declarations:[{type:"declaration",property:"width",value:"60"},{type:"declaration",property:"height",value:"60"},{type:"declaration",property:"margin-right",value:"10"},{type:"declaration",property:"margin-bottom",value:"0"}]},{type:"rule",selectors:["ListView .-separator","RadListView .-separator",".nt-list-view .-separator"],declarations:[{type:"declaration",property:"border-bottom-width",value:"1"}]},{type:"rule",selectors:["ListView .nt-list-view__delete","RadListView .nt-list-view__delete",".nt-list-view .nt-list-view__delete"],declarations:[{type:"declaration",property:"padding",value:"0 10"}]},{type:"rule",selectors:[".ns-ios ListView .nt-list-view__delete",".ns-ios RadListView .nt-list-view__delete",".ns-ios .nt-list-view .nt-list-view__delete"],declarations:[{type:"declaration",property:"padding",value:"0 10 0 25"}]},{type:"rule",selectors:["ListView .nt-list-view__delete>Label","RadListView .nt-list-view__delete>Label",".nt-list-view .nt-list-view__delete>Label"],declarations:[{type:"declaration",property:"horizontal-align",value:"center"},{type:"declaration",property:"vertical-align",value:"center"},{type:"declaration",property:"text-transform",value:"capitalize"}]},{type:"rule",selectors:["ListView .nt-icon","RadListView .nt-icon",".nt-list-view .nt-icon"],declarations:[{type:"declaration",property:"font-size",value:"16"},{type:"declaration",property:"width",value:"56"},{type:"declaration",property:"height",value:"100%"},{type:"declaration",property:"text-align",value:"center"}]},{type:"rule",selectors:["RadListView>StackLayout"],declarations:[{type:"declaration",property:"padding",value:"0"}]},{type:"rule",selectors:["RadListView>*>*"],declarations:[{type:"declaration",property:"background-color",value:"transparent"}]},{type:"rule",selectors:["RadSideDrawer .nt-drawer__header",".nt-drawer .nt-drawer__header"],declarations:[{type:"declaration",property:"width",value:"100%"},{type:"declaration",property:"vertical-align",value:"top"},{type:"declaration",property:"padding",value:"35 0"}]},{type:"rule",selectors:["RadSideDrawer .nt-drawer__header Label",".nt-drawer .nt-drawer__header Label"],declarations:[{type:"declaration",property:"padding",value:"0"}]},{type:"rule",selectors:["RadSideDrawer .nt-drawer__header>Label",".nt-drawer .nt-drawer__header>Label"],declarations:[{type:"declaration",property:"font-size",value:"18"}]},{type:"rule",selectors:["RadSideDrawer .nt-drawer__header-image",".nt-drawer .nt-drawer__header-image"],declarations:[{type:"declaration",property:"height",value:"74"},{type:"declaration",property:"width",value:"74"},{type:"declaration",property:"border-radius",value:"50%"}]},{type:"rule",selectors:["RadSideDrawer .nt-drawer__header-footnote",".nt-drawer .nt-drawer__header-footnote"],declarations:[{type:"declaration",property:"opacity",value:".5"}]},{type:"rule",selectors:["RadSideDrawer .nt-drawer__header>Label","RadSideDrawer .nt-drawer__header-image",".nt-drawer .nt-drawer__header>Label",".nt-drawer .nt-drawer__header-image"],declarations:[{type:"declaration",property:"margin-left",value:"15"},{type:"declaration",property:"margin-right",value:"15"},{type:"declaration",property:"horizontal-align",value:"center"},{type:"declaration",property:"text-align",value:"center"}]},{type:"rule",selectors:["RadSideDrawer .nt-drawer__header.-left>Label","RadSideDrawer .nt-drawer__header.-left .nt-drawer__header-image",".nt-drawer .nt-drawer__header.-left>Label",".nt-drawer .nt-drawer__header.-left .nt-drawer__header-image"],declarations:[{type:"declaration",property:"horizontal-align",value:"left"}]},{type:"rule",selectors:["RadSideDrawer .nt-drawer__list-item",".nt-drawer .nt-drawer__list-item"],declarations:[{type:"declaration",property:"padding-left",value:"15"},{type:"declaration",property:"height",value:"48"},{type:"declaration",property:"horizontal-align",value:"left"},{type:"declaration",property:"width",value:"100%"},{type:"declaration",property:"orientation",value:"horizontal"}]},{type:"rule",selectors:["RadSideDrawer .nt-drawer__list-item Label",".nt-drawer .nt-drawer__list-item Label"],declarations:[{type:"declaration",property:"vertical-align",value:"center"}]},{type:"rule",selectors:["RadSideDrawer .nt-drawer__list-item .nt-icon",".nt-drawer .nt-drawer__list-item .nt-icon"],declarations:[{type:"declaration",property:"font-size",value:"12"},{type:"declaration",property:"width",value:"30"}]},{type:"rule",selectors:["RadSideDrawer.ns-dark .nt-drawer__header",".nt-drawer.ns-dark .nt-drawer__header"],declarations:[{type:"declaration",property:"background-color",value:"#1e1e1e"}]},{type:"rule",selectors:["RadSideDrawer.ns-dark .nt-drawer__header Label",".nt-drawer.ns-dark .nt-drawer__header Label"],declarations:[{type:"declaration",property:"color",value:"#fff"}]},{type:"rule",selectors:["Form",".nt-form"],declarations:[{type:"declaration",property:"padding",value:"16 0 10"}]},{type:"rule",selectors:["Form .-center",".nt-form .-center"],declarations:[{type:"declaration",property:"horizontal-align",value:"center"}]},{type:"rule",selectors:["Form .nt-form__or-separator",".nt-form .nt-form__or-separator"],declarations:[{type:"declaration",property:"margin",value:"20 0"}]},{type:"rule",selectors:["Form .nt-form__logo",".nt-form .nt-form__logo"],declarations:[{type:"declaration",property:"margin",value:"20 0"},{type:"declaration",property:"width",value:"50%"}]},{type:"rule",selectors:["Form .nt-form__validation-message",".nt-form .nt-form__validation-message"],declarations:[{type:"declaration",property:"margin",value:"1 0 0"},{type:"declaration",property:"padding",value:"0"},{type:"declaration",property:"height",value:"19"}]},{type:"rule",selectors:["Form .nt-form__footer",".nt-form .nt-form__footer"],declarations:[{type:"declaration",property:"padding",value:"0"},{type:"declaration",property:"horizontal-align",value:"center"}]},{type:"rule",selectors:["Form .nt-form__footer Button",".nt-form .nt-form__footer Button"],declarations:[{type:"declaration",property:"width",value:"50%"},{type:"declaration",property:"margin",value:"5"}]},{type:"rule",selectors:[".nt-input.ng-valid","TextView.ng-valid","TextField.ng-valid","PickerField.ng-valid","DatePickerField.ng-valid","TimePickerField.ng-valid","RadAutoCompleteTextView.ng-valid"],declarations:[{type:"declaration",property:"margin-bottom",value:"20"}]},{type:"rule",selectors:[".nt-input.ng-invalid.ng-dirty","TextView.ng-invalid.ng-dirty","TextField.ng-invalid.ng-dirty","PickerField.ng-invalid.ng-dirty","DatePickerField.ng-invalid.ng-dirty","TimePickerField.ng-invalid.ng-dirty","RadAutoCompleteTextView.ng-invalid.ng-dirty"],declarations:[{type:"declaration",property:"margin-bottom",value:"0"},{type:"declaration",property:"border-color",value:"#d50000"}]},{type:"rule",selectors:[".nt-input","TextView","TextField","PickerField","DatePickerField","TimePickerField","DateTimePickerFields","DataFormEditorCore","RadAutoCompleteTextView"],declarations:[{type:"declaration",property:"border-width",value:"0 0 1"},{type:"declaration",property:"border-radius",value:"0"},{type:"declaration",property:"background-color",value:"transparent"},{type:"declaration",property:"font-size",value:"12"},{type:"declaration",property:"padding",value:"8 0 4"},{type:"declaration",property:"margin",value:"5 16"}]},{type:"rule",selectors:[".-rounded-sm",".-rounded-lg",".-border"],declarations:[{type:"declaration",property:"border-width",value:"1"},{type:"declaration",property:"padding",value:"12 14"}]},{type:"rule",selectors:[".-rounded-sm"],declarations:[{type:"declaration",property:"border-radius",value:"4"}]},{type:"rule",selectors:[".-rounded-lg"],declarations:[{type:"declaration",property:"border-radius",value:"50%"}]},{type:"rule",selectors:["[isEnabled=false]"],declarations:[{type:"declaration",property:"opacity",value:".5"}]},{type:"rule",selectors:["TextView[editable=false]"],declarations:[{type:"declaration",property:"border-width",value:"0"}]},{type:"rule",selectors:["Label","DataFormEditorLabel"],declarations:[{type:"declaration",property:"padding",value:"2 0"}]},{type:"rule",selectors:["TextView"],declarations:[{type:"declaration",property:"min-height",value:"100"}]},{type:"rule",selectors:["RadAutoCompleteTextView[displayMode=Tokens]"],declarations:[{type:"declaration",property:"padding",value:"4 0 8"}]},{type:"rule",selectors:["RadAutoCompleteTextView Token"],declarations:[{type:"declaration",property:"border-radius",value:"50%"}]},{type:"rule",selectors:[".ns-android TokenClearButton"],declarations:[{type:"declaration",property:"width",value:"18"},{type:"declaration",property:"height",value:"18"},{type:"declaration",property:"border-radius",value:"50%"},{type:"declaration",property:"opacity",value:".6"}]},{type:"rule",selectors:["PickerField","DatePickerField","TimePickerField","DateTimePickerFields","DataFormEditorCore","RadAutoCompleteTextView"],declarations:[{type:"declaration",property:"background-repeat",value:"no-repeat"},{type:"declaration",property:"background-position",value:"right center"}]},{type:"rule",selectors:[".ns-ios PickerField",".ns-ios DatePickerField",".ns-ios TimePickerField",".ns-ios DateTimePickerFields",".ns-ios DataFormEditorCore",".ns-ios RadAutoCompleteTextView"],declarations:[{type:"declaration",property:"background-size",value:"28 16"}]},{type:"rule",selectors:["PropertyEditor[type='Date'] DataFormEditorCore","DatePickerField"],declarations:[{type:"declaration",property:"background-image",value:'url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAAwBAMAAAB9IEC+AAAAD1BMVEVHcEwAAAAAAAAAAAAAAADTrAj/AAAABHRSTlMAwBAgU5DCQwAAAFdJREFUSMdjYCAVuLi4oDHop5RJxAUDOCpgVcroggUIYFXKgk2pMw6lChhudXHAoZSBVkrRw26EKcUC6Kt0NAoGkVIWaFSNKh25Sgd7QURCZURCFUcLAAC2I2hEECBYPgAAAABJRU5ErkJggg==")'}]},{type:"rule",selectors:["PropertyEditor[type='Time'] DataFormEditorCore","TimePickerField"],declarations:[{type:"declaration",property:"background-image",value:'url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAAwBAMAAAB9IEC+AAAALVBMVEVHcEwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACttl6nAAAADnRSTlMAYOBAwCAQ0FCAcPCwoEZwdhsAAAE2SURBVEjHY2AYLIB1Td27d89PBRBWyQhUCALPBQiq1HsHBY8IqGX1e/fuyWRjY0sQjd8N3e/eKSaAGGxC797twGs9UCWMDVSLzwly794mwNhs9949xK2SA8UgoBUNOJVGo5oj924rTqV+EEP53sGMfYLbU28ZkJUy3MPpMaZ3aqhKk94p4PS/AKpSRpxhUPeIAVUpg95zHJEKMwOhVO4d9sjlevcMXWneuwVYlfK8c0BXyvLuAI4AmICulPNdAValfO8M0JVyvHtArFJmqiqFACopbSBWKTsssBAAV2DBowABcEUBPGIRAFfEsmImOVzJBZ4IEQBXIoQnbaQc9JBAhoED3BkGlg3hAHc2hGVuhNYn1CgySCiISCjeSCk0SSiKIQX8DGPjTsIFPAnVBimVESlV3IABAKDkz5jHIcToAAAAAElFTkSuQmCC")'}]},{type:"rule",selectors:["DateTimePickerFields"],declarations:[{type:"declaration",property:"padding",value:"0"},{type:"declaration",property:"background-image",value:'url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKgAAAAwBAMAAAB3UCypAAAALVBMVEVHcEwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACttl6nAAAADnRSTlMAQGDgwBAg0FCAcPCwoM9Ie+kAAAGcSURBVEjH5Ze/TsMwEMZD2pQWVRUZu0VijxASa8UTVJXYUXYWniDqilhgY+QBmBEjMw9RtTQlU79nICRyrDjxxYkdqYhviYe7X87/7s6WlQqAMDCgPwF15igpWhAOg9cQiD8DCtpHha7k9naYmcQeAZ1UQb/lzBmz2XoUdFFaU2ykc08WK3py3envNyCgVgPoA3CRLrhzBrybgdoJk40TqkdCxRMmg/rY5wfDWeHLBHRYCC4Je2kAeluMzcebAeg8C5S52Ij0oTb2RZeVbKsaQHu4LLpc47zBjdpI9t4rQm3Z/jeAhltxcrNYFzpgcXGoj0BzTU+wE11u8KIJHbOMyF36+NCE9vAouowk268OneBUdBlibR56dPDQTAcMXbaBZtZrCfSYHSmuEe40oeNyO6By+Glofk25VK4pDR2UE51KQqGheerjkqc+ZagvVg8iSStDWTnJRZQTZSgrfLmUCl8NlJVo/hOVEl0HbdVM1EFbtT110E4atG5ayUZNrzI0bc+fXfe+rj2v0E7zIdHJk6eTx5nluCUF1j/RDxQQPw3i9N+zAAAAAElFTkSuQmCC")'}]},{type:"rule",selectors:[".ns-ios DateTimePickerFields"],declarations:[{type:"declaration",property:"background-size",value:"56 16"}]},{type:"rule",selectors:["DateTimePickerFields .input","DateTimePickerFields DatePickerField","DateTimePickerFields TimePickerField"],declarations:[{type:"declaration",property:"background-image",value:"none"},{type:"declaration",property:"border-width",value:"0"},{type:"declaration",property:"margin",value:"0"}]},{type:"rule",selectors:[".ns-dark DateTimePickerFields .input",".ns-dark DateTimePickerFields DatePickerField",".ns-dark DateTimePickerFields TimePickerField"],declarations:[{type:"declaration",property:"background-image",value:"none"},{type:"declaration",property:"background-color",value:"transparent"}]},{type:"rule",selectors:["DateTimePickerFields TimePickerField"],declarations:[{type:"declaration",property:"margin-left",value:"-30"}]},{type:"rule",selectors:["PickerField"],declarations:[{type:"declaration",property:"background-image",value:'url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAAwBAMAAAB9IEC+AAAAGFBMVEVHcEwAAAAAAAAAAAAAAAAAAAAAAAAAAABoAtTLAAAAB3RSTlMAoPAw0BAgCEJU4wAAAEpJREFUSMdjYBgFgwUwChCtVLyQaEPLy4k1Nqm8nFhjmdWJN9Zo1NghZiwJSol3wKihA2ooCZk7hPj0x+pOdEHEEEJ88TYKBgoAAAC5JRg49rIWAAAAAElFTkSuQmCC")'}]},{type:"rule",selectors:["PickerPage.input"],declarations:[{type:"declaration",property:"padding",value:"0"},{type:"declaration",property:"margin",value:"0"}]},{type:"rule",selectors:["PickerPage ListView"],declarations:[{type:"declaration",property:"separator-color",value:"transparent"}]},{type:"rule",selectors:["PickerPage ListView>*"],declarations:[{type:"declaration",property:"height",value:"48"},{type:"declaration",property:"margin-top",value:"0"},{type:"declaration",property:"padding",value:"10 12"},{type:"declaration",property:"border-bottom-width",value:"1px"}]},{type:"rule",selectors:[".ns-dark PickerField"],declarations:[{type:"declaration",property:"background-image",value:'url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAAwBAMAAAB9IEC+AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAYUExURUdwTP///////////////////////////x1LVb4AAAAHdFJOUwCg8DDQECAIQlTjAAAASklEQVRIx2NgGAWDBTAKEK1UvJBoQ8vLiTU2qbycWGOZ1Yk31mjU2CFmLAlKiXfAqKEDaigJmTuE+PTH6k50QcQQQnzxNgoGCgAAALklGDj2shYAAAAASUVORK5CYII=")'}]},{type:"rule",selectors:[".ns-dark DatePickerField"],declarations:[{type:"declaration",property:"background-image",value:'url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAAwBAMAAAB9IEC+AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAPUExURUdwTP///////////////xPgMRoAAAAEdFJOUwDAECBTkMJDAAAAV0lEQVRIx2NgIBW4uLigMeinlEnEBQM4KmBVyuiCBQhgVcqCTakzDqUKGG51ccChlIFWStHDboQpxQLoq3Q0CgaRUhZoVI0qHblKB3tBREJlREIVRwsAALYjaEQQIFg+AAAAAElFTkSuQmCC")'}]},{type:"rule",selectors:[".ns-dark TimePickerField"],declarations:[{type:"declaration",property:"background-image",value:'url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAAwBAMAAAB9IEC+AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAtUExURUdwTP///////////////////////////////////////////////////////81e3QIAAAAOdFJOUwBg4EDAIBDQUHDwsKCA4isvJAAAATZJREFUSMdjYBgsgHV23bt3z3cGEFbJCFQIAs8FCKrUewcFjwioZfV79+7JZWNjWxCN3w1d794pJoAYbELv3q3Aaz1QJYwNVIvPCXLv3iTA2Gzn3j3ErZIDxSCgFQ04lUahmiP3bilOpX4QQ/newYx9gttTbxiQlTKcw+kxpndqqEqT3ing9L8AqlJGnGFQ94gBVSmD3nMckQozA6FU7h32yOV89wxdad67CViVcr9zQFfK8m4DjgC4gK6U910BVqV87wzQlXK8e0CsUmaqKoUAKiltIFYpOyywEABXYMGjAAFwRQE8YhEAV8SyYiY5XMkFnggRAFcihCdtpBz0kECGgQPcGQaWDeEAdzaEZW6E1ifUKDJIKIhIKN5IKTRJKIohBfwNY+NewgU8CdUGKZURKVXcgAEAq1LPmF1qDewAAAAASUVORK5CYII=")'}]},{type:"rule",selectors:[".ns-dark DateTimePickerFields"],declarations:[{type:"declaration",property:"background-image",value:'url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKgAAAAwBAMAAAB3UCypAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAtUExURUdwTP///////////////////////////////////////////////////////81e3QIAAAAOdFJOUwBAYODAECDQUHDwsKCAaxMi1gAAAZxJREFUSMfll89Kw0AQxmPa1EppMQ9QCHgPIngtPkEpeJecPfkEoWdB8O5dPHr1JYrePLY2NZfyPYMxYbNkk51sshuo+F2yh5lfZv/NzFpWKgDCwID+BNSZo6RoQTgMnkIgfgsoaB8VupLb22FmEnsEdFIF/ZYzZ8xm61HQRWlNsZHOPVms6MN1p7/fgIBaDaD3wEW64M4Z8GIGaidMNk6oHgkVT5gM6mOfHwxnhS8T0GEhuCTspQHobTE2H88GoPMsUOZiI9KH2tgXXVayrWoA7eGy6HKN8wY3aiPZe68ItWX73wAabsXJzWJd6IDFxaE+As01PcFOdLnBoyZ0xDIid+njVRPaw7voMpZsvzp0glPRZYi1eejRwUMzHTB02QaaWa8l0GN2pLjGuNOEjsrtgMrhp6H5NeVSuaY0dFBOdCoJhYbmqY9LnvqUob5YPYgkrQxl5SQXUU6Uoazw5VIqfDVQVqL5T1RKdB20VTNRB23V9tRBO2nQumklGzW9ytC0Pf903Ye69rxCO82HRCdPnk4eZ5bjlhRY/0Q/Hn4/DfXSncYAAAAASUVORK5CYII=")'}]},{type:"rule",selectors:[".ns-dark PickerField",".ns-dark DatePickerField",".ns-dark TimePickerField",".ns-dark DateTimePickerFields",".ns-dark RadAutoCompleteTextView"],declarations:[{type:"declaration",property:"class",value:"ns-dark"}]},{type:"rule",selectors:["RadDataForm PropertyEditor"],declarations:[{type:"declaration",property:"padding",value:"5 0 0"}]},{type:"rule",selectors:["FlexboxLayout.nt-input","GridLayout.nt-input","StackLayout.nt-input"],declarations:[{type:"declaration",property:"border-width",value:"0"},{type:"declaration",property:"border-radius",value:"0"},{type:"declaration",property:"padding",value:"0"}]},{type:"rule",selectors:["DataFormEditorLabel",".nt-input>.nt-label",".nt-input>Label"],declarations:[{type:"declaration",property:"font-size",value:"12"},{type:"declaration",property:"color",value:"#bababa"}]},{type:"rule",selectors:["DataFormEditorLabel",".nt-input>.nt-label",".nt-input>.nt-input",".nt-input>Label",".nt-input>TextView",".nt-input>TextField",".nt-input>PickerField",".nt-input>DatePickerField",".nt-input>TimePickerField",".nt-input>DateTimePickerFields",".nt-input>RadAutoCompleteTextView"],declarations:[{type:"declaration",property:"margin",value:"0"}]},{type:"rule",selectors:[".nt-input.-sides"],declarations:[{type:"declaration",property:"margin-bottom",value:"10"}]},{type:"rule",selectors:[".nt-input>.nt-icon"],declarations:[{type:"declaration",property:"font-size",value:"16"},{type:"declaration",property:"vertical-align",value:"center"},{type:"declaration",property:"horizontal-align",value:"right"},{type:"declaration",property:"margin",value:"-15 10 0 0"}]},{type:"rule",selectors:["ActionBar",".nt-action-bar"],declarations:[{type:"declaration",property:"font-size",value:"14"}]},{type:"rule",selectors:[".ns-ios ActionBar",".ns-ios .nt-action-bar"],declarations:[{type:"declaration",property:"margin-left",value:"20"},{type:"declaration",property:"vertical-align",value:"stretch"},{type:"declaration",property:"horizontal-align",value:"stretch"}]},{type:"rule",selectors:[".ns-landscape.ns-ios ActionBar",".ns-landscape.ns-ios .nt-action-bar"],declarations:[{type:"declaration",property:"margin-left",value:"100"},{type:"declaration",property:"padding",value:"0 5"}]},{type:"rule",selectors:["ActionBar Label","ActionBar Button","ActionBar .nt-action-bar__item",".nt-action-bar Label",".nt-action-bar Button",".nt-action-bar .nt-action-bar__item"],declarations:[{type:"declaration",property:"android-elevation",value:"0"},{type:"declaration",property:"font-size",value:"12"},{type:"declaration",property:"padding",value:"12 10 12 0"},{type:"declaration",property:"margin",value:"0"},{type:"declaration",property:"min-width",value:"0"},{type:"declaration",property:"width",value:"auto"},{type:"declaration",property:"border-width",value:"0"},{type:"declaration",property:"text-transform",value:"none"},{type:"declaration",property:"font-weight",value:"normal"}]},{type:"rule",selectors:["ActionBar Label:active","ActionBar Button:active","ActionBar .nt-action-bar__item:active",".nt-action-bar Label:active",".nt-action-bar Button:active",".nt-action-bar .nt-action-bar__item:active"],declarations:[{type:"declaration",property:"opacity",value:".7"}]},{type:"rule",selectors:["ActionBar>Label",".nt-action-bar>Label"],declarations:[{type:"declaration",property:"font-weight",value:"bold"},{type:"declaration",property:"font-size",value:"14"}]},{type:"rule",selectors:[".ns-statusbar-transparent Page>ActionBar",".ns-statusbar-transparent Page>.nt-action-bar"],declarations:[{type:"declaration",property:"padding-top",value:"24"}]},{type:"rule",selectors:[".ns-android__19.ns-statusbar-transparent Page>ActionBar",".ns-modal.ns-statusbar-transparent Page>ActionBar",".ns-android__19.ns-statusbar-transparent Page>.nt-action-bar",".ns-modal.ns-statusbar-transparent Page>.nt-action-bar"],declarations:[{type:"declaration",property:"padding-top",value:"0"}]},{type:"rule",selectors:[".ns-android ActionBar Button",".ns-android ActionBar .nt-button",".ns-android .nt-action-bar Button",".ns-android .nt-action-bar .nt-button"],declarations:[{type:"declaration",property:"padding",value:"0 6"}]},{type:"rule",selectors:[".ns-android ActionBar>Label",".ns-android .nt-action-bar>Label"],declarations:[{type:"declaration",property:"width",value:"100%"}]},{type:"rule",selectors:["ActionBar>Label","ActionBar>GridLayout Label",".nt-action-bar>Label",".nt-action-bar>GridLayout Label"],declarations:[{type:"declaration",property:"font-size",value:"14"},{type:"declaration",property:"vertical-align",value:"center"},{type:"declaration",property:"text-align",value:"center"}]},{type:"rule",selectors:["ActionBar>GridLayout",".nt-action-bar>GridLayout"],declarations:[{type:"declaration",property:"width",value:"100%"},{type:"declaration",property:"height",value:"100%"}]},{type:"rule",selectors:["ActionBar>GridLayout>StackLayout",".nt-action-bar>GridLayout>StackLayout"],declarations:[{type:"declaration",property:"padding",value:"0"},{type:"declaration",property:"horizontal-align",value:"left"}]},{type:"rule",selectors:["ActionBar>GridLayout Button",".nt-action-bar>GridLayout Button"],declarations:[{type:"declaration",property:"padding",value:"12 10"},{type:"declaration",property:"horizontal-align",value:"left"}]},{type:"rule",selectors:['ActionBar>GridLayout [col="2"]','.nt-action-bar>GridLayout [col="2"]'],declarations:[{type:"declaration",property:"horizontal-align",value:"right"}]},{type:"rule",selectors:[".ns-android ActionBar>GridLayout",".ns-android .nt-action-bar>GridLayout"],declarations:[{type:"declaration",property:"padding",value:"0 4"}]},{type:"rule",selectors:[".ns-android ActionBar>GridLayout Button",".ns-android .nt-action-bar>GridLayout Button"],declarations:[{type:"declaration",property:"padding",value:"12 16"},{type:"declaration",property:"margin",value:"0"}]},{type:"rule",selectors:["Page",".ns-modal"],declarations:[{type:"declaration",property:"font-family",value:'"Orkney-Regular"'}]},{type:"rule",selectors:[".orkm"],declarations:[{type:"declaration",property:"font-family",value:'"Orkney-Medium"'}]},{type:"rule",selectors:[".bx"],declarations:[{type:"declaration",property:"font-family",value:'"boxicons"'},{type:"declaration",property:"font-size",value:"24"},{type:"declaration",property:"vertical-alignment",value:"center"}]},{type:"rule",selectors:[".bx.small"],declarations:[{type:"declaration",property:"padding",value:"0"},{type:"declaration",property:"font-size",value:"16"}]},{type:"rule",selectors:[".ns-light Page",".ns-light ActionBar",".ns-light SearchBar",".ns-light Tabs",".ns-light TabStripItem",".ns-light ListPicker"],declarations:[{type:"declaration",property:"color",value:"#212529"},{type:"declaration",property:"background",value:"#f1f3f5"}]},{type:"rule",selectors:[".ns-light MDRipple",".ns-light MDButton"],declarations:[{type:"declaration",property:"ripple-color",value:"rgba(134,142,150,0.2)"}]},{type:"rule",selectors:[".ns-light .hr"],declarations:[{type:"declaration",property:"border-color",value:"#dee2e6"}]},{type:"rule",selectors:[".ns-light .sd",".ns-light .fieldLabel"],declarations:[{type:"declaration",property:"background",value:"#f1f3f5"}]},{type:"rule",selectors:[".ns-light .urlCard",".ns-light .textCard",".ns-light .overviewItem",".ns-light .recipeItem"],declarations:[{type:"declaration",property:"background",value:"white"}]},{type:"rule",selectors:[".ns-light TextField.combinationToken"],declarations:[{type:"declaration",property:"background",value:"#dee2e6"}]},{type:"rule",selectors:[".ns-light .sd-item",".ns-light .sd-group-header",".ns-light .time .bx"],declarations:[{type:"declaration",property:"color",value:"#343a40"}]},{type:"rule",selectors:[".ns-light .option .bx",".ns-light .option .info"],declarations:[{type:"declaration",property:"color",value:"#495057"}]},{type:"rule",selectors:[".ns-light .imageHolder"],declarations:[{type:"declaration",property:"color",value:"#ced4da"},{type:"declaration",property:"background",value:"#dee2e6"}]},{type:"rule",selectors:[".ns-light .count",".ns-light .marker"],declarations:[{type:"declaration",property:"color",value:"#f1f3f5"},{type:"declaration",property:"background",value:"#212529"}]},{type:"rule",selectors:[".ns-light .instruction",".ns-light .dayContainer"],declarations:[{type:"declaration",property:"border-color",value:"#212529"}]},{type:"rule",selectors:[".ns-light MDProgress"],declarations:[{type:"declaration",property:"progress-background-color",value:"#ced4da"}]},{type:"rule",selectors:[".ns-light MDFloatingActionButton"],declarations:[{type:"declaration",property:"color",value:"white"}]},{type:"rule",selectors:[".ns-light .appIconContainer"],declarations:[{type:"declaration",property:"background",value:"#ff5200"}]},{type:"rule",selectors:[".ns-dark Page",".ns-dark ActionBar",".ns-dark SearchBar",".ns-dark Tabs",".ns-dark TabStripItem",".ns-dark ListPicker"],declarations:[{type:"declaration",property:"color",value:"#f1f3f5"},{type:"declaration",property:"background",value:"#212529"}]},{type:"rule",selectors:[".ns-dark MDRipple",".ns-dark MDButton"],declarations:[{type:"declaration",property:"ripple-color",value:"rgba(206,212,218,0.1)"}]},{type:"rule",selectors:[".ns-dark .hr"],declarations:[{type:"declaration",property:"border-color",value:"#111"}]},{type:"rule",selectors:[".ns-dark .sd",".ns-dark .fieldLabel"],declarations:[{type:"declaration",property:"background",value:"#212529"}]},{type:"rule",selectors:[".ns-dark .urlCard",".ns-dark .textCard",".ns-dark .overviewItem",".ns-dark .recipeItem",".ns-dark TextField.combinationToken"],declarations:[{type:"declaration",property:"background",value:"#343a40"}]},{type:"rule",selectors:[".ns-dark .sd-item",".ns-dark .sd-group-header",".ns-dark .time .bx"],declarations:[{type:"declaration",property:"color",value:"#dee2e6"}]},{type:"rule",selectors:[".ns-dark .option .bx",".ns-dark .option .info"],declarations:[{type:"declaration",property:"color",value:"#adb5bd"}]},{type:"rule",selectors:[".ns-dark .imageHolder"],declarations:[{type:"declaration",property:"color",value:"#343a40"},{type:"declaration",property:"background",value:"#111"}]},{type:"rule",selectors:[".ns-dark .count",".ns-dark .marker"],declarations:[{type:"declaration",property:"color",value:"#212529"},{type:"declaration",property:"background",value:"#f1f3f5"}]},{type:"rule",selectors:[".ns-dark .instruction",".ns-dark .dayContainer"],declarations:[{type:"declaration",property:"border-color",value:"#f1f3f5"}]},{type:"rule",selectors:[".ns-dark MDProgress"],declarations:[{type:"declaration",property:"progress-background-color",value:"#868e96"}]},{type:"rule",selectors:[".ns-dark MDFloatingActionButton"],declarations:[{type:"declaration",property:"color",value:"#212529"}]},{type:"rule",selectors:[".ns-dark .appIconContainer"],declarations:[{type:"declaration",property:"background",value:"#ff5200"}]},{type:"rule",selectors:["TextField","TextView","TimePickerField"],declarations:[{type:"declaration",property:"width",value:"100%"},{type:"declaration",property:"border-width",value:"1"},{type:"declaration",property:"font-size",value:"14"},{type:"declaration",property:"padding",value:"14 14 13"},{type:"declaration",property:"margin",value:"8 0 0 0"},{type:"declaration",property:"border-radius",value:"4"},{type:"declaration",property:"border-color",value:"#868e96"},{type:"declaration",property:"placeholder-color",value:"#868e96"}]},{type:"rule",selectors:["TextView"],declarations:[{type:"declaration",property:"line-height",value:"12"}]},{type:"rule",selectors:["SearchBar"],declarations:[{type:"declaration",property:"font-family",value:'"Orkney-Regular"'},{type:"declaration",property:"font-size",value:"16"},{type:"declaration",property:"text-field-hint-color",value:"#868e96"}]},{type:"rule",selectors:["TabView"],declarations:[{type:"declaration",property:"tab-text-color",value:"#868e96"}]},{type:"rule",selectors:[".inputField"],declarations:[{type:"declaration",property:"margin-bottom",value:"4"}]},{type:"rule",selectors:[".fieldLabel"],declarations:[{type:"declaration",property:"font-size",value:"12"},{type:"declaration",property:"margin-left",value:"12"},{type:"declaration",property:"padding",value:"0 4"}]},{type:"rule",selectors:[".progressContainer"],declarations:[{type:"declaration",property:"width",value:"100%"}]},{type:"rule",selectors:[".text-btn",".group-header",".category","MDActivityIndicator"],declarations:[{type:"declaration",property:"color",value:"#ff5200"}]},{type:"rule",selectors:["MDProgress"],declarations:[{type:"declaration",property:"progress-color",value:"#ff5200"}]},{type:"rule",selectors:["ActionBar"],declarations:[{type:"declaration",property:"margin",value:"0"},{type:"declaration",property:"padding",value:"6 8"}]},{type:"rule",selectors:["ActionBar GridLayout"],declarations:[{type:"declaration",property:"padding",value:"0"},{type:"declaration",property:"margin",value:"0"}]},{type:"rule",selectors:["ActionBar MDButton.bx"],declarations:[{type:"declaration",property:"padding",value:"0"},{type:"declaration",property:"margin",value:"0"}]},{type:"rule",selectors:["ActionBar MDButton.bx.flip"],declarations:[{type:"declaration",property:"transform",value:"scaleX(-1)"}]},{type:"rule",selectors:["ActionBar .title"],declarations:[{type:"declaration",property:"padding-left",value:"12"},{type:"declaration",property:"text-align",value:"left"},{type:"declaration",property:"font-size",value:"18"}]},{type:"rule",selectors:[".sd"],declarations:[{type:"declaration",property:"padding",value:"8"}]},{type:"rule",selectors:[".sd-item"],declarations:[{type:"declaration",property:"border-radius",value:"4"},{type:"declaration",property:"height",value:"48"},{type:"declaration",property:"vertical-alignment",value:"center"}]},{type:"rule",selectors:[".sd-item .bx"],declarations:[{type:"declaration",property:"font-size",value:"24"}]},{type:"rule",selectors:[".sd-item.selected-sd-item"],declarations:[{type:"declaration",property:"color",value:"#ff5200"},{type:"declaration",property:"background",value:"rgba(255,82,0,0.1)"}]},{type:"rule",selectors:[".sd-item.selected-sd-item MDRipple"],declarations:[{type:"declaration",property:"ripple-color",value:"transparent"}]},{type:"rule",selectors:[".sd-item Label"],declarations:[{type:"declaration",property:"padding",value:"2 16 0 0"},{type:"declaration",property:"font-size",value:"16"},{type:"declaration",property:"vertical-alignment",value:"center"}]},{type:"rule",selectors:[".sd-item Label.bx"],declarations:[{type:"declaration",property:"padding",value:"0 0 0 16"}]},{type:"rule",selectors:[".sd-item MDRipple"],declarations:[{type:"declaration",property:"padding",value:"0 16"}]},{type:"rule",selectors:[".sd-group-header"],declarations:[{type:"declaration",property:"width",value:"100%"},{type:"declaration",property:"padding",value:"8"}]},{type:"rule",selectors:["MDRipple"],declarations:[{type:"declaration",property:"border-radius",value:"4"}]},{type:"rule",selectors:["MDButton"],declarations:[{type:"declaration",property:"padding",value:"8"},{type:"declaration",property:"min-width",value:"0"},{type:"declaration",property:"min-height",value:"0"}]},{type:"rule",selectors:["MDButton.bx"],declarations:[{type:"declaration",property:"padding",value:"0"},{type:"declaration",property:"width",value:"48"},{type:"declaration",property:"height",value:"48"},{type:"declaration",property:"margin",value:"0 8 0 0"},{type:"declaration",property:"border-radius",value:"99"}]},{type:"rule",selectors:[".emptyStateContainer"],declarations:[{type:"declaration",property:"width",value:"100%"},{type:"declaration",property:"height",value:"100%"}]},{type:"rule",selectors:[".emptyState"],declarations:[{type:"declaration",property:"line-height",value:"8"},{type:"declaration",property:"padding",value:"0 32"},{type:"declaration",property:"text-align",value:"center"},{type:"declaration",property:"font-size",value:"16"},{type:"declaration",property:"horizontal-alignment",value:"center"}]},{type:"rule",selectors:[".emptyState .icon"],declarations:[{type:"declaration",property:"font-size",value:"64"},{type:"declaration",property:"text-align",value:"center"},{type:"declaration",property:"color",value:"#adb5bd"},{type:"declaration",property:"margin-bottom",value:"16"}]},{type:"rule",selectors:[".emptyState .logo"],declarations:[{type:"declaration",property:"width",value:"64"},{type:"declaration",property:"margin-bottom",value:"16"}]},{type:"rule",selectors:[".emptyState .title"],declarations:[{type:"declaration",property:"font-size",value:"20"},{type:"declaration",property:"text-align",value:"center"},{type:"declaration",property:"padding",value:"0"},{type:"declaration",property:"margin",value:"0"},{type:"declaration",property:"horizontal-alignment",value:"center"}]},{type:"rule",selectors:[".emptyState .title .bx"],declarations:[{type:"declaration",property:"font-size",value:"24"},{type:"declaration",property:"vertical-alignment",value:"center"}]},{type:"rule",selectors:["RadListView"],declarations:[{type:"declaration",property:"margin",value:"0 0 128"},{type:"declaration",property:"font-size",value:"16"}]},{type:"rule",selectors:[".recipeItem"],declarations:[{type:"declaration",property:"margin",value:"8 16"},{type:"declaration",property:"border-radius",value:"4"}]},{type:"rule",selectors:[".recipeItem .recipeInfo"],declarations:[{type:"declaration",property:"margin",value:"4"}]},{type:"rule",selectors:[".recipeItem .recipeInfo .category",".recipeItem .recipeInfo .time"],declarations:[{type:"declaration",property:"font-size",value:"12"},{type:"declaration",property:"padding",value:"0"},{type:"declaration",property:"margin",value:"0"}]},{type:"rule",selectors:[".recipeItem .recipeInfo .title"],declarations:[{type:"declaration",property:"margin",value:"0"},{type:"declaration",property:"padding",value:"4 0"}]},{type:"rule",selectors:[".recipeItem .recipeInfo .timeContainer"],declarations:[{type:"declaration",property:"padding",value:"0"}]},{type:"rule",selectors:[".recipeItem .recipeInfo .timeContainer .time"],declarations:[{type:"declaration",property:"padding",value:"0 0 0 4"}]},{type:"rule",selectors:[".imageHolder"],declarations:[{type:"declaration",property:"vertical-alignment",value:"center"}]},{type:"rule",selectors:[".imageHolder.card"],declarations:[{type:"declaration",property:"border-radius",value:"4 0 0 4"}]},{type:"rule",selectors:[".imageHolder.card Image"],declarations:[{type:"declaration",property:"border-radius",value:"4 0 0 4"}]},{type:"rule",selectors:[".swipe-item"],declarations:[{type:"declaration",property:"margin",value:"0 8"},{type:"declaration",property:"background",value:"#c92a2a"},{type:"declaration",property:"color",value:"#fff"},{type:"declaration",property:"height",value:"128"},{type:"declaration",property:"border-radius",value:"4"}]},{type:"rule",selectors:[".group-header"],declarations:[{type:"declaration",property:"text-transform",value:"uppercase"},{type:"declaration",property:"padding",value:"8"}]},{type:"rule",selectors:[".main-container"],declarations:[{type:"declaration",property:"padding",value:"8 8 88"}]},{type:"rule",selectors:[".main-container .option"],declarations:[{type:"declaration",property:"font-size",value:"16"}]},{type:"rule",selectors:[".main-container .option .bx"],declarations:[{type:"declaration",property:"margin",value:"11 24 11 16"}]},{type:"rule",selectors:[".main-container .option .info"],declarations:[{type:"declaration",property:"font-size",value:"12"},{type:"declaration",property:"line-height",value:"4"}]},{type:"rule",selectors:[".main-container .option StackLayout"],declarations:[{type:"declaration",property:"margin",value:"9 24 9 0"}]},{type:"rule",selectors:[".appIconContainer"],declarations:[{type:"declaration",property:"background",value:"#ff5200"},{type:"declaration",property:"padding",value:"24 0"},{type:"declaration",property:"width",value:"100%"},{type:"declaration",property:"border-radius",value:"4"}]},{type:"rule",selectors:[".appIconContainer .appIcon"],declarations:[{type:"declaration",property:"height",value:"128"}]},{type:"rule",selectors:[".viewRecipe .category",".viewRecipe .time",".viewRecipe .ingredient"],declarations:[{type:"declaration",property:"font-size",value:"16"}]},{type:"rule",selectors:[".viewRecipe .category"],declarations:[{type:"declaration",property:"margin",value:"0 8"}]},{type:"rule",selectors:[".viewRecipe .time"],declarations:[{type:"declaration",property:"margin",value:"0 8"}]},{type:"rule",selectors:[".viewRecipe .time .bx"],declarations:[{type:"declaration",property:"vertical-align",value:"top"}]},{type:"rule",selectors:[".viewRecipe .title"],declarations:[{type:"declaration",property:"font-size",value:"22"},{type:"declaration",property:"line-height",value:"6"}]},{type:"rule",selectors:[".viewRecipe .overviewContainer"],declarations:[{type:"declaration",property:"margin-top",value:"12"}]},{type:"rule",selectors:[".viewRecipe .overviewContainer .overviewItem"],declarations:[{type:"declaration",property:"border-radius",value:"4"},{type:"declaration",property:"margin",value:"8"},{type:"declaration",property:"android-elevation",value:"1"}]},{type:"rule",selectors:[".viewRecipe .overviewContainer .overviewItem .bx"],declarations:[{type:"declaration",property:"padding",value:"12 0 0 12"},{type:"declaration",property:"color",value:"#868e96"},{type:"declaration",property:"horizontal-alignment",value:"left"}]},{type:"rule",selectors:[".viewRecipe .overviewContainer .overviewItem .itemCount"],declarations:[{type:"declaration",property:"font-size",value:"16"},{type:"declaration",property:"padding",value:"8 12 12"}]},{type:"rule",selectors:[".viewRecipe .ingredient"],declarations:[{type:"declaration",property:"line-height",value:"6"},{type:"declaration",property:"padding-bottom",value:"0"}]},{type:"rule",selectors:[".viewRecipe .count"],declarations:[{type:"declaration",property:"width",value:"24"},{type:"declaration",property:"height",value:"24"},{type:"declaration",property:"padding-top",value:"4%"},{type:"declaration",property:"margin",value:"0 0 0 8"},{type:"declaration",property:"text-align",value:"center"},{type:"declaration",property:"border-radius",value:"99"}]},{type:"rule",selectors:[".viewRecipe .instruction"],declarations:[{type:"declaration",property:"font-size",value:"16"},{type:"declaration",property:"line-height",value:"6"},{type:"declaration",property:"padding",value:"1 0 24 36"},{type:"declaration",property:"margin",value:"0 0 0 19"},{type:"declaration",property:"border-width",value:"0 0 0 2"}]},{type:"rule",selectors:[".viewRecipe .instruction.noBorder"],declarations:[{type:"declaration",property:"border-color",value:"transparent"}]},{type:"rule",selectors:[".viewRecipe .urlCard"],declarations:[{type:"declaration",property:"margin",value:"8 16"},{type:"declaration",property:"border-radius",value:"4"},{type:"declaration",property:"font-size",value:"16"}]},{type:"rule",selectors:[".viewRecipe .urlCard .bx"],declarations:[{type:"declaration",property:"font-size",value:"24"}]},{type:"rule",selectors:[".viewRecipe .urlCard .link"],declarations:[{type:"declaration",property:"padding",value:"13 16 13 11"},{type:"declaration",property:"margin",value:"0"},{type:"declaration",property:"line-height",value:"6"}]},{type:"rule",selectors:[".viewRecipe .urlCard .linkIcon"],declarations:[{type:"declaration",property:"padding",value:"0 0 0 12"}]},{type:"rule",selectors:[".viewRecipe .textCard"],declarations:[{type:"declaration",property:"font-size",value:"16"},{type:"declaration",property:"line-height",value:"6"},{type:"declaration",property:"padding",value:"13 16"},{type:"declaration",property:"margin",value:"8 16"},{type:"declaration",property:"border-radius",value:"4"}]},{type:"rule",selectors:["#btnFabContainer"],declarations:[{type:"declaration",property:"z-index",value:"100"},{type:"declaration",property:"width",value:"100%"},{type:"declaration",property:"height",value:"100%"}]},{type:"rule",selectors:["MDFloatingActionButton"],declarations:[{type:"declaration",property:"width",value:"56"},{type:"declaration",property:"height",value:"56"},{type:"declaration",property:"margin",value:"16"},{type:"declaration",property:"background",value:"#ff5200"},{type:"declaration",property:"ripple-color",value:"#ff864d"}]},{type:"rule",selectors:[".sectionTitle"],declarations:[{type:"declaration",property:"font-size",value:"20"}]},{type:"rule",selectors:[".text-btn"],declarations:[{type:"declaration",property:"font-size",value:"14"},{type:"declaration",property:"horizontal-alignment",value:"left"},{type:"declaration",property:"padding",value:"12"},{type:"declaration",property:"margin",value:"8 0 0 0"},{type:"declaration",property:"min-width",value:"0"}]},{type:"rule",selectors:["MDButton.closeBtn"],declarations:[{type:"declaration",property:"margin",value:"16 0 0"},{type:"declaration",property:"width",value:"32"},{type:"declaration",property:"height",value:"32"},{type:"declaration",property:"min-width",value:"0"},{type:"declaration",property:"vertical-alignment",value:"top"}]},{type:"rule",selectors:[".dayPlan"],declarations:[{type:"declaration",property:"padding",value:"0 0 88"},{type:"declaration",property:"width",value:"100%"}]},{type:"rule",selectors:[".dayPlan .plansContainer"],declarations:[{type:"declaration",property:"padding",value:"8 4"},{type:"declaration",property:"color",value:"#212529"}]},{type:"rule",selectors:[".dayPlan .plansContainer.breakfast"],declarations:[{type:"declaration",property:"background",value:"#ffb180"}]},{type:"rule",selectors:[".dayPlan .plansContainer.lunch"],declarations:[{type:"declaration",property:"background",value:"#ceff80"}]},{type:"rule",selectors:[".dayPlan .plansContainer.dinner"],declarations:[{type:"declaration",property:"background",value:"#80ceff"}]},{type:"rule",selectors:[".dayPlan .plansContainer.snacks"],declarations:[{type:"declaration",property:"background",value:"#b180ff"}]},{type:"rule",selectors:[".dayPlan .plansContainer .periodLabel"],declarations:[{type:"declaration",property:"text-transform",value:"uppercase"},{type:"declaration",property:"vertical-alignment",value:"center"},{type:"declaration",property:"font-size",value:"14"},{type:"declaration",property:"padding",value:"0 0 0 16"}]},{type:"rule",selectors:[".dayPlan .plansContainer .recipes"],declarations:[{type:"declaration",property:"margin",value:"4 8 4"}]},{type:"rule",selectors:[".dayPlan .plansContainer .recipes .recipeTitle"],declarations:[{type:"declaration",property:"font-size",value:"14"},{type:"declaration",property:"padding",value:"6 8"},{type:"declaration",property:"line-height",value:"4"}]},{type:"rule",selectors:[".dayPlan .plansContainer .recipes .closeBtn"],declarations:[{type:"declaration",property:"margin",value:"0 8"},{type:"declaration",property:"vertical-alignment",value:"top"}]},{type:"rule",selectors:[".dayPlan .plansContainer MDRipple",".dayPlan .plansContainer MDButton"],declarations:[{type:"declaration",property:"ripple-color",value:"rgba(134,142,150,0.2)"}]},{type:"rule",selectors:[".dialogContainer"],declarations:[{type:"declaration",property:"max-width",value:"480"},{type:"declaration",property:"width",value:"100%"},{type:"declaration",property:"color",value:"#212529"},{type:"declaration",property:"background",value:"#f1f3f5"},{type:"declaration",property:"font-size",value:"16"}]},{type:"rule",selectors:[".dialogContainer.dark"],declarations:[{type:"declaration",property:"color",value:"#f1f3f5"},{type:"declaration",property:"background",value:"#212529"}]},{type:"rule",selectors:[".dialogContainer .dialogTitle"],declarations:[{type:"declaration",property:"line-height",value:"6"},{type:"declaration",property:"padding",value:"24 24 16"},{type:"declaration",property:"font-size",value:"20"}]},{type:"rule",selectors:[".dialogContainer .dialogInput"],declarations:[{type:"declaration",property:"padding",value:"0 24 16"}]},{type:"rule",selectors:[".dialogContainer .dialogDescription"],declarations:[{type:"declaration",property:"line-height",value:"6"},{type:"declaration",property:"padding",value:"0 24 8"}]},{type:"rule",selectors:[".dialogContainer .actionItem"],declarations:[{type:"declaration",property:"letter-spacing",value:"0"},{type:"declaration",property:"text-transform",value:"none"},{type:"declaration",property:"line-height",value:"6"},{type:"declaration",property:"padding",value:"13 24"},{type:"declaration",property:"margin",value:"0"}]},{type:"rule",selectors:[".dialogContainer .actionsContainer"],declarations:[{type:"declaration",property:"padding",value:"8"}]},{type:"rule",selectors:[".dialogContainer .action"],declarations:[{type:"declaration",property:"font-size",value:"12"},{type:"declaration",property:"padding",value:"12"},{type:"declaration",property:"min-width",value:"0"},{type:"declaration",property:"color",value:"#ff7043"}]},{type:"rule",selectors:[".dialogContainer MDButton.actionIcon"],declarations:[{type:"declaration",property:"width",value:"auto"},{type:"declaration",property:"height",value:"auto"},{type:"declaration",property:"min-width",value:"0"},{type:"declaration",property:"padding",value:"16 24"},{type:"declaration",property:"border-radius",value:"4"},{type:"declaration",property:"letter-spacing",value:"0"},{type:"declaration",property:"text-transform",value:"none"},{type:"declaration",property:"margin",value:"0 16 16"}]},{type:"rule",selectors:["MDActivityIndicator"],declarations:[{type:"declaration",property:"width",value:"24"},{type:"declaration",property:"height",value:"24"},{type:"declaration",property:"margin",value:"16 12"}]},{type:"rule",selectors:[".bounce-enter-active"],declarations:[{type:"declaration",property:"animation-name",value:"bounce-in"},{type:"declaration",property:"animation-duration",value:"1s"},{type:"declaration",property:"animation-fill-mode",value:"forwards"},{type:"declaration",property:"animation-timing-function",value:"ease-in-out"}]},{type:"rule",selectors:[".bounce-leave-active"],declarations:[{type:"declaration",property:"animation-name",value:"bounce-out"},{type:"declaration",property:"animation-duration",value:"0.25s"},{type:"declaration",property:"animation-fill-mode",value:"forwards"}]},{type:"keyframes",name:"bounce-in",keyframes:[{type:"keyframe",values:["0%"],declarations:[{type:"declaration",property:"transform",value:"scale(0)"},{type:"declaration",property:"opacity",value:"0"}]},{type:"keyframe",values:["25%"],declarations:[{type:"declaration",property:"transform",value:"scale(1.2)"},{type:"declaration",property:"opacity",value:"1"}]},{type:"keyframe",values:["50%"],declarations:[{type:"declaration",property:"transform",value:"scale(0.9)"}]},{type:"keyframe",values:["75%"],declarations:[{type:"declaration",property:"transform",value:"scale(1.1)"}]},{type:"keyframe",values:["100%"],declarations:[{type:"declaration",property:"transform",value:"scale(1)"}]}]},{type:"keyframes",name:"bounce-out",keyframes:[{type:"keyframe",values:["0%"],declarations:[{type:"declaration",property:"transform",value:"scale(1)"}]},{type:"keyframe",values:["100%"],declarations:[{type:"declaration",property:"transform",value:"scale(0)"},{type:"declaration",property:"opacity",value:"0"}]}]},{type:"rule",selectors:[".dolly-enter-active"],declarations:[{type:"declaration",property:"animation-name",value:"dolly"},{type:"declaration",property:"animation-duration",value:"1s"},{type:"declaration",property:"animation-delay",value:"0.25s"},{type:"declaration",property:"animation-fill-mode",value:"forwards"},{type:"declaration",property:"animation-timing-function",value:"ease-in-out"}]},{type:"rule",selectors:[".dolly-leave-active"],declarations:[{type:"declaration",property:"opacity",value:"0"}]},{type:"keyframes",name:"dolly",keyframes:[{type:"keyframe",values:["0%"],declarations:[{type:"declaration",property:"transform",value:"rotate(20deg)"}]},{type:"keyframe",values:["25%"],declarations:[{type:"declaration",property:"transform",value:"rotate(-20deg)"}]},{type:"keyframe",values:["50%"],declarations:[{type:"declaration",property:"transform",value:"rotate(10deg)"}]},{type:"keyframe",values:["75%"],declarations:[{type:"declaration",property:"transform",value:"rotate(-10deg)"}]},{type:"keyframe",values:["100%"],declarations:[{type:"declaration",property:"transform",value:"rotate(0deg)"}]}]}],parsingErrors:[]}};0},189:function(e,t,r){"use strict";var render=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("Page",{attrs:{actionBarHidden:"true",androidStatusBarBackground:"Light"==e.appTheme?"#f1f3f5":"#212529"},on:{loaded:e.onPageLoad,unloaded:e.onPageUnload}},[r("RadSideDrawer",{ref:"drawer",attrs:{allowEdgeSwipe:"true",showOverNavigation:"true",id:"sideDrawer",drawerContentSize:"270",gesturesEnabled:"true",drawerTransition:"SlideInOnTopTransition"}},[r("GridLayout",{directives:[{name:"view",rawName:"v-view:drawerContent",arg:"drawerContent",modifiers:{}}],staticClass:"sd",attrs:{rows:"*, auto",columns:"*"}},[r("StackLayout",{attrs:{row:"0"}},[e._l(e.topmenu,(function(t,a){return r("GridLayout",{key:a,staticClass:"sd-item orkm",class:{"selected-sd-item":e.currentComponent===t.component},attrs:{rows:"48",columns:"auto, 24, *"}},[r("MDRipple",{attrs:{row:"0",colSpan:"3"},on:{tap:function(r){return e.navigateTo(t.component,!1,!1)}}}),r("Label",{staticClass:"bx",attrs:{col:"0",row:"0",text:e.icon[t.icon]}}),r("Label",{attrs:{col:"2",row:"0",text:t.title}})],1)})),r("StackLayout",{staticClass:"hr m-8"}),r("GridLayout",{staticClass:"sd-item orkm",class:{"selected-sd-item":"MealPlanner"===e.currentComponent},attrs:{rows:"48",columns:"auto, 24, *"}},[r("MDRipple",{attrs:{row:"0",colSpan:"3"},on:{tap:function(t){return e.navigateTo(e.MealPlanner,!0,!1)}}}),r("Label",{staticClass:"bx",attrs:{col:"0",row:"0",text:e.icon.calendar}}),r("Label",{attrs:{col:"2",row:"0",text:"Meal Planner"}})],1),r("StackLayout",{staticClass:"hr m-8"}),e.categoriesWithRecipes.length?r("GridLayout",{staticClass:"sd-group-header orkm",attrs:{rows:"auto",columns:"*, auto"}},[r("Label",{attrs:{verticalAlignment:"center",col:"0",text:"Categories"}}),r("MDButton",{attrs:{variant:"text",col:"2",text:e.editCategory?"DONE":"RENAME"},on:{tap:e.toggleCatEdit}})],1):e._e(),r("ScrollView",{attrs:{height:"100%"}},[r("StackLayout",e._l(e.categoriesWithRecipes,(function(t,a){return r("GridLayout",{key:a,staticClass:"sd-item orkm",class:{"selected-sd-item":e.currentComponent==t},attrs:{columns:"auto, *, auto"}},[r("MDRipple",{attrs:{row:"0",colSpan:"3"},on:{tap:function(r){return e.navigateTo(t,!1,!0)}}}),r("Label",{staticClass:"bx",attrs:{col:"0",text:e.icon.label,margin:"0 24 0 0"}}),r("Label",{attrs:{col:"1",text:t}}),e.editCategory?r("MDButton",{staticClass:"bx",attrs:{variant:"text",col:"2",text:e.icon.edit},on:{tap:function(r){return e.renameCategory(t)}}}):e._e()],1)})),1)],1)],2),r("StackLayout",{attrs:{row:"1"}},[r("StackLayout",{staticClass:"hr m-10"}),e._l(e.bottommenu,(function(t,a){return r("GridLayout",{key:a,staticClass:"sd-item orkm",class:{"selected-sd-item":e.currentComponent==t.title},attrs:{rows:"48",columns:"auto, 24, *"}},[r("MDRipple",{attrs:{colSpan:"3"},on:{tap:function(r){return e.navigateTo(t.component,!0,!1)}}}),r("Label",{staticClass:"bx",attrs:{col:"0",text:e.icon[t.icon]}}),r("Label",{attrs:{col:"2",text:t.title}})],1)}))],2)],1),r("Frame",{directives:[{name:"view",rawName:"v-view:mainContent",arg:"mainContent",modifiers:{}}],attrs:{id:"main-frame"}},[r("EnRecipes",{ref:"enrecipes",attrs:{filterFavorites:e.filterFavorites,filterTrylater:e.filterTrylater,selectedCategory:e.selectedCategory,closeDrawer:e.closeDrawer,hijackGlobalBackEvent:e.hijackGlobalBackEvent,releaseGlobalBackEvent:e.releaseGlobalBackEvent}})],1)],1)],1)};render._withStripped=!0;var a=r(3),o=r(8),i=r(123),l=r(48),n=r(31),EnRecipesvue_type_template_id_5150c21e_render=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("Page",{on:{loaded:e.onPageLoad}},[r("ActionBar",{attrs:{androidElevation:e.viewIsScrolled?4:0}},[e.showSearch?r("GridLayout",{attrs:{columns:"auto, *",verticalAlignment:"center"}},[r("MDButton",{staticClass:"bx",attrs:{text:e.icon.back,variant:"text",automationText:"Back",col:"0"},on:{tap:e.closeSearch}}),r("SearchBar",{attrs:{col:"1",hint:"Search"},on:{textChange:e.updateFilter,clear:e.clearSearch},model:{value:e.searchQuery,callback:function(t){e.searchQuery=t.object.text},expression:"searchQuery"}})],1):r("GridLayout",{attrs:{columns:"auto, *, auto, auto"}},[r("MDButton",{staticClass:"bx",attrs:{col:"0",variant:"text",text:e.icon.menu,automationText:"Back"},on:{tap:e.showDrawer}}),r("Label",{staticClass:"title orkm",attrs:{text:e.currentComponent,col:"1"}}),e.recipes.length?r("MDButton",{staticClass:"bx",attrs:{text:e.icon.search,variant:"text",col:"2"},on:{tap:e.openSearch}}):e._e(),e.recipes.length?r("MDButton",{staticClass:"bx",attrs:{text:e.icon.sort,variant:"text",col:"3"},on:{tap:e.sortDialog}}):e._e()],1)],1),r("AbsoluteLayout",[r("RadListView",{ref:"listView",attrs:{itemHeight:"112",swipeActions:"true",filteringFunction:e.filterFunction,sortingFunction:e.sortFunction,items:e.recipes,"+alias":"recipe"},on:{itemSwipeProgressChanged:e.onSwiping,itemSwipeProgressEnded:e.onSwipeEnded,scrolled:e.onScroll}},[r("v-template",{scopedSlots:e._u([{key:"default",fn:function(t){var a=t.recipe;t.$index,t.$even,t.$odd;return r("GridLayout",{staticClass:"recipeItem",attrs:{rows:"112",columns:"112, *",androidElevation:"1"}},[r("MDRipple",{attrs:{colSpan:"2"},on:{tap:function(t){return e.viewRecipe(a.id)}}}),r("GridLayout",{staticClass:"imageHolder card",attrs:{rows:"112",columns:"112"}},[a.imageSrc?r("Image",{attrs:{row:"0",col:"0",src:a.imageSrc,stretch:"aspectFill",decodeWidth:"112",decodeHeight:"112",loadMode:"async"}}):r("Label",{staticClass:"bx",attrs:{row:"0",col:"0",horizontalAlignment:"center",fontSize:"56",text:e.icon.image}})],1),r("StackLayout",{staticClass:"recipeInfo",attrs:{col:"1"}},[r("Label",{staticClass:"orkm category",attrs:{text:a.category}}),r("Label",{staticClass:"orkm title",attrs:{text:a.title}}),r("StackLayout",{staticClass:"timeContainer",attrs:{orientation:"horizontal"}},[r("Label",{staticClass:"bx small",attrs:{text:e.icon.time}}),r("Label",{staticClass:"time",attrs:{text:""+e.formattedTotalTime(a.prepTime,a.cookTime).time}})],1)],1)],1)}}])}),r("v-template",{attrs:{name:"itemswipe"},scopedSlots:e._u([{key:"default",fn:function(t){t.recipe,t.$index,t.$even,t.$odd;return r("GridLayout",{attrs:{columns:"*, auto"}},[r("StackLayout",{staticClass:"swipe-item right",attrs:{id:"delete-action",col:"1"}},[r("Label",{staticClass:"bx",attrs:{padding:"8 0 0 6",text:e.icon.trash}})],1)],1)}}])}),r("v-template",{attrs:{name:"footer"},scopedSlots:e._u([{key:"default",fn:function(e){e.recipe,e.$index,e.$even,e.$odd;return r("StackLayout",{attrs:{height:"80"}})}}])})],1),r("GridLayout",{staticClass:"emptyStateContainer",attrs:{rows:"*, auto, *, 88",columns:"*"}},[e.recipes.length||e.filterFavorites||e.filterTrylater||e.selectedCategory?e._e():r("StackLayout",{staticClass:"emptyState",attrs:{row:"1"},on:{tap:e.addRecipe}},[r("Label",{staticClass:"bx icon",attrs:{text:e.icon.plusCircle}}),r("Label",{staticClass:"title orkm",attrs:{text:"Start adding your recipes!",textWrap:"true"}}),r("StackLayout",{attrs:{orientation:"horizontal",horizontalAlignment:"center"}},[r("Label",{attrs:{text:"Use the "}}),r("Label",{staticClass:"bx",attrs:{text:e.icon.plus}}),r("Label",{attrs:{text:" button to add one"}})],1)],1),e.filteredRecipes.length||!e.filterTrylater||e.searchQuery?e._e():r("StackLayout",{staticClass:"emptyState",attrs:{row:"1"}},[r("Label",{staticClass:"bx icon",attrs:{text:e.icon.trylaterOutline,textWrap:"true"}}),r("Label",{staticClass:"title orkm",attrs:{text:"All done!",textWrap:"true"}}),r("Label",{attrs:{text:"Recipes you mark as try later will be listed here",textWrap:"true"}})],1),e.filteredRecipes.length||!e.filterFavorites||e.searchQuery?e._e():r("StackLayout",{staticClass:"emptyState",attrs:{row:"1"}},[r("Label",{staticClass:"bx icon",attrs:{text:e.icon.heartOutline,textWrap:"true"}}),r("Label",{staticClass:"title orkm",attrs:{text:"No favorites yet",textWrap:"true"}}),r("Label",{attrs:{text:"Recipes you mark as favorite will be listed here",textWrap:"true"}})],1),e.filteredRecipes.length||e.searchQuery||!e.selectedCategory?e._e():r("StackLayout",{staticClass:"emptyState",attrs:{row:"1"}},[r("Label",{staticClass:"bx icon",attrs:{text:e.icon.labelOutline,textWrap:"true"}}),r("Label",{staticClass:"title orkm",attrs:{text:"Category looks empty",textWrap:"true"}}),r("StackLayout",{attrs:{orientation:"horizontal",horizontalAlignment:"center"}},[r("Label",{attrs:{text:"Use the ",textWrap:"true"}}),r("Label",{staticClass:"bx",attrs:{text:e.icon.plus}}),r("Label",{attrs:{text:" button to add a recipe",textWrap:"true"}})],1)],1),!e.filteredRecipes.length&&e.searchQuery?r("StackLayout",{staticClass:"emptyState",attrs:{row:"1"}},[r("Label",{staticClass:"bx icon",attrs:{text:e.icon.search,textWrap:"true"}}),r("Label",{staticClass:"title orkm",attrs:{text:"No recipes found",textWrap:"true"}}),r("Label",{attrs:{text:'Your search "'+e.searchQuery+'" did not match any recipes'+e.noResultFor,textWrap:"true"}})],1):e._e()],1),r("GridLayout",{attrs:{id:"btnFabContainer",rows:"*, auto",columns:"*, auto"}},[r("transition",{attrs:{name:"bounce"}},[e.showFAB?r("MDFloatingActionButton",{staticClass:"bx fab-button",attrs:{row:"1",col:"1",src:"res://plus"},on:{tap:e.addRecipe}}):e._e()],1)],1)],1)],1)};EnRecipesvue_type_template_id_5150c21e_render._withStripped=!0;var EditRecipevue_type_template_id_2dd987d3_render=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("Page",{on:{loaded:e.onPageLoad,unloaded:e.releaseBackEvent}},[r("ActionBar",{attrs:{androidElevation:e.viewIsScrolled?4:0}},[r("GridLayout",{attrs:{rows:"*",columns:"auto, *, auto"}},[r("MDButton",{staticClass:"bx",attrs:{variant:"text",text:e.icon.back,automationText:"Back",col:"0"},on:{tap:e.navigateBack}}),r("Label",{staticClass:"title orkm",attrs:{text:e.title,col:"1"}}),e.hasChanges&&!e.saving?r("MDButton",{staticClass:"bx",attrs:{variant:"text",text:e.icon.save,col:"2"},on:{tap:e.saveOperation}}):e._e(),e.saving?r("MDActivityIndicator",{attrs:{col:"2",busy:e.saving}}):e._e()],1)],1),r("ScrollView",{attrs:{width:"100%",height:"100%"},on:{scroll:e.onScroll}},[r("StackLayout",{attrs:{width:"100%",padding:"0 0 88"}},[r("AbsoluteLayout",[r("StackLayout",{staticClass:"imageHolder",attrs:{width:"100%",height:e.screenWidth,verticalAlignment:"center"}},[e.recipeContent.imageSrc?r("Image",{attrs:{src:e.recipeContent.imageSrc,stretch:"aspectFill",width:"100%",height:e.screenWidth}}):r("Label",{staticClass:"bx",attrs:{horizontalAlignment:"center",fontSize:"160",text:e.icon.image}})],1),r("transition",{attrs:{name:e.recipeContent.imageSrc?"null":"bounce"}},[e.showFab?r("MDFloatingActionButton",{staticClass:"bx",attrs:{top:e.screenWidth-44,left:e.screenWidth-88,src:"res://camera"},on:{tap:e.imageHandler}}):e._e()],1)],1),r("StackLayout",{attrs:{margin:"0 16"}},[r("AbsoluteLayout",{staticClass:"inputField"},[r("TextField",{attrs:{hint:"My Healthy Recipe"},on:{loaded:function(t){return e.setInputTypeText(t,"words")}},model:{value:e.recipeContent.title,callback:function(t){e.$set(e.recipeContent,"title",t.object.text)},expression:"recipeContent.title"}}),r("Label",{staticClass:"fieldLabel",attrs:{top:"0",text:"Title"}})],1),r("AbsoluteLayout",{staticClass:"inputField"},[r("TextField",{attrs:{text:e.recipeContent.category,editable:"false"},on:{focus:function(t){!1===e.modalOpen&&e.showCategories(!0)},tap:function(t){return e.showCategories(!1)}}}),r("Label",{staticClass:"fieldLabel",attrs:{top:"0",text:"Category"}})],1),r("GridLayout",{attrs:{columns:"*, 8, *"}},[r("AbsoluteLayout",{staticClass:"inputField",attrs:{col:"0"}},[r("TextField",{ref:"prepTime",attrs:{text:e.timeRequired("prepTime"),editable:"false"},on:{focus:function(t){!1===e.modalOpen&&e.setTimeRequired(!0,"prepTime")},tap:function(t){return e.setTimeRequired(!1,"prepTime")}}}),r("Label",{staticClass:"fieldLabel",attrs:{top:"0",text:"Preparation time"}})],1),r("AbsoluteLayout",{staticClass:"inputField",attrs:{col:"2"}},[r("TextField",{ref:"cookTime",attrs:{text:e.timeRequired("cookTime"),editable:"false"},on:{focus:function(t){!1===e.modalOpen&&e.setTimeRequired(!0,"cookTime")},tap:function(t){return e.setTimeRequired(!1,"cookTime")}}}),r("Label",{staticClass:"fieldLabel",attrs:{top:"0",text:"Cooking time"}})],1)],1),r("GridLayout",{attrs:{columns:"*, 8, *"}},[r("AbsoluteLayout",{staticClass:"inputField",attrs:{col:"0"}},[r("TextField",{ref:"yieldQuantity",attrs:{hint:"1",keyboardType:"number",returnKeyType:"next"},model:{value:e.recipeContent.yield.quantity,callback:function(t){e.$set(e.recipeContent.yield,"quantity",t.object.text)},expression:"recipeContent.yield.quantity"}}),r("Label",{staticClass:"fieldLabel",attrs:{top:"0",text:"Yield quantity"}})],1),r("AbsoluteLayout",{staticClass:"inputField",attrs:{col:"2"}},[r("TextField",{attrs:{text:e.recipeContent.yield.unit,editable:"false"},on:{focus:function(t){!1===e.modalOpen&&e.showYieldUnits(!0)},tap:function(t){return e.showYieldUnits(!1)}}}),r("Label",{staticClass:"fieldLabel",attrs:{top:"0",text:"Yield measured in"}})],1)],1),r("StackLayout",{staticClass:"hr",attrs:{margin:"24 16"}})],1),r("StackLayout",{attrs:{margin:"0 16"}},[r("Label",{staticClass:"sectionTitle",attrs:{text:"Ingredients"}}),e._l(e.recipeContent.ingredients,(function(t,a){return r("GridLayout",{key:a,attrs:{columns:"*,8,auto,8,auto,8,auto"}},[r("TextField",{ref:"ingredient",refInFor:!0,attrs:{col:"0",hint:"Item "+(a+1),returnKeyType:"next"},on:{loaded:function(t){return e.focusField(t,"sentence")}},model:{value:e.recipeContent.ingredients[a].item,callback:function(t){e.$set(e.recipeContent.ingredients[a],"item",t.object.text)},expression:"recipeContent.ingredients[index].item"}}),r("TextField",{attrs:{width:"60",col:"2",hint:"1.00",keyboardType:"number",returnKeyType:"next"},model:{value:e.recipeContent.ingredients[a].quantity,callback:function(t){e.$set(e.recipeContent.ingredients[a],"quantity",t.object.text)},expression:"recipeContent.ingredients[index].quantity"}}),r("TextField",{attrs:{width:"76",col:"4",hint:"Unit",editable:"false"},on:{focus:function(t){!1===e.modalOpen&&e.showUnits(t,!0,a)},tap:function(t){return e.showUnits(t,!1,a)}},model:{value:e.recipeContent.ingredients[a].unit,callback:function(t){e.$set(e.recipeContent.ingredients[a],"unit",t.object.text)},expression:"recipeContent.ingredients[index].unit"}}),r("MDButton",{staticClass:"bx closeBtn",attrs:{variant:"text",col:"6",text:e.icon.close},on:{tap:function(t){return e.removeIngredient(a)}}})],1)})),r("MDButton",{staticClass:"text-btn orkm",attrs:{variant:"text",text:"+ ADD INGREDIENT"},on:{tap:function(t){return e.addIngredient()}}}),r("StackLayout",{staticClass:"hr",attrs:{margin:"24 16"}})],2),r("StackLayout",{attrs:{margin:"0 16"}},[r("Label",{staticClass:"sectionTitle",attrs:{text:"Instructions"}}),e._l(e.recipeContent.instructions,(function(t,a){return r("GridLayout",{key:a,attrs:{columns:"*,8,auto"}},[r("TextView",{attrs:{col:"0",hint:"Step "+(a+1)},on:{loaded:function(t){return e.focusField(t,"multiLine")}},model:{value:e.recipeContent.instructions[a],callback:function(t){e.$set(e.recipeContent.instructions,a,t.object.text)},expression:"recipeContent.instructions[index]"}}),r("MDButton",{staticClass:"bx closeBtn",attrs:{variant:"text",col:"2",text:e.icon.close},on:{tap:function(t){return e.removeInstruction(a)}}})],1)})),r("MDButton",{staticClass:"text-btn orkm",attrs:{variant:"text",text:"+ ADD STEP"},on:{tap:e.addInstruction}}),r("StackLayout",{staticClass:"hr",attrs:{margin:"24 16"}})],2),r("StackLayout",{attrs:{margin:"0 16"}},[r("Label",{staticClass:"sectionTitle",attrs:{text:"Combinations"}}),e._l(e.recipeContent.combinations,(function(t,a){return r("GridLayout",{key:a,attrs:{columns:"*,8,auto"}},[r("TextField",{staticClass:"combinationToken",attrs:{col:"0",text:e.getCombinationTitle(t),editable:"false"}}),r("MDButton",{staticClass:"bx closeBtn",attrs:{variant:"text",col:"2",text:e.icon.close},on:{tap:function(r){return e.removeCombination(t)}}})],1)})),r("MDButton",{staticClass:"text-btn orkm",attrs:{variant:"text",text:"+ ADD COMBINATION"},on:{tap:e.showCombinations}}),r("StackLayout",{staticClass:"hr",attrs:{margin:"24 16"}})],2),r("StackLayout",{attrs:{margin:"0 16"}},[r("Label",{staticClass:"sectionTitle",attrs:{text:"Notes"}}),e._l(e.recipeContent.notes,(function(t,a){return r("GridLayout",{key:a,attrs:{columns:"*,8,auto"}},[r("TextView",{attrs:{col:"0",hint:"Text or URL"},on:{loaded:function(t){return e.focusField(t,"multiLine")}},model:{value:e.recipeContent.notes[a],callback:function(t){e.$set(e.recipeContent.notes,a,t.object.text)},expression:"recipeContent.notes[index]"}}),r("MDButton",{staticClass:"bx closeBtn",attrs:{variant:"text",col:"2",text:e.icon.close},on:{tap:function(t){return e.removeNote(a)}}})],1)})),r("MDButton",{staticClass:"text-btn orkm",attrs:{variant:"text",text:"+ ADD NOTE"},on:{tap:e.addNote}})],2)],1)],1)],1)};EditRecipevue_type_template_id_2dd987d3_render._withStripped=!0;var s=r(18),p=r(17),c=r(29),d=r(103),u=r(124),y=r(183),ViewRecipevue_type_template_id_760a8eae_render=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("Page",{on:{loaded:e.onPageLoad,unloaded:e.onPageUnload}},[r("ActionBar",{attrs:{flat:"true"}},[r("GridLayout",{attrs:{rows:"48",columns:"auto, *, auto"}},[r("MDButton",{staticClass:"bx",attrs:{variant:"text",row:"0",col:"0",text:e.icon.back,automationText:"Back"},on:{tap:function(t){return e.$navigateBack()}}}),r("FlexboxLayout",{attrs:{row:"0",col:"2",alignItems:"center"}},[e.filterTrylater?r("MDButton",{staticClass:"bx",attrs:{variant:"text",text:e.icon.check},on:{tap:e.recipeTried}}):r("MDButton",{staticClass:"bx",attrs:{variant:"text",text:e.recipe.tried?e.icon.trylaterOutline:e.icon.trylater},on:{tap:e.toggleTrylater}}),r("MDButton",{staticClass:"bx",attrs:{variant:"text",text:e.recipe.isFavorite?e.icon.heart:e.icon.heartOutline},on:{tap:e.toggleFavorite}}),e.busy?r("MDActivityIndicator",{attrs:{busy:e.busy}}):r("MDButton",{staticClass:"bx",attrs:{variant:"text",text:e.icon.edit},on:{tap:e.editRecipe}})],1)],1)],1),r("AbsoluteLayout",[r("Tabs",{staticClass:"viewRecipe",attrs:{width:"100%",height:"100%",selectedIndex:e.selectedTabIndex},on:{selectedIndexChange:e.selectedIndexChange}},[r("TabStrip",{attrs:{androidElevation:e.viewIsScrolled?4:0}},[r("TabStripItem",[r("Label",{attrs:{text:"Overview"}})],1),r("TabStripItem",[r("Label",{attrs:{text:"Ingredients"}})],1),r("TabStripItem",[r("Label",{attrs:{text:"Instructions"}})],1),r("TabStripItem",[r("Label",{attrs:{text:"Combinations"}})],1),r("TabStripItem",[r("Label",{attrs:{text:"Notes"}})],1)],1),r("TabContentItem",[r("ScrollView",{on:{scroll:e.onScroll}},[r("StackLayout",[r("StackLayout",{staticClass:"imageHolder",attrs:{width:"100%",height:e.screenWidth,verticalAlignment:"center"}},[e.recipe.imageSrc?r("Image",{attrs:{src:e.recipe.imageSrc,stretch:"aspectFill",width:"100%",height:e.screenWidth}}):r("Label",{staticClass:"bx",attrs:{horizontalAlignment:"center",fontSize:"160",text:e.icon.image}})],1),r("StackLayout",{attrs:{margin:"16 8 80"}},[r("Label",{staticClass:"category orkm",attrs:{text:e.recipe.category}}),r("Label",{staticClass:"title orkm",attrs:{margin:"0 8",text:e.recipe.title,textWrap:"true"}}),r("StackLayout",{staticClass:"time",attrs:{orientation:"horizontal"}},[r("Label",{attrs:{text:"Preparation time:"}}),r("Label",{attrs:{text:" "+e.formattedTime(e.recipe.prepTime)}})],1),r("StackLayout",{staticClass:"time",attrs:{orientation:"horizontal"}},[r("Label",{attrs:{text:"Cooking time:"}}),r("Label",{attrs:{text:" "+e.formattedTime(e.recipe.cookTime)}})],1),r("GridLayout",{staticClass:"overviewContainer",attrs:{rows:"auto, auto",columns:"*, *"}},[r("GridLayout",{staticClass:"overviewItem",attrs:{row:"0",col:"0",rows:"auto, auto",columns:"*"}},[r("MDRipple",{attrs:{rowSpan:"2"},on:{tap:function(t){e.selectedTabIndex=1}}}),r("Label",{staticClass:"bx",attrs:{row:"0",text:e.icon.item}}),r("Label",{staticClass:"itemCount",attrs:{row:"1",text:e.recipe.ingredients.length+" "+(1==e.recipe.ingredients.length?"Ingredient":"Ingredients"),textWrap:"true"}})],1),r("GridLayout",{staticClass:"overviewItem",attrs:{row:"0",col:"1",rows:"auto, auto",columns:"*"}},[r("MDRipple",{attrs:{rowSpan:"2"},on:{tap:function(t){e.selectedTabIndex=2}}}),r("Label",{staticClass:"bx",attrs:{row:"0",text:e.icon.step}}),r("Label",{staticClass:"itemCount",attrs:{row:"1",text:e.recipe.instructions.length+" "+(1==e.recipe.instructions.length?"Instruction":"Instructions"),textWrap:"true"}})],1),r("GridLayout",{staticClass:"overviewItem",attrs:{row:"1",col:"0",rows:"auto, auto",columns:"*"}},[r("MDRipple",{attrs:{rowSpan:"2"},on:{tap:function(t){e.selectedTabIndex=3}}}),r("Label",{staticClass:"bx",attrs:{row:"0",text:e.icon.outline}}),r("Label",{staticClass:"itemCount",attrs:{row:"1",text:e.recipe.combinations.length+" "+(1==e.recipe.combinations.length?"Combination":"Combinations"),textWrap:"true"}})],1),r("GridLayout",{staticClass:"overviewItem",attrs:{row:"1",col:"1",rows:"auto, auto",columns:"*"}},[r("MDRipple",{attrs:{rowSpan:"2"},on:{tap:function(t){e.selectedTabIndex=4}}}),r("Label",{staticClass:"bx",attrs:{row:"0",text:e.icon.note}}),r("Label",{staticClass:"itemCount",attrs:{row:"1",text:e.recipe.notes.length+" "+(1==e.recipe.notes.length?"Note":"Notes"),textWrap:"true"}})],1)],1)],1)],1)],1)],1),r("TabContentItem",[r("ScrollView",{on:{scroll:e.onScroll}},[e.recipe.ingredients.length?r("StackLayout",{attrs:{padding:"24 16 72"}},[r("AbsoluteLayout",{staticClass:"inputField"},[r("TextField",{attrs:{width:"50%",keyboardType:"number"},model:{value:e.yieldMultiplier,callback:function(t){e.yieldMultiplier=t.object.text},expression:"yieldMultiplier"}}),r("Label",{staticClass:"fieldLabel",attrs:{top:"0",text:"Required "+e.recipe.yield.unit.toLowerCase()}})],1),r("StackLayout",{attrs:{margin:"16 0"}},[r("Label",{staticClass:"title orkm",attrs:{text:"Ingredients for "+e.positiveYieldMultiplier+" "+e.recipe.yield.unit.toLowerCase(),textWrap:"true"}})],1),e._l(e.recipe.ingredients,(function(t,a){return r("StackLayout",{key:a},[r("check-box",{staticClass:"ingredient",attrs:{checkPadding:"16",fillColor:"#ff5200",text:(e.roundedQuantity(t.quantity)?e.roundedQuantity(t.quantity)+" ":"")+(e.roundedQuantity(t.quantity)?t.unit+" ":"")+t.item}})],1)}))],2):r("GridLayout",{staticClass:"emptyStateContainer",attrs:{rows:"*, auto, *, 88",columns:"*"}},[r("StackLayout",{staticClass:"emptyState",attrs:{col:"0",row:"1"}},[r("Label",{staticClass:"bx icon",attrs:{text:e.icon.item,textWrap:"true"}}),r("StackLayout",{staticClass:"title orkm",attrs:{orientation:"horizontal"}},[r("Label",{attrs:{text:"Use the "}}),r("Label",{staticClass:"bx",attrs:{text:e.icon.edit}}),r("Label",{attrs:{text:" button"}})],1),r("Label",{attrs:{text:"to add some ingredients",textWrap:"true"}})],1)],1)],1)],1),r("TabContentItem",[r("ScrollView",{on:{scroll:e.onScroll}},[e.recipe.instructions.length?r("StackLayout",{attrs:{padding:"28 16 62"}},e._l(e.recipe.instructions,(function(t,a){return r("GridLayout",{key:a,attrs:{columns:"auto ,*"}},[r("Label",{staticClass:"instruction",class:{noBorder:a===e.recipe.instructions.length-1},attrs:{col:"0",colSpan:"2",text:t,textWrap:"true"}}),r("Label",{staticClass:"count orkm",attrs:{verticalAlignment:"top",horizontalAlignment:"center",col:"0",text:a+1}})],1)})),1):r("GridLayout",{staticClass:"emptyStateContainer",attrs:{rows:"*, auto, *, 88",columns:"*"}},[r("StackLayout",{staticClass:"emptyState",attrs:{col:"0",row:"1"}},[r("Label",{staticClass:"bx icon",attrs:{text:e.icon.step,textWrap:"true"}}),r("StackLayout",{staticClass:"title orkm",attrs:{orientation:"horizontal"}},[r("Label",{attrs:{text:"Use the "}}),r("Label",{staticClass:"bx",attrs:{text:e.icon.edit}}),r("Label",{attrs:{text:" button"}})],1),r("Label",{attrs:{text:"to add some instructions",textWrap:"true"}})],1)],1)],1)],1),r("TabContentItem",[r("ScrollView",{on:{scroll:e.onScroll}},[e.recipe.combinations.length?r("StackLayout",{attrs:{padding:"8 0 80"}},e._l(e.recipe.combinations,(function(t,a){return r("GridLayout",{key:a,staticClass:"urlCard",attrs:{columns:"auto, *",androidElevation:"1"}},[r("MDRipple",{attrs:{colSpan:"2"},on:{tap:function(r){return e.viewCombination(t)}}}),r("Label",{staticClass:"bx linkIcon",attrs:{col:"0",text:e.icon.food}}),r("Label",{staticClass:"link",attrs:{col:"1",verticalAlignment:"center",text:e.getCombinationTitle(t),textWrap:"true"}})],1)})),1):r("GridLayout",{staticClass:"emptyStateContainer",attrs:{rows:"*, auto, *, 88",columns:"*"}},[r("StackLayout",{staticClass:"emptyState",attrs:{col:"0",row:"1"}},[r("Label",{staticClass:"bx icon",attrs:{text:e.icon.outline,textWrap:"true"}}),r("StackLayout",{staticClass:"title orkm",attrs:{orientation:"horizontal"}},[r("Label",{attrs:{text:"Use the "}}),r("Label",{staticClass:"bx",attrs:{text:e.icon.edit}}),r("Label",{attrs:{text:" button"}})],1),r("Label",{attrs:{text:"to add some combinations",textWrap:"true"}})],1)],1)],1)],1),r("TabContentItem",[r("ScrollView",{on:{scroll:e.onScroll}},[e.recipe.notes.length?r("StackLayout",{attrs:{padding:"8 0 80"}},[r("StackLayout",{on:{loaded:e.createNotes}})],1):r("GridLayout",{staticClass:"emptyStateContainer",attrs:{rows:"*, auto, *, 88",columns:"*"}},[r("StackLayout",{staticClass:"emptyState",attrs:{col:"0",row:"1"}},[r("Label",{staticClass:"bx icon",attrs:{text:e.icon.note,textWrap:"true"}}),r("StackLayout",{staticClass:"title orkm",attrs:{orientation:"horizontal"}},[r("Label",{attrs:{text:"Use the "}}),r("Label",{staticClass:"bx",attrs:{text:e.icon.edit}}),r("Label",{attrs:{text:" button"}})],1),r("Label",{attrs:{text:"to add some notes",textWrap:"true"}})],1)],1)],1)],1)],1),r("GridLayout",{attrs:{id:"btnFabContainer",rows:"*, auto",columns:"*, auto"}},[r("transition",{attrs:{name:"dolly",appear:""}},[e.showFab?r("MDFloatingActionButton",{attrs:{row:"1",col:"1",src:"res://share"},on:{tap:e.shareHandler}}):e._e()],1)],1)],1)],1)};ViewRecipevue_type_template_id_760a8eae_render._withStripped=!0;var g=r(4),m=r(53),h=r(118),v=r(99),b=r(184),f=r(144),ShareChooservue_type_template_id_d11e43ce_render=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("Page",[r("StackLayout",{staticClass:"dialogContainer",class:e.appTheme},[r("Label",{staticClass:"dialogTitle orkm",attrs:{text:e.title}}),r("GridLayout",{staticClass:"actionsContainer",attrs:{rows:"auto, auto",columns:"*"}},[r("MDButton",{staticClass:"actionIcon",attrs:{rippleColor:e.rippleColor,backgroundColor:e.backgroundColor,row:"0",src:"res://photo",text:"Photo"},on:{tap:function(t){return e.$modal.close("photo")}}}),r("MDButton",{staticClass:"actionIcon",attrs:{rippleColor:e.rippleColor,backgroundColor:e.backgroundColor,row:"1",src:"res://detail",text:"Recipe"},on:{tap:function(t){return e.$modal.close("recipe")}}})],1)],1)],1)};ShareChooservue_type_template_id_d11e43ce_render._withStripped=!0;function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})));r.push.apply(r,a)}return r}function _objectSpread(e){for(var t=1;ta.Application.systemAppearance(),rippleColor(){return"light"==this.appTheme?"rgba(134,142,150,0.2)":"rgba(206,212,218,0.1)"},backgroundColor(){return"light"==this.appTheme?"#fff":"#343a40"}})},C=w,A=r(30),k=Object(A.a)(C,ShareChooservue_type_template_id_d11e43ce_render,[],!1,null,null,null);k.options.__file="components/modal/ShareChooser.vue";var x=k.exports;function ViewRecipevue_type_script_lang_js_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})));r.push.apply(r,a)}return r}function ViewRecipevue_type_script_lang_js_objectSpread(e){for(var t=1;ts.b.mainScreen.widthDIPs,positiveYieldMultiplier(){return Math.abs(this.yieldMultiplier)>0?Math.abs(parseFloat(this.yieldMultiplier)):1},isLightMode:()=>"light"===a.Application.systemAppearance()}),methods:ViewRecipevue_type_script_lang_js_objectSpread(ViewRecipevue_type_script_lang_js_objectSpread({},Object(n.b)(["toggleStateAction","setCurrentComponentAction","overwriteRecipeAction","setRecipeAsTriedAction"])),{},{onPageLoad(){this.busy=!1;setTimeout(e=>{this.setCurrentComponentAction("ViewRecipe")},500);this.showFab=!0;this.yieldMultiplier=this.recipe.yield.quantity;this.keepScreenOn(!0);this.syncCombinations()},onPageUnload(){_.hide();this.keepScreenOn(!1)},niceDates(e){var t=new Date(e).getTime(),r=(new Date).getTime(),a=(new Date).setHours(0,0,0,0),o=(r-t)/1e3,i=Math.ceil(o/86400);return isNaN(i)||i<0?"":(o<86400&&t>a?"today":1==i&&"yesterday")||i<7&&i+" days ago"||i<31&&Math.round(i/7)+" week(s) ago"||i<366&&Math.round(i/30)+" month(s) ago"||i>365&&"long time ago"},selectedIndexChange(e){this.selectedTabIndex=e.object.selectedIndex;this.viewIsScrolled=this.isScrolled[this.selectedTabIndex]},showLastTried(){_.show({title:"You tried this recipe ".concat(this.niceDates(this.recipe.lastTried),"!"),titleColor:new g.a("".concat(this.isLightMode?"#f1f3f5":"#212529")),backgroundColor:new g.a("#ff5200")})},roundedQuantity(e){return Math.abs(Math.round(e/this.recipe.yield.quantity*this.positiveYieldMultiplier*100)/100)},keepScreenOn(e){var t=a.Application.android.foregroundActivity||a.Application.android.startActivity,r=t.getWindow();e?r.addFlags(android.view.WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON):r.clearFlags(android.view.WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)},formattedTime(e){var t=e.split(":"),r=parseInt(t[0]),a=parseInt(t[1]);return r?a?"".concat(r," hr ").concat(a," min"):"".concat(r," hr"):"".concat(a," min")},isValidURL(e){var t=new RegExp("^https?|^www","ig");return t.test(e)},getCombinationTitle(e){return this.recipes.filter(t=>t.id===e)[0].title},syncCombinations(){var e=this.recipes.filter(e=>e.combinations.indexOf(this.currentRecipeID)>=0||this.recipe.combinations.includes(e.id)).map(e=>e.id);this.recipe.combinations=e;this.overwriteRecipeAction({id:this.currentRecipeID,recipe:this.recipe})},onScroll(e){this.viewIsScrolled=this.isScrolled[this.selectedTabIndex]=e.scrollY>8},editRecipe(){this.showFab=!1;this.busy=!0;this.$navigateTo(ee,{props:{navigationFromView:!0,filterTrylater:this.filterTrylater,recipeID:this.currentRecipeID},backstackVisible:!1})},viewCombination(e){this.recipe=this.recipes.filter(t=>t.id===e)[0];this.currentRecipeID=e;this.syncCombinations();this.selectedTabIndex=0;setTimeout(e=>this.recipe.tried&&this.recipe.lastTried&&this.showLastTried(),500)},shareHandler(){this.recipe.imageSrc?this.$showModal(x,{props:{title:"Share"}}).then(e=>{switch(e){case"photo":c.ImageSource.fromFile(this.recipe.imageSrc).then(e=>{f.a(e,"Share recipe photo using")});break;case"recipe":this.shareRecipe()}}):this.shareRecipe()},shareRecipe(){var e="".concat(this.recipe.title,"\n\nPreparation time: ").concat(this.formattedTime(this.recipe.prepTime),"\nCooking time: ").concat(this.formattedTime(this.recipe.cookTime),"\n"),t=e;if(this.recipe.ingredients.length){var r="\n\nIngredients for ".concat(this.yieldMultiplier," ").concat(this.recipe.yield.unit.toLowerCase(),"\n\n");this.recipe.ingredients.forEach(e=>{r+="- ".concat(e.quantity?this.roundedQuantity(e.quantity)+" "+e.unit+" ":"").concat(e.item,"\n")});t+=r}if(this.recipe.instructions.length){var a="\n\nInstructions:\n\n";this.recipe.instructions.forEach((e,t)=>{a+="Step ".concat(t+1,": ").concat(e,"\n\n")});t+=a}if(this.recipe.combinations.length){var o="\nCombinations:\n\n";this.recipe.combinations.forEach((e,t)=>{o+="".concat(t+1,". ").concat(this.getCombinationTitle(e),"\n\n")});t+=o}if(this.recipe.notes.length){var i="\nNotes:\n\n";this.recipe.notes.forEach((e,t)=>{i+="".concat(t+1,". ").concat(e,"\n\n")});t+=i}t+="\nCreated and shared via EnRecipes. Get it on F-Droid.";f.b(t,"Share recipe using")},toggle(e,t){this.toggleStateAction({id:this.currentRecipeID,recipe:this.recipe,key:e,setDate:t})},toggleFavorite(){this.recipe.isFavorite?l.makeText("Removed from Favorites").show():l.makeText("Added to Favorites").show();this.toggle("isFavorite")},toggleTrylater(){this.recipe.tried?this.filterTrylater?l.makeText("Added back to Try Later").show():l.makeText("Added to Try Later").show():this.filterTrylater?l.makeText("You tried this recipe").show():l.makeText("Removed from Try Later").show();this.toggle("tried")},recipeTried(){this.setRecipeAsTriedAction({id:this.currentRecipeID,recipe:this.recipe});this.$navigateBack()},openURL(e){a.Utils.openUrl(e)},createNote(e){var t=/(https?:\/\/[^\s]+)/g,r=new m.Label;r.class="textCard";r.textWrap=!0;var o=a.Utils.layout.getDisplayDensity(),i=new h.a,l=e.split(t);console.log(o);l.forEach(e=>{!function createSpan(e,t){var r=new v.a;r.text=e;r.fontSize=16;if(t){r.textDecoration="underline";r.color="#ff5200";r.on("linkTap",()=>a.Utils.openUrl(e))}i.spans.push(r)}(e,t.test(e))});r.formattedText=i;return r},createNotes(e){var t=e.object;t.getChildrenCount()||this.recipe.notes.forEach(e=>{t.addChild(this.createNote(e))})}}),created(){this.recipe=this.recipes.filter(e=>e.id===this.currentRecipeID)[0]},mounted(){this.showFab=!0;setTimeout(e=>this.recipe.tried&&this.recipe.lastTried&&this.showLastTried(),500)}},T=L,S=Object(A.a)(T,ViewRecipevue_type_template_id_760a8eae_render,[],!1,null,null,null);S.options.__file="components/ViewRecipe.vue";var D=S.exports,ActionDialogvue_type_template_id_73f3704a_render=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("Page",[r("StackLayout",{staticClass:"dialogContainer",class:e.appTheme},[r("Label",{staticClass:"dialogTitle orkm",attrs:{text:e.title}}),r("ScrollView",{attrs:{width:"100%",height:e.height?e.height:e.screenHeight-256}},[r("StackLayout",e._l(e.list,(function(t,a){return r("MDButton",{key:a,staticClass:"actionItem",attrs:{variant:"text",rippleColor:e.rippleColor,text:t},on:{loaded:e.onLabelLoaded,tap:function(r){return e.tapAction(t)}}})})),1)],1),r("GridLayout",{staticClass:"actionsContainer",attrs:{rows:"auto",columns:"auto, *, auto"}},[e.action?r("MDButton",{staticClass:"action orkm pull-left",attrs:{rippleColor:e.rippleColor,variant:"text",col:"0",text:e.action},on:{tap:function(t){return e.$modal.close(e.action)}}}):e._e(),r("MDButton",{staticClass:"action orkm pull-right",attrs:{rippleColor:e.rippleColor,variant:"text",col:"2",text:"CANCEL"},on:{tap:function(t){return e.$modal.close(!1)}}})],1)],1)],1)};ActionDialogvue_type_template_id_73f3704a_render._withStripped=!0;var P={props:["title","list","height","action"],computed:{appTheme:()=>a.Application.systemAppearance(),rippleColor(){return"light"==this.appTheme?"rgba(134,142,150,0.2)":"rgba(206,212,218,0.1)"},screenHeight:()=>Math.round(s.b.mainScreen.heightDIPs)},methods:{tapAction(e){this.$modal.close(e)},onLabelLoaded(e){e.object.android.setGravity(16)}}},B=P,E=Object(A.a)(B,ActionDialogvue_type_template_id_73f3704a_render,[],!1,null,null,null);E.options.__file="components/modal/ActionDialog.vue";var R=E.exports,ActionDialogWithSearchvue_type_template_id_5700bb49_render=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("Page",[r("StackLayout",{staticClass:"dialogContainer",class:e.appTheme},[r("Label",{staticClass:"dialogTitle orkm",attrs:{text:e.title}}),e.filteredRecipes.length||e.searchTerm?r("StackLayout",{attrs:{padding:"0 24 24"}},[r("TextField",{attrs:{hint:"Search"},model:{value:e.searchTerm,callback:function(t){e.searchTerm=t.object.text},expression:"searchTerm"}})],1):e._e(),r("ScrollView",{attrs:{width:"100%",height:e.height?e.height:e.screenHeight-320}},[r("StackLayout",[e._l(e.filteredRecipes,(function(t,a){return r("MDButton",{key:a,staticClass:"actionItem",attrs:{variant:"text",rippleColor:e.rippleColor,text:t.title},on:{loaded:e.onLabelLoaded,tap:function(r){return e.tapAction(t)}}})})),e.filteredRecipes.length?e._e():r("Label",{attrs:{padding:"24",lineHeight:"6",text:"Nothing here! Add some recipes and try again.",textAlignment:"center",textWrap:"true"}})],2)],1),r("GridLayout",{staticClass:"actionsContainer",attrs:{rows:"auto",columns:"auto, *, auto"}},[e.action?r("MDButton",{staticClass:"action orkm pull-left",attrs:{rippleColor:e.rippleColor,variant:"text",col:"0",text:e.action},on:{tap:function(t){return e.$modal.close(e.action)}}}):e._e(),r("MDButton",{staticClass:"action orkm pull-right",attrs:{rippleColor:e.rippleColor,variant:"text",col:"2",text:"CANCEL"},on:{tap:function(t){return e.$modal.close(!1)}}})],1)],1)],1)};ActionDialogWithSearchvue_type_template_id_5700bb49_render._withStripped=!0;var j={props:["title","recipes","height","action"],data:()=>({searchTerm:""}),computed:{appTheme:()=>a.Application.systemAppearance(),rippleColor(){return"light"==this.appTheme?"rgba(134,142,150,0.2)":"rgba(206,212,218,0.1)"},screenHeight:()=>Math.round(s.b.mainScreen.heightDIPs),filteredRecipes(){return this.recipes.map((e,t)=>({id:e.id,title:e.title})).filter(e=>e.title.includes(this.searchTerm))}},methods:{tapAction(e){this.$modal.close(e.id)},onLabelLoaded(e){e.object.android.setGravity(16)}}},F=j,O=Object(A.a)(F,ActionDialogWithSearchvue_type_template_id_5700bb49_render,[],!1,null,null,null);O.options.__file="components/modal/ActionDialogWithSearch.vue";var I=O.exports,ConfirmDialogvue_type_template_id_1d53d63b_render=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("Page",[r("StackLayout",{staticClass:"dialogContainer",class:e.appTheme},[r("Label",{staticClass:"dialogTitle orkm",attrs:{text:e.title,textWrap:"true"}}),e.description?r("Label",{staticClass:"dialogDescription",attrs:{text:e.description,textWrap:"true"}}):e._e(),r("GridLayout",{staticClass:"actionsContainer",attrs:{rows:"auto",columns:"*, auto, auto"}},[r("MDButton",{staticClass:"action orkm",attrs:{rippleColor:e.rippleColor,variant:"text",col:"1",text:e.cancelButtonText},on:{tap:function(t){return e.$modal.close(!1)}}}),r("MDButton",{staticClass:"action orkm",attrs:{rippleColor:e.rippleColor,variant:"text",col:"2",text:e.okButtonText},on:{tap:function(t){return e.$modal.close(!0)}}})],1)],1)],1)};ConfirmDialogvue_type_template_id_1d53d63b_render._withStripped=!0;var M={props:["title","description","cancelButtonText","okButtonText"],computed:{appTheme:()=>a.Application.systemAppearance(),rippleColor(){return"light"==this.appTheme?"rgba(134,142,150,0.2)":"rgba(206,212,218,0.1)"}}},U=M,V=Object(A.a)(U,ConfirmDialogvue_type_template_id_1d53d63b_render,[],!1,null,null,null);V.options.__file="components/modal/ConfirmDialog.vue";var z=V.exports,PromptDialogvue_type_template_id_17328189_render=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("Page",[r("StackLayout",{staticClass:"dialogContainer",class:e.appTheme},[r("Label",{staticClass:"dialogTitle orkm",attrs:{text:e.title}}),r("StackLayout",{staticClass:"dialogInput"},[r("TextField",{attrs:{hint:e.hint?e.hint:"",autocapitalizationType:"words"},on:{loaded:e.focusField},model:{value:e.category,callback:function(t){e.category=t.object.text},expression:"category"}})],1),r("GridLayout",{staticClass:"actionsContainer",attrs:{rows:"auto",columns:"*, auto, auto"}},[r("MDButton",{staticClass:"action orkm",attrs:{rippleColor:e.rippleColor,variant:"text",col:"1",text:"CANCEL"},on:{tap:function(t){return e.$modal.close(!1)}}}),r("MDButton",{staticClass:"action orkm",attrs:{rippleColor:e.rippleColor,variant:"text",col:"2",text:e.action},on:{tap:function(t){return e.$modal.close(e.category)}}})],1)],1)],1)};PromptDialogvue_type_template_id_17328189_render._withStripped=!0;var G={props:["title","hint","text","action"],data:()=>({category:null}),computed:{appTheme:()=>a.Application.systemAppearance(),rippleColor(){return"light"==this.appTheme?"rgba(134,142,150,0.2)":"rgba(206,212,218,0.1)"}},methods:{focusField(e){e.object.focus();setTimeout(t=>a.Utils.ad.showSoftInput(e.object.android),1)}},mounted(){this.text&&(this.category=this.text)}},N=G,Y=Object(A.a)(N,PromptDialogvue_type_template_id_17328189_render,[],!1,null,null,null);Y.options.__file="components/modal/PromptDialog.vue";var Q=Y.exports,ListPickervue_type_template_id_3632d46e_render=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("Page",[r("StackLayout",{staticClass:"dialogContainer",class:e.appTheme},[r("Label",{staticClass:"dialogTitle orkm",attrs:{text:e.title}}),r("StackLayout",{staticClass:"dialogListPicker",attrs:{orientation:"horizontal",horizontalAlignment:"center"}},[r("ListPicker",{ref:"hrPicker",attrs:{items:e.hrs,selectedIndex:e.hrIndex},on:{selectedIndexChange:e.setHrs}}),r("ListPicker",{ref:"minPicker",attrs:{items:e.mins,selectedIndex:e.minIndex},on:{selectedIndexChange:e.setMins}})],1),r("GridLayout",{staticClass:"actionsContainer",attrs:{rows:"auto",columns:"*, auto, auto"}},[r("MDButton",{staticClass:"action orkm",attrs:{rippleColor:e.rippleColor,variant:"text",col:"1",text:"CANCEL"},on:{tap:function(t){return e.$modal.close(!1)}}}),r("MDButton",{staticClass:"action orkm",attrs:{rippleColor:e.rippleColor,variant:"text",col:"2",text:e.action},on:{tap:function(t){return e.$modal.close(e.selectedTime)}}})],1)],1)],1)};ListPickervue_type_template_id_3632d46e_render._withStripped=!0;var W={props:["title","selectedHr","selectedMin","action"],data:()=>({hrs:["0 hr","1 hr","2 hr","3 hr","4 hr","5 hr","6 hr","7 hr","8 hr","9 hr","10 hr","11 hr","12 hr","13 hr","14 hr","15 hr","16 hr","17 hr","18 hr","19 hr","20 hr","21 hr","22 hr","23 hr"],mins:["0 min","1 min","2 min","3 min","4 min","5 min","6 min","7 min","8 min","9 min","10 min","15 min","20 min","25 min","30 min","35 min","40 min","45 min","50 min","55 min"],selectedHrs:"00",selectedMins:"00"}),computed:{hrIndex(){var e=this.selectedHr;"0"==e.charAt(0)?e=e.slice(-1)+" hr":e+=" hr";return this.hrs.indexOf(e)},minIndex(){var e=this.selectedMin;"0"==e.charAt(0)?e=e.slice(-1)+" min":e+=" min";return this.mins.indexOf(e)},appTheme:()=>a.Application.systemAppearance(),rippleColor(){return"light"==this.appTheme?"rgba(134,142,150,0.2)":"rgba(206,212,218,0.1)"},selectedTime(){return this.selectedHrs+":"+this.selectedMins}},methods:{setHrs(e){var t="0"+this.hrs[e.object.selectedIndex];this.selectedHrs=t.slice(-5).slice(0,-3)},setMins(e){var t="0"+this.mins[e.object.selectedIndex];this.selectedMins=t.slice(-6).slice(0,-4)}}},K=W,$=Object(A.a)(K,ListPickervue_type_template_id_3632d46e_render,[],!1,null,null,null);$.options.__file="components/modal/ListPicker.vue";var H=$.exports,q=r(60);function EditRecipevue_type_script_lang_js_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})));r.push.apply(r,a)}return r}function EditRecipevue_type_script_lang_js_objectSpread(e){for(var t=1;t({title:"New recipe",viewIsScrolled:!1,recipeContent:{imageSrc:null,title:void 0,category:"Undefined",prepTime:"00:00",cookTime:"00:00",yield:{quantity:void 0,unit:"Servings"},ingredients:[],instructions:[],combinations:[],notes:[],isFavorite:!1,tried:!0,lastTried:null,lastModified:null},tempRecipeContent:{},blockModal:!1,modalOpen:!1,newRecipeID:null,showFab:!1,saving:!1,cacheImagePath:null,unSyncCombinations:[]}),computed:EditRecipevue_type_script_lang_js_objectSpread(EditRecipevue_type_script_lang_js_objectSpread({},Object(n.c)(["icon","units","yieldUnits","recipes","categories","currentComponent"])),{},{screenWidth:()=>s.b.mainScreen.widthDIPs,appTheme:()=>a.Application.systemAppearance(),hasChanges(){return JSON.stringify(this.recipeContent)!==JSON.stringify(this.tempRecipeContent)}}),methods:EditRecipevue_type_script_lang_js_objectSpread(EditRecipevue_type_script_lang_js_objectSpread({},Object(n.b)(["setCurrentComponentAction","addRecipeAction","overwriteRecipeAction","addCategoryAction","addYieldUnitAction","unSyncCombinationsAction"])),{},{onPageLoad(){this.showFab=!0},timeRequired(e){var t=this.recipeContent[e].split(":"),r=parseInt(t[0]),a=parseInt(t[1]);return r?a?"".concat(r," hr ").concat(a," min"):"".concat(r," hr"):"".concat(a," min")},focusField(e,t){t&&this.setInputTypeText(e,t);if(!e.object.text){e.object.focus();setTimeout(t=>a.Utils.ad.showSoftInput(e.object.android),10)}},setInputTypeText(e,t){var r=e.object;switch(t){case"words":r.android.setInputType(android.text.InputType.TYPE_CLASS_TEXT|android.text.InputType.TYPE_TEXT_FLAG_CAP_WORDS|android.text.InputType.TYPE_TEXT_FLAG_AUTO_CORRECT);break;case"sentence":r.android.setInputType(android.text.InputType.TYPE_CLASS_TEXT|android.text.InputType.TYPE_TEXT_FLAG_CAP_SENTENCES|android.text.InputType.TYPE_TEXT_FLAG_AUTO_CORRECT);break;case"multiLine":r.android.setInputType(android.text.InputType.TYPE_CLASS_TEXT|android.text.InputType.TYPE_TEXT_FLAG_MULTI_LINE|android.text.InputType.TYPE_TEXT_FLAG_CAP_SENTENCES|android.text.InputType.TYPE_TEXT_FLAG_AUTO_CORRECT)}},getRandomID(){for(var e="",t="abcdefghijklmnopqrstuvwxyz0123456789",r=0;r<10;r++)e+=t.charAt(Math.floor(Math.random()*t.length));return e},setTimeRequired(e,t){this.modalOpen=!0;var r=this.recipeContent[t].split(":"),a=r[0],o=r[1];this.$showModal(H,{props:{title:"".concat("prepTime"==t?"Preparation":"Cooking"," time"),action:"SET",selectedHr:a,selectedMin:o}}).then(r=>{if(r){this.recipeContent[t]=r;this.modalOpen=!1;if(e)switch(t){case"prepTime":this.autoFocusField("cookTime",!1);break;case"cookTime":this.autoFocusField("yieldQuantity",!0)}}})},onScroll(e){this.viewIsScrolled=!!e.scrollY},showCategories(e){this.modalOpen=!0;this.releaseBackEvent();this.$showModal(R,{props:{title:"Category",list:[...this.categories],action:"ADD NEW"}}).then(t=>{if("ADD NEW"==t)this.$showModal(Q,{props:{title:"New category",action:"ADD"}}).then(t=>{this.hijackBackEvent();if(t.length){this.recipeContent.category=t;this.addCategoryAction(t);this.modalOpen=!1;e&&this.autoFocusField("prepTime",!1)}});else if(t){this.recipeContent.category=t;this.hijackBackEvent();this.modalOpen=!1;e&&this.autoFocusField("prepTime",!1)}else this.hijackBackEvent()})},autoFocusField(e,t){this.$refs[e].nativeView.focus();t&&setTimeout(()=>{a.Utils.ad.showSoftInput(this.$refs[e].nativeView.android)},1)},showYieldUnits(e){this.modalOpen=!0;this.releaseBackEvent();this.$showModal(R,{props:{title:"Yield measured in",list:[...this.yieldUnits],action:"ADD NEW"}}).then(t=>{if("ADD NEW"==t)this.$showModal(Q,{props:{title:"New yield unit",action:"ADD"}}).then(t=>{this.hijackBackEvent();if(t.length){this.recipeContent.yield.unit=t;this.addYieldUnitAction(t);this.modalOpen=!1;e&&this.addIngredient()}});else if(t){this.recipeContent.yield.unit=t;this.hijackBackEvent();this.modalOpen=!1;e&&this.addIngredient()}else this.hijackBackEvent()})},showUnits(e,t,r){this.modalOpen=!0;this.releaseBackEvent();this.$showModal(R,{props:{title:"Unit",list:[...this.units]}}).then(o=>{this.hijackBackEvent();if(o){e.object.text=o;this.modalOpen=!1;if(t)if(this.recipeContent.ingredients.length-1===r)this.addIngredient();else{this.$refs.ingredient[r+1].nativeView.focus();setTimeout(e=>a.Utils.ad.showSoftInput(this.$refs.ingredient[r+1].nativeView.android),10)}}})},navigateBackController(){this.navigationFromView?this.$navigateTo(D,{props:{filterTrylater:this.filterTrylater,recipeID:this.recipeID},backstackVisible:!1}):this.$navigateBack()},navigateBack(){if(this.hasChanges){this.blockModal=!0;this.$showModal(z,{props:{title:"Unsaved changes",description:"Are you sure you want to discard unsaved changes to this recipe?",cancelButtonText:"DISCARD",okButtonText:"KEEP EDITING"}}).then(e=>{this.blockModal=!1;if(null!=e&&!e){this.navigateBackController();this.releaseBackEvent()}})}else{this.navigateBackController();this.releaseBackEvent()}},hijackBackEvent(){o.AndroidApplication.on(o.AndroidApplication.activityBackPressedEvent,this.backEvent)},releaseBackEvent(){o.AndroidApplication.off(o.AndroidApplication.activityBackPressedEvent,this.backEvent)},backEvent(e){if(this.hasChanges&&!this.blockModal){e.cancel=!0;this.navigateBack()}},imageHandler(){if(this.recipeContent.imageSrc){this.blockModal=!0;this.$showModal(z,{props:{title:"Recipe photo",cancelButtonText:"REMOVE",okButtonText:"REPLACE PHOTO"}}).then(e=>{this.blockModal=!1;if(e)this.permissionCheck(this.permissionConfirmation,this.imagePicker);else if(null!=e){this.recipeContent.imageSrc=null;this.releaseBackEvent()}})}else this.permissionCheck(this.permissionConfirmation,this.imagePicker)},permissionConfirmation(){return this.$showModal(z,{props:{title:"Grant permission",description:"EnRecipes requires storage permission in order to set recipe photo.",cancelButtonText:"NOT NOW",okButtonText:"CONTINUE"}})},permissionCheck(e,t){a.ApplicationSettings.getBoolean("storagePermissionAsked",!1)?d.a("photo").then(r=>{"authorized"!==r[0]?e().then(e=>e&&q.openAppSettingsPage()):t()}):e().then(e=>{e&&d.b("photo").then(e=>{switch(e[0]){case"authorized":t();break;case"never_ask_again":a.ApplicationSettings.setBoolean("storagePermissionAsked",!0);break;case"denied":l.makeText("Permission denied").show()}})})},imagePicker(){a.ApplicationSettings.setBoolean("storagePermissionAsked",!0);this.cacheImagePath=p.path.join(p.knownFolders.temp().path,"".concat(this.getRandomID(),".jpg"));u.create({mode:"single",extensions:["png","jpeg","jpg"]}).present().then(e=>{var t=e[0];c.ImageSource.fromFile(t).then(e=>{y.a.prototype.show(e,{width:1080,height:1080},{hideBottomControls:!0,toolbarTitle:"Crop photo",statusBarColor:"#ff5200",toolbarTextColor:"light"==this.appTheme?"#212529":"#f1f3f5",toolbarColor:"light"==this.appTheme?"#f1f3f5":"#212529",cropFrameColor:"#ff5200"}).then(e=>{e.image.saveToFile(this.cacheImagePath,"jpg",75);this.recipeContent.imageSrc=this.cacheImagePath})})})},fieldDeletionConfirm(e){return this.$showModal(z,{props:{title:e,cancelButtonText:"CANCEL",okButtonText:"REMOVE"}})},addIngredient(){this.recipeContent.ingredients.push({item:"",quantity:null,unit:"unit"})},removeIngredient(e){this.recipeContent.ingredients[e].item.length?this.fieldDeletionConfirm("Remove ingredient").then(t=>{t&&this.recipeContent.ingredients.splice(e,1)}):this.recipeContent.ingredients.splice(e,1)},addInstruction(){this.recipeContent.instructions.push("")},removeInstruction(e){this.recipeContent.instructions[e].length?this.fieldDeletionConfirm("Remove instruction").then(t=>{t&&this.recipeContent.instructions.splice(e,1)}):this.recipeContent.instructions.splice(e,1)},getCombinationTitle(e){return this.recipes.filter(t=>t.id===e)[0].title},showCombinations(){var e=[...this.recipeContent.combinations,this.recipeContent.id],t=this.recipes.filter(t=>!e.includes(t.id));this.$showModal(I,{props:{title:"Select a recipe",recipes:t}}).then(e=>{e&&this.recipeContent.combinations.push(e)})},removeCombination(e){var t=this.recipeContent.combinations.indexOf(e);this.fieldDeletionConfirm("Remove combination").then(r=>{if(r){this.recipeContent.combinations.splice(t,1);this.unSyncCombinations.push(e)}})},addNote(){this.recipeContent.notes.push("")},removeNote(e){this.recipeContent.notes[e].length?this.fieldDeletionConfirm("Remove note").then(t=>{t&&this.recipeContent.notes.splice(e,1)}):this.recipeContent.notes.splice(e,1)},clearEmptyFields(){this.recipeContent.title||(this.recipeContent.title="Untitled Recipe");this.recipeContent.yield.quantity||(this.recipeContent.yield.quantity=1);this.recipeContent.ingredients=this.recipeContent.ingredients.filter(e=>e.item);var e=this;function clearEmpty(t){e.recipeContent[t]=e.recipeContent[t].filter(e=>e)}clearEmpty("instructions");clearEmpty("notes")},saveOperation(){this.saving=this.modalOpen=!0;this.clearEmptyFields();this.recipeContent.lastModified=new Date;if(this.cacheImagePath){var e=p.path.join(p.knownFolders.documents().getFolder("EnRecipes").getFolder("Images").path,"".concat(this.getRandomID(),".jpg")),t=p.File.fromPath(this.cacheImagePath).readSync();p.File.fromPath(e).writeSync(t);this.recipeContent.imageSrc=e;p.knownFolders.temp().clear()}this.recipeContent.imageSrc?this.tempRecipeContent.imageSrc&&this.tempRecipeContent.imageSrc!==this.recipeContent.imageSrc&&Object(p.getFileAccess)().deleteFile(this.tempRecipeContent.imageSrc):this.tempRecipeContent.imageSrc&&Object(p.getFileAccess)().deleteFile(this.tempRecipeContent.imageSrc);this.unSyncCombinationsAction({id:this.recipeID,combinations:this.unSyncCombinations});this.saveRecipe()},saveRecipe(){if(this.recipeID)this.overwriteRecipeAction({id:this.recipeID,recipe:this.recipeContent});else{this.recipeContent.id=this.newRecipeID;this.addRecipeAction({id:this.newRecipeID,recipe:this.recipeContent})}setTimeout(()=>{this.saving=!1},100);this.navigateBackController()}}),created(){setTimeout(e=>{this.setCurrentComponentAction("EditRecipe")},500);this.title=this.recipeID?"Edit recipe":"New recipe";if(this.recipeID){var e=this.recipes.filter(e=>e.id===this.recipeID)[0];Object.assign(this.recipeContent,JSON.parse(JSON.stringify(e)));Object.assign(this.tempRecipeContent,JSON.parse(JSON.stringify(this.recipeContent)))}else{this.selectedCategory&&(this.recipeContent.category=this.selectedCategory);this.filterFavorites&&(this.recipeContent.isFavorite=!0);Object.assign(this.tempRecipeContent,JSON.parse(JSON.stringify(this.recipeContent)));this.newRecipeID=this.getRandomID()}this.hijackBackEvent()}},Z=J,X=Object(A.a)(Z,EditRecipevue_type_template_id_2dd987d3_render,[],!1,null,null,null);X.options.__file="components/EditRecipe.vue";var ee=X.exports;function EnRecipesvue_type_script_lang_js_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})));r.push.apply(r,a)}return r}function EnRecipesvue_type_script_lang_js_objectSpread(e){for(var t=1;t({searchQuery:"",viewIsScrolled:!1,showSearch:!1,rightAction:!1,sortType:"Natural order",deletionDialogActive:!1,showFAB:!1}),computed:EnRecipesvue_type_script_lang_js_objectSpread(EnRecipesvue_type_script_lang_js_objectSpread({},Object(n.c)(["icon","recipes","currentComponent"])),{},{filteredRecipes(){return this.filterFavorites?this.recipes.filter(e=>e.isFavorite&&e.title.toLowerCase().includes(this.searchQuery)):this.filterTrylater?this.recipes.filter(e=>!e.tried&&e.title.toLowerCase().includes(this.searchQuery)):this.selectedCategory?this.recipes.filter(e=>e.category===this.selectedCategory&&e.title.toLowerCase().includes(this.searchQuery)):this.recipes.filter(e=>e.title.toLowerCase().includes(this.searchQuery))},noResultFor(){return this.selectedCategory?" in this category":this.filterFavorites?" in your favorites":this.filterTrylater?" in your try later list":""}}),methods:EnRecipesvue_type_script_lang_js_objectSpread(EnRecipesvue_type_script_lang_js_objectSpread({},Object(n.b)(["setCurrentComponentAction","deleteRecipeAction"])),{},{onPageLoad(){this.filterFavorites?this.setComponent("Favorites"):this.filterTrylater?this.setComponent("Try Later"):this.selectedCategory?this.setComponent(this.selectedCategory):this.setComponent("EnRecipes");this.showFAB=!0},showDrawer(){q.showDrawer()},openSearch(){this.showSearch=!0;this.showFAB=!1;this.hijackLocalBackEvent()},closeSearch(){this.searchQuery&&this.updateFilter();this.searchQuery="";a.Utils.ad.dismissSoftInput();this.showSearch=!1;this.showFAB=!0;this.releaseLocalBackEvent()},setComponent(e){this.setCurrentComponentAction(e);this.hijackGlobalBackEvent()},clearSearch(){""!==this.searchQuery&&this.updateFilter()},formattedTotalTime(e,t){var r=e.split(":"),a=t.split(":"),o=parseInt(r[0])+parseInt(a[0]),i=parseInt(r[1])+parseInt(a[1]);return{time:o?i?"".concat(o," hr ").concat(i," min"):"".concat(o," hr"):"".concat(i," min"),duration:"".concat(o).concat(i)}},onScroll(e){this.viewIsScrolled=!!e.scrollOffset},hijackLocalBackEvent(){this.releaseGlobalBackEvent();o.AndroidApplication.on(o.AndroidApplication.activityBackPressedEvent,this.searchBackEvent)},releaseLocalBackEvent(){o.AndroidApplication.off(o.AndroidApplication.activityBackPressedEvent,this.searchBackEvent);this.hijackGlobalBackEvent()},searchBackEvent(e){e.cancel=!0;this.closeDrawer();this.closeSearch()},addRecipe(){this.showFAB=!1;this.releaseGlobalBackEvent();this.$navigateTo(ee,{props:{selectedCategory:this.selectedCategory,filterFavorites:this.filterFavorites}})},viewRecipe(e){this.showFAB=!1;this.$navigateTo(D,{props:{filterTrylater:this.filterTrylater,recipeID:e},backstackVisible:!1})},sortDialog(){this.releaseGlobalBackEvent();this.$showModal(R,{props:{title:"Sort by",list:["Natural order","Title","Duration","Last modified"],height:"192"}}).then(e=>{if(e&&"Cancel"!==e&&this.sortType!==e){this.sortType=e;this.updateSort()}this.hijackGlobalBackEvent()})},updateSort(){var e=this.$refs.listView.nativeView;e.sortingFunction=void 0;e.sortingFunction=this.sortFunction},sortFunction(e,t){var r=e.title.toLowerCase().localeCompare(t.title.toLowerCase(),"en",{ignorePunctuation:!0}),a=this.formattedTotalTime(e.prepTime,e.cookTime).duration,o=this.formattedTotalTime(t.prepTime,t.cookTime).duration,i=new Date(e.lastModified),l=new Date(t.lastModified);switch(this.sortType){case"Title":return r>0?-1:r<0?1:0;case"Duration":return a>o?-1:al?1:0;default:return 0}},updateFilter(){var e=this.$refs.listView.nativeView;setTimeout(t=>{e.filteringFunction=void 0;e.filteringFunction=this.filterFunction},1)},filterFunction(e){return this.filterFavorites?!!e.isFavorite&&e.title.toLowerCase().includes(this.searchQuery):this.filterTrylater?!e.tried&&e.title.toLowerCase().includes(this.searchQuery):this.selectedCategory?e.category===this.selectedCategory&&e.title.toLowerCase().includes(this.searchQuery):e.title.toLowerCase().includes(this.searchQuery)},onSwiping(e){var{data:t,object:r}=e,a=t.swipeLimits,o=r,i=o.getViewById("delete-action");a.right=i.getMeasuredWidth()-12;a.threshold=a.right-6;if(t.x<-a.threshold){this.rightAction=!0;o.notifySwipeToExecuteFinished()}},onSwipeEnded(e){var{index:t}=e,r=this.recipes[t].id;this.rightAction&&!this.deletionDialogActive&&this.deleteRecipe(t,r);this.rightAction=!1},deleteRecipe(e,t){this.deletionDialogActive=!0;this.$showModal(z,{props:{title:"Delete recipe",description:'Are you sure you want to delete the recipe "'.concat(this.recipes[e].title,'"?'),cancelButtonText:"CANCEL",okButtonText:"DELETE"}}).then(r=>{r&&this.deleteRecipeAction({index:e,id:t});this.deletionDialogActive=!1})}}),mounted(){this.showFAB=!0}},re=te,ae=Object(A.a)(re,EnRecipesvue_type_template_id_5150c21e_render,[],!1,null,null,null);ae.options.__file="components/EnRecipes.vue";var oe=ae.exports,MealPlannervue_type_template_id_ed5c11f8_render=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("Page",{on:{loaded:e.onPageLoad}},[r("ActionBar",{attrs:{flat:"true"}},[r("GridLayout",{attrs:{rows:"*",columns:"auto, *, auto"}},[r("MDButton",{staticClass:"bx left",attrs:{variant:"text",text:e.icon.menu,automationText:"Back",col:"0"},on:{tap:e.showDrawer}}),r("Label",{staticClass:"title orkm",attrs:{text:"Meal Planner",col:"1"}}),r("MDButton",{staticClass:"bx left",attrs:{variant:"text",text:e.icon.today,automationText:"today",col:"2"},on:{tap:e.goToToday}})],1)],1),r("GridLayout",{attrs:{rows:"280, *"}},[r("RadCalendar",{ref:"calendar",staticClass:"orkm",attrs:{androidElevation:e.viewIsScrolled?4:0,row:"0",locale:"en-US",viewMode:e.viewMode,transitionMode:e.transitionMode,selectionMode:e.selectionMode,eventsViewMode:e.eventsViewMode,eventSource:e.getMealPlans},on:{loaded:e.onCalendarLoad,dateSelected:e.onDateSelected}}),r("ScrollView",{attrs:{row:"1",width:"100%",height:"100%"},on:{scroll:e.onScroll}},[r("StackLayout",{staticClass:"dayPlan"},e._l(e.mealTimes,(function(t,a){return r("StackLayout",{key:"mealType"+a,staticClass:"plansContainer",class:t},[r("GridLayout",{staticClass:"header",attrs:{columns:"*, auto"}},[r("Label",{staticClass:"periodLabel orkm",attrs:{col:"0",text:t}}),r("MDButton",{staticClass:"bx addMeal",attrs:{col:"1",variant:"text",text:e.icon.plus},on:{tap:function(r){return e.addRecipe(t)}}})],1),e._l(e.getRecipes[t],(function(a,o){return r("GridLayout",{key:t+o,staticClass:"recipes",attrs:{columns:"*, auto"}},[r("MDRipple",{on:{tap:function(t){return e.viewRecipe(a)}}}),r("Label",{staticClass:"recipeTitle",attrs:{verticalAlignment:"center",col:"0",text:e.getRecipeTitle(a),textWrap:"true"}}),r("MDButton",{staticClass:"bx closeBtn",attrs:{variant:"text",col:"1",text:e.icon.close},on:{tap:function(r){return e.removeRecipe(t,a)}}})],1)}))],2)})),1)],1)],1)],1)};MealPlannervue_type_template_id_ed5c11f8_render._withStripped=!0;var ie=r(38);function MealPlannervue_type_script_lang_js_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})));r.push.apply(r,a)}return r}function MealPlannervue_type_script_lang_js_objectSpread(e){for(var t=1;t({viewIsScrolled:!1,appTheme:"Light",mealTimes:["breakfast","lunch","dinner","snacks"],eventList:[],selectedDayMealPlans:[],viewMode:ie.h.Month,transitionMode:ie.g.Slide,selectionMode:ie.f.Single,eventsViewMode:ie.c.None,color:{white:new g.a("#ffffff"),gray1:new g.a("#f1f3f5"),gray2:new g.a("#e9ecef"),gray3:new g.a("#dee2e6"),gray4:new g.a("#ced4da"),gray5:new g.a("#adb5bd"),gray6:new g.a("#868e96"),gray7:new g.a("#495057"),gray8:new g.a("#343a40"),gray9:new g.a("#212529"),black:new g.a("#111111"),orange:new g.a("#ff5200"),breakfast:"#ffb180",lunch:"#ceff80",dinner:"#80ceff",snacks:"#b180ff"},appFontRegular:"Orkney-Regular",appFontMedium:"Orkney-Medium",selectedDate:null}),computed:MealPlannervue_type_script_lang_js_objectSpread(MealPlannervue_type_script_lang_js_objectSpread({},Object(n.c)(["icon","recipes","mealPlans"])),{},{isLightMode(){return"Light"===this.appTheme},monthViewStyle(){var e=new ie.e;e.backgroundColor=this.isLightMode?this.color.gray1:this.color.gray9;e.showTitle=!0;e.showWeekNumbers=!1;e.showDayNames=!0;var t=new ie.j;t.cellBackgroundColor=this.isLightMode?this.color.gray2:this.color.black;t.cellBorderWidth=1;t.cellBorderColor=this.isLightMode?this.color.gray2:this.color.black;t.cellTextSize=16;t.cellTextColor=this.isLightMode?this.color.gray9:this.color.gray1;t.cellTextFontName=this.appFontMedium;e.titleCellStyle=t;var r=new ie.i;r.cellBackgroundColor=this.isLightMode?this.color.gray2:this.color.black;r.cellTextColor=this.isLightMode?this.color.gray9:this.color.gray1;r.cellBorderWidth=1;r.cellBorderColor=this.isLightMode?this.color.gray2:this.color.black;r.cellTextSize=10;r.cellAlignment=ie.a.Center;r.cellTextFontName=this.appFontMedium;e.dayNameCellStyle=r;var a=new ie.j;a.showEventsText=!1;a.eventTextColor=this.color.orange;a.eventFontName=this.appFontRegular;a.eventFontStyle=ie.d.Bold;a.eventTextSize=8;a.cellTextSize=16;a.cellTextColor=this.isLightMode?this.color.gray9:this.color.gray1;a.cellAlignment=ie.a.Bottom;a.cellBackgroundColor=this.isLightMode?this.color.gray1:this.color.gray9;a.cellTextFontName=this.appFontRegular;a.cellBorderWidth=1;a.cellBorderColor=this.isLightMode?this.color.gray2:this.color.black;e.dayCellStyle=a;var o=new ie.j;o.cellBackgroundColor=this.isLightMode?this.color.gray1:this.color.gray9;o.cellTextColor=this.color.orange;o.cellBorderWidth=1;o.cellTextFontName=this.appFontMedium;o.cellTextFontStyle=ie.d.Bold;o.cellTextSize=16;o.cellAlignment=ie.a.Bottom;o.cellBorderColor=this.isLightMode?this.color.gray2:this.color.black;e.todayCellStyle=o;var i=new ie.j;i.eventTextSize=1;i.cellAlignment=ie.a.Bottom;i.cellBackgroundColor=this.isLightMode?this.color.white:this.color.gray8;i.cellBorderWidth=1;i.cellBorderColor=this.color.orange;i.cellTextColor=this.isLightMode?this.color.gray9:this.color.gray1;i.cellTextFontName=this.appFontMedium;i.cellTextFontStyle=ie.d.Bold;i.cellTextSize=16;e.selectedDayCellStyle=i;return e},getRecipes(){return this.selectedDayMealPlans.length?this.selectedDayMealPlans.reduce((e,t)=>{switch(t.startDate.getHours()){case 0:e.breakfast=[...e.breakfast||[],t.title];break;case 5:e.lunch=[...e.lunch||[],t.title];break;case 10:e.dinner=[...e.dinner||[],t.title];break;case 15:e.snacks=[...e.snacks||[],t.title]}return e},{}):0},getMealPlans(){var getDate=e=>{var t=new Date(e),r=new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours());return r},e=[];this.mealPlans.forEach(t=>{var r=new ie.b(t.title,getDate(t.startDate),getDate(t.endDate),!1,new g.a(t.eventColor));e=[...e,r]});return e}}),methods:MealPlannervue_type_script_lang_js_objectSpread(MealPlannervue_type_script_lang_js_objectSpread({},Object(n.b)(["setCurrentComponentAction","initializeMealPlans","addMealPlanAction","deleteMealPlanAction"])),{},{onPageLoad(e){this.setCurrentComponentAction("MealPlanner")},onCalendarLoad(e){e.object.monthViewStyle=this.monthViewStyle;e.object.android.getGestureManager().setDoubleTapToChangeDisplayMode(!1);e.object.android.getGestureManager().setPinchCloseToChangeDisplayMode(!1);null==e.object.selectedDate&&(e.object.selectedDate=new Date);e.object.nativeView.getEventAdapter()&&e.object.nativeView.getEventAdapter().getRenderer().setEventRenderMode(com.telerik.widget.calendar.events.EventRenderMode.Shape)},showDrawer(){q.showDrawer()},onScroll(e){this.viewIsScrolled=!!e.scrollY},getDate(e){var t=new Date;t.setDate(t.getDate()+e);return t.getTime()},getDateString(e){var t=new Date;t.setDate(t.getDate()+e);return t.toDateString().slice(0,-5)},getRecipeTitle(e){var t=this.recipes.filter(t=>t.id===e)[0];return t?t.title:"[Deleted Recipe]"},viewRecipe(e){var t=this.recipes.filter(t=>t.id===e)[0];t&&this.$navigateTo(D,{props:{filterTrylater:!0,recipeID:e},backstackVisible:!1})},addRecipe(e){var t=this.recipes.filter(t=>!this.getRecipes[e]||!this.getRecipes[e].includes(t.id));this.$showModal(I,{props:{title:"Select a recipe",recipes:t}}).then(t=>{t&&this.newEvent(t,e)})},removeRecipeConfirm(e){return this.$showModal(z,{props:{title:"Remove recipe from ".concat(e),cancelButtonText:"CANCEL",okButtonText:"REMOVE"}})},removeRecipe(e,t){var r={breakfast:0,lunch:5,dinner:10,snacks:15};this.removeRecipeConfirm(e).then(a=>{if(a){var o=this.selectedDayMealPlans.filter(a=>a.startDate.getHours()===r[e]&&a.title===t)[0],i={title:o.title,startDate:o.startDate};this.deleteMealPlanAction(i);this.updateSelectedDatePlans()}})},updateSelectedDatePlans(){var e=new Date(this.selectedDate);setTimeout(()=>{this.selectedDayMealPlans=this.$refs.calendar.nativeView.getEventsForDate(e)},100)},onDateSelected(e){this.selectedDate=e.date;this.selectedDayMealPlans=e.object.getEventsForDate(e.date)},newEvent(e,t){var r=new Date(this.selectedDate),{y:a,m:o,d:i}={y:r.getFullYear(),m:r.getMonth(),d:r.getDate()},l={breakfast:{start:new Date(a,o,i,0),end:new Date(a,o,i,4)},lunch:{start:new Date(a,o,i,5),end:new Date(a,o,i,9)},dinner:{start:new Date(a,o,i,10),end:new Date(a,o,i,14)},snacks:{start:new Date(a,o,i,15),end:new Date(a,o,i,19)}},n=new ie.b(e,l[t].start,l[t].end,!1,new g.a(this.color[t]));this.addMealPlanAction({event:n,eventColor:this.color[t]});this.updateSelectedDatePlans()},goToToday(){var e=new Date;this.$refs.calendar.goToDate(e);this.$refs.calendar.nativeView.selectedDate=e}}),created(){this.appTheme=a.ApplicationSettings.getString("appTheme","Light");var e=new Date;e.setHours(0,0,0);this.selectedDate=e}},ne=le,se=Object(A.a)(ne,MealPlannervue_type_template_id_ed5c11f8_render,[],!1,null,null,null);se.options.__file="components/MealPlanner.vue";var pe=se.exports,Settingsvue_type_template_id_6c938a04_render=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("Page",{on:{loaded:e.onPageLoad}},[r("ActionBar",{attrs:{androidElevation:e.viewIsScrolled?4:0}},[r("GridLayout",{attrs:{rows:"*",columns:"auto, *"}},[r("MDButton",{staticClass:"bx left",attrs:{variant:"text",text:e.icon.menu,automationText:"Back",col:"0"},on:{tap:e.showDrawer}}),r("Label",{staticClass:"title orkm",attrs:{text:"Settings",col:"1"}})],1)],1),r("ScrollView",{on:{scroll:e.onScroll}},[r("StackLayout",{staticClass:"main-container"},[r("Label",{staticClass:"group-header orkm",attrs:{text:"Interface"}}),r("GridLayout",{staticClass:"option",attrs:{columns:"auto, *"}},[r("MDRipple",{attrs:{colSpan:"2"},on:{tap:e.selectThemes}}),r("Label",{staticClass:"bx",attrs:{col:"0",verticalAlignment:"center",text:e.icon.theme}}),r("StackLayout",{attrs:{col:"1"}},[r("Label",{attrs:{text:"Theme"}}),r("Label",{staticClass:"info",attrs:{text:e.appTheme}})],1)],1),r("StackLayout",{staticClass:"hr m-10"}),r("Label",{staticClass:"group-header orkm",attrs:{text:"Database"}}),r("GridLayout",{staticClass:"option",attrs:{columns:"auto, *"}},[r("MDRipple",{attrs:{colSpan:"2"},on:{tap:e.exportCheck}}),r("Label",{staticClass:"bx",attrs:{col:"0",text:e.icon.export}}),r("StackLayout",{attrs:{col:"1"}},[r("Label",{attrs:{text:"Export a full backup"}}),e.backupInProgress?r("GridLayout",{staticClass:"progressContainer",attrs:{columns:"*, 64"}},[r("MDProgress",{attrs:{col:"0",value:e.backupProgress,maxValue:"100"}}),r("Label",{attrs:{col:"1",text:" "+e.backupProgress+"%"}})],1):r("Label",{staticClass:"info",attrs:{text:"Generates a zip file that contains all your data. This file can be imported back.",textWrap:"true"}})],1)],1),r("GridLayout",{staticClass:"option",attrs:{columns:"auto, *"}},[r("MDRipple",{attrs:{colSpan:"2"},on:{tap:e.importCheck}}),r("Label",{staticClass:"bx",attrs:{col:"0",text:e.icon.import}}),r("StackLayout",{attrs:{col:"1"}},[r("Label",{attrs:{text:"Import from backup"}}),r("Label",{staticClass:"info",attrs:{text:"Supports full backups exported by this app",textWrap:"true"}})],1)],1)],1)],1)],1)};Settingsvue_type_template_id_6c938a04_render._withStripped=!0;var ce=r(126);function Settingsvue_type_script_lang_js_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})));r.push.apply(r,a)}return r}function Settingsvue_type_script_lang_js_objectSpread(e){for(var t=1;t({viewIsScrolled:!1,appTheme:"Light",backupProgress:0,backupInProgress:!1}),computed:Settingsvue_type_script_lang_js_objectSpread({},Object(n.c)(["icon","recipes","userCategories","userYieldUnits","mealPlans","currentComponent"])),methods:Settingsvue_type_script_lang_js_objectSpread(Settingsvue_type_script_lang_js_objectSpread({},Object(n.b)(["setCurrentComponentAction","importCategoriesAction","importYieldUnitsAction","importRecipesAction","importMealPlansAction"])),{},{onPageLoad(){this.setCurrentComponentAction("Settings")},showDrawer(){q.showDrawer()},onScroll(e){this.viewIsScrolled=!!e.scrollY},selectThemes(){this.$showModal(R,{props:{title:"Theme",list:["Light","Dark"],height:"96"}}).then(e=>{e&&"Cancel"!==e&&this.appTheme!==e&&this.$showModal(z,{props:{title:"Reload required",description:"EnRecipes needs to be reloaded for the theme change to take effect.",cancelButtonText:"CANCEL",okButtonText:"RELOAD"}}).then(t=>{if(t){this.appTheme=e;a.ApplicationSettings.setString("appTheme",e);setTimeout(e=>q.restartApp(),250)}})})},exportCheck(){this.recipes.length?this.permissionCheck(this.permissionConfirmation,"EnRecipes requires storage permission in order to backup your data to this device.",this.exportBackup):l.makeText("Add at least one recipe to perform a backup","long").show()},exportBackup(){this.exportFiles("create");var e=new Date,t=e.getFullYear()+"-"+("0"+(e.getMonth()+1)).slice(-2)+"-"+("0"+e.getDate()).slice(-2)+"_"+("0"+e.getHours()).slice(-2)+("0"+e.getMinutes()).slice(-2)+("0"+e.getSeconds()).slice(-2),r=p.Folder.fromPath(android.os.Environment.getExternalStorageDirectory().getAbsolutePath()).getFolder("Download").path,a=p.path.join(p.knownFolders.documents().path,"EnRecipes"),o=p.path.join(r,"EnRecipes-Backup_".concat(t,".zip"));this.backupInProgress=!0;ce.a.zip({directory:a,archive:o,onProgress:e=>{this.backupProgress=e}}).then(e=>{l.makeText("Backup file successfully saved to Download folder","long").show();this.exportFiles("delete")})},exportFiles(e){var t,r,a,o=p.path.join(p.knownFolders.documents().path,"EnRecipes"),i=p.File.fromPath(p.path.join(o,"recipes.json"));this.userCategories.length&&(t=p.File.fromPath(p.path.join(o,"userCategories.json")));this.userYieldUnits.length&&(r=p.File.fromPath(p.path.join(o,"userYieldUnits.json")));this.mealPlans.length&&(a=p.File.fromPath(p.path.join(o,"mealPlans.json")));switch(e){case"create":this.writeDataToFile(i,this.recipes);this.userCategories.length&&this.writeDataToFile(t,this.userCategories);this.userYieldUnits.length&&this.writeDataToFile(r,this.userYieldUnits);this.mealPlans.length&&this.writeDataToFile(a,this.mealPlans);break;case"delete":i.remove();this.userCategories.length&&t.remove();this.userYieldUnits.length&&r.remove();this.mealPlans.length&&a.remove()}},writeDataToFile(e,t){e.writeText(JSON.stringify(t))},importCheck(){this.permissionCheck(this.permissionConfirmation,"EnRecipes requires storage permission in order to import your data from a previous backup.",this.openFilePicker)},openFilePicker(){u.create({mode:"single",extensions:["zip"]}).present().then(e=>{l.makeText("Processing...").show();var t=e[0];this.validateZipContent(t)})},importDataToDB(e,t,r){switch(t){case"EnRecipesDB":this.importImages(r);this.importRecipesAction(e);break;case"userCategoriesDB":this.importCategoriesAction(e);break;case"userYieldUnitsDB":this.importYieldUnitsAction(e);break;case"mealPlansDB":this.importMealPlansAction(e)}},isFileDataValid(e){e.forEach((e,t)=>{p.File.exists(e.path)&&p.File.fromPath(e.path).readText().then(t=>{Array.isArray(JSON.parse(t))&&this.importDataToDB(JSON.parse(t),e.db,e.zipPath)})})},validateZipContent(e){ce.a.unzip({archive:e,overwrite:!0}).then(t=>{var r=t+"/EnRecipes",a=r+"/recipes.json",o=r+"/userCategories.json",i=r+"/userYieldUnits.json",n=r+"/mealPlans.json";if(p.Folder.exists(r))this.isFileDataValid([{zipPath:e,path:a,db:"EnRecipesDB"},{zipPath:e,path:o,db:"userCategoriesDB"},{zipPath:e,path:i,db:"userYieldUnitsDB"},{zipPath:e,path:n,db:"mealPlansDB"}]);else{p.Folder.fromPath(t).remove();l.makeText("Import failed. Backup file is incorrect or corrupt","long").show()}p.Folder.exists(r+"/Images")&&this.importImages(r+"/Images")})},importImages(e){var t=p.knownFolders.documents().path;ce.a.unzip({archive:e,directory:t,overwrite:!0}).then(e=>{l.makeText("Import successful","long").show();this.$navigateBack()})},permissionCheck(e,t,r){a.ApplicationSettings.getBoolean("storagePermissionAsked",!1)?d.a("photo").then(a=>{var o=a[Object.keys(a)[0]];"authorized"!==o?e(t).then(e=>{e&&q.openAppSettingsPage()}):r()}):e(t).then(e=>{e&&d.b("photo").then(e=>{var t=e[Object.keys(e)[0]];"authorized"===t&&r();"denied"!==t?a.ApplicationSettings.setBoolean("storagePermissionAsked",!0):l.makeText("Permission denied").show()})})},permissionConfirmation(e){return this.$showModal(z,{props:{title:"Grant permission",description:e,cancelButtonText:"NOT NOW",okButtonText:"CONTINUE"}})}}),mounted(){this.appTheme=a.ApplicationSettings.getString("appTheme","Light")}},ue=de,ye=Object(A.a)(ue,Settingsvue_type_template_id_6c938a04_render,[],!1,null,null,null);ye.options.__file="components/Settings.vue";var ge=ye.exports,Aboutvue_type_template_id_95337e7c_render=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("Page",{on:{loaded:e.onPageLoad}},[r("ActionBar",{attrs:{androidElevation:e.viewIsScrolled?4:0}},[r("GridLayout",{attrs:{rows:"*",columns:"auto, *"}},[r("MDButton",{staticClass:"bx",attrs:{variant:"text",text:e.icon.menu,automationText:"Back",col:"0"},on:{tap:e.showDrawer}}),r("Label",{staticClass:"title orkm",attrs:{text:"About",col:"1"}})],1)],1),r("ScrollView",{on:{scroll:e.onScroll}},[r("StackLayout",{staticClass:"main-container"},[r("StackLayout",{staticClass:"appIconContainer",attrs:{horizontalAlignment:"center",orientation:"horizontal"}},[r("Image",{staticClass:"appIcon",attrs:{src:"res://logo",stretch:"aspectFit"}})],1),r("StackLayout",{staticClass:"m-8"}),r("GridLayout",{staticClass:"option",attrs:{columns:"auto, *"}},[r("Label",{staticClass:"bx",attrs:{col:"0",text:e.icon.info}}),r("StackLayout",{attrs:{col:"1"}},[r("Label",{attrs:{text:"Version"}}),r("Label",{staticClass:"info",attrs:{text:e.getVersion,textWrap:"true"}})],1)],1),r("GridLayout",{staticClass:"option",attrs:{columns:"auto, *"}},[r("MDRipple",{attrs:{colSpan:"2"},on:{tap:function(t){return e.openURL("https://github.com/vishnuraghavb/enrecipes")}}}),r("Label",{staticClass:"bx",attrs:{col:"0",text:e.icon.link}}),r("Label",{attrs:{verticalAlignment:"center",col:"1",text:"View project on GitHub"}})],1),r("GridLayout",{staticClass:"option",attrs:{columns:"auto, *"}},[r("MDRipple",{attrs:{colSpan:"2"},on:{tap:function(t){return e.openURL("https://t.me/enrecipes")}}}),r("Label",{staticClass:"bx",attrs:{col:"0",text:e.icon.telegram}}),r("StackLayout",{attrs:{col:"1"}},[r("Label",{attrs:{text:"Join the Telegram group"}}),r("Label",{staticClass:"info",attrs:{text:"for reporting issues, suggestions and feedback",textWrap:"true"}})],1)],1),r("StackLayout",{staticClass:"hr m-10"}),r("Label",{staticClass:"group-header orkm",attrs:{text:"Author"}}),r("GridLayout",{staticClass:"option",attrs:{columns:"auto, *"}},[r("MDRipple",{attrs:{colSpan:"2"},on:{tap:function(t){return e.openURL("https://www.vishnuraghav.com")}}}),r("Label",{staticClass:"bx",attrs:{col:"0",text:e.icon.user}}),r("Label",{attrs:{verticalAlignment:"center",col:"1",text:"Vishnu Raghav B"}})],1),r("GridLayout",{staticClass:"option",attrs:{columns:"auto, *"}},[r("MDRipple",{attrs:{colSpan:"2"},on:{tap:function(t){return e.openURL("https://github.com/vishnuraghavb")}}}),r("Label",{staticClass:"bx",attrs:{col:"0",text:e.icon.link}}),r("Label",{attrs:{verticalAlignment:"center",col:"1",text:"Follow on GitHub"}})],1),r("GridLayout",{staticClass:"option",attrs:{columns:"auto, *"}},[r("MDRipple",{attrs:{colSpan:"2"},on:{tap:function(t){return e.openURL("https://mastodon.social/@vishnuraghavb")}}}),r("Label",{staticClass:"bx",attrs:{col:"0",text:e.icon.link}}),r("Label",{attrs:{verticalAlignment:"center",col:"1",text:"Follow on Mastodon"}})],1)],1)],1)],1)};Aboutvue_type_template_id_95337e7c_render._withStripped=!0;function Aboutvue_type_script_lang_js_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})));r.push.apply(r,a)}return r}function Aboutvue_type_script_lang_js_objectSpread(e){for(var t=1;t({viewIsScrolled:!1,appTheme:"Light"}),methods:Aboutvue_type_script_lang_js_objectSpread(Aboutvue_type_script_lang_js_objectSpread({},Object(n.b)(["setCurrentComponentAction"])),{},{onPageLoad(){this.setCurrentComponentAction("About")},showDrawer(){q.showDrawer()},onScroll(e){this.viewIsScrolled=!!e.scrollY},openURL(e){a.Utils.openUrl(e)}})},he=me,ve=Object(A.a)(he,Aboutvue_type_template_id_95337e7c_render,[],!1,null,null,null);ve.options.__file="components/About.vue";var be=ve.exports;function Appvue_type_script_lang_js_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})));r.push.apply(r,a)}return r}function Appvue_type_script_lang_js_objectSpread(e){for(var t=1;t({selectedCategory:null,filterFavorites:!1,filterTrylater:!1,MealPlanner:pe,topmenu:[{title:"EnRecipes",component:"EnRecipes",icon:"home"},{title:"Try Later",component:"Try Later",icon:"trylater"},{title:"Favorites",component:"Favorites",icon:"heart"}],bottommenu:[{title:"Settings",component:ge,icon:"cog"},{title:"About",component:be,icon:"info"}],editCategory:!1,appTheme:"Light"}),components:{EnRecipes:oe,MealPlanner:pe},computed:Appvue_type_script_lang_js_objectSpread(Appvue_type_script_lang_js_objectSpread({},Object(n.c)(["icon","recipes","categories","yieldUnits","mealPlans","currentComponent"])),{},{categoriesWithRecipes(){var e=this.recipes.map(e=>e.category);return[...new Set(e)]}}),methods:Appvue_type_script_lang_js_objectSpread(Appvue_type_script_lang_js_objectSpread({},Object(n.b)(["setCurrentComponentAction","initializeRecipes","initializeCategories","initializeYieldUnits","initializeMealPlans","renameCategoryAction"])),{},{onPageLoad(){if("Light"===this.appTheme){var e=android.view.View,t=a.Application.android.startActivity.getWindow(),r=t.getDecorView();r.setSystemUiVisibility(e.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR)}},onPageUnload(){},toggleCatEdit(){this.editCategory=!this.editCategory;this.selectedCategory&&this.setComponent("EnRecipes");this.filterFavorites=this.filterTrylater=!1;this.selectedCategory=null;this.$refs.enrecipes.updateFilter()},setComponent(e){this.setCurrentComponentAction(e)},renameCategory(e){this.releaseGlobalBackEvent();this.$showModal(Q,{props:{title:"Rename category",text:e,action:"RENAME"}}).then(t=>{this.hijackGlobalBackEvent();if(t.length){this.renameCategoryAction({current:e,updated:t});this.editCategory=!1;this.navigateTo(t,!1,!0)}})},setSelectedCategory(e){this.selectedCategory=e.item;this.closeDrawer()},closeDrawer(){this.$refs.drawer.nativeView.closeDrawer()},hijackGlobalBackEvent(){o.AndroidApplication.on(o.AndroidApplication.activityBackPressedEvent,this.globalBackEvent)},releaseGlobalBackEvent(){o.AndroidApplication.off(o.AndroidApplication.activityBackPressedEvent,this.globalBackEvent)},globalBackEvent(e){function preventDefault(){e.cancel=!0}if(this.$refs.drawer&&this.$refs.drawer.nativeView.getIsOpen()){preventDefault();this.closeDrawer();this.editCategory=!1}else if(["Favorites","Try Later",this.selectedCategory].includes(this.currentComponent)){preventDefault();this.setComponent("EnRecipes");this.filterFavorites=this.filterTrylater=!1;this.selectedCategory=null;this.$refs.enrecipes.updateFilter();this.releaseGlobalBackEvent()}},navigateTo(e,t,r){if(t){this.$navigateTo(e,{frame:"main-frame",backstackVisible:!1});this.closeDrawer()}else if(!this.editCategory||!r){this.releaseGlobalBackEvent();this.hijackGlobalBackEvent();this.setComponent(e);this.$navigateBack({frame:"main-frame",backstackVisible:!1});this.filterFavorites="Favorites"===e;this.filterTrylater="Try Later"===e;this.selectedCategory=r?e:null;this.$refs.enrecipes.updateFilter();this.closeDrawer()}this.editCategory=!1},donate(){a.Utils.openUrl("https://www.vishnuraghav.com/donate/")}}),created(){this.appTheme=a.ApplicationSettings.getString("appTheme","Light");setTimeout(e=>{i.a.setMode(i.a[this.appTheme])},10);this.recipes.length||this.initializeRecipes();this.categories.length||this.initializeCategories();this.yieldUnits.length||this.initializeYieldUnits();this.mealPlans.length||this.initializeMealPlans()}},we=fe,Ce=Object(A.a)(we,render,[],!1,null,null,null);Ce.options.__file="components/App.vue";t.a=Ce.exports},323:function(e,t,r){var a={"./app.scss":171};function webpackContext(e){var t=webpackContextResolve(e);return r(t)}function webpackContextResolve(e){if(!r.o(a,e)){var t=new Error("Cannot find module '"+e+"'");t.code="MODULE_NOT_FOUND";throw t}return a[e]}webpackContext.keys=function webpackContextKeys(){return Object.keys(a)};webpackContext.resolve=webpackContextResolve;e.exports=webpackContext;webpackContext.id=323},324:function(e,t,r){var a={"./app.scss":171,"./main.js":146,"./shared/utils.js":60,"./store.js":139};function webpackContext(e){var t=webpackContextResolve(e);return r(t)}function webpackContextResolve(e){if(!r.o(a,e)){var t=new Error("Cannot find module '"+e+"'");t.code="MODULE_NOT_FOUND";throw t}return a[e]}webpackContext.keys=function webpackContextKeys(){return Object.keys(a)};webpackContext.resolve=webpackContextResolve;e.exports=webpackContext;webpackContext.id=324},60:function(e,t,r){"use strict";r.r(t);r.d(t,"showDrawer",(function(){return showDrawer}));r.d(t,"restartApp",(function(){return restartApp}));r.d(t,"openAppSettingsPage",(function(){return openAppSettingsPage}));var a=r(3),showDrawer=()=>{var e=a.Application.getRootView().getViewById("sideDrawer");e&&e.showDrawer()},restartApp=()=>{var e=new android.content.Intent(a.Application.android.context,a.Application.android.startActivity.getClass()),t=parseInt(1e5*Math.random(),10),r=android.app.PendingIntent.getActivity(a.Application.android.context,t,e,android.app.PendingIntent.FLAG_CANCEL_CURRENT),o=a.Application.android.context.getSystemService(android.content.Context.ALARM_SERVICE);o.set(android.app.AlarmManager.RTC,java.lang.System.currentTimeMillis()+100,r);android.os.Process.killProcess(android.os.Process.myPid())},openAppSettingsPage=()=>{var e=new android.content.Intent(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS);e.addCategory(android.content.Intent.CATEGORY_DEFAULT);e.setData(android.net.Uri.parse("package:"+a.Application.android.context.getPackageName()));a.Application.android.foregroundActivity.startActivity(e)}}},[[146,1,2]]]); \ No newline at end of file diff --git a/platforms/android/app/build/intermediates/merged_assets/release/out/app/vendor.js b/platforms/android/app/build/intermediates/merged_assets/release/out/app/vendor.js index 483c45b2..19a1335d 100644 --- a/platforms/android/app/build/intermediates/merged_assets/release/out/app/vendor.js +++ b/platforms/android/app/build/intermediates/merged_assets/release/out/app/vendor.js @@ -1,2 +1,2 @@ /*! For license information please see vendor.js.LICENSE.txt */ -(global.webpackJsonp=global.webpackJsonp||[]).push([[2],[function(e,t,r){"use strict";r.r(t);r.d(t,"unsetValue",(function(){return l}));r.d(t,"_printUnregisteredProperties",(function(){return _printUnregisteredProperties}));r.d(t,"_getProperties",(function(){return _getProperties}));r.d(t,"_getStyleProperties",(function(){return _getStyleProperties}));r.d(t,"isCssVariable",(function(){return isCssVariable}));r.d(t,"isCssCalcExpression",(function(){return isCssCalcExpression}));r.d(t,"isCssVariableExpression",(function(){return isCssVariableExpression}));r.d(t,"_evaluateCssVariableExpression",(function(){return _evaluateCssVariableExpression}));r.d(t,"_evaluateCssCalcExpression",(function(){return _evaluateCssCalcExpression}));r.d(t,"Property",(function(){return Property}));r.d(t,"CoercibleProperty",(function(){return CoercibleProperty}));r.d(t,"InheritedProperty",(function(){return InheritedProperty}));r.d(t,"CssProperty",(function(){return CssProperty}));r.d(t,"CssAnimationProperty",(function(){return CssAnimationProperty}));r.d(t,"InheritedCssProperty",(function(){return InheritedCssProperty}));r.d(t,"ShorthandProperty",(function(){return ShorthandProperty}));r.d(t,"initNativeView",(function(){return f}));r.d(t,"applyPendingNativeSetters",(function(){return applyPendingNativeSetters}));r.d(t,"applyAllNativeSetters",(function(){return applyAllNativeSetters}));r.d(t,"resetNativeView",(function(){return resetNativeView}));r.d(t,"clearInheritedProperties",(function(){return clearInheritedProperties}));r.d(t,"resetCSSProperties",(function(){return resetCSSProperties}));r.d(t,"propagateInheritableProperties",(function(){return propagateInheritableProperties}));r.d(t,"propagateInheritableCssProperties",(function(){return propagateInheritableCssProperties}));r.d(t,"makeValidator",(function(){return makeValidator}));r.d(t,"makeParser",(function(){return makeParser}));r.d(t,"getSetProperties",(function(){return getSetProperties}));r.d(t,"getComputedCssValues",(function(){return getComputedCssValues}));var n=r(176),i=r(16),a=r(1),o=r(6),l=new Object,d=[],p={},h={},m=new Array,g=new Array;function print(e){var t=Object.getOwnPropertySymbols(e);for(var r of t){var n=e[r];n.registered||console.log("Property ".concat(n.name," not Registered!!!!!"))}}function _printUnregisteredProperties(){print(p);print(h)}function _getProperties(){return getPropertiesFromMap(p)}function _getStyleProperties(){return getPropertiesFromMap(h)}function isCssVariable(e){return/^--[^,\s]+?$/.test(e)}function isCssCalcExpression(e){return e.includes("calc(")}function isCssVariableExpression(e){return e.includes("var(--")}function _evaluateCssVariableExpression(e,t,r){if("string"!=typeof r)return r;if(!isCssVariableExpression(r))return r;for(var n,i=r.trim();n!==i;){n=i;var a=i.lastIndexOf("var(");if(-1!==a){var o=i.indexOf(")",a);if(-1!==o){var l=i.substring(a+4,o).split(",").map(e=>e.trim()).filter(e=>!!e),d=l.shift(),p=e.style.getCssVariable(d);null===p&&l.length&&(p=_evaluateCssVariableExpression(e,t,l.join(", ")).split(",")[0]);p||(p="unset");i="".concat(i.substring(0,a)).concat(p).concat(i.substring(o+1))}}}return i}function _evaluateCssCalcExpression(e){return"string"!=typeof e?e:isCssCalcExpression(e)?n(e.replace(/([0-9]+(\.[0-9]+)?)dip\b/g,"$1")):e}function getPropertiesFromMap(e){var t=[];Object.getOwnPropertySymbols(e).forEach(r=>t.push(e[r]));return t}class Property{constructor(e){this.enumerable=!0;this.configurable=!0;var t=e.name;this.name=t;var r=Symbol(t+":propertyKey");this.key=r;var n=Symbol(t+":getDefault");this.getDefault=n;var a=Symbol(t+":setNative");this.setNative=a;var o=Symbol(t+":nativeDefaultValue");this.defaultValueKey=o;var d=e.defaultValue;this.defaultValue=d;var h=t+"Change",m=e.equalityComparer,g=e.affectsLayout,f=e.valueChanged,v=e.valueConverter,y=this;this.set=function(e){var p,w,C=e===l;if(C)p=d;else{w=e&&e.wrapped;p=w?i.b.unwrap(e):e;v&&"string"==typeof p&&(p=v(p))}var S=r in this?this[r]:d,b=m?!m(S,p):S!==p;if(w||b){g&&this.requestLayout();if(C){delete this[r];f&&f(this,S,p);if(this[a])if(this._suspendNativeUpdatesCount)this._suspendedUpdates&&(this._suspendedUpdates[t]=y);else if(o in this){this[a](this[o]);delete this[o]}else this[a](d)}else{this[r]=p;f&&f(this,S,p);if(this[a])if(this._suspendNativeUpdatesCount)this._suspendedUpdates&&(this._suspendedUpdates[t]=y);else{o in this||(this[o]=this[n]?this[n]():d);this[a](p)}}this.hasListeners(h)&&this.notify({object:this,eventName:h,propertyName:t,value:p,oldValue:S});this.domNode&&(C?this.domNode.attributeRemoved(t):this.domNode.attributeModified(t,p))}};this.get=function(){return r in this?this[r]:d};this.nativeValueChange=function(e,i){var a=r in e?e[r]:d,l=m?!m(a,i):a!==i;if(l){e[r]=i;f&&f(e,a,i);e.nativeViewProtected&&!(o in e)&&(e[o]=e[n]?e[n]():d);e.hasListeners(h)&&e.notify({object:e,eventName:h,propertyName:t,value:i,oldValue:a});g&&e.requestLayout();e.domNode&&e.domNode.attributeModified(t,i)}};p[r]=this}register(e){if(this.registered)throw new Error("Property ".concat(this.name," already registered."));this.registered=!0;Object.defineProperty(e.prototype,this.name,this)}isSet(e){return this.key in e}}Property.prototype.isStyleProperty=!1;class CoercibleProperty extends Property{constructor(e){super(e);var t=e.name,r=this.key,n=this.getDefault,a=this.setNative,o=this.defaultValueKey,d=this.defaultValue,p=Symbol(t+":coerceKey"),h=t+"Change",m=e.affectsLayout,g=e.equalityComparer,f=e.valueChanged,v=e.valueConverter,y=e.coerceValue,w=this;this.coerce=function(e){var r=p in e?e[p]:d;e[t]=r};this.set=function(e){var C,S,b=e===l;if(b){C=d;delete this[p]}else{S=e&&e.wrapped;C=S?i.b.unwrap(e):e;v&&"string"==typeof C&&(C=v(C));this[p]=C;C=y(this,C)}var x=r in this?this[r]:d,T=g?!g(x,C):x!==C;if(S||T){if(b){delete this[r];f&&f(this,x,C);if(this[a])if(this._suspendNativeUpdatesCount)this._suspendedUpdates&&(this._suspendedUpdates[t]=w);else if(o in this){this[a](this[o]);delete this[o]}else this[a](d)}else{this[r]=C;f&&f(this,x,C);if(this[a])if(this._suspendNativeUpdatesCount)this._suspendedUpdates&&(this._suspendedUpdates[t]=w);else{o in this||(this[o]=this[n]?this[n]():d);this[a](C)}}this.hasListeners(h)&&this.notify({object:this,eventName:h,propertyName:t,value:C,oldValue:x});m&&this.requestLayout();this.domNode&&(b?this.domNode.attributeRemoved(t):this.domNode.attributeModified(t,C))}}}}class InheritedProperty extends Property{constructor(e){super(e);var t=e.name,r=this.key,n=e.defaultValue,i=Symbol(t+":valueSourceKey");this.sourceKey=i;var a=this.set,setFunc=e=>function(d){var p,h;if(d===l){var m=this.parent;if(m&&0!==m[i]){p=m[t];h=1}else{p=n;h=0}}else{p=d;h=e}var g=this[r];a.call(this,p);var f=this[r];this[i]=h;if(g!==f){var v=0===h;this.eachChild(e=>{var t=e[i]||0;v?1===t&&setFunc.call(e,l):t<=1&&o.call(e,f);return!0})}},o=setFunc(1);this.setInheritedValue=o;this.set=setFunc(3);m.push(this)}}class CssProperty{constructor(e){var t=e.name;this.name=t;d.push(e.cssName);this.cssName="css:".concat(e.cssName);this.cssLocalName=e.cssName;var r=Symbol(t+":propertyKey");this.key=r;var n=Symbol(t+":valueSourceKey");this.sourceKey=n;var i=Symbol(t+":getDefault");this.getDefault=i;var o=Symbol(t+":setNative");this.setNative=o;var p=Symbol(t+":nativeDefaultValue");this.defaultValueKey=p;var m=e.defaultValue;this.defaultValue=m;var g=t+"Change",f=e.affectsLayout,v=e.equalityComparer,y=e.valueChanged,w=e.valueConverter,C=this;function get(){return r in this?this[r]:m}this.cssValueDescriptor={enumerable:!0,configurable:!0,get:get,set:function setCssValue(e){var d=this.viewRef.get();if(d){var h=this[n]||0;if(3!==h){var S,b=e===l||""===e;if(b){S=m;delete this[n]}else{S=w&&"string"==typeof e?w(e):e;this[n]=2}var x=r in this?this[r]:m,T=v?!v(x,S):x!==S;if(T){if(b){delete this[r];y&&y(this,x,S);if(d[o])if(d._suspendNativeUpdatesCount)d._suspendedUpdates&&(d._suspendedUpdates[t]=C);else if(p in this){d[o](this[p]);delete this[p]}else d[o](m)}else{this[r]=S;y&&y(this,x,S);if(d[o])if(d._suspendNativeUpdatesCount)d._suspendedUpdates&&(d._suspendedUpdates[t]=C);else{p in this||(this[p]=d[i]?d[i]():m);d[o](S)}}this.hasListeners(g)&&this.notify({object:this,eventName:g,propertyName:t,value:S,oldValue:x});f&&d.requestLayout()}}}else a.a.write("".concat(e,' not set to view because ".viewRef" is cleared'),a.a.categories.Style,a.a.messageType.warn)}};this.localValueDescriptor={enumerable:!0,configurable:!0,get:get,set:function setLocalValue(e){var d=this.viewRef.get();if(d){var h,S=e===l||""===e;if(S){h=m;delete this[n]}else{this[n]=3;h=w&&"string"==typeof e?w(e):e}var b=r in this?this[r]:m,x=v?!v(b,h):b!==h;if(x){if(S){delete this[r];y&&y(this,b,h);if(d[o])if(d._suspendNativeUpdatesCount)d._suspendedUpdates&&(d._suspendedUpdates[t]=C);else if(p in this){d[o](this[p]);delete this[p]}else d[o](m)}else{this[r]=h;y&&y(this,b,h);if(d[o])if(d._suspendNativeUpdatesCount)d._suspendedUpdates&&(d._suspendedUpdates[t]=C);else{p in this||(this[p]=d[i]?d[i]():m);d[o](h)}}this.hasListeners(g)&&this.notify({object:this,eventName:g,propertyName:t,value:h,oldValue:b});f&&d.requestLayout()}}else a.a.write("".concat(e,' not set to view because ".viewRef" is cleared'),a.a.categories.Style,a.a.messageType.warn)}};h[r]=this}register(e){if(this.registered)throw new Error("Property ".concat(this.name," already registered."));this.registered=!0;Object.defineProperty(e.prototype,this.name,this.localValueDescriptor);Object.defineProperty(e.prototype,this.cssName,this.cssValueDescriptor);this.cssLocalName!==this.cssName&&Object.defineProperty(e.prototype,this.cssLocalName,this.localValueDescriptor)}isSet(e){return this.key in e}}CssProperty.prototype.isStyleProperty=!0;class CssAnimationProperty{constructor(e){var t=e.name;this.name=t;d.push(e.cssName);CssAnimationProperty.properties[t]=this;e.cssName&&e.cssName!==t&&(CssAnimationProperty.properties[e.cssName]=this);this._valueConverter=e.valueConverter;var r=e.cssName||t;this.cssLocalName=r;var n="css:"+r;this.cssName=n;var i="keyframe:"+t;this.keyframe=i;var o="default:"+t,m=Symbol(o);this.defaultValueKey=m;this.defaultValue=e.defaultValue;var g=Symbol(n),f=Symbol("local:".concat(t)),v=Symbol(i),y=Symbol("computed-value:"+t);this.key=y;var w=Symbol("computed-source:"+t);this.source=w;this.getDefault=Symbol(t+":getDefault");var C=this.getDefault,S=this.setNative=Symbol(t+":setNative"),b=t+"Change",x=this;function descriptor(r,n,i,o,d){return{enumerable:i,configurable:o,get:d?function(){return this[y]}:function(){return this[r]},set(i){var o=this.viewRef.get();if(o){var d=this[y],p=this[w],h=0!==p,v=i===l||""===i;if(v){this[r]=l;if(this[w]===n)if(this[f]!==l){this[w]=3;this[y]=this[f]}else if(this[g]!==l){this[w]=2;this[y]=this[g]}else{delete this[w];delete this[y]}}else{e.valueConverter&&"string"==typeof i&&(i=e.valueConverter(i));this[r]=i;if(this[w]<=n){this[w]=n;this[y]=i}}var T=this[y],P=this[w],k=0!==P,A=!(d===T||e.equalityComparer&&e.equalityComparer(d,T));A&&e.valueChanged&&e.valueChanged(this,d,T);if(o[S]&&(A||k!==h))if(o._suspendNativeUpdatesCount)o._suspendedUpdates&&(o._suspendedUpdates[t]=x);else if(k){h||m in this||(this[m]=o[C]?o[C]():e.defaultValue);o[S](T)}else h&&(m in this?o[S](this[m]):o[S](e.defaultValue));A&&this.hasListeners(b)&&this.notify({object:this,eventName:b,propertyName:t,value:T,oldValue:d})}else a.a.write("".concat(i,' not set to view because ".viewRef" is cleared'),a.a.categories.Animation,a.a.messageType.warn)}}}var T=descriptor(m,0,!1,!1,!1),P=descriptor(g,2,!1,!1,!1),k=descriptor(f,3,!0,!0,!0),A=descriptor(v,4,!1,!1,!1);p[y]=this;h[y]=this;this.register=r=>{r.prototype[y]=e.defaultValue;r.prototype[w]=0;r.prototype[g]=l;r.prototype[f]=l;r.prototype[v]=l;Object.defineProperty(r.prototype,o,T);Object.defineProperty(r.prototype,n,P);Object.defineProperty(r.prototype,t,k);e.cssName&&e.cssName!==e.name&&Object.defineProperty(r.prototype,e.cssName,k);Object.defineProperty(r.prototype,i,A)}}_initDefaultNativeValue(e){var t=e.viewRef.get();if(t){var r=this.defaultValueKey;if(!(r in e)){var n=this.getDefault;e[r]=t[n]?t[n]():this.defaultValue}}else a.a.write('_initDefaultNativeValue not executed to view because ".viewRef" is cleared',a.a.categories.Animation,a.a.messageType.warn)}static _getByCssName(e){return this.properties[e]}static _getPropertyNames(){return Object.keys(CssAnimationProperty.properties)}isSet(e){return 0!==e[this.source]}}CssAnimationProperty.properties={};CssAnimationProperty.prototype.isStyleProperty=!0;class InheritedCssProperty extends CssProperty{constructor(e){super(e);var t=e.name,r=this.key,n=this.sourceKey,i=this.getDefault,o=this.setNative,d=this.defaultValueKey,p=t+"Change",h=e.defaultValue,m=e.affectsLayout,f=e.equalityComparer,v=e.valueChanged,y=e.valueConverter,w=this,setFunc=e=>function(g){var b=this.viewRef.get();if(b){var x=g===l||""===g,T=this[n]||0;if(x){if(2===e&&3===T)return}else if(T>e)return;var P,k=r in this?this[r]:h,A=!1;if(x){var E=b.parent,I=E?E.style:null;if(I&&I[n]>0){P=I[t];this[n]=1;this[r]=P}else{P=h;delete this[n];delete this[r];A=!0}}else{this[n]=e;P=y&&"string"==typeof g?y(g):g;this[r]=P}var V=f?!f(k,P):k!==P;if(V){v&&v(this,k,P);if(b[o])if(b._suspendNativeUpdatesCount)b._suspendedUpdates&&(b._suspendedUpdates[t]=w);else if(A)if(d in this){b[o](this[d]);delete this[d]}else b[o](h);else{d in this||(this[d]=b[i]?b[i]():h);b[o](P)}this.hasListeners(p)&&this.notify({object:this,eventName:p,propertyName:t,value:P,oldValue:k});m&&b.requestLayout();b.eachChild(e=>{var t=e.style,r=t[n]||0;x?1===r&&C.call(t,l):r<=1&&S.call(t,P);return!0})}}else a.a.write("".concat(g,' not set to view\'s property because ".viewRef" is cleared'),a.a.categories.Style,a.a.messageType.warn)},C=setFunc(0),S=setFunc(1);this.setInheritedValue=S;this.cssValueDescriptor.set=setFunc(2);this.localValueDescriptor.set=setFunc(3);g.push(this)}}class ShorthandProperty{constructor(e){this.name=e.name;var t=Symbol(this.name+":propertyKey");this.key=t;this.cssName="css:".concat(e.cssName);this.cssLocalName="".concat(e.cssName);var r=e.converter;this.cssValueDescriptor={enumerable:!0,configurable:!0,get:e.getter,set:function setCssValue(e){var t=this.viewRef.get();t?t._batchUpdate(()=>{for(var[t,n]of r(e))this[t.cssName]=n}):a.a.write('setCssValue not executed to view because ".viewRef" is cleared',a.a.categories.Animation,a.a.messageType.warn)}};this.localValueDescriptor={enumerable:!0,configurable:!0,get:e.getter,set:function setLocalValue(e){var t=this.viewRef.get();t?t._batchUpdate(()=>{for(var[t,n]of r(e))this[t.name]=n}):a.a.write('setLocalValue not executed to view because ".viewRef" is cleared',a.a.categories.Animation,a.a.messageType.warn)}};this.propertyBagDescriptor={enumerable:!1,configurable:!0,set(e){r(e).forEach(e=>{var[t,r]=e;this[t.cssLocalName]=r})}};h[t]=this}register(e){if(this.registered)throw new Error("Property ".concat(this.name," already registered."));this.registered=!0;Object.defineProperty(e.prototype,this.name,this.localValueDescriptor);Object.defineProperty(e.prototype,this.cssName,this.cssValueDescriptor);this.cssLocalName!==this.cssName&&Object.defineProperty(e.prototype,this.cssLocalName,this.localValueDescriptor);Object.defineProperty(e.prototype.PropertyBag,this.cssLocalName,this.propertyBagDescriptor)}}var f=Object(o.f)('"properties".initNativeView',(function initNativeView(e){e._suspendedUpdates?applyPendingNativeSetters(e):applyAllNativeSetters(e);e._suspendedUpdates={}}));function applyPendingNativeSetters(e){var t=e._suspendedUpdates;for(var r in t){var n=t[r],i=n.setNative;if(e[i]){var{getDefault:a,isStyleProperty:o,defaultValueKey:l,defaultValue:d}=n,p=void 0;if(o){var h=e.style;if(n.isSet(e.style)){l in h||(h[l]=e[a]?e[a]():d);p=e.style[r]}else p=h[l]}else if(n.isSet(e)){l in e||(e[l]=e[a]?e[a]():d);p=e[r]}else p=e[l];e[i](p)}}}function applyAllNativeSetters(e){var t=Object.getOwnPropertySymbols(e);for(var r of t){var n=p[r];if(n){var i=n.setNative,a=n.getDefault;if(i in e){var o=n.defaultValueKey;o in e||(e[o]=e[a]?e[a]():n.defaultValue);var l=e[r];e[i](l)}}}var d=e.style;t=Object.getOwnPropertySymbols(d);for(var m of t){var g=h[m];if(g&&e[g.setNative]){var f=g.defaultValueKey;f in d||(d[f]=e[g.getDefault]?e[g.getDefault]():g.defaultValue);var v=d[m];e[g.setNative](v)}}}function resetNativeView(e){var t=Object.getOwnPropertySymbols(e);for(var r of t){var n=p[r];if(n&&e[n.setNative])if(n.defaultValueKey in e){e[n.setNative](e[n.defaultValueKey]);delete e[n.defaultValueKey]}else e[n.setNative](n.defaultValue)}var i=e.style;t=Object.getOwnPropertySymbols(i);for(var a of t){var o=h[a];if(o&&e[o.setNative])if(o.defaultValueKey in i){e[o.setNative](i[o.defaultValueKey]);delete i[o.defaultValueKey]}else e[o.setNative](o.defaultValue)}}function clearInheritedProperties(e){for(var t of m){var r=t.sourceKey;1===e[r]&&t.set.call(e,l)}var n=e.style;for(var i of g){var a=i.sourceKey;1===n[a]&&i.setInheritedValue.call(n,l)}}function resetCSSProperties(e){var t=Object.getOwnPropertySymbols(e);for(var r of t){var n;if(n=h[r]){e[n.cssName]=l;n instanceof CssAnimationProperty&&(e[n.keyframe]=l)}}}function propagateInheritableProperties(e,t){var r=function inheritablePropertyValuesOn(e){var t=new Array;for(var r of m){var n=r.sourceKey,i=e[n]||0;0!==i&&t.push({property:r,value:e[r.name]})}return t}(e);for(var n of r){var i=n.property,a=i.sourceKey,o=t[a]||0;o<=1&&i.setInheritedValue.call(t,n.value)}}function propagateInheritableCssProperties(e,t){var r=function inheritableCssPropertyValuesOn(e){var t=new Array;for(var r of g){var n=r.sourceKey,i=e[n]||0;0!==i&&t.push({property:r,value:e[r.name]})}return t}(e);for(var n of r){var i=n.property,a=i.sourceKey,o=t[a]||0;o<=1&&i.setInheritedValue.call(t,n.value,1)}}function makeValidator(){for(var e=arguments.length,t=new Array(e),r=0;rn.has(e)}function makeParser(e){return t=>{var r=t&&t.toLowerCase();if(e(r))return r;throw new Error("Invalid value: "+t)}}function getSetProperties(e){var t=[];Object.getOwnPropertyNames(e).forEach(r=>{t.push([r,e[r]])});var r=Object.getOwnPropertySymbols(e);for(var n of r){var i=p[n];if(i){var a=e[i.key];t.push([i.name,a])}}return t}function getComputedCssValues(e){var t=[],r=e.style;for(var n of d)t.push([n,r[n]]);t.push(["top","auto"]);t.push(["left","auto"]);t.push(["bottom","auto"]);t.push(["right","auto"]);return t}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n,i,a=!1,o={},l=[],d=[];!function(e){e.enable=function enable(){a=!0};e.disable=function disable(){a=!1};e.isEnabled=function isEnabled(){return a};function addWriter(e){l.push(e)}e.addWriter=addWriter;e.removeWriter=function removeWriter(e){var t=l.indexOf(e);t>=0&&l.splice(t,1)};e.clearWriters=function clearWriters(){l.length>0&&l.splice(0,l.length)};e.setCategories=function setCategories(e){o={};addCategories(e)};function addCategories(e){for(var t=e.split(","),r=0;r{n.trim()===t&&i.on(e,t,r)})}else i.on(e,t,r)}}};e.addEventListener=function addEventListener(e){d.push(e)};e.removeEventListener=function removeEventListener(e){var t=d.indexOf(e);t>=0&&d.splice(t,1)};var t;!function(e){e.log=0;e.info=1;e.warn=2;e.error=3}(t=e.messageType||(e.messageType={}));!function(e){e.VisualTreeEvents="VisualTreeEvents";e.Layout="Layout";e.Style="Style";e.ViewHierarchy="ViewHierarchy";e.NativeLifecycle="NativeLifecycle";e.Debug="Debug";e.Navigation="Navigation";e.Test="Test";e.Binding="Binding";e.BindingError="BindingError";e.Error="Error";e.Animation="Animation";e.Transition="Transition";e.Livesync="Livesync";e.ModuleNameResolver="ModuleNameResolver";e.separator=",";e.All=[e.VisualTreeEvents,e.Layout,e.Style,e.ViewHierarchy,e.NativeLifecycle,e.Debug,e.Navigation,e.Test,e.Binding,e.Error,e.Animation,e.Transition,e.Livesync,e.ModuleNameResolver].join(e.separator);e.concat=function concat(){for(var t=arguments.length,r=new Array(t),n=0;ne*(180/Math.PI),getTransformMatrix=e=>{var{property:t,value:r}=e;return h[t](r)},h={scale:e=>{var{x:t,y:r}=e;return[t,0,0,0,r,0,0,0,1]},translate:e=>{var{x:t,y:r}=e;return[1,0,t,0,1,r,0,0,1]},rotate:e=>{var t,{x:r,y:n,z:i}=e,a=(t=i,t*(Math.PI/180)),o=Math.cos(a),l=Math.sin(a);return[o,-l,0,l,o,0,0,0,1]}};function multiplyAffine2d(e,t){return[e[0]*t[0]+e[1]*t[3],e[0]*t[1]+e[1]*t[4],e[0]*t[2]+e[1]*t[5]+e[2],e[3]*t[0]+e[4]*t[3],e[3]*t[1]+e[4]*t[4],e[3]*t[2]+e[4]*t[5]+e[5]]}function decompose2DTransformMatrix(e){!function verifyTransformMatrix(e){if(e.length<6)throw new Error("Transform matrix should be 2x3.")}(e);var[t,r,n,i,a,o]=[...e],l=t*i-r*n,d={x:a||0,y:o||0},p=0,h={x:1,y:1};if(t||r){var m=Math.sqrt(t*t+r*r);p=r>0?Math.acos(t/m):-Math.acos(t/m);h={x:m,y:l/m}}else if(n||i){var g=Math.sqrt(n*n+i*i);p=Math.PI/2-(i>0?Math.acos(-n/g):-Math.acos(n/g));h={x:l/g,y:g}}p=radiansToDegrees(p);return{translate:d,rotate:{x:0,y:0,z:p},scale:h}}var m,g,f=r(1),v=r(80),y=r(63);function equalsCommon(e,t){return"auto"==e?"auto"==t:"number"==typeof e?"auto"!=t&&("number"==typeof t?e==t:!!t&&("dip"==t.unit&&e==t.value)):"auto"!=t&&("number"==typeof t?!!e&&("dip"==e.unit&&e.value==t):!(!e||!t)&&(e.value==t.value&&e.unit==t.unit))}function convertToStringCommon(e){if("auto"==e)return"auto";if("number"==typeof e)return e.toString();var t=e.value;"%"===e.unit&&(t*=100);return t+e.unit}function toDevicePixelsCommon(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN;if("auto"==e)return t;if("number"==typeof e)return d.n.round(d.n.toDevicePixels(e));if(!e)return t;switch(e.unit){case"px":return d.n.round(e.value);case"%":return d.n.round(r*e.value);case"dip":default:return d.n.round(d.n.toDevicePixels(e.value))}}!function(e){e.parse=function parse(e){if("auto"==e)return"auto";if("string"==typeof e){var t=e.trim(),r=t.indexOf("%");if(-1!==r){var n;n=r!==t.length-1||0===r?Number.NaN:parseFloat(t.substring(0,t.length-1).trim())/100;if(isNaN(n)||!isFinite(n))throw new Error("Invalid value: ".concat(e));return{unit:"%",value:n}}if(-1!==t.indexOf("px")){t=t.replace("px","").trim();var i=parseFloat(t);if(isNaN(i)||!isFinite(i))throw new Error("Invalid value: ".concat(e));return{unit:"px",value:i}}var a=parseFloat(t);if(isNaN(a)||!isFinite(a))throw new Error("Invalid value: ".concat(e));return a}return e};e.equals=equalsCommon;e.toDevicePixels=toDevicePixelsCommon;e.convertToString=convertToStringCommon}(m||(m={}));!function(e){e.parse=function parse(e){if("auto"==e)return"auto";if("string"==typeof e){var t=e.trim();if(-1!==t.indexOf("px")){t=t.replace("px","").trim();var r=parseFloat(t);if(isNaN(r)||!isFinite(r))throw new Error("Invalid value: ".concat(t));return{unit:"px",value:r}}var n=parseFloat(t);if(isNaN(n)||!isFinite(n))throw new Error("Invalid value: ".concat(t));return n}return e};e.equals=equalsCommon;e.toDevicePixels=toDevicePixelsCommon;e.convertToString=convertToStringCommon}(g||(g={}));var w={value:0,unit:"px"},C=new n.CssProperty({name:"minWidth",cssName:"min-width",defaultValue:w,affectsLayout:!1,equalityComparer:g.equals,valueChanged:(e,t,r)=>{var n=e.viewRef.get();n?n.effectiveMinWidth=g.toDevicePixels(r,0):f.a.write("".concat(r,' not set to view\'s property because ".viewRef" is cleared'),f.a.categories.Style,f.a.messageType.warn)},valueConverter:g.parse});C.register(i.a);var S=new n.CssProperty({name:"minHeight",cssName:"min-height",defaultValue:w,affectsLayout:!1,equalityComparer:g.equals,valueChanged:(e,t,r)=>{var n=e.viewRef.get();n?n.effectiveMinHeight=g.toDevicePixels(r,0):f.a.write("".concat(r,' not set to view\'s property because ".viewRef" is cleared'),f.a.categories.Style,f.a.messageType.warn)},valueConverter:g.parse});S.register(i.a);var b=new n.CssAnimationProperty({name:"width",cssName:"width",defaultValue:"auto",equalityComparer:g.equals,valueChanged:(e,t,r)=>{},valueConverter:m.parse});b.register(i.a);var x=new n.CssAnimationProperty({name:"height",cssName:"height",defaultValue:"auto",equalityComparer:g.equals,valueChanged:(e,t,r)=>{},valueConverter:m.parse});x.register(i.a);var T=new n.ShorthandProperty({name:"margin",cssName:"margin",getter:function getter(){return m.equals(this.marginTop,this.marginRight)&&m.equals(this.marginTop,this.marginBottom)&&m.equals(this.marginTop,this.marginLeft)?this.marginTop:"".concat(m.convertToString(this.marginTop)," ").concat(m.convertToString(this.marginRight)," ").concat(m.convertToString(this.marginBottom)," ").concat(m.convertToString(this.marginLeft))},converter:function convertToMargins(e){if("string"==typeof e&&"auto"!==e){var t=parseThickness(e);return[[A,m.parse(t.top)],[k,m.parse(t.right)],[E,m.parse(t.bottom)],[P,m.parse(t.left)]]}return[[A,e],[k,e],[E,e],[P,e]]}});T.register(i.a);var P=new n.CssProperty({name:"marginLeft",cssName:"margin-left",defaultValue:w,affectsLayout:!1,equalityComparer:g.equals,valueConverter:m.parse});P.register(i.a);var k=new n.CssProperty({name:"marginRight",cssName:"margin-right",defaultValue:w,affectsLayout:!1,equalityComparer:g.equals,valueConverter:m.parse});k.register(i.a);var A=new n.CssProperty({name:"marginTop",cssName:"margin-top",defaultValue:w,affectsLayout:!1,equalityComparer:g.equals,valueConverter:m.parse});A.register(i.a);var E=new n.CssProperty({name:"marginBottom",cssName:"margin-bottom",defaultValue:w,affectsLayout:!1,equalityComparer:g.equals,valueConverter:m.parse});E.register(i.a);var I=new n.ShorthandProperty({name:"padding",cssName:"padding",getter:function getter(){return g.equals(this.paddingTop,this.paddingRight)&&g.equals(this.paddingTop,this.paddingBottom)&&g.equals(this.paddingTop,this.paddingLeft)?this.paddingTop:"".concat(g.convertToString(this.paddingTop)," ").concat(g.convertToString(this.paddingRight)," ").concat(g.convertToString(this.paddingBottom)," ").concat(g.convertToString(this.paddingLeft))},converter:function convertToPaddings(e){if("string"==typeof e&&"auto"!==e){var t=parseThickness(e);return[[N,g.parse(t.top)],[L,g.parse(t.right)],[D,g.parse(t.bottom)],[V,g.parse(t.left)]]}return[[N,e],[L,e],[D,e],[V,e]]}});I.register(i.a);var V=new n.CssProperty({name:"paddingLeft",cssName:"padding-left",defaultValue:w,affectsLayout:!1,equalityComparer:g.equals,valueChanged:(e,t,r)=>{var n=e.viewRef.get();n?n.effectivePaddingLeft=g.toDevicePixels(r,0):f.a.write("".concat(r,' not set to view\'s property because ".viewRef" is cleared'),f.a.categories.Style,f.a.messageType.warn)},valueConverter:g.parse});V.register(i.a);var L=new n.CssProperty({name:"paddingRight",cssName:"padding-right",defaultValue:w,affectsLayout:!1,equalityComparer:g.equals,valueChanged:(e,t,r)=>{var n=e.viewRef.get();n?n.effectivePaddingRight=g.toDevicePixels(r,0):f.a.write("".concat(r,' not set to view\'s property because ".viewRef" is cleared'),f.a.categories.Style,f.a.messageType.warn)},valueConverter:g.parse});L.register(i.a);var N=new n.CssProperty({name:"paddingTop",cssName:"padding-top",defaultValue:w,affectsLayout:!1,equalityComparer:g.equals,valueChanged:(e,t,r)=>{var n=e.viewRef.get();n?n.effectivePaddingTop=g.toDevicePixels(r,0):f.a.write("".concat(r,' not set to view\'s property because ".viewRef" is cleared'),f.a.categories.Style,f.a.messageType.warn)},valueConverter:g.parse});N.register(i.a);var O,D=new n.CssProperty({name:"paddingBottom",cssName:"padding-bottom",defaultValue:w,affectsLayout:!1,equalityComparer:g.equals,valueChanged:(e,t,r)=>{var n=e.viewRef.get();n?n.effectivePaddingBottom=g.toDevicePixels(r,0):f.a.write("".concat(r,' not set to view\'s property because ".viewRef" is cleared'),f.a.categories.Style,f.a.messageType.warn)},valueConverter:g.parse});D.register(i.a);!function(e){e.LEFT="left";e.CENTER="center";e.RIGHT="right";e.STRETCH="stretch";e.isValid=Object(n.makeValidator)(e.LEFT,e.CENTER,e.RIGHT,e.STRETCH);e.parse=Object(n.makeParser)(e.isValid)}(O||(O={}));var F,R=new n.CssProperty({name:"horizontalAlignment",cssName:"horizontal-align",defaultValue:O.STRETCH,affectsLayout:!1,valueConverter:O.parse});R.register(i.a);!function(e){e.TOP="top";e.MIDDLE="middle";e.BOTTOM="bottom";e.STRETCH="stretch";e.TEXTTOP="text-top";e.TEXTBOTTOM="text-bottom";e.SUPER="super";e.SUB="sub";e.BASELINE="baseline";e.isValid=Object(n.makeValidator)(e.TOP,e.MIDDLE,e.BOTTOM,e.STRETCH,e.TEXTTOP,e.TEXTBOTTOM,e.SUPER,e.SUB,e.BASELINE);e.parse=r=>"center"===r.toLowerCase()?e.MIDDLE:t(r);var t=Object(n.makeParser)(e.isValid)}(F||(F={}));var B=new n.CssProperty({name:"verticalAlignment",cssName:"vertical-align",defaultValue:F.STRETCH,affectsLayout:!1,valueConverter:F.parse});B.register(i.a);function parseThickness(e){if("string"==typeof e){var t,r,n,i,a=e.split(/[ ,]+/);if(1===a.length){t=a[0];r=a[0];n=a[0];i=a[0]}else if(2===a.length){t=a[0];n=a[0];r=a[1];i=a[1]}else if(3===a.length){t=a[0];r=a[1];i=a[1];n=a[2]}else{if(4!==a.length)throw new Error("Expected 1, 2, 3 or 4 parameters. Actual: "+e);t=a[0];r=a[1];n=a[2];i=a[3]}return{top:t,right:r,bottom:n,left:i}}return e}var M=new n.CssAnimationProperty({name:"rotate",cssName:"rotate",defaultValue:0,valueConverter:parseFloat});M.register(i.a);var z=new n.CssAnimationProperty({name:"rotateX",cssName:"rotatex",defaultValue:0,valueConverter:parseFloat});z.register(i.a);var W=new n.CssAnimationProperty({name:"rotateY",cssName:"rotatey",defaultValue:0,valueConverter:parseFloat});W.register(i.a);var j=new n.CssAnimationProperty({name:"perspective",cssName:"perspective",defaultValue:1e3,valueConverter:parseFloat});j.register(i.a);var H=new n.CssAnimationProperty({name:"scaleX",cssName:"scaleX",defaultValue:1,valueConverter:parseFloat});H.register(i.a);var U=new n.CssAnimationProperty({name:"scaleY",cssName:"scaleY",defaultValue:1,valueConverter:parseFloat});U.register(i.a);function parseDIPs(e){return-1!==e.indexOf("px")?d.n.toDeviceIndependentPixels(parseFloat(e.replace("px","").trim())):parseFloat(e.replace("dip","").trim())}var q=new n.CssAnimationProperty({name:"translateX",cssName:"translateX",defaultValue:0,valueConverter:parseDIPs});q.register(i.a);var G=new n.CssAnimationProperty({name:"translateY",cssName:"translateY",defaultValue:0,valueConverter:parseDIPs});G.register(i.a);var $=new n.ShorthandProperty({name:"transform",cssName:"transform",getter:function getter(){var e=this.scaleX,t=this.scaleY,r=this.translateX,n=this.translateY,i=this.rotate,a=this.rotateX,o=this.rotateY,l="";0===r&&0===n||(l+="translate(".concat(r,", ").concat(n,") "));1===e&&1===t||(l+="scale(".concat(e,", ").concat(t,") "));if(0!==a||0!==o||0!==i){l+="rotate(".concat(a,", ").concat(o,", ").concat(i,") ");l+="rotate (".concat(i,")")}return l.trim()},converter:function convertToTransform(e){e===n.unsetValue&&(e="none");var{translate:t,rotate:r,scale:i}=transformConverter(e);return[[q,t.x],[G,t.y],[H,i.x],[U,i.y],[M,r.z],[z,r.x],[W,r.y]]}});$.register(i.a);var K={translate:{x:0,y:0},rotate:{x:0,y:0,z:0},scale:{x:1,y:1}},X=new RegExp(/\s*(.+?)\((.*?)\)/g),Y=Object.freeze(["rotate","rotateX","rotateY","rotate3d","translate","translate3d","translateX","translateY","scale","scale3d","scaleX","scaleY"]),Q=Object.freeze({scale:e=>({property:"scale",value:e}),scale3d:e=>({property:"scale",value:e}),scaleX:e=>{var{x:t}=e;return{property:"scale",value:{x:t,y:K.scale.y}}},scaleY:e=>{var{y:t}=e;return{property:"scale",value:{y:t,x:K.scale.x}}},translate:e=>({property:"translate",value:e}),translate3d:e=>({property:"translate",value:e}),translateX:e=>{var{x:t}=e;return{property:"translate",value:{x:t,y:K.translate.y}}},translateY:e=>{var{y:t}=e;return{property:"translate",value:{y:t,x:K.translate.x}}},rotate3d:e=>({property:"rotate",value:e}),rotateX:e=>({property:"rotate",value:{x:e,y:K.rotate.y,z:K.rotate.z}}),rotateY:e=>({property:"rotate",value:{x:K.rotate.x,y:e,z:K.rotate.z}}),rotate:e=>({property:"rotate",value:{x:K.rotate.x,y:K.rotate.y,z:e}})});function transformConverter(e){var t=function parseTransformString(e){var t,r=[];for(;null!==(t=X.exec(e));){var n=t[1],i=convertTransformValue(n,t[2]);-1!==Y.indexOf(n)&&r.push(normalizeTransformation({property:n,value:i}))}return r}(e);if("none"===e||""===e||!t.length)return K;var r=t.map(e=>e.property);if(!Object(d.i)(r)){var n=Object.assign({},K);t.forEach(e=>{n[e.property]=e.value});return n}var i,a=t.map(getTransformMatrix).reduce(multiplyAffine2d),o=(i=a,[i[0],i[3],i[1],i[4],i[2],i[5]]);return decompose2DTransformMatrix(o)}function normalizeTransformation(e){var{property:t,value:r}=e;return Q[t](r)}function convertTransformValue(e,t){var[r,n=r,i=n]=t.split(",").map(parseFloat);return"rotate"===e||"rotateX"===e||"rotateY"===e?"rad"===t.slice(-3)?radiansToDegrees(r):r:{x:r,y:n,z:i}}var J=new n.ShorthandProperty({name:"background",cssName:"background",getter:function getter(){return"".concat(this.backgroundColor," ").concat(this.backgroundImage," ").concat(this.backgroundRepeat," ").concat(this.backgroundPosition)},converter:function convertToBackgrounds(e){if("string"==typeof e){var t,r=v.parseBackground(e).value,i=r.color?new a.a(r.color):n.unsetValue;t="object"==typeof r.image&&r.image?y.a.parse(r.image):r.image||n.unsetValue;var o=r.repeat||n.unsetValue,l=r.position?r.position.text:n.unsetValue;return[[re,i],[ee,t],[ne,o],[ae,l]]}return[[re,n.unsetValue],[ee,n.unsetValue],[ne,n.unsetValue],[ae,n.unsetValue]]}});J.register(i.a);var Z=new n.CssProperty({name:"backgroundInternal",cssName:"_backgroundInternal",defaultValue:p.a.default});Z.register(i.a);var ee=new n.CssProperty({name:"backgroundImage",cssName:"background-image",valueChanged:(e,t,r)=>{var n=e.backgroundInternal.withImage(r);e.backgroundInternal=n},equalityComparer:(e,t)=>e instanceof y.a&&t instanceof y.a?y.a.equals(e,t):e===t,valueConverter:e=>{if("string"==typeof e){var t=v.parseBackground(e);if(t){var r=t.value;e="object"==typeof r.image?y.a.parse(r.image):e}}return e}});ee.register(i.a);var te,re=new n.CssAnimationProperty({name:"backgroundColor",cssName:"background-color",valueChanged:(e,t,r)=>{var n=e.backgroundInternal.withColor(r);e.backgroundInternal=n},equalityComparer:a.a.equals,valueConverter:e=>new a.a(e)});re.register(i.a);!function(e){e.REPEAT="repeat";e.REPEAT_X="repeat-x";e.REPEAT_Y="repeat-y";e.NO_REPEAT="no-repeat";e.isValid=Object(n.makeValidator)(e.REPEAT,e.REPEAT_X,e.REPEAT_Y,e.NO_REPEAT);e.parse=Object(n.makeParser)(e.isValid)}(te||(te={}));var ne=new n.CssProperty({name:"backgroundRepeat",cssName:"background-repeat",valueConverter:te.parse,valueChanged:(e,t,r)=>{var n=e.backgroundInternal.withRepeat(r);e.backgroundInternal=n}});ne.register(i.a);var ie=new n.CssProperty({name:"backgroundSize",cssName:"background-size",valueChanged:(e,t,r)=>{var n=e.backgroundInternal.withSize(r);e.backgroundInternal=n}});ie.register(i.a);var ae=new n.CssProperty({name:"backgroundPosition",cssName:"background-position",valueChanged:(e,t,r)=>{var n=e.backgroundInternal.withPosition(r);e.backgroundInternal=n}});ae.register(i.a);var oe=new n.ShorthandProperty({name:"borderColor",cssName:"border-color",getter:function getter(){return a.a.equals(this.borderTopColor,this.borderRightColor)&&a.a.equals(this.borderTopColor,this.borderBottomColor)&&a.a.equals(this.borderTopColor,this.borderLeftColor)?this.borderTopColor:"".concat(this.borderTopColor," ").concat(this.borderRightColor," ").concat(this.borderBottomColor," ").concat(this.borderLeftColor)},converter:function converter(e){if("string"==typeof e){var t=function parseBorderColor(e){var t={top:void 0,right:void 0,bottom:void 0,left:void 0};if(0===e.indexOf("rgb")){t.top=t.right=t.bottom=t.left=new a.a(e);return t}var r=e.split(/[ ,]+/);if(1===r.length){var n=new a.a(r[0]);t.top=n;t.right=n;t.bottom=n;t.left=n}else if(2===r.length){var i=new a.a(r[0]),o=new a.a(r[1]);t.top=i;t.right=o;t.bottom=i;t.left=o}else if(3===r.length){var l=new a.a(r[0]),d=new a.a(r[1]),p=new a.a(r[2]);t.top=l;t.right=d;t.bottom=p;t.left=d}else{if(4!==r.length)throw new Error("Expected 1, 2, 3 or 4 parameters. Actual: ".concat(e));var h=new a.a(r[0]),m=new a.a(r[1]),g=new a.a(r[2]),f=new a.a(r[3]);t.top=h;t.right=m;t.bottom=g;t.left=f}return t}(e);return[[se,t.top],[le,t.right],[de,t.bottom],[ce,t.left]]}return[[se,e],[le,e],[de,e],[ce,e]]}});oe.register(i.a);var se=new n.CssProperty({name:"borderTopColor",cssName:"border-top-color",valueChanged:(e,t,r)=>{var n=e.backgroundInternal.withBorderTopColor(r);e.backgroundInternal=n},equalityComparer:a.a.equals,valueConverter:e=>new a.a(e)});se.register(i.a);var le=new n.CssProperty({name:"borderRightColor",cssName:"border-right-color",valueChanged:(e,t,r)=>{var n=e.backgroundInternal.withBorderRightColor(r);e.backgroundInternal=n},equalityComparer:a.a.equals,valueConverter:e=>new a.a(e)});le.register(i.a);var de=new n.CssProperty({name:"borderBottomColor",cssName:"border-bottom-color",valueChanged:(e,t,r)=>{var n=e.backgroundInternal.withBorderBottomColor(r);e.backgroundInternal=n},equalityComparer:a.a.equals,valueConverter:e=>new a.a(e)});de.register(i.a);var ce=new n.CssProperty({name:"borderLeftColor",cssName:"border-left-color",valueChanged:(e,t,r)=>{var n=e.backgroundInternal.withBorderLeftColor(r);e.backgroundInternal=n},equalityComparer:a.a.equals,valueConverter:e=>new a.a(e)});ce.register(i.a);var ue=new n.ShorthandProperty({name:"borderWidth",cssName:"border-width",getter:function getter(){return g.equals(this.borderTopWidth,this.borderRightWidth)&&g.equals(this.borderTopWidth,this.borderBottomWidth)&&g.equals(this.borderTopWidth,this.borderLeftWidth)?this.borderTopWidth:"".concat(g.convertToString(this.borderTopWidth)," ").concat(g.convertToString(this.borderRightWidth)," ").concat(g.convertToString(this.borderBottomWidth)," ").concat(g.convertToString(this.borderLeftWidth))},converter:function converter(e){if("string"==typeof e&&"auto"!==e){var t=parseThickness(e);return[[pe,t.top],[he,t.right],[me,t.bottom],[ge,t.left]]}return[[pe,e],[he,e],[me,e],[ge,e]]}});ue.register(i.a);var pe=new n.CssProperty({name:"borderTopWidth",cssName:"border-top-width",defaultValue:w,affectsLayout:!1,equalityComparer:g.equals,valueChanged:(e,t,r)=>{var n=g.toDevicePixels(r,0);if(!isNonNegativeFiniteNumber(n))throw new Error("border-top-width should be Non-Negative Finite number. Value: ".concat(n));var i=e.viewRef.get();i?i.effectiveBorderTopWidth=n:f.a.write("".concat(r,' not set to view\'s property because ".viewRef" is cleared'),f.a.categories.Style,f.a.messageType.warn);var a=e.backgroundInternal.withBorderTopWidth(n);e.backgroundInternal=a},valueConverter:g.parse});pe.register(i.a);var he=new n.CssProperty({name:"borderRightWidth",cssName:"border-right-width",defaultValue:w,affectsLayout:!1,equalityComparer:g.equals,valueChanged:(e,t,r)=>{var n=g.toDevicePixels(r,0);if(!isNonNegativeFiniteNumber(n))throw new Error("border-right-width should be Non-Negative Finite number. Value: ".concat(n));var i=e.viewRef.get();i?i.effectiveBorderRightWidth=n:f.a.write("".concat(r,' not set to view\'s property because ".viewRef" is cleared'),f.a.categories.Style,f.a.messageType.warn);var a=e.backgroundInternal.withBorderRightWidth(n);e.backgroundInternal=a},valueConverter:g.parse});he.register(i.a);var me=new n.CssProperty({name:"borderBottomWidth",cssName:"border-bottom-width",defaultValue:w,affectsLayout:!1,equalityComparer:g.equals,valueChanged:(e,t,r)=>{var n=g.toDevicePixels(r,0);if(!isNonNegativeFiniteNumber(n))throw new Error("border-bottom-width should be Non-Negative Finite number. Value: ".concat(n));var i=e.viewRef.get();i?i.effectiveBorderBottomWidth=n:f.a.write("".concat(r,' not set to view\'s property because ".viewRef" is cleared'),f.a.categories.Style,f.a.messageType.warn);var a=e.backgroundInternal.withBorderBottomWidth(n);e.backgroundInternal=a},valueConverter:g.parse});me.register(i.a);var ge=new n.CssProperty({name:"borderLeftWidth",cssName:"border-left-width",defaultValue:w,affectsLayout:!1,equalityComparer:g.equals,valueChanged:(e,t,r)=>{var n=g.toDevicePixels(r,0);if(!isNonNegativeFiniteNumber(n))throw new Error("border-left-width should be Non-Negative Finite number. Value: ".concat(n));var i=e.viewRef.get();i?i.effectiveBorderLeftWidth=n:f.a.write("".concat(r,' not set to view\'s property because ".viewRef" is cleared'),f.a.categories.Style,f.a.messageType.warn);var a=e.backgroundInternal.withBorderLeftWidth(n);e.backgroundInternal=a},valueConverter:g.parse});ge.register(i.a);var fe=new n.ShorthandProperty({name:"borderRadius",cssName:"border-radius",getter:function getter(){return g.equals(this.borderTopLeftRadius,this.borderTopRightRadius)&&g.equals(this.borderTopLeftRadius,this.borderBottomRightRadius)&&g.equals(this.borderTopLeftRadius,this.borderBottomLeftRadius)?this.borderTopLeftRadius:"".concat(g.convertToString(this.borderTopLeftRadius)," ").concat(g.convertToString(this.borderTopRightRadius)," ").concat(g.convertToString(this.borderBottomRightRadius)," ").concat(g.convertToString(this.borderBottomLeftRadius))},converter:function converter(e){if("string"==typeof e){var t=parseThickness(e);return[[ve,t.top],[ye,t.right],[we,t.bottom],[Ce,t.left]]}return[[ve,e],[ye,e],[we,e],[Ce,e]]}});fe.register(i.a);var ve=new n.CssProperty({name:"borderTopLeftRadius",cssName:"border-top-left-radius",defaultValue:0,affectsLayout:!1,valueChanged:(e,t,r)=>{var n=g.toDevicePixels(r,0);if(!isNonNegativeFiniteNumber(n))throw new Error("border-top-left-radius should be Non-Negative Finite number. Value: ".concat(n));var i=e.backgroundInternal.withBorderTopLeftRadius(n);e.backgroundInternal=i},valueConverter:g.parse});ve.register(i.a);var ye=new n.CssProperty({name:"borderTopRightRadius",cssName:"border-top-right-radius",defaultValue:0,affectsLayout:!1,valueChanged:(e,t,r)=>{var n=g.toDevicePixels(r,0);if(!isNonNegativeFiniteNumber(n))throw new Error("border-top-right-radius should be Non-Negative Finite number. Value: ".concat(n));var i=e.backgroundInternal.withBorderTopRightRadius(n);e.backgroundInternal=i},valueConverter:g.parse});ye.register(i.a);var we=new n.CssProperty({name:"borderBottomRightRadius",cssName:"border-bottom-right-radius",defaultValue:0,affectsLayout:!1,valueChanged:(e,t,r)=>{var n=g.toDevicePixels(r,0);if(!isNonNegativeFiniteNumber(n))throw new Error("border-bottom-right-radius should be Non-Negative Finite number. Value: ".concat(n));var i=e.backgroundInternal.withBorderBottomRightRadius(n);e.backgroundInternal=i},valueConverter:g.parse});we.register(i.a);var Ce=new n.CssProperty({name:"borderBottomLeftRadius",cssName:"border-bottom-left-radius",defaultValue:0,affectsLayout:!1,valueChanged:(e,t,r)=>{var n=g.toDevicePixels(r,0);if(!isNonNegativeFiniteNumber(n))throw new Error("border-bottom-left-radius should be Non-Negative Finite number. Value: ".concat(n));var i=e.backgroundInternal.withBorderBottomLeftRadius(n);e.backgroundInternal=i},valueConverter:g.parse});Ce.register(i.a);function isNonNegativeFiniteNumber(e){return isFinite(e)&&!isNaN(e)&&e>=0}var Se=["rect","circle","ellipse","polygon","inset"];var be=new n.CssProperty({name:"clipPath",cssName:"clip-path",valueChanged:(e,t,r)=>{if(!function isClipPathValid(e){if(!e)return!0;var t=e.substring(0,e.indexOf("(")).trim();return-1!==Se.indexOf(t)}(r))throw new Error("clip-path is not valid.");var n=e.backgroundInternal.withClipPath(r);e.backgroundInternal=n}});be.register(i.a);var _e=new n.CssProperty({name:"zIndex",cssName:"z-index",valueConverter:function isFloatValueConverter(e){var t=parseFloat(e);if(isNaN(t))throw new Error("Invalid value: ".concat(t));return t}});_e.register(i.a);var xe=new n.CssAnimationProperty({name:"opacity",cssName:"opacity",defaultValue:1,valueConverter:function opacityConverter(e){var t=parseFloat(e);if(!isNaN(t)&&0<=t&&t<=1)return t;throw new Error("Opacity should be between [0, 1]. Value: ".concat(t))}});xe.register(i.a);var Te=new n.InheritedCssProperty({name:"color",cssName:"color",equalityComparer:a.a.equals,valueConverter:e=>new a.a(e)});Te.register(i.a);var Pe=new n.CssProperty({name:"fontInternal",cssName:"_fontInternal"});Pe.register(i.a);var ke=new n.InheritedCssProperty({name:"fontFamily",cssName:"font-family",affectsLayout:!1,valueChanged:(e,t,r)=>{var i=e.fontInternal||o.a.default;if(i.fontFamily!==r){var a=i.withFontFamily(r);e.fontInternal=o.a.equals(o.a.default,a)?n.unsetValue:a}}});ke.register(i.a);var Ae=new n.InheritedCssProperty({name:"fontSize",cssName:"font-size",affectsLayout:!1,valueChanged:(e,t,r)=>{if(!0!==e.viewRef.handleFontSize){var i=e.fontInternal||o.a.default;if(i.fontSize!==r){var a=i.withFontSize(r);e.fontInternal=o.a.equals(o.a.default,a)?n.unsetValue:a}}},valueConverter:e=>parseFloat(e)});Ae.register(i.a);var Ee=new n.InheritedCssProperty({name:"fontStyle",cssName:"font-style",affectsLayout:!1,defaultValue:l.b.NORMAL,valueConverter:l.b.parse,valueChanged:(e,t,r)=>{var i=e.fontInternal||o.a.default;if(i.fontStyle!==r){var a=i.withFontStyle(r);e.fontInternal=o.a.equals(o.a.default,a)?n.unsetValue:a}}});Ee.register(i.a);var Ie=new n.InheritedCssProperty({name:"fontWeight",cssName:"font-weight",affectsLayout:!1,defaultValue:l.c.NORMAL,valueConverter:l.c.parse,valueChanged:(e,t,r)=>{var i=e.fontInternal||o.a.default;if(i.fontWeight!==r){var a=i.withFontWeight(r);e.fontInternal=o.a.equals(o.a.default,a)?n.unsetValue:a}}});Ie.register(i.a);var Ve,Le=new n.ShorthandProperty({name:"font",cssName:"font",getter:function getter(){return"".concat(this.fontStyle," ").concat(this.fontWeight," ").concat(this.fontSize," ").concat(this.fontFamily)},converter:function converter(e){if(e===n.unsetValue)return[[Ee,n.unsetValue],[Ie,n.unsetValue],[Ae,n.unsetValue],[ke,n.unsetValue]];var t=Object(l.e)(e),r=parseFloat(t.fontSize);return[[Ee,t.fontStyle],[Ie,t.fontWeight],[Ae,r],[ke,t.fontFamily]]}});Le.register(i.a);!function(e){e.VISIBLE="visible";e.HIDDEN="hidden";e.COLLAPSE="collapse";e.isValid=Object(n.makeValidator)(e.VISIBLE,e.HIDDEN,e.COLLAPSE);e.parse=r=>"collapsed"===r.toLowerCase()?e.COLLAPSE:t(r);var t=Object(n.makeParser)(e.isValid)}(Ve||(Ve={}));var Ne=new n.CssProperty({name:"visibility",cssName:"visibility",defaultValue:Ve.VISIBLE,affectsLayout:!1,valueConverter:Ve.parse,valueChanged:(e,t,r)=>{var n=e.viewRef.get();n?n.isCollapsed=r===Ve.COLLAPSE:f.a.write("".concat(r,' not set to view\'s property because ".viewRef" is cleared'),f.a.categories.Style,f.a.messageType.warn)}});Ne.register(i.a);var Oe=new n.CssProperty({name:"androidElevation",cssName:"android-elevation",valueConverter:parseFloat});Oe.register(i.a);var De=new n.CssProperty({name:"androidDynamicElevationOffset",cssName:"android-dynamic-elevation-offset",valueConverter:parseFloat});De.register(i.a)},function(e,t,r){"use strict";r.r(t);r.d(t,"iOSApplication",(function(){return i.iOSApplication}));r.d(t,"AndroidApplication",(function(){return i.AndroidApplication}));r.d(t,"Application",(function(){return R}));r.d(t,"ApplicationSettings",(function(){return B}));r.d(t,"Color",(function(){return l.a}));r.d(t,"Connectivity",(function(){return M}));r.d(t,"CSSUtils",(function(){return m.a}));r.d(t,"ObservableArray",(function(){return g.b}));r.d(t,"ChangeType",(function(){return g.a}));r.d(t,"Observable",(function(){return f.a}));r.d(t,"WrappedValue",(function(){return f.b}));r.d(t,"fromObject",(function(){return f.c}));r.d(t,"fromObjectRecursive",(function(){return f.d}));r.d(t,"VirtualArray",(function(){return virtual_array_VirtualArray}));r.d(t,"File",(function(){return v.File}));r.d(t,"FileSystemEntity",(function(){return v.FileSystemEntity}));r.d(t,"Folder",(function(){return v.Folder}));r.d(t,"knownFolders",(function(){return v.knownFolders}));r.d(t,"path",(function(){return v.path}));r.d(t,"getFileAccess",(function(){return v.getFileAccess}));r.d(t,"Http",(function(){return z}));r.d(t,"ImageAsset",(function(){return C.a}));r.d(t,"ImageSource",(function(){return S.ImageSource}));r.d(t,"ModuleNameResolver",(function(){return b.a}));r.d(t,"_setResolver",(function(){return b.b}));r.d(t,"isAndroid",(function(){return x.c}));r.d(t,"isIOS",(function(){return x.d}));r.d(t,"Screen",(function(){return x.b}));r.d(t,"Device",(function(){return x.a}));r.d(t,"platformNames",(function(){return x.e}));r.d(t,"profile",(function(){return T.f}));r.d(t,"profilingEnable",(function(){return T.c}));r.d(t,"profilingDisable",(function(){return T.a}));r.d(t,"profilingTime",(function(){return T.l}));r.d(t,"profilingUptime",(function(){return T.n}));r.d(t,"profilingStart",(function(){return T.h}));r.d(t,"profilingStop",(function(){return T.j}));r.d(t,"profilingIsRunning",(function(){return T.d}));r.d(t,"profilingDumpProfiles",(function(){return T.b}));r.d(t,"profilingResetProfiles",(function(){return T.g}));r.d(t,"profilingStartCPU",(function(){return T.i}));r.d(t,"profilingStopCPU",(function(){return T.k}));r.d(t,"encoding",(function(){return P.encoding}));r.d(t,"Trace",(function(){return A.a}));r.d(t,"ActionBar",(function(){return E.ActionBar}));r.d(t,"ActionItem",(function(){return E.ActionItem}));r.d(t,"ActionItems",(function(){return E.ActionItems}));r.d(t,"NavigationButton",(function(){return E.NavigationButton}));r.d(t,"ActivityIndicator",(function(){return E.ActivityIndicator}));r.d(t,"Animation",(function(){return E.Animation}));r.d(t,"KeyframeAnimation",(function(){return E.KeyframeAnimation}));r.d(t,"KeyframeAnimationInfo",(function(){return E.KeyframeAnimationInfo}));r.d(t,"KeyframeDeclaration",(function(){return E.KeyframeDeclaration}));r.d(t,"KeyframeInfo",(function(){return E.KeyframeInfo}));r.d(t,"BottomNavigation",(function(){return E.BottomNavigation}));r.d(t,"Builder",(function(){return E.Builder}));r.d(t,"sanitizeModuleName",(function(){return E.sanitizeModuleName}));r.d(t,"Button",(function(){return E.Button}));r.d(t,"ContentView",(function(){return E.ContentView}));r.d(t,"Binding",(function(){return E.Binding}));r.d(t,"ControlStateChangeListener",(function(){return E.ControlStateChangeListener}));r.d(t,"ViewBase",(function(){return E.ViewBase}));r.d(t,"eachDescendant",(function(){return E.eachDescendant}));r.d(t,"getAncestor",(function(){return E.getAncestor}));r.d(t,"getViewById",(function(){return E.getViewById}));r.d(t,"booleanConverter",(function(){return E.booleanConverter}));r.d(t,"View",(function(){return E.View}));r.d(t,"CSSType",(function(){return E.CSSType}));r.d(t,"ContainerView",(function(){return E.ContainerView}));r.d(t,"ViewHelper",(function(){return E.ViewHelper}));r.d(t,"IOSHelper",(function(){return E.IOSHelper}));r.d(t,"isUserInteractionEnabledProperty",(function(){return E.isUserInteractionEnabledProperty}));r.d(t,"PseudoClassHandler",(function(){return E.PseudoClassHandler}));r.d(t,"Property",(function(){return E.Property}));r.d(t,"CoercibleProperty",(function(){return E.CoercibleProperty}));r.d(t,"InheritedProperty",(function(){return E.InheritedProperty}));r.d(t,"CssProperty",(function(){return E.CssProperty}));r.d(t,"InheritedCssProperty",(function(){return E.InheritedCssProperty}));r.d(t,"ShorthandProperty",(function(){return E.ShorthandProperty}));r.d(t,"CssAnimationProperty",(function(){return E.CssAnimationProperty}));r.d(t,"unsetValue",(function(){return E.unsetValue}));r.d(t,"makeParser",(function(){return E.makeParser}));r.d(t,"makeValidator",(function(){return E.makeValidator}));r.d(t,"addWeakEventListener",(function(){return E.addWeakEventListener}));r.d(t,"removeWeakEventListener",(function(){return E.removeWeakEventListener}));r.d(t,"DatePicker",(function(){return E.DatePicker}));r.d(t,"DialogStrings",(function(){return E.DialogStrings}));r.d(t,"action",(function(){return E.action}));r.d(t,"alert",(function(){return E.alert}));r.d(t,"confirm",(function(){return E.confirm}));r.d(t,"login",(function(){return E.login}));r.d(t,"prompt",(function(){return E.prompt}));r.d(t,"getCurrentPage",(function(){return E.getCurrentPage}));r.d(t,"Dialogs",(function(){return E.Dialogs}));r.d(t,"inputType",(function(){return E.inputType}));r.d(t,"capitalizationType",(function(){return E.capitalizationType}));r.d(t,"placeholderColorProperty",(function(){return E.placeholderColorProperty}));r.d(t,"keyboardTypeProperty",(function(){return E.keyboardTypeProperty}));r.d(t,"returnKeyTypeProperty",(function(){return E.returnKeyTypeProperty}));r.d(t,"editableProperty",(function(){return E.editableProperty}));r.d(t,"updateTextTriggerProperty",(function(){return E.updateTextTriggerProperty}));r.d(t,"autocapitalizationTypeProperty",(function(){return E.autocapitalizationTypeProperty}));r.d(t,"autocorrectProperty",(function(){return E.autocorrectProperty}));r.d(t,"hintProperty",(function(){return E.hintProperty}));r.d(t,"maxLengthProperty",(function(){return E.maxLengthProperty}));r.d(t,"dismissKeyboardTimeoutId",(function(){return E.dismissKeyboardTimeoutId}));r.d(t,"dismissKeyboardOwner",(function(){return E.dismissKeyboardOwner}));r.d(t,"EditableTextBase",(function(){return E.EditableTextBase}));r.d(t,"Enums",(function(){return E.Enums}));r.d(t,"Frame",(function(){return E.Frame}));r.d(t,"setActivityCallbacks",(function(){return E.setActivityCallbacks}));r.d(t,"GesturesObserver",(function(){return E.GesturesObserver}));r.d(t,"TouchAction",(function(){return E.TouchAction}));r.d(t,"GestureTypes",(function(){return E.GestureTypes}));r.d(t,"GestureStateTypes",(function(){return E.GestureStateTypes}));r.d(t,"SwipeDirection",(function(){return E.SwipeDirection}));r.d(t,"HtmlView",(function(){return E.HtmlView}));r.d(t,"Image",(function(){return E.Image}));r.d(t,"ImageCache",(function(){return E.ImageCache}));r.d(t,"Label",(function(){return E.Label}));r.d(t,"AbsoluteLayout",(function(){return E.AbsoluteLayout}));r.d(t,"DockLayout",(function(){return E.DockLayout}));r.d(t,"FlexboxLayout",(function(){return E.FlexboxLayout}));r.d(t,"GridLayout",(function(){return E.GridLayout}));r.d(t,"GridUnitType",(function(){return E.GridUnitType}));r.d(t,"ItemSpec",(function(){return E.ItemSpec}));r.d(t,"StackLayout",(function(){return E.StackLayout}));r.d(t,"WrapLayout",(function(){return E.WrapLayout}));r.d(t,"LayoutBase",(function(){return E.LayoutBase}));r.d(t,"ListPicker",(function(){return E.ListPicker}));r.d(t,"ListView",(function(){return E.ListView}));r.d(t,"Page",(function(){return E.Page}));r.d(t,"PageBase",(function(){return E.PageBase}));r.d(t,"Placeholder",(function(){return E.Placeholder}));r.d(t,"Progress",(function(){return E.Progress}));r.d(t,"ProxyViewContainer",(function(){return E.ProxyViewContainer}));r.d(t,"Repeater",(function(){return E.Repeater}));r.d(t,"ScrollView",(function(){return E.ScrollView}));r.d(t,"SearchBar",(function(){return E.SearchBar}));r.d(t,"SegmentedBar",(function(){return E.SegmentedBar}));r.d(t,"SegmentedBarItem",(function(){return E.SegmentedBarItem}));r.d(t,"Slider",(function(){return E.Slider}));r.d(t,"addTaggedAdditionalCSS",(function(){return E.addTaggedAdditionalCSS}));r.d(t,"removeTaggedAdditionalCSS",(function(){return E.removeTaggedAdditionalCSS}));r.d(t,"resolveFileNameFromUrl",(function(){return E.resolveFileNameFromUrl}));r.d(t,"Background",(function(){return E.Background}));r.d(t,"animationTimingFunctionConverter",(function(){return E.animationTimingFunctionConverter}));r.d(t,"timeConverter",(function(){return E.timeConverter}));r.d(t,"Font",(function(){return E.Font}));r.d(t,"Style",(function(){return E.Style}));r.d(t,"PercentLength",(function(){return E.PercentLength}));r.d(t,"Length",(function(){return E.Length}));r.d(t,"zeroLength",(function(){return E.zeroLength}));r.d(t,"minWidthProperty",(function(){return E.minWidthProperty}));r.d(t,"minHeightProperty",(function(){return E.minHeightProperty}));r.d(t,"widthProperty",(function(){return E.widthProperty}));r.d(t,"heightProperty",(function(){return E.heightProperty}));r.d(t,"marginLeftProperty",(function(){return E.marginLeftProperty}));r.d(t,"marginRightProperty",(function(){return E.marginRightProperty}));r.d(t,"marginTopProperty",(function(){return E.marginTopProperty}));r.d(t,"marginBottomProperty",(function(){return E.marginBottomProperty}));r.d(t,"paddingLeftProperty",(function(){return E.paddingLeftProperty}));r.d(t,"paddingRightProperty",(function(){return E.paddingRightProperty}));r.d(t,"paddingTopProperty",(function(){return E.paddingTopProperty}));r.d(t,"paddingBottomProperty",(function(){return E.paddingBottomProperty}));r.d(t,"HorizontalAlignment",(function(){return E.HorizontalAlignment}));r.d(t,"horizontalAlignmentProperty",(function(){return E.horizontalAlignmentProperty}));r.d(t,"VerticalAlignment",(function(){return E.VerticalAlignment}));r.d(t,"verticalAlignmentProperty",(function(){return E.verticalAlignmentProperty}));r.d(t,"rotateProperty",(function(){return E.rotateProperty}));r.d(t,"rotateXProperty",(function(){return E.rotateXProperty}));r.d(t,"rotateYProperty",(function(){return E.rotateYProperty}));r.d(t,"perspectiveProperty",(function(){return E.perspectiveProperty}));r.d(t,"scaleXProperty",(function(){return E.scaleXProperty}));r.d(t,"scaleYProperty",(function(){return E.scaleYProperty}));r.d(t,"translateXProperty",(function(){return E.translateXProperty}));r.d(t,"translateYProperty",(function(){return E.translateYProperty}));r.d(t,"transformConverter",(function(){return E.transformConverter}));r.d(t,"backgroundInternalProperty",(function(){return E.backgroundInternalProperty}));r.d(t,"backgroundImageProperty",(function(){return E.backgroundImageProperty}));r.d(t,"backgroundColorProperty",(function(){return E.backgroundColorProperty}));r.d(t,"BackgroundRepeat",(function(){return E.BackgroundRepeat}));r.d(t,"backgroundRepeatProperty",(function(){return E.backgroundRepeatProperty}));r.d(t,"backgroundSizeProperty",(function(){return E.backgroundSizeProperty}));r.d(t,"backgroundPositionProperty",(function(){return E.backgroundPositionProperty}));r.d(t,"borderTopColorProperty",(function(){return E.borderTopColorProperty}));r.d(t,"borderRightColorProperty",(function(){return E.borderRightColorProperty}));r.d(t,"borderBottomColorProperty",(function(){return E.borderBottomColorProperty}));r.d(t,"borderLeftColorProperty",(function(){return E.borderLeftColorProperty}));r.d(t,"borderTopWidthProperty",(function(){return E.borderTopWidthProperty}));r.d(t,"borderRightWidthProperty",(function(){return E.borderRightWidthProperty}));r.d(t,"borderBottomWidthProperty",(function(){return E.borderBottomWidthProperty}));r.d(t,"borderLeftWidthProperty",(function(){return E.borderLeftWidthProperty}));r.d(t,"borderTopLeftRadiusProperty",(function(){return E.borderTopLeftRadiusProperty}));r.d(t,"borderTopRightRadiusProperty",(function(){return E.borderTopRightRadiusProperty}));r.d(t,"borderBottomRightRadiusProperty",(function(){return E.borderBottomRightRadiusProperty}));r.d(t,"borderBottomLeftRadiusProperty",(function(){return E.borderBottomLeftRadiusProperty}));r.d(t,"clipPathProperty",(function(){return E.clipPathProperty}));r.d(t,"zIndexProperty",(function(){return E.zIndexProperty}));r.d(t,"opacityProperty",(function(){return E.opacityProperty}));r.d(t,"colorProperty",(function(){return E.colorProperty}));r.d(t,"fontInternalProperty",(function(){return E.fontInternalProperty}));r.d(t,"fontFamilyProperty",(function(){return E.fontFamilyProperty}));r.d(t,"fontSizeProperty",(function(){return E.fontSizeProperty}));r.d(t,"fontStyleProperty",(function(){return E.fontStyleProperty}));r.d(t,"fontWeightProperty",(function(){return E.fontWeightProperty}));r.d(t,"Visibility",(function(){return E.Visibility}));r.d(t,"visibilityProperty",(function(){return E.visibilityProperty}));r.d(t,"androidElevationProperty",(function(){return E.androidElevationProperty}));r.d(t,"androidDynamicElevationOffsetProperty",(function(){return E.androidDynamicElevationOffsetProperty}));r.d(t,"CssAnimationParser",(function(){return E.CssAnimationParser}));r.d(t,"parseKeyframeDeclarations",(function(){return E.parseKeyframeDeclarations}));r.d(t,"CSSHelper",(function(){return E.CSSHelper}));r.d(t,"Switch",(function(){return E.Switch}));r.d(t,"TabContentItem",(function(){return E.TabContentItem}));r.d(t,"TabNavigationBase",(function(){return E.TabNavigationBase}));r.d(t,"getIconSpecSize",(function(){return E.getIconSpecSize}));r.d(t,"tabStripProperty",(function(){return E.tabStripProperty}));r.d(t,"TabStrip",(function(){return E.TabStrip}));r.d(t,"TabStripItem",(function(){return E.TabStripItem}));r.d(t,"TabView",(function(){return E.TabView}));r.d(t,"TabViewItem",(function(){return E.TabViewItem}));r.d(t,"Tabs",(function(){return E.Tabs}));r.d(t,"TextBase",(function(){return E.TextBase}));r.d(t,"getTransformedText",(function(){return E.getTransformedText}));r.d(t,"letterSpacingProperty",(function(){return E.letterSpacingProperty}));r.d(t,"textAlignmentProperty",(function(){return E.textAlignmentProperty}));r.d(t,"textDecorationProperty",(function(){return E.textDecorationProperty}));r.d(t,"textTransformProperty",(function(){return E.textTransformProperty}));r.d(t,"whiteSpaceProperty",(function(){return E.whiteSpaceProperty}));r.d(t,"lineHeightProperty",(function(){return E.lineHeightProperty}));r.d(t,"FormattedString",(function(){return E.FormattedString}));r.d(t,"Span",(function(){return E.Span}));r.d(t,"TextField",(function(){return E.TextField}));r.d(t,"TextView",(function(){return E.TextView}));r.d(t,"TimePicker",(function(){return E.TimePicker}));r.d(t,"Transition",(function(){return E.Transition}));r.d(t,"WebView",(function(){return E.WebView}));r.d(t,"Utils",(function(){return W}));r.d(t,"XmlParser",(function(){return F.c}));r.d(t,"ParserEventType",(function(){return F.b}));r.d(t,"ParserEvent",(function(){return F.a}));r(104);var n,i=r(8),a=r(43),o=r(56),l=r(4);!function(e){e[e.none=0]="none";e[e.wifi=1]="wifi";e[e.mobile=2]="mobile";e[e.ethernet=3]="ethernet";e[e.bluetooth=4]="bluetooth";e[e.vpn=5]="vpn"}(n||(n={}));var d,p,h;function getConnectivityManager(){return Object(i.getNativeApplication)().getApplicationContext().getSystemService(android.content.Context.CONNECTIVITY_SERVICE)}function getConnectionType(){if(android.os.Build.VERSION.SDK_INT>=28)return function getNetworkCapabilities(){var e=getConnectivityManager(),t=e.getActiveNetwork(),r=e.getNetworkCapabilities(t);if(null==r)return n.none;var i=android.net.NetworkCapabilities;return r.hasTransport(i.TRANSPORT_WIFI)?n.wifi:r.hasTransport(i.TRANSPORT_CELLULAR)?n.mobile:r.hasTransport(i.TRANSPORT_ETHERNET)?n.ethernet:r.hasTransport(i.TRANSPORT_BLUETOOTH)?n.bluetooth:r.hasTransport(i.TRANSPORT_VPN)?n.vpn:n.none}();var e=function getActiveNetworkInfo(){var e=getConnectivityManager();return e?e.getActiveNetworkInfo():null}();if(!e||!e.isConnected())return n.none;var t=e.getTypeName().toLowerCase();return-1!==t.indexOf("wifi")?n.wifi:-1!==t.indexOf("mobile")?n.mobile:-1!==t.indexOf("ethernet")?n.ethernet:-1!==t.indexOf("bluetooth")?n.bluetooth:-1!==t.indexOf("vpn")?n.vpn:n.none}var m=r(24),g=r(23),f=r(16);class virtual_array_VirtualArray extends f.a{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;super();this._length=e;this._cache={};this._requestedIndexes=[];this._loadedIndexes=[]}get length(){return this._length}set length(e){if(this._length!==e){var t=this._length,r=e-this._length;this._length=e;this.notify({eventName:g.a.Change,object:this,action:r>0?g.a.Add:g.a.Delete,index:t,removed:new Array(r<0?Math.abs(r):0),addedCount:r>0?r:0})}}get loadSize(){return this._loadSize}set loadSize(e){this._loadSize=e}getItem(e){var t=this._cache[e];void 0===t&&e>=0&&e0)for(var i=0;i0?this._loadSize*Math.floor(e/this._loadSize):e,n=0,i=-1,a=0;a=this._length)break;if(this._loadedIndexes.indexOf(o)<0){i<0&&(i=o);t.push(o);this._requestedIndexes.indexOf(o)<0&&this._requestedIndexes.push(o);n++}else{n>0&&this.notify({eventName:virtual_array_VirtualArray.itemsLoadingEvent,object:this,index:i,count:n});i=-1;n=0}}i>=0&&n>0&&this.notify({eventName:virtual_array_VirtualArray.itemsLoadingEvent,object:this,index:i,count:n})}}virtual_array_VirtualArray.changeEvent=g.a.Change;virtual_array_VirtualArray.itemsLoadingEvent="itemsLoading";var v=r(17),y=r(96),w=r(85),C=r(100),S=r(29),b=r(44),x=r(18),T=r(6),P=r(81),k=r(82),A=r(1),E=r(121),I=r(25),V=r(9),L=r(108),N=r(40),O=r(50),D=r(13),F=r(54),R={launchEvent:a.launchEvent,displayedEvent:a.displayedEvent,uncaughtErrorEvent:a.uncaughtErrorEvent,discardedErrorEvent:a.discardedErrorEvent,suspendEvent:a.suspendEvent,resumeEvent:a.resumeEvent,exitEvent:a.exitEvent,lowMemoryEvent:a.lowMemoryEvent,orientationChangedEvent:a.orientationChangedEvent,systemAppearanceChangedEvent:a.systemAppearanceChangedEvent,systemAppearanceChanged:a.systemAppearanceChanged,getMainEntry:i.getMainEntry,getRootView:i.getRootView,resetRootView:i._resetRootView,getResources:a.getResources,setResources:a.setResources,setCssFileName:a.setCssFileName,getCssFileName:a.getCssFileName,loadAppCss:a.loadAppCss,addCss:i.addCss,on:a.on,off:a.off,notify:a.notify,hasListeners:a.hasListeners,run:i.run,orientation:i.orientation,getNativeApplication:i.getNativeApplication,hasLaunched:a.hasLaunched,systemAppearance:i.systemAppearance,android:i.android,ios:a.ios},B={clear:o.a,flush:o.b,hasKey:o.g,remove:o.h,setString:o.k,getString:o.f,getAllKeys:o.c,getBoolean:o.d,setBoolean:o.i,getNumber:o.e,setNumber:o.j},M={connectionType:n,getConnectionType:getConnectionType,startMonitoring:function startMonitoring(e){if(android.os.Build.VERSION.SDK_INT>=28){var t=getConnectivityManager();if(t){h=()=>{var t=getConnectionType(),r=zonedCallback(e);r(t)};var r=android.net.ConnectivityManager;if(!p){var n=function(e){__extends(NetworkCallbackImpl,e);function NetworkCallbackImpl(){return null!==e&&e.apply(this,arguments)||this}NetworkCallbackImpl.prototype.onAvailable=function(e){h&&h()};NetworkCallbackImpl.prototype.onCapabilitiesChanged=function(e,t){h&&h()};NetworkCallbackImpl.prototype.onLost=function(e){h&&h()};NetworkCallbackImpl.prototype.onUnavailable=function(){h&&h()};return NetworkCallbackImpl}(r.NetworkCallback);p=n}d=new p;t.registerDefaultNetworkCallback(d)}}else!function startMonitoringLegacy(e){var t=zonedCallback((function onReceiveCallback(t,r){var n=getConnectionType();e(n)}));i.android.registerBroadcastReceiver(android.net.ConnectivityManager.CONNECTIVITY_ACTION,t)}(e)},stopMonitoring:function stopMonitoring(){if(android.os.Build.VERSION.SDK_INT>=28){var e=getConnectivityManager();if(e&&d){e.unregisterNetworkCallback(d);h=null;d=null}}else i.android.unregisterBroadcastReceiver(android.net.ConnectivityManager.CONNECTIVITY_ACTION)}},z={getFile:y.getFile,getImage:y.getImage,getJSON:y.getJSON,getString:y.getString,request:w.b},W={GC:I.b,RESOURCE_PREFIX:V.b,FILE_PREFIX:V.a,isFontIconURI:V.l,isDataURI:V.j,isFileOrResourcePath:V.k,executeOnMainThread:V.g,mainThreadify:V.o,isMainThread:L.b,dispatchToMainThread:L.a,releaseNativeObject:I.y,getModuleName:V.h,openFile:I.w,openUrl:I.x,isRealDevice:I.r,layout:V.n,android:N.a,ad:N.a,ios:N.b,setTimeout:k.setTimeout,setInterval:k.setInterval,clearInterval:k.clearInterval,clearTimeout:k.clearTimeout,Source:O.Source,ClassInfo:D.ClassInfo,getClass:D.getClass,getBaseClasses:D.getBaseClasses,getClassInfo:D.getClassInfo,isBoolean:D.isBoolean,isDefined:D.isDefined,isFunction:D.isFunction,isNullOrUndefined:D.isNullOrUndefined,isNumber:D.isNumber,isObject:D.isObject,isString:D.isString,isUndefined:D.isUndefined,toUIString:D.toUIString,verifyCallback:D.verifyCallback}},function(e,t,r){"use strict";r.d(t,"a",(function(){return color_Color}));var n=r(13),i={};function registerColor(e,t){i[e.toLowerCase()]=t;return t}function isKnownName(e){if(e)return e.toLowerCase()in i}registerColor("Transparent","#00000000"),registerColor("AliceBlue","#F0F8FF"),registerColor("AntiqueWhite","#FAEBD7"),registerColor("Aqua","#00FFFF"),registerColor("Aquamarine","#7FFFD4"),registerColor("Azure","#F0FFFF"),registerColor("Beige","#F5F5DC"),registerColor("Bisque","#FFE4C4"),registerColor("Black","#000000"),registerColor("BlanchedAlmond","#FFEBCD"),registerColor("Blue","#0000FF"),registerColor("BlueViolet","#8A2BE2"),registerColor("Brown","#A52A2A"),registerColor("BurlyWood","#DEB887"),registerColor("CadetBlue","#5F9EA0"),registerColor("Chartreuse","#7FFF00"),registerColor("Chocolate","#D2691E"),registerColor("Coral","#FF7F50"),registerColor("CornflowerBlue","#6495ED"),registerColor("Cornsilk","#FFF8DC"),registerColor("Crimson","#DC143C"),registerColor("Cyan","#00FFFF"),registerColor("DarkBlue","#00008B"),registerColor("DarkCyan","#008B8B"),registerColor("DarkGoldenRod","#B8860B"),registerColor("DarkGray","#A9A9A9"),registerColor("DarkGreen","#006400"),registerColor("DarkKhaki","#BDB76B"),registerColor("DarkMagenta","#8B008B"),registerColor("DarkOliveGreen","#556B2F"),registerColor("DarkOrange","#FF8C00"),registerColor("DarkOrchid","#9932CC"),registerColor("DarkRed","#8B0000"),registerColor("DarkSalmon","#E9967A"),registerColor("DarkSeaGreen","#8FBC8F"),registerColor("DarkSlateBlue","#483D8B"),registerColor("DarkSlateGray","#2F4F4F"),registerColor("DarkTurquoise","#00CED1"),registerColor("DarkViolet","#9400D3"),registerColor("DeepPink","#FF1493"),registerColor("DeepSkyBlue","#00BFFF"),registerColor("DimGray","#696969"),registerColor("DodgerBlue","#1E90FF"),registerColor("FireBrick","#B22222"),registerColor("FloralWhite","#FFFAF0"),registerColor("ForestGreen","#228B22"),registerColor("Fuchsia","#FF00FF"),registerColor("Gainsboro","#DCDCDC"),registerColor("GhostWhite","#F8F8FF"),registerColor("Gold","#FFD700"),registerColor("GoldenRod","#DAA520"),registerColor("Gray","#808080"),registerColor("Green","#008000"),registerColor("GreenYellow","#ADFF2F"),registerColor("HoneyDew","#F0FFF0"),registerColor("HotPink","#FF69B4"),registerColor("IndianRed","#CD5C5C"),registerColor("Indigo","#4B0082"),registerColor("Ivory","#FFFFF0"),registerColor("Khaki","#F0E68C"),registerColor("Lavender","#E6E6FA"),registerColor("LavenderBlush","#FFF0F5"),registerColor("LawnGreen","#7CFC00"),registerColor("LemonChiffon","#FFFACD"),registerColor("LightBlue","#ADD8E6"),registerColor("LightCoral","#F08080"),registerColor("LightCyan","#E0FFFF"),registerColor("LightGoldenRodYellow","#FAFAD2"),registerColor("LightGray","#D3D3D3"),registerColor("LightGreen","#90EE90"),registerColor("LightPink","#FFB6C1"),registerColor("LightSalmon","#FFA07A"),registerColor("LightSeaGreen","#20B2AA"),registerColor("LightSkyBlue","#87CEFA"),registerColor("LightSlateGray","#778899"),registerColor("LightSteelBlue","#B0C4DE"),registerColor("LightYellow","#FFFFE0"),registerColor("Lime","#00FF00"),registerColor("LimeGreen","#32CD32"),registerColor("Linen","#FAF0E6"),registerColor("Magenta","#FF00FF"),registerColor("Maroon","#800000"),registerColor("MediumAquaMarine","#66CDAA"),registerColor("MediumBlue","#0000CD"),registerColor("MediumOrchid","#BA55D3"),registerColor("MediumPurple","#9370DB"),registerColor("MediumSeaGreen","#3CB371"),registerColor("MediumSlateBlue","#7B68EE"),registerColor("MediumSpringGreen","#00FA9A"),registerColor("MediumTurquoise","#48D1CC"),registerColor("MediumVioletRed","#C71585"),registerColor("MidnightBlue","#191970"),registerColor("MintCream","#F5FFFA"),registerColor("MistyRose","#FFE4E1"),registerColor("Moccasin","#FFE4B5"),registerColor("NavajoWhite","#FFDEAD"),registerColor("Navy","#000080"),registerColor("OldLace","#FDF5E6"),registerColor("Olive","#808000"),registerColor("OliveDrab","#6B8E23"),registerColor("Orange","#FFA500"),registerColor("OrangeRed","#FF4500"),registerColor("Orchid","#DA70D6"),registerColor("PaleGoldenRod","#EEE8AA"),registerColor("PaleGreen","#98FB98"),registerColor("PaleTurquoise","#AFEEEE"),registerColor("PaleVioletRed","#DB7093"),registerColor("PapayaWhip","#FFEFD5"),registerColor("PeachPuff","#FFDAB9"),registerColor("Peru","#CD853F"),registerColor("Pink","#FFC0CB"),registerColor("Plum","#DDA0DD"),registerColor("PowderBlue","#B0E0E6"),registerColor("Purple","#800080"),registerColor("RebeccaPurple","#663399"),registerColor("Red","#FF0000"),registerColor("RosyBrown","#BC8F8F"),registerColor("RoyalBlue","#4169E1"),registerColor("SaddleBrown","#8B4513"),registerColor("Salmon","#FA8072"),registerColor("SandyBrown","#F4A460"),registerColor("SeaGreen","#2E8B57"),registerColor("SeaShell","#FFF5EE"),registerColor("Sienna","#A0522D"),registerColor("Silver","#C0C0C0"),registerColor("SkyBlue","#87CEEB"),registerColor("SlateBlue","#6A5ACD"),registerColor("SlateGray","#708090"),registerColor("Snow","#FFFAFA"),registerColor("SpringGreen","#00FF7F"),registerColor("SteelBlue","#4682B4"),registerColor("Tan","#D2B48C"),registerColor("Teal","#008080"),registerColor("Thistle","#D8BFD8"),registerColor("Tomato","#FF6347"),registerColor("Turquoise","#40E0D0"),registerColor("Violet","#EE82EE"),registerColor("Wheat","#F5DEB3"),registerColor("White","#FFFFFF"),registerColor("WhiteSmoke","#F5F5F5"),registerColor("Yellow","#FFFF00"),registerColor("YellowGreen","#9ACD32");var a=r(80),o=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i;class color_common_Color{constructor(){if(1===arguments.length){var e=arguments[0];if(n.isString(e))if(isRgbOrRgba(e))this._argb=function argbFromRgbOrRgba(e){var{f:t,s:r,t:n,a:i}=parseColorWithAlpha(e);return 16777216*(255&i)+65536*(255&t)+256*(255&r)+(255&n)}(e);else if(isHslOrHsla(e))this._argb=function argbFromHslOrHsla(e){var{f:t,s:r,t:n,a:i}=parseColorWithAlpha(e),{r:o,g:l,b:d}=Object(a.convertHSLToRGBColor)(t,r,n);return 16777216*(255&i)+65536*(255&o)+256*(255&l)+(255&d)}(e);else if(isKnownName(e)){var t=function getKnownColor(e){if(e)return i[e.toLowerCase()]}(e);this._name=e;this._argb=this._argbFromString(t)}else{if(!o.test(e))throw new Error("Invalid color: "+e);var r=this._normalizeHex(e);this._argb=this._argbFromString(r)}else{if(!n.isNumber(e))throw new Error("Expected 1 or 4 constructor parameters.");this._argb=e>>>0}}else{if(4!==arguments.length)throw new Error("Expected 1 or 4 constructor parameters.");this._argb=16777216*(255&arguments[0])+65536*(255&arguments[1])+256*(255&arguments[2])+1*(255&arguments[3])}}get a(){return this._argb/16777216&255}get r(){return this._argb/65536&255}get g(){return this._argb/256&255}get b(){return this._argb/1&255}get argb(){return this._argb}get hex(){return 255===this.a?("#"+this._componentToHex(this.r)+this._componentToHex(this.g)+this._componentToHex(this.b)).toUpperCase():("#"+this._componentToHex(this.a)+this._componentToHex(this.r)+this._componentToHex(this.g)+this._componentToHex(this.b)).toUpperCase()}get name(){return this._name}get ios(){}get android(){}_argbFromString(e){"#"===e.charAt(0)&&(e=e.substr(1));3===e.length?e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]:4===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);var t=parseInt(e,16);6===e.length&&(t=4278190080+(16777215&t));return t}equals(e){return e&&this.argb===e.argb}static equals(e,t){return!e&&!t||!(!e||!t)&&e.equals(t)}static isValid(e){return!!(n.isNullOrUndefined(e)||e instanceof color_common_Color)||!!n.isString(e)&&(!!isKnownName(e)||(o.test(e)||isRgbOrRgba(e)||isHslOrHsla(e)))}_componentToHex(e){var t=e.toString(16);1===t.length&&(t="0"+t);return t}_normalizeHex(e){"#"===e.charAt(0)&&4===e.length&&(e=e.charAt(0)+e.charAt(1)+e.charAt(1)+e.charAt(2)+e.charAt(2)+e.charAt(3)+e.charAt(3));return e}toString(){return this.hex}static fromIosColor(e){}}function isRgbOrRgba(e){var t=e.toLowerCase();return(0===t.indexOf("rgb(")||0===t.indexOf("rgba("))&&t.indexOf(")")===t.length-1}function isHslOrHsla(e){var t=e.toLowerCase();return(0===t.indexOf("hsl(")||0===t.indexOf("hsla("))&&t.indexOf(")")===t.length-1}function parseColorWithAlpha(e){var t=e.toLowerCase(),r=t.replace(/(rgb|hsl)a?\(/,"").replace(")","").trim().split(","),n=255,i=255,a=255,o=255;r[0]&&(n=parseInt(r[0].trim()));r[1]&&(i=parseInt(r[1].trim()));r[2]&&(a=parseInt(r[2].trim()));r[3]&&(o=Math.round(255*parseFloat(r[3].trim())));return{f:n,s:i,t:a,a:o}}class color_Color extends color_common_Color{get android(){return this.argb>>0}}},function(e,t,r){"use strict";(function(e){r.d(t,"c",(function(){return View}));r.d(t,"a",(function(){return ContainerView}));r.d(t,"b",(function(){return CustomLayoutView}));var n,i,a=r(19),o=r(2),l=r(9),d=r(1),p=r(136),h=r(117),m=r(6),g=r(74),f=r(18),v=r(8),y=r(49),w=Object(y.a)(()=>parseInt(f.a.sdkVersion)),C=new Map;function initializeDialogFragment(){if(!i){var t=function(t){__extends(DialogImpl,t);function DialogImpl(r,n,i){var a=t.call(this,n,i)||this;a.fragment=r;return e.__native(a)}DialogImpl.prototype.onDetachedFromWindow=function(){t.prototype.onDetachedFromWindow.call(this);this.fragment=null};DialogImpl.prototype.onBackPressed=function(){var e=this.fragment.owner,r={eventName:"activityBackPressed",object:e,activity:e._context,cancel:!1};v.android.notify(r);if(!r.cancel){e.notify(r);r.cancel||e.onBackPressed()||t.prototype.onBackPressed.call(this)}};return DialogImpl}(android.app.Dialog),r=function(r){__extends(DialogFragmentImpl,r);function DialogFragmentImpl(){var t=r.call(this)||this;return e.__native(t)}DialogFragmentImpl.prototype.onCreateDialog=function(e){var r=this.getArguments().getInt("_domId"),n=function getModalOptions(e){return C.get(e)}(r);this.owner=n.owner;this.owner._dialogFragment=this;this._fullscreen=n.fullscreen;this._animated=n.animated;this._cancelable=n.cancelable;this._stretched=n.stretched;this._dismissCallback=n.dismissCallback;this._shownCallback=n.shownCallback;this.setStyle(androidx.fragment.app.DialogFragment.STYLE_NO_TITLE,0);var i=this.getTheme();this._fullscreen&&(i=this.getActivity().getApplicationInfo().theme);var a=new t(this,this.getActivity(),i);if(this._fullscreen||this._stretched){this.owner.horizontalAlignment="stretch";this.owner.verticalAlignment="stretch"}else{this.owner.horizontalAlignment="center";this.owner.verticalAlignment="middle"}this._animated&&a.getWindow().setWindowAnimations(16973826);a.setCanceledOnTouchOutside(this._cancelable);return a};DialogFragmentImpl.prototype.onCreateView=function(e,t,r){var n=this.owner;n._setupAsRootView(this.getActivity());n._isAddedToNativeVisualTree=!0;return n.nativeViewProtected};DialogFragmentImpl.prototype.onStart=function(){r.prototype.onStart.call(this);if(this._fullscreen){var e=this.getDialog().getWindow(),t=android.view.ViewGroup.LayoutParams.MATCH_PARENT;e.setLayout(t,t);e.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.WHITE))}var n=this.owner;n&&!n.isLoaded&&n.callLoaded();this._shownCallback()};DialogFragmentImpl.prototype.onDismiss=function(e){r.prototype.onDismiss.call(this,e);var t=this.getFragmentManager();if(t){!function removeModal(e){C.delete(e)}(this.owner._domId);this._dismissCallback()}var n=this.owner;n&&n.isLoaded&&n.callUnloaded()};DialogFragmentImpl.prototype.onDestroy=function(){r.prototype.onDestroy.call(this);var e=this.owner;if(e){e.isLoaded&&e.callUnloaded();e._isAddedToNativeVisualTree=!1;e._tearDownUI(!0)}};return DialogFragmentImpl}(androidx.fragment.app.DialogFragment);i=r}}class View extends a.c{_observe(e,t,r){super._observe(e,t,r);this.isLoaded&&!this.touchListenerIsSet&&this.setOnTouchListener()}on(e,t,r){super.on(e,t,r);var n="string"==typeof e&&-1!==e.indexOf(a.c.layoutChangedEvent);this.isLoaded&&!this.layoutChangeListenerIsSet&&n&&this.setOnLayoutChangeListener()}off(e,t,r){super.off(e,t,r);var n="string"==typeof e&&-1!==e.indexOf(a.c.layoutChangedEvent);if(this.isLoaded&&this.layoutChangeListenerIsSet&&n&&!this.hasListeners(a.c.layoutChangedEvent)){this.nativeViewProtected.removeOnLayoutChangeListener(this.layoutChangeListener);this.layoutChangeListenerIsSet=!1}}_getChildFragmentManager(){return null}_getRootFragmentManager(){!this._rootManager&&this._context&&(this._rootManager=this._context.getSupportFragmentManager());return this._rootManager}_getFragmentManager(){var e=this._manager;if(!e){for(var t=this,r=!1;t;){var n=t._dialogFragment;if(n){e=n.getChildFragmentManager();break}if(t._hasFragments){if(r){e=t._getChildFragmentManager();break}r=!0}t=t.parent}e||(e=this._getRootFragmentManager());this._manager=e}return e}onLoaded(){this._manager=null;this._rootManager=null;super.onLoaded();this.setOnTouchListener()}onUnloaded(){if(this.touchListenerIsSet){this.touchListenerIsSet=!1;if(this.nativeViewProtected){this.nativeViewProtected.setOnTouchListener(null);this.nativeViewProtected.setClickable(this._isClickable)}}this._manager=null;this._rootManager=null;super.onUnloaded()}onBackPressed(){var e=Object(g.e)();return!(!e||!e._hasAncestorView(this))&&e.onBackPressed()}handleGestureTouch(e){for(var t in this._gestureObservers){var r=this._gestureObservers[t];r.forEach(t=>{t.androidOnTouchEvent(e)})}this.parent instanceof View&&this.parent.handleGestureTouch(e)}hasGestureObservers(){return this._gestureObservers&&Object.keys(this._gestureObservers).length>0}initNativeView(){super.initNativeView();this._isClickable=this.nativeViewProtected.isClickable();this.hasListeners(a.c.layoutChangedEvent)&&this.setOnLayoutChangeListener()}disposeNativeView(){super.disposeNativeView();if(this.layoutChangeListenerIsSet){this.layoutChangeListenerIsSet=!1;this.nativeViewProtected.removeOnLayoutChangeListener(this.layoutChangeListener)}}setOnTouchListener(){if(this.nativeViewProtected&&this.hasGestureObservers()){!function initializeTouchListener(){if(!n){var t=function(t){__extends(TouchListenerImpl,t);function TouchListenerImpl(r){var n=t.call(this)||this;n.owner=new WeakRef(r);return e.__native(n)}TouchListenerImpl.prototype.onTouch=function(e,t){var r=this.owner.get();if(r){r.handleGestureTouch(t);var n=r.nativeViewProtected;return!(!n||!n.onTouchEvent)&&n.onTouchEvent(t)}};TouchListenerImpl=__decorate([Interfaces([android.view.View.OnTouchListener])],TouchListenerImpl);return TouchListenerImpl}(java.lang.Object);n=t}}();this.touchListener=this.touchListener||new n(this);this.nativeViewProtected.setOnTouchListener(this.touchListener);this.touchListenerIsSet=!0;this.nativeViewProtected.setClickable&&this.nativeViewProtected.setClickable(this.isUserInteractionEnabled)}}setOnLayoutChangeListener(){if(this.nativeViewProtected){var e=this;this.layoutChangeListenerIsSet=!0;this.layoutChangeListener=this.layoutChangeListener||new android.view.View.OnLayoutChangeListener({onLayoutChange(t,r,n,i,a,o,l,d,p){r===o&&n===l&&i===d&&a===p||e._raiseLayoutChangedEvent()}});this.nativeViewProtected.addOnLayoutChangeListener(this.layoutChangeListener)}}get isLayoutRequired(){return!this.isLayoutValid}get isLayoutValid(){return!!this.nativeViewProtected&&!this.nativeViewProtected.isLayoutRequested()}get _hasFragments(){return!1}layoutNativeView(e,t,r,n){this.nativeViewProtected&&this.nativeViewProtected.layout(e,t,r,n)}requestLayout(){super.requestLayout();this.nativeViewProtected&&this.nativeViewProtected.requestLayout()}measure(e,t){super.measure(e,t);this.onMeasure(e,t)}layout(e,t,r,n){super.layout(e,t,r,n);this.onLayout(e,t,r,n)}onMeasure(e,t){var r=this.nativeViewProtected;if(r){r.measure(e,t);this.setMeasuredDimension(r.getMeasuredWidth(),r.getMeasuredHeight())}}onLayout(e,t,r,n){var i=this.nativeViewProtected;i&&this.layoutNativeView(e,t,r,n)}_getCurrentLayoutBounds(){return this.nativeViewProtected&&!this.isCollapsed?{left:this.nativeViewProtected.getLeft(),top:this.nativeViewProtected.getTop(),right:this.nativeViewProtected.getRight(),bottom:this.nativeViewProtected.getBottom()}:{left:0,top:0,right:0,bottom:0}}getMeasuredWidth(){return this.nativeViewProtected?this.nativeViewProtected.getMeasuredWidth():super.getMeasuredWidth()}getMeasuredHeight(){return this.nativeViewProtected?this.nativeViewProtected.getMeasuredHeight():super.getMeasuredHeight()}focus(){return!!this.nativeViewProtected&&this.nativeViewProtected.requestFocus()}getLocationInWindow(){if(this.nativeViewProtected&&this.nativeViewProtected.getWindowToken()){var e=Array.create("int",2);this.nativeViewProtected.getLocationInWindow(e);return{x:l.n.toDeviceIndependentPixels(e[0]),y:l.n.toDeviceIndependentPixels(e[1])}}}getLocationOnScreen(){if(this.nativeViewProtected&&this.nativeViewProtected.getWindowToken()){var e=Array.create("int",2);this.nativeViewProtected.getLocationOnScreen(e);return{x:l.n.toDeviceIndependentPixels(e[0]),y:l.n.toDeviceIndependentPixels(e[1])}}}getLocationRelativeTo(e){if(this.nativeViewProtected&&this.nativeViewProtected.getWindowToken()&&e&&e.nativeViewProtected&&e.nativeViewProtected.getWindowToken()&&this.nativeViewProtected.getWindowToken()===e.nativeViewProtected.getWindowToken()){var t=Array.create("int",2);this.nativeViewProtected.getLocationOnScreen(t);var r=Array.create("int",2);e.nativeViewProtected.getLocationOnScreen(r);return{x:l.n.toDeviceIndependentPixels(t[0]-r[0]),y:l.n.toDeviceIndependentPixels(t[1]-r[1])}}}static resolveSizeAndState(e,t,r,n){var i=e;switch(r){case l.n.UNSPECIFIED:i=e;break;case l.n.AT_MOST:tthis._raiseShownModallyEvent(),dismissCallback:()=>this.closeModal()};!function saveModal(e){C.set(e.owner._domId,e)}(o);this._dialogFragment=r;this._raiseShowingModallyEvent();this._dialogFragment.show(e._getRootFragmentManager(),this._domId.toString())}_hideNativeModalView(e,t){var r=this._dialogFragment.getFragmentManager();r&&this._dialogFragment.dismissAllowingStateLoss();this._dialogFragment=null;t()}[a.e.setNative](e){this.nativeViewProtected.setEnabled(e)}[a.g.getDefault](){return this.nativeViewProtected.getPivotX()}[a.g.setNative](e){org.nativescript.widgets.OriginPoint.setX(this.nativeViewProtected,e)}[a.h.getDefault](){return this.nativeViewProtected.getPivotY()}[a.h.setNative](e){org.nativescript.widgets.OriginPoint.setY(this.nativeViewProtected,e)}[a.d.getDefault](){return this.nativeViewProtected.getContentDescription()}[a.d.setNative](e){this.nativeViewProtected.setContentDescription(e)}[a.f.setNative](e){this.nativeViewProtected.setClickable(e);this.nativeViewProtected.setFocusable(e)}[o.visibilityProperty.getDefault](){var e=this.nativeViewProtected.getVisibility();switch(e){case android.view.View.VISIBLE:return"visible";case android.view.View.INVISIBLE:return"hidden";case android.view.View.GONE:return"collapse";default:throw new Error("Unsupported android.view.View visibility: ".concat(e,". Currently supported values are android.view.View.VISIBLE, android.view.View.INVISIBLE, android.view.View.GONE."))}}[o.visibilityProperty.setNative](e){switch(e){case"visible":this.nativeViewProtected.setVisibility(android.view.View.VISIBLE);break;case"hidden":this.nativeViewProtected.setVisibility(android.view.View.INVISIBLE);break;case"collapse":this.nativeViewProtected.setVisibility(android.view.View.GONE);break;default:throw new Error("Invalid visibility value: ".concat(e,". Valid values are: visible, hidden, collapse."))}}[o.opacityProperty.getDefault](){return this.nativeViewProtected.getAlpha()}[o.opacityProperty.setNative](e){this.nativeViewProtected.setAlpha(float(e))}[o.androidElevationProperty.getDefault](){return this.getDefaultElevation()}[o.androidElevationProperty.setNative](e){w()<21||this.refreshStateListAnimator()}[o.androidDynamicElevationOffsetProperty.getDefault](){return this.getDefaultDynamicElevationOffset()}[o.androidDynamicElevationOffsetProperty.setNative](e){w()<21||this.refreshStateListAnimator()}getDefaultElevation(){return w()<21?0:l.n.toDeviceIndependentPixels(this.nativeViewProtected.getElevation())}getDefaultDynamicElevationOffset(){return 0}refreshStateListAnimator(){var e=this.nativeViewProtected,t=android.animation.ObjectAnimator,r=android.animation.AnimatorSet,n=e.getContext().getResources().getInteger(17694720)/2,i=this.androidElevation;null==i&&(i=this.getDefaultElevation());i=l.n.toDevicePixels(i);var a=l.n.toDevicePixels(0),o=this.androidDynamicElevationOffset;null==o&&(o=this.getDefaultDynamicElevationOffset());o=l.n.toDevicePixels(o);var d=new r;d.playTogether(java.util.Arrays.asList([t.ofFloat(e,"translationZ",[o]).setDuration(n),t.ofFloat(e,"elevation",[i]).setDuration(0)]));var p=new r;p.playTogether(java.util.Arrays.asList([t.ofFloat(e,"translationZ",[a]).setDuration(n),t.ofFloat(e,"elevation",[i]).setDuration(0)]));var h=new r;h.playTogether(java.util.Arrays.asList([t.ofFloat(e,"translationZ",[0]).setDuration(0),t.ofFloat(e,"elevation",[0]).setDuration(0)]));var m=new android.animation.StateListAnimator;m.addState([16842919,16842910],d);m.addState([16842910],p);m.addState([],h);var g=e.getStateListAnimator();g&&g.jumpToCurrentState();e.setStateListAnimator(m)}[o.horizontalAlignmentProperty.getDefault](){return org.nativescript.widgets.ViewHelper.getHorizontalAlignment(this.nativeViewProtected)}[o.horizontalAlignmentProperty.setNative](e){var t=this.nativeViewProtected,r=t.getLayoutParams()||new org.nativescript.widgets.CommonLayoutParams;if(void 0!==r.gravity){switch(e){case"left":r.gravity=android.view.Gravity.LEFT|r.gravity&android.view.Gravity.VERTICAL_GRAVITY_MASK;r.weight<0&&(r.weight=-2);break;case"center":r.gravity=android.view.Gravity.CENTER_HORIZONTAL|r.gravity&android.view.Gravity.VERTICAL_GRAVITY_MASK;r.weight<0&&(r.weight=-2);break;case"right":r.gravity=android.view.Gravity.RIGHT|r.gravity&android.view.Gravity.VERTICAL_GRAVITY_MASK;r.weight<0&&(r.weight=-2);break;case"stretch":r.gravity=android.view.Gravity.FILL_HORIZONTAL|r.gravity&android.view.Gravity.VERTICAL_GRAVITY_MASK;r.weight<0&&(r.weight=-1)}t.setLayoutParams(r)}}[o.verticalAlignmentProperty.getDefault](){return org.nativescript.widgets.ViewHelper.getVerticalAlignment(this.nativeViewProtected)}[o.verticalAlignmentProperty.setNative](e){var t=this.nativeViewProtected,r=t.getLayoutParams()||new org.nativescript.widgets.CommonLayoutParams;if(void 0!==r.gravity){switch(e){case"top":r.gravity=android.view.Gravity.TOP|r.gravity&android.view.Gravity.HORIZONTAL_GRAVITY_MASK;r.height<0&&(r.height=-2);break;case"middle":r.gravity=android.view.Gravity.CENTER_VERTICAL|r.gravity&android.view.Gravity.HORIZONTAL_GRAVITY_MASK;r.height<0&&(r.height=-2);break;case"bottom":r.gravity=android.view.Gravity.BOTTOM|r.gravity&android.view.Gravity.HORIZONTAL_GRAVITY_MASK;r.height<0&&(r.height=-2);break;case"stretch":r.gravity=android.view.Gravity.FILL_VERTICAL|r.gravity&android.view.Gravity.HORIZONTAL_GRAVITY_MASK;r.height<0&&(r.height=-1)}t.setLayoutParams(r)}}[o.rotateProperty.setNative](e){org.nativescript.widgets.ViewHelper.setRotate(this.nativeViewProtected,float(e))}[o.rotateXProperty.setNative](e){org.nativescript.widgets.ViewHelper.setRotateX(this.nativeViewProtected,float(e))}[o.rotateYProperty.setNative](e){org.nativescript.widgets.ViewHelper.setRotateY(this.nativeViewProtected,float(e))}[o.perspectiveProperty.setNative](e){org.nativescript.widgets.ViewHelper.setPerspective(this.nativeViewProtected,float(e*f.b.mainScreen.scale))}[o.scaleXProperty.setNative](e){org.nativescript.widgets.ViewHelper.setScaleX(this.nativeViewProtected,float(e))}[o.scaleYProperty.setNative](e){org.nativescript.widgets.ViewHelper.setScaleY(this.nativeViewProtected,float(e))}[o.translateXProperty.setNative](e){org.nativescript.widgets.ViewHelper.setTranslateX(this.nativeViewProtected,l.n.toDevicePixels(e))}[o.translateYProperty.setNative](e){org.nativescript.widgets.ViewHelper.setTranslateY(this.nativeViewProtected,l.n.toDevicePixels(e))}[o.zIndexProperty.getDefault](){return 0}[o.zIndexProperty.setNative](e){org.nativescript.widgets.ViewHelper.setZIndex(this.nativeViewProtected,e)}[o.backgroundInternalProperty.getDefault](){var e=this.nativeViewProtected,t=e.getBackground();if(t){var r=t.getConstantState();if(!r)return t;try{return r.newDrawable(e.getResources())}catch(e){return t}}return null}[o.backgroundInternalProperty.setNative](e){this._redrawNativeBackground(e)}[o.minWidthProperty.setNative](e){this.parent instanceof CustomLayoutView&&this.parent.nativeViewProtected?this.parent._setChildMinWidthNative(this,e):this._setMinWidthNative(e)}[o.minHeightProperty.setNative](e){this.parent instanceof CustomLayoutView&&this.parent.nativeViewProtected?this.parent._setChildMinHeightNative(this,e):this._setMinHeightNative(e)}_redrawNativeBackground(e){if(e instanceof p.a)h.a.onBackgroundOrBorderPropertyChanged(this);else{var t=this.nativeViewProtected;t.setBackground(e);var r=this.style,n=o.paddingTopProperty.isSet(r)?this.effectivePaddingTop:this._defaultPaddingTop,i=o.paddingRightProperty.isSet(r)?this.effectivePaddingRight:this._defaultPaddingRight,a=o.paddingBottomProperty.isSet(r)?this.effectivePaddingBottom:this._defaultPaddingBottom,l=o.paddingLeftProperty.isSet(r)?this.effectivePaddingLeft:this._defaultPaddingLeft;this._isPaddingRelative?t.setPaddingRelative(l,n,i,a):t.setPadding(l,n,i,a);t.background=void 0}}}View.androidBackPressedEvent="androidBackPressed";__decorate([m.f,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],View.prototype,"onLoaded",null);__decorate([m.f,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],View.prototype,"onUnloaded",null);__decorate([m.f,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],View.prototype,"requestLayout",null);class ContainerView extends View{}class CustomLayoutView extends ContainerView{createNativeView(){return new org.nativescript.widgets.ContentLayout(this._context)}_addViewToNativeVisualTree(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_SAFE_INTEGER;super._addViewToNativeVisualTree(e);if(this.nativeViewProtected&&e.nativeViewProtected){d.a.isEnabled()&&d.a.write("".concat(this,".nativeView.addView(").concat(e,".nativeView, ").concat(t,")"),d.a.categories.VisualTreeEvents);this.nativeViewProtected.addView(e.nativeViewProtected,t);e instanceof View&&this._updateNativeLayoutParams(e);return!0}return!1}_updateNativeLayoutParams(e){}_setChildMinWidthNative(e,t){e._setMinWidthNative(t)}_setChildMinHeightNative(e,t){e._setMinHeightNative(t)}_removeViewFromNativeVisualTree(e){super._removeViewFromNativeVisualTree(e);var t=this.nativeViewProtected,r=e.nativeViewProtected;if(t&&r){t.removeView(r);if(d.a.isEnabled()){d.a.write("".concat(t,".removeView(").concat(r,")"),d.a.categories.VisualTreeEvents);d.a.notifyEvent(e,"childInLayoutRemovedFromNativeVisualTree")}}}}var percentNotSupported=(e,t)=>{throw new Error("PercentLength is not supported.")};function createNativePercentLengthProperty(e){var t,r,n,{getter:i,setter:a,auto:o=0}=e;i&&(View.prototype[i]=function(){if(e){t=e.setPixels;r=e.getPixels;n=e.setPercent||percentNotSupported;e=null}var i=r(this.nativeViewProtected);return i==o?"auto":{value:i,unit:"px"}});a&&(View.prototype[a]=function(i){if(e){t=e.setPixels;r=e.getPixels;n=e.setPercent||percentNotSupported;e=null}if("auto"!=i&&i)if("number"==typeof i)t(this.nativeViewProtected,l.n.round(l.n.toDevicePixels(i)));else if("dip"==i.unit)t(this.nativeViewProtected,l.n.round(l.n.toDevicePixels(i.value)));else if("px"==i.unit)t(this.nativeViewProtected,l.n.round(i.value));else{if("%"!=i.unit)throw new Error("Unsupported PercentLength ".concat(i));n(this.nativeViewProtected,i.value)}else t(this.nativeViewProtected,o)})}createNativePercentLengthProperty({setter:o.marginTopProperty.setNative,get setPixels(){return org.nativescript.widgets.ViewHelper.setMarginTop},get setPercent(){return org.nativescript.widgets.ViewHelper.setMarginTopPercent}});createNativePercentLengthProperty({setter:o.marginRightProperty.setNative,get setPixels(){return org.nativescript.widgets.ViewHelper.setMarginRight},get setPercent(){return org.nativescript.widgets.ViewHelper.setMarginRightPercent}});createNativePercentLengthProperty({setter:o.marginBottomProperty.setNative,get setPixels(){return org.nativescript.widgets.ViewHelper.setMarginBottom},get setPercent(){return org.nativescript.widgets.ViewHelper.setMarginBottomPercent}});createNativePercentLengthProperty({setter:o.marginLeftProperty.setNative,get setPixels(){return org.nativescript.widgets.ViewHelper.setMarginLeft},get setPercent(){return org.nativescript.widgets.ViewHelper.setMarginLeftPercent}});createNativePercentLengthProperty({setter:o.widthProperty.setNative,auto:-1,get setPixels(){return org.nativescript.widgets.ViewHelper.setWidth},get setPercent(){return org.nativescript.widgets.ViewHelper.setWidthPercent}});createNativePercentLengthProperty({setter:o.heightProperty.setNative,auto:-1,get setPixels(){return org.nativescript.widgets.ViewHelper.setHeight},get setPercent(){return org.nativescript.widgets.ViewHelper.setHeightPercent}});createNativePercentLengthProperty({setter:"_setMinWidthNative",get setPixels(){return org.nativescript.widgets.ViewHelper.setMinWidth}});createNativePercentLengthProperty({setter:"_setMinHeightNative",get setPixels(){return org.nativescript.widgets.ViewHelper.setMinHeight}})}).call(this,r(20))},function(e,t,r){"use strict";(function(e){r.d(t,"n",(function(){return uptime}));r.d(t,"l",(function(){return l}));r.d(t,"h",(function(){return start}));r.d(t,"j",(function(){return stop}));r.d(t,"d",(function(){return isRunning}));r.d(t,"c",(function(){return enable}));r.d(t,"a",(function(){return disable}));r.d(t,"f",(function(){return profile}));r.d(t,"b",(function(){return dumpProfiles}));r.d(t,"g",(function(){return resetProfiles}));r.d(t,"i",(function(){return startCPUProfile}));r.d(t,"k",(function(){return stopCPUProfile}));r.d(t,"e",(function(){return level}));r.d(t,"m",(function(){return trace}));function uptime(){return e.android?org.nativescript.Process.getUpTime():e.__tns_uptime()}var n,i={},a=e,o=[],l=e.__time||Date.now;function start(e){var t=i[e];if(t){t.currentStart=l();t.runCount++}else{t={totalTime:0,count:0,currentStart:l(),runCount:1};i[e]=t;o.push(e)}}function stop(e){var t=i[e];if(!t)throw new Error("No timer started: ".concat(e));if(!t.runCount)throw new Error("Timer ".concat(e," paused more times than started."));t.runCount--;if(t.runCount)t.count++;else{t.lastTime=l()-t.currentStart;t.totalTime+=t.lastTime;t.count++;t.currentStart=0}return t}function isRunning(e){var t=i[e];return!(!t||!t.runCount)}function countersProfileFunctionFactory(e,t){o.push(t);return function(){start(t);try{return e.apply(this,arguments)}finally{stop(t)}}}function timelineProfileFunctionFactory(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return 1===r?function(){var r=l();try{return e.apply(this,arguments)}finally{var n=l();console.log("Timeline: Modules: ".concat(t," ").concat(this," (").concat(r,"ms. - ").concat(n,"ms.)"))}}:function(){var r=l();try{return e.apply(this,arguments)}finally{var n=l();console.log("Timeline: Modules: ".concat(t," (").concat(r,"ms. - ").concat(n,"ms.)"))}}}!function(e){e[e.none=0]="none";e[e.lifecycle=1]="lifecycle";e[e.timeline=2]="timeline"}(n||(n={}));var d,p=n.none;function enable(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"counters";d=e&&{counters:countersProfileFunctionFactory,timeline:timelineProfileFunctionFactory}[e];p={lifecycle:n.lifecycle,timeline:n.timeline}[e]||n.none}try{var h=r(147);h&&h.profiling&&enable(h.profiling)}catch(e){try{console.log("Profiling startup failed to figure out defaults from package.json, error: "+e)}catch(e){}}function disable(){d=void 0}function profileFunction(e,t){return d(e,t||e.name)}var profileMethodUnnamed=(e,t,r)=>{void 0===r&&(r=Object.getOwnPropertyDescriptor(e,t));var n=r.value,i="";e&&e.constructor&&e.constructor.name&&(i=e.constructor.name+".");var a=i+t;r.value=d(n,a,1);return r};var voidMethodDecorator=()=>{};function profile(e,t,r,n){if("object"!=typeof e||"string"!=typeof t&&"symbol"!=typeof t){if("function"!=typeof e||"string"!=typeof t&&"symbol"!=typeof t)return"string"==typeof e&&"function"==typeof t?d?profileFunction(t,e):t:"function"==typeof e?d?profileFunction(e):e:"string"==typeof e?d?function profileMethodNamed(e){return(t,r,n)=>{void 0===n&&(n=Object.getOwnPropertyDescriptor(t,r));var i=n.value;n.value=d(i,e);return n}}(e):voidMethodDecorator:d?profileMethodUnnamed:voidMethodDecorator;if(!d)return;return((e,t,r)=>{void 0===r&&(r=Object.getOwnPropertyDescriptor(e,t));var n=r.value,i="";e&&e.name&&(i=e.name+".");var a=i+t;r.value=d(n,a,0);return r})(e,t,r)}if(d)return profileMethodUnnamed(e,t,r)}function dumpProfiles(){o.forEach((function(e){var t=i[e];t?console.log("---- ["+e+"] STOP total: "+t.totalTime+" count:"+t.count):console.log("---- ["+e+"] Never called")}))}function resetProfiles(){o.forEach((function(e){var t=i[e];t&&(t.runCount?console.log("---- timer with name ["+e+"] is currently running and won't be reset"):i[e]=void 0)}))}function startCPUProfile(e){a.android&&__startCPUProfiler(e)}function stopCPUProfile(e){a.android&&__stopCPUProfiler(e)}function level(){return p}function trace(t,r,n){!function log(t){e.__nslog&&e.__nslog("CONSOLE LOG: "+t);console.log(t)}("Timeline: Modules: ".concat(t," (").concat(r,"ms. - ").concat(n,"ms.)"))}}).call(this,r(20))},function(e,t,r){"use strict";r.d(t,"a",(function(){return Style}));var n=r(16),i=r(1);class Style extends n.a{constructor(e){super();this.unscopedCssVariables=new Map;this.scopedCssVariables=new Map;-1!==e.constructor.toString().indexOf("[native code]")?this.viewRef=e:this.viewRef=new WeakRef(e)}setScopedCssVariable(e,t){this.scopedCssVariables.set(e,t)}setUnscopedCssVariable(e,t){this.unscopedCssVariables.set(e,t)}getCssVariable(e){var t=this.view;return t?this.unscopedCssVariables.has(e)?this.unscopedCssVariables.get(e):this.scopedCssVariables.has(e)?this.scopedCssVariables.get(e):t.parent&&t.parent.style?t.parent.style.getCssVariable(e):null:null}resetScopedCssVariables(){this.scopedCssVariables.clear()}resetUnscopedCssVariables(){this.unscopedCssVariables.clear()}toString(){var e=this.viewRef.get();if(!e){i.a.write('toString() of Style cannot execute correctly because ".viewRef" is cleared',i.a.categories.Animation,i.a.messageType.warn);return""}return"".concat(e,".style")}get view(){if(this.viewRef)return this.viewRef.get()}}Style.prototype.PropertyBag=class{}},function(e,t,r){"use strict";r.r(t);(function(e){r.d(t,"AndroidApplication",(function(){return AndroidApplication}));r.d(t,"android",(function(){return d}));r.d(t,"run",(function(){return run}));r.d(t,"addCss",(function(){return addCss}));r.d(t,"_resetRootView",(function(){return _resetRootView}));r.d(t,"getMainEntry",(function(){return getMainEntry}));r.d(t,"getRootView",(function(){return getRootView}));r.d(t,"getNativeApplication",(function(){return getNativeApplication}));r.d(t,"orientation",(function(){return orientation}));r.d(t,"systemAppearance",(function(){return systemAppearance}));r.d(t,"iOSApplication",(function(){return m}));var n=r(43);r.d(t,"hasLaunched",(function(){return n.hasLaunched}));r.d(t,"launchEvent",(function(){return n.launchEvent}));r.d(t,"suspendEvent",(function(){return n.suspendEvent}));r.d(t,"displayedEvent",(function(){return n.displayedEvent}));r.d(t,"resumeEvent",(function(){return n.resumeEvent}));r.d(t,"exitEvent",(function(){return n.exitEvent}));r.d(t,"lowMemoryEvent",(function(){return n.lowMemoryEvent}));r.d(t,"uncaughtErrorEvent",(function(){return n.uncaughtErrorEvent}));r.d(t,"discardedErrorEvent",(function(){return n.discardedErrorEvent}));r.d(t,"orientationChangedEvent",(function(){return n.orientationChangedEvent}));r.d(t,"systemAppearanceChangedEvent",(function(){return n.systemAppearanceChangedEvent}));r.d(t,"getResources",(function(){return n.getResources}));r.d(t,"setResources",(function(){return n.setResources}));r.d(t,"ios",(function(){return n.ios}));r.d(t,"on",(function(){return n.on}));r.d(t,"off",(function(){return n.off}));r.d(t,"notify",(function(){return n.notify}));r.d(t,"hasListeners",(function(){return n.hasListeners}));r.d(t,"setApplication",(function(){return n.setApplication}));r.d(t,"livesync",(function(){return n.livesync}));r.d(t,"setCssFileName",(function(){return n.setCssFileName}));r.d(t,"getCssFileName",(function(){return n.getCssFileName}));r.d(t,"loadAppCss",(function(){return n.loadAppCss}));r.d(t,"orientationChanged",(function(){return n.orientationChanged}));r.d(t,"autoSystemAppearanceChanged",(function(){return n.autoSystemAppearanceChanged}));r.d(t,"setAutoSystemAppearanceChanged",(function(){return n.setAutoSystemAppearanceChanged}));r.d(t,"systemAppearanceChanged",(function(){return n.systemAppearanceChanged}));var i=r(16),a=r(6),o=r(43);class AndroidApplication extends i.a{constructor(){super(...arguments);this.callbacks={};this._registeredReceivers={};this._pendingReceiverRegistrations=new Array}init(t){if(this.nativeApp!==t){if(this.nativeApp)throw new Error("application.android already initialized.");this.nativeApp=t;this.packageName=t.getPackageName();this.context=t.getApplicationContext();this.callbacks.lifecycleCallbacks=function initLifecycleCallbacks(){var t=Object(a.f)("setThemeOnLaunch",e=>{var t=e.getPackageManager().getActivityInfo(e.getComponentName(),android.content.pm.PackageManager.GET_META_DATA);if(t.metaData){var r=t.metaData.getInt("SET_THEME_ON_LAUNCH",-1);-1!==r&&e.setTheme(r)}}),r=Object(a.f)("notifyActivityCreated",(function(e,t){d.notify({eventName:"activityCreated",object:d,activity:e,bundle:t})})),n=Object(a.f)("subscribeForGlobalLayout",(function(t){var r=t.getWindow().getDecorView().getRootView();e.onGlobalLayoutListener=new android.view.ViewTreeObserver.OnGlobalLayoutListener({onGlobalLayout(){o.notify({eventName:o.displayedEvent,object:d,activity:t});var n=r.getViewTreeObserver();n.removeOnGlobalLayoutListener(e.onGlobalLayoutListener)}});r.getViewTreeObserver().addOnGlobalLayoutListener(e.onGlobalLayoutListener)})),i=new android.app.Application.ActivityLifecycleCallbacks({onActivityCreated:Object(a.f)("onActivityCreated",(function(e,i){t(e,void 0,void 0);d.startActivity||(d.startActivity=e);r(e,i,void 0);o.hasListeners(o.displayedEvent)&&n(e,void 0,void 0)})),onActivityDestroyed:Object(a.f)("onActivityDestroyed",(function(e){e===d.foregroundActivity&&(d.foregroundActivity=void 0);e===d.startActivity&&(d.startActivity=void 0);d.notify({eventName:"activityDestroyed",object:d,activity:e});gc()})),onActivityPaused:Object(a.f)("onActivityPaused",(function(e){if(e.isNativeScriptActivity){d.paused=!0;o.notify({eventName:o.suspendEvent,object:d,android:e})}d.notify({eventName:"activityPaused",object:d,activity:e})})),onActivityResumed:Object(a.f)("onActivityResumed",(function(e){d.foregroundActivity=e;d.notify({eventName:"activityResumed",object:d,activity:e})})),onActivitySaveInstanceState:Object(a.f)("onActivitySaveInstanceState",(function(e,t){d.notify({eventName:"saveActivityState",object:d,activity:e,bundle:t})})),onActivityStarted:Object(a.f)("onActivityStarted",(function(e){d.notify({eventName:"activityStarted",object:d,activity:e})})),onActivityStopped:Object(a.f)("onActivityStopped",(function(e){d.notify({eventName:"activityStopped",object:d,activity:e})}))});return i}();this.callbacks.componentCallbacks=function initComponentCallbacks(){var e=new android.content.ComponentCallbacks2({onLowMemory:Object(a.f)("onLowMemory",(function(){gc();java.lang.System.gc();o.notify({eventName:o.lowMemoryEvent,object:this,android:this})})),onTrimMemory:Object(a.f)("onTrimMemory",(function(e){})),onConfigurationChanged:Object(a.f)("onConfigurationChanged",(function(e){var t=getRootView(),r=getOrientationValue(e);if(d.orientation===r){var n=getSystemAppearanceValue(e);if(d.systemAppearance!==n){d.systemAppearance=n;o.systemAppearanceChanged(t,n);o.notify({eventName:o.systemAppearanceChangedEvent,android:d.nativeApp,newValue:d.systemAppearance,object:d})}}else{d.orientation=r;o.orientationChanged(t,r);o.notify({eventName:o.orientationChangedEvent,android:d.nativeApp,newValue:d.orientation,object:d})}}))});return e}();this.nativeApp.registerActivityLifecycleCallbacks(this.callbacks.lifecycleCallbacks);this.nativeApp.registerComponentCallbacks(this.callbacks.componentCallbacks);this._registerPendingReceivers()}}_registerPendingReceivers(){this._pendingReceiverRegistrations.forEach(e=>e(this.context));this._pendingReceiverRegistrations.length=0}get orientation(){if(!this._orientation){var e=this.context.getResources(),t=e.getConfiguration();this._orientation=getOrientationValue(t)}return this._orientation}set orientation(e){this._orientation=e}get systemAppearance(){if(!this._systemAppearance){var e=this.context.getResources(),t=e.getConfiguration();this._systemAppearance=getSystemAppearanceValue(t)}return this._systemAppearance}set systemAppearance(e){this._systemAppearance=e}registerBroadcastReceiver(t,r){!function ensureBroadCastReceiverClass(){if(h)return;var t=function(t){__extends(BroadcastReceiver,t);function BroadcastReceiver(r){var n=t.call(this)||this;n._onReceiveCallback=r;return e.__native(n)}BroadcastReceiver.prototype.onReceive=function(e,t){this._onReceiveCallback&&this._onReceiveCallback(e,t)};return BroadcastReceiver}(android.content.BroadcastReceiver);h=t}();var registerFunc=e=>{var n=new h(r);e.registerReceiver(n,new android.content.IntentFilter(t));this._registeredReceivers[t]=n};this.context?registerFunc(this.context):this._pendingReceiverRegistrations.push(registerFunc)}unregisterBroadcastReceiver(e){var t=this._registeredReceivers[e];if(t){this.context.unregisterReceiver(t);this._registeredReceivers[e]=void 0;delete this._registeredReceivers[e]}}}AndroidApplication.activityCreatedEvent="activityCreated";AndroidApplication.activityDestroyedEvent="activityDestroyed";AndroidApplication.activityStartedEvent="activityStarted";AndroidApplication.activityPausedEvent="activityPaused";AndroidApplication.activityResumedEvent="activityResumed";AndroidApplication.activityStoppedEvent="activityStopped";AndroidApplication.saveActivityStateEvent="saveActivityState";AndroidApplication.activityResultEvent="activityResult";AndroidApplication.activityBackPressedEvent="activityBackPressed";AndroidApplication.activityNewIntentEvent="activityNewIntent";AndroidApplication.activityRequestPermissionsEvent="activityRequestPermissions";var l,d=new AndroidApplication;o.setApplication(d);var p=!1;function run(e){if(p)throw new Error("Application is already started.");p=!0;l="string"==typeof e?{moduleName:e}:e;if(!d.nativeApp){var t=getNativeApplication();d.init(t)}}function addCss(e,t){o.notify({eventName:"cssChanged",object:d,cssText:e});if(!t){var r=getRootView();r&&r._onCssStateChange()}}var h;function _resetRootView(e){var t=d.foregroundActivity;if(!t)throw new Error("Cannot find android activity.");l="string"==typeof e?{moduleName:e}:e;var r=t._callbacks;if(!r)throw new Error("Cannot find android activity callbacks.");r.resetActivityContent(t)}function getMainEntry(){return l}function getRootView(){var e=d.foregroundActivity||d.startActivity;if(e){var t=e._callbacks;return t?t.getRootView():void 0}}function getNativeApplication(){var e=d.nativeApp;if(!e){!e&&com.tns.NativeScriptApplication&&(e=com.tns.NativeScriptApplication.getInstance());if(!e){var t=java.lang.Class.forName("android.app.ActivityThread");if(t){var r=t.getMethod("currentApplication",null);r&&(e=r.invoke(null,null))}}if(!e)throw new Error("Failed to retrieve native Android Application object. If you have a custom android.app.Application type implemented make sure that you've called the '.android.init' method.")}return e}function orientation(){return d.orientation}function systemAppearance(){return d.systemAppearance}e.__onLiveSync=function __onLiveSync(e){if(!d||!d.paused){var t=getRootView();o.livesync(t,e)}};function getOrientationValue(e){var t=e.orientation;switch(t){case android.content.res.Configuration.ORIENTATION_LANDSCAPE:return"landscape";case android.content.res.Configuration.ORIENTATION_PORTRAIT:return"portrait";default:return"unknown"}}function getSystemAppearanceValue(e){var t=e.uiMode&android.content.res.Configuration.UI_MODE_NIGHT_MASK;switch(t){case android.content.res.Configuration.UI_MODE_NIGHT_YES:return"dark";case android.content.res.Configuration.UI_MODE_NIGHT_NO:case android.content.res.Configuration.UI_MODE_NIGHT_UNDEFINED:return"light"}}var m=void 0}).call(this,r(20))},function(e,t,r){"use strict";r.d(t,"n",(function(){return n}));r.d(t,"d",(function(){return a.a}));r.d(t,"m",(function(){return a.b}));r.d(t,"b",(function(){return x}));r.d(t,"a",(function(){return T}));r.d(t,"f",(function(){return escapeRegexSymbols}));r.d(t,"c",(function(){return convertString}));r.d(t,"h",(function(){return getModuleName}));r.d(t,"k",(function(){return isFileOrResourcePath}));r.d(t,"l",(function(){return isFontIconURI}));r.d(t,"j",(function(){return isDataURI}));r.d(t,"q",(function(){return mergeSort}));r.d(t,"p",(function(){return merge}));r.d(t,"i",(function(){return hasDuplicates}));r.d(t,"e",(function(){return eliminateDuplicates}));r.d(t,"g",(function(){return executeOnMainThread}));r.d(t,"o",(function(){return mainThreadify}));var n={};r.r(n);r.d(n,"MODE_SHIFT",(function(){return l}));r.d(n,"MODE_MASK",(function(){return d}));r.d(n,"UNSPECIFIED",(function(){return p}));r.d(n,"EXACTLY",(function(){return h}));r.d(n,"AT_MOST",(function(){return m}));r.d(n,"MEASURED_HEIGHT_STATE_SHIFT",(function(){return g}));r.d(n,"MEASURED_STATE_TOO_SMALL",(function(){return f}));r.d(n,"MEASURED_STATE_MASK",(function(){return v}));r.d(n,"MEASURED_SIZE_MASK",(function(){return y}));r.d(n,"getMode",(function(){return getMode}));r.d(n,"getMeasureSpecMode",(function(){return getMeasureSpecMode}));r.d(n,"getMeasureSpecSize",(function(){return getMeasureSpecSize}));r.d(n,"measureSpecToString",(function(){return measureSpecToString}));r.d(n,"round",(function(){return round}));r.d(n,"makeMeasureSpec",(function(){return makeMeasureSpec}));r.d(n,"getDisplayDensity",(function(){return getDisplayDensity}));r.d(n,"toDevicePixels",(function(){return toDevicePixels}));r.d(n,"toDeviceIndependentPixels",(function(){return toDeviceIndependentPixels}));r.d(n,"measureNativeView",(function(){return measureNativeView}));var i=r(13),a=r(108),o=r(48),l=30,d=3<0?1:-1}var w,C,S=r(40),b=!1;function makeMeasureSpec(e,t){if(void 0===C){C=S.a.getApplicationContext().getApplicationInfo().targetSdkVersion;b=C<=android.os.Build.VERSION_CODES.JELLY_BEAN_MR1}return b?e+t:e&~d|t&d}function getDisplayDensity(){void 0===w&&(w=S.a.getResources().getDisplayMetrics().density);return w}function toDevicePixels(e){return e*getDisplayDensity()}function toDeviceIndependentPixels(e){return e/getDisplayDensity()}function measureNativeView(e,t,r,n,i){var a=e;a.measure(makeMeasureSpec(t,r),makeMeasureSpec(n,i));return{width:a.getMeasuredWidth(),height:a.getMeasuredHeight()}}var x="res://",T="file:///";function escapeRegexSymbols(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function convertString(e){var t;if(i.isString(e)&&""!==e.trim()){var r=+e;t=isNaN(r)?!e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()?e:"true"===e.toLowerCase():r}else t=e;return t}function getModuleName(e){var t=e.replace("./","");return Object(o.a)(t)}function isFileOrResourcePath(e){return!!i.isString(e)&&(0===e.indexOf("~/")||0===e.indexOf("/")||0===e.indexOf(x))}function isFontIconURI(e){if(!i.isString(e))return!1;var t=e.trim().split("//")[0];return t&&0===t.indexOf("font:")}function isDataURI(e){if(!i.isString(e))return!1;var t=e.trim().split(",")[0];return t&&0===t.indexOf("data:")&&t.indexOf("base64")>=0}function mergeSort(e,t){if(e.length<2)return e;var r=e.length/2,n=e.slice(0,r),i=e.slice(r,e.length);return merge(mergeSort(n,t),mergeSort(i,t),t)}function merge(e,t,r){for(var n=[];e.length&&t.length;)r(e[0],t[0])<=0?n.push(e.shift()):n.push(t.shift());for(;e.length;)n.push(e.shift());for(;t.length;)n.push(t.shift());return n}function hasDuplicates(e){return e.length!==eliminateDuplicates(e).length}function eliminateDuplicates(e){return Array.from(new Set(e))}function executeOnMainThread(e){if(Object(a.b)())return e();Object(a.a)(e)}function mainThreadify(e){return function(){var t=arguments;executeOnMainThread(()=>e.apply(this,t))}}},function(e,t,r){"use strict";r.d(t,"i",(function(){return k}));r.d(t,"h",(function(){return n}));r.d(t,"b",(function(){return i}));r.d(t,"f",(function(){return a}));r.d(t,"e",(function(){return l}));r.d(t,"a",(function(){return d}));r.d(t,"d",(function(){return p}));r.d(t,"g",(function(){return h}));r.d(t,"k",(function(){return A}));r.d(t,"c",(function(){return ListViewLayoutBase}));r.d(t,"j",(function(){return E}));var n,i,a,o,l,d,p,h,m=r(11),g=r(0),f=r(4),v=r(61),y=r(19),w=r(5),C=r(42),S=r(53),b=r(16),x=r(23),T=r(141),P=r(37),k="ng_view";!function(e){e.HeaderView="HeaderView";e.ItemView="ItemView";e.FooterView="FooterView";e.GroupView="GroupView";e.LoadOnDemandView="LoadOnDemandView";e.ItemSwipeView="ItemSwipeView"}(n||(n={}));!function(e){e.Auto="Auto";e.Start="Start";e.End="End";e.Center="Center"}(i||(i={}));!function(e){e.Vertical="Vertical";e.Horizontal="Horizontal"}(a||(a={}));!function(e){e.None="None";e.Top="Top";e.CenteredVertically="CenteredVertically";e.CenteredHorizontally="CenteredHorizontally";e.Bottom="Bottom";e.Left="Left";e.Right="Right"}(o||(o={}));!function(e){e.HoldAndDrag="HoldAndDrag";e.Drag="Drag"}(l||(l={}));!function(e){e.Default="Default";e.Fade="Fade";e.Scale="Scale";e.Slide="Slide"}(d||(d={}));!function(e){e.None="None";e.Manual="Manual";e.Auto="Auto"}(p||(p={}));!function(e){e.None="None";e.Press="Press";e.LongPress="LongPress"}(h||(h={}));class PullToRefreshStyle extends m.a{onIndicatorColorPropertyChanged(e,t){}onIndicatorBackgroundColorPropertyChanged(e,t){}}PullToRefreshStyle.indicatorColorProperty=new g.Property({name:"indicatorColor",defaultValue:void 0,valueConverter:e=>new f.a(e),valueChanged:(e,t,r)=>{e.onIndicatorColorPropertyChanged(t,r)}});PullToRefreshStyle.indicatorBackgroundColorProperty=new g.Property({name:"indicatorBackgroundColor",defaultValue:void 0,valueConverter:e=>new f.a(e),valueChanged:(e,t,r)=>{e.onIndicatorBackgroundColorPropertyChanged(t,r)}});PullToRefreshStyle.indicatorColorProperty.register(PullToRefreshStyle);PullToRefreshStyle.indicatorBackgroundColorProperty.register(PullToRefreshStyle);var A=class ReorderHandle extends v.a{constructor(){super()}};A=__decorate([Object(y.a)("ReorderHandle"),__metadata("design:paramtypes",[])],A);class ListViewLayoutBase extends m.a{get android(){}get ios(){}onScrollDirectionPropertyChanged(e,t){this.onScrollDirectionChanged(e,t)}onScrollDirectionChanged(e,t){}onItemInsertAnimationPropertyChanged(e,t){this.onItemInsertAnimationChanged(e,t)}onItemInsertAnimationChanged(e,t){}onItemDeleteAnimationPropertyChanged(e,t){this.onItemDeleteAnimationChanged(e,t)}onItemDeleteAnimationChanged(e,t){}onItemWidthPropertyChanged(e,t){this.onItemWidthChanged(e,t)}onItemWidthChanged(e,t){}onItemHeightPropertyChanged(e,t){this.onItemHeightChanged(e,t)}onItemHeightChanged(e,t){}_onOwnerUICreated(){}}ListViewLayoutBase.scrollDirectionProperty=new g.Property({name:"scrollDirection",defaultValue:a.Vertical,valueConverter:e=>a[e],valueChanged:(e,t,r)=>{e.onScrollDirectionPropertyChanged(t,r)}});ListViewLayoutBase.itemInsertAnimationProperty=new g.Property({name:"itemInsertAnimation",defaultValue:d.Default,valueConverter:e=>d[e],valueChanged:(e,t,r)=>{e.onItemInsertAnimationPropertyChanged(t,r)}});ListViewLayoutBase.itemDeleteAnimationProperty=new g.Property({name:"itemDeleteAnimation",defaultValue:d.Default,valueConverter:e=>d[e],valueChanged:(e,t,r)=>{e.onItemDeleteAnimationPropertyChanged(t,r)}});ListViewLayoutBase.itemWidthProperty=new g.Property({name:"itemWidth",defaultValue:void 0,valueConverter:parseInt,valueChanged:(e,t,r)=>{e.onItemWidthPropertyChanged(t,r)}});ListViewLayoutBase.itemHeightProperty=new g.Property({name:"itemHeight",defaultValue:void 0,valueConverter:parseInt,valueChanged:(e,t,r)=>{e.onItemHeightPropertyChanged(t,r)}});ListViewLayoutBase.scrollDirectionProperty.register(ListViewLayoutBase);ListViewLayoutBase.itemInsertAnimationProperty.register(ListViewLayoutBase);ListViewLayoutBase.itemDeleteAnimationProperty.register(ListViewLayoutBase);ListViewLayoutBase.itemWidthProperty.register(ListViewLayoutBase);ListViewLayoutBase.itemHeightProperty.register(ListViewLayoutBase);var E=class RadListView extends w.a{constructor(){super(...arguments);this._hasGroupingFunctionChanged=!1;this._isEventListenerAttached=!1;this._defaultTemplate={key:"default",createView:()=>{if(this.itemTemplate)return C.a.parse(this.itemTemplate,this)}};this._itemTemplatesInternal=new Array(this._defaultTemplate);this._dataUpdatesSuspended=!1;this._itemTemplateSelectorBindable=new S.Label}onLoaded(){this.logWarningIfNeeded();if(this.items&&this.items instanceof b.a){P.a(this.items,x.b.changeEvent,this.onSourceCollectionChangedInternal,this);this._isEventListenerAttached=!0}super.onLoaded()}logWarningIfNeeded(){if((this.parent instanceof v.a||this.parent instanceof T.a)&&("vertical"===this.parent.orientation&&"auto"===this.height||"horizontal"===this.parent.orientation&&"auto"===this.width)){var e="vertical"===this.parent.orientation?"height":"width";console.log("Warning: When used inside ".concat(this.parent.typeName," with ").concat(this.parent.orientation," orientation, RadListView should have an explicit ").concat(e,"."))}}onUnloaded(){if(this._isEventListenerAttached){P.b(this.items,x.b.changeEvent,this.onSourceCollectionChangedInternal,this);this._isEventListenerAttached=!1}super.onUnloaded()}get itemViewLoader(){return this._itemViewLoader}get itemViewDisposer(){return this._itemViewDisposer}get nativeScriptViewAdded(){return this._nativeScriptViewAdded}get isDataOperationsEnabled(){var e=void 0!==this.filteringFunction,t=void 0!==this.sortingFunction,r=void 0!==this.groupingFunction;return e||t||r}set itemViewLoader(e){if(this._itemViewLoader!==e){this._itemViewLoader=e;this.onItemViewLoaderChanged()}}set itemViewDisposer(e){if(this._itemViewDisposer!==e){this._itemViewDisposer=e;this.onItemViewDisposerChanged()}}set nativeScriptViewAdded(e){if(this._nativeScriptViewAdded!==e){this._nativeScriptViewAdded=e;this.onNativeScriptViewAddedChanged()}}_reorderItemInSource(e,t){this.suspendUpdates();var r=this.items,n=this.getItemAtIndex(e);if(n){r.splice(e,1);r.splice(t,0,n)}this.resumeUpdates(!1)}suspendUpdates(){this._dataUpdatesSuspended=!0}resumeUpdates(e){this._dataUpdatesSuspended=!1;!0===e&&this.refresh()}updatesSuspended(){return this._dataUpdatesSuspended}getItemAtIndex(e){return this.items&&this.items.getItem?this.items.getItem(e):this.items&&this.items.length&&e{e.$index=t;this._itemTemplateSelectorBindable.bindingContext=e;return this._itemTemplateSelectorBindable.get("templateKey")}}else"function"==typeof t&&(this.itemTemplateSelector=t)}onItemTemplatesChanged(e,t){this._itemTemplatesInternal=new Array(this._defaultTemplate);var r=t;r&&(this._itemTemplatesInternal=this._itemTemplatesInternal.concat(r))}onItemTemplateChanged(e,t){}onGroupTemplateChanged(e,t){}onItemSwipeTemplateChanged(e,t){}onMultipleSelectionChanged(e,t){}onItemReorderChanged(e,t){}onItemSwipeChanged(e,t){console.log("Warning: 'itemSwipe' property is deprecated use 'swipeActions' property instead.")}onSwipeActionsChanged(e,t){}onPullToRefreshChanged(e,t){}onLoadOnDemandModeChanged(e,t){}onLoadOnDemandBufferSizeChanged(e,t){}onSelectionBehaviorChanged(e,t){}onSourceCollectionChangedInternal(e){!1===this._dataUpdatesSuspended&&this.onSourceCollectionChanged(e)}onItemsChangedInternal(e,t){if(this.isLoaded){if(e instanceof b.a){P.b(e,x.b.changeEvent,this.onSourceCollectionChangedInternal,this);this._isEventListenerAttached=!1}if(t instanceof b.a){P.a(t,x.b.changeEvent,this.onSourceCollectionChangedInternal,this);this._isEventListenerAttached=!0}this.refresh()}}onItemsChanged(e,t){this.onItemsChangedInternal(e,t)}onScrollPositionChanged(e,t){}clearEmbeddedViews(){}onSourceCollectionChanged(e){this.refresh()}refresh(){this.clearEmbeddedViews()}updateHeaderFooter(){}getScrollOffset(){return 0}scrollToIndex(e){arguments.length>2&&void 0!==arguments[2]||i.Auto}scrollWithAmount(e,t){}notifyLoadOnDemandFinished(e){}notifyPullToRefreshFinished(){}notifySwipeToExecuteFinished(){}};E.knownFunctions=["itemTemplateSelector"];E.scrolledEvent="scrolled";E.scrollDragEndedEvent="scrollDragEnded";E.scrollStartedEvent="scrollStarted";E.scrollEndedEvent="scrollEnded";E.itemSelectingEvent="itemSelecting";E.itemDeselectingEvent="itemDeselecting";E.itemTapEvent="itemTap";E.itemHoldEvent="itemHold";E.itemSelectedEvent="itemSelected";E.itemDeselectedEvent="itemDeselected";E.itemReorderStartingEvent="itemReorderStarting";E.itemReorderedEvent="itemReordered";E.itemReorderStartedEvent="itemReorderStarted";E.itemSwipingEvent="itemSwiping";E.itemSwipeProgressChangedEvent="itemSwipeProgressChanged";E.itemSwipeProgressStartedEvent="itemSwipeProgressStarted";E.itemSwipeProgressEndedEvent="itemSwipeProgressEnded";E.loadMoreDataRequestedEvent="loadMoreDataRequested";E.pullToRefreshInitiatedEvent="pullToRefreshInitiated";E.itemLoadingEvent="itemLoading";E.itemLoadingInternalEvent="itemLoadingInternal";E.dataPopulatedEvent="dataPopulated";E.itemSelectedBackgroundColorProperty=new g.Property({name:"itemSelectedBackgroundColor",defaultValue:void 0,valueConverter:e=>new f.a(e),valueChanged:(e,t,r)=>{e.onItemSelectedBackgroundColorPropertyChanged(t,r)}});E.groupingFunctionProperty=new g.Property({name:"groupingFunction",valueChanged:(e,t,r)=>{e.onGroupingFunctionPropertyChanged(t,r)}});E.filteringFunctionProperty=new g.Property({name:"filteringFunction",valueChanged:(e,t,r)=>{e.onFilteringFunctionPropertyChanged(t,r)}});E.sortingFunctionProperty=new g.Property({name:"sortingFunction",valueChanged:(e,t,r)=>{e.onSortingFunctionPropertyChanged(t,r)}});E.enableCollapsibleGroupsProperty=new g.Property({name:"enableCollapsibleGroups",defaultValue:!1,valueConverter:m.b,valueChanged:(e,t,r)=>{e.onEnableCollapsibleGroupsPropertyChanged(t,r)}});E.pullToRefreshStyleProperty=new g.Property({name:"pullToRefreshStyle",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onPullToRefreshStylePropertyChanged(t,r)}});E.headerItemTemplateProperty=new g.Property({name:"headerItemTemplate",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onHeaderItemTemplatePropertyChanged(t,r)}});E.footerItemTemplateProperty=new g.Property({name:"footerItemTemplate",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onFooterItemTemplatePropertyChanged(t,r)}});E.reorderModeProperty=new g.Property({name:"reorderMode",defaultValue:l.HoldAndDrag,valueConverter:e=>l[e],valueChanged:(e,t,r)=>{e.onListViewReorderModePropertyChanged(t,r)}});E.listViewLayoutProperty=new g.Property({name:"listViewLayout",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onLayoutPropertyChanged(t,r)}});E.loadOnDemandItemTemplateProperty=new g.Property({name:"loadOnDemandItemTemplate",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onLoadOnDemandItemTemplatePropertyChanged(t,r)}});E.itemTemplateSelectorProperty=new g.Property({name:"itemTemplateSelector",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onItemTemplateSelectorPropertyChanged(t,r)}});E.itemTemplatesProperty=new g.Property({name:"itemTemplates",defaultValue:void 0,valueConverter:e=>"string"==typeof e?C.a.parseMultipleTemplates(e):e,valueChanged:(e,t,r)=>{e.onItemTemplatesPropertyChanged(t,r)}});E.itemTemplateProperty=new g.Property({name:"itemTemplate",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onItemTemplatePropertyChanged(t,r)}});E.itemSwipeTemplateProperty=new g.Property({name:"itemSwipeTemplate",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onItemSwipeTemplatePropertyChanged(t,r)}});E.groupTemplateProperty=new g.Property({name:"groupTemplate",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onGroupTemplatePropertyChanged(t,r)}});E.multipleSelectionProperty=new g.Property({name:"multipleSelection",defaultValue:!1,valueConverter:m.b,valueChanged:(e,t,r)=>{e.onMultipleSelectionPropertyChanged(t,r)}});E.itemReorderProperty=new g.Property({name:"itemReorder",defaultValue:void 0,valueConverter:m.b,valueChanged:(e,t,r)=>{e.onItemReorderPropertyChanged(t,r)}});E.itemSwipeProperty=new g.Property({name:"itemSwipe",defaultValue:void 0,valueConverter:m.b,valueChanged:(e,t,r)=>{e.onItemSwipePropertyChanged(t,r)}});E.swipeActionsProperty=new g.Property({name:"swipeActions",defaultValue:void 0,valueConverter:m.b,valueChanged:(e,t,r)=>{e.onSwipeActionsPropertyChanged(t,r)}});E.pullToRefreshProperty=new g.Property({name:"pullToRefresh",defaultValue:void 0,valueConverter:m.b,valueChanged:(e,t,r)=>{e.onPullToRefreshPropertyChanged(t,r)}});E.loadOnDemandModeProperty=new g.Property({name:"loadOnDemandMode",defaultValue:void 0,valueConverter:function listViewLoadOnDemandModeConverter(e){return p[e]},valueChanged:(e,t,r)=>{e.onLoadOnDemandModePropertyChanged(t,r)}});E.loadOnDemandBufferSizeProperty=new g.Property({name:"loadOnDemandBufferSize",defaultValue:void 0,valueConverter:parseInt,valueChanged:(e,t,r)=>{e.onLoadOnDemandBufferSizePropertyChanged(t,r)}});E.selectionBehaviorProperty=new g.Property({name:"selectionBehavior",defaultValue:h.None,valueConverter:e=>h[e],valueChanged:(e,t,r)=>{e.onSelectionBehaviorPropertyChanged(t,r)}});E.itemsProperty=new g.Property({name:"items",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onItemsPropertyChanged(t,r)}});E.scrollPositionProperty=new g.Property({name:"scrollPosition",defaultValue:void 0,valueConverter:e=>o[e],valueChanged:(e,t,r)=>{e.onScrollPositionPropertyChanged(t,r)}});E=__decorate([Object(y.a)("RadListView")],E);E.itemSelectedBackgroundColorProperty.register(E);E.enableCollapsibleGroupsProperty.register(E);E.groupingFunctionProperty.register(E);E.filteringFunctionProperty.register(E);E.sortingFunctionProperty.register(E);E.pullToRefreshStyleProperty.register(E);E.headerItemTemplateProperty.register(E);E.footerItemTemplateProperty.register(E);E.reorderModeProperty.register(E);E.listViewLayoutProperty.register(E);E.loadOnDemandItemTemplateProperty.register(E);E.itemTemplateSelectorProperty.register(E);E.itemTemplateProperty.register(E);E.groupTemplateProperty.register(E);E.itemTemplatesProperty.register(E);E.itemSwipeTemplateProperty.register(E);E.multipleSelectionProperty.register(E);E.itemReorderProperty.register(E);E.itemSwipeProperty.register(E);E.swipeActionsProperty.register(E);E.pullToRefreshProperty.register(E);E.loadOnDemandModeProperty.register(E);E.loadOnDemandBufferSizeProperty.register(E);E.selectionBehaviorProperty.register(E);E.itemsProperty.register(E);E.scrollPositionProperty.register(E)},function(e,t,r){"use strict";r.d(t,"d",(function(){return getAncestor}));r.d(t,"e",(function(){return getViewById}));r.d(t,"c",(function(){return eachDescendant}));r.d(t,"a",(function(){return ViewBase}));r.d(t,"b",(function(){return booleanConverter}));var n,i,a=r(0),o=r(24),l=r(50),d=r(90),p=r(1),h=r(16),m=r(7),g=r(2),f=r(13),v=r(6),y=r(76);var w={};function getAncestor(e,t){var r=null;r="string"==typeof t?e=>e.typeName===t:e=>e instanceof t;for(var n=e.parent;null!=n;n=n.parent)if(r(n))return n;return null}function getViewById(e,t){if(e){if(e.id===t)return e;var r;eachDescendant(e,(function descendantsCallback(e){if(e.id===t){r=e;return!1}return!0}));return r}}function eachDescendant(e,t){if(t&&e){var r;e.eachChild((function localCallback(e){r=t(e);r&&e.eachChild(localCallback);return r}))}}var C,S,b=1;!function(e){e.superOnLoadedCalled="Loaded";e.superOnUnloadedCalled="Unloaded"}(C||(C={}));!function(e){e[e.Incremental=0]="Incremental";e[e.Loaded=1048576]="Loaded";e[e.NativeView=2097152]="NativeView";e[e.UISetup=4194304]="UISetup";e[e.IncrementalCountMask=-7340033]="IncrementalCountMask"}(S||(S={}));!function(e){e.toString=function toString(t){return(t?"suspended":"resumed")+"(Incremental: "+(t&e.IncrementalCountMask)+", Loaded: "+!(t&e.Loaded)+", NativeView: "+!(t&e.NativeView)+", UISetup: "+!(t&e.UISetup)+")"}}(S||(S={}));class ViewBase extends h.a{constructor(){super();this._onLoadedCalled=!1;this._onUnloadedCalled=!1;this._cssState=new y.CssState(new WeakRef(this));this.pseudoClassAliases={highlighted:["active","pressed"]};this.cssClasses=new Set;this.cssPseudoClasses=new Set;this._domId=b++;this._style=new m.a(new WeakRef(this));this.notify({eventName:ViewBase.createdEvent,type:this.constructor.name,object:this})}get parentNode(){return this._templateParent||this.parent}set parentNode(e){this._templateParent=e}get nativeView(){return this.nativeViewProtected}set nativeView(e){this.setNativeView(e)}get typeName(){return Object(f.getClass)(this)}get style(){return this._style}set style(e){if("string"!=typeof e)throw new Error("View.style property is read-only.");this.setInlineStyle(e)}get android(){return this._androidView}get ios(){return this._iosView}get isLoaded(){return this._isLoaded}get class(){return this.className}set class(e){this.className=e}getViewById(e){return getViewById(this,e)}get page(){return this.parent?this.parent.page:null}ensureDomNode(){if(!this.domNode){!function ensuredomNodeModule(){n||(n=r(109))}();this.domNode=new n.DOMNode(this)}}set(e,t){this[e]=h.b.unwrap(t)}onLoaded(){this.setFlag(C.superOnLoadedCalled,!0);if(!this._isLoaded){this._isLoaded=!0;this._cssState.onLoaded();this._resumeNativeUpdates(S.Loaded);this.eachChild(e=>{this.loadView(e);return!0});this._emit("loaded")}}onUnloaded(){this.setFlag(C.superOnUnloadedCalled,!0);if(this._isLoaded){this._suspendNativeUpdates(S.Loaded);this.eachChild(e=>{this.unloadView(e);return!0});this._isLoaded=!1;this._cssState.onUnloaded();this._emit("unloaded")}}_layoutParent(){this.parent&&this.parent._layoutParent()}_suspendNativeUpdates(e){e?this._suspendNativeUpdatesCount=this._suspendNativeUpdatesCount|e:this._suspendNativeUpdatesCount++}_resumeNativeUpdates(e){if(e)this._suspendNativeUpdatesCount=this._suspendNativeUpdatesCount&~e;else{if(0==(this._suspendNativeUpdatesCount&S.IncrementalCountMask))throw new Error("Invalid call to ".concat(this,"._resumeNativeUpdates"));this._suspendNativeUpdatesCount--}this._suspendNativeUpdatesCount||this.onResumeNativeUpdates()}_batchUpdate(e){try{this._suspendNativeUpdates(S.Incremental);return e()}finally{this._resumeNativeUpdates(S.Incremental)}}setFlag(e,t){switch(e){case C.superOnLoadedCalled:this._onLoadedCalled=t;break;case C.superOnUnloadedCalled:this._onUnloadedCalled=t}}isFlagSet(e){switch(e){case C.superOnLoadedCalled:return this._onLoadedCalled;case C.superOnUnloadedCalled:return this._onUnloadedCalled}}callFunctionWithSuper(e,t){this.setFlag(e,!1);t();if(!this.isFlagSet(e))throw new Error("super.".concat(e," not called in ").concat(this))}callLoaded(){this.callFunctionWithSuper(C.superOnLoadedCalled,()=>this.onLoaded())}callUnloaded(){this.callFunctionWithSuper(C.superOnUnloadedCalled,()=>this.onUnloaded())}notifyPseudoClassChanged(e){this.notify({eventName:":"+e,object:this})}getAllAliasedStates(e){var t=[];t.push(e);if(e in this.pseudoClassAliases)for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:w,r=e.targetProperty;this.unbind(r);this.bindings||(this.bindings=new Map);var n=new d.a(this,e);this.bindings.set(r,n);var i=t;if(i===w){i=this.bindingContext;n.sourceIsBindingContext=!0;if("bindingContext"===r){this.bindingContextBoundToParentBindingContextChanged=!0;var a=this.parent;a?a.on("bindingContextChange",this.bindingContextChanged,this):this.shouldAddHandlerToParentBindingContextChanged=!0}}n.bind(i)}unbind(e){var t=this.bindings;if(t){var r=t.get(e);if(r){r.unbind();t.delete(e);if(r.sourceIsBindingContext&&"bindingContext"===e){this.shouldAddHandlerToParentBindingContextChanged=!1;this.bindingContextBoundToParentBindingContextChanged=!1;var n=this.parent;n&&n.off("bindingContextChange",this.bindingContextChanged,this)}}}}performLayout(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this._shouldDelayLayout()&&e<100){setTimeout(()=>this.performLayout(e),e);e++}else this.parent.requestLayout()}requestLayout(){var e=this.parent;e&&this.performLayout()}eachChild(e){}_addView(e,t){p.a.isEnabled()&&p.a.write("".concat(this,"._addView(").concat(e,", ").concat(t,")"),p.a.categories.ViewHierarchy);if(!e)throw new Error("Expecting a valid View instance.");if(!(e instanceof ViewBase))throw new Error(e+" is not a valid View instance.");if(e.parent)throw new Error("View already has a parent. View: "+e+" Parent: "+e.parent);e.parent=this;this._addViewCore(e,t);e._parentChanged(null);this.domNode&&this.domNode.onChildAdded(e)}_addViewCore(e,t){Object(a.propagateInheritableProperties)(this,e);e._inheritStyleScope(this._styleScope);Object(a.propagateInheritableCssProperties)(this.style,e.style);this._context&&e._setupUI(this._context,t);this._isLoaded&&this.loadView(e)}loadView(e){e&&!e.isLoaded&&e.callLoaded()}_shouldDelayLayout(){return!1}unloadView(e){e&&e.isLoaded&&e.callUnloaded()}_removeView(e){p.a.isEnabled()&&p.a.write("".concat(this,"._removeView(").concat(e,")"),p.a.categories.ViewHierarchy);if(e.parent!==this)throw new Error("View not added to this instance. View: "+e+" CurrentParent: "+e.parent+" ExpectedParent: "+this);this.domNode&&this.domNode.onChildRemoved(e);this._removeViewCore(e);e.parent=void 0;e._parentChanged(this)}_removeViewCore(e){this.unloadView(e);e._context&&e._tearDownUI()}createNativeView(){}disposeNativeView(){}initNativeView(){}resetNativeView(){}resetNativeViewInternal(){}_setupAsRootView(e){this._setupUI(e)}_setupUI(e,t,r){if(this._context!==e){this._context&&this._tearDownUI(!0);this._context=e;var n=this.nativeViewProtected;n||(n=this.createNativeView());this._androidView=n;if(n){void 0===this._isPaddingRelative&&(this._isPaddingRelative=n.isPaddingRelative());var i=n.defaultPaddings;if(void 0===i){i=org.nativescript.widgets.ViewHelper.getPadding(n);n.defaultPaddings=i}this._defaultPaddingTop=i.top;this._defaultPaddingRight=i.right;this._defaultPaddingBottom=i.bottom;this._defaultPaddingLeft=i.left;var a=this.style;g.paddingTopProperty.isSet(a)||(this.effectivePaddingTop=this._defaultPaddingTop);g.paddingRightProperty.isSet(a)||(this.effectivePaddingRight=this._defaultPaddingRight);g.paddingBottomProperty.isSet(a)||(this.effectivePaddingBottom=this._defaultPaddingBottom);g.paddingLeftProperty.isSet(a)||(this.effectivePaddingLeft=this._defaultPaddingLeft)}this.setNativeView(n);if(this.parent){var o=this.parent._childIndexToNativeChildIndex(t);this._isAddedToNativeVisualTree=this.parent._addViewToNativeVisualTree(this,o)}this._resumeNativeUpdates(S.UISetup);this.eachChild(t=>{t._setupUI(e);return!0})}}setNativeView(e){if(this.__nativeView!==e){this.__nativeView&&this._suspendNativeUpdates(S.NativeView);this.__nativeView=this.nativeViewProtected=e;if(this.__nativeView){this._suspendedUpdates=void 0;this.initNativeView();this._resumeNativeUpdates(S.NativeView)}}}_tearDownUI(e){if(this._context){this.resetNativeViewInternal();this.eachChild(t=>{t._tearDownUI(e);return!0});this.parent&&this.parent._removeViewFromNativeVisualTree(this);this.disposeNativeView();this._suspendNativeUpdates(S.UISetup);this.setNativeView(null);this._androidView=null;this._context=null;if(this.domNode){this.domNode.dispose();this.domNode=void 0}}}_childIndexToNativeChildIndex(e){return e}_addViewToNativeVisualTree(e,t){if(e._isAddedToNativeVisualTree)throw new Error("Child already added to the native visual tree.");return!0}_removeViewFromNativeVisualTree(e){e._isAddedToNativeVisualTree=!1}_goToVisualState(e){p.a.isEnabled()&&p.a.write(this+" going to state: "+e,p.a.categories.Style);if(e!==this._visualState){this.deletePseudoClass(this._visualState);this._visualState=e;this.addPseudoClass(e)}}_applyXmlAttribute(e,t){console.log("ViewBase._applyXmlAttribute(...) is deprecated; set attributes as plain properties instead");if("style"===e||"rows"===e||"columns"===e||"fontAttributes"===e){this[e]=t;return!0}return!1}setInlineStyle(e){if("string"!=typeof e)throw new Error("Parameter should be valid CSS string!");!function ensureStyleScopeModule(){i||(i=r(76))}();i.applyInlineStyle(this,e,void 0)}_parentChanged(e){var t=this.parent;if(e){Object(a.clearInheritedProperties)(this);this.bindingContextBoundToParentBindingContextChanged&&e.off("bindingContextChange",this.bindingContextChanged,this)}else if(this.shouldAddHandlerToParentBindingContextChanged){t.on("bindingContextChange",this.bindingContextChanged,this);this.bindings.get("bindingContext").bind(t.bindingContext)}}onResumeNativeUpdates(){Object(a.initNativeView)(this,void 0,void 0)}toString(){var e=this.typeName;this.id?e+="<".concat(this.id,">"):e+="(".concat(this._domId,")");var t=l.Source.get(this);t&&(e+="@".concat(t,";"));return e}_onCssStateChange(){this._cssState.onChange();eachDescendant(this,e=>{e._cssState.onChange();return!0})}_inheritStyleScope(e){if(!this._isStyleScopeHost&&this._styleScope!==e){this._styleScope=e;this._onCssStateChange();this.eachChild(t=>{t._inheritStyleScope(e);return!0})}}showModal(){var e=this.parent;return e&&e.showModal(...arguments)}closeModal(){var e=this.parent;e&&e.closeModal(...arguments)}_dialogClosed(){eachDescendant(this,e=>{e._dialogClosed();return!0})}_onRootViewReset(){eachDescendant(this,e=>{e._onRootViewReset();return!0})}}ViewBase.loadedEvent="loaded";ViewBase.unloadedEvent="unloaded";ViewBase.createdEvent="created";__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],ViewBase.prototype,"onLoaded",null);__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],ViewBase.prototype,"onUnloaded",null);__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],ViewBase.prototype,"addPseudoClass",null);__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],ViewBase.prototype,"deletePseudoClass",null);__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],ViewBase.prototype,"requestLayout",null);__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[ViewBase,Number]),__metadata("design:returntype",void 0)],ViewBase.prototype,"_addView",null);__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Number,Boolean]),__metadata("design:returntype",void 0)],ViewBase.prototype,"_setupUI",null);__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[Boolean]),__metadata("design:returntype",void 0)],ViewBase.prototype,"_tearDownUI",null);ViewBase.prototype.isCollapsed=!1;ViewBase.prototype._oldLeft=0;ViewBase.prototype._oldTop=0;ViewBase.prototype._oldRight=0;ViewBase.prototype._oldBottom=0;ViewBase.prototype.effectiveMinWidth=0;ViewBase.prototype.effectiveMinHeight=0;ViewBase.prototype.effectiveWidth=0;ViewBase.prototype.effectiveHeight=0;ViewBase.prototype.effectiveMarginTop=0;ViewBase.prototype.effectiveMarginRight=0;ViewBase.prototype.effectiveMarginBottom=0;ViewBase.prototype.effectiveMarginLeft=0;ViewBase.prototype.effectivePaddingTop=0;ViewBase.prototype.effectivePaddingRight=0;ViewBase.prototype.effectivePaddingBottom=0;ViewBase.prototype.effectivePaddingLeft=0;ViewBase.prototype.effectiveBorderTopWidth=0;ViewBase.prototype.effectiveBorderRightWidth=0;ViewBase.prototype.effectiveBorderBottomWidth=0;ViewBase.prototype.effectiveBorderLeftWidth=0;ViewBase.prototype._defaultPaddingTop=0;ViewBase.prototype._defaultPaddingRight=0;ViewBase.prototype._defaultPaddingBottom=0;ViewBase.prototype._defaultPaddingLeft=0;ViewBase.prototype._isViewBase=!0;ViewBase.prototype.recycleNativeView="never";ViewBase.prototype._suspendNativeUpdatesCount=S.Loaded|S.NativeView|S.UISetup;var x=new a.InheritedProperty({name:"bindingContext"});x.register(ViewBase);var T=new a.Property({name:"className",valueChanged(e,t,r){var n=e.cssClasses,i=o.a.getSystemCssClasses(),a=n.has(o.a.MODAL_ROOT_VIEW_CSS_CLASS),l=n.has(o.a.ROOT_VIEW_CSS_CLASS);n.clear();a?n.add(o.a.MODAL_ROOT_VIEW_CSS_CLASS):l&&n.add(o.a.ROOT_VIEW_CSS_CLASS);i.forEach(e=>n.add(e));"string"==typeof r&&""!==r&&r.split(" ").forEach(e=>n.add(e));e._onCssStateChange()}});T.register(ViewBase);var P=new a.Property({name:"id",valueChanged:(e,t,r)=>e._onCssStateChange()});P.register(ViewBase);function booleanConverter(e){var t=(e+"").toLowerCase();if("true"===t)return!0;if("false"===t)return!1;throw new Error("Invalid boolean: ".concat(e))}},function(e,t,r){"use strict";r.d(t,"l",(function(){return n}));r.d(t,"j",(function(){return i}));r.d(t,"e",(function(){return a}));r.d(t,"i",(function(){return o}));r.d(t,"k",(function(){return l}));r.d(t,"f",(function(){return d}));r.d(t,"b",(function(){return p}));r.d(t,"o",(function(){return DateRange}));r.d(t,"d",(function(){return CalendarEvent}));r.d(t,"h",(function(){return CalendarMonthViewStyle}));r.d(t,"c",(function(){return CalendarDayViewStyle}));r.d(t,"m",(function(){return CalendarYearViewStyle}));r.d(t,"g",(function(){return CalendarMonthNamesViewStyle}));r.d(t,"s",(function(){return MonthCellStyle}));r.d(t,"n",(function(){return CellStyle}));r.d(t,"q",(function(){return DayEventsViewStyle}));r.d(t,"a",(function(){return AllDayEventsViewStyle}));r.d(t,"p",(function(){return DayCellStyle}));r.d(t,"r",(function(){return InlineEventCellStyle}));r.d(t,"t",(function(){return RadCalendar}));var n,i,a,o,l,d,p,h=r(11),m=r(0),g=r(4),f=r(5),v=r(16),y=r(37),w=r(23);!function(e){e.Week="Week";e.Month="Month";e.MonthNames="MonthNames";e.Year="Year";e.Day="Day"}(n||(n={}));!function(e){e.Round="Round";e.Square="Square";e.None="None"}(i||(i={}));!function(e){e.None="None";e.Inline="Inline";e.Popover="Popover"}(a||(a={}));!function(e){e.None="None";e.Single="Single";e.Multiple="Multiple";e.Range="Range"}(o||(o={}));!function(e){e.None="None";e.Slide="Slide";e.Stack="Stack";e.Flip="Flip";e.Fold="Fold";e.Float="Float";e.Rotate="Rotate";e.Plain="Plain";e.Free="Free";e.Combo="Combo";e.Overlap="Overlap"}(l||(l={}));!function(e){e.Normal="Normal";e.Bold="Bold";e.Italic="Italic";e.BoldItalic="BoldItalic"}(d||(d={}));!function(e){e.Left="Left";e.Right="Right";e.Top="Top";e.Bottom="Bottom";e.HorizontalCenter="HorizontalCenter";e.VerticalCenter="VerticalCenter";e.Center="Center"}(p||(p={}));class DateRange{constructor(e,t){this._startDate=e;this._endDate=t;this.normalize()}get startDate(){return this._startDate}set startDate(e){this._startDate=e}get endDate(){return this._endDate}set endDate(e){this._endDate=e}toString(){return this.startDate+" - "+this.endDate}normalize(){if(this._endDate{e.onShowWeekNumbersPropertyChanged(t,r)}});CalendarMonthViewStyle.selectionShapeProperty=new m.Property({name:"selectionShape",defaultValue:void 0,valueConverter:e=>i[e],valueChanged:(e,t,r)=>{e.onSelectionShapePropertyChanged(t,r)}});CalendarMonthViewStyle.selectionShapeSizeProperty=new m.Property({name:"selectionShapeSize",defaultValue:15,valueConverter:parseFloat,valueChanged:(e,t,r)=>{e.onSelectionShapeSizePropertyChanged(t,r)}});CalendarMonthViewStyle.selectionShapeColorProperty=new m.Property({name:"selectionShapeColor",defaultValue:void 0,equalityComparer:g.a.equals,valueConverter:e=>new g.a(e),valueChanged:(e,t,r)=>{e.onSelectionShapeColorPropertyChanged(t,r)}});CalendarMonthViewStyle.showTitleProperty=new m.Property({name:"showTitle",defaultValue:void 0,valueConverter:h.b,valueChanged:(e,t,r)=>{e.onShowTitlePropertyChanged(t,r)}});CalendarMonthViewStyle.showDayNamesProperty=new m.Property({name:"showDayNames",defaultValue:void 0,valueConverter:h.b,valueChanged:(e,t,r)=>{e.onShowDayNamesPropertyChanged(t,r)}});CalendarMonthViewStyle.backgroundColorProperty=new m.Property({name:"backgroundColor",defaultValue:void 0,equalityComparer:g.a.equals,valueConverter:e=>new g.a(e),valueChanged:(e,t,r)=>{e.onCellBackgroundColorPropertyChanged(t,r)}});CalendarMonthViewStyle.dayCellStyleProperty=new m.Property({name:"dayCellStyle",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onDayCellStylePropertyChanged(t,r)}});CalendarMonthViewStyle.selectedDayCellStyleProperty=new m.Property({name:"selectedDayCellStyle",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onSelectedDayCellStylePropertyChanged(t,r)}});CalendarMonthViewStyle.todayCellStyleProperty=new m.Property({name:"todayCellStyle",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onTodayCellStylePropertyChanged(t,r)}});CalendarMonthViewStyle.disabledCellStyleProperty=new m.Property({name:"disabledCellStyle",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onDisabledCellStylePropertyChanged(t,r)}});CalendarMonthViewStyle.anotherMonthCellStyleProperty=new m.Property({name:"anotherMonthCellStyle",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onAnotherMonthCellStylePropertyChanged(t,r)}});CalendarMonthViewStyle.dayNameCellStyleProperty=new m.Property({name:"dayNameCellStyle",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onDayNameCellStylePropertyChanged(t,r)}});CalendarMonthViewStyle.weekNumberCellStyleProperty=new m.Property({name:"weekNumberCellStyle",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onWeekNumberCellStylePropertyChanged(t,r)}});CalendarMonthViewStyle.weekendCellStyleProperty=new m.Property({name:"weekendCellStyle",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onWeekendCellStylePropertyChanged(t,r)}});CalendarMonthViewStyle.titleCellStyleProperty=new m.Property({name:"titleCellStyle",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onTitleCellStylePropertyChanged(t,r)}});CalendarMonthViewStyle.inlineEventCellStyleProperty=new m.Property({name:"inlineEventCellStyle",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onInlineEventCellStylePropertyChanged(t,r)}});CalendarMonthViewStyle.showWeekNumbersProperty.register(CalendarMonthViewStyle);CalendarMonthViewStyle.selectionShapeProperty.register(CalendarMonthViewStyle);CalendarMonthViewStyle.selectionShapeSizeProperty.register(CalendarMonthViewStyle);CalendarMonthViewStyle.selectionShapeColorProperty.register(CalendarMonthViewStyle);CalendarMonthViewStyle.showTitleProperty.register(CalendarMonthViewStyle);CalendarMonthViewStyle.showDayNamesProperty.register(CalendarMonthViewStyle);CalendarMonthViewStyle.backgroundColorProperty.register(CalendarMonthViewStyle);CalendarMonthViewStyle.dayCellStyleProperty.register(CalendarMonthViewStyle);CalendarMonthViewStyle.selectedDayCellStyleProperty.register(CalendarMonthViewStyle);CalendarMonthViewStyle.todayCellStyleProperty.register(CalendarMonthViewStyle);CalendarMonthViewStyle.dayNameCellStyleProperty.register(CalendarMonthViewStyle);CalendarMonthViewStyle.weekNumberCellStyleProperty.register(CalendarMonthViewStyle);CalendarMonthViewStyle.weekendCellStyleProperty.register(CalendarMonthViewStyle);CalendarMonthViewStyle.titleCellStyleProperty.register(CalendarMonthViewStyle);CalendarMonthViewStyle.inlineEventCellStyleProperty.register(CalendarMonthViewStyle);class CalendarWeekViewStyle extends CalendarMonthViewStyle{}class CalendarDayViewStyle extends CalendarWeekViewStyle{onShowWeekPropertyChanged(e,t){this.onShowWeekChanged(e,t)}onShowWeekChanged(e,t){}onDayEventsViewStylePropertyChanged(e,t){this.onDayEventsViewStyleChanged(e,t)}onDayEventsViewStyleChanged(e,t){}onAllDayEventsViewStylePropertyChanged(e,t){this.onAllDayEventsViewStyleChanged(e,t)}onAllDayEventsViewStyleChanged(e,t){}}CalendarDayViewStyle.showWeekProperty=new m.Property({name:"showWeek",defaultValue:!0,valueConverter:h.b,valueChanged:(e,t,r)=>{e.onShowWeekPropertyChanged(t,r)}});CalendarDayViewStyle.dayEventsViewStyleProperty=new m.Property({name:"dayEventsViewStyle",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onDayEventsViewStylePropertyChanged(t,r)}});CalendarDayViewStyle.allDayEventsViewStyleProperty=new m.Property({name:"allDayEventsViewStyle",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onAllDayEventsViewStylePropertyChanged(t,r)}});CalendarDayViewStyle.showWeekProperty.register(CalendarDayViewStyle);CalendarDayViewStyle.dayEventsViewStyleProperty.register(CalendarDayViewStyle);CalendarDayViewStyle.allDayEventsViewStyleProperty.register(CalendarDayViewStyle);class CalendarYearViewStyle extends h.a{onTitleCellStylePropertyChanged(e,t){this.onTitleCellStyleChanged(e,t)}onTitleCellStyleChanged(e,t){}onMonthCellStylePropertyChanged(e,t){this.onMonthCellStyleChanged(e,t)}onMonthCellStyleChanged(e,t){}}CalendarYearViewStyle.titleCellStyleProperty=new m.Property({name:"titleCellStyle",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onTitleCellStylePropertyChanged(t,r)}});CalendarYearViewStyle.monthCellStyleProperty=new m.Property({name:"monthCellStyle",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onMonthCellStylePropertyChanged(t,r)}});CalendarYearViewStyle.titleCellStyleProperty.register(CalendarYearViewStyle);CalendarYearViewStyle.monthCellStyleProperty.register(CalendarYearViewStyle);class CalendarMonthNamesViewStyle extends h.a{onTitleCellStylePropertyChanged(e,t){this.onTitleCellStyleChanged(e,t)}onTitleCellStyleChanged(e,t){}onMonthNameCellStylePropertyChanged(e,t){this.onMonthNameCellStyleChanged(e,t)}onMonthNameCellStyleChanged(e,t){}}CalendarMonthNamesViewStyle.titleCellStyleProperty=new m.Property({name:"titleCellStyle",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onTitleCellStylePropertyChanged(t,r)}});CalendarMonthNamesViewStyle.monthNameCellStyleProperty=new m.Property({name:"monthNameCellStyle",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onMonthNameCellStylePropertyChanged(t,r)}});CalendarMonthNamesViewStyle.titleCellStyleProperty.register(CalendarMonthNamesViewStyle);CalendarMonthNamesViewStyle.monthNameCellStyleProperty.register(CalendarMonthNamesViewStyle);class MonthCellStyle extends h.a{"onWeekendТextColorPropertyChanged"(e,t){this.onWeekendTextColorChanged(e,t)}onWeekendTextColorChanged(e,t){}"onTodayТextColorPropertyChanged"(e,t){this.onTodayTextColorChanged(e,t)}onTodayTextColorChanged(e,t){}"onDayТextColorPropertyChanged"(e,t){this.onDayTextColorChanged(e,t)}onDayTextColorChanged(e,t){}onDayFontNamePropertyChanged(e,t){this.onDayFontNameChanged(e,t)}onDayFontNameChanged(e,t){}onDayFontStylePropertyChanged(e,t){this.onDayFontStyleChanged(e,t)}onDayFontStyleChanged(e,t){}onDayTextSizePropertyChanged(e,t){this.onDayTextSizeChanged(e,t)}onDayTextSizeChanged(e,t){}"onDayNameТextColorPropertyChanged"(e,t){this.onDayNameTextColorChanged(e,t)}onDayNameTextColorChanged(e,t){}onDayNameFontNamePropertyChanged(e,t){this.onDayNameFontNameChanged(e,t)}onDayNameFontNameChanged(e,t){}onDayNameFontStylePropertyChanged(e,t){this.onDayNameFontStyleChanged(e,t)}onDayNameFontStyleChanged(e,t){}onDayNameTextSizePropertyChanged(e,t){this.onDayNameTextSizeChanged(e,t)}onDayNameTextSizeChanged(e,t){}"onMonthNameТextColorPropertyChanged"(e,t){this.onMonthNameTextColorChanged(e,t)}onMonthNameTextColorChanged(e,t){}onMonthNameFontNamePropertyChanged(e,t){this.onMonthNameFontNameChanged(e,t)}onMonthNameFontNameChanged(e,t){}onMonthNameFontStylePropertyChanged(e,t){this.onMonthNameFontStyleChanged(e,t)}onMonthNameFontStyleChanged(e,t){}onMonthNameTextSizePropertyChanged(e,t){this.onMonthNameTextSizeChanged(e,t)}onMonthNameTextSizeChanged(e,t){}}MonthCellStyle.weekendTextColorProperty=new m.Property({name:"weekendTextColor",defaultValue:void 0,equalityComparer:g.a.equals,valueConverter:e=>new g.a(e),valueChanged:(e,t,r)=>{e.onWeekendТextColorPropertyChanged(t,r)}});MonthCellStyle.todayTextColorProperty=new m.Property({name:"todayTextColor",defaultValue:void 0,equalityComparer:g.a.equals,valueConverter:e=>new g.a(e),valueChanged:(e,t,r)=>{e.onTodayТextColorPropertyChanged(t,r)}});MonthCellStyle.dayTextColorProperty=new m.Property({name:"dayTextColor",defaultValue:void 0,equalityComparer:g.a.equals,valueConverter:e=>new g.a(e),valueChanged:(e,t,r)=>{e.onDayТextColorPropertyChanged(t,r)}});MonthCellStyle.dayFontNameProperty=new m.Property({name:"dayFontName",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onDayFontNamePropertyChanged(t,r)}});MonthCellStyle.dayFontStyleProperty=new m.Property({name:"dayFontStyle",defaultValue:void 0,valueConverter:e=>d[e],valueChanged:(e,t,r)=>{e.onDayFontStylePropertyChanged(t,r)}});MonthCellStyle.dayTextSizeProperty=new m.Property({name:"dayTextSize",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onDayTextSizePropertyChanged(t,r)}});MonthCellStyle.dayNameTextColorProperty=new m.Property({name:"dayNameTextColor",defaultValue:void 0,equalityComparer:g.a.equals,valueConverter:e=>new g.a(e),valueChanged:(e,t,r)=>{e.onDayNameТextColorPropertyChanged(t,r)}});MonthCellStyle.dayNameFontNameProperty=new m.Property({name:"dayNameFontName",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onDayNameFontNamePropertyChanged(t,r)}});MonthCellStyle.dayNameFontStyleProperty=new m.Property({name:"dayNameFontStyle",defaultValue:void 0,valueConverter:e=>d[e],valueChanged:(e,t,r)=>{e.onDayNameFontStylePropertyChanged(t,r)}});MonthCellStyle.dayNameTextSizeProperty=new m.Property({name:"dayNameTextSize",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onDayNameTextSizePropertyChanged(t,r)}});MonthCellStyle.monthNameTextColorProperty=new m.Property({name:"monthNameTextColor",defaultValue:void 0,equalityComparer:g.a.equals,valueConverter:e=>new g.a(e),valueChanged:(e,t,r)=>{e.onMonthNameТextColorPropertyChanged(t,r)}});MonthCellStyle.monthNameFontNameProperty=new m.Property({name:"monthNameFontName",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onMonthNameFontNamePropertyChanged(t,r)}});MonthCellStyle.monthNameFontStyleProperty=new m.Property({name:"monthNameFontStyle",defaultValue:void 0,valueConverter:e=>d[e],valueChanged:(e,t,r)=>{e.onMonthNameFontStylePropertyChanged(t,r)}});MonthCellStyle.monthNameTextSizeProperty=new m.Property({name:"monthNameTextSize",defaultValue:void 0,valueConverter:parseFloat,valueChanged:(e,t,r)=>{e.onMonthNameTextSizePropertyChanged(t,r)}});MonthCellStyle.weekendTextColorProperty.register(MonthCellStyle);MonthCellStyle.todayTextColorProperty.register(MonthCellStyle);MonthCellStyle.dayTextColorProperty.register(MonthCellStyle);MonthCellStyle.dayFontNameProperty.register(MonthCellStyle);MonthCellStyle.dayFontStyleProperty.register(MonthCellStyle);MonthCellStyle.dayTextSizeProperty.register(MonthCellStyle);MonthCellStyle.dayNameTextColorProperty.register(MonthCellStyle);MonthCellStyle.dayNameFontNameProperty.register(MonthCellStyle);MonthCellStyle.dayNameFontStyleProperty.register(MonthCellStyle);MonthCellStyle.dayNameTextSizeProperty.register(MonthCellStyle);MonthCellStyle.monthNameTextColorProperty.register(MonthCellStyle);MonthCellStyle.monthNameFontNameProperty.register(MonthCellStyle);MonthCellStyle.monthNameFontStyleProperty.register(MonthCellStyle);MonthCellStyle.monthNameTextSizeProperty.register(MonthCellStyle);class CellStyle extends h.a{get ios(){}get android(){}onCellBorderWidthPropertyChanged(e,t){this.onCellBorderWidthChanged(e,t)}onCellBorderWidthChanged(e,t){}onCellBorderColorPropertyChanged(e,t){this.onCellBorderColorChanged(e,t)}onCellBorderColorChanged(e,t){}onCellBackgroundColorPropertyChanged(e,t){this.onCellBackgroundColorChanged(e,t)}onCellBackgroundColorChanged(e,t){}onCellAlignmentPropertyChanged(e,t){this.onCellAlignmentChanged(e,t)}onCellAlignmentChanged(e,t){}"onCellТextColorPropertyChanged"(e,t){this.onCellTextColorChanged(e,t)}onCellTextColorChanged(e,t){}onCellTextFontNamePropertyChanged(e,t){this.onCellTextFontNameChanged(e,t)}onCellTextFontNameChanged(e,t){}onCellTextFontStylePropertyChanged(e,t){this.onCellTextFontStyleChanged(e,t)}onCellTextFontStyleChanged(e,t){}onCellTextSizePropertyChanged(e,t){this.onCellTextSizeChanged(e,t)}onCellTextSizeChanged(e,t){}onCellPaddingHorizontalPropertyChanged(e,t){this.onCellPaddingHorizontalChanged(e,t)}onCellPaddingHorizontalChanged(e,t){}onCellPaddingVerticalPropertyChanged(e,t){this.onCellPaddingVerticalChanged(e,t)}onCellPaddingVerticalChanged(e,t){}}CellStyle.cellBorderWidthProperty=new m.Property({name:"cellBorderWidth",defaultValue:void 0,valueConverter:parseFloat,valueChanged:(e,t,r)=>{e.onCellBorderWidthPropertyChanged(t,r)}});CellStyle.cellBorderColorProperty=new m.Property({name:"cellBorderColor",defaultValue:void 0,equalityComparer:g.a.equals,valueConverter:e=>new g.a(e),valueChanged:(e,t,r)=>{e.onCellBorderColorPropertyChanged(t,r)}});CellStyle.cellBackgroundColorProperty=new m.Property({name:"cellBackgroundColor",defaultValue:void 0,equalityComparer:g.a.equals,valueConverter:e=>new g.a(e),valueChanged:(e,t,r)=>{e.onCellBackgroundColorPropertyChanged(t,r)}});CellStyle.cellAlignmentProperty=new m.Property({name:"cellAlignment",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onCellAlignmentPropertyChanged(t,r)}});CellStyle.cellTextColorProperty=new m.Property({name:"cellTextColor",defaultValue:void 0,equalityComparer:g.a.equals,valueConverter:e=>new g.a(e),valueChanged:(e,t,r)=>{e.onCellТextColorPropertyChanged(t,r)}});CellStyle.cellTextFontNameProperty=new m.Property({name:"cellTextFontName",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onCellTextFontNamePropertyChanged(t,r)}});CellStyle.cellTextFontStyleProperty=new m.Property({name:"cellTextFontStyle",defaultValue:void 0,valueConverter:e=>d[e],valueChanged:(e,t,r)=>{e.onCellTextFontStylePropertyChanged(t,r)}});CellStyle.cellTextSizeProperty=new m.Property({name:"cellTextSize",defaultValue:void 0,valueConverter:parseFloat,valueChanged:(e,t,r)=>{e.onCellTextSizePropertyChanged(t,r)}});CellStyle.cellPaddingHorizontalProperty=new m.Property({name:"cellPaddingHorizontal",defaultValue:void 0,valueConverter:parseInt,valueChanged:(e,t,r)=>{e.onCellPaddingHorizontalPropertyChanged(t,r)}});CellStyle.cellPaddingVerticalProperty=new m.Property({name:"cellPaddingVertical",defaultValue:void 0,valueConverter:parseInt,valueChanged:(e,t,r)=>{e.onCellPaddingVerticalPropertyChanged(t,r)}});CellStyle.cellBorderWidthProperty.register(CellStyle);CellStyle.cellBorderColorProperty.register(CellStyle);CellStyle.cellBackgroundColorProperty.register(CellStyle);CellStyle.cellAlignmentProperty.register(CellStyle);CellStyle.cellTextColorProperty.register(CellStyle);CellStyle.cellTextFontNameProperty.register(CellStyle);CellStyle.cellTextFontStyleProperty.register(CellStyle);CellStyle.cellTextSizeProperty.register(CellStyle);CellStyle.cellPaddingHorizontalProperty.register(CellStyle);CellStyle.cellPaddingVerticalProperty.register(CellStyle);class DayEventsViewStyle extends h.a{get ios(){}get android(){}onBackgroundColorPropertyChanged(e,t){this.onBackgroundColorChanged(e,t)}onBackgroundColorChanged(e,t){}onTimeLabelFormatPropertyChanged(e,t){this.onTimeLabelFormatChanged(e,t)}onTimeLabelFormatChanged(e,t){}onTimeLabelTextColorPropertyChanged(e,t){this.onTimeLabelTextColorChanged(e,t)}onTimeLabelTextColorChanged(e,t){}onTimeLabelFontNamePropertyChanged(e,t){this.onTimeLabelFontNameChanged(e,t)}onTimeLabelFontNameChanged(e,t){}onTimeLabelFontStylePropertyChanged(e,t){this.onTimeLabelFontStyleChanged(e,t)}onTimeLabelFontStyleChanged(e,t){}onTimeLabelTextSizePropertyChanged(e,t){this.onTimeLabelTextSizeChanged(e,t)}onTimeLabelTextSizeChanged(e,t){}onTimeLinesWidthPropertyChanged(e,t){this.onTimeLinesWidthChanged(e,t)}onTimeLinesWidthChanged(e,t){}onTimeLinesColorPropertyChanged(e,t){this.onTimeLinesColorChanged(e,t)}onTimeLinesColorChanged(e,t){}}DayEventsViewStyle.backgroundColorProperty=new m.Property({name:"backgroundColor",defaultValue:void 0,equalityComparer:g.a.equals,valueConverter:e=>new g.a(e),valueChanged:(e,t,r)=>{e.onBackgroundColorPropertyChanged(t,r)}});DayEventsViewStyle.timeLabelFormatProperty=new m.Property({name:"timeLabelFormat",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onTimeLabelFormatPropertyChanged(t,r)}});DayEventsViewStyle.timeLabelTextColorProperty=new m.Property({name:"timeLabelTextColor",defaultValue:void 0,equalityComparer:g.a.equals,valueConverter:e=>new g.a(e),valueChanged:(e,t,r)=>{e.onTimeLabelTextColorPropertyChanged(t,r)}});DayEventsViewStyle.timeLabelFontNameProperty=new m.Property({name:"timeLabelFontName",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onTimeLabelFontNamePropertyChanged(t,r)}});DayEventsViewStyle.timeLabelFontStyleProperty=new m.Property({name:"timeLabelFontStyle",defaultValue:void 0,valueConverter:e=>d[e],valueChanged:(e,t,r)=>{e.onTimeLabelFontStylePropertyChanged(t,r)}});DayEventsViewStyle.timeLabelTextSizeProperty=new m.Property({name:"timeLabelTextSize",defaultValue:void 0,valueConverter:parseFloat,valueChanged:(e,t,r)=>{e.onTimeLabelTextSizePropertyChanged(t,r)}});DayEventsViewStyle.timeLinesWidthProperty=new m.Property({name:"timeLinesWidth",defaultValue:void 0,valueConverter:parseFloat,valueChanged:(e,t,r)=>{e.onTimeLinesWidthPropertyChanged(t,r)}});DayEventsViewStyle.timeLinesColorProperty=new m.Property({name:"timeLinesColor",defaultValue:void 0,equalityComparer:g.a.equals,valueConverter:e=>new g.a(e),valueChanged:(e,t,r)=>{e.onTimeLinesColorPropertyChanged(t,r)}});DayEventsViewStyle.backgroundColorProperty.register(DayEventsViewStyle);DayEventsViewStyle.timeLabelFormatProperty.register(DayEventsViewStyle);DayEventsViewStyle.timeLabelTextColorProperty.register(DayEventsViewStyle);DayEventsViewStyle.timeLabelFontNameProperty.register(DayEventsViewStyle);DayEventsViewStyle.timeLabelFontStyleProperty.register(DayEventsViewStyle);DayEventsViewStyle.timeLabelTextSizeProperty.register(DayEventsViewStyle);DayEventsViewStyle.timeLinesWidthProperty.register(DayEventsViewStyle);DayEventsViewStyle.timeLinesColorProperty.register(DayEventsViewStyle);class AllDayEventsViewStyle extends h.a{get ios(){}get android(){}onBackgroundColorPropertyChanged(e,t){this.onBackgroundColorChanged(e,t)}onBackgroundColorChanged(e,t){}onAllDayTextPropertyChanged(e,t){this.onAllDayTextChanged(e,t)}onAllDayTextChanged(e,t){}onAllDayTextIsVisiblePropertyChanged(e,t){this.onAlDayTextIsVisibleChanged(e,t)}onAlDayTextIsVisibleChanged(e,t){}}AllDayEventsViewStyle.ALL_DAY_TEXT="ALL-DAY";AllDayEventsViewStyle.backgroundColorProperty=new m.Property({name:"backgroundColor",defaultValue:void 0,equalityComparer:g.a.equals,valueConverter:e=>new g.a(e),valueChanged:(e,t,r)=>{e.onBackgroundColorPropertyChanged(t,r)}});AllDayEventsViewStyle.allDayTextProperty=new m.Property({name:"allDayText",defaultValue:AllDayEventsViewStyle.ALL_DAY_TEXT,valueChanged:(e,t,r)=>{e.onAllDayTextPropertyChanged(t,r)}});AllDayEventsViewStyle.allDayTextIsVisibleProperty=new m.Property({name:"allDayTextIsVisible",defaultValue:void 0,valueConverter:h.b,valueChanged:(e,t,r)=>{e.onAllDayTextIsVisiblePropertyChanged(t,r)}});AllDayEventsViewStyle.backgroundColorProperty.register(AllDayEventsViewStyle);AllDayEventsViewStyle.allDayTextProperty.register(AllDayEventsViewStyle);AllDayEventsViewStyle.allDayTextIsVisibleProperty.register(AllDayEventsViewStyle);class DayCellStyle extends CellStyle{onShowEventsTextPropertyChanged(e,t){this.onShowEventsTextChanged(e,t)}onShowEventsTextChanged(e,t){}onEventTextColorPropertyChanged(e,t){this.onEventTextColorChanged(e,t)}onEventTextColorChanged(e,t){}onEventFontNamePropertyChanged(e,t){this.onEventFontNameChanged(e,t)}onEventFontNameChanged(e,t){}onEventFontStylePropertyChanged(e,t){this.onEventFontStyleChanged(e,t)}onEventFontStyleChanged(e,t){}onEventTextSizePropertyChanged(e,t){this.onEventTextSizeChanged(e,t)}onEventTextSizeChanged(e,t){}}DayCellStyle.showEventsTextProperty=new m.Property({name:"showEventsText",defaultValue:!1,valueConverter:h.b,valueChanged:(e,t,r)=>{e.onShowEventsTextPropertyChanged(t,r)}});DayCellStyle.eventTextColorProperty=new m.Property({name:"eventTextColor",defaultValue:void 0,equalityComparer:g.a.equals,valueConverter:e=>new g.a(e),valueChanged:(e,t,r)=>{e.onEventTextColorPropertyChanged(t,r)}});DayCellStyle.eventFontNameProperty=new m.Property({name:"eventFontName",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onEventFontNamePropertyChanged(t,r)}});DayCellStyle.eventFontStyleProperty=new m.Property({name:"eventFontStyle",defaultValue:void 0,valueConverter:e=>d[e],valueChanged:(e,t,r)=>{e.onEventFontStylePropertyChanged(t,r)}});DayCellStyle.eventTextSizeProperty=new m.Property({name:"eventTextSize",defaultValue:void 0,valueConverter:parseFloat,valueChanged:(e,t,r)=>{e.onEventTextSizePropertyChanged(t,r)}});DayCellStyle.showEventsTextProperty.register(DayCellStyle);DayCellStyle.eventTextColorProperty.register(DayCellStyle);DayCellStyle.eventFontNameProperty.register(DayCellStyle);DayCellStyle.eventFontStyleProperty.register(DayCellStyle);DayCellStyle.eventTextSizeProperty.register(DayCellStyle);class InlineEventCellStyle extends h.a{onCellBackgroundColorPropertyChanged(e,t){this.onCellBackgroundColorChanged(e,t)}onCellBackgroundColorChanged(e,t){}onEventTextColorPropertyChanged(e,t){this.onEventTextColorChanged(e,t)}onEventTextColorChanged(e,t){}onEventFontNamePropertyChanged(e,t){this.onEventFontNameChanged(e,t)}onEventFontNameChanged(e,t){}onEventFontStylePropertyChanged(e,t){this.onEventFontStyleChanged(e,t)}onEventFontStyleChanged(e,t){}onEventTextSizePropertyChanged(e,t){this.onEventTextSizeChanged(e,t)}onEventTextSizeChanged(e,t){}onTimeTextColorPropertyChanged(e,t){this.onTimeTextColorChanged(e,t)}onTimeTextColorChanged(e,t){}onTimeFontNamePropertyChanged(e,t){this.onTimeFontNameChanged(e,t)}onTimeFontNameChanged(e,t){}onTimeFontStylePropertyChanged(e,t){this.onTimeFontStyleChanged(e,t)}onTimeFontStyleChanged(e,t){}onTimeTextSizePropertyChanged(e,t){this.onTimeTextSizeChanged(e,t)}onTimeTextSizeChanged(e,t){}}InlineEventCellStyle.cellBackgroundColorProperty=new m.Property({name:"cellBackgroundColor",defaultValue:void 0,equalityComparer:g.a.equals,valueConverter:e=>new g.a(e),valueChanged:(e,t,r)=>{e.onCellBackgroundColorPropertyChanged(t,r)}});InlineEventCellStyle.eventTextColorProperty=new m.Property({name:"eventTextColor",defaultValue:void 0,equalityComparer:g.a.equals,valueConverter:e=>new g.a(e),valueChanged:(e,t,r)=>{e.onEventTextColorPropertyChanged(t,r)}});InlineEventCellStyle.eventFontNameProperty=new m.Property({name:"eventFontName",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onEventFontNamePropertyChanged(t,r)}});InlineEventCellStyle.eventFontStyleProperty=new m.Property({name:"eventFontStyle",defaultValue:void 0,valueConverter:e=>d[e],valueChanged:(e,t,r)=>{e.onEventFontStylePropertyChanged(t,r)}});InlineEventCellStyle.eventTextSizeProperty=new m.Property({name:"eventTextSize",defaultValue:void 0,valueConverter:parseFloat,valueChanged:(e,t,r)=>{e.onEventTextSizePropertyChanged(t,r)}});InlineEventCellStyle.timeTextColorProperty=new m.Property({name:"timeTextColor",defaultValue:void 0,equalityComparer:g.a.equals,valueConverter:e=>new g.a(e),valueChanged:(e,t,r)=>{e.onTimeTextColorPropertyChanged(t,r)}});InlineEventCellStyle.timeFontNameProperty=new m.Property({name:"timeFontName",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onTimeFontNamePropertyChanged(t,r)}});InlineEventCellStyle.timeFontStyleProperty=new m.Property({name:"timeFontStyle",defaultValue:void 0,valueConverter:e=>d[e],valueChanged:(e,t,r)=>{e.onTimeFontStylePropertyChanged(t,r)}});InlineEventCellStyle.timeTextSizeProperty=new m.Property({name:"timeTextSize",defaultValue:void 0,valueConverter:parseFloat,valueChanged:(e,t,r)=>{e.onTimeTextSizePropertyChanged(t,r)}});InlineEventCellStyle.cellBackgroundColorProperty.register(InlineEventCellStyle);InlineEventCellStyle.eventTextColorProperty.register(InlineEventCellStyle);InlineEventCellStyle.eventFontNameProperty.register(InlineEventCellStyle);InlineEventCellStyle.eventFontStyleProperty.register(InlineEventCellStyle);InlineEventCellStyle.eventTextSizeProperty.register(InlineEventCellStyle);InlineEventCellStyle.timeTextColorProperty.register(InlineEventCellStyle);InlineEventCellStyle.timeFontNameProperty.register(InlineEventCellStyle);InlineEventCellStyle.timeFontStyleProperty.register(InlineEventCellStyle);InlineEventCellStyle.timeTextSizeProperty.register(InlineEventCellStyle);class RadCalendar extends f.c{constructor(){super(...arguments);this._silentSelectionUpdate=!1}onLocalePropertyChanged(e,t){}onMinDatePropertyChanged(e,t){this.onMinDateChanged(e,t)}onMaxDatePropertyChanged(e,t){this.onMaxDateChanged(e,t)}onSelectedDatePropertyChanged(e,t){this._silentSelectionUpdate||(this.selectionMode===o.Single?this.onSelectedDateChanged(e,t):console.log(this.getSelectionWarningInfo("selectedDate")))}onSelectedDatesPropertyChanged(e,t){this._silentSelectionUpdate||(this.selectionMode===o.Multiple?this.onSelectedDatesChanged(e,t):console.log(this.getSelectionWarningInfo("selectedDates")))}onSelectedDateRangePropertyChanged(e,t){this._silentSelectionUpdate||(this.selectionMode===o.Range?this.onSelectedDateRangeChanged(e,t):console.log(this.getSelectionWarningInfo("selectedDateRange")))}onViewModePropertyChanged(e,t){this.onViewModeChanged(e,t)}onEventsViewModePropertyChanged(e,t){this.onEventsViewModeChanged(e,t)}onSelectionModePropertyChanged(e,t){this.onSelectionModeChanged(e,t)}onTransitionModePropertyChanged(e,t){this.onTransitionModeChanged(e,t)}onDisplayedDatePropertyChanged(e,t){this.onDisplayedDateChanged(e,t)}onEventSourcePropertyChanged(e,t){this.onEventSourceChanged(e,t)}onHorizontalTransitionPropertyChanged(e,t){this.onHorizontalTransitionChanged(e,t)}onMonthViewStylePropertyChanged(e,t){this.onMonthViewStyleChanged(e,t)}onWeekViewStylePropertyChanged(e,t){this.onWeekViewStyleChanged(e,t)}onDayViewStylePropertyChanged(e,t){this.onDayViewStyleChanged(e,t)}onYearViewStylePropertyChanged(e,t){this.onYearViewStyleChanged(e,t)}onMonthNamesViewStylePropertyChanged(e,t){this.onMonthNamesViewStyleChanged(e,t)}reload(){}navigateForward(){}navigateBack(){}goToDate(e){}getEventsForDate(e){}getSelectedDatesList(){var e=this.selectedDates;"string"==typeof this.selectedDates&&(e=this.selectedDates.split(","));return e}_addSelectedDate(e){var t=new Array;if(this.selectedDates)for(var r=this.getSelectedDatesList(),n=0;n{e.onLocalePropertyChanged(t,r)}});RadCalendar.minDateProperty=new m.Property({name:"minDate",defaultValue:void 0,equalityComparer:(e,t)=>e<=t&&e>=t,valueConverter:e=>new Date(e),valueChanged:(e,t,r)=>{e.onMinDatePropertyChanged(t,r)}});RadCalendar.maxDateProperty=new m.Property({name:"maxDate",defaultValue:void 0,equalityComparer:(e,t)=>e<=t&&e>=t,valueConverter:e=>new Date(e),valueChanged:(e,t,r)=>{e.onMaxDatePropertyChanged(t,r)}});RadCalendar.selectedDateProperty=new m.Property({name:"selectedDate",defaultValue:void 0,equalityComparer:(e,t)=>e<=t&&e>=t,valueConverter:e=>new Date(e),valueChanged:(e,t,r)=>{e.onSelectedDatePropertyChanged(t,r)}});RadCalendar.selectedDatesProperty=new m.Property({name:"selectedDates",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onSelectedDatesPropertyChanged(t,r)}});RadCalendar.selectedDateRangeProperty=new m.Property({name:"selectedDateRange",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onSelectedDateRangePropertyChanged(t,r)}});RadCalendar.viewModeProperty=new m.Property({name:"viewMode",defaultValue:n.Month,valueConverter:e=>n[e],valueChanged:(e,t,r)=>{e.onViewModePropertyChanged(t,r)}});RadCalendar.eventsViewModeProperty=new m.Property({name:"eventsViewMode",defaultValue:a.None,valueConverter:e=>a[e],valueChanged:(e,t,r)=>{e.onEventsViewModePropertyChanged(t,r)}});RadCalendar.selectionModeProperty=new m.Property({name:"selectionMode",defaultValue:o.Single,valueConverter:e=>o[e],valueChanged:(e,t,r)=>{e.onSelectionModePropertyChanged(t,r)}});RadCalendar.transitionModeProperty=new m.Property({name:"transitionMode",defaultValue:l.Slide,valueConverter:e=>l[e],valueChanged:(e,t,r)=>{e.onTransitionModePropertyChanged(t,r)}});RadCalendar.displayedDateProperty=new m.Property({name:"displayedDate",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onDisplayedDatePropertyChanged(t,r)}});RadCalendar.eventSourceProperty=new m.Property({name:"eventSource",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onEventSourcePropertyChanged(t,r)}});RadCalendar.horizontalTransitionProperty=new m.Property({name:"horizontalTransition",defaultValue:!0,valueConverter:h.b,valueChanged:(e,t,r)=>{e.onHorizontalTransitionPropertyChanged(t,r)}});RadCalendar.monthViewStyleProperty=new m.Property({name:"monthViewStyle",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onMonthViewStylePropertyChanged(t,r)}});RadCalendar.weekViewStyleProperty=new m.Property({name:"weekViewStyle",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onWeekViewStylePropertyChanged(t,r)}});RadCalendar.dayViewStyleProperty=new m.Property({name:"dayViewStyle",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onDayViewStylePropertyChanged(t,r)}});RadCalendar.yearViewStyleProperty=new m.Property({name:"yearViewStyle",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onYearViewStylePropertyChanged(t,r)}});RadCalendar.monthNamesViewStyleProperty=new m.Property({name:"monthNamesViewStyle",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onMonthNamesViewStylePropertyChanged(t,r)}});RadCalendar.localeProperty.register(RadCalendar);RadCalendar.minDateProperty.register(RadCalendar);RadCalendar.maxDateProperty.register(RadCalendar);RadCalendar.selectedDateProperty.register(RadCalendar);RadCalendar.selectedDatesProperty.register(RadCalendar);RadCalendar.selectedDateRangeProperty.register(RadCalendar);RadCalendar.viewModeProperty.register(RadCalendar);RadCalendar.eventsViewModeProperty.register(RadCalendar);RadCalendar.selectionModeProperty.register(RadCalendar);RadCalendar.transitionModeProperty.register(RadCalendar);RadCalendar.displayedDateProperty.register(RadCalendar);RadCalendar.eventSourceProperty.register(RadCalendar);RadCalendar.horizontalTransitionProperty.register(RadCalendar);RadCalendar.monthViewStyleProperty.register(RadCalendar);RadCalendar.weekViewStyleProperty.register(RadCalendar);RadCalendar.yearViewStyleProperty.register(RadCalendar);RadCalendar.dayViewStyleProperty.register(RadCalendar);RadCalendar.monthNamesViewStyleProperty.register(RadCalendar)},function(e,t,r){"use strict";r.r(t);r.d(t,"isString",(function(){return isString}));r.d(t,"isNumber",(function(){return isNumber}));r.d(t,"isBoolean",(function(){return isBoolean}));r.d(t,"isFunction",(function(){return isFunction}));r.d(t,"isObject",(function(){return isObject}));r.d(t,"isUndefined",(function(){return isUndefined}));r.d(t,"isDefined",(function(){return isDefined}));r.d(t,"isNullOrUndefined",(function(){return isNullOrUndefined}));r.d(t,"verifyCallback",(function(){return verifyCallback}));r.d(t,"getClass",(function(){return getClass}));r.d(t,"getClassInfo",(function(){return getClassInfo}));r.d(t,"getBaseClasses",(function(){return getBaseClasses}));r.d(t,"ClassInfo",(function(){return ClassInfo}));r.d(t,"toUIString",(function(){return toUIString}));function isString(e){return"string"==typeof e||e instanceof String}function isNumber(e){return"number"==typeof e||e instanceof Number}function isBoolean(e){return"boolean"==typeof e||e instanceof Boolean}function isFunction(e){return!!e&&"function"==typeof e}function isObject(e){return!!e&&"object"==typeof e}function isUndefined(e){return void 0===e}function isDefined(e){return void 0!==e}function isNullOrUndefined(e){return null==e}function verifyCallback(e){if(e&&!isFunction(e))throw new TypeError("Callback must be a valid function.")}var n=new Map,i=/(?:function|class)\s+(\w+).*/;function getClass(e){return getClassInfo(e).name}function getClassInfo(e){var t=e.constructor,r=n.get(t);if(!r){r=new ClassInfo(t);n.set(t,r)}return r}function getBaseClasses(e){for(var t=[],r=getClassInfo(e);r;){t.push(r.name);r=r.baseClassInfo}return t}class ClassInfo{constructor(e){this._typeConstructor=e}get name(){if(!this._name)if(this._typeConstructor.name)this._name=this._typeConstructor.name;else{var e=i.exec(this._typeConstructor.toString());this._name=e&&e.length>1?e[1]:""}return this._name}get baseClassInfo(){if(isUndefined(this._baseClassInfo)){this._baseClassInfo=ClassInfo._getBase(this);this._baseClassInfo&&this._baseClassInfo.name===this.name&&(this._baseClassInfo=ClassInfo._getBase(this._baseClassInfo))}return this._baseClassInfo}static _getBase(e){var t=null,r=e._typeConstructor.prototype;r.__proto__&&(t=getClassInfo(r.__proto__));return t}}function toUIString(e){return isNullOrUndefined(e)?"":e+""}},function(e,t,r){"use strict";r.d(t,"b",(function(){return n}));r.d(t,"a",(function(){return i}));r.d(t,"d",(function(){return a}));r.d(t,"e",(function(){return o}));r.d(t,"g",(function(){return toString}));r.d(t,"f",(function(){return fromString}));r.d(t,"c",(function(){return GesturesObserverBase}));var n,i,a,o;!function(e){e[e.tap=1]="tap";e[e.doubleTap=2]="doubleTap";e[e.pinch=4]="pinch";e[e.pan=8]="pan";e[e.swipe=16]="swipe";e[e.rotation=32]="rotation";e[e.longPress=64]="longPress";e[e.touch=128]="touch"}(n||(n={}));!function(e){e[e.cancelled=0]="cancelled";e[e.began=1]="began";e[e.changed=2]="changed";e[e.ended=3]="ended"}(i||(i={}));!function(e){e[e.right=1]="right";e[e.left=2]="left";e[e.up=4]="up";e[e.down=8]="down"}(a||(a={}));!function(e){e.down="down";e.up="up";e.move="move";e.cancel="cancel"}(o||(o={}));function toString(e,t){var r=new Array;e&n.tap&&r.push("tap");e&n.doubleTap&&r.push("doubleTap");e&n.pinch&&r.push("pinch");e&n.pan&&r.push("pan");e&n.swipe&&r.push("swipe");e&n.rotation&&r.push("rotation");e&n.longPress&&r.push("longPress");e&n.touch&&r.push("touch");return r.join(t)}function fromString(e){var t=e.trim().toLowerCase();return"tap"===t?n.tap:"doubletap"===t?n.doubleTap:"pinch"===t?n.pinch:"pan"===t?n.pan:"swipe"===t?n.swipe:"rotation"===t?n.rotation:"longpress"===t?n.longPress:"touch"===t?n.touch:void 0}class GesturesObserverBase{constructor(e,t,r){this._target=e;this._callback=t;this._context=r}get callback(){return this._callback}get target(){return this._target}get context(){return this._context}disconnect(){if(this.target){var e=this.target.getGestureObservers(this.type);if(e&&e.length>0){for(var t=0;t=e.length){A>24;l[y]=V;l[V++]=y;for(;V=0&&l.splice(d,1);0===l.length&&delete this._observers[o]}}else{this._observers[o]=void 0;delete this._observers[o]}}}static on(e,t,r){this.addEventListener(e,t,r)}static once(e,t,r){if("string"!=typeof e)throw new TypeError("Event must be string.");if("function"!=typeof t)throw new TypeError("callback must be function.");var n="Observable"===this.name?"*":this.name;a[n]||(a[n]={});Array.isArray(a[n][e])||(a[n][e]=[]);a[n][e].push({callback:t,thisArg:r,once:!0})}static off(e,t,r){this.removeEventListener(e,t,r)}static removeEventListener(e,t,r){if("string"!=typeof e)throw new TypeError("Event must be string.");if(t&&"function"!=typeof t)throw new TypeError("callback must be function.");var n="Observable"===this.name?"*":this.name;if(a[n]&&Array.isArray(a[n][e])){var i=a[n][e];if(r){for(var o=0;o=0;r--){var n=e[r];n.once&&e.splice(r,1);n.thisArg?n.callback.apply(n.thisArg,[t]):n.callback(t)}}notifyPropertyChange(e,t,r){this.notify(this._createPropertyChangeData(e,t,r))}hasListeners(e){return e in this._observers}_createPropertyChangeData(e,t,r){return{eventName:Observable.propertyChangeEvent,object:this,propertyName:e,value:t,oldValue:r}}_emit(e){for(var t=e.split(","),r=0,n=t.length;r2&&void 0!==arguments[2]&&arguments[2];Object.keys(t).forEach(n=>{var i=t[n];!r||Array.isArray(i)||!i||"object"!=typeof i||i instanceof Observable||(i=fromObjectRecursive(i));defineNewProperty(e,n);e.set(n,i)})}function fromObject(e){var t=new ObservableFromObject;addPropertiesFromObject(t,e,!1);return t}function fromObjectRecursive(e){var t=new ObservableFromObject;addPropertiesFromObject(t,e,!0);return t}},function(e,t,r){"use strict";r.r(t);r.d(t,"getFileAccess",(function(){return getFileAccess}));r.d(t,"FileSystemEntity",(function(){return FileSystemEntity}));r.d(t,"File",(function(){return File}));r.d(t,"Folder",(function(){return Folder}));r.d(t,"knownFolders",(function(){return i}));r.d(t,"path",(function(){return a}));var n,i,a,o=r(122);function getFileAccess(){n||(n=new o.a);return n}function createFile(e){var t=new File;t._path=e.path;t._name=e.name;t._extension=e.extension;return t}function createFolder(e){var t=i.documents();if(e.path===t.path)return t;var r=i.temp();if(e.path===r.path)return r;var n=new Folder;n._path=e.path;n._name=e.name;return n}class FileSystemEntity{get parent(){var e=getFileAccess().getParent(this.path,(function onError(e){throw e}));if(e)return createFolder(e)}remove(){return new Promise((e,t)=>{var r=!1;this.removeSync((function localError(e){r=!0;t(e)}));r||e()})}removeSync(e){if(this._isKnown)e&&e({message:"Cannot delete known folder."});else{var t=getFileAccess();this instanceof File?t.deleteFile(this.path,e):this instanceof Folder&&t.deleteFolder(this.path,e)}}rename(e){return new Promise((t,r)=>{var n=!1;this.renameSync(e,(function localError(e){n=!0;r(e)}));n||t()})}renameSync(e,t){if(this._isKnown)t&&t(new Error("Cannot rename known folder."));else{var r=this.parent;if(r){var n=getFileAccess(),i=r.path,a=n.joinPath(i,e);n.rename(this.path,a,(function localError(e){t&&t(e);return null}));this._path=a;this._name=e;this instanceof File&&(this._extension=n.getFileExtension(a))}else t&&t(new Error("No parent folder."))}}get name(){return this._name}get path(){return this._path}get lastModified(){var e=this._lastModified;this._lastModified||(e=this._lastModified=getFileAccess().getLastModified(this.path));return e}}class File extends FileSystemEntity{static fromPath(e){var t=getFileAccess().getFile(e,(function onError(e){throw e}));if(t)return createFile(t)}static exists(e){return getFileAccess().fileExists(e)}get extension(){return this._extension}get isLocked(){return!!this._locked}get size(){return getFileAccess().getFileSize(this.path)}read(){return new Promise((e,t)=>{try{this.checkAccess()}catch(e){t(e);return}this._locked=!0;getFileAccess().readAsync(this.path).then(t=>{e(t);this._locked=!1},e=>{t(e);this._locked=!1})})}readSync(e){this.checkAccess();this._locked=!0;var t=this,r=getFileAccess().readSync(this.path,r=>{t._locked=!1;e&&e(r)});this._locked=!1;return r}write(e){return new Promise((t,r)=>{try{this.checkAccess()}catch(e){r(e);return}this._locked=!0;getFileAccess().writeAsync(this.path,e).then(()=>{t();this._locked=!1},e=>{r(e);this._locked=!1})})}writeSync(e,t){this.checkAccess();try{this._locked=!0;var r=this;getFileAccess().writeSync(this.path,e,(function localError(e){r._locked=!1;t&&t(e)}))}finally{this._locked=!1}}readText(e){return new Promise((t,r)=>{try{this.checkAccess()}catch(e){r(e);return}this._locked=!0;getFileAccess().readTextAsync(this.path,e).then(e=>{t(e);this._locked=!1},e=>{r(e);this._locked=!1})})}readTextSync(e,t){this.checkAccess();this._locked=!0;var r=this,n=getFileAccess().readTextSync(this.path,t=>{r._locked=!1;e&&e(t)},t);this._locked=!1;return n}writeText(e,t){return new Promise((r,n)=>{try{this.checkAccess()}catch(e){n(e);return}this._locked=!0;getFileAccess().writeTextAsync(this.path,e,t).then(()=>{r();this._locked=!1},e=>{n(e);this._locked=!1})})}writeTextSync(e,t,r){this.checkAccess();try{this._locked=!0;var n=this;getFileAccess().writeTextSync(this.path,e,(function localError(e){n._locked=!1;t&&t(e)}),r)}finally{this._locked=!1}}checkAccess(){if(this.isLocked)throw new Error("Cannot access a locked file.")}}class Folder extends FileSystemEntity{static fromPath(e){var t=getFileAccess().getFolder(e,(function onError(e){throw e}));if(t)return createFolder(t)}static exists(e){return getFileAccess().folderExists(e)}contains(e){var t=getFileAccess(),r=t.joinPath(this.path,e);return!!t.fileExists(r)||t.folderExists(r)}clear(){return new Promise((e,t)=>{var r=!1;this.clearSync((function onError(e){r=!0;t(e)}));r||e()})}clearSync(e){getFileAccess().emptyFolder(this.path,e)}get isKnown(){return this._isKnown}getFile(e){var t=getFileAccess(),r=t.joinPath(this.path,e),n=t.getFile(r,(function onError(e){throw e}));if(n)return createFile(n)}getFolder(e){var t=getFileAccess(),r=t.joinPath(this.path,e),n=t.getFolder(r,(function onError(e){throw e}));if(n)return createFolder(n)}getEntities(){return new Promise((e,t)=>{var r=!1,n=this.getEntitiesSync((function localError(e){r=!0;t(e)}));r||e(n)})}getEntitiesSync(e){var t=getFileAccess().getEntities(this.path,e);if(!t)return null;for(var r=new Array,n=0;n=600?"Tablet":"Phone"}return this._deviceType}get uuid(){if(!this._uuid){var e=n.android.nativeApp;this._uuid=android.provider.Settings.Secure.getString(e.getContentResolver(),android.provider.Settings.Secure.ANDROID_ID)}return this._uuid}get language(){this._language||(this._language=java.util.Locale.getDefault().getLanguage().replace("_","-"));return this._language}get region(){this._region||(this._region=java.util.Locale.getDefault().getCountry());return this._region}},l=!0,d=!1},function(e,t,r){"use strict";r.d(t,"a",(function(){return CSSType}));r.d(t,"i",(function(){return viewMatchesModuleContext}));r.d(t,"b",(function(){return PseudoClassHandler}));r.d(t,"c",(function(){return ViewCommon}));r.d(t,"d",(function(){return S}));r.d(t,"g",(function(){return b}));r.d(t,"h",(function(){return x}));r.d(t,"e",(function(){return T}));r.d(t,"f",(function(){return P}));var n,i=r(11),a=r(90),o=r(9),l=r(0),d=r(1),p=r(102),h=r(2),m=r(107),g=r(14),f=r(24),v=r(42),y=r(48),w=r(76);function CSSType(e){return t=>{t.prototype.cssType=e}}function viewMatchesModuleContext(e,t,r){return t&&e._moduleName&&t.type&&r.some(e=>e===t.type)&&t.path&&t.path.includes(e._moduleName)}function PseudoClassHandler(){for(var e=arguments.length,t=new Array(e),r=0;r":"+e),i=Symbol("listeners");return(e,t,r)=>{function update(e){var r=this[i]||0,n=r+e;r<=0&&n>0?this[t](!0):r>0&&n<=0&&this[t](!1)}n.forEach(t=>e[t]=update)}}var C=new Array;class ViewCommon extends i.a{constructor(){super(...arguments);this._gestureObservers={}}get css(){var e=this._styleScope;return e&&e.css}set css(e){this._updateStyleScope(void 0,void 0,e)}addCss(e){this._updateStyleScope(void 0,e)}addCssFile(e){this._updateStyleScope(e)}changeCssFile(e){var t=this._styleScope;if(t&&e){t.changeCssFile(e);this._onCssStateChange()}}_updateStyleScope(e,t,r){var n=this._styleScope;if(n){this.setScopeProperty(n,e,t,r);this._onCssStateChange()}else{n=new w.StyleScope;this.setScopeProperty(n,e,t,r);this._inheritStyleScope(n);this._isStyleScopeHost=!0}}setScopeProperty(e,t,r,n){void 0!==t?e.addCssFile(t):void 0!==r?e.addCss(r):void 0!==n&&(e.css=n)}_closeAllModalViewsInternal(){if(C&&C.length>0){C.forEach(e=>{e.closeModal()});return!0}return!1}_getRootModalViews(){return C}_onLivesync(e){d.a.isEnabled()&&d.a.write("".concat(this,"._onLivesync(").concat(JSON.stringify(e),")"),d.a.categories.Livesync);if(this._closeAllModalViewsInternal())return!0;if(this._handleLivesync(e))return!0;var t=!1;this.eachChildView(r=>{if(r._onLivesync(e)){t=!0;return!1}});return t}_handleLivesync(e){d.a.isEnabled()&&d.a.write("".concat(this,"._handleLivesync(").concat(JSON.stringify(e),")"),d.a.categories.Livesync);if(viewMatchesModuleContext(this,e,["style"])){d.a.isEnabled()&&d.a.write("Change Handled: Changing CSS for ".concat(this),d.a.categories.Livesync);var t="".concat(Object(y.a)(e.path),".css");this.changeCssFile(t);return!0}if(viewMatchesModuleContext(this,e,["markup","script"])&&this.page&&this.page.frame){d.a.isEnabled()&&d.a.write("Change Handled: Changing ".concat(e.type," for ").concat(this," inside ").concat(this.page),d.a.categories.Livesync);return this.page.frame._handleLivesync({type:e.type,path:this.page._moduleName})}return!1}_setupAsRootView(e){super._setupAsRootView(e);this._styleScope||this._updateStyleScope()}_observe(e,t,r){this._gestureObservers[e]||(this._gestureObservers[e]=[]);this._gestureObservers[e].push(Object(m.b)(this,e,t,r))}getGestureObservers(e){return this._gestureObservers[e]}addEventListener(e,t,r){if("string"==typeof e){e=Object(a.b)(e);var n=Object(g.f)(e);if(n&&!this._isEvent(e))this._observe(n,t,r);else{var i=e.split(",");if(i.length>0)for(var o=0;o0)for(var a=0;athis.cssClasses.add(e));e._modal=this;this._modalParent=e;this._modalContext=t.context;var n=this;this._closeModalCallback=function(){for(var r=arguments.length,i=new Array(r),a=0;a{"function"==typeof t.closeCallback&&t.closeCallback.apply(void 0,i)};n._hideNativeModalView(e,whenClosedCallback)}}}_raiseLayoutChangedEvent(){var e={eventName:ViewCommon.layoutChangedEvent,object:this};this.notify(e)}_raiseShownModallyEvent(){var e={eventName:ViewCommon.shownModallyEvent,object:this,context:this._modalContext,closeCallback:this._closeModalCallback};this.notify(e)}_raiseShowingModallyEvent(){var e={eventName:ViewCommon.showingModallyEvent,object:this,context:this._modalContext,closeCallback:this._closeModalCallback};this.notify(e)}_isEvent(e){return this.constructor&&"".concat(e,"Event")in this.constructor}_disconnectGestureObservers(e){var t=this.getGestureObservers(e);if(t)for(var r=0;r>o.n.MEASURED_HEIGHT_STATE_SHIFT&o.n.MEASURED_STATE_MASK>>o.n.MEASURED_HEIGHT_STATE_SHIFT}setMeasuredDimension(e,t){this._measuredWidth=e;this._measuredHeight=t;d.a.isEnabled()&&d.a.write(this+" :setMeasuredDimension: "+e+", "+t,d.a.categories.Layout)}requestLayout(){this._isLayoutValid=!1;super.requestLayout()}static resolveSizeAndState(e,t,r,n){return p.a.resolveSizeAndState(e,t,r,n)}static combineMeasuredStates(e,t){return p.a.combineMeasuredStates(e,t)}static layoutChild(e,t,r,n,i,a){p.a.layoutChild(e,t,r,n,i,a)}static measureChild(e,t,r,n){return p.a.measureChild(e,t,r,n)}_setCurrentMeasureSpecs(e,t){var r=this._currentWidthMeasureSpec!==e||this._currentHeightMeasureSpec!==t;this._currentWidthMeasureSpec=e;this._currentHeightMeasureSpec=t;return r}_getCurrentLayoutBounds(){return{left:0,top:0,right:0,bottom:0}}_setCurrentLayoutBounds(e,t,r,n){this._isLayoutValid=!0;var i=this._oldLeft!==e||this._oldTop!==t||this._oldRight!==r||this._oldBottom!==n,a=this._oldRight-this._oldLeft!=r-e||this._oldBottom-this._oldTop!=n-t;this._oldLeft=e;this._oldTop=t;this._oldRight=r;this._oldBottom=n;return{boundsChanged:i,sizeChanged:a}}eachChild(e){this.eachChildView(e)}eachChildView(e){}_getNativeViewsCount(){return this._isAddedToNativeVisualTree?1:0}_eachLayoutView(e){return e(this)}focus(){}getSafeAreaInsets(){return{left:0,top:0,right:0,bottom:0}}getLocationInWindow(){}getLocationOnScreen(){}getLocationRelativeTo(e){}getActualSize(){var e=this._getCurrentLayoutBounds();if(e)return{width:o.n.toDeviceIndependentPixels(e.right-e.left),height:o.n.toDeviceIndependentPixels(e.bottom-e.top)}}animate(e){return this.createAnimation(e).play()}createAnimation(e){!function ensureAnimationModule(){n||(n=r(78))}();this._localAnimations||(this._localAnimations=new Set);e.target=this;var t=new n.Animation([e]);this._localAnimations.add(t);return t}_removeAnimation(e){var t=this._localAnimations;if(t&&t.has(e)){t.delete(e);e.isPlaying&&e.cancel();return!0}return!1}resetNativeView(){this._localAnimations&&this._localAnimations.forEach(e=>this._removeAnimation(e));super.resetNativeView()}_setNativeViewFrame(e,t){}_getValue(){throw new Error("The View._getValue is obsolete. There is a new property system.")}_setValue(){throw new Error("The View._setValue is obsolete. There is a new property system.")}_updateEffectiveLayoutValues(e,t,r,n){var i=this.style,a=t===o.n.UNSPECIFIED?-1:e;this.effectiveWidth=h.PercentLength.toDevicePixels(i.width,-2,a);this.effectiveMarginLeft=h.PercentLength.toDevicePixels(i.marginLeft,0,a);this.effectiveMarginRight=h.PercentLength.toDevicePixels(i.marginRight,0,a);var l=n===o.n.UNSPECIFIED?-1:r;this.effectiveHeight=h.PercentLength.toDevicePixels(i.height,-2,l);this.effectiveMarginTop=h.PercentLength.toDevicePixels(i.marginTop,0,l);this.effectiveMarginBottom=h.PercentLength.toDevicePixels(i.marginBottom,0,l)}_setNativeClipToBounds(){}_redrawNativeBackground(e){}_onAttachedToWindow(){}_onDetachedFromWindow(){}_hasAncestorView(e){for(var t,r=this.parent;null!=r;r=r.parent)if(t=r,t===e)return!0;return!1}}ViewCommon.layoutChangedEvent="layoutChanged";ViewCommon.shownModallyEvent="shownModally";ViewCommon.showingModallyEvent="showingModally";var S=new l.Property({name:"automationText"});S.register(ViewCommon);var b=new l.Property({name:"originX",defaultValue:.5,valueConverter:e=>parseFloat(e)});b.register(ViewCommon);var x=new l.Property({name:"originY",defaultValue:.5,valueConverter:e=>parseFloat(e)});x.register(ViewCommon);var T=new l.Property({name:"isEnabled",defaultValue:!0,valueConverter:i.b,valueChanged(e,t,r){e._goToVisualState(r?"normal":"disabled")}});T.register(ViewCommon);var P=new l.Property({name:"isUserInteractionEnabled",defaultValue:!0,valueConverter:i.b});P.register(ViewCommon);var k=new l.Property({name:"iosOverflowSafeArea",defaultValue:!1,valueConverter:i.b});k.register(ViewCommon);var A=new l.InheritedProperty({name:"iosOverflowSafeAreaEnabled",defaultValue:!0,valueConverter:i.b});A.register(ViewCommon)},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";r.d(t,"a",(function(){return TextBaseCommon}));r.d(t,"d",(function(){return isBold}));r.d(t,"j",(function(){return d}));r.d(t,"b",(function(){return p}));r.d(t,"c",(function(){return getClosestPropertyValue}));r.d(t,"h",(function(){return m}));r.d(t,"k",(function(){return f}));r.d(t,"l",(function(){return y}));r.d(t,"i",(function(){return C}));r.d(t,"e",(function(){return S}));r.d(t,"f",(function(){return b}));r.d(t,"g",(function(){return x}));var n=r(118),i=r(5),a=r(0),o=r(7),l=r(16);class TextBaseCommon extends i.c{get nativeTextViewProtected(){return this.nativeViewProtected}get fontFamily(){return this.style.fontFamily}set fontFamily(e){this.style.fontFamily=e}get fontSize(){return this.style.fontSize}set fontSize(e){this.style.fontSize=e}get fontStyle(){return this.style.fontStyle}set fontStyle(e){this.style.fontStyle=e}get fontWeight(){return this.style.fontWeight}set fontWeight(e){this.style.fontWeight=e}get letterSpacing(){return this.style.letterSpacing}set letterSpacing(e){this.style.letterSpacing=e}get lineHeight(){return this.style.lineHeight}set lineHeight(e){this.style.lineHeight=e}get textAlignment(){return this.style.textAlignment}set textAlignment(e){this.style.textAlignment=e}get textDecoration(){return this.style.textDecoration}set textDecoration(e){this.style.textDecoration=e}get textTransform(){return this.style.textTransform}set textTransform(e){this.style.textTransform=e}get whiteSpace(){return this.style.whiteSpace}set whiteSpace(e){this.style.whiteSpace=e}get padding(){return this.style.padding}set padding(e){this.style.padding=e}get paddingTop(){return this.style.paddingTop}set paddingTop(e){this.style.paddingTop=e}get paddingRight(){return this.style.paddingRight}set paddingRight(e){this.style.paddingRight=e}get paddingBottom(){return this.style.paddingBottom}set paddingBottom(e){this.style.paddingBottom=e}get paddingLeft(){return this.style.paddingLeft}set paddingLeft(e){this.style.paddingLeft=e}_onFormattedTextContentsChanged(e){this.nativeViewProtected&&this[p.setNative](e.value)}_addChildFromBuilder(e,t){if("Span"===e)if(this.formattedText)this.formattedText.spans.push(t);else{var r=new n.a;r.spans.push(t);this.formattedText=r}else"formattedText"!==e&&"FormattedString"!==e||(this.formattedText=t)}_requestLayoutOnTextChanged(){this.requestLayout()}eachChild(e){var t=this.formattedText;t&&e(t)}_setNativeText(){}}TextBaseCommon.prototype._isSingleLine=!1;function isBold(e){return"bold"===e||"700"===e||"800"===e||"900"===e}var d=new a.Property({name:"text",defaultValue:"",affectsLayout:!0});d.register(TextBaseCommon);var p=new a.Property({name:"formattedText",affectsLayout:!0,valueChanged:function onFormattedTextPropertyChanged(e,t,r){if(t){t.off(l.a.propertyChangeEvent,e._onFormattedTextContentsChanged,e);e._removeView(t)}if(r){var n=r.parent;n&&n._removeView(r);e._addView(r);r.on(l.a.propertyChangeEvent,e._onFormattedTextContentsChanged,e)}}});p.register(TextBaseCommon);function getClosestPropertyValue(e,t){return e.isSet(t.style)?t.style[e.name]:e.isSet(t.parent.style)?t.parent.style[e.name]:e.isSet(t.parent.parent.style)?t.parent.parent.style[e.name]:void 0}var h=Object(a.makeParser)(Object(a.makeValidator)("initial","left","center","right")),m=new a.InheritedCssProperty({name:"textAlignment",cssName:"text-align",defaultValue:"initial",valueConverter:h});m.register(o.a);var g=Object(a.makeParser)(Object(a.makeValidator)("initial","none","capitalize","uppercase","lowercase")),f=new a.CssProperty({name:"textTransform",cssName:"text-transform",defaultValue:"initial",valueConverter:g});f.register(o.a);var v=Object(a.makeParser)(Object(a.makeValidator)("initial","normal","nowrap")),y=new a.CssProperty({name:"whiteSpace",cssName:"white-space",defaultValue:"initial",affectsLayout:!1,valueConverter:v});y.register(o.a);var w=Object(a.makeParser)(Object(a.makeValidator)("none","underline","line-through","underline line-through")),C=new a.CssProperty({name:"textDecoration",cssName:"text-decoration",defaultValue:"none",valueConverter:w});C.register(o.a);var S=new a.InheritedCssProperty({name:"letterSpacing",cssName:"letter-spacing",defaultValue:0,affectsLayout:!1,valueConverter:e=>parseFloat(e)});S.register(o.a);var b=new a.InheritedCssProperty({name:"lineHeight",cssName:"line-height",affectsLayout:!1,valueConverter:e=>parseFloat(e)});b.register(o.a);var x=Symbol("textPropertyDefault")},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return TextBase}));r.d(t,"e",(function(){return getTransformedText}));var n,i,a,o=r(21),l=r(27),d=r(2),p=r(4),h=r(99),m=r(9),g=r(13);r.d(t,"b",(function(){return o.a}));r.d(t,"c",(function(){return o.b}));r.d(t,"d",(function(){return o.c}));r.d(t,"f",(function(){return o.d}));r.d(t,"g",(function(){return o.e}));r.d(t,"h",(function(){return o.f}));r.d(t,"i",(function(){return o.g}));r.d(t,"j",(function(){return o.h}));r.d(t,"k",(function(){return o.i}));r.d(t,"l",(function(){return o.j}));r.d(t,"m",(function(){return o.k}));r.d(t,"n",(function(){return o.l}));class TextBase extends o.a{constructor(){super(...arguments);this._tappable=!1}initNativeView(){super.initNativeView();!function initializeTextTransformation(){if(!n){var t=function(t){__extends(TextTransformationImpl,t);function TextTransformationImpl(r){var n=t.call(this)||this;n.textBase=r;return e.__native(n)}TextTransformationImpl.prototype.getTransformation=function(e,t){var r=this.textBase.formattedText;if(r)return createSpannableStringBuilder(r,t.getTextSize());var n=this.textBase.text,i=Object(g.isNullOrUndefined)(n)?"":n.toString();return getTransformedText(i,this.textBase.textTransform)};TextTransformationImpl.prototype.onFocusChanged=function(e,t,r,n,i){};TextTransformationImpl=__decorate([Interfaces([android.text.method.TransformationMethod])],TextTransformationImpl);return TextTransformationImpl}(java.lang.Object);n=t}}();var t=this.nativeTextViewProtected;this._defaultTransformationMethod=t.getTransformationMethod();this._defaultMovementMethod=t.getMovementMethod();this._minHeight=t.getMinHeight();this._maxHeight=t.getMaxHeight();this._minLines=t.getMinLines();this._maxLines=t.getMaxLines()}resetNativeView(){super.resetNativeView();var e=this.nativeTextViewProtected;e.setSingleLine(this._isSingleLine);e.setTransformationMethod(this._defaultTransformationMethod);this._defaultTransformationMethod=null;if(void 0!==this._paintFlags){e.setPaintFlags(this._paintFlags);this._paintFlags=void 0}-1!==this._minLines?e.setMinLines(this._minLines):e.setMinHeight(this._minHeight);this._minHeight=this._minLines=void 0;-1!==this._maxLines?e.setMaxLines(this._maxLines):e.setMaxHeight(this._maxHeight);this._maxHeight=this._maxLines=void 0}[o.j.getDefault](){return o.g}[o.j.setNative](e){var t=e===o.g;if(t||!this.formattedText){this._setTappableState(!1);this._setNativeText(t)}}[o.b.setNative](e){var t=this.nativeTextViewProtected;e||t instanceof android.widget.Button&&t.getTransformationMethod()instanceof n&&t.setTransformationMethod(this._defaultTransformationMethod);if(!this.secure){var r=createSpannableStringBuilder(e,this.style.fontSize);t.setText(r);this._setTappableState(function isStringTappable(e){if(!e)return!1;for(var t=0,r=e.spans.length;t0&&void 0!==arguments[0]&&arguments[0];if(e)this.nativeTextViewProtected.setText(null);else{var t;if(this.formattedText)t=createSpannableStringBuilder(this.formattedText,this.style.fontSize);else{var r=this.text,n=null==r?"":r.toString();t=getTransformedText(n,this.textTransform)}this.nativeTextViewProtected.setText(t)}}_setTappableState(e){if(this._tappable!==e){this._tappable=e;if(this._tappable){this.nativeViewProtected.setMovementMethod(android.text.method.LinkMovementMethod.getInstance());this.nativeViewProtected.setHighlightColor(null)}else this.nativeViewProtected.setMovementMethod(this._defaultMovementMethod)}}}function getTransformedText(e,t){if(!e||!Object(g.isString)(e))return"";switch(t){case"uppercase":return e.toUpperCase();case"lowercase":return e.toLowerCase();case"capitalize":return function getCapitalizedString(e){for(var t=e.split(" "),r=[],n=0,i=t.length;n0){r.insert(i,h);setSpanModifiers(r,l,i,i+a,t);i+=a}}return r}function setSpanModifiers(t,r,n,p,g){var f=r.style,v=Object(o.d)(f.fontWeight),y="italic"===f.fontStyle,w=f.verticalAlignment;v&&y?t.setSpan(new android.text.style.StyleSpan(android.graphics.Typeface.BOLD_ITALIC),n,p,android.text.Spanned.SPAN_EXCLUSIVE_EXCLUSIVE):v?t.setSpan(new android.text.style.StyleSpan(android.graphics.Typeface.BOLD),n,p,android.text.Spanned.SPAN_EXCLUSIVE_EXCLUSIVE):y&&t.setSpan(new android.text.style.StyleSpan(android.graphics.Typeface.ITALIC),n,p,android.text.Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);var C=r.fontFamily;if(C){var S=new l.a(C,0,y?"italic":"normal",v?"bold":"normal"),b=S.getAndroidTypeface()||android.graphics.Typeface.create(C,0),x=new org.nativescript.widgets.CustomTypefaceSpan(C,b);t.setSpan(x,n,p,android.text.Spanned.SPAN_EXCLUSIVE_EXCLUSIVE)}var T=r.fontSize;T&&t.setSpan(new android.text.style.AbsoluteSizeSpan(T*m.n.getDisplayDensity()),n,p,android.text.Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);var P=r.color;P&&t.setSpan(new android.text.style.ForegroundColorSpan(P.android),n,p,android.text.Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);var k=Object(o.c)(d.backgroundColorProperty,r);k&&t.setSpan(new android.text.style.BackgroundColorSpan(k.android),n,p,android.text.Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);var A=Object(o.c)(o.i,r);if(A){var E=-1!==A.indexOf("underline");E&&t.setSpan(new android.text.style.UnderlineSpan,n,p,android.text.Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);var I=-1!==A.indexOf("line-through");I&&t.setSpan(new android.text.style.StrikethroughSpan,n,p,android.text.Spanned.SPAN_EXCLUSIVE_EXCLUSIVE)}if(w){!function initializeBaselineAdjustedSpan(){if(!a){var e=function(e){__extends(BaselineAdjustedSpanImpl,e);function BaselineAdjustedSpanImpl(t,r){var n=e.call(this)||this;n.align="baseline";n.align=r;n.fontSize=t;return n}BaselineAdjustedSpanImpl.prototype.updateDrawState=function(e){this.updateState(e)};BaselineAdjustedSpanImpl.prototype.updateMeasureState=function(e){this.updateState(e)};BaselineAdjustedSpanImpl.prototype.updateState=function(e){var t=e.getFontMetrics();if(this.align&&!["baseline","stretch"].includes(this.align))return"top"===this.align?e.baselineShift=-this.fontSize-t.bottom-t.top:"bottom"===this.align?e.baselineShift=t.bottom:"text-top"===this.align?e.baselineShift=-this.fontSize-t.descent-t.ascent:"text-bottom"===this.align?e.baselineShift=t.bottom-t.descent:"middle"===this.align?e.baselineShift=(t.descent-t.ascent)/2-t.descent:"super"===this.align?e.baselineShift=.4*-this.fontSize:"sub"===this.align?e.baselineShift=.4*(t.descent-t.ascent):void 0};return BaselineAdjustedSpanImpl}(android.text.style.MetricAffectingSpan);a=e}}();t.setSpan(new a(g*m.n.getDisplayDensity(),w),n,p,android.text.Spanned.SPAN_EXCLUSIVE_EXCLUSIVE)}var V=r.tappable;if(V){!function initializeClickableSpan(){if(!i){var t=function(t){__extends(ClickableSpanImpl,t);function ClickableSpanImpl(r){var n=t.call(this)||this;n.owner=new WeakRef(r);return e.__native(n)}ClickableSpanImpl.prototype.onClick=function(e){var t=this.owner.get();t&&t._emit(h.a.linkTapEvent);e.clearFocus();e.invalidate()};ClickableSpanImpl.prototype.updateDrawState=function(e){};return ClickableSpanImpl}(android.text.style.ClickableSpan);i=t}}();t.setSpan(new i(r),n,p,android.text.Spanned.SPAN_EXCLUSIVE_EXCLUSIVE)}}}).call(this,r(20))},function(e,t,r){"use strict";r.d(t,"a",(function(){return ChangeType}));r.d(t,"b",(function(){return ObservableArray}));var n=r(16),i=r(13);class ChangeType{}ChangeType.Add="add";ChangeType.Delete="delete";ChangeType.Update="update";ChangeType.Splice="splice";ChangeType.Change="change";class ObservableArray extends n.a{constructor(e){super();1===arguments.length&&Array.isArray(arguments[0])?this._array=arguments[0].slice():this._array=Array.apply(null,arguments);this._addArgs={eventName:"change",object:this,action:ChangeType.Add,index:null,removed:new Array,addedCount:1};this._deleteArgs={eventName:"change",object:this,action:ChangeType.Delete,index:null,removed:null,addedCount:0}}getItem(e){return this._array[e]}setItem(e,t){var r=this._array[e];this._array[e]=t;this.notify({eventName:"change",object:this,action:ChangeType.Update,index:e,removed:[r],addedCount:1})}get length(){return this._array.length}set length(e){if(i.isNumber(e)&&this._array&&this._array.length!==e){for(var t=[],r=this._array.length;r2?r-2:0),i=2;i0?1:0)),0),removed:o,addedCount:this._array.length+o.length-a});this._array.length!==a&&this._notifyLengthChange();return o}unshift(){for(var e=arguments.length,t=new Array(e),r=0;r=0;n--)if(this._array[n]===e)return n;return-1}every(e,t){return this._array.every(e,t)}some(e,t){return this._array.some(e,t)}forEach(e,t){this._array.forEach(e,t)}map(e,t){return this._array.map(e,t)}filter(e,t){return this._array.filter(e,t)}reduce(e,t){return void 0!==t?this._array.reduce(e,t):this._array.reduce(e)}reduceRight(e,t){return void 0!==t?this._array.reduceRight(e,t):this._array.reduceRight(e)}}ObservableArray.changeEvent="change"},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n,i=[];!function(e){e.CLASS_PREFIX="ns-";e.MODAL_ROOT_VIEW_CSS_CLASS="".concat(e.CLASS_PREFIX).concat("modal");e.ROOT_VIEW_CSS_CLASS="".concat(e.CLASS_PREFIX).concat("root");e.getSystemCssClasses=function getSystemCssClasses(){return i};function pushToSystemCssClasses(e){i.push(e);return i.length}e.pushToSystemCssClasses=pushToSystemCssClasses;function removeSystemCssClass(e){var t,r=i.indexOf(e);r>-1&&(t=i.splice(r,1));return t}e.removeSystemCssClass=removeSystemCssClass;e.getModalRootViewCssClass=function getModalRootViewCssClass(){return e.MODAL_ROOT_VIEW_CSS_CLASS};e.getRootViewCssClasses=function getRootViewCssClasses(){return[e.ROOT_VIEW_CSS_CLASS,...i]};e.pushToRootViewCssClasses=function pushToRootViewCssClasses(e){return pushToSystemCssClasses(e)+1};e.removeFromRootViewCssClasses=function removeFromRootViewCssClasses(e){return removeSystemCssClass(e)}}(n||(n={}))},function(e,t,r){"use strict";r.d(t,"b",(function(){return GC}));r.d(t,"y",(function(){return releaseNativeObject}));r.d(t,"x",(function(){return openUrl}));r.d(t,"w",(function(){return openFile}));r.d(t,"r",(function(){return isRealDevice}));var n=r(40),i=r(18),a=r(122),o=r(1);r.d(t,"e",(function(){return n.a}));r.d(t,"m",(function(){return n.b}));var l=r(9);r.d(t,"a",(function(){return l.a}));r.d(t,"c",(function(){return l.b}));r.d(t,"f",(function(){return l.c}));r.d(t,"g",(function(){return l.d}));r.d(t,"h",(function(){return l.e}));r.d(t,"i",(function(){return l.f}));r.d(t,"j",(function(){return l.g}));r.d(t,"k",(function(){return l.h}));r.d(t,"l",(function(){return l.i}));r.d(t,"n",(function(){return l.j}));r.d(t,"o",(function(){return l.k}));r.d(t,"p",(function(){return l.l}));r.d(t,"q",(function(){return l.m}));r.d(t,"s",(function(){return l.n}));r.d(t,"t",(function(){return l.o}));r.d(t,"u",(function(){return l.p}));r.d(t,"v",(function(){return l.q}));var d=r(50);r.d(t,"d",(function(){return d.Source}));function GC(){gc()}function releaseNativeObject(e){__releaseNativeCounterpart(e)}function openUrl(e){var t=n.a.getApplicationContext();try{var r=new android.content.Intent(android.content.Intent.ACTION_VIEW,android.net.Uri.parse(e.trim()));r.addFlags(android.content.Intent.FLAG_ACTIVITY_NEW_TASK);t.startActivity(r)}catch(e){o.a.write("Error in OpenURL",o.a.categories.Error,o.a.messageType.error);return!1}return!0}function openFile(e){var t=n.a.getApplicationContext();try{if(!function isExternalStorageAvailable(){var e=android.os.Environment.getExternalStorageState();return android.os.Environment.MEDIA_MOUNTED===e}()){o.a.write("\nExternal storage is unavailable (please check app permissions).\nApplications cannot access internal storage of other application on Android (see: https://developer.android.com/guide/topics/data/data-storage).\n",o.a.categories.Error,o.a.messageType.error);return!1}if(function isExternalStorageReadOnly(){var e=android.os.Environment.getExternalStorageState();return android.os.Environment.MEDIA_MOUNTED_READ_ONLY===e}()){o.a.write("External storage is read only",o.a.categories.Error,o.a.messageType.error);return!1}var r=function getMimeTypeNameFromExtension(e){var t=android.webkit.MimeTypeMap.getSingleton(),r=(new a.a).getFileExtension(e).replace(".","").toLowerCase();return t.getMimeTypeFromExtension(r)}(e),l=new android.content.Intent(android.content.Intent.ACTION_VIEW),d=android.content.Intent.createChooser(l,"Open File...");l.addFlags(android.content.Intent.FLAG_ACTIVITY_NEW_TASK);d.addFlags(android.content.Intent.FLAG_ACTIVITY_NEW_TASK);var p=parseInt(i.a.sdkVersion,10);if(p&&p<24){o.a.write("detected sdk version ".concat(p," (< ").concat(24,"), using simple openFile"),o.a.categories.Debug);l.setDataAndType(android.net.Uri.fromFile(new java.io.File(e)),r);t.startActivity(d);return!0}o.a.write("detected sdk version ".concat(p," (>= ").concat(24,"), using URI openFile"),o.a.categories.Debug);var h="".concat(t.getPackageName(),".provider");o.a.write("fully-qualified provider name [".concat(h,"]"),o.a.categories.Debug);var m=androidx.core.content.FileProvider.getUriForFile(t,h,new java.io.File(e));l.addFlags(android.content.Intent.FLAG_GRANT_READ_URI_PERMISSION);d.addFlags(android.content.Intent.FLAG_GRANT_READ_URI_PERMISSION);l.setDataAndType(m,r);t.startActivity(d);return!0}catch(e){var g=e.message?": ".concat(e.message):"";o.a.write("Error in openFile".concat(g),o.a.categories.Error,o.a.messageType.error);g&&g.includes("Attempt to invoke virtual method")&&g.includes("android.content.pm.ProviderInfo.loadXmlMetaData")&&g.includes("on a null object reference")&&o.a.write("\nPlease ensure you have your manifest correctly configured with the FileProvider.\n(see: https://developer.android.com/reference/android/support/v4/content/FileProvider#ProviderDefinition)\n",o.a.categories.Error);return!1}}function isRealDevice(){return n.a.isRealDevice()}},function(e,t,r){"use strict";r.d(t,"a",(function(){return layout_base_LayoutBase}));var n=r(5),i=r(11),a=r(0);class layout_base_common_LayoutBaseCommon extends n.b{constructor(){super(...arguments);this._subViews=new Array}_addChildFromBuilder(e,t){t instanceof n.c&&this.addChild(t)}getChildrenCount(){return this._subViews.length}get _childrenCount(){return this._subViews.length}getChildAt(e){return this._subViews[e]}getChildIndex(e){return this._subViews.indexOf(e)}getChildById(e){return Object(i.e)(this,e)}_registerLayoutChild(e){}_unregisterLayoutChild(e){}addChild(e){this._subViews.push(e);this._addView(e);this._registerLayoutChild(e)}insertChild(e,t){this._subViews.splice(t,0,e);this._addView(e,t);this._registerLayoutChild(e)}removeChild(e){this._removeView(e);var t=this._subViews.indexOf(e);this._subViews.splice(t,1);this._unregisterLayoutChild(e)}removeChildren(){for(;0!==this.getChildrenCount();)this.removeChild(this._subViews[this.getChildrenCount()-1])}get padding(){return this.style.padding}set padding(e){this.style.padding=e}get paddingTop(){return this.style.paddingTop}set paddingTop(e){this.style.paddingTop=e}get paddingRight(){return this.style.paddingRight}set paddingRight(e){this.style.paddingRight=e}get paddingBottom(){return this.style.paddingBottom}set paddingBottom(e){this.style.paddingBottom=e}get paddingLeft(){return this.style.paddingLeft}set paddingLeft(e){this.style.paddingLeft=e}_childIndexToNativeChildIndex(e){if(void 0!==e){for(var t=0,r=0;r{r._eachLayoutView(r=>{t&&!t.isCollapsed&&e(t,!1);t=r});return!0});t&&!t.isCollapsed&&e(t,!0)}}var o=new a.Property({name:"clipToBounds",defaultValue:!0,valueConverter:i.b});o.register(layout_base_common_LayoutBaseCommon);var l=new a.Property({name:"isPassThroughParentEnabled",defaultValue:!1,valueConverter:i.b});l.register(layout_base_common_LayoutBaseCommon);var d=r(2);class layout_base_LayoutBase extends layout_base_common_LayoutBaseCommon{[o.getDefault](){return!0}[o.setNative](e){console.warn("clipToBounds with value false is not supported on Android. You can use this.android.getParent().setClipChildren(false) as an alternative")}[l.setNative](e){this.nativeViewProtected.setPassThroughParent(e)}[d.paddingTopProperty.getDefault](){return{value:this._defaultPaddingTop,unit:"px"}}[d.paddingTopProperty.setNative](e){org.nativescript.widgets.ViewHelper.setPaddingTop(this.nativeViewProtected,d.Length.toDevicePixels(e,0)+d.Length.toDevicePixels(this.style.borderTopWidth,0))}[d.paddingRightProperty.getDefault](){return{value:this._defaultPaddingRight,unit:"px"}}[d.paddingRightProperty.setNative](e){org.nativescript.widgets.ViewHelper.setPaddingRight(this.nativeViewProtected,d.Length.toDevicePixels(e,0)+d.Length.toDevicePixels(this.style.borderRightWidth,0))}[d.paddingBottomProperty.getDefault](){return{value:this._defaultPaddingBottom,unit:"px"}}[d.paddingBottomProperty.setNative](e){org.nativescript.widgets.ViewHelper.setPaddingBottom(this.nativeViewProtected,d.Length.toDevicePixels(e,0)+d.Length.toDevicePixels(this.style.borderBottomWidth,0))}[d.paddingLeftProperty.getDefault](){return{value:this._defaultPaddingLeft,unit:"px"}}[d.paddingLeftProperty.setNative](e){org.nativescript.widgets.ViewHelper.setPaddingLeft(this.nativeViewProtected,d.Length.toDevicePixels(e,0)+d.Length.toDevicePixels(this.style.borderLeftWidth,0))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return Font}));var n,i=r(46),a=r(1),o=r(8),l=r(17),d=new Map;class Font extends i.a{constructor(e,t,r,n){super(e,t,r,n)}withFontFamily(e){return new Font(e,this.fontSize,this.fontStyle,this.fontWeight)}withFontStyle(e){return new Font(this.fontFamily,this.fontSize,e,this.fontWeight)}withFontWeight(e){return new Font(this.fontFamily,this.fontSize,this.fontStyle,e)}withFontSize(e){return new Font(this.fontFamily,e,this.fontStyle,this.fontWeight)}getAndroidTypeface(){this._typeface||(this._typeface=function createTypeface(e){var t=0;e.isBold&&(t|=android.graphics.Typeface.BOLD);e.isItalic&&(t|=android.graphics.Typeface.ITALIC);for(var r=Object(i.f)(e.fontFamily),n=null,a=0;a=16?"-thin":"";case i.c.EXTRA_LIGHT:case i.c.LIGHT:return android.os.Build.VERSION.SDK_INT>=16?"-light":"";case i.c.NORMAL:case"400":case void 0:case null:return"";case i.c.MEDIUM:case i.c.SEMI_BOLD:return android.os.Build.VERSION.SDK_INT>=21?"-medium":"";case i.c.BOLD:case"700":case i.c.EXTRA_BOLD:return"";case i.c.BLACK:return android.os.Build.VERSION.SDK_INT>=21?"-black":"";default:throw new Error('Invalid font weight: "'.concat(e,'"'))}}},function(e,t,r){"use strict";r.d(t,"e",(function(){return isPostLollipop}));r.d(t,"f",(function(){return isPostLollipopMR1}));r.d(t,"g",(function(){return isPostMarshmallow}));r.d(t,"b",(function(){return createStateListAnimator}));r.d(t,"c",(function(){return getAttrColor}));r.d(t,"a",(function(){return createRippleDrawable}));r.d(t,"d",(function(){return getLayout}));r(4);var n,i,a,o=r(3);function isPostLollipop(){void 0===n&&(n=android.os.Build.VERSION.SDK_INT>=21);return n}function isPostLollipopMR1(){void 0===i&&(i=android.os.Build.VERSION.SDK_INT>=22);return i}function isPostMarshmallow(){void 0===a&&(a=android.os.Build.VERSION.SDK_INT>=23);return a}var l={get selected(){return 16842913},get hovered(){return 16843623},get focused(){return 16842908},get enabled(){return 16842910},get pressed(){return 16842919},get window_focused(){return 16842909},get checked(){return 16842912}};function createStateListAnimator(e,t){var r=android.animation.ObjectAnimator,n=android.animation.AnimatorSet,i=t.getContext().getResources().getInteger(17694720)/2,a=e.elevation;null==a&&(a=e.getDefaultElevation());a=o.Utils.layout.toDevicePixels(a);var l=e.dynamicElevationOffset;null==l&&(l=e.getDefaultDynamicElevationOffset());l=o.Utils.layout.toDevicePixels(l);var d=new n;d.playTogether(java.util.Arrays.asList([r.ofFloat(t,"translationZ",[l]).setDuration(i),r.ofFloat(t,"elevation",[a]).setDuration(0)]));var p=new n;p.playTogether(java.util.Arrays.asList([r.ofFloat(t,"translationZ",[0]).setDuration(i),r.ofFloat(t,"elevation",[a]).setDuration(0)]));var h=new n;h.playTogether(java.util.Arrays.asList([r.ofFloat(t,"translationZ",[0]).setDuration(0),r.ofFloat(t,"elevation",[0]).setDuration(0)]));var m=new android.animation.StateListAnimator;m.addState([16842919,16842910],d);m.addState([16842910],p);m.addState([],h);t.setStateListAnimator(m)}function getAttrColor(e,t){var r=e.obtainStyledAttributes([o.Utils.android.resources.getId(":attr/"+t)]),n=r.getColor(0,0);r.recycle();return n}function createForegroundShape(e){var t=Array.create("float",8);java.util.Arrays.fill(t,e);var r=new android.graphics.drawable.shapes.RoundRectShape(t,null,null),n=new android.graphics.drawable.ShapeDrawable(r);return n}function createRippleDrawable(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=createForegroundShape(n);if(isPostLollipopMR1())r=new android.graphics.drawable.RippleDrawable(android.content.res.ColorStateList.valueOf(t),null,i);else{r=new android.graphics.drawable.StateListDrawable;i.getPaint().setColor(t);r.addState([l.pressed],i)}r.rippleShape=i;return r}function getLayout(e){if(!e)return 0;var t=o.Application.android.context;return t.getResources().getIdentifier(e,"layout",t.getPackageName())}},function(e,t,r){"use strict";r.r(t);r.d(t,"isFileOrResourcePath",(function(){return l.k}));r.d(t,"ImageSource",(function(){return image_source_ImageSource}));r.d(t,"fromAsset",(function(){return fromAsset}));r.d(t,"fromResource",(function(){return fromResource}));r.d(t,"fromFile",(function(){return fromFile}));r.d(t,"fromData",(function(){return fromData}));r.d(t,"fromFontIconCode",(function(){return fromFontIconCode}));r.d(t,"fromBase64",(function(){return fromBase64}));r.d(t,"fromNativeSource",(function(){return fromNativeSource}));r.d(t,"fromUrl",(function(){return fromUrl}));r.d(t,"fromFileOrResource",(function(){return fromFileOrResource}));var n,i,a,o=r(17),l=r(9),d=r(8),p=r(27);function getApplication(){i||(i=Object(d.getNativeApplication)());return i}class image_source_ImageSource{constructor(e){e&&this.setNativeSource(e)}get height(){return this.android?this.android.getHeight():NaN}get width(){return this.android?this.android.getWidth():NaN}get rotationAngle(){return this._rotationAngle}set rotationAngle(e){this._rotationAngle=e}static fromAsset(e){return new Promise((t,r)=>{e.getImageAsync((e,n)=>{e?t(new image_source_ImageSource(e)):r(n)})})}static fromUrl(e){!function ensureHttp(){n||(n=r(96))}();return n.getImage(e)}static fromResourceSync(e){var t=function getResources(){a||(a=getApplication().getResources());return a}();if(t){var r=t.getIdentifier(e,"drawable",getApplication().getPackageName());if(0{t(image_source_ImageSource.fromResourceSync(e))})}static fromFileSync(e){var t="string"==typeof e?e.trim():"";0===t.indexOf("~/")&&(t=o.path.join(o.knownFolders.currentApp().path,t.replace("~/","")));var r=android.graphics.BitmapFactory.decodeFile(t,null);if(r){var n=new image_source_ImageSource(r);n.rotationAngle=function getRotationAngleFromFile(e){var t=0,r=new android.media.ExifInterface(e),n=r.getAttributeInt(android.media.ExifInterface.TAG_ORIENTATION,android.media.ExifInterface.ORIENTATION_NORMAL);switch(n){case android.media.ExifInterface.ORIENTATION_ROTATE_90:t=90;break;case android.media.ExifInterface.ORIENTATION_ROTATE_180:t=180;break;case android.media.ExifInterface.ORIENTATION_ROTATE_270:t=270}return t}(t);return n}return null}static fromFile(e){return new Promise((t,r)=>{t(image_source_ImageSource.fromFileSync(e))})}static fromFileOrResourceSync(e){if(!Object(l.k)(e))throw new Error("".concat(e," is not a valid file or resource."));return 0===e.indexOf(l.b)?image_source_ImageSource.fromResourceSync(e.substr(l.b.length)):image_source_ImageSource.fromFileSync(e)}static fromDataSync(e){var t=android.graphics.BitmapFactory.decodeStream(e);return t?new image_source_ImageSource(t):null}static fromData(e){return new Promise((t,r)=>{t(image_source_ImageSource.fromDataSync(e))})}static fromBase64Sync(e){var t;if("string"==typeof e){var r=android.util.Base64.decode(e,android.util.Base64.DEFAULT);t=android.graphics.BitmapFactory.decodeByteArray(r,0,r.length)}return t?new image_source_ImageSource(t):null}static fromBase64(e){return new Promise((t,r)=>{t(image_source_ImageSource.fromBase64Sync(e))})}static fromFontIconCodeSync(e,t,r){t=t||p.a.default;var n=new android.graphics.Paint;n.setTypeface(t.getAndroidTypeface());n.setAntiAlias(!0);r&&n.setColor(r.android);var i=l.n.toDevicePixels(t.fontSize);i||(i=n.getTextSize());var a=l.n.getDisplayDensity(),o=i*a;n.setTextSize(o);var d=new android.graphics.Rect;n.getTextBounds(e,0,e.length,d);var h=d.width(),m=d.height();if(h>0&&m>0){var g=android.graphics.Bitmap.createBitmap(h,m,android.graphics.Bitmap.Config.ARGB_8888),f=new android.graphics.Canvas(g);f.drawText(e,-d.left,-d.top,n);return new image_source_ImageSource(g)}return null}fromAsset(e){console.log("fromAsset() is deprecated. Use ImageSource.fromAsset() instead.");return image_source_ImageSource.fromAsset(e).then(e=>{this.setNativeSource(e.android);return this})}loadFromResource(e){console.log("fromResource() and loadFromResource() are deprecated. Use ImageSource.fromResource[Sync]() instead.");var t=image_source_ImageSource.fromResourceSync(e);this.android=t?t.android:null;return!!this.android}fromResource(e){return new Promise((t,r)=>{t(this.loadFromResource(e))})}loadFromFile(e){console.log("fromFile() and loadFromFile() are deprecated. Use ImageSource.fromFile[Sync]() instead.");var t=image_source_ImageSource.fromFileSync(e);this.android=t?t.android:null;return!!this.android}fromFile(e){return new Promise((t,r)=>{t(this.loadFromFile(e))})}loadFromData(e){console.log("fromData() and loadFromData() are deprecated. Use ImageSource.fromData[Sync]() instead.");var t=image_source_ImageSource.fromDataSync(e);this.android=t?t.android:null;return!!this.android}fromData(e){return new Promise((t,r)=>{t(this.loadFromData(e))})}loadFromBase64(e){console.log("fromBase64() and loadFromBase64() are deprecated. Use ImageSource.fromBase64[Sync]() instead.");var t=image_source_ImageSource.fromBase64Sync(e);this.android=t?t.android:null;return!!this.android}fromBase64(e){return new Promise((t,r)=>{t(this.loadFromBase64(e))})}loadFromFontIconCode(e,t,r){console.log("loadFromFontIconCode() is deprecated. Use ImageSource.fromFontIconCodeSync() instead.");var n=image_source_ImageSource.fromFontIconCodeSync(e,t,r);this.android=n?n.android:null;return!!this.android}setNativeSource(e){if(e&&!(e instanceof android.graphics.Bitmap))throw new Error("The method setNativeSource() expects android.graphics.Bitmap instance.");this.android=e}saveToFile(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;if(!this.android)return!1;var n=getTargetFormat(t),i=new java.io.BufferedOutputStream(new java.io.FileOutputStream(e)),a=this.android.compress(n,r,i);i.close();return a}toBase64String(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;if(!this.android)return null;var r=getTargetFormat(e),n=new java.io.ByteArrayOutputStream,i=new android.util.Base64OutputStream(n,android.util.Base64.NO_WRAP);this.android.compress(r,t,i);i.close();n.close();return n.toString()}resize(e,t){var r=function getScaledDimensions(e,t,r){return t>=e?t<=r?{width:e,height:t}:{width:Math.round(r*e/t),height:r}:e<=r?{width:e,height:t}:{width:r,height:Math.round(r*t/e)}}(this.android.getWidth(),this.android.getHeight(),e),n=android.graphics.Bitmap.createScaledBitmap(this.android,r.width,r.height,t&&t.filter);return new image_source_ImageSource(n)}}function getTargetFormat(e){switch(e){case"jpeg":case"jpg":return android.graphics.Bitmap.CompressFormat.JPEG;default:return android.graphics.Bitmap.CompressFormat.PNG}}function fromAsset(e){console.log("fromAsset() is deprecated. Use ImageSource.fromAsset() instead.");return image_source_ImageSource.fromAsset(e)}function fromResource(e){console.log("fromResource() is deprecated. Use ImageSource.fromResourceSync() instead.");return image_source_ImageSource.fromResourceSync(e)}function fromFile(e){console.log("fromFile() is deprecated. Use ImageSource.fromFileSync() instead.");return image_source_ImageSource.fromFileSync(e)}function fromData(e){console.log("fromData() is deprecated. Use ImageSource.fromDataSync() instead.");return image_source_ImageSource.fromDataSync(e)}function fromFontIconCode(e,t,r){console.log("fromFontIconCode() is deprecated. Use ImageSource.fromFontIconCodeSync() instead.");return image_source_ImageSource.fromFontIconCodeSync(e,t,r)}function fromBase64(e){console.log("fromBase64() is deprecated. Use ImageSource.fromBase64Sync() instead.");return image_source_ImageSource.fromBase64Sync(e)}function fromNativeSource(e){console.log("fromNativeSource() is deprecated. Use ImageSource constructor instead.");return new image_source_ImageSource(e)}function fromUrl(e){console.log("fromUrl() is deprecated. Use ImageSource.fromUrl() instead.");return image_source_ImageSource.fromUrl(e)}function fromFileOrResource(e){console.log("fromFileOrResource() is deprecated. Use ImageSource.fromFileOrResourceSync() instead.");return image_source_ImageSource.fromFileOrResourceSync(e)}},function(e,t,r){"use strict";r.d(t,"a",(function(){return normalizeComponent}));function normalizeComponent(e,t,r,n,i,a,o,l){var d,p="function"==typeof e?e.options:e;if(t){p.render=t;p.staticRenderFns=r;p._compiled=!0}n&&(p.functional=!0);a&&(p._scopeId="data-v-"+a);if(o){d=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext;e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__);i&&i.call(this,e);e&&e._registeredComponents&&e._registeredComponents.add(o)};p._ssrRegister=d}else i&&(d=l?function(){i.call(this,(p.functional?this.parent:this).$root.$options.shadowRoot)}:i);if(d)if(p.functional){p._injectStyles=d;var h=p.render;p.render=function renderWithStyleInjection(e,t){d.call(t);return h(e,t)}}else{var m=p.beforeCreate;p.beforeCreate=m?[].concat(m,d):[d]}return{exports:e,options:p}}},function(e,t,r){"use strict";(function(e){r.d(t,"b",(function(){return v}));r.d(t,"c",(function(){return m}));var n="undefined"!=typeof window?window:void 0!==e?e:{},i=n.__VUE_DEVTOOLS_GLOBAL_HOOK__;function deepCopy(e,t){void 0===t&&(t=[]);if(null===e||"object"!=typeof e)return e;var r=function find(e,t){return e.filter(t)[0]}(t,(function(t){return t.original===e}));if(r)return r.copy;var n=Array.isArray(e)?[]:{};t.push({original:e,copy:n});Object.keys(e).forEach((function(r){n[r]=deepCopy(e[r],t)}));return n}function forEachValue(e,t){Object.keys(e).forEach((function(r){return t(e[r],r)}))}function isObject(e){return null!==e&&"object"==typeof e}var a=function Module(e,t){this.runtime=t;this._children=Object.create(null);this._rawModule=e;var r=e.state;this.state=("function"==typeof r?r():r)||{}},o={namespaced:{configurable:!0}};o.namespaced.get=function(){return!!this._rawModule.namespaced};a.prototype.addChild=function addChild(e,t){this._children[e]=t};a.prototype.removeChild=function removeChild(e){delete this._children[e]};a.prototype.getChild=function getChild(e){return this._children[e]};a.prototype.hasChild=function hasChild(e){return e in this._children};a.prototype.update=function update(e){this._rawModule.namespaced=e.namespaced;e.actions&&(this._rawModule.actions=e.actions);e.mutations&&(this._rawModule.mutations=e.mutations);e.getters&&(this._rawModule.getters=e.getters)};a.prototype.forEachChild=function forEachChild(e){forEachValue(this._children,e)};a.prototype.forEachGetter=function forEachGetter(e){this._rawModule.getters&&forEachValue(this._rawModule.getters,e)};a.prototype.forEachAction=function forEachAction(e){this._rawModule.actions&&forEachValue(this._rawModule.actions,e)};a.prototype.forEachMutation=function forEachMutation(e){this._rawModule.mutations&&forEachValue(this._rawModule.mutations,e)};Object.defineProperties(a.prototype,o);var l=function ModuleCollection(e){this.register([],e,!1)};l.prototype.get=function get(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)};l.prototype.getNamespace=function getNamespace(e){var t=this.root;return e.reduce((function(e,r){t=t.getChild(r);return e+(t.namespaced?r+"/":"")}),"")};l.prototype.update=function update$1(e){!function update(e,t,r){0;t.update(r);if(r.modules)for(var n in r.modules){if(!t.getChild(n)){0;return}update(e.concat(n),t.getChild(n),r.modules[n])}}([],this.root,e)};l.prototype.register=function register(e,t,r){var n=this;void 0===r&&(r=!0);0;var i=new a(t,r);if(0===e.length)this.root=i;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],i)}t.modules&&forEachValue(t.modules,(function(t,i){n.register(e.concat(i),t,r)}))};l.prototype.unregister=function unregister(e){var t=this.get(e.slice(0,-1)),r=e[e.length-1],n=t.getChild(r);n&&n.runtime&&t.removeChild(r)};l.prototype.isRegistered=function isRegistered(e){var t=this.get(e.slice(0,-1)),r=e[e.length-1];return t.hasChild(r)};var d;var p=function Store(e){var t=this;void 0===e&&(e={});!d&&"undefined"!=typeof window&&window.Vue&&install(window.Vue);0;var r=e.plugins;void 0===r&&(r=[]);var n=e.strict;void 0===n&&(n=!1);this._committing=!1;this._actions=Object.create(null);this._actionSubscribers=[];this._mutations=Object.create(null);this._wrappedGetters=Object.create(null);this._modules=new l(e);this._modulesNamespaceMap=Object.create(null);this._subscribers=[];this._watcherVM=new d;this._makeLocalGettersCache=Object.create(null);var a=this,o=this.dispatch,p=this.commit;this.dispatch=function boundDispatch(e,t){return o.call(a,e,t)};this.commit=function boundCommit(e,t,r){return p.call(a,e,t,r)};this.strict=n;var h=this._modules.root.state;installModule(this,h,[],this._modules.root);resetStoreVM(this,h);r.forEach((function(e){return e(t)}));var m=void 0!==e.devtools?e.devtools:d.config.devtools;m&&function devtoolPlugin(e){if(i){e._devtoolHook=i;i.emit("vuex:init",e);i.on("vuex:travel-to-state",(function(t){e.replaceState(t)}));e.subscribe((function(e,t){i.emit("vuex:mutation",e,t)}),{prepend:!0});e.subscribeAction((function(e,t){i.emit("vuex:action",e,t)}),{prepend:!0})}}(this)},h={state:{configurable:!0}};h.state.get=function(){return this._vm._data.$$state};h.state.set=function(e){0};p.prototype.commit=function commit(e,t,r){var n=this,i=unifyObjectStyle(e,t,r),a=i.type,o=i.payload,l=(i.options,{type:a,payload:o}),d=this._mutations[a];if(d){this._withCommit((function(){d.forEach((function commitIterator(e){e(o)}))}));this._subscribers.slice().forEach((function(e){return e(l,n.state)}));0}else 0};p.prototype.dispatch=function dispatch(e,t){var r=this,n=unifyObjectStyle(e,t),i=n.type,a=n.payload,o={type:i,payload:a},l=this._actions[i];if(l){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(o,r.state)}))}catch(e){0}var d=l.length>1?Promise.all(l.map((function(e){return e(a)}))):l[0](a);return new Promise((function(e,t){d.then((function(t){try{r._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(o,r.state)}))}catch(e){0}e(t)}),(function(e){try{r._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(o,r.state,e)}))}catch(e){0}t(e)}))}))}0};p.prototype.subscribe=function subscribe(e,t){return genericSubscribe(e,this._subscribers,t)};p.prototype.subscribeAction=function subscribeAction(e,t){var r="function"==typeof e?{before:e}:e;return genericSubscribe(r,this._actionSubscribers,t)};p.prototype.watch=function watch(e,t,r){var n=this;0;return this._watcherVM.$watch((function(){return e(n.state,n.getters)}),t,r)};p.prototype.replaceState=function replaceState(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))};p.prototype.registerModule=function registerModule(e,t,r){void 0===r&&(r={});"string"==typeof e&&(e=[e]);0;this._modules.register(e,t);installModule(this,this.state,e,this._modules.get(e),r.preserveState);resetStoreVM(this,this.state)};p.prototype.unregisterModule=function unregisterModule(e){var t=this;"string"==typeof e&&(e=[e]);0;this._modules.unregister(e);this._withCommit((function(){var r=getNestedState(t.state,e.slice(0,-1));d.delete(r,e[e.length-1])}));resetStore(this)};p.prototype.hasModule=function hasModule(e){"string"==typeof e&&(e=[e]);0;return this._modules.isRegistered(e)};p.prototype.hotUpdate=function hotUpdate(e){this._modules.update(e);resetStore(this,!0)};p.prototype._withCommit=function _withCommit(e){var t=this._committing;this._committing=!0;e();this._committing=t};Object.defineProperties(p.prototype,h);function genericSubscribe(e,t,r){t.indexOf(e)<0&&(r&&r.prepend?t.unshift(e):t.push(e));return function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}}function resetStore(e,t){e._actions=Object.create(null);e._mutations=Object.create(null);e._wrappedGetters=Object.create(null);e._modulesNamespaceMap=Object.create(null);var r=e.state;installModule(e,r,[],e._modules.root,!0);resetStoreVM(e,r,t)}function resetStoreVM(e,t,r){var n=e._vm;e.getters={};e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,a={};forEachValue(i,(function(t,r){a[r]=function partial(e,t){return function(){return e(t)}}(t,e);Object.defineProperty(e.getters,r,{get:function get(){return e._vm[r]},enumerable:!0})}));var o=d.config.silent;d.config.silent=!0;e._vm=new d({data:{$$state:t},computed:a});d.config.silent=o;e.strict&&function enableStrictMode(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(e);if(n){r&&e._withCommit((function(){n._data.$$state=null}));d.nextTick((function(){return n.$destroy()}))}}function installModule(e,t,r,n,i){var a=!r.length,o=e._modules.getNamespace(r);if(n.namespaced){e._modulesNamespaceMap[o],0;e._modulesNamespaceMap[o]=n}if(!a&&!i){var l=getNestedState(t,r.slice(0,-1)),p=r[r.length-1];e._withCommit((function(){0;d.set(l,p,n.state)}))}var h=n.context=function makeLocalContext(e,t,r){var n=""===t,i={dispatch:n?e.dispatch:function(r,n,i){var a=unifyObjectStyle(r,n,i),o=a.payload,l=a.options,d=a.type;if(!l||!l.root){d=t+d;0}return e.dispatch(d,o)},commit:n?e.commit:function(r,n,i){var a=unifyObjectStyle(r,n,i),o=a.payload,l=a.options,d=a.type;if(!l||!l.root){d=t+d;0}e.commit(d,o,l)}};Object.defineProperties(i,{getters:{get:n?function(){return e.getters}:function(){return function makeLocalGetters(e,t){if(!e._makeLocalGettersCache[t]){var r={},n=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,n)===t){var a=i.slice(n);Object.defineProperty(r,a,{get:function get(){return e.getters[i]},enumerable:!0})}}));e._makeLocalGettersCache[t]=r}return e._makeLocalGettersCache[t]}(e,t)}},state:{get:function get(){return getNestedState(e.state,r)}}});return i}(e,o,r);n.forEachMutation((function(t,r){var n=o+r;!function registerMutation(e,t,r,n){var i=e._mutations[t]||(e._mutations[t]=[]);i.push((function wrappedMutationHandler(t){r.call(e,n.state,t)}))}(e,n,t,h)}));n.forEachAction((function(t,r){var n=t.root?r:o+r,i=t.handler||t;!function registerAction(e,t,r,n){var i=e._actions[t]||(e._actions[t]=[]);i.push((function wrappedActionHandler(t){var i=r.call(e,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:e.getters,rootState:e.state},t);(function isPromise(e){return e&&"function"==typeof e.then})(i)||(i=Promise.resolve(i));return e._devtoolHook?i.catch((function(t){e._devtoolHook.emit("vuex:error",t);throw t})):i}))}(e,n,i,h)}));n.forEachGetter((function(t,r){var n=o+r;!function registerGetter(e,t,r,n){if(e._wrappedGetters[t]){0;return}e._wrappedGetters[t]=function wrappedGetter(e){return r(n.state,n.getters,e.state,e.getters)}}(e,n,t,h)}));n.forEachChild((function(n,a){installModule(e,t,r.concat(a),n,i)}))}function getNestedState(e,t){return t.reduce((function(e,t){return e[t]}),e)}function unifyObjectStyle(e,t,r){if(isObject(e)&&e.type){r=t;t=e;e=e.type}0;return{type:e,payload:t,options:r}}function install(e){if(d&&e===d)0;else{d=e;!function applyMixin(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:vuexInit});else{var r=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={});e.init=e.init?[vuexInit].concat(e.init):vuexInit;r.call(this,e)}}function vuexInit(){var e=this.$options;e.store?this.$store="function"==typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}(d)}}var m=normalizeNamespace((function(e,t){var r={};0;normalizeMap(t).forEach((function(t){var n=t.key,i=t.val;r[n]=function mappedState(){var t=this.$store.state,r=this.$store.getters;if(e){var n=getModuleByNamespace(this.$store,"mapState",e);if(!n)return;t=n.context.state;r=n.context.getters}return"function"==typeof i?i.call(this,t,r):t[i]};r[n].vuex=!0}));return r})),g=normalizeNamespace((function(e,t){var r={};0;normalizeMap(t).forEach((function(t){var n=t.key,i=t.val;r[n]=function mappedMutation(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var n=this.$store.commit;if(e){var a=getModuleByNamespace(this.$store,"mapMutations",e);if(!a)return;n=a.context.commit}return"function"==typeof i?i.apply(this,[n].concat(t)):n.apply(this.$store,[i].concat(t))}}));return r})),f=normalizeNamespace((function(e,t){var r={};0;normalizeMap(t).forEach((function(t){var n=t.key,i=t.val;i=e+i;r[n]=function mappedGetter(){if(!e||getModuleByNamespace(this.$store,"mapGetters",e)){0;return this.$store.getters[i]}};r[n].vuex=!0}));return r})),v=normalizeNamespace((function(e,t){var r={};0;normalizeMap(t).forEach((function(t){var n=t.key,i=t.val;r[n]=function mappedAction(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var n=this.$store.dispatch;if(e){var a=getModuleByNamespace(this.$store,"mapActions",e);if(!a)return;n=a.context.dispatch}return"function"==typeof i?i.apply(this,[n].concat(t)):n.apply(this.$store,[i].concat(t))}}));return r}));function normalizeMap(e){return function isValidMap(e){return Array.isArray(e)||isObject(e)}(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function normalizeNamespace(e){return function(t,r){if("string"!=typeof t){r=t;t=""}else"/"!==t.charAt(t.length-1)&&(t+="/");return e(t,r)}}function getModuleByNamespace(e,t,r){var n=e._modulesNamespaceMap[r];0;return n}function startMessage(e,t,r){var n=r?e.groupCollapsed:e.group;try{n.call(e,t)}catch(r){e.log(t)}}function endMessage(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function getFormattedTime(){var e=new Date;return" @ "+pad(e.getHours(),2)+":"+pad(e.getMinutes(),2)+":"+pad(e.getSeconds(),2)+"."+pad(e.getMilliseconds(),3)}function pad(e,t){return function repeat(e,t){return new Array(t+1).join(e)}("0",t-e.toString().length)+e}var y={Store:p,install:install,version:"3.5.1",mapState:m,mapMutations:g,mapGetters:f,mapActions:v,createNamespacedHelpers:function createNamespacedHelpers(e){return{mapState:m.bind(null,e),mapGetters:f.bind(null,e),mapMutations:g.bind(null,e),mapActions:v.bind(null,e)}},createLogger:function createLogger(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var r=e.filter;void 0===r&&(r=function filter(e,t,r){return!0});var n=e.transformer;void 0===n&&(n=function transformer(e){return e});var i=e.mutationTransformer;void 0===i&&(i=function mutationTransformer(e){return e});var a=e.actionFilter;void 0===a&&(a=function actionFilter(e,t){return!0});var o=e.actionTransformer;void 0===o&&(o=function actionTransformer(e){return e});var l=e.logMutations;void 0===l&&(l=!0);var d=e.logActions;void 0===d&&(d=!0);var p=e.logger;void 0===p&&(p=console);return function(e){var h=deepCopy(e.state);if(void 0!==p){l&&e.subscribe((function(e,a){var o=deepCopy(a);if(r(e,h,o)){var l=getFormattedTime(),d=i(e),m="mutation "+e.type+l;startMessage(p,m,t);p.log("%c prev state","color: #9E9E9E; font-weight: bold",n(h));p.log("%c mutation","color: #03A9F4; font-weight: bold",d);p.log("%c next state","color: #4CAF50; font-weight: bold",n(o));endMessage(p)}h=o}));d&&e.subscribeAction((function(e,r){if(a(e,r)){var n=getFormattedTime(),i=o(e),l="action "+e.type+n;startMessage(p,l,t);p.log("%c action","color: #03A9F4; font-weight: bold",i);endMessage(p)}}))}}}};t.a=y}).call(this,r(20))},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));r.d(t,"b",(function(){return Transition}));var n,i=r(78),a=r(49),o=Object(a.a)(()=>new android.view.animation.AccelerateDecelerateInterpolator);!function(e){e.enter="enter";e.exit="exit";e.popEnter="popEnter";e.popExit="popExit"}(n||(n={}));var l=0;class Transition{constructor(e,t){this._duration=e;this._interpolator=t?Object(i._resolveAnimationCurve)(t):o();this._id=l++}getDuration(){return this._duration}getCurve(){return this._interpolator}animateIOSTransition(e,t,r,n,i){throw new Error("Abstract method call")}createAndroidAnimator(e){throw new Error("Abstract method call")}toString(){return"Transition@".concat(this._id)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));r.d(t,"g",(function(){return i}));r.d(t,"b",(function(){return a}));r.d(t,"d",(function(){return getCurrentPage}));r.d(t,"c",(function(){return getButtonColors}));r.d(t,"e",(function(){return getLabelColor}));r.d(t,"f",(function(){return getTextFieldColor}));r.d(t,"h",(function(){return isDialogOptions}));r.d(t,"i",(function(){return parseLoginOptions}));var n,i,a,o,l,d,p=r(41),h=r(13);!function(e){e.STRING="string";e.PROMPT="Prompt";e.CONFIRM="Confirm";e.ALERT="Alert";e.LOGIN="Login";e.OK="OK";e.CANCEL="Cancel"}(n||(n={}));!function(e){e.text="text";e.password="password";e.email="email";e.number="number";e.decimal="decimal";e.phone="phone"}(i||(i={}));!function(e){e.none="none";e.all="all";e.sentences="sentences";e.words="words"}(a||(a={}));function getCurrentPage(){var e=p.Frame.topmost();if(e)return e.currentPage}function applySelectors(e,t){var r=getCurrentPage();if(r){var n=r._styleScope;if(n){e._inheritStyleScope(n);e.onLoaded();t(e);e.onUnloaded()}}}function getButtonColors(){if(!o){var e=r(95).Button;o=new e;0}var t,n;applySelectors(o,e=>{t=e.color;n=e.backgroundColor});return{color:t,backgroundColor:n}}function getLabelColor(){if(!l){var e=r(53).Label;l=new e;0}var t;applySelectors(l,e=>{t=e.color});return t}function getTextFieldColor(){if(!d){var e=r(135).TextField;d=new e;0}var t;applySelectors(d,e=>{t=e.color});return t}function isDialogOptions(e){return e&&(e.message||e.title)}function parseLoginOptions(e){if(1===e.length&&Object(h.isObject)(e[0]))return e[0];var t={title:n.LOGIN,okButtonText:n.OK,cancelButtonText:n.CANCEL};Object(h.isString)(e[0])&&(t.message=e[0]);Object(h.isString)(e[1])&&(t.userNameHint=e[1]);Object(h.isString)(e[2])&&(t.passwordHint=e[2]);Object(h.isString)(e[3])&&(t.userName=e[3]);Object(h.isString)(e[4])&&(t.password=e[4]);return t}},function(e,t,r){"use strict";r.d(t,"k",(function(){return m}));r.d(t,"b",(function(){return g}));r.d(t,"a",(function(){return f}));r.d(t,"l",(function(){return traceMissingIcon}));r.d(t,"f",(function(){return v}));r.d(t,"e",(function(){return y}));r.d(t,"c",(function(){return C}));r.d(t,"j",(function(){return x}));r.d(t,"i",(function(){return T}));r.d(t,"h",(function(){return P}));r.d(t,"g",(function(){return k}));r.d(t,"d",(function(){return A}));var n,i=r(5),a=r(19),o=r(11),l=r(7),d=r(4),p=r(0),h=r(1),m="TabView",g=class TabViewItemBase extends o.a{constructor(){super(...arguments);this._title=""}get textTransform(){return this.style.textTransform}set textTransform(e){this.style.textTransform=e}_addChildFromBuilder(e,t){t instanceof i.c&&(this.view=t)}get title(){return this._title}set title(e){if(this._title!==e){this._title=e;this._update()}}get view(){return this._view}set view(e){if(this._view!==e){if(this._view)throw new Error("Changing the view of an already loaded TabViewItem is not currently supported.");this._view=e;this._addView(e)}}get iconSource(){return this._iconSource}set iconSource(e){if(this._iconSource!==e){this._iconSource=e;this._update()}}eachChild(e){var t=this._view;t&&e(t)}loadView(e){var t=this.parent;t&&t.items&&this.canBeLoaded&&super.loadView(e)}};g=__decorate([Object(a.a)("TabViewItem")],g);var f=n=class TabViewBase extends i.c{get androidSelectedTabHighlightColor(){return this.style.androidSelectedTabHighlightColor}set androidSelectedTabHighlightColor(e){this.style.androidSelectedTabHighlightColor=e}get tabTextFontSize(){return this.style.tabTextFontSize}set tabTextFontSize(e){this.style.tabTextFontSize=e}get tabTextColor(){return this.style.tabTextColor}set tabTextColor(e){this.style.tabTextColor=e}get tabBackgroundColor(){return this.style.tabBackgroundColor}set tabBackgroundColor(e){this.style.tabBackgroundColor=e}get selectedTabTextColor(){return this.style.selectedTabTextColor}set selectedTabTextColor(e){this.style.selectedTabTextColor=e}_addArrayFromBuilder(e,t){"items"===e&&(this.items=t)}_addChildFromBuilder(e,t){if(t instanceof g){this.items||(this.items=new Array);this.items.push(t);this._addView(t);v.coerce(this)}}get _selectedView(){var e=this.selectedIndex;return e>-1?this.items[e].view:null}get _childrenCount(){var e=this.items;return e?e.length:0}eachChild(e){var t=this.items;t&&t.forEach((t,r)=>{e(t)})}eachChildView(e){var t=this.items;t&&t.forEach((t,r)=>{e(t.view)})}onItemsChanged(e,t){e&&e.forEach(e=>this._removeView(e));t&&t.forEach(e=>{if(!e.view)throw new Error("TabViewItem must have a view.");this._addView(e)})}onSelectedIndexChanged(e,t){this.notify({eventName:n.selectedIndexChangedEvent,object:this,oldIndex:e,newIndex:t})}};f.selectedIndexChangedEvent="selectedIndexChanged";f=n=__decorate([Object(a.a)("TabView")],f);function traceMissingIcon(e){h.a.write("Could not load tab bar icon: "+e,h.a.categories.Error,h.a.messageType.error)}var v=new p.CoercibleProperty({name:"selectedIndex",defaultValue:-1,affectsLayout:!1,valueChanged:(e,t,r)=>{e.onSelectedIndexChanged(t,r)},coerceValue:(e,t)=>{var r=e.items;if(r){var n=r.length-1;t<0&&(t=0);t>n&&(t=n)}else t=-1;return t},valueConverter:e=>parseInt(e)});v.register(f);var y=new p.Property({name:"items",valueChanged:(e,t,r)=>{e.onItemsChanged(t,r)}});y.register(f);var w=new p.Property({name:"iosIconRenderingMode",defaultValue:"automatic"});w.register(f);var C=new p.Property({name:"androidOffscreenTabLimit",defaultValue:1,affectsLayout:!1,valueConverter:e=>parseInt(e)});C.register(f);var S=new p.Property({name:"androidTabsPosition",defaultValue:"top"});S.register(f);var b=new p.Property({name:"androidSwipeEnabled",defaultValue:!0,valueConverter:o.b});b.register(f);var x=new p.CssProperty({name:"tabTextFontSize",cssName:"tab-text-font-size",valueConverter:e=>parseFloat(e)});x.register(l.a);var T=new p.CssProperty({name:"tabTextColor",cssName:"tab-text-color",equalityComparer:d.a.equals,valueConverter:e=>new d.a(e)});T.register(l.a);var P=new p.CssProperty({name:"tabBackgroundColor",cssName:"tab-background-color",equalityComparer:d.a.equals,valueConverter:e=>new d.a(e)});P.register(l.a);var k=new p.CssProperty({name:"selectedTabTextColor",cssName:"selected-tab-text-color",equalityComparer:d.a.equals,valueConverter:e=>new d.a(e)});k.register(l.a);var A=new p.CssProperty({name:"androidSelectedTabHighlightColor",cssName:"android-selected-tab-highlight-color",equalityComparer:d.a.equals,valueConverter:e=>new d.a(e)});A.register(l.a)},function(e,t,r){"use strict";r.d(t,"c",(function(){return h}));r.d(t,"d",(function(){return m}));r.d(t,"f",(function(){return g}));r.d(t,"g",(function(){return f}));r.d(t,"h",(function(){return v}));r.d(t,"i",(function(){return y}));r.d(t,"k",(function(){return w}));r.d(t,"l",(function(){return C}));r.d(t,"j",(function(){return i}));r.d(t,"b",(function(){return DrawerStateChangingEventArgs}));r.d(t,"a",(function(){return DrawerStateChangedEventArgs}));r.d(t,"e",(function(){return S}));var n,i,a=r(5),o=r(0),l=r(11),d=r(4),p=r(19),h="fadetransition",m="pushtransition",g="revealtransition",f="reverseslideouttransition",v="scaledownpushertransition",y="scaleuptransition",w="slidealongtransition",C="slideinontoptransition";!function(e){e.Left="Left";e.Right="Right";e.Top="Top";e.Bottom="Bottom"}(i||(i={}));class DrawerStateChangingEventArgs{}class DrawerStateChangedEventArgs{}var S=n=class RadSideDrawer extends a.a{constructor(){super(...arguments);this.shadowColor=n.shadowColorProperty.defaultValue}onGesturesEnabledPropertyChanged(e,t){this._onGesturesEnabledChanged(e,t)}onAllowEdgeSwipePropertyChanged(e,t){this._onAllowEdgeSwipeChanged(e,t)}onDrawerTransitionChanged(e,t){this._onDrawerTransitionChanged(e,t)}onDrawerContentSizeChanged(e,t){this._onDrawerContentSizeChanged(e,t)}onDrawerLocationPropertyChanged(e,t){this._onDrawerLocationChanged(e,t)}onShadowColorPropertyChanged(e,t){this._onShadowColorChanged(e,t)}_onMainContentPropertyChanged(e,t){this._onMainContentChanged(e,t)}_onDrawerContentPropertyChanged(e,t){this._onDrawerContentChanged(e,t)}_onMainContentChanged(e,t){e&&this._removeView(e);t&&this._addView(t)}_onDrawerContentChanged(e,t){e&&this._removeView(e);t&&this._addView(t)}_onDrawerLocationChanged(e,t){}_onShadowColorChanged(e,t){}_onDrawerTransitionChanged(e,t){}_onDrawerContentSizeChanged(e,t){}_onGesturesEnabledChanged(e,t){}_onAllowEdgeSwipeChanged(e,t){}showDrawer(){}closeDrawer(){}getIsOpen(){var e=!1,t=!1;this.android&&(e=this.android.getIsOpen());this.ios&&(t=this.ios.defaultSideDrawer.isVisible);var r=e||t;return r||!1}get _isRootView(){return!this.page}toggleDrawerState(){this.getIsOpen()?this.closeDrawer():this.showDrawer()}get _childrenCount(){var e=0;this.drawerContent&&e++;this.mainContent&&e++;return e}eachChildView(e){var t=this.mainContent;t&&e(t);var r=this.drawerContent;r&&e(r)}};S.drawerOpeningEvent="drawerOpening";S.drawerOpenedEvent="drawerOpened";S.drawerClosingEvent="drawerClosing";S.drawerClosedEvent="drawerClosed";S.drawerPanEvent="drawerPan";S.gesturesEnabledProperty=new o.Property({name:"gesturesEnabled",defaultValue:!0,valueConverter:l.b,valueChanged:(e,t,r)=>{e.onGesturesEnabledPropertyChanged(t,r)}});S.allowEdgeSwipeProperty=new o.Property({name:"allowEdgeSwipe",defaultValue:!0,valueConverter:l.b,valueChanged:(e,t,r)=>{e.onAllowEdgeSwipePropertyChanged(t,r)}});S.drawerTransitionProperty=new o.Property({name:"drawerTransition",defaultValue:void 0,valueChanged:(e,t,r)=>{e.onDrawerTransitionChanged(t,r)}});S.drawerContentSizeProperty=new o.Property({name:"drawerContentSize",defaultValue:280,valueConverter:parseInt,valueChanged:(e,t,r)=>{e.onDrawerContentSizeChanged(t,r)}});S.drawerLocationProperty=new o.Property({name:"drawerLocation",defaultValue:i.Left,valueConverter:e=>i[e],valueChanged:(e,t,r)=>{e.onDrawerLocationPropertyChanged(t,r)}});S.shadowColorProperty=new o.Property({name:"shadowColor",defaultValue:new d.a("#000000"),valueConverter:e=>new d.a(e),valueChanged:(e,t,r)=>{e.onShadowColorPropertyChanged(t,r)}});S.mainContentProperty=new o.Property({name:"mainContent",defaultValue:void 0,valueChanged:(e,t,r)=>{e._onMainContentPropertyChanged(t,r)}});S.drawerContentProperty=new o.Property({name:"drawerContent",defaultValue:void 0,valueChanged:(e,t,r)=>{e._onDrawerContentPropertyChanged(t,r)}});S=n=__decorate([Object(p.a)("RadSideDrawer")],S);S.gesturesEnabledProperty.register(S);S.allowEdgeSwipeProperty.register(S);S.drawerTransitionProperty.register(S);S.drawerContentSizeProperty.register(S);S.drawerLocationProperty.register(S);S.shadowColorProperty.register(S);S.mainContentProperty.register(S);S.drawerContentProperty.register(S)},function(e,t,r){"use strict";r.d(t,"a",(function(){return TabNavigationBase}));r.d(t,"b",(function(){return getIconSpecSize}));r.d(t,"d",(function(){return l}));r.d(t,"c",(function(){return d}));r.d(t,"e",(function(){return p}));var n=r(5),i=r(0),a=r(98),o=r(77);class TabNavigationBase extends n.c{_addArrayFromBuilder(e,t){"items"===e&&(this.items=t)}_addChildFromBuilder(e,t){if(t instanceof a.a){this.items||(this.items=new Array);this.items.push(t);this._addView(t)}else t instanceof o.a&&(this.tabStrip=t)}get _selectedView(){var e=this.selectedIndex;return e>-1?this.items[e].content:null}get _childrenCount(){var e=this.items;return e?e.length:0}eachChild(e){var t=this.items;t&&t.forEach((t,r)=>{e(t)});var r=this.tabStrip;r&&e(r)}eachChildView(e){var t=this.items;t&&t.forEach((t,r)=>{e(t.content)})}onItemsChanged(e,t){e&&e.forEach(e=>this._removeView(e));t&&t.forEach(e=>{if(!e.content)throw new Error("TabContentItem must have a content (view).");this._addView(e)})}onTabStripChanged(e,t){e&&e.parent&&this._removeView(e);t&&this._addView(t)}onSelectedIndexChanged(e,t){this.notify({eventName:TabNavigationBase.selectedIndexChangedEvent,object:this,oldIndex:e,newIndex:t})}getTabBarBackgroundColor(){return null}getTabBarBackgroundArgbColor(){var e=this.getTabBarBackgroundColor();return e&&e.getColor&&e.getColor()}setTabBarBackgroundColor(e){}getTabBarFontInternal(){return null}setTabBarFontInternal(e){}getTabBarTextTransform(){return null}setTabBarTextTransform(e){}getTabBarHighlightColor(){}setTabBarHighlightColor(e){}getTabBarSelectedItemColor(){return null}setTabBarSelectedItemColor(e){}getTabBarUnSelectedItemColor(){return null}setTabBarUnSelectedItemColor(e){}getTabBarColor(){return null}setTabBarColor(e){}setTabBarItemTitle(e,t){}getTabBarItemBackgroundColor(e){return null}setTabBarItemBackgroundColor(e,t){}getTabBarItemColor(e){return null}setTabBarItemColor(e,t){}setTabBarIconColor(e,t){}setTabBarIconSource(e,t){}getTabBarItemFontSize(e){return null}setTabBarItemFontSize(e,t){}getTabBarItemFontInternal(e){return null}setTabBarItemFontInternal(e,t){}getTabBarItemTextTransform(e){return null}setTabBarItemTextTransform(e,t){}}TabNavigationBase.selectedIndexChangedEvent="selectedIndexChanged";function getIconSpecSize(e){var t=e.width,r=e.height,n=0,i=0;if(t28){i=28;n=28*t/r}}else{i=24;n=24*t/r;if(n>31){n=31;i=31*r/t}}return{width:n,height:i}}var l=new i.CoercibleProperty({name:"selectedIndex",defaultValue:-1,affectsLayout:!1,valueChanged:(e,t,r)=>{e.onSelectedIndexChanged(t,r)},coerceValue:(e,t)=>{var r=e.items;if(r){var n=r.length-1;t<0&&(t=0);t>n&&(t=n)}else t=-1;return t},valueConverter:e=>parseInt(e)});l.register(TabNavigationBase);new Array;var d=new i.Property({name:"items",valueChanged:(e,t,r)=>{e.onItemsChanged(t,r)}});d.register(TabNavigationBase);var p=new i.Property({name:"tabStrip",valueChanged:(e,t,r)=>{e.onTabStripChanged(t,r)}});p.register(TabNavigationBase)},function(e,t,r){"use strict";r.d(t,"a",(function(){return addWeakEventListener}));r.d(t,"b",(function(){return removeWeakEventListener}));var n=new Map,i=new WeakMap;class TargetHandlerPair{constructor(e,t){this.tagetRef=new WeakRef(e);this.handler=t}}function validateArgs(e,t,r,n){if(!e)throw new Error("source is null or undefined");if(!n)throw new Error("target is null or undefined");if("string"!=typeof t)throw new Error("eventName is not a string");if("function"!=typeof r)throw new Error("handler is not a function")}function addWeakEventListener(e,t,r,a){validateArgs(e,t,r,a);var o=!1,l=i.get(e);if(!l){l=new Map;i.set(e,l);o=!0}var d=l.get(t);if(!d){d=new Array;l.set(t,d);o=!0}d.push(new TargetHandlerPair(a,r));o&&e.addEventListener(t,function getHandlerForEventName(e){var t=n.get(e);if(!t){t=function handler(t){var r=t.object,a=i.get(r);if(a){var o=a.get(e);if(o){for(var l,d,p=[],h=0;h=0;m--)o.splice(p[m],1)}}else r.removeEventListener(e,n.get(e))};n.set(e,t)}return t}(t))}function removeWeakEventListener(e,t,r,a){validateArgs(e,t,r,a);var o=n.get(t);if(o){var l=i.get(e);if(l){var d=l.get(t);if(d){for(var p,h,m=[],g=0;g=0;f--)d.splice(m[f],1)}}}}},function(e,t,r){"use strict";(function(e){r.d(t,"b",(function(){return CalendarEvent}));r.d(t,"i",(function(){return CellStyle}));r.d(t,"j",(function(){return DayCellStyle}));r.d(t,"e",(function(){return CalendarMonthViewStyle}));r.d(t,"k",(function(){return RadCalendar}));var n,i,a,o,l,d,p,h=r(4),m=r(3),g=r(39),f=r(23),v=r(12);r.d(t,"a",(function(){return v.b}));r.d(t,"c",(function(){return v.e}));r.d(t,"d",(function(){return v.f}));r.d(t,"f",(function(){return v.i}));r.d(t,"g",(function(){return v.k}));r.d(t,"h",(function(){return v.l}));function getSdkApiLevel(){return android.os.Build.VERSION.SDK_INT}class CalendarEvent extends v.d{get android(){this._android||(this._android=new com.telerik.widget.calendar.events.Event("default",new Date(1990,0,1).getTime(),new Date(1990,0,2).getTime()));return this._android}_setIsAllDay(e){this.android.setAllDay(e)}_getIsAllDay(){return this.android.isAllDay()}_setEndDate(e){this.android.setEndDate(e.getTime())}_getEndDate(){return new Date(this.android.getEndDate())}_setStartDate(e){this.android.setStartDate(e.getTime())}_getStartDate(){return new Date(this.android.getStartDate())}_setTitle(e){this.android.setTitle(e)}_getTitle(){return this.android.getTitle()}_setEventColor(e){this.android.setEventColor(e.argb)}_getEventColor(){return new h.a(this.android.getEventColor())}}class Tool{static createTypeface(e,t){var r=android.graphics.Typeface.NORMAL;if(t)switch(t){case v.f.Bold:r=android.graphics.Typeface.BOLD;break;case v.f.Italic:r=android.graphics.Typeface.ITALIC;break;case v.f.BoldItalic:r=android.graphics.Typeface.BOLD_ITALIC}return e?android.graphics.Typeface.create(e,r):android.graphics.Typeface.create(android.graphics.Typeface.DEFAULT,r)}}!function(e){e[e.RegularDayStyle=0]="RegularDayStyle";e[e.SelectedDayStyle=1]="SelectedDayStyle";e[e.TodayStyle=2]="TodayStyle";e[e.WeekNumberStyle=3]="WeekNumberStyle";e[e.WeekendStyle=4]="WeekendStyle";e[e.DayNameStyle=5]="DayNameStyle";e[e.TitleStyle=6]="TitleStyle";e[e.MonthNameStyle=7]="MonthNameStyle"}(n||(n={}));class CellStyleInitializer{applyStyle(e){this.changeCellBorderWidth(e.cellBorderWidth,e);this.changeCellBorderColor(e.cellBorderColor,e);this.changeCellBackgroundColor(e.cellBackgroundColor,e);this.changeCellAlignment(e.cellAlignment,e);this.changeCellPaddingHorizontal(e.cellPaddingHorizontal,e);this.changeCellPaddingVertical(e.cellPaddingVertical,e);this.changeCellTextColor(e.cellTextColor,e);this.changeCellTextFontName(e.cellTextFontName,e);this.changeCellTextFontStyle(e.cellTextFontStyle,e);this.changeCellTextSize(e.cellTextSize,e);e.onStyleChanged()}changeCellBorderWidth(e,t){if(!isNaN(e)){var r=new java.lang.Float(e*m.Utils.layout.getDisplayDensity());t.android.setBorderWidth(r)}}onCellBorderWidthChanged(e,t){this.changeCellBorderWidth(e,t);t.onStyleChanged()}changeCellBorderColor(e,t){if(e){var r=e.argb,n=new java.lang.Integer(r);t.android.setBorderColor(n)}}onCellBorderColorChanged(e,t){this.changeCellBorderColor(e,t);t.onStyleChanged()}changeCellBackgroundColor(e,t){if(e){var r=e.argb,n=new java.lang.Integer(r);t.android.setBackgroundColor(n)}}onCellBackgroundColorChanged(e,t){this.changeCellBackgroundColor(e,t);t.onStyleChanged()}changeCellAlignment(e,t){if(e){var r;switch(e){case v.b.Bottom:r=com.telerik.widget.calendar.CalendarElement.BOTTOM;break;case v.b.Top:r=com.telerik.widget.calendar.CalendarElement.TOP;break;case v.b.Left:r=com.telerik.widget.calendar.CalendarElement.LEFT;break;case v.b.Right:r=com.telerik.widget.calendar.CalendarElement.RIGHT;break;case v.b.HorizontalCenter:r=com.telerik.widget.calendar.CalendarElement.CENTER_HORIZONTAL;break;case v.b.VerticalCenter:r=com.telerik.widget.calendar.CalendarElement.CENTER_VERTICAL;break;case v.b.Center:r=com.telerik.widget.calendar.CalendarElement.CENTER;break;default:r=com.telerik.widget.calendar.CalendarElement.CENTER}var n=new java.lang.Integer(r);t.android.setTextPosition(n)}}onCellAlignmentChanged(e,t){this.changeCellAlignment(e,t);t.onStyleChanged()}changeCellPaddingHorizontal(e,t){if(!isNaN(e)){var r=e*m.Utils.layout.getDisplayDensity(),n=new java.lang.Integer(r);t.android.setPaddingHorizontal(n)}}onCellPaddingHorizontalChanged(e,t){this.changeCellPaddingHorizontal(e,t);t.onStyleChanged()}changeCellPaddingVertical(e,t){if(!isNaN(e)){var r=e*m.Utils.layout.getDisplayDensity(),n=new java.lang.Integer(r);t.android.setPaddingVertical(n)}}onCellPaddingVerticalChanged(e,t){this.changeCellPaddingVertical(e,t);t.onStyleChanged()}changeCellTextColor(e,t){if(e){var r=e.argb,n=new java.lang.Integer(r);t.android.setTextColor(n)}}onCellTextColorChanged(e,t){this.changeCellTextColor(e,t);t.onStyleChanged()}changeCellTextFontName(e,t){if(e){Tool.createTypeface(e,t.cellTextFontStyle);t.android.setFontName(e)}}onCellTextFontNameChanged(e,t){this.changeCellTextFontName(e,t);t.onStyleChanged()}changeCellTextFontStyle(e,t){if(e){var r=Tool.createTypeface(t.cellTextFontName,e),n=new java.lang.Integer(r.getStyle());t.android.setFontStyle(n)}}onCellTextFontStyleChanged(e,t){this.changeCellTextFontStyle(e,t);t.onStyleChanged()}changeCellTextSize(e,t){if(!isNaN(e)){var r=e*m.Utils.layout.getDisplayDensity(),n=new java.lang.Float(r);t.android.setTextSize(n)}}onCellTextSizeChanged(e,t){this.changeCellTextSize(e,t);t.onStyleChanged()}makeDayCellFilter(e,t){var r=new com.telerik.widget.calendar.CalendarDayCellFilter,i=new java.lang.Boolean(!0);switch(e){case n.TodayStyle:r.setIsToday(i);case n.RegularDayStyle:r.setCellType(com.telerik.widget.calendar.CalendarCellType.Date);break;case n.WeekendStyle:r.setIsWeekend(i);r.setCellType(com.telerik.widget.calendar.CalendarCellType.Date);break;case n.DayNameStyle:r.setCellType(com.telerik.widget.calendar.CalendarCellType.DayName);break;case n.WeekNumberStyle:r.setCellType(com.telerik.widget.calendar.CalendarCellType.WeekNumber);break;case n.TitleStyle:r.setCellType(com.telerik.widget.calendar.CalendarCellType.Title);break;case n.SelectedDayStyle:r.setCellType(com.telerik.widget.calendar.CalendarCellType.Date);r.setIsSelected(i)}t&&r.setCalendarDisplayMode(t);return r}makeMonthCellFilter(){var e=new com.telerik.widget.calendar.CalendarMonthCellFilter,t=new java.lang.Boolean(!0);e.setMonthIsCompact(t);return e}}class CellStyle extends v.n{constructor(){super(...arguments);this._nativeIsYear=!1}set nativeIsYear(e){if(this._nativeIsYear!==e){this._nativeIsYear=e;this._android=null}}set owner(e){this._owner=e}get initializer(){this._initializer||(this._initializer=new CellStyleInitializer);return this._initializer}get android(){if(!this._android)if(this._nativeIsYear){this._android=new com.telerik.widget.calendar.CalendarMonthCellStyle;this.initializer.applyStyle(this)}else this._android=new com.telerik.widget.calendar.CalendarDayCellStyle;return this._android}updateNativeStyleFilters(e,t){if(this._owner)if(this._nativeIsYear){var r=this.initializer.makeMonthCellFilter();this.android.setFilter(r)}else{var n=this.initializer.makeDayCellFilter(e,t);this.android.setFilter(n)}}onStyleChanged(){this._owner&&this._owner.updateCalendar()}onCellBorderWidthChanged(e,t){this.initializer.onCellBorderWidthChanged(t,this)}onCellBorderColorChanged(e,t){this.initializer.onCellBorderColorChanged(t,this)}onCellBackgroundColorChanged(e,t){this.initializer.onCellBackgroundColorChanged(t,this)}onCellTextColorChanged(e,t){this.initializer.onCellTextColorChanged(t,this)}onCellTextFontNameChanged(e,t){this.initializer.onCellTextFontNameChanged(t,this)}onCellTextFontStyleChanged(e,t){this.initializer.onCellTextFontStyleChanged(t,this)}onCellTextSizeChanged(e,t){this.initializer.onCellTextSizeChanged(t,this)}onCellPaddingHorizontalChanged(e,t){this.initializer.onCellPaddingHorizontalChanged(t,this)}onCellPaddingVerticalChanged(e,t){this.initializer.onCellPaddingVerticalChanged(t,this)}onCellAlignmentChanged(e,t){this.initializer.onCellAlignmentChanged(t,this)}}v.q;v.a;class DayCellStyle extends v.p{set owner(e){this._owner=e}set eventAdapter(e){this._eventAdapter=e}get initializer(){this._initializer||(this._initializer=new CellStyleInitializer);return this._initializer}get android(){this._android||(this._android=new com.telerik.widget.calendar.CalendarDayCellStyle);return this._android}updateNativeStyleFilters(e,t){if(this._owner){var r=this.initializer.makeDayCellFilter(e,t);this.android.setFilter(r)}}onCellBorderWidthChanged(e,t){this.initializer.onCellBorderWidthChanged(t,this)}onCellBorderColorChanged(e,t){this.initializer.onCellBorderColorChanged(t,this)}onCellBackgroundColorChanged(e,t){this.initializer.onCellBackgroundColorChanged(t,this)}onCellTextColorChanged(e,t){this.initializer.onCellTextColorChanged(t,this)}onCellTextFontNameChanged(e,t){this.initializer.onCellTextFontNameChanged(t,this)}onCellTextFontStyleChanged(e,t){this.initializer.onCellTextFontStyleChanged(t,this)}onCellTextSizeChanged(e,t){this.initializer.onCellTextSizeChanged(t,this)}onCellPaddingHorizontalChanged(e,t){this.initializer.onCellPaddingHorizontalChanged(t,this)}onCellPaddingVerticalChanged(e,t){this.initializer.onCellPaddingVerticalChanged(t,this)}onCellAlignmentChanged(e,t){this.initializer.onCellAlignmentChanged(t,this)}onStyleChanged(){this._owner&&this._owner.updateCalendar()}onShowEventsTextChanged(e,t){void 0!==t&&null!=t&&this.eventAdapter&&this.eventAdapter.getRenderer().setEventRenderMode(t?com.telerik.widget.calendar.events.EventRenderMode.Shape_And_Text:com.telerik.widget.calendar.events.EventRenderMode.Shape)}onEventTextColorChanged(e,t){t&&this.eventAdapter}onEventFontNameChanged(e,t){t&&this.eventAdapter}onEventFontStyleChanged(e,t){t&&this.eventAdapter}onEventTextSizeChanged(e,t){!isNaN(t)&&this.eventAdapter&&this.eventAdapter.getRenderer().setEventTextSize(t*m.Utils.layout.getDisplayDensity())}}v.s;v.r;class CalendarStyleInitializer{updateNativeStyles(e){if(e._owner&&e._owner._nativeView){if(e.backgroundColor){var t=e.backgroundColor.argb;e._owner._nativeView.setBackgroundColor(t)}void 0!==e.showDayNames&&null!=e.showDayNames&&e._owner._nativeView.setShowDayNames(e.showDayNames);void 0!==e.showTitle&&null!=e.showTitle&&e._owner._nativeView.setShowTitle(e.showTitle);void 0!==e.showWeekNumbers&&null!=e.showWeekNumbers&&e._owner._nativeView.setWeekNumbersDisplayMode(e.showWeekNumbers?com.telerik.widget.calendar.WeekNumbersDisplayMode.Block:com.telerik.widget.calendar.WeekNumbersDisplayMode.None);if(e.dayCellStyle){e.prepareNativeStyle(e.dayCellStyle,n.RegularDayStyle);e._owner._nativeView.addDayCellStyle(e.dayCellStyle.android)}if(e.weekendCellStyle){e.prepareNativeStyle(e.weekendCellStyle,n.WeekendStyle);e._owner._nativeView.addDayCellStyle(e.weekendCellStyle.android)}if(e.todayCellStyle){e.prepareNativeStyle(e.todayCellStyle,n.TodayStyle);e._owner._nativeView.addDayCellStyle(e.todayCellStyle.android)}if(e.dayNameCellStyle){e.prepareNativeStyle(e.dayNameCellStyle,n.DayNameStyle);e._owner._nativeView.addDayCellStyle(e.dayNameCellStyle.android)}if(e.weekNumberCellStyle){e.prepareNativeStyle(e.weekNumberCellStyle,n.WeekNumberStyle);e._owner._nativeView.addDayCellStyle(e.weekNumberCellStyle.android)}if(e.titleCellStyle){e.prepareNativeStyle(e.titleCellStyle,n.TitleStyle);e._owner._nativeView.addDayCellStyle(e.titleCellStyle.android)}if(e.selectedDayCellStyle){e.prepareNativeStyle(e.selectedDayCellStyle,n.SelectedDayStyle);e._owner._nativeView.addDayCellStyle(e.selectedDayCellStyle.android)}e.inlineEventCellStyle&&e.prepareNativeStyle(e.inlineEventCellStyle,null);this.syncSelectionShape(e)}}onShowWeekNumbersChanged(e,t,r){this.changeShowWeekNumbers(t,r)}changeShowWeekNumbers(e,t){t._owner&&t._owner._nativeView&&t._owner._nativeView.setWeekNumbersDisplayMode(e?com.telerik.widget.calendar.WeekNumbersDisplayMode.Block:com.telerik.widget.calendar.WeekNumbersDisplayMode.None)}onShowTitleChanged(e,t,r){this.changeShowTitle(t,r)}changeShowTitle(e,t){t._owner&&t._owner._nativeView&&t._owner._nativeView.setShowTitle(e)}onShowDayNamesChanged(e,t,r){this.changeShowDayNames(t,r)}changeShowDayNames(e,t){t._owner&&t._owner._nativeView&&t._owner._nativeView.setShowDayNames(e)}onBackgroundColorChanged(e,t,r){this.changeBackgroundColor(t,r)}changeBackgroundColor(e,t){if(e&&t._owner&&t._owner._nativeView){var r=e.argb;t._owner._nativeView.setBackgroundColor(r)}}onDayCellStyleChanged(e,t,r){this.changeDayCellStyle(e,t,r)}changeDayCellStyle(e,t,r){if(r._owner&&r._owner._nativeView){e&&r._owner._nativeView.removeDayCellStyle(e.android);if(t){r.prepareNativeStyle(t,n.RegularDayStyle);r._owner._nativeView.addDayCellStyle(t.android)}}}onSelectedDayCellStyleChanged(e,t,r){this.changeSelectedDayCellStyle(e,t,r)}changeSelectedDayCellStyle(e,t,r){if(r._owner&&r._owner._nativeView){e&&r._owner._nativeView.removeDayCellStyle(e.android);if(t){r.prepareNativeStyle(t,n.SelectedDayStyle);r._owner._nativeView.addDayCellStyle(t.android)}}}onTodayCellStyleChanged(e,t,r){this.changeTodayCellStyle(e,t,r)}changeTodayCellStyle(e,t,r){if(r._owner&&r._owner._nativeView){e&&r._owner._nativeView.removeDayCellStyle(e.android);if(t){r.prepareNativeStyle(t,n.TodayStyle);r._owner._nativeView.addDayCellStyle(t.android)}}}onWeekNumberCellStyleChanged(e,t,r){this.changeWeekNumberCellStyle(e,t,r)}changeWeekNumberCellStyle(e,t,r){if(r._owner&&r._owner._nativeView){e&&r._owner._nativeView.removeDayCellStyle(e.android);if(t){r.prepareNativeStyle(t,n.WeekNumberStyle);r._owner._nativeView.addDayCellStyle(t.android)}}}onWeekendCellStyleChanged(e,t,r){this.changeWeekendCellStyle(e,t,r)}changeWeekendCellStyle(e,t,r){if(r._owner&&r._owner._nativeView){e&&r._owner._nativeView.removeDayCellStyle(e.android);if(t){r.prepareNativeStyle(t,n.WeekendStyle);r._owner._nativeView.addDayCellStyle(t.android)}}}onDayNameCellStyleChanged(e,t,r){this.changeDayNameCellStyle(e,t,r)}changeDayNameCellStyle(e,t,r){if(r._owner&&r._owner._nativeView){e&&r._owner._nativeView.removeDayCellStyle(e.android);if(t){r.prepareNativeStyle(t,n.DayNameStyle);r._owner._nativeView.addDayCellStyle(t.android)}}}onTitleCellStyleChanged(e,t,r){this.changeTitleCellStyle(e,t,r)}changeTitleCellStyle(e,t,r){if(r._owner&&r._owner._nativeView){e&&r._owner._nativeView.removeDayCellStyle(e.android);if(t){r.prepareNativeStyle(t,n.TitleStyle);r._owner._nativeView.addDayCellStyle(t.android)}}}syncSelectionShape(e){e._owner&&e._owner._syncSelectionShape()}}class CalendarMonthViewStyle extends v.h{get initializer(){this._initializer||(this._initializer=new CalendarStyleInitializer);return this._initializer}set owner(e){this._owner=e;this.initializer.updateNativeStyles(this)}updateNativeStyles(){this.initializer.updateNativeStyles(this)}prepareNativeStyle(e,t){if(e&&this._owner&&this._owner._nativeView){e.owner=this._owner._nativeView;e instanceof DayCellStyle&&(e.eventAdapter=this._owner._nativeView.getEventAdapter());null!=t?this.updateNativeStyleFilters(e,t):e.apply(this._owner._nativeView.getAdapter())}}updateNativeStyleFilters(e,t){e.updateNativeStyleFilters(t,com.telerik.widget.calendar.CalendarDisplayMode.Month)}onShowWeekNumbersChanged(e,t){this.initializer.onShowWeekNumbersChanged(e,t,this)}onSelectionShapeChanged(e,t){this.initializer.syncSelectionShape(this)}onSelectionShapeSizeChanged(e,t){this.initializer.syncSelectionShape(this)}onSelectionShapeColorChanged(e,t){this.initializer.syncSelectionShape(this)}onShowTitleChanged(e,t){this.initializer.onShowTitleChanged(e,t,this)}onShowDayNamesChanged(e,t){this.initializer.onShowDayNamesChanged(e,t,this)}onBackgroundColorChanged(e,t){this.initializer.onBackgroundColorChanged(e,t,this)}onDayCellStyleChanged(e,t){this.initializer.onDayCellStyleChanged(e,t,this)}onSelectedDayCellStyleChanged(e,t){this.initializer.onSelectedDayCellStyleChanged(e,t,this)}onTodayCellStyleChanged(e,t){this.initializer.onTodayCellStyleChanged(e,t,this)}onWeekNumberCellStyleChanged(e,t){this.initializer.onWeekNumberCellStyleChanged(e,t,this)}onWeekendCellStyleChanged(e,t){this.initializer.onWeekendCellStyleChanged(e,t,this)}onDayNameCellStyleChanged(e,t){this.initializer.onDayNameCellStyleChanged(e,t,this)}onTitleCellStyleChanged(e,t){this.initializer.onTitleCellStyleChanged(e,t,this)}onInlineEventCellStyleChanged(e,t){this.prepareNativeStyle(t,null)}}class CalendarWeekViewStyle extends CalendarMonthViewStyle{updateNativeStyleFilters(e,t){e.updateNativeStyleFilters(t,com.telerik.widget.calendar.CalendarDisplayMode.Week)}}class CalendarDayViewStyle extends v.c{get initializer(){this._initializer||(this._initializer=new CalendarStyleInitializer);return this._initializer}set owner(e){this._owner=e;this.updateNativeStyles()}updateNativeStyles(){this.initializer.updateNativeStyles(this);this.updateNativeDayStyles()}updateNativeDayStyles(){this.changeShowWeek(null,this.showWeek);this.dayEventsViewStyle&&this.changeDayEventsViewStyle(null,this.dayEventsViewStyle);this.allDayEventsViewStyle&&this.changeAllDayEventsViewStyle(null,this.allDayEventsViewStyle)}prepareNativeStyle(e,t){if(e&&this._owner&&this._owner._nativeView){e.owner=this._owner._nativeView;e instanceof DayCellStyle&&(e.eventAdapter=this._owner._nativeView.getEventAdapter());null!=t?this.updateNativeStyleFilters(e,t):e.apply(this._owner._nativeView.getAdapter())}}updateNativeStyleFilters(e,t){e.updateNativeStyleFilters(t,com.telerik.widget.calendar.CalendarDisplayMode.Day)}onShowWeekNumbersChanged(e,t){this.initializer.onShowWeekNumbersChanged(e,t,this)}onSelectionShapeChanged(e,t){this.initializer.syncSelectionShape(this)}onSelectionShapeSizeChanged(e,t){this.initializer.syncSelectionShape(this)}onSelectionShapeColorChanged(e,t){this.initializer.syncSelectionShape(this)}onShowTitleChanged(e,t){this.initializer.onShowTitleChanged(e,t,this)}onShowDayNamesChanged(e,t){this.initializer.onShowDayNamesChanged(e,t,this)}onBackgroundColorChanged(e,t){this.initializer.onBackgroundColorChanged(e,t,this)}onDayCellStyleChanged(e,t){this.initializer.onDayCellStyleChanged(e,t,this)}onSelectedDayCellStyleChanged(e,t){this.initializer.onSelectedDayCellStyleChanged(e,t,this)}onTodayCellStyleChanged(e,t){this.initializer.onTodayCellStyleChanged(e,t,this)}onWeekNumberCellStyleChanged(e,t){this.initializer.onWeekNumberCellStyleChanged(e,t,this)}onWeekendCellStyleChanged(e,t){this.initializer.onWeekendCellStyleChanged(e,t,this)}onDayNameCellStyleChanged(e,t){this.initializer.onDayNameCellStyleChanged(e,t,this)}onTitleCellStyleChanged(e,t){this.initializer.onTitleCellStyleChanged(e,t,this)}onDayEventsViewStyleChanged(e,t){this.changeDayEventsViewStyle(e,t)}changeDayEventsViewStyle(e,t){e&&(e.owner=null);t&&this._owner&&(t.owner=this._owner._nativeView)}onAllDayEventsViewStyleChanged(e,t){this.changeAllDayEventsViewStyle(e,t)}changeAllDayEventsViewStyle(e,t){e&&(e.owner=null);t&&this._owner&&(t.owner=this._owner._nativeView)}onInlineEventCellStyleChanged(e,t){this.prepareNativeStyle(t,null)}onShowWeekChanged(e,t){this.changeShowWeek(e,t)}changeShowWeek(e,t){this._owner&&this._owner._nativeView&&this._owner._nativeView.setShowWeekInDayMode(t)}}class CalendarYearViewStyle extends v.m{constructor(){super()}set owner(e){this._owner=e;this.updateNativeStyles()}updateNativeStyles(){if(this._owner&&this._owner._nativeView){if(this.titleCellStyle){this.titleCellStyle.owner=this._owner._nativeView;this.titleCellStyle.updateNativeStyleFilters(n.TitleStyle,com.telerik.widget.calendar.CalendarDisplayMode.Year);this._owner._nativeView.addDayCellStyle(this.titleCellStyle.android)}if(this.monthCellStyle){this.monthCellStyle.owner=this._owner._nativeView;this._owner._nativeView.addMonthCellStyle(this.monthCellStyle.regularDayStyle);this._owner._nativeView.addMonthCellStyle(this.monthCellStyle.weekendStyle);this._owner._nativeView.addMonthCellStyle(this.monthCellStyle.todayStyle);this._owner._nativeView.addMonthCellStyle(this.monthCellStyle.dayNameStyle);this._owner._nativeView.addMonthCellStyle(this.monthCellStyle.monthNameStyle);this._owner._nativeView.addMonthCellStyle(this.monthCellStyle.monthCellStyle)}}}onTitleCellStyleChanged(e,t){if(this._owner&&this._owner._nativeView){e&&this._owner._nativeView.removeDayCellStyle(e.android);if(t){t.owner=this._owner._nativeView;t.updateNativeStyleFilters(n.TitleStyle,com.telerik.widget.calendar.CalendarDisplayMode.Year);this._owner._nativeView.addDayCellStyle(t.android)}}}onMonthCellStyleChanged(e,t){if(this._owner&&this._owner._nativeView){if(e){this._owner._nativeView.removeMonthCellStyle(e.regularDayStyle);this._owner._nativeView.removeMonthCellStyle(e.weekendStyle);this._owner._nativeView.removeMonthCellStyle(e.todayStyle);this._owner._nativeView.removeMonthCellStyle(e.dayNameStyle);this._owner._nativeView.removeMonthCellStyle(e.monthNameStyle);this._owner._nativeView.removeMonthCellStyle(e.monthCellStyle)}if(t){this._owner._nativeView.addMonthCellStyle(t.regularDayStyle);this._owner._nativeView.addMonthCellStyle(t.weekendStyle);this._owner._nativeView.addMonthCellStyle(t.todayStyle);this._owner._nativeView.addMonthCellStyle(t.dayNameStyle);this._owner._nativeView.addMonthCellStyle(t.monthNameStyle);this._owner._nativeView.addMonthCellStyle(t.monthCellStyle)}}}}class CalendarMonthNamesViewStyle extends v.g{constructor(){super()}set owner(e){this._owner=e;this.updateNativeStyles()}updateNativeStyles(){if(this._owner&&this._owner._nativeView){if(this.titleCellStyle){this.titleCellStyle.owner=this._owner._nativeView;this.titleCellStyle.updateNativeStyleFilters(n.TitleStyle,com.telerik.widget.calendar.CalendarDisplayMode.Year);this._owner._nativeView.addDayCellStyle(this.titleCellStyle.android)}if(this.monthNameCellStyle){this.monthNameCellStyle.nativeIsYear=!0;this.monthNameCellStyle.owner=this._owner._nativeView;this.monthNameCellStyle.updateNativeStyleFilters(n.MonthNameStyle,com.telerik.widget.calendar.CalendarDisplayMode.Year);this._owner._nativeView.addMonthCellStyle(this.monthNameCellStyle.android)}}}updateFilterDisplayMode(e){var t=new java.lang.Boolean(!0);e.setMonthIsCompact(t)}onTitleCellStyleChanged(e,t){if(this._owner&&this._owner._nativeView){e&&this._owner._nativeView.removeDayCellStyle(e.android);if(t){t.owner=this._owner._nativeView;t.updateNativeStyleFilters(n.TitleStyle,com.telerik.widget.calendar.CalendarDisplayMode.Year);this._owner._nativeView.addDayCellStyle(t.android)}}}onMonthNameCellStyleChanged(e,t){if(this._owner&&this._owner._nativeView){e&&this._owner._nativeView.removeMonthCellStyle(e.android);if(t){t.nativeIsYear=!0;t.owner=this._owner._nativeView;t.updateNativeStyleFilters(n.MonthNameStyle,com.telerik.widget.calendar.CalendarDisplayMode.Year);this._owner._nativeView.addMonthCellStyle(t.android)}}}}class RadCalendar extends v.t{constructor(){super();this._androidViewId=-1}get _nativeView(){return this._android}createNativeView(){!function initializeListeners(){if(!i){var t=function(t){__extends(CalendarCellClickListenerImpl,t);function CalendarCellClickListenerImpl(r){var n=t.call(this)||this;n.owner=r;return e.__native(n)}CalendarCellClickListenerImpl.prototype.onCellClick=function(e){if(this.owner){var t={eventName:v.t.cellTapEvent,object:this.owner,cell:e,date:new Date(e.getDate())};this.owner.notify(t)}};CalendarCellClickListenerImpl=__decorate([Interfaces([com.telerik.widget.calendar.RadCalendarView.OnCellClickListener])],CalendarCellClickListenerImpl);return CalendarCellClickListenerImpl}(java.lang.Object);i=t}if(!a){var r=function(t){__extends(CalendarOnItemClickListenerImpl,t);function CalendarOnItemClickListenerImpl(r){var n=t.call(this)||this;n.owner=r;return e.__native(n)}CalendarOnItemClickListenerImpl.prototype.onItemClick=function(e,t,r,n){if(this.owner){var i=e.getAdapter().getItem(r),a=i.originalEvent(),o=nativeEventToNSEvent(a,this.owner.eventSource),l={eventName:v.t.inlineEventSelectedEvent,object:this.owner,eventData:o};this.owner.notify(l)}};CalendarOnItemClickListenerImpl=__decorate([Interfaces([android.widget.AdapterView.OnItemClickListener])],CalendarOnItemClickListenerImpl);return CalendarOnItemClickListenerImpl}(java.lang.Object);a=r}if(!o){var n=function(t){__extends(CalendarOnDisplayDateChangedListenerImpl,t);function CalendarOnDisplayDateChangedListenerImpl(r){var n=t.call(this)||this;n.owner=r;return e.__native(n)}CalendarOnDisplayDateChangedListenerImpl.prototype.onDisplayDateChanged=function(e,t){if(this.owner){var r=new Date(t);if(this.owner.displayedDate!==r){var n={eventName:v.t.navigatingToDateStartedEvent,object:this.owner,date:r};this.owner.notify(n);this.owner.displayedDate=r;var i={eventName:v.t.navigatedToDateEvent,object:this.owner,date:r};this.owner.notify(i)}}};CalendarOnDisplayDateChangedListenerImpl=__decorate([Interfaces([com.telerik.widget.calendar.RadCalendarView.OnDisplayDateChangedListener])],CalendarOnDisplayDateChangedListenerImpl);return CalendarOnDisplayDateChangedListenerImpl}(java.lang.Object);o=n}if(!l){var h=function(t){__extends(CalendarOnDisplayModeChangedListenerImpl,t);function CalendarOnDisplayModeChangedListenerImpl(r){var n=t.call(this)||this;n.owner=r;return e.__native(n)}CalendarOnDisplayModeChangedListenerImpl.prototype.onDisplayModeChanged=function(e,t){if(this.owner){var r=RadCalendar.getViewModeFromAndroidViewMode(this.owner,t);this.owner.viewMode=r;var n=RadCalendar.getViewModeFromAndroidViewMode(this.owner,e);this.owner.notifyViewModeChanged(n,r)}};CalendarOnDisplayModeChangedListenerImpl=__decorate([Interfaces([com.telerik.widget.calendar.RadCalendarView.OnDisplayModeChangedListener])],CalendarOnDisplayModeChangedListenerImpl);return CalendarOnDisplayModeChangedListenerImpl}(java.lang.Object);l=h}if(!d){var m=function(t){__extends(CalendarEventViewTapListenerImpl,t);function CalendarEventViewTapListenerImpl(r){var n=t.call(this)||this;n.owner=r;return e.__native(n)}CalendarEventViewTapListenerImpl.prototype.onEventViewTap=function(e){if(this.owner){var t=nativeEventToNSEvent(e,this.owner.eventSource),r={eventName:v.t.dayViewEventSelectedEvent,object:this.owner,eventData:t};this.owner.notify(r)}};CalendarEventViewTapListenerImpl=__decorate([Interfaces([com.telerik.widget.calendar.dayview.CalendarDayView.EventViewTapListener])],CalendarEventViewTapListenerImpl);return CalendarEventViewTapListenerImpl}(java.lang.Object);d=m}if(!p){var g=function(t){__extends(CalendarOnSelectedDatesChangedListenerImpl,t);function CalendarOnSelectedDatesChangedListenerImpl(r){var n=t.call(this)||this;n.owner=r;return e.__native(n)}CalendarOnSelectedDatesChangedListenerImpl.prototype.onSelectedDatesChanged=function(e){if(this.owner){var t=e.datesAdded().size(),r=e.datesRemoved().size();if(0!==t||0!==r){if(this.owner.selectionMode===v.i.Range){var n=this.owner.android,i=n.getSelectionManager().getSelectedRange(),a=i?new Date(i.getStart()):null,o=i?new Date(i.getEnd()):null;this.owner.notifyRangeSelectionChanged(this.owner,a,o)}if(r>0)for(var l=0;l0)for(l=0;l{if(this.nativeViewProtected&&this.nativeViewProtected.getAdapter()){this.nativeViewProtected.palette=e.newValue;this.updateCalendarStyle(e.newValue)}};m.Application.on(m.Application.systemAppearanceChangedEvent,this.systemAppearanceChangedHandler);return this._nativeView}initNativeView(){super.initNativeView();this._androidViewId<0&&(this._androidViewId=android.view.View.generateViewId());this._nativeView.setId(this._androidViewId);m.Application.systemAppearance()===g.b.SystemAppearance.dark&&this.updateCalendarStyle(m.Application.systemAppearance());getSdkApiLevel()&&getSdkApiLevel()>=29&&this._nativeView.setForceDarkAllowed(!1)}disposeNativeView(){m.Application.off(m.Application.systemAppearanceChangedEvent,this.systemAppearanceChangedHandler);this._nativeView._cellClickListener&&(this._nativeView._cellClickListener.owner=null);this._nativeView._itemClickListener&&(this._nativeView._itemClickListener.owner=null);this._nativeView._displayDateChangedListener&&(this._nativeView._displayDateChangedListener.owner=null);this._nativeView._displayModeChangedListener&&(this._nativeView._displayModeChangedListener.owner=null);this._nativeView._eventViewTapListener&&(this._nativeView._eventViewTapListener.owner=null);this._nativeView._onSelectedDatesChangedListener&&(this._nativeView._onSelectedDatesChangedListener.owner=null);super.disposeNativeView()}updateCalendarStyle(e){this.nativeViewProtected.getAdapter().setStyle(this.getStyleForSystemAppearance(e))}getStyleForSystemAppearance(e){return e===g.b.SystemAppearance.dark?com.telerik.widget.calendar.CalendarStyles.materialDark(this.nativeViewProtected.getContext()):com.telerik.widget.calendar.CalendarStyles.materialLight(this.nativeViewProtected.getContext())}loadNativeDisplayedDate(){var e=new Date(this._android.getDisplayDate());this.displayedDate!==e&&(this.displayedDate=e)}addOnCellClickListener(){this._nativeView._cellClickListener=new i(this);this._nativeView.setOnCellClickListener(this._nativeView._cellClickListener)}_syncSelectionShape(){var e=this.viewMode===v.l.Month?this.monthViewStyle:this.viewMode===v.l.Week?this.weekViewStyle:this.viewMode===v.l.Day?this.dayViewStyle:void 0;if(this._nativeView){var t=new com.telerik.widget.calendar.CellDecorationsLayer(this._nativeView);this._nativeView.setCellDecorator(t);if(e&&e.selectionShape)switch(e.selectionShape){case v.j.Round:var r=new com.telerik.widget.calendar.decorations.CircularCellDecorator(this._nativeView);r.setStroked(!1);r.setRadius(m.Utils.layout.toDevicePixels(e.selectionShapeSize));e.selectionShapeColor&&r.setColor(e.selectionShapeColor.android);this._nativeView.setCellDecorator(r);this._nativeView.setShowCellDecorations(!0);break;case v.j.Square:var n=new com.telerik.widget.calendar.decorations.SquareCellDecorator(this._nativeView);n.setStroked(!1);n.setSize(m.Utils.layout.toDevicePixels(e.selectionShapeSize));e.selectionShapeColor&&n.setColor(e.selectionShapeColor.android);this._nativeView.setCellDecorator(n);this._nativeView.setShowCellDecorations(!0);break;case v.j.None:this._nativeView.setShowCellDecorations(!1)}}}addOnInlineEventsClickedListener(){if(this._nativeView.eventsManager()){this._nativeView.eventsManager().setOnItemClickListener(null);this._nativeView._itemClickListener&&(this._nativeView._itemClickListener.owner=null);this._nativeView._itemClickListener=new a(this);this._nativeView.eventsManager().setOnItemClickListener(this._nativeView._itemClickListener)}}addOnDisplayDateChangedListener(){this._nativeView._displayDateChangedListener=new o(this);this._nativeView.setOnDisplayDateChangedListener(this._nativeView._displayDateChangedListener)}addOnDisplayModeChangedListener(){this._nativeView._displayModeChangedListener=new l(this);this._nativeView.setOnDisplayModeChangedListener(this._nativeView._displayModeChangedListener)}notifyViewModeChanged(e,t){var r={eventName:v.t.viewModeChangedEvent,object:this,oldValue:e,newValue:t};this.notify(r)}setDayViewEventSelectedListener(){this._nativeView._eventViewTapListener=new d(this);this._nativeView.getDayView().setEventViewTapListener(this._nativeView._eventViewTapListener)}addOnSelectedDatesChangedListener(){this._nativeView._onSelectedDatesChangedListener=new p(this);this._nativeView.setOnSelectedDatesChangedListener(this._nativeView._onSelectedDatesChangedListener)}notifySingleDateSelected(e,t){this._forbidNativeSelection=!0;e.selectionMode!==v.i.Single||this.selectedDate&&v.t.areDatesSame(this.selectedDate,t)?e.selectionMode===v.i.Multiple&&this._addSelectedDate(t):this.selectedDate=t;this._forbidNativeSelection=!1;var r={eventName:v.t.dateSelectedEvent,object:e,date:t};e.notify(r)}notifyDateDeselected(e,t){this._forbidNativeSelection=!0;e.selectionMode===v.i.Multiple&&this._removeSelectedDate(t);this._forbidNativeSelection=!1;var r={eventName:v.t.dateDeselectedEvent,object:e,date:t};e.notify(r)}notifyRangeSelectionChanged(e,t,r){this._forbidNativeSelection=!0;this.selectedDateRange=t?new v.o(t,r):null;this._forbidNativeSelection=!1}setNativeViewMode(e){if(e){var t=!1,r=null;switch(e){case v.l.Month:r=com.telerik.widget.calendar.CalendarDisplayMode.Month;break;case v.l.MonthNames:r=com.telerik.widget.calendar.CalendarDisplayMode.Year;t=!0;break;case v.l.Week:r=com.telerik.widget.calendar.CalendarDisplayMode.Week;break;case v.l.Year:r=com.telerik.widget.calendar.CalendarDisplayMode.Year;break;case v.l.Day:r=com.telerik.widget.calendar.CalendarDisplayMode.Day}var n=this._android.eventsManager();n&&n.closeEvents();if(r===com.telerik.widget.calendar.CalendarDisplayMode.Year&&this._android.isYearModeCompact()!==t){this._android.getDisplayMode()===com.telerik.widget.calendar.CalendarDisplayMode.Year&&(t?this.notifyViewModeChanged(v.l.Year,v.l.MonthNames):this.notifyViewModeChanged(v.l.MonthNames,v.l.Year));this._android.setYearModeCompact(t)}this._android.changeDisplayMode(r,!1)}}setNativeSelectionMode(e){if(e){var t=null;switch(e){case v.i.None:t=com.telerik.widget.calendar.CalendarSelectionMode.None;break;case v.i.Single:t=com.telerik.widget.calendar.CalendarSelectionMode.Single;break;case v.i.Multiple:t=com.telerik.widget.calendar.CalendarSelectionMode.Multiple;break;case v.i.Range:t=com.telerik.widget.calendar.CalendarSelectionMode.Range;break;default:console.log("WARNING: Unsupported selection mode set: "+e)}t&&this._android.setSelectionMode(t)}}setNativeTransitionMode(e){e&&this._nativeView.setScrollMode(RadCalendar.getAndroidTransitonModeFromTransitionMode(e))}setNativeEventsViewMode(e){e&&this._nativeView.setEventsDisplayMode(RadCalendar.getAndroidEventsViewModeFromEventsViewMode(e))}setNativeMaxDate(e){if(e){var t=RadCalendar.getCalendarFromDate(e);this._nativeView.setMaxDate(t.getTimeInMillis())}}setNativeMinDate(e){if(e){var t=RadCalendar.getCalendarFromDate(e);this._nativeView.setMinDate(t.getTimeInMillis())}}setNativeDisplayedDate(e){if(e){var t=RadCalendar.getCalendarFromDate(e);this._nativeView.setDisplayDate(t.getTimeInMillis())}}setNativeSelectedDate(e){if(e){var t=RadCalendar.getCalendarFromDate(e),r=new java.util.ArrayList;r.add(new java.lang.Long(t.getTimeInMillis()));this._nativeView.setSelectedDates(r)}else this._nativeView.setSelectedDates(null)}setNativeSelectedDates(e){if(e){var t=e;"string"==typeof e&&(t=t.split(","));var r=new java.util.ArrayList;for(var n in t){var i=RadCalendar.getCalendarFromDate(new Date(t[n]));r.add(new java.lang.Long(i.getTimeInMillis()))}this._nativeView.setSelectedDates(r)}else this._nativeView.setSelectedDates(null)}setNativeSelectedDateRange(e){if(e){if(e instanceof v.o){var t=e,r=RadCalendar.getCalendarFromDate(t.startDate),n=RadCalendar.getCalendarFromDate(t.endDate),i=new com.telerik.widget.calendar.DateRange(r.getTimeInMillis(),n.getTimeInMillis());this._nativeView.setSelectedRange(i)}}else this._nativeView.setSelectedDates(null)}setNativeHorizontalTransition(e){this._nativeView.setHorizontalScroll(e)}getDisplayedDate(){return this._android.getDisplayDate()}onLocalePropertyChanged(e,t){super.onLocalePropertyChanged(e,t);this.setNativeLocale(t)}setNativeLocale(e){if(e&&this._nativeView){var t=e.split("-");1===t.length&&t.push(t[0].toUpperCase());if(2===t.length){var r=new java.util.Locale(t[0],t[1]);this._nativeView.setLocale(r)}}}onViewModeChanged(e,t){this._nativeView&&this.setNativeViewMode(t);this._syncSelectionShape()}onSelectionModeChanged(e,t){if(this._nativeView){this.clearSelection();this.setNativeSelectionMode(t)}}onTransitionModeChanged(e,t){this._nativeView&&this.setNativeTransitionMode(t)}onEventsViewModeChanged(e,t){if(this._nativeView){this.setNativeEventsViewMode(t);this.initOnInlineEventsClickedListener()}}onMaxDateChanged(e,t){this._nativeView&&this.setNativeMaxDate(t)}onMinDateChanged(e,t){this._nativeView&&this.setNativeMinDate(t)}onDisplayedDateChanged(e,t){this._nativeView&&this.setNativeDisplayedDate(t)}onSelectedDateChanged(e,t){!this._forbidNativeSelection&&this._nativeView&&this.setNativeSelectedDate(t)}onSelectedDatesChanged(e,t){!this._forbidNativeSelection&&this._nativeView&&this.setNativeSelectedDates(t)}onSelectedDateRangeChanged(e,t){!this._forbidNativeSelection&&this._nativeView&&this.setNativeSelectedDateRange(t)}onHorizontalTransitionChanged(e,t){this._nativeView&&this.setNativeHorizontalTransition(t)}onMonthViewStyleChanged(e,t){t&&t instanceof CalendarMonthViewStyle&&(this.monthViewStyle.owner=this)}onWeekViewStyleChanged(e,t){t&&t instanceof CalendarWeekViewStyle&&(this.weekViewStyle.owner=this)}onDayViewStyleChanged(e,t){t&&t instanceof CalendarDayViewStyle&&(this.dayViewStyle.owner=this)}onMonthNamesViewStyleChanged(e,t){t&&t instanceof CalendarMonthNamesViewStyle&&(this.monthNamesViewStyle.owner=this)}onYearViewStyleChanged(e,t){t&&t instanceof CalendarYearViewStyle&&(this.yearViewStyle.owner=this)}reload(){this._nativeView&&this._nativeView.invalidate();this.clearSelection()}navigateForward(){this._nativeView.shiftDate(!0)}navigateBack(){this._nativeView.shiftDate(!1)}goToDate(e){this._nativeView.setDisplayDate(e.getTime())}getEventsForDate(e){var t=this._nativeView.getEventAdapter().getEventsForDate(e.getTime()),r=new Array;if(t)for(var n=0;n-1||e.indexOf("generic")>-1)}}(n||(n={}));var o=0},function(e,t,r){"use strict";r.r(t);(function(e){r.d(t,"moduleLoaded",(function(){return y}));r.d(t,"attachStateChangeListener",(function(){return w}));r.d(t,"Frame",(function(){return Frame}));r.d(t,"reloadPage",(function(){return reloadPage}));r.d(t,"setFragmentClass",(function(){return setFragmentClass}));r.d(t,"setActivityCallbacks",(function(){return setActivityCallbacks}));r.d(t,"setFragmentCallbacks",(function(){return setFragmentCallbacks}));var n=r(8),i=r(43),a=r(69),o=r(55),l=r(4),d=r(1),p=r(16),h=r(75),m=r(42),g=r(24),f=r(18),v=r(6);r.d(t,"NavigationType",(function(){return a.b}));r.d(t,"FrameBase",(function(){return a.a}));r.d(t,"getFrameById",(function(){return a.f}));r.d(t,"topmost",(function(){return a.h}));r.d(t,"goBack",(function(){return a.g}));r.d(t,"_stack",(function(){return a.c}));r.d(t,"defaultPage",(function(){return a.e}));r.d(t,"actionBarVisibilityProperty",(function(){return a.d}));var y,w,C=Symbol("_owner"),S=new Map,b=-1,x=-1;if(e&&e.__inspector){var T=r(330);T.attachDOMInspectorEventCallbacks(e.__inspector);T.attachDOMInspectorCommandCallbacks(e.__inspector)}function getAttachListener(){if(!w){var e=java.lang.Object.extend({interfaces:[android.view.View.OnAttachStateChangeListener],init(){},onViewAttachedToWindow(e){var t=e[C];t&&t._onAttachedToWindow()},onViewDetachedFromWindow(e){var t=e[C];t&&t._onDetachedFromWindow()}});w=new e}return w}class Frame extends a.a{constructor(){super();this._containerViewId=-1;this._tearDownPending=!1;this._attachedToWindow=!1;this._android=new AndroidFrame(this)}static reloadPage(e){var t=n.android.foregroundActivity,r=t._callbacks;if(r){var i=r.getRootView(),a=e&&e.path&&e.path.includes(n.getMainEntry().moduleName)&&"style"!==e.type;!a&&i&&i._onLivesync(e)||r.resetActivityContent(t)}else d.a.error("".concat(t,"[CALLBACKS] is null or undefined"))}static get defaultAnimatedNavigation(){return a.a.defaultAnimatedNavigation}static set defaultAnimatedNavigation(e){a.a.defaultAnimatedNavigation=e}static get defaultTransition(){return a.a.defaultTransition}static set defaultTransition(e){a.a.defaultTransition=e}get containerViewId(){return this._containerViewId}get android(){return this._android}get _hasFragments(){return!0}_onAttachedToWindow(){super._onAttachedToWindow();if(!this._manager||!this._manager.isDestroyed()){this._attachedToWindow=!0;this._processNextNavigationEntry()}}_onDetachedFromWindow(){super._onDetachedFromWindow();this._attachedToWindow=!1}_processNextNavigationEntry(){if(this.isLoaded&&!this._executingContext&&this._attachedToWindow){var e=Object(h.c)(this._android.frameId);if(!(e&&e.size>0)){var t=this._getFragmentManager(),r=this._currentEntry,n=!this._cachedTransitionState||r!==this._cachedTransitionState.entry;if(n&&r&&t&&!t.findFragmentByTag(r.fragmentTag)){var i=function getTransitionState(e){var t=e,r={};if(!t.enterTransitionListener||!t.exitTransitionListener)return null;r.enterTransitionListener=cloneExpandedTransitionListener(t.enterTransitionListener);r.exitTransitionListener=cloneExpandedTransitionListener(t.exitTransitionListener);r.reenterTransitionListener=cloneExpandedTransitionListener(t.reenterTransitionListener);r.returnTransitionListener=cloneExpandedTransitionListener(t.returnTransitionListener);r.transitionName=t.transitionName;r.entry=e;return r}(this._currentEntry);if(i){this._cachedTransitionState=i;this._currentEntry=null;this._navigateCore(r);this._currentEntry=r}else super._processNextNavigationEntry()}else super._processNextNavigationEntry()}}}_getChildFragmentManager(){var e;e=this._executingContext&&this._executingContext.entry?this._executingContext.entry:this._currentEntry;return e&&e.fragment&&e.fragment.isAdded()?e.fragment.getChildFragmentManager():null}_onRootViewReset(){super._onRootViewReset();this.disposeCurrentFragment()}onLoaded(){if(this._originalBackground){this.backgroundColor=null;this.backgroundColor=this._originalBackground;this._originalBackground=null}super.onLoaded()}onUnloaded(){super.onUnloaded();this.disposeCurrentFragment()}disposeCurrentFragment(){if(this._currentEntry&&this._currentEntry.fragment&&this._currentEntry.fragment.isAdded()){var e=this._currentEntry.fragment,t=e.getFragmentManager(),r=t.beginTransaction(),n=e.getExitTransition();n&&n instanceof org.nativescript.widgets.CustomTransition&&n.setResetOnTransitionEnd(!0);r.remove(e);r.commitNowAllowingStateLoss()}}createFragment(e,t){!function ensureFragmentClass(){if(P)return;r(317);if(!P)throw new Error("Failed to initialize the extended androidx.fragment.app.Fragment class")}();var n=new P,i=new android.os.Bundle;i.putInt("_frameId",this._android.frameId);n.setArguments(i);setFragmentCallbacks(n);var a=n._callbacks;a.frame=this;a.entry=e;e.fragment=n;e.fragmentTag=t;e.navDepth=b;return n}setCurrent(e,t){var r=this._currentEntry,n=r!==e;if(n){this._updateBackstack(e,t);if(this._tearDownPending){this._tearDownPending=!1;e.recreated||clearEntry(e);r&&!r.recreated&&clearEntry(r);var i=this._context;if(i&&!e.recreated){e.fragment=this.createFragment(e,e.fragmentTag);e.resolvedPage._setupUI(i)}e.recreated=!1;r&&(r.recreated=!1)}super.setCurrent(e,t);this._processNavigationQueue(e.resolvedPage)}else this._processNextNavigationEntry();if(this._cachedTransitionState){!function restoreTransitionState(e,t){var r=e;t.enterTransitionListener&&(r.enterTransitionListener=t.enterTransitionListener);t.exitTransitionListener&&(r.exitTransitionListener=t.exitTransitionListener);t.reenterTransitionListener&&(r.reenterTransitionListener=t.reenterTransitionListener);t.returnTransitionListener&&(r.returnTransitionListener=t.returnTransitionListener);r.transitionName=t.transitionName}(this._currentEntry,this._cachedTransitionState);this._cachedTransitionState=null}if(t===o.a.replace){Object(h.a)(e);var a=this._getIsAnimatedNavigation(e.entry),l=this._getNavigationTransition(e.entry),d=e;Object(h.e)(a,l,null,d,this._android.frameId,null)}}onBackPressed(){if(this.canGoBack()){this.goBack();return!0}if(!this.navigationQueueIsEmpty()){var e=this._getFragmentManager();if(e){e.executePendingTransactions();return!0}}return!1}_navigateCore(e){super._navigateCore(e);e.frameId=this._android.frameId;var t=this._android.activity;if(t){var r=this._getFragmentManager(),n=e.entry.clearHistory,i=this._currentEntry;n&&(b=-1);var a=this._executingContext&&this._executingContext.navigationType===o.a.replace;a||b++;x++;var l,d="fragment".concat(x,"[").concat(b,"]"),p=this.createFragment(e,d),m=r.beginTransaction(),g=!!i&&this._getIsAnimatedNavigation(e.entry);if(a){g=!0;l={name:"fade",duration:100}}else l=this._currentEntry?this._getNavigationTransition(e.entry):null;var f=!i;Object(h.e)(g,l,i,e,this._android.frameId,m,f);m.replace(this.containerViewId,p,d);m.commitAllowingStateLoss()}else{var v=this._android.currentActivity;v&&function startActivity(e,t){var r=new android.content.Intent(e,e.getClass());r.setAction(android.content.Intent.ACTION_DEFAULT);r.putExtra("com.tns.activity",t);e.startActivity(r)}(v,this._android.frameId)}}_goBackCore(e){super._goBackCore(e);b=e.navDepth;var t=this._getFragmentManager(),r=t.beginTransaction();if(!e.fragment){e.fragment=this.createFragment(e,e.fragmentTag);Object(h.f)(e)}Object(h.d)(e,this._currentEntry);r.replace(this.containerViewId,e.fragment,e.fragmentTag);r.commitAllowingStateLoss()}_removeEntry(e){super._removeEntry(e);e.fragment&&Object(h.a)(e);e.fragment=null;e.viewSavedState=null}createNativeView(){this._currentEntry&&this._pushInFrameStack();return new org.nativescript.widgets.ContentLayout(this._context)}initNativeView(){super.initNativeView();var e=getAttachListener();this.nativeViewProtected.addOnAttachStateChangeListener(e);this.nativeViewProtected[C]=this;this._android.rootViewGroup=this.nativeViewProtected;this._containerViewId<0&&(this._containerViewId=android.view.View.generateViewId());this._android.rootViewGroup.setId(this._containerViewId)}disposeNativeView(){var e=getAttachListener();this.nativeViewProtected.removeOnAttachStateChangeListener(e);this.nativeViewProtected[C]=null;this._tearDownPending=!!this._executingContext;var t=this._currentEntry,r=this._executingContext?this._executingContext.entry:null;this.backStack.forEach(e=>{e!==r&&clearEntry(e)});t&&!r&&clearEntry(t);this._android.rootViewGroup=null;this._removeFromFrameStack();super.disposeNativeView()}_popFromFrameStack(){this._isInFrameStack&&super._popFromFrameStack()}_getNavBarVisible(e){switch(this.actionBarVisibility){case"never":return!1;case"always":return!0;default:return void 0!==e.actionBarHidden?!e.actionBarHidden:!this._android||void 0===this._android.showActionBar||this._android.showActionBar}}_saveFragmentsState(){this.backStack.forEach(e=>{var t=e.resolvedPage.nativeViewProtected;if(!e.viewSavedState&&t){var r=new android.util.SparseArray;t.saveHierarchyState(r);e.viewSavedState=r}})}}__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],Frame.prototype,"_navigateCore",null);function reloadPage(e){console.log("reloadPage() is deprecated. Use Frame.reloadPage() instead.");return Frame.reloadPage(e)}e.__onLiveSyncCore=Frame.reloadPage;function cloneExpandedTransitionListener(e){if(!e)return null;var t=e.transition.clone();return Object(h.g)(e.entry,t)}function clearEntry(e){e.fragment&&Object(h.b)(e);e.recreated=!1;e.fragment=null;var t=e.resolvedPage;t&&t._context&&e.resolvedPage._tearDownUI(!0)}var P,k=0,A=new Array;class AndroidFrame extends p.a{constructor(e){super();this._showActionBar=!0;this._owner=e;this.frameId=k++;A.push(new WeakRef(this))}get showActionBar(){return this._showActionBar}set showActionBar(e){if(this._showActionBar!==e){this._showActionBar=e;this.owner.currentPage&&this.owner.currentPage.actionBar.update()}}get activity(){var e=this.owner._context;if(e)return e;for(var t=this._owner.parent;t;){if(t instanceof Frame)return t.android.activity;t=t.parent}}get actionBar(){var e=this.currentActivity;if(e){var t=e.getActionBar();if(t)return t}}get currentActivity(){var e=this.activity;if(e)return e;for(var t=Object(a.c)(),r=t.length,n=r-1;n>=0;n--){e=t[n].android.activity;if(e)return e}}get owner(){return this._owner}canGoBack(){return!!this.activity&&this.activity.getIntent().getAction()!==android.content.Intent.ACTION_MAIN}fragmentForPage(e){var t=e&&e.fragmentTag;if(t)return this.owner._getFragmentManager().findFragmentByTag(t)}}function setFragmentClass(e){if(P)throw new Error("Fragment class already initialized");P=e}class FragmentCallbacksImplementation{constructor(){this.backgroundBitmap=null}onHiddenChanged(e,t,r){d.a.isEnabled()&&d.a.write("".concat(e,".onHiddenChanged(").concat(t,")"),d.a.categories.NativeLifecycle);r.call(e,t)}onCreateAnimator(e,t,r,n,i){var a=null,o=this.entry;if(r&&o.isNestedDefaultTransition){a=o.enterAnimator;o.isNestedDefaultTransition=!1}return a||i.call(e,t,r,n)}onCreate(e,t,r){d.a.isEnabled()&&d.a.write("".concat(e,".onCreate(").concat(t,")"),d.a.categories.NativeLifecycle);r.call(e,t);if(!this.entry){var n=e.getArguments(),i=n.getInt("_frameId"),a=function getFrameByNumberId(e){for(var t=0;t"):"NO ENTRY, "+t.call(e)}loadBitmapFromView(e){if(e&&e.getWidth()>0&&e.getHeight()>0){e.setDrawingCacheEnabled(!0);var t=e.getDrawingCache(),r=android.graphics.Bitmap.createBitmap(t);e.setDrawingCacheEnabled(!1);return r}}}__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[androidx.fragment.app.Fragment,Boolean,Function]),__metadata("design:returntype",void 0)],FragmentCallbacksImplementation.prototype,"onHiddenChanged",null);__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[androidx.fragment.app.Fragment,Number,Boolean,Number,Function]),__metadata("design:returntype",android.animation.Animator)],FragmentCallbacksImplementation.prototype,"onCreateAnimator",null);__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[androidx.fragment.app.Fragment,android.os.Bundle,Function]),__metadata("design:returntype",void 0)],FragmentCallbacksImplementation.prototype,"onCreate",null);__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[androidx.fragment.app.Fragment,android.view.LayoutInflater,android.view.ViewGroup,android.os.Bundle,Function]),__metadata("design:returntype",android.view.View)],FragmentCallbacksImplementation.prototype,"onCreateView",null);__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[androidx.fragment.app.Fragment,android.os.Bundle,Function]),__metadata("design:returntype",void 0)],FragmentCallbacksImplementation.prototype,"onSaveInstanceState",null);__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[org.nativescript.widgets.FragmentBase,Function]),__metadata("design:returntype",void 0)],FragmentCallbacksImplementation.prototype,"onDestroyView",null);__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[androidx.fragment.app.Fragment,Function]),__metadata("design:returntype",void 0)],FragmentCallbacksImplementation.prototype,"onDestroy",null);__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[org.nativescript.widgets.FragmentBase,Function]),__metadata("design:returntype",void 0)],FragmentCallbacksImplementation.prototype,"onPause",null);__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[androidx.fragment.app.Fragment,Function]),__metadata("design:returntype",void 0)],FragmentCallbacksImplementation.prototype,"onStop",null);__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[androidx.fragment.app.Fragment,Function]),__metadata("design:returntype",String)],FragmentCallbacksImplementation.prototype,"toStringOverride",null);class ActivityCallbacksImplementation{getRootView(){return this._rootView}onCreate(e,t,r,i){d.a.isEnabled()&&d.a.write("Activity.onCreate(".concat(t,")"),d.a.categories.NativeLifecycle);var a=i?r:void 0;if(!i){console.log("AndroidActivityCallbacks.onCreate(activity: any, savedInstanceState: any, superFunc: Function) is deprecated. Use AndroidActivityCallbacks.onCreate(activity: any, savedInstanceState: any, intent: any, superFunc: Function) instead.");i=r}var o=!!t&&y;i.call(e,o?t:null);if(t){var l=t.getInt("com.tns.activity.rootViewId",-1);-1!==l&&S.has(l)&&(this._rootView=S.get(l).get())}a&&a.getAction()&&n.android.notify({eventName:n.AndroidApplication.activityNewIntentEvent,object:n.android,activity:e,intent:a});this.setActivityContent(e,t,!0);y=!0}onSaveInstanceState(e,t,r){r.call(e,t);var n=this._rootView;if(n instanceof Frame){t.putInt("com.tns.activity",n.android.frameId);n._saveFragmentsState()}t.putInt("com.tns.activity.rootViewId",n._domId)}onNewIntent(e,t,r,i){i.call(e,t);r.call(e,t);n.android.notify({eventName:n.AndroidApplication.activityNewIntentEvent,object:n.android,activity:e,intent:t})}onStart(e,t){t.call(e);d.a.isEnabled()&&d.a.write("NativeScriptActivity.onStart();",d.a.categories.NativeLifecycle);var r=this._rootView;r&&!r.isLoaded&&r.callLoaded()}onStop(e,t){t.call(e);d.a.isEnabled()&&d.a.write("NativeScriptActivity.onStop();",d.a.categories.NativeLifecycle);var r=this._rootView;r&&r.isLoaded&&r.callUnloaded()}onPostResume(e,t){t.call(e);d.a.isEnabled()&&d.a.write("NativeScriptActivity.onPostResume();",d.a.categories.NativeLifecycle);if(e.isNativeScriptActivity){var r={eventName:i.resumeEvent,object:n.android,android:e};i.notify(r);n.android.paused=!1}}onDestroy(e,t){try{d.a.isEnabled()&&d.a.write("NativeScriptActivity.onDestroy();",d.a.categories.NativeLifecycle);var r=this._rootView;r&&r._tearDownUI(!0);var a={eventName:i.exitEvent,object:n.android,android:e};i.notify(a)}finally{t.call(e)}}onBackPressed(e,t){d.a.isEnabled()&&d.a.write("NativeScriptActivity.onBackPressed;",d.a.categories.NativeLifecycle);var r={eventName:"activityBackPressed",object:n.android,activity:e,cancel:!1};n.android.notify(r);if(!r.cancel){var i=this._rootView,o=!1,l={eventName:"activityBackPressed",object:i,activity:e,cancel:!1};i.notify(l);l.cancel||i.onBackPressed!==Frame.prototype.onBackPressed&&i.onBackPressed()||(o=!(i instanceof Frame)||!a.a.goBack());o&&t.call(e)}}onRequestPermissionsResult(e,t,r,i,a){d.a.isEnabled()&&d.a.write("NativeScriptActivity.onRequestPermissionsResult;",d.a.categories.NativeLifecycle);n.android.notify({eventName:"activityRequestPermissions",object:n.android,activity:e,requestCode:t,permissions:r,grantResults:i})}onActivityResult(e,t,r,i,a){a.call(e,t,r,i);d.a.isEnabled()&&d.a.write("NativeScriptActivity.onActivityResult(".concat(t,", ").concat(r,", ").concat(i,")"),d.a.categories.NativeLifecycle);n.android.notify({eventName:"activityResult",object:n.android,activity:e,requestCode:t,resultCode:r,intent:i})}resetActivityContent(e){if(this._rootView){var t=this._rootView._getFragmentManager();t.executePendingTransactions();this._rootView._onRootViewReset()}this._rootView=null;this.setActivityContent(e,null,!1);this._rootView.callLoaded()}setActivityContent(e,t,r){var i=this._rootView;d.a.isEnabled()&&d.a.write("Frame.setActivityContent rootView: ".concat(i," shouldCreateRootFrame: false fireLaunchEvent: ").concat(r),d.a.categories.NativeLifecycle);if(!i){var a=n.getMainEntry(),o=e.getIntent();r&&(i=E(o,t,null));if(!i){if(!a)throw new Error("Main entry is missing. App cannot be started. Verify app bootstrap.");i=m.a.createViewFromEntry(a)}this._rootView=i;S.set(i._domId,new WeakRef(i));var l=f.a.deviceType.toLowerCase();g.a.pushToSystemCssClasses("".concat(g.a.CLASS_PREFIX).concat("android"));g.a.pushToSystemCssClasses("".concat(g.a.CLASS_PREFIX).concat(l));g.a.pushToSystemCssClasses("".concat(g.a.CLASS_PREFIX).concat(n.android.orientation));g.a.pushToSystemCssClasses("".concat(g.a.CLASS_PREFIX).concat(n.android.systemAppearance));this._rootView.cssClasses.add(g.a.ROOT_VIEW_CSS_CLASS);var p=g.a.getSystemCssClasses();p.forEach(e=>this._rootView.cssClasses.add(e))}i._setupAsRootView(e);e.setContentView(i.nativeViewProtected,new org.nativescript.widgets.CommonLayoutParams)}}__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[androidx.appcompat.app.AppCompatActivity,android.os.Bundle,Object,Function]),__metadata("design:returntype",void 0)],ActivityCallbacksImplementation.prototype,"onCreate",null);__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[androidx.appcompat.app.AppCompatActivity,android.os.Bundle,Function]),__metadata("design:returntype",void 0)],ActivityCallbacksImplementation.prototype,"onSaveInstanceState",null);__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[androidx.appcompat.app.AppCompatActivity,android.content.Intent,Function,Function]),__metadata("design:returntype",void 0)],ActivityCallbacksImplementation.prototype,"onNewIntent",null);__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Function]),__metadata("design:returntype",void 0)],ActivityCallbacksImplementation.prototype,"onStart",null);__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Function]),__metadata("design:returntype",void 0)],ActivityCallbacksImplementation.prototype,"onStop",null);__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Function]),__metadata("design:returntype",void 0)],ActivityCallbacksImplementation.prototype,"onPostResume",null);__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Function]),__metadata("design:returntype",void 0)],ActivityCallbacksImplementation.prototype,"onDestroy",null);__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Function]),__metadata("design:returntype",void 0)],ActivityCallbacksImplementation.prototype,"onBackPressed",null);__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Number,Array,Array,Function]),__metadata("design:returntype",void 0)],ActivityCallbacksImplementation.prototype,"onRequestPermissionsResult",null);__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Number,Number,android.content.Intent,Function]),__metadata("design:returntype",void 0)],ActivityCallbacksImplementation.prototype,"onActivityResult",null);var E=Object(v.f)("notifyLaunch",(function notifyLaunch(e,t){var r={eventName:i.launchEvent,object:n.android,android:e,savedInstanceState:t};i.notify(r);i.notify({eventName:"loadAppCss",object:this,cssFile:i.getCssFileName()});return r.root}));function setActivityCallbacks(e){e._callbacks=new ActivityCallbacksImplementation}function setFragmentCallbacks(e){e._callbacks=new FragmentCallbacksImplementation}}).call(this,r(20))},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return Builder}));var n,i=r(50),a=r(54),o=r(13),l=r(125),d=r(18),p=r(6),h=r(48),m=r(44),g=d.e.ios.toLowerCase(),f=d.e.android.toLowerCase(),v=/tns\.xsd$/i;class Builder{static createViewFromEntry(t){if(t.create){var r=t.create();if(!r)throw new Error("Failed to create View with entry.create() function.");return r}if(t.moduleName){var n=Object(h.a)(t.moduleName),i=Object(m.c)(n,""),a=i?e.loadModule(i,!0):null;if(a&&a.createPage){var o=a.createPage(),l=Object(m.c)(n,"css");l&&o.addCssFile(l);return o}var d=loadInternal(n,a),p=d&&d.component;return p}throw new Error("Failed to load page XML file for module: "+t.moduleName)}static parse(e,t){if("function"==typeof e)return e();var r=t?getExports(t):void 0,n=parseInternal(e,r);return n&&n.component}static load(e,t){var r;if("string"==typeof e){var n=Object(h.a)(e);r=loadInternal(n,t)}else r=loadCustomComponent(e.path,e.name,e.attributes,e.exports,e.page,!0);return r&&r.component}static parseMultipleTemplates(e,t){var r="".concat(e,"");return parseInternal(r,t).component.itemTemplates}}Builder.knownTemplates=new Set(["itemTemplate"]);Builder.knownMultiTemplates=new Set(["itemTemplates"]);Builder.knownCollections=new Set(["items","spans","actionItems"]);function loadInternal(t,r){var n,i=Object(m.c)(t,"xml");if(i){var a=e.loadModule(i,!0);n=parseInternal(a,r,i,t)}var o=n&&n.component;if(o){o.exports=r;o._moduleName=t}if(!n)throw new Error("Failed to load component from module: "+t);return n}function loadCustomComponent(t,r,n,i,a){var d,p=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],g=arguments.length>6?arguments[6]:void 0;if(!a&&i){a=i._parentPage;delete i._parentPage}t=Object(h.a)(t);var f="".concat(t,"/").concat(r),v=Object(m.c)(f,""),y=Object(m.c)(f,"xml"),w=Object(m.c)(f,"css");if(y){var C=i;v&&(C=e.loadModule(v,!0));C||(C={});C._parentPage=a;d=loadInternal(f,C);if(Object(o.isDefined)(d)&&Object(o.isDefined)(d.component)&&Object(o.isDefined)(n))for(var S in n)Object(l.b)(d.component,C,i,S,n[S])}else{d=Object(l.a)(r,t,n,i,g,p);w||(w=Object(m.c)(t,"css"))}a&&w&&a.addCssFile(w);return d}function getExports(e){var t=!!e._domId;if(!t)return e.exports||e;for(var r=e.exports,n=e.parent;void 0===r&&n;){r=n.exports;n=n.parent}return r}function parseInternal(e,t,r,a){var o,l,d=i.debug&&r?n.SourceErrorFormat(r):n.PositionErrorFormat,p=i.debug&&r?n.ComponentSourceTracker(r):()=>{};(o=new n.XmlStringParser(d)).pipe(new n.PlatformFilter).pipe(new n.XmlStateParser(l=new n.ComponentParser(t,d,p,a)));o.parse(e);return l.rootComponentModule}!function(e){class XmlProducerBase{pipe(e){this._next=e;return e}next(e){this._next.parse(e)}}e.XmlProducerBase=XmlProducerBase;e.XmlStringParser=class XmlStringParser extends XmlProducerBase{constructor(e){super();this.error=e||PositionErrorFormat}parse(e){var t=new a.c(e=>{try{this.next(e)}catch(t){throw this.error(t,e.position)}},(e,t)=>{throw this.error(e,t)},!0);Object(o.isString)(e)?t.parse(e):Object(o.isObject)(e)&&Object(o.isString)(e.default)&&t.parse(e.default)}};function PositionErrorFormat(e,t){return new i.ScopeError(e,"Parsing XML at "+t.line+":"+t.column)}e.PositionErrorFormat=PositionErrorFormat;e.SourceErrorFormat=function SourceErrorFormat(e){return(t,r)=>{var n=r?new i.Source(e,r.line,r.column):new i.Source(e,-1,-1);t=new i.SourceError(t,n,"Building UI from XML.");return t}};e.ComponentSourceTracker=function ComponentSourceTracker(e){return(t,r)=>{if(!i.Source.get(t)){var n=r?new i.Source(e,r.line,r.column):new i.Source(e,-1,-1);i.Source.set(t,n)}}};class PlatformFilter extends XmlProducerBase{parse(e){if(e.eventType===a.b.StartElement&&PlatformFilter.isPlatform(e.elementName)){if(this.currentPlatformContext)throw new Error("Already in '"+this.currentPlatformContext+"' platform context and cannot switch to '"+e.elementName+"' platform! Platform tags cannot be nested.");this.currentPlatformContext=e.elementName}else e.eventType===a.b.EndElement&&PlatformFilter.isPlatform(e.elementName)?this.currentPlatformContext=void 0:this.currentPlatformContext&&!PlatformFilter.isCurentPlatform(this.currentPlatformContext)||this.next(e)}static isPlatform(e){if(e){var t=e.toLowerCase();return t===f||t===g}return!1}static isCurentPlatform(e){return e&&e.toLowerCase()===d.a.os.toLowerCase()}}e.PlatformFilter=PlatformFilter;e.XmlArgsReplay=class XmlArgsReplay extends XmlProducerBase{constructor(e,t){super();this.args=e;this.error=t}replay(){this.args.forEach(e=>{try{this.next(e)}catch(t){throw this.error(t,e.position)}})}};class XmlStateParser{constructor(e){this.state=e}parse(e){this.state=this.state.parse(e)}}e.XmlStateParser=XmlStateParser;class TemplateParser{constructor(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.parent=e;this._context=t.context;this._recordedXmlStream=new Array;this._templateProperty=t;this._nestingLevel=0;this._state=0;this._setTemplateProperty=r}parse(e){e.eventType===a.b.StartElement?this.parseStartElement(e.prefix,e.namespace,e.elementName,e.attributes):e.eventType===a.b.EndElement&&this.parseEndElement(e.prefix,e.elementName);this._recordedXmlStream.push(e);return 2===this._state?this.parent:this}get elementName(){return this._templateProperty.elementName}parseStartElement(e,t,r,n){if(0===this._state)this._state=1;else if(2===this._state)throw new Error("Template must have exactly one root element but multiple elements were found.");this._nestingLevel++}parseEndElement(e,t){if(0===this._state)throw new Error("Template must have exactly one root element but none was found.");if(2===this._state)throw new Error("No more closing elements expected for this template.");this._nestingLevel--;if(0===this._nestingLevel){this._state=2;if(this._setTemplateProperty&&this._templateProperty.name in this._templateProperty.parent.component){var r=this.buildTemplate();this._templateProperty.parent.component[this._templateProperty.name]=r}}}buildTemplate(){var t=this._context,r=this._templateProperty.errorFormat,n=this._templateProperty.sourceTracker,i=Object(p.f)("Template()",()=>{var i,a;(i=new e.XmlArgsReplay(this._recordedXmlStream,r)).pipe(new XmlStateParser(a=new ComponentParser(t,r,n)));i.replay();return a.rootComponentModule.component});return i}}e.TemplateParser=TemplateParser;class MultiTemplateParser{constructor(e,t){this.parent=e;this.templateProperty=t;this._childParsers=new Array}get value(){return this._value}parse(e){if(e.eventType===a.b.StartElement&&"template"===e.elementName){var t=new TemplateParser(this,this.templateProperty,!1);t.key=e.attributes.key;this._childParsers.push(t);return t}if(e.eventType===a.b.EndElement){var r=ComponentParser.getComplexPropertyName(e.elementName);if(r===this.templateProperty.name){for(var n=new Array,i=0;ir.path===o.concat(e))}t&&i?t._onCssStateChange():n&&n(r)}function setCssFileName(t){S=t;e.NativeScriptGlobals.events.notify({eventName:"cssChanged",object:b,cssFile:t})}function getCssFileName(){return S}function loadAppCss(){try{e.NativeScriptGlobals.events.notify({eventName:"loadAppCss",object:b,cssFile:getCssFileName()})}catch(e){throw new Error("The app CSS file ".concat(getCssFileName()," couldn't be loaded!"))}}function applyCssClass(e,t,r){if(!e.cssClasses.has(r)){t.forEach(t=>function removeCssClass(e,t){i.a.removeSystemCssClass(t);e.cssClasses.delete(t)}(e,t));!function addCssClass(e,t){i.a.pushToSystemCssClasses(t);e.cssClasses.add(t)}(e,r);!function increaseStyleScopeApplicationCssSelectorVersion(e){var t=e._styleScope||e.currentPage&&e.currentPage._styleScope;t&&t._increaseApplicationCssSelectorVersion()}(e);e._onCssStateChange()}}function orientationChanged(e,t){if(e){var r="".concat(i.a.CLASS_PREFIX).concat(t);applyCssClass(e,w,r);var n=e._getRootModalViews();n.forEach(e=>{applyCssClass(e,w,r)})}}var I=!0;function setAutoSystemAppearanceChanged(e){I=e}function systemAppearanceChanged(e,t){if(e&&I){var r="".concat(i.a.CLASS_PREFIX).concat(t);applyCssClass(e,C,r);var n=e._getRootModalViews();n.forEach(e=>{applyCssClass(e,C,r)})}}e.__onUncaughtError=function(t){e.NativeScriptGlobals.events.notify({eventName:g,object:b,android:t,ios:t,error:t})};e.__onDiscardedError=function(t){e.NativeScriptGlobals.events.notify({eventName:f,object:b,error:t})}}).call(this,r(20))},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return ModuleNameResolver}));r.d(t,"c",(function(){return resolveModuleName}));r.d(t,"b",(function(){return _setResolver}));var n,i=r(18),a=r(43),o=r(142),l=r(1);class ModuleNameResolver{constructor(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.getRegisteredModules;this.context=t;this.moduleListProvider=r;this._cache={}}resolveModuleName(e,t){var r=e+t,n=this._cache[r];if(void 0===n){n=this.resolveModuleNameImpl(e,t);this._cache[r]=n}l.a.isEnabled()&&l.a.write("path: '".concat(e,"' with ext: '").concat(t,"' resolved: '").concat(n,"'"),l.a.categories.ModuleNameResolver);return n}clearCache(){this._cache={}}resolveModuleNameImpl(e,t){var r;t=t?"."+t:"";e=Object(o.b)(e);var n=this.getCandidates(e,t);r=Object(o.a)(e,t,n,this.context);return r}getCandidates(e,t){var r=this.moduleListProvider().filter(r=>r.startsWith(e)&&(!t||r.endsWith(t)));return r}}function resolveModuleName(t,r){if(e.__snapshot)return function resolveModuleSnapshot(e,t){l.a.write("Resolving module in SNAPSHOT context - path: '".concat(e,"' with ext: '").concat(t,"'"),l.a.categories.ModuleNameResolver);return new ModuleNameResolver({width:400,height:800,os:"Android",deviceType:"Phone"}).resolveModuleName(e,t)}(t,r);n||(n=new ModuleNameResolver({width:i.b.mainScreen.widthDIPs,height:i.b.mainScreen.heightDIPs,os:i.a.os,deviceType:i.a.deviceType}));return n.resolveModuleName(t,r)}function _setResolver(e){n=e}a.on("livesync",e=>function clearCache(){n&&n.clearCache()}());a.on("orientationChanged",e=>{n=void 0})}).call(this,r(20))},function(e,t,r){var n=r(8);t.makeText=function makeText(e,t){"use strict";var r=android.widget.Toast;if("string"!=typeof e)throw new Error("The `text` parameter is missing.");var i="string"==typeof t&&"l"===t[0]?r.LENGTH_LONG:r.LENGTH_SHORT,a=new android.text.SpannableString(e);a.setSpan(new android.text.style.AlignmentSpan.Standard(android.text.Layout.Alignment.ALIGN_CENTER),0,e.length-1,android.text.Spannable.SPAN_INCLUSIVE_INCLUSIVE);return r.makeText(n.android.context,a,i)}},function(e,t,r){"use strict";r.d(t,"a",(function(){return Font}));r.d(t,"b",(function(){return n}));r.d(t,"c",(function(){return i}));r.d(t,"f",(function(){return parseFontFamily}));r.d(t,"d",(function(){return a}));r.d(t,"e",(function(){return parseFont}));var n,i,a,o=r(0);class Font{constructor(e,t,r,n){this.fontFamily=e;this.fontSize=t;this.fontStyle=r;this.fontWeight=n}get isItalic(){return this.fontStyle===n.ITALIC}get isBold(){return this.fontWeight===i.SEMI_BOLD||this.fontWeight===i.BOLD||"700"===this.fontWeight||this.fontWeight===i.EXTRA_BOLD||this.fontWeight===i.BLACK}static equals(e,t){return!e&&!t||!(!e||!t)&&(e.fontFamily===t.fontFamily&&e.fontSize===t.fontSize&&e.fontStyle===t.fontStyle&&e.fontWeight===t.fontWeight)}}Font.default=void 0;!function(e){e.NORMAL="normal";e.ITALIC="italic";e.isValid=Object(o.makeValidator)(e.NORMAL,e.ITALIC);e.parse=Object(o.makeParser)(e.isValid)}(n||(n={}));!function(e){e.THIN="100";e.EXTRA_LIGHT="200";e.LIGHT="300";e.NORMAL="normal";e.MEDIUM="500";e.SEMI_BOLD="600";e.BOLD="bold";e.EXTRA_BOLD="800";e.BLACK="900";e.isValid=Object(o.makeValidator)(e.THIN,e.EXTRA_LIGHT,e.LIGHT,e.NORMAL,"400",e.MEDIUM,e.SEMI_BOLD,e.BOLD,"700",e.EXTRA_BOLD,e.BLACK);e.parse=Object(o.makeParser)(e.isValid)}(i||(i={}));function parseFontFamily(e){var t=new Array;if(!e)return t;for(var r=e.split(","),n=0;nl.add(e));var d=new Set;[i.THIN,i.EXTRA_LIGHT,i.LIGHT,i.NORMAL,"400",i.MEDIUM,i.SEMI_BOLD,i.BOLD,"700",i.EXTRA_BOLD,i.BLACK].forEach((e,t,r)=>d.add(e));function parseFont(e){for(var t,r={fontStyle:"normal",fontVariant:"normal",fontWeight:"normal"},n=e.split(/\s+/);t=n.shift();)if("normal"===t);else if("small-caps"===t)r.fontVariant=t;else if(l.has(t))r.fontStyle=t;else if(d.has(t))r.fontWeight=t;else{if(r.fontSize){r.fontFamily=t;n.length&&(r.fontFamily+=" "+n.join(" "));break}var i=t.split("/");r.fontSize=i[0];r.lineHeight=i.length>1?i[1]:void 0}return r}},function(e,t,r){"use strict";r.d(t,"a",(function(){return EditableTextBase}));r.d(t,"h",(function(){return p}));r.d(t,"f",(function(){return m}));r.d(t,"i",(function(){return f}));r.d(t,"d",(function(){return v}));r.d(t,"j",(function(){return y}));r.d(t,"b",(function(){return C}));r.d(t,"c",(function(){return S}));r.d(t,"e",(function(){return b}));r.d(t,"g",(function(){return x}));var n=r(22),i=r(0),a=r(19),o=r(11),l=r(7),d=r(4);class EditableTextBase extends n.a{constructor(){super(...arguments);this._focusHandler=()=>this._goToVisualState("focus");this._blurHandler=()=>this._goToVisualState("blur")}_updateTextBaseFocusStateHandler(e){var t=e?"on":"off";this[t]("focus",this._focusHandler);this[t]("blur",this._blurHandler)}}EditableTextBase.blurEvent="blur";EditableTextBase.focusEvent="focus";EditableTextBase.textChangeEvent="textChange";__decorate([Object(a.b)("focus","blur"),__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],EditableTextBase.prototype,"_updateTextBaseFocusStateHandler",null);var p=new i.CssProperty({name:"placeholderColor",cssName:"placeholder-color",equalityComparer:d.a.equals,valueConverter:e=>new d.a(e)});p.register(l.a);var h=Object(i.makeParser)(Object(i.makeValidator)("datetime","phone","number","url","email","integer")),m=new i.Property({name:"keyboardType",valueConverter:h});m.register(EditableTextBase);var g=Object(i.makeParser)(Object(i.makeValidator)("done","next","go","search","send")),f=new i.Property({name:"returnKeyType",valueConverter:g});f.register(EditableTextBase);var v=new i.Property({name:"editable",defaultValue:!0,valueConverter:o.b});v.register(EditableTextBase);var y=new i.Property({name:"updateTextTrigger",defaultValue:"textChanged"});y.register(EditableTextBase);var w=Object(i.makeParser)(Object(i.makeValidator)("none","words","sentences","allcharacters")),C=new i.Property({name:"autocapitalizationType",defaultValue:"sentences",valueConverter:w});C.register(EditableTextBase);var S=new i.Property({name:"autocorrect",valueConverter:o.b});S.register(EditableTextBase);var b=new i.Property({name:"hint",defaultValue:""});b.register(EditableTextBase);var x=new i.Property({name:"maxLength",defaultValue:Number.POSITIVE_INFINITY,valueConverter:parseInt});x.register(EditableTextBase)},function(e,t,r){"use strict";r.d(t,"a",(function(){return sanitizeModuleName}));function sanitizeModuleName(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e=e.trim();e.startsWith("~/")?e=e.substring(2):(e.startsWith("~")||e.startsWith("/"))&&(e=e.substring(1));if(t){var r=["js","ts","xml","html","css","scss"],n=new RegExp("(.*)\\.(?:".concat(r.join("|"),")"),"i");e=e.replace(n,"$1")}return e}},function(e,t,r){"use strict";r.d(t,"a",(function(){return lazy}));function lazy(e){var t;return()=>t||(t=e())}},function(e,t,r){"use strict";r.r(t);r.d(t,"debug",(function(){return a}));r.d(t,"Source",(function(){return Source}));r.d(t,"ScopeError",(function(){return ScopeError}));r.d(t,"SourceError",(function(){return SourceError}));var n,i=r(17),a=!0;class Source{constructor(e,t,r){!function ensureAppRootPath(){if(!n){n=i.knownFolders.currentApp().path;n=n.substr(0,n.length-"app/".length)}}();e.length>n.length&&e.substr(0,n.length)===n?this._uri="file://"+e.substr(n.length):this._uri=e;this._line=t;this._column=r}get uri(){return this._uri}get line(){return this._line}get column(){return this._column}toString(){return this._uri+":"+this._line+":"+this._column}static get(e){return e[Source._source]}static set(e,t){e[Source._source]=t}}Source._source=Symbol("source");class ScopeError extends Error{constructor(e,t){var r;r=t&&e.message?t+"\n > "+e.message.replace("\n","\n "):t||e.message||void 0;super(r);this.stack="Error: "+this.message+"\n"+e.stack.substr(e.stack.indexOf("\n")+1);this.message=r}}class SourceError extends ScopeError{constructor(e,t,r){super(e,r?r+" @"+t:t+"")}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));r.d(t,"g",(function(){return d}));r.d(t,"f",(function(){return p}));r.d(t,"c",(function(){return h}));r.d(t,"d",(function(){return m}));r.d(t,"e",(function(){return g}));r.d(t,"b",(function(){return f}));var n=r(5),i=r(19),a=r(0),o=new Date,dateComparer=(e,t)=>e<=t&&e>=t,l=class DatePickerBase extends n.c{};l=__decorate([Object(i.a)("DatePicker")],l);l.prototype.recycleNativeView="auto";var d=new a.Property({name:"year",defaultValue:o.getFullYear(),valueConverter:e=>parseInt(e)});d.register(l);var p=new a.Property({name:"month",defaultValue:o.getMonth()+1,valueConverter:e=>parseInt(e)});p.register(l);var h=new a.Property({name:"day",defaultValue:o.getDate(),valueConverter:e=>parseInt(e)});h.register(l);var m=new a.Property({name:"maxDate",equalityComparer:dateComparer,valueConverter:e=>new Date(e)});m.register(l);var g=new a.Property({name:"minDate",equalityComparer:dateComparer,valueConverter:e=>new Date(e)});g.register(l);var f=new a.Property({name:"date",defaultValue:o,equalityComparer:dateComparer,valueConverter:e=>new Date(e)});f.register(l);var v=new a.Property({name:"iosPreferredDatePickerStyle",defaultValue:0,valueConverter:e=>parseInt(e)});v.register(l)},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));r.d(t,"e",(function(){return d}));r.d(t,"b",(function(){return p}));r.d(t,"d",(function(){return h}));r.d(t,"c",(function(){return m}));var n=r(5),i=r(19),a=r(0),o=r(4),l=class SearchBarBase extends n.c{};l.submitEvent="submit";l.clearEvent="clear";l=__decorate([Object(i.a)("SearchBar")],l);l.prototype.recycleNativeView="auto";var d=new a.Property({name:"text",defaultValue:"",affectsLayout:!1});d.register(l);var p=new a.Property({name:"hint",defaultValue:""});p.register(l);var h=new a.Property({name:"textFieldHintColor",equalityComparer:o.a.equals,valueConverter:e=>new o.a(e)});h.register(l);var m=new a.Property({name:"textFieldBackgroundColor",equalityComparer:o.a.equals,valueConverter:e=>new o.a(e)});m.register(l)},function(e,t,r){"use strict";r.r(t);r.d(t,"Label",(function(){return p}));var n,i=r(22),a=r(21),o=r(6),l=r(19),d=r(11);r.d(t,"TextBaseCommon",(function(){return i.b}));r.d(t,"isBold",(function(){return i.f}));r.d(t,"textProperty",(function(){return i.l}));r.d(t,"formattedTextProperty",(function(){return i.c}));r.d(t,"getClosestPropertyValue",(function(){return i.d}));r.d(t,"textAlignmentProperty",(function(){return i.j}));r.d(t,"textTransformProperty",(function(){return i.m}));r.d(t,"whiteSpaceProperty",(function(){return i.n}));r.d(t,"textDecorationProperty",(function(){return i.k}));r.d(t,"letterSpacingProperty",(function(){return i.g}));r.d(t,"lineHeightProperty",(function(){return i.h}));r.d(t,"resetSymbol",(function(){return i.i}));r.d(t,"TextBase",(function(){return i.a}));r.d(t,"getTransformedText",(function(){return i.e}));var p=class Label extends i.a{get textWrap(){return"normal"===this.style.whiteSpace}set textWrap(e){"string"==typeof e&&(e=Object(d.b)(e));this.style.whiteSpace=e?"normal":"nowrap"}createNativeView(){n||(n=android.widget.TextView);return new n(this._context)}initNativeView(){super.initNativeView();var e=this.nativeTextViewProtected;e.setSingleLine(!0);e.setEllipsize(android.text.TextUtils.TruncateAt.END)}[a.l.setNative](e){var t="initial"===e?"nowrap":e;super[a.l.setNative](t)}};__decorate([o.f,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],p.prototype,"createNativeView",null);p=__decorate([Object(l.a)("Label")],p);p.prototype._isSingleLine=!0;p.prototype.recycleNativeView="auto"},function(e,t,r){"use strict";(function(e){r.d(t,"b",(function(){return ParserEventType}));r.d(t,"a",(function(){return ParserEvent}));r.d(t,"c",(function(){return XmlParser}));var n,i=r(138);r(138);class ParserEventType{}ParserEventType.StartElement="StartElement";ParserEventType.EndElement="EndElement";ParserEventType.Text="Text";ParserEventType.CDATA="CDATA";ParserEventType.Comment="Comment";class ParserEvent{constructor(e,t,r,n,i,a,o){this._eventType=e;this._position=t;this._prefix=r;this._namespace=n;this._elementName=i;this._attributes=a;this._data=o}toString(){return JSON.stringify({eventType:this.eventType,position:this.position,prefix:this.prefix,namespace:this.namespace,elementName:this.elementName,attributes:this.attributes,data:this.data})}get eventType(){return this._eventType}get position(){return this._position}get prefix(){return this._prefix}get namespace(){return this._namespace}get elementName(){return this._elementName}get attributes(){return this._attributes}get data(){return this._data}}var a=/&#(\d+);|&#x([0123456789abcdef]+);|&(\w+);/gi;function _generateAmpMap(){var e={Tab:9,NewLine:10,excl:33,quot:34,QUOT:34,num:35,dollar:36,percent:37,amp:38,AMP:38,apos:39,lpar:40,rpar:41,ast:42,midast:42,plus:43,comma:44,period:46,sol:47,colon:58,semi:59,lt:60,LT:60,equals:61,gt:62,GT:62,quest:63,commat:64,lsqb:91,lbrack:91,bsol:92,rsqb:92,rbrack:92,Hat:94,lowbar:95,grave:96,DiacriticalGrave:96,lcub:123,lbrace:123,verbar:124,vert:124,VerticalLine:124,rcub:125,rbrace:125,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,brkbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,hibar:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Dstrok:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,fnof:402,imped:437,gacute:501,jmath:567,circ:710,caron:711,Hacek:711,breve:728,Breve:728,dot:729,DiacriticalDot:729,ring:730,ogon:731,tilde:732,DiacriticalTilde:732,dblac:733,DiacriticalDoubleAcute:733,DownBreve:785,UnderBar:818,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,epsiv:949,varepsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigmav:962,varsigma:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetav:977,vartheta:977,thetasym:977,Upsi:978,upsih:978,straightphi:981,piv:982,varpi:982,Gammad:988,gammad:989,digamma:989,kappav:1008,varkappa:1008,rhov:1009,varrho:1009,epsi:1013,straightepsilon:1013,bepsi:1014,backepsilon:1014,euro:8364,trade:8482,TRADE:8482,forall:8704,part:8706,larr:8592,rarr:8593,hyphen:8208,dash:8208,ndash:8211,mdash:8212,horbar:8213,Vert:8214,Verbar:8214,lsquo:8216,OpenCurlyQuote:8216,rsquo:8217,rsquor:8217,CloseCurlyQuote:8217,lsquor:8218,sbquo:8218,ldquo:8220,OpenCurlyDoubleQuote:8220,rdquo:8221,rdquor:8221,CloseCurlyDoubleQuote:8221,ldquor:8222,bdquo:8222,dagger:8224,Dagger:8225,ddagger:8225,bull:8226,bullet:8226,nldr:8229,hellip:8230,mldr:8230,hybull:8259,tdot:8411,TripleDot:8411,DotDot:8412,star:9734,phone:9742,spades:9824,clubs:9827,hearts:9829,diams:9830,female:9792,male:9794,check:10003,checkmark:10003,cross:10007,VerticalSeparator:10072,EmptySmallSquare:9723,FilledSmallSquare:9724,starf:9733,bigstar:9733,square:9633,squ:9633,Square:9633},t=new Map;for(var r in e)e.hasOwnProperty(r)&&t.set(r,e[r]);return t}e.__snapshot&&(n=_generateAmpMap());function _HandleAmpEntities(e,t,r,i){if(i){n||(n=_generateAmpMap());var a=n.get(i);return a?String.fromCodePoint(a):e}return t?String.fromCodePoint(parseInt(t,10)):String.fromCodePoint(parseInt(r,16))}class XmlParser{constructor(e,t,r){this._processNamespaces=r;this._parser=new i.EasySAXParser;var n=this;this._parser.on("startNode",(function(t,r,i,a,o,l){var d=r();!0===d&&(d=void 0);if(d)for(var p in d)d.hasOwnProperty(p)&&(d[p]=XmlParser._dereferenceEntities(d[p]));var h=void 0,m=void 0,g=t;if(n._processNamespaces){var f=XmlParser._getNamespacesStackEntry(d);n._namespaceStack.push(f);var v=n._resolveNamespace(g);h=v.prefix;m=v.namespace;g=v.name}e(new ParserEvent(ParserEventType.StartElement,l(),h,m,g,d,void 0))}));this._parser.on("textNode",(function(t,r,n){var i=r(XmlParser._dereferenceEntities(t));e(new ParserEvent(ParserEventType.Text,n(),void 0,void 0,void 0,void 0,i))}));this._parser.on("endNode",(function(t,r,i,a,o){var l=void 0,d=void 0,p=t;if(n._processNamespaces){var h=n._resolveNamespace(p);l=h.prefix;d=h.namespace;p=h.name}e(new ParserEvent(ParserEventType.EndElement,o(),l,d,p,void 0,void 0));n._processNamespaces&&n._namespaceStack.pop()}));this._parser.on("cdata",(function(t,r,n){e(new ParserEvent(ParserEventType.CDATA,n(),void 0,void 0,void 0,void 0,t))}));this._parser.on("comment",(function(t,r,n){e(new ParserEvent(ParserEventType.Comment,n(),void 0,void 0,void 0,void 0,t))}));t&&this._parser.on("error",(function(e,r){t(new Error(e),r())}))}get angularSyntax(){return this._parser.angularSyntax}set angularSyntax(e){this._parser.angularSyntax=e}parse(e){this._processNamespaces&&(this._namespaceStack=[]);this._parser.parse(e)}static _getNamespacesStackEntry(e){var t,r,n={};if(!e)return n;for(var i in e)if(e.hasOwnProperty(i)){t=i;if(0===t.indexOf("xmlns")){r="";-1!==t.indexOf(":")&&(r=t.split(":")[1]);n[r]=e[i]}}return n}_resolveNamespace(e){var t,r={prefix:void 0,namespace:void 0,name:void 0};r.prefix="";if(-1!==e.indexOf(":")){var n=e.split(":");r.prefix=n[0];r.name=n[1]}else r.name=e;for(var i=this._namespaceStack.length-1;i>=0;i--){t=this._namespaceStack[i];for(var a in t)if(t.hasOwnProperty(a)&&r.prefix===a){r.namespace=t[a];return r}}return r}static _dereferenceEntities(e){e=String(e);e.length>3&&-1!==e.indexOf("&")&&(e=e.replace(a,_HandleAmpEntities));return e}}}).call(this,r(20))},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n;!function(e){e[e.back=0]="back";e[e.forward=1]="forward";e[e.replace=2]="replace"}(n||(n={}))},function(e,t,r){"use strict";r.d(t,"g",(function(){return hasKey}));r.d(t,"d",(function(){return getBoolean}));r.d(t,"f",(function(){return getString}));r.d(t,"e",(function(){return getNumber}));r.d(t,"i",(function(){return setBoolean}));r.d(t,"k",(function(){return setString}));r.d(t,"j",(function(){return setNumber}));r.d(t,"h",(function(){return remove}));r.d(t,"a",(function(){return clear}));r.d(t,"b",(function(){return flush}));r.d(t,"c",(function(){return getAllKeys}));function ensureValidValue(e,t){if(typeof e!==t)throw new Error("value: '"+e+"' must be a "+t)}var n,i=r(8);function ensureSharedPreferences(){n||(n=Object(i.getNativeApplication)().getApplicationContext().getSharedPreferences("prefs.db",0))}function verify(e){!function checkKey(e){if("string"!=typeof e)throw new Error("key: '"+e+"' must be a string")}(e);ensureSharedPreferences()}function hasKey(e){verify(e);return n.contains(e)}function getBoolean(e,t){verify(e);return hasKey(e)?n.getBoolean(e,!1):t}function getString(e,t){verify(e);return hasKey(e)?n.getString(e,""):t}function getNumber(e,t){verify(e);return hasKey(e)?n.getFloat(e,float(0)):t}function setBoolean(e,t){verify(e);ensureValidValue(t,"boolean");var r=n.edit();r.putBoolean(e,t);r.apply()}function setString(e,t){verify(e);ensureValidValue(t,"string");var r=n.edit();r.putString(e,t);r.apply()}function setNumber(e,t){verify(e);ensureValidValue(t,"number");var r=n.edit();r.putFloat(e,float(t));r.apply()}function remove(e){verify(e);var t=n.edit();t.remove(e);t.apply()}function clear(){ensureSharedPreferences();n.edit().clear().apply()}function flush(){ensureSharedPreferences();return n.edit().commit()}function getAllKeys(){ensureSharedPreferences();for(var e=n.getAll(),t=e.keySet().iterator(),r=[];t.hasNext();){var i=t.next();r.push(i)}return r}},function(e,t,r){"use strict";r.d(t,"a",(function(){return h}));var n,i=r(19),a=r(5),o=r(2),l=r(111),d=r(53),p=r(21),h=n=class TabStripItem extends a.c{get title(){return this.isLoaded?this.label.text:this._title}set title(e){this._title=e;this.isLoaded&&(this.label.text=e)}get iconClass(){return this.isLoaded?this.image.className:this._iconClass}set iconClass(e){this._iconClass=e;this.isLoaded&&(this.image.className=e)}get iconSource(){return this.isLoaded?this.image.src:this._iconSource}set iconSource(e){this._iconSource=e;this.isLoaded&&(this.image.src=e)}onLoaded(){if(!this.image){var e=new l.a;e.src=this.iconSource;e.className=this.iconClass;this.image=e;this._addView(this.image)}if(!this.label){var t=new d.Label;t.text=this.title;this.label=t;this._addView(this.label)}super.onLoaded();this._labelColorHandler=this._labelColorHandler||(e=>{var t=this.parent,r=t&&t.parent;return r&&r.setTabBarItemColor(this,e.value)});this.label.style.on("colorChange",this._labelColorHandler);this._labelFontHandler=this._labelFontHandler||(e=>{var t=this.parent,r=t&&t.parent;return r&&r.setTabBarItemFontInternal(this,e.value)});this.label.style.on("fontInternalChange",this._labelFontHandler);this._labelTextTransformHandler=this._labelTextTransformHandler||(e=>{var t=this.parent,r=t&&t.parent;return r&&r.setTabBarItemTextTransform(this,e.value)});this.label.style.on("textTransformChange",this._labelTextTransformHandler);this._labelTextHandler=this._labelTextHandler||(e=>{var t=this.parent,r=t&&t.parent;return r&&r.setTabBarItemTitle(this,e.value)});this.label.on("textChange",this._labelTextHandler);this._imageColorHandler=this._imageColorHandler||(e=>{var t=this.parent,r=t&&t.parent;return r&&r.setTabBarIconColor(this,e.value)});this.image.style.on("colorChange",this._imageColorHandler);this._imageFontHandler=this._imageFontHandler||(e=>{var t=this.parent,r=t&&t.parent;return r&&r.setTabBarIconColor(this,e.value)});this.image.style.on("fontInternalChange",this._imageFontHandler);this._imageSrcHandler=this._imageSrcHandler||(e=>{var t=this.parent,r=t&&t.parent;return r&&r.setTabBarIconSource(this,e.value)});this.image.on("srcChange",this._imageSrcHandler)}onUnloaded(){super.onUnloaded();this.label.style.off("colorChange",this._labelColorHandler);this.label.style.off("fontInternalChange",this._labelFontHandler);this.label.style.off("textTransformChange",this._labelTextTransformHandler);this.label.style.off("textChange",this._labelTextHandler);this.image.style.off("colorChange",this._imageColorHandler);this.image.style.off("fontInternalChange",this._imageFontHandler);this.image.style.off("srcChange",this._imageSrcHandler)}eachChild(e){this.label&&e(this.label);this.image&&e(this.image)}_addChildFromBuilder(e,t){if(t instanceof l.a){this.image=t;this.iconSource=t.src;this.iconClass=t.className;this._addView(t)}if(t instanceof d.Label){this.label=t;this.title=t.text;this._addView(t)}}requestLayout(){var e=this.parent;e&&e.requestLayout()}_updateTabStateChangeHandler(e){if(e){this._highlightedHandler=this._highlightedHandler||(()=>{this._goToVisualState("highlighted")});this._normalHandler=this._normalHandler||(()=>{this._goToVisualState("normal")});this.on(n.selectEvent,this._highlightedHandler);this.on(n.unselectEvent,this._normalHandler);var t=this.parent,r=t&&t.parent;this._index===r.selectedIndex&&this._goToVisualState("highlighted")}else{this.off(n.selectEvent,this._highlightedHandler);this.off(n.unselectEvent,this._normalHandler)}}[o.backgroundColorProperty.getDefault](){var e=this.parent,t=e&&e.parent;return t&&t.getTabBarBackgroundColor()}[o.backgroundColorProperty.setNative](e){var t=this.parent,r=t&&t.parent;return r&&r.setTabBarItemBackgroundColor(this,e)}[p.k.getDefault](){var e=this.parent,t=e&&e.parent;return t&&t.getTabBarItemTextTransform(this)}[p.k.setNative](e){var t=this.parent,r=t&&t.parent;return r&&r.setTabBarItemTextTransform(this,e)}[o.backgroundInternalProperty.getDefault](){return null}[o.backgroundInternalProperty.setNative](e){}};h.tapEvent="tap";h.selectEvent="select";h.unselectEvent="unselect";__decorate([Object(i.b)("normal","highlighted","pressed","active"),__metadata("design:type",Function),__metadata("design:paramtypes",[Boolean]),__metadata("design:returntype",void 0)],h.prototype,"_updateTabStateChangeHandler",null);h=n=__decorate([Object(i.a)("TabStripItem")],h)},function(e,t,r){"use strict";(function(t){t.process=t.process||{};t.process.env=t.process.env||{};var n=r(3),i=Object.freeze({});function isUndef(e){return null==e}function isDef(e){return null!=e}function isTrue(e){return!0===e}function isPrimitive(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function isObject(e){return null!==e&&"object"==typeof e}var a=Object.prototype.toString;function isPlainObject(e){return"[object Object]"===a.call(e)}function isRegExp(e){return"[object RegExp]"===a.call(e)}function isValidArrayIndex(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function isPromise(e){return isDef(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function toString(e){return null==e?"":Array.isArray(e)||isPlainObject(e)&&e.toString===a?JSON.stringify(e,null,2):String(e)}function toNumber(e){var t=parseFloat(e);return isNaN(t)?e:t}function makeMap(e,t){for(var r=Object.create(null),n=e.split(","),i=0;i-1)return e.splice(r,1)}}var d=Object.prototype.hasOwnProperty;function hasOwn(e,t){return d.call(e,t)}function cached(e){var t=Object.create(null);return function cachedFn(r){var n=t[r];return n||(t[r]=e(r))}}var p=/-(\w)/g,h=cached((function(e){return e.replace(p,(function(e,t){return t?t.toUpperCase():""}))})),m=cached((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),g=/\B([A-Z])/g,f=cached((function(e){return e.replace(g,"-$1").toLowerCase()}));var v=Function.prototype.bind?function nativeBind(e,t){return e.bind(t)}:function polyfillBind(e,t){function boundFn(r){var n=arguments.length;return n?n>1?e.apply(t,arguments):e.call(t,r):e.call(t)}boundFn._length=e.length;return boundFn};function toArray(e,t){t=t||0;for(var r=e.length-t,n=new Array(r);r--;)n[r]=e[r+t];return n}function extend(e,t){for(var r in t)e[r]=t[r];return e}function noop(e,t,r){}var y=function no(e,t,r){return!1},w=function identity(e){return e};function looseEqual(e,t){if(e===t)return!0;var r=isObject(e),n=isObject(t);if(!r||!n)return!r&&!n&&String(e)===String(t);try{var i=Array.isArray(e),a=Array.isArray(t);if(i&&a)return e.length===t.length&&e.every((function(e,r){return looseEqual(e,t[r])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||a)return!1;var o=Object.keys(e),l=Object.keys(t);return o.length===l.length&&o.every((function(r){return looseEqual(e[r],t[r])}))}catch(e){return!1}}function looseIndexOf(e,t){for(var r=0;r0),I=(k&&k.indexOf("android"),k&&/iphone|ipad|ipod|ios/.test(k)||"ios"===P),V=(k&&/chrome\/\d+/.test(k),k&&/phantomjs/.test(k),k&&k.match(/firefox\/(\d+)/),{}.watch);if(x)try{var L={};Object.defineProperty(L,"passive",{get:function get(){!0}});window.addEventListener("test-passive",null,L)}catch(e){}var N=function isServerRendering(){return!1};function isNative(e){return"function"==typeof e&&/native code/.test(e.toString())}var O,D="undefined"!=typeof Symbol&&isNative(Symbol)&&"undefined"!=typeof Reflect&&isNative(Reflect.ownKeys);O="undefined"!=typeof Set&&isNative(Set)?Set:function(){function Set(){this.set=Object.create(null)}Set.prototype.has=function has(e){return!0===this.set[e]};Set.prototype.add=function add(e){this.set[e]=!0};Set.prototype.clear=function clear(){this.set=Object.create(null)};return Set}();var F=["component","directive","filter"],R=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],B={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:y,isReservedAttr:y,isUnknownElement:y,getTagNamespace:noop,parsePlatformTagName:w,mustUseProp:y,async:!0,_lifecycleHooks:R},M=noop,z=0,W=function Dep(){this.id=z++;this.subs=[]};W.prototype.addSub=function addSub(e){this.subs.push(e)};W.prototype.removeSub=function removeSub(e){remove(this.subs,e)};W.prototype.depend=function depend(){W.target&&W.target.addDep(this)};W.prototype.notify=function notify(){var e=this.subs.slice();0;for(var t=0,r=e.length;t-1)if(a&&!hasOwn(i,"default"))o=!1;else if(""===o||o===f(e)){var d=getTypeIndex(String,i.type);(d<0||ldocument.createEvent("Event").timeStamp&&(me=function getNow(){return ge.now()})}function flushSchedulerQueue(){me();pe=!0;var e,r;le.sort((function(e,t){return e.id-t.id}));for(he=0;hehe&&le[r].id>e.id;)r--;le.splice(r+1,0,e)}else le.push(e);if(!ue){ue=!0;0;nextTick(flushSchedulerQueue)}}}(this)};ve.prototype.run=function run(){if(this.active){var e=this.get();if(e!==this.value||isObject(e)||this.deep){var t=this.value;this.value=e;if(this.user)try{this.cb.call(this.vm,e,t)}catch(e){handleError(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}};ve.prototype.evaluate=function evaluate(){this.value=this.get();this.dirty=!1};ve.prototype.depend=function depend(){for(var e=this.deps.length;e--;)this.deps[e].depend()};ve.prototype.teardown=function teardown(){if(this.active){this.vm._isBeingDestroyed||remove(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var ye=cached((function(e){var t="&"===e.charAt(0);e=t?e.slice(1):e;var r="~"===e.charAt(0);e=r?e.slice(1):e;var n="!"===e.charAt(0);e=n?e.slice(1):e;return{name:e,once:r,capture:n,passive:t}}));function createFnInvoker(e,t){function invoker(){var e=arguments,r=invoker.fns;if(!Array.isArray(r))return invokeWithErrorHandling(r,null,arguments,t,"v-on handler");for(var n=r.slice(),i=0;i0){n=normalizeArrayChildren(n,(t||"")+"_"+r);if(isTextNode(n[0])&&isTextNode(a)){o[i]=createTextVNode(a.text+n[0].text);n.shift()}o.push.apply(o,n)}}else if(isPrimitive(n))isTextNode(a)?o[i]=createTextVNode(a.text+n):""!==n&&o.push(createTextVNode(n));else if(isTextNode(n)&&isTextNode(a))o[i]=createTextVNode(a.text+n.text);else{isTrue(e._isVList)&&isDef(n.tag)&&isUndef(n.key)&&isDef(t)&&(n.key="__vlist"+t+"_"+r+"__");o.push(n)}}}return o}(e):void 0}function isTextNode(e){return isDef(e)&&isDef(e.text)&&function isFalse(e){return!1===e}(e.isComment)}var we={enumerable:!0,configurable:!0,get:noop,set:noop};function proxy(e,t,r){we.get=function proxyGetter(){return this[t][r]};we.set=function proxySetter(e){this[t][r]=e};Object.defineProperty(e,r,we)}function initState(e){e._watchers=[];var t=e.$options;t.props&&function initProps(e,t){var r=e.$options.propsData||{},n=e._props={},i=e.$options._propKeys=[],a=!e.$parent;a||toggleObserving(!1);var o=function loop(a){i.push(a);var o=validateProp(a,t,r,e);defineReactive(n,a,o);a in e||proxy(e,"_props",a)};for(var l in t)o(l);toggleObserving(!0)}(e,t.props);t.methods&&function initMethods(e,t){e.$options.props;for(var r in t){0;e[r]="function"!=typeof t[r]?noop:v(t[r],e)}}(e,t.methods);t.data?function initData(e){var t=e.$options.data;t=e._data="function"==typeof t?function getData(e,t){pushTarget();try{return e.call(t,t)}catch(e){handleError(e,t,"data()");return{}}finally{popTarget()}}(t,e):t||{};isPlainObject(t)||(t={});var r=Object.keys(t),n=e.$options.props,i=(e.$options.methods,r.length);for(;i--;){var a=r[i];0;n&&hasOwn(n,a)||isReserved(a)||proxy(e,"_data",a)}observe(t,!0)}(e):observe(e._data={},!0);t.computed&&function initComputed(e,t){var r=e._computedWatchers=Object.create(null);for(var n in t){var i=t[n],a="function"==typeof i?i:i.get;0;r[n]=new ve(e,a||noop,noop,Ce);n in e||defineComputed(e,n,i)}}(e,t.computed);t.watch&&t.watch!==V&&function initWatch(e,t){for(var r in t){var n=t[r];if(Array.isArray(n))for(var i=0;i0,o=e?!!e.$stable:!a,l=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(o&&r&&r!==i&&l===r.$key&&!a&&!r.$hasNormal)return r;n={};for(var d in e)e[d]&&"$"!==d[0]&&(n[d]=normalizeScopedSlot(t,d,e[d]))}else n={};for(var p in t)p in n||(n[p]=proxyNormalSlot(t,p));e&&Object.isExtensible(e)&&(e._normalized=n);def(n,"$stable",o);def(n,"$key",l);def(n,"$hasNormal",a);return n}function normalizeScopedSlot(e,t,r){var n=function normalized(){var e=arguments.length?r.apply(null,arguments):r({});e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:normalizeChildren(e);return e&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};r.proxy&&Object.defineProperty(e,t,{get:n,enumerable:!0,configurable:!0});return n}function proxyNormalSlot(e,t){return function(){return e[t]}}function renderList(e,t){var r,n,i,a,o;if(Array.isArray(e)||"string"==typeof e){r=new Array(e.length);for(n=0,i=e.length;n-1?t.split(Me).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var r=" "+(e.getAttribute("class")||"")+" ";r.indexOf(" "+t+" ")<0&&e.setAttribute("class",(r+t).trim())}}(e,t)}}function removeTransitionClass(e,t){e._transitionClasses&&remove(e._transitionClasses,t);!function removeClass(e,t){if(t&&(t=t.trim()))if(e.classList){t.indexOf(" ")>-1?t.split(Me).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t);e.classList.length||e.removeAttribute("class")}else{for(var r=" "+(e.getAttribute("class")||"")+" ",n=" "+t+" ";r.indexOf(n)>=0;)r=r.replace(n," ");r=r.trim();r?e.setAttribute("class",r):e.removeAttribute("class")}}(e,t)}function enter(e,t){var r=e.elm;if(isDef(r._leaveCb)){r._leaveCb.cancelled=!0;r._leaveCb()}var n=resolveTransition(e.data.transition);if(!isUndef(n)&&!isDef(r._enterCb)&&1===r.nodeType){for(var i=n.css,a=(n.type,n.enterClass),o=n.enterToClass,l=n.enterActiveClass,d=n.appearClass,p=n.appearToClass,h=n.appearActiveClass,m=n.beforeEnter,g=n.enter,f=n.afterEnter,v=n.enterCancelled,y=n.beforeAppear,w=n.appear,C=n.afterAppear,S=n.appearCancelled,b=n.duration,x=Pe,T=Pe.$vnode;T&&T.parent;){T=T.parent;x=T.context}var P=!x._isMounted||!e.isRootInsert;if(!P||w||""===w){var k=P&&d?d:a,A=P&&h?h:l,E=P&&p?p:o,I=P&&y||m,V=P&&"function"==typeof w?w:g,L=P&&C||f,N=P&&S||v,O=toNumber(isObject(b)?b.enter:b);0;var D=!1!==i,F=getHookArgumentsLength(V),R=r._enterCb=once((function(){if(D){removeTransitionClass(r,E);removeTransitionClass(r,A)}if(R.cancelled){D&&removeTransitionClass(r,k);N&&N(r)}else L&&L(r);r._enterCb=null}));e.data.show||mergeVNodeHook(e,"insert",(function(){var t=r.parentNode,n=t&&t._pending&&t._pending[e.key];n&&n.tag===e.tag&&n.elm._leaveCb&&n.elm._leaveCb();V&&V(r,R)}));I&&I(r);if(D){addTransitionClass(r,k);addTransitionClass(r,A);nextFrame((function(){removeTransitionClass(r,k);if(!R.cancelled){addTransitionClass(r,E);F||isValidDuration(O)&&setTimeout(R,O)}}))}if(e.data.show){t&&t();V&&V(r,R)}D||F||R()}}}function leave(e,t){var r=e.elm;if(isDef(r._enterCb)){r._enterCb.cancelled=!0;r._enterCb()}var n=resolveTransition(e.data.transition);if(isUndef(n)||1!==r.nodeType)return t();if(!isDef(r._leaveCb)){var i=n.css,a=(n.type,n.leaveClass),o=n.leaveToClass,l=n.leaveActiveClass,d=n.beforeLeave,p=n.leave,h=n.afterLeave,m=n.leaveCancelled,g=n.delayLeave,f=n.duration,v=!1!==i,y=getHookArgumentsLength(p),w=toNumber(isObject(f)?f.leave:f);0;var C=r._leaveCb=once((function(){r.parentNode&&r.parentNode._pending&&(r.parentNode._pending[e.key]=null);if(v){removeTransitionClass(r,o);removeTransitionClass(r,l)}if(C.cancelled){v&&removeTransitionClass(r,a);m&&m(r)}else{t();h&&h(r)}r._leaveCb=null}));g?g(performLeave):performLeave()}function performLeave(){if(!C.cancelled){e.data.show||((r.parentNode._pending||(r.parentNode._pending={}))[e.key]=e);d&&d(r);if(v){addTransitionClass(r,a);addTransitionClass(r,l);nextFrame((function(){removeTransitionClass(r,a);if(!C.cancelled){addTransitionClass(r,o);y||isValidDuration(w)&&setTimeout(C,w)}}))}p&&p(r,C);v||y||C()}}}function isValidDuration(e){return"number"==typeof e&&!isNaN(e)}function getHookArgumentsLength(e){if(isUndef(e))return!1;var t=e.fns;return isDef(t)?getHookArgumentsLength(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function _enter(e,t){!0!==t.data.show&&enter(t)}var je={create:_enter,activate:_enter,remove:function remove(e,t){!0!==e.data.show?leave(e,t):t()}},He=[De,Fe,Ne,Be,je],Ue=new Map;var qe={props:{id:{default:"default"},transition:{type:[String,Object],required:!1,default:null},"ios:transition":{type:[String,Object],required:!1,default:null},"android:transition":{type:[String,Object],required:!1,default:null},clearHistory:{type:Boolean,required:!1,default:!1},backstackVisible:{type:Boolean,required:!1,default:!0},hasRouterView:{default:!1}},data:function data(){return{properties:{}}},created:function created(){this.properties=Object.assign({},this.$attrs,this.$props);!function setFrame(e,t){return Ue.set(e,t)}(this.properties.id,this)},destroyed:function destroyed(){!function deleteFrame(e){return Ue.delete(e)}(this.properties.id)},render:function render(e){var t=null;if(this.$slots.default){0;t=this.$slots.default[0];t.key="default"}return e("NativeFrame",{attrs:this.properties,on:this.$listeners},[t])},methods:{_getFrame:function _getFrame(){return this.$el.nativeView},_ensureTransitionObject:function _ensureTransitionObject(e){return"string"==typeof e?{name:e}:e},_composeTransition:function _composeTransition(e){var t=e.transitionAndroid?"transitionAndroid":"transition",r=this["android:transition"]?"android:transition":"transition";e[t]?e[t]=this._ensureTransitionObject(e[t]):this[r]&&(e[t]=this._ensureTransitionObject(this[r]));return e},notifyFirstPageMounted:function notifyFirstPageMounted(e){var t={backstackVisible:this.backstackVisible,clearHistory:this.clearHistory,create:function create(){return e.$el.nativeView}};this.navigate(t)},navigate:function navigate(e,t){var r=this;void 0===t&&(t=!1);var n=this._getFrame();if(t)return n.goBack(e);var i=e.create();i.once("navigatedTo",(function(){r.$emit("navigated",e)}));i.on("navigatedFrom",(function handler(t){if(t.isBackNavigation){i.off("navigatedFrom",handler);r.$emit("navigatedBack",e)}}));e.create=function(){return i};this._composeTransition(e);n.navigate(e)},back:function back(e){void 0===e&&(e=null);this.navigate(e,!0)}}},Ge=0,$e={props:{name:{type:String},if:{type:String}},mounted:function mounted(){if(this.$scopedSlots.default){this.$templates=this.$el.parentNode.$templates=this.$parent.$templates=this.$parent.$templates||new Ke;this.$templates.registerTemplate(this.$props.name||(this.$props.if?"v-template-"+Ge++:"default"),this.$props.if,this.$scopedSlots.default)}},render:function render(e){}},Ke=function TemplateBag(){this._templateMap=new Map},Xe={selectorFn:{configurable:!0}};Ke.prototype.registerTemplate=function registerTemplate(e,t,r){this._templateMap.set(e,{scopedFn:r,conditionFn:this.getConditionFn(t),keyedTemplate:new Ye(e,r)})};Xe.selectorFn.get=function(){var e=this;return function templateSelectorFn(t){for(var r,n=e._templateMap.entries();r=n.next().value;){var i=r[0],a=r[1].conditionFn;try{if(a(t))return i}catch(e){}}return"default"}};Ke.prototype.getConditionFn=function getConditionFn(e){return new Function("ctx","with(ctx) { return !!("+e+") }")};Ke.prototype.getKeyedTemplate=function getKeyedTemplate(e){return this._templateMap.get(e).keyedTemplate};Ke.prototype.patchTemplate=function patchTemplate(e,t,r){var n=this._templateMap.get(e).scopedFn(t);Array.isArray(n)&&(n=n[0]);var i=It(r,n).nativeView;i.__vueVNodeRef__=n;return i};Ke.prototype.getAvailable=function getAvailable(){return Array.from(this._templateMap.keys())};Ke.prototype.getKeyedTemplates=function getKeyedTemplates(){return Array.from(this._templateMap.values()).map((function(e){var t=e.keyedTemplate;return t}))};Object.defineProperties(Ke.prototype,Xe);var Ye=function VueKeyedTemplate(e,t){this._key=e;this._scopedFn=t},Qe={key:{configurable:!0}};Qe.key.get=function(){return this._key};Ye.prototype.createView=function createView(){return null};Object.defineProperties(Ye.prototype,Qe);var Je={props:{items:{type:[Array,Object],validator:function validator(e){var t=r(3).ObservableArray;return Array.isArray(e)||e instanceof t},required:!0},"+alias":{type:String,default:"item"},"+index":{type:String}},template:'\n \n \n \n ',watch:{items:{handler:function handler(e){this.$refs.listView.setAttribute("items",e);this.refresh()},deep:!0}},created:function created(){var e=extend({},this.$listeners);delete e.itemTap;this.listeners=e;this.getItemContext=getItemContext.bind(this)},mounted:function mounted(){var e=this;if(this.$templates){this.$refs.listView.setAttribute("itemTemplates",this.$templates.getKeyedTemplates());this.$refs.listView.setAttribute("itemTemplateSelector",(function(t,r){return e.$templates.selectorFn(e.getItemContext(t,r))}))}},methods:{onItemTap:function onItemTap(e){this.$emit("itemTap",extend({item:this.getItem(e.index)},e))},onItemLoading:function onItemLoading(e){if(this.$templates){var t=e.index,r=e.object.items,n=this.getItem(t),i=e.object._itemTemplateSelector(n,t,r),a=this.getItemContext(n,t),o=e.view&&e.view.__vueVNodeRef__;e.view=this.$templates.patchTemplate(i,a,o)}},refresh:function refresh(){this.$refs.listView.nativeView.refresh()},getItem:function getItem(e){return"function"==typeof this.items.getItem?this.items.getItem(e):this.items[e]}}};function getItemContext(e,t,r,n){var i;void 0===r&&(r=this.$props["+alias"]);void 0===n&&(n=this.$props["+index"]);return i={},i[r]=e,i[n||"$index"]=t,i.$even=t%2==0,i.$odd=t%2!=0,i}var Ze,et=makeMap("template",!0);function mustUseProp(){}var tt=t.process.env.VUE_VERSION||"2.6.12",rt=t.process.env.NS_VUE_VERSION||"2.8.1",nt=once((function(){console.log('NativeScript-Vue has "Vue.config.silent" set to true, to see output logs set it to false.')}));function trace(e){if(Ze&&Ze.config.silent)return nt();Ze&&!Ze.config.suppressRenderLogs&&console.log("{NSVue (Vue: "+tt+" | NSVue: "+rt+")} -> "+e)}function updateDevtools(){if(t.__VUE_DEVTOOLS_GLOBAL_HOOK__)try{t.__VUE_DEVTOOLS_GLOBAL_HOOK__.emit("flush")}catch(e){}}var it={render:function render(e){return e("NativePage",{attrs:this.$attrs,on:this.$listeners},this.$slots.default)},mounted:function mounted(){var e=this;this.$el.nativeView.__vuePageRef__=this;var t=this._findParentFrame();if(t&&!t.firstPageMounted&&!t.$el.nativeView.currentPage){t.firstPageMounted=!0;t.notifyFirstPageMounted(this)}this.$el.nativeView.on("navigatedFrom",(function handler(t){if(t.isBackNavigation){e.$el.nativeView.off("navigatedFrom",handler);e.$parent.$destroy()}}));var r=this.$el.nativeView.disposeNativeView;this.$el.nativeView.disposeNativeView=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];e.$parent.$destroy();r.call(e.$el.nativeView,t);updateDevtools()}},methods:{_findParentFrame:function _findParentFrame(){for(var e=this.$parent;e&&"Frame"!==e.$options.name;)e=e.$parent;return e}}},at={template:"",mounted:function mounted(){this.$el.childNodes.length>1&&M("TabViewItem should contain only 1 root element",this);var e=this.$el.nativeView;e.view=this.$el.childNodes[0].nativeView;this.$parent.registerTab(e)}},ot={template:"",mounted:function mounted(){this.$el.childNodes.length>1&&M("TabContentItem should contain only 1 root element",this);var e=this.$el.nativeView;e.view=this.$el.childNodes[0].nativeView;this.$parent.registerTabContentItem(e)}},st={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function getRealChild(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?getRealChild(getFirstComponentChild(t.children)):e}function placeholder(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var lt=function isNotTextNode(e){return e.tag||isAsyncPlaceholder(e)},dt=function isVShowDirective(e){return"show"===e.name},ct={name:"transition",props:st,abstract:!0,render:function render(e){var t=this,r=this.$slots.default;if(r){r=r.filter(lt);if(r.length){0;var n=this.mode;0;var i=r[0];if(function hasParentTransition(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var a=getRealChild(i);if(!a)return i;if(this._leaving)return placeholder(e,i);var o="__transition-"+this._uid+"-";a.key=null==a.key?a.isComment?o+"comment":o+a.tag:isPrimitive(a.key)?0===String(a.key).indexOf(o)?a.key:o+a.key:a.key;var l=(a.data||(a.data={})).transition=function extractTransitionData(e){var t={},r=e.$options;for(var n in r.propsData)t[n]=e[n];var i=r._parentListeners;for(var a in i)t[h(a)]=i[a];return t}(this),d=this._vnode,p=getRealChild(d);a.data.directives&&a.data.directives.some(dt)&&(a.data.show=!0);if(p&&p.data&&!function isSameChild(e,t){return t.key===e.key&&t.tag===e.tag}(a,p)&&!isAsyncPlaceholder(p)&&(!p.componentInstance||!p.componentInstance._vnode.isComment)){var m=p.data.transition=extend({},l);if("out-in"===n){this._leaving=!0;mergeVNodeHook(m,"afterLeave",(function(){t._leaving=!1;t.$forceUpdate()}));return placeholder(e,i)}if("in-out"===n){if(isAsyncPlaceholder(a))return d;var g,f=function performLeave(){g()};mergeVNodeHook(l,"afterEnter",f);mergeVNodeHook(l,"enterCancelled",f);mergeVNodeHook(m,"delayLeave",(function(e){g=e}))}}return i}}}},ut={},pt=/Native/gi,ht=/-/g,mt={skipAddToDom:!1,isUnaryTag:!1,tagNamespace:"",canBeLeftOpenTag:!1,model:null,component:null};function normalizeElementName(e){return"native"+e.replace(pt,"").replace(ht,"").toLowerCase()}function registerElement(e,t,r){var n=normalizeElementName(e);r=Object.assign({},mt,r);ut[n]&&trace("Element for "+e+" already registered.");r.component||(r.component={functional:!0,model:r.model,render:function render(e,t){var r=t.data,i=t.children;return e(n,r,i)}});r.component.name=e;ut[n]={resolver:t,meta:r}}function getViewMeta(e){var t=normalizeElementName(e),r=mt,n=ut[t];n&&n.meta&&(r=n.meta);return r}function isKnownView(e){return ut[normalizeElementName(e)]}registerElement("ActionBar",(function(){return r(3).ActionBar}),{removeChild:function removeChild(e,t){try{e.nativeView._removeView(t.nativeView)}catch(e){}},component:{template:'\n \n \n \n '}});registerElement("ActionItem",(function(){return r(3).ActionItem}));registerElement("android",null,{component:{functional:!0,render:function render(e,t){var r=t.children;return r}}});registerElement("ios",null,{component:{functional:!0,render:function render(e,t){t.children;0}}});registerElement("ListView",(function(){return r(3).ListView}),{component:Je});registerElement("NavigationButton",(function(){return r(3).NavigationButton}));registerElement("TabView",(function(){return r(3).TabView}),{model:{prop:"selectedIndex",event:"selectedIndexChange"},component:{model:{prop:"selectedIndex",event:"selectedIndexChange"},render:function render(e){return e("NativeTabView",{on:this.$listeners,attrs:this.$attrs},this.$slots.default)},methods:{registerTab:function registerTab(e){var t=this.$el.nativeView.items||[];this.$el.setAttribute("items",t.concat([e]))}}}});registerElement("TabViewItem",(function(){return r(3).TabViewItem}),{skipAddToDom:!0,component:at});registerElement("BottomNavigation",(function(){return r(3).BottomNavigation}),{model:{prop:"selectedIndex",event:"selectedIndexChange"},component:{model:{prop:"selectedIndex",event:"selectedIndexChange"},render:function render(e){return e("NativeBottomNavigation",{on:this.$listeners,attrs:this.$attrs},this.$slots.default)},methods:{registerTabStrip:function registerTabStrip(e){this.$el.setAttribute("tabStrip",e)},registerTabContentItem:function registerTabContentItem(e){var t=this.$el.nativeView.items||[];this.$el.setAttribute("items",t.concat([e]))}}}});registerElement("Tabs",(function(){return r(3).Tabs}),{model:{prop:"selectedIndex",event:"selectedIndexChange"},component:{model:{prop:"selectedIndex",event:"selectedIndexChange"},render:function render(e){return e("NativeTabs",{on:this.$listeners,attrs:this.$attrs},this.$slots.default)},methods:{registerTabStrip:function registerTabStrip(e){this.$el.setAttribute("tabStrip",e)},registerTabContentItem:function registerTabContentItem(e){var t=this.$el.nativeView.items||[];this.$el.setAttribute("items",t.concat([e]))}}}});registerElement("TabStrip",(function(){return r(3).TabStrip}),{skipAddToDom:!0,component:{render:function render(e){return e("NativeTabStrip",{on:this.$listeners,attrs:this.$attrs},this.$slots.default)},mounted:function mounted(){var e=this.$el.nativeView;this.$parent.registerTabStrip(e)},methods:{registerTabStripItem:function registerTabStripItem(e){var t=this.$el.nativeView.items||[];this.$el.setAttribute("items",t.concat([e]))}}}});registerElement("TabStripItem",(function(){return r(3).TabStripItem}),{skipAddToDom:!0,component:{render:function render(e){return e("NativeTabStripItem",{on:this.$listeners,attrs:this.$attrs},this.$slots.default)},mounted:function mounted(){var e=this.$el.nativeView;this.$parent.registerTabStripItem(e)}}});registerElement("TabContentItem",(function(){return r(3).TabContentItem}),{skipAddToDom:!0,component:ot});registerElement("transition",null,{component:ct});registerElement("v-template",null,{component:$e});registerElement("Label",(function(){return r(3).Label}),{model:{prop:"text",event:"textChange"}});registerElement("DatePicker",(function(){return r(3).DatePicker}),{model:{prop:"date",event:"dateChange"}});registerElement("AbsoluteLayout",(function(){return r(3).AbsoluteLayout}));registerElement("ActivityIndicator",(function(){return r(3).ActivityIndicator}));registerElement("Button",(function(){return r(3).Button}));registerElement("ContentView",(function(){return r(3).ContentView}));registerElement("DockLayout",(function(){return r(3).DockLayout}));registerElement("GridLayout",(function(){return r(3).GridLayout}));registerElement("HtmlView",(function(){return r(3).HtmlView}));registerElement("Image",(function(){return r(3).Image}));registerElement("img",(function(){return r(3).Image}));registerElement("ListPicker",(function(){return r(3).ListPicker}),{model:{prop:"selectedIndex",event:"selectedIndexChange"}});registerElement("Page",(function(){return r(3).Page}),{skipAddToDom:!0,component:it});registerElement("Placeholder",(function(){return r(3).Placeholder}));registerElement("Progress",(function(){return r(3).Progress}),{model:{prop:"value",event:"valueChange"}});registerElement("ProxyViewContainer",(function(){return r(3).ProxyViewContainer}));registerElement("ScrollView",(function(){return r(3).ScrollView}));registerElement("SearchBar",(function(){return r(3).SearchBar}),{model:{prop:"text",event:"textChange"}});registerElement("SegmentedBar",(function(){return r(3).SegmentedBar}),{model:{prop:"selectedIndex",event:"selectedIndexChange"}});registerElement("SegmentedBarItem",(function(){return r(3).SegmentedBarItem}));registerElement("Slider",(function(){return r(3).Slider}),{model:{prop:"value",event:"valueChange"}});registerElement("StackLayout",(function(){return r(3).StackLayout}));registerElement("FlexboxLayout",(function(){return r(3).FlexboxLayout}));registerElement("Switch",(function(){return r(3).Switch}),{model:{prop:"checked",event:"checkedChange"}});registerElement("TextField",(function(){return r(3).TextField}),{model:{prop:"text",event:"textChange"}});registerElement("TextView",(function(){return r(3).TextView}),{model:{prop:"text",event:"textChange"}});registerElement("TimePicker",(function(){return r(3).TimePicker}),{model:{prop:"time",event:"timeChange"}});registerElement("WebView",(function(){return r(3).WebView}));registerElement("WrapLayout",(function(){return r(3).WrapLayout}));registerElement("FormattedString",(function(){return r(3).FormattedString}),{insertChild:function insertChild(e,t,r){r>-1?e.nativeView.spans.splice(r,0,t.nativeView):e.nativeView.spans.push(t.nativeView)},removeChild:function removeChild(e,t){var r=e.nativeView.spans.indexOf(t.nativeView);r>-1&&e.nativeView.spans.splice(r,1)}});registerElement("Span",(function(){return r(3).Span}));registerElement("DetachedContainer",(function(){return r(3).ProxyViewContainer}),{skipAddToDom:!0});registerElement("DetachedText",(function(){return r(3).Placeholder}),{skipAddToDom:!0});registerElement("Comment",(function(){return r(3).Placeholder}));registerElement("Document",(function(){return r(3).ProxyViewContainer}),{skipAddToDom:!0});registerElement("Frame",(function(){return r(3).Frame}),{insertChild:function insertChild(e,t,r){},component:qe});function isObjectObject(e){return!0===function isObject(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}(e)&&"[object Object]"===Object.prototype.toString.call(e)}var gt=function isPlainObject(e){var t,r;if(!1===isObjectObject(e))return!1;t=e.constructor;if("function"!=typeof t)return!1;r=t.prototype;return!1!==isObjectObject(r)&&!1!==r.hasOwnProperty("isPrototypeOf")};function set$1(e,t,r,n){if(!isObject$1(e))return e;var i=n||{},a=Array.isArray(t);if(!a&&"string"!=typeof t)return e;var o=i.merge;o&&"function"!=typeof o&&(o=Object.assign);var l=(a?t:function split(e,t){var r=function createKey(e,t){var r=e;if(void 0===t)return r+"";for(var n=Object.keys(t),i=0;i "+e.parentNode);return e.parentNode},nextSibling:function nextSibling(e){trace("NextSibling("+e+") -> "+e.nextSibling);return e.nextSibling},tagName:function tagName(e){trace("TagName("+e+") -> "+e.tagName);return e.tagName},setTextContent:function setTextContent(e,t){trace("SetTextContent("+e+", "+t+")");e.setText(t)},setAttribute:function setAttribute(e,t,r){trace("SetAttribute("+e+", "+t+", "+r+")");e.setAttribute(t,r)},setStyleScope:function setStyleScope(e,t){e.setAttribute(t,"")}}),Et=He.concat(Le),It=function createPatchFunction(e){var t,r,n={},i=e.modules,a=e.nodeOps;for(t=0;tg){p=isUndef(r[y+1])?null:r[y+1].elm;addVnodes(e,p,r,m,y,n)}else m>y&&removeVnodes(t,h,g)}(d,m,g,r,l);else if(isDef(g)){0;isDef(e.text)&&a.setTextContent(d,"");addVnodes(d,null,g,0,g.length-1,r)}else isDef(m)?removeVnodes(m,0,m.length-1):isDef(e.text)&&a.setTextContent(d,"");else e.text!==t.text&&a.setTextContent(d,t.text);isDef(h)&&isDef(p=h.hook)&&isDef(p=p.postpatch)&&p(e,t)}}}function invokeInsertHook(e,t,r){if(isTrue(r)&&isDef(e.parent))e.parent.data.pendingInsert=t;else for(var n=0;n\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Ot=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Dt="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+C.source+"]*",Ft="((?:"+Dt+"\\:)?"+Dt+")",Rt=new RegExp("^<"+Ft),Bt=/^\s*(\/?)>/,Mt=new RegExp("^<\\/"+Ft+"[^>]*>"),zt=/^]+>/i,Wt=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},Gt=/&(?:lt|gt|quot|amp|#39);/g,$t=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Kt=makeMap("pre,textarea",!0),Xt=function shouldIgnoreFirstNewline(e,t){return e&&Kt(e)&&"\n"===t[0]};function decodeAttr(e,t){var r=t?$t:Gt;return e.replace(r,(function(e){return qt[e]}))}var Yt=/[\w).+\-_$\]]/;function parseFilters(e){var t,r,n,i,a,o=!1,l=!1,d=!1,p=!1,h=0,m=0,g=0,f=0;for(n=0;n=0;v--){y=e.charAt(v);if(" "!==y)break}y&&Yt.test(y)||(p=!0)}}else if(void 0===i){f=n+1;i=e.slice(0,n).trim()}else pushFilter()}void 0===i?i=e.slice(0,n).trim():0!==f&&pushFilter();function pushFilter(){(a||(a=[])).push(e.slice(f,n).trim());f=n+1}if(a)for(n=0;nd){l.push(a=e.slice(d,i));o.push(JSON.stringify(a))}var p=parseFilters(n[1].trim());o.push("_s("+p+")");l.push({"@binding":p});d=i+n[0].length}if(d-1?{exp:e.slice(0,er),key:'"'+e.slice(er+1)+'"'}:{exp:e,key:null}}Jt=e;er=tr=rr=0;for(;!eof();){Zt=next();isStringStart(Zt)?parseString(Zt):91===Zt&&parseBracket(Zt)}return{exp:e.slice(0,tr),key:e.slice(tr+1,rr)}}(e);return null===r.key?e+"="+t:"$set("+r.exp+", "+r.key+", "+t+")"}function next(){return Jt.charCodeAt(++er)}function eof(){return er>=Qt}function isStringStart(e){return 34===e||39===e}function parseBracket(e){var t=1;tr=er;for(;!eof();){e=next();if(isStringStart(e))parseString(e);else{91===e&&t++;93===e&&t--;if(0===t){rr=er;break}}}}function parseString(e){for(var t=e;!eof();){e=next();if(e===t)break}}function baseWarn(e,t){console.error("[Vue compiler]: "+e)}function pluckModuleFunction(e,t){return e?e.map((function(e){return e[t]})).filter((function(e){return e})):[]}function addProp(e,t,r,n,i){(e.props||(e.props=[])).push(rangeSetItem({name:t,value:r,dynamic:i},n));e.plain=!1}function addAttr(e,t,r,n,i){var a=i?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[]);a.push(rangeSetItem({name:t,value:r,dynamic:i},n));e.plain=!1}function addRawAttr(e,t,r,n){e.attrsMap[t]=r;e.attrsList.push(rangeSetItem({name:t,value:r},n))}function addDirective(e,t,r,n,i,a,o,l){(e.directives||(e.directives=[])).push(rangeSetItem({name:t,rawName:r,value:n,arg:i,isDynamicArg:a,modifiers:o},l));e.plain=!1}function prependModifierMarker(e,t,r){return r?"_p("+t+',"'+e+'")':e+t}function addHandler(e,t,r,n,a,o,l,d){n=n||i;0;if(n.right){if(d)t="("+t+")==='click'?'contextmenu':("+t+")";else if("click"===t){t="contextmenu";delete n.right}}else n.middle&&(d?t="("+t+")==='click'?'mouseup':("+t+")":"click"===t&&(t="mouseup"));if(n.capture){delete n.capture;t=prependModifierMarker("!",t,d)}if(n.once){delete n.once;t=prependModifierMarker("~",t,d)}if(n.passive){delete n.passive;t=prependModifierMarker("&",t,d)}var p;if(n.native){delete n.native;p=e.nativeEvents||(e.nativeEvents={})}else p=e.events||(e.events={});var h=rangeSetItem({value:r.trim(),dynamic:d},l);n!==i&&(h.modifiers=n);var m=p[t];Array.isArray(m)?a?m.unshift(h):m.push(h):p[t]=m?a?[h,m]:[m,h]:h;e.plain=!1}function getBindingAttr(e,t,r){var n=getAndRemoveAttr(e,":"+t)||getAndRemoveAttr(e,"v-bind:"+t);if(null!=n)return parseFilters(n);if(!1!==r){var i=getAndRemoveAttr(e,t);if(null!=i)return JSON.stringify(i)}}function getAndRemoveAttr(e,t,r){var n;if(null!=(n=e.attrsMap[t]))for(var i=e.attrsList,a=0,o=i.length;a]*>)","i")),g=e.replace(m,(function(e,r,n){p=n.length;Ht(h)||"noscript"===h||(r=r.replace(//g,"$1").replace(//g,"$1"));Xt(h,r)&&(r=r.slice(1));t.chars&&t.chars(r);return""}));d+=e.length-g.length;e=g;parseEndTag(h,d-p,d)}else{var f=e.indexOf("<");if(0===f){if(Wt.test(e)){var v=e.indexOf("--\x3e");if(v>=0){t.shouldKeepComment&&t.comment(e.substring(4,v),d,d+v+3);advance(v+3);continue}}if(jt.test(e)){var w=e.indexOf("]>");if(w>=0){advance(w+2);continue}}var C=e.match(zt);if(C){advance(C[0].length);continue}var S=e.match(Mt);if(S){var b=d;advance(S[0].length);parseEndTag(S[1],b,d);continue}var x=parseStartTag();if(x){handleStartTag(x);Xt(x.tagName,e)&&advance(1);continue}}var T=void 0,P=void 0,k=void 0;if(f>=0){P=e.slice(f);for(;!(Mt.test(P)||Rt.test(P)||Wt.test(P)||jt.test(P));){k=P.indexOf("<",1);if(k<0)break;f+=k;P=e.slice(f)}T=e.substring(0,f)}f<0&&(T=e);T&&advance(T.length);t.chars&&T&&t.chars(T,d-T.length,d)}if(e===r){t.chars&&t.chars(e);0;break}}parseEndTag();function advance(t){d+=t;e=e.substring(t)}function parseStartTag(){var t=e.match(Rt);if(t){var r,n,i={tagName:t[1],attrs:[],start:d};advance(t[0].length);for(;!(r=e.match(Bt))&&(n=e.match(Ot)||e.match(Nt));){n.start=d;advance(n[0].length);n.end=d;i.attrs.push(n)}if(r){i.unarySlash=r[1];advance(r[0].length);i.end=d;return i}}}function handleStartTag(e){var r=e.tagName,d=e.unarySlash;if(a){"p"===n&&Lt(r)&&parseEndTag(n);l(r)&&n===r&&parseEndTag(r)}for(var p=o(r)||!!d,h=e.attrs.length,m=new Array(h),g=0;g=0&&i[o].lowerCasedTag!==l;o--);}else o=0;if(o>=0){for(var p=i.length-1;p>=o;p--){0;t.end&&t.end(i[p].tag,r,a)}i.length=o;n=o&&i[o-1].tag}else if("br"===l)t.start&&t.start(e,[],!0,r,a);else if("p"===l){t.start&&t.start(e,[],!1,r,a);t.end&&t.end(e,r,a)}}}(e,{warn:or,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function start(e,r,o,l,h){var m=i&&i.ns||hr(e);A&&"svg"===m&&(r=function guardIESVGBug(e){for(var t=[],r=0;r|^function(?:\s+[\w$]+)?\s*\(/,Nr=/\([^)]*?\);*$/,Or=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Dr={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Fr={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Rr=function genGuard(e){return"if("+e+")return null;"},Br={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Rr("$event.target !== $event.currentTarget"),ctrl:Rr("!$event.ctrlKey"),shift:Rr("!$event.shiftKey"),alt:Rr("!$event.altKey"),meta:Rr("!$event.metaKey"),left:Rr("'button' in $event && $event.button !== 0"),middle:Rr("'button' in $event && $event.button !== 1"),right:Rr("'button' in $event && $event.button !== 2")};function genHandlers(e,t){var r=t?"nativeOn:":"on:",n="",i="";for(var a in e){var o=genHandler(e[a]);e[a]&&e[a].dynamic?i+=a+","+o+",":n+='"'+a+'":'+o+","}n="{"+n.slice(0,-1)+"}";return i?r+"_d("+n+",["+i.slice(0,-1)+"])":r+n}function genHandler(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map((function(e){return genHandler(e)})).join(",")+"]";var t=Or.test(e.value),r=Lr.test(e.value),n=Or.test(e.value.replace(Nr,""));if(e.modifiers){var i="",a="",o=[];for(var l in e.modifiers)if(Br[l]){a+=Br[l];Dr[l]&&o.push(l)}else if("exact"===l){var d=e.modifiers;a+=Rr(["ctrl","shift","alt","meta"].filter((function(e){return!d[e]})).map((function(e){return"$event."+e+"Key"})).join("||"))}else o.push(l);o.length&&(i+=function genKeyFilter(e){return"if(!$event.type.indexOf('key')&&"+e.map(genFilterCode).join("&&")+")return null;"}(o));a&&(i+=a);var p=t?"return "+e.value+"($event)":r?"return ("+e.value+")($event)":n?"return "+e.value:e.value;return"function($event){"+i+p+"}"}return t||r?e.value:"function($event){"+(n?"return "+e.value:e.value)+"}"}function genFilterCode(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var r=Dr[e],n=Fr[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(r)+",$event.key,"+JSON.stringify(n)+")"}var Mr={on:function on(e,t){0;e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function bind$1(e,t){e.wrapData=function(r){return"_b("+r+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}},cloak:noop},zr=function CodegenState(e){this.options=e;this.warn=e.warn||baseWarn;this.transforms=pluckModuleFunction(e.modules,"transformCode");this.dataGenFns=pluckModuleFunction(e.modules,"genData");this.directives=extend(extend({},Mr),e.directives);var t=e.isReservedTag||y;this.maybeComponent=function(e){return!!e.component||!t(e.tag)};this.onceId=0;this.staticRenderFns=[];this.pre=!1};function generate(e,t){var r=new zr(t),n=e?genElement(e,r):'_c("NativeContentView")';return{render:"with(this){return "+n+"}",staticRenderFns:r.staticRenderFns}}function genElement(e,t){e.parent&&(e.pre=e.pre||e.parent.pre);if(e.staticRoot&&!e.staticProcessed)return genStatic(e,t);if(e.once&&!e.onceProcessed)return genOnce(e,t);if(e.for&&!e.forProcessed)return genFor(e,t);if(e.if&&!e.ifProcessed)return genIf(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function genSlot(e,t){var r=e.slotName||'"default"',n=genChildren(e,t),i="_t("+r+(n?","+n:""),a=e.attrs||e.dynamicAttrs?genProps((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:h(e.name),value:e.value,dynamic:e.dynamic}}))):null,o=e.attrsMap["v-bind"];!a&&!o||n||(i+=",null");a&&(i+=","+a);o&&(i+=(a?"":",null")+","+o);return i+")"}(e,t);var r;if(e.component)r=function genComponent(e,t,r){var n=t.inlineTemplate?null:genChildren(t,r,!0);return"_c("+e+","+genData(t,r)+(n?","+n:"")+")"}(e.component,e,t);else{var n;(!e.plain||e.pre&&t.maybeComponent(e))&&(n=genData(e,t));var i=e.inlineTemplate?null:genChildren(e,t,!0);r="_c('"+e.tag+"'"+(n?","+n:"")+(i?","+i:"")+")"}for(var a=0;a>>0}(o):"")+")"}(e,e.scopedSlots,t)+",");e.model&&(r+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},");if(e.inlineTemplate){var a=function genInlineTemplate(e,t){var r=e.children[0];0;if(r&&1===r.type){var n=generate(r,t.options);return"inlineTemplate:{render:function(){"+n.render+"},staticRenderFns:["+n.staticRenderFns.map((function(e){return"function(){"+e+"}"})).join(",")+"]}"}}(e,t);a&&(r+=a+",")}r=r.replace(/,$/,"")+"}";e.dynamicAttrs&&(r="_b("+r+',"'+e.tag+'",'+genProps(e.dynamicAttrs)+")");e.wrapData&&(r=e.wrapData(r));e.wrapListeners&&(r=e.wrapListeners(r));return r}function containsSlotChild(e){return 1===e.type&&("slot"===e.tag||e.children.some(containsSlotChild))}function genScopedSlot(e,t){var r=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!r)return genIf(e,t,genScopedSlot,"null");if(e.for&&!e.forProcessed)return genFor(e,t,genScopedSlot);var n="_empty_"===e.slotScope?"":String(e.slotScope),i="function("+n+"){return "+("template"===e.tag?e.if&&r?"("+e.if+")?"+(genChildren(e,t)||"undefined")+":undefined":genChildren(e,t)||"undefined":genElement(e,t))+"}",a=n?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+i+a+"}"}function genChildren(e,t,r,n,i){var a=e.children;if(a.length){var o=a[0];if(1===a.length&&o.for&&"template"!==o.tag&&"slot"!==o.tag){var l=r?t.maybeComponent(o)?",1":",0":"";return""+(n||genElement)(o,t)+l}var d=r?function getNormalizationType(e,t){for(var r=0,n=0;n1?toArray(r):r;for(var n=toArray(arguments,1),i='event handler for "'+e+'"',a=0,o=r.length;a-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!isRegExp(e)&&e.test(t)}function pruneCache(e,t){var r=e.cache,n=e.keys,i=e._vnode;for(var a in r){var o=r[a];if(o){var l=getComponentName(o.componentOptions);l&&!t(l)&&pruneCacheEntry(r,a,n,i)}}}function pruneCacheEntry(e,t,r,n){var i=e[t];!i||n&&i.tag===n.tag||i.componentInstance.$destroy();e[t]=null;remove(r,t)}var en=[String,RegExp,Array],tn={name:"keep-alive",abstract:!0,props:{include:en,exclude:en,max:[String,Number]},created:function created(){this.cache=Object.create(null);this.keys=[]},destroyed:function destroyed(){for(var e in this.cache)pruneCacheEntry(this.cache,e,this.keys)},mounted:function mounted(){var e=this;this.$watch("include",(function(t){pruneCache(e,(function(e){return matches(t,e)}))}));this.$watch("exclude",(function(t){pruneCache(e,(function(e){return!matches(t,e)}))}))},render:function render(){var e=this.$slots.default,t=getFirstComponentChild(e),r=t&&t.componentOptions;if(r){var n=getComponentName(r),i=this.include,a=this.exclude;if(i&&(!n||!matches(i,n))||a&&n&&matches(a,n))return t;var o=this.cache,l=this.keys,d=null==t.key?r.Ctor.cid+(r.tag?"::"+r.tag:""):t.key;if(o[d]){t.componentInstance=o[d].componentInstance;remove(l,d);l.push(d)}else{o[d]=t;l.push(d);this.max&&l.length>parseInt(this.max)&&pruneCacheEntry(o,l[0],l,this._vnode)}t.data.keepAlive=!0}return t||e&&e[0]}},rn={KeepAlive:tn};!function initGlobalAPI(e){var t={get:function(){return B}};0;Object.defineProperty(e,"config",t);e.util={warn:M,extend:extend,mergeOptions:mergeOptions,defineReactive:defineReactive};e.set=set;e.delete=del;e.nextTick=nextTick;e.observable=function(e){observe(e);return e};e.options=Object.create(null);F.forEach((function(t){e.options[t+"s"]=Object.create(null)}));e.options._base=e;extend(e.options.components,rn);!function initUse(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var r=toArray(arguments,1);r.unshift(this);"function"==typeof e.install?e.install.apply(e,r):"function"==typeof e&&e.apply(null,r);t.push(e);return this}}(e);!function initMixin$1(e){e.mixin=function(e){this.options=mergeOptions(this.options,e);return this}}(e);initExtend(e);!function initAssetRegisters(e){F.forEach((function(t){e[t]=function(e,r){if(r){0;if("component"===t&&isPlainObject(r)){r.name=r.name||e;r=this.options._base.extend(r)}"directive"===t&&"function"==typeof r&&(r={bind:r,update:r});this.options[t+"s"][e]=r;return r}return this.options[t+"s"][e]}}))}(e)}(Vue);Object.defineProperty(Vue.prototype,"$isServer",{get:N});Object.defineProperty(Vue.prototype,"$ssrContext",{get:function get(){return this.$vnode&&this.$vnode.ssrContext}});Object.defineProperty(Vue,"FunctionalRenderContext",{value:FunctionalRenderContext});Vue.version="2.6.12";function locateNode(e){return!e.componentInstance||e.data&&e.data.transition?e:locateNode(e.componentInstance._vnode)}var nn={bind:function bind(e,t,r){var n=t.value;r=locateNode(r);var i=r.data&&r.data.transition,a=e.__vOriginalVisibility="none"===e.getAttribute("visibility")?"":e.getAttribute("visibility");if(n&&i){r.data.show=!0;enter(r,(function(){e.setAttribute("visibility",a)}))}else e.setAttribute("visibility",n?a:"collapsed")},update:function update(e,t,r){var n=t.value,i=t.oldValue;if(!n!=!i){r=locateNode(r);var a=r.data&&r.data.transition;if(a){r.data.show=!0;n?enter(r,(function(){e.setAttribute("visibility",e.__vOriginalVisibility)})):leave(r,(function(){e.setAttribute("visibility","collapsed")}))}else e.setAttribute("visibility",n?e.__vOriginalVisibility:"collapsed")}},unbind:function unbind(e,t,r,n,i){i||e.setAttribute("visibility",e.__vOriginalVisibility)}},an={show:nn,view:{inserted:function inserted(e,t){var r=t.arg,n=t.modifiers,i=e.parentNode.nativeView;i&&(n.array?i[r]=(i[r]||[]).push(e.nativeView):i[r]=e.nativeView)}}};Vue.config.mustUseProp=mustUseProp;Vue.config.isReservedTag=et;Vue.config.isUnknownElement=function isUnknownElement(e){return!isKnownView(e)};Vue.$document=Vue.prototype.$document=new kt;Vue.compile=Zr;Vue.registerElement=registerElement;Object.assign(Vue.options.directives,an);Vue.prototype.__patch__=It;Vue.prototype.$mount=function(e,t){var r=this.$options;if(!r.render){var n=r.template;if(n&&"string"!=typeof n){M("invalid template option: "+n,this);return this}if(n){var i=Zr(n,{delimiters:r.delimiters,comments:r.comments},this),a=i.render,o=i.staticRenderFns;r.render=a;r.staticRenderFns=o}}return function mountComponent(e,t,r){e.$el=t;if(!e.$options.render){e.$options.render=q;0}callHook(e,"beforeMount");var n;n=function updateComponent(){e._update(e._render(),r)};new ve(e,n,noop,{before:function before(){e._isMounted&&!e._isDestroyed&&callHook(e,"beforeUpdate")}},!0);r=!1;if(null==e.$vnode){e._isMounted=!0;callHook(e,"mounted")}return e}(this,e,t)};Vue.prototype.$start=function(){var e=this,t=Vue.extend(this.$options);Object.values(function getElementMap(){return ut}()).forEach((function(e){Vue.component(e.meta.component.name,e.meta.component)}));n.Application.run({create:function create(){if(e.$el){e.$destroy();e=new t}e.$mount();return e.$el.nativeView}})};Object.defineProperty(Vue.prototype,"nativeView",{get:function get(){return this.$el?this.$el.nativeView:void 0}});var sn={install:function install(e){e.mixin({created:function created(){var e=this;this.$modal={close:function close(t){var r=function _findParentModalEntry(e){if(!e)return!1;for(var t=e.$parent;t&&"ModalEntry"!==t.$options.name;)t=t.$parent;return t}(e);r&&r.closeCb(t)}}}});e.prototype.$showModal=function(t,r){var n=this;return new Promise((function(i){var a=!1,o=function closeCb(e){if(!a){a=!0;i(e);d.closeModal();l.$emit("modal:close",e);l.$destroy()}};r=Object.assign({target:n.$root},r,{context:null,closeCallback:o});var l=new e({name:"ModalEntry",parent:r.target,methods:{closeCb:o},render:function render(e){return e(t,{props:r.props,key:null})}}),d=l.$mount().$el.nativeView;updateDevtools();(function getTargetView(e){return isObject(e)&&isDef(e.$el)?e.$el.nativeView:isDef(e.nativeView)?e.nativeView:e.__vue_element_ref__?e:void 0})(r.target).showModal(d,r)}))}}};function getFrameInstance(e){isObject(e)&&isDef(e.$el)?e=e.$el.nativeView:isPrimitive(e)?e=r(3).Frame.getFrameById(e):isDef(e.nativeView)&&(e=e.nativeView);return function getFrame(e){return Ue.get(e)}(e.id)}var ln={install:function install(e){e.navigateBack=e.prototype.$navigateBack=function(e,t){void 0===t&&(t=null);var r=function findParentFrame(e){if(!e)return!1;for(var t=e.$parent;t&&"Frame"!==t.$options.name;)t=t.$parent;return t}(this),n={frame:r||"default"};e=Object.assign({},n,e);var i=getFrameInstance(e.frame);i.back(t)};e.navigateTo=e.prototype.$navigateTo=function(t,r){r=Object.assign({},{frame:"default"},r);return new Promise((function(n){var i=getFrameInstance(r.frame),a=new e({abstract:!0,functional:!0,name:"NavigationEntry",parent:i,frame:i,render:function render(e){return e(t,{props:r.props,key:null})}}),o=a.$mount().$el.nativeView;updateDevtools();var l=r.resolveOnEvent,d=!1;o.on("navigatedFrom",(function handler(e){if(e.isBackNavigation){o.off("navigatedFrom",handler);a.$destroy()}}));if(l){o.on(l,(function resolveHandler(e){if(!d){d=!0;n(o)}o.off(l,resolveHandler)}))}var p=o.disposeNativeView;o.disposeNativeView=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];a.$destroy();p.call(o,e)};i.navigate(Object.assign({},r,{create:function create(){return o}}));if(!l){d=!0;n(o)}}))}}};Vue.config.silent=!0;Vue.config.suppressRenderLogs=!1;!function setVue(e){Ze=e}(Vue);Vue.use(sn);Vue.use(ln);t.__onLiveSyncCore=function(){var e=r(3).Frame.topmost();if(e){e.currentPage&&e.currentPage.modal&&e.currentPage.modal.closeModal();e.currentPage&&e.currentPage.addCssFile(r(3).getCssFileName())}};e.exports=Vue}).call(this,r(20))},function(e,t,r){"use strict";r.d(t,"b",(function(){return h}));r.d(t,"a",(function(){return getRippleColor}));var n=r(4),i=r(3),a=r(5),o=r(95),l=r(2),d=r(28),p=(r(140),r(73));var h=new class Themer{getOrcreateAppColorScheme(){}getAppColorScheme(){}setPrimaryColor(e){this.primaryColor=e}getPrimaryColor(){this.primaryColor||(this.primaryColor=new n.a(Object(d.c)(i.Application.android.startActivity,"colorPrimary")));return this.primaryColor}setAccentColor(e){this.accentColor||(this.accentColor=new n.a(Object(d.c)(i.Application.android.startActivity,"colorAccent")));this.accentColor=e}getAccentColor(){return this.accentColor}setSurfaceColor(e){this.surfaceColor=e}getSurfaceColor(){return this.surfaceColor}setOnSurfaceColor(e){this.onSurfaceColor=e}getOnSurfaceColor(){return this.onSurfaceColor}setPrimaryColorVariant(e){this.primaryColorVariant=e}getPrimaryColorVariant(){this.primaryColorVariant||(this.primaryColorVariant=new n.a(Object(d.c)(i.Application.android.context,"colorSecondary")));return this.primaryColorVariant}setSecondaryColor(e){this.secondaryColor=e}getSecondaryColor(){return this.secondaryColor}};function getRippleColor(e){if(e){var t="string"==typeof e?new n.a(e):e;return new n.a(255!==t.a?t.a:61.5,t.r,t.g,t.b).android}return null}class ViewWithElevationAndRipple extends a.c{constructor(){super(...arguments);this.elevation=0;this.dynamicElevationOffset=0}getRippleColor(){return getRippleColor(this.style.rippleColor?this.style.rippleColor:new n.a(Object(d.c)(this._context,"colorControlHighlight")))}getCornerRadius(){return getRippleColor(this.style.rippleColor?this.style.rippleColor:new n.a(Object(d.c)(this._context,"colorControlHighlight")))}setRippleDrawable(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!this.rippleDrawable){this.rippleDrawable=Object(d.a)(e,this.getRippleColor(),t);Object(d.g)()&&e.setForeground(this.rippleDrawable)}}[p.d.setNative](e){var t=getRippleColor(e);if(this instanceof o.Button){var r=this.nativeViewProtected.getForeground();if(r instanceof android.graphics.drawable.RippleDrawable){r.setColor(android.content.res.ColorStateList.valueOf(t));return}var n=this.nativeViewProtected.getBackground();if(n instanceof android.graphics.drawable.RippleDrawable){n.setColor(android.content.res.ColorStateList.valueOf(t));return}}this.nativeViewProtected.setClickable(this.isUserInteractionEnabled);this.setRippleDrawable(this.nativeViewProtected,l.Length.toDevicePixels(this.style.borderTopLeftRadius));Object(d.f)()?this.rippleDrawable.setColor(android.content.res.ColorStateList.valueOf(t)):this.rippleDrawable.rippleShape.getPaint().setColor(t)}[l.backgroundInternalProperty.setNative](e){if(this.nativeViewProtected)if(e instanceof android.graphics.drawable.Drawable);else if(this.rippleDrawable||e.color&&this instanceof o.Button&&this.rippleColor){this.rippleDrawable=null;this.setRippleDrawable(this.nativeViewProtected,e.borderTopLeftRadius)}}getDefaultElevation(){var e=this instanceof o.Button?2:0;return e}getDefaultDynamicElevationOffset(){var e=this instanceof o.Button?6:0;return e}[p.c.setNative](e){if(Object(d.e)())Object(d.b)(this,this.nativeViewProtected);else{var t=l.Length.toDevicePixels("string"==typeof e?l.Length.parse(e):e,0);androidx.core.view.ViewCompat.setElevation(this.nativeViewProtected,t)}}[p.b.setNative](e){this.nativeViewProtected.setClickable(this.isUserInteractionEnabled);if(Object(d.e)())Object(d.b)(this,this.nativeViewProtected);else{var t=l.Length.toDevicePixels("string"==typeof e?l.Length.parse(e):e,0);androidx.core.view.ViewCompat.setTranslationZ(this.nativeViewProtected,t)}}[l.androidElevationProperty.setNative](e){}[l.androidDynamicElevationOffsetProperty.setNative](e){}}__decorate([p.a,__metadata("design:type",Number)],ViewWithElevationAndRipple.prototype,"elevation",void 0);__decorate([p.a,__metadata("design:type",Number)],ViewWithElevationAndRipple.prototype,"dynamicElevationOffset",void 0);__decorate([p.a,__metadata("design:type",n.a)],ViewWithElevationAndRipple.prototype,"rippleColor",void 0)},,function(e,t,r){"use strict";r.d(t,"a",(function(){return stack_layout_StackLayout}));var n=r(26),i=r(19),a=r(0),o=class StackLayoutBase extends n.a{};o=__decorate([Object(i.a)("StackLayout")],o);o.prototype.recycleNativeView="auto";var l=Object(a.makeParser)(Object(a.makeValidator)("horizontal","vertical")),d=new a.Property({name:"orientation",defaultValue:"vertical",affectsLayout:!1,valueConverter:l});d.register(o);class stack_layout_StackLayout extends o{createNativeView(){return new org.nativescript.widgets.StackLayout(this._context)}[d.setNative](e){this.nativeViewProtected.setOrientation("vertical"===e?org.nativescript.widgets.Orientation.vertical:org.nativescript.widgets.Orientation.horizontal)}}},function(e,t,r){"use strict";(function(e){r.d(t,"g",(function(){return RadListView}));r.d(t,"c",(function(){return ListViewLinearLayout}));r.d(t,"a",(function(){return ListViewGridLayout}));r.d(t,"e",(function(){return ListViewStaggeredLayout}));var n=r(10);r.d(t,"b",(function(){return n.b}));r.d(t,"d",(function(){return n.f}));r.d(t,"f",(function(){return n.h}));var i,a,o,l,d,p,h,m,g,f,v,y,w,C,S=r(42),b=r(61),x=r(4),T=r(53),P=r(23),k=r(3),A=r(0);S.a.knownTemplates.add("itemTemplate").add("itemSwipeTemplate").add("loadOnDemandItemTemplate").add("headerItemTemplate").add("footerItemTemplate").add("groupTemplate");S.a.knownMultiTemplates.add("itemTemplates");class ReorderHandle extends n.k{constructor(){super()}}function patchHolderViewIfChanged(e,t){if(t!==e.nsView._subViews[0]){e.nsView.removeChildren();e.nsView.addChild(t);t.nsMainBackgroundColor=t.backgroundColor}}class RadListView extends n.j{constructor(){super();this._currentId=0;this._androidViewId=-1;this._scrolledPixels=0;!function ensureListViewAdapter(){if(!a){var t=function(t){__extends(ListViewAdapter,t);function ListViewAdapter(r,n){var i=t.call(this,r)||this;i.owner=n;i.templateTypeNumberString=new Map;i._currentNativeItemType=0;i._viewHolders=new Array;i._swipeHolders=new Array;i._viewHolderChildren=new Array;return e.__native(i)}ListViewAdapter.prototype.disposeViewHolderViews=function(){var e=this;this._viewHolderChildren.forEach((function(t){if(t.parent){t.parent instanceof RadListView||!e.owner||e.owner._removeView(t.parent);t.parent._removeView(t)}}));this._viewHolderChildren=new Array;this._viewHolders=null;this._swipeHolders=null};ListViewAdapter.prototype.getKeyByValue=function(e){var t;this.templateTypeNumberString.forEach((function(r,n,i){r===e&&(t=n)}),this);return t};ListViewAdapter.prototype.clearTemplateTypes=function(){this._currentNativeItemType=0;this.templateTypeNumberString.clear()};ListViewAdapter.prototype.onCreateViewHolder=function(e,t){var r=this.getKeyByValue(t),i=this.owner;if(!i)return new com.telerik.widget.list.ListViewHolder(new android.view.View(e.getContext()));var a=i.getViewForViewType(n.h.ItemView,r),o=new b.a;o.addChild(a);if(i.nativeScriptViewAdded){i.nativeScriptViewAdded(o,a);o[n.i]=a[n.i]}this._viewHolderChildren.push(o);i._addView(o);var l=i._getViewLayoutParams();o.nativeView.setLayoutParams(l);var d=new com.telerik.widget.list.ListViewHolder(o.nativeView);d.nsView=o;a.nsMainBackgroundColor=a.backgroundColor;this._viewHolders.push(d);return d};ListViewAdapter.prototype.getItemViewType=function(e){var t=0,r=this.owner;if(r&&r.itemTemplateSelector){var n=r.itemTemplateSelector;if(n){var i=n(r.getItemAtIndex(e),e,r.items);if(!this.templateTypeNumberString.has(i)){this.templateTypeNumberString.set(i,this._currentNativeItemType);this._currentNativeItemType++}t=this.templateTypeNumberString.get(i)}}return t};ListViewAdapter.prototype.onBindViewHolder=function(e,t){var r=this.owner;if(r){var i=e.nsView._subViews[0];r._toggleSelectionColor(i,r.isItemSelected(r.getItemAtIndex(t)));e.nsView.bindingContext=r.getItemAtIndex(t);var a={eventName:n.j.itemLoadingInternalEvent,index:t,object:r,view:i,android:e};r.notify(a);patchHolderViewIfChanged(e,a.view);var o={eventName:n.j.itemLoadingEvent,index:t,object:r,view:a.view,android:e};r.notify(o);patchHolderViewIfChanged(e,o.view)}};ListViewAdapter.prototype.onCreateSwipeContentHolder=function(e){var t=this.owner;if(!t)return null;var r=t.getViewForViewType(n.h.ItemSwipeView);this._viewHolderChildren.push(r);t._addView(r);var i=new com.telerik.widget.list.ListViewHolder(r.nativeView);i.nsView=r;this._swipeHolders.push(i);return i};ListViewAdapter.prototype.onBindSwipeContentHolder=function(e,t){e.nsView.bindingContext=this.owner.getItemAtIndex(t)};ListViewAdapter.prototype.canReorder=function(e){t.prototype.canReorder.call(this,e);var r=this.owner;if(!r)return!1;var i=r.getViewForItem(r.getItemAtIndex(e)),a={eventName:n.j.itemReorderStartingEvent,object:r,index:e,groupIndex:-1,data:void 0,returnValue:!0,view:i};r.notify(a);return a.returnValue};ListViewAdapter.prototype.reorderItem=function(e,r){var n=t.prototype.reorderItem.call(this,e,r);!0===n&&this.owner._reorderItemInSource(e,r);return n};ListViewAdapter.prototype.setItems=function(e){this.clearHolders();this.owner._resetCurrentId();t.prototype.setItems.call(this,e)};ListViewAdapter.prototype.canSwipe=function(e){if(!t.prototype.canSwipe.call(this,e))return!1;var r=this.owner;if(!r)return!1;var i=r._getOriginalIndex(e),a={eventName:n.j.itemSwipingEvent,object:r,index:i,groupIndex:-1,returnValue:!0};r.notify(a);return a.returnValue};ListViewAdapter.prototype.canSelect=function(e){var t=!0,r=this.owner;if(r&&r.items){var i=r.getItemAtIndex(e),a=r.isItemSelected(i),o=!0===a?n.j.itemDeselectingEvent:n.j.itemSelectingEvent,l=r.getViewForItem(i),d={eventName:o,object:r,index:e,groupIndex:-1,returnValue:!0,view:l};r.notify(d);t=!0===d.returnValue}return t};ListViewAdapter.prototype.getViewForItem=function(e){for(var t=0;t=0&&t.swipeActionsBehavior.setSwipeLimitStart(this.swipeLimits.top);this.swipeLimits.bottom>=0&&t.swipeActionsBehavior.setSwipeLimitEnd(this.swipeLimits.bottom)}else{this.swipeLimits.left>=0&&t.swipeActionsBehavior.setSwipeLimitStart(this.swipeLimits.left);this.swipeLimits.right>=0&&t.swipeActionsBehavior.setSwipeLimitEnd(this.swipeLimits.right)}if(void 0!==this.swipeLimits.threshold){t.swipeActionsBehavior.setSwipeThresholdEnd(this.swipeLimits.threshold);t.swipeActionsBehavior.setSwipeThresholdStart(this.swipeLimits.threshold)}}};ListViewSwipeActionsListenerImpl.prototype.onSwipeProgressChanged=function(e){if(!e.isRemoveInProgress()){var t=this.owner;if(t){var r=t._getOriginalIndex(e.swipedItemPosition()),i=t._listViewAdapter.getSwipeViewForItem(t.getItemAtIndex(r)),a=t._listViewAdapter.getViewForItem(t.getItemAtIndex(r)),o={eventName:n.j.itemSwipeProgressChangedEvent,object:t,swipeView:i,mainView:a,index:r,data:{x:t.listViewLayout.scrollDirection===n.f.Vertical?e.currentOffset():0,y:t.listViewLayout.scrollDirection===n.f.Vertical?0:e.currentOffset(),swipeLimits:this.swipeLimits}};t.notify(o)}}};ListViewSwipeActionsListenerImpl.prototype.onSwipeEnded=function(e){};ListViewSwipeActionsListenerImpl.prototype.onExecuteFinished=function(e){if(!e.isRemoveInProgress()){var t=this.owner;if(t){var r=t._getOriginalIndex(e.swipedItemPosition()),i=t._listViewAdapter.getSwipeViewForItem(t.getItemAtIndex(r)),a=t._listViewAdapter.getViewForItem(t.getItemAtIndex(r)),o={eventName:n.j.itemSwipeProgressEndedEvent,object:t,swipeView:i,mainView:a,index:r,data:{x:t.listViewLayout.scrollDirection===n.f.Vertical?e.swipePositionWhenReleased():0,y:t.listViewLayout.scrollDirection===n.f.Vertical?0:e.swipePositionWhenReleased(),swipeLimits:this.swipeLimits}};t.notify(o)}}};ListViewSwipeActionsListenerImpl.prototype.onSwipeStateChanged=function(e,t){};ListViewSwipeActionsListenerImpl=__decorate([Interfaces([com.telerik.widget.list.SwipeActionsBehavior.SwipeActionsListener])],ListViewSwipeActionsListenerImpl);return ListViewSwipeActionsListenerImpl}(java.lang.Object);d=r}if(!p){var i=function(t){__extends(ListViewSwipeExecuteListenerImpl,t);function ListViewSwipeExecuteListenerImpl(r){var i=t.call(this)||this;i.owner=r;i.swipeLimits=r.listViewLayout.scrollDirection===n.f.Vertical?{left:150,top:0,right:150,bottom:0,threshold:75}:{left:0,top:150,right:0,bottom:150,threshold:75};return e.__native(i)}ListViewSwipeExecuteListenerImpl.prototype.onSwipeStarted=function(e){var t=this.owner,r={eventName:n.j.itemSwipeProgressStartedEvent,object:t,swipeView:t._listViewAdapter.getSwipeViewForItem(t.getItemAtIndex(e)),index:e,groupIndex:-1,data:{swipeLimits:this.swipeLimits}};t.notify(r);if(t.listViewLayout.scrollDirection===n.f.Horizontal){t.swipeExecuteBehavior.setSwipeLimitStart(-this.swipeLimits.top);t.swipeExecuteBehavior.setSwipeLimitEnd(this.swipeLimits.bottom)}else{t.swipeExecuteBehavior.setSwipeLimitStart(-this.swipeLimits.right);t.swipeExecuteBehavior.setSwipeLimitEnd(this.swipeLimits.left)}};ListViewSwipeExecuteListenerImpl.prototype.onSwipeProgressChanged=function(e,t,r){var i=this.owner,a={eventName:n.j.itemSwipeProgressChangedEvent,object:i,swipeView:i._listViewAdapter.getSwipeViewForItem(i.getItemAtIndex(e)),index:e,data:{x:t,y:0,swipeLimits:this.swipeLimits},returnValue:void 0};i.notify(a)};ListViewSwipeExecuteListenerImpl.prototype.onSwipeEnded=function(e,t){var r=this.owner,i={eventName:n.j.itemSwipeProgressEndedEvent,object:r,swipeView:r._listViewAdapter.getSwipeViewForItem(r.getItemAtIndex(e)),index:e,data:{x:t,y:0,swipeLimits:this.swipeLimits},returnValue:void 0};r.notify(i);i.data.swipeLimits&&(Math.abs(t)>i.data.swipeLimits.threshold?t<0?r.listViewLayout.scrollDirection===n.f.Horizontal?r.swipeExecuteBehavior.setSwipeOffset(-i.data.swipeLimits.bottom):r.listViewLayout.scrollDirection===n.f.Vertical&&r.swipeExecuteBehavior.setSwipeOffset(-i.data.swipeLimits.right):t>0&&(r.listViewLayout.scrollDirection===n.f.Horizontal?r.swipeExecuteBehavior.setSwipeOffset(i.data.swipeLimits.top):r.listViewLayout.scrollDirection===n.f.Vertical&&r.swipeExecuteBehavior.setSwipeOffset(i.data.swipeLimits.left)):r.swipeExecuteBehavior.setSwipeOffset(0))};ListViewSwipeExecuteListenerImpl.prototype.onExecuteFinished=function(e){};ListViewSwipeExecuteListenerImpl=__decorate([Interfaces([com.telerik.widget.list.SwipeExecuteBehavior.SwipeExecuteListener])],ListViewSwipeExecuteListenerImpl);return ListViewSwipeExecuteListenerImpl}(java.lang.Object);p=i}if(!h){var a=function(t){__extends(ListViewSwipeRefreshListenerImpl,t);function ListViewSwipeRefreshListenerImpl(r){var n=t.call(this)||this;n.owner=r;return e.__native(n)}ListViewSwipeRefreshListenerImpl.prototype.onRefreshRequested=function(){var e={eventName:n.j.pullToRefreshInitiatedEvent,object:this.owner,returnValue:!0};this.owner.notify(e)};ListViewSwipeRefreshListenerImpl=__decorate([Interfaces([com.telerik.widget.list.SwipeRefreshBehavior.SwipeRefreshListener])],ListViewSwipeRefreshListenerImpl);return ListViewSwipeRefreshListenerImpl}(java.lang.Object);h=a}if(!m){var o=function(t){__extends(ListViewLoadOnDemandListenerImpl,t);function ListViewLoadOnDemandListenerImpl(r){var n=t.call(this)||this;n.owner=r;return e.__native(n)}ListViewLoadOnDemandListenerImpl.prototype.onLoadStarted=function(){var e={eventName:n.j.loadMoreDataRequestedEvent,object:this.owner,returnValue:!0};this.owner.notify(e)};ListViewLoadOnDemandListenerImpl.prototype.onLoadFinished=function(){};ListViewLoadOnDemandListenerImpl=__decorate([Interfaces([com.telerik.widget.list.LoadOnDemandBehavior.LoadOnDemandListener])],ListViewLoadOnDemandListenerImpl);return ListViewLoadOnDemandListenerImpl}(java.lang.Object);m=o}if(!g){var y=function(t){__extends(ListViewItemReorderListenerImpl,t);function ListViewItemReorderListenerImpl(r){var n=t.call(this)||this;n.owner=r;n.newIndex=-1;n.oldIndex=-1;return e.__native(n)}ListViewItemReorderListenerImpl.prototype.onReorderStarted=function(e){this.oldIndex=e;var t=this.owner.getViewForItem(this.owner.getItemAtIndex(e)),r={eventName:n.j.itemReorderStartedEvent,object:this.owner,index:this.oldIndex,groupIndex:-1,view:t};this.owner.notify(r)};ListViewItemReorderListenerImpl.prototype.onReorderItem=function(e,t){this.newIndex=t};ListViewItemReorderListenerImpl.prototype.onReorderFinished=function(){-1===this.newIndex&&(this.newIndex=this.oldIndex);var e=this.owner.getViewForItem(this.owner.getItemAtIndex(this.newIndex)),t={eventName:n.j.itemReorderedEvent,object:this.owner,index:this.oldIndex,groupIndex:-1,data:{targetIndex:this.newIndex,targetGroupIndex:-1},view:e};this.newIndex=-1;this.owner.notify(t)};ListViewItemReorderListenerImpl=__decorate([Interfaces([com.telerik.widget.list.ItemReorderBehavior.ItemReorderListener])],ListViewItemReorderListenerImpl);return ListViewItemReorderListenerImpl}(java.lang.Object);g=y}if(!f){var w=function(t){__extends(ListViewSelectionChangedListenerImpl,t);function ListViewSelectionChangedListenerImpl(r){var n=t.call(this)||this;n.owner=r;return e.__native(n)}ListViewSelectionChangedListenerImpl.prototype.onSelectionStarted=function(){};ListViewSelectionChangedListenerImpl.prototype.onItemIsSelectedChanged=function(e,t){var r=!0===t?n.j.itemSelectedEvent:n.j.itemDeselectedEvent,i=this.owner;if(i&&!(e<0)){var a=i._listViewAdapter.isGroupHeader(e);if(!a){var o=i._getOriginalIndex(e),l=i.getItemAtIndex(o),d=i.getViewForItem(l);i._toggleSelectionColor(d,r===n.j.itemSelectedEvent);var p={eventName:r,object:i,index:o,groupIndex:-1,view:d};i.notify(p)}}};ListViewSelectionChangedListenerImpl.prototype.onSelectionEnded=function(){};ListViewSelectionChangedListenerImpl=__decorate([Interfaces([com.telerik.widget.list.SelectionBehavior.SelectionChangedListener])],ListViewSelectionChangedListenerImpl);return ListViewSelectionChangedListenerImpl}(java.lang.Object);f=w}if(!v){var C=function(t){__extends(ListViewNativeScrollListenerImpl,t);function ListViewNativeScrollListenerImpl(r){var n=t.call(this)||this;n.owner=r;n._wasIdle=!0;n._wasDragging=!1;return e.__native(n)}ListViewNativeScrollListenerImpl.prototype.onScrolled=function(e,t,r){var i=this.owner;i.onScrolledPixelsChangedBy(t+r);var a={eventName:n.j.scrolledEvent,object:i,scrollOffset:i.getScrollOffset()};i.notify(a)};ListViewNativeScrollListenerImpl.prototype.onScrollStateChanged=function(e,t){var r,i=this.owner;switch(t){case androidx.recyclerview.widget.RecyclerView.SCROLL_STATE_IDLE:if(this._wasDragging){r={eventName:n.j.scrollDragEndedEvent,object:i,scrollOffset:i.getScrollOffset()};this._wasDragging=!1;i.hasListeners(r.eventName)&&i.notify(r)}r={eventName:n.j.scrollEndedEvent,object:i,scrollOffset:i.getScrollOffset()};this._wasIdle=!0;break;case androidx.recyclerview.widget.RecyclerView.SCROLL_STATE_DRAGGING:this._wasDragging=!0;r={eventName:this._wasIdle?n.j.scrollStartedEvent:n.j.scrolledEvent,object:i,scrollOffset:i.getScrollOffset()};this._wasIdle=!1;break;case androidx.recyclerview.widget.RecyclerView.SCROLL_STATE_SETTLING:if(this._wasDragging){r={eventName:n.j.scrollDragEndedEvent,object:i,scrollOffset:i.getScrollOffset()};this._wasDragging=!1;i.hasListeners(r.eventName)&&i.notify(r)}r={eventName:n.j.scrolledEvent,object:i,scrollOffset:i.getScrollOffset()}}i.hasListeners(r.eventName)&&i.notify(r)};return ListViewNativeScrollListenerImpl}(androidx.recyclerview.widget.RecyclerView.OnScrollListener);v=C}}();!function initializeDataFunctions(){if(!y){var t=function(t){__extends(ListViewGroupDescriptorImpl,t);function ListViewGroupDescriptorImpl(r){var n=t.call(this)||this;n.owner=r;return e.__native(n)}ListViewGroupDescriptorImpl.prototype.groupForItem=function(e){var t=this.owner._listViewAdapter.getItems().indexOf(new java.lang.Integer(+e)),r=this.owner.getItemAtIndex(t);return this.owner.groupingFunction(r)};ListViewGroupDescriptorImpl=__decorate([Interfaces([com.telerik.android.data.ListViewGroupFunction])],ListViewGroupDescriptorImpl);return ListViewGroupDescriptorImpl}(java.lang.Object);y=t}if(!w){var r=function(t){__extends(ListViewFilterDescriptorImpl,t);function ListViewFilterDescriptorImpl(r){var n=t.call(this)||this;n.owner=r;return e.__native(n)}ListViewFilterDescriptorImpl.prototype.shouldIncludeItem=function(e){var t=this.owner._listViewAdapter.getItems().indexOf(new java.lang.Integer(+e)),r=this.owner.getItemAtIndex(t);return this.owner.filteringFunction(r)};ListViewFilterDescriptorImpl=__decorate([Interfaces([com.telerik.android.data.ListViewFilterFunction])],ListViewFilterDescriptorImpl);return ListViewFilterDescriptorImpl}(java.lang.Object);w=r}if(!C){var n=function(t){__extends(ListViewSortDescriptorImpl,t);function ListViewSortDescriptorImpl(r){var n=t.call(this)||this;n.owner=r;return e.__native(n)}ListViewSortDescriptorImpl.prototype.compareItems=function(e,t){var r=this.owner._listViewAdapter.getItems().indexOf(new java.lang.Integer(+e)),n=this.owner._listViewAdapter.getItems().indexOf(new java.lang.Integer(+t)),i=this.owner.getItemAtIndex(r),a=this.owner.getItemAtIndex(n),o=this.owner.sortingFunction(a,i);return new java.lang.Integer(o)};ListViewSortDescriptorImpl=__decorate([Interfaces([com.telerik.android.data.ListViewSortFunction])],ListViewSortDescriptorImpl);return ListViewSortDescriptorImpl}(java.lang.Object);C=n}}();this.on("bindingContextChange",this.bindingContextChanged,this);this._headerViewHolderChildren=new Array;this._footerViewHolderChildren=new Array;this._loadOnDemandViewHolderChildren=new Array}createNativeView(){this._android=new com.telerik.widget.list.RadListView(this._context);this._rootLayout=new android.widget.FrameLayout(this._context);this._rootLayout.addView(this._android);this.listViewLayout?this.listViewLayout._init(this):this.listViewLayout=new ListViewLinearLayout;this.loadData();this.subscribeForNativeScrollEvents();this.updateSelectionBehavior();this.updateReorderBehavior();this.updateLoadOnDemandBehavior();this.updatePullToRefreshBehavior();this.updateSwipeToExecuteBehavior();this.updateSwipeActionsBehavior();this.updateCollapsibleGroupsBehavior();this._updateHeader();this._updateFooter();this._android._itemClickListener=new l(this);this._android.addItemClickListener(this._android._itemClickListener);return this._rootLayout}initNativeView(){super.initNativeView();this._androidViewId<0&&(this._androidViewId=android.view.View.generateViewId());this._android.setId(this._androidViewId)}disposeNativeView(){this._android._listViewAdapter&&(this._android._listViewAdapter=null);if(this._android._nativeScrollStateListener){this._android.removeOnScrollListener(this._android._nativeScrollStateListener);this._android._nativeScrollStateListener.owner=null}if(this._selectionBehavior){this._android.removeBehavior(this._selectionBehavior);this._selectionBehavior=void 0}if(this._reorderBehavior){this._android.removeBehavior(this._reorderBehavior);this._reorderBehavior.nsOwner=null;this._reorderBehavior=void 0}if(this._loadOnDemandBehavior){this._android.removeBehavior(this._loadOnDemandBehavior);this._loadOnDemandBehavior=void 0}if(this._swipeExecuteBehavior){this._android.removeBehavior(this._swipeExecuteBehavior);this._swipeExecuteBehavior=void 0}if(this._swipeActionsBehavior){this._android.removeBehavior(this._swipeActionsBehavior);this._swipeActionsBehavior=void 0}if(this._pullToRefreshBehavior){this._android.removeBehavior(this._pullToRefreshBehavior);this._pullToRefreshBehavior=void 0}this._android&&this._android.setAdapter(null);if(this.listViewLayout){this.listViewLayout.owner=null;this.listViewLayout=void 0}if(this._listViewAdapter){this._listViewAdapter.owner=null;this._listViewAdapter=void 0}this._android._groupDescriptorFunction&&(this._android._groupDescriptorFunction.owner=null);this._android._filterDescriptorFunction&&(this._android._filterDescriptorFunction.owner=null);this._android._sortDescriptorFunction&&(this._android._sortDescriptorFunction.owner=null);this._android._itemClickListener&&(this._android._itemClickListener.owner=null);this._android._swipeActionsListener&&(this._android._swipeActionsListener.owner=null);this._android._swipeExecuteListener&&(this._android._swipeExecuteListener.owner=null);this._android._swipeRefreshListener&&(this._android._swipeRefreshListener.owner=null);this._android._loadOnDemandListener&&(this._android._loadOnDemandListener.owner=null);this._android._itemReorderListener&&(this._android._itemReorderListener.owner=null);this._android._selectionChangedListener&&(this._android._selectionChangedListener.owner=null);this.clearEmbeddedViews();super.disposeNativeView()}_resetCurrentId(){this._currentId=0}_getUniqueItemId(){return this._currentId++}get androidListView(){return this._android}get swipeActionsBehavior(){return this._swipeActionsBehavior}get swipeExecuteBehavior(){return this._swipeExecuteBehavior}get _childrenCount(){var e=0;this._headerView&&e++;this._footerView&&e++;return void 0===this._listViewAdapter?0:this._listViewAdapter._viewHolders?this._listViewAdapter._viewHolders.length+this._listViewAdapter._swipeHolders.length+e:0}eachChildView(e){this._headerView&&e(this._headerView);this._footerView&&e(this._footerView);if(void 0!==this._listViewAdapter){this._listViewAdapter._viewHolders&&this._listViewAdapter._viewHolders.forEach((function(t,r){e(t.nsView)}),this);this._listViewAdapter._swipeHolders&&this._listViewAdapter._swipeHolders.forEach((function(t,r){e(t.nsView)}),this)}}_toggleSelectionColor(e,t){if(e){var r=this.itemSelectedBackgroundColor?this.itemSelectedBackgroundColor:new x.a("#20000000");e.backgroundColor=t?r:e.nsMainBackgroundColor}}_getViewLayoutParams(){var e=new org.nativescript.widgets.CommonLayoutParams;if(this.listViewLayout instanceof ListViewLinearLayout)if(this.listViewLayout.scrollDirection===n.f.Vertical){e.width=org.nativescript.widgets.CommonLayoutParams.MATCH_PARENT;e.height=org.nativescript.widgets.CommonLayoutParams.WRAP_CONTENT}else if(this.listViewLayout.scrollDirection===n.f.Horizontal){e.width=org.nativescript.widgets.CommonLayoutParams.WRAP_CONTENT;e.height=org.nativescript.widgets.CommonLayoutParams.MATCH_PARENT}return e}isItemSelected(e){if(this._selectionBehavior)for(var t=this._selectionBehavior.selectedItems(),r=0;r0)for(var n=0;n1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.b.Auto,i=this._getNativePosition(e);0===e&&(this._scrolledPixels=0);if(this._android){var a=this.retrieveNativeSnapMode(r);t?this._android.smoothScrollToPosition(i,a):this._android.scrollToPosition(i,a)}}getScrollOffset(){return k.Utils.layout.toDeviceIndependentPixels(this._scrolledPixels)}onScrolledPixelsChangedBy(e){this._scrolledPixels+=e;(this._scrolledPixels<0||!this._isScrolled())&&(this._scrolledPixels=0)}_isScrolled(){if(this._android){if(this.listViewLayout.scrollDirection===n.f.Vertical)return this._android.computeVerticalScrollOffset()>0;if(this.listViewLayout.scrollDirection===n.f.Horizontal)return this._android.computeHorizontalScrollOffset()>0}return!1}scrollWithAmount(e,t){if(this._android){var r=this.listViewLayout.scrollDirection===n.f.Vertical;e=k.Utils.layout.toDevicePixels(e);r?t?this._android.smoothScrollBy(0,e):this._android.scrollBy(0,e):t?this._android.smoothScrollBy(e,0):this._android.scrollBy(e,0)}}disposeViewHolderViews(e){e.forEach(e=>{if(e.parent){e.parent instanceof RadListView||this._removeView(e.parent);e.parent._removeView(e)}});e=new Array}_updateHeader(){if(this._android){var e=this.getViewForViewType(n.h.HeaderView);this._android.setHeaderView(null);var t=this._getViewLayoutParams();if(e){e.bindingContext=this.bindingContext;this.disposeViewHolderViews(this._headerViewHolderChildren);this._headerViewHolderChildren.push(e);this._addView(e);e.nativeView.setLayoutParams(t);this._android.setHeaderView(e.nativeView);this._headerView=e}}}_updateFooter(){if(this._android){var e=this.getViewForViewType(n.h.FooterView);this._android.setFooterView(null);var t=this._getViewLayoutParams();if(e){e.bindingContext=this.bindingContext;this.disposeViewHolderViews(this._footerViewHolderChildren);this._footerViewHolderChildren.push(e);this._addView(e);e.nativeView.setLayoutParams(t);this._android.setFooterView(e.nativeView);this._footerView=e}}}updateSwipeActionsBehavior(){if(this._android&&(this.itemSwipeTemplate||this.itemViewLoader))if(!0===this.swipeActions){if(!this._swipeActionsBehavior){this._swipeActionsBehavior=new com.telerik.widget.list.SwipeActionsBehavior;this._swipeActionsBehavior.setDockMode(com.telerik.widget.list.SwipeActionsBehavior.SwipeDockMode.DockAtLimit);this._android.addBehavior(this._swipeActionsBehavior);this._android._swipeActionsListener=new d(this);this._swipeActionsBehavior.addListener(this._android._swipeActionsListener)}}else if(this._swipeActionsBehavior){this._android.removeBehavior(this._swipeActionsBehavior);if(this._android._swipeActionsListener){this._swipeActionsBehavior.removeListener(this._android._swipeActionsListener);this._android._swipeActionsListener.owner=null;this._android._swipeActionsListener=null}this._swipeActionsBehavior=null}}updateSwipeToExecuteBehavior(){if(this._android&&(this.itemSwipeTemplate||this.itemViewLoader))if(!0===this.itemSwipe){if(!this._swipeExecuteBehavior){this._swipeExecuteBehavior=new com.telerik.widget.list.SwipeExecuteBehavior;this._swipeExecuteBehavior.setAutoDissolve(!1);this._android.addBehavior(this._swipeExecuteBehavior);this._android._swipeExecuteListener=new p(this);this._swipeExecuteBehavior.addListener(this._android._swipeExecuteListener)}}else if(this._swipeExecuteBehavior){this._android.removeBehavior(this._swipeExecuteBehavior);if(this._android._swipeExecuteListener){this._swipeExecuteBehavior.removeListener(this._android._swipeExecuteListener);this._android._swipeExecuteListener.owner=null;this._android._swipeExecuteListener=null}this._swipeExecuteBehavior=null}}updatePullToRefreshBehavior(){if(this._android)if(!0===this.pullToRefresh){if(!this._pullToRefreshBehavior){this._pullToRefreshBehavior=new com.telerik.widget.list.SwipeRefreshBehavior;this._android.addBehavior(this._pullToRefreshBehavior);this._android._swipeRefreshListener=new h(this);this._pullToRefreshBehavior.addListener(this._android._swipeRefreshListener)}if(this._pullToRefreshBehavior&&void 0!==this.pullToRefreshStyle){var e=this.pullToRefreshStyle;if(e.indicatorColor){var t=new Array;t.push(e.indicatorColor.android);this._pullToRefreshBehavior.swipeRefresh().setColorSchemeColors(t)}e.indicatorBackgroundColor&&this._pullToRefreshBehavior.swipeRefresh().setProgressBackgroundColorSchemeColor(e.indicatorBackgroundColor.android)}}else if(this._pullToRefreshBehavior){this._android.removeBehavior(this._pullToRefreshBehavior);if(this._android._swipeRefreshListener){this._pullToRefreshBehavior.removeListener(this._android._swipeRefreshListener);this._android._swipeRefreshListener.owner=null;this._android._swipeRefreshListener=null}this._pullToRefreshBehavior=null}}updateCollapsibleGroupsBehavior(){if(this._android&&this.enableCollapsibleGroups)if(this.enableCollapsibleGroups){if(!this._collapsibleGroupsBehavior){this._collapsibleGroupsBehavior=new com.telerik.widget.list.CollapsibleGroupsBehavior;this._android.addBehavior(this._collapsibleGroupsBehavior)}}else if(this._collapsibleGroupsBehavior){this._android.removeBehavior(this._collapsibleGroupsBehavior);this._collapsibleGroupsBehavior=null}}setLoadOnDemandModeInternal(e){this._loadOnDemandModeInternal=e;this.updateLoadOnDemandBehavior()}updateLoadOnDemandBehavior(){if(this._android){if(!this._loadOnDemandBehavior){var e=this.getViewForViewType(n.h.LoadOnDemandView);if(e){this.disposeViewHolderViews(this._loadOnDemandViewHolderChildren);this._loadOnDemandViewHolderChildren.push(e);this._addView(e);switch(this._loadOnDemandModeInternal){case n.d.Manual:this._loadOnDemandBehavior=new com.telerik.widget.list.LoadOnDemandBehavior(e.nativeView,new android.widget.LinearLayout(this._context));break;case n.d.Auto:default:this._loadOnDemandBehavior=new com.telerik.widget.list.LoadOnDemandBehavior(new android.widget.LinearLayout(this._context),e.nativeView)}}else this._loadOnDemandBehavior=new com.telerik.widget.list.LoadOnDemandBehavior;this._android.addBehavior(this._loadOnDemandBehavior);this._android._loadOnDemandListener=new m(this);this._loadOnDemandBehavior.addListener(this._android._loadOnDemandListener)}isNaN(this.loadOnDemandBufferSize)||this._loadOnDemandBehavior.setMaxRemainingItems(this.loadOnDemandBufferSize);switch(this._loadOnDemandModeInternal){case n.d.Manual:this._loadOnDemandBehavior.setEnabled(!0);this._loadOnDemandBehavior.setMode(com.telerik.widget.list.LoadOnDemandBehavior.LoadOnDemandMode.MANUAL);break;case n.d.Auto:this._loadOnDemandBehavior.setEnabled(!0);this._loadOnDemandBehavior.setMode(com.telerik.widget.list.LoadOnDemandBehavior.LoadOnDemandMode.AUTOMATIC);break;default:this._loadOnDemandBehavior.setEnabled(!1)}}}updateReorderBehavior(){if(this._android)if(this.itemReorder){if(!this._reorderBehavior){!function ensureExtendedReorderWithHandlesBehavior(){if(!i){var t=function(t){__extends(ExtendedReorderWithHandlesBehavior,t);function ExtendedReorderWithHandlesBehavior(r){var n=t.call(this,r)||this;return e.__native(n)}ExtendedReorderWithHandlesBehavior.prototype.getReorderHandleOverride=function(e){var t=this.owner().getChildAdapterPosition(e),r=this.nsOwner._listViewAdapter.getViewForItem(this.nsOwner.getItemAtIndex(t)),n=void 0;r.eachChildView((function(e){if(e instanceof ReorderHandle){n=e;return!1}return!0}));return void 0===n?e:n.nativeViewProtected};return ExtendedReorderWithHandlesBehavior}(com.telerik.widget.list.ReorderWithHandlesBehavior);i=t}}();this._reorderBehavior=this.reorderMode===n.e.HoldAndDrag?new com.telerik.widget.list.ItemReorderBehavior:new i(-1);this._reorderBehavior.nsOwner=this;this._android.addBehavior(this._reorderBehavior);this._android._itemReorderListener=new g(this);this._reorderBehavior.addListener(this._android._itemReorderListener)}}else if(this._reorderBehavior){this._android.removeBehavior(this._reorderBehavior);if(this._android._itemReorderListener){this._reorderBehavior.removeListener(this._android._itemReorderListener);this._android._itemReorderListener.owner=null;this._android._itemReorderListener=null}this._reorderBehavior.nsOwner=null;this._reorderBehavior=void 0}}updateSelectionBehavior(){if(this._android){if(!this._selectionBehavior){this._selectionBehavior=new com.telerik.widget.list.SelectionBehavior;this._android.addBehavior(this._selectionBehavior);this._android._selectionChangedListener=new f(this);this._selectionBehavior.addListener(this._android._selectionChangedListener)}this.multipleSelection?this._selectionBehavior.setSelectionMode(com.telerik.widget.list.SelectionBehavior.SelectionMode.MULTIPLE):this._selectionBehavior.setSelectionMode(com.telerik.widget.list.SelectionBehavior.SelectionMode.SINGLE);switch(this.selectionBehavior){case n.g.None:this._android.removeBehavior(this._selectionBehavior);if(this._android._selectionChangedListener){this._selectionBehavior.removeListener(this._android._selectionChangedListener);this._android._selectionChangedListener.owner=null;this._android._selectionChangedListener=null}this._selectionBehavior=void 0;break;case n.g.LongPress:this._selectionBehavior.setSelectionOnTouch(com.telerik.widget.list.SelectionBehavior.SelectionOnTouch.NEVER);break;default:this._selectionBehavior.setSelectionOnTouch(com.telerik.widget.list.SelectionBehavior.SelectionOnTouch.ALWAYS)}}}clearFilterDescriptors(){this._listViewAdapter&&this._listViewAdapter.clearFilterDescriptors()}clearGroupDescriptors(){this._listViewAdapter&&this._listViewAdapter.clearGroupDescriptors()}clearSortDescriptors(){this._listViewAdapter&&this._listViewAdapter.clearSortDescriptors()}loadData(){if(this.items&&this._android){var e=new java.util.ArrayList,t=this.items.length;this._resetCurrentId();for(var r=0;r{e.onSpanCountPropertyChanged(t,r)}});ListViewGridLayout.spanCountProperty.register(ListViewGridLayout);class ListViewStaggeredLayout extends ListViewGridLayout{getLayoutManager(){var e=this.scrollDirection===n.f.Vertical?androidx.recyclerview.widget.StaggeredGridLayoutManager.VERTICAL:androidx.recyclerview.widget.StaggeredGridLayoutManager.HORIZONTAL;this.spanCount=this.spanCount?this.spanCount:2;return new androidx.recyclerview.widget.StaggeredGridLayoutManager(this.spanCount,e)}forceRefreshLayout(){this.owner._android&&this._onOwnerUICreated()}}}).call(this,r(20))},function(e,t,r){"use strict";r.d(t,"a",(function(){return LinearGradient}));var n=r(4);class LinearGradient{static parse(e){var t=new LinearGradient;t.angle=e.angle;t.colorStops=e.colors.map(e=>{var t,r=e.offset||null;r&&"%"===r.unit&&(t={unit:"%",value:r.value});return{color:new n.a(e.argb),offset:t}});return t}static equals(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;if(e.angle!==t.angle)return!1;if(e.colorStops.length!==t.colorStops.length)return!1;for(var r=0;r{var r=this.src;if(r===t){this.imageSource=e;this.isLoading=!1}};if(Object(d.l)(e)){var n=e.split("//")[1];if(void 0!==n){var i=this.style.fontInternal,a=this.style.color;imageLoaded(l.ImageSource.fromFontIconCodeSync(n,i,a))}}else if(Object(d.j)(e)){var p=e.split(",")[1];void 0!==p&&(r?imageLoaded(l.ImageSource.fromBase64Sync(p)):l.ImageSource.fromBase64(p).then(imageLoaded))}else if(Object(d.k)(e))if(0===e.indexOf(d.b)){var h=e.substr(d.b.length);if(r)imageLoaded(l.ImageSource.fromResourceSync(h));else{this.imageSource=null;l.ImageSource.fromResource(h).then(imageLoaded)}}else if(r)imageLoaded(l.ImageSource.fromFileSync(e));else{this.imageSource=null;l.ImageSource.fromFile(e).then(imageLoaded)}else{this.imageSource=null;l.ImageSource.fromUrl(e).then(t=>{if(this._url===e){this.imageSource=t;this.isLoading=!1}},e=>{this.isLoading=!1;if(f.a.isEnabled()){"object"==typeof e&&e.message&&(e=e.message);f.a.write(e,f.a.categories.Debug)}})}}else if(e instanceof l.ImageSource){this.imageSource=e;this.isLoading=!1}else if(e instanceof o.a)l.ImageSource.fromAsset(e).then(e=>{this.imageSource=e;this.isLoading=!1});else{this.imageSource=new l.ImageSource(e);this.isLoading=!1}}};v=__decorate([Object(i.a)("Image")],v);v.prototype.recycleNativeView="auto";var y=new g.Property({name:"imageSource"});y.register(v);var w=new g.Property({name:"src"});w.register(v);var C=new g.Property({name:"loadMode",defaultValue:"sync"});C.register(v);var S=new g.Property({name:"isLoading",defaultValue:!1,valueConverter:a.b});S.register(v);var b=new g.Property({name:"stretch",defaultValue:"aspectFit",affectsLayout:!1});b.register(v);var x=new g.InheritedCssProperty({name:"tintColor",cssName:"tint-color",equalityComparer:p.a.equals,valueConverter:e=>new p.a(e)});x.register(h.a);var T=new g.Property({name:"decodeHeight",defaultValue:{value:0,unit:"dip"},valueConverter:m.Length.parse});T.register(v);var P=new g.Property({name:"decodeWidth",defaultValue:{value:0,unit:"dip"},valueConverter:m.Length.parse});P.register(v)},function(e,t,r){"use strict";r.d(t,"c",(function(){return ItemSpec}));r.d(t,"a",(function(){return p}));r.d(t,"d",(function(){return h}));r.d(t,"e",(function(){return m}));r.d(t,"f",(function(){return g}));r.d(t,"g",(function(){return v}));r.d(t,"b",(function(){return f}));var n,i=r(26),a=r(5),o=r(19),l=r(0),d=r(16);function validateArgs(e){if(!e)throw new Error("element cannot be null or undefined.");return e}a.c.prototype.row=0;a.c.prototype.col=0;a.c.prototype.rowSpan=1;a.c.prototype.colSpan=1;Object.defineProperty(a.c.prototype,"column",{get(){return this.col},set(e){this.col=e},enumerable:!0,configurable:!0});Object.defineProperty(a.c.prototype,"columnSpan",{get(){return this.colSpan},set(e){this.colSpan=e},enumerable:!0,configurable:!0});function validateItemSpec(e){if(!e)throw new Error("Value cannot be undefined.");if(e.owner)throw new Error("itemSpec is already added to GridLayout.")}function convertGridLength(e){if(e===f.AUTO)return ItemSpec.create(1,f.AUTO);if(-1!==e.indexOf("*")){var t=parseInt(e.replace("*","")||"1");return ItemSpec.create(t,f.STAR)}if(isNaN(parseInt(e)))throw new Error("Cannot parse item spec from string: ".concat(e));return ItemSpec.create(parseInt(e),f.PIXEL)}function parseAndAddItemSpecs(e,t){for(var r="".concat(e).split(/[\s,]+/),n=0,i=r.length;n0&&t(convertGridLength(r[n].trim()))}}class ItemSpec extends d.a{constructor(){super();this._actualLength=0;if(0===arguments.length){this._value=1;this._unitType=f.STAR}else{if(2!==arguments.length)throw new Error("ItemSpec expects 0 or 2 arguments");var e=arguments[0],t=arguments[1];if("number"!=typeof e||"string"!=typeof t)throw new Error("First argument should be number, second argument should be string.");if(e<0||isNaN(e)||!isFinite(e))throw new Error("Value should not be negative, NaN or Infinity: ".concat(e));this._value=e;this._unitType=f.parse(t)}this.index=-1}static create(e,t){var r=new ItemSpec;r._value=e;r._unitType=t;return r}get actualLength(){return this._actualLength}static equals(e,t){return e.gridUnitType===t.gridUnitType&&e.value===t.value&&e.owner===t.owner&&e.index===t.index}get gridUnitType(){return this._unitType}get isAbsolute(){return this._unitType===f.PIXEL}get isAuto(){return this._unitType===f.AUTO}get isStar(){return this._unitType===f.STAR}get value(){return this._value}}var p=n=class GridLayoutBase extends i.a{constructor(){super(...arguments);this._rows=new Array;this._cols=new Array}static getColumn(e){return validateArgs(e).col}static setColumn(e,t){validateArgs(e).col=t}static getColumnSpan(e){return validateArgs(e).colSpan}static setColumnSpan(e,t){validateArgs(e).colSpan=t}static getRow(e){return validateArgs(e).row}static setRow(e,t){validateArgs(e).row=t}static getRowSpan(e){return validateArgs(e).rowSpan}static setRowSpan(e,t){validateArgs(e).rowSpan=t}addRow(e){validateItemSpec(e);e.owner=this;this._rows.push(e);this._onRowAdded(e);this.invalidate()}addColumn(e){validateItemSpec(e);e.owner=this;this._cols.push(e);this._onColumnAdded(e);this.invalidate()}addChildAtCell(e,t,r,i,a){this.addChild(e);n.setRow(e,t);n.setColumn(e,r);i&&n.setRowSpan(e,i);a&&n.setColumnSpan(e,a)}removeRow(e){if(!e)throw new Error("Value is null.");var t=this._rows.indexOf(e);if(e.owner!==this||t<0)throw new Error("Row is not child of this GridLayout");e.index=-1;this._rows.splice(t,1);this._onRowRemoved(e,t);this.invalidate()}removeColumn(e){if(!e)throw new Error("Value is null.");var t=this._cols.indexOf(e);if(e.owner!==this||t<0)throw new Error("Column is not child of this GridLayout");e.index=-1;this._cols.splice(t,1);this._onColumnRemoved(e,t);this.invalidate()}removeColumns(){for(var e=this._cols.length-1;e>=0;e--){var t=this._cols[e];this._onColumnRemoved(t,e);t.index=-1}this._cols.length=0;this.invalidate()}removeRows(){for(var e=this._rows.length-1;e>=0;e--){var t=this._rows[e];this._onRowRemoved(t,e);t.index=-1}this._rows.length=0;this.invalidate()}onRowChanged(e,t,r){this.invalidate()}onRowSpanChanged(e,t,r){this.invalidate()}onColumnChanged(e,t,r){this.invalidate()}onColumnSpanChanged(e,t,r){this.invalidate()}_onRowAdded(e){}_onColumnAdded(e){}_onRowRemoved(e,t){}_onColumnRemoved(e,t){}getColumns(){return this._cols.slice()}getRows(){return this._rows.slice()}get columnsInternal(){return this._cols}get rowsInternal(){return this._rows}invalidate(){}set rows(e){this.removeRows();parseAndAddItemSpecs(e,e=>this.addRow(e))}set columns(e){this.removeColumns();parseAndAddItemSpecs(e,e=>this.addColumn(e))}};p=n=__decorate([Object(o.a)("GridLayout")],p);p.prototype.recycleNativeView="auto";var h=new l.Property({name:"col",defaultValue:0,valueChanged:(e,t,r)=>{var n=e.parent;n instanceof p&&n.onColumnChanged(e,t,r)},valueConverter:e=>Math.max(0,parseInt(e))});h.register(a.c);var m=new l.Property({name:"colSpan",defaultValue:1,valueChanged:(e,t,r)=>{var n=e.parent;n instanceof p&&n.onColumnSpanChanged(e,t,r)},valueConverter:e=>Math.max(1,parseInt(e))});m.register(a.c);var g=new l.Property({name:"row",defaultValue:0,valueChanged:(e,t,r)=>{var n=e.parent;n instanceof p&&n.onRowChanged(e,t,r)},valueConverter:e=>Math.max(0,parseInt(e))});g.register(a.c);var f,v=new l.Property({name:"rowSpan",defaultValue:1,valueChanged:(e,t,r)=>{var n=e.parent;n instanceof p&&n.onRowSpanChanged(e,t,r)},valueConverter:e=>Math.max(1,parseInt(e))});v.register(a.c);!function(e){e.PIXEL="pixel";e.STAR="star";e.AUTO="auto";e.isValid=Object(l.makeValidator)(e.PIXEL,e.STAR,e.AUTO);e.parse=Object(l.makeParser)(e.isValid)}(f||(f={}))},function(e,t,r){"use strict";r.d(t,"b",(function(){return p}));r.d(t,"a",(function(){return h}));r.d(t,"e",(function(){return m}));r.d(t,"c",(function(){return g}));r.d(t,"d",(function(){return f}));var n=r(19),i=r(5),a=r(11),o=r(0),l=r(4),d=r(7),p=class SegmentedBarItemBase extends a.a{constructor(){super(...arguments);this._title=""}get title(){return this._title}set title(e){var t=null!=e?e.toString():"";if(this._title!==t){this._title=t;this._update()}}};p=__decorate([Object(n.a)("SegmentedBarItem")],p);var h=class SegmentedBarBase extends i.c{get selectedBackgroundColor(){return this.style.selectedBackgroundColor}set selectedBackgroundColor(e){this.style.selectedBackgroundColor=e}_addArrayFromBuilder(e,t){"items"===e&&(this.items=t)}_addChildFromBuilder(e,t){if("SegmentedBarItem"===e){var r=t,n=this.items;if(n){n.push(r);this._addView(r)}else{n=new Array;n.push(r);this.items=n}this.nativeViewProtected&&this[g.setNative](n)}}onItemsChanged(e,t){if(e)for(var r=0,n=e.length;r{e(t)})}};h.selectedIndexChangedEvent="selectedIndexChanged";h=__decorate([Object(n.a)("SegmentedBar")],h);h.prototype.recycleNativeView="auto";var m=new o.CoercibleProperty({name:"selectedIndex",defaultValue:-1,valueChanged:(e,t,r)=>{e.notify({eventName:h.selectedIndexChangedEvent,object:e,oldIndex:t,newIndex:r})},coerceValue:(e,t)=>{var r=e.items;if(r){var n=r.length-1;t<0&&(t=0);t>n&&(t=n)}else t=-1;return t},valueConverter:e=>parseInt(e)});m.register(h);var g=new o.Property({name:"items",valueChanged:(e,t,r)=>{e.onItemsChanged(t,r)}});g.register(h);var f=new o.InheritedCssProperty({name:"selectedBackgroundColor",cssName:"selected-background-color",equalityComparer:l.a.equals,valueConverter:e=>new l.a(e)});f.register(d.a)},function(e,t,r){"use strict";r.d(t,"b",(function(){return getValidTime}));r.d(t,"a",(function(){return o}));r.d(t,"d",(function(){return g}));r.d(t,"c",(function(){return f}));r.d(t,"e",(function(){return v}));var n=r(5),i=r(19),a=r(0);function getValidTime(e,t,r){if(e.minuteInterval>1){var n=r-r%e.minuteInterval;r=n+(r===n+1?e.minuteInterval:0);if(60===r){t++;r=0}}var i={hour:t,minute:r};isLessThanMaxTime(e,t,r)||(i={hour:e.maxHour,minute:e.maxMinute});isGreaterThanMinTime(e,t,r)||(i={hour:e.minHour,minute:e.minMinute});return i}function isValidTime(e){return isGreaterThanMinTime(e)&&isLessThanMaxTime(e)}function isHourValid(e){return"number"==typeof e&&e>=0&&e<=23}function isMinuteValid(e){return"number"==typeof e&&e>=0&&e<=59}function getMinutes(e){return 60*e}function isDefined(e){return void 0!==e}function isGreaterThanMinTime(e,t,r){return void 0===e.minHour||void 0===e.minMinute||getMinutes(void 0!==t?t:e.hour)+(void 0!==r?r:e.minute)>=getMinutes(e.minHour)+e.minMinute}function isLessThanMaxTime(e,t,r){return!isDefined(e.maxHour)||!isDefined(e.maxMinute)||getMinutes(isDefined(t)?t:e.hour)+(isDefined(r)?r:e.minute)<=getMinutes(e.maxHour)+e.maxMinute}function toString(e){return e instanceof Date?e+"":e<10?"0".concat(e):"".concat(e)}function getErrorMessage(e,t,r){return"".concat(t," property value (").concat(toString(r),":").concat(toString(e.minute),") is not valid. ").concat(function getMinMaxTimeErrorMessage(e){return"Min time: (".concat(toString(e.minHour),":").concat(toString(e.minMinute),"), max time: (").concat(toString(e.maxHour),":").concat(toString(e.maxMinute),")")}(e),".")}var o=class TimePickerBase extends n.c{};o=__decorate([Object(i.a)("TimePicker")],o);o.prototype.recycleNativeView="auto";var l=new a.Property({name:"minHour",defaultValue:0,valueChanged:(e,t,r)=>{if(!isHourValid(r)||!isValidTime(e))throw new Error(getErrorMessage(e,"minHour",r))},valueConverter:e=>parseInt(e)});l.register(o);var d=new a.Property({name:"maxHour",defaultValue:23,valueChanged:(e,t,r)=>{if(!isHourValid(r)||!isValidTime(e))throw new Error(getErrorMessage(e,"maxHour",r))},valueConverter:e=>parseInt(e)});d.register(o);var p=new a.Property({name:"minMinute",defaultValue:0,valueChanged:(e,t,r)=>{if(!isMinuteValid(r)||!isValidTime(e))throw new Error(getErrorMessage(e,"minMinute",r))},valueConverter:e=>parseInt(e)});p.register(o);var h=new a.Property({name:"maxMinute",defaultValue:59,valueChanged:(e,t,r)=>{if(!isMinuteValid(r)||!isValidTime(e))throw new Error(getErrorMessage(e,"maxMinute",r))},valueConverter:e=>parseInt(e)});h.register(o);var m=new a.Property({name:"minuteInterval",defaultValue:1,valueChanged:(e,t,r)=>{if(!function isMinuteIntervalValid(e){return"number"==typeof e&&e>=1&&e<=30&&60%e==0}(r))throw new Error(getErrorMessage(e,"minuteInterval",r))},valueConverter:e=>parseInt(e)});m.register(o);var g=new a.Property({name:"minute",defaultValue:0,valueChanged:(e,t,r)=>{if(!isMinuteValid(r)||!isValidTime(e))throw new Error(getErrorMessage(e,"minute",r));e.time=new Date(0,0,0,e.hour,e.minute)},valueConverter:e=>parseInt(e)});g.register(o);var f=new a.Property({name:"hour",defaultValue:0,valueChanged:(e,t,r)=>{if(!isHourValid(r)||!isValidTime(e))throw new Error(getErrorMessage(e,"Hour",r));e.time=new Date(0,0,0,e.hour,e.minute)},valueConverter:e=>parseInt(e)});f.register(o);var v=new a.Property({name:"time",defaultValue:new Date,equalityComparer:(e,t)=>e<=t&&e>=t,valueChanged:(e,t,r)=>{if(!isValidTime(e))throw new Error(getErrorMessage(e,"time",r));e.hour=r.getHours();e.minute=r.getMinutes()}});v.register(o);var y=new a.Property({name:"iosPreferredDatePickerStyle",defaultValue:0,valueConverter:e=>parseInt(e)});y.register(o)},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));r.d(t,"c",(function(){return l}));r.d(t,"b",(function(){return getBindingOptions}));var n,i=/[\+\-\*\/%\?:<>=!\|&\(\)^~]/;!function(e){e.sourceProperty="sourceProperty";e.targetProperty="targetProperty";e.expression="expression";e.twoWay="twoWay";e.source="source";e.bindingValueKey="$value";e.parentValueKey="$parent";e.parentsValueKey="$parents";e.newPropertyValueKey="$newPropertyValue"}(n||(n={}));var a=/=+/,o=/(==|===|>=|<=|!=|!==)/,l=/\$parents\s*\[\s*(['"]*)\w*\1\s*\]/g;function isNamedParam(e){var t=e.search(a);if(t>-1){var r=e.substr(t>0?t-1:0,3);if(-1===r.search(o))return!0}return!1}var d="propName",p="propValue";function getPropertyNameValuePair(e,t,r){var n={},i=e.substr(0,e.indexOf("=")).trim(),a=e.substr(e.indexOf("=")+1).trim();t&&(i=i?i in t?i:null:t.defaultProperty);if(i){if(r)n=r(i,a);else{n[d]=i;n[p]=a}return n}return null}function getBindingOptions(e,t){var r=[],a=function getParamsArray(e){for(var t=[],r=0,n=0,i=!1,a=!1,o=0;o-1){var t=e.match(l);if(t){var r=e.substr(e.indexOf(t[0])+t[0].length);if(!(r.search(i)>-1))return!1}return!0}return!1}(m)){o=n.bindingValueKey;r.push(n.expression+" = "+m)}else o=m;r.push(n.sourceProperty+" = "+o);r.push(n.twoWay+" = true")}else{r.push(n.sourceProperty+" = "+a[0].trim());r.push(n.expression+" = "+a[1].trim());var g=!a[2]||"true"===a[2].toLowerCase().trim();r.push(n.twoWay+" = "+g)}var f=function parseNamedProperties(e,t,r){for(var n,i={},a=0;at.id&&t.id===e)}static topmost(){return Object(p.e)()}static goBack(){var e=n.topmost();if(e&&e.canGoBack()){e.goBack();return!0}if(e){for(var t=!1,r=Object(h.d)(e,"Frame");r&&!t;)r&&r.canGoBack()?t=!0:r=Object(h.d)(r,"Frame");if(r&&t){r.goBack();return!0}}p.d.length>1&&e._popFromFrameStack();return!1}static reloadPage(){}static _stack(){return p.d}_addChildFromBuilder(e,t){throw new Error("Frame should not have a view. Use 'defaultPage' property instead.")}onLoaded(){super.onLoaded();this._processNextNavigationEntry()}canGoBack(){var e=this._backStack.length,t=!1;this._navigationQueue.forEach(r=>{var n=r.entry,a=r.navigationType===i.a.back;if(a){t=!1;if(n){var o=this._backStack.indexOf(n);-1!==o?e=o:e--}else e--}else if(n.entry.clearHistory){t=!1;e=0}else{e++;t&&e--;t=!1===n.entry.backstackVisible}});this._navigationQueue.length>0&&!this._currentEntry&&e--;return e>0}goBack(e){d.a.isEnabled()&&d.a.write("GO BACK",d.a.categories.Navigation);if(this.canGoBack()){if(e){var t=this._backStack.indexOf(e);if(t<0)return}var r={entry:e,isBackNavigation:!0,navigationType:i.a.back};this._navigationQueue.push(r);this._processNextNavigationEntry()}}_removeEntry(e){var t=e.resolvedPage,r=t.frame;t._frame=null;r?r._removeView(t):t._tearDownUI(!0);e.resolvedPage=null}navigate(e){d.a.isEnabled()&&d.a.write("NAVIGATE",d.a.categories.Navigation);this._pushInFrameStack();var t=function buildEntryFromArgs(e){var t;t="string"==typeof e?{moduleName:e}:"function"==typeof e?{create:e}:e;return t}(e),r=m.a.createViewFromEntry(t),n={entry:t,resolvedPage:r,navDepth:void 0,fragmentTag:void 0},a={entry:n,isBackNavigation:!1,navigationType:i.a.forward};this._navigationQueue.push(a);this._processNextNavigationEntry()}isCurrent(e){return this._currentEntry===e}setCurrent(e,t){var r=e.resolvedPage;if(!r.frame){this._addView(r);r._frame=this}this._currentEntry=e;var n=t===i.a.back;n&&this._pushInFrameStack();r.onNavigatedTo(n);this._executingContext=null}_updateBackstack(e,t){var r=t===i.a.back,a=t===i.a.replace;this.raiseCurrentPageNavigatedEvents(r);var o=this._currentEntry;if(r){var l=this._backStack.indexOf(e);this._backStack.splice(l+1).forEach(e=>this._removeEntry(e));this._backStack.pop()}else if(!a)if(e.entry.clearHistory){this._backStack.forEach(e=>this._removeEntry(e));this._backStack.length=0}else n._isEntryBackstackVisible(o)&&this._backStack.push(o);o&&this._backStack.indexOf(o)<0&&this._removeEntry(o)}isNestedWithin(e){for(var t=this;t;){t=Object(h.d)(t,n);if(t===e)return!0}return!1}raiseCurrentPageNavigatedEvents(e){var t=this.currentPage;if(t){t.isLoaded&&t.callUnloaded();t.onNavigatedFrom(e)}}_processNavigationQueue(e){if(0!==this._navigationQueue.length){var t=this._navigationQueue[0].entry,r=t.resolvedPage;if(e===r){this._navigationQueue.shift();this._processNextNavigationEntry();this._updateActionBar()}}}_findEntryForTag(e){var t;if(this._currentEntry&&this._currentEntry.fragmentTag===e)t=this._currentEntry;else{t=this._backStack.find(t=>t.fragmentTag===e);if(!t){var r=this._navigationQueue.find(t=>t.entry.fragmentTag===e);t=r?r.entry:void 0}}return t}navigationQueueIsEmpty(){return 0===this._navigationQueue.length}static _isEntryBackstackVisible(e){if(!e)return!1;var t=e.entry.backstackVisible,r=void 0!==t&&!t;return!r}_updateActionBar(e,t){}_processNextNavigationEntry(){if(this.isLoaded&&!this._executingContext&&this._navigationQueue.length>0){var e=this._navigationQueue[0],t=e.navigationType===i.a.back;t?this.performGoBack(e):this.performNavigation(e)}}performNavigation(e){this._executingContext=e;var t=e.entry,r=e.navigationType===i.a.back;this._onNavigatingTo(t,r);this._navigateCore(t)}performGoBack(e){var t=e.entry,r=this._backStack;if(!t){t=r[r.length-1];e.entry=t}this._executingContext=e;this._onNavigatingTo(t,!0);this._goBackCore(t)}_goBackCore(e){d.a.isEnabled()&&d.a.write("GO BACK CORE(".concat(this._backstackEntryTrace(e),"); currentPage: ").concat(this.currentPage),d.a.categories.Navigation)}_navigateCore(e){d.a.isEnabled()&&d.a.write("NAVIGATE CORE(".concat(this._backstackEntryTrace(e),"); currentPage: ").concat(this.currentPage),d.a.categories.Navigation)}_onNavigatingTo(e,t){this.currentPage&&this.currentPage.onNavigatingFrom(t);e.resolvedPage.onNavigatingTo(e.entry.context,t,e.entry.bindingContext)}get animated(){return this._animated}set animated(e){this._animated=e}get transition(){return this._transition}set transition(e){this._transition=e}get backStack(){return this._backStack.slice()}get currentPage(){return this._currentEntry?this._currentEntry.resolvedPage:null}get currentEntry(){return this._currentEntry?this._currentEntry.entry:null}_pushInFrameStackRecursive(){this._pushInFrameStack();var e=[];for(var t of p.d)t.isNestedWithin(this)&&e.push(t);for(var r of e)r._pushInFrameStack()}_pushInFrameStack(){Object(p.b)(this)}_popFromFrameStack(){Object(p.a)(this)}_removeFromFrameStack(){Object(p.c)(this)}_dialogClosed(){this._removeFromFrameStack()}_onRootViewReset(){super._onRootViewReset();this._removeFromFrameStack()}get _childrenCount(){return this.currentPage?1:0}eachChildView(e){var t=this.currentPage;t&&e(t)}_getIsAnimatedNavigation(e){return e&&void 0!==e.animated?e.animated:void 0!==this.animated?this.animated:n.defaultAnimatedNavigation}_getNavigationTransition(e){if(e){0;if(void 0!==e.transitionAndroid)return e.transitionAndroid;if(void 0!==e.transition)return e.transition}return void 0!==this.transition?this.transition:n.defaultTransition}get navigationBarHeight(){return 0}_getNavBarVisible(e){throw new Error}_addViewToNativeVisualTree(e){return!0}_removeViewFromNativeVisualTree(e){e._isAddedToNativeVisualTree=!1}_printFrameBackStack(){var e=this.backStack.length,t=e-1;console.log("Frame Back Stack: ");for(;t>=0;){var r=this.backStack[t--];console.log("\t".concat(r.resolvedPage))}}_backstackEntryTrace(e){var t="".concat(e.resolvedPage),r=n._isEntryBackstackVisible(e);r||(t+=" | INVISIBLE");e.entry.clearHistory&&(t+=" | CLEAR HISTORY");var i=this._getIsAnimatedNavigation(e.entry);i||(t+=" | NOT ANIMATED");var a=this._getNavigationTransition(e.entry);a&&(t+=" | Transition[".concat(JSON.stringify(a),"]"));return t}_onLivesync(e){return!!super._onLivesync(e)||!e&&this.legacyLivesync()}_handleLivesync(e){if(super._handleLivesync(e))return!0;if(this.currentPage&&Object(o.i)(this.currentPage,e,["markup","script"])){d.a.write("Change Handled: Replacing page ".concat(e.path),d.a.categories.Livesync);this.replacePage(e.path);return!0}return!1}legacyLivesync(){d.a.isEnabled()&&d.a.write("".concat(this,"._onLivesync()"),d.a.categories.Livesync);if(!this._currentEntry||!this._currentEntry.entry)return!1;var e=this._currentEntry.entry,t={animated:!1,clearHistory:!0,context:e.context,create:e.create,moduleName:e.moduleName,backstackVisible:e.backstackVisible};if(t.create){var r=t.create();if(r===this.currentPage)return!1}this.navigate(t);return!0}replacePage(e){var t=this._currentEntry,r=Object(g.a)(e),n=m.a.createViewFromEntry({moduleName:r}),a={entry:t.entry,resolvedPage:n,navDepth:t.navDepth,fragmentTag:t.fragmentTag,frameId:t.frameId},o={entry:a,isBackNavigation:!1,navigationType:i.a.replace};this._navigationQueue.push(o);this._processNextNavigationEntry()}};v.androidOptionSelectedEvent="optionSelected";v.defaultAnimatedNavigation=!0;__decorate([f.f,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],v.prototype,"onLoaded",null);__decorate([f.f,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],v.prototype,"performNavigation",null);__decorate([f.f,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],v.prototype,"performGoBack",null);v=n=__decorate([Object(o.a)("Frame")],v);function getFrameById(e){console.log("getFrameById() is deprecated. Use Frame.getFrameById() instead.");return v.getFrameById(e)}function topmost(){console.log("topmost() is deprecated. Use Frame.topmost() instead.");return v.topmost()}function goBack(){console.log("goBack() is deprecated. Use Frame.goBack() instead.");return v.goBack()}function _stack(){console.log("_stack() is deprecated. Use Frame._stack() instead.");return v._stack()}var y=new l.Property({name:"defaultPage",valueChanged:(e,t,r)=>{e.navigate({moduleName:r})}});y.register(v);var w=new l.Property({name:"actionBarVisibility",defaultValue:"auto",affectsLayout:!1});w.register(v)},function(e,t,r){"use strict";r.d(t,"b",(function(){return timeConverter}));r.d(t,"a",(function(){return animationTimingFunctionConverter}));var n=r(39),i=Object.freeze({ease:n.a.ease,linear:n.a.linear,"ease-in":n.a.easeIn,"ease-out":n.a.easeOut,"ease-in-out":n.a.easeInOut,spring:n.a.spring});function timeConverter(e){var t=parseFloat(e);-1===e.indexOf("ms")&&(t*=1e3);return Math.max(0,t)}function animationTimingFunctionConverter(e){return e?i[e]||function parseCubicBezierCurve(e){var t=/\((.*?)\)/.exec(e),r=t&&t[1].split(",").map(stringToBezieCoords);if(e.startsWith("cubic-bezier")&&t&&4===r.length){var[i,a,o,l]=[...r];return n.a.cubicBezier(i,a,o,l)}throw new Error("Invalid value for animation: ".concat(e))}(e):n.a.ease}function stringToBezieCoords(e){var t=parseFloat(e);return t<0?0:t>1?1:t}},function(e,t,r){"use strict";r.d(t,"a",(function(){return m}));r.d(t,"c",(function(){return ActionItems}));r.d(t,"b",(function(){return ActionItemBase}));r.d(t,"g",(function(){return isVisible}));r.d(t,"h",(function(){return traceMissingIcon}));r.d(t,"f",(function(){return C}));r.d(t,"d",(function(){return b}));r.d(t,"e",(function(){return x}));var n=r(6),i=r(5),a=r(19),o=r(11),l=r(1),d=r(0),p=r(2),h=r(7),m=class ActionBarBase extends i.c{constructor(){super();this._actionItems=new ActionItems(this)}get navigationButton(){return this._navigationButton}set navigationButton(e){if(this._navigationButton!==e){if(this._navigationButton){this._removeView(this._navigationButton);this._navigationButton.actionBar=void 0}this._navigationButton=e;if(this._navigationButton){this._navigationButton.actionBar=this;this._addView(this._navigationButton)}this.update()}}get actionItems(){return this._actionItems}set actionItems(e){throw new Error("actionItems property is read-only")}get titleView(){return this._titleView}set titleView(e){if(this._titleView!==e){if(this._titleView){this._removeView(this._titleView);this._titleView.style[p.horizontalAlignmentProperty.cssName]=d.unsetValue;this._titleView.style[p.verticalAlignmentProperty.cssName]=d.unsetValue}this._titleView=e;if(e){this._addView(e);var t=e.style;p.horizontalAlignmentProperty.isSet(t)||(t[p.horizontalAlignmentProperty.cssName]="center");p.verticalAlignmentProperty.isSet(t)||(t[p.verticalAlignmentProperty.cssName]="middle")}this.update()}}get androidContentInset(){return this.style.androidContentInset}set androidContentInset(e){this.style.androidContentInset=e}get androidContentInsetLeft(){return this.style.androidContentInsetLeft}set androidContentInsetLeft(e){this.style.androidContentInsetLeft=e}get androidContentInsetRight(){return this.style.androidContentInsetRight}set androidContentInsetRight(e){this.style.androidContentInsetRight=e}get ios(){}get android(){}get _childrenCount(){var e=0;this._actionItems.getItems().forEach(t=>{t.actionView&&e++});return e+(this.titleView?1:0)}update(){}_onTitlePropertyChanged(){}_addArrayFromBuilder(e,t){"actionItems"===e&&this.actionItems.setItems(t)}eachChildView(e){var t=this.titleView;t&&e(t)}eachChild(e){var t=this.titleView;t&&e(t);var r=this._navigationButton;r&&e(r);this.actionItems.getItems().forEach(t=>{e(t)})}_isEmpty(){return!(this.title||this.titleView||this.android&&this.android.icon||this.navigationButton||this.actionItems.getItems().length>0)}};m=__decorate([Object(a.a)("ActionBar"),__metadata("design:paramtypes",[])],m);class ActionItems{constructor(e){this._items=new Array;this._actionBar=e}addItem(e){if(!e)throw new Error("Cannot add empty item");this._items.push(e);e.actionBar=this._actionBar;this._actionBar._addView(e);this.invalidate()}removeItem(e){if(!e)throw new Error("Cannot remove empty item");var t=this._items.indexOf(e);if(t<0)throw new Error("Cannot find item to remove");this._items.splice(t,1);this._actionBar._removeView(e);e.actionBar=void 0;this.invalidate()}getItems(){return this._items.slice()}getVisibleItems(){var e=[];this._items.forEach(t=>{isVisible(t)&&e.push(t)});return e}getItemAt(e){if(!(e<0||e>=this._items.length))return this._items[e]}setItems(e){for(;this._items.length>0;)this.removeItem(this._items[this._items.length-1]);for(var t=0;t{var n=e.viewRef.get();n?n.effectiveContentInsetLeft=p.Length.toDevicePixels(r):l.a.write("".concat(r,' not set to view\'s property because ".viewRef" is cleared'),l.a.categories.Style,l.a.messageType.warn)},valueConverter:p.Length.parse});b.register(h.a);var x=new d.CssProperty({name:"androidContentInsetRight",cssName:"android-content-inset-right",defaultValue:"auto",equalityComparer:p.Length.equals,valueChanged:(e,t,r)=>{var n=e.viewRef.get();n?n.effectiveContentInsetRight=p.Length.toDevicePixels(r):l.a.write("".concat(r,' not set to view\'s property because ".viewRef" is cleared'),l.a.categories.Style,l.a.messageType.warn)},valueConverter:p.Length.parse});x.register(h.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return v}));r.d(t,"b",(function(){return C}));r.d(t,"c",(function(){return x}));var n=r(5),i=r(19),a=r(0),o=r(2),l=r(7),d=r(4),p=r(42),h=r(53),m=r(16),g=r(23),f=r(37),v=class ListViewBase extends n.a{constructor(){super(...arguments);this._itemIdGenerator=(e,t)=>t;this._itemTemplateSelectorBindable=new h.Label;this._defaultTemplate={key:"default",createView:()=>{if(this.itemTemplate)return p.a.parse(this.itemTemplate,this)}};this._itemTemplatesInternal=new Array(this._defaultTemplate);this._effectiveRowHeight=-1}get separatorColor(){return this.style.separatorColor}set separatorColor(e){this.style.separatorColor=e}get itemTemplateSelector(){return this._itemTemplateSelector}set itemTemplateSelector(e){if("string"==typeof e){this._itemTemplateSelectorBindable.bind({sourceProperty:null,targetProperty:"templateKey",expression:e});this._itemTemplateSelector=(e,t,r)=>{e.$index=t;this._itemTemplateSelectorBindable.bindingContext===e&&(this._itemTemplateSelectorBindable.bindingContext=null);this._itemTemplateSelectorBindable.bindingContext=e;return this._itemTemplateSelectorBindable.get("templateKey")}}else"function"==typeof e&&(this._itemTemplateSelector=e)}get itemIdGenerator(){return this._itemIdGenerator}set itemIdGenerator(e){this._itemIdGenerator=e}refresh(){}scrollToIndex(e){}scrollToIndexAnimated(e){}_getItemTemplate(e){var t="default";if(this.itemTemplateSelector){var r=this._getDataItem(e);t=this._itemTemplateSelector(r,e,this.items)}for(var n=0,i=this._itemTemplatesInternal.length;n{t instanceof m.a&&Object(f.b)(t,g.b.changeEvent,e._onItemsChanged,e);r instanceof m.a&&Object(f.a)(r,g.b.changeEvent,e._onItemsChanged,e);e.refresh()}});y.register(v);var w=new a.Property({name:"itemTemplate",valueChanged:e=>{e.refresh()}});w.register(v);var C=new a.Property({name:"itemTemplates",valueConverter:e=>"string"==typeof e?p.a.parseMultipleTemplates(e,null):e});C.register(v);var S=new a.CoercibleProperty({name:"rowHeight",defaultValue:"auto",equalityComparer:o.Length.equals,coerceValue:(e,t)=>e.nativeViewProtected?t:"auto",valueChanged:(e,t,r)=>{e._effectiveRowHeight=o.Length.toDevicePixels(r,-1);e._onRowHeightPropertyChanged(t,r)},valueConverter:o.Length.parse});S.register(v);var b=new a.Property({name:"iosEstimatedRowHeight",valueConverter:e=>o.Length.parse(e)});b.register(v);var x=new a.CssProperty({name:"separatorColor",cssName:"separator-color",equalityComparer:d.a.equals,valueConverter:e=>new d.a(e)});x.register(l.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return cssProperty}));r.d(t,"d",(function(){return o}));r.d(t,"c",(function(){return l}));r.d(t,"b",(function(){return d}));var n=r(0),i=r(4),a=r(7);function createGetter(e){return function(){return this.style[e]}}function createSetter(e){return function(t){this.style[e]=t}}var cssProperty=(e,t)=>{Object.defineProperty(e,t,{get:createGetter(t),set:createSetter(t),enumerable:!0,configurable:!0})},o=new n.CssProperty({name:"rippleColor",cssName:"ripple-color",equalityComparer:i.a.equals,valueConverter:e=>new i.a(e)});o.register(a.a);var l=new n.CssProperty({name:"elevation",cssName:"elevation",valueConverter:parseFloat});l.register(a.a);var d=new n.CssProperty({name:"dynamicElevationOffset",cssName:"dynamic-elevation-offset",valueConverter:parseFloat});d.register(a.a);var p=new n.CssProperty({name:"variant",cssName:"variant"});p.register(a.a)},function(e,t,r){"use strict";r.d(t,"d",(function(){return n}));r.d(t,"e",(function(){return topmost}));r.d(t,"b",(function(){return _pushInFrameStack}));r.d(t,"a",(function(){return _popFromFrameStack}));r.d(t,"c",(function(){return _removeFromFrameStack}));var n=[];function topmost(){if(n.length>0)return n[n.length-1]}function _pushInFrameStack(e){if(!e._isInFrameStack||n[n.length-1]!==e){if(e._isInFrameStack){var t=n.indexOf(e);n.splice(t,1)}n.push(e);e._isInFrameStack=!0}}function _popFromFrameStack(e){if(e._isInFrameStack){var t=topmost();if(t!==e)throw new Error("Cannot pop a Frame which is not at the top of the navigation stack.");n.pop();e._isInFrameStack=!1}}function _removeFromFrameStack(e){if(e._isInFrameStack){var t=n.indexOf(e);n.splice(t,1);e._isInFrameStack=!1}}},function(e,t,r){"use strict";(function(e){r.d(t,"e",(function(){return _setAndroidFragmentTransitions}));r.d(t,"c",(function(){return _getAnimatedEntries}));r.d(t,"f",(function(){return _updateTransitions}));r.d(t,"d",(function(){return _reverseTransitions}));r.d(t,"b",(function(){return _clearFragment}));r.d(t,"a",(function(){return _clearEntry}));r.d(t,"g",(function(){return addNativeTransitionListener}));var n,i,a=r(55),o=r(32),l=r(180),d=r(78),p=r(49),h=r(1),m=Object(p.a)(()=>new android.view.animation.AccelerateDecelerateInterpolator),g=new Map,f=new Map;function _setAndroidFragmentTransitions(e,t,r,n,i,a,d){var p=r?r.fragment:null,h=n.fragment,m=g.get(i);if(m&&m.size>0)throw new Error("Calling navigation before previous navigation finish.");allowTransitionOverlap(p);allowTransitionOverlap(h);var f,v="";if(t){f=t.instance;v=t.name?t.name.toLowerCase():""}e?f?v="custom":0!==v.indexOf("slide")&&"fade"!==v&&0!==v.indexOf("flip")&&0!==v.indexOf("explode")&&(v="default"):v="none";var y=!1;if(r){_updateTransitions(r);if(r.transitionName!==v||r.transition!==f||d){clearExitAndReenterTransitions(r,!0);y=!0}}if("none"===v){var w=new NoTransition(0,null);if(d){a.setCustomAnimations(17432576,17432577);!function setupAllAnimation(e,t){!function setupExitAndPopEnterAnimation(e,t){var r=getAnimationListener();clearAnimationListener(e.exitAnimator,r);clearAnimationListener(e.popEnterAnimator,r);var n=t.createAndroidAnimator(o.a.exit);n.transitionType=o.a.exit;n.entry=e;n.addListener(r);e.exitAnimator=n;var i=t.createAndroidAnimator(o.a.popEnter);i.transitionType=o.a.popEnter;i.entry=e;i.addListener(r);e.popEnterAnimator=i}(e,t);var r=getAnimationListener(),n=t.createAndroidAnimator(o.a.enter);n.transitionType=o.a.enter;n.entry=e;n.addListener(r);e.enterAnimator=n;var i=t.createAndroidAnimator(o.a.popExit);i.transitionType=o.a.popExit;i.entry=e;i.addListener(r);e.popExitAnimator=i}(n,w);setupNewFragmentCustomTransition({duration:0,curve:null},n,w)}else setupNewFragmentCustomTransition({duration:0,curve:null},n,w);n.isNestedDefaultTransition=d;y&&setupCurrentFragmentCustomTransition({duration:0,curve:null},r,w)}else if("custom"===v){setupNewFragmentCustomTransition({duration:f.getDuration(),curve:f.getCurve()},n,f);y&&setupCurrentFragmentCustomTransition({duration:f.getDuration(),curve:f.getCurve()},r,f)}else if("default"===v){setupNewFragmentFadeTransition({duration:150,curve:null},n);y&&setupCurrentFragmentFadeTransition({duration:150,curve:null},r)}else if(0===v.indexOf("slide")){!function setupNewFragmentSlideTransition(e,t,r){setupCurrentFragmentSlideTransition(e,t,r);var n=r.substr("slide".length)||"left";switch(n){case"left":setEnterTransition(e,t,new androidx.transition.Slide(android.view.Gravity.RIGHT));setReturnTransition(e,t,new androidx.transition.Slide(android.view.Gravity.RIGHT));break;case"right":setEnterTransition(e,t,new androidx.transition.Slide(android.view.Gravity.LEFT));setReturnTransition(e,t,new androidx.transition.Slide(android.view.Gravity.LEFT));break;case"top":setEnterTransition(e,t,new androidx.transition.Slide(android.view.Gravity.BOTTOM));setReturnTransition(e,t,new androidx.transition.Slide(android.view.Gravity.BOTTOM));break;case"bottom":setEnterTransition(e,t,new androidx.transition.Slide(android.view.Gravity.TOP));setReturnTransition(e,t,new androidx.transition.Slide(android.view.Gravity.TOP))}}(t,n,v);y&&setupCurrentFragmentSlideTransition(t,r,v)}else if("fade"===v){setupNewFragmentFadeTransition(t,n);y&&setupCurrentFragmentFadeTransition(t,r)}else if("explode"===v){!function setupNewFragmentExplodeTransition(e,t){setupCurrentFragmentExplodeTransition(e,t);setEnterTransition(e,t,new androidx.transition.Explode);setReturnTransition(e,t,new androidx.transition.Explode)}(t,n);y&&setupCurrentFragmentExplodeTransition(t,r)}else if(0===v.indexOf("flip")){var C=v.substr("flip".length)||"right",S=new l.a(C,t.duration,t.curve);setupNewFragmentCustomTransition(t,n,S);y&&setupCurrentFragmentCustomTransition(t,r,S)}n.transitionName=v;if(r){r.transitionName=v;"custom"===v&&(r.transition=f)}printTransitions(r);printTransitions(n)}function getAnimationListener(){if(!i){var t=function(t){__extends(AnimationListenerImpl,t);function AnimationListenerImpl(){var r=t.call(this)||this;return e.__native(r)}AnimationListenerImpl.prototype.onAnimationStart=function(e){var t=e.entry;addToWaitingQueue(t);h.a.isEnabled()&&h.a.write("START "+e.transitionType+" for "+t.fragmentTag,h.a.categories.Transition)};AnimationListenerImpl.prototype.onAnimationRepeat=function(e){h.a.isEnabled()&&h.a.write("REPEAT "+e.transitionType+" for "+e.entry.fragmentTag,h.a.categories.Transition)};AnimationListenerImpl.prototype.onAnimationEnd=function(e){h.a.isEnabled()&&h.a.write("END "+e.transitionType+" for "+e.entry.fragmentTag,h.a.categories.Transition);transitionOrAnimationCompleted(e.entry,e.backEntry)};AnimationListenerImpl.prototype.onAnimationCancel=function(e){h.a.isEnabled()&&h.a.write("CANCEL "+e.transitionType+" for "+e.entry.fragmentTag,h.a.categories.Transition)};AnimationListenerImpl=__decorate([Interfaces([android.animation.Animator.AnimatorListener])],AnimationListenerImpl);return AnimationListenerImpl}(java.lang.Object);i=new t}return i}function clearAnimationListener(e,t){if(e){e.removeListener(t);if(e.entry&&h.a.isEnabled()){var r=e.entry;h.a.write("Clear ".concat(e.transitionType," - ").concat(r.transition," for ").concat(r.fragmentTag),h.a.categories.Transition)}e.entry=null}}function _getAnimatedEntries(e){return g.get(e)}function _updateTransitions(e){var t=e.fragment,r=e.enterTransitionListener;r&&t&&t.setEnterTransition(r.transition);var n=e.exitTransitionListener;n&&t&&t.setExitTransition(n.transition);var i=e.reenterTransitionListener;i&&t&&t.setReenterTransition(i.transition);var a=e.returnTransitionListener;a&&t&&t.setReturnTransition(a.transition)}function _reverseTransitions(e,t){var r=e.fragment,n=t.fragment,i=!1,a=t.returnTransitionListener;if(a){i=!0;n.setExitTransition(a.transition)}else n.setExitTransition(null);var o=e.reenterTransitionListener;if(o){i=!0;r.setEnterTransition(o.transition)}else r.setEnterTransition(null);return i}function addToWaitingQueue(e){var t=e.frameId,r=g.get(t);if(!r){r=new Set;g.set(t,r)}r.add(e)}function clearExitAndReenterTransitions(e,t){var r=e.fragment,n=e.exitTransitionListener;if(n){var i=r.getExitTransition();if(i){t&&i.removeListener(n);r.setExitTransition(null);h.a.isEnabled()&&h.a.write("Cleared Exit ".concat(i.getClass().getSimpleName()," transition for ").concat(r),h.a.categories.Transition)}t&&(e.exitTransitionListener=null)}var a=e.reenterTransitionListener;if(a){var o=r.getReenterTransition();if(o){t&&o.removeListener(a);r.setReenterTransition(null);h.a.isEnabled()&&h.a.write("Cleared Reenter ".concat(o.getClass().getSimpleName()," transition for ").concat(r),h.a.categories.Transition)}t&&(e.reenterTransitionListener=null)}}function _clearFragment(e){clearEntry(e,!1)}function _clearEntry(e){clearEntry(e,!0)}function clearEntry(e,t){clearExitAndReenterTransitions(e,t);var r=e.fragment,n=e.enterTransitionListener;if(n){var i=r.getEnterTransition();if(i){t&&i.removeListener(n);r.setEnterTransition(null);h.a.isEnabled()&&h.a.write("Cleared Enter ".concat(i.getClass().getSimpleName()," transition for ").concat(r),h.a.categories.Transition)}t&&(e.enterTransitionListener=null)}var a=e.returnTransitionListener;if(a){var o=r.getReturnTransition();if(o){t&&o.removeListener(a);r.setReturnTransition(null);h.a.isEnabled()&&h.a.write("Cleared Return ".concat(o.getClass().getSimpleName()," transition for ").concat(r),h.a.categories.Transition)}t&&(e.returnTransitionListener=null)}}function allowTransitionOverlap(e){if(e){e.setAllowEnterTransitionOverlap(!0);e.setAllowReturnTransitionOverlap(!0)}}function setEnterTransition(e,t,r){setUpNativeTransition(e,r);var n=addNativeTransitionListener(t,r);t.enterTransitionListener=n;var i=t.fragment;i.setEnterTransition(r)}function setExitTransition(e,t,r){setUpNativeTransition(e,r);var n=addNativeTransitionListener(t,r);t.exitTransitionListener=n;var i=t.fragment;i.setExitTransition(r)}function setReenterTransition(e,t,r){setUpNativeTransition(e,r);var n=addNativeTransitionListener(t,r);t.reenterTransitionListener=n;var i=t.fragment;i.setReenterTransition(r)}function setReturnTransition(e,t,r){setUpNativeTransition(e,r);var n=addNativeTransitionListener(t,r);t.returnTransitionListener=n;var i=t.fragment;i.setReturnTransition(r)}function setupCurrentFragmentSlideTransition(e,t,r){var n=r.substr("slide".length)||"left";switch(n){case"left":setExitTransition(e,t,new androidx.transition.Slide(android.view.Gravity.LEFT));setReenterTransition(e,t,new androidx.transition.Slide(android.view.Gravity.LEFT));break;case"right":setExitTransition(e,t,new androidx.transition.Slide(android.view.Gravity.RIGHT));setReenterTransition(e,t,new androidx.transition.Slide(android.view.Gravity.RIGHT));break;case"top":setExitTransition(e,t,new androidx.transition.Slide(android.view.Gravity.TOP));setReenterTransition(e,t,new androidx.transition.Slide(android.view.Gravity.TOP));break;case"bottom":setExitTransition(e,t,new androidx.transition.Slide(android.view.Gravity.BOTTOM));setReenterTransition(e,t,new androidx.transition.Slide(android.view.Gravity.BOTTOM))}}function setupCurrentFragmentCustomTransition(e,t,r){var n=r.createAndroidAnimator(o.a.exit),i=new org.nativescript.widgets.CustomTransition(n,r.constructor.name+o.a.exit.toString());setExitTransition(e,t,i);var a=r.createAndroidAnimator(o.a.popEnter),l=new org.nativescript.widgets.CustomTransition(a,r.constructor.name+o.a.popEnter.toString());setReenterTransition(e,t,l)}function setupNewFragmentCustomTransition(e,t,r){setupCurrentFragmentCustomTransition(e,t,r);var n=r.createAndroidAnimator(o.a.enter),i=new org.nativescript.widgets.CustomTransition(n,r.constructor.name+o.a.enter.toString());setEnterTransition(e,t,i);var a=r.createAndroidAnimator(o.a.popExit),l=new org.nativescript.widgets.CustomTransition(a,r.constructor.name+o.a.popExit.toString());setReturnTransition(e,t,l)}function setupNewFragmentFadeTransition(e,t){setupCurrentFragmentFadeTransition(e,t);var r=new androidx.transition.Fade(androidx.transition.Fade.IN);setEnterTransition(e,t,r);var n=new androidx.transition.Fade(androidx.transition.Fade.OUT);setReturnTransition(e,t,n)}function setupCurrentFragmentFadeTransition(e,t){var r=new androidx.transition.Fade(androidx.transition.Fade.OUT);setExitTransition(e,t,r);var n=new androidx.transition.Fade(androidx.transition.Fade.IN);setReenterTransition(e,t,n)}function setupCurrentFragmentExplodeTransition(e,t){setExitTransition(e,t,new androidx.transition.Explode);setReenterTransition(e,t,new androidx.transition.Explode)}function setUpNativeTransition(e,t){e.duration&&t.setDuration(e.duration);var r=e.curve?Object(d._resolveAnimationCurve)(e.curve):m();t.setInterpolator(r)}function addNativeTransitionListener(t,r){var i=function getTransitionListener(t,r){if(!n){var i=function(t){__extends(TransitionListenerImpl,t);function TransitionListenerImpl(r,n){var i=t.call(this)||this;i.entry=r;i.transition=n;return e.__native(i)}TransitionListenerImpl.prototype.onTransitionStart=function(e){var t=this.entry;addToWaitingQueue(t);h.a.isEnabled()&&h.a.write("START "+toShortString(e)+" transition for "+t.fragmentTag,h.a.categories.Transition)};TransitionListenerImpl.prototype.onTransitionEnd=function(e){var t=this.entry;h.a.isEnabled()&&h.a.write("END "+toShortString(e)+" transition for "+t.fragmentTag,h.a.categories.Transition);transitionOrAnimationCompleted(t,this.backEntry)};TransitionListenerImpl.prototype.onTransitionResume=function(e){if(h.a.isEnabled()){var t=this.entry.fragmentTag;h.a.write("RESUME "+toShortString(e)+" transition for "+t,h.a.categories.Transition)}};TransitionListenerImpl.prototype.onTransitionPause=function(e){h.a.isEnabled()&&h.a.write("PAUSE "+toShortString(e)+" transition for "+this.entry.fragmentTag,h.a.categories.Transition)};TransitionListenerImpl.prototype.onTransitionCancel=function(e){h.a.isEnabled()&&h.a.write("CANCEL "+toShortString(e)+" transition for "+this.entry.fragmentTag,h.a.categories.Transition)};TransitionListenerImpl=__decorate([Interfaces([androidx.transition.Transition.TransitionListener])],TransitionListenerImpl);return TransitionListenerImpl}(java.lang.Object);n=i}return new n(t,r)}(t,r);r.addListener(i);return i}function transitionOrAnimationCompleted(e,t){var r=e.frameId,n=g.get(r);if(n){n.delete(e);if(0===n.size){var i=e.resolvedPage.frame,o=f.get(r);f.delete(r);g.delete(r);var l=i._executingContext||{navigationType:a.a.back},d=i.isCurrent(e)?o:e;d=d||e;d&&setTimeout(()=>i.setCurrent(t||d,l.navigationType))}else f.set(r,e)}}function toShortString(e){return"".concat(e.getClass().getSimpleName(),"@").concat(e.hashCode().toString(16))}function printTransitions(e){if(e&&h.a.isEnabled()){var t="".concat(e.fragmentTag," Transitions:");e.transitionName&&(t+="transitionName=".concat(e.transitionName,", "));var r=e.fragment;t+="".concat(r.getEnterTransition()?" enter="+toShortString(r.getEnterTransition()):"");t+="".concat(r.getExitTransition()?" exit="+toShortString(r.getExitTransition()):"");t+="".concat(r.getReenterTransition()?" popEnter="+toShortString(r.getReenterTransition()):"");t+="".concat(r.getReturnTransition()?" popExit="+toShortString(r.getReturnTransition()):"");h.a.write(t,h.a.categories.Transition)}}class NoTransition extends o.b{createAndroidAnimator(e){return function createDummyZeroDurationAnimator(e){var t=new android.animation.AnimatorSet,r=Array.create(android.animation.Animator,1),n=Array.create("float",2);n[0]=0;n[1]=1;var i=android.animation.ObjectAnimator.ofFloat(null,"alpha",n);i.setDuration(e);r[0]=i;t.playTogether(r);return t}(this.getDuration())}}}).call(this,r(20))},function(e,t,r){"use strict";r.r(t);(function(e){r.d(t,"mergeCssSelectors",(function(){return mergeCssSelectors}));r.d(t,"removeTaggedAdditionalCSS",(function(){return removeTaggedAdditionalCSS}));r.d(t,"addTaggedAdditionalCSS",(function(){return addTaggedAdditionalCSS}));r.d(t,"loadAppCSS",(function(){return L}));r.d(t,"CssState",(function(){return CssState}));r.d(t,"StyleScope",(function(){return StyleScope}));r.d(t,"resolveFileNameFromUrl",(function(){return resolveFileNameFromUrl}));r.d(t,"applyInlineStyle",(function(){return N}));var n,i,a=r(0),o=r(177),l=r(80),d=r(178),p=r(101),h=r(1),m=r(17),g=r(43),f=r(8),v=r(6),y=r(48),w=r(44);function ensureKeyframeAnimationModule(){n||(n=r(84))}function ensureCssAnimationParserModule(){i||(i=r(116))}var C="css-tree";try{var S=r(147);S&&("rework"===S.cssParser?C="rework":"nativescript"===S.cssParser&&(C="nativescript"))}catch(e){}function evaluateCssExpressions(e,t,r){var n=Object(a._evaluateCssVariableExpression)(e,t,r);if("unset"===n)return a.unsetValue;r=n;try{r=Object(a._evaluateCssCalcExpression)(r)}catch(n){h.a.write("Failed to evaluate css-calc for property [".concat(t,"] for expression [").concat(r,"] to ").concat(e,". ").concat(n.stack),h.a.categories.Error,h.a.messageType.error);return a.unsetValue}return r}function mergeCssSelectors(){b=T.slice();b.push.apply(b,P);x++}var b=[],x=0,T=[],P=[],k={},A=Symbol("animations"),E=/('|")(.*?)\1/;class CSSSource{constructor(e,t,r,n,i){this._ast=e;this._url=t;this._file=r;this._keyframes=n;this._source=i;this._selectors=[];this.parse()}static fromDetect(e,t,r){return"string"==typeof e?CSSSource.fromSource(e,t,r):"object"==typeof e&&"stylesheet"===e.type&&e.stylesheet&&e.stylesheet.rules?CSSSource.fromAST(e,t,r):CSSSource.fromSource(e.toString(),t,r)}static fromURI(t,r){var n=CSSSource.pathRelativeToApp(t),i=Object(y.a)(n),a=Object(w.c)(i,"css");try{var o=e.loadModule(a,!0);if(o)return CSSSource.fromDetect(o,r,a)}catch(e){h.a.write("Could not load CSS from ".concat(t,": ").concat(e),h.a.categories.Error,h.a.messageType.error)}return CSSSource.fromFile(n,r)}static pathRelativeToApp(e){if(!e.startsWith("/"))return e;var t=m.knownFolders.currentApp().path;if(!e.startsWith(t)){h.a.write("".concat(e," does not start with ").concat(t),h.a.categories.Error,h.a.messageType.error);return e}var r=".".concat(e.substr(t.length));return r}static fromFile(e,t){var r=e.replace(/\..\w+$/,".css");if(r!==e){var n=CSSSource.resolveCSSPathFromURL(r);if(n)return new CSSSource(void 0,e,n,t,void 0)}var i=CSSSource.resolveCSSPathFromURL(e);return new CSSSource(void 0,e,i,t,void 0)}static fromFileImport(e,t,r){var n=CSSSource.resolveCSSPathFromURL(e,r);return new CSSSource(void 0,e,n,t,void 0)}static resolveCSSPathFromURL(e,t){var r=m.knownFolders.currentApp().path,n=resolveFileNameFromUrl(e,r,m.File.exists,t);return n}static fromSource(e,t,r){return new CSSSource(void 0,r,void 0,t,e)}static fromAST(e,t,r){return new CSSSource(e,r,void 0,t,void 0)}get selectors(){return this._selectors}get source(){return this._source}load(){var e=m.File.fromPath(this._file);this._source=e.readTextSync()}parse(){try{if(!this._ast){!this._source&&this._file&&this.load();this._source&&"[object Object]"!==this.source&&this.parseCSSAst()}this._ast?this.createSelectors():this._selectors=[]}catch(e){h.a.write("Css styling failed: "+e,h.a.categories.Error,h.a.messageType.error);this._selectors=[]}}parseCSSAst(){if(this._source)switch(C){case"css-tree":this._ast=Object(d.cssTreeParse)(this._source,this._file);return;case"nativescript":var e=new l.CSS3Parser(this._source),t=e.parseAStylesheet(),r=new l.CSSNativeScript;this._ast=r.parseStylesheet(t);return;case"rework":this._ast=Object(o.parse)(this._source,{source:this._file});return}}createSelectors(){this._ast&&(this._selectors=[...this.createSelectorsFromImports(),...this.createSelectorsFromSyntaxTree()])}createSelectorsFromImports(){var e=this._ast.stylesheet.rules.filter(e=>"import"===e.type),urlFromImportObject=e=>{var t=e.import,r=t&&t.match(E);return r&&r[2]},sourceFromImportObject=e=>e.position&&e.position.source,t=e.map(e=>({url:urlFromImportObject(e),source:sourceFromImportObject(e)})).filter(e=>{var{url:t}=e;return!!t}).map(e=>{var{url:t,source:r}=e;return r?CSSSource.fromFileImport(t,this._keyframes,r):CSSSource.fromURI(t,this._keyframes)}),r=t.map(e=>e&&e.selectors||[]);return r.reduce((e,t)=>e.concat(t),[])}createSelectorsFromSyntaxTree(){var e=this._ast.stylesheet.rules;e.filter(isKeyframe).forEach(e=>this._keyframes[e.name]=e);var t=Object(p.d)(e);if(t&&t.length){ensureCssAnimationParserModule();t.forEach(e=>{e[A]=i.CssAnimationParser.keyframeAnimationsFromCSSDeclarations(e.declarations)})}return t}toString(){return this._file||this._url||"(in-memory)"}}__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],CSSSource.prototype,"load",null);__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],CSSSource.prototype,"parse",null);__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],CSSSource.prototype,"parseCSSAst",null);__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],CSSSource.prototype,"createSelectors",null);__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[String,String]),__metadata("design:returntype",String)],CSSSource,"resolveCSSPathFromURL",null);function removeTaggedAdditionalCSS(e){for(var t=!1,r=0;r{if(e.cssText){var t=CSSSource.fromSource(e.cssText,k,e.cssFile).selectors;if(t){P.push.apply(P,t);mergeCssSelectors()}}else e.cssFile&&V(e.cssFile,null,null)});var V=Object(v.f)('"style-scope".loadCss',e=>{if(e){e.startsWith("./")&&(e=e.substr(2));var t=CSSSource.fromURI(e,k).selectors;if(t.length>0){T=t;mergeCssSelectors()}}});e.NativeScriptGlobals.events.on("cssChanged",I);e.NativeScriptGlobals.events.on("livesync",(function onLiveSync(e){V(g.getCssFileName(),null,null)}));var L=Object(v.f)('"style-scope".loadAppCSS',t=>{V(t.cssFile,null,null);e.NativeScriptGlobals.events.off("loadAppCss",L)});g.hasLaunched()?L({eventName:"loadAppCss",object:f,cssFile:g.getCssFileName()},null,null):e.NativeScriptGlobals.events.on("loadAppCss",L);class CssState{constructor(e){this.viewRef=e;this._onDynamicStateChangeHandler=()=>this.updateDynamicState()}onChange(){var e=this.viewRef.get();if(e&&e.isLoaded){this.unsubscribeFromDynamicUpdates();this.updateMatch();this.subscribeForDynamicUpdates();this.updateDynamicState()}else this._matchInvalid=!0}isSelectorsLatestVersionApplied(){var e=this.viewRef.get();if(!e){h.a.write('isSelectorsLatestVersionApplied returns default value "false" because "this.viewRef" cleared.',h.a.categories.Style,h.a.messageType.warn);return!1}return this.viewRef.get()._styleScope.getSelectorsVersion()===this._appliedSelectorsVersion}onLoaded(){this._matchInvalid&&this.updateMatch();this.subscribeForDynamicUpdates();this.updateDynamicState()}onUnloaded(){this.unsubscribeFromDynamicUpdates()}updateMatch(){var e=this.viewRef.get();if(e&&e._styleScope){this._match=e._styleScope.matchSelectors(e);this._appliedSelectorsVersion=e._styleScope.getSelectorsVersion()}else this._match=CssState.emptyMatch;this._matchInvalid=!1}updateDynamicState(){var e=this.viewRef.get();if(e){var t=this._match.selectors.filter(t=>!t.dynamic||t.match(e));e._batchUpdate(()=>{this.stopKeyframeAnimations();this.setPropertyValues(t);this.playKeyframeAnimations(t)})}else h.a.write('updateDynamicState not executed to view because ".viewRef" is cleared',h.a.categories.Style,h.a.messageType.warn)}playKeyframeAnimations(e){var t=[];e.forEach(e=>{var r=e.ruleset[A];if(r){ensureKeyframeAnimationModule();for(var i of r){var a=n.KeyframeAnimation.keyframeAnimationFromInfo(i);a&&t.push(a)}}});if(this._playsKeyframeAnimations=t.length>0){var r=this.viewRef.get();if(!r){h.a.write('KeyframeAnimations cannot play because ".viewRef" is cleared',h.a.categories.Animation,h.a.messageType.warn);return}t.map(e=>e.play(r));Object.freeze(t);this._appliedAnimations=t}}stopKeyframeAnimations(){if(this._playsKeyframeAnimations){this._appliedAnimations.filter(e=>e.isPlaying).forEach(e=>e.cancel());this._appliedAnimations=CssState.emptyAnimationArray;var e=this.viewRef.get();if(e){e.style["keyframe:rotate"]=a.unsetValue;e.style["keyframe:rotateX"]=a.unsetValue;e.style["keyframe:rotateY"]=a.unsetValue;e.style["keyframe:scaleX"]=a.unsetValue;e.style["keyframe:scaleY"]=a.unsetValue;e.style["keyframe:translateX"]=a.unsetValue;e.style["keyframe:translateY"]=a.unsetValue;e.style["keyframe:backgroundColor"]=a.unsetValue;e.style["keyframe:opacity"]=a.unsetValue}else h.a.write('KeyframeAnimations cannot be stopped because ".viewRef" is cleared',h.a.categories.Animation,h.a.messageType.warn);this._playsKeyframeAnimations=!1}}setPropertyValues(e){var t=this.viewRef.get();if(t){var r=new t.style.PropertyBag;e.forEach(e=>e.ruleset.declarations.forEach(e=>r[e.property]=e.value));var n=this._appliedPropertyValues,i=!1;t.style.resetScopedCssVariables();for(var o in r){var l=r[o];if(Object(a.isCssVariable)(o)){t.style.setScopedCssVariable(o,l);delete r[o]}else i=i||Object(a.isCssVariableExpression)(l)||Object(a.isCssCalcExpression)(l)}if(i)for(var d in r){var p=evaluateCssExpressions(t,d,r[d]);p!==a.unsetValue?r[d]=p:delete r[d]}Object.freeze(r);for(var m in n)m in r||m in t.style&&(t.style["css:".concat(m)]=a.unsetValue);for(var g in r)if(!n||!(g in n)||n[g]!==r[g]){var f=r[g];try{if(g in t.style)t.style["css:".concat(g)]=f;else{var v=g.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}));t[v]=f}}catch(e){h.a.write("Failed to apply property [".concat(g,"] with value [").concat(f,"] to ").concat(t,". ").concat(e.stack),h.a.categories.Error,h.a.messageType.error)}}this._appliedPropertyValues=r}else h.a.write("".concat(e,' not set to view\'s property because ".viewRef" is cleared'),h.a.categories.Style,h.a.messageType.warn)}subscribeForDynamicUpdates(){var e=this._match.changeMap;e.forEach((e,t)=>{e.attributes&&e.attributes.forEach(e=>{t.addEventListener(e+"Change",this._onDynamicStateChangeHandler)});e.pseudoClasses&&e.pseudoClasses.forEach(e=>{var r=":"+e;t.addEventListener(":"+e,this._onDynamicStateChangeHandler);t[r]&&t[r](1)})});this._appliedChangeMap=e}unsubscribeFromDynamicUpdates(){this._appliedChangeMap.forEach((e,t)=>{e.attributes&&e.attributes.forEach(e=>{t.removeEventListener(e+"Change",this._onDynamicStateChangeHandler)});e.pseudoClasses&&e.pseudoClasses.forEach(e=>{var r=":"+e;t.removeEventListener(r,this._onDynamicStateChangeHandler);t[r]&&t[r](-1)})});this._appliedChangeMap=CssState.emptyChangeMap}toString(){var e=this.viewRef.get();if(!e){h.a.write('toString() of CssState cannot execute correctly because ".viewRef" is cleared',h.a.categories.Animation,h.a.messageType.warn);return""}return"".concat(e,"._cssState")}}CssState.emptyChangeMap=Object.freeze(new Map);CssState.emptyPropertyBag=Object.freeze({});CssState.emptyAnimationArray=Object.freeze([]);CssState.emptyMatch={selectors:[],changeMap:new Map,addAttribute:()=>{},addPseudoClass:()=>{},properties:null};__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],CssState.prototype,"updateMatch",null);__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],CssState.prototype,"updateDynamicState",null);CssState.prototype._appliedChangeMap=CssState.emptyChangeMap;CssState.prototype._appliedPropertyValues=CssState.emptyPropertyBag;CssState.prototype._appliedAnimations=CssState.emptyAnimationArray;CssState.prototype._matchInvalid=!0;class StyleScope{constructor(){this._css="";this._localCssSelectors=[];this._localCssSelectorVersion=0;this._localCssSelectorsAppliedVersion=0;this._applicationCssSelectorsAppliedVersion=0;this._keyframes=new Map}get css(){return this._css}set css(e){this.setCss(e)}addCss(e,t){this.appendCss(e,t)}addCssFile(e){this.appendCss(null,e)}changeCssFile(e){if(e){var t=CSSSource.fromURI(e,this._keyframes);this._css=t.source;this._localCssSelectors=t.selectors;this._localCssSelectorVersion++;this.ensureSelectors()}}setCss(e,t){this._css=e;var r=CSSSource.fromSource(e,this._keyframes,t);this._localCssSelectors=r.selectors;this._localCssSelectorVersion++;this.ensureSelectors()}appendCss(e,t){if(e||t){var r=e?CSSSource.fromSource(e,this._keyframes,t):CSSSource.fromURI(t,this._keyframes);this._css=this._css+r.source;this._localCssSelectors.push.apply(this._localCssSelectors,r.selectors);this._localCssSelectorVersion++;this.ensureSelectors()}}getKeyframeAnimationWithName(e){var t=this._keyframes[e];if(t){ensureKeyframeAnimationModule();var r=new n.KeyframeAnimationInfo;ensureCssAnimationParserModule();r.keyframes=i.CssAnimationParser.keyframesArrayFromCSS(t.keyframes);return r}}ensureSelectors(){this.isApplicationCssSelectorsLatestVersionApplied()&&this.isLocalCssSelectorsLatestVersionApplied()&&this._mergedCssSelectors||this._createSelectors();return this.getSelectorsVersion()}_increaseApplicationCssSelectorVersion(){x++}isApplicationCssSelectorsLatestVersionApplied(){return this._applicationCssSelectorsAppliedVersion===x}isLocalCssSelectorsLatestVersionApplied(){return this._localCssSelectorsAppliedVersion===this._localCssSelectorVersion}_createSelectors(){var e=[];e.push(b);this._applicationCssSelectorsAppliedVersion=x;e.push(this._localCssSelectors);this._localCssSelectorsAppliedVersion=this._localCssSelectorVersion;for(var t in k)this._keyframes[t]=k[t];if(e.length>0){this._mergedCssSelectors=e.reduce((e,t)=>e.concat(t||[]),[]);this._applyKeyframesOnSelectors();this._selectors=new p.b(this._mergedCssSelectors)}}matchSelectors(e){this.ensureSelectors();return this._selectors.query(e)}query(e){this.ensureSelectors();return this._selectors.query(e).selectors}getSelectorsVersion(){return 1e5*this._applicationCssSelectorsAppliedVersion+this._localCssSelectorsAppliedVersion}_applyKeyframesOnSelectors(){for(var e=this._mergedCssSelectors.length-1;e>=0;e--){var t=this._mergedCssSelectors[e],r=t[A];if(void 0!==r&&r.length){ensureCssAnimationParserModule();for(var n of r){var a=this._keyframes[n.name];void 0!==a&&(n.keyframes=i.CssAnimationParser.keyframesArrayFromCSS(a.keyframes))}}}}getAnimations(e){return e[A]}}__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[String,Object]),__metadata("design:returntype",void 0)],StyleScope.prototype,"setCss",null);__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[String,Object]),__metadata("design:returntype",void 0)],StyleScope.prototype,"appendCss",null);__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],StyleScope.prototype,"_createSelectors",null);__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",p.c)],StyleScope.prototype,"matchSelectors",null);function resolveFileNameFromUrl(e,t,r,n){var i="string"==typeof e?e.trim():"";0===i.indexOf("~/")&&(i=i.replace("~/",""));var a=0===i.indexOf("/"),o=a?i:m.path.join(t,i);if(r(o))return o;if(!a){"~"===i[0]&&"/"!==i[1]&&'"'!==i[1]&&(i=i.substr(1));if(n){var l=function resolveFilePathFromImport(e,t){var r=e.split(m.path.separator),n=t.split(m.path.separator).filter(e=>!function isCurrentDirectory(e){return"."===e}(e));r.pop();n.forEach(e=>function isParentDirectory(e){return".."===e}(e)?r.pop():r.push(e));return r.join(m.path.separator)}(n,i);if(r(l))return l}var d=m.path.join(t,"tns_modules",i);if(r(d))return d}return null}var N=Object(v.f)((function applyInlineStyle(e,t){var r="local { ".concat(t," }"),n=CSSSource.fromSource(r,new Map).selectors;e.style.resetUnscopedCssVariables();n[0].declarations.forEach(t=>{var r=t.property;Object(a.isCssVariable)(r)&&e.style.setUnscopedCssVariable(r,t.value)});n[0].declarations.forEach(t=>{var r=t.property;try{if(Object(a.isCssVariable)(r))return;var n=evaluateCssExpressions(e,r,t.value);r in e.style?e.style[r]=n:e[r]=n}catch(r){h.a.write("Failed to apply property [".concat(t.property,"] with value [").concat(t.value,"] to ").concat(e,". ").concat(r),h.a.categories.Error,h.a.messageType.error)}});e._onCssStateChange()}));function isKeyframe(e){return"keyframes"===e.type}}).call(this,r(20))},function(e,t,r){"use strict";r.d(t,"a",(function(){return v}));var n=r(4),i=r(5),a=r(19),o=r(11),l=r(0),d=r(2),p=r(57),h=r(21),m=new l.Property({name:"highlightColor",equalityComparer:n.a.equals,valueConverter:e=>new n.a(e)}),g=new l.Property({name:"selectedItemColor",equalityComparer:n.a.equals,valueConverter:e=>new n.a(e)}),f=new l.Property({name:"unSelectedItemColor",equalityComparer:n.a.equals,valueConverter:e=>new n.a(e)}),v=class TabStrip extends i.c{eachChild(e){var t=this.items;t&&t.forEach((t,r)=>{e(t)})}_addArrayFromBuilder(e,t){"items"===e&&(this.items=t)}_addChildFromBuilder(e,t){if(t instanceof p.a){this.items||(this.items=new Array);this.items.push(t);this._addView(t)}}onItemsChanged(e,t){e&&e.forEach(e=>this._removeView(e));t&&t.forEach(e=>{this._addView(e)})}[d.backgroundColorProperty.getDefault](){var e=this.parent;return e&&e.getTabBarBackgroundColor()}[d.backgroundColorProperty.setNative](e){var t=this.parent;return t&&t.setTabBarBackgroundColor(e)}[d.backgroundInternalProperty.getDefault](){return null}[d.backgroundInternalProperty.setNative](e){}[d.colorProperty.getDefault](){var e=this.parent;return e&&e.getTabBarColor()}[d.colorProperty.setNative](e){var t=this.parent;return t&&t.setTabBarColor(e)}[d.fontInternalProperty.getDefault](){var e=this.parent;return e&&e.getTabBarFontInternal()}[d.fontInternalProperty.setNative](e){var t=this.parent;return t&&t.setTabBarFontInternal(e)}[h.k.getDefault](){var e=this.parent;return e&&e.getTabBarTextTransform()}[h.k.setNative](e){var t=this.parent;return t&&t.setTabBarTextTransform(e)}[m.getDefault](){var e=this.parent;return e&&e.getTabBarHighlightColor()}[m.setNative](e){var t=this.parent;return t&&t.setTabBarHighlightColor(e)}[g.getDefault](){var e=this.parent;return e&&e.getTabBarSelectedItemColor()}[g.setNative](e){var t=this.parent;return t&&t.setTabBarSelectedItemColor(e)}[f.getDefault](){var e=this.parent;return e&&e.getTabBarUnSelectedItemColor()}[f.setNative](e){var t=this.parent;return t&&t.setTabBarUnSelectedItemColor(e)}};v.itemTapEvent="itemTap";v=__decorate([Object(a.a)("TabStrip")],v);var y=new l.Property({name:"items",valueChanged:(e,t,r)=>{e.onItemsChanged(t,r)}});y.register(v);var w=new l.Property({name:"iosIconRenderingMode",defaultValue:"automatic"});w.register(v);var C=new l.Property({name:"isIconSizeFixed",defaultValue:!0,valueConverter:o.b});C.register(v);m.register(v);g.register(v);f.register(v)},function(e,t,r){"use strict";r.r(t);r.d(t,"Properties",(function(){return n}));r.d(t,"CubicBezierAnimationCurve",(function(){return CubicBezierAnimationCurve}));r.d(t,"AnimationBase",(function(){return animation_common_AnimationBase}));r.d(t,"KeyframeAnimation",(function(){return m.KeyframeAnimation}));r.d(t,"KeyframeAnimationInfo",(function(){return m.KeyframeAnimationInfo}));r.d(t,"KeyframeDeclaration",(function(){return m.KeyframeDeclaration}));r.d(t,"KeyframeInfo",(function(){return m.KeyframeInfo}));r.d(t,"_resolveAnimationCurve",(function(){return _resolveAnimationCurve}));r.d(t,"Animation",(function(){return animation_Animation}));var n,i=r(4),a=r(1),o=r(2);!function(e){e.opacity="opacity";e.backgroundColor="backgroundColor";e.translate="translate";e.rotate="rotate";e.scale="scale";e.height="height";e.width="width"}(n||(n={}));class CubicBezierAnimationCurve{constructor(e,t,r,n){this.x1=e;this.y1=t;this.x2=r;this.y2=n}}class animation_common_AnimationBase{constructor(e,t){if(!e||0===e.length)throw new Error("No animation definitions specified");a.a.isEnabled()&&a.a.write("Analyzing "+e.length+" animation definitions...",a.a.categories.Animation);this._propertyAnimations=new Array;for(var r=0,n=e.length;r{r(e)})}play(){var e=new Promise((e,t)=>{this._resolve=e;this._reject=t});this.fixupAnimationPromise(e);this._isPlaying=!0;return e}fixupAnimationPromise(e){var t=this;e.cancel=()=>{t.cancel()};var r=e.then;e.then=function(){var n=r.apply(e,arguments);t.fixupAnimationPromise(n);return n};var n=e.catch;e.catch=function(){var r=n.apply(e,arguments);t.fixupAnimationPromise(r);return r}}cancel(){}get isPlaying(){return this._isPlaying}_resolveAnimationFinishedPromise(){this._isPlaying=!1;this._resolve()}_rejectAnimationFinishedPromise(){this._isPlaying=!1;this._reject(new Error("Animation cancelled."))}static _createPropertyAnimations(e){if(!e.target)throw new Error("No animation target specified.");for(var t in e){var r=e[t];if(void 0!==r){if((t===n.opacity||"duration"===t||"delay"===t||"iterations"===t)&&"number"!=typeof r)throw new Error("Property ".concat(t," must be valid number. Value: ").concat(r));if(!(t!==n.scale&&t!==n.translate||"number"==typeof r.x&&"number"==typeof r.y))throw new Error("Property ".concat(t," must be valid Pair. Value: ").concat(r));if(t===n.backgroundColor&&!i.a.isValid(e.backgroundColor))throw new Error("Property ".concat(t," must be valid color. Value: ").concat(r));if(t===n.width||t===n.height)e[t]=o.PercentLength.parse(r);else if(t===n.rotate){var a=r;if("number"!=typeof a&&("number"!=typeof a.x||"number"!=typeof a.y||"number"!=typeof a.z))throw new Error("Property ".concat(a," must be valid number or Point3D. Value: ").concat(r))}}}var l=new Array;void 0!==e.opacity&&l.push({target:e.target,property:n.opacity,value:e.opacity,duration:e.duration,delay:e.delay,iterations:e.iterations,curve:e.curve});void 0!==e.backgroundColor&&l.push({target:e.target,property:n.backgroundColor,value:"string"==typeof e.backgroundColor?new i.a(e.backgroundColor):e.backgroundColor,duration:e.duration,delay:e.delay,iterations:e.iterations,curve:e.curve});void 0!==e.translate&&l.push({target:e.target,property:n.translate,value:e.translate,duration:e.duration,delay:e.delay,iterations:e.iterations,curve:e.curve});void 0!==e.scale&&l.push({target:e.target,property:n.scale,value:e.scale,duration:e.duration,delay:e.delay,iterations:e.iterations,curve:e.curve});if(void 0!==e.rotate){var d;d="number"==typeof e.rotate?{x:0,y:0,z:e.rotate}:e.rotate;l.push({target:e.target,property:n.rotate,value:d,duration:e.duration,delay:e.delay,iterations:e.iterations,curve:e.curve})}void 0!==e.height&&l.push({target:e.target,property:n.height,value:e.height,duration:e.duration,delay:e.delay,iterations:e.iterations,curve:e.curve});void 0!==e.width&&l.push({target:e.target,property:n.width,value:e.width,duration:e.duration,delay:e.delay,iterations:e.iterations,curve:e.curve});if(0===l.length)throw new Error("No known animation properties specified");return l}static _getAnimationInfo(e){return JSON.stringify({target:e.target.id,property:e.property,value:e.value,duration:e.duration,delay:e.delay,iterations:e.iterations,curve:e.curve})}}var l,d=r(9),p=r(18),h=r(49),m=r(84);var g=Object(h.a)(()=>new android.view.animation.AccelerateInterpolator(1)),f=Object(h.a)(()=>new android.view.animation.DecelerateInterpolator(1)),v=Object(h.a)(()=>new android.view.animation.AccelerateDecelerateInterpolator),y=Object(h.a)(()=>new android.view.animation.LinearInterpolator),w=Object(h.a)(()=>new android.view.animation.BounceInterpolator),C="ui.animation.",S={};S[n.backgroundColor]=Symbol(C+n.backgroundColor);S[n.opacity]=Symbol(C+n.opacity);S[n.rotate]=Symbol(C+n.rotate);S[n.scale]=Symbol(C+n.scale);S[n.translate]=Symbol(C+n.translate);S[n.height]=Symbol(C+n.height);S[n.width]=Symbol(C+n.width);function _resolveAnimationCurve(e){switch(e){case"easeIn":a.a.isEnabled()&&a.a.write("Animation curve resolved to android.view.animation.AccelerateInterpolator(1).",a.a.categories.Animation);return g();case"easeOut":a.a.isEnabled()&&a.a.write("Animation curve resolved to android.view.animation.DecelerateInterpolator(1).",a.a.categories.Animation);return f();case"easeInOut":a.a.isEnabled()&&a.a.write("Animation curve resolved to android.view.animation.AccelerateDecelerateInterpolator().",a.a.categories.Animation);return v();case"linear":a.a.isEnabled()&&a.a.write("Animation curve resolved to android.view.animation.LinearInterpolator().",a.a.categories.Animation);return y();case"spring":a.a.isEnabled()&&a.a.write("Animation curve resolved to android.view.animation.BounceInterpolator().",a.a.categories.Animation);return w();case"ease":return androidx.core.view.animation.PathInterpolatorCompat.create(.25,.1,.25,1);default:a.a.isEnabled()&&a.a.write("Animation curve resolved to original: "+e,a.a.categories.Animation);if(e instanceof CubicBezierAnimationCurve)return androidx.core.view.animation.PathInterpolatorCompat.create(e.x1,e.y1,e.x2,e.y2);if(e&&e.getInterpolation)return e;if(e instanceof android.view.animation.LinearInterpolator)return e;throw new Error("Invalid animation curve: ".concat(e))}}function getAndroidRepeatCount(e){return e===Number.POSITIVE_INFINITY?android.view.animation.Animation.INFINITE:e-1}function createObjectAnimator(e,t,r){var n=Array.create("float",1);n[0]=r;return android.animation.ObjectAnimator.ofFloat(e,t,n)}function createAnimationSet(e,t){t=getAndroidRepeatCount(t);var r=new android.animation.AnimatorSet,n=Array.create(android.animation.Animator,e.length);e.forEach((e,r)=>{n[r]=e;n[r].setRepeatCount(t)});r.playTogether(n);r.setupStartValues();return r}class animation_Animation extends animation_common_AnimationBase{constructor(e,t){super(e,t);this._resetOnFinish=!0;this._valueSource="animation";e.length>0&&void 0!==e[0].valueSource&&(this._valueSource=e[0].valueSource);var r=new WeakRef(this);this._animatorListener=new android.animation.Animator.AnimatorListener({onAnimationStart:function onAnimationStart(e){a.a.isEnabled()&&a.a.write("MainAnimatorListener.onAndroidAnimationStart("+e+")",a.a.categories.Animation)},onAnimationRepeat:function onAnimationRepeat(e){a.a.isEnabled()&&a.a.write("MainAnimatorListener.onAnimationRepeat("+e+")",a.a.categories.Animation)},onAnimationEnd:function onAnimationEnd(e){a.a.isEnabled()&&a.a.write("MainAnimatorListener.onAnimationEnd("+e+")",a.a.categories.Animation);var t=r.get();t&&t._onAndroidAnimationEnd()},onAnimationCancel:function onAnimationCancel(e){a.a.isEnabled()&&a.a.write("MainAnimatorListener.onAnimationCancel("+e+")",a.a.categories.Animation);var t=r.get();t&&t._onAndroidAnimationCancel()}})}play(e){void 0!==e&&(this._resetOnFinish=e);if(this.isPlaying)return this._rejectAlreadyPlaying();if(this._animatorSet)return this._play();this._animators=new Array;this._propertyUpdateCallbacks=new Array;this._propertyResetCallbacks=new Array;for(var t=0,r=this._propertyAnimations.length;t0&&(this._playSequentially?this._animatorSet.playSequentially(this._nativeAnimatorsArray):this._animatorSet.playTogether(this._nativeAnimatorsArray));a.a.isEnabled()&&a.a.write("Starting "+this._nativeAnimatorsArray.length+" animations "+(this._playSequentially?"sequentially.":"together."),a.a.categories.Animation);this._animatorSet.setupStartValues();this._animatorSet.start();return e}_onAndroidAnimationEnd(){if(this.isPlaying){this._propertyUpdateCallbacks.forEach(e=>e());this._resolveAnimationFinishedPromise();this._resetOnFinish&&this._target&&this._target._removeAnimation(this)}}_onAndroidAnimationCancel(){this._propertyResetCallbacks.forEach(e=>e());this._rejectAnimationFinishedPromise();this._target&&this._target._removeAnimation(this)}_createAnimators(e){if(e.target.nativeViewProtected){a.a.isEnabled()&&a.a.write("Creating ObjectAnimator(s) for animation: "+animation_Animation._getAnimationInfo(e)+"...",a.a.categories.Animation);if(null===e.target||void 0===e.target)throw new Error("Animation target cannot be null or undefined; property: ".concat(e.property,"; value: ").concat(e.value,";"));if(null===e.property||void 0===e.property)throw new Error("Animation property cannot be null or undefined; target: ".concat(e.target,"; value: ").concat(e.value,";"));if(null===e.value||void 0===e.value)throw new Error("Animation value cannot be null or undefined; target: ".concat(e.target,"; property: ").concat(e.property,";"));this._target=e.target;var t,r,h,m=e.target.nativeViewProtected,g=new Array,f=new Array,v=new Array,y=d.n.getDisplayDensity(),w=S[e.property];w&&(e.target[w]=e);var C="animation"===this._valueSource,b=e.target.style;switch(e.property){case n.opacity:o.opacityProperty._initDefaultNativeValue(b);t=m.getAlpha();f.push(checkAnimation(()=>{e.target.style[C?o.opacityProperty.name:o.opacityProperty.keyframe]=e.value}));v.push(checkAnimation(()=>{C?e.target.style[o.opacityProperty.name]=t:e.target.style[o.opacityProperty.keyframe]=t;e.target.nativeViewProtected&&e.target[o.opacityProperty.setNative](e.target.style.opacity)}));g.push(createObjectAnimator(m,"alpha",e.value));break;case n.backgroundColor:o.backgroundColorProperty._initDefaultNativeValue(b);!function ensureArgbEvaluator(){l||(l=new android.animation.ArgbEvaluator)}();t=e.target.backgroundColor;var x=Array.create(java.lang.Object,2);x[0]=e.target.backgroundColor?java.lang.Integer.valueOf(e.target.backgroundColor.argb):java.lang.Integer.valueOf(-1);x[1]=java.lang.Integer.valueOf(e.value.argb);var T=android.animation.ValueAnimator.ofObject(l,x);T.addUpdateListener(new android.animation.ValueAnimator.AnimatorUpdateListener({onAnimationUpdate(t){var r=t.getAnimatedValue().intValue();e.target.style[C?o.backgroundColorProperty.name:o.backgroundColorProperty.keyframe]=new i.a(r)}}));f.push(checkAnimation(()=>{e.target.style[C?o.backgroundColorProperty.name:o.backgroundColorProperty.keyframe]=e.value}));v.push(checkAnimation(()=>{C?e.target.style[o.backgroundColorProperty.name]=t:e.target.style[o.backgroundColorProperty.keyframe]=t;e.target.nativeViewProtected&&e.target[o.backgroundColorProperty.setNative]&&e.target[o.backgroundColorProperty.setNative](e.target.style.backgroundColor)}));g.push(T);break;case n.translate:o.translateXProperty._initDefaultNativeValue(b);o.translateYProperty._initDefaultNativeValue(b);t=m.getTranslationX()/y;r=m.getTranslationY()/y;f.push(checkAnimation(()=>{e.target.style[C?o.translateXProperty.name:o.translateXProperty.keyframe]=e.value.x;e.target.style[C?o.translateYProperty.name:o.translateYProperty.keyframe]=e.value.y}));v.push(checkAnimation(()=>{if(C){e.target.style[o.translateXProperty.name]=t;e.target.style[o.translateYProperty.name]=r}else{e.target.style[o.translateXProperty.keyframe]=t;e.target.style[o.translateYProperty.keyframe]=r}if(e.target.nativeViewProtected){e.target[o.translateXProperty.setNative](e.target.style.translateX);e.target[o.translateYProperty.setNative](e.target.style.translateY)}}));g.push(createAnimationSet([createObjectAnimator(m,"translationX",e.value.x*y),createObjectAnimator(m,"translationY",e.value.y*y)],e.iterations));break;case n.scale:o.scaleXProperty._initDefaultNativeValue(b);o.scaleYProperty._initDefaultNativeValue(b);t=m.getScaleX();r=m.getScaleY();f.push(checkAnimation(()=>{e.target.style[C?o.scaleXProperty.name:o.scaleXProperty.keyframe]=e.value.x;e.target.style[C?o.scaleYProperty.name:o.scaleYProperty.keyframe]=e.value.y}));v.push(checkAnimation(()=>{if(C){e.target.style[o.scaleXProperty.name]=t;e.target.style[o.scaleYProperty.name]=r}else{e.target.style[o.scaleXProperty.keyframe]=t;e.target.style[o.scaleYProperty.keyframe]=r}if(e.target.nativeViewProtected){e.target[o.scaleXProperty.setNative](e.target.style.scaleX);e.target[o.scaleYProperty.setNative](e.target.style.scaleY)}}));g.push(createAnimationSet([createObjectAnimator(m,"scaleX",e.value.x),createObjectAnimator(m,"scaleY",e.value.y)],e.iterations));break;case n.rotate:o.rotateProperty._initDefaultNativeValue(b);o.rotateXProperty._initDefaultNativeValue(b);o.rotateYProperty._initDefaultNativeValue(b);t=m.getRotationX();r=m.getRotationY();h=m.getRotation();f.push(checkAnimation(()=>{e.target.style[C?o.rotateXProperty.name:o.rotateXProperty.keyframe]=e.value.x;e.target.style[C?o.rotateYProperty.name:o.rotateYProperty.keyframe]=e.value.y;e.target.style[C?o.rotateProperty.name:o.rotateProperty.keyframe]=e.value.z}));v.push(checkAnimation(()=>{if(C){e.target.style[o.rotateXProperty.name]=t;e.target.style[o.rotateYProperty.name]=r;e.target.style[o.rotateProperty.name]=h}else{e.target.style[o.rotateXProperty.keyframe]=t;e.target.style[o.rotateYProperty.keyframe]=r;e.target.style[o.rotateProperty.keyframe]=h}if(e.target.nativeViewProtected){e.target[o.rotateProperty.setNative](e.target.style.rotate);e.target[o.rotateXProperty.setNative](e.target.style.rotateX);e.target[o.rotateYProperty.setNative](e.target.style.rotateY)}}));g.push(createAnimationSet([createObjectAnimator(m,"rotationX",e.value.x),createObjectAnimator(m,"rotationY",e.value.y),createObjectAnimator(m,"rotation",e.value.z)],e.iterations));break;case n.width:case n.height:var P="height"===e.property,k=P?o.heightProperty:o.widthProperty;k._initDefaultNativeValue(b);var A=Array.create("float",2),E=e.value,I=e.target.parent;if(!I)throw new Error("cannot animate ".concat(e.property," on root view"));var V=P?I.getMeasuredHeight():I.getMeasuredWidth();E=o.PercentLength.toDevicePixels(E,V,V)/p.b.mainScreen.scale;var L=P?m.getHeight():m.getWidth(),N=C?k.name:k.keyframe;t=L/p.b.mainScreen.scale;A[0]=t;A[1]=E;var O=android.animation.ValueAnimator.ofFloat(A);O.addUpdateListener(new android.animation.ValueAnimator.AnimatorUpdateListener({onAnimationUpdate(t){var r=t.getAnimatedValue().floatValue();e.target.style[C?k.name:k.keyframe]=r}}));f.push(checkAnimation(()=>{e.target.style[N]=e.value}));v.push(checkAnimation(()=>{e.target.style[N]=t;if(e.target.nativeViewProtected){var r=e.target[k.setNative];r(e.target.style[e.property])}}));g.push(O);break;default:throw new Error("Animating property '".concat(e.property,"' is unsupported"))}for(var D=0,F=g.length;D{if(e.target[w]===e){delete e.target[w];t()}}}}}},function(e,t,r){"use strict";(function(e){r.d(t,"b",(function(){return ActionItem}));r.d(t,"c",(function(){return NavigationButton}));r.d(t,"a",(function(){return ActionBar}));var n,i,a,o,l,d=r(71),p=r(5),h=r(4),m=r(9),g=r(2),f=r(29),v=r(8),y=1e4;function loadActionIconDrawableOrResourceId(e){var t=e.icon,r=e.style,n=null;if(Object(m.l)(t)){var a=t.split("//")[1],o=r.fontInternal,l=r.color,p=f.ImageSource.fromFontIconCodeSync(a,o,l);p&&p.android&&(n=new android.graphics.drawable.BitmapDrawable(i,p.android))}else n=getDrawableOrResourceId(t,i);n||Object(d.h)(t);return n}class ActionItem extends d.b{constructor(){super();this._androidPosition={position:"actionBar",systemIcon:void 0};this._itemId=function generateItemId(){y++;return y}()}get android(){return this._androidPosition}set android(e){throw new Error("ActionItem.android is read-only")}_getItemId(){return this._itemId}}class AndroidActionBarSettings{constructor(e){this._iconVisibility="auto";this._actionBar=e}get icon(){return this._icon}set icon(e){if(e!==this._icon){this._icon=e;this._actionBar._onIconPropertyChanged()}}get iconVisibility(){return this._iconVisibility}set iconVisibility(e){if(e!==this._iconVisibility){this._iconVisibility=e;this._actionBar._onIconPropertyChanged()}}}class NavigationButton extends ActionItem{}class ActionBar extends d.a{constructor(){super();this._android=new AndroidActionBarSettings(this)}get android(){return this._android}_addChildFromBuilder(e,t){t instanceof NavigationButton?this.navigationButton=t:t instanceof ActionItem?this.actionItems.addItem(t):t instanceof p.c&&(this.titleView=t)}createNativeView(){return new androidx.appcompat.widget.Toolbar(this._context)}initNativeView(){super.initNativeView();var t=this.nativeViewProtected;!function initializeMenuItemClickListener(){if(!a){o=android.os.Build.VERSION.SDK_INT;n=androidx.appcompat.widget.AppCompatTextView;var t=function(t){__extends(MenuItemClickListenerImpl,t);function MenuItemClickListenerImpl(r){var n=t.call(this)||this;n.owner=r;return e.__native(n)}MenuItemClickListenerImpl.prototype.onMenuItemClick=function(e){var t=e.getItemId();return this.owner._onAndroidItemSelected(t)};MenuItemClickListenerImpl=__decorate([Interfaces([androidx.appcompat.widget.Toolbar.OnMenuItemClickListener])],MenuItemClickListenerImpl);return MenuItemClickListenerImpl}(java.lang.Object);a=t;i=v.android.context.getResources()}}();var r=new a(this);t.setOnMenuItemClickListener(r);t.menuItemClickListener=r}disposeNativeView(){this.nativeViewProtected.menuItemClickListener.owner=null;super.disposeNativeView()}onLoaded(){super.onLoaded();this.update()}update(){if(this.nativeViewProtected){var e=this.page;if(e.frame&&e.frame._getNavBarVisible(e)){this.nativeViewProtected.setVisibility(android.view.View.VISIBLE);this._addActionItems();this._updateTitleAndTitleView();this._updateIcon();this._updateNavigationButton()}else this.nativeViewProtected.setVisibility(android.view.View.GONE)}}_onAndroidItemSelected(e){if(this.navigationButton&&16908332===e){this.navigationButton._raiseTap();return!0}for(var t=void 0,r=this.actionItems.getItems(),n=0;n1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;super._addViewToNativeVisualTree(e);if(this.nativeViewProtected&&e.nativeViewProtected){t>=this.nativeViewProtected.getChildCount()?this.nativeViewProtected.addView(e.nativeViewProtected):this.nativeViewProtected.addView(e.nativeViewProtected,t);return!0}return!1}_removeViewFromNativeVisualTree(e){super._removeViewFromNativeVisualTree(e);this.nativeViewProtected&&e.nativeViewProtected&&this.nativeViewProtected.removeView(e.nativeViewProtected)}[g.colorProperty.getDefault](){var e=this.nativeViewProtected;if(!l){var t=getAppCompatTextView(e);if(!t){var r=e.getTitle();e.setTitle("");t=getAppCompatTextView(e);r&&e.setTitle(r)}l=t?t.getTextColors().getDefaultColor():-570425344}return l}[g.colorProperty.setNative](e){var t=e instanceof h.a?e.android:e;this.nativeViewProtected.setTitleTextColor(t)}[d.f.setNative](e){var t=androidx.core.view.ViewCompat;if(t.setElevation)if(e)t.setElevation(this.nativeViewProtected,0);else{var r=4*m.n.getDisplayDensity();t.setElevation(this.nativeViewProtected,r)}}[d.d.setNative](){o>=21&&this.nativeViewProtected.setContentInsetsAbsolute(this.effectiveContentInsetLeft,this.effectiveContentInsetRight)}[d.e.setNative](){o>=21&&this.nativeViewProtected.setContentInsetsAbsolute(this.effectiveContentInsetLeft,this.effectiveContentInsetRight)}}function getAppCompatTextView(e){for(var t=0,r=e.getChildCount();t0&&(r=n)}else{var a,o=f.ImageSource.fromFileOrResourceSync(e);o&&(a=new android.graphics.drawable.BitmapDrawable(i,o.android));r=a}return r}function getShowAsAction(e){switch(e.android.position){case"actionBarIfRoom":return android.view.MenuItem.SHOW_AS_ACTION_IF_ROOM;case"popup":return android.view.MenuItem.SHOW_AS_ACTION_NEVER;case"actionBar":default:return android.view.MenuItem.SHOW_AS_ACTION_ALWAYS}}function getSystemResourceId(e){return android.content.res.Resources.getSystem().getIdentifier(e,"drawable","android")}}).call(this,r(20))},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.CSSNativeScript=t.CSS3Parser=t.parseSelector=t.parseCombinator=t.parseSimpleSelectorSequence=t.parseSimpleSelector=t.parseAttributeSelector=t.parseSimpleIdentifierSelector=t.parseUniversalSelector=t.parseBackground=t.parseLinearGradient=t.parseColorStop=t.parseBackgroundPosition=t.parseBackgroundSize=t.parseAngle=t.parsePercentageOrLength=t.parseUnit=t.parseRepeat=t.parseColor=t.parseColorKeyword=t.colors=t.parseHSLAColor=t.parseHSLColor=t.convertHSLToRGBColor=t.parseRGBAColor=t.parseRGBColor=t.parseHexColor=t.parseURL=void 0;var r=/\s*url\((?:('|")([^\1]*)\1|([^\)]*))\)\s*/gy;function parseURL(e,t){void 0===t&&(t=0);r.lastIndex=t;var n=r.exec(e);if(!n)return null;var i=r.lastIndex,a=n[2]||n[3];return{start:t,end:i,value:a}}t.parseURL=parseURL;var n=/\s*#((?:[0-9A-F]{8})|(?:[0-9A-F]{6})|(?:[0-9A-F]{3}))\s*/giy;function parseHexColor(e,t){void 0===t&&(t=0);n.lastIndex=t;var r=n.exec(e);if(!r)return null;var i,a=n.lastIndex,o=r[1];8===o.length?i=parseInt("0x"+o):6===o.length?i=parseInt("0xFF"+o):3===o.length&&(i=parseInt("0xFF"+o[0]+o[0]+o[1]+o[1]+o[2]+o[2]));return{start:t,end:a,value:i}}t.parseHexColor=parseHexColor;function rgbaToArgbNumber(e,t,r,n){void 0===n&&(n=1);return e>=0&&e<=255&&t>=0&&t<=255&&r>=0&&r<=255&&n>=0&&n<=1?16777216*Math.round(255*n)+65536*e+256*t+r:null}var i=/\s*(rgb\(\s*(\d*)\s*,\s*(\d*)\s*,\s*(\d*)\s*\))/gy;function parseRGBColor(e,t){void 0===t&&(t=0);i.lastIndex=t;var r=i.exec(e);if(!r)return null;var n=i.lastIndex,a=r[1]&&rgbaToArgbNumber(parseInt(r[2]),parseInt(r[3]),parseInt(r[4]));return{start:t,end:n,value:a}}t.parseRGBColor=parseRGBColor;var a=/\s*(rgba\(\s*(\d*)\s*,\s*(\d*)\s*,\s*(\d*)\s*,\s*([01]?\.?\d*)\s*\))/gy;function parseRGBAColor(e,t){void 0===t&&(t=0);a.lastIndex=t;var r=a.exec(e);if(!r)return null;var n=a.lastIndex,i=rgbaToArgbNumber(parseInt(r[2]),parseInt(r[3]),parseInt(r[4]),parseFloat(r[5]));return{start:t,end:n,value:i}}t.parseRGBAColor=parseRGBAColor;function convertHSLToRGBColor(e,t,r){e/=60;r/=100;var n=(1-Math.abs(2*r-1))*t/100,i=n*(1-Math.abs(e%2-1)),a={m:r-n/2},o=a.m,l=a.m,d=a.m;if(0<=e&&e<1){o+=n;l+=i}else if(e<2){o+=i;l+=n}else if(e<3){l+=n;d+=i}else if(e<4){l+=i;d+=n}else if(e<5){o+=i;d+=n}else if(e<6){o+=n;d+=i}return{r:Math.round(255*o),g:Math.round(255*l),b:Math.round(255*d)}}t.convertHSLToRGBColor=convertHSLToRGBColor;function hslaToArgbNumber(e,t,r,n){void 0===n&&(n=1);var i=convertHSLToRGBColor(e,t,r),a=i.r,o=i.g,l=i.b;return a>=0&&a<=255&&o>=0&&o<=255&&l>=0&&l<=255&&n>=0&&n<=1?16777216*Math.round(255*n)+65536*a+256*o+l:null}var o=/\s*(hsl\(\s*([\d.]*)\s*,\s*([\d.]*)%\s*,\s*([\d.]*)%\s*\))/gy;function parseHSLColor(e,t){void 0===t&&(t=0);o.lastIndex=t;var r=o.exec(e);if(!r)return null;var n=o.lastIndex,i=r[1]&&hslaToArgbNumber(parseFloat(r[2]),parseFloat(r[3]),parseFloat(r[4]));return{start:t,end:n,value:i}}t.parseHSLColor=parseHSLColor;var l,d=/\s*(hsla\(\s*([\d.]*)\s*,\s*([\d.]*)%\s*,\s*([\d.]*)%\s*,\s*([01]?\.?\d*)\s*\))/gy;function parseHSLAColor(e,t){void 0===t&&(t=0);d.lastIndex=t;var r=d.exec(e);if(!r)return null;var n=d.lastIndex,i=hslaToArgbNumber(parseFloat(r[2]),parseFloat(r[3]),parseFloat(r[4]),parseFloat(r[5]));return{start:t,end:n,value:i}}t.parseHSLAColor=parseHSLAColor;!function(e){e[e.transparent=0]="transparent";e[e.aliceblue=4293982463]="aliceblue";e[e.antiquewhite=4294634455]="antiquewhite";e[e.aqua=4278255615]="aqua";e[e.aquamarine=4286578644]="aquamarine";e[e.azure=4293984255]="azure";e[e.beige=4294309340]="beige";e[e.bisque=4294960324]="bisque";e[e.black=4278190080]="black";e[e.blanchedalmond=4294962125]="blanchedalmond";e[e.blue=4278190335]="blue";e[e.blueviolet=4287245282]="blueviolet";e[e.brown=4289014314]="brown";e[e.burlywood=4292786311]="burlywood";e[e.cadetblue=4284456608]="cadetblue";e[e.chartreuse=4286578432]="chartreuse";e[e.chocolate=4291979550]="chocolate";e[e.coral=4294934352]="coral";e[e.cornflowerblue=4284782061]="cornflowerblue";e[e.cornsilk=4294965468]="cornsilk";e[e.crimson=4292613180]="crimson";e[e.cyan=4278255615]="cyan";e[e.darkblue=4278190219]="darkblue";e[e.darkcyan=4278225803]="darkcyan";e[e.darkgoldenrod=4290283019]="darkgoldenrod";e[e.darkgray=4289309097]="darkgray";e[e.darkgreen=4278215680]="darkgreen";e[e.darkgrey=4289309097]="darkgrey";e[e.darkkhaki=4290623339]="darkkhaki";e[e.darkmagenta=4287299723]="darkmagenta";e[e.darkolivegreen=4283788079]="darkolivegreen";e[e.darkorange=4294937600]="darkorange";e[e.darkorchid=4288230092]="darkorchid";e[e.darkred=4287299584]="darkred";e[e.darksalmon=4293498490]="darksalmon";e[e.darkseagreen=4287609999]="darkseagreen";e[e.darkslateblue=4282924427]="darkslateblue";e[e.darkslategray=4281290575]="darkslategray";e[e.darkslategrey=4281290575]="darkslategrey";e[e.darkturquoise=4278243025]="darkturquoise";e[e.darkviolet=4287889619]="darkviolet";e[e.deeppink=4294907027]="deeppink";e[e.deepskyblue=4278239231]="deepskyblue";e[e.dimgray=4285098345]="dimgray";e[e.dimgrey=4285098345]="dimgrey";e[e.dodgerblue=4280193279]="dodgerblue";e[e.firebrick=4289864226]="firebrick";e[e.floralwhite=4294966e3]="floralwhite";e[e.forestgreen=4280453922]="forestgreen";e[e.fuchsia=4294902015]="fuchsia";e[e.gainsboro=4292664540]="gainsboro";e[e.ghostwhite=4294506751]="ghostwhite";e[e.gold=4294956800]="gold";e[e.goldenrod=4292519200]="goldenrod";e[e.gray=4286611584]="gray";e[e.green=4278222848]="green";e[e.greenyellow=4289593135]="greenyellow";e[e.grey=4286611584]="grey";e[e.honeydew=4293984240]="honeydew";e[e.hotpink=4294928820]="hotpink";e[e.indianred=4291648604]="indianred";e[e.indigo=4283105410]="indigo";e[e.ivory=4294967280]="ivory";e[e.khaki=4293977740]="khaki";e[e.lavender=4293322490]="lavender";e[e.lavenderblush=4294963445]="lavenderblush";e[e.lawngreen=4286381056]="lawngreen";e[e.lemonchiffon=4294965965]="lemonchiffon";e[e.lightblue=4289583334]="lightblue";e[e.lightcoral=4293951616]="lightcoral";e[e.lightcyan=4292935679]="lightcyan";e[e.lightgoldenrodyellow=4294638290]="lightgoldenrodyellow";e[e.lightgray=4292072403]="lightgray";e[e.lightgreen=4287688336]="lightgreen";e[e.lightgrey=4292072403]="lightgrey";e[e.lightpink=4294948545]="lightpink";e[e.lightsalmon=4294942842]="lightsalmon";e[e.lightseagreen=4280332970]="lightseagreen";e[e.lightskyblue=4287090426]="lightskyblue";e[e.lightslategray=4286023833]="lightslategray";e[e.lightslategrey=4286023833]="lightslategrey";e[e.lightsteelblue=4289774814]="lightsteelblue";e[e.lightyellow=4294967264]="lightyellow";e[e.lime=4278255360]="lime";e[e.limegreen=4281519410]="limegreen";e[e.linen=4294635750]="linen";e[e.magenta=4294902015]="magenta";e[e.maroon=4286578688]="maroon";e[e.mediumaquamarine=4284927402]="mediumaquamarine";e[e.mediumblue=4278190285]="mediumblue";e[e.mediumorchid=4290401747]="mediumorchid";e[e.mediumpurple=4287852763]="mediumpurple";e[e.mediumseagreen=4282168177]="mediumseagreen";e[e.mediumslateblue=4286277870]="mediumslateblue";e[e.mediumspringgreen=4278254234]="mediumspringgreen";e[e.mediumturquoise=4282962380]="mediumturquoise";e[e.mediumvioletred=4291237253]="mediumvioletred";e[e.midnightblue=4279834992]="midnightblue";e[e.mintcream=4294311930]="mintcream";e[e.mistyrose=4294960353]="mistyrose";e[e.moccasin=4294960309]="moccasin";e[e.navajowhite=4294958765]="navajowhite";e[e.navy=4278190208]="navy";e[e.oldlace=4294833638]="oldlace";e[e.olive=4286611456]="olive";e[e.olivedrab=4285238819]="olivedrab";e[e.orange=4294944e3]="orange";e[e.orangered=4294919424]="orangered";e[e.orchid=4292505814]="orchid";e[e.palegoldenrod=4293847210]="palegoldenrod";e[e.palegreen=4288215960]="palegreen";e[e.paleturquoise=4289720046]="paleturquoise";e[e.palevioletred=4292571283]="palevioletred";e[e.papayawhip=4294963157]="papayawhip";e[e.peachpuff=4294957753]="peachpuff";e[e.peru=4291659071]="peru";e[e.pink=4294951115]="pink";e[e.plum=4292714717]="plum";e[e.powderblue=4289781990]="powderblue";e[e.purple=4286578816]="purple";e[e.rebeccapurple=4284887961]="rebeccapurple";e[e.red=4294901760]="red";e[e.rosybrown=4290547599]="rosybrown";e[e.royalblue=4282477025]="royalblue";e[e.saddlebrown=4287317267]="saddlebrown";e[e.salmon=4294606962]="salmon";e[e.sandybrown=4294222944]="sandybrown";e[e.seagreen=4281240407]="seagreen";e[e.seashell=4294964718]="seashell";e[e.sienna=4288696877]="sienna";e[e.silver=4290822336]="silver";e[e.skyblue=4287090411]="skyblue";e[e.slateblue=4285160141]="slateblue";e[e.slategray=4285563024]="slategray";e[e.slategrey=4285563024]="slategrey";e[e.snow=4294966010]="snow";e[e.springgreen=4278255487]="springgreen";e[e.steelblue=4282811060]="steelblue";e[e.tan=4291998860]="tan";e[e.teal=4278222976]="teal";e[e.thistle=4292394968]="thistle";e[e.tomato=4294927175]="tomato";e[e.turquoise=4282441936]="turquoise";e[e.violet=4293821166]="violet";e[e.wheat=4294303411]="wheat";e[e.white=4294967295]="white";e[e.whitesmoke=4294309365]="whitesmoke";e[e.yellow=4294967040]="yellow";e[e.yellowgreen=4288335154]="yellowgreen"}(l=t.colors||(t.colors={}));function parseColorKeyword(e,t,r){void 0===r&&(r=parseKeyword(e,t));if(r&&r.value in l){var n=r.end,i=l[r.value];return{start:t,end:n,value:i}}return null}t.parseColorKeyword=parseColorKeyword;function parseColor(e,t,r){void 0===t&&(t=0);void 0===r&&(r=parseKeyword(e,t));return parseHexColor(e,t)||parseColorKeyword(e,t,r)||parseRGBColor(e,t)||parseRGBAColor(e,t)||parseHSLColor(e,t)||parseHSLAColor(e,t)}t.parseColor=parseColor;var p=/\s*([a-z][\w\-]*)\s*/giy;function parseKeyword(e,t){void 0===t&&(t=0);p.lastIndex=t;var r=p.exec(e);if(!r)return null;var n=p.lastIndex,i=r[1];return{start:t,end:n,value:i}}var h=new Set(["repeat","repeat-x","repeat-y","no-repeat"]);function parseRepeat(e,t,r){void 0===t&&(t=0);void 0===r&&(r=parseKeyword(e,t));if(r&&h.has(r.value)){var n=r.end,i=r.value;return{start:t,end:n,value:i}}return null}t.parseRepeat=parseRepeat;var m=/\s*([\+\-]?(?:\d+\.\d+|\d+|\.\d+)(?:[eE][\+\-]?\d+)?)([a-zA-Z]+|%)?\s*/gy;function parseUnit(e,t){void 0===t&&(t=0);m.lastIndex=t;var r=m.exec(e);if(!r)return null;var n=m.lastIndex,i=parseFloat(r[1]),a=r[2]||"dip";return{start:t,end:n,value:{value:i,unit:a}}}t.parseUnit=parseUnit;function parsePercentageOrLength(e,t){void 0===t&&(t=0);var r=parseUnit(e,t);if(r){var n=r.start,i=r.end,a=r.value;if("%"===a.unit)a.value/=100;else if(a.unit){if("px"!==a.unit&&"dip"!==a.unit)return null}else a.unit="dip";return{start:n,end:i,value:a}}return null}t.parsePercentageOrLength=parsePercentageOrLength;var g={deg:function deg(e,t,r){return{start:e,end:t,value:r/180*Math.PI}},rad:function rad(e,t,r){return{start:e,end:t,value:r}},grad:function grad(e,t,r){return{start:e,end:t,value:r/200*Math.PI}},turn:function turn(e,t,r){return{start:e,end:t,value:r*Math.PI*2}}};function parseAngle(e,t){void 0===t&&(t=0);var r=parseUnit(e,t);if(r){var n=r.start,i=r.end,a=r.value;return(g[a.unit]||function(e,t,r){return null})(n,i,a.value)}return null}t.parseAngle=parseAngle;var f=new Set(["auto","contain","cover"]);function parseBackgroundSize(e,t,r){void 0===t&&(t=0);void 0===r&&(r=parseKeyword(e,t));var n=t;if(r&&f.has(r.value)){n=r.end;var i=r.value;return{start:t,end:n,value:i}}var a=parsePercentageOrLength(e,n);if(a){n=a.end;var o=parsePercentageOrLength(e,a.end);if(o){n=o.end;return{start:t,end:n,value:{x:a.value,y:o.value}}}return{start:t,end:n,value:{x:a.value,y:"auto"}}}return null}t.parseBackgroundSize=parseBackgroundSize;var v=Object.freeze(new Set(["left","right","top","bottom","center"])),y={left:"x",right:"x",center:"center",top:"y",bottom:"y"};function parseBackgroundPosition(e,t,r){void 0===t&&(t=0);void 0===r&&(r=parseKeyword(e,t));function formatH(e,t){return"center"===e.value?"center":t&&0!==t.value.value?{align:e.value,offset:t.value}:e.value}function formatV(e,t){return"center"===e.value?"center":t&&0!==t.value.value?{align:e.value,offset:t.value}:e.value}var n=t;if(r&&v.has(r.value)){n=r.end;var i=y[r.value],a="center"!==i&&parsePercentageOrLength(e,n);a&&(n=a.end);var o=parseKeyword(e,n);if(o&&v.has(o.value)){n=o.end;var l=y[o.end];if(i===l&&"center"!==i)return null;var d="center"!==l&&parsePercentageOrLength(e,n);d&&(n=d.end);return i===l&&"center"===l||"x"===i||"y"===l?{start:t,end:n,value:{x:formatH(r,a),y:formatV(o,d)}}:{start:t,end:n,value:{x:formatH(o,d),y:formatV(r,a)}}}return"center"===i?{start:t,end:n,value:{x:"center",y:"center"}}:"x"===i?{start:t,end:n,value:{x:formatH(r,a),y:"center"}}:{start:t,end:n,value:{x:"center",y:formatV(r,a)}}}a=parsePercentageOrLength(e,n);if(a){n=a.end;d=parsePercentageOrLength(e,n);if(d){n=d.end;return{start:t,end:n,value:{x:{align:"left",offset:a.value},y:{align:"top",offset:d.value}}}}return{start:t,end:n,value:{x:{align:"left",offset:a.value},y:"center"}}}return null}t.parseBackgroundPosition=parseBackgroundPosition;var w=/\s*to\s*(left|right|top|bottom)\s*(left|right|top|bottom)?\s*/gy,C={top:0*Math.PI/2,right:1*Math.PI/2,bottom:2*Math.PI/2,left:3*Math.PI/2},S={top:{right:1*Math.PI/4,left:7*Math.PI/4},right:{top:1*Math.PI/4,bottom:3*Math.PI/4},bottom:{right:3*Math.PI/4,left:5*Math.PI/4},left:{top:7*Math.PI/4,bottom:5*Math.PI/4}};var b=/\s*\(\s*/gy,x=/\s*\)\s*/gy,T=/\s*(\)|,)\s*/gy;function parseColorStop(e,t){void 0===t&&(t=0);var r=parseColor(e,t);if(!r)return null;var n=r.end,i=parsePercentageOrLength(e,n);if(i){n=i.end;return{start:t,end:n,value:{argb:r.value,offset:i.value}}}return{start:t,end:n,value:{argb:r.value}}}t.parseColorStop=parseColorStop;var P=/\s*linear-gradient\s*/gy;function parseLinearGradient(e,t){void 0===t&&(t=0);P.lastIndex=t;var r=P.exec(e);if(!r)return null;var n=P.lastIndex,i=Math.PI,a=[],o=function parseArgumentsList(e,t,r){b.lastIndex=t;var n=b.exec(e);if(!n)return null;var i=b.lastIndex,a=[];x.lastIndex=i;var o=x.exec(e);if(o)return{start:t,end:i,value:a};for(var l=0;;l++){var d=r(e,i,l);if(!d)return null;i=d.end;a.push(d);T.lastIndex=i;var p=T.exec(e);if(!p)return null;i=T.lastIndex;if(","!==p[1]&&")"===p[1])return{start:t,end:i,value:a}}}(e,n,(function(e,t,r){if(0===r){var n=parseAngle(e,t)||function parseDirection(e,t){void 0===t&&(t=0);w.lastIndex=t;var r=w.exec(e);if(!r)return null;var n=w.lastIndex,i=r[1];if(r[2]){var a=r[2],o=S[i][a];return void 0===o?null:{start:t,end:n,value:o}}return{start:t,end:n,value:C[i]}}(e,t);if(n){i=n.value;return n}}var o=parseColorStop(e,t);if(o){a.push(o.value);return o}return null}));if(!o)return null;n=o.end;return{start:t,end:n,value:{angle:i,colors:a}}}t.parseLinearGradient=parseLinearGradient;var k=/\s*(\/)\s*/gy;function parseSlash(e,t){k.lastIndex=t;var r=k.exec(e);if(!r)return null;var n=k.lastIndex;return{start:t,end:n,value:"/"}}t.parseBackground=function parseBackground(e,t){void 0===t&&(t=0);for(var r={},n=t;n)?\s*/gy;function parseCombinator(e,t){void 0===t&&(t=0);L.lastIndex=t;var r=L.exec(e);if(!r)return null;var n=L.lastIndex,i=r[1]||" ";return{start:t,end:n,value:i}}t.parseCombinator=parseCombinator;var N=/\s*/gy;t.parseSelector=function parseSelector(e,t){void 0===t&&(t=0);var r=t;N.lastIndex=r;var n=N.exec(e);n&&(r=N.lastIndex);var i,a,o=[],l=!0;do{var d=parseSimpleSelectorSequence(e,r);if(!d){if(l)return null;break}r=d.end;i&&(a[1]=i.value);a=[d.value,void 0];o.push(a);i=parseCombinator(e,r);i&&(r=i.end);l=i&&" "!==i.value}while(i);return{start:t,end:r,value:o}};var O=/[\s\t\n\r\f]*/gmy,D=/'((?:[^\n\r\f\']|\\(?:\$|\n|[0-9a-fA-F]{1,6}\s?))*)(:?'|$)/gmy,F=/"((?:[^\n\r\f\"]|\\(?:\$|\n|[0-9a-fA-F]{1,6}\s?))*)(:?"|$)/gmy,R=/(\/\*(?:[^\*]|\*[^\/])*\*\/)/gmy,B=/[\+\-]?(?:\d+\.\d+|\d+|\.\d+)(?:[eE][\+\-]?\d+)?/gmy,M=/-?(?:(?:[a-zA-Z_]|[^\x00-\x7F]|\\(?:\$|\n|[0-9a-fA-F]{1,6}\s?))(?:[a-zA-Z_0-9\-]*|\\(?:\$|\n|[0-9a-fA-F]{1,6}\s?))*)/gmy,z=function(){function CSS3Parser(e){this.text=e;this.nextInputCodePointIndex=0}CSS3Parser.prototype.tokenize=function(){var e,t=[];do{e=this.consumeAToken();t.push(e)}while(e);return t};CSS3Parser.prototype.consumeAToken=function(){if(this.reconsumedInputToken){var e=this.reconsumedInputToken;this.reconsumedInputToken=null;return e}var t=this.text[this.nextInputCodePointIndex];switch(t){case'"':case"'":return this.consumeAStringToken();case"(":case")":case",":case":":case";":case"[":case"]":case"{":case"}":this.nextInputCodePointIndex++;return t;case"#":return this.consumeAHashToken()||this.consumeADelimToken();case" ":case"\t":case"\n":case"\r":case"\f":return this.consumeAWhitespace();case"@":return this.consumeAtKeyword()||this.consumeADelimToken();case"\\":return this.consumeAnIdentLikeToken()||this.consumeADelimToken();case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.consumeANumericToken();case"u":case"U":if("+"===this.text[this.nextInputCodePointIndex+1]){var r=this.text[this.nextInputCodePointIndex+2];if(r>="0"&&r<="9"||"?"===r)throw new Error("Unicode tokens not supported!")}return this.consumeAnIdentLikeToken()||this.consumeADelimToken();case"$":case"*":case"^":case"|":case"~":return this.consumeAMatchToken()||this.consumeADelimToken();case"-":return this.consumeANumericToken()||this.consumeAnIdentLikeToken()||this.consumeCDC()||this.consumeADelimToken();case"+":case".":return this.consumeANumericToken()||this.consumeADelimToken();case"/":return this.consumeAComment()||this.consumeADelimToken();case"<":return this.consumeCDO()||this.consumeADelimToken();case void 0:return;default:return this.consumeAnIdentLikeToken()||this.consumeADelimToken()}};CSS3Parser.prototype.consumeADelimToken=function(){return{type:2,text:this.text[this.nextInputCodePointIndex++]}};CSS3Parser.prototype.consumeAWhitespace=function(){O.lastIndex=this.nextInputCodePointIndex;O.exec(this.text);this.nextInputCodePointIndex=O.lastIndex;return" "};CSS3Parser.prototype.consumeAHashToken=function(){this.nextInputCodePointIndex++;var e=this.consumeAName();if(e)return{type:12,text:"#"+e.text};this.nextInputCodePointIndex--;return null};CSS3Parser.prototype.consumeCDO=function(){if("\x3c!--"===this.text.substr(this.nextInputCodePointIndex,4)){this.nextInputCodePointIndex+=4;return"\x3c!--"}return null};CSS3Parser.prototype.consumeCDC=function(){if("--\x3e"===this.text.substr(this.nextInputCodePointIndex,3)){this.nextInputCodePointIndex+=3;return"--\x3e"}return null};CSS3Parser.prototype.consumeAMatchToken=function(){if("="===this.text[this.nextInputCodePointIndex+1]){var e=this.text.substr(this.nextInputCodePointIndex,2);this.nextInputCodePointIndex+=2;return e}return null};CSS3Parser.prototype.consumeANumericToken=function(){B.lastIndex=this.nextInputCodePointIndex;var e=B.exec(this.text);if(!e)return null;this.nextInputCodePointIndex=B.lastIndex;if("%"===this.text[this.nextInputCodePointIndex])return{type:4,text:e[0]};var t=this.consumeAName();return t?{type:5,text:e[0]+t.text}:{type:3,text:e[0]}};CSS3Parser.prototype.consumeAnIdentLikeToken=function(){var e=this.consumeAName();if(!e)return null;if("("===this.text[this.nextInputCodePointIndex]){this.nextInputCodePointIndex++;return"url"===e.text.toLowerCase()?this.consumeAURLToken():{type:8,name:e.text,text:e.text+"("}}return e};CSS3Parser.prototype.consumeAStringToken=function(){var e,t=this.text[this.nextInputCodePointIndex];if("'"===t){D.lastIndex=this.nextInputCodePointIndex;e=D.exec(this.text);if(!e)return null;this.nextInputCodePointIndex=D.lastIndex}else if('"'===t){F.lastIndex=this.nextInputCodePointIndex;e=F.exec(this.text);if(!e)return null;this.nextInputCodePointIndex=F.lastIndex}return{type:1,text:e[0]}};CSS3Parser.prototype.consumeAURLToken=function(){var e=this.nextInputCodePointIndex-3-1,t={type:7,text:void 0};this.consumeAWhitespace();if(this.nextInputCodePointIndex>=this.text.length)return t;var r=this.text[this.nextInputCodePointIndex];if('"'===r||"'"===r){var n=this.consumeAStringToken();t.text=n.text;this.consumeAWhitespace();if(")"===this.text[this.nextInputCodePointIndex]||this.nextInputCodePointIndex>=this.text.length){this.nextInputCodePointIndex++;var i=this.nextInputCodePointIndex;t.text=this.text.substring(e,i);return t}return null}for(;this.nextInputCodePointIndex=this.text.length){r.text=e+"("+this.text.substring(t);return r}var n=this.text[this.nextInputCodePointIndex];switch(n){case")":this.nextInputCodePointIndex++;var i=this.nextInputCodePointIndex;r.text=e+"("+this.text.substring(t,i);return r;default:var a=this.consumeAComponentValue();a&&r.components.push(a)}}};return CSS3Parser}();t.CSS3Parser=z;var W=function(){function CSSNativeScript(){}CSSNativeScript.prototype.parseStylesheet=function(e){return{type:"stylesheet",stylesheet:{rules:this.parseRules(e.rules)}}};CSSNativeScript.prototype.parseRules=function(e){var t=this;return e.map((function(e){return t.parseRule(e)}))};CSSNativeScript.prototype.parseRule=function(e){return"at-rule"===e.type?this.parseAtRule(e):"qualified-rule"===e.type?this.parseQualifiedRule(e):void 0};CSSNativeScript.prototype.parseAtRule=function(e){if("import"===e.name)return{import:e.prelude.map((function(e){return"string"==typeof e?e:e.text})).join("").trim(),type:"import"}};CSSNativeScript.prototype.parseQualifiedRule=function(e){return{type:"rule",selectors:this.preludeToSelectorsStringArray(e.prelude),declarations:this.ruleBlockToDeclarations(e.block.values)}};CSSNativeScript.prototype.ruleBlockToDeclarations=function(e){for(var t=[],r="",n="",i="property",a=0;a=r){t=t<>>24+r;for(n=1;n>10)|0,56320+(1023&t)|0)}else n=0}for(;n=55296&&t<=56319){var r=0|e.charCodeAt(1);if(r!=r)return String.fromCharCode(239,191,189);if(!(r>=56320&&r<=57343))return String.fromCharCode(239,191,189);t=(t-55296<<10)+r-56320+65536|0;if(t>65535)return String.fromCharCode(240|t>>>18,128|t>>>12&63,128|t>>>6&63,128|63&t)}return t<=127?e:t<=2047?String.fromCharCode(192|t>>>6,128|63&t):String.fromCharCode(224|t>>>12,128|t>>>6&63,128|63&t)}class TextDecoder{constructor(){this[Symbol.toStringTag]="TextDecoder"}get encoding(){return"utf-8"}decode(e){var t=ArrayBuffer.isView(e)?e.buffer:e;if(i.call(t)!==a)throw Error("Failed to execute 'decode' on 'TextDecoder': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'");for(var r=new Uint8Array(t),n="",o=0,l=0|r.length;o0&&void 0!==arguments[0]?arguments[0]:"",t=void 0===e?"":(""+e).replace(/[\x80-\uD7ff\uDC00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]?/g,encoderReplacer),r=0|t.length,n=new Uint8Array(r),i=0;i1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length,a=new Array(r>2?r-2:0),o=2;oe(...a),d=zonedCallback(invoke),p=new java.lang.Runnable({run:()=>{d();i[l]&&delete i[l]}});i[l]||(i[l]=p);n.postDelayed(p,long(t));return l}function clearTimeout(e){var t=e;if(i[t]){n.removeCallbacks(i[t]);delete i[t]}}function setInterval(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length,a=new Array(r>2?r-2:0),o=2;oe(...a),p=zonedCallback(invoke),h=new java.lang.Runnable({run:()=>{p();i[l]&&d.postDelayed(h,long(t))}});i[l]||(i[l]=h);n.postDelayed(h,long(t));return l}var o=clearTimeout},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));r.d(t,"c",(function(){return l}));r.d(t,"b",(function(){return d}));var n=r(5),i=r(19),a=r(0),o=class ListPickerBase extends n.c{_getItemAsString(e){var t=this.items;if(!t)return" ";var r=this.isItemsSource?this.items.getItem(e):this.items[e];return null==r?e+"":this.parseItem(r)}parseItem(e){return this.textField?e[this.textField]+"":e+""}updateSelectedValue(e){var t=null;if(e>=0){var r=this.items[e];t=this.valueField?r[this.valueField]:r}this.selectedValue!==t&&this.set("selectedValue",t)}};o=__decorate([Object(i.a)("ListPicker")],o);o.prototype.recycleNativeView="auto";var l=new a.CoercibleProperty({name:"selectedIndex",defaultValue:-1,valueConverter:e=>parseInt(e),coerceValue:(e,t)=>{var r=e.items;if(r){var n=r.length-1;t<0&&(t=0);t>n&&(t=n)}else t=-1;e.updateSelectedValue(t);return t}});l.register(o);var d=new a.Property({name:"items",valueChanged:(e,t,r)=>{var n=r&&r.getItem;e.isItemsSource="function"==typeof n}});d.register(o);var p=new a.Property({name:"textField",defaultValue:""});p.register(o);var h=new a.Property({name:"valueField",defaultValue:""});h.register(o);var m=new a.Property({name:"selectedValue",defaultValue:null});m.register(o)},function(e,t,r){"use strict";r.r(t);r.d(t,"Keyframes",(function(){return Keyframes}));r.d(t,"UnparsedKeyframe",(function(){return UnparsedKeyframe}));r.d(t,"KeyframeDeclaration",(function(){return KeyframeDeclaration}));r.d(t,"KeyframeInfo",(function(){return KeyframeInfo}));r.d(t,"KeyframeAnimationInfo",(function(){return KeyframeAnimationInfo}));r.d(t,"KeyframeAnimation",(function(){return KeyframeAnimation}));var n=r(39),i=r(1),a=r(0),o=r(78),l=r(2);class Keyframes{}class UnparsedKeyframe{}class KeyframeDeclaration{}class KeyframeInfo{constructor(){this.curve=n.a.ease}}class KeyframeAnimationInfo{constructor(){this.name="";this.duration=.3;this.delay=0;this.iterations=1;this.curve="ease";this.isForwards=!1;this.isReverse=!1}}class KeyframeAnimation{constructor(){this.delay=0;this.iterations=1}static keyframeAnimationFromInfo(e){var t=e.keyframes.length,r=new Array,n=0;if(e.isReverse)for(var i=t-1;i>=0;i--){var a=e.keyframes[i];n=KeyframeAnimation.parseKeyframe(e,a,r,n)}else{for(var o=0;o0;d--){var p=r[d],h=r[d-1];if(void 0!==h.curve){p.curve=h.curve;h.curve=void 0}}}r.map(t=>t.curve?t:Object.assign(t,{curve:e.curve}));var m=new KeyframeAnimation;m.delay=e.delay;m.iterations=e.iterations;m.animations=r;m._isForwards=e.isForwards;return m}static parseKeyframe(e,t,r,n){var i={};for(var a of t.declarations)i[a.property]=a.value;var o=t.duration;if(0===o)o=.01;else{o=e.duration*o-n;n+=o}i.duration=e.isReverse?e.duration-o:o;i.curve=t.curve;i.forceLayer=!0;i.valueSource="keyframe";r.push(i);return n}get isPlaying(){return this._isPlaying}cancel(){if(this.isPlaying){this._isPlaying=!1;for(var e=this._nativeAnimations.length-1;e>=0;e--){var t=this._nativeAnimations[e];t.isPlaying&&t.cancel()}if(this._nativeAnimations.length>0){var r=this._nativeAnimations[0];this._resetAnimationValues(this._target,r)}this._resetAnimations()}else i.a.write("Keyframe animation is already playing.",i.a.categories.Animation,i.a.messageType.warn)}play(e){if(this._isPlaying){i.a.write("Keyframe animation is already playing.",i.a.categories.Animation,i.a.messageType.warn);return new Promise(e=>{e()})}var t=new Promise(e=>{this._resolve=e});this._isPlaying=!0;this._nativeAnimations=new Array;this._target=e;0!==this.delay?setTimeout(()=>this.animate(e,0,this.iterations),this.delay):this.animate(e,0,this.iterations);return t}animate(e,t,r){if(this._isPlaying)if(0===t){var n=this.animations[0];"backgroundColor"in n&&(e.style[l.backgroundColorProperty.keyframe]=n.backgroundColor);if("scale"in n){e.style[l.scaleXProperty.keyframe]=n.scale.x;e.style[l.scaleYProperty.keyframe]=n.scale.y}if("translate"in n){e.style[l.translateXProperty.keyframe]=n.translate.x;e.style[l.translateYProperty.keyframe]=n.translate.y}if("rotate"in n){e.style[l.rotateXProperty.keyframe]=n.rotate.x;e.style[l.rotateYProperty.keyframe]=n.rotate.y;e.style[l.rotateProperty.keyframe]=n.rotate.z}"opacity"in n&&(e.style[l.opacityProperty.keyframe]=n.opacity);"height"in n&&(e.style[l.heightProperty.keyframe]=n.height);"width"in n&&(e.style[l.widthProperty.keyframe]=n.width);setTimeout(()=>this.animate(e,1,r),1)}else if(t<0||t>=this.animations.length){r-=1;if(r>0)this.animate(e,0,r);else{if(!1===this._isForwards){var a=this.animations[this.animations.length-1];this._resetAnimationValues(e,a)}this._resolveAnimationFinishedPromise()}}else{var d,p=this._nativeAnimations[t-1];if(p)d=p;else{var h=this.animations[t];h.target=e;d=new o.Animation([h]);this._nativeAnimations.push(d)}var m=r-1<=0;d.play(m).then(()=>{this.animate(e,t+1,r)},e=>{i.a.write("string"==typeof e?e:e.message,i.a.categories.Animation,i.a.messageType.warn)}).catch(e=>{i.a.write("string"==typeof e?e:e.message,i.a.categories.Animation,i.a.messageType.warn)})}}_resolveAnimationFinishedPromise(){this._nativeAnimations=new Array;this._isPlaying=!1;this._target=null;this._resolve()}_resetAnimations(){this._nativeAnimations=new Array;this._isPlaying=!1;this._target=null}_resetAnimationValues(e,t){"backgroundColor"in t&&(e.style[l.backgroundColorProperty.keyframe]=a.unsetValue);if("scale"in t){e.style[l.scaleXProperty.keyframe]=a.unsetValue;e.style[l.scaleYProperty.keyframe]=a.unsetValue}if("translate"in t){e.style[l.translateXProperty.keyframe]=a.unsetValue;e.style[l.translateYProperty.keyframe]=a.unsetValue}"rotate"in t&&(e.style[l.rotateProperty.keyframe]=a.unsetValue);"opacity"in t&&(e.style[l.opacityProperty.keyframe]=a.unsetValue);"height"in t&&(e.style[l.heightProperty.keyframe]=a.unsetValue);"width"in t&&(e.style[l.widthProperty.keyframe]=a.unsetValue)}}},function(e,t,r){"use strict";(function(e){r.d(t,"b",(function(){return request}));r.d(t,"a",(function(){return addHeader}));var n,i=r(18),a=r(181),o=r(143);!function(e){e[e.UTF8=0]="UTF8";e[e.GBK=1]="GBK"}(n||(n={}));var l,d,p,h=0,m={};function ensureCompleteCallback(){p||(p=new org.nativescript.widgets.Async.CompleteCallback({onComplete:function onComplete(t,n){!function onRequestComplete(t,n){var i=m[t];delete m[t];if(n.error){i.rejectCallback(new Error(n.error.toString()));return}var p={};if(n.headers)for(var h,g=n.headers,f=g.size(),v=0;vUint8Array.from(n.raw.toByteArray()).buffer,toString:e=>{var t;t=e?decodeResponse(n.raw,e):n.responseAsString;if("string"==typeof t)return t;throw new Error("Response content may not be converted to string")},toJSON:e=>{var t;t=e?decodeResponse(n.raw,e):n.responseAsString;return function parseJSON(e){var t=e.trim();return t.lastIndexOf(")")===t.length-1?JSON.parse(t.substring(t.indexOf("(")+1,t.lastIndexOf(")"))):JSON.parse(t)}(t)},toImage:()=>{!function ensureImageSource(){l||(l=r(29))}();return new Promise((e,t)=>{null!=n.responseAsImage?e(new l.ImageSource(n.responseAsImage)):t(new Error("Response content may not be converted to an Image"))})},toFile:e=>{!function ensureFileSystem(){d||(d=r(17))}();e||(e=Object(a.a)(i.url));var t;try{var o=d.File.fromPath(e),l=new java.io.File(e);t=new java.io.FileOutputStream(l);t.write(n.raw.toByteArray());return o}catch(t){throw new Error("Cannot save file with path: ".concat(e,"."))}finally{t&&t.close()}}},statusCode:n.statusCode,headers:p})}(n,t)},onError:function onError(e,t){!function onRequestError(e,t){var r=m[t];delete m[t];r&&r.rejectCallback(new Error(e))}(e,t)}}))}function request(t){if(null!=t)return new Promise((r,n)=>{try{var a=function buildJavaOptions(e){if("string"!=typeof e.url)throw new Error("Http request must provide a valid url.");var t=new org.nativescript.widgets.Async.Http.RequestOptions;t.url=e.url;"string"==typeof e.method&&(t.method=e.method);if("string"==typeof e.content||e.content instanceof FormData){var r=new java.lang.String(e.content.toString()),n=r.getBytes("UTF-8"),a=java.nio.ByteBuffer.wrap(n);t.content=a}else if(e.content instanceof ArrayBuffer){var o=new Uint8Array(e.content),l=java.nio.ByteBuffer.wrap(Array.from(o));t.content=l}"number"==typeof e.timeout&&(t.timeout=e.timeout);"boolean"==typeof e.dontFollowRedirects&&(t.dontFollowRedirects=e.dontFollowRedirects);if(e.headers){var d=new java.util.ArrayList,p=org.nativescript.widgets.Async.Http.KeyValuePair;for(var h in e.headers)d.add(new p(h,e.headers[h]+""));t.headers=d}t.screenWidth=i.b.mainScreen.widthPixels;t.screenHeight=i.b.mainScreen.heightPixels;return t}(t);e.__inspector&&e.__inspector.isConnected&&o.a.requestWillBeSent(h,t);var l={url:t.url,resolveCallback:r,rejectCallback:n};m[h]=l;ensureCompleteCallback();org.nativescript.widgets.Async.Http.MakeRequest(a,p,new java.lang.Integer(h));h++}catch(e){n(e)}})}function decodeResponse(e,t){var r="UTF-8";t===n.GBK&&(r="GBK");return e.toString(r)}function addHeader(e,t,r){if(e[t])if(Array.isArray(e[t]))e[t].push(r);else{var n=[e[t]];n.push(r);e[t]=n}else e[t]=r}}).call(this,r(20))},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));r.d(t,"d",(function(){return l}));r.d(t,"c",(function(){return d}));r.d(t,"b",(function(){return p}));var n=r(5),i=r(19),a=r(0),o=class SliderBase extends n.c{};o=__decorate([Object(i.a)("Slider")],o);o.prototype.recycleNativeView="auto";var l=new a.CoercibleProperty({name:"value",defaultValue:0,coerceValue:(e,t)=>{t=Math.max(t,e.minValue);t=Math.min(t,e.maxValue);return t},valueConverter:e=>parseInt(e)});l.register(o);var d=new a.Property({name:"minValue",defaultValue:0,valueChanged:(e,t,r)=>{p.coerce(e);l.coerce(e)},valueConverter:e=>parseInt(e)});d.register(o);var p=new a.CoercibleProperty({name:"maxValue",defaultValue:100,coerceValue:(e,t)=>{var r=e.minValue;tl.coerce(e),valueConverter:e=>parseInt(e)});p.register(o)},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));r.d(t,"b",(function(){return p}));r.d(t,"c",(function(){return h}));var n=r(4),i=r(5),a=r(19),o=r(11),l=r(0),d=class SwitchBase extends i.c{_onCheckedPropertyChanged(e){}};d.checkedChangeEvent="checkedChange";d=__decorate([Object(a.a)("Switch")],d);d.prototype.recycleNativeView="auto";var p=new l.Property({name:"checked",defaultValue:!1,valueConverter:o.b,valueChanged:function onCheckedPropertyChanged(e,t,r){e._onCheckedPropertyChanged(r)}});p.register(d);var h=new l.Property({name:"offBackgroundColor",equalityComparer:n.a.equals,valueConverter:e=>new n.a(e)});h.register(d)},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));r.d(t,"d",(function(){return d}));r.d(t,"c",(function(){return p}));r.d(t,"b",(function(){return g}));var n=r(36),i=r(19),a=r(11),o=r(0),l=class TabsBase extends n.a{};l=__decorate([Object(i.a)("Tabs")],l);var d=new o.Property({name:"swipeEnabled",defaultValue:!0,valueConverter:a.b});d.register(l);var p=new o.Property({name:"offscreenTabLimit",defaultValue:1,valueConverter:e=>parseInt(e)});p.register(l);var h=new o.Property({name:"tabsPosition",defaultValue:"top"});h.register(l);var m=new o.Property({name:"iOSTabBarItemsAlignment",defaultValue:"justified"});m.register(l);var g=new o.Property({name:"animationEnabled",defaultValue:!0,valueConverter:a.b});g.register(l)},function(e,t,r){"use strict";r.r(t);r.d(t,"alert",(function(){return alert}));r.d(t,"confirm",(function(){return confirm}));r.d(t,"prompt",(function(){return prompt}));r.d(t,"login",(function(){return login}));r.d(t,"action",(function(){return action}));r.d(t,"Dialogs",(function(){return a}));var n=r(33),i=r(8);r.d(t,"DialogStrings",(function(){return n.a}));r.d(t,"inputType",(function(){return n.g}));r.d(t,"capitalizationType",(function(){return n.b}));r.d(t,"getCurrentPage",(function(){return n.d}));r.d(t,"getButtonColors",(function(){return n.c}));r.d(t,"getLabelColor",(function(){return n.e}));r.d(t,"getTextFieldColor",(function(){return n.f}));r.d(t,"isDialogOptions",(function(){return n.h}));r.d(t,"parseLoginOptions",(function(){return n.i}));function isString(e){return"string"==typeof e}function createAlertDialog(e){var t=new android.app.AlertDialog.Builder(i.android.foregroundActivity);t.setTitle(e&&isString(e.title)?e.title:"");t.setMessage(e&&isString(e.message)?e.message:"");e&&!1===e.cancelable&&t.setCancelable(!1);return t}function showDialog(e){var t=e.show(),r=Object(n.e)();if(r){var i=t.getContext().getResources().getIdentifier("android:id/alertTitle",null,null);if(i){var a=t.findViewById(i);a&&a.setTextColor(r.android)}var o=t.getContext().getResources().getIdentifier("android:id/message",null,null);if(o){var l=t.findViewById(o);l&&l.setTextColor(r.android)}}var{color:d,backgroundColor:p}=Object(n.c)();if(d){for(var h=[],m=0;m<3;m++){var g=t.getContext().getResources().getIdentifier("android:id/button"+m,null,null);h[m]=t.findViewById(g)}h.forEach(e=>{if(e){d&&e.setTextColor(d.android);p&&e.setBackgroundColor(p.android)}})}}function addButtonsToAlertDialog(e,t,r){if(t){t.okButtonText&&e.setPositiveButton(t.okButtonText,new android.content.DialogInterface.OnClickListener({onClick:function onClick(e,t){e.cancel();r(!0)}}));t.cancelButtonText&&e.setNegativeButton(t.cancelButtonText,new android.content.DialogInterface.OnClickListener({onClick:function onClick(e,t){e.cancel();r(!1)}}));t.neutralButtonText&&e.setNeutralButton(t.neutralButtonText,new android.content.DialogInterface.OnClickListener({onClick:function onClick(e,t){e.cancel();r(void 0)}}));e.setOnDismissListener(new android.content.DialogInterface.OnDismissListener({onDismiss:function onDismiss(){r(!1)}}))}}function alert(e){return new Promise((t,r)=>{try{var i=Object(n.h)(e)?e:{title:n.a.ALERT,okButtonText:n.a.OK,message:e+""},a=createAlertDialog(i);a.setPositiveButton(i.okButtonText,new android.content.DialogInterface.OnClickListener({onClick:function onClick(e,r){e.cancel();t()}}));a.setOnDismissListener(new android.content.DialogInterface.OnDismissListener({onDismiss:function onDismiss(){t()}}));showDialog(a)}catch(e){r(e)}})}function confirm(e){return new Promise((t,r)=>{try{var i=Object(n.h)(e)?e:{title:n.a.CONFIRM,okButtonText:n.a.OK,cancelButtonText:n.a.CANCEL,message:e+""},a=createAlertDialog(i);addButtonsToAlertDialog(a,i,(function(e){t(e)}));showDialog(a)}catch(e){r(e)}})}function prompt(e){var t,r={title:n.a.PROMPT,okButtonText:n.a.OK,cancelButtonText:n.a.CANCEL,inputType:n.g.text};if(1===arguments.length)if(isString(e)){t=r;t.message=e}else t=e;else if(2===arguments.length&&isString(arguments[0])&&isString(arguments[1])){t=r;t.message=arguments[0];t.defaultText=arguments[1]}return new Promise((e,r)=>{try{var a=createAlertDialog(t),o=new android.widget.EditText(i.android.foregroundActivity);if(t){t.inputType===n.g.password?o.setInputType(android.text.InputType.TYPE_CLASS_TEXT|android.text.InputType.TYPE_TEXT_VARIATION_PASSWORD):t.inputType===n.g.email?o.setInputType(android.text.InputType.TYPE_CLASS_TEXT|android.text.InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS):t.inputType===n.g.number?o.setInputType(android.text.InputType.TYPE_CLASS_NUMBER):t.inputType===n.g.decimal?o.setInputType(android.text.InputType.TYPE_CLASS_NUMBER|android.text.InputType.TYPE_NUMBER_FLAG_DECIMAL):t.inputType===n.g.phone&&o.setInputType(android.text.InputType.TYPE_CLASS_PHONE);switch(t.capitalizationType){case n.b.all:o.setInputType(o.getInputType()|android.text.InputType.TYPE_TEXT_FLAG_CAP_CHARACTERS);break;case n.b.sentences:o.setInputType(o.getInputType()|android.text.InputType.TYPE_TEXT_FLAG_CAP_SENTENCES);break;case n.b.words:o.setInputType(o.getInputType()|android.text.InputType.TYPE_TEXT_FLAG_CAP_WORDS)}}o.setText(t&&t.defaultText||"");a.setView(o);var l=function getText(){return o.getText().toString()};addButtonsToAlertDialog(a,t,(function(t){e({result:t,text:l()})}));showDialog(a)}catch(e){r(e)}})}function login(){for(var e=arguments.length,t=new Array(e),r=0;r{try{var r=i.android.foregroundActivity,n=createAlertDialog(a),o=new android.widget.EditText(r);o.setHint(a.userNameHint?a.userNameHint:"");o.setText(a.userName?a.userName:"");var l=new android.widget.EditText(r);l.setInputType(android.text.InputType.TYPE_CLASS_TEXT|android.text.InputType.TYPE_TEXT_VARIATION_PASSWORD);l.setTypeface(android.graphics.Typeface.DEFAULT);l.setHint(a.passwordHint?a.passwordHint:"");l.setText(a.password?a.password:"");var d=new android.widget.LinearLayout(r);d.setOrientation(1);d.addView(o);d.addView(l);n.setView(d);addButtonsToAlertDialog(n,a,(function(t){e({result:t,userName:o.getText().toString(),password:l.getText().toString()})}));showDialog(n)}catch(e){t(e)}})}function action(e){var t,r={title:null,cancelButtonText:n.a.CANCEL};if(1===arguments.length)if(isString(arguments[0])){t=r;t.message=arguments[0]}else t=arguments[0];else if(2===arguments.length){if(isString(arguments[0])&&isString(arguments[1])){t=r;t.message=arguments[0];t.cancelButtonText=arguments[1]}}else if(3===arguments.length&&isString(arguments[0])&&isString(arguments[1])&&void 0!==arguments[2]){t=r;t.message=arguments[0];t.cancelButtonText=arguments[1];t.actions=arguments[2]}return new Promise((e,r)=>{try{var n=i.android.foregroundActivity||i.android.startActivity,a=new android.app.AlertDialog.Builder(n),o=t&&isString(t.message)?t.message:"",l=t&&isString(t.title)?t.title:"";t&&!1===t.cancelable&&a.setCancelable(!1);if(l){a.setTitle(l);t.actions||a.setMessage(o)}else a.setTitle(o);t.actions&&a.setItems(t.actions,new android.content.DialogInterface.OnClickListener({onClick:function onClick(r,n){e(t.actions[n])}}));isString(t.cancelButtonText)&&a.setNegativeButton(t.cancelButtonText,new android.content.DialogInterface.OnClickListener({onClick:function onClick(r,n){r.cancel();e(t.cancelButtonText)}}));a.setOnDismissListener(new android.content.DialogInterface.OnDismissListener({onDismiss:function onDismiss(){isString(t.cancelButtonText)?e(t.cancelButtonText):e("")}}));showDialog(a)}catch(e){r(e)}})}var a={alert:alert,confirm:confirm,prompt:prompt,login:login,action:action}},function(e,t,r){"use strict";(function(e){r.d(t,"b",(function(){return getEventOrGestureName}));r.d(t,"c",(function(){return isEventOrGesture}));r.d(t,"a",(function(){return Binding}));var n=r(0),i=r(16),a=r(37),o=r(68),l=r(9),d=r(1),p=r(13),h=r(112),m=r(137),g=(r(137),/\[\s*(['"])*(\w*)\1\s*\]/),f=o.a,v=[],y={};function getProperties(e){if(!e)return v;var t=y[e];if(t)return t;var r=e.match(o.c);t=e.replace(o.c,"parentsMatch").replace(/\]/g,"").split(/\.|\[/);for(var n=0,i=0,a=t.length;i{Object(a.b)(e,i.a.propertyChangeEvent,this.onSourcePropertyChanged,this)});this.propertyChangeListeners.clear();this.source&&this.source.clear();if(this.sourceOptions){this.sourceOptions.instance.clear();this.sourceOptions=void 0}}sourceAsObject(e){var t=typeof e;"number"===t?e=new Number(e):"boolean"===t?e=new Boolean(e):"string"===t&&(e=new String(e));return e}bindingContextChanged(e){var t=this.targetOptions.instance.get();if(t){var r=e.value;null!=r?this.update(r):this.clearBinding()}else this.unbind()}bind(e){var t=this.targetOptions.instance.get();this.sourceIsBindingContext&&t instanceof i.a&&"bindingContext"!==this.targetOptions.property&&t.on("bindingContextChange",this.bindingContextChanged,this);this.update(e)}update(e){this.clearSource();e=this.sourceAsObject(e);if(p.isNullOrUndefined(e)){if(!this.sourceIsBindingContext){var t=this.getSourcePropertyValue();this.updateTarget(t||e)}}else{this.source=new WeakRef(e);this.sourceOptions=this.resolveOptions(e,this.sourceProperties);var r=this.getSourcePropertyValue();this.updateTarget(r);this.addPropertyChangeListeners(this.source,this.sourceProperties)}}unbind(){var e=this.targetOptions.instance.get();if(e instanceof i.a){this.options.twoWay&&e.off("".concat(this.targetOptions.property,"Change"),this.onTargetPropertyChanged,this);this.sourceIsBindingContext&&"bindingContext"!==this.targetOptions.property&&e.off("bindingContextChange",this.bindingContextChanged,this)}this.targetOptions&&(this.targetOptions=void 0);this.sourceProperties=void 0;this.source&&this.clearSource()}resolveObjectsAndProperties(e,t){for(var r=[],n=e,i=!1,a=0,o=t.length;a-1){o="$"+t.slice(0,n+1).join("$");for(;this.propertyChangeListeners.get(o)!==e.object;){n+=t.slice(n+1).indexOf(e.propertyName)+1;o="$"+t.slice(0,n+1).join("$")}}if(this.options.expression){var l=this._getExpressionValue(this.options.expression,!1,void 0);l instanceof Error?d.a.write(l.message,d.a.categories.Binding,d.a.messageType.error):this.updateTarget(l)}else if(n>-1){var h=t.slice(n+1),m=h.length;if(m>0){for(var g=e.value,f=0;f-1&&nn;y--){var w="$"+t.slice(0,y+1).join("$");if(this.propertyChangeListeners.has(w)){Object(a.b)(this.propertyChangeListeners.get(w),i.a.propertyChangeEvent,this.onSourcePropertyChanged,this);this.propertyChangeListeners.delete(w)}}var C=t.slice(n+1),S=e.object[t[n]];p.isNullOrUndefined(S)||"object"!=typeof S||this.addPropertyChangeListeners(new WeakRef(S),C,o)}}}prepareContextForExpression(e,t,r){var n,i,a=r||[],l=t;if(l.indexOf(f.bindingValueKey)>-1){e[f.bindingValueKey]=e;a.push(f.bindingValueKey)}var d=!0,p=l.match(o.c);if(p)for(var h=0;h-1){i=this.getParentView(this.target.get(),f.parentValueKey).view;if(i){e[f.parentValueKey]=i.bindingContext;a.push(f.parentValueKey)}else d=!1}if(!d){var m=this.target.get();m.off("loaded",this.loadedHandlerVisualTreeBinding,this);m.on("loaded",this.loadedHandlerVisualTreeBinding,this)}}getSourcePropertyValue(){if(this.options.expression){var e={};e[f.bindingValueKey]=this.source?this.source.get():void 0;var t=this._getExpressionValue(this.options.expression,!1,e);if(!(t instanceof Error))return t;d.a.write(t.message,d.a.categories.Binding,d.a.messageType.error)}if(this.sourceOptions){var r=this.sourceOptions.instance.get();if(this.sourceOptions.property===f.bindingValueKey)return r;if(r instanceof i.a&&this.sourceOptions.property&&""!==this.sourceOptions.property)return r.get(this.sourceOptions.property);if(r&&this.sourceOptions.property&&""!==this.sourceOptions.property&&this.sourceOptions.property in r)return r[this.sourceOptions.property];d.a.write("Property: '"+this.sourceOptions.property+"' is invalid or does not exist. SourceProperty: '"+this.options.sourceProperty+"'",d.a.categories.Binding,d.a.messageType.error)}return null}clearBinding(){this.clearSource();this.updateTarget(n.unsetValue)}updateTarget(e){this.updating||this.updateOptions(this.targetOptions,p.isNullOrUndefined(e)?n.unsetValue:e)}updateSource(e){!this.updating&&this.source&&this.source.get()&&this.updateOptions(this.sourceOptions,e)}getParentView(e,t){if(!e)return{view:null,index:null};var r;t===f.parentValueKey&&(r=e.parent);var n=null;if(0===t.indexOf(f.parentsValueKey)){r=e.parent;var i=g.exec(t);i&&i.length>1&&(n=i[2]);if(isNaN(n)){if(p.isString(n))for(;r&&r.typeName!==n;)r=r.parent}else for(var a=parseInt(n);a>0;){r=r.parent;a--}}return{view:r,index:n}}resolveOptions(e,t){var r=this.resolveObjectsAndProperties(e,t);if(r.length>0){var n=r[r.length-1].instance,i=r[r.length-1].property;return{instance:new WeakRef(this.sourceAsObject(n)),property:i}}return null}updateOptions(e,t){var r;e&&e.instance&&(r=e.instance.get());if(r){this.updating=!0;try{if(isEventOrGesture(e.property,r)&&p.isFunction(t)){r.off(e.property,null,r.bindingContext);r.on(e.property,t,r.bindingContext)}else r instanceof i.a?r.set(e.property,t):r[e.property]=t}catch(t){d.a.write("Binding error while setting property "+e.property+" of "+r+": "+t,d.a.categories.Binding,d.a.messageType.error)}this.updating=!1}}}}).call(this,r(20))},function(e,t,r){"use strict";(function(e){r.d(t,"e",(function(){return n}));r.d(t,"d",(function(){return i}));r.d(t,"a",(function(){return EditableTextBase}));var n,i,a,o=r(47),l=r(21),d=r(4),p=r(40);r.d(t,"b",(function(){return o.b}));r.d(t,"c",(function(){return o.c}));r.d(t,"f",(function(){return o.d}));r.d(t,"g",(function(){return o.e}));r.d(t,"h",(function(){return o.f}));r.d(t,"i",(function(){return o.g}));r.d(t,"j",(function(){return o.h}));r.d(t,"k",(function(){return o.i}));r.d(t,"l",(function(){return o.j}));function clearDismissTimer(){i=null;if(n){clearTimeout(n);n=null}}function initializeEditTextListeners(){if(!a){var t=function(t){__extends(EditTextListenersImpl,t);function EditTextListenersImpl(r){var n=t.call(this)||this;n.owner=r;return e.__native(n)}EditTextListenersImpl.prototype.beforeTextChanged=function(e,t,r,n){};EditTextListenersImpl.prototype.onTextChanged=function(e,t,r,n){};EditTextListenersImpl.prototype.afterTextChanged=function(e){var t=this.owner;if(t&&!t._changeFromCode)switch(t.updateTextTrigger){case"focusLost":t._dirtyTextAccumulator=e.toString();break;case"textChanged":l.j.nativeValueChange(t,e.toString());break;default:throw new Error("Invalid updateTextTrigger: "+t.updateTextTrigger)}};EditTextListenersImpl.prototype.onFocusChange=function(e,t){var r=this.owner;if(r)if(t){clearDismissTimer();r.notify({eventName:EditableTextBase.focusEvent,object:r})}else{if(r._dirtyTextAccumulator||""===r._dirtyTextAccumulator){l.j.nativeValueChange(r,r._dirtyTextAccumulator);r._dirtyTextAccumulator=void 0}r.notify({eventName:EditableTextBase.blurEvent,object:r});!function dismissSoftInput(e){clearDismissTimer();n||(n=setTimeout(()=>{var e=i&&i.get(),t=e&&e._context,r=e&&e.nativeViewProtected;n=null;i=null;var a=t&&t.getCurrentFocus();a&&a instanceof android.widget.EditText||p.a.dismissSoftInput(r)},10))}()}};EditTextListenersImpl.prototype.onEditorAction=function(e,t,r){var n=this.owner;if(!n)return!1;if(t===android.view.inputmethod.EditorInfo.IME_ACTION_DONE||t===android.view.inputmethod.EditorInfo.IME_ACTION_UNSPECIFIED||r&&r.getKeyCode()===android.view.KeyEvent.KEYCODE_ENTER){1===e.getMaxLines()&&n.dismissSoftInput();n._onReturnPress()}else t!==android.view.inputmethod.EditorInfo.IME_ACTION_NEXT&&t!==android.view.inputmethod.EditorInfo.IME_ACTION_PREVIOUS||n._onReturnPress();return!1};EditTextListenersImpl=__decorate([Interfaces([android.text.TextWatcher,android.view.View.OnFocusChangeListener,android.widget.TextView.OnEditorActionListener])],EditTextListenersImpl);return EditTextListenersImpl}(java.lang.Object);a=t}}class EditableTextBase extends o.a{_onReturnPress(){}createNativeView(){return new android.widget.EditText(this._context)}initNativeView(){super.initNativeView();var e=this.nativeTextViewProtected;this._configureEditText(e);initializeEditTextListeners();var t=new a(this);e.addTextChangedListener(t);e.setOnFocusChangeListener(t);e.setOnEditorActionListener(t);e.listener=t;this._inputType=e.getInputType()}disposeNativeView(){this.nativeTextViewProtected.listener.owner=null;this._keyListenerCache=null;super.disposeNativeView()}resetNativeView(){super.resetNativeView();this.nativeTextViewProtected.setInputType(this._inputType)}onUnloaded(){this.dismissSoftInput();super.onUnloaded()}dismissSoftInput(){var e=this.nativeTextViewProtected;e&&p.a.dismissSoftInput(e)}focus(){var e=this.nativeTextViewProtected;if(e){var t=super.focus();t&&p.a.showSoftInput(this.nativeTextViewProtected);return t}}_setInputType(e){var t=this.nativeTextViewProtected;try{this._changeFromCode=!0;t.setInputType(e)}finally{this._changeFromCode=!1}var r=t.getKeyListener();r&&(this._keyListenerCache=r);if(!this.editable){t.setFocusable(!1);t.setFocusableInTouchMode(!1);t.setLongClickable(!1);t.setClickable(!1)}}[l.j.getDefault](){return l.g}[l.j.setNative](e){try{this._changeFromCode=!0;this._setNativeText(e===l.g)}finally{this._changeFromCode=!1}}[o.f.getDefault](){return this.nativeTextViewProtected.getInputType()}[o.f.setNative](e){var t;switch(e){case"datetime":t=android.text.InputType.TYPE_CLASS_DATETIME|android.text.InputType.TYPE_DATETIME_VARIATION_NORMAL;break;case"phone":t=android.text.InputType.TYPE_CLASS_PHONE;break;case"number":t=android.text.InputType.TYPE_CLASS_NUMBER|android.text.InputType.TYPE_NUMBER_VARIATION_NORMAL|android.text.InputType.TYPE_NUMBER_FLAG_SIGNED|android.text.InputType.TYPE_NUMBER_FLAG_DECIMAL;break;case"url":t=android.text.InputType.TYPE_CLASS_TEXT|android.text.InputType.TYPE_TEXT_VARIATION_URI;break;case"email":t=android.text.InputType.TYPE_CLASS_TEXT|android.text.InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS;break;case"integer":t=android.text.InputType.TYPE_CLASS_NUMBER;break;default:t=e}this._setInputType(t)}[o.i.getDefault](){var e=this.nativeTextViewProtected.getImeOptions();switch(e){case android.view.inputmethod.EditorInfo.IME_ACTION_DONE:return"done";case android.view.inputmethod.EditorInfo.IME_ACTION_GO:return"go";case android.view.inputmethod.EditorInfo.IME_ACTION_NEXT:return"next";case android.view.inputmethod.EditorInfo.IME_ACTION_SEARCH:return"search";case android.view.inputmethod.EditorInfo.IME_ACTION_SEND:return"send";default:return e.toString()}}[o.i.setNative](e){var t;switch(e){case"done":t=android.view.inputmethod.EditorInfo.IME_ACTION_DONE;break;case"go":t=android.view.inputmethod.EditorInfo.IME_ACTION_GO;break;case"next":t=android.view.inputmethod.EditorInfo.IME_ACTION_NEXT;break;case"search":t=android.view.inputmethod.EditorInfo.IME_ACTION_SEARCH;break;case"send":t=android.view.inputmethod.EditorInfo.IME_ACTION_SEND;break;default:var r=+e;t=isNaN(r)?android.view.inputmethod.EditorInfo.IME_ACTION_UNSPECIFIED:r}this.nativeTextViewProtected.setImeOptions(t)}[o.d.setNative](e){var t=this.nativeTextViewProtected;if(e)t.setKeyListener(this._keyListenerCache);else{this._keyListenerCache||(this._keyListenerCache=t.getKeyListener());t.setKeyListener(null)}}[o.b.getDefault](){var e=this.nativeTextViewProtected.getInputType();return(e&android.text.InputType.TYPE_TEXT_FLAG_CAP_WORDS)===android.text.InputType.TYPE_TEXT_FLAG_CAP_WORDS?"words":(e&android.text.InputType.TYPE_TEXT_FLAG_CAP_SENTENCES)===android.text.InputType.TYPE_TEXT_FLAG_CAP_SENTENCES?"sentences":(e&android.text.InputType.TYPE_TEXT_FLAG_CAP_CHARACTERS)===android.text.InputType.TYPE_TEXT_FLAG_CAP_CHARACTERS?"allcharacters":e.toString()}[o.b.setNative](e){var t=this.nativeTextViewProtected.getInputType();t&=-28673;switch(e){case"none":break;case"words":t|=android.text.InputType.TYPE_TEXT_FLAG_CAP_WORDS;break;case"sentences":t|=android.text.InputType.TYPE_TEXT_FLAG_CAP_SENTENCES;break;case"allcharacters":t|=android.text.InputType.TYPE_TEXT_FLAG_CAP_CHARACTERS;break;default:var r=+e;isNaN(r)?t|=android.text.InputType.TYPE_TEXT_FLAG_CAP_SENTENCES:t=r}this._setInputType(t)}[o.c.getDefault](){var e=this.nativeTextViewProtected.getInputType();return(e&android.text.InputType.TYPE_TEXT_FLAG_AUTO_CORRECT)===android.text.InputType.TYPE_TEXT_FLAG_AUTO_CORRECT}[o.c.setNative](e){var t=this.nativeTextViewProtected.getInputType();switch(e){case!0:t|=android.text.InputType.TYPE_TEXT_FLAG_AUTO_COMPLETE;t|=android.text.InputType.TYPE_TEXT_FLAG_AUTO_CORRECT;t&=~android.text.InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS;break;case!1:t&=~android.text.InputType.TYPE_TEXT_FLAG_AUTO_COMPLETE;t&=~android.text.InputType.TYPE_TEXT_FLAG_AUTO_CORRECT;t|=android.text.InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS}this._setInputType(t)}[o.e.getDefault](){return this.nativeTextViewProtected.getHint()}[o.e.setNative](e){var t=null==e?null:e.toString();this.nativeTextViewProtected.setHint(t)}[o.h.getDefault](){return this.nativeTextViewProtected.getHintTextColors()}[o.h.setNative](e){var t=e instanceof d.a?e.android:e;this.nativeTextViewProtected.setHintTextColor(t)}[l.k.setNative](e){}[o.g.setNative](e){if(e===Number.POSITIVE_INFINITY)this.nativeTextViewProtected.setFilters([]);else{for(var t=new android.text.InputFilter.LengthFilter(e),r=this.nativeTextViewProtected.getFilters(),n=[],i=0;i{if(!t)throw new Error("More than one layout child inside a ContentView");t=!1;e=r})}return e}get _childrenCount(){return this._content?1:0}_onContentChanged(e,t){}_addChildFromBuilder(e,t){t instanceof n.c&&(this.content=t)}eachChildView(e){var t=this._content;t&&e(t)}onMeasure(e,t){var r=n.c.measureChild(this,this.layoutView,e,t),a=i.n.getMeasureSpecSize(e),o=i.n.getMeasureSpecMode(e),l=i.n.getMeasureSpecSize(t),d=i.n.getMeasureSpecMode(t),p=Math.max(r.measuredWidth,this.effectiveMinWidth),h=Math.max(r.measuredHeight,this.effectiveMinHeight),m=n.c.resolveSizeAndState(p,a,o,0),g=n.c.resolveSizeAndState(h,l,d,0);this.setMeasuredDimension(m,g)}onLayout(e,t,r,i){n.c.layoutChild(this,this.layoutView,0,0,r-e,i-t)}}ContentView.prototype.recycleNativeView="auto"},function(e,t,r){"use strict";r.d(t,"b",(function(){return ItemSpec}));r.d(t,"a",(function(){return GridLayout}));var n=r(65),i=r(5),a=r(9);function makeNativeSetter(e){return function(t){var r=this.nativeViewProtected,n=r.getLayoutParams()||new org.nativescript.widgets.CommonLayoutParams;if(n instanceof org.nativescript.widgets.CommonLayoutParams){e(n,t);r.setLayoutParams(n)}}}i.c.prototype[n.f.setNative]=makeNativeSetter((e,t)=>e.row=t);i.c.prototype[n.d.setNative]=makeNativeSetter((e,t)=>e.column=t);i.c.prototype[n.g.setNative]=makeNativeSetter((e,t)=>e.rowSpan=t);i.c.prototype[n.e.setNative]=makeNativeSetter((e,t)=>e.columnSpan=t);function createNativeSpec(e){switch(e.gridUnitType){case n.b.AUTO:return new org.nativescript.widgets.ItemSpec(e.value,org.nativescript.widgets.GridUnitType.auto);case n.b.STAR:return new org.nativescript.widgets.ItemSpec(e.value,org.nativescript.widgets.GridUnitType.star);case n.b.PIXEL:return new org.nativescript.widgets.ItemSpec(e.value*a.n.getDisplayDensity(),org.nativescript.widgets.GridUnitType.pixel);default:throw new Error("Invalid gridUnitType: "+e.gridUnitType)}}class ItemSpec extends n.c{get actualLength(){return this.nativeSpec?Math.round(this.nativeSpec.getActualLength()/a.n.getDisplayDensity()):0}}class GridLayout extends n.a{createNativeView(){return new org.nativescript.widgets.GridLayout(this._context)}initNativeView(){super.initNativeView();this.rowsInternal.forEach((e,t,r)=>{this._onRowAdded(e)},this);this.columnsInternal.forEach((e,t,r)=>{this._onColumnAdded(e)},this)}resetNativeView(){for(var e=this.rowsInternal.length;e--;e>=0){var t=this.rowsInternal[e];this._onRowRemoved(t,e)}for(var r=this.columnsInternal.length;r--;r>=0){var n=this.columnsInternal[r];this._onColumnRemoved(n,r)}super.resetNativeView()}_onRowAdded(e){if(this.nativeViewProtected){var t=createNativeSpec(e);e.nativeSpec=t;this.nativeViewProtected.addRow(t)}}_onColumnAdded(e){if(this.nativeViewProtected){var t=createNativeSpec(e);e.nativeSpec=t;this.nativeViewProtected.addColumn(t)}}_onRowRemoved(e,t){e.nativeSpec=null;this.nativeViewProtected&&this.nativeViewProtected.removeRowAt(t)}_onColumnRemoved(e,t){e.nativeSpec=null;this.nativeViewProtected&&this.nativeViewProtected.removeColumnAt(t)}invalidate(){}}},function(e,t,r){var n=r(15),i=n.TYPE,a=i.WhiteSpace,o=i.Semicolon,l=i.LeftCurlyBracket,d=i.Delim;function getOffsetExcludeWS(){return this.scanner.tokenIndex>0&&this.scanner.lookupType(-1)===a?this.scanner.tokenIndex>1?this.scanner.getTokenStart(this.scanner.tokenIndex-1):this.scanner.firstCharOffset:this.scanner.tokenStart}function balanceEnd(){return 0}e.exports={name:"Raw",structure:{value:String},parse:function parse(e,t,r){var n,i=this.scanner.getTokenStart(e);this.scanner.skip(this.scanner.getRawLength(e,t||balanceEnd));n=r&&this.scanner.tokenStart>i?getOffsetExcludeWS.call(this):this.scanner.tokenStart;return{type:"Raw",loc:this.getLocation(i,n),value:this.scanner.source.substring(i,n)}},generate:function generate(e){this.chunk(e.value)},mode:{default:balanceEnd,leftCurlyBracket:function leftCurlyBracket(e){return e===l?1:0},leftCurlyBracketOrSemicolon:function leftCurlyBracketOrSemicolon(e){return e===l||e===o?1:0},exclamationMarkOrSemicolon:function exclamationMarkOrSemicolon(e,t,r){return e===d&&33===t.charCodeAt(r)||e===o?1:0},semicolonIncluded:function semicolonIncluded(e){return e===o?2:0}}}},function(e,t,r){"use strict";r.r(t);(function(e){r.d(t,"Button",(function(){return Button}));var n=r(110),i=r(19),a=r(2),o=r(21),l=r(6),d=r(14),p=r(18),h=r(49);r.d(t,"ButtonBase",(function(){return n.a}));var m,g,f,v=Object(h.a)(()=>parseInt(p.a.sdkVersion));class Button extends n.a{constructor(){super();g||(g=android.os.Build.VERSION.SDK_INT)}createNativeView(){f||(f=android.widget.Button);return new f(this._context)}initNativeView(){super.initNativeView();var t=this.nativeViewProtected;!function initializeClickListener(){if(!m){var t=function(t){__extends(ClickListenerImpl,t);function ClickListenerImpl(r){var n=t.call(this)||this;n.owner=r;return e.__native(n)}ClickListenerImpl.prototype.onClick=function(e){var t=this.owner;t&&t._emit(n.a.tapEvent)};ClickListenerImpl=__decorate([Interfaces([android.view.View.OnClickListener])],ClickListenerImpl);return ClickListenerImpl}(java.lang.Object);m=t}}();var r=new m(this);t.setOnClickListener(r);t.clickListener=r}disposeNativeView(){this.nativeViewProtected&&(this.nativeViewProtected.clickListener.owner=null);super.disposeNativeView()}resetNativeView(){super.resetNativeView();if(this._stateListAnimator&&g>=21){this.nativeViewProtected.setStateListAnimator(this._stateListAnimator);this._stateListAnimator=void 0}}_updateButtonStateChangeHandler(e){if(e){this._highlightedHandler=this._highlightedHandler||(e=>{switch(e.action){case d.e.up:case d.e.cancel:this._goToVisualState("normal");break;case d.e.down:this._goToVisualState("highlighted")}});this.on(d.b.touch,this._highlightedHandler)}else this.off(d.b.touch,this._highlightedHandler)}[a.minWidthProperty.getDefault](){var e=org.nativescript.widgets.ViewHelper.getMinWidth(this.nativeViewProtected);return{value:e,unit:"px"}}[a.minHeightProperty.getDefault](){var e=org.nativescript.widgets.ViewHelper.getMinHeight(this.nativeViewProtected);return{value:e,unit:"px"}}[a.paddingTopProperty.getDefault](){return{value:this._defaultPaddingTop,unit:"px"}}[a.paddingTopProperty.setNative](e){org.nativescript.widgets.ViewHelper.setPaddingTop(this.nativeViewProtected,a.Length.toDevicePixels(e,0)+a.Length.toDevicePixels(this.style.borderTopWidth,0))}[a.paddingRightProperty.getDefault](){return{value:this._defaultPaddingRight,unit:"px"}}[a.paddingRightProperty.setNative](e){org.nativescript.widgets.ViewHelper.setPaddingRight(this.nativeViewProtected,a.Length.toDevicePixels(e,0)+a.Length.toDevicePixels(this.style.borderRightWidth,0))}[a.paddingBottomProperty.getDefault](){return{value:this._defaultPaddingBottom,unit:"px"}}[a.paddingBottomProperty.setNative](e){org.nativescript.widgets.ViewHelper.setPaddingBottom(this.nativeViewProtected,a.Length.toDevicePixels(e,0)+a.Length.toDevicePixels(this.style.borderBottomWidth,0))}[a.paddingLeftProperty.getDefault](){return{value:this._defaultPaddingLeft,unit:"px"}}[a.paddingLeftProperty.setNative](e){org.nativescript.widgets.ViewHelper.setPaddingLeft(this.nativeViewProtected,a.Length.toDevicePixels(e,0)+a.Length.toDevicePixels(this.style.borderLeftWidth,0))}[a.zIndexProperty.setNative](e){if(g>=21){var t=this.nativeViewProtected;this._stateListAnimator||(this._stateListAnimator=t.getStateListAnimator());t.setStateListAnimator(null)}org.nativescript.widgets.ViewHelper.setZIndex(this.nativeViewProtected,e)}[o.h.setNative](e){var t="initial"===e?"center":e;super[o.h.setNative](t)}getDefaultElevation(){return v()<21?0:2}getDefaultDynamicElevationOffset(){return v()<21?0:4}}__decorate([l.f,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],Button.prototype,"createNativeView",null);__decorate([Object(i.b)("normal","highlighted","pressed","active"),__metadata("design:type",Function),__metadata("design:paramtypes",[Boolean]),__metadata("design:returntype",void 0)],Button.prototype,"_updateButtonStateChangeHandler",null);Button.prototype._ignoreFlexMinWidthHeightReset=!0}).call(this,r(20))},function(e,t,r){"use strict";r.r(t);r.d(t,"HttpResponseEncoding",(function(){return n}));r.d(t,"getString",(function(){return getString}));r.d(t,"getJSON",(function(){return getJSON}));r.d(t,"getImage",(function(){return getImage}));r.d(t,"getFile",(function(){return getFile}));r.d(t,"getBinary",(function(){return getBinary}));var n,i=r(85);r.d(t,"request",(function(){return i.b}));r.d(t,"addHeader",(function(){return i.a}));!function(e){e[e.UTF8=0]="UTF8";e[e.GBK=1]="GBK"}(n||(n={}));function getString(e){return new Promise((t,r)=>{i.b("string"==typeof e?{url:e,method:"GET"}:e).then(e=>{try{var n=e.content.toString();t(n)}catch(e){r(e)}},e=>r(e))})}function getJSON(e){return new Promise((t,r)=>{i.b("string"==typeof e?{url:e,method:"GET"}:e).then(e=>{try{var n=e.content.toJSON();t(n)}catch(e){r(e)}},e=>r(e))})}function getImage(e){return new Promise((t,r)=>{i.b("string"==typeof e?{url:e,method:"GET"}:e).then(e=>{try{t(e.content.toImage())}catch(e){r(e)}},e=>{r(e)})})}function getFile(e,t){return new Promise((r,n)=>{i.b("string"==typeof e?{url:e,method:"GET"}:e).then(e=>{try{var i=e.content.toFile(t);r(i)}catch(e){n(e)}},e=>n(e))})}function getBinary(e){return new Promise((t,r)=>{i.b("string"==typeof e?{url:e,method:"GET"}:e).then(e=>{try{var n=e.content.toArrayBuffer();t(n)}catch(e){r(e)}},e=>r(e))})}},function(e,t){function createItem(e){return{prev:null,next:null,data:e}}function allocateCursor(e,t,n){var i;if(null!==r){i=r;r=r.cursor;i.prev=t;i.next=n;i.cursor=e.cursor}else i={prev:t,next:n,cursor:e.cursor};e.cursor=i;return i}function releaseCursor(e){var t=e.cursor;e.cursor=t.cursor;t.prev=null;t.next=null;t.cursor=r;r=t}var r=null,n=function List(){this.cursor=null;this.head=null;this.tail=null};n.createItem=createItem;n.prototype.createItem=createItem;n.prototype.updateCursors=function(e,t,r,n){for(var i=this.cursor;null!==i;){i.prev===e&&(i.prev=t);i.next===r&&(i.next=n);i=i.cursor}};n.prototype.getSize=function(){for(var e=0,t=this.head;t;){e++;t=t.next}return e};n.prototype.fromArray=function(e){var t=null;this.head=null;for(var r=0;r2&&void 0!==arguments[2]&&arguments[2];return n=>{n.prototype.specificity=e;n.prototype.rarity=t;n.prototype.combinator=void 0;n.prototype.dynamic=r;return n}}var o=class SelectorCore{lookupSort(e,t){e.sortAsUniversal(t||this)}};o=__decorate([SelectorProperties(0,0,n.Static)],o);class SimpleSelector extends o{accumulateChanges(e,t){if(!this.dynamic)return this.match(e);if(this.mayMatch(e)){this.trackChanges(e,t);return!0}return!1}mayMatch(e){return this.match(e)}trackChanges(e,t){}}function wrap(e){return e?" ".concat(e," "):""}var l=class InvalidSelector extends SimpleSelector{constructor(e){super();this.e=e}toString(){return"")}match(e){return!1}lookupSort(e,t){}};l=__decorate([SelectorProperties(0,4,n.Static),__metadata("design:paramtypes",[Error])],l);var d=class UniversalSelector extends SimpleSelector{toString(){return"*".concat(wrap(this.combinator))}match(e){return!0}};d=__decorate([SelectorProperties(0,0,n.Static)],d);var p=class IdSelector extends SimpleSelector{constructor(e){super();this.id=e}toString(){return"#".concat(this.id).concat(wrap(this.combinator))}match(e){return e.id===this.id}lookupSort(e,t){e.sortById(this.id,t||this)}};p=__decorate([SelectorProperties(100,3,n.Static),__metadata("design:paramtypes",[String])],p);var h=class TypeSelector extends SimpleSelector{constructor(e){super();this.cssType=e}toString(){return"".concat(this.cssType).concat(wrap(this.combinator))}match(e){return e.cssType===this.cssType}lookupSort(e,t){e.sortByType(this.cssType,t||this)}};h=__decorate([SelectorProperties(1,1,n.Static),__metadata("design:paramtypes",[String])],h);var m=class ClassSelector extends SimpleSelector{constructor(e){super();this.cssClass=e}toString(){return".".concat(this.cssClass).concat(wrap(this.combinator))}match(e){return e.cssClasses&&e.cssClasses.has(this.cssClass)}lookupSort(e,t){e.sortByClass(this.cssClass,t||this)}};m=__decorate([SelectorProperties(10,2,n.Static),__metadata("design:paramtypes",[String])],m);var g=class AttributeSelector extends SimpleSelector{constructor(e,t,r){super();this.attribute=e;this.test=t;this.value=r;if(t){r||(this.match=e=>!1);this.match=n=>{var i=n[e]+"";if("="===t)return i===r;if("^="===t)return i.startsWith(r);if("$="===t)return i.endsWith(r);if("*="===t)return-1!==i.indexOf(r);if("~="===t){var a=i.split(" ");return a&&-1!==a.indexOf(r)}return"|="===t?i===r||i.startsWith(r+"-"):void 0}}else this.match=t=>!Object(i.isNullOrUndefined)(t[e])}toString(){return"[".concat(this.attribute).concat(wrap(this.test)).concat(this.test&&this.value||"","]").concat(wrap(this.combinator))}match(e){return!1}mayMatch(e){return!0}trackChanges(e,t){t.addAttribute(e,this.attribute)}};g=__decorate([SelectorProperties(10,0,n.Dynamic),__metadata("design:paramtypes",[String,String,String])],g);var f=class PseudoClassSelector extends SimpleSelector{constructor(e){super();this.cssPseudoClass=e}toString(){return":".concat(this.cssPseudoClass).concat(wrap(this.combinator))}match(e){return e.cssPseudoClasses&&e.cssPseudoClasses.has(this.cssPseudoClass)}mayMatch(e){return!0}trackChanges(e,t){t.addPseudoClass(e,this.cssPseudoClass)}};f=__decorate([SelectorProperties(10,0,n.Dynamic),__metadata("design:paramtypes",[String])],f);class SimpleSelectorSequence extends SimpleSelector{constructor(e){super();this.selectors=e;this.specificity=e.reduce((e,t)=>t.specificity+e,0);this.head=this.selectors.reduce((e,t)=>!e||t.rarity>e.rarity?t:e,null);this.dynamic=e.some(e=>e.dynamic)}toString(){return"".concat(this.selectors.join("")).concat(wrap(this.combinator))}match(e){return this.selectors.every(t=>t.match(e))}mayMatch(e){return this.selectors.every(t=>t.mayMatch(e))}trackChanges(e,t){this.selectors.forEach(r=>r.trackChanges(e,t))}lookupSort(e,t){this.head.lookupSort(e,t||this)}}class Selector extends o{constructor(e){super();this.selectors=e;var t,r,n=[void 0," ",">","+"],i=[];this.specificity=0;this.dynamic=!1;for(var a=e.length-1;a>-1;a--){var o=e[a];if(-1===n.indexOf(o.combinator))throw new Error('Unsupported combinator "'.concat(o.combinator,'".'));void 0!==o.combinator&&" "!==o.combinator||i.push(r=[t=[]]);">"===o.combinator&&r.push(t=[]);this.specificity+=o.specificity;o.dynamic&&(this.dynamic=!0);t.push(o)}this.groups=i.map(e=>new Selector.ChildGroup(e.map(e=>new Selector.SiblingGroup(e))));this.last=e[e.length-1]}toString(){return this.selectors.join("")}match(e){return this.groups.every((t,r)=>{if(0===r){e=t.match(e);return!!e}for(var n=e;n=n.parent;)if(e=t.match(n))return!0;return!1})}lookupSort(e,t){this.last.lookupSort(e,this)}accumulateChanges(e,t){if(!this.dynamic)return this.match(e);var r=[],n=this.groups.every((t,n)=>{if(0===n){var i=t.mayMatch(e);r.push({left:e,right:e});e=i;return!!e}for(var a=e;a=a.parent;){var o=t.mayMatch(a);if(o){r.push({left:a,right:null});e=o;return!0}}return!1});if(!n)return!1;if(!t)return n;for(var i=0;ie.dynamic)}match(e){return this.selectors.every((t,r)=>(e=0===r?e:e.parent)&&t.match(e))?e:null}mayMatch(e){return this.selectors.every((t,r)=>(e=0===r?e:e.parent)&&t.mayMatch(e))?e:null}trackChanges(e,t){this.selectors.forEach((r,n)=>(e=0===n?e:e.parent)&&r.trackChanges(e,t))}};e.SiblingGroup=class SiblingGroup{constructor(e){this.selectors=e;this.dynamic=e.some(e=>e.dynamic)}match(e){return this.selectors.every((t,r)=>(e=0===r?e:getNodeDirectSibling(e))&&t.match(e))?e:null}mayMatch(e){return this.selectors.every((t,r)=>(e=0===r?e:getNodeDirectSibling(e))&&t.mayMatch(e))?e:null}trackChanges(e,t){this.selectors.forEach((r,n)=>(e=0===n?e:getNodeDirectSibling(e))&&r.trackChanges(e,t))}}}(Selector||(Selector={}));class RuleSet{constructor(e,t){this.selectors=e;this.declarations=t;this.selectors.forEach(e=>e.ruleset=this)}toString(){return"".concat(this.selectors.join(", ")," {").concat(this.declarations.map((e,t)=>"".concat(0===t?" ":"").concat(e.property,": ").concat(e.value)).join("; ")," }")}lookupSort(e){this.selectors.forEach(t=>t.lookupSort(e))}}function fromAstNodes(e){return e.filter(isRule).map(e=>{var t=e.declarations.filter(isDeclaration).map(createDeclaration),r=e.selectors.map(createSelector);return new RuleSet(r,t)})}function createDeclaration(e){return{property:e.property.toLowerCase(),value:e.value}}function createSimpleSelectorFromAst(e){return"."===e.type?new m(e.identifier):""===e.type?new h(e.identifier.replace("-","").toLowerCase()):"#"===e.type?new p(e.identifier):"[]"===e.type?new g(e.property,e.test,e.test&&e.value):":"===e.type?new f(e.identifier):"*"===e.type?new d:void 0}function createSimpleSelectorSequenceFromAst(e){return 0===e.length?new l(new Error("Empty simple selector sequence.")):1===e.length?createSimpleSelectorFromAst(e[0]):new SimpleSelectorSequence(e.map(createSimpleSelectorFromAst))}function createSelector(e){try{var t=a.parseSelector(e);return t?function createSelectorFromAst(e){if(0===e.length)return new l(new Error("Empty selector."));if(1===e.length)return createSimpleSelectorSequenceFromAst(e[0][0]);for(var t,r,n=[],i=0;ie.lookupSort(this))}query(e){var t=new SelectorsMatch,{cssClasses:r,id:n,cssType:i}=e,a=[this.universal,this.id[n],this.type[i]];r&&r.size&&r.forEach(e=>a.push(this.class[e]));var o=a.reduce((e,t)=>e.concat(t||[]),[]);t.selectors=o.filter(r=>r.accumulateChanges(e,t)).sort((e,t)=>e.specificity-t.specificity||e.pos-t.pos);return t}sortById(e,t){this.addToMap(this.id,e,t)}sortByClass(e,t){this.addToMap(this.class,e,t)}sortByType(e,t){this.addToMap(this.type,e,t)}sortAsUniversal(e){this.universal.push(this.makeDocSelector(e))}addToMap(e,t,r){e[t]||(e[t]=[]);e[t].push(this.makeDocSelector(r))}makeDocSelector(e){e.pos=this.position++;return e}}class SelectorsMatch{constructor(){this.changeMap=new Map}addAttribute(e,t){var r=this.properties(e);r.attributes||(r.attributes=new Set);r.attributes.add(t)}addPseudoClass(e,t){var r=this.properties(e);r.pseudoClasses||(r.pseudoClasses=new Set);r.pseudoClasses.add(t)}properties(e){var t=this.changeMap.get(e);t||this.changeMap.set(e,t={});return t}}var v={createSelector:createSelector,SelectorCore:o,SimpleSelector:SimpleSelector,InvalidSelector:l,UniversalSelector:d,TypeSelector:h,ClassSelector:m,AttributeSelector:g,PseudoClassSelector:f,SimpleSelectorSequence:SimpleSelectorSequence,Selector:Selector,RuleSet:RuleSet,SelectorsMap:SelectorsMap,fromAstNodes:fromAstNodes,SelectorsMatch:SelectorsMatch}},function(e,t,r){"use strict";r.d(t,"a",(function(){return ViewHelper}));var n=r(9),i=r(1);class ViewHelper{static measureChild(e,t,r,a){var o=0,l=0;if(t&&!t.isCollapsed){var d=e?e._currentWidthMeasureSpec:r,p=e?e._currentHeightMeasureSpec:a,h=n.n.getMeasureSpecSize(d),m=n.n.getMeasureSpecMode(d),g=n.n.getMeasureSpecSize(p),f=n.n.getMeasureSpecMode(p);t._updateEffectiveLayoutValues(h,m,g,f);var v=t.style,y=t.effectiveMarginLeft+t.effectiveMarginRight,w=t.effectiveMarginTop+t.effectiveMarginBottom,C=ViewHelper.getMeasureSpec(r,y,t.effectiveWidth,"stretch"===v.horizontalAlignment),S=ViewHelper.getMeasureSpec(a,w,t.effectiveHeight,"stretch"===v.verticalAlignment);i.a.isEnabled()&&i.a.write("".concat(t.parent," :measureChild: ").concat(t," ").concat(n.n.measureSpecToString(C),", ").concat(n.n.measureSpecToString(S),"}"),i.a.categories.Layout);t.measure(C,S);o=Math.round(t.getMeasuredWidth()+y);l=Math.round(t.getMeasuredHeight()+w)}return{measuredWidth:o,measuredHeight:l}}static layoutChild(e,t,r,n,a,o){var l=!(arguments.length>6&&void 0!==arguments[6])||arguments[6];if(t&&!t.isCollapsed){var d,p,h,m=t.style,g=t.getMeasuredWidth(),f=t.getMeasuredHeight(),v=t.effectiveMarginTop,y=t.effectiveMarginBottom;h=t.effectiveHeight>=0&&"stretch"===m.verticalAlignment?"middle":m.verticalAlignment;switch(h){case"top":d=n+v;break;case"middle":d=n+(o-n-f+(v-y))/2;break;case"bottom":d=o-f-y;break;case"stretch":default:d=n+v;f=o-n-(v+y)}var w,C=t.effectiveMarginLeft,S=t.effectiveMarginRight;w=t.effectiveWidth>=0&&"stretch"===m.horizontalAlignment?"center":m.horizontalAlignment;switch(w){case"left":p=r+C;break;case"center":p=r+(a-r-g+(C-S))/2;break;case"right":p=a-g-S;break;case"stretch":default:p=r+C;g=a-r-(C+S)}var b=Math.round(p+g),x=Math.round(d+f);p=Math.round(p);d=Math.round(d);i.a.isEnabled()&&i.a.write(t.parent+" :layoutChild: "+t+" "+p+", "+d+", "+b+", "+x,i.a.categories.Layout);t.layout(p,d,b,x,l)}}static resolveSizeAndState(e,t,r,i){var a=e;switch(r){case n.n.UNSPECIFIED:a=Math.ceil(e);break;case n.n.AT_MOST:t=0){a=d===n.n.UNSPECIFIED?r:Math.min(l,r);o=n.n.EXACTLY}else switch(d){case n.n.EXACTLY:a=Math.max(0,l-t);o=i?n.n.EXACTLY:n.n.AT_MOST;break;case n.n.AT_MOST:a=Math.max(0,l-t);o=n.n.AT_MOST;break;case n.n.UNSPECIFIED:a=0;o=n.n.UNSPECIFIED}return n.n.makeMeasureSpec(a,o)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return check}));r.d(t,"b",(function(){return request}));var n=r(8),i=r(56);function asyncGeneratorStep(e,t,r,n,i,a,o){try{var l=e[a](o),d=l.value}catch(e){r(e);return}l.done?t(d):Promise.resolve(d).then(n,i)}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function _next(e){asyncGeneratorStep(a,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(a,n,i,_next,_throw,"throw",e)}_next(void 0)}))}}var a,o,l={get location(){return android.Manifest.permission.ACCESS_FINE_LOCATION},get camera(){return android.Manifest.permission.CAMERA},get microphone(){return android.Manifest.permission.RECORD_AUDIO},get contacts(){return android.Manifest.permission.READ_CONTACTS},get event(){return android.Manifest.permission.READ_CALENDAR},get storage(){return[android.Manifest.permission.WRITE_EXTERNAL_STORAGE,android.Manifest.permission.READ_EXTERNAL_STORAGE]},get photo(){return android.Manifest.permission.WRITE_EXTERNAL_STORAGE},get callPhone(){return android.Manifest.permission.CALL_PHONE},get readSms(){return android.Manifest.permission.READ_SMS},get receiveSms(){return android.Manifest.permission.RECEIVE_SMS}};!function(e){e.GRANTED="authorized";e.DENIED="denied";e.NEVER_ASK_AGAIN="never_ask_again"}(a||(a={}));!function(e){e.PERMISSIONS={READ_CALENDAR:"android.permission.READ_CALENDAR",WRITE_CALENDAR:"android.permission.WRITE_CALENDAR",CAMERA:"android.permission.CAMERA",READ_CONTACTS:"android.permission.READ_CONTACTS",WRITE_CONTACTS:"android.permission.WRITE_CONTACTS",GET_ACCOUNTS:"android.permission.GET_ACCOUNTS",ACCESS_FINE_LOCATION:"android.permission.ACCESS_FINE_LOCATION",ACCESS_COARSE_LOCATION:"android.permission.ACCESS_COARSE_LOCATION",RECORD_AUDIO:"android.permission.RECORD_AUDIO",READ_PHONE_STATE:"android.permission.READ_PHONE_STATE",CALL_PHONE:"android.permission.CALL_PHONE",READ_CALL_LOG:"android.permission.READ_CALL_LOG",WRITE_CALL_LOG:"android.permission.WRITE_CALL_LOG",ADD_VOICEMAIL:"com.android.voicemail.permission.ADD_VOICEMAIL",USE_SIP:"android.permission.USE_SIP",PROCESS_OUTGOING_CALLS:"android.permission.PROCESS_OUTGOING_CALLS",BODY_SENSORS:"android.permission.BODY_SENSORS",SEND_SMS:"android.permission.SEND_SMS",RECEIVE_SMS:"android.permission.RECEIVE_SMS",READ_SMS:"android.permission.READ_SMS",RECEIVE_WAP_PUSH:"android.permission.RECEIVE_WAP_PUSH",RECEIVE_MMS:"android.permission.RECEIVE_MMS",READ_EXTERNAL_STORAGE:"android.permission.READ_EXTERNAL_STORAGE",WRITE_EXTERNAL_STORAGE:"android.permission.WRITE_EXTERNAL_STORAGE"};e.RESULTS={GRANTED:"authorized",DENIED:"denied",NEVER_ASK_AGAIN:"never_ask_again"};e.check=function check(e){var t=n.android.foregroundActivity||n.android.startActivity;return android.os.Build.VERSION.SDK_INT<23?Promise.resolve(t.checkPermission(e,android.os.Process.myPid(),android.os.Process.myUid())===android.content.pm.PackageManager.PERMISSION_GRANTED):Promise.resolve(t.checkSelfPermission(e)===android.content.pm.PackageManager.PERMISSION_GRANTED)};function _request(){_request=_asyncToGenerator((function*(e,t){return requestPermission(e)}));return _request.apply(this,arguments)}e.request=function request(e,t){return _request.apply(this,arguments)};e.requestMultiple=function requestMultiple(e){return requestMultiplePermissions(e)}}(o||(o={}));var d=0;function requestPermission(e){var t=n.android.foregroundActivity||n.android.startActivity;return android.os.Build.VERSION.SDK_INT<23?Promise.resolve(t.checkPermission(e,android.os.Process.myPid(),android.os.Process.myUid())===android.content.pm.PackageManager.PERMISSION_GRANTED?a.GRANTED:a.DENIED):t.checkSelfPermission(e)===android.content.pm.PackageManager.PERMISSION_GRANTED?Promise.resolve(a.GRANTED):new Promise((r,i)=>{try{var o=d++;t.requestPermissions([e],o);n.android.on(n.AndroidApplication.activityRequestPermissionsEvent,n=>{n.requestCode===o&&(n.grantResults.length>0&&n.grantResults[0]===android.content.pm.PackageManager.PERMISSION_GRANTED?r(a.GRANTED):t.shouldShowRequestPermissionRationale(e)?r(a.DENIED):r(a.NEVER_ASK_AGAIN))})}catch(e){i(e)}})}function requestMultiplePermissions(e){for(var t={},r=[],i=0,o=n.android.foregroundActivity||n.android.startActivity,l=0;l{try{var o=d++;h.requestPermissions(r,o);n.android.on(n.AndroidApplication.activityRequestPermissionsEvent,n=>{if(n.requestCode===o){for(var i=n.grantResults,l=0;ll&&i[l]===android.content.pm.PackageManager.PERMISSION_GRANTED?t[d]=a.GRANTED:h.shouldShowRequestPermissionRationale(d)?t[d]=a.DENIED:t[d]=a.NEVER_ASK_AGAIN}e(t)}})}catch(e){i(e)}})}function check(e,t){if(!l[e]){console.warn("@nativescript-community/perms: ".concat(e," is not a valid permission type on Android"));return Promise.resolve(["authorized",!0])}return o.check(l[e]).then(t=>t?Promise.resolve(["authorized",!0]):(e=>Promise.resolve(!!Object(i.d)("@NSPermissions:didAskPermission:"+e)))(e).then(t=>t?function shouldShowRequestPermissionRationale(e){if(android.os.Build.VERSION.SDK_INT<23)return Promise.resolve(!1);var t=n.android.foregroundActivity||n.android.startActivity;try{return Promise.resolve(t.shouldShowRequestPermissionRationale(e))}catch(e){return Promise.reject(e)}}(l[e]).then(e=>[e?"denied":"restricted",!0]):Promise.resolve(["undetermined",!0])))}function request(e,t){var r=l[e];if(!r){var n=new Error("@nativescript-community/perms: ".concat(e," is not a valid permission type on Android"));return Promise.reject(n)}var a="string"==typeof t?void 0:t&&t.rationale;return Array.isArray(r)?requestMultiplePermissions(r):o.request(r,a).then(t=>"boolean"==typeof t?[t?"authorized":"denied",!0]:(e=>Promise.resolve().then(()=>Object(i.i)("@NSPermissions:didAskPermission:"+e,!0)))(e).then(()=>[t,!0]))}},function(e,t,r){"use strict";(function(e){var t=r(16),n=r(6),i=r(205);class NativeScriptGlobalState{constructor(){this.launched=!1;this._appInstanceReady=!1;this.events=new t.a;this._setLaunched=this._setLaunchedFn.bind(this);this.events.on("launch",this._setLaunched);Object(n.e)()>0&&this.events.on("displayed",()=>{var e=Object(n.n)(),t=Object(n.l)(),r=t-e;Object(n.m)("Displayed in ".concat(e.toFixed(2),"ms"),r,t)})}get appInstanceReady(){return this._appInstanceReady}set appInstanceReady(e){this._appInstanceReady=e;if(this.appEventWiring&&this.appEventWiring.length){for(var t of this.appEventWiring)t();this.appEventWiring=null}}addEventWiring(e){if(this._appInstanceReady)e();else{this.appEventWiring||(this.appEventWiring=[]);this.appEventWiring.push(e)}}_setLaunchedFn(){this.launched=!0;this.events.off("launch",this._setLaunched);this._setLaunched=null}}function installPolyfills(t,r){if(e.__snapshot){var n=e.loadModule(t);r.forEach(t=>e[t]=n[t])}else r.forEach(r=>function registerOnGlobalContext(t,r){Object.defineProperty(e,r,{get:function get(){var n=e.loadModule(t),i=n[r];Object.defineProperty(e,r,{value:i,configurable:!0,writable:!0});return i},configurable:!0})}(t,r))}e.NativeScriptHasInitGlobal||function initGlobal(){if(!e.NativeScriptHasInitGlobal){e.NativeScriptHasInitGlobal=!0;e.NativeScriptGlobals=new NativeScriptGlobalState;e.__extends||(e.__extends=function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function __(){this.constructor=e}e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)});for(var t of Object.keys(i))"function"==typeof i[t]&&(t in e||(e[t]=i[t]));var n=new Map,a=new Set,o={".js":".js",".ts":".js",".kt":".js",".css":".css",".scss":".css",".less":".css",".sass":".css",".xml":".xml"};e.moduleResolvers=[e.require];e.registerModule=function(e,t){n.set(e,{loader:t,moduleId:e})};e._unregisterModule=function _unregisterModule(e){n.delete(e)};e._isModuleLoadedForUI=function _isModuleLoadedForUI(e){return a.has(e)};e.registerWebpackModules=function registerWebpackModules(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.keys().forEach(i=>{var a=i.lastIndexOf("."),l=i.substr(0,a),d=i.substr(a),p=r[d]||o[d]||d,h=d!==p,m=l+p,registerWithName=e=>{n.set(e,{moduleId:i,loader:()=>t(i)})};if(m.startsWith("./")&&m.endsWith(".js")){var g=[m.substr(2,m.length-5),m.substr(0,m.length-3),m.substr(2)];g.forEach(t=>{!h&&e.moduleExists(t)||registerWithName(t)})}else if(m.startsWith("./")){var f=[m.substr(2)];f.forEach(t=>{e.moduleExists(t)||registerWithName(t)})}!h&&e.moduleExists(m)||registerWithName(m)})};e.moduleExists=function moduleExists(e){return n.has(e)};e.loadModule=function loadModule(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=n.get(t);if(i){r&&a.add(i.moduleId);var o=i.loader(t);o.enableAutoAccept&&o.enableAutoAccept();return o}var l=function _loop(e){var r=e(t);if(r){n.set(t,{moduleId:t,loader:()=>r});return{v:r}}};for(var d of e.moduleResolvers){var p=l(d);if("object"==typeof p)return p.v}};e.getRegisteredModules=function getRegisteredModules(){return Array.from(n.keys())};e.moduleMerge=function(e,t){for(var r in e)t[r]=e[r]};e.zonedCallback=function(t){return e.zone?e.zone.bind(t):e.Zone?e.Zone.current.wrap(t):t};e.System={import:t=>new Promise((r,n)=>{try{r(e.require(t))}catch(e){n(e)}})};e.registerModule("timer",()=>r(82));installPolyfills("timer",["setTimeout","clearTimeout","setInterval","clearInterval"]);e.registerModule("animation",()=>r(329));installPolyfills("animation",["requestAnimationFrame","cancelAnimationFrame"]);e.registerModule("ui-dialogs",()=>r(89));installPolyfills("ui-dialogs",["alert","confirm","prompt","login","action"]);e.registerModule("text",()=>r(81));installPolyfills("text",["TextDecoder","TextEncoder"]);e.registerModule("xhr",()=>r(318));installPolyfills("xhr",["XMLHttpRequest","FormData","Blob","File","FileReader"]);e.registerModule("fetch",()=>r(319));installPolyfills("fetch",["fetch","Headers","Request","Response"]);e.Deprecated=function(e,t,r){if(r){var n=r.value;r.value=function(){console.log("".concat(t.toString()," is deprecated"));for(var e=arguments.length,r=new Array(e),i=0;ie.length)return!1;for(var i=t;i=0&&d(e.charCodeAt(t));t--);return t+1},findWhiteSpaceEnd:function findWhiteSpaceEnd(e,t){for(;t{this._attach(this.target,e)};this._onTargetUnloaded=e=>{this._detach()};this.target.on("loaded",this._onTargetLoaded);this.target.on("unloaded",this._onTargetUnloaded);this.target.isLoaded&&this._attach(this.target,e)}}disconnect(){this._detach();if(this.target){this.target.off("loaded",this._onTargetLoaded);this.target.off("unloaded",this._onTargetUnloaded);this._onTargetLoaded=null;this._onTargetUnloaded=null}super.disconnect()}_detach(){this._notifyTouch=!1;this._simpleGestureDetector=null;this._scaleGestureDetector=null;this._swipeGestureDetector=null;this._panGestureDetector=null;this._rotateGestureDetector=null;this._eventData=null}_attach(t,r){this._detach();if(r&o.b.tap||r&o.b.doubleTap||r&o.b.longPress){initializeTapAndDoubleTapGestureListener();this._simpleGestureDetector=new androidx.core.view.GestureDetectorCompat(t._context,new n(this,this.target,r))}if(r&o.b.pinch){!function initializePinchGestureListener(){if(!i){var t=function(t){__extends(PinchGestureListenerImpl,t);function PinchGestureListenerImpl(r,n){var i=t.call(this)||this;i._observer=r;i._target=n;return e.__native(i)}PinchGestureListenerImpl.prototype.onScaleBegin=function(e){this._scale=e.getScaleFactor();var t=new PinchGestureEventData(this._target,e,this._scale,this._target,o.a.began);_executeCallback(this._observer,t);return!0};PinchGestureListenerImpl.prototype.onScale=function(e){this._scale*=e.getScaleFactor();var t=new PinchGestureEventData(this._target,e,this._scale,this._target,o.a.changed);_executeCallback(this._observer,t);return!0};PinchGestureListenerImpl.prototype.onScaleEnd=function(e){this._scale*=e.getScaleFactor();var t=new PinchGestureEventData(this._target,e,this._scale,this._target,o.a.ended);_executeCallback(this._observer,t)};return PinchGestureListenerImpl}(android.view.ScaleGestureDetector.SimpleOnScaleGestureListener);i=t}}();this._scaleGestureDetector=new android.view.ScaleGestureDetector(t._context,new i(this,this.target))}if(r&o.b.swipe){!function initializeSwipeGestureListener(){if(!a){var t=function(t){__extends(SwipeGestureListenerImpl,t);function SwipeGestureListenerImpl(r,n){var i=t.call(this)||this;i._observer=r;i._target=n;return e.__native(i)}SwipeGestureListenerImpl.prototype.onDown=function(e){return!0};SwipeGestureListenerImpl.prototype.onFling=function(e,t,r,n){var i,a=!1;try{var l=t.getY()-e.getY(),d=t.getX()-e.getX();if(Math.abs(d)>Math.abs(l)){if(Math.abs(d)>p&&Math.abs(r)>h)if(d>0){i=_getSwipeArgs(o.d.right,this._target,e,t);_executeCallback(this._observer,i);a=!0}else{i=_getSwipeArgs(o.d.left,this._target,e,t);_executeCallback(this._observer,i);a=!0}}else if(Math.abs(l)>p&&Math.abs(n)>h)if(l>0){i=_getSwipeArgs(o.d.down,this._target,e,t);_executeCallback(this._observer,i);a=!0}else{i=_getSwipeArgs(o.d.up,this._target,e,t);_executeCallback(this._observer,i);a=!0}}catch(e){}return a};return SwipeGestureListenerImpl}(android.view.GestureDetector.SimpleOnGestureListener);a=t}}();this._swipeGestureDetector=new androidx.core.view.GestureDetectorCompat(t._context,new a(this,this.target))}r&o.b.pan&&(this._panGestureDetector=new CustomPanGestureDetector(this,this.target));r&o.b.rotation&&(this._rotateGestureDetector=new CustomRotateGestureDetector(this,this.target));r&o.b.touch&&(this._notifyTouch=!0)}androidOnTouchEvent(e){if(this._notifyTouch){this._eventData||(this._eventData=new TouchGestureEventData);this._eventData.prepare(this.target,e);_executeCallback(this,this._eventData)}this._simpleGestureDetector&&this._simpleGestureDetector.onTouchEvent(e);this._scaleGestureDetector&&this._scaleGestureDetector.onTouchEvent(e);this._swipeGestureDetector&&this._swipeGestureDetector.onTouchEvent(e);this._panGestureDetector&&this._panGestureDetector.onTouchEvent(e);this._rotateGestureDetector&&this._rotateGestureDetector.onTouchEvent(e)}}function _getTapArgs(e,t,r){return{type:e,view:t,android:r,ios:void 0,object:t,eventName:Object(o.g)(e),getPointerCount:()=>r.getPointerCount(),getX:()=>l.n.toDeviceIndependentPixels(r.getX()),getY:()=>l.n.toDeviceIndependentPixels(r.getY())}}function _getSwipeArgs(e,t,r,n){return{type:o.b.swipe,view:t,android:{initial:r,current:n},direction:e,ios:void 0,object:t,eventName:Object(o.g)(o.b.swipe)}}function _getPanArgs(e,t,r,n,i,a){return{type:o.b.pan,view:r,android:{initial:i,current:a},deltaX:e,deltaY:t,ios:void 0,object:r,eventName:Object(o.g)(o.b.pan),state:n}}function _executeCallback(e,t){e&&e.callback&&e.callback.call(e._context,t)}class PinchGestureEventData{constructor(e,t,r,n,i){this.view=e;this.android=t;this.scale=r;this.object=n;this.state=i;this.type=o.b.pinch;this.eventName=Object(o.g)(o.b.pinch)}getFocusX(){return this.android.getFocusX()/l.n.getDisplayDensity()}getFocusY(){return this.android.getFocusY()/l.n.getDisplayDensity()}}class CustomPanGestureDetector{constructor(e,t){this.observer=e;this.target=t;this.isTracking=!1;this.density=l.n.getDisplayDensity()}onTouchEvent(e){switch(e.getActionMasked()){case android.view.MotionEvent.ACTION_UP:case android.view.MotionEvent.ACTION_CANCEL:this.trackStop(e,!1);break;case android.view.MotionEvent.ACTION_DOWN:case android.view.MotionEvent.ACTION_POINTER_DOWN:case android.view.MotionEvent.ACTION_POINTER_UP:this.trackStop(e,!0);break;case android.view.MotionEvent.ACTION_MOVE:this.isTracking||this.trackStart(e);this.trackChange(e)}return!0}trackStop(e,t){if(this.isTracking){var r=_getPanArgs(this.deltaX,this.deltaY,this.target,o.a.ended,null,e);_executeCallback(this.observer,r);this.deltaX=void 0;this.deltaY=void 0;this.isTracking=!1}this.lastEventCache=t?e:void 0}trackStart(e){var t=this.getEventCoordinates(this.lastEventCache?this.lastEventCache:e);this.initialX=t.x;this.initialY=t.y;this.isTracking=!0;var r=_getPanArgs(0,0,this.target,o.a.began,null,e);_executeCallback(this.observer,r)}trackChange(e){var t=this.getEventCoordinates(e);this.deltaX=t.x-this.initialX;this.deltaY=t.y-this.initialY;var r=_getPanArgs(this.deltaX,this.deltaY,this.target,o.a.changed,null,e);_executeCallback(this.observer,r)}getEventCoordinates(e){var t=e.getPointerCount();if(1===t)return{x:e.getRawX()/this.density,y:e.getRawY()/this.density};for(var r=e.getRawX()-e.getX(),n=e.getRawY()-e.getY(),i={x:0,y:0},a=0;a180&&(r-=360);this.angle=r}getPointersAngle(e){var t=e.getX(e.findPointerIndex(this.trackedPtrId1)),r=e.getY(e.findPointerIndex(this.trackedPtrId1)),n=e.getX(e.findPointerIndex(this.trackedPtrId2)),i=e.getY(e.findPointerIndex(this.trackedPtrId2));return Math.atan2(i-r,n-t)}}class Pointer{constructor(e,t){this.event=t;this.ios=void 0;this.android=e}getX(){return this.event.getX(this.android)/l.n.getDisplayDensity()}getY(){return this.event.getY(this.android)/l.n.getDisplayDensity()}}class TouchGestureEventData{constructor(){this.eventName=Object(o.g)(o.b.touch);this.type=o.b.touch;this.ios=void 0}prepare(e,t){this.view=e;this.object=e;this.android=t;this.action=this.getActionType(t);this._activePointers=void 0;this._allPointers=void 0}getPointerCount(){return this.android.getPointerCount()}getActivePointers(){this._activePointers||(this._activePointers=[new Pointer(this.android.getActionIndex(),this.android)]);return this._activePointers}getAllPointers(){if(!this._allPointers){this._allPointers=[];for(var e=0;et||(t=e())}var a,o=lazy(()=>r(2).PercentLength.convertToString),l=lazy(()=>r(0).getSetProperties),d=lazy(()=>r(0).getComputedCssValues);function registerInspectorEvents(e){a=e}function notifyInspector(e){a&&e(a)}function valueToString(e){return null==e?"":"object"==typeof e&&e.unit?o()(e):e+""}function propertyFilter(e){var[t,r]=e;return"_"!==t[0]&&((null===r||"object"!=typeof r)&&!(i.indexOf(t)>=0))}function getNodeById(e){return n[e]}class DOMNode{constructor(e){this.nodeValue="";this.attributes=[];this.viewRef=new WeakRef(e);this.nodeType="Frame"===e.typeName?9:1;this.nodeId=e._domId;this.nodeName=e.typeName;this.localName=this.nodeName;this.loadAttributes();!function registerNode(e){n[e.nodeId]=e}(this)}loadAttributes(){this.attributes=[];l()(this.viewRef.get()).filter(propertyFilter).forEach(e=>this.attributes.push(e[0],e[1]+""))}get children(){var e=this.viewRef.get();if(!e)return[];var t=[];e.eachChild(e=>{e.ensureDomNode();t.push(e.domNode);return!0});return t}onChildAdded(e){notifyInspector(t=>{var r,n=this.viewRef.get();n.eachChild(t=>{if(t===e)return!1;r=t;return!0});var i=r?r._domId:0;e.ensureDomNode();t.childNodeInserted(this.nodeId,i,e.domNode)})}onChildRemoved(e){notifyInspector(t=>{t.childNodeRemoved(this.nodeId,e._domId)})}attributeModified(e,t){notifyInspector(r=>{i.indexOf(e)<0&&r.attributeModified(this.nodeId,e,valueToString(t))})}attributeRemoved(e){notifyInspector(t=>{t.attributeRemoved(this.nodeId,e)})}getComputedProperties(){var e=this.viewRef.get();if(!e)return[];var t=d()(e).filter(e=>"_"!==e[0][0]).map(e=>({name:e[0],value:valueToString(e[1])}));return t}dispose(){!function unregisterNode(e){delete n[e.nodeId]}(this);this.viewRef.clear()}toObject(){return{nodeId:this.nodeId,nodeType:this.nodeType,nodeName:this.nodeName,localName:this.localName,nodeValue:this.nodeValue,children:this.children.map(e=>e.toObject()),attributes:this.attributes,backendNodeId:0}}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(22),i=r(19),a=r(11),o=class ButtonBase extends n.a{get textWrap(){return"normal"===this.style.whiteSpace}set textWrap(e){"string"==typeof e&&(e=Object(a.b)(e));this.style.whiteSpace=e?"normal":"nowrap"}};o.tapEvent="tap";o=__decorate([Object(i.a)("Button")],o);o.prototype.recycleNativeView="auto"},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return Image}));var n,i,a=r(64),o=r(9),l=r(100),d=r(2),p=r(17),h=r(18);class Image extends a.a{constructor(){super(...arguments);this.useCache=!0}createNativeView(){n||(n=org.nativescript.widgets.ImageView);return new n(this._context)}initNativeView(){super.initNativeView();!function initializeImageLoadedListener(){if(!i){var t=function(t){__extends(ImageLoadedListenerImpl,t);function ImageLoadedListenerImpl(r){var n=t.call(this)||this;n.owner=r;return e.__native(n)}ImageLoadedListenerImpl.prototype.onImageLoaded=function(e){var t=this.owner;t&&(t.isLoading=!1)};ImageLoadedListenerImpl=__decorate([Interfaces([org.nativescript.widgets.image.Worker.OnImageLoadedListener])],ImageLoadedListenerImpl);return ImageLoadedListenerImpl}(java.lang.Object);i=t}}();var t=this.nativeViewProtected,r=new i(this);t.setImageLoadedListener(r);t.listener=r}disposeNativeView(){this.nativeViewProtected.listener.owner=null;super.disposeNativeView()}resetNativeView(){super.resetNativeView();this.nativeViewProtected.setImageMatrix(new android.graphics.Matrix)}_createImageSourceFromSrc(e){var t=this.nativeViewProtected;if(t)if(e){var r=Math.min(d.Length.toDevicePixels(this.decodeWidth,0),h.b.mainScreen.widthPixels),n=Math.min(d.Length.toDevicePixels(this.decodeHeight,0),h.b.mainScreen.heightPixels),i=this._calculateKeepAspectRatio();if(e instanceof l.a){if(e.options){r=e.options.width||r;n=e.options.height||n;i=!!e.options.keepAspectRatio}e=e.android}var a="async"===this.loadMode;if("string"==typeof e||e instanceof String){e=e.trim();this.isLoading=!0;if(Object(o.l)(e)||Object(o.j)(e))super._createImageSourceFromSrc(e);else if(Object(o.k)(e))if(0===e.indexOf(o.b))t.setUri(e,r,n,i,this.useCache,a);else{var m=e;0===m.indexOf("~/")&&(m=p.knownFolders.currentApp().path+"/"+m.replace("~/",""));t.setUri("file:///"+m,r,n,i,this.useCache,a)}else t.setUri(e,r,n,i,this.useCache,!0)}else super._createImageSourceFromSrc(e)}else t.setUri(null,0,0,!1,!1,!0)}_calculateKeepAspectRatio(){return"fill"!==this.stretch}[a.d.getDefault](){return"aspectFit"}[a.d.setNative](e){switch(e){case"aspectFit":this.nativeViewProtected.setScaleType(android.widget.ImageView.ScaleType.FIT_CENTER);break;case"aspectFill":this.nativeViewProtected.setScaleType(android.widget.ImageView.ScaleType.CENTER_CROP);break;case"fill":this.nativeViewProtected.setScaleType(android.widget.ImageView.ScaleType.FIT_XY);break;case"none":default:this.nativeViewProtected.setScaleType(android.widget.ImageView.ScaleType.MATRIX)}}[a.e.getDefault](){}[a.e.setNative](e){void 0===e?this.nativeViewProtected.clearColorFilter():this.nativeViewProtected.setColorFilter(e.android)}[a.b.getDefault](){}[a.b.setNative](e){var t=this.nativeViewProtected;if(e&&e.android){var r=e.rotationAngle?e.rotationAngle:0;t.setRotationAngle(r);t.setImageBitmap(e.android)}else{t.setRotationAngle(0);t.setImageBitmap(null)}}[a.c.getDefault](){}[a.c.setNative](e){this._createImageSourceFromSrc(e)}}}).call(this,r(20))},function(e,t,r){"use strict";r.d(t,"a",(function(){return get}));r.d(t,"b",(function(){return set}));var n={};function get(){return n}function set(e){n=e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(172),i=r(173),a=r(13),o=r(17),l=r(172);t.QueryMeta=l.QueryMeta;t.QueryArrayOperator=l.QueryArrayOperator;t.QueryLogicalOperator=l.QueryLogicalOperator;var d=function(e){__extends(Couchbase,e);function Couchbase(t){var r=e.call(this,t)||this;r._listenerMap={};r.config=new com.couchbase.lite.DatabaseConfiguration(i.ad.getApplicationContext());r.android=new com.couchbase.lite.Database(t,r.config);return r}Couchbase.prototype.inBatch=function(e){var t=new java.lang.Runnable({run:function run(){e()}});this.android.inBatch(t)};Couchbase.prototype.createDocument=function(e,t){try{var r=void 0;r=t?new com.couchbase.lite.MutableDocument(t):new com.couchbase.lite.MutableDocument;for(var n=Object.keys(e),i=0,a=n;iMath.pow(2,31)-1};Couchbase.prototype.deleteDocument=function(e,t){void 0===t&&(t=1);try{var r=this.android.getDocument(e);return this.android.delete(r,1===t?com.couchbase.lite.ConcurrencyControl.FAIL_ON_CONFLICT:com.couchbase.lite.ConcurrencyControl.LAST_WRITE_WINS)}catch(e){console.error(e.message);return!1}};Couchbase.prototype.destroyDatabase=function(){try{this.android.delete()}catch(e){console.error(e.message)}};Couchbase.prototype.serializeExpression=function(e){if(null===e)return null;switch(typeof e){case"string":return com.couchbase.lite.Expression.string(e);case"object":return e instanceof Date?com.couchbase.lite.Expression.date(this.fromISO8601UTC(e.toISOString())):com.couchbase.lite.Expression.value(e);case"number":return this.numberIs64Bit(e)?this.numberHasDecimals(e)?com.couchbase.lite.Expression.doubleValue(e):com.couchbase.lite.Expression.longValue(e):this.numberHasDecimals(e)?com.couchbase.lite.Expression.floatValue(e):com.couchbase.lite.Expression.intValue(e);case"boolean":return com.couchbase.lite.Expression.booleanValue(e);default:return com.couchbase.lite.Expression.value(e)}};Couchbase.prototype.setComparision=function(e){var t;switch(e.comparison){case"equalTo":t=com.couchbase.lite.Expression.property(e.property).equalTo(this.serializeExpression(e.value));break;case"add":t=com.couchbase.lite.Expression.property(e.property).add(this.serializeExpression(e.value));break;case"between":Array.isArray(e.value)&&2===e.value.length&&(t=com.couchbase.lite.Expression.property(e.property).between(com.couchbase.lite.Expression.value(this.serializeExpression(e.value[0])),com.couchbase.lite.Expression.value(this.serializeExpression(e.value[1]))));break;case"collate":t=com.couchbase.lite.Expression.property(e.property).collate(this.serializeExpression(e.value));break;case"divide":t=com.couchbase.lite.Expression.property(e.property).divide(this.serializeExpression(e.value));break;case"greaterThan":t=com.couchbase.lite.Expression.property(e.property).greaterThan(this.serializeExpression(e.value));break;case"greaterThanOrEqualTo":t=com.couchbase.lite.Expression.property(e.property).greaterThanOrEqualTo(this.serializeExpression(e.value));break;case"in":var r=[];if(Array.isArray(e.value))for(var n=0,i=e.value;n0&&(a=a.groupBy(m))}if(e.order){for(var y=[],w=0,C=e.order;w0&&(a=a.orderBy(y))}e.limit&&"number"==typeof e.limit&&(a=e.offset&&"number"==typeof e.offset?a.limit(com.couchbase.lite.Expression.intValue(e.limit),com.couchbase.lite.Expression.intValue(e.offset)):a.limit(com.couchbase.lite.Expression.intValue(e.limit)));for(var S=a.execute().allResults(),b=S.size(),x=0;x>24:d},lookupOffset:function lookupOffset(e){e+=this.tokenIndex;return e0?e>24;switch(t(n,this.source,a)){case 1:break e;case 2:i++;break e;default:a=16777215&this.offsetAndType[i];this.balance[r]===i&&(i=r)}}return i-this.tokenIndex},isBalanceEdge:function isBalanceEdge(e){return this.balance[this.tokenIndex]>24===p;e++,t++);t>0&&this.skip(t)},skipSC:function skipSC(){for(;this.tokenType===p||this.tokenType===h;)this.next()},skip:function skip(e){var t=this.tokenIndex+e;if(t>24;this.tokenEnd=16777215&t}else{this.tokenIndex=this.tokenCount;this.next()}},next:function next(){var next=this.tokenIndex+1;if(next>24;this.tokenEnd=16777215&next}else{this.tokenIndex=this.tokenCount;this.eof=!0;this.tokenType=d;this.tokenStart=this.tokenEnd=this.source.length}},forEachToken(e){for(var t=0,r=this.firstCharOffset;t>24;r=a;e(o,n,a,t)}},dump(){var e=new Array(this.tokenCount);this.forEachToken((t,r,n,i)=>{e[i]={idx:i,type:a[t],chunk:this.source.substring(r,n),balance:this.balance[i]}});return e}};e.exports=m},function(e,t){var r={EOF:0,Ident:1,Function:2,AtKeyword:3,Hash:4,String:5,BadString:6,Url:7,BadUrl:8,Delim:9,Number:10,Percentage:11,Dimension:12,WhiteSpace:13,CDO:14,CDC:15,Colon:16,Semicolon:17,Comma:18,LeftSquareBracket:19,RightSquareBracket:20,LeftParenthesis:21,RightParenthesis:22,LeftCurlyBracket:23,RightCurlyBracket:24,Comment:25},n=Object.keys(r).reduce((function(e,t){e[r[t]]=t;return e}),{});e.exports={TYPE:r,NAME:n}},function(e,t,r){"use strict";r.r(t);r.d(t,"CssAnimationParser",(function(){return CssAnimationParser}));r.d(t,"parseKeyframeDeclarations",(function(){return parseKeyframeDeclarations}));var n=r(0),i=r(84),a=r(70),o=r(2),l=Object.freeze({"animation-name":(e,t)=>e.name=t,"animation-duration":(e,t)=>e.duration=Object(a.b)(t),"animation-delay":(e,t)=>e.delay=Object(a.b)(t),"animation-timing-function":(e,t)=>e.curve=Object(a.a)(t),"animation-iteration-count":(e,t)=>e.iterations="infinite"===t?Number.MAX_VALUE:parseFloat(t),"animation-direction":(e,t)=>e.isReverse="reverse"===t,"animation-fill-mode":(e,t)=>e.isForwards="forwards"===t});class CssAnimationParser{static keyframeAnimationsFromCSSDeclarations(e){if(null!=e){var t=new Array,r=void 0;e.forEach(e=>{var{property:n,value:o}=e;if("animation"===n)!function keyframeAnimationsFromCSSProperty(e,t){if("string"==typeof e){var r=e.split(/[,]+/);for(var n of r){var o=new i.KeyframeAnimationInfo,l=n.trim().split(/[ ]+/);l.length>0&&(o.name=l[0]);l.length>1&&(o.duration=Object(a.b)(l[1]));l.length>2&&(o.curve=Object(a.a)(l[2]));l.length>3&&(o.delay=Object(a.b)(l[3]));l.length>4&&(o.iterations=parseInt(l[4]));l.length>5&&(o.isReverse="reverse"===l[4]);l.length>6&&(o.isForwards="forwards"===l[5]);if(l.length>7)throw new Error("Invalid value for animation: "+e);t.push(o)}}}(o,t);else{var d=l[n];if(d){if(void 0===r){r=new i.KeyframeAnimationInfo;t.push(r)}d(r,o)}}});return 0===t.length?void 0:t}}static keyframesArrayFromCSS(e){var t=new Array;for(var r of e){var n=parseKeyframeDeclarations(r.declarations);for(var i of r.values){if("from"===i)i=0;else if("to"===i)i=1;else{i=parseFloat(i)/100;i<0&&(i=0);i>100&&(i=100)}var o=t[i];if(void 0===o){o={};o.duration=i;t[i]=o}for(var l of r.declarations)"animation-timing-function"===l.property&&(o.curve=Object(a.a)(l.value));o.declarations=n}}var d=new Array;for(var p in t)d.push(t[p]);d.sort((function(e,t){return e.duration-t.duration}));return d}}function parseKeyframeDeclarations(e){var t=e.reduce((e,t)=>{var{property:r,value:i}=t,a=n.CssAnimationProperty._getByCssName(r);if("string"==typeof r&&a&&a._valueConverter)e[a.name]=a._valueConverter(i);else if("string"==typeof i&&"transform"===r){var l=Object(o.transformConverter)(i);Object.assign(e,l)}return e},{});return Object.keys(t).map(e=>({property:e,value:t[e]}))}},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return n}));var n,i=r(63),a=r(9),o=r(179),l=r(17),d=r(8);!function(e){var t;function isSetColorFilterOnlyWidget(e){return e instanceof android.widget.Button||e instanceof androidx.appcompat.widget.Toolbar&&function getSDK(){t||(t=android.os.Build.VERSION.SDK_INT);return t}()>=21}e.onBackgroundOrBorderPropertyChanged=function onBackgroundOrBorderPropertyChanged(e){var t=e.nativeViewProtected;if(t){var r=e.style.backgroundInternal,n=t.getBackground(),i=e;if(void 0===i._cachedDrawable&&n){var o=n.getConstantState();i._cachedDrawable=o||n}if(!isSetColorFilterOnlyWidget(t)||!n||r.hasBorderWidth()||r.hasBorderRadius()||r.clipPath||r.image||!r.color)if(r.isEmpty()){var l=i._cachedDrawable,d=null;l&&(l instanceof android.graphics.drawable.Drawable.ConstantState?d=l.newDrawable(t.getResources()):l instanceof android.graphics.drawable.Drawable&&(d=l));t.setBackground(d)}else{var p=n;if(n instanceof org.nativescript.widgets.BorderDrawable)refreshBorderDrawable(e,p);else{p=new org.nativescript.widgets.BorderDrawable(a.n.getDisplayDensity(),e.toString());refreshBorderDrawable(e,p);t.setBackground(p)}}else{if(n instanceof org.nativescript.widgets.BorderDrawable&&i._cachedDrawable){if(!(i._cachedDrawable instanceof android.graphics.drawable.Drawable.ConstantState))return;n=i._cachedDrawable.newDrawable(t.getResources());t.setBackground(n)}var h=n.backgroundColor=r.color.android;n.mutate();n.setColorFilter(h,android.graphics.PorterDuff.Mode.SRC_IN);n.invalidateSelf();n.backgroundColor=h}var m=Math.ceil(e.effectiveBorderLeftWidth+e.effectivePaddingLeft),g=Math.ceil(e.effectiveBorderTopWidth+e.effectivePaddingTop),f=Math.ceil(e.effectiveBorderRightWidth+e.effectivePaddingRight),v=Math.ceil(e.effectiveBorderBottomWidth+e.effectivePaddingBottom);t.setPadding(m,g,f,v)}}}(n||(n={}));var p,h,m,g=/url\(('|")(.*?)\1\)/;function refreshBorderDrawable(e,t){var r=e.nativeViewProtected,n=r.getContext(),o=e.style.backgroundInternal;if(o){var d,p=createNativeCSSValueArray(o.position),h=createNativeCSSValueArray(o.size);if(o.image&&"string"==typeof o.image){d=o.image;var m=d.match(g);m&&m[2]&&(d=m[2])}var f=null;if(Object(a.j)(d)){var v=d.split(",")[1];if(void 0!==v){f=function fromBase64(e){var t=android.util.Base64.decode(e,android.util.Base64.DEFAULT);return android.graphics.BitmapFactory.decodeByteArray(t,0,t.length)}(v);d=null}}else if(Object(a.k)(d)&&0!==d.indexOf(a.b)){var y=d;0===y.indexOf("~/")&&(y=l.path.join(l.knownFolders.currentApp().path,y.replace("~/","")));d=a.a+y}var w=null;o.image&&o.image instanceof i.a&&(w=function fromGradient(e){var t=Array.create("int",e.colorStops.length),r=Array.create("float",e.colorStops.length),n=!1;e.colorStops.forEach((e,i)=>{t[i]=e.color.android;if(e.offset){r[i]=e.offset.value;n=!0}});var i=e.angle/(2*Math.PI),a=Math.pow(Math.sin(Math.PI*(i+.75)),2),o=Math.pow(Math.sin(Math.PI*(i+.5)),2),l=Math.pow(Math.sin(Math.PI*(i+.25)),2),d=Math.pow(Math.sin(Math.PI*i),2);return new org.nativescript.widgets.LinearGradientDefinition(a,o,l,d,t,n?r:null)}(o.image));t.refresh(o.borderTopColor?o.borderTopColor.android:-16777216,o.borderRightColor?o.borderRightColor.android:-16777216,o.borderBottomColor?o.borderBottomColor.android:-16777216,o.borderLeftColor?o.borderLeftColor.android:-16777216,o.borderTopWidth,o.borderRightWidth,o.borderBottomWidth,o.borderLeftWidth,o.borderTopLeftRadius,o.borderTopRightRadius,o.borderBottomRightRadius,o.borderBottomLeftRadius,o.clipPath,o.color?o.color.android:0,d,f,w,n,o.repeat,o.position,p,o.size,h)}}function createNativeCSSValueArray(e){if(!e)return null;for(var t=Object(o.parse)(e),r=Array.create(org.nativescript.widgets.CSSValue,t.length),n=0,i=t.length;n{d.android.on("activityStarted",e=>{m?m.initCache():function initImageCache(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.diskAndMemory,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.25,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10485760;if(h!==t){h=t;m?m.clearCache():m=org.nativescript.widgets.image.Fetcher.getInstance(e);var i=new org.nativescript.widgets.image.Cache.CacheParams;i.memoryCacheEnabled=t!==p.none;i.setMemCacheSizePercent(r);i.diskCacheEnabled=t===p.diskAndMemory;i.diskCacheSize=n;var a=org.nativescript.widgets.image.Cache.getInstance(i);m.addImageCache(a);m.initCache()}}(e.activity)})});e.NativeScriptGlobals.addEventWiring(()=>{d.android.on("activityStopped",e=>{m&&m.closeCache()})})}).call(this,r(20))},function(e,t,r){"use strict";r.d(t,"a",(function(){return FormattedString}));var n=r(99),i=r(16),a=r(23),o=r(11);class FormattedString extends o.a{constructor(){super();this._spans=new a.b;this._spans.addEventListener(a.b.changeEvent,this.onSpansCollectionChanged,this)}get fontFamily(){return this.style.fontFamily}set fontFamily(e){this.style.fontFamily=e}get fontSize(){return this.style.fontSize}set fontSize(e){this.style.fontSize=e}get fontStyle(){return this.style.fontStyle}set fontStyle(e){this.style.fontStyle=e}get fontWeight(){return this.style.fontWeight}set fontWeight(e){this.style.fontWeight=e}get textDecoration(){return this.style.textDecoration}set textDecoration(e){this.style.textDecoration=e}get color(){return this.style.color}set color(e){this.style.color=e}get backgroundColor(){return this.style.backgroundColor}set backgroundColor(e){this.style.backgroundColor=e}get spans(){this._spans||(this._spans=new a.b);return this._spans}toString(){for(var e="",t=0,r=this._spans.length;t0)for(var t=0;t0)for(var n=0;ne(t))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var n=r(5),i=r(19),a=r(26),o=r(0),l=r(1),d=class ProxyViewContainer extends a.a{constructor(){super();this.proxiedLayoutProperties=new Set;this.nativeViewProtected=void 0}get ios(){return null}get android(){return null}get isLayoutRequested(){return!1}createNativeView(){}_getNativeViewsCount(){var e=0;this.eachChildView(t=>{e+=t._getNativeViewsCount();return!0});return e}_eachLayoutView(e){this.eachChildView(t=>{t.isCollapsed||t._eachLayoutView(e);return!0})}_addViewToNativeVisualTree(e,t){l.a.isEnabled()&&l.a.write("ProxyViewContainer._addViewToNativeVisualTree for a child "+e+" ViewContainer.parent: "+this.parent,l.a.categories.ViewHierarchy);super._addViewToNativeVisualTree(e);p.forEach(t=>{var r=makeProxyPropName(t);e[r]=e[t];this.proxiedLayoutProperties.has(t)&&this._applyLayoutPropertyToChild(e,t,this[t])});var r=this.parent;if(r instanceof n.c){var i=0,o=0;r instanceof a.a&&(i=r._childIndexToNativeChildIndex(r.getChildIndex(this)));o=void 0!==t?this._childIndexToNativeChildIndex(t):this._getNativeViewsCount();l.a.isEnabled()&&l.a.write("ProxyViewContainer._addViewToNativeVisualTree at: "+t+" base: "+i+" additional: "+o,l.a.categories.ViewHierarchy);return r._addViewToNativeVisualTree(e,i+o)}return!1}_removeViewFromNativeVisualTree(e){l.a.isEnabled()&&l.a.write("ProxyViewContainer._removeViewFromNativeVisualTree for a child "+e+" ViewContainer.parent: "+this.parent,l.a.categories.ViewHierarchy);super._removeViewFromNativeVisualTree(e);var t=this.parent;if(t instanceof n.c)return t._removeViewFromNativeVisualTree(e)}_registerLayoutChild(e){var t=this.parent;t instanceof a.a&&t._registerLayoutChild(e)}_unregisterLayoutChild(e){var t=this.parent;t instanceof a.a&&t._unregisterLayoutChild(e)}_parentChanged(e){super._parentChanged(e);var t=this.parent&&!e,r=this.parent,n=e;t&&r instanceof a.a?this.eachLayoutChild(e=>{r._registerLayoutChild(e);return!0}):n instanceof a.a&&this.eachLayoutChild(e=>{n._unregisterLayoutChild(e);return!0})}_changedLayoutProperty(e,t){var r=this._getNativeViewsCount();r>1&&l.a.write("ProxyViewContainer._changeLayoutProperty - you're setting '"+e+"' for "+this+" with more than one child. Probably this is not what you want, consider wrapping it in a StackLayout ",l.a.categories.ViewHierarchy,l.a.messageType.error);this.eachLayoutChild(r=>{this._applyLayoutPropertyToChild(r,e,t);return!0});this.proxiedLayoutProperties.add(e)}_applyLayoutPropertyToChild(e,t,r){var n=makeProxyPropName(t);if(n in e&&e[t]!==e[n])l.a.isEnabled()&&l.a.write("ProxyViewContainer._applyLayoutPropertyToChild child "+e+" has its own value ["+e[t]+"] for ["+t+"]",l.a.categories.ViewHierarchy);else{e[t]=r;e[n]=r}}};d=__decorate([Object(i.a)("ProxyViewContainer"),__metadata("design:paramtypes",[])],d);var p=["left","top","dock","flexDirection","flexWrap","justifyContent","alignItems","alignContent","order","flexGrow","flexShrink","flexWrapBefore","alignSelf","flexFlow","flex","column","columnSpan","col","colSpan","row","rowSpan"],h=function _loop(e){var t=new o.Property({name:e,valueChanged(t,r,n){t._changedLayoutProperty(e,n)}});t.register(d)};for(var m of p)h(m);function makeProxyPropName(e){return"_proxy:".concat(e)}},function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var n,i=r(5),a=r(19),o=r(0),l=r(17),d=new o.Property({name:"src"}),p=n=class WebViewBase extends i.a{_onLoadFinished(e,t){var r={eventName:n.loadFinishedEvent,object:this,url:e,navigationType:void 0,error:t};this.notify(r)}_onLoadStarted(e,t){var r={eventName:n.loadStartedEvent,object:this,url:e,navigationType:t,error:void 0};this.notify(r)}get canGoBack(){throw new Error("This member is abstract.")}get canGoForward(){throw new Error("This member is abstract.")}[d.getDefault](){return""}[d.setNative](e){this.stopLoading();if(0===e.indexOf("~/")){var t=l.knownFolders.currentApp().path;t&&0!==t.indexOf("/")&&(t="/".concat(t));e="file://".concat(t,"/")+e.substr(2)}else 0===e.indexOf("/")&&(e="file://"+e);0===e.toLowerCase().indexOf("file:///")&&(e=encodeURI(e));0===e.toLowerCase().indexOf("http://")||0===e.toLowerCase().indexOf("https://")||0===e.toLowerCase().indexOf("file:///")?this._loadUrl(e):this._loadData(e)}};p.loadStartedEvent="loadStarted";p.loadFinishedEvent="loadFinished";p=n=__decorate([Object(a.a)("WebView")],p);d.register(p)},function(e,t,r){"use strict";r.r(t);r.d(t,"ActionBar",(function(){return n.a}));r.d(t,"ActionItem",(function(){return n.b}));r.d(t,"ActionItems",(function(){return i.c}));r.d(t,"NavigationButton",(function(){return n.c}));r.d(t,"ActivityIndicator",(function(){return a.a}));r.d(t,"Animation",(function(){return o.Animation}));r.d(t,"KeyframeAnimation",(function(){return l.KeyframeAnimation}));r.d(t,"KeyframeAnimationInfo",(function(){return l.KeyframeAnimationInfo}));r.d(t,"KeyframeDeclaration",(function(){return l.KeyframeDeclaration}));r.d(t,"KeyframeInfo",(function(){return l.KeyframeInfo}));r.d(t,"BottomNavigation",(function(){return d.a}));r.d(t,"Builder",(function(){return p.a}));r.d(t,"sanitizeModuleName",(function(){return h.a}));r.d(t,"Button",(function(){return m.Button}));r.d(t,"ContentView",(function(){return g.a}));r.d(t,"Binding",(function(){return f.a}));r.d(t,"ControlStateChangeListener",(function(){return ControlStateChangeListener}));r.d(t,"ViewBase",(function(){return v.a}));r.d(t,"eachDescendant",(function(){return v.c}));r.d(t,"getAncestor",(function(){return v.d}));r.d(t,"getViewById",(function(){return v.e}));r.d(t,"booleanConverter",(function(){return v.b}));r.d(t,"View",(function(){return y.c}));r.d(t,"CSSType",(function(){return w.a}));r.d(t,"ContainerView",(function(){return y.a}));r.d(t,"ViewHelper",(function(){return C.a}));r.d(t,"IOSHelper",(function(){return S.a}));r.d(t,"isUserInteractionEnabledProperty",(function(){return w.f}));r.d(t,"PseudoClassHandler",(function(){return w.b}));r.d(t,"Property",(function(){return b.Property}));r.d(t,"CoercibleProperty",(function(){return b.CoercibleProperty}));r.d(t,"InheritedProperty",(function(){return b.InheritedProperty}));r.d(t,"CssProperty",(function(){return b.CssProperty}));r.d(t,"InheritedCssProperty",(function(){return b.InheritedCssProperty}));r.d(t,"ShorthandProperty",(function(){return b.ShorthandProperty}));r.d(t,"CssAnimationProperty",(function(){return b.CssAnimationProperty}));r.d(t,"unsetValue",(function(){return b.unsetValue}));r.d(t,"makeParser",(function(){return b.makeParser}));r.d(t,"makeValidator",(function(){return b.makeValidator}));r.d(t,"addWeakEventListener",(function(){return x.a}));r.d(t,"removeWeakEventListener",(function(){return x.b}));r.d(t,"DatePicker",(function(){return T.a}));r.d(t,"DialogStrings",(function(){return P.a}));r.d(t,"action",(function(){return k.action}));r.d(t,"alert",(function(){return k.alert}));r.d(t,"confirm",(function(){return k.confirm}));r.d(t,"login",(function(){return k.login}));r.d(t,"prompt",(function(){return k.prompt}));r.d(t,"getCurrentPage",(function(){return P.d}));r.d(t,"Dialogs",(function(){return k.Dialogs}));r.d(t,"inputType",(function(){return P.g}));r.d(t,"capitalizationType",(function(){return P.b}));r.d(t,"placeholderColorProperty",(function(){return A.j}));r.d(t,"keyboardTypeProperty",(function(){return A.h}));r.d(t,"returnKeyTypeProperty",(function(){return A.k}));r.d(t,"editableProperty",(function(){return A.f}));r.d(t,"updateTextTriggerProperty",(function(){return A.l}));r.d(t,"autocapitalizationTypeProperty",(function(){return A.b}));r.d(t,"autocorrectProperty",(function(){return A.c}));r.d(t,"hintProperty",(function(){return A.g}));r.d(t,"maxLengthProperty",(function(){return A.i}));r.d(t,"dismissKeyboardTimeoutId",(function(){return A.e}));r.d(t,"dismissKeyboardOwner",(function(){return A.d}));r.d(t,"EditableTextBase",(function(){return A.a}));r.d(t,"Enums",(function(){return E.b}));r.d(t,"Frame",(function(){return I.Frame}));r.d(t,"setActivityCallbacks",(function(){return I.setActivityCallbacks}));r.d(t,"GesturesObserver",(function(){return V.a}));r.d(t,"TouchAction",(function(){return L.e}));r.d(t,"GestureTypes",(function(){return L.b}));r.d(t,"GestureStateTypes",(function(){return L.a}));r.d(t,"SwipeDirection",(function(){return L.d}));r.d(t,"HtmlView",(function(){return html_view_HtmlView}));r.d(t,"Image",(function(){return z.a}));r.d(t,"ImageCache",(function(){return W.a}));r.d(t,"Label",(function(){return j.Label}));r.d(t,"AbsoluteLayout",(function(){return absolute_layout_AbsoluteLayout}));r.d(t,"DockLayout",(function(){return dock_layout_DockLayout}));r.d(t,"FlexboxLayout",(function(){return flexbox_layout_FlexboxLayout}));r.d(t,"GridLayout",(function(){return Ee.a}));r.d(t,"GridUnitType",(function(){return Ie.b}));r.d(t,"ItemSpec",(function(){return Ee.b}));r.d(t,"StackLayout",(function(){return Ve.a}));r.d(t,"WrapLayout",(function(){return wrap_layout_WrapLayout}));r.d(t,"LayoutBase",(function(){return H.a}));r.d(t,"ListPicker",(function(){return Be.a}));r.d(t,"ListView",(function(){return Me.a}));r.d(t,"Page",(function(){return page_Page}));r.d(t,"PageBase",(function(){return We}));r.d(t,"Placeholder",(function(){return Xe}));r.d(t,"Progress",(function(){return Ye.a}));r.d(t,"ProxyViewContainer",(function(){return Qe.a}));r.d(t,"Repeater",(function(){return et}));r.d(t,"ScrollView",(function(){return at.a}));r.d(t,"SearchBar",(function(){return ot.a}));r.d(t,"SegmentedBar",(function(){return st.a}));r.d(t,"SegmentedBarItem",(function(){return st.b}));r.d(t,"Slider",(function(){return lt.a}));r.d(t,"addTaggedAdditionalCSS",(function(){return dt.addTaggedAdditionalCSS}));r.d(t,"removeTaggedAdditionalCSS",(function(){return dt.removeTaggedAdditionalCSS}));r.d(t,"resolveFileNameFromUrl",(function(){return dt.resolveFileNameFromUrl}));r.d(t,"Background",(function(){return ct.a}));r.d(t,"animationTimingFunctionConverter",(function(){return ut.a}));r.d(t,"timeConverter",(function(){return ut.b}));r.d(t,"Font",(function(){return O.a}));r.d(t,"Style",(function(){return F.a}));r.d(t,"PercentLength",(function(){return D.PercentLength}));r.d(t,"Length",(function(){return D.Length}));r.d(t,"zeroLength",(function(){return D.zeroLength}));r.d(t,"minWidthProperty",(function(){return D.minWidthProperty}));r.d(t,"minHeightProperty",(function(){return D.minHeightProperty}));r.d(t,"widthProperty",(function(){return D.widthProperty}));r.d(t,"heightProperty",(function(){return D.heightProperty}));r.d(t,"marginLeftProperty",(function(){return D.marginLeftProperty}));r.d(t,"marginRightProperty",(function(){return D.marginRightProperty}));r.d(t,"marginTopProperty",(function(){return D.marginTopProperty}));r.d(t,"marginBottomProperty",(function(){return D.marginBottomProperty}));r.d(t,"paddingLeftProperty",(function(){return D.paddingLeftProperty}));r.d(t,"paddingRightProperty",(function(){return D.paddingRightProperty}));r.d(t,"paddingTopProperty",(function(){return D.paddingTopProperty}));r.d(t,"paddingBottomProperty",(function(){return D.paddingBottomProperty}));r.d(t,"HorizontalAlignment",(function(){return D.HorizontalAlignment}));r.d(t,"horizontalAlignmentProperty",(function(){return D.horizontalAlignmentProperty}));r.d(t,"VerticalAlignment",(function(){return D.VerticalAlignment}));r.d(t,"verticalAlignmentProperty",(function(){return D.verticalAlignmentProperty}));r.d(t,"rotateProperty",(function(){return D.rotateProperty}));r.d(t,"rotateXProperty",(function(){return D.rotateXProperty}));r.d(t,"rotateYProperty",(function(){return D.rotateYProperty}));r.d(t,"perspectiveProperty",(function(){return D.perspectiveProperty}));r.d(t,"scaleXProperty",(function(){return D.scaleXProperty}));r.d(t,"scaleYProperty",(function(){return D.scaleYProperty}));r.d(t,"translateXProperty",(function(){return D.translateXProperty}));r.d(t,"translateYProperty",(function(){return D.translateYProperty}));r.d(t,"transformConverter",(function(){return D.transformConverter}));r.d(t,"backgroundInternalProperty",(function(){return D.backgroundInternalProperty}));r.d(t,"backgroundImageProperty",(function(){return D.backgroundImageProperty}));r.d(t,"backgroundColorProperty",(function(){return D.backgroundColorProperty}));r.d(t,"BackgroundRepeat",(function(){return D.BackgroundRepeat}));r.d(t,"backgroundRepeatProperty",(function(){return D.backgroundRepeatProperty}));r.d(t,"backgroundSizeProperty",(function(){return D.backgroundSizeProperty}));r.d(t,"backgroundPositionProperty",(function(){return D.backgroundPositionProperty}));r.d(t,"borderTopColorProperty",(function(){return D.borderTopColorProperty}));r.d(t,"borderRightColorProperty",(function(){return D.borderRightColorProperty}));r.d(t,"borderBottomColorProperty",(function(){return D.borderBottomColorProperty}));r.d(t,"borderLeftColorProperty",(function(){return D.borderLeftColorProperty}));r.d(t,"borderTopWidthProperty",(function(){return D.borderTopWidthProperty}));r.d(t,"borderRightWidthProperty",(function(){return D.borderRightWidthProperty}));r.d(t,"borderBottomWidthProperty",(function(){return D.borderBottomWidthProperty}));r.d(t,"borderLeftWidthProperty",(function(){return D.borderLeftWidthProperty}));r.d(t,"borderTopLeftRadiusProperty",(function(){return D.borderTopLeftRadiusProperty}));r.d(t,"borderTopRightRadiusProperty",(function(){return D.borderTopRightRadiusProperty}));r.d(t,"borderBottomRightRadiusProperty",(function(){return D.borderBottomRightRadiusProperty}));r.d(t,"borderBottomLeftRadiusProperty",(function(){return D.borderBottomLeftRadiusProperty}));r.d(t,"clipPathProperty",(function(){return D.clipPathProperty}));r.d(t,"zIndexProperty",(function(){return D.zIndexProperty}));r.d(t,"opacityProperty",(function(){return D.opacityProperty}));r.d(t,"colorProperty",(function(){return D.colorProperty}));r.d(t,"fontInternalProperty",(function(){return D.fontInternalProperty}));r.d(t,"fontFamilyProperty",(function(){return D.fontFamilyProperty}));r.d(t,"fontSizeProperty",(function(){return D.fontSizeProperty}));r.d(t,"fontStyleProperty",(function(){return D.fontStyleProperty}));r.d(t,"fontWeightProperty",(function(){return D.fontWeightProperty}));r.d(t,"Visibility",(function(){return D.Visibility}));r.d(t,"visibilityProperty",(function(){return D.visibilityProperty}));r.d(t,"androidElevationProperty",(function(){return D.androidElevationProperty}));r.d(t,"androidDynamicElevationOffsetProperty",(function(){return D.androidDynamicElevationOffsetProperty}));r.d(t,"CssAnimationParser",(function(){return pt.CssAnimationParser}));r.d(t,"parseKeyframeDeclarations",(function(){return pt.parseKeyframeDeclarations}));r.d(t,"CSSHelper",(function(){return ht.a}));r.d(t,"Switch",(function(){return mt.a}));r.d(t,"TabContentItem",(function(){return gt.a}));r.d(t,"TabNavigationBase",(function(){return ft.a}));r.d(t,"getIconSpecSize",(function(){return ft.b}));r.d(t,"tabStripProperty",(function(){return ft.e}));r.d(t,"TabStrip",(function(){return vt.a}));r.d(t,"TabStripItem",(function(){return yt.a}));r.d(t,"TabView",(function(){return wt.a}));r.d(t,"TabViewItem",(function(){return wt.b}));r.d(t,"Tabs",(function(){return Ct.a}));r.d(t,"TextBase",(function(){return St.a}));r.d(t,"getTransformedText",(function(){return St.e}));r.d(t,"letterSpacingProperty",(function(){return _t.e}));r.d(t,"textAlignmentProperty",(function(){return _t.h}));r.d(t,"textDecorationProperty",(function(){return _t.i}));r.d(t,"textTransformProperty",(function(){return _t.k}));r.d(t,"whiteSpaceProperty",(function(){return _t.l}));r.d(t,"lineHeightProperty",(function(){return _t.f}));r.d(t,"FormattedString",(function(){return xt.a}));r.d(t,"Span",(function(){return Tt.a}));r.d(t,"TextField",(function(){return Pt.TextField}));r.d(t,"TextView",(function(){return At}));r.d(t,"TimePicker",(function(){return Et.a}));r.d(t,"Transition",(function(){return It.b}));r.d(t,"WebView",(function(){return Vt.a}));var n=r(79),i=r(71),a=r(174),o=r(78),l=r(84),d=r(160),p=r(42),h=r(48),m=r(95),g=r(92),f=r(90);class ControlStateChangeListener{constructor(e,t){console.log("ControlStateChangeListener is intended for IOS usage only.")}start(){}stop(){}}var v=r(11),y=r(5),w=r(19),C=r(102),S=r(106),b=r(0),x=r(37),T=r(161),P=r(33),k=r(89),A=r(91),E=r(39),I=r(41),V=r(107),L=r(14),N=r(4),O=r(27),D=r(2),F=r(7),R=class HtmlViewBase extends y.c{};R=__decorate([Object(w.a)("HtmlView")],R);R.prototype.recycleNativeView="auto";var B=new b.Property({name:"html",defaultValue:"",affectsLayout:!0});B.register(R);var M=new b.CssProperty({name:"linkColor",cssName:"link-color",equalityComparer:N.a.equals,valueConverter:e=>new N.a(e)});M.register(F.a);class html_view_HtmlView extends R{createNativeView(){return new android.widget.TextView(this._context)}initNativeView(){super.initNativeView();var e=this.nativeViewProtected;e.setTextIsSelectable(!0);e.setLinksClickable(!0);e.setMovementMethod(android.text.method.LinkMovementMethod.getInstance())}resetNativeView(){super.resetNativeView();this.nativeViewProtected.setAutoLinkMask(0)}[B.getDefault](){return""}[B.setNative](e){var t=15;e.search(/=0&&(t=0);this.nativeViewProtected.setAutoLinkMask(t);this.nativeViewProtected.setText(android.text.Html.fromHtml(e))}[D.colorProperty.getDefault](){return this.nativeViewProtected.getTextColors()}[D.colorProperty.setNative](e){e instanceof N.a?this.nativeViewProtected.setTextColor(e.android):this.nativeViewProtected.setTextColor(e)}[M.getDefault](){return this.nativeViewProtected.getLinkTextColors()}[M.setNative](e){e instanceof N.a&&e.android;e instanceof N.a?this.nativeViewProtected.setLinkTextColor(e.android):this.nativeViewProtected.setLinkTextColor(e)}[D.fontInternalProperty.getDefault](){return this.nativeViewProtected.getTypeface()}[D.fontInternalProperty.setNative](e){var t=e instanceof O.a?e.getAndroidTypeface():e;this.nativeViewProtected.setTypeface(t)}[D.fontSizeProperty.getDefault](){return{nativeSize:this.nativeViewProtected.getTextSize()}}[D.fontSizeProperty.setNative](e){"number"==typeof e?this.nativeViewProtected.setTextSize(e):this.nativeViewProtected.setTextSize(android.util.TypedValue.COMPLEX_UNIT_PX,e.nativeSize)}}var z=r(111),W=r(162),j=r(53),H=r(26);y.c.prototype.effectiveLeft=0;y.c.prototype.effectiveTop=0;function validateArgs(e){if(!e)throw new Error("element cannot be null or undefinied.");return e}var U=class AbsoluteLayoutBase extends H.a{static getLeft(e){return validateArgs(e).left}static setLeft(e,t){validateArgs(e).left=t}static getTop(e){return validateArgs(e).top}static setTop(e,t){validateArgs(e).top=t}onLeftChanged(e,t,r){}onTopChanged(e,t,r){}};U=__decorate([Object(w.a)("AbsoluteLayout")],U);U.prototype.recycleNativeView="auto";var q=new b.Property({name:"left",defaultValue:D.zeroLength,valueChanged:(e,t,r)=>{e.effectiveLeft=D.Length.toDevicePixels(r,0);var n=e.parent;n instanceof U&&n.onLeftChanged(e,t,r)},valueConverter:e=>D.Length.parse(e)});q.register(y.c);var G=new b.Property({name:"top",defaultValue:D.zeroLength,valueChanged:(e,t,r)=>{e.effectiveTop=D.Length.toDevicePixels(r,0);var n=e.parent;n instanceof U&&n.onTopChanged(e,t,r)},valueConverter:e=>D.Length.parse(e)});G.register(y.c);function makeNativeSetter(e){return function(t){var r=this.nativeViewProtected,n=r.getLayoutParams()||new org.nativescript.widgets.CommonLayoutParams;if(n instanceof org.nativescript.widgets.CommonLayoutParams){e.call(this,n,t);r.setLayoutParams(n)}}}y.c.prototype[G.setNative]=makeNativeSetter((function(e,t){e.top=D.Length.toDevicePixels(t,0)}));y.c.prototype[q.setNative]=makeNativeSetter((function(e,t){e.left=D.Length.toDevicePixels(t,0)}));class absolute_layout_AbsoluteLayout extends U{createNativeView(){return new org.nativescript.widgets.AbsoluteLayout(this._context)}}function dock_layout_common_validateArgs(e){if(!e)throw new Error("element cannot be null or undefinied.");return e}var $=class DockLayoutBase extends H.a{static getDock(e){return dock_layout_common_validateArgs(e).dock}static setDock(e,t){dock_layout_common_validateArgs(e).dock=t}onDockChanged(e,t,r){}};$=__decorate([Object(w.a)("DockLayout")],$);$.prototype.recycleNativeView="auto";var K=Object(b.makeParser)(Object(b.makeValidator)("left","top","right","bottom")),X=new b.Property({name:"dock",defaultValue:"left",valueChanged:(e,t,r)=>{if(e instanceof y.c){var n=e.parent;n instanceof $&&n.onDockChanged(e,t,r)}},valueConverter:K});X.register(y.c);var Y=new b.Property({name:"stretchLastChild",defaultValue:!0,affectsLayout:!1,valueConverter:v.b});Y.register($);y.c.prototype[X.setNative]=function(e){var t=this.nativeViewProtected,r=t.getLayoutParams()||new org.nativescript.widgets.CommonLayoutParams;if(r instanceof org.nativescript.widgets.CommonLayoutParams){switch(e){case"left":r.dock=org.nativescript.widgets.Dock.left;break;case"top":r.dock=org.nativescript.widgets.Dock.top;break;case"right":r.dock=org.nativescript.widgets.Dock.right;break;case"bottom":r.dock=org.nativescript.widgets.Dock.bottom;break;default:throw new Error("Invalid value for dock property: ".concat(e))}t.setLayoutParams(r)}};class dock_layout_DockLayout extends ${createNativeView(){return new org.nativescript.widgets.DockLayout(this._context)}[Y.getDefault](){return!0}[Y.setNative](e){this.nativeViewProtected.setStretchLastChild(e)}}var Q,J,Z,ee,te,re,ne,ie,ae,oe,se;!function(e){e.ROW="row";e.ROW_REVERSE="row-reverse";e.COLUMN="column";e.COLUMN_REVERSE="column-reverse";e.isValid=Object(b.makeValidator)(e.ROW,e.ROW_REVERSE,e.COLUMN,e.COLUMN_REVERSE);e.parse=Object(b.makeParser)(e.isValid)}(Q||(Q={}));!function(e){e.NOWRAP="nowrap";e.WRAP="wrap";e.WRAP_REVERSE="wrap-reverse";e.isValid=Object(b.makeValidator)(e.NOWRAP,e.WRAP,e.WRAP_REVERSE);e.parse=Object(b.makeParser)(e.isValid)}(J||(J={}));!function(e){e.FLEX_START="flex-start";e.FLEX_END="flex-end";e.CENTER="center";e.SPACE_BETWEEN="space-between";e.SPACE_AROUND="space-around";e.isValid=Object(b.makeValidator)(e.FLEX_START,e.FLEX_END,e.CENTER,e.SPACE_BETWEEN,e.SPACE_AROUND);e.parse=Object(b.makeParser)(e.isValid)}(Z||(Z={}));!function(e){e.DEFAULT=-1}(ee||(ee={}));!function(e){e.FLEX_START="flex-start";e.FLEX_END="flex-end";e.CENTER="center";e.BASELINE="baseline";e.STRETCH="stretch";e.isValid=Object(b.makeValidator)(e.FLEX_START,e.FLEX_END,e.CENTER,e.BASELINE,e.STRETCH);e.parse=Object(b.makeParser)(e.isValid)}(te||(te={}));!function(e){e.FLEX_START="flex-start";e.FLEX_END="flex-end";e.CENTER="center";e.SPACE_BETWEEN="space-between";e.SPACE_AROUND="space-around";e.STRETCH="stretch";e.isValid=Object(b.makeValidator)(e.FLEX_START,e.FLEX_END,e.CENTER,e.SPACE_BETWEEN,e.SPACE_AROUND,e.STRETCH);e.parse=Object(b.makeParser)(e.isValid)}(re||(re={}));!function(e){e.isValid=function isValid(e){return isFinite(parseInt(e))};e.parse=parseInt}(ne||(ne={}));!function(e){e.isValid=function isValid(e){var t=parseInt(e);return isFinite(t)&&e>=0};e.parse=parseFloat}(ie||(ie={}));!function(e){e.isValid=function isValid(e){var t=parseInt(e);return isFinite(t)&&e>=0};e.parse=parseFloat}(ae||(ae={}));!function(e){e.isValid=function isValid(e){if("boolean"==typeof e)return!0;if("string"==typeof e){var t=e.trim().toLowerCase();return"true"===t||"false"===t}return!1};e.parse=function parse(e){return e&&"true"===e.toString().trim().toLowerCase()}}(oe||(oe={}));!function(e){e.AUTO="auto";e.FLEX_START="flex-start";e.FLEX_END="flex-end";e.CENTER="center";e.BASELINE="baseline";e.STRETCH="stretch";e.isValid=Object(b.makeValidator)(e.AUTO,e.FLEX_START,e.FLEX_END,e.CENTER,e.BASELINE,e.STRETCH);e.parse=Object(b.makeParser)(e.isValid)}(se||(se={}));function flexbox_layout_common_validateArgs(e){if(!e)throw new Error("element cannot be null or undefinied.");return e}var le=class FlexboxLayoutBase extends H.a{get flexDirection(){return this.style.flexDirection}set flexDirection(e){this.style.flexDirection=e}get flexWrap(){return this.style.flexWrap}set flexWrap(e){this.style.flexWrap=e}get justifyContent(){return this.style.justifyContent}set justifyContent(e){this.style.justifyContent=e}get alignItems(){return this.style.alignItems}set alignItems(e){this.style.alignItems=e}get alignContent(){return this.style.alignContent}set alignContent(e){this.style.alignContent=e}static setOrder(e,t){flexbox_layout_common_validateArgs(e).style.order=t}static getOrder(e){return flexbox_layout_common_validateArgs(e).style.order}static setFlexGrow(e,t){flexbox_layout_common_validateArgs(e).style.flexGrow=t}static getFlexGrow(e){return flexbox_layout_common_validateArgs(e).style.flexGrow}static setFlexShrink(e,t){flexbox_layout_common_validateArgs(e).style.flexShrink=t}static getFlexShrink(e){return flexbox_layout_common_validateArgs(e).style.flexShrink}static setAlignSelf(e,t){flexbox_layout_common_validateArgs(e).style.alignSelf=t}static getAlignSelf(e){return flexbox_layout_common_validateArgs(e).style.alignSelf}static setFlexWrapBefore(e,t){flexbox_layout_common_validateArgs(e).style.flexWrapBefore=t}static getFlexWrapBefore(e){return flexbox_layout_common_validateArgs(e).style.flexWrapBefore}};le=__decorate([Object(w.a)("FlexboxLayout")],le);le.prototype.recycleNativeView="auto";var de=new b.CssProperty({name:"flexDirection",cssName:"flex-direction",defaultValue:Q.ROW,affectsLayout:!1,valueConverter:Q.parse});de.register(F.a);var ce=new b.CssProperty({name:"flexWrap",cssName:"flex-wrap",defaultValue:"nowrap",affectsLayout:!1,valueConverter:J.parse});ce.register(F.a);var ue=new b.CssProperty({name:"justifyContent",cssName:"justify-content",defaultValue:Z.FLEX_START,affectsLayout:!1,valueConverter:Z.parse});ue.register(F.a);var pe=new b.CssProperty({name:"alignItems",cssName:"align-items",defaultValue:te.STRETCH,affectsLayout:!1,valueConverter:te.parse});pe.register(F.a);var he=new b.CssProperty({name:"alignContent",cssName:"align-content",defaultValue:re.STRETCH,affectsLayout:!1,valueConverter:re.parse});he.register(F.a);var me=new b.CssProperty({name:"order",cssName:"order",defaultValue:1,valueConverter:ne.parse});me.register(F.a);Object.defineProperty(y.c.prototype,"order",{get(){return this.style.order},set(e){this.style.order=e},enumerable:!0,configurable:!0});var ge=new b.CssProperty({name:"flexGrow",cssName:"flex-grow",defaultValue:0,valueConverter:ie.parse});ge.register(F.a);Object.defineProperty(y.c.prototype,"flexGrow",{get(){return this.style.flexGrow},set(e){this.style.flexGrow=e},enumerable:!0,configurable:!0});var fe=new b.CssProperty({name:"flexShrink",cssName:"flex-shrink",defaultValue:1,valueConverter:ae.parse});fe.register(F.a);Object.defineProperty(y.c.prototype,"flexShrink",{get(){return this.style.flexShrink},set(e){this.style.flexShrink=e},enumerable:!0,configurable:!0});var ve=new b.CssProperty({name:"flexWrapBefore",cssName:"flex-wrap-before",defaultValue:!1,valueConverter:oe.parse});ve.register(F.a);Object.defineProperty(y.c.prototype,"flexWrapBefore",{get(){return this.style.flexWrapBefore},set(e){this.style.flexWrapBefore=e},enumerable:!0,configurable:!0});var ye=new b.CssProperty({name:"alignSelf",cssName:"align-self",defaultValue:se.AUTO,valueConverter:se.parse});ye.register(F.a);Object.defineProperty(y.c.prototype,"alignSelf",{get(){return this.style.alignSelf},set(e){this.style.alignSelf=e},enumerable:!0,configurable:!0});var we=new b.ShorthandProperty({name:"flexFlow",cssName:"flex-flow",getter:function getter(){return"".concat(this.flexDirection," ").concat(this.flexWrap)},converter:function converter(e){var t=[];if(e===b.unsetValue){t.push([de,e]);t.push([ce,e])}else{var r=e&&e.trim();if(r){var n=r.split(/\s+/);n.length>=1&&Q.isValid(n[0])&&t.push([de,Q.parse(n[0])]);e.length>=2&&J.isValid(n[1])&&t.push([ce,J.parse(n[1])])}}return t}});we.register(F.a);var Ce,Se,be=new b.ShorthandProperty({name:"flex",cssName:"flex",getter:function getter(){return"".concat(this.flexGrow," ").concat(this.flexShrink)},converter:function converter(e){var t=[];if(e===b.unsetValue){t.push([ge,e]);t.push([fe,e])}else{var r=e&&e.trim();if(r){var n=r.split(/\s+/);if(1===n.length)switch(n[0]){case"inital":t.push([ge,0]);t.push([fe,1]);break;case"auto":t.push([ge,1]);t.push([fe,1]);break;case"none":t.push([ge,0]);t.push([fe,0]);break;default:if(ie.isValid(n[0])){t.push([ge,ie.parse(n[0])]);t.push([fe,1])}}if(n.length>=2&&ie.isValid(n[0])&&ae.isValid(n[1])){t.push([ge,ie.parse(n[0])]);t.push([fe,ae.parse(n[1])])}}}return t}});be.register(F.a);function ensureNativeTypes(){if(!Ce){Ce=org.nativescript.widgets.FlexboxLayout;Se=Ce.LayoutParams}}function flexbox_layout_makeNativeSetter(e){return function(t){ensureNativeTypes();var r=this.nativeViewProtected,n=r.getLayoutParams()||new Se;if(n instanceof Se){e(n,t);r.setLayoutParams(n)}}}y.c.prototype[me.setNative]=flexbox_layout_makeNativeSetter((e,t)=>e.order=t);y.c.prototype[ge.setNative]=flexbox_layout_makeNativeSetter((e,t)=>e.flexGrow=t);y.c.prototype[fe.setNative]=flexbox_layout_makeNativeSetter((e,t)=>e.flexShrink=t);y.c.prototype[ve.setNative]=flexbox_layout_makeNativeSetter((e,t)=>e.wrapBefore=t);y.c.prototype[ye.setNative]=flexbox_layout_makeNativeSetter((e,t)=>e.alignSelf=Ae[t]);var _e={[Q.ROW]:0,[Q.ROW_REVERSE]:1,[Q.COLUMN]:2,[Q.COLUMN_REVERSE]:3},xe={[J.NOWRAP]:0,[J.WRAP]:1,[J.WRAP_REVERSE]:2},Te={[Z.FLEX_START]:0,[Z.FLEX_END]:1,[Z.CENTER]:2,[Z.SPACE_BETWEEN]:3,[Z.SPACE_AROUND]:4},Pe={[te.FLEX_START]:0,[te.FLEX_END]:1,[te.CENTER]:2,[te.BASELINE]:3,[te.STRETCH]:4},ke={[re.FLEX_START]:0,[re.FLEX_END]:1,[re.CENTER]:2,[re.SPACE_BETWEEN]:3,[re.SPACE_AROUND]:4,[re.STRETCH]:5},Ae={[se.AUTO]:-1,[se.FLEX_START]:0,[se.FLEX_END]:1,[se.CENTER]:2,[se.BASELINE]:3,[se.STRETCH]:4};class flexbox_layout_FlexboxLayout extends le{constructor(){super();ensureNativeTypes()}createNativeView(){return new Ce(this._context)}resetNativeView(){super.resetNativeView();this.nativeViewProtected.invalidateOrdersCache()}[de.getDefault](){return de.defaultValue}[de.setNative](e){this.nativeViewProtected.setFlexDirection(_e[e])}[ce.getDefault](){return ce.defaultValue}[ce.setNative](e){this.nativeViewProtected.setFlexWrap(xe[e])}[ue.getDefault](){return ue.defaultValue}[ue.setNative](e){this.nativeViewProtected.setJustifyContent(Te[e])}[pe.getDefault](){return pe.defaultValue}[pe.setNative](e){this.nativeViewProtected.setAlignItems(Pe[e])}[he.getDefault](){return he.defaultValue}[he.setNative](e){this.nativeViewProtected.setAlignContent(ke[e])}_updateNativeLayoutParams(e){super._updateNativeLayoutParams(e);this._setChildMinWidthNative(e,e.minWidth);this._setChildMinHeightNative(e,e.minHeight);var t=e.nativeViewProtected.getLayoutParams(),r=e.style;t.order=r.order;t.flexGrow=r.flexGrow;t.flexShrink=r.flexShrink;t.wrapBefore=r.flexWrapBefore;t.alignSelf=Ae[r.alignSelf];e.nativeViewProtected.setLayoutParams(t)}_setChildMinWidthNative(e,t){e._ignoreFlexMinWidthHeightReset||e._setMinWidthNative(0);var r=e.nativeViewProtected,n=r.getLayoutParams();if(n instanceof Se){n.minWidth=D.Length.toDevicePixels(t,0);r.setLayoutParams(n)}}_setChildMinHeightNative(e,t){e._ignoreFlexMinWidthHeightReset||e._setMinHeightNative(0);var r=e.nativeViewProtected,n=r.getLayoutParams();if(n instanceof Se){n.minHeight=D.Length.toDevicePixels(t,0);r.setLayoutParams(n)}}}var Ee=r(93),Ie=r(65),Ve=r(61),Le=class WrapLayoutBase extends H.a{};Le=__decorate([Object(w.a)("WrapLayout")],Le);Le.prototype.recycleNativeView="auto";var Ne=new b.Property({name:"itemWidth",defaultValue:"auto",affectsLayout:!1,valueConverter:e=>D.Length.parse(e),valueChanged:(e,t,r)=>e.effectiveItemWidth=D.Length.toDevicePixels(r,-1)});Ne.register(Le);var Oe=new b.Property({name:"itemHeight",defaultValue:"auto",affectsLayout:!1,valueConverter:e=>D.Length.parse(e),valueChanged:(e,t,r)=>e.effectiveItemHeight=D.Length.toDevicePixels(r,-1)});Oe.register(Le);var De=Object(b.makeParser)(Object(b.makeValidator)("horizontal","vertical")),Fe=new b.Property({name:"orientation",defaultValue:"horizontal",affectsLayout:!1,valueConverter:De});Fe.register(Le);class wrap_layout_WrapLayout extends Le{createNativeView(){return new org.nativescript.widgets.WrapLayout(this._context)}[Fe.setNative](e){this.nativeViewProtected.setOrientation("vertical"===e?org.nativescript.widgets.Orientation.vertical:org.nativescript.widgets.Orientation.horizontal)}[Ne.setNative](e){this.nativeViewProtected.setItemWidth(D.Length.toDevicePixels(e,-1))}[Oe.setNative](e){this.nativeViewProtected.setItemHeight(D.Length.toDevicePixels(e,-1))}}var Re,Be=r(163),Me=r(164),ze=r(6),We=Re=class PageBase extends g.a{get navigationContext(){return this._navigationContext}get actionBar(){if(!this._actionBar){this.hasActionBar=!0;this._actionBar=new n.a;this._addView(this._actionBar)}return this._actionBar}set actionBar(e){if(!e)throw new Error("ActionBar cannot be null or undefined.");if(this._actionBar!==e){this._actionBar&&this._removeView(this._actionBar);this.hasActionBar=!0;this._actionBar=e;this._addView(this._actionBar)}}get statusBarStyle(){return this.style.statusBarStyle}set statusBarStyle(e){this.style.statusBarStyle=e}get androidStatusBarBackground(){return this.style.androidStatusBarBackground}set androidStatusBarBackground(e){this.style.androidStatusBarBackground=e}get page(){return this}_addChildFromBuilder(e,t){t instanceof n.a?this.actionBar=t:super._addChildFromBuilder(e,t)}getKeyframeAnimationWithName(e){return this._styleScope.getKeyframeAnimationWithName(e)}get frame(){var e=this.parent;return e instanceof I.Frame?e:void 0}createNavigatedData(e,t){return{eventName:e,object:this,context:this.navigationContext,isBackNavigation:t}}onNavigatingTo(e,t,r){this._navigationContext=e;if(t&&this._styleScope){this._styleScope.ensureSelectors();this._cssState.isSelectorsLatestVersionApplied()||this._onCssStateChange()}t||null==r||(this.bindingContext=r);this.notify(this.createNavigatedData(Re.navigatingToEvent,t))}onNavigatedTo(e){this.notify(this.createNavigatedData(Re.navigatedToEvent,e))}onNavigatingFrom(e){this.notify(this.createNavigatedData(Re.navigatingFromEvent,e))}onNavigatedFrom(e){this.notify(this.createNavigatedData(Re.navigatedFromEvent,e));this._navigationContext=void 0}eachChildView(e){super.eachChildView(e);this.hasActionBar&&e(this.actionBar)}get _childrenCount(){return(this.content?1:0)+(this._actionBar?1:0)}};We.navigatingToEvent="navigatingTo";We.navigatedToEvent="navigatedTo";We.navigatingFromEvent="navigatingFrom";We.navigatedFromEvent="navigatedFrom";__decorate([ze.f,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Boolean,Object]),__metadata("design:returntype",void 0)],We.prototype,"onNavigatingTo",null);__decorate([ze.f,__metadata("design:type",Function),__metadata("design:paramtypes",[Boolean]),__metadata("design:returntype",void 0)],We.prototype,"onNavigatedTo",null);__decorate([ze.f,__metadata("design:type",Function),__metadata("design:paramtypes",[Boolean]),__metadata("design:returntype",void 0)],We.prototype,"onNavigatingFrom",null);__decorate([ze.f,__metadata("design:type",Function),__metadata("design:paramtypes",[Boolean]),__metadata("design:returntype",void 0)],We.prototype,"onNavigatedFrom",null);We=Re=__decorate([Object(w.a)("Page")],We);We.prototype.recycleNativeView="never";var je=new b.Property({name:"actionBarHidden",affectsLayout:!1,valueConverter:v.b});je.register(We);var He=new b.Property({name:"backgroundSpanUnderStatusBar",defaultValue:!1,affectsLayout:!1,valueConverter:v.b});He.register(We);var Ue=new b.Property({name:"enableSwipeBackNavigation",defaultValue:!0,valueConverter:v.b});Ue.register(We);var qe=new b.CssProperty({name:"statusBarStyle",cssName:"status-bar-style"});qe.register(F.a);var Ge=new b.CssProperty({name:"androidStatusBarBackground",cssName:"android-status-bar-background",equalityComparer:N.a.equals,valueConverter:e=>new N.a(e)});Ge.register(F.a);var $e,Ke=r(18);class page_Page extends We{createNativeView(){var e=new org.nativescript.widgets.GridLayout(this._context);e.addRow(new org.nativescript.widgets.ItemSpec(1,org.nativescript.widgets.GridUnitType.auto));e.addRow(new org.nativescript.widgets.ItemSpec(1,org.nativescript.widgets.GridUnitType.star));return e}initNativeView(){super.initNativeView();this.nativeViewProtected.setBackgroundColor(-1)}_addViewToNativeVisualTree(e,t){if(this.nativeViewProtected&&e.nativeViewProtected)if(e instanceof n.a){Ee.a.setRow(e,0);e.horizontalAlignment="stretch";e.verticalAlignment="top"}else Ee.a.setRow(e,1);return super._addViewToNativeVisualTree(e,t)}onLoaded(){super.onLoaded();this.hasActionBar||!0===this.actionBarHidden||(this.actionBar=new n.a);this.hasActionBar&&this.updateActionBar()}updateActionBar(){this.actionBar&&this.actionBar.update()}[je.setNative](e){e&&!this.hasActionBar||this.updateActionBar()}[qe.getDefault](){if(Ke.a.sdkVersion>="21"){var e=this._context.getWindow(),t=e.getDecorView();return{color:e.getStatusBarColor(),systemUiVisibility:t.getSystemUiVisibility()}}return null}[qe.setNative](e){if(Ke.a.sdkVersion>="21"){var t=this._context.getWindow(),r=t.getDecorView();if("light"===e){t.setStatusBarColor(-657931);r.setSystemUiVisibility(8192)}else if("dark"===e){t.setStatusBarColor(1711276032);r.setSystemUiVisibility(0)}else{t.setStatusBarColor(e.color);r.setSystemUiVisibility(e.systemUiVisibility)}}}[Ge.getDefault](){if(Ke.a.sdkVersion>="21"){var e=this._context.getWindow();return e.getStatusBarColor()}return null}[Ge.setNative](e){if(Ke.a.sdkVersion>="21"){var t=this._context.getWindow(),r=e instanceof N.a?e.android:e;t.setStatusBarColor(r)}}}__decorate([ze.f,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],page_Page.prototype,"onLoaded",null);var Xe=$e=class Placeholder extends y.c{createNativeView(){var e={eventName:$e.creatingViewEvent,object:this,view:void 0,context:this._context};this.notify(e);return e.view}};Xe.creatingViewEvent="creatingView";Xe=$e=__decorate([Object(w.a)("Placeholder")],Xe);var Ye=r(175),Qe=r(119),Je=r(9),Ze=r(23),et=class Repeater extends y.b{constructor(){super();this._isDirty=!1;this.itemsLayout=new Ve.a}onLoaded(){this._isDirty&&this.refresh();super.onLoaded()}get itemTemplateSelector(){return this._itemTemplateSelector}set itemTemplateSelector(e){if("string"==typeof e){this._itemTemplateSelectorBindable||(this._itemTemplateSelectorBindable=new j.Label);this._itemTemplateSelectorBindable.bind({sourceProperty:null,targetProperty:"templateKey",expression:e});this._itemTemplateSelector=(e,t,r)=>{e.$index=t;this._itemTemplateSelectorBindable.bindingContext===e&&(this._itemTemplateSelectorBindable.bindingContext=null);this._itemTemplateSelectorBindable.bindingContext=e;return this._itemTemplateSelectorBindable.get("templateKey")}}else"function"==typeof e&&(this._itemTemplateSelector=e)}_requestRefresh(){this._isDirty=!0;this.isLoaded&&this.refresh()}refresh(){this.itemsLayout&&this.itemsLayout.removeChildren();if(this.items){for(var e=this.items.length,t=0;t{e._requestRefresh()}});tt.register(et);var rt=new b.Property({name:"itemTemplates",affectsLayout:!0,valueConverter:e=>"string"==typeof e?p.a.parseMultipleTemplates(e,null):e,valueChanged:e=>{e._requestRefresh()}});rt.register(et);var nt=new b.Property({name:"items",affectsLayout:!0,valueChanged:(e,t,r)=>{t instanceof Ze.b&&Object(x.b)(t,Ze.b.changeEvent,e._onItemsChanged,e);r instanceof Ze.b&&Object(x.a)(r,Ze.b.changeEvent,e._onItemsChanged,e);e._requestRefresh()}});nt.register(et);var it=new b.Property({name:"itemsLayout",affectsLayout:!0,valueChanged:(e,t,r)=>{if(t){e._removeView(t);t.removeChildren()}r&&e._addView(r);e._requestRefresh()}});it.register(et);var at=r(141),ot=r(165),st=r(133),lt=r(166),dt=r(76),ct=r(136),ut=r(70),pt=r(116),ht=r(101),mt=r(167),gt=r(98),ft=r(36),vt=r(77),yt=r(57),wt=r(134),Ct=r(168),St=r(22),_t=r(21),xt=r(118),Tt=r(99),Pt=r(135);class text_view_common_TextViewBase extends A.a{}var kt=new b.Property({name:"maxLines",valueConverter:parseInt});kt.register(A.a);var At=class TextView extends text_view_common_TextViewBase{_configureEditText(e){e.setInputType(android.text.InputType.TYPE_CLASS_TEXT|android.text.InputType.TYPE_TEXT_VARIATION_NORMAL|android.text.InputType.TYPE_TEXT_FLAG_CAP_SENTENCES|android.text.InputType.TYPE_TEXT_FLAG_MULTI_LINE|android.text.InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS);e.setGravity(android.view.Gravity.TOP|android.view.Gravity.START)}resetNativeView(){super.resetNativeView();this.nativeTextViewProtected.setGravity(android.view.Gravity.TOP|android.view.Gravity.START)}[kt.getDefault](){return 0}[kt.setNative](e){e<=0?this.nativeTextViewProtected.setMaxLines(Number.MAX_VALUE):this.nativeTextViewProtected.setMaxLines(e)}};At=__decorate([Object(w.a)("TextView")],At);At.prototype.recycleNativeView="auto";var Et=r(169),It=r(32),Vt=r(170)},function(e,t,r){"use strict";r.d(t,"a",(function(){return FileSystemAccess}));var n,i=r(81),a=r(8);function getApplicationContext(){n||(n=Object(a.getNativeApplication)().getApplicationContext());return n}class FileSystemAccess{constructor(){this._pathSeparator="/";this.read=this.readSync.bind(this);this.write=this.writeSync.bind(this);this.readText=this.readTextSync.bind(this);this.writeText=this.writeTextSync.bind(this)}getLastModified(e){var t=new java.io.File(e);return new Date(t.lastModified())}getFileSize(e){var t=new java.io.File(e);return t.length()}getParent(e,t){try{var r=new java.io.File(e),n=r.getParentFile();return{path:n.getAbsolutePath(),name:n.getName()}}catch(e){t&&t(e);return}}getFile(e,t){return this.ensureFile(new java.io.File(e),!1,t)}getFolder(e,t){var r=new java.io.File(e),n=this.ensureFile(r,!0,t);if(n)return{path:n.path,name:n.name}}eachEntity(e,t,r){t&&this.enumEntities(e,t,r)}getEntities(e,t){var r,n=new Array;this.enumEntities(e,(function onEntity(e){n.push(e);return!0}),(function localError(e){t&&t(e);r=!0}));return r?null:n}fileExists(e){var t=new java.io.File(e);return t.exists()}folderExists(e){var t=new java.io.File(e);return t.exists()&&t.isDirectory()}deleteFile(e,t){try{var r=new java.io.File(e);if(!r.isFile()){t&&t({message:"The specified parameter is not a File entity."});return}r.delete()||t&&t({message:"File deletion failed"})}catch(e){t&&t(e)}}deleteFolder(e,t){try{var r=new java.io.File(e);if(!r.getCanonicalFile().isDirectory()){t&&t({message:"The specified parameter is not a Folder entity."});return}this.deleteFolderContent(r);r.delete()||t&&t({message:"Folder deletion failed."})}catch(e){t&&t(e)}}emptyFolder(e,t){try{var r=new java.io.File(e);if(!r.getCanonicalFile().isDirectory()){t&&t({message:"The specified parameter is not a Folder entity."});return}this.deleteFolderContent(r)}catch(e){t&&t(e)}}rename(e,t,r){var n=new java.io.File(e);if(n.exists()){var i=new java.io.File(t);i.exists()?r&&r(new Error("A file with the same name already exists.")):n.renameTo(i)||r&&r(new Error("Failed to rename file '"+e+"' to '"+t+"'"))}else r&&r(new Error("The file to rename does not exist"))}getDocumentsFolderPath(){var e=getApplicationContext().getFilesDir();return e.getAbsolutePath()}getLogicalRootPath(){var e=getApplicationContext().getFilesDir();return e.getCanonicalPath()}getTempFolderPath(){var e=getApplicationContext().getCacheDir();return e.getAbsolutePath()}getCurrentAppPath(){return this.getLogicalRootPath()+"/app"}readAsync(e){return new Promise((t,r)=>{try{org.nativescript.widgets.Async.File.read(e,new org.nativescript.widgets.Async.CompleteCallback({onComplete:e=>{t(e)},onError:e=>{r(new Error(e))}}),null)}catch(e){r(e)}})}readSync(e,t){try{var r=new java.io.File(e),n=new java.io.FileInputStream(r),i=Array.create("byte",r.length()),a=new java.io.DataInputStream(n);a.readFully(i);return i}catch(e){t&&t(e)}}writeAsync(e,t){return new Promise((r,n)=>{try{org.nativescript.widgets.Async.File.write(e,t,new org.nativescript.widgets.Async.CompleteCallback({onComplete:()=>{r()},onError:e=>{n(new Error(e))}}),null)}catch(e){n(e)}})}writeSync(e,t,r){try{var n=new java.io.File(e),i=new java.io.FileOutputStream(n);i.write(t,0,t.length);i.close()}catch(e){r&&r(e)}}readTextAsync(e,t){var r=t;r||(r=i.encoding.UTF_8);return new Promise((t,n)=>{try{org.nativescript.widgets.Async.File.readText(e,r,new org.nativescript.widgets.Async.CompleteCallback({onComplete:e=>{r===i.encoding.UTF_8&&(e=FileSystemAccess._removeUtf8Bom(e));t(e)},onError:e=>{n(new Error(e))}}),null)}catch(e){n(e)}})}readTextSync(e,t,r){try{var n=new java.io.File(e),a=new java.io.FileInputStream(n),o=r;o||(o=i.encoding.UTF_8);for(var l=new java.io.InputStreamReader(a,o),d=new java.io.BufferedReader(l),p=void 0,h="";;){p=d.readLine();if(null===p)break;h.length>0&&(h+="\n");h+=p}o===i.encoding.UTF_8&&(h=FileSystemAccess._removeUtf8Bom(h));d.close();return h}catch(e){t&&t(e)}}static _removeUtf8Bom(e){65279===e.charCodeAt(0)&&(e=e.slice(1));return e}writeTextAsync(e,t,r){var n=r;n||(n=i.encoding.UTF_8);return new Promise((r,i)=>{try{org.nativescript.widgets.Async.File.writeText(e,t,n,new org.nativescript.widgets.Async.CompleteCallback({onComplete:()=>{r()},onError:e=>{i(new Error(e))}}),null)}catch(e){i(e)}})}writeTextSync(e,t,r,n){try{var a=new java.io.File(e),o=new java.io.FileOutputStream(a),l=n;l||(l=i.encoding.UTF_8);var d=new java.io.OutputStreamWriter(o,l);d.write(t);d.close()}catch(e){r&&r(e)}}deleteFolderContent(e){var t,r=e.listFiles();if(0===r.length)return!0;for(var n=!1,i=0;i=0&&te&&this.list.add(e))}add(){for(var e=arguments.length,t=new Array(e),r=0;rthis.list.add(e));return this}remove(){for(var e=arguments.length,t=new Array(e),r=0;rthis.list.delete(e));return this}get(){return Array.from(this.list).join(" ")}}class Theme{static setMode(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.Application.getRootView();Theme.currentMode=e;Theme.rootView=t;if(t&&e){var r=new ClassList(Theme.rootView.className);r.remove(Theme.Light,Theme.Dark);if(Theme.currentMode!==Theme.Auto){d(Theme.Light);d(Theme.Dark);r.add(Theme.currentMode)}else setTimeout(appCommon.systemAppearanceChanged.bind(this,Theme.rootView,a.Application.systemAppearance()));Theme.rootView.className=r.get()}}static toggleMode(e){if(void 0!==e)Theme.setMode(e?Theme.Dark:Theme.Light);else{var t=Theme.currentMode===Theme.Auto&&a.Application.systemAppearance?"ns-".concat(a.Application.systemAppearance()):Theme.getMode();Theme.setMode(t===Theme.Light?Theme.Dark:Theme.Light)}}static getMode(){var e=a.Application.getRootView();return Theme.currentMode||(-1!==(e&&e.className||"").indexOf(Theme.Dark)?Theme.Dark:Theme.Light)}}Theme.Light="ns-light";Theme.Dark="ns-dark";Theme.Auto="auto";t.a=Theme;var v=o.c._setupAsRootView;o.c._setupAsRootView=function(){v.call(this,...arguments);Theme.setMode(Theme.currentMode,this)};var y=a.Application.systemAppearanceChanged;y&&(a.Application.systemAppearanceChanged=function(){Theme.currentMode===Theme.Auto&&y.call(this,...arguments)});var w=a.Application.systemAppearance;w&&(a.Application.systemAppearance=function(){return Theme.currentMode===Theme.Auto?w.call(this,...arguments):Theme.currentMode.substr(3)});function updateRootClasses(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.Application.getRootView(),r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=new ClassList(t.className);n.remove("ns-portrait","ns-landscape","ns-unknown",...r).add("ns-".concat(e),...r);t.className=n.get()}function handleOrientation(e){var{newValue:t}=e;updateRootClasses(t);var r=o.c._getRootModalViews();if(r&&r.length){var n=new ClassList(a.Application.getRootView().className);r.forEach(e=>updateRootClasses(t,e,n.add("ns-modal").list))}}function getOrientation(){return p.heightDIPs>p.widthDIPs?"portrait":"landscape"}var C={defineProperty(e,t,r){if(r&&"value"in r){e[t]=r.value;if(r.value instanceof l.Frame){var n=new ClassList(a.Application.getRootView().className);updateRootClasses(getOrientation(),r.value,n.add("ns-modal").list)}}return e}};a.Application.on(a.Application.displayedEvent,()=>{var e=a.Application.getRootView();if(e&&!e.cssClasses.has("ns-root")){o.c._rootModalViews=new Proxy(o.c._rootModalViews,C);e.className=new ClassList(e.className).add("ns-root",m,"ns-".concat(i.a.deviceType.toLowerCase())).get();if(!f){handleOrientation({newValue:getOrientation()});a.Application.on(a.Application.orientationChangedEvent,handleOrientation);f=!0}}else e&&(e.className=new ClassList(e.className).add("".concat(m,"__").concat(g)).get())})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(8),i=r(326),a=function(){function UriHelper(){}UriHelper._calculateFileUri=function(e){var t=android.provider.DocumentsContract,r=android.os.Build.VERSION.SDK_INT>=19;if(r&&t.isDocumentUri(n.android.context,e)){var i=void 0,a=void 0,o=void 0,l=null;if(UriHelper.isExternalStorageDocument(e)){i=t.getDocumentId(e);a=i.split(":")[1];o=i.split(":")[0];if("primary"===o.toLowerCase())return android.os.Environment.getExternalStorageDirectory()+"/"+a}else{if(UriHelper.isDownloadsDocument(e))return UriHelper.getDataColumn(e,null,null,!0);if(UriHelper.isMediaDocument(e)){i=t.getDocumentId(e);var d=i.split(":");o=d[0];a=d[1];"image"===o?l=android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI:"video"===o?l=android.provider.MediaStore.Video.Media.EXTERNAL_CONTENT_URI:"audio"===o&&(l=android.provider.MediaStore.Audio.Media.EXTERNAL_CONTENT_URI);var p=[a];return UriHelper.getDataColumn(l,"_id=?",p,!1)}}}else{if("content"===e.getScheme())return UriHelper.getDataColumn(e,null,null,!1);if("file"===e.getScheme())return e.getPath()}};UriHelper.getDataColumn=function(e,t,r,n){var i,a=null;if(n){var o=["_display_name"];try{a=this.getContentResolver().query(e,o,t,r,null);if(null!=a&&a.moveToFirst()){var l=a.getColumnIndexOrThrow(o[0]);i=a.getString(l);if(i){var d=android.os.Environment.getExternalStoragePublicDirectory(android.os.Environment.DIRECTORY_DOWNLOADS);i=d+"/"+i;return i}}}catch(e){console.log(e)}finally{a&&a.close()}}else{var p;o=[android.provider.MediaStore.MediaColumns.DATA];try{a=this.getContentResolver().query(e,o,t,r,null);if(null!=a&&a.moveToFirst()){l=a.getColumnIndexOrThrow(o[0]);p=a.getString(l);if(p)return p}}catch(e){console.log(e)}finally{a&&a.close()}}};UriHelper.isExternalStorageDocument=function(e){return"com.android.externalstorage.documents"===e.getAuthority()};UriHelper.isDownloadsDocument=function(e){return"com.android.providers.downloads.documents"===e.getAuthority()};UriHelper.isMediaDocument=function(e){return"com.android.providers.media.documents"===e.getAuthority()};UriHelper.getContentResolver=function(){return n.android.nativeApp.getContentResolver()};return UriHelper}(),o=function(){function FilePicker(e){this._options=e}Object.defineProperty(FilePicker.prototype,"mode",{get:function get(){return this._options&&this._options.mode&&"single"===this._options.mode.toLowerCase()?"single":"multiple"},enumerable:!0,configurable:!0});Object.defineProperty(FilePicker.prototype,"mimeTypeFromExtensions",{get:function get(){var e=null,t=android.webkit.MimeTypeMap.getSingleton(),r=this._options&&"extensions"in this._options?this._options.extensions:[];if(r&&r.length>0){e=Array.create(java.lang.String,r.length);for(var n=0;n=23?i.requestPermission([android.Manifest.permission.READ_EXTERNAL_STORAGE]):Promise.resolve()};FilePicker.prototype.present=function(){var e=this;return new Promise((function(t,n){var i=r(8);i.android.on(i.AndroidApplication.activityResultEvent,(function onResult(e){var r=e.requestCode,o=e.resultCode,l=e.intent;if(9192===r){if(o!==android.app.Activity.RESULT_OK){i.android.off(i.AndroidApplication.activityResultEvent,onResult);n(new Error("Image picker activity result code "+o));return}try{var d=[],p=l.getClipData();if(p)for(var h=p.getItemCount(),m=0;m{var i,a,o;try{if("string"==typeof n){o=p.includes(n)?"@nativescript/core/ui":Object(d.c)(n,"");a=e.loadModule(o,!0)}else a=e.loadModule("@nativescript/core/ui",!1);var l=a[t];i=new l}catch(e){var h=r(50);throw new h.ScopeError(e,"Module '"+(o||t)+"' not found for element '"+(n?n+":":"")+t+"'.")}return{instance:i,instanceModule:a}}),m=Object(a.f)("getComponentModuleExports",(t,r,n)=>{if(n){var i=n.codeFile||n.import;if(i){var a=Object(d.c)(Object(l.a)(i),"");if(!a)throw new Error('Code file with path "'.concat(i,'" cannot be found! Looking for webpack module with name "').concat(a,'"'));r=e.loadModule(a,!0);t.exports=r}}return r}),g=Object(a.f)("applyComponentCss",(e,t,r)=>{var n=!1;if(r&&r.cssFile){var i=Object(d.c)(Object(l.a)(r.cssFile),"css");if(!i)throw new Error('Css file with path "'.concat(r.cssFile,'" cannot be found! Looking for webpack module with name "').concat(i,'"'));e.addCssFile(i);n=!0}if(t&&!n){var a=Object(d.c)(t,"css");a&&e.addCssFile(a)}}),f=Object(a.f)("applyComponentAttributes",(e,t,r,n)=>{if(e&&t)for(var i in n){var a=n[i];if(-1!==i.indexOf(":")){var l=i.split(":")[0].trim();if(l.toLowerCase()!==o.a.os.toLowerCase())continue;i=i.split(":")[1].trim()}if(-1!==i.indexOf(".")){for(var d=e,p=i.split("."),h=p[p.length-1],m=0;me[0].toUpperCase()+e.substring(1)).join("");var o,{instance:l,instanceModule:d}=h(e,t,null);n=m(l,n,r);a&&g(l,i,r);f(l,d,n,r);l&&d&&(o={component:l,exports:d});return o}function setPropertyValue(e,t,r,a,o){if(function isBinding(e){var t;if("string"==typeof e){var r=e.trim();t=0===r.indexOf("{{")&&r.lastIndexOf("}}")===r.length-2}return t}(o)&&e.bind){var l=Object(i.b)(a,function getBindingExpressionFromAttribute(e){return e.replace("{{","").replace("}}","").trim()}(o));e.bind({sourceProperty:l[i.a.sourceProperty],targetProperty:l[i.a.targetProperty],expression:l[i.a.expression],twoWay:l[i.a.twoWay]},l[i.a.source])}else if(Object(n.c)(a,e)){var d=r&&r[o];"function"==typeof d&&e.on(a,d)}else(function isKnownFunction(e,t){return t.constructor&&"knownFunctions"in t.constructor&&-1!==t.constructor.knownFunctions.indexOf(e)})(a,e)&&r&&"function"==typeof r[o]?e[a]=r[o]:e[a]=o}}).call(this,r(20))},function(e,t,r){"use strict";r.d(t,"a",(function(){return Zip}));var n=r(17),i=r(3);class Zip{static debug(e){this.debugEnabled&&console&&console.log&&console.log(e)}static zip(e){return new Promise((t,r)=>{var a,o;if(!n.Folder.exists(null==e?void 0:e.directory))return r("Directory does not exist, invalid directory path: "+(null==e?void 0:e.directory));try{var l=null!==(a=null==e?void 0:e.archive)&&void 0!==a?a:n.path.join(n.knownFolders.temp().path,"".concat(java.util.UUID.randomUUID().toString(),"_archive.zip"));this.debug("Zip.zip - folder="+(null==e?void 0:e.directory)+"\nZip.zip - destinationPath="+l);var d=new net.lingala.zip4j.ZipFile(new java.io.File(l));d.setRunInThread(!0);var p=new net.lingala.zip4j.model.ZipParameters;if(i.Utils.isString(null==e?void 0:e.password)){p.setEncryptionMethod(net.lingala.zip4j.model.enums.EncryptionMethod.AES);d.setPassword(java.lang.String.valueOf(null==e?void 0:e.password).toCharArray())}p.setCompressionMethod(net.lingala.zip4j.model.enums.CompressionMethod.DEFLATE);p.setCompressionLevel(net.lingala.zip4j.model.enums.CompressionLevel.NORMAL);p.setIncludeRootFolder(null===(o=null==e?void 0:e.keepParent)||void 0===o||o);var h=d.getProgressMonitor();d.addFolder(new java.io.File(null==e?void 0:e.directory),p);var m=setInterval((function(){if(h.getState()===net.lingala.zip4j.progress.ProgressMonitor.State.BUSY)"function"==typeof(null==e?void 0:e.onProgress)&&(null==e||e.onProgress(h.getPercentDone()));else{var n=h.getResult();if(n===net.lingala.zip4j.progress.ProgressMonitor.Result.SUCCESS){"function"==typeof(null==e?void 0:e.onProgress)&&(null==e||e.onProgress(h.getPercentDone()));t(l)}else n===net.lingala.zip4j.progress.ProgressMonitor.Result.ERROR?r(h.getException()?h.getException().getMessage():"error"):r("cancelled");clearInterval(m)}}),Zip.ProgressUpdateRate)}catch(e){r(e)}})}static unzip(e){return(null==e?void 0:e.archive)&&n.File.exists(null==e?void 0:e.archive)?new Promise((t,r)=>{var a;try{this.debug("Zip.unzip - archive=".concat(null==e?void 0:e.archive));var o=new net.lingala.zip4j.ZipFile(null==e?void 0:e.archive);o.setRunInThread(!0);o.isEncrypted()&&i.Utils.isString(null==e?void 0:e.password)&&o.setPassword(java.lang.String.valueOf(null==e?void 0:e.password).toCharArray());var l=n.path.join(n.knownFolders.temp().path,java.util.UUID.randomUUID().toString()),d=null!==(a=null==e?void 0:e.directory)&&void 0!==a?a:l,p=new java.io.File(d);p.exists()||p.mkdirs();var h=o.getProgressMonitor();o.extractAll(d);var m=setInterval(()=>{var n=h.getState();if(n===net.lingala.zip4j.progress.ProgressMonitor.State.BUSY)"function"==typeof(null==e?void 0:e.onProgress)&&(null==e||e.onProgress(h.getPercentDone()));else{var i=h.getResult();if(i===net.lingala.zip4j.progress.ProgressMonitor.Result.SUCCESS){"function"==typeof(null==e?void 0:e.onProgress)&&(null==e||e.onProgress(h.getPercentDone()));t(d)}else i===net.lingala.zip4j.progress.ProgressMonitor.Result.ERROR?r(h.getException()?h.getException().getMessage():"error"):r("cancelled");clearInterval(m)}},Zip.ProgressUpdateRate)}catch(e){r(e)}}):Promise.reject("File does not exist, invalid archive path: ".concat(null==e?void 0:e.archive))}}Zip.debugEnabled=!1;Zip.ProgressUpdateRate=100},function(e,t){e.exports=function createCustomError(e,t){var r=Object.create(SyntaxError.prototype),n=new Error;r.name=e;r.message=t;Object.defineProperty(r,"stack",{get:function get(){return(n.stack||"").replace(/^(.+\n){1,3}/,e+": "+t+"\n")}});return r}},function(e,t){function noop(e){return e}function generate(e,t,r,n){var i;switch(e.type){case"Group":i=function generateSequence(e,t,r,n){var i=" "===e.combinator||n?e.combinator:" "+e.combinator+" ",a=e.terms.map((function(e){return generate(e,t,r,n)})).join(i);(e.explicit||r)&&(a=(n||","===a[0]?"[":"[ ")+a+(n?"]":" ]"));return a}(e,t,r,n)+(e.disallowEmpty?"!":"");break;case"Multiplier":return generate(e.term,t,r,n)+t(function generateMultiplier(e){return 0===e.min&&0===e.max?"*":0===e.min&&1===e.max?"?":1===e.min&&0===e.max?e.comma?"#":"+":1===e.min&&1===e.max?"":(e.comma?"#":"")+(e.min===e.max?"{"+e.min+"}":"{"+e.min+","+(0!==e.max?e.max:"")+"}")}(e),e);case"Type":i="<"+e.name+(e.opts?t(function generateTypeOpts(e){switch(e.type){case"Range":return" ["+(null===e.min?"-∞":e.min)+","+(null===e.max?"∞":e.max)+"]";default:throw new Error("Unknown node type `"+e.type+"`")}}(e.opts),e.opts):"")+">";break;case"Property":i="<'"+e.name+"'>";break;case"Keyword":i=e.name;break;case"AtKeyword":i="@"+e.name;break;case"Function":i=e.name+"(";break;case"String":case"Token":i=e.value;break;case"Comma":i=",";break;default:throw new Error("Unknown node type `"+e.type+"`")}return t(i,e)}e.exports=function(e,t){var r=noop,n=!1,i=!1;if("function"==typeof t)r=t;else if(t){n=Boolean(t.forceBraces);i=Boolean(t.compact);"function"==typeof t.decorate&&(r=t.decorate)}return generate(e,r,n,i)}},function(e,t){var r=Object.prototype.hasOwnProperty,n=Object.create(null),i=Object.create(null);function isCustomProperty(e,t){t=t||0;return e.length-t>=2&&45===e.charCodeAt(t)&&45===e.charCodeAt(t+1)}function getVendorPrefix(e,t){t=t||0;if(e.length-t>=3&&45===e.charCodeAt(t)&&45!==e.charCodeAt(t+1)){var r=e.indexOf("-",t+2);if(-1!==r)return e.substring(t,r+1)}return""}e.exports={keyword:function getKeywordDescriptor(e){if(r.call(n,e))return n[e];var t=e.toLowerCase();if(r.call(n,t))return n[e]=n[t];var i=isCustomProperty(t,0),a=i?"":getVendorPrefix(t,0);return n[e]=Object.freeze({basename:t.substr(a.length),name:t,vendor:a,prefix:a,custom:i})},property:function getPropertyDescriptor(e){if(r.call(i,e))return i[e];var t=e,n=e[0];"/"===n?n="/"===e[1]?"//":"/":"_"!==n&&"*"!==n&&"$"!==n&&"#"!==n&&"+"!==n&&"&"!==n&&(n="");var a=isCustomProperty(t,n.length);if(!a){t=t.toLowerCase();if(r.call(i,t))return i[e]=i[t]}var o=a?"":getVendorPrefix(t,n.length),l=t.substr(0,n.length+o.length);return i[e]=Object.freeze({basename:t.substr(l.length),name:t.substr(n.length),hack:n,vendor:o,prefix:l,custom:a})},isCustomProperty:isCustomProperty,vendorPrefix:getVendorPrefix}},function(e,t,r){var n=r(223),i=function createCharMap(e){for(var t="function"==typeof Uint32Array?new Uint32Array(128):new Array(128),r=0;r<128;r++)t[r]=e(String.fromCharCode(r))?1:0;return t}((function(e){return/[a-zA-Z0-9\-]/.test(e)})),a={" ":1,"&&":2,"||":3,"|":4};function scanSpaces(e){return e.substringToPos(e.findWsEnd(e.pos))}function scanWord(e){for(var t=e.pos;t=128||0===i[r])break}e.pos===t&&e.error("Expect a keyword");return e.substringToPos(t)}function scanNumber(e){for(var t=e.pos;t57)break}e.pos===t&&e.error("Expect a number");return e.substringToPos(t)}function scanString(e){var t=e.str.indexOf("'",e.pos+1);if(-1===t){e.pos=e.str.length;e.error("Expect an apostrophe")}return e.substringToPos(t+1)}function readMultiplierRange(e){var t,r=null;e.eat(123);t=scanNumber(e);if(44===e.charCode()){e.pos++;125!==e.charCode()&&(r=scanNumber(e))}else r=t;e.eat(125);return{min:Number(t),max:r?Number(r):0}}function maybeMultiplied(e,t){var r=function readMultiplier(e){var t=null,r=!1;switch(e.charCode()){case 42:e.pos++;t={min:0,max:0};break;case 43:e.pos++;t={min:1,max:0};break;case 63:e.pos++;t={min:0,max:1};break;case 35:e.pos++;r=!0;t=123===e.charCode()?readMultiplierRange(e):{min:1,max:0};break;case 123:t=readMultiplierRange(e);break;default:return null}return{type:"Multiplier",comma:r,min:t.min,max:t.max,term:null}}(e);if(null!==r){r.term=t;return r}return t}function maybeToken(e){var t=e.peek();return""===t?null:{type:"Token",value:t}}function readType(e){var t,r=null;e.eat(60);t=scanWord(e);if(40===e.charCode()&&41===e.nextCharCode()){e.pos+=2;t+="()"}if(91===e.charCodeAt(e.findWsEnd(e.pos))){scanSpaces(e);r=function readTypeRange(e){var t=null,r=null,n=1;e.eat(91);if(45===e.charCode()){e.peek();n=-1}-1==n&&8734===e.charCode()?e.peek():t=n*Number(scanNumber(e));scanSpaces(e);e.eat(44);scanSpaces(e);if(8734===e.charCode())e.peek();else{n=1;if(45===e.charCode()){e.peek();n=-1}r=n*Number(scanNumber(e))}e.eat(93);return null===t&&null===r?null:{type:"Range",min:t,max:r}}(e)}e.eat(62);return maybeMultiplied(e,{type:"Type",name:t,opts:r})}function regroupTerms(e,t){function createGroup(e,t){return{type:"Group",terms:e,combinator:t,disallowEmpty:!1,explicit:!1}}t=Object.keys(t).sort((function(e,t){return a[e]-a[t]}));for(;t.length>0;){for(var r=t.shift(),n=0,i=0;n1){e.splice(i,n-i,createGroup(e.slice(i,n),r));n=i+1}i=-1}}-1!==i&&t.length&&e.splice(i,n-i,createGroup(e.slice(i,n),r))}return r}function readImplicitGroup(e){for(var t,r=[],n={},i=null,a=e.pos;t=peek(e);)if("Spaces"!==t.type){if("Combinator"===t.type){if(null===i||"Combinator"===i.type){e.pos=a;e.error("Unexpected combinator")}n[t.value]=!0}else if(null!==i&&"Combinator"!==i.type){n[" "]=!0;r.push({type:"Combinator",value:" "})}r.push(t);i=t;a=e.pos}if(null!==i&&"Combinator"===i.type){e.pos-=a;e.error("Unexpected combinator")}return{type:"Group",terms:r,combinator:regroupTerms(r,n)||" ",disallowEmpty:!1,explicit:!1}}function peek(e){var t=e.charCode();if(t<128&&1===i[t])return function readKeywordOrFunction(e){var t;t=scanWord(e);if(40===e.charCode()){e.pos++;return{type:"Function",name:t}}return maybeMultiplied(e,{type:"Keyword",name:t})}(e);switch(t){case 93:break;case 91:return maybeMultiplied(e,function readGroup(e){var t;e.eat(91);t=readImplicitGroup(e);e.eat(93);t.explicit=!0;if(33===e.charCode()){e.pos++;t.disallowEmpty=!0}return t}(e));case 60:return 39===e.nextCharCode()?function readProperty(e){var t;e.eat(60);e.eat(39);t=scanWord(e);e.eat(39);e.eat(62);return maybeMultiplied(e,{type:"Property",name:t})}(e):readType(e);case 124:return{type:"Combinator",value:e.substringToPos(124===e.nextCharCode()?e.pos+2:e.pos+1)};case 38:e.pos++;e.eat(38);return{type:"Combinator",value:"&&"};case 44:e.pos++;return{type:"Comma"};case 39:return maybeMultiplied(e,{type:"String",value:scanString(e)});case 32:case 9:case 10:case 13:case 12:return{type:"Spaces",value:scanSpaces(e)};case 64:t=e.nextCharCode();if(t<128&&1===i[t]){e.pos++;return{type:"AtKeyword",name:scanWord(e)}}return maybeToken(e);case 42:case 43:case 63:case 35:case 33:break;case 123:t=e.nextCharCode();if(t<48||t>57)return maybeToken(e);break;default:return maybeToken(e)}}function parse(e){var t=new n(e),r=readImplicitGroup(t);t.pos!==e.length&&t.error("Unexpected input");1===r.terms.length&&"Group"===r.terms[0].type&&(r=r.terms[0]);return r}parse("[a&&#|<'c'>*||e() f{2} /,(% g#{1,2} h{2,})]!");e.exports=parse},function(e,t){t.getArg=function getArg(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')};var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function urlParse(e){var t=e.match(r);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}t.urlParse=urlParse;function urlGenerate(e){var t="";e.scheme&&(t+=e.scheme+":");t+="//";e.auth&&(t+=e.auth+"@");e.host&&(t+=e.host);e.port&&(t+=":"+e.port);e.path&&(t+=e.path);return t}t.urlGenerate=urlGenerate;function normalize(e){var r=e,n=urlParse(e);if(n){if(!n.path)return e;r=n.path}for(var i,a=t.isAbsolute(r),o=r.split(/\/+/),l=0,d=o.length-1;d>=0;d--){i=o[d];if("."===i)o.splice(d,1);else if(".."===i)l++;else if(l>0)if(""===i){o.splice(d+1,l);l=0}else{o.splice(d,2);l--}}r=o.join("/");""===r&&(r=a?"/":".");if(n){n.path=r;return urlGenerate(n)}return r}t.normalize=normalize;function join(e,t){""===e&&(e=".");""===t&&(t=".");var r=urlParse(t),i=urlParse(e);i&&(e=i.path||"/");if(r&&!r.scheme){i&&(r.scheme=i.scheme);return urlGenerate(r)}if(r||t.match(n))return t;if(i&&!i.host&&!i.path){i.host=t;return urlGenerate(i)}var a="/"===t.charAt(0)?t:normalize(e.replace(/\/+$/,"")+"/"+t);if(i){i.path=a;return urlGenerate(i)}return a}t.join=join;t.isAbsolute=function(e){return"/"===e.charAt(0)||r.test(e)};t.relative=function relative(e,t){""===e&&(e=".");e=e.replace(/\/$/,"");for(var r=0;0!==t.indexOf(e+"/");){var n=e.lastIndexOf("/");if(n<0)return t;e=e.slice(0,n);if(e.match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)};var i,a=(i=Object.create(null),!("__proto__"in i));function identity(e){return e}t.toSetString=a?identity:function toSetString(e){return isProtoString(e)?"$"+e:e};t.fromSetString=a?identity:function fromSetString(e){return isProtoString(e)?e.slice(1):e};function isProtoString(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}t.compareByOriginalPositions=function compareByOriginalPositions(e,t,r){var n=strcmp(e.source,t.source);if(0!==n)return n;n=e.originalLine-t.originalLine;if(0!==n)return n;n=e.originalColumn-t.originalColumn;if(0!==n||r)return n;n=e.generatedColumn-t.generatedColumn;if(0!==n)return n;n=e.generatedLine-t.generatedLine;return 0!==n?n:strcmp(e.name,t.name)};t.compareByGeneratedPositionsDeflated=function compareByGeneratedPositionsDeflated(e,t,r){var n=e.generatedLine-t.generatedLine;if(0!==n)return n;n=e.generatedColumn-t.generatedColumn;if(0!==n||r)return n;n=strcmp(e.source,t.source);if(0!==n)return n;n=e.originalLine-t.originalLine;if(0!==n)return n;n=e.originalColumn-t.originalColumn;return 0!==n?n:strcmp(e.name,t.name)};function strcmp(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.compareByGeneratedPositionsInflated=function compareByGeneratedPositionsInflated(e,t){var r=e.generatedLine-t.generatedLine;if(0!==r)return r;r=e.generatedColumn-t.generatedColumn;if(0!==r)return r;r=strcmp(e.source,t.source);if(0!==r)return r;r=e.originalLine-t.originalLine;if(0!==r)return r;r=e.originalColumn-t.originalColumn;return 0!==r?r:strcmp(e.name,t.name)};t.parseSourceMapInput=function parseSourceMapInput(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))};t.computeSourceURL=function computeSourceURL(e,t,r){t=t||"";if(e){"/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/");t=e+t}if(r){var n=urlParse(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var i=n.path.lastIndexOf("/");i>=0&&(n.path=n.path.substring(0,i+1))}t=join(urlGenerate(n),t)}return normalize(t)}},function(e,t,r){e.exports={AnPlusB:r(250),Atrule:r(251),AtrulePrelude:r(252),AttributeSelector:r(253),Block:r(254),Brackets:r(255),CDC:r(256),CDO:r(257),ClassSelector:r(258),Combinator:r(259),Comment:r(260),Declaration:r(261),DeclarationList:r(262),Dimension:r(263),Function:r(264),Hash:r(265),Identifier:r(266),IdSelector:r(267),MediaFeature:r(268),MediaQuery:r(269),MediaQueryList:r(270),Nth:r(271),Number:r(272),Operator:r(273),Parentheses:r(274),Percentage:r(275),PseudoClassSelector:r(276),PseudoElementSelector:r(277),Ratio:r(278),Raw:r(94),Rule:r(279),Selector:r(280),SelectorList:r(281),String:r(282),StyleSheet:r(283),TypeSelector:r(284),UnicodeRange:r(285),Url:r(286),Value:r(287),WhiteSpace:r(288)}},function(e,t,r){"use strict";(function(e){r.d(t,"b",(function(){return SegmentedBarItem}));r.d(t,"a",(function(){return SegmentedBar}));var n,i,a,o,l,d=r(27),p=r(66),h=r(19),m=r(2),g=r(4),f=r(9);class SegmentedBarItem extends p.b{setupNativeView(e){var t=this.parent.nativeViewProtected.getTabWidget().getChildAt(e).findViewById(16908310);this.setNativeView(t);t&&this.titleDirty&&this._update()}_update(){var e=this.nativeViewProtected;if(e){var t=this.title;t=null==t?"":t;e.setText(t);this.titleDirty=!1}else this.titleDirty=!0}[m.colorProperty.getDefault](){return this.nativeViewProtected.getCurrentTextColor()}[m.colorProperty.setNative](e){var t=e instanceof g.a?e.android:e;this.nativeViewProtected.setTextColor(t)}[m.fontSizeProperty.getDefault](){return{nativeSize:this.nativeViewProtected.getTextSize()}}[m.fontSizeProperty.setNative](e){"number"==typeof e?this.nativeViewProtected.setTextSize(e):this.nativeViewProtected.setTextSize(android.util.TypedValue.COMPLEX_UNIT_PX,e.nativeSize)}[m.fontInternalProperty.getDefault](){return this.nativeViewProtected.getTypeface()}[m.fontInternalProperty.setNative](e){this.nativeViewProtected.setTypeface(e instanceof d.a?e.getAndroidTypeface():e)}[p.d.getDefault](){var e=this.nativeViewProtected.getParent();return e.getBackground()}[p.d.setNative](e){var t=this.nativeViewProtected,r=t.getParent();if(e instanceof g.a){var a=e.android,o=r.getBackground();if(n>21&&o){var l=tryCloneDrawable(o,t.getResources());l.setColorFilter(a,android.graphics.PorterDuff.Mode.SRC_IN);r.setBackground(l)}else{var d=new android.graphics.drawable.StateListDrawable,p=new org.nativescript.widgets.SegmentedBarColorDrawable(a,i),h=Array.create("int",1);h[0]=16842913;d.addState(h,p);d.setBounds(0,15,r.getRight(),r.getBottom());r.setBackground(d)}}else{var m=tryCloneDrawable(e,t.getResources());r.setBackground(m)}}}function tryCloneDrawable(e,t){if(e){var r=e.getConstantState();if(r)return r.newDrawable(t)}return e}class SegmentedBar extends p.a{shouldChangeSelectedIndex(){return!this._addingTab}createNativeView(){!function initializeNativeClasses(){if(!o){n=android.os.Build.VERSION.SDK_INT;i=f.n.toDevicePixels(n>=21?2:5);var t=function(t){__extends(TabChangeListenerImpl,t);function TabChangeListenerImpl(r){var n=t.call(this)||this;n.owner=r;return e.__native(n)}TabChangeListenerImpl.prototype.onTabChanged=function(e){var t=this.owner;t.shouldChangeSelectedIndex()&&(t.selectedIndex=parseInt(e))};TabChangeListenerImpl=__decorate([Interfaces([android.widget.TabHost.OnTabChangeListener])],TabChangeListenerImpl);return TabChangeListenerImpl}(java.lang.Object),r=function(t){__extends(TabContentFactoryImpl,t);function TabContentFactoryImpl(r){var n=t.call(this)||this;n.owner=r;return e.__native(n)}TabContentFactoryImpl.prototype.createTabContent=function(e){var t=new android.widget.TextView(this.owner._context);t.setVisibility(android.view.View.GONE);t.setMaxLines(1);t.setEllipsize(android.text.TextUtils.TruncateAt.END);return t};TabContentFactoryImpl=__decorate([Interfaces([android.widget.TabHost.TabContentFactory])],TabContentFactoryImpl);return TabContentFactoryImpl}(java.lang.Object),d=function(t){__extends(TabHostImpl,t);function TabHostImpl(r,n){var i=t.call(this,r,n)||this;return e.__native(i)}TabHostImpl.prototype.onAttachedToWindow=function(){};return TabHostImpl}(android.widget.TabHost);a=d;o=t;l=r}}();var t=this._context,r=new a(t,null),d=new android.widget.LinearLayout(t);d.setOrientation(android.widget.LinearLayout.VERTICAL);var p=new android.widget.TabWidget(t);p.setId(16908307);d.addView(p);var h=new android.widget.FrameLayout(t);h.setId(16908305);h.setVisibility(android.view.View.GONE);d.addView(h);r.addView(d);return r}initNativeView(){super.initNativeView();var e=this.nativeViewProtected,t=new o(this);e.setOnTabChangedListener(t);e.listener=t;e.setup();this._tabContentFactory=this._tabContentFactory||new l(this)}disposeNativeView(){var e=this.nativeViewProtected;e.listener.owner=null;super.disposeNativeView()}onLoaded(){super.onLoaded();var e=this.nativeViewProtected.getTabWidget();e&&e.setEnabled(e.isEnabled())}insertTab(e,t){var r=this.nativeViewProtected,n=r.newTabSpec(t+"");n.setIndicator(e.title+"");n.setContent(this._tabContentFactory);this._addingTab=!0;r.addTab(n);e.setupNativeView(t);this._addingTab=!1}[p.e.getDefault](){return-1}[p.e.setNative](e){this.nativeViewProtected.setCurrentTab(e)}[p.c.getDefault](){return null}[p.c.setNative](e){this.nativeViewProtected.clearAllTabs();var t=e;t&&t.forEach((e,t,r)=>this.insertTab(e,t));p.e.coerce(this)}[h.e.setNative](e){var t=this.nativeViewProtected.getTabWidget();t&&t.setEnabled(e)}}}).call(this,r(20))},function(e,t,r){"use strict";(function(e){r.d(t,"b",(function(){return TabViewItem}));r.d(t,"a",(function(){return TabView}));var n,i,a=r(27),o=r(34),l=r(21),d=r(22),p=r(29),h=r(1),m=r(4),g=r(2),f=r(9),v=r(40),y=r(41),w=r(8);function initializeNativeClasses(){if(!n){var t=function(t){__extends(TabFragmentImplementation,t);function TabFragmentImplementation(){var r=t.call(this)||this;r.backgroundBitmap=null;return e.__native(r)}TabFragmentImplementation.newInstance=function(e,t){var r=new android.os.Bundle;r.putInt("_tabId",e);r.putInt("_index",t);var n=new TabFragmentImplementation;n.setArguments(r);return n};TabFragmentImplementation.prototype.onCreate=function(e){t.prototype.onCreate.call(this,e);var r=this.getArguments();this.owner=function getTabById(e){var t=S.find(t=>{var r=t.get();return r&&r._domId===e});return t&&t.get()}(r.getInt("_tabId"));this.index=r.getInt("_index");if(!this.owner)throw new Error("Cannot find TabView")};TabFragmentImplementation.prototype.onCreateView=function(e,t,r){var n=this.owner.items[this.index];return n.view.nativeViewProtected};TabFragmentImplementation.prototype.onDestroyView=function(){var e=this.getRemovingParentFragment();if(e&&this.owner.selectedIndex===this.index){var r=new android.graphics.drawable.BitmapDrawable(i,this.backgroundBitmap);this.owner._originalBackground=this.owner.backgroundColor||new m.a("White");this.owner.nativeViewProtected.setBackground(r);this.backgroundBitmap=null}t.prototype.onDestroyView.call(this)};TabFragmentImplementation.prototype.onPause=function(){var e=this.getRemovingParentFragment();e&&this.owner.selectedIndex===this.index&&(this.backgroundBitmap=this.loadBitmapFromView(this.owner.nativeViewProtected));t.prototype.onPause.call(this)};TabFragmentImplementation.prototype.loadBitmapFromView=function(e){e.setDrawingCacheEnabled(!0);var t=android.graphics.Bitmap.createBitmap(e.getDrawingCache());e.setDrawingCacheEnabled(!1);return t};return TabFragmentImplementation}(org.nativescript.widgets.FragmentBase),r=function(r){__extends(FragmentPagerAdapter,r);function FragmentPagerAdapter(t){var n=r.call(this)||this;n.owner=t;return e.__native(n)}FragmentPagerAdapter.prototype.getCount=function(){var e=this.items;return e?e.length:0};FragmentPagerAdapter.prototype.getPageTitle=function(e){var t=this.items;return e<0||e>=t.length?"":t[e].title};FragmentPagerAdapter.prototype.startUpdate=function(e){if(e.getId()===android.view.View.NO_ID)throw new Error("ViewPager with adapter "+this+" requires a view containerId")};FragmentPagerAdapter.prototype.instantiateItem=function(e,r){var n=this.owner._getFragmentManager();this.mCurTransaction||(this.mCurTransaction=n.beginTransaction());var i=this.getItemId(r),a=function makeFragmentName(e,t){return"android:viewpager:"+e+":"+t}(e.getId(),i),o=n.findFragmentByTag(a);if(null!=o)this.mCurTransaction.attach(o);else{o=t.newInstance(this.owner._domId,r);this.mCurTransaction.add(e.getId(),o,a)}if(o!==this.mCurrentPrimaryItem){o.setMenuVisibility(!1);o.setUserVisibleHint(!1)}var l=this.owner.items,d=l?l[r]:null;d&&(d.canBeLoaded=!0);return o};FragmentPagerAdapter.prototype.getItemPosition=function(e){return this.items?-1:-2};FragmentPagerAdapter.prototype.destroyItem=function(e,t,r){if(!this.mCurTransaction){var n=this.owner._getFragmentManager();this.mCurTransaction=n.beginTransaction()}var i=r;this.mCurTransaction.detach(i);this.mCurrentPrimaryItem===i&&(this.mCurrentPrimaryItem=null);var a=this.owner.items,o=a?a[t]:null;o&&(o.canBeLoaded=!1)};FragmentPagerAdapter.prototype.setPrimaryItem=function(e,t,r){var n=r;if(n!==this.mCurrentPrimaryItem){if(null!=this.mCurrentPrimaryItem){this.mCurrentPrimaryItem.setMenuVisibility(!1);this.mCurrentPrimaryItem.setUserVisibleHint(!1)}if(null!=n){n.setMenuVisibility(!0);n.setUserVisibleHint(!0)}this.mCurrentPrimaryItem=n;this.owner.selectedIndex=t;var i=this.owner,a=i.items,o=a?a[t]:null;o&&i._loadUnloadTabItems(i.selectedIndex)}};FragmentPagerAdapter.prototype.finishUpdate=function(e){this._commitCurrentTransaction()};FragmentPagerAdapter.prototype.isViewFromObject=function(e,t){return t.getView()===e};FragmentPagerAdapter.prototype.saveState=function(){this._commitCurrentTransaction();return null};FragmentPagerAdapter.prototype.restoreState=function(e,t){};FragmentPagerAdapter.prototype.getItemId=function(e){return e};FragmentPagerAdapter.prototype._commitCurrentTransaction=function(){if(null!=this.mCurTransaction){this.mCurTransaction.commitNowAllowingStateLoss();this.mCurTransaction=null}};return FragmentPagerAdapter}(androidx.viewpager.widget.PagerAdapter);n=r;i=w.android.context.getResources()}}function createTabItemSpec(e){var t=new org.nativescript.widgets.TabItemSpec;t.title=e.title;if(e.iconSource)if(0===e.iconSource.indexOf(f.b)){t.iconId=v.a.resources.getDrawableId(e.iconSource.substr(f.b.length));0===t.iconId&&Object(o.l)(e.iconSource)}else{var r=p.ImageSource.fromFileOrResourceSync(e.iconSource);r?t.iconDrawable=new android.graphics.drawable.BitmapDrawable(i,r.android):Object(o.l)(e.iconSource)}return t}var C=void 0;function getDefaultAccentColor(e){void 0===C&&(C=v.a.resources.getPaletteColor("colorAccent",e)||4281578981);return C}class TabViewItem extends o.b{get _hasFragments(){return!0}initNativeView(){super.initNativeView();this.nativeViewProtected&&(this._defaultTransformationMethod=this.nativeViewProtected.getTransformationMethod())}onLoaded(){super.onLoaded()}resetNativeView(){super.resetNativeView();this.nativeViewProtected&&this.nativeViewProtected.setTransformationMethod(this._defaultTransformationMethod)}disposeNativeView(){super.disposeNativeView();this.canBeLoaded=!1}createNativeView(){return this.nativeViewProtected}_update(){var e=this.nativeViewProtected,t=this.parent;if(e&&t){this.tabItemSpec=createTabItemSpec(this);t.updateAndroidItemAt(this.index,this.tabItemSpec)}}_getChildFragmentManager(){for(var e=this.parent,t=null,r=e._getFragmentManager(),n=r.getFragments().toArray(),i=0;i{e.index=0;e.tabItemSpec=null;e.setNativeView(null)})}createNativeView(){initializeNativeClasses();h.a.isEnabled()&&h.a.write("TabView._createUI("+this+");",o.k);var e=this._context,t=new org.nativescript.widgets.GridLayout(e),r=new org.nativescript.widgets.TabViewPager(e),i=new org.nativescript.widgets.TabLayout(e),a=new org.nativescript.widgets.CommonLayoutParams,l=v.a.resources.getPaletteColor("colorPrimary",e),d=getDefaultAccentColor(e);a.row=1;if("top"===this.androidTabsPosition){t.addRow(new org.nativescript.widgets.ItemSpec(1,org.nativescript.widgets.GridUnitType.auto));t.addRow(new org.nativescript.widgets.ItemSpec(1,org.nativescript.widgets.GridUnitType.star));r.setLayoutParams(a);this.androidSwipeEnabled||r.setSwipePageEnabled(!1)}else{t.addRow(new org.nativescript.widgets.ItemSpec(1,org.nativescript.widgets.GridUnitType.star));t.addRow(new org.nativescript.widgets.ItemSpec(1,org.nativescript.widgets.GridUnitType.auto));i.setLayoutParams(a);r.setSwipePageEnabled(!1);d=16777215}t.addView(r);t.viewPager=r;var p=new n(this);r.setAdapter(p);r.adapter=p;t.addView(i);t.tabLayout=i;!function setElevation(e,t){var r=androidx.core.view.ViewCompat;if(r.setElevation){var n=4*f.n.getDisplayDensity();r.setElevation(e,n);r.setElevation(t,n)}}(t,i);d&&i.setSelectedIndicatorColors([d]);l&&i.setBackgroundColor(l);return t}initNativeView(){super.initNativeView();this._androidViewId<0&&(this._androidViewId=android.view.View.generateViewId());var e=this.nativeViewProtected;this._tabLayout=e.tabLayout;var t=e.viewPager;t.setId(this._androidViewId);this._viewPager=t;this._pagerAdapter=t.adapter;this._pagerAdapter.owner=this}_loadUnloadTabItems(e){var t=this.items;if(t){var r=t.length-1,n="top"===this.androidTabsPosition?this.androidOffscreenTabLimit:1,i=[],a=[];!function iterateIndexRange(e,t,r,n){for(var i=Math.max(0,e-t),a=Math.min(e+t,r),o=i;o<=a;o++)n(o)}(e,n,r,e=>a.push(e));t.forEach((e,t)=>{var r=a.indexOf(t);r<0&&i.push(t)});i.forEach(e=>{var r=t[e];t[e]&&r.unloadView(r.view)});var o=t[e],l=o&&o.view;l instanceof y.Frame&&l._pushInFrameStackRecursive();a.forEach(e=>{var r=t[e];this.isLoaded&&t[e]&&r.loadView(r.view)})}}onLoaded(){super.onLoaded();if(this._originalBackground){this.backgroundColor=null;this.backgroundColor=this._originalBackground;this._originalBackground=null}this.setAdapterItems(this.items)}onUnloaded(){super.onUnloaded();this.setAdapterItems(null)}disposeNativeView(){this._tabLayout.setItems(null,null);this._pagerAdapter.owner=null;this._pagerAdapter=null;this._tabLayout=null;this._viewPager=null;super.disposeNativeView()}_onRootViewReset(){super._onRootViewReset();this.disposeCurrentFragments()}disposeCurrentFragments(){for(var e=this._getFragmentManager(),t=e.beginTransaction(),r=e.getFragments().toArray(),n=0;n!!e.filter(e=>e._domId===t._domId)[0]);return r.length!==e.length}setAdapterItems(e){if(this.shouldUpdateAdapter(e)){this._pagerAdapter.items=e;var t=e?e.length:0;if(0===t){this._tabLayout.setItems(null,null);this._pagerAdapter.notifyDataSetChanged();return}var r=new Array;e.forEach((e,t,n)=>{var i=createTabItemSpec(e);e.index=t;e.tabItemSpec=i;r.push(i)});var n=this._tabLayout;n.setItems(r,this._viewPager);e.forEach((e,t,r)=>{var i=n.getTextViewForItemAt(t);e.setNativeView(i)});this._pagerAdapter.notifyDataSetChanged()}}updateAndroidItemAt(e,t){this._tabLayout.updateItemAt(e,t)}[o.c.getDefault](){return this._viewPager.getOffscreenPageLimit()}[o.c.setNative](e){this._viewPager.setOffscreenPageLimit(e)}[o.f.setNative](e){var t="top"===this.androidTabsPosition;h.a.isEnabled()&&h.a.write("TabView this._viewPager.setCurrentItem("+e+", "+t+");",o.k);this._viewPager.setCurrentItem(e,t)}[o.e.getDefault](){return null}[o.e.setNative](e){this.setAdapterItems(e);o.f.coerce(this)}[o.h.getDefault](){return this._tabLayout.getBackground()}[o.h.setNative](e){e instanceof m.a?this._tabLayout.setBackgroundColor(e.android):this._tabLayout.setBackground(function tryCloneDrawable(e,t){if(e){var r=e.getConstantState();if(r)return r.newDrawable(t)}return e}(e,this.nativeViewProtected.getResources()))}[o.j.getDefault](){return this._tabLayout.getTabTextFontSize()}[o.j.setNative](e){"number"==typeof e?this._tabLayout.setTabTextFontSize(e):this._tabLayout.setTabTextFontSize(e.nativeSize)}[o.i.getDefault](){return this._tabLayout.getTabTextColor()}[o.i.setNative](e){var t=e instanceof m.a?e.android:e;this._tabLayout.setTabTextColor(t)}[o.g.getDefault](){return this._tabLayout.getSelectedTabTextColor()}[o.g.setNative](e){var t=e instanceof m.a?e.android:e;this._tabLayout.setSelectedTabTextColor(t)}[o.d.getDefault](){return getDefaultAccentColor(this._context)}[o.d.setNative](e){var t=this._tabLayout,r=e instanceof m.a?e.android:e;t.setSelectedIndicatorColors([r])}}}).call(this,r(20))},function(e,t,r){"use strict";r.r(t);r.d(t,"TextFieldBase",(function(){return l}));r.d(t,"secureProperty",(function(){return d}));r.d(t,"closeOnReturnProperty",(function(){return p}));r.d(t,"TextField",(function(){return text_field_TextField}));var n=r(91),i=r(0),a=r(19),o=r(11),l=class TextFieldBase extends n.a{};l.returnPressEvent="returnPress";l=__decorate([Object(a.a)("TextField")],l);l.prototype.recycleNativeView="auto";var d=new i.Property({name:"secure",defaultValue:!1,valueConverter:o.b});d.register(l);var p=new i.Property({name:"closeOnReturn",defaultValue:!0,valueConverter:o.b});p.register(l);var h=r(21),m=r(47);class text_field_TextField extends l{_configureEditText(e){e.setInputType(android.text.InputType.TYPE_CLASS_TEXT|android.text.InputType.TYPE_TEXT_VARIATION_NORMAL|android.text.InputType.TYPE_TEXT_FLAG_CAP_SENTENCES|android.text.InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS);e.setLines(1);e.setMaxLines(1);e.setHorizontallyScrolling(!0)}_onReturnPress(){this.notify({eventName:text_field_TextField.returnPressEvent,object:this})}[d.setNative](){this.setSecureAndKeyboardType()}[m.f.setNative](){this.setSecureAndKeyboardType()}setSecureAndKeyboardType(){var e;if(this.secure)e="number"===this.keyboardType?android.text.InputType.TYPE_CLASS_NUMBER|android.text.InputType.TYPE_NUMBER_VARIATION_PASSWORD:android.text.InputType.TYPE_CLASS_TEXT|android.text.InputType.TYPE_TEXT_VARIATION_PASSWORD;else{e=android.text.InputType.TYPE_CLASS_TEXT|android.text.InputType.TYPE_TEXT_VARIATION_NORMAL;if(this.autocorrect){e|=android.text.InputType.TYPE_TEXT_FLAG_AUTO_COMPLETE;e|=android.text.InputType.TYPE_TEXT_FLAG_AUTO_CORRECT;e&=~android.text.InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS}switch(this.autocapitalizationType){case"words":e|=android.text.InputType.TYPE_TEXT_FLAG_CAP_WORDS;break;case"sentences":e|=android.text.InputType.TYPE_TEXT_FLAG_CAP_SENTENCES;break;case"allcharacters":e|=android.text.InputType.TYPE_TEXT_FLAG_CAP_CHARACTERS}switch(this.keyboardType){case"datetime":e=android.text.InputType.TYPE_CLASS_DATETIME|android.text.InputType.TYPE_DATETIME_VARIATION_NORMAL;break;case"phone":e=android.text.InputType.TYPE_CLASS_PHONE;break;case"number":e=android.text.InputType.TYPE_CLASS_NUMBER|android.text.InputType.TYPE_NUMBER_VARIATION_NORMAL|android.text.InputType.TYPE_NUMBER_FLAG_SIGNED|android.text.InputType.TYPE_NUMBER_FLAG_DECIMAL;break;case"url":e=android.text.InputType.TYPE_CLASS_TEXT|android.text.InputType.TYPE_TEXT_VARIATION_URI;break;case"email":e=android.text.InputType.TYPE_CLASS_TEXT|android.text.InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS;break;case"integer":e=android.text.InputType.TYPE_CLASS_NUMBER}}this._setInputType(e)}[h.l.getDefault](){return"nowrap"}[h.l.setNative](e){}}text_field_TextField.prototype._isSingleLine=!0},function(e,t,r){"use strict";r.d(t,"a",(function(){return Background}));var n=r(63),i=r(4);class Background{constructor(){this.borderTopWidth=0;this.borderRightWidth=0;this.borderBottomWidth=0;this.borderLeftWidth=0;this.borderTopLeftRadius=0;this.borderTopRightRadius=0;this.borderBottomLeftRadius=0;this.borderBottomRightRadius=0}clone(){var e=new Background;e.color=this.color;e.image=this.image;e.repeat=this.repeat;e.position=this.position;e.size=this.size;e.borderTopColor=this.borderTopColor;e.borderRightColor=this.borderRightColor;e.borderBottomColor=this.borderBottomColor;e.borderLeftColor=this.borderLeftColor;e.borderTopWidth=this.borderTopWidth;e.borderRightWidth=this.borderRightWidth;e.borderBottomWidth=this.borderBottomWidth;e.borderLeftWidth=this.borderLeftWidth;e.borderTopLeftRadius=this.borderTopLeftRadius;e.borderTopRightRadius=this.borderTopRightRadius;e.borderBottomRightRadius=this.borderBottomRightRadius;e.borderBottomLeftRadius=this.borderBottomLeftRadius;e.clipPath=this.clipPath;return e}withColor(e){var t=this.clone();t.color=e;return t}withImage(e){var t=this.clone();t.image=e;return t}withRepeat(e){var t=this.clone();t.repeat=e;return t}withPosition(e){var t=this.clone();t.position=e;return t}withSize(e){var t=this.clone();t.size=e;return t}withBorderTopColor(e){var t=this.clone();t.borderTopColor=e;return t}withBorderRightColor(e){var t=this.clone();t.borderRightColor=e;return t}withBorderBottomColor(e){var t=this.clone();t.borderBottomColor=e;return t}withBorderLeftColor(e){var t=this.clone();t.borderLeftColor=e;return t}withBorderTopWidth(e){var t=this.clone();t.borderTopWidth=e;return t}withBorderRightWidth(e){var t=this.clone();t.borderRightWidth=e;return t}withBorderBottomWidth(e){var t=this.clone();t.borderBottomWidth=e;return t}withBorderLeftWidth(e){var t=this.clone();t.borderLeftWidth=e;return t}withBorderTopLeftRadius(e){var t=this.clone();t.borderTopLeftRadius=e;return t}withBorderTopRightRadius(e){var t=this.clone();t.borderTopRightRadius=e;return t}withBorderBottomRightRadius(e){var t=this.clone();t.borderBottomRightRadius=e;return t}withBorderBottomLeftRadius(e){var t=this.clone();t.borderBottomLeftRadius=e;return t}withClipPath(e){var t=this.clone();t.clipPath=e;return t}isEmpty(){return!(this.color||this.image||this.hasBorderWidth()||this.hasBorderRadius()||this.clipPath)}static equals(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;var r=!1;r=e instanceof n.a&&t instanceof n.a?n.a.equals(e,t):e.image===t.image;return i.a.equals(e.color,t.color)&&r&&e.position===t.position&&e.repeat===t.repeat&&e.size===t.size&&i.a.equals(e.borderTopColor,t.borderTopColor)&&i.a.equals(e.borderRightColor,t.borderRightColor)&&i.a.equals(e.borderBottomColor,t.borderBottomColor)&&i.a.equals(e.borderLeftColor,t.borderLeftColor)&&e.borderTopWidth===t.borderTopWidth&&e.borderRightWidth===t.borderRightWidth&&e.borderBottomWidth===t.borderBottomWidth&&e.borderLeftWidth===t.borderLeftWidth&&e.borderTopLeftRadius===t.borderTopLeftRadius&&e.borderTopRightRadius===t.borderTopRightRadius&&e.borderBottomRightRadius===t.borderBottomRightRadius&&e.borderBottomLeftRadius===t.borderBottomLeftRadius&&e.clipPath===t.clipPath}hasBorderColor(){return!!(this.borderTopColor||this.borderRightColor||this.borderBottomColor||this.borderLeftColor)}hasBorderWidth(){return this.borderTopWidth>0||this.borderRightWidth>0||this.borderBottomWidth>0||this.borderLeftWidth>0}hasBorderRadius(){return this.borderTopLeftRadius>0||this.borderTopRightRadius>0||this.borderBottomRightRadius>0||this.borderBottomLeftRadius>0}hasUniformBorderColor(){return i.a.equals(this.borderTopColor,this.borderRightColor)&&i.a.equals(this.borderTopColor,this.borderBottomColor)&&i.a.equals(this.borderTopColor,this.borderLeftColor)}hasUniformBorderWidth(){return this.borderTopWidth===this.borderRightWidth&&this.borderTopWidth===this.borderBottomWidth&&this.borderTopWidth===this.borderLeftWidth}hasUniformBorderRadius(){return this.borderTopLeftRadius===this.borderTopRightRadius&&this.borderTopLeftRadius===this.borderBottomRightRadius&&this.borderTopLeftRadius===this.borderBottomLeftRadius}hasUniformBorder(){return this.hasUniformBorderColor()&&this.hasUniformBorderWidth()&&this.hasUniformBorderRadius()}getUniformBorderColor(){if(this.hasUniformBorderColor())return this.borderTopColor}getUniformBorderWidth(){return this.hasUniformBorderWidth()?this.borderTopWidth:0}getUniformBorderRadius(){return this.hasUniformBorderRadius()?this.borderTopLeftRadius:0}toString(){return"isEmpty: ".concat(this.isEmpty(),"; color: ").concat(this.color,"; image: ").concat(this.image,"; repeat: ").concat(this.repeat,"; position: ").concat(this.position,"; size: ").concat(this.size,"; borderTopColor: ").concat(this.borderTopColor,"; borderRightColor: ").concat(this.borderRightColor,"; borderBottomColor: ").concat(this.borderBottomColor,"; borderLeftColor: ").concat(this.borderLeftColor,"; borderTopWidth: ").concat(this.borderTopWidth,"; borderRightWidth: ").concat(this.borderRightWidth,"; borderBottomWidth: ").concat(this.borderBottomWidth,"; borderLeftWidth: ").concat(this.borderLeftWidth,"; borderTopLeftRadius: ").concat(this.borderTopLeftRadius,"; borderTopRightRadius: ").concat(this.borderTopRightRadius,"; borderBottomRightRadius: ").concat(this.borderBottomRightRadius,"; borderBottomLeftRadius: ").concat(this.borderBottomLeftRadius,"; clipPath: ").concat(this.clipPath,";")}}Background.default=new Background},function(e,t,r){var n=r(315).esprima,i=r(316).Path;!function(e){"use strict";var t=Object.create(null);function Literal(e){this.value=e;this.valueFn_=void 0}Literal.prototype={valueFn:function valueFn(){if(!this.valueFn_){var e=this.value;this.valueFn_=function(){return e}}return this.valueFn_}};function IdentPath(e){this.name=e;this.path=i.get(e)}IdentPath.prototype={valueFn:function valueFn(){if(!this.valueFn_){this.name;var e=this.path;this.valueFn_=function(t,r,n){r&&r.addPath(t,e);if(n){var i=e.getValueFrom(n);if(void 0!==i)return i}return e.getValueFrom(t)}}return this.valueFn_},setValue:function setValue(e,t){1==this.path.length&&(e=function findScope(e,t){for(;e[o]&&!Object.prototype.hasOwnProperty.call(e,t);)e=e[o];return e}(e,this.path[0]));return this.path.setValueFrom(e,t)}};function MemberExpression(e,t,r){this.computed="["==r;this.dynamicDeps="function"==typeof e||e.dynamicDeps||this.computed&&!(t instanceof Literal);this.simplePath=!this.dynamicDeps&&(t instanceof IdentPath||t instanceof Literal)&&(e instanceof MemberExpression||e instanceof IdentPath);this.object=this.simplePath?e:getFn(e);this.property=!this.computed||this.simplePath?t:getFn(t)}MemberExpression.prototype={get fullPath(){if(!this.fullPath_){var e=this.object instanceof MemberExpression?this.object.fullPath.slice():[this.object.name];e.push(this.property instanceof IdentPath?this.property.name:this.property.value);this.fullPath_=i.get(e)}return this.fullPath_},valueFn:function valueFn(){if(!this.valueFn_){var e=this.object;if(this.simplePath){var t=this.fullPath;this.valueFn_=function(e,r){r&&r.addPath(e,t);return t.getValueFrom(e)}}else if(this.computed){var r=this.property;this.valueFn_=function(t,n,i){var a=e(t,n,i),o=r(t,n,i);n&&n.addPath(a,[o]);return a?a[o]:void 0}}else{t=i.get(this.property.name);this.valueFn_=function(r,n,i){var a=e(r,n,i);n&&n.addPath(a,t);return t.getValueFrom(a)}}}return this.valueFn_},setValue:function setValue(e,t){if(this.simplePath){this.fullPath.setValueFrom(e,t);return t}var r=this.object(e),n=this.property instanceof IdentPath?this.property.name:this.property(e);return r[n]=t}};function Filter(e,t){this.name=e;this.args=[];for(var r=0;r":function _(e,t){return e>t},"<=":function _(e,t){return e<=t},">=":function _(e,t){return e>=t},"==":function _(e,t){return e==t},"!=":function _(e,t){return e!=t},"===":function _(e,t){return e===t},"!==":function _(e,t){return e!==t},"&&":function _(e,t){return e&&t},"||":function _(e,t){return e||t}};function getFn(e){return"function"==typeof e?e:e.valueFn()}function ASTDelegate(){this.expression=null;this.filters=[];this.deps={};this.currentPath=void 0;this.scopeIdent=void 0;this.indexIdent=void 0;this.dynamicDeps=!1}ASTDelegate.prototype={createUnaryExpression:function createUnaryExpression(e,t){if(!r[e])throw Error("Disallowed operator: "+e);t=getFn(t);return function(n,i,a){return r[e](t(n,i,a))}},createBinaryExpression:function createBinaryExpression(e,t,r){if(!a[e])throw Error("Disallowed operator: "+e);t=getFn(t);r=getFn(r);switch(e){case"||":this.dynamicDeps=!0;return function(e,n,i){return t(e,n,i)||r(e,n,i)};case"&&":this.dynamicDeps=!0;return function(e,n,i){return t(e,n,i)&&r(e,n,i)}}return function(n,i,o){return a[e](t(n,i,o),r(n,i,o))}},createConditionalExpression:function createConditionalExpression(e,t,r){e=getFn(e);t=getFn(t);r=getFn(r);this.dynamicDeps=!0;return function(n,i,a){return e(n,i,a)?t(n,i,a):r(n,i,a)}},createIdentifier:function createIdentifier(e){var t=new IdentPath(e);t.type="Identifier";return t},createMemberExpression:function createMemberExpression(e,t,r){var n=new MemberExpression(t,r,e);n.dynamicDeps&&(this.dynamicDeps=!0);return n},createCallExpression:function createCallExpression(e,t){if(!(e instanceof IdentPath))throw Error("Only identifier function invocations are allowed");var r=new Filter(e.name,t);return function(e,t,n){return r.transform(e,t,n,!1)}},createLiteral:function createLiteral(e){return new Literal(e.value)},createArrayExpression:function createArrayExpression(e){for(var t=0;t0;)t=this.filters[n].transform(e,void 0,r,!0,[t]);if(this.expression.setValue)return this.expression.setValue(e,t)}};var o="@"+Math.random().toString(36).slice(2);function PolymerExpressions(){}PolymerExpressions.prototype={styleObject:function styleObject(e){var t,r=[];for(var n in e)r.push((t=n,String(t).replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})))+": "+e[n]);return r.join("; ")},tokenList:function tokenList(e){var t=[];for(var r in e)e[r]&&t.push(r);return t.join(" ")},prepareInstancePositionChanged:function prepareInstancePositionChanged(e){var t=e.polymerExpressionIndexIdent_;if(t)return function(e,r){e.model[t]=r}},prepareInstanceModel:function prepareInstanceModel(e){var t=e.polymerExpressionScopeIdent_;if(t){var r=e.templateInstance?e.templateInstance.model:e.model,n=e.polymerExpressionIndexIdent_;return function(e){return l(r,e,t,n)}}}};var l="__proto__"in{}?function(e,t,r,n){var i={};i[r]=t;i[n]=void 0;i[o]=e;i.__proto__=e;return i}:function(e,t,r,n){var i=Object.create(e);Object.defineProperty(i,r,{value:t,configurable:!0,writable:!0});Object.defineProperty(i,n,{value:void 0,configurable:!0,writable:!0});Object.defineProperty(i,o,{value:e,configurable:!0,writable:!0});return i};e.PolymerExpressions=PolymerExpressions;PolymerExpressions.getExpression=function getExpression(e){var r=t[e];if(!r){var i=new ASTDelegate;n.parse(e,i);r=new Expression(i);t[e]=r}return r}}(e.exports)},function(e,t,r){e.exports.EasySAXParser=EasySAXParser;function EasySAXParser(){"use strict";if(!this)return null;this.angularSyntax=!1;function nullFunc(){}this.onTextNode=nullFunc;this.onStartNode=nullFunc;this.onEndNode=nullFunc;this.onCDATA=nullFunc;this.onError=nullFunc;this.onComment=null;this.onQuestion=null;this.onAttention=null;this.is_onComment=this.is_onQuestion=this.is_onAttention=!1;this.isNamespace=!1;this.useNS=null;this.default_xmlns=null;this.xmlns=null;this.nsmatrix={xmlns:this.xmlns};this.hasSurmiseNS=!1;this.attr_string="";this.attr_posstart=0;this.attr_res}EasySAXParser.prototype.on=function(e,t){if("function"==typeof t||null===t)switch(e){case"error":this.onError=t||nullFunc;break;case"startNode":this.onStartNode=t||nullFunc;break;case"endNode":this.onEndNode=t||nullFunc;break;case"textNode":this.onTextNode=t||nullFunc;break;case"cdata":this.onCDATA=t||nullFunc;break;case"comment":this.onComment=t;this.is_onComment=!!t;break;case"question":this.onQuestion=t;this.is_onQuestion=!!t;break;case"attention":this.onAttention=t;this.is_onAttention=!!t}};EasySAXParser.prototype.ns=function(e,t){if(e&&"string"==typeof e&&t){var r,n,i,a={};for(i in t){n=t[i];if("string"==typeof n){e===n&&(r=!0);a[i]=n}}if(r){this.isNamespace=!0;this.default_xmlns=e;this.useNS=a}}};EasySAXParser.prototype.parse=function(e){if("string"==typeof e){if(this.isNamespace){this.nsmatrix={xmlns:this.default_xmlns};parse(e);this.nsmatrix=!1}else parse(e);this.attr_res=!0}};var n={constructor:!1,hasOwnProperty:!1,isPrototypeOf:!1,propertyIsEnumerable:!1,toLocaleString:!1,toString:!1,valueOf:!1,quot:'"',QUOT:'"',amp:"&",AMP:"&",nbsp:" ",apos:"'",lt:"<",LT:"<",gt:">",GT:">",copy:"©",laquo:"«",raquo:"»",reg:"®",deg:"°",plusmn:"±",sup2:"²",sup3:"³",micro:"µ",para:"¶"};function rpEntities(e,t,r,i){return i?n[i]||"":t?String.fromCodePoint(t):String.fromCodePoint(parseInt(r,16))}function unEntities(e,t){e=String(e);if(e.length>3&&-1!==e.indexOf("&")){-1!==e.indexOf(">")&&(e=e.replace(/>/g,">"));-1!==e.indexOf("<")&&(e=e.replace(/</g,"<"));-1!==e.indexOf(""")&&(e=e.replace(/"/g,'"'));-1!==e.indexOf("&")&&(e=e.replace(/&#(\d+);|&#x([0123456789abcdef]+);|&(\w+);/gi,rpEntities))}return e}EasySAXParser.prototype.allowedAngularAttributeChars=function(e){return!!this.angularSyntax&&(40===e||41===e||91===e||93===e||94===e||35===e)};EasySAXParser.prototype.getAttrs=function(){if(null!==this.attr_res)return this.attr_res;var e,t,r,n,i,a,o,l,d={},p=this.attr_string,h=this.attr_posstart,m=p.length,g=!!this.hasSurmiseNS&&[],f="",v=!1,y=!1;e:for(;h8)){if(r<65&&!this.allowedAngularAttributeChars(r)||r>122||r>90&&r<97&&!this.allowedAngularAttributeChars(r))return this.attr_res=!1;for(t=h+1;t96&&r<123||r>64&&r<91||r>47&&r<59||45===r||95===r||46===r){if(y){t--;break}}else if(!this.allowedAngularAttributeChars(r)){if(!(32===r||r>8&&r<14)){if(61===r){y=!1;break}if(!y)return this.attr_res=!1;break}y=!0}}e=p.substring(h,t).trim();v=!0;if("xmlns:xmlns"===e)return this.attr_res=!1;r=p.charCodeAt(t+1);for(;(r=p.charCodeAt(t+1))&&(32===r||r>8&&r<14);)t++;if(!y)if(34===r)t=p.indexOf('"',h=t+2);else{if(39!==r)return this.attr_res=!1;t=p.indexOf("'",h=t+2)}if(-1===t)return this.attr_res=!1;if(t+132||r<9||r<32&&r>13)return this.attr_res=!1}f=y?"":p.substring(h,t);h=t;if(this.isNamespace){if(this.hasSurmiseNS){if(l="xmlns"===e?"xmlns":120===e.charCodeAt(0)&&"xmlns:"===e.substr(0,6)&&e.substr(6)){o=this.useNS[unEntities(f)];if(o){if(this.nsmatrix[l]!==o){if(!a){a=!0;n={};for(i in this.nsmatrix)n[i]=this.nsmatrix[i];this.nsmatrix=n}this.nsmatrix[l]=o}}else if(this.nsmatrix[l]){if(!a){a=!0;n={};for(i in this.nsmatrix)n[i]=this.nsmatrix[i];this.nsmatrix=n}this.nsmatrix[l]=!1}d[e]=f;continue}g.push(e,f);continue}r=e.length;for(;--r;)if(58===e.charCodeAt(r)){(r=this.nsmatrix[e.substring(0,r)])&&(d[r+e.substr(r)]=f);continue e}}d[e]=f;y=!1}}if(!v)return this.attr_res=!0;if(this.hasSurmiseNS)e:for(h=0,m=g.length;h0;w=60===e.charCodeAt(y)?y:e.indexOf("<",y);if(-1===w){if(m.length){this.onError("end file",position(y));return}return}if(y!==w&&!d){h=this.onTextNode(e.substring(y,w),unEntities,position(y));if(!1===h)return}o=e.charCodeAt(w+1);if(33!==o)if(63!==o){var k=!1;for(C=w,y=-1;C",position(w+1));return}this.attr_res=!0;if(47===o){v=!1;f=!0;n=t=m.pop();a=w+2+n.length;if(e.substring(w+2,a)!==n){this.onError("close tagname",position(w+2));return}for(;a8&&o<14)){this.onError("close tag",position(w+2));return}}}else{if(47===e.charCodeAt(y-1)){n=t=e.substring(w+1,y-1);v=!0;f=!0}else{n=t=e.substring(w+1,y);v=!0;f=!1}if(!(o>96&&o<123||o>64&&o<91)){this.onError("first char nodeName",position(w+1));return}for(a=1,i=n.length;a96&&o<123||o>64&&o<91||o>47&&o<59||45===o||95===o||46===o)){if(32===o||o<14&&o>8){t=n.substring(0,a);this.attr_res=null;break}this.onError("invalid nodeName",position(w+1));return}}f||m.push(t)}if(this.isNamespace){if(d){f?v||0==--S&&(this.nsmatrix=g.pop()):S+=1;y+=1;continue}p=this.nsmatrix;if(!f){g.push(this.nsmatrix);if(!0!==this.attr_res&&(this.hasSurmiseNS=-1!==n.indexOf("xmlns",a))){this.attr_string=n;this.attr_posstart=a;this.getAttrs();this.hasSurmiseNS=!1}}o=t.indexOf(":");if(-1!==o){l=this.nsmatrix[t.substring(0,o)];t=t.substr(o+1)}else l=this.nsmatrix.xmlns;if(!l){if(f)this.nsmatrix=v?p:g.pop();else{S=1;this.attr_res=!0}y+=1;continue}t=l+":"+t}if(v){this.attr_string=n;this.attr_posstart=a;var E=this;h=this.onStartNode(t,(function(){return E.getAttrs()}),unEntities,f,getStringNode,position(w));if(!1===h)return;this.attr_res=!0}if(f){h=this.onEndNode(t,unEntities,v,getStringNode,position(w));if(!1===h)return;this.isNamespace&&(this.nsmatrix=v?p:g.pop())}y+=1}else{y=e.indexOf("?>",w);if(-1===y){this.onError("...?>",position(w));return}if(this.is_onQuestion){h=this.onQuestion(e.substring(w,y+2),position(w));if(!1===h)return}y+=2}else{o=e.charCodeAt(w+2);if(91===o&&"CDATA["===e.substr(w+3,6)){y=e.indexOf("]]>",w);if(-1===y){this.onError("cdata",position(w));return}if(!d){h=this.onCDATA(e.substring(w+9,y),!1,position(w));if(!1===h)return}y+=3;continue}if(45===o&&45===e.charCodeAt(w+3)){y=e.indexOf("--\x3e",w);if(-1===y){this.onError("expected --\x3e",position(w));return}if(this.is_onComment&&!d){h=this.onComment(e.substring(w+4,y),unEntities,position(w));if(!1===h)return}y+=3;continue}y=e.indexOf(">",w+1);if(-1===y){this.onError('expected ">"',position(w+1));return}if(this.is_onAttention&&!d){h=this.onAttention(e.substring(w,y+1),unEntities,position(w));if(!1===h)return}y+=1}}}},,function(e,t,r){"use strict";r.d(t,"a",(function(){return applyMixins}));function applyMixins(e,t,r){var n=r&&r.omit?r.omit:[];t.forEach(t=>{Object.getOwnPropertyNames(t.prototype).forEach(i=>{if(-1===n.indexOf(i)){var a=Object.getOwnPropertyDescriptor(t.prototype,i);if("constructor"!==i)if(a&&(a.get||a.set))Object.defineProperty(e.prototype,i,a);else{var o=e.prototype[i];e.prototype[i]=o?function(){for(var e=arguments.length,n=new Array(e),a=0;a{if(-1===n.indexOf(i)){var a=e.prototype[i];e.prototype[i]=a?function(){for(var e=arguments.length,n=new Array(e),o=0;o0&&this.isLoaded&&this.attachNative()}dettach(){0===this._scrollChangeCount&&this.isLoaded&&this.dettachNative()}attachNative(){}dettachNative(){}get horizontalOffset(){return 0}get verticalOffset(){return 0}get scrollableWidth(){return 0}get scrollableHeight(){return 0}};p.scrollEvent="scroll";__decorate([a.f,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],p.prototype,"onLoaded",null);p=n=__decorate([Object(l.a)("ScrollView")],p);var h=Object(o.makeParser)(Object(o.makeValidator)("horizontal","vertical")),m=new o.Property({name:"orientation",defaultValue:"vertical",affectsLayout:!0,valueChanged:(e,t,r)=>{e._onOrientationChanged()},valueConverter:h});m.register(p);var g=new o.Property({name:"scrollBarIndicatorVisible",defaultValue:!0,valueConverter:d.b});g.register(p);var f=new o.Property({name:"isScrollEnabled",defaultValue:!0,valueConverter:d.b});f.register(p);var v=r(9);class scroll_view_ScrollView extends p{constructor(){super(...arguments);this._androidViewId=-1;this._lastScrollX=-1;this._lastScrollY=-1}get horizontalOffset(){var e=this.nativeViewProtected;return e?e.getScrollX()/v.n.getDisplayDensity():0}get verticalOffset(){var e=this.nativeViewProtected;return e?e.getScrollY()/v.n.getDisplayDensity():0}get scrollableWidth(){var e=this.nativeViewProtected;return e&&"horizontal"===this.orientation?e.getScrollableLength()/v.n.getDisplayDensity():0}get scrollableHeight(){var e=this.nativeViewProtected;return e&&"vertical"===this.orientation?e.getScrollableLength()/v.n.getDisplayDensity():0}[l.f.setNative](e){this.nativeViewProtected.setClickable(e);this.nativeViewProtected.setFocusable(e);this.nativeViewProtected.setScrollEnabled(e)}[f.getDefault](){return this.nativeViewProtected.getScrollEnabled()}[f.setNative](e){this.nativeViewProtected.setScrollEnabled(e)}[g.getDefault](){return!0}[g.setNative](e){"horizontal"===this.orientation?this.nativeViewProtected.setHorizontalScrollBarEnabled(e):this.nativeViewProtected.setVerticalScrollBarEnabled(e)}scrollToVerticalOffset(e,t){var r=this.nativeViewProtected;if(r&&"vertical"===this.orientation&&this.isScrollEnabled){e*=v.n.getDisplayDensity();t?r.smoothScrollTo(0,e):r.scrollTo(0,e)}}scrollToHorizontalOffset(e,t){var r=this.nativeViewProtected;if(r&&"horizontal"===this.orientation&&this.isScrollEnabled){e*=v.n.getDisplayDensity();t?r.smoothScrollTo(e,0):r.scrollTo(e,0)}}createNativeView(){return"horizontal"===this.orientation?new org.nativescript.widgets.HorizontalScrollView(this._context):new org.nativescript.widgets.VerticalScrollView(this._context)}initNativeView(){super.initNativeView();this._androidViewId<0&&(this._androidViewId=android.view.View.generateViewId());this.nativeViewProtected.setId(this._androidViewId)}_onOrientationChanged(){if(this.nativeViewProtected){var e=this.parent;if(e){e._removeView(this);e._addView(this)}}}attachNative(){var e=new WeakRef(this);this.handler=new android.view.ViewTreeObserver.OnScrollChangedListener({onScrollChanged:function onScrollChanged(){var t=e.get();t&&t._onScrollChanged()}});this.nativeViewProtected.getViewTreeObserver().addOnScrollChangedListener(this.handler)}_onScrollChanged(){var e=this.nativeViewProtected;if(e){var t=e.getScrollX(),r=e.getScrollY();if(t!==this._lastScrollX||r!==this._lastScrollY){this.notify({object:this,eventName:scroll_view_ScrollView.scrollEvent,scrollX:t/v.n.getDisplayDensity(),scrollY:r/v.n.getDisplayDensity()});this._lastScrollX=t;this._lastScrollY=r}}}dettachNative(){this.nativeViewProtected.getViewTreeObserver().removeOnScrollChangedListener(this.handler);this.handler=null}}scroll_view_ScrollView.prototype.recycleNativeView="never"},function(e,t,r){"use strict";r.d(t,"b",(function(){return stripQualifiers}));r.d(t,"a",(function(){return findMatch}));var n={isMatch:function isMatch(e){return new RegExp(".".concat("minWH","\\d+")).test(e)},getMatchOccurences:function getMatchOccurences(e){return e.match(new RegExp(".".concat("minWH","\\d+"),"g"))},getMatchValue(e,t){var r=parseInt(e.substr("minWH".length+1));if(isNaN(r))return-1;var n=Math.min(t.width,t.height);return nt.height?1:-1;return"land"===r?n:-n}},d=[n,i,a,l,o];function checkQualifiers(e,t){for(var r=0,n=0;n=0&&h>a){a=h;o=r[l]}}}return o}},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return n}));var n;!function(t){t.responseReceived=function responseReceived(t,r,n){var i=t.toString(),a=n["Content-Type"]||n["content-type"]||"application/octet-stream",o=n["Content-Length"]||n["content-length"],l=parseInt(o,10);isNaN(l)&&(l=0);var d={url:r.url||"",status:r.statusCode,statusText:r.statusText||"",headers:n,mimeType:a,fromDiskCache:!1,connectionReused:!0,connectionId:0,encodedDataLength:l,securityState:"info"},p={requestId:i,type:mimeTypeToType(d.mimeType),response:d,timestamp:getTimeStamp()};e.__inspector.responseReceived(p);e.__inspector.loadingFinished({requestId:i,timestamp:getTimeStamp(),encodedDataLength:l});var h,m="Document"===p.type||"Script"===p.type;if(m)h=r.responseAsString;else if("Image"===p.type){var g=r.responseAsImage;if(g){var f=new java.io.ByteArrayOutputStream;g.compress(android.graphics.Bitmap.CompressFormat.PNG,100,f);var v=android.util.Base64.encodeToString(f.toByteArray(),android.util.Base64.DEFAULT);h=v}}var y={requestId:i,data:h,hasTextContent:m};e.__inspector.dataForRequestId(y)};t.requestWillBeSent=function requestWillBeSent(t,r){var n={url:r.url,method:r.method,headers:r.headers||{},postData:r.content?r.content.toString():"",initialPriority:"Medium",referrerPolicy:"no-referrer-when-downgrade"},i={requestId:t.toString(),url:n.url,request:n,timestamp:getTimeStamp(),type:"Document",wallTime:0};e.__inspector.requestWillBeSent(i)};function getTimeStamp(){var e=new Date;return Math.round(e.getTime()/1e3)}function mimeTypeToType(e){var t="Document";e&&(0===e.indexOf("image")?t="Image":-1===e.indexOf("javascript")&&-1===e.indexOf("json")||(t="Script"));return t}}(n||(n={}))}).call(this,r(20))},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return shareImage}));r.d(t,"b",(function(){return shareText}));var n,i=r(3),a=r(18),o=0,l=function useAndroidX(){return e.androidx&&e.androidx.appcompat}()?e.androidx.core.content:android.support.v4.content;function getIntent(e){var t=new android.content.Intent(android.content.Intent.ACTION_SEND);t.setType(e);return t}function share(e,t){n=i.Application.android.context;t=t||"How would you like to share this?";var r=android.content.Intent.createChooser(e,t);r.setFlags(android.content.Intent.FLAG_ACTIVITY_NEW_TASK);n.startActivity(r)}function shareImage(e,t){o++;n=i.Application.android.context;var r=getIntent("image/jpeg"),d=new java.io.ByteArrayOutputStream;e.android.compress(android.graphics.Bitmap.CompressFormat.JPEG,100,d);var p,h="socialsharing"+o+".jpg",m=new java.io.File(n.getExternalFilesDir(null),h),g=new java.io.FileOutputStream(m);g.write(d.toByteArray());g.flush();g.close();var f=parseInt(a.a.sdkVersion);p=f>=21?l.FileProvider.getUriForFile(n,i.Application.android.nativeApp.getPackageName()+".provider",m):android.net.Uri.fromFile(m);r.putExtra(android.content.Intent.EXTRA_STREAM,p);share(r,t)}function shareText(e,t){var r=getIntent("text/plain");r.putExtra(android.content.Intent.EXTRA_TEXT,e);share(r,t)}}).call(this,r(20))},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n;!function(e){e.circle="circle";e.square="square"}(n||(n={}))},,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.flip=flip;var n=r(212),i=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(n);function reduce(e,t){return"MathExpression"===e.type?function reduceMathExpression(e,t){e=function convertMathExpression(e,t){var r=(0,i.default)(e.left,e.right,t),n=reduce(r.left,t),a=reduce(r.right,t);if("MathExpression"===n.type&&"MathExpression"===a.type&&("/"===n.operator&&"*"===a.operator||"-"===n.operator&&"+"===a.operator||"*"===n.operator&&"/"===a.operator||"+"===n.operator&&"-"===a.operator)){isEqual(n.right,a.right)?r=(0,i.default)(n.left,a.left,t):isEqual(n.right,a.left)&&(r=(0,i.default)(n.left,a.right,t));n=reduce(r.left,t);a=reduce(r.right,t)}e.left=n;e.right=a;return e}(e,t);switch(e.operator){case"+":case"-":return function reduceAddSubExpression(e,t){var r=e,n=r.left,i=r.right,a=r.operator;if("CssVariable"===n.type||"CssVariable"===i.type)return e;if(0===i.value)return n;if(0===n.value&&"+"===a)return i;if(0===n.value&&"-"===a)return function flipValue(e){if(isValueType(e.type))e.value=-e.value;else if("MathExpression"==e.type){e.left=flipValue(e.left);e.right=flipValue(e.right)}return e}(i);if(n.type===i.type&&isValueType(n.type)){e=Object.assign({},n);e.value="+"===a?n.value+i.value:n.value-i.value}if(isValueType(n.type)&&("+"===i.operator||"-"===i.operator)&&"MathExpression"===i.type){if(n.type===i.left.type){e=Object.assign({},e);e.left=reduce({type:"MathExpression",operator:a,left:n,right:i.left},t);e.right=i.right;e.operator="-"===a?flip(i.operator):i.operator;return reduce(e,t)}if(n.type===i.right.type){e=Object.assign({},e);e.left=reduce({type:"MathExpression",operator:"-"===a?flip(i.operator):i.operator,left:n,right:i.right},t);e.right=i.left;return reduce(e,t)}}if("MathExpression"===n.type&&("+"===n.operator||"-"===n.operator)&&isValueType(i.type)){if(i.type===n.left.type){e=Object.assign({},n);e.left=reduce({type:"MathExpression",operator:a,left:n.left,right:i},t);return reduce(e,t)}if(i.type===n.right.type){e=Object.assign({},n);if("-"===n.operator){e.right=reduce({type:"MathExpression",operator:"-"===a?"+":"-",left:i,right:n.right},t);e.operator="-"===a?"-":"+"}else e.right=reduce({type:"MathExpression",operator:a,left:n.right,right:i},t);if(e.right.value<0){e.right.value*=-1;e.operator="-"===e.operator?"+":"-"}return reduce(e,t)}}return e}(e,t);case"/":return function reduceDivisionExpression(e,t){if(!isValueType(e.right.type))return e;if("Value"!==e.right.type)throw new Error('Cannot divide by "'+e.right.unit+'", number expected');if(0===e.right.value)throw new Error("Cannot divide by zero");if("MathExpression"===e.left.type){if(isValueType(e.left.left.type)&&isValueType(e.left.right.type)){e.left.left.value/=e.right.value;e.left.right.value/=e.right.value;return reduce(e.left,t)}return e}if(isValueType(e.left.type)){e.left.value/=e.right.value;return e.left}return e}(e,t);case"*":return function reduceMultiplicationExpression(e){if("MathExpression"===e.left.type&&"Value"===e.right.type){if(isValueType(e.left.left.type)&&isValueType(e.left.right.type)){e.left.left.value*=e.right.value;e.left.right.value*=e.right.value;return e.left}}else{if(isValueType(e.left.type)&&"Value"===e.right.type){e.left.value*=e.right.value;return e.left}if("Value"===e.left.type&&"MathExpression"===e.right.type){if(isValueType(e.right.left.type)&&isValueType(e.right.right.type)){e.right.left.value*=e.left.value;e.right.right.value*=e.left.value;return e.right}}else if("Value"===e.left.type&&isValueType(e.right.type)){e.right.value*=e.left.value;return e.right}}return e}(e)}return e}(e,t):e}function isEqual(e,t){return e.type===t.type&&e.value===t.value}function isValueType(e){switch(e){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":case"EmValue":case"ExValue":case"ChValue":case"RemValue":case"VhValue":case"VwValue":case"VminValue":case"VmaxValue":case"PercentageValue":case"Value":return!0}return!1}function flip(e){return"+"===e?"-":"+"}t.default=reduce},function(e,t,r){var n=r(127);function sourceFragment(e,t){function processLines(e,t){return r.slice(e,t).map((function(t,r){for(var n=String(e+r+1);n.length100){d=i-60+3;i=58}for(var p=a;p<=o;p++)if(p>=0&&p0&&r[p].length>d?"…":"")+r[p].substr(d,98)+(r[p].length>d+100-1?"…":"")}return[processLines(a,n),new Array(i+l+2).join("-")+"^",processLines(n,o)].filter(Boolean).join("\n")}e.exports=function SyntaxError(e,t,r,i,a){var o=n("SyntaxError",e);o.source=t;o.offset=r;o.line=i;o.column=a;o.sourceFragment=function(e){return sourceFragment(o,isNaN(e)?0:e)};Object.defineProperty(o,"formattedMessage",{get:function get(){return"Parse error: "+o.message+"\n"+sourceFragment(o,2)}});o.parseError={offset:r,line:i,column:a};return o}},function(e,t){function isDigit(e){return e>=48&&e<=57}function isUppercaseLetter(e){return e>=65&&e<=90}function isLowercaseLetter(e){return e>=97&&e<=122}function isLetter(e){return isUppercaseLetter(e)||isLowercaseLetter(e)}function isNonAscii(e){return e>=128}function isNameStart(e){return isLetter(e)||isNonAscii(e)||95===e}function isNonPrintable(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e}function isNewline(e){return 10===e||13===e||12===e}function isWhiteSpace(e){return isNewline(e)||32===e||9===e}function isValidEscape(e,t){return 92===e&&(!isNewline(t)&&0!==t)}var r=new Array(128);charCodeCategory.Eof=128;charCodeCategory.WhiteSpace=130;charCodeCategory.Digit=131;charCodeCategory.NameStart=132;charCodeCategory.NonPrintable=133;for(var n=0;n=65&&e<=70||e>=97&&e<=102},isUppercaseLetter:isUppercaseLetter,isLowercaseLetter:isLowercaseLetter,isLetter:isLetter,isNonAscii:isNonAscii,isNameStart:isNameStart,isName:function isName(e){return isNameStart(e)||isDigit(e)||45===e},isNonPrintable:isNonPrintable,isNewline:isNewline,isWhiteSpace:isWhiteSpace,isValidEscape:isValidEscape,isIdentifierStart:function isIdentifierStart(e,t,r){return 45===e?isNameStart(t)||45===t||isValidEscape(t,r):!!isNameStart(e)||92===e&&isValidEscape(e,t)},isNumberStart:function isNumberStart(e,t,r){return 43===e||45===e?isDigit(t)?2:46===t&&isDigit(r)?3:0:46===e?isDigit(t)?2:0:isDigit(e)?1:0},isBOM:function isBOM(e){return 65279===e||65534===e?1:0},charCodeCategory:charCodeCategory}},function(e,t,r){var n=r(127),i=r(128);function getLocation(e,t){var r=e&&e.loc&&e.loc[t];return r?{offset:r.offset,line:r.line,column:r.column}:null}e.exports={SyntaxReferenceError:function SyntaxReferenceError(e,t){var r=n("SyntaxReferenceError",e+(t?" `"+t+"`":""));r.reference=t;return r},MatchError:function MatchError(e,t,r,a){var o=n("SyntaxMatchError",e),l=function fromMatchResult(e){for(var t=e.tokens,r=e.longestMatch,n=r1}}(a),d=l.mismatchOffset||0,p=l.node||r,h=getLocation(p,"end"),m=l.last?h:getLocation(p,"start"),g=l.css;o.rawMessage=e;o.syntax=t?i(t):"";o.css=g;o.mismatchOffset=d;o.loc={source:p&&p.loc&&p.loc.source||"",start:m,end:h};o.line=m?m.line:void 0;o.column=m?m.column:void 0;o.offset=m?m.offset:void 0;o.message=e+"\n syntax: "+o.syntax+"\n value: "+(o.css||"")+"\n --------"+new Array(o.mismatchOffset+1).join("-")+"^";return o}}},function(e,t){var r="undefined"!=typeof Uint32Array?Uint32Array:Array;e.exports=function adoptBuffer(e,t){return null===e||e.length2&&40===e.charCodeAt(e.length-2)&&41===e.charCodeAt(e.length-1)}function isEnumCapatible(e){return"Keyword"===e.type||"AtKeyword"===e.type||"Function"===e.type||"Type"===e.type&&isFunctionType(e.name)}function _buildMatchGraph(e){if("function"==typeof e)return{type:"Generic",fn:e};switch(e.type){case"Group":var t=function buildGroupMatchGraph(e,t,r){switch(e){case" ":for(var n=i,o=t.length-1;o>=0;o--){var l=t[o];n=createCondition(l,n,a)}return n;case"|":n=a;var d=null;for(o=t.length-1;o>=0;o--){l=t[o];if(isEnumCapatible(l)){if(null===d&&o>0&&isEnumCapatible(t[o-1])){d=Object.create(null);n=createCondition({type:"Enum",map:d},i,n)}if(null!==d){var p=(isFunctionType(l.name)?l.name.slice(0,-1):l.name).toLowerCase();if(p in d==!1){d[p]=l;continue}}}d=null;n=createCondition(l,i,n)}return n;case"&&":if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};for(n=a,o=t.length-1;o>=0;o--){l=t[o];h=t.length>1?buildGroupMatchGraph(e,t.filter((function(e){return e!==l})),!1):i;n=createCondition(l,h,n)}return n;case"||":if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};for(n=r?i:a,o=t.length-1;o>=0;o--){var h;l=t[o];h=t.length>1?buildGroupMatchGraph(e,t.filter((function(e){return e!==l})),!0):i;n=createCondition(l,h,n)}return n}}(e.combinator,e.terms.map(_buildMatchGraph),!1);e.disallowEmpty&&(t=createCondition(t,o,a));return t;case"Multiplier":return function buildMultiplierMatchGraph(e){var t=i,r=_buildMatchGraph(e.term);if(0===e.max){r=createCondition(r,o,a);t=createCondition(r,null,a);t.then=createCondition(i,i,t);e.comma&&(t.then.else=createCondition({type:"Comma",syntax:e},t,a))}else for(var n=e.min||1;n<=e.max;n++){e.comma&&t!==i&&(t=createCondition({type:"Comma",syntax:e},t,a));t=createCondition(r,createCondition(i,i,t),a)}if(0===e.min)t=createCondition(i,i,t);else for(n=0;n{var r=t.get();return r&&r._domId===e});return t&&t.get()}(r.getInt("_tabId"));this.index=r.getInt("_index");if(!this.owner)throw new Error("Cannot find BottomNavigation")};TabFragmentImplementation.prototype.onCreateView=function(e,t,r){var n=this.owner.items[this.index];return n.nativeViewProtected};TabFragmentImplementation.prototype.onDestroyView=function(){var e=this.getRemovingParentFragment();if(e&&this.owner.selectedIndex===this.index){var r=new android.graphics.drawable.BitmapDrawable(o,this.backgroundBitmap);this.owner._originalBackground=this.owner.backgroundColor||new v.a("White");this.owner.nativeViewProtected.setBackgroundDrawable(r);this.backgroundBitmap=null;var n=this.getView();if(n){var i=n.getParent();i&&i instanceof android.view.ViewGroup&&i.removeView(n)}}t.prototype.onDestroyView.call(this)};TabFragmentImplementation.prototype.onPause=function(){var e=this.getRemovingParentFragment();e&&this.owner.selectedIndex===this.index&&(this.backgroundBitmap=this.loadBitmapFromView(this.owner.nativeViewProtected));t.prototype.onPause.call(this)};TabFragmentImplementation.prototype.loadBitmapFromView=function(e){e.setDrawingCacheEnabled(!0);var t=android.graphics.Bitmap.createBitmap(e.getDrawingCache());e.setDrawingCacheEnabled(!1);return t};return TabFragmentImplementation}(org.nativescript.widgets.FragmentBase),r=function(t){__extends(BottomNavigationBarImplementation,t);function BottomNavigationBarImplementation(r,n){var i=t.call(this,r)||this;i.owner=n;return e.__native(i)}BottomNavigationBarImplementation.prototype.onSelectedPositionChange=function(e,t){var r=this.owner;if(r){r.changeTab(e);var n=r.tabStrip&&r.tabStrip.items;e>=0&&n&&n[e]&&n[e]._emit(d.a.selectEvent);t>=0&&n&&n[t]&&n[t]._emit(d.a.unselectEvent);r._setItemsColors(r.tabStrip.items)}};BottomNavigationBarImplementation.prototype.onTap=function(e){var t=this.owner;if(!t)return!1;var r=t.tabStrip,n=r&&r.items;if(e>=0&&n[e]){n[e]._emit(d.a.tapEvent);r.notify({eventName:l.a.itemTapEvent,object:r,index:e})}return!!t.items[e]};return BottomNavigationBarImplementation}(org.nativescript.widgets.BottomNavigationBar),h=function(t){__extends(AttachListener,t);function AttachListener(){var r=t.call(this)||this;return e.__native(r)}AttachListener.prototype.onViewAttachedToWindow=function(e){var t=e[S];t&&t._onAttachedToWindow()};AttachListener.prototype.onViewDetachedFromWindow=function(e){var t=e[S];t&&t._onDetachedFromWindow()};AttachListener=__decorate([Interfaces([android.view.View.OnAttachStateChangeListener])],AttachListener);return AttachListener}(java.lang.Object);n=t;i=r;a=new h;o=p.android.context.getResources()}}var b=new Array;var x=class BottomNavigation extends w.a{constructor(){super();this._contentViewId=-1;this._attachedToWindow=!1;this._textTransform="none";b.push(new WeakRef(this))}get _hasFragments(){return!0}onItemsChanged(e,t){super.onItemsChanged(e,t);e&&e.forEach((e,t,r)=>{e.index=0;e.tabItemSpec=null;e.setNativeView(null)})}createNativeView(){initializeNativeClasses();var e=this._context,t=new org.nativescript.widgets.GridLayout(e);t.addRow(new org.nativescript.widgets.ItemSpec(1,org.nativescript.widgets.GridUnitType.star));t.addRow(new org.nativescript.widgets.ItemSpec(1,org.nativescript.widgets.GridUnitType.auto));var r=new org.nativescript.widgets.ContentLayout(this._context),n=new org.nativescript.widgets.CommonLayoutParams;n.row=0;r.setLayoutParams(n);t.addView(r);t.contentView=r;var a=new i(e,this),o=new org.nativescript.widgets.CommonLayoutParams;o.row=1;a.setLayoutParams(o);t.addView(a);t.bottomNavigationBar=a;!function setElevation(e){var t=androidx.core.view.ViewCompat;if(t.setElevation){var r=8*m.n.getDisplayDensity();t.setElevation(e,r)}}(a);var l=g.a.resources.getPaletteColor("colorPrimary",e);l&&a.setBackgroundColor(l);return t}initNativeView(){super.initNativeView();this._contentViewId<0&&(this._contentViewId=android.view.View.generateViewId());var e=this.nativeViewProtected;e.addOnAttachStateChangeListener(a);e[S]=this;this._contentView=e.contentView;this._contentView.setId(this._contentViewId);this._bottomNavigationBar=e.bottomNavigationBar;this._bottomNavigationBar.owner=this;this.tabStrip&&this.tabStrip.setNativeView(this._bottomNavigationBar)}_loadUnloadTabItems(e){var t=this.items,r=this.items.length-1,n=[],i=[];!function iterateIndexRange(e,t,r,n){for(var i=Math.max(0,e-t),a=Math.min(e+t,r),o=i;o<=a;o++)n(o)}(e,0,r,e=>i.push(e));t.forEach((e,t)=>{var r=i.indexOf(t);r<0&&n.push(t)});n.forEach(e=>{var r=t[e];t[e]&&r.unloadView(r.content)});var a=t[e],o=a&&a.content;o instanceof y.Frame&&o._pushInFrameStackRecursive();i.forEach(e=>{var r=t[e];this.isLoaded&&t[e]&&r.loadView(r.content)})}onLoaded(){super.onLoaded();if(this._originalBackground){this.backgroundColor=null;this.backgroundColor=this._originalBackground;this._originalBackground=null}this.tabStrip?this.setTabStripItems(this.tabStrip.items):this._bottomNavigationBar.setVisibility(android.view.View.GONE);this.changeTab(this.selectedIndex)}_onAttachedToWindow(){super._onAttachedToWindow();if(!this._manager||!this._manager.isDestroyed()){this._attachedToWindow=!0;this.changeTab(this.selectedIndex)}}_onDetachedFromWindow(){super._onDetachedFromWindow();this._attachedToWindow=!1}onUnloaded(){super.onUnloaded();this.tabStrip&&this.setTabStripItems(null);var e=this._currentFragment;if(e){this.destroyItem(e.index,e);this.commitCurrentTransaction()}}disposeNativeView(){this._bottomNavigationBar.setItems(null);this._bottomNavigationBar=null;this.nativeViewProtected.removeOnAttachStateChangeListener(a);this.nativeViewProtected[S]=null;super.disposeNativeView()}_onRootViewReset(){super._onRootViewReset();this.disposeTabFragments()}disposeTabFragments(){for(var e=this._getFragmentManager(),t=e.beginTransaction(),r=e.getFragments().toArray(),n=0;n{r._index=n;if(e[n]){var a=this.createTabItemSpec(e[n]);t.push(a)}});this._bottomNavigationBar.setItems(t);e.forEach((e,t,r)=>{var n=this._bottomNavigationBar.getTextViewForItemAt(t);e.setNativeView(n);this._setItemColor(e)})}else this._bottomNavigationBar.setItems(null)}getItemLabelTextTransform(e){var t=e.label,r=null;t&&"initial"!==t.style.textTransform?r=t.style.textTransform:"initial"!==e.style.textTransform&&(r=e.style.textTransform);return r||this._textTransform}createTabItemSpec(e){var t=new org.nativescript.widgets.TabItemSpec;if(e.isLoaded){var r=e.label,n=r.text,i=this.getItemLabelTextTransform(e);n=Object(C.e)(n,i);t.title=n;var a=e.style.backgroundColor;t.backgroundColor=a?a.android:this.getTabBarBackgroundArgbColor();var o=this.selectedIndex===e._index?this._selectedItemColor:this._unSelectedItemColor,l=o||r.style.color;t.color=l&&l.android;var d=r.style.fontInternal;if(d){t.fontSize=d.fontSize;t.typeFace=d.getAndroidTypeface()}var p=e.image&&e.image.src;if(p){var h=this.getIconInfo(e,o);if(h){t.iconDrawable=h.drawable;t.imageHeight=h.height}}}return t}getOriginalIcon(e,t){var r,n=e.image&&e.image.src;if(!n)return null;if(Object(m.l)(n)){var i=n.split("//")[1],a=e.image?e.image:e,o=a.style.fontInternal;t||(t=a.style.color);r=h.ImageSource.fromFontIconCodeSync(i,o,t)}else r=h.ImageSource.fromFileOrResourceSync(n);return r&&r.android}getDrawableInfo(e){if(e){this.tabStrip&&this.tabStrip.isIconSizeFixed&&(e=this.getFixedSizeIcon(e));var t=new android.graphics.drawable.BitmapDrawable(p.android.context.getResources(),e);return{drawable:t,height:e.getHeight()}}return new IconInfo}getIconInfo(e,t){var r=this.getOriginalIcon(e,t);return this.getDrawableInfo(r)}getFixedSizeIcon(e){var t=e.getWidth(),r=e.getHeight(),n=Object(w.b)({width:t,height:r}),i=n.width*m.n.getDisplayDensity(),a=n.height*m.n.getDisplayDensity(),o=android.graphics.Bitmap.createScaledBitmap(e,i,a,!0);return o}updateAndroidItemAt(e,t){this._bottomNavigationBar.updateItemAt(e,t)}getTabBarBackgroundColor(){return this._bottomNavigationBar.getBackground()}setTabBarBackgroundColor(e){e instanceof v.a?this._bottomNavigationBar.setBackgroundColor(e.android):this._bottomNavigationBar.setBackground(function tryCloneDrawable(e,t){if(e){var r=e.getConstantState();if(r)return r.newDrawable(t)}return e}(e,this.nativeViewProtected.getResources()));this.updateTabStripItems()}updateTabStripItems(){this.tabStrip.items.forEach(e=>{if(e.nativeView){var t=this.createTabItemSpec(e);this.updateAndroidItemAt(e._index,t)}})}_setItemsColors(e){e.forEach(e=>{e.nativeView&&this._setItemColor(e)})}getTabBarSelectedItemColor(){return this._selectedItemColor}setTabBarSelectedItemColor(e){this._selectedItemColor=e;this._setItemsColors(this.tabStrip.items)}getTabBarUnSelectedItemColor(){return this._unSelectedItemColor}setTabBarUnSelectedItemColor(e){this._unSelectedItemColor=e;this._setItemsColors(this.tabStrip.items)}updateItem(e){var t=this.tabStrip.items.indexOf(e),r=this.createTabItemSpec(e);this.updateAndroidItemAt(t,r)}setTabBarItemTitle(e,t){this.updateItem(e)}setTabBarItemBackgroundColor(e,t){this.updateItem(e)}_setItemColor(e){var t=e._index===this.selectedIndex?this._selectedItemColor:this._unSelectedItemColor;if(t){e.nativeViewProtected.setTextColor(t.android);this.setIconColor(e,t)}}setIconColor(e,t){var r=this._bottomNavigationBar.getViewForItemAt(e._index),n=this.getIconInfo(e,t),i=r.getChildAt(0);i.setImageDrawable(n.drawable);t&&i.setColorFilter(t.android)}setTabBarItemColor(e,t){var r=e._index===this.selectedIndex?this._selectedItemColor:this._unSelectedItemColor;if(!r){var n=t instanceof v.a?t.android:t;e.nativeViewProtected.setTextColor(n)}}setTabBarIconColor(e,t){var r=e._index===this.selectedIndex?this._selectedItemColor:this._unSelectedItemColor;r||this.setIconColor(e)}setTabBarIconSource(e,t){this.updateItem(e)}setTabBarItemFontInternal(e,t){t.fontSize&&e.nativeViewProtected.setTextSize(t.fontSize);e.nativeViewProtected.setTypeface(t.getAndroidTypeface())}setTabBarItemTextTransform(e,t){var r=e.label,n=Object(C.e)(r.text,t);e.nativeViewProtected.setText(n)}getTabBarTextTransform(){return this._textTransform}setTabBarTextTransform(e){var t=this.tabStrip&&this.tabStrip.items;t&&t.forEach(t=>{if(t.label&&t.nativeViewProtected){var r=t.label,n=Object(C.e)(r.text,e);t.nativeViewProtected.setText(n)}});this._textTransform=e}[w.d.setNative](e){this.tabStrip?this._bottomNavigationBar.setSelectedPosition(e):this.changeTab(e)}[w.c.getDefault](){return null}[w.c.setNative](e){e&&e.forEach((e,t)=>{e.index=t});w.d.coerce(this)}[w.e.getDefault](){return null}[w.e.setNative](e){var t=this.tabStrip?this.tabStrip.items:null;this.setTabStripItems(t)}};x=__decorate([Object(f.a)("BottomNavigation"),__metadata("design:paramtypes",[])],x)}).call(this,r(20))},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return DatePicker}));var n,i=r(51);class DatePicker extends i.a{createNativeView(){var e=new android.widget.DatePicker(this._context);e.setCalendarViewShown(!1);return e}initNativeView(){super.initNativeView();!function initializeDateChangedListener(){if(!n){var t=function(t){__extends(DateChangedListenerImpl,t);function DateChangedListenerImpl(r){var n=t.call(this)||this;n.owner=r;return e.__native(n)}DateChangedListenerImpl.prototype.onDateChanged=function(e,t,r,n){var a=this.owner,o=!1;if(t!==a.year){i.g.nativeValueChange(a,t);o=!0}if(r!==a.month-1){i.f.nativeValueChange(a,r+1);o=!0}if(n!==a.day){i.c.nativeValueChange(a,n);o=!0}o&&i.b.nativeValueChange(a,new Date(t,r,n))};DateChangedListenerImpl=__decorate([Interfaces([android.widget.DatePicker.OnDateChangedListener])],DateChangedListenerImpl);return DateChangedListenerImpl}(java.lang.Object);n=t}}();var t=this.nativeViewProtected,r=new n(this);t.init(this.year,this.month-1,this.day,r);t.listener=r}disposeNativeView(){this.nativeViewProtected.listener.owner=null;super.disposeNativeView()}updateNativeDate(){var e=this.nativeViewProtected,t="number"==typeof this.year?this.year:e.getYear(),r="number"==typeof this.month?this.month-1:e.getMonth(),n="number"==typeof this.day?this.day:e.getDayOfMonth();this.date=new Date(t,r,n)}[i.g.setNative](e){this.nativeViewProtected.getYear()!==e&&this.updateNativeDate()}[i.f.setNative](e){this.nativeViewProtected.getMonth()!==e-1&&this.updateNativeDate()}[i.c.setNative](e){this.nativeViewProtected.getDayOfMonth()!==e&&this.updateNativeDate()}[i.b.setNative](e){var t=this.nativeViewProtected;t.getDayOfMonth()===e.getDate()&&t.getMonth()===e.getMonth()&&t.getYear()===e.getFullYear()||t.updateDate(e.getFullYear(),e.getMonth(),e.getDate())}[i.d.getDefault](){return this.nativeViewProtected.getMaxDate()}[i.d.setNative](e){var t=e instanceof Date?e.getTime():e;this.nativeViewProtected.setMaxDate(t)}[i.e.getDefault](){return this.nativeViewProtected.getMinDate()}[i.e.setNative](e){var t=e instanceof Date?e.getTime():e;this.nativeViewProtected.setMinDate(t)}}}).call(this,r(20))},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return Cache}));var n,i=r(182),a=r(1);class Cache extends i.a{constructor(){super();!function ensureLruBitmapCacheClass(){if(!n){var t=function(t){__extends(LruBitmapCache,t);function LruBitmapCache(r){var n=t.call(this,r)||this;return e.__native(n)}LruBitmapCache.prototype.sizeOf=function(e,t){var r=Math.round(t.getByteCount()/1024);return r};return LruBitmapCache}(android.util.LruCache);n=t}}();var t=java.lang.Runtime.getRuntime().maxMemory()/1024,r=t/8;this._cache=new n(r);var i=new WeakRef(this);this._callback=new org.nativescript.widgets.Async.CompleteCallback({onComplete:function onComplete(e,t){var r=i.get();r&&(e?r._onDownloadCompleted(t,e):r._onDownloadError(t,new Error("No result in CompletionCallback")))},onError:function onError(e,t){var r=i.get();r&&r._onDownloadError(t,new Error(e))}})}_downloadCore(e){org.nativescript.widgets.Async.Image.download(e.url,this._callback,e.key)}get(e){var t=this._cache.get(e);return t}set(e,t){try{e&&t&&this._cache.put(e,t)}catch(e){a.a.write("Cache set error: "+e,a.a.categories.Error,a.a.messageType.error)}}remove(e){this._cache.remove(e)}clear(){this._cache.evictAll()}}}).call(this,r(20))},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return ListPicker}));var n,i,a,o=r(83),l=r(2),d=r(4),p=r(18),h=r(49);Object(h.a)(()=>parseInt(p.a.sdkVersion));class ListPicker extends o.a{createNativeView(){var e=new android.widget.NumberPicker(this._context);e.setDescendantFocusability(android.widget.NumberPicker.FOCUS_BLOCK_DESCENDANTS);e.setMinValue(0);e.setMaxValue(0);e.setValue(0);e.setWrapSelectorWheel(!1);return e}initNativeView(){super.initNativeView();!function initializeNativeClasses(){if(!n){var t=function(t){__extends(FormatterImpl,t);function FormatterImpl(r){var n=t.call(this)||this;n.owner=r;return e.__native(n)}FormatterImpl.prototype.format=function(e){return this.owner._getItemAsString(e)};FormatterImpl=__decorate([Interfaces([android.widget.NumberPicker.Formatter])],FormatterImpl);return FormatterImpl}(java.lang.Object),r=function(t){__extends(ValueChangeListenerImpl,t);function ValueChangeListenerImpl(r){var n=t.call(this)||this;n.owner=r;return e.__native(n)}ValueChangeListenerImpl.prototype.onValueChange=function(e,t,r){o.c.nativeValueChange(this.owner,r);this.owner.updateSelectedValue(r)};ValueChangeListenerImpl=__decorate([Interfaces([android.widget.NumberPicker.OnValueChangeListener])],ValueChangeListenerImpl);return ValueChangeListenerImpl}(java.lang.Object);n=t;i=r}}();var t=this.nativeViewProtected;this._selectorWheelPaint=function getSelectorWheelPaint(e){try{a=e.getClass().getDeclaredField("mSelectorWheelPaint");a&&a.setAccessible(!0)}catch(e){}return a?a.get(e):null}(t);var r=new n(this);t.setFormatter(r);t.formatter=r;var l=new i(this);t.setOnValueChangedListener(l);t.valueChangedListener=l;var d=function getEditText(e){for(var t=0,r=e.getChildCount();t=0&&this.nativeViewProtected.setValue(e)}[o.b.getDefault](){return null}[o.b.setNative](e){var t=e&&e.length>0?e.length-1:0;this.nativeViewProtected.setMaxValue(t);this._fixNumberPickerRendering();o.c.coerce(this)}[l.colorProperty.getDefault](){return this._selectorWheelPaint?this._selectorWheelPaint.getColor():this.nativeView&&this.nativeView.getTextColor?this.nativeView.getTextColor():0}[l.colorProperty.setNative](e){var t=e instanceof d.a?e.android:e;if(this._selectorWheelPaint){this._selectorWheelPaint.setColor(t);var r=this.nativeViewProtected.editText;r&&r.setTextColor(t)}else this.nativeView&&this.nativeView.setTextColor&&this.nativeView.setTextColor(t)}}}).call(this,r(20))},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return ListView}));var n,i,a=r(72),o=r(0),l=r(4),d=r(16),p=r(61),h=r(119),m=r(26),g=r(6),f=a.a.itemLoadingEvent,v=a.a.loadMoreItemsEvent,y=a.a.itemTapEvent;class ListView extends a.a{constructor(){super(...arguments);this._androidViewId=-1;this._realizedItems=new Map;this._realizedTemplates=new Map}createNativeView(){var e=new android.widget.ListView(this._context);e.setDescendantFocusability(android.view.ViewGroup.FOCUS_AFTER_DESCENDANTS);e.setCacheColorHint(android.graphics.Color.TRANSPARENT);return e}initNativeView(){super.initNativeView();this.updateEffectiveRowHeight();var t=this.nativeViewProtected;!function initializeItemClickListener(){if(!n){var t=function(t){__extends(ItemClickListenerImpl,t);function ItemClickListenerImpl(r){var n=t.call(this)||this;n.owner=r;return e.__native(n)}ItemClickListenerImpl.prototype.onItemClick=function(e,t,r,n){var i=this.owner,a=i._realizedTemplates.get(i._getItemTemplate(r).key).get(t);i.notify({eventName:y,object:i,index:r,view:a})};ItemClickListenerImpl=__decorate([Interfaces([android.widget.AdapterView.OnItemClickListener])],ItemClickListenerImpl);return ItemClickListenerImpl}(java.lang.Object);n=t}}();!function ensureListViewAdapterClass(){if(i)return;var t=function(t){__extends(ListViewAdapter,t);function ListViewAdapter(r){var n=t.call(this)||this;n.owner=r;return e.__native(n)}ListViewAdapter.prototype.getCount=function(){return this.owner&&this.owner.items&&this.owner.items.length?this.owner.items.length:0};ListViewAdapter.prototype.getItem=function(e){if(this.owner&&this.owner.items&&e-1?l.view.height=this.owner.rowHeight:l.view.height=o.unsetValue;this.owner._prepareItem(l.view,e);if(!l.view.parent)if(l.view instanceof m.a&&!(l.view instanceof h.a)){this.owner._addView(l.view);t=l.view.nativeViewProtected}else{var d=new p.a;d.addChild(l.view);this.owner._addView(d);t=d.nativeViewProtected}var g=this.owner._realizedTemplates.get(a.key);if(!g){g=new Map;this.owner._realizedTemplates.set(a.key,g)}g.set(t,l.view);this.owner._realizedItems.set(t,l.view)}return t};__decorate([g.f],ListViewAdapter.prototype,"getView",null);return ListViewAdapter}(android.widget.BaseAdapter);i=t}();var r=new i(this);t.setAdapter(r);t.adapter=r;var a=new n(this);t.setOnItemClickListener(a);t.itemClickListener=a;this._androidViewId<0&&(this._androidViewId=android.view.View.generateViewId());t.setId(this._androidViewId)}disposeNativeView(){var e=this.nativeViewProtected;e.setAdapter(null);e.itemClickListener.owner=null;e.adapter.owner=null;this.clearRealizedCells();super.disposeNativeView()}onLoaded(){super.onLoaded();this.requestLayout()}refresh(){var e=this.nativeViewProtected;if(e&&e.getAdapter()){this._realizedItems.forEach((e,t)=>{e.bindingContext instanceof d.a||(e.bindingContext=null)});e.getAdapter().notifyDataSetChanged()}}scrollToIndex(e){var t=this.nativeViewProtected;t&&t.setSelection(e)}scrollToIndexAnimated(e){var t=this.nativeViewProtected;t&&t.smoothScrollToPosition(e)}get _childrenCount(){return this._realizedItems.size}eachChildView(e){this._realizedItems.forEach((t,r)=>{t.parent instanceof ListView?e(t):t.parent&&e(t.parent)})}_dumpRealizedTemplates(){console.log("Realized Templates:");this._realizedTemplates.forEach((e,t)=>{console.log("\t".concat(t,":"));e.forEach((e,t)=>{console.log("\t\t".concat(t.hashCode(),": ").concat(e))})});console.log("Realized Items Size: ".concat(this._realizedItems.size))}clearRealizedCells(){this._realizedItems.forEach((e,t)=>{if(e.parent){e.parent instanceof ListView||this._removeView(e.parent);e.parent._removeView(e)}});this._realizedItems.clear();this._realizedTemplates.clear()}isItemAtIndexVisible(e){var t=this.nativeViewProtected,r=t.getFirstVisiblePosition(),n=t.getLastVisiblePosition();return e>=r&&e<=n}[a.c.getDefault](){var e=this.nativeViewProtected;return{dividerHeight:e.getDividerHeight(),divider:e.getDivider()}}[a.c.setNative](e){var t=this.nativeViewProtected;if(e instanceof l.a){t.setDivider(new android.graphics.drawable.ColorDrawable(e.android));t.setDividerHeight(1)}else{t.setDivider(e.divider);t.setDividerHeight(e.dividerHeight)}}[a.b.getDefault](){return null}[a.b.setNative](e){this._itemTemplatesInternal=new Array(this._defaultTemplate);e&&(this._itemTemplatesInternal=this._itemTemplatesInternal.concat(e));this.nativeViewProtected.setAdapter(new i(this));this.refresh()}}__decorate([g.f,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],ListView.prototype,"createNativeView",null)}).call(this,r(20))},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return SearchBar}));var n,i,a=r(27),o=r(52),l=r(19),d=r(40),p=r(4),h=r(2),m=Symbol("searchText"),g=Symbol("query");class SearchBar extends o.a{dismissSoftInput(){d.a.dismissSoftInput(this.nativeViewProtected)}focus(){var e=super.focus();e&&d.a.showSoftInput(this.nativeViewProtected);return e}createNativeView(){var e=new androidx.appcompat.widget.SearchView(this._context);e.setIconified(!1);return e}initNativeView(){super.initNativeView();var t=this.nativeViewProtected;!function initializeNativeClasses(){if(!n){var t=function(t){__extends(CompatQueryTextListenerImpl,t);function CompatQueryTextListenerImpl(r){var n=t.call(this)||this;n.owner=r;return e.__native(n)}CompatQueryTextListenerImpl.prototype.onQueryTextChange=function(e){var t=this.owner;o.e.nativeValueChange(t,e);""===e&&this[m]!==e&&t._emit(o.a.clearEvent);this[m]=e;this[g]=void 0;return!0};CompatQueryTextListenerImpl.prototype.onQueryTextSubmit=function(e){var t=this.owner;""!==e&&this[g]!==e&&t._emit(o.a.submitEvent);this[g]=e;return!0};CompatQueryTextListenerImpl=__decorate([Interfaces([androidx.appcompat.widget.SearchView.OnQueryTextListener])],CompatQueryTextListenerImpl);return CompatQueryTextListenerImpl}(java.lang.Object),r=function(t){__extends(CompatCloseListenerImpl,t);function CompatCloseListenerImpl(r){var n=t.call(this)||this;n.owner=r;return e.__native(n)}CompatCloseListenerImpl.prototype.onClose=function(){this.owner._emit(o.a.clearEvent);return!0};CompatCloseListenerImpl=__decorate([Interfaces([androidx.appcompat.widget.SearchView.OnCloseListener])],CompatCloseListenerImpl);return CompatCloseListenerImpl}(java.lang.Object);n=t;i=r}}();var r=new n(this);t.setOnQueryTextListener(r);t.queryTextListener=r;var a=new i(this);t.setOnCloseListener(a);t.closeListener=a}disposeNativeView(){var e=this.nativeViewProtected;e.closeListener.owner=null;e.queryTextListener.owner=null;this._searchPlate=null;this._searchTextView=null;super.disposeNativeView()}[l.e.setNative](e){!function enableSearchView(e,t){e.setEnabled(t);if(e instanceof android.view.ViewGroup)for(var r=0;r{var r=t.get();return r&&r._domId===e});return t&&t.get()}(r.getInt("_tabId"));this.index=r.getInt("_index");if(!this.owner)throw new Error("Cannot find TabView")};TabFragmentImplementation.prototype.onCreateView=function(e,t,r){var n=this.owner.items[this.index];return n.nativeViewProtected};TabFragmentImplementation.prototype.onDestroyView=function(){var e=this.getRemovingParentFragment();if(e&&this.owner.selectedIndex===this.index){var r=new android.graphics.drawable.BitmapDrawable(a,this.backgroundBitmap);this.owner._originalBackground=this.owner.backgroundColor||new g.a("White");this.owner.nativeViewProtected.setBackgroundDrawable(r);this.backgroundBitmap=null}t.prototype.onDestroyView.call(this)};TabFragmentImplementation.prototype.onPause=function(){var e=this.getRemovingParentFragment();e&&this.owner.selectedIndex===this.index&&(this.backgroundBitmap=this.loadBitmapFromView(this.owner.nativeViewProtected));t.prototype.onPause.call(this)};TabFragmentImplementation.prototype.loadBitmapFromView=function(e){e.setDrawingCacheEnabled(!0);var t=android.graphics.Bitmap.createBitmap(e.getDrawingCache());e.setDrawingCacheEnabled(!1);return t};return TabFragmentImplementation}(org.nativescript.widgets.FragmentBase),r=function(r){__extends(FragmentPagerAdapter,r);function FragmentPagerAdapter(t){var n=r.call(this)||this;n.owner=t;return e.__native(n)}FragmentPagerAdapter.prototype.getCount=function(){var e=this.items;return e?e.length:0};FragmentPagerAdapter.prototype.getPageTitle=function(e){var t=this.items;return e<0||t.length,""};FragmentPagerAdapter.prototype.startUpdate=function(e){if(e.getId()===android.view.View.NO_ID)throw new Error("ViewPager with adapter "+this+" requires a view containerId")};FragmentPagerAdapter.prototype.instantiateItem=function(e,r){var n=this.owner._getFragmentManager();this.mCurTransaction||(this.mCurTransaction=n.beginTransaction());var i=this.getItemId(r),a=function makeFragmentName(e,t){return"android:viewpager:"+e+":"+t}(e.getId(),i),o=n.findFragmentByTag(a);if(null!=o)this.mCurTransaction.attach(o);else{o=t.newInstance(this.owner._domId,r);this.mCurTransaction.add(e.getId(),o,a)}if(o!==this.mCurrentPrimaryItem){o.setMenuVisibility(!1);o.setUserVisibleHint(!1)}var l=this.owner.items,d=l?l[r]:null;d&&(d.canBeLoaded=!0);return o};FragmentPagerAdapter.prototype.getItemPosition=function(e){return this.items?-1:-2};FragmentPagerAdapter.prototype.destroyItem=function(e,t,r){if(!this.mCurTransaction){var n=this.owner._getFragmentManager();this.mCurTransaction=n.beginTransaction()}var i=r;this.mCurTransaction.detach(i);this.mCurrentPrimaryItem===i&&(this.mCurrentPrimaryItem=null);var a=this.owner.items,o=a?a[t]:null;o&&(o.canBeLoaded=!1)};FragmentPagerAdapter.prototype.setPrimaryItem=function(e,t,r){var n=r;if(n!==this.mCurrentPrimaryItem){if(null!=this.mCurrentPrimaryItem){this.mCurrentPrimaryItem.setMenuVisibility(!1);this.mCurrentPrimaryItem.setUserVisibleHint(!1)}if(null!=n){n.setMenuVisibility(!0);n.setUserVisibleHint(!0)}this.mCurrentPrimaryItem=n;this.owner.selectedIndex=t;var i=this.owner,a=i.items,o=a?a[t]:null;o&&i._loadUnloadTabItems(i.selectedIndex)}};FragmentPagerAdapter.prototype.finishUpdate=function(e){this._commitCurrentTransaction()};FragmentPagerAdapter.prototype.isViewFromObject=function(e,t){return t.getView()===e};FragmentPagerAdapter.prototype.saveState=function(){this._commitCurrentTransaction();return null};FragmentPagerAdapter.prototype.restoreState=function(e,t){};FragmentPagerAdapter.prototype.getItemId=function(e){return e};FragmentPagerAdapter.prototype._commitCurrentTransaction=function(){if(null!=this.mCurTransaction){this.mCurTransaction.commitNowAllowingStateLoss();this.mCurTransaction=null}};return FragmentPagerAdapter}(androidx.viewpager.widget.PagerAdapter),p=function(t){__extends(TabsBarImplementation,t);function TabsBarImplementation(r,n){var i=t.call(this,r)||this;i.owner=n;return e.__native(i)}TabsBarImplementation.prototype.onSelectedPositionChange=function(e,t){var r=this.owner;if(r){var n=r.tabStrip&&r.tabStrip.items;if(e>=0&&n&&n[e]){n[e]._emit(l.a.selectEvent);r._setItemColor(n[e])}if(t>=0&&n&&n[t]){n[t]._emit(l.a.unselectEvent);r._setItemColor(n[t])}}};TabsBarImplementation.prototype.onTap=function(e){var t=this.owner;if(!t)return!1;var r=t.tabStrip,n=r&&r.items;if(e>=0&&n[e]){n[e]._emit(l.a.tapEvent);r.notify({eventName:o.a.itemTapEvent,object:r,index:e})}return!!t.items[e]};return TabsBarImplementation}(org.nativescript.widgets.TabsBar);n=r;i=p;a=d.android.context.getResources()}}var C=void 0;function getDefaultAccentColor(e){void 0===C&&(C=h.a.resources.getPaletteColor("colorAccent",e)||4281578981);return C}var S=new Array;class Tabs extends w.a{constructor(){super();this._androidViewId=-1;this._textTransform="uppercase";S.push(new WeakRef(this))}get _hasFragments(){return!0}onItemsChanged(e,t){super.onItemsChanged(e,t);e&&e.forEach((e,t,r)=>{e.index=0;e.tabItemSpec=null;e.setNativeView(null)})}createNativeView(){initializeNativeClasses();var e=this._context,t=new org.nativescript.widgets.GridLayout(e),r=new org.nativescript.widgets.TabViewPager(e),a=new i(e,this),o=new org.nativescript.widgets.CommonLayoutParams,l=h.a.resources.getPaletteColor("colorPrimary",e),d=getDefaultAccentColor(e);o.row=1;if("top"===this.tabsPosition){t.addRow(new org.nativescript.widgets.ItemSpec(1,org.nativescript.widgets.GridUnitType.auto));t.addRow(new org.nativescript.widgets.ItemSpec(1,org.nativescript.widgets.GridUnitType.star));r.setLayoutParams(o)}else{t.addRow(new org.nativescript.widgets.ItemSpec(1,org.nativescript.widgets.GridUnitType.star));t.addRow(new org.nativescript.widgets.ItemSpec(1,org.nativescript.widgets.GridUnitType.auto));a.setLayoutParams(o)}t.addView(r);t.viewPager=r;var p=new n(this);r.setAdapter(p);r.adapter=p;t.addView(a);t.tabsBar=a;!function setElevation(e,t,r){var n=androidx.core.view.ViewCompat;if(n.setElevation){var i=4*m.n.getDisplayDensity();"top"===r&&n.setElevation(e,i);n.setElevation(t,i)}}(t,a,this.tabsPosition);d&&a.setSelectedIndicatorColors([d]);l&&a.setBackgroundColor(l);return t}initNativeView(){super.initNativeView();this._androidViewId<0&&(this._androidViewId=android.view.View.generateViewId());var e=this.nativeViewProtected;this._tabsBar=e.tabsBar;var t=e.viewPager;t.setId(this._androidViewId);this._viewPager=t;this._pagerAdapter=t.adapter;this._pagerAdapter.owner=this}_loadUnloadTabItems(e){var t=this.items;if(t){var r=t.length-1,n=this.offscreenTabLimit,i=[],a=[];!function iterateIndexRange(e,t,r,n){for(var i=Math.max(0,e-t),a=Math.min(e+t,r),o=i;o<=a;o++)n(o)}(e,n,r,e=>a.push(e));t.forEach((e,t)=>{var r=a.indexOf(t);r<0&&i.push(t)});i.forEach(e=>{var r=t[e];t[e]&&r.unloadView(r.content)});var o=t[e],l=o&&o.content;l instanceof f.Frame&&l._pushInFrameStackRecursive();a.forEach(e=>{var r=t[e];this.isLoaded&&t[e]&&r.loadView(r.content)})}}onLoaded(){super.onLoaded();if(this._originalBackground){this.backgroundColor=null;this.backgroundColor=this._originalBackground;this._originalBackground=null}this.setItems(this.items);this.tabStrip&&this.setTabStripItems(this.tabStrip.items)}onUnloaded(){super.onUnloaded();this.setItems(null);this.setTabStripItems(null)}disposeNativeView(){this._tabsBar.setItems(null,null);this._pagerAdapter.owner=null;this._pagerAdapter=null;this._tabsBar=null;this._viewPager=null;super.disposeNativeView()}_onRootViewReset(){super._onRootViewReset();this.disposeCurrentFragments()}disposeCurrentFragments(){for(var e=this._getFragmentManager(),t=e.beginTransaction(),r=e.getFragments().toArray(),n=0;n!!e.filter(e=>e._domId===t._domId)[0]);return r.length!==e.length}setItems(e){if(this.shouldUpdateAdapter(e)){this._pagerAdapter.items=e;e&&e.length&&e.forEach((e,t)=>{e.index=t});this._pagerAdapter.notifyDataSetChanged()}}setTabStripItems(e){var t=e?e.length:0;if(0!==t){var r=new Array;e.forEach((e,t,n)=>{e._index=t;var i=this.createTabItemSpec(e);e.tabItemSpec=i;r.push(i)});var n=this._tabsBar;n.setItems(r,this._viewPager);this.tabStrip.setNativeView(n);e.forEach((e,t,r)=>{var i=n.getTextViewForItemAt(t);e.setNativeView(i);this._setItemColor(e)})}else this._tabsBar.setItems(null,null)}getItemLabelTextTransform(e){var t=e.label,r=null;t&&"initial"!==t.style.textTransform?r=t.style.textTransform:"initial"!==e.style.textTransform&&(r=e.style.textTransform);return r||this._textTransform}createTabItemSpec(e){var t=new org.nativescript.widgets.TabItemSpec;if(e.isLoaded){var r=e.label,n=r.text,i=this.getItemLabelTextTransform(e);n=Object(y.e)(n,i);t.title=n;var a=e.style.backgroundColor;t.backgroundColor=a?a.android:this.getTabBarBackgroundArgbColor();var o=this.selectedIndex===e._index?this._selectedItemColor:this._unSelectedItemColor,l=o||r.style.color;t.color=l&&l.android;var d=r.style.fontInternal;if(d){t.fontSize=d.fontSize;t.typeFace=d.getAndroidTypeface()}var p=e.image&&e.image.src;if(p){var h=this.getIcon(e,o);h&&(t.iconDrawable=h)}}return t}getIcon(e,t){var r,n,i=e.image&&e.image.src;if(!i)return null;if(Object(m.l)(i)){var o=i.split("//")[1],l=e.image?e.image:e,d=l.style.fontInternal;t||(t=l.style.color);r=p.ImageSource.fromFontIconCodeSync(o,d,t)}else r=p.ImageSource.fromFileOrResourceSync(i);if(r&&r.android){var h=r.android;this.tabStrip&&this.tabStrip.isIconSizeFixed&&(h=this.getFixedSizeIcon(h));n=new android.graphics.drawable.BitmapDrawable(a,h)}return n}getFixedSizeIcon(e){var t=e.getWidth(),r=e.getHeight(),n=Object(v.b)({width:t,height:r}),i=n.width*m.n.getDisplayDensity(),a=n.height*m.n.getDisplayDensity(),o=android.graphics.Bitmap.createScaledBitmap(e,i,a,!0);return o}updateAndroidItemAt(e,t){this._tabsBar.updateItemAt(e,t)}getTabBarBackgroundColor(){return this._tabsBar.getBackground()}setTabBarBackgroundColor(e){e instanceof g.a?this._tabsBar.setBackgroundColor(e.android):this._tabsBar.setBackground(function tryCloneDrawable(e,t){if(e){var r=e.getConstantState();if(r)return r.newDrawable(t)}return e}(e,this.nativeViewProtected.getResources()));this.updateTabStripItems()}updateTabStripItems(){this.tabStrip.items.forEach(e=>{if(e.nativeView){var t=this.createTabItemSpec(e);this.updateAndroidItemAt(e._index,t)}})}getTabBarHighlightColor(){return getDefaultAccentColor(this._context)}setTabBarHighlightColor(e){var t=e instanceof g.a?e.android:e;this._tabsBar.setSelectedIndicatorColors([t])}setItemsColors(e){e.forEach(e=>{e.nativeView&&this._setItemColor(e)})}getTabBarSelectedItemColor(){return this._selectedItemColor}setTabBarSelectedItemColor(e){this._selectedItemColor=e;this.setItemsColors(this.tabStrip.items)}getTabBarUnSelectedItemColor(){return this._unSelectedItemColor}setTabBarUnSelectedItemColor(e){this._unSelectedItemColor=e;this.setItemsColors(this.tabStrip.items)}updateItem(e){var t=this.tabStrip.items.indexOf(e),r=this.createTabItemSpec(e);this.updateAndroidItemAt(t,r)}setTabBarItemTitle(e,t){this.updateItem(e)}setTabBarItemBackgroundColor(e,t){this.updateItem(e)}_setItemColor(e){var t=e._index===this.selectedIndex?this._selectedItemColor:this._unSelectedItemColor;if(t){e.nativeViewProtected.setTextColor(t.android);this.setIconColor(e,t)}}setIconColor(e,t){var r=this._tabsBar.getViewForItemAt(e._index),n=this.getIcon(e,t),i=r.getChildAt(0);i.setImageDrawable(n);t&&i.setColorFilter(t.android)}setTabBarItemColor(e,t){var r=e._index===this.selectedIndex?this._selectedItemColor:this._unSelectedItemColor;if(!r){var n=t instanceof g.a?t.android:t;e.nativeViewProtected.setTextColor(n)}}setTabBarIconColor(e,t){var r=e._index===this.selectedIndex?this._selectedItemColor:this._unSelectedItemColor;r||this.setIconColor(e)}setTabBarIconSource(e,t){this.updateItem(e)}setTabBarItemFontInternal(e,t){t.fontSize&&e.nativeViewProtected.setTextSize(t.fontSize);e.nativeViewProtected.setTypeface(t.getAndroidTypeface())}getTabBarItemTextTransform(e){return this.getItemLabelTextTransform(e)}setTabBarItemTextTransform(e,t){var r=e.label,n=Object(y.e)(r.text,t);e.nativeViewProtected.setText(n)}getTabBarTextTransform(){return this._textTransform}setTabBarTextTransform(e){var t=this.tabStrip&&this.tabStrip.items;t&&t.forEach(t=>{if(t.label&&t.nativeViewProtected){var r=t.label,n=Object(y.e)(r.text,e);t.nativeViewProtected.setText(n)}});this._textTransform=e}[v.d.setNative](e){this._viewPager.setCurrentItem(e,this.animationEnabled)}[v.c.getDefault](){return null}[v.c.setNative](e){this.setItems(e);v.d.coerce(this)}[v.e.getDefault](){return null}[v.e.setNative](e){this.setTabStripItems(e.items)}[w.d.getDefault](){return!0}[w.d.setNative](e){this._viewPager.setSwipePageEnabled(e)}[w.c.getDefault](){return this._viewPager.getOffscreenPageLimit()}[w.c.setNative](e){this._viewPager.setOffscreenPageLimit(e)}[w.b.setNative](e){this._viewPager.setAnimationEnabled(e)}}}).call(this,r(20))},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return TimePicker}));var n,i,a=r(67);class TimePicker extends a.a{createNativeView(){return new android.widget.TimePicker(this._context)}initNativeView(){super.initNativeView();var t=this.nativeViewProtected;!function initializeTimeChangedListener(){if(!n){i=android.os.Build.VERSION.SDK_INT;var t=function(t){__extends(TimeChangedListenerImpl,t);function TimeChangedListenerImpl(r){var n=t.call(this)||this;n.owner=r;return e.__native(n)}TimeChangedListenerImpl.prototype.onTimeChanged=function(e,t,r){var n=this.owner;if(!n.updatingNativeValue){var i=Object(a.b)(n,t,r);a.e.nativeValueChange(n,new Date(0,0,0,i.hour,i.minute))}};TimeChangedListenerImpl=__decorate([Interfaces([android.widget.TimePicker.OnTimeChangedListener])],TimeChangedListenerImpl);return TimeChangedListenerImpl}(java.lang.Object);n=t}}();var r=new n(this);t.setOnTimeChangedListener(r);t.listener=r;var o=t.calendar=java.util.Calendar.getInstance(),l=a.c.isSet(this)?this.hour:o.get(java.util.Calendar.HOUR_OF_DAY),d=a.d.isSet(this)?this.minute:o.get(java.util.Calendar.MINUTE),p=Object(a.b)(this,l,d);a.e.isSet(this)||(this.time=new Date(0,0,0,p.hour,p.minute))}[a.d.setNative](e){this.updatingNativeValue=!0;try{i>=23?this.nativeViewProtected.setMinute(e):this.nativeViewProtected.setCurrentMinute(new java.lang.Integer(e))}finally{this.updatingNativeValue=!1}}[a.c.setNative](e){this.updatingNativeValue=!0;try{i>=23?this.nativeViewProtected.setHour(e):this.nativeViewProtected.setCurrentHour(new java.lang.Integer(e))}finally{this.updatingNativeValue=!1}}}}).call(this,r(20))},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return WebView}));var n,i=r(120),a=r(1),o=r(17);class WebView extends i.a{createNativeView(){var e=new android.webkit.WebView(this._context);e.getSettings().setJavaScriptEnabled(!0);e.getSettings().setBuiltInZoomControls(!0);return e}initNativeView(){super.initNativeView();!function initializeWebViewClient(){if(!n){var t=function(t){__extends(WebViewClientImpl,t);function WebViewClientImpl(r){var n=t.call(this)||this;n.owner=r;return e.__native(n)}WebViewClientImpl.prototype.shouldOverrideUrlLoading=function(e,t){a.a.isEnabled()&&a.a.write("WebViewClientClass.shouldOverrideUrlLoading("+t+")",a.a.categories.Debug);return!1};WebViewClientImpl.prototype.onPageStarted=function(e,r,n){t.prototype.onPageStarted.call(this,e,r,n);var i=this.owner;if(i){a.a.isEnabled()&&a.a.write("WebViewClientClass.onPageStarted("+r+", "+n+")",a.a.categories.Debug);i._onLoadStarted(r,void 0)}};WebViewClientImpl.prototype.onPageFinished=function(e,r){t.prototype.onPageFinished.call(this,e,r);var n=this.owner;if(n){a.a.isEnabled()&&a.a.write("WebViewClientClass.onPageFinished("+r+")",a.a.categories.Debug);n._onLoadFinished(r,void 0)}};WebViewClientImpl.prototype.onReceivedError=function(){var e=arguments[0];if(4===arguments.length){var r=arguments[1],n=arguments[2],i=arguments[3];t.prototype.onReceivedError.call(this,e,r,n,i);var o=this.owner;if(o){a.a.isEnabled()&&a.a.write("WebViewClientClass.onReceivedError("+r+", "+n+", "+i+")",a.a.categories.Debug);o._onLoadFinished(i,n+"("+r+")")}}else{var l=arguments[1],d=arguments[2];t.prototype.onReceivedError.call(this,e,l,d);o=this.owner;if(o){a.a.isEnabled()&&a.a.write("WebViewClientClass.onReceivedError("+d.getErrorCode()+", "+d.getDescription()+", "+(d.getUrl&&d.getUrl())+")",a.a.categories.Debug);o._onLoadFinished(d.getUrl&&d.getUrl(),d.getDescription()+"("+d.getErrorCode()+")")}}};return WebViewClientImpl}(android.webkit.WebViewClient);n=t}}();var t=this.nativeViewProtected,r=new n(this);t.setWebViewClient(r);t.client=r}disposeNativeView(){var e=this.nativeViewProtected;e&&e.destroy();e.client.owner=null;super.disposeNativeView()}_loadUrl(e){var t=this.nativeViewProtected;t&&t.loadUrl(e)}_loadData(e){var t=this.nativeViewProtected;if(t){var r="file:///".concat(o.knownFolders.currentApp().path,"/");t.loadDataWithBaseURL(r,e,"text/html","utf-8",null)}}get canGoBack(){return this.nativeViewProtected.canGoBack()}stopLoading(){var e=this.nativeViewProtected;e&&e.stopLoading()}get canGoForward(){var e=this.nativeViewProtected;return!!e&&e.canGoForward()}goBack(){var e=this.nativeViewProtected;if(e)return e.goBack()}goForward(){var e=this.nativeViewProtected;if(e)return e.goForward()}reload(){var e=this.nativeViewProtected;if(e)return e.reload()}}}).call(this,r(20))},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function n(e){};t.Common=n;var i=function i(e){this.replicator=e};t.ReplicatorBase=i;!function(e){e.ALL="COUCHBASE_ALL";e.ID="COUCHBASE_ID"}(t.QueryMeta||(t.QueryMeta={}));!function(e){e.AND="and";e.OR="or"}(t.QueryLogicalOperator||(t.QueryLogicalOperator={}));!function(e){e.CONTAINS="contains"}(t.QueryArrayOperator||(t.QueryArrayOperator={}));var a=function a(e){this.blob=e};t.BlobBase=a;!function(e){e[e.LastWriteWins=0]="LastWriteWins";e[e.FailOnConflict=1]="FailOnConflict"}(t.ConcurrencyMode||(t.ConcurrencyMode={}))},function(e,t,r){"use strict";r.r(t);var n=r(25);r.d(t,"ad",(function(){return n.e}));r.d(t,"iOSNativeHelper",(function(){return n.m}));r.d(t,"layout",(function(){return n.s}));r.d(t,"dispatchToMainThread",(function(){return n.g}));r.d(t,"isMainThread",(function(){return n.q}));r.d(t,"RESOURCE_PREFIX",(function(){return n.c}));r.d(t,"FILE_PREFIX",(function(){return n.a}));r.d(t,"escapeRegexSymbols",(function(){return n.i}));r.d(t,"convertString",(function(){return n.f}));r.d(t,"getModuleName",(function(){return n.k}));r.d(t,"isFileOrResourcePath",(function(){return n.o}));r.d(t,"isFontIconURI",(function(){return n.p}));r.d(t,"isDataURI",(function(){return n.n}));r.d(t,"mergeSort",(function(){return n.v}));r.d(t,"merge",(function(){return n.u}));r.d(t,"hasDuplicates",(function(){return n.l}));r.d(t,"eliminateDuplicates",(function(){return n.h}));r.d(t,"executeOnMainThread",(function(){return n.j}));r.d(t,"mainThreadify",(function(){return n.t}));r.d(t,"Source",(function(){return n.d}));r.d(t,"GC",(function(){return n.b}));r.d(t,"releaseNativeObject",(function(){return n.y}));r.d(t,"openUrl",(function(){return n.x}));r.d(t,"openFile",(function(){return n.w}));r.d(t,"isRealDevice",(function(){return n.r}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return activity_indicator_ActivityIndicator}));var n=r(5),i=r(19),a=r(11),o=r(0),l=class ActivityIndicatorBase extends n.c{};l=__decorate([Object(i.a)("ActivityIndicator")],l);l.prototype.recycleNativeView="auto";var d=new o.Property({name:"busy",defaultValue:!1,valueConverter:a.b});d.register(l);var p=r(2),h=r(4);class activity_indicator_ActivityIndicator extends l{createNativeView(){var e=new android.widget.ProgressBar(this._context);e.setVisibility(android.view.View.INVISIBLE);e.setIndeterminate(!0);return e}[d.getDefault](){return!1}[d.setNative](e){this.visibility===p.Visibility.VISIBLE&&this.nativeViewProtected.setVisibility(e?android.view.View.VISIBLE:android.view.View.INVISIBLE)}[p.visibilityProperty.getDefault](){return p.Visibility.HIDDEN}[p.visibilityProperty.setNative](e){switch(e){case p.Visibility.VISIBLE:this.nativeViewProtected.setVisibility(this.busy?android.view.View.VISIBLE:android.view.View.INVISIBLE);break;case p.Visibility.HIDDEN:this.nativeViewProtected.setVisibility(android.view.View.INVISIBLE);break;case p.Visibility.COLLAPSE:this.nativeViewProtected.setVisibility(android.view.View.GONE);break;default:throw new Error("Invalid visibility value: ".concat(e,'. Valid values are: "').concat(p.Visibility.VISIBLE,'", "').concat(p.Visibility.HIDDEN,'", "').concat(p.Visibility.COLLAPSE,'".'))}}[p.colorProperty.getDefault](){return-1}[p.colorProperty.setNative](e){e instanceof h.a?this.nativeViewProtected.getIndeterminateDrawable().setColorFilter(e.android,android.graphics.PorterDuff.Mode.SRC_IN):this.nativeViewProtected.getIndeterminateDrawable().clearColorFilter()}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return progress_Progress}));var n=r(5),i=r(19),a=r(0),o=class ProgressBase extends n.c{};o=__decorate([Object(i.a)("Progress")],o);o.prototype.recycleNativeView="auto";var l=new a.CoercibleProperty({name:"value",defaultValue:0,coerceValue:(e,t)=>t<0?0:Math.min(t,e.maxValue),valueConverter:e=>parseInt(e)});l.register(o);var d=new a.Property({name:"maxValue",defaultValue:100,valueChanged:(e,t,r)=>{l.coerce(e)},valueConverter:e=>parseInt(e)});d.register(o);var p=r(4),h=r(2);class progress_Progress extends o{createNativeView(){return new android.widget.ProgressBar(this._context,null,16842872)}[l.getDefault](){return 0}[l.setNative](e){this.nativeViewProtected.setProgress(e)}[d.getDefault](){return 100}[d.setNative](e){this.nativeViewProtected.setMax(e)}[h.colorProperty.getDefault](){return null}[h.colorProperty.setNative](e){var t=this.nativeViewProtected.getProgressDrawable();t&&(e instanceof p.a?t.setColorFilter(e.android,android.graphics.PorterDuff.Mode.SRC_IN):t.clearColorFilter())}[h.backgroundColorProperty.getDefault](){return null}[h.backgroundColorProperty.setNative](e){var t=this.nativeViewProtected.getProgressDrawable();if(t&&t instanceof android.graphics.drawable.LayerDrawable&&t.getNumberOfLayers()>0){var r=t.getDrawable(0);r&&(e instanceof p.a?r.setColorFilter(e.android,android.graphics.PorterDuff.Mode.SRC_IN):r.clearColorFilter())}}[h.backgroundInternalProperty.getDefault](){return null}[h.backgroundInternalProperty.setNative](e){}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(206),i=_interopRequireDefault(n),a=r(211),o=r(148),l=_interopRequireDefault(o),d=r(214),p=_interopRequireDefault(d);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var h=/((?:\-[a-z]+\-)?calc)/;t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;return(0,i.default)(e).walk((function(e){if("function"===e.type&&h.test(e.value)){var r=i.default.stringify(e.nodes);if(!(r.indexOf("constant")>=0||r.indexOf("env")>=0)){var n=a.parser.parse(r),o=(0,l.default)(n,t);e.type="word";e.value=(0,p.default)(e.value,o,t)}}}),!0).toString()};e.exports=t.default},function(e,t,r){t.parse=r(215)},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});t.cssTreeParse=void 0;var n=r(216);function mapSelectors(e){return e?e.split(/\s*(?![^(]*\)),\s*/).map((function(e){return e.replace(/\u200C/g,",")})):[]}function mapPosition(e,t){var r={start:{line:e.loc.start.line,column:e.loc.start.column},end:{line:e.loc.end.line,column:e.loc.end.column},content:t};e.loc.source&&""!==e.loc.source&&(r.source=e.loc.source);return r}t.cssTreeParse=function cssTreeParse(e,t){var r=[],i=n.parse(e,{parseValue:!1,parseAtrulePrelude:!1,parseRulePrelude:!1,positions:!0,filename:t,onParseError:function onParseError(e){r.push(t+":"+e.line+":"+e.column+": "+e.formattedMessage)}});if(r.length>0)throw new Error(r[0]);return function transformAst(e,t,r){void 0===r&&(r=null);if(e){if("StyleSheet"===e.type)return{type:"stylesheet",stylesheet:{rules:e.children.map((function(e){return transformAst(e,t)})).filter((function(e){return null!==e})).toArray(),parsingErrors:[]}};if("Atrule"===e.type){var n={type:e.name};if("supports"===e.name||"media"===e.name){n[e.name]=e.prelude.value;n.rules=transformAst(e.block,t)}else if("page"===e.name){n.selectors=e.prelude?mapSelectors(e.prelude.value):[];n.declarations=transformAst(e.block,t)}else if("document"===e.name){n.document=e.prelude?e.prelude.value:"";n.vendor="";n.rules=transformAst(e.block,t)}else if("font-face"===e.name)n.declarations=transformAst(e.block,t);else if("import"===e.name||"charset"===e.name||"namespace"===e.name)n[e.name]=e.prelude?e.prelude.value:"";else if("keyframes"===e.name){n.name=e.prelude?e.prelude.value:"";n.keyframes=transformAst(e.block,t,"keyframe");n.vendor=void 0}else n.rules=transformAst(e.block,t);n.position=mapPosition(e,t);return n}if("Block"===e.type)return e.children.map((function(e){return transformAst(e,t,r)})).filter((function(e){return null!==e})).toArray();if("Rule"===e.type){var i=e.prelude.value,a={type:null!=r?r:"rule",declarations:transformAst(e.block,t),position:mapPosition(e,t)};"keyframe"===r?a.values=mapSelectors(i):a.selectors=mapSelectors(i);return a}if("Comment"===e.type)return{type:"comment",comment:e.value,position:mapPosition(e,t)};if("Declaration"===e.type)return{type:"declaration",property:e.property,value:e.value.value?e.value.value.trim():"",position:mapPosition(e,t)};if("Raw"===e.type)return null;throw Error("Unknown node type "+e.type)}}(i,e)}},function(e,t){t.parse=function parse(e){return new Parser(e).parse()};function Parser(e){this.str=e}Parser.prototype.skip=function(e){this.str=this.str.slice(e[0].length)};Parser.prototype.comma=function(){var e=/^, */.exec(this.str);if(e){this.skip(e);return{type:"comma",string:","}}};Parser.prototype.ident=function(){var e=/^([\w-]+) */.exec(this.str);if(e){this.skip(e);return{type:"ident",string:e[1]}}};Parser.prototype.int=function(){var e=/^(([-\+]?\d+)(\S+)?) */.exec(this.str);if(e){this.skip(e);var t=~~e[2],r=e[3];return{type:"number",string:e[1],unit:r||"",value:t}}};Parser.prototype.float=function(){var e=/^(((?:[-\+]?\d+)?\.\d+)(\S+)?) */.exec(this.str);if(e){this.skip(e);var t=parseFloat(e[2]),r=e[3];return{type:"number",string:e[1],unit:r||"",value:t}}};Parser.prototype.number=function(){return this.float()||this.int()};Parser.prototype.double=function(){var e=/^"([^"]*)" */.exec(this.str);if(!e)return e;this.skip(e);return{type:"string",quote:'"',string:'"'+e[1]+'"',value:e[1]}};Parser.prototype.single=function(){var e=/^'([^']*)' */.exec(this.str);if(!e)return e;this.skip(e);return{type:"string",quote:"'",string:"'"+e[1]+"'",value:e[1]}};Parser.prototype.string=function(){return this.single()||this.double()};Parser.prototype.value=function(){return this.number()||this.ident()||this.string()||this.comma()};Parser.prototype.parse=function(){for(var e=[];this.str.length;){var t=this.value();if(!t)throw new Error("failed to parse near `"+this.str.slice(0,10)+"...`");e.push(t)}return e}},function(e,t,r){"use strict";r.d(t,"a",(function(){return FlipTransition}));var n=r(32);class FlipTransition extends n.b{constructor(e,t,r){super(t,r);this._direction=e}createAndroidAnimator(e){var t,r,i,a=new android.animation.AnimatorSet,o=this.getDuration()||300,l=this.getCurve(),d="right"===this._direction?180:-180;switch(e){case n.a.enter:t=Array.create(android.animation.Animator,2);r=Array.create("float",2);r[0]=d;r[1]=0;i=android.animation.ObjectAnimator.ofFloat(null,"rotationY",r);i.setInterpolator(l);i.setDuration(o);t[0]=i;r=Array.create("float",3);r[0]=0;r[1]=0;r[2]=255;i=android.animation.ObjectAnimator.ofFloat(null,"alpha",r);i.setDuration(o/2);t[1]=i;break;case n.a.exit:t=Array.create(android.animation.Animator,2);r=Array.create("float",2);r[0]=0;r[1]=-d;i=android.animation.ObjectAnimator.ofFloat(null,"rotationY",r);i.setInterpolator(l);i.setDuration(o);t[0]=i;r=Array.create("float",3);r[0]=255;r[1]=0;r[2]=0;i=android.animation.ObjectAnimator.ofFloat(null,"alpha",r);i.setDuration(o/2);t[1]=i;break;case n.a.popEnter:t=Array.create(android.animation.Animator,2);r=Array.create("float",2);r[0]=-d;r[1]=0;i=android.animation.ObjectAnimator.ofFloat(null,"rotationY",r);i.setInterpolator(l);i.setDuration(o);t[0]=i;r=Array.create("float",3);r[0]=0;r[1]=0;r[2]=255;i=android.animation.ObjectAnimator.ofFloat(null,"alpha",r);i.setDuration(o/2);t[1]=i;break;case n.a.popExit:t=Array.create(android.animation.Animator,2);r=Array.create("float",2);r[0]=0;r[1]=d;i=android.animation.ObjectAnimator.ofFloat(null,"rotationY",r);i.setInterpolator(l);i.setDuration(o);t[0]=i;r=Array.create("float",3);r[0]=255;r[1]=0;r[2]=0;i=android.animation.ObjectAnimator.ofFloat(null,"alpha",r);i.setDuration(o/2);t[1]=i}a.playTogether(t);return a}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return getFilenameFromUrl}));function getFilenameFromUrl(e){var t,n=r(17),i=e.lastIndexOf("/")+1,a=e.lastIndexOf("?");t=-1!==a?e.substring(i,a):e.substring(i);var o=n.path.join(n.knownFolders.documents().path,t);return o}},function(e,t,r){"use strict";r.d(t,"a",(function(){return Cache}));var n=r(16);class Cache extends n.a{constructor(){super(...arguments);this.maxRequests=5;this._enabled=!0;this._pendingDownloads={};this._queue=[];this._currentDownloads=0}enableDownload(){if(!this._enabled){this._enabled=!0;for(var e;this._queue.length>0&&this._currentDownloads=this.maxRequests||!this._enabled){t?this._queue.push(e):this._queue.unshift(e);return!1}return!0}_download(e){this._currentDownloads++;this._pendingDownloads[e.key]=e;this._downloadCore(e)}_updateQueue(){if(this._enabled&&0!==this._queue.length&&this._currentDownloads!==this.maxRequests){var e=this._queue.pop();this._download(e)}}}Cache.downloadedEvent="downloaded";Cache.downloadErrorEvent="downloadError"},function(e,t,r){"use strict";r.d(t,"a",(function(){return ImageCropper}));var n,i=r(17),a=r(29),o=r(3),l=r(8),d=r(4);class ImageCropper{show(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise((p,h)=>{try{n=t;if(e.android){var m=ImageCropper._storeImageSource(e),g=i.knownFolders.temp(),f=i.path.join(g.path,"destTemp.jpeg");if(null==m){ImageCropper._cleanFiles();h({response:"Error",image:null})}var v=android.net.Uri.parse("file://"+m),y=android.net.Uri.parse("file://"+f);o.Application.android.on(l.AndroidApplication.activityResultEvent,(function onResult(e){var t=e.requestCode,r=e.resultCode,n=e.intent;if(r!==android.app.Activity.RESULT_OK||t!==com.yalantis.ucrop.UCrop.REQUEST_CROP)if(r!==android.app.Activity.RESULT_CANCELED||t!==com.yalantis.ucrop.UCrop.REQUEST_CROP)if(r!==com.yalantis.ucrop.UCrop.RESULT_ERROR);else{ImageCropper._cleanFiles();var i=com.yalantis.ucrop.UCrop.getError(n);console.log(i.getMessage());o.Application.android.off(l.AndroidApplication.activityResultEvent,onResult);h({response:"Error",image:null})}else{ImageCropper._cleanFiles();o.Application.android.off(l.AndroidApplication.activityResultEvent,onResult);p({response:"Cancelled",image:null})}else{var d=com.yalantis.ucrop.UCrop.getOutput(n),m=new a.ImageSource;try{m.setNativeSource(android.graphics.BitmapFactory.decodeFile(d.getPath()))}catch(e){console.error(e)}ImageCropper._cleanFiles();o.Application.android.off(l.AndroidApplication.activityResultEvent,onResult);m.android?p({response:"Success",image:m}):h({response:"Error",image:null})}}));var w=new com.yalantis.ucrop.UCrop.Options;w.setCircleDimmedLayer(!!n.circularCrop);w.setFreeStyleCropEnabled(!!r.isFreeStyleCropEnabled);"boolean"==typeof r.isFreeStyleCropEnabled&&w.setShowCropGrid(r.isFreeStyleCropEnabled);"boolean"==typeof r.showCropFrame&&w.setShowCropFrame(r.showCropFrame);"boolean"==typeof r.hideBottomControls&&w.setHideBottomControls(r.hideBottomControls);w.setToolbarTitle(r.toolbarTitle?r.toolbarTitle:"Crop Image");"string"==typeof r.toolbarTextColor&&w.setToolbarWidgetColor(new d.a(r.toolbarTextColor).android);"string"==typeof r.toolbarColor&&w.setToolbarColor(new d.a(r.toolbarColor).android);"string"==typeof r.rootViewBackgroundColor&&w.setRootViewBackgroundColor(new d.a(r.rootViewBackgroundColor).android);"string"==typeof r.logoColor&&w.setLogoColor(new d.a(r.logoColor).android);"string"==typeof r.statusBarColor&&w.setStatusBarColor(new d.a(r.statusBarColor).android);"string"==typeof r.cropGridColor&&w.setCropGridColor(new d.a(r.cropGridColor).android);"string"==typeof r.cropFrameColor&&w.setCropFrameColor(new d.a(r.cropFrameColor).android);"string"==typeof r.dimmedLayerColor&&w.setDimmedLayerColor(new d.a(r.dimmedLayerColor).android);"number"==typeof r.cropGridRowCount&&w.setCropGridRowCount(r.cropGridRowCount);"number"==typeof r.cropGridColumnCount&&w.setCropGridColumnCount(r.cropGridColumnCount);"number"==typeof r.cropFrameStrokeWidth&&w.setCropFrameStrokeWidth(r.cropFrameStrokeWidth);"number"==typeof r.cropGridStrokeWidth&&w.setCropGridStrokeWidth(r.cropGridStrokeWidth);"number"==typeof r.compressionQuality&&r.compressionQuality>=0&&r.compressionQuality<=100&&w.setCompressionQuality(r.compressionQuality);void 0!==r.toolbarCropDrawable&&w.setToolbarCropDrawable(r.toolbarCropDrawable);void 0!==r.toolbarCancelDrawable&&w.setToolbarCancelDrawable(r.toolbarCancelDrawable);if(void 0!==r.setAspectRatioOptions){var C=[];r.setAspectRatioOptions.aspectRatios.forEach(e=>{C.push(new com.yalantis.ucrop.model.AspectRatio(e.aspectRatioTitle,e.aspectRatioX,e.aspectRatioY))});w.setAspectRatioOptions(r.setAspectRatioOptions.defaultIndex,C)}if(n&&n.width&&n.height){var S=ImageCropper._gcd(n.width,n.height);com.yalantis.ucrop.UCrop.of(v,y).withAspectRatio(n.width/S,n.height/S).withMaxResultSize(n.width,n.height).withOptions(w).start(ImageCropper._getContext())}else com.yalantis.ucrop.UCrop.of(v,y).withOptions(w).start(ImageCropper._getContext())}else h({response:"Error",image:null})}catch(e){console.log(e);h({response:"Error",image:null})}})}static _gcd(e,t){return 0===t?e:ImageCropper._gcd(t,e%t)}static _storeImageSource(e){var t=i.knownFolders.temp(),r=i.path.join(t.path,"temp.jpeg");return e.saveToFile(r,"jpeg",100)?r:null}static _cleanFiles(){var e=i.knownFolders.temp();e.clear()}static _getContext(){return o.Application.android.foregroundActivity}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Feedback=t.FeedbackPosition=t.FeedbackType=void 0;var n=r(327);Object.defineProperty(t,"FeedbackType",{enumerable:!0,get:function get(){return n.FeedbackType}});Object.defineProperty(t,"FeedbackPosition",{enumerable:!0,get:function get(){return n.FeedbackPosition}});var i=r(3);class Feedback extends n.FeedbackCommon{constructor(){super(...arguments);this.lastAlert=null}show(e){return new Promise((t,r)=>{this.lastAlert=null;var n=com.tapadoo.alerter.Alerter.create(i.Application.android.foregroundActivity).setLayoutGravity(Feedback.getPosition(e.position)).setIconColorFilter(0).setDuration(e.duration?e.duration:4e3);e.title&&n.setTitle(e.title);e.message&&n.setText(e.message);if(e.icon){var a=Feedback.getIconResourceId(e.icon);0===a?console.log("icon '".concat(e.icon,"' resource not found")):n.setIcon(a)}else{var o=Feedback.getIconName(e.type);null!==o?n.setIcon(Feedback.getIconResourceId(o)):n.showIcon(!1)}e.android&&void 0!==e.android.iconPulseEnabled&&n.enableIconPulse(e.android.iconPulseEnabled);if(e.titleFont){var l=i.Utils.ad.getApplicationContext().getAssets(),d="app/fonts/".concat(e.titleFont),p=android.graphics.Typeface.createFromAsset(l,d);n.setTitleTypeface(p)}if(e.messageFont){var h=i.Utils.ad.getApplicationContext().getAssets(),m="app/fonts/".concat(e.messageFont),g=android.graphics.Typeface.createFromAsset(h,m);n.setTextTypeface(g)}n.setOnClickListener(new android.view.View.OnClickListener({onClick:t=>{com.tapadoo.alerter.Alerter.hide();e.onTap&&e.onTap()}}));e.onShow&&n.setOnShowListener(new com.tapadoo.alerter.OnShowAlertListener({onShow:()=>e.onShow()}));e.onHide&&n.setOnHideListener(new com.tapadoo.alerter.OnHideAlertListener({onHide:()=>e.onHide()}));this.lastAlert=n.show();e.backgroundColor?this.lastAlert.setAlertBackgroundColor(e.backgroundColor.android):this.lastAlert.setAlertBackgroundColor(Feedback.getBackgroundColor(e.type).android);if(e.titleColor){var f=this.lastAlert.getTitle();f.setTextColor(e.titleColor.android)}if(e.messageColor){var v=this.lastAlert.getText();v.setTextColor(e.messageColor.android)}var y=e.titleSize||16,w=e.messageSize||13;this.lastAlert.getTitle().setTextSize(y);this.lastAlert.getText().setTextSize(w);e.android&&e.android.iconColor&&n.setIconColorFilter(e.android.iconColor.android);t()})}static getBackgroundColor(e){return null==e||e===n.FeedbackType.Custom?new i.Color("#73b7e8"):e===n.FeedbackType.Warning?new i.Color("#f18b34"):e===n.FeedbackType.Error?new i.Color("#ee664c"):e===n.FeedbackType.Info?new i.Color("#516a78"):new i.Color("#51ae8c")}static getIconResourceId(e){var t=i.Utils.ad.getApplicationContext().getResources();return t.getIdentifier(e,"drawable",i.Utils.ad.getApplication().getPackageName())}static getIconName(e){return null==e||e===n.FeedbackType.Custom?null:e===n.FeedbackType.Warning?"warningicon":e===n.FeedbackType.Error?"erroricon":e===n.FeedbackType.Info?"infoicon":"successicon"}static getPosition(e){return e&&e!==n.FeedbackPosition.Top?android.view.Gravity.BOTTOM:android.view.Gravity.TOP}hide(e){return new Promise(e=>{if(com.tapadoo.alerter.Alerter.isShowing()){com.tapadoo.alerter.Alerter.hide();this.lastAlert=null}e()})}}t.Feedback=Feedback},function(e,t,r){"use strict";var n=r(186),i=!1;t.a={install(e){if(!i){i=!0;e.registerElement("MDRipple",()=>n.a,{})}}}},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return Ripple}));var n=r(59),i=r(73),a=r(2),o=r(28),l=r(187);class Ripple extends l.a{constructor(){super(...arguments);this.forceSetOnTouchListener=!1}createNativeView(){var e=super.createNativeView();this.setRippleDrawable(e);return e}hasGestureObservers(){return!!this.forceSetOnTouchListener||super.hasGestureObservers()}initNativeView(){this.forceSetOnTouchListener=!0;this.setOnTouchListener();this.forceSetOnTouchListener=!1;super.initNativeView()}getRippleColor(){return Object(n.a)(this.style.rippleColor?this.style.rippleColor:n.b.getPrimaryColor())}setRippleDrawable(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!this.rippleDrawable){this.rippleDrawable=Object(o.a)(e,this.getRippleColor(),t);Object(o.g)()&&e.setForeground(this.rippleDrawable)}}[i.d.setNative](e){this.setRippleDrawable(this.nativeViewProtected);Object(o.f)()?this.rippleDrawable.setColor(android.content.res.ColorStateList.valueOf(e.android)):this.rippleDrawable.rippleShape.getPaint().setColor(Object(n.a)(e))}[a.backgroundInternalProperty.setNative](e){super[a.backgroundInternalProperty.setNative](e);if(this.nativeViewProtected)if(e instanceof android.graphics.drawable.Drawable);else{this.rippleDrawable=null;this.setRippleDrawable(this.nativeViewProtected,e.borderTopLeftRadius)}}}}).call(this,r(20))},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(61),i=r(4),a=r(19),o=r(73),l=class RippleBase extends n.a{};__decorate([o.a,__metadata("design:type",i.a)],l.prototype,"rippleColor",void 0);l=__decorate([Object(a.a)("MDRipple")],l)},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return CheckBox}));var n=r(0),i=r(11),a=r(5),o=r(2),l=r(18),d=r(4),p=r(3),h=r(7),m=r(145),g=useAndroidX()?androidx.appcompat.widget:android.support.v7.widget,f=useAndroidX()?androidx.core.widget:android.support.v4.widget;function useAndroidX(){return e.androidx&&com.google&&com.google.android&&com.google.android.material}var v=new n.Property({name:"checked",defaultValue:!1,valueConverter:i.b,valueChanged:function onCheckedPropertyChanged(e,t,r){e._onCheckedPropertyChanged(e,t,r)}}),y=new n.Property({name:"text",defaultValue:"",valueChanged:function onTextPropertyChanged(e,t,r){e._onTextPropertyChanged(e,t,r)}}),w=new n.CssProperty({name:"fillColor",cssName:"fill-color",valueConverter:e=>String(e)}),C=new n.CssProperty({name:"tintColor",cssName:"tint-color",defaultValue:"#0075ff",valueConverter:e=>String(e)});class CheckBox extends a.c{constructor(){super()}get android(){return this._android}set boxType(e){this._boxType=e}get boxType(){return this._boxType}get checkStyle(){return this._checkStyle}set checkStyle(e){this._checkStyle=e}set checkPadding(e){this._checkPadding=e}get checkPadding(){return this._checkPadding}set checkPaddingLeft(e){this._checkPaddingLeft=e}get checkPaddingLeft(){return this._checkPaddingLeft}set checkPaddingTop(e){this._checkPaddingTop=e}get checkPaddingTop(){return this._checkPaddingTop}set checkPaddingRight(e){this._checkPaddingRight=e}get checkPaddingRight(){return this._checkPaddingRight}set checkPaddingBottom(e){this._checkPaddingBottom=e}get checkPaddingBottom(){return this._checkPaddingBottom}[v.getDefault](){return!1}[v.setNative](e){this.nativeView.setChecked(Boolean(e))}[y.getDefault](){return""}[y.setNative](e){this.nativeView.setText(java.lang.String.valueOf(e))}[o.fontSizeProperty.getDefault](){return{nativeSize:this.nativeView.getTextSize()}}[o.fontSizeProperty.setNative](e){"number"==typeof e?this.nativeView.setTextSize(e):this.nativeView.setTextSize(android.util.TypedValue.COMPLEX_UNIT_PX,e.nativeSize)}get fontSize(){return this.style.fontSizeProperty}set fontSize(e){this.style.fontSize=e}get fillColor(){return this.style.fillColor}set fillColor(e){this.style.fillColor=e;this._android&&l.a.sdkVersion>="21"&&this._android.setButtonTintList(android.content.res.ColorStateList.valueOf(new d.a(e).android))}get tintColor(){return this.style.fillColor}set tintColor(e){this.style.fillColor=e}createNativeView(){var e;this._android=new g[m.a[this.boxType]===m.a.circle?"AppCompatRadioButton":"AppCompatCheckBox"](this._context,null);this.nativeView=this.android;this.checkPaddingLeft&&this._android.setPadding(parseInt(this.checkPaddingLeft),this._android.getPaddingTop(),this._android.getPaddingRight(),this._android.getPaddingBottom());this.checkPaddingTop&&this._android.setPadding(this._android.getPaddingLeft(),parseInt(this.checkPaddingTop),this._android.getPaddingRight(),this._android.getPaddingBottom());this.checkPaddingRight&&this._android.setPadding(this._android.getPaddingLeft(),this._android.getPaddingTop(),parseInt(this.checkPaddingRight),this._android.getPaddingBottom());this.checkPaddingBottom&&this._android.setPadding(this._android.getPaddingLeft(),this._android.getPaddingTop(),this._android.getPaddingRight(),parseInt(this.checkPaddingBottom));if(this.checkPadding){var t=this.checkPadding.toString().split(",");switch(t.length){case 1:this._android.setPadding(parseInt(t[0]),parseInt(t[0]),parseInt(t[0]),parseInt(t[0]));break;case 2:this._android.setPadding(parseInt(t[0]),parseInt(t[1]),parseInt(t[0]),parseInt(t[1]));break;case 3:this._android.setPadding(parseInt(t[0]),parseInt(t[1]),parseInt(t[2]),parseInt(t[1]));break;case 4:this._android.setPadding(parseInt(t[0]),parseInt(t[1]),parseInt(t[2]),parseInt(t[3]))}}this.style.color&&this._android.setTextColor(this.style.color.android);this.style.fontSize||(this.style.fontSize=14);this._android.setTextSize(this.style.fontSize);var r=null===(e=this.style.fontInternal)||void 0===e?void 0:e.getAndroidTypeface();r&&this._android.setTypeface(r);if(this._checkStyle){var n=p.Application.android.context.getResources().getIdentifier(this._checkStyle,"drawable",p.Application.android.context.getPackageName());this._android.setButtonDrawable(n)}this._android&&this.fillColor&&f.CompoundButtonCompat.setButtonTintList(this._android,android.content.res.ColorStateList.valueOf(new d.a(this.fillColor).android));return this._android}initNativeView(){var e=new WeakRef(this);this.nativeView.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({onCheckedChanged:(t,r)=>{e.get()&&v.nativeValueChange(e.get(),r)}}))}disposeNativeView(){this.nativeView.setOnCheckedChangeListener(null)}toggle(){this.nativeView.toggle()}_onCheckedPropertyChanged(e,t,r){this.nativeView&&v.nativeValueChange(this,r)}_onTextPropertyChanged(e,t,r){this.nativeView&&y.nativeValueChange(this,r)}}v.register(CheckBox);y.register(CheckBox);w.register(h.a);C.register(h.a)}).call(this,r(20))},,function(e,t,r){"use strict";var n=r(0),i=r(7),a=r(16),o=(r(23),r(99),r(118),r(2)),l=r(4);r(22);var d=Object(n.makeParser)(Object(n.makeValidator)("initial","top","middle","bottom","center")),p=new n.InheritedCssProperty({name:"verticalTextAlignment",cssName:"vertical-text-align",valueConverter:d});p.register(i.a);Object(n.makeParser)(Object(n.makeValidator)("initial","left","right","center"));a.a;var h=r(73),m=r(28),g=r(21),f=r(3),v=r(6),y=r(95),w=r(29),C=r(100),S=r(19);function asyncGeneratorStep(e,t,r,n,i,a,o){try{var l=e[a](o),d=l.value}catch(e){r(e);return}l.done?t(d):Promise.resolve(d).then(n,i)}var b=class ButtonBase extends y.Button{constructor(){super(...arguments);this.variant="contained"}_createImageSourceFromSrc(e){var t=this;return function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function _next(e){asyncGeneratorStep(a,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(a,n,i,_next,_throw,"throw",e)}_next(void 0)}))}}((function*(){var r=e;if("string"==typeof e||e instanceof String){e=e.trim();t.imageSource=null;t._url=e;t.isLoading=!0;var n,imageLoaded=()=>{var e=t.src;if(e===r){t.imageSource=n;t.isLoading=!1}};if(f.Utils.isDataURI(e)){var i=e.split(",")[1];if(void 0!==i){n=yield w.ImageSource.fromBase64(i);imageLoaded()}}else if(f.Utils.isFileOrResourcePath(e))if(0===e.indexOf(f.Utils.RESOURCE_PREFIX)){var a=e.substr(f.Utils.RESOURCE_PREFIX.length);n=yield w.ImageSource.fromResource(a);imageLoaded()}else{n=yield w.ImageSource.fromFile(e);imageLoaded()}else{t.imageSource=null;n=yield w.ImageSource.fromUrl(e);imageLoaded()}}else if(e instanceof w.ImageSource){t.imageSource=e;t.isLoading=!1}else if(e instanceof C.a)w.ImageSource.fromAsset(e).then(e=>{t.imageSource=e;t.isLoading=!1});else{t.imageSource=new w.ImageSource(e);t.isLoading=!1}}))()}};__decorate([h.a,__metadata("design:type",Number)],b.prototype,"elevation",void 0);__decorate([h.a,__metadata("design:type",Number)],b.prototype,"dynamicElevationOffset",void 0);__decorate([h.a,__metadata("design:type",l.a)],b.prototype,"rippleColor",void 0);__decorate([h.a,__metadata("design:type",String)],b.prototype,"verticalTextAlignment",void 0);b=__decorate([Object(S.a)("MDButton")],b);var x=new n.Property({name:"variant"});x.register(b);var T,P=new n.Property({name:"imageSource"}),k=new n.Property({name:"src"});P.register(b);k.register(b);var A={};class button_Button extends b{createNativeView(){var e,t,r=this.variant;if("text"===r)t="material_button_text";else if("flat"===r)t="material_button_flat";else if("outline"===r)t="material_button_outline";else{t="material_button";this.style["css:margin-left"]=10;this.style["css:margin-right"]=10;this.style["css:margin-top"]=12;this.style["css:margin-bottom"]=12}this.src&&(t+="_icon");e=A[t];e||(e=A[t]=Object(m.d)(t));T||(T=android.view.LayoutInflater);var n=android.view.LayoutInflater.from(this._context).inflate(e,null,!1);if(this.src){t+="_icon";n.setIconGravity(2)}return n}[h.d.setNative](e){this.nativeViewProtected.setRippleColor(android.content.res.ColorStateList.valueOf(e.android))}getDefaultElevation(){return 2}getDefaultDynamicElevationOffset(){return 6}[h.c.setNative](e){if(Object(m.e)())Object(m.b)(this,this.nativeViewProtected);else{var t=o.Length.toDevicePixels("string"==typeof e?o.Length.parse(e):e,0);androidx.core.view.ViewCompat.setElevation(this.nativeViewProtected,t)}}[h.b.setNative](e){if(Object(m.e)())Object(m.b)(this,this.nativeViewProtected);else{var t=o.Length.toDevicePixels("string"==typeof e?o.Length.parse(e):e,0);androidx.core.view.ViewCompat.setTranslationZ(this.nativeViewProtected,t)}}[o.androidElevationProperty.setNative](e){}[o.androidDynamicElevationOffsetProperty.setNative](e){}setCornerRadius(e){this.nativeViewProtected.setCornerRadius(e)}setStrokeWidth(e){this.nativeViewProtected.setStrokeWidth(e)}[g.k.setNative](e){this.nativeViewProtected.setAllCaps("none"!==e)}[o.backgroundInternalProperty.setNative](e){var t=this.nativeTextViewProtected;if(t)if(e instanceof android.graphics.drawable.Drawable)t.setBackgroundDrawable(e);else{e.color&&t.setBackgroundColor(e.color.android);this.setCornerRadius(e.borderTopLeftRadius);t.setStrokeWidth(e.borderTopWidth);e.borderTopColor&&t.setStrokeColor(android.content.res.ColorStateList.valueOf(e.borderTopColor.android))}}[p.setNative](e){var t=this.nativeTextViewProtected,r=t.getGravity()&android.view.Gravity.HORIZONTAL_GRAVITY_MASK;switch(e){case"initial":case"top":t.setGravity(android.view.Gravity.TOP|r);break;case"middle":t.setGravity(android.view.Gravity.CENTER_VERTICAL|r);break;case"bottom":t.setGravity(android.view.Gravity.BOTTOM|r)}}[P.setNative](e){var t=this.nativeViewProtected;if(e&&e.android){var r=this.fontSize||t.getTextSize();t.setIconSize(Math.min(e.width,f.Utils.layout.toDevicePixels(r)));t.setIcon(new android.graphics.drawable.BitmapDrawable(e.android))}else t.setIcon(null)}[k.setNative](e){this._createImageSourceFromSrc(e)}[o.colorProperty.setNative](e){var t=e instanceof l.a?e.android:e;super[o.colorProperty.setNative](t);this.nativeViewProtected.setIconTint(android.content.res.ColorStateList.valueOf(t))}}__decorate([v.f,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],button_Button.prototype,"createNativeView",null);var E=!1;t.a={install(e){if(!E){E=!0;e.registerElement("MDButton",()=>button_Button,{})}}}},function(e,t,r){"use strict";var n=r(174),i=r(3),a=r(19),o=r(175),l=r(0),d=r(11),p=r(140),h=class ActivityIndicatorBase extends n.a{startAnimating(){this.busy=!0}stopAnimating(){this.busy=!1}onMeasure(e,t){var r=i.Utils.layout.getMeasureSpecSize(e),n=i.Utils.layout.getMeasureSpecMode(e),a=i.Utils.layout.getMeasureSpecSize(t),o=i.Utils.layout.getMeasureSpecMode(t),l=n===i.Utils.layout.EXACTLY,d=o===i.Utils.layout.EXACTLY;if(l||d){var p=l?r:a,h=d?a:r;p=h=Math.min(p,h);super.onMeasure(i.Utils.layout.makeMeasureSpec(p,i.Utils.layout.EXACTLY),i.Utils.layout.makeMeasureSpec(h,i.Utils.layout.EXACTLY))}else super.onMeasure(e,t)}};h=__decorate([Object(a.a)("MDActivityIndicator")],h);Object(p.a)(h,[o.a],{omit:["createNativeView"]});var m=new l.Property({name:"indeterminate",valueConverter:d.b});m.register(h);class ui_material_activityindicator_ActivityIndicator extends h{[m.setNative](e){this.busy=!0;this.nativeViewProtected.setIndeterminate(e)}}var g=!1;t.a={install(e){if(!g){g=!0;e.registerElement("MDActivityIndicator",()=>ui_material_activityindicator_ActivityIndicator,{})}}}},function(e,t,r){"use strict";var n=r(73),i=r(28),a=r(2),o=r(21),l=r(0),d=r(95),p=r(3),h=r(29),m=r(100),g=r(4),f=r(19);function asyncGeneratorStep(e,t,r,n,i,a,o){try{var l=e[a](o),d=l.value}catch(e){r(e);return}l.done?t(d):Promise.resolve(d).then(n,i)}var v,y=new l.Property({name:"imageSource"}),w=new l.Property({name:"src"}),C=new l.Property({name:"size",affectsLayout:!0}),S=new l.Property({name:"expanded",affectsLayout:!0}),b=class FloatingActionButtonBase extends d.Button{constructor(){super();this.style["css:margin-left"]=4;this.style["css:margin-right"]=4;this.style["css:margin-top"]=11;this.style["css:margin-bottom"]=16}_createImageSourceFromSrc(e){var t=this;return function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function _next(e){asyncGeneratorStep(a,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(a,n,i,_next,_throw,"throw",e)}_next(void 0)}))}}((function*(){var r=e;if("string"==typeof e||e instanceof String){e=e.trim();t.imageSource=null;t._url=e;t.isLoading=!0;var n,imageLoaded=()=>{var e=t.src;if(e===r){t.imageSource=n;t.isLoading=!1}};if(p.Utils.isDataURI(e)){var i=e.split(",")[1];if(void 0!==i){n=yield h.ImageSource.fromBase64(i);imageLoaded()}}else if(p.Utils.isFileOrResourcePath(e))if(0===e.indexOf(p.Utils.RESOURCE_PREFIX)){var a=e.substr(p.Utils.RESOURCE_PREFIX.length);n=yield h.ImageSource.fromResource(a);imageLoaded()}else{n=yield h.ImageSource.fromFile(e);imageLoaded()}else{t.imageSource=null;n=yield h.ImageSource.fromUrl(e);imageLoaded()}}else if(e instanceof h.ImageSource){t.imageSource=e;t.isLoading=!1}else if(e instanceof m.a)h.ImageSource.fromAsset(e).then(e=>{t.imageSource=e;t.isLoading=!1});else{t.imageSource=new h.ImageSource(e);t.isLoading=!1}}))()}};__decorate([n.a,__metadata("design:type",Number)],b.prototype,"elevation",void 0);__decorate([n.a,__metadata("design:type",g.a)],b.prototype,"color",void 0);__decorate([n.a,__metadata("design:type",g.a)],b.prototype,"rippleColor",void 0);__decorate([n.a,__metadata("design:type",Number)],b.prototype,"dynamicElevationOffset",void 0);b=__decorate([Object(f.a)("MDFloatingActionButton"),__metadata("design:paramtypes",[])],b);y.register(b);w.register(b);C.register(b);S.register(b);class floatingactionbutton_FloatingActionButton extends b{createNativeView(){v||(v=com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton);var e=new v(this._context);this.defaultPadding=e.getPaddingTop();return e}[y.setNative](e){var t=this.nativeViewProtected;e&&e.android?t.setIcon(new android.graphics.drawable.BitmapDrawable(e.android)):t.setIcon(null)}[w.setNative](e){this._createImageSourceFromSrc(e)}show(){this.nativeView.show()}hide(){this.nativeView.hide()}[n.c.setNative](e){if(Object(i.e)())Object(i.b)(this,this.nativeViewProtected);else{var t=a.Length.toDevicePixels("string"==typeof e?a.Length.parse(e):e,0);androidx.core.view.ViewCompat.setElevation(this.nativeViewProtected,t)}}[n.b.setNative](e){if(Object(i.e)())Object(i.b)(this,this.nativeViewProtected);else{var t=a.Length.toDevicePixels("string"==typeof e?a.Length.parse(e):e,0);androidx.core.view.ViewCompat.setTranslationZ(this.nativeViewProtected,t)}}[o.j.setNative](e){this.nativeViewProtected.setText(e)}[C.setNative](e){switch(e){case"mini":this.nativeViewProtected.setPadding(30,30,30,30);break;case"auto":default:this.nativeViewProtected.setPadding(this.defaultPadding,this.defaultPadding,this.defaultPadding,this.defaultPadding)}}[a.backgroundInternalProperty.setNative](e){this.nativeViewProtected&&(e instanceof android.graphics.drawable.Drawable?this.nativeViewProtected.setBackgroundDrawable(e):e.color&&this.nativeViewProtected.setBackgroundTintList(android.content.res.ColorStateList.valueOf(e.color.android)))}[a.colorProperty.setNative](e){this.nativeViewProtected.setIconTint(android.content.res.ColorStateList.valueOf(e.android))}[n.d.setNative](e){this.nativeViewProtected.setRippleColor(android.content.res.ColorStateList.valueOf(e.android))}[n.d.setNative](e){this.nativeViewProtected.setRippleColor(android.content.res.ColorStateList.valueOf(e.android))}[S.setNative](e){e?this.nativeViewProtected.extend():this.nativeViewProtected.shrink()}}var x=!1;t.a={install(e){if(!x){x=!0;e.registerElement("MDFloatingActionButton",()=>floatingactionbutton_FloatingActionButton,{})}}}},function(e,t,r){"use strict";var n=r(59),i=r(73),a=r(175),o=r(4),l=r(19),d=r(0),p=r(11),h=r(7),m=class ProgressBase extends a.a{startAnimating(){this.busy=!0}stopAnimating(){this.busy=!1}};__decorate([i.a,__metadata("design:type",o.a)],m.prototype,"progressColor",void 0);__decorate([i.a,__metadata("design:type",o.a)],m.prototype,"progressBackgroundColor",void 0);m=__decorate([Object(l.a)("MDProgress")],m);var g=new d.CssProperty({cssName:"progress-color",name:"progressColor",equalityComparer:o.a.equals,valueConverter:e=>new o.a(e)}),f=new d.CssProperty({cssName:"progress-background-color",name:"progressBackgroundColor",equalityComparer:o.a.equals,valueConverter:e=>new o.a(e)}),v=new d.Property({name:"busy",valueConverter:p.b}),y=new d.Property({name:"indeterminate",valueConverter:p.b});v.register(m);y.register(m);g.register(h.a);f.register(h.a);class progress_Progress extends m{constructor(){super();this.color=n.b.getPrimaryColor()}[g.setNative](e){this.nativeViewProtected.setProgressTintList(e?android.content.res.ColorStateList.valueOf(e.android):null)}[f.setNative](e){this.nativeViewProtected.setProgressBackgroundTintList(e?android.content.res.ColorStateList.valueOf(e.android):null)}[y.setNative](e){this.nativeViewProtected.setIndeterminate(e)}[v.getDefault](){return!1}[v.setNative](e){this.nativeViewProtected.setVisibility(e?android.view.View.VISIBLE:android.view.View.INVISIBLE)}startAnimating(){this.busy=!0}stopAnimating(){this.busy=!1}}var w=!1;t.a={install(e){if(!w){w=!0;e.registerElement("MDProgress",()=>progress_Progress,{})}}}},function(e,t,r){"use strict";var n=r(62),i=r(23),a=r(16),o=r(18);function extend(e,t){for(var r in t)e[r]=t[r];return e}var l={props:{items:{type:[Array,Object],validator:e=>Array.isArray(e)||e instanceof i.b,required:!0},"+alias":{type:String,default:"item"},"+index":{type:String},layout:{type:String,default:"linear"},orientation:{type:String,default:"vertical"},gridSpanCount:{type:Number,default:2},itemHeight:{type:String,default:"auto"},itemTemplateSelector:{type:Function,default:void 0},itemInsertAnimation:{type:String,default:void 0},itemDeleteAnimation:{type:String,default:void 0}},template:'\n \n \n\n \n \n \n \n ',computed:{scrollDirection(){return"vertical"!==this.orientation?n.d.Horizontal:n.d.Vertical}},watch:{items:{handler(e,t){if(!(t instanceof a.a)){this.$refs.listView.setAttribute("items",e);this.doRefreshOnWatch&&this.refresh()}},deep:!0}},created(){var e=extend({},this.$listeners);delete e.itemTap;this.listeners=e;this.doRefreshOnWatch=!0;this.getItemContext=getItemContext.bind(this)},mounted(){this.listView=this.$refs.listView;this.listView.setAttribute("itemTemplates",this.$templates.getKeyedTemplates());var e=this.itemTemplateSelector?this.itemTemplateSelector:(e,t,r)=>{var n=this.listView.nativeView.isItemSelected(e);return this.$templates.selectorFn(this.getItemContext(e,t,n))};this.listView.setAttribute("itemTemplateSelector",e);var t=this.$templates.getAvailable();this.listView.setAttribute("itemViewLoader",e=>{switch(e){case n.f.HeaderView:if(~t.indexOf("header"))return this.$templates.patchTemplate("header",this.$parent);break;case n.f.FooterView:if(~t.indexOf("footer"))return this.$templates.patchTemplate("footer",this.$parent);break;case n.f.ItemSwipeView:if(~t.indexOf("itemswipe"))return this.$templates.patchTemplate("itemswipe",this.$parent);break;case n.f.LoadOnDemandView:if(~t.indexOf("loadondemand"))return this.$templates.patchTemplate("loadondemand",this.$parent)}})},methods:{getItem(e){return"function"==typeof this.items.getItem?this.items.getItem(e):this.items[e]},onItemTap(e){this.$emit("itemTap",extend({item:this.getItem(e.index)},e))},updateGroupViewTemplate(e){if(~this.$templates.getAvailable().indexOf("group")){var t=this.getItemContext(e.view.bindingContext),r=e.view&&e.view.__vueVNodeRef__;e.view=this.$templates.patchTemplate("group",t,r)}},updateViewTemplate(e){var t=e.index,r=e.object.items,n=e.view.bindingContext,i=e.object.itemTemplateSelector(n,t,r),a=this.listView.nativeView.isItemSelected(n),o=this.getItemContext(n,t,a),l=e.view&&e.view.__vueVNodeRef__;e.view=this.$templates.patchTemplate(i,o,l)},onItemLoadingInternal(e){e.index<0?this.updateGroupViewTemplate(e):this.updateViewTemplate(e)},onItemReorderStarting(e){this.doRefreshOnWatch=!1;this.$emit("itemReorderStarted",e)},onItemReordered(e){this.doRefreshOnWatch=!0;this.$emit("itemReordered",e)},refresh(){this.listView.nativeView.refresh();if(o.c){this.listView.nativeView._updateHeader();this.listView.nativeView._updateFooter()}else this.listView.nativeView.clearCellsAndUpdateHeaderFooter()},scrollToIndex(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.b.Auto;this.listView.nativeView.scrollToIndex(e,t,r)},notifySwipeToExecuteFinished(){this.listView.nativeView.notifySwipeToExecuteFinished()},getSelectedItems(){return this.listView.nativeView.getSelectedItems()}}};function getItemContext(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.$props["+alias"],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.$props["+index"];return{[n]:e,[i||"$index"]:t,$even:t%2==0,$odd:t%2!=0,$selected:r}}var d={install(e,t){e.registerElement("RadListView",()=>n.g,{component:l});e.registerElement("ListViewGridLayout",()=>n.a);e.registerElement("ListViewLinearLayout",()=>n.c);e.registerElement("ListViewStaggeredLayout",()=>n.e);e.directive("tkListViewLayout",{inserted:function inserted(e){e.parentNode._nativeView.listViewLayout=e._nativeView}})}};t.a=d},function(e,t,r){"use strict";var n=r(38),i={props:{},template:'\n \n \n\n \n ',methods:{navigateForward(){this.$refs.calendar.nativeView.navigateForward()},navigateBack(){this.$refs.calendar.nativeView.navigateBack()},goToDate(e){this.$refs.calendar.nativeView.goToDate(e)}}},a={install(e,t){e.registerElement("RadCalendar",()=>n.k,{component:i})}};t.a=a},function(e,t,r){"use strict";var n={props:{},template:'\n \n \n \n ',methods:{showDrawer(){return this.$refs.drawer.nativeView.showDrawer()},closeDrawer(){return this.$refs.drawer.nativeView.closeDrawer()},toggleDrawerState(){return this.$refs.drawer.nativeView.toggleDrawerState()}}},i={install(e){e.registerElement("RadSideDrawer",()=>r(328).RadSideDrawer,{component:n})}};t.a=i},,,,,,,,,function(e,t,r){"use strict";r.r(t);r.d(t,"__extends",(function(){return __extends}));r.d(t,"__assign",(function(){return i}));r.d(t,"__rest",(function(){return __rest}));r.d(t,"__decorate",(function(){return __decorate}));r.d(t,"__param",(function(){return __param}));r.d(t,"__metadata",(function(){return __metadata}));r.d(t,"__awaiter",(function(){return __awaiter}));r.d(t,"__generator",(function(){return __generator}));r.d(t,"__createBinding",(function(){return a}));r.d(t,"__exportStar",(function(){return __exportStar}));r.d(t,"__values",(function(){return __values}));r.d(t,"__read",(function(){return __read}));r.d(t,"__spread",(function(){return __spread}));r.d(t,"__spreadArrays",(function(){return __spreadArrays}));r.d(t,"__await",(function(){return __await}));r.d(t,"__asyncGenerator",(function(){return __asyncGenerator}));r.d(t,"__asyncDelegator",(function(){return __asyncDelegator}));r.d(t,"__asyncValues",(function(){return __asyncValues}));r.d(t,"__makeTemplateObject",(function(){return __makeTemplateObject}));r.d(t,"__importStar",(function(){return __importStar}));r.d(t,"__importDefault",(function(){return __importDefault}));r.d(t,"__classPrivateFieldGet",(function(){return __classPrivateFieldGet}));r.d(t,"__classPrivateFieldSet",(function(){return __classPrivateFieldSet}));var n=function extendStatics(e,t){n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])};return n(e,t)};function __extends(e,t){n(e,t);function __(){this.constructor=e}e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}var i=function __assign(){i=Object.assign||function __assign(e){for(var t,r=1,n=arguments.length;r=0;l--)(i=e[l])&&(o=(a<3?i(o):a>3?i(t,r,o):i(t,r))||o);return a>3&&o&&Object.defineProperty(t,r,o),o}function __param(e,t){return function(r,n){t(r,n,e)}}function __metadata(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function __awaiter(e,t,r,n){return new(r||(r=Promise))((function(i,a){function fulfilled(e){try{step(n.next(e))}catch(e){a(e)}}function rejected(e){try{step(n.throw(e))}catch(e){a(e)}}function step(e){e.done?i(e.value):function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))}function __generator(e,t){var r,n,i,a,o={label:0,sent:function sent(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function verb(a){return function(l){return function step(a){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;(n=0,i)&&(a=[2&a[0],i.value]);switch(a[0]){case 0:case 1:i=a;break;case 4:o.label++;return{value:a[1],done:!1};case 5:o.label++;n=a[1];a=[0];continue;case 7:a=o.ops.pop();o.trys.pop();continue;default:if(!(i=o.trys,i=i.length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=e.length&&(e=void 0);return{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o}function __spread(){for(var e=[],t=0;t1||resume(e,t)}))})}function resume(e,t){try{!function step(e){e.value instanceof __await?Promise.resolve(e.value.v).then(fulfill,reject):settle(a[0][2],e)}(i[e](t))}catch(e){settle(a[0][3],e)}}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){(e(t),a.shift(),a.length)&&resume(a[0][0],a[0][1])}}function __asyncDelegator(e){var t,r;return t={},verb("next"),verb("throw",(function(e){throw e})),verb("return"),t[Symbol.iterator]=function(){return this},t;function verb(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:__await(e[n](t)),done:"return"===n}:i?i(t):t}:i}}function __asyncValues(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=__values(e),t={},verb("next"),verb("throw"),verb("return"),t[Symbol.asyncIterator]=function(){return this},t);function verb(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){t=e[r](t),function settle(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,i,t.done,t.value)}))}}}function __makeTemplateObject(e,t){Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t;return e}var o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function __importStar(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);o(t,e);return t}function __importDefault(e){return e&&e.__esModule?e:{default:e}}function __classPrivateFieldGet(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function __classPrivateFieldSet(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");t.set(e,r);return r}},function(e,t,r){var n=r(207),i=r(208),a=r(209);function ValueParser(e){if(this instanceof ValueParser){this.nodes=n(e);return this}return new ValueParser(e)}ValueParser.prototype.toString=function(){return Array.isArray(this.nodes)?a(this.nodes):""};ValueParser.prototype.walk=function(e,t){i(this.nodes,e,t);return this};ValueParser.unit=r(210);ValueParser.walk=i;ValueParser.stringify=a;e.exports=ValueParser},function(e,t){var r="(".charCodeAt(0),n=")".charCodeAt(0),i="'".charCodeAt(0),a='"'.charCodeAt(0),o="\\".charCodeAt(0),l="/".charCodeAt(0),d=",".charCodeAt(0),p=":".charCodeAt(0),h="*".charCodeAt(0);e.exports=function(e){for(var t,m,g,f,v,y,w,C,S=[],b=e,x=0,T=b.charCodeAt(x),P=b.length,k=[{nodes:S}],A=0,E="",I="",V="";x=48&&t<=57)m=!0;else if(t===a||t===o){if(h>-1)break;h=l}else if(t===i){if(p)break;p=!0}else{if(t!==n&&t!==r)break;if(0!==l)break}l+=1}h+1===l&&l--;return!!m&&{number:e.slice(0,l),unit:e.slice(l)}}},function(e,t,r){var n=function(){function JisonParserError(e,t){Object.defineProperty(this,"name",{enumerable:!1,writable:!1,value:"JisonParserError"});null==e&&(e="???");Object.defineProperty(this,"message",{enumerable:!1,writable:!0,value:e});this.hash=t;var r;if(t&&t.exception instanceof Error){var n=t.exception;this.message=n.message||e;r=n.stack}r||(Error.hasOwnProperty("captureStackTrace")?Error.captureStackTrace(this,this.constructor):r=new Error(e).stack);r&&Object.defineProperty(this,"stack",{enumerable:!1,writable:!1,value:r})}"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf(JisonParserError.prototype,Error.prototype):JisonParserError.prototype=Object.create(Error.prototype);JisonParserError.prototype.constructor=JisonParserError;JisonParserError.prototype.name="JisonParserError";function s(e,t,r){r=r||0;for(var n=0;n1)return e;t.cleanupAfterLex&&t.cleanupAfterLex(o);if(m){m.lexer=void 0;m.parser=void 0;t.yy===m&&(t.yy=void 0)}m=void 0;this.parseError=this.originalParseError;this.quoteName=this.originalQuoteName;n.length=0;i.length=0;a.length=0;l=0;if(!o){for(var h=this.__error_infos.length-1;h>=0;h--){var g=this.__error_infos[h];g&&"function"==typeof g.destroy&&g.destroy()}this.__error_infos.length=0}return e};this.constructParseErrorInfo=function parser_constructParseErrorInfo(e,r,o,p){var h={errStr:e,exception:r,text:t.match,value:t.yytext,token:this.describeSymbol(d)||d,token_id:d,line:t.yylineno,expected:o,recoverable:p,state:g,action:f,new_state:b,symbol_stack:n,state_stack:i,value_stack:a,stack_pointer:l,yy:m,lexer:t,parser:this,destroy:function destructParseErrorInfo(){var e=!!this.recoverable;for(var t in this)this.hasOwnProperty(t)&&"object"==typeof t&&(this[t]=void 0);this.recoverable=e}};this.__error_infos.push(h);return h};function fastLex(){var e=t.fastLex();"number"!=typeof e&&(e=r.symbols_[e]||e);return e||p}var g,f,v,y,w,C,S,b,x=function stdLex(){var e=t.lex();"number"!=typeof e&&(e=r.symbols_[e]||e);return e||p},T={$:!0,_$:void 0,yy:m},P=!1;try{this.__reentrant_call_depth++;t.setInput(e,m);if("function"==typeof t.canIUse){var k=t.canIUse();k.fastLex&&(x=fastLex)}a[l]=null;i[l]=0;n[l]=0;++l;this.pre_parse&&this.pre_parse.call(this,m);m.pre_parse&&m.pre_parse.call(this,m);b=i[l-1];for(;;){g=b;if(this.defaultActions[g]){f=2;b=this.defaultActions[g]}else{d||(d=x());y=o[g]&&o[g][d]||h;b=y[1];f=y[0];if(!f){var A,E=this.describeSymbol(d)||d,I=this.collect_expected_token_set(g);A="number"==typeof t.yylineno?"Parse error on line "+(t.yylineno+1)+": ":"Parse error: ";"function"==typeof t.showPosition&&(A+="\n"+t.showPosition(69,10)+"\n");I.length?A+="Expecting "+I.join(", ")+", got unexpected "+E:A+="Unexpected "+E;w=this.constructParseErrorInfo(A,null,I,!1);v=this.parseError(w.errStr,w,this.JisonParserError);void 0!==v&&(P=v);break}}switch(f){default:if(f instanceof Array){w=this.constructParseErrorInfo("Parse Error: multiple actions possible at state: "+g+", token: "+d,null,null,!1);v=this.parseError(w.errStr,w,this.JisonParserError);void 0!==v&&(P=v);break}w=this.constructParseErrorInfo("Parsing halted. No viable error recovery approach available due to internal system failure.",null,null,!1);v=this.parseError(w.errStr,w,this.JisonParserError);void 0!==v&&(P=v);break;case 1:n[l]=d;a[l]=t.yytext;i[l]=b;++l;d=0;continue;case 2:S=this.productions_[b-1];C=S[1];v=this.performAction.call(T,b,l-1,a);if(void 0!==v){P=v;break}l-=C;var V=S[0];n[l]=V;a[l]=T.$;b=o[i[l-1]][V];i[l]=b;++l;continue;case 3:if(-2!==l){P=!0;l--;void 0!==a[l]&&(P=a[l])}}break}}catch(e){if(e instanceof this.JisonParserError)throw e;if(t&&"function"==typeof t.JisonLexerError&&e instanceof t.JisonLexerError)throw e;w=this.constructParseErrorInfo("Parsing aborted due to exception.",e,null,!1);P=!1;v=this.parseError(w.errStr,w,this.JisonParserError);void 0!==v&&(P=v)}finally{P=this.cleanupAfterParse(P,!0,!0);this.__reentrant_call_depth--}return P}};e.originalParseError=e.parseError;e.originalQuoteName=e.quoteName;var t=function(){function JisonLexerError(e,t){Object.defineProperty(this,"name",{enumerable:!1,writable:!1,value:"JisonLexerError"});null==e&&(e="???");Object.defineProperty(this,"message",{enumerable:!1,writable:!0,value:e});this.hash=t;var r;if(t&&t.exception instanceof Error){var n=t.exception;this.message=n.message||e;r=n.stack}r||(Error.hasOwnProperty("captureStackTrace")?Error.captureStackTrace(this,this.constructor):r=new Error(e).stack);r&&Object.defineProperty(this,"stack",{enumerable:!1,writable:!1,value:r})}"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf(JisonLexerError.prototype,Error.prototype):JisonLexerError.prototype=Object.create(Error.prototype);JisonLexerError.prototype.constructor=JisonLexerError;JisonLexerError.prototype.name="JisonLexerError";var e={EOF:1,ERROR:2,__currentRuleSet__:null,__error_infos:[],__decompressed:!1,done:!1,_backtrack:!1,_input:"",_more:!1,_signaled_error_token:!1,conditionStack:[],match:"",matched:"",matches:!1,yytext:"",offset:0,yyleng:0,yylineno:0,yylloc:null,constructLexErrorInfo:function lexer_constructLexErrorInfo(e,t,r){e=""+e;null==r&&(r=!(e.indexOf("\n")>0&&e.indexOf("^")>0));if(this.yylloc&&r)if("function"==typeof this.prettyPrintRange){this.prettyPrintRange(this.yylloc);/\n\s*$/.test(e)||(e+="\n");e+="\n Erroneous area:\n"+this.prettyPrintRange(this.yylloc)}else if("function"==typeof this.showPosition){var n=this.showPosition();n&&(e.length&&"\n"!==e[e.length-1]&&"\n"!==n[0]?e+="\n"+n:e+=n)}var i={errStr:e,recoverable:!!t,text:this.match,token:null,line:this.yylineno,loc:this.yylloc,yy:this.yy,lexer:this,destroy:function destructLexErrorInfo(){var e=!!this.recoverable;for(var t in this)this.hasOwnProperty(t)&&"object"==typeof t&&(this[t]=void 0);this.recoverable=e}};this.__error_infos.push(i);return i},parseError:function lexer_parseError(e,t,r){r||(r=this.JisonLexerError);if(this.yy){if(this.yy.parser&&"function"==typeof this.yy.parser.parseError)return this.yy.parser.parseError.call(this,e,t,r)||this.ERROR;if("function"==typeof this.yy.parseError)return this.yy.parseError.call(this,e,t,r)||this.ERROR}throw new r(e,t)},yyerror:function yyError(e){var t="";this.yylloc&&(t=" on line "+(this.yylineno+1));var r=this.constructLexErrorInfo("Lexical error"+t+": "+e,this.options.lexerErrorsAreRecoverable),n=Array.prototype.slice.call(arguments,1);n.length&&(r.extra_error_attributes=n);return this.parseError(r.errStr,r,this.JisonLexerError)||this.ERROR},cleanupAfterLex:function lexer_cleanupAfterLex(e){this.setInput("",{});if(!e){for(var t=this.__error_infos.length-1;t>=0;t--){var r=this.__error_infos[t];r&&"function"==typeof r.destroy&&r.destroy()}this.__error_infos.length=0}return this},clear:function lexer_clear(){this.yytext="";this.yyleng=0;this.match="";this.matches=!1;this._more=!1;this._backtrack=!1;var e=this.yylloc?this.yylloc.last_column:0;this.yylloc={first_line:this.yylineno+1,first_column:e,last_line:this.yylineno+1,last_column:e,range:[this.offset,this.offset]}},setInput:function lexer_setInput(e,t){this.yy=t||this.yy||{};if(!this.__decompressed){for(var r=this.rules,n=0,i=r.length;n1){this.yylineno-=r.length-1;this.yylloc.last_line=this.yylineno+1;var n=this.match,i=n.split(/(?:\r\n?|\n)/g);if(1===i.length){n=this.matched;i=n.split(/(?:\r\n?|\n)/g)}this.yylloc.last_column=i[i.length-1].length}else this.yylloc.last_column-=t;this.yylloc.range[1]=this.yylloc.range[0]+this.yyleng;this.done=!1;return this},more:function lexer_more(){this._more=!0;return this},reject:function lexer_reject(){if(this.options.backtrack_lexer)this._backtrack=!0;else{var e="";this.yylloc&&(e=" on line "+(this.yylineno+1));var t=this.constructLexErrorInfo("Lexical error"+e+": You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).",!1);this._signaled_error_token=this.parseError(t.errStr,t,this.JisonLexerError)||this.ERROR}return this},less:function lexer_less(e){return this.unput(this.match.slice(e))},pastInput:function lexer_pastInput(e,t){var r=this.matched.substring(0,this.matched.length-this.match.length);e<0?e=r.length:e||(e=20);t<0?t=r.length:t||(t=1);r=r.substr(2*-e-2);var n=r.replace(/\r\n|\r/g,"\n").split("\n");n=n.slice(-t);r=n.join("\n");r.length>e&&(r="..."+r.substr(-e));return r},upcomingInput:function lexer_upcomingInput(e,t){var r=this.match;e<0?e=r.length+this._input.length:e||(e=20);t<0?t=e:t||(t=1);r.length<2*e+2&&(r+=this._input.substring(0,2*e+2));var n=r.replace(/\r\n|\r/g,"\n").split("\n");n=n.slice(0,t);r=n.join("\n");r.length>e&&(r=r.substring(0,e)+"...");return r},showPosition:function lexer_showPosition(e,t){var r=this.pastInput(e).replace(/\s/g," "),n=new Array(r.length+1).join("-");return r+this.upcomingInput(t).replace(/\s/g," ")+"\n"+n+"^"},deriveLocationInfo:function lexer_deriveYYLLOC(e,t,r,n){var i={first_line:1,first_column:0,last_line:1,last_column:0,range:[0,0]};if(e){i.first_line=0|e.first_line;i.last_line=0|e.last_line;i.first_column=0|e.first_column;i.last_column=0|e.last_column;if(e.range){i.range[0]=0|e.range[0];i.range[1]=0|e.range[1]}}if(i.first_line<=0||i.last_line=i.first_line)){i.last_line=0|n.last_line;i.last_column=0|n.last_column;n.range&&(i.range[1]=0|n.range[1])}}if(i.last_line<=0)if(i.first_line<=0){i.first_line=this.yylloc.first_line;i.last_line=this.yylloc.last_line;i.first_column=this.yylloc.first_column;i.last_column=this.yylloc.last_column;i.range[0]=this.yylloc.range[0];i.range[1]=this.yylloc.range[1]}else{i.last_line=this.yylloc.last_line;i.last_column=this.yylloc.last_column;i.range[1]=this.yylloc.range[1]}if(i.first_line<=0){i.first_line=i.last_line;i.first_column=0;i.range[1]=i.range[0]}i.first_column<0&&(i.first_column=0);i.last_column<0&&(i.last_column=i.first_column>0?i.first_column:80);return i},prettyPrintRange:function lexer_prettyPrintRange(e,t,r){e=this.deriveLocationInfo(e,t,r);var n=this.matched+this._input,i=n.split("\n"),a=Math.max(1,t?t.first_line:e.first_line-3),o=Math.max(1,r?r.last_line:e.last_line+1),l=1+Math.log10(1|o)|0,d=new Array(l).join(" "),p=[],h=i.slice(a-1,o+1).map((function injectLineNumber(t,r){var n=r+a,i=(d+n).substr(-l),o=i+": "+t,h=new Array(l+1).join("^"),m=3,g=0;if(n===e.first_line){m+=e.first_column;g=Math.max(2,(n===e.last_line?e.last_column:t.length)-e.first_column+1)}else n===e.last_line?g=Math.max(2,e.last_column+1):n>e.first_line&&n0&&p.push(r)}o=o.replace(/\t/g," ");return o}));if(p.length>4){var m=p[1]+1,g=p[p.length-2]-1,f=new Array(l+1).join(" ")+" (...continued...)";f+="\n"+new Array(l+1).join("-")+" (---------------)";h.splice(m,g-m+1,f)}return h.join("\n")},describeYYLLOC:function lexer_describe_yylloc(e,t){var r,n=e.first_line,i=e.last_line,a=e.first_column,o=e.last_column,l=i-n,d=o-a;if(0===l){r="line "+n+", ";r+=d<=1?"column "+a:"columns "+a+" .. "+o}else r="lines "+n+"(column "+a+") .. "+i+"(column "+o+")";if(e.range&&t){var p=e.range[0],h=e.range[1]-1;r+=h<=p?" {String Offset: "+p+"}":" {String Offset range: "+p+" .. "+h+"}"}return r},test_match:function lexer_test_match(e,t){var r,n,i,a,o;this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.yylloc.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column,range:this.yylloc.range.slice(0)},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done});a=e[0];o=a.length;n=a.split(/(?:\r\n?|\n)/g);if(n.length>1){this.yylineno+=n.length-1;this.yylloc.last_line=this.yylineno+1;this.yylloc.last_column=n[n.length-1].length}else this.yylloc.last_column+=o;this.yytext+=a;this.match+=a;this.matched+=a;this.matches=e;this.yyleng=this.yytext.length;this.yylloc.range[1]+=o;this.offset+=o;this._more=!1;this._backtrack=!1;this._input=this._input.slice(o);r=this.performAction.call(this,this.yy,t,this.conditionStack[this.conditionStack.length-1]);this.done&&this._input&&(this.done=!1);if(r)return r;if(this._backtrack){for(var l in i)this[l]=i[l];this.__currentRuleSet__=null;return!1}if(this._signaled_error_token){r=this._signaled_error_token;this._signaled_error_token=!1;return r}return!1},next:function lexer_next(){if(this.done){this.clear();return this.EOF}this._input||(this.done=!0);var e,t,r,n;this._more||this.clear();var i=this.__currentRuleSet__;if(!i){i=this.__currentRuleSet__=this._currentRules();if(!i||!i.rules){var a="";this.options.trackPosition&&(a=" on line "+(this.yylineno+1));var o=this.constructLexErrorInfo("Internal lexer engine error"+a+': The lex grammar programmer pushed a non-existing condition name "'+this.topState()+'"; this is a fatal error and should be reported to the application programmer team!',!1);return this.parseError(o.errStr,o,this.JisonLexerError)||this.ERROR}}for(var l=i.rules,d=i.__rule_regexes,p=i.__rule_count,h=1;h<=p;h++){r=this._input.match(d[h]);if(r&&(!t||r[0].length>t[0].length)){t=r;n=h;if(this.options.backtrack_lexer){e=this.test_match(r,l[h]);if(!1!==e)return e;if(this._backtrack){t=void 0;continue}return!1}if(!this.options.flex)break}}if(t){e=this.test_match(t,l[n]);return!1!==e&&e}if(this._input){a="";this.options.trackPosition&&(a=" on line "+(this.yylineno+1));o=this.constructLexErrorInfo("Lexical error"+a+": Unrecognized text.",this.options.lexerErrorsAreRecoverable);var m=this._input,g=this.topState(),f=this.conditionStack.length;e=this.parseError(o.errStr,o,this.JisonLexerError)||this.ERROR;e===this.ERROR&&(this.matches||m!==this._input||g!==this.topState()||f!==this.conditionStack.length||this.input());return e}this.done=!0;this.clear();return this.EOF},lex:function lexer_lex(){var e;"function"==typeof this.pre_lex&&(e=this.pre_lex.call(this,0));"function"==typeof this.options.pre_lex&&(e=this.options.pre_lex.call(this,e)||e);this.yy&&"function"==typeof this.yy.pre_lex&&(e=this.yy.pre_lex.call(this,e)||e);for(;!e;)e=this.next();this.yy&&"function"==typeof this.yy.post_lex&&(e=this.yy.post_lex.call(this,e)||e);"function"==typeof this.options.post_lex&&(e=this.options.post_lex.call(this,e)||e);"function"==typeof this.post_lex&&(e=this.post_lex.call(this,e)||e);return e},fastLex:function lexer_fastLex(){for(var e;!e;)e=this.next();return e},canIUse:function lexer_canIUse(){var e={fastLex:!("function"==typeof this.pre_lex||"function"==typeof this.options.pre_lex||this.yy&&"function"==typeof this.yy.pre_lex||this.yy&&"function"==typeof this.yy.post_lex||"function"==typeof this.options.post_lex||"function"==typeof this.post_lex)&&"function"==typeof this.fastLex};return e},begin:function lexer_begin(e){return this.pushState(e)},pushState:function lexer_pushState(e){this.conditionStack.push(e);this.__currentRuleSet__=null;return this},popState:function lexer_popState(){var e=this.conditionStack.length-1;if(e>0){this.__currentRuleSet__=null;return this.conditionStack.pop()}return this.conditionStack[0]},topState:function lexer_topState(e){e=this.conditionStack.length-1-Math.abs(e||0);return e>=0?this.conditionStack[e]:"INITIAL"},_currentRules:function lexer__currentRules(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL},stateStackSize:function lexer_stateStackSize(){return this.conditionStack.length},options:{trackPosition:!0},JisonLexerError:JisonLexerError,performAction:function lexer__performAction(e,t,r){switch(t){case 0:break;default:return this.simpleCaseActionClusters[t]}},simpleCaseActionClusters:{1:5,2:6,3:3,4:4,5:13,6:13,7:13,8:13,9:13,10:13,11:14,12:14,13:14,14:14,15:15,16:15,17:16,18:16,19:17,20:17,21:17,22:18,23:19,24:20,25:21,26:23,27:22,28:24,29:25,30:26,31:11,32:9,33:12,34:10,35:7,36:8,37:1},rules:[/^(?:\s+)/,/^(?:\*)/,/^(?:\/)/,/^(?:\+)/,/^(?:-)/,/^(?:(\d+(\.\d*)?|\.\d+)px\b)/,/^(?:(\d+(\.\d*)?|\.\d+)cm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)mm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)in\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pt\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pc\b)/,/^(?:(\d+(\.\d*)?|\.\d+)deg\b)/,/^(?:(\d+(\.\d*)?|\.\d+)grad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)turn\b)/,/^(?:(\d+(\.\d*)?|\.\d+)s\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ms\b)/,/^(?:(\d+(\.\d*)?|\.\d+)Hz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)kHz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpi\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpcm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dppx\b)/,/^(?:(\d+(\.\d*)?|\.\d+)em\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ex\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ch\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rem\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vw\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vh\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmin\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmax\b)/,/^(?:(\d+(\.\d*)?|\.\d+)%)/,/^(?:(\d+(\.\d*)?|\.\d+)\b)/,/^(?:(calc))/,/^(?:(var\([^)]*\)))/,/^(?:([a-z]+))/,/^(?:\()/,/^(?:\))/,/^(?:$)/],conditions:{INITIAL:{rules:[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,26,27,28,29,30,31,32,33,34,35,36,37],inclusive:!0}}};return e}();e.lexer=t;function Parser(){this.yy={}}Parser.prototype=e;e.Parser=Parser;return new Parser}();t.parser=n;t.Parser=n.Parser;t.parse=function(){return n.parse.apply(n,arguments)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(213),i=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(n);t.default=function convertNodes(e,t,r){switch(e.type){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":return function convertAbsoluteLength(e,t,r){t.type===e.type&&(t={type:e.type,value:(0,i.default)(t.value,t.unit,e.unit,r),unit:e.unit});return{left:e,right:t}}(e,t,r);default:return{left:e,right:t}}};e.exports=t.default},function(e,t){var r={px:{px:1,cm:96/2.54,mm:96/25.4,in:96,pt:96/72,pc:16},cm:{px:2.54/96,cm:1,mm:.1,in:2.54,pt:2.54/72,pc:2.54/6},mm:{px:25.4/96,cm:10,mm:1,in:25.4,pt:25.4/72,pc:25.4/6},in:{px:1/96,cm:1/2.54,mm:1/25.4,in:1,pt:1/72,pc:1/6},pt:{px:.75,cm:72/2.54,mm:72/25.4,in:72,pt:1,pc:12},pc:{px:6/96,cm:6/2.54,mm:6/25.4,in:6,pt:6/72,pc:1},deg:{deg:1,grad:.9,rad:180/Math.PI,turn:360},grad:{deg:400/360,grad:1,rad:200/Math.PI,turn:400},rad:{deg:Math.PI/180,grad:Math.PI/200,rad:1,turn:2*Math.PI},turn:{deg:1/360,grad:1/400,rad:.5/Math.PI,turn:1},s:{s:1,ms:.001},ms:{s:1e3,ms:1},Hz:{Hz:1,kHz:1e3},kHz:{Hz:.001,kHz:1},dpi:{dpi:1,dpcm:1/2.54,dppx:1/96},dpcm:{dpi:2.54,dpcm:1,dppx:2.54/96},dppx:{dpi:96,dpcm:96/2.54,dppx:1}};e.exports=function(e,t,n,i){if(!r.hasOwnProperty(n))throw new Error("Cannot convert to "+n);if(!r[n].hasOwnProperty(t))throw new Error("Cannot convert from "+t+" to "+n);var a=r[n][t]*e;if(!1!==i){i=Math.pow(10,parseInt(i)||5);return Math.round(a*i)/i}return a}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e,t,r){var a=function stringify(e,t){switch(e.type){case"MathExpression":var r=e.left,a=e.right,o=e.operator,l="";"MathExpression"===r.type&&i[o]");function dumpMapSyntax(e,t,r){var n={};for(var i in e)e[i].syntax&&(n[i]=r?e[i].syntax:d(e[i].syntax,{compact:t}));return n}function dumpAtruleMapSyntax(e,t,r){var n={};for(var[i,a]of Object.entries(e))n[i]={prelude:a.prelude&&(r?a.prelude.syntax:d(a.prelude.syntax,{compact:t})),descriptors:a.descriptors&&dumpMapSyntax(a.descriptors,t,r)};return n}function buildMatchResult(e,t,r){return{matched:e,iterations:r,error:t,getTrace:f.getTrace,isType:f.isType,isProperty:f.isProperty,isKeyword:f.isKeyword}}function matchSyntax(e,t,r,n){var a,o=h(r,e.syntax);if(function valueHasVar(e){for(var t=0;t{e[r]=this.createDescriptor(t.descriptors[r],"AtruleDescriptor",r);return e},{}):null}},addProperty_:function addProperty_(e,t){this.properties[e]=this.createDescriptor(t,"Property",e)},addType_:function addType_(e,t){this.types[e]=this.createDescriptor(t,"Type",e);t===o["-ms-legacy-expression"]&&(this.valueCommonSyntax=C)},matchAtrulePrelude:function matchAtrulePrelude(e,t){var r=a.keyword(e),i=r.vendor?this.getAtrulePrelude(r.name)||this.getAtrulePrelude(r.basename):this.getAtrulePrelude(r.name);return i?matchSyntax(this,i,t,!0):r.basename in this.atrules?buildMatchResult(null,new Error("At-rule `"+e+"` should not contain a prelude")):buildMatchResult(null,new n("Unknown at-rule",e))},matchAtruleDescriptor:function matchAtruleDescriptor(e,t,r){var i=a.keyword(e),o=a.keyword(t),l=i.vendor?this.atrules[i.name]||this.atrules[i.basename]:this.atrules[i.name];if(!l)return buildMatchResult(null,new n("Unknown at-rule",e));if(!l.descriptors)return buildMatchResult(null,new Error("At-rule `"+e+"` has no known descriptors"));var d=o.vendor?l.descriptors[o.name]||l.descriptors[o.basename]:l.descriptors[o.name];return d?matchSyntax(this,d,r,!0):buildMatchResult(null,new n("Unknown at-rule descriptor",t))},matchDeclaration:function matchDeclaration(e){return"Declaration"!==e.type?buildMatchResult(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)},matchProperty:function matchProperty(e,t){var r=a.property(e);if(r.custom)return buildMatchResult(null,new Error("Lexer matching doesn't applicable for custom properties"));var i=r.vendor?this.getProperty(r.name)||this.getProperty(r.basename):this.getProperty(r.name);return i?matchSyntax(this,i,t,!0):buildMatchResult(null,new n("Unknown property",e))},matchType:function matchType(e,t){var r=this.getType(e);return r?matchSyntax(this,r,t,!1):buildMatchResult(null,new n("Unknown type",e))},match:function match(e,t){if(!("string"==typeof e||e&&e.type))return buildMatchResult(null,new n("Bad syntax"));"string"!=typeof e&&e.match||(e=this.createDescriptor(e,"Type","anonymous"));return matchSyntax(this,e,t,!1)},findValueFragments:function findValueFragments(e,t,r,n){return v.matchFragments(this,t,this.matchProperty(e,t),r,n)},findDeclarationValueFragments:function findDeclarationValueFragments(e,t,r){return v.matchFragments(this,e.value,this.matchDeclaration(e),t,r)},findAllFragments:function findAllFragments(e,t,r){var n=[];this.syntax.walk(e,{visit:"Declaration",enter:function(e){n.push.apply(n,this.findDeclarationValueFragments(e,t,r))}.bind(this)});return n},getAtrulePrelude:function getAtrulePrelude(e){return this.atrules.hasOwnProperty(e)?this.atrules[e].prelude:null},getAtruleDescriptor:function getAtruleDescriptor(e,t){return this.atrules.hasOwnProperty(e)&&this.atrules.declarators&&this.atrules[e].declarators[t]||null},getProperty:function getProperty(e){return this.properties.hasOwnProperty(e)?this.properties[e]:null},getType:function getType(e){return this.types.hasOwnProperty(e)?this.types[e]:null},validate:function validate(){function validate(r,n,i,a){if(i.hasOwnProperty(n))return i[n];i[n]=!1;null!==a.syntax&&p(a.syntax,(function(a){if("Type"===a.type||"Property"===a.type){var o="Type"===a.type?r.types:r.properties,l="Type"===a.type?e:t;o.hasOwnProperty(a.name)&&!validate(r,a.name,l,o[a.name])||(i[n]=!0)}}),this)}var e={},t={};for(var r in this.types)validate(this,r,e,this.types[r]);for(var r in this.properties)validate(this,r,t,this.properties[r]);e=Object.keys(e).filter((function(t){return e[t]}));t=Object.keys(t).filter((function(e){return t[e]}));return e.length||t.length?{types:e,properties:t}:null},dump:function dump(e,t){return{generic:this.generic,types:dumpMapSyntax(this.types,!t,e),properties:dumpMapSyntax(this.properties,!t,e),atrules:dumpAtruleMapSyntax(this.atrules,!t,e)}},toString:function toString(){return JSON.stringify(this.dump())}};e.exports=S},function(e,t,r){var n=r(15),i=n.isIdentifierStart,a=n.isHexDigit,o=n.isDigit,l=n.cmpStr,d=n.consumeNumber,p=n.TYPE,h=r(221),m=r(222),g=["unset","initial","inherit"],f=["calc(","-moz-calc(","-webkit-calc("];function charCode(e,t){return te.max)return!0}return!1}function consumeFunction(e,t){var r=e.index,n=0;do{n++;if(e.balance<=r)break}while(e=t(n));return n}function calc(e){return function(t,r,n){return null===t?0:t.type===p.Function&&eqStrAny(t.value,f)?consumeFunction(t,r):e(t,r,n)}}function tokenType(e){return function(t){return null===t||t.type!==e?0:1}}function dimension(e){return function(t,r,n){if(null===t||t.type!==p.Dimension)return 0;var i=d(t.value,0);if(null!==e){var a=t.value.indexOf("\\",i),o=-1!==a&&isPostfixIeHack(t.value,a)?t.value.substring(i,a):t.value.substr(i);if(!1===e.hasOwnProperty(o.toLowerCase()))return 0}return outOfRange(n,t.value,i)?0:1}}function zero(e){"function"!=typeof e&&(e=function next(){return 0});return function(t,r,n){return null!==t&&t.type===p.Number&&0===Number(t.value)?1:e(t,r,n)}}e.exports={"ident-token":tokenType(p.Ident),"function-token":tokenType(p.Function),"at-keyword-token":tokenType(p.AtKeyword),"hash-token":tokenType(p.Hash),"string-token":tokenType(p.String),"bad-string-token":tokenType(p.BadString),"url-token":tokenType(p.Url),"bad-url-token":tokenType(p.BadUrl),"delim-token":tokenType(p.Delim),"number-token":tokenType(p.Number),"percentage-token":tokenType(p.Percentage),"dimension-token":tokenType(p.Dimension),"whitespace-token":tokenType(p.WhiteSpace),"CDO-token":tokenType(p.CDO),"CDC-token":tokenType(p.CDC),"colon-token":tokenType(p.Colon),"semicolon-token":tokenType(p.Semicolon),"comma-token":tokenType(p.Comma),"[-token":tokenType(p.LeftSquareBracket),"]-token":tokenType(p.RightSquareBracket),"(-token":tokenType(p.LeftParenthesis),")-token":tokenType(p.RightParenthesis),"{-token":tokenType(p.LeftCurlyBracket),"}-token":tokenType(p.RightCurlyBracket),string:tokenType(p.String),ident:tokenType(p.Ident),"custom-ident":function customIdent(e){if(null===e||e.type!==p.Ident)return 0;var t=e.value.toLowerCase();return eqStrAny(t,g)||eqStr(t,"default")?0:1},"custom-property-name":function customPropertyName(e){return null===e||e.type!==p.Ident||45!==charCode(e.value,0)||45!==charCode(e.value,1)?0:1},"hex-color":function hexColor(e){if(null===e||e.type!==p.Hash)return 0;var t=e.value.length;if(4!==t&&5!==t&&7!==t&&9!==t)return 0;for(var r=1;re.index||e.balancee.index||e.balance0?6:0;if(!n(o))return 0;if(++a>6)return 0}return a}function withQuestionMarkSequence(e,t,r){if(!e)return 0;for(;isDelim(r(t),63);){if(++e>6)return 0;t++}return t}e.exports=function urange(e,t){var r=0;if(null===e||e.type!==o||!i(e.value,0,117))return 0;e=t(++r);if(null===e)return 0;if(isDelim(e,43)){e=t(++r);return null===e?0:e.type===o?withQuestionMarkSequence(hexSequence(e,0,!0),++r,t):isDelim(e,63)?withQuestionMarkSequence(1,++r,t):0}if(e.type===d){if(!startsWith(e,43))return 0;var n=hexSequence(e,1,!0);if(0===n)return 0;e=t(++r);return null===e?r:e.type===p||e.type===d?startsWith(e,45)&&hexSequence(e,1,!1)?r+1:0:withQuestionMarkSequence(n,r,t)}return e.type===p&&startsWith(e,43)?withQuestionMarkSequence(hexSequence(e,1,!0),++r,t):0}},function(e,t,r){var n=r(153),i=function Tokenizer(e){this.str=e;this.pos=0};i.prototype={charCodeAt:function charCodeAt(e){return e=65&&n<=90&&(n|=32);if(n!==i)return!1}return!0}function isCommaContextStart(e){return null===e||(e.type===d.Comma||e.type===d.Function||e.type===d.LeftParenthesis||e.type===d.LeftSquareBracket||e.type===d.LeftCurlyBracket||function isContextEdgeDelim(e){return e.type===d.Delim&&"?"!==e.value}(e))}function isCommaContextEnd(e){return null===e||(e.type===d.RightParenthesis||e.type===d.RightSquareBracket||e.type===d.RightCurlyBracket||e.type===d.Delim)}function internalMatch(e,t,r){function moveToNextToken(){do{w++;y=wC&&(C=w)}function openSyntax(){i={syntax:t.syntax,opts:t.syntax.opts||null!==i&&i.opts||null,prev:i};S={type:2,syntax:t.syntax,token:S.token,prev:S}}function closeSyntax(){S=2===S.type?S.prev:{type:3,syntax:i.syntax,token:S.token,prev:S};i=i.prev}var i=null,h=null,m=null,g=null,f=0,v=null,y=null,w=-1,C=0,S={type:0,syntax:null,token:null,prev:null};moveToNextToken();for(;null===v&&++f<15e3;)switch(t.type){case"Match":if(null===h){if(null!==y&&(w!==e.length-1||"\\0"!==y.value&&"\\9"!==y.value)){t=o;break}v="Match";break}t=h.nextState;if(t===l){if(h.matchStack===S){t=o;break}t=a}for(;h.syntaxStack!==i;)closeSyntax();h=h.prev;break;case"Mismatch":if(null!==g&&!1!==g){if(null===m||w>m.tokenIndex){m=g;g=!1}}else if(null===m){v="Mismatch";break}t=m.nextState;h=m.thenStack;i=m.syntaxStack;S=m.matchStack;w=m.tokenIndex;y=ww){for(;w":"<'"+t.name+"'>"));if(!1!==g&&null!==y&&"Type"===t.type){var I="custom-ident"===t.name&&y.type===d.Ident||"length"===t.name&&"0"===y.value;if(I){null===g&&(g=stateSnapshotFromSyntax(t,m));t=o;break}}openSyntax();t=E.match;break;case"Keyword":T=t.name;if(null!==y){var V=y.value;-1!==V.indexOf("\\")&&(V=V.replace(/\\[09].*$/,""));if(areStringsEqualCaseInsensitive(V,T)){addTokenToMatch();t=a;break}}t=o;break;case"AtKeyword":case"Function":if(null!==y&&areStringsEqualCaseInsensitive(y.value,t.name)){addTokenToMatch();t=a;break}t=o;break;case"Token":if(null!==y&&y.value===t.value){addTokenToMatch();t=a;break}t=o;break;case"Comma":if(null!==y&&y.type===d.Comma)if(isCommaContextStart(S.token))t=o;else{addTokenToMatch();t=isCommaContextEnd(y)?o:a}else t=isCommaContextStart(S.token)||isCommaContextEnd(y)?a:o;break;case"String":var L="";for(k=w;k=0}function isValidLocation(e){return Boolean(e)&&isValidNumber(e.offset)&&isValidNumber(e.line)&&isValidNumber(e.column)}function createNodeStructureChecker(e,t){return function checkNode(r,a){if(!r||r.constructor!==Object)return a(r,"Type of node should be an Object");for(var o in r){var l=!0;if(!1!==i.call(r,o)){if("type"===o)r.type!==e&&a(r,"Wrong node type `"+r.type+"`, expected `"+e+"`");else if("loc"===o){if(null===r.loc)continue;if(r.loc&&r.loc.constructor===Object)if("string"!=typeof r.loc.source)o+=".source";else if(isValidLocation(r.loc.start)){if(isValidLocation(r.loc.end))continue;o+=".end"}else o+=".start";l=!1}else if(t.hasOwnProperty(o)){var d=0;for(l=!1;!l&&d");else{if(!Array.isArray(h))throw new Error("Wrong value `"+h+"` in `"+e+"."+o+"` structure definition");l.push("List")}}a[o]=l.join(" | ")}return{docs:a,check:createNodeStructureChecker(e,n)}}e.exports={getStructureFromConfig:function getStructureFromConfig(e){var t={};if(e.node)for(var r in e.node)if(i.call(e.node,r)){var n=e.node[r];if(!n.structure)throw new Error("Missed `structure` field in `"+r+"` node type definition");t[r]=processStructure(r,n)}return t}}},function(e,t,r){e.exports={SyntaxError:r(153),parse:r(130),generate:r(128),walk:r(154)}},function(e,t,r){var n=r(231),i=r(149),a=r(114),o=r(97),l=r(15),d=r(115),{findWhiteSpaceStart:p,cmpStr:h}=r(105),m=r(232),g=function noop(){},f=d.TYPE,v=d.NAME,y=f.WhiteSpace,w=f.Comment,C=f.Ident,S=f.Function,b=f.Url,x=f.Hash,T=f.Percentage,P=f.Number;function createParseContext(e){return function(){return this[e]()}}e.exports=function createParser(e){var t={scanner:new a,locationMap:new n,filename:"",needPositions:!1,onParseError:g,onParseErrorThrow:!1,parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:m,createList:function createList(){return new o},createSingleNodeList:function createSingleNodeList(e){return(new o).appendData(e)},getFirstListNode:function getFirstListNode(e){return e&&e.first()},getLastListNode:function getLastListNode(e){return e.last()},parseWithFallback:function parseWithFallback(e,t){var r=this.scanner.tokenIndex;try{return e.call(this)}catch(e){if(this.onParseErrorThrow)throw e;var n=t.call(this,r);this.onParseErrorThrow=!0;this.onParseError(e,n);this.onParseErrorThrow=!1;return n}},lookupNonWSType:function lookupNonWSType(e){do{var t=this.scanner.lookupType(e++);if(t!==y)return t}while(0!==t);return 0},eat:function eat(e){if(this.scanner.tokenType!==e){var t=this.scanner.tokenStart,r=v[e]+" is expected";switch(e){case C:if(this.scanner.tokenType===S||this.scanner.tokenType===b){t=this.scanner.tokenEnd-1;r="Identifier is expected but function found"}else r="Identifier is expected";break;case x:if(this.scanner.isDelim(35)){this.scanner.next();t++;r="Name is expected"}break;case T:if(this.scanner.tokenType===P){t=this.scanner.tokenEnd;r="Percent sign is expected"}break;default:this.scanner.source.charCodeAt(this.scanner.tokenStart)===e&&(t+=1)}this.error(r,t)}this.scanner.next()},consume:function consume(e){var t=this.scanner.getTokenValue();this.eat(e);return t},consumeFunctionName:function consumeFunctionName(){var e=this.scanner.source.substring(this.scanner.tokenStart,this.scanner.tokenEnd-1);this.eat(S);return e},getLocation:function getLocation(e,t){return this.needPositions?this.locationMap.getLocationRange(e,t,this.filename):null},getLocationFromList:function getLocationFromList(e){if(this.needPositions){var t=this.getFirstListNode(e),r=this.getLastListNode(e);return this.locationMap.getLocationRange(null!==t?t.loc.start.offset-this.locationMap.startOffset:this.scanner.tokenStart,null!==r?r.loc.end.offset-this.locationMap.startOffset:this.scanner.tokenStart,this.filename)}return null},error:function error(e,t){var r=void 0!==t&&t";t.needPositions=Boolean(r.positions);t.onParseError="function"==typeof r.onParseError?r.onParseError:g;t.onParseErrorThrow=!1;t.parseAtrulePrelude=!("parseAtrulePrelude"in r)||Boolean(r.parseAtrulePrelude);t.parseRulePrelude=!("parseRulePrelude"in r)||Boolean(r.parseRulePrelude);t.parseValue=!("parseValue"in r)||Boolean(r.parseValue);t.parseCustomProperty="parseCustomProperty"in r&&Boolean(r.parseCustomProperty);if(!t.context.hasOwnProperty(i))throw new Error("Unknown context `"+i+"`");"function"==typeof a&&t.scanner.forEachToken((r,n,i)=>{if(r===w){var o=t.getLocation(n,i),l=h(e,i-2,i,"*/")?e.slice(n+2,i-2):e.slice(n+2,i);a(l,o)}});n=t.context[i].call(t,r);t.scanner.eof||t.error();return n}}},function(e,t,r){var n=r(152),i=r(15).isBOM;var a=function OffsetToLocation(){this.lines=null;this.columns=null;this.linesAndColumnsComputed=!1};a.prototype={setSource:function setSource(e,t,r,n){this.source=e;this.startOffset=void 0===t?0:t;this.startLine=void 0===r?1:r;this.startColumn=void 0===n?1:n;this.linesAndColumnsComputed=!1},ensureLinesAndColumnsComputed:function ensureLinesAndColumnsComputed(){if(!this.linesAndColumnsComputed){!function computeLinesAndColumns(e,t){for(var r=t.length,a=n(e.lines,r),o=e.startLine,l=n(e.columns,r),d=e.startColumn,p=t.length>0?i(t.charCodeAt(0)):0,h=p;h0&&e.column>=0)||t||r||n)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))};SourceMapGenerator.prototype._serializeMappings=function SourceMapGenerator_serializeMappings(){for(var e,t,r,a,o=0,l=1,d=0,p=0,h=0,m=0,g="",f=this._mappings.toArray(),v=0,y=f.length;v0){if(!i.compareByGeneratedPositionsInflated(t,f[v-1]))continue;e+=","}e+=n.encode(t.generatedColumn-o);o=t.generatedColumn;if(null!=t.source){a=this._sources.indexOf(t.source);e+=n.encode(a-m);m=a;e+=n.encode(t.originalLine-1-p);p=t.originalLine-1;e+=n.encode(t.originalColumn-d);d=t.originalColumn;if(null!=t.name){r=this._names.indexOf(t.name);e+=n.encode(r-h);h=r}}g+=e}return g};SourceMapGenerator.prototype._generateSourcesContent=function SourceMapGenerator_generateSourcesContent(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=i.relative(t,e));var r=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)};SourceMapGenerator.prototype.toJSON=function SourceMapGenerator_toJSON(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};null!=this._file&&(e.file=this._file);null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot);this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot));return e};SourceMapGenerator.prototype.toString=function SourceMapGenerator_toString(){return JSON.stringify(this.toJSON())};t.SourceMapGenerator=SourceMapGenerator},function(e,t,r){var n=r(237);t.encode=function base64VLQ_encode(e){var t,r="",i=function toVLQSigned(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&i;i>>>=5;i>0&&(t|=32);r+=n.encode(t)}while(i>0);return r};t.decode=function base64VLQ_decode(e,t,r){var i,a,o=e.length,l=0,d=0;do{if(t>=o)throw new Error("Expected more digits in base 64 VLQ value.");a=n.decode(e.charCodeAt(t++));if(-1===a)throw new Error("Invalid base64 digit: "+e.charAt(t-1));i=!!(32&a);a&=31;l+=a<>1;return t?-r:r}(l);r.rest=t}},function(e,t){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e=0)return t}else{var r=n.toSetString(e);if(i.call(this._set,r))return this._set[r]}throw new Error('"'+e+'" is not in the set.')};ArraySet.prototype.at=function ArraySet_at(e){if(e>=0&&er||i==r&&o>=a||n.compareByGeneratedPositionsInflated(e,t)<=0}(this._last,e)){this._last=e;this._array.push(e)}else{this._sorted=!1;this._array.push(e)}};MappingList.prototype.toArray=function MappingList_toArray(){if(!this._sorted){this._array.sort(n.compareByGeneratedPositionsInflated);this._sorted=!0}return this._array};t.MappingList=MappingList},function(e,t,r){var n=r(97);e.exports=function createConvertors(e){return{fromPlainObject:function fromPlainObject(t){e(t,{enter:function enter(e){e.children&&e.children instanceof n==!1&&(e.children=(new n).fromArray(e.children))}});return t},toPlainObject:function toPlainObject(t){e(t,{leave:function leave(e){e.children&&e.children instanceof n&&(e.children=e.children.toArray())}});return t}}}},function(e,t){var r=Object.prototype.hasOwnProperty,n=function noop(){};function ensureFunction(e){return"function"==typeof e?e:n}function invokeForType(e,t){return function(r,n,i){r.type===t&&e.call(this,r,n,i)}}function getWalkersFromStructure(e,t){var n=t.structure,i=[];for(var a in n)if(!1!==r.call(n,a)){var o=n[a],l={name:a,type:!1,nullable:!1};Array.isArray(n[a])||(o=[n[a]]);for(var d=0;de||walkNode(t,r,n),d=n,m=n,g=i,f={break:o,skip:l,root:e,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if("function"==typeof r)d=r;else if(r){d=ensureFunction(r.enter);m=ensureFunction(r.leave);r.reverse&&(g=a);if(r.visit){if(p.hasOwnProperty(r.visit))g=r.reverse?h[r.visit]:p[r.visit];else if(!t.hasOwnProperty(r.visit))throw new Error("Bad value `"+r.visit+"` for `visit` option (should be: "+Object.keys(t).join(", ")+")");d=invokeForType(d,r.visit);m=invokeForType(m,r.visit)}}if(d===n&&m===n)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");walkNode(e)};m.break=o;m.skip=l;m.find=function(e,t){var r=null;m(e,(function(e,n,i){if(t.call(this,e,n,i)){r=e;return o}}));return r};m.findLast=function(e,t){var r=null;m(e,{reverse:!0,enter:function enter(e,n,i){if(t.call(this,e,n,i)){r=e;return o}}});return r};m.findAll=function(e,t){var r=[];m(e,(function(e,n,i){t.call(this,e,n,i)&&r.push(e)}));return r};return m}},function(e,t,r){var n=r(97);e.exports=function clone(e){var t={};for(var r in e){var i=e[r];i&&(Array.isArray(i)||i instanceof n?i=i.map(clone):i.constructor===Object&&(i=clone(i)));t[r]=i}return t}},function(e,t){var r=Object.prototype.hasOwnProperty,n={generic:!0,types:{},atrules:{},properties:{},parseContext:{},scope:{},atrule:["parse"],pseudo:["parse"],node:["name","structure","parse","generate","walkContext"]};function isObject(e){return e&&e.constructor===Object}function copy(e){return isObject(e)?Object.assign({},e):e}function extend(e,t){for(var n in t)r.call(t,n)&&(isObject(e[n])?extend(e[n],copy(t[n])):e[n]=copy(t[n]))}e.exports=function(e,t){return function mix(e,t,n){for(var i in n)if(!1!==r.call(n,i))if(!0===n[i])i in t&&r.call(t,i)&&(e[i]=copy(t[i]));else if(n[i])if(isObject(n[i])){var a={};extend(a,e[i]);extend(a,t[i]);e[i]=a}else if(Array.isArray(n[i])){a={};var o=n[i].reduce((function(e,t){e[t]=!0;return e}),{});for(var l in e[i])if(r.call(e[i],l)){a[l]={};e[i]&&e[i][l]&&mix(a[l],e[i][l],o)}for(var l in t[i])if(r.call(t[i],l)){a[l]||(a[l]={});t[i]&&t[i][l]&&mix(a[l],t[i][l],o)}e[i]=a}return e}(e,t,n)}},function(e,t,r){var n=r(245);e.exports={generic:!0,types:n.types,atrules:n.atrules,properties:n.properties,node:r(132)}},function(e,t,r){var n=r(246),i=r(247),a=r(248),o=r(249);function buildDictionary(e,t){var r={};for(var n in e)r[n]=e[n].syntax;for(var n in t)n in e?t[n].syntax?r[n]=t[n].syntax:delete r[n]:t[n].syntax&&(r[n]=t[n].syntax);return r}e.exports={types:buildDictionary(a,o.syntaxes),atrules:function preprocessAtrules(e){var t=Object.create(null);for(var r in e){var n=e[r],i=null;if(n.descriptors){i=Object.create(null);for(var a in n.descriptors)i[a]=n.descriptors[a].syntax}t[r.substr(1)]={prelude:n.syntax.trim().match(/^@\S+\s+([^;\{]*)/)[1].trim()||null,descriptors:i}}return t}(n),properties:buildDictionary(i,o.properties)}},function(e){e.exports=JSON.parse('{"@charset":{"syntax":"@charset \\"\\";","groups":["CSS Charsets"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@charset"},"@counter-style":{"syntax":"@counter-style {\\n [ system: ; ] ||\\n [ symbols: ; ] ||\\n [ additive-symbols: ; ] ||\\n [ negative: ; ] ||\\n [ prefix: ; ] ||\\n [ suffix: ; ] ||\\n [ range: ; ] ||\\n [ pad: ; ] ||\\n [ speak-as: ; ] ||\\n [ fallback: ; ]\\n}","interfaces":["CSSCounterStyleRule"],"groups":["CSS Counter Styles"],"descriptors":{"additive-symbols":{"syntax":"[ && ]#","media":"all","initial":"N/A","percentages":"no","computed":"asSpecified","order":"orderOfAppearance","status":"standard"},"fallback":{"syntax":"","media":"all","initial":"decimal","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"negative":{"syntax":" ?","media":"all","initial":"\\"-\\" hyphen-minus","percentages":"no","computed":"asSpecified","order":"orderOfAppearance","status":"standard"},"pad":{"syntax":" && ","media":"all","initial":"0 \\"\\"","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"prefix":{"syntax":"","media":"all","initial":"\\"\\"","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"range":{"syntax":"[ [ | infinite ]{2} ]# | auto","media":"all","initial":"auto","percentages":"no","computed":"asSpecified","order":"orderOfAppearance","status":"standard"},"speak-as":{"syntax":"auto | bullets | numbers | words | spell-out | ","media":"all","initial":"auto","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"suffix":{"syntax":"","media":"all","initial":"\\". \\"","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"symbols":{"syntax":"+","media":"all","initial":"N/A","percentages":"no","computed":"asSpecified","order":"orderOfAppearance","status":"standard"},"system":{"syntax":"cyclic | numeric | alphabetic | symbolic | additive | [ fixed ? ] | [ extends ]","media":"all","initial":"symbolic","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"}},"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@counter-style"},"@document":{"syntax":"@document [ | url-prefix() | domain() | media-document() | regexp() ]# {\\n \\n}","interfaces":["CSSGroupingRule","CSSConditionRule"],"groups":["CSS Conditional Rules"],"status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@document"},"@font-face":{"syntax":"@font-face {\\n [ font-family: ; ] ||\\n [ src: ; ] ||\\n [ unicode-range: ; ] ||\\n [ font-variant: ; ] ||\\n [ font-feature-settings: ; ] ||\\n [ font-variation-settings: ; ] ||\\n [ font-stretch: ; ] ||\\n [ font-weight: ; ] ||\\n [ font-style: ; ]\\n}","interfaces":["CSSFontFaceRule"],"groups":["CSS Fonts"],"descriptors":{"font-display":{"syntax":"[ auto | block | swap | fallback | optional ]","media":"visual","percentages":"no","initial":"auto","computed":"asSpecified","order":"uniqueOrder","status":"experimental"},"font-family":{"syntax":"","media":"all","initial":"n/a (required)","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"font-feature-settings":{"syntax":"normal | #","media":"all","initial":"normal","percentages":"no","computed":"asSpecified","order":"orderOfAppearance","status":"standard"},"font-variation-settings":{"syntax":"normal | [ ]#","media":"all","initial":"normal","percentages":"no","computed":"asSpecified","order":"orderOfAppearance","status":"standard"},"font-stretch":{"syntax":"{1,2}","media":"all","initial":"normal","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"font-style":{"syntax":"normal | italic | oblique {0,2}","media":"all","initial":"normal","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"font-weight":{"syntax":"{1,2}","media":"all","initial":"normal","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"font-variant":{"syntax":"normal | none | [ || || || || stylistic() || historical-forms || styleset(#) || character-variant(#) || swash() || ornaments() || annotation() || [ small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps ] || || || || ordinal || slashed-zero || || || ruby ]","media":"all","initial":"normal","percentages":"no","computed":"asSpecified","order":"orderOfAppearance","status":"standard"},"src":{"syntax":"[ [ format( # ) ]? | local( ) ]#","media":"all","initial":"n/a (required)","percentages":"no","computed":"asSpecified","order":"orderOfAppearance","status":"standard"},"unicode-range":{"syntax":"#","media":"all","initial":"U+0-10FFFF","percentages":"no","computed":"asSpecified","order":"orderOfAppearance","status":"standard"}},"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@font-face"},"@font-feature-values":{"syntax":"@font-feature-values # {\\n \\n}","interfaces":["CSSFontFeatureValuesRule"],"groups":["CSS Fonts"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@font-feature-values"},"@import":{"syntax":"@import [ | ] [ ]?;","groups":["Media Queries"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@import"},"@keyframes":{"syntax":"@keyframes {\\n \\n}","interfaces":["CSSKeyframeRule","CSSKeyframesRule"],"groups":["CSS Animations"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@keyframes"},"@media":{"syntax":"@media {\\n \\n}","interfaces":["CSSGroupingRule","CSSConditionRule","CSSMediaRule","CSSCustomMediaRule"],"groups":["CSS Conditional Rules","Media Queries"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@media"},"@namespace":{"syntax":"@namespace ? [ | ];","groups":["CSS Namespaces"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@namespace"},"@page":{"syntax":"@page {\\n \\n}","interfaces":["CSSPageRule"],"groups":["CSS Pages"],"descriptors":{"bleed":{"syntax":"auto | ","media":["visual","paged"],"initial":"auto","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"marks":{"syntax":"none | [ crop || cross ]","media":["visual","paged"],"initial":"none","percentages":"no","computed":"asSpecified","order":"orderOfAppearance","status":"standard"},"size":{"syntax":"{1,2} | auto | [ || [ portrait | landscape ] ]","media":["visual","paged"],"initial":"auto","percentages":"no","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"orderOfAppearance","status":"standard"}},"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@page"},"@supports":{"syntax":"@supports {\\n \\n}","interfaces":["CSSGroupingRule","CSSConditionRule","CSSSupportsRule"],"groups":["CSS Conditional Rules"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@supports"},"@viewport":{"syntax":"@viewport {\\n \\n}","interfaces":["CSSViewportRule"],"groups":["CSS Device Adaptation"],"descriptors":{"height":{"syntax":"{1,2}","media":["visual","continuous"],"initial":["min-height","max-height"],"percentages":["min-height","max-height"],"computed":["min-height","max-height"],"order":"orderOfAppearance","status":"standard"},"max-height":{"syntax":"","media":["visual","continuous"],"initial":"auto","percentages":"referToHeightOfInitialViewport","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard"},"max-width":{"syntax":"","media":["visual","continuous"],"initial":"auto","percentages":"referToWidthOfInitialViewport","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard"},"max-zoom":{"syntax":"auto | | ","media":["visual","continuous"],"initial":"auto","percentages":"the zoom factor itself","computed":"autoNonNegativeOrPercentage","order":"uniqueOrder","status":"standard"},"min-height":{"syntax":"","media":["visual","continuous"],"initial":"auto","percentages":"referToHeightOfInitialViewport","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard"},"min-width":{"syntax":"","media":["visual","continuous"],"initial":"auto","percentages":"referToWidthOfInitialViewport","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard"},"min-zoom":{"syntax":"auto | | ","media":["visual","continuous"],"initial":"auto","percentages":"the zoom factor itself","computed":"autoNonNegativeOrPercentage","order":"uniqueOrder","status":"standard"},"orientation":{"syntax":"auto | portrait | landscape","media":["visual","continuous"],"initial":"auto","percentages":"referToSizeOfBoundingBox","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"user-zoom":{"syntax":"zoom | fixed","media":["visual","continuous"],"initial":"zoom","percentages":"referToSizeOfBoundingBox","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"viewport-fit":{"syntax":"auto | contain | cover","media":["visual","continuous"],"initial":"auto","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"width":{"syntax":"{1,2}","media":["visual","continuous"],"initial":["min-width","max-width"],"percentages":["min-width","max-width"],"computed":["min-width","max-width"],"order":"orderOfAppearance","status":"standard"},"zoom":{"syntax":"auto | | ","media":["visual","continuous"],"initial":"auto","percentages":"the zoom factor itself","computed":"autoNonNegativeOrPercentage","order":"uniqueOrder","status":"standard"}},"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@viewport"}}')},function(e){e.exports=JSON.parse('{"--*":{"syntax":"","media":"all","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Variables"],"initial":"seeProse","appliesto":"allElements","computed":"asSpecifiedWithVarsSubstituted","order":"perGrammar","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/--*"},"-ms-accelerator":{"syntax":"false | true","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"false","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-accelerator"},"-ms-block-progression":{"syntax":"tb | rl | bt | lr","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"tb","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-block-progression"},"-ms-content-zoom-chaining":{"syntax":"none | chained","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"none","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-chaining"},"-ms-content-zooming":{"syntax":"none | zoom","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"zoomForTheTopLevelNoneForTheRest","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zooming"},"-ms-content-zoom-limit":{"syntax":"<\'-ms-content-zoom-limit-min\'> <\'-ms-content-zoom-limit-max\'>","media":"interactive","inherited":false,"animationType":"discrete","percentages":["-ms-content-zoom-limit-max","-ms-content-zoom-limit-min"],"groups":["Microsoft Extensions"],"initial":["-ms-content-zoom-limit-max","-ms-content-zoom-limit-min"],"appliesto":"nonReplacedBlockAndInlineBlockElements","computed":["-ms-content-zoom-limit-max","-ms-content-zoom-limit-min"],"order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-limit"},"-ms-content-zoom-limit-max":{"syntax":"","media":"interactive","inherited":false,"animationType":"discrete","percentages":"maxZoomFactor","groups":["Microsoft Extensions"],"initial":"400%","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-limit-max"},"-ms-content-zoom-limit-min":{"syntax":"","media":"interactive","inherited":false,"animationType":"discrete","percentages":"minZoomFactor","groups":["Microsoft Extensions"],"initial":"100%","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-limit-min"},"-ms-content-zoom-snap":{"syntax":"<\'-ms-content-zoom-snap-type\'> || <\'-ms-content-zoom-snap-points\'>","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":["-ms-content-zoom-snap-type","-ms-content-zoom-snap-points"],"appliesto":"nonReplacedBlockAndInlineBlockElements","computed":["-ms-content-zoom-snap-type","-ms-content-zoom-snap-points"],"order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-snap"},"-ms-content-zoom-snap-points":{"syntax":"snapInterval( , ) | snapList( # )","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"snapInterval(0%, 100%)","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-snap-points"},"-ms-content-zoom-snap-type":{"syntax":"none | proximity | mandatory","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"none","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-snap-type"},"-ms-filter":{"syntax":"","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"\\"\\"","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-filter"},"-ms-flow-from":{"syntax":"[ none | ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"none","appliesto":"nonReplacedElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-flow-from"},"-ms-flow-into":{"syntax":"[ none | ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"none","appliesto":"iframeElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-flow-into"},"-ms-grid-columns":{"syntax":"none | | ","media":"visual","inherited":false,"animationType":"simpleListOfLpcDifferenceLpc","percentages":"referToDimensionOfContentArea","groups":["CSS Grid Layout"],"initial":"none","appliesto":"gridContainers","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-grid-columns"},"-ms-grid-rows":{"syntax":"none | | ","media":"visual","inherited":false,"animationType":"simpleListOfLpcDifferenceLpc","percentages":"referToDimensionOfContentArea","groups":["CSS Grid Layout"],"initial":"none","appliesto":"gridContainers","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-grid-rows"},"-ms-high-contrast-adjust":{"syntax":"auto | none","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-high-contrast-adjust"},"-ms-hyphenate-limit-chars":{"syntax":"auto | {1,3}","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-hyphenate-limit-chars"},"-ms-hyphenate-limit-lines":{"syntax":"no-limit | ","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"no-limit","appliesto":"blockContainerElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-hyphenate-limit-lines"},"-ms-hyphenate-limit-zone":{"syntax":" | ","media":"visual","inherited":true,"animationType":"discrete","percentages":"referToLineBoxWidth","groups":["Microsoft Extensions"],"initial":"0","appliesto":"blockContainerElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-hyphenate-limit-zone"},"-ms-ime-align":{"syntax":"auto | after","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-ime-align"},"-ms-overflow-style":{"syntax":"auto | none | scrollbar | -ms-autohiding-scrollbar","media":"interactive","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"auto","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-overflow-style"},"-ms-scrollbar-3dlight-color":{"syntax":"","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"dependsOnUserAgent","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-3dlight-color"},"-ms-scrollbar-arrow-color":{"syntax":"","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"ButtonText","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-arrow-color"},"-ms-scrollbar-base-color":{"syntax":"","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"dependsOnUserAgent","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-base-color"},"-ms-scrollbar-darkshadow-color":{"syntax":"","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"ThreeDDarkShadow","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-darkshadow-color"},"-ms-scrollbar-face-color":{"syntax":"","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"ThreeDFace","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-face-color"},"-ms-scrollbar-highlight-color":{"syntax":"","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"ThreeDHighlight","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-highlight-color"},"-ms-scrollbar-shadow-color":{"syntax":"","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"ThreeDDarkShadow","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-shadow-color"},"-ms-scrollbar-track-color":{"syntax":"","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"Scrollbar","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-track-color"},"-ms-scroll-chaining":{"syntax":"chained | none","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"chained","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-chaining"},"-ms-scroll-limit":{"syntax":"<\'-ms-scroll-limit-x-min\'> <\'-ms-scroll-limit-y-min\'> <\'-ms-scroll-limit-x-max\'> <\'-ms-scroll-limit-y-max\'>","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":["-ms-scroll-limit-x-min","-ms-scroll-limit-y-min","-ms-scroll-limit-x-max","-ms-scroll-limit-y-max"],"appliesto":"nonReplacedBlockAndInlineBlockElements","computed":["-ms-scroll-limit-x-min","-ms-scroll-limit-y-min","-ms-scroll-limit-x-max","-ms-scroll-limit-y-max"],"order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-limit"},"-ms-scroll-limit-x-max":{"syntax":"auto | ","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"auto","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-limit-x-max"},"-ms-scroll-limit-x-min":{"syntax":"","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"0","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-limit-x-min"},"-ms-scroll-limit-y-max":{"syntax":"auto | ","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"auto","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-limit-y-max"},"-ms-scroll-limit-y-min":{"syntax":"","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"0","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-limit-y-min"},"-ms-scroll-rails":{"syntax":"none | railed","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"railed","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-rails"},"-ms-scroll-snap-points-x":{"syntax":"snapInterval( , ) | snapList( # )","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"snapInterval(0px, 100%)","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-snap-points-x"},"-ms-scroll-snap-points-y":{"syntax":"snapInterval( , ) | snapList( # )","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"snapInterval(0px, 100%)","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-snap-points-y"},"-ms-scroll-snap-type":{"syntax":"none | proximity | mandatory","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"none","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-snap-type"},"-ms-scroll-snap-x":{"syntax":"<\'-ms-scroll-snap-type\'> <\'-ms-scroll-snap-points-x\'>","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":["-ms-scroll-snap-type","-ms-scroll-snap-points-x"],"appliesto":"nonReplacedBlockAndInlineBlockElements","computed":["-ms-scroll-snap-type","-ms-scroll-snap-points-x"],"order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-snap-x"},"-ms-scroll-snap-y":{"syntax":"<\'-ms-scroll-snap-type\'> <\'-ms-scroll-snap-points-y\'>","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":["-ms-scroll-snap-type","-ms-scroll-snap-points-y"],"appliesto":"nonReplacedBlockAndInlineBlockElements","computed":["-ms-scroll-snap-type","-ms-scroll-snap-points-y"],"order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-snap-y"},"-ms-scroll-translation":{"syntax":"none | vertical-to-horizontal","media":"interactive","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-translation"},"-ms-text-autospace":{"syntax":"none | ideograph-alpha | ideograph-numeric | ideograph-parenthesis | ideograph-space","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-text-autospace"},"-ms-touch-select":{"syntax":"grippers | none","media":"interactive","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"grippers","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-touch-select"},"-ms-user-select":{"syntax":"none | element | text","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"text","appliesto":"nonReplacedElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-user-select"},"-ms-wrap-flow":{"syntax":"auto | both | start | end | maximum | clear","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"auto","appliesto":"blockLevelElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-wrap-flow"},"-ms-wrap-margin":{"syntax":"","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"0","appliesto":"exclusionElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-wrap-margin"},"-ms-wrap-through":{"syntax":"wrap | none","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"wrap","appliesto":"blockLevelElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-wrap-through"},"-moz-appearance":{"syntax":"none | button | button-arrow-down | button-arrow-next | button-arrow-previous | button-arrow-up | button-bevel | button-focus | caret | checkbox | checkbox-container | checkbox-label | checkmenuitem | dualbutton | groupbox | listbox | listitem | menuarrow | menubar | menucheckbox | menuimage | menuitem | menuitemtext | menulist | menulist-button | menulist-text | menulist-textfield | menupopup | menuradio | menuseparator | meterbar | meterchunk | progressbar | progressbar-vertical | progresschunk | progresschunk-vertical | radio | radio-container | radio-label | radiomenuitem | range | range-thumb | resizer | resizerpanel | scale-horizontal | scalethumbend | scalethumb-horizontal | scalethumbstart | scalethumbtick | scalethumb-vertical | scale-vertical | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical | searchfield | separator | sheet | spinner | spinner-downbutton | spinner-textfield | spinner-upbutton | splitter | statusbar | statusbarpanel | tab | tabpanel | tabpanels | tab-scroll-arrow-back | tab-scroll-arrow-forward | textfield | textfield-multiline | toolbar | toolbarbutton | toolbarbutton-dropdown | toolbargripper | toolbox | tooltip | treeheader | treeheadercell | treeheadersortarrow | treeitem | treeline | treetwisty | treetwistyopen | treeview | -moz-mac-unified-toolbar | -moz-win-borderless-glass | -moz-win-browsertabbar-toolbox | -moz-win-communicationstext | -moz-win-communications-toolbox | -moz-win-exclude-glass | -moz-win-glass | -moz-win-mediatext | -moz-win-media-toolbox | -moz-window-button-box | -moz-window-button-box-maximized | -moz-window-button-close | -moz-window-button-maximize | -moz-window-button-minimize | -moz-window-button-restore | -moz-window-frame-bottom | -moz-window-frame-left | -moz-window-frame-right | -moz-window-titlebar | -moz-window-titlebar-maximized","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions","WebKit Extensions"],"initial":"noneButOverriddenInUserAgentCSS","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/appearance"},"-moz-binding":{"syntax":" | none","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"none","appliesto":"allElementsExceptGeneratedContentOrPseudoElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-binding"},"-moz-border-bottom-colors":{"syntax":"+ | none","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-border-bottom-colors"},"-moz-border-left-colors":{"syntax":"+ | none","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-border-left-colors"},"-moz-border-right-colors":{"syntax":"+ | none","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-border-right-colors"},"-moz-border-top-colors":{"syntax":"+ | none","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-border-top-colors"},"-moz-context-properties":{"syntax":"none | [ fill | fill-opacity | stroke | stroke-opacity ]#","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"none","appliesto":"allElementsThatCanReferenceImages","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-context-properties"},"-moz-float-edge":{"syntax":"border-box | content-box | margin-box | padding-box","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"content-box","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-float-edge"},"-moz-force-broken-image-icon":{"syntax":"","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"0","appliesto":"images","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-force-broken-image-icon"},"-moz-image-region":{"syntax":" | auto","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"auto","appliesto":"xulImageElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-image-region"},"-moz-orient":{"syntax":"inline | block | horizontal | vertical","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"inline","appliesto":"anyElementEffectOnProgressAndMeter","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-orient"},"-moz-outline-radius":{"syntax":"{1,4} [ / {1,4} ]?","media":"visual","inherited":false,"animationType":["-moz-outline-radius-topleft","-moz-outline-radius-topright","-moz-outline-radius-bottomright","-moz-outline-radius-bottomleft"],"percentages":["-moz-outline-radius-topleft","-moz-outline-radius-topright","-moz-outline-radius-bottomright","-moz-outline-radius-bottomleft"],"groups":["Mozilla Extensions"],"initial":["-moz-outline-radius-topleft","-moz-outline-radius-topright","-moz-outline-radius-bottomright","-moz-outline-radius-bottomleft"],"appliesto":"allElements","computed":["-moz-outline-radius-topleft","-moz-outline-radius-topright","-moz-outline-radius-bottomright","-moz-outline-radius-bottomleft"],"order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius"},"-moz-outline-radius-bottomleft":{"syntax":"","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfBorderBox","groups":["Mozilla Extensions"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius-bottomleft"},"-moz-outline-radius-bottomright":{"syntax":"","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfBorderBox","groups":["Mozilla Extensions"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius-bottomright"},"-moz-outline-radius-topleft":{"syntax":"","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfBorderBox","groups":["Mozilla Extensions"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius-topleft"},"-moz-outline-radius-topright":{"syntax":"","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfBorderBox","groups":["Mozilla Extensions"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius-topright"},"-moz-stack-sizing":{"syntax":"ignore | stretch-to-fit","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"stretch-to-fit","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-stack-sizing"},"-moz-text-blink":{"syntax":"none | blink","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-text-blink"},"-moz-user-focus":{"syntax":"ignore | normal | select-after | select-before | select-menu | select-same | select-all | none","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-user-focus"},"-moz-user-input":{"syntax":"auto | none | enabled | disabled","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-user-input"},"-moz-user-modify":{"syntax":"read-only | read-write | write-only","media":"interactive","inherited":true,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"read-only","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-user-modify"},"-moz-window-dragging":{"syntax":"drag | no-drag","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"drag","appliesto":"allElementsCreatingNativeWindows","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-window-dragging"},"-moz-window-shadow":{"syntax":"default | menu | tooltip | sheet | none","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"default","appliesto":"allElementsCreatingNativeWindows","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-window-shadow"},"-webkit-appearance":{"syntax":"none | button | button-bevel | caret | checkbox | default-button | inner-spin-button | listbox | listitem | media-controls-background | media-controls-fullscreen-background | media-current-time-display | media-enter-fullscreen-button | media-exit-fullscreen-button | media-fullscreen-button | media-mute-button | media-overlay-play-button | media-play-button | media-seek-back-button | media-seek-forward-button | media-slider | media-sliderthumb | media-time-remaining-display | media-toggle-closed-captions-button | media-volume-slider | media-volume-slider-container | media-volume-sliderthumb | menulist | menulist-button | menulist-text | menulist-textfield | meter | progress-bar | progress-bar-value | push-button | radio | searchfield | searchfield-cancel-button | searchfield-decoration | searchfield-results-button | searchfield-results-decoration | slider-horizontal | slider-vertical | sliderthumb-horizontal | sliderthumb-vertical | square-button | textarea | textfield | -apple-pay-button","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"noneButOverriddenInUserAgentCSS","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/appearance"},"-webkit-border-before":{"syntax":"<\'border-width\'> || <\'border-style\'> || <\'color\'>","media":"visual","inherited":true,"animationType":"discrete","percentages":["-webkit-border-before-width"],"groups":["WebKit Extensions"],"initial":["border-width","border-style","color"],"appliesto":"allElements","computed":["border-width","border-style","color"],"order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-border-before"},"-webkit-border-before-color":{"syntax":"<\'color\'>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","status":"nonstandard"},"-webkit-border-before-style":{"syntax":"<\'border-style\'>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard"},"-webkit-border-before-width":{"syntax":"<\'border-width\'>","media":"visual","inherited":true,"animationType":"discrete","percentages":"logicalWidthOfContainingBlock","groups":["WebKit Extensions"],"initial":"medium","appliesto":"allElements","computed":"absoluteLengthZeroIfBorderStyleNoneOrHidden","order":"uniqueOrder","status":"nonstandard"},"-webkit-box-reflect":{"syntax":"[ above | below | right | left ]? ? ?","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-box-reflect"},"-webkit-line-clamp":{"syntax":"none | ","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"no","groups":["WebKit Extensions","CSS Overflow"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp"},"-webkit-mask":{"syntax":"[ || [ / ]? || || [ | border | padding | content | text ] || [ | border | padding | content ] ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":["-webkit-mask-image","-webkit-mask-repeat","-webkit-mask-attachment","-webkit-mask-position","-webkit-mask-origin","-webkit-mask-clip"],"appliesto":"allElements","computed":["-webkit-mask-image","-webkit-mask-repeat","-webkit-mask-attachment","-webkit-mask-position","-webkit-mask-origin","-webkit-mask-clip"],"order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask"},"-webkit-mask-attachment":{"syntax":"#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"scroll","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-attachment"},"-webkit-mask-clip":{"syntax":"[ | border | padding | content | text ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"border","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-clip"},"-webkit-mask-composite":{"syntax":"#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"source-over","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-composite"},"-webkit-mask-image":{"syntax":"#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"none","appliesto":"allElements","computed":"absoluteURIOrNone","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-image"},"-webkit-mask-origin":{"syntax":"[ | border | padding | content ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"padding","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-origin"},"-webkit-mask-position":{"syntax":"#","media":"visual","inherited":false,"animationType":"discrete","percentages":"referToSizeOfElement","groups":["WebKit Extensions"],"initial":"0% 0%","appliesto":"allElements","computed":"absoluteLengthOrPercentage","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-position"},"-webkit-mask-position-x":{"syntax":"[ | left | center | right ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"referToSizeOfElement","groups":["WebKit Extensions"],"initial":"0%","appliesto":"allElements","computed":"absoluteLengthOrPercentage","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-position-x"},"-webkit-mask-position-y":{"syntax":"[ | top | center | bottom ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"referToSizeOfElement","groups":["WebKit Extensions"],"initial":"0%","appliesto":"allElements","computed":"absoluteLengthOrPercentage","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-position-y"},"-webkit-mask-repeat":{"syntax":"#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"repeat","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-repeat"},"-webkit-mask-repeat-x":{"syntax":"repeat | no-repeat | space | round","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"repeat","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-repeat-x"},"-webkit-mask-repeat-y":{"syntax":"repeat | no-repeat | space | round","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"repeat","appliesto":"allElements","computed":"absoluteLengthOrPercentage","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-repeat-y"},"-webkit-mask-size":{"syntax":"#","media":"visual","inherited":false,"animationType":"discrete","percentages":"relativeToBackgroundPositioningArea","groups":["WebKit Extensions"],"initial":"auto auto","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-size"},"-webkit-overflow-scrolling":{"syntax":"auto | touch","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"auto","appliesto":"scrollingBoxes","computed":"asSpecified","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-overflow-scrolling"},"-webkit-tap-highlight-color":{"syntax":"","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"black","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-tap-highlight-color"},"-webkit-text-fill-color":{"syntax":"","media":"visual","inherited":true,"animationType":"color","percentages":"no","groups":["WebKit Extensions"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-fill-color"},"-webkit-text-stroke":{"syntax":" || ","media":"visual","inherited":true,"animationType":["-webkit-text-stroke-width","-webkit-text-stroke-color"],"percentages":"no","groups":["WebKit Extensions"],"initial":["-webkit-text-stroke-width","-webkit-text-stroke-color"],"appliesto":"allElements","computed":["-webkit-text-stroke-width","-webkit-text-stroke-color"],"order":"canonicalOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke"},"-webkit-text-stroke-color":{"syntax":"","media":"visual","inherited":true,"animationType":"color","percentages":"no","groups":["WebKit Extensions"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-color"},"-webkit-text-stroke-width":{"syntax":"","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"0","appliesto":"allElements","computed":"absoluteLength","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-width"},"-webkit-touch-callout":{"syntax":"default | none","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"default","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-touch-callout"},"-webkit-user-modify":{"syntax":"read-only | read-write | read-write-plaintext-only","media":"interactive","inherited":true,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"read-only","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard"},"align-content":{"syntax":"normal | | | ? ","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Alignment"],"initial":"normal","appliesto":"multilineFlexContainers","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/align-content"},"align-items":{"syntax":"normal | stretch | | [ ? ]","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Alignment"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/align-items"},"align-self":{"syntax":"auto | normal | stretch | | ? ","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Alignment"],"initial":"auto","appliesto":"flexItemsGridItemsAndAbsolutelyPositionedBoxes","computed":"autoOnAbsolutelyPositionedElementsValueOfAlignItemsOnParent","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/align-self"},"all":{"syntax":"initial | inherit | unset | revert","media":"noPracticalMedia","inherited":false,"animationType":"eachOfShorthandPropertiesExceptUnicodeBiDiAndDirection","percentages":"no","groups":["CSS Miscellaneous"],"initial":"noPracticalInitialValue","appliesto":"allElements","computed":"asSpecifiedAppliesToEachProperty","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/all"},"animation":{"syntax":"#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Animations"],"initial":["animation-name","animation-duration","animation-timing-function","animation-delay","animation-iteration-count","animation-direction","animation-fill-mode","animation-play-state"],"appliesto":"allElementsAndPseudos","computed":["animation-name","animation-duration","animation-timing-function","animation-delay","animation-direction","animation-iteration-count","animation-fill-mode","animation-play-state"],"order":"orderOfAppearance","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/animation"},"animation-delay":{"syntax":"