hexsha
stringlengths
40
40
size
int64
5
1.05M
ext
stringclasses
98 values
lang
stringclasses
21 values
max_stars_repo_path
stringlengths
3
945
max_stars_repo_name
stringlengths
4
118
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
945
max_issues_repo_name
stringlengths
4
118
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
134k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
945
max_forks_repo_name
stringlengths
4
135
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
1.05M
avg_line_length
float64
1
1.03M
max_line_length
int64
2
1.03M
alphanum_fraction
float64
0
1
64301530fb3548945676f4826907791b9acbec5c
150
rs
Rust
src/test/ui/parser/issue-14303-impl.rs
martell/rust
68fe5182c967259ef89dbe313e4bf80f45a53e7e
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2019-04-06T13:56:42.000Z
2019-04-06T13:56:42.000Z
src/test/ui/parser/issue-14303-impl.rs
martell/rust
68fe5182c967259ef89dbe313e4bf80f45a53e7e
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
src/test/ui/parser/issue-14303-impl.rs
martell/rust
68fe5182c967259ef89dbe313e4bf80f45a53e7e
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
// compile-flags: -Z parse-only struct X { x: isize } impl<'a, T, 'b> X {} //~^ ERROR lifetime parameters must be declared prior to type parameters
21.428571
72
0.673333
7a175f7a9107eaff64407d6b1a87fb40d93989e6
487
asm
Assembly
oeis/054/A054014.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/054/A054014.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/054/A054014.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A054014: Chowla function of n read modulo (the number of divisors of n). ; Submitted by Jamie Morken(s2) ; 0,0,0,2,0,1,0,2,0,3,0,3,0,1,0,4,0,2,0,3,2,1,0,3,2,3,0,3,0,1,0,0,2,3,0,0,0,1,0,1,0,5,0,3,2,1,0,5,1,0,0,3,0,1,0,7,2,3,0,11,0,1,4,6,2,5,0,3,2,1,0,2,0,3,0,3,2,1,0,5,4,3,0,7,2,1,0,3,0,11,0,3,2,1,0,11,0,0,2,8 add $0,1 mov $2,$0 mov $4,1 lpb $0 mov $3,$2 dif $3,$0 cmp $3,$2 sub $1,$3 cmp $3,0 add $4,$3 mul $3,$0 sub $0,1 add $1,$3 lpe add $1,1 mod $1,$4 mov $0,$1
22.136364
204
0.544148
615daabdd06c5ad96ededfe68d7db930b3fd6a04
110
sql
SQL
sql/V46__Correcao_Datas.sql
ualisonaguiar/ordem-servico-datainfo
e3245f7c5fca2989ebded0beac5522d6427b4243
[ "BSD-3-Clause" ]
null
null
null
sql/V46__Correcao_Datas.sql
ualisonaguiar/ordem-servico-datainfo
e3245f7c5fca2989ebded0beac5522d6427b4243
[ "BSD-3-Clause" ]
null
null
null
sql/V46__Correcao_Datas.sql
ualisonaguiar/ordem-servico-datainfo
e3245f7c5fca2989ebded0beac5522d6427b4243
[ "BSD-3-Clause" ]
null
null
null
update tb_demanda set dt_abertura = strftime('%Y-%m-%d', dt_alteracao) where id_demanda in (2314, 2312, 2313);
110
110
0.745455
358f4676660d78d05dfb55c98eaac211b408e26f
126
sql
SQL
threepress/clear.sql
srilatha44/threepress
263b8aee8353806bd860bc22daf019e2155b8d0f
[ "BSD-3-Clause" ]
2
2020-05-03T16:54:33.000Z
2021-11-24T21:05:05.000Z
threepress/clear.sql
srilatha44/threepress
263b8aee8353806bd860bc22daf019e2155b8d0f
[ "BSD-3-Clause" ]
1
2022-02-12T09:20:29.000Z
2022-02-12T09:20:29.000Z
threepress/clear.sql
srilatha44/threepress
263b8aee8353806bd860bc22daf019e2155b8d0f
[ "BSD-3-Clause" ]
1
2022-02-12T09:02:02.000Z
2022-02-12T09:02:02.000Z
BEGIN; DROP TABLE `search_page`; DROP TABLE `search_chapter`; DROP TABLE `search_part`; DROP TABLE `search_document`; COMMIT;
18
29
0.777778
bf1dbee656a4794e932accd3e24ac1d9bf4307e8
1,327
sql
SQL
3. Joins/joins_intro.sql
kip-codes/sql-sandbox
bf451b9835a2682cbaa40da1503aeb836ea61ecc
[ "MIT" ]
null
null
null
3. Joins/joins_intro.sql
kip-codes/sql-sandbox
bf451b9835a2682cbaa40da1503aeb836ea61ecc
[ "MIT" ]
null
null
null
3. Joins/joins_intro.sql
kip-codes/sql-sandbox
bf451b9835a2682cbaa40da1503aeb836ea61ecc
[ "MIT" ]
null
null
null
USE TSQL2012; -- Introducing CROSS JOINS SELECT c.custid, e.empid FROM Sales.Customers AS c -- Renaming to something shorter CROSS JOIN HR.Employees AS e -- This will perform a Cartesian Product, taking every entry in c and joining it to every row in e. -- SELF CROSS JOINS: joining a table with itself to compare its contents SELECT e1.empid, e1.firstname, e1.lastname , e2.empid, e2.firstname, e2.lastname FROM HR.Employees AS e1 CROSS JOIN HR.Employees AS e2 USE TSQL2012; IF OBJECT_ID('dbo.Digits', 'U') IS NOT NULL DROP TABLE dbo.Digits; CREATE TABLE dbo.Digits( digit INT NOT NULL PRIMARY KEY ); INSERT INTO dbo.Digits(digit) VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9); SELECT * FROM dbo.Digits -- Sequence of integers in range 1 through 1,000 SELECT (d3.digit * 100 + d2.digit * 10 + d1.digit + 1) AS n FROM dbo.Digits AS d1 CROSS JOIN dbo.Digits AS d2 CROSS JOIN dbo.Digits AS d3 ORDER BY n; -- INNER JOINS SELECT e.empid, e.firstname, e.lastname, o.orderid FROM HR.Employees AS e JOIN Sales.Orders AS o ON e.empid = o.empid -- COMPOSITE JOINS SELECT c.custid, o.orderid, od.productid, od.qty FROM Sales.Customers AS c LEFT OUTER JOIN Sales.Orders AS o ON c.custid = o.custid LEFT OUTER JOIN Sales.OrderDetails AS od ON o.orderid = od.orderid ORDER BY o.orderid
23.696429
99
0.712886
e5e53b9f54c4872d957efdcc2a7112e016711ef3
1,558
swift
Swift
Example/SYGIFView/ViewController.swift
yxf0103/SYGIFView
47db03d6a8e1009fca0ccc33203b6a00e62a5788
[ "MIT" ]
1
2022-01-25T02:53:55.000Z
2022-01-25T02:53:55.000Z
Example/SYGIFView/ViewController.swift
yxf0103/SYGIFView
47db03d6a8e1009fca0ccc33203b6a00e62a5788
[ "MIT" ]
null
null
null
Example/SYGIFView/ViewController.swift
yxf0103/SYGIFView
47db03d6a8e1009fca0ccc33203b6a00e62a5788
[ "MIT" ]
null
null
null
// // ViewController.swift // SYGIFView // // Created by yxfeng0103@hotmail.com on 01/15/2022. // Copyright (c) 2022 yxfeng0103@hotmail.com. All rights reserved. // import UIKit import SYGIFView class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() view.backgroundColor = UIColor.red let imgView = UIImageView.init(frame: CGRect.init(x: 100, y: 100, width: 200, height: 160)) view.addSubview(imgView) imgView.backgroundColor = UIColor.white let path = Bundle.main.path(forResource: "demo.gif", ofType: nil) imgView.sy_startGifAnimation(imgpath: path,autoRepeat: true) let webimgView = UIImageView.init(frame: CGRect.init(x: 100, y: 300, width: 200, height: 160)) view.addSubview(webimgView) webimgView.backgroundColor = UIColor.white webimgView.sy_startGifAnimation(url: "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.zcool.cn%2Fcommunity%2F018d4d56e10ebc32f875520f5e890e.gif&refer=http%3A%2F%2Fimg.zcool.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1645175434&t=1c58627c81de607308af33727a2f60bc", autoRepeat: true) // imgView.sy_endGifAnimation() let ocImgView = OCDemo.showImgOnview(self.view) } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } }
35.409091
308
0.652118
40edb24710c1e1f4deb8dd75209fd71967788c07
3,044
kt
Kotlin
app/src/main/java/com/example/flashcards/PaintView.kt
kQtran95/Flashcards
c58bea767659d78f02b97b342e48e0140a8db214
[ "Apache-2.0" ]
null
null
null
app/src/main/java/com/example/flashcards/PaintView.kt
kQtran95/Flashcards
c58bea767659d78f02b97b342e48e0140a8db214
[ "Apache-2.0" ]
null
null
null
app/src/main/java/com/example/flashcards/PaintView.kt
kQtran95/Flashcards
c58bea767659d78f02b97b342e48e0140a8db214
[ "Apache-2.0" ]
null
null
null
package com.example.flashcards import android.content.Context import android.graphics.* import android.graphics.Paint.DITHER_FLAG import android.util.AttributeSet import android.view.View import java.util.ArrayList import android.view.MotionEvent import android.graphics.Bitmap import android.util.DisplayMetrics import android.util.Log class PaintView (context: Context, attrs: AttributeSet? = null, private var mX: Float = 0.toFloat(), private var mY: Float = 0.toFloat() ) : View(context, attrs) { private var brushSize = 20 private var defaultColor = Color.BLACK private var defaultBGColor = Color.WHITE private val touchTolerance = 4f private var mPath: Path? = null private var mPaint: Paint = Paint() private val paths = ArrayList<FingerPath>() private var currentColor: Int = 0 private var strokeWidth: Int = 0 private var emboss: Boolean = false private var blur: Boolean = false private var mBitmap: Bitmap? = null private var mCanvas: Canvas? = null private val mBitmapPaint = Paint(DITHER_FLAG) constructor(context: Context, attrs: AttributeSet?) : this(context, attrs, 0.toFloat(), 0.toFloat()) { mPaint.isAntiAlias = true mPaint.isDither = true mPaint.color = defaultColor mPaint.style = Paint.Style.STROKE mPaint.strokeJoin = Paint.Join.ROUND mPaint.strokeCap = Paint.Cap.ROUND mPaint.xfermode = null mPaint.alpha = 0xff } fun init(metrics: DisplayMetrics) { val height = metrics.heightPixels val width = metrics.widthPixels mBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888) mCanvas = Canvas(mBitmap) currentColor = defaultColor strokeWidth = brushSize } fun normal() { emboss = false blur = false } fun clear() { paths.clear() normal() invalidate() } override fun onDraw(canvas: Canvas) { canvas.save() mCanvas!!.drawColor(defaultBGColor) for (fp in paths) { mPaint.strokeWidth = fp.strokeWidth.toFloat() mPaint.maskFilter = null mCanvas!!.drawPath(fp.path, mPaint) } canvas.drawBitmap(mBitmap, 0.toFloat(), 0.toFloat(), mBitmapPaint) canvas.restore() } private fun touchStart(x: Float, y: Float) { mPath = Path() val fp = FingerPath(currentColor, strokeWidth, mPath!!) paths.add(fp) mPath!!.reset() mPath!!.moveTo(x, y) mX = x mY = y } private fun touchMove(x: Float, y: Float) { val dx = Math.abs(x - mX) val dy = Math.abs(y - mY) if (dx >= touchTolerance || dy >= touchTolerance) { mPath!!.quadTo(mX, mY, (x + mX) / 2, (y + mY) / 2) mX = x mY = y } } private fun touchUp() { mPath!!.lineTo(mX, mY) } override fun onTouchEvent(event: MotionEvent): Boolean { val x = event.x val y = event.y when (event.action) { MotionEvent.ACTION_DOWN -> { touchStart(x, y) invalidate() } MotionEvent.ACTION_MOVE -> { touchMove(x, y) invalidate() } MotionEvent.ACTION_UP -> { touchUp() invalidate() } } return true } fun changeColor(color: Int) { mPaint.color = color } }
23.060606
103
0.683311
b3dfa1fe613df7f7e73f632a574414b69645141a
185
sql
SQL
data/covid.sql
farhanayyash/covid-19
a3a3a1758359c4678a484c13e055db048c6ecd54
[ "MIT" ]
null
null
null
data/covid.sql
farhanayyash/covid-19
a3a3a1758359c4678a484c13e055db048c6ecd54
[ "MIT" ]
null
null
null
data/covid.sql
farhanayyash/covid-19
a3a3a1758359c4678a484c13e055db048c6ecd54
[ "MIT" ]
null
null
null
CREATE TABLE cards ( card_id serial PRIMARY KEY, Country VARCHAR ( 255 ), TotalConfirmed VARCHAR ( 255 ), TotalDeaths VARCHAR ( 255 ), TotalRecovered VARCHAR ( 255 ), Date TEXT );
23.125
32
0.718919
4009ff6b0e2c3b51053793c6b4b8b38e783b709a
1,003
py
Python
pydelhi2017concurrency/async/async_fetch_url.py
pythonhacker/talks
fa2a99af38d7092498eefb39940701a1ac10b6c2
[ "MIT" ]
2
2018-10-14T19:13:01.000Z
2019-02-14T06:07:10.000Z
pydelhi2017concurrency/async/async_fetch_url.py
Vasistareddy/talks
fa2a99af38d7092498eefb39940701a1ac10b6c2
[ "MIT" ]
null
null
null
pydelhi2017concurrency/async/async_fetch_url.py
Vasistareddy/talks
fa2a99af38d7092498eefb39940701a1ac10b6c2
[ "MIT" ]
3
2018-10-14T19:12:32.000Z
2019-02-28T17:30:00.000Z
""" Fetch a URL and process its response using async io """ import asyncio import aiohttp import io async def fetch_page(url): """ Asynchronous URL fetcher """ future = aiohttp.request('GET', url) # Wait for the future response = await future return response async def parse_response(done): """ Parse responses of fetch """ for future in done: response = future.result() data = await response.read() print('Response for URL',response.url,'=>', response.status, len(data)) response.close() loop = asyncio.get_event_loop() urls = ('http://www.google.com', 'http://www.yahoo.com', 'http://www.facebook.com', 'http://www.reddit.com', 'http://www.twitter.com') tasks = map(fetch_page, urls) # Wait for futures done, pending = loop.run_until_complete(asyncio.wait(tasks, timeout=120)) # Wait for response processing loop.run_until_complete(parse_response(done)) loop.close()
22.795455
79
0.639083
650f83bfc2c15b05125e0a3038ff94105a4c11fc
203
swift
Swift
Example/Template/MVVMCombine/View/Base/UIView/ScrollView.swift
blkbrds/rd-combine
63e40d6f906149dee10ce167b511cbb5de2a8e36
[ "MIT" ]
null
null
null
Example/Template/MVVMCombine/View/Base/UIView/ScrollView.swift
blkbrds/rd-combine
63e40d6f906149dee10ce167b511cbb5de2a8e36
[ "MIT" ]
20
2021-03-01T01:56:13.000Z
2021-04-26T09:16:56.000Z
Example/Template/MVVMCombine/View/Base/UIView/ScrollView.swift
blkbrds/rd-combine
63e40d6f906149dee10ce167b511cbb5de2a8e36
[ "MIT" ]
null
null
null
// // ScrollView.swift // MVVMCombine // // Created by MBA0242P on 5/6/21. // Copyright © 2021 Monstar Lab VietNam Co., Ltd. All rights reserved. // import UIKit class ScrollView: UIScrollView { }
15.615385
71
0.684729
b263752d8c9ec7eab9b4624997fa8e7da6660b9b
5,097
swift
Swift
TWProjects/User.swift
pritamhinger/TWProjects
373c8f42766eaa8309dab7c35f1deda5f9c60c89
[ "MIT" ]
null
null
null
TWProjects/User.swift
pritamhinger/TWProjects
373c8f42766eaa8309dab7c35f1deda5f9c60c89
[ "MIT" ]
null
null
null
TWProjects/User.swift
pritamhinger/TWProjects
373c8f42766eaa8309dab7c35f1deda5f9c60c89
[ "MIT" ]
null
null
null
// // User.swift // TWProjects // // Created by Pritam Hinger on 11/09/16. // Copyright © 2016 AppDevelapp. All rights reserved. // import Foundation struct User { let userId:String? let planId:String? let lastName:String? let lang:String? let companyId:String? let likedEnabled:Bool? let deskEnabled:Bool? let avatarURL:String? let timeFormat:String? let projectsEnabled:Bool? let documentEditorEnabled:Bool? let sslEnabled:Bool? let canManagePeople:Bool? let companyName:String? let userIsAdmin:Bool? let name:String? let canAddProjects:Bool? let requireHTTPs:Bool? let code:String? let dateFormat:String? let url:String? let tagsEnabled:Bool? let tkoEnaled:Bool? let startOnSundays:Bool? let id:String? let chatEnabled:Bool? let logo:String? let dateSeparator:String? let firstName:String? let tagsLockedToAdmins:Bool? let userIsMemberOfOwnerCompany:Bool? init(userDictionary:[String:AnyObject]){ userId = userDictionary[TWProjectsClient.AuthenticateResponseKeys.UserId] as? String planId = userDictionary[TWProjectsClient.AuthenticateResponseKeys.PlanId] as? String lastName = userDictionary[TWProjectsClient.AuthenticateResponseKeys.LastName] as? String lang = userDictionary[TWProjectsClient.AuthenticateResponseKeys.Lang] as? String companyId = userDictionary[TWProjectsClient.AuthenticateResponseKeys.CompanyId] as? String likedEnabled = userDictionary[TWProjectsClient.AuthenticateResponseKeys.LikesEnabled] as? Bool deskEnabled = userDictionary[TWProjectsClient.AuthenticateResponseKeys.DeskEnabled] as? Bool avatarURL = userDictionary[TWProjectsClient.AuthenticateResponseKeys.AvatarURL] as? String timeFormat = userDictionary[TWProjectsClient.AuthenticateResponseKeys.TimeFormat] as? String projectsEnabled = userDictionary[TWProjectsClient.AuthenticateResponseKeys.ProjectsEnabled] as? Bool documentEditorEnabled = userDictionary[TWProjectsClient.AuthenticateResponseKeys.DocumentEditorEnabled] as? Bool sslEnabled = userDictionary[TWProjectsClient.AuthenticateResponseKeys.SSLEnabled] as? Bool if let canManagePeople = userDictionary[TWProjectsClient.AuthenticateResponseKeys.CanManagePeople] as? String{ if canManagePeople == "0"{ self.canManagePeople = false } else{ self.canManagePeople = true } } else{ canManagePeople = false } companyName = userDictionary[TWProjectsClient.AuthenticateResponseKeys.CompanyName] as? String userIsAdmin = userDictionary[TWProjectsClient.AuthenticateResponseKeys.UserIsAdmin] as? Bool name = userDictionary[TWProjectsClient.AuthenticateResponseKeys.Name] as? String //canAddProjects = Bool((userDictionary[TWProjectsClient.AuthenticateResponseKeys.CanAddProjects] as? String)!) if let canAddProjects = userDictionary[TWProjectsClient.AuthenticateResponseKeys.CanAddProjects] as? String{ if canAddProjects == "0"{ self.canAddProjects = false } else{ self.canAddProjects = true } } else{ self.canAddProjects = false } requireHTTPs = userDictionary[TWProjectsClient.AuthenticateResponseKeys.RequireHTTPS] as? Bool code = userDictionary[TWProjectsClient.AuthenticateResponseKeys.Code] as? String dateFormat = userDictionary[TWProjectsClient.AuthenticateResponseKeys.DateFormat] as? String url = userDictionary[TWProjectsClient.AuthenticateResponseKeys.URL] as? String tagsEnabled = userDictionary[TWProjectsClient.AuthenticateResponseKeys.TagsEnabled] as? Bool tkoEnaled = userDictionary[TWProjectsClient.AuthenticateResponseKeys.TKOEnabled] as? Bool startOnSundays = userDictionary[TWProjectsClient.AuthenticateResponseKeys.StartOnSundays] as? Bool id = userDictionary[TWProjectsClient.AuthenticateResponseKeys.Id] as? String chatEnabled = userDictionary[TWProjectsClient.AuthenticateResponseKeys.ChatEnabled] as? Bool logo = userDictionary[TWProjectsClient.AuthenticateResponseKeys.Logo] as? String dateSeparator = userDictionary[TWProjectsClient.AuthenticateResponseKeys.DateSeperator] as? String firstName = userDictionary[TWProjectsClient.AuthenticateResponseKeys.FirstName] as? String tagsLockedToAdmins = userDictionary[TWProjectsClient.AuthenticateResponseKeys.TagsLockedToAdmins] as? Bool if let userIsMemberOfOwnerCompany = userDictionary[TWProjectsClient.AuthenticateResponseKeys.UserIsMemberOfOwnerCompany] as? String{ if userIsMemberOfOwnerCompany == "YES"{ self.userIsMemberOfOwnerCompany = true } else{ self.userIsMemberOfOwnerCompany = false } } else{ self.userIsMemberOfOwnerCompany = false } } }
46.761468
140
0.725917
2a6518ca29dd17de4bc34f606829150ca0a44b5e
11,160
java
Java
src/main/java/com/exactpro/th2/sim/impl/Simulator.java
andrey-zol/th2-sim
b0661d879eac9a0d5e01e208e6c9d24fb66537e0
[ "Apache-2.0" ]
null
null
null
src/main/java/com/exactpro/th2/sim/impl/Simulator.java
andrey-zol/th2-sim
b0661d879eac9a0d5e01e208e6c9d24fb66537e0
[ "Apache-2.0" ]
null
null
null
src/main/java/com/exactpro/th2/sim/impl/Simulator.java
andrey-zol/th2-sim
b0661d879eac9a0d5e01e208e6c9d24fb66537e0
[ "Apache-2.0" ]
null
null
null
/******************************************************************************* * Copyright 2020-2020 Exactpro (Exactpro Systems Limited) * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.exactpro.th2.sim.impl; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.Map; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.atomic.AtomicInteger; import java.util.stream.Collectors; import org.apache.commons.lang3.StringUtils; import org.jetbrains.annotations.NotNull; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.exactpro.th2.common.grpc.ConnectionID; import com.exactpro.th2.common.grpc.Message; import com.exactpro.th2.common.grpc.MessageBatch; import com.exactpro.th2.common.schema.factory.AbstractCommonFactory; import com.exactpro.th2.common.schema.message.MessageRouter; import com.exactpro.th2.sim.ISimulator; import com.exactpro.th2.sim.grpc.RuleID; import com.exactpro.th2.sim.grpc.RuleInfo; import com.exactpro.th2.sim.grpc.RulesInfo; import com.exactpro.th2.sim.grpc.SimGrpc; import com.exactpro.th2.sim.rule.IRule; import com.google.protobuf.Empty; import com.google.protobuf.TextFormat; import io.grpc.stub.StreamObserver; /** * Default implementation of {@link ISimulator}. */ public class Simulator extends SimGrpc.SimImplBase implements ISimulator { private final Logger logger = LoggerFactory.getLogger(this.getClass() + "@" + this.hashCode()); private final Map<String, Set<Integer>> connectivityRules = new ConcurrentHashMap<>(); private final Map<Integer, SimulatorRule> ruleIds = new ConcurrentHashMap<>(); private final AtomicInteger nextId = new AtomicInteger(0); private final Set<Integer> defaultsRules = Collections.synchronizedSet(new HashSet<>()); private final Object lockCanUseDefaultRules = new Object(); private Boolean canUseDefaultRules = true; private MessageRouter<MessageBatch> router; @Override public void init(@NotNull AbstractCommonFactory factory) throws Exception { this.router = factory.getMessageRouterParsedBatch(); router.subscribeAll((consumerTag, batch) -> { for (Message message : batch.getMessagesList()) { String sessionAlias = message.getMetadata().getId().getConnectionId().getSessionAlias(); if (StringUtils.isNotEmpty(sessionAlias)) { try { handleMessage(sessionAlias, message); } catch (Exception e) { logger.error("Can not handle message = {}", TextFormat.shortDebugString(message), e); } } else { if (logger.isWarnEnabled()) { logger.warn("Skip message, because session alias is empty. Message = {}", TextFormat.shortDebugString(message)); } } } }, "first", "subscribe", "parsed"); } @Override public RuleID addRule(@NotNull IRule rule, @NotNull String sessionAlias) { if (logger.isDebugEnabled()) { logger.debug("Try to add rule '{}' for session alias '{}'", rule.getClass().getName(), sessionAlias); } int id = nextId.incrementAndGet(); synchronized (lockCanUseDefaultRules) { ruleIds.put(id, new SimulatorRule(rule, sessionAlias)); connectivityRules.computeIfAbsent(sessionAlias, key -> Collections.synchronizedSet(new HashSet<>())).add(id); canUseDefaultRules = false; } logger.info("Rule from class '{}' was added to simulator for session alias '{}' with id = {}", rule.getClass().getName(), sessionAlias, id); return RuleID.newBuilder().setId(id).build(); } @Override public void addDefaultRule(RuleID ruleID) { defaultsRules.add(ruleID.getId()); logger.debug("Added default rule with id = {}", ruleID.getId()); updatePossibleUseDefaultRules(); } @Override public void removeRule(RuleID id, StreamObserver<Empty> responseObserver) { logger.debug("Try to remove rule with id = {}", id.getId()); SimulatorRule rule = ruleIds.remove(id.getId()); if (rule != null) { Set<Integer> ids = connectivityRules.get(rule.getSessionAlias()); if (ids != null) { ids.remove(id.getId()); } if (defaultsRules.remove(id.getId())) { logger.warn("Removed default rule with id = {}", id.getId()); } updatePossibleUseDefaultRules(); logger.info("Rule with id '{}' was removed", id.getId()); } responseObserver.onNext(Empty.newBuilder().build()); responseObserver.onCompleted(); } private void updatePossibleUseDefaultRules() { synchronized (lockCanUseDefaultRules) { if (defaultsRules.size() > 0 && defaultsRules.containsAll(ruleIds.keySet())) { canUseDefaultRules = true; } else { canUseDefaultRules = false; } } } @Override public void getRulesInfo(Empty request, StreamObserver<RulesInfo> responseObserver) { responseObserver.onNext(RulesInfo .newBuilder() .addAllInfo(ruleIds.keySet().stream().map(this::createRuleInfo) .collect(Collectors.toList()) ) .build()); responseObserver.onCompleted(); } private RuleInfo createRuleInfo(int ruleId) { SimulatorRule rule = ruleIds.get(ruleId); if (rule == null) { return RuleInfo.newBuilder().setId(RuleID.newBuilder().setId(-1).build()).build(); } return RuleInfo.newBuilder() .setId(RuleID.newBuilder().setId(ruleId).build()) .setClassName(rule.getRule().getClass().getName()) .setConnectionId(ConnectionID.newBuilder().setSessionAlias(rule.getSessionAlias()).build()) .build(); } public void handleMessage(String sessionAlias, Message message) { Map<String, MessageBatch.Builder> answerMessagesBatches = new HashMap<>(); if (logger.isDebugEnabled()) { logger.debug("Handle message from session alias '{}' = {}", sessionAlias, message.getMetadata().getMessageType()); } Iterator<Integer> iterator = connectivityRules.getOrDefault(sessionAlias, Collections.emptySet()).iterator(); Set<Integer> triggeredRules = new HashSet<>(); boolean canUseDefaultRulesLocal; synchronized (lockCanUseDefaultRules) { canUseDefaultRulesLocal = canUseDefaultRules; } while (iterator.hasNext()) { Integer id = iterator.next(); SimulatorRule rule = ruleIds.get(id); if (rule == null || rule.getRule() == null) { logger.warn("Skip rule with id '{}', because it is already removed", id); iterator.remove(); continue; } if (defaultsRules.contains(id) && !canUseDefaultRulesLocal) { logger.debug("Skip rule with id '{}', because it is default rule", id); continue; } if (rule.getRule().checkTriggered(message)) { try { if (logger.isTraceEnabled()) { logger.trace("Process message by rule with ID '{}' = {}", id, TextFormat.shortDebugString(message)); } var messageListToResponse = rule.getRule().handle(message); for (Message responseMessage : messageListToResponse) { String responseSessionAlias = StringUtils.defaultIfEmpty(responseMessage.getMetadata().getId().getConnectionId().getSessionAlias(), sessionAlias); answerMessagesBatches.computeIfAbsent(responseSessionAlias, key -> MessageBatch.newBuilder()).addMessages(responseMessage); } triggeredRules.add(id); if (logger.isTraceEnabled()) { StringBuilder builder = new StringBuilder(); builder.append("["); for (int i = 0; i < messageListToResponse.size(); i++) { builder.append(TextFormat.shortDebugString(messageListToResponse.get(i))); if (i != messageListToResponse.size() - 1) { builder.append(";"); } } builder.append("]"); logger.trace("Rule with id '{}' generate messages '{}'", id, builder.toString()); } logger.debug("Rule with ID '{}' has returned '{}' message(s)", id, messageListToResponse.size()); } catch (Exception e) { logger.error("Can not handle message in rule with id = {}", id, e); } } else { logger.trace("Skip rule with id = '{}', because not triggered", id); } logger.debug("Triggered on message rules with ids = {}, count batches messages to respond = {}", triggeredRules, answerMessagesBatches.size()); if (triggeredRules.size() > 1) { logger.info("Triggered on message more one rule. Rules ids = {}", triggeredRules); } } answerMessagesBatches.forEach((session, builder) -> { MessageBatch batch = builder.build(); try { router.send(batch, "second", "publish", "parsed", session); } catch (Exception e) { logger.error("Can not send batch with session alias '{}' = {}", session, TextFormat.shortDebugString(batch), e); } }); } @Override public void close() { connectivityRules.clear(); ruleIds.clear(); } private class SimulatorRule { private final IRule rule; private final String sessionAlias; public SimulatorRule(IRule rule, String sessionAlias) { this.rule = rule; this.sessionAlias = sessionAlias; } public IRule getRule() { return rule; } public String getSessionAlias() { return sessionAlias; } } }
39.020979
170
0.593369
54cfab7570bd2e4e3108a828200d98b8b7bda808
3,812
swift
Swift
Example/nRFMeshProvision/View Controllers/Proxy/Cells/AddressCell.swift
horsejockey/IOS-nRF-Mesh-Library
45e12224e8b5f2d45659e99dddda966b1ba17789
[ "BSD-3-Clause" ]
233
2018-06-04T14:05:57.000Z
2022-03-29T14:22:12.000Z
Example/nRFMeshProvision/View Controllers/Proxy/Cells/AddressCell.swift
horsejockey/IOS-nRF-Mesh-Library
45e12224e8b5f2d45659e99dddda966b1ba17789
[ "BSD-3-Clause" ]
292
2018-06-19T09:41:17.000Z
2022-03-25T13:51:49.000Z
Example/nRFMeshProvision/View Controllers/Proxy/Cells/AddressCell.swift
horsejockey/IOS-nRF-Mesh-Library
45e12224e8b5f2d45659e99dddda966b1ba17789
[ "BSD-3-Clause" ]
99
2018-06-14T07:27:20.000Z
2022-03-11T06:05:12.000Z
/* * Copyright (c) 2019, Nordic Semiconductor * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright notice, this * list of conditions and the following disclaimer in the documentation and/or * other materials provided with the distribution. * * 3. Neither the name of the copyright holder nor the names of its contributors may * be used to endorse or promote products derived from this software without * specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ import UIKit import nRFMeshProvision class AddressCell: UITableViewCell { @IBOutlet weak var icon: UIImageView! @IBOutlet weak var title: UILabel! @IBOutlet weak var subtitle: UILabel! @IBOutlet weak var detail: UILabel! var address: Address! { didSet { let meshNetwork = MeshNetworkManager.instance.meshNetwork! switch address! { case let address where address.isUnicast: let elements = meshNetwork.nodes.flatMap { $0.elements } let targetElement = elements.first { $0.unicastAddress == address } title.text = targetElement != nil ? targetElement!.name ?? "Element \(targetElement!.index + 1)" : "Unknown Element" subtitle.text = targetElement?.parentNode?.name ?? "Unknown device" icon.image = #imageLiteral(resourceName: "ic_flag_24pt") tintColor = .nordicLake case let address where address.isSpecialGroup: icon.image = #imageLiteral(resourceName: "ic_group_24pt") subtitle.text = nil switch address { case Address.allProxies: title.text = "All Proxies" case Address.allRelays: title.text = "All Relays" case Address.allFriends: title.text = "All Friends" default: title.text = "All Nodes" } tintColor = .nordicLake case let address where address.isGroup || address.isVirtual: let group = meshNetwork.groups.first { $0.address.address == address } title.text = group?.name ?? "Unknown group" subtitle.text = group?.address.virtualLabel?.uuidString icon.image = #imageLiteral(resourceName: "ic_group_24pt") tintColor = .nordicLake default: title.text = "Invalid address" icon.image = #imageLiteral(resourceName: "ic_flag_24pt") tintColor = .nordicRed } detail.text = address.asString() } } }
44.847059
100
0.642183
250085cefeee54eba463d3014bf50e193e224e88
990
swift
Swift
Cartography/Layout.swift
mono0926/Cartography
aa5b761a4b6a6a6698c1a1cb38ad78fc73106d92
[ "MIT" ]
1
2015-11-04T21:42:25.000Z
2015-11-04T21:42:25.000Z
ObjCExample/ObjCExample/ObjCExample/Generator/Cartography/Layout.swift
f2m2/f2m2-swift-forms
572bbdebb22d81c509c0cd8c0ec1e9b08861ae7e
[ "MIT" ]
null
null
null
ObjCExample/ObjCExample/ObjCExample/Generator/Cartography/Layout.swift
f2m2/f2m2-swift-forms
572bbdebb22d81c509c0cd8c0ec1e9b08861ae7e
[ "MIT" ]
null
null
null
// // Layout.swift // Cartography // // Created by Robert Böhnke on 30/09/14. // Copyright (c) 2014 Robert Böhnke. All rights reserved. // import Foundation public func layout(view: View, block: LayoutProxy -> ()) { block(LayoutProxy(view)) view.car_updateAutoLayoutConstraints() } public func layout(v1: View, v2: View, block: (LayoutProxy, LayoutProxy) -> ()) { block(LayoutProxy(v1), LayoutProxy(v2)) v1.car_updateAutoLayoutConstraints() v2.car_updateAutoLayoutConstraints() } public func layout(v1: View, v2: View, v3: View, block: (LayoutProxy, LayoutProxy, LayoutProxy) -> ()) { block(LayoutProxy(v1), LayoutProxy(v2), LayoutProxy(v3)) v1.car_updateAutoLayoutConstraints() v2.car_updateAutoLayoutConstraints() v3.car_updateAutoLayoutConstraints() } public func layout(views: [View], block:([LayoutProxy]) -> ()) { block(views.map({ LayoutProxy($0) })) for view in views { view.car_updateAutoLayoutConstraints() } }
25.384615
104
0.693939
0c67d5124bd8d941d8345d2d58fa8d7037264962
2,954
swift
Swift
MonkeyLib/tests/MacroExpansionTests.swift
infiniteNIL/MonkeySwift
89447c795913e053f3d70affc2c10d48e810cf0a
[ "MIT" ]
1
2021-05-22T02:42:01.000Z
2021-05-22T02:42:01.000Z
MonkeyLib/tests/MacroExpansionTests.swift
infiniteNIL/MonkeySwift
89447c795913e053f3d70affc2c10d48e810cf0a
[ "MIT" ]
null
null
null
MonkeyLib/tests/MacroExpansionTests.swift
infiniteNIL/MonkeySwift
89447c795913e053f3d70affc2c10d48e810cf0a
[ "MIT" ]
null
null
null
// // MacroExpansionTests.swift // MonkeyLibTests // // Created by Rod Schmidt on 3/23/19. // Copyright © 2019 infiniteNIL. All rights reserved. // import Foundation import XCTest @testable import MonkeyLib class MacroExpansionTests: XCTestCase { override func setUp() {} override func tearDown() {} func testDefineMacros() { let input = """ let number = 1; let function = fn(x, y) { x + y }; let mymacro = macro(x, y) { x + y; }; """ let env = Environment() var program = testParseProgram(input)! defineMacros(&program, env) XCTAssertEqual(program.statements.count, 2) XCTAssertNil(env.get(name: "number")) XCTAssertNil(env.get(name: "function")) let macro = env.get(name: "mymacro") as? Macro XCTAssertNotNil(macro) XCTAssertEqual(macro?.parameters.count, 2) XCTAssertEqual(macro?.parameters[0].description, "x") XCTAssertEqual(macro?.parameters[1].description, "y") let expectedBody = "(x + y)" XCTAssertEqual(macro?.body.description, expectedBody) } func testExpandMacros() { struct Test { let input: String let expected: String } let tests = [ Test(input: """ let infixExpression = macro() { quote(1 + 2); }; infixExpression(); """, expected: "(1 + 2)" ), Test(input: """ let reverse = macro(a, b) { quote(unquote(b) - unquote(a)); }; reverse(2 + 2, 10 - 5); """, expected: "(10 - 5) - (2 + 2)" ), Test(input: """ let unless = macro(condition, consequence, alternative) { quote(if (!(unquote(condition))) { unquote(consequence); } else { unquote(alternative); }); }; unless(10 > 5, puts("not greater"), puts("greater")); """, expected: "if (!(10 > 5)) { puts(\"not greater\") } else { puts(\"greater\") }" ) ] for t in tests { let expected = testParseProgram(t.expected)! var program = testParseProgram(t.input)! let env = Environment() defineMacros(&program, env) let expanded = expandMacros(program, env) XCTAssertEqual(expanded.description, expected.description) } } private func testParseProgram(_ input: String) -> Program? { let l = Lexer(input: input) let p = Parser(lexer: l) return p.parseProgram() } }
30.142857
96
0.474272
7f65578df1a3bda4cff44d334b73f65a9b6f0439
4,640
html
HTML
www/index.html
PedroBoni/schedule-monacaapp
e18920c0637541300f33773c5c5d9728031a6983
[ "MIT" ]
null
null
null
www/index.html
PedroBoni/schedule-monacaapp
e18920c0637541300f33773c5c5d9728031a6983
[ "MIT" ]
null
null
null
www/index.html
PedroBoni/schedule-monacaapp
e18920c0637541300f33773c5c5d9728031a6983
[ "MIT" ]
null
null
null
<!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> <meta http-equiv="Content-Security-Policy" content="default-src * data: gap: content: https://ssl.gstatic.com; style-src * 'unsafe-inline'; script-src * 'unsafe-inline' 'unsafe-eval'"> <link href="https://fonts.googleapis.com/css2?family=Major+Mono+Display&display=swap" rel="stylesheet"> <script src="components/loader.js"></script> <link rel="stylesheet" href="components/loader.css"> <link rel="stylesheet" href="css/style.css"> <script> var contactsLength; if(!localStorage.getItem("contacts")){ const objInt = { list: [] }; objInt = JSON.stringfy(objInt); localStorage.setItem("contacts", objInt); contactsLength = document.querySelectorAll(".contact").length; }else{ let contactsS = JSON.parse(localStorage.getItem("contacts")); contactsLength = 0; for(let i = 0; i < (contactsS.list).length; i++){ const contact = '<div class="contact" ondblclick="editable(this)" editableState="false" id='+contactsLength+'><button id="delete" onclick="remove('+contactsLength+')"><img src="img/delete.svg"></button><input type="text" id="name" name="name" maxlength="15" placeholder="name" disabled value='+contacts.list[i].name+'/><input type="tel" id="phone" name="phone" placeholder="phone" maxlength="11" disabled value='+contacts.list[i].phone+'/><input type="email" id="email" name="email" placeholder="email" maxlength="30" disabled value='+contacts.list[i].email+'/></div>'; document.querySelector("#contacts").insertAdjacentHTML("afterbegin", contact); contactsLength++; } contactsLength = document.querySelectorAll(".contact").length; } function editable(element){ if(element.editableState){ element.editableState = false; const inputs = document.querySelectorAll(".contact input"); inputs.forEach(input => input.disabled = element.editableState); inputs = element.childNodes; name = inputs[1]; phone = inputs[2]; email = inputs[3]; let contactsStorage = JSON.parse(localStorage.getItem("contacts")); contactsStorage.list[element.id] = { name, phone, email }; contactsStorage = JSON.stringfy(contactsStorage); localStorage.setItem("contacts", contactsStorage); }else{ element.editableState = false; const inputs = document.querySelectorAll(".contact input"); inputs.forEach(input => input.disabled = element.editableState) } } function remove(indexRemove){ let contacts = document.querySelectorAll(".contact") let arr = new Array(contacts.length); for(let i = 0; i < arr.length; i++) arr[i] = i; arr = arr.reverse(); contacts[arr[indexRemove]].remove(); let contactsStorage = JSON.parse(localStorage.getItem("contacts")); (contactsStorage.list).splice(arr[indexRemove], 1); contactsStorage = JSON.stringfy(contactsStorage); localStorage.setItem("contacts", contactsStorage); contactsLength = contacts.length; } function addContactF(){ const contact = '<div class="contact" ondblclick="editable(this)" editableState="false" id='+contactsLength+'><button id="delete" onclick="remove('+contactsLength+')"><img src="img/delete.svg"></button><input type="text" id="name" name="name" maxlength="15" placeholder="name" disabled/><input type="tel" id="phone" name="phone" placeholder="phone" maxlength="11" disabled/><input type="email" id="email" name="email" placeholder="email" maxlength="30" disabled/> </div>'; contactsLength = document.querySelectorAll(".contact").length;; document.querySelector("#contacts").insertAdjacentHTML("afterbegin", contact); let contactsStorage = JSON.parse(localStorage.getItem("contacts")); (contactsStorage.list).push({ name: "", phone: "", email: "" }); contactsStorage = JSON.stringfy(contactsStorage); localStorage.setItem("contacts", contactsStorage); } </script> </head> <body> <h1>Your contacts</h1> <div class="row addContact"> <button id="addContact" onclick="addContactF()">+</button> </div> <div id="contacts"> </div> </body> </html>
42.568807
579
0.62694
4d931994a71e94a8694c42b0d3bf950280803b2d
2,036
html
HTML
foundation_auth/templates/foundation_auth/org_registration/view.html
smegurus/smegurus-django
053973b5ff0b997c52bfaca8daf8e07db64a877c
[ "BSD-4-Clause" ]
1
2020-07-16T10:58:23.000Z
2020-07-16T10:58:23.000Z
foundation_auth/templates/foundation_auth/org_registration/view.html
smegurus/smegurus-django
053973b5ff0b997c52bfaca8daf8e07db64a877c
[ "BSD-4-Clause" ]
13
2018-11-30T02:29:39.000Z
2022-03-11T23:35:49.000Z
foundation_auth/templates/foundation_auth/org_registration/view.html
smegurus/smegurus-django
053973b5ff0b997c52bfaca8daf8e07db64a877c
[ "BSD-4-Clause" ]
null
null
null
{% extends 'foundation_auth/base.html' %} {% load staticfiles i18n compress %} {% block content %} <input id="id_hidden_postaladdress" type="hidden" /> <input id="id_hidden_organization" type="hidden" /> {% compress js inline %} {% include 'foundation_auth/org_registration/js.html' %} {% include 'foundation_public/loadingbox_js.html' %} {% endcompress %} <p class="text-center pv"> {% trans 'ORGANIZATION REGISTRATION' %} </p> <!-- FORM --> <form role="form" data-parsley-validate="" novalidate="" class="mb-lg"> <!-- NAME --> <div class="form-group has-feedback"> <label for="signupInputText1" class="text-muted">{% trans 'Company Name' %}</label> <input id="id_name" type="text" placeholder="{% trans 'Enter company name' %}" autocomplete="off" required class="form-control"> <span class="fa fa-building form-control-feedback text-muted"></span> </div> <!-- end NAME --> <!-- SUB-DOMAIN --> <div class="form-group has-feedback"> <label for="signupInputText1" class="text-muted">{% trans 'Your SME Gurus address' %}</label> <input id="id_schema_name" type="text" placeholder="{% trans 'Ex.: smallbusinesscenter' %}" autocomplete="off" required class="form-control"> <span class="fa fa-link form-control-feedback text-muted"></span> bizcentre.smegurus.com </div> <!-- end SUB-DOMAIN --> <!-- SIGN TOS --> <div class="clearfix"> <div class="checkbox c-checkbox pull-left mt0"> <label> <input id="id_is_tos_signed" type="checkbox">&nbsp;&nbsp; <span class="fa fa-check" style="margin-top: 4px"></span>{% trans 'I agree with the '%}<a href="{% url 'public_terms' %}">{% trans 'terms.' %}</a> </label> </div> </div> <!-- end SIGN TOS --> <!-- SUBMIT --> <button id="id_save_org_btn" type="button" class="btn btn-block btn-primary mt-lg">{% trans 'Create Organization' %}</button> <!-- end SUBMIT --> </form> <!-- end FORM --> {% endblock content %}
39.153846
159
0.61444
bccf6c629957c57e23853428549bfedc7c202e2f
285
kt
Kotlin
WeatherApp/app/src/main/java/laurenyew/weatherapp/App.kt
laurenyew/KotlinSampleApp
bbf6d3bddb358bef8a48c1e77c8edb65863a9b11
[ "MIT" ]
null
null
null
WeatherApp/app/src/main/java/laurenyew/weatherapp/App.kt
laurenyew/KotlinSampleApp
bbf6d3bddb358bef8a48c1e77c8edb65863a9b11
[ "MIT" ]
null
null
null
WeatherApp/app/src/main/java/laurenyew/weatherapp/App.kt
laurenyew/KotlinSampleApp
bbf6d3bddb358bef8a48c1e77c8edb65863a9b11
[ "MIT" ]
null
null
null
package laurenyew.weatherapp import android.app.Application /** * Created by laurenyew on 1/10/18. */ class App : Application() { companion object { lateinit var instance: App } override fun onCreate() { super.onCreate() instance = this } }
16.764706
35
0.624561
135c3883f44ba1d43a094c1637348e2fecd0b485
5,635
h
C
SGSCategories/Classes/Foundation/NSData+SGS.h
CharlsPrince/SGSCategories
79a6567cd6760be63850096adb29a7024906bc44
[ "MIT" ]
null
null
null
SGSCategories/Classes/Foundation/NSData+SGS.h
CharlsPrince/SGSCategories
79a6567cd6760be63850096adb29a7024906bc44
[ "MIT" ]
null
null
null
SGSCategories/Classes/Foundation/NSData+SGS.h
CharlsPrince/SGSCategories
79a6567cd6760be63850096adb29a7024906bc44
[ "MIT" ]
null
null
null
/*! * @header NSData+SGS.h * * @abstract NSData 扩展 * * @author Created by Lee on 16/4/20. * * @copyright 2016年 SouthGIS. All rights reserved. */ #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN /*! * @brief 编码、转换、解压缩等扩展方法 */ @interface NSData (SGS) #pragma mark - 通用 ///----------------------------------------------------------------------------- /// @name 通用 ///----------------------------------------------------------------------------- /*! * @brief 从 main bundle 中读取数据 * * @param filename 文件名 * @param ext 扩展名 * * @return NSData or nil */ + (nullable instancetype)dataWithContentsOfMainBundleFile:(NSString *)filename fileType:(nullable NSString *)ext; /*! * @brief 从指定文件中读取数据 * * @param path 文件名或相对路径 * @param directory 文件夹,例如:NSDocumentDirectory * @param domainMask 域,例如:NSUserDomainMask * * @return NSData or nil */ + (nullable instancetype)dataWithContentsOfFile:(NSString *)path relativeToDirectory:(NSSearchPathDirectory)directory inDomain:(NSSearchPathDomainMask)domainMask; /*! * @brief 将数据写入到指定路径中 * * @param path 文件名或相对路径 * @param directory 文件夹,例如:NSDocumentDirectory * @param domainMask 域,例如:NSUserDomainMask * @param useAuxiliaryFile 是否使用临时文件覆盖的形式 * * @return YES 写入成功; NO 写入失败或路径有误 */ - (BOOL)writeToFile:(NSString *)path relativeToDirectory:(NSSearchPathDirectory)directory inDomain:(NSSearchPathDomainMask)domainMask atomically:(BOOL)useAuxiliaryFile; #pragma mark - 转换与编码 ///----------------------------------------------------------------------------- /// @name 转换与编码 ///----------------------------------------------------------------------------- /*! * @brief 将 UTF8 编码的字符串转为 NSData,等同于 [string dataUsingEncoding:NSUTF8StringEncoding] * * @param string 待转换的字符串 * * @return NSData or nil */ + (nullable NSData *)dataWithUTF8String:(NSString *)string; /*! * @brief 将 NSData 转为 UTF8 编码的字符串 * * @return NSString or nil */ - (nullable NSString *)toUTF8String; /*! * @brief 将十六进制字符串转为 NSData * * @param hexString 十六进制字符串,不区分大小写 * * @return NSData or nil */ + (nullable NSData *)dataWithHexString:(NSString *)hexString; /*! * @brief 将 NSData 转为小写形式的十六进制字符串 * * @return 小写形式的十六进制字符串 */ - (NSString *)toHexString; /*! * @brief 将 JSON 对象转为 NSData * * @discussion NSJSONWritingOptions 为 kNilOptions * * @param json JSON 对象 * * @return NSData or nil */ + (nullable NSData *)dataWithJSONObject:(id)json; /*! * @brief 将 JSON 对象转为 NSData * * @param json JSON 对象 * @param opt JSON 转换选项 * @param error 如果转换失败将会传递错误给该参数 * * @return NSData or nil */ + (nullable NSData *)dataWithJSONObject:(id)json options:(NSJSONWritingOptions)opt error:(NSError **)error; /*! * @brief 将 NSData 转为 JSON 对象 * * @discussion NSJSONReadingOptions 为 kNilOptions * * @return JSON 对象 or nil */ - (nullable id)toJSONObject; /*! * @brief 将 NSData 转为 JSON 对象 * * @param opt JSON 转换选项 * @param error 如果转换失败将会传递错误给该参数 * * @return JSON 对象 or nil */ - (nullable id)toJSONObjectWithOptions:(NSJSONReadingOptions)opt error:(NSError **)error; /*! * @brief 将 plist 对象转为 NSData * * @discussion 转换格式为 XML 形式 * * @param plist plist 对象 * * @return NSData or nil */ + (nullable NSData *)dataWithPropertyList:(id)plist; /*! * @brief 将 plist 对象转为 NSData * * @param plist plist 对象 * @param format 转换格式 * @param error 如果转换失败将会传递错误给该参数 * * @return NSData or nil */ + (nullable NSData *)dataWithPropertyList:(id)plist format:(NSPropertyListFormat)format error:(out NSError **)error; /*! * @brief 将 NSData 转为 plist 对象 * * @discussion NSPropertyListReadOptions 为 kNilOptions * * @return plist 对象 or nil */ - (nullable id)toPropertyList; /*! * @brief 将 NSData 转为 plist 对象 * * @param opt 转换选项 * @param error 如果转换失败将会传递错误给该参数 * * @return plist 对象 or nil */ - (nullable id)toPropertyListWithOptions:(NSPropertyListReadOptions)opt error:(NSError **)error; /*! * @brief 将 Base-64 编码的字符串解码为 NSData * * @discussion 编码形式默认为 NSDataBase64DecodingIgnoreUnknownCharacters * * @param base64String Base-64 编码的字符串 * * @return 解码后的 NSData or nil */ + (nullable instancetype)dataWithBase64EncodedString:(NSString *)base64String; /*! * @brief 将 NSData 转为 Base-64 编码字符串 * * @discussion 编码形式默认为 NSDataBase64Encoding64CharacterLineLength * * @return Base-64 编码字符串 */ - (NSString *)base64EncodedString; /*! * @brief 解码 Base-64 编码数据 * * @param base64Data Base-64 编码数据 * * @return 解码后的 NSData or nil */ + (nullable instancetype)dataWithBase64EncodedData:(NSData *)base64Data; /*! * @brief Base-64 编码数据 * * @return Base-64 编码数据 */ - (NSData *)base64EncodedData; #pragma mark - 解/压缩 ///----------------------------------------------------------------------------- /// @name 解/压缩 ///----------------------------------------------------------------------------- /*! * @brief gzip 解压 * * @return 解压后的NSData or nil */ - (nullable NSData *)gzipInflate; /*! * @brief gzip 压缩 * * @return 压缩后的NSData or nil */ - (nullable NSData *)gzipDeflate; /*! * @brief zlib 解压 * * @return 解压后的NSData or nil */ - (nullable NSData *)zlibInflate; /*! * @brief zlib 压缩 * * @return 压缩后的NSData or nil */ - (nullable NSData *)zlibDeflate; @end NS_ASSUME_NONNULL_END
21.425856
85
0.580479
6de652c69948941348168fa91e4ca42d09561664
533
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math32/c/sdcc/cm32_sdcc_fssqr_fastcall.asm
rjcorrig/z88dk
c49c26bb232c17ea5a45d21bb81b6343572b7f4c
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/math/float/math32/c/sdcc/cm32_sdcc_fssqr_fastcall.asm
rjcorrig/z88dk
c49c26bb232c17ea5a45d21bb81b6343572b7f4c
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/math/float/math32/c/sdcc/cm32_sdcc_fssqr_fastcall.asm
rjcorrig/z88dk
c49c26bb232c17ea5a45d21bb81b6343572b7f4c
[ "ClArtistic" ]
null
null
null
; float __fssqr_fastcall (float number) SECTION code_clib SECTION code_math PUBLIC cm32_sdcc_fssqr_fastcall EXTERN m32_fssqr_fastcall ; square (^2) sdcc floats ; ; enter : stack = sdcc_float number, ret ; ; exit : DEHL = sdcc_float(number^2) ; ; uses : af, bc, de, hl, af' DEFC cm32_sdcc_fssqr_fastcall = m32_fssqr_fastcall ; enter DEHL = sdcc_float ; ; return DEHL = sdcc_float
24.227273
82
0.540338
0cad53d938be9fc089dc7d7cacb7515f952a2770
1,758
py
Python
src/crawler/input_data/spiders/bitcointalk.py
HofmannZ/global-ai-hackathon--truth-coin
9f544cdb05de0811796d2465fba64875ee77cdab
[ "MIT" ]
5
2017-06-24T22:54:13.000Z
2020-02-13T17:23:12.000Z
src/crawler/input_data/spiders/bitcointalk.py
HofmannZ/global-ai-hackathon--truth-coin
9f544cdb05de0811796d2465fba64875ee77cdab
[ "MIT" ]
2
2017-06-24T12:07:22.000Z
2017-06-25T18:12:24.000Z
src/crawler/input_data/spiders/bitcointalk.py
HofmannZ/global-ai-hackathon--truth-coin
9f544cdb05de0811796d2465fba64875ee77cdab
[ "MIT" ]
1
2017-08-02T12:37:52.000Z
2017-08-02T12:37:52.000Z
# -*- coding: utf-8 -*- import scrapy class BitcointalkSpider(scrapy.Spider): name = 'bitcointalk' allowed_domains = ['bitcointalk.org'] start_urls = [ 'https://bitcointalk.org/index.php?board=1.0', ] def parse(self, response): topics = response.css('div.tborder table.bordercolor')[-1] if topics.css('table span a::attr(href)') is not None: for link in topics.css('span a::attr(href)'): url = link.extract() yield scrapy.Request(url, callback=self.parseTopic) prevnext = response.css('td#toppages span.prevnext')[-1] linkContent = prevnext.css('a::text').extract_first() link = prevnext.css('a::attr(href)') print(linkContent) if linkContent == '»': url = link.extract_first() yield scrapy.Request(url, callback=self.parse) def parseTopic(self, response): for post in response.css('form#quickModForm tr:first-of-type'): yield { 'author': post.css('td.poster_info b a::text').extract_first(), 'messageNumber': post.css('a.message_number::text').extract_first(), 'title': post.css('div.subject a::text').extract_first(), 'date': post.css('td.td_headerandpost div.smalltext::text').extract_first(), 'text': post.css('div.post::text').extract(), } prevnext = response.css('td.middletext span.prevnext') linkContent = prevnext.css('a::text').extract_first() link = prevnext.css('a::attr(href)') print(linkContent) if linkContent == '»': url = link.extract_first() yield scrapy.Request(url, callback=self.parseTopic)
33.807692
92
0.585324
1fb1b01823fdbe5dd153d5941ab4ac1571f7549d
705
html
HTML
pa1-skeleton/pa1-data/3/infolab.stanford.edu_TR_CS-TR-85-1048.html
yzhong94/cs276-spring-2019
a4780a9f88b8c535146040fe11bb513c91c5693b
[ "MIT" ]
null
null
null
pa1-skeleton/pa1-data/3/infolab.stanford.edu_TR_CS-TR-85-1048.html
yzhong94/cs276-spring-2019
a4780a9f88b8c535146040fe11bb513c91c5693b
[ "MIT" ]
null
null
null
pa1-skeleton/pa1-data/3/infolab.stanford.edu_TR_CS-TR-85-1048.html
yzhong94/cs276-spring-2019
a4780a9f88b8c535146040fe11bb513c91c5693b
[ "MIT" ]
null
null
null
report number cs tr 85 1048 institution stanford university department of computer science title some constructions for order theoretic models of concurrency author pratt vaughan date march 1985 abstract we give tight and loose constructions suitable for specifying processes represented as sets of pomsets partially ordered multisets the tight construction is suitable for specifying primitive processes it introduces the dual notions of concurrence and orthocurrence the loose construction specifies a process in terms of a net of communicating subprocesses it introduces lhe notion of a utilization embedding a process in a net ftp reports stanford edu pub cstr reports cs tr 85 1048 cs tr 85 1048 pdf
352.5
704
0.846809
3d9e28c28b894c27f2e68fc6c4c4d76bf3a41de8
25,021
rs
Rust
src/serialization.rs
MeteorDB/sled
b23da771902c320bfa20b6f552bebf1d1c1be4ff
[ "Apache-2.0", "MIT" ]
null
null
null
src/serialization.rs
MeteorDB/sled
b23da771902c320bfa20b6f552bebf1d1c1be4ff
[ "Apache-2.0", "MIT" ]
3
2021-11-12T10:16:08.000Z
2022-03-16T10:19:20.000Z
src/serialization.rs
MeteorDB/sled
b23da771902c320bfa20b6f552bebf1d1c1be4ff
[ "Apache-2.0", "MIT" ]
null
null
null
#![allow(clippy::mut_mut)] use std::{ convert::{TryFrom, TryInto}, iter::FromIterator, marker::PhantomData, num::NonZeroU64, }; use crate::{ pagecache::{ BatchManifest, HeapId, MessageHeader, PageState, SegmentNumber, Snapshot, }, varint, DiskPtr, Error, IVec, Link, Meta, Node, Result, }; /// Items that may be serialized and deserialized pub trait Serialize: Sized { /// Returns the buffer size required to hold /// the serialized bytes for this item. fn serialized_size(&self) -> u64; /// Serializees the item without allocating. /// /// # Panics /// /// Panics if the buffer is not large enough. fn serialize_into(&self, buf: &mut &mut [u8]); /// Attempts to deserialize this type from some bytes. fn deserialize(buf: &mut &[u8]) -> Result<Self>; /// Returns owned serialized bytes. fn serialize(&self) -> Vec<u8> { let sz = self.serialized_size(); let mut buf = vec![0; usize::try_from(sz).unwrap()]; self.serialize_into(&mut buf.as_mut_slice()); buf } } // Moves a reference to mutable bytes forward, // sidestepping Rust's limitations in reasoning // about lifetimes. // // ☑ Checked with Miri by Tyler on 2019-12-12 #[allow(unsafe_code)] fn scoot(buf: &mut &mut [u8], amount: usize) { assert!(buf.len() >= amount); let len = buf.len(); let ptr = buf.as_mut_ptr(); let new_len = len - amount; unsafe { let new_ptr = ptr.add(amount); *buf = std::slice::from_raw_parts_mut(new_ptr, new_len); } } impl Serialize for BatchManifest { fn serialized_size(&self) -> u64 { 8 } fn serialize_into(&self, buf: &mut &mut [u8]) { buf[..8].copy_from_slice(&self.0.to_le_bytes()); scoot(buf, 8); } fn deserialize(buf: &mut &[u8]) -> Result<Self> { if buf.len() < 8 { return Err(Error::corruption(None)); } let array = buf[..8].try_into().unwrap(); *buf = &buf[8..]; Ok(BatchManifest(i64::from_le_bytes(array))) } } impl Serialize for () { fn serialized_size(&self) -> u64 { 0 } fn serialize_into(&self, _: &mut &mut [u8]) {} fn deserialize(_: &mut &[u8]) -> Result<()> { Ok(()) } } impl Serialize for MessageHeader { fn serialized_size(&self) -> u64 { 4 + 1 + self.len.serialized_size() + self.segment_number.serialized_size() + self.pid.serialized_size() } fn serialize_into(&self, buf: &mut &mut [u8]) { self.crc32.serialize_into(buf); self.kind.into().serialize_into(buf); self.len.serialize_into(buf); self.segment_number.serialize_into(buf); self.pid.serialize_into(buf); } fn deserialize(buf: &mut &[u8]) -> Result<MessageHeader> { Ok(MessageHeader { crc32: u32::deserialize(buf)?, kind: u8::deserialize(buf)?.into(), len: u64::deserialize(buf)?, segment_number: SegmentNumber(u64::deserialize(buf)?), pid: u64::deserialize(buf)?, }) } } impl Serialize for IVec { fn serialized_size(&self) -> u64 { let len = self.len() as u64; len + len.serialized_size() } fn serialize_into(&self, buf: &mut &mut [u8]) { (self.len() as u64).serialize_into(buf); buf[..self.len()].copy_from_slice(self.as_ref()); scoot(buf, self.len()); } fn deserialize(buf: &mut &[u8]) -> Result<IVec> { let k_len = usize::try_from(u64::deserialize(buf)?) .expect("should never store items that rust can't natively index"); let ret = &buf[..k_len]; *buf = &buf[k_len..]; Ok(ret.into()) } } impl Serialize for u64 { fn serialized_size(&self) -> u64 { varint::size(*self) as u64 } fn serialize_into(&self, buf: &mut &mut [u8]) { let sz = varint::serialize_into(*self, buf); scoot(buf, sz); } fn deserialize(buf: &mut &[u8]) -> Result<Self> { if buf.is_empty() { return Err(Error::corruption(None)); } let (res, scoot) = varint::deserialize(buf)?; *buf = &buf[scoot..]; Ok(res) } } struct NonVarU64(u64); impl Serialize for NonVarU64 { fn serialized_size(&self) -> u64 { 8 } fn serialize_into(&self, buf: &mut &mut [u8]) { buf[..8].copy_from_slice(&self.0.to_le_bytes()); scoot(buf, 8); } fn deserialize(buf: &mut &[u8]) -> Result<Self> { if buf.len() < 8 { return Err(Error::corruption(None)); } let array = buf[..8].try_into().unwrap(); *buf = &buf[8..]; Ok(NonVarU64(u64::from_le_bytes(array))) } } impl Serialize for i64 { fn serialized_size(&self) -> u64 { 8 } fn serialize_into(&self, buf: &mut &mut [u8]) { buf[..8].copy_from_slice(&self.to_le_bytes()); scoot(buf, 8); } fn deserialize(buf: &mut &[u8]) -> Result<Self> { if buf.len() < 8 { return Err(Error::corruption(None)); } let array = buf[..8].try_into().unwrap(); *buf = &buf[8..]; Ok(i64::from_le_bytes(array)) } } impl Serialize for u32 { fn serialized_size(&self) -> u64 { 4 } fn serialize_into(&self, buf: &mut &mut [u8]) { buf[..4].copy_from_slice(&self.to_le_bytes()); scoot(buf, 4); } fn deserialize(buf: &mut &[u8]) -> Result<Self> { if buf.len() < 4 { return Err(Error::corruption(None)); } let array = buf[..4].try_into().unwrap(); *buf = &buf[4..]; Ok(u32::from_le_bytes(array)) } } impl Serialize for bool { fn serialized_size(&self) -> u64 { 1 } fn serialize_into(&self, buf: &mut &mut [u8]) { let byte = u8::from(*self); buf[0] = byte; scoot(buf, 1); } fn deserialize(buf: &mut &[u8]) -> Result<bool> { if buf.is_empty() { return Err(Error::corruption(None)); } let value = buf[0] != 0; *buf = &buf[1..]; Ok(value) } } impl Serialize for u8 { fn serialized_size(&self) -> u64 { 1 } fn serialize_into(&self, buf: &mut &mut [u8]) { buf[0] = *self; scoot(buf, 1); } fn deserialize(buf: &mut &[u8]) -> Result<u8> { if buf.is_empty() { return Err(Error::corruption(None)); } let value = buf[0]; *buf = &buf[1..]; Ok(value) } } impl Serialize for HeapId { fn serialized_size(&self) -> u64 { 16 } fn serialize_into(&self, buf: &mut &mut [u8]) { NonVarU64(self.location).serialize_into(buf); self.original_lsn.serialize_into(buf); } fn deserialize(buf: &mut &[u8]) -> Result<HeapId> { Ok(HeapId { location: NonVarU64::deserialize(buf)?.0, original_lsn: i64::deserialize(buf)?, }) } } impl Serialize for Meta { fn serialized_size(&self) -> u64 { let len_sz: u64 = (self.inner.len() as u64).serialized_size(); let items_sz: u64 = self .inner .iter() .map(|(k, v)| { (k.len() as u64).serialized_size() + k.len() as u64 + v.serialized_size() }) .sum(); len_sz + items_sz } fn serialize_into(&self, buf: &mut &mut [u8]) { (self.inner.len() as u64).serialize_into(buf); serialize_2tuple_sequence(self.inner.iter(), buf); } fn deserialize(buf: &mut &[u8]) -> Result<Self> { let len = u64::deserialize(buf)?; let meta = Meta { inner: deserialize_bounded_sequence(buf, len)? }; Ok(meta) } } impl Serialize for Link { fn serialized_size(&self) -> u64 { match self { Link::Set(key, value) => { 1 + (key.len() as u64).serialized_size() + (value.len() as u64).serialized_size() + u64::try_from(key.len()).unwrap() + u64::try_from(value.len()).unwrap() } Link::Del(key) => { 1 + (key.len() as u64).serialized_size() + u64::try_from(key.len()).unwrap() } Link::ParentMergeIntention(a) => 1 + a.serialized_size(), Link::ParentMergeConfirm | Link::ChildMergeCap => 1, } } fn serialize_into(&self, buf: &mut &mut [u8]) { match self { Link::Set(key, value) => { 0_u8.serialize_into(buf); key.serialize_into(buf); value.serialize_into(buf); } Link::Del(key) => { 1_u8.serialize_into(buf); key.serialize_into(buf); } Link::ParentMergeIntention(pid) => { 2_u8.serialize_into(buf); pid.serialize_into(buf); } Link::ParentMergeConfirm => { 3_u8.serialize_into(buf); } Link::ChildMergeCap => { 4_u8.serialize_into(buf); } } } fn deserialize(buf: &mut &[u8]) -> Result<Self> { if buf.is_empty() { return Err(Error::corruption(None)); } let discriminant = buf[0]; *buf = &buf[1..]; Ok(match discriminant { 0 => Link::Set(IVec::deserialize(buf)?, IVec::deserialize(buf)?), 1 => Link::Del(IVec::deserialize(buf)?), 2 => Link::ParentMergeIntention(u64::deserialize(buf)?), 3 => Link::ParentMergeConfirm, 4 => Link::ChildMergeCap, _ => return Err(Error::corruption(None)), }) } } fn shift_u64_opt(value: &Option<u64>) -> u64 { value.map(|s| s + 1).unwrap_or(0) } impl Serialize for Option<u64> { fn serialized_size(&self) -> u64 { shift_u64_opt(self).serialized_size() } fn serialize_into(&self, buf: &mut &mut [u8]) { shift_u64_opt(self).serialize_into(buf) } fn deserialize(buf: &mut &[u8]) -> Result<Self> { let shifted = u64::deserialize(buf)?; let unshifted = if shifted == 0 { None } else { Some(shifted - 1) }; Ok(unshifted) } } impl Serialize for Option<NonZeroU64> { fn serialized_size(&self) -> u64 { (self.map(NonZeroU64::get).unwrap_or(0)).serialized_size() } fn serialize_into(&self, buf: &mut &mut [u8]) { (self.map(NonZeroU64::get).unwrap_or(0)).serialize_into(buf) } fn deserialize(buf: &mut &[u8]) -> Result<Self> { let underlying = u64::deserialize(buf)?; Ok(if underlying == 0 { None } else { Some(NonZeroU64::new(underlying).unwrap()) }) } } impl Serialize for Option<i64> { fn serialized_size(&self) -> u64 { shift_i64_opt(self).serialized_size() } fn serialize_into(&self, buf: &mut &mut [u8]) { shift_i64_opt(self).serialize_into(buf) } fn deserialize(buf: &mut &[u8]) -> Result<Self> { Ok(unshift_i64_opt(i64::deserialize(buf)?)) } } fn shift_i64_opt(value_opt: &Option<i64>) -> i64 { if let Some(value) = value_opt { if *value < 0 { *value } else { value + 1 } } else { 0 } } const fn unshift_i64_opt(value: i64) -> Option<i64> { if value == 0 { None } else if value < 0 { Some(value) } else { Some(value - 1) } } impl Serialize for Snapshot { fn serialized_size(&self) -> u64 { self.version.serialized_size() + self.stable_lsn.serialized_size() + self.active_segment.serialized_size() + (self.pt.len() as u64).serialized_size() + self .pt .iter() .map(|page_state| page_state.serialized_size()) .sum::<u64>() } fn serialize_into(&self, buf: &mut &mut [u8]) { self.version.serialize_into(buf); self.stable_lsn.serialize_into(buf); self.active_segment.serialize_into(buf); (self.pt.len() as u64).serialize_into(buf); for page_state in &self.pt { page_state.serialize_into(buf); } } fn deserialize(buf: &mut &[u8]) -> Result<Self> { Ok(Snapshot { version: Serialize::deserialize(buf)?, stable_lsn: Serialize::deserialize(buf)?, active_segment: Serialize::deserialize(buf)?, pt: { let len = u64::deserialize(buf)?; deserialize_bounded_sequence(buf, len)? }, }) } } impl Serialize for Node { fn serialized_size(&self) -> u64 { let size = self.rss(); size.serialized_size() + size } fn serialize_into(&self, buf: &mut &mut [u8]) { assert!(self.overlay.is_empty()); self.rss().serialize_into(buf); buf[..self.len()].copy_from_slice(self.as_ref()); scoot(buf, self.len()); } fn deserialize(buf: &mut &[u8]) -> Result<Node> { if buf.is_empty() { return Err(Error::corruption(None)); } let len = usize::try_from(u64::deserialize(buf)?).unwrap(); #[allow(unsafe_code)] let sst = unsafe { Node::from_raw(&buf[..len]) }; *buf = &buf[len..]; Ok(sst) } } impl Serialize for DiskPtr { fn serialized_size(&self) -> u64 { match self { DiskPtr::Inline(a) => 1 + a.serialized_size(), DiskPtr::Heap(a, b) => { 1 + a.serialized_size() + b.serialized_size() } } } fn serialize_into(&self, buf: &mut &mut [u8]) { match self { DiskPtr::Inline(log_offset) => { 0_u8.serialize_into(buf); log_offset.serialize_into(buf); } DiskPtr::Heap(log_offset, heap_id) => { 1_u8.serialize_into(buf); log_offset.serialize_into(buf); heap_id.serialize_into(buf); } } } fn deserialize(buf: &mut &[u8]) -> Result<DiskPtr> { if buf.len() < 2 { return Err(Error::corruption(None)); } let discriminant = buf[0]; *buf = &buf[1..]; Ok(match discriminant { 0 => DiskPtr::Inline(u64::deserialize(buf)?), 1 => DiskPtr::Heap( Serialize::deserialize(buf)?, HeapId::deserialize(buf)?, ), _ => return Err(Error::corruption(None)), }) } } impl Serialize for PageState { fn serialized_size(&self) -> u64 { match self { PageState::Free(a, disk_ptr) => { 0_u64.serialized_size() + a.serialized_size() + disk_ptr.serialized_size() } PageState::Present { base, frags } => { (1 + frags.len() as u64).serialized_size() + base.serialized_size() + frags .iter() .map(|tuple| tuple.serialized_size()) .sum::<u64>() } _ => panic!("tried to serialize {:?}", self), } } fn serialize_into(&self, buf: &mut &mut [u8]) { match self { PageState::Free(lsn, disk_ptr) => { 0_u64.serialize_into(buf); lsn.serialize_into(buf); disk_ptr.serialize_into(buf); } PageState::Present { base, frags } => { (1 + frags.len() as u64).serialize_into(buf); base.serialize_into(buf); serialize_2tuple_ref_sequence(frags.iter(), buf); } _ => panic!("tried to serialize {:?}", self), } } fn deserialize(buf: &mut &[u8]) -> Result<PageState> { if buf.is_empty() { return Err(Error::corruption(None)); } let len = u64::deserialize(buf)?; Ok(match len { 0 => PageState::Free( i64::deserialize(buf)?, DiskPtr::deserialize(buf)?, ), _ => PageState::Present { base: Serialize::deserialize(buf)?, frags: deserialize_bounded_sequence(buf, len - 1)?, }, }) } } impl<A: Serialize, B: Serialize> Serialize for (A, B) { fn serialized_size(&self) -> u64 { self.0.serialized_size() + self.1.serialized_size() } fn serialize_into(&self, buf: &mut &mut [u8]) { self.0.serialize_into(buf); self.1.serialize_into(buf); } fn deserialize(buf: &mut &[u8]) -> Result<(A, B)> { let a = A::deserialize(buf)?; let b = B::deserialize(buf)?; Ok((a, b)) } } impl<A: Serialize, B: Serialize, C: Serialize> Serialize for (A, B, C) { fn serialized_size(&self) -> u64 { self.0.serialized_size() + self.1.serialized_size() + self.2.serialized_size() } fn serialize_into(&self, buf: &mut &mut [u8]) { self.0.serialize_into(buf); self.1.serialize_into(buf); self.2.serialize_into(buf); } fn deserialize(buf: &mut &[u8]) -> Result<(A, B, C)> { let a = A::deserialize(buf)?; let b = B::deserialize(buf)?; let c = C::deserialize(buf)?; Ok((a, b, c)) } } fn serialize_2tuple_sequence<'a, XS, A, B>(xs: XS, buf: &mut &mut [u8]) where XS: Iterator<Item = (&'a A, &'a B)>, A: Serialize + 'a, B: Serialize + 'a, { for item in xs { item.0.serialize_into(buf); item.1.serialize_into(buf); } } fn serialize_2tuple_ref_sequence<'a, XS, A, B>(xs: XS, buf: &mut &mut [u8]) where XS: Iterator<Item = &'a (A, B)>, A: Serialize + 'a, B: Serialize + 'a, { for item in xs { item.0.serialize_into(buf); item.1.serialize_into(buf); } } struct ConsumeSequence<'a, 'b, T> { buf: &'a mut &'b [u8], _t: PhantomData<T>, bound: u64, } fn deserialize_bounded_sequence<T: Serialize, R>( buf: &mut &[u8], bound: u64, ) -> Result<R> where R: FromIterator<T>, { let iter = ConsumeSequence { buf, _t: PhantomData, bound }; iter.collect() } impl<'a, 'b, T> Iterator for ConsumeSequence<'a, 'b, T> where T: Serialize, { type Item = Result<T>; fn next(&mut self) -> Option<Result<T>> { if self.bound == 0 || self.buf.is_empty() { return None; } let item_res = T::deserialize(&mut self.buf); self.bound -= 1; if item_res.is_err() { self.bound = 0; } Some(item_res) } } #[cfg(test)] mod qc { use quickcheck::{Arbitrary, Gen}; use rand::Rng; use super::*; use crate::pagecache::MessageKind; impl Arbitrary for MessageHeader { fn arbitrary<G: Gen>(g: &mut G) -> MessageHeader { MessageHeader { crc32: g.gen(), len: g.gen(), kind: MessageKind::arbitrary(g), segment_number: SegmentNumber(SpreadU64::arbitrary(g).0), pid: g.gen(), } } } impl Arbitrary for HeapId { fn arbitrary<G: Gen>(g: &mut G) -> HeapId { HeapId { location: SpreadU64::arbitrary(g).0, original_lsn: SpreadI64::arbitrary(g).0, } } } impl Arbitrary for MessageKind { fn arbitrary<G: Gen>(g: &mut G) -> MessageKind { g.gen_range(0, 12).into() } } impl Arbitrary for Link { fn arbitrary<G: Gen>(g: &mut G) -> Link { let discriminant = g.gen_range(0, 5); match discriminant { 0 => Link::Set(IVec::arbitrary(g), IVec::arbitrary(g)), 1 => Link::Del(IVec::arbitrary(g)), 2 => Link::ParentMergeIntention(u64::arbitrary(g)), 3 => Link::ParentMergeConfirm, 4 => Link::ChildMergeCap, _ => unreachable!("invalid choice"), } } } impl Arbitrary for IVec { fn arbitrary<G: Gen>(g: &mut G) -> IVec { let v: Vec<u8> = Arbitrary::arbitrary(g); v.into() } fn shrink(&self) -> Box<dyn Iterator<Item = IVec>> { let v: Vec<u8> = self.to_vec(); Box::new(v.shrink().map(IVec::from)) } } impl Arbitrary for Meta { fn arbitrary<G: Gen>(g: &mut G) -> Meta { Meta { inner: Arbitrary::arbitrary(g) } } fn shrink(&self) -> Box<dyn Iterator<Item = Meta>> { Box::new(self.inner.shrink().map(|inner| Meta { inner })) } } impl Arbitrary for DiskPtr { fn arbitrary<G: Gen>(g: &mut G) -> DiskPtr { if g.gen() { DiskPtr::Inline(g.gen()) } else { DiskPtr::Heap(g.gen(), HeapId::arbitrary(g)) } } } impl Arbitrary for PageState { fn arbitrary<G: Gen>(g: &mut G) -> PageState { if g.gen() { // don't generate 255 because we add 1 to this // number in PageState::serialize_into to account // for the base fragment let n = g.gen_range(0, 255); let base = (g.gen(), DiskPtr::arbitrary(g)); let frags = (0..n).map(|_| (g.gen(), DiskPtr::arbitrary(g))).collect(); PageState::Present { base, frags } } else { PageState::Free(g.gen(), DiskPtr::arbitrary(g)) } } } impl Arbitrary for Snapshot { fn arbitrary<G: Gen>(g: &mut G) -> Snapshot { Snapshot { version: g.gen(), stable_lsn: g.gen(), active_segment: g.gen(), pt: Arbitrary::arbitrary(g), } } } #[derive(Debug, Clone)] struct SpreadI64(i64); impl Arbitrary for SpreadI64 { fn arbitrary<G: Gen>(g: &mut G) -> SpreadI64 { let uniform = g.gen::<i64>(); let shift = g.gen_range(0, 64); SpreadI64(uniform >> shift) } } #[derive(Debug, Clone)] struct SpreadU64(u64); impl Arbitrary for SpreadU64 { fn arbitrary<G: Gen>(g: &mut G) -> SpreadU64 { let uniform = g.gen::<u64>(); let shift = g.gen_range(0, 64); SpreadU64(uniform >> shift) } } fn prop_serialize<T>(item: &T) -> bool where T: Serialize + PartialEq + Clone + std::fmt::Debug, { let mut buf = vec![0; usize::try_from(item.serialized_size()).unwrap()]; let buf_ref = &mut buf.as_mut_slice(); item.serialize_into(buf_ref); assert_eq!( buf_ref.len(), 0, "round-trip failed to consume produced bytes" ); assert_eq!(buf.len() as u64, item.serialized_size()); let deserialized = T::deserialize(&mut buf.as_slice()).unwrap(); if *item == deserialized { true } else { eprintln!( "\nround-trip serialization failed. original:\n\n{:?}\n\n \ deserialized(serialized(original)):\n\n{:?}\n", item, deserialized ); false } } quickcheck::quickcheck! { #[cfg_attr(miri, ignore)] fn bool(item: bool) -> bool { prop_serialize(&item) } #[cfg_attr(miri, ignore)] fn u8(item: u8) -> bool { prop_serialize(&item) } #[cfg_attr(miri, ignore)] fn i64(item: SpreadI64) -> bool { prop_serialize(&item.0) } #[cfg_attr(miri, ignore)] fn u64(item: SpreadU64) -> bool { prop_serialize(&item.0) } #[cfg_attr(miri, ignore)] fn disk_ptr(item: DiskPtr) -> bool { prop_serialize(&item) } #[cfg_attr(miri, ignore)] fn page_state(item: PageState) -> bool { prop_serialize(&item) } #[cfg_attr(miri, ignore)] fn meta(item: Meta) -> bool { prop_serialize(&item) } #[cfg_attr(miri, ignore)] fn snapshot(item: Snapshot) -> bool { prop_serialize(&item) } #[cfg_attr(miri, ignore)] fn node(item: Node) -> bool { prop_serialize(&item) } #[cfg_attr(miri, ignore)] fn link(item: Link) -> bool { prop_serialize(&item) } #[cfg_attr(miri, ignore)] fn msg_header(item: MessageHeader) -> bool { prop_serialize(&item) } } }
27.345355
80
0.509292
9d19a4d0cc231ea7b081fd89a150e5dad571a377
741
html
HTML
src/app/templates/views/keys.tpl.html
sensiblegame/WebMail-Interface-with-Angular2
63cf44e66fc64c8ecfb1abc1bdc95420b9be11fe
[ "MIT" ]
1
2017-09-08T10:39:57.000Z
2017-09-08T10:39:57.000Z
src/app/templates/views/keys.tpl.html
sensiblegame/WebMail-Interface-with-Angular2
63cf44e66fc64c8ecfb1abc1bdc95420b9be11fe
[ "MIT" ]
1
2022-03-02T10:07:15.000Z
2022-03-02T10:07:15.000Z
src/app/templates/views/keys.tpl.html
sensiblegame/WebMail-Interface-with-Angular2
63cf44e66fc64c8ecfb1abc1bdc95420b9be11fe
[ "MIT" ]
null
null
null
<div id="pm_settings"> <div class="settings pm_form"> <div class="row"> <header-block class="settingsKeys-header-key"> <h2 class="settingsKeys-title-key" translate translate-context="Title">Keys</h2> </header-block> <p class="alert alert-info" translate-comment="Inline OpenPGP means NOT pgp/mime, so the body and attachments are encrypted separately" translate-context="Info" translate>Download your PGP Keys for use with other PGP compatible services. Only incoming messages in inline OpenPGP format are currently supported.</p> <address-keys-view></address-keys-view> </div> </div> </div>
46.3125
326
0.615385
26a51a5d461ba8ae141fa266baa70e3f41b501bd
1,593
java
Java
renamed/ExtendToPalindrome2.java
civilian/competitive_programing
a6ae7ad0db84240667c1dd6231c51c586ba040c7
[ "MIT" ]
1
2016-02-11T21:28:22.000Z
2016-02-11T21:28:22.000Z
renamed/ExtendToPalindrome2.java
civilian/competitive_programing
a6ae7ad0db84240667c1dd6231c51c586ba040c7
[ "MIT" ]
null
null
null
renamed/ExtendToPalindrome2.java
civilian/competitive_programing
a6ae7ad0db84240667c1dd6231c51c586ba040c7
[ "MIT" ]
null
null
null
package renamed; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Locale; import java.util.StringTokenizer; public class ExtendToPalindrome2 { static BufferedReader input; static StringTokenizer _stk; static String readln() throws IOException{ String l=input.readLine(); if(l!=null) _stk=new StringTokenizer(l," "); return l; } static String next(){return _stk.nextToken();} static int nextInt(){return Integer.parseInt(next());} public static void main(String[] args) throws IOException { Locale.setDefault(Locale.US); input=new BufferedReader(new InputStreamReader(System.in)); // input=new BufferedReader(new FileReader("ExtendToPalindrome")); // int numCases=nextInt(); for (int casesId = 1;; casesId++) { String lienaIn=readln(); if(lienaIn==null){ return; } StringBuilder sbReves=new StringBuilder(); for (int i = lienaIn.length()-1; i >-1 ; i--) { sbReves.append(lienaIn.charAt(i)); } // System.out.println(sbReves); // System.out.println(lienaIn); for (int i = 0; i < lienaIn.length(); i++) { if(check(i,sbReves,lienaIn)){ System.out.print(lienaIn.substring(0,i)); System.out.println(sbReves); break; } } } } private static boolean check(int i, StringBuilder sbReves, String lienaIn) { for (int j = i, ik=0; j < lienaIn.length(); j++,ik++) { if (sbReves.charAt(ik)!=lienaIn.charAt(j)) { return false; } } // TODO Auto-generated method stub return true; } }
23.776119
77
0.671061
267229cccdc5e876cf8399a86f4fb50f9a105f4a
888
java
Java
Mage.Tests/src/test/java/org/mage/test/cards/abilities/other/SakashimaTheImpostorTest.java
FateRevoked/mage
90418ddafda100a3b4e57597aad31af5428d7116
[ "MIT" ]
2
2020-04-04T22:36:47.000Z
2020-04-04T22:57:35.000Z
Mage.Tests/src/test/java/org/mage/test/cards/abilities/other/SakashimaTheImpostorTest.java
FateRevoked/mage
90418ddafda100a3b4e57597aad31af5428d7116
[ "MIT" ]
2
2021-09-20T20:56:08.000Z
2022-01-21T23:38:10.000Z
Mage.Tests/src/test/java/org/mage/test/cards/abilities/other/SakashimaTheImpostorTest.java
FateRevoked/mage
90418ddafda100a3b4e57597aad31af5428d7116
[ "MIT" ]
3
2018-07-26T19:00:47.000Z
2020-04-30T23:12:14.000Z
package org.mage.test.cards.abilities.other; import mage.constants.PhaseStep; import mage.constants.Zone; import org.junit.Test; import org.mage.test.serverside.base.CardTestPlayerBase; /** * Created by alexsandro on 06/03/17. */ public class SakashimaTheImpostorTest extends CardTestPlayerBase { @Test public void copySpellStutterTest() { addCard(Zone.BATTLEFIELD, playerA, "Spellstutter Sprite", 1); addCard(Zone.BATTLEFIELD, playerB, "Island", 4); addCard(Zone.HAND, playerB, "Sakashima the Impostor", 4); castSpell(2, PhaseStep.PRECOMBAT_MAIN, playerB, "Sakashima the Impostor"); setChoice(playerB, "Spellstutter Sprite"); setStopAt(4, PhaseStep.END_TURN); execute(); assertPermanentCount(playerA, "Spellstutter Sprite", 1); assertPowerToughness(playerB, "Sakashima the Impostor", 1, 1); } }
30.62069
82
0.704955
9c71a977f7d97c61d01bcf3e7aa7661cc46e0149
511,425
js
JavaScript
www/main-es2015.bba373d99df102369044.js
oussamafaleh/superette-front-mobile
97caabd17e367cc987131c58777c38994b9cfe1d
[ "Apache-2.0" ]
null
null
null
www/main-es2015.bba373d99df102369044.js
oussamafaleh/superette-front-mobile
97caabd17e367cc987131c58777c38994b9cfe1d
[ "Apache-2.0" ]
2
2021-03-10T11:27:57.000Z
2021-09-02T08:14:44.000Z
www/main-es2015.bba373d99df102369044.js
oussamafaleh/superette-front-mobile
97caabd17e367cc987131c58777c38994b9cfe1d
[ "Apache-2.0" ]
null
null
null
(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{"+4pY":function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("aiEM");const s=(e,t,n)=>{e.style.setProperty(t,n)},i=(e,t)=>{e.style.removeProperty(t)},o=[],a=(e=[],t)=>{if(void 0!==t){const n=Array.isArray(t)?t:[t];return[...e,...n]}return e},l=()=>{let e,t,n,l,c,u,h,d,p,f,m,g,y,b=[],v=[],_=[],w=!1,S={},E=[],C=[],x={},T=0,O=!1,k=!1,$=!0,A=!1,j=!0;const P=[],N=[],R=[],I=[],D=[],L=[],M=[],F=[],V=[],U=[],z="function"==typeof AnimationEffect||"function"==typeof window.AnimationEffect,H="function"==typeof Element&&"function"==typeof Element.prototype.animate&&z,q=(e,t)=>((t&&t.oneTimeCallback?N:P).push({c:e,o:t}),y),B=()=>{if(H)U.forEach(e=>{e.cancel()}),U.length=0;else{const e=R.slice();Object(r.k)(()=>{e.forEach(e=>{i(e,"animation-name"),i(e,"animation-duration"),i(e,"animation-timing-function"),i(e,"animation-iteration-count"),i(e,"animation-delay"),i(e,"animation-play-state"),i(e,"animation-fill-mode"),i(e,"animation-direction")})})}},G=()=>{D.forEach(e=>{e&&e.parentNode&&e.parentNode.removeChild(e)}),D.length=0},W=()=>void 0!==c?c:h?h.getFill():"both",Q=()=>void 0!==p?p:void 0!==u?u:h?h.getDirection():"normal",K=()=>O?"linear":void 0!==n?n:h?h.getEasing():"linear",Z=()=>k?0:void 0!==f?f:void 0!==t?t:h?h.getDuration():0,Y=()=>void 0!==l?l:h?h.getIterations():1,X=()=>void 0!==m?m:void 0!==e?e:h?h.getDelay():0,J=()=>{0!==T&&0==--T&&((()=>{oe(),F.forEach(e=>{e()}),V.forEach(e=>{e()}),(()=>{const e=E,t=C,n=x;R.forEach(r=>{const i=r.classList;e.forEach(e=>i.add(e)),t.forEach(e=>i.remove(e));for(const e in n)n.hasOwnProperty(e)&&s(r,e,n[e])})})();const e=$?1:0;P.forEach(t=>t.c(e,y)),N.forEach(t=>t.c(e,y)),N.length=0,j=!0,A=!0})(),h&&h.animationFinish())},ee=(e=!0)=>{L.forEach(e=>{e()}),M.forEach(e=>{e()}),(()=>{const e=v,t=_,n=S;R.forEach(r=>{const i=r.classList;e.forEach(e=>i.add(e)),t.forEach(e=>i.remove(e));for(const e in n)n.hasOwnProperty(e)&&s(r,e,n[e])})})(),b.length>0&&(H?(R.forEach(e=>{const t=e.animate(b,{delay:X(),duration:Z(),easing:K(),iterations:Y(),fill:W(),direction:Q()});t.pause(),U.push(t)}),U.length>0&&(U[0].onfinish=(()=>{J()}))):((e=!0)=>{G(),R.forEach(t=>{if(b.length>0){const n=((e=[])=>e.map(e=>{const t=e.offset,n=[];for(const r in e)e.hasOwnProperty(r)&&"offset"!==r&&n.push(`${r}: ${e[r]};`);return`${100*t}% { ${n.join(" ")} }`}).join(" "))(b),i=((e,t,n)=>{const r=(e=>{const t=e.getRootNode();return t.head||t})(n),s=r.querySelector("#"+e);if(s)return s;const i=(n.ownerDocument||document).createElement("style");return i.id=e,i.textContent=`@keyframes ${e} { ${t} } @keyframes ${e}-alt { ${t} }`,r.appendChild(i),i})(g=(e=>{let t=o.indexOf(e);return t<0&&(t=o.push(e)-1),`ion-animation-${t}`})(n),n,t);D.push(i),s(t,"animation-duration",`${Z()}ms`),s(t,"animation-timing-function",K()),s(t,"animation-delay",`${X()}ms`),s(t,"animation-fill-mode",W()),s(t,"animation-direction",Q());const a=Y()===1/0?"infinite":Y().toString();s(t,"animation-iteration-count",a),s(t,"animation-play-state","paused"),e&&s(t,"animation-name",`${i.id}-alt`),Object(r.k)(()=>{s(t,"animation-name",i.id||null)})}})})(e)),w=!0},te=e=>{if(e=Math.min(Math.max(e,0),.999),H)U.forEach(t=>{t.currentTime=t.effect.getComputedTiming().delay+Z()*e,t.pause()});else{const t=`-${(X()||0)+Z()*e}ms`;R.forEach(e=>{b.length>0&&(s(e,"animation-delay",t),s(e,"animation-play-state","paused"))})}},ne=(e=!0)=>{R.forEach(t=>{Object(r.k)(()=>{s(t,"animation-name",g||null),s(t,"animation-duration",`${Z()}ms`),s(t,"animation-timing-function",K()),s(t,"animation-delay",`${X()}ms`),s(t,"animation-fill-mode",W()||null),s(t,"animation-direction",Q()||null);const n=Y()===1/0?"infinite":Y().toString();s(t,"animation-iteration-count",n),e&&s(t,"animation-name",`${g}-alt`),Object(r.k)(()=>{s(t,"animation-name",g||null)})})})},re=(e=!1,t=!0)=>(e&&I.forEach(t=>{t.update(e)}),H?U.forEach(e=>{e.effect.updateTiming({delay:X(),duration:Z(),easing:K(),iterations:Y(),fill:W(),direction:Q()})}):ne(t),y),se=()=>{w&&(H?U.forEach(e=>{e.pause()}):R.forEach(e=>{s(e,"animation-play-state","paused")}))},ie=()=>{d=void 0,J()},oe=()=>{d&&clearTimeout(d)},ae=e=>new Promise(t=>{e&&e.sync&&(k=!0,q(()=>k=!1,{oneTimeCallback:!0})),w||ee(),A&&(H?te(0):ne(),A=!1),j&&(T=I.length+1,j=!1),q(()=>t(),{oneTimeCallback:!0}),I.forEach(e=>{e.play()}),H?(U.forEach(e=>{e.play()}),0!==b.length&&0!==R.length||J()):(()=>{if(oe(),R.forEach(e=>{b.length>0&&Object(r.k)(()=>{s(e,"animation-play-state","running")})}),0===b.length||0===R.length)J();else{const e=X()||0,t=Z()||0,n=Y()||1;d=setTimeout(ie,e+t*n+100),((e,t)=>{let n;const s={passive:!0},o=t=>{e===t.target&&(n&&n(),oe(),Object(r.k)(()=>{R.forEach(e=>{i(e,"animation-duration"),i(e,"animation-delay"),i(e,"animation-play-state")}),Object(r.k)(J)}))};e&&(e.addEventListener("webkitAnimationEnd",o,s),e.addEventListener("animationend",o,s),n=(()=>{e.removeEventListener("webkitAnimationEnd",o,s),e.removeEventListener("animationend",o,s)}))})(R[0])}})()}),le=(e,t)=>{const n=b[0];return void 0!==n&&0===n.offset?n[e]=t:b=[{offset:0,[e]:t},...b],y};return y={parentAnimation:h,elements:R,childAnimations:I,animationFinish:J,from:le,to:(e,t)=>{const n=b[b.length-1];return void 0!==n&&1===n.offset?n[e]=t:b=[...b,{offset:1,[e]:t}],y},fromTo:(e,t,n)=>le(e,t).to(e,n),parent:e=>(h=e,y),play:ae,playAsync:()=>ae(),playSync:()=>(ae({sync:!0}),y),pause:()=>(I.forEach(e=>{e.pause()}),se(),y),stop:()=>{I.forEach(e=>{e.stop()}),w&&(B(),w=!1)},destroy:()=>(I.forEach(e=>{e.destroy()}),B(),G(),R.length=0,I.length=0,b.length=0,(()=>(P.length=0,N.length=0,y))(),w=!1,j=!0,y),keyframes:e=>(b=e,y),addAnimation:e=>{if(null!=e)if(Array.isArray(e))for(const t of e)t.parent(y),I.push(t);else e.parent(y),I.push(e);return y},addElement:e=>{if(null!=e)if(1===e.nodeType)R.push(e);else if(e.length>=0)for(let t=0;t<e.length;t++)R.push(e[t]);else console.error("Invalid addElement value");return y},update:re,fill:e=>(c=e,re(!0),y),direction:e=>(u=e,re(!0),y),iterations:e=>(l=e,re(!0),y),duration:e=>(H||0!==e||(e=1),t=e,re(!0),y),easing:e=>(n=e,re(!0),y),delay:t=>(e=t,re(!0),y),getWebAnimations:()=>U,getKeyframes:()=>b,getFill:W,getDirection:Q,getDelay:X,getIterations:Y,getEasing:K,getDuration:Z,afterAddRead:e=>(F.push(e),y),afterAddWrite:e=>(V.push(e),y),afterClearStyles:(e=[])=>{for(const t of e)x[t]="";return y},afterStyles:(e={})=>(x=e,y),afterRemoveClass:e=>(C=a(C,e),y),afterAddClass:e=>(E=a(E,e),y),beforeAddRead:e=>(L.push(e),y),beforeAddWrite:e=>(M.push(e),y),beforeClearStyles:(e=[])=>{for(const t of e)S[t]="";return y},beforeStyles:(e={})=>(S=e,y),beforeRemoveClass:e=>(_=a(_,e),y),beforeAddClass:e=>(v=a(v,e),y),onFinish:q,progressStart:(e=!1)=>(I.forEach(t=>{t.progressStart(e)}),se(),O=e,w?(re(),te(0)):ee(),y),progressStep:e=>(I.forEach(t=>{t.progressStep(e)}),te(e),y),progressEnd:(e,t,n)=>(O=!1,I.forEach(r=>{r.progressEnd(e,t,n)}),void 0!==n&&(f=n),A=!1,($=1===e)?H||(m=t*Z()*-1,re(!1,!1)):(p="reverse"===Q()?"normal":"reverse",H?(re(),te(1-t)):(m=(1-t)*Z()*-1,re(!1,!1))),q(()=>{$=!0,f=void 0,p=void 0,m=void 0},{oneTimeCallback:!0}),h||ae(),y)}}},0:function(e,t,n){e.exports=n("zUnb")},"0EUg":function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("bHdf");function s(){return Object(r.a)(1)}},"128B":function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("Kqap"),s=n("BFxc"),i=n("xbPD"),o=n("mCNh");function a(e,t){return arguments.length>=2?function(n){return Object(o.a)(Object(r.a)(e,t),Object(s.a)(1),Object(i.a)(t))(n)}:function(t){return Object(o.a)(Object(r.a)((t,n,r)=>e(t,n,r+1)),Object(s.a)(1))(t)}}},"2QA8":function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},"2Vo4":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("XNiG"),s=n("9ppp");class i extends r.a{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s.a;return this._value}next(e){super.next(this._value=e)}}},"2fFW":function(e,t,n){"use strict";n.d(t,"a",function(){return s});let r=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){r=e},get useDeprecatedSynchronousErrorHandling(){return r}}},"2g2N":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("mrSG"),s=n("ZZ/e"),i=n("8Y7J");const o=(()=>{class e{constructor(e){this.toastController=e}presentToast(e){return r.b(this,void 0,void 0,function*(){(yield this.toastController.create({message:e,duration:2e3})).present()})}}return e.ngInjectableDef=i.Jb({factory:function(){return new e(i.Nb(s.e))},token:e,providedIn:"root"}),e})()},"4I5i":function(e,t,n){"use strict";function r(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}n.d(t,"a",function(){return s}),r.prototype=Object.create(Error.prototype);const s=r},"5+tZ":function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("ZUHj"),s=n("l7GE"),i=n("51Dv"),o=n("lJxs"),a=n("Cfvw");function l(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?r=>r.pipe(l((n,r)=>Object(a.a)(e(n,r)).pipe(Object(o.a)((e,s)=>t(n,e,r,s))),n)):("number"==typeof t&&(n=t),t=>t.lift(new c(e,n)))}class c{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new u(e,this.project,this.concurrent))}}class u extends s.a{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t,e,n)}_innerSub(e,t,n){const s=new i.a(this,void 0,void 0);this.destination.add(s),Object(r.a)(this,e,t,n,s)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e,t,n,r,s){this.destination.next(t)}notifyComplete(e){const t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},"51Dv":function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("7o/Q");class s extends r.a{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},"7o/Q":function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n("n6bG"),s=n("gRHU"),i=n("quSY"),o=n("2QA8"),a=n("2fFW"),l=n("NJ4a");class c extends i.a{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.a;break;case 1:if(!e){this.destination=s.a;break}if("object"==typeof e){e instanceof c?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,e,t,n)}}[o.a](){return this}static create(e,t,n){const r=new c(e,t,n);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class u extends c{constructor(e,t,n,i){let o;super(),this._parentSubscriber=e;let a=this;Object(r.a)(t)?o=t:t&&(o=t.next,n=t.error,i=t.complete,t!==s.a&&(a=Object.create(t),Object(r.a)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=o,this._error=n,this._complete=i}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;a.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=a.a;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):Object(l.a)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;Object(l.a)(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);a.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),a.a.useDeprecatedSynchronousErrorHandling)throw n;Object(l.a)(n)}}__tryOrSetError(e,t,n){if(!a.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return a.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(Object(l.a)(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}},"8Y7J":function(e,t,n){"use strict";n.d(t,"ib",function(){return la}),n.d(t,"jb",function(){return ca}),n.d(t,"kb",function(){return ua}),n.d(t,"lb",function(){return ha}),n.d(t,"hb",function(){return oo}),n.d(t,"gb",function(){return Ji}),n.d(t,"g",function(){return Qo}),n.d(t,"Q",function(){return qo}),n.d(t,"x",function(){return Ho}),n.d(t,"S",function(){return kt}),n.d(t,"W",function(){return Ot}),n.d(t,"c",function(){return io}),n.d(t,"B",function(){return lo}),n.d(t,"A",function(){return co}),n.d(t,"b",function(){return uo}),n.d(t,"d",function(){return ro}),n.d(t,"e",function(){return so}),n.d(t,"U",function(){return sa}),n.d(t,"L",function(){return Io}),n.d(t,"Y",function(){return Mo}),n.d(t,"t",function(){return aa}),n.d(t,"f",function(){return da}),n.d(t,"m",function(){return eo}),n.d(t,"l",function(){return Ct}),n.d(t,"F",function(){return Xt}),n.d(t,"G",function(){return Yt}),n.d(t,"a",function(){return J}),n.d(t,"O",function(){return te}),n.d(t,"M",function(){return Fr}),n.d(t,"Jb",function(){return g}),n.d(t,"R",function(){return y}),n.d(t,"T",function(){return S}),n.d(t,"n",function(){return R}),n.d(t,"q",function(){return D}),n.d(t,"Nb",function(){return $}),n.d(t,"V",function(){return A}),n.d(t,"p",function(){return j}),n.d(t,"o",function(){return u}),n.d(t,"z",function(){return h}),n.d(t,"H",function(){return p}),n.d(t,"y",function(){return ko}),n.d(t,"C",function(){return Lr}),n.d(t,"D",function(){return Ir}),n.d(t,"E",function(){return Dr}),n.d(t,"i",function(){return bo}),n.d(t,"j",function(){return Tr}),n.d(t,"k",function(){return Pr}),n.d(t,"u",function(){return Ar}),n.d(t,"w",function(){return $r}),n.d(t,"v",function(){return no}),n.d(t,"I",function(){return Xo}),n.d(t,"J",function(){return Zo}),n.d(t,"K",function(){return ss}),n.d(t,"N",function(){return os}),n.d(t,"h",function(){return Jr}),n.d(t,"r",function(){return Yr}),n.d(t,"s",function(){return Xr}),n.d(t,"P",function(){return gr}),n.d(t,"X",function(){return oa}),n.d(t,"tb",function(){return yr}),n.d(t,"bb",function(){return ho}),n.d(t,"Z",function(){return _r}),n.d(t,"ab",function(){return Or}),n.d(t,"cb",function(){return Kt}),n.d(t,"db",function(){return tn}),n.d(t,"eb",function(){return Pt}),n.d(t,"rb",function(){return x}),n.d(t,"wb",function(){return fr}),n.d(t,"Fb",function(){return _}),n.d(t,"ub",function(){return hr}),n.d(t,"vb",function(){return ur}),n.d(t,"Ib",function(){return he}),n.d(t,"Kb",function(){return ir}),n.d(t,"Mb",function(){return or}),n.d(t,"Lb",function(){return ar}),n.d(t,"fb",function(){return pa}),n.d(t,"mb",function(){return pi}),n.d(t,"nb",function(){return Ll}),n.d(t,"ob",function(){return Cs}),n.d(t,"pb",function(){return Li}),n.d(t,"qb",function(){return fa}),n.d(t,"sb",function(){return Ys}),n.d(t,"xb",function(){return si}),n.d(t,"yb",function(){return ri}),n.d(t,"zb",function(){return Ca}),n.d(t,"Ab",function(){return Ci}),n.d(t,"Db",function(){return Mi}),n.d(t,"Bb",function(){return Ta}),n.d(t,"Cb",function(){return Oa}),n.d(t,"Eb",function(){return va}),n.d(t,"Gb",function(){return $a}),n.d(t,"Hb",function(){return Pa});var r=n("XNiG"),s=n("quSY"),i=n("HDdC"),o=n("VRyK"),a=n("w1tV");const l="__parameters__";function c(e,t,n){const r=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function s(...e){if(this instanceof s)return r.apply(this,e),this;const t=new s(...e);return n.annotation=t,n;function n(e,n,r){const s=e.hasOwnProperty(l)?e[l]:Object.defineProperty(e,l,{value:[]})[l];for(;s.length<=r;)s.push(null);return(s[r]=s[r]||[]).push(t),e}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s}const u=c("Inject",e=>({token:e})),h=c("Optional"),d=c("Self"),p=c("SkipSelf");var f=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function m(e){for(let t in e)if(e[t]===m)return t;throw Error("Could not find renamed property on target object.")}function g(e){return{providedIn:e.providedIn||null,factory:e.factory,value:void 0}}const y=g;function b(e){return e&&e.hasOwnProperty(v)?e[v]:null}const v=m({ngInjectableDef:m});function _(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(_).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}const w=m({__forward_ref__:m});function S(e){return e.__forward_ref__=S,e.toString=function(){return _(this())},e}function E(e){const t=e;return"function"==typeof t&&t.hasOwnProperty(w)&&t.__forward_ref__===S?t():e}function C(){const e="undefined"!=typeof globalThis&&globalThis,t="undefined"!=typeof window&&window,n="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,r="undefined"!=typeof global&&global;return e||r||t||n}const x=C();let T,O=void 0;function k(e){const t=O;return O=e,t}function $(e,t=f.Default){return(T||function(e,t=f.Default){if(void 0===O)throw new Error("inject() must be called from an injection context");return null===O?function(e,t,n){const r=b(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&f.Optional)return null;throw new Error(`Injector: NOT_FOUND [${_(e)}]`)}(e,0,t):O.get(e,t&f.Optional?null:void 0,t)})(e,t)}const A=$;class j{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.ngInjectableDef=g({providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const P="__source",N=new Object,R=new j("INJECTOR",-1);class I{get(e,t=N){if(t===N){const t=new Error(`NullInjectorError: No provider for ${_(e)}!`);throw t.name="NullInjectorError",t}return t}}const D=(()=>{class e{static create(e,t){return Array.isArray(e)?new G(e,t):new G(e.providers,e.parent,e.name||null)}}return e.THROW_IF_NOT_FOUND=N,e.NULL=new I,e.ngInjectableDef=g({providedIn:"any",factory:()=>$(R)}),e.__NG_ELEMENT_ID__=-1,e})(),L=function(e){return e},M=[],F=L,V=function(){return Array.prototype.slice.call(arguments)},U=m({provide:String,useValue:m}),z="ngTokenPath",H="ngTempTokenPath",q=/\n/gm,B="\u0275";class G{constructor(e,t=D.NULL,n=null){this.parent=t,this.source=n;const r=this._records=new Map;r.set(D,{token:D,fn:L,deps:M,value:this,useNew:!1}),r.set(R,{token:R,fn:L,deps:M,value:this,useNew:!1}),function e(t,n){if(n)if((n=E(n))instanceof Array)for(let r=0;r<n.length;r++)e(t,n[r]);else{if("function"==typeof n)throw K("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw K("Unexpected provider",n);{let e=E(n.provide);const r=function(e){const t=function(e){let t=M;const n=e.deps;if(n&&n.length){t=[];for(let e=0;e<n.length;e++){let r=6,s=E(n[e]);if(s instanceof Array)for(let e=0,t=s;e<t.length;e++){const n=t[e];n instanceof h||n==h?r|=1:n instanceof p||n==p?r&=-3:n instanceof d||n==d?r&=-5:s=n instanceof u?n.token:E(n)}t.push({token:s,options:r})}}else if(e.useExisting)t=[{token:E(e.useExisting),options:6}];else if(!(n||U in e))throw K("'deps' required",e);return t}(e);let n=L,r=M,s=!1,i=E(e.provide);if(U in e)r=e.useValue;else if(e.useFactory)n=e.useFactory;else if(e.useExisting);else if(e.useClass)s=!0,n=E(e.useClass);else{if("function"!=typeof i)throw K("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",e);s=!0,n=i}return{deps:t,fn:n,useNew:s,value:r}}(n);if(!0===n.multi){let r=t.get(e);if(r){if(r.fn!==V)throw W(e)}else t.set(e,r={token:n.provide,deps:[],useNew:!1,fn:V,value:M});r.deps.push({token:e=n,options:6})}const s=t.get(e);if(s&&s.fn==V)throw W(e);t.set(e,r)}}}(r,e)}get(e,t,n=f.Default){const r=this._records.get(e);try{return function e(t,n,r,s,i,o){try{return function(t,n,r,s,i,o){let a;if(!n||o&f.SkipSelf)o&f.Self||(a=s.get(t,i,f.Default));else{if((a=n.value)==F)throw Error(B+"Circular dependency");if(a===M){n.value=F;let t=void 0,i=n.useNew,o=n.fn,l=n.deps,c=M;if(l.length){c=[];for(let t=0;t<l.length;t++){const n=l[t],i=n.options,o=2&i?r.get(n.token):void 0;c.push(e(n.token,o,r,o||4&i?s:D.NULL,1&i?null:D.THROW_IF_NOT_FOUND,f.Default))}}n.value=a=i?new o(...c):o.apply(t,c)}}return a}(t,n,r,s,i,o)}catch(a){throw a instanceof Error||(a=new Error(a)),(a[H]=a[H]||[]).unshift(t),n&&n.value==F&&(n.value=M),a}}(e,r,this._records,this.parent,t,n)}catch(s){return function(e,t,n,r){const s=e[H];throw t[P]&&s.unshift(t[P]),e.message=Q("\n"+e.message,s,"StaticInjectorError",r),e[z]=s,e[H]=null,e}(s,e,0,this.source)}}toString(){const e=[];return this._records.forEach((t,n)=>e.push(_(n))),`StaticInjector[${e.join(", ")}]`}}function W(e){return K("Cannot mix multi providers and regular providers",e)}function Q(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&e.charAt(1)==B?e.substr(2):e;let s=_(t);if(t instanceof Array)s=t.map(_).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];e.push(n+":"+("string"==typeof r?JSON.stringify(r):_(r)))}s=`{${e.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${e.replace(q,"\n ")}`}function K(e,t){return new Error(Q(e,t,"StaticInjectorError"))}const Z="ngDebugContext",Y="ngOriginalError",X="ngErrorLogger",J=new j("AnalyzeForEntryComponents"),ee=function(){var e={OnPush:0,Default:1};return e[e.OnPush]="OnPush",e[e.Default]="Default",e}(),te=function(){var e={Emulated:0,Native:1,None:2,ShadowDom:3};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e[e.ShadowDom]="ShadowDom",e}(),ne={},re=[],se=m({ngComponentDef:m}),ie=m({ngDirectiveDef:m}),oe=m({ngPipeDef:m});let ae=0;function le(e){return function(e){return e[se]||null}(e)||function(e){return e[ie]||null}(e)}function ce(e){return function(e){return e[oe]||null}(e)}function ue(e,t){if(null==e)return ne;const n={};for(const r in e)if(e.hasOwnProperty(r)){let s=e[r],i=s;Array.isArray(s)&&(i=s[1],s=s[0]),n[s]=r,t&&(t[s]=i)}return n}const he=function(e){const t=e.type,n=t.prototype,r={},s={type:t,providersResolver:null,consts:e.consts,vars:e.vars,factory:e.factory,template:e.template||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,contentQueries:e.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:e.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:e.changeDetection===ee.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||te.Emulated,id:"c",styles:e.styles||re,_:null,setInput:null,schemas:e.schemas||null};return s._=""+{toString:()=>{const n=e.directives,i=e.features,o=e.pipes;s.id+=ae++,s.inputs=ue(e.inputs,r),s.outputs=ue(e.outputs),i&&i.forEach(e=>e(s)),s.directiveDefs=n?()=>("function"==typeof n?n():n).map(le):null,s.pipeDefs=o?()=>("function"==typeof o?o():o).map(ce):null,t.hasOwnProperty(v)||(t[v]=g({factory:e.factory}))}},s},de=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(x))(),pe=0,fe=1,me=2,ge=3,ye=4,be=6,ve=7,_e=9,we=11,Se=12,Ee=14,Ce=18,xe=20,Te=1,Oe=2,ke=8,$e="__ngContext__";function Ae(e){for(;Array.isArray(e);)e=e[pe];return e}function je(e){return Array.isArray(e)&&"object"==typeof e[Te]}function Pe(e,t){return t[fe].data[e+xe]}function Ne(e){const t=function(e){return e[$e]}(e);return t?Array.isArray(t)?t:t.lView:null}function Re(e){e[Ce]=0}const Ie=9;function De(e,t,n,r,s,i){if(r)return;const o=(3&e[me])===s?t:n;o&&function(e,t,n,r){const s=null!=r?r:-1;let i=0;for(let o=void 0!==r?65535&e[Ce]:0;o<t.length;o++)if("number"==typeof t[o+1]){if(i=t[o],null!=r&&i>=r)break}else t[o]<0&&(e[Ce]+=65536),(i<s||-1==s)&&(Le(e,n,t,o),e[Ce]=(4294901760&e[Ce])+o+2),o++}(e,o,s,i),null==i&&(3&e[me])===s&&3!==s&&(e[me]&=1023,e[me]+=1)}function Le(e,t,n,r){const s=n[r]<0,i=n[r+1],o=e[s?-n[r]:n[r]];s?e[me]>>10<e[Ce]>>16&&(3&e[me])===t&&(e[me]+=1024,i.call(o)):i.call(o)}let Me=null;function Fe(e){Me=e}function Ve(){return qe}const Ue=1;let ze,He,qe,Be=Ue,Ge=0,We=0;function Qe(e=null){lt!==e&&(ut(null==e?-1:e),Be=Ue,Ge=0,We=0)}function Ke(){return ze}function Ze(e){ze=e}function Ye(e){He=e}function Xe(e=qe){return 4==(4&e[me])}let Je=null,et=!1;function tt(){return et}let nt=-1;function rt(e){nt=e}let st=0;function it(e){st=e}function ot(e,t){const n=qe;return e&&(nt=e[fe].bindingStartIndex),ze=t,He=!0,qe=Je=e,n}function at(e){const t=qe[fe];if(Xe(qe))qe[me]&=-5;else try{Re(qe),De(qe,t.viewHooks,t.viewCheckHooks,et,2,void 0)}finally{qe[me]&=-73,qe[ve]=t.bindingStartIndex}Fe(null),ot(e,null)}let lt=-1;function ct(){return lt}function ut(e){lt=e,Fe(null)}let ht=null;const dt=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}();function pt(e){return!!e.listen}class ft{constructor(){this._players=[]}flushPlayers(){for(let e=0;e<this._players.length;e++){const t=this._players[e];t.parent||0!==t.state||t.play()}this._players.length=0}queuePlayer(e){this._players.push(e)}}const mt=0;function gt(e,t,n,r){const s=[e||null,0,[],n||[null,null],r||[null,null],[0,0],[0],[0],null,null];return yt(s,mt),s}function yt(e,t,n=-1,r){const s=e[2],i=2*t,o=i+2;for(let l=s.length;l<o;l+=2)s.push(-1,null);const a=i+0;n>=0&&-1===s[a]&&(s[a]=n,s[i+1]=r||null)}function bt(e,t,n,r,s,i){return i=i||n,s?e[s]=r:e.push(r),!!r&&(r.addEventListener(200,()=>{const t=e.indexOf(r);t&&(t<e[0]?e[t]=null:e.splice(t,1)),r.destroy()}),(t.playerHandler||(t.playerHandler=new ft)).queuePlayer(r,i),!0)}function vt(e){const t=e[ge];return n=t,Array.isArray(n)&&!0===n[Te]?t[ge]:t;var n}function _t(e){return function(e){let t=je(e)?e:Ne(e);for(;t&&!(512&t[me]);)t=vt(t);return t}(e)[_e]}function wt(e){return e[Z]}function St(e){return e[Y]}function Et(e,...t){e.error(...t)}class Ct{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e[X]||Et}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?wt(e)?wt(e):this._findContext(St(e)):null}_findOriginalError(e){let t=St(e);for(;t&&St(t);)t=St(t);return t}}let xt=!0,Tt=!1;function Ot(){return Tt=!0,xt}function kt(){if(Tt)throw new Error("Cannot enable prod mode after platform setup.");xt=!1}class $t{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),this.inertBodyElement=this.inertDocument.body,null==this.inertBodyElement){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e),this.inertBodyElement=this.inertDocument.createElement("body"),e.appendChild(this.inertBodyElement)}this.inertBodyElement.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}getInertBodyElement_XHR(e){e="<body><remove></remove>"+e+"</body>";try{e=encodeURI(e)}catch(r){return null}const t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);const n=t.response.body;return n.removeChild(n.firstChild),n}getInertBodyElement_DOMParser(e){e="<body><remove></remove>"+e+"</body>";try{const n=(new window.DOMParser).parseFromString(e,"text/html").body;return n.removeChild(n.firstChild),n}catch(t){return null}}getInertBodyElement_InertDocument(e){const t=this.inertDocument.createElement("template");return"content"in t?(t.innerHTML=e,t):(this.inertBodyElement.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0<r;r--){const n=t.item(r).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||e.removeAttribute(n)}let n=e.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const At=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,jt=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Pt(e){return(e=String(e)).match(At)||e.match(jt)?e:(Ot()&&console.warn(`WARNING: sanitizing unsafe URL value ${e} (see http://g.co/ng/security#xss)`),"unsafe:"+e)}function Nt(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Rt(...e){const t={};for(const n of e)for(const e in n)n.hasOwnProperty(e)&&(t[e]=!0);return t}const It=Nt("area,br,col,hr,img,wbr"),Dt=Nt("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Lt=Nt("rp,rt"),Mt=Rt(Lt,Dt),Ft=Rt(It,Rt(Dt,Nt("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Rt(Lt,Nt("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Mt),Vt=Nt("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ut=Nt("srcset"),zt=Rt(Vt,Ut,Nt("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Nt("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Ht=Nt("script,style,template");class qt{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,n=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let e=this.checkClobberedElement(t,t.nextSibling);if(e){t=e;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!Ft.hasOwnProperty(t))return this.sanitizedSomething=!0,!Ht.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const n=e.attributes;for(let s=0;s<n.length;s++){const e=n.item(s),t=e.name,i=t.toLowerCase();if(!zt.hasOwnProperty(i)){this.sanitizedSomething=!0;continue}let o=e.value;Vt[i]&&(o=Pt(o)),Ut[i]&&(r=o,o=(r=String(r)).split(",").map(e=>Pt(e.trim())).join(", ")),this.buf.push(" ",t,'="',Wt(o),'"')}var r;return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();Ft.hasOwnProperty(t)&&!It.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(Wt(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const Bt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Gt=/([^\#-~ |!])/g;function Wt(e){return e.replace(/&/g,"&amp;").replace(Bt,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Gt,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Qt;function Kt(e,t){let n=null;try{Qt=Qt||new $t(e);let r=t?String(t):"";n=Qt.getInertBodyElement(r);let s=5,i=r;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,r=i,i=n.innerHTML,n=Qt.getInertBodyElement(r)}while(r!==i);const o=new qt,a=o.sanitizeChildren(Zt(n)||n);return Ot()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const e=Zt(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}function Zt(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}const Yt=function(){var e={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return e[e.NONE]="NONE",e[e.HTML]="HTML",e[e.STYLE]="STYLE",e[e.SCRIPT]="SCRIPT",e[e.URL]="URL",e[e.RESOURCE_URL]="RESOURCE_URL",e}();class Xt{}const Jt=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),en=/^url\(([^)]+)\)$/;function tn(e){if(!(e=String(e).trim()))return"";const t=e.match(en);return t&&Pt(t[1])===t[1]||e.match(Jt)&&function(e){let t=!0,n=!0;for(let r=0;r<e.length;r++){const s=e.charAt(r);"'"===s&&n?t=!t:'"'===s&&t&&(n=!n)}return t&&n}(e)?e:(Ot()&&console.warn(`WARNING: sanitizing unsafe style value ${e} (see http://g.co/ng/security#xss).`),"unsafe")}const nn=/([A-Z])/g;function rn(e){try{return null!=e?e.toString().slice(0,30):e}catch(t){return"[ERROR] Exception while trying to serialize the value"}}const sn={};class on{constructor(e,t){this.fn=e,this.value=t}}function an(e,t,n,r){for(let s=n;s<r;s+=4)if(jn(e,s)===t)return s;return-1}function ln(e,t,n,r=0){n=n||null;const s=Gn(e,!0,r,t=t||null),i=Gn(e,!1,r,n);if(s&&i)return;t=t===sn?Bn(e,!0,r):t,n=n===sn?Bn(e,!1,r):n;const o=e[0],a=t instanceof on?new Vn(t,o,1):null,l=n instanceof on?new Vn(n,o,2):null,c=a?t.value:t,u=l?n.value:n;let h=re,d=!1,p=!1;const f=a?1:0;En(e,a,1)&&(Cn(e,a,1),p=!0);const m=l?3:0;En(e,l,3)&&(Cn(e,l,3),p=!0),s||("string"==typeof c?(h=c.split(/\s+/),d=!0):h=c?Object.keys(c):re);const g=_n(e);let y=function(e){return e[6][2]}(e),b=e.length;if(!i){const t=cn(e,r,m,g,y,u?Object.keys(u):re,u||ne,n,!1);t&&(y+=4*t,b+=4*t)}if(!s){const n=c||ne;cn(e,r,f,y,b,h,d||n,t,!0)}p&&Nn(e,!0)}function cn(e,t,n,r,s,i,o,a,l){let c=!1;const u=1+4*t,h=e[l?6:7],d=h[u+1],p=h[u+3];let f=1===h[u+0]||!(h[u+2]||!a),m=0,g=0;const y=!0===o;let b=r,v=i.length;for(;b<d;){const r=jn(e,b);if(v)for(let s=0;s<i.length;s++){const a=i[s],u=a?l?a:Wn(a):null;if(u&&r===u){const r=An(e,b),a=Un(e,b),l=!!y||o[u],h=$n(e,b);Fn(h,r,l)&&qn(r,l,a,t)&&(Sn(e,b,l),xn(e,b,n,t),Mn(e,h,l)&&(dn(e,b,!0),c=!0)),i[s]=null,v--;break}}b+=4}if(v){const r=l?null:Hn(e,t);e:for(let a=0;a<i.length;a++){const u=i[a];if(!u)continue;const h=!!y||o[u],p=l?u:Wn(u),v=b>=d;for(let r=b;r<s;r+=4)if(jn(e,r)===p){const s=Un(e,r),i=Tn(e,r),o=An(e,r),a=$n(e,r);qn(o,h,s,t)&&(v&&(Rn(e,b,r),m++),Fn(a,o,h)&&((null===h||void 0===h&&h!==o)&&(f=!0),Sn(e,b,h),(null!==o||Mn(e,a,h))&&(dn(e,b,!0),c=!0)),s===t&&n===i||xn(e,b,n,t)),b+=4;continue e}null!=h&&(f=!0,m++,In(e,v?b:d+4*g,l,p,1|Ln(e,p,l,r),h,t,n),g++,s+=4,b+=4,c=!0)}}for(;b<s;){f=!0;const r=An(e,b),s=$n(e,b);Un(e,b),null!=r&&(f=!0),Fn(s,r,null)&&(Sn(e,b,null),Mn(e,s,r)&&(dn(e,b,!0),c=!0),xn(e,b,n,t)),b+=4}return function(e,t,n,r,s,i,o,a){const l=e[n?6:7],c=1+4*t;if(a){const e=s+4*o;for(let t=c+4;t<l.length;t+=4)l[t+1]=e,l[t+0]=1}l[c+0]=0,l[c+1]=s,l[c+2]=r,l[c+3]=o;let u=o;for(let h=1;h<c;h+=4)u+=l[h+3];if(!n){const t=e[6],n=i-t[2];for(let e=1;e<t.length;e+=4)t[e+1]+=n}l[0]=u}(e,t,l,a,d,s,m,f=f||p!==m),c&&Pn(e,!0),g}function un(e,t,n,r,s,i,o){n=s&&n?s(t,n):n,i||o?(i&&i.setValue(t,n),o&&o.setValue(t,n)):n?(n=n.toString(),pt(r)?r.setStyle(e,t,n,dt.DashCase):e.style.setProperty(t,n)):pt(r)?r.removeStyle(e,t,dt.DashCase):e.style.removeProperty(t)}function hn(e,t,n,r,s,i){s||i?(s&&s.setValue(t,n),i&&i.setValue(t,n)):""!==t&&(n?pt(r)?r.addClass(e,t):e.classList.add(t):pt(r)?r.removeClass(e,t):e.classList.remove(t))}function dn(e,t,n){const r=t>=10?t+0:t;n?e[r]|=1:e[r]&=-2}function pn(e,t){return 1==(1&e[t>=10?t+0:t])}function fn(e,t){return 2==(2&e[t>=10?t+0:t])}function mn(e,t){return 4==(4&e[t>=10?t+0:t])}function gn(e,t,n){return 31&e|t<<5|n<<19}function yn(e,t){const n=bn(t);return(2&t?e[4]:e[3])[n]}function bn(e){return e>>5&16383}function vn(e){const t=e>>19&16383;return t>=10?t:-1}function _n(e){return e[7][2]}function wn(e,t,n){e[t+1]=n}function Sn(e,t,n){e[t+2]=n}function En(e,t,n){const r=e[9];if(t){if(!r||0===n)return!0}else if(!r)return!1;return r[n]!==t}function Cn(e,t,n){let r=e[9]||(e[9]=[5,null,null,null,null]);return n>0?r[n]=t:(r.splice(n=r[0],0,t,null),r[0]+=2),n}function xn(e,t,n,r){const s=function(e,t){return n<<16|e}(r);e[t+3]=s}function Tn(e,t){return e[t+3]>>16&65535}function On(e,t){const n=Tn(e,t);if(n){const t=e[9];if(t)return t[n]}return null}function kn(e,t,n){e[1===t?t:t+0]=n}function $n(e,t){return e[1===t?t:t+0]}function An(e,t){return e[t+2]}function jn(e,t){return e[t+1]}function Pn(e,t){dn(e,1,t)}function Nn(e,t){t?e[1]|=8:e[1]&=-9}function Rn(e,t,n){if(t===n)return;const r=An(e,t),s=jn(e,t),i=$n(e,t),o=Tn(e,t),a=Un(e,t);let l=i,c=$n(e,n);const u=vn(l);if(u>=0){const t=$n(e,u);kn(e,u,gn(t,bn(t),n))}const h=vn(c);if(h>=0){const n=$n(e,h);kn(e,h,gn(n,bn(n),t))}Sn(e,t,An(e,n)),wn(e,t,jn(e,n)),kn(e,t,$n(e,n)),xn(e,t,Tn(e,n),Un(e,n)),Sn(e,n,r),wn(e,n,s),kn(e,n,i),xn(e,n,o,a)}function In(e,t,n,r,s,i,o,a){const l=t<e.length;e.splice(t,0,1|s|(n?2:0),r,i,0),xn(e,t,a,o),l&&function(e,n){for(let r=t+4;r<e.length;r+=4){const t=vn($n(e,r));if(t>0){const n=bn($n(e,t));kn(e,t,gn((pn(e,t)?1:0)|(fn(e,t)?2:0)|(mn(e,t)?4:0),n,r))}}}(e)}function Dn(e,t){return null!==e}function Ln(e,t,n,r){let s,i=r&&r(t)?4:0;return n?(i|=2,s=zn(e[4],t)):s=zn(e[3],t),gn(i,s=s>0?s+1:0,0)}function Mn(e,t,n){const r=yn(e,t);return!r||Fn(t,r,n)}function Fn(e,t,n){return!(2&e)&&t&&n&&4&e?t.toString()!==n.toString():t!==n}class Vn{constructor(e,t,n){this._element=t,this._type=n,this._values={},this._dirty=!1,this._factory=e}setValue(e,t){this._values[e]!==t&&(this._values[e]=t,this._dirty=!0)}buildPlayer(e,t){if(this._dirty){const n=this._factory.fn(this._element,this._type,this._values,t,e||null);return this._values={},this._dirty=!1,n}}}function Un(e,t){return 65535&e[t+3]}function zn(e,t){for(let n=2;n<e.length;n+=3)if(e[n]===t)return n;return-1}function Hn(e,t){const n=e[2];return n[2*t+1]||n[1]||null}function qn(e,t,n,r){return null==e||(null!=t?r<=n:n===r)}function Bn(e,t,n){return e[t?6:7][1+4*n+2]||null}function Gn(e,t,n,r){return!e[t?6:7][1+4*n+0]&&(r===sn||Bn(e,t,n)===r)}function Wn(e){return e.replace(/[a-z][A-Z]/g,e=>`${e.charAt(0)}-${e.charAt(1).toLowerCase()}`)}function Qn(e,t,n,r,s=0){const i=e[n?6:7];if(t>0){const e=1+4*t;for(;i.length<e;)i.push(0,r,null,0)}i.push(0,r,null,s)}const Kn=(()=>Promise.resolve(null))();function Zn(e){const t=e[fe],n=Xe(e);if(t.firstTemplatePass=!1,e[ve]=t.bindingStartIndex,!n){const n=tt();(function(t,n,r,s){r||De(e,n.preOrderHooks,n.preOrderCheckHooks,r,0,null)})(0,t,n),function(e){for(let t=e[Ee];null!==t;t=t[ye])if(t.length<xe&&-1===t[Oe]){const e=t;for(let t=0;t<e[ke].length;t++){const n=e[ke][t];Xn(n,n[fe],n[_e])}}}(e),Yn(t,e),Re(e),De(e,t.contentHooks,t.contentCheckHooks,n,1,void 0),function(e,t){const n=ct();try{if(e.expandoInstructions){let n=t[ve]=e.expandoStartIndex;rt(n);let r=-1,s=-1;for(let i=0;i<e.expandoInstructions.length;i++){const o=e.expandoInstructions[i];if("number"==typeof o){if(o<=0){Qe(s=-o);const t=e.expandoInstructions[++i];r=n+=Ie+t}else n+=o;rt(n)}else null!==o&&(t[ve]=n,o(2,Ae(t[r]),s),Be+=1+We,Ge=0,We=0),r++}}}finally{Qe(n)}}(t,e)}n&&t.staticContentQueries&&Yn(t,e),function(e){if(null!=e)for(let t=0;t<e.length;t++)nr(e[t])}(t.components)}function Yn(e,t){if(null!=e.contentQueries){it(0);for(let n=0;n<e.contentQueries.length;n++){const r=e.contentQueries[n];e.data[r].contentQueries(2,t[r],r)}}}function Xn(e,t,n){const r=He,s=Ke();let i;if(512&e[me])rr(_t(e));else try{Ye(!0),Ze(null),i=ot(e,e[be]),Re(e),er(t.template,tr(e),n),e[fe].firstTemplatePass=!1,Zn(e)}finally{at(i),Ye(r),Ze(s)}}function Jn(e,t,n){const r=e[we],s=ot(e,e[be]),i=!tt(),o=Xe(e);try{i&&!o&&r.begin&&r.begin(),o&&(n&&er(n,1,t),Zn(e),e[me]&=-5),Re(e),n&&er(n,2,t),Zn(e)}finally{i&&!o&&r.end&&r.end(),at(s)}}function er(e,t,n){ht=null;const r=ct();try{Qe(null),e(t,n)}finally{ut(r)}}function tr(e){return Xe(e)?1:2}function nr(e){const t=Ve(),n=function(n,r){const s=t[e];return je(s)?s:s[pe]}();(128==(128&n[me])||Xe(t))&&80&n[me]&&(function(e){const t=e[fe];for(let n=e.length;n<t.blueprint.length;n++)e[n]=t.blueprint[n]}(n),function(e,t){const n=e[fe],r=ot(e,e[be]),s=n.template,i=Xe(e);try{Re(e),i&&sr(1,n,t),er(s,tr(e),t),Zn(e),i&&!n.staticViewQueries||sr(2,n,t)}finally{at(r)}}(n,n[_e]))}function rr(e){for(let t=0;t<e.components.length;t++){const n=e.components[t];Jn(Ne(n),n)}}function sr(e,t,n){const r=t.viewQuery;r&&(it(t.viewQueryStartIndex),r(e,n))}function ir(e,t,n){const r=Ke();r.stylingTemplate||(r.stylingTemplate=gt());const s=lr();yt(r.stylingTemplate,s),(r.onElementCreationFns=r.onElementCreationFns||[]).push(()=>{(function(e,t,n,r,s){!function(e,t,n,r,s){if(16&e[1])return;if(!function(e,t,n,r){const s=e[2],i=2*t;return!(i<s.length&&s[i+0]>=0||(yt(e,t,e[5].length,r),0))}(e,t,0,s))return;r&&(r=function(e){const t=[];for(let n=0;n<e.length;n++)t.push(Wn(e[n]));return t}(r));const i=e[5],o=i[1],a=i[0],l=e[6],c=e[7],u=4*a;let h=10+u,d=h+4*o,p=d+u;const f=i.length;i.push(r?r.length:0,n?n.length:0);let m=0;const g=[];if(r&&r.length)for(let j=0;j<r.length;j++){const t=r[j];let n=an(e,t,10,h);-1==n&&(n=h+m,m+=4,g.push(t)),i.push(n)}const y=[];if(n&&n.length)for(let j=0;j<n.length;j++){const t=n[j];let r=an(e,t,h,d);-1==r?(r=d+m,m+=4,y.push(t)):r+=4*g.length,i.push(r)}let b=2;if(g.length)for(;b<f;){const e=i[b+0],t=i[b+1];if(t){const n=b+2+e;for(let e=n;e<n+t;e++)i[e]+=4*g.length}b+=2+(e+t)}const v=y.length+g.length;for(let j=10;j<e.length;j+=4){const t=j>=d,n=j>=(t?p:h),r=$n(e,j),s=bn(r);let i=vn(r);kn(e,j,gn(r,s,i+=t?n?4*g.length:0:4*v+4*(n?g.length:0)))}for(let j=0;j<4*g.length;j++)e.splice(p,0,null),e.splice(h,0,null),h++,d++,p+=2;for(let j=0;j<4*y.length;j++)e.splice(d,0,null),e.push(null),d++,p++;const _=e[4],w=e[3];for(let j=0;j<v;j++){const n=j>=g.length,r=n?j-g.length:j,i=n?y[r]:g[r];let l,c;n?(l=p+4*(o+r),c=h+4*(o+r)):(l=d+4*(a+r),c=10+4*(a+r));let u=n?_:w,f=zn(u,i);-1===f?(E=u,C=i,x=!n&&null,T=t,null===(S=null)&&(S=E.length,E.push(null,null,null),E[S+0]=C),E[S+1]=x,E[S+2]=T,f=S+1):f+=1;const m=Ln(e,i,n,s||null);kn(e,c,gn(m,f,l)),wn(e,c,i),Sn(e,c,null),xn(e,c,0,t),kn(e,l,gn(m,f,c)),wn(e,l,i),Sn(e,l,null),xn(e,l,0,t)}var S,E,C,x,T;i[1]=o+y.length,i[0]=a+g.length,l[0]+=y.length,c[0]+=g.length;const O=4*g.length,k=4*y.length,$=c.length;Qn(e,t,!1,d+4*a,g.length);for(let j=1;j<$;j+=4)c[j+1]+=k+O;const A=l.length;Qn(e,t,!0,p+4*o,y.length);for(let j=1;j<A;j+=4)l[j+1]+=2*O+k;kn(e,1,gn(0,0,d))}(e.stylingTemplate,s,t,n,r)})(r,e,t,n,s),function(e,t){let n=e[8];n||(n=e[8]=[mt]),n[0]=t}(r.stylingTemplate,s)})}function or(e,t){const n=lr(),r=cr(ct(),Ve());!function(e,t,n,s){const i=r[8],o=function(e,t){for(let n=1;n<e.length;n+=3)if(e[n+0]>t)return n;return e.length}(i,t);i.splice(o,0,t,n,s)}(0,n,ln,[r,e,t,n])}function ar(){!function(e,t){const n=Ve(),r=3===Pe(t,n).type?n[Se]:null,s=0!=(8&n[me]);(function(e,t,n,r,s,i,o=0){let a=0;if(function(e,t){const n=e[8];return!n||n[0]===t}(e,o)&&(function(e){const t=e[8];if(t){for(let e=1;e<t.length;e+=3)t[e+1].apply(this,t[e+2]);t.length=1}}(e),function(e){return pn(e,1)}(e))){const s=e[0],i=8&e[1],o=_n(e);for(let n=10;n<e.length;n+=4)if(pn(e,n)){const i=$n(e,n),a=Un(e,n),l=jn(e,n),c=An(e,n),u=4&i?Hn(e,a):null,h=On(e,n),d=!!(2&i);let p=c;n<o&&!Dn(p)&&(p=An(e,vn(i))),Dn(p)||(p=yn(e,i)),t&&(!r||p)&&(d?hn(s,l,!!p,t,null,h):un(s,l,p,t,u,null,h)),dn(e,n,!1)}if(i){const t=Array.isArray(n)?_t(n):n,i=e[9],o=i[0];for(let e=1;e<o;e+=2){const n=i[e],o=e+1,l=i[o];if(n){const e=n.buildPlayer(l,r);void 0!==e&&(null!=e&&bt(i,t,s,e,o)&&a++,l&&l.destroy())}else l&&l.destroy()}Nn(e,!1)}Pn(e,!1)}return a})(cr(t,n),r,n,s,0,0,e)>0&&function(e,t){const n=0===e.flags;if(e.flags|=2,n&&e.clean==Kn){let t;e.clean=new Promise(e=>t=e),e.scheduler(()=>{if(1&e.flags&&(e.flags&=-2,rr(e)),2&e.flags){e.flags&=-3;const t=e.playerHandler;t&&t.flushPlayers()}e.clean=Kn,t(null)})}}(_t(n)),Fe(null)}(lr(),ct())}function lr(){return Be+Ge}function cr(e,t){let n=Me;return n||Fe(n=function(e,t){let n=e,r=t[n],s=t;for(;Array.isArray(r);)s=r,r=r[pe];if(i=s,Array.isArray(i)&&"number"==typeof i[Te])return s;{const i=Pe(e-xe,t).stylingTemplate;return s!==t&&(n=pe),s[n]=i?function(e,t){const n=t.slice();for(let r=0;r<10;r++){const e=t[r];Array.isArray(e)&&(n[r]=e.slice())}return n[0]=e,n[1]|=16,n}(r,i):gt(r)}var i}(e+xe,t)),n}function ur(e){return!!e&&"function"==typeof e.then}function hr(e){return!!e&&"function"==typeof e.subscribe}let dr=null;function pr(){if(!dr){const e=x.Symbol;if(e&&e.iterator)dr=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const n=e[t];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(dr=n)}}}return dr}function fr(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}function mr(e,t){const n=yr(e),r=yr(t);if(n&&r)return function(e,t,n){const r=e[pr()](),s=t[pr()]();for(;;){const e=r.next(),t=s.next();if(e.done&&t.done)return!0;if(e.done||t.done)return!1;if(!n(e.value,t.value))return!1}}(e,t,mr);{const s=e&&("object"==typeof e||"function"==typeof e),i=t&&("object"==typeof t||"function"==typeof t);return!(n||!s||r||!i)||fr(e,t)}}class gr{constructor(e){this.wrapped=e}static wrap(e){return new gr(e)}static unwrap(e){return gr.isWrapped(e)?e.wrapped:e}static isWrapped(e){return e instanceof gr}}function yr(e){return!!br(e)&&(Array.isArray(e)||!(e instanceof Map)&&pr()in e)}function br(e){return null!==e&&("function"==typeof e||"object"==typeof e)}class vr{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}const _r=new j("The presence of this token marks an injector as being the root injector.");class wr{}class Sr{}function Er(e){const t=Error(`No component factory found for ${_(e)}. Did you add it to @NgModule.entryComponents?`);return t[Cr]=e,t}const Cr="ngComponent";class xr{resolveComponentFactory(e){throw Er(e)}}const Tr=(()=>{class e{}return e.NULL=new xr,e})();class Or{constructor(e,t,n){this._parent=t,this._ngModule=n,this._factories=new Map;for(let r=0;r<e.length;r++){const t=e[r];this._factories.set(t.componentType,t)}}resolveComponentFactory(e){let t=this._factories.get(e);if(!t&&this._parent&&(t=this._parent.resolveComponentFactory(e)),!t)throw Er(e);return new kr(t,this._ngModule)}}class kr extends Sr{constructor(e,t){super(),this.factory=e,this.ngModule=t,this.selector=e.selector,this.componentType=e.componentType,this.ngContentSelectors=e.ngContentSelectors,this.inputs=e.inputs,this.outputs=e.outputs}create(e,t,n,r){return this.factory.create(e,t,n,r||this.ngModule)}}class $r{}class Ar{}function jr(...e){}const Pr=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=(()=>Nr(e)),e})(),Nr=jr;class Rr{}class Ir{}const Dr=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}(),Lr=(()=>{class e{}return e.__NG_ELEMENT_ID__=(()=>Mr()),e})(),Mr=jr;class Fr{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const Vr=new Fr("8.0.0");class Ur{constructor(){}supports(e){return yr(e)}create(e){return new Hr(e)}}const zr=(e,t)=>t;class Hr{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||zr}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,r=0,s=null;for(;t||n;){const i=!n||t&&t.currentIndex<Wr(n,r,s)?t:n,o=Wr(i,r,s),a=i.currentIndex;if(i===n)r--,n=n._nextRemoved;else if(t=t._next,null==i.previousIndex)r++;else{s||(s=[]);const e=o-r,t=a-r;if(e!=t){for(let n=0;n<e;n++){const r=n<s.length?s[n]:s[n]=0,i=r+n;t<=i&&i<e&&(s[n]=r+1)}s[i.previousIndex]=t-e}}o!==a&&e(i,o,a)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!yr(e))throw new Error(`Error trying to diff '${_(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t,n,r,s=this._itHead,i=!1;if(Array.isArray(e)){this.length=e.length;for(let t=0;t<this.length;t++)r=this._trackByFn(t,n=e[t]),null!==s&&fr(s.trackById,r)?(i&&(s=this._verifyReinsertion(s,n,r,t)),fr(s.item,n)||this._addIdentityChange(s,n)):(s=this._mismatch(s,n,r,t),i=!0),s=s._next}else t=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[pr()]();let r;for(;!(r=n.next()).done;)t(r.value)}}(e,e=>{r=this._trackByFn(t,e),null!==s&&fr(s.trackById,r)?(i&&(s=this._verifyReinsertion(s,e,r,t)),fr(s.item,e)||this._addIdentityChange(s,e)):(s=this._mismatch(s,e,r,t),i=!0),s=s._next,t++}),this.length=t;return this._truncate(s),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e,t;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,r){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(fr(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(fr(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,r)):e=this._addAfter(new qr(t,n),s,r),e}_verifyReinsertion(e,t,n,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?e=this._reinsertAfter(s,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,s=e._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new Gr),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t?e:(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e,e)}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Gr),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class qr{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Br{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&fr(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class Gr{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new Br,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Wr(e,t,n){const r=e.previousIndex;if(null===r)return r;let s=0;return n&&r<n.length&&(s=n[r]),r+t+s}class Qr{constructor(){}supports(e){return e instanceof Map||br(e)}create(){return new Kr}}class Kr{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||br(e)))throw new Error(`Error trying to diff '${_(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(e,n)=>{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const r=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,r)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const r=n._prev,s=n._next;return r&&(r._next=s),s&&(s._prev=r),n._next=null,n._prev=null,n}const n=new Zr(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){fr(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class Zr{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}const Yr=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new p,new h]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.ngInjectableDef=g({providedIn:"root",factory:()=>new e([new Ur])}),e})(),Xr=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new p,new h]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.ngInjectableDef=g({providedIn:"root",factory:()=>new e([new Qr])}),e})(),Jr=(()=>{class e{}return e.__NG_ELEMENT_ID__=(()=>es()),e})(),es=(...e)=>{},ts=[new Qr],ns=new Yr([new Ur]),rs=new Xr(ts),ss=(()=>{class e{}return e.__NG_ELEMENT_ID__=(()=>is(e,Pr)),e})(),is=jr,os=(()=>{class e{}return e.__NG_ELEMENT_ID__=(()=>as(e,Pr)),e})(),as=jr;function ls(e,t,n,r){let s=`ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '${t}'. Current value: '${n}'.`;return r&&(s+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){const n=new Error(e);return cs(n,t),n}(s,e)}function cs(e,t){e[Z]=t,e[X]=t.logError.bind(t)}function us(e){return new Error(`ViewDestroyedError: Attempt to use a destroyed view: ${e}`)}function hs(e,t,n){const r=e.state,s=1792&r;return s===t?(e.state=-1793&r|n,e.initIndex=-1,!0):s===n}function ds(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function ps(e,t){return e.nodes[t]}function fs(e,t){return e.nodes[t]}function ms(e,t){return e.nodes[t]}function gs(e,t){return e.nodes[t]}function ys(e,t){return e.nodes[t]}const bs={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},vs=()=>{},_s=new Map;function ws(e){let t=_s.get(e);return t||(t=_(e)+"_"+_s.size,_s.set(e,t)),t}const Ss="$$undefined",Es="$$empty";function Cs(e){return{id:Ss,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}let xs=0;function Ts(e,t,n,r){return!(!(2&e.state)&&fr(e.oldValues[t.bindingIndex+n],r))}function Os(e,t,n,r){return!!Ts(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function ks(e,t,n,r){const s=e.oldValues[t.bindingIndex+n];if(1&e.state||!mr(s,r)){const i=t.bindings[n].name;throw ls(bs.createDebugContext(e,t.nodeIndex),`${i}: ${s}`,`${i}: ${r}`,0!=(1&e.state))}}function $s(e){let t=e;for(;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function As(e,t){let n=e;for(;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function js(e,t,n,r){try{return $s(33554432&e.def.nodes[t].flags?fs(e,t).componentView:e),bs.handleEvent(e,t,n,r)}catch(s){e.root.errorHandler.handleError(s)}}function Ps(e){return e.parent?fs(e.parent,e.parentNodeDef.nodeIndex):null}function Ns(e){return e.parent?e.parentNodeDef.parent:null}function Rs(e,t){switch(201347067&t.flags){case 1:return fs(e,t.nodeIndex).renderElement;case 2:return ps(e,t.nodeIndex).renderText}}function Is(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function Ds(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function Ls(e){return 1<<e%32}function Ms(e){const t={};let n=0;const r={};return e&&e.forEach(([e,s])=>{"number"==typeof e?(t[e]=s,n|=Ls(e)):r[e]=s}),{matchedQueries:t,references:r,matchedQueryIds:n}}function Fs(e,t){return e.map(e=>{let n,r;return Array.isArray(e)?[r,n]=e:(r=0,n=e),n&&("function"==typeof n||"object"==typeof n)&&t&&Object.defineProperty(n,P,{value:t,configurable:!0}),{flags:r,token:n,tokenKey:ws(n)}})}function Vs(e,t,n){let r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===te.Native?fs(e,n.renderParent.nodeIndex).renderElement:void 0:t}const Us=new WeakMap;function zs(e){let t=Us.get(e);return t||((t=e(()=>vs)).factory=e,Us.set(e,t)),t}function Hs(e,t,n,r,s){3===t&&(n=e.renderer.parentNode(Rs(e,e.def.lastRenderRootNode))),qs(e,t,0,e.def.nodes.length-1,n,r,s)}function qs(e,t,n,r,s,i,o){for(let a=n;a<=r;a++){const n=e.def.nodes[a];11&n.flags&&Gs(e,n,t,s,i,o),a+=n.childCount}}function Bs(e,t,n,r,s,i){let o=e;for(;o&&!Is(o);)o=o.parent;const a=o.parent,l=Ns(o),c=l.nodeIndex+l.childCount;for(let u=l.nodeIndex+1;u<=c;u++){const e=a.def.nodes[u];e.ngContentIndex===t&&Gs(a,e,n,r,s,i),u+=e.childCount}if(!a.parent){const o=e.root.projectableNodes[t];if(o)for(let t=0;t<o.length;t++)Ws(e,o[t],n,r,s,i)}}function Gs(e,t,n,r,s,i){if(8&t.flags)Bs(e,t.ngContent.index,n,r,s,i);else{const o=Rs(e,t);if(3===n&&33554432&t.flags&&48&t.bindingFlags?(16&t.bindingFlags&&Ws(e,o,n,r,s,i),32&t.bindingFlags&&Ws(fs(e,t.nodeIndex).componentView,o,n,r,s,i)):Ws(e,o,n,r,s,i),16777216&t.flags){const o=fs(e,t.nodeIndex).viewContainer._embeddedViews;for(let e=0;e<o.length;e++)Hs(o[e],n,r,s,i)}1&t.flags&&!t.element.name&&qs(e,n,t.nodeIndex+1,t.nodeIndex+t.childCount,r,s,i)}}function Ws(e,t,n,r,s,i){const o=e.renderer;switch(n){case 1:o.appendChild(r,t);break;case 2:o.insertBefore(r,t,s);break;case 3:o.removeChild(r,t);break;case 0:i.push(t)}}const Qs=/^:([^:]+):(.+)$/;function Ks(e){if(":"===e[0]){const t=e.match(Qs);return[t[1],t[2]]}return["",e]}function Zs(e){let t=0;for(let n=0;n<e.length;n++)t|=e[n].flags;return t}function Ys(e,t,n,r,s,i,o,a,l,c,u,h,d,p,f,m,g,y,b,v){switch(e){case 1:return t+Xs(n)+r;case 2:return t+Xs(n)+r+Xs(s)+i;case 3:return t+Xs(n)+r+Xs(s)+i+Xs(o)+a;case 4:return t+Xs(n)+r+Xs(s)+i+Xs(o)+a+Xs(l)+c;case 5:return t+Xs(n)+r+Xs(s)+i+Xs(o)+a+Xs(l)+c+Xs(u)+h;case 6:return t+Xs(n)+r+Xs(s)+i+Xs(o)+a+Xs(l)+c+Xs(u)+h+Xs(d)+p;case 7:return t+Xs(n)+r+Xs(s)+i+Xs(o)+a+Xs(l)+c+Xs(u)+h+Xs(d)+p+Xs(f)+m;case 8:return t+Xs(n)+r+Xs(s)+i+Xs(o)+a+Xs(l)+c+Xs(u)+h+Xs(d)+p+Xs(f)+m+Xs(g)+y;case 9:return t+Xs(n)+r+Xs(s)+i+Xs(o)+a+Xs(l)+c+Xs(u)+h+Xs(d)+p+Xs(f)+m+Xs(g)+y+Xs(b)+v;default:throw new Error("Does not support more than 9 expressions")}}function Xs(e){return null!=e?e.toString():""}const Js=new Object,ei=ws(D),ti=ws(R),ni=ws($r);function ri(e,t,n,r){return n=E(n),{index:-1,deps:Fs(r,_(t)),flags:e,token:t,value:n}}function si(e){const t={},n=[];let r=!1;for(let s=0;s<e.length;s++){const i=e[s];i.token===_r&&!0===i.value&&(r=!0),1073741824&i.flags&&n.push(i.token),i.index=s,t[ws(i.token)]=i}return{factory:null,providersByKey:t,providers:e,modules:n,isRoot:r}}function ii(e,t,n=D.THROW_IF_NOT_FOUND){const r=k(e);try{if(8&t.flags)return t.token;if(2&t.flags&&(n=null),1&t.flags)return e._parent.get(t.token,n);const o=t.tokenKey;switch(o){case ei:case ti:case ni:return e}const a=e._def.providersByKey[o];let l;if(a){let t=e._providers[a.index];return void 0===t&&(t=e._providers[a.index]=oi(e,a)),t===Js?void 0:t}if((l=b(t.token))&&(s=e,null!=(i=l).providedIn&&(function(e,t){return e._def.modules.indexOf(i.providedIn)>-1}(s)||"root"===i.providedIn&&s._def.isRoot))){const n=e._providers.length;return e._def.providers[n]=e._def.providersByKey[t.tokenKey]={flags:5120,value:l.factory,deps:[],index:n,token:t.token},e._providers[n]=Js,e._providers[n]=oi(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{k(r)}var s,i}function oi(e,t){let n;switch(201347067&t.flags){case 512:n=function(e,t,n){const r=n.length;switch(r){case 0:return new t;case 1:return new t(ii(e,n[0]));case 2:return new t(ii(e,n[0]),ii(e,n[1]));case 3:return new t(ii(e,n[0]),ii(e,n[1]),ii(e,n[2]));default:const s=new Array(r);for(let t=0;t<r;t++)s[t]=ii(e,n[t]);return new t(...s)}}(e,t.value,t.deps);break;case 1024:n=function(e,t,n){const r=n.length;switch(r){case 0:return t();case 1:return t(ii(e,n[0]));case 2:return t(ii(e,n[0]),ii(e,n[1]));case 3:return t(ii(e,n[0]),ii(e,n[1]),ii(e,n[2]));default:const s=Array(r);for(let t=0;t<r;t++)s[t]=ii(e,n[t]);return t(...s)}}(e,t.value,t.deps);break;case 2048:n=ii(e,t.deps[0]);break;case 256:n=t.value}return n===Js||null===n||"object"!=typeof n||131072&t.flags||"function"!=typeof n.ngOnDestroy||(t.flags|=131072),void 0===n?Js:n}function ai(e,t){const n=e.viewContainer._embeddedViews;if((null==t||t>=n.length)&&(t=n.length-1),t<0)return null;const r=n[t];return r.viewContainerParent=null,hi(n,t),bs.dirtyParentQueries(r),ci(r),r}function li(e,t,n){const r=t?Rs(t,t.def.lastRenderRootNode):e.renderElement,s=n.renderer.parentNode(r),i=n.renderer.nextSibling(r);Hs(n,2,s,i,void 0)}function ci(e){Hs(e,3,null,null,void 0)}function ui(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function hi(e,t){t>=e.length-1?e.pop():e.splice(t,1)}const di=new Object;function pi(e,t,n,r,s,i){return new fi(e,t,n,r,s,i)}class fi extends Sr{constructor(e,t,n,r,s,i){super(),this.selector=e,this.componentType=t,this._inputs=r,this._outputs=s,this.ngContentSelectors=i,this.viewDefFactory=n}get inputs(){const e=[],t=this._inputs;for(let n in t)e.push({propName:n,templateName:t[n]});return e}get outputs(){const e=[];for(let t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e}create(e,t,n,r){if(!r)throw new Error("ngModule should be provided");const s=zs(this.viewDefFactory),i=s.nodes[0].element.componentProvider.nodeIndex,o=bs.createRootView(e,t||[],n,s,r,di),a=ms(o,i).instance;return n&&o.renderer.setAttribute(fs(o,0).renderElement,"ng-version",Vr.full),new mi(o,new vi(o),a)}}class mi extends wr{constructor(e,t,n){super(),this._view=e,this._viewRef=t,this._component=n,this._elDef=this._view.def.nodes[0],this.hostView=t,this.changeDetectorRef=t,this.instance=n}get location(){return new Pr(fs(this._view,this._elDef.nodeIndex).renderElement)}get injector(){return new Ei(this._view,this._elDef)}get componentType(){return this._component.constructor}destroy(){this._viewRef.destroy()}onDestroy(e){this._viewRef.onDestroy(e)}}function gi(e,t,n){return new yi(e,t,n)}class yi{constructor(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}get element(){return new Pr(this._data.renderElement)}get injector(){return new Ei(this._view,this._elDef)}get parentInjector(){let e=this._view,t=this._elDef.parent;for(;!t&&e;)t=Ns(e),e=e.parent;return e?new Ei(e,t):new Ei(this._view,null)}clear(){for(let e=this._embeddedViews.length-1;e>=0;e--){const t=ai(this._data,e);bs.destroyView(t)}}get(e){const t=this._embeddedViews[e];if(t){const e=new vi(t);return e.attachToViewContainerRef(this),e}return null}get length(){return this._embeddedViews.length}createEmbeddedView(e,t,n){const r=e.createEmbeddedView(t||{});return this.insert(r,n),r}createComponent(e,t,n,r,s){const i=n||this.parentInjector;s||e instanceof kr||(s=i.get($r));const o=e.create(i,r,void 0,s);return this.insert(o.hostView,t),o}insert(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");const n=e;return function(e,t,n,r){let s=t.viewContainer._embeddedViews;null==n&&(n=s.length),r.viewContainerParent=e,ui(s,n,r),function(e,t){const n=Ps(t);if(!n||n===e||16&t.state)return;t.state|=16;let r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,n){if(4&n.flags)return;t.parent.def.nodeFlags|=4,n.flags|=4;let r=n.parent;for(;r;)r.childFlags|=4,r=r.parent}(0,t.parentNodeDef)}(t,r),bs.dirtyParentQueries(r),li(t,n>0?s[n-1]:null,r)}(this._view,this._data,t,n._view),n.attachToViewContainerRef(this),e}move(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");const n=this._embeddedViews.indexOf(e._view);return function(e,t,r){const s=e.viewContainer._embeddedViews,i=s[n];hi(s,n),null==r&&(r=s.length),ui(s,r,i),bs.dirtyParentQueries(i),ci(i),li(e,r>0?s[r-1]:null,i)}(this._data,0,t),e}indexOf(e){return this._embeddedViews.indexOf(e._view)}remove(e){const t=ai(this._data,e);t&&bs.destroyView(t)}detach(e){const t=ai(this._data,e);return t?new vi(t):null}}function bi(e){return new vi(e)}class vi{constructor(e){this._view=e,this._viewContainerRef=null,this._appRef=null}get rootNodes(){return function(e){const t=[];return Hs(e,0,void 0,void 0,t),t}(this._view)}get context(){return this._view.context}get destroyed(){return 0!=(128&this._view.state)}markForCheck(){$s(this._view)}detach(){this._view.state&=-5}detectChanges(){const e=this._view.root.rendererFactory;e.begin&&e.begin();try{bs.checkAndUpdateView(this._view)}finally{e.end&&e.end()}}checkNoChanges(){bs.checkNoChangesView(this._view)}reattach(){this._view.state|=4}onDestroy(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)}destroy(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),bs.destroyView(this._view)}detachFromAppRef(){this._appRef=null,ci(this._view),bs.dirtyParentQueries(this._view)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}}function _i(e,t){return new wi(e,t)}class wi extends ss{constructor(e,t){super(),this._parentView=e,this._def=t}createEmbeddedView(e){return new vi(bs.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))}get elementRef(){return new Pr(fs(this._parentView,this._def.nodeIndex).renderElement)}}function Si(e,t){return new Ei(e,t)}class Ei{constructor(e,t){this.view=e,this.elDef=t}get(e,t=D.THROW_IF_NOT_FOUND){return bs.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:ws(e)},t)}}function Ci(e,t){const n=e.def.nodes[t];if(1&n.flags){const t=fs(e,n.nodeIndex);return n.element.template?t.template:t.renderElement}if(2&n.flags)return ps(e,n.nodeIndex).renderText;if(20240&n.flags)return ms(e,n.nodeIndex).instance;throw new Error(`Illegal state: read nodeValue for node index ${t}`)}function xi(e){return new Ti(e.renderer)}class Ti{constructor(e){this.delegate=e}selectRootElement(e){return this.delegate.selectRootElement(e)}createElement(e,t){const[n,r]=Ks(t),s=this.delegate.createElement(r,n);return e&&this.delegate.appendChild(e,s),s}createViewRoot(e){return e}createTemplateAnchor(e){const t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t}createText(e,t){const n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n}projectNodes(e,t){for(let n=0;n<t.length;n++)this.delegate.appendChild(e,t[n])}attachViewAfter(e,t){const n=this.delegate.parentNode(e),r=this.delegate.nextSibling(e);for(let s=0;s<t.length;s++)this.delegate.insertBefore(n,t[s],r)}detachView(e){for(let t=0;t<e.length;t++){const n=e[t],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}}destroyView(e,t){for(let n=0;n<t.length;n++)this.delegate.destroyNode(t[n])}listen(e,t,n){return this.delegate.listen(e,t,n)}listenGlobal(e,t,n){return this.delegate.listen(e,t,n)}setElementProperty(e,t,n){this.delegate.setProperty(e,t,n)}setElementAttribute(e,t,n){const[r,s]=Ks(t);null!=n?this.delegate.setAttribute(e,s,n,r):this.delegate.removeAttribute(e,s,r)}setBindingDebugInfo(e,t,n){}setElementClass(e,t,n){n?this.delegate.addClass(e,t):this.delegate.removeClass(e,t)}setElementStyle(e,t,n){null!=n?this.delegate.setStyle(e,t,n):this.delegate.removeStyle(e,t)}invokeElementMethod(e,t,n){e[t].apply(e,n)}setText(e,t){this.delegate.setValue(e,t)}animate(){throw new Error("Renderer.animate is no longer supported!")}}function Oi(e,t,n,r){return new ki(e,t,n,r)}class ki{constructor(e,t,n,r){this._moduleType=e,this._parent=t,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){const t=e._def,n=e._providers=new Array(t.providers.length);for(let r=0;r<t.providers.length;r++){const s=t.providers[r];4096&s.flags||void 0===n[r]&&(n[r]=oi(e,s))}}(this)}get(e,t=D.THROW_IF_NOT_FOUND,n=f.Default){let r=0;return n&f.SkipSelf?r|=1:n&f.Self&&(r|=4),ii(this,{token:e,tokenKey:ws(e),flags:r},t)}get instance(){return this.get(this._moduleType)}get componentFactoryResolver(){return this.get(Tr)}destroy(){if(this._destroyed)throw new Error(`The ng module ${_(this.instance.constructor)} has already been destroyed.`);this._destroyed=!0,function(e,t){const n=e._def,r=new Set;for(let s=0;s<n.providers.length;s++)if(131072&n.providers[s].flags){const t=e._providers[s];if(t&&t!==Js){const e=t.ngOnDestroy;"function"!=typeof e||r.has(t)||(e.apply(t),r.add(t))}}}(this),this._destroyListeners.forEach(e=>e())}onDestroy(e){this._destroyListeners.push(e)}}const $i=ws(Rr),Ai=ws(Lr),ji=ws(Pr),Pi=ws(os),Ni=ws(ss),Ri=ws(Jr),Ii=ws(D),Di=ws(R);function Li(e,t,n,r,s,i,o,a){const l=[];if(o)for(let u in o){const[e,t]=o[u];l[e]={flags:8,name:u,nonMinifiedName:t,ns:null,securityContext:null,suffix:null}}const c=[];if(a)for(let u in a)c.push({type:1,propName:u,target:null,eventName:a[u]});return Fi(e,t|=16384,n,r,s,s,i,l,c)}function Mi(e,t,n,r,s){return Fi(-1,e,t,0,n,r,s)}function Fi(e,t,n,r,s,i,o,a,l){const{matchedQueries:c,references:u,matchedQueryIds:h}=Ms(n);l||(l=[]),a||(a=[]),i=E(i);const d=Fs(o,_(s));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:h,references:u,ngContentIndex:-1,childCount:r,bindings:a,bindingFlags:Zs(a),outputs:l,element:null,provider:{token:s,value:i,deps:d},text:null,query:null,ngContent:null}}function Vi(e,t){return qi(e,t)}function Ui(e,t){let n=e;for(;n.parent&&!Is(n);)n=n.parent;return Bi(n.parent,Ns(n),!0,t.provider.value,t.provider.deps)}function zi(e,t){const n=Bi(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(let r=0;r<t.outputs.length;r++){const s=t.outputs[r],i=n[s.propName];if(!hr(i))throw new Error(`@Output ${s.propName} not initialized in '${n.constructor.name}'.`);{const n=i.subscribe(Hi(e,t.parent.nodeIndex,s.eventName));e.disposables[t.outputIndex+r]=n.unsubscribe.bind(n)}}return n}function Hi(e,t,n){return r=>js(e,t,n,r)}function qi(e,t){const n=(8192&t.flags)>0,r=t.provider;switch(201347067&t.flags){case 512:return Bi(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,s){const i=s.length;switch(i){case 0:return r();case 1:return r(Wi(e,t,n,s[0]));case 2:return r(Wi(e,t,n,s[0]),Wi(e,t,n,s[1]));case 3:return r(Wi(e,t,n,s[0]),Wi(e,t,n,s[1]),Wi(e,t,n,s[2]));default:const o=Array(i);for(let r=0;r<i;r++)o[r]=Wi(e,t,n,s[r]);return r(...o)}}(e,t.parent,n,r.value,r.deps);case 2048:return Wi(e,t.parent,n,r.deps[0]);case 256:return r.value}}function Bi(e,t,n,r,s){const i=s.length;switch(i){case 0:return new r;case 1:return new r(Wi(e,t,n,s[0]));case 2:return new r(Wi(e,t,n,s[0]),Wi(e,t,n,s[1]));case 3:return new r(Wi(e,t,n,s[0]),Wi(e,t,n,s[1]),Wi(e,t,n,s[2]));default:const o=new Array(i);for(let r=0;r<i;r++)o[r]=Wi(e,t,n,s[r]);return new r(...o)}}const Gi={};function Wi(e,t,n,r,s=D.THROW_IF_NOT_FOUND){if(8&r.flags)return r.token;const i=e;2&r.flags&&(s=null);const o=r.tokenKey;o===Ri&&(n=!(!t||!t.element.componentView)),t&&1&r.flags&&(n=!1,t=t.parent);let a=e;for(;a;){if(t)switch(o){case $i:return xi(Qi(a,t,n));case Ai:return Qi(a,t,n).renderer;case ji:return new Pr(fs(a,t.nodeIndex).renderElement);case Pi:return fs(a,t.nodeIndex).viewContainer;case Ni:if(t.element.template)return fs(a,t.nodeIndex).template;break;case Ri:return bi(Qi(a,t,n));case Ii:case Di:return Si(a,t);default:const e=(n?t.element.allProviders:t.element.publicProviders)[o];if(e){let t=ms(a,e.nodeIndex);return t||(t={instance:qi(a,e)},a.nodes[e.nodeIndex]=t),t.instance}}n=Is(a),t=Ns(a),a=a.parent,4&r.flags&&(a=null)}const l=i.root.injector.get(r.token,Gi);return l!==Gi||s===Gi?l:i.root.ngModule.injector.get(r.token,s)}function Qi(e,t,n){let r;if(n)r=fs(e,t.nodeIndex).componentView;else for(r=e;r.parent&&!Is(r);)r=r.parent;return r}function Ki(e,t,n,r,s,i){if(32768&n.flags){const t=fs(e,n.parent.nodeIndex).componentView;2&t.def.flags&&(t.state|=8)}if(t.instance[n.bindings[r].name]=s,524288&n.flags){i=i||{};const t=gr.unwrap(e.oldValues[n.bindingIndex+r]);i[n.bindings[r].nonMinifiedName]=new vr(t,s,0!=(2&e.state))}return e.oldValues[n.bindingIndex+r]=s,i}function Zi(e,t){if(!(e.def.nodeFlags&t))return;const n=e.def.nodes;let r=0;for(let s=0;s<n.length;s++){const i=n[s];let o=i.parent;for(!o&&i.flags&t&&Xi(e,s,i.flags&t,r++),0==(i.childFlags&t)&&(s+=i.childCount);o&&1&o.flags&&s===o.nodeIndex+o.childCount;)o.directChildFlags&t&&(r=Yi(e,o,t,r)),o=o.parent}}function Yi(e,t,n,r){for(let s=t.nodeIndex+1;s<=t.nodeIndex+t.childCount;s++){const t=e.def.nodes[s];t.flags&n&&Xi(e,s,t.flags&n,r++),s+=t.childCount}return r}function Xi(e,t,n,r){const s=ms(e,t);if(!s)return;const i=s.instance;i&&(bs.setCurrentNode(e,t),1048576&n&&ds(e,512,r)&&i.ngAfterContentInit(),2097152&n&&i.ngAfterContentChecked(),4194304&n&&ds(e,768,r)&&i.ngAfterViewInit(),8388608&n&&i.ngAfterViewChecked(),131072&n&&i.ngOnDestroy())}const Ji=new j("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>de});class eo extends r.a{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let r,i=e=>null,o=()=>null;e&&"object"==typeof e?(r=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(i=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(o=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(r=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(i=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(o=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const a=super.subscribe(r,i,o);return e instanceof s.a&&e.add(a),a}}class to{constructor(){this.dirty=!0,this._results=[],this.changes=new eo,this.length=0}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}[pr()](){return this._results[pr()]()}toString(){return this._results.toString()}reset(e){this._results=function e(t,n){void 0===n&&(n=t);for(let r=0;r<t.length;r++){let s=t[r];Array.isArray(s)?(n===t&&(n=t.slice(0,r)),e(s,n)):n!==t&&n.push(s)}return n}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class no{}const ro=new j("Application Initializer"),so=(()=>(class{constructor(e){this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const t=this.appInits[n]();ur(t)&&e.push(t)}Promise.all(e).then(()=>{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}))(),io=new j("AppId");function oo(){return`${ao()}${ao()}${ao()}`}function ao(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const lo=new j("Platform Initializer"),co=new j("Platform ID"),uo=new j("appBootstrapListener"),ho=(()=>(class{log(e){console.log(e)}warn(e){console.warn(e)}}))();function po(){throw new Error("Runtime compiler is not loaded")}const fo=po,mo=po,go=po,yo=po,bo=(()=>(class{constructor(){this.compileModuleSync=fo,this.compileModuleAsync=mo,this.compileModuleAndAllComponentsSync=go,this.compileModuleAndAllComponentsAsync=yo}clearCache(){}clearCacheFor(e){}getModuleId(e){}}))();class vo{}let _o,wo;function So(){const e=x.wtf;return!(!e||!(_o=e.trace)||(wo=_o.events,0))}const Eo=So(),Co=Eo?function(e,t=null){return wo.createScope(e,t)}:(e,t)=>(function(e,t){return null}),xo=Eo?function(e,t){return _o.leaveScope(e,t),t}:(e,t)=>t,To=(()=>Promise.resolve(0))();function Oo(e){"undefined"==typeof Zone?To.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class ko{constructor({enableLongStackTrace:e=!1}){if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new eo(!1),this.onMicrotaskEmpty=new eo(!1),this.onStable=new eo(!1),this.onError=new eo(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");var t;Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),(t=this)._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,r,s,i,o)=>{try{return Po(t),e.invokeTask(r,s,i,o)}finally{No(t)}},onInvoke:(e,n,r,s,i,o,a)=>{try{return Po(t),e.invoke(r,s,i,o,a)}finally{No(t)}},onHasTask:(e,n,r,s)=>{e.hasTask(r,s),n===r&&("microTask"==s.change?(t.hasPendingMicrotasks=s.microTask,jo(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,r,s)=>(e.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ko.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ko.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,r){const s=this._inner,i=s.scheduleEventTask("NgZoneEvent: "+r,e,Ao,$o,$o);try{return s.runTask(i,t,n)}finally{s.cancelTask(i)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}function $o(){}const Ao={};function jo(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Po(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function No(e){e._nesting--,jo(e)}class Ro{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new eo,this.onMicrotaskEmpty=new eo,this.onStable=new eo,this.onError=new eo}run(e){return e()}runGuarded(e){return e()}runOutsideAngular(e){return e()}runTask(e){return e()}}const Io=(()=>(class{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ko.assertNotInAngularZone(),Oo(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Oo(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let r=-1;t&&t>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==r),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}whenStable(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}))(),Do=(()=>{class e{constructor(){this._applications=new Map,Vo.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return Vo.findTestabilityInTree(this,e,t)}}return e.ctorParameters=(()=>[]),e})();class Lo{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}function Mo(e){Vo=e}let Fo,Vo=new Lo,Uo=function(e){return e instanceof kr};const zo=new j("AllowMultipleToken");class Ho{constructor(e,t){this.name=e,this.token=t}}function qo(e,t,n=[]){const r=`Platform: ${t}`,s=new j(r);return(t=[])=>{let i=Bo();if(!i||i.injector.get(zo,!1))if(e)e(n.concat(t).concat({provide:s,useValue:!0}));else{const e=n.concat(t).concat({provide:s,useValue:!0});!function(e){if(Fo&&!Fo.destroyed&&!Fo.injector.get(zo,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Fo=e.get(Go);const t=e.get(lo,null);t&&t.forEach(e=>e())}(D.create({providers:e,name:r}))}return function(e){const t=Bo();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(s)}}function Bo(){return Fo&&!Fo.destroyed?Fo:null}const Go=(()=>(class{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n="noop"===(s=t?t.ngZone:void 0)?new Ro:("zone.js"===s?void 0:s)||new ko({enableLongStackTrace:Ot()}),r=[{provide:ko,useValue:n}];var s;return n.run(()=>{const t=D.create({providers:r,parent:this.injector,name:e.moduleType.name}),s=e.create(t),i=s.injector.get(Ct,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return s.onDestroy(()=>Ko(this._modules,s)),n.runOutsideAngular(()=>n.onError.subscribe({next:e=>{i.handleError(e)}})),function(e,t,n){try{const s=n();return ur(s)?s.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):s}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(i,n,()=>{const e=s.injector.get(so);return e.runInitializers(),e.donePromise.then(()=>(this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,t=[]){const n=Wo({},t);return function(e,t,n){return e.get(vo).createCompiler([t]).compileModuleAsync(n)}(this.injector,n,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(Qo);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${_(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. `+"Please define one of these.");e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}))();function Wo(e,t){return Array.isArray(t)?t.reduce(Wo,e):Object.assign({},e,t)}const Qo=(()=>{class e{constructor(e,t,n,r,s,l){this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=l,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Ot(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const c=new i.a(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),u=new i.a(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{ko.assertNotInAngularZone(),Oo(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{ko.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(o.a)(c,u.pipe(Object(a.a)()))}bootstrap(e,t){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=e instanceof Sr?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const r=Uo(n)?null:this._injector.get($r),s=n.create(D.NULL,[],t||n.selector,r);s.onDestroy(()=>{this._unloadComponent(s)});const i=s.injector.get(Io,null);return i&&s.injector.get(Do).registerApplication(s.location.nativeElement,i),this._loadComponent(s),Ot()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");const t=e._tickScope();try{this._runningTick=!0;for(let e of this._views)e.detectChanges();if(this._enforceNoNewChanges)for(let e of this._views)e.checkNoChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1,xo(t)}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;Ko(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(uo,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),Ko(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}return e._tickScope=Co("ApplicationRef#tick()"),e})();function Ko(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Zo{}const Yo={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Xo=(()=>(class{constructor(e,t){this._compiler=e,this._config=t||Yo}load(e){return this._compiler instanceof bo?this.loadFactory(e):this.loadAndCompile(e)}loadAndCompile(e){let[t,r]=e.split("#");return void 0===r&&(r="default"),n("zn8P")(t).then(e=>e[r]).then(e=>Jo(e,t,r)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,r]=e.split("#"),s="NgFactory";return void 0===r&&(r="default",s=""),n("zn8P")(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[r+s]).then(e=>Jo(e,t,r))}}))();function Jo(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}class ea{constructor(e,t){this.name=e,this.callback=t}}class ta{constructor(e,t,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=e,t&&t instanceof na&&t.addChild(this)}get injector(){return this._debugContext.injector}get componentInstance(){return this._debugContext.component}get context(){return this._debugContext.context}get references(){return this._debugContext.references}get providerTokens(){return this._debugContext.providerTokens}}class na extends ta{constructor(e,t,n){super(e,t,n),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=e}addChild(e){e&&(this.childNodes.push(e),e.parent=this)}removeChild(e){const t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))}insertChildrenAfter(e,t){const n=this.childNodes.indexOf(e);-1!==n&&(this.childNodes.splice(n+1,0,...t),t.forEach(t=>{t.parent&&t.parent.removeChild(t),e.parent=this}))}insertBefore(e,t){const n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))}query(e){return this.queryAll(e)[0]||null}queryAll(e){const t=[];return function e(t,n,r){t.childNodes.forEach(t=>{t instanceof na&&(n(t)&&r.push(t),e(t,n,r))})}(this,e,t),t}queryAllNodes(e){const t=[];return function e(t,n,r){t instanceof na&&t.childNodes.forEach(t=>{n(t)&&r.push(t),t instanceof na&&e(t,n,r)})}(this,e,t),t}get children(){return this.childNodes.filter(e=>e instanceof na)}triggerEventHandler(e,t){this.listeners.forEach(n=>{n.name==e&&n.callback(t)})}}const ra=new Map,sa=function(e){return ra.get(e)||null};function ia(e){ra.set(e.nativeNode,e)}const oa=qo(null,"core",[{provide:co,useValue:"unknown"},{provide:Go,deps:[D]},{provide:Do,deps:[]},{provide:ho,deps:[]}]),aa=new j("LocaleId");function la(){return ns}function ca(){return rs}function ua(e){return e||"en-US"}function ha(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}const da=(()=>(class{constructor(e){}}))();function pa(e,t,n,r,s,i){e|=1;const{matchedQueries:o,references:a,matchedQueryIds:l}=Ms(t);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:o,matchedQueryIds:l,references:a,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:i?zs(i):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:s||vs},provider:null,text:null,query:null,ngContent:null}}function fa(e,t,n,r,s,i,o=[],a,l,c,u,h){c||(c=vs);const{matchedQueries:d,references:p,matchedQueryIds:f}=Ms(n);let m=null,g=null;i&&([m,g]=Ks(i)),a=a||[];const y=new Array(a.length);for(let _=0;_<a.length;_++){const[e,t,n]=a[_],[r,s]=Ks(t);let i=void 0,o=void 0;switch(15&e){case 4:o=n;break;case 1:case 8:i=n}y[_]={flags:e,ns:r,name:s,nonMinifiedName:s,securityContext:i,suffix:o}}l=l||[];const b=new Array(l.length);for(let _=0;_<l.length;_++){const[e,t]=l[_];b[_]={type:0,target:e,eventName:t,propName:null}}const v=(o=o||[]).map(([e,t])=>{const[n,r]=Ks(e);return[n,r,t]});return h=function(e){if(e&&e.id===Ss){const t=null!=e.encapsulation&&e.encapsulation!==te.None||e.styles.length||Object.keys(e.data).length;e.id=t?`c${xs++}`:Es}return e&&e.id===Es&&(e=null),e||null}(h),u&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:d,matchedQueryIds:f,references:p,ngContentIndex:r,childCount:s,bindings:y,bindingFlags:Zs(y),outputs:b,element:{ns:m,name:g,attrs:v,template:null,componentProvider:null,componentView:u||null,componentRendererType:h,publicProviders:null,allProviders:null,handleEvent:c||vs},provider:null,text:null,query:null,ngContent:null}}function ma(e,t,n){const r=n.element,s=e.root.selectorOrNode,i=e.renderer;let o;if(e.parent||!s){o=r.name?i.createElement(r.name,r.ns):i.createComment("");const s=Vs(e,t,n);s&&i.appendChild(s,o)}else o=i.selectRootElement(s,!!r.componentRendererType&&r.componentRendererType.encapsulation===te.ShadowDom);if(r.attrs)for(let a=0;a<r.attrs.length;a++){const[e,t,n]=r.attrs[a];i.setAttribute(o,t,n,e)}return o}function ga(e,t,n,r){for(let o=0;o<n.outputs.length;o++){const a=n.outputs[o],l=ya(e,n.nodeIndex,(i=a.eventName,(s=a.target)?`${s}:${i}`:i));let c=a.target,u=e;"component"===a.target&&(c=null,u=t);const h=u.renderer.listen(c||r,a.eventName,l);e.disposables[n.outputIndex+o]=h}var s,i}function ya(e,t,n){return r=>js(e,t,n,r)}function ba(e,t,n,r){if(!Os(e,t,n,r))return!1;const s=t.bindings[n],i=fs(e,t.nodeIndex),o=i.renderElement,a=s.name;switch(15&s.flags){case 1:!function(e,t,n,r,s,i){const o=t.securityContext;let a=o?e.root.sanitizer.sanitize(o,i):i;a=null!=a?a.toString():null;const l=e.renderer;null!=i?l.setAttribute(n,s,a,r):l.removeAttribute(n,s,r)}(e,s,o,s.ns,a,r);break;case 2:!function(e,t,n,r){const s=e.renderer;r?s.addClass(t,n):s.removeClass(t,n)}(e,o,a,r);break;case 4:!function(e,t,n,r,s){let i=e.root.sanitizer.sanitize(Yt.STYLE,s);if(null!=i){i=i.toString();const e=t.suffix;null!=e&&(i+=e)}else i=null;const o=e.renderer;null!=i?o.setStyle(n,r,i):o.removeStyle(n,r)}(e,s,o,a,r);break;case 8:!function(e,t,n,r,s){const i=t.securityContext;let o=i?e.root.sanitizer.sanitize(i,s):s;e.renderer.setProperty(n,r,o)}(33554432&t.flags&&32&s.flags?i.componentView:e,s,o,a,r)}return!0}function va(e,t,n){let r=[];for(let s in n)r.push({propName:s,bindingType:n[s]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:t,filterId:Ls(t),bindings:r},ngContent:null}}function _a(e){const t=e.def.nodeMatchedQueries;for(;e.parent&&Ds(e);){let n=e.parentNodeDef;e=e.parent;const r=n.nodeIndex+n.childCount;for(let s=0;s<=r;s++){const r=e.def.nodes[s];67108864&r.flags&&536870912&r.flags&&(r.query.filterId&t)===r.query.filterId&&ys(e,s).setDirty(),!(1&r.flags&&s+r.childCount<n.nodeIndex)&&67108864&r.childFlags&&536870912&r.childFlags||(s+=r.childCount)}}if(134217728&e.def.nodeFlags)for(let n=0;n<e.def.nodes.length;n++){const t=e.def.nodes[n];134217728&t.flags&&536870912&t.flags&&ys(e,n).setDirty(),n+=t.childCount}}function wa(e,t){const n=ys(e,t.nodeIndex);if(!n.dirty)return;let r,s=void 0;if(67108864&t.flags){const n=t.parent.parent;s=Sa(e,n.nodeIndex,n.nodeIndex+n.childCount,t.query,[]),r=ms(e,t.parent.nodeIndex).instance}else 134217728&t.flags&&(s=Sa(e,0,e.def.nodes.length-1,t.query,[]),r=e.component);n.reset(s);const i=t.query.bindings;let o=!1;for(let a=0;a<i.length;a++){const e=i[a];let t;switch(e.bindingType){case 0:t=n.first;break;case 1:t=n,o=!0}r[e.propName]=t}o&&n.notifyOnChanges()}function Sa(e,t,n,r,s){for(let i=t;i<=n;i++){const t=e.def.nodes[i],n=t.matchedQueries[r.id];if(null!=n&&s.push(Ea(e,t,n)),1&t.flags&&t.element.template&&(t.element.template.nodeMatchedQueries&r.filterId)===r.filterId){const n=fs(e,i);if((t.childMatchedQueries&r.filterId)===r.filterId&&(Sa(e,i+1,i+t.childCount,r,s),i+=t.childCount),16777216&t.flags){const e=n.viewContainer._embeddedViews;for(let t=0;t<e.length;t++){const i=e[t],o=Ps(i);o&&o===n&&Sa(i,0,i.def.nodes.length-1,r,s)}}const o=n.template._projectedViews;if(o)for(let e=0;e<o.length;e++){const t=o[e];Sa(t,0,t.def.nodes.length-1,r,s)}}(t.childMatchedQueries&r.filterId)!==r.filterId&&(i+=t.childCount)}return s}function Ea(e,t,n){if(null!=n)switch(n){case 1:return fs(e,t.nodeIndex).renderElement;case 0:return new Pr(fs(e,t.nodeIndex).renderElement);case 2:return fs(e,t.nodeIndex).template;case 3:return fs(e,t.nodeIndex).viewContainer;case 4:return ms(e,t.nodeIndex).instance}}function Ca(e,t){return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:e,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:t}}}function xa(e,t,n){const r=Vs(e,t,n);r&&Bs(e,n.ngContent.index,1,r,null,void 0)}function Ta(e,t){return ka(32,e,new Array(t))}function Oa(e,t){const n=Object.keys(t),r=n.length,s=new Array(r);for(let i=0;i<r;i++){const e=n[i];s[t[e]]=e}return ka(64,e,s)}function ka(e,t,n){const r=new Array(n.length);for(let s=0;s<n.length;s++){const e=n[s];r[s]={flags:8,name:e,ns:null,nonMinifiedName:e,securityContext:null,suffix:null}}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:r,bindingFlags:Zs(r),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function $a(e,t,n){const r=new Array(n.length-1);for(let s=1;s<n.length;s++)r[s-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[s]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:r,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function Aa(e,t,n){let r;const s=e.renderer;r=s.createText(n.text.prefix);const i=Vs(e,t,n);return i&&s.appendChild(i,r),{renderText:r}}function ja(e,t){return(null!=e?e.toString():"")+t.suffix}function Pa(e,t,n,r){let s=0,i=0,o=0,a=0,l=0,c=null,u=null,h=!1,d=!1,p=null;for(let f=0;f<t.length;f++){const e=t[f];if(e.nodeIndex=f,e.parent=c,e.bindingIndex=s,e.outputIndex=i,e.renderParent=u,o|=e.flags,l|=e.matchedQueryIds,e.element){const t=e.element;t.publicProviders=c?c.element.publicProviders:Object.create(null),t.allProviders=t.publicProviders,h=!1,d=!1,e.element.template&&(l|=e.element.template.nodeMatchedQueries)}if(Ra(c,e,t.length),s+=e.bindings.length,i+=e.outputs.length,!u&&3&e.flags&&(p=e),20224&e.flags){h||(h=!0,c.element.publicProviders=Object.create(c.element.publicProviders),c.element.allProviders=c.element.publicProviders);const t=0!=(32768&e.flags);0==(8192&e.flags)||t?c.element.publicProviders[ws(e.provider.token)]=e:(d||(d=!0,c.element.allProviders=Object.create(c.element.publicProviders)),c.element.allProviders[ws(e.provider.token)]=e),t&&(c.element.componentProvider=e)}if(c?(c.childFlags|=e.flags,c.directChildFlags|=e.flags,c.childMatchedQueries|=e.matchedQueryIds,e.element&&e.element.template&&(c.childMatchedQueries|=e.element.template.nodeMatchedQueries)):a|=e.flags,e.childCount>0)c=e,Na(e)||(u=e);else for(;c&&f===c.nodeIndex+c.childCount;){const e=c.parent;e&&(e.childFlags|=c.childFlags,e.childMatchedQueries|=c.childMatchedQueries),u=(c=e)&&Na(c)?c.renderParent:c}}return{factory:null,nodeFlags:o,rootNodeFlags:a,nodeMatchedQueries:l,flags:e,nodes:t,updateDirectives:n||vs,updateRenderer:r||vs,handleEvent:(e,n,r,s)=>t[n].element.handleEvent(e,r,s),bindingCount:s,outputCount:i,lastRenderRootNode:p}}function Na(e){return 0!=(1&e.flags)&&null===e.element.name}function Ra(e,t,n){const r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error(`Illegal State: Last root node of a template can't have embedded views, at index ${t.nodeIndex}!`)}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error(`Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ${t.nodeIndex}!`);if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error(`Illegal State: Content Query nodes need to be children of directives, at index ${t.nodeIndex}!`);if(134217728&t.flags&&e)throw new Error(`Illegal State: View Query nodes have to be top level nodes, at index ${t.nodeIndex}!`)}if(t.childCount){const r=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=r&&t.nodeIndex+t.childCount>r)throw new Error(`Illegal State: childCount of node leads outside of parent, at index ${t.nodeIndex}!`)}}function Ia(e,t,n,r){const s=Ma(e.root,e.renderer,e,t,n);return Fa(s,e.component,r),Va(s),s}function Da(e,t,n){const r=Ma(e,e.renderer,null,null,t);return Fa(r,n,n),Va(r),r}function La(e,t,n,r){const s=t.element.componentRendererType;let i;return i=s?e.root.rendererFactory.createRenderer(r,s):e.root.renderer,Ma(e.root,i,e,t.element.componentProvider,n)}function Ma(e,t,n,r,s){const i=new Array(s.nodes.length),o=s.outputCount?new Array(s.outputCount):null;return{def:s,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:e,renderer:t,oldValues:new Array(s.bindingCount),disposables:o,initIndex:-1}}function Fa(e,t,n){e.component=t,e.context=n}function Va(e){let t;Is(e)&&(t=fs(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);const n=e.def,r=e.nodes;for(let s=0;s<n.nodes.length;s++){const i=n.nodes[s];let o;switch(bs.setCurrentNode(e,s),201347067&i.flags){case 1:const n=ma(e,t,i);let a=void 0;if(33554432&i.flags){const t=zs(i.element.componentView);a=bs.createComponentView(e,i,t,n)}ga(e,a,i,n),o={renderElement:n,componentView:a,viewContainer:null,template:i.element.template?_i(e,i):void 0},16777216&i.flags&&(o.viewContainer=gi(e,i,o));break;case 2:o=Aa(e,t,i);break;case 512:case 1024:case 2048:case 256:(o=r[s])||4096&i.flags||(o={instance:Vi(e,i)});break;case 16:o={instance:Ui(e,i)};break;case 16384:(o=r[s])||(o={instance:zi(e,i)}),32768&i.flags&&Fa(fs(e,i.parent.nodeIndex).componentView,o.instance,o.instance);break;case 32:case 64:case 128:o={value:void 0};break;case 67108864:case 134217728:o=new to;break;case 8:xa(e,t,i),o=void 0}r[s]=o}Ka(e,Qa.CreateViewNodes),Ja(e,201326592,268435456,0)}function Ua(e){qa(e),bs.updateDirectives(e,1),Za(e,Qa.CheckNoChanges),bs.updateRenderer(e,1),Ka(e,Qa.CheckNoChanges),e.state&=-97}function za(e){1&e.state?(e.state&=-2,e.state|=2):e.state&=-3,hs(e,0,256),qa(e),bs.updateDirectives(e,0),Za(e,Qa.CheckAndUpdate),Ja(e,67108864,536870912,0);let t=hs(e,256,512);Zi(e,2097152|(t?1048576:0)),bs.updateRenderer(e,0),Ka(e,Qa.CheckAndUpdate),Ja(e,134217728,536870912,0),Zi(e,8388608|((t=hs(e,512,768))?4194304:0)),2&e.def.flags&&(e.state&=-9),e.state&=-97,hs(e,768,1024)}function Ha(e,t,n,r,s,i,o,a,l,c,u,h,d){return 0===n?function(e,t,n,r,s,i,o,a,l,c,u,h){switch(201347067&t.flags){case 1:return function(e,t,n,r,s,i,o,a,l,c,u,h){const d=t.bindings.length;let p=!1;return d>0&&ba(e,t,0,n)&&(p=!0),d>1&&ba(e,t,1,r)&&(p=!0),d>2&&ba(e,t,2,s)&&(p=!0),d>3&&ba(e,t,3,i)&&(p=!0),d>4&&ba(e,t,4,o)&&(p=!0),d>5&&ba(e,t,5,a)&&(p=!0),d>6&&ba(e,t,6,l)&&(p=!0),d>7&&ba(e,t,7,c)&&(p=!0),d>8&&ba(e,t,8,u)&&(p=!0),d>9&&ba(e,t,9,h)&&(p=!0),p}(e,t,n,r,s,i,o,a,l,c,u,h);case 2:return function(e,t,n,r,s,i,o,a,l,c,u,h){let d=!1;const p=t.bindings,f=p.length;if(f>0&&Os(e,t,0,n)&&(d=!0),f>1&&Os(e,t,1,r)&&(d=!0),f>2&&Os(e,t,2,s)&&(d=!0),f>3&&Os(e,t,3,i)&&(d=!0),f>4&&Os(e,t,4,o)&&(d=!0),f>5&&Os(e,t,5,a)&&(d=!0),f>6&&Os(e,t,6,l)&&(d=!0),f>7&&Os(e,t,7,c)&&(d=!0),f>8&&Os(e,t,8,u)&&(d=!0),f>9&&Os(e,t,9,h)&&(d=!0),d){let d=t.text.prefix;f>0&&(d+=ja(n,p[0])),f>1&&(d+=ja(r,p[1])),f>2&&(d+=ja(s,p[2])),f>3&&(d+=ja(i,p[3])),f>4&&(d+=ja(o,p[4])),f>5&&(d+=ja(a,p[5])),f>6&&(d+=ja(l,p[6])),f>7&&(d+=ja(c,p[7])),f>8&&(d+=ja(u,p[8])),f>9&&(d+=ja(h,p[9]));const m=ps(e,t.nodeIndex).renderText;e.renderer.setValue(m,d)}return d}(e,t,n,r,s,i,o,a,l,c,u,h);case 16384:return function(e,t,n,r,s,i,o,a,l,c,u,h){const d=ms(e,t.nodeIndex),p=d.instance;let f=!1,m=void 0;const g=t.bindings.length;return g>0&&Ts(e,t,0,n)&&(f=!0,m=Ki(e,d,t,0,n,m)),g>1&&Ts(e,t,1,r)&&(f=!0,m=Ki(e,d,t,1,r,m)),g>2&&Ts(e,t,2,s)&&(f=!0,m=Ki(e,d,t,2,s,m)),g>3&&Ts(e,t,3,i)&&(f=!0,m=Ki(e,d,t,3,i,m)),g>4&&Ts(e,t,4,o)&&(f=!0,m=Ki(e,d,t,4,o,m)),g>5&&Ts(e,t,5,a)&&(f=!0,m=Ki(e,d,t,5,a,m)),g>6&&Ts(e,t,6,l)&&(f=!0,m=Ki(e,d,t,6,l,m)),g>7&&Ts(e,t,7,c)&&(f=!0,m=Ki(e,d,t,7,c,m)),g>8&&Ts(e,t,8,u)&&(f=!0,m=Ki(e,d,t,8,u,m)),g>9&&Ts(e,t,9,h)&&(f=!0,m=Ki(e,d,t,9,h,m)),m&&p.ngOnChanges(m),65536&t.flags&&ds(e,256,t.nodeIndex)&&p.ngOnInit(),262144&t.flags&&p.ngDoCheck(),f}(e,t,n,r,s,i,o,a,l,c,u,h);case 32:case 64:case 128:return function(e,t,n,r,s,i,o,a,l,c,u,h){const d=t.bindings;let p=!1;const f=d.length;if(f>0&&Os(e,t,0,n)&&(p=!0),f>1&&Os(e,t,1,r)&&(p=!0),f>2&&Os(e,t,2,s)&&(p=!0),f>3&&Os(e,t,3,i)&&(p=!0),f>4&&Os(e,t,4,o)&&(p=!0),f>5&&Os(e,t,5,a)&&(p=!0),f>6&&Os(e,t,6,l)&&(p=!0),f>7&&Os(e,t,7,c)&&(p=!0),f>8&&Os(e,t,8,u)&&(p=!0),f>9&&Os(e,t,9,h)&&(p=!0),p){const p=gs(e,t.nodeIndex);let m;switch(201347067&t.flags){case 32:m=new Array(d.length),f>0&&(m[0]=n),f>1&&(m[1]=r),f>2&&(m[2]=s),f>3&&(m[3]=i),f>4&&(m[4]=o),f>5&&(m[5]=a),f>6&&(m[6]=l),f>7&&(m[7]=c),f>8&&(m[8]=u),f>9&&(m[9]=h);break;case 64:m={},f>0&&(m[d[0].name]=n),f>1&&(m[d[1].name]=r),f>2&&(m[d[2].name]=s),f>3&&(m[d[3].name]=i),f>4&&(m[d[4].name]=o),f>5&&(m[d[5].name]=a),f>6&&(m[d[6].name]=l),f>7&&(m[d[7].name]=c),f>8&&(m[d[8].name]=u),f>9&&(m[d[9].name]=h);break;case 128:const e=n;switch(f){case 1:m=e.transform(n);break;case 2:m=e.transform(r);break;case 3:m=e.transform(r,s);break;case 4:m=e.transform(r,s,i);break;case 5:m=e.transform(r,s,i,o);break;case 6:m=e.transform(r,s,i,o,a);break;case 7:m=e.transform(r,s,i,o,a,l);break;case 8:m=e.transform(r,s,i,o,a,l,c);break;case 9:m=e.transform(r,s,i,o,a,l,c,u);break;case 10:m=e.transform(r,s,i,o,a,l,c,u,h)}}p.value=m}return p}(e,t,n,r,s,i,o,a,l,c,u,h);default:throw"unreachable"}}(e,t,r,s,i,o,a,l,c,u,h,d):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){let r=!1;for(let s=0;s<n.length;s++)ba(e,t,s,n[s])&&(r=!0);return r}(e,t,n);case 2:return function(e,t,n){const r=t.bindings;let s=!1;for(let i=0;i<n.length;i++)Os(e,t,i,n[i])&&(s=!0);if(s){let s="";for(let e=0;e<n.length;e++)s+=ja(n[e],r[e]);s=t.text.prefix+s;const i=ps(e,t.nodeIndex).renderText;e.renderer.setValue(i,s)}return s}(e,t,n);case 16384:return function(e,t,n){const r=ms(e,t.nodeIndex),s=r.instance;let i=!1,o=void 0;for(let a=0;a<n.length;a++)Ts(e,t,a,n[a])&&(i=!0,o=Ki(e,r,t,a,n[a],o));return o&&s.ngOnChanges(o),65536&t.flags&&ds(e,256,t.nodeIndex)&&s.ngOnInit(),262144&t.flags&&s.ngDoCheck(),i}(e,t,n);case 32:case 64:case 128:return function(e,t,n){const r=t.bindings;let s=!1;for(let i=0;i<n.length;i++)Os(e,t,i,n[i])&&(s=!0);if(s){const s=gs(e,t.nodeIndex);let i;switch(201347067&t.flags){case 32:i=n;break;case 64:i={};for(let t=0;t<n.length;t++)i[r[t].name]=n[t];break;case 128:const e=n[0],s=n.slice(1);i=e.transform(...s)}s.value=i}return s}(e,t,n);default:throw"unreachable"}}(e,t,r)}function qa(e){const t=e.def;if(4&t.nodeFlags)for(let n=0;n<t.nodes.length;n++){const r=t.nodes[n];if(4&r.flags){const t=fs(e,n).template._projectedViews;if(t)for(let n=0;n<t.length;n++){const r=t[n];r.state|=32,As(r,e)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function Ba(e,t,n,r,s,i,o,a,l,c,u,h,d){return 0===n?function(e,t,n,r,s,i,o,a,l,c,u,h){const d=t.bindings.length;d>0&&ks(e,t,0,n),d>1&&ks(e,t,1,r),d>2&&ks(e,t,2,s),d>3&&ks(e,t,3,i),d>4&&ks(e,t,4,o),d>5&&ks(e,t,5,a),d>6&&ks(e,t,6,l),d>7&&ks(e,t,7,c),d>8&&ks(e,t,8,u),d>9&&ks(e,t,9,h)}(e,t,r,s,i,o,a,l,c,u,h,d):function(e,t,n){for(let r=0;r<n.length;r++)ks(e,t,r,n[r])}(e,t,r),!1}function Ga(e,t){if(ys(e,t.nodeIndex).dirty)throw ls(bs.createDebugContext(e,t.nodeIndex),`Query ${t.query.id} not dirty`,`Query ${t.query.id} dirty`,0!=(1&e.state))}function Wa(e){if(!(128&e.state)){if(Za(e,Qa.Destroy),Ka(e,Qa.Destroy),Zi(e,131072),e.disposables)for(let t=0;t<e.disposables.length;t++)e.disposables[t]();!function(e){if(!(16&e.state))return;const t=Ps(e);if(t){const n=t.template._projectedViews;n&&(hi(n,n.indexOf(e)),bs.dirtyParentQueries(e))}}(e),e.renderer.destroyNode&&function(e){const t=e.def.nodes.length;for(let n=0;n<t;n++){const t=e.def.nodes[n];1&t.flags?e.renderer.destroyNode(fs(e,n).renderElement):2&t.flags?e.renderer.destroyNode(ps(e,n).renderText):(67108864&t.flags||134217728&t.flags)&&ys(e,n).destroy()}}(e),Is(e)&&e.renderer.destroy(),e.state|=128}}const Qa=function(){var e={CreateViewNodes:0,CheckNoChanges:1,CheckNoChangesProjectedViews:2,CheckAndUpdate:3,CheckAndUpdateProjectedViews:4,Destroy:5};return e[e.CreateViewNodes]="CreateViewNodes",e[e.CheckNoChanges]="CheckNoChanges",e[e.CheckNoChangesProjectedViews]="CheckNoChangesProjectedViews",e[e.CheckAndUpdate]="CheckAndUpdate",e[e.CheckAndUpdateProjectedViews]="CheckAndUpdateProjectedViews",e[e.Destroy]="Destroy",e}();function Ka(e,t){const n=e.def;if(33554432&n.nodeFlags)for(let r=0;r<n.nodes.length;r++){const s=n.nodes[r];33554432&s.flags?Ya(fs(e,r).componentView,t):0==(33554432&s.childFlags)&&(r+=s.childCount)}}function Za(e,t){const n=e.def;if(16777216&n.nodeFlags)for(let r=0;r<n.nodes.length;r++){const s=n.nodes[r];if(16777216&s.flags){const n=fs(e,r).viewContainer._embeddedViews;for(let e=0;e<n.length;e++)Ya(n[e],t)}else 0==(16777216&s.childFlags)&&(r+=s.childCount)}}function Ya(e,t){const n=e.state;switch(t){case Qa.CheckNoChanges:0==(128&n)&&(12==(12&n)?Ua(e):64&n&&Xa(e,Qa.CheckNoChangesProjectedViews));break;case Qa.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?Ua(e):64&n&&Xa(e,t));break;case Qa.CheckAndUpdate:0==(128&n)&&(12==(12&n)?za(e):64&n&&Xa(e,Qa.CheckAndUpdateProjectedViews));break;case Qa.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?za(e):64&n&&Xa(e,t));break;case Qa.Destroy:Wa(e);break;case Qa.CreateViewNodes:Va(e)}}function Xa(e,t){Za(e,t),Ka(e,t)}function Ja(e,t,n,r){if(!(e.def.nodeFlags&t&&e.def.nodeFlags&n))return;const s=e.def.nodes.length;for(let i=0;i<s;i++){const s=e.def.nodes[i];if(s.flags&t&&s.flags&n)switch(bs.setCurrentNode(e,s.nodeIndex),r){case 0:wa(e,s);break;case 1:Ga(e,s)}s.childFlags&t&&s.childFlags&n||(i+=s.childCount)}}let el=!1;function tl(e,t,n,r,s,i){const o=s.injector.get(Ir);return Da(rl(e,s,o,t,n),r,i)}function nl(e,t,n,r,s,i){const o=s.injector.get(Ir),a=rl(e,s,new Il(o),t,n),l=pl(r);return Nl(vl.create,Da,null,[a,l,i])}function rl(e,t,n,r,s){const i=t.injector.get(Xt),o=t.injector.get(Ct),a=n.createRenderer(null,null);return{ngModule:t,injector:e,projectableNodes:r,selectorOrNode:s,sanitizer:i,rendererFactory:n,renderer:a,errorHandler:o}}function sl(e,t,n,r){const s=pl(n);return Nl(vl.create,Ia,null,[e,t,s,r])}function il(e,t,n,r){return n=cl.get(t.element.componentProvider.provider.token)||pl(n),Nl(vl.create,La,null,[e,t,n,r])}function ol(e,t,n,r){return Oi(e,t,n,function(e){const{hasOverrides:t,hasDeprecatedOverrides:n}=function(e){let t=!1,n=!1;return 0===al.size?{hasOverrides:t,hasDeprecatedOverrides:n}:(e.providers.forEach(e=>{const r=al.get(e.token);3840&e.flags&&r&&(t=!0,n=n||r.deprecatedBehavior)}),e.modules.forEach(e=>{ll.forEach((r,s)=>{b(s).providedIn===e&&(t=!0,n=n||r.deprecatedBehavior)})}),{hasOverrides:t,hasDeprecatedOverrides:n})}(e);return t?(function(e){for(let t=0;t<e.providers.length;t++){const r=e.providers[t];n&&(r.flags|=4096);const s=al.get(r.token);s&&(r.flags=-3841&r.flags|s.flags,r.deps=Fs(s.deps),r.value=s.value)}if(ll.size>0){let t=new Set(e.modules);ll.forEach((r,s)=>{if(t.has(b(s).providedIn)){let t={token:s,flags:r.flags|(n?4096:0),deps:Fs(r.deps),value:r.value,index:e.providers.length};e.providers.push(t),e.providersByKey[ws(s)]=t}})}}(e=e.factory(()=>vs)),e):e}(r))}const al=new Map,ll=new Map,cl=new Map;function ul(e){let t;al.set(e.token,e),"function"==typeof e.token&&(t=b(e.token))&&"function"==typeof t.providedIn&&ll.set(e.token,e)}function hl(e,t){const n=zs(t.viewDefFactory),r=zs(n.nodes[0].element.componentView);cl.set(e,r)}function dl(){al.clear(),ll.clear(),cl.clear()}function pl(e){if(0===al.size)return e;const t=function(e){const t=[];let n=null;for(let r=0;r<e.nodes.length;r++){const s=e.nodes[r];1&s.flags&&(n=s),n&&3840&s.flags&&al.has(s.provider.token)&&(t.push(n.nodeIndex),n=null)}return t}(e);if(0===t.length)return e;e=e.factory(()=>vs);for(let r=0;r<t.length;r++)n(e,t[r]);return e;function n(e,t){for(let n=t+1;n<e.nodes.length;n++){const t=e.nodes[n];if(1&t.flags)return;if(3840&t.flags){const e=t.provider,n=al.get(e.token);n&&(t.flags=-3841&t.flags|n.flags,e.deps=Fs(n.deps),e.value=n.value)}}}}function fl(e,t,n,r,s,i,o,a,l,c,u,h,d){const p=e.def.nodes[t];return Ha(e,p,n,r,s,i,o,a,l,c,u,h,d),224&p.flags?gs(e,t).value:void 0}function ml(e,t,n,r,s,i,o,a,l,c,u,h,d){const p=e.def.nodes[t];return Ba(e,p,n,r,s,i,o,a,l,c,u,h,d),224&p.flags?gs(e,t).value:void 0}function gl(e){return Nl(vl.detectChanges,za,null,[e])}function yl(e){return Nl(vl.checkNoChanges,Ua,null,[e])}function bl(e){return Nl(vl.destroy,Wa,null,[e])}const vl=function(){var e={create:0,detectChanges:1,checkNoChanges:2,destroy:3,handleEvent:4};return e[e.create]="create",e[e.detectChanges]="detectChanges",e[e.checkNoChanges]="checkNoChanges",e[e.destroy]="destroy",e[e.handleEvent]="handleEvent",e}();let _l,wl,Sl;function El(e,t){wl=e,Sl=t}function Cl(e,t,n,r){return El(e,t),Nl(vl.handleEvent,e.def.handleEvent,null,[e,t,n,r])}function xl(e,t){if(128&e.state)throw us(vl[_l]);return El(e,$l(e,0)),e.def.updateDirectives(function(e,n,r,...s){const i=e.def.nodes[n];return 0===t?Ol(e,i,r,s):kl(e,i,r,s),16384&i.flags&&El(e,$l(e,n)),224&i.flags?gs(e,i.nodeIndex).value:void 0},e)}function Tl(e,t){if(128&e.state)throw us(vl[_l]);return El(e,Al(e,0)),e.def.updateRenderer(function(e,n,r,...s){const i=e.def.nodes[n];return 0===t?Ol(e,i,r,s):kl(e,i,r,s),3&i.flags&&El(e,Al(e,n)),224&i.flags?gs(e,i.nodeIndex).value:void 0},e)}function Ol(e,t,n,r){if(Ha(e,t,n,...r)){const o=1===n?r[0]:r;if(16384&t.flags){const n={};for(let e=0;e<t.bindings.length;e++){const r=t.bindings[e],a=o[e];8&r.flags&&(n[(s=r.nonMinifiedName,i=void 0,i=s.replace(/[$@]/g,"_"),`ng-reflect-${s=i.replace(nn,(...e)=>"-"+e[1].toLowerCase())}`)]=rn(a))}const r=t.parent,a=fs(e,r.nodeIndex).renderElement;if(r.element.name)for(let t in n){const r=n[t];null!=r?e.renderer.setAttribute(a,t,r):e.renderer.removeAttribute(a,t)}else e.renderer.setValue(a,`bindings=${JSON.stringify(n,null,2)}`)}}var s,i}function kl(e,t,n,r){Ba(e,t,n,...r)}function $l(e,t){for(let n=t;n<e.def.nodes.length;n++){const t=e.def.nodes[n];if(16384&t.flags&&t.bindings&&t.bindings.length)return n}return null}function Al(e,t){for(let n=t;n<e.def.nodes.length;n++){const t=e.def.nodes[n];if(3&t.flags&&t.bindings&&t.bindings.length)return n}return null}class jl{constructor(e,t){this.view=e,this.nodeIndex=t,null==t&&(this.nodeIndex=t=0),this.nodeDef=e.def.nodes[t];let n=this.nodeDef,r=e;for(;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=Ns(r),r=r.parent;this.elDef=n,this.elView=r}get elOrCompView(){return fs(this.elView,this.elDef.nodeIndex).componentView||this.view}get injector(){return Si(this.elView,this.elDef)}get component(){return this.elOrCompView.component}get context(){return this.elOrCompView.context}get providerTokens(){const e=[];if(this.elDef)for(let t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){const n=this.elView.def.nodes[t];20224&n.flags&&e.push(n.provider.token),t+=n.childCount}return e}get references(){const e={};if(this.elDef){Pl(this.elView,this.elDef,e);for(let t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){const n=this.elView.def.nodes[t];20224&n.flags&&Pl(this.elView,n,e),t+=n.childCount}}return e}get componentRenderElement(){const e=function(e){for(;e&&!Is(e);)e=e.parent;return e.parent?fs(e.parent,Ns(e).nodeIndex):null}(this.elOrCompView);return e?e.renderElement:void 0}get renderNode(){return 2&this.nodeDef.flags?Rs(this.view,this.nodeDef):Rs(this.elView,this.elDef)}logError(e,...t){let n,r;2&this.nodeDef.flags?(n=this.view.def,r=this.nodeDef.nodeIndex):(n=this.elView.def,r=this.elDef.nodeIndex);const s=function(e,t){let n=-1;for(let r=0;r<=t;r++)3&e.nodes[r].flags&&n++;return n}(n,r);let i=-1;n.factory(()=>++i===s?e.error.bind(e,...t):vs),i<s&&(e.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),e.error(...t))}}function Pl(e,t,n){for(let r in t.references)n[r]=Ea(e,t,t.references[r])}function Nl(e,t,n,r){const s=_l,i=wl,o=Sl;try{_l=e;const l=t.apply(n,r);return wl=i,Sl=o,_l=s,l}catch(a){if(wt(a)||!wl)throw a;throw function(e,t){return e instanceof Error||(e=new Error(e.toString())),cs(e,t),e}(a,Rl())}}function Rl(){return wl?new jl(wl,Sl):null}class Il{constructor(e){this.delegate=e}createRenderer(e,t){return new Dl(this.delegate.createRenderer(e,t))}begin(){this.delegate.begin&&this.delegate.begin()}end(){this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)}}class Dl{constructor(e){this.delegate=e,this.debugContextFactory=Rl,this.data=this.delegate.data}createDebugContext(e){return this.debugContextFactory(e)}destroyNode(e){!function(e){ra.delete(e.nativeNode)}(sa(e)),this.delegate.destroyNode&&this.delegate.destroyNode(e)}destroy(){this.delegate.destroy()}createElement(e,t){const n=this.delegate.createElement(e,t),r=this.createDebugContext(n);if(r){const t=new na(n,null,r);t.name=e,ia(t)}return n}createComment(e){const t=this.delegate.createComment(e),n=this.createDebugContext(t);return n&&ia(new ta(t,null,n)),t}createText(e){const t=this.delegate.createText(e),n=this.createDebugContext(t);return n&&ia(new ta(t,null,n)),t}appendChild(e,t){const n=sa(e),r=sa(t);n&&r&&n instanceof na&&n.addChild(r),this.delegate.appendChild(e,t)}insertBefore(e,t,n){const r=sa(e),s=sa(t),i=sa(n);r&&s&&r instanceof na&&r.insertBefore(i,s),this.delegate.insertBefore(e,t,n)}removeChild(e,t){const n=sa(e),r=sa(t);n&&r&&n instanceof na&&n.removeChild(r),this.delegate.removeChild(e,t)}selectRootElement(e,t){const n=this.delegate.selectRootElement(e,t),r=Rl();return r&&ia(new na(n,null,r)),n}setAttribute(e,t,n,r){const s=sa(e);s&&s instanceof na&&(s.attributes[r?r+":"+t:t]=n),this.delegate.setAttribute(e,t,n,r)}removeAttribute(e,t,n){const r=sa(e);r&&r instanceof na&&(r.attributes[n?n+":"+t:t]=null),this.delegate.removeAttribute(e,t,n)}addClass(e,t){const n=sa(e);n&&n instanceof na&&(n.classes[t]=!0),this.delegate.addClass(e,t)}removeClass(e,t){const n=sa(e);n&&n instanceof na&&(n.classes[t]=!1),this.delegate.removeClass(e,t)}setStyle(e,t,n,r){const s=sa(e);s&&s instanceof na&&(s.styles[t]=n),this.delegate.setStyle(e,t,n,r)}removeStyle(e,t,n){const r=sa(e);r&&r instanceof na&&(r.styles[t]=null),this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){const r=sa(e);r&&r instanceof na&&(r.properties[t]=n),this.delegate.setProperty(e,t,n)}listen(e,t,n){if("string"!=typeof e){const r=sa(e);r&&r.listeners.push(new ea(t,n))}return this.delegate.listen(e,t,n)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setValue(e,t){return this.delegate.setValue(e,t)}}function Ll(e,t,n){return new Ml(e,t,n)}class Ml extends Ar{constructor(e,t,n){super(),this.moduleType=e,this._bootstrapComponents=t,this._ngModuleDefFactory=n}create(e){!function(){if(el)return;el=!0;const e=Ot()?{setCurrentNode:El,createRootView:nl,createEmbeddedView:sl,createComponentView:il,createNgModuleRef:ol,overrideProvider:ul,overrideComponentView:hl,clearOverrides:dl,checkAndUpdateView:gl,checkNoChangesView:yl,destroyView:bl,createDebugContext:(e,t)=>new jl(e,t),handleEvent:Cl,updateDirectives:xl,updateRenderer:Tl}:{setCurrentNode:()=>{},createRootView:tl,createEmbeddedView:Ia,createComponentView:La,createNgModuleRef:Oi,overrideProvider:vs,overrideComponentView:vs,clearOverrides:vs,checkAndUpdateView:za,checkNoChangesView:Ua,destroyView:Wa,createDebugContext:(e,t)=>new jl(e,t),handleEvent:(e,t,n,r)=>e.def.handleEvent(e,t,n,r),updateDirectives:(e,t)=>e.def.updateDirectives(0===t?fl:ml,e),updateRenderer:(e,t)=>e.def.updateRenderer(0===t?fl:ml,e)};bs.setCurrentNode=e.setCurrentNode,bs.createRootView=e.createRootView,bs.createEmbeddedView=e.createEmbeddedView,bs.createComponentView=e.createComponentView,bs.createNgModuleRef=e.createNgModuleRef,bs.overrideProvider=e.overrideProvider,bs.overrideComponentView=e.overrideComponentView,bs.clearOverrides=e.clearOverrides,bs.checkAndUpdateView=e.checkAndUpdateView,bs.checkNoChangesView=e.checkNoChangesView,bs.destroyView=e.destroyView,bs.resolveDep=Wi,bs.createDebugContext=e.createDebugContext,bs.handleEvent=e.handleEvent,bs.updateDirectives=e.updateDirectives,bs.updateRenderer=e.updateRenderer,bs.dirtyParentQueries=_a}();const t=function(e){const t=Array.from(e.providers),n=Array.from(e.modules),r={};for(const s in e.providersByKey)r[s]=e.providersByKey[s];return{factory:e.factory,isRoot:e.isRoot,providers:t,modules:n,providersByKey:r}}(zs(this._ngModuleDefFactory));return bs.createNgModuleRef(this.moduleType,e||D.NULL,this._bootstrapComponents,t)}}},"930v":function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("+4pY");const s=()=>Object(r.a)().easing("cubic-bezier(0.0, 0.0, 0.2, 1)").duration(300),i=e=>{let t,n;const i=e.width+8,o=Object(r.a)(),a=Object(r.a)();return e.isEndSide?(t=i+"px",n="0px"):(t=-i+"px",n="0px"),o.addElement(e.menuInnerEl).fromTo("transform",`translateX(${t})`,`translateX(${n})`),a.addElement(e.backdropEl).fromTo("opacity",.01,.32),s().addAnimation([o,a])},o=e=>{let t,n;const i=e.width;e.isEndSide?(t=-i+"px",n=i+"px"):(t=i+"px",n=-i+"px");const o=Object(r.a)().addElement(e.menuInnerEl).fromTo("transform",`translateX(${n})`,"translateX(0px)"),a=Object(r.a)().addElement(e.contentEl).fromTo("transform","translateX(0px)",`translateX(${t})`),l=Object(r.a)().addElement(e.backdropEl).fromTo("opacity",.01,.32);return s().addAnimation([o,l,a])},a=e=>{const t=e.width*(e.isEndSide?-1:1)+"px",n=Object(r.a)().addElement(e.contentEl).fromTo("transform","translateX(0px)",`translateX(${t})`);return s().addAnimation(n)},l=(()=>{const e=new Map,t=[],n=async e=>(await d(),"start"===e||"end"===e?h(t=>t.side===e&&!t.disabled)||h(t=>t.side===e):null!=e?h(t=>t.menuId===e):h(e=>!e.disabled)||(t.length>0?t[0].el:void 0)),r=async()=>(await d(),c()),s=(t,n)=>{e.set(t,n)},l=e=>{const n=e.side;t.filter(t=>t.side===n&&t!==e).forEach(e=>e.disabled=!0)},c=()=>h(e=>e._isOpen),u=()=>t.some(e=>e.isAnimating),h=e=>{const n=t.find(e);if(void 0!==n)return n.el},d=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(e=>e.componentOnReady()));return s("reveal",a),s("push",o),s("overlay",i),{registerAnimation:s,get:n,getMenus:async()=>(await d(),(()=>t.map(e=>e.el))()),getOpen:r,isEnabled:async e=>{const t=await n(e);return!!t&&!t.disabled},swipeGesture:async(e,t)=>{const r=await n(t);return r&&(r.swipeGesture=e),r},isAnimating:async()=>(await d(),u()),isOpen:async e=>{if(null!=e){const t=await n(e);return void 0!==t&&t.isOpen()}return void 0!==await r()},enable:async(e,t)=>{const r=await n(t);return r&&(r.disabled=!e),r},toggle:async e=>{const t=await n(e);return!!t&&t.toggle()},close:async e=>{const t=await(void 0!==e?n(e):r());return void 0!==t&&t.close()},open:async e=>{const t=await n(e);return!!t&&t.open()},_getOpenSync:c,_createAnimation:(t,n)=>{const r=e.get(t);if(!r)throw new Error("animation not registered");return r(n)},_register:e=>{t.indexOf(e)<0&&(e.disabled||l(e),t.push(e))},_unregister:e=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},_setOpen:async(e,t,n)=>{if(u())return!1;if(t){const t=await r();t&&e.el!==t&&await t.setOpen(!1,!1)}return e._setOpen(t,n)},_setActiveMenu:l}})()},"9ppp":function(e,t,n){"use strict";function r(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}n.d(t,"a",function(){return s}),r.prototype=Object.create(Error.prototype);const s=r},"AfW+":function(e,t,n){"use strict";n.d(t,"a",function(){return _}),n.d(t,"b",function(){return y}),n.d(t,"c",function(){return b}),n.d(t,"d",function(){return v}),n.d(t,"e",function(){return r}),n.d(t,"f",function(){return s}),n.d(t,"g",function(){return i});const r=e=>i(e),s=(e,t)=>("string"==typeof e&&(t=e,e=void 0),r(e).includes(t)),i=(e=window)=>{e.Ionic=e.Ionic||{};let t=e.Ionic.platforms;return null==t&&(t=e.Ionic.platforms=o(e)).forEach(t=>e.document.documentElement.classList.add(`plt-${t}`)),t},o=e=>Object.keys(m).filter(t=>m[t](e)),a=e=>!!p(e,/iPad/i)||!(!p(e,/Macintosh/i)||!c(e)),l=e=>p(e,/android|sink/i),c=e=>f(e,"(any-pointer:coarse)"),u=e=>h(e)||d(e),h=e=>!!(e.cordova||e.phonegap||e.PhoneGap),d=e=>{const t=e.Capacitor;return!(!t||!t.isNative)},p=(e,t)=>t.test(e.navigator.userAgent),f=(e,t)=>e.matchMedia(t).matches,m={ipad:a,iphone:e=>p(e,/iPhone/i),ios:e=>p(e,/iPhone|iPod/i)||a(e),android:l,phablet:e=>{const t=e.innerWidth,n=e.innerHeight,r=Math.min(t,n),s=Math.max(t,n);return r>390&&r<520&&s>620&&s<800},tablet:e=>{const t=e.innerWidth,n=e.innerHeight,r=Math.min(t,n),s=Math.max(t,n);return a(e)||(e=>l(e)&&!p(e,/mobile/i))(e)||r>460&&r<820&&s>780&&s<1400},cordova:h,capacitor:d,electron:e=>p(e,/electron/i),pwa:e=>!(!e.matchMedia("(display-mode: standalone)").matches&&!e.navigator.standalone),mobile:c,mobileweb:e=>c(e)&&!u(e),desktop:e=>!c(e),hybrid:u};class g{constructor(){this.m=new Map}reset(e){this.m=new Map(Object.entries(e))}get(e,t){const n=this.m.get(e);return void 0!==n?n:t}getBoolean(e,t=!1){const n=this.m.get(e);return void 0===n?t:"string"==typeof n?"true"===n:!!n}getNumber(e,t){const n=parseFloat(this.m.get(e));return isNaN(n)?void 0!==t?t:NaN:n}set(e,t){this.m.set(e,t)}}const y=new g,b=e=>{try{const n=e.sessionStorage.getItem(E);return null!==n?JSON.parse(n):{}}catch(t){return{}}},v=(e,t)=>{try{e.sessionStorage.setItem(E,JSON.stringify(t))}catch(n){return}},_=e=>{const t={};return e.location.search.slice(1).split("&").map(e=>e.split("=")).map(([e,t])=>[decodeURIComponent(e),decodeURIComponent(t)]).filter(([e])=>w(e,S)).map(([e,t])=>[e.slice(S.length),t]).forEach(([e,n])=>{t[e]=n}),t},w=(e,t)=>e.substr(0,t.length)===t,S="ionic:",E="ionic-persist-config"},AytR:function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r={production:!0,apiUrl:"http://devapi.superette.tn/",token:"MbFR335sMJL9K0Bt335sN7kcnU235sMRKT"}},BFxc:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("7o/Q"),s=n("4I5i"),i=n("EY2u");function o(e){return function(t){return 0===e?Object(i.b)():t.lift(new a(e))}}class a{constructor(e){if(this.total=e,this.total<0)throw new s.a}call(e,t){return t.subscribe(new l(e,this.total))}}class l extends r.a{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,n=this.total,r=this.count++;t.length<n?t.push(e):t[r%n]=e}_complete(){const e=this.destination;let t=this.count;if(t>0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let s=0;s<n;s++){const s=t++%n;e.next(r[s])}}e.complete()}}},Cfvw:function(e,t,n){"use strict";var r=n("HDdC"),s=n("SeVD"),i=n("quSY"),o=n("kJWO"),a=n("jZKg"),l=n("Lhse"),c=n("c2HN"),u=n("I55L");function h(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[o.a]}(e))return function(e,t){return new r.a(n=>{const r=new i.a;return r.add(t.schedule(()=>{const s=e[o.a]();r.add(s.subscribe({next(e){r.add(t.schedule(()=>n.next(e)))},error(e){r.add(t.schedule(()=>n.error(e)))},complete(){r.add(t.schedule(()=>n.complete()))}}))})),r})}(e,t);if(Object(c.a)(e))return function(e,t){return new r.a(n=>{const r=new i.a;return r.add(t.schedule(()=>e.then(e=>{r.add(t.schedule(()=>{n.next(e),r.add(t.schedule(()=>n.complete()))}))},e=>{r.add(t.schedule(()=>n.error(e)))}))),r})}(e,t);if(Object(u.a)(e))return Object(a.a)(e,t);if(function(e){return e&&"function"==typeof e[l.a]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new r.a(n=>{const r=new i.a;let s;return r.add(()=>{s&&"function"==typeof s.return&&s.return()}),r.add(t.schedule(()=>{s=e[l.a](),r.add(t.schedule(function(){if(n.closed)return;let e,t;try{const i=s.next();e=i.value,t=i.done}catch(r){return void n.error(r)}t?n.complete():(n.next(e),this.schedule())}))})),r})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof r.a?e:new r.a(Object(s.a)(e))}n.d(t,"a",function(){return h})},DH7j:function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r=Array.isArray||(e=>e&&"number"==typeof e.length)},EY2u:function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return i});var r=n("HDdC");const s=new r.a(e=>e.complete());function i(e){return e?function(e){return new r.a(t=>e.schedule(()=>t.complete()))}(e):s}},GyhO:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("LRne"),s=n("0EUg");function i(...e){return Object(s.a)()(Object(r.a)(...e))}},HDdC:function(e,t,n){"use strict";var r=n("7o/Q"),s=n("2QA8"),i=n("gRHU"),o=n("kJWO"),a=n("mCNh"),l=n("2fFW");n.d(t,"a",function(){return c});const c=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:o}=this,a=function(e,t,n){if(e){if(e instanceof r.a)return e;if(e[s.a])return e[s.a]()}return e||t||n?new r.a(e,t,n):new r.a(i.a)}(e,t,n);if(a.add(o?o.call(a,this.source):this.source||l.a.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),l.a.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(e){try{return this._subscribe(e)}catch(t){l.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:s}=e;if(t||s)return!1;e=n&&n instanceof r.a?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=u(t))((t,n)=>{let r;r=this.subscribe(t=>{try{e(t)}catch(s){n(s),r&&r.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[o.a](){return this}pipe(...e){return 0===e.length?this:Object(a.b)(e)(this)}toPromise(e){return new(e=u(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=(t=>new e(t)),e})();function u(e){if(e||(e=l.a.Promise||Promise),!e)throw new Error("no Promise impl found");return e}},I55L:function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r=e=>e&&"number"==typeof e.length&&"function"!=typeof e},IheW:function(e,t,n){"use strict";n.d(t,"m",function(){return P}),n.d(t,"p",function(){return L}),n.d(t,"q",function(){return M}),n.d(t,"n",function(){return R}),n.d(t,"o",function(){return I}),n.d(t,"b",function(){return h}),n.d(t,"f",function(){return u}),n.d(t,"c",function(){return T}),n.d(t,"g",function(){return d}),n.d(t,"a",function(){return k}),n.d(t,"d",function(){return U}),n.d(t,"e",function(){return V}),n.d(t,"l",function(){return F}),n.d(t,"h",function(){return m}),n.d(t,"i",function(){return N}),n.d(t,"k",function(){return j}),n.d(t,"j",function(){return D});var r=n("8Y7J"),s=n("LRne"),i=n("HDdC"),o=n("bOdf"),a=n("pLZG"),l=n("lJxs"),c=n("SVse");class u{}class h{}class d{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(e=>{const t=e.indexOf(":");if(t>0){const n=e.slice(0,t),r=n.toLowerCase(),s=e.slice(t+1).trim();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(s):this.headers.set(r,[s])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let n=e[t];const r=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(r,n),this.maybeSetNormalizedName(t,r))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new d;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);const r=("a"===e.op?this.headers.get(t):void 0)||[];r.push(...n),this.headers.set(t,r);break;case"d":const s=e.value;if(s){let e=this.headers.get(t);if(!e)return;0===(e=e.filter(e=>-1===s.indexOf(e))).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,e)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class p{encodeKey(e){return f(e)}encodeValue(e){return f(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}function f(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class m{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new p,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){const n=new Map;return e.length>0&&e.split("&").forEach(e=>{const r=e.indexOf("="),[s,i]=-1==r?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,r)),t.decodeValue(e.slice(r+1))],o=n.get(s)||[];o.push(i),n.set(s,o)}),n}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const n=e.fromObject[t];this.map.set(t,Array.isArray(n)?n:[n])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(e=>t+"="+this.encoder.encodeValue(e)).join("&")}).join("&")}clone(e){const t=new m({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat([e]),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(e.value),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let t=this.map.get(e.param)||[];const n=t.indexOf(e.value);-1!==n&&t.splice(n,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}function g(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function y(e){return"undefined"!=typeof Blob&&e instanceof Blob}function b(e){return"undefined"!=typeof FormData&&e instanceof FormData}class v{constructor(e,t,n,r){let s;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,s=r):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.params&&(this.params=s.params)),this.headers||(this.headers=new d),this.params){const e=this.params.toString();if(0===e.length)this.urlWithParams=t;else{const n=t.indexOf("?");this.urlWithParams=t+(-1===n?"?":n<t.length-1?"&":"")+e}}else this.params=new m,this.urlWithParams=t}serializeBody(){return null===this.body?null:g(this.body)||y(this.body)||b(this.body)||"string"==typeof this.body?this.body:this.body instanceof m?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body?null:b(this.body)?null:y(this.body)?this.body.type||null:g(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof m?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}clone(e={}){const t=e.method||this.method,n=e.url||this.url,r=e.responseType||this.responseType,s=void 0!==e.body?e.body:this.body,i=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,o=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let a=e.headers||this.headers,l=e.params||this.params;return void 0!==e.setHeaders&&(a=Object.keys(e.setHeaders).reduce((t,n)=>t.set(n,e.setHeaders[n]),a)),e.setParams&&(l=Object.keys(e.setParams).reduce((t,n)=>t.set(n,e.setParams[n]),l)),new v(t,n,s,{params:l,headers:a,reportProgress:o,responseType:r,withCredentials:i})}}const _=function(){var e={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return e[e.Sent]="Sent",e[e.UploadProgress]="UploadProgress",e[e.ResponseHeader]="ResponseHeader",e[e.DownloadProgress]="DownloadProgress",e[e.Response]="Response",e[e.User]="User",e}();class w{constructor(e,t=200,n="OK"){this.headers=e.headers||new d,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class S extends w{constructor(e={}){super(e),this.type=_.ResponseHeader}clone(e={}){return new S({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class E extends w{constructor(e={}){super(e),this.type=_.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new E({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class C extends w{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${e.url||"(unknown url)"}`:`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function x(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}const T=(()=>(class{constructor(e){this.handler=e}request(e,t,n={}){let r;if(e instanceof v)r=e;else{let s=void 0;s=n.headers instanceof d?n.headers:new d(n.headers);let i=void 0;n.params&&(i=n.params instanceof m?n.params:new m({fromObject:n.params})),r=new v(e,t,void 0!==n.body?n.body:null,{headers:s,params:i,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const i=Object(s.a)(r).pipe(Object(o.a)(e=>this.handler.handle(e)));if(e instanceof v||"events"===n.observe)return i;const c=i.pipe(Object(a.a)(e=>e instanceof E));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return c.pipe(Object(l.a)(e=>{if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return c.pipe(Object(l.a)(e=>{if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return c.pipe(Object(l.a)(e=>{if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return c.pipe(Object(l.a)(e=>e.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:(new m).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,n={}){return this.request("PATCH",e,x(n,t))}post(e,t,n={}){return this.request("POST",e,x(n,t))}put(e,t,n={}){return this.request("PUT",e,x(n,t))}}))();class O{constructor(e,t){this.next=e,this.interceptor=t}handle(e){return this.interceptor.intercept(e,this.next)}}const k=new r.p("HTTP_INTERCEPTORS"),$=(()=>(class{intercept(e,t){return t.handle(e)}}))(),A=/^\)\]\}',?\n/;class j{}const P=(()=>(class{constructor(){}build(){return new XMLHttpRequest}}))(),N=(()=>(class{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new i.a(t=>{const n=this.xhrFactory.build();if(n.open(e.method,e.urlWithParams),e.withCredentials&&(n.withCredentials=!0),e.headers.forEach((e,t)=>n.setRequestHeader(e,t.join(","))),e.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const t=e.detectContentTypeHeader();null!==t&&n.setRequestHeader("Content-Type",t)}if(e.responseType){const t=e.responseType.toLowerCase();n.responseType="json"!==t?t:"text"}const r=e.serializeBody();let s=null;const i=()=>{if(null!==s)return s;const t=1223===n.status?204:n.status,r=n.statusText||"OK",i=new d(n.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(n)||e.url;return s=new S({headers:i,status:t,statusText:r,url:o})},o=()=>{let{headers:r,status:s,statusText:o,url:a}=i(),l=null;204!==s&&(l=void 0===n.response?n.responseText:n.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===e.responseType&&"string"==typeof l){const e=l;l=l.replace(A,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=e,c&&(c=!1,l={error:u,text:l})}}c?(t.next(new E({body:l,headers:r,status:s,statusText:o,url:a||void 0})),t.complete()):t.error(new C({error:l,headers:r,status:s,statusText:o,url:a||void 0}))},a=e=>{const{url:r}=i(),s=new C({error:e,status:n.status||0,statusText:n.statusText||"Unknown Error",url:r||void 0});t.error(s)};let l=!1;const c=r=>{l||(t.next(i()),l=!0);let s={type:_.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(s.total=r.total),"text"===e.responseType&&n.responseText&&(s.partialText=n.responseText),t.next(s)},u=e=>{let n={type:_.UploadProgress,loaded:e.loaded};e.lengthComputable&&(n.total=e.total),t.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),e.reportProgress&&(n.addEventListener("progress",c),null!==r&&n.upload&&n.upload.addEventListener("progress",u)),n.send(r),t.next({type:_.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),e.reportProgress&&(n.removeEventListener("progress",c),null!==r&&n.upload&&n.upload.removeEventListener("progress",u)),n.abort()}})}}))(),R=new r.p("XSRF_COOKIE_NAME"),I=new r.p("XSRF_HEADER_NAME");class D{}const L=(()=>(class{constructor(e,t,n){this.doc=e,this.platform=t,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(c.y)(e,this.cookieName),this.lastCookieString=e),this.lastToken}}))(),M=(()=>(class{constructor(e,t){this.tokenService=e,this.headerName=t}intercept(e,t){const n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);const r=this.tokenService.getToken();return null===r||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,r)})),t.handle(e)}}))(),F=(()=>(class{constructor(e,t){this.backend=e,this.injector=t,this.chain=null}handle(e){if(null===this.chain){const e=this.injector.get(k,[]);this.chain=e.reduceRight((e,t)=>new O(e,t),this.backend)}return this.chain.handle(e)}}))(),V=(()=>{class e{static disable(){return{ngModule:e,providers:[{provide:M,useClass:$}]}}static withOptions(t={}){return{ngModule:e,providers:[t.cookieName?{provide:R,useValue:t.cookieName}:[],t.headerName?{provide:I,useValue:t.headerName}:[]]}}}return e})(),U=(()=>(class{}))()},IzEk:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("7o/Q"),s=n("4I5i"),i=n("EY2u");function o(e){return t=>0===e?Object(i.b)():t.lift(new a(e))}class a{constructor(e){if(this.total=e,this.total<0)throw new s.a}call(e,t){return t.subscribe(new l(e,this.total))}}class l extends r.a{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}},Kqap:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("7o/Q");function s(e,t){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new i(e,t,n))}}class i{constructor(e,t,n=!1){this.accumulator=e,this.seed=t,this.hasSeed=n}call(e,t){return t.subscribe(new o(e,this.accumulator,this.seed,this.hasSeed))}}class o extends r.a{constructor(e,t,n,r){super(e),this.accumulator=t,this._seed=n,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let n;try{n=this.accumulator(this.seed,e,t)}catch(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}},KqfI:function(e,t,n){"use strict";function r(){}n.d(t,"a",function(){return r})},LRne:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("z+Ro"),s=n("yCtX"),i=n("jZKg");function o(...e){let t=e[e.length-1];return Object(r.a)(t)?(e.pop(),Object(i.a)(e,t)):Object(s.a)(e)}},Lhse:function(e,t,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(t,"a",function(){return s});const s=r()},"N+K7":function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("IheW"),s=n("AytR"),i=n("n90K"),o=n("8Y7J");const a=(()=>{class e{constructor(e,t){this.http=e,this.storageServise=t}post(e,t){const n={headers:new r.g({"Content-Type":"application/x-www-form-urlencoded"}),withCredintials:!1};return this.http.post(s.a.apiUrl+e,JSON.stringify(t),n)}get(e,t){const n=new r.g({"Content-Type":"application/x-www-form-urlencoded"});let i=(new r.h).set("token",s.a.token);return this.http.get(s.a.apiUrl+e,{params:i,headers:n,withCredintials:!1})}post1(e,t){const n={headers:new r.g({"Content-Type":"application/json"}),withCredintials:!1};return this.http.post(s.a.apiUrl+e,JSON.stringify(t),n)}}return e.ngInjectableDef=o.Jb({factory:function(){return new e(o.Nb(r.c),o.Nb(i.a))},token:e,providedIn:"root"}),e})()},NJ4a:function(e,t,n){"use strict";function r(e){setTimeout(()=>{throw e},0)}n.d(t,"a",function(){return r})},SVse:function(e,t,n){"use strict";n.d(t,"x",function(){return Q}),n.d(t,"r",function(){return D}),n.d(t,"k",function(){return Z}),n.d(t,"l",function(){return K}),n.d(t,"d",function(){return g}),n.d(t,"p",function(){return y}),n.d(t,"s",function(){return _}),n.d(t,"t",function(){return w}),n.d(t,"y",function(){return Y}),n.d(t,"b",function(){return ie}),n.d(t,"i",function(){return J}),n.d(t,"j",function(){return te}),n.d(t,"m",function(){return se}),n.d(t,"c",function(){return oe}),n.d(t,"w",function(){return ae}),n.d(t,"u",function(){return ce}),n.d(t,"v",function(){return ue}),n.d(t,"q",function(){return he}),n.d(t,"o",function(){return s}),n.d(t,"f",function(){return i}),n.d(t,"h",function(){return o}),n.d(t,"a",function(){return a}),n.d(t,"e",function(){return u}),n.d(t,"n",function(){return h}),n.d(t,"g",function(){return l});var r=n("8Y7J");class s{}const i=new r.p("Location Initialized");class o{}const a=new r.p("appBaseHref"),l=(()=>{class e{constructor(t,n){this._subject=new r.m,this._urlChangeListeners=[],this._platformStrategy=t;const s=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=e.stripTrailingSlash(c(s)),this._platformStrategy.onPopState(e=>{this._subject.emit({url:this.path(!0),pop:!0,state:e.state,type:e.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,n=""){return this.path()==this.normalize(t+e.normalizeQueryParams(n))}normalize(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,c(t)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(t,n="",r=null){this._platformStrategy.pushState(r,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+e.normalizeQueryParams(n)),r)}replaceState(t,n="",r=null){this._platformStrategy.replaceState(r,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+e.normalizeQueryParams(n)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(e){this._urlChangeListeners.push(e),this.subscribe(e=>{this._notifyUrlChangeListeners(e.url,e.state)})}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(n=>n(e,t))}subscribe(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}static normalizeQueryParams(e){return e&&"?"!==e[0]?"?"+e:e}static joinWithSlash(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}static stripTrailingSlash(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}}return e})();function c(e){return e.replace(/\/index.html$/,"")}const u=(()=>(class extends o{constructor(e,t){super(),this._platformLocation=e,this._baseHref="",null!=t&&(this._baseHref=t)}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}path(e=!1){let t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}prepareExternalUrl(e){const t=l.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,r){let s=this.prepareExternalUrl(n+l.normalizeQueryParams(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,t,s)}replaceState(e,t,n,r){let s=this.prepareExternalUrl(n+l.normalizeQueryParams(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}))(),h=(()=>(class extends o{constructor(e,t){if(super(),this._platformLocation=e,null==t&&(t=this._platformLocation.getBaseHrefFromDOM()),null==t)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=t}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return l.joinWithSlash(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+l.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,r){const s=this.prepareExternalUrl(n+l.normalizeQueryParams(r));this._platformLocation.pushState(e,t,s)}replaceState(e,t,n,r){const s=this.prepareExternalUrl(n+l.normalizeQueryParams(r));this._platformLocation.replaceState(e,t,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}))(),d=void 0;var p=["en",[["a","p"],["AM","PM"],d],[["AM","PM"],d,d],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],d,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],d,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",d,"{1} 'at' {0}",d],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];const f={},m=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),g=function(){var e={Format:0,Standalone:1};return e[e.Format]="Format",e[e.Standalone]="Standalone",e}(),y=function(){var e={Narrow:0,Abbreviated:1,Wide:2,Short:3};return e[e.Narrow]="Narrow",e[e.Abbreviated]="Abbreviated",e[e.Wide]="Wide",e[e.Short]="Short",e}(),b=function(){var e={Short:0,Medium:1,Long:2,Full:3};return e[e.Short]="Short",e[e.Medium]="Medium",e[e.Long]="Long",e[e.Full]="Full",e}(),v=function(){var e={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};return e[e.Decimal]="Decimal",e[e.Group]="Group",e[e.List]="List",e[e.PercentSign]="PercentSign",e[e.PlusSign]="PlusSign",e[e.MinusSign]="MinusSign",e[e.Exponential]="Exponential",e[e.SuperscriptingExponent]="SuperscriptingExponent",e[e.PerMille]="PerMille",e[e.Infinity]="Infinity",e[e.NaN]="NaN",e[e.TimeSeparator]="TimeSeparator",e[e.CurrencyDecimal]="CurrencyDecimal",e[e.CurrencyGroup]="CurrencyGroup",e}();function _(e,t,n){const r=$(e),s=O([r[3],r[4]],t);return O(s,n)}function w(e,t,n){const r=$(e),s=O([r[5],r[6]],t);return O(s,n)}function S(e,t){return O($(e)[10],t)}function E(e,t){return O($(e)[11],t)}function C(e,t){return O($(e)[12],t)}function x(e,t){const n=$(e),r=n[13][t];if(void 0===r){if(t===v.CurrencyDecimal)return n[13][v.Decimal];if(t===v.CurrencyGroup)return n[13][v.Group]}return r}function T(e){if(!e[19])throw new Error(`Missing extra locale data for the locale "${e[0]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function O(e,t){for(let n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function k(e){const[t,n]=e.split(":");return{hours:+t,minutes:+n}}function $(e){const t=e.toLowerCase().replace(/_/g,"-");let n=f[t];if(n)return n;const r=t.split("-")[0];if(n=f[r])return n;if("en"===r)return p;throw new Error(`Missing locale data for the locale "${e}".`)}const A=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,j={},P=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,N=function(){var e={Short:0,ShortGMT:1,Long:2,Extended:3};return e[e.Short]="Short",e[e.ShortGMT]="ShortGMT",e[e.Long]="Long",e[e.Extended]="Extended",e}(),R=function(){var e={FullYear:0,Month:1,Date:2,Hours:3,Minutes:4,Seconds:5,FractionalSeconds:6,Day:7};return e[e.FullYear]="FullYear",e[e.Month]="Month",e[e.Date]="Date",e[e.Hours]="Hours",e[e.Minutes]="Minutes",e[e.Seconds]="Seconds",e[e.FractionalSeconds]="FractionalSeconds",e[e.Day]="Day",e}(),I=function(){var e={DayPeriods:0,Days:1,Months:2,Eras:3};return e[e.DayPeriods]="DayPeriods",e[e.Days]="Days",e[e.Months]="Months",e[e.Eras]="Eras",e}();function D(e,t,n,r){let s=function(e){if(W(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){e=e.trim();const t=parseFloat(e);if(!isNaN(e-t))return new Date(t);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){const[t,n,r]=e.split("-").map(e=>+e);return new Date(t,n-1,r)}let n;if(n=e.match(A))return function(e){const t=new Date(0);let n=0,r=0;const s=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),s.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));const o=Number(e[4]||0)-n,a=Number(e[5]||0)-r,l=Number(e[6]||0),c=Math.round(1e3*parseFloat("0."+(e[7]||0)));return i.call(t,o,a,l,c),t}(n)}const t=new Date(e);if(!W(t))throw new Error(`Unable to convert "${e}" into a date`);return t}(e);t=function e(t,n){const r=function(e){return $(e)[0]}(t);if(j[r]=j[r]||{},j[r][n])return j[r][n];let s="";switch(n){case"shortDate":s=S(t,b.Short);break;case"mediumDate":s=S(t,b.Medium);break;case"longDate":s=S(t,b.Long);break;case"fullDate":s=S(t,b.Full);break;case"shortTime":s=E(t,b.Short);break;case"mediumTime":s=E(t,b.Medium);break;case"longTime":s=E(t,b.Long);break;case"fullTime":s=E(t,b.Full);break;case"short":const r=e(t,"shortTime"),i=e(t,"shortDate");s=L(C(t,b.Short),[r,i]);break;case"medium":const o=e(t,"mediumTime"),a=e(t,"mediumDate");s=L(C(t,b.Medium),[o,a]);break;case"long":const l=e(t,"longTime"),c=e(t,"longDate");s=L(C(t,b.Long),[l,c]);break;case"full":const u=e(t,"fullTime"),h=e(t,"fullDate");s=L(C(t,b.Full),[u,h])}return s&&(j[r][n]=s),s}(n,t)||t;let i,o=[];for(;t;){if(!(i=P.exec(t))){o.push(t);break}{const e=(o=o.concat(i.slice(1))).pop();if(!e)break;t=e}}let a=s.getTimezoneOffset();r&&(a=G(r,a),s=function(e,t,n){const r=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(G(t,r)-r))}(s,r));let l="";return o.forEach(e=>{const t=function(e){if(B[e])return B[e];let t;switch(e){case"G":case"GG":case"GGG":t=V(I.Eras,y.Abbreviated);break;case"GGGG":t=V(I.Eras,y.Wide);break;case"GGGGG":t=V(I.Eras,y.Narrow);break;case"y":t=F(R.FullYear,1,0,!1,!0);break;case"yy":t=F(R.FullYear,2,0,!0,!0);break;case"yyy":t=F(R.FullYear,3,0,!1,!0);break;case"yyyy":t=F(R.FullYear,4,0,!1,!0);break;case"M":case"L":t=F(R.Month,1,1);break;case"MM":case"LL":t=F(R.Month,2,1);break;case"MMM":t=V(I.Months,y.Abbreviated);break;case"MMMM":t=V(I.Months,y.Wide);break;case"MMMMM":t=V(I.Months,y.Narrow);break;case"LLL":t=V(I.Months,y.Abbreviated,g.Standalone);break;case"LLLL":t=V(I.Months,y.Wide,g.Standalone);break;case"LLLLL":t=V(I.Months,y.Narrow,g.Standalone);break;case"w":t=q(1);break;case"ww":t=q(2);break;case"W":t=q(1,!0);break;case"d":t=F(R.Date,1);break;case"dd":t=F(R.Date,2);break;case"E":case"EE":case"EEE":t=V(I.Days,y.Abbreviated);break;case"EEEE":t=V(I.Days,y.Wide);break;case"EEEEE":t=V(I.Days,y.Narrow);break;case"EEEEEE":t=V(I.Days,y.Short);break;case"a":case"aa":case"aaa":t=V(I.DayPeriods,y.Abbreviated);break;case"aaaa":t=V(I.DayPeriods,y.Wide);break;case"aaaaa":t=V(I.DayPeriods,y.Narrow);break;case"b":case"bb":case"bbb":t=V(I.DayPeriods,y.Abbreviated,g.Standalone,!0);break;case"bbbb":t=V(I.DayPeriods,y.Wide,g.Standalone,!0);break;case"bbbbb":t=V(I.DayPeriods,y.Narrow,g.Standalone,!0);break;case"B":case"BB":case"BBB":t=V(I.DayPeriods,y.Abbreviated,g.Format,!0);break;case"BBBB":t=V(I.DayPeriods,y.Wide,g.Format,!0);break;case"BBBBB":t=V(I.DayPeriods,y.Narrow,g.Format,!0);break;case"h":t=F(R.Hours,1,-12);break;case"hh":t=F(R.Hours,2,-12);break;case"H":t=F(R.Hours,1);break;case"HH":t=F(R.Hours,2);break;case"m":t=F(R.Minutes,1);break;case"mm":t=F(R.Minutes,2);break;case"s":t=F(R.Seconds,1);break;case"ss":t=F(R.Seconds,2);break;case"S":t=F(R.FractionalSeconds,1);break;case"SS":t=F(R.FractionalSeconds,2);break;case"SSS":t=F(R.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=U(N.Short);break;case"ZZZZZ":t=U(N.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=U(N.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=U(N.Long);break;default:return null}return B[e]=t,t}(e);l+=t?t(s,n,a):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function L(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(e,n){return null!=t&&n in t?t[n]:e})),e}function M(e,t,n="-",r,s){let i="";(e<0||s&&e<=0)&&(s?e=1-e:(e=-e,i=n));let o=String(e);for(;o.length<t;)o="0"+o;return r&&(o=o.substr(o.length-t)),i+o}function F(e,t,n=0,r=!1,s=!1){return function(i,o){let a=function(e,t){switch(e){case R.FullYear:return t.getFullYear();case R.Month:return t.getMonth();case R.Date:return t.getDate();case R.Hours:return t.getHours();case R.Minutes:return t.getMinutes();case R.Seconds:return t.getSeconds();case R.FractionalSeconds:return t.getMilliseconds();case R.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}(e,i);if((n>0||a>-n)&&(a+=n),e===R.Hours)0===a&&-12===n&&(a=12);else if(e===R.FractionalSeconds)return l=t,M(a,3).substr(0,l);var l;const c=x(o,v.MinusSign);return M(a,t,c,r,s)}}function V(e,t,n=g.Format,r=!1){return function(s,i){return function(e,t,n,r,s,i){switch(n){case I.Months:return w(t,s,r)[e.getMonth()];case I.Days:return _(t,s,r)[e.getDay()];case I.DayPeriods:const o=e.getHours(),a=e.getMinutes();if(i){const e=function(e){const t=$(e);return T(t),(t[19][2]||[]).map(e=>"string"==typeof e?k(e):[k(e[0]),k(e[1])])}(t),n=function(e,t,n){const r=$(e);T(r);const s=O([r[19][0],r[19][1]],t)||[];return O(s,n)||[]}(t,s,r);let i;if(e.forEach((e,t)=>{if(Array.isArray(e)){const{hours:r,minutes:s}=e[0],{hours:l,minutes:c}=e[1];o>=r&&a>=s&&(o<l||o===l&&a<c)&&(i=n[t])}else{const{hours:r,minutes:s}=e;r===o&&s===a&&(i=n[t])}}),i)return i}return function(e,t,n){const r=$(e),s=O([r[1],r[2]],t);return O(s,n)}(t,s,r)[o<12?0:1];case I.Eras:return function(e,t){return O($(e)[7],t)}(t,r)[e.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${n}`)}}(s,i,e,t,n,r)}}function U(e){return function(t,n,r){const s=-1*r,i=x(n,v.MinusSign),o=s>0?Math.floor(s/60):Math.ceil(s/60);switch(e){case N.Short:return(s>=0?"+":"")+M(o,2,i)+M(Math.abs(s%60),2,i);case N.ShortGMT:return"GMT"+(s>=0?"+":"")+M(o,1,i);case N.Long:return"GMT"+(s>=0?"+":"")+M(o,2,i)+":"+M(Math.abs(s%60),2,i);case N.Extended:return 0===r?"Z":(s>=0?"+":"")+M(o,2,i)+":"+M(Math.abs(s%60),2,i);default:throw new Error(`Unknown zone width "${e}"`)}}}const z=0,H=4;function q(e,t=!1){return function(n,r){let s;if(t){const e=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,t=n.getDate();s=1+Math.floor((t+e)/7)}else{const e=function(e){const t=new Date(e,z,1).getDay();return new Date(e,0,1+(t<=H?H:H+7)-t)}(n.getFullYear()),t=(i=n,new Date(i.getFullYear(),i.getMonth(),i.getDate()+(H-i.getDay()))).getTime()-e.getTime();s=1+Math.round(t/6048e5)}var i;return M(s,e,x(r,v.MinusSign))}}const B={};function G(e,t){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function W(e){return e instanceof Date&&!isNaN(e.valueOf())}const Q=new r.p("UseV4Plurals");class K{}const Z=(()=>(class extends K{constructor(e,t){super(),this.locale=e,this.deprecatedPluralFn=t}getPluralCategory(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):function(e){return $(e)[18]}(t||this.locale)(e)){case m.Zero:return"zero";case m.One:return"one";case m.Two:return"two";case m.Few:return"few";case m.Many:return"many";default:return"other"}}}))();function Y(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[r,s]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(r.trim()===t)return decodeURIComponent(s)}return null}class X{constructor(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}const J=(()=>(class{constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){Object(r.W)()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(e)}. `+"See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${n}' of type '${e=n,e.name||typeof e}'. NgFor only supports binding to Iterables such as Arrays.`)}}var e;if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const t=[];e.forEachOperation((e,n,r)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new X(null,this._ngForOf,-1,-1),r),s=new ee(e,n);t.push(s)}else if(null==r)this._viewContainer.remove(n);else{const s=this._viewContainer.get(n);this._viewContainer.move(s,r);const i=new ee(e,s);t.push(i)}});for(let n=0;n<t.length;n++)this._perViewChange(t[n].view,t[n].record);for(let n=0,r=this._viewContainer.length;n<r;n++){const e=this._viewContainer.get(n);e.context.index=n,e.context.count=r,e.context.ngForOf=this._ngForOf}e.forEachIdentityChange(e=>{this._viewContainer.get(e.currentIndex).context.$implicit=e.item})}_perViewChange(e,t){e.context.$implicit=t.item}static ngTemplateContextGuard(e,t){return!0}}))();class ee{constructor(e,t){this.record=e,this.view=t}}const te=(()=>(class{constructor(e,t){this._viewContainer=e,this._context=new ne,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){re("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){re("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateGuard_ngIf(e,t){return!0}}))();class ne{constructor(){this.$implicit=null,this.ngIf=null}}function re(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Object(r.Fb)(t)}'.`)}const se=(()=>(class{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){this._shouldRecreateView(e)?(this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this.ngTemplateOutlet&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext))):this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(e){const t=e.ngTemplateOutletContext;return!!e.ngTemplateOutlet||t&&this._hasContextShapeChanged(t)}_hasContextShapeChanged(e){const t=Object.keys(e.previousValue||{}),n=Object.keys(e.currentValue||{});if(t.length===n.length){for(let e of n)if(-1===t.indexOf(e))return!0;return!1}return!0}_updateExistingContext(e){for(let t of Object.keys(e))this._viewRef.context[t]=this.ngTemplateOutletContext[t]}}))(),ie=(()=>(class{}))(),oe=new r.p("DocumentToken"),ae="browser",le="server";function ce(e){return e===ae}function ue(e){return e===le}const he=(()=>{class e{}return e.ngInjectableDef=Object(r.Jb)({providedIn:"root",factory:()=>new de(Object(r.Nb)(oe),window,Object(r.Nb)(r.l))}),e})();class de{constructor(e,t,n){this.document=e,this.window=t,this.errorHandler=n,this.offset=(()=>[0,0])}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(e){this.supportScrollRestoration()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(this.supportScrollRestoration()){e=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(e):e.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{const n=this.document.querySelector(`#${e}`);if(n)return void this.scrollToElement(n);const r=this.document.querySelector(`[name='${e}']`);if(r)return void this.scrollToElement(r)}catch(t){this.errorHandler.handleError(t)}}}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],r-s[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(e){return!1}}}},SeVD:function(e,t,n){"use strict";var r=n("ngJS"),s=n("NJ4a"),i=n("Lhse"),o=n("kJWO"),a=n("I55L"),l=n("c2HN"),c=n("XoHu");n.d(t,"a",function(){return u});const u=e=>{if(e&&"function"==typeof e[o.a])return(e=>t=>{const n=e[o.a]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)})(e);if(Object(a.a)(e))return Object(r.a)(e);if(Object(l.a)(e))return(e=>t=>(e.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,s.a),t))(e);if(e&&"function"==typeof e[i.a])return(e=>t=>{const n=e[i.a]();for(;;){const e=n.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t})(e);{const t=Object(c.a)(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected.`+" You can provide an Observable, Promise, Array, or Iterable.")}}},SpAZ:function(e,t,n){"use strict";function r(e){return e}n.d(t,"a",function(){return r})},TSSN:function(e,t,n){"use strict";var r=n("8Y7J"),s=n("LRne"),i=n("VRyK"),o=n("HDdC"),a=n("GyhO"),l=n("IzEk"),c=n("w1tV"),u=n("lJxs"),h=n("128B");function d(e,t,n){return 0===n?[t]:(e.push(t),e)}var p=n("eIep");n.d(t,"g",function(){return k}),n.d(t,"f",function(){return f}),n.d(t,"l",function(){return x}),n.d(t,"k",function(){return T}),n.d(t,"i",function(){return O}),n.d(t,"b",function(){return g}),n.d(t,"a",function(){return y}),n.d(t,"h",function(){return S}),n.d(t,"d",function(){return E}),n.d(t,"c",function(){return b}),n.d(t,"e",function(){return v}),n.d(t,"j",function(){return C});class f{}const m=(()=>(class extends f{getTranslation(e){return Object(s.a)({})}}))();class g{}const y=(()=>(class{handle(e){return e.key}}))();class b{}const v=(()=>(class extends b{compile(e,t){return e}compileTranslations(e,t){return e}}))();function _(e){return null!=e}function w(e){return e&&"object"==typeof e&&!Array.isArray(e)}class S{}const E=(()=>(class extends S{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){return"string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e}getValue(e,t){let n=t.split(".");t="";do{t+=n.shift(),!_(e)||!_(e[t])||"object"!=typeof e[t]&&n.length?n.length?t+=".":e=void 0:(e=e[t],t="")}while(n.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(e,n)=>{let r=this.getValue(t,n);return _(r)?r:e}):e}}))();class C{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new r.m,this.onLangChange=new r.m,this.onDefaultLangChange=new r.m}}const x=new r.p("USE_STORE"),T=new r.p("USE_DEFAULT_LANG"),O=(()=>(class{constructor(e,t,n,s,i,o=!0,a=!1){this.store=e,this.currentLoader=t,this.compiler=n,this.parser=s,this.missingTranslationHandler=i,this.useDefaultLang=o,this.isolate=a,this.pending=!1,this._onTranslationChange=new r.m,this._onLangChange=new r.m,this._onDefaultLangChange=new r.m,this._langs=[],this._translations={},this._translationRequests={}}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);void 0!==t?(this.defaultLang||(this.defaultLang=e),t.pipe(Object(l.a)(1)).subscribe(t=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return Object(s.a)(this.translations[e]);let t=this.retrieveTranslations(e);return void 0!==t?(this.currentLang||(this.currentLang=e),t.pipe(Object(l.a)(1)).subscribe(t=>{this.changeLang(e)}),t):(this.changeLang(e),Object(s.a)(this.translations[e]))}retrieveTranslations(e){let t;return void 0===this.translations[e]&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(Object(c.a)());return this.loadingTranslations=t.pipe(Object(l.a)(1),Object(u.a)(t=>this.compiler.compileTranslations(t,e)),Object(c.a)()),this.loadingTranslations.subscribe(t=>{this.translations[e]=t,this.updateLangs(),this.pending=!1},e=>{this.pending=!1}),t}setTranslation(e,t,n=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=n&&this.translations[e]?function e(t,n){let r=Object.assign({},t);return w(t)&&w(n)&&Object.keys(n).forEach(s=>{w(n[s])&&s in t?r[s]=e(t[s],n[s]):Object.assign(r,{[s]:n[s]})}),r}(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(e=>{-1===this.langs.indexOf(e)&&this.langs.push(e)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,n){let r;if(t instanceof Array){let r={},o=!1;for(let s of t)r[s]=this.getParsedResult(e,s,n),"function"==typeof r[s].subscribe&&(o=!0);if(o){let e;for(let n of t){let t="function"==typeof r[n].subscribe?r[n]:Object(s.a)(r[n]);e=void 0===e?t:Object(i.a)(e,t)}return e.pipe(Object(h.a)(d,[]),Object(u.a)(e=>{let n={};return e.forEach((e,r)=>{n[t[r]]=e}),n}))}return r}if(e&&(r=this.parser.interpolate(this.parser.getValue(e,t),n)),void 0===r&&this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(r=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),n)),void 0===r){let e={key:t,translateService:this};void 0!==n&&(e.interpolateParams=n),r=this.missingTranslationHandler.handle(e)}return void 0!==r?r:t}get(e,t){if(!_(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return o.a.create(n=>{let r=e=>{n.next(e),n.complete()},s=e=>{n.error(e)};this.loadingTranslations.subscribe(n=>{"function"==typeof(n=this.getParsedResult(n,e,t)).subscribe?n.subscribe(r,s):r(n)},s)});{let n=this.getParsedResult(this.translations[this.currentLang],e,t);return"function"==typeof n.subscribe?n:Object(s.a)(n)}}stream(e,t){if(!_(e)||!e.length)throw new Error('Parameter "key" required');return Object(a.a)(this.get(e,t),this.onLangChange.pipe(Object(p.a)(n=>{const r=this.getParsedResult(n.translations,e,t);return"function"==typeof r.subscribe?r:Object(s.a)(r)})))}instant(e,t){if(!_(e)||!e.length)throw new Error('Parameter "key" required');let n=this.getParsedResult(this.translations[this.currentLang],e,t);if(void 0!==n.subscribe){if(e instanceof Array){let t={};return e.forEach((n,r)=>{t[e[r]]=e[r]}),t}return e}return n}set(e,t,n=this.currentLang){this.translations[n][e]=this.compiler.compile(t,n),this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),this.defaultLang||this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return-1!==(e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage).indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;return(window.navigator.languages?window.navigator.languages[0]:null)||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}}))(),k=(()=>{class e{static forRoot(t={}){return{ngModule:e,providers:[t.loader||{provide:f,useClass:m},t.compiler||{provide:b,useClass:v},t.parser||{provide:S,useClass:E},t.missingTranslationHandler||{provide:g,useClass:y},C,{provide:x,useValue:t.isolate},{provide:T,useValue:t.useDefaultLang},O]}}static forChild(t={}){return{ngModule:e,providers:[t.loader||{provide:f,useClass:m},t.compiler||{provide:b,useClass:v},t.parser||{provide:S,useClass:E},t.missingTranslationHandler||{provide:g,useClass:y},{provide:x,useValue:t.isolate},{provide:T,useValue:t.useDefaultLang},O]}}}return e})()},VRyK:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("HDdC"),s=n("z+Ro"),i=n("bHdf"),o=n("yCtX");function a(...e){let t=Number.POSITIVE_INFINITY,n=null,a=e[e.length-1];return Object(s.a)(a)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof a&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof r.a?e[0]:Object(i.a)(t)(Object(o.a)(e,n))}},XNiG:function(e,t,n){"use strict";var r=n("HDdC"),s=n("7o/Q"),i=n("quSY"),o=n("9ppp");class a extends i.a{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}var l=n("2QA8");n.d(t,"b",function(){return c}),n.d(t,"a",function(){return u});class c extends s.a{constructor(e){super(e),this.destination=e}}const u=(()=>{class e extends r.a{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[l.a](){return new c(this)}lift(e){const t=new h(this,this);return t.operator=e,t}next(e){if(this.closed)throw new o.a;if(!this.isStopped){const{observers:t}=this,n=t.length,r=t.slice();for(let s=0;s<n;s++)r[s].next(e)}}error(e){if(this.closed)throw new o.a;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:t}=this,n=t.length,r=t.slice();for(let s=0;s<n;s++)r[s].error(e);this.observers.length=0}complete(){if(this.closed)throw new o.a;this.isStopped=!0;const{observers:e}=this,t=e.length,n=e.slice();for(let r=0;r<t;r++)n[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new o.a;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new o.a;return this.hasError?(e.error(this.thrownError),i.a.EMPTY):this.isStopped?(e.complete(),i.a.EMPTY):(this.observers.push(e),new a(this,e))}asObservable(){const e=new r.a;return e.source=this,e}}return e.create=((e,t)=>new h(e,t)),e})();class h extends u{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):i.a.EMPTY}}},XoHu:function(e,t,n){"use strict";function r(e){return null!==e&&"object"==typeof e}n.d(t,"a",function(){return r})},ZUHj:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("51Dv"),s=n("SeVD"),i=n("HDdC");function o(e,t,n,o,a=new r.a(e,n,o)){if(!a.closed)return t instanceof i.a?t.subscribe(a):Object(s.a)(t)(a)}},"ZZ/e":function(e,t,n){"use strict";var r=n("mrSG"),s=n("8Y7J"),i=n("SVse"),o=(n("iInd"),n("AfW+"),n("aiEM"),n("+4pY"),n("mUkt"),n("kBU6")),a=(n("930v"),n("pori"));n("XNiG");var l=n("xgIS");n("2Vo4"),n("pLZG"),n("eIep"),n("7o/Q");var c=n("c1op");n.d(t,"a",function(){return P}),n.d(t,"b",function(){return Q}),n.d(t,"c",function(){return H}),n.d(t,"d",function(){return q}),n.d(t,"e",function(){return B}),n.d(t,"f",function(){return A}),n.d(t,"g",function(){return W});var u=function(e){return"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(e):"function"==typeof requestAnimationFrame?requestAnimationFrame(e):setTimeout(e)},h=function(e,t){var n=e.prototype;t.forEach(function(e){Object.defineProperty(n,e,{get:function(){return this.el[e]},set:function(t){var n=this;this.z.runOutsideAngular(function(){return n.el[e]=t})}})})},d=function(e,t){var n=e.prototype;t.forEach(function(e){n[e]=function(){var t=this,n=arguments;return this.z.runOutsideAngular(function(){return t.el[e].apply(t.el,n)})}})},p=function(e,t,n){n.forEach(function(n){return e[n]=Object(l.a)(t,n)})};h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}}(),["color","defaultHref","disabled","icon","mode","text","type"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,p(this,this.el,["ionBackdropTap"])}}(),["stopPropagation","tappable","visible"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}}(),["color","mode"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,p(this,this.el,["ionFocus","ionBlur"])}}(),["buttonType","color","disabled","download","expand","fill","href","mode","rel","routerDirection","shape","size","strong","target","type"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}}(),["collapse"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}}(),["button","color","disabled","download","href","mode","rel","routerDirection","target","type"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}}(),["mode"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}}(),["color","mode","translucent"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}}(),["color","mode"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}}(),["color","mode"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,p(this,this.el,["ionChange","ionFocus","ionBlur"])}}(),["checked","color","disabled","indeterminate","mode","name","value"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}}(),["color","mode","outline"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}}(),["offset","offsetLg","offsetMd","offsetSm","offsetXl","offsetXs","pull","pullLg","pullMd","pullSm","pullXl","pullXs","push","pushLg","pushMd","pushSm","pushXl","pushXs","size","sizeLg","sizeMd","sizeSm","sizeXl","sizeXs"]);var f=function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,p(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])}}();d(f,["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]),h(f,["color","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"]);var m=function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,p(this,this.el,["ionCancel","ionChange","ionFocus","ionBlur"])}}();d(m,["open"]),h(m,["cancelText","dayNames","dayShortNames","dayValues","disabled","displayFormat","doneText","hourValues","max","min","minuteValues","mode","monthNames","monthShortNames","monthValues","name","pickerFormat","pickerOptions","placeholder","readonly","value","yearValues"]);var g=function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}}();d(g,["close"]),h(g,["activated","edge","horizontal","vertical"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,p(this,this.el,["ionFocus","ionBlur"])}}(),["activated","color","disabled","download","href","mode","rel","routerDirection","show","size","target","translucent","type"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}}(),["activated","side"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}}(),["mode","translucent"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}}(),["fixed"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}}(),["collapse","mode","translucent"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}}(),["ariaLabel","color","flipRtl","icon","ios","lazy","md","mode","name","size","src"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,p(this,this.el,["ionImgWillLoad","ionImgDidLoad","ionError"])}}(),["alt","src"]);var y=function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,p(this,this.el,["ionInfinite"])}}();d(y,["complete"]),h(y,["disabled","position","threshold"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}}(),["loadingSpinner","loadingText"]);var b=function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,p(this,this.el,["ionInput","ionChange","ionBlur","ionFocus"])}}();d(b,["setFocus","getInputElement"]),h(b,["accept","autocapitalize","autocomplete","autocorrect","autofocus","clearInput","clearOnEdit","color","debounce","disabled","inputmode","max","maxlength","min","minlength","mode","multiple","name","pattern","placeholder","readonly","required","size","spellcheck","step","type","value"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}}(),["button","color","detail","detailIcon","disabled","download","href","lines","mode","rel","routerDirection","target","type"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}}(),["color","mode","sticky"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}}(),["color","disabled","download","expandable","href","mode","rel","target","type"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,p(this,this.el,["ionSwipe"])}}(),["side"]);var v=function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,p(this,this.el,["ionDrag"])}}();d(v,["getOpenAmount","getSlidingRatio","open","close","closeOpened"]),h(v,["disabled"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}}(),["color","mode","position"]);var _=function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}}();d(_,["closeSlidingItems"]),h(_,["inset","lines","mode"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}}(),["color","mode"]);var w=function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,p(this,this.el,["ionWillOpen","ionWillClose","ionDidOpen","ionDidClose"])}}();d(w,["isOpen","isActive","open","close","toggle","setOpen"]),h(w,["contentId","disabled","maxEdgeStart","menuId","side","swipeGesture","type"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}}(),["autoHide","color","disabled","menu","type"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}}(),["autoHide","menu"]);var S=function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,p(this,this.el,["ionNavWillChange","ionNavDidChange"])}}();d(S,["push","insert","insertPages","pop","popTo","popToRoot","removeIndex","setRoot","setPages","getActive","getByIndex","canGoBack","getPrevious"]),h(S,["animated","animation","root","rootParams","swipeGesture"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}}(),["component","componentProps","routerDirection"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}}(),["component","componentProps"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}}(),["component","componentProps"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}}(),["color","mode"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}}(),["buffer","color","mode","reversed","type","value"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,p(this,this.el,["ionSelect","ionFocus","ionBlur"])}}(),["checked","color","disabled","mode","name","value"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,p(this,this.el,["ionChange"])}}(),["allowEmptySelection","name","value"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,p(this,this.el,["ionChange","ionFocus","ionBlur"])}}(),["color","debounce","disabled","dualKnobs","max","min","mode","name","pin","snaps","step","ticks","value"]);var E=function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,p(this,this.el,["ionRefresh","ionPull","ionStart"])}}();d(E,["complete","cancel","getProgress"]),h(E,["closeDuration","disabled","pullFactor","pullMax","pullMin","snapbackDuration"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}}(),["pullingIcon","pullingText","refreshingSpinner","refreshingText"]);var C=function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,p(this,this.el,["ionItemReorder"])}}();d(C,["complete"]),h(C,["disabled"]);var x=function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}}();d(x,["addRipple"]),h(x,["type"]);var T=function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,p(this,this.el,["ionInput","ionChange","ionCancel","ionClear","ionBlur","ionFocus"])}}();d(T,["setFocus","getInputElement"]),h(T,["animated","autocomplete","autocorrect","cancelButtonIcon","cancelButtonText","clearIcon","color","debounce","disabled","inputmode","mode","placeholder","searchIcon","showCancelButton","spellcheck","type","value"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,p(this,this.el,["ionChange"])}}(),["color","disabled","mode","scrollable","value"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,p(this,this.el,["ionSelect"])}}(),["checked","disabled","layout","mode","type","value"]);var O=function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,p(this,this.el,["ionChange","ionCancel","ionFocus","ionBlur"])}}();d(O,["open"]),h(O,["cancelText","compareWith","disabled","interface","interfaceOptions","mode","multiple","name","okText","placeholder","selectedText","value"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}}(),["disabled","selected","value"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}}(),["animated","width"]);var k=function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,p(this,this.el,["ionSlidesDidLoad","ionSlideTap","ionSlideDoubleTap","ionSlideWillChange","ionSlideDidChange","ionSlideNextStart","ionSlidePrevStart","ionSlideNextEnd","ionSlidePrevEnd","ionSlideTransitionStart","ionSlideTransitionEnd","ionSlideDrag","ionSlideReachStart","ionSlideReachEnd","ionSlideTouchStart","ionSlideTouchEnd"])}}();d(k,["update","updateAutoHeight","slideTo","slideNext","slidePrev","getActiveIndex","getPreviousIndex","length","isEnd","isBeginning","startAutoplay","stopAutoplay","lockSwipeToNext","lockSwipeToPrev","lockSwipes","getSwiper"]),h(k,["mode","options","pager","scrollbar"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}}(),["color","duration","name","paused"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,p(this,this.el,["ionSplitPaneVisible"])}}(),["contentId","disabled","when"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}}(),["color","mode","selectedTab","translucent"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}}(),["disabled","download","href","layout","mode","rel","selected","tab","target"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}}(),["color","mode"]);var $=function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,p(this,this.el,["ionChange","ionInput","ionBlur","ionFocus"])}}();d($,["setFocus","getInputElement"]),h($,["autoGrow","autocapitalize","autofocus","clearOnEdit","color","cols","debounce","disabled","maxlength","minlength","mode","name","placeholder","readonly","required","rows","spellcheck","value","wrap"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}}(),["color","size"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,p(this,this.el,["ionChange","ionFocus","ionBlur"])}}(),["checked","color","disabled","mode","name","value"]),h(function(){return function(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}}(),["color","mode"]);var A=new s.p("USERCONFIG"),j=function(){function e(e){void 0===e&&(e={}),this.data=e}return e.prototype.get=function(e){return this.data[e]},e}(),P=function(){function e(e,t){this.zone=e,this.appRef=t}return e.prototype.create=function(e,t,n){return new N(e,t,n,this.appRef,this.zone)},e}(),N=function(){function e(e,t,n,r,s){this.resolver=e,this.injector=t,this.location=n,this.appRef=r,this.zone=s,this.elRefMap=new WeakMap,this.elEventsMap=new WeakMap}return e.prototype.attachViewToDom=function(e,t,n,r){var s=this;return this.zone.run(function(){return new Promise(function(i){i(R(s.zone,s.resolver,s.injector,s.location,s.appRef,s.elRefMap,s.elEventsMap,e,t,n,r))})})},e.prototype.removeViewFromDom=function(e,t){var n=this;return this.zone.run(function(){return new Promise(function(e){var r=n.elRefMap.get(t);if(r){r.destroy(),n.elRefMap.delete(t);var s=n.elEventsMap.get(t);s&&(s(),n.elEventsMap.delete(t))}e()})})},e}(),R=function(e,t,n,r,i,o,a,l,c,u,h){var d=t.resolveComponentFactory(c),p=s.q.create({providers:M(u),parent:n}),f=r?r.createComponent(d,r.length,p):d.create(p),m=f.instance,g=f.location.nativeElement;if(u&&Object.assign(m,u),h)for(var y=0,b=h;y<b.length;y++)g.classList.add(b[y]);var v=D(e,m,g);return l.appendChild(g),r||i.attachView(f.hostView),f.changeDetectorRef.reattach(),o.set(g,f),a.set(g,v),g},I=[o.a,o.b,o.c,o.d,o.e],D=function(e,t,n){return e.run(function(){var e=I.filter(function(e){return"function"==typeof t[e]}).map(function(e){var r=function(n){return t[e](n.detail)};return n.addEventListener(e,r),function(){return n.removeEventListener(e,r)}});return function(){return e.forEach(function(e){return e()})}})},L=new s.p("NavParamsToken"),M=function(e){return[{provide:L,useValue:e},{provide:j,useFactory:F,deps:[L]}]},F=function(e){return new j(e)},V=function(){function e(e,t,n){this.z=e,this.iterableDiffers=t,this.refMap=new WeakMap,this.el=n.nativeElement,this.el.nodeRender=this.nodeRender.bind(this)}return e.prototype.ngOnChanges=function(e){if(this.trackBy&&"items"in e){var t=e.items.currentValue;if(void 0===this.differ&&null!=t)try{this.differ=this.iterableDiffers.find(t).create(this.trackBy)}catch(n){throw new Error("Cannot find a differ supporting object '"+t+"'. VirtualScroll only supports binding to Iterables such as Arrays.")}}},e.prototype.ngDoCheck=function(){null!==(void 0!==this.differ&&this.items?this.differ.diff(this.items):null)&&this.checkRange(0)},e.prototype.nodeRender=function(e,t,n){var r=this;return this.z.run(function(){var s;if(e){var i=(s=r.refMap.get(e)).context;i.$implicit=t.value,i.index=t.index}else s=r.itmTmp.viewContainer.createEmbeddedView(r.getComponent(t.type),{$implicit:t.value,index:n},n),e=U(s),r.refMap.set(e,s);return s.detectChanges(),e})},e.prototype.getComponent=function(e){switch(e){case"item":return this.itmTmp.templateRef;case"header":return this.hdrTmp.templateRef;case"footer":return this.ftrTmp.templateRef}throw new Error("template for virtual item was not provided")},e}(),U=function(e){for(var t=e.rootNodes,n=0;n<t.length;n++)if(1===t[n].nodeType)return t[n];throw new Error("virtual element was not created")};h(V,["approxItemHeight","approxHeaderHeight","approxFooterHeight","headerFn","footerFn","items","itemHeight","headerHeight","footerHeight"]),d(V,["checkEnd","checkRange","positionForItem"]);var z=function(){function e(e){this.ctrl=e}return e.prototype.create=function(e){return this.ctrl.create(e||{})},e.prototype.dismiss=function(e,t,n){return this.ctrl.dismiss(e,t,n)},e.prototype.getTop=function(){return this.ctrl.getTop()},e}(),H=function(e){function t(t,n,r){var s=e.call(this,a.n)||this;return s.angularDelegate=t,s.resolver=n,s.injector=r,s}return Object(r.c)(t,e),t.prototype.create=function(t){return e.prototype.create.call(this,Object(r.a)({},t,{delegate:this.angularDelegate.create(this.resolver,this.injector)}))},t}(z),q=function(e){function t(t,n,r){var s=e.call(this,a.d)||this;return s.angularDelegate=t,s.resolver=n,s.injector=r,s}return Object(r.c)(t,e),t.prototype.create=function(t){return e.prototype.create.call(this,Object(r.a)({},t,{delegate:this.angularDelegate.create(this.resolver,this.injector)}))},t}(z),B=function(e){function t(){return e.call(this,a.q)||this}return Object(r.c)(t,e),t.ngInjectableDef=Object(s.R)({factory:function(){return new t},token:t,providedIn:"root"}),t}(z),G=!1,W=function(e,t,s){return function(){var i=t.defaultView;if(i){G&&console.warn("Ionic Angular was already initialized. Make sure IonicModule.forRoot() is just called once."),G=!0,(i.Ionic=i.Ionic||{}).config=Object(r.a)({},e,{_zoneGate:function(e){return s.run(e)}});var o="__zone_symbol__addEventListener"in t.body?"__zone_symbol__addEventListener":"addEventListener";return function(){var e=window,t=[];return e.customElements&&(!e.Element||e.Element.prototype.closest&&e.Element.prototype.matches&&e.Element.prototype.remove)||t.push(n.e(109).then(n.t.bind(null,"QdDj",7))),"function"==typeof Object.assign&&Object.entries&&Array.prototype.find&&Array.prototype.includes&&String.prototype.startsWith&&String.prototype.endsWith&&(!e.NodeList||e.NodeList.prototype.forEach)&&e.fetch&&function(){try{var e=new URL("b","http://a");return e.pathname="c%20d","http://a/c%20d"===e.href&&e.searchParams}catch(t){return!1}}()&&"undefined"!=typeof WeakMap||t.push(n.e(108).then(n.t.bind(null,"t6o4",7))),Promise.all(t)}().then(function(){return((e,t)=>Object(c.b)().then(()=>{Object(c.h)(),Object(c.c)(JSON.parse('[[{"ios":"ion-select_3-ios","md":"ion-select_3-md"},[[2,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"options":[16]},[[0,"ionSelect","onSelect"]]],[1,"ion-select",{"disabled":[4],"cancelText":[1,"cancel-text"],"okText":[1,"ok-text"],"placeholder":[1],"name":[1],"selectedText":[1,"selected-text"],"multiple":[4],"interface":[1],"interfaceOptions":[8,"interface-options"],"compareWith":[1,"compare-with"],"value":[1032],"isExpanded":[32],"open":[64]}],[1,"ion-select-option",{"disabled":[4],"selected":[4],"value":[8]}]]],[{"ios":"ion-menu_4-ios","md":"ion-menu_4-md"},[[1,"ion-menu-button",{"color":[1],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[32,"ionMenuChange","visibilityChanged"],[32,"ionSplitPaneVisible","visibilityChanged"]]],[1,"ion-menu",{"contentId":[1,"content-id"],"menuId":[1,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[32,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"]]],[0,"ion-menu-controller",{"open":[64],"close":[64],"toggle":[64],"enable":[64],"swipeGesture":[64],"isOpen":[64],"isEnabled":[64],"get":[64],"getOpen":[64],"getMenus":[64],"isAnimating":[64],"registerAnimation":[64]}],[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[32,"ionMenuChange","visibilityChanged"],[32,"ionSplitPaneVisible","visibilityChanged"]]]]],[{"ios":"ion-action-sheet-ios","md":"ion-action-sheet-md"},[[2,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],[{"ios":"ion-fab_3-ios","md":"ion-fab_3-md"},[[1,"ion-fab-button",{"color":[1],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1]}],[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64]}],[1,"ion-fab-list",{"activated":[4],"side":[1]}]]],[{"ios":"ion-refresher_2-ios","md":"ion-refresher_2-md"},[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}],[0,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]}]]],[{"ios":"ion-alert-ios","md":"ion-alert-md"},[[2,"ion-alert",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],[{"ios":"ion-back-button-ios","md":"ion-back-button-md"},[[2,"ion-back-button",{"color":[1],"defaultHref":[1,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1]}]]],[{"ios":"ion-loading-ios","md":"ion-loading-md"},[[2,"ion-loading",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],[{"ios":"ion-toast-ios","md":"ion-toast-md"},[[1,"ion-toast",{"overlayIndex":[2,"overlay-index"],"color":[1],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"showCloseButton":[4,"show-close-button"],"closeButtonText":[1,"close-button-text"],"buttons":[16],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],[{"ios":"ion-card_5-ios","md":"ion-card_5-md"},[[6,"ion-card",{"color":[1],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"target":[1]}],[0,"ion-card-content"],[1,"ion-card-header",{"color":[1],"translucent":[4]}],[1,"ion-card-subtitle",{"color":[1]}],[1,"ion-card-title",{"color":[1]}]]],[{"ios":"ion-item-option_3-ios","md":"ion-item-option_3-md"},[[1,"ion-item-option",{"color":[1],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}],[0,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}],[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]}]]],[{"ios":"ion-infinite-scroll_2-ios","md":"ion-infinite-scroll_2-md"},[[0,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}],[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]}]]],[{"ios":"ion-reorder_2-ios","md":"ion-reorder_2-md"},[[1,"ion-reorder",null,[[2,"click","onClick"]]],[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]}]]],[{"ios":"ion-segment_2-ios","md":"ion-segment_2-md"},[[1,"ion-segment-button",{"checked":[1028],"disabled":[4],"layout":[1],"type":[1],"value":[1]}],[2,"ion-segment",{"color":[1],"disabled":[4],"scrollable":[4],"value":[1025]},[[0,"ionSelect","segmentClick"]]]]],[{"ios":"ion-tab-bar_2-ios","md":"ion-tab-bar_2-md"},[[1,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[16,"ionTabBarChanged","onTabBarChanged"]]],[1,"ion-tab-bar",{"color":[1],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]},[[8,"keyboardWillHide","onKeyboardWillHide"],[8,"keyboardWillShow","onKeyboardWillShow"]]]]],[{"ios":"ion-chip-ios","md":"ion-chip-md"},[[1,"ion-chip",{"color":[1],"outline":[4]}]]],[{"ios":"ion-modal-ios","md":"ion-modal-md"},[[2,"ion-modal",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],[{"ios":"ion-popover-ios","md":"ion-popover-md"},[[2,"ion-popover",{"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],[{"ios":"ion-searchbar-ios","md":"ion-searchbar-md"},[[2,"ion-searchbar",{"color":[1],"animated":[4],"autocomplete":[1],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[8,"show-cancel-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]}]]],["ion-action-sheet-controller_8",[[0,"ion-action-sheet-controller",{"create":[64],"dismiss":[64],"getTop":[64]}],[0,"ion-alert-controller",{"create":[64],"dismiss":[64],"getTop":[64]}],[1,"ion-anchor",{"color":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"]}],[0,"ion-loading-controller",{"create":[64],"dismiss":[64],"getTop":[64]}],[0,"ion-modal-controller",{"create":[64],"dismiss":[64],"getTop":[64]}],[0,"ion-picker-controller",{"create":[64],"dismiss":[64],"getTop":[64]}],[0,"ion-popover-controller",{"create":[64],"dismiss":[64],"getTop":[64]}],[0,"ion-toast-controller",{"create":[64],"dismiss":[64],"getTop":[64]}]]],[{"ios":"ion-app_8-ios","md":"ion-app_8-md"},[[0,"ion-app"],[2,"ion-buttons",{"collapse":[4]}],[1,"ion-content",{"color":[1],"fullscreen":[4],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[2,"click","onClick"]]],[0,"ion-footer",{"translucent":[4]}],[0,"ion-header",{"collapse":[1],"translucent":[4]}],[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]}],[1,"ion-title",{"color":[1],"size":[1]}],[1,"ion-toolbar",{"color":[1]},[[0,"ionStyle","childrenStyle"]]]]],["ion-nav_5",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64]}],[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"]}],[0,"ion-nav-pop"],[0,"ion-nav-push",{"component":[1],"componentProps":[16]}],[0,"ion-nav-set-root",{"component":[1],"componentProps":[16]}]]],["ion-route_4",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16]}],[0,"ion-route-redirect",{"from":[1],"to":[1]}],[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]],[1,"ion-router-link",{"color":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"target":[1]}]]],[{"ios":"ion-avatar_3-ios","md":"ion-avatar_3-md"},[[1,"ion-avatar"],[1,"ion-badge",{"color":[1]}],[1,"ion-thumbnail"]]],["ion-col_3",[[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"]]],[{"ios":"ion-slide_2-ios","md":"ion-slide_2-md"},[[0,"ion-slide"],[4,"ion-slides",{"options":[8],"pager":[4],"scrollbar":[4],"update":[64],"updateAutoHeight":[64],"slideTo":[64],"slideNext":[64],"slidePrev":[64],"getActiveIndex":[64],"getPreviousIndex":[64],"length":[64],"isEnd":[64],"isBeginning":[64],"startAutoplay":[64],"stopAutoplay":[64],"lockSwipeToNext":[64],"lockSwipeToPrev":[64],"lockSwipes":[64],"getSwiper":[64]}]]],["ion-tab_2",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]}],[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],[{"ios":"ion-checkbox-ios","md":"ion-checkbox-md"},[[1,"ion-checkbox",{"color":[1],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[1]}]]],["ion-img",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]}]]],[{"ios":"ion-input-ios","md":"ion-input-md"},[[2,"ion-input",{"color":[1],"accept":[1],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"inputmode":[1],"max":[1],"maxlength":[2],"min":[1],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"step":[1],"size":[2],"type":[1],"value":[1025],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]}]]],[{"ios":"ion-progress-bar-ios","md":"ion-progress-bar-md"},[[1,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[1]}]]],[{"ios":"ion-range-ios","md":"ion-range-md"},[[1,"ion-range",{"color":[1],"debounce":[2],"name":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"snaps":[4],"step":[2],"ticks":[4],"disabled":[4],"value":[1026],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]}]]],[{"ios":"ion-split-pane-ios","md":"ion-split-pane-md"},[[0,"ion-split-pane",{"contentId":[1,"content-id"],"disabled":[4],"when":[8],"visible":[32]}]]],["ion-text",[[1,"ion-text",{"color":[1]}]]],[{"ios":"ion-textarea-ios","md":"ion-textarea-md"},[[2,"ion-textarea",{"color":[1],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[1028,"clear-on-edit"],"debounce":[2],"disabled":[4],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[2],"rows":[2],"wrap":[1],"autoGrow":[4,"auto-grow"],"value":[1025],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]}]]],[{"ios":"ion-toggle-ios","md":"ion-toggle-md"},[[1,"ion-toggle",{"color":[1],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"activated":[32]}]]],["ion-virtual-scroll",[[0,"ion-virtual-scroll",{"approxItemHeight":[2,"approx-item-height"],"approxHeaderHeight":[2,"approx-header-height"],"approxFooterHeight":[2,"approx-footer-height"],"headerFn":[16],"footerFn":[16],"items":[16],"itemHeight":[16],"headerHeight":[16],"footerHeight":[16],"renderItem":[16],"renderHeader":[16],"renderFooter":[16],"nodeRender":[16],"domRender":[16],"totalHeight":[32],"positionForItem":[64],"checkRange":[64],"checkEnd":[64]},[[9,"resize","onResize"]]]]],[{"ios":"ion-datetime_3-ios","md":"ion-datetime_3-md"},[[2,"ion-picker",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]}],[1,"ion-datetime",{"name":[1],"disabled":[4],"readonly":[4],"min":[1025],"max":[1025],"displayFormat":[1,"display-format"],"pickerFormat":[1,"picker-format"],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"monthNames":[1,"month-names"],"monthShortNames":[1,"month-short-names"],"dayNames":[1,"day-names"],"dayShortNames":[1,"day-short-names"],"pickerOptions":[16],"placeholder":[1],"value":[1025],"isExpanded":[32],"open":[64]}],[0,"ion-picker-column",{"col":[16]}]]],[{"ios":"ion-radio_2-ios","md":"ion-radio_2-md"},[[1,"ion-radio",{"color":[1],"name":[1],"disabled":[4],"checked":[1028],"value":[1032]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"name":[1],"value":[1032]}]]],["ion-spinner",[[1,"ion-spinner",{"color":[1],"duration":[2],"name":[1],"paused":[4]}]]],[{"ios":"ion-backdrop-ios","md":"ion-backdrop-md"},[[1,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"touchstart","onTouchStart"],[2,"click","onMouseDown"],[2,"mousedown","onMouseDown"]]]]],["ion-ripple-effect",[[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]],[{"ios":"ion-button_2-ios","md":"ion-button_2-md"},[[1,"ion-button",{"color":[1],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1]}],[1,"ion-icon",{"color":[1],"ariaLabel":[1537,"aria-label"],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[1],"src":[1],"icon":[8],"size":[1],"lazy":[4],"svgContent":[32],"isVisible":[32]}]]],[{"ios":"ion-item_8-ios","md":"ion-item_8-md"},[[1,"ion-item-divider",{"color":[1],"sticky":[4]}],[0,"ion-item-group"],[1,"ion-note",{"color":[1]}],[1,"ion-skeleton-text",{"animated":[4],"width":[1]}],[1,"ion-item",{"color":[1],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"href":[1],"rel":[1],"lines":[1],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"multipleInputs":[32]},[[0,"ionStyle","itemStyle"]]],[2,"ion-label",{"color":[1],"position":[1],"noAnimate":[32]}],[0,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[1,"ion-list-header",{"color":[1]}]]]]'),t)}))(0,{exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:u,jmp:function(e){return s.runOutsideAngular(e)},ael:function(e,t,n,r){e[o](t,n,r)},rel:function(e,t,n,r){e.removeEventListener(t,n,r)}})})}}},Q=function(){function e(){}return e.forRoot=function(t){return{ngModule:e,providers:[{provide:A,useValue:t},{provide:s.d,useFactory:W,multi:!0,deps:[A,i.c,s.y]}]}},e}()},aiEM:function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return l}),n.d(t,"c",function(){return a}),n.d(t,"d",function(){return d}),n.d(t,"e",function(){return p}),n.d(t,"f",function(){return i}),n.d(t,"g",function(){return s}),n.d(t,"h",function(){return h}),n.d(t,"i",function(){return c}),n.d(t,"j",function(){return u}),n.d(t,"k",function(){return r});const r=e=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(e):"function"==typeof requestAnimationFrame?requestAnimationFrame(e):setTimeout(e),s=e=>!!e.shadowRoot&&!!e.attachShadow,i=e=>{const t=e.closest("ion-item");return t?t.querySelector("ion-label"):null},o=(e,t,n,r,i)=>{if(e||s(t)){let e=t.querySelector("input.aux-input");e||((e=t.ownerDocument.createElement("input")).type="hidden",e.classList.add("aux-input"),t.appendChild(e)),e.disabled=i,e.name=n,e.value=r||""}},a=(e,t,n)=>Math.max(e,Math.min(t,n)),l=(e,t)=>{if(!e){const e="ASSERT: "+t;throw console.error(e),new Error(e)}},c=e=>e.timeStamp||Date.now(),u=e=>{if(e){const t=e.changedTouches;if(t&&t.length>0){const e=t[0];return{x:e.clientX,y:e.clientY}}if(void 0!==e.pageX)return{x:e.pageX,y:e.pageY}}return{x:0,y:0}},h=e=>{const t="rtl"===document.dir;switch(e){case"start":return t;case"end":return!t;default:throw new Error(`"${e}" is not a valid value for [side]. Use "start" or "end" instead.`)}},d=(e,t)=>{const n=e._original||e;return{_original:e,emit:p(n.emit.bind(n),t)}},p=(e,t=0)=>{let n;return(...r)=>{clearTimeout(n),n=setTimeout(e,t,...r)}}},bHdf:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("5+tZ"),s=n("SpAZ");function i(e=Number.POSITIVE_INFINITY){return Object(r.a)(s.a,e)}},bOdf:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("5+tZ");function s(e,t){return Object(r.a)(e,t,1)}},c1op:function(e,t,n){"use strict";n.d(t,"a",function(){return G}),n.d(t,"b",function(){return L}),n.d(t,"c",function(){return Oe}),n.d(t,"d",function(){return Pe}),n.d(t,"e",function(){return ke}),n.d(t,"f",function(){return Ae}),n.d(t,"g",function(){return N}),n.d(t,"h",function(){return Ne}),n.d(t,"i",function(){return q}),n.d(t,"j",function(){return $e}),n.d(t,"k",function(){return Ce}),n.d(t,"l",function(){return w}),n.d(t,"m",function(){return R});var r=n("AfW+");let s,i,o,a=0,l=!1,c=!1,u=!1,h=!1,d=!1;const p=window,f=document,m={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r)},g=(()=>!!f.documentElement.attachShadow)(),y=(()=>{let e=!1;try{f.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch(t){}return e})(),b=(()=>{try{return new CSSStyleSheet,!0}catch(e){}return!1})(),v=new WeakMap,_=e=>v.get(e),w=(e,t)=>v.set(t.$lazyInstance$=e,t),S=(e,t)=>t in e,E=e=>console.error(e),C=new Map,x=new Map,T=[],O=[],k=[],$=(e,t)=>n=>{e.push(n),l||(l=!0,t&&4&m.$flags$?P(j):m.raf(j))},A=(e,t)=>{let n=0,r=0;for(;n<e.length&&(r=performance.now())<t;)try{e[n++](r)}catch(s){E(s)}n===e.length?e.length=0:0!==n&&e.splice(0,n)},j=()=>{a++,(e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(t){E(t)}e.length=0})(T);const e=2==(6&m.$flags$)?performance.now()+10*Math.ceil(a*(1/22)):1/0;A(O,e),A(k,e),O.length>0&&(k.push(...O),O.length=0),(l=T.length+O.length+k.length>0)?m.raf(j):a=0},P=e=>Promise.resolve().then(e),N=$(T,!1),R=$(O,!0),I={},D=e=>"object"==(e=typeof e)||"function"===e,L=()=>p.CSS&&p.CSS.supports&&p.CSS.supports("color","var(--c)")?Promise.resolve():n.e(26).then(n.t.bind(null,"Pud/",7)).then(()=>{if(m.$cssShim$=p.__stencil_cssshim,m.$cssShim$)return m.$cssShim$.initShim()}),M="http://www.w3.org/1999/xlink",F=new WeakMap,V=(e,t,n)=>{let r=x.get(e);b&&n?(r=r||new CSSStyleSheet).replace(t):r=t,x.set(e,r)},U=(e,t,n,r)=>{let s=z(t.$tagName$,n),i=x.get(s);if(e=11===e.nodeType?e:f,i||(s=z(t.$tagName$),i=x.get(s)),i)if("string"==typeof i){let n,o=F.get(e=e.head||e);if(o||F.set(e,o=new Set),!o.has(s)){if(e.host&&(n=e.firstElementChild)&&"STYLE"===n.tagName)n.innerHTML=i;else{if(m.$cssShim$){const e=(n=m.$cssShim$.createHostStyle(r,s,i,!!(10&t.$flags$)))["s-sc"];e&&(s=e,o=null)}else(n=f.createElement("style")).setAttribute("data-styles",""),n.innerHTML=i;e.insertBefore(n,e.querySelector("link"))}o&&o.add(s)}}else e.adoptedStyleSheets.includes(i)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,i]);return s},z=(e,t)=>"sc-"+(t?e+"-"+t:e),H=e=>e.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),q=(e,t,...n)=>{let r=null,s=null,i=null,o=!1,a=!1,l=[];const c=t=>{for(let n=0;n<t.length;n++)r=t[n],Array.isArray(r)?c(r):null!=r&&"boolean"!=typeof r&&((o="function"!=typeof e&&!D(r))&&(r=String(r)),o&&a?l[l.length-1].$text$+=r:l.push(o?B(null,r):r),a=o)};if(c(n),t){t.key&&(s=t.key),t.name&&(i=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter(t=>e[t]).join(" "))}}if("function"==typeof e)return e(t,l,W);const u=B(e,null);return u.$attrs$=t,l.length>0&&(u.$children$=l),u.$key$=s,u.$name$=i,u},B=(e,t)=>({$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),G={},W={forEach:(e,t)=>e.map(Q).forEach(t),map:(e,t)=>e.map(Q).map(t).map(K)},Q=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),K=e=>{const t=B(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},Z=(e,t,n,r,s,i)=>{if(n===r)return;let o=S(e,t),a=t.toLowerCase();if("class"===t){const t=e.classList,s=X(n),i=X(r);t.remove(...s.filter(e=>e&&!i.includes(e))),t.add(...i.filter(e=>e&&!s.includes(e)))}else if("style"===t){for(const t in n)r&&null!=r[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in r)n&&r[t]===n[t]||(t.includes("-")?e.style.setProperty(t,r[t]):e.style[t]=r[t])}else if("key"===t);else if("ref"===t)r&&r(e);else if(o||"o"!==t[0]||"n"!==t[1]){const c=D(r);if((o||c&&null!==r)&&!s)try{if(e.tagName.includes("-"))e[t]=r;else{let s=null==r?"":r;null!=n&&e[t]==s||(e[t]=s)}}catch(l){}let u=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,u=!0),null==r||!1===r?u?e.removeAttributeNS(M,t):e.removeAttribute(t):(!o||4&i||s)&&!c&&(r=!0===r?"":r,u?e.setAttributeNS(M,t,r):e.setAttribute(t,r))}else t="-"===t[2]?t.slice(3):S(p,a)?a.slice(2):a[2]+t.slice(3),n&&m.rel(e,t,n,!1),r&&m.ael(e,t,r,!1)},Y=/\s/,X=e=>e?e.split(Y):[],J=(e,t,n,r)=>{const s=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,i=e&&e.$attrs$||I,o=t.$attrs$||I;for(r in i)r in o||Z(s,r,i[r],void 0,n,t.$flags$);for(r in o)Z(s,r,i[r],o[r],n,t.$flags$)},ee=(e,t,n,r)=>{let a,l,u,p=t.$children$[n],m=0;if(c||(h=!0,"slot"===p.$tag$&&(s&&r.classList.add(s+"-s"),p.$flags$|=p.$children$?2:1)),null!==p.$text$)a=p.$elm$=f.createTextNode(p.$text$);else if(1&p.$flags$)a=p.$elm$=f.createTextNode("");else{if(d||(d="svg"===p.$tag$),a=p.$elm$=f.createElementNS(d?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&p.$flags$?"slot-fb":p.$tag$),d&&"foreignObject"===p.$tag$&&(d=!1),J(null,p,d),(e=>null!=e)(s)&&a["s-si"]!==s&&a.classList.add(a["s-si"]=s),p.$children$)for(m=0;m<p.$children$.length;++m)(l=ee(e,p,m,a))&&a.appendChild(l);"svg"===p.$tag$?d=!1:"foreignObject"===a.tagName&&(d=!0)}return a["s-hn"]=o,3&p.$flags$&&(a["s-sr"]=!0,a["s-cr"]=i,a["s-sn"]=p.$name$||"",(u=e&&e.$children$&&e.$children$[n])&&u.$tag$===p.$tag$&&e.$elm$&&te(e.$elm$,!1)),a},te=(e,t)=>{m.$flags$|=1;const n=e.childNodes;for(let r=n.length-1;r>=0;r--){const e=n[r];e["s-hn"]!==o&&e["s-ol"]&&(oe(e).insertBefore(e,ie(e)),e["s-ol"].remove(),e["s-ol"]=void 0,h=!0),t&&te(e,t)}m.$flags$&=-2},ne=(e,t,n,r,s,i)=>{let a,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===o&&(l=l.shadowRoot);s<=i;++s)r[s]&&(a=ee(null,n,s,e))&&(r[s].$elm$=a,l.insertBefore(a,ie(t)))},re=(e,t,n,r,s)=>{for(;t<=n;++t)(r=e[t])&&(s=r.$elm$,he(r),u=!0,s["s-ol"]?s["s-ol"].remove():te(s,!0),s.remove())},se=(e,t)=>e.$tag$===t.$tag$&&("slot"===e.$tag$?e.$name$===t.$name$:e.$key$===t.$key$),ie=e=>e&&e["s-ol"]||e,oe=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,ae=(e,t)=>{const n=t.$elm$=e.$elm$,r=e.$children$,s=t.$children$;let i;d=n&&n.parentNode&&void 0!==n.ownerSVGElement,d="svg"===t.$tag$||"foreignObject"!==t.$tag$&&d,null===t.$text$?("slot"===t.$tag$||J(e,t,d),null!==r&&null!==s?((e,t,n,r)=>{let s,i,o=0,a=0,l=0,c=0,u=t.length-1,h=t[0],d=t[u],p=r.length-1,f=r[0],m=r[p];for(;o<=u&&a<=p;)if(null==h)h=t[++o];else if(null==d)d=t[--u];else if(null==f)f=r[++a];else if(null==m)m=r[--p];else if(se(h,f))ae(h,f),h=t[++o],f=r[++a];else if(se(d,m))ae(d,m),d=t[--u],m=r[--p];else if(se(h,m))"slot"!==h.$tag$&&"slot"!==m.$tag$||te(h.$elm$.parentNode,!1),ae(h,m),e.insertBefore(h.$elm$,d.$elm$.nextSibling),h=t[++o],m=r[--p];else if(se(d,f))"slot"!==h.$tag$&&"slot"!==m.$tag$||te(d.$elm$.parentNode,!1),ae(d,f),e.insertBefore(d.$elm$,h.$elm$),d=t[--u],f=r[++a];else{for(l=-1,c=o;c<=u;++c)if(t[c]&&null!==t[c].$key$&&t[c].$key$===f.$key$){l=c;break}l>=0?((i=t[l]).$tag$!==f.$tag$?s=ee(t&&t[a],n,l,e):(ae(i,f),t[l]=void 0,s=i.$elm$),f=r[++a]):(s=ee(t&&t[a],n,a,e),f=r[++a]),s&&oe(h.$elm$).insertBefore(s,ie(h.$elm$))}o>u?ne(e,null==r[p+1]?null:r[p+1].$elm$,n,r,a,p):a>p&&re(t,o,u)})(n,r,t,s):null!==s?(null!==e.$text$&&(n.textContent=""),ne(n,null,t,s,0,s.length-1)):null!==r&&re(r,0,r.length-1)):(i=n["s-cr"])?i.parentNode.textContent=t.$text$:e.$text$!==t.$text$&&(n.data=t.$text$),d&&"svg"===t.$tag$&&(d=!1)},le=e=>{let t,n,r,s,i,o,a=e.childNodes;for(n=0,r=a.length;n<r;n++)if(1===(t=a[n]).nodeType){if(t["s-sr"])for(i=t["s-sn"],t.hidden=!1,s=0;s<r;s++)if(a[s]["s-hn"]!==t["s-hn"])if(o=a[s].nodeType,""!==i){if(1===o&&i===a[s].getAttribute("slot")){t.hidden=!0;break}}else if(1===o||3===o&&""!==a[s].textContent.trim()){t.hidden=!0;break}le(t)}},ce=[],ue=e=>{let t,n,r,s,i=e.childNodes,o=i.length,a=0,l=0,c=0;for(o=i.length;a<o;a++){if((t=i[a])["s-sr"]&&(n=t["s-cr"]))for(s=t["s-sn"],l=(r=n.parentNode.childNodes).length-1;l>=0;l--)(n=r[l])["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||((3===(c=n.nodeType)||8===c)&&""===s||1===c&&null===n.getAttribute("slot")&&""===s||1===c&&n.getAttribute("slot")===s)&&(ce.some(e=>e.$nodeToRelocate$===n)||(u=!0,n["s-sn"]=s,ce.push({$slotRefNode$:t,$nodeToRelocate$:n})));1===t.nodeType&&ue(t)}},he=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.forEach(he)},de=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"].push(new Promise(t=>e.$onRenderResolve$=t))},pe=(e,t,n,r)=>{if(t.$flags$|=16,4&t.$flags$)return void(t.$flags$|=512);const s=t.$lazyInstance$,i=()=>fe(e,t,n,s,r),o=e["s-rc"];let a;return de(t,t.$ancestorComponent$),r&&(t.$flags$|=256,t.$queuedListeners$&&(t.$queuedListeners$.forEach(([e,t])=>ye(s,e,t)),t.$queuedListeners$=null),a=ye(s,"componentWillLoad")),a=be(a,()=>ye(s,"componentWillRender")),o&&(o.forEach(e=>e()),e["s-rc"]=void 0),be(a,()=>R(i))},fe=(e,t,n,r,a)=>{a&&((e,t,n)=>{const r=U(g&&e.shadowRoot?e.shadowRoot:e.getRootNode(),t,n,e);10&t.$flags$&&(e["s-sc"]=r,e.classList.add(r+"-h"),2&t.$flags$&&e.classList.add(r+"-s"))})(e,n,t.$modeName$);try{((e,t,n,r)=>{o=e.tagName;const a=t.$vnode$||B(null,null),l=(e=>e&&e.$tag$===G)(r)?r:q(null,null,r);if(n.$attrsToReflect$&&(l.$attrs$=l.$attrs$||{},n.$attrsToReflect$.forEach(([t,n])=>l.$attrs$[n]=e[t])),l.$tag$=null,l.$flags$|=4,t.$vnode$=l,l.$elm$=a.$elm$=e.shadowRoot||e,s=e["s-sc"],i=e["s-cr"],c=g&&0!=(1&n.$flags$),h=u=!1,ae(a,l),h){ue(l.$elm$);for(let e=0;e<ce.length;e++){const t=ce[e];if(!t.$nodeToRelocate$["s-ol"]){const e=f.createTextNode("");e["s-nr"]=t.$nodeToRelocate$,t.$nodeToRelocate$.parentNode.insertBefore(t.$nodeToRelocate$["s-ol"]=e,t.$nodeToRelocate$)}}m.$flags$|=1;for(let e=0;e<ce.length;e++){const t=ce[e],n=t.$slotRefNode$.parentNode;let r=t.$slotRefNode$.nextSibling,s=t.$nodeToRelocate$["s-ol"];for(;s=s.previousSibling;){let e=s["s-nr"];if(e&&e["s-sn"]===t.$nodeToRelocate$["s-sn"]&&n===e.parentNode&&(!(e=e.nextSibling)||!e["s-nr"])){r=e;break}}(!r&&n!==t.$nodeToRelocate$.parentNode||t.$nodeToRelocate$.nextSibling!==r)&&t.$nodeToRelocate$!==r&&n.insertBefore(t.$nodeToRelocate$,r)}m.$flags$&=-2}u&&le(l.$elm$),ce.length=0})(e,t,n,r.render&&r.render())}catch(l){E(l)}m.$cssShim$&&m.$cssShim$.updateHost(e),t.$flags$&=-17,t.$flags$|=2;{const r=e["s-p"],s=()=>me(e,t,n);0===r.length?s():(Promise.all(r).then(s),t.$flags$|=4,r.length=0)}},me=(e,t,n)=>{const r=t.$lazyInstance$,s=t.$ancestorComponent$;64&t.$flags$?ye(r,"componentDidUpdate"):(t.$flags$|=64,e.classList.add("hydrated"),ye(r,"componentDidLoad"),t.$onReadyResolve$(e),s||ge()),t.$onInstanceResolve$(e),t.$onRenderResolve$&&(t.$onRenderResolve$(),t.$onRenderResolve$=void 0),512&t.$flags$&&P(()=>pe(e,t,n,!1)),t.$flags$&=-517},ge=()=>{f.documentElement.classList.add("hydrated"),m.$flags$|=2},ye=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(r){E(r)}},be=(e,t)=>e&&e.then?e.then(t):t(),ve=(e,t,n)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const r=Object.entries(t.$members$),s=e.prototype;if(r.forEach(([e,[r]])=>{31&r||2&n&&32&r?Object.defineProperty(s,e,{get(){return((e,t)=>_(e).$instanceValues$.get(t))(this,e)},set(n){((e,t,n,r)=>{const s=_(this),i=s.$hostElement$,o=s.$instanceValues$.get(t),a=s.$flags$,l=s.$lazyInstance$;if(!((n=((e,t)=>null==e||D(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?String(e):e)(n,r.$members$[t][0]))===o||8&a&&void 0!==o)&&(s.$instanceValues$.set(t,n),l)){if(r.$watchers$&&128&a){const e=r.$watchers$[t];e&&e.forEach(e=>{try{l[e](n,o,t)}catch(r){E(r)}})}2==(18&a)&&pe(i,s,r,!1)}})(0,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&r&&Object.defineProperty(s,e,{value(...t){const n=_(this);return n.$onInstancePromise$.then(()=>n.$lazyInstance$[e](...t))}})}),1&n){const n=new Map;s.attributeChangedCallback=function(e,t,r){m.jmp(()=>{const t=n.get(e);this[t]=(null!==r||"boolean"!=typeof this[t])&&r})},e.observedAttributes=r.filter(([e,t])=>15&t[0]).map(([e,r])=>{const s=r[1]||e;return n.set(s,e),512&r[0]&&t.$attrsToReflect$.push([e,s]),s})}}return e},_e=(e,t,n,r,s,i,o)=>{let a,l,c,u;if(1===i.nodeType){for((a=i.getAttribute("c-id"))&&((l=a.split("."))[0]!==o&&"0"!==l[0]||(c={$flags$:0,$hostId$:l[0],$nodeId$:l[1],$depth$:l[2],$index$:l[3],$tag$:i.tagName.toLowerCase(),$elm$:i,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},t.push(c),i.removeAttribute("c-id"),e.$children$||(e.$children$=[]),e.$children$[c.$index$]=c,e=c,r&&"0"===c.$depth$&&(r[c.$index$]=c.$elm$))),u=i.childNodes.length-1;u>=0;u--)_e(e,t,n,r,s,i.childNodes[u],o);if(i.shadowRoot)for(u=i.shadowRoot.childNodes.length-1;u>=0;u--)_e(e,t,n,r,s,i.shadowRoot.childNodes[u],o)}else if(8===i.nodeType)(l=i.nodeValue.split("."))[1]!==o&&"0"!==l[1]||(c={$flags$:0,$hostId$:l[1],$nodeId$:l[2],$depth$:l[3],$index$:l[4],$elm$:i,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===(a=l[0])?(c.$elm$=i.nextSibling,c.$elm$&&3===c.$elm$.nodeType&&(c.$text$=c.$elm$.textContent,t.push(c),i.remove(),e.$children$||(e.$children$=[]),e.$children$[c.$index$]=c,r&&"0"===c.$depth$&&(r[c.$index$]=c.$elm$))):c.$hostId$===o&&("s"===a?(c.$tag$="slot",i["s-sn"]=l[5]?c.$name$=l[5]:"",i["s-sr"]=!0,r&&(c.$elm$=f.createElement(c.$tag$),c.$name$&&c.$elm$.setAttribute("name",c.$name$),i.parentNode.insertBefore(c.$elm$,i),i.remove(),"0"===c.$depth$&&(r[c.$index$]=c.$elm$)),n.push(c),e.$children$||(e.$children$=[]),e.$children$[c.$index$]=c):"r"===a&&(r?i.remove():(s["s-cr"]=i,i["s-cn"]=!0))));else if(e&&"style"===e.$tag$){const t=B(null,i.textContent);t.$elm$=i,t.$index$="0",e.$children$=[t]}},we=(e,t)=>{if(1===e.nodeType){let n=0;for(;n<e.childNodes.length;n++)we(e.childNodes[n],t);if(e.shadowRoot)for(n=0;n<e.shadowRoot.childNodes.length;n++)we(e.shadowRoot.childNodes[n],t)}else if(8===e.nodeType){const n=e.nodeValue.split(".");"o"===n[0]&&(t.set(n[1]+"."+n[2],e),e.nodeValue="",e["s-sd"]=""===n[3])}},Se=[],Ee=e=>Se.push(e),Ce=e=>_(e).$modeName$,xe=e=>{ye(e,"connectedCallback")},Te=e=>{const t=e["s-cr"]=f.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},Oe=(e,t={})=>{const r=[],s=t.exclude||[],i=f.head,o=p.customElements,a=i.querySelector("meta[charset]"),l=f.createElement("style");let c;Object.assign(m,t),m.$resourcesUrl$=new URL(t.resourcesUrl||"./",f.baseURI).href,t.syncQueue&&(m.$flags$|=4),m.$flags$|=2;{const e=f.querySelectorAll("style[s-id]");let t="",n=0;for(;n<e.length;n++)t+=e[n].innerHTML;for(n=0;n<e.length;n++){const r=e[n];V(r.getAttribute("s-id"),t+H(r.innerHTML),!0)}}e.forEach(e=>e[1].forEach(t=>{const i={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};i.$members$=t[2],i.$listeners$=t[3],i.$attrsToReflect$=[],i.$watchers$={},!g&&1&i.$flags$&&(i.$flags$|=8);const a=i.$tagName$;i.$lazyBundleIds$=e[0],s.includes(a)||o.get(a)||(r.push(a),o.define(a,ve(class extends HTMLElement{constructor(e){super(e),(e=>{const t={$flags$:0,$hostElement$:e,$instanceValues$:new Map};t.$onInstancePromise$=new Promise(e=>t.$onInstanceResolve$=e),t.$onReadyPromise$=new Promise(e=>t.$onReadyResolve$=e),e["s-p"]=[],e["s-rc"]=[],v.set(e,t)})(e=this),1&i.$flags$&&(g?e.attachShadow({mode:"open"}):"shadowRoot"in e||(e.shadowRoot=e))}connectedCallback(){c&&(clearTimeout(c),c=null),m.jmp(()=>((e,t)=>{if(0==(1&m.$flags$)){const r=_(e);if(t.$listeners$&&(r.$rmListeners$=((e,t,n)=>{t.$queuedListeners$=t.$queuedListeners$||[];const r=n.map(([n,r,s])=>{const i=((e,t)=>4&t?f:8&t?p:32&t?f.body:16&t?e.parentElement:e)(e,n),o=((e,t)=>n=>{256&e.$flags$?e.$lazyInstance$[t](n):e.$queuedListeners$.push([t,n])})(t,s),a=(e=>y?{passive:0!=(1&e),capture:0!=(2&e)}:0!=(2&e))(n);return m.ael(i,r,o,a),()=>m.rel(i,r,o,a)});return()=>r.forEach(e=>e())})(e,r,t.$listeners$)),!(1&r.$flags$)){let s;if(r.$flags$|=1,s=e.getAttribute("s-id")){if(g&&1&t.$flags$){const n=U(e.shadowRoot,t,e.getAttribute("s-mode"));e.classList.remove(n+"-h"),e.classList.remove(n+"-s")}((e,t,n,r)=>{const s=e.shadowRoot,i=[],o=s?[]:null,a=r.$vnode$=B(t,null);m.$orgLocNodes$||we(f.body,m.$orgLocNodes$=new Map),e["s-id"]=n,e.removeAttribute("s-id"),_e(a,i,[],o,e,e,n),i.forEach(e=>{const n=e.$hostId$+"."+e.$nodeId$,r=m.$orgLocNodes$.get(n),i=e.$elm$;r&&(r["s-sd"]||"0"===e.$hostId$)&&r.parentNode.insertBefore(i,r.nextSibling),s||(i["s-hn"]=t,r&&(i["s-ol"]=r,i["s-ol"]["s-nr"]=i)),m.$orgLocNodes$.delete(n)}),s&&o.forEach(e=>{e&&s.appendChild(e)})})(e,t.$tagName$,s,r)}s||(4&t.$flags$||8&t.$flags$)&&Te(e);{let t=e;for(;t=t.parentNode||t.host;)if(1===t.nodeType&&t.hasAttribute("s-id")||t["s-p"]){de(r,r.$ancestorComponent$=t);break}}t.$members$&&Object.entries(t.$members$).forEach(([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}}),P(()=>(async(e,t,r,s,i)=>{if(0==(32&t.$flags$)){t.$flags$|=32,null==t.$modeName$&&(t.$modeName$="string"!=typeof r.$lazyBundleIds$?(e=>Se.map(t=>t(e)).find(e=>!!e))(e):""),(i=((e,t,r)=>{const s=e.$tagName$.replace(/-/g,"_"),i="string"!=typeof e.$lazyBundleIds$?e.$lazyBundleIds$[t.$modeName$]:e.$lazyBundleIds$,o=C.get(i);return o?o[s]:n("kLfG")(`./${i}.entry.js`).then(e=>(C.set(i,e),e[s]),E)})(r,t)).then&&(i=await i),i.isProxied||(r.$watchers$=i.watchers,ve(i,r,2),i.isProxied=!0),t.$flags$|=8;try{new i(t)}catch(l){E(l)}t.$flags$&=-9,t.$flags$|=128,xe(t.$lazyInstance$);const s=z(r.$tagName$,t.$modeName$);if(!x.has(s)&&i.style){let e=i.style;"string"!=typeof e&&(e=e[t.$modeName$]),8&r.$flags$&&(e=await n.e(110).then(n.bind(null,"94vs")).then(t=>t.scopeCss(e,s,!1))),V(s,e,!!(1&r.$flags$))}}const o=t.$ancestorComponent$,a=()=>pe(e,t,r,!0);o&&o["s-rc"]?o["s-rc"].push(a):a()})(e,r,t))}xe(r.$lazyInstance$)}})(this,i))}disconnectedCallback(){m.jmp(()=>(e=>{if(0==(1&m.$flags$)){const t=_(e),n=t.$lazyInstance$;t.$rmListeners$&&(t.$rmListeners$(),t.$rmListeners$=void 0),m.$cssShim$&&m.$cssShim$.removeHost(e),ye(n,"disconnectedCallback"),ye(n,"componentDidUnload")}})(this))}"s-hmr"(e){}forceUpdate(){((e,t)=>{{const n=_(e);2==(18&n.$flags$)&&pe(e,n,t,!1)}})(this,i)}componentOnReady(){return _(this).$onReadyPromise$}},i,1)))})),l.innerHTML=r+"{visibility:hidden}.hydrated{visibility:inherit}",l.setAttribute("data-styles",""),i.insertBefore(l,a?a.nextSibling:i.firstChild),m.jmp(()=>c=setTimeout(ge,30))},ke=(e,t,n)=>{const r=Ae(e);return{emit:e=>r.dispatchEvent(new CustomEvent(t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e}))}},$e=e=>{const t=new URL(e,m.$resourcesUrl$);return t.origin!==p.location.origin?t.href:t.pathname},Ae=e=>_(e).$hostElement$;let je;const Pe=e=>e&&Ce(e)||je,Ne=()=>{(()=>{const e=document,t=window,n=t.Ionic=t.Ionic||{};Object(r.g)(t);const s=Object.assign(Object.assign(Object.assign(Object.assign({},Object(r.c)(t)),{persistConfig:!1}),n.config),Object(r.a)(t));r.b.reset(s),r.b.getBoolean("persistConfig")&&Object(r.d)(t,s),n.config=r.b,n.mode=je=r.b.get("mode",e.documentElement.getAttribute("mode")||(Object(r.f)(t,"ios")?"ios":"md")),r.b.set("mode",je),e.documentElement.setAttribute("mode",je),e.documentElement.classList.add(je),r.b.getBoolean("_testing")&&r.b.set("animated",!1),Ee(e=>e.mode=e.mode||e.getAttribute("mode")||je)})(),Ee(e=>"ION-ICON"===e.tagName?e.mode||e.getAttribute("mode"):null)}},c2HN:function(e,t,n){"use strict";function r(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,"a",function(){return r})},cUpR:function(e,t,n){"use strict";n.d(t,"p",function(){return be}),n.d(t,"q",function(){return O}),n.d(t,"a",function(){return ve}),n.d(t,"h",function(){return ye}),n.d(t,"c",function(){return k}),n.d(t,"d",function(){return $}),n.d(t,"e",function(){return te}),n.d(t,"f",function(){return ne}),n.d(t,"g",function(){return re}),n.d(t,"b",function(){return le}),n.d(t,"r",function(){return o}),n.d(t,"j",function(){return F}),n.d(t,"i",function(){return J}),n.d(t,"m",function(){return se}),n.d(t,"n",function(){return ae}),n.d(t,"l",function(){return P}),n.d(t,"o",function(){return j}),n.d(t,"k",function(){return ce});var r=n("SVse"),s=n("8Y7J");let i=null;function o(){return i}class a{constructor(){this.resourceLoaderType=null}get attrToPropMap(){return this._attrToPropMap}set attrToPropMap(e){this._attrToPropMap=e}}class l extends a{constructor(){super(),this._animationPrefix=null,this._transitionEnd=null;try{const t=this.createElement("div",document);if(null!=this.getStyle(t,"animationName"))this._animationPrefix="";else{const e=["Webkit","Moz","O","ms"];for(let n=0;n<e.length;n++)if(null!=this.getStyle(t,e[n]+"AnimationName")){this._animationPrefix="-"+e[n].toLowerCase()+"-";break}}const n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(n).forEach(e=>{null!=this.getStyle(t,e)&&(this._transitionEnd=n[e])})}catch(e){this._animationPrefix=null,this._transitionEnd=null}}getDistributedNodes(e){return e.getDistributedNodes()}resolveAndSetHref(e,t,n){e.href=null==n?t:t+"/../"+n}supportsDOMEvents(){return!0}supportsNativeShadowDOM(){return"function"==typeof document.body.createShadowRoot}getAnimationPrefix(){return this._animationPrefix?this._animationPrefix:""}getTransitionEnd(){return this._transitionEnd?this._transitionEnd:""}supportsAnimation(){return null!=this._animationPrefix&&null!=this._transitionEnd}}const c={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},u=3,h={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},d={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},p=(()=>{if(s.rb.Node)return s.rb.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))}})();class f extends l{parse(e){throw new Error("parse not implemented")}static makeCurrent(){var e;e=new f,i||(i=e)}hasProperty(e,t){return t in e}setProperty(e,t,n){e[t]=n}getProperty(e,t){return e[t]}invoke(e,t,n){e[t](...n)}logError(e){window.console&&(console.error?console.error(e):console.log(e))}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}get attrToPropMap(){return c}contains(e,t){return p.call(e,t)}querySelector(e,t){return e.querySelector(t)}querySelectorAll(e,t){return e.querySelectorAll(t)}on(e,t,n){e.addEventListener(t,n,!1)}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}createMouseEvent(e){const t=this.getDefaultDocument().createEvent("MouseEvent");return t.initEvent(e,!0,!0),t}createEvent(e){const t=this.getDefaultDocument().createEvent("Event");return t.initEvent(e,!0,!0),t}preventDefault(e){e.preventDefault(),e.returnValue=!1}isPrevented(e){return e.defaultPrevented||null!=e.returnValue&&!e.returnValue}getInnerHTML(e){return e.innerHTML}getTemplateContent(e){return"content"in e&&this.isTemplateElement(e)?e.content:null}getOuterHTML(e){return e.outerHTML}nodeName(e){return e.nodeName}nodeValue(e){return e.nodeValue}type(e){return e.type}content(e){return this.hasProperty(e,"content")?e.content:e}firstChild(e){return e.firstChild}nextSibling(e){return e.nextSibling}parentElement(e){return e.parentNode}childNodes(e){return e.childNodes}childNodesAsList(e){const t=e.childNodes,n=new Array(t.length);for(let r=0;r<t.length;r++)n[r]=t[r];return n}clearNodes(e){for(;e.firstChild;)e.removeChild(e.firstChild)}appendChild(e,t){e.appendChild(t)}removeChild(e,t){e.removeChild(t)}replaceChild(e,t,n){e.replaceChild(t,n)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}insertBefore(e,t,n){e.insertBefore(n,t)}insertAllBefore(e,t,n){n.forEach(n=>e.insertBefore(n,t))}insertAfter(e,t,n){e.insertBefore(n,t.nextSibling)}setInnerHTML(e,t){e.innerHTML=t}getText(e){return e.textContent}setText(e,t){e.textContent=t}getValue(e){return e.value}setValue(e,t){e.value=t}getChecked(e){return e.checked}setChecked(e,t){e.checked=t}createComment(e){return this.getDefaultDocument().createComment(e)}createTemplate(e){const t=this.getDefaultDocument().createElement("template");return t.innerHTML=e,t}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createElementNS(e,t,n){return(n=n||this.getDefaultDocument()).createElementNS(e,t)}createTextNode(e,t){return(t=t||this.getDefaultDocument()).createTextNode(e)}createScriptTag(e,t,n){const r=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return r.setAttribute(e,t),r}createStyleElement(e,t){const n=(t=t||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(e,t)),n}createShadowRoot(e){return e.createShadowRoot()}getShadowRoot(e){return e.shadowRoot}getHost(e){return e.host}clone(e){return e.cloneNode(!0)}getElementsByClassName(e,t){return e.getElementsByClassName(t)}getElementsByTagName(e,t){return e.getElementsByTagName(t)}classList(e){return Array.prototype.slice.call(e.classList,0)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}hasClass(e,t){return e.classList.contains(t)}setStyle(e,t,n){e.style[t]=n}removeStyle(e,t){e.style[t]=""}getStyle(e,t){return e.style[t]}hasStyle(e,t,n){const r=this.getStyle(e,t)||"";return n?r==n:r.length>0}tagName(e){return e.tagName}attributeMap(e){const t=new Map,n=e.attributes;for(let r=0;r<n.length;r++){const e=n.item(r);t.set(e.name,e.value)}return t}hasAttribute(e,t){return e.hasAttribute(t)}hasAttributeNS(e,t,n){return e.hasAttributeNS(t,n)}getAttribute(e,t){return e.getAttribute(t)}getAttributeNS(e,t,n){return e.getAttributeNS(t,n)}setAttribute(e,t,n){e.setAttribute(t,n)}setAttributeNS(e,t,n,r){e.setAttributeNS(t,n,r)}removeAttribute(e,t){e.removeAttribute(t)}removeAttributeNS(e,t,n){e.removeAttributeNS(t,n)}templateAwareRoot(e){return this.isTemplateElement(e)?this.content(e):e}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}getBoundingClientRect(e){try{return e.getBoundingClientRect()}catch(t){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}}getTitle(e){return e.title}setTitle(e,t){e.title=t||""}elementMatches(e,t){return!!this.isElementNode(e)&&(e.matches&&e.matches(t)||e.msMatchesSelector&&e.msMatchesSelector(t)||e.webkitMatchesSelector&&e.webkitMatchesSelector(t))}isTemplateElement(e){return this.isElementNode(e)&&"TEMPLATE"===e.nodeName}isTextNode(e){return e.nodeType===Node.TEXT_NODE}isCommentNode(e){return e.nodeType===Node.COMMENT_NODE}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}hasShadowRoot(e){return null!=e.shadowRoot&&e instanceof HTMLElement}isShadowRoot(e){return e instanceof DocumentFragment}importIntoDoc(e){return document.importNode(this.templateAwareRoot(e),!0)}adoptNode(e){return document.adoptNode(e)}getHref(e){return e.getAttribute("href")}getEventKey(e){let t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),e.location===u&&d.hasOwnProperty(t)&&(t=d[t]))}return h[t]||t}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=g||(g=document.querySelector("base"))?g.getAttribute("href"):null;return null==t?null:(n=t,m||(m=document.createElement("a")),m.setAttribute("href",n),"/"===m.pathname.charAt(0)?m.pathname:"/"+m.pathname);var n}resetBaseElement(){g=null}getUserAgent(){return window.navigator.userAgent}setData(e,t,n){this.setAttribute(e,"data-"+t,n)}getData(e,t){return this.getAttribute(e,"data-"+t)}getComputedStyle(e){return getComputedStyle(e)}supportsWebAnimation(){return"function"==typeof Element.prototype.animate}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return Object(r.y)(document.cookie,e)}setCookie(e,t){document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)}}let m,g=null;function y(){return!!window.history.pushState}const b=(()=>{class e extends r.o{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=o().getLocation(),this._history=o().getHistory()}getBaseHrefFromDOM(){return o().getBaseHref(this._doc)}onPopState(e){o().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}onHashChange(e){o().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,t,n){y()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){y()?this._history.replaceState(e,t,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return e.ctorParameters=(()=>[{type:void 0,decorators:[{type:s.o,args:[r.c]}]}]),e})(),v=new s.p("TRANSITION_ID"),_=[{provide:s.d,useFactory:function(e,t,n){return()=>{n.get(s.e).donePromise.then(()=>{const n=o();Array.prototype.slice.apply(n.querySelectorAll(t,"style[ng-transition]")).filter(t=>n.getAttribute(t,"ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[v,r.c,s.q],multi:!0}];class w{static init(){Object(s.Y)(new w)}addToWindow(e){s.rb.getAngularTestability=((t,n=!0)=>{const r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r}),s.rb.getAllAngularTestabilities=(()=>e.getAllTestabilities()),s.rb.getAllAngularRootElements=(()=>e.getAllRootElements()),s.rb.frameworkStabilizers||(s.rb.frameworkStabilizers=[]),s.rb.frameworkStabilizers.push(e=>{const t=s.rb.getAllAngularTestabilities();let n=t.length,r=!1;const i=function(t){r=r||t,0==--n&&e(r)};t.forEach(function(e){e.whenStable(i)})})}findTestabilityInTree(e,t,n){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:n?o().isShadowRoot(t)?this.findTestabilityInTree(e,o().getHost(t),!0):this.findTestabilityInTree(e,o().parentElement(t),!0):null}}function S(e,t){"undefined"!=typeof COMPILED&&COMPILED||((s.rb.ng=s.rb.ng||{})[e]=t)}const E=(()=>({ApplicationRef:s.g,NgZone:s.y}))(),C="probe",x="coreTokens";function T(e){return Object(s.U)(e)}function O(e){return S(C,T),S(x,Object.assign({},E,(e||[]).reduce((e,t)=>(e[t.name]=t.token,e),{}))),()=>T}const k=new s.p("EventManagerPlugins"),$=(()=>(class{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let r=0;r<n.length;r++){const t=n[r];if(t.supports(e))return this._eventNameToPlugin.set(e,t),t}throw new Error(`No event manager plugin found for event ${e}`)}}))();class A{constructor(e){this._doc=e}addGlobalEventListener(e,t,n){const r=o().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,n)}}const j=(()=>(class{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}))(),P=(()=>(class extends j{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>o().remove(e))}}))(),N={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},R=/%COMP%/g,I="_nghost-%COMP%",D="_ngcontent-%COMP%";function L(e,t,n){for(let r=0;r<t.length;r++){let s=t[r];Array.isArray(s)?L(e,s,n):(s=s.replace(R,e),n.push(s))}return n}function M(e){return t=>{!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}const F=(()=>(class{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new V(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case s.O.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new H(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case s.O.Native:case s.O.ShadowDom:return new q(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=L(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}))();class V{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(N[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=`${r}:${t}`;const s=N[r];s?e.setAttributeNS(s,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const r=N[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&s.E.DashCase?e.style.setProperty(t,n,r&s.E.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&s.E.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){z(t,"property"),e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return z(t,"listener"),"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,M(n)):this.eventManager.addEventListener(e,t,M(n))}}const U=(()=>"@".charCodeAt(0))();function z(e,t){if(e.charCodeAt(0)===U)throw new Error(`Found the synthetic ${t} ${e}. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.`)}class H extends V{constructor(e,t,n,r){super(e),this.component=n;const s=L(r+"-"+n.id,n.styles,[]);t.addStyles(s),this.contentAttr=D.replace(R,r+"-"+n.id),this.hostAttr=I.replace(R,r+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class q extends V{constructor(e,t,n,r){super(e),this.sharedStylesHost=t,this.hostEl=n,this.component=r,this.shadowRoot=r.encapsulation===s.O.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const i=L(r.id,r.styles,[]);for(let s=0;s<i.length;s++){const e=document.createElement("style");e.textContent=i[s],this.shadowRoot.appendChild(e)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}const B=(()=>"undefined"!=typeof Zone&&Zone.__symbol__||function(e){return"__zone_symbol__"+e})(),G=B("addEventListener"),W=B("removeEventListener"),Q={},K="__zone_symbol__propagationStopped",Z=(()=>{const e="undefined"!=typeof Zone&&Zone[B("BLACK_LISTED_EVENTS")];if(e){const t={};return e.forEach(e=>{t[e]=e}),t}})(),Y=function(e){return!!Z&&Z.hasOwnProperty(e)},X=function(e){const t=Q[e.type];if(!t)return;const n=this[t];if(!n)return;const r=[e];if(1===n.length){const e=n[0];return e.zone!==Zone.current?e.zone.run(e.handler,this,r):e.handler.apply(this,r)}{const t=n.slice();for(let n=0;n<t.length&&!0!==e[K];n++){const e=t[n];e.zone!==Zone.current?e.zone.run(e.handler,this,r):e.handler.apply(this,r)}}},J=(()=>(class extends A{constructor(e,t,n){super(e),this.ngZone=t,n&&Object(r.v)(n)||this.patchEvent()}patchEvent(){if("undefined"==typeof Event||!Event||!Event.prototype)return;if(Event.prototype.__zone_symbol__stopImmediatePropagation)return;const e=Event.prototype.__zone_symbol__stopImmediatePropagation=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[K]=!0),e&&e.apply(this,arguments)}}supports(e){return!0}addEventListener(e,t,n){let r=n;if(!e[G]||s.y.isInAngularZone()&&!Y(t))e.addEventListener(t,r,!1);else{let n=Q[t];n||(n=Q[t]=B("ANGULAR"+t+"FALSE"));let s=e[n];const i=s&&s.length>0;s||(s=e[n]=[]);const o=Y(t)?Zone.root:Zone.current;if(0===s.length)s.push({zone:o,handler:r});else{let e=!1;for(let t=0;t<s.length;t++)if(s[t].handler===r){e=!0;break}e||s.push({zone:o,handler:r})}i||e[G](t,X,!1)}return()=>this.removeEventListener(e,t,r)}removeEventListener(e,t,n){let r=e[W];if(!r)return e.removeEventListener.apply(e,[t,n,!1]);let s=Q[t],i=s&&e[s];if(!i)return e.removeEventListener.apply(e,[t,n,!1]);let o=!1;for(let a=0;a<i.length;a++)if(i[a].handler===n){o=!0,i.splice(a,1);break}o?0===i.length&&r.apply(e,[t,X,!1]):e.removeEventListener.apply(e,[t,n,!1])}}))(),ee={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},te=new s.p("HammerGestureConfig"),ne=new s.p("HammerLoader"),re=(()=>(class{constructor(){this.events=[],this.overrides={}}buildHammer(e){const t=new Hammer(e,this.options);t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0});for(const n in this.overrides)t.get(n).set(this.overrides[n]);return t}}))(),se=(()=>(class extends A{constructor(e,t,n,r){super(e),this._config=t,this.console=n,this.loader=r}supports(e){return!(!ee.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader&&(this.console.warn(`The "${e}" event cannot be bound because Hammer.JS is not `+"loaded and no custom loader has been specified."),1))}addEventListener(e,t,n){const r=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){let r=!1,s=()=>{r=!0};return this.loader().then(()=>{if(!window.Hammer)return this.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(s=(()=>{}));r||(s=this.addEventListener(e,t,n))}).catch(()=>{this.console.warn(`The "${t}" event cannot be bound because the custom `+"Hammer.JS loader failed."),s=(()=>{})}),()=>{s()}}return r.runOutsideAngular(()=>{const s=this._config.buildHammer(e),i=function(e){r.runGuarded(function(){n(e)})};return s.on(t,i),()=>{s.off(t,i),"function"==typeof s.destroy&&s.destroy()}})}isCustomEvent(e){return this._config.events.indexOf(e)>-1}}))(),ie=["alt","control","meta","shift"],oe={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},ae=(()=>{class e extends A{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,r){const s=e.parseEventName(n),i=e.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>o().onAndCancel(t,s.domEventName,i))}static parseEventName(t){const n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const s=e._normalizeKey(n.pop());let i="";if(ie.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),i+=e+".")}),i+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=r,o.fullKey=i,o}static getEventFullKey(e){let t="",n=o().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),ie.forEach(r=>{r!=n&&(0,oe[r])(e)&&(t+=r+".")}),t+=n}static eventCallback(t,n,r){return s=>{e.getEventFullKey(s)===t&&r.runGuarded(()=>n(s))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e})();class le{}const ce=(()=>(class extends le{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case s.G.NONE:return t;case s.G.HTML:return t instanceof he?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),Object(s.cb)(this._doc,String(t)));case s.G.STYLE:return t instanceof de?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),Object(s.db)(t));case s.G.SCRIPT:if(t instanceof pe)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"Script"),new Error("unsafe value used in a script context");case s.G.URL:return t instanceof me||t instanceof fe?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"URL"),Object(s.eb)(String(t)));case s.G.RESOURCE_URL:if(t instanceof me)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see http://g.co/ng/security#xss)`)}}checkNotSafeValue(e,t){if(e instanceof ue)throw new Error(`Required a safe ${t}, got a ${e.getTypeName()} `+"(see http://g.co/ng/security#xss)")}bypassSecurityTrustHtml(e){return new he(e)}bypassSecurityTrustStyle(e){return new de(e)}bypassSecurityTrustScript(e){return new pe(e)}bypassSecurityTrustUrl(e){return new fe(e)}bypassSecurityTrustResourceUrl(e){return new me(e)}}))();class ue{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}`+" (see http://g.co/ng/security#xss)"}}class he extends ue{getTypeName(){return"HTML"}}class de extends ue{getTypeName(){return"Style"}}class pe extends ue{getTypeName(){return"Script"}}class fe extends ue{getTypeName(){return"URL"}}class me extends ue{getTypeName(){return"ResourceURL"}}const ge=[{provide:s.A,useValue:r.w},{provide:s.B,useValue:function(){f.makeCurrent(),w.init()},multi:!0},{provide:r.o,useClass:b,deps:[r.c]},{provide:r.c,useFactory:function(){return document},deps:[]}],ye=Object(s.Q)(s.X,"browser",ge);function be(){return new s.l}const ve=(()=>{class e{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:e,providers:[{provide:s.c,useValue:t.appId},{provide:v,useExisting:s.c},_]}}}return e})();"undefined"!=typeof window&&window},eIep:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("l7GE"),s=n("51Dv"),i=n("ZUHj"),o=n("lJxs"),a=n("Cfvw");function l(e,t){return"function"==typeof t?n=>n.pipe(l((n,r)=>Object(a.a)(e(n,r)).pipe(Object(o.a)((e,s)=>t(n,e,r,s))))):t=>t.lift(new c(e))}class c{constructor(e){this.project=e}call(e,t){return t.subscribe(new u(e,this.project))}}class u extends r.a{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this._innerSub(t,e,n)}_innerSub(e,t,n){const r=this.innerSubscription;r&&r.unsubscribe();const o=new s.a(this,void 0,void 0);this.destination.add(o),this.innerSubscription=Object(i.a)(this,e,t,n,o)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(e,t,n,r,s){this.destination.next(t)}}},eYLY:function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r=(()=>{class e{}return e.AUTH="userData",e.TOKEN={token:"MbFR335sMJL9K0Bt335sN7kcnU235sMRKT"},e.JWT="jwt",e.EXPIRE_IN="expire_in",e})()},gRHU:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("2fFW"),s=n("NJ4a");const i={closed:!0,next(e){},error(e){if(r.a.useDeprecatedSynchronousErrorHandling)throw e;Object(s.a)(e)},complete(){}}},iInd:function(e,t,n){"use strict";var r=n("SVse"),s=n("8Y7J"),i=n("LRne"),o=n("Cfvw"),a=n("2Vo4"),l=n("HDdC");function c(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}c.prototype=Object.create(Error.prototype);const u=c;var h=n("z+Ro"),d=n("DH7j"),p=n("l7GE"),f=n("ZUHj"),m=n("yCtX");const g={};class y{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new b(e,this.resultSelector))}}class b extends p.a{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(g),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let n=0;n<t;n++){const t=e[n];this.add(Object(f.a)(this,t,t,n))}}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,t,n,r,s){const i=this.values,o=this.toRespond?i[n]===g?--this.toRespond:this.toRespond:0;i[n]=t,0===o&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}_tryResultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}var v=n("EY2u");function _(e){return new l.a(t=>{let n;try{n=e()}catch(r){return void t.error(r)}return(n?Object(o.a)(n):Object(v.b)()).subscribe(t)})}var w=n("XNiG"),S=n("lJxs"),E=n("0EUg"),C=n("pLZG"),x=n("BFxc"),T=n("7o/Q");function O(e=function(){return new u}){return t=>t.lift(new k(e))}class k{constructor(e){this.errorFactory=e}call(e,t){return t.subscribe(new $(e,this.errorFactory))}}class $ extends T.a{constructor(e,t){super(e),this.errorFactory=t,this.hasValue=!1}_next(e){this.hasValue=!0,this.destination.next(e)}_complete(){if(this.hasValue)return this.destination.complete();{let t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}}var A=n("xbPD"),j=n("SpAZ");function P(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Object(C.a)((t,n)=>e(t,n,r)):j.a,Object(x.a)(1),n?Object(A.a)(t):O(()=>new u))}var N=n("51Dv");function R(e){return function(t){const n=new I(e),r=t.lift(n);return n.caught=r}}class I{constructor(e){this.selector=e}call(e,t){return t.subscribe(new D(e,this.selector,this.caught))}}class D extends p.a{constructor(e,t,n){super(e),this.selector=t,this.caught=n}error(e){if(!this.isStopped){let n;try{n=this.selector(e,this.caught)}catch(t){return void super.error(t)}this._unsubscribeAndRecycle();const r=new N.a(this,void 0,void 0);this.add(r),Object(f.a)(this,n,void 0,void 0,r)}}}var L=n("IzEk");function M(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Object(C.a)((t,n)=>e(t,n,r)):j.a,Object(L.a)(1),n?Object(A.a)(t):O(()=>new u))}var F=n("5+tZ");class V{constructor(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}call(e,t){return t.subscribe(new U(e,this.predicate,this.thisArg,this.source))}}class U extends T.a{constructor(e,t,n,r){super(e),this.predicate=t,this.thisArg=n,this.source=r,this.index=0,this.thisArg=n||this}notifyComplete(e){this.destination.next(e),this.destination.complete()}_next(e){let t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}var z=n("eIep"),H=n("GyhO"),q=n("Kqap"),B=n("bOdf"),G=n("128B"),W=n("vkgz"),Q=n("quSY");class K{constructor(e){this.callback=e}call(e,t){return t.subscribe(new Z(e,this.callback))}}class Z extends T.a{constructor(e,t){super(e),this.add(new Q.a(t))}}var Y=n("bHdf"),X=n("cUpR");n.d(t,"F",function(){return ge}),n.d(t,"v",function(){return Rn}),n.d(t,"C",function(){return qn}),n.d(t,"x",function(){return Mn}),n.d(t,"D",function(){return Bn}),n.d(t,"E",function(){return Gn}),n.d(t,"z",function(){return Vn}),n.d(t,"y",function(){return Fn}),n.d(t,"B",function(){return Hn}),n.d(t,"w",function(){return Dn}),n.d(t,"A",function(){return zn}),n.d(t,"G",function(){return Pn}),n.d(t,"n",function(){return _n}),n.d(t,"p",function(){return wn}),n.d(t,"o",function(){return En}),n.d(t,"r",function(){return Tn}),n.d(t,"d",function(){return ee}),n.d(t,"l",function(){return un}),n.d(t,"m",function(){return vn}),n.d(t,"k",function(){return dn}),n.d(t,"i",function(){return Nn}),n.d(t,"j",function(){return Wn}),n.d(t,"q",function(){return Ln}),n.d(t,"b",function(){return xn}),n.d(t,"e",function(){return An}),n.d(t,"g",function(){return $n}),n.d(t,"h",function(){return kn}),n.d(t,"s",function(){return jn}),n.d(t,"a",function(){return at}),n.d(t,"f",function(){return ye}),n.d(t,"t",function(){return fn}),n.d(t,"c",function(){return Ve}),n.d(t,"u",function(){return Fe});class J{constructor(e,t){this.id=e,this.url=t}}class ee extends J{constructor(e,t,n="imperative",r=null){super(e,t),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class te extends J{constructor(e,t,n){super(e,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ne extends J{constructor(e,t,n){super(e,t),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class re extends J{constructor(e,t,n){super(e,t),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class se extends J{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ie extends J{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class oe extends J{constructor(e,t,n,r,s){super(e,t),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class ae extends J{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class le extends J{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ce{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ue{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class he{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class de{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class pe{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class fe{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class me{constructor(e,t,n){this.routerEvent=e,this.position=t,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const ge=(()=>(class{}))(),ye="primary";class be{constructor(e){this.params=e||{}}has(e){return this.params.hasOwnProperty(e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function ve(e){return new be(e)}const _e="ngNavigationCancelingError";function we(e){const t=Error("NavigationCancelingError: "+e);return t[_e]=!0,t}function Se(e,t,n){const r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length<e.length))return null;const s={};for(let i=0;i<r.length;i++){const t=r[i],n=e[i];if(t.startsWith(":"))s[t.substring(1)]=n;else if(t!==n.path)return null}return{consumed:e.slice(0,r.length),posParams:s}}class Ee{constructor(e,t){this.routes=e,this.module=t}}function Ce(e,t=""){for(let n=0;n<e.length;n++){const r=e[n];xe(r,Te(t,r))}}function xe(e,t){if(!e)throw new Error(`\n Invalid configuration of route '${t}': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n `);if(Array.isArray(e))throw new Error(`Invalid configuration of route '${t}': Array cannot be specified`);if(!e.component&&!e.children&&!e.loadChildren&&e.outlet&&e.outlet!==ye)throw new Error(`Invalid configuration of route '${t}': a componentless route without children or loadChildren cannot have a named outlet set`);if(e.redirectTo&&e.children)throw new Error(`Invalid configuration of route '${t}': redirectTo and children cannot be used together`);if(e.redirectTo&&e.loadChildren)throw new Error(`Invalid configuration of route '${t}': redirectTo and loadChildren cannot be used together`);if(e.children&&e.loadChildren)throw new Error(`Invalid configuration of route '${t}': children and loadChildren cannot be used together`);if(e.redirectTo&&e.component)throw new Error(`Invalid configuration of route '${t}': redirectTo and component cannot be used together`);if(e.path&&e.matcher)throw new Error(`Invalid configuration of route '${t}': path and matcher cannot be used together`);if(void 0===e.redirectTo&&!e.component&&!e.children&&!e.loadChildren)throw new Error(`Invalid configuration of route '${t}'. One of the following must be provided: component, redirectTo, children or loadChildren`);if(void 0===e.path&&void 0===e.matcher)throw new Error(`Invalid configuration of route '${t}': routes must have either a path or a matcher specified`);if("string"==typeof e.path&&"/"===e.path.charAt(0))throw new Error(`Invalid configuration of route '${t}': path cannot start with a slash`);if(""===e.path&&void 0!==e.redirectTo&&void 0===e.pathMatch)throw new Error(`Invalid configuration of route '{path: "${t}", redirectTo: "${e.redirectTo}"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`);if(void 0!==e.pathMatch&&"full"!==e.pathMatch&&"prefix"!==e.pathMatch)throw new Error(`Invalid configuration of route '${t}': pathMatch can only be set to 'prefix' or 'full'`);e.children&&Ce(e.children,t)}function Te(e,t){return t?e||t.path?e&&!t.path?`${e}/`:!e&&t.path?t.path:`${e}/${t.path}`:"":e}function Oe(e){const t=e.children&&e.children.map(Oe),n=t?Object.assign({},e,{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&n.outlet!==ye&&(n.component=ge),n}function ke(e,t){const n=Object.keys(e),r=Object.keys(t);if(!n||!r||n.length!=r.length)return!1;let s;for(let i=0;i<n.length;i++)if(e[s=n[i]]!==t[s])return!1;return!0}function $e(e){return Array.prototype.concat.apply([],e)}function Ae(e){return e.length>0?e[e.length-1]:null}function je(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Pe(e){return Object(s.ub)(e)?e:Object(s.vb)(e)?Object(o.a)(Promise.resolve(e)):Object(i.a)(e)}function Ne(e,t,n){return n?function(e,t){return ke(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!Le(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children){if(!t.children[r])return!1;if(!e(t.children[r],n.children[r]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>t[n]===e[n])}(e.queryParams,t.queryParams)&&function e(t,n){return function t(n,r,s){if(n.segments.length>s.length){return!!Le(n.segments.slice(0,s.length),s)&&!r.hasChildren()}if(n.segments.length===s.length){if(!Le(n.segments,s))return!1;for(const t in r.children){if(!n.children[t])return!1;if(!e(n.children[t],r.children[t]))return!1}return!0}{const e=s.slice(0,n.segments.length),i=s.slice(n.segments.length);return!!Le(n.segments,e)&&!!n.children[ye]&&t(n.children[ye],r,i)}}(t,n,n.segments)}(e.root,t.root)}class Re{constructor(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ve(this.queryParams)),this._queryParamMap}toString(){return Ue.serialize(this)}}class Ie{constructor(e,t){this.segments=e,this.children=t,this.parent=null,je(t,(e,t)=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ze(this)}}class De{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=ve(this.parameters)),this._parameterMap}toString(){return Qe(this)}}function Le(e,t){return e.length===t.length&&e.every((e,n)=>e.path===t[n].path)}function Me(e,t){let n=[];return je(e.children,(e,r)=>{r===ye&&(n=n.concat(t(e,r)))}),je(e.children,(e,r)=>{r!==ye&&(n=n.concat(t(e,r)))}),n}class Fe{}class Ve{parse(e){const t=new Je(e);return new Re(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){var t;return`${`/${function e(t,n){if(!t.hasChildren())return ze(t);if(n){const n=t.children[ye]?e(t.children[ye],!1):"",r=[];return je(t.children,(t,n)=>{n!==ye&&r.push(`${n}:${e(t,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=Me(t,(n,r)=>r===ye?[e(t.children[ye],!1)]:[`${r}:${e(n,!1)}`]);return`${ze(t)}/(${n.join("//")})`}}(e.root,!0)}`}${function(e){const t=Object.keys(e).map(t=>{const n=e[t];return Array.isArray(n)?n.map(e=>`${qe(t)}=${qe(e)}`).join("&"):`${qe(t)}=${qe(n)}`});return t.length?`?${t.join("&")}`:""}(e.queryParams)}${"string"==typeof e.fragment?`#${t=e.fragment,encodeURI(t)}`:""}`}}const Ue=new Ve;function ze(e){return e.segments.map(e=>Qe(e)).join("/")}function He(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function qe(e){return He(e).replace(/%3B/gi,";")}function Be(e){return He(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ge(e){return decodeURIComponent(e)}function We(e){return Ge(e.replace(/\+/g,"%20"))}function Qe(e){return`${Be(e.path)}${t=e.parameters,Object.keys(t).map(e=>`;${Be(e)}=${Be(t[e])}`).join("")}`;var t}const Ke=/^[^\/()?;=#]+/;function Ze(e){const t=e.match(Ke);return t?t[0]:""}const Ye=/^[^=?&#]+/,Xe=/^[^?&#]+/;class Je{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ie([],{}):new Ie([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[ye]=new Ie(e,t)),n}parseSegment(){const e=Ze(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new De(Ge(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=Ze(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=Ze(this.remaining);e&&this.capture(n=e)}e[Ge(t)]=Ge(n)}parseQueryParam(e){const t=function(e){const t=e.match(Ye);return t?t[0]:""}(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=function(e){const t=e.match(Xe);return t?t[0]:""}(this.remaining);e&&this.capture(n=e)}const r=We(t),s=We(n);if(e.hasOwnProperty(r)){let t=e[r];Array.isArray(t)||(e[r]=t=[t]),t.push(s)}else e[r]=s}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Ze(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let s=void 0;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=ye);const i=this.parseChildren();t[s]=1===Object.keys(i).length?i[ye]:new Ie([],i),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class et{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=tt(e,this._root);return t?t.children.map(e=>e.value):[]}firstChild(e){const t=tt(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=nt(e,this._root);return t.length<2?[]:t[t.length-2].children.map(e=>e.value).filter(t=>t!==e)}pathFromRoot(e){return nt(e,this._root).map(e=>e.value)}}function tt(e,t){if(e===t.value)return t;for(const n of t.children){const t=tt(e,n);if(t)return t}return null}function nt(e,t){if(e===t.value)return[t];for(const n of t.children){const r=nt(e,n);if(r.length)return r.unshift(t),r}return[]}class rt{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function st(e){const t={};return e&&e.children.forEach(e=>t[e.value.outlet]=e),t}class it extends et{constructor(e,t){super(e),this.snapshot=t,ht(this,e)}toString(){return this.snapshot.toString()}}function ot(e,t){const n=function(e,t){const n=new ct([],{},{},"",{},ye,t,null,e.root,-1,{});return new ut("",new rt(n,[]))}(e,t),r=new a.a([new De("",{})]),s=new a.a({}),i=new a.a({}),o=new a.a({}),l=new a.a(""),c=new at(r,s,o,l,i,ye,t,n.root);return c.snapshot=n.root,new it(new rt(c,[]),n)}class at{constructor(e,t,n,r,s,i,o,a){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Object(S.a)(e=>ve(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(S.a)(e=>ve(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function lt(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const e=n[r],t=n[r-1];if(e.routeConfig&&""===e.routeConfig.path)r--;else{if(t.component)break;r--}}return function(e){return e.reduce((e,t)=>({params:Object.assign({},e.params,t.params),data:Object.assign({},e.data,t.data),resolve:Object.assign({},e.resolve,t._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class ct{constructor(e,t,n,r,s,i,o,a,l,c,u){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=ve(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ve(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ut extends et{constructor(e,t){super(t),this.url=e,ht(this,t)}toString(){return dt(this._root)}}function ht(e,t){t.value._routerState=e,t.children.forEach(t=>ht(e,t))}function dt(e){const t=e.children.length>0?` { ${e.children.map(dt).join(", ")} } `:"";return`${e.value}${t}`}function pt(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,ke(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),ke(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!ke(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),ke(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function ft(e,t){var n,r;return ke(e.params,t.params)&&Le(n=e.url,r=t.url)&&n.every((e,t)=>ke(e.parameters,r[t].parameters))&&!(!e.parent!=!t.parent)&&(!e.parent||ft(e.parent,t.parent))}function mt(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function gt(e,t,n,r,s){let i={};return r&&je(r,(e,t)=>{i[t]=Array.isArray(e)?e.map(e=>`${e}`):`${e}`}),new Re(n.root===e?t:function e(t,n,r){const s={};return je(t.children,(t,i)=>{s[i]=t===n?r:e(t,n,r)}),new Ie(t.segments,s)}(n.root,e,t),i,s)}class yt{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&mt(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(e=>"object"==typeof e&&null!=e&&e.outlets);if(r&&r!==Ae(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class bt{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}function vt(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets[ye]:`${e}`}function _t(e,t,n){if(e||(e=new Ie([],{})),0===e.segments.length&&e.hasChildren())return wt(e,t,n);const r=function(e,t,n){let r=0,s=t;const i={match:!1,pathIndex:0,commandIndex:0};for(;s<e.segments.length;){if(r>=n.length)return i;const t=e.segments[s],o=vt(n[r]),a=r<n.length-1?n[r+1]:null;if(s>0&&void 0===o)break;if(o&&a&&"object"==typeof a&&void 0===a.outlets){if(!xt(o,a,t))return i;r+=2}else{if(!xt(o,{},t))return i;r++}s++}return{match:!0,pathIndex:s,commandIndex:r}}(e,t,n),s=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){const t=new Ie(e.segments.slice(0,r.pathIndex),{});return t.children[ye]=new Ie(e.segments.slice(r.pathIndex),e.children),wt(t,0,s)}return r.match&&0===s.length?new Ie(e.segments,{}):r.match&&!e.hasChildren()?St(e,t,n):r.match?wt(e,0,s):St(e,t,n)}function wt(e,t,n){if(0===n.length)return new Ie(e.segments,{});{const r=function(e){return"object"!=typeof e[0]?{[ye]:e}:void 0===e[0].outlets?{[ye]:e}:e[0].outlets}(n),s={};return je(r,(n,r)=>{null!==n&&(s[r]=_t(e.children[r],t,n))}),je(e.children,(e,t)=>{void 0===r[t]&&(s[t]=e)}),new Ie(e.segments,s)}}function St(e,t,n){const r=e.segments.slice(0,t);let s=0;for(;s<n.length;){if("object"==typeof n[s]&&void 0!==n[s].outlets){const e=Et(n[s].outlets);return new Ie(r,e)}if(0===s&&mt(n[0])){r.push(new De(e.segments[t].path,n[0])),s++;continue}const i=vt(n[s]),o=s<n.length-1?n[s+1]:null;i&&o&&mt(o)?(r.push(new De(i,Ct(o))),s+=2):(r.push(new De(i,{})),s++)}return new Ie(r,{})}function Et(e){const t={};return je(e,(e,n)=>{null!==e&&(t[n]=St(new Ie([],{}),0,e))}),t}function Ct(e){const t={};return je(e,(e,n)=>t[n]=`${e}`),t}function xt(e,t,n){return e==n.path&&ke(t,n.parameters)}const Tt=(e,t,n)=>Object(S.a)(r=>(new Ot(t,r.targetRouterState,r.currentRouterState,n).activate(e),r));class Ot{constructor(e,t,n,r){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=r}activate(e){const t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),pt(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){const r=st(t);e.children.forEach(e=>{const t=e.value.outlet;this.deactivateRoutes(e,r[t],n),delete r[t]}),je(r,(e,t)=>{this.deactivateRouteAndItsChildren(e,n)})}deactivateRoutes(e,t,n){const r=e.value,s=t?t.value:null;if(r===s)if(r.component){const s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(e,t,s.children)}else this.deactivateChildRoutes(e,t,n);else s&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const n=t.getContext(e.value.outlet);if(n&&n.outlet){const t=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:t,route:e,contexts:r})}}deactivateRouteAndOutlet(e,t){const n=t.getContext(e.value.outlet);if(n){const r=st(e),s=e.value.component?n.children:t;je(r,(e,t)=>this.deactivateRouteAndItsChildren(e,s)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(e,t,n){const r=st(t);e.children.forEach(e=>{this.activateRoutes(e,r[e.value.outlet],n),this.forwardEvent(new fe(e.value.snapshot))}),e.children.length&&this.forwardEvent(new de(e.value.snapshot))}activateRoutes(e,t,n){const r=e.value,s=t?t.value:null;if(pt(r),r===s)if(r.component){const s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,t,s.children)}else this.activateChildRoutes(e,t,n);else if(r.component){const t=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const e=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),t.children.onOutletReAttached(e.contexts),t.attachRef=e.componentRef,t.route=e.route.value,t.outlet&&t.outlet.attach(e.componentRef,e.route.value),kt(e.route)}else{const n=function(e){for(let t=r.snapshot.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(),s=n?n.module.componentFactoryResolver:null;t.attachRef=null,t.route=r,t.resolver=s,t.outlet&&t.outlet.activateWith(r,s),this.activateChildRoutes(e,null,t.children)}}else this.activateChildRoutes(e,null,n)}}function kt(e){pt(e.value),e.children.forEach(kt)}function $t(e){return"function"==typeof e}function At(e){return e instanceof Re}class jt{constructor(e){this.segmentGroup=e||null}}class Pt{constructor(e){this.urlTree=e}}function Nt(e){return new l.a(t=>t.error(new jt(e)))}function Rt(e){return new l.a(t=>t.error(new Pt(e)))}function It(e){return new l.a(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e}'`)))}class Dt{constructor(e,t,n,r,i){this.configLoader=t,this.urlSerializer=n,this.urlTree=r,this.config=i,this.allowRedirects=!0,this.ngModule=e.get(s.w)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,ye).pipe(Object(S.a)(e=>this.createUrlTree(e,this.urlTree.queryParams,this.urlTree.fragment))).pipe(R(e=>{if(e instanceof Pt)return this.allowRedirects=!1,this.match(e.urlTree);if(e instanceof jt)throw this.noMatchError(e);throw e}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,ye).pipe(Object(S.a)(t=>this.createUrlTree(t,e.queryParams,e.fragment))).pipe(R(e=>{if(e instanceof jt)throw this.noMatchError(e);throw e}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,t,n){const r=e.segments.length>0?new Ie([],{[ye]:e}):e;return new Re(r,t,n)}expandSegmentGroup(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(Object(S.a)(e=>new Ie([],e))):this.expandSegment(e,n,t,n.segments,r,!0)}expandChildren(e,t,n){return function(e,t){if(0===Object.keys(e).length)return Object(i.a)({});const n=[],r=[],s={};return je(e,(e,i)=>{const o=t(i,e).pipe(Object(S.a)(e=>s[i]=e));i===ye?n.push(o):r.push(o)}),i.a.apply(null,n.concat(r)).pipe(Object(E.a)(),P(),Object(S.a)(()=>s))}(n.children,(n,r)=>this.expandSegmentGroup(e,t,r,n))}expandSegment(e,t,n,r,s,o){return Object(i.a)(...n).pipe(Object(S.a)(a=>this.expandSegmentAgainstRoute(e,t,n,a,r,s,o).pipe(R(e=>{if(e instanceof jt)return Object(i.a)(null);throw e}))),Object(E.a)(),M(e=>!!e),R((e,n)=>{if(e instanceof u||"EmptyError"===e.name){if(this.noLeftoversInUrl(t,r,s))return Object(i.a)(new Ie([],{}));throw new jt(t)}throw e}))}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}expandSegmentAgainstRoute(e,t,n,r,s,i,o){return Vt(r)!==i?Nt(t):void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i):Nt(t)}expandSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,n,r){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Rt(s):this.lineralizeSegments(n,s).pipe(Object(F.a)(n=>{const s=new Ie(n,{});return this.expandSegment(e,s,t,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=Lt(t,r,s);if(!o)return Nt(t);const u=this.applyRedirectCommands(a,r.redirectTo,c);return r.redirectTo.startsWith("/")?Rt(u):this.lineralizeSegments(r,u).pipe(Object(F.a)(r=>this.expandSegment(e,t,n,r.concat(s.slice(l)),i,!1)))}matchSegmentAgainstRoute(e,t,n,r){if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(Object(S.a)(e=>(n._loadedConfig=e,new Ie(r,{})))):Object(i.a)(new Ie(r,{}));const{matched:s,consumedSegments:o,lastChild:a}=Lt(t,n,r);if(!s)return Nt(t);const l=r.slice(a);return this.getChildConfig(e,n,r).pipe(Object(F.a)(e=>{const n=e.module,r=e.routes,{segmentGroup:s,slicedSegments:a}=function(e,t,n,r){return n.length>0&&function(e,t,n){return r.some(n=>Ft(e,t,n)&&Vt(n)!==ye)}(e,n)?{segmentGroup:Mt(new Ie(t,function(e,t){const n={};n[ye]=t;for(const r of e)""===r.path&&Vt(r)!==ye&&(n[Vt(r)]=new Ie([],{}));return n}(r,new Ie(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return r.some(n=>Ft(e,t,n))}(e,n)?{segmentGroup:Mt(new Ie(e.segments,function(e,t,n,r){const s={};for(const i of n)Ft(e,t,i)&&!r[Vt(i)]&&(s[Vt(i)]=new Ie([],{}));return Object.assign({},r,s)}(e,n,r,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,o,l,r);return 0===a.length&&s.hasChildren()?this.expandChildren(n,r,s).pipe(Object(S.a)(e=>new Ie(o,e))):0===r.length&&0===a.length?Object(i.a)(new Ie(o,{})):this.expandSegment(n,s,r,a,ye,!0).pipe(Object(S.a)(e=>new Ie(o.concat(e.segments),e.children)))}))}getChildConfig(e,t,n){return t.children?Object(i.a)(new Ee(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Object(i.a)(t._loadedConfig):function(e,t,n){const r=t.canLoad;return r&&0!==r.length?Object(o.a)(r).pipe(Object(S.a)(r=>{const s=e.get(r);let i;if(function(e){return e&&$t(e.canLoad)}(s))i=s.canLoad(t,n);else{if(!$t(s))throw new Error("Invalid CanLoad guard");i=s(t,n)}return Pe(i)})).pipe(Object(E.a)(),(s=(e=>!0===e),e=>e.lift(new V(s,void 0,e)))):Object(i.a)(!0);var s}(e.injector,t,n).pipe(Object(F.a)(n=>n?this.configLoader.load(e.injector,t).pipe(Object(S.a)(e=>(t._loadedConfig=e,e))):function(e){return new l.a(t=>t.error(we(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`)))}(t))):Object(i.a)(new Ee([],e))}lineralizeSegments(e,t){let n=[],r=t.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Object(i.a)(n);if(r.numberOfChildren>1||!r.children[ye])return It(e.redirectTo);r=r.children[ye]}}applyRedirectCommands(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}applyRedirectCreatreUrlTree(e,t,n,r){const s=this.createSegmentGroup(e,t.root,n,r);return new Re(s,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const n={};return je(e,(e,r)=>{if("string"==typeof e&&e.startsWith(":")){const s=e.substring(1);n[r]=t[s]}else n[r]=e}),n}createSegmentGroup(e,t,n,r){const s=this.createSegments(e,t.segments,n,r);let i={};return je(t.children,(t,s)=>{i[s]=this.createSegmentGroup(e,t,n,r)}),new Ie(s,i)}createSegments(e,t,n,r){return t.map(t=>t.path.startsWith(":")?this.findPosParam(e,t,r):this.findOrReturn(t,n))}findPosParam(e,t,n){const r=n[t.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return r}findOrReturn(e,t){let n=0;for(const r of t){if(r.path===e.path)return t.splice(n),r;n++}return e}}function Lt(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const r=(t.matcher||Se)(n,e,t);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Mt(e){if(1===e.numberOfChildren&&e.children[ye]){const t=e.children[ye];return new Ie(e.segments.concat(t.segments),t.children)}return e}function Ft(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Vt(e){return e.outlet||ye}class Ut{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class zt{constructor(e,t){this.component=e,this.route=t}}function Ht(e,t,n){const r=e._root;return function e(t,n,r,s,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=st(n);return t.children.forEach(t=>{!function(t,n,r,s,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,a=n?n.value:null,l=r?r.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const c=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Le(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Le(e.url,t.url)||!ke(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ft(e,t)||!ke(e.queryParams,t.queryParams);case"paramsChange":default:return!ft(e,t)}}(a,o,o.routeConfig.runGuardsAndResolvers);if(c?i.canActivateChecks.push(new Ut(s)):(o.data=a.data,o._resolvedData=a._resolvedData),e(t,n,o.component?l?l.children:null:r,s,i),c){i.canDeactivateChecks.push(new zt(l&&l.outlet&&l.outlet.component||null,a))}}else a&&Bt(n,l,i),i.canActivateChecks.push(new Ut(s)),e(t,null,o.component?l?l.children:null:r,s,i)}(t,o[t.value.outlet],r,s.concat([t.value]),i),delete o[t.value.outlet]}),je(o,(e,t)=>Bt(e,r.getContext(t),i)),i}(r,t?t._root:null,n,[r.value])}function qt(e,t,n){const r=function(e){if(!e)return null;for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function Bt(e,t,n){const r=st(e),s=e.value;je(r,(e,r)=>{Bt(e,s.component?t?t.children.getContext(r):null:t,n)}),n.canDeactivateChecks.push(new zt(s.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,s))}const Gt=Symbol("INITIAL_VALUE");function Wt(){return Object(z.a)(e=>(function(...e){let t=null,n=null;return Object(h.a)(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&Object(d.a)(e[0])&&(e=e[0]),Object(m.a)(e,n).lift(new y(t))})(...e.map(e=>e.pipe(Object(L.a)(1),function(...e){const t=e[e.length-1];return Object(h.a)(t)?(e.pop(),n=>Object(H.a)(e,n,t)):t=>Object(H.a)(e,t)}(Gt)))).pipe(Object(q.a)((e,t)=>{let n=!1;return t.reduce((e,r,s)=>{if(e!==Gt)return e;if(r===Gt&&(n=!0),!n){if(!1===r)return r;if(s===t.length-1||At(r))return r}return e},e)},Gt),Object(C.a)(e=>e!==Gt),Object(S.a)(e=>At(e)?e:!0===e),Object(L.a)(1)))}function Qt(e,t){return null!==e&&t&&t(new pe(e)),Object(i.a)(!0)}function Kt(e,t){return null!==e&&t&&t(new he(e)),Object(i.a)(!0)}function Zt(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return Object(i.a)(!0);const s=r.map(r=>_(()=>{const s=qt(r,t,n);let i;if(function(e){return e&&$t(e.canActivate)}(s))i=Pe(s.canActivate(t,e));else{if(!$t(s))throw new Error("Invalid CanActivate guard");i=Pe(s(t,e))}return i.pipe(M())}));return Object(i.a)(s).pipe(Wt())}function Yt(e,t,n){const r=t[t.length-1],s=t.slice(0,t.length-1).reverse().map(e=>(function(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null})(e)).filter(e=>null!==e).map(t=>_(()=>{const s=t.guards.map(s=>{const i=qt(s,t.node,n);let o;if(function(e){return e&&$t(e.canActivateChild)}(i))o=Pe(i.canActivateChild(r,e));else{if(!$t(i))throw new Error("Invalid CanActivateChild guard");o=Pe(i(r,e))}return o.pipe(M())});return Object(i.a)(s).pipe(Wt())}));return Object(i.a)(s).pipe(Wt())}class Xt{}class Jt{constructor(e,t,n,r,s,i){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=i}recognize(){try{const t=nn(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,n=this.processSegmentGroup(this.config,t,ye),r=new ct([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},ye,this.rootComponentType,null,this.urlTree.root,-1,{}),s=new rt(r,n),o=new ut(this.url,s);return this.inheritParamsAndData(o._root),Object(i.a)(o)}catch(e){return new l.a(t=>t.error(e))}}inheritParamsAndData(e){const t=e.value,n=lt(t,this.paramsInheritanceStrategy);t.params=Object.freeze(n.params),t.data=Object.freeze(n.data),e.children.forEach(e=>this.inheritParamsAndData(e))}processSegmentGroup(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}processChildren(e,t){const n=Me(t,(t,n)=>this.processSegmentGroup(e,t,n));return function(e){const t={};n.forEach(e=>{const n=t[e.value.outlet];if(n){const t=n.url.map(e=>e.toString()).join("/"),r=e.value.url.map(e=>e.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${t}' and '${r}'.`)}t[e.value.outlet]=e.value})}(),n.sort((e,t)=>e.value.outlet===ye?-1:t.value.outlet===ye?1:e.value.outlet.localeCompare(t.value.outlet)),n}processSegment(e,t,n,r){for(const i of e)try{return this.processSegmentAgainstRoute(i,t,n,r)}catch(s){if(!(s instanceof Xt))throw s}if(this.noLeftoversInUrl(t,n,r))return[];throw new Xt}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}processSegmentAgainstRoute(e,t,n,r){if(e.redirectTo)throw new Xt;if((e.outlet||ye)!==r)throw new Xt;let s,i=[],o=[];if("**"===e.path){const i=n.length>0?Ae(n).parameters:{};s=new ct(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,on(e),r,e.component,e,en(t),tn(t)+n.length,an(e))}else{const a=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new Xt;return{consumedSegments:[],lastChild:0,parameters:{}}}const r=(t.matcher||Se)(n,e,t);if(!r)throw new Xt;const s={};je(r.posParams,(e,t)=>{s[t]=e.path});const i=r.consumed.length>0?Object.assign({},s,r.consumed[r.consumed.length-1].parameters):s;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:i}}(t,e,n);i=a.consumedSegments,o=n.slice(a.lastChild),s=new ct(i,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,on(e),r,e.component,e,en(t),tn(t)+i.length,an(e))}const a=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),{segmentGroup:l,slicedSegments:c}=nn(t,i,o,a,this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const e=this.processChildren(a,l);return[new rt(s,e)]}if(0===a.length&&0===c.length)return[new rt(s,[])];const u=this.processSegment(a,l,c,ye);return[new rt(s,u)]}}function en(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function tn(e){let t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function nn(e,t,n,r,s){if(n.length>0&&function(e,t,n){return r.some(n=>rn(e,t,n)&&sn(n)!==ye)}(e,n)){const s=new Ie(t,function(e,t,n,r){const s={};s[ye]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;for(const i of n)if(""===i.path&&sn(i)!==ye){const n=new Ie([],{});n._sourceSegment=e,n._segmentIndexShift=t.length,s[sn(i)]=n}return s}(e,t,r,new Ie(n,e.children)));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return r.some(n=>rn(e,t,n))}(e,n)){const i=new Ie(e.segments,function(e,t,n,r,s,i){const o={};for(const a of r)if(rn(e,n,a)&&!s[sn(a)]){const n=new Ie([],{});n._sourceSegment=e,n._segmentIndexShift="legacy"===i?e.segments.length:t.length,o[sn(a)]=n}return Object.assign({},s,o)}(e,t,n,r,e.children,s));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n}}const i=new Ie(e.segments,e.children);return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n}}function rn(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function sn(e){return e.outlet||ye}function on(e){return e.data||{}}function an(e){return e.resolve||{}}function ln(e,t,n,r){const s=qt(e,t,r);return Pe(s.resolve?s.resolve(t,n):s(t,n))}function cn(e){return function(t){return t.pipe(Object(z.a)(t=>{const n=e(t);return n?Object(o.a)(n).pipe(Object(S.a)(()=>t)):Object(o.a)([t])}))}}class un{}class hn{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}const dn=new s.p("ROUTES");class pn{constructor(e,t,n,r){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=r}load(e,t){return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(Object(S.a)(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);const r=n.create(e);return new Ee($e(r.injector.get(dn)).map(Oe),r)}))}loadModuleFactory(e){return"string"==typeof e?Object(o.a)(this.loader.load(e)):Pe(e()).pipe(Object(F.a)(e=>e instanceof s.u?Object(i.a)(e):Object(o.a)(this.compiler.compileModuleAsync(e))))}}class fn{}class mn{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function gn(e){throw e}function yn(e,t,n){return t.parse("/")}function bn(e,t){return Object(i.a)(null)}class vn{constructor(e,t,n,r,i,o,l,c){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=r,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new w.a,this.errorHandler=gn,this.malformedUriErrorHandler=yn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:bn,afterPreactivation:bn},this.urlHandlingStrategy=new mn,this.routeReuseStrategy=new hn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=i.get(s.w),this.console=i.get(s.bb);const u=i.get(s.y);this.isNgZoneEnabled=u instanceof s.y,this.resetConfig(c),this.currentUrlTree=new Re(new Ie([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new pn(o,l,e=>this.triggerEvent(new ce(e)),e=>this.triggerEvent(new ue(e))),this.routerState=ot(this.currentUrlTree,this.rootComponentType),this.transitions=new a.a({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(e){const t=this.events;return e.pipe(Object(C.a)(e=>0!==e.id),Object(S.a)(e=>Object.assign({},e,{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl)})),Object(z.a)(e=>{let n=!1,r=!1;return Object(i.a)(e).pipe(Object(W.a)(e=>{this.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign({},this.lastSuccessfulNavigation,{previousNavigation:null}):null}}),Object(z.a)(e=>{const n=!this.navigated||e.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Object(i.a)(e).pipe(Object(z.a)(e=>{const n=this.transitions.getValue();return t.next(new ee(e.id,this.serializeUrl(e.extractedUrl),e.source,e.restoredState)),n!==this.transitions.getValue()?v.a:[e]}),Object(z.a)(e=>Promise.resolve(e)),function(e,t,n,r){return function(s){return s.pipe(Object(z.a)(s=>(function(e,t,n,r,i){return new Dt(e,t,n,s.extractedUrl,i).apply()})(e,t,n,0,r).pipe(Object(S.a)(e=>Object.assign({},s,{urlAfterRedirects:e})))))}}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Object(W.a)(e=>{this.currentNavigation=Object.assign({},this.currentNavigation,{finalUrl:e.urlAfterRedirects})}),function(e,t,n,r,s){return function(i){return i.pipe(Object(F.a)(i=>(function(e,t,n,r,s="emptyOnly",i="legacy"){return new Jt(e,t,n,r,s,i).recognize()})(e,t,i.urlAfterRedirects,n(i.urlAfterRedirects),r,s).pipe(Object(S.a)(e=>Object.assign({},i,{targetSnapshot:e})))))}}(this.rootComponentType,this.config,e=>this.serializeUrl(e),this.paramsInheritanceStrategy,this.relativeLinkResolution),Object(W.a)(e=>{"eager"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),Object(W.a)(e=>{const n=new se(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.next(n)}));if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:s,restoredState:o,extras:a}=e,l=new ee(n,this.serializeUrl(r),s,o);t.next(l);const c=ot(r,this.rootComponentType).snapshot;return Object(i.a)(Object.assign({},e,{targetSnapshot:c,urlAfterRedirects:r,extras:Object.assign({},a,{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=e.rawUrl,this.browserUrlTree=e.urlAfterRedirects,e.resolve(null),v.a}),cn(e=>{const{targetSnapshot:t,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=e;return this.hooks.beforePreactivation(t,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),Object(W.a)(e=>{const t=new ie(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),Object(S.a)(e=>Object.assign({},e,{guards:Ht(e.targetSnapshot,e.currentSnapshot,this.rootContexts)})),function(e,t){return function(n){return n.pipe(Object(F.a)(n=>{const{targetSnapshot:r,currentSnapshot:s,guards:{canActivateChecks:a,canDeactivateChecks:l}}=n;return 0===l.length&&0===a.length?Object(i.a)(Object.assign({},n,{guardsResult:!0})):function(e,t,n,r){return Object(o.a)(e).pipe(Object(F.a)(e=>(function(e,t,n,r,s){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||0===o.length)return Object(i.a)(!0);const a=o.map(i=>{const o=qt(i,t,s);let a;if(function(e){return e&&$t(e.canDeactivate)}(o))a=Pe(o.canDeactivate(e,t,n,r));else{if(!$t(o))throw new Error("Invalid CanDeactivate guard");a=Pe(o(e,t,n,r))}return a.pipe(M())});return Object(i.a)(a).pipe(Wt())})(e.component,e.route,n,t,r)),M(e=>!0!==e,!0))}(l,r,s,e).pipe(Object(F.a)(n=>n&&function(e){return"boolean"==typeof n}()?function(e,t,n,r){return Object(o.a)(t).pipe(Object(B.a)(t=>Object(o.a)([Kt(t.route.parent,r),Qt(t.route,r),Yt(e,t.path,n),Zt(e,t.route,n)]).pipe(Object(E.a)(),M(e=>!0!==e,!0))),M(e=>!0!==e,!0))}(r,a,e,t):Object(i.a)(n)),Object(S.a)(e=>Object.assign({},n,{guardsResult:e})))}))}}(this.ngModule.injector,e=>this.triggerEvent(e)),Object(W.a)(e=>{if(At(e.guardsResult)){const t=we(`Redirecting to "${this.serializeUrl(e.guardsResult)}"`);throw t.url=e.guardsResult,t}}),Object(W.a)(e=>{const t=new oe(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);this.triggerEvent(t)}),Object(C.a)(e=>{if(!e.guardsResult){this.resetUrlToCurrentUrlTree();const n=new ne(e.id,this.serializeUrl(e.extractedUrl),"");return t.next(n),e.resolve(!1),!1}return!0}),cn(e=>{if(e.guards.canActivateChecks.length)return Object(i.a)(e).pipe(Object(W.a)(e=>{const t=new ae(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),function(e,t){return function(n){return n.pipe(Object(F.a)(n=>{const{targetSnapshot:r,guards:{canActivateChecks:s}}=n;return s.length?Object(o.a)(s).pipe(Object(B.a)(n=>(function(e,t,n,s){return function(e,t,n,r){const s=Object.keys(e);if(0===s.length)return Object(i.a)({});if(1===s.length){const i=s[0];return ln(e[i],t,n,r).pipe(Object(S.a)(e=>({[i]:e})))}const a={};return Object(o.a)(s).pipe(Object(F.a)(s=>ln(e[s],t,n,r).pipe(Object(S.a)(e=>(a[s]=e,e))))).pipe(P(),Object(S.a)(()=>a))}(e._resolve,e,r,s).pipe(Object(S.a)(t=>(e._resolvedData=t,e.data=Object.assign({},e.data,lt(e,n).resolve),null)))})(n.route,0,e,t)),Object(G.a)((e,t)=>e),Object(S.a)(e=>n)):Object(i.a)(n)}))}}(this.paramsInheritanceStrategy,this.ngModule.injector),Object(W.a)(e=>{const t=new le(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}))}),cn(e=>{const{targetSnapshot:t,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=e;return this.hooks.afterPreactivation(t,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),Object(S.a)(e=>{const t=function(e,t,n){const r=function e(t,n,r){if(r&&t.shouldReuseRoute(n.value,r.value.snapshot)){const s=r.value;s._futureSnapshot=n.value;const i=function(t,n,r){return n.children.map(n=>{for(const s of r.children)if(t.shouldReuseRoute(s.value.snapshot,n.value))return e(t,n,s);return e(t,n)})}(t,n,r);return new rt(s,i)}{const r=t.retrieve(n.value);if(r){const e=r.route;return function e(t,n){if(t.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=t.value;for(let r=0;r<t.children.length;++r)e(t.children[r],n.children[r])}(n,e),e}{const r=new at(new a.a((s=n.value).url),new a.a(s.params),new a.a(s.queryParams),new a.a(s.fragment),new a.a(s.data),s.outlet,s.component,s),i=n.children.map(n=>e(t,n));return new rt(r,i)}}var s}(e,t._root,n?n._root:void 0);return new it(r,t)}(this.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign({},e,{targetRouterState:t})}),Object(W.a)(e=>{this.currentUrlTree=e.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl),this.routerState=e.targetRouterState,"deferred"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),Tt(this.rootContexts,this.routeReuseStrategy,e=>this.triggerEvent(e)),Object(W.a)({next(){n=!0},complete(){n=!0}}),function(e){return t=>t.lift(new K(e))}(()=>{if(!n&&!r){this.resetUrlToCurrentUrlTree();const n=new ne(e.id,this.serializeUrl(e.extractedUrl),`Navigation ID ${e.id} is not equal to the current navigation id ${this.navigationId}`);t.next(n),e.resolve(!1)}this.currentNavigation=null}),R(n=>{if(r=!0,function(e){return n&&n[_e]}()){const r=At(n.url);r||(this.navigated=!0,this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));const s=new ne(e.id,this.serializeUrl(e.extractedUrl),n.message);t.next(s),e.resolve(!1),r&&this.navigateByUrl(n.url)}else{this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);const r=new re(e.id,this.serializeUrl(e.extractedUrl),n);t.next(r);try{e.resolve(this.errorHandler(n))}catch(s){e.reject(s)}}return v.a}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}getTransition(){const e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}setTransition(e){this.transitions.next(Object.assign({},this.getTransition(),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{let t=this.parseUrl(e.url);const n="popstate"===e.type?"popstate":"hashchange",r=e.state&&e.state.navigationId?e.state:null;setTimeout(()=>{this.scheduleNavigation(t,n,r,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){Ce(e),this.config=e.map(Oe),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(e,t={}){const{relativeTo:n,queryParams:r,fragment:i,preserveQueryParams:o,queryParamsHandling:a,preserveFragment:l}=t;Object(s.W)()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const c=n||this.routerState.root,u=l?this.currentUrlTree.fragment:i;let h=null;if(a)switch(a){case"merge":h=Object.assign({},this.currentUrlTree.queryParams,r);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=r||null}else h=o?this.currentUrlTree.queryParams:r||null;return null!==h&&(h=this.removeEmptyProps(h)),function(e,t,n,r,s){if(0===n.length)return gt(t.root,t.root,t,r,s);const i=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new yt(!0,0,e);let t=0,n=!1;const r=e.reduce((e,r,s)=>{if("object"==typeof r&&null!=r){if(r.outlets){const t={};return je(r.outlets,(e,n)=>{t[n]="string"==typeof e?e.split("/"):e}),[...e,{outlets:t}]}if(r.segmentPath)return[...e,r.segmentPath]}return"string"!=typeof r?[...e,r]:0===s?(r.split("/").forEach((r,s)=>{0==s&&"."===r||(0==s&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))}),e):[...e,r]},[]);return new yt(n,t,r)}(n);if(i.toRoot())return gt(t.root,new Ie([],{}),t,r,s);const o=function(e,n,r){if(e.isAbsolute)return new bt(t.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new bt(r.snapshot._urlSegment,!0,0);const s=mt(e.commands[0])?0:1;return function(t,n,i){let o=r.snapshot._urlSegment,a=r.snapshot._lastPathIndex+s,l=e.numberOfDoubleDots;for(;l>a;){if(l-=a,!(o=o.parent))throw new Error("Invalid number of '../'");a=o.segments.length}return new bt(o,!1,a-l)}()}(i,0,e),a=o.processChildren?wt(o.segmentGroup,o.index,i.commands):_t(o.segmentGroup,o.index,i.commands);return gt(o.segmentGroup,a,t,r,s)}(c,this.currentUrlTree,e,h,u)}navigateByUrl(e,t={skipLocationChange:!1}){Object(s.W)()&&this.isNgZoneEnabled&&!s.y.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=At(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function(e){for(let t=0;t<e.length;t++){const n=e[t];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${t}`)}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){let t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t}isActive(e,t){if(At(e))return Ne(this.currentUrlTree,e,t);const n=this.parseUrl(e);return Ne(this.currentUrlTree,n,t)}removeEmptyProps(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return null!=r&&(t[n]=r),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.events.next(new te(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,e.resolve(!0)},e=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(e,t,n,r){const s=this.getTransition();if(s&&"imperative"!==t&&"imperative"===s.source&&s.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(s&&"hashchange"==t&&"popstate"===s.source&&s.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(s&&"popstate"==t&&"hashchange"===s.source&&s.rawUrl.toString()===e.toString())return Promise.resolve(!0);let i=null,o=null;const a=new Promise((e,t)=>{i=e,o=t}),l=++this.navigationId;return this.setTransition({id:l,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:i,reject:o,promise:a,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),a.catch(e=>Promise.reject(e))}setBrowserUrl(e,t,n,r){const s=this.urlSerializer.serialize(e);r=r||{},this.location.isCurrentPathEqualTo(s)||t?this.location.replaceState(s,"",Object.assign({},r,{navigationId:n})):this.location.go(s,"",Object.assign({},r,{navigationId:n}))}resetStateAndUrl(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}const _n=(()=>(class{constructor(e,t,n,r,s){this.router=e,this.route=t,this.commands=[],null==n&&r.setAttribute(s.nativeElement,"tabindex","0")}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}set preserveQueryParams(e){Object(s.W)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=e}onClick(){const e={skipLocationChange:Sn(this.skipLocationChange),replaceUrl:Sn(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Sn(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Sn(this.preserveFragment)})}}))(),wn=(()=>(class{constructor(e,t,n){this.router=e,this.route=t,this.locationStrategy=n,this.commands=[],this.subscription=e.events.subscribe(e=>{e instanceof te&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}set preserveQueryParams(e){Object(s.W)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=e}ngOnChanges(e){this.updateTargetUrlAndHref()}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,n,r){if(0!==e||t||n||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const s={skipLocationChange:Sn(this.skipLocationChange),replaceUrl:Sn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Sn(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Sn(this.preserveFragment)})}}))();function Sn(e){return""===e||!!e}const En=(()=>(class{constructor(e,t,n,r,s){this.router=e,this.element=t,this.renderer=n,this.link=r,this.linkWithHref=s,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=e.events.subscribe(e=>{e instanceof te&&this.update()})}ngAfterContentInit(){this.links.changes.subscribe(e=>this.update()),this.linksWithHrefs.changes.subscribe(e=>this.update()),this.update()}set routerLinkActive(e){const t=Array.isArray(e)?e:e.split(" ");this.classes=t.filter(e=>!!e)}ngOnChanges(e){this.update()}ngOnDestroy(){this.subscription.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const e=this.hasActiveLinks();this.isActive!==e&&(this.isActive=e,this.classes.forEach(t=>{e?this.renderer.addClass(this.element.nativeElement,t):this.renderer.removeClass(this.element.nativeElement,t)}))})}isLinkActive(e){return t=>e.isActive(t.urlTree,this.routerLinkActiveOptions.exact)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.linkWithHref&&e(this.linkWithHref)||this.links.some(e)||this.linksWithHrefs.some(e)}}))();class Cn{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new xn,this.attachRef=null}}class xn{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Cn,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}const Tn=(()=>(class{constructor(e,t,n,r,i){this.parentContexts=e,this.location=t,this.resolver=n,this.changeDetector=i,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.m,this.deactivateEvents=new s.m,this.name=r||ye,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,s=new On(e,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}))();class On{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===at?this.route:e===xn?this.childContexts:this.parent.get(e,t)}}class kn{}class $n{preload(e,t){return t().pipe(R(()=>Object(i.a)(null)))}}class An{preload(e,t){return Object(i.a)(null)}}const jn=(()=>(class{constructor(e,t,n,r,s){this.router=e,this.injector=r,this.preloadingStrategy=s,this.loader=new pn(t,n,t=>e.triggerEvent(new ce(t)),t=>e.triggerEvent(new ue(t)))}setUpPreloading(){this.subscription=this.router.events.pipe(Object(C.a)(e=>e instanceof te),Object(B.a)(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(s.w);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(e,t){const n=[];for(const r of t)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const e=r._loadedConfig;n.push(this.processRoutes(e.module,e.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(e,r)):r.children&&n.push(this.processRoutes(e,r.children));return Object(o.a)(n).pipe(Object(Y.a)(),Object(S.a)(e=>void 0))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>this.loader.load(e.injector,t).pipe(Object(F.a)(e=>(t._loadedConfig=e,this.processRoutes(e.module,e.routes)))))}}))();class Pn{constructor(e,t,n={}){this.router=e,this.viewportScroller=t,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof ee?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof te&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof me&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new me(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}const Nn=new s.p("ROUTER_CONFIGURATION"),Rn=new s.p("ROUTER_FORROOT_GUARD"),In=[r.g,{provide:Fe,useClass:Ve},{provide:vn,useFactory:zn,deps:[s.g,Fe,xn,r.g,s.q,s.v,s.i,dn,Nn,[fn,new s.z],[un,new s.z]]},xn,{provide:at,useFactory:Hn,deps:[vn]},{provide:s.v,useClass:s.I},jn,An,$n,{provide:Nn,useValue:{enableTracing:!1}}];function Dn(){return new s.x("Router",vn)}const Ln=(()=>{class e{constructor(e,t){}static forRoot(t,n){return{ngModule:e,providers:[In,Un(t),{provide:Rn,useFactory:Vn,deps:[[vn,new s.z,new s.H]]},{provide:Nn,useValue:n||{}},{provide:r.h,useFactory:Fn,deps:[r.o,[new s.o(r.a),new s.z],Nn]},{provide:Pn,useFactory:Mn,deps:[vn,r.q,Nn]},{provide:kn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:An},{provide:s.x,multi:!0,useFactory:Dn},[qn,{provide:s.d,multi:!0,useFactory:Bn,deps:[qn]},{provide:Wn,useFactory:Gn,deps:[qn]},{provide:s.b,multi:!0,useExisting:Wn}]]}}static forChild(t){return{ngModule:e,providers:[Un(t)]}}}return e})();function Mn(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Pn(e,t,n)}function Fn(e,t,n={}){return n.useHash?new r.e(e,t):new r.n(e,t)}function Vn(e){if(e)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Un(e){return[{provide:s.a,multi:!0,useValue:e},{provide:dn,multi:!0,useValue:e}]}function zn(e,t,n,r,s,i,o,a,l={},c,u){const h=new vn(null,t,n,r,s,i,o,$e(a));if(c&&(h.urlHandlingStrategy=c),u&&(h.routeReuseStrategy=u),l.errorHandler&&(h.errorHandler=l.errorHandler),l.malformedUriErrorHandler&&(h.malformedUriErrorHandler=l.malformedUriErrorHandler),l.enableTracing){const e=Object(X.r)();h.events.subscribe(t=>{e.logGroup(`Router Event: ${t.constructor.name}`),e.log(t.toString()),e.log(t),e.logGroupEnd()})}return l.onSameUrlNavigation&&(h.onSameUrlNavigation=l.onSameUrlNavigation),l.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=l.paramsInheritanceStrategy),l.urlUpdateStrategy&&(h.urlUpdateStrategy=l.urlUpdateStrategy),l.relativeLinkResolution&&(h.relativeLinkResolution=l.relativeLinkResolution),h}function Hn(e){return e.routerState.root}const qn=(()=>(class{constructor(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new w.a}appInitializer(){return this.injector.get(r.f,Promise.resolve(null)).then(()=>{let e=null;const t=new Promise(t=>e=t),n=this.injector.get(vn),r=this.injector.get(Nn);if(this.isLegacyDisabled(r)||this.isLegacyEnabled(r))e(!0);else if("disabled"===r.initialNavigation)n.setUpLocationChangeListener(),e(!0);else{if("enabled"!==r.initialNavigation)throw new Error(`Invalid initialNavigation options: '${r.initialNavigation}'`);n.hooks.afterPreactivation=(()=>this.initNavigation?Object(i.a)(null):(this.initNavigation=!0,e(!0),this.resultOfPreactivationDone)),n.initialNavigation()}return t})}bootstrapListener(e){const t=this.injector.get(Nn),n=this.injector.get(jn),r=this.injector.get(Pn),i=this.injector.get(vn),o=this.injector.get(s.g);e===o.components[0]&&(this.isLegacyEnabled(t)?i.initialNavigation():this.isLegacyDisabled(t)&&i.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),i.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(e){return"legacy_enabled"===e.initialNavigation||!0===e.initialNavigation||void 0===e.initialNavigation}isLegacyDisabled(e){return"legacy_disabled"===e.initialNavigation||!1===e.initialNavigation}}))();function Bn(e){return e.appInitializer.bind(e)}function Gn(e){return e.bootstrapListener.bind(e)}const Wn=new s.p("Router Initializer")},jZKg:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("HDdC"),s=n("quSY");function i(e,t){return new r.a(n=>{const r=new s.a;let i=0;return r.add(t.schedule(function(){i!==e.length?(n.next(e[i++]),n.closed||r.add(this.schedule())):n.complete()})),r})}},kBU6:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return s}),n.d(t,"c",function(){return i}),n.d(t,"d",function(){return o}),n.d(t,"e",function(){return a});const r="ionViewWillEnter",s="ionViewDidEnter",i="ionViewWillLeave",o="ionViewDidLeave",a="ionViewWillUnload"},kJWO:function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r="function"==typeof Symbol&&Symbol.observable||"@@observable"},kLfG:function(e,t,n){var r={"./ion-action-sheet-controller_8.entry.js":["0BR9",0,28],"./ion-action-sheet-ios.entry.js":["bnjm",0,29],"./ion-action-sheet-md.entry.js":["utt2",0,30],"./ion-alert-ios.entry.js":["yaSn",0,31],"./ion-alert-md.entry.js":["2/RY",0,32],"./ion-app_8-ios.entry.js":["iInF",0,33],"./ion-app_8-md.entry.js":["K9Nc",0,34],"./ion-avatar_3-ios.entry.js":["hH1s",0,35],"./ion-avatar_3-md.entry.js":["Jw9y",0,36],"./ion-back-button-ios.entry.js":["ouVF",0,37],"./ion-back-button-md.entry.js":["/joy",0,38],"./ion-backdrop-ios.entry.js":["uJLv",39],"./ion-backdrop-md.entry.js":["fSmE",40],"./ion-button_2-ios.entry.js":["s1jK",0,41],"./ion-button_2-md.entry.js":["Wou7",0,42],"./ion-card_5-ios.entry.js":["qshq",0,43],"./ion-card_5-md.entry.js":["Q1uX",0,44],"./ion-checkbox-ios.entry.js":["059i",0,45],"./ion-checkbox-md.entry.js":["eLfv",0,46],"./ion-chip-ios.entry.js":["+FzG",0,47],"./ion-chip-md.entry.js":["yRpg",0,48],"./ion-col_3.entry.js":["/CAe",49],"./ion-datetime_3-ios.entry.js":["Z1Jy",0,50],"./ion-datetime_3-md.entry.js":["X0Dk",0,51],"./ion-fab_3-ios.entry.js":["wvyA",0,52],"./ion-fab_3-md.entry.js":["NkKY",0,53],"./ion-img.entry.js":["wHD8",54],"./ion-infinite-scroll_2-ios.entry.js":["nf6t",0,55],"./ion-infinite-scroll_2-md.entry.js":["lg/V",0,56],"./ion-input-ios.entry.js":["sdJS",0,57],"./ion-input-md.entry.js":["uQUw",0,58],"./ion-item-option_3-ios.entry.js":["Pa1g",0,59],"./ion-item-option_3-md.entry.js":["KTnd",0,60],"./ion-item_8-ios.entry.js":["Z51p",0,61],"./ion-item_8-md.entry.js":["8bam",0,62],"./ion-loading-ios.entry.js":["J3Yu",0,63],"./ion-loading-md.entry.js":["N3W9",0,64],"./ion-menu_4-ios.entry.js":["GEuc",0,65],"./ion-menu_4-md.entry.js":["BHpw",0,66],"./ion-modal-ios.entry.js":["mgaC",0,67],"./ion-modal-md.entry.js":["EpFf",0,68],"./ion-nav_5.entry.js":["qF1+",0,69],"./ion-popover-ios.entry.js":["Gdks",0,70],"./ion-popover-md.entry.js":["VgKV",0,71],"./ion-progress-bar-ios.entry.js":["0PGG",0,72],"./ion-progress-bar-md.entry.js":["h/Bu",0,73],"./ion-radio_2-ios.entry.js":["5bK7",0,74],"./ion-radio_2-md.entry.js":["pOmE",0,75],"./ion-range-ios.entry.js":["5g9+",0,76],"./ion-range-md.entry.js":["fD4w",0,77],"./ion-refresher_2-ios.entry.js":["CXux",0,78],"./ion-refresher_2-md.entry.js":["RODS",0,79],"./ion-reorder_2-ios.entry.js":["IdzL",0,80],"./ion-reorder_2-md.entry.js":["Ftzj",0,81],"./ion-ripple-effect.entry.js":["STjf",82],"./ion-route_4.entry.js":["k5eQ",0,83],"./ion-searchbar-ios.entry.js":["l0q3",0,84],"./ion-searchbar-md.entry.js":["mLlG",0,85],"./ion-segment_2-ios.entry.js":["Iymp",0,86],"./ion-segment_2-md.entry.js":["3msy",0,87],"./ion-select_3-ios.entry.js":["rYLK",0,88],"./ion-select_3-md.entry.js":["WOXB",0,89],"./ion-slide_2-ios.entry.js":["F/Xn",90],"./ion-slide_2-md.entry.js":["k8us",91],"./ion-spinner.entry.js":["nI0H",0,92],"./ion-split-pane-ios.entry.js":["edcM",93],"./ion-split-pane-md.entry.js":["RyPD",94],"./ion-tab-bar_2-ios.entry.js":["DP4G",0,95],"./ion-tab-bar_2-md.entry.js":["gaXT",0,96],"./ion-tab_2.entry.js":["TpdJ",0,97],"./ion-text.entry.js":["ISmu",0,98],"./ion-textarea-ios.entry.js":["xNZy",0,99],"./ion-textarea-md.entry.js":["p1XJ",0,100],"./ion-toast-ios.entry.js":["XGfm",0,101],"./ion-toast-md.entry.js":["Y/uG",0,102],"./ion-toggle-ios.entry.js":["WbT0",0,103],"./ion-toggle-md.entry.js":["upP9",0,104],"./ion-virtual-scroll.entry.js":["8Mb5",105]};function s(e){if(!n.o(r,e))return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=r[e],s=t[0];return Promise.all(t.slice(1).map(n.e)).then(function(){return n(s)})}s.keys=function(){return Object.keys(r)},s.id="kLfG",e.exports=s},l7GE:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("7o/Q");class s extends r.a{notifyNext(e,t,n,r,s){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}},lGQG:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n("eYLY"),s=n("2Vo4"),i=n("N+K7"),o=n("n90K"),a=n("8Y7J"),l=n("iInd");const c=(()=>{class e{constructor(e,t,n){this.httpService=e,this.storageService=t,this.router=n,this.userData$=new s.a([])}gettoken(){return this.httpService.post1("authenticate",r.a.TOKEN)}getUserData(){this.storageService.get(r.a.AUTH).then(e=>{this.userData$.next(e)})}login(e){return this.httpService.post("mobile/market/login",e)}signup(e){return this.httpService.post("mobile/market/client",e)}logout(){this.storageService.removeStorageItem(r.a.AUTH).then(e=>{this.router.navigate(["/login"])})}}return e.ngInjectableDef=a.Jb({factory:function(){return new e(a.Nb(i.a),a.Nb(o.a),a.Nb(l.m))},token:e,providedIn:"root"}),e})()},lJxs:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("7o/Q");function s(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new i(e,t))}}class i{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new o(e,this.project,this.thisArg))}}class o extends r.a{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}},mCNh:function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return i});var r=n("KqfI");function s(...e){return i(e)}function i(e){return e?1===e.length?e[0]:function(t){return e.reduce((e,t)=>t(e),t)}:r.a}},mUkt:function(e,t,n){"use strict";n.r(t),n.d(t,"GESTURE_CONTROLLER",function(){return i}),n.d(t,"createGesture",function(){return u});class r{constructor(e,t,n,r,s){this.id=t,this.name=n,this.disableScroll=s,this.priority=1e6*r+t,this.ctrl=e}canStart(){return!!this.ctrl&&this.ctrl.canStart(this.name)}start(){return!!this.ctrl&&this.ctrl.start(this.name,this.id,this.priority)}capture(){if(!this.ctrl)return!1;const e=this.ctrl.capture(this.name,this.id,this.priority);return e&&this.disableScroll&&this.ctrl.disableScroll(this.id),e}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class s{constructor(e,t,n,r){this.id=t,this.disable=n,this.disableScroll=r,this.ctrl=e}block(){if(this.ctrl){if(this.disable)for(const e of this.disable)this.ctrl.disableGesture(e,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(const e of this.disable)this.ctrl.enableGesture(e,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}const i=new class{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture(e){return new r(this,this.newID(),e.name,e.priority||0,!!e.disableScroll)}createBlocker(e={}){return new s(this,this.newID(),e.disable,!!e.disableScroll)}start(e,t,n){return this.canStart(e)?(this.requestedStart.set(t,n),!0):(this.requestedStart.delete(t),!1)}capture(e,t,n){if(!this.start(e,t,n))return!1;const r=this.requestedStart;let s=-1e4;if(r.forEach(e=>{s=Math.max(s,e)}),s===n){this.capturedId=t,r.clear();const n=new CustomEvent("ionGestureCaptured",{detail:{gestureName:e}});return document.dispatchEvent(n),!0}return r.delete(t),!1}release(e){this.requestedStart.delete(e),this.capturedId===e&&(this.capturedId=void 0)}disableGesture(e,t){let n=this.disabledGestures.get(e);void 0===n&&(n=new Set,this.disabledGestures.set(e,n)),n.add(t)}enableGesture(e,t){const n=this.disabledGestures.get(e);void 0!==n&&n.delete(t)}disableScroll(e){this.disabledScroll.add(e),1===this.disabledScroll.size&&document.body.classList.add("backdrop-no-scroll")}enableScroll(e){this.disabledScroll.delete(e),0===this.disabledScroll.size&&document.body.classList.remove("backdrop-no-scroll")}canStart(e){return void 0===this.capturedId&&!this.isDisabled(e)}isCaptured(){return void 0!==this.capturedId}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled(e){const t=this.disabledGestures.get(e);return!!(t&&t.size>0)}newID(){return this.gestureId++,this.gestureId}},o=(e,t,n,r)=>{const s=a(e)?{capture:!!r.capture,passive:!!r.passive}:!!r.capture;let i,o;return e.__zone_symbol__addEventListener?(i="__zone_symbol__addEventListener",o="__zone_symbol__removeEventListener"):(i="addEventListener",o="removeEventListener"),e[i](t,n,s),()=>{e[o](t,n,s)}},a=e=>{if(void 0===l)try{const n=Object.defineProperty({},"passive",{get:()=>{l=!0}});e.addEventListener("optsTest",()=>{},n)}catch(t){l=!1}return!!l};let l;const c=e=>e instanceof Document?e:e.ownerDocument,u=e=>{let t=!1,n=!1,r=!0,s=!1;const a=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},e),l=a.canStart,u=a.onWillStart,f=a.onStart,m=a.onEnd,g=a.notCaptured,y=a.onMove,b=a.threshold,v={type:"pan",startX:0,startY:0,startTimeStamp:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,timeStamp:0,event:void 0,data:void 0},_=((e,t,n)=>{const r=a.maxAngle*(Math.PI/180),s="x"===a.direction,i=Math.cos(r),o=t*t;let l=0,c=0,u=!1,h=0;return{start(e,t){l=e,c=t,h=0,u=!0},detect(e,t){if(!u)return!1;const n=e-l,r=t-c,a=n*n+r*r;if(a<o)return!1;const d=Math.sqrt(a),p=(s?n:r)/d;return h=p>i?1:p<-i?-1:0,u=!1,!0},isGesture:()=>0!==h,getDirection:()=>h}})(0,a.threshold),w=i.createGesture({name:e.gestureName,priority:e.gesturePriority,disableScroll:e.disableScroll}),S=()=>{t&&(s=!1,y&&y(v))},E=()=>!(w&&!w.capture()||(t=!0,r=!1,v.startX=v.currentX,v.startY=v.currentY,v.startTimeStamp=v.timeStamp,u?u(v).then(C):C(),0)),C=()=>{f&&f(v),r=!0},x=()=>{t=!1,n=!1,s=!1,r=!0,w.release()},T=e=>{const n=t,s=r;x(),s&&(h(v,e),n?m&&m(v):g&&g(v))},O=((e,t,n,r,s)=>{let i,a,l,u,h,d,p,f=0;const m=r=>{f=Date.now()+2e3,t(r)&&(!a&&n&&(a=o(e,"touchmove",n,s)),l||(l=o(e,"touchend",y,s)),u||(u=o(e,"touchcancel",y,s)))},g=r=>{f>Date.now()||t(r)&&(!d&&n&&(d=o(c(e),"mousemove",n,s)),p||(p=o(c(e),"mouseup",b,s)))},y=e=>{v(),r&&r(e)},b=e=>{_(),r&&r(e)},v=()=>{a&&a(),l&&l(),u&&u(),a=l=u=void 0},_=()=>{d&&d(),p&&p(),d=p=void 0},w=()=>{v(),_()},S=t=>{t?(i&&i(),h&&h(),i=h=void 0,w()):(i||(i=o(e,"touchstart",m,s)),h||(h=o(e,"mousedown",g,s)))};return{setDisabled:S,stop:w,destroy:()=>{S(!0),r=n=t=void 0}}})(a.el,e=>{const t=p(e);return!(n||!r)&&(d(e,v),v.startX=v.currentX,v.startY=v.currentY,v.startTimeStamp=v.timeStamp=t,v.velocityX=v.velocityY=v.deltaX=v.deltaY=0,v.event=e,(!l||!1!==l(v))&&(w.release(),!!w.start()&&(n=!0,0===b?E():(_.start(v.startX,v.startY),!0))))},e=>{t?!s&&r&&(s=!0,h(v,e),requestAnimationFrame(S)):(h(v,e),_.detect(v.currentX,v.currentY)&&(_.isGesture()&&E()||k()))},T,{capture:!1}),k=()=>{x(),O.stop(),g&&g(v)};return{setDisabled(e){e&&t&&T(void 0),O.setDisabled(e)},destroy(){w.destroy(),O.destroy()}}},h=(e,t)=>{if(!t)return;const n=e.currentX,r=e.currentY,s=e.timeStamp;d(t,e);const i=e.currentX,o=e.currentY,a=(e.timeStamp=p(t))-s;if(a>0&&a<100){const t=(o-r)/a;e.velocityX=(i-n)/a*.7+.3*e.velocityX,e.velocityY=.7*t+.3*e.velocityY}e.deltaX=i-e.startX,e.deltaY=o-e.startY,e.event=t},d=(e,t)=>{let n=0,r=0;if(e){const t=e.changedTouches;if(t&&t.length>0){const e=t[0];n=e.clientX,r=e.clientY}else void 0!==e.pageX&&(n=e.pageX,r=e.pageY)}t.currentX=n,t.currentY=r},p=e=>e.timeStamp||Date.now()},mrSG:function(e,t,n){"use strict";n.d(t,"c",function(){return s}),n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o}),n.d(t,"d",function(){return a});var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function s(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var s in t=arguments[n])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)};function o(e,t,n,r){return new(n||(n=Promise))(function(s,i){function o(e){try{l(r.next(e))}catch(t){i(t)}}function a(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){e.done?s(e.value):new n(function(t){t(e.value)}).then(o,a)}l((r=r.apply(e,t||[])).next())})}function a(e,t){var n,r,s,i,o={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(s=2&i[0]?r.return:i[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,i[1])).done)return s;switch(r=0,s&&(i=[2&i[0],s.value]),i[0]){case 0:case 1:s=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(s=(s=o.trys).length>0&&s[s.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!s||i[1]>s[0]&&i[1]<s[3])){o.label=i[1];break}if(6===i[0]&&o.label<s[1]){o.label=s[1],s=i;break}if(s&&o.label<s[2]){o.label=s[2],o.ops.push(i);break}s[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(a){i=[6,a],r=0}finally{n=s=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}},n6bG:function(e,t,n){"use strict";function r(e){return"function"==typeof e}n.d(t,"a",function(){return r})},n90K:function(e,t,n){"use strict";var r,s=n("mrSG"),i=function(e){return e.Uri="uri",e.Base64="base64",e.DataUrl="dataUrl",e}({}),o=function(e){return e.Application="APPLICATION",e.Documents="DOCUMENTS",e.Data="DATA",e.Cache="CACHE",e.External="EXTERNAL",e.ExternalStorage="EXTERNAL_STORAGE",e}({}),a=function(e){return e.Camera="camera",e.Photos="photos",e.Geolocation="geolocation",e.Notifications="notifications",e.ClipboardRead="clipboard-read",e.ClipboardWrite="clipboard-write",e}({}),l=((r="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}).Capacitor=r.Capacitor||new(function(){function e(){var e=this;this.platform="web",this.isNative=!1,this.Plugins={},this.Plugins=new Proxy(this.Plugins,{get:function(t,n){if(void 0===t[n]){var r=e;return new Proxy({},{get:function(e,t){return void 0===e[t]?r.pluginMethodNoop.bind(r,e,t,n):e[t]}})}return t[n]}})}return e.prototype.pluginMethodNoop=function(e,t,n){return Promise.reject(n+" does not have web implementation.")},e.prototype.getPlatform=function(){return this.platform},e.prototype.isPluginAvailable=function(e){return this.Plugins.hasOwnProperty(e)},e.prototype.convertFileSrc=function(e){return e},e.prototype.handleError=function(e){console.error(e)},e}())).Plugins,c=new(function(){function e(){this.plugins={},this.loadedPlugins={}}return e.prototype.addPlugin=function(e){this.plugins[e.config.name]=e},e.prototype.getPlugin=function(e){return this.plugins[e]},e.prototype.loadPlugin=function(e){var t=this.getPlugin(e);t?t.load():console.error("Unable to load web plugin "+e+", no such plugin found.")},e.prototype.getPlugins=function(){var e=[];for(var t in this.plugins)e.push(this.plugins[t]);return e},e}()),u=function(){function e(e,t){this.config=e,this.loaded=!1,this.listeners={},this.windowListeners={},t?t.addPlugin(this):c.addPlugin(this)}return e.prototype.addWindowListener=function(e){window.addEventListener(e.windowEventName,e.handler),e.registered=!0},e.prototype.removeWindowListener=function(e){e&&(window.removeEventListener(e.windowEventName,e.handler),e.registered=!1)},e.prototype.addListener=function(e,t){var n=this;this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t);var r=this.windowListeners[e];return r&&!r.registered&&this.addWindowListener(r),{remove:function(){n.removeListener(e,t)}}},e.prototype.removeListener=function(e,t){var n=this.listeners[e];if(n){var r=n.indexOf(t);this.listeners[e].splice(r,1),this.listeners[e].length||this.removeWindowListener(this.windowListeners[e])}},e.prototype.notifyListeners=function(e,t){var n=this.listeners[e];n&&n.forEach(function(e){return e(t)})},e.prototype.hasListeners=function(e){return!!this.listeners[e].length},e.prototype.registerWindowListener=function(e,t){var n=this;this.windowListeners[t]={registered:!1,windowEventName:e,pluginEventName:t,handler:function(e){n.notifyListeners(t,e)}}},e.prototype.requestPermissions=function(){return Capacitor.isNative?Capacitor.nativePromise(this.config.name,"requestPermissions",{}):Promise.resolve({results:[]})},e.prototype.load=function(){this.loaded=!0},e}(),h=function(e,t){e.hasOwnProperty(t.config.name)&&!function(e){return e.config.platforms&&e.config.platforms.indexOf(Capacitor.platform)>=0}(t)||(e[t.config.name]=t)},d=(new(function(e){function t(){return e.call(this,{name:"Accessibility",platforms:["web"]})||this}return Object(s.c)(t,e),t.prototype.isScreenReaderEnabled=function(){throw new Error("Feature not available in the browser")},t.prototype.speak=function(e){if(!("speechSynthesis"in window))return Promise.reject("Browser does not support the Speech Synthesis API");var t=new SpeechSynthesisUtterance(e.value);return e.language&&(t.lang=e.language),window.speechSynthesis.speak(t),Promise.resolve()},t}(u)),new(function(e){function t(){var t=e.call(this,{name:"App",platforms:["web"]})||this;return"undefined"!=typeof document&&document.addEventListener("visibilitychange",t.handleVisibilityChange.bind(t),!1),t}return Object(s.c)(t,e),t.prototype.exitApp=function(){throw new Error("Method not implemented.")},t.prototype.canOpenUrl=function(e){return Promise.resolve({value:!0})},t.prototype.openUrl=function(e){return Promise.resolve({completed:!0})},t.prototype.getLaunchUrl=function(){return Promise.resolve({url:""})},t.prototype.handleVisibilityChange=function(){var e={isActive:!0!==document.hidden};this.notifyListeners("appStateChange",e)},t}(u)),new(function(e){function t(){return e.call(this,{name:"Browser",platforms:["web"]})||this}return Object(s.c)(t,e),t.prototype.open=function(e){return Object(s.b)(this,void 0,void 0,function(){return Object(s.d)(this,function(t){return this._lastWindow=window.open(e.url,e.windowName||"_blank"),[2,Promise.resolve()]})})},t.prototype.prefetch=function(e){return Object(s.b)(this,void 0,void 0,function(){return Object(s.d)(this,function(e){return[2,Promise.resolve()]})})},t.prototype.close=function(){return Object(s.b)(this,void 0,void 0,function(){return Object(s.d)(this,function(e){return this._lastWindow&&this._lastWindow.close(),[2,Promise.resolve()]})})},t}(u)),new(function(e){function t(){return e.call(this,{name:"Camera",platforms:["web"]})||this}return Object(s.c)(t,e),t.prototype.getPhoto=function(e){return Object(s.b)(this,void 0,void 0,function(){var t=this;return Object(s.d)(this,function(n){return[2,new Promise(function(n,r){return Object(s.b)(t,void 0,void 0,function(){var t,i=this;return Object(s.d)(this,function(o){switch(o.label){case 0:return t=document.createElement("pwa-camera-modal"),document.body.appendChild(t),[4,t.componentOnReady()];case 1:return o.sent(),t.addEventListener("onPhoto",function(o){return Object(s.b)(i,void 0,void 0,function(){var i,a;return Object(s.d)(this,function(s){switch(s.label){case 0:return null!==(i=o.detail)?[3,1]:(r("User cancelled photos app"),[3,4]);case 1:return i instanceof Error?(r(i.message),[3,4]):[3,2];case 2:return a=n,[4,this._getCameraPhoto(i,e)];case 3:a.apply(void 0,[s.sent()]),s.label=4;case 4:return t.dismiss(),document.body.removeChild(t),[2]}})})}),t.present(),[2]}})})})]})})},t.prototype._getCameraPhoto=function(e,t){return new Promise(function(n,r){var s=new FileReader,o=e.type.split("/")[1];t.resultType===i.Uri?n({webPath:URL.createObjectURL(e),format:o}):(s.readAsDataURL(e),s.onloadend=function(){var e=s.result;n(t.resultType===i.DataUrl?{dataUrl:e,format:o}:{base64String:e.split(",")[1],format:o})},s.onerror=function(e){r(e)})})},t}(u)),new(function(e){function t(){return e.call(this,{name:"Clipboard",platforms:["web"]})||this}return Object(s.c)(t,e),t.prototype.write=function(e){return Object(s.b)(this,void 0,void 0,function(){return Object(s.d)(this,function(t){switch(t.label){case 0:return navigator.clipboard?e.string||e.url?[4,navigator.clipboard.writeText(e.string||e.url)]:[3,2]:[2,Promise.reject("Clipboard API not available in this browser")];case 1:return t.sent(),[3,3];case 2:if(e.image)return[2,Promise.reject("Setting images not supported on the web")];t.label=3;case 3:return[2,Promise.resolve()]}})})},t.prototype.read=function(e){return Object(s.b)(this,void 0,void 0,function(){var t,n,r,i,o;return Object(s.d)(this,function(s){switch(s.label){case 0:return navigator.clipboard?"string"!==e.type&&"url"!==e.type?[3,2]:[4,navigator.clipboard.readText()]:[2,Promise.reject("Clipboard API not available in this browser")];case 1:return t=s.sent(),[2,Promise.resolve({value:t})];case 2:return[4,navigator.clipboard.read()];case 3:for(n=s.sent(),r=0,i=n.items;r<i.length;r++)if("text/plain"===(o=i[r]).type)return[2,Promise.resolve({value:o.getAs("text/plain")})];s.label=4;case 4:return[2,Promise.reject("Unable to get data from clipboard")]}})})},t}(u)),new(function(e){function t(){var t=e.call(this,{name:"Filesystem",platforms:["web"]})||this;return t.DEFAULT_DIRECTORY=o.Data,t.DB_VERSION=1,t.DB_NAME="Disc",t._writeCmds=["add","put","delete"],t}return Object(s.c)(t,e),t.prototype.initDb=function(){return Object(s.b)(this,void 0,void 0,function(){var e=this;return Object(s.d)(this,function(n){if(void 0!==this._db)return[2,this._db];if(!("indexedDB"in window))throw new Error("This browser doesn't support IndexedDB");return[2,new Promise(function(n,r){var s=indexedDB.open(e.DB_NAME,e.DB_VERSION);s.onupgradeneeded=t.doUpgrade,s.onsuccess=function(){e._db=s.result,n(s.result)},s.onerror=function(){return r(s.error)},s.onblocked=function(){console.warn("db blocked")}})]})})},t.doUpgrade=function(e){var t=e.target.result;switch(e.oldVersion){case 0:case 1:default:t.objectStoreNames.contains("FileStorage")&&t.deleteObjectStore("FileStorage"),t.createObjectStore("FileStorage",{keyPath:"path"}).createIndex("by_folder","folder")}},t.prototype.dbRequest=function(e,t){return Object(s.b)(this,void 0,void 0,function(){var n;return Object(s.d)(this,function(r){return n=-1!==this._writeCmds.indexOf(e)?"readwrite":"readonly",[2,this.initDb().then(function(r){return new Promise(function(s,i){var o=r.transaction(["FileStorage"],n).objectStore("FileStorage"),a=o[e].apply(o,t);a.onsuccess=function(){return s(a.result)},a.onerror=function(){return i(a.error)}})})]})})},t.prototype.dbIndexRequest=function(e,t,n){return Object(s.b)(this,void 0,void 0,function(){var r;return Object(s.d)(this,function(s){return r=-1!==this._writeCmds.indexOf(t)?"readwrite":"readonly",[2,this.initDb().then(function(s){return new Promise(function(i,o){var a=s.transaction(["FileStorage"],r).objectStore("FileStorage").index(e),l=a[t].apply(a,n);l.onsuccess=function(){return i(l.result)},l.onerror=function(){return o(l.error)}})})]})})},t.prototype.getPath=function(e,t){e=e||this.DEFAULT_DIRECTORY;var n=void 0!==t?t.replace(/^[/]+|[/]+$/g,""):"",r="/"+e;return""!==t&&(r+="/"+n),r},t.prototype.clear=function(){return Object(s.b)(this,void 0,void 0,function(){return Object(s.d)(this,function(e){switch(e.label){case 0:return[4,this.initDb()];case 1:return e.sent().transaction(["FileStorage"],"readwrite").objectStore("FileStorage").clear(),[2,{}]}})})},t.prototype.readFile=function(e){return Object(s.b)(this,void 0,void 0,function(){var t,n;return Object(s.d)(this,function(r){switch(r.label){case 0:return t=this.getPath(e.directory,e.path),[4,this.dbRequest("get",[t])];case 1:if(void 0===(n=r.sent()))throw Error("File does not exist.");return[2,{data:n.content}]}})})},t.prototype.writeFile=function(e){return Object(s.b)(this,void 0,void 0,function(){var t,n,r,i,o,a,l,c,u;return Object(s.d)(this,function(s){switch(s.label){case 0:return t=this.getPath(e.directory,e.path),n=e.data,[4,this.dbRequest("get",[t])];case 1:if((r=s.sent())&&"directory"===r.type)throw"The supplied path is a directory.";return i=e.encoding,o=t.substr(0,t.lastIndexOf("/")),[4,this.dbRequest("get",[o])];case 2:return void 0!==s.sent()?[3,4]:-1===(a=o.indexOf("/",1))?[3,4]:(l=o.substr(a),[4,this.mkdir({path:l,directory:e.directory,recursive:!0})]);case 3:s.sent(),s.label=4;case 4:return c=Date.now(),u={path:t,folder:o,type:"file",size:n.length,ctime:c,mtime:c,content:!i&&n.indexOf(",")>=0?n.split(",")[1]:n},[4,this.dbRequest("put",[u])];case 5:return s.sent(),[2,{}]}})})},t.prototype.appendFile=function(e){return Object(s.b)(this,void 0,void 0,function(){var t,n,r,i,o,a,l;return Object(s.d)(this,function(s){switch(s.label){case 0:return t=this.getPath(e.directory,e.path),n=e.data,r=t.substr(0,t.lastIndexOf("/")),i=Date.now(),o=i,[4,this.dbRequest("get",[t])];case 1:if((a=s.sent())&&"directory"===a.type)throw"The supplied path is a directory.";return[4,this.dbRequest("get",[r])];case 2:return void 0!==s.sent()?[3,4]:(l=r.substr(r.indexOf("/",1)),[4,this.mkdir({path:l,directory:e.directory,recursive:!0})]);case 3:s.sent(),s.label=4;case 4:return void 0!==a&&(n=a.content+n,o=a.ctime),[4,this.dbRequest("put",[{path:t,folder:r,type:"file",size:n.length,ctime:o,mtime:i,content:n}])];case 5:return s.sent(),[2,{}]}})})},t.prototype.deleteFile=function(e){return Object(s.b)(this,void 0,void 0,function(){var t;return Object(s.d)(this,function(n){switch(n.label){case 0:return t=this.getPath(e.directory,e.path),[4,this.dbRequest("get",[t])];case 1:if(void 0===n.sent())throw Error("File does not exist.");return[4,this.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(t)])];case 2:if(0!==n.sent().length)throw Error("Folder is not empty.");return[4,this.dbRequest("delete",[t])];case 3:return n.sent(),[2,{}]}})})},t.prototype.mkdir=function(e){return Object(s.b)(this,void 0,void 0,function(){var t,n,r,i,o,a,l,c,u,h;return Object(s.d)(this,function(s){switch(s.label){case 0:return t=this.getPath(e.directory,e.path),n=e.createIntermediateDirectories,void 0!==e.createIntermediateDirectories&&console.warn("createIntermediateDirectories is deprecated, use recursive"),r=e.recursive,i=n||r,o=t.substr(0,t.lastIndexOf("/")),a=(t.match(/\//g)||[]).length,[4,this.dbRequest("get",[o])];case 1:return l=s.sent(),[4,this.dbRequest("get",[t])];case 2:if(c=s.sent(),1===a)throw Error("Cannot create Root directory");if(void 0!==c)throw Error("Current directory does already exist.");if(!i&&2!==a&&void 0===l)throw Error("Parent directory must exist");return i&&2!==a&&void 0===l?(u=o.substr(o.indexOf("/",1)),[4,this.mkdir({path:u,directory:e.directory,recursive:i})]):[3,4];case 3:s.sent(),s.label=4;case 4:return h=Date.now(),[4,this.dbRequest("put",[{path:t,folder:o,type:"directory",size:0,ctime:h,mtime:h}])];case 5:return s.sent(),[2,{}]}})})},t.prototype.rmdir=function(e){return Object(s.b)(this,void 0,void 0,function(){var t,n,r,i,o,a,l,c,u;return Object(s.d)(this,function(s){switch(s.label){case 0:return r=e.recursive,i=this.getPath(n=e.directory,t=e.path),[4,this.dbRequest("get",[i])];case 1:if(void 0===(o=s.sent()))throw Error("Folder does not exist.");if("directory"!==o.type)throw Error("Requested path is not a directory");return[4,this.readdir({path:t,directory:n})];case 2:if(0!==(a=s.sent()).files.length&&!r)throw Error("Folder is not empty");l=0,c=a.files,s.label=3;case 3:return l<c.length?[4,this.stat({path:u=t+"/"+c[l],directory:n})]:[3,9];case 4:return"file"!==s.sent().type?[3,6]:[4,this.deleteFile({path:u,directory:n})];case 5:return s.sent(),[3,8];case 6:return[4,this.rmdir({path:u,directory:n,recursive:r})];case 7:s.sent(),s.label=8;case 8:return l++,[3,3];case 9:return[4,this.dbRequest("delete",[i])];case 10:return s.sent(),[2,{}]}})})},t.prototype.readdir=function(e){return Object(s.b)(this,void 0,void 0,function(){var t,n;return Object(s.d)(this,function(r){switch(r.label){case 0:return t=this.getPath(e.directory,e.path),[4,this.dbRequest("get",[t])];case 1:if(n=r.sent(),""!==e.path&&void 0===n)throw Error("Folder does not exist.");return[4,this.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(t)])];case 2:return[2,{files:r.sent().map(function(e){return e.substring(t.length+1)})}]}})})},t.prototype.getUri=function(e){return Object(s.b)(this,void 0,void 0,function(){var t,n;return Object(s.d)(this,function(r){switch(r.label){case 0:return t=this.getPath(e.directory,e.path),[4,this.dbRequest("get",[t])];case 1:return void 0!==(n=r.sent())?[3,3]:[4,this.dbRequest("get",[t+"/"])];case 2:n=r.sent(),r.label=3;case 3:if(void 0===n)throw Error("Entry does not exist.");return[2,{uri:n.path}]}})})},t.prototype.stat=function(e){return Object(s.b)(this,void 0,void 0,function(){var t,n;return Object(s.d)(this,function(r){switch(r.label){case 0:return t=this.getPath(e.directory,e.path),[4,this.dbRequest("get",[t])];case 1:return void 0!==(n=r.sent())?[3,3]:[4,this.dbRequest("get",[t+"/"])];case 2:n=r.sent(),r.label=3;case 3:if(void 0===n)throw Error("Entry does not exist.");return[2,{type:n.type,size:n.size,ctime:n.ctime,mtime:n.mtime,uri:n.path}]}})})},t.prototype.rename=function(e){return Object(s.b)(this,void 0,void 0,function(){return Object(s.d)(this,function(t){return[2,this._copy(e,!0)]})})},t.prototype.copy=function(e){return Object(s.b)(this,void 0,void 0,function(){return Object(s.d)(this,function(t){return[2,this._copy(e,!1)]})})},t.prototype._copy=function(e,t){return void 0===t&&(t=!1),Object(s.b)(this,void 0,void 0,function(){var n,r,i,o,a,l,c,u,h,d,p,f,m,g,y,b,v=this;return Object(s.d)(this,function(_){switch(_.label){case 0:if(r=e.from,i=e.directory,o=e.toDirectory,!(n=e.to)||!r)throw Error("Both to and from must be provided");if(o||(o=i),a=this.getPath(i,r),l=this.getPath(o,n),a===l)return[2,{}];if(l.startsWith(a))throw Error("To path cannot contain the from path");_.label=1;case 1:return _.trys.push([1,3,,6]),[4,this.stat({path:n,directory:o})];case 2:return c=_.sent(),[3,6];case 3:return _.sent(),(u=n.split("/")).pop(),h=u.join("/"),u.length>0?[4,this.stat({path:h,directory:o})]:[3,5];case 4:if("directory"!==_.sent().type)throw new Error("Parent directory of the to path is a file");_.label=5;case 5:return[3,6];case 6:if(c&&"directory"===c.type)throw new Error("Cannot overwrite a directory with a file");return[4,this.stat({path:r,directory:i})];case 7:switch(d=_.sent(),p=function(e,t,n){return Object(s.b)(v,void 0,void 0,function(){var r,i;return Object(s.d)(this,function(s){switch(s.label){case 0:return r=this.getPath(o,e),[4,this.dbRequest("get",[r])];case 1:return(i=s.sent()).ctime=t,i.mtime=n,[4,this.dbRequest("put",[i])];case 2:return s.sent(),[2]}})})},d.type){case"file":return[3,8];case"directory":return[3,15]}return[3,28];case 8:return[4,this.readFile({path:r,directory:i})];case 9:return f=_.sent(),t?[4,this.deleteFile({path:r,directory:i})]:[3,11];case 10:_.sent(),_.label=11;case 11:return[4,this.writeFile({path:n,directory:o,data:f.data})];case 12:return _.sent(),t?[4,p(n,d.ctime,d.mtime)]:[3,14];case 13:_.sent(),_.label=14;case 14:return[2,{}];case 15:if(c)throw Error("Cannot move a directory over an existing object");_.label=16;case 16:return _.trys.push([16,20,,21]),[4,this.mkdir({path:n,directory:o,recursive:!1})];case 17:return _.sent(),t?[4,p(n,d.ctime,d.mtime)]:[3,19];case 18:_.sent(),_.label=19;case 19:return[3,21];case 20:return _.sent(),[3,21];case 21:return[4,this.readdir({path:r,directory:i})];case 22:m=_.sent().files,g=0,y=m,_.label=23;case 23:return g<y.length?[4,this._copy({from:r+"/"+(b=y[g]),to:n+"/"+b,directory:i,toDirectory:o},t)]:[3,26];case 24:_.sent(),_.label=25;case 25:return g++,[3,23];case 26:return t?[4,this.rmdir({path:r,directory:i})]:[3,28];case 27:_.sent(),_.label=28;case 28:return[2,{}]}})})},t._debug=!0,t}(u)),function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach(function(t){if(t&&"object"==typeof t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}),e});new(function(e){function t(){return e.call(this,{name:"Geolocation",platforms:["web"]})||this}return Object(s.c)(t,e),t.prototype.getCurrentPosition=function(e){var t=this;return new Promise(function(n,r){return t.requestPermissions().then(function(t){window.navigator.geolocation.getCurrentPosition(function(e){n(e)},function(e){r(e)},d({enableHighAccuracy:!0,timeout:1e4,maximumAge:0},e))})})},t.prototype.watchPosition=function(e,t){return""+window.navigator.geolocation.watchPosition(function(e){t(e)},function(e){t(null,e)},d({enableHighAccuracy:!0,timeout:1e4,maximumAge:0},e))},t.prototype.clearWatch=function(e){return window.navigator.geolocation.clearWatch(parseInt(e.id,10)),Promise.resolve()},t}(u)),new(function(e){function t(){return e.call(this,{name:"Device",platforms:["web"]})||this}return Object(s.c)(t,e),t.prototype.getInfo=function(){return Object(s.b)(this,void 0,void 0,function(){var e,t,n;return Object(s.d)(this,function(r){switch(r.label){case 0:e=navigator.userAgent,t=this.parseUa(e),n={},r.label=1;case 1:return r.trys.push([1,3,,4]),[4,navigator.getBattery()];case 2:return n=r.sent(),[3,4];case 3:return r.sent(),[3,4];case 4:return[2,Promise.resolve({model:t.model,platform:"web",appVersion:"",appBuild:"",operatingSystem:t.operatingSystem,osVersion:t.osVersion,manufacturer:navigator.vendor,isVirtual:!1,batteryLevel:n.level,isCharging:n.charging,uuid:this.getUid()})]}})})},t.prototype.getLanguageCode=function(){return Object(s.b)(this,void 0,void 0,function(){return Object(s.d)(this,function(e){return[2,{value:navigator.language}]})})},t.prototype.parseUa=function(e){var t={},n=e.indexOf("(")+1,r=e.indexOf(") AppleWebKit");-1!==e.indexOf(") Gecko")&&(r=e.indexOf(") Gecko"));var s=e.substring(n,r);if(-1!==e.indexOf("Android"))t.model=s.replace("; wv","").split("; ").pop().split(" Build")[0],t.osVersion=s.split("; ")[1];else if(t.model=s.split("; ")[0],navigator.oscpu)t.osVersion=navigator.oscpu;else if(-1!==e.indexOf("Windows"))t.osVersion=s;else{var i=s.split("; ").pop().replace(" like Mac OS X","").split(" ");t.osVersion=i[i.length-1].replace(/_/g,".")}return t.operatingSystem=/android/i.test(e)?"android":/iPad|iPhone|iPod/.test(e)&&!window.MSStream?"ios":/Win/.test(e)?"windows":/Mac/i.test(e)?"mac":"unknown",t},t.prototype.getUid=function(){var e=window.localStorage.getItem("_capuid");return e||(e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}),window.localStorage.setItem("_capuid",e),e)},t}(u)),new(function(e){function t(){var t=e.call(this,{name:"LocalNotifications",platforms:["web"]})||this;return t.pending=[],t}return Object(s.c)(t,e),t.prototype.sendPending=function(){var e=this,t=[],n=+new Date;this.pending.forEach(function(r){r.schedule&&r.schedule.at&&+r.schedule.at<=n&&(e.buildNotification(r),t.push(r))}),console.log("Sent pending, removing",t),this.pending=this.pending.filter(function(e){return!t.find(function(t){return t===e})})},t.prototype.sendNotification=function(e){var t=this,n=e;if(e.schedule&&e.schedule.at){var r=+e.schedule.at-+new Date;return this.pending.push(n),void setTimeout(function(){t.sendPending()},r)}this.buildNotification(e)},t.prototype.buildNotification=function(e){return new Notification(e.title,{body:e.body})},t.prototype.schedule=function(e){var t=this,n=[];return e.notifications.forEach(function(e){n.push(t.sendNotification(e))}),Promise.resolve({notifications:n.map(function(e){return{id:""}})})},t.prototype.getPending=function(){return Promise.resolve({notifications:this.pending.map(function(e){return{id:""+e.id}})})},t.prototype.registerActionTypes=function(e){throw new Error("Method not implemented.")},t.prototype.cancel=function(e){return console.log("Cancel these",e),this.pending=this.pending.filter(function(t){return!e.notifications.find(function(e){return e.id===""+t.id})}),Promise.resolve()},t.prototype.areEnabled=function(){throw new Error("Method not implemented.")},t.prototype.requestPermissions=function(){return new Promise(function(e,t){Notification.requestPermission(function(n){"denied"!==n&&"default"!==n?e({results:[n]}):t(n)})})},t}(u)),new(function(e){function t(){return e.call(this,{name:"Share",platforms:["web"]})||this}return Object(s.c)(t,e),t.prototype.share=function(e){return navigator.share?navigator.share({title:e.title,text:e.text,url:e.url}):Promise.reject("Web Share API not available")},t}(u)),new(function(e){function t(){return e.call(this,{name:"Modals",platforms:["web"]})||this}return Object(s.c)(t,e),t.prototype.alert=function(e){return Object(s.b)(this,void 0,void 0,function(){return Object(s.d)(this,function(t){return window.alert(e.message),[2,Promise.resolve()]})})},t.prototype.prompt=function(e){return Object(s.b)(this,void 0,void 0,function(){var t;return Object(s.d)(this,function(n){return t=window.prompt(e.message,e.inputPlaceholder||""),[2,Promise.resolve({value:t,cancelled:null===t})]})})},t.prototype.confirm=function(e){return Object(s.b)(this,void 0,void 0,function(){var t;return Object(s.d)(this,function(n){return t=window.confirm(e.message),[2,Promise.resolve({value:t})]})})},t.prototype.showActions=function(e){return Object(s.b)(this,void 0,void 0,function(){var t=this;return Object(s.d)(this,function(n){return[2,new Promise(function(n,r){return Object(s.b)(t,void 0,void 0,function(){var t,r;return Object(s.d)(this,function(s){switch(s.label){case 0:return(t=document.querySelector("ion-action-sheet-controller"))||(t=document.createElement("ion-action-sheet-controller"),document.body.appendChild(t)),[4,t.componentOnReady()];case 1:return s.sent(),r=e.options.map(function(e,t){return{text:e.title,role:e.style&&e.style.toLowerCase()||"",icon:e.icon||"",handler:function(){n({index:t})}}}),[4,t.create({title:e.title,buttons:r})];case 2:return[4,s.sent().present()];case 3:return s.sent(),[2]}})})})]})})},t}(u)),new(function(e){function t(){var t=e.call(this,{name:"Motion"})||this;return t.registerWindowListener("devicemotion","accel"),t.registerWindowListener("deviceorientation","orientation"),t}return Object(s.c)(t,e),t}(u)),new(function(e){function t(){var t=e.call(this,{name:"Network",platforms:["web"]})||this;return t.listenerFunction=null,t}return Object(s.c)(t,e),t.prototype.getStatus=function(){return new Promise(function(e,t){if(window.navigator){var n=window.navigator.onLine,r=window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection;e({connected:n,connectionType:n?r?r.type||r.effectiveType:"wifi":"none"})}else t("Network info not available")})},t.prototype.addListener=function(e,t){var n=window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection,r=t.bind(this,{connected:!0,connectionType:n?n.type||n.effectiveType:"wifi"}),s=t.bind(this,{connected:!1,connectionType:"none"});if(0===e.localeCompare("networkStatusChange"))return window.addEventListener("online",r),window.addEventListener("offline",s),{remove:function(){window.removeEventListener("online",r),window.removeEventListener("offline",s)}}},t}(u)),new(function(e){function t(){return e.call(this,{name:"Permissions"})||this}return Object(s.c)(t,e),t.prototype.query=function(e){return Object(s.b)(this,void 0,void 0,function(){var t;return Object(s.d)(this,function(n){switch(n.label){case 0:return(t=window.navigator).permissions?[4,t.permissions.query({name:e.name===a.Photos?"camera":e.name})]:[2,Promise.reject("This browser does not support the Permissions API")];case 1:return[2,{state:n.sent().state}]}})})},t}(u)),new(function(e){function t(){return e.call(this,{name:"SplashScreen",platforms:["web"]})||this}return Object(s.c)(t,e),t.prototype.show=function(e,t){return Promise.resolve()},t.prototype.hide=function(e,t){return Promise.resolve()},t}(u)),new(function(e){function t(){var t=e.call(this,{name:"Storage",platforms:["web"]})||this;return t.KEY_PREFIX="_cap_",t}return Object(s.c)(t,e),t.prototype.get=function(e){var t=this;return new Promise(function(n,r){n({value:window.localStorage.getItem(t.makeKey(e.key))})})},t.prototype.set=function(e){var t=this;return new Promise(function(n,r){window.localStorage.setItem(t.makeKey(e.key),e.value),n()})},t.prototype.remove=function(e){var t=this;return new Promise(function(n,r){window.localStorage.removeItem(t.makeKey(e.key)),n()})},t.prototype.keys=function(){var e=this;return new Promise(function(t,n){t({keys:Object.keys(localStorage).filter(function(t){return e.isKey(t)}).map(function(t){return e.getKey(t)})})})},t.prototype.clear=function(){var e=this;return new Promise(function(t,n){Object.keys(localStorage).filter(function(t){return e.isKey(t)}).forEach(function(e){return window.localStorage.removeItem(e)}),t()})},t.prototype.makeKey=function(e){return this.KEY_PREFIX+e},t.prototype.isKey=function(e){return 0===e.indexOf(this.KEY_PREFIX)},t.prototype.getKey=function(e){return e.substr(this.KEY_PREFIX.length)},t}(u)),new(function(e){function t(){return e.call(this,{name:"Toast",platforms:["web"]})||this}return Object(s.c)(t,e),t.prototype.show=function(e){return Object(s.b)(this,void 0,void 0,function(){var t,n;return Object(s.d)(this,function(r){return t=3e3,e.duration&&(t="long"===e.duration?5e3:3e3),(n=document.createElement("pwa-toast")).duration=t,n.message=e.text,document.body.appendChild(n),[2]})})},t}(u)),function(e){for(var t=0,n=c.getPlugins();t<n.length;t++)h(e,n[t])}(l);var p=n("8Y7J");n.d(t,"a",function(){return m});const{Storage:f}=l,m=(()=>{class e{constructor(){}store(e,t){return s.b(this,void 0,void 0,function*(){const n=btoa(escape(JSON.stringify(t)));yield f.set({key:e,value:n})})}get(e){return s.b(this,void 0,void 0,function*(){const t=yield f.get({key:e});return JSON.parse(unescape(atob(t.value)))})}removeStorageItem(e){return s.b(this,void 0,void 0,function*(){yield f.remove({key:e})})}clear(){return s.b(this,void 0,void 0,function*(){yield f.clear()})}}return e.ngInjectableDef=p.Jb({factory:function(){return new e},token:e,providedIn:"root"}),e})()},ngJS:function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r=e=>t=>{for(let n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.complete()}},pLZG:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("7o/Q");function s(e,t){return function(n){return n.lift(new i(e,t))}}class i{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new o(e,this.predicate,this.thisArg))}}class o extends r.a{constructor(e,t,n){super(e),this.predicate=t,this.thisArg=n,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}},pMnS:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("8Y7J"),s=n("iInd"),i=r.ob({encapsulation:2,styles:[],data:{}});function o(e){return r.Hb(0,[(e()(),r.qb(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),r.pb(1,212992,null,0,s.r,[s.b,r.N,r.j,[8,null],r.h],null,null)],function(e,t){e(t,1,0)},null)}function a(e){return r.Hb(0,[(e()(),r.qb(0,0,null,null,1,"ng-component",[],null,null,null,o,i)),r.pb(1,49152,null,0,s.F,[],null,null)],null,null)}var l=r.mb("ng-component",s.F,a,{},{},[])},pori:function(e,t,n){"use strict";n.d(t,"a",function(){return k}),n.d(t,"b",function(){return o}),n.d(t,"c",function(){return a}),n.d(t,"d",function(){return h}),n.d(t,"e",function(){return p}),n.d(t,"f",function(){return b}),n.d(t,"g",function(){return v}),n.d(t,"h",function(){return S}),n.d(t,"i",function(){return f}),n.d(t,"j",function(){return C}),n.d(t,"k",function(){return g}),n.d(t,"l",function(){return y}),n.d(t,"m",function(){return l}),n.d(t,"n",function(){return c}),n.d(t,"o",function(){return u}),n.d(t,"p",function(){return O}),n.d(t,"q",function(){return d});var r=n("AfW+");let s=0;const i=e=>({create:t=>f(e,t),dismiss:(t,n,r)=>g(document,t,n,e,r),getTop:async()=>y(document,e)}),o=i("ion-alert"),a=i("ion-action-sheet"),l=i("ion-loading"),c=i("ion-modal"),u=i("ion-picker"),h=i("ion-popover"),d=i("ion-toast"),p=e=>{const t=document;m(t);const n=s++;e.overlayIndex=n,e.hasAttribute("id")||(e.id=`ion-overlay-${n}`)},f=(e,t)=>customElements.whenDefined(e).then(()=>{const n=document,r=n.createElement(e);return r.classList.add("overlay-hidden"),Object.assign(r,t),_(n).appendChild(r),r.componentOnReady()}),m=e=>{0===s&&(s=1,e.addEventListener("focusin",t=>{const n=y(e);if(n&&n.backdropDismiss&&!x(n,t.target)){const e=n.querySelector("input,button");e&&e.focus()}}),e.addEventListener("ionBackButton",t=>{const n=y(e);n&&n.backdropDismiss&&t.detail.register(100,()=>n.dismiss(void 0,k))}),e.addEventListener("keyup",t=>{if("Escape"===t.key){const t=y(e);t&&t.backdropDismiss&&t.dismiss(void 0,k)}}))},g=(e,t,n,r,s)=>{const i=y(e,r,s);return i?i.dismiss(t,n):Promise.reject("overlay does not exist")},y=(e,t,n)=>{const r=((e,t)=>(void 0===t&&(t="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"),Array.from(e.querySelectorAll(t)).filter(e=>e.overlayIndex>0)))(e,t);return void 0===n?r[r.length-1]:r.find(e=>e.id===n)},b=async(e,t,n,s,i)=>{if(e.presented)return;e.presented=!0,e.willPresent.emit();const o=e.enterAnimation?e.enterAnimation:r.b.get(t,"ios"===e.mode?n:s);await w(e,o,e.el,i)&&e.didPresent.emit()},v=async(e,t,n,s,i,o,a)=>{if(!e.presented)return!1;e.presented=!1;try{e.willDismiss.emit({data:t,role:n});const c=e.leaveAnimation?e.leaveAnimation:r.b.get(s,"ios"===e.mode?i:o);await w(e,c,e.el,a),e.didDismiss.emit({data:t,role:n})}catch(l){console.error(l)}return e.el.remove(),!0},_=e=>e.querySelector("ion-app")||e.body,w=async(e,t,s,i)=>{if(e.animation)return e.animation.destroy(),e.animation=void 0,!1;s.classList.remove("overlay-hidden");const o=s.shadowRoot||e.el;let a,l=!0;try{const e=await n.e(6).then(n.bind(null,"gHMO"));a=await e.create(t,o,i)}catch(u){(a=t(o,i)).fill("both"),l=!1}e.animation=a,e.animated&&r.b.getBoolean("animated",!0)||a.duration(0),e.keyboardClose&&a.beforeAddWrite(()=>{const e=s.ownerDocument.activeElement;e&&e.matches("input, ion-input, ion-textarea")&&e.blur()});const c=void 0===await a.playAsync()||a.hasCompleted;return l&&a.destroy(),e.animation=void 0,c},S=(e,t)=>{let n;const r=new Promise(e=>n=e);return E(e,t,e=>{n(e.detail)}),r},E=(e,t,n)=>{const r=s=>{e.removeEventListener(t,r),n(s)};e.addEventListener(t,r)},C=e=>"cancel"===e||e===k,x=(e,t)=>{for(;t;){if(t===e)return!0;t=t.parentElement}return!1},T=e=>e(),O=(e,t)=>{if("function"==typeof e)return r.b.get("_zoneGate",T)(()=>{try{return e(t)}catch(n){console.error(n)}})},k="backdrop"},quSY:function(e,t,n){"use strict";var r=n("DH7j"),s=n("XoHu"),i=n("n6bG");function o(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}o.prototype=Object.create(Error.prototype);const a=o;n.d(t,"a",function(){return l});const l=(()=>{class e{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:n,_unsubscribe:o,_subscriptions:l}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(let e=0;e<n.length;++e)n[e].remove(this);if(Object(i.a)(o))try{o.call(this)}catch(u){t=u instanceof a?c(u.errors):[u]}if(Object(r.a)(l)){let e=-1,n=l.length;for(;++e<n;){const n=l[e];if(Object(s.a)(n))try{n.unsubscribe()}catch(u){t=t||[],u instanceof a?t=t.concat(c(u.errors)):t.push(u)}}}if(t)throw new a(t)}add(t){let n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){const t=n;(n=new e)._subscriptions=[t]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:r}=n;if(null===r)n._parentOrParents=this;else if(r instanceof e){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}const s=this._subscriptions;return null===s?this._subscriptions=[n]:s.push(n),n}remove(e){const t=this._subscriptions;if(t){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}return e.EMPTY=function(e){return e.closed=!0,e}(new e),e})();function c(e){return e.reduce((e,t)=>e.concat(t instanceof a?t.errors:t),[])}},s7LF:function(e,t,n){"use strict";var r=n("8Y7J"),s=n("cUpR"),i=n("HDdC"),o=n("DH7j"),a=n("lJxs"),l=n("XoHu"),c=n("Cfvw");function u(e,t){return new i.a(n=>{const r=e.length;if(0===r)return void n.complete();const s=new Array(r);let i=0,o=0;for(let a=0;a<r;a++){const l=Object(c.a)(e[a]);let u=!1;n.add(l.subscribe({next:e=>{u||(u=!0,o++),s[a]=e},error:e=>n.error(e),complete:()=>{++i!==r&&u||(o===r&&n.next(t?t.reduce((e,t,n)=>(e[t]=s[n],e),{}):s),n.complete())}}))}})}n.d(t,"p",function(){return ye}),n.d(t,"s",function(){return fe}),n.d(t,"q",function(){return P}),n.d(t,"r",function(){return U}),n.d(t,"b",function(){return g}),n.d(t,"g",function(){return h}),n.d(t,"a",function(){return p}),n.d(t,"c",function(){return f}),n.d(t,"h",function(){return b}),n.d(t,"i",function(){return _}),n.d(t,"j",function(){return w}),n.d(t,"k",function(){return ae}),n.d(t,"l",function(){return pe}),n.d(t,"n",function(){return j}),n.d(t,"m",function(){return M}),n.d(t,"e",function(){return ge}),n.d(t,"o",function(){return me}),n.d(t,"f",function(){return E}),n.d(t,"d",function(){return be});const h=new r.p("NgValueAccessor"),d=(()=>(class{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=(e=>{}),this.onTouched=(()=>{})}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}))(),p=new r.p("CompositionEventMode"),f=(()=>(class{constructor(e,t,n){this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=(e=>{}),this.onTouched=(()=>{}),this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const e=Object(s.r)()?Object(s.r)().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}))();class m{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}class g extends m{get formDirective(){return null}get path(){return null}}function y(){throw new Error("unimplemented")}class b extends m{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return y()}get asyncValidator(){return y()}}class v{constructor(e){this._cd=e}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}const _=(()=>(class extends v{constructor(e){super(e)}}))(),w=(()=>(class extends v{constructor(e){super(e)}}))();function S(e){return null==e||0===e.length}const E=new r.p("NgValidators"),C=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/;class x{static min(e){return t=>{if(S(t.value)||S(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}static max(e){return t=>{if(S(t.value)||S(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}static required(e){return S(e.value)?{required:!0}:null}static requiredTrue(e){return!0===e.value?null:{required:!0}}static email(e){return S(e.value)?null:C.test(e.value)?null:{email:!0}}static minLength(e){return t=>{if(S(t.value))return null;const n=t.value?t.value.length:0;return n<e?{minlength:{requiredLength:e,actualLength:n}}:null}}static maxLength(e){return t=>{const n=t.value?t.value.length:0;return n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}}static pattern(e){if(!e)return x.nullValidator;let t,n;return"string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),e=>{if(S(e.value))return null;const r=e.value;return t.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}static nullValidator(e){return null}static compose(e){if(!e)return null;const t=e.filter(T);return 0==t.length?null:function(e){return k(function(e,n){return t.map(t=>t(e))}(e))}}static composeAsync(e){if(!e)return null;const t=e.filter(T);return 0==t.length?null:function(e){return function(...e){if(1===e.length){const t=e[0];if(Object(o.a)(t))return u(t,null);if(Object(l.a)(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return u(e.map(e=>t[e]),e)}}if("function"==typeof e[e.length-1]){const t=e.pop();return u(e=1===e.length&&Object(o.a)(e[0])?e[0]:e,null).pipe(Object(a.a)(e=>t(...e)))}return u(e,null)}(function(e,n){return t.map(t=>t(e))}(e).map(O)).pipe(Object(a.a)(k))}}}function T(e){return null!=e}function O(e){const t=Object(r.vb)(e)?Object(c.a)(e):e;if(!Object(r.ub)(t))throw new Error("Expected validator to return Promise or Observable.");return t}function k(e){const t=e.reduce((e,t)=>null!=t?Object.assign({},e,t):e,{});return 0===Object.keys(t).length?null:t}function $(e){return e.validate?t=>e.validate(t):e}function A(e){return e.validate?t=>e.validate(t):e}const j=(()=>(class{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=(e=>{}),this.onTouched=(()=>{})}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=(t=>{e(""==t?null:parseFloat(t))})}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}))(),P=(()=>(class{constructor(){this._accessors=[]}add(e,t){this._accessors.push([e,t])}remove(e){for(let t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}select(e){this._accessors.forEach(t=>{this._isSameGroup(t,e)&&t[1]!==e&&t[1].fireUncheck(e.value)})}_isSameGroup(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}))(),N=(()=>(class{constructor(e,t,n,r){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=r,this.onChange=(()=>{}),this.onTouched=(()=>{})}ngOnInit(){this._control=this._injector.get(b),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=(()=>{e(this.value),this._registry.select(this)})}fireUncheck(e){this.writeValue(e)}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}_throwNameError(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: <input type="radio" formControlName="food" name="food">\n ')}}))(),R=(()=>(class{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=(e=>{}),this.onTouched=(()=>{})}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}registerOnChange(e){this.onChange=(t=>{e(""==t?null:parseFloat(t))})}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}))(),I={formControlName:'\n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',formGroupName:'\n <div [formGroup]="myGroup">\n <div formGroupName="person">\n <input formControlName="firstName">\n </div>\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',formArrayName:'\n <div [formGroup]="myGroup">\n <div formArrayName="cities">\n <div *ngFor="let city of cityArray.controls; index as i">\n <input [formControlName]="i">\n </div>\n </div>\n </div>\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });',ngModelGroup:'\n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>',ngModelWithFormGroup:'\n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n </div>\n '};function D(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}const L=(()=>(class{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=(e=>{}),this.onTouched=(()=>{}),this._compareWith=r.wb}set compareWith(e){if("function"!=typeof e)throw new Error(`compareWith must be a function, but received ${JSON.stringify(e)}`);this._compareWith=e}writeValue(e){this.value=e;const t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=D(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(e){this.onChange=(t=>{this.value=this._getOptionValue(t),e(this.value)})}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t),e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}}))(),M=(()=>(class{constructor(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(D(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}))();function F(e,t){return null==e?`${t}`:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}const V=(()=>(class{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=(e=>{}),this.onTouched=(()=>{}),this._compareWith=r.wb}set compareWith(e){if("function"!=typeof e)throw new Error(`compareWith must be a function, but received ${JSON.stringify(e)}`);this._compareWith=e}writeValue(e){let t;if(this.value=e,Array.isArray(e)){const n=e.map(e=>this._getOptionId(e));t=((e,t)=>{e._setSelected(n.indexOf(t.toString())>-1)})}else t=((e,t)=>{e._setSelected(!1)});this._optionMap.forEach(t)}registerOnChange(e){this.onChange=(t=>{const n=[];if(t.hasOwnProperty("selectedOptions")){const e=t.selectedOptions;for(let t=0;t<e.length;t++){const r=e.item(t),s=this._getOptionValue(r.value);n.push(s)}}else{const e=t.options;for(let t=0;t<e.length;t++){const r=e.item(t);if(r.selected){const e=this._getOptionValue(r.value);n.push(e)}}}this.value=n,e(n)})}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(e){const t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t)._value,e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e}}))(),U=(()=>(class{constructor(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(F(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(F(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}))();function z(e,t){return[...t.path,e]}function H(e,t){e||B(t,"Cannot find control with"),t.valueAccessor||B(t,"No value accessor for form control with"),e.validator=x.compose([e.validator,t.validator]),e.asyncValidator=x.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&q(e,t)})}(e,t),function(e,t){e.registerOnChange((e,n)=>{t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&q(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange(e=>{t.valueAccessor.setDisabledState(e)}),t._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(()=>e.updateValueAndValidity())}),t._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(()=>e.updateValueAndValidity())})}function q(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function B(e,t){let n;throw n=e.path.length>1?`path: '${e.path.join(" -> ")}'`:e.path[0]?`name: '${e.path}'`:"unspecified name attribute",new Error(`${t} ${n}`)}function G(e){return null!=e?x.compose(e.map($)):null}function W(e){return null!=e?x.composeAsync(e.map(A)):null}const Q=[d,R,j,L,V,N],K="VALID",Z="INVALID",Y="PENDING",X="DISABLED";function J(e){const t=te(e)?e.validators:e;return Array.isArray(t)?G(t):t||null}function ee(e,t){const n=te(t)?t.asyncValidators:e;return Array.isArray(n)?W(n):n||null}function te(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class ne{constructor(e,t){this.validator=e,this.asyncValidator=t,this._onCollectionChange=(()=>{}),this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}get parent(){return this._parent}get valid(){return this.status===K}get invalid(){return this.status===Z}get pending(){return this.status==Y}get disabled(){return this.status===X}get enabled(){return this.status!==X}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this.validator=J(e)}setAsyncValidators(e){this.asyncValidator=ee(e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=Y,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=X,this.errors=null,this._forEachChild(t=>{t.disable(Object.assign({},e,{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign({},e,{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=K,this._forEachChild(t=>{t.enable(Object.assign({},e,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign({},e,{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==K&&this.status!==Y||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?X:K}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=Y;const t=O(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(t=>this.setErrors(t,{emitEvent:e}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function(e,t,n){return null==t?null:(t instanceof Array||(t=t.split(".")),t instanceof Array&&0===t.length?null:t.reduce((e,t)=>e instanceof se?e.controls.hasOwnProperty(t)?e.controls[t]:null:e instanceof ie&&e.at(t)||null,e))}(this,e)}getError(e,t){const n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new r.m,this.statusChanges=new r.m}_calculateStatus(){return this._allControlsDisabled()?X:this.errors?Z:this._anyControlsHaveStatus(Y)?Y:this._anyControlsHaveStatus(Z)?Z:K}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){te(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class re extends ne{constructor(e=null,t,n){super(J(t),ee(n,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(e=>e(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=null,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=(()=>{})}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class se extends ne{constructor(e,t,n){super(J(t),ee(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){Object.keys(e).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}reset(e={},t={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t instanceof re?t.value:t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error(`Cannot find form control with name: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(t=>e(this.controls[t],t))}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){let t=!1;return this._forEachChild((n,r)=>{t=t||this.contains(r)&&e(n)}),t}_reduceValue(){return this._reduceChildren({},(e,t,n)=>((t.enabled||this.disabled)&&(e[n]=t.value),e))}_reduceChildren(e,t){let n=e;return this._forEachChild((e,r)=>{n=t(n,e,r)}),n}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class ie extends ne{constructor(e,t,n){super(J(t),ee(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(e){return this.controls[e]}push(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}insert(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}removeAt(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){this._checkAllValuesPresent(e),e.forEach((e,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e.forEach((e,n)=>{this.at(n)&&this.at(n).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}reset(e=[],t={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof re?e.value:e.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let e=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error(`Cannot find form control at index ${e}`)}_forEachChild(e){this.controls.forEach((t,n)=>{e(t,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const oe=(()=>Promise.resolve(null))(),ae=(()=>(class extends g{constructor(e,t){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new r.m,this.form=new se({},G(e),W(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){oe.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),H(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){oe.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),function(t,n){const r=t.indexOf(e);r>-1&&t.splice(r,1)}(this._directives)})}addFormGroup(e){oe.then(()=>{const t=this._findContainer(e.path),n=new se({});(function(e,t){null==e&&B(t,"Cannot find control with"),e.validator=x.compose([e.validator,t.validator]),e.asyncValidator=x.composeAsync([e.asyncValidator,t.asyncValidator])})(n,e),t.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){oe.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){oe.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,t=this._directives,this.form._syncPendingControls(),t.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)}),this.ngSubmit.emit(e),!1;var t}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}))();class le{static modelParentException(){throw new Error(`\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup's partner directive "formControlName" instead. Example:\n\n ${I.formControlName}\n\n Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n Example:\n\n ${I.ngModelWithFormGroup}`)}static formGroupNameException(){throw new Error(`\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n ${I.formGroupName}\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ${I.ngModelGroup}`)}static missingNameException(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: <input [(ngModel)]="person.firstName" name="first">\n Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')}static modelGroupParentException(){throw new Error(`\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n ${I.formGroupName}\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ${I.ngModelGroup}`)}static ngFormWarning(){console.warn("\n It looks like you're using 'ngForm'.\n\n Support for using the 'ngForm' element selector has been deprecated in Angular v6 and will be removed\n in Angular v9.\n\n Use 'ng-form' instead.\n\n Before:\n <ngForm #myForm=\"ngForm\">\n\n After:\n <ng-form #myForm=\"ngForm\">\n ")}}const ce=new r.p("NgFormSelectorWarning");class ue extends g{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return z(this.name,this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return G(this._validators)}get asyncValidator(){return W(this._asyncValidators)}_checkParentType(){}}const he=(()=>{class e extends ue{constructor(e,t,n){super(),this._parent=e,this._validators=t,this._asyncValidators=n}_checkParentType(){this._parent instanceof e||this._parent instanceof ae||le.modelGroupParentException()}}return e})(),de=(()=>Promise.resolve(null))(),pe=(()=>(class extends b{constructor(e,t,n,s){super(),this.control=new re,this._registered=!1,this.update=new r.m,this._parent=e,this._rawValidators=t||[],this._rawAsyncValidators=n||[],this.valueAccessor=function(e,t){if(!t)return null;Array.isArray(t)||B(e,"Value accessor was not provided as an array for form control with");let n=void 0,r=void 0,s=void 0;return t.forEach(t=>{t.constructor===f?n=t:function(e){return Q.some(t=>e.constructor===t)}(t)?(r&&B(e,"More than one built-in value accessor matches form control with"),r=t):(s&&B(e,"More than one custom value accessor matches form control with"),s=t)}),s||r||n||(B(e,"No valid value accessor for form control with"),null)}(this,s)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),function(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object(r.wb)(t,n.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?z(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return G(this._rawValidators)}get asyncValidator(){return W(this._rawAsyncValidators)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){H(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof he)&&this._parent instanceof ue?le.formGroupNameException():this._parent instanceof he||this._parent instanceof ae||le.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||le.missingNameException()}_updateValue(e){de.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const t=e.isDisabled.currentValue,n=""===t||t&&"false"!==t;de.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}))(),fe=(()=>(class{}))(),me=(()=>(class{get required(){return this._required}set required(e){this._required=null!=e&&!1!==e&&"false"!==`${e}`,this._onChange&&this._onChange()}validate(e){return this.required?x.required(e):null}registerOnValidatorChange(e){this._onChange=e}}))(),ge=(()=>(class{ngOnChanges(e){"minlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}validate(e){return null==this.minlength?null:this._validator(e)}registerOnValidatorChange(e){this._onChange=e}_createValidator(){this._validator=x.minLength(parseInt(this.minlength,10))}}))(),ye=(()=>(class{}))(),be=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:ce,useValue:t.warnOnDeprecatedNgFormSelector}]}}}return e})()},vkgz:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("7o/Q"),s=n("KqfI"),i=n("n6bG");function o(e,t,n){return function(r){return r.lift(new a(e,t,n))}}class a{constructor(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}call(e,t){return t.subscribe(new l(e,this.nextOrObserver,this.error,this.complete))}}class l extends r.a{constructor(e,t,n,r){super(e),this._tapNext=s.a,this._tapError=s.a,this._tapComplete=s.a,this._tapError=n||s.a,this._tapComplete=r||s.a,Object(i.a)(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||s.a,this._tapError=t.error||s.a,this._tapComplete=t.complete||s.a)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}},w1tV:function(e,t,n){"use strict";var r=n("XNiG"),s=n("HDdC"),i=n("7o/Q"),o=n("quSY");function a(){return function(e){return e.lift(new l(e))}}class l{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const r=new c(e,n),s=t.subscribe(r);return r.closed||(r.connection=n.connect()),s}}class c extends i.a{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}const u=class extends s.a{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new o.a).add(this.source.subscribe(new d(this.getSubject(),this))),e.closed&&(this._connection=null,e=o.a.EMPTY)),e}refCount(){return a()(this)}}.prototype,h={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:u._subscribe},_isComplete:{value:u._isComplete,writable:!0},getSubject:{value:u.getSubject},connect:{value:u.connect},refCount:{value:u.refCount}};class d extends r.b{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function p(){return new r.a}function f(){return e=>a()(function(e,t){return function(t){let n;n="function"==typeof e?e:function(){return e};const r=Object.create(t,h);return r.source=t,r.subjectFactory=n,r}}(p)(e))}n.d(t,"a",function(){return f})},xbPD:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("7o/Q");function s(e=null){return t=>t.lift(new i(e))}class i{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new o(e,this.defaultValue))}}class o extends r.a{constructor(e,t){super(e),this.defaultValue=t,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},xgIS:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("HDdC"),s=n("DH7j"),i=n("n6bG"),o=n("lJxs");function a(e,t,n,l){return Object(i.a)(n)&&(l=n,n=void 0),l?a(e,t,n).pipe(Object(o.a)(e=>Object(s.a)(e)?l(...e):l(e))):new r.a(r=>{!function e(t,n,r,s,i){let o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(t)){const e=t;t.addEventListener(n,r,i),o=(()=>e.removeEventListener(n,r,i))}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(t)){const e=t;t.on(n,r),o=(()=>e.off(n,r))}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(t)){const e=t;t.addListener(n,r),o=(()=>e.removeListener(n,r))}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let o=0,a=t.length;o<a;o++)e(t[o],n,r,s,i)}s.add(o)}(e,t,function(e){r.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},r,n)})}},yCtX:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("HDdC"),s=n("ngJS"),i=n("jZKg");function o(e,t){return t?Object(i.a)(e,t):new r.a(Object(s.a)(e))}},"z+Ro":function(e,t,n){"use strict";function r(e){return e&&"function"==typeof e.schedule}n.d(t,"a",function(){return r})},zUnb:function(e,t,n){"use strict";n.r(t);var r=n("8Y7J"),s=n("AytR");class i{}var o=n("lGQG"),a=n("n90K"),l=n("2g2N"),c=n("eYLY"),u=n("2Vo4");class h{constructor(e,t,n){this.authService=e,this.storageService=t,this.toastService=n,this.expire_in$=new u.a([])}ngOnInit(){this.setJwt(),this.storageService.get(c.a.EXPIRE_IN).then(e=>{setInterval(()=>{this.setJwt()},1e3*e)})}setJwt(){this.authService.gettoken().subscribe(e=>{e?(this.storageService.store(c.a.JWT,e.results.jwt),this.storageService.store(c.a.EXPIRE_IN,e.results.expire_in)):this.toastService.presentToast("connection failed")},e=>{this.toastService.presentToast("Network Issue.")})}}var d=n("pMnS"),p=n("iInd"),f=r.ob({encapsulation:0,styles:[[""]],data:{}});function m(e){return r.Hb(0,[(e()(),r.qb(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),r.pb(1,212992,null,0,p.r,[p.b,r.N,r.j,[8,null],r.h],null,null),(e()(),r.qb(2,0,null,null,11,"div",[["class","row no-gutters vh-100 loader-screen"]],null,null,null,null,null)),(e()(),r.qb(3,0,null,null,10,"div",[["class","col align-self-center text-white text-center"]],null,null,null,null,null)),(e()(),r.qb(4,0,null,null,0,"img",[["alt","logo"],["src","assets/images/logo.png"]],null,null,null,null,null)),(e()(),r.qb(5,0,null,null,3,"h1",[],null,null,null,null,null)),(e()(),r.qb(6,0,null,null,1,"span",[["class","font-weight-light"]],null,null,null,null,null)),(e()(),r.Gb(-1,null,["Go"])),(e()(),r.Gb(-1,null,["Fruit"])),(e()(),r.qb(9,0,null,null,4,"div",[["class","laoderhorizontal"]],null,null,null,null,null)),(e()(),r.qb(10,0,null,null,0,"div",[],null,null,null,null,null)),(e()(),r.qb(11,0,null,null,0,"div",[],null,null,null,null,null)),(e()(),r.qb(12,0,null,null,0,"div",[],null,null,null,null,null)),(e()(),r.qb(13,0,null,null,0,"div",[],null,null,null,null,null))],function(e,t){e(t,1,0)},null)}function g(e){return r.Hb(0,[(e()(),r.qb(0,0,null,null,1,"app-root",[],null,null,null,m,f)),r.pb(1,114688,null,0,h,[o.a,a.a,l.a],null,null)],function(e,t){e(t,1,0)},null)}var y=r.mb("app-root",h,g,{},{},[]),b=n("IheW"),v=n("SVse");class _{constructor(e){this.storageServise=e,this.jwt$=new u.a([])}intercept(e,t){if(this.storageServise.get(c.a.JWT).then(e=>{this.jwt$.next(e)}),this.jwt$.getValue()!=[]){const n=e.clone({headers:e.headers.set("Authorization","Bearer "+this.jwt$.getValue())});return t.handle(n)}return t.handle(e)}}var w=n("cUpR");class S{}class E{}const C="*";function x(e,t=null){return{type:2,steps:e,options:t}}function T(e){return{type:6,styles:e,offset:null}}function O(e){Promise.resolve(null).then(e)}class k{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){O(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){}setPosition(e){}getPosition(){return 0}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class ${constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,n=0,r=0;const s=this.players.length;0==s?O(()=>this._onFinish()):this.players.forEach(e=>{e.onDone(()=>{++t==s&&this._onFinish()}),e.onDestroy(()=>{++n==s&&this._onDestroy()}),e.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((e,t)=>Math.max(e,t.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(e=>{const n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}getPosition(){let e=0;return this.players.forEach(t=>{const n=t.getPosition();e=Math.min(n,e)}),e}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}const A="!";function j(){return"undefined"!=typeof process}function P(e){switch(e.length){case 0:return new k;case 1:return e[0];default:return new $(e)}}function N(e,t,n,r,s={},i={}){const o=[],a=[];let l=-1,c=null;if(r.forEach(e=>{const n=e.offset,r=n==l,u=r&&c||{};Object.keys(e).forEach(n=>{let r=n,a=e[n];if("offset"!==n)switch(r=t.normalizePropertyName(r,o),a){case A:a=s[n];break;case C:a=i[n];break;default:a=t.normalizeStyleValue(n,r,a,o)}u[r]=a}),r||a.push(u),c=u,l=n}),o.length){const e="\n - ";throw new Error(`Unable to animate due to the following errors:${e}${o.join(e)}`)}return a}function R(e,t,n,r){switch(t){case"start":e.onStart(()=>r(n&&I(n,"start",e)));break;case"done":e.onDone(()=>r(n&&I(n,"done",e)));break;case"destroy":e.onDestroy(()=>r(n&&I(n,"destroy",e)))}}function I(e,t,n){const r=n.totalTime,s=D(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==r?e.totalTime:r,!!n.disabled),i=e._data;return null!=i&&(s._data=i),s}function D(e,t,n,r,s="",i=0,o){return{element:e,triggerName:t,fromState:n,toState:r,phaseName:s,totalTime:i,disabled:!!o}}function L(e,t,n){let r;return e instanceof Map?(r=e.get(t))||e.set(t,r=n):(r=e[t])||(r=e[t]=n),r}function M(e){const t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}let F=(e,t)=>!1,V=(e,t)=>!1,U=(e,t,n)=>[];const z=j();(z||"undefined"!=typeof Element)&&(F=((e,t)=>e.contains(t)),V=(()=>{if(z||Element.prototype.matches)return(e,t)=>e.matches(t);{const e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?(e,n)=>t.apply(e,[n]):V}})(),U=((e,t,n)=>{let r=[];if(n)r.push(...e.querySelectorAll(t));else{const n=e.querySelector(t);n&&r.push(n)}return r}));let H=null,q=!1;function B(e){H||(H=("undefined"!=typeof document?document.body:null)||{},q=!!H.style&&"WebkitAppearance"in H.style);let t=!0;return H.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&!(t=e in H.style)&&q&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in H.style),t}const G=V,W=F,Q=U;function K(e){const t={};return Object.keys(e).forEach(n=>{const r=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[r]=e[n]}),t}const Z=(()=>(class{validateStyleProperty(e){return B(e)}matchesElement(e,t){return G(e,t)}containsElement(e,t){return W(e,t)}query(e,t,n){return Q(e,t,n)}computeStyle(e,t,n){return n||""}animate(e,t,n,r,s,i=[],o){return new k(n,r)}}))(),Y=(()=>{class e{}return e.NOOP=new Z,e})(),X=1e3,J="{{",ee="ng-enter",te="ng-leave",ne="ng-trigger",re=".ng-trigger",se="ng-animating",ie=".ng-animating";function oe(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:ae(parseFloat(t[1]),t[2])}function ae(e,t){switch(t){case"s":return e*X;default:return e}}function le(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){let r,s=0,i="";if("string"==typeof e){const n=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return t.push(`The provided timing value "${e}" is invalid.`),{duration:0,delay:0,easing:""};r=ae(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(s=ae(parseFloat(o),n[4]));const a=n[5];a&&(i=a)}else r=e;if(!n){let n=!1,i=t.length;r<0&&(t.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(t.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&t.splice(i,0,`The provided timing value "${e}" is invalid.`)}return{duration:r,delay:s,easing:i}}(e,t,n)}function ce(e,t={}){return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}function ue(e,t,n={}){if(t)for(let r in e)n[r]=e[r];else ce(e,n);return n}function he(e,t,n){return n?t+":"+n+";":""}function de(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style.item(n);t+=he(0,r,e.style.getPropertyValue(r))}for(const n in e.style)e.style.hasOwnProperty(n)&&!n.startsWith("_")&&(t+=he(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[n]));e.setAttribute("style",t)}function pe(e,t,n){e.style&&(Object.keys(t).forEach(r=>{const s=we(r);n&&!n.hasOwnProperty(r)&&(n[r]=e.style[s]),e.style[s]=t[r]}),j()&&de(e))}function fe(e,t){e.style&&(Object.keys(t).forEach(t=>{const n=we(t);e.style[n]=""}),j()&&de(e))}function me(e){return Array.isArray(e)?1==e.length?e[0]:x(e):e}const ge=new RegExp(`${J}\\s*(.+?)\\s*}}`,"g");function ye(e){let t=[];if("string"==typeof e){const n=e.toString();let r;for(;r=ge.exec(n);)t.push(r[1]);ge.lastIndex=0}return t}function be(e,t,n){const r=e.toString(),s=r.replace(ge,(e,r)=>{let s=t[r];return t.hasOwnProperty(r)||(n.push(`Please provide a value for the animation param ${r}`),s=""),s.toString()});return s==r?e:s}function ve(e){const t=[];let n=e.next();for(;!n.done;)t.push(n.value),n=e.next();return t}const _e=/-+([a-z0-9])/g;function we(e){return e.replace(_e,(...e)=>e[1].toUpperCase())}function Se(e,t){return 0===e||0===t}function Ee(e,t,n){const r=Object.keys(n);if(r.length&&t.length){let i=t[0],o=[];if(r.forEach(e=>{i.hasOwnProperty(e)||o.push(e),i[e]=n[e]}),o.length)for(var s=1;s<t.length;s++){let n=t[s];o.forEach(function(t){n[t]=xe(e,t)})}}return t}function Ce(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error(`Unable to resolve animation metadata node #${t.type}`)}}function xe(e,t){return window.getComputedStyle(e)[t]}const Te="*";function Oe(e,t){const n=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(e=>(function(e,t,n){if(":"==e[0]){const r=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t)<parseFloat(e);default:return t.push(`The transition alias value "${e}" is not supported`),"* => *"}}(e,n);if("function"==typeof r)return void t.push(r);e=r}const r=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push(`The provided transition expression "${e}" is not supported`),t;const s=r[1],i=r[2],o=r[3];t.push(Ae(s,o)),"<"!=i[0]||s==Te&&o==Te||t.push(Ae(o,s))})(e,n,t)):n.push(e),n}const ke=new Set(["true","1"]),$e=new Set(["false","0"]);function Ae(e,t){const n=ke.has(e)||$e.has(e),r=ke.has(t)||$e.has(t);return(s,i)=>{let o=e==Te||e==s,a=t==Te||t==i;return!o&&n&&"boolean"==typeof s&&(o=s?ke.has(e):$e.has(e)),!a&&r&&"boolean"==typeof i&&(a=i?ke.has(t):$e.has(t)),o&&a}}const je=":self",Pe=new RegExp(`s*${je}s*,?`,"g");function Ne(e,t,n){return new Ie(e).build(t,n)}const Re="";class Ie{constructor(e){this._driver=e}build(e,t){const n=new De(t);return this._resetContextStyleTimingState(n),Ce(this,me(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector=Re,e.collectedStyles={},e.collectedStyles[Re]={},e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,r=t.depCount=0;const s=[],i=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(e=>{if(this._resetContextStyleTimingState(t),0==e.type){const n=e,r=n.name;r.toString().split(/\s*,\s*/).forEach(e=>{n.name=e,s.push(this.visitState(n,t))}),n.name=r}else if(1==e.type){const s=this.visitTransition(e,t);n+=s.queryCount,r+=s.depCount,i.push(s)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:s,transitions:i,queryCount:n,depCount:r,options:null}}visitState(e,t){const n=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){const s=new Set,i=r||{};if(n.styles.forEach(e=>{if(Le(e)){const t=e;Object.keys(t).forEach(e=>{ye(t[e]).forEach(e=>{i.hasOwnProperty(e)||s.add(e)})})}}),s.size){const n=ve(s.values());t.errors.push(`state("${e.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:e.name,style:n,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const n=Ce(this,me(e.animation),t);return{type:1,matchers:Oe(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:Me(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(e=>Ce(this,e,t)),options:Me(e.options)}}visitGroup(e,t){const n=t.currentTime;let r=0;const s=e.steps.map(e=>{t.currentTime=n;const s=Ce(this,e,t);return r=Math.max(r,t.currentTime),s});return t.currentTime=r,{type:3,steps:s,options:Me(e.options)}}visitAnimate(e,t){const n=function(e,t){let n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return Fe(le(e,t).duration,0,"");const r=e;if(r.split(/\s+/).some(e=>"{"==e.charAt(0)&&"{"==e.charAt(1))){const e=Fe(0,0,"");return e.dynamic=!0,e.strValue=r,e}return Fe((n=n||le(r,t)).duration,n.delay,n.easing)}(e.timings,t.errors);let r;t.currentAnimateTimings=n;let s=e.styles?e.styles:T({});if(5==s.type)r=this.visitKeyframes(s,t);else{let s=e.styles,i=!1;if(!s){i=!0;const e={};n.easing&&(e.easing=n.easing),s=T(e)}t.currentTime+=n.duration+n.delay;const o=this.visitStyle(s,t);o.isEmptyStep=i,r=o}return t.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}}visitStyle(e,t){const n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){const n=[];Array.isArray(e.styles)?e.styles.forEach(e=>{"string"==typeof e?e==C?n.push(e):t.errors.push(`The provided style string value ${e} is not allowed.`):n.push(e)}):n.push(e.styles);let r=!1,s=null;return n.forEach(e=>{if(Le(e)){const t=e,n=t.easing;if(n&&(s=n,delete t.easing),!r)for(let e in t)if(t[e].toString().indexOf(J)>=0){r=!0;break}}}),{type:6,styles:n,easing:s,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){const n=t.currentAnimateTimings;let r=t.currentTime,s=t.currentTime;n&&s>0&&(s-=n.duration+n.delay),e.styles.forEach(e=>{"string"!=typeof e&&Object.keys(e).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void t.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const i=t.collectedStyles[t.currentQuerySelector],o=i[n];let a=!0;o&&(s!=r&&s>=o.startTime&&r<=o.endTime&&(t.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${r}ms"`),a=!1),s=o.startTime),a&&(i[n]={startTime:s,endTime:r}),t.options&&function(r,s,i){const o=t.options.params||{},a=ye(e[n]);a.length&&a.forEach(e=>{o.hasOwnProperty(e)||i.push(`Unable to resolve the local animation param ${e} in the given list of values`)})}(0,0,t.errors)})})}visitKeyframes(e,t){const n={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),n;let r=0;const s=[];let i=!1,o=!1,a=0;const l=e.steps.map(e=>{const n=this._makeStyleAst(e,t);let l=null!=n.offset?n.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach(e=>{if(Le(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}});else if(Le(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}return t}(n.styles),c=0;return null!=l&&(r++,c=n.offset=l),o=o||c<0||c>1,i=i||c<a,a=c,s.push(c),n});o&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),i&&t.errors.push("Please ensure that all keyframe offsets are in order");const c=e.steps.length;let u=0;r>0&&r<c?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==r&&(u=1/(c-1));const h=c-1,d=t.currentTime,p=t.currentAnimateTimings,f=p.duration;return l.forEach((e,r)=>{const i=u>0?r==h?1:u*r:s[r],o=i*f;t.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(e,t),e.offset=i,n.styles.push(e)}),n}visitReference(e,t){return{type:8,animation:Ce(this,me(e.animation),t),options:Me(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:Me(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Me(e.options)}}visitQuery(e,t){const n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;const[s,i]=function(e){const t=!!e.split(/\s*,\s*/).find(e=>e==je);return t&&(e=e.replace(Pe,"")),[e=e.replace(/@\*/g,re).replace(/@\w+/g,e=>re+"-"+e.substr(1)).replace(/:animating/g,ie),t]}(e.selector);t.currentQuerySelector=n.length?n+" "+s:s,L(t.collectedStyles,t.currentQuerySelector,{});const o=Ce(this,me(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:i,animation:o,originalSelector:e.selector,options:Me(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");const n="full"===e.timings?{duration:0,delay:0,easing:"full"}:le(e.timings,t.errors,!0);return{type:12,animation:Ce(this,me(e.animation),t),timings:n,options:null}}}class De{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Le(e){return!Array.isArray(e)&&"object"==typeof e}function Me(e){var t;return e?(e=ce(e)).params&&(e.params=(t=e.params)?ce(t):null):e={},e}function Fe(e,t,n){return{duration:e,delay:t,easing:n}}function Ve(e,t,n,r,s,i,o=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:s,delay:i,totalTime:s+i,easing:o,subTimeline:a}}class Ue{constructor(){this._map=new Map}consume(e){let t=this._map.get(e);return t?this._map.delete(e):t=[],t}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const ze=1,He=new RegExp(":enter","g"),qe=new RegExp(":leave","g");function Be(e,t,n,r,s,i={},o={},a,l,c=[]){return(new Ge).buildKeyframes(e,t,n,r,s,i,o,a,l,c)}class Ge{buildKeyframes(e,t,n,r,s,i,o,a,l,c=[]){l=l||new Ue;const u=new Qe(e,t,l,r,s,c,[]);u.options=a,u.currentTimeline.setStyles([i],null,u.errors,a),Ce(this,n,u);const h=u.timelines.filter(e=>e.containsAnimation());if(h.length&&Object.keys(o).length){const e=h[h.length-1];e.allowOnlyTimelineStyles()||e.setStyles([o],null,u.errors,a)}return h.length?h.map(e=>e.buildKeyframes()):[Ve(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const n=t.subInstructions.consume(t.element);if(n){const r=t.createSubContext(e.options),s=t.currentTimeline.currentTime,i=this._visitSubInstructions(n,r,r.options);s!=i&&t.transformIntoNewTimeline(i)}t.previousNode=e}visitAnimateRef(e,t){const n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,n){let r=t.currentTimeline.currentTime;const s=null!=n.duration?oe(n.duration):null,i=null!=n.delay?oe(n.delay):null;return 0!==s&&e.forEach(e=>{const n=t.appendInstructionToTimeline(e,s,i);r=Math.max(r,n.duration+n.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),Ce(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const n=t.subContextCount;let r=t;const s=e.options;if(s&&(s.params||s.delay)&&((r=t.createSubContext(s)).transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=We);const e=oe(s.delay);r.delayNextStep(e)}e.steps.length&&(e.steps.forEach(e=>Ce(this,e,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const n=[];let r=t.currentTimeline.currentTime;const s=e.options&&e.options.delay?oe(e.options.delay):0;e.steps.forEach(i=>{const o=t.createSubContext(e.options);s&&o.delayNextStep(s),Ce(this,i,o),r=Math.max(r,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(e=>t.currentTimeline.mergeTimelineCollectedStyles(e)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const n=e.strValue;return le(t.params?be(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const n=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());const s=e.style;5==s.type?this.visitKeyframes(s,t):(t.incrementTime(n.duration),this.visitStyle(s,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(s):n.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const n=t.currentAnimateTimings,r=t.currentTimeline.duration,s=n.duration,i=t.createSubContext().currentTimeline;i.easing=n.easing,e.styles.forEach(e=>{i.forwardTime((e.offset||0)*s),i.setStyles(e.styles,e.easing,t.errors,t.options),i.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(i),t.transformIntoNewTimeline(r+s),t.previousNode=e}visitQuery(e,t){const n=t.currentTimeline.currentTime,r=e.options||{},s=r.delay?oe(r.delay):0;s&&(6===t.previousNode.type||0==n&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=We);let i=n;const o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=o.length;let a=null;o.forEach((n,r)=>{t.currentQueryIndex=r;const o=t.createSubContext(e.options,n);s&&o.delayNextStep(s),n===t.element&&(a=o.currentTimeline),Ce(this,e.animation,o),o.currentTimeline.applyStylesToKeyframe(),i=Math.max(i,o.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(i),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const n=t.parentContext,r=t.currentTimeline,s=e.timings,i=Math.abs(s.duration),o=i*(t.currentQueryTotal-1);let a=i*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=t.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;Ce(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-c+(r.startTime-n.currentTimeline.startTime)}}const We={};class Qe{constructor(e,t,n,r,s,i,o,a){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=s,this.errors=i,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=We,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new Ke(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const n=e;let r=this.options;null!=n.duration&&(r.duration=oe(n.duration)),null!=n.delay&&(r.delay=oe(n.delay));const s=n.params;if(s){let e=r.params;e||(e=this.options.params={}),Object.keys(s).forEach(n=>{t&&e.hasOwnProperty(n)||(e[n]=be(s[n],e,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const n=e.params={};Object.keys(t).forEach(e=>{n[e]=t[e]})}}return e}createSubContext(e=null,t,n){const r=t||this.element,s=new Qe(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=We,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){const r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},s=new Ze(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,r,s,i){let o=[];if(r&&o.push(this.element),e.length>0){e=(e=e.replace(He,"."+this._enterClassName)).replace(qe,"."+this._leaveClassName);let t=this._driver.query(this.element,e,1!=n);0!==n&&(t=n<0?t.slice(t.length+n,t.length):t.slice(0,n)),o.push(...t)}return s||0!=o.length||i.push(`\`query("${t}")\` returned zero elements. (Use \`query("${t}", { optional: true })\` if you wish to allow this.)`),o}}class Ke{constructor(e,t,n,r){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new Ke(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=ze,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||C,this._currentKeyframe[e]=C}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,r){t&&(this._previousKeyframe.easing=t);const s=r&&r.params||{},i=function(e,t){const n={};let r;return e.forEach(e=>{"*"===e?(r=r||Object.keys(t)).forEach(e=>{n[e]=C}):ue(e,!1,n)}),n}(e,this._globalTimelineStyles);Object.keys(i).forEach(e=>{const t=be(i[e],s,n);this._pendingStyles[e]=t,this._localTimelineStyles.hasOwnProperty(e)||(this._backFill[e]=this._globalTimelineStyles.hasOwnProperty(e)?this._globalTimelineStyles[e]:C),this._updateStyle(e,t)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(t=>{this._currentKeyframe[t]=e[t]}),Object.keys(this._localTimelineStyles).forEach(e=>{this._currentKeyframe.hasOwnProperty(e)||(this._currentKeyframe[e]=this._localTimelineStyles[e])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const n=this._styleSummary[t],r=e._styleSummary[t];(!n||r.time>n.time)&&this._updateStyle(t,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,n=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((s,i)=>{const o=ue(s,!0);Object.keys(o).forEach(n=>{const r=o[n];r==A?e.add(n):r==C&&t.add(n)}),n||(o.offset=i/this.duration),r.push(o)});const s=e.size?ve(e.values()):[],i=t.size?ve(t.values()):[];if(n){const e=r[0],t=ce(e);e.offset=0,t.offset=1,r=[e,t]}return Ve(this.element,r,s,i,this.duration,this.startTime,this.easing,!1)}}class Ze extends Ke{constructor(e,t,n,r,s,i,o=!1){super(e,t,i.delay),this.element=t,this.keyframes=n,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:i.duration,delay:i.delay,easing:i.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){const s=[],i=n+t,o=t/i,a=ue(e[0],!1);a.offset=0,s.push(a);const l=ue(e[0],!1);l.offset=Ye(o),s.push(l);const c=e.length-1;for(let r=1;r<=c;r++){let o=ue(e[r],!1);o.offset=Ye((t+o.offset*n)/i),s.push(o)}n=i,t=0,r="",e=s}return Ve(this.element,e,this.preStyleProps,this.postStyleProps,n,t,r,!0)}}function Ye(e,t=3){const n=Math.pow(10,t-1);return Math.round(e*n)/n}class Xe{}class Je extends Xe{normalizePropertyName(e,t){return we(e)}normalizeStyleValue(e,t,n,r){let s="";const i=n.toString().trim();if(et[t]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const t=n.match(/^[+-]?[\d\.]+([a-z]*)$/);t&&0==t[1].length&&r.push(`Please provide a CSS unit value for ${e}:${n}`)}return i+s}}const et=(()=>(function(e){const t={};return e.forEach(e=>t[e]=!0),t})("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function tt(e,t,n,r,s,i,o,a,l,c,u,h,d){return{type:0,element:e,triggerName:t,isRemovalTransition:s,fromState:n,fromStyles:i,toState:r,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const nt={};class rt{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,r){return function(e,t,n,r,s){return e.some(e=>e(t,n,r,s))}(this.ast.matchers,e,t,n,r)}buildStyles(e,t,n){const r=this._stateStyles["*"],s=this._stateStyles[e],i=r?r.buildStyles(t,n):{};return s?s.buildStyles(t,n):i}build(e,t,n,r,s,i,o,a,l,c){const u=[],h=this.ast.options&&this.ast.options.params||nt,d=this.buildStyles(n,o&&o.params||nt,u),p=a&&a.params||nt,f=this.buildStyles(r,p,u),m=new Set,g=new Map,y=new Map,b="void"===r,v={params:Object.assign({},h,p)},_=c?[]:Be(e,t,this.ast.animation,s,i,d,f,v,l,u);let w=0;if(_.forEach(e=>{w=Math.max(e.duration+e.delay,w)}),u.length)return tt(t,this._triggerName,n,r,b,d,f,[],[],g,y,w,u);_.forEach(e=>{const n=e.element,r=L(g,n,{});e.preStyleProps.forEach(e=>r[e]=!0);const s=L(y,n,{});e.postStyleProps.forEach(e=>s[e]=!0),n!==t&&m.add(n)});const S=ve(m.values());return tt(t,this._triggerName,n,r,b,d,f,_,S,g,y,w)}}class st{constructor(e,t){this.styles=e,this.defaultParams=t}buildStyles(e,t){const n={},r=ce(this.defaultParams);return Object.keys(e).forEach(t=>{const n=e[t];null!=n&&(r[t]=n)}),this.styles.styles.forEach(e=>{if("string"!=typeof e){const s=e;Object.keys(s).forEach(e=>{let i=s[e];i.length>1&&(i=be(i,r,t)),n[e]=i})}}),n}}class it{constructor(e,t){this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(e=>{this.states[e.name]=new st(e.style,e.options&&e.options.params||{})}),ot(this.states,"true","1"),ot(this.states,"false","0"),t.transitions.forEach(t=>{this.transitionFactories.push(new rt(e,t,this.states))}),this.fallbackTransition=new rt(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(e,t)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,r){return this.transitionFactories.find(s=>s.match(e,t,n,r))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}function ot(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}const at=new Ue;class lt{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(e,t){const n=[],r=Ne(this._driver,t,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[e]=r}_buildPlayer(e,t,n){const r=e.element,s=N(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){const r=[],s=this._animations[e];let i;const o=new Map;if(s?(i=Be(this._driver,t,s,ee,te,{},{},n,at,r)).forEach(e=>{const t=L(o,e.element,{});e.postStyleProps.forEach(e=>t[e]=null)}):(r.push("The requested animation doesn't exist or has already been destroyed"),i=[]),r.length)throw new Error(`Unable to create the animation due to the following errors: ${r.join("\n")}`);o.forEach((e,t)=>{Object.keys(e).forEach(n=>{e[n]=this._driver.computeStyle(t,n,C)})});const a=P(i.map(e=>{const t=o.get(e.element);return this._buildPlayer(e,{},t)}));return this._playersById[e]=a,a.onDestroy(()=>this.destroy(e)),this.players.push(a),a}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw new Error(`Unable to find the timeline player referenced by ${e}`);return t}listen(e,t,n,r){const s=D(t,"","","");return R(this._getPlayer(e),n,s,r),()=>{}}command(e,t,n,r){if("register"==n)return void this.register(e,r[0]);if("create"==n)return void this.create(e,t,r[0]||{});const s=this._getPlayer(e);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}}const ct="ng-animate-queued",ut=".ng-animate-queued",ht="ng-animate-disabled",dt=".ng-animate-disabled",pt="ng-star-inserted",ft=".ng-star-inserted",mt=[],gt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},yt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},bt="__ng_removed";class vt{constructor(e,t=""){this.namespaceId=t;const n=e&&e.hasOwnProperty("value");if(this.value=function(e){return null!=e?e:null}(n?e.value:e),n){const t=ce(e);delete t.value,this.options=t}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const e=this.options.params;Object.keys(t).forEach(n=>{null==e[n]&&(e[n]=t[n])})}}}const _t="void",wt=new vt(_t);class St{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,At(t,this._hostClassName)}listen(e,t,n,r){if(!this._triggers.hasOwnProperty(t))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${t}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${t}" because the provided event is undefined!`);if("start"!=(s=n)&&"done"!=s)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${t}" is not supported!`);var s;const i=L(this._elementListeners,e,[]),o={name:t,phase:n,callback:r};i.push(o);const a=L(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(At(e,ne),At(e,ne+"-"+t),a[t]=wt),()=>{this._engine.afterFlush(()=>{const e=i.indexOf(o);e>=0&&i.splice(e,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw new Error(`The provided animation trigger "${e}" has not been registered!`);return t}trigger(e,t,n,r=!0){const s=this._getTrigger(t),i=new Ct(this.id,t,e);let o=this._engine.statesByElement.get(e);o||(At(e,ne),At(e,ne+"-"+t),this._engine.statesByElement.set(e,o={}));let a=o[t];const l=new vt(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[t]=l,a||(a=wt),l.value!==_t&&a.value===l.value){if(!function(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(let s=0;s<n.length;s++){const r=n[s];if(!t.hasOwnProperty(r)||e[r]!==t[r])return!1}return!0}(a.params,l.params)){const t=[],n=s.matchStyles(a.value,a.params,t),r=s.matchStyles(l.value,l.params,t);t.length?this._engine.reportError(t):this._engine.afterFlush(()=>{fe(e,n),pe(e,r)})}return}const c=L(this._engine.playersByElement,e,[]);c.forEach(e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()});let u=s.matchTransition(a.value,l.value,e,l.params),h=!1;if(!u){if(!r)return;u=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:u,fromState:a,toState:l,player:i,isFallbackTransition:h}),h||(At(e,ct),i.onStart(()=>{jt(e,ct)})),i.onDone(()=>{let t=this.players.indexOf(i);t>=0&&this.players.splice(t,1);const n=this._engine.playersByElement.get(e);if(n){let e=n.indexOf(i);e>=0&&n.splice(e,1)}}),this.players.push(i),c.push(i),i}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,n)=>{delete t[e]}),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(t=>t.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(e=>e.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t,n=!1){this._engine.driver.query(e,re,!0).forEach(e=>{if(e[bt])return;const n=this._engine.fetchNamespacesByElement(e);n.size?n.forEach(n=>n.triggerLeaveAnimation(e,t,!1,!0)):this.clearElementCache(e)})}triggerLeaveAnimation(e,t,n,r){const s=this._engine.statesByElement.get(e);if(s){const i=[];if(Object.keys(s).forEach(t=>{if(this._triggers[t]){const n=this.trigger(e,t,_t,r);n&&i.push(n)}}),i.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&P(i).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e);if(t){const n=new Set;t.forEach(t=>{const r=t.name;if(n.has(r))return;n.add(r);const s=this._triggers[r].fallbackTransition,i=this._engine.statesByElement.get(e)[r]||wt,o=new vt(_t),a=new Ct(this.id,r,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:r,transition:s,fromState:i,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(e,t){const n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t,!0),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(n.totalAnimations){const t=n.players.length?n.playersByQueriedElement.get(e):[];if(t&&t.length)r=!0;else{let t=e;for(;t=t.parentNode;)if(n.statesByElement.get(t)){r=!0;break}}}this.prepareLeaveAnimationListeners(e),r?n.markElementAsRemoved(this.id,e,!1,t):(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}insertNode(e,t){At(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(n=>{const r=n.player;if(r.destroyed)return;const s=n.element,i=this._elementListeners.get(s);i&&i.forEach(t=>{if(t.name==n.triggerName){const r=D(s,n.triggerName,n.fromState.value,n.toState.value);r._data=e,R(n.player,t.phase,r,t.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(n)}),this._queue=[],t.sort((e,t)=>{const n=e.transition.ast.depCount,r=t.transition.ast.depCount;return 0==n||0==r?n-r:this._engine.driver.containsElement(e.element,t.element)?1:-1})}destroy(e){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),!!this._queue.find(t=>t.element===e)||t}}class Et{constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=((e,t)=>{})}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,t){const n=new St(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){const n=this._namespaceList.length-1;if(n>=0){let r=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,t)){this._namespaceList.splice(s+1,0,e),r=!0;break}r||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++}destroy(e,t){if(!e)return;const n=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[e];const t=this._namespaceList.indexOf(n);t>=0&&this._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(()=>n.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,n=this.statesByElement.get(e);if(n){const e=Object.keys(n);for(let r=0;r<e.length;r++){const s=n[e[r]].namespaceId;if(s){const e=this._fetchNamespace(s);e&&t.add(e)}}}return t}trigger(e,t,n,r){if(xt(t)){const s=this._fetchNamespace(e);if(s)return s.trigger(t,n,r),!0}return!1}insertNode(e,t,n,r){if(!xt(t))return;const s=t[bt];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const e=this.collectedLeaveElements.indexOf(t);e>=0&&this.collectedLeaveElements.splice(e,1)}if(e){const r=this._fetchNamespace(e);r&&r.insertNode(t,n)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),At(e,ht)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),jt(e,ht))}removeNode(e,t,n,r){if(xt(t)){const s=e?this._fetchNamespace(e):null;if(s?s.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),n){const n=this.namespacesByHostElement.get(t);n&&n.id!==e&&n.removeNode(t,r)}}else this._onRemovalComplete(t,r)}markElementAsRemoved(e,t,n,r){this.collectedLeaveElements.push(t),t[bt]={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}}listen(e,t,n,r,s){return xt(t)?this._fetchNamespace(e).listen(t,n,r,s):()=>{}}_buildInstruction(e,t,n,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,re,!0);t.forEach(e=>this.destroyActiveAnimationsForElement(e)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,ie,!0)).forEach(e=>this.finishActiveQueriedAnimationOnElement(e))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(e=>{e.queued?e.markedForDestroy=!0:e.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(e=>e.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return P(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e[bt];if(t&&t.setForRemoval){if(e[bt]=gt,t.namespaceId){this.destroyInnerAnimations(e);const n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}this.driver.matchesElement(e,dt)&&this.markElementAsDisabled(e,!1),this.driver.query(e,dt,!0).forEach(e=>{this.markElementAsDisabled(e,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((e,t)=>this._balanceNamespaceList(e,t)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)At(this.collectedEnterElements[n],pt);if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{t=this._flushAnimations(n,e)}finally{for(let e=0;e<n.length;e++)n[e]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(e=>e()),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],t.length?P(t).onDone(()=>{e.forEach(e=>e())}):e.forEach(e=>e())}}reportError(e){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${e.join("\n")}`)}_flushAnimations(e,t){const n=new Ue,r=[],s=new Map,i=[],o=new Map,a=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(e=>{c.add(e);const t=this.driver.query(e,ut,!0);for(let n=0;n<t.length;n++)c.add(t[n])});const u=this.bodyNode,h=Array.from(this.statesByElement.keys()),d=kt(h,this.collectedEnterElements),p=new Map;let f=0;d.forEach((e,t)=>{const n=ee+f++;p.set(t,n),e.forEach(e=>At(e,n))});const m=[],g=new Set,y=new Set;for(let C=0;C<this.collectedLeaveElements.length;C++){const e=this.collectedLeaveElements[C],t=e[bt];t&&t.setForRemoval&&(m.push(e),g.add(e),t.hasAnimation?this.driver.query(e,ft,!0).forEach(e=>g.add(e)):y.add(e))}const b=new Map,v=kt(h,Array.from(g));v.forEach((e,t)=>{const n=te+f++;b.set(t,n),e.forEach(e=>At(e,n))}),e.push(()=>{d.forEach((e,t)=>{const n=p.get(t);e.forEach(e=>jt(e,n))}),v.forEach((e,t)=>{const n=b.get(t);e.forEach(e=>jt(e,n))}),m.forEach(e=>{this.processLeaveNode(e)})});const _=[],w=[];for(let C=this._namespaceList.length-1;C>=0;C--)this._namespaceList[C].drainQueuedTransitions(t).forEach(e=>{const t=e.player,s=e.element;if(_.push(t),this.collectedEnterElements.length){const e=s[bt];if(e&&e.setForMove)return void t.destroy()}const c=!u||!this.driver.containsElement(u,s),h=b.get(s),d=p.get(s),f=this._buildInstruction(e,n,d,h,c);if(!f.errors||!f.errors.length)return c?(t.onStart(()=>fe(s,f.fromStyles)),t.onDestroy(()=>pe(s,f.toStyles)),void r.push(t)):e.isFallbackTransition?(t.onStart(()=>fe(s,f.fromStyles)),t.onDestroy(()=>pe(s,f.toStyles)),void r.push(t)):(f.timelines.forEach(e=>e.stretchStartingKeyframe=!0),n.append(s,f.timelines),i.push({instruction:f,player:t,element:s}),f.queriedElements.forEach(e=>L(o,e,[]).push(t)),f.preStyleProps.forEach((e,t)=>{const n=Object.keys(e);if(n.length){let e=a.get(t);e||a.set(t,e=new Set),n.forEach(t=>e.add(t))}}),void f.postStyleProps.forEach((e,t)=>{const n=Object.keys(e);let r=l.get(t);r||l.set(t,r=new Set),n.forEach(e=>r.add(e))}));w.push(f)});if(w.length){const e=[];w.forEach(t=>{e.push(`@${t.triggerName} has failed due to:\n`),t.errors.forEach(t=>e.push(`- ${t}\n`))}),_.forEach(e=>e.destroy()),this.reportError(e)}const S=new Map,E=new Map;i.forEach(e=>{const t=e.element;n.has(t)&&(E.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,S))}),r.forEach(e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(e=>{L(S,t,[]).push(e),e.destroy()})});const x=m.filter(e=>Nt(e,a,l)),T=new Map;Ot(T,this.driver,y,l,C).forEach(e=>{Nt(e,a,l)&&x.push(e)});const O=new Map;d.forEach((e,t)=>{Ot(O,this.driver,new Set(e),a,A)}),x.forEach(e=>{const t=T.get(e),n=O.get(e);T.set(e,Object.assign({},t,n))});const k=[],$=[],j={};i.forEach(e=>{const{element:t,player:i,instruction:o}=e;if(n.has(t)){if(c.has(t))return i.onDestroy(()=>pe(t,o.toStyles)),i.disabled=!0,i.overrideTotalTime(o.totalTime),void r.push(i);let e=j;if(E.size>1){let n=t;const r=[];for(;n=n.parentNode;){const t=E.get(n);if(t){e=t;break}r.push(n)}r.forEach(t=>E.set(t,e))}const n=this._buildAnimation(i.namespaceId,o,S,s,O,T);if(i.setRealPlayer(n),e===j)k.push(i);else{const t=this.playersByElement.get(e);t&&t.length&&(i.parentPlayer=P(t)),r.push(i)}}else fe(t,o.fromStyles),i.onDestroy(()=>pe(t,o.toStyles)),$.push(i),c.has(t)&&r.push(i)}),$.forEach(e=>{const t=s.get(e.element);if(t&&t.length){const n=P(t);e.setRealPlayer(n)}}),r.forEach(e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(let C=0;C<m.length;C++){const e=m[C],t=e[bt];if(jt(e,te),t&&t.hasAnimation)continue;let n=[];if(o.size){let t=o.get(e);t&&t.length&&n.push(...t);let r=this.driver.query(e,ie,!0);for(let e=0;e<r.length;e++){let t=o.get(r[e]);t&&t.length&&n.push(...t)}}const r=n.filter(e=>!e.destroyed);r.length?Pt(this,e,r):this.processLeaveNode(e)}return m.length=0,k.forEach(e=>{this.players.push(e),e.onDone(()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)}),e.play()}),k}elementContainsData(e,t){let n=!1;const r=t[bt];return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,r,s){let i=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(i=t)}else{const t=this.playersByElement.get(e);if(t){const e=!s||s==_t;t.forEach(t=>{t.queued||(e||t.triggerName==r)&&i.push(t)})}}return(n||r)&&(i=i.filter(e=>!(n&&n!=e.namespaceId||r&&r!=e.triggerName))),i}_beforeAnimationBuild(e,t,n){const r=t.element,s=t.isRemovalTransition?void 0:e,i=t.isRemovalTransition?void 0:t.triggerName;for(const o of t.timelines){const e=o.element,a=e!==r,l=L(n,e,[]);this._getPreviousPlayers(e,a,s,i,t.toState).forEach(e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),l.push(e)})}fe(r,t.fromStyles)}_buildAnimation(e,t,n,r,s,i){const o=t.triggerName,a=t.element,l=[],c=new Set,u=new Set,h=t.timelines.map(t=>{const h=t.element;c.add(h);const d=h[bt];if(d&&d.removedBeforeQueried)return new k(t.duration,t.delay);const p=h!==a,f=function(e){const t=[];return function e(t,n){for(let r=0;r<t.length;r++){const s=t[r];s instanceof $?e(s.players,n):n.push(s)}}((n.get(h)||mt).map(e=>e.getRealPlayer()),t),t}().filter(e=>!!e.element&&e.element===h),m=s.get(h),g=i.get(h),y=N(0,this._normalizer,0,t.keyframes,m,g),b=this._buildPlayer(t,y,f);if(t.subTimeline&&r&&u.add(h),p){const t=new Ct(e,o,h);t.setRealPlayer(b),l.push(t)}return b});l.forEach(e=>{L(this.playersByQueriedElement,e.element,[]).push(e),e.onDone(()=>(function(e,t,n){let r;if(e instanceof Map){if(r=e.get(t)){if(r.length){const e=r.indexOf(n);r.splice(e,1)}0==r.length&&e.delete(t)}}else if(r=e[t]){if(r.length){const e=r.indexOf(n);r.splice(e,1)}0==r.length&&delete e[t]}return r})(this.playersByQueriedElement,e.element,e))}),c.forEach(e=>At(e,se));const d=P(h);return d.onDestroy(()=>{c.forEach(e=>jt(e,se)),pe(a,t.toStyles)}),u.forEach(e=>{L(r,e,[]).push(d)}),d}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new k(e.duration,e.delay)}}class Ct{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new k,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(n=>R(e,t,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){L(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function xt(e){return e&&1===e.nodeType}function Tt(e,t){const n=e.style.display;return e.style.display=null!=t?t:"none",n}function Ot(e,t,n,r,s){const i=[];n.forEach(e=>i.push(Tt(e)));const o=[];r.forEach((n,r)=>{const i={};n.forEach(e=>{const n=i[e]=t.computeStyle(r,e,s);n&&0!=n.length||(r[bt]=yt,o.push(r))}),e.set(r,i)});let a=0;return n.forEach(e=>Tt(e,i[a++])),o}function kt(e,t){const n=new Map;if(e.forEach(e=>n.set(e,[])),0==t.length)return n;const r=new Set(t),s=new Map;return t.forEach(e=>{const t=function e(t){if(!t)return 1;let i=s.get(t);if(i)return i;const o=t.parentNode;return i=n.has(o)?o:r.has(o)?1:e(o),s.set(t,i),i}(e);1!==t&&n.get(t).push(e)}),n}const $t="$$classes";function At(e,t){if(e.classList)e.classList.add(t);else{let n=e[$t];n||(n=e[$t]={}),n[t]=!0}}function jt(e,t){if(e.classList)e.classList.remove(t);else{let n=e[$t];n&&delete n[t]}}function Pt(e,t,n){P(n).onDone(()=>e.processLeaveNode(t))}function Nt(e,t,n){const r=n.get(e);if(!r)return!1;let s=t.get(e);return s?r.forEach(e=>s.add(e)):t.set(e,r),n.delete(e),!0}class Rt{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=((e,t)=>{}),this._transitionEngine=new Et(e,t,n),this._timelineEngine=new lt(e,t,n),this._transitionEngine.onRemovalComplete=((e,t)=>this.onRemovalComplete(e,t))}registerTrigger(e,t,n,r,s){const i=e+"-"+r;let o=this._triggerCache[i];if(!o){const e=[],t=Ne(this._driver,s,e);if(e.length)throw new Error(`The animation trigger "${r}" has failed to build due to the following errors:\n - ${e.join("\n - ")}`);o=function(e,t){return new it(e,t)}(r,t),this._triggerCache[i]=o}this._transitionEngine.registerTrigger(t,r,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,r){this._transitionEngine.insertNode(e,t,n,r)}onRemove(e,t,n,r){this._transitionEngine.removeNode(e,t,r||!1,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,r){if("@"==n.charAt(0)){const[e,s]=M(n);this._timelineEngine.command(e,t,s,r)}else this._transitionEngine.trigger(e,t,n,r)}listen(e,t,n,r,s){if("@"==n.charAt(0)){const[e,r]=M(n);return this._timelineEngine.listen(e,t,r,s)}return this._transitionEngine.listen(e,t,n,r,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function It(e,t){let n=null,r=null;return Array.isArray(t)&&t.length?(n=Lt(t[0]),t.length>1&&(r=Lt(t[t.length-1]))):t&&(n=Lt(t)),n||r?new Dt(e,n,r):null}const Dt=(()=>{class e{constructor(t,n,r){this._element=t,this._startStyles=n,this._endStyles=r,this._state=0;let s=e.initialStylesByElement.get(t);s||e.initialStylesByElement.set(t,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&pe(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(pe(this._element,this._initialStyles),this._endStyles&&(pe(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(fe(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(fe(this._element,this._endStyles),this._endStyles=null),pe(this._element,this._initialStyles),this._state=3)}}return e.initialStylesByElement=new WeakMap,e})();function Lt(e){let t=null;const n=Object.keys(e);for(let r=0;r<n.length;r++){const s=n[r];Mt(s)&&((t=t||{})[s]=e[s])}return t}function Mt(e){return"display"===e||"position"===e}const Ft=3,Vt="animation",Ut="animationend",zt=1e3;class Ht{constructor(e,t,n,r,s,i,o){this._element=e,this._name=t,this._duration=n,this._delay=r,this._easing=s,this._fillMode=i,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=(e=>this._handleCallback(e))}apply(){!function(e,t){const n=Kt(e,"").trim();n.length&&(function(e,t){let n=0;for(let r=0;r<e.length;r++)","===e.charAt(r)&&n++}(n),t=`${n}, ${t}`),Qt(e,"",t)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),Wt(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){qt(this._element,this._name,"paused")}resume(){qt(this._element,this._name,"running")}setPosition(e){const t=Bt(this._element,this._name);this._position=e*this._duration,Qt(this._element,"Delay",`-${this._position}ms`,t)}getPosition(){return this._position}_handleCallback(e){const t=e._ngTestManualTimestamp||Date.now(),n=parseFloat(e.elapsedTime.toFixed(Ft))*zt;e.animationName==this._name&&Math.max(t-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Wt(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){const n=Kt(e,"").split(","),r=Gt(n,t);r>=0&&(n.splice(r,1),Qt(e,"",n.join(",")))}(this._element,this._name))}}function qt(e,t,n){Qt(e,"PlayState",n,Bt(e,t))}function Bt(e,t){const n=Kt(e,"");return n.indexOf(",")>0?Gt(n.split(","),t):Gt([n],t)}function Gt(e,t){for(let n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function Wt(e,t,n){n?e.removeEventListener(Ut,t):e.addEventListener(Ut,t)}function Qt(e,t,n,r){const s=Vt+t;if(null!=r){const t=e.style[s];if(t.length){const e=t.split(",");e[r]=n,n=e.join(",")}}e.style[s]=n}function Kt(e,t){return e.style[Vt+t]}const Zt="forwards",Yt="linear";class Xt{constructor(e,t,n,r,s,i,o,a){this.element=e,this.keyframes=t,this.animationName=n,this._duration=r,this._delay=s,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=i||Yt,this.totalTime=r+s,this._buildStyler()}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(e){this._styler.setPosition(e)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Ht(this.element,this.animationName,this._duration,this._delay,this.easing,Zt,()=>this.finish())}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}beforeDestroy(){this.init();const e={};if(this.hasStarted()){const t=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(e[n]=t?this._finalStyles[n]:xe(this.element,n))})}this.currentSnapshot=e}}class Jt extends k{constructor(e,t){super(),this.element=e,this._startingStyles={},this.__initialized=!1,this._styles=K(t)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(e=>{this._startingStyles[e]=this.element.style[e]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(e=>this.element.style.setProperty(e,this._styles[e])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(e=>{const t=this._startingStyles[e];t?this.element.style.setProperty(e,t):this.element.style.removeProperty(e)}),this._startingStyles=null,super.destroy())}}const en="gen_css_kf_",tn=" ";class nn{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(e){return B(e)}matchesElement(e,t){return G(e,t)}containsElement(e,t){return W(e,t)}query(e,t,n){return Q(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}buildKeyframeElement(e,t,n){n=n.map(e=>K(e));let r=`@keyframes ${t} {\n`,s="";n.forEach(e=>{s=tn;const t=parseFloat(e.offset);r+=`${s}${100*t}% {\n`,s+=tn,Object.keys(e).forEach(t=>{const n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(r+=`${s}animation-timing-function: ${n};\n`));default:return void(r+=`${s}${t}: ${n};\n`)}}),r+=`${s}}\n`}),r+="}\n";const i=document.createElement("style");return i.innerHTML=r,i}animate(e,t,n,r,s,i=[],o){o&&this._notifyFaultyScrubber();const a=i.filter(e=>e instanceof Xt),l={};Se(n,r)&&a.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const c=function(e){let t={};return e&&(Array.isArray(e)?e:[e]).forEach(e=>{Object.keys(e).forEach(n=>{"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=Ee(e,t,l));if(0==n)return new Jt(e,c);const u=`${en}${this._count++}`,h=this.buildKeyframeElement(e,u,t);document.querySelector("head").appendChild(h);const d=It(e,t),p=new Xt(e,t,u,n,r,s,c,d);return p.onDestroy(()=>(function(e){h.parentNode.removeChild(h)})()),p}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class rn{constructor(e,t,n,r){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,n){return e.animate(t,n)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(t=>{"offset"!=t&&(e[t]=this._finished?this._finalKeyframe[t]:xe(this.element,t))}),this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class sn{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(on().toString()),this._cssKeyframesDriver=new nn}validateStyleProperty(e){return B(e)}matchesElement(e,t){return G(e,t)}containsElement(e,t){return W(e,t)}query(e,t,n){return Q(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}overrideWebAnimationsSupport(e){this._isNativeImpl=e}animate(e,t,n,r,s,i=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,r,s,i);const a={duration:n,delay:r,fill:0==r?"both":"forwards"};s&&(a.easing=s);const l={},c=i.filter(e=>e instanceof rn);Se(n,r)&&c.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const u=It(e,t=Ee(e,t=t.map(e=>ue(e,!1)),l));return new rn(e,t,a,u)}}function on(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}const an=(()=>(class extends S{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:r.O.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(e)?x(e):e;return un(this._renderer,null,t,"register",[n]),new ln(t,this._renderer)}}))();class ln extends E{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new cn(this._id,e,t||{},this._renderer)}}class cn{constructor(e,t,n,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return un(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(e){this._command("setPosition",e)}getPosition(){return 0}}function un(e,t,n,r,s){return e.setProperty(t,`@@${n}:${r}`,s)}const hn="@",dn="@.disabled",pn=(()=>(class{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=((e,t)=>{t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)})}createRenderer(e,t){const n=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let e=this._rendererCache.get(n);return e||(e=new fn("",n,this.engine),this._rendererCache.set(n,e)),e}const r=t.id,s=t.id+"-"+this._currentId;return this._currentId++,this.engine.register(s,e),t.data.animation.forEach(t=>this.engine.registerTrigger(r,s,e,t.name,t)),new mn(this,s,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){e>=0&&e<this._microtaskId?this._zone.run(()=>t(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(e=>{const[t,n]=e;t(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}))();class fn{constructor(e,t,n){this.namespaceId=e,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?e=>t.destroyNode(e):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,!0)}removeChild(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,r){this.delegate.setAttribute(e,t,n,r)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,r){this.delegate.setStyle(e,t,n,r)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==hn&&t==dn?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class mn extends fn{constructor(e,t,n,r){super(t,n,r),this.factory=e,this.namespaceId=t}setProperty(e,t,n){t.charAt(0)==hn?"."==t.charAt(1)&&t==dn?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if(t.charAt(0)==hn){const r=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e);let s=t.substr(1),i="";return s.charAt(0)!=hn&&([s,i]=function(e){const t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}(s)),this.engine.listen(this.namespaceId,r,s,i,e=>{this.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}const gn=(()=>(class extends Rt{constructor(e,t,n){super(e.body,t,n)}}))();function yn(){return"function"==typeof on()?new sn:new nn}function bn(){return new Je}function vn(e,t,n){return new pn(e,t,n)}const _n=new r.p("AnimationModuleType"),wn=(()=>(class{}))();var Sn=n("ZZ/e"),En=n("s7LF");const Cn=(()=>{class e{constructor(e,t){this.storageService=e,this.router=t}canActivate(){return new Promise(e=>{this.storageService.get(c.a.AUTH).then(t=>{t?e(!0):(this.router.navigate(["login"]),e(!1))}).catch(t=>{e(!1)})})}}return e.ngInjectableDef=r.Jb({factory:function(){return new e(r.Nb(a.a),r.Nb(p.m))},token:e,providedIn:"root"}),e})();var xn=n("TSSN");class Tn{constructor(e,t="/assets/i18n/",n=".json"){this.http=e,this.prefix=t,this.suffix=n}getTranslation(e){return this.http.get(`${this.prefix}${e}${this.suffix}`)}}function On(e){return new Tn(e)}class kn{constructor(e){this.translate=e,this.translate.addLangs(["en","fr","ur","es","it","fa","de","zh-CHS"]),this.translate.setDefaultLang("en");const t=this.translate.getBrowserLang();this.translate.use(t.match(/en|fr|ur|es|it|fa|de|zh-CHS/)?t:"en")}}const $n=()=>Promise.all([n.e(2),n.e(18)]).then(n.bind(null,"sY8R")).then(e=>e.IntroductionModuleNgFactory),An=()=>n.e(15).then(n.bind(null,"/cdV")).then(e=>e.LayoutModuleNgFactory),jn=()=>n.e(22).then(n.bind(null,"f+ep")).then(e=>e.LoginModuleNgFactory),Pn=()=>n.e(25).then(n.bind(null,"mH0F")).then(e=>e.SignupModuleNgFactory),Nn=()=>n.e(24).then(n.bind(null,"+g98")).then(e=>e.ServerErrorModuleNgFactory),Rn=()=>n.e(17).then(n.bind(null,"iUTe")).then(e=>e.AccessDeniedModuleNgFactory),In=()=>n.e(23).then(n.bind(null,"Ec8W")).then(e=>e.NotFoundModuleNgFactory);class Dn{}var Ln=r.nb(i,[h],function(e){return r.xb([r.yb(512,r.j,r.ab,[[8,[d.a,y]],[3,r.j],r.w]),r.yb(4608,b.j,b.p,[v.c,r.A,b.n]),r.yb(4608,b.q,b.q,[b.j,b.o]),r.yb(5120,b.a,function(e,t){return[e,new _(t)]},[b.q,a.a]),r.yb(5120,r.t,r.kb,[[3,r.t]]),r.yb(4608,v.l,v.k,[r.t,[2,v.x]]),r.yb(5120,r.gb,r.lb,[r.y]),r.yb(5120,r.c,r.hb,[]),r.yb(5120,r.r,r.ib,[]),r.yb(5120,r.s,r.jb,[]),r.yb(4608,w.b,w.k,[v.c]),r.yb(6144,r.F,null,[w.b]),r.yb(4608,w.e,w.g,[]),r.yb(5120,w.c,function(e,t,n,r,s,i,o,a){return[new w.i(e,t,n),new w.n(r),new w.m(s,i,o,a)]},[v.c,r.y,r.A,v.c,v.c,w.e,r.bb,[2,w.f]]),r.yb(4608,w.d,w.d,[w.c,r.y]),r.yb(135680,w.l,w.l,[v.c]),r.yb(4608,w.j,w.j,[w.d,w.l,r.c]),r.yb(5120,Y,yn,[]),r.yb(5120,Xe,bn,[]),r.yb(4608,Rt,gn,[v.c,Y,Xe]),r.yb(5120,r.D,vn,[w.j,Rt,r.y]),r.yb(6144,w.o,null,[w.l]),r.yb(4608,r.L,r.L,[r.y]),r.yb(4608,S,an,[r.D,v.c]),r.yb(5120,p.a,p.B,[p.m]),r.yb(4608,p.e,p.e,[]),r.yb(6144,p.h,null,[p.e]),r.yb(135680,p.s,p.s,[p.m,r.v,r.i,r.q,p.h]),r.yb(4608,p.g,p.g,[]),r.yb(5120,p.G,p.x,[p.m,v.q,p.i]),r.yb(5120,p.j,p.E,[p.C]),r.yb(5120,r.b,function(e){return[e]},[p.j]),r.yb(4608,Sn.a,Sn.a,[r.y,r.g]),r.yb(4608,Sn.c,Sn.c,[Sn.a,r.j,r.q]),r.yb(4608,Sn.d,Sn.d,[Sn.a,r.j,r.q]),r.yb(4608,En.q,En.q,[]),r.yb(4608,Cn,Cn,[a.a,p.m]),r.yb(1073742336,b.e,b.e,[]),r.yb(1073742336,b.d,b.d,[]),r.yb(1073742336,v.b,v.b,[]),r.yb(1024,r.l,w.p,[]),r.yb(1024,r.x,function(){return[p.w()]},[]),r.yb(512,p.C,p.C,[r.q]),r.yb(256,Sn.f,void 0,[]),r.yb(1024,r.d,function(e,t,n,r,s){return[w.q(e),p.D(t),Sn.g(n,r,s)]},[[2,r.x],p.C,Sn.f,v.c,r.y]),r.yb(512,r.e,r.e,[[2,r.d]]),r.yb(131584,r.g,r.g,[r.y,r.bb,r.q,r.l,r.j,r.e]),r.yb(1073742336,r.f,r.f,[r.g]),r.yb(1073742336,w.a,w.a,[[3,w.a]]),r.yb(1073742336,wn,wn,[]),r.yb(1073742336,xn.g,xn.g,[]),r.yb(512,xn.j,xn.j,[]),r.yb(512,b.m,b.m,[]),r.yb(2048,b.k,null,[b.m]),r.yb(512,b.i,b.i,[b.k]),r.yb(2048,b.b,null,[b.i]),r.yb(512,b.f,b.l,[b.b,r.q]),r.yb(512,b.c,b.c,[b.f]),r.yb(1024,xn.f,On,[b.c]),r.yb(512,xn.c,xn.e,[]),r.yb(512,xn.h,xn.d,[]),r.yb(512,xn.b,xn.a,[]),r.yb(256,xn.k,void 0,[]),r.yb(256,xn.l,void 0,[]),r.yb(512,xn.i,xn.i,[xn.j,xn.f,xn.c,xn.h,xn.b,xn.k,xn.l]),r.yb(1073742336,kn,kn,[xn.i]),r.yb(1024,p.v,p.z,[[3,p.m]]),r.yb(512,p.u,p.c,[]),r.yb(512,p.b,p.b,[]),r.yb(256,p.i,{},[]),r.yb(1024,v.h,p.y,[v.o,[2,v.a],p.i]),r.yb(512,v.g,v.g,[v.h,v.o]),r.yb(512,r.i,r.i,[]),r.yb(512,r.v,r.I,[r.i,[2,r.J]]),r.yb(1024,p.k,function(){return[[{path:"",loadChildren:$n},{path:"",loadChildren:An},{path:"login",loadChildren:jn},{path:"signup",loadChildren:Pn},{path:"error",loadChildren:Nn},{path:"access-denied",loadChildren:Rn},{path:"not-found",loadChildren:In},{path:"**",redirectTo:"not-found"}]]},[]),r.yb(1024,p.m,p.A,[r.g,p.u,p.b,v.g,r.q,r.v,r.i,p.k,p.i,[2,p.t],[2,p.l]]),r.yb(1073742336,p.q,p.q,[[2,p.v],[2,p.m]]),r.yb(1073742336,Dn,Dn,[]),r.yb(1073742336,Sn.b,Sn.b,[]),r.yb(1073742336,En.p,En.p,[]),r.yb(1073742336,En.d,En.d,[]),r.yb(1073742336,i,i,[]),r.yb(256,b.n,"XSRF-TOKEN",[]),r.yb(256,b.o,"X-XSRF-TOKEN",[]),r.yb(256,r.Z,!0,[]),r.yb(256,_n,"BrowserAnimations",[])])});s.a.production&&Object(r.S)(),w.h().bootstrapModuleFactory(Ln).catch(e=>console.error(e))},zn8P:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,1]]]);
511,425
511,425
0.705928
b01351d4405c06f1d8dafbf90fcb0046051bc563
496
kt
Kotlin
app/src/main/java/com/loop/ideas/apps/androidblog01/data/mapper/UserLocalMapper.kt
LOOPIDEAS/Android-Blog-01
a38ffbe958734d406f65a8a5b15b06c085317e65
[ "Apache-2.0" ]
null
null
null
app/src/main/java/com/loop/ideas/apps/androidblog01/data/mapper/UserLocalMapper.kt
LOOPIDEAS/Android-Blog-01
a38ffbe958734d406f65a8a5b15b06c085317e65
[ "Apache-2.0" ]
null
null
null
app/src/main/java/com/loop/ideas/apps/androidblog01/data/mapper/UserLocalMapper.kt
LOOPIDEAS/Android-Blog-01
a38ffbe958734d406f65a8a5b15b06c085317e65
[ "Apache-2.0" ]
null
null
null
package com.loop.ideas.apps.androidblog01.data.mapper import com.loop.ideas.apps.androidblog01.data.model.UserLocal import com.loop.ideas.apps.androidblog01.domain.model.UserDomain /* * Created by Christopher Elias on 24/06/2020. * christopher.elias@loop-ideas.com * * Loop Ideas * Lima, Peru. */ interface UserLocalMapper { suspend fun mapLocalUserToDomain(localUser: UserLocal) : UserDomain suspend fun mapLocalUsersToDomain(localUsers: List<UserLocal>) : List<UserDomain> }
26.105263
85
0.77621
0642bde812575ead960d71eb10a8037529b3919e
3,765
swift
Swift
test/Sema/substring_to_string_conversion_swift4.swift
francisvm/swift
15e209ea2fde679ee78438d4ba949144acb7fee4
[ "Apache-2.0" ]
3
2018-07-27T01:54:17.000Z
2020-10-21T16:09:43.000Z
test/Sema/substring_to_string_conversion_swift4.swift
francisvm/swift
15e209ea2fde679ee78438d4ba949144acb7fee4
[ "Apache-2.0" ]
153
2018-01-21T15:24:47.000Z
2018-09-13T12:46:16.000Z
test/Sema/substring_to_string_conversion_swift4.swift
francisvm/swift
15e209ea2fde679ee78438d4ba949144acb7fee4
[ "Apache-2.0" ]
11
2017-12-13T08:08:15.000Z
2019-06-18T14:27:32.000Z
// RUN: %target-swift-frontend -typecheck -verify -swift-version 4 %s let s = "Hello" let ss = s[s.startIndex..<s.endIndex] // CTP_Initialization do { let s1: String = { return ss }() // expected-error {{cannot convert value of type 'Substring' to specified type 'String'}} {{20-20=String(}} {{35-35=)}} _ = s1 } // CTP_ReturnStmt do { func returnsAString() -> String { return ss // expected-error {{cannot convert return expression of type 'Substring' to return type 'String'}} {{12-12=String(}} {{14-14=)}} } } // CTP_ThrowStmt // Doesn't really make sense for this fix-it - see case in diagnoseContextualConversionError: // The conversion destination of throw is always ErrorType (at the moment) // if this ever expands, this should be a specific form like () is for // return. // CTP_EnumCaseRawValue // Substrings can't be raw values because they aren't literals. // CTP_DefaultParameter do { func foo(x: String = ss) {} // expected-error {{default argument value of type 'Substring' cannot be converted to type 'String'}} {{24-24=String(}} {{26-26=)}} } // CTP_CalleeResult do { func getSubstring() -> Substring { return ss } let gottenString : String = getSubstring() // expected-error {{cannot convert value of type 'Substring' to specified type 'String'}} {{31-31=String(}} {{45-45=)}} _ = gottenString } // CTP_CallArgument do { func takesAString(_ s: String) {} takesAString(ss) // expected-error {{cannot convert value of type 'Substring' to expected argument type 'String'}} {{16-16=String(}} {{18-18=)}} } // CTP_ClosureResult do { [ss].map { (x: Substring) -> String in x } // expected-error {{cannot convert value of type 'Substring' to closure result type 'String'}} {{42-42=String(}} {{43-43=)}} } // CTP_ArrayElement do { let a: [String] = [ ss ] // expected-error {{cannot convert value of type 'Substring' to expected element type 'String'}} {{23-23=String(}} {{25-25=)}} _ = a } // CTP_DictionaryKey do { let d: [ String : String ] = [ ss : s ] // expected-error {{cannot convert value of type 'Substring' to expected dictionary key type 'String'}} {{34-34=String(}} {{36-36=)}} _ = d } // CTP_DictionaryValue do { let d: [ String : String ] = [ s : ss ] // expected-error {{cannot convert value of type 'Substring' to expected dictionary value type 'String'}} {{38-38=String(}} {{40-40=)}} _ = d } // CTP_CoerceOperand do { let s1: String = ss as String // expected-error {{cannot convert value of type 'Substring' to type 'String' in coercion}} {{20-20=String(}} {{22-22=)}} _ = s1 } // CTP_AssignSource do { let s1: String = ss // expected-error {{cannot convert value of type 'Substring' to specified type 'String'}} {{20-20=String(}} {{22-22=)}} _ = s1 } // Substring-to-String via subscripting in a context expecting String func takesString(_ s: String) {} func apply(_ fn: (String) -> (), _ s: String) { fn(s[s.startIndex..<s.endIndex]) // expected-error{{subscripts returning String were obsoleted in Swift 4; explicitly construct a String from subscripted result}} {{6-6=String(}} {{34-34=)}} let _: String = s[s.startIndex..<s.endIndex] // expected-error{{subscripts returning String were obsoleted in Swift 4; explicitly construct a String from subscripted result}} {{19-19=String(}} {{47-47=)}} _ = s[s.startIndex..<s.endIndex] as String // expected-error{{subscripts returning String were obsoleted in Swift 4; explicitly construct a String from subscripted result}} {{7-7=String(}} {{35-35=)}} } // rdar://33474838 protocol Derivable { func derive() -> Substring } func foo<T: Derivable>(t: T) -> String { return t.derive() // expected-error {{cannot convert return expression of type 'Substring' to return type 'String'}} {{10-10=String(}} {{20-20=)}} }
38.814433
206
0.67676
2c4720ea373565179adb8a896e9b881df6c96a6c
4,927
sql
SQL
database/pustaka.sql
Adhityayoga11/adhitxx
35f7d1aba45376a7b7810e106a01f0b3dc0a0e20
[ "MIT" ]
null
null
null
database/pustaka.sql
Adhityayoga11/adhitxx
35f7d1aba45376a7b7810e106a01f0b3dc0a0e20
[ "MIT" ]
null
null
null
database/pustaka.sql
Adhityayoga11/adhitxx
35f7d1aba45376a7b7810e106a01f0b3dc0a0e20
[ "MIT" ]
null
null
null
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 13 Apr 2022 pada 17.59 -- Versi server: 10.4.11-MariaDB -- Versi PHP: 7.2.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `pustaka` -- -- -------------------------------------------------------- -- -- Struktur dari tabel `buku` -- CREATE TABLE `buku` ( `id` int(11) NOT NULL, `judul_buku` varchar(128) NOT NULL, `id_kategori` int(11) NOT NULL, `pengarang` varchar(64) NOT NULL, `penerbit` varchar(64) NOT NULL, `tahun_terbit` year(4) NOT NULL, `isbn` varchar(64) NOT NULL, `stok` int(11) NOT NULL, `dipinjam` int(11) NOT NULL, `dibooking` int(11) NOT NULL, `image` varchar(256) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `buku` -- INSERT INTO `buku` (`id`, `judul_buku`, `id_kategori`, `pengarang`, `penerbit`, `tahun_terbit`, `isbn`, `stok`, `dipinjam`, `dibooking`, `image`) VALUES (1, 'Statistika dengan Program Komputer', 1, 'Ahmad Kholiqul Amin', 'Deep Publish', 2014, '9786022809432', 6, 1, 1, 'img1557402455.jpg'), (2, 'Mudah Belajar Komputer Untuk anak', 1, 'Bambang Agus Setiawan', 'Huta Media', 2014, '9786025118500', 5, 3, 1, 'img1557402397.jpg'), (5, 'Php komplet', 1, 'Jubilee', 'Alex media Komputindo', 2017, '8346753547', 5, 1, 1, 'img1555522493.jpg'), (10, 'Detektif conan EP 200', 9, 'Okigawa sasuke', 'Cultura', 2016, '874387583987', 5, 0, 0, 'img1557401465.jpg'), (14, 'Bahasa Indonesia', 2, 'Umri Nur\'aini dan Indriyani', 'pusat perbukuan', 2015, '757254724884', 3, 0, 0, 'img1557403156.jpg'), (15, 'Komunikasi lintas budaya', 5, 'Dr Dedy Kumia', 'Published', 2015, '878674646488', 5, 0, 0, 'img1557403156.jpg'), (16, 'Kolaborasi Codeigniter dan ajax dalam perancangan', 1, 'Anton subagia', 'alex media komputindo', 2017, '43345356577', 5, 0, 0, 'img157403502.jpg'), (17, 'From hobby to money', 4, 'Deasylawati', 'alex media komputindo', 2015, '87968686787879', 5, 0, 0, 'img157403658.jpg'), (18, 'Buku saku pramuka', 8, 'Rudi hirmawan', 'Pusat perbukuan', 2016, '97868687978796', 6, 0, 0, 'img157404613.jpg'), (19, 'Rahasia Keajaiban Bumi', 3, 'Nurul Ihsan', 'Luxima', 2014, '565756565768868', 5, 0, 0, 'img157404689.jpg'); -- -------------------------------------------------------- -- -- Struktur dari tabel `kategori` -- CREATE TABLE `kategori` ( `id_kategori` int(11) NOT NULL, `nama_kategori` varchar(110) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `kategori` -- INSERT INTO `kategori` (`id_kategori`, `nama_kategori`) VALUES (1, 'komputer'), (2, 'bahasa'), (3, 'sains'), (4, 'hobby'), (5, 'komunikasi'), (6, 'hukum'), (7, 'agama'), (8, 'populer'), (9, 'komik'); -- -------------------------------------------------------- -- -- Struktur dari tabel `role` -- CREATE TABLE `role` ( `id` int(11) NOT NULL, `role` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `role` -- INSERT INTO `role` (`id`, `role`) VALUES (1, 'admministrator'), (2, 'member'); -- -------------------------------------------------------- -- -- Struktur dari tabel `user` -- CREATE TABLE `user` ( `id` int(11) NOT NULL, `nama` varchar(100) NOT NULL, `email` varchar(100) NOT NULL, `image` varchar(100) NOT NULL, `password` varchar(100) NOT NULL, `role_id` int(11) NOT NULL, `is_active` int(11) NOT NULL, `tanggal_input` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Indexes for dumped tables -- -- -- Indeks untuk tabel `buku` -- ALTER TABLE `buku` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `kategori` -- ALTER TABLE `kategori` ADD PRIMARY KEY (`id_kategori`); -- -- Indeks untuk tabel `role` -- ALTER TABLE `role` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT untuk tabel yang dibuang -- -- -- AUTO_INCREMENT untuk tabel `buku` -- ALTER TABLE `buku` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20; -- -- AUTO_INCREMENT untuk tabel `kategori` -- ALTER TABLE `kategori` MODIFY `id_kategori` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- AUTO_INCREMENT untuk tabel `role` -- ALTER TABLE `role` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT untuk tabel `user` -- ALTER TABLE `user` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
26.923497
153
0.644814
92436c4904e9837d2a84c033b416f3286872bc98
513
sql
SQL
migrations/20210322152449_create_object.sql
provenance-io/object-store
212673aeaa02215cb0eb1554170861b0b99d93dc
[ "Apache-2.0" ]
null
null
null
migrations/20210322152449_create_object.sql
provenance-io/object-store
212673aeaa02215cb0eb1554170861b0b99d93dc
[ "Apache-2.0" ]
12
2021-07-21T15:28:27.000Z
2022-01-06T16:48:37.000Z
migrations/20210322152449_create_object.sql
provenance-io/object-store
212673aeaa02215cb0eb1554170861b0b99d93dc
[ "Apache-2.0" ]
null
null
null
CREATE TABLE object ( uuid UUID NOT NULL PRIMARY KEY, hash TEXT NOT NULL, unique_hash TEXT NOT NULL, content_length BIGINT NOT NULL, dime_length BIGINT NOT NULL, directory TEXT NOT NULL DEFAULT to_char(current_date, 'YYYYMMDD'), name TEXT NOT NULL, payload BYTEA, created_at TIMESTAMPTZ NOT NULL DEFAULT NOW() ); CREATE UNIQUE INDEX object_unique_hash_idx ON object (unique_hash); ALTER TABLE object ADD CONSTRAINT unique_hash_cnst UNIQUE USING INDEX object_unique_hash_idx;
30.176471
93
0.760234
04ba4e9692e330f9de40bf6cb213f0c11aac1c07
3,213
java
Java
dynatrace/src/main/java/de/tsystems/mms/apm/performancesignature/dynatracesaas/rest/model/EventSeverity.java
batmat/performance-signature-dynatrace-plugin
651597ee4d096a79b5a0a5d71718f090170275e1
[ "Apache-2.0" ]
4
2015-10-13T13:27:44.000Z
2017-11-23T06:49:23.000Z
dynatrace/src/main/java/de/tsystems/mms/apm/performancesignature/dynatracesaas/rest/model/EventSeverity.java
batmat/performance-signature-dynatrace-plugin
651597ee4d096a79b5a0a5d71718f090170275e1
[ "Apache-2.0" ]
52
2020-12-22T06:24:22.000Z
2022-03-31T05:06:56.000Z
dynatrace/src/main/java/de/tsystems/mms/apm/performancesignature/dynatracesaas/rest/model/EventSeverity.java
batmat/performance-signature-dynatrace-plugin
651597ee4d096a79b5a0a5d71718f090170275e1
[ "Apache-2.0" ]
2
2016-02-10T14:54:17.000Z
2016-02-21T15:31:04.000Z
/* * Copyright (c) 2014-2018 T-Systems Multimedia Solutions GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* * Dynatrace Environment API * Documentation of the Dynatrace REST API. Refer to the [help page](https://www.dynatrace.com/support/help/shortlink/section-api) to read about use-cases and examples. * * OpenAPI spec version: 1.0 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ package de.tsystems.mms.apm.performancesignature.dynatracesaas.rest.model; import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import static de.tsystems.mms.apm.performancesignature.ui.util.PerfSigUIUtils.toIndentedString; /** * Additional data on the event severity. */ @ApiModel(description = "Additional data on the event severity.") public class EventSeverity { @SerializedName("context") private ContextEnum context; @SerializedName("value") private Double value; @SerializedName("unit") private UnitEnum unit; public EventSeverity context(ContextEnum context) { this.context = context; return this; } /** * The metric used in the event severity calculation. * * @return context **/ @ApiModelProperty(value = "The metric used in the event severity calculation.") public ContextEnum getContext() { return context; } public void setContext(ContextEnum context) { this.context = context; } public EventSeverity value(Double value) { this.value = value; return this; } /** * The value of the severity. * * @return value **/ @ApiModelProperty(value = "The value of the severity.") public Double getValue() { return value; } public void setValue(Double value) { this.value = value; } public EventSeverity unit(UnitEnum unit) { this.unit = unit; return this; } /** * The unit of the severity value. * * @return unit **/ @ApiModelProperty(value = "The unit of the severity value.") public UnitEnum getUnit() { return unit; } public void setUnit(UnitEnum unit) { this.unit = unit; } @Override public String toString() { return "class EventSeverity {\n" + " context: " + toIndentedString(context) + "\n" + " value: " + toIndentedString(value) + "\n" + " unit: " + toIndentedString(unit) + "\n" + "}"; } }
27.228814
168
0.653906
7b9f1b71fc50907d76f53a0e70e5b2c0ad8b4cf8
433
swift
Swift
Sources/PathLib/FileManager+Extensions.swift
antigp/Emcee
62778f307872378db180f401f107821c77f2bf14
[ "MIT" ]
null
null
null
Sources/PathLib/FileManager+Extensions.swift
antigp/Emcee
62778f307872378db180f401f107821c77f2bf14
[ "MIT" ]
null
null
null
Sources/PathLib/FileManager+Extensions.swift
antigp/Emcee
62778f307872378db180f401f107821c77f2bf14
[ "MIT" ]
null
null
null
import Foundation public extension FileManager { func createDirectory( atPath path: AbsolutePath, withIntermediateDirectories: Bool = true ) throws { try createDirectory( atPath: path.pathString, withIntermediateDirectories: withIntermediateDirectories ) } var currentAbsolutePath: AbsolutePath { return AbsolutePath(currentDirectoryPath) } }
24.055556
68
0.665127
4589d1e7930faa9ff64661fbed809d159a08e5a4
463
dart
Dart
lib/entity/persion_entity.dart
strategists/flutter_demo
ed8447e2f6eaf3a6f7a94bde22b8af7b2de8fb5c
[ "Apache-2.0" ]
null
null
null
lib/entity/persion_entity.dart
strategists/flutter_demo
ed8447e2f6eaf3a6f7a94bde22b8af7b2de8fb5c
[ "Apache-2.0" ]
null
null
null
lib/entity/persion_entity.dart
strategists/flutter_demo
ed8447e2f6eaf3a6f7a94bde22b8af7b2de8fb5c
[ "Apache-2.0" ]
null
null
null
class PersonEntity { String height; String gender; String name; PersonEntity({this.height, this.gender, this.name}); PersonEntity.fromJson(Map<String, dynamic> json) { height = json['height']; gender = json['gender']; name = json['name']; } Map<String, dynamic> toJson() { final Map<String, dynamic> data = new Map<String, dynamic>(); data['high'] = this.height; data['gender'] = this.gender; data['name'] = this.name; return data; } }
21.045455
63
0.658747
511ed406e2c63a3cd32a468436b90e4f91122d29
8,366
swift
Swift
FlixMovieApp/ViewControllers/PageView/InitialReviewViewController.swift
mistersquiish/FlixMovieApp
eff383f5dc104cf4e109953a952149a7c9200a49
[ "Apache-2.0" ]
null
null
null
FlixMovieApp/ViewControllers/PageView/InitialReviewViewController.swift
mistersquiish/FlixMovieApp
eff383f5dc104cf4e109953a952149a7c9200a49
[ "Apache-2.0" ]
1
2018-02-13T10:30:27.000Z
2018-02-20T13:16:39.000Z
FlixMovieApp/ViewControllers/PageView/InitialReviewViewController.swift
mistersquiish/FlixPart1Assignment1
eff383f5dc104cf4e109953a952149a7c9200a49
[ "Apache-2.0" ]
null
null
null
// // InitialReviewViewController.swift // MovieLemma // // Created by Henry Vuong on 8/22/19. // Copyright © 2019 Henry Vuong. All rights reserved. // import UIKit import AlamofireImage import Firebase class InitialReviewViewController: UIViewController, didRate { @IBOutlet weak var contentView: UIView! @IBOutlet weak var continueButtonOutlet: UIButton! var movies: [Movie] = [] var reviews: [Review] = [] var currentViewControllerIndex = 0 var db: Firestore! var currentUser: User! override func viewDidLoad() { super.viewDidLoad() configurePageViewController() // get current user currentUser = Auth.auth().currentUser // UI continueButtonOutlet.alpha = 0 contentView.backgroundColor = ColorScheme.grayColor2 view.backgroundColor = ColorScheme.grayColor2 continueButtonOutlet.layer.masksToBounds = false continueButtonOutlet.layer.cornerRadius = 12 continueButtonOutlet.clipsToBounds = true continueButtonOutlet.backgroundColor = ColorScheme.goldColor continueButtonOutlet.setTitleColor( UIColor.white, for: .normal) } @IBAction func continueButton(_ sender: Any) { // save all the reviews to database for review in reviews { let df = DateFormatter() df.dateFormat = "yyyy-MM-dd" var posterUrl = review.movie.posterUrl?.absoluteString posterUrl = String((posterUrl?.dropFirst(31))!) var backdropUrl = review.movie.backdropUrl?.absoluteString backdropUrl = String((backdropUrl?.dropFirst(31))!) var ref: DocumentReference? = nil ref = db.collection("reviews").addDocument(data: [ "user_id": "\(currentUser.uid)", "user_email": "\(String(describing: currentUser.email!))", "movie": [ "title": review.movie.title!, "id": review.movie.movieId!, "overview": review.movie.overview!, "poster_path": posterUrl!, "release_date": df.string(from: review.movie.releaseDate!), "backdrop_path": backdropUrl!, "vote_average": review.movie.voteAverage!, "vote_count": review.movie.voteCount! ], "rating": review.rating! ]) { err in if let err = err { print("Error adding document: \(err)") } else { print("Document added with ID: \(ref!.documentID)") } } } } func configurePageViewController() { // configure database db = Firestore.firestore() // call firebase to get the movies and convert to reviews db.collection("movies") .getDocuments() { (querySnapshot, err) in if let err = err { print("Error getting documents: \(err)") } else { for document in querySnapshot!.documents { self.movies.append(Movie(dictionary: document.data())) } self.reviews = self.createReviews() } guard let pageViewController = self.storyboard?.instantiateViewController(withIdentifier: String(describing: InitialReviewPageViewController.self)) as? InitialReviewPageViewController else { return } pageViewController.delegate = self pageViewController.dataSource = self self.addChildViewController(pageViewController) pageViewController.didMove(toParentViewController: self) pageViewController.view.translatesAutoresizingMaskIntoConstraints = false self.contentView.addSubview(pageViewController.view) let views: [String: Any] = ["pageView": pageViewController.view!] self.contentView.addConstraints(NSLayoutConstraint.constraints(withVisualFormat: "H:|-0-[pageView]-0-|", options: NSLayoutConstraint.FormatOptions(rawValue: 0), metrics: nil, views: views)) self.contentView.addConstraints(NSLayoutConstraint.constraints(withVisualFormat: "V:|-0-[pageView]-0-|", options: NSLayoutConstraint.FormatOptions(rawValue: 0), metrics: nil, views: views)) guard let startingViewController = self.detailViewControllerAt(index: self.currentViewControllerIndex) else { return } pageViewController.setViewControllers([startingViewController], direction: .forward, animated: true) } } func detailViewControllerAt(index: Int) -> InitialReviewDataViewController? { if index >= movies.count || movies.count == 0 { return nil } guard let dataViewController = storyboard?.instantiateViewController(withIdentifier: String(describing: InitialReviewDataViewController.self)) as? InitialReviewDataViewController else { return nil } // set values for pages dataViewController.index = index dataViewController.displayText = movies[index].title dataViewController.imageURL = movies[index].posterUrl let df = DateFormatter() df.dateFormat = "yyyy" dataViewController.dateText = df.string(from: movies[index].releaseDate!) dataViewController.rating = reviews[index].rating dataViewController.didRateDelegate = self return dataViewController } func createReviews() -> [Review] { var reviews: [Review] = [] for movie in movies { reviews.append(Review(movie: movie, userId: currentUser.uid, rating: 0)) } return reviews } // delegate method for when rating buttons are pushed func didRate(index: Int, rating: Int) { // update reviews reviews[index].rating = rating // check if all reviews are complete, if so then present the 'next' button var didFinishReviews = true for review in reviews { if review.rating == 0 { didFinishReviews = false break } } if didFinishReviews { continueButtonOutlet.alpha = 1 } } } extension InitialReviewViewController: UIPageViewControllerDelegate, UIPageViewControllerDataSource { func presentationIndex(for InitialReviewPageViewController: UIPageViewController) -> Int { return currentViewControllerIndex } func presentationCount(for pageViewController: UIPageViewController) -> Int { return movies.count } func pageViewController(_ pageViewController: UIPageViewController, viewControllerBefore viewController: UIViewController) -> UIViewController? { let dataViewController = viewController as? InitialReviewDataViewController guard var currentIndex = dataViewController?.index else { return nil } currentViewControllerIndex = currentIndex if currentIndex == 0 { return nil } currentIndex -= 1 return detailViewControllerAt(index: currentIndex) } func pageViewController(_ pageViewController: UIPageViewController, viewControllerAfter viewController: UIViewController) -> UIViewController? { let dataViewController = viewController as? InitialReviewDataViewController guard var currentIndex = dataViewController?.index else { return nil } // update ratings //reviews[currentViewControllerIndex].rating = Int((dataViewController?.ratingLabel.text)!) if currentIndex == movies.count { return nil } currentIndex += 1 currentViewControllerIndex = currentIndex return detailViewControllerAt(index: currentIndex) } }
37.515695
206
0.599331
595449cc2949f30cd5db5c73586975572daf513b
1,279
h
C
System/Library/PrivateFrameworks/SpringBoardFoundation.framework/SBAnalyticsContextProvider.h
lechium/iOS1351Headers
6bed3dada5ffc20366b27f7f2300a24a48a6284e
[ "MIT" ]
2
2021-11-02T09:23:27.000Z
2022-03-28T08:21:57.000Z
System/Library/PrivateFrameworks/SpringBoardFoundation.framework/SBAnalyticsContextProvider.h
lechium/iOS1351Headers
6bed3dada5ffc20366b27f7f2300a24a48a6284e
[ "MIT" ]
null
null
null
System/Library/PrivateFrameworks/SpringBoardFoundation.framework/SBAnalyticsContextProvider.h
lechium/iOS1351Headers
6bed3dada5ffc20366b27f7f2300a24a48a6284e
[ "MIT" ]
1
2022-03-28T08:21:59.000Z
2022-03-28T08:21:59.000Z
/* * This header is generated by classdump-dyld 1.5 * on Friday, April 30, 2021 at 11:37:03 AM Mountain Standard Time * Operating System: Version 13.5.1 (Build 17F80) * Image Source: /System/Library/PrivateFrameworks/SpringBoardFoundation.framework/SpringBoardFoundation * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneos. Updated by Kevin Bradley. */ #import <libobjc.A.dylib/SBFAnalyticsBackendEventContextProviding.h> @class SBSAnalyticsState, SBFAnalyticsBackend, NSString; @interface SBAnalyticsContextProvider : NSObject <SBFAnalyticsBackendEventContextProviding> { SBSAnalyticsState* _eventPayload; SBFAnalyticsBackend* _backend; } @property (readonly) unsigned long long hash; @property (readonly) Class superclass; @property (copy,readonly) NSString * description; @property (copy,readonly) NSString * debugDescription; @property (nonatomic,readonly) SBSAnalyticsState * eventPayload; -(NSString *)description; -(SBSAnalyticsState *)eventPayload; -(void)stateForQueryName:(unsigned long long)arg1 completion:(/*^block*/id)arg2 ; -(id)initWithEventPayload:(id)arg1 backend:(id)arg2 ; @end
41.258065
130
0.709148
1729651e964c5cc188d45581e1e1fd7e7a783d80
4,895
asm
Assembly
src/ai.asm
DigiDwrf/neon64v2-easybuild
94fa46fbc8ddb2af593cb42162df58f65a03ebc4
[ "0BSD" ]
36
2020-07-08T11:27:17.000Z
2022-03-15T08:38:52.000Z
src/ai.asm
DigiDwrf/neon64v2-easybuild
94fa46fbc8ddb2af593cb42162df58f65a03ebc4
[ "0BSD" ]
19
2020-07-12T23:14:03.000Z
2021-12-14T07:57:40.000Z
src/ai.asm
DigiDwrf/neon64v2-easybuild
94fa46fbc8ddb2af593cb42162df58f65a03ebc4
[ "0BSD" ]
6
2021-07-17T09:57:46.000Z
2022-03-13T07:50:25.000Z
//define LOG_AI_INT() begin_bss() align(4) ai_interrupt_wait: db 0 align(4) end_bss() align(4) scope AI { abuf_addrs: evaluate rep_i(0) while {rep_i} < num_abufs { dw (audiobuffer&0x7f'ffff) + {rep_i}*abuf_size evaluate rep_i({rep_i}+1) } Init: addi sp, 16 sw ra, -8 (sp) lui t0, AI_BASE // TODO PAL timing lli t1, VI_NTSC_CLOCK / samplerate - 1 sw t1, AI_DACRATE (t0) lli t1, 15 sw t1, AI_BITRATE (t0) // If initially busy, spin - lw t1, AI_STATUS (t0) srl t1, 30 andi t1, 1 bnez t1,- nop // Enable DMA lli t1, 1 sw t1, AI_CONTROL (t0) ls_gp(sb r0, ai_interrupt_wait) // Enable interrupt lui t0, MI_BASE lli t1, MI_MASK_SET_AI sw t1, MI_INTR_MASK (t0) // Init buffer FIFO lui t0, SP_MEM_BASE sw r0, SP_DMEM + dmem_abuf_read (t0) sw r0, SP_DMEM + dmem_abuf_write (t0) // Initially clear buffers la a0, audiobuffer la t0, abuf_samples - lli t1, num_abufs move t2, a0 - sw r0, 0 (t2) addi t1, -1 bnez t1,- addi t2, abuf_size addi t0, -1 bnez t0,-- addi a0, 4 lw ra, -8 (sp) jr ra addi sp, 16 // This will be run from the SP interrupt when the APU ucode has finished // a buffer. The ucode has already advanced dmem_abuf_write, so if the AI // is full it will be picked up on the next AI interrupt. But if the AI // isn't full, we need to play the next buffer now. PlayBufferFromSP: lui t0, AI_BASE lw t1, AI_STATUS (t0) bgez t1,+ lui t0, SP_MEM_BASE // Full, nothing to do. jr ra nop + // Make sure we're not colliding with dmem_abuf_write somehow. lw t1, SP_DMEM + dmem_abuf_read (t0) lw t0, SP_DMEM + dmem_abuf_write (t0) beq t0, t1,++ sll t1, 2 // Play the next buffer // This should be the one that the RSP just finished, but might not be. add t1, gp lw t1, abuf_addrs - gp_base (t1) lui t0, AI_BASE sw t1, AI_DRAM_ADDR (t0) la t1, abuf_samples * 4 sw t1, AI_LEN (t0) // Advance to the next buffer lui t2, SP_MEM_BASE lw t1, SP_DMEM + dmem_abuf_read (t2) lli t0, num_abufs-1 bne t0, t1,+ addi t1, 1 lli t1, 0 + sw t1, SP_DMEM + dmem_abuf_read (t2) + jr ra nop Pause: lui t0, AI_BASE jr ra sw r0, AI_CONTROL (t0) Unpause: lui t0, AI_BASE lli t1, 1 jr ra sw t1, AI_CONTROL (t0) scope Interrupt: { if {defined LOG_AI_INT} { exception_save_regs_for_debug() jal PrintStr0 la_gp(a0, ai_int_msg) lui t0, SP_MEM_BASE lw a0, SP_DMEM + dmem_abuf_read (t0) jal PrintHex lli a1, 2 lui t0, SP_MEM_BASE lw a0, SP_DMEM + dmem_abuf_write (t0) jal PrintHex lli a1, 2 jal NewlineAndFlushDebug nop exception_restore_regs_for_debug() } ls_gp(sd t0, exception_regs + t0*8) ls_gp(sd t1, exception_regs + t1*8) ls_gp(sd sp, exception_regs + sp*8) mflo k0 mfhi t0 ls_gp(sd a0, exception_regs + a0*8) ls_gp(sd a1, exception_regs + a1*8) ls_gp(sd t2, exception_regs + t2*8) ls_gp(sd k0, exception_lo) ls_gp(sd t0, exception_hi) ls_gp(sd ra, exception_regs + ra*8) la_gp(sp, exception_stack) addi sp, 8 // Check that the AI isn't already Full // FIXME Figure out what the deal is with these spurious interrupts. lui t1, AI_BASE lw t2, AI_STATUS (t1) bltz t2, end nop // Is anything ready to play? lui k0, SP_MEM_BASE lw t0, SP_DMEM + dmem_abuf_read (k0) lw t1, SP_DMEM + dmem_abuf_write (k0) bne t0, t1, no_flush_needed nop // Nothing is queued yet, request render flush (don't wait for any more alists) j APU.RenderFlush la_gp(ra, end) no_flush_needed: // Get the next buffer address sll t0, 2 add t0, gp lw t0, abuf_addrs - gp_base (t0) // Play the next buffer lui t1, AI_BASE sw t0, AI_DRAM_ADDR (t1) la t0, abuf_samples * 4 sw t0, AI_LEN (t1) // Increment read lui k0, SP_MEM_BASE lw t1, SP_DMEM + dmem_abuf_read (k0) lli t0, num_abufs-1 bne t1, t0,+ addi t1, 1 lli t1, 0 + sw t1, SP_DMEM + dmem_abuf_read (k0) // Try rendering now that there's a buffer free jal RSP.Run nop end: ls_gp(ld k0, exception_lo) ls_gp(ld t0, exception_hi) ls_gp(ld a0, exception_regs + a0*8) ls_gp(ld a1, exception_regs + a1*8) ls_gp(ld t2, exception_regs + t2*8) // Should be far enough ahead of any uses of lo/hi to avoid // undefined behavior. mtlo k0 mthi t0 ls_gp(ld t0, exception_regs + t0*8) ls_gp(ld t1, exception_regs + t1*8) ls_gp(ld ra, exception_regs + ra*8) ls_gp(ld sp, exception_regs + sp*8) if {defined LOG_AI_INT} { exception_save_regs_for_debug() lui t0, SP_MEM_BASE lw a0, SP_DMEM + dmem_abuf_read (t0) jal PrintHex lli a1, 2 lui t0, SP_MEM_BASE lw a0, SP_DMEM + dmem_abuf_write (t0) jal PrintHex lli a1, 2 jal NewlineAndFlushDebug nop exception_restore_regs_for_debug() } ls_gp(sb r0, ai_interrupt_wait) jr k1 nop } trap_interrupt_inconsistency: la k0, trap_interrupt_inconsistency mtc0 k0, EPC syscall 1 } if {defined LOG_AI_INT} { ai_int_msg: db "AI Interrupt",0 align(4) }
18.754789
79
0.682329
22a20d2989bffbf3457b6a834dd47279d0af15f2
2,359
html
HTML
Exercicios/ex009/index.html
PauloPSAS/html-css
623e18c464076e4e34eaf704e40284b2807077a6
[ "MIT" ]
null
null
null
Exercicios/ex009/index.html
PauloPSAS/html-css
623e18c464076e4e34eaf704e40284b2807077a6
[ "MIT" ]
null
null
null
Exercicios/ex009/index.html
PauloPSAS/html-css
623e18c464076e4e34eaf704e40284b2807077a6
[ "MIT" ]
null
null
null
<!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Listas</title> </head> <body> <h1>Minha Lista Diária</h1> <h2>Lista Ordenada</h2> <ol> <li>Acordar.</li> <li>Escovar os dentes</li> <li>Tomar café</li> <li>Ir pra a academia</li> <li>Voltar pra casa</li> <li>Ir para o trabalho</li> <li>Voltar pra casa</li> <li>Estudar um pouco</li> <li>Jantar</li> <li>Ir dormir</li> </ol> <h2>Listas não ordenadas</h2> <ul type="square"> <li>Pão</li> <li>Tomate</li> <li>Leite</li> <li>Carne</li> <li>Legumes</li> <li>Arroz</li> <li>Feijão</li> </ul> <h2>Linguagens para Estudar</h2> <ol> <h3><li>Prioridade</li></h3> <ol type="a"> <li>Python</li> <li>C</li> <li>PHP</li> <li>JavaScript</li> </ol> <h3><li>Secundária</li></h3> <ol type="a"> <li>JAVA</li> <li>C++</li> <li>C#</li> <li>Rust</li> </ol> </ol> <h2>Jogos Preferidos</h2> <ol> <h3><li>Nitendo</li></h3> <ul type="disc"> <li>Fire Emblem</li> <li>Mario</li> <li>Mario kart</li> <li>Pokemon</li> <li>Digimon Worl Dusk/Dawn</li> <li>Age of Empires</li> <li>Bomberman</li> </ul> <h3><li>PlayStation</li></h3> <ul type="disc"> <li>Resident Evil 4</li> <li>God of War 1 e 2</li> <li>Ride or Die</li> <li>Dynasty Warriors</li> <li>Samurai Warriors</li> <li>Nobunaga Ambition</li> <li>Dragon Ball Z Budokai Tentachi 3</li> </ul> </ol> <h2>Lista de definições</h2> <dl> <dt>HTML</dt> <dd>Linguagem de marcação para criação do conteúdo de um site.</dd> <dt>CSS</dt> <dd>Linguagem de marcação para a criação do design de um site</dd> <dt>JavaScript</dt> <dd>Linguagem de programação para a criação de interatividade de um site</dd> </dl> </body> </html>
27.752941
85
0.483256
8f020e384641d64aa63c9ef3399ad62071d2deeb
2,186
java
Java
lowpoly/src/main/java/com/uniquestudio/lowpoly/LowPoly.java
GowthamRayar/LowPoly
3d288f82a9dfb7590bf5147b578a10a113b85157
[ "Apache-2.0" ]
null
null
null
lowpoly/src/main/java/com/uniquestudio/lowpoly/LowPoly.java
GowthamRayar/LowPoly
3d288f82a9dfb7590bf5147b578a10a113b85157
[ "Apache-2.0" ]
null
null
null
lowpoly/src/main/java/com/uniquestudio/lowpoly/LowPoly.java
GowthamRayar/LowPoly
3d288f82a9dfb7590bf5147b578a10a113b85157
[ "Apache-2.0" ]
null
null
null
package com.uniquestudio.lowpoly; import ohos.agp.render.Canvas; import ohos.agp.render.Paint; import ohos.agp.render.Path; import ohos.agp.render.Texture; import ohos.agp.utils.Color; import ohos.media.image.PixelMap; import ohos.media.image.common.PixelFormat; import ohos.media.image.common.Position; import ohos.media.image.common.Rect; import ohos.media.image.common.Size; /** * Created by CoXier on 2016/9/14. */ public class LowPoly { static { System.loadLibrary("lowpoly"); } public static native int[] getTriangles(int[] pixels, int width, int height, int pointNum); /** * @param input * @param gradientThresh * @return low poly bitmap */ public static PixelMap generate(PixelMap input, int gradientThresh) { int width = input.getImageInfo().size.width; int height = input.getImageInfo().size.height; PixelMap.InitializationOptions options = new PixelMap.InitializationOptions(); options.size = new Size(width, height); options.pixelFormat = PixelFormat.ARGB_8888; PixelMap newImage = PixelMap.create(options); Canvas canvas = new Canvas(new Texture(newImage)); Paint paint = new Paint(); paint.setAntiAlias(false); paint.setStyle(Paint.Style.FILL_STYLE); int x1, x2, x3, y1, y2, y3; int pixels[] = new int[width * height]; input.readPixels(pixels,0,width,new Rect(0,0,width,height)); int[] triangles = getTriangles(pixels, width, height,gradientThresh); for (int i = 0; i < triangles.length; i = i + 6) { x1 = triangles[i]; y1 = triangles[i + 1]; x2 = triangles[i + 2]; y2 = triangles[i + 3]; x3 = triangles[i + 4]; y3 = triangles[i + 5]; int color = input.readPixel(new Position((x1 + x2 + x3) / 3, (y1 + y2 + y3) / 3)); Path path = new Path(); path.moveTo(x1, y1); path.lineTo(x2, y2); path.lineTo(x3, y3); path.close(); paint.setColor(new Color(color)); canvas.drawPath(path, paint); } return newImage; } }
32.626866
95
0.610247
88c49f9eedbf2612fcd85f6153fede8fb63a1eac
1,225
swift
Swift
M2M/Models/Activity.swift
samsam2610/trackitivity
2ae085440eecaaa1406875a806a410322f61af63
[ "Apache-2.0" ]
null
null
null
M2M/Models/Activity.swift
samsam2610/trackitivity
2ae085440eecaaa1406875a806a410322f61af63
[ "Apache-2.0" ]
null
null
null
M2M/Models/Activity.swift
samsam2610/trackitivity
2ae085440eecaaa1406875a806a410322f61af63
[ "Apache-2.0" ]
null
null
null
// // Activity.swift // M2M // // Created by Tran Sam on 2/20/18. // Copyright © 2018 Tran Sam. All rights reserved. // import Foundation protocol ActivityParam: ExerciseInfo { var timeStart: String {get set} var timeEnd: String {get set} var duration: String {get set} var repetitions: Int {get set} var averageAngle: Float {get set} var minAngle: Float {get set} var maxAngle: Float {get set} } struct Activity: ActivityParam, Codable { var exerciseName: String var id: String var description: String? var assignmentID: String var userID: String var timeStart: String var timeEnd: String var duration: String var repetitions: Int var averageAngle: Float var minAngle: Float var maxAngle: Float private enum CodingKeys: String, CodingKey { case id case description case assignmentID = "assignment_id" case userID = "user_id" case exerciseName = "title" case timeStart = "time_start" case timeEnd = "time_end" case duration case repetitions case averageAngle = "average_angle" case minAngle = "min_angle" case maxAngle = "max_angle" } }
24.5
51
0.647347
1f192179b788303c4ebbd0beb48a155e8f267470
1,545
css
CSS
public/css/index.css
CodeHex-3/OnServ
23a2dd253068ccd4cfdd5d831af34264eadf986f
[ "MIT" ]
null
null
null
public/css/index.css
CodeHex-3/OnServ
23a2dd253068ccd4cfdd5d831af34264eadf986f
[ "MIT" ]
null
null
null
public/css/index.css
CodeHex-3/OnServ
23a2dd253068ccd4cfdd5d831af34264eadf986f
[ "MIT" ]
null
null
null
* { padding: 0; margin: 0; font-size: medium; } .table { overflow: scroll; width: 100%; height: 70vh; } .srch_ctnr { margin-top: auto; width: 100%; height: 100px; color: black; display: flex; align-items: center; justify-content: space-evenly; flex-wrap: wrap; } .srch_ctnr ::placeholder { color: rgb(139, 139, 139); } input { outline: none; padding: 5px; text-align: center; } .srch { border: 1px solid white; height: 30px; width: 200px; border-radius: 15px 50px; border: 1px solid rgb(54, 54, 54); } #customers { font-family: Arial, Helvetica, sans-serif; border-collapse: collapse; width: 100%; } #customers td, #customers th { text-align: center; padding: 8px; } #customers tr:nth-child(even) { background-color: #f2f2f2; } #customers tr:hover { background-color: #ddd; } #customers th { padding-top: 12px; padding-bottom: 12px; text-align: center; background-color: #04aa6d; color: white; } img { height: 50px; width: 50px; } ::placeholder { text-align: center; } .table::-webkit-scrollbar { display: none; } /* Hide scrollbar for IE, Edge and Firefox */ .table { -ms-overflow-style: none; /* IE and Edge */ scrollbar-width: none; /* Firefox */ } select { width: 150px; } .likes { display: flex; align-items: center; justify-content: center; flex-direction: row; } .likes i:hover{ color: blue; cursor: pointer; } .clicked{ color: blue; } @media screen and (max-width: 400px) { .srch_ctnr { height: 175px; } }
13.09322
45
0.633657
28ca5b1c1e348fde737b2fd6f235567c9d5bd2fa
179
rb
Ruby
nanoc-cli/spec/nanoc/cli/version_spec.rb
rien/nanoc
557768015fb476e7b0be966007b7ef8ae6f9eb92
[ "MIT" ]
1,198
2015-01-04T13:07:56.000Z
2022-03-27T22:56:18.000Z
nanoc-cli/spec/nanoc/cli/version_spec.rb
rien/nanoc
557768015fb476e7b0be966007b7ef8ae6f9eb92
[ "MIT" ]
625
2015-01-01T10:34:36.000Z
2022-03-24T21:36:02.000Z
nanoc-cli/spec/nanoc/cli/version_spec.rb
rien/nanoc
557768015fb476e7b0be966007b7ef8ae6f9eb92
[ "MIT" ]
175
2015-01-09T08:38:42.000Z
2022-03-25T00:45:21.000Z
# frozen_string_literal: true describe Nanoc::CLI::VERSION do it 'is the same as Nanoc::Core::VERSION' do expect(Nanoc::CLI::VERSION).to eq(Nanoc::Core::VERSION) end end
22.375
59
0.715084
b702109619bf7628248fa3bd35350805e4029633
120
swift
Swift
Tests/LinuxMain.swift
bearjaw/MusicCore
9e1830b68dde0f8dd47cb237584116c5b655d5ea
[ "MIT" ]
null
null
null
Tests/LinuxMain.swift
bearjaw/MusicCore
9e1830b68dde0f8dd47cb237584116c5b655d5ea
[ "MIT" ]
null
null
null
Tests/LinuxMain.swift
bearjaw/MusicCore
9e1830b68dde0f8dd47cb237584116c5b655d5ea
[ "MIT" ]
null
null
null
import XCTest import MusicCoreTests var tests = [XCTestCaseEntry]() tests += MusicCoreTests.allTests() XCTMain(tests)
15
34
0.783333
2f6ddcfd0ff102cad970eaa50c25199bd0459e75
318
php
PHP
app/Services/SVGConversion/ProcessStatus.php
mchivuku/marketing-lockup
66ec927f4d19852d8ded8b0bde212c35fce98601
[ "MIT" ]
null
null
null
app/Services/SVGConversion/ProcessStatus.php
mchivuku/marketing-lockup
66ec927f4d19852d8ded8b0bde212c35fce98601
[ "MIT" ]
null
null
null
app/Services/SVGConversion/ProcessStatus.php
mchivuku/marketing-lockup
66ec927f4d19852d8ded8b0bde212c35fce98601
[ "MIT" ]
null
null
null
<?php /** * Created by PhpStorm. * User: mchivuku * Date: 7/29/15 * Time: 1:22 PM */ namespace App\Services\SVGConversion; class ProcessStatus{ public $status; public $message; public function __construct($status,$message=""){ $this->status=$status; $this->message=$message; } }
16.736842
53
0.622642
6708780d46506498f618fc6b489f3d4da84cd1da
1,034
asm
Assembly
programs/oeis/081/A081076.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/081/A081076.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/081/A081076.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A081076: a(n) = Lucas(4n) + 3, or 5*Fibonacci(2n-1)*Fibonacci(2n+1). ; 5,10,50,325,2210,15130,103685,710650,4870850,33385285,228826130,1568397610,10749957125,73681302250,505019158610,3461452808005,23725150497410,162614600673850,1114577054219525,7639424778862810,52361396397820130,358890350005878085,2459871053643326450,16860207025497407050,115561578124838522885,792070839848372253130,5428934300813767249010,37210469265847998489925,255044350560122222180450,1748099984655007556773210,11981655542024930675232005,82123488809519507169850810,562882766124611619513723650,3858055874062761829426214725,26443508352314721186469779410,181246502592140286475862241130,1242282009792667284144565908485,8514727565956530702536099118250,58360810951903047633608127919250,400010949097364802732720796316485,2741715832729650571495437446296130,18791999880010189197735341327756410,128802283327341673812651951847998725,882823983411381527490828321608234650 mul $0,2 mov $1,1 lpb $0 sub $0,2 sub $2,$1 sub $1,$2 lpe pow $2,2 mov $0,$2 add $0,1 mul $0,5
68.933333
860
0.881044
262383686d72e5d908bef64f1a9719cef6a7d744
296
java
Java
src/main/java/com/sn/manageservice/controller/vo/AppRelationVo.java
wushaonan/managesystem
855fb0ac48de7ad4f56559fc748db4991bd1ee99
[ "Apache-2.0" ]
null
null
null
src/main/java/com/sn/manageservice/controller/vo/AppRelationVo.java
wushaonan/managesystem
855fb0ac48de7ad4f56559fc748db4991bd1ee99
[ "Apache-2.0" ]
1
2022-03-10T14:47:36.000Z
2022-03-10T14:47:36.000Z
src/main/java/com/sn/manageservice/controller/vo/AppRelationVo.java
wushaonan/managesystem
855fb0ac48de7ad4f56559fc748db4991bd1ee99
[ "Apache-2.0" ]
null
null
null
package com.sn.manageservice.controller.vo; import lombok.Data; /** * @author 向南 * @date 2021/12/29 20:27 * @description */ @Data public class AppRelationVo { private Integer animalId; private String animalName; private String startDateStr; private String endDateStr; }
14.095238
43
0.706081
98d7303af3d108acc8ff6b6239fec06586294699
902
html
HTML
src/index.html
icastro085/cave
f13cd234dec8e26f4b090468bfd919a33dac948b
[ "MIT" ]
null
null
null
src/index.html
icastro085/cave
f13cd234dec8e26f4b090468bfd919a33dac948b
[ "MIT" ]
null
null
null
src/index.html
icastro085/cave
f13cd234dec8e26f4b090468bfd919a33dac948b
[ "MIT" ]
null
null
null
<html> <head> <meta charset="utf-8" /> <meta name="format-detection" content="telephone=no" /> <meta name="msapplication-tap-highlight" content="no" /> <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width" /> <meta http-equiv="Content-Security-Policy" content="default-src * 'unsafe-inline'; style-src 'self' 'unsafe-inline'; media-src *" /> <!-- build:css(.tmp) css/style.css --> <link rel="stylesheet" href="css/style.css"> <!-- endbuild --> </head> <body> <div id="loading"> <div id="loading-icon"></div> </div> <div id="loadign-screen"></div> <script type="text/javascript" src="cordova.js"></script> <!-- build:js js/quintus.js --> <script src="js/lib/quintus-all.js"></script> <!-- endbuild --> <script src="js/bundle.js"></script> </body> </html>
32.214286
136
0.610865
86a108c4fb6afc7a005b6fc0c66ec4025e87db02
7,969
rs
Rust
src/evdev.rs
vi/input-linux-rs
c6996c40c0dd7b9e2dc3459ce8e02d949d0df020
[ "MIT" ]
null
null
null
src/evdev.rs
vi/input-linux-rs
c6996c40c0dd7b9e2dc3459ce8e02d949d0df020
[ "MIT" ]
null
null
null
src/evdev.rs
vi/input-linux-rs
c6996c40c0dd7b9e2dc3459ce8e02d949d0df020
[ "MIT" ]
null
null
null
use std::io; use std::mem::{uninitialized, size_of}; use std::slice::from_raw_parts_mut; use std::os::unix::io::{RawFd, AsRawFd}; use nix; use sys; use ::{InputId, EventKind, AbsoluteAxis, AbsoluteInfo}; use macros::convert_error; use bitmask::Bitmask; pub use sys::EV_VERSION; /// A handle to an input device allowing the use of ioctls /// /// Ownership of the file descriptor is not transferred, and it must stay open /// for this object's lifetime. It will not be closed automatically. pub struct EvdevHandle(RawFd); impl EvdevHandle { /// Create a new handle using an existing open file object. pub fn new<F: AsRawFd>(fd: &F) -> Self { EvdevHandle(fd.as_raw_fd()) } /// Create a new handle from a raw file descriptor. pub fn from_fd(fd: RawFd) -> Self { EvdevHandle(fd) } /// Read events from the input device pub fn read(&self, events: &mut [sys::input_event]) -> io::Result<usize> { let events = unsafe { from_raw_parts_mut(events.as_mut_ptr() as *mut u8, size_of::<sys::input_event>() * events.len()) }; nix::unistd::read(self.0, events) .map(|len| len / size_of::<sys::input_event>()).map_err(convert_error) } ioctl_impl! { { /// `EVIOCGVERSION` @get driver_version = ev_get_version -> i32 } { /// `EVIOCGID` @get device_id = ev_get_id -> InputId } { /// `EVIOGREP` @get repeat_settings = ev_get_rep -> sys::repeat_settings } { /// `EVIOSREP` @set set_repeat_settings(&sys::repeat_settings) = ev_set_rep } { /// `EVIOCGKEYCODE` @get keycode_legacy = ev_get_keycode -> [u32; 2] } { /// `EVIOCGKEYCODE_V2` @get keycode = ev_get_keycode_v2 -> sys::input_keymap_entry } { /// `EVIOCSKEYCODE` @set set_keycode_legacy(&[u32; 2]) = ev_set_keycode } { /// `EVIOCSKEYCODE_V2` @set set_keycode(&sys::input_keymap_entry) = ev_set_keycode_v2 } { /// `EVIOCGNAME` @get_str device_name, device_name_buf = ev_get_name } { /// `EVIOCGPHYS` @get_str physical_location, physical_location_buf = ev_get_phys } { /// `EVIOCGUNIQ` @get_str unique_id, unique_id_buf = ev_get_uniq } { /// `EVIOCGPROP` @get_buf device_properties_raw(u8) = ev_get_prop } { /// `EVIOCGKEY` @get_buf key_state(u8) = ev_get_key } { /// `EVIOCGLED` @get_buf led_state(u8) = ev_get_led } { /// `EVIOCGSND` @get_buf sounds_state(u8) = ev_get_snd } { /// `EVIOCGSW` @get_buf switch_state(u8) = ev_get_sw } { /// `EVIOCSFF` @set send_force_feedback(&mut sys::ff_effect) = ev_send_ff } { /// `EVIOCRMFF` @set erase_force_feedback(i16) = ev_erase_ff } { /// `EVIOCGEFFECTS` @get effects_count = ev_get_effects -> i32 } } /// `EVIOCGPROP` pub fn device_properties(&self) -> io::Result<Bitmask<::InputProperty>> { let mut bitmask = Bitmask::default(); self.device_properties_raw(&mut bitmask).map(|_| bitmask) } /// `EVIOCGMTSLOTS` /// /// Warning: the current implementation can leak uninitialized heap memory into `values` pub fn multi_touch_slots(&self, code: AbsoluteAxis, values: &mut [i32]) -> io::Result<()> { let input_len = values.len() + 1; let mut buf = Vec::<i32>::with_capacity(input_len); // a perfect example of how not to use ev_get_mtslots unsafe { buf.set_len(input_len); buf[0] = code as _; // the first field isn't counted in the len of the fat pointer let ptr = from_raw_parts_mut(buf.as_mut_ptr(), values.len()) as *mut _; sys::ev_get_mtslots(self.0, ptr as *mut sys::input_mt_request_layout<[i32]>) .map_err(convert_error)?; } values.copy_from_slice(&buf[1..]); Ok(()) } impl_bitmasks! { EventKind, EventKind::Synchronize, event_mask_events, set_event_mask_events, event_bits } impl_bitmasks! { ::Key, EventKind::Key, key_mask, set_key_mask, key_bits } impl_bitmasks! { ::RelativeAxis, EventKind::Relative, relative_mask, set_relative_mask, relative_bits } impl_bitmasks! { ::AbsoluteAxis, EventKind::Absolute, absolute_mask, set_absolute_mask, absolute_bits } impl_bitmasks! { ::MiscKind, EventKind::Misc, misc_mask, set_misc_mask, misc_bits } impl_bitmasks! { ::SwitchKind, EventKind::Switch, switch_mask, set_switch_mask, switch_bits } impl_bitmasks! { ::LedKind, EventKind::Led, led_mask, set_led_mask, led_bits } impl_bitmasks! { ::SoundKind, EventKind::Sound, sound_mask, set_sound_mask, sound_bits } impl_bitmasks! { ::AutorepeatKind, EventKind::Autorepeat, autorepeat_mask, set_autorepeat_mask, autorepeat_bits } /// `EVIOCGMASK` pub fn event_mask_raw(&self, kind: EventKind, buffer: &mut [u8]) -> io::Result<()> { unsafe { let mut mask = sys::input_mask { type_: kind as _, codes_size: buffer.len() as _, codes_ptr: buffer.as_mut_ptr() as usize as _, }; sys::ev_get_mask(self.0, &mut mask) .map(drop) .map_err(convert_error) } } /// `EVIOCSMASK` pub fn set_event_mask_raw(&self, kind: EventKind, buffer: &[u8]) -> io::Result<()> { unsafe { let mask = sys::input_mask { type_: kind as _, codes_size: buffer.len() as _, codes_ptr: buffer.as_ptr() as usize as _, }; sys::ev_set_mask(self.0, &mask) .map(drop) .map_err(convert_error) } } /// `EVIOCGBIT` pub fn event_bits_raw(&self, kind: EventKind, buffer: &mut [u8]) -> io::Result<usize> { unsafe { sys::ev_get_bit(self.0, kind as _, buffer) .map(|i| i as _) .map_err(convert_error) } } /// `EVIOCGABS` pub fn absolute_info(&self, abs: AbsoluteAxis) -> io::Result<AbsoluteInfo> { unsafe { let mut info = uninitialized(); sys::ev_get_abs(self.0, abs as _, &mut info) .map(|_| info.into()) .map_err(convert_error) } } /// `EVIOCSABS` pub fn set_absolute_info(&self, abs: AbsoluteAxis, info: &AbsoluteInfo) -> io::Result<()> { unsafe { let info: &sys::input_absinfo = info.into(); sys::ev_set_abs(self.0, abs as _, info) .map(drop) .map_err(convert_error) } } /// `EVIOCGRAB` pub fn grab(&self, grab: bool) -> io::Result<()> { unsafe { sys::ev_grab(self.0, if grab { 1 } else { 0 }) .map(drop) .map_err(convert_error) } } /// `EVIOCREVOKE` pub fn revoke(&self) -> io::Result<()> { unsafe { sys::ev_revoke(self.0, 0) .map(drop) .map_err(convert_error) } } /// `EVIOCSCLOCKID` pub fn set_clock_id(&self, value: i32) -> io::Result<()> { unsafe { sys::ev_set_clockid(self.0, &value) .map(drop) .map_err(convert_error) } } }
28.978182
129
0.532062
844da9a8e615a83761d7ab448c0bcb1a94f5e2b7
2,127
dart
Dart
deal_o_round/lib/settings/boolean_settings.dart
CsabaConsulting/Deal-O-Round
432b765de6372465eb12136a12cd85a1dae3d72a
[ "MIT" ]
1
2021-02-25T10:52:08.000Z
2021-02-25T10:52:08.000Z
deal_o_round/lib/settings/boolean_settings.dart
DealORound/Deal-O-Round
c8a1ce5a329a91adec625a9b88fda90389e86ce2
[ "MIT" ]
15
2020-08-31T01:55:36.000Z
2022-01-26T03:37:02.000Z
deal_o_round/lib/settings/boolean_settings.dart
DealORound/Deal-O-Round
c8a1ce5a329a91adec625a9b88fda90389e86ce2
[ "MIT" ]
null
null
null
import 'package:flutter/material.dart'; import 'package:get/get.dart'; import 'package:shared_preferences/shared_preferences.dart'; import '../services/settings_constants.dart'; import '../services/sound.dart'; class BooleanSettings extends StatefulWidget { final double scale; final bool defaultValue; final String valueTag; const BooleanSettings({ Key? key, this.scale = 1.2, required this.defaultValue, required this.valueTag, }) : super(key: key); @override _BooleanSettingsState createState() => _BooleanSettingsState(defaultValue, valueTag); } class _BooleanSettingsState extends State<BooleanSettings> { late SharedPreferences _prefs; bool booleanValue; final String valueTag; _BooleanSettingsState(this.booleanValue, this.valueTag) { _prefs = Get.find<SharedPreferences>(); } @override initState() { super.initState(); bool? storedValue = _prefs.getBool(valueTag); if (storedValue != null) { booleanValue = storedValue; } } @override Widget build(BuildContext context) { return Transform.scale( scale: widget.scale, child: Switch( value: booleanValue, activeColor: Colors.lightGreenAccent, activeTrackColor: Colors.green, inactiveThumbColor: Colors.red, inactiveTrackColor: Colors.brown, onChanged: (newValue) { setState(() { booleanValue = newValue; _prefs.setBool(valueTag, newValue); final soundUtils = Get.find<SoundUtils>(); if (valueTag == SOUND_EFFECTS) { if (newValue) { soundUtils.loadSoundEffects(); } else { soundUtils.stopAllSoundEffects(); } } else if (valueTag == GAME_MUSIC) { if (newValue) { soundUtils.playSoundTrack(SoundTrack.SaloonMusic); } else { soundUtils.stopAllSoundTracks(); } } }); })); } }
29.136986
87
0.594734
562b169181ceb528498c6c60375472a5521bbe57
3,219
lua
Lua
plugins/HexWrite.lua
MinusGix/HerixTUI
a9673b100de9f5f3709c458e0ce5221615645c49
[ "MIT" ]
1
2019-09-21T15:52:10.000Z
2019-09-21T15:52:10.000Z
plugins/HexWrite.lua
MinusGix/HerixTUI
a9673b100de9f5f3709c458e0ce5221615645c49
[ "MIT" ]
null
null
null
plugins/HexWrite.lua
MinusGix/HerixTUI
a9673b100de9f5f3709c458e0ce5221615645c49
[ "MIT" ]
null
null
null
-- Requires highlighter currently. if hex_write_config == nil then hex_write_config = {} end if hex_write_config["selected_attribute"] == nil then hex_write_config["selected_attribute"] = DrawingAttributes.Standout end if hex_write_config["selected_editing_attribute"] == nil then hex_write_config["selected_editing_attribute"] = DrawingAttributes.Underlined end -- Cache the bytes that byteToStringPadded uses -- I was unsure if I should do this optimization in lua or in the byteToStringPadded. local bytes = {} for index=0, 255 do bytes[index] = byteToStringPadded(index) end function hw_byte_to_string (byte) return bytes[byte] end local prev_state = getHexViewState() local requires_rehighlight = false listenForUndo(function (pos) requires_rehighlight = true end) listenForRedo(function (pos) requires_rehighlight = true end) function base_on_write (data, size, position) local byte_entries_col = getHexByteWidth() local byte_entries_row = getHexViewHeight() local selected_pos = getSelectedPosition() local hex_view_state = getHexViewState() local hex_view_x = getHexViewX() local hex_view_y = getHexViewY() -- Unsure if this is that great of an ''optimization'' local func_on_write if hex_view_state == HexViewState.Editing then func_on_write = on_write_selected_state_editing else func_on_write = on_write_selected end highlight_update(position, size, requires_rehighlight or (prev_state == HexViewState.Editing and hex_view_state ~= HexViewState.Editing) ) requires_rehighlight = false prev_state = hex_view_state fh_highlight_get_load_screen() -- This assumes that data is sequential, not sure we can rely on that for j, v in ipairs(data) do local i = j - 1 -- one-indexed if i % byte_entries_col == 0 and i ~= 0 then moveView(hex_view_x, hex_view_y + (i // byte_entries_col)) end local v_highlight_attr = highlight_get(position + i) toggle_highlight_attributes(v_highlight_attr, true) local byte_text = hw_byte_to_string(v) if selected_pos == (position + i) then func_on_write(byte_text) else printView(byte_text .. " ") end toggle_highlight_attributes(v_highlight_attr, false) end end function on_write_selected_state_editing (byte_text) if getEditingPosition() == false then enableAttribute(hex_write_config["selected_editing_attribute"]) printView(string.sub(byte_text, 1, 1)) disableAttribute(hex_write_config["selected_editing_attribute"]) printView(string.sub(byte_text, 2, 2) .. " ") else printView(string.sub(byte_text, 1, 1)) enableAttribute(hex_write_config["selected_editing_attribute"]) printView(string.sub(byte_text, 2, 2)) disableAttribute(hex_write_config["selected_editing_attribute"]) printView(" ") end end function on_write_selected (byte_text) enableAttribute(hex_write_config["selected_attribute"]) printView(byte_text) disableAttribute(hex_write_config["selected_attribute"]) printView(" ") end listenForWrite(base_on_write)
31.871287
87
0.722274
04124e3a53e2122fba12fa1e1993b92a86b32fa5
3,005
js
JavaScript
seeds/mozilla/non262/class/extendBuiltinConstructors.js
gustavopinto/entente
19b65d8cafd77c198c9c441f4f5e01503360309b
[ "BSD-2-Clause" ]
5
2018-03-20T21:53:38.000Z
2018-12-28T21:08:47.000Z
seeds/mozilla/non262/class/extendBuiltinConstructors.js
gustavopinto/entente
19b65d8cafd77c198c9c441f4f5e01503360309b
[ "BSD-2-Clause" ]
14
2018-04-09T20:16:00.000Z
2019-06-11T12:31:10.000Z
seeds/mozilla/non262/class/extendBuiltinConstructors.js
gustavopinto/entente
19b65d8cafd77c198c9c441f4f5e01503360309b
[ "BSD-2-Clause" ]
12
2018-04-06T00:52:24.000Z
2018-07-10T19:44:16.000Z
function testBuiltinInstanceIsInstanceOf(instance, builtin, class_) { assertEq(instance instanceof class_, true); assertEq(instance instanceof builtin, true); if (builtin === Array) assertEq(Array.isArray(instance), true); } function testBuiltinInstance(builtin, ...args) { class sub extends builtin { constructor(...args) { super(...args); this.called = true; } } let instance = new sub(...args); assertEq(instance.called, true); testBuiltinInstanceIsInstanceOf(instance, builtin, sub); } function testBuiltinMultipleSubclasses(builtin, ...args) { function f(obj, prop) { assertEq(obj.prop, prop); } class sub1 extends builtin { }; class sub2 extends builtin { }; const prop1 = "A"; const prop2 = "B"; sub1.prototype.prop = prop1; sub2.prototype.prop = prop2; let instance1 = new sub1(...args); let instance2 = new sub2(...args); // Also make sure we get the properties we want with a default constructor testBuiltinInstanceIsInstanceOf(instance1, builtin, sub1); for (let i = 0; i < 10; i++) { f(instance1, prop1); f(instance2, prop2); } } function testBuiltin(builtin, ...args) { testBuiltinInstance(builtin, ...args); testBuiltinMultipleSubclasses(builtin, ...args); } function testBuiltinTypedArrays() { let typedArrays = [Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array]; for (let array of typedArrays) { testBuiltin(array); testBuiltin(array, 5); testBuiltin(array, new array()); testBuiltin(array, new ArrayBuffer()); } } testBuiltin(Function); testBuiltin(Object); testBuiltin(Boolean); testBuiltin(Error); testBuiltin(EvalError); testBuiltin(RangeError); testBuiltin(ReferenceError); testBuiltin(SyntaxError); testBuiltin(TypeError); testBuiltin(URIError); testBuiltin(Number); testBuiltin(Date); testBuiltin(Date, 5); testBuiltin(Date, 5, 10); testBuiltin(RegExp); testBuiltin(RegExp, /Regexp Argument/); testBuiltin(RegExp, "String Argument"); testBuiltin(Map); testBuiltin(Set); testBuiltin(WeakMap); testBuiltin(WeakSet); testBuiltin(ArrayBuffer); testBuiltinTypedArrays(); testBuiltin(DataView, new ArrayBuffer()); testBuiltin(DataView, new (newGlobal().ArrayBuffer)()); testBuiltin(String); testBuiltin(Array); testBuiltin(Array, 15); testBuiltin(Array, 3.0); testBuiltin(Array, "non-length one-arg"); testBuiltin(Array, 5, 10, 15, "these are elements"); // More Promise subclassing tests can be found in ecma_6/Promise/promise-subclassing.js testBuiltin(Promise, _=>{}); if (this.SharedArrayBuffer) testBuiltin(SharedArrayBuffer); if (typeof reportCompare === 'function') reportCompare(0,0,"OK");
27.072072
87
0.656572
deb074fa3414ac5428d5314d2155a6cdf0a34266
22,179
asm
Assembly
forktest.asm
jieun-cloud/xv6-file
50ead4a176f9111b01a087ab2b9a46883bbaec66
[ "MIT-0" ]
1
2020-02-10T06:49:36.000Z
2020-02-10T06:49:36.000Z
forktest.asm
jieun-cloud/xv6-file
50ead4a176f9111b01a087ab2b9a46883bbaec66
[ "MIT-0" ]
null
null
null
forktest.asm
jieun-cloud/xv6-file
50ead4a176f9111b01a087ab2b9a46883bbaec66
[ "MIT-0" ]
null
null
null
_forktest: file format elf32-i386 Disassembly of section .text: 00000000 <printf>: #define N 1000 void printf(int fd, const char *s, ...) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 53 push %ebx 4: 83 ec 14 sub $0x14,%esp 7: 8b 5d 0c mov 0xc(%ebp),%ebx write(fd, s, strlen(s)); a: 89 1c 24 mov %ebx,(%esp) d: e8 8e 01 00 00 call 1a0 <strlen> 12: 89 5c 24 04 mov %ebx,0x4(%esp) 16: 89 44 24 08 mov %eax,0x8(%esp) 1a: 8b 45 08 mov 0x8(%ebp),%eax 1d: 89 04 24 mov %eax,(%esp) 20: e8 43 03 00 00 call 368 <write> } 25: 83 c4 14 add $0x14,%esp 28: 5b pop %ebx 29: 5d pop %ebp 2a: c3 ret 2b: 90 nop 2c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 00000030 <forktest>: void forktest(void) { 30: 55 push %ebp 31: 89 e5 mov %esp,%ebp 33: 53 push %ebx int n, pid; printf(1, "fork test\n"); 34: 31 db xor %ebx,%ebx write(fd, s, strlen(s)); } void forktest(void) { 36: 83 ec 14 sub $0x14,%esp int n, pid; printf(1, "fork test\n"); 39: c7 44 24 04 e8 03 00 movl $0x3e8,0x4(%esp) 40: 00 41: c7 04 24 01 00 00 00 movl $0x1,(%esp) 48: e8 b3 ff ff ff call 0 <printf> 4d: eb 13 jmp 62 <forktest+0x32> 4f: 90 nop for(n=0; n<N; n++){ pid = fork(); if(pid < 0) break; if(pid == 0) 50: 74 7a je cc <forktest+0x9c> { int n, pid; printf(1, "fork test\n"); for(n=0; n<N; n++){ 52: 83 c3 01 add $0x1,%ebx 55: 81 fb e8 03 00 00 cmp $0x3e8,%ebx 5b: 90 nop 5c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 60: 74 4e je b0 <forktest+0x80> 62: 8d b6 00 00 00 00 lea 0x0(%esi),%esi pid = fork(); 68: e8 d3 02 00 00 call 340 <fork> if(pid < 0) 6d: 83 f8 00 cmp $0x0,%eax 70: 7d de jge 50 <forktest+0x20> if(n == N){ printf(1, "fork claimed to work N times!\n", N); exit(); } for(; n > 0; n--){ 72: 85 db test %ebx,%ebx 74: 74 11 je 87 <forktest+0x57> 76: 66 90 xchg %ax,%ax if(wait() < 0){ 78: e8 d3 02 00 00 call 350 <wait> 7d: 85 c0 test %eax,%eax 7f: 90 nop 80: 78 4f js d1 <forktest+0xa1> if(n == N){ printf(1, "fork claimed to work N times!\n", N); exit(); } for(; n > 0; n--){ 82: 83 eb 01 sub $0x1,%ebx 85: 75 f1 jne 78 <forktest+0x48> 87: 90 nop printf(1, "wait stopped early\n"); exit(); } } if(wait() != -1){ 88: e8 c3 02 00 00 call 350 <wait> 8d: 83 f8 ff cmp $0xffffffff,%eax 90: 75 58 jne ea <forktest+0xba> printf(1, "wait got too many\n"); exit(); } printf(1, "fork test OK\n"); 92: c7 44 24 04 1a 04 00 movl $0x41a,0x4(%esp) 99: 00 9a: c7 04 24 01 00 00 00 movl $0x1,(%esp) a1: e8 5a ff ff ff call 0 <printf> } a6: 83 c4 14 add $0x14,%esp a9: 5b pop %ebx aa: 5d pop %ebp ab: c3 ret ac: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi if(pid == 0) exit(); } if(n == N){ printf(1, "fork claimed to work N times!\n", N); b0: c7 44 24 08 e8 03 00 movl $0x3e8,0x8(%esp) b7: 00 b8: c7 44 24 04 28 04 00 movl $0x428,0x4(%esp) bf: 00 c0: c7 04 24 01 00 00 00 movl $0x1,(%esp) c7: e8 34 ff ff ff call 0 <printf> exit(); cc: e8 77 02 00 00 call 348 <exit> } for(; n > 0; n--){ if(wait() < 0){ printf(1, "wait stopped early\n"); d1: c7 44 24 04 f3 03 00 movl $0x3f3,0x4(%esp) d8: 00 d9: c7 04 24 01 00 00 00 movl $0x1,(%esp) e0: e8 1b ff ff ff call 0 <printf> exit(); e5: e8 5e 02 00 00 call 348 <exit> } } if(wait() != -1){ printf(1, "wait got too many\n"); ea: c7 44 24 04 07 04 00 movl $0x407,0x4(%esp) f1: 00 f2: c7 04 24 01 00 00 00 movl $0x1,(%esp) f9: e8 02 ff ff ff call 0 <printf> exit(); fe: e8 45 02 00 00 call 348 <exit> 103: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 109: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000110 <main>: printf(1, "fork test OK\n"); } int main(void) { 110: 55 push %ebp 111: 89 e5 mov %esp,%ebp 113: 83 e4 f0 and $0xfffffff0,%esp forktest(); 116: e8 15 ff ff ff call 30 <forktest> exit(); 11b: e8 28 02 00 00 call 348 <exit> 00000120 <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, const char *t) { 120: 55 push %ebp 121: 31 d2 xor %edx,%edx 123: 89 e5 mov %esp,%ebp 125: 8b 45 08 mov 0x8(%ebp),%eax 128: 53 push %ebx 129: 8b 5d 0c mov 0xc(%ebp),%ebx 12c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi char *os; os = s; while((*s++ = *t++) != 0) 130: 0f b6 0c 13 movzbl (%ebx,%edx,1),%ecx 134: 88 0c 10 mov %cl,(%eax,%edx,1) 137: 83 c2 01 add $0x1,%edx 13a: 84 c9 test %cl,%cl 13c: 75 f2 jne 130 <strcpy+0x10> ; return os; } 13e: 5b pop %ebx 13f: 5d pop %ebp 140: c3 ret 141: eb 0d jmp 150 <strcmp> 143: 90 nop 144: 90 nop 145: 90 nop 146: 90 nop 147: 90 nop 148: 90 nop 149: 90 nop 14a: 90 nop 14b: 90 nop 14c: 90 nop 14d: 90 nop 14e: 90 nop 14f: 90 nop 00000150 <strcmp>: int strcmp(const char *p, const char *q) { 150: 55 push %ebp 151: 89 e5 mov %esp,%ebp 153: 53 push %ebx 154: 8b 4d 08 mov 0x8(%ebp),%ecx 157: 8b 55 0c mov 0xc(%ebp),%edx while(*p && *p == *q) 15a: 0f b6 01 movzbl (%ecx),%eax 15d: 84 c0 test %al,%al 15f: 75 14 jne 175 <strcmp+0x25> 161: eb 25 jmp 188 <strcmp+0x38> 163: 90 nop 164: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi p++, q++; 168: 83 c1 01 add $0x1,%ecx 16b: 83 c2 01 add $0x1,%edx } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 16e: 0f b6 01 movzbl (%ecx),%eax 171: 84 c0 test %al,%al 173: 74 13 je 188 <strcmp+0x38> 175: 0f b6 1a movzbl (%edx),%ebx 178: 38 d8 cmp %bl,%al 17a: 74 ec je 168 <strcmp+0x18> 17c: 0f b6 db movzbl %bl,%ebx 17f: 0f b6 c0 movzbl %al,%eax 182: 29 d8 sub %ebx,%eax p++, q++; return (uchar)*p - (uchar)*q; } 184: 5b pop %ebx 185: 5d pop %ebp 186: c3 ret 187: 90 nop } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 188: 0f b6 1a movzbl (%edx),%ebx 18b: 31 c0 xor %eax,%eax 18d: 0f b6 db movzbl %bl,%ebx 190: 29 d8 sub %ebx,%eax p++, q++; return (uchar)*p - (uchar)*q; } 192: 5b pop %ebx 193: 5d pop %ebp 194: c3 ret 195: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 199: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 000001a0 <strlen>: uint strlen(const char *s) { 1a0: 55 push %ebp int n; for(n = 0; s[n]; n++) 1a1: 31 d2 xor %edx,%edx return (uchar)*p - (uchar)*q; } uint strlen(const char *s) { 1a3: 89 e5 mov %esp,%ebp int n; for(n = 0; s[n]; n++) 1a5: 31 c0 xor %eax,%eax return (uchar)*p - (uchar)*q; } uint strlen(const char *s) { 1a7: 8b 4d 08 mov 0x8(%ebp),%ecx int n; for(n = 0; s[n]; n++) 1aa: 80 39 00 cmpb $0x0,(%ecx) 1ad: 74 0c je 1bb <strlen+0x1b> 1af: 90 nop 1b0: 83 c2 01 add $0x1,%edx 1b3: 80 3c 11 00 cmpb $0x0,(%ecx,%edx,1) 1b7: 89 d0 mov %edx,%eax 1b9: 75 f5 jne 1b0 <strlen+0x10> ; return n; } 1bb: 5d pop %ebp 1bc: c3 ret 1bd: 8d 76 00 lea 0x0(%esi),%esi 000001c0 <memset>: void* memset(void *dst, int c, uint n) { 1c0: 55 push %ebp 1c1: 89 e5 mov %esp,%ebp 1c3: 8b 55 08 mov 0x8(%ebp),%edx 1c6: 57 push %edi } static inline void stosb(void *addr, int data, int cnt) { asm volatile("cld; rep stosb" : 1c7: 8b 4d 10 mov 0x10(%ebp),%ecx 1ca: 8b 45 0c mov 0xc(%ebp),%eax 1cd: 89 d7 mov %edx,%edi 1cf: fc cld 1d0: f3 aa rep stos %al,%es:(%edi) stosb(dst, c, n); return dst; } 1d2: 89 d0 mov %edx,%eax 1d4: 5f pop %edi 1d5: 5d pop %ebp 1d6: c3 ret 1d7: 89 f6 mov %esi,%esi 1d9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 000001e0 <strchr>: char* strchr(const char *s, char c) { 1e0: 55 push %ebp 1e1: 89 e5 mov %esp,%ebp 1e3: 8b 45 08 mov 0x8(%ebp),%eax 1e6: 0f b6 4d 0c movzbl 0xc(%ebp),%ecx for(; *s; s++) 1ea: 0f b6 10 movzbl (%eax),%edx 1ed: 84 d2 test %dl,%dl 1ef: 75 11 jne 202 <strchr+0x22> 1f1: eb 15 jmp 208 <strchr+0x28> 1f3: 90 nop 1f4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 1f8: 83 c0 01 add $0x1,%eax 1fb: 0f b6 10 movzbl (%eax),%edx 1fe: 84 d2 test %dl,%dl 200: 74 06 je 208 <strchr+0x28> if(*s == c) 202: 38 ca cmp %cl,%dl 204: 75 f2 jne 1f8 <strchr+0x18> return (char*)s; return 0; } 206: 5d pop %ebp 207: c3 ret } char* strchr(const char *s, char c) { for(; *s; s++) 208: 31 c0 xor %eax,%eax if(*s == c) return (char*)s; return 0; } 20a: 5d pop %ebp 20b: 90 nop 20c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 210: c3 ret 211: eb 0d jmp 220 <atoi> 213: 90 nop 214: 90 nop 215: 90 nop 216: 90 nop 217: 90 nop 218: 90 nop 219: 90 nop 21a: 90 nop 21b: 90 nop 21c: 90 nop 21d: 90 nop 21e: 90 nop 21f: 90 nop 00000220 <atoi>: return r; } int atoi(const char *s) { 220: 55 push %ebp int n; n = 0; while('0' <= *s && *s <= '9') 221: 31 c0 xor %eax,%eax return r; } int atoi(const char *s) { 223: 89 e5 mov %esp,%ebp 225: 8b 4d 08 mov 0x8(%ebp),%ecx 228: 53 push %ebx int n; n = 0; while('0' <= *s && *s <= '9') 229: 0f b6 11 movzbl (%ecx),%edx 22c: 8d 5a d0 lea -0x30(%edx),%ebx 22f: 80 fb 09 cmp $0x9,%bl 232: 77 1c ja 250 <atoi+0x30> 234: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi n = n*10 + *s++ - '0'; 238: 0f be d2 movsbl %dl,%edx 23b: 83 c1 01 add $0x1,%ecx 23e: 8d 04 80 lea (%eax,%eax,4),%eax 241: 8d 44 42 d0 lea -0x30(%edx,%eax,2),%eax atoi(const char *s) { int n; n = 0; while('0' <= *s && *s <= '9') 245: 0f b6 11 movzbl (%ecx),%edx 248: 8d 5a d0 lea -0x30(%edx),%ebx 24b: 80 fb 09 cmp $0x9,%bl 24e: 76 e8 jbe 238 <atoi+0x18> n = n*10 + *s++ - '0'; return n; } 250: 5b pop %ebx 251: 5d pop %ebp 252: c3 ret 253: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 259: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000260 <memmove>: void* memmove(void *vdst, const void *vsrc, int n) { 260: 55 push %ebp 261: 89 e5 mov %esp,%ebp 263: 56 push %esi 264: 8b 45 08 mov 0x8(%ebp),%eax 267: 53 push %ebx 268: 8b 5d 10 mov 0x10(%ebp),%ebx 26b: 8b 75 0c mov 0xc(%ebp),%esi char *dst; const char *src; dst = vdst; src = vsrc; while(n-- > 0) 26e: 85 db test %ebx,%ebx 270: 7e 14 jle 286 <memmove+0x26> n = n*10 + *s++ - '0'; return n; } void* memmove(void *vdst, const void *vsrc, int n) 272: 31 d2 xor %edx,%edx 274: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi const char *src; dst = vdst; src = vsrc; while(n-- > 0) *dst++ = *src++; 278: 0f b6 0c 16 movzbl (%esi,%edx,1),%ecx 27c: 88 0c 10 mov %cl,(%eax,%edx,1) 27f: 83 c2 01 add $0x1,%edx char *dst; const char *src; dst = vdst; src = vsrc; while(n-- > 0) 282: 39 da cmp %ebx,%edx 284: 75 f2 jne 278 <memmove+0x18> *dst++ = *src++; return vdst; } 286: 5b pop %ebx 287: 5e pop %esi 288: 5d pop %ebp 289: c3 ret 28a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 00000290 <stat>: return buf; } int stat(const char *n, struct stat *st) { 290: 55 push %ebp 291: 89 e5 mov %esp,%ebp 293: 83 ec 18 sub $0x18,%esp int fd; int r; fd = open(n, O_RDONLY); 296: 8b 45 08 mov 0x8(%ebp),%eax return buf; } int stat(const char *n, struct stat *st) { 299: 89 5d f8 mov %ebx,-0x8(%ebp) 29c: 89 75 fc mov %esi,-0x4(%ebp) int fd; int r; fd = open(n, O_RDONLY); if(fd < 0) 29f: be ff ff ff ff mov $0xffffffff,%esi stat(const char *n, struct stat *st) { int fd; int r; fd = open(n, O_RDONLY); 2a4: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) 2ab: 00 2ac: 89 04 24 mov %eax,(%esp) 2af: e8 d4 00 00 00 call 388 <open> if(fd < 0) 2b4: 85 c0 test %eax,%eax stat(const char *n, struct stat *st) { int fd; int r; fd = open(n, O_RDONLY); 2b6: 89 c3 mov %eax,%ebx if(fd < 0) 2b8: 78 19 js 2d3 <stat+0x43> return -1; r = fstat(fd, st); 2ba: 8b 45 0c mov 0xc(%ebp),%eax 2bd: 89 1c 24 mov %ebx,(%esp) 2c0: 89 44 24 04 mov %eax,0x4(%esp) 2c4: e8 d7 00 00 00 call 3a0 <fstat> close(fd); 2c9: 89 1c 24 mov %ebx,(%esp) int r; fd = open(n, O_RDONLY); if(fd < 0) return -1; r = fstat(fd, st); 2cc: 89 c6 mov %eax,%esi close(fd); 2ce: e8 9d 00 00 00 call 370 <close> return r; } 2d3: 89 f0 mov %esi,%eax 2d5: 8b 5d f8 mov -0x8(%ebp),%ebx 2d8: 8b 75 fc mov -0x4(%ebp),%esi 2db: 89 ec mov %ebp,%esp 2dd: 5d pop %ebp 2de: c3 ret 2df: 90 nop 000002e0 <gets>: return 0; } char* gets(char *buf, int max) { 2e0: 55 push %ebp 2e1: 89 e5 mov %esp,%ebp 2e3: 57 push %edi 2e4: 56 push %esi 2e5: 31 f6 xor %esi,%esi 2e7: 53 push %ebx 2e8: 83 ec 2c sub $0x2c,%esp 2eb: 8b 7d 08 mov 0x8(%ebp),%edi int i, cc; char c; for(i=0; i+1 < max; ){ 2ee: eb 06 jmp 2f6 <gets+0x16> cc = read(0, &c, 1); if(cc < 1) break; buf[i++] = c; if(c == '\n' || c == '\r') 2f0: 3c 0a cmp $0xa,%al 2f2: 74 39 je 32d <gets+0x4d> 2f4: 89 de mov %ebx,%esi gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 2f6: 8d 5e 01 lea 0x1(%esi),%ebx 2f9: 3b 5d 0c cmp 0xc(%ebp),%ebx 2fc: 7d 31 jge 32f <gets+0x4f> cc = read(0, &c, 1); 2fe: 8d 45 e7 lea -0x19(%ebp),%eax 301: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 308: 00 309: 89 44 24 04 mov %eax,0x4(%esp) 30d: c7 04 24 00 00 00 00 movl $0x0,(%esp) 314: e8 47 00 00 00 call 360 <read> if(cc < 1) 319: 85 c0 test %eax,%eax 31b: 7e 12 jle 32f <gets+0x4f> break; buf[i++] = c; 31d: 0f b6 45 e7 movzbl -0x19(%ebp),%eax 321: 88 44 1f ff mov %al,-0x1(%edi,%ebx,1) if(c == '\n' || c == '\r') 325: 0f b6 45 e7 movzbl -0x19(%ebp),%eax 329: 3c 0d cmp $0xd,%al 32b: 75 c3 jne 2f0 <gets+0x10> 32d: 89 de mov %ebx,%esi break; } buf[i] = '\0'; 32f: c6 04 37 00 movb $0x0,(%edi,%esi,1) return buf; } 333: 89 f8 mov %edi,%eax 335: 83 c4 2c add $0x2c,%esp 338: 5b pop %ebx 339: 5e pop %esi 33a: 5f pop %edi 33b: 5d pop %ebp 33c: c3 ret 33d: 90 nop 33e: 90 nop 33f: 90 nop 00000340 <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 340: b8 01 00 00 00 mov $0x1,%eax 345: cd 40 int $0x40 347: c3 ret 00000348 <exit>: SYSCALL(exit) 348: b8 02 00 00 00 mov $0x2,%eax 34d: cd 40 int $0x40 34f: c3 ret 00000350 <wait>: SYSCALL(wait) 350: b8 03 00 00 00 mov $0x3,%eax 355: cd 40 int $0x40 357: c3 ret 00000358 <pipe>: SYSCALL(pipe) 358: b8 04 00 00 00 mov $0x4,%eax 35d: cd 40 int $0x40 35f: c3 ret 00000360 <read>: SYSCALL(read) 360: b8 05 00 00 00 mov $0x5,%eax 365: cd 40 int $0x40 367: c3 ret 00000368 <write>: SYSCALL(write) 368: b8 10 00 00 00 mov $0x10,%eax 36d: cd 40 int $0x40 36f: c3 ret 00000370 <close>: SYSCALL(close) 370: b8 15 00 00 00 mov $0x15,%eax 375: cd 40 int $0x40 377: c3 ret 00000378 <kill>: SYSCALL(kill) 378: b8 06 00 00 00 mov $0x6,%eax 37d: cd 40 int $0x40 37f: c3 ret 00000380 <exec>: SYSCALL(exec) 380: b8 07 00 00 00 mov $0x7,%eax 385: cd 40 int $0x40 387: c3 ret 00000388 <open>: SYSCALL(open) 388: b8 0f 00 00 00 mov $0xf,%eax 38d: cd 40 int $0x40 38f: c3 ret 00000390 <mknod>: SYSCALL(mknod) 390: b8 11 00 00 00 mov $0x11,%eax 395: cd 40 int $0x40 397: c3 ret 00000398 <unlink>: SYSCALL(unlink) 398: b8 12 00 00 00 mov $0x12,%eax 39d: cd 40 int $0x40 39f: c3 ret 000003a0 <fstat>: SYSCALL(fstat) 3a0: b8 08 00 00 00 mov $0x8,%eax 3a5: cd 40 int $0x40 3a7: c3 ret 000003a8 <link>: SYSCALL(link) 3a8: b8 13 00 00 00 mov $0x13,%eax 3ad: cd 40 int $0x40 3af: c3 ret 000003b0 <mkdir>: SYSCALL(mkdir) 3b0: b8 14 00 00 00 mov $0x14,%eax 3b5: cd 40 int $0x40 3b7: c3 ret 000003b8 <chdir>: SYSCALL(chdir) 3b8: b8 09 00 00 00 mov $0x9,%eax 3bd: cd 40 int $0x40 3bf: c3 ret 000003c0 <dup>: SYSCALL(dup) 3c0: b8 0a 00 00 00 mov $0xa,%eax 3c5: cd 40 int $0x40 3c7: c3 ret 000003c8 <getpid>: SYSCALL(getpid) 3c8: b8 0b 00 00 00 mov $0xb,%eax 3cd: cd 40 int $0x40 3cf: c3 ret 000003d0 <sbrk>: SYSCALL(sbrk) 3d0: b8 0c 00 00 00 mov $0xc,%eax 3d5: cd 40 int $0x40 3d7: c3 ret 000003d8 <sleep>: SYSCALL(sleep) 3d8: b8 0d 00 00 00 mov $0xd,%eax 3dd: cd 40 int $0x40 3df: c3 ret 000003e0 <uptime>: SYSCALL(uptime) 3e0: b8 0e 00 00 00 mov $0xe,%eax 3e5: cd 40 int $0x40 3e7: c3 ret
27.213497
58
0.418369
5b5518eb047012ee114f98fd92e5f1fd2bec75db
7,334
c
C
Fuzzy/trabalhoic.c
felipebmuniz/Inteligencia_Computacional
d1ac6da32bfbb952f614dc37f41327522d38d668
[ "MIT" ]
null
null
null
Fuzzy/trabalhoic.c
felipebmuniz/Inteligencia_Computacional
d1ac6da32bfbb952f614dc37f41327522d38d668
[ "MIT" ]
null
null
null
Fuzzy/trabalhoic.c
felipebmuniz/Inteligencia_Computacional
d1ac6da32bfbb952f614dc37f41327522d38d668
[ "MIT" ]
null
null
null
/* Aluno: Francisco Gilson Pereira Almeida Filho Matricula: 401066 2020.1 Enunciado: Construa um programa baseado em l�gica fuzzy (infer�ncia de Mamdani) que receba tr�s valores: press�o no pedal, velocidade da roda e velocidade do carro e que devolva a press�o no freio. Regras utilizadas: Regra1: Se a press�o no pedal for m�dia, ent�o aplicar o freio. Regra2: Se a press�o no pedal for alta, e a velocidade da roda e carro forem altas, ent�o aplicar o freio. Regra3: Se a press�o no pedal for alta, e a velocidade da roda e carro forem baixar, ent�o liberar o freio. Regra4: Se a press�o no pedal for baixa, ent�o liberar o freio. Rela��es utilizadas: Entradas: Press�o no freio: L - [0 - 50] M - [30 - 70] H - [50 - 100] Velocidade nas rodas e carro: S - [0 - 60] M - [20 - 80] F - [40 - 100] Saidas: Aplica freio - Libera freio - Obs: Visando facilitar a vizualiza�ao das retas foi utilizado como valor maximo 30 ao inves de 1, nos calculos essas unidades s�o convertidas. */ //Defini��o de bibliotecas necess�rias #include<stdio.h> #include<math.h> //Fun��o que aplica as regras do input da press�o no freio double pressao_freio(double pp, int x){ // Defin��o das regras para entrada da pressao double L = ((-0.6 * pp)+30); double M = (30-(fabs((pp - 50)*3/2))); double H = (0.6 * pp)-30; //Se algum dos valores for menor do que 0 corrige para 0 if (L < 0){ L = 0; } if (M < 0){ M = 0; } if (H < 0){ H = 0; } // Configura para o retorno necessario com base na entrada do paremtro x if( x == 1){ return (L/30); } else if( x == 2){ return (M/30); } else if( x == 3){ return (H/30); } } //Fun��o que aplica as regras do input da velocidade do carro double velocidade_carro(double vc, int x){ // Defin��o das regras para entrada da velocidade do carro double S = ((-0.5*vc)+30); double M = (30-(fabs((vc-50)))); double F = ((0.5*vc)-20); //Se algum dos valores for menor do que 0 corrige para 0 if (S < 0){ S = 0; } if (M < 0){ M = 0; } if (F < 0){ F = 0; } // Configura para o retorno necessario com base na entrada do paremtro x if( x == 1){ return (S/30); } else if(x == 2){ return (M/30); } else if(x == 3){ return (F/30); } } //Fun��o que aplica as regras do input da velocidade nas rodas double velocidade_roda(double vr, int x){ // Defin��o das regras para entrada da velocidade da roda double S = ((-0.5*vr)+30); double M = (30-(fabs((vr-50)))); double F = ((0.5*vr)-20); //Se algum dos valores for menor do que 0 corrige para 0 if (S < 0){ S = 0; } if (M < 0){ M = 0; } if (F < 0){ F = 0; } // Configura para o retorno necessario com base na entrada do paremtro x if( x == 1){ return (S/30); } else if(x == 2){ return (M/30); } else if(x == 3){ return (F/30); } } //Fun��o para analisar a regra1: Se a press�o no pedal for m�dia, ent�o aplicar o freio. double regra1(double pp,double vr,double vc){ //Chamo a fun��o para press�o freio com o paremetro 2 (M�dio) com base na regra 1 double pressao = pressao_freio(pp,2); return pressao; } //Fun��o para analisar a regra2: Se a press�o no pedal for alta, e a velocidade da roda e carro forem altas, ent�o aplicar o freio. double regra2(double pp,double vr,double vc){ //Chamo as fun��es com os paremetros 3,3,3 com base na regra 2 double vet_regra2[3] = {pressao_freio(pp,3),velocidade_carro(vc,3),velocidade_roda(vr,3)}; //loop que � usado para pegar o menor valor, com base nas regras do slide double menor = 1000; int i; for(i=0; i < 3; i++){ if (vet_regra2[i] <= menor){ menor = vet_regra2[i]; } } return menor; } //Fun��o para analisar a regra3: Se a press�o no pedal for alta, e a velocidade da roda e carro forem baixar, ent�o liberar o freio. double regra3(double pp,double vr,double vc){ //Chamo as fun��es com os paremetros 3,3,1 com base na regra 3 double vet_regra3[3] = {pressao_freio(pp,3),velocidade_carro(vc,3),velocidade_roda(vr,1)}; //loop que � usado para pegar o menor valor, com base nas regras d double menor = 1000; int i; for(i=0; i < 3; i++){ if (vet_regra3[i] <= menor){ menor = vet_regra3[i]; } } return menor; } //Fun��o para analisar a regra4: Se a press�o no pedal for baixa, ent�o liberar o freio. double regra4(double pp,double vr,double vc){ //Chamo a fun��o para press�o freio com o paremetro 1 (baixo) com base na regra 4 double pressao = pressao_freio(pp,1); return pressao; } //Fun��o para o caso de aplicar o freio double aplica_freio(double pp,double vr,double vc){ //Soma o resultado das regras 1 e 2 com base nas regras do slide double aplica = regra1(pp,vr,vc) + regra2(pp,vr,vc); return aplica*30; } //Fun��o para o caso de liberar o freio double libera_freio(double pp,double vr,double vc){ //Soma o resultado das regras 3 e 4 com base nas regras do slide double libera = regra3(pp,vr,vc) + regra4(pp,vr,vc); return libera*30; } //fun�ao final, retorna o valor da reta final para apertar o freio double pa(int x,double pp,double vr,double vc){ //Valor da fun�ao para o dominio do aplica freio double pa_valor1; double pa_valor2; double valor1 = aplica_freio(pp,vr,vc); if(x >= 0 && x<=(10*(valor1/3))){ pa_valor1 = 0.3*x; } else{ pa_valor1 = valor1; } //Valor da fun�ao para o dominio do aplica freio double valor2 = libera_freio(pp,vr,vc); if(x >= 0 && x <= (((-10)*valor2 + 300)/3)){ pa_valor2 = valor2; } else{ pa_valor2 = (-0.3)*x + 30; } //O maior valor entre as duas fun�oes prevalece na fun�ao final, assim, � retornado o maior valor. if( pa_valor1 >= pa_valor2){ return pa_valor1; } else{ return pa_valor2; } } int main(){ //Variaveis de entrada double pp , vc , vr; printf("Digite o valor da pressao no pedal: "); scanf("%lf", &pp); //Entrada do valor de press�o no pedal printf("Digite o valor da velocidade da roda: "); scanf("%lf", &vr); //Entrada do valor de velocidade nas rodas printf("Digite o valor da velocidade do carro: "); scanf("%lf", &vc); //Entrada do valor de velocidade do carro //Variaveis para o calculo do centro de gravidade double c1 = 0; double c2 = 0; //Variaveis para calculos das pa double i,j; //Variavel que controla a precis�o double precisao = 1; //Precisao de 1 a 1 //loops que fazem a pa de 0 a 100 for(i = 0; i <=100; i+=precisao){ c1 = c1 + ((pa(i,pp,vr,vc)*i)); c2 = c2 + (pa(i,pp,vr,vc)); } for(j = 0; j <=100; j+=precisao){ } double c = c1/c2; //Printa o valor da pressao final do freio printf("%lf %lf\n", c1, c2); printf("Pressao no freio : %lf\n",c); printf("Regra 1: %lf\n",regra1(pp,vc,vr)); printf("Regra 2: %lf\n",regra2(pp,vc,vr)); printf("Regra 3: %lf\n",regra3(pp,vc,vr)); printf("Regra 4: %lf\n",regra4(pp,vc,vr)); return 0; }
22.91875
132
0.602263
6b16e7f79f7421f574ef7ccdd5c1117b83bafb18
1,693
asm
Assembly
macros/coords.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
1
2022-02-15T00:19:44.000Z
2022-02-15T00:19:44.000Z
macros/coords.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
macros/coords.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
validate_coords: MACRO IF _NARG >= 4 IF \1 >= \3 fail "x coord out of range" ENDC IF \2 >= \4 fail "y coord out of range" ENDC ELSE validate_coords \1, \2, SCREEN_WIDTH, SCREEN_HEIGHT ENDC ENDM hlcoord EQUS "coord hl," bccoord EQUS "coord bc," decoord EQUS "coord de," coord: MACRO ; register, x, y[, origin] validate_coords \2, \3 IF _NARG >= 4 ld \1, (\3) * SCREEN_WIDTH + (\2) + \4 ELSE ld \1, (\3) * SCREEN_WIDTH + (\2) + wTileMap ENDC ENDM hlbgcoord EQUS "bgcoord hl," bcbgcoord EQUS "bgcoord bc," debgcoord EQUS "bgcoord de," bgcoord: MACRO ; register, x, y[, origin] validate_coords \2, \3, BG_MAP_WIDTH, BG_MAP_HEIGHT IF _NARG >= 4 ld \1, (\3) * BG_MAP_WIDTH + (\2) + \4 ELSE ld \1, (\3) * BG_MAP_WIDTH + (\2) + vBGMap0 ENDC ENDM hlowcoord EQUS "owcoord hl," bcowcoord EQUS "owcoord bc," deowcoord EQUS "owcoord de," owcoord: MACRO ; register, x, y, map width ld \1, wOverworldMap + ((\2) + 3) + (((\3) + 3) * ((\4) + (3 * 2))) ENDM event_displacement: MACRO ; map width, x blocks, y blocks dw (wOverworldMap + 7 + (\1) + ((\1) + 6) * ((\3) >> 1) + ((\2) >> 1)) db \3, \2 ENDM dwcoord: MACRO ; x, y validate_coords \1, \2 IF _NARG >= 3 dw (\2) * SCREEN_WIDTH + (\1) + \3 ELSE dw (\2) * SCREEN_WIDTH + (\1) + wTileMap ENDC ENDM ldcoord_a: MACRO ; x, y[, origin] validate_coords \1, \2 IF _NARG >= 3 ld [(\2) * SCREEN_WIDTH + (\1) + \3], a ELSE ld [(\2) * SCREEN_WIDTH + (\1) + wTileMap], a ENDC ENDM lda_coord: MACRO ; x, y[, origin] validate_coords \1, \2 IF _NARG >= 3 ld a, [(\2) * SCREEN_WIDTH + (\1) + \3] ELSE ld a, [(\2) * SCREEN_WIDTH + (\1) + wTileMap] ENDC ENDM dbmapcoord: MACRO ; x, y db \2, \1 ENDM
18.604396
71
0.600118
439ddc4bd03eab74663ee56c3ab841c06e728648
3,367
ps1
PowerShell
Git/rosenberg.git.ps1
jeffrosenberg/ShellTools
4f5d0b52398eb311b374decbcbf80018359f2022
[ "Unlicense" ]
null
null
null
Git/rosenberg.git.ps1
jeffrosenberg/ShellTools
4f5d0b52398eb311b374decbcbf80018359f2022
[ "Unlicense" ]
null
null
null
Git/rosenberg.git.ps1
jeffrosenberg/ShellTools
4f5d0b52398eb311b374decbcbf80018359f2022
[ "Unlicense" ]
null
null
null
######################################## # Shell wrappers for Git commands / aliases ######################################## # Where possible, prefer to create aliases in # .gitconfig and just wrap in shell aliases # # This way, can update command behaviors, # formatting, etc. across all providers # in .gitconfig ######################################## #git log function Invoke-GitLg { & git lg $args } #Git alias Set-Alias -Name lg -Value Invoke-GitLg Set-Alias -Name gl -Value Invoke-GitLg -Force -Option AllScope function Invoke-GitSlg { & git slg } #Git alias Set-Alias -Name slg -Value Invoke-GitSlg #git status function Invoke-GitSt { & git st $args } #Git alias Set-Alias -Name status -Value Invoke-GitSt Set-Alias -Name gs -Value Invoke-GitSt #get commit SHA function Invoke-GitSha { & git sha } Set-Alias -Name sha -Value Invoke-GitSha #git add function Invoke-GitAdd { & git add $args } Set-Alias -Name add -Value Invoke-GitAdd Set-Alias -Name ga -Value Invoke-GitAdd #git addall function Invoke-GitAddAll { & git addall } Set-Alias -Name addall -Value Invoke-GitAddAll Set-Alias -Name aa -Value Invoke-GitAddAll #git diff function Invoke-GitDiff { & git diff $args } Set-Alias -Name diff -Value Invoke-GitDiff -Force -Option AllScope Set-Alias -Name gd -Value Invoke-GitDiff #git commit function Invoke-GitCommit { & git commit $args } Set-Alias -Name commit -Value Invoke-GitCommit -Force -Option AllScope Set-Alias -Name gc -Value Invoke-GitCommit -Force -Option AllScope function Invoke-GitAmend { & git add --all; git commit --amend --no-edit } Set-Alias -Name amend -Value Invoke-GitAmend -Force -Option AllScope #git checkout function Invoke-GitChk { & git chk $args } #Git alias Set-Alias -Name checkout -Value Invoke-GitChk -Force -Option AllScope Set-Alias -Name chk -Value Invoke-GitChk -Force -Option AllScope Set-Alias -Name gchk -Value Invoke-GitChk -Force -Option AllScope function Invoke-GitDev { & git dev $args } #Git alias Set-Alias -Name dev -Value Invoke-GitDev -Force -Option AllScope function Invoke-GitDevP { & git devp $args } #Git alias Set-Alias -Name devp -Value Invoke-GitDevP -Force -Option AllScope function Invoke-GitMain { & git main $args } #Git alias Set-Alias -Name main -Value Invoke-GitMain -Force -Option AllScope function Invoke-GitMainP { & git mainp $args } #Git alias Set-Alias -Name mainp -Value Invoke-GitMainP -Force -Option AllScope function Invoke-GitMaster { & git master $args } #Git alias Set-Alias -Name master -Value Invoke-GitMaster -Force -Option AllScope function Invoke-GitMasterP { & git masterp $args } #Git alias Set-Alias -Name masterp -Value Invoke-GitMasterP -Force -Option AllScope #git merge function Invoke-GitMerge { & git merge $args } Set-Alias -Name merge -Value Invoke-GitMerge -Force -Option AllScope #git fetch function Invoke-GitFetch { & git fetch $args } Set-Alias -Name fetch -Value Invoke-GitFetch -Force -Option AllScope #git pull function Invoke-GitPull { & git pull $args } Set-Alias -Name pull -Value Invoke-GitPull -Force -Option AllScope Set-Alias -Name gp -Value Invoke-GitPull -Force -Option AllScope #git push function Invoke-GitPush { & git push $args } Set-Alias -Name push -Value Invoke-GitPush -Force -Option AllScope #git show function Invoke-GitShow { & git show $args } Set-Alias -Name show -Value Invoke-GitShow -Force -Option AllScope
35.442105
74
0.727057
5803ee2c61dfbcb3556900d8040dd3059f0a1e2e
379
h
C
XcodeHeaders/IDEKit/IDEBlueprintProvider-Protocol.h
alloy/AxeMode
323641da993b3f5990740f29021e081a184543c7
[ "MIT" ]
69
2015-02-18T13:32:26.000Z
2021-03-21T19:07:21.000Z
XcodeHeaders/IDEKit/IDEBlueprintProvider-Protocol.h
alloy/AxeMode
323641da993b3f5990740f29021e081a184543c7
[ "MIT" ]
13
2015-02-18T13:22:45.000Z
2015-07-17T21:42:42.000Z
XcodeHeaders/IDEKit/IDEBlueprintProvider-Protocol.h
alloy/AxeMode
323641da993b3f5990740f29021e081a184543c7
[ "MIT" ]
3
2015-03-16T17:49:27.000Z
2015-06-16T08:54:26.000Z
/* * Generated by class-dump 3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2012 by Steve Nygard. */ #import "NSObject.h" @protocol IDEBlueprintProvider <NSObject> - (id)blueprintForIdentifier:(id)arg1; - (id)blueprintForName:(id)arg1; - (id)blueprints; - (id)classPrefix; - (id)name; - (id)organizationName; - (id)testableProvider; @end
19.947368
83
0.686016
fbb7b2aec16dfefcb61676321813a77a768d7d34
2,223
java
Java
mtsj/core/src/main/java/com/devonfw/application/mtsj/clustermanagement/dataaccess/api/GeobookingEntity.java
devonfw-forge/mts-gigaspaces
883badabc21c39ec3e6c5305ef07a56ffc4b3aa9
[ "Apache-2.0" ]
null
null
null
mtsj/core/src/main/java/com/devonfw/application/mtsj/clustermanagement/dataaccess/api/GeobookingEntity.java
devonfw-forge/mts-gigaspaces
883badabc21c39ec3e6c5305ef07a56ffc4b3aa9
[ "Apache-2.0" ]
null
null
null
mtsj/core/src/main/java/com/devonfw/application/mtsj/clustermanagement/dataaccess/api/GeobookingEntity.java
devonfw-forge/mts-gigaspaces
883badabc21c39ec3e6c5305ef07a56ffc4b3aa9
[ "Apache-2.0" ]
null
null
null
package com.devonfw.application.mtsj.clustermanagement.dataaccess.api; import com.gigaspaces.annotation.pojo.SpaceClass; import com.gigaspaces.annotation.pojo.SpaceId; import com.gigaspaces.annotation.pojo.SpaceIndex; import com.gigaspaces.annotation.pojo.SpaceRouting; import com.gigaspaces.annotation.pojo.SpaceVersion; import com.gigaspaces.metadata.index.SpaceIndexType; /** * @author dpatesan * */ @SpaceClass public class GeobookingEntity { private String id; private String dishId; private String dishName; private Integer amount; private Long bookingDate; private Double latitude; private Double longitude; private Integer prediction; private int modificationCounter; @SpaceId(autoGenerate = true) @SpaceRouting public String getId() { return this.id; } public void setId(String id) { this.id = id; } @SpaceIndex(type = SpaceIndexType.EQUAL) public String getDishId() { return this.dishId; } public void setDishId(String dishId) { this.dishId = dishId; } public String getDishName() { return this.dishName; } public void setDishName(String dishName) { this.dishName = dishName; } public Integer getAmount() { return this.amount; } public void setAmount(Integer amount) { this.amount = amount; } @SpaceIndex(type = SpaceIndexType.ORDERED) public Long getBookingDate() { return this.bookingDate; } public void setBookingDate(Long bookingDate) { this.bookingDate = bookingDate; } public Double getLatitude() { return this.latitude; } public void setLatitude(Double latitude) { this.latitude = latitude; } public Double getLongitude() { return this.longitude; } public void setLongitude(Double longitude) { this.longitude = longitude; } @SpaceIndex(type = SpaceIndexType.EQUAL) public Integer getPrediction() { return this.prediction; } public void setPrediction(Integer prediction) { this.prediction = prediction; } @SpaceVersion public int getModificationCounter() { return this.modificationCounter; } public void setModificationCounter(int version) { this.modificationCounter = version; } }
16.840909
70
0.716149
40f0deb0a8c5c28522857bf48c6ff81e36d02bae
4,687
py
Python
experiments/clef-hipe-2022/flair-fine-tuner.py
dbmdz/clef-hipe
350de10b9d694bff00d4ee3d64b457f524e2ce5c
[ "MIT" ]
3
2021-12-23T14:31:48.000Z
2022-02-27T14:55:03.000Z
experiments/clef-hipe-2022/flair-fine-tuner.py
dbmdz/clef-hipe
350de10b9d694bff00d4ee3d64b457f524e2ce5c
[ "MIT" ]
null
null
null
experiments/clef-hipe-2022/flair-fine-tuner.py
dbmdz/clef-hipe
350de10b9d694bff00d4ee3d64b457f524e2ce5c
[ "MIT" ]
1
2022-02-27T14:55:13.000Z
2022-02-27T14:55:13.000Z
import click import json import sys import flair import torch from typing import List from flair.data import MultiCorpus from flair.datasets import ColumnCorpus, NER_HIPE_2022 from flair.embeddings import ( TokenEmbeddings, StackedEmbeddings, TransformerWordEmbeddings ) from flair import set_seed from flair.models import SequenceTagger from flair.trainers import ModelTrainer from utils import prepare_clef_2020_corpus, prepare_ajmc_corpus def run_experiment(seed, batch_size, epoch, learning_rate, hipe_datasets, json_config): # Config values # Replace it with more Pythonic solutions later! hf_model = json_config["hf_model"] context_size = json_config["context_size"] layers = json_config["layers"] if "layers" in json_config else "-1" use_crf = json_config["use_crf"] if "use_crf" in json_config else False additional_hipe_datasets = json_config["additional_hipe_datasets"] if "additional_hipe_datasets" in json_config else None label_name_map = json_config["label_name_map"] if "label_name_map" in json_config else None # Set seed for reproducibility set_seed(seed) corpus_list = [] # Dataset-related for dataset in hipe_datasets: dataset_name, language = dataset.split("/") preproc_fn = None if dataset_name == "ajmc": preproc_fn = prepare_ajmc_corpus corpus_list.append(NER_HIPE_2022(dataset_name=dataset_name, language=language, preproc_fn=preproc_fn, add_document_separator=True)) if additional_hipe_datasets and label_name_map: # Special case: do not use Dev data from additional datasets # This makes evaluation and comparison much more easier! for dataset in additional_hipe_datasets: dataset_name, language = dataset.split("/") preproc_fn = None if dataset_name == "hipe2020": print("Using own HIPE-2020 Preprocessing function.") print("Please make sure that Flair Datasets folder was cleaned before!") preproc_fn = prepare_clef_2020_corpus additional_corpus = NER_HIPE_2022(dataset_name=dataset_name, label_name_map=label_name_map, language=language, add_document_separator=True, preproc_fn=preproc_fn) additional_corpus._dev = [] corpus_list.append(additional_corpus) if context_size == 0: context_size = False print("FLERT Context:", context_size) print("Layers:", layers) print("Use CRF:", use_crf) corpora: MultiCorpus = MultiCorpus(corpora=corpus_list, sample_missing_splits=False) label_dictionary = corpora.make_label_dictionary(label_type="ner") print("Label Dictionary:", label_dictionary.get_items()) # Embeddings embeddings = TransformerWordEmbeddings( model=hf_model, layers=layers, subtoken_pooling="first", fine_tune=True, use_context=context_size, ) tagger: SequenceTagger = SequenceTagger( hidden_size=256, embeddings=embeddings, tag_dictionary=label_dictionary, tag_type="ner", use_crf=use_crf, use_rnn=False, reproject_embeddings=False, ) # Trainer trainer: ModelTrainer = ModelTrainer(tagger, corpora) datasets = "-".join([dataset for dataset in hipe_datasets]) trainer.fine_tune( f"hipe2022-flert-fine-tune-{datasets}-{hf_model}-bs{batch_size}-ws{context_size}-e{epoch}-lr{learning_rate}-layers{layers}-crf{use_crf}-{seed}", learning_rate=learning_rate, mini_batch_size=batch_size, max_epochs=epoch, shuffle=True, embeddings_storage_mode='none', weight_decay=0., use_final_model_for_eval=False, ) # Finally, print model card for information tagger.print_model_card() if __name__ == "__main__": # Read JSON configuration filename = sys.argv[1] with open(filename, "rt") as f_p: json_config = json.load(f_p) seeds = json_config["seeds"] batch_sizes = json_config["batch_sizes"] epochs = json_config["epochs"] learning_rates = json_config["learning_rates"] hipe_datasets = json_config["hipe_datasets"] # Do not iterate over them cuda = json_config["cuda"] flair.device = f'cuda:{cuda}' for seed in seeds: for batch_size in batch_sizes: for epoch in epochs: for learning_rate in learning_rates: run_experiment(seed, batch_size, epoch, learning_rate, hipe_datasets, json_config) # pylint: disable=no-value-for-parameter
33.719424
152
0.685086
01b6f53cfdb717f6d92f01feec72128388508158
799
swift
Swift
RGKickStart/ViewController.swift
riteshhgupta/RGKickStart
5cf4fc30c90acbc9de83e4b67067c8a5ca9ca578
[ "MIT" ]
null
null
null
RGKickStart/ViewController.swift
riteshhgupta/RGKickStart
5cf4fc30c90acbc9de83e4b67067c8a5ca9ca578
[ "MIT" ]
null
null
null
RGKickStart/ViewController.swift
riteshhgupta/RGKickStart
5cf4fc30c90acbc9de83e4b67067c8a5ca9ca578
[ "MIT" ]
null
null
null
// // ViewController.swift // RGKickStart // // Created by Ritesh Gupta on 03/09/18. // Copyright © 2018 Ritesh Gupta. All rights reserved. // import Foundation import UIKit import Result import Nuke import ReactiveSwift class ViewController: UIViewController, AlertPresenter { @IBOutlet var label: UILabel! override func viewDidLoad() { super.viewDidLoad() label.attributedText = "Ritesh".attributedString(with: [ "Rit".with(attributes: [.textColor(.red)]), "esh".with(attributes: [.textColor(.blue)]) ] ) } } class DownloadableImageView: UIImageView, ImageDownloadableContainer { func set(image: UIImage?) { self.image = image } } class DownloadableButton: UIButton, ImageDownloadableContainer { func set(image: UIImage?) { setImage(image, for: .normal) } }
19.02381
70
0.720901
76cd71066f4f7f1f29a2773c202632219e88d0f9
395
h
C
isis/src/control/apps/autoseed/autoseed.h
robotprogrammer22/ISIS3
8a2ec4bb3c91969c81d75c681051a1fe77028788
[ "CC0-1.0" ]
null
null
null
isis/src/control/apps/autoseed/autoseed.h
robotprogrammer22/ISIS3
8a2ec4bb3c91969c81d75c681051a1fe77028788
[ "CC0-1.0" ]
null
null
null
isis/src/control/apps/autoseed/autoseed.h
robotprogrammer22/ISIS3
8a2ec4bb3c91969c81d75c681051a1fe77028788
[ "CC0-1.0" ]
null
null
null
#ifndef autoseed_h #define autoseed_h #include "ControlNet.h" #include "Pvl.h" #include "UserInterface.h" namespace Isis { enum SeedDomain { XY, SampleLine }; extern void autoseed(UserInterface &ui, Pvl *log = nullptr); extern void autoseed(UserInterface &ui, SerialNumberList &serialNumbers, ControlNet *precnet = nullptr, Pvl *log=nullptr); } #endif
19.75
124
0.686076
bf50e031a573ce05f54c3c7bea32452605c71756
542
swift
Swift
TableViewExperiments/SecondViewController.swift
vanderlvoff/TableViewExperiments
ec0e83302b277cf1ef2b82d09fbcabf840a8516b
[ "MIT" ]
null
null
null
TableViewExperiments/SecondViewController.swift
vanderlvoff/TableViewExperiments
ec0e83302b277cf1ef2b82d09fbcabf840a8516b
[ "MIT" ]
null
null
null
TableViewExperiments/SecondViewController.swift
vanderlvoff/TableViewExperiments
ec0e83302b277cf1ef2b82d09fbcabf840a8516b
[ "MIT" ]
1
2019-12-15T13:26:32.000Z
2019-12-15T13:26:32.000Z
// // SecondViewController.swift // TableViewExperiments // // Created by リヴォーフ ユーリ on 2019/12/14. // Copyright © 2019 リヴォーフ ユーリ. All rights reserved. // import UIKit class SecondViewController: UIViewController { var getCell: Int = 0 var vedgiName: String = "" @IBOutlet weak var localLabel: UILabel! override func viewDidLoad() { super.viewDidLoad() print(getCell) } override func viewWillAppear(_ animated: Bool) { print(vedgiName) localLabel.text = vedgiName } }
20.846154
52
0.651292
02875a92ad0c4f1bea1a0710a28d5f4ca17bc01d
1,364
kt
Kotlin
ui-testing-core/src/main/java/com/avito/android/test/checks/OnDescendantMatcherListItemChecksDriver.kt
KovalevAndrey/android-ui-testing
609a76fb1bf5570c6c77782a7c55f2c4e636e14b
[ "MIT" ]
null
null
null
ui-testing-core/src/main/java/com/avito/android/test/checks/OnDescendantMatcherListItemChecksDriver.kt
KovalevAndrey/android-ui-testing
609a76fb1bf5570c6c77782a7c55f2c4e636e14b
[ "MIT" ]
null
null
null
ui-testing-core/src/main/java/com/avito/android/test/checks/OnDescendantMatcherListItemChecksDriver.kt
KovalevAndrey/android-ui-testing
609a76fb1bf5570c6c77782a7c55f2c4e636e14b
[ "MIT" ]
null
null
null
package com.avito.android.test.checks import android.support.test.espresso.Espresso import android.support.test.espresso.ViewAssertion import android.support.test.espresso.ViewInteraction import android.support.test.espresso.contrib.RecyclerViewActions import android.support.v7.widget.RecyclerView import android.view.View import com.avito.android.test.UITestConfig import com.avito.android.test.interceptor.AssertionInterceptor import com.avito.android.test.waitToPerform import com.forkingcode.espresso.contrib.DescendantViewActions import org.hamcrest.Matcher @Deprecated("todo use InteractionContextMatcherChecksDriver") class OnDescendantMatcherListItemChecksDriver( private val listMatcher: Matcher<View>, private val matcher: Matcher<View>, private val childMatcher: Matcher<View> ) : ChecksDriver { private val interaction: ViewInteraction get() = Espresso.onView(listMatcher) override fun check(assertion: ViewAssertion) { val interceptedAssertion = AssertionInterceptor.Proxy(assertion, UITestConfig.assertionInterceptors) interaction.waitToPerform( RecyclerViewActions.actionOnItem<RecyclerView.ViewHolder>( matcher, DescendantViewActions.checkDescendantViewAction(childMatcher, interceptedAssertion) ).atPosition(0) ) } }
36.864865
99
0.778592
f2e881a256cce2048354660f1b019c0c1d37e37c
716
kt
Kotlin
shared/src/commonMain/kotlin/co/touchlab/droidcon/application/repository/impl/DefaultAboutRepository.kt
xsahil03x/DroidconKotlin
e7107a11121921a85ddb7ac5a51bc04319c853b0
[ "Apache-2.0" ]
499
2018-08-03T14:06:38.000Z
2022-03-04T08:14:55.000Z
shared/src/commonMain/kotlin/co/touchlab/droidcon/application/repository/impl/DefaultAboutRepository.kt
xsahil03x/DroidconKotlin
e7107a11121921a85ddb7ac5a51bc04319c853b0
[ "Apache-2.0" ]
70
2018-08-20T05:48:59.000Z
2021-12-24T19:40:06.000Z
shared/src/commonMain/kotlin/co/touchlab/droidcon/application/repository/impl/DefaultAboutRepository.kt
xsahil03x/DroidconKotlin
e7107a11121921a85ddb7ac5a51bc04319c853b0
[ "Apache-2.0" ]
52
2018-08-03T18:53:15.000Z
2022-02-09T08:11:30.000Z
package co.touchlab.droidcon.application.repository.impl import co.touchlab.droidcon.application.composite.AboutItem import co.touchlab.droidcon.application.repository.AboutRepository import co.touchlab.droidcon.composite.Url import co.touchlab.droidcon.domain.service.impl.json.AboutJsonResourceDataSource class DefaultAboutRepository( private val aboutJsonResourceDataSource: AboutJsonResourceDataSource, ): AboutRepository { override suspend fun getAboutItems(): List<AboutItem> { return aboutJsonResourceDataSource.getAboutItems().map { AboutItem( icon = it.icon, title = it.title, detail = it.detail, ) } } }
34.095238
80
0.719274
85df738662e39ace65830e0b3a9d7bf924d78fef
295
h
C
Application-OSX/SLSAppDelegate.h
chrisdevereux/Slash
1226fe873243a1100f328271263f2612f7095e6c
[ "MIT" ]
135
2015-01-10T03:39:15.000Z
2021-01-16T15:33:52.000Z
Application-OSX/SLSAppDelegate.h
chrisdevereux/Slash
1226fe873243a1100f328271263f2612f7095e6c
[ "MIT" ]
7
2015-03-10T13:37:16.000Z
2016-12-30T09:44:07.000Z
Application-OSX/SLSAppDelegate.h
chrisdevereux/Slash
1226fe873243a1100f328271263f2612f7095e6c
[ "MIT" ]
12
2015-02-10T12:12:02.000Z
2020-05-28T08:47:35.000Z
// // SLSAppDelegate.h // Application-OSX // // Created by Chris Devereux on 13/12/2012. // Copyright (c) 2012 Chris Devereux. All rights reserved. // #import <Cocoa/Cocoa.h> @interface SLSAppDelegate : NSObject <NSApplicationDelegate> @property (assign) IBOutlet NSWindow *window; @end
18.4375
60
0.722034
dbc4b7adf807db946fcb98c9f2bc266faf7eae16
4,953
swift
Swift
iOSHelloWorld/ScanSDK/Scan Cleaning/GeometrySlicer.swift
kanagudurai/PipeLine
72a5042cfebd8a5a45ce699000d473ed3aba4a6c
[ "CC-BY-4.0", "MIT" ]
null
null
null
iOSHelloWorld/ScanSDK/Scan Cleaning/GeometrySlicer.swift
kanagudurai/PipeLine
72a5042cfebd8a5a45ce699000d473ed3aba4a6c
[ "CC-BY-4.0", "MIT" ]
null
null
null
iOSHelloWorld/ScanSDK/Scan Cleaning/GeometrySlicer.swift
kanagudurai/PipeLine
72a5042cfebd8a5a45ce699000d473ed3aba4a6c
[ "CC-BY-4.0", "MIT" ]
null
null
null
// // GeometrySlicer.swift // HP-Arize // // Created by Alexandre Boyer Laporte on 2021-08-23. // import SceneKit import Combine protocol GeometrySlicer { func slicePromise(geometry: SCNGeometry, boundingBox: CleanerBoundBox, translation: SCNVector3, transform: SCNMatrix4) -> Future<SCNGeometry, Never> func slice(geometry: SCNGeometry, boundingBox: CleanerBoundBox, translation: SCNVector3, transform: SCNMatrix4) -> SCNGeometry } extension GeometrySlicer { func slicePromise( geometry: SCNGeometry, boundingBox: CleanerBoundBox, translation: SCNVector3, transform: SCNMatrix4 ) -> Future<SCNGeometry, Never> { Future { promise in DispatchQueue.global(qos: .utility).async { let geometry = slice( geometry: geometry, boundingBox: boundingBox, translation: translation, transform: transform ) promise(.success(geometry)) } } } func slice(geometry: SCNGeometry, boundingBox: CleanerBoundBox, translation: SCNVector3, transform: SCNMatrix4) -> SCNGeometry { let info = geometry.info var filteredVertices = [SCNGeometry.Vertex]() var filteredTriangles = [Int: SCNGeometry.Triangle]() let vertices = info.vertices let newBoundingBox = boundingBox info .triangles .enumerated() .forEach { filteredTriangles[$0] = $1 } vertices .forEach { (vertex) in if !newBoundingBox .contains( /*(*/vertex.coordinate //- translation) //.transformed(by: transform) ) { vertex .triangleIndexes .forEach { filteredTriangles[$0] = nil } } else { filteredVertices.append(vertex) } } filteredVertices .enumerated() .forEach { (index, vertex) in let newVertex = SCNGeometry.Vertex( coordinate: vertex.coordinate, normal: vertex.normal, index: index, edgesKeys: [], triangleIndexes: [] ) vertex .triangleIndexes .forEach { filteredTriangles[$0]?.update(newVertex) } } var faceIndices: [CInt] = [] let verts: [SCNVector3] = filteredVertices.map { /*(*/$0.coordinate //- translation) //.transformed(by: transform) } let colors = filteredVertices .compactMap { $0.color } filteredTriangles .values .forEach { triangle in let areTwoFacesIndicesEqual = triangle.v0.index == triangle.v1.index || triangle.v0.index == triangle.v2.index || triangle.v1.index == triangle.v2.index guard !areTwoFacesIndicesEqual else { return } faceIndices.append(CInt(triangle.v0.index)) faceIndices.append(CInt(triangle.v1.index)) faceIndices.append(CInt(triangle.v2.index)) } let vertexSource = SCNGeometrySource(vertices: verts) let element = SCNGeometryElement( indices: faceIndices, primitiveType: .triangles ) if colors.count != filteredVertices.count { return SCNGeometry( sources: [vertexSource], elements: [element] ) } else { let colorSource = SCNGeometrySource( colors: colors ) return SCNGeometry( sources: [vertexSource, colorSource], elements: [element] ) } } } private struct VertexContainer { var isDeleted: Bool var vertex: SCNGeometry.Vertex } struct CleanerBoundBox { let min: SCNVector3 let max: SCNVector3 var origin: SCNVector3 { return (max + min) * 0.5 } init(box: (min: SCNVector3, max: SCNVector3)) { min = box.min max = box.max } func contains(_ point: SCNVector3) -> Bool { let contains = min.x <= point.x && min.y <= point.y && min.z <= point.z && max.x >= point.x && max.y >= point.y && max.z >= point.z return contains } }
29.307692
67
0.488593
fb6b1c5150e9c18c1f1e0d0f9b7739be3299a7b6
4,078
java
Java
chrome/android/junit/src/org/chromium/chrome/browser/media/ui/MediaNotificationActionsUpdatedTest.java
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/android/junit/src/org/chromium/chrome/browser/media/ui/MediaNotificationActionsUpdatedTest.java
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/android/junit/src/org/chromium/chrome/browser/media/ui/MediaNotificationActionsUpdatedTest.java
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.chrome.browser.media.ui; import static org.junit.Assert.assertEquals; import static org.mockito.Mockito.any; import static org.mockito.Mockito.doCallRealMethod; import android.content.Intent; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.robolectric.annotation.Config; import org.chromium.base.BaseChromiumApplication; import org.chromium.blink.mojom.MediaSessionAction; import org.chromium.chrome.R; import org.chromium.chrome.browser.media.ui.MediaNotificationManager.ListenerService; import org.chromium.testing.local.LocalRobolectricTestRunner; import java.util.HashSet; import java.util.Set; /** * Test of media notifications to see whether the control buttons update when MediaSessionActions * change or the tab navigates. */ @RunWith(LocalRobolectricTestRunner.class) @Config(manifest = Config.NONE, application = BaseChromiumApplication.class, shadows = {MediaNotificationTestShadowResources.class, MediaNotificationTestShadowNotificationManager.class}) public class MediaNotificationActionsUpdatedTest extends MediaNotificationManagerTestBase { private static final int TAB_ID_1 = 1; private static final int TAB_ID_2 = 2; private static final int THROTTLE_MILLIS = MediaNotificationManager.Throttler.THROTTLE_MILLIS; private MediaNotificationTestTabHolder mTabHolder; @Before @Override public void setUp() { super.setUp(); getManager().mThrottler.mManager = getManager(); doCallRealMethod().when(getManager()).onServiceStarted(any(ListenerService.class)); doCallRealMethod().when(mMockAppHooks).startForegroundService(any(Intent.class)); mTabHolder = new MediaNotificationTestTabHolder(TAB_ID_1, "about:blank", "title1"); } @Test public void testActionsDefaultToNull() { mTabHolder.simulateMediaSessionStateChanged(true, false); assertEquals(new HashSet<Integer>(), getDisplayedActions()); } @Test public void testActionPropagateProperly() { mTabHolder.simulateMediaSessionActionsChanged(buildActions()); mTabHolder.simulateMediaSessionStateChanged(true, false); advanceTimeByMillis(THROTTLE_MILLIS); assertEquals(buildActions(), getDisplayedActions()); } @Test public void testActionsResetAfterNavigation() { mTabHolder.simulateNavigation("https://example.com/", false); mTabHolder.simulateMediaSessionActionsChanged(buildActions()); mTabHolder.simulateMediaSessionStateChanged(true, false); advanceTimeByMillis(THROTTLE_MILLIS); assertEquals(buildActions(), getDisplayedActions()); mTabHolder.simulateNavigation("https://example1.com/", false); advanceTimeByMillis(THROTTLE_MILLIS); assertEquals(new HashSet<Integer>(), getDisplayedActions()); } @Test public void testActionsPersistAfterSamePageNavigation() { mTabHolder.simulateNavigation("https://example.com/", false); mTabHolder.simulateMediaSessionActionsChanged(buildActions()); mTabHolder.simulateMediaSessionStateChanged(true, false); advanceTimeByMillis(THROTTLE_MILLIS); assertEquals(buildActions(), getDisplayedActions()); mTabHolder.simulateNavigation("https://example.com/foo.html", true); advanceTimeByMillis(THROTTLE_MILLIS); assertEquals(buildActions(), getDisplayedActions()); } @Override int getNotificationId() { return R.id.media_playback_notification; } private Set<Integer> getDisplayedActions() { return getManager().mMediaNotificationInfo.mediaSessionActions; } private Set<Integer> buildActions() { HashSet<Integer> actions = new HashSet<>(); actions.add(MediaSessionAction.PLAY); actions.add(MediaSessionAction.PAUSE); return actions; } }
37.072727
98
0.743747
0b829ab3570dda786322f71fd0c867093ba7b3dc
1,705
py
Python
composer/datasets/brats_hparams.py
growlix/composer
27418a3c65dca26d90ac09c6ae67cbd5d0202ccf
[ "Apache-2.0" ]
null
null
null
composer/datasets/brats_hparams.py
growlix/composer
27418a3c65dca26d90ac09c6ae67cbd5d0202ccf
[ "Apache-2.0" ]
null
null
null
composer/datasets/brats_hparams.py
growlix/composer
27418a3c65dca26d90ac09c6ae67cbd5d0202ccf
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 MosaicML Composer authors # SPDX-License-Identifier: Apache-2.0 """BraTS (Brain Tumor Segmentation) dataset hyperparameters.""" from dataclasses import dataclass import torch import yahp as hp from composer.datasets.brats import PytTrain, PytVal, get_data_split from composer.datasets.dataset_hparams import DataLoaderHparams, DatasetHparams from composer.utils import dist def _my_collate(batch): """Custom collate function to handle images with different depths.""" data = [item[0] for item in batch] target = [item[1] for item in batch] return [torch.Tensor(data), torch.Tensor(target)] @dataclass class BratsDatasetHparams(DatasetHparams): """Defines an instance of the BraTS dataset for image segmentation. Args: oversampling (float): The oversampling ratio to use. Default: ``0.33``. """ oversampling: float = hp.optional("oversampling", default=0.33) def initialize_object(self, batch_size: int, dataloader_hparams: DataLoaderHparams): oversampling = self.oversampling if self.datadir is None: raise ValueError("datadir must be specified.") x_train, y_train, x_val, y_val = get_data_split(self.datadir) dataset = PytTrain(x_train, y_train, oversampling) if self.is_train else PytVal(x_val, y_val) collate_fn = None if self.is_train else _my_collate sampler = dist.get_sampler(dataset, drop_last=self.drop_last, shuffle=self.shuffle) return dataloader_hparams.initialize_object( dataset=dataset, batch_size=batch_size, sampler=sampler, drop_last=self.drop_last, collate_fn=collate_fn, )
32.788462
101
0.71261
40ae4434d9caa9b0f830fad4da9894201bc0bf94
759
py
Python
smatrix/mdx_c2e.py
ffreemt/similarity-matrix
f72d5c76083588aaa8faf5aefad1ac5aeae2f715
[ "MIT" ]
null
null
null
smatrix/mdx_c2e.py
ffreemt/similarity-matrix
f72d5c76083588aaa8faf5aefad1ac5aeae2f715
[ "MIT" ]
null
null
null
smatrix/mdx_c2e.py
ffreemt/similarity-matrix
f72d5c76083588aaa8faf5aefad1ac5aeae2f715
[ "MIT" ]
null
null
null
"""Load mdx_dict_c2e. mdx_e2c = joblib.load("./mdx_dict_e2c.lzma") mdx_c2e = joblib.load("./mdx_dict_e2c.lzma") """ from pathlib import Path import joblib c_dir = Path(__file__).parent # lazy load in __init__.py like this? # mdx_e2c = importlib.import_module("tinybee.mdx_e2c") # mdx_e2c = mdx_e2c.mdx_e2c # mdx_c2e = importlib.import_module("tinybee.mdx_c2e") # mdx_c2e = mdx_c2e.mdx_c2e mdx_dict_e2c = joblib.load(c_dir / "mdx_dict_c2e.lzma") print("c2e lzma loaded") def mdx_c2e(word: str) -> str: """Fetch definition for word. Args: word: word to look up Returns: c1e definition entry or word itself"" >>> mdx_c2e("do") 'do' >>> mdx_c2e("我").__len__() 13 """ return mdx_dict_e2c.get(word, word)
21.685714
55
0.673254
aafde109933ef8a385cfbe293d9bb2ae81bb1daa
8,813
swift
Swift
NewsApp/ViewControllers/HomeVC.swift
bretsko/NewsApp
a6165f488eaa7d7c12ab39e041bf4eeb2a118a29
[ "MIT" ]
null
null
null
NewsApp/ViewControllers/HomeVC.swift
bretsko/NewsApp
a6165f488eaa7d7c12ab39e041bf4eeb2a118a29
[ "MIT" ]
null
null
null
NewsApp/ViewControllers/HomeVC.swift
bretsko/NewsApp
a6165f488eaa7d7c12ab39e041bf4eeb2a118a29
[ "MIT" ]
null
null
null
// // HomeVC.swift // NewsApp // // Created by Macbook Pro 15 on 4/23/20. // Copyright © 2020 SamuelFolledo. All rights reserved. // import UIKit class HomeVC: UIViewController { @IBOutlet weak var collectionView: UICollectionView! var searchController: UISearchController! weak var coordinator: MainCoordinator? //MARK: - table sections enum TableSection: Int { case category = 1 case country = 3 case languages = 5 case sources = 7 var name: String { switch self { case .category: return "Categories" case .country: return "Countries" case .languages: return "Languages" case .sources: return "Sources" } } } private var sections: [Section] = [ TitleSection(title: TableSection.category.name), ImageSection(categories: Category.allCases), TitleSection(title: TableSection.country.name), BodySection(cellNames: Country.allCases.map { $0.rawValue }), TitleSection(title: TableSection.languages.name), BodySection(cellNames: Language.allCases.map { $0.rawValue }), TitleSection(title: TableSection.sources.name), BodySection(cellNames: []) // keep it empty for now as we fetch sources ] func getBodySection(_ titleSection: TableSection) -> BodySection { sections[titleSection.rawValue] as! BodySection } func setSection(_ titleSection: TableSection, with bodySection: BodySection) { sections[titleSection.rawValue] = bodySection } var sources: [Source] = [] { didSet { let bodySection = BodySection(cellNames: sources.map { $0.name }) setSection(.sources, with: bodySection) collectionView.reloadData() } } //MARK: - App LifeCycle override func viewDidLoad() { super.viewDidLoad() setupViews() } override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) NetworkManager.shared.numArticlesOnBackend = 0 } //MARK: - setup UI private func setupViews() { navigationItem.title = "News Stand" setupCollectionView() setupSearchBar() loadAllSources() } private func setupSearchBar() { searchController = UISearchController(searchResultsController: nil) searchController.obscuresBackgroundDuringPresentation = false let searchBar = searchController.searchBar searchBar.tintColor = .white searchBar.barTintColor = UIColor.blue searchBar.returnKeyType = .search searchBar.tintColor = .darkGray searchBar.searchTextField.delegate = self searchBar.searchTextField.placeholder = "Search for News" searchBar.searchTextField.clearButtonMode = .always // cancel button searchController.searchBar.showsCancelButton = false let toolBar = UIToolbar() toolBar.sizeToFit() let flexibleBar = UIBarButtonItem(barButtonSystemItem: .flexibleSpace, target: self, action: nil) let cancelButton = UIBarButtonItem(barButtonSystemItem: .cancel, target: self, action: #selector(handleDismissTap(_:))) toolBar.setItems([flexibleBar, cancelButton], animated: true) searchBar.searchTextField.inputAccessoryView = toolBar navigationItem.searchController = searchController } private func setupCollectionView() { collectionView.collectionViewLayout = UICollectionViewCompositionalLayout { (sectionIndex, _) -> NSCollectionLayoutSection? in self.sections[sectionIndex].layoutSection() } collectionView.delegate = self collectionView.dataSource = self collectionView.showsVerticalScrollIndicator = false collectionView.register(UINib(nibName: TitleCell.identifier, bundle: .main), forCellWithReuseIdentifier: TitleCell.identifier) collectionView.register(UINib(nibName: ImageCell.identifier, bundle: .main), forCellWithReuseIdentifier: ImageCell.identifier) collectionView.register(UINib(nibName: LabelCell.identifier, bundle: .main), forCellWithReuseIdentifier: LabelCell.identifier) } //MARK: - IBActions @objc func handleDismissTap(_ gesture: UITapGestureRecognizer) { searchController.searchBar.endEditing(false) } //MARK: - /// fetches a list of sources which is needed to fetch articles by language and by source private func loadAllSources() { NetworkManager.shared.fetchAllSources { result in DispatchQueue.main.async { [weak self] in guard let weakSelf = self else { return } switch result { case let .success(sources): weakSelf.sources = sources case let .failure(error): weakSelf.presentAlert(title: "Error", message: error.localizedDescription) } } } } } //MARK: - UICollectionViewDelegate extension HomeVC: UICollectionViewDelegate { func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) { guard let tableSection = TableSection(rawValue: indexPath.section) else { // titles return } let endpoint: EndPoint let vcTitle: String switch tableSection { case .category: let section = sections[indexPath.section] as! ImageSection let category = section.categories[indexPath.row] // ?? 2 ways to get category ? vcTitle = Category.allCases[indexPath.row].rawValue + " News" fatalError() //endpoint = .category(category) case .country: let country = Country.allCases[indexPath.row] vcTitle = country.rawValue + " News" fatalError() //endpoint = .country(country) case .languages: let language = Language.allCases[indexPath.row] vcTitle = language.rawValue + " News" let sourcesQueryString = Language.getSourcesString(language: language.rawValue, sources: sources) if sourcesQueryString.isEmpty { fatalError() } fatalError() //endpoint = .language(language, sourcesQueryString) case .sources: let source = sources[indexPath.row] vcTitle = source.name let filterOption = FilterOption.source(source) fatalError() //endpoint = .source(Set([filterOption])) } coordinator?.goToNewsList(endpoint: endpoint, vcTitle: vcTitle) } } //MARK: - UICollectionViewDataSource extension HomeVC: UICollectionViewDataSource { func numberOfSections(in collectionView: UICollectionView) -> Int { sections.count } func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { sections[section].numberOfItems } func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { let section = sections[indexPath.section] if let sect = section as? TitleSection { return sect.configureCell(in: collectionView, at: indexPath) } else if let sect = section as? ImageSection { return sect.configureCell(in: collectionView, at: indexPath) } else if let sect = section as? BodySection { return sect.configureCell(in: collectionView, at: indexPath) } else { return section.configureCell(in: collectionView, at: indexPath) } } } //MARK: - UISearchTextFieldDelegate extension HomeVC: UISearchTextFieldDelegate { func textFieldShouldReturn(_ textField: UITextField) -> Bool { textField.resignFirstResponder() if let text = textField.text { let filter = FilterOption.query(text) coordinator?.goToNewsList(endpoint: .search(Set([filter])), vcTitle: text + " News") } return true } }
33.256604
134
0.600704
7d5780a0d1d4cb994bfa0bb4ea9c990c542892f8
1,011
html
HTML
chapter-7/app/src/contacts/components/photo.html
dudumanbogdan/Learning-Aurelia
c6288edb923b19d17ad0f786483b3c844dc49304
[ "MIT" ]
16
2016-12-26T21:24:33.000Z
2021-11-08T13:12:03.000Z
chapter-7/app/src/contacts/components/photo.html
dudumanbogdan/Learning-Aurelia
c6288edb923b19d17ad0f786483b3c844dc49304
[ "MIT" ]
5
2017-02-08T17:55:52.000Z
2019-02-22T11:32:56.000Z
chapter-7/app/src/contacts/components/photo.html
dudumanbogdan/Learning-Aurelia
c6288edb923b19d17ad0f786483b3c844dc49304
[ "MIT" ]
14
2017-01-30T18:19:26.000Z
2018-04-03T10:14:08.000Z
<template> <section class="container"> <h1>${contact.fullName}</h1> <form class="form-horizontal" validation-renderer="bootstrap-form" submit-task.call="save()"> <div class="form-group"> <label class="col-sm-3 control-label" for="photo">Photo</label> <div class="col-sm-6"> <file-picker input-id="photo" accept="image/*" files.bind="photo & validate" validation-errors.bind="photoErrors" class="thumbnail"> <strong hide.bind="preview"> Click to select a file or drag and drop one here </strong> <img show.bind="preview" blob-src.bind="preview" alt="Preview"> </file-picker> </div> </div> <div class="form-group"> <div class="col-sm-9 col-sm-offset-3"> <submit-button>Save</submit-button> <a class="btn btn-danger" route-href="route: contact-details; params.bind: { id: contact.id }">Cancel</a> </div> </div> </form> </section> </template>
37.444444
142
0.587537
4c321e4e3206367af43584e9146f8855eaf388ac
1,386
php
PHP
web/app/themes/inclusiva/resources/views/partials/section/la-institucion.blade.php
agrorural/InclusivaV5
4ca03fdffdd4c2d18afb6bf8a61a16f500da7f44
[ "MIT" ]
null
null
null
web/app/themes/inclusiva/resources/views/partials/section/la-institucion.blade.php
agrorural/InclusivaV5
4ca03fdffdd4c2d18afb6bf8a61a16f500da7f44
[ "MIT" ]
null
null
null
web/app/themes/inclusiva/resources/views/partials/section/la-institucion.blade.php
agrorural/InclusivaV5
4ca03fdffdd4c2d18afb6bf8a61a16f500da7f44
[ "MIT" ]
null
null
null
@php $page_1 = get_page_by_path('la-institucion'); $page_2 = get_page_by_path('la-institucion/directorio'); $page_3 = get_page_by_path('la-institucion/organigrama'); $page_1_ID = $page_1->ID; $page_2_ID = $page_2->ID; $page_3_ID = $page_3->ID; $the_post = get_post($page_1_ID); $content = get_post_field( 'post_content', $page_1_ID ); $content_parts = get_extended( $content ); {{-- echo '<pre>'; var_dump(get_permalink($page_1_ID)); echo '</pre>'; --}} @endphp <section id="who-we-are" class="section"> <div class="container"> <article> <aside> @php if (has_post_thumbnail( $page_1_ID ) ){ $image = get_the_post_thumbnail($page_1_ID); echo $image; } @endphp </aside> <div class="section-content"> <h2 class="section-title who-we-are">{!! $the_post->post_title !!}</h2> <p>{!! $content_parts['main'] !!}</p> <p><a href="{{get_permalink($page_1_ID)}}" class="btn btn-outline-primary">Más info</a></p> <nav class="nav"> <a class="nav-link active" href="{{get_permalink($page_1_ID)}}">Quiénes somos</a> <a class="nav-link" href="{{get_permalink($page_2_ID)}}">Directorio</a> <a class="nav-link" href="{{get_permalink($page_3_ID)}}">Organigrama</a> </nav> </div> </article> </div> </section>
31.5
99
0.590188
22ac88fa226e11cc1ebe67970dcf8239bc2d68d5
11,378
html
HTML
docs/build/html/genindex.html
mazi76erX2/mention-python
5133f463faa4ef053365fbf15db0a75dbb00a4e5
[ "MIT" ]
null
null
null
docs/build/html/genindex.html
mazi76erX2/mention-python
5133f463faa4ef053365fbf15db0a75dbb00a4e5
[ "MIT" ]
null
null
null
docs/build/html/genindex.html
mazi76erX2/mention-python
5133f463faa4ef053365fbf15db0a75dbb00a4e5
[ "MIT" ]
null
null
null
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Index &#8212; mention-python 0.1 documentation</title> <link rel="stylesheet" href="_static/alabaster.css" type="text/css" /> <link rel="stylesheet" href="_static/pygments.css" type="text/css" /> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT: './', VERSION: '0.1', COLLAPSE_INDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: true, SOURCELINK_SUFFIX: '.txt' }; </script> <script type="text/javascript" src="_static/jquery.js"></script> <script type="text/javascript" src="_static/underscore.js"></script> <script type="text/javascript" src="_static/doctools.js"></script> <link rel="index" title="Index" href="#" /> <link rel="search" title="Search" href="search.html" /> <link rel="stylesheet" href="_static/custom.css" type="text/css" /> <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" /> </head> <body> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body" role="main"> <h1 id="index">Index</h1> <div class="genindex-jumpbox"> <a href="#A"><strong>A</strong></a> | <a href="#C"><strong>C</strong></a> | <a href="#D"><strong>D</strong></a> | <a href="#F"><strong>F</strong></a> | <a href="#M"><strong>M</strong></a> | <a href="#P"><strong>P</strong></a> | <a href="#Q"><strong>Q</strong></a> | <a href="#T"><strong>T</strong></a> | <a href="#U"><strong>U</strong></a> </div> <h2 id="A">A</h2> <table style="width: 100%" class="indextable genindextable"><tr> <td style="width: 33%; vertical-align: top;"><ul> <li><a href="api.html#mention.base.AppDataAPI">AppDataAPI (class in mention.base)</a> </li> </ul></td> </tr></table> <h2 id="C">C</h2> <table style="width: 100%" class="indextable genindextable"><tr> <td style="width: 33%; vertical-align: top;"><ul> <li><a href="api.html#mention.base.CreateAnAlertAPI">CreateAnAlertAPI (class in mention.base)</a> </li> </ul></td> <td style="width: 33%; vertical-align: top;"><ul> <li><a href="api.html#mention.base.CurateAMentionAPI">CurateAMentionAPI (class in mention.base)</a> </li> </ul></td> </tr></table> <h2 id="D">D</h2> <table style="width: 100%" class="indextable genindextable"><tr> <td style="width: 33%; vertical-align: top;"><ul> <li><a href="api.html#mention.base.CreateAnAlertAPI.data">data (mention.base.CreateAnAlertAPI attribute)</a> <ul> <li><a href="api.html#mention.base.CurateAMentionAPI.data">(mention.base.CurateAMentionAPI attribute)</a> </li> <li><a href="api.html#mention.base.UpdateAnAlertAPI.data">(mention.base.UpdateAnAlertAPI attribute)</a> </li> </ul></li> </ul></td> </tr></table> <h2 id="F">F</h2> <table style="width: 100%" class="indextable genindextable"><tr> <td style="width: 33%; vertical-align: top;"><ul> <li><a href="api.html#mention.base.FetchAlertsAPI">FetchAlertsAPI (class in mention.base)</a> </li> <li><a href="api.html#mention.base.FetchAllMentionsAPI">FetchAllMentionsAPI (class in mention.base)</a> </li> </ul></td> <td style="width: 33%; vertical-align: top;"><ul> <li><a href="api.html#mention.base.FetchAMentionAPI">FetchAMentionAPI (class in mention.base)</a> </li> <li><a href="api.html#mention.base.FetchAnAlertAPI">FetchAnAlertAPI (class in mention.base)</a> </li> <li><a href="api.html#mention.base.FetchMentionChildrenAPI">FetchMentionChildrenAPI (class in mention.base)</a> </li> </ul></td> </tr></table> <h2 id="M">M</h2> <table style="width: 100%" class="indextable genindextable"><tr> <td style="width: 33%; vertical-align: top;"><ul> <li><a href="api.html#mention.base.MarkAllMentionsAsReadAPI">MarkAllMentionsAsReadAPI (class in mention.base)</a> </li> <li><a href="api.html#mention.base.Mention">Mention (class in mention.base)</a> </li> </ul></td> <td style="width: 33%; vertical-align: top;"><ul> <li><a href="mention.html#module-mention">mention (module)</a> </li> <li><a href="api.html#module-mention.base">mention.base (module)</a> </li> <li><a href="api.html#module-mention.utils">mention.utils (module)</a> </li> </ul></td> </tr></table> <h2 id="P">P</h2> <table style="width: 100%" class="indextable genindextable"><tr> <td style="width: 33%; vertical-align: top;"><ul> <li><a href="api.html#mention.base.CreateAnAlertAPI.params">params (mention.base.CreateAnAlertAPI attribute)</a> <ul> <li><a href="api.html#mention.base.CurateAMentionAPI.params">(mention.base.CurateAMentionAPI attribute)</a> </li> <li><a href="api.html#mention.base.FetchAMentionAPI.params">(mention.base.FetchAMentionAPI attribute)</a> </li> <li><a href="api.html#mention.base.FetchAlertsAPI.params">(mention.base.FetchAlertsAPI attribute)</a> </li> <li><a href="api.html#mention.base.FetchAllMentionsAPI.params">(mention.base.FetchAllMentionsAPI attribute)</a> </li> <li><a href="api.html#mention.base.FetchAnAlertAPI.params">(mention.base.FetchAnAlertAPI attribute)</a> </li> <li><a href="api.html#mention.base.FetchMentionChildrenAPI.params">(mention.base.FetchMentionChildrenAPI attribute)</a> </li> <li><a href="api.html#mention.base.MarkAllMentionsAsReadAPI.params">(mention.base.MarkAllMentionsAsReadAPI attribute)</a> </li> <li><a href="api.html#mention.base.UpdateAnAlertAPI.params">(mention.base.UpdateAnAlertAPI attribute)</a> </li> </ul></li> </ul></td> <td style="width: 33%; vertical-align: top;"><ul> <li><a href="api.html#mention.base.Mention.params">params() (mention.base.Mention method)</a> </li> </ul></td> </tr></table> <h2 id="Q">Q</h2> <table style="width: 100%" class="indextable genindextable"><tr> <td style="width: 33%; vertical-align: top;"><ul> <li><a href="api.html#mention.base.AppDataAPI.query">query() (mention.base.AppDataAPI method)</a> <ul> <li><a href="api.html#mention.base.CreateAnAlertAPI.query">(mention.base.CreateAnAlertAPI method)</a> </li> <li><a href="api.html#mention.base.CurateAMentionAPI.query">(mention.base.CurateAMentionAPI method)</a> </li> <li><a href="api.html#mention.base.FetchAMentionAPI.query">(mention.base.FetchAMentionAPI method)</a> </li> <li><a href="api.html#mention.base.FetchAlertsAPI.query">(mention.base.FetchAlertsAPI method)</a> </li> <li><a href="api.html#mention.base.FetchAllMentionsAPI.query">(mention.base.FetchAllMentionsAPI method)</a> </li> <li><a href="api.html#mention.base.FetchAnAlertAPI.query">(mention.base.FetchAnAlertAPI method)</a> </li> <li><a href="api.html#mention.base.FetchMentionChildrenAPI.query">(mention.base.FetchMentionChildrenAPI method)</a> </li> <li><a href="api.html#mention.base.MarkAllMentionsAsReadAPI.query">(mention.base.MarkAllMentionsAsReadAPI method)</a> </li> <li><a href="api.html#mention.base.Mention.query">(mention.base.Mention method)</a> </li> <li><a href="api.html#mention.base.UpdateAnAlertAPI.query">(mention.base.UpdateAnAlertAPI method)</a> </li> </ul></li> </ul></td> </tr></table> <h2 id="T">T</h2> <table style="width: 100%" class="indextable genindextable"><tr> <td style="width: 33%; vertical-align: top;"><ul> <li><a href="api.html#mention.utils.transform_boolean">transform_boolean() (in module mention.utils)</a> </li> </ul></td> <td style="width: 33%; vertical-align: top;"><ul> <li><a href="api.html#mention.utils.transform_date">transform_date() (in module mention.utils)</a> </li> <li><a href="api.html#mention.utils.transform_tone">transform_tone() (in module mention.utils)</a> </li> </ul></td> </tr></table> <h2 id="U">U</h2> <table style="width: 100%" class="indextable genindextable"><tr> <td style="width: 33%; vertical-align: top;"><ul> <li><a href="api.html#mention.base.UpdateAnAlertAPI">UpdateAnAlertAPI (class in mention.base)</a> </li> <li><a href="api.html#mention.base.AppDataAPI.url">url (mention.base.AppDataAPI attribute)</a> <ul> <li><a href="api.html#mention.base.CreateAnAlertAPI.url">(mention.base.CreateAnAlertAPI attribute)</a> </li> <li><a href="api.html#mention.base.CurateAMentionAPI.url">(mention.base.CurateAMentionAPI attribute)</a> </li> <li><a href="api.html#mention.base.FetchAMentionAPI.url">(mention.base.FetchAMentionAPI attribute)</a> </li> <li><a href="api.html#mention.base.FetchAlertsAPI.url">(mention.base.FetchAlertsAPI attribute)</a> </li> <li><a href="api.html#mention.base.FetchAllMentionsAPI.url">(mention.base.FetchAllMentionsAPI attribute)</a> </li> <li><a href="api.html#mention.base.FetchAnAlertAPI.url">(mention.base.FetchAnAlertAPI attribute)</a> </li> <li><a href="api.html#mention.base.FetchMentionChildrenAPI.url">(mention.base.FetchMentionChildrenAPI attribute)</a> </li> <li><a href="api.html#mention.base.MarkAllMentionsAsReadAPI.url">(mention.base.MarkAllMentionsAsReadAPI attribute)</a> </li> <li><a href="api.html#mention.base.UpdateAnAlertAPI.url">(mention.base.UpdateAnAlertAPI attribute)</a> </li> </ul></li> </ul></td> <td style="width: 33%; vertical-align: top;"><ul> <li><a href="api.html#mention.base.Mention.url">url() (mention.base.Mention method)</a> </li> </ul></td> </tr></table> </div> </div> </div> <div class="sphinxsidebar" role="navigation" aria-label="main navigation"> <div class="sphinxsidebarwrapper"><p class="logo"> <a href="index.html"> <img class="logo" src="_static/mention-sidebar.png" title="Mention-Python"/> </a> </p> <p> Mention-Python is a library that provides a pure Python interface for the Mention API. </p> <h3><a href="index.html">Table Of Contents</a></h3> <ul> <li class="toctree-l1"><a class="reference internal" href="installation.html">Installation</a></li> <li class="toctree-l1"><a class="reference internal" href="getting_started.html">Getting Started</a></li> <li class="toctree-l1"><a class="reference internal" href="api.html">Developer Docs</a></li> <li class="toctree-l1"><a class="reference internal" href="changelog.html">Change Log</a></li> </ul> <div id="searchbox" style="display: none" role="search"> <h3>Quick search</h3> <form class="search" action="search.html" method="get"> <div><input type="text" name="q" /></div> <div><input type="submit" value="Go" /></div> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> </div> <script type="text/javascript">$('#searchbox').show(0);</script> </div> </div> <div class="clearer"></div> </div> <div class="footer"> &copy;2018, Xolani Mazibuko. | Powered by <a href="http://sphinx-doc.org/">Sphinx 1.6.6</a> &amp; <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.10</a> </div> </body> </html>
39.922807
129
0.655124
0d73025f84c25cee320ef82e83afce2865b2b7d3
3,576
swift
Swift
Example4Swift/Example4Swift/MainViewController.swift
iDevelopper/PBRevealViewController
b28073993f0e3d4731998060bf783a221768f68e
[ "MIT" ]
82
2016-07-22T11:04:34.000Z
2021-08-15T09:13:29.000Z
Example4Swift/Example4Swift/MainViewController.swift
sorinmiroiu97/PBRevealViewController
3d4631409a79fbe78c1e3946b33f1b0d5f75c8d9
[ "MIT" ]
86
2016-08-24T10:59:10.000Z
2020-12-09T06:36:06.000Z
Example4Swift/Example4Swift/MainViewController.swift
sorinmiroiu97/PBRevealViewController
3d4631409a79fbe78c1e3946b33f1b0d5f75c8d9
[ "MIT" ]
17
2016-08-30T17:50:50.000Z
2019-11-19T07:44:08.000Z
// // MainViewController.swift // Example4Swift // // Created by Patrick BODET on 09/08/2016. // Copyright © 2016 iDevelopper. All rights reserved. // import UIKit class MainViewController: UIViewController { @IBOutlet weak var menuButton: UIBarButtonItem! @IBOutlet weak var rightButton: UIBarButtonItem! override func viewDidLoad() { super.viewDidLoad() menuButton.target = self.revealViewController() menuButton.action = #selector(PBRevealViewController.revealLeftView) rightButton.target = self.revealViewController() rightButton.action = #selector(PBRevealViewController.revealRightView) } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } @IBAction func resizeLeftView(_ sender: UIButton) { if revealViewController().leftViewRevealWidth < 260 { revealViewController().leftViewRevealWidth = 260 } else { revealViewController().leftViewRevealWidth = 160 } } @IBAction func replaceLeftView(_ sender: UIButton) { var controller: UIViewController? let storyboard = UIStoryboard(name: "Main", bundle: nil) let nc = revealViewController().leftViewController as! UINavigationController if nc.topViewController! is MenuTableViewController { controller = storyboard.instantiateViewController(withIdentifier: "RightMenuTableViewController") } else { controller = storyboard.instantiateViewController(withIdentifier: "MenuTableViewController") } let newNc = UINavigationController(rootViewController: controller!) revealViewController().setLeft(newNc, animated: true) } @IBAction func replaceMainView(_ sender: UIButton) { var controller: UIViewController? let storyboard = UIStoryboard(name: "Main", bundle: nil) let nc = revealViewController().mainViewController as! UINavigationController if nc.topViewController! is MainViewController { controller = storyboard.instantiateViewController(withIdentifier: "SecondViewController") } else { controller = storyboard.instantiateViewController(withIdentifier: "MainViewController") } let newNc = UINavigationController(rootViewController: controller!) revealViewController().setMain(newNc, animated: true) } @IBAction func replaceRightView(_ sender: UIButton) { var controller: UIViewController? let storyboard = UIStoryboard(name: "Main", bundle: nil) let nc = revealViewController().rightViewController as! UINavigationController if nc.topViewController! is RightMenuTableViewController { controller = storyboard.instantiateViewController(withIdentifier: "MenuTableViewController") } else { controller = storyboard.instantiateViewController(withIdentifier: "RightMenuTableViewController") } let newNc = UINavigationController(rootViewController: controller!) revealViewController().setRight(newNc, animated: true) } @IBAction func resizeRightView(_ sender: UIButton) { if revealViewController().rightViewRevealWidth < 260 { revealViewController().rightViewRevealWidth = 260 } else { revealViewController().rightViewRevealWidth = 160 } } }
36.865979
109
0.678412
fb646b52b56b63daf3dd54d0f297ed48e488bf2c
1,265
java
Java
scribble-core/src/main/java/org/scribble/visit/env/InlineProtocolEnv.java
haileyfong/scribble-java
19ea1dc1dfd5d08378e31a63c51a8d6a54d10f7a
[ "Apache-2.0" ]
1
2018-04-16T04:55:21.000Z
2018-04-16T04:55:21.000Z
scribble-core/src/main/java/org/scribble/visit/env/InlineProtocolEnv.java
haileyfong/scribble-java
19ea1dc1dfd5d08378e31a63c51a8d6a54d10f7a
[ "Apache-2.0" ]
null
null
null
scribble-core/src/main/java/org/scribble/visit/env/InlineProtocolEnv.java
haileyfong/scribble-java
19ea1dc1dfd5d08378e31a63c51a8d6a54d10f7a
[ "Apache-2.0" ]
1
2021-11-26T00:19:34.000Z
2021-11-26T00:19:34.000Z
/** * Copyright 2008 The Scribble Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. */ package org.scribble.visit.env; import org.scribble.ast.ScribNode; public class InlineProtocolEnv extends Env<InlineProtocolEnv> { private ScribNode inlined; public InlineProtocolEnv() { } @Override protected InlineProtocolEnv copy() { return new InlineProtocolEnv(); } @Override public InlineProtocolEnv enterContext() { return copy(); } public ScribNode getTranslation() { return this.inlined; } public InlineProtocolEnv setTranslation(ScribNode inlined) { InlineProtocolEnv copy = new InlineProtocolEnv(); copy.inlined = inlined; return copy; } @Override public String toString() { return "inlined=" + this.inlined; } }
22.192982
100
0.743083
f4e35e726152a8e0043221bce51d2285e0011e32
9,594
swift
Swift
Tests/FluentPostgresDriverTests/FluentPostgresDriverTests.swift
rnantes/fluent-postgres-driver
2bf6bf28c0f5e4fad5038660f851f13eff6720c7
[ "MIT" ]
null
null
null
Tests/FluentPostgresDriverTests/FluentPostgresDriverTests.swift
rnantes/fluent-postgres-driver
2bf6bf28c0f5e4fad5038660f851f13eff6720c7
[ "MIT" ]
null
null
null
Tests/FluentPostgresDriverTests/FluentPostgresDriverTests.swift
rnantes/fluent-postgres-driver
2bf6bf28c0f5e4fad5038660f851f13eff6720c7
[ "MIT" ]
null
null
null
import Logging import FluentBenchmark import FluentPostgresDriver import XCTest final class FluentPostgresDriverTests: XCTestCase { func testAll() throws { try self.benchmarker.testAll() } func testAggregate() throws { try self.benchmarker.testAggregate() } func testArray() throws { try self.benchmarker.testArray() } func testBatch() throws { try self.benchmarker.testBatch() } func testChildren() throws { try self.benchmarker.testChildren() } func testChunk() throws { try self.benchmarker.testChunk() } func testCRUD() throws { try self.benchmarker.testCRUD() } func testEagerLoad() throws { try self.benchmarker.testEagerLoad() } func testEnum() throws { try self.benchmarker.testEnum() } func testFilter() throws { try self.benchmarker.testFilter() } func testGroup() throws { try self.benchmarker.testGroup() } func testID() throws { try self.benchmarker.testID() } func testJoin() throws { try self.benchmarker.testJoin() } func testMiddleware() throws { try self.benchmarker.testMiddleware() } func testMigrator() throws { try self.benchmarker.testMigrator() } func testModel() throws { try self.benchmarker.testModel() } func testOptionalParent() throws { try self.benchmarker.testOptionalParent() } func testPagination() throws { try self.benchmarker.testPagination() } func testParent() throws { try self.benchmarker.testParent() } func testPerformance() throws { try self.benchmarker.testPerformance() } func testRange() throws { try self.benchmarker.testRange() } func testSet() throws { try self.benchmarker.testSet() } func testSiblings() throws { try self.benchmarker.testSiblings() } func testSoftDelete() throws { try self.benchmarker.testSoftDelete() } func testSort() throws { try self.benchmarker.testSort() } func testTimestamp() throws { try self.benchmarker.testTimestamp() } func testTransaction() throws { try self.benchmarker.testTransaction() } func testUnique() throws { try self.benchmarker.testUnique() } func testDatabaseError() throws { let sql = (self.db as! SQLDatabase) do { try sql.raw("asd").run().wait() } catch let error as DatabaseError where error.isSyntaxError { // PASS } catch { XCTFail("\(error)") } do { try sql.raw("CREATE TABLE foo (name TEXT UNIQUE)").run().wait() try sql.raw("INSERT INTO foo (name) VALUES ('bar')").run().wait() try sql.raw("INSERT INTO foo (name) VALUES ('bar')").run().wait() } catch let error as DatabaseError where error.isConstraintFailure { // pass } catch { XCTFail("\(error)") } } func testBlob() throws { final class Foo: Model { static let schema = "foos" @ID(key: "id") var id: Int? @Field(key: "data") var data: [UInt8] init() { } } struct CreateFoo: Migration { func prepare(on database: Database) -> EventLoopFuture<Void> { return database.schema("foos") .field("id", .int, .identifier(auto: true)) .field("data", .data, .required) .create() } func revert(on database: Database) -> EventLoopFuture<Void> { return database.schema("foos").delete() } } try CreateFoo().prepare(on: self.db).wait() try CreateFoo().revert(on: self.db).wait() } func testSaveModelWithBool() throws { final class Organization: Model { static let schema = "orgs" @ID(custom: "id", generatedBy: .database) var id: Int? @Field(key: "disabled") var disabled: Bool init() { } } struct CreateOrganization: Migration { func prepare(on database: Database) -> EventLoopFuture<Void> { return database.schema("orgs") .field("id", .int, .identifier(auto: true)) .field("disabled", .bool, .required) .create() } func revert(on database: Database) -> EventLoopFuture<Void> { return database.schema("orgs").delete() } } try CreateOrganization().prepare(on: self.db).wait() defer { try! CreateOrganization().revert(on: self.db).wait() } let new = Organization() new.disabled = false try new.save(on: self.db).wait() } func testCustomJSON() throws { try EventMigration().prepare(on: self.db).wait() defer { try! EventMigration().revert(on: self.db).wait() } let jsonEncoder = JSONEncoder() jsonEncoder.dateEncodingStrategy = .iso8601 let jsonDecoder = JSONDecoder() jsonDecoder.dateDecodingStrategy = .iso8601 let configuration = PostgresConfiguration( hostname: hostname, username: "vapor_username", password: "vapor_password", database: "vapor_database" ) self.dbs.use(.postgres( configuration: configuration, encoder: PostgresDataEncoder(json: jsonEncoder), decoder: PostgresDataDecoder(json: jsonDecoder) ), as: .iso8601) let db = self.dbs.database( .iso8601, logger: .init(label: "test"), on: self.eventLoopGroup.next() )! let date = Date() let event = Event() event.id = 1 event.metadata = Metadata(createdAt: date) try event.save(on: db).wait() let rows = try EventStringlyTyped.query(on: db).filter(\.$id == 1).all().wait() let expected = ISO8601DateFormatter().string(from: date) XCTAssertEqual(rows[0].metadata["createdAt"], expected) } var benchmarker: FluentBenchmarker { return .init(databases: self.dbs) } var eventLoopGroup: EventLoopGroup! var threadPool: NIOThreadPool! var dbs: Databases! var db: Database { self.benchmarker.database } var postgres: PostgresDatabase { self.db as! PostgresDatabase } override func setUpWithError() throws { try super.setUpWithError() let defaultConfig = PostgresConfiguration( hostname: hostname, username: "vapor_username", password: "vapor_password", database: "vapor_database" ) let migrationExtraConfig = PostgresConfiguration( hostname: hostname, username: "vapor_username", password: "vapor_password", database: "vapor_migration_extra" ) XCTAssert(isLoggingConfigured) self.eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1) self.threadPool = NIOThreadPool(numberOfThreads: 1) self.dbs = Databases(threadPool: threadPool, on: self.eventLoopGroup) self.dbs.use(.postgres(configuration: defaultConfig), as: .psql) self.dbs.use(.postgres(configuration: migrationExtraConfig), as: .migrationExtra) // reset the database let databaseExtra = try XCTUnwrap( self.benchmarker.databases.database( .migrationExtra, logger: Logger(label: "com.test.migration_extra"), on: self.eventLoopGroup.next() ) as? PostgresDatabase ) _ = try self.postgres.query("drop schema public cascade").wait() _ = try self.postgres.query("create schema public").wait() _ = try databaseExtra.query("drop schema public cascade").wait() _ = try databaseExtra.query("create schema public").wait() } override func tearDownWithError() throws { self.dbs.shutdown() try self.threadPool.syncShutdownGracefully() try self.eventLoopGroup.syncShutdownGracefully() try super.tearDownWithError() } } extension DatabaseID { static let iso8601 = DatabaseID(string: "iso8601") static let migrationExtra = DatabaseID(string: "migration_extra") } var hostname: String { getenv("POSTGRES_HOSTNAME").flatMap { String(cString: $0) } ?? "localhost" } struct Metadata: Codable { let createdAt: Date } final class Event: Model { static let schema = "events" @ID(custom: "id", generatedBy: .database) var id: Int? @Field(key: "metadata") var metadata: Metadata } final class EventStringlyTyped: Model { static let schema = "events" @ID(custom: "id", generatedBy: .database) var id: Int? @Field(key: "metadata") var metadata: [String: String] } struct EventMigration: Migration { func prepare(on database: Database) -> EventLoopFuture<Void> { return database.schema(Event.schema) .field("id", .int, .identifier(auto: true)) .field("metadata", .json, .required) .create() } func revert(on database: Database) -> EventLoopFuture<Void> { return database.schema(Event.schema).delete() } } func env(_ name: String) -> String? { return ProcessInfo.processInfo.environment[name] } let isLoggingConfigured: Bool = { LoggingSystem.bootstrap { label in var handler = StreamLogHandler.standardOutput(label: label) handler.logLevel = env("LOG_LEVEL").flatMap { Logger.Level(rawValue: $0) } ?? .debug return handler } return true }()
34.021277
92
0.610486
9f0ce80f03798ac6267c6dfdfefd3d343a2039c4
141
go
Go
parser/const.go
QuangTung97/kvstore
6c27c178427c9bb8f9cec5e3057784404cec4cc6
[ "MIT" ]
null
null
null
parser/const.go
QuangTung97/kvstore
6c27c178427c9bb8f9cec5e3057784404cec4cc6
[ "MIT" ]
null
null
null
parser/const.go
QuangTung97/kvstore
6c27c178427c9bb8f9cec5e3057784404cec4cc6
[ "MIT" ]
null
null
null
package parser var ( // LGET command LGET = []byte("LGET") // LSET command LSET = []byte("LSET") // DEL command DEL = []byte("DEL") )
12.818182
22
0.58156
26b71846298b6a4e0eff04c528b1cd544d9db883
2,981
java
Java
iti-iha-project/iti-iha-simple/src/main/java/org/lan/iti/iha/simple/SimpleConfig.java
crazy6995/iTi-Framework
6adb8b1c38de6a47998feabc02a6d7ca9806968d
[ "Apache-2.0" ]
null
null
null
iti-iha-project/iti-iha-simple/src/main/java/org/lan/iti/iha/simple/SimpleConfig.java
crazy6995/iTi-Framework
6adb8b1c38de6a47998feabc02a6d7ca9806968d
[ "Apache-2.0" ]
null
null
null
iti-iha-project/iti-iha-simple/src/main/java/org/lan/iti/iha/simple/SimpleConfig.java
crazy6995/iTi-Framework
6adb8b1c38de6a47998feabc02a6d7ca9806968d
[ "Apache-2.0" ]
null
null
null
/* * * * Copyright (c) [2019-2021] [NorthLan](lan6995@gmail.com) * * * * Licensed under the Apache License, Version 2.0 (the "License"); * * you may not use this file except in compliance with the License. * * You may obtain a copy of the License at * * * * http://www.apache.org/licenses/LICENSE-2.0 * * * * Unless required by applicable law or agreed to in writing, software * * distributed under the License is distributed on an "AS IS" BASIS, * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * * See the License for the specific language governing permissions and * * limitations under the License. * */ package org.lan.iti.iha.simple; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import lombok.experimental.Accessors; import java.time.Duration; /** * @author NorthLan * @date 2021-07-07 * @url https://noahlan.com */ @Data @Accessors(chain = true) @NoArgsConstructor @AllArgsConstructor @Builder(toBuilder = true) public class SimpleConfig { /** * Get the user principal(username/mobile/email) from request through {@code request.getParameter(`principalField`)}, which defaults to "username" */ @Builder.Default private String principalField = "principal"; /** * Get the password from request through {@code request.getParameter(`credentialsField`)}, which defaults to "password" */ @Builder.Default private String credentialsField = "credentials"; /** * Get the validation code from request through {@code request.getParameter(`codeField`)}, which defaults to "code" */ @Builder.Default private String codeField = "code"; /** * Get the login type from request through {@code request.getParameter(`typeField`)}, which defaults to "type" */ @Builder.Default private String typeField = "type"; /** * Get the extra data from request through {@code request.getParameter(`extra`)}, which defaults to "extra" */ @Builder.Default private String extraField = "extra"; /** * Get the remember-me from request through {@code request.getParameter(`rememberMeField`)}, which defaults to "rememberMe" */ @Builder.Default private String rememberMeField = "rememberMe"; /** * Default remember me cookie key */ @Builder.Default private String rememberMeCookieKey = "_iha_remember_me"; /** * Remember me cookie expire, unit: second, default 60*60*24[24 hours] */ @Builder.Default private long rememberMeCookieMaxAge = Duration.ofHours(24).getSeconds(); /** * Remember me cookie domain */ private String rememberMeCookieDomain; /** * Credential Encrypt Salt */ @Builder.Default private String credentialEncryptSalt = "_iha:rememberMe"; }
30.111111
151
0.660181
cb0007cf013f5e45f9298c40bf11b36db0341f9c
1,014
h
C
src/homework/tic_tac_toe/tic_tac_toe.h
acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-chasecalodney
8c5923e2ea1f6ca8adc0e750df992635bbe382f5
[ "MIT" ]
null
null
null
src/homework/tic_tac_toe/tic_tac_toe.h
acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-chasecalodney
8c5923e2ea1f6ca8adc0e750df992635bbe382f5
[ "MIT" ]
null
null
null
src/homework/tic_tac_toe/tic_tac_toe.h
acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-chasecalodney
8c5923e2ea1f6ca8adc0e750df992635bbe382f5
[ "MIT" ]
null
null
null
#ifndef TICTACTOE_H #define TICTACTOE_H #include <vector> #include <string> bool test_config(); class TicTacToe { public: TicTacToe(int size); bool game_over(); size_t get_pegs_size() const{ return pegs.size(); } std::string get_peg(int i) const{ return pegs[i]; } void start_game(std::string first_player); void mark_board(int position); std::string get_player() const; std::string get_winner() const; protected: void set_next_player(); bool check_board_full() const; void clear_board(); virtual bool check_column_win(){ return false; } virtual bool check_row_win(){ return false; } virtual bool check_diagonal_win(){ return false; } void set_winner(std::string w); std::vector<std::string> pegs{9, " "}; std::string player; std::string winner; }; #endif
23.581395
50
0.561144
ad61b0855d70b2068f3f75dc1d4efce5bf831ba8
392
rs
Rust
src/dashboard/views/dashboard.rs
delneg/bitcoin-address-generator-api
2c9802cdcecf2da337b40885d8f7239a47455c7c
[ "MIT" ]
null
null
null
src/dashboard/views/dashboard.rs
delneg/bitcoin-address-generator-api
2c9802cdcecf2da337b40885d8f7239a47455c7c
[ "MIT" ]
null
null
null
src/dashboard/views/dashboard.rs
delneg/bitcoin-address-generator-api
2c9802cdcecf2da337b40885d8f7239a47455c7c
[ "MIT" ]
null
null
null
use jelly::prelude::*; use jelly::Result; use jelly::actix_web::{HttpRequest, HttpResponse}; use jelly::tera::Context; /// Returns an overview of everything in the system. pub async fn dashboard(request: HttpRequest) -> Result<HttpResponse> { //let user = request.user()?; request.render(200, "dashboard/index.html", { let context = Context::new(); context }) }
26.133333
70
0.668367
68ad296e493fb4e7efe4bae71026c4b74b880504
472
swift
Swift
Sources/environments/Communicator.swift
ozgewhocodes/ai-baselines
93da618671828fe8273918136fb2d30653bb8371
[ "Apache-2.0" ]
1
2020-09-23T21:23:57.000Z
2020-09-23T21:23:57.000Z
Sources/environments/Communicator.swift
ozgewhocodes/ai-baselines
93da618671828fe8273918136fb2d30653bb8371
[ "Apache-2.0" ]
null
null
null
Sources/environments/Communicator.swift
ozgewhocodes/ai-baselines
93da618671828fe8273918136fb2d30653bb8371
[ "Apache-2.0" ]
1
2020-10-18T08:41:29.000Z
2020-10-18T08:41:29.000Z
// // Communicator.swift // App // // Created by Sercan Karaoglu on 25/04/2020. // import Foundation import NIO protocol Communicator { init(workerId: Int, port: Int, group: MultiThreadedEventLoopGroup) func initialize(inputs: CommunicatorObjects_UnityInputProto) -> Optional<CommunicatorObjects_UnityOutputProto> func exchange(inputs: CommunicatorObjects_UnityInputProto) -> Optional<CommunicatorObjects_UnityOutputProto> func close() }
21.454545
114
0.756356
39d3125f526d2ed01d152237992c7e207f8e6729
28,747
js
JavaScript
sitecore/shell/client/Applications/MerchandisingManager/Renderings/SlickGrid/SlickGrid.js
pramilasoni/EcommerceBasicSetupStoreFront
af660bba5ea597f7bea03d204309f63166544019
[ "Apache-2.0" ]
null
null
null
sitecore/shell/client/Applications/MerchandisingManager/Renderings/SlickGrid/SlickGrid.js
pramilasoni/EcommerceBasicSetupStoreFront
af660bba5ea597f7bea03d204309f63166544019
[ "Apache-2.0" ]
null
null
null
sitecore/shell/client/Applications/MerchandisingManager/Renderings/SlickGrid/SlickGrid.js
pramilasoni/EcommerceBasicSetupStoreFront
af660bba5ea597f7bea03d204309f63166544019
[ "Apache-2.0" ]
null
null
null
require.config({ config: { waitSeconds: 15 }, paths: { slickCore: "/sitecore/shell/client/Applications/MerchandisingManager/Assets/libs/sg/slick.core", slickDataView: "/sitecore/shell/client/Applications/MerchandisingManager/Assets/libs/sg/slick.dataview", slickEditors: "/sitecore/shell/client/Applications/MerchandisingManager/Assets/libs/sg/slick.editors", slickFormatters: "/sitecore/shell/client/Applications/MerchandisingManager/Assets/libs/sg/slick.formatters", slickGrid: "/sitecore/shell/client/Applications/MerchandisingManager/Assets/libs/sg/slick.grid", slickRemoveModel: "/sitecore/shell/client/Applications/MerchandisingManager/Assets/libs/sg/slick.remotemodel", slickGroup: "/sitecore/shell/client/Applications/MerchandisingManager/Assets/libs/sg/slick.groupitemmetadataprovider", jQueryDrag: "/sitecore/shell/client/Applications/MerchandisingManager/Assets/libs/sg/jquery.event.drag-2.2", jQueryDrop: "/sitecore/shell/client/Applications/MerchandisingManager/Assets/libs/sg/jquery.event.drop-2.2", slickCheckBoxColumn: "/sitecore/shell/client/Applications/MerchandisingManager/Assets/libs/sg/plugins/slick.checkboxselectcolumn", slickSitecoreModules: "/sitecore/shell/client/Applications/MerchandisingManager/Assets/libs/sg/slick.sitecore.modules", slickRowSelectionModel: "/sitecore/shell/client/Applications/MerchandisingManager/Assets/libs/sg/plugins/slick.rowselectionmodel", Linq: "/sitecore/shell/client/Applications/MerchandisingManager/linq", CommerceUtils: "/sitecore/shell/client/Applications/MerchandisingManager/CommerceUtils", timePicker: "/sitecore/shell/client/Applications/MerchandisingManager/Assets/libs/jquery.timepicker.min", datepickerRegions: "/sitecore/shell/client/Applications/MerchandisingManager/Assets/libs/jquery.datepicker.regions", caret: '/sitecore/shell/client/Applications/MerchandisingManager/Renderings/TagEditorV1/assets/jquery.caret', tagEditor: '/sitecore/shell/client/Applications/MerchandisingManager/Renderings/TagEditorV1/assets/jquery.tag-editor' }, shim: { 'datepickerRegions': { deps: ['jqueryui'/*, 'css!dynatreecss'*/] }, slickCore: ['jqueryui'], slickGrid: ['slickCore', 'jQueryDrag', 'jQueryDrop'], slickDataView: ['slickGrid'] } }); define(["sitecore", "jQueryDrag", "jQueryDrop", "slickCore", "slickDataView", "slickEditors", "slickFormatters", "slickGrid", "slickRemoveModel", "slickGroup", "slickCheckBoxColumn", "slickRowSelectionModel", "slickSitecoreModules", "Linq", "CommerceUtils", "timePicker", "datepickerRegions", "caret", "tagEditor"], function (Sitecore, Linq) { var model = Sitecore.Definitions.Models.ControlModel.extend({ initialize: function (options) { this._super(); this.set("items", []); this.set("dataView", null); this.set("columns", []); this.set("grid", null); this.set("gridId", false); this.set("controlMappings", false); this.set("selectedColumns", null); this.set("entityType", null); this.set("hasSelectedItems", false); this.set("hasSingleItemSelected", false); this.set("hasChanges", false); // Initializing data view here instead of initGrid to prevent race condition - sometimes // dataRefresh called before initGrid callback. var dataView = new Slick.Data.DataView(); this.set("dataView", dataView); // Initialize the client side representation of data and languages var gridData = {}; gridData.languages = {}; this.set("currentLanguage", null); this.set("gridData", gridData); // Initialize the shared fields look-up var editedSharedFields = {}; this.set("editedSharedFields", editedSharedFields); }, initGrid: function () { var self = this; var items = this.get("items"); var gridContainerId = "#" + this.get("gridId"); var options = { enableCellNavigation: true, enableColumnReorder: false, editable: true, autoEdit: true, rowHeight: 40, forceFitColumns: true }; var dataView = this.get("dataView"); var checkboxSelector = new Slick.CheckboxSelectColumn({ cssClass: "slick-cell-checkboxsel" }); var columnModification = []; var columns = this.get("columns"); // Add the Correct Editor to Tags Column for (var a = 0; a < columns.length; a++) { if (columns[a].field == "Tags" || columns[a].field == "Variant_Tags") { columns[a].editor = Slick.Sitecore.Editors.Tags; } } // Evaluate the editor type for each column and set it for (i = 0; i < columns.length; i++) { if (columns[i]) { if (columns[i]["editor"]) { columns[i]["editor"] = eval(columns[i]["editor"]); } if (columns[i]["formatter"]) { columns[i]["formatter"] = eval(columns[i]["formatter"]); } } } columnModification.push(checkboxSelector.getColumnDefinition()); columns.push.apply(columnModification, columns); var grid = new Slick.Grid(gridContainerId, dataView, columnModification, options); this.set("grid", grid); grid.setSelectionModel(new Slick.RowSelectionModel({ selectActiveRow: false })); grid.registerPlugin(checkboxSelector); grid.onBeforeEditCell.subscribe(function (e, args) { if (!self.isCellEditable(args.row, args.cell, args.item)) { return false; } }); grid.onCellChange.subscribe(function (e, args) { self.set("hasChanges", true); var column = args.grid.getColumns()[args.cell]; var columnId = column.id; args.item.isDirty = true; if (!args.item.DirtyFields) { args.item.DirtyFields = []; } args.item.DirtyFields.push(columnId); if (column.isShared) { // Update edited Shared Fields var editedSharedFields = self.get("editedSharedFields"); var itemSharedFields; var targetSharedField = null; // Check to see if this item/row is in the look-up alread (i.e. has one or more edited shared fields) if (editedSharedFields[args.item.itemId]) { itemSharedFields = editedSharedFields[args.item.itemId]; } else { itemSharedFields = []; } // Check to see if the field currently being edited is already in the list // of edited shared fields for this item for (i = 0; i < itemSharedFields.length; i++) { if (itemSharedFields[i].field == column.field) { targetSharedField = itemSharedFields[i]; break; } } // If the field currently being edited was found above, then update its current value // Otherwise, create a new entry for the edited shared field containing the field name and // the new current value and add it to the list. if (targetSharedField) { targetSharedField.currentValue = args.item[column.field]; } else { var sharedField = { field: column.field, currentValue: args.item[column.field] }; itemSharedFields.push(sharedField); } editedSharedFields[args.item.itemId] = itemSharedFields; self.set("editedSharedFields", editedSharedFields); // Dispatch an event to allow listeners to act on the shared field edit for custom application purposes $(document).trigger("onSlickGridSharedFieldEdited", [{ item: args.item, column: column, gridInstance: self }]); } }); grid.onSelectedRowsChanged.subscribe(function (e, args) { self.trigger("selectedRowChanged", null); self.set("hasSelectedItems", grid.getSelectedRows().length > 0); self.set("hasSingleItemSelected", grid.getSelectedRows().length == 1); }); $(grid.getContainerNode()).on('blur.editorFocusLost', 'input.editor-text', function (e) { window.setTimeout(function () { if (!$(e.currentTarget).parent().hasClass("twowayDescDiv")) { var focusedEditor = $("#" + grid.getContainerNode().id + " :focus"); if ((focusedEditor.length == 0) && Slick.GlobalEditorLock.isActive()) { Slick.GlobalEditorLock.commitCurrentEdit(); } } }, 0); }); grid.onKeyDown.subscribe(function (e, args) { if (e.keyCode === 13 || e.keyCode === 32) { var node = args.grid.getActiveCellNode(); if ($(node).hasClass("error-relationship-column") || $(node).hasClass("error-variant-column") || $(node).hasClass("link-to-item")) { //trigger click event on column error $(node).children()[0].click(); e.stopImmediatePropagation(); } } }); $(grid.getContainerNode()).on('blur.editorFocusLost', 'select.editor-select', function (e) { window.setTimeout(function () { var focusedEditor = $("#" + grid.getContainerNode().id + " :focus"); if ((focusedEditor.length == 0) && Slick.GlobalEditorLock.isActive()) { Slick.GlobalEditorLock.commitCurrentEdit(); } }, 0); }); $(grid.getContainerNode()).parents("div[data-sc-id*='Window']").children(".sc-dialogWindow-header").click(function () { Slick.GlobalEditorLock.commitCurrentEdit(); }) grid.onKeyDown.subscribe(function (event) { if (event.keyCode === 9 && event.shiftKey === false) { if (grid.getActiveCell() != null) { if (grid.getActiveCell().cell === (grid.getColumns().length - 1) && grid.getActiveCell().row === (grid.getData().getLength() - 1)) { Slick.GlobalEditorLock.commitCurrentEdit(); var tabables = $("*[tabindex != '-1']:visible"); var index = tabables.index(grid.getActiveCellNode()); grid.resetActiveCell(); if (index == tabables.length - 1) { tabables[0].focus(); } else { if ($(tabables[index + 1]).children(":focusable")[0] != undefined) { $(tabables[index + 1]).children(":focusable")[0].focus(); } else { $(tabables[index + 1]).focus(); } } event.stopImmediatePropagation(); } } } }); dataView.onRowCountChanged.subscribe(function (e, args) { self.trigger("rowCountChanged", self.get("grid").getDataLength()); self.get("grid").updateRowCount(); self.get("grid").render(); self.get("grid").resizeCanvas(); }); dataView.onRowsChanged.subscribe(function (e, args) { self.trigger("rowsChanged", null); self.get("grid").invalidateRows(args.rows); self.get("grid").render(); self.get("grid").resizeCanvas(); }); dataView.setItems(items); grid.autosizeColumns(); }, setSupportedLanguageStyles: function () { var items = this.get("items"); for (var i = 0; i < items.length; i++) { this.removeStyleToRow(i, "notSupportedLanguage"); this.enableDisableCheckBox(i, false); if (!items[i].SupportsRequestedLanguage) { this.addStyleToRow(i, "notSupportedLanguage"); this.enableDisableCheckBox(i, true); $(this.get("grid").getCellNode(i, 0)).children("input").prop("checked", false); } } }, getSelectedColumnsForPicker: function () { var self = this; var ajaxToken = {}; var token = Sitecore.Helpers.antiForgery.getAntiForgeryToken(); ajaxToken[token.headerKey] = token.value; $.ajax({ url: "/sitecore/shell/commerce/merchandising/Workspace/GetWorkspaceColumnsForPicker", type: "POST", headers: ajaxToken, data: { workspaceName: "Default", entityType: this.get("entityType"), controlFolder: this.get("controlMappings") }, context: this, success: function (data) { self.set("selectedColumns", data); } }); }, saveSelectedColumns: function (columns, refreshData) { var self = this; var ajaxToken = {}; var token = Sitecore.Helpers.antiForgery.getAntiForgeryToken(); ajaxToken[token.headerKey] = token.value; var columnString = ""; columns.forEach(function (entry) { if (columnString.length > 0) { columnString += ";"; } if (entry != undefined) { columnString += entry.itemId + "," + entry.IsCollapsed; } }); $.ajax({ url: "/sitecore/shell/commerce/merchandising/Workspace/SaveWorkspaceColumns", type: "POST", headers: ajaxToken, data: { workspaceName: "Default", entityType: this.get("entityType"), columns: columnString }, context: this, success: function (data) { this.getTransformedColumns(refreshData); } }); }, dataRefreshed: function () { var items = this.get("items"); this.get("dataView").setItems(items, "itemId"); }, getTransformedColumns: function (refreshData) { var self = this; var ajaxToken = {}; var token = Sitecore.Helpers.antiForgery.getAntiForgeryToken(); ajaxToken[token.headerKey] = token.value; $.ajax({ url: "/sitecore/shell/commerce/merchandising/Workspace/GetWorkspaceColumns", type: "POST", headers: ajaxToken, data: { workspaceName: "Default", entityType: this.get("entityType"), controlFolder: this.get("controlMappings") }, context: this, success: function (data) { this.set("columns", data); this.initGrid(); if (refreshData && typeof (refreshData) === "function") { refreshData(); } } }); }, selectedIndicies: function () { return this.get("grid").getSelectedRows(); }, selectedItemIds: function () { var ids = []; var items = this.selectedIndicies(); var self = this; items.forEach(function (entry) { var item = self.get("dataView").getItemByIdx(entry); ids.push(item.itemId); }); return ids; }, selectedItems: function () { var fullItems = []; var items = this.selectedIndicies(); var self = this; items.forEach(function (entry) { var item = self.get("dataView").getItemByIdx(entry); fullItems.push(item); }); return fullItems; }, deleteItem: function (itemId) { this.get("dataView").deleteItem(itemId); this.unselectAll(); var currentLanguage = this.get("currentLanguage"); var gridData = this.get("gridData"); $.each(gridData.languages, function (languageName, data) { if (languageName != currentLanguage) { gridData.languages[languageName] = $.grep(data, function (item, i) { return item.itemId != itemId; }); } }); }, unselectAll: function () { this.get("grid").setSelectedRows([]); }, modifiedItems: function () { var updatedItems = []; var items = this.get("items"); for (var i = 0; i < items.length; i++) { if (items[i].isDirty) { updatedItems.push(items[i]); } } return updatedItems; }, getPayloadForSave: function (extensionFunction) { // Ensure all dirty shared fields have the latest updated value this.updateEditedSharedFieldsInAllLanguages(); var payloadData = []; var gridData = this.get("gridData"); var self = this; $.each(gridData.languages, function (languageName, items) { var languageItem = {}; languageItem.Language = languageName; var itemsToUpdate = []; for (var i = 0; i < items.length; i++) { var tempItem = items[i]; if (tempItem.isDirty) { var updateItem = { ItemId: tempItem.itemId, Fields: [] }; // call the passed in function if (extensionFunction) { extensionFunction(tempItem, updateItem); } if (tempItem.DirtyFields) { for (var j = 0; j < tempItem.DirtyFields.length; j++) { var dirtyField = tempItem.DirtyFields[j]; var selectedColumn = self.getFieldNameByIdFromColumns(dirtyField); updateItem.Fields.push({ FieldIdentifier: dirtyField, FieldValue: tempItem[selectedColumn.field] }); } } itemsToUpdate.push(updateItem); } } languageItem.ItemsToUpdate = itemsToUpdate; payloadData.push(languageItem); }); return payloadData; }, getFieldNameByIdFromColumns: function (id) { var columns = Enumerable.From(this.get("grid").getColumns()); return columns.Single(function (x) { return x.id == id }); }, addValidationStyle: function (itemId, fieldId) { var dataView = this.get("dataView"); var row = dataView.getItemById(itemId); var columnIndex = this.findColumn(fieldId); row.errorStyle = "error" + columnIndex; dataView.updateItem(row.itemId, row); }, setFocusOnCell: function (itemId, fieldId) { var dataView = this.get("dataView"); var row = dataView.getItemById(itemId); var columnIndex = this.findColumn(fieldId); var rowIndex = dataView.getIdxById(itemId); this.get("grid").gotoCell(rowIndex, columnIndex, true); }, findColumn: function (fieldId) { var columns = this.get("grid").getColumns(); for (var i = 0 ; i < columns.length; i++) { if (columns[i].id == fieldId) { return i; } } return null; }, isCellEditable: function (row, cell, item) { var column = this.get("grid").getColumns()[cell].field; if (item.SupportsRequestedLanguage) { this.removeStyleToRow(row, "notSupportedLanguage"); if (item._Security != null && item._Security[column] != null) { return item._Security[column].CanWrite; } } return false; }, enableDisableCheckBox: function (row, enable) { if (this.get("grid") != null) { $(this.get("grid").getCellNode(row, 0)).children("input").prop("disabled", enable); } }, addStyleToRow: function (row, cssClass) { var columns = this.get("grid").getColumns(); var cssObject = {}; cssObject[row] = {}; for (var i = 0; i < columns.length; i++) { cssObject[row][columns[i].id] = cssClass; } this.get("grid").removeCellCssStyles("rowStyle_" + row + "_" + cssClass); this.get("grid").addCellCssStyles("rowStyle_" + row + "_" + cssClass, cssObject); }, removeStyleToRow: function (row, cssClass) { if (this.get("grid") != null) { this.get("grid").removeCellCssStyles("rowStyle_" + row + "_" + cssClass); } }, addStyleToCell: function (row, columnName, cssClass) { var cssObject = {}; cssObject[row] = {}; cssObject[row][columnName] = cssClass; this.get("grid").removeCellCssStyles(row + "_" + columnName + "_" + cssClass); this.get("grid").addCellCssStyles(row + "_" + columnName + "_" + cssClass, cssObject); }, removeStyleToCell: function (row, columName, cssClass) { this.get("grid").removeCellCssStyles(row + "_" + columnName + "_" + cssClass); }, getItemById: function (itemId) { return this.get("dataView").getItemById(itemId); }, getCurrentLanguage: function () { return this.get("currentLanguage"); }, getLanguages: function () { var gridData = this.get("gridData"); var languages = []; $.each(gridData.languages, function (languageName, dataItems) { languages.push(languageName); }); return languages; }, hasLanguage: function (languageName) { var gridData = this.get("gridData"); if (gridData.languages[languageName]) { return true; } return false; }, setLanguage: function (languageName) { // Before we switch, update any edited shared fields this.updateEditedSharedFieldsInAllLanguages(); var gridData = this.get("gridData"); this.set("items", []); this.set("items", gridData.languages[languageName]); this.set("currentLanguage", languageName); }, // Gets the data items for the specified language getDataItems: function (languageName) { var gridData = this.get("gridData"); return gridData.languages[languageName]; }, // Adds data items for the specified language without switching the current language addDataItems: function (items, languageName) { var gridData = this.get("gridData"); gridData.languages[languageName] = items; this.updateEditedSharedFieldsInAllLanguages(); }, setDataItems: function (items, languageName) { var gridData = this.get("gridData"); gridData.languages[languageName] = items; this.updateEditedSharedFieldsInAllLanguages(); this.set("items", []); this.set("items", gridData.languages[languageName]); this.set("currentLanguage", languageName); }, clearDataItems: function () { var gridData = this.get("gridData"); this.set("items", []); $.each(gridData.languages, function (key, data) { delete gridData.languages[key]; }); }, clearState: function (extensionFunction) { this.clearEditedSharedFields(); var gridData = this.get("gridData"); var self = this; $.each(gridData.languages, function (languageName, items) { for (var i = 0; i < items.length; i++) { var tempItem = items[i]; delete tempItem.isDirty; delete tempItem.DirtyFields; if (extensionFunction) { extensionFunction(tempItem); } } }); }, clearEditedSharedFields: function () { var editedSharedFields = this.get("editedSharedFields"); $.each(editedSharedFields, function (itemId, itemEditedSharedFieldsArray) { delete editedSharedFields[itemId]; }); this.set("editedSharedFields", editedSharedFields); }, updateEditedSharedFieldsInAllLanguages: function () { var currentLanguage = this.get("currentLanguage"); var gridData = this.get("gridData"); var editedSharedFields = this.get("editedSharedFields"); // For each language except the current one, update the edited shared fields. $.each(gridData.languages, function (languageName, data) { if (languageName != currentLanguage) { var dataItems = Enumerable.From(gridData.languages[languageName]); $.each(editedSharedFields, function (itemId, itemEditedSharedFieldsArray) { var matches = dataItems.Where(function (x) { return x.itemId == itemId }).ToArray(); if (matches && matches.length > 0) { var dataItem = matches[0]; for (i = 0; i < itemEditedSharedFieldsArray.length; i++) { var editedSharedField = itemEditedSharedFieldsArray[i]; if (dataItem[editedSharedField.field]) { dataItem[editedSharedField.field] = editedSharedField.currentValue; } } } }); } }); this.set("editedSharedFields", editedSharedFields); } }); var view = Sitecore.Definitions.Views.ControlView.extend({ initialize: function (options) { this._super(); var gridId = this.$el.attr("data-sc-gridId") || ""; var entityType = this.$el.attr("data-sc-entityType") || ""; var controlMappings = this.$el.attr("data-sc-controlMappings"); this.model.set("gridId", gridId); this.model.set("entityType", entityType); this.model.set("controlMappings", controlMappings); this.model.getTransformedColumns(); this.model.getSelectedColumnsForPicker(); this.model.on("change:items", this.model.dataRefreshed, this.model); } }); Sitecore.Factories.createComponent("SlickGrid", model, view, ".sc-SlickGrid"); });
41.541908
343
0.520472
887d35a0a4a6a877e766879bbb0f694c3c76d18e
282
dart
Dart
lib/control_flow/optional/tuple/optional_tuple.dart
rhmoeller/HUtils
0be1b4cb4b0eadd0f81824afe6bc259a6b411622
[ "MIT" ]
null
null
null
lib/control_flow/optional/tuple/optional_tuple.dart
rhmoeller/HUtils
0be1b4cb4b0eadd0f81824afe6bc259a6b411622
[ "MIT" ]
null
null
null
lib/control_flow/optional/tuple/optional_tuple.dart
rhmoeller/HUtils
0be1b4cb4b0eadd0f81824afe6bc259a6b411622
[ "MIT" ]
1
2021-03-04T02:58:20.000Z
2021-03-04T02:58:20.000Z
/* * Copyright (c) 2021 Robert Hjortsholm Moeller */ import '../optional.dart'; abstract class OptionalTuple<A, B, R, X, Y> { final R Function(X first, Y second) mapper; const OptionalTuple(this.mapper); Optional<R> call(final Optional<A> a, final Optional<B> b); }
15.666667
61
0.673759
ddc6f26cfde8b708d46f65b63b810166d4f287e1
1,337
php
PHP
LAMPAPI/Register.php
Seth-Brockett/COP4331-SmallProject
5b4a75f74bea54416af3bfea86b737c8a3c008c7
[ "MIT" ]
null
null
null
LAMPAPI/Register.php
Seth-Brockett/COP4331-SmallProject
5b4a75f74bea54416af3bfea86b737c8a3c008c7
[ "MIT" ]
1
2021-02-03T22:55:39.000Z
2021-02-03T22:55:39.000Z
LAMPAPI/Register.php
Seth-Brockett/COP4331-SmallProject
5b4a75f74bea54416af3bfea86b737c8a3c008c7
[ "MIT" ]
1
2021-02-14T19:49:27.000Z
2021-02-14T19:49:27.000Z
<?php $inData = getRequestInfo(); $firstname = $inData["firstname"]; $lastname = $inData["lastname"]; $email = $inData["email"]; $password = $inData["password"]; $conn = new mysqli("localhost", "admin", "admin", "COP4331"); if($conn->connect_error) { returnWithError($conn->connect_error); } else { $sql = "insert into user (password, firstname, lastname, email) VALUES ('" . $password . "', '" . $firstname . "', '" . $lastname . "', '" . $email ."')"; if($result = $conn->query($sql) != TRUE){ returnWithError($conn->error); } returnWithInfo(); // checks to see if it ended up working $conn->close(); } function getRequestInfo() { return json_decode(file_get_contents('php://input'), true); } function sendResultInfoAsJson($obj) { header('Content-type: application/json'); echo $obj; } function returnWithError($err) { $retValue = '{"password":"", "firstname":"", "lastname":"", "email":"","error":"' . $err . '"}'; sendResultInfoAsJson($retValue); } function returnWithInfo() // added function for successful response { $retValue = '{"info":"Success"}'; sendResultInfoAsJson( $retValue ); } ?>
26.74
104
0.542259
0458de2103857f9526b92c0c913d394850346b8b
4,914
java
Java
ingest-rest/src/main/java/org/chronopolis/ingest/task/LocalTokenization.java
Chronopolis-Digital-Preservation/chronopolis-core
4fa6fb70b474341fd46edd7232784a7f4307622a
[ "BSD-3-Clause" ]
null
null
null
ingest-rest/src/main/java/org/chronopolis/ingest/task/LocalTokenization.java
Chronopolis-Digital-Preservation/chronopolis-core
4fa6fb70b474341fd46edd7232784a7f4307622a
[ "BSD-3-Clause" ]
null
null
null
ingest-rest/src/main/java/org/chronopolis/ingest/task/LocalTokenization.java
Chronopolis-Digital-Preservation/chronopolis-core
4fa6fb70b474341fd46edd7232784a7f4307622a
[ "BSD-3-Clause" ]
null
null
null
package org.chronopolis.ingest.task; import com.querydsl.jpa.JPAExpressions; import com.querydsl.jpa.impl.JPAQueryFactory; import org.chronopolis.common.concurrent.TrackingThreadPoolExecutor; import org.chronopolis.common.storage.BagStagingProperties; import org.chronopolis.common.storage.Posix; import org.chronopolis.ingest.IngestProperties; import org.chronopolis.ingest.repository.dao.PagedDao; import org.chronopolis.rest.entities.Bag; import org.chronopolis.rest.entities.QAceToken; import org.chronopolis.rest.entities.QBag; import org.chronopolis.rest.entities.QBagFile; import org.chronopolis.rest.entities.QDataFile; import org.chronopolis.rest.entities.serializers.ExtensionsKt; import org.chronopolis.rest.entities.storage.QStagingStorage; import org.chronopolis.rest.models.enums.BagStatus; import org.chronopolis.tokenize.BagProcessor; import org.chronopolis.tokenize.ManifestEntry; import org.chronopolis.tokenize.supervisor.TokenWorkSupervisor; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; import java.util.Collection; import java.util.List; import java.util.function.Predicate; import static org.chronopolis.ingest.repository.dao.StagingDao.DISCRIMINATOR_BAG; /** * Task for processing bags in our local staging area which need to be tokenized * * @author shake */ @Component @EnableScheduling @ConditionalOnProperty(prefix = "ingest", name = "tokenizer.enabled", havingValue = "true") public class LocalTokenization { private final Logger log = LoggerFactory.getLogger(LocalTokenization.class); private final PagedDao dao; private final TokenWorkSupervisor tws; private final IngestProperties properties; private final TrackingThreadPoolExecutor<Bag> executor; private final Collection<Predicate<ManifestEntry>> predicates; @Autowired public LocalTokenization(PagedDao dao, TokenWorkSupervisor tws, IngestProperties properties, TrackingThreadPoolExecutor<Bag> executor, Collection<Predicate<ManifestEntry>> predicates) { this.dao = dao; this.tws = tws; this.properties = properties; this.executor = executor; this.predicates = predicates; } @Scheduled(cron = "${ingest.tokenizer.cron:0 0 * * * *}") public void searchForBags() { IngestProperties.Tokenizer tokenizer = properties.getTokenizer(); if (!tokenizer.getEnabled()) { return; } Posix staging = tokenizer.getStaging(); String creator = tokenizer.getUsername(); if (creator == null) { creator = "admin"; } JPAQueryFactory queryFactory = dao.getJPAQueryFactory(); // bleh... need to rethink some things wrt the properties BagStagingProperties bp = new BagStagingProperties().setPosix(staging); // Would like to do a paged list but for now this will be ok QBag qBag = QBag.bag; QBagFile qBagFile = QBagFile.bagFile; List<Bag> bags = queryFactory.selectFrom(qBag) .innerJoin(qBag.storage, QStagingStorage.stagingStorage) .fetchJoin() .innerJoin(QStagingStorage.stagingStorage.file, QDataFile.dataFile) .on(QStagingStorage.stagingStorage.file.dtype.eq(DISCRIMINATOR_BAG)) .where(qBag.status.eq(BagStatus.INITIALIZED) .and(qBag.creator.eq(creator)) .and(qBag.totalFiles.eq(JPAExpressions.select(qBagFile.count()) .from(qBagFile) .where(qBagFile.bag.id.eq(qBag.id)))) .and(qBag.storage.size().eq(1)) .and(QStagingStorage.stagingStorage.active.isTrue())) .fetch(); // is there a better way to do conditional logging? if (!bags.isEmpty()) { log.info("Found {} bags for tokenization", bags.size()); } for (Bag bag : bags) { final Long count = queryFactory.selectFrom(QAceToken.aceToken) .where(QAceToken.aceToken.bag.id.eq(bag.getId())) .fetchCount(); log.trace("[{}] Submitting: {}", bag.getName(), count < bag.getTotalFiles()); if (count < bag.getTotalFiles()) { BagProcessor processor = new BagProcessor(ExtensionsKt.model(bag), predicates, bp, tws); executor.submitIfAvailable(processor, bag); } } } }
40.61157
91
0.673179
74d00e665d78336104a25a7bbb799fe67fb1fdb4
3,210
js
JavaScript
bin/webpack.dev.config.js
yuxuan1101/airPivilion
28b2f436e9669f07ff7a81ce02ec5aa1cf204807
[ "MIT" ]
null
null
null
bin/webpack.dev.config.js
yuxuan1101/airPivilion
28b2f436e9669f07ff7a81ce02ec5aa1cf204807
[ "MIT" ]
null
null
null
bin/webpack.dev.config.js
yuxuan1101/airPivilion
28b2f436e9669f07ff7a81ce02ec5aa1cf204807
[ "MIT" ]
null
null
null
/** * Created by yuxuan on 8/9/16. */ var path = require('path'); var webpack = require('webpack'); var htmlWebpackPlugin = require('html-webpack-plugin'); var host = 8080; module.exports = { devtool: 'inline-source-map', target: 'web', debug: false, context: path.resolve(__dirname, '.'), entry: { app: [ 'webpack-hot-middleware/client?reload=true', '../client/src/index.js' ] }, output: { path: path.join(__dirname, '..', '/client/dist'), filename: 'bundle.js', // publicPath: 'http://localhost:'+host+'/', }, plugins: [ new webpack.optimize.OccurenceOrderPlugin(), new webpack.HotModuleReplacementPlugin(), new webpack.NoErrorsPlugin(), new webpack.DefinePlugin({ 'process.env': { // Useful to reduce the size of client-side libraries, e.g. react NODE_ENV: JSON.stringify('development') } }), new htmlWebpackPlugin({ title: 'airPivilion', filename: 'index.html', favicon: '../client/src/images/favicon.ico', template: '../client/src/index.template.html' }) ], resolve: { modulesDirectories: [ 'src', 'bower_components', 'node_modules' ], extensions: ['', '.js', '.json'] }, eslint: { formatter: require('eslint-friendly-formatter') }, module: { preLoaders: [ {test: /\.js$/, loader: "eslint-loader", exclude: /node_modules/} ], loaders: [ { test: /\.js$/, loaders: ['react-hot', 'babel?{"presets":["react","es2015","stage-0"],"plugins":["transform-runtime", "transform-decorators-legacy"]}' ], exclude: /node_modules/ }, { test: /\.json$/, loader: 'json'}, { test: /\.css$/, loaders: ['style','css'] }, { test: /\.less$/, loader: 'style!css?modules&localIdentName=[name]_[local]_[hash:base64:5]!less', include: path.join(__dirname,"../client/src") }, { test: /\.(png|jpg|gif)$/, loader: "url-loader?limit=8192&mimetype=image/png/gif" }, { test: /\.woff(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=application/font-woff" }, { test: /\.woff2(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=application/font-woff" }, { test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=application/octet-stream" }, { test: /\.eot(\?v=\d+\.\d+\.\d+)?$/, loader: "file" }, { test: /\.svg(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=image/svg+xml" } ] } };
31.165049
131
0.442679
f1d5e83ef6ad3a7e7946e2fc48565a26777eb45c
3,493
rb
Ruby
lib/environment_base.rb
vespa-engine/system-test
0a05a4a784590651f51d530932f4782bfe80ac9c
[ "Apache-2.0" ]
5
2020-01-21T20:58:09.000Z
2022-02-01T08:01:26.000Z
lib/environment_base.rb
vespa-engine/system-test
0a05a4a784590651f51d530932f4782bfe80ac9c
[ "Apache-2.0" ]
246
2019-03-13T09:40:11.000Z
2022-03-28T12:34:24.000Z
lib/environment_base.rb
vespa-engine/system-test
0a05a4a784590651f51d530932f4782bfe80ac9c
[ "Apache-2.0" ]
2
2019-10-26T11:37:30.000Z
2021-03-08T20:20:21.000Z
# Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. require 'executor' require 'default_env_file' # A base class for a singleton providing the default environment in # which to run tests. To access, use "Environment.instance" before # fields and methods. # # If the environment needs to be customized when running tests, # this can be replaced by an environment-specific implementation. class EnvironmentBase attr_reader :vespa_home, :vespa_web_service_port, :vespa_user, :tmp_dir, :path_env_variable, :additional_start_base_commands, :maven_snapshot_url attr_reader :vespa_hostname, :vespa_short_hostname def initialize(default_vespa_home, default_vespa_user, default_vespa_web_service_port) if ENV.has_key?('VESPA_HOME') @vespa_home = ENV['VESPA_HOME'] else @vespa_home = default_vespa_home end if ENV.has_key?('VESPA_WEB_SERVICE_PORT') @vespa_web_service_port = ENV['VESPA_WEB_SERVICE_PORT'].to_i else @vespa_web_service_port = default_vespa_web_service_port end if ENV.has_key?('VESPA_USER') @vespa_user = ENV['VESPA_USER'] else @vespa_user = default_vespa_user end if ENV.has_key?('VESPA_HOSTNAME') @vespa_hostname = ENV['VESPA_HOSTNAME'] else @vespa_hostname = `hostname`.chomp end hostname_components = @vespa_hostname.split(".") if hostname_components.size > 0 if hostname_components.size > 1 && hostname_components[1] =~ /^\d+$/ @vespa_short_hostname = hostname_components.first(2).join(".") else @vespa_short_hostname = hostname_components[0] end else @vespa_short_hostname = @vespa_hostname end @executor = Executor.new(@vespa_short_hostname) if File.exists?(@vespa_home) @tmp_dir = @vespa_home + "/tmp" else @tmp_dir = "/tmp" # When running unit tests with no Vespa installed end @path_env_variable = "#{@vespa_home}/bin:/opt/vespa-deps/bin" @additional_start_base_commands = "" @maven_snapshot_url = nil # TODO @default_env_file = DefaultEnvFile.new(@vespa_home) end def set_addr_configserver(testcase, config_hostnames) configservers = config_hostnames.join(",") @default_env_file.set("VESPA_CONFIGSERVERS", configservers) ENV["VESPA_CONFIGSERVERS"] = configservers end def set_port_configserver_rpc(testcase, port=nil) @default_env_file.set("VESPA_CONFIGSERVER_RPC_PORT", port) ENV["VESPA_CONFIGSERVER_RPC_PORT"] = port end def start_configserver(testcase) @executor.execute("#{@vespa_home}/bin/vespa-start-configserver", testcase) end def stop_configserver(testcase) @executor.execute("#{@vespa_home}/bin/vespa-stop-configserver", testcase) end def reset_configserver(configserver) # TODO end def reset_environment(node) node.reset_environment_setting end def backup_environment_setting(force) @default_env_file.backup_original(force) end def reset_environment_setting(testcase) @default_env_file.restore_original end # Returns the host name of a host from which standard test data can be downloaded # # +hostname+:: The host name which will download test data def webhost(hostname) if ENV.has_key?('VESPA_TESTDATA_SERVER') ENV['VESPA_TESTDATA_SERVER'] else hostname end end def override_environment_setting(testcase, name, value) @default_env_file.set(name, value) end end
30.112069
147
0.730031
5f0df815c321a02d9fa8f44c88ce9ee9d89d47d5
145
ts
TypeScript
src/navigation/index.ts
boweihan/chatkitty-example-react
3cba2454432bc17d140957de0594ae754cd1bce1
[ "MIT" ]
1
2021-09-16T15:53:12.000Z
2021-09-16T15:53:12.000Z
src/navigation/index.ts
aerovulpe/chatkitty-example-react
b18aa66783af2b01d8a31f8b9f59c413b33f85a8
[ "MIT" ]
null
null
null
src/navigation/index.ts
aerovulpe/chatkitty-example-react
b18aa66783af2b01d8a31f8b9f59c413b33f85a8
[ "MIT" ]
null
null
null
export type View = 'Menu' | 'Chat' | 'Join Channel'; export interface LayoutState { menu: boolean; chat: boolean; joinChannel: boolean; }
18.125
52
0.682759
85c46769e2484c5266339723df7d0608309acf46
3,058
js
JavaScript
functions/index.js
Apexal/rpi-walk-in
48357e3dc2a49d80afc1ed9d9d1ccd8bfe708a32
[ "MIT" ]
null
null
null
functions/index.js
Apexal/rpi-walk-in
48357e3dc2a49d80afc1ed9d9d1ccd8bfe708a32
[ "MIT" ]
null
null
null
functions/index.js
Apexal/rpi-walk-in
48357e3dc2a49d80afc1ed9d9d1ccd8bfe708a32
[ "MIT" ]
null
null
null
const functions = require('firebase-functions') const admin = require('firebase-admin') admin.initializeApp(functions.config().firebase) const nodemailer = require('nodemailer') const transporter = nodemailer.createTransport({ host: 'mail.rpi.edu', port: 465, secure: true, auth: { user: functions.config().email.user, pass: functions.config().email.password } }) const db = admin.firestore() /** * On user creation, add data for the user in the 'users' collection. */ exports.createUserData = functions.auth.user().onCreate(userProfile => { // Determine whether the new user is a current student or accepted student // If they are a faculty member, they will need this property to be manually assigned to 'faculty' const role = userProfile.email.endsWith('@rpi.edu') ? 'current' : 'accepted' const data = { name: '' } if (role === 'accepted') { // Accepted student data.wantToBeContacted = false data.inQueue = false // data.queueEnterTime = admin.firestore.Timestamp.fromDate(new Date()) data.currentlyClaimedBy = null data.previouslyClaimedBy = [] data.wantToBeContactedLater = false data.contactPlatform = 'none' data.contactDetails = '' data.topics = '' data.contactLaterDate = '' data.contactLaterTime = '' } else if (role === 'current') { data.isAdmin = false data.contactPlatforms = { phone: false, text: false, discord: false, skype: false, zoom: false, webex: false, wechat: false } } return db .collection(role) .doc(userProfile.email) .set(data) }) exports.queueCount = functions.https.onRequest((req, res) => { return db.collection('accepted') .where('inQueue', '==', true) .get() .then(snap => { return res.status(200).send({ length: snap.size }) }) }) exports.updateUser = functions.firestore .document('accepted/{email}') .onUpdate(async (change, context) => { const newValue = change.after.data() const previousValue = change.before.data() if (!previousValue.wantToBeContactedLater && newValue.wantToBeContactedLater) { console.log(`Emailing about ${context.params.email}...`) const info = await transporter.sendMail({ from: '"RPI ASC Webapp" <matraf@rpi.edu>', to: functions.config().target.email + ', thefrankmatranga@gmail.com', subject: 'An Accepted Student wants to be Contacted!', html: ` <b>EMAIL:</b> <a href="mailto:${context.params.email}">${context.params.email}</a> <br> <b>NAME:</b> <span>${newValue.name || 'Unnamed Student'}</span> <br> <b>TOPICS:</b> <span>${newValue.topics || 'No discussion topics given!'}</span> <br> <b>CONTACT:</b> <span>${newValue.contactPlatform || 'No platform given!'} <i>(${newValue.contactDetails})</i></span> <br> <b>PREFFERRED CONTACT TIME:</b> <span>${newValue.contactLaterDate} <i>(${newValue.contactLaterTime})</i></span> ` }) } })
31.204082
126
0.634729
d1ba4e1b303cd13d9b28d4988c54640962136816
619
sql
SQL
database/location.query.sql
one-piece-team1/one-piece-location
dcaaafc671e085f4ac1ad7eba825c95da86d1ea9
[ "Apache-2.0" ]
null
null
null
database/location.query.sql
one-piece-team1/one-piece-location
dcaaafc671e085f4ac1ad7eba825c95da86d1ea9
[ "Apache-2.0" ]
6
2021-01-11T10:16:29.000Z
2021-04-18T06:17:17.000Z
database/location.query.sql
one-piece-team1/one-piece-location
dcaaafc671e085f4ac1ad7eba825c95da86d1ea9
[ "Apache-2.0" ]
null
null
null
WITH regionResult as ( select "id", "pointSrid", "lat", "lon", "type", "locationName", "country", COUNT(*), ( 6371 * acos( cos(radians(44.35)) * cos(radians("lat" :: float)) * cos(radians("lon" :: float) - radians(143.35)) + sin(radians(44.35)) * sin(radians("lat" :: float)) ) ) as kilodistance from public.location where 10 > power( power("lat" - 44.35, 2) + power("lon" - 143.35, 2), .5 ) group by "id" ) select *, "kilodistance" * 0.62 as mileDistance from regionResult order by "kilodistance" ASC limit 20 offset 0
18.205882
160
0.547658
1650039410a70186aa3b306b2293f0315aa7ed3e
4,216
ts
TypeScript
src/core/coordinate.ts
mengxinssfd/utilTs
e58a9cb2670fb08b3ba5a4502f0202a23f369810
[ "MIT" ]
5
2022-03-02T13:04:37.000Z
2022-03-29T02:06:16.000Z
src/core/coordinate.ts
mengxinssfd/ts-utils
1ca90e1771f1e79ca71ff17ff14434942cc83a5f
[ "MIT" ]
13
2021-07-12T04:28:06.000Z
2022-03-30T16:54:31.000Z
src/core/coordinate.ts
mengxinssfd/utilTs
e58a9cb2670fb08b3ba5a4502f0202a23f369810
[ "MIT" ]
2
2021-09-07T18:03:45.000Z
2022-03-02T13:04:42.000Z
// 与坐标相关的 // 坐标点 import CalcChain from "./CalcChain"; export type Point = [number, number] // 判断是否在范围内 function inRange(a: number, [x1, x2]: Point): boolean { return (x1 <= a && a <= x2) || (x2 <= a && a <= x1); } // 判断某个点是否在某个线上 export function isPointInPath(point: Point, path: Point[]): boolean { const [x, y] = point; for (let i = 1; i < path.length; i++) { const [x1, y1] = path[i - 1]; const [x2, y2] = path[i]; // 根据向量的坐标运算 判断是否平行 // 对于非0向量a,b 设a=(x1,y1) b=(x2,y2) 则a平行b <=> x1/x2 = y1/y2 const vector1 = (y2 - y1) / (x2 - x1); const vector2 = (y - y1) / (x - x1); // 判断是否在范围内 if (vector2 === vector1 && inRange(x, [x1, x2]) && inRange(y, [y1, y2])) return true; } return false; } /** * 根据三角函数求两点的距离 * @param origin * @param target */ export function getDistance(origin: Point, target: Point): number { const [x1, y1] = origin; const [x2, y2] = target; const x = x1 - x2; const y = y1 - y2; return Math.sqrt(x * x + y * y); } export enum Direct { top = "top", left = "left", right = "right", bottom = "bottom" } /** * 根据目标点获取相对于原点的角度 * 注意:默认旋转方向是向上的 所以(0,0)要顶部向着(1,1)是135度,而不是40度 * 注意:在屏幕里角度是顺时针的与数学中的逆时针坐标不一样 45度是右下而不是右上方 * @param origin 原点 * @param target * @param [direct=Direct.top] 需要上下左右哪个方向指向目标 */ export function getAngle(origin: Point, target: Point, direct = Direct.top): number { const [x1, y1] = origin; const [x2, y2] = target; // 相对数学坐标系是对的,对于屏幕坐标系不对 // x = x1 - x2 // y = y1 - y2 // r = Math.sqrt(x * x + y * y) // angle = Math.round(Math.asin(y / r) / Math.pi * 180) // 在两点x轴相同时不对 // const x = x1 - x2; // const y = y1 - y2; // const r = Math.sqrt(x * x + y * y); // if (r === 0) return 0; // return Math.round(Math.acos(x / r) / Math.PI * 180) - 90; // https://blog.csdn.net/chelen_jak/article/details/80518973 const angle = Math.atan2((x2 - x1), (y2 - y1)); //弧度 0.9272952180016122 const theta = angle * (180 / Math.PI); //角度 53.13010235415598 return ({ [Direct.top]: 180 - theta, [Direct.right]: theta, [Direct.bottom]: 360 - theta, [Direct.left]: theta + 180, })[direct]; } /** * 根据半径与角度获取点 * @param center * @param radius * @param rotate */ export function getRotatePoint(center: Point, radius: number, rotate: number): Point { const angle = Math.PI / 180 * rotate; // const angle = NumberCalc.init(Math.PI)["/"](180)["*"](rotate).curVal; // 圆的参数方程 圆心(a,b) x = a + r * cos; y = b + r * sin; // 或正弦定理 a/sinA = b/sinB // 因为屏幕上的坐标系与数学上的坐标系不同,所以x,y有所变化 // let x = center[0] + radius * Math.sin(angle); // let y = center[1] - radius * Math.cos(angle); let x = CalcChain.init(radius)["*"](Math.sin(angle))["+"](center[0]).value; let y = CalcChain.init(radius)["*"](Math.cos(angle)).by(center[1], "-").value; return [x, y]; } /** * fixme 无法单元测试 * 生成二阶贝塞尔曲线路径点 * @param {number} t 当前百分比 * @param {Array} startPos 起点坐标 * @param {Array} endPos 终点坐标 * @param {Array} controlPoint 控制点 */ export function twoBezier(t: number, startPos: Point, endPos: Point, controlPoint: Point): Point { const [x1, y1] = startPos; const [cx, cy] = controlPoint; const [x2, y2] = endPos; let x = (1 - t) * (1 - t) * x1 + 2 * t * (1 - t) * cx + t * t * x2; let y = (1 - t) * (1 - t) * y1 + 2 * t * (1 - t) * cy + t * t * y2; // x = Math.floor(x); // y = Math.floor(y); return [x, y]; } /** * 根据余弦定理(c^2 = a^2 + b^2 - 2 * a * b * cosA)获取任意边长 * @param a * @param b * @param angle 要获取的边长对应的角度 */ export function getBorderWidthByCos(a: number, b: number, angle: number) { // 角度化弧度 const C = angle * Math.PI / 180; const c2 = a ** 2 + b ** 2 - 2 * a * b * Math.cos(C); return Math.sqrt(c2); } /** * 根据正弦定理(a/sinA = b/sinB = c/sinC)获取对应边长 * @param a * @param angleA * @param angleB 要获取的边长对应的角度 */ export function getBorderWidthBySin(a: number, angleA: number, angleB: number) { // 角度化弧度 const rad = Math.PI / 180; const radA = rad * angleA; const radB = rad * angleB; const resA = a / Math.sin(radA); return resA * Math.sin(radB); }
27.2
98
0.561195
6b5df412be935dd2f9e328c427e5c001064e95d9
669
h
C
runtime/monotouch-debug.h
SotoiGhost/xamarin-macios
45dca51dfc88a5570ffffc60be6072d828c5da9e
[ "BSD-3-Clause" ]
2,441
2016-04-27T13:30:04.000Z
2022-03-28T11:22:29.000Z
runtime/monotouch-debug.h
SotoiGhost/xamarin-macios
45dca51dfc88a5570ffffc60be6072d828c5da9e
[ "BSD-3-Clause" ]
13,993
2016-04-27T14:57:15.000Z
2022-03-31T23:53:13.000Z
runtime/monotouch-debug.h
SotoiGhost/xamarin-macios
45dca51dfc88a5570ffffc60be6072d828c5da9e
[ "BSD-3-Clause" ]
557
2016-04-27T13:26:30.000Z
2022-03-30T21:52:36.000Z
// // debug.h: Debugging code for MonoTouch // // Authors: // Geoff Norton // Rolf Bjarne Kvinge <rolf@xamarin.com> // // Copyright 2009 Novell, Inc. // Copyright 2011-2012 Xamarin Inc. // #ifndef __MONOTOUCH_DEBUG_H__ #define __MONOTOUCH_DEBUG_H__ #include "runtime-internal.h" #ifdef __cplusplus extern "C" { #endif void monotouch_configure_debugging (); void monotouch_start_debugging (); void monotouch_start_profiling (); void monotouch_set_connection_mode (const char *mode); void monotouch_set_monodevelop_port (int port); bool xamarin_is_native_debugger_attached (); #ifdef __cplusplus } /* extern "C" */ #endif #endif /* __MONOTOUCH_DEBUG_H__ */
19.114286
54
0.753363
cbece2fad06ca68a76f1ea529a2ea878c32635f1
334
sql
SQL
openGaussBase/testcase/KEYWORDS/binary/Opengauss_Function_Keyword_Binary_Case0026.sql
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/KEYWORDS/binary/Opengauss_Function_Keyword_Binary_Case0026.sql
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/KEYWORDS/binary/Opengauss_Function_Keyword_Binary_Case0026.sql
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
-- @testpoint:opengauss关键字binary(非保留),作为模式名 --关键字不带引号-成功 drop schema if exists binary; create schema binary; --清理环境 drop schema binary; --关键字带双引号-成功 drop schema if exists "binary"; create schema "binary"; --清理环境 drop schema "binary"; --关键字带单引号-合理报错 drop schema if exists 'binary'; --关键字带反引号-合理报错 drop schema if exists `binary`;
15.904762
44
0.739521
2720b08cb40cc6e1d6b12255975338a53d14a1b8
11,280
h
C
src/transport_impl/dpdk/dpdk_transport.h
howard0su/eRPC
422be2d7f6a551802fb96d97ab9546470c4c96d2
[ "Apache-2.0" ]
null
null
null
src/transport_impl/dpdk/dpdk_transport.h
howard0su/eRPC
422be2d7f6a551802fb96d97ab9546470c4c96d2
[ "Apache-2.0" ]
null
null
null
src/transport_impl/dpdk/dpdk_transport.h
howard0su/eRPC
422be2d7f6a551802fb96d97ab9546470c4c96d2
[ "Apache-2.0" ]
null
null
null
/** * @file dpdk_transport.h * @brief Transport for any DPDK-supported NIC */ #pragma once #ifdef ERPC_DPDK #include "transport.h" #include "transport_impl/eth_common.h" #include "util/barrier.h" #include "util/logger.h" #ifdef _WIN32 #include <rte_windows.h> #endif #include <rte_common.h> #include <rte_config.h> #include <rte_errno.h> #include <rte_ethdev.h> #include <rte_ip.h> #include <rte_mbuf.h> #include <rte_thash.h> #include <signal.h> namespace erpc { class DpdkTransport : public Transport { public: static constexpr size_t kMaxQueuesPerPort = 16; static constexpr size_t kInvalidQpId = SIZE_MAX; /// Contents of the memzone created by the eRPC DPDK daemon process struct ownership_memzone_t { private: std::mutex mutex_; /// Guard for reading/writing to the memzone size_t epoch_; /// Incremented after each QP ownership change attempt size_t num_qps_available_; struct { /// pid_ is the PID of the process that owns QP #i. Zero means /// the corresponding QP is free. int pid_; /// proc_random_id_ is a random number installed by the process that owns /// QP #i. This is used to defend against PID reuse. size_t proc_random_id_; } owner_[kMaxPhyPorts][kMaxQueuesPerPort]; public: struct rte_eth_link link_[kMaxPhyPorts]; /// Resolved link status void init() { new (&mutex_) std::mutex(); // Fancy in-place construction num_qps_available_ = kMaxQueuesPerPort; epoch_ = 0; memset(owner_, 0, sizeof(owner_)); } size_t get_epoch() { const std::lock_guard<std::mutex> guard(mutex_); return epoch_; } size_t get_num_qps_available() { const std::lock_guard<std::mutex> guard(mutex_); return num_qps_available_; } std::string get_summary(size_t phy_port) { const std::lock_guard<std::mutex> guard(mutex_); std::ostringstream ret; ret << "[" << num_qps_available_ << " QPs of " << kMaxQueuesPerPort << " available] "; if (num_qps_available_ < kMaxQueuesPerPort) { ret << "[Ownership: "; for (size_t i = 0; i < kMaxQueuesPerPort; i++) { auto &owner = owner_[phy_port][i]; if (owner.pid_ != 0) { ret << "[QP #" << i << ", " << "PID " << owner.pid_ << "] "; } } ret << "]"; } return ret.str(); } /** * @brief Try to get a free QP * * @param phy_port The DPDK port ID to try getting a free QP from * @param proc_random_id A unique random process ID of the calling process * * @return If successful, the machine-wide global index of the free QP * reserved on phy_port. Else return kInvalidQpId. */ size_t get_qp(size_t phy_port, size_t proc_random_id) { const std::lock_guard<std::mutex> guard(mutex_); epoch_++; const int my_pid = getpid(); // Check for sanity for (size_t i = 0; i < kMaxQueuesPerPort; i++) { auto &owner = owner_[phy_port][i]; if (owner.pid_ == my_pid && owner.proc_random_id_ != proc_random_id) { ERPC_ERROR( "eRPC DpdkTransport: Found another process with same PID (%d) as " "mine. Process random IDs: mine %zu, other: %zu\n", my_pid, proc_random_id, owner.proc_random_id_); return kInvalidQpId; } } for (size_t i = 0; i < kMaxQueuesPerPort; i++) { auto &owner = owner_[phy_port][i]; if (owner.pid_ == 0) { owner.pid_ = my_pid; owner.proc_random_id_ = proc_random_id; num_qps_available_--; return i; } } return kInvalidQpId; } /** * @brief Try to return a QP that was previously reserved from this * ownership manager * * @param phy_port The DPDK port ID to try returning the QP to * @param qp_id The QP ID returned by this manager during reservation * * @return 0 if success, else errno */ int free_qp(size_t phy_port, size_t qp_id) { const std::lock_guard<std::mutex> guard(mutex_); const int my_pid = getpid(); epoch_++; auto &owner = owner_[phy_port][qp_id]; if (owner.pid_ == 0) { ERPC_ERROR("eRPC DpdkTransport: PID %d tried to already-free QP %zu.\n", my_pid, qp_id); return EALREADY; } if (owner.pid_ != my_pid) { ERPC_ERROR( "eRPC DpdkTransport: PID %d tried to free QP %zu owned by PID " "%d. Disallowed.\n", my_pid, qp_id, owner.pid_); return EPERM; } num_qps_available_++; owner_[phy_port][qp_id].pid_ = 0; return 0; } /// Free-up QPs reserved by processes that exited before freeing a QP. /// This is safe, but it can leak QPs because of PID reuse. void daemon_reclaim_qps_from_crashed(size_t phy_port) { #ifdef _WIN32 _unused(phy_port); rt_assert(false, "Not implemented yet"); #else const std::lock_guard<std::mutex> guard(mutex_); for (size_t i = 0; i < kMaxQueuesPerPort; i++) { auto &owner = owner_[phy_port][i]; if (kill(owner.pid_, 0) != 0) { // This means that owner.pid_ is dead ERPC_WARN("eRPC DPDK daemon: Reclaiming QP %zu from crashed PID %d\n", i, owner.pid_); num_qps_available_++; owner_[phy_port][i].pid_ = 0; } } #endif } }; enum class DpdkProcType { kPrimary, kSecondary }; // Transport-specific constants static constexpr TransportType kTransportType = TransportType::kDPDK; static constexpr size_t kMTU = 1024; static constexpr size_t kNumTxRingDesc = 128; static constexpr size_t kPostlist = 32; // For now, this is just for erpc::Rpc to size its array of control Msgbufs static constexpr size_t kUnsigBatch = 32; /// Maximum number of packets received in rx_burst static constexpr size_t kRxBatchSize = 32; /// Number of mbufs in each mempool (one per Transport instance). The DPDK /// docs recommend power-of-two minus one mbufs per pool for best utilization. static constexpr size_t kNumMbufs = (kNumRxRingEntries * 2 - 1); // XXX: ixgbe does not support fast free offload, but i40e does static constexpr uint32_t kOffloads = DEV_TX_OFFLOAD_MULTI_SEGS; /// Per-element size for the packet buffer memory pool static constexpr size_t kMbufSize = (static_cast<uint32_t>(sizeof(struct rte_mbuf)) + RTE_PKTMBUF_HEADROOM + 2048 /* For Azure, kMTU = 1024 does not work here */); /// Maximum data bytes (i.e., non-header) in a packet static constexpr size_t kMaxDataPerPkt = (kMTU - sizeof(pkthdr_t)); static constexpr size_t kRssKeySize = 40; /// RSS key size in bytes /// Key used for RSS hashing static constexpr uint8_t kDefaultRssKey[kRssKeySize] = { 0x2c, 0xc6, 0x81, 0xd1, 0x5b, 0xdb, 0xf4, 0xf7, 0xfc, 0xa2, 0x83, 0x19, 0xdb, 0x1a, 0x3e, 0x94, 0x6b, 0x9e, 0x38, 0xd9, 0x2c, 0x9c, 0x03, 0xd1, 0xad, 0x99, 0x44, 0xa7, 0xd9, 0x56, 0x3d, 0x59, 0x06, 0x3c, 0x25, 0xf3, 0xfc, 0x1f, 0xdc, 0x2a, }; DpdkTransport(uint16_t sm_udp_port, uint8_t rpc_id, uint8_t phy_port, size_t numa_node, FILE *trace_file); void init_hugepage_structures(HugeAlloc *huge_alloc, uint8_t **rx_ring); ~DpdkTransport(); void fill_local_routing_info(routing_info_t *routing_info) const; bool resolve_remote_routing_info(routing_info_t *routing_info) const; size_t get_bandwidth() const { return resolve_.bandwidth_; } /// Get the mempool name to use for this port and queue pair ID static std::string get_mempool_name(size_t phy_port, size_t qp_id) { const std::string ret = std::string("erpc-mp-") + std::to_string(phy_port) + std::string("-") + std::to_string(qp_id); rt_assert(ret.length() < RTE_MEMPOOL_NAMESIZE, "Mempool name too long"); return ret; } /// Get the name of the memzone shared between the DPDK daemon and eRPC /// processes static std::string get_memzone_name() { return "erpc_daemon_memzone"; } static std::string routing_info_str(routing_info_t *ri) { return reinterpret_cast<eth_routing_info_t *>(ri)->to_string(); } static std::string dpdk_strerror() { return std::string(rte_strerror(rte_errno)); } /// Convert an RX ring data pointer to its corresponding DPDK mbuf pointer static rte_mbuf *dpdk_dtom(uint8_t *data) { return reinterpret_cast<rte_mbuf *>(data - RTE_PKTMBUF_HEADROOM - sizeof(rte_mbuf)); } /// Return the UDP port to use for queue \p qp_id on DPDK port \p phy_port. /// With DPDK, only one process is allowed to use \p phy_port, so we need not /// account for other processes. static uint16_t udp_port_for_queue(size_t phy_port, size_t qp_id) { return kBaseEthUDPPort + (phy_port * kMaxQueuesPerPort) + qp_id; } /// Get the IPv4 address for \p phy_port. The returned IPv4 address is assumed /// to be in host-byte order. static uint32_t get_port_ipv4_addr(size_t phy_port); // dpdk_transport_datapath.cc void tx_burst(const tx_burst_item_t *tx_burst_arr, size_t num_pkts); void tx_flush(); size_t rx_burst(); void post_recvs(size_t num_recvs); /// Do DPDK initialization for \p phy_port as a primary or secondary DPDK /// process type. \p phy_port must not have been already initialized. static void setup_phy_port(uint16_t phy_port, size_t numa_node, DpdkProcType proc_type); private: /** * @brief Resolve fields in \p resolve using \p phy_port * @throw runtime_error if the port cannot be resolved */ void resolve_phy_port(); /// Poll for packets on this transport's RX queue until there are no more /// packets left void drain_rx_queue(); /// Install a flow rule for queue \p qp_id on port \p phy_port. The IPv4 and /// UDP address are in host-byte order. static void install_flow_rule(size_t phy_port, size_t qp_id, uint32_t ipv4_addr, uint16_t udp_port); /// Initialize the memory registration and deregistration functions void init_mem_reg_funcs(); /// For DPDK, the RX ring buffers might not always be used in a circular /// order. Instead, we write pointers to the Rpc's RX ring. uint8_t **rx_ring_; size_t rx_ring_head_ = 0, rx_ring_tail_ = 0; /// Primary or secondary DPDK process type for this process DpdkTransport::DpdkProcType dpdk_proc_type_; uint16_t rx_flow_udp_port_ = 0; ///< The UDP port this transport listens on size_t qp_id_ = kInvalidQpId; ///< The RX/TX queue pair for this Transport // We don't use DPDK's lcore threads, so a shared mempool with per-lcore // cache won't work. Instead, we use per-thread pools with zero cached mbufs. rte_mempool *mempool_; /// Info resolved from \p phy_port, must be filled by constructor. struct { uint32_t ipv4_addr_; // The port's IPv4 address in host-byte order uint8_t mac_addr_[6]; // The port's MAC address size_t bandwidth_; // Link bandwidth in bytes per second size_t reta_size_; // Number of entries in NIC RX indirection table } resolve_; }; } // namespace erpc #endif
33.975904
80
0.65656
2e43539d93cb8eddd30e5d308d2550803a768e88
6,606
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_12066_888.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_12066_888.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_12066_888.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r9 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_UC_ht+0x1d515, %rsi lea addresses_A_ht+0x183c1, %rdi nop nop nop nop dec %rbx mov $24, %rcx rep movsq nop nop nop nop add %r9, %r9 lea addresses_A_ht+0x535d, %r9 nop nop nop nop nop and $53924, %r13 movl $0x61626364, (%r9) nop xor $14123, %r9 lea addresses_D_ht+0x1d775, %rsi lea addresses_WT_ht+0x22d, %rdi clflush (%rdi) nop nop nop nop add $11803, %r11 mov $0, %rcx rep movsq nop nop nop nop add $29946, %rbx lea addresses_UC_ht+0x161dd, %rsi lea addresses_WC_ht+0x9e11, %rdi nop nop nop inc %rax mov $81, %rcx rep movsw nop nop nop nop nop add %r11, %r11 lea addresses_D_ht+0x1f5d, %rdi clflush (%rdi) nop nop nop add $55388, %rax mov $0x6162636465666768, %r11 movq %r11, %xmm2 movups %xmm2, (%rdi) and %rdi, %rdi lea addresses_normal_ht+0x1ef5d, %rsi lea addresses_normal_ht+0x1377d, %rdi clflush (%rsi) nop and $55796, %r13 mov $26, %rcx rep movsl nop nop nop nop and $37593, %rsi lea addresses_normal_ht+0x755d, %rdi nop nop cmp %r13, %r13 mov $0x6162636465666768, %rbx movq %rbx, (%rdi) nop nop inc %rbx lea addresses_WC_ht+0x105ad, %r11 nop nop nop nop cmp $12007, %rcx mov (%r11), %ebx nop nop sub %r13, %r13 lea addresses_WC_ht+0x7eba, %rbx nop nop nop nop cmp $18300, %rax movl $0x61626364, (%rbx) nop nop cmp $17869, %r9 lea addresses_normal_ht+0xd437, %rsi lea addresses_normal_ht+0x1675d, %rdi clflush (%rdi) and %rax, %rax mov $17, %rcx rep movsq nop xor $30401, %r11 pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r9 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %rbp push %rbx push %rdi // Faulty Load lea addresses_PSE+0x14f5d, %r12 sub $30381, %rbx mov (%r12), %rbp lea oracles, %r13 and $0xff, %rbp shlq $12, %rbp mov (%r13,%rbp,1), %rbp pop %rdi pop %rbx pop %rbp pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': False}} {'33': 12066} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
37.534091
2,999
0.663034
0e254815c63a9fd65c0be558fe6d9e13899d8ba9
1,710
kt
Kotlin
app/src/main/java/com/paranoid/mao/expandablewidgetexample/CircularRevealConstraintLayout.kt
lcdsmao/ExpandableFABExample
76981bda4fad12bd75aa3bbcae80465dfda3f7e5
[ "MIT" ]
12
2019-11-05T14:40:29.000Z
2021-02-04T10:09:41.000Z
app/src/main/java/com/paranoid/mao/expandablewidgetexample/CircularRevealConstraintLayout.kt
lcdsmao/ExpandableFABExample
76981bda4fad12bd75aa3bbcae80465dfda3f7e5
[ "MIT" ]
1
2019-10-05T19:38:36.000Z
2019-10-06T06:54:07.000Z
app/src/main/java/com/paranoid/mao/expandablewidgetexample/CircularRevealConstraintLayout.kt
lcdsmao/ExpandableFABExample
76981bda4fad12bd75aa3bbcae80465dfda3f7e5
[ "MIT" ]
5
2019-10-16T13:25:26.000Z
2021-03-14T15:34:27.000Z
package com.paranoid.mao.expandablewidgetexample import android.content.Context import android.graphics.Canvas import android.graphics.drawable.Drawable import android.util.AttributeSet import android.widget.FrameLayout import com.google.android.material.circularreveal.CircularRevealHelper import com.google.android.material.circularreveal.CircularRevealWidget class CircularRevealConstraintLayout @JvmOverloads constructor( context: Context, attrs: AttributeSet? = null ) : FrameLayout(context, attrs), CircularRevealWidget { private val helper = CircularRevealHelper(this) override fun getRevealInfo(): CircularRevealWidget.RevealInfo? = helper.revealInfo override fun setRevealInfo(revealInfo: CircularRevealWidget.RevealInfo?) { helper.revealInfo = revealInfo } override fun getCircularRevealOverlayDrawable(): Drawable? { return helper.circularRevealOverlayDrawable } override fun getCircularRevealScrimColor(): Int { return helper.circularRevealScrimColor } override fun setCircularRevealScrimColor(color: Int) { helper.circularRevealScrimColor = color } override fun setCircularRevealOverlayDrawable(drawable: Drawable?) { helper.circularRevealOverlayDrawable = drawable } override fun buildCircularRevealCache() { helper.buildCircularRevealCache() } override fun actualIsOpaque(): Boolean { return helper.isOpaque } override fun actualDraw(canvas: Canvas?) { helper.draw(canvas) } override fun destroyCircularRevealCache() { helper.destroyCircularRevealCache() } }
30.535714
87
0.72807
0b3d7624363caad648ba8e358291c31dd9df8952
8,312
swift
Swift
SwiftSenpai-UnitTest-HttpRequestTests/RegistrationRequestHelper_After_Post_Tests.swift
LeeKahSeng/SwiftSenpai-RegistrationRequestHelper-UnitTest
c64e5249a52b4a576e25f29b55abae06211a1953
[ "MIT" ]
2
2021-08-23T12:40:47.000Z
2021-09-16T06:52:08.000Z
SwiftSenpai-UnitTest-HttpRequestTests/RegistrationRequestHelper_After_Post_Tests.swift
LeeKahSeng/SwiftSenpai-RegistrationRequestHelper-UnitTest
c64e5249a52b4a576e25f29b55abae06211a1953
[ "MIT" ]
null
null
null
SwiftSenpai-UnitTest-HttpRequestTests/RegistrationRequestHelper_After_Post_Tests.swift
LeeKahSeng/SwiftSenpai-RegistrationRequestHelper-UnitTest
c64e5249a52b4a576e25f29b55abae06211a1953
[ "MIT" ]
null
null
null
// // RegistrationRequestHelper_After_Post_Tests.swift // SwiftSenpai-UnitTest-HttpRequestTests // // Created by Lee Kah Seng on 07/02/2020. // Copyright © 2020 Lee Kah Seng. All rights reserved. // import XCTest @testable import SwiftSenpai_UnitTest_HttpRequest class RegistrationRequestHelper_After_Post_Tests: XCTestCase { override func setUp() { // Put setup code here. This method is called before the invocation of each test method in the class. } override func tearDown() { // Put teardown code here. This method is called after the invocation of each test method in the class. } /// Assert that the parsing of User object from JSON is working correctly func testParseUserObject() { /* Arrange */ // Create dependencies let stubNetworkLayer = StubSuccessNetworkLayer() let dummyEncryptionHelper = DummyEncryptionHelper() // Set expectation let exp = expectation(description: "Post request completed") /* Act */ // Perform post request var postResult: Result<User, RegistrationRequestError>! let requestHelper = RegistrationRequestHelper(stubNetworkLayer, encryptionHelper: dummyEncryptionHelper) requestHelper.register("dummy-username", password: "dummy-password") { (result) in // Capture post result postResult = result exp.fulfill() } waitForExpectations(timeout: 5.0, handler: nil) /* Assert */ let actualUser = try? postResult.get() let expectedUser = User(userId: 1001, username: "swift-senpai") // Assert user ID is correct XCTAssertEqual(expectedUser.userId, actualUser?.userId) // Assert username is correct XCTAssertEqual(expectedUser.username, actualUser?.username) // Assert email & phone is nil XCTAssertNil(actualUser?.email) XCTAssertNil(actualUser?.phone) } /// Assert that the unexpected response error will trigger func testUnexpectedResponse() { /* Arrange */ // Create dependencies let stubNetworkLayer = StubUnexpectedResNetworkLayer() let dummyEncryptionHelper = DummyEncryptionHelper() // Set expectation let exp = expectation(description: "Post request completed") /* Act */ // Perform post request var postResult: Result<User, RegistrationRequestError>! let requestHelper = RegistrationRequestHelper(stubNetworkLayer, encryptionHelper: dummyEncryptionHelper) requestHelper.register("dummy-username", password: "dummy-password") { (result) in // Capture post result postResult = result exp.fulfill() } waitForExpectations(timeout: 5.0, handler: nil) /* Assert */ var actualError: RegistrationRequestError? XCTAssertThrowsError(try postResult.get()) { (error) in actualError = error as? RegistrationRequestError } let expectedError = RegistrationRequestError.unexpectedResponse XCTAssertEqual(expectedError, actualError) } /// Assert that the username already exists error will trigger func testUsernameAlreadyExists() { /* Arrange */ // Create dependencies let stubNetworkLayer = StubUsernameExistNetworkLayer() let dummyEncryptionHelper = DummyEncryptionHelper() // Set expectation let exp = expectation(description: "Post request completed") /* Act */ // Perform post request var postResult: Result<User, RegistrationRequestError>! let requestHelper = RegistrationRequestHelper(stubNetworkLayer, encryptionHelper: dummyEncryptionHelper) requestHelper.register("dummy-username", password: "dummy-password") { (result) in // Capture post result postResult = result exp.fulfill() } waitForExpectations(timeout: 5.0, handler: nil) /* Assert */ var actualError: RegistrationRequestError? XCTAssertThrowsError(try postResult.get()) { (error) in actualError = error as? RegistrationRequestError } let expectedError = RegistrationRequestError.usernameAlreadyExists XCTAssertEqual(expectedError, actualError) } /// Assert that the request failed error will trigger func testRequestFailed() { /* Arrange */ // Create dependencies let stubNetworkLayer = StubRequestFailedNetworkLayer() let dummyEncryptionHelper = DummyEncryptionHelper() // Set expectation let exp = expectation(description: "Post request completed") /* Act */ // Perform post request var postResult: Result<User, RegistrationRequestError>! let requestHelper = RegistrationRequestHelper(stubNetworkLayer, encryptionHelper: dummyEncryptionHelper) requestHelper.register("dummy-username", password: "dummy-password") { (result) in // Capture post result postResult = result exp.fulfill() } waitForExpectations(timeout: 5.0, handler: nil) /* Assert */ var actualError: RegistrationRequestError? XCTAssertThrowsError(try postResult.get()) { (error) in actualError = error as? RegistrationRequestError } let expectedError = RegistrationRequestError.requestFailed XCTAssertEqual(expectedError, actualError) } } // MARK:- Test doubles // Reference: https://swiftsenpai.com/testing/test-doubles-in-swift/ extension RegistrationRequestHelper_After_Post_Tests { /// Dummy object that do nothing class DummyEncryptionHelper: EncryptionHelperProtocol { func encrypt(_ value: String) -> String { return value } } /// NetworkLayer stub that return success result class StubSuccessNetworkLayer: NetworkLayerProtocol { func post(_ url: URL, parameters: Data, completion: (Result<Data, Error>) -> Void) { let responseJson = """ { "user_id": 1001, "username": "swift-senpai", "email": null, "phone": null } """ // Convert JSON string to JSON data let jsonData = Data(responseJson.utf8) completion(.success(jsonData)) } } /// NetworkLayer stub that return unexpected result error class StubUnexpectedResNetworkLayer: NetworkLayerProtocol { func post(_ url: URL, parameters: Data, completion: (Result<Data, Error>) -> Void) { let responseJson = "{}" let jsonData = Data(responseJson.utf8) completion(.success(jsonData)) } } /// NetworkLayer stub that return "username already exists" error class StubUsernameExistNetworkLayer: NetworkLayerProtocol { func post(_ url: URL, parameters: Data, completion: (Result<Data, Error>) -> Void) { let responseJson = """ { "error_code" : "E001", "message":"Username already exists" } """ // Convert JSON string to JSON data let jsonData = Data(responseJson.utf8) completion(.success(jsonData)) } } /// NetworkLayer stub that return http request failed error class StubRequestFailedNetworkLayer: NetworkLayerProtocol { func post(_ url: URL, parameters: Data, completion: (Result<Data, Error>) -> Void) { completion(.failure(URLError.init(.timedOut))) } } }
33.926531
112
0.592757
dfc63b2e9f62b4e5314c062ef045cecfbb08b5cf
2,199
ts
TypeScript
src/app/pages/account-dashbord/account-dashbord.component.ts
mohamedHedi1990/ngx-admin-erp
383d826d94dd31d179c221206071df1a29f65122
[ "MIT" ]
null
null
null
src/app/pages/account-dashbord/account-dashbord.component.ts
mohamedHedi1990/ngx-admin-erp
383d826d94dd31d179c221206071df1a29f65122
[ "MIT" ]
null
null
null
src/app/pages/account-dashbord/account-dashbord.component.ts
mohamedHedi1990/ngx-admin-erp
383d826d94dd31d179c221206071df1a29f65122
[ "MIT" ]
null
null
null
import {Component, OnInit} from '@angular/core'; import {UtilsServiceService} from "../../utils-service.service"; @Component({ selector: 'ngx-account-dashbord', templateUrl: './account-dashbord.component.html', styleUrls: ['./account-dashbord.component.scss'] }) export class AccountDashbordComponent implements OnInit { dashbordInformation: any; basicOptions: any; productSalesData: any customerSalesData: any; constructor(private utilService: UtilsServiceService) { } ngOnInit(): void { this.getDashbordInformation(); } getDashbordInformation() { this.utilService.get(UtilsServiceService.API_DASHBORD).subscribe(response => { this.dashbordInformation = response; this.fillCharts(); }, error => { this.utilService.showToast('danger', 'Erreur interne', `Un erreur interne a été produit lors du chargement des informations du page d'acceuil`); }); } fillCharts() { this.fillProductSalesChart(); this.fillCustomerSalesChart(); } fillProductSalesChart() { let productlabels = []; let productSalesData = []; this.dashbordInformation.productSales.forEach(productSale => { if (productSale.valueTotal > 0) { productlabels.push(productSale.productLabel); productSalesData.push(productSale.valueTotal); } }) this.productSalesData = { labels: productlabels, datasets: [ { label: 'Chiffre d\'affaire d\'aujourdui par produit', backgroundColor: '#6200ee', data: productSalesData }, ] }; } fillCustomerSalesChart() { let customerlabels = []; let customerSalesData = []; this.dashbordInformation.customerSales.forEach(customerSale => { if (customerSale.valueTotal > 0) { customerlabels.push(customerSale.customerLabel); customerSalesData.push(customerSale.valueTotal); } }) this.customerSalesData = { labels: customerlabels, datasets: [ { label: 'Chiffre d\'affaire d\'aujourdui par client', backgroundColor: '#6200ee', data: customerSalesData }, ] }; } }
26.493976
99
0.644839
14eb86f56f99c80169b83a66b04759b8f07bb970
559
asm
Assembly
oeis/017/A017368.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/017/A017368.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/017/A017368.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A017368: a(n) = (10*n + 8)^4. ; 4096,104976,614656,2085136,5308416,11316496,21381376,37015056,59969536,92236816,136048896,193877776,268435456,362673936,479785216,623201296,796594176,1003875856,1249198336,1536953616,1871773696,2258530576,2702336256,3208542736,3782742016,4430766096,5158686976,5972816656,6879707136,7886150416,8999178496,10226063376,11574317056,13051691536,14666178816,16426010896,18339659776,20415837456,22663495936,25091827216,27710263296,30528476176,33556377856,36804120336,40282095616,44000935696,47971512576 mul $0,10 add $0,8 pow $0,4
79.857143
497
0.856887
ab69bd8d6dd82aaf3d9b3ec62324b2aa12f99f77
1,078
asm
Assembly
Tejas-Simulator/PIN/pin-2.14/source/tools/Probes/do_nothing_ia32.asm
markoshorro/tejas_knl
5e772aef46362d8bec8ad6d5427b9bcff9be5cfe
[ "Apache-2.0" ]
17
2021-07-10T13:22:26.000Z
2022-02-09T20:11:39.000Z
pin_kit/source/tools/Probes/do_nothing_ia32.asm
sawansib/SNIPER
45ec1eeb09b81a7250bc1a1aaa452f16b2b7f497
[ "MIT" ]
4
2021-08-18T14:07:24.000Z
2022-01-24T16:38:06.000Z
pin_kit/source/tools/Probes/do_nothing_ia32.asm
sawansib/SNIPER
45ec1eeb09b81a7250bc1a1aaa452f16b2b7f497
[ "MIT" ]
11
2016-07-01T02:21:06.000Z
2020-11-23T08:29:22.000Z
.686 .model flat, c COMMENT // contains important code patterns COMMENT // doesn't actually do anything COMMENT // make sure the relocated entry will copy more than one basic block. ASSUME NOTHING .code PUBLIC do_nothing do_nothing PROC test eax, eax je lab1 xor eax, eax xor eax, eax lab1: xor eax, eax xor eax, eax ret do_nothing ENDP COMMENT // make sure the relocated entry will correctly handle a jump as the last COMMENT // instruction in the basic block. PUBLIC nothing_doing nothing_doing PROC test eax, eax test eax, eax je lab2 xor eax, eax xor eax, eax lab2: xor eax, eax xor eax, eax ret nothing_doing ENDP COMMENT // call should be replaced with a push/jmp when relocated. PUBLIC call_function call_function PROC push ebx call do_nothing pop ebx ret call_function ENDP COMMENT // make sure this code pattern works PUBLIC call_nothing call_nothing PROC push eax mov eax, eax push ebx call do_nothing pop ebx pop eax ret call_nothing ENDP END
15.4
81
0.701299
908ce5375ce9b1344e09ac53ddeee381611dff36
12,217
asm
Assembly
1-source-files/main-sources/elite-missile.asm
markmoxon/disc-elite-beebasm
31e05c330a7cdc60d8aef7664f9425381940dcae
[ "Unlicense" ]
14
2021-01-28T19:27:28.000Z
2022-01-07T16:36:02.000Z
1-source-files/main-sources/elite-missile.asm
markmoxon/disc-elite-beebasm
31e05c330a7cdc60d8aef7664f9425381940dcae
[ "Unlicense" ]
null
null
null
1-source-files/main-sources/elite-missile.asm
markmoxon/disc-elite-beebasm
31e05c330a7cdc60d8aef7664f9425381940dcae
[ "Unlicense" ]
null
null
null
\ ****************************************************************************** \ \ DISC ELITE MISSILE SHIP BLUEPRINT FILE \ \ Elite was written by Ian Bell and David Braben and is copyright Acornsoft 1984 \ \ The code on this site has been disassembled from the version released on Ian \ Bell's personal website at http://www.elitehomepage.org/ \ \ The commentary is copyright Mark Moxon, and any misunderstandings or mistakes \ in the documentation are entirely my fault \ \ The terminology and notations used in this commentary are explained at \ https://www.bbcelite.com/about_site/terminology_used_in_this_commentary.html \ \ The deep dive articles referred to in this commentary can be found at \ https://www.bbcelite.com/deep_dives \ \ ------------------------------------------------------------------------------ \ \ This source file produces the following binary file: \ \ * MISSILE.bin \ \ This gets loaded as part of elite-loader3.asm and gets moved to &7F00 during \ the loading process. \ \ ****************************************************************************** INCLUDE "1-source-files/main-sources/elite-header.h.asm" _IB_DISC = (_RELEASE = 1) _STH_DISC = (_RELEASE = 2) GUARD &6000 \ Guard against assembling over screen memory \ ****************************************************************************** \ \ Configuration variables \ \ ****************************************************************************** CODE% = &7F00 LOAD% = &244B ORG CODE% \ ****************************************************************************** \ \ Name: VERTEX \ Type: Macro \ Category: Drawing ships \ Summary: Macro definition for adding vertices to ship blueprints \ Deep dive: Ship blueprints \ \ ------------------------------------------------------------------------------ \ \ The following macro is used to build the ship blueprints: \ \ VERTEX x, y, z, face1, face2, face3, face4, visibility \ \ See the deep dive on "Ship blueprints" for details of how vertices are stored \ in the ship blueprints, and the deep dive on "Drawing ships" for information \ on how vertices are used to draw 3D wiremesh ships. \ \ Arguments: \ \ x The vertex's x-coordinate \ \ y The vertex's y-coordinate \ \ z The vertex's z-coordinate \ \ face1 The number of face 1 associated with this vertex \ \ face2 The number of face 2 associated with this vertex \ \ face3 The number of face 3 associated with this vertex \ \ face4 The number of face 4 associated with this vertex \ \ visibility The visibility distance, beyond which the vertex is not \ shown \ \ ****************************************************************************** MACRO VERTEX x, y, z, face1, face2, face3, face4, visibility IF x < 0 s_x = 1 << 7 ELSE s_x = 0 ENDIF IF y < 0 s_y = 1 << 6 ELSE s_y = 0 ENDIF IF z < 0 s_z = 1 << 5 ELSE s_z = 0 ENDIF s = s_x + s_y + s_z + visibility f1 = face1 + (face2 << 4) f2 = face3 + (face4 << 4) ax = ABS(x) ay = ABS(y) az = ABS(z) EQUB ax, ay, az, s, f1, f2 ENDMACRO \ ****************************************************************************** \ \ Name: EDGE \ Type: Macro \ Category: Drawing ships \ Summary: Macro definition for adding edges to ship blueprints \ Deep dive: Ship blueprints \ \ ------------------------------------------------------------------------------ \ \ The following macro is used to build the ship blueprints: \ \ EDGE vertex1, vertex2, face1, face2, visibility \ \ See the deep dive on "Ship blueprints" for details of how edges are stored \ in the ship blueprints, and the deep dive on "Drawing ships" for information \ on how edges are used to draw 3D wiremesh ships. \ \ Arguments: \ \ vertex1 The number of the vertex at the start of the edge \ \ vertex1 The number of the vertex at the end of the edge \ \ face1 The number of face 1 associated with this edge \ \ face2 The number of face 2 associated with this edge \ \ visibility The visibility distance, beyond which the edge is not \ shown \ \ ****************************************************************************** MACRO EDGE vertex1, vertex2, face1, face2, visibility f = face1 + (face2 << 4) EQUB visibility, f, vertex1 << 2, vertex2 << 2 ENDMACRO \ ****************************************************************************** \ \ Name: FACE \ Type: Macro \ Category: Drawing ships \ Summary: Macro definition for adding faces to ship blueprints \ Deep dive: Ship blueprints \ \ ------------------------------------------------------------------------------ \ \ The following macro is used to build the ship blueprints: \ \ FACE normal_x, normal_y, normal_z, visibility \ \ See the deep dive on "Ship blueprints" for details of how faces are stored \ in the ship blueprints, and the deep dive on "Drawing ships" for information \ on how faces are used to draw 3D wiremesh ships. \ \ Arguments: \ \ normal_x The face normal's x-coordinate \ \ normal_y The face normal's y-coordinate \ \ normal_z The face normal's z-coordinate \ \ visibility The visibility distance, beyond which the edge is always \ shown \ \ ****************************************************************************** MACRO FACE normal_x, normal_y, normal_z, visibility IF normal_x < 0 s_x = 1 << 7 ELSE s_x = 0 ENDIF IF normal_y < 0 s_y = 1 << 6 ELSE s_y = 0 ENDIF IF normal_z < 0 s_z = 1 << 5 ELSE s_z = 0 ENDIF s = s_x + s_y + s_z + visibility ax = ABS(normal_x) ay = ABS(normal_y) az = ABS(normal_z) EQUB s, ax, ay, az ENDMACRO \ ****************************************************************************** \ \ Name: SHIP_MISSILE \ Type: Variable \ Category: Drawing ships \ Summary: Ship blueprint for a missile \ Deep dive: Ship blueprints \ \ ****************************************************************************** .SHIP_MISSILE EQUB 0 \ Max. canisters on demise = 0 EQUW 40 * 40 \ Targetable area = 40 * 40 EQUB LO(SHIP_MISSILE_EDGES - SHIP_MISSILE) \ Edges data offset (low) EQUB LO(SHIP_MISSILE_FACES - SHIP_MISSILE) \ Faces data offset (low) EQUB 81 \ Max. edge count = (81 - 1) / 4 = 20 EQUB 0 \ Gun vertex = 0 EQUB 10 \ Explosion count = 1, as (4 * n) + 6 = 10 EQUB 102 \ Number of vertices = 102 / 6 = 17 EQUB 24 \ Number of edges = 24 EQUW 0 \ Bounty = 0 EQUB 36 \ Number of faces = 36 / 4 = 9 EQUB 14 \ Visibility distance = 14 EQUB 2 \ Max. energy = 2 EQUB 44 \ Max. speed = 44 EQUB HI(SHIP_MISSILE_EDGES - SHIP_MISSILE) \ Edges data offset (high) EQUB HI(SHIP_MISSILE_FACES - SHIP_MISSILE) \ Faces data offset (high) EQUB 2 \ Normals are scaled by = 2^2 = 4 EQUB %00000000 \ Laser power = 0 \ Missiles = 0 \VERTEX x, y, z, face1, face2, face3, face4, visibility VERTEX 0, 0, 68, 0, 1, 2, 3, 31 \ Vertex 0 VERTEX 8, -8, 36, 1, 2, 4, 5, 31 \ Vertex 1 VERTEX 8, 8, 36, 2, 3, 4, 7, 31 \ Vertex 2 VERTEX -8, 8, 36, 0, 3, 6, 7, 31 \ Vertex 3 VERTEX -8, -8, 36, 0, 1, 5, 6, 31 \ Vertex 4 VERTEX 8, 8, -44, 4, 7, 8, 8, 31 \ Vertex 5 VERTEX 8, -8, -44, 4, 5, 8, 8, 31 \ Vertex 6 VERTEX -8, -8, -44, 5, 6, 8, 8, 31 \ Vertex 7 VERTEX -8, 8, -44, 6, 7, 8, 8, 31 \ Vertex 8 VERTEX 12, 12, -44, 4, 7, 8, 8, 8 \ Vertex 9 VERTEX 12, -12, -44, 4, 5, 8, 8, 8 \ Vertex 10 VERTEX -12, -12, -44, 5, 6, 8, 8, 8 \ Vertex 11 VERTEX -12, 12, -44, 6, 7, 8, 8, 8 \ Vertex 12 VERTEX -8, 8, -12, 6, 7, 7, 7, 8 \ Vertex 13 VERTEX -8, -8, -12, 5, 6, 6, 6, 8 \ Vertex 14 VERTEX 8, 8, -12, 4, 7, 7, 7, 8 \ Vertex 15 VERTEX 8, -8, -12, 4, 5, 5, 5, 8 \ Vertex 16 .SHIP_MISSILE_EDGES \EDGE vertex1, vertex2, face1, face2, visibility EDGE 0, 1, 1, 2, 31 \ Edge 0 EDGE 0, 2, 2, 3, 31 \ Edge 1 EDGE 0, 3, 0, 3, 31 \ Edge 2 EDGE 0, 4, 0, 1, 31 \ Edge 3 EDGE 1, 2, 4, 2, 31 \ Edge 4 EDGE 1, 4, 1, 5, 31 \ Edge 5 EDGE 3, 4, 0, 6, 31 \ Edge 6 EDGE 2, 3, 3, 7, 31 \ Edge 7 EDGE 2, 5, 4, 7, 31 \ Edge 8 EDGE 1, 6, 4, 5, 31 \ Edge 9 EDGE 4, 7, 5, 6, 31 \ Edge 10 EDGE 3, 8, 6, 7, 31 \ Edge 11 EDGE 7, 8, 6, 8, 31 \ Edge 12 EDGE 5, 8, 7, 8, 31 \ Edge 13 EDGE 5, 6, 4, 8, 31 \ Edge 14 EDGE 6, 7, 5, 8, 31 \ Edge 15 EDGE 6, 10, 5, 8, 8 \ Edge 16 EDGE 5, 9, 7, 8, 8 \ Edge 17 EDGE 8, 12, 7, 8, 8 \ Edge 18 EDGE 7, 11, 5, 8, 8 \ Edge 19 EDGE 9, 15, 4, 7, 8 \ Edge 20 EDGE 10, 16, 4, 5, 8 \ Edge 21 EDGE 12, 13, 6, 7, 8 \ Edge 22 EDGE 11, 14, 5, 6, 8 \ Edge 23 .SHIP_MISSILE_FACES \FACE normal_x, normal_y, normal_z, visibility FACE -64, 0, 16, 31 \ Face 0 FACE 0, -64, 16, 31 \ Face 1 FACE 64, 0, 16, 31 \ Face 2 FACE 0, 64, 16, 31 \ Face 3 FACE 32, 0, 0, 31 \ Face 4 FACE 0, -32, 0, 31 \ Face 5 FACE -32, 0, 0, 31 \ Face 6 FACE 0, 160, 110, 31 \ Face 7 FACE 0, 64, 4, 0 \ Face 8 \ ****************************************************************************** \ \ Name: VEC \ Type: Variable \ Category: Screen mode \ Summary: The original value of the IRQ1 vector \ \ ****************************************************************************** .VEC EQUW &0004 \ VEC = &7FFE \ \ This gets set to the value of the original IRQ1 vector \ by the loading process \ \ This default value is presumably noise included at the \ time of compilation, as it gets overwritten \ ****************************************************************************** \ \ Save MISSILE.bin \ \ ****************************************************************************** PRINT "MISSILE" PRINT "Assembled at ", ~CODE% PRINT "Ends at ", ~P% PRINT "Code size is ", ~(P% - CODE%) PRINT "Execute at ", ~LOAD% PRINT "Reload at ", ~LOAD% PRINT "S.MISSILE ",~CODE%," ",~P%," ",~LOAD%," ",~LOAD% SAVE "3-assembled-output/MISSILE.bin", CODE%, P%, LOAD%
35.514535
80
0.430629